1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992489934899448995489964899748998489994900049001490024900349004490054900649007490084900949010490114901249013490144901549016490174901849019490204902149022490234902449025490264902749028490294903049031490324903349034490354903649037490384903949040490414904249043490444904549046490474904849049490504905149052490534905449055490564905749058490594906049061490624906349064490654906649067490684906949070490714907249073490744907549076490774907849079490804908149082490834908449085490864908749088490894909049091490924909349094490954909649097490984909949100491014910249103491044910549106491074910849109491104911149112491134911449115491164911749118491194912049121491224912349124491254912649127491284912949130491314913249133491344913549136491374913849139491404914149142491434914449145491464914749148491494915049151491524915349154491554915649157491584915949160491614916249163491644916549166491674916849169491704917149172491734917449175491764917749178491794918049181491824918349184491854918649187491884918949190491914919249193491944919549196491974919849199492004920149202492034920449205492064920749208492094921049211492124921349214492154921649217492184921949220492214922249223492244922549226492274922849229492304923149232492334923449235492364923749238492394924049241492424924349244492454924649247492484924949250492514925249253492544925549256492574925849259492604926149262492634926449265492664926749268492694927049271492724927349274492754927649277492784927949280492814928249283492844928549286492874928849289492904929149292492934929449295492964929749298492994930049301493024930349304493054930649307493084930949310493114931249313493144931549316493174931849319493204932149322493234932449325493264932749328493294933049331493324933349334493354933649337493384933949340493414934249343493444934549346493474934849349493504935149352493534935449355493564935749358493594936049361493624936349364493654936649367493684936949370493714937249373493744937549376493774937849379493804938149382493834938449385493864938749388493894939049391493924939349394493954939649397493984939949400494014940249403494044940549406494074940849409494104941149412494134941449415494164941749418494194942049421494224942349424494254942649427494284942949430494314943249433494344943549436494374943849439494404944149442494434944449445494464944749448494494945049451494524945349454494554945649457494584945949460494614946249463494644946549466494674946849469494704947149472494734947449475494764947749478494794948049481494824948349484494854948649487494884948949490494914949249493494944949549496494974949849499495004950149502495034950449505495064950749508495094951049511495124951349514495154951649517495184951949520495214952249523495244952549526495274952849529495304953149532495334953449535495364953749538495394954049541495424954349544495454954649547495484954949550495514955249553495544955549556495574955849559495604956149562495634956449565495664956749568495694957049571495724957349574495754957649577495784957949580495814958249583495844958549586495874958849589495904959149592495934959449595495964959749598495994960049601496024960349604496054960649607496084960949610496114961249613496144961549616496174961849619496204962149622496234962449625496264962749628496294963049631496324963349634496354963649637496384963949640496414964249643496444964549646496474964849649496504965149652496534965449655496564965749658496594966049661496624966349664496654966649667496684966949670496714967249673496744967549676496774967849679496804968149682496834968449685496864968749688496894969049691496924969349694496954969649697496984969949700497014970249703497044970549706497074970849709497104971149712497134971449715497164971749718497194972049721497224972349724497254972649727497284972949730497314973249733497344973549736497374973849739497404974149742497434974449745497464974749748497494975049751497524975349754497554975649757497584975949760497614976249763497644976549766497674976849769497704977149772497734977449775497764977749778497794978049781497824978349784497854978649787497884978949790497914979249793497944979549796497974979849799498004980149802498034980449805498064980749808498094981049811498124981349814498154981649817498184981949820498214982249823498244982549826498274982849829498304983149832498334983449835498364983749838498394984049841498424984349844498454984649847498484984949850498514985249853498544985549856498574985849859498604986149862498634986449865498664986749868498694987049871498724987349874498754987649877498784987949880498814988249883498844988549886498874988849889498904989149892498934989449895498964989749898498994990049901499024990349904499054990649907499084990949910499114991249913499144991549916499174991849919499204992149922499234992449925499264992749928499294993049931499324993349934499354993649937499384993949940499414994249943499444994549946499474994849949499504995149952499534995449955499564995749958499594996049961499624996349964499654996649967499684996949970499714997249973499744997549976499774997849979499804998149982499834998449985499864998749988499894999049991499924999349994499954999649997499984999950000500015000250003500045000550006500075000850009500105001150012500135001450015500165001750018500195002050021500225002350024500255002650027500285002950030500315003250033500345003550036500375003850039500405004150042500435004450045500465004750048500495005050051500525005350054500555005650057500585005950060500615006250063500645006550066500675006850069500705007150072500735007450075500765007750078500795008050081500825008350084500855008650087500885008950090500915009250093500945009550096500975009850099501005010150102501035010450105501065010750108501095011050111501125011350114501155011650117501185011950120501215012250123501245012550126501275012850129501305013150132501335013450135501365013750138501395014050141501425014350144501455014650147501485014950150501515015250153501545015550156501575015850159501605016150162501635016450165501665016750168501695017050171501725017350174501755017650177501785017950180501815018250183501845018550186501875018850189501905019150192501935019450195501965019750198501995020050201502025020350204502055020650207502085020950210502115021250213502145021550216502175021850219502205022150222502235022450225502265022750228502295023050231502325023350234502355023650237502385023950240502415024250243502445024550246502475024850249502505025150252502535025450255502565025750258502595026050261502625026350264502655026650267502685026950270502715027250273502745027550276502775027850279502805028150282502835028450285502865028750288502895029050291502925029350294502955029650297502985029950300503015030250303503045030550306503075030850309503105031150312503135031450315503165031750318503195032050321503225032350324503255032650327503285032950330503315033250333503345033550336503375033850339503405034150342503435034450345503465034750348503495035050351503525035350354503555035650357503585035950360503615036250363503645036550366503675036850369503705037150372503735037450375503765037750378503795038050381503825038350384503855038650387503885038950390503915039250393503945039550396503975039850399504005040150402504035040450405504065040750408504095041050411504125041350414504155041650417504185041950420504215042250423504245042550426504275042850429504305043150432504335043450435504365043750438504395044050441504425044350444504455044650447504485044950450504515045250453504545045550456504575045850459504605046150462504635046450465504665046750468504695047050471504725047350474504755047650477504785047950480504815048250483504845048550486504875048850489504905049150492504935049450495504965049750498504995050050501505025050350504505055050650507505085050950510505115051250513505145051550516505175051850519505205052150522505235052450525505265052750528505295053050531505325053350534505355053650537505385053950540505415054250543505445054550546505475054850549505505055150552505535055450555505565055750558505595056050561505625056350564505655056650567505685056950570505715057250573505745057550576505775057850579505805058150582505835058450585505865058750588505895059050591505925059350594505955059650597505985059950600506015060250603506045060550606506075060850609506105061150612506135061450615506165061750618506195062050621506225062350624506255062650627506285062950630506315063250633506345063550636506375063850639506405064150642506435064450645506465064750648506495065050651506525065350654506555065650657506585065950660506615066250663506645066550666506675066850669506705067150672506735067450675506765067750678506795068050681506825068350684506855068650687506885068950690506915069250693506945069550696506975069850699507005070150702507035070450705507065070750708507095071050711507125071350714507155071650717507185071950720507215072250723507245072550726507275072850729507305073150732507335073450735507365073750738507395074050741507425074350744507455074650747507485074950750507515075250753507545075550756507575075850759507605076150762507635076450765507665076750768507695077050771507725077350774507755077650777507785077950780507815078250783507845078550786507875078850789507905079150792507935079450795507965079750798507995080050801508025080350804508055080650807508085080950810508115081250813508145081550816508175081850819508205082150822508235082450825508265082750828508295083050831508325083350834508355083650837508385083950840508415084250843508445084550846508475084850849508505085150852508535085450855508565085750858508595086050861508625086350864508655086650867508685086950870508715087250873508745087550876508775087850879508805088150882508835088450885508865088750888508895089050891508925089350894508955089650897508985089950900509015090250903509045090550906509075090850909509105091150912509135091450915509165091750918509195092050921509225092350924509255092650927509285092950930509315093250933509345093550936509375093850939509405094150942509435094450945509465094750948509495095050951509525095350954509555095650957509585095950960509615096250963509645096550966509675096850969509705097150972509735097450975509765097750978509795098050981509825098350984509855098650987509885098950990509915099250993509945099550996509975099850999510005100151002510035100451005510065100751008510095101051011510125101351014510155101651017510185101951020510215102251023510245102551026510275102851029510305103151032510335103451035510365103751038510395104051041510425104351044510455104651047510485104951050510515105251053510545105551056510575105851059510605106151062510635106451065510665106751068510695107051071510725107351074510755107651077510785107951080510815108251083510845108551086510875108851089510905109151092510935109451095510965109751098510995110051101511025110351104511055110651107511085110951110511115111251113511145111551116511175111851119511205112151122511235112451125511265112751128511295113051131511325113351134511355113651137511385113951140511415114251143511445114551146511475114851149511505115151152511535115451155511565115751158511595116051161511625116351164511655116651167511685116951170511715117251173511745117551176511775117851179511805118151182511835118451185511865118751188511895119051191511925119351194511955119651197511985119951200512015120251203512045120551206512075120851209512105121151212512135121451215512165121751218512195122051221512225122351224512255122651227512285122951230512315123251233512345123551236512375123851239512405124151242512435124451245512465124751248512495125051251512525125351254512555125651257512585125951260512615126251263512645126551266512675126851269512705127151272512735127451275512765127751278512795128051281512825128351284512855128651287512885128951290512915129251293512945129551296512975129851299513005130151302513035130451305513065130751308513095131051311513125131351314513155131651317513185131951320513215132251323513245132551326513275132851329513305133151332513335133451335513365133751338513395134051341513425134351344513455134651347513485134951350513515135251353513545135551356513575135851359513605136151362513635136451365513665136751368513695137051371513725137351374513755137651377513785137951380513815138251383513845138551386513875138851389513905139151392513935139451395513965139751398513995140051401514025140351404514055140651407514085140951410514115141251413514145141551416514175141851419514205142151422514235142451425514265142751428514295143051431514325143351434514355143651437514385143951440514415144251443514445144551446514475144851449514505145151452514535145451455514565145751458514595146051461514625146351464514655146651467514685146951470514715147251473514745147551476514775147851479514805148151482514835148451485514865148751488514895149051491514925149351494514955149651497514985149951500515015150251503515045150551506515075150851509515105151151512515135151451515515165151751518515195152051521515225152351524515255152651527515285152951530515315153251533515345153551536515375153851539515405154151542515435154451545515465154751548515495155051551515525155351554515555155651557515585155951560515615156251563515645156551566515675156851569515705157151572515735157451575515765157751578515795158051581515825158351584515855158651587515885158951590515915159251593515945159551596515975159851599516005160151602516035160451605516065160751608516095161051611516125161351614516155161651617516185161951620516215162251623516245162551626516275162851629516305163151632516335163451635516365163751638516395164051641516425164351644516455164651647516485164951650516515165251653516545165551656516575165851659516605166151662516635166451665516665166751668516695167051671516725167351674516755167651677516785167951680516815168251683516845168551686516875168851689516905169151692516935169451695516965169751698516995170051701517025170351704517055170651707517085170951710517115171251713517145171551716517175171851719517205172151722517235172451725517265172751728517295173051731517325173351734517355173651737517385173951740517415174251743517445174551746517475174851749517505175151752517535175451755517565175751758517595176051761517625176351764517655176651767517685176951770517715177251773517745177551776517775177851779517805178151782517835178451785517865178751788517895179051791517925179351794517955179651797517985179951800518015180251803518045180551806518075180851809518105181151812518135181451815518165181751818518195182051821518225182351824518255182651827518285182951830518315183251833518345183551836518375183851839518405184151842518435184451845518465184751848518495185051851518525185351854518555185651857518585185951860518615186251863518645186551866518675186851869518705187151872518735187451875518765187751878518795188051881518825188351884518855188651887518885188951890518915189251893518945189551896518975189851899519005190151902519035190451905519065190751908519095191051911519125191351914519155191651917519185191951920519215192251923519245192551926519275192851929519305193151932519335193451935519365193751938519395194051941519425194351944519455194651947519485194951950519515195251953519545195551956519575195851959519605196151962519635196451965519665196751968519695197051971519725197351974519755197651977519785197951980519815198251983519845198551986519875198851989519905199151992519935199451995519965199751998519995200052001520025200352004520055200652007520085200952010520115201252013520145201552016520175201852019520205202152022520235202452025520265202752028520295203052031520325203352034520355203652037520385203952040520415204252043520445204552046520475204852049520505205152052520535205452055520565205752058520595206052061520625206352064520655206652067520685206952070520715207252073520745207552076520775207852079520805208152082520835208452085520865208752088520895209052091520925209352094520955209652097520985209952100521015210252103521045210552106521075210852109521105211152112521135211452115521165211752118521195212052121521225212352124521255212652127521285212952130521315213252133521345213552136521375213852139521405214152142521435214452145521465214752148521495215052151521525215352154521555215652157521585215952160521615216252163521645216552166521675216852169521705217152172521735217452175521765217752178521795218052181521825218352184521855218652187521885218952190521915219252193521945219552196521975219852199522005220152202522035220452205522065220752208522095221052211522125221352214522155221652217522185221952220522215222252223522245222552226522275222852229522305223152232522335223452235522365223752238522395224052241522425224352244522455224652247522485224952250522515225252253522545225552256522575225852259522605226152262522635226452265522665226752268522695227052271522725227352274522755227652277522785227952280522815228252283522845228552286522875228852289522905229152292522935229452295522965229752298522995230052301523025230352304523055230652307523085230952310523115231252313523145231552316523175231852319523205232152322523235232452325523265232752328523295233052331523325233352334523355233652337523385233952340523415234252343523445234552346523475234852349523505235152352523535235452355523565235752358523595236052361523625236352364523655236652367523685236952370523715237252373523745237552376523775237852379523805238152382523835238452385523865238752388523895239052391523925239352394523955239652397523985239952400524015240252403524045240552406524075240852409524105241152412524135241452415524165241752418524195242052421524225242352424524255242652427524285242952430524315243252433524345243552436524375243852439524405244152442524435244452445524465244752448524495245052451524525245352454524555245652457524585245952460524615246252463524645246552466524675246852469524705247152472524735247452475524765247752478524795248052481524825248352484524855248652487524885248952490524915249252493524945249552496524975249852499525005250152502525035250452505525065250752508525095251052511525125251352514525155251652517525185251952520525215252252523525245252552526525275252852529525305253152532525335253452535525365253752538525395254052541525425254352544525455254652547525485254952550525515255252553525545255552556525575255852559525605256152562525635256452565525665256752568525695257052571525725257352574525755257652577525785257952580525815258252583525845258552586525875258852589525905259152592525935259452595525965259752598525995260052601526025260352604526055260652607526085260952610526115261252613526145261552616526175261852619526205262152622526235262452625526265262752628526295263052631526325263352634526355263652637526385263952640526415264252643526445264552646526475264852649526505265152652526535265452655526565265752658526595266052661526625266352664526655266652667526685266952670526715267252673526745267552676526775267852679526805268152682526835268452685526865268752688526895269052691526925269352694526955269652697526985269952700527015270252703527045270552706527075270852709527105271152712527135271452715527165271752718527195272052721527225272352724527255272652727527285272952730527315273252733527345273552736527375273852739527405274152742527435274452745527465274752748527495275052751527525275352754527555275652757527585275952760527615276252763527645276552766527675276852769527705277152772527735277452775527765277752778527795278052781527825278352784527855278652787527885278952790527915279252793527945279552796527975279852799528005280152802528035280452805528065280752808528095281052811528125281352814528155281652817528185281952820528215282252823528245282552826528275282852829528305283152832528335283452835528365283752838528395284052841528425284352844528455284652847528485284952850528515285252853528545285552856528575285852859528605286152862528635286452865528665286752868528695287052871528725287352874528755287652877528785287952880528815288252883528845288552886528875288852889528905289152892528935289452895528965289752898528995290052901529025290352904529055290652907529085290952910529115291252913529145291552916529175291852919529205292152922529235292452925529265292752928529295293052931529325293352934529355293652937529385293952940529415294252943529445294552946529475294852949529505295152952529535295452955529565295752958529595296052961529625296352964529655296652967529685296952970529715297252973529745297552976529775297852979529805298152982529835298452985529865298752988529895299052991529925299352994529955299652997529985299953000530015300253003530045300553006530075300853009530105301153012530135301453015530165301753018530195302053021530225302353024530255302653027530285302953030530315303253033530345303553036530375303853039530405304153042530435304453045530465304753048530495305053051530525305353054530555305653057530585305953060530615306253063530645306553066530675306853069530705307153072530735307453075530765307753078530795308053081530825308353084530855308653087530885308953090530915309253093530945309553096530975309853099531005310153102531035310453105531065310753108531095311053111531125311353114531155311653117531185311953120531215312253123531245312553126531275312853129531305313153132531335313453135531365313753138531395314053141531425314353144531455314653147531485314953150531515315253153531545315553156531575315853159531605316153162531635316453165531665316753168531695317053171531725317353174531755317653177531785317953180531815318253183531845318553186531875318853189531905319153192531935319453195531965319753198531995320053201532025320353204532055320653207532085320953210532115321253213532145321553216532175321853219532205322153222532235322453225532265322753228532295323053231532325323353234532355323653237532385323953240532415324253243532445324553246532475324853249532505325153252532535325453255532565325753258532595326053261532625326353264532655326653267532685326953270532715327253273532745327553276532775327853279532805328153282532835328453285532865328753288532895329053291532925329353294532955329653297532985329953300533015330253303533045330553306533075330853309533105331153312533135331453315533165331753318533195332053321533225332353324533255332653327533285332953330533315333253333533345333553336533375333853339533405334153342533435334453345533465334753348533495335053351533525335353354533555335653357533585335953360533615336253363533645336553366533675336853369533705337153372533735337453375533765337753378533795338053381533825338353384533855338653387533885338953390533915339253393533945339553396533975339853399534005340153402534035340453405534065340753408534095341053411534125341353414534155341653417534185341953420534215342253423534245342553426534275342853429534305343153432534335343453435534365343753438534395344053441534425344353444534455344653447534485344953450534515345253453534545345553456534575345853459534605346153462534635346453465534665346753468534695347053471534725347353474534755347653477534785347953480534815348253483534845348553486534875348853489534905349153492534935349453495534965349753498534995350053501535025350353504535055350653507535085350953510535115351253513535145351553516535175351853519535205352153522535235352453525535265352753528535295353053531535325353353534535355353653537535385353953540535415354253543535445354553546535475354853549535505355153552535535355453555535565355753558535595356053561535625356353564535655356653567535685356953570535715357253573535745357553576535775357853579535805358153582535835358453585535865358753588535895359053591535925359353594535955359653597535985359953600536015360253603536045360553606536075360853609536105361153612536135361453615536165361753618536195362053621536225362353624536255362653627536285362953630536315363253633536345363553636536375363853639536405364153642536435364453645536465364753648536495365053651536525365353654536555365653657536585365953660536615366253663536645366553666536675366853669536705367153672536735367453675536765367753678536795368053681536825368353684536855368653687536885368953690536915369253693536945369553696536975369853699537005370153702537035370453705537065370753708537095371053711537125371353714537155371653717537185371953720537215372253723537245372553726537275372853729537305373153732537335373453735537365373753738537395374053741537425374353744537455374653747537485374953750537515375253753537545375553756537575375853759537605376153762537635376453765537665376753768537695377053771537725377353774537755377653777537785377953780537815378253783537845378553786537875378853789537905379153792537935379453795537965379753798537995380053801538025380353804538055380653807538085380953810538115381253813538145381553816538175381853819538205382153822538235382453825538265382753828538295383053831538325383353834538355383653837538385383953840538415384253843538445384553846538475384853849538505385153852538535385453855538565385753858538595386053861538625386353864538655386653867538685386953870538715387253873538745387553876538775387853879538805388153882538835388453885538865388753888538895389053891538925389353894538955389653897538985389953900539015390253903539045390553906539075390853909539105391153912539135391453915539165391753918539195392053921539225392353924539255392653927539285392953930539315393253933539345393553936539375393853939539405394153942539435394453945539465394753948539495395053951539525395353954539555395653957539585395953960539615396253963539645396553966539675396853969539705397153972539735397453975539765397753978539795398053981539825398353984539855398653987539885398953990539915399253993539945399553996539975399853999540005400154002540035400454005540065400754008540095401054011540125401354014540155401654017540185401954020540215402254023540245402554026540275402854029540305403154032540335403454035540365403754038540395404054041540425404354044540455404654047540485404954050540515405254053540545405554056540575405854059540605406154062540635406454065540665406754068540695407054071540725407354074540755407654077540785407954080540815408254083540845408554086540875408854089540905409154092540935409454095540965409754098540995410054101541025410354104541055410654107541085410954110541115411254113541145411554116541175411854119541205412154122541235412454125541265412754128541295413054131541325413354134541355413654137541385413954140541415414254143541445414554146541475414854149541505415154152541535415454155541565415754158541595416054161541625416354164541655416654167541685416954170541715417254173541745417554176541775417854179541805418154182541835418454185541865418754188541895419054191541925419354194541955419654197541985419954200542015420254203542045420554206542075420854209542105421154212542135421454215542165421754218542195422054221542225422354224542255422654227542285422954230542315423254233542345423554236542375423854239542405424154242542435424454245542465424754248542495425054251542525425354254542555425654257542585425954260542615426254263542645426554266542675426854269542705427154272542735427454275542765427754278542795428054281542825428354284542855428654287542885428954290542915429254293542945429554296542975429854299543005430154302543035430454305543065430754308543095431054311543125431354314543155431654317543185431954320543215432254323543245432554326543275432854329543305433154332543335433454335543365433754338543395434054341543425434354344543455434654347543485434954350543515435254353543545435554356543575435854359543605436154362543635436454365543665436754368543695437054371543725437354374543755437654377543785437954380543815438254383543845438554386543875438854389543905439154392543935439454395543965439754398543995440054401544025440354404544055440654407544085440954410544115441254413544145441554416544175441854419544205442154422544235442454425544265442754428544295443054431544325443354434544355443654437544385443954440544415444254443544445444554446544475444854449544505445154452544535445454455544565445754458544595446054461544625446354464544655446654467544685446954470544715447254473544745447554476544775447854479544805448154482544835448454485544865448754488544895449054491544925449354494544955449654497544985449954500545015450254503545045450554506545075450854509545105451154512545135451454515545165451754518545195452054521545225452354524545255452654527545285452954530545315453254533545345453554536545375453854539545405454154542545435454454545545465454754548545495455054551545525455354554545555455654557545585455954560545615456254563545645456554566545675456854569545705457154572545735457454575545765457754578545795458054581545825458354584545855458654587545885458954590545915459254593545945459554596545975459854599546005460154602546035460454605546065460754608546095461054611546125461354614546155461654617546185461954620546215462254623546245462554626546275462854629546305463154632546335463454635546365463754638546395464054641546425464354644546455464654647546485464954650546515465254653546545465554656546575465854659546605466154662546635466454665546665466754668546695467054671546725467354674546755467654677546785467954680546815468254683546845468554686546875468854689546905469154692546935469454695546965469754698546995470054701547025470354704547055470654707547085470954710547115471254713547145471554716547175471854719547205472154722547235472454725547265472754728547295473054731547325473354734547355473654737547385473954740547415474254743547445474554746547475474854749547505475154752547535475454755547565475754758547595476054761547625476354764547655476654767547685476954770547715477254773547745477554776547775477854779547805478154782547835478454785547865478754788547895479054791547925479354794547955479654797547985479954800548015480254803548045480554806548075480854809548105481154812548135481454815548165481754818548195482054821548225482354824548255482654827548285482954830548315483254833548345483554836548375483854839548405484154842548435484454845548465484754848548495485054851548525485354854548555485654857548585485954860548615486254863548645486554866548675486854869548705487154872548735487454875548765487754878548795488054881548825488354884548855488654887548885488954890548915489254893548945489554896548975489854899549005490154902549035490454905549065490754908549095491054911549125491354914549155491654917549185491954920549215492254923549245492554926549275492854929549305493154932549335493454935549365493754938549395494054941549425494354944549455494654947549485494954950549515495254953549545495554956549575495854959549605496154962549635496454965549665496754968549695497054971549725497354974549755497654977549785497954980549815498254983549845498554986549875498854989549905499154992549935499454995549965499754998549995500055001550025500355004550055500655007550085500955010550115501255013550145501555016550175501855019550205502155022550235502455025550265502755028550295503055031550325503355034550355503655037550385503955040550415504255043550445504555046550475504855049550505505155052550535505455055550565505755058550595506055061550625506355064550655506655067550685506955070550715507255073550745507555076550775507855079550805508155082550835508455085550865508755088550895509055091550925509355094550955509655097550985509955100551015510255103551045510555106551075510855109551105511155112551135511455115551165511755118551195512055121551225512355124551255512655127551285512955130551315513255133551345513555136551375513855139551405514155142551435514455145551465514755148551495515055151551525515355154551555515655157551585515955160551615516255163551645516555166551675516855169551705517155172551735517455175551765517755178551795518055181551825518355184551855518655187551885518955190551915519255193551945519555196551975519855199552005520155202552035520455205552065520755208552095521055211552125521355214552155521655217552185521955220552215522255223552245522555226552275522855229552305523155232552335523455235552365523755238552395524055241552425524355244552455524655247552485524955250552515525255253552545525555256552575525855259552605526155262552635526455265552665526755268552695527055271552725527355274552755527655277552785527955280552815528255283552845528555286552875528855289552905529155292552935529455295552965529755298552995530055301553025530355304553055530655307553085530955310553115531255313553145531555316553175531855319553205532155322553235532455325553265532755328553295533055331553325533355334553355533655337553385533955340553415534255343553445534555346553475534855349553505535155352553535535455355553565535755358553595536055361553625536355364553655536655367553685536955370553715537255373553745537555376553775537855379553805538155382553835538455385553865538755388553895539055391553925539355394553955539655397553985539955400554015540255403554045540555406554075540855409554105541155412554135541455415554165541755418554195542055421554225542355424554255542655427554285542955430554315543255433554345543555436554375543855439554405544155442554435544455445554465544755448554495545055451554525545355454554555545655457554585545955460554615546255463554645546555466554675546855469554705547155472554735547455475554765547755478554795548055481554825548355484554855548655487554885548955490554915549255493554945549555496554975549855499555005550155502555035550455505555065550755508555095551055511555125551355514555155551655517555185551955520555215552255523555245552555526555275552855529555305553155532555335553455535555365553755538555395554055541555425554355544555455554655547555485554955550555515555255553555545555555556555575555855559555605556155562555635556455565555665556755568555695557055571555725557355574555755557655577555785557955580555815558255583555845558555586555875558855589555905559155592555935559455595555965559755598555995560055601556025560355604556055560655607556085560955610556115561255613556145561555616556175561855619556205562155622556235562455625556265562755628556295563055631556325563355634556355563655637556385563955640556415564255643556445564555646556475564855649556505565155652556535565455655556565565755658556595566055661556625566355664556655566655667556685566955670556715567255673556745567555676556775567855679556805568155682556835568455685556865568755688556895569055691556925569355694556955569655697556985569955700557015570255703557045570555706557075570855709557105571155712557135571455715557165571755718557195572055721557225572355724557255572655727557285572955730557315573255733557345573555736557375573855739557405574155742557435574455745557465574755748557495575055751557525575355754557555575655757557585575955760557615576255763557645576555766557675576855769557705577155772557735577455775557765577755778557795578055781557825578355784557855578655787557885578955790557915579255793557945579555796557975579855799558005580155802558035580455805558065580755808558095581055811558125581355814558155581655817558185581955820558215582255823558245582555826558275582855829558305583155832558335583455835558365583755838558395584055841558425584355844558455584655847558485584955850558515585255853558545585555856558575585855859558605586155862558635586455865558665586755868558695587055871558725587355874558755587655877558785587955880558815588255883558845588555886558875588855889558905589155892558935589455895558965589755898558995590055901559025590355904559055590655907559085590955910559115591255913559145591555916559175591855919559205592155922559235592455925559265592755928559295593055931559325593355934559355593655937559385593955940559415594255943559445594555946559475594855949559505595155952559535595455955559565595755958559595596055961559625596355964559655596655967559685596955970559715597255973559745597555976559775597855979559805598155982559835598455985559865598755988559895599055991559925599355994559955599655997559985599956000560015600256003560045600556006560075600856009560105601156012560135601456015560165601756018560195602056021560225602356024560255602656027560285602956030560315603256033560345603556036560375603856039560405604156042560435604456045560465604756048560495605056051560525605356054560555605656057560585605956060560615606256063560645606556066560675606856069560705607156072560735607456075560765607756078560795608056081560825608356084560855608656087560885608956090560915609256093560945609556096560975609856099561005610156102561035610456105561065610756108561095611056111561125611356114561155611656117561185611956120561215612256123561245612556126561275612856129561305613156132561335613456135561365613756138561395614056141561425614356144561455614656147561485614956150561515615256153561545615556156561575615856159561605616156162561635616456165561665616756168561695617056171561725617356174561755617656177561785617956180561815618256183561845618556186561875618856189561905619156192561935619456195561965619756198561995620056201562025620356204562055620656207562085620956210562115621256213562145621556216562175621856219562205622156222562235622456225562265622756228562295623056231562325623356234562355623656237562385623956240562415624256243562445624556246562475624856249562505625156252562535625456255562565625756258562595626056261562625626356264562655626656267562685626956270562715627256273562745627556276562775627856279562805628156282562835628456285562865628756288562895629056291562925629356294562955629656297562985629956300563015630256303563045630556306563075630856309563105631156312563135631456315563165631756318563195632056321563225632356324563255632656327563285632956330563315633256333563345633556336563375633856339563405634156342563435634456345563465634756348563495635056351563525635356354563555635656357563585635956360563615636256363563645636556366563675636856369563705637156372563735637456375563765637756378563795638056381563825638356384563855638656387563885638956390563915639256393563945639556396563975639856399564005640156402564035640456405564065640756408564095641056411564125641356414564155641656417564185641956420564215642256423564245642556426564275642856429564305643156432564335643456435564365643756438564395644056441564425644356444564455644656447564485644956450564515645256453564545645556456564575645856459564605646156462564635646456465564665646756468564695647056471564725647356474564755647656477564785647956480564815648256483564845648556486564875648856489564905649156492564935649456495564965649756498564995650056501565025650356504565055650656507565085650956510565115651256513565145651556516565175651856519565205652156522565235652456525565265652756528565295653056531565325653356534565355653656537565385653956540565415654256543565445654556546565475654856549565505655156552565535655456555565565655756558565595656056561565625656356564565655656656567565685656956570565715657256573565745657556576565775657856579565805658156582565835658456585565865658756588565895659056591565925659356594565955659656597565985659956600566015660256603566045660556606566075660856609566105661156612566135661456615566165661756618566195662056621566225662356624566255662656627566285662956630566315663256633566345663556636566375663856639566405664156642566435664456645566465664756648566495665056651566525665356654566555665656657566585665956660566615666256663566645666556666566675666856669566705667156672566735667456675566765667756678566795668056681566825668356684566855668656687566885668956690566915669256693566945669556696566975669856699567005670156702567035670456705567065670756708567095671056711567125671356714567155671656717567185671956720567215672256723567245672556726567275672856729567305673156732567335673456735567365673756738567395674056741567425674356744567455674656747567485674956750567515675256753567545675556756567575675856759567605676156762567635676456765567665676756768567695677056771567725677356774567755677656777567785677956780567815678256783567845678556786567875678856789567905679156792567935679456795567965679756798567995680056801568025680356804568055680656807568085680956810568115681256813568145681556816568175681856819568205682156822568235682456825568265682756828568295683056831568325683356834568355683656837568385683956840568415684256843568445684556846568475684856849568505685156852568535685456855568565685756858568595686056861568625686356864568655686656867568685686956870568715687256873568745687556876568775687856879568805688156882568835688456885568865688756888568895689056891568925689356894568955689656897568985689956900569015690256903569045690556906569075690856909569105691156912569135691456915569165691756918569195692056921569225692356924569255692656927569285692956930569315693256933569345693556936569375693856939569405694156942569435694456945569465694756948569495695056951569525695356954569555695656957569585695956960569615696256963569645696556966569675696856969569705697156972569735697456975569765697756978569795698056981569825698356984569855698656987569885698956990569915699256993569945699556996569975699856999570005700157002570035700457005570065700757008570095701057011570125701357014570155701657017570185701957020570215702257023570245702557026570275702857029570305703157032570335703457035570365703757038570395704057041570425704357044570455704657047570485704957050570515705257053570545705557056570575705857059570605706157062570635706457065570665706757068570695707057071570725707357074570755707657077570785707957080570815708257083570845708557086570875708857089570905709157092570935709457095570965709757098570995710057101571025710357104571055710657107571085710957110571115711257113571145711557116571175711857119571205712157122571235712457125571265712757128571295713057131571325713357134571355713657137571385713957140571415714257143571445714557146571475714857149571505715157152571535715457155571565715757158571595716057161571625716357164571655716657167571685716957170571715717257173571745717557176571775717857179571805718157182571835718457185571865718757188571895719057191571925719357194571955719657197571985719957200572015720257203572045720557206572075720857209572105721157212572135721457215572165721757218572195722057221572225722357224572255722657227572285722957230572315723257233572345723557236572375723857239572405724157242572435724457245572465724757248572495725057251572525725357254572555725657257572585725957260572615726257263572645726557266572675726857269572705727157272572735727457275572765727757278572795728057281572825728357284572855728657287572885728957290572915729257293572945729557296572975729857299573005730157302573035730457305573065730757308573095731057311573125731357314573155731657317573185731957320573215732257323573245732557326573275732857329573305733157332573335733457335573365733757338573395734057341573425734357344573455734657347573485734957350573515735257353573545735557356573575735857359573605736157362573635736457365573665736757368573695737057371573725737357374573755737657377573785737957380573815738257383573845738557386573875738857389573905739157392573935739457395573965739757398573995740057401574025740357404574055740657407574085740957410574115741257413574145741557416574175741857419574205742157422574235742457425574265742757428574295743057431574325743357434574355743657437574385743957440574415744257443574445744557446574475744857449574505745157452574535745457455574565745757458574595746057461574625746357464574655746657467574685746957470574715747257473574745747557476574775747857479574805748157482574835748457485574865748757488574895749057491574925749357494574955749657497574985749957500575015750257503575045750557506575075750857509575105751157512575135751457515575165751757518575195752057521575225752357524575255752657527575285752957530575315753257533575345753557536575375753857539575405754157542575435754457545575465754757548575495755057551575525755357554575555755657557575585755957560575615756257563575645756557566575675756857569575705757157572575735757457575575765757757578575795758057581575825758357584575855758657587575885758957590575915759257593575945759557596575975759857599576005760157602576035760457605576065760757608576095761057611576125761357614576155761657617576185761957620576215762257623576245762557626576275762857629576305763157632576335763457635576365763757638576395764057641576425764357644576455764657647576485764957650576515765257653576545765557656576575765857659576605766157662576635766457665576665766757668576695767057671576725767357674576755767657677576785767957680576815768257683576845768557686576875768857689576905769157692576935769457695576965769757698576995770057701577025770357704577055770657707577085770957710577115771257713577145771557716577175771857719577205772157722577235772457725577265772757728577295773057731577325773357734577355773657737577385773957740577415774257743577445774557746577475774857749577505775157752577535775457755577565775757758577595776057761577625776357764577655776657767577685776957770577715777257773577745777557776577775777857779577805778157782577835778457785577865778757788577895779057791577925779357794577955779657797577985779957800578015780257803578045780557806578075780857809578105781157812578135781457815578165781757818578195782057821578225782357824578255782657827578285782957830578315783257833578345783557836578375783857839578405784157842578435784457845578465784757848578495785057851578525785357854578555785657857578585785957860578615786257863578645786557866578675786857869578705787157872578735787457875578765787757878578795788057881578825788357884578855788657887578885788957890578915789257893578945789557896578975789857899579005790157902579035790457905579065790757908579095791057911579125791357914579155791657917579185791957920579215792257923579245792557926579275792857929579305793157932579335793457935579365793757938579395794057941579425794357944579455794657947579485794957950579515795257953579545795557956579575795857959579605796157962579635796457965579665796757968579695797057971579725797357974579755797657977579785797957980579815798257983579845798557986579875798857989579905799157992579935799457995579965799757998579995800058001580025800358004580055800658007580085800958010580115801258013580145801558016580175801858019580205802158022580235802458025580265802758028580295803058031580325803358034580355803658037580385803958040580415804258043580445804558046580475804858049580505805158052580535805458055580565805758058580595806058061580625806358064580655806658067580685806958070580715807258073580745807558076580775807858079580805808158082580835808458085580865808758088580895809058091580925809358094580955809658097580985809958100581015810258103581045810558106581075810858109581105811158112581135811458115581165811758118581195812058121581225812358124581255812658127581285812958130581315813258133581345813558136581375813858139581405814158142581435814458145581465814758148581495815058151581525815358154581555815658157581585815958160581615816258163581645816558166581675816858169581705817158172581735817458175581765817758178581795818058181581825818358184581855818658187581885818958190581915819258193581945819558196581975819858199582005820158202582035820458205582065820758208582095821058211582125821358214582155821658217582185821958220582215822258223582245822558226582275822858229582305823158232582335823458235582365823758238582395824058241582425824358244582455824658247582485824958250582515825258253582545825558256582575825858259582605826158262582635826458265582665826758268582695827058271582725827358274582755827658277582785827958280582815828258283582845828558286582875828858289582905829158292582935829458295582965829758298582995830058301583025830358304583055830658307583085830958310583115831258313583145831558316583175831858319583205832158322583235832458325583265832758328583295833058331583325833358334583355833658337583385833958340583415834258343583445834558346583475834858349583505835158352583535835458355583565835758358583595836058361583625836358364583655836658367583685836958370583715837258373583745837558376583775837858379583805838158382583835838458385583865838758388583895839058391583925839358394583955839658397583985839958400584015840258403584045840558406584075840858409584105841158412584135841458415584165841758418584195842058421584225842358424584255842658427584285842958430584315843258433584345843558436584375843858439584405844158442584435844458445584465844758448584495845058451584525845358454584555845658457584585845958460584615846258463584645846558466584675846858469584705847158472584735847458475584765847758478584795848058481584825848358484584855848658487584885848958490584915849258493584945849558496584975849858499585005850158502585035850458505585065850758508585095851058511585125851358514585155851658517585185851958520585215852258523585245852558526585275852858529585305853158532585335853458535
  1. /******/ (() => { // webpackBootstrap
  2. /******/ var __webpack_modules__ = ({
  3. /***/ "./node_modules/@inertiajs/inertia-vue3/dist/index.js":
  4. /*!************************************************************!*\
  5. !*** ./node_modules/@inertiajs/inertia-vue3/dist/index.js ***!
  6. \************************************************************/
  7. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  8. function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var r=e(__webpack_require__(/*! lodash.isequal */ "./node_modules/lodash.isequal/index.js")),t=__webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js"),n=e(__webpack_require__(/*! lodash.clonedeep */ "./node_modules/lodash.clonedeep/index.js")),o=__webpack_require__(/*! @inertiajs/inertia */ "./node_modules/@inertiajs/inertia/dist/index.js");function i(){return(i=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function a(){var e=[].slice.call(arguments),a="string"==typeof e[0]?e[0]:null,u=("string"==typeof e[0]?e[1]:e[0])||{},s=a?o.Inertia.restore(a):null,c=n(u),l=null,p=null,f=function(e){return e},d=t.reactive(i({},s?s.data:u,{isDirty:!1,errors:s?s.errors:{},hasErrors:!1,processing:!1,progress:null,wasSuccessful:!1,recentlySuccessful:!1,data:function(){var e=this;return Object.keys(u).reduce(function(r,t){return r[t]=e[t],r},{})},transform:function(e){return f=e,this},defaults:function(e,r){var t;return c=void 0===e?this.data():Object.assign({},n(c),r?((t={})[e]=r,t):e),this},reset:function(){var e=[].slice.call(arguments),r=n(c);return Object.assign(this,0===e.length?r:Object.keys(r).filter(function(r){return e.includes(r)}).reduce(function(e,t){return e[t]=r[t],e},{})),this},setError:function(e,r){var t;return Object.assign(this.errors,r?((t={})[e]=r,t):e),this.hasErrors=Object.keys(this.errors).length>0,this},clearErrors:function(){var e=this,r=[].slice.call(arguments);return this.errors=Object.keys(this.errors).reduce(function(t,n){var o;return i({},t,r.length>0&&!r.includes(n)?((o={})[n]=e.errors[n],o):{})},{}),this.hasErrors=Object.keys(this.errors).length>0,this},submit:function(e,r,t){var a=this,u=this;void 0===t&&(t={});var s=f(this.data()),d=i({},t,{onCancelToken:function(e){if(l=e,t.onCancelToken)return t.onCancelToken(e)},onBefore:function(e){if(u.wasSuccessful=!1,u.recentlySuccessful=!1,clearTimeout(p),t.onBefore)return t.onBefore(e)},onStart:function(e){if(u.processing=!0,t.onStart)return t.onStart(e)},onProgress:function(e){if(u.progress=e,t.onProgress)return t.onProgress(e)},onSuccess:function(e){try{var r=function(e){return c=n(a.data()),a.isDirty=!1,e};return a.processing=!1,a.progress=null,a.clearErrors(),a.wasSuccessful=!0,a.recentlySuccessful=!0,p=setTimeout(function(){return a.recentlySuccessful=!1},2e3),Promise.resolve(t.onSuccess?Promise.resolve(t.onSuccess(e)).then(r):r(null))}catch(e){return Promise.reject(e)}},onError:function(e){if(u.processing=!1,u.progress=null,u.clearErrors().setError(e),t.onError)return t.onError(e)},onCancel:function(){if(u.processing=!1,u.progress=null,t.onCancel)return t.onCancel()},onFinish:function(){if(u.processing=!1,u.progress=null,l=null,t.onFinish)return t.onFinish()}});"delete"===e?o.Inertia.delete(r,i({},d,{data:s})):o.Inertia[e](r,s,d)},get:function(e,r){this.submit("get",e,r)},post:function(e,r){this.submit("post",e,r)},put:function(e,r){this.submit("put",e,r)},patch:function(e,r){this.submit("patch",e,r)},delete:function(e,r){this.submit("delete",e,r)},cancel:function(){l&&l.cancel()},__rememberable:null===a,__remember:function(){return{data:this.data(),errors:this.errors}},__restore:function(e){Object.assign(this,e.data),this.setError(e.errors)}}));return t.watch(d,function(e){d.isDirty=!r(d.data(),c),a&&o.Inertia.remember(n(e.__remember()),a)},{immediate:!0,deep:!0}),d}var u={created:function(){var e=this;if(this.$options.remember){Array.isArray(this.$options.remember)&&(this.$options.remember={data:this.$options.remember}),"string"==typeof this.$options.remember&&(this.$options.remember={data:[this.$options.remember]}),"string"==typeof this.$options.remember.data&&(this.$options.remember={data:[this.$options.remember.data]});var r=this.$options.remember.key instanceof Function?this.$options.remember.key.call(this):this.$options.remember.key,t=o.Inertia.restore(r),a=this.$options.remember.data.filter(function(r){return!(null!==e[r]&&"object"==typeof e[r]&&!1===e[r].__rememberable)}),u=function(r){return null!==e[r]&&"object"==typeof e[r]&&"function"==typeof e[r].__remember&&"function"==typeof e[r].__restore};a.forEach(function(s){void 0!==e[s]&&void 0!==t&&void 0!==t[s]&&(u(s)?e[s].__restore(t[s]):e[s]=t[s]),e.$watch(s,function(){o.Inertia.remember(a.reduce(function(r,t){var o;return i({},r,((o={})[t]=n(u(t)?e[t].__remember():e[t]),o))},{}),r)},{immediate:!0,deep:!0})})}}},s=t.ref(null),c=t.ref({}),l=t.ref(null),p=null,f={name:"Inertia",props:{initialPage:{type:Object,required:!0},initialComponent:{type:Object,required:!1},resolveComponent:{type:Function,required:!1},titleCallback:{type:Function,required:!1,default:function(e){return e}},onHeadUpdate:{type:Function,required:!1,default:function(){return function(){}}}},setup:function(e){var r=e.initialPage,n=e.initialComponent,a=e.resolveComponent,u=e.titleCallback,f=e.onHeadUpdate;s.value=n?t.markRaw(n):null,c.value=r,l.value=null;var d="undefined"==typeof window;return p=o.createHeadManager(d,u,f),d||o.Inertia.init({initialPage:r,resolveComponent:a,swapComponent:function(e){try{return s.value=t.markRaw(e.component),c.value=e.page,l.value=e.preserveState?l.value:Date.now(),Promise.resolve()}catch(e){return Promise.reject(e)}}}),function(){if(s.value){s.value.inheritAttrs=!!s.value.inheritAttrs;var e=t.h(s.value,i({},c.value.props,{key:l.value}));return s.value.layout?"function"==typeof s.value.layout?s.value.layout(t.h,e):(Array.isArray(s.value.layout)?s.value.layout:[s.value.layout]).concat(e).reverse().reduce(function(e,r){return r.inheritAttrs=!!r.inheritAttrs,t.h(r,i({},c.value.props),function(){return e})}):e}}}},d={install:function(e){o.Inertia.form=a,Object.defineProperty(e.config.globalProperties,"$inertia",{get:function(){return o.Inertia}}),Object.defineProperty(e.config.globalProperties,"$page",{get:function(){return c.value}}),Object.defineProperty(e.config.globalProperties,"$headManager",{get:function(){return p}}),e.mixin(u)}},h={props:{title:{type:String,required:!1}},data:function(){return{provider:this.$headManager.createProvider()}},beforeUnmount:function(){this.provider.disconnect()},methods:{isUnaryTag:function(e){return["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"].indexOf(e.type)>-1},renderTagStart:function(e){e.props=e.props||{},e.props.inertia=void 0!==e.props["head-key"]?e.props["head-key"]:"";var r=Object.keys(e.props).reduce(function(r,t){var n=e.props[t];return["key","head-key"].includes(t)?r:""===n?r+" "+t:r+" "+t+'="'+n+'"'},"");return"<"+e.type+r+">"},renderTagChildren:function(e){var r=this;return"string"==typeof e.children?e.children:e.children.reduce(function(e,t){return e+r.renderTag(t)},"")},renderTag:function(e){if("Symbol(Text)"===e.type.toString())return e.children;if("Symbol()"===e.type.toString())return"";if("Symbol(Comment)"===e.type.toString())return"";var r=this.renderTagStart(e);return e.children&&(r+=this.renderTagChildren(e)),this.isUnaryTag(e)||(r+="</"+e.type+">"),r},addTitleElement:function(e){return this.title&&!e.find(function(e){return e.startsWith("<title")})&&e.push("<title inertia>"+this.title+"</title>"),e},renderNodes:function(e){var r=this;return this.addTitleElement(e.flatMap(function(e){return"Symbol(Fragment)"===e.type.toString()?e.children:e}).map(function(e){return r.renderTag(e)}).filter(function(e){return e}))}},render:function(){this.provider.update(this.renderNodes(this.$slots.default?this.$slots.default():[]))}},m={name:"InertiaLink",props:{as:{type:String,default:"a"},data:{type:Object,default:function(){return{}}},href:{type:String},method:{type:String,default:"get"},replace:{type:Boolean,default:!1},preserveScroll:{type:Boolean,default:!1},preserveState:{type:Boolean,default:null},only:{type:Array,default:function(){return[]}},headers:{type:Object,default:function(){return{}}},queryStringArrayFormat:{type:String,default:"brackets"}},setup:function(e,r){var n=r.slots,a=r.attrs;return function(e){var r=e.as.toLowerCase(),u=e.method.toLowerCase(),s=o.mergeDataIntoQueryString(u,e.href||"",e.data,e.queryStringArrayFormat),c=s[0],l=s[1];return"a"===r&&"get"!==u&&console.warn('Creating POST/PUT/PATCH/DELETE <a> links is discouraged as it causes "Open Link in New Tab/Window" accessibility issues.\n\nPlease specify a more appropriate element using the "as" attribute. For example:\n\n<Link href="'+c+'" method="'+u+'" as="button">...</Link>'),t.h(e.as,i({},a,"a"===r?{href:c}:{},{onClick:function(r){var t;o.shouldIntercept(r)&&(r.preventDefault(),o.Inertia.visit(c,{data:l,method:u,replace:e.replace,preserveScroll:e.preserveScroll,preserveState:null!=(t=e.preserveState)?t:"get"!==u,only:e.only,headers:e.headers,onCancelToken:a.onCancelToken||function(){return{}},onBefore:a.onBefore||function(){return{}},onStart:a.onStart||function(){return{}},onProgress:a.onProgress||function(){return{}},onFinish:a.onFinish||function(){return{}},onCancel:a.onCancel||function(){return{}},onSuccess:a.onSuccess||function(){return{}},onError:a.onError||function(){return{}}}))}}),n)}}};exports.App=f,exports.Head=h,exports.InertiaApp=f,exports.InertiaHead=h,exports.InertiaLink=m,exports.Link=m,exports.app=f,exports.createInertiaApp=function(e){try{var r,n,o,i,a,u,s;n=void 0===(r=e.id)?"app":r,o=e.resolve,i=e.setup,a=e.title,u=e.page,s=e.render;var c="undefined"==typeof window,l=c?null:document.getElementById(n),p=u||JSON.parse(l.dataset.page),h=function(e){return Promise.resolve(o(e)).then(function(e){return e.default||e})},m=[];return Promise.resolve(h(p.component).then(function(e){return i({el:l,app:f,App:f,props:{initialPage:p,initialComponent:e,resolveComponent:h,titleCallback:a,onHeadUpdate:c?function(e){return m=e}:null},plugin:d})})).then(function(e){return function(){if(c)return Promise.resolve(s(t.createSSRApp({render:function(){return t.h("div",{id:n,"data-page":JSON.stringify(p),innerHTML:s(e)})}}))).then(function(e){return{head:m,body:e}})}()})}catch(e){return Promise.reject(e)}},exports.link=m,exports.plugin=d,exports.useForm=a,exports.usePage=function(){return{props:t.computed(function(){return c.value.props}),url:t.computed(function(){return c.value.url}),component:t.computed(function(){return c.value.component}),version:t.computed(function(){return c.value.version})}},exports.useRemember=function(e,r){if("object"==typeof e&&null!==e&&!1===e.__rememberable)return e;var i=o.Inertia.restore(r),a=t.isReactive(e)?t.reactive:t.ref,u="function"==typeof e.__remember&&"function"==typeof e.__restore,s=void 0===i?e:a(u?e.__restore(i):i);return t.watch(s,function(t){o.Inertia.remember(n(u?e.__remember():t),r)},{immediate:!0,deep:!0}),s};
  9. //# sourceMappingURL=index.js.map
  10. /***/ }),
  11. /***/ "./node_modules/@inertiajs/inertia/dist/index.js":
  12. /*!*******************************************************!*\
  13. !*** ./node_modules/@inertiajs/inertia/dist/index.js ***!
  14. \*******************************************************/
  15. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  16. function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var t=e(__webpack_require__(/*! axios */ "./node_modules/@inertiajs/inertia/node_modules/axios/index.js")),n=__webpack_require__(/*! qs */ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/index.js"),i=e(__webpack_require__(/*! deepmerge */ "./node_modules/deepmerge/dist/cjs.js"));function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var o,s={modal:null,listener:null,show:function(e){var t=this;"object"==typeof e&&(e="All Inertia requests must receive a valid Inertia response, however a plain JSON response was received.<hr>"+JSON.stringify(e));var n=document.createElement("html");n.innerHTML=e,n.querySelectorAll("a").forEach(function(e){return e.setAttribute("target","_top")}),this.modal=document.createElement("div"),this.modal.style.position="fixed",this.modal.style.width="100vw",this.modal.style.height="100vh",this.modal.style.padding="50px",this.modal.style.boxSizing="border-box",this.modal.style.backgroundColor="rgba(0, 0, 0, .6)",this.modal.style.zIndex=2e5,this.modal.addEventListener("click",function(){return t.hide()});var i=document.createElement("iframe");if(i.style.backgroundColor="white",i.style.borderRadius="5px",i.style.width="100%",i.style.height="100%",this.modal.appendChild(i),document.body.prepend(this.modal),document.body.style.overflow="hidden",!i.contentWindow)throw new Error("iframe not yet ready.");i.contentWindow.document.open(),i.contentWindow.document.write(n.outerHTML),i.contentWindow.document.close(),this.listener=this.hideOnEscape.bind(this),document.addEventListener("keydown",this.listener)},hide:function(){this.modal.outerHTML="",this.modal=null,document.body.style.overflow="visible",document.removeEventListener("keydown",this.listener)},hideOnEscape:function(e){27===e.keyCode&&this.hide()}};function a(e,t){var n;return function(){var i=arguments,r=this;clearTimeout(n),n=setTimeout(function(){return e.apply(r,[].slice.call(i))},t)}}function c(e,t,n){for(var i in void 0===t&&(t=new FormData),void 0===n&&(n=null),e=e||{})Object.prototype.hasOwnProperty.call(e,i)&&d(t,l(n,i),e[i]);return t}function l(e,t){return e?e+"["+t+"]":t}function d(e,t,n){return Array.isArray(n)?Array.from(n.keys()).forEach(function(i){return d(e,l(t,i.toString()),n[i])}):n instanceof Date?e.append(t,n.toISOString()):n instanceof File?e.append(t,n,n.name):n instanceof Blob?e.append(t,n):"boolean"==typeof n?e.append(t,n?"1":"0"):"string"==typeof n?e.append(t,n):"number"==typeof n?e.append(t,""+n):null==n?e.append(t,""):void c(n,e,t)}function u(e){return new URL(e.toString(),window.location.toString())}function h(e,t,r,o){void 0===o&&(o="brackets");var s=/^https?:\/\//.test(t.toString()),a=s||t.toString().startsWith("/"),c=!a&&!t.toString().startsWith("#")&&!t.toString().startsWith("?"),l=t.toString().includes("?")||e===exports.Method.GET&&Object.keys(r).length,d=t.toString().includes("#"),u=new URL(t.toString(),"http://localhost");return e===exports.Method.GET&&Object.keys(r).length&&(u.search=n.stringify(i(n.parse(u.search,{ignoreQueryPrefix:!0}),r),{encodeValuesOnly:!0,arrayFormat:o}),r={}),[[s?u.protocol+"//"+u.host:"",a?u.pathname:"",c?u.pathname.substring(1):"",l?u.search:"",d?u.hash:""].join(""),r]}function p(e){return(e=new URL(e.href)).hash="",e}function f(e,t){return document.dispatchEvent(new CustomEvent("inertia:"+e,t))}(o=exports.Method||(exports.Method={})).GET="get",o.POST="post",o.PUT="put",o.PATCH="patch",o.DELETE="delete";var v=function(e){return f("finish",{detail:{visit:e}})},m=function(e){return f("navigate",{detail:{page:e}})},g="undefined"==typeof window,w=function(){function e(){this.visitId=null}var n=e.prototype;return n.init=function(e){var t=e.resolveComponent,n=e.swapComponent;this.page=e.initialPage,this.resolveComponent=t,this.swapComponent=n,this.isBackForwardVisit()?this.handleBackForwardVisit(this.page):this.isLocationVisit()?this.handleLocationVisit(this.page):this.handleInitialPageVisit(this.page),this.setupEventListeners()},n.handleInitialPageVisit=function(e){this.page.url+=window.location.hash,this.setPage(e,{preserveState:!0}).then(function(){return m(e)})},n.setupEventListeners=function(){window.addEventListener("popstate",this.handlePopstateEvent.bind(this)),document.addEventListener("scroll",a(this.handleScrollEvent.bind(this),100),!0)},n.scrollRegions=function(){return document.querySelectorAll("[scroll-region]")},n.handleScrollEvent=function(e){"function"==typeof e.target.hasAttribute&&e.target.hasAttribute("scroll-region")&&this.saveScrollPositions()},n.saveScrollPositions=function(){this.replaceState(r({},this.page,{scrollRegions:Array.from(this.scrollRegions()).map(function(e){return{top:e.scrollTop,left:e.scrollLeft}})}))},n.resetScrollPositions=function(){var e;document.documentElement.scrollTop=0,document.documentElement.scrollLeft=0,this.scrollRegions().forEach(function(e){e.scrollTop=0,e.scrollLeft=0}),this.saveScrollPositions(),window.location.hash&&(null==(e=document.getElementById(window.location.hash.slice(1)))||e.scrollIntoView())},n.restoreScrollPositions=function(){var e=this;this.page.scrollRegions&&this.scrollRegions().forEach(function(t,n){var i=e.page.scrollRegions[n];i&&(t.scrollTop=i.top,t.scrollLeft=i.left)})},n.isBackForwardVisit=function(){return window.history.state&&window.performance&&window.performance.getEntriesByType("navigation").length>0&&"back_forward"===window.performance.getEntriesByType("navigation")[0].type},n.handleBackForwardVisit=function(e){var t=this;window.history.state.version=e.version,this.setPage(window.history.state,{preserveScroll:!0,preserveState:!0}).then(function(){t.restoreScrollPositions(),m(e)})},n.locationVisit=function(e,t){try{window.sessionStorage.setItem("inertiaLocationVisit",JSON.stringify({preserveScroll:t})),window.location.href=e.href,p(window.location).href===p(e).href&&window.location.reload()}catch(e){return!1}},n.isLocationVisit=function(){try{return null!==window.sessionStorage.getItem("inertiaLocationVisit")}catch(e){return!1}},n.handleLocationVisit=function(e){var t,n,i,r,o=this,s=JSON.parse(window.sessionStorage.getItem("inertiaLocationVisit")||"");window.sessionStorage.removeItem("inertiaLocationVisit"),e.url+=window.location.hash,e.rememberedState=null!=(t=null==(n=window.history.state)?void 0:n.rememberedState)?t:{},e.scrollRegions=null!=(i=null==(r=window.history.state)?void 0:r.scrollRegions)?i:[],this.setPage(e,{preserveScroll:s.preserveScroll,preserveState:!0}).then(function(){s.preserveScroll&&o.restoreScrollPositions(),m(e)})},n.isLocationVisitResponse=function(e){return e&&409===e.status&&e.headers["x-inertia-location"]},n.isInertiaResponse=function(e){return null==e?void 0:e.headers["x-inertia"]},n.createVisitId=function(){return this.visitId={},this.visitId},n.cancelVisit=function(e,t){var n=t.cancelled,i=void 0!==n&&n,r=t.interrupted,o=void 0!==r&&r;!e||e.completed||e.cancelled||e.interrupted||(e.cancelToken.cancel(),e.onCancel(),e.completed=!1,e.cancelled=i,e.interrupted=o,v(e),e.onFinish(e))},n.finishVisit=function(e){e.cancelled||e.interrupted||(e.completed=!0,e.cancelled=!1,e.interrupted=!1,v(e),e.onFinish(e))},n.resolvePreserveOption=function(e,t){return"function"==typeof e?e(t):"errors"===e?Object.keys(t.props.errors||{}).length>0:e},n.visit=function(e,n){var i=this,o=void 0===n?{}:n,a=o.method,l=void 0===a?exports.Method.GET:a,d=o.data,v=void 0===d?{}:d,m=o.replace,g=void 0!==m&&m,w=o.preserveScroll,y=void 0!==w&&w,S=o.preserveState,b=void 0!==S&&S,E=o.only,P=void 0===E?[]:E,I=o.headers,x=void 0===I?{}:I,V=o.errorBag,T=void 0===V?"":V,L=o.forceFormData,O=void 0!==L&&L,k=o.onCancelToken,C=void 0===k?function(){}:k,M=o.onBefore,A=void 0===M?function(){}:M,F=o.onStart,R=void 0===F?function(){}:F,j=o.onProgress,D=void 0===j?function(){}:j,B=o.onFinish,q=void 0===B?function(){}:B,N=o.onCancel,H=void 0===N?function(){}:N,W=o.onSuccess,G=void 0===W?function(){}:W,U=o.onError,X=void 0===U?function(){}:U,J=o.queryStringArrayFormat,K=void 0===J?"brackets":J,_="string"==typeof e?u(e):e;if(!function e(t){return t instanceof File||t instanceof Blob||t instanceof FileList&&t.length>0||t instanceof FormData&&Array.from(t.values()).some(function(t){return e(t)})||"object"==typeof t&&null!==t&&Object.values(t).some(function(t){return e(t)})}(v)&&!O||v instanceof FormData||(v=c(v)),!(v instanceof FormData)){var z=h(l,_,v,K),Q=z[1];_=u(z[0]),v=Q}var Y={url:_,method:l,data:v,replace:g,preserveScroll:y,preserveState:b,only:P,headers:x,errorBag:T,forceFormData:O,queryStringArrayFormat:K,cancelled:!1,completed:!1,interrupted:!1};if(!1!==A(Y)&&function(e){return f("before",{cancelable:!0,detail:{visit:e}})}(Y)){this.activeVisit&&this.cancelVisit(this.activeVisit,{interrupted:!0}),this.saveScrollPositions();var Z=this.createVisitId();this.activeVisit=r({},Y,{onCancelToken:C,onBefore:A,onStart:R,onProgress:D,onFinish:q,onCancel:H,onSuccess:G,onError:X,queryStringArrayFormat:K,cancelToken:t.CancelToken.source()}),C({cancel:function(){i.activeVisit&&i.cancelVisit(i.activeVisit,{cancelled:!0})}}),function(e){f("start",{detail:{visit:e}})}(Y),R(Y),t({method:l,url:p(_).href,data:l===exports.Method.GET?{}:v,params:l===exports.Method.GET?v:{},cancelToken:this.activeVisit.cancelToken.token,headers:r({},x,{Accept:"text/html, application/xhtml+xml","X-Requested-With":"XMLHttpRequest","X-Inertia":!0},P.length?{"X-Inertia-Partial-Component":this.page.component,"X-Inertia-Partial-Data":P.join(",")}:{},T&&T.length?{"X-Inertia-Error-Bag":T}:{},this.page.version?{"X-Inertia-Version":this.page.version}:{}),onUploadProgress:function(e){v instanceof FormData&&(e.percentage=Math.round(e.loaded/e.total*100),function(e){f("progress",{detail:{progress:e}})}(e),D(e))}}).then(function(e){var t;if(!i.isInertiaResponse(e))return Promise.reject({response:e});var n=e.data;P.length&&n.component===i.page.component&&(n.props=r({},i.page.props,n.props)),y=i.resolvePreserveOption(y,n),(b=i.resolvePreserveOption(b,n))&&null!=(t=window.history.state)&&t.rememberedState&&n.component===i.page.component&&(n.rememberedState=window.history.state.rememberedState);var o=_,s=u(n.url);return o.hash&&!s.hash&&p(o).href===s.href&&(s.hash=o.hash,n.url=s.href),i.setPage(n,{visitId:Z,replace:g,preserveScroll:y,preserveState:b})}).then(function(){var e=i.page.props.errors||{};if(Object.keys(e).length>0){var t=T?e[T]?e[T]:{}:e;return function(e){f("error",{detail:{errors:e}})}(t),X(t)}return f("success",{detail:{page:i.page}}),G(i.page)}).catch(function(e){if(i.isInertiaResponse(e.response))return i.setPage(e.response.data,{visitId:Z});if(i.isLocationVisitResponse(e.response)){var t=u(e.response.headers["x-inertia-location"]),n=_;n.hash&&!t.hash&&p(n).href===t.href&&(t.hash=n.hash),i.locationVisit(t,!0===y)}else{if(!e.response)return Promise.reject(e);f("invalid",{cancelable:!0,detail:{response:e.response}})&&s.show(e.response.data)}}).then(function(){i.activeVisit&&i.finishVisit(i.activeVisit)}).catch(function(e){if(!t.isCancel(e)){var n=f("exception",{cancelable:!0,detail:{exception:e}});if(i.activeVisit&&i.finishVisit(i.activeVisit),n)return Promise.reject(e)}})}},n.setPage=function(e,t){var n=this,i=void 0===t?{}:t,r=i.visitId,o=void 0===r?this.createVisitId():r,s=i.replace,a=void 0!==s&&s,c=i.preserveScroll,l=void 0!==c&&c,d=i.preserveState,h=void 0!==d&&d;return Promise.resolve(this.resolveComponent(e.component)).then(function(t){o===n.visitId&&(e.scrollRegions=e.scrollRegions||[],e.rememberedState=e.rememberedState||{},(a=a||u(e.url).href===window.location.href)?n.replaceState(e):n.pushState(e),n.swapComponent({component:t,page:e,preserveState:h}).then(function(){l||n.resetScrollPositions(),a||m(e)}))})},n.pushState=function(e){this.page=e,window.history.pushState(e,"",e.url)},n.replaceState=function(e){this.page=e,window.history.replaceState(e,"",e.url)},n.handlePopstateEvent=function(e){var t=this;if(null!==e.state){var n=e.state,i=this.createVisitId();Promise.resolve(this.resolveComponent(n.component)).then(function(e){i===t.visitId&&(t.page=n,t.swapComponent({component:e,page:n,preserveState:!1}).then(function(){t.restoreScrollPositions(),m(n)}))})}else{var o=u(this.page.url);o.hash=window.location.hash,this.replaceState(r({},this.page,{url:o.href})),this.resetScrollPositions()}},n.get=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),this.visit(e,r({},n,{method:exports.Method.GET,data:t}))},n.reload=function(e){return void 0===e&&(e={}),this.visit(window.location.href,r({},e,{preserveScroll:!0,preserveState:!0}))},n.replace=function(e,t){var n;return void 0===t&&(t={}),console.warn("Inertia.replace() has been deprecated and will be removed in a future release. Please use Inertia."+(null!=(n=t.method)?n:"get")+"() instead."),this.visit(e,r({preserveState:!0},t,{replace:!0}))},n.post=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),this.visit(e,r({preserveState:!0},n,{method:exports.Method.POST,data:t}))},n.put=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),this.visit(e,r({preserveState:!0},n,{method:exports.Method.PUT,data:t}))},n.patch=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),this.visit(e,r({preserveState:!0},n,{method:exports.Method.PATCH,data:t}))},n.delete=function(e,t){return void 0===t&&(t={}),this.visit(e,r({preserveState:!0},t,{method:exports.Method.DELETE}))},n.remember=function(e,t){var n,i;void 0===t&&(t="default"),g||this.replaceState(r({},this.page,{rememberedState:r({},null==(n=this.page)?void 0:n.rememberedState,(i={},i[t]=e,i))}))},n.restore=function(e){var t,n;if(void 0===e&&(e="default"),!g)return null==(t=window.history.state)||null==(n=t.rememberedState)?void 0:n[e]},n.on=function(e,t){var n=function(e){var n=t(e);e.cancelable&&!e.defaultPrevented&&!1===n&&e.preventDefault()};return document.addEventListener("inertia:"+e,n),function(){return document.removeEventListener("inertia:"+e,n)}},e}(),y={buildDOMElement:function(e){var t=document.createElement("template");t.innerHTML=e;var n=t.content.firstChild;if(!e.startsWith("<script "))return n;var i=document.createElement("script");return i.innerHTML=n.innerHTML,n.getAttributeNames().forEach(function(e){i.setAttribute(e,n.getAttribute(e)||"")}),i},isInertiaManagedElement:function(e){return e.nodeType===Node.ELEMENT_NODE&&null!==e.getAttribute("inertia")},findMatchingElementIndex:function(e,t){var n=e.getAttribute("inertia");return null!==n?t.findIndex(function(e){return e.getAttribute("inertia")===n}):-1},update:a(function(e){var t=this,n=e.map(function(e){return t.buildDOMElement(e)});Array.from(document.head.childNodes).filter(function(e){return t.isInertiaManagedElement(e)}).forEach(function(e){var i=t.findMatchingElementIndex(e,n);if(-1!==i){var r,o=n.splice(i,1)[0];o&&!e.isEqualNode(o)&&(null==e||null==(r=e.parentNode)||r.replaceChild(o,e))}else{var s;null==e||null==(s=e.parentNode)||s.removeChild(e)}}),n.forEach(function(e){return document.head.appendChild(e)})},1)},S=new w;exports.Inertia=S,exports.createHeadManager=function(e,t,n){var i={},r=0;function o(){var e=Object.values(i).reduce(function(e,t){return e.concat(t)},[]).reduce(function(e,n){if(-1===n.indexOf("<"))return e;if(0===n.indexOf("<title ")){var i=n.match(/(<title [^>]+>)(.*?)(<\/title>)/);return e.title=i?""+i[1]+t(i[2])+i[3]:n,e}var r=n.match(/ inertia="[^"]+"/);return r?e[r[0]]=n:e[Object.keys(e).length]=n,e},{});return Object.values(e)}function s(){e?n(o()):y.update(o())}return{createProvider:function(){var e=function(){var e=r+=1;return i[e]=[],e.toString()}();return{update:function(t){return function(e,t){void 0===t&&(t=[]),null!==e&&Object.keys(i).indexOf(e)>-1&&(i[e]=t),s()}(e,t)},disconnect:function(){return function(e){null!==e&&-1!==Object.keys(i).indexOf(e)&&(delete i[e],s())}(e)}}}}},exports.hrefToUrl=u,exports.mergeDataIntoQueryString=h,exports.shouldIntercept=function(e){var t="a"===e.currentTarget.tagName.toLowerCase();return!(e.target&&null!=e&&e.target.isContentEditable||e.defaultPrevented||t&&e.which>1||t&&e.altKey||t&&e.ctrlKey||t&&e.metaKey||t&&e.shiftKey)},exports.urlWithoutHash=p;
  17. //# sourceMappingURL=index.js.map
  18. /***/ }),
  19. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/index.js":
  20. /*!*********************************************************************!*\
  21. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/index.js ***!
  22. \*********************************************************************/
  23. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  24. module.exports = __webpack_require__(/*! ./lib/axios */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/axios.js");
  25. /***/ }),
  26. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/adapters/xhr.js":
  27. /*!********************************************************************************!*\
  28. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/adapters/xhr.js ***!
  29. \********************************************************************************/
  30. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  31. "use strict";
  32. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  33. var settle = __webpack_require__(/*! ./../core/settle */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/settle.js");
  34. var cookies = __webpack_require__(/*! ./../helpers/cookies */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/cookies.js");
  35. var buildURL = __webpack_require__(/*! ./../helpers/buildURL */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/buildURL.js");
  36. var buildFullPath = __webpack_require__(/*! ../core/buildFullPath */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/buildFullPath.js");
  37. var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/parseHeaders.js");
  38. var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/isURLSameOrigin.js");
  39. var createError = __webpack_require__(/*! ../core/createError */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/createError.js");
  40. module.exports = function xhrAdapter(config) {
  41. return new Promise(function dispatchXhrRequest(resolve, reject) {
  42. var requestData = config.data;
  43. var requestHeaders = config.headers;
  44. var responseType = config.responseType;
  45. if (utils.isFormData(requestData)) {
  46. delete requestHeaders['Content-Type']; // Let the browser set it
  47. }
  48. var request = new XMLHttpRequest();
  49. // HTTP basic authentication
  50. if (config.auth) {
  51. var username = config.auth.username || '';
  52. var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
  53. requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
  54. }
  55. var fullPath = buildFullPath(config.baseURL, config.url);
  56. request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
  57. // Set the request timeout in MS
  58. request.timeout = config.timeout;
  59. function onloadend() {
  60. if (!request) {
  61. return;
  62. }
  63. // Prepare the response
  64. var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
  65. var responseData = !responseType || responseType === 'text' || responseType === 'json' ?
  66. request.responseText : request.response;
  67. var response = {
  68. data: responseData,
  69. status: request.status,
  70. statusText: request.statusText,
  71. headers: responseHeaders,
  72. config: config,
  73. request: request
  74. };
  75. settle(resolve, reject, response);
  76. // Clean up request
  77. request = null;
  78. }
  79. if ('onloadend' in request) {
  80. // Use onloadend if available
  81. request.onloadend = onloadend;
  82. } else {
  83. // Listen for ready state to emulate onloadend
  84. request.onreadystatechange = function handleLoad() {
  85. if (!request || request.readyState !== 4) {
  86. return;
  87. }
  88. // The request errored out and we didn't get a response, this will be
  89. // handled by onerror instead
  90. // With one exception: request that using file: protocol, most browsers
  91. // will return status as 0 even though it's a successful request
  92. if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
  93. return;
  94. }
  95. // readystate handler is calling before onerror or ontimeout handlers,
  96. // so we should call onloadend on the next 'tick'
  97. setTimeout(onloadend);
  98. };
  99. }
  100. // Handle browser request cancellation (as opposed to a manual cancellation)
  101. request.onabort = function handleAbort() {
  102. if (!request) {
  103. return;
  104. }
  105. reject(createError('Request aborted', config, 'ECONNABORTED', request));
  106. // Clean up request
  107. request = null;
  108. };
  109. // Handle low level network errors
  110. request.onerror = function handleError() {
  111. // Real errors are hidden from us by the browser
  112. // onerror should only fire if it's a network error
  113. reject(createError('Network Error', config, null, request));
  114. // Clean up request
  115. request = null;
  116. };
  117. // Handle timeout
  118. request.ontimeout = function handleTimeout() {
  119. var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';
  120. if (config.timeoutErrorMessage) {
  121. timeoutErrorMessage = config.timeoutErrorMessage;
  122. }
  123. reject(createError(
  124. timeoutErrorMessage,
  125. config,
  126. config.transitional && config.transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',
  127. request));
  128. // Clean up request
  129. request = null;
  130. };
  131. // Add xsrf header
  132. // This is only done if running in a standard browser environment.
  133. // Specifically not if we're in a web worker, or react-native.
  134. if (utils.isStandardBrowserEnv()) {
  135. // Add xsrf header
  136. var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?
  137. cookies.read(config.xsrfCookieName) :
  138. undefined;
  139. if (xsrfValue) {
  140. requestHeaders[config.xsrfHeaderName] = xsrfValue;
  141. }
  142. }
  143. // Add headers to the request
  144. if ('setRequestHeader' in request) {
  145. utils.forEach(requestHeaders, function setRequestHeader(val, key) {
  146. if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
  147. // Remove Content-Type if data is undefined
  148. delete requestHeaders[key];
  149. } else {
  150. // Otherwise add header to the request
  151. request.setRequestHeader(key, val);
  152. }
  153. });
  154. }
  155. // Add withCredentials to request if needed
  156. if (!utils.isUndefined(config.withCredentials)) {
  157. request.withCredentials = !!config.withCredentials;
  158. }
  159. // Add responseType to request if needed
  160. if (responseType && responseType !== 'json') {
  161. request.responseType = config.responseType;
  162. }
  163. // Handle progress if needed
  164. if (typeof config.onDownloadProgress === 'function') {
  165. request.addEventListener('progress', config.onDownloadProgress);
  166. }
  167. // Not all browsers support upload events
  168. if (typeof config.onUploadProgress === 'function' && request.upload) {
  169. request.upload.addEventListener('progress', config.onUploadProgress);
  170. }
  171. if (config.cancelToken) {
  172. // Handle cancellation
  173. config.cancelToken.promise.then(function onCanceled(cancel) {
  174. if (!request) {
  175. return;
  176. }
  177. request.abort();
  178. reject(cancel);
  179. // Clean up request
  180. request = null;
  181. });
  182. }
  183. if (!requestData) {
  184. requestData = null;
  185. }
  186. // Send the request
  187. request.send(requestData);
  188. });
  189. };
  190. /***/ }),
  191. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/axios.js":
  192. /*!*************************************************************************!*\
  193. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/axios.js ***!
  194. \*************************************************************************/
  195. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  196. "use strict";
  197. var utils = __webpack_require__(/*! ./utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  198. var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/bind.js");
  199. var Axios = __webpack_require__(/*! ./core/Axios */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/Axios.js");
  200. var mergeConfig = __webpack_require__(/*! ./core/mergeConfig */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/mergeConfig.js");
  201. var defaults = __webpack_require__(/*! ./defaults */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/defaults.js");
  202. /**
  203. * Create an instance of Axios
  204. *
  205. * @param {Object} defaultConfig The default config for the instance
  206. * @return {Axios} A new instance of Axios
  207. */
  208. function createInstance(defaultConfig) {
  209. var context = new Axios(defaultConfig);
  210. var instance = bind(Axios.prototype.request, context);
  211. // Copy axios.prototype to instance
  212. utils.extend(instance, Axios.prototype, context);
  213. // Copy context to instance
  214. utils.extend(instance, context);
  215. return instance;
  216. }
  217. // Create the default instance to be exported
  218. var axios = createInstance(defaults);
  219. // Expose Axios class to allow class inheritance
  220. axios.Axios = Axios;
  221. // Factory for creating new instances
  222. axios.create = function create(instanceConfig) {
  223. return createInstance(mergeConfig(axios.defaults, instanceConfig));
  224. };
  225. // Expose Cancel & CancelToken
  226. axios.Cancel = __webpack_require__(/*! ./cancel/Cancel */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/Cancel.js");
  227. axios.CancelToken = __webpack_require__(/*! ./cancel/CancelToken */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/CancelToken.js");
  228. axios.isCancel = __webpack_require__(/*! ./cancel/isCancel */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/isCancel.js");
  229. // Expose all/spread
  230. axios.all = function all(promises) {
  231. return Promise.all(promises);
  232. };
  233. axios.spread = __webpack_require__(/*! ./helpers/spread */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/spread.js");
  234. // Expose isAxiosError
  235. axios.isAxiosError = __webpack_require__(/*! ./helpers/isAxiosError */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/isAxiosError.js");
  236. module.exports = axios;
  237. // Allow use of default import syntax in TypeScript
  238. module.exports["default"] = axios;
  239. /***/ }),
  240. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/Cancel.js":
  241. /*!*********************************************************************************!*\
  242. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/Cancel.js ***!
  243. \*********************************************************************************/
  244. /***/ ((module) => {
  245. "use strict";
  246. /**
  247. * A `Cancel` is an object that is thrown when an operation is canceled.
  248. *
  249. * @class
  250. * @param {string=} message The message.
  251. */
  252. function Cancel(message) {
  253. this.message = message;
  254. }
  255. Cancel.prototype.toString = function toString() {
  256. return 'Cancel' + (this.message ? ': ' + this.message : '');
  257. };
  258. Cancel.prototype.__CANCEL__ = true;
  259. module.exports = Cancel;
  260. /***/ }),
  261. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/CancelToken.js":
  262. /*!**************************************************************************************!*\
  263. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/CancelToken.js ***!
  264. \**************************************************************************************/
  265. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  266. "use strict";
  267. var Cancel = __webpack_require__(/*! ./Cancel */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/Cancel.js");
  268. /**
  269. * A `CancelToken` is an object that can be used to request cancellation of an operation.
  270. *
  271. * @class
  272. * @param {Function} executor The executor function.
  273. */
  274. function CancelToken(executor) {
  275. if (typeof executor !== 'function') {
  276. throw new TypeError('executor must be a function.');
  277. }
  278. var resolvePromise;
  279. this.promise = new Promise(function promiseExecutor(resolve) {
  280. resolvePromise = resolve;
  281. });
  282. var token = this;
  283. executor(function cancel(message) {
  284. if (token.reason) {
  285. // Cancellation has already been requested
  286. return;
  287. }
  288. token.reason = new Cancel(message);
  289. resolvePromise(token.reason);
  290. });
  291. }
  292. /**
  293. * Throws a `Cancel` if cancellation has been requested.
  294. */
  295. CancelToken.prototype.throwIfRequested = function throwIfRequested() {
  296. if (this.reason) {
  297. throw this.reason;
  298. }
  299. };
  300. /**
  301. * Returns an object that contains a new `CancelToken` and a function that, when called,
  302. * cancels the `CancelToken`.
  303. */
  304. CancelToken.source = function source() {
  305. var cancel;
  306. var token = new CancelToken(function executor(c) {
  307. cancel = c;
  308. });
  309. return {
  310. token: token,
  311. cancel: cancel
  312. };
  313. };
  314. module.exports = CancelToken;
  315. /***/ }),
  316. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/isCancel.js":
  317. /*!***********************************************************************************!*\
  318. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/isCancel.js ***!
  319. \***********************************************************************************/
  320. /***/ ((module) => {
  321. "use strict";
  322. module.exports = function isCancel(value) {
  323. return !!(value && value.__CANCEL__);
  324. };
  325. /***/ }),
  326. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/Axios.js":
  327. /*!******************************************************************************!*\
  328. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/Axios.js ***!
  329. \******************************************************************************/
  330. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  331. "use strict";
  332. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  333. var buildURL = __webpack_require__(/*! ../helpers/buildURL */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/buildURL.js");
  334. var InterceptorManager = __webpack_require__(/*! ./InterceptorManager */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/InterceptorManager.js");
  335. var dispatchRequest = __webpack_require__(/*! ./dispatchRequest */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/dispatchRequest.js");
  336. var mergeConfig = __webpack_require__(/*! ./mergeConfig */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/mergeConfig.js");
  337. var validator = __webpack_require__(/*! ../helpers/validator */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/validator.js");
  338. var validators = validator.validators;
  339. /**
  340. * Create a new instance of Axios
  341. *
  342. * @param {Object} instanceConfig The default config for the instance
  343. */
  344. function Axios(instanceConfig) {
  345. this.defaults = instanceConfig;
  346. this.interceptors = {
  347. request: new InterceptorManager(),
  348. response: new InterceptorManager()
  349. };
  350. }
  351. /**
  352. * Dispatch a request
  353. *
  354. * @param {Object} config The config specific for this request (merged with this.defaults)
  355. */
  356. Axios.prototype.request = function request(config) {
  357. /*eslint no-param-reassign:0*/
  358. // Allow for axios('example/url'[, config]) a la fetch API
  359. if (typeof config === 'string') {
  360. config = arguments[1] || {};
  361. config.url = arguments[0];
  362. } else {
  363. config = config || {};
  364. }
  365. config = mergeConfig(this.defaults, config);
  366. // Set config.method
  367. if (config.method) {
  368. config.method = config.method.toLowerCase();
  369. } else if (this.defaults.method) {
  370. config.method = this.defaults.method.toLowerCase();
  371. } else {
  372. config.method = 'get';
  373. }
  374. var transitional = config.transitional;
  375. if (transitional !== undefined) {
  376. validator.assertOptions(transitional, {
  377. silentJSONParsing: validators.transitional(validators.boolean, '1.0.0'),
  378. forcedJSONParsing: validators.transitional(validators.boolean, '1.0.0'),
  379. clarifyTimeoutError: validators.transitional(validators.boolean, '1.0.0')
  380. }, false);
  381. }
  382. // filter out skipped interceptors
  383. var requestInterceptorChain = [];
  384. var synchronousRequestInterceptors = true;
  385. this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
  386. if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
  387. return;
  388. }
  389. synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
  390. requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
  391. });
  392. var responseInterceptorChain = [];
  393. this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
  394. responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
  395. });
  396. var promise;
  397. if (!synchronousRequestInterceptors) {
  398. var chain = [dispatchRequest, undefined];
  399. Array.prototype.unshift.apply(chain, requestInterceptorChain);
  400. chain = chain.concat(responseInterceptorChain);
  401. promise = Promise.resolve(config);
  402. while (chain.length) {
  403. promise = promise.then(chain.shift(), chain.shift());
  404. }
  405. return promise;
  406. }
  407. var newConfig = config;
  408. while (requestInterceptorChain.length) {
  409. var onFulfilled = requestInterceptorChain.shift();
  410. var onRejected = requestInterceptorChain.shift();
  411. try {
  412. newConfig = onFulfilled(newConfig);
  413. } catch (error) {
  414. onRejected(error);
  415. break;
  416. }
  417. }
  418. try {
  419. promise = dispatchRequest(newConfig);
  420. } catch (error) {
  421. return Promise.reject(error);
  422. }
  423. while (responseInterceptorChain.length) {
  424. promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());
  425. }
  426. return promise;
  427. };
  428. Axios.prototype.getUri = function getUri(config) {
  429. config = mergeConfig(this.defaults, config);
  430. return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, '');
  431. };
  432. // Provide aliases for supported request methods
  433. utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
  434. /*eslint func-names:0*/
  435. Axios.prototype[method] = function(url, config) {
  436. return this.request(mergeConfig(config || {}, {
  437. method: method,
  438. url: url,
  439. data: (config || {}).data
  440. }));
  441. };
  442. });
  443. utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
  444. /*eslint func-names:0*/
  445. Axios.prototype[method] = function(url, data, config) {
  446. return this.request(mergeConfig(config || {}, {
  447. method: method,
  448. url: url,
  449. data: data
  450. }));
  451. };
  452. });
  453. module.exports = Axios;
  454. /***/ }),
  455. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/InterceptorManager.js":
  456. /*!*******************************************************************************************!*\
  457. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/InterceptorManager.js ***!
  458. \*******************************************************************************************/
  459. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  460. "use strict";
  461. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  462. function InterceptorManager() {
  463. this.handlers = [];
  464. }
  465. /**
  466. * Add a new interceptor to the stack
  467. *
  468. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  469. * @param {Function} rejected The function to handle `reject` for a `Promise`
  470. *
  471. * @return {Number} An ID used to remove interceptor later
  472. */
  473. InterceptorManager.prototype.use = function use(fulfilled, rejected, options) {
  474. this.handlers.push({
  475. fulfilled: fulfilled,
  476. rejected: rejected,
  477. synchronous: options ? options.synchronous : false,
  478. runWhen: options ? options.runWhen : null
  479. });
  480. return this.handlers.length - 1;
  481. };
  482. /**
  483. * Remove an interceptor from the stack
  484. *
  485. * @param {Number} id The ID that was returned by `use`
  486. */
  487. InterceptorManager.prototype.eject = function eject(id) {
  488. if (this.handlers[id]) {
  489. this.handlers[id] = null;
  490. }
  491. };
  492. /**
  493. * Iterate over all the registered interceptors
  494. *
  495. * This method is particularly useful for skipping over any
  496. * interceptors that may have become `null` calling `eject`.
  497. *
  498. * @param {Function} fn The function to call for each interceptor
  499. */
  500. InterceptorManager.prototype.forEach = function forEach(fn) {
  501. utils.forEach(this.handlers, function forEachHandler(h) {
  502. if (h !== null) {
  503. fn(h);
  504. }
  505. });
  506. };
  507. module.exports = InterceptorManager;
  508. /***/ }),
  509. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/buildFullPath.js":
  510. /*!**************************************************************************************!*\
  511. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/buildFullPath.js ***!
  512. \**************************************************************************************/
  513. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  514. "use strict";
  515. var isAbsoluteURL = __webpack_require__(/*! ../helpers/isAbsoluteURL */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/isAbsoluteURL.js");
  516. var combineURLs = __webpack_require__(/*! ../helpers/combineURLs */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/combineURLs.js");
  517. /**
  518. * Creates a new URL by combining the baseURL with the requestedURL,
  519. * only when the requestedURL is not already an absolute URL.
  520. * If the requestURL is absolute, this function returns the requestedURL untouched.
  521. *
  522. * @param {string} baseURL The base URL
  523. * @param {string} requestedURL Absolute or relative URL to combine
  524. * @returns {string} The combined full path
  525. */
  526. module.exports = function buildFullPath(baseURL, requestedURL) {
  527. if (baseURL && !isAbsoluteURL(requestedURL)) {
  528. return combineURLs(baseURL, requestedURL);
  529. }
  530. return requestedURL;
  531. };
  532. /***/ }),
  533. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/createError.js":
  534. /*!************************************************************************************!*\
  535. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/createError.js ***!
  536. \************************************************************************************/
  537. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  538. "use strict";
  539. var enhanceError = __webpack_require__(/*! ./enhanceError */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/enhanceError.js");
  540. /**
  541. * Create an Error with the specified message, config, error code, request and response.
  542. *
  543. * @param {string} message The error message.
  544. * @param {Object} config The config.
  545. * @param {string} [code] The error code (for example, 'ECONNABORTED').
  546. * @param {Object} [request] The request.
  547. * @param {Object} [response] The response.
  548. * @returns {Error} The created error.
  549. */
  550. module.exports = function createError(message, config, code, request, response) {
  551. var error = new Error(message);
  552. return enhanceError(error, config, code, request, response);
  553. };
  554. /***/ }),
  555. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/dispatchRequest.js":
  556. /*!****************************************************************************************!*\
  557. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/dispatchRequest.js ***!
  558. \****************************************************************************************/
  559. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  560. "use strict";
  561. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  562. var transformData = __webpack_require__(/*! ./transformData */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/transformData.js");
  563. var isCancel = __webpack_require__(/*! ../cancel/isCancel */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/isCancel.js");
  564. var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/defaults.js");
  565. /**
  566. * Throws a `Cancel` if cancellation has been requested.
  567. */
  568. function throwIfCancellationRequested(config) {
  569. if (config.cancelToken) {
  570. config.cancelToken.throwIfRequested();
  571. }
  572. }
  573. /**
  574. * Dispatch a request to the server using the configured adapter.
  575. *
  576. * @param {object} config The config that is to be used for the request
  577. * @returns {Promise} The Promise to be fulfilled
  578. */
  579. module.exports = function dispatchRequest(config) {
  580. throwIfCancellationRequested(config);
  581. // Ensure headers exist
  582. config.headers = config.headers || {};
  583. // Transform request data
  584. config.data = transformData.call(
  585. config,
  586. config.data,
  587. config.headers,
  588. config.transformRequest
  589. );
  590. // Flatten headers
  591. config.headers = utils.merge(
  592. config.headers.common || {},
  593. config.headers[config.method] || {},
  594. config.headers
  595. );
  596. utils.forEach(
  597. ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
  598. function cleanHeaderConfig(method) {
  599. delete config.headers[method];
  600. }
  601. );
  602. var adapter = config.adapter || defaults.adapter;
  603. return adapter(config).then(function onAdapterResolution(response) {
  604. throwIfCancellationRequested(config);
  605. // Transform response data
  606. response.data = transformData.call(
  607. config,
  608. response.data,
  609. response.headers,
  610. config.transformResponse
  611. );
  612. return response;
  613. }, function onAdapterRejection(reason) {
  614. if (!isCancel(reason)) {
  615. throwIfCancellationRequested(config);
  616. // Transform response data
  617. if (reason && reason.response) {
  618. reason.response.data = transformData.call(
  619. config,
  620. reason.response.data,
  621. reason.response.headers,
  622. config.transformResponse
  623. );
  624. }
  625. }
  626. return Promise.reject(reason);
  627. });
  628. };
  629. /***/ }),
  630. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/enhanceError.js":
  631. /*!*************************************************************************************!*\
  632. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/enhanceError.js ***!
  633. \*************************************************************************************/
  634. /***/ ((module) => {
  635. "use strict";
  636. /**
  637. * Update an Error with the specified config, error code, and response.
  638. *
  639. * @param {Error} error The error to update.
  640. * @param {Object} config The config.
  641. * @param {string} [code] The error code (for example, 'ECONNABORTED').
  642. * @param {Object} [request] The request.
  643. * @param {Object} [response] The response.
  644. * @returns {Error} The error.
  645. */
  646. module.exports = function enhanceError(error, config, code, request, response) {
  647. error.config = config;
  648. if (code) {
  649. error.code = code;
  650. }
  651. error.request = request;
  652. error.response = response;
  653. error.isAxiosError = true;
  654. error.toJSON = function toJSON() {
  655. return {
  656. // Standard
  657. message: this.message,
  658. name: this.name,
  659. // Microsoft
  660. description: this.description,
  661. number: this.number,
  662. // Mozilla
  663. fileName: this.fileName,
  664. lineNumber: this.lineNumber,
  665. columnNumber: this.columnNumber,
  666. stack: this.stack,
  667. // Axios
  668. config: this.config,
  669. code: this.code
  670. };
  671. };
  672. return error;
  673. };
  674. /***/ }),
  675. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/mergeConfig.js":
  676. /*!************************************************************************************!*\
  677. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/mergeConfig.js ***!
  678. \************************************************************************************/
  679. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  680. "use strict";
  681. var utils = __webpack_require__(/*! ../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  682. /**
  683. * Config-specific merge-function which creates a new config-object
  684. * by merging two configuration objects together.
  685. *
  686. * @param {Object} config1
  687. * @param {Object} config2
  688. * @returns {Object} New object resulting from merging config2 to config1
  689. */
  690. module.exports = function mergeConfig(config1, config2) {
  691. // eslint-disable-next-line no-param-reassign
  692. config2 = config2 || {};
  693. var config = {};
  694. var valueFromConfig2Keys = ['url', 'method', 'data'];
  695. var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params'];
  696. var defaultToConfig2Keys = [
  697. 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer',
  698. 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',
  699. 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress',
  700. 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent',
  701. 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding'
  702. ];
  703. var directMergeKeys = ['validateStatus'];
  704. function getMergedValue(target, source) {
  705. if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
  706. return utils.merge(target, source);
  707. } else if (utils.isPlainObject(source)) {
  708. return utils.merge({}, source);
  709. } else if (utils.isArray(source)) {
  710. return source.slice();
  711. }
  712. return source;
  713. }
  714. function mergeDeepProperties(prop) {
  715. if (!utils.isUndefined(config2[prop])) {
  716. config[prop] = getMergedValue(config1[prop], config2[prop]);
  717. } else if (!utils.isUndefined(config1[prop])) {
  718. config[prop] = getMergedValue(undefined, config1[prop]);
  719. }
  720. }
  721. utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {
  722. if (!utils.isUndefined(config2[prop])) {
  723. config[prop] = getMergedValue(undefined, config2[prop]);
  724. }
  725. });
  726. utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);
  727. utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
  728. if (!utils.isUndefined(config2[prop])) {
  729. config[prop] = getMergedValue(undefined, config2[prop]);
  730. } else if (!utils.isUndefined(config1[prop])) {
  731. config[prop] = getMergedValue(undefined, config1[prop]);
  732. }
  733. });
  734. utils.forEach(directMergeKeys, function merge(prop) {
  735. if (prop in config2) {
  736. config[prop] = getMergedValue(config1[prop], config2[prop]);
  737. } else if (prop in config1) {
  738. config[prop] = getMergedValue(undefined, config1[prop]);
  739. }
  740. });
  741. var axiosKeys = valueFromConfig2Keys
  742. .concat(mergeDeepPropertiesKeys)
  743. .concat(defaultToConfig2Keys)
  744. .concat(directMergeKeys);
  745. var otherKeys = Object
  746. .keys(config1)
  747. .concat(Object.keys(config2))
  748. .filter(function filterAxiosKeys(key) {
  749. return axiosKeys.indexOf(key) === -1;
  750. });
  751. utils.forEach(otherKeys, mergeDeepProperties);
  752. return config;
  753. };
  754. /***/ }),
  755. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/settle.js":
  756. /*!*******************************************************************************!*\
  757. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/settle.js ***!
  758. \*******************************************************************************/
  759. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  760. "use strict";
  761. var createError = __webpack_require__(/*! ./createError */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/createError.js");
  762. /**
  763. * Resolve or reject a Promise based on response status.
  764. *
  765. * @param {Function} resolve A function that resolves the promise.
  766. * @param {Function} reject A function that rejects the promise.
  767. * @param {object} response The response.
  768. */
  769. module.exports = function settle(resolve, reject, response) {
  770. var validateStatus = response.config.validateStatus;
  771. if (!response.status || !validateStatus || validateStatus(response.status)) {
  772. resolve(response);
  773. } else {
  774. reject(createError(
  775. 'Request failed with status code ' + response.status,
  776. response.config,
  777. null,
  778. response.request,
  779. response
  780. ));
  781. }
  782. };
  783. /***/ }),
  784. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/transformData.js":
  785. /*!**************************************************************************************!*\
  786. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/transformData.js ***!
  787. \**************************************************************************************/
  788. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  789. "use strict";
  790. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  791. var defaults = __webpack_require__(/*! ./../defaults */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/defaults.js");
  792. /**
  793. * Transform the data for a request or a response
  794. *
  795. * @param {Object|String} data The data to be transformed
  796. * @param {Array} headers The headers for the request or response
  797. * @param {Array|Function} fns A single function or Array of functions
  798. * @returns {*} The resulting transformed data
  799. */
  800. module.exports = function transformData(data, headers, fns) {
  801. var context = this || defaults;
  802. /*eslint no-param-reassign:0*/
  803. utils.forEach(fns, function transform(fn) {
  804. data = fn.call(context, data, headers);
  805. });
  806. return data;
  807. };
  808. /***/ }),
  809. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/defaults.js":
  810. /*!****************************************************************************!*\
  811. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/defaults.js ***!
  812. \****************************************************************************/
  813. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  814. "use strict";
  815. /* provided dependency */ var process = __webpack_require__(/*! process/browser.js */ "./node_modules/process/browser.js");
  816. var utils = __webpack_require__(/*! ./utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  817. var normalizeHeaderName = __webpack_require__(/*! ./helpers/normalizeHeaderName */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/normalizeHeaderName.js");
  818. var enhanceError = __webpack_require__(/*! ./core/enhanceError */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/enhanceError.js");
  819. var DEFAULT_CONTENT_TYPE = {
  820. 'Content-Type': 'application/x-www-form-urlencoded'
  821. };
  822. function setContentTypeIfUnset(headers, value) {
  823. if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {
  824. headers['Content-Type'] = value;
  825. }
  826. }
  827. function getDefaultAdapter() {
  828. var adapter;
  829. if (typeof XMLHttpRequest !== 'undefined') {
  830. // For browsers use XHR adapter
  831. adapter = __webpack_require__(/*! ./adapters/xhr */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/adapters/xhr.js");
  832. } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
  833. // For node use HTTP adapter
  834. adapter = __webpack_require__(/*! ./adapters/http */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/adapters/xhr.js");
  835. }
  836. return adapter;
  837. }
  838. function stringifySafely(rawValue, parser, encoder) {
  839. if (utils.isString(rawValue)) {
  840. try {
  841. (parser || JSON.parse)(rawValue);
  842. return utils.trim(rawValue);
  843. } catch (e) {
  844. if (e.name !== 'SyntaxError') {
  845. throw e;
  846. }
  847. }
  848. }
  849. return (encoder || JSON.stringify)(rawValue);
  850. }
  851. var defaults = {
  852. transitional: {
  853. silentJSONParsing: true,
  854. forcedJSONParsing: true,
  855. clarifyTimeoutError: false
  856. },
  857. adapter: getDefaultAdapter(),
  858. transformRequest: [function transformRequest(data, headers) {
  859. normalizeHeaderName(headers, 'Accept');
  860. normalizeHeaderName(headers, 'Content-Type');
  861. if (utils.isFormData(data) ||
  862. utils.isArrayBuffer(data) ||
  863. utils.isBuffer(data) ||
  864. utils.isStream(data) ||
  865. utils.isFile(data) ||
  866. utils.isBlob(data)
  867. ) {
  868. return data;
  869. }
  870. if (utils.isArrayBufferView(data)) {
  871. return data.buffer;
  872. }
  873. if (utils.isURLSearchParams(data)) {
  874. setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
  875. return data.toString();
  876. }
  877. if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) {
  878. setContentTypeIfUnset(headers, 'application/json');
  879. return stringifySafely(data);
  880. }
  881. return data;
  882. }],
  883. transformResponse: [function transformResponse(data) {
  884. var transitional = this.transitional;
  885. var silentJSONParsing = transitional && transitional.silentJSONParsing;
  886. var forcedJSONParsing = transitional && transitional.forcedJSONParsing;
  887. var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';
  888. if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) {
  889. try {
  890. return JSON.parse(data);
  891. } catch (e) {
  892. if (strictJSONParsing) {
  893. if (e.name === 'SyntaxError') {
  894. throw enhanceError(e, this, 'E_JSON_PARSE');
  895. }
  896. throw e;
  897. }
  898. }
  899. }
  900. return data;
  901. }],
  902. /**
  903. * A timeout in milliseconds to abort a request. If set to 0 (default) a
  904. * timeout is not created.
  905. */
  906. timeout: 0,
  907. xsrfCookieName: 'XSRF-TOKEN',
  908. xsrfHeaderName: 'X-XSRF-TOKEN',
  909. maxContentLength: -1,
  910. maxBodyLength: -1,
  911. validateStatus: function validateStatus(status) {
  912. return status >= 200 && status < 300;
  913. }
  914. };
  915. defaults.headers = {
  916. common: {
  917. 'Accept': 'application/json, text/plain, */*'
  918. }
  919. };
  920. utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
  921. defaults.headers[method] = {};
  922. });
  923. utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
  924. defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
  925. });
  926. module.exports = defaults;
  927. /***/ }),
  928. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/bind.js":
  929. /*!********************************************************************************!*\
  930. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/bind.js ***!
  931. \********************************************************************************/
  932. /***/ ((module) => {
  933. "use strict";
  934. module.exports = function bind(fn, thisArg) {
  935. return function wrap() {
  936. var args = new Array(arguments.length);
  937. for (var i = 0; i < args.length; i++) {
  938. args[i] = arguments[i];
  939. }
  940. return fn.apply(thisArg, args);
  941. };
  942. };
  943. /***/ }),
  944. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/buildURL.js":
  945. /*!************************************************************************************!*\
  946. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/buildURL.js ***!
  947. \************************************************************************************/
  948. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  949. "use strict";
  950. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  951. function encode(val) {
  952. return encodeURIComponent(val).
  953. replace(/%3A/gi, ':').
  954. replace(/%24/g, '$').
  955. replace(/%2C/gi, ',').
  956. replace(/%20/g, '+').
  957. replace(/%5B/gi, '[').
  958. replace(/%5D/gi, ']');
  959. }
  960. /**
  961. * Build a URL by appending params to the end
  962. *
  963. * @param {string} url The base of the url (e.g., http://www.google.com)
  964. * @param {object} [params] The params to be appended
  965. * @returns {string} The formatted url
  966. */
  967. module.exports = function buildURL(url, params, paramsSerializer) {
  968. /*eslint no-param-reassign:0*/
  969. if (!params) {
  970. return url;
  971. }
  972. var serializedParams;
  973. if (paramsSerializer) {
  974. serializedParams = paramsSerializer(params);
  975. } else if (utils.isURLSearchParams(params)) {
  976. serializedParams = params.toString();
  977. } else {
  978. var parts = [];
  979. utils.forEach(params, function serialize(val, key) {
  980. if (val === null || typeof val === 'undefined') {
  981. return;
  982. }
  983. if (utils.isArray(val)) {
  984. key = key + '[]';
  985. } else {
  986. val = [val];
  987. }
  988. utils.forEach(val, function parseValue(v) {
  989. if (utils.isDate(v)) {
  990. v = v.toISOString();
  991. } else if (utils.isObject(v)) {
  992. v = JSON.stringify(v);
  993. }
  994. parts.push(encode(key) + '=' + encode(v));
  995. });
  996. });
  997. serializedParams = parts.join('&');
  998. }
  999. if (serializedParams) {
  1000. var hashmarkIndex = url.indexOf('#');
  1001. if (hashmarkIndex !== -1) {
  1002. url = url.slice(0, hashmarkIndex);
  1003. }
  1004. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  1005. }
  1006. return url;
  1007. };
  1008. /***/ }),
  1009. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/combineURLs.js":
  1010. /*!***************************************************************************************!*\
  1011. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/combineURLs.js ***!
  1012. \***************************************************************************************/
  1013. /***/ ((module) => {
  1014. "use strict";
  1015. /**
  1016. * Creates a new URL by combining the specified URLs
  1017. *
  1018. * @param {string} baseURL The base URL
  1019. * @param {string} relativeURL The relative URL
  1020. * @returns {string} The combined URL
  1021. */
  1022. module.exports = function combineURLs(baseURL, relativeURL) {
  1023. return relativeURL
  1024. ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
  1025. : baseURL;
  1026. };
  1027. /***/ }),
  1028. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/cookies.js":
  1029. /*!***********************************************************************************!*\
  1030. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/cookies.js ***!
  1031. \***********************************************************************************/
  1032. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1033. "use strict";
  1034. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  1035. module.exports = (
  1036. utils.isStandardBrowserEnv() ?
  1037. // Standard browser envs support document.cookie
  1038. (function standardBrowserEnv() {
  1039. return {
  1040. write: function write(name, value, expires, path, domain, secure) {
  1041. var cookie = [];
  1042. cookie.push(name + '=' + encodeURIComponent(value));
  1043. if (utils.isNumber(expires)) {
  1044. cookie.push('expires=' + new Date(expires).toGMTString());
  1045. }
  1046. if (utils.isString(path)) {
  1047. cookie.push('path=' + path);
  1048. }
  1049. if (utils.isString(domain)) {
  1050. cookie.push('domain=' + domain);
  1051. }
  1052. if (secure === true) {
  1053. cookie.push('secure');
  1054. }
  1055. document.cookie = cookie.join('; ');
  1056. },
  1057. read: function read(name) {
  1058. var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
  1059. return (match ? decodeURIComponent(match[3]) : null);
  1060. },
  1061. remove: function remove(name) {
  1062. this.write(name, '', Date.now() - 86400000);
  1063. }
  1064. };
  1065. })() :
  1066. // Non standard browser env (web workers, react-native) lack needed support.
  1067. (function nonStandardBrowserEnv() {
  1068. return {
  1069. write: function write() {},
  1070. read: function read() { return null; },
  1071. remove: function remove() {}
  1072. };
  1073. })()
  1074. );
  1075. /***/ }),
  1076. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/isAbsoluteURL.js":
  1077. /*!*****************************************************************************************!*\
  1078. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/isAbsoluteURL.js ***!
  1079. \*****************************************************************************************/
  1080. /***/ ((module) => {
  1081. "use strict";
  1082. /**
  1083. * Determines whether the specified URL is absolute
  1084. *
  1085. * @param {string} url The URL to test
  1086. * @returns {boolean} True if the specified URL is absolute, otherwise false
  1087. */
  1088. module.exports = function isAbsoluteURL(url) {
  1089. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  1090. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  1091. // by any combination of letters, digits, plus, period, or hyphen.
  1092. return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
  1093. };
  1094. /***/ }),
  1095. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/isAxiosError.js":
  1096. /*!****************************************************************************************!*\
  1097. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/isAxiosError.js ***!
  1098. \****************************************************************************************/
  1099. /***/ ((module) => {
  1100. "use strict";
  1101. /**
  1102. * Determines whether the payload is an error thrown by Axios
  1103. *
  1104. * @param {*} payload The value to test
  1105. * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
  1106. */
  1107. module.exports = function isAxiosError(payload) {
  1108. return (typeof payload === 'object') && (payload.isAxiosError === true);
  1109. };
  1110. /***/ }),
  1111. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/isURLSameOrigin.js":
  1112. /*!*******************************************************************************************!*\
  1113. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/isURLSameOrigin.js ***!
  1114. \*******************************************************************************************/
  1115. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1116. "use strict";
  1117. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  1118. module.exports = (
  1119. utils.isStandardBrowserEnv() ?
  1120. // Standard browser envs have full support of the APIs needed to test
  1121. // whether the request URL is of the same origin as current location.
  1122. (function standardBrowserEnv() {
  1123. var msie = /(msie|trident)/i.test(navigator.userAgent);
  1124. var urlParsingNode = document.createElement('a');
  1125. var originURL;
  1126. /**
  1127. * Parse a URL to discover it's components
  1128. *
  1129. * @param {String} url The URL to be parsed
  1130. * @returns {Object}
  1131. */
  1132. function resolveURL(url) {
  1133. var href = url;
  1134. if (msie) {
  1135. // IE needs attribute set twice to normalize properties
  1136. urlParsingNode.setAttribute('href', href);
  1137. href = urlParsingNode.href;
  1138. }
  1139. urlParsingNode.setAttribute('href', href);
  1140. // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
  1141. return {
  1142. href: urlParsingNode.href,
  1143. protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
  1144. host: urlParsingNode.host,
  1145. search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
  1146. hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
  1147. hostname: urlParsingNode.hostname,
  1148. port: urlParsingNode.port,
  1149. pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
  1150. urlParsingNode.pathname :
  1151. '/' + urlParsingNode.pathname
  1152. };
  1153. }
  1154. originURL = resolveURL(window.location.href);
  1155. /**
  1156. * Determine if a URL shares the same origin as the current location
  1157. *
  1158. * @param {String} requestURL The URL to test
  1159. * @returns {boolean} True if URL shares the same origin, otherwise false
  1160. */
  1161. return function isURLSameOrigin(requestURL) {
  1162. var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
  1163. return (parsed.protocol === originURL.protocol &&
  1164. parsed.host === originURL.host);
  1165. };
  1166. })() :
  1167. // Non standard browser envs (web workers, react-native) lack needed support.
  1168. (function nonStandardBrowserEnv() {
  1169. return function isURLSameOrigin() {
  1170. return true;
  1171. };
  1172. })()
  1173. );
  1174. /***/ }),
  1175. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/normalizeHeaderName.js":
  1176. /*!***********************************************************************************************!*\
  1177. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/normalizeHeaderName.js ***!
  1178. \***********************************************************************************************/
  1179. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1180. "use strict";
  1181. var utils = __webpack_require__(/*! ../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  1182. module.exports = function normalizeHeaderName(headers, normalizedName) {
  1183. utils.forEach(headers, function processHeader(value, name) {
  1184. if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
  1185. headers[normalizedName] = value;
  1186. delete headers[name];
  1187. }
  1188. });
  1189. };
  1190. /***/ }),
  1191. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/parseHeaders.js":
  1192. /*!****************************************************************************************!*\
  1193. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/parseHeaders.js ***!
  1194. \****************************************************************************************/
  1195. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1196. "use strict";
  1197. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  1198. // Headers whose duplicates are ignored by node
  1199. // c.f. https://nodejs.org/api/http.html#http_message_headers
  1200. var ignoreDuplicateOf = [
  1201. 'age', 'authorization', 'content-length', 'content-type', 'etag',
  1202. 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
  1203. 'last-modified', 'location', 'max-forwards', 'proxy-authorization',
  1204. 'referer', 'retry-after', 'user-agent'
  1205. ];
  1206. /**
  1207. * Parse headers into an object
  1208. *
  1209. * ```
  1210. * Date: Wed, 27 Aug 2014 08:58:49 GMT
  1211. * Content-Type: application/json
  1212. * Connection: keep-alive
  1213. * Transfer-Encoding: chunked
  1214. * ```
  1215. *
  1216. * @param {String} headers Headers needing to be parsed
  1217. * @returns {Object} Headers parsed into an object
  1218. */
  1219. module.exports = function parseHeaders(headers) {
  1220. var parsed = {};
  1221. var key;
  1222. var val;
  1223. var i;
  1224. if (!headers) { return parsed; }
  1225. utils.forEach(headers.split('\n'), function parser(line) {
  1226. i = line.indexOf(':');
  1227. key = utils.trim(line.substr(0, i)).toLowerCase();
  1228. val = utils.trim(line.substr(i + 1));
  1229. if (key) {
  1230. if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
  1231. return;
  1232. }
  1233. if (key === 'set-cookie') {
  1234. parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
  1235. } else {
  1236. parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
  1237. }
  1238. }
  1239. });
  1240. return parsed;
  1241. };
  1242. /***/ }),
  1243. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/spread.js":
  1244. /*!**********************************************************************************!*\
  1245. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/spread.js ***!
  1246. \**********************************************************************************/
  1247. /***/ ((module) => {
  1248. "use strict";
  1249. /**
  1250. * Syntactic sugar for invoking a function and expanding an array for arguments.
  1251. *
  1252. * Common use case would be to use `Function.prototype.apply`.
  1253. *
  1254. * ```js
  1255. * function f(x, y, z) {}
  1256. * var args = [1, 2, 3];
  1257. * f.apply(null, args);
  1258. * ```
  1259. *
  1260. * With `spread` this example can be re-written.
  1261. *
  1262. * ```js
  1263. * spread(function(x, y, z) {})([1, 2, 3]);
  1264. * ```
  1265. *
  1266. * @param {Function} callback
  1267. * @returns {Function}
  1268. */
  1269. module.exports = function spread(callback) {
  1270. return function wrap(arr) {
  1271. return callback.apply(null, arr);
  1272. };
  1273. };
  1274. /***/ }),
  1275. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/validator.js":
  1276. /*!*************************************************************************************!*\
  1277. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/validator.js ***!
  1278. \*************************************************************************************/
  1279. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1280. "use strict";
  1281. var pkg = __webpack_require__(/*! ./../../package.json */ "./node_modules/@inertiajs/inertia/node_modules/axios/package.json");
  1282. var validators = {};
  1283. // eslint-disable-next-line func-names
  1284. ['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {
  1285. validators[type] = function validator(thing) {
  1286. return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
  1287. };
  1288. });
  1289. var deprecatedWarnings = {};
  1290. var currentVerArr = pkg.version.split('.');
  1291. /**
  1292. * Compare package versions
  1293. * @param {string} version
  1294. * @param {string?} thanVersion
  1295. * @returns {boolean}
  1296. */
  1297. function isOlderVersion(version, thanVersion) {
  1298. var pkgVersionArr = thanVersion ? thanVersion.split('.') : currentVerArr;
  1299. var destVer = version.split('.');
  1300. for (var i = 0; i < 3; i++) {
  1301. if (pkgVersionArr[i] > destVer[i]) {
  1302. return true;
  1303. } else if (pkgVersionArr[i] < destVer[i]) {
  1304. return false;
  1305. }
  1306. }
  1307. return false;
  1308. }
  1309. /**
  1310. * Transitional option validator
  1311. * @param {function|boolean?} validator
  1312. * @param {string?} version
  1313. * @param {string} message
  1314. * @returns {function}
  1315. */
  1316. validators.transitional = function transitional(validator, version, message) {
  1317. var isDeprecated = version && isOlderVersion(version);
  1318. function formatMessage(opt, desc) {
  1319. return '[Axios v' + pkg.version + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
  1320. }
  1321. // eslint-disable-next-line func-names
  1322. return function(value, opt, opts) {
  1323. if (validator === false) {
  1324. throw new Error(formatMessage(opt, ' has been removed in ' + version));
  1325. }
  1326. if (isDeprecated && !deprecatedWarnings[opt]) {
  1327. deprecatedWarnings[opt] = true;
  1328. // eslint-disable-next-line no-console
  1329. console.warn(
  1330. formatMessage(
  1331. opt,
  1332. ' has been deprecated since v' + version + ' and will be removed in the near future'
  1333. )
  1334. );
  1335. }
  1336. return validator ? validator(value, opt, opts) : true;
  1337. };
  1338. };
  1339. /**
  1340. * Assert object's properties type
  1341. * @param {object} options
  1342. * @param {object} schema
  1343. * @param {boolean?} allowUnknown
  1344. */
  1345. function assertOptions(options, schema, allowUnknown) {
  1346. if (typeof options !== 'object') {
  1347. throw new TypeError('options must be an object');
  1348. }
  1349. var keys = Object.keys(options);
  1350. var i = keys.length;
  1351. while (i-- > 0) {
  1352. var opt = keys[i];
  1353. var validator = schema[opt];
  1354. if (validator) {
  1355. var value = options[opt];
  1356. var result = value === undefined || validator(value, opt, options);
  1357. if (result !== true) {
  1358. throw new TypeError('option ' + opt + ' must be ' + result);
  1359. }
  1360. continue;
  1361. }
  1362. if (allowUnknown !== true) {
  1363. throw Error('Unknown option ' + opt);
  1364. }
  1365. }
  1366. }
  1367. module.exports = {
  1368. isOlderVersion: isOlderVersion,
  1369. assertOptions: assertOptions,
  1370. validators: validators
  1371. };
  1372. /***/ }),
  1373. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js":
  1374. /*!*************************************************************************!*\
  1375. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js ***!
  1376. \*************************************************************************/
  1377. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1378. "use strict";
  1379. var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/bind.js");
  1380. // utils is a library of generic helper functions non-specific to axios
  1381. var toString = Object.prototype.toString;
  1382. /**
  1383. * Determine if a value is an Array
  1384. *
  1385. * @param {Object} val The value to test
  1386. * @returns {boolean} True if value is an Array, otherwise false
  1387. */
  1388. function isArray(val) {
  1389. return toString.call(val) === '[object Array]';
  1390. }
  1391. /**
  1392. * Determine if a value is undefined
  1393. *
  1394. * @param {Object} val The value to test
  1395. * @returns {boolean} True if the value is undefined, otherwise false
  1396. */
  1397. function isUndefined(val) {
  1398. return typeof val === 'undefined';
  1399. }
  1400. /**
  1401. * Determine if a value is a Buffer
  1402. *
  1403. * @param {Object} val The value to test
  1404. * @returns {boolean} True if value is a Buffer, otherwise false
  1405. */
  1406. function isBuffer(val) {
  1407. return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
  1408. && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);
  1409. }
  1410. /**
  1411. * Determine if a value is an ArrayBuffer
  1412. *
  1413. * @param {Object} val The value to test
  1414. * @returns {boolean} True if value is an ArrayBuffer, otherwise false
  1415. */
  1416. function isArrayBuffer(val) {
  1417. return toString.call(val) === '[object ArrayBuffer]';
  1418. }
  1419. /**
  1420. * Determine if a value is a FormData
  1421. *
  1422. * @param {Object} val The value to test
  1423. * @returns {boolean} True if value is an FormData, otherwise false
  1424. */
  1425. function isFormData(val) {
  1426. return (typeof FormData !== 'undefined') && (val instanceof FormData);
  1427. }
  1428. /**
  1429. * Determine if a value is a view on an ArrayBuffer
  1430. *
  1431. * @param {Object} val The value to test
  1432. * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
  1433. */
  1434. function isArrayBufferView(val) {
  1435. var result;
  1436. if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
  1437. result = ArrayBuffer.isView(val);
  1438. } else {
  1439. result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);
  1440. }
  1441. return result;
  1442. }
  1443. /**
  1444. * Determine if a value is a String
  1445. *
  1446. * @param {Object} val The value to test
  1447. * @returns {boolean} True if value is a String, otherwise false
  1448. */
  1449. function isString(val) {
  1450. return typeof val === 'string';
  1451. }
  1452. /**
  1453. * Determine if a value is a Number
  1454. *
  1455. * @param {Object} val The value to test
  1456. * @returns {boolean} True if value is a Number, otherwise false
  1457. */
  1458. function isNumber(val) {
  1459. return typeof val === 'number';
  1460. }
  1461. /**
  1462. * Determine if a value is an Object
  1463. *
  1464. * @param {Object} val The value to test
  1465. * @returns {boolean} True if value is an Object, otherwise false
  1466. */
  1467. function isObject(val) {
  1468. return val !== null && typeof val === 'object';
  1469. }
  1470. /**
  1471. * Determine if a value is a plain Object
  1472. *
  1473. * @param {Object} val The value to test
  1474. * @return {boolean} True if value is a plain Object, otherwise false
  1475. */
  1476. function isPlainObject(val) {
  1477. if (toString.call(val) !== '[object Object]') {
  1478. return false;
  1479. }
  1480. var prototype = Object.getPrototypeOf(val);
  1481. return prototype === null || prototype === Object.prototype;
  1482. }
  1483. /**
  1484. * Determine if a value is a Date
  1485. *
  1486. * @param {Object} val The value to test
  1487. * @returns {boolean} True if value is a Date, otherwise false
  1488. */
  1489. function isDate(val) {
  1490. return toString.call(val) === '[object Date]';
  1491. }
  1492. /**
  1493. * Determine if a value is a File
  1494. *
  1495. * @param {Object} val The value to test
  1496. * @returns {boolean} True if value is a File, otherwise false
  1497. */
  1498. function isFile(val) {
  1499. return toString.call(val) === '[object File]';
  1500. }
  1501. /**
  1502. * Determine if a value is a Blob
  1503. *
  1504. * @param {Object} val The value to test
  1505. * @returns {boolean} True if value is a Blob, otherwise false
  1506. */
  1507. function isBlob(val) {
  1508. return toString.call(val) === '[object Blob]';
  1509. }
  1510. /**
  1511. * Determine if a value is a Function
  1512. *
  1513. * @param {Object} val The value to test
  1514. * @returns {boolean} True if value is a Function, otherwise false
  1515. */
  1516. function isFunction(val) {
  1517. return toString.call(val) === '[object Function]';
  1518. }
  1519. /**
  1520. * Determine if a value is a Stream
  1521. *
  1522. * @param {Object} val The value to test
  1523. * @returns {boolean} True if value is a Stream, otherwise false
  1524. */
  1525. function isStream(val) {
  1526. return isObject(val) && isFunction(val.pipe);
  1527. }
  1528. /**
  1529. * Determine if a value is a URLSearchParams object
  1530. *
  1531. * @param {Object} val The value to test
  1532. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  1533. */
  1534. function isURLSearchParams(val) {
  1535. return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
  1536. }
  1537. /**
  1538. * Trim excess whitespace off the beginning and end of a string
  1539. *
  1540. * @param {String} str The String to trim
  1541. * @returns {String} The String freed of excess whitespace
  1542. */
  1543. function trim(str) {
  1544. return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, '');
  1545. }
  1546. /**
  1547. * Determine if we're running in a standard browser environment
  1548. *
  1549. * This allows axios to run in a web worker, and react-native.
  1550. * Both environments support XMLHttpRequest, but not fully standard globals.
  1551. *
  1552. * web workers:
  1553. * typeof window -> undefined
  1554. * typeof document -> undefined
  1555. *
  1556. * react-native:
  1557. * navigator.product -> 'ReactNative'
  1558. * nativescript
  1559. * navigator.product -> 'NativeScript' or 'NS'
  1560. */
  1561. function isStandardBrowserEnv() {
  1562. if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||
  1563. navigator.product === 'NativeScript' ||
  1564. navigator.product === 'NS')) {
  1565. return false;
  1566. }
  1567. return (
  1568. typeof window !== 'undefined' &&
  1569. typeof document !== 'undefined'
  1570. );
  1571. }
  1572. /**
  1573. * Iterate over an Array or an Object invoking a function for each item.
  1574. *
  1575. * If `obj` is an Array callback will be called passing
  1576. * the value, index, and complete array for each item.
  1577. *
  1578. * If 'obj' is an Object callback will be called passing
  1579. * the value, key, and complete object for each property.
  1580. *
  1581. * @param {Object|Array} obj The object to iterate
  1582. * @param {Function} fn The callback to invoke for each item
  1583. */
  1584. function forEach(obj, fn) {
  1585. // Don't bother if no value provided
  1586. if (obj === null || typeof obj === 'undefined') {
  1587. return;
  1588. }
  1589. // Force an array if not already something iterable
  1590. if (typeof obj !== 'object') {
  1591. /*eslint no-param-reassign:0*/
  1592. obj = [obj];
  1593. }
  1594. if (isArray(obj)) {
  1595. // Iterate over array values
  1596. for (var i = 0, l = obj.length; i < l; i++) {
  1597. fn.call(null, obj[i], i, obj);
  1598. }
  1599. } else {
  1600. // Iterate over object keys
  1601. for (var key in obj) {
  1602. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  1603. fn.call(null, obj[key], key, obj);
  1604. }
  1605. }
  1606. }
  1607. }
  1608. /**
  1609. * Accepts varargs expecting each argument to be an object, then
  1610. * immutably merges the properties of each object and returns result.
  1611. *
  1612. * When multiple objects contain the same key the later object in
  1613. * the arguments list will take precedence.
  1614. *
  1615. * Example:
  1616. *
  1617. * ```js
  1618. * var result = merge({foo: 123}, {foo: 456});
  1619. * console.log(result.foo); // outputs 456
  1620. * ```
  1621. *
  1622. * @param {Object} obj1 Object to merge
  1623. * @returns {Object} Result of all merge properties
  1624. */
  1625. function merge(/* obj1, obj2, obj3, ... */) {
  1626. var result = {};
  1627. function assignValue(val, key) {
  1628. if (isPlainObject(result[key]) && isPlainObject(val)) {
  1629. result[key] = merge(result[key], val);
  1630. } else if (isPlainObject(val)) {
  1631. result[key] = merge({}, val);
  1632. } else if (isArray(val)) {
  1633. result[key] = val.slice();
  1634. } else {
  1635. result[key] = val;
  1636. }
  1637. }
  1638. for (var i = 0, l = arguments.length; i < l; i++) {
  1639. forEach(arguments[i], assignValue);
  1640. }
  1641. return result;
  1642. }
  1643. /**
  1644. * Extends object a by mutably adding to it the properties of object b.
  1645. *
  1646. * @param {Object} a The object to be extended
  1647. * @param {Object} b The object to copy properties from
  1648. * @param {Object} thisArg The object to bind function to
  1649. * @return {Object} The resulting value of object a
  1650. */
  1651. function extend(a, b, thisArg) {
  1652. forEach(b, function assignValue(val, key) {
  1653. if (thisArg && typeof val === 'function') {
  1654. a[key] = bind(val, thisArg);
  1655. } else {
  1656. a[key] = val;
  1657. }
  1658. });
  1659. return a;
  1660. }
  1661. /**
  1662. * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
  1663. *
  1664. * @param {string} content with BOM
  1665. * @return {string} content value without BOM
  1666. */
  1667. function stripBOM(content) {
  1668. if (content.charCodeAt(0) === 0xFEFF) {
  1669. content = content.slice(1);
  1670. }
  1671. return content;
  1672. }
  1673. module.exports = {
  1674. isArray: isArray,
  1675. isArrayBuffer: isArrayBuffer,
  1676. isBuffer: isBuffer,
  1677. isFormData: isFormData,
  1678. isArrayBufferView: isArrayBufferView,
  1679. isString: isString,
  1680. isNumber: isNumber,
  1681. isObject: isObject,
  1682. isPlainObject: isPlainObject,
  1683. isUndefined: isUndefined,
  1684. isDate: isDate,
  1685. isFile: isFile,
  1686. isBlob: isBlob,
  1687. isFunction: isFunction,
  1688. isStream: isStream,
  1689. isURLSearchParams: isURLSearchParams,
  1690. isStandardBrowserEnv: isStandardBrowserEnv,
  1691. forEach: forEach,
  1692. merge: merge,
  1693. extend: extend,
  1694. trim: trim,
  1695. stripBOM: stripBOM
  1696. };
  1697. /***/ }),
  1698. /***/ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/formats.js":
  1699. /*!************************************************************************!*\
  1700. !*** ./node_modules/@inertiajs/inertia/node_modules/qs/lib/formats.js ***!
  1701. \************************************************************************/
  1702. /***/ ((module) => {
  1703. "use strict";
  1704. var replace = String.prototype.replace;
  1705. var percentTwenties = /%20/g;
  1706. var Format = {
  1707. RFC1738: 'RFC1738',
  1708. RFC3986: 'RFC3986'
  1709. };
  1710. module.exports = {
  1711. 'default': Format.RFC3986,
  1712. formatters: {
  1713. RFC1738: function (value) {
  1714. return replace.call(value, percentTwenties, '+');
  1715. },
  1716. RFC3986: function (value) {
  1717. return String(value);
  1718. }
  1719. },
  1720. RFC1738: Format.RFC1738,
  1721. RFC3986: Format.RFC3986
  1722. };
  1723. /***/ }),
  1724. /***/ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/index.js":
  1725. /*!**********************************************************************!*\
  1726. !*** ./node_modules/@inertiajs/inertia/node_modules/qs/lib/index.js ***!
  1727. \**********************************************************************/
  1728. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1729. "use strict";
  1730. var stringify = __webpack_require__(/*! ./stringify */ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/stringify.js");
  1731. var parse = __webpack_require__(/*! ./parse */ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/parse.js");
  1732. var formats = __webpack_require__(/*! ./formats */ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/formats.js");
  1733. module.exports = {
  1734. formats: formats,
  1735. parse: parse,
  1736. stringify: stringify
  1737. };
  1738. /***/ }),
  1739. /***/ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/parse.js":
  1740. /*!**********************************************************************!*\
  1741. !*** ./node_modules/@inertiajs/inertia/node_modules/qs/lib/parse.js ***!
  1742. \**********************************************************************/
  1743. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1744. "use strict";
  1745. var utils = __webpack_require__(/*! ./utils */ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/utils.js");
  1746. var has = Object.prototype.hasOwnProperty;
  1747. var isArray = Array.isArray;
  1748. var defaults = {
  1749. allowDots: false,
  1750. allowPrototypes: false,
  1751. allowSparse: false,
  1752. arrayLimit: 20,
  1753. charset: 'utf-8',
  1754. charsetSentinel: false,
  1755. comma: false,
  1756. decoder: utils.decode,
  1757. delimiter: '&',
  1758. depth: 5,
  1759. ignoreQueryPrefix: false,
  1760. interpretNumericEntities: false,
  1761. parameterLimit: 1000,
  1762. parseArrays: true,
  1763. plainObjects: false,
  1764. strictNullHandling: false
  1765. };
  1766. var interpretNumericEntities = function (str) {
  1767. return str.replace(/&#(\d+);/g, function ($0, numberStr) {
  1768. return String.fromCharCode(parseInt(numberStr, 10));
  1769. });
  1770. };
  1771. var parseArrayValue = function (val, options) {
  1772. if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
  1773. return val.split(',');
  1774. }
  1775. return val;
  1776. };
  1777. // This is what browsers will submit when the ✓ character occurs in an
  1778. // application/x-www-form-urlencoded body and the encoding of the page containing
  1779. // the form is iso-8859-1, or when the submitted form has an accept-charset
  1780. // attribute of iso-8859-1. Presumably also with other charsets that do not contain
  1781. // the ✓ character, such as us-ascii.
  1782. var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')
  1783. // These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
  1784. var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
  1785. var parseValues = function parseQueryStringValues(str, options) {
  1786. var obj = {};
  1787. var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
  1788. var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
  1789. var parts = cleanStr.split(options.delimiter, limit);
  1790. var skipIndex = -1; // Keep track of where the utf8 sentinel was found
  1791. var i;
  1792. var charset = options.charset;
  1793. if (options.charsetSentinel) {
  1794. for (i = 0; i < parts.length; ++i) {
  1795. if (parts[i].indexOf('utf8=') === 0) {
  1796. if (parts[i] === charsetSentinel) {
  1797. charset = 'utf-8';
  1798. } else if (parts[i] === isoSentinel) {
  1799. charset = 'iso-8859-1';
  1800. }
  1801. skipIndex = i;
  1802. i = parts.length; // The eslint settings do not allow break;
  1803. }
  1804. }
  1805. }
  1806. for (i = 0; i < parts.length; ++i) {
  1807. if (i === skipIndex) {
  1808. continue;
  1809. }
  1810. var part = parts[i];
  1811. var bracketEqualsPos = part.indexOf(']=');
  1812. var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
  1813. var key, val;
  1814. if (pos === -1) {
  1815. key = options.decoder(part, defaults.decoder, charset, 'key');
  1816. val = options.strictNullHandling ? null : '';
  1817. } else {
  1818. key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
  1819. val = utils.maybeMap(
  1820. parseArrayValue(part.slice(pos + 1), options),
  1821. function (encodedVal) {
  1822. return options.decoder(encodedVal, defaults.decoder, charset, 'value');
  1823. }
  1824. );
  1825. }
  1826. if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
  1827. val = interpretNumericEntities(val);
  1828. }
  1829. if (part.indexOf('[]=') > -1) {
  1830. val = isArray(val) ? [val] : val;
  1831. }
  1832. if (has.call(obj, key)) {
  1833. obj[key] = utils.combine(obj[key], val);
  1834. } else {
  1835. obj[key] = val;
  1836. }
  1837. }
  1838. return obj;
  1839. };
  1840. var parseObject = function (chain, val, options, valuesParsed) {
  1841. var leaf = valuesParsed ? val : parseArrayValue(val, options);
  1842. for (var i = chain.length - 1; i >= 0; --i) {
  1843. var obj;
  1844. var root = chain[i];
  1845. if (root === '[]' && options.parseArrays) {
  1846. obj = [].concat(leaf);
  1847. } else {
  1848. obj = options.plainObjects ? Object.create(null) : {};
  1849. var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
  1850. var index = parseInt(cleanRoot, 10);
  1851. if (!options.parseArrays && cleanRoot === '') {
  1852. obj = { 0: leaf };
  1853. } else if (
  1854. !isNaN(index)
  1855. && root !== cleanRoot
  1856. && String(index) === cleanRoot
  1857. && index >= 0
  1858. && (options.parseArrays && index <= options.arrayLimit)
  1859. ) {
  1860. obj = [];
  1861. obj[index] = leaf;
  1862. } else if (cleanRoot !== '__proto__') {
  1863. obj[cleanRoot] = leaf;
  1864. }
  1865. }
  1866. leaf = obj;
  1867. }
  1868. return leaf;
  1869. };
  1870. var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
  1871. if (!givenKey) {
  1872. return;
  1873. }
  1874. // Transform dot notation to bracket notation
  1875. var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
  1876. // The regex chunks
  1877. var brackets = /(\[[^[\]]*])/;
  1878. var child = /(\[[^[\]]*])/g;
  1879. // Get the parent
  1880. var segment = options.depth > 0 && brackets.exec(key);
  1881. var parent = segment ? key.slice(0, segment.index) : key;
  1882. // Stash the parent if it exists
  1883. var keys = [];
  1884. if (parent) {
  1885. // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
  1886. if (!options.plainObjects && has.call(Object.prototype, parent)) {
  1887. if (!options.allowPrototypes) {
  1888. return;
  1889. }
  1890. }
  1891. keys.push(parent);
  1892. }
  1893. // Loop through children appending to the array until we hit depth
  1894. var i = 0;
  1895. while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
  1896. i += 1;
  1897. if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
  1898. if (!options.allowPrototypes) {
  1899. return;
  1900. }
  1901. }
  1902. keys.push(segment[1]);
  1903. }
  1904. // If there's a remainder, just add whatever is left
  1905. if (segment) {
  1906. keys.push('[' + key.slice(segment.index) + ']');
  1907. }
  1908. return parseObject(keys, val, options, valuesParsed);
  1909. };
  1910. var normalizeParseOptions = function normalizeParseOptions(opts) {
  1911. if (!opts) {
  1912. return defaults;
  1913. }
  1914. if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
  1915. throw new TypeError('Decoder has to be a function.');
  1916. }
  1917. if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
  1918. throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
  1919. }
  1920. var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
  1921. return {
  1922. allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
  1923. allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
  1924. allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
  1925. arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
  1926. charset: charset,
  1927. charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
  1928. comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
  1929. decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
  1930. delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
  1931. // eslint-disable-next-line no-implicit-coercion, no-extra-parens
  1932. depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
  1933. ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
  1934. interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
  1935. parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
  1936. parseArrays: opts.parseArrays !== false,
  1937. plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
  1938. strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
  1939. };
  1940. };
  1941. module.exports = function (str, opts) {
  1942. var options = normalizeParseOptions(opts);
  1943. if (str === '' || str === null || typeof str === 'undefined') {
  1944. return options.plainObjects ? Object.create(null) : {};
  1945. }
  1946. var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
  1947. var obj = options.plainObjects ? Object.create(null) : {};
  1948. // Iterate over the keys and setup the new object
  1949. var keys = Object.keys(tempObj);
  1950. for (var i = 0; i < keys.length; ++i) {
  1951. var key = keys[i];
  1952. var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
  1953. obj = utils.merge(obj, newObj, options);
  1954. }
  1955. if (options.allowSparse === true) {
  1956. return obj;
  1957. }
  1958. return utils.compact(obj);
  1959. };
  1960. /***/ }),
  1961. /***/ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/stringify.js":
  1962. /*!**************************************************************************!*\
  1963. !*** ./node_modules/@inertiajs/inertia/node_modules/qs/lib/stringify.js ***!
  1964. \**************************************************************************/
  1965. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1966. "use strict";
  1967. var getSideChannel = __webpack_require__(/*! side-channel */ "./node_modules/side-channel/index.js");
  1968. var utils = __webpack_require__(/*! ./utils */ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/utils.js");
  1969. var formats = __webpack_require__(/*! ./formats */ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/formats.js");
  1970. var has = Object.prototype.hasOwnProperty;
  1971. var arrayPrefixGenerators = {
  1972. brackets: function brackets(prefix) {
  1973. return prefix + '[]';
  1974. },
  1975. comma: 'comma',
  1976. indices: function indices(prefix, key) {
  1977. return prefix + '[' + key + ']';
  1978. },
  1979. repeat: function repeat(prefix) {
  1980. return prefix;
  1981. }
  1982. };
  1983. var isArray = Array.isArray;
  1984. var split = String.prototype.split;
  1985. var push = Array.prototype.push;
  1986. var pushToArray = function (arr, valueOrArray) {
  1987. push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
  1988. };
  1989. var toISO = Date.prototype.toISOString;
  1990. var defaultFormat = formats['default'];
  1991. var defaults = {
  1992. addQueryPrefix: false,
  1993. allowDots: false,
  1994. charset: 'utf-8',
  1995. charsetSentinel: false,
  1996. delimiter: '&',
  1997. encode: true,
  1998. encoder: utils.encode,
  1999. encodeValuesOnly: false,
  2000. format: defaultFormat,
  2001. formatter: formats.formatters[defaultFormat],
  2002. // deprecated
  2003. indices: false,
  2004. serializeDate: function serializeDate(date) {
  2005. return toISO.call(date);
  2006. },
  2007. skipNulls: false,
  2008. strictNullHandling: false
  2009. };
  2010. var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
  2011. return typeof v === 'string'
  2012. || typeof v === 'number'
  2013. || typeof v === 'boolean'
  2014. || typeof v === 'symbol'
  2015. || typeof v === 'bigint';
  2016. };
  2017. var sentinel = {};
  2018. var stringify = function stringify(
  2019. object,
  2020. prefix,
  2021. generateArrayPrefix,
  2022. strictNullHandling,
  2023. skipNulls,
  2024. encoder,
  2025. filter,
  2026. sort,
  2027. allowDots,
  2028. serializeDate,
  2029. format,
  2030. formatter,
  2031. encodeValuesOnly,
  2032. charset,
  2033. sideChannel
  2034. ) {
  2035. var obj = object;
  2036. var tmpSc = sideChannel;
  2037. var step = 0;
  2038. var findFlag = false;
  2039. while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
  2040. // Where object last appeared in the ref tree
  2041. var pos = tmpSc.get(object);
  2042. step += 1;
  2043. if (typeof pos !== 'undefined') {
  2044. if (pos === step) {
  2045. throw new RangeError('Cyclic object value');
  2046. } else {
  2047. findFlag = true; // Break while
  2048. }
  2049. }
  2050. if (typeof tmpSc.get(sentinel) === 'undefined') {
  2051. step = 0;
  2052. }
  2053. }
  2054. if (typeof filter === 'function') {
  2055. obj = filter(prefix, obj);
  2056. } else if (obj instanceof Date) {
  2057. obj = serializeDate(obj);
  2058. } else if (generateArrayPrefix === 'comma' && isArray(obj)) {
  2059. obj = utils.maybeMap(obj, function (value) {
  2060. if (value instanceof Date) {
  2061. return serializeDate(value);
  2062. }
  2063. return value;
  2064. });
  2065. }
  2066. if (obj === null) {
  2067. if (strictNullHandling) {
  2068. return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
  2069. }
  2070. obj = '';
  2071. }
  2072. if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
  2073. if (encoder) {
  2074. var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
  2075. if (generateArrayPrefix === 'comma' && encodeValuesOnly) {
  2076. var valuesArray = split.call(String(obj), ',');
  2077. var valuesJoined = '';
  2078. for (var i = 0; i < valuesArray.length; ++i) {
  2079. valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults.encoder, charset, 'value', format));
  2080. }
  2081. return [formatter(keyValue) + '=' + valuesJoined];
  2082. }
  2083. return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
  2084. }
  2085. return [formatter(prefix) + '=' + formatter(String(obj))];
  2086. }
  2087. var values = [];
  2088. if (typeof obj === 'undefined') {
  2089. return values;
  2090. }
  2091. var objKeys;
  2092. if (generateArrayPrefix === 'comma' && isArray(obj)) {
  2093. // we need to join elements in
  2094. objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
  2095. } else if (isArray(filter)) {
  2096. objKeys = filter;
  2097. } else {
  2098. var keys = Object.keys(obj);
  2099. objKeys = sort ? keys.sort(sort) : keys;
  2100. }
  2101. for (var j = 0; j < objKeys.length; ++j) {
  2102. var key = objKeys[j];
  2103. var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
  2104. if (skipNulls && value === null) {
  2105. continue;
  2106. }
  2107. var keyPrefix = isArray(obj)
  2108. ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix
  2109. : prefix + (allowDots ? '.' + key : '[' + key + ']');
  2110. sideChannel.set(object, step);
  2111. var valueSideChannel = getSideChannel();
  2112. valueSideChannel.set(sentinel, sideChannel);
  2113. pushToArray(values, stringify(
  2114. value,
  2115. keyPrefix,
  2116. generateArrayPrefix,
  2117. strictNullHandling,
  2118. skipNulls,
  2119. encoder,
  2120. filter,
  2121. sort,
  2122. allowDots,
  2123. serializeDate,
  2124. format,
  2125. formatter,
  2126. encodeValuesOnly,
  2127. charset,
  2128. valueSideChannel
  2129. ));
  2130. }
  2131. return values;
  2132. };
  2133. var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
  2134. if (!opts) {
  2135. return defaults;
  2136. }
  2137. if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
  2138. throw new TypeError('Encoder has to be a function.');
  2139. }
  2140. var charset = opts.charset || defaults.charset;
  2141. if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
  2142. throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
  2143. }
  2144. var format = formats['default'];
  2145. if (typeof opts.format !== 'undefined') {
  2146. if (!has.call(formats.formatters, opts.format)) {
  2147. throw new TypeError('Unknown format option provided.');
  2148. }
  2149. format = opts.format;
  2150. }
  2151. var formatter = formats.formatters[format];
  2152. var filter = defaults.filter;
  2153. if (typeof opts.filter === 'function' || isArray(opts.filter)) {
  2154. filter = opts.filter;
  2155. }
  2156. return {
  2157. addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
  2158. allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
  2159. charset: charset,
  2160. charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
  2161. delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
  2162. encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
  2163. encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
  2164. encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
  2165. filter: filter,
  2166. format: format,
  2167. formatter: formatter,
  2168. serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
  2169. skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
  2170. sort: typeof opts.sort === 'function' ? opts.sort : null,
  2171. strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
  2172. };
  2173. };
  2174. module.exports = function (object, opts) {
  2175. var obj = object;
  2176. var options = normalizeStringifyOptions(opts);
  2177. var objKeys;
  2178. var filter;
  2179. if (typeof options.filter === 'function') {
  2180. filter = options.filter;
  2181. obj = filter('', obj);
  2182. } else if (isArray(options.filter)) {
  2183. filter = options.filter;
  2184. objKeys = filter;
  2185. }
  2186. var keys = [];
  2187. if (typeof obj !== 'object' || obj === null) {
  2188. return '';
  2189. }
  2190. var arrayFormat;
  2191. if (opts && opts.arrayFormat in arrayPrefixGenerators) {
  2192. arrayFormat = opts.arrayFormat;
  2193. } else if (opts && 'indices' in opts) {
  2194. arrayFormat = opts.indices ? 'indices' : 'repeat';
  2195. } else {
  2196. arrayFormat = 'indices';
  2197. }
  2198. var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
  2199. if (!objKeys) {
  2200. objKeys = Object.keys(obj);
  2201. }
  2202. if (options.sort) {
  2203. objKeys.sort(options.sort);
  2204. }
  2205. var sideChannel = getSideChannel();
  2206. for (var i = 0; i < objKeys.length; ++i) {
  2207. var key = objKeys[i];
  2208. if (options.skipNulls && obj[key] === null) {
  2209. continue;
  2210. }
  2211. pushToArray(keys, stringify(
  2212. obj[key],
  2213. key,
  2214. generateArrayPrefix,
  2215. options.strictNullHandling,
  2216. options.skipNulls,
  2217. options.encode ? options.encoder : null,
  2218. options.filter,
  2219. options.sort,
  2220. options.allowDots,
  2221. options.serializeDate,
  2222. options.format,
  2223. options.formatter,
  2224. options.encodeValuesOnly,
  2225. options.charset,
  2226. sideChannel
  2227. ));
  2228. }
  2229. var joined = keys.join(options.delimiter);
  2230. var prefix = options.addQueryPrefix === true ? '?' : '';
  2231. if (options.charsetSentinel) {
  2232. if (options.charset === 'iso-8859-1') {
  2233. // encodeURIComponent('&#10003;'), the "numeric entity" representation of a checkmark
  2234. prefix += 'utf8=%26%2310003%3B&';
  2235. } else {
  2236. // encodeURIComponent('✓')
  2237. prefix += 'utf8=%E2%9C%93&';
  2238. }
  2239. }
  2240. return joined.length > 0 ? prefix + joined : '';
  2241. };
  2242. /***/ }),
  2243. /***/ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/utils.js":
  2244. /*!**********************************************************************!*\
  2245. !*** ./node_modules/@inertiajs/inertia/node_modules/qs/lib/utils.js ***!
  2246. \**********************************************************************/
  2247. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  2248. "use strict";
  2249. var formats = __webpack_require__(/*! ./formats */ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/formats.js");
  2250. var has = Object.prototype.hasOwnProperty;
  2251. var isArray = Array.isArray;
  2252. var hexTable = (function () {
  2253. var array = [];
  2254. for (var i = 0; i < 256; ++i) {
  2255. array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
  2256. }
  2257. return array;
  2258. }());
  2259. var compactQueue = function compactQueue(queue) {
  2260. while (queue.length > 1) {
  2261. var item = queue.pop();
  2262. var obj = item.obj[item.prop];
  2263. if (isArray(obj)) {
  2264. var compacted = [];
  2265. for (var j = 0; j < obj.length; ++j) {
  2266. if (typeof obj[j] !== 'undefined') {
  2267. compacted.push(obj[j]);
  2268. }
  2269. }
  2270. item.obj[item.prop] = compacted;
  2271. }
  2272. }
  2273. };
  2274. var arrayToObject = function arrayToObject(source, options) {
  2275. var obj = options && options.plainObjects ? Object.create(null) : {};
  2276. for (var i = 0; i < source.length; ++i) {
  2277. if (typeof source[i] !== 'undefined') {
  2278. obj[i] = source[i];
  2279. }
  2280. }
  2281. return obj;
  2282. };
  2283. var merge = function merge(target, source, options) {
  2284. /* eslint no-param-reassign: 0 */
  2285. if (!source) {
  2286. return target;
  2287. }
  2288. if (typeof source !== 'object') {
  2289. if (isArray(target)) {
  2290. target.push(source);
  2291. } else if (target && typeof target === 'object') {
  2292. if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
  2293. target[source] = true;
  2294. }
  2295. } else {
  2296. return [target, source];
  2297. }
  2298. return target;
  2299. }
  2300. if (!target || typeof target !== 'object') {
  2301. return [target].concat(source);
  2302. }
  2303. var mergeTarget = target;
  2304. if (isArray(target) && !isArray(source)) {
  2305. mergeTarget = arrayToObject(target, options);
  2306. }
  2307. if (isArray(target) && isArray(source)) {
  2308. source.forEach(function (item, i) {
  2309. if (has.call(target, i)) {
  2310. var targetItem = target[i];
  2311. if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
  2312. target[i] = merge(targetItem, item, options);
  2313. } else {
  2314. target.push(item);
  2315. }
  2316. } else {
  2317. target[i] = item;
  2318. }
  2319. });
  2320. return target;
  2321. }
  2322. return Object.keys(source).reduce(function (acc, key) {
  2323. var value = source[key];
  2324. if (has.call(acc, key)) {
  2325. acc[key] = merge(acc[key], value, options);
  2326. } else {
  2327. acc[key] = value;
  2328. }
  2329. return acc;
  2330. }, mergeTarget);
  2331. };
  2332. var assign = function assignSingleSource(target, source) {
  2333. return Object.keys(source).reduce(function (acc, key) {
  2334. acc[key] = source[key];
  2335. return acc;
  2336. }, target);
  2337. };
  2338. var decode = function (str, decoder, charset) {
  2339. var strWithoutPlus = str.replace(/\+/g, ' ');
  2340. if (charset === 'iso-8859-1') {
  2341. // unescape never throws, no try...catch needed:
  2342. return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
  2343. }
  2344. // utf-8
  2345. try {
  2346. return decodeURIComponent(strWithoutPlus);
  2347. } catch (e) {
  2348. return strWithoutPlus;
  2349. }
  2350. };
  2351. var encode = function encode(str, defaultEncoder, charset, kind, format) {
  2352. // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
  2353. // It has been adapted here for stricter adherence to RFC 3986
  2354. if (str.length === 0) {
  2355. return str;
  2356. }
  2357. var string = str;
  2358. if (typeof str === 'symbol') {
  2359. string = Symbol.prototype.toString.call(str);
  2360. } else if (typeof str !== 'string') {
  2361. string = String(str);
  2362. }
  2363. if (charset === 'iso-8859-1') {
  2364. return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
  2365. return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
  2366. });
  2367. }
  2368. var out = '';
  2369. for (var i = 0; i < string.length; ++i) {
  2370. var c = string.charCodeAt(i);
  2371. if (
  2372. c === 0x2D // -
  2373. || c === 0x2E // .
  2374. || c === 0x5F // _
  2375. || c === 0x7E // ~
  2376. || (c >= 0x30 && c <= 0x39) // 0-9
  2377. || (c >= 0x41 && c <= 0x5A) // a-z
  2378. || (c >= 0x61 && c <= 0x7A) // A-Z
  2379. || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
  2380. ) {
  2381. out += string.charAt(i);
  2382. continue;
  2383. }
  2384. if (c < 0x80) {
  2385. out = out + hexTable[c];
  2386. continue;
  2387. }
  2388. if (c < 0x800) {
  2389. out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
  2390. continue;
  2391. }
  2392. if (c < 0xD800 || c >= 0xE000) {
  2393. out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
  2394. continue;
  2395. }
  2396. i += 1;
  2397. c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
  2398. /* eslint operator-linebreak: [2, "before"] */
  2399. out += hexTable[0xF0 | (c >> 18)]
  2400. + hexTable[0x80 | ((c >> 12) & 0x3F)]
  2401. + hexTable[0x80 | ((c >> 6) & 0x3F)]
  2402. + hexTable[0x80 | (c & 0x3F)];
  2403. }
  2404. return out;
  2405. };
  2406. var compact = function compact(value) {
  2407. var queue = [{ obj: { o: value }, prop: 'o' }];
  2408. var refs = [];
  2409. for (var i = 0; i < queue.length; ++i) {
  2410. var item = queue[i];
  2411. var obj = item.obj[item.prop];
  2412. var keys = Object.keys(obj);
  2413. for (var j = 0; j < keys.length; ++j) {
  2414. var key = keys[j];
  2415. var val = obj[key];
  2416. if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
  2417. queue.push({ obj: obj, prop: key });
  2418. refs.push(val);
  2419. }
  2420. }
  2421. }
  2422. compactQueue(queue);
  2423. return value;
  2424. };
  2425. var isRegExp = function isRegExp(obj) {
  2426. return Object.prototype.toString.call(obj) === '[object RegExp]';
  2427. };
  2428. var isBuffer = function isBuffer(obj) {
  2429. if (!obj || typeof obj !== 'object') {
  2430. return false;
  2431. }
  2432. return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
  2433. };
  2434. var combine = function combine(a, b) {
  2435. return [].concat(a, b);
  2436. };
  2437. var maybeMap = function maybeMap(val, fn) {
  2438. if (isArray(val)) {
  2439. var mapped = [];
  2440. for (var i = 0; i < val.length; i += 1) {
  2441. mapped.push(fn(val[i]));
  2442. }
  2443. return mapped;
  2444. }
  2445. return fn(val);
  2446. };
  2447. module.exports = {
  2448. arrayToObject: arrayToObject,
  2449. assign: assign,
  2450. combine: combine,
  2451. compact: compact,
  2452. decode: decode,
  2453. encode: encode,
  2454. isBuffer: isBuffer,
  2455. isRegExp: isRegExp,
  2456. maybeMap: maybeMap,
  2457. merge: merge
  2458. };
  2459. /***/ }),
  2460. /***/ "./node_modules/@inertiajs/progress/dist/index.js":
  2461. /*!********************************************************!*\
  2462. !*** ./node_modules/@inertiajs/progress/dist/index.js ***!
  2463. \********************************************************/
  2464. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  2465. var n,e=(n=__webpack_require__(/*! nprogress */ "./node_modules/nprogress/nprogress.js"))&&"object"==typeof n&&"default"in n?n.default:n,t=null;function r(n){document.addEventListener("inertia:start",o.bind(null,n)),document.addEventListener("inertia:progress",i),document.addEventListener("inertia:finish",s)}function o(n){t=setTimeout(function(){return e.start()},n)}function i(n){e.isStarted()&&n.detail.progress.percentage&&e.set(Math.max(e.status,n.detail.progress.percentage/100*.9))}function s(n){clearTimeout(t),e.isStarted()&&(n.detail.visit.completed?e.done():n.detail.visit.interrupted?e.set(0):n.detail.visit.cancelled&&(e.done(),e.remove()))}exports.InertiaProgress={init:function(n){var t=void 0===n?{}:n,o=t.delay,i=t.color,s=void 0===i?"#29d":i,a=t.includeCSS,p=void 0===a||a,d=t.showSpinner,l=void 0!==d&&d;r(void 0===o?250:o),e.configure({showSpinner:l}),p&&function(n){var e=document.createElement("style");e.type="text/css",e.textContent="\n #nprogress {\n pointer-events: none;\n }\n\n #nprogress .bar {\n background: "+n+";\n\n position: fixed;\n z-index: 1031;\n top: 0;\n left: 0;\n\n width: 100%;\n height: 2px;\n }\n\n #nprogress .peg {\n display: block;\n position: absolute;\n right: 0px;\n width: 100px;\n height: 100%;\n box-shadow: 0 0 10px "+n+", 0 0 5px "+n+";\n opacity: 1.0;\n\n -webkit-transform: rotate(3deg) translate(0px, -4px);\n -ms-transform: rotate(3deg) translate(0px, -4px);\n transform: rotate(3deg) translate(0px, -4px);\n }\n\n #nprogress .spinner {\n display: block;\n position: fixed;\n z-index: 1031;\n top: 15px;\n right: 15px;\n }\n\n #nprogress .spinner-icon {\n width: 18px;\n height: 18px;\n box-sizing: border-box;\n\n border: solid 2px transparent;\n border-top-color: "+n+";\n border-left-color: "+n+";\n border-radius: 50%;\n\n -webkit-animation: nprogress-spinner 400ms linear infinite;\n animation: nprogress-spinner 400ms linear infinite;\n }\n\n .nprogress-custom-parent {\n overflow: hidden;\n position: relative;\n }\n\n .nprogress-custom-parent #nprogress .spinner,\n .nprogress-custom-parent #nprogress .bar {\n position: absolute;\n }\n\n @-webkit-keyframes nprogress-spinner {\n 0% { -webkit-transform: rotate(0deg); }\n 100% { -webkit-transform: rotate(360deg); }\n }\n @keyframes nprogress-spinner {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n ",document.head.appendChild(e)}(s)}};
  2466. //# sourceMappingURL=index.js.map
  2467. /***/ }),
  2468. /***/ "./node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js":
  2469. /*!***************************************************************************!*\
  2470. !*** ./node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js ***!
  2471. \***************************************************************************/
  2472. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  2473. "use strict";
  2474. __webpack_require__.r(__webpack_exports__);
  2475. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  2476. /* harmony export */ "BASE_TRANSITION": () => (/* binding */ BASE_TRANSITION),
  2477. /* harmony export */ "CAMELIZE": () => (/* binding */ CAMELIZE),
  2478. /* harmony export */ "CAPITALIZE": () => (/* binding */ CAPITALIZE),
  2479. /* harmony export */ "CREATE_BLOCK": () => (/* binding */ CREATE_BLOCK),
  2480. /* harmony export */ "CREATE_COMMENT": () => (/* binding */ CREATE_COMMENT),
  2481. /* harmony export */ "CREATE_ELEMENT_BLOCK": () => (/* binding */ CREATE_ELEMENT_BLOCK),
  2482. /* harmony export */ "CREATE_ELEMENT_VNODE": () => (/* binding */ CREATE_ELEMENT_VNODE),
  2483. /* harmony export */ "CREATE_SLOTS": () => (/* binding */ CREATE_SLOTS),
  2484. /* harmony export */ "CREATE_STATIC": () => (/* binding */ CREATE_STATIC),
  2485. /* harmony export */ "CREATE_TEXT": () => (/* binding */ CREATE_TEXT),
  2486. /* harmony export */ "CREATE_VNODE": () => (/* binding */ CREATE_VNODE),
  2487. /* harmony export */ "FRAGMENT": () => (/* binding */ FRAGMENT),
  2488. /* harmony export */ "GUARD_REACTIVE_PROPS": () => (/* binding */ GUARD_REACTIVE_PROPS),
  2489. /* harmony export */ "IS_MEMO_SAME": () => (/* binding */ IS_MEMO_SAME),
  2490. /* harmony export */ "IS_REF": () => (/* binding */ IS_REF),
  2491. /* harmony export */ "KEEP_ALIVE": () => (/* binding */ KEEP_ALIVE),
  2492. /* harmony export */ "MERGE_PROPS": () => (/* binding */ MERGE_PROPS),
  2493. /* harmony export */ "NORMALIZE_CLASS": () => (/* binding */ NORMALIZE_CLASS),
  2494. /* harmony export */ "NORMALIZE_PROPS": () => (/* binding */ NORMALIZE_PROPS),
  2495. /* harmony export */ "NORMALIZE_STYLE": () => (/* binding */ NORMALIZE_STYLE),
  2496. /* harmony export */ "OPEN_BLOCK": () => (/* binding */ OPEN_BLOCK),
  2497. /* harmony export */ "POP_SCOPE_ID": () => (/* binding */ POP_SCOPE_ID),
  2498. /* harmony export */ "PUSH_SCOPE_ID": () => (/* binding */ PUSH_SCOPE_ID),
  2499. /* harmony export */ "RENDER_LIST": () => (/* binding */ RENDER_LIST),
  2500. /* harmony export */ "RENDER_SLOT": () => (/* binding */ RENDER_SLOT),
  2501. /* harmony export */ "RESOLVE_COMPONENT": () => (/* binding */ RESOLVE_COMPONENT),
  2502. /* harmony export */ "RESOLVE_DIRECTIVE": () => (/* binding */ RESOLVE_DIRECTIVE),
  2503. /* harmony export */ "RESOLVE_DYNAMIC_COMPONENT": () => (/* binding */ RESOLVE_DYNAMIC_COMPONENT),
  2504. /* harmony export */ "RESOLVE_FILTER": () => (/* binding */ RESOLVE_FILTER),
  2505. /* harmony export */ "SET_BLOCK_TRACKING": () => (/* binding */ SET_BLOCK_TRACKING),
  2506. /* harmony export */ "SUSPENSE": () => (/* binding */ SUSPENSE),
  2507. /* harmony export */ "TELEPORT": () => (/* binding */ TELEPORT),
  2508. /* harmony export */ "TO_DISPLAY_STRING": () => (/* binding */ TO_DISPLAY_STRING),
  2509. /* harmony export */ "TO_HANDLERS": () => (/* binding */ TO_HANDLERS),
  2510. /* harmony export */ "TO_HANDLER_KEY": () => (/* binding */ TO_HANDLER_KEY),
  2511. /* harmony export */ "UNREF": () => (/* binding */ UNREF),
  2512. /* harmony export */ "WITH_CTX": () => (/* binding */ WITH_CTX),
  2513. /* harmony export */ "WITH_DIRECTIVES": () => (/* binding */ WITH_DIRECTIVES),
  2514. /* harmony export */ "WITH_MEMO": () => (/* binding */ WITH_MEMO),
  2515. /* harmony export */ "advancePositionWithClone": () => (/* binding */ advancePositionWithClone),
  2516. /* harmony export */ "advancePositionWithMutation": () => (/* binding */ advancePositionWithMutation),
  2517. /* harmony export */ "assert": () => (/* binding */ assert),
  2518. /* harmony export */ "baseCompile": () => (/* binding */ baseCompile),
  2519. /* harmony export */ "baseParse": () => (/* binding */ baseParse),
  2520. /* harmony export */ "buildDirectiveArgs": () => (/* binding */ buildDirectiveArgs),
  2521. /* harmony export */ "buildProps": () => (/* binding */ buildProps),
  2522. /* harmony export */ "buildSlots": () => (/* binding */ buildSlots),
  2523. /* harmony export */ "checkCompatEnabled": () => (/* binding */ checkCompatEnabled),
  2524. /* harmony export */ "createArrayExpression": () => (/* binding */ createArrayExpression),
  2525. /* harmony export */ "createAssignmentExpression": () => (/* binding */ createAssignmentExpression),
  2526. /* harmony export */ "createBlockStatement": () => (/* binding */ createBlockStatement),
  2527. /* harmony export */ "createCacheExpression": () => (/* binding */ createCacheExpression),
  2528. /* harmony export */ "createCallExpression": () => (/* binding */ createCallExpression),
  2529. /* harmony export */ "createCompilerError": () => (/* binding */ createCompilerError),
  2530. /* harmony export */ "createCompoundExpression": () => (/* binding */ createCompoundExpression),
  2531. /* harmony export */ "createConditionalExpression": () => (/* binding */ createConditionalExpression),
  2532. /* harmony export */ "createForLoopParams": () => (/* binding */ createForLoopParams),
  2533. /* harmony export */ "createFunctionExpression": () => (/* binding */ createFunctionExpression),
  2534. /* harmony export */ "createIfStatement": () => (/* binding */ createIfStatement),
  2535. /* harmony export */ "createInterpolation": () => (/* binding */ createInterpolation),
  2536. /* harmony export */ "createObjectExpression": () => (/* binding */ createObjectExpression),
  2537. /* harmony export */ "createObjectProperty": () => (/* binding */ createObjectProperty),
  2538. /* harmony export */ "createReturnStatement": () => (/* binding */ createReturnStatement),
  2539. /* harmony export */ "createRoot": () => (/* binding */ createRoot),
  2540. /* harmony export */ "createSequenceExpression": () => (/* binding */ createSequenceExpression),
  2541. /* harmony export */ "createSimpleExpression": () => (/* binding */ createSimpleExpression),
  2542. /* harmony export */ "createStructuralDirectiveTransform": () => (/* binding */ createStructuralDirectiveTransform),
  2543. /* harmony export */ "createTemplateLiteral": () => (/* binding */ createTemplateLiteral),
  2544. /* harmony export */ "createTransformContext": () => (/* binding */ createTransformContext),
  2545. /* harmony export */ "createVNodeCall": () => (/* binding */ createVNodeCall),
  2546. /* harmony export */ "extractIdentifiers": () => (/* binding */ extractIdentifiers),
  2547. /* harmony export */ "findDir": () => (/* binding */ findDir),
  2548. /* harmony export */ "findProp": () => (/* binding */ findProp),
  2549. /* harmony export */ "generate": () => (/* binding */ generate),
  2550. /* harmony export */ "generateCodeFrame": () => (/* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_0__.generateCodeFrame),
  2551. /* harmony export */ "getBaseTransformPreset": () => (/* binding */ getBaseTransformPreset),
  2552. /* harmony export */ "getInnerRange": () => (/* binding */ getInnerRange),
  2553. /* harmony export */ "getMemoedVNodeCall": () => (/* binding */ getMemoedVNodeCall),
  2554. /* harmony export */ "getVNodeBlockHelper": () => (/* binding */ getVNodeBlockHelper),
  2555. /* harmony export */ "getVNodeHelper": () => (/* binding */ getVNodeHelper),
  2556. /* harmony export */ "hasDynamicKeyVBind": () => (/* binding */ hasDynamicKeyVBind),
  2557. /* harmony export */ "hasScopeRef": () => (/* binding */ hasScopeRef),
  2558. /* harmony export */ "helperNameMap": () => (/* binding */ helperNameMap),
  2559. /* harmony export */ "injectProp": () => (/* binding */ injectProp),
  2560. /* harmony export */ "isBuiltInType": () => (/* binding */ isBuiltInType),
  2561. /* harmony export */ "isCoreComponent": () => (/* binding */ isCoreComponent),
  2562. /* harmony export */ "isFunctionType": () => (/* binding */ isFunctionType),
  2563. /* harmony export */ "isInDestructureAssignment": () => (/* binding */ isInDestructureAssignment),
  2564. /* harmony export */ "isMemberExpression": () => (/* binding */ isMemberExpression),
  2565. /* harmony export */ "isMemberExpressionBrowser": () => (/* binding */ isMemberExpressionBrowser),
  2566. /* harmony export */ "isMemberExpressionNode": () => (/* binding */ isMemberExpressionNode),
  2567. /* harmony export */ "isReferencedIdentifier": () => (/* binding */ isReferencedIdentifier),
  2568. /* harmony export */ "isSimpleIdentifier": () => (/* binding */ isSimpleIdentifier),
  2569. /* harmony export */ "isSlotOutlet": () => (/* binding */ isSlotOutlet),
  2570. /* harmony export */ "isStaticArgOf": () => (/* binding */ isStaticArgOf),
  2571. /* harmony export */ "isStaticExp": () => (/* binding */ isStaticExp),
  2572. /* harmony export */ "isStaticProperty": () => (/* binding */ isStaticProperty),
  2573. /* harmony export */ "isStaticPropertyKey": () => (/* binding */ isStaticPropertyKey),
  2574. /* harmony export */ "isTemplateNode": () => (/* binding */ isTemplateNode),
  2575. /* harmony export */ "isText": () => (/* binding */ isText),
  2576. /* harmony export */ "isVSlot": () => (/* binding */ isVSlot),
  2577. /* harmony export */ "locStub": () => (/* binding */ locStub),
  2578. /* harmony export */ "makeBlock": () => (/* binding */ makeBlock),
  2579. /* harmony export */ "noopDirectiveTransform": () => (/* binding */ noopDirectiveTransform),
  2580. /* harmony export */ "processExpression": () => (/* binding */ processExpression),
  2581. /* harmony export */ "processFor": () => (/* binding */ processFor),
  2582. /* harmony export */ "processIf": () => (/* binding */ processIf),
  2583. /* harmony export */ "processSlotOutlet": () => (/* binding */ processSlotOutlet),
  2584. /* harmony export */ "registerRuntimeHelpers": () => (/* binding */ registerRuntimeHelpers),
  2585. /* harmony export */ "resolveComponentType": () => (/* binding */ resolveComponentType),
  2586. /* harmony export */ "toValidAssetId": () => (/* binding */ toValidAssetId),
  2587. /* harmony export */ "trackSlotScopes": () => (/* binding */ trackSlotScopes),
  2588. /* harmony export */ "trackVForSlotScopes": () => (/* binding */ trackVForSlotScopes),
  2589. /* harmony export */ "transform": () => (/* binding */ transform),
  2590. /* harmony export */ "transformBind": () => (/* binding */ transformBind),
  2591. /* harmony export */ "transformElement": () => (/* binding */ transformElement),
  2592. /* harmony export */ "transformExpression": () => (/* binding */ transformExpression),
  2593. /* harmony export */ "transformModel": () => (/* binding */ transformModel),
  2594. /* harmony export */ "transformOn": () => (/* binding */ transformOn),
  2595. /* harmony export */ "traverseNode": () => (/* binding */ traverseNode),
  2596. /* harmony export */ "walkBlockDeclarations": () => (/* binding */ walkBlockDeclarations),
  2597. /* harmony export */ "walkFunctionParams": () => (/* binding */ walkFunctionParams),
  2598. /* harmony export */ "walkIdentifiers": () => (/* binding */ walkIdentifiers),
  2599. /* harmony export */ "warnDeprecation": () => (/* binding */ warnDeprecation)
  2600. /* harmony export */ });
  2601. /* harmony import */ var _vue_shared__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vue/shared */ "./node_modules/@vue/shared/dist/shared.esm-bundler.js");
  2602. function defaultOnError(error) {
  2603. throw error;
  2604. }
  2605. function defaultOnWarn(msg) {
  2606. ( true) && console.warn(`[Vue warn] ${msg.message}`);
  2607. }
  2608. function createCompilerError(code, loc, messages, additionalMessage) {
  2609. const msg = true
  2610. ? (messages || errorMessages)[code] + (additionalMessage || ``)
  2611. : 0;
  2612. const error = new SyntaxError(String(msg));
  2613. error.code = code;
  2614. error.loc = loc;
  2615. return error;
  2616. }
  2617. const errorMessages = {
  2618. // parse errors
  2619. [0 /* ABRUPT_CLOSING_OF_EMPTY_COMMENT */]: 'Illegal comment.',
  2620. [1 /* CDATA_IN_HTML_CONTENT */]: 'CDATA section is allowed only in XML context.',
  2621. [2 /* DUPLICATE_ATTRIBUTE */]: 'Duplicate attribute.',
  2622. [3 /* END_TAG_WITH_ATTRIBUTES */]: 'End tag cannot have attributes.',
  2623. [4 /* END_TAG_WITH_TRAILING_SOLIDUS */]: "Illegal '/' in tags.",
  2624. [5 /* EOF_BEFORE_TAG_NAME */]: 'Unexpected EOF in tag.',
  2625. [6 /* EOF_IN_CDATA */]: 'Unexpected EOF in CDATA section.',
  2626. [7 /* EOF_IN_COMMENT */]: 'Unexpected EOF in comment.',
  2627. [8 /* EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT */]: 'Unexpected EOF in script.',
  2628. [9 /* EOF_IN_TAG */]: 'Unexpected EOF in tag.',
  2629. [10 /* INCORRECTLY_CLOSED_COMMENT */]: 'Incorrectly closed comment.',
  2630. [11 /* INCORRECTLY_OPENED_COMMENT */]: 'Incorrectly opened comment.',
  2631. [12 /* INVALID_FIRST_CHARACTER_OF_TAG_NAME */]: "Illegal tag name. Use '&lt;' to print '<'.",
  2632. [13 /* MISSING_ATTRIBUTE_VALUE */]: 'Attribute value was expected.',
  2633. [14 /* MISSING_END_TAG_NAME */]: 'End tag name was expected.',
  2634. [15 /* MISSING_WHITESPACE_BETWEEN_ATTRIBUTES */]: 'Whitespace was expected.',
  2635. [16 /* NESTED_COMMENT */]: "Unexpected '<!--' in comment.",
  2636. [17 /* UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME */]: 'Attribute name cannot contain U+0022 ("), U+0027 (\'), and U+003C (<).',
  2637. [18 /* UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE */]: 'Unquoted attribute value cannot contain U+0022 ("), U+0027 (\'), U+003C (<), U+003D (=), and U+0060 (`).',
  2638. [19 /* UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME */]: "Attribute name cannot start with '='.",
  2639. [21 /* UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME */]: "'<?' is allowed only in XML context.",
  2640. [20 /* UNEXPECTED_NULL_CHARACTER */]: `Unexpected null character.`,
  2641. [22 /* UNEXPECTED_SOLIDUS_IN_TAG */]: "Illegal '/' in tags.",
  2642. // Vue-specific parse errors
  2643. [23 /* X_INVALID_END_TAG */]: 'Invalid end tag.',
  2644. [24 /* X_MISSING_END_TAG */]: 'Element is missing end tag.',
  2645. [25 /* X_MISSING_INTERPOLATION_END */]: 'Interpolation end sign was not found.',
  2646. [27 /* X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END */]: 'End bracket for dynamic directive argument was not found. ' +
  2647. 'Note that dynamic directive argument cannot contain spaces.',
  2648. [26 /* X_MISSING_DIRECTIVE_NAME */]: 'Legal directive name was expected.',
  2649. // transform errors
  2650. [28 /* X_V_IF_NO_EXPRESSION */]: `v-if/v-else-if is missing expression.`,
  2651. [29 /* X_V_IF_SAME_KEY */]: `v-if/else branches must use unique keys.`,
  2652. [30 /* X_V_ELSE_NO_ADJACENT_IF */]: `v-else/v-else-if has no adjacent v-if or v-else-if.`,
  2653. [31 /* X_V_FOR_NO_EXPRESSION */]: `v-for is missing expression.`,
  2654. [32 /* X_V_FOR_MALFORMED_EXPRESSION */]: `v-for has invalid expression.`,
  2655. [33 /* X_V_FOR_TEMPLATE_KEY_PLACEMENT */]: `<template v-for> key should be placed on the <template> tag.`,
  2656. [34 /* X_V_BIND_NO_EXPRESSION */]: `v-bind is missing expression.`,
  2657. [35 /* X_V_ON_NO_EXPRESSION */]: `v-on is missing expression.`,
  2658. [36 /* X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET */]: `Unexpected custom directive on <slot> outlet.`,
  2659. [37 /* X_V_SLOT_MIXED_SLOT_USAGE */]: `Mixed v-slot usage on both the component and nested <template>.` +
  2660. `When there are multiple named slots, all slots should use <template> ` +
  2661. `syntax to avoid scope ambiguity.`,
  2662. [38 /* X_V_SLOT_DUPLICATE_SLOT_NAMES */]: `Duplicate slot names found. `,
  2663. [39 /* X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN */]: `Extraneous children found when component already has explicitly named ` +
  2664. `default slot. These children will be ignored.`,
  2665. [40 /* X_V_SLOT_MISPLACED */]: `v-slot can only be used on components or <template> tags.`,
  2666. [41 /* X_V_MODEL_NO_EXPRESSION */]: `v-model is missing expression.`,
  2667. [42 /* X_V_MODEL_MALFORMED_EXPRESSION */]: `v-model value must be a valid JavaScript member expression.`,
  2668. [43 /* X_V_MODEL_ON_SCOPE_VARIABLE */]: `v-model cannot be used on v-for or v-slot scope variables because they are not writable.`,
  2669. [44 /* X_INVALID_EXPRESSION */]: `Error parsing JavaScript expression: `,
  2670. [45 /* X_KEEP_ALIVE_INVALID_CHILDREN */]: `<KeepAlive> expects exactly one child component.`,
  2671. // generic errors
  2672. [46 /* X_PREFIX_ID_NOT_SUPPORTED */]: `"prefixIdentifiers" option is not supported in this build of compiler.`,
  2673. [47 /* X_MODULE_MODE_NOT_SUPPORTED */]: `ES module mode is not supported in this build of compiler.`,
  2674. [48 /* X_CACHE_HANDLER_NOT_SUPPORTED */]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
  2675. [49 /* X_SCOPE_ID_NOT_SUPPORTED */]: `"scopeId" option is only supported in module mode.`,
  2676. // just to fulfill types
  2677. [50 /* __EXTEND_POINT__ */]: ``
  2678. };
  2679. const FRAGMENT = Symbol(( true) ? `Fragment` : 0);
  2680. const TELEPORT = Symbol(( true) ? `Teleport` : 0);
  2681. const SUSPENSE = Symbol(( true) ? `Suspense` : 0);
  2682. const KEEP_ALIVE = Symbol(( true) ? `KeepAlive` : 0);
  2683. const BASE_TRANSITION = Symbol(( true) ? `BaseTransition` : 0);
  2684. const OPEN_BLOCK = Symbol(( true) ? `openBlock` : 0);
  2685. const CREATE_BLOCK = Symbol(( true) ? `createBlock` : 0);
  2686. const CREATE_ELEMENT_BLOCK = Symbol(( true) ? `createElementBlock` : 0);
  2687. const CREATE_VNODE = Symbol(( true) ? `createVNode` : 0);
  2688. const CREATE_ELEMENT_VNODE = Symbol(( true) ? `createElementVNode` : 0);
  2689. const CREATE_COMMENT = Symbol(( true) ? `createCommentVNode` : 0);
  2690. const CREATE_TEXT = Symbol(( true) ? `createTextVNode` : 0);
  2691. const CREATE_STATIC = Symbol(( true) ? `createStaticVNode` : 0);
  2692. const RESOLVE_COMPONENT = Symbol(( true) ? `resolveComponent` : 0);
  2693. const RESOLVE_DYNAMIC_COMPONENT = Symbol(( true) ? `resolveDynamicComponent` : 0);
  2694. const RESOLVE_DIRECTIVE = Symbol(( true) ? `resolveDirective` : 0);
  2695. const RESOLVE_FILTER = Symbol(( true) ? `resolveFilter` : 0);
  2696. const WITH_DIRECTIVES = Symbol(( true) ? `withDirectives` : 0);
  2697. const RENDER_LIST = Symbol(( true) ? `renderList` : 0);
  2698. const RENDER_SLOT = Symbol(( true) ? `renderSlot` : 0);
  2699. const CREATE_SLOTS = Symbol(( true) ? `createSlots` : 0);
  2700. const TO_DISPLAY_STRING = Symbol(( true) ? `toDisplayString` : 0);
  2701. const MERGE_PROPS = Symbol(( true) ? `mergeProps` : 0);
  2702. const NORMALIZE_CLASS = Symbol(( true) ? `normalizeClass` : 0);
  2703. const NORMALIZE_STYLE = Symbol(( true) ? `normalizeStyle` : 0);
  2704. const NORMALIZE_PROPS = Symbol(( true) ? `normalizeProps` : 0);
  2705. const GUARD_REACTIVE_PROPS = Symbol(( true) ? `guardReactiveProps` : 0);
  2706. const TO_HANDLERS = Symbol(( true) ? `toHandlers` : 0);
  2707. const CAMELIZE = Symbol(( true) ? `camelize` : 0);
  2708. const CAPITALIZE = Symbol(( true) ? `capitalize` : 0);
  2709. const TO_HANDLER_KEY = Symbol(( true) ? `toHandlerKey` : 0);
  2710. const SET_BLOCK_TRACKING = Symbol(( true) ? `setBlockTracking` : 0);
  2711. const PUSH_SCOPE_ID = Symbol(( true) ? `pushScopeId` : 0);
  2712. const POP_SCOPE_ID = Symbol(( true) ? `popScopeId` : 0);
  2713. const WITH_CTX = Symbol(( true) ? `withCtx` : 0);
  2714. const UNREF = Symbol(( true) ? `unref` : 0);
  2715. const IS_REF = Symbol(( true) ? `isRef` : 0);
  2716. const WITH_MEMO = Symbol(( true) ? `withMemo` : 0);
  2717. const IS_MEMO_SAME = Symbol(( true) ? `isMemoSame` : 0);
  2718. // Name mapping for runtime helpers that need to be imported from 'vue' in
  2719. // generated code. Make sure these are correctly exported in the runtime!
  2720. // Using `any` here because TS doesn't allow symbols as index type.
  2721. const helperNameMap = {
  2722. [FRAGMENT]: `Fragment`,
  2723. [TELEPORT]: `Teleport`,
  2724. [SUSPENSE]: `Suspense`,
  2725. [KEEP_ALIVE]: `KeepAlive`,
  2726. [BASE_TRANSITION]: `BaseTransition`,
  2727. [OPEN_BLOCK]: `openBlock`,
  2728. [CREATE_BLOCK]: `createBlock`,
  2729. [CREATE_ELEMENT_BLOCK]: `createElementBlock`,
  2730. [CREATE_VNODE]: `createVNode`,
  2731. [CREATE_ELEMENT_VNODE]: `createElementVNode`,
  2732. [CREATE_COMMENT]: `createCommentVNode`,
  2733. [CREATE_TEXT]: `createTextVNode`,
  2734. [CREATE_STATIC]: `createStaticVNode`,
  2735. [RESOLVE_COMPONENT]: `resolveComponent`,
  2736. [RESOLVE_DYNAMIC_COMPONENT]: `resolveDynamicComponent`,
  2737. [RESOLVE_DIRECTIVE]: `resolveDirective`,
  2738. [RESOLVE_FILTER]: `resolveFilter`,
  2739. [WITH_DIRECTIVES]: `withDirectives`,
  2740. [RENDER_LIST]: `renderList`,
  2741. [RENDER_SLOT]: `renderSlot`,
  2742. [CREATE_SLOTS]: `createSlots`,
  2743. [TO_DISPLAY_STRING]: `toDisplayString`,
  2744. [MERGE_PROPS]: `mergeProps`,
  2745. [NORMALIZE_CLASS]: `normalizeClass`,
  2746. [NORMALIZE_STYLE]: `normalizeStyle`,
  2747. [NORMALIZE_PROPS]: `normalizeProps`,
  2748. [GUARD_REACTIVE_PROPS]: `guardReactiveProps`,
  2749. [TO_HANDLERS]: `toHandlers`,
  2750. [CAMELIZE]: `camelize`,
  2751. [CAPITALIZE]: `capitalize`,
  2752. [TO_HANDLER_KEY]: `toHandlerKey`,
  2753. [SET_BLOCK_TRACKING]: `setBlockTracking`,
  2754. [PUSH_SCOPE_ID]: `pushScopeId`,
  2755. [POP_SCOPE_ID]: `popScopeId`,
  2756. [WITH_CTX]: `withCtx`,
  2757. [UNREF]: `unref`,
  2758. [IS_REF]: `isRef`,
  2759. [WITH_MEMO]: `withMemo`,
  2760. [IS_MEMO_SAME]: `isMemoSame`
  2761. };
  2762. function registerRuntimeHelpers(helpers) {
  2763. Object.getOwnPropertySymbols(helpers).forEach(s => {
  2764. helperNameMap[s] = helpers[s];
  2765. });
  2766. }
  2767. // AST Utilities ---------------------------------------------------------------
  2768. // Some expressions, e.g. sequence and conditional expressions, are never
  2769. // associated with template nodes, so their source locations are just a stub.
  2770. // Container types like CompoundExpression also don't need a real location.
  2771. const locStub = {
  2772. source: '',
  2773. start: { line: 1, column: 1, offset: 0 },
  2774. end: { line: 1, column: 1, offset: 0 }
  2775. };
  2776. function createRoot(children, loc = locStub) {
  2777. return {
  2778. type: 0 /* ROOT */,
  2779. children,
  2780. helpers: [],
  2781. components: [],
  2782. directives: [],
  2783. hoists: [],
  2784. imports: [],
  2785. cached: 0,
  2786. temps: 0,
  2787. codegenNode: undefined,
  2788. loc
  2789. };
  2790. }
  2791. function createVNodeCall(context, tag, props, children, patchFlag, dynamicProps, directives, isBlock = false, disableTracking = false, isComponent = false, loc = locStub) {
  2792. if (context) {
  2793. if (isBlock) {
  2794. context.helper(OPEN_BLOCK);
  2795. context.helper(getVNodeBlockHelper(context.inSSR, isComponent));
  2796. }
  2797. else {
  2798. context.helper(getVNodeHelper(context.inSSR, isComponent));
  2799. }
  2800. if (directives) {
  2801. context.helper(WITH_DIRECTIVES);
  2802. }
  2803. }
  2804. return {
  2805. type: 13 /* VNODE_CALL */,
  2806. tag,
  2807. props,
  2808. children,
  2809. patchFlag,
  2810. dynamicProps,
  2811. directives,
  2812. isBlock,
  2813. disableTracking,
  2814. isComponent,
  2815. loc
  2816. };
  2817. }
  2818. function createArrayExpression(elements, loc = locStub) {
  2819. return {
  2820. type: 17 /* JS_ARRAY_EXPRESSION */,
  2821. loc,
  2822. elements
  2823. };
  2824. }
  2825. function createObjectExpression(properties, loc = locStub) {
  2826. return {
  2827. type: 15 /* JS_OBJECT_EXPRESSION */,
  2828. loc,
  2829. properties
  2830. };
  2831. }
  2832. function createObjectProperty(key, value) {
  2833. return {
  2834. type: 16 /* JS_PROPERTY */,
  2835. loc: locStub,
  2836. key: (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(key) ? createSimpleExpression(key, true) : key,
  2837. value
  2838. };
  2839. }
  2840. function createSimpleExpression(content, isStatic = false, loc = locStub, constType = 0 /* NOT_CONSTANT */) {
  2841. return {
  2842. type: 4 /* SIMPLE_EXPRESSION */,
  2843. loc,
  2844. content,
  2845. isStatic,
  2846. constType: isStatic ? 3 /* CAN_STRINGIFY */ : constType
  2847. };
  2848. }
  2849. function createInterpolation(content, loc) {
  2850. return {
  2851. type: 5 /* INTERPOLATION */,
  2852. loc,
  2853. content: (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(content)
  2854. ? createSimpleExpression(content, false, loc)
  2855. : content
  2856. };
  2857. }
  2858. function createCompoundExpression(children, loc = locStub) {
  2859. return {
  2860. type: 8 /* COMPOUND_EXPRESSION */,
  2861. loc,
  2862. children
  2863. };
  2864. }
  2865. function createCallExpression(callee, args = [], loc = locStub) {
  2866. return {
  2867. type: 14 /* JS_CALL_EXPRESSION */,
  2868. loc,
  2869. callee,
  2870. arguments: args
  2871. };
  2872. }
  2873. function createFunctionExpression(params, returns = undefined, newline = false, isSlot = false, loc = locStub) {
  2874. return {
  2875. type: 18 /* JS_FUNCTION_EXPRESSION */,
  2876. params,
  2877. returns,
  2878. newline,
  2879. isSlot,
  2880. loc
  2881. };
  2882. }
  2883. function createConditionalExpression(test, consequent, alternate, newline = true) {
  2884. return {
  2885. type: 19 /* JS_CONDITIONAL_EXPRESSION */,
  2886. test,
  2887. consequent,
  2888. alternate,
  2889. newline,
  2890. loc: locStub
  2891. };
  2892. }
  2893. function createCacheExpression(index, value, isVNode = false) {
  2894. return {
  2895. type: 20 /* JS_CACHE_EXPRESSION */,
  2896. index,
  2897. value,
  2898. isVNode,
  2899. loc: locStub
  2900. };
  2901. }
  2902. function createBlockStatement(body) {
  2903. return {
  2904. type: 21 /* JS_BLOCK_STATEMENT */,
  2905. body,
  2906. loc: locStub
  2907. };
  2908. }
  2909. function createTemplateLiteral(elements) {
  2910. return {
  2911. type: 22 /* JS_TEMPLATE_LITERAL */,
  2912. elements,
  2913. loc: locStub
  2914. };
  2915. }
  2916. function createIfStatement(test, consequent, alternate) {
  2917. return {
  2918. type: 23 /* JS_IF_STATEMENT */,
  2919. test,
  2920. consequent,
  2921. alternate,
  2922. loc: locStub
  2923. };
  2924. }
  2925. function createAssignmentExpression(left, right) {
  2926. return {
  2927. type: 24 /* JS_ASSIGNMENT_EXPRESSION */,
  2928. left,
  2929. right,
  2930. loc: locStub
  2931. };
  2932. }
  2933. function createSequenceExpression(expressions) {
  2934. return {
  2935. type: 25 /* JS_SEQUENCE_EXPRESSION */,
  2936. expressions,
  2937. loc: locStub
  2938. };
  2939. }
  2940. function createReturnStatement(returns) {
  2941. return {
  2942. type: 26 /* JS_RETURN_STATEMENT */,
  2943. returns,
  2944. loc: locStub
  2945. };
  2946. }
  2947. const isStaticExp = (p) => p.type === 4 /* SIMPLE_EXPRESSION */ && p.isStatic;
  2948. const isBuiltInType = (tag, expected) => tag === expected || tag === (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.hyphenate)(expected);
  2949. function isCoreComponent(tag) {
  2950. if (isBuiltInType(tag, 'Teleport')) {
  2951. return TELEPORT;
  2952. }
  2953. else if (isBuiltInType(tag, 'Suspense')) {
  2954. return SUSPENSE;
  2955. }
  2956. else if (isBuiltInType(tag, 'KeepAlive')) {
  2957. return KEEP_ALIVE;
  2958. }
  2959. else if (isBuiltInType(tag, 'BaseTransition')) {
  2960. return BASE_TRANSITION;
  2961. }
  2962. }
  2963. const nonIdentifierRE = /^\d|[^\$\w]/;
  2964. const isSimpleIdentifier = (name) => !nonIdentifierRE.test(name);
  2965. const validFirstIdentCharRE = /[A-Za-z_$\xA0-\uFFFF]/;
  2966. const validIdentCharRE = /[\.\?\w$\xA0-\uFFFF]/;
  2967. const whitespaceRE = /\s+[.[]\s*|\s*[.[]\s+/g;
  2968. /**
  2969. * Simple lexer to check if an expression is a member expression. This is
  2970. * lax and only checks validity at the root level (i.e. does not validate exps
  2971. * inside square brackets), but it's ok since these are only used on template
  2972. * expressions and false positives are invalid expressions in the first place.
  2973. */
  2974. const isMemberExpressionBrowser = (path) => {
  2975. // remove whitespaces around . or [ first
  2976. path = path.trim().replace(whitespaceRE, s => s.trim());
  2977. let state = 0 /* inMemberExp */;
  2978. let stateStack = [];
  2979. let currentOpenBracketCount = 0;
  2980. let currentOpenParensCount = 0;
  2981. let currentStringType = null;
  2982. for (let i = 0; i < path.length; i++) {
  2983. const char = path.charAt(i);
  2984. switch (state) {
  2985. case 0 /* inMemberExp */:
  2986. if (char === '[') {
  2987. stateStack.push(state);
  2988. state = 1 /* inBrackets */;
  2989. currentOpenBracketCount++;
  2990. }
  2991. else if (char === '(') {
  2992. stateStack.push(state);
  2993. state = 2 /* inParens */;
  2994. currentOpenParensCount++;
  2995. }
  2996. else if (!(i === 0 ? validFirstIdentCharRE : validIdentCharRE).test(char)) {
  2997. return false;
  2998. }
  2999. break;
  3000. case 1 /* inBrackets */:
  3001. if (char === `'` || char === `"` || char === '`') {
  3002. stateStack.push(state);
  3003. state = 3 /* inString */;
  3004. currentStringType = char;
  3005. }
  3006. else if (char === `[`) {
  3007. currentOpenBracketCount++;
  3008. }
  3009. else if (char === `]`) {
  3010. if (!--currentOpenBracketCount) {
  3011. state = stateStack.pop();
  3012. }
  3013. }
  3014. break;
  3015. case 2 /* inParens */:
  3016. if (char === `'` || char === `"` || char === '`') {
  3017. stateStack.push(state);
  3018. state = 3 /* inString */;
  3019. currentStringType = char;
  3020. }
  3021. else if (char === `(`) {
  3022. currentOpenParensCount++;
  3023. }
  3024. else if (char === `)`) {
  3025. // if the exp ends as a call then it should not be considered valid
  3026. if (i === path.length - 1) {
  3027. return false;
  3028. }
  3029. if (!--currentOpenParensCount) {
  3030. state = stateStack.pop();
  3031. }
  3032. }
  3033. break;
  3034. case 3 /* inString */:
  3035. if (char === currentStringType) {
  3036. state = stateStack.pop();
  3037. currentStringType = null;
  3038. }
  3039. break;
  3040. }
  3041. }
  3042. return !currentOpenBracketCount && !currentOpenParensCount;
  3043. };
  3044. const isMemberExpressionNode = _vue_shared__WEBPACK_IMPORTED_MODULE_0__.NOOP
  3045. ;
  3046. const isMemberExpression = isMemberExpressionBrowser
  3047. ;
  3048. function getInnerRange(loc, offset, length) {
  3049. const source = loc.source.slice(offset, offset + length);
  3050. const newLoc = {
  3051. source,
  3052. start: advancePositionWithClone(loc.start, loc.source, offset),
  3053. end: loc.end
  3054. };
  3055. if (length != null) {
  3056. newLoc.end = advancePositionWithClone(loc.start, loc.source, offset + length);
  3057. }
  3058. return newLoc;
  3059. }
  3060. function advancePositionWithClone(pos, source, numberOfCharacters = source.length) {
  3061. return advancePositionWithMutation((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)({}, pos), source, numberOfCharacters);
  3062. }
  3063. // advance by mutation without cloning (for performance reasons), since this
  3064. // gets called a lot in the parser
  3065. function advancePositionWithMutation(pos, source, numberOfCharacters = source.length) {
  3066. let linesCount = 0;
  3067. let lastNewLinePos = -1;
  3068. for (let i = 0; i < numberOfCharacters; i++) {
  3069. if (source.charCodeAt(i) === 10 /* newline char code */) {
  3070. linesCount++;
  3071. lastNewLinePos = i;
  3072. }
  3073. }
  3074. pos.offset += numberOfCharacters;
  3075. pos.line += linesCount;
  3076. pos.column =
  3077. lastNewLinePos === -1
  3078. ? pos.column + numberOfCharacters
  3079. : numberOfCharacters - lastNewLinePos;
  3080. return pos;
  3081. }
  3082. function assert(condition, msg) {
  3083. /* istanbul ignore if */
  3084. if (!condition) {
  3085. throw new Error(msg || `unexpected compiler condition`);
  3086. }
  3087. }
  3088. function findDir(node, name, allowEmpty = false) {
  3089. for (let i = 0; i < node.props.length; i++) {
  3090. const p = node.props[i];
  3091. if (p.type === 7 /* DIRECTIVE */ &&
  3092. (allowEmpty || p.exp) &&
  3093. ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(name) ? p.name === name : name.test(p.name))) {
  3094. return p;
  3095. }
  3096. }
  3097. }
  3098. function findProp(node, name, dynamicOnly = false, allowEmpty = false) {
  3099. for (let i = 0; i < node.props.length; i++) {
  3100. const p = node.props[i];
  3101. if (p.type === 6 /* ATTRIBUTE */) {
  3102. if (dynamicOnly)
  3103. continue;
  3104. if (p.name === name && (p.value || allowEmpty)) {
  3105. return p;
  3106. }
  3107. }
  3108. else if (p.name === 'bind' &&
  3109. (p.exp || allowEmpty) &&
  3110. isStaticArgOf(p.arg, name)) {
  3111. return p;
  3112. }
  3113. }
  3114. }
  3115. function isStaticArgOf(arg, name) {
  3116. return !!(arg && isStaticExp(arg) && arg.content === name);
  3117. }
  3118. function hasDynamicKeyVBind(node) {
  3119. return node.props.some(p => p.type === 7 /* DIRECTIVE */ &&
  3120. p.name === 'bind' &&
  3121. (!p.arg || // v-bind="obj"
  3122. p.arg.type !== 4 /* SIMPLE_EXPRESSION */ || // v-bind:[_ctx.foo]
  3123. !p.arg.isStatic) // v-bind:[foo]
  3124. );
  3125. }
  3126. function isText(node) {
  3127. return node.type === 5 /* INTERPOLATION */ || node.type === 2 /* TEXT */;
  3128. }
  3129. function isVSlot(p) {
  3130. return p.type === 7 /* DIRECTIVE */ && p.name === 'slot';
  3131. }
  3132. function isTemplateNode(node) {
  3133. return (node.type === 1 /* ELEMENT */ && node.tagType === 3 /* TEMPLATE */);
  3134. }
  3135. function isSlotOutlet(node) {
  3136. return node.type === 1 /* ELEMENT */ && node.tagType === 2 /* SLOT */;
  3137. }
  3138. function getVNodeHelper(ssr, isComponent) {
  3139. return ssr || isComponent ? CREATE_VNODE : CREATE_ELEMENT_VNODE;
  3140. }
  3141. function getVNodeBlockHelper(ssr, isComponent) {
  3142. return ssr || isComponent ? CREATE_BLOCK : CREATE_ELEMENT_BLOCK;
  3143. }
  3144. const propsHelperSet = new Set([NORMALIZE_PROPS, GUARD_REACTIVE_PROPS]);
  3145. function getUnnormalizedProps(props, callPath = []) {
  3146. if (props &&
  3147. !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(props) &&
  3148. props.type === 14 /* JS_CALL_EXPRESSION */) {
  3149. const callee = props.callee;
  3150. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(callee) && propsHelperSet.has(callee)) {
  3151. return getUnnormalizedProps(props.arguments[0], callPath.concat(props));
  3152. }
  3153. }
  3154. return [props, callPath];
  3155. }
  3156. function injectProp(node, prop, context) {
  3157. let propsWithInjection;
  3158. /**
  3159. * 1. mergeProps(...)
  3160. * 2. toHandlers(...)
  3161. * 3. normalizeProps(...)
  3162. * 4. normalizeProps(guardReactiveProps(...))
  3163. *
  3164. * we need to get the real props before normalization
  3165. */
  3166. let props = node.type === 13 /* VNODE_CALL */ ? node.props : node.arguments[2];
  3167. let callPath = [];
  3168. let parentCall;
  3169. if (props &&
  3170. !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(props) &&
  3171. props.type === 14 /* JS_CALL_EXPRESSION */) {
  3172. const ret = getUnnormalizedProps(props);
  3173. props = ret[0];
  3174. callPath = ret[1];
  3175. parentCall = callPath[callPath.length - 1];
  3176. }
  3177. if (props == null || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(props)) {
  3178. propsWithInjection = createObjectExpression([prop]);
  3179. }
  3180. else if (props.type === 14 /* JS_CALL_EXPRESSION */) {
  3181. // merged props... add ours
  3182. // only inject key to object literal if it's the first argument so that
  3183. // if doesn't override user provided keys
  3184. const first = props.arguments[0];
  3185. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(first) && first.type === 15 /* JS_OBJECT_EXPRESSION */) {
  3186. first.properties.unshift(prop);
  3187. }
  3188. else {
  3189. if (props.callee === TO_HANDLERS) {
  3190. // #2366
  3191. propsWithInjection = createCallExpression(context.helper(MERGE_PROPS), [
  3192. createObjectExpression([prop]),
  3193. props
  3194. ]);
  3195. }
  3196. else {
  3197. props.arguments.unshift(createObjectExpression([prop]));
  3198. }
  3199. }
  3200. !propsWithInjection && (propsWithInjection = props);
  3201. }
  3202. else if (props.type === 15 /* JS_OBJECT_EXPRESSION */) {
  3203. let alreadyExists = false;
  3204. // check existing key to avoid overriding user provided keys
  3205. if (prop.key.type === 4 /* SIMPLE_EXPRESSION */) {
  3206. const propKeyName = prop.key.content;
  3207. alreadyExists = props.properties.some(p => p.key.type === 4 /* SIMPLE_EXPRESSION */ &&
  3208. p.key.content === propKeyName);
  3209. }
  3210. if (!alreadyExists) {
  3211. props.properties.unshift(prop);
  3212. }
  3213. propsWithInjection = props;
  3214. }
  3215. else {
  3216. // single v-bind with expression, return a merged replacement
  3217. propsWithInjection = createCallExpression(context.helper(MERGE_PROPS), [
  3218. createObjectExpression([prop]),
  3219. props
  3220. ]);
  3221. // in the case of nested helper call, e.g. `normalizeProps(guardReactiveProps(props))`,
  3222. // it will be rewritten as `normalizeProps(mergeProps({ key: 0 }, props))`,
  3223. // the `guardReactiveProps` will no longer be needed
  3224. if (parentCall && parentCall.callee === GUARD_REACTIVE_PROPS) {
  3225. parentCall = callPath[callPath.length - 2];
  3226. }
  3227. }
  3228. if (node.type === 13 /* VNODE_CALL */) {
  3229. if (parentCall) {
  3230. parentCall.arguments[0] = propsWithInjection;
  3231. }
  3232. else {
  3233. node.props = propsWithInjection;
  3234. }
  3235. }
  3236. else {
  3237. if (parentCall) {
  3238. parentCall.arguments[0] = propsWithInjection;
  3239. }
  3240. else {
  3241. node.arguments[2] = propsWithInjection;
  3242. }
  3243. }
  3244. }
  3245. function toValidAssetId(name, type) {
  3246. // see issue#4422, we need adding identifier on validAssetId if variable `name` has specific character
  3247. return `_${type}_${name.replace(/[^\w]/g, (searchValue, replaceValue) => {
  3248. return searchValue === '-' ? '_' : name.charCodeAt(replaceValue).toString();
  3249. })}`;
  3250. }
  3251. // Check if a node contains expressions that reference current context scope ids
  3252. function hasScopeRef(node, ids) {
  3253. if (!node || Object.keys(ids).length === 0) {
  3254. return false;
  3255. }
  3256. switch (node.type) {
  3257. case 1 /* ELEMENT */:
  3258. for (let i = 0; i < node.props.length; i++) {
  3259. const p = node.props[i];
  3260. if (p.type === 7 /* DIRECTIVE */ &&
  3261. (hasScopeRef(p.arg, ids) || hasScopeRef(p.exp, ids))) {
  3262. return true;
  3263. }
  3264. }
  3265. return node.children.some(c => hasScopeRef(c, ids));
  3266. case 11 /* FOR */:
  3267. if (hasScopeRef(node.source, ids)) {
  3268. return true;
  3269. }
  3270. return node.children.some(c => hasScopeRef(c, ids));
  3271. case 9 /* IF */:
  3272. return node.branches.some(b => hasScopeRef(b, ids));
  3273. case 10 /* IF_BRANCH */:
  3274. if (hasScopeRef(node.condition, ids)) {
  3275. return true;
  3276. }
  3277. return node.children.some(c => hasScopeRef(c, ids));
  3278. case 4 /* SIMPLE_EXPRESSION */:
  3279. return (!node.isStatic &&
  3280. isSimpleIdentifier(node.content) &&
  3281. !!ids[node.content]);
  3282. case 8 /* COMPOUND_EXPRESSION */:
  3283. return node.children.some(c => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isObject)(c) && hasScopeRef(c, ids));
  3284. case 5 /* INTERPOLATION */:
  3285. case 12 /* TEXT_CALL */:
  3286. return hasScopeRef(node.content, ids);
  3287. case 2 /* TEXT */:
  3288. case 3 /* COMMENT */:
  3289. return false;
  3290. default:
  3291. if ((true)) ;
  3292. return false;
  3293. }
  3294. }
  3295. function getMemoedVNodeCall(node) {
  3296. if (node.type === 14 /* JS_CALL_EXPRESSION */ && node.callee === WITH_MEMO) {
  3297. return node.arguments[1].returns;
  3298. }
  3299. else {
  3300. return node;
  3301. }
  3302. }
  3303. function makeBlock(node, { helper, removeHelper, inSSR }) {
  3304. if (!node.isBlock) {
  3305. node.isBlock = true;
  3306. removeHelper(getVNodeHelper(inSSR, node.isComponent));
  3307. helper(OPEN_BLOCK);
  3308. helper(getVNodeBlockHelper(inSSR, node.isComponent));
  3309. }
  3310. }
  3311. const deprecationData = {
  3312. ["COMPILER_IS_ON_ELEMENT" /* COMPILER_IS_ON_ELEMENT */]: {
  3313. message: `Platform-native elements with "is" prop will no longer be ` +
  3314. `treated as components in Vue 3 unless the "is" value is explicitly ` +
  3315. `prefixed with "vue:".`,
  3316. link: `https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html`
  3317. },
  3318. ["COMPILER_V_BIND_SYNC" /* COMPILER_V_BIND_SYNC */]: {
  3319. message: key => `.sync modifier for v-bind has been removed. Use v-model with ` +
  3320. `argument instead. \`v-bind:${key}.sync\` should be changed to ` +
  3321. `\`v-model:${key}\`.`,
  3322. link: `https://v3-migration.vuejs.org/breaking-changes/v-model.html`
  3323. },
  3324. ["COMPILER_V_BIND_PROP" /* COMPILER_V_BIND_PROP */]: {
  3325. message: `.prop modifier for v-bind has been removed and no longer necessary. ` +
  3326. `Vue 3 will automatically set a binding as DOM property when appropriate.`
  3327. },
  3328. ["COMPILER_V_BIND_OBJECT_ORDER" /* COMPILER_V_BIND_OBJECT_ORDER */]: {
  3329. message: `v-bind="obj" usage is now order sensitive and behaves like JavaScript ` +
  3330. `object spread: it will now overwrite an existing non-mergeable attribute ` +
  3331. `that appears before v-bind in the case of conflict. ` +
  3332. `To retain 2.x behavior, move v-bind to make it the first attribute. ` +
  3333. `You can also suppress this warning if the usage is intended.`,
  3334. link: `https://v3-migration.vuejs.org/breaking-changes/v-bind.html`
  3335. },
  3336. ["COMPILER_V_ON_NATIVE" /* COMPILER_V_ON_NATIVE */]: {
  3337. message: `.native modifier for v-on has been removed as is no longer necessary.`,
  3338. link: `https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html`
  3339. },
  3340. ["COMPILER_V_IF_V_FOR_PRECEDENCE" /* COMPILER_V_IF_V_FOR_PRECEDENCE */]: {
  3341. message: `v-if / v-for precedence when used on the same element has changed ` +
  3342. `in Vue 3: v-if now takes higher precedence and will no longer have ` +
  3343. `access to v-for scope variables. It is best to avoid the ambiguity ` +
  3344. `with <template> tags or use a computed property that filters v-for ` +
  3345. `data source.`,
  3346. link: `https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html`
  3347. },
  3348. ["COMPILER_NATIVE_TEMPLATE" /* COMPILER_NATIVE_TEMPLATE */]: {
  3349. message: `<template> with no special directives will render as a native template ` +
  3350. `element instead of its inner content in Vue 3.`
  3351. },
  3352. ["COMPILER_INLINE_TEMPLATE" /* COMPILER_INLINE_TEMPLATE */]: {
  3353. message: `"inline-template" has been removed in Vue 3.`,
  3354. link: `https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html`
  3355. },
  3356. ["COMPILER_FILTER" /* COMPILER_FILTERS */]: {
  3357. message: `filters have been removed in Vue 3. ` +
  3358. `The "|" symbol will be treated as native JavaScript bitwise OR operator. ` +
  3359. `Use method calls or computed properties instead.`,
  3360. link: `https://v3-migration.vuejs.org/breaking-changes/filters.html`
  3361. }
  3362. };
  3363. function getCompatValue(key, context) {
  3364. const config = context.options
  3365. ? context.options.compatConfig
  3366. : context.compatConfig;
  3367. const value = config && config[key];
  3368. if (key === 'MODE') {
  3369. return value || 3; // compiler defaults to v3 behavior
  3370. }
  3371. else {
  3372. return value;
  3373. }
  3374. }
  3375. function isCompatEnabled(key, context) {
  3376. const mode = getCompatValue('MODE', context);
  3377. const value = getCompatValue(key, context);
  3378. // in v3 mode, only enable if explicitly set to true
  3379. // otherwise enable for any non-false value
  3380. return mode === 3 ? value === true : value !== false;
  3381. }
  3382. function checkCompatEnabled(key, context, loc, ...args) {
  3383. const enabled = isCompatEnabled(key, context);
  3384. if (( true) && enabled) {
  3385. warnDeprecation(key, context, loc, ...args);
  3386. }
  3387. return enabled;
  3388. }
  3389. function warnDeprecation(key, context, loc, ...args) {
  3390. const val = getCompatValue(key, context);
  3391. if (val === 'suppress-warning') {
  3392. return;
  3393. }
  3394. const { message, link } = deprecationData[key];
  3395. const msg = `(deprecation ${key}) ${typeof message === 'function' ? message(...args) : message}${link ? `\n Details: ${link}` : ``}`;
  3396. const err = new SyntaxError(msg);
  3397. err.code = key;
  3398. if (loc)
  3399. err.loc = loc;
  3400. context.onWarn(err);
  3401. }
  3402. // The default decoder only provides escapes for characters reserved as part of
  3403. // the template syntax, and is only used if the custom renderer did not provide
  3404. // a platform-specific decoder.
  3405. const decodeRE = /&(gt|lt|amp|apos|quot);/g;
  3406. const decodeMap = {
  3407. gt: '>',
  3408. lt: '<',
  3409. amp: '&',
  3410. apos: "'",
  3411. quot: '"'
  3412. };
  3413. const defaultParserOptions = {
  3414. delimiters: [`{{`, `}}`],
  3415. getNamespace: () => 0 /* HTML */,
  3416. getTextMode: () => 0 /* DATA */,
  3417. isVoidTag: _vue_shared__WEBPACK_IMPORTED_MODULE_0__.NO,
  3418. isPreTag: _vue_shared__WEBPACK_IMPORTED_MODULE_0__.NO,
  3419. isCustomElement: _vue_shared__WEBPACK_IMPORTED_MODULE_0__.NO,
  3420. decodeEntities: (rawText) => rawText.replace(decodeRE, (_, p1) => decodeMap[p1]),
  3421. onError: defaultOnError,
  3422. onWarn: defaultOnWarn,
  3423. comments: ("development" !== 'production')
  3424. };
  3425. function baseParse(content, options = {}) {
  3426. const context = createParserContext(content, options);
  3427. const start = getCursor(context);
  3428. return createRoot(parseChildren(context, 0 /* DATA */, []), getSelection(context, start));
  3429. }
  3430. function createParserContext(content, rawOptions) {
  3431. const options = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)({}, defaultParserOptions);
  3432. let key;
  3433. for (key in rawOptions) {
  3434. // @ts-ignore
  3435. options[key] =
  3436. rawOptions[key] === undefined
  3437. ? defaultParserOptions[key]
  3438. : rawOptions[key];
  3439. }
  3440. return {
  3441. options,
  3442. column: 1,
  3443. line: 1,
  3444. offset: 0,
  3445. originalSource: content,
  3446. source: content,
  3447. inPre: false,
  3448. inVPre: false,
  3449. onWarn: options.onWarn
  3450. };
  3451. }
  3452. function parseChildren(context, mode, ancestors) {
  3453. const parent = last(ancestors);
  3454. const ns = parent ? parent.ns : 0 /* HTML */;
  3455. const nodes = [];
  3456. while (!isEnd(context, mode, ancestors)) {
  3457. const s = context.source;
  3458. let node = undefined;
  3459. if (mode === 0 /* DATA */ || mode === 1 /* RCDATA */) {
  3460. if (!context.inVPre && startsWith(s, context.options.delimiters[0])) {
  3461. // '{{'
  3462. node = parseInterpolation(context, mode);
  3463. }
  3464. else if (mode === 0 /* DATA */ && s[0] === '<') {
  3465. // https://html.spec.whatwg.org/multipage/parsing.html#tag-open-state
  3466. if (s.length === 1) {
  3467. emitError(context, 5 /* EOF_BEFORE_TAG_NAME */, 1);
  3468. }
  3469. else if (s[1] === '!') {
  3470. // https://html.spec.whatwg.org/multipage/parsing.html#markup-declaration-open-state
  3471. if (startsWith(s, '<!--')) {
  3472. node = parseComment(context);
  3473. }
  3474. else if (startsWith(s, '<!DOCTYPE')) {
  3475. // Ignore DOCTYPE by a limitation.
  3476. node = parseBogusComment(context);
  3477. }
  3478. else if (startsWith(s, '<![CDATA[')) {
  3479. if (ns !== 0 /* HTML */) {
  3480. node = parseCDATA(context, ancestors);
  3481. }
  3482. else {
  3483. emitError(context, 1 /* CDATA_IN_HTML_CONTENT */);
  3484. node = parseBogusComment(context);
  3485. }
  3486. }
  3487. else {
  3488. emitError(context, 11 /* INCORRECTLY_OPENED_COMMENT */);
  3489. node = parseBogusComment(context);
  3490. }
  3491. }
  3492. else if (s[1] === '/') {
  3493. // https://html.spec.whatwg.org/multipage/parsing.html#end-tag-open-state
  3494. if (s.length === 2) {
  3495. emitError(context, 5 /* EOF_BEFORE_TAG_NAME */, 2);
  3496. }
  3497. else if (s[2] === '>') {
  3498. emitError(context, 14 /* MISSING_END_TAG_NAME */, 2);
  3499. advanceBy(context, 3);
  3500. continue;
  3501. }
  3502. else if (/[a-z]/i.test(s[2])) {
  3503. emitError(context, 23 /* X_INVALID_END_TAG */);
  3504. parseTag(context, 1 /* End */, parent);
  3505. continue;
  3506. }
  3507. else {
  3508. emitError(context, 12 /* INVALID_FIRST_CHARACTER_OF_TAG_NAME */, 2);
  3509. node = parseBogusComment(context);
  3510. }
  3511. }
  3512. else if (/[a-z]/i.test(s[1])) {
  3513. node = parseElement(context, ancestors);
  3514. // 2.x <template> with no directive compat
  3515. if (isCompatEnabled("COMPILER_NATIVE_TEMPLATE" /* COMPILER_NATIVE_TEMPLATE */, context) &&
  3516. node &&
  3517. node.tag === 'template' &&
  3518. !node.props.some(p => p.type === 7 /* DIRECTIVE */ &&
  3519. isSpecialTemplateDirective(p.name))) {
  3520. ( true) &&
  3521. warnDeprecation("COMPILER_NATIVE_TEMPLATE" /* COMPILER_NATIVE_TEMPLATE */, context, node.loc);
  3522. node = node.children;
  3523. }
  3524. }
  3525. else if (s[1] === '?') {
  3526. emitError(context, 21 /* UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME */, 1);
  3527. node = parseBogusComment(context);
  3528. }
  3529. else {
  3530. emitError(context, 12 /* INVALID_FIRST_CHARACTER_OF_TAG_NAME */, 1);
  3531. }
  3532. }
  3533. }
  3534. if (!node) {
  3535. node = parseText(context, mode);
  3536. }
  3537. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(node)) {
  3538. for (let i = 0; i < node.length; i++) {
  3539. pushNode(nodes, node[i]);
  3540. }
  3541. }
  3542. else {
  3543. pushNode(nodes, node);
  3544. }
  3545. }
  3546. // Whitespace handling strategy like v2
  3547. let removedWhitespace = false;
  3548. if (mode !== 2 /* RAWTEXT */ && mode !== 1 /* RCDATA */) {
  3549. const shouldCondense = context.options.whitespace !== 'preserve';
  3550. for (let i = 0; i < nodes.length; i++) {
  3551. const node = nodes[i];
  3552. if (!context.inPre && node.type === 2 /* TEXT */) {
  3553. if (!/[^\t\r\n\f ]/.test(node.content)) {
  3554. const prev = nodes[i - 1];
  3555. const next = nodes[i + 1];
  3556. // Remove if:
  3557. // - the whitespace is the first or last node, or:
  3558. // - (condense mode) the whitespace is adjacent to a comment, or:
  3559. // - (condense mode) the whitespace is between two elements AND contains newline
  3560. if (!prev ||
  3561. !next ||
  3562. (shouldCondense &&
  3563. (prev.type === 3 /* COMMENT */ ||
  3564. next.type === 3 /* COMMENT */ ||
  3565. (prev.type === 1 /* ELEMENT */ &&
  3566. next.type === 1 /* ELEMENT */ &&
  3567. /[\r\n]/.test(node.content))))) {
  3568. removedWhitespace = true;
  3569. nodes[i] = null;
  3570. }
  3571. else {
  3572. // Otherwise, the whitespace is condensed into a single space
  3573. node.content = ' ';
  3574. }
  3575. }
  3576. else if (shouldCondense) {
  3577. // in condense mode, consecutive whitespaces in text are condensed
  3578. // down to a single space.
  3579. node.content = node.content.replace(/[\t\r\n\f ]+/g, ' ');
  3580. }
  3581. }
  3582. // Remove comment nodes if desired by configuration.
  3583. else if (node.type === 3 /* COMMENT */ && !context.options.comments) {
  3584. removedWhitespace = true;
  3585. nodes[i] = null;
  3586. }
  3587. }
  3588. if (context.inPre && parent && context.options.isPreTag(parent.tag)) {
  3589. // remove leading newline per html spec
  3590. // https://html.spec.whatwg.org/multipage/grouping-content.html#the-pre-element
  3591. const first = nodes[0];
  3592. if (first && first.type === 2 /* TEXT */) {
  3593. first.content = first.content.replace(/^\r?\n/, '');
  3594. }
  3595. }
  3596. }
  3597. return removedWhitespace ? nodes.filter(Boolean) : nodes;
  3598. }
  3599. function pushNode(nodes, node) {
  3600. if (node.type === 2 /* TEXT */) {
  3601. const prev = last(nodes);
  3602. // Merge if both this and the previous node are text and those are
  3603. // consecutive. This happens for cases like "a < b".
  3604. if (prev &&
  3605. prev.type === 2 /* TEXT */ &&
  3606. prev.loc.end.offset === node.loc.start.offset) {
  3607. prev.content += node.content;
  3608. prev.loc.end = node.loc.end;
  3609. prev.loc.source += node.loc.source;
  3610. return;
  3611. }
  3612. }
  3613. nodes.push(node);
  3614. }
  3615. function parseCDATA(context, ancestors) {
  3616. advanceBy(context, 9);
  3617. const nodes = parseChildren(context, 3 /* CDATA */, ancestors);
  3618. if (context.source.length === 0) {
  3619. emitError(context, 6 /* EOF_IN_CDATA */);
  3620. }
  3621. else {
  3622. advanceBy(context, 3);
  3623. }
  3624. return nodes;
  3625. }
  3626. function parseComment(context) {
  3627. const start = getCursor(context);
  3628. let content;
  3629. // Regular comment.
  3630. const match = /--(\!)?>/.exec(context.source);
  3631. if (!match) {
  3632. content = context.source.slice(4);
  3633. advanceBy(context, context.source.length);
  3634. emitError(context, 7 /* EOF_IN_COMMENT */);
  3635. }
  3636. else {
  3637. if (match.index <= 3) {
  3638. emitError(context, 0 /* ABRUPT_CLOSING_OF_EMPTY_COMMENT */);
  3639. }
  3640. if (match[1]) {
  3641. emitError(context, 10 /* INCORRECTLY_CLOSED_COMMENT */);
  3642. }
  3643. content = context.source.slice(4, match.index);
  3644. // Advancing with reporting nested comments.
  3645. const s = context.source.slice(0, match.index);
  3646. let prevIndex = 1, nestedIndex = 0;
  3647. while ((nestedIndex = s.indexOf('<!--', prevIndex)) !== -1) {
  3648. advanceBy(context, nestedIndex - prevIndex + 1);
  3649. if (nestedIndex + 4 < s.length) {
  3650. emitError(context, 16 /* NESTED_COMMENT */);
  3651. }
  3652. prevIndex = nestedIndex + 1;
  3653. }
  3654. advanceBy(context, match.index + match[0].length - prevIndex + 1);
  3655. }
  3656. return {
  3657. type: 3 /* COMMENT */,
  3658. content,
  3659. loc: getSelection(context, start)
  3660. };
  3661. }
  3662. function parseBogusComment(context) {
  3663. const start = getCursor(context);
  3664. const contentStart = context.source[1] === '?' ? 1 : 2;
  3665. let content;
  3666. const closeIndex = context.source.indexOf('>');
  3667. if (closeIndex === -1) {
  3668. content = context.source.slice(contentStart);
  3669. advanceBy(context, context.source.length);
  3670. }
  3671. else {
  3672. content = context.source.slice(contentStart, closeIndex);
  3673. advanceBy(context, closeIndex + 1);
  3674. }
  3675. return {
  3676. type: 3 /* COMMENT */,
  3677. content,
  3678. loc: getSelection(context, start)
  3679. };
  3680. }
  3681. function parseElement(context, ancestors) {
  3682. // Start tag.
  3683. const wasInPre = context.inPre;
  3684. const wasInVPre = context.inVPre;
  3685. const parent = last(ancestors);
  3686. const element = parseTag(context, 0 /* Start */, parent);
  3687. const isPreBoundary = context.inPre && !wasInPre;
  3688. const isVPreBoundary = context.inVPre && !wasInVPre;
  3689. if (element.isSelfClosing || context.options.isVoidTag(element.tag)) {
  3690. // #4030 self-closing <pre> tag
  3691. if (isPreBoundary) {
  3692. context.inPre = false;
  3693. }
  3694. if (isVPreBoundary) {
  3695. context.inVPre = false;
  3696. }
  3697. return element;
  3698. }
  3699. // Children.
  3700. ancestors.push(element);
  3701. const mode = context.options.getTextMode(element, parent);
  3702. const children = parseChildren(context, mode, ancestors);
  3703. ancestors.pop();
  3704. // 2.x inline-template compat
  3705. {
  3706. const inlineTemplateProp = element.props.find(p => p.type === 6 /* ATTRIBUTE */ && p.name === 'inline-template');
  3707. if (inlineTemplateProp &&
  3708. checkCompatEnabled("COMPILER_INLINE_TEMPLATE" /* COMPILER_INLINE_TEMPLATE */, context, inlineTemplateProp.loc)) {
  3709. const loc = getSelection(context, element.loc.end);
  3710. inlineTemplateProp.value = {
  3711. type: 2 /* TEXT */,
  3712. content: loc.source,
  3713. loc
  3714. };
  3715. }
  3716. }
  3717. element.children = children;
  3718. // End tag.
  3719. if (startsWithEndTagOpen(context.source, element.tag)) {
  3720. parseTag(context, 1 /* End */, parent);
  3721. }
  3722. else {
  3723. emitError(context, 24 /* X_MISSING_END_TAG */, 0, element.loc.start);
  3724. if (context.source.length === 0 && element.tag.toLowerCase() === 'script') {
  3725. const first = children[0];
  3726. if (first && startsWith(first.loc.source, '<!--')) {
  3727. emitError(context, 8 /* EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT */);
  3728. }
  3729. }
  3730. }
  3731. element.loc = getSelection(context, element.loc.start);
  3732. if (isPreBoundary) {
  3733. context.inPre = false;
  3734. }
  3735. if (isVPreBoundary) {
  3736. context.inVPre = false;
  3737. }
  3738. return element;
  3739. }
  3740. const isSpecialTemplateDirective = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.makeMap)(`if,else,else-if,for,slot`);
  3741. function parseTag(context, type, parent) {
  3742. // Tag open.
  3743. const start = getCursor(context);
  3744. const match = /^<\/?([a-z][^\t\r\n\f />]*)/i.exec(context.source);
  3745. const tag = match[1];
  3746. const ns = context.options.getNamespace(tag, parent);
  3747. advanceBy(context, match[0].length);
  3748. advanceSpaces(context);
  3749. // save current state in case we need to re-parse attributes with v-pre
  3750. const cursor = getCursor(context);
  3751. const currentSource = context.source;
  3752. // check <pre> tag
  3753. if (context.options.isPreTag(tag)) {
  3754. context.inPre = true;
  3755. }
  3756. // Attributes.
  3757. let props = parseAttributes(context, type);
  3758. // check v-pre
  3759. if (type === 0 /* Start */ &&
  3760. !context.inVPre &&
  3761. props.some(p => p.type === 7 /* DIRECTIVE */ && p.name === 'pre')) {
  3762. context.inVPre = true;
  3763. // reset context
  3764. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)(context, cursor);
  3765. context.source = currentSource;
  3766. // re-parse attrs and filter out v-pre itself
  3767. props = parseAttributes(context, type).filter(p => p.name !== 'v-pre');
  3768. }
  3769. // Tag close.
  3770. let isSelfClosing = false;
  3771. if (context.source.length === 0) {
  3772. emitError(context, 9 /* EOF_IN_TAG */);
  3773. }
  3774. else {
  3775. isSelfClosing = startsWith(context.source, '/>');
  3776. if (type === 1 /* End */ && isSelfClosing) {
  3777. emitError(context, 4 /* END_TAG_WITH_TRAILING_SOLIDUS */);
  3778. }
  3779. advanceBy(context, isSelfClosing ? 2 : 1);
  3780. }
  3781. if (type === 1 /* End */) {
  3782. return;
  3783. }
  3784. // 2.x deprecation checks
  3785. if (( true) &&
  3786. isCompatEnabled("COMPILER_V_IF_V_FOR_PRECEDENCE" /* COMPILER_V_IF_V_FOR_PRECEDENCE */, context)) {
  3787. let hasIf = false;
  3788. let hasFor = false;
  3789. for (let i = 0; i < props.length; i++) {
  3790. const p = props[i];
  3791. if (p.type === 7 /* DIRECTIVE */) {
  3792. if (p.name === 'if') {
  3793. hasIf = true;
  3794. }
  3795. else if (p.name === 'for') {
  3796. hasFor = true;
  3797. }
  3798. }
  3799. if (hasIf && hasFor) {
  3800. warnDeprecation("COMPILER_V_IF_V_FOR_PRECEDENCE" /* COMPILER_V_IF_V_FOR_PRECEDENCE */, context, getSelection(context, start));
  3801. break;
  3802. }
  3803. }
  3804. }
  3805. let tagType = 0 /* ELEMENT */;
  3806. if (!context.inVPre) {
  3807. if (tag === 'slot') {
  3808. tagType = 2 /* SLOT */;
  3809. }
  3810. else if (tag === 'template') {
  3811. if (props.some(p => p.type === 7 /* DIRECTIVE */ && isSpecialTemplateDirective(p.name))) {
  3812. tagType = 3 /* TEMPLATE */;
  3813. }
  3814. }
  3815. else if (isComponent(tag, props, context)) {
  3816. tagType = 1 /* COMPONENT */;
  3817. }
  3818. }
  3819. return {
  3820. type: 1 /* ELEMENT */,
  3821. ns,
  3822. tag,
  3823. tagType,
  3824. props,
  3825. isSelfClosing,
  3826. children: [],
  3827. loc: getSelection(context, start),
  3828. codegenNode: undefined // to be created during transform phase
  3829. };
  3830. }
  3831. function isComponent(tag, props, context) {
  3832. const options = context.options;
  3833. if (options.isCustomElement(tag)) {
  3834. return false;
  3835. }
  3836. if (tag === 'component' ||
  3837. /^[A-Z]/.test(tag) ||
  3838. isCoreComponent(tag) ||
  3839. (options.isBuiltInComponent && options.isBuiltInComponent(tag)) ||
  3840. (options.isNativeTag && !options.isNativeTag(tag))) {
  3841. return true;
  3842. }
  3843. // at this point the tag should be a native tag, but check for potential "is"
  3844. // casting
  3845. for (let i = 0; i < props.length; i++) {
  3846. const p = props[i];
  3847. if (p.type === 6 /* ATTRIBUTE */) {
  3848. if (p.name === 'is' && p.value) {
  3849. if (p.value.content.startsWith('vue:')) {
  3850. return true;
  3851. }
  3852. else if (checkCompatEnabled("COMPILER_IS_ON_ELEMENT" /* COMPILER_IS_ON_ELEMENT */, context, p.loc)) {
  3853. return true;
  3854. }
  3855. }
  3856. }
  3857. else {
  3858. // directive
  3859. // v-is (TODO Deprecate)
  3860. if (p.name === 'is') {
  3861. return true;
  3862. }
  3863. else if (
  3864. // :is on plain element - only treat as component in compat mode
  3865. p.name === 'bind' &&
  3866. isStaticArgOf(p.arg, 'is') &&
  3867. true &&
  3868. checkCompatEnabled("COMPILER_IS_ON_ELEMENT" /* COMPILER_IS_ON_ELEMENT */, context, p.loc)) {
  3869. return true;
  3870. }
  3871. }
  3872. }
  3873. }
  3874. function parseAttributes(context, type) {
  3875. const props = [];
  3876. const attributeNames = new Set();
  3877. while (context.source.length > 0 &&
  3878. !startsWith(context.source, '>') &&
  3879. !startsWith(context.source, '/>')) {
  3880. if (startsWith(context.source, '/')) {
  3881. emitError(context, 22 /* UNEXPECTED_SOLIDUS_IN_TAG */);
  3882. advanceBy(context, 1);
  3883. advanceSpaces(context);
  3884. continue;
  3885. }
  3886. if (type === 1 /* End */) {
  3887. emitError(context, 3 /* END_TAG_WITH_ATTRIBUTES */);
  3888. }
  3889. const attr = parseAttribute(context, attributeNames);
  3890. // Trim whitespace between class
  3891. // https://github.com/vuejs/core/issues/4251
  3892. if (attr.type === 6 /* ATTRIBUTE */ &&
  3893. attr.value &&
  3894. attr.name === 'class') {
  3895. attr.value.content = attr.value.content.replace(/\s+/g, ' ').trim();
  3896. }
  3897. if (type === 0 /* Start */) {
  3898. props.push(attr);
  3899. }
  3900. if (/^[^\t\r\n\f />]/.test(context.source)) {
  3901. emitError(context, 15 /* MISSING_WHITESPACE_BETWEEN_ATTRIBUTES */);
  3902. }
  3903. advanceSpaces(context);
  3904. }
  3905. return props;
  3906. }
  3907. function parseAttribute(context, nameSet) {
  3908. // Name.
  3909. const start = getCursor(context);
  3910. const match = /^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(context.source);
  3911. const name = match[0];
  3912. if (nameSet.has(name)) {
  3913. emitError(context, 2 /* DUPLICATE_ATTRIBUTE */);
  3914. }
  3915. nameSet.add(name);
  3916. if (name[0] === '=') {
  3917. emitError(context, 19 /* UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME */);
  3918. }
  3919. {
  3920. const pattern = /["'<]/g;
  3921. let m;
  3922. while ((m = pattern.exec(name))) {
  3923. emitError(context, 17 /* UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME */, m.index);
  3924. }
  3925. }
  3926. advanceBy(context, name.length);
  3927. // Value
  3928. let value = undefined;
  3929. if (/^[\t\r\n\f ]*=/.test(context.source)) {
  3930. advanceSpaces(context);
  3931. advanceBy(context, 1);
  3932. advanceSpaces(context);
  3933. value = parseAttributeValue(context);
  3934. if (!value) {
  3935. emitError(context, 13 /* MISSING_ATTRIBUTE_VALUE */);
  3936. }
  3937. }
  3938. const loc = getSelection(context, start);
  3939. if (!context.inVPre && /^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(name)) {
  3940. const match = /(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(name);
  3941. let isPropShorthand = startsWith(name, '.');
  3942. let dirName = match[1] ||
  3943. (isPropShorthand || startsWith(name, ':')
  3944. ? 'bind'
  3945. : startsWith(name, '@')
  3946. ? 'on'
  3947. : 'slot');
  3948. let arg;
  3949. if (match[2]) {
  3950. const isSlot = dirName === 'slot';
  3951. const startOffset = name.lastIndexOf(match[2]);
  3952. const loc = getSelection(context, getNewPosition(context, start, startOffset), getNewPosition(context, start, startOffset + match[2].length + ((isSlot && match[3]) || '').length));
  3953. let content = match[2];
  3954. let isStatic = true;
  3955. if (content.startsWith('[')) {
  3956. isStatic = false;
  3957. if (!content.endsWith(']')) {
  3958. emitError(context, 27 /* X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END */);
  3959. content = content.slice(1);
  3960. }
  3961. else {
  3962. content = content.slice(1, content.length - 1);
  3963. }
  3964. }
  3965. else if (isSlot) {
  3966. // #1241 special case for v-slot: vuetify relies extensively on slot
  3967. // names containing dots. v-slot doesn't have any modifiers and Vue 2.x
  3968. // supports such usage so we are keeping it consistent with 2.x.
  3969. content += match[3] || '';
  3970. }
  3971. arg = {
  3972. type: 4 /* SIMPLE_EXPRESSION */,
  3973. content,
  3974. isStatic,
  3975. constType: isStatic
  3976. ? 3 /* CAN_STRINGIFY */
  3977. : 0 /* NOT_CONSTANT */,
  3978. loc
  3979. };
  3980. }
  3981. if (value && value.isQuoted) {
  3982. const valueLoc = value.loc;
  3983. valueLoc.start.offset++;
  3984. valueLoc.start.column++;
  3985. valueLoc.end = advancePositionWithClone(valueLoc.start, value.content);
  3986. valueLoc.source = valueLoc.source.slice(1, -1);
  3987. }
  3988. const modifiers = match[3] ? match[3].slice(1).split('.') : [];
  3989. if (isPropShorthand)
  3990. modifiers.push('prop');
  3991. // 2.x compat v-bind:foo.sync -> v-model:foo
  3992. if (dirName === 'bind' && arg) {
  3993. if (modifiers.includes('sync') &&
  3994. checkCompatEnabled("COMPILER_V_BIND_SYNC" /* COMPILER_V_BIND_SYNC */, context, loc, arg.loc.source)) {
  3995. dirName = 'model';
  3996. modifiers.splice(modifiers.indexOf('sync'), 1);
  3997. }
  3998. if (( true) && modifiers.includes('prop')) {
  3999. checkCompatEnabled("COMPILER_V_BIND_PROP" /* COMPILER_V_BIND_PROP */, context, loc);
  4000. }
  4001. }
  4002. return {
  4003. type: 7 /* DIRECTIVE */,
  4004. name: dirName,
  4005. exp: value && {
  4006. type: 4 /* SIMPLE_EXPRESSION */,
  4007. content: value.content,
  4008. isStatic: false,
  4009. // Treat as non-constant by default. This can be potentially set to
  4010. // other values by `transformExpression` to make it eligible for hoisting.
  4011. constType: 0 /* NOT_CONSTANT */,
  4012. loc: value.loc
  4013. },
  4014. arg,
  4015. modifiers,
  4016. loc
  4017. };
  4018. }
  4019. // missing directive name or illegal directive name
  4020. if (!context.inVPre && startsWith(name, 'v-')) {
  4021. emitError(context, 26 /* X_MISSING_DIRECTIVE_NAME */);
  4022. }
  4023. return {
  4024. type: 6 /* ATTRIBUTE */,
  4025. name,
  4026. value: value && {
  4027. type: 2 /* TEXT */,
  4028. content: value.content,
  4029. loc: value.loc
  4030. },
  4031. loc
  4032. };
  4033. }
  4034. function parseAttributeValue(context) {
  4035. const start = getCursor(context);
  4036. let content;
  4037. const quote = context.source[0];
  4038. const isQuoted = quote === `"` || quote === `'`;
  4039. if (isQuoted) {
  4040. // Quoted value.
  4041. advanceBy(context, 1);
  4042. const endIndex = context.source.indexOf(quote);
  4043. if (endIndex === -1) {
  4044. content = parseTextData(context, context.source.length, 4 /* ATTRIBUTE_VALUE */);
  4045. }
  4046. else {
  4047. content = parseTextData(context, endIndex, 4 /* ATTRIBUTE_VALUE */);
  4048. advanceBy(context, 1);
  4049. }
  4050. }
  4051. else {
  4052. // Unquoted
  4053. const match = /^[^\t\r\n\f >]+/.exec(context.source);
  4054. if (!match) {
  4055. return undefined;
  4056. }
  4057. const unexpectedChars = /["'<=`]/g;
  4058. let m;
  4059. while ((m = unexpectedChars.exec(match[0]))) {
  4060. emitError(context, 18 /* UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE */, m.index);
  4061. }
  4062. content = parseTextData(context, match[0].length, 4 /* ATTRIBUTE_VALUE */);
  4063. }
  4064. return { content, isQuoted, loc: getSelection(context, start) };
  4065. }
  4066. function parseInterpolation(context, mode) {
  4067. const [open, close] = context.options.delimiters;
  4068. const closeIndex = context.source.indexOf(close, open.length);
  4069. if (closeIndex === -1) {
  4070. emitError(context, 25 /* X_MISSING_INTERPOLATION_END */);
  4071. return undefined;
  4072. }
  4073. const start = getCursor(context);
  4074. advanceBy(context, open.length);
  4075. const innerStart = getCursor(context);
  4076. const innerEnd = getCursor(context);
  4077. const rawContentLength = closeIndex - open.length;
  4078. const rawContent = context.source.slice(0, rawContentLength);
  4079. const preTrimContent = parseTextData(context, rawContentLength, mode);
  4080. const content = preTrimContent.trim();
  4081. const startOffset = preTrimContent.indexOf(content);
  4082. if (startOffset > 0) {
  4083. advancePositionWithMutation(innerStart, rawContent, startOffset);
  4084. }
  4085. const endOffset = rawContentLength - (preTrimContent.length - content.length - startOffset);
  4086. advancePositionWithMutation(innerEnd, rawContent, endOffset);
  4087. advanceBy(context, close.length);
  4088. return {
  4089. type: 5 /* INTERPOLATION */,
  4090. content: {
  4091. type: 4 /* SIMPLE_EXPRESSION */,
  4092. isStatic: false,
  4093. // Set `isConstant` to false by default and will decide in transformExpression
  4094. constType: 0 /* NOT_CONSTANT */,
  4095. content,
  4096. loc: getSelection(context, innerStart, innerEnd)
  4097. },
  4098. loc: getSelection(context, start)
  4099. };
  4100. }
  4101. function parseText(context, mode) {
  4102. const endTokens = mode === 3 /* CDATA */ ? [']]>'] : ['<', context.options.delimiters[0]];
  4103. let endIndex = context.source.length;
  4104. for (let i = 0; i < endTokens.length; i++) {
  4105. const index = context.source.indexOf(endTokens[i], 1);
  4106. if (index !== -1 && endIndex > index) {
  4107. endIndex = index;
  4108. }
  4109. }
  4110. const start = getCursor(context);
  4111. const content = parseTextData(context, endIndex, mode);
  4112. return {
  4113. type: 2 /* TEXT */,
  4114. content,
  4115. loc: getSelection(context, start)
  4116. };
  4117. }
  4118. /**
  4119. * Get text data with a given length from the current location.
  4120. * This translates HTML entities in the text data.
  4121. */
  4122. function parseTextData(context, length, mode) {
  4123. const rawText = context.source.slice(0, length);
  4124. advanceBy(context, length);
  4125. if (mode === 2 /* RAWTEXT */ ||
  4126. mode === 3 /* CDATA */ ||
  4127. !rawText.includes('&')) {
  4128. return rawText;
  4129. }
  4130. else {
  4131. // DATA or RCDATA containing "&"". Entity decoding required.
  4132. return context.options.decodeEntities(rawText, mode === 4 /* ATTRIBUTE_VALUE */);
  4133. }
  4134. }
  4135. function getCursor(context) {
  4136. const { column, line, offset } = context;
  4137. return { column, line, offset };
  4138. }
  4139. function getSelection(context, start, end) {
  4140. end = end || getCursor(context);
  4141. return {
  4142. start,
  4143. end,
  4144. source: context.originalSource.slice(start.offset, end.offset)
  4145. };
  4146. }
  4147. function last(xs) {
  4148. return xs[xs.length - 1];
  4149. }
  4150. function startsWith(source, searchString) {
  4151. return source.startsWith(searchString);
  4152. }
  4153. function advanceBy(context, numberOfCharacters) {
  4154. const { source } = context;
  4155. advancePositionWithMutation(context, source, numberOfCharacters);
  4156. context.source = source.slice(numberOfCharacters);
  4157. }
  4158. function advanceSpaces(context) {
  4159. const match = /^[\t\r\n\f ]+/.exec(context.source);
  4160. if (match) {
  4161. advanceBy(context, match[0].length);
  4162. }
  4163. }
  4164. function getNewPosition(context, start, numberOfCharacters) {
  4165. return advancePositionWithClone(start, context.originalSource.slice(start.offset, numberOfCharacters), numberOfCharacters);
  4166. }
  4167. function emitError(context, code, offset, loc = getCursor(context)) {
  4168. if (offset) {
  4169. loc.offset += offset;
  4170. loc.column += offset;
  4171. }
  4172. context.options.onError(createCompilerError(code, {
  4173. start: loc,
  4174. end: loc,
  4175. source: ''
  4176. }));
  4177. }
  4178. function isEnd(context, mode, ancestors) {
  4179. const s = context.source;
  4180. switch (mode) {
  4181. case 0 /* DATA */:
  4182. if (startsWith(s, '</')) {
  4183. // TODO: probably bad performance
  4184. for (let i = ancestors.length - 1; i >= 0; --i) {
  4185. if (startsWithEndTagOpen(s, ancestors[i].tag)) {
  4186. return true;
  4187. }
  4188. }
  4189. }
  4190. break;
  4191. case 1 /* RCDATA */:
  4192. case 2 /* RAWTEXT */: {
  4193. const parent = last(ancestors);
  4194. if (parent && startsWithEndTagOpen(s, parent.tag)) {
  4195. return true;
  4196. }
  4197. break;
  4198. }
  4199. case 3 /* CDATA */:
  4200. if (startsWith(s, ']]>')) {
  4201. return true;
  4202. }
  4203. break;
  4204. }
  4205. return !s;
  4206. }
  4207. function startsWithEndTagOpen(source, tag) {
  4208. return (startsWith(source, '</') &&
  4209. source.slice(2, 2 + tag.length).toLowerCase() === tag.toLowerCase() &&
  4210. /[\t\r\n\f />]/.test(source[2 + tag.length] || '>'));
  4211. }
  4212. function hoistStatic(root, context) {
  4213. walk(root, context,
  4214. // Root node is unfortunately non-hoistable due to potential parent
  4215. // fallthrough attributes.
  4216. isSingleElementRoot(root, root.children[0]));
  4217. }
  4218. function isSingleElementRoot(root, child) {
  4219. const { children } = root;
  4220. return (children.length === 1 &&
  4221. child.type === 1 /* ELEMENT */ &&
  4222. !isSlotOutlet(child));
  4223. }
  4224. function walk(node, context, doNotHoistNode = false) {
  4225. const { children } = node;
  4226. const originalCount = children.length;
  4227. let hoistedCount = 0;
  4228. for (let i = 0; i < children.length; i++) {
  4229. const child = children[i];
  4230. // only plain elements & text calls are eligible for hoisting.
  4231. if (child.type === 1 /* ELEMENT */ &&
  4232. child.tagType === 0 /* ELEMENT */) {
  4233. const constantType = doNotHoistNode
  4234. ? 0 /* NOT_CONSTANT */
  4235. : getConstantType(child, context);
  4236. if (constantType > 0 /* NOT_CONSTANT */) {
  4237. if (constantType >= 2 /* CAN_HOIST */) {
  4238. child.codegenNode.patchFlag =
  4239. -1 /* HOISTED */ + (( true) ? ` /* HOISTED */` : 0);
  4240. child.codegenNode = context.hoist(child.codegenNode);
  4241. hoistedCount++;
  4242. continue;
  4243. }
  4244. }
  4245. else {
  4246. // node may contain dynamic children, but its props may be eligible for
  4247. // hoisting.
  4248. const codegenNode = child.codegenNode;
  4249. if (codegenNode.type === 13 /* VNODE_CALL */) {
  4250. const flag = getPatchFlag(codegenNode);
  4251. if ((!flag ||
  4252. flag === 512 /* NEED_PATCH */ ||
  4253. flag === 1 /* TEXT */) &&
  4254. getGeneratedPropsConstantType(child, context) >=
  4255. 2 /* CAN_HOIST */) {
  4256. const props = getNodeProps(child);
  4257. if (props) {
  4258. codegenNode.props = context.hoist(props);
  4259. }
  4260. }
  4261. if (codegenNode.dynamicProps) {
  4262. codegenNode.dynamicProps = context.hoist(codegenNode.dynamicProps);
  4263. }
  4264. }
  4265. }
  4266. }
  4267. else if (child.type === 12 /* TEXT_CALL */ &&
  4268. getConstantType(child.content, context) >= 2 /* CAN_HOIST */) {
  4269. child.codegenNode = context.hoist(child.codegenNode);
  4270. hoistedCount++;
  4271. }
  4272. // walk further
  4273. if (child.type === 1 /* ELEMENT */) {
  4274. const isComponent = child.tagType === 1 /* COMPONENT */;
  4275. if (isComponent) {
  4276. context.scopes.vSlot++;
  4277. }
  4278. walk(child, context);
  4279. if (isComponent) {
  4280. context.scopes.vSlot--;
  4281. }
  4282. }
  4283. else if (child.type === 11 /* FOR */) {
  4284. // Do not hoist v-for single child because it has to be a block
  4285. walk(child, context, child.children.length === 1);
  4286. }
  4287. else if (child.type === 9 /* IF */) {
  4288. for (let i = 0; i < child.branches.length; i++) {
  4289. // Do not hoist v-if single child because it has to be a block
  4290. walk(child.branches[i], context, child.branches[i].children.length === 1);
  4291. }
  4292. }
  4293. }
  4294. if (hoistedCount && context.transformHoist) {
  4295. context.transformHoist(children, context, node);
  4296. }
  4297. // all children were hoisted - the entire children array is hoistable.
  4298. if (hoistedCount &&
  4299. hoistedCount === originalCount &&
  4300. node.type === 1 /* ELEMENT */ &&
  4301. node.tagType === 0 /* ELEMENT */ &&
  4302. node.codegenNode &&
  4303. node.codegenNode.type === 13 /* VNODE_CALL */ &&
  4304. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(node.codegenNode.children)) {
  4305. node.codegenNode.children = context.hoist(createArrayExpression(node.codegenNode.children));
  4306. }
  4307. }
  4308. function getConstantType(node, context) {
  4309. const { constantCache } = context;
  4310. switch (node.type) {
  4311. case 1 /* ELEMENT */:
  4312. if (node.tagType !== 0 /* ELEMENT */) {
  4313. return 0 /* NOT_CONSTANT */;
  4314. }
  4315. const cached = constantCache.get(node);
  4316. if (cached !== undefined) {
  4317. return cached;
  4318. }
  4319. const codegenNode = node.codegenNode;
  4320. if (codegenNode.type !== 13 /* VNODE_CALL */) {
  4321. return 0 /* NOT_CONSTANT */;
  4322. }
  4323. if (codegenNode.isBlock &&
  4324. node.tag !== 'svg' &&
  4325. node.tag !== 'foreignObject') {
  4326. return 0 /* NOT_CONSTANT */;
  4327. }
  4328. const flag = getPatchFlag(codegenNode);
  4329. if (!flag) {
  4330. let returnType = 3 /* CAN_STRINGIFY */;
  4331. // Element itself has no patch flag. However we still need to check:
  4332. // 1. Even for a node with no patch flag, it is possible for it to contain
  4333. // non-hoistable expressions that refers to scope variables, e.g. compiler
  4334. // injected keys or cached event handlers. Therefore we need to always
  4335. // check the codegenNode's props to be sure.
  4336. const generatedPropsType = getGeneratedPropsConstantType(node, context);
  4337. if (generatedPropsType === 0 /* NOT_CONSTANT */) {
  4338. constantCache.set(node, 0 /* NOT_CONSTANT */);
  4339. return 0 /* NOT_CONSTANT */;
  4340. }
  4341. if (generatedPropsType < returnType) {
  4342. returnType = generatedPropsType;
  4343. }
  4344. // 2. its children.
  4345. for (let i = 0; i < node.children.length; i++) {
  4346. const childType = getConstantType(node.children[i], context);
  4347. if (childType === 0 /* NOT_CONSTANT */) {
  4348. constantCache.set(node, 0 /* NOT_CONSTANT */);
  4349. return 0 /* NOT_CONSTANT */;
  4350. }
  4351. if (childType < returnType) {
  4352. returnType = childType;
  4353. }
  4354. }
  4355. // 3. if the type is not already CAN_SKIP_PATCH which is the lowest non-0
  4356. // type, check if any of the props can cause the type to be lowered
  4357. // we can skip can_patch because it's guaranteed by the absence of a
  4358. // patchFlag.
  4359. if (returnType > 1 /* CAN_SKIP_PATCH */) {
  4360. for (let i = 0; i < node.props.length; i++) {
  4361. const p = node.props[i];
  4362. if (p.type === 7 /* DIRECTIVE */ && p.name === 'bind' && p.exp) {
  4363. const expType = getConstantType(p.exp, context);
  4364. if (expType === 0 /* NOT_CONSTANT */) {
  4365. constantCache.set(node, 0 /* NOT_CONSTANT */);
  4366. return 0 /* NOT_CONSTANT */;
  4367. }
  4368. if (expType < returnType) {
  4369. returnType = expType;
  4370. }
  4371. }
  4372. }
  4373. }
  4374. // only svg/foreignObject could be block here, however if they are
  4375. // static then they don't need to be blocks since there will be no
  4376. // nested updates.
  4377. if (codegenNode.isBlock) {
  4378. context.removeHelper(OPEN_BLOCK);
  4379. context.removeHelper(getVNodeBlockHelper(context.inSSR, codegenNode.isComponent));
  4380. codegenNode.isBlock = false;
  4381. context.helper(getVNodeHelper(context.inSSR, codegenNode.isComponent));
  4382. }
  4383. constantCache.set(node, returnType);
  4384. return returnType;
  4385. }
  4386. else {
  4387. constantCache.set(node, 0 /* NOT_CONSTANT */);
  4388. return 0 /* NOT_CONSTANT */;
  4389. }
  4390. case 2 /* TEXT */:
  4391. case 3 /* COMMENT */:
  4392. return 3 /* CAN_STRINGIFY */;
  4393. case 9 /* IF */:
  4394. case 11 /* FOR */:
  4395. case 10 /* IF_BRANCH */:
  4396. return 0 /* NOT_CONSTANT */;
  4397. case 5 /* INTERPOLATION */:
  4398. case 12 /* TEXT_CALL */:
  4399. return getConstantType(node.content, context);
  4400. case 4 /* SIMPLE_EXPRESSION */:
  4401. return node.constType;
  4402. case 8 /* COMPOUND_EXPRESSION */:
  4403. let returnType = 3 /* CAN_STRINGIFY */;
  4404. for (let i = 0; i < node.children.length; i++) {
  4405. const child = node.children[i];
  4406. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(child) || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isSymbol)(child)) {
  4407. continue;
  4408. }
  4409. const childType = getConstantType(child, context);
  4410. if (childType === 0 /* NOT_CONSTANT */) {
  4411. return 0 /* NOT_CONSTANT */;
  4412. }
  4413. else if (childType < returnType) {
  4414. returnType = childType;
  4415. }
  4416. }
  4417. return returnType;
  4418. default:
  4419. if ((true)) ;
  4420. return 0 /* NOT_CONSTANT */;
  4421. }
  4422. }
  4423. const allowHoistedHelperSet = new Set([
  4424. NORMALIZE_CLASS,
  4425. NORMALIZE_STYLE,
  4426. NORMALIZE_PROPS,
  4427. GUARD_REACTIVE_PROPS
  4428. ]);
  4429. function getConstantTypeOfHelperCall(value, context) {
  4430. if (value.type === 14 /* JS_CALL_EXPRESSION */ &&
  4431. !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(value.callee) &&
  4432. allowHoistedHelperSet.has(value.callee)) {
  4433. const arg = value.arguments[0];
  4434. if (arg.type === 4 /* SIMPLE_EXPRESSION */) {
  4435. return getConstantType(arg, context);
  4436. }
  4437. else if (arg.type === 14 /* JS_CALL_EXPRESSION */) {
  4438. // in the case of nested helper call, e.g. `normalizeProps(guardReactiveProps(exp))`
  4439. return getConstantTypeOfHelperCall(arg, context);
  4440. }
  4441. }
  4442. return 0 /* NOT_CONSTANT */;
  4443. }
  4444. function getGeneratedPropsConstantType(node, context) {
  4445. let returnType = 3 /* CAN_STRINGIFY */;
  4446. const props = getNodeProps(node);
  4447. if (props && props.type === 15 /* JS_OBJECT_EXPRESSION */) {
  4448. const { properties } = props;
  4449. for (let i = 0; i < properties.length; i++) {
  4450. const { key, value } = properties[i];
  4451. const keyType = getConstantType(key, context);
  4452. if (keyType === 0 /* NOT_CONSTANT */) {
  4453. return keyType;
  4454. }
  4455. if (keyType < returnType) {
  4456. returnType = keyType;
  4457. }
  4458. let valueType;
  4459. if (value.type === 4 /* SIMPLE_EXPRESSION */) {
  4460. valueType = getConstantType(value, context);
  4461. }
  4462. else if (value.type === 14 /* JS_CALL_EXPRESSION */) {
  4463. // some helper calls can be hoisted,
  4464. // such as the `normalizeProps` generated by the compiler for pre-normalize class,
  4465. // in this case we need to respect the ConstantType of the helper's arguments
  4466. valueType = getConstantTypeOfHelperCall(value, context);
  4467. }
  4468. else {
  4469. valueType = 0 /* NOT_CONSTANT */;
  4470. }
  4471. if (valueType === 0 /* NOT_CONSTANT */) {
  4472. return valueType;
  4473. }
  4474. if (valueType < returnType) {
  4475. returnType = valueType;
  4476. }
  4477. }
  4478. }
  4479. return returnType;
  4480. }
  4481. function getNodeProps(node) {
  4482. const codegenNode = node.codegenNode;
  4483. if (codegenNode.type === 13 /* VNODE_CALL */) {
  4484. return codegenNode.props;
  4485. }
  4486. }
  4487. function getPatchFlag(node) {
  4488. const flag = node.patchFlag;
  4489. return flag ? parseInt(flag, 10) : undefined;
  4490. }
  4491. function createTransformContext(root, { filename = '', prefixIdentifiers = false, hoistStatic = false, cacheHandlers = false, nodeTransforms = [], directiveTransforms = {}, transformHoist = null, isBuiltInComponent = _vue_shared__WEBPACK_IMPORTED_MODULE_0__.NOOP, isCustomElement = _vue_shared__WEBPACK_IMPORTED_MODULE_0__.NOOP, expressionPlugins = [], scopeId = null, slotted = true, ssr = false, inSSR = false, ssrCssVars = ``, bindingMetadata = _vue_shared__WEBPACK_IMPORTED_MODULE_0__.EMPTY_OBJ, inline = false, isTS = false, onError = defaultOnError, onWarn = defaultOnWarn, compatConfig }) {
  4492. const nameMatch = filename.replace(/\?.*$/, '').match(/([^/\\]+)\.\w+$/);
  4493. const context = {
  4494. // options
  4495. selfName: nameMatch && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.capitalize)((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.camelize)(nameMatch[1])),
  4496. prefixIdentifiers,
  4497. hoistStatic,
  4498. cacheHandlers,
  4499. nodeTransforms,
  4500. directiveTransforms,
  4501. transformHoist,
  4502. isBuiltInComponent,
  4503. isCustomElement,
  4504. expressionPlugins,
  4505. scopeId,
  4506. slotted,
  4507. ssr,
  4508. inSSR,
  4509. ssrCssVars,
  4510. bindingMetadata,
  4511. inline,
  4512. isTS,
  4513. onError,
  4514. onWarn,
  4515. compatConfig,
  4516. // state
  4517. root,
  4518. helpers: new Map(),
  4519. components: new Set(),
  4520. directives: new Set(),
  4521. hoists: [],
  4522. imports: [],
  4523. constantCache: new Map(),
  4524. temps: 0,
  4525. cached: 0,
  4526. identifiers: Object.create(null),
  4527. scopes: {
  4528. vFor: 0,
  4529. vSlot: 0,
  4530. vPre: 0,
  4531. vOnce: 0
  4532. },
  4533. parent: null,
  4534. currentNode: root,
  4535. childIndex: 0,
  4536. inVOnce: false,
  4537. // methods
  4538. helper(name) {
  4539. const count = context.helpers.get(name) || 0;
  4540. context.helpers.set(name, count + 1);
  4541. return name;
  4542. },
  4543. removeHelper(name) {
  4544. const count = context.helpers.get(name);
  4545. if (count) {
  4546. const currentCount = count - 1;
  4547. if (!currentCount) {
  4548. context.helpers.delete(name);
  4549. }
  4550. else {
  4551. context.helpers.set(name, currentCount);
  4552. }
  4553. }
  4554. },
  4555. helperString(name) {
  4556. return `_${helperNameMap[context.helper(name)]}`;
  4557. },
  4558. replaceNode(node) {
  4559. /* istanbul ignore if */
  4560. if ((true)) {
  4561. if (!context.currentNode) {
  4562. throw new Error(`Node being replaced is already removed.`);
  4563. }
  4564. if (!context.parent) {
  4565. throw new Error(`Cannot replace root node.`);
  4566. }
  4567. }
  4568. context.parent.children[context.childIndex] = context.currentNode = node;
  4569. },
  4570. removeNode(node) {
  4571. if (( true) && !context.parent) {
  4572. throw new Error(`Cannot remove root node.`);
  4573. }
  4574. const list = context.parent.children;
  4575. const removalIndex = node
  4576. ? list.indexOf(node)
  4577. : context.currentNode
  4578. ? context.childIndex
  4579. : -1;
  4580. /* istanbul ignore if */
  4581. if (( true) && removalIndex < 0) {
  4582. throw new Error(`node being removed is not a child of current parent`);
  4583. }
  4584. if (!node || node === context.currentNode) {
  4585. // current node removed
  4586. context.currentNode = null;
  4587. context.onNodeRemoved();
  4588. }
  4589. else {
  4590. // sibling node removed
  4591. if (context.childIndex > removalIndex) {
  4592. context.childIndex--;
  4593. context.onNodeRemoved();
  4594. }
  4595. }
  4596. context.parent.children.splice(removalIndex, 1);
  4597. },
  4598. onNodeRemoved: () => { },
  4599. addIdentifiers(exp) {
  4600. },
  4601. removeIdentifiers(exp) {
  4602. },
  4603. hoist(exp) {
  4604. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(exp))
  4605. exp = createSimpleExpression(exp);
  4606. context.hoists.push(exp);
  4607. const identifier = createSimpleExpression(`_hoisted_${context.hoists.length}`, false, exp.loc, 2 /* CAN_HOIST */);
  4608. identifier.hoisted = exp;
  4609. return identifier;
  4610. },
  4611. cache(exp, isVNode = false) {
  4612. return createCacheExpression(context.cached++, exp, isVNode);
  4613. }
  4614. };
  4615. {
  4616. context.filters = new Set();
  4617. }
  4618. return context;
  4619. }
  4620. function transform(root, options) {
  4621. const context = createTransformContext(root, options);
  4622. traverseNode(root, context);
  4623. if (options.hoistStatic) {
  4624. hoistStatic(root, context);
  4625. }
  4626. if (!options.ssr) {
  4627. createRootCodegen(root, context);
  4628. }
  4629. // finalize meta information
  4630. root.helpers = [...context.helpers.keys()];
  4631. root.components = [...context.components];
  4632. root.directives = [...context.directives];
  4633. root.imports = context.imports;
  4634. root.hoists = context.hoists;
  4635. root.temps = context.temps;
  4636. root.cached = context.cached;
  4637. {
  4638. root.filters = [...context.filters];
  4639. }
  4640. }
  4641. function createRootCodegen(root, context) {
  4642. const { helper } = context;
  4643. const { children } = root;
  4644. if (children.length === 1) {
  4645. const child = children[0];
  4646. // if the single child is an element, turn it into a block.
  4647. if (isSingleElementRoot(root, child) && child.codegenNode) {
  4648. // single element root is never hoisted so codegenNode will never be
  4649. // SimpleExpressionNode
  4650. const codegenNode = child.codegenNode;
  4651. if (codegenNode.type === 13 /* VNODE_CALL */) {
  4652. makeBlock(codegenNode, context);
  4653. }
  4654. root.codegenNode = codegenNode;
  4655. }
  4656. else {
  4657. // - single <slot/>, IfNode, ForNode: already blocks.
  4658. // - single text node: always patched.
  4659. // root codegen falls through via genNode()
  4660. root.codegenNode = child;
  4661. }
  4662. }
  4663. else if (children.length > 1) {
  4664. // root has multiple nodes - return a fragment block.
  4665. let patchFlag = 64 /* STABLE_FRAGMENT */;
  4666. let patchFlagText = _vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[64];
  4667. // check if the fragment actually contains a single valid child with
  4668. // the rest being comments
  4669. if (( true) &&
  4670. children.filter(c => c.type !== 3 /* COMMENT */).length === 1) {
  4671. patchFlag |= 2048 /* DEV_ROOT_FRAGMENT */;
  4672. patchFlagText += `, ${_vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[2048]}`;
  4673. }
  4674. root.codegenNode = createVNodeCall(context, helper(FRAGMENT), undefined, root.children, patchFlag + (( true) ? ` /* ${patchFlagText} */` : 0), undefined, undefined, true, undefined, false /* isComponent */);
  4675. }
  4676. else ;
  4677. }
  4678. function traverseChildren(parent, context) {
  4679. let i = 0;
  4680. const nodeRemoved = () => {
  4681. i--;
  4682. };
  4683. for (; i < parent.children.length; i++) {
  4684. const child = parent.children[i];
  4685. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(child))
  4686. continue;
  4687. context.parent = parent;
  4688. context.childIndex = i;
  4689. context.onNodeRemoved = nodeRemoved;
  4690. traverseNode(child, context);
  4691. }
  4692. }
  4693. function traverseNode(node, context) {
  4694. context.currentNode = node;
  4695. // apply transform plugins
  4696. const { nodeTransforms } = context;
  4697. const exitFns = [];
  4698. for (let i = 0; i < nodeTransforms.length; i++) {
  4699. const onExit = nodeTransforms[i](node, context);
  4700. if (onExit) {
  4701. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(onExit)) {
  4702. exitFns.push(...onExit);
  4703. }
  4704. else {
  4705. exitFns.push(onExit);
  4706. }
  4707. }
  4708. if (!context.currentNode) {
  4709. // node was removed
  4710. return;
  4711. }
  4712. else {
  4713. // node may have been replaced
  4714. node = context.currentNode;
  4715. }
  4716. }
  4717. switch (node.type) {
  4718. case 3 /* COMMENT */:
  4719. if (!context.ssr) {
  4720. // inject import for the Comment symbol, which is needed for creating
  4721. // comment nodes with `createVNode`
  4722. context.helper(CREATE_COMMENT);
  4723. }
  4724. break;
  4725. case 5 /* INTERPOLATION */:
  4726. // no need to traverse, but we need to inject toString helper
  4727. if (!context.ssr) {
  4728. context.helper(TO_DISPLAY_STRING);
  4729. }
  4730. break;
  4731. // for container types, further traverse downwards
  4732. case 9 /* IF */:
  4733. for (let i = 0; i < node.branches.length; i++) {
  4734. traverseNode(node.branches[i], context);
  4735. }
  4736. break;
  4737. case 10 /* IF_BRANCH */:
  4738. case 11 /* FOR */:
  4739. case 1 /* ELEMENT */:
  4740. case 0 /* ROOT */:
  4741. traverseChildren(node, context);
  4742. break;
  4743. }
  4744. // exit transforms
  4745. context.currentNode = node;
  4746. let i = exitFns.length;
  4747. while (i--) {
  4748. exitFns[i]();
  4749. }
  4750. }
  4751. function createStructuralDirectiveTransform(name, fn) {
  4752. const matches = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(name)
  4753. ? (n) => n === name
  4754. : (n) => name.test(n);
  4755. return (node, context) => {
  4756. if (node.type === 1 /* ELEMENT */) {
  4757. const { props } = node;
  4758. // structural directive transforms are not concerned with slots
  4759. // as they are handled separately in vSlot.ts
  4760. if (node.tagType === 3 /* TEMPLATE */ && props.some(isVSlot)) {
  4761. return;
  4762. }
  4763. const exitFns = [];
  4764. for (let i = 0; i < props.length; i++) {
  4765. const prop = props[i];
  4766. if (prop.type === 7 /* DIRECTIVE */ && matches(prop.name)) {
  4767. // structural directives are removed to avoid infinite recursion
  4768. // also we remove them *before* applying so that it can further
  4769. // traverse itself in case it moves the node around
  4770. props.splice(i, 1);
  4771. i--;
  4772. const onExit = fn(node, prop, context);
  4773. if (onExit)
  4774. exitFns.push(onExit);
  4775. }
  4776. }
  4777. return exitFns;
  4778. }
  4779. };
  4780. }
  4781. const PURE_ANNOTATION = `/*#__PURE__*/`;
  4782. function createCodegenContext(ast, { mode = 'function', prefixIdentifiers = mode === 'module', sourceMap = false, filename = `template.vue.html`, scopeId = null, optimizeImports = false, runtimeGlobalName = `Vue`, runtimeModuleName = `vue`, ssrRuntimeModuleName = 'vue/server-renderer', ssr = false, isTS = false, inSSR = false }) {
  4783. const context = {
  4784. mode,
  4785. prefixIdentifiers,
  4786. sourceMap,
  4787. filename,
  4788. scopeId,
  4789. optimizeImports,
  4790. runtimeGlobalName,
  4791. runtimeModuleName,
  4792. ssrRuntimeModuleName,
  4793. ssr,
  4794. isTS,
  4795. inSSR,
  4796. source: ast.loc.source,
  4797. code: ``,
  4798. column: 1,
  4799. line: 1,
  4800. offset: 0,
  4801. indentLevel: 0,
  4802. pure: false,
  4803. map: undefined,
  4804. helper(key) {
  4805. return `_${helperNameMap[key]}`;
  4806. },
  4807. push(code, node) {
  4808. context.code += code;
  4809. },
  4810. indent() {
  4811. newline(++context.indentLevel);
  4812. },
  4813. deindent(withoutNewLine = false) {
  4814. if (withoutNewLine) {
  4815. --context.indentLevel;
  4816. }
  4817. else {
  4818. newline(--context.indentLevel);
  4819. }
  4820. },
  4821. newline() {
  4822. newline(context.indentLevel);
  4823. }
  4824. };
  4825. function newline(n) {
  4826. context.push('\n' + ` `.repeat(n));
  4827. }
  4828. return context;
  4829. }
  4830. function generate(ast, options = {}) {
  4831. const context = createCodegenContext(ast, options);
  4832. if (options.onContextCreated)
  4833. options.onContextCreated(context);
  4834. const { mode, push, prefixIdentifiers, indent, deindent, newline, scopeId, ssr } = context;
  4835. const hasHelpers = ast.helpers.length > 0;
  4836. const useWithBlock = !prefixIdentifiers && mode !== 'module';
  4837. // preambles
  4838. // in setup() inline mode, the preamble is generated in a sub context
  4839. // and returned separately.
  4840. const preambleContext = context;
  4841. {
  4842. genFunctionPreamble(ast, preambleContext);
  4843. }
  4844. // enter render function
  4845. const functionName = ssr ? `ssrRender` : `render`;
  4846. const args = ssr ? ['_ctx', '_push', '_parent', '_attrs'] : ['_ctx', '_cache'];
  4847. const signature = args.join(', ');
  4848. {
  4849. push(`function ${functionName}(${signature}) {`);
  4850. }
  4851. indent();
  4852. if (useWithBlock) {
  4853. push(`with (_ctx) {`);
  4854. indent();
  4855. // function mode const declarations should be inside with block
  4856. // also they should be renamed to avoid collision with user properties
  4857. if (hasHelpers) {
  4858. push(`const { ${ast.helpers
  4859. .map(s => `${helperNameMap[s]}: _${helperNameMap[s]}`)
  4860. .join(', ')} } = _Vue`);
  4861. push(`\n`);
  4862. newline();
  4863. }
  4864. }
  4865. // generate asset resolution statements
  4866. if (ast.components.length) {
  4867. genAssets(ast.components, 'component', context);
  4868. if (ast.directives.length || ast.temps > 0) {
  4869. newline();
  4870. }
  4871. }
  4872. if (ast.directives.length) {
  4873. genAssets(ast.directives, 'directive', context);
  4874. if (ast.temps > 0) {
  4875. newline();
  4876. }
  4877. }
  4878. if (ast.filters && ast.filters.length) {
  4879. newline();
  4880. genAssets(ast.filters, 'filter', context);
  4881. newline();
  4882. }
  4883. if (ast.temps > 0) {
  4884. push(`let `);
  4885. for (let i = 0; i < ast.temps; i++) {
  4886. push(`${i > 0 ? `, ` : ``}_temp${i}`);
  4887. }
  4888. }
  4889. if (ast.components.length || ast.directives.length || ast.temps) {
  4890. push(`\n`);
  4891. newline();
  4892. }
  4893. // generate the VNode tree expression
  4894. if (!ssr) {
  4895. push(`return `);
  4896. }
  4897. if (ast.codegenNode) {
  4898. genNode(ast.codegenNode, context);
  4899. }
  4900. else {
  4901. push(`null`);
  4902. }
  4903. if (useWithBlock) {
  4904. deindent();
  4905. push(`}`);
  4906. }
  4907. deindent();
  4908. push(`}`);
  4909. return {
  4910. ast,
  4911. code: context.code,
  4912. preamble: ``,
  4913. // SourceMapGenerator does have toJSON() method but it's not in the types
  4914. map: context.map ? context.map.toJSON() : undefined
  4915. };
  4916. }
  4917. function genFunctionPreamble(ast, context) {
  4918. const { ssr, prefixIdentifiers, push, newline, runtimeModuleName, runtimeGlobalName, ssrRuntimeModuleName } = context;
  4919. const VueBinding = runtimeGlobalName;
  4920. const aliasHelper = (s) => `${helperNameMap[s]}: _${helperNameMap[s]}`;
  4921. // Generate const declaration for helpers
  4922. // In prefix mode, we place the const declaration at top so it's done
  4923. // only once; But if we not prefixing, we place the declaration inside the
  4924. // with block so it doesn't incur the `in` check cost for every helper access.
  4925. if (ast.helpers.length > 0) {
  4926. {
  4927. // "with" mode.
  4928. // save Vue in a separate variable to avoid collision
  4929. push(`const _Vue = ${VueBinding}\n`);
  4930. // in "with" mode, helpers are declared inside the with block to avoid
  4931. // has check cost, but hoists are lifted out of the function - we need
  4932. // to provide the helper here.
  4933. if (ast.hoists.length) {
  4934. const staticHelpers = [
  4935. CREATE_VNODE,
  4936. CREATE_ELEMENT_VNODE,
  4937. CREATE_COMMENT,
  4938. CREATE_TEXT,
  4939. CREATE_STATIC
  4940. ]
  4941. .filter(helper => ast.helpers.includes(helper))
  4942. .map(aliasHelper)
  4943. .join(', ');
  4944. push(`const { ${staticHelpers} } = _Vue\n`);
  4945. }
  4946. }
  4947. }
  4948. genHoists(ast.hoists, context);
  4949. newline();
  4950. push(`return `);
  4951. }
  4952. function genAssets(assets, type, { helper, push, newline, isTS }) {
  4953. const resolver = helper(type === 'filter'
  4954. ? RESOLVE_FILTER
  4955. : type === 'component'
  4956. ? RESOLVE_COMPONENT
  4957. : RESOLVE_DIRECTIVE);
  4958. for (let i = 0; i < assets.length; i++) {
  4959. let id = assets[i];
  4960. // potential component implicit self-reference inferred from SFC filename
  4961. const maybeSelfReference = id.endsWith('__self');
  4962. if (maybeSelfReference) {
  4963. id = id.slice(0, -6);
  4964. }
  4965. push(`const ${toValidAssetId(id, type)} = ${resolver}(${JSON.stringify(id)}${maybeSelfReference ? `, true` : ``})${isTS ? `!` : ``}`);
  4966. if (i < assets.length - 1) {
  4967. newline();
  4968. }
  4969. }
  4970. }
  4971. function genHoists(hoists, context) {
  4972. if (!hoists.length) {
  4973. return;
  4974. }
  4975. context.pure = true;
  4976. const { push, newline, helper, scopeId, mode } = context;
  4977. newline();
  4978. for (let i = 0; i < hoists.length; i++) {
  4979. const exp = hoists[i];
  4980. if (exp) {
  4981. push(`const _hoisted_${i + 1} = ${``}`);
  4982. genNode(exp, context);
  4983. newline();
  4984. }
  4985. }
  4986. context.pure = false;
  4987. }
  4988. function isText$1(n) {
  4989. return ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(n) ||
  4990. n.type === 4 /* SIMPLE_EXPRESSION */ ||
  4991. n.type === 2 /* TEXT */ ||
  4992. n.type === 5 /* INTERPOLATION */ ||
  4993. n.type === 8 /* COMPOUND_EXPRESSION */);
  4994. }
  4995. function genNodeListAsArray(nodes, context) {
  4996. const multilines = nodes.length > 3 ||
  4997. ((( true)) && nodes.some(n => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(n) || !isText$1(n)));
  4998. context.push(`[`);
  4999. multilines && context.indent();
  5000. genNodeList(nodes, context, multilines);
  5001. multilines && context.deindent();
  5002. context.push(`]`);
  5003. }
  5004. function genNodeList(nodes, context, multilines = false, comma = true) {
  5005. const { push, newline } = context;
  5006. for (let i = 0; i < nodes.length; i++) {
  5007. const node = nodes[i];
  5008. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(node)) {
  5009. push(node);
  5010. }
  5011. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(node)) {
  5012. genNodeListAsArray(node, context);
  5013. }
  5014. else {
  5015. genNode(node, context);
  5016. }
  5017. if (i < nodes.length - 1) {
  5018. if (multilines) {
  5019. comma && push(',');
  5020. newline();
  5021. }
  5022. else {
  5023. comma && push(', ');
  5024. }
  5025. }
  5026. }
  5027. }
  5028. function genNode(node, context) {
  5029. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(node)) {
  5030. context.push(node);
  5031. return;
  5032. }
  5033. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isSymbol)(node)) {
  5034. context.push(context.helper(node));
  5035. return;
  5036. }
  5037. switch (node.type) {
  5038. case 1 /* ELEMENT */:
  5039. case 9 /* IF */:
  5040. case 11 /* FOR */:
  5041. ( true) &&
  5042. assert(node.codegenNode != null, `Codegen node is missing for element/if/for node. ` +
  5043. `Apply appropriate transforms first.`);
  5044. genNode(node.codegenNode, context);
  5045. break;
  5046. case 2 /* TEXT */:
  5047. genText(node, context);
  5048. break;
  5049. case 4 /* SIMPLE_EXPRESSION */:
  5050. genExpression(node, context);
  5051. break;
  5052. case 5 /* INTERPOLATION */:
  5053. genInterpolation(node, context);
  5054. break;
  5055. case 12 /* TEXT_CALL */:
  5056. genNode(node.codegenNode, context);
  5057. break;
  5058. case 8 /* COMPOUND_EXPRESSION */:
  5059. genCompoundExpression(node, context);
  5060. break;
  5061. case 3 /* COMMENT */:
  5062. genComment(node, context);
  5063. break;
  5064. case 13 /* VNODE_CALL */:
  5065. genVNodeCall(node, context);
  5066. break;
  5067. case 14 /* JS_CALL_EXPRESSION */:
  5068. genCallExpression(node, context);
  5069. break;
  5070. case 15 /* JS_OBJECT_EXPRESSION */:
  5071. genObjectExpression(node, context);
  5072. break;
  5073. case 17 /* JS_ARRAY_EXPRESSION */:
  5074. genArrayExpression(node, context);
  5075. break;
  5076. case 18 /* JS_FUNCTION_EXPRESSION */:
  5077. genFunctionExpression(node, context);
  5078. break;
  5079. case 19 /* JS_CONDITIONAL_EXPRESSION */:
  5080. genConditionalExpression(node, context);
  5081. break;
  5082. case 20 /* JS_CACHE_EXPRESSION */:
  5083. genCacheExpression(node, context);
  5084. break;
  5085. case 21 /* JS_BLOCK_STATEMENT */:
  5086. genNodeList(node.body, context, true, false);
  5087. break;
  5088. // SSR only types
  5089. case 22 /* JS_TEMPLATE_LITERAL */:
  5090. break;
  5091. case 23 /* JS_IF_STATEMENT */:
  5092. break;
  5093. case 24 /* JS_ASSIGNMENT_EXPRESSION */:
  5094. break;
  5095. case 25 /* JS_SEQUENCE_EXPRESSION */:
  5096. break;
  5097. case 26 /* JS_RETURN_STATEMENT */:
  5098. break;
  5099. /* istanbul ignore next */
  5100. case 10 /* IF_BRANCH */:
  5101. // noop
  5102. break;
  5103. default:
  5104. if ((true)) {
  5105. assert(false, `unhandled codegen node type: ${node.type}`);
  5106. // make sure we exhaust all possible types
  5107. const exhaustiveCheck = node;
  5108. return exhaustiveCheck;
  5109. }
  5110. }
  5111. }
  5112. function genText(node, context) {
  5113. context.push(JSON.stringify(node.content), node);
  5114. }
  5115. function genExpression(node, context) {
  5116. const { content, isStatic } = node;
  5117. context.push(isStatic ? JSON.stringify(content) : content, node);
  5118. }
  5119. function genInterpolation(node, context) {
  5120. const { push, helper, pure } = context;
  5121. if (pure)
  5122. push(PURE_ANNOTATION);
  5123. push(`${helper(TO_DISPLAY_STRING)}(`);
  5124. genNode(node.content, context);
  5125. push(`)`);
  5126. }
  5127. function genCompoundExpression(node, context) {
  5128. for (let i = 0; i < node.children.length; i++) {
  5129. const child = node.children[i];
  5130. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(child)) {
  5131. context.push(child);
  5132. }
  5133. else {
  5134. genNode(child, context);
  5135. }
  5136. }
  5137. }
  5138. function genExpressionAsPropertyKey(node, context) {
  5139. const { push } = context;
  5140. if (node.type === 8 /* COMPOUND_EXPRESSION */) {
  5141. push(`[`);
  5142. genCompoundExpression(node, context);
  5143. push(`]`);
  5144. }
  5145. else if (node.isStatic) {
  5146. // only quote keys if necessary
  5147. const text = isSimpleIdentifier(node.content)
  5148. ? node.content
  5149. : JSON.stringify(node.content);
  5150. push(text, node);
  5151. }
  5152. else {
  5153. push(`[${node.content}]`, node);
  5154. }
  5155. }
  5156. function genComment(node, context) {
  5157. const { push, helper, pure } = context;
  5158. if (pure) {
  5159. push(PURE_ANNOTATION);
  5160. }
  5161. push(`${helper(CREATE_COMMENT)}(${JSON.stringify(node.content)})`, node);
  5162. }
  5163. function genVNodeCall(node, context) {
  5164. const { push, helper, pure } = context;
  5165. const { tag, props, children, patchFlag, dynamicProps, directives, isBlock, disableTracking, isComponent } = node;
  5166. if (directives) {
  5167. push(helper(WITH_DIRECTIVES) + `(`);
  5168. }
  5169. if (isBlock) {
  5170. push(`(${helper(OPEN_BLOCK)}(${disableTracking ? `true` : ``}), `);
  5171. }
  5172. if (pure) {
  5173. push(PURE_ANNOTATION);
  5174. }
  5175. const callHelper = isBlock
  5176. ? getVNodeBlockHelper(context.inSSR, isComponent)
  5177. : getVNodeHelper(context.inSSR, isComponent);
  5178. push(helper(callHelper) + `(`, node);
  5179. genNodeList(genNullableArgs([tag, props, children, patchFlag, dynamicProps]), context);
  5180. push(`)`);
  5181. if (isBlock) {
  5182. push(`)`);
  5183. }
  5184. if (directives) {
  5185. push(`, `);
  5186. genNode(directives, context);
  5187. push(`)`);
  5188. }
  5189. }
  5190. function genNullableArgs(args) {
  5191. let i = args.length;
  5192. while (i--) {
  5193. if (args[i] != null)
  5194. break;
  5195. }
  5196. return args.slice(0, i + 1).map(arg => arg || `null`);
  5197. }
  5198. // JavaScript
  5199. function genCallExpression(node, context) {
  5200. const { push, helper, pure } = context;
  5201. const callee = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(node.callee) ? node.callee : helper(node.callee);
  5202. if (pure) {
  5203. push(PURE_ANNOTATION);
  5204. }
  5205. push(callee + `(`, node);
  5206. genNodeList(node.arguments, context);
  5207. push(`)`);
  5208. }
  5209. function genObjectExpression(node, context) {
  5210. const { push, indent, deindent, newline } = context;
  5211. const { properties } = node;
  5212. if (!properties.length) {
  5213. push(`{}`, node);
  5214. return;
  5215. }
  5216. const multilines = properties.length > 1 ||
  5217. ((( true)) &&
  5218. properties.some(p => p.value.type !== 4 /* SIMPLE_EXPRESSION */));
  5219. push(multilines ? `{` : `{ `);
  5220. multilines && indent();
  5221. for (let i = 0; i < properties.length; i++) {
  5222. const { key, value } = properties[i];
  5223. // key
  5224. genExpressionAsPropertyKey(key, context);
  5225. push(`: `);
  5226. // value
  5227. genNode(value, context);
  5228. if (i < properties.length - 1) {
  5229. // will only reach this if it's multilines
  5230. push(`,`);
  5231. newline();
  5232. }
  5233. }
  5234. multilines && deindent();
  5235. push(multilines ? `}` : ` }`);
  5236. }
  5237. function genArrayExpression(node, context) {
  5238. genNodeListAsArray(node.elements, context);
  5239. }
  5240. function genFunctionExpression(node, context) {
  5241. const { push, indent, deindent } = context;
  5242. const { params, returns, body, newline, isSlot } = node;
  5243. if (isSlot) {
  5244. // wrap slot functions with owner context
  5245. push(`_${helperNameMap[WITH_CTX]}(`);
  5246. }
  5247. push(`(`, node);
  5248. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(params)) {
  5249. genNodeList(params, context);
  5250. }
  5251. else if (params) {
  5252. genNode(params, context);
  5253. }
  5254. push(`) => `);
  5255. if (newline || body) {
  5256. push(`{`);
  5257. indent();
  5258. }
  5259. if (returns) {
  5260. if (newline) {
  5261. push(`return `);
  5262. }
  5263. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(returns)) {
  5264. genNodeListAsArray(returns, context);
  5265. }
  5266. else {
  5267. genNode(returns, context);
  5268. }
  5269. }
  5270. else if (body) {
  5271. genNode(body, context);
  5272. }
  5273. if (newline || body) {
  5274. deindent();
  5275. push(`}`);
  5276. }
  5277. if (isSlot) {
  5278. if (node.isNonScopedSlot) {
  5279. push(`, undefined, true`);
  5280. }
  5281. push(`)`);
  5282. }
  5283. }
  5284. function genConditionalExpression(node, context) {
  5285. const { test, consequent, alternate, newline: needNewline } = node;
  5286. const { push, indent, deindent, newline } = context;
  5287. if (test.type === 4 /* SIMPLE_EXPRESSION */) {
  5288. const needsParens = !isSimpleIdentifier(test.content);
  5289. needsParens && push(`(`);
  5290. genExpression(test, context);
  5291. needsParens && push(`)`);
  5292. }
  5293. else {
  5294. push(`(`);
  5295. genNode(test, context);
  5296. push(`)`);
  5297. }
  5298. needNewline && indent();
  5299. context.indentLevel++;
  5300. needNewline || push(` `);
  5301. push(`? `);
  5302. genNode(consequent, context);
  5303. context.indentLevel--;
  5304. needNewline && newline();
  5305. needNewline || push(` `);
  5306. push(`: `);
  5307. const isNested = alternate.type === 19 /* JS_CONDITIONAL_EXPRESSION */;
  5308. if (!isNested) {
  5309. context.indentLevel++;
  5310. }
  5311. genNode(alternate, context);
  5312. if (!isNested) {
  5313. context.indentLevel--;
  5314. }
  5315. needNewline && deindent(true /* without newline */);
  5316. }
  5317. function genCacheExpression(node, context) {
  5318. const { push, helper, indent, deindent, newline } = context;
  5319. push(`_cache[${node.index}] || (`);
  5320. if (node.isVNode) {
  5321. indent();
  5322. push(`${helper(SET_BLOCK_TRACKING)}(-1),`);
  5323. newline();
  5324. }
  5325. push(`_cache[${node.index}] = `);
  5326. genNode(node.value, context);
  5327. if (node.isVNode) {
  5328. push(`,`);
  5329. newline();
  5330. push(`${helper(SET_BLOCK_TRACKING)}(1),`);
  5331. newline();
  5332. push(`_cache[${node.index}]`);
  5333. deindent();
  5334. }
  5335. push(`)`);
  5336. }
  5337. function walkIdentifiers(root, onIdentifier, includeAll = false, parentStack = [], knownIds = Object.create(null)) {
  5338. {
  5339. return;
  5340. }
  5341. }
  5342. function isReferencedIdentifier(id, parent, parentStack) {
  5343. {
  5344. return false;
  5345. }
  5346. }
  5347. function isInDestructureAssignment(parent, parentStack) {
  5348. if (parent &&
  5349. (parent.type === 'ObjectProperty' || parent.type === 'ArrayPattern')) {
  5350. let i = parentStack.length;
  5351. while (i--) {
  5352. const p = parentStack[i];
  5353. if (p.type === 'AssignmentExpression') {
  5354. return true;
  5355. }
  5356. else if (p.type !== 'ObjectProperty' && !p.type.endsWith('Pattern')) {
  5357. break;
  5358. }
  5359. }
  5360. }
  5361. return false;
  5362. }
  5363. function walkFunctionParams(node, onIdent) {
  5364. for (const p of node.params) {
  5365. for (const id of extractIdentifiers(p)) {
  5366. onIdent(id);
  5367. }
  5368. }
  5369. }
  5370. function walkBlockDeclarations(block, onIdent) {
  5371. for (const stmt of block.body) {
  5372. if (stmt.type === 'VariableDeclaration') {
  5373. if (stmt.declare)
  5374. continue;
  5375. for (const decl of stmt.declarations) {
  5376. for (const id of extractIdentifiers(decl.id)) {
  5377. onIdent(id);
  5378. }
  5379. }
  5380. }
  5381. else if (stmt.type === 'FunctionDeclaration' ||
  5382. stmt.type === 'ClassDeclaration') {
  5383. if (stmt.declare || !stmt.id)
  5384. continue;
  5385. onIdent(stmt.id);
  5386. }
  5387. }
  5388. }
  5389. function extractIdentifiers(param, nodes = []) {
  5390. switch (param.type) {
  5391. case 'Identifier':
  5392. nodes.push(param);
  5393. break;
  5394. case 'MemberExpression':
  5395. let object = param;
  5396. while (object.type === 'MemberExpression') {
  5397. object = object.object;
  5398. }
  5399. nodes.push(object);
  5400. break;
  5401. case 'ObjectPattern':
  5402. for (const prop of param.properties) {
  5403. if (prop.type === 'RestElement') {
  5404. extractIdentifiers(prop.argument, nodes);
  5405. }
  5406. else {
  5407. extractIdentifiers(prop.value, nodes);
  5408. }
  5409. }
  5410. break;
  5411. case 'ArrayPattern':
  5412. param.elements.forEach(element => {
  5413. if (element)
  5414. extractIdentifiers(element, nodes);
  5415. });
  5416. break;
  5417. case 'RestElement':
  5418. extractIdentifiers(param.argument, nodes);
  5419. break;
  5420. case 'AssignmentPattern':
  5421. extractIdentifiers(param.left, nodes);
  5422. break;
  5423. }
  5424. return nodes;
  5425. }
  5426. const isFunctionType = (node) => {
  5427. return /Function(?:Expression|Declaration)$|Method$/.test(node.type);
  5428. };
  5429. const isStaticProperty = (node) => node &&
  5430. (node.type === 'ObjectProperty' || node.type === 'ObjectMethod') &&
  5431. !node.computed;
  5432. const isStaticPropertyKey = (node, parent) => isStaticProperty(parent) && parent.key === node;
  5433. // these keywords should not appear inside expressions, but operators like
  5434. // typeof, instanceof and in are allowed
  5435. const prohibitedKeywordRE = new RegExp('\\b' +
  5436. ('do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,' +
  5437. 'super,throw,while,yield,delete,export,import,return,switch,default,' +
  5438. 'extends,finally,continue,debugger,function,arguments,typeof,void')
  5439. .split(',')
  5440. .join('\\b|\\b') +
  5441. '\\b');
  5442. // strip strings in expressions
  5443. const stripStringRE = /'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;
  5444. /**
  5445. * Validate a non-prefixed expression.
  5446. * This is only called when using the in-browser runtime compiler since it
  5447. * doesn't prefix expressions.
  5448. */
  5449. function validateBrowserExpression(node, context, asParams = false, asRawStatements = false) {
  5450. const exp = node.content;
  5451. // empty expressions are validated per-directive since some directives
  5452. // do allow empty expressions.
  5453. if (!exp.trim()) {
  5454. return;
  5455. }
  5456. try {
  5457. new Function(asRawStatements
  5458. ? ` ${exp} `
  5459. : `return ${asParams ? `(${exp}) => {}` : `(${exp})`}`);
  5460. }
  5461. catch (e) {
  5462. let message = e.message;
  5463. const keywordMatch = exp
  5464. .replace(stripStringRE, '')
  5465. .match(prohibitedKeywordRE);
  5466. if (keywordMatch) {
  5467. message = `avoid using JavaScript keyword as property name: "${keywordMatch[0]}"`;
  5468. }
  5469. context.onError(createCompilerError(44 /* X_INVALID_EXPRESSION */, node.loc, undefined, message));
  5470. }
  5471. }
  5472. const transformExpression = (node, context) => {
  5473. if (node.type === 5 /* INTERPOLATION */) {
  5474. node.content = processExpression(node.content, context);
  5475. }
  5476. else if (node.type === 1 /* ELEMENT */) {
  5477. // handle directives on element
  5478. for (let i = 0; i < node.props.length; i++) {
  5479. const dir = node.props[i];
  5480. // do not process for v-on & v-for since they are special handled
  5481. if (dir.type === 7 /* DIRECTIVE */ && dir.name !== 'for') {
  5482. const exp = dir.exp;
  5483. const arg = dir.arg;
  5484. // do not process exp if this is v-on:arg - we need special handling
  5485. // for wrapping inline statements.
  5486. if (exp &&
  5487. exp.type === 4 /* SIMPLE_EXPRESSION */ &&
  5488. !(dir.name === 'on' && arg)) {
  5489. dir.exp = processExpression(exp, context,
  5490. // slot args must be processed as function params
  5491. dir.name === 'slot');
  5492. }
  5493. if (arg && arg.type === 4 /* SIMPLE_EXPRESSION */ && !arg.isStatic) {
  5494. dir.arg = processExpression(arg, context);
  5495. }
  5496. }
  5497. }
  5498. }
  5499. };
  5500. // Important: since this function uses Node.js only dependencies, it should
  5501. // always be used with a leading !true check so that it can be
  5502. // tree-shaken from the browser build.
  5503. function processExpression(node, context,
  5504. // some expressions like v-slot props & v-for aliases should be parsed as
  5505. // function params
  5506. asParams = false,
  5507. // v-on handler values may contain multiple statements
  5508. asRawStatements = false, localVars = Object.create(context.identifiers)) {
  5509. {
  5510. if ((true)) {
  5511. // simple in-browser validation (same logic in 2.x)
  5512. validateBrowserExpression(node, context, asParams, asRawStatements);
  5513. }
  5514. return node;
  5515. }
  5516. }
  5517. const transformIf = createStructuralDirectiveTransform(/^(if|else|else-if)$/, (node, dir, context) => {
  5518. return processIf(node, dir, context, (ifNode, branch, isRoot) => {
  5519. // #1587: We need to dynamically increment the key based on the current
  5520. // node's sibling nodes, since chained v-if/else branches are
  5521. // rendered at the same depth
  5522. const siblings = context.parent.children;
  5523. let i = siblings.indexOf(ifNode);
  5524. let key = 0;
  5525. while (i-- >= 0) {
  5526. const sibling = siblings[i];
  5527. if (sibling && sibling.type === 9 /* IF */) {
  5528. key += sibling.branches.length;
  5529. }
  5530. }
  5531. // Exit callback. Complete the codegenNode when all children have been
  5532. // transformed.
  5533. return () => {
  5534. if (isRoot) {
  5535. ifNode.codegenNode = createCodegenNodeForBranch(branch, key, context);
  5536. }
  5537. else {
  5538. // attach this branch's codegen node to the v-if root.
  5539. const parentCondition = getParentCondition(ifNode.codegenNode);
  5540. parentCondition.alternate = createCodegenNodeForBranch(branch, key + ifNode.branches.length - 1, context);
  5541. }
  5542. };
  5543. });
  5544. });
  5545. // target-agnostic transform used for both Client and SSR
  5546. function processIf(node, dir, context, processCodegen) {
  5547. if (dir.name !== 'else' &&
  5548. (!dir.exp || !dir.exp.content.trim())) {
  5549. const loc = dir.exp ? dir.exp.loc : node.loc;
  5550. context.onError(createCompilerError(28 /* X_V_IF_NO_EXPRESSION */, dir.loc));
  5551. dir.exp = createSimpleExpression(`true`, false, loc);
  5552. }
  5553. if ( true && dir.exp) {
  5554. validateBrowserExpression(dir.exp, context);
  5555. }
  5556. if (dir.name === 'if') {
  5557. const branch = createIfBranch(node, dir);
  5558. const ifNode = {
  5559. type: 9 /* IF */,
  5560. loc: node.loc,
  5561. branches: [branch]
  5562. };
  5563. context.replaceNode(ifNode);
  5564. if (processCodegen) {
  5565. return processCodegen(ifNode, branch, true);
  5566. }
  5567. }
  5568. else {
  5569. // locate the adjacent v-if
  5570. const siblings = context.parent.children;
  5571. const comments = [];
  5572. let i = siblings.indexOf(node);
  5573. while (i-- >= -1) {
  5574. const sibling = siblings[i];
  5575. if (( true) && sibling && sibling.type === 3 /* COMMENT */) {
  5576. context.removeNode(sibling);
  5577. comments.unshift(sibling);
  5578. continue;
  5579. }
  5580. if (sibling &&
  5581. sibling.type === 2 /* TEXT */ &&
  5582. !sibling.content.trim().length) {
  5583. context.removeNode(sibling);
  5584. continue;
  5585. }
  5586. if (sibling && sibling.type === 9 /* IF */) {
  5587. // Check if v-else was followed by v-else-if
  5588. if (dir.name === 'else-if' &&
  5589. sibling.branches[sibling.branches.length - 1].condition === undefined) {
  5590. context.onError(createCompilerError(30 /* X_V_ELSE_NO_ADJACENT_IF */, node.loc));
  5591. }
  5592. // move the node to the if node's branches
  5593. context.removeNode();
  5594. const branch = createIfBranch(node, dir);
  5595. if (( true) &&
  5596. comments.length &&
  5597. // #3619 ignore comments if the v-if is direct child of <transition>
  5598. !(context.parent &&
  5599. context.parent.type === 1 /* ELEMENT */ &&
  5600. isBuiltInType(context.parent.tag, 'transition'))) {
  5601. branch.children = [...comments, ...branch.children];
  5602. }
  5603. // check if user is forcing same key on different branches
  5604. if (true) {
  5605. const key = branch.userKey;
  5606. if (key) {
  5607. sibling.branches.forEach(({ userKey }) => {
  5608. if (isSameKey(userKey, key)) {
  5609. context.onError(createCompilerError(29 /* X_V_IF_SAME_KEY */, branch.userKey.loc));
  5610. }
  5611. });
  5612. }
  5613. }
  5614. sibling.branches.push(branch);
  5615. const onExit = processCodegen && processCodegen(sibling, branch, false);
  5616. // since the branch was removed, it will not be traversed.
  5617. // make sure to traverse here.
  5618. traverseNode(branch, context);
  5619. // call on exit
  5620. if (onExit)
  5621. onExit();
  5622. // make sure to reset currentNode after traversal to indicate this
  5623. // node has been removed.
  5624. context.currentNode = null;
  5625. }
  5626. else {
  5627. context.onError(createCompilerError(30 /* X_V_ELSE_NO_ADJACENT_IF */, node.loc));
  5628. }
  5629. break;
  5630. }
  5631. }
  5632. }
  5633. function createIfBranch(node, dir) {
  5634. return {
  5635. type: 10 /* IF_BRANCH */,
  5636. loc: node.loc,
  5637. condition: dir.name === 'else' ? undefined : dir.exp,
  5638. children: node.tagType === 3 /* TEMPLATE */ && !findDir(node, 'for')
  5639. ? node.children
  5640. : [node],
  5641. userKey: findProp(node, `key`)
  5642. };
  5643. }
  5644. function createCodegenNodeForBranch(branch, keyIndex, context) {
  5645. if (branch.condition) {
  5646. return createConditionalExpression(branch.condition, createChildrenCodegenNode(branch, keyIndex, context),
  5647. // make sure to pass in asBlock: true so that the comment node call
  5648. // closes the current block.
  5649. createCallExpression(context.helper(CREATE_COMMENT), [
  5650. ( true) ? '"v-if"' : 0,
  5651. 'true'
  5652. ]));
  5653. }
  5654. else {
  5655. return createChildrenCodegenNode(branch, keyIndex, context);
  5656. }
  5657. }
  5658. function createChildrenCodegenNode(branch, keyIndex, context) {
  5659. const { helper } = context;
  5660. const keyProperty = createObjectProperty(`key`, createSimpleExpression(`${keyIndex}`, false, locStub, 2 /* CAN_HOIST */));
  5661. const { children } = branch;
  5662. const firstChild = children[0];
  5663. const needFragmentWrapper = children.length !== 1 || firstChild.type !== 1 /* ELEMENT */;
  5664. if (needFragmentWrapper) {
  5665. if (children.length === 1 && firstChild.type === 11 /* FOR */) {
  5666. // optimize away nested fragments when child is a ForNode
  5667. const vnodeCall = firstChild.codegenNode;
  5668. injectProp(vnodeCall, keyProperty, context);
  5669. return vnodeCall;
  5670. }
  5671. else {
  5672. let patchFlag = 64 /* STABLE_FRAGMENT */;
  5673. let patchFlagText = _vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[64];
  5674. // check if the fragment actually contains a single valid child with
  5675. // the rest being comments
  5676. if (( true) &&
  5677. children.filter(c => c.type !== 3 /* COMMENT */).length === 1) {
  5678. patchFlag |= 2048 /* DEV_ROOT_FRAGMENT */;
  5679. patchFlagText += `, ${_vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[2048]}`;
  5680. }
  5681. return createVNodeCall(context, helper(FRAGMENT), createObjectExpression([keyProperty]), children, patchFlag + (( true) ? ` /* ${patchFlagText} */` : 0), undefined, undefined, true, false, false /* isComponent */, branch.loc);
  5682. }
  5683. }
  5684. else {
  5685. const ret = firstChild.codegenNode;
  5686. const vnodeCall = getMemoedVNodeCall(ret);
  5687. // Change createVNode to createBlock.
  5688. if (vnodeCall.type === 13 /* VNODE_CALL */) {
  5689. makeBlock(vnodeCall, context);
  5690. }
  5691. // inject branch key
  5692. injectProp(vnodeCall, keyProperty, context);
  5693. return ret;
  5694. }
  5695. }
  5696. function isSameKey(a, b) {
  5697. if (!a || a.type !== b.type) {
  5698. return false;
  5699. }
  5700. if (a.type === 6 /* ATTRIBUTE */) {
  5701. if (a.value.content !== b.value.content) {
  5702. return false;
  5703. }
  5704. }
  5705. else {
  5706. // directive
  5707. const exp = a.exp;
  5708. const branchExp = b.exp;
  5709. if (exp.type !== branchExp.type) {
  5710. return false;
  5711. }
  5712. if (exp.type !== 4 /* SIMPLE_EXPRESSION */ ||
  5713. exp.isStatic !== branchExp.isStatic ||
  5714. exp.content !== branchExp.content) {
  5715. return false;
  5716. }
  5717. }
  5718. return true;
  5719. }
  5720. function getParentCondition(node) {
  5721. while (true) {
  5722. if (node.type === 19 /* JS_CONDITIONAL_EXPRESSION */) {
  5723. if (node.alternate.type === 19 /* JS_CONDITIONAL_EXPRESSION */) {
  5724. node = node.alternate;
  5725. }
  5726. else {
  5727. return node;
  5728. }
  5729. }
  5730. else if (node.type === 20 /* JS_CACHE_EXPRESSION */) {
  5731. node = node.value;
  5732. }
  5733. }
  5734. }
  5735. const transformFor = createStructuralDirectiveTransform('for', (node, dir, context) => {
  5736. const { helper, removeHelper } = context;
  5737. return processFor(node, dir, context, forNode => {
  5738. // create the loop render function expression now, and add the
  5739. // iterator on exit after all children have been traversed
  5740. const renderExp = createCallExpression(helper(RENDER_LIST), [
  5741. forNode.source
  5742. ]);
  5743. const isTemplate = isTemplateNode(node);
  5744. const memo = findDir(node, 'memo');
  5745. const keyProp = findProp(node, `key`);
  5746. const keyExp = keyProp &&
  5747. (keyProp.type === 6 /* ATTRIBUTE */
  5748. ? createSimpleExpression(keyProp.value.content, true)
  5749. : keyProp.exp);
  5750. const keyProperty = keyProp ? createObjectProperty(`key`, keyExp) : null;
  5751. const isStableFragment = forNode.source.type === 4 /* SIMPLE_EXPRESSION */ &&
  5752. forNode.source.constType > 0 /* NOT_CONSTANT */;
  5753. const fragmentFlag = isStableFragment
  5754. ? 64 /* STABLE_FRAGMENT */
  5755. : keyProp
  5756. ? 128 /* KEYED_FRAGMENT */
  5757. : 256 /* UNKEYED_FRAGMENT */;
  5758. forNode.codegenNode = createVNodeCall(context, helper(FRAGMENT), undefined, renderExp, fragmentFlag +
  5759. (( true) ? ` /* ${_vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[fragmentFlag]} */` : 0), undefined, undefined, true /* isBlock */, !isStableFragment /* disableTracking */, false /* isComponent */, node.loc);
  5760. return () => {
  5761. // finish the codegen now that all children have been traversed
  5762. let childBlock;
  5763. const { children } = forNode;
  5764. // check <template v-for> key placement
  5765. if (( true) && isTemplate) {
  5766. node.children.some(c => {
  5767. if (c.type === 1 /* ELEMENT */) {
  5768. const key = findProp(c, 'key');
  5769. if (key) {
  5770. context.onError(createCompilerError(33 /* X_V_FOR_TEMPLATE_KEY_PLACEMENT */, key.loc));
  5771. return true;
  5772. }
  5773. }
  5774. });
  5775. }
  5776. const needFragmentWrapper = children.length !== 1 || children[0].type !== 1 /* ELEMENT */;
  5777. const slotOutlet = isSlotOutlet(node)
  5778. ? node
  5779. : isTemplate &&
  5780. node.children.length === 1 &&
  5781. isSlotOutlet(node.children[0])
  5782. ? node.children[0] // api-extractor somehow fails to infer this
  5783. : null;
  5784. if (slotOutlet) {
  5785. // <slot v-for="..."> or <template v-for="..."><slot/></template>
  5786. childBlock = slotOutlet.codegenNode;
  5787. if (isTemplate && keyProperty) {
  5788. // <template v-for="..." :key="..."><slot/></template>
  5789. // we need to inject the key to the renderSlot() call.
  5790. // the props for renderSlot is passed as the 3rd argument.
  5791. injectProp(childBlock, keyProperty, context);
  5792. }
  5793. }
  5794. else if (needFragmentWrapper) {
  5795. // <template v-for="..."> with text or multi-elements
  5796. // should generate a fragment block for each loop
  5797. childBlock = createVNodeCall(context, helper(FRAGMENT), keyProperty ? createObjectExpression([keyProperty]) : undefined, node.children, 64 /* STABLE_FRAGMENT */ +
  5798. (( true)
  5799. ? ` /* ${_vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[64]} */`
  5800. : 0), undefined, undefined, true, undefined, false /* isComponent */);
  5801. }
  5802. else {
  5803. // Normal element v-for. Directly use the child's codegenNode
  5804. // but mark it as a block.
  5805. childBlock = children[0]
  5806. .codegenNode;
  5807. if (isTemplate && keyProperty) {
  5808. injectProp(childBlock, keyProperty, context);
  5809. }
  5810. if (childBlock.isBlock !== !isStableFragment) {
  5811. if (childBlock.isBlock) {
  5812. // switch from block to vnode
  5813. removeHelper(OPEN_BLOCK);
  5814. removeHelper(getVNodeBlockHelper(context.inSSR, childBlock.isComponent));
  5815. }
  5816. else {
  5817. // switch from vnode to block
  5818. removeHelper(getVNodeHelper(context.inSSR, childBlock.isComponent));
  5819. }
  5820. }
  5821. childBlock.isBlock = !isStableFragment;
  5822. if (childBlock.isBlock) {
  5823. helper(OPEN_BLOCK);
  5824. helper(getVNodeBlockHelper(context.inSSR, childBlock.isComponent));
  5825. }
  5826. else {
  5827. helper(getVNodeHelper(context.inSSR, childBlock.isComponent));
  5828. }
  5829. }
  5830. if (memo) {
  5831. const loop = createFunctionExpression(createForLoopParams(forNode.parseResult, [
  5832. createSimpleExpression(`_cached`)
  5833. ]));
  5834. loop.body = createBlockStatement([
  5835. createCompoundExpression([`const _memo = (`, memo.exp, `)`]),
  5836. createCompoundExpression([
  5837. `if (_cached`,
  5838. ...(keyExp ? [` && _cached.key === `, keyExp] : []),
  5839. ` && ${context.helperString(IS_MEMO_SAME)}(_cached, _memo)) return _cached`
  5840. ]),
  5841. createCompoundExpression([`const _item = `, childBlock]),
  5842. createSimpleExpression(`_item.memo = _memo`),
  5843. createSimpleExpression(`return _item`)
  5844. ]);
  5845. renderExp.arguments.push(loop, createSimpleExpression(`_cache`), createSimpleExpression(String(context.cached++)));
  5846. }
  5847. else {
  5848. renderExp.arguments.push(createFunctionExpression(createForLoopParams(forNode.parseResult), childBlock, true /* force newline */));
  5849. }
  5850. };
  5851. });
  5852. });
  5853. // target-agnostic transform used for both Client and SSR
  5854. function processFor(node, dir, context, processCodegen) {
  5855. if (!dir.exp) {
  5856. context.onError(createCompilerError(31 /* X_V_FOR_NO_EXPRESSION */, dir.loc));
  5857. return;
  5858. }
  5859. const parseResult = parseForExpression(
  5860. // can only be simple expression because vFor transform is applied
  5861. // before expression transform.
  5862. dir.exp, context);
  5863. if (!parseResult) {
  5864. context.onError(createCompilerError(32 /* X_V_FOR_MALFORMED_EXPRESSION */, dir.loc));
  5865. return;
  5866. }
  5867. const { addIdentifiers, removeIdentifiers, scopes } = context;
  5868. const { source, value, key, index } = parseResult;
  5869. const forNode = {
  5870. type: 11 /* FOR */,
  5871. loc: dir.loc,
  5872. source,
  5873. valueAlias: value,
  5874. keyAlias: key,
  5875. objectIndexAlias: index,
  5876. parseResult,
  5877. children: isTemplateNode(node) ? node.children : [node]
  5878. };
  5879. context.replaceNode(forNode);
  5880. // bookkeeping
  5881. scopes.vFor++;
  5882. const onExit = processCodegen && processCodegen(forNode);
  5883. return () => {
  5884. scopes.vFor--;
  5885. if (onExit)
  5886. onExit();
  5887. };
  5888. }
  5889. const forAliasRE = /([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/;
  5890. // This regex doesn't cover the case if key or index aliases have destructuring,
  5891. // but those do not make sense in the first place, so this works in practice.
  5892. const forIteratorRE = /,([^,\}\]]*)(?:,([^,\}\]]*))?$/;
  5893. const stripParensRE = /^\(|\)$/g;
  5894. function parseForExpression(input, context) {
  5895. const loc = input.loc;
  5896. const exp = input.content;
  5897. const inMatch = exp.match(forAliasRE);
  5898. if (!inMatch)
  5899. return;
  5900. const [, LHS, RHS] = inMatch;
  5901. const result = {
  5902. source: createAliasExpression(loc, RHS.trim(), exp.indexOf(RHS, LHS.length)),
  5903. value: undefined,
  5904. key: undefined,
  5905. index: undefined
  5906. };
  5907. if (true) {
  5908. validateBrowserExpression(result.source, context);
  5909. }
  5910. let valueContent = LHS.trim().replace(stripParensRE, '').trim();
  5911. const trimmedOffset = LHS.indexOf(valueContent);
  5912. const iteratorMatch = valueContent.match(forIteratorRE);
  5913. if (iteratorMatch) {
  5914. valueContent = valueContent.replace(forIteratorRE, '').trim();
  5915. const keyContent = iteratorMatch[1].trim();
  5916. let keyOffset;
  5917. if (keyContent) {
  5918. keyOffset = exp.indexOf(keyContent, trimmedOffset + valueContent.length);
  5919. result.key = createAliasExpression(loc, keyContent, keyOffset);
  5920. if (true) {
  5921. validateBrowserExpression(result.key, context, true);
  5922. }
  5923. }
  5924. if (iteratorMatch[2]) {
  5925. const indexContent = iteratorMatch[2].trim();
  5926. if (indexContent) {
  5927. result.index = createAliasExpression(loc, indexContent, exp.indexOf(indexContent, result.key
  5928. ? keyOffset + keyContent.length
  5929. : trimmedOffset + valueContent.length));
  5930. if (true) {
  5931. validateBrowserExpression(result.index, context, true);
  5932. }
  5933. }
  5934. }
  5935. }
  5936. if (valueContent) {
  5937. result.value = createAliasExpression(loc, valueContent, trimmedOffset);
  5938. if (true) {
  5939. validateBrowserExpression(result.value, context, true);
  5940. }
  5941. }
  5942. return result;
  5943. }
  5944. function createAliasExpression(range, content, offset) {
  5945. return createSimpleExpression(content, false, getInnerRange(range, offset, content.length));
  5946. }
  5947. function createForLoopParams({ value, key, index }, memoArgs = []) {
  5948. return createParamsList([value, key, index, ...memoArgs]);
  5949. }
  5950. function createParamsList(args) {
  5951. let i = args.length;
  5952. while (i--) {
  5953. if (args[i])
  5954. break;
  5955. }
  5956. return args
  5957. .slice(0, i + 1)
  5958. .map((arg, i) => arg || createSimpleExpression(`_`.repeat(i + 1), false));
  5959. }
  5960. const defaultFallback = createSimpleExpression(`undefined`, false);
  5961. // A NodeTransform that:
  5962. // 1. Tracks scope identifiers for scoped slots so that they don't get prefixed
  5963. // by transformExpression. This is only applied in non-browser builds with
  5964. // { prefixIdentifiers: true }.
  5965. // 2. Track v-slot depths so that we know a slot is inside another slot.
  5966. // Note the exit callback is executed before buildSlots() on the same node,
  5967. // so only nested slots see positive numbers.
  5968. const trackSlotScopes = (node, context) => {
  5969. if (node.type === 1 /* ELEMENT */ &&
  5970. (node.tagType === 1 /* COMPONENT */ ||
  5971. node.tagType === 3 /* TEMPLATE */)) {
  5972. // We are only checking non-empty v-slot here
  5973. // since we only care about slots that introduce scope variables.
  5974. const vSlot = findDir(node, 'slot');
  5975. if (vSlot) {
  5976. vSlot.exp;
  5977. context.scopes.vSlot++;
  5978. return () => {
  5979. context.scopes.vSlot--;
  5980. };
  5981. }
  5982. }
  5983. };
  5984. // A NodeTransform that tracks scope identifiers for scoped slots with v-for.
  5985. // This transform is only applied in non-browser builds with { prefixIdentifiers: true }
  5986. const trackVForSlotScopes = (node, context) => {
  5987. let vFor;
  5988. if (isTemplateNode(node) &&
  5989. node.props.some(isVSlot) &&
  5990. (vFor = findDir(node, 'for'))) {
  5991. const result = (vFor.parseResult = parseForExpression(vFor.exp, context));
  5992. if (result) {
  5993. const { value, key, index } = result;
  5994. const { addIdentifiers, removeIdentifiers } = context;
  5995. value && addIdentifiers(value);
  5996. key && addIdentifiers(key);
  5997. index && addIdentifiers(index);
  5998. return () => {
  5999. value && removeIdentifiers(value);
  6000. key && removeIdentifiers(key);
  6001. index && removeIdentifiers(index);
  6002. };
  6003. }
  6004. }
  6005. };
  6006. const buildClientSlotFn = (props, children, loc) => createFunctionExpression(props, children, false /* newline */, true /* isSlot */, children.length ? children[0].loc : loc);
  6007. // Instead of being a DirectiveTransform, v-slot processing is called during
  6008. // transformElement to build the slots object for a component.
  6009. function buildSlots(node, context, buildSlotFn = buildClientSlotFn) {
  6010. context.helper(WITH_CTX);
  6011. const { children, loc } = node;
  6012. const slotsProperties = [];
  6013. const dynamicSlots = [];
  6014. // If the slot is inside a v-for or another v-slot, force it to be dynamic
  6015. // since it likely uses a scope variable.
  6016. let hasDynamicSlots = context.scopes.vSlot > 0 || context.scopes.vFor > 0;
  6017. // 1. Check for slot with slotProps on component itself.
  6018. // <Comp v-slot="{ prop }"/>
  6019. const onComponentSlot = findDir(node, 'slot', true);
  6020. if (onComponentSlot) {
  6021. const { arg, exp } = onComponentSlot;
  6022. if (arg && !isStaticExp(arg)) {
  6023. hasDynamicSlots = true;
  6024. }
  6025. slotsProperties.push(createObjectProperty(arg || createSimpleExpression('default', true), buildSlotFn(exp, children, loc)));
  6026. }
  6027. // 2. Iterate through children and check for template slots
  6028. // <template v-slot:foo="{ prop }">
  6029. let hasTemplateSlots = false;
  6030. let hasNamedDefaultSlot = false;
  6031. const implicitDefaultChildren = [];
  6032. const seenSlotNames = new Set();
  6033. for (let i = 0; i < children.length; i++) {
  6034. const slotElement = children[i];
  6035. let slotDir;
  6036. if (!isTemplateNode(slotElement) ||
  6037. !(slotDir = findDir(slotElement, 'slot', true))) {
  6038. // not a <template v-slot>, skip.
  6039. if (slotElement.type !== 3 /* COMMENT */) {
  6040. implicitDefaultChildren.push(slotElement);
  6041. }
  6042. continue;
  6043. }
  6044. if (onComponentSlot) {
  6045. // already has on-component slot - this is incorrect usage.
  6046. context.onError(createCompilerError(37 /* X_V_SLOT_MIXED_SLOT_USAGE */, slotDir.loc));
  6047. break;
  6048. }
  6049. hasTemplateSlots = true;
  6050. const { children: slotChildren, loc: slotLoc } = slotElement;
  6051. const { arg: slotName = createSimpleExpression(`default`, true), exp: slotProps, loc: dirLoc } = slotDir;
  6052. // check if name is dynamic.
  6053. let staticSlotName;
  6054. if (isStaticExp(slotName)) {
  6055. staticSlotName = slotName ? slotName.content : `default`;
  6056. }
  6057. else {
  6058. hasDynamicSlots = true;
  6059. }
  6060. const slotFunction = buildSlotFn(slotProps, slotChildren, slotLoc);
  6061. // check if this slot is conditional (v-if/v-for)
  6062. let vIf;
  6063. let vElse;
  6064. let vFor;
  6065. if ((vIf = findDir(slotElement, 'if'))) {
  6066. hasDynamicSlots = true;
  6067. dynamicSlots.push(createConditionalExpression(vIf.exp, buildDynamicSlot(slotName, slotFunction), defaultFallback));
  6068. }
  6069. else if ((vElse = findDir(slotElement, /^else(-if)?$/, true /* allowEmpty */))) {
  6070. // find adjacent v-if
  6071. let j = i;
  6072. let prev;
  6073. while (j--) {
  6074. prev = children[j];
  6075. if (prev.type !== 3 /* COMMENT */) {
  6076. break;
  6077. }
  6078. }
  6079. if (prev && isTemplateNode(prev) && findDir(prev, 'if')) {
  6080. // remove node
  6081. children.splice(i, 1);
  6082. i--;
  6083. // attach this slot to previous conditional
  6084. let conditional = dynamicSlots[dynamicSlots.length - 1];
  6085. while (conditional.alternate.type === 19 /* JS_CONDITIONAL_EXPRESSION */) {
  6086. conditional = conditional.alternate;
  6087. }
  6088. conditional.alternate = vElse.exp
  6089. ? createConditionalExpression(vElse.exp, buildDynamicSlot(slotName, slotFunction), defaultFallback)
  6090. : buildDynamicSlot(slotName, slotFunction);
  6091. }
  6092. else {
  6093. context.onError(createCompilerError(30 /* X_V_ELSE_NO_ADJACENT_IF */, vElse.loc));
  6094. }
  6095. }
  6096. else if ((vFor = findDir(slotElement, 'for'))) {
  6097. hasDynamicSlots = true;
  6098. const parseResult = vFor.parseResult ||
  6099. parseForExpression(vFor.exp, context);
  6100. if (parseResult) {
  6101. // Render the dynamic slots as an array and add it to the createSlot()
  6102. // args. The runtime knows how to handle it appropriately.
  6103. dynamicSlots.push(createCallExpression(context.helper(RENDER_LIST), [
  6104. parseResult.source,
  6105. createFunctionExpression(createForLoopParams(parseResult), buildDynamicSlot(slotName, slotFunction), true /* force newline */)
  6106. ]));
  6107. }
  6108. else {
  6109. context.onError(createCompilerError(32 /* X_V_FOR_MALFORMED_EXPRESSION */, vFor.loc));
  6110. }
  6111. }
  6112. else {
  6113. // check duplicate static names
  6114. if (staticSlotName) {
  6115. if (seenSlotNames.has(staticSlotName)) {
  6116. context.onError(createCompilerError(38 /* X_V_SLOT_DUPLICATE_SLOT_NAMES */, dirLoc));
  6117. continue;
  6118. }
  6119. seenSlotNames.add(staticSlotName);
  6120. if (staticSlotName === 'default') {
  6121. hasNamedDefaultSlot = true;
  6122. }
  6123. }
  6124. slotsProperties.push(createObjectProperty(slotName, slotFunction));
  6125. }
  6126. }
  6127. if (!onComponentSlot) {
  6128. const buildDefaultSlotProperty = (props, children) => {
  6129. const fn = buildSlotFn(props, children, loc);
  6130. if (context.compatConfig) {
  6131. fn.isNonScopedSlot = true;
  6132. }
  6133. return createObjectProperty(`default`, fn);
  6134. };
  6135. if (!hasTemplateSlots) {
  6136. // implicit default slot (on component)
  6137. slotsProperties.push(buildDefaultSlotProperty(undefined, children));
  6138. }
  6139. else if (implicitDefaultChildren.length &&
  6140. // #3766
  6141. // with whitespace: 'preserve', whitespaces between slots will end up in
  6142. // implicitDefaultChildren. Ignore if all implicit children are whitespaces.
  6143. implicitDefaultChildren.some(node => isNonWhitespaceContent(node))) {
  6144. // implicit default slot (mixed with named slots)
  6145. if (hasNamedDefaultSlot) {
  6146. context.onError(createCompilerError(39 /* X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN */, implicitDefaultChildren[0].loc));
  6147. }
  6148. else {
  6149. slotsProperties.push(buildDefaultSlotProperty(undefined, implicitDefaultChildren));
  6150. }
  6151. }
  6152. }
  6153. const slotFlag = hasDynamicSlots
  6154. ? 2 /* DYNAMIC */
  6155. : hasForwardedSlots(node.children)
  6156. ? 3 /* FORWARDED */
  6157. : 1 /* STABLE */;
  6158. let slots = createObjectExpression(slotsProperties.concat(createObjectProperty(`_`,
  6159. // 2 = compiled but dynamic = can skip normalization, but must run diff
  6160. // 1 = compiled and static = can skip normalization AND diff as optimized
  6161. createSimpleExpression(slotFlag + (( true) ? ` /* ${_vue_shared__WEBPACK_IMPORTED_MODULE_0__.slotFlagsText[slotFlag]} */` : 0), false))), loc);
  6162. if (dynamicSlots.length) {
  6163. slots = createCallExpression(context.helper(CREATE_SLOTS), [
  6164. slots,
  6165. createArrayExpression(dynamicSlots)
  6166. ]);
  6167. }
  6168. return {
  6169. slots,
  6170. hasDynamicSlots
  6171. };
  6172. }
  6173. function buildDynamicSlot(name, fn) {
  6174. return createObjectExpression([
  6175. createObjectProperty(`name`, name),
  6176. createObjectProperty(`fn`, fn)
  6177. ]);
  6178. }
  6179. function hasForwardedSlots(children) {
  6180. for (let i = 0; i < children.length; i++) {
  6181. const child = children[i];
  6182. switch (child.type) {
  6183. case 1 /* ELEMENT */:
  6184. if (child.tagType === 2 /* SLOT */ ||
  6185. hasForwardedSlots(child.children)) {
  6186. return true;
  6187. }
  6188. break;
  6189. case 9 /* IF */:
  6190. if (hasForwardedSlots(child.branches))
  6191. return true;
  6192. break;
  6193. case 10 /* IF_BRANCH */:
  6194. case 11 /* FOR */:
  6195. if (hasForwardedSlots(child.children))
  6196. return true;
  6197. break;
  6198. }
  6199. }
  6200. return false;
  6201. }
  6202. function isNonWhitespaceContent(node) {
  6203. if (node.type !== 2 /* TEXT */ && node.type !== 12 /* TEXT_CALL */)
  6204. return true;
  6205. return node.type === 2 /* TEXT */
  6206. ? !!node.content.trim()
  6207. : isNonWhitespaceContent(node.content);
  6208. }
  6209. // some directive transforms (e.g. v-model) may return a symbol for runtime
  6210. // import, which should be used instead of a resolveDirective call.
  6211. const directiveImportMap = new WeakMap();
  6212. // generate a JavaScript AST for this element's codegen
  6213. const transformElement = (node, context) => {
  6214. // perform the work on exit, after all child expressions have been
  6215. // processed and merged.
  6216. return function postTransformElement() {
  6217. node = context.currentNode;
  6218. if (!(node.type === 1 /* ELEMENT */ &&
  6219. (node.tagType === 0 /* ELEMENT */ ||
  6220. node.tagType === 1 /* COMPONENT */))) {
  6221. return;
  6222. }
  6223. const { tag, props } = node;
  6224. const isComponent = node.tagType === 1 /* COMPONENT */;
  6225. // The goal of the transform is to create a codegenNode implementing the
  6226. // VNodeCall interface.
  6227. let vnodeTag = isComponent
  6228. ? resolveComponentType(node, context)
  6229. : `"${tag}"`;
  6230. const isDynamicComponent = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isObject)(vnodeTag) && vnodeTag.callee === RESOLVE_DYNAMIC_COMPONENT;
  6231. let vnodeProps;
  6232. let vnodeChildren;
  6233. let vnodePatchFlag;
  6234. let patchFlag = 0;
  6235. let vnodeDynamicProps;
  6236. let dynamicPropNames;
  6237. let vnodeDirectives;
  6238. let shouldUseBlock =
  6239. // dynamic component may resolve to plain elements
  6240. isDynamicComponent ||
  6241. vnodeTag === TELEPORT ||
  6242. vnodeTag === SUSPENSE ||
  6243. (!isComponent &&
  6244. // <svg> and <foreignObject> must be forced into blocks so that block
  6245. // updates inside get proper isSVG flag at runtime. (#639, #643)
  6246. // This is technically web-specific, but splitting the logic out of core
  6247. // leads to too much unnecessary complexity.
  6248. (tag === 'svg' || tag === 'foreignObject'));
  6249. // props
  6250. if (props.length > 0) {
  6251. const propsBuildResult = buildProps(node, context);
  6252. vnodeProps = propsBuildResult.props;
  6253. patchFlag = propsBuildResult.patchFlag;
  6254. dynamicPropNames = propsBuildResult.dynamicPropNames;
  6255. const directives = propsBuildResult.directives;
  6256. vnodeDirectives =
  6257. directives && directives.length
  6258. ? createArrayExpression(directives.map(dir => buildDirectiveArgs(dir, context)))
  6259. : undefined;
  6260. if (propsBuildResult.shouldUseBlock) {
  6261. shouldUseBlock = true;
  6262. }
  6263. }
  6264. // children
  6265. if (node.children.length > 0) {
  6266. if (vnodeTag === KEEP_ALIVE) {
  6267. // Although a built-in component, we compile KeepAlive with raw children
  6268. // instead of slot functions so that it can be used inside Transition
  6269. // or other Transition-wrapping HOCs.
  6270. // To ensure correct updates with block optimizations, we need to:
  6271. // 1. Force keep-alive into a block. This avoids its children being
  6272. // collected by a parent block.
  6273. shouldUseBlock = true;
  6274. // 2. Force keep-alive to always be updated, since it uses raw children.
  6275. patchFlag |= 1024 /* DYNAMIC_SLOTS */;
  6276. if (( true) && node.children.length > 1) {
  6277. context.onError(createCompilerError(45 /* X_KEEP_ALIVE_INVALID_CHILDREN */, {
  6278. start: node.children[0].loc.start,
  6279. end: node.children[node.children.length - 1].loc.end,
  6280. source: ''
  6281. }));
  6282. }
  6283. }
  6284. const shouldBuildAsSlots = isComponent &&
  6285. // Teleport is not a real component and has dedicated runtime handling
  6286. vnodeTag !== TELEPORT &&
  6287. // explained above.
  6288. vnodeTag !== KEEP_ALIVE;
  6289. if (shouldBuildAsSlots) {
  6290. const { slots, hasDynamicSlots } = buildSlots(node, context);
  6291. vnodeChildren = slots;
  6292. if (hasDynamicSlots) {
  6293. patchFlag |= 1024 /* DYNAMIC_SLOTS */;
  6294. }
  6295. }
  6296. else if (node.children.length === 1 && vnodeTag !== TELEPORT) {
  6297. const child = node.children[0];
  6298. const type = child.type;
  6299. // check for dynamic text children
  6300. const hasDynamicTextChild = type === 5 /* INTERPOLATION */ ||
  6301. type === 8 /* COMPOUND_EXPRESSION */;
  6302. if (hasDynamicTextChild &&
  6303. getConstantType(child, context) === 0 /* NOT_CONSTANT */) {
  6304. patchFlag |= 1 /* TEXT */;
  6305. }
  6306. // pass directly if the only child is a text node
  6307. // (plain / interpolation / expression)
  6308. if (hasDynamicTextChild || type === 2 /* TEXT */) {
  6309. vnodeChildren = child;
  6310. }
  6311. else {
  6312. vnodeChildren = node.children;
  6313. }
  6314. }
  6315. else {
  6316. vnodeChildren = node.children;
  6317. }
  6318. }
  6319. // patchFlag & dynamicPropNames
  6320. if (patchFlag !== 0) {
  6321. if ((true)) {
  6322. if (patchFlag < 0) {
  6323. // special flags (negative and mutually exclusive)
  6324. vnodePatchFlag = patchFlag + ` /* ${_vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[patchFlag]} */`;
  6325. }
  6326. else {
  6327. // bitwise flags
  6328. const flagNames = Object.keys(_vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames)
  6329. .map(Number)
  6330. .filter(n => n > 0 && patchFlag & n)
  6331. .map(n => _vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[n])
  6332. .join(`, `);
  6333. vnodePatchFlag = patchFlag + ` /* ${flagNames} */`;
  6334. }
  6335. }
  6336. else {}
  6337. if (dynamicPropNames && dynamicPropNames.length) {
  6338. vnodeDynamicProps = stringifyDynamicPropNames(dynamicPropNames);
  6339. }
  6340. }
  6341. node.codegenNode = createVNodeCall(context, vnodeTag, vnodeProps, vnodeChildren, vnodePatchFlag, vnodeDynamicProps, vnodeDirectives, !!shouldUseBlock, false /* disableTracking */, isComponent, node.loc);
  6342. };
  6343. };
  6344. function resolveComponentType(node, context, ssr = false) {
  6345. let { tag } = node;
  6346. // 1. dynamic component
  6347. const isExplicitDynamic = isComponentTag(tag);
  6348. const isProp = findProp(node, 'is');
  6349. if (isProp) {
  6350. if (isExplicitDynamic ||
  6351. (isCompatEnabled("COMPILER_IS_ON_ELEMENT" /* COMPILER_IS_ON_ELEMENT */, context))) {
  6352. const exp = isProp.type === 6 /* ATTRIBUTE */
  6353. ? isProp.value && createSimpleExpression(isProp.value.content, true)
  6354. : isProp.exp;
  6355. if (exp) {
  6356. return createCallExpression(context.helper(RESOLVE_DYNAMIC_COMPONENT), [
  6357. exp
  6358. ]);
  6359. }
  6360. }
  6361. else if (isProp.type === 6 /* ATTRIBUTE */ &&
  6362. isProp.value.content.startsWith('vue:')) {
  6363. // <button is="vue:xxx">
  6364. // if not <component>, only is value that starts with "vue:" will be
  6365. // treated as component by the parse phase and reach here, unless it's
  6366. // compat mode where all is values are considered components
  6367. tag = isProp.value.content.slice(4);
  6368. }
  6369. }
  6370. // 1.5 v-is (TODO: Deprecate)
  6371. const isDir = !isExplicitDynamic && findDir(node, 'is');
  6372. if (isDir && isDir.exp) {
  6373. return createCallExpression(context.helper(RESOLVE_DYNAMIC_COMPONENT), [
  6374. isDir.exp
  6375. ]);
  6376. }
  6377. // 2. built-in components (Teleport, Transition, KeepAlive, Suspense...)
  6378. const builtIn = isCoreComponent(tag) || context.isBuiltInComponent(tag);
  6379. if (builtIn) {
  6380. // built-ins are simply fallthroughs / have special handling during ssr
  6381. // so we don't need to import their runtime equivalents
  6382. if (!ssr)
  6383. context.helper(builtIn);
  6384. return builtIn;
  6385. }
  6386. // 5. user component (resolve)
  6387. context.helper(RESOLVE_COMPONENT);
  6388. context.components.add(tag);
  6389. return toValidAssetId(tag, `component`);
  6390. }
  6391. function buildProps(node, context, props = node.props, ssr = false) {
  6392. const { tag, loc: elementLoc, children } = node;
  6393. const isComponent = node.tagType === 1 /* COMPONENT */;
  6394. let properties = [];
  6395. const mergeArgs = [];
  6396. const runtimeDirectives = [];
  6397. const hasChildren = children.length > 0;
  6398. let shouldUseBlock = false;
  6399. // patchFlag analysis
  6400. let patchFlag = 0;
  6401. let hasRef = false;
  6402. let hasClassBinding = false;
  6403. let hasStyleBinding = false;
  6404. let hasHydrationEventBinding = false;
  6405. let hasDynamicKeys = false;
  6406. let hasVnodeHook = false;
  6407. const dynamicPropNames = [];
  6408. const analyzePatchFlag = ({ key, value }) => {
  6409. if (isStaticExp(key)) {
  6410. const name = key.content;
  6411. const isEventHandler = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isOn)(name);
  6412. if (!isComponent &&
  6413. isEventHandler &&
  6414. // omit the flag for click handlers because hydration gives click
  6415. // dedicated fast path.
  6416. name.toLowerCase() !== 'onclick' &&
  6417. // omit v-model handlers
  6418. name !== 'onUpdate:modelValue' &&
  6419. // omit onVnodeXXX hooks
  6420. !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isReservedProp)(name)) {
  6421. hasHydrationEventBinding = true;
  6422. }
  6423. if (isEventHandler && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isReservedProp)(name)) {
  6424. hasVnodeHook = true;
  6425. }
  6426. if (value.type === 20 /* JS_CACHE_EXPRESSION */ ||
  6427. ((value.type === 4 /* SIMPLE_EXPRESSION */ ||
  6428. value.type === 8 /* COMPOUND_EXPRESSION */) &&
  6429. getConstantType(value, context) > 0)) {
  6430. // skip if the prop is a cached handler or has constant value
  6431. return;
  6432. }
  6433. if (name === 'ref') {
  6434. hasRef = true;
  6435. }
  6436. else if (name === 'class') {
  6437. hasClassBinding = true;
  6438. }
  6439. else if (name === 'style') {
  6440. hasStyleBinding = true;
  6441. }
  6442. else if (name !== 'key' && !dynamicPropNames.includes(name)) {
  6443. dynamicPropNames.push(name);
  6444. }
  6445. // treat the dynamic class and style binding of the component as dynamic props
  6446. if (isComponent &&
  6447. (name === 'class' || name === 'style') &&
  6448. !dynamicPropNames.includes(name)) {
  6449. dynamicPropNames.push(name);
  6450. }
  6451. }
  6452. else {
  6453. hasDynamicKeys = true;
  6454. }
  6455. };
  6456. for (let i = 0; i < props.length; i++) {
  6457. // static attribute
  6458. const prop = props[i];
  6459. if (prop.type === 6 /* ATTRIBUTE */) {
  6460. const { loc, name, value } = prop;
  6461. let isStatic = true;
  6462. if (name === 'ref') {
  6463. hasRef = true;
  6464. if (context.scopes.vFor > 0) {
  6465. properties.push(createObjectProperty(createSimpleExpression('ref_for', true), createSimpleExpression('true')));
  6466. }
  6467. }
  6468. // skip is on <component>, or is="vue:xxx"
  6469. if (name === 'is' &&
  6470. (isComponentTag(tag) ||
  6471. (value && value.content.startsWith('vue:')) ||
  6472. (isCompatEnabled("COMPILER_IS_ON_ELEMENT" /* COMPILER_IS_ON_ELEMENT */, context)))) {
  6473. continue;
  6474. }
  6475. properties.push(createObjectProperty(createSimpleExpression(name, true, getInnerRange(loc, 0, name.length)), createSimpleExpression(value ? value.content : '', isStatic, value ? value.loc : loc)));
  6476. }
  6477. else {
  6478. // directives
  6479. const { name, arg, exp, loc } = prop;
  6480. const isVBind = name === 'bind';
  6481. const isVOn = name === 'on';
  6482. // skip v-slot - it is handled by its dedicated transform.
  6483. if (name === 'slot') {
  6484. if (!isComponent) {
  6485. context.onError(createCompilerError(40 /* X_V_SLOT_MISPLACED */, loc));
  6486. }
  6487. continue;
  6488. }
  6489. // skip v-once/v-memo - they are handled by dedicated transforms.
  6490. if (name === 'once' || name === 'memo') {
  6491. continue;
  6492. }
  6493. // skip v-is and :is on <component>
  6494. if (name === 'is' ||
  6495. (isVBind &&
  6496. isStaticArgOf(arg, 'is') &&
  6497. (isComponentTag(tag) ||
  6498. (isCompatEnabled("COMPILER_IS_ON_ELEMENT" /* COMPILER_IS_ON_ELEMENT */, context))))) {
  6499. continue;
  6500. }
  6501. // skip v-on in SSR compilation
  6502. if (isVOn && ssr) {
  6503. continue;
  6504. }
  6505. if (
  6506. // #938: elements with dynamic keys should be forced into blocks
  6507. (isVBind && isStaticArgOf(arg, 'key')) ||
  6508. // inline before-update hooks need to force block so that it is invoked
  6509. // before children
  6510. (isVOn && hasChildren && isStaticArgOf(arg, 'vue:before-update'))) {
  6511. shouldUseBlock = true;
  6512. }
  6513. if (isVBind && isStaticArgOf(arg, 'ref') && context.scopes.vFor > 0) {
  6514. properties.push(createObjectProperty(createSimpleExpression('ref_for', true), createSimpleExpression('true')));
  6515. }
  6516. // special case for v-bind and v-on with no argument
  6517. if (!arg && (isVBind || isVOn)) {
  6518. hasDynamicKeys = true;
  6519. if (exp) {
  6520. if (properties.length) {
  6521. mergeArgs.push(createObjectExpression(dedupeProperties(properties), elementLoc));
  6522. properties = [];
  6523. }
  6524. if (isVBind) {
  6525. {
  6526. // 2.x v-bind object order compat
  6527. if ((true)) {
  6528. const hasOverridableKeys = mergeArgs.some(arg => {
  6529. if (arg.type === 15 /* JS_OBJECT_EXPRESSION */) {
  6530. return arg.properties.some(({ key }) => {
  6531. if (key.type !== 4 /* SIMPLE_EXPRESSION */ ||
  6532. !key.isStatic) {
  6533. return true;
  6534. }
  6535. return (key.content !== 'class' &&
  6536. key.content !== 'style' &&
  6537. !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isOn)(key.content));
  6538. });
  6539. }
  6540. else {
  6541. // dynamic expression
  6542. return true;
  6543. }
  6544. });
  6545. if (hasOverridableKeys) {
  6546. checkCompatEnabled("COMPILER_V_BIND_OBJECT_ORDER" /* COMPILER_V_BIND_OBJECT_ORDER */, context, loc);
  6547. }
  6548. }
  6549. if (isCompatEnabled("COMPILER_V_BIND_OBJECT_ORDER" /* COMPILER_V_BIND_OBJECT_ORDER */, context)) {
  6550. mergeArgs.unshift(exp);
  6551. continue;
  6552. }
  6553. }
  6554. mergeArgs.push(exp);
  6555. }
  6556. else {
  6557. // v-on="obj" -> toHandlers(obj)
  6558. mergeArgs.push({
  6559. type: 14 /* JS_CALL_EXPRESSION */,
  6560. loc,
  6561. callee: context.helper(TO_HANDLERS),
  6562. arguments: [exp]
  6563. });
  6564. }
  6565. }
  6566. else {
  6567. context.onError(createCompilerError(isVBind
  6568. ? 34 /* X_V_BIND_NO_EXPRESSION */
  6569. : 35 /* X_V_ON_NO_EXPRESSION */, loc));
  6570. }
  6571. continue;
  6572. }
  6573. const directiveTransform = context.directiveTransforms[name];
  6574. if (directiveTransform) {
  6575. // has built-in directive transform.
  6576. const { props, needRuntime } = directiveTransform(prop, node, context);
  6577. !ssr && props.forEach(analyzePatchFlag);
  6578. properties.push(...props);
  6579. if (needRuntime) {
  6580. runtimeDirectives.push(prop);
  6581. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isSymbol)(needRuntime)) {
  6582. directiveImportMap.set(prop, needRuntime);
  6583. }
  6584. }
  6585. }
  6586. else if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isBuiltInDirective)(name)) {
  6587. // no built-in transform, this is a user custom directive.
  6588. runtimeDirectives.push(prop);
  6589. // custom dirs may use beforeUpdate so they need to force blocks
  6590. // to ensure before-update gets called before children update
  6591. if (hasChildren) {
  6592. shouldUseBlock = true;
  6593. }
  6594. }
  6595. }
  6596. }
  6597. let propsExpression = undefined;
  6598. // has v-bind="object" or v-on="object", wrap with mergeProps
  6599. if (mergeArgs.length) {
  6600. if (properties.length) {
  6601. mergeArgs.push(createObjectExpression(dedupeProperties(properties), elementLoc));
  6602. }
  6603. if (mergeArgs.length > 1) {
  6604. propsExpression = createCallExpression(context.helper(MERGE_PROPS), mergeArgs, elementLoc);
  6605. }
  6606. else {
  6607. // single v-bind with nothing else - no need for a mergeProps call
  6608. propsExpression = mergeArgs[0];
  6609. }
  6610. }
  6611. else if (properties.length) {
  6612. propsExpression = createObjectExpression(dedupeProperties(properties), elementLoc);
  6613. }
  6614. // patchFlag analysis
  6615. if (hasDynamicKeys) {
  6616. patchFlag |= 16 /* FULL_PROPS */;
  6617. }
  6618. else {
  6619. if (hasClassBinding && !isComponent) {
  6620. patchFlag |= 2 /* CLASS */;
  6621. }
  6622. if (hasStyleBinding && !isComponent) {
  6623. patchFlag |= 4 /* STYLE */;
  6624. }
  6625. if (dynamicPropNames.length) {
  6626. patchFlag |= 8 /* PROPS */;
  6627. }
  6628. if (hasHydrationEventBinding) {
  6629. patchFlag |= 32 /* HYDRATE_EVENTS */;
  6630. }
  6631. }
  6632. if (!shouldUseBlock &&
  6633. (patchFlag === 0 || patchFlag === 32 /* HYDRATE_EVENTS */) &&
  6634. (hasRef || hasVnodeHook || runtimeDirectives.length > 0)) {
  6635. patchFlag |= 512 /* NEED_PATCH */;
  6636. }
  6637. // pre-normalize props, SSR is skipped for now
  6638. if (!context.inSSR && propsExpression) {
  6639. switch (propsExpression.type) {
  6640. case 15 /* JS_OBJECT_EXPRESSION */:
  6641. // means that there is no v-bind,
  6642. // but still need to deal with dynamic key binding
  6643. let classKeyIndex = -1;
  6644. let styleKeyIndex = -1;
  6645. let hasDynamicKey = false;
  6646. for (let i = 0; i < propsExpression.properties.length; i++) {
  6647. const key = propsExpression.properties[i].key;
  6648. if (isStaticExp(key)) {
  6649. if (key.content === 'class') {
  6650. classKeyIndex = i;
  6651. }
  6652. else if (key.content === 'style') {
  6653. styleKeyIndex = i;
  6654. }
  6655. }
  6656. else if (!key.isHandlerKey) {
  6657. hasDynamicKey = true;
  6658. }
  6659. }
  6660. const classProp = propsExpression.properties[classKeyIndex];
  6661. const styleProp = propsExpression.properties[styleKeyIndex];
  6662. // no dynamic key
  6663. if (!hasDynamicKey) {
  6664. if (classProp && !isStaticExp(classProp.value)) {
  6665. classProp.value = createCallExpression(context.helper(NORMALIZE_CLASS), [classProp.value]);
  6666. }
  6667. if (styleProp &&
  6668. !isStaticExp(styleProp.value) &&
  6669. // the static style is compiled into an object,
  6670. // so use `hasStyleBinding` to ensure that it is a dynamic style binding
  6671. (hasStyleBinding ||
  6672. // v-bind:style and style both exist,
  6673. // v-bind:style with static literal object
  6674. styleProp.value.type === 17 /* JS_ARRAY_EXPRESSION */)) {
  6675. styleProp.value = createCallExpression(context.helper(NORMALIZE_STYLE), [styleProp.value]);
  6676. }
  6677. }
  6678. else {
  6679. // dynamic key binding, wrap with `normalizeProps`
  6680. propsExpression = createCallExpression(context.helper(NORMALIZE_PROPS), [propsExpression]);
  6681. }
  6682. break;
  6683. case 14 /* JS_CALL_EXPRESSION */:
  6684. // mergeProps call, do nothing
  6685. break;
  6686. default:
  6687. // single v-bind
  6688. propsExpression = createCallExpression(context.helper(NORMALIZE_PROPS), [
  6689. createCallExpression(context.helper(GUARD_REACTIVE_PROPS), [
  6690. propsExpression
  6691. ])
  6692. ]);
  6693. break;
  6694. }
  6695. }
  6696. return {
  6697. props: propsExpression,
  6698. directives: runtimeDirectives,
  6699. patchFlag,
  6700. dynamicPropNames,
  6701. shouldUseBlock
  6702. };
  6703. }
  6704. // Dedupe props in an object literal.
  6705. // Literal duplicated attributes would have been warned during the parse phase,
  6706. // however, it's possible to encounter duplicated `onXXX` handlers with different
  6707. // modifiers. We also need to merge static and dynamic class / style attributes.
  6708. // - onXXX handlers / style: merge into array
  6709. // - class: merge into single expression with concatenation
  6710. function dedupeProperties(properties) {
  6711. const knownProps = new Map();
  6712. const deduped = [];
  6713. for (let i = 0; i < properties.length; i++) {
  6714. const prop = properties[i];
  6715. // dynamic keys are always allowed
  6716. if (prop.key.type === 8 /* COMPOUND_EXPRESSION */ || !prop.key.isStatic) {
  6717. deduped.push(prop);
  6718. continue;
  6719. }
  6720. const name = prop.key.content;
  6721. const existing = knownProps.get(name);
  6722. if (existing) {
  6723. if (name === 'style' || name === 'class' || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isOn)(name)) {
  6724. mergeAsArray(existing, prop);
  6725. }
  6726. // unexpected duplicate, should have emitted error during parse
  6727. }
  6728. else {
  6729. knownProps.set(name, prop);
  6730. deduped.push(prop);
  6731. }
  6732. }
  6733. return deduped;
  6734. }
  6735. function mergeAsArray(existing, incoming) {
  6736. if (existing.value.type === 17 /* JS_ARRAY_EXPRESSION */) {
  6737. existing.value.elements.push(incoming.value);
  6738. }
  6739. else {
  6740. existing.value = createArrayExpression([existing.value, incoming.value], existing.loc);
  6741. }
  6742. }
  6743. function buildDirectiveArgs(dir, context) {
  6744. const dirArgs = [];
  6745. const runtime = directiveImportMap.get(dir);
  6746. if (runtime) {
  6747. // built-in directive with runtime
  6748. dirArgs.push(context.helperString(runtime));
  6749. }
  6750. else {
  6751. {
  6752. // inject statement for resolving directive
  6753. context.helper(RESOLVE_DIRECTIVE);
  6754. context.directives.add(dir.name);
  6755. dirArgs.push(toValidAssetId(dir.name, `directive`));
  6756. }
  6757. }
  6758. const { loc } = dir;
  6759. if (dir.exp)
  6760. dirArgs.push(dir.exp);
  6761. if (dir.arg) {
  6762. if (!dir.exp) {
  6763. dirArgs.push(`void 0`);
  6764. }
  6765. dirArgs.push(dir.arg);
  6766. }
  6767. if (Object.keys(dir.modifiers).length) {
  6768. if (!dir.arg) {
  6769. if (!dir.exp) {
  6770. dirArgs.push(`void 0`);
  6771. }
  6772. dirArgs.push(`void 0`);
  6773. }
  6774. const trueExpression = createSimpleExpression(`true`, false, loc);
  6775. dirArgs.push(createObjectExpression(dir.modifiers.map(modifier => createObjectProperty(modifier, trueExpression)), loc));
  6776. }
  6777. return createArrayExpression(dirArgs, dir.loc);
  6778. }
  6779. function stringifyDynamicPropNames(props) {
  6780. let propsNamesString = `[`;
  6781. for (let i = 0, l = props.length; i < l; i++) {
  6782. propsNamesString += JSON.stringify(props[i]);
  6783. if (i < l - 1)
  6784. propsNamesString += ', ';
  6785. }
  6786. return propsNamesString + `]`;
  6787. }
  6788. function isComponentTag(tag) {
  6789. return tag === 'component' || tag === 'Component';
  6790. }
  6791. ( true)
  6792. ? Object.freeze({})
  6793. : 0;
  6794. ( true) ? Object.freeze([]) : 0;
  6795. const cacheStringFunction = (fn) => {
  6796. const cache = Object.create(null);
  6797. return ((str) => {
  6798. const hit = cache[str];
  6799. return hit || (cache[str] = fn(str));
  6800. });
  6801. };
  6802. const camelizeRE = /-(\w)/g;
  6803. /**
  6804. * @private
  6805. */
  6806. const camelize = cacheStringFunction((str) => {
  6807. return str.replace(camelizeRE, (_, c) => (c ? c.toUpperCase() : ''));
  6808. });
  6809. const transformSlotOutlet = (node, context) => {
  6810. if (isSlotOutlet(node)) {
  6811. const { children, loc } = node;
  6812. const { slotName, slotProps } = processSlotOutlet(node, context);
  6813. const slotArgs = [
  6814. context.prefixIdentifiers ? `_ctx.$slots` : `$slots`,
  6815. slotName,
  6816. '{}',
  6817. 'undefined',
  6818. 'true'
  6819. ];
  6820. let expectedLen = 2;
  6821. if (slotProps) {
  6822. slotArgs[2] = slotProps;
  6823. expectedLen = 3;
  6824. }
  6825. if (children.length) {
  6826. slotArgs[3] = createFunctionExpression([], children, false, false, loc);
  6827. expectedLen = 4;
  6828. }
  6829. if (context.scopeId && !context.slotted) {
  6830. expectedLen = 5;
  6831. }
  6832. slotArgs.splice(expectedLen); // remove unused arguments
  6833. node.codegenNode = createCallExpression(context.helper(RENDER_SLOT), slotArgs, loc);
  6834. }
  6835. };
  6836. function processSlotOutlet(node, context) {
  6837. let slotName = `"default"`;
  6838. let slotProps = undefined;
  6839. const nonNameProps = [];
  6840. for (let i = 0; i < node.props.length; i++) {
  6841. const p = node.props[i];
  6842. if (p.type === 6 /* ATTRIBUTE */) {
  6843. if (p.value) {
  6844. if (p.name === 'name') {
  6845. slotName = JSON.stringify(p.value.content);
  6846. }
  6847. else {
  6848. p.name = camelize(p.name);
  6849. nonNameProps.push(p);
  6850. }
  6851. }
  6852. }
  6853. else {
  6854. if (p.name === 'bind' && isStaticArgOf(p.arg, 'name')) {
  6855. if (p.exp)
  6856. slotName = p.exp;
  6857. }
  6858. else {
  6859. if (p.name === 'bind' && p.arg && isStaticExp(p.arg)) {
  6860. p.arg.content = camelize(p.arg.content);
  6861. }
  6862. nonNameProps.push(p);
  6863. }
  6864. }
  6865. }
  6866. if (nonNameProps.length > 0) {
  6867. const { props, directives } = buildProps(node, context, nonNameProps);
  6868. slotProps = props;
  6869. if (directives.length) {
  6870. context.onError(createCompilerError(36 /* X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET */, directives[0].loc));
  6871. }
  6872. }
  6873. return {
  6874. slotName,
  6875. slotProps
  6876. };
  6877. }
  6878. const fnExpRE = /^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/;
  6879. const transformOn = (dir, node, context, augmentor) => {
  6880. const { loc, modifiers, arg } = dir;
  6881. if (!dir.exp && !modifiers.length) {
  6882. context.onError(createCompilerError(35 /* X_V_ON_NO_EXPRESSION */, loc));
  6883. }
  6884. let eventName;
  6885. if (arg.type === 4 /* SIMPLE_EXPRESSION */) {
  6886. if (arg.isStatic) {
  6887. let rawName = arg.content;
  6888. // TODO deprecate @vnodeXXX usage
  6889. if (rawName.startsWith('vue:')) {
  6890. rawName = `vnode-${rawName.slice(4)}`;
  6891. }
  6892. // for all event listeners, auto convert it to camelCase. See issue #2249
  6893. eventName = createSimpleExpression((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.toHandlerKey)((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.camelize)(rawName)), true, arg.loc);
  6894. }
  6895. else {
  6896. // #2388
  6897. eventName = createCompoundExpression([
  6898. `${context.helperString(TO_HANDLER_KEY)}(`,
  6899. arg,
  6900. `)`
  6901. ]);
  6902. }
  6903. }
  6904. else {
  6905. // already a compound expression.
  6906. eventName = arg;
  6907. eventName.children.unshift(`${context.helperString(TO_HANDLER_KEY)}(`);
  6908. eventName.children.push(`)`);
  6909. }
  6910. // handler processing
  6911. let exp = dir.exp;
  6912. if (exp && !exp.content.trim()) {
  6913. exp = undefined;
  6914. }
  6915. let shouldCache = context.cacheHandlers && !exp && !context.inVOnce;
  6916. if (exp) {
  6917. const isMemberExp = isMemberExpression(exp.content);
  6918. const isInlineStatement = !(isMemberExp || fnExpRE.test(exp.content));
  6919. const hasMultipleStatements = exp.content.includes(`;`);
  6920. if (true) {
  6921. validateBrowserExpression(exp, context, false, hasMultipleStatements);
  6922. }
  6923. if (isInlineStatement || (shouldCache && isMemberExp)) {
  6924. // wrap inline statement in a function expression
  6925. exp = createCompoundExpression([
  6926. `${isInlineStatement
  6927. ? `$event`
  6928. : `${``}(...args)`} => ${hasMultipleStatements ? `{` : `(`}`,
  6929. exp,
  6930. hasMultipleStatements ? `}` : `)`
  6931. ]);
  6932. }
  6933. }
  6934. let ret = {
  6935. props: [
  6936. createObjectProperty(eventName, exp || createSimpleExpression(`() => {}`, false, loc))
  6937. ]
  6938. };
  6939. // apply extended compiler augmentor
  6940. if (augmentor) {
  6941. ret = augmentor(ret);
  6942. }
  6943. if (shouldCache) {
  6944. // cache handlers so that it's always the same handler being passed down.
  6945. // this avoids unnecessary re-renders when users use inline handlers on
  6946. // components.
  6947. ret.props[0].value = context.cache(ret.props[0].value);
  6948. }
  6949. // mark the key as handler for props normalization check
  6950. ret.props.forEach(p => (p.key.isHandlerKey = true));
  6951. return ret;
  6952. };
  6953. // v-bind without arg is handled directly in ./transformElements.ts due to it affecting
  6954. // codegen for the entire props object. This transform here is only for v-bind
  6955. // *with* args.
  6956. const transformBind = (dir, _node, context) => {
  6957. const { exp, modifiers, loc } = dir;
  6958. const arg = dir.arg;
  6959. if (arg.type !== 4 /* SIMPLE_EXPRESSION */) {
  6960. arg.children.unshift(`(`);
  6961. arg.children.push(`) || ""`);
  6962. }
  6963. else if (!arg.isStatic) {
  6964. arg.content = `${arg.content} || ""`;
  6965. }
  6966. // .sync is replaced by v-model:arg
  6967. if (modifiers.includes('camel')) {
  6968. if (arg.type === 4 /* SIMPLE_EXPRESSION */) {
  6969. if (arg.isStatic) {
  6970. arg.content = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.camelize)(arg.content);
  6971. }
  6972. else {
  6973. arg.content = `${context.helperString(CAMELIZE)}(${arg.content})`;
  6974. }
  6975. }
  6976. else {
  6977. arg.children.unshift(`${context.helperString(CAMELIZE)}(`);
  6978. arg.children.push(`)`);
  6979. }
  6980. }
  6981. if (!context.inSSR) {
  6982. if (modifiers.includes('prop')) {
  6983. injectPrefix(arg, '.');
  6984. }
  6985. if (modifiers.includes('attr')) {
  6986. injectPrefix(arg, '^');
  6987. }
  6988. }
  6989. if (!exp ||
  6990. (exp.type === 4 /* SIMPLE_EXPRESSION */ && !exp.content.trim())) {
  6991. context.onError(createCompilerError(34 /* X_V_BIND_NO_EXPRESSION */, loc));
  6992. return {
  6993. props: [createObjectProperty(arg, createSimpleExpression('', true, loc))]
  6994. };
  6995. }
  6996. return {
  6997. props: [createObjectProperty(arg, exp)]
  6998. };
  6999. };
  7000. const injectPrefix = (arg, prefix) => {
  7001. if (arg.type === 4 /* SIMPLE_EXPRESSION */) {
  7002. if (arg.isStatic) {
  7003. arg.content = prefix + arg.content;
  7004. }
  7005. else {
  7006. arg.content = `\`${prefix}\${${arg.content}}\``;
  7007. }
  7008. }
  7009. else {
  7010. arg.children.unshift(`'${prefix}' + (`);
  7011. arg.children.push(`)`);
  7012. }
  7013. };
  7014. // Merge adjacent text nodes and expressions into a single expression
  7015. // e.g. <div>abc {{ d }} {{ e }}</div> should have a single expression node as child.
  7016. const transformText = (node, context) => {
  7017. if (node.type === 0 /* ROOT */ ||
  7018. node.type === 1 /* ELEMENT */ ||
  7019. node.type === 11 /* FOR */ ||
  7020. node.type === 10 /* IF_BRANCH */) {
  7021. // perform the transform on node exit so that all expressions have already
  7022. // been processed.
  7023. return () => {
  7024. const children = node.children;
  7025. let currentContainer = undefined;
  7026. let hasText = false;
  7027. for (let i = 0; i < children.length; i++) {
  7028. const child = children[i];
  7029. if (isText(child)) {
  7030. hasText = true;
  7031. for (let j = i + 1; j < children.length; j++) {
  7032. const next = children[j];
  7033. if (isText(next)) {
  7034. if (!currentContainer) {
  7035. currentContainer = children[i] = {
  7036. type: 8 /* COMPOUND_EXPRESSION */,
  7037. loc: child.loc,
  7038. children: [child]
  7039. };
  7040. }
  7041. // merge adjacent text node into current
  7042. currentContainer.children.push(` + `, next);
  7043. children.splice(j, 1);
  7044. j--;
  7045. }
  7046. else {
  7047. currentContainer = undefined;
  7048. break;
  7049. }
  7050. }
  7051. }
  7052. }
  7053. if (!hasText ||
  7054. // if this is a plain element with a single text child, leave it
  7055. // as-is since the runtime has dedicated fast path for this by directly
  7056. // setting textContent of the element.
  7057. // for component root it's always normalized anyway.
  7058. (children.length === 1 &&
  7059. (node.type === 0 /* ROOT */ ||
  7060. (node.type === 1 /* ELEMENT */ &&
  7061. node.tagType === 0 /* ELEMENT */ &&
  7062. // #3756
  7063. // custom directives can potentially add DOM elements arbitrarily,
  7064. // we need to avoid setting textContent of the element at runtime
  7065. // to avoid accidentally overwriting the DOM elements added
  7066. // by the user through custom directives.
  7067. !node.props.find(p => p.type === 7 /* DIRECTIVE */ &&
  7068. !context.directiveTransforms[p.name]) &&
  7069. // in compat mode, <template> tags with no special directives
  7070. // will be rendered as a fragment so its children must be
  7071. // converted into vnodes.
  7072. !(node.tag === 'template'))))) {
  7073. return;
  7074. }
  7075. // pre-convert text nodes into createTextVNode(text) calls to avoid
  7076. // runtime normalization.
  7077. for (let i = 0; i < children.length; i++) {
  7078. const child = children[i];
  7079. if (isText(child) || child.type === 8 /* COMPOUND_EXPRESSION */) {
  7080. const callArgs = [];
  7081. // createTextVNode defaults to single whitespace, so if it is a
  7082. // single space the code could be an empty call to save bytes.
  7083. if (child.type !== 2 /* TEXT */ || child.content !== ' ') {
  7084. callArgs.push(child);
  7085. }
  7086. // mark dynamic text with flag so it gets patched inside a block
  7087. if (!context.ssr &&
  7088. getConstantType(child, context) === 0 /* NOT_CONSTANT */) {
  7089. callArgs.push(1 /* TEXT */ +
  7090. (( true) ? ` /* ${_vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[1]} */` : 0));
  7091. }
  7092. children[i] = {
  7093. type: 12 /* TEXT_CALL */,
  7094. content: child,
  7095. loc: child.loc,
  7096. codegenNode: createCallExpression(context.helper(CREATE_TEXT), callArgs)
  7097. };
  7098. }
  7099. }
  7100. };
  7101. }
  7102. };
  7103. const seen = new WeakSet();
  7104. const transformOnce = (node, context) => {
  7105. if (node.type === 1 /* ELEMENT */ && findDir(node, 'once', true)) {
  7106. if (seen.has(node) || context.inVOnce) {
  7107. return;
  7108. }
  7109. seen.add(node);
  7110. context.inVOnce = true;
  7111. context.helper(SET_BLOCK_TRACKING);
  7112. return () => {
  7113. context.inVOnce = false;
  7114. const cur = context.currentNode;
  7115. if (cur.codegenNode) {
  7116. cur.codegenNode = context.cache(cur.codegenNode, true /* isVNode */);
  7117. }
  7118. };
  7119. }
  7120. };
  7121. const transformModel = (dir, node, context) => {
  7122. const { exp, arg } = dir;
  7123. if (!exp) {
  7124. context.onError(createCompilerError(41 /* X_V_MODEL_NO_EXPRESSION */, dir.loc));
  7125. return createTransformProps();
  7126. }
  7127. const rawExp = exp.loc.source;
  7128. const expString = exp.type === 4 /* SIMPLE_EXPRESSION */ ? exp.content : rawExp;
  7129. // im SFC <script setup> inline mode, the exp may have been transformed into
  7130. // _unref(exp)
  7131. context.bindingMetadata[rawExp];
  7132. const maybeRef = !true /* SETUP_CONST */;
  7133. if (!expString.trim() ||
  7134. (!isMemberExpression(expString) && !maybeRef)) {
  7135. context.onError(createCompilerError(42 /* X_V_MODEL_MALFORMED_EXPRESSION */, exp.loc));
  7136. return createTransformProps();
  7137. }
  7138. const propName = arg ? arg : createSimpleExpression('modelValue', true);
  7139. const eventName = arg
  7140. ? isStaticExp(arg)
  7141. ? `onUpdate:${arg.content}`
  7142. : createCompoundExpression(['"onUpdate:" + ', arg])
  7143. : `onUpdate:modelValue`;
  7144. let assignmentExp;
  7145. const eventArg = context.isTS ? `($event: any)` : `$event`;
  7146. {
  7147. assignmentExp = createCompoundExpression([
  7148. `${eventArg} => ((`,
  7149. exp,
  7150. `) = $event)`
  7151. ]);
  7152. }
  7153. const props = [
  7154. // modelValue: foo
  7155. createObjectProperty(propName, dir.exp),
  7156. // "onUpdate:modelValue": $event => (foo = $event)
  7157. createObjectProperty(eventName, assignmentExp)
  7158. ];
  7159. // modelModifiers: { foo: true, "bar-baz": true }
  7160. if (dir.modifiers.length && node.tagType === 1 /* COMPONENT */) {
  7161. const modifiers = dir.modifiers
  7162. .map(m => (isSimpleIdentifier(m) ? m : JSON.stringify(m)) + `: true`)
  7163. .join(`, `);
  7164. const modifiersKey = arg
  7165. ? isStaticExp(arg)
  7166. ? `${arg.content}Modifiers`
  7167. : createCompoundExpression([arg, ' + "Modifiers"'])
  7168. : `modelModifiers`;
  7169. props.push(createObjectProperty(modifiersKey, createSimpleExpression(`{ ${modifiers} }`, false, dir.loc, 2 /* CAN_HOIST */)));
  7170. }
  7171. return createTransformProps(props);
  7172. };
  7173. function createTransformProps(props = []) {
  7174. return { props };
  7175. }
  7176. const validDivisionCharRE = /[\w).+\-_$\]]/;
  7177. const transformFilter = (node, context) => {
  7178. if (!isCompatEnabled("COMPILER_FILTER" /* COMPILER_FILTERS */, context)) {
  7179. return;
  7180. }
  7181. if (node.type === 5 /* INTERPOLATION */) {
  7182. // filter rewrite is applied before expression transform so only
  7183. // simple expressions are possible at this stage
  7184. rewriteFilter(node.content, context);
  7185. }
  7186. if (node.type === 1 /* ELEMENT */) {
  7187. node.props.forEach((prop) => {
  7188. if (prop.type === 7 /* DIRECTIVE */ &&
  7189. prop.name !== 'for' &&
  7190. prop.exp) {
  7191. rewriteFilter(prop.exp, context);
  7192. }
  7193. });
  7194. }
  7195. };
  7196. function rewriteFilter(node, context) {
  7197. if (node.type === 4 /* SIMPLE_EXPRESSION */) {
  7198. parseFilter(node, context);
  7199. }
  7200. else {
  7201. for (let i = 0; i < node.children.length; i++) {
  7202. const child = node.children[i];
  7203. if (typeof child !== 'object')
  7204. continue;
  7205. if (child.type === 4 /* SIMPLE_EXPRESSION */) {
  7206. parseFilter(child, context);
  7207. }
  7208. else if (child.type === 8 /* COMPOUND_EXPRESSION */) {
  7209. rewriteFilter(node, context);
  7210. }
  7211. else if (child.type === 5 /* INTERPOLATION */) {
  7212. rewriteFilter(child.content, context);
  7213. }
  7214. }
  7215. }
  7216. }
  7217. function parseFilter(node, context) {
  7218. const exp = node.content;
  7219. let inSingle = false;
  7220. let inDouble = false;
  7221. let inTemplateString = false;
  7222. let inRegex = false;
  7223. let curly = 0;
  7224. let square = 0;
  7225. let paren = 0;
  7226. let lastFilterIndex = 0;
  7227. let c, prev, i, expression, filters = [];
  7228. for (i = 0; i < exp.length; i++) {
  7229. prev = c;
  7230. c = exp.charCodeAt(i);
  7231. if (inSingle) {
  7232. if (c === 0x27 && prev !== 0x5c)
  7233. inSingle = false;
  7234. }
  7235. else if (inDouble) {
  7236. if (c === 0x22 && prev !== 0x5c)
  7237. inDouble = false;
  7238. }
  7239. else if (inTemplateString) {
  7240. if (c === 0x60 && prev !== 0x5c)
  7241. inTemplateString = false;
  7242. }
  7243. else if (inRegex) {
  7244. if (c === 0x2f && prev !== 0x5c)
  7245. inRegex = false;
  7246. }
  7247. else if (c === 0x7c && // pipe
  7248. exp.charCodeAt(i + 1) !== 0x7c &&
  7249. exp.charCodeAt(i - 1) !== 0x7c &&
  7250. !curly &&
  7251. !square &&
  7252. !paren) {
  7253. if (expression === undefined) {
  7254. // first filter, end of expression
  7255. lastFilterIndex = i + 1;
  7256. expression = exp.slice(0, i).trim();
  7257. }
  7258. else {
  7259. pushFilter();
  7260. }
  7261. }
  7262. else {
  7263. switch (c) {
  7264. case 0x22:
  7265. inDouble = true;
  7266. break; // "
  7267. case 0x27:
  7268. inSingle = true;
  7269. break; // '
  7270. case 0x60:
  7271. inTemplateString = true;
  7272. break; // `
  7273. case 0x28:
  7274. paren++;
  7275. break; // (
  7276. case 0x29:
  7277. paren--;
  7278. break; // )
  7279. case 0x5b:
  7280. square++;
  7281. break; // [
  7282. case 0x5d:
  7283. square--;
  7284. break; // ]
  7285. case 0x7b:
  7286. curly++;
  7287. break; // {
  7288. case 0x7d:
  7289. curly--;
  7290. break; // }
  7291. }
  7292. if (c === 0x2f) {
  7293. // /
  7294. let j = i - 1;
  7295. let p;
  7296. // find first non-whitespace prev char
  7297. for (; j >= 0; j--) {
  7298. p = exp.charAt(j);
  7299. if (p !== ' ')
  7300. break;
  7301. }
  7302. if (!p || !validDivisionCharRE.test(p)) {
  7303. inRegex = true;
  7304. }
  7305. }
  7306. }
  7307. }
  7308. if (expression === undefined) {
  7309. expression = exp.slice(0, i).trim();
  7310. }
  7311. else if (lastFilterIndex !== 0) {
  7312. pushFilter();
  7313. }
  7314. function pushFilter() {
  7315. filters.push(exp.slice(lastFilterIndex, i).trim());
  7316. lastFilterIndex = i + 1;
  7317. }
  7318. if (filters.length) {
  7319. ( true) &&
  7320. warnDeprecation("COMPILER_FILTER" /* COMPILER_FILTERS */, context, node.loc);
  7321. for (i = 0; i < filters.length; i++) {
  7322. expression = wrapFilter(expression, filters[i], context);
  7323. }
  7324. node.content = expression;
  7325. }
  7326. }
  7327. function wrapFilter(exp, filter, context) {
  7328. context.helper(RESOLVE_FILTER);
  7329. const i = filter.indexOf('(');
  7330. if (i < 0) {
  7331. context.filters.add(filter);
  7332. return `${toValidAssetId(filter, 'filter')}(${exp})`;
  7333. }
  7334. else {
  7335. const name = filter.slice(0, i);
  7336. const args = filter.slice(i + 1);
  7337. context.filters.add(name);
  7338. return `${toValidAssetId(name, 'filter')}(${exp}${args !== ')' ? ',' + args : args}`;
  7339. }
  7340. }
  7341. const seen$1 = new WeakSet();
  7342. const transformMemo = (node, context) => {
  7343. if (node.type === 1 /* ELEMENT */) {
  7344. const dir = findDir(node, 'memo');
  7345. if (!dir || seen$1.has(node)) {
  7346. return;
  7347. }
  7348. seen$1.add(node);
  7349. return () => {
  7350. const codegenNode = node.codegenNode ||
  7351. context.currentNode.codegenNode;
  7352. if (codegenNode && codegenNode.type === 13 /* VNODE_CALL */) {
  7353. // non-component sub tree should be turned into a block
  7354. if (node.tagType !== 1 /* COMPONENT */) {
  7355. makeBlock(codegenNode, context);
  7356. }
  7357. node.codegenNode = createCallExpression(context.helper(WITH_MEMO), [
  7358. dir.exp,
  7359. createFunctionExpression(undefined, codegenNode),
  7360. `_cache`,
  7361. String(context.cached++)
  7362. ]);
  7363. }
  7364. };
  7365. }
  7366. };
  7367. function getBaseTransformPreset(prefixIdentifiers) {
  7368. return [
  7369. [
  7370. transformOnce,
  7371. transformIf,
  7372. transformMemo,
  7373. transformFor,
  7374. ...([transformFilter] ),
  7375. ...(( true)
  7376. ? [transformExpression]
  7377. : 0),
  7378. transformSlotOutlet,
  7379. transformElement,
  7380. trackSlotScopes,
  7381. transformText
  7382. ],
  7383. {
  7384. on: transformOn,
  7385. bind: transformBind,
  7386. model: transformModel
  7387. }
  7388. ];
  7389. }
  7390. // we name it `baseCompile` so that higher order compilers like
  7391. // @vue/compiler-dom can export `compile` while re-exporting everything else.
  7392. function baseCompile(template, options = {}) {
  7393. const onError = options.onError || defaultOnError;
  7394. const isModuleMode = options.mode === 'module';
  7395. /* istanbul ignore if */
  7396. {
  7397. if (options.prefixIdentifiers === true) {
  7398. onError(createCompilerError(46 /* X_PREFIX_ID_NOT_SUPPORTED */));
  7399. }
  7400. else if (isModuleMode) {
  7401. onError(createCompilerError(47 /* X_MODULE_MODE_NOT_SUPPORTED */));
  7402. }
  7403. }
  7404. const prefixIdentifiers = !true ;
  7405. if (options.cacheHandlers) {
  7406. onError(createCompilerError(48 /* X_CACHE_HANDLER_NOT_SUPPORTED */));
  7407. }
  7408. if (options.scopeId && !isModuleMode) {
  7409. onError(createCompilerError(49 /* X_SCOPE_ID_NOT_SUPPORTED */));
  7410. }
  7411. const ast = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(template) ? baseParse(template, options) : template;
  7412. const [nodeTransforms, directiveTransforms] = getBaseTransformPreset();
  7413. transform(ast, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)({}, options, {
  7414. prefixIdentifiers,
  7415. nodeTransforms: [
  7416. ...nodeTransforms,
  7417. ...(options.nodeTransforms || []) // user transforms
  7418. ],
  7419. directiveTransforms: (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)({}, directiveTransforms, options.directiveTransforms || {} // user transforms
  7420. )
  7421. }));
  7422. return generate(ast, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)({}, options, {
  7423. prefixIdentifiers
  7424. }));
  7425. }
  7426. const noopDirectiveTransform = () => ({ props: [] });
  7427. /***/ }),
  7428. /***/ "./node_modules/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js":
  7429. /*!*************************************************************************!*\
  7430. !*** ./node_modules/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js ***!
  7431. \*************************************************************************/
  7432. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  7433. "use strict";
  7434. __webpack_require__.r(__webpack_exports__);
  7435. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  7436. /* harmony export */ "BASE_TRANSITION": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.BASE_TRANSITION),
  7437. /* harmony export */ "CAMELIZE": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CAMELIZE),
  7438. /* harmony export */ "CAPITALIZE": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CAPITALIZE),
  7439. /* harmony export */ "CREATE_BLOCK": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CREATE_BLOCK),
  7440. /* harmony export */ "CREATE_COMMENT": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CREATE_COMMENT),
  7441. /* harmony export */ "CREATE_ELEMENT_BLOCK": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CREATE_ELEMENT_BLOCK),
  7442. /* harmony export */ "CREATE_ELEMENT_VNODE": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CREATE_ELEMENT_VNODE),
  7443. /* harmony export */ "CREATE_SLOTS": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CREATE_SLOTS),
  7444. /* harmony export */ "CREATE_STATIC": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CREATE_STATIC),
  7445. /* harmony export */ "CREATE_TEXT": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CREATE_TEXT),
  7446. /* harmony export */ "CREATE_VNODE": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CREATE_VNODE),
  7447. /* harmony export */ "DOMDirectiveTransforms": () => (/* binding */ DOMDirectiveTransforms),
  7448. /* harmony export */ "DOMNodeTransforms": () => (/* binding */ DOMNodeTransforms),
  7449. /* harmony export */ "FRAGMENT": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.FRAGMENT),
  7450. /* harmony export */ "GUARD_REACTIVE_PROPS": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.GUARD_REACTIVE_PROPS),
  7451. /* harmony export */ "IS_MEMO_SAME": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.IS_MEMO_SAME),
  7452. /* harmony export */ "IS_REF": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.IS_REF),
  7453. /* harmony export */ "KEEP_ALIVE": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.KEEP_ALIVE),
  7454. /* harmony export */ "MERGE_PROPS": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.MERGE_PROPS),
  7455. /* harmony export */ "NORMALIZE_CLASS": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.NORMALIZE_CLASS),
  7456. /* harmony export */ "NORMALIZE_PROPS": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.NORMALIZE_PROPS),
  7457. /* harmony export */ "NORMALIZE_STYLE": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.NORMALIZE_STYLE),
  7458. /* harmony export */ "OPEN_BLOCK": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.OPEN_BLOCK),
  7459. /* harmony export */ "POP_SCOPE_ID": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.POP_SCOPE_ID),
  7460. /* harmony export */ "PUSH_SCOPE_ID": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.PUSH_SCOPE_ID),
  7461. /* harmony export */ "RENDER_LIST": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.RENDER_LIST),
  7462. /* harmony export */ "RENDER_SLOT": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.RENDER_SLOT),
  7463. /* harmony export */ "RESOLVE_COMPONENT": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.RESOLVE_COMPONENT),
  7464. /* harmony export */ "RESOLVE_DIRECTIVE": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.RESOLVE_DIRECTIVE),
  7465. /* harmony export */ "RESOLVE_DYNAMIC_COMPONENT": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.RESOLVE_DYNAMIC_COMPONENT),
  7466. /* harmony export */ "RESOLVE_FILTER": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.RESOLVE_FILTER),
  7467. /* harmony export */ "SET_BLOCK_TRACKING": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.SET_BLOCK_TRACKING),
  7468. /* harmony export */ "SUSPENSE": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.SUSPENSE),
  7469. /* harmony export */ "TELEPORT": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.TELEPORT),
  7470. /* harmony export */ "TO_DISPLAY_STRING": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.TO_DISPLAY_STRING),
  7471. /* harmony export */ "TO_HANDLERS": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.TO_HANDLERS),
  7472. /* harmony export */ "TO_HANDLER_KEY": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.TO_HANDLER_KEY),
  7473. /* harmony export */ "TRANSITION": () => (/* binding */ TRANSITION),
  7474. /* harmony export */ "TRANSITION_GROUP": () => (/* binding */ TRANSITION_GROUP),
  7475. /* harmony export */ "UNREF": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.UNREF),
  7476. /* harmony export */ "V_MODEL_CHECKBOX": () => (/* binding */ V_MODEL_CHECKBOX),
  7477. /* harmony export */ "V_MODEL_DYNAMIC": () => (/* binding */ V_MODEL_DYNAMIC),
  7478. /* harmony export */ "V_MODEL_RADIO": () => (/* binding */ V_MODEL_RADIO),
  7479. /* harmony export */ "V_MODEL_SELECT": () => (/* binding */ V_MODEL_SELECT),
  7480. /* harmony export */ "V_MODEL_TEXT": () => (/* binding */ V_MODEL_TEXT),
  7481. /* harmony export */ "V_ON_WITH_KEYS": () => (/* binding */ V_ON_WITH_KEYS),
  7482. /* harmony export */ "V_ON_WITH_MODIFIERS": () => (/* binding */ V_ON_WITH_MODIFIERS),
  7483. /* harmony export */ "V_SHOW": () => (/* binding */ V_SHOW),
  7484. /* harmony export */ "WITH_CTX": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.WITH_CTX),
  7485. /* harmony export */ "WITH_DIRECTIVES": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.WITH_DIRECTIVES),
  7486. /* harmony export */ "WITH_MEMO": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.WITH_MEMO),
  7487. /* harmony export */ "advancePositionWithClone": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.advancePositionWithClone),
  7488. /* harmony export */ "advancePositionWithMutation": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.advancePositionWithMutation),
  7489. /* harmony export */ "assert": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.assert),
  7490. /* harmony export */ "baseCompile": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.baseCompile),
  7491. /* harmony export */ "baseParse": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.baseParse),
  7492. /* harmony export */ "buildDirectiveArgs": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.buildDirectiveArgs),
  7493. /* harmony export */ "buildProps": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.buildProps),
  7494. /* harmony export */ "buildSlots": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.buildSlots),
  7495. /* harmony export */ "checkCompatEnabled": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.checkCompatEnabled),
  7496. /* harmony export */ "compile": () => (/* binding */ compile),
  7497. /* harmony export */ "createArrayExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createArrayExpression),
  7498. /* harmony export */ "createAssignmentExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createAssignmentExpression),
  7499. /* harmony export */ "createBlockStatement": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createBlockStatement),
  7500. /* harmony export */ "createCacheExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCacheExpression),
  7501. /* harmony export */ "createCallExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCallExpression),
  7502. /* harmony export */ "createCompilerError": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCompilerError),
  7503. /* harmony export */ "createCompoundExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCompoundExpression),
  7504. /* harmony export */ "createConditionalExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createConditionalExpression),
  7505. /* harmony export */ "createDOMCompilerError": () => (/* binding */ createDOMCompilerError),
  7506. /* harmony export */ "createForLoopParams": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createForLoopParams),
  7507. /* harmony export */ "createFunctionExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createFunctionExpression),
  7508. /* harmony export */ "createIfStatement": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createIfStatement),
  7509. /* harmony export */ "createInterpolation": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createInterpolation),
  7510. /* harmony export */ "createObjectExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createObjectExpression),
  7511. /* harmony export */ "createObjectProperty": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createObjectProperty),
  7512. /* harmony export */ "createReturnStatement": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createReturnStatement),
  7513. /* harmony export */ "createRoot": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createRoot),
  7514. /* harmony export */ "createSequenceExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSequenceExpression),
  7515. /* harmony export */ "createSimpleExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression),
  7516. /* harmony export */ "createStructuralDirectiveTransform": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createStructuralDirectiveTransform),
  7517. /* harmony export */ "createTemplateLiteral": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createTemplateLiteral),
  7518. /* harmony export */ "createTransformContext": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createTransformContext),
  7519. /* harmony export */ "createVNodeCall": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createVNodeCall),
  7520. /* harmony export */ "extractIdentifiers": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.extractIdentifiers),
  7521. /* harmony export */ "findDir": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.findDir),
  7522. /* harmony export */ "findProp": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.findProp),
  7523. /* harmony export */ "generate": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.generate),
  7524. /* harmony export */ "generateCodeFrame": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.generateCodeFrame),
  7525. /* harmony export */ "getBaseTransformPreset": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.getBaseTransformPreset),
  7526. /* harmony export */ "getInnerRange": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.getInnerRange),
  7527. /* harmony export */ "getMemoedVNodeCall": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.getMemoedVNodeCall),
  7528. /* harmony export */ "getVNodeBlockHelper": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.getVNodeBlockHelper),
  7529. /* harmony export */ "getVNodeHelper": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.getVNodeHelper),
  7530. /* harmony export */ "hasDynamicKeyVBind": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.hasDynamicKeyVBind),
  7531. /* harmony export */ "hasScopeRef": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.hasScopeRef),
  7532. /* harmony export */ "helperNameMap": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.helperNameMap),
  7533. /* harmony export */ "injectProp": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.injectProp),
  7534. /* harmony export */ "isBuiltInType": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isBuiltInType),
  7535. /* harmony export */ "isCoreComponent": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isCoreComponent),
  7536. /* harmony export */ "isFunctionType": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isFunctionType),
  7537. /* harmony export */ "isInDestructureAssignment": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isInDestructureAssignment),
  7538. /* harmony export */ "isMemberExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isMemberExpression),
  7539. /* harmony export */ "isMemberExpressionBrowser": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isMemberExpressionBrowser),
  7540. /* harmony export */ "isMemberExpressionNode": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isMemberExpressionNode),
  7541. /* harmony export */ "isReferencedIdentifier": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isReferencedIdentifier),
  7542. /* harmony export */ "isSimpleIdentifier": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isSimpleIdentifier),
  7543. /* harmony export */ "isSlotOutlet": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isSlotOutlet),
  7544. /* harmony export */ "isStaticArgOf": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isStaticArgOf),
  7545. /* harmony export */ "isStaticExp": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isStaticExp),
  7546. /* harmony export */ "isStaticProperty": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isStaticProperty),
  7547. /* harmony export */ "isStaticPropertyKey": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isStaticPropertyKey),
  7548. /* harmony export */ "isTemplateNode": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isTemplateNode),
  7549. /* harmony export */ "isText": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isText),
  7550. /* harmony export */ "isVSlot": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isVSlot),
  7551. /* harmony export */ "locStub": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.locStub),
  7552. /* harmony export */ "makeBlock": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.makeBlock),
  7553. /* harmony export */ "noopDirectiveTransform": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.noopDirectiveTransform),
  7554. /* harmony export */ "parse": () => (/* binding */ parse),
  7555. /* harmony export */ "parserOptions": () => (/* binding */ parserOptions),
  7556. /* harmony export */ "processExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.processExpression),
  7557. /* harmony export */ "processFor": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.processFor),
  7558. /* harmony export */ "processIf": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.processIf),
  7559. /* harmony export */ "processSlotOutlet": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.processSlotOutlet),
  7560. /* harmony export */ "registerRuntimeHelpers": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.registerRuntimeHelpers),
  7561. /* harmony export */ "resolveComponentType": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.resolveComponentType),
  7562. /* harmony export */ "toValidAssetId": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.toValidAssetId),
  7563. /* harmony export */ "trackSlotScopes": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.trackSlotScopes),
  7564. /* harmony export */ "trackVForSlotScopes": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.trackVForSlotScopes),
  7565. /* harmony export */ "transform": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.transform),
  7566. /* harmony export */ "transformBind": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.transformBind),
  7567. /* harmony export */ "transformElement": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.transformElement),
  7568. /* harmony export */ "transformExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.transformExpression),
  7569. /* harmony export */ "transformModel": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.transformModel),
  7570. /* harmony export */ "transformOn": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.transformOn),
  7571. /* harmony export */ "transformStyle": () => (/* binding */ transformStyle),
  7572. /* harmony export */ "traverseNode": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.traverseNode),
  7573. /* harmony export */ "walkBlockDeclarations": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.walkBlockDeclarations),
  7574. /* harmony export */ "walkFunctionParams": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.walkFunctionParams),
  7575. /* harmony export */ "walkIdentifiers": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.walkIdentifiers),
  7576. /* harmony export */ "warnDeprecation": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.warnDeprecation)
  7577. /* harmony export */ });
  7578. /* harmony import */ var _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vue/compiler-core */ "./node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js");
  7579. /* harmony import */ var _vue_shared__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @vue/shared */ "./node_modules/@vue/shared/dist/shared.esm-bundler.js");
  7580. const V_MODEL_RADIO = Symbol(( true) ? `vModelRadio` : 0);
  7581. const V_MODEL_CHECKBOX = Symbol(( true) ? `vModelCheckbox` : 0);
  7582. const V_MODEL_TEXT = Symbol(( true) ? `vModelText` : 0);
  7583. const V_MODEL_SELECT = Symbol(( true) ? `vModelSelect` : 0);
  7584. const V_MODEL_DYNAMIC = Symbol(( true) ? `vModelDynamic` : 0);
  7585. const V_ON_WITH_MODIFIERS = Symbol(( true) ? `vOnModifiersGuard` : 0);
  7586. const V_ON_WITH_KEYS = Symbol(( true) ? `vOnKeysGuard` : 0);
  7587. const V_SHOW = Symbol(( true) ? `vShow` : 0);
  7588. const TRANSITION = Symbol(( true) ? `Transition` : 0);
  7589. const TRANSITION_GROUP = Symbol(( true) ? `TransitionGroup` : 0);
  7590. (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.registerRuntimeHelpers)({
  7591. [V_MODEL_RADIO]: `vModelRadio`,
  7592. [V_MODEL_CHECKBOX]: `vModelCheckbox`,
  7593. [V_MODEL_TEXT]: `vModelText`,
  7594. [V_MODEL_SELECT]: `vModelSelect`,
  7595. [V_MODEL_DYNAMIC]: `vModelDynamic`,
  7596. [V_ON_WITH_MODIFIERS]: `withModifiers`,
  7597. [V_ON_WITH_KEYS]: `withKeys`,
  7598. [V_SHOW]: `vShow`,
  7599. [TRANSITION]: `Transition`,
  7600. [TRANSITION_GROUP]: `TransitionGroup`
  7601. });
  7602. /* eslint-disable no-restricted-globals */
  7603. let decoder;
  7604. function decodeHtmlBrowser(raw, asAttr = false) {
  7605. if (!decoder) {
  7606. decoder = document.createElement('div');
  7607. }
  7608. if (asAttr) {
  7609. decoder.innerHTML = `<div foo="${raw.replace(/"/g, '&quot;')}">`;
  7610. return decoder.children[0].getAttribute('foo');
  7611. }
  7612. else {
  7613. decoder.innerHTML = raw;
  7614. return decoder.textContent;
  7615. }
  7616. }
  7617. const isRawTextContainer = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.makeMap)('style,iframe,script,noscript', true);
  7618. const parserOptions = {
  7619. isVoidTag: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isVoidTag,
  7620. isNativeTag: tag => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isHTMLTag)(tag) || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSVGTag)(tag),
  7621. isPreTag: tag => tag === 'pre',
  7622. decodeEntities: decodeHtmlBrowser ,
  7623. isBuiltInComponent: (tag) => {
  7624. if ((0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isBuiltInType)(tag, `Transition`)) {
  7625. return TRANSITION;
  7626. }
  7627. else if ((0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isBuiltInType)(tag, `TransitionGroup`)) {
  7628. return TRANSITION_GROUP;
  7629. }
  7630. },
  7631. // https://html.spec.whatwg.org/multipage/parsing.html#tree-construction-dispatcher
  7632. getNamespace(tag, parent) {
  7633. let ns = parent ? parent.ns : 0 /* HTML */;
  7634. if (parent && ns === 2 /* MATH_ML */) {
  7635. if (parent.tag === 'annotation-xml') {
  7636. if (tag === 'svg') {
  7637. return 1 /* SVG */;
  7638. }
  7639. if (parent.props.some(a => a.type === 6 /* ATTRIBUTE */ &&
  7640. a.name === 'encoding' &&
  7641. a.value != null &&
  7642. (a.value.content === 'text/html' ||
  7643. a.value.content === 'application/xhtml+xml'))) {
  7644. ns = 0 /* HTML */;
  7645. }
  7646. }
  7647. else if (/^m(?:[ions]|text)$/.test(parent.tag) &&
  7648. tag !== 'mglyph' &&
  7649. tag !== 'malignmark') {
  7650. ns = 0 /* HTML */;
  7651. }
  7652. }
  7653. else if (parent && ns === 1 /* SVG */) {
  7654. if (parent.tag === 'foreignObject' ||
  7655. parent.tag === 'desc' ||
  7656. parent.tag === 'title') {
  7657. ns = 0 /* HTML */;
  7658. }
  7659. }
  7660. if (ns === 0 /* HTML */) {
  7661. if (tag === 'svg') {
  7662. return 1 /* SVG */;
  7663. }
  7664. if (tag === 'math') {
  7665. return 2 /* MATH_ML */;
  7666. }
  7667. }
  7668. return ns;
  7669. },
  7670. // https://html.spec.whatwg.org/multipage/parsing.html#parsing-html-fragments
  7671. getTextMode({ tag, ns }) {
  7672. if (ns === 0 /* HTML */) {
  7673. if (tag === 'textarea' || tag === 'title') {
  7674. return 1 /* RCDATA */;
  7675. }
  7676. if (isRawTextContainer(tag)) {
  7677. return 2 /* RAWTEXT */;
  7678. }
  7679. }
  7680. return 0 /* DATA */;
  7681. }
  7682. };
  7683. // Parse inline CSS strings for static style attributes into an object.
  7684. // This is a NodeTransform since it works on the static `style` attribute and
  7685. // converts it into a dynamic equivalent:
  7686. // style="color: red" -> :style='{ "color": "red" }'
  7687. // It is then processed by `transformElement` and included in the generated
  7688. // props.
  7689. const transformStyle = node => {
  7690. if (node.type === 1 /* ELEMENT */) {
  7691. node.props.forEach((p, i) => {
  7692. if (p.type === 6 /* ATTRIBUTE */ && p.name === 'style' && p.value) {
  7693. // replace p with an expression node
  7694. node.props[i] = {
  7695. type: 7 /* DIRECTIVE */,
  7696. name: `bind`,
  7697. arg: (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression)(`style`, true, p.loc),
  7698. exp: parseInlineCSS(p.value.content, p.loc),
  7699. modifiers: [],
  7700. loc: p.loc
  7701. };
  7702. }
  7703. });
  7704. }
  7705. };
  7706. const parseInlineCSS = (cssText, loc) => {
  7707. const normalized = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.parseStringStyle)(cssText);
  7708. return (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression)(JSON.stringify(normalized), false, loc, 3 /* CAN_STRINGIFY */);
  7709. };
  7710. function createDOMCompilerError(code, loc) {
  7711. return (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCompilerError)(code, loc, true ? DOMErrorMessages : 0);
  7712. }
  7713. const DOMErrorMessages = {
  7714. [50 /* X_V_HTML_NO_EXPRESSION */]: `v-html is missing expression.`,
  7715. [51 /* X_V_HTML_WITH_CHILDREN */]: `v-html will override element children.`,
  7716. [52 /* X_V_TEXT_NO_EXPRESSION */]: `v-text is missing expression.`,
  7717. [53 /* X_V_TEXT_WITH_CHILDREN */]: `v-text will override element children.`,
  7718. [54 /* X_V_MODEL_ON_INVALID_ELEMENT */]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
  7719. [55 /* X_V_MODEL_ARG_ON_ELEMENT */]: `v-model argument is not supported on plain elements.`,
  7720. [56 /* X_V_MODEL_ON_FILE_INPUT_ELEMENT */]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
  7721. [57 /* X_V_MODEL_UNNECESSARY_VALUE */]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
  7722. [58 /* X_V_SHOW_NO_EXPRESSION */]: `v-show is missing expression.`,
  7723. [59 /* X_TRANSITION_INVALID_CHILDREN */]: `<Transition> expects exactly one child element or component.`,
  7724. [60 /* X_IGNORED_SIDE_EFFECT_TAG */]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`
  7725. };
  7726. const transformVHtml = (dir, node, context) => {
  7727. const { exp, loc } = dir;
  7728. if (!exp) {
  7729. context.onError(createDOMCompilerError(50 /* X_V_HTML_NO_EXPRESSION */, loc));
  7730. }
  7731. if (node.children.length) {
  7732. context.onError(createDOMCompilerError(51 /* X_V_HTML_WITH_CHILDREN */, loc));
  7733. node.children.length = 0;
  7734. }
  7735. return {
  7736. props: [
  7737. (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createObjectProperty)((0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression)(`innerHTML`, true, loc), exp || (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression)('', true))
  7738. ]
  7739. };
  7740. };
  7741. const transformVText = (dir, node, context) => {
  7742. const { exp, loc } = dir;
  7743. if (!exp) {
  7744. context.onError(createDOMCompilerError(52 /* X_V_TEXT_NO_EXPRESSION */, loc));
  7745. }
  7746. if (node.children.length) {
  7747. context.onError(createDOMCompilerError(53 /* X_V_TEXT_WITH_CHILDREN */, loc));
  7748. node.children.length = 0;
  7749. }
  7750. return {
  7751. props: [
  7752. (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createObjectProperty)((0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression)(`textContent`, true), exp
  7753. ? (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCallExpression)(context.helperString(_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.TO_DISPLAY_STRING), [exp], loc)
  7754. : (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression)('', true))
  7755. ]
  7756. };
  7757. };
  7758. const transformModel = (dir, node, context) => {
  7759. const baseResult = (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.transformModel)(dir, node, context);
  7760. // base transform has errors OR component v-model (only need props)
  7761. if (!baseResult.props.length || node.tagType === 1 /* COMPONENT */) {
  7762. return baseResult;
  7763. }
  7764. if (dir.arg) {
  7765. context.onError(createDOMCompilerError(55 /* X_V_MODEL_ARG_ON_ELEMENT */, dir.arg.loc));
  7766. }
  7767. function checkDuplicatedValue() {
  7768. const value = (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.findProp)(node, 'value');
  7769. if (value) {
  7770. context.onError(createDOMCompilerError(57 /* X_V_MODEL_UNNECESSARY_VALUE */, value.loc));
  7771. }
  7772. }
  7773. const { tag } = node;
  7774. const isCustomElement = context.isCustomElement(tag);
  7775. if (tag === 'input' ||
  7776. tag === 'textarea' ||
  7777. tag === 'select' ||
  7778. isCustomElement) {
  7779. let directiveToUse = V_MODEL_TEXT;
  7780. let isInvalidType = false;
  7781. if (tag === 'input' || isCustomElement) {
  7782. const type = (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.findProp)(node, `type`);
  7783. if (type) {
  7784. if (type.type === 7 /* DIRECTIVE */) {
  7785. // :type="foo"
  7786. directiveToUse = V_MODEL_DYNAMIC;
  7787. }
  7788. else if (type.value) {
  7789. switch (type.value.content) {
  7790. case 'radio':
  7791. directiveToUse = V_MODEL_RADIO;
  7792. break;
  7793. case 'checkbox':
  7794. directiveToUse = V_MODEL_CHECKBOX;
  7795. break;
  7796. case 'file':
  7797. isInvalidType = true;
  7798. context.onError(createDOMCompilerError(56 /* X_V_MODEL_ON_FILE_INPUT_ELEMENT */, dir.loc));
  7799. break;
  7800. default:
  7801. // text type
  7802. ( true) && checkDuplicatedValue();
  7803. break;
  7804. }
  7805. }
  7806. }
  7807. else if ((0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.hasDynamicKeyVBind)(node)) {
  7808. // element has bindings with dynamic keys, which can possibly contain
  7809. // "type".
  7810. directiveToUse = V_MODEL_DYNAMIC;
  7811. }
  7812. else {
  7813. // text type
  7814. ( true) && checkDuplicatedValue();
  7815. }
  7816. }
  7817. else if (tag === 'select') {
  7818. directiveToUse = V_MODEL_SELECT;
  7819. }
  7820. else {
  7821. // textarea
  7822. ( true) && checkDuplicatedValue();
  7823. }
  7824. // inject runtime directive
  7825. // by returning the helper symbol via needRuntime
  7826. // the import will replaced a resolveDirective call.
  7827. if (!isInvalidType) {
  7828. baseResult.needRuntime = context.helper(directiveToUse);
  7829. }
  7830. }
  7831. else {
  7832. context.onError(createDOMCompilerError(54 /* X_V_MODEL_ON_INVALID_ELEMENT */, dir.loc));
  7833. }
  7834. // native vmodel doesn't need the `modelValue` props since they are also
  7835. // passed to the runtime as `binding.value`. removing it reduces code size.
  7836. baseResult.props = baseResult.props.filter(p => !(p.key.type === 4 /* SIMPLE_EXPRESSION */ &&
  7837. p.key.content === 'modelValue'));
  7838. return baseResult;
  7839. };
  7840. const isEventOptionModifier = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.makeMap)(`passive,once,capture`);
  7841. const isNonKeyModifier = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.makeMap)(
  7842. // event propagation management
  7843. `stop,prevent,self,` +
  7844. // system modifiers + exact
  7845. `ctrl,shift,alt,meta,exact,` +
  7846. // mouse
  7847. `middle`);
  7848. // left & right could be mouse or key modifiers based on event type
  7849. const maybeKeyModifier = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.makeMap)('left,right');
  7850. const isKeyboardEvent = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.makeMap)(`onkeyup,onkeydown,onkeypress`, true);
  7851. const resolveModifiers = (key, modifiers, context, loc) => {
  7852. const keyModifiers = [];
  7853. const nonKeyModifiers = [];
  7854. const eventOptionModifiers = [];
  7855. for (let i = 0; i < modifiers.length; i++) {
  7856. const modifier = modifiers[i];
  7857. if (modifier === 'native' &&
  7858. (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.checkCompatEnabled)("COMPILER_V_ON_NATIVE" /* COMPILER_V_ON_NATIVE */, context, loc)) {
  7859. eventOptionModifiers.push(modifier);
  7860. }
  7861. else if (isEventOptionModifier(modifier)) {
  7862. // eventOptionModifiers: modifiers for addEventListener() options,
  7863. // e.g. .passive & .capture
  7864. eventOptionModifiers.push(modifier);
  7865. }
  7866. else {
  7867. // runtimeModifiers: modifiers that needs runtime guards
  7868. if (maybeKeyModifier(modifier)) {
  7869. if ((0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isStaticExp)(key)) {
  7870. if (isKeyboardEvent(key.content)) {
  7871. keyModifiers.push(modifier);
  7872. }
  7873. else {
  7874. nonKeyModifiers.push(modifier);
  7875. }
  7876. }
  7877. else {
  7878. keyModifiers.push(modifier);
  7879. nonKeyModifiers.push(modifier);
  7880. }
  7881. }
  7882. else {
  7883. if (isNonKeyModifier(modifier)) {
  7884. nonKeyModifiers.push(modifier);
  7885. }
  7886. else {
  7887. keyModifiers.push(modifier);
  7888. }
  7889. }
  7890. }
  7891. }
  7892. return {
  7893. keyModifiers,
  7894. nonKeyModifiers,
  7895. eventOptionModifiers
  7896. };
  7897. };
  7898. const transformClick = (key, event) => {
  7899. const isStaticClick = (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isStaticExp)(key) && key.content.toLowerCase() === 'onclick';
  7900. return isStaticClick
  7901. ? (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression)(event, true)
  7902. : key.type !== 4 /* SIMPLE_EXPRESSION */
  7903. ? (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCompoundExpression)([
  7904. `(`,
  7905. key,
  7906. `) === "onClick" ? "${event}" : (`,
  7907. key,
  7908. `)`
  7909. ])
  7910. : key;
  7911. };
  7912. const transformOn = (dir, node, context) => {
  7913. return (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.transformOn)(dir, node, context, baseResult => {
  7914. const { modifiers } = dir;
  7915. if (!modifiers.length)
  7916. return baseResult;
  7917. let { key, value: handlerExp } = baseResult.props[0];
  7918. const { keyModifiers, nonKeyModifiers, eventOptionModifiers } = resolveModifiers(key, modifiers, context, dir.loc);
  7919. // normalize click.right and click.middle since they don't actually fire
  7920. if (nonKeyModifiers.includes('right')) {
  7921. key = transformClick(key, `onContextmenu`);
  7922. }
  7923. if (nonKeyModifiers.includes('middle')) {
  7924. key = transformClick(key, `onMouseup`);
  7925. }
  7926. if (nonKeyModifiers.length) {
  7927. handlerExp = (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCallExpression)(context.helper(V_ON_WITH_MODIFIERS), [
  7928. handlerExp,
  7929. JSON.stringify(nonKeyModifiers)
  7930. ]);
  7931. }
  7932. if (keyModifiers.length &&
  7933. // if event name is dynamic, always wrap with keys guard
  7934. (!(0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isStaticExp)(key) || isKeyboardEvent(key.content))) {
  7935. handlerExp = (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCallExpression)(context.helper(V_ON_WITH_KEYS), [
  7936. handlerExp,
  7937. JSON.stringify(keyModifiers)
  7938. ]);
  7939. }
  7940. if (eventOptionModifiers.length) {
  7941. const modifierPostfix = eventOptionModifiers.map(_vue_shared__WEBPACK_IMPORTED_MODULE_1__.capitalize).join('');
  7942. key = (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isStaticExp)(key)
  7943. ? (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression)(`${key.content}${modifierPostfix}`, true)
  7944. : (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCompoundExpression)([`(`, key, `) + "${modifierPostfix}"`]);
  7945. }
  7946. return {
  7947. props: [(0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createObjectProperty)(key, handlerExp)]
  7948. };
  7949. });
  7950. };
  7951. const transformShow = (dir, node, context) => {
  7952. const { exp, loc } = dir;
  7953. if (!exp) {
  7954. context.onError(createDOMCompilerError(58 /* X_V_SHOW_NO_EXPRESSION */, loc));
  7955. }
  7956. return {
  7957. props: [],
  7958. needRuntime: context.helper(V_SHOW)
  7959. };
  7960. };
  7961. const warnTransitionChildren = (node, context) => {
  7962. if (node.type === 1 /* ELEMENT */ &&
  7963. node.tagType === 1 /* COMPONENT */) {
  7964. const component = context.isBuiltInComponent(node.tag);
  7965. if (component === TRANSITION) {
  7966. return () => {
  7967. if (node.children.length && hasMultipleChildren(node)) {
  7968. context.onError(createDOMCompilerError(59 /* X_TRANSITION_INVALID_CHILDREN */, {
  7969. start: node.children[0].loc.start,
  7970. end: node.children[node.children.length - 1].loc.end,
  7971. source: ''
  7972. }));
  7973. }
  7974. };
  7975. }
  7976. }
  7977. };
  7978. function hasMultipleChildren(node) {
  7979. // #1352 filter out potential comment nodes.
  7980. const children = (node.children = node.children.filter(c => c.type !== 3 /* COMMENT */ &&
  7981. !(c.type === 2 /* TEXT */ && !c.content.trim())));
  7982. const child = children[0];
  7983. return (children.length !== 1 ||
  7984. child.type === 11 /* FOR */ ||
  7985. (child.type === 9 /* IF */ && child.branches.some(hasMultipleChildren)));
  7986. }
  7987. const ignoreSideEffectTags = (node, context) => {
  7988. if (node.type === 1 /* ELEMENT */ &&
  7989. node.tagType === 0 /* ELEMENT */ &&
  7990. (node.tag === 'script' || node.tag === 'style')) {
  7991. context.onError(createDOMCompilerError(60 /* X_IGNORED_SIDE_EFFECT_TAG */, node.loc));
  7992. context.removeNode();
  7993. }
  7994. };
  7995. const DOMNodeTransforms = [
  7996. transformStyle,
  7997. ...(( true) ? [warnTransitionChildren] : 0)
  7998. ];
  7999. const DOMDirectiveTransforms = {
  8000. cloak: _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.noopDirectiveTransform,
  8001. html: transformVHtml,
  8002. text: transformVText,
  8003. model: transformModel,
  8004. on: transformOn,
  8005. show: transformShow
  8006. };
  8007. function compile(template, options = {}) {
  8008. return (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.baseCompile)(template, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, parserOptions, options, {
  8009. nodeTransforms: [
  8010. // ignore <script> and <tag>
  8011. // this is not put inside DOMNodeTransforms because that list is used
  8012. // by compiler-ssr to generate vnode fallback branches
  8013. ignoreSideEffectTags,
  8014. ...DOMNodeTransforms,
  8015. ...(options.nodeTransforms || [])
  8016. ],
  8017. directiveTransforms: (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, DOMDirectiveTransforms, options.directiveTransforms || {}),
  8018. transformHoist: null
  8019. }));
  8020. }
  8021. function parse(template, options = {}) {
  8022. return (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.baseParse)(template, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, parserOptions, options));
  8023. }
  8024. /***/ }),
  8025. /***/ "./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js":
  8026. /*!*********************************************************************!*\
  8027. !*** ./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js ***!
  8028. \*********************************************************************/
  8029. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  8030. "use strict";
  8031. __webpack_require__.r(__webpack_exports__);
  8032. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  8033. /* harmony export */ "EffectScope": () => (/* binding */ EffectScope),
  8034. /* harmony export */ "ITERATE_KEY": () => (/* binding */ ITERATE_KEY),
  8035. /* harmony export */ "ReactiveEffect": () => (/* binding */ ReactiveEffect),
  8036. /* harmony export */ "computed": () => (/* binding */ computed),
  8037. /* harmony export */ "customRef": () => (/* binding */ customRef),
  8038. /* harmony export */ "deferredComputed": () => (/* binding */ deferredComputed),
  8039. /* harmony export */ "effect": () => (/* binding */ effect),
  8040. /* harmony export */ "effectScope": () => (/* binding */ effectScope),
  8041. /* harmony export */ "enableTracking": () => (/* binding */ enableTracking),
  8042. /* harmony export */ "getCurrentScope": () => (/* binding */ getCurrentScope),
  8043. /* harmony export */ "isProxy": () => (/* binding */ isProxy),
  8044. /* harmony export */ "isReactive": () => (/* binding */ isReactive),
  8045. /* harmony export */ "isReadonly": () => (/* binding */ isReadonly),
  8046. /* harmony export */ "isRef": () => (/* binding */ isRef),
  8047. /* harmony export */ "isShallow": () => (/* binding */ isShallow),
  8048. /* harmony export */ "markRaw": () => (/* binding */ markRaw),
  8049. /* harmony export */ "onScopeDispose": () => (/* binding */ onScopeDispose),
  8050. /* harmony export */ "pauseTracking": () => (/* binding */ pauseTracking),
  8051. /* harmony export */ "proxyRefs": () => (/* binding */ proxyRefs),
  8052. /* harmony export */ "reactive": () => (/* binding */ reactive),
  8053. /* harmony export */ "readonly": () => (/* binding */ readonly),
  8054. /* harmony export */ "ref": () => (/* binding */ ref),
  8055. /* harmony export */ "resetTracking": () => (/* binding */ resetTracking),
  8056. /* harmony export */ "shallowReactive": () => (/* binding */ shallowReactive),
  8057. /* harmony export */ "shallowReadonly": () => (/* binding */ shallowReadonly),
  8058. /* harmony export */ "shallowRef": () => (/* binding */ shallowRef),
  8059. /* harmony export */ "stop": () => (/* binding */ stop),
  8060. /* harmony export */ "toRaw": () => (/* binding */ toRaw),
  8061. /* harmony export */ "toRef": () => (/* binding */ toRef),
  8062. /* harmony export */ "toRefs": () => (/* binding */ toRefs),
  8063. /* harmony export */ "track": () => (/* binding */ track),
  8064. /* harmony export */ "trigger": () => (/* binding */ trigger),
  8065. /* harmony export */ "triggerRef": () => (/* binding */ triggerRef),
  8066. /* harmony export */ "unref": () => (/* binding */ unref)
  8067. /* harmony export */ });
  8068. /* harmony import */ var _vue_shared__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vue/shared */ "./node_modules/@vue/shared/dist/shared.esm-bundler.js");
  8069. function warn(msg, ...args) {
  8070. console.warn(`[Vue warn] ${msg}`, ...args);
  8071. }
  8072. let activeEffectScope;
  8073. class EffectScope {
  8074. constructor(detached = false) {
  8075. /**
  8076. * @internal
  8077. */
  8078. this.active = true;
  8079. /**
  8080. * @internal
  8081. */
  8082. this.effects = [];
  8083. /**
  8084. * @internal
  8085. */
  8086. this.cleanups = [];
  8087. if (!detached && activeEffectScope) {
  8088. this.parent = activeEffectScope;
  8089. this.index =
  8090. (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(this) - 1;
  8091. }
  8092. }
  8093. run(fn) {
  8094. if (this.active) {
  8095. const currentEffectScope = activeEffectScope;
  8096. try {
  8097. activeEffectScope = this;
  8098. return fn();
  8099. }
  8100. finally {
  8101. activeEffectScope = currentEffectScope;
  8102. }
  8103. }
  8104. else if ((true)) {
  8105. warn(`cannot run an inactive effect scope.`);
  8106. }
  8107. }
  8108. /**
  8109. * This should only be called on non-detached scopes
  8110. * @internal
  8111. */
  8112. on() {
  8113. activeEffectScope = this;
  8114. }
  8115. /**
  8116. * This should only be called on non-detached scopes
  8117. * @internal
  8118. */
  8119. off() {
  8120. activeEffectScope = this.parent;
  8121. }
  8122. stop(fromParent) {
  8123. if (this.active) {
  8124. let i, l;
  8125. for (i = 0, l = this.effects.length; i < l; i++) {
  8126. this.effects[i].stop();
  8127. }
  8128. for (i = 0, l = this.cleanups.length; i < l; i++) {
  8129. this.cleanups[i]();
  8130. }
  8131. if (this.scopes) {
  8132. for (i = 0, l = this.scopes.length; i < l; i++) {
  8133. this.scopes[i].stop(true);
  8134. }
  8135. }
  8136. // nested scope, dereference from parent to avoid memory leaks
  8137. if (this.parent && !fromParent) {
  8138. // optimized O(1) removal
  8139. const last = this.parent.scopes.pop();
  8140. if (last && last !== this) {
  8141. this.parent.scopes[this.index] = last;
  8142. last.index = this.index;
  8143. }
  8144. }
  8145. this.active = false;
  8146. }
  8147. }
  8148. }
  8149. function effectScope(detached) {
  8150. return new EffectScope(detached);
  8151. }
  8152. function recordEffectScope(effect, scope = activeEffectScope) {
  8153. if (scope && scope.active) {
  8154. scope.effects.push(effect);
  8155. }
  8156. }
  8157. function getCurrentScope() {
  8158. return activeEffectScope;
  8159. }
  8160. function onScopeDispose(fn) {
  8161. if (activeEffectScope) {
  8162. activeEffectScope.cleanups.push(fn);
  8163. }
  8164. else if ((true)) {
  8165. warn(`onScopeDispose() is called when there is no active effect scope` +
  8166. ` to be associated with.`);
  8167. }
  8168. }
  8169. const createDep = (effects) => {
  8170. const dep = new Set(effects);
  8171. dep.w = 0;
  8172. dep.n = 0;
  8173. return dep;
  8174. };
  8175. const wasTracked = (dep) => (dep.w & trackOpBit) > 0;
  8176. const newTracked = (dep) => (dep.n & trackOpBit) > 0;
  8177. const initDepMarkers = ({ deps }) => {
  8178. if (deps.length) {
  8179. for (let i = 0; i < deps.length; i++) {
  8180. deps[i].w |= trackOpBit; // set was tracked
  8181. }
  8182. }
  8183. };
  8184. const finalizeDepMarkers = (effect) => {
  8185. const { deps } = effect;
  8186. if (deps.length) {
  8187. let ptr = 0;
  8188. for (let i = 0; i < deps.length; i++) {
  8189. const dep = deps[i];
  8190. if (wasTracked(dep) && !newTracked(dep)) {
  8191. dep.delete(effect);
  8192. }
  8193. else {
  8194. deps[ptr++] = dep;
  8195. }
  8196. // clear bits
  8197. dep.w &= ~trackOpBit;
  8198. dep.n &= ~trackOpBit;
  8199. }
  8200. deps.length = ptr;
  8201. }
  8202. };
  8203. const targetMap = new WeakMap();
  8204. // The number of effects currently being tracked recursively.
  8205. let effectTrackDepth = 0;
  8206. let trackOpBit = 1;
  8207. /**
  8208. * The bitwise track markers support at most 30 levels of recursion.
  8209. * This value is chosen to enable modern JS engines to use a SMI on all platforms.
  8210. * When recursion depth is greater, fall back to using a full cleanup.
  8211. */
  8212. const maxMarkerBits = 30;
  8213. let activeEffect;
  8214. const ITERATE_KEY = Symbol(( true) ? 'iterate' : 0);
  8215. const MAP_KEY_ITERATE_KEY = Symbol(( true) ? 'Map key iterate' : 0);
  8216. class ReactiveEffect {
  8217. constructor(fn, scheduler = null, scope) {
  8218. this.fn = fn;
  8219. this.scheduler = scheduler;
  8220. this.active = true;
  8221. this.deps = [];
  8222. this.parent = undefined;
  8223. recordEffectScope(this, scope);
  8224. }
  8225. run() {
  8226. if (!this.active) {
  8227. return this.fn();
  8228. }
  8229. let parent = activeEffect;
  8230. let lastShouldTrack = shouldTrack;
  8231. while (parent) {
  8232. if (parent === this) {
  8233. return;
  8234. }
  8235. parent = parent.parent;
  8236. }
  8237. try {
  8238. this.parent = activeEffect;
  8239. activeEffect = this;
  8240. shouldTrack = true;
  8241. trackOpBit = 1 << ++effectTrackDepth;
  8242. if (effectTrackDepth <= maxMarkerBits) {
  8243. initDepMarkers(this);
  8244. }
  8245. else {
  8246. cleanupEffect(this);
  8247. }
  8248. return this.fn();
  8249. }
  8250. finally {
  8251. if (effectTrackDepth <= maxMarkerBits) {
  8252. finalizeDepMarkers(this);
  8253. }
  8254. trackOpBit = 1 << --effectTrackDepth;
  8255. activeEffect = this.parent;
  8256. shouldTrack = lastShouldTrack;
  8257. this.parent = undefined;
  8258. if (this.deferStop) {
  8259. this.stop();
  8260. }
  8261. }
  8262. }
  8263. stop() {
  8264. // stopped while running itself - defer the cleanup
  8265. if (activeEffect === this) {
  8266. this.deferStop = true;
  8267. }
  8268. else if (this.active) {
  8269. cleanupEffect(this);
  8270. if (this.onStop) {
  8271. this.onStop();
  8272. }
  8273. this.active = false;
  8274. }
  8275. }
  8276. }
  8277. function cleanupEffect(effect) {
  8278. const { deps } = effect;
  8279. if (deps.length) {
  8280. for (let i = 0; i < deps.length; i++) {
  8281. deps[i].delete(effect);
  8282. }
  8283. deps.length = 0;
  8284. }
  8285. }
  8286. function effect(fn, options) {
  8287. if (fn.effect) {
  8288. fn = fn.effect.fn;
  8289. }
  8290. const _effect = new ReactiveEffect(fn);
  8291. if (options) {
  8292. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)(_effect, options);
  8293. if (options.scope)
  8294. recordEffectScope(_effect, options.scope);
  8295. }
  8296. if (!options || !options.lazy) {
  8297. _effect.run();
  8298. }
  8299. const runner = _effect.run.bind(_effect);
  8300. runner.effect = _effect;
  8301. return runner;
  8302. }
  8303. function stop(runner) {
  8304. runner.effect.stop();
  8305. }
  8306. let shouldTrack = true;
  8307. const trackStack = [];
  8308. function pauseTracking() {
  8309. trackStack.push(shouldTrack);
  8310. shouldTrack = false;
  8311. }
  8312. function enableTracking() {
  8313. trackStack.push(shouldTrack);
  8314. shouldTrack = true;
  8315. }
  8316. function resetTracking() {
  8317. const last = trackStack.pop();
  8318. shouldTrack = last === undefined ? true : last;
  8319. }
  8320. function track(target, type, key) {
  8321. if (shouldTrack && activeEffect) {
  8322. let depsMap = targetMap.get(target);
  8323. if (!depsMap) {
  8324. targetMap.set(target, (depsMap = new Map()));
  8325. }
  8326. let dep = depsMap.get(key);
  8327. if (!dep) {
  8328. depsMap.set(key, (dep = createDep()));
  8329. }
  8330. const eventInfo = ( true)
  8331. ? { effect: activeEffect, target, type, key }
  8332. : 0;
  8333. trackEffects(dep, eventInfo);
  8334. }
  8335. }
  8336. function trackEffects(dep, debuggerEventExtraInfo) {
  8337. let shouldTrack = false;
  8338. if (effectTrackDepth <= maxMarkerBits) {
  8339. if (!newTracked(dep)) {
  8340. dep.n |= trackOpBit; // set newly tracked
  8341. shouldTrack = !wasTracked(dep);
  8342. }
  8343. }
  8344. else {
  8345. // Full cleanup mode.
  8346. shouldTrack = !dep.has(activeEffect);
  8347. }
  8348. if (shouldTrack) {
  8349. dep.add(activeEffect);
  8350. activeEffect.deps.push(dep);
  8351. if (( true) && activeEffect.onTrack) {
  8352. activeEffect.onTrack(Object.assign({ effect: activeEffect }, debuggerEventExtraInfo));
  8353. }
  8354. }
  8355. }
  8356. function trigger(target, type, key, newValue, oldValue, oldTarget) {
  8357. const depsMap = targetMap.get(target);
  8358. if (!depsMap) {
  8359. // never been tracked
  8360. return;
  8361. }
  8362. let deps = [];
  8363. if (type === "clear" /* CLEAR */) {
  8364. // collection being cleared
  8365. // trigger all effects for target
  8366. deps = [...depsMap.values()];
  8367. }
  8368. else if (key === 'length' && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(target)) {
  8369. depsMap.forEach((dep, key) => {
  8370. if (key === 'length' || key >= newValue) {
  8371. deps.push(dep);
  8372. }
  8373. });
  8374. }
  8375. else {
  8376. // schedule runs for SET | ADD | DELETE
  8377. if (key !== void 0) {
  8378. deps.push(depsMap.get(key));
  8379. }
  8380. // also run for iteration key on ADD | DELETE | Map.SET
  8381. switch (type) {
  8382. case "add" /* ADD */:
  8383. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(target)) {
  8384. deps.push(depsMap.get(ITERATE_KEY));
  8385. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isMap)(target)) {
  8386. deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));
  8387. }
  8388. }
  8389. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isIntegerKey)(key)) {
  8390. // new index added to array -> length changes
  8391. deps.push(depsMap.get('length'));
  8392. }
  8393. break;
  8394. case "delete" /* DELETE */:
  8395. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(target)) {
  8396. deps.push(depsMap.get(ITERATE_KEY));
  8397. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isMap)(target)) {
  8398. deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));
  8399. }
  8400. }
  8401. break;
  8402. case "set" /* SET */:
  8403. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isMap)(target)) {
  8404. deps.push(depsMap.get(ITERATE_KEY));
  8405. }
  8406. break;
  8407. }
  8408. }
  8409. const eventInfo = ( true)
  8410. ? { target, type, key, newValue, oldValue, oldTarget }
  8411. : 0;
  8412. if (deps.length === 1) {
  8413. if (deps[0]) {
  8414. if ((true)) {
  8415. triggerEffects(deps[0], eventInfo);
  8416. }
  8417. else {}
  8418. }
  8419. }
  8420. else {
  8421. const effects = [];
  8422. for (const dep of deps) {
  8423. if (dep) {
  8424. effects.push(...dep);
  8425. }
  8426. }
  8427. if ((true)) {
  8428. triggerEffects(createDep(effects), eventInfo);
  8429. }
  8430. else {}
  8431. }
  8432. }
  8433. function triggerEffects(dep, debuggerEventExtraInfo) {
  8434. // spread into array for stabilization
  8435. for (const effect of (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(dep) ? dep : [...dep]) {
  8436. if (effect !== activeEffect || effect.allowRecurse) {
  8437. if (( true) && effect.onTrigger) {
  8438. effect.onTrigger((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)({ effect }, debuggerEventExtraInfo));
  8439. }
  8440. if (effect.scheduler) {
  8441. effect.scheduler();
  8442. }
  8443. else {
  8444. effect.run();
  8445. }
  8446. }
  8447. }
  8448. }
  8449. const isNonTrackableKeys = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.makeMap)(`__proto__,__v_isRef,__isVue`);
  8450. const builtInSymbols = new Set(
  8451. /*#__PURE__*/
  8452. Object.getOwnPropertyNames(Symbol)
  8453. .map(key => Symbol[key])
  8454. .filter(_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isSymbol));
  8455. const get = /*#__PURE__*/ createGetter();
  8456. const shallowGet = /*#__PURE__*/ createGetter(false, true);
  8457. const readonlyGet = /*#__PURE__*/ createGetter(true);
  8458. const shallowReadonlyGet = /*#__PURE__*/ createGetter(true, true);
  8459. const arrayInstrumentations = /*#__PURE__*/ createArrayInstrumentations();
  8460. function createArrayInstrumentations() {
  8461. const instrumentations = {};
  8462. ['includes', 'indexOf', 'lastIndexOf'].forEach(key => {
  8463. instrumentations[key] = function (...args) {
  8464. const arr = toRaw(this);
  8465. for (let i = 0, l = this.length; i < l; i++) {
  8466. track(arr, "get" /* GET */, i + '');
  8467. }
  8468. // we run the method using the original args first (which may be reactive)
  8469. const res = arr[key](...args);
  8470. if (res === -1 || res === false) {
  8471. // if that didn't work, run it again using raw values.
  8472. return arr[key](...args.map(toRaw));
  8473. }
  8474. else {
  8475. return res;
  8476. }
  8477. };
  8478. });
  8479. ['push', 'pop', 'shift', 'unshift', 'splice'].forEach(key => {
  8480. instrumentations[key] = function (...args) {
  8481. pauseTracking();
  8482. const res = toRaw(this)[key].apply(this, args);
  8483. resetTracking();
  8484. return res;
  8485. };
  8486. });
  8487. return instrumentations;
  8488. }
  8489. function createGetter(isReadonly = false, shallow = false) {
  8490. return function get(target, key, receiver) {
  8491. if (key === "__v_isReactive" /* IS_REACTIVE */) {
  8492. return !isReadonly;
  8493. }
  8494. else if (key === "__v_isReadonly" /* IS_READONLY */) {
  8495. return isReadonly;
  8496. }
  8497. else if (key === "__v_isShallow" /* IS_SHALLOW */) {
  8498. return shallow;
  8499. }
  8500. else if (key === "__v_raw" /* RAW */ &&
  8501. receiver ===
  8502. (isReadonly
  8503. ? shallow
  8504. ? shallowReadonlyMap
  8505. : readonlyMap
  8506. : shallow
  8507. ? shallowReactiveMap
  8508. : reactiveMap).get(target)) {
  8509. return target;
  8510. }
  8511. const targetIsArray = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(target);
  8512. if (!isReadonly && targetIsArray && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.hasOwn)(arrayInstrumentations, key)) {
  8513. return Reflect.get(arrayInstrumentations, key, receiver);
  8514. }
  8515. const res = Reflect.get(target, key, receiver);
  8516. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isSymbol)(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {
  8517. return res;
  8518. }
  8519. if (!isReadonly) {
  8520. track(target, "get" /* GET */, key);
  8521. }
  8522. if (shallow) {
  8523. return res;
  8524. }
  8525. if (isRef(res)) {
  8526. // ref unwrapping - does not apply for Array + integer key.
  8527. const shouldUnwrap = !targetIsArray || !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isIntegerKey)(key);
  8528. return shouldUnwrap ? res.value : res;
  8529. }
  8530. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isObject)(res)) {
  8531. // Convert returned value into a proxy as well. we do the isObject check
  8532. // here to avoid invalid value warning. Also need to lazy access readonly
  8533. // and reactive here to avoid circular dependency.
  8534. return isReadonly ? readonly(res) : reactive(res);
  8535. }
  8536. return res;
  8537. };
  8538. }
  8539. const set = /*#__PURE__*/ createSetter();
  8540. const shallowSet = /*#__PURE__*/ createSetter(true);
  8541. function createSetter(shallow = false) {
  8542. return function set(target, key, value, receiver) {
  8543. let oldValue = target[key];
  8544. if (isReadonly(oldValue) && isRef(oldValue) && !isRef(value)) {
  8545. return false;
  8546. }
  8547. if (!shallow && !isReadonly(value)) {
  8548. if (!isShallow(value)) {
  8549. value = toRaw(value);
  8550. oldValue = toRaw(oldValue);
  8551. }
  8552. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(target) && isRef(oldValue) && !isRef(value)) {
  8553. oldValue.value = value;
  8554. return true;
  8555. }
  8556. }
  8557. const hadKey = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(target) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isIntegerKey)(key)
  8558. ? Number(key) < target.length
  8559. : (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.hasOwn)(target, key);
  8560. const result = Reflect.set(target, key, value, receiver);
  8561. // don't trigger if target is something up in the prototype chain of original
  8562. if (target === toRaw(receiver)) {
  8563. if (!hadKey) {
  8564. trigger(target, "add" /* ADD */, key, value);
  8565. }
  8566. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.hasChanged)(value, oldValue)) {
  8567. trigger(target, "set" /* SET */, key, value, oldValue);
  8568. }
  8569. }
  8570. return result;
  8571. };
  8572. }
  8573. function deleteProperty(target, key) {
  8574. const hadKey = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.hasOwn)(target, key);
  8575. const oldValue = target[key];
  8576. const result = Reflect.deleteProperty(target, key);
  8577. if (result && hadKey) {
  8578. trigger(target, "delete" /* DELETE */, key, undefined, oldValue);
  8579. }
  8580. return result;
  8581. }
  8582. function has(target, key) {
  8583. const result = Reflect.has(target, key);
  8584. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isSymbol)(key) || !builtInSymbols.has(key)) {
  8585. track(target, "has" /* HAS */, key);
  8586. }
  8587. return result;
  8588. }
  8589. function ownKeys(target) {
  8590. track(target, "iterate" /* ITERATE */, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(target) ? 'length' : ITERATE_KEY);
  8591. return Reflect.ownKeys(target);
  8592. }
  8593. const mutableHandlers = {
  8594. get,
  8595. set,
  8596. deleteProperty,
  8597. has,
  8598. ownKeys
  8599. };
  8600. const readonlyHandlers = {
  8601. get: readonlyGet,
  8602. set(target, key) {
  8603. if ((true)) {
  8604. warn(`Set operation on key "${String(key)}" failed: target is readonly.`, target);
  8605. }
  8606. return true;
  8607. },
  8608. deleteProperty(target, key) {
  8609. if ((true)) {
  8610. warn(`Delete operation on key "${String(key)}" failed: target is readonly.`, target);
  8611. }
  8612. return true;
  8613. }
  8614. };
  8615. const shallowReactiveHandlers = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)({}, mutableHandlers, {
  8616. get: shallowGet,
  8617. set: shallowSet
  8618. });
  8619. // Props handlers are special in the sense that it should not unwrap top-level
  8620. // refs (in order to allow refs to be explicitly passed down), but should
  8621. // retain the reactivity of the normal readonly object.
  8622. const shallowReadonlyHandlers = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)({}, readonlyHandlers, {
  8623. get: shallowReadonlyGet
  8624. });
  8625. const toShallow = (value) => value;
  8626. const getProto = (v) => Reflect.getPrototypeOf(v);
  8627. function get$1(target, key, isReadonly = false, isShallow = false) {
  8628. // #1772: readonly(reactive(Map)) should return readonly + reactive version
  8629. // of the value
  8630. target = target["__v_raw" /* RAW */];
  8631. const rawTarget = toRaw(target);
  8632. const rawKey = toRaw(key);
  8633. if (key !== rawKey) {
  8634. !isReadonly && track(rawTarget, "get" /* GET */, key);
  8635. }
  8636. !isReadonly && track(rawTarget, "get" /* GET */, rawKey);
  8637. const { has } = getProto(rawTarget);
  8638. const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
  8639. if (has.call(rawTarget, key)) {
  8640. return wrap(target.get(key));
  8641. }
  8642. else if (has.call(rawTarget, rawKey)) {
  8643. return wrap(target.get(rawKey));
  8644. }
  8645. else if (target !== rawTarget) {
  8646. // #3602 readonly(reactive(Map))
  8647. // ensure that the nested reactive `Map` can do tracking for itself
  8648. target.get(key);
  8649. }
  8650. }
  8651. function has$1(key, isReadonly = false) {
  8652. const target = this["__v_raw" /* RAW */];
  8653. const rawTarget = toRaw(target);
  8654. const rawKey = toRaw(key);
  8655. if (key !== rawKey) {
  8656. !isReadonly && track(rawTarget, "has" /* HAS */, key);
  8657. }
  8658. !isReadonly && track(rawTarget, "has" /* HAS */, rawKey);
  8659. return key === rawKey
  8660. ? target.has(key)
  8661. : target.has(key) || target.has(rawKey);
  8662. }
  8663. function size(target, isReadonly = false) {
  8664. target = target["__v_raw" /* RAW */];
  8665. !isReadonly && track(toRaw(target), "iterate" /* ITERATE */, ITERATE_KEY);
  8666. return Reflect.get(target, 'size', target);
  8667. }
  8668. function add(value) {
  8669. value = toRaw(value);
  8670. const target = toRaw(this);
  8671. const proto = getProto(target);
  8672. const hadKey = proto.has.call(target, value);
  8673. if (!hadKey) {
  8674. target.add(value);
  8675. trigger(target, "add" /* ADD */, value, value);
  8676. }
  8677. return this;
  8678. }
  8679. function set$1(key, value) {
  8680. value = toRaw(value);
  8681. const target = toRaw(this);
  8682. const { has, get } = getProto(target);
  8683. let hadKey = has.call(target, key);
  8684. if (!hadKey) {
  8685. key = toRaw(key);
  8686. hadKey = has.call(target, key);
  8687. }
  8688. else if ((true)) {
  8689. checkIdentityKeys(target, has, key);
  8690. }
  8691. const oldValue = get.call(target, key);
  8692. target.set(key, value);
  8693. if (!hadKey) {
  8694. trigger(target, "add" /* ADD */, key, value);
  8695. }
  8696. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.hasChanged)(value, oldValue)) {
  8697. trigger(target, "set" /* SET */, key, value, oldValue);
  8698. }
  8699. return this;
  8700. }
  8701. function deleteEntry(key) {
  8702. const target = toRaw(this);
  8703. const { has, get } = getProto(target);
  8704. let hadKey = has.call(target, key);
  8705. if (!hadKey) {
  8706. key = toRaw(key);
  8707. hadKey = has.call(target, key);
  8708. }
  8709. else if ((true)) {
  8710. checkIdentityKeys(target, has, key);
  8711. }
  8712. const oldValue = get ? get.call(target, key) : undefined;
  8713. // forward the operation before queueing reactions
  8714. const result = target.delete(key);
  8715. if (hadKey) {
  8716. trigger(target, "delete" /* DELETE */, key, undefined, oldValue);
  8717. }
  8718. return result;
  8719. }
  8720. function clear() {
  8721. const target = toRaw(this);
  8722. const hadItems = target.size !== 0;
  8723. const oldTarget = ( true)
  8724. ? (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isMap)(target)
  8725. ? new Map(target)
  8726. : new Set(target)
  8727. : 0;
  8728. // forward the operation before queueing reactions
  8729. const result = target.clear();
  8730. if (hadItems) {
  8731. trigger(target, "clear" /* CLEAR */, undefined, undefined, oldTarget);
  8732. }
  8733. return result;
  8734. }
  8735. function createForEach(isReadonly, isShallow) {
  8736. return function forEach(callback, thisArg) {
  8737. const observed = this;
  8738. const target = observed["__v_raw" /* RAW */];
  8739. const rawTarget = toRaw(target);
  8740. const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
  8741. !isReadonly && track(rawTarget, "iterate" /* ITERATE */, ITERATE_KEY);
  8742. return target.forEach((value, key) => {
  8743. // important: make sure the callback is
  8744. // 1. invoked with the reactive map as `this` and 3rd arg
  8745. // 2. the value received should be a corresponding reactive/readonly.
  8746. return callback.call(thisArg, wrap(value), wrap(key), observed);
  8747. });
  8748. };
  8749. }
  8750. function createIterableMethod(method, isReadonly, isShallow) {
  8751. return function (...args) {
  8752. const target = this["__v_raw" /* RAW */];
  8753. const rawTarget = toRaw(target);
  8754. const targetIsMap = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isMap)(rawTarget);
  8755. const isPair = method === 'entries' || (method === Symbol.iterator && targetIsMap);
  8756. const isKeyOnly = method === 'keys' && targetIsMap;
  8757. const innerIterator = target[method](...args);
  8758. const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
  8759. !isReadonly &&
  8760. track(rawTarget, "iterate" /* ITERATE */, isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY);
  8761. // return a wrapped iterator which returns observed versions of the
  8762. // values emitted from the real iterator
  8763. return {
  8764. // iterator protocol
  8765. next() {
  8766. const { value, done } = innerIterator.next();
  8767. return done
  8768. ? { value, done }
  8769. : {
  8770. value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),
  8771. done
  8772. };
  8773. },
  8774. // iterable protocol
  8775. [Symbol.iterator]() {
  8776. return this;
  8777. }
  8778. };
  8779. };
  8780. }
  8781. function createReadonlyMethod(type) {
  8782. return function (...args) {
  8783. if ((true)) {
  8784. const key = args[0] ? `on key "${args[0]}" ` : ``;
  8785. console.warn(`${(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.capitalize)(type)} operation ${key}failed: target is readonly.`, toRaw(this));
  8786. }
  8787. return type === "delete" /* DELETE */ ? false : this;
  8788. };
  8789. }
  8790. function createInstrumentations() {
  8791. const mutableInstrumentations = {
  8792. get(key) {
  8793. return get$1(this, key);
  8794. },
  8795. get size() {
  8796. return size(this);
  8797. },
  8798. has: has$1,
  8799. add,
  8800. set: set$1,
  8801. delete: deleteEntry,
  8802. clear,
  8803. forEach: createForEach(false, false)
  8804. };
  8805. const shallowInstrumentations = {
  8806. get(key) {
  8807. return get$1(this, key, false, true);
  8808. },
  8809. get size() {
  8810. return size(this);
  8811. },
  8812. has: has$1,
  8813. add,
  8814. set: set$1,
  8815. delete: deleteEntry,
  8816. clear,
  8817. forEach: createForEach(false, true)
  8818. };
  8819. const readonlyInstrumentations = {
  8820. get(key) {
  8821. return get$1(this, key, true);
  8822. },
  8823. get size() {
  8824. return size(this, true);
  8825. },
  8826. has(key) {
  8827. return has$1.call(this, key, true);
  8828. },
  8829. add: createReadonlyMethod("add" /* ADD */),
  8830. set: createReadonlyMethod("set" /* SET */),
  8831. delete: createReadonlyMethod("delete" /* DELETE */),
  8832. clear: createReadonlyMethod("clear" /* CLEAR */),
  8833. forEach: createForEach(true, false)
  8834. };
  8835. const shallowReadonlyInstrumentations = {
  8836. get(key) {
  8837. return get$1(this, key, true, true);
  8838. },
  8839. get size() {
  8840. return size(this, true);
  8841. },
  8842. has(key) {
  8843. return has$1.call(this, key, true);
  8844. },
  8845. add: createReadonlyMethod("add" /* ADD */),
  8846. set: createReadonlyMethod("set" /* SET */),
  8847. delete: createReadonlyMethod("delete" /* DELETE */),
  8848. clear: createReadonlyMethod("clear" /* CLEAR */),
  8849. forEach: createForEach(true, true)
  8850. };
  8851. const iteratorMethods = ['keys', 'values', 'entries', Symbol.iterator];
  8852. iteratorMethods.forEach(method => {
  8853. mutableInstrumentations[method] = createIterableMethod(method, false, false);
  8854. readonlyInstrumentations[method] = createIterableMethod(method, true, false);
  8855. shallowInstrumentations[method] = createIterableMethod(method, false, true);
  8856. shallowReadonlyInstrumentations[method] = createIterableMethod(method, true, true);
  8857. });
  8858. return [
  8859. mutableInstrumentations,
  8860. readonlyInstrumentations,
  8861. shallowInstrumentations,
  8862. shallowReadonlyInstrumentations
  8863. ];
  8864. }
  8865. const [mutableInstrumentations, readonlyInstrumentations, shallowInstrumentations, shallowReadonlyInstrumentations] = /* #__PURE__*/ createInstrumentations();
  8866. function createInstrumentationGetter(isReadonly, shallow) {
  8867. const instrumentations = shallow
  8868. ? isReadonly
  8869. ? shallowReadonlyInstrumentations
  8870. : shallowInstrumentations
  8871. : isReadonly
  8872. ? readonlyInstrumentations
  8873. : mutableInstrumentations;
  8874. return (target, key, receiver) => {
  8875. if (key === "__v_isReactive" /* IS_REACTIVE */) {
  8876. return !isReadonly;
  8877. }
  8878. else if (key === "__v_isReadonly" /* IS_READONLY */) {
  8879. return isReadonly;
  8880. }
  8881. else if (key === "__v_raw" /* RAW */) {
  8882. return target;
  8883. }
  8884. return Reflect.get((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.hasOwn)(instrumentations, key) && key in target
  8885. ? instrumentations
  8886. : target, key, receiver);
  8887. };
  8888. }
  8889. const mutableCollectionHandlers = {
  8890. get: /*#__PURE__*/ createInstrumentationGetter(false, false)
  8891. };
  8892. const shallowCollectionHandlers = {
  8893. get: /*#__PURE__*/ createInstrumentationGetter(false, true)
  8894. };
  8895. const readonlyCollectionHandlers = {
  8896. get: /*#__PURE__*/ createInstrumentationGetter(true, false)
  8897. };
  8898. const shallowReadonlyCollectionHandlers = {
  8899. get: /*#__PURE__*/ createInstrumentationGetter(true, true)
  8900. };
  8901. function checkIdentityKeys(target, has, key) {
  8902. const rawKey = toRaw(key);
  8903. if (rawKey !== key && has.call(target, rawKey)) {
  8904. const type = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.toRawType)(target);
  8905. console.warn(`Reactive ${type} contains both the raw and reactive ` +
  8906. `versions of the same object${type === `Map` ? ` as keys` : ``}, ` +
  8907. `which can lead to inconsistencies. ` +
  8908. `Avoid differentiating between the raw and reactive versions ` +
  8909. `of an object and only use the reactive version if possible.`);
  8910. }
  8911. }
  8912. const reactiveMap = new WeakMap();
  8913. const shallowReactiveMap = new WeakMap();
  8914. const readonlyMap = new WeakMap();
  8915. const shallowReadonlyMap = new WeakMap();
  8916. function targetTypeMap(rawType) {
  8917. switch (rawType) {
  8918. case 'Object':
  8919. case 'Array':
  8920. return 1 /* COMMON */;
  8921. case 'Map':
  8922. case 'Set':
  8923. case 'WeakMap':
  8924. case 'WeakSet':
  8925. return 2 /* COLLECTION */;
  8926. default:
  8927. return 0 /* INVALID */;
  8928. }
  8929. }
  8930. function getTargetType(value) {
  8931. return value["__v_skip" /* SKIP */] || !Object.isExtensible(value)
  8932. ? 0 /* INVALID */
  8933. : targetTypeMap((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.toRawType)(value));
  8934. }
  8935. function reactive(target) {
  8936. // if trying to observe a readonly proxy, return the readonly version.
  8937. if (isReadonly(target)) {
  8938. return target;
  8939. }
  8940. return createReactiveObject(target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap);
  8941. }
  8942. /**
  8943. * Return a shallowly-reactive copy of the original object, where only the root
  8944. * level properties are reactive. It also does not auto-unwrap refs (even at the
  8945. * root level).
  8946. */
  8947. function shallowReactive(target) {
  8948. return createReactiveObject(target, false, shallowReactiveHandlers, shallowCollectionHandlers, shallowReactiveMap);
  8949. }
  8950. /**
  8951. * Creates a readonly copy of the original object. Note the returned copy is not
  8952. * made reactive, but `readonly` can be called on an already reactive object.
  8953. */
  8954. function readonly(target) {
  8955. return createReactiveObject(target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap);
  8956. }
  8957. /**
  8958. * Returns a reactive-copy of the original object, where only the root level
  8959. * properties are readonly, and does NOT unwrap refs nor recursively convert
  8960. * returned properties.
  8961. * This is used for creating the props proxy object for stateful components.
  8962. */
  8963. function shallowReadonly(target) {
  8964. return createReactiveObject(target, true, shallowReadonlyHandlers, shallowReadonlyCollectionHandlers, shallowReadonlyMap);
  8965. }
  8966. function createReactiveObject(target, isReadonly, baseHandlers, collectionHandlers, proxyMap) {
  8967. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isObject)(target)) {
  8968. if ((true)) {
  8969. console.warn(`value cannot be made reactive: ${String(target)}`);
  8970. }
  8971. return target;
  8972. }
  8973. // target is already a Proxy, return it.
  8974. // exception: calling readonly() on a reactive object
  8975. if (target["__v_raw" /* RAW */] &&
  8976. !(isReadonly && target["__v_isReactive" /* IS_REACTIVE */])) {
  8977. return target;
  8978. }
  8979. // target already has corresponding Proxy
  8980. const existingProxy = proxyMap.get(target);
  8981. if (existingProxy) {
  8982. return existingProxy;
  8983. }
  8984. // only a whitelist of value types can be observed.
  8985. const targetType = getTargetType(target);
  8986. if (targetType === 0 /* INVALID */) {
  8987. return target;
  8988. }
  8989. const proxy = new Proxy(target, targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers);
  8990. proxyMap.set(target, proxy);
  8991. return proxy;
  8992. }
  8993. function isReactive(value) {
  8994. if (isReadonly(value)) {
  8995. return isReactive(value["__v_raw" /* RAW */]);
  8996. }
  8997. return !!(value && value["__v_isReactive" /* IS_REACTIVE */]);
  8998. }
  8999. function isReadonly(value) {
  9000. return !!(value && value["__v_isReadonly" /* IS_READONLY */]);
  9001. }
  9002. function isShallow(value) {
  9003. return !!(value && value["__v_isShallow" /* IS_SHALLOW */]);
  9004. }
  9005. function isProxy(value) {
  9006. return isReactive(value) || isReadonly(value);
  9007. }
  9008. function toRaw(observed) {
  9009. const raw = observed && observed["__v_raw" /* RAW */];
  9010. return raw ? toRaw(raw) : observed;
  9011. }
  9012. function markRaw(value) {
  9013. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.def)(value, "__v_skip" /* SKIP */, true);
  9014. return value;
  9015. }
  9016. const toReactive = (value) => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isObject)(value) ? reactive(value) : value;
  9017. const toReadonly = (value) => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isObject)(value) ? readonly(value) : value;
  9018. function trackRefValue(ref) {
  9019. if (shouldTrack && activeEffect) {
  9020. ref = toRaw(ref);
  9021. if ((true)) {
  9022. trackEffects(ref.dep || (ref.dep = createDep()), {
  9023. target: ref,
  9024. type: "get" /* GET */,
  9025. key: 'value'
  9026. });
  9027. }
  9028. else {}
  9029. }
  9030. }
  9031. function triggerRefValue(ref, newVal) {
  9032. ref = toRaw(ref);
  9033. if (ref.dep) {
  9034. if ((true)) {
  9035. triggerEffects(ref.dep, {
  9036. target: ref,
  9037. type: "set" /* SET */,
  9038. key: 'value',
  9039. newValue: newVal
  9040. });
  9041. }
  9042. else {}
  9043. }
  9044. }
  9045. function isRef(r) {
  9046. return !!(r && r.__v_isRef === true);
  9047. }
  9048. function ref(value) {
  9049. return createRef(value, false);
  9050. }
  9051. function shallowRef(value) {
  9052. return createRef(value, true);
  9053. }
  9054. function createRef(rawValue, shallow) {
  9055. if (isRef(rawValue)) {
  9056. return rawValue;
  9057. }
  9058. return new RefImpl(rawValue, shallow);
  9059. }
  9060. class RefImpl {
  9061. constructor(value, __v_isShallow) {
  9062. this.__v_isShallow = __v_isShallow;
  9063. this.dep = undefined;
  9064. this.__v_isRef = true;
  9065. this._rawValue = __v_isShallow ? value : toRaw(value);
  9066. this._value = __v_isShallow ? value : toReactive(value);
  9067. }
  9068. get value() {
  9069. trackRefValue(this);
  9070. return this._value;
  9071. }
  9072. set value(newVal) {
  9073. newVal = this.__v_isShallow ? newVal : toRaw(newVal);
  9074. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.hasChanged)(newVal, this._rawValue)) {
  9075. this._rawValue = newVal;
  9076. this._value = this.__v_isShallow ? newVal : toReactive(newVal);
  9077. triggerRefValue(this, newVal);
  9078. }
  9079. }
  9080. }
  9081. function triggerRef(ref) {
  9082. triggerRefValue(ref, ( true) ? ref.value : 0);
  9083. }
  9084. function unref(ref) {
  9085. return isRef(ref) ? ref.value : ref;
  9086. }
  9087. const shallowUnwrapHandlers = {
  9088. get: (target, key, receiver) => unref(Reflect.get(target, key, receiver)),
  9089. set: (target, key, value, receiver) => {
  9090. const oldValue = target[key];
  9091. if (isRef(oldValue) && !isRef(value)) {
  9092. oldValue.value = value;
  9093. return true;
  9094. }
  9095. else {
  9096. return Reflect.set(target, key, value, receiver);
  9097. }
  9098. }
  9099. };
  9100. function proxyRefs(objectWithRefs) {
  9101. return isReactive(objectWithRefs)
  9102. ? objectWithRefs
  9103. : new Proxy(objectWithRefs, shallowUnwrapHandlers);
  9104. }
  9105. class CustomRefImpl {
  9106. constructor(factory) {
  9107. this.dep = undefined;
  9108. this.__v_isRef = true;
  9109. const { get, set } = factory(() => trackRefValue(this), () => triggerRefValue(this));
  9110. this._get = get;
  9111. this._set = set;
  9112. }
  9113. get value() {
  9114. return this._get();
  9115. }
  9116. set value(newVal) {
  9117. this._set(newVal);
  9118. }
  9119. }
  9120. function customRef(factory) {
  9121. return new CustomRefImpl(factory);
  9122. }
  9123. function toRefs(object) {
  9124. if (( true) && !isProxy(object)) {
  9125. console.warn(`toRefs() expects a reactive object but received a plain one.`);
  9126. }
  9127. const ret = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(object) ? new Array(object.length) : {};
  9128. for (const key in object) {
  9129. ret[key] = toRef(object, key);
  9130. }
  9131. return ret;
  9132. }
  9133. class ObjectRefImpl {
  9134. constructor(_object, _key, _defaultValue) {
  9135. this._object = _object;
  9136. this._key = _key;
  9137. this._defaultValue = _defaultValue;
  9138. this.__v_isRef = true;
  9139. }
  9140. get value() {
  9141. const val = this._object[this._key];
  9142. return val === undefined ? this._defaultValue : val;
  9143. }
  9144. set value(newVal) {
  9145. this._object[this._key] = newVal;
  9146. }
  9147. }
  9148. function toRef(object, key, defaultValue) {
  9149. const val = object[key];
  9150. return isRef(val)
  9151. ? val
  9152. : new ObjectRefImpl(object, key, defaultValue);
  9153. }
  9154. class ComputedRefImpl {
  9155. constructor(getter, _setter, isReadonly, isSSR) {
  9156. this._setter = _setter;
  9157. this.dep = undefined;
  9158. this.__v_isRef = true;
  9159. this._dirty = true;
  9160. this.effect = new ReactiveEffect(getter, () => {
  9161. if (!this._dirty) {
  9162. this._dirty = true;
  9163. triggerRefValue(this);
  9164. }
  9165. });
  9166. this.effect.computed = this;
  9167. this.effect.active = this._cacheable = !isSSR;
  9168. this["__v_isReadonly" /* IS_READONLY */] = isReadonly;
  9169. }
  9170. get value() {
  9171. // the computed ref may get wrapped by other proxies e.g. readonly() #3376
  9172. const self = toRaw(this);
  9173. trackRefValue(self);
  9174. if (self._dirty || !self._cacheable) {
  9175. self._dirty = false;
  9176. self._value = self.effect.run();
  9177. }
  9178. return self._value;
  9179. }
  9180. set value(newValue) {
  9181. this._setter(newValue);
  9182. }
  9183. }
  9184. function computed(getterOrOptions, debugOptions, isSSR = false) {
  9185. let getter;
  9186. let setter;
  9187. const onlyGetter = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isFunction)(getterOrOptions);
  9188. if (onlyGetter) {
  9189. getter = getterOrOptions;
  9190. setter = ( true)
  9191. ? () => {
  9192. console.warn('Write operation failed: computed value is readonly');
  9193. }
  9194. : 0;
  9195. }
  9196. else {
  9197. getter = getterOrOptions.get;
  9198. setter = getterOrOptions.set;
  9199. }
  9200. const cRef = new ComputedRefImpl(getter, setter, onlyGetter || !setter, isSSR);
  9201. if (( true) && debugOptions && !isSSR) {
  9202. cRef.effect.onTrack = debugOptions.onTrack;
  9203. cRef.effect.onTrigger = debugOptions.onTrigger;
  9204. }
  9205. return cRef;
  9206. }
  9207. var _a;
  9208. const tick = /*#__PURE__*/ Promise.resolve();
  9209. const queue = [];
  9210. let queued = false;
  9211. const scheduler = (fn) => {
  9212. queue.push(fn);
  9213. if (!queued) {
  9214. queued = true;
  9215. tick.then(flush);
  9216. }
  9217. };
  9218. const flush = () => {
  9219. for (let i = 0; i < queue.length; i++) {
  9220. queue[i]();
  9221. }
  9222. queue.length = 0;
  9223. queued = false;
  9224. };
  9225. class DeferredComputedRefImpl {
  9226. constructor(getter) {
  9227. this.dep = undefined;
  9228. this._dirty = true;
  9229. this.__v_isRef = true;
  9230. this[_a] = true;
  9231. let compareTarget;
  9232. let hasCompareTarget = false;
  9233. let scheduled = false;
  9234. this.effect = new ReactiveEffect(getter, (computedTrigger) => {
  9235. if (this.dep) {
  9236. if (computedTrigger) {
  9237. compareTarget = this._value;
  9238. hasCompareTarget = true;
  9239. }
  9240. else if (!scheduled) {
  9241. const valueToCompare = hasCompareTarget ? compareTarget : this._value;
  9242. scheduled = true;
  9243. hasCompareTarget = false;
  9244. scheduler(() => {
  9245. if (this.effect.active && this._get() !== valueToCompare) {
  9246. triggerRefValue(this);
  9247. }
  9248. scheduled = false;
  9249. });
  9250. }
  9251. // chained upstream computeds are notified synchronously to ensure
  9252. // value invalidation in case of sync access; normal effects are
  9253. // deferred to be triggered in scheduler.
  9254. for (const e of this.dep) {
  9255. if (e.computed instanceof DeferredComputedRefImpl) {
  9256. e.scheduler(true /* computedTrigger */);
  9257. }
  9258. }
  9259. }
  9260. this._dirty = true;
  9261. });
  9262. this.effect.computed = this;
  9263. }
  9264. _get() {
  9265. if (this._dirty) {
  9266. this._dirty = false;
  9267. return (this._value = this.effect.run());
  9268. }
  9269. return this._value;
  9270. }
  9271. get value() {
  9272. trackRefValue(this);
  9273. // the computed ref may get wrapped by other proxies e.g. readonly() #3376
  9274. return toRaw(this)._get();
  9275. }
  9276. }
  9277. _a = "__v_isReadonly" /* IS_READONLY */;
  9278. function deferredComputed(getter) {
  9279. return new DeferredComputedRefImpl(getter);
  9280. }
  9281. /***/ }),
  9282. /***/ "./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js":
  9283. /*!*************************************************************************!*\
  9284. !*** ./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js ***!
  9285. \*************************************************************************/
  9286. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  9287. "use strict";
  9288. __webpack_require__.r(__webpack_exports__);
  9289. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  9290. /* harmony export */ "BaseTransition": () => (/* binding */ BaseTransition),
  9291. /* harmony export */ "Comment": () => (/* binding */ Comment),
  9292. /* harmony export */ "EffectScope": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.EffectScope),
  9293. /* harmony export */ "Fragment": () => (/* binding */ Fragment),
  9294. /* harmony export */ "KeepAlive": () => (/* binding */ KeepAlive),
  9295. /* harmony export */ "ReactiveEffect": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.ReactiveEffect),
  9296. /* harmony export */ "Static": () => (/* binding */ Static),
  9297. /* harmony export */ "Suspense": () => (/* binding */ Suspense),
  9298. /* harmony export */ "Teleport": () => (/* binding */ Teleport),
  9299. /* harmony export */ "Text": () => (/* binding */ Text),
  9300. /* harmony export */ "callWithAsyncErrorHandling": () => (/* binding */ callWithAsyncErrorHandling),
  9301. /* harmony export */ "callWithErrorHandling": () => (/* binding */ callWithErrorHandling),
  9302. /* harmony export */ "camelize": () => (/* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize),
  9303. /* harmony export */ "capitalize": () => (/* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_1__.capitalize),
  9304. /* harmony export */ "cloneVNode": () => (/* binding */ cloneVNode),
  9305. /* harmony export */ "compatUtils": () => (/* binding */ compatUtils),
  9306. /* harmony export */ "computed": () => (/* binding */ computed),
  9307. /* harmony export */ "createBlock": () => (/* binding */ createBlock),
  9308. /* harmony export */ "createCommentVNode": () => (/* binding */ createCommentVNode),
  9309. /* harmony export */ "createElementBlock": () => (/* binding */ createElementBlock),
  9310. /* harmony export */ "createElementVNode": () => (/* binding */ createBaseVNode),
  9311. /* harmony export */ "createHydrationRenderer": () => (/* binding */ createHydrationRenderer),
  9312. /* harmony export */ "createPropsRestProxy": () => (/* binding */ createPropsRestProxy),
  9313. /* harmony export */ "createRenderer": () => (/* binding */ createRenderer),
  9314. /* harmony export */ "createSlots": () => (/* binding */ createSlots),
  9315. /* harmony export */ "createStaticVNode": () => (/* binding */ createStaticVNode),
  9316. /* harmony export */ "createTextVNode": () => (/* binding */ createTextVNode),
  9317. /* harmony export */ "createVNode": () => (/* binding */ createVNode),
  9318. /* harmony export */ "customRef": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.customRef),
  9319. /* harmony export */ "defineAsyncComponent": () => (/* binding */ defineAsyncComponent),
  9320. /* harmony export */ "defineComponent": () => (/* binding */ defineComponent),
  9321. /* harmony export */ "defineEmits": () => (/* binding */ defineEmits),
  9322. /* harmony export */ "defineExpose": () => (/* binding */ defineExpose),
  9323. /* harmony export */ "defineProps": () => (/* binding */ defineProps),
  9324. /* harmony export */ "devtools": () => (/* binding */ devtools),
  9325. /* harmony export */ "effect": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.effect),
  9326. /* harmony export */ "effectScope": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.effectScope),
  9327. /* harmony export */ "getCurrentInstance": () => (/* binding */ getCurrentInstance),
  9328. /* harmony export */ "getCurrentScope": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.getCurrentScope),
  9329. /* harmony export */ "getTransitionRawChildren": () => (/* binding */ getTransitionRawChildren),
  9330. /* harmony export */ "guardReactiveProps": () => (/* binding */ guardReactiveProps),
  9331. /* harmony export */ "h": () => (/* binding */ h),
  9332. /* harmony export */ "handleError": () => (/* binding */ handleError),
  9333. /* harmony export */ "initCustomFormatter": () => (/* binding */ initCustomFormatter),
  9334. /* harmony export */ "inject": () => (/* binding */ inject),
  9335. /* harmony export */ "isMemoSame": () => (/* binding */ isMemoSame),
  9336. /* harmony export */ "isProxy": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isProxy),
  9337. /* harmony export */ "isReactive": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReactive),
  9338. /* harmony export */ "isReadonly": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReadonly),
  9339. /* harmony export */ "isRef": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef),
  9340. /* harmony export */ "isRuntimeOnly": () => (/* binding */ isRuntimeOnly),
  9341. /* harmony export */ "isShallow": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isShallow),
  9342. /* harmony export */ "isVNode": () => (/* binding */ isVNode),
  9343. /* harmony export */ "markRaw": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.markRaw),
  9344. /* harmony export */ "mergeDefaults": () => (/* binding */ mergeDefaults),
  9345. /* harmony export */ "mergeProps": () => (/* binding */ mergeProps),
  9346. /* harmony export */ "nextTick": () => (/* binding */ nextTick),
  9347. /* harmony export */ "normalizeClass": () => (/* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_1__.normalizeClass),
  9348. /* harmony export */ "normalizeProps": () => (/* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_1__.normalizeProps),
  9349. /* harmony export */ "normalizeStyle": () => (/* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_1__.normalizeStyle),
  9350. /* harmony export */ "onActivated": () => (/* binding */ onActivated),
  9351. /* harmony export */ "onBeforeMount": () => (/* binding */ onBeforeMount),
  9352. /* harmony export */ "onBeforeUnmount": () => (/* binding */ onBeforeUnmount),
  9353. /* harmony export */ "onBeforeUpdate": () => (/* binding */ onBeforeUpdate),
  9354. /* harmony export */ "onDeactivated": () => (/* binding */ onDeactivated),
  9355. /* harmony export */ "onErrorCaptured": () => (/* binding */ onErrorCaptured),
  9356. /* harmony export */ "onMounted": () => (/* binding */ onMounted),
  9357. /* harmony export */ "onRenderTracked": () => (/* binding */ onRenderTracked),
  9358. /* harmony export */ "onRenderTriggered": () => (/* binding */ onRenderTriggered),
  9359. /* harmony export */ "onScopeDispose": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.onScopeDispose),
  9360. /* harmony export */ "onServerPrefetch": () => (/* binding */ onServerPrefetch),
  9361. /* harmony export */ "onUnmounted": () => (/* binding */ onUnmounted),
  9362. /* harmony export */ "onUpdated": () => (/* binding */ onUpdated),
  9363. /* harmony export */ "openBlock": () => (/* binding */ openBlock),
  9364. /* harmony export */ "popScopeId": () => (/* binding */ popScopeId),
  9365. /* harmony export */ "provide": () => (/* binding */ provide),
  9366. /* harmony export */ "proxyRefs": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.proxyRefs),
  9367. /* harmony export */ "pushScopeId": () => (/* binding */ pushScopeId),
  9368. /* harmony export */ "queuePostFlushCb": () => (/* binding */ queuePostFlushCb),
  9369. /* harmony export */ "reactive": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.reactive),
  9370. /* harmony export */ "readonly": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.readonly),
  9371. /* harmony export */ "ref": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.ref),
  9372. /* harmony export */ "registerRuntimeCompiler": () => (/* binding */ registerRuntimeCompiler),
  9373. /* harmony export */ "renderList": () => (/* binding */ renderList),
  9374. /* harmony export */ "renderSlot": () => (/* binding */ renderSlot),
  9375. /* harmony export */ "resolveComponent": () => (/* binding */ resolveComponent),
  9376. /* harmony export */ "resolveDirective": () => (/* binding */ resolveDirective),
  9377. /* harmony export */ "resolveDynamicComponent": () => (/* binding */ resolveDynamicComponent),
  9378. /* harmony export */ "resolveFilter": () => (/* binding */ resolveFilter),
  9379. /* harmony export */ "resolveTransitionHooks": () => (/* binding */ resolveTransitionHooks),
  9380. /* harmony export */ "setBlockTracking": () => (/* binding */ setBlockTracking),
  9381. /* harmony export */ "setDevtoolsHook": () => (/* binding */ setDevtoolsHook),
  9382. /* harmony export */ "setTransitionHooks": () => (/* binding */ setTransitionHooks),
  9383. /* harmony export */ "shallowReactive": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReactive),
  9384. /* harmony export */ "shallowReadonly": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly),
  9385. /* harmony export */ "shallowRef": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowRef),
  9386. /* harmony export */ "ssrContextKey": () => (/* binding */ ssrContextKey),
  9387. /* harmony export */ "ssrUtils": () => (/* binding */ ssrUtils),
  9388. /* harmony export */ "stop": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.stop),
  9389. /* harmony export */ "toDisplayString": () => (/* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_1__.toDisplayString),
  9390. /* harmony export */ "toHandlerKey": () => (/* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey),
  9391. /* harmony export */ "toHandlers": () => (/* binding */ toHandlers),
  9392. /* harmony export */ "toRaw": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw),
  9393. /* harmony export */ "toRef": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRef),
  9394. /* harmony export */ "toRefs": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRefs),
  9395. /* harmony export */ "transformVNodeArgs": () => (/* binding */ transformVNodeArgs),
  9396. /* harmony export */ "triggerRef": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.triggerRef),
  9397. /* harmony export */ "unref": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.unref),
  9398. /* harmony export */ "useAttrs": () => (/* binding */ useAttrs),
  9399. /* harmony export */ "useSSRContext": () => (/* binding */ useSSRContext),
  9400. /* harmony export */ "useSlots": () => (/* binding */ useSlots),
  9401. /* harmony export */ "useTransitionState": () => (/* binding */ useTransitionState),
  9402. /* harmony export */ "version": () => (/* binding */ version),
  9403. /* harmony export */ "warn": () => (/* binding */ warn),
  9404. /* harmony export */ "watch": () => (/* binding */ watch),
  9405. /* harmony export */ "watchEffect": () => (/* binding */ watchEffect),
  9406. /* harmony export */ "watchPostEffect": () => (/* binding */ watchPostEffect),
  9407. /* harmony export */ "watchSyncEffect": () => (/* binding */ watchSyncEffect),
  9408. /* harmony export */ "withAsyncContext": () => (/* binding */ withAsyncContext),
  9409. /* harmony export */ "withCtx": () => (/* binding */ withCtx),
  9410. /* harmony export */ "withDefaults": () => (/* binding */ withDefaults),
  9411. /* harmony export */ "withDirectives": () => (/* binding */ withDirectives),
  9412. /* harmony export */ "withMemo": () => (/* binding */ withMemo),
  9413. /* harmony export */ "withScopeId": () => (/* binding */ withScopeId)
  9414. /* harmony export */ });
  9415. /* harmony import */ var _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vue/reactivity */ "./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js");
  9416. /* harmony import */ var _vue_shared__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @vue/shared */ "./node_modules/@vue/shared/dist/shared.esm-bundler.js");
  9417. const stack = [];
  9418. function pushWarningContext(vnode) {
  9419. stack.push(vnode);
  9420. }
  9421. function popWarningContext() {
  9422. stack.pop();
  9423. }
  9424. function warn(msg, ...args) {
  9425. // avoid props formatting or warn handler tracking deps that might be mutated
  9426. // during patch, leading to infinite recursion.
  9427. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.pauseTracking)();
  9428. const instance = stack.length ? stack[stack.length - 1].component : null;
  9429. const appWarnHandler = instance && instance.appContext.config.warnHandler;
  9430. const trace = getComponentTrace();
  9431. if (appWarnHandler) {
  9432. callWithErrorHandling(appWarnHandler, instance, 11 /* APP_WARN_HANDLER */, [
  9433. msg + args.join(''),
  9434. instance && instance.proxy,
  9435. trace
  9436. .map(({ vnode }) => `at <${formatComponentName(instance, vnode.type)}>`)
  9437. .join('\n'),
  9438. trace
  9439. ]);
  9440. }
  9441. else {
  9442. const warnArgs = [`[Vue warn]: ${msg}`, ...args];
  9443. /* istanbul ignore if */
  9444. if (trace.length &&
  9445. // avoid spamming console during tests
  9446. !false) {
  9447. warnArgs.push(`\n`, ...formatTrace(trace));
  9448. }
  9449. console.warn(...warnArgs);
  9450. }
  9451. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.resetTracking)();
  9452. }
  9453. function getComponentTrace() {
  9454. let currentVNode = stack[stack.length - 1];
  9455. if (!currentVNode) {
  9456. return [];
  9457. }
  9458. // we can't just use the stack because it will be incomplete during updates
  9459. // that did not start from the root. Re-construct the parent chain using
  9460. // instance parent pointers.
  9461. const normalizedStack = [];
  9462. while (currentVNode) {
  9463. const last = normalizedStack[0];
  9464. if (last && last.vnode === currentVNode) {
  9465. last.recurseCount++;
  9466. }
  9467. else {
  9468. normalizedStack.push({
  9469. vnode: currentVNode,
  9470. recurseCount: 0
  9471. });
  9472. }
  9473. const parentInstance = currentVNode.component && currentVNode.component.parent;
  9474. currentVNode = parentInstance && parentInstance.vnode;
  9475. }
  9476. return normalizedStack;
  9477. }
  9478. /* istanbul ignore next */
  9479. function formatTrace(trace) {
  9480. const logs = [];
  9481. trace.forEach((entry, i) => {
  9482. logs.push(...(i === 0 ? [] : [`\n`]), ...formatTraceEntry(entry));
  9483. });
  9484. return logs;
  9485. }
  9486. function formatTraceEntry({ vnode, recurseCount }) {
  9487. const postfix = recurseCount > 0 ? `... (${recurseCount} recursive calls)` : ``;
  9488. const isRoot = vnode.component ? vnode.component.parent == null : false;
  9489. const open = ` at <${formatComponentName(vnode.component, vnode.type, isRoot)}`;
  9490. const close = `>` + postfix;
  9491. return vnode.props
  9492. ? [open, ...formatProps(vnode.props), close]
  9493. : [open + close];
  9494. }
  9495. /* istanbul ignore next */
  9496. function formatProps(props) {
  9497. const res = [];
  9498. const keys = Object.keys(props);
  9499. keys.slice(0, 3).forEach(key => {
  9500. res.push(...formatProp(key, props[key]));
  9501. });
  9502. if (keys.length > 3) {
  9503. res.push(` ...`);
  9504. }
  9505. return res;
  9506. }
  9507. /* istanbul ignore next */
  9508. function formatProp(key, value, raw) {
  9509. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(value)) {
  9510. value = JSON.stringify(value);
  9511. return raw ? value : [`${key}=${value}`];
  9512. }
  9513. else if (typeof value === 'number' ||
  9514. typeof value === 'boolean' ||
  9515. value == null) {
  9516. return raw ? value : [`${key}=${value}`];
  9517. }
  9518. else if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(value)) {
  9519. value = formatProp(key, (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(value.value), true);
  9520. return raw ? value : [`${key}=Ref<`, value, `>`];
  9521. }
  9522. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(value)) {
  9523. return [`${key}=fn${value.name ? `<${value.name}>` : ``}`];
  9524. }
  9525. else {
  9526. value = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(value);
  9527. return raw ? value : [`${key}=`, value];
  9528. }
  9529. }
  9530. const ErrorTypeStrings = {
  9531. ["sp" /* SERVER_PREFETCH */]: 'serverPrefetch hook',
  9532. ["bc" /* BEFORE_CREATE */]: 'beforeCreate hook',
  9533. ["c" /* CREATED */]: 'created hook',
  9534. ["bm" /* BEFORE_MOUNT */]: 'beforeMount hook',
  9535. ["m" /* MOUNTED */]: 'mounted hook',
  9536. ["bu" /* BEFORE_UPDATE */]: 'beforeUpdate hook',
  9537. ["u" /* UPDATED */]: 'updated',
  9538. ["bum" /* BEFORE_UNMOUNT */]: 'beforeUnmount hook',
  9539. ["um" /* UNMOUNTED */]: 'unmounted hook',
  9540. ["a" /* ACTIVATED */]: 'activated hook',
  9541. ["da" /* DEACTIVATED */]: 'deactivated hook',
  9542. ["ec" /* ERROR_CAPTURED */]: 'errorCaptured hook',
  9543. ["rtc" /* RENDER_TRACKED */]: 'renderTracked hook',
  9544. ["rtg" /* RENDER_TRIGGERED */]: 'renderTriggered hook',
  9545. [0 /* SETUP_FUNCTION */]: 'setup function',
  9546. [1 /* RENDER_FUNCTION */]: 'render function',
  9547. [2 /* WATCH_GETTER */]: 'watcher getter',
  9548. [3 /* WATCH_CALLBACK */]: 'watcher callback',
  9549. [4 /* WATCH_CLEANUP */]: 'watcher cleanup function',
  9550. [5 /* NATIVE_EVENT_HANDLER */]: 'native event handler',
  9551. [6 /* COMPONENT_EVENT_HANDLER */]: 'component event handler',
  9552. [7 /* VNODE_HOOK */]: 'vnode hook',
  9553. [8 /* DIRECTIVE_HOOK */]: 'directive hook',
  9554. [9 /* TRANSITION_HOOK */]: 'transition hook',
  9555. [10 /* APP_ERROR_HANDLER */]: 'app errorHandler',
  9556. [11 /* APP_WARN_HANDLER */]: 'app warnHandler',
  9557. [12 /* FUNCTION_REF */]: 'ref function',
  9558. [13 /* ASYNC_COMPONENT_LOADER */]: 'async component loader',
  9559. [14 /* SCHEDULER */]: 'scheduler flush. This is likely a Vue internals bug. ' +
  9560. 'Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core'
  9561. };
  9562. function callWithErrorHandling(fn, instance, type, args) {
  9563. let res;
  9564. try {
  9565. res = args ? fn(...args) : fn();
  9566. }
  9567. catch (err) {
  9568. handleError(err, instance, type);
  9569. }
  9570. return res;
  9571. }
  9572. function callWithAsyncErrorHandling(fn, instance, type, args) {
  9573. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(fn)) {
  9574. const res = callWithErrorHandling(fn, instance, type, args);
  9575. if (res && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isPromise)(res)) {
  9576. res.catch(err => {
  9577. handleError(err, instance, type);
  9578. });
  9579. }
  9580. return res;
  9581. }
  9582. const values = [];
  9583. for (let i = 0; i < fn.length; i++) {
  9584. values.push(callWithAsyncErrorHandling(fn[i], instance, type, args));
  9585. }
  9586. return values;
  9587. }
  9588. function handleError(err, instance, type, throwInDev = true) {
  9589. const contextVNode = instance ? instance.vnode : null;
  9590. if (instance) {
  9591. let cur = instance.parent;
  9592. // the exposed instance is the render proxy to keep it consistent with 2.x
  9593. const exposedInstance = instance.proxy;
  9594. // in production the hook receives only the error code
  9595. const errorInfo = ( true) ? ErrorTypeStrings[type] : 0;
  9596. while (cur) {
  9597. const errorCapturedHooks = cur.ec;
  9598. if (errorCapturedHooks) {
  9599. for (let i = 0; i < errorCapturedHooks.length; i++) {
  9600. if (errorCapturedHooks[i](err, exposedInstance, errorInfo) === false) {
  9601. return;
  9602. }
  9603. }
  9604. }
  9605. cur = cur.parent;
  9606. }
  9607. // app-level handling
  9608. const appErrorHandler = instance.appContext.config.errorHandler;
  9609. if (appErrorHandler) {
  9610. callWithErrorHandling(appErrorHandler, null, 10 /* APP_ERROR_HANDLER */, [err, exposedInstance, errorInfo]);
  9611. return;
  9612. }
  9613. }
  9614. logError(err, type, contextVNode, throwInDev);
  9615. }
  9616. function logError(err, type, contextVNode, throwInDev = true) {
  9617. if ((true)) {
  9618. const info = ErrorTypeStrings[type];
  9619. if (contextVNode) {
  9620. pushWarningContext(contextVNode);
  9621. }
  9622. warn(`Unhandled error${info ? ` during execution of ${info}` : ``}`);
  9623. if (contextVNode) {
  9624. popWarningContext();
  9625. }
  9626. // crash in dev by default so it's more noticeable
  9627. if (throwInDev) {
  9628. throw err;
  9629. }
  9630. else {
  9631. console.error(err);
  9632. }
  9633. }
  9634. else {}
  9635. }
  9636. let isFlushing = false;
  9637. let isFlushPending = false;
  9638. const queue = [];
  9639. let flushIndex = 0;
  9640. const pendingPreFlushCbs = [];
  9641. let activePreFlushCbs = null;
  9642. let preFlushIndex = 0;
  9643. const pendingPostFlushCbs = [];
  9644. let activePostFlushCbs = null;
  9645. let postFlushIndex = 0;
  9646. const resolvedPromise = /*#__PURE__*/ Promise.resolve();
  9647. let currentFlushPromise = null;
  9648. let currentPreFlushParentJob = null;
  9649. const RECURSION_LIMIT = 100;
  9650. function nextTick(fn) {
  9651. const p = currentFlushPromise || resolvedPromise;
  9652. return fn ? p.then(this ? fn.bind(this) : fn) : p;
  9653. }
  9654. // #2768
  9655. // Use binary-search to find a suitable position in the queue,
  9656. // so that the queue maintains the increasing order of job's id,
  9657. // which can prevent the job from being skipped and also can avoid repeated patching.
  9658. function findInsertionIndex(id) {
  9659. // the start index should be `flushIndex + 1`
  9660. let start = flushIndex + 1;
  9661. let end = queue.length;
  9662. while (start < end) {
  9663. const middle = (start + end) >>> 1;
  9664. const middleJobId = getId(queue[middle]);
  9665. middleJobId < id ? (start = middle + 1) : (end = middle);
  9666. }
  9667. return start;
  9668. }
  9669. function queueJob(job) {
  9670. // the dedupe search uses the startIndex argument of Array.includes()
  9671. // by default the search index includes the current job that is being run
  9672. // so it cannot recursively trigger itself again.
  9673. // if the job is a watch() callback, the search will start with a +1 index to
  9674. // allow it recursively trigger itself - it is the user's responsibility to
  9675. // ensure it doesn't end up in an infinite loop.
  9676. if ((!queue.length ||
  9677. !queue.includes(job, isFlushing && job.allowRecurse ? flushIndex + 1 : flushIndex)) &&
  9678. job !== currentPreFlushParentJob) {
  9679. if (job.id == null) {
  9680. queue.push(job);
  9681. }
  9682. else {
  9683. queue.splice(findInsertionIndex(job.id), 0, job);
  9684. }
  9685. queueFlush();
  9686. }
  9687. }
  9688. function queueFlush() {
  9689. if (!isFlushing && !isFlushPending) {
  9690. isFlushPending = true;
  9691. currentFlushPromise = resolvedPromise.then(flushJobs);
  9692. }
  9693. }
  9694. function invalidateJob(job) {
  9695. const i = queue.indexOf(job);
  9696. if (i > flushIndex) {
  9697. queue.splice(i, 1);
  9698. }
  9699. }
  9700. function queueCb(cb, activeQueue, pendingQueue, index) {
  9701. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(cb)) {
  9702. if (!activeQueue ||
  9703. !activeQueue.includes(cb, cb.allowRecurse ? index + 1 : index)) {
  9704. pendingQueue.push(cb);
  9705. }
  9706. }
  9707. else {
  9708. // if cb is an array, it is a component lifecycle hook which can only be
  9709. // triggered by a job, which is already deduped in the main queue, so
  9710. // we can skip duplicate check here to improve perf
  9711. pendingQueue.push(...cb);
  9712. }
  9713. queueFlush();
  9714. }
  9715. function queuePreFlushCb(cb) {
  9716. queueCb(cb, activePreFlushCbs, pendingPreFlushCbs, preFlushIndex);
  9717. }
  9718. function queuePostFlushCb(cb) {
  9719. queueCb(cb, activePostFlushCbs, pendingPostFlushCbs, postFlushIndex);
  9720. }
  9721. function flushPreFlushCbs(seen, parentJob = null) {
  9722. if (pendingPreFlushCbs.length) {
  9723. currentPreFlushParentJob = parentJob;
  9724. activePreFlushCbs = [...new Set(pendingPreFlushCbs)];
  9725. pendingPreFlushCbs.length = 0;
  9726. if ((true)) {
  9727. seen = seen || new Map();
  9728. }
  9729. for (preFlushIndex = 0; preFlushIndex < activePreFlushCbs.length; preFlushIndex++) {
  9730. if (( true) &&
  9731. checkRecursiveUpdates(seen, activePreFlushCbs[preFlushIndex])) {
  9732. continue;
  9733. }
  9734. activePreFlushCbs[preFlushIndex]();
  9735. }
  9736. activePreFlushCbs = null;
  9737. preFlushIndex = 0;
  9738. currentPreFlushParentJob = null;
  9739. // recursively flush until it drains
  9740. flushPreFlushCbs(seen, parentJob);
  9741. }
  9742. }
  9743. function flushPostFlushCbs(seen) {
  9744. if (pendingPostFlushCbs.length) {
  9745. const deduped = [...new Set(pendingPostFlushCbs)];
  9746. pendingPostFlushCbs.length = 0;
  9747. // #1947 already has active queue, nested flushPostFlushCbs call
  9748. if (activePostFlushCbs) {
  9749. activePostFlushCbs.push(...deduped);
  9750. return;
  9751. }
  9752. activePostFlushCbs = deduped;
  9753. if ((true)) {
  9754. seen = seen || new Map();
  9755. }
  9756. activePostFlushCbs.sort((a, b) => getId(a) - getId(b));
  9757. for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) {
  9758. if (( true) &&
  9759. checkRecursiveUpdates(seen, activePostFlushCbs[postFlushIndex])) {
  9760. continue;
  9761. }
  9762. activePostFlushCbs[postFlushIndex]();
  9763. }
  9764. activePostFlushCbs = null;
  9765. postFlushIndex = 0;
  9766. }
  9767. }
  9768. const getId = (job) => job.id == null ? Infinity : job.id;
  9769. function flushJobs(seen) {
  9770. isFlushPending = false;
  9771. isFlushing = true;
  9772. if ((true)) {
  9773. seen = seen || new Map();
  9774. }
  9775. flushPreFlushCbs(seen);
  9776. // Sort queue before flush.
  9777. // This ensures that:
  9778. // 1. Components are updated from parent to child. (because parent is always
  9779. // created before the child so its render effect will have smaller
  9780. // priority number)
  9781. // 2. If a component is unmounted during a parent component's update,
  9782. // its update can be skipped.
  9783. queue.sort((a, b) => getId(a) - getId(b));
  9784. // conditional usage of checkRecursiveUpdate must be determined out of
  9785. // try ... catch block since Rollup by default de-optimizes treeshaking
  9786. // inside try-catch. This can leave all warning code unshaked. Although
  9787. // they would get eventually shaken by a minifier like terser, some minifiers
  9788. // would fail to do that (e.g. https://github.com/evanw/esbuild/issues/1610)
  9789. const check = ( true)
  9790. ? (job) => checkRecursiveUpdates(seen, job)
  9791. : 0;
  9792. try {
  9793. for (flushIndex = 0; flushIndex < queue.length; flushIndex++) {
  9794. const job = queue[flushIndex];
  9795. if (job && job.active !== false) {
  9796. if (( true) && check(job)) {
  9797. continue;
  9798. }
  9799. // console.log(`running:`, job.id)
  9800. callWithErrorHandling(job, null, 14 /* SCHEDULER */);
  9801. }
  9802. }
  9803. }
  9804. finally {
  9805. flushIndex = 0;
  9806. queue.length = 0;
  9807. flushPostFlushCbs(seen);
  9808. isFlushing = false;
  9809. currentFlushPromise = null;
  9810. // some postFlushCb queued jobs!
  9811. // keep flushing until it drains.
  9812. if (queue.length ||
  9813. pendingPreFlushCbs.length ||
  9814. pendingPostFlushCbs.length) {
  9815. flushJobs(seen);
  9816. }
  9817. }
  9818. }
  9819. function checkRecursiveUpdates(seen, fn) {
  9820. if (!seen.has(fn)) {
  9821. seen.set(fn, 1);
  9822. }
  9823. else {
  9824. const count = seen.get(fn);
  9825. if (count > RECURSION_LIMIT) {
  9826. const instance = fn.ownerInstance;
  9827. const componentName = instance && getComponentName(instance.type);
  9828. warn(`Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. ` +
  9829. `This means you have a reactive effect that is mutating its own ` +
  9830. `dependencies and thus recursively triggering itself. Possible sources ` +
  9831. `include component template, render function, updated hook or ` +
  9832. `watcher source function.`);
  9833. return true;
  9834. }
  9835. else {
  9836. seen.set(fn, count + 1);
  9837. }
  9838. }
  9839. }
  9840. /* eslint-disable no-restricted-globals */
  9841. let isHmrUpdating = false;
  9842. const hmrDirtyComponents = new Set();
  9843. // Expose the HMR runtime on the global object
  9844. // This makes it entirely tree-shakable without polluting the exports and makes
  9845. // it easier to be used in toolings like vue-loader
  9846. // Note: for a component to be eligible for HMR it also needs the __hmrId option
  9847. // to be set so that its instances can be registered / removed.
  9848. if ((true)) {
  9849. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.getGlobalThis)().__VUE_HMR_RUNTIME__ = {
  9850. createRecord: tryWrap(createRecord),
  9851. rerender: tryWrap(rerender),
  9852. reload: tryWrap(reload)
  9853. };
  9854. }
  9855. const map = new Map();
  9856. function registerHMR(instance) {
  9857. const id = instance.type.__hmrId;
  9858. let record = map.get(id);
  9859. if (!record) {
  9860. createRecord(id, instance.type);
  9861. record = map.get(id);
  9862. }
  9863. record.instances.add(instance);
  9864. }
  9865. function unregisterHMR(instance) {
  9866. map.get(instance.type.__hmrId).instances.delete(instance);
  9867. }
  9868. function createRecord(id, initialDef) {
  9869. if (map.has(id)) {
  9870. return false;
  9871. }
  9872. map.set(id, {
  9873. initialDef: normalizeClassComponent(initialDef),
  9874. instances: new Set()
  9875. });
  9876. return true;
  9877. }
  9878. function normalizeClassComponent(component) {
  9879. return isClassComponent(component) ? component.__vccOpts : component;
  9880. }
  9881. function rerender(id, newRender) {
  9882. const record = map.get(id);
  9883. if (!record) {
  9884. return;
  9885. }
  9886. // update initial record (for not-yet-rendered component)
  9887. record.initialDef.render = newRender;
  9888. [...record.instances].forEach(instance => {
  9889. if (newRender) {
  9890. instance.render = newRender;
  9891. normalizeClassComponent(instance.type).render = newRender;
  9892. }
  9893. instance.renderCache = [];
  9894. // this flag forces child components with slot content to update
  9895. isHmrUpdating = true;
  9896. instance.update();
  9897. isHmrUpdating = false;
  9898. });
  9899. }
  9900. function reload(id, newComp) {
  9901. const record = map.get(id);
  9902. if (!record)
  9903. return;
  9904. newComp = normalizeClassComponent(newComp);
  9905. // update initial def (for not-yet-rendered components)
  9906. updateComponentDef(record.initialDef, newComp);
  9907. // create a snapshot which avoids the set being mutated during updates
  9908. const instances = [...record.instances];
  9909. for (const instance of instances) {
  9910. const oldComp = normalizeClassComponent(instance.type);
  9911. if (!hmrDirtyComponents.has(oldComp)) {
  9912. // 1. Update existing comp definition to match new one
  9913. if (oldComp !== record.initialDef) {
  9914. updateComponentDef(oldComp, newComp);
  9915. }
  9916. // 2. mark definition dirty. This forces the renderer to replace the
  9917. // component on patch.
  9918. hmrDirtyComponents.add(oldComp);
  9919. }
  9920. // 3. invalidate options resolution cache
  9921. instance.appContext.optionsCache.delete(instance.type);
  9922. // 4. actually update
  9923. if (instance.ceReload) {
  9924. // custom element
  9925. hmrDirtyComponents.add(oldComp);
  9926. instance.ceReload(newComp.styles);
  9927. hmrDirtyComponents.delete(oldComp);
  9928. }
  9929. else if (instance.parent) {
  9930. // 4. Force the parent instance to re-render. This will cause all updated
  9931. // components to be unmounted and re-mounted. Queue the update so that we
  9932. // don't end up forcing the same parent to re-render multiple times.
  9933. queueJob(instance.parent.update);
  9934. // instance is the inner component of an async custom element
  9935. // invoke to reset styles
  9936. if (instance.parent.type.__asyncLoader &&
  9937. instance.parent.ceReload) {
  9938. instance.parent.ceReload(newComp.styles);
  9939. }
  9940. }
  9941. else if (instance.appContext.reload) {
  9942. // root instance mounted via createApp() has a reload method
  9943. instance.appContext.reload();
  9944. }
  9945. else if (typeof window !== 'undefined') {
  9946. // root instance inside tree created via raw render(). Force reload.
  9947. window.location.reload();
  9948. }
  9949. else {
  9950. console.warn('[HMR] Root or manually mounted instance modified. Full reload required.');
  9951. }
  9952. }
  9953. // 5. make sure to cleanup dirty hmr components after update
  9954. queuePostFlushCb(() => {
  9955. for (const instance of instances) {
  9956. hmrDirtyComponents.delete(normalizeClassComponent(instance.type));
  9957. }
  9958. });
  9959. }
  9960. function updateComponentDef(oldComp, newComp) {
  9961. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(oldComp, newComp);
  9962. for (const key in oldComp) {
  9963. if (key !== '__file' && !(key in newComp)) {
  9964. delete oldComp[key];
  9965. }
  9966. }
  9967. }
  9968. function tryWrap(fn) {
  9969. return (id, arg) => {
  9970. try {
  9971. return fn(id, arg);
  9972. }
  9973. catch (e) {
  9974. console.error(e);
  9975. console.warn(`[HMR] Something went wrong during Vue component hot-reload. ` +
  9976. `Full reload required.`);
  9977. }
  9978. };
  9979. }
  9980. let devtools;
  9981. let buffer = [];
  9982. let devtoolsNotInstalled = false;
  9983. function emit(event, ...args) {
  9984. if (devtools) {
  9985. devtools.emit(event, ...args);
  9986. }
  9987. else if (!devtoolsNotInstalled) {
  9988. buffer.push({ event, args });
  9989. }
  9990. }
  9991. function setDevtoolsHook(hook, target) {
  9992. var _a, _b;
  9993. devtools = hook;
  9994. if (devtools) {
  9995. devtools.enabled = true;
  9996. buffer.forEach(({ event, args }) => devtools.emit(event, ...args));
  9997. buffer = [];
  9998. }
  9999. else if (
  10000. // handle late devtools injection - only do this if we are in an actual
  10001. // browser environment to avoid the timer handle stalling test runner exit
  10002. // (#4815)
  10003. // eslint-disable-next-line no-restricted-globals
  10004. typeof window !== 'undefined' &&
  10005. // some envs mock window but not fully
  10006. window.HTMLElement &&
  10007. // also exclude jsdom
  10008. !((_b = (_a = window.navigator) === null || _a === void 0 ? void 0 : _a.userAgent) === null || _b === void 0 ? void 0 : _b.includes('jsdom'))) {
  10009. const replay = (target.__VUE_DEVTOOLS_HOOK_REPLAY__ =
  10010. target.__VUE_DEVTOOLS_HOOK_REPLAY__ || []);
  10011. replay.push((newHook) => {
  10012. setDevtoolsHook(newHook, target);
  10013. });
  10014. // clear buffer after 3s - the user probably doesn't have devtools installed
  10015. // at all, and keeping the buffer will cause memory leaks (#4738)
  10016. setTimeout(() => {
  10017. if (!devtools) {
  10018. target.__VUE_DEVTOOLS_HOOK_REPLAY__ = null;
  10019. devtoolsNotInstalled = true;
  10020. buffer = [];
  10021. }
  10022. }, 3000);
  10023. }
  10024. else {
  10025. // non-browser env, assume not installed
  10026. devtoolsNotInstalled = true;
  10027. buffer = [];
  10028. }
  10029. }
  10030. function devtoolsInitApp(app, version) {
  10031. emit("app:init" /* APP_INIT */, app, version, {
  10032. Fragment,
  10033. Text,
  10034. Comment,
  10035. Static
  10036. });
  10037. }
  10038. function devtoolsUnmountApp(app) {
  10039. emit("app:unmount" /* APP_UNMOUNT */, app);
  10040. }
  10041. const devtoolsComponentAdded = /*#__PURE__*/ createDevtoolsComponentHook("component:added" /* COMPONENT_ADDED */);
  10042. const devtoolsComponentUpdated =
  10043. /*#__PURE__*/ createDevtoolsComponentHook("component:updated" /* COMPONENT_UPDATED */);
  10044. const devtoolsComponentRemoved =
  10045. /*#__PURE__*/ createDevtoolsComponentHook("component:removed" /* COMPONENT_REMOVED */);
  10046. function createDevtoolsComponentHook(hook) {
  10047. return (component) => {
  10048. emit(hook, component.appContext.app, component.uid, component.parent ? component.parent.uid : undefined, component);
  10049. };
  10050. }
  10051. const devtoolsPerfStart = /*#__PURE__*/ createDevtoolsPerformanceHook("perf:start" /* PERFORMANCE_START */);
  10052. const devtoolsPerfEnd = /*#__PURE__*/ createDevtoolsPerformanceHook("perf:end" /* PERFORMANCE_END */);
  10053. function createDevtoolsPerformanceHook(hook) {
  10054. return (component, type, time) => {
  10055. emit(hook, component.appContext.app, component.uid, component, type, time);
  10056. };
  10057. }
  10058. function devtoolsComponentEmit(component, event, params) {
  10059. emit("component:emit" /* COMPONENT_EMIT */, component.appContext.app, component, event, params);
  10060. }
  10061. function emit$1(instance, event, ...rawArgs) {
  10062. if (instance.isUnmounted)
  10063. return;
  10064. const props = instance.vnode.props || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
  10065. if ((true)) {
  10066. const { emitsOptions, propsOptions: [propsOptions] } = instance;
  10067. if (emitsOptions) {
  10068. if (!(event in emitsOptions) &&
  10069. !(false )) {
  10070. if (!propsOptions || !((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey)(event) in propsOptions)) {
  10071. warn(`Component emitted event "${event}" but it is neither declared in ` +
  10072. `the emits option nor as an "${(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey)(event)}" prop.`);
  10073. }
  10074. }
  10075. else {
  10076. const validator = emitsOptions[event];
  10077. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(validator)) {
  10078. const isValid = validator(...rawArgs);
  10079. if (!isValid) {
  10080. warn(`Invalid event arguments: event validation failed for event "${event}".`);
  10081. }
  10082. }
  10083. }
  10084. }
  10085. }
  10086. let args = rawArgs;
  10087. const isModelListener = event.startsWith('update:');
  10088. // for v-model update:xxx events, apply modifiers on args
  10089. const modelArg = isModelListener && event.slice(7);
  10090. if (modelArg && modelArg in props) {
  10091. const modifiersKey = `${modelArg === 'modelValue' ? 'model' : modelArg}Modifiers`;
  10092. const { number, trim } = props[modifiersKey] || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
  10093. if (trim) {
  10094. args = rawArgs.map(a => a.trim());
  10095. }
  10096. else if (number) {
  10097. args = rawArgs.map(_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber);
  10098. }
  10099. }
  10100. if (true) {
  10101. devtoolsComponentEmit(instance, event, args);
  10102. }
  10103. if ((true)) {
  10104. const lowerCaseEvent = event.toLowerCase();
  10105. if (lowerCaseEvent !== event && props[(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey)(lowerCaseEvent)]) {
  10106. warn(`Event "${lowerCaseEvent}" is emitted in component ` +
  10107. `${formatComponentName(instance, instance.type)} but the handler is registered for "${event}". ` +
  10108. `Note that HTML attributes are case-insensitive and you cannot use ` +
  10109. `v-on to listen to camelCase events when using in-DOM templates. ` +
  10110. `You should probably use "${(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(event)}" instead of "${event}".`);
  10111. }
  10112. }
  10113. let handlerName;
  10114. let handler = props[(handlerName = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey)(event))] ||
  10115. // also try camelCase event handler (#2249)
  10116. props[(handlerName = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey)((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(event)))];
  10117. // for v-model update:xxx events, also trigger kebab-case equivalent
  10118. // for props passed via kebab-case
  10119. if (!handler && isModelListener) {
  10120. handler = props[(handlerName = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey)((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(event)))];
  10121. }
  10122. if (handler) {
  10123. callWithAsyncErrorHandling(handler, instance, 6 /* COMPONENT_EVENT_HANDLER */, args);
  10124. }
  10125. const onceHandler = props[handlerName + `Once`];
  10126. if (onceHandler) {
  10127. if (!instance.emitted) {
  10128. instance.emitted = {};
  10129. }
  10130. else if (instance.emitted[handlerName]) {
  10131. return;
  10132. }
  10133. instance.emitted[handlerName] = true;
  10134. callWithAsyncErrorHandling(onceHandler, instance, 6 /* COMPONENT_EVENT_HANDLER */, args);
  10135. }
  10136. }
  10137. function normalizeEmitsOptions(comp, appContext, asMixin = false) {
  10138. const cache = appContext.emitsCache;
  10139. const cached = cache.get(comp);
  10140. if (cached !== undefined) {
  10141. return cached;
  10142. }
  10143. const raw = comp.emits;
  10144. let normalized = {};
  10145. // apply mixin/extends props
  10146. let hasExtends = false;
  10147. if ( true && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(comp)) {
  10148. const extendEmits = (raw) => {
  10149. const normalizedFromExtend = normalizeEmitsOptions(raw, appContext, true);
  10150. if (normalizedFromExtend) {
  10151. hasExtends = true;
  10152. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(normalized, normalizedFromExtend);
  10153. }
  10154. };
  10155. if (!asMixin && appContext.mixins.length) {
  10156. appContext.mixins.forEach(extendEmits);
  10157. }
  10158. if (comp.extends) {
  10159. extendEmits(comp.extends);
  10160. }
  10161. if (comp.mixins) {
  10162. comp.mixins.forEach(extendEmits);
  10163. }
  10164. }
  10165. if (!raw && !hasExtends) {
  10166. cache.set(comp, null);
  10167. return null;
  10168. }
  10169. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(raw)) {
  10170. raw.forEach(key => (normalized[key] = null));
  10171. }
  10172. else {
  10173. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(normalized, raw);
  10174. }
  10175. cache.set(comp, normalized);
  10176. return normalized;
  10177. }
  10178. // Check if an incoming prop key is a declared emit event listener.
  10179. // e.g. With `emits: { click: null }`, props named `onClick` and `onclick` are
  10180. // both considered matched listeners.
  10181. function isEmitListener(options, key) {
  10182. if (!options || !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isOn)(key)) {
  10183. return false;
  10184. }
  10185. key = key.slice(2).replace(/Once$/, '');
  10186. return ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(options, key[0].toLowerCase() + key.slice(1)) ||
  10187. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(options, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(key)) ||
  10188. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(options, key));
  10189. }
  10190. /**
  10191. * mark the current rendering instance for asset resolution (e.g.
  10192. * resolveComponent, resolveDirective) during render
  10193. */
  10194. let currentRenderingInstance = null;
  10195. let currentScopeId = null;
  10196. /**
  10197. * Note: rendering calls maybe nested. The function returns the parent rendering
  10198. * instance if present, which should be restored after the render is done:
  10199. *
  10200. * ```js
  10201. * const prev = setCurrentRenderingInstance(i)
  10202. * // ...render
  10203. * setCurrentRenderingInstance(prev)
  10204. * ```
  10205. */
  10206. function setCurrentRenderingInstance(instance) {
  10207. const prev = currentRenderingInstance;
  10208. currentRenderingInstance = instance;
  10209. currentScopeId = (instance && instance.type.__scopeId) || null;
  10210. return prev;
  10211. }
  10212. /**
  10213. * Set scope id when creating hoisted vnodes.
  10214. * @private compiler helper
  10215. */
  10216. function pushScopeId(id) {
  10217. currentScopeId = id;
  10218. }
  10219. /**
  10220. * Technically we no longer need this after 3.0.8 but we need to keep the same
  10221. * API for backwards compat w/ code generated by compilers.
  10222. * @private
  10223. */
  10224. function popScopeId() {
  10225. currentScopeId = null;
  10226. }
  10227. /**
  10228. * Only for backwards compat
  10229. * @private
  10230. */
  10231. const withScopeId = (_id) => withCtx;
  10232. /**
  10233. * Wrap a slot function to memoize current rendering instance
  10234. * @private compiler helper
  10235. */
  10236. function withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot // false only
  10237. ) {
  10238. if (!ctx)
  10239. return fn;
  10240. // already normalized
  10241. if (fn._n) {
  10242. return fn;
  10243. }
  10244. const renderFnWithContext = (...args) => {
  10245. // If a user calls a compiled slot inside a template expression (#1745), it
  10246. // can mess up block tracking, so by default we disable block tracking and
  10247. // force bail out when invoking a compiled slot (indicated by the ._d flag).
  10248. // This isn't necessary if rendering a compiled `<slot>`, so we flip the
  10249. // ._d flag off when invoking the wrapped fn inside `renderSlot`.
  10250. if (renderFnWithContext._d) {
  10251. setBlockTracking(-1);
  10252. }
  10253. const prevInstance = setCurrentRenderingInstance(ctx);
  10254. const res = fn(...args);
  10255. setCurrentRenderingInstance(prevInstance);
  10256. if (renderFnWithContext._d) {
  10257. setBlockTracking(1);
  10258. }
  10259. if (true) {
  10260. devtoolsComponentUpdated(ctx);
  10261. }
  10262. return res;
  10263. };
  10264. // mark normalized to avoid duplicated wrapping
  10265. renderFnWithContext._n = true;
  10266. // mark this as compiled by default
  10267. // this is used in vnode.ts -> normalizeChildren() to set the slot
  10268. // rendering flag.
  10269. renderFnWithContext._c = true;
  10270. // disable block tracking by default
  10271. renderFnWithContext._d = true;
  10272. return renderFnWithContext;
  10273. }
  10274. /**
  10275. * dev only flag to track whether $attrs was used during render.
  10276. * If $attrs was used during render then the warning for failed attrs
  10277. * fallthrough can be suppressed.
  10278. */
  10279. let accessedAttrs = false;
  10280. function markAttrsAccessed() {
  10281. accessedAttrs = true;
  10282. }
  10283. function renderComponentRoot(instance) {
  10284. const { type: Component, vnode, proxy, withProxy, props, propsOptions: [propsOptions], slots, attrs, emit, render, renderCache, data, setupState, ctx, inheritAttrs } = instance;
  10285. let result;
  10286. let fallthroughAttrs;
  10287. const prev = setCurrentRenderingInstance(instance);
  10288. if ((true)) {
  10289. accessedAttrs = false;
  10290. }
  10291. try {
  10292. if (vnode.shapeFlag & 4 /* STATEFUL_COMPONENT */) {
  10293. // withProxy is a proxy with a different `has` trap only for
  10294. // runtime-compiled render functions using `with` block.
  10295. const proxyToUse = withProxy || proxy;
  10296. result = normalizeVNode(render.call(proxyToUse, proxyToUse, renderCache, props, setupState, data, ctx));
  10297. fallthroughAttrs = attrs;
  10298. }
  10299. else {
  10300. // functional
  10301. const render = Component;
  10302. // in dev, mark attrs accessed if optional props (attrs === props)
  10303. if (( true) && attrs === props) {
  10304. markAttrsAccessed();
  10305. }
  10306. result = normalizeVNode(render.length > 1
  10307. ? render(props, ( true)
  10308. ? {
  10309. get attrs() {
  10310. markAttrsAccessed();
  10311. return attrs;
  10312. },
  10313. slots,
  10314. emit
  10315. }
  10316. : 0)
  10317. : render(props, null /* we know it doesn't need it */));
  10318. fallthroughAttrs = Component.props
  10319. ? attrs
  10320. : getFunctionalFallthrough(attrs);
  10321. }
  10322. }
  10323. catch (err) {
  10324. blockStack.length = 0;
  10325. handleError(err, instance, 1 /* RENDER_FUNCTION */);
  10326. result = createVNode(Comment);
  10327. }
  10328. // attr merging
  10329. // in dev mode, comments are preserved, and it's possible for a template
  10330. // to have comments along side the root element which makes it a fragment
  10331. let root = result;
  10332. let setRoot = undefined;
  10333. if (( true) &&
  10334. result.patchFlag > 0 &&
  10335. result.patchFlag & 2048 /* DEV_ROOT_FRAGMENT */) {
  10336. [root, setRoot] = getChildRoot(result);
  10337. }
  10338. if (fallthroughAttrs && inheritAttrs !== false) {
  10339. const keys = Object.keys(fallthroughAttrs);
  10340. const { shapeFlag } = root;
  10341. if (keys.length) {
  10342. if (shapeFlag & (1 /* ELEMENT */ | 6 /* COMPONENT */)) {
  10343. if (propsOptions && keys.some(_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isModelListener)) {
  10344. // If a v-model listener (onUpdate:xxx) has a corresponding declared
  10345. // prop, it indicates this component expects to handle v-model and
  10346. // it should not fallthrough.
  10347. // related: #1543, #1643, #1989
  10348. fallthroughAttrs = filterModelListeners(fallthroughAttrs, propsOptions);
  10349. }
  10350. root = cloneVNode(root, fallthroughAttrs);
  10351. }
  10352. else if (( true) && !accessedAttrs && root.type !== Comment) {
  10353. const allAttrs = Object.keys(attrs);
  10354. const eventAttrs = [];
  10355. const extraAttrs = [];
  10356. for (let i = 0, l = allAttrs.length; i < l; i++) {
  10357. const key = allAttrs[i];
  10358. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isOn)(key)) {
  10359. // ignore v-model handlers when they fail to fallthrough
  10360. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isModelListener)(key)) {
  10361. // remove `on`, lowercase first letter to reflect event casing
  10362. // accurately
  10363. eventAttrs.push(key[2].toLowerCase() + key.slice(3));
  10364. }
  10365. }
  10366. else {
  10367. extraAttrs.push(key);
  10368. }
  10369. }
  10370. if (extraAttrs.length) {
  10371. warn(`Extraneous non-props attributes (` +
  10372. `${extraAttrs.join(', ')}) ` +
  10373. `were passed to component but could not be automatically inherited ` +
  10374. `because component renders fragment or text root nodes.`);
  10375. }
  10376. if (eventAttrs.length) {
  10377. warn(`Extraneous non-emits event listeners (` +
  10378. `${eventAttrs.join(', ')}) ` +
  10379. `were passed to component but could not be automatically inherited ` +
  10380. `because component renders fragment or text root nodes. ` +
  10381. `If the listener is intended to be a component custom event listener only, ` +
  10382. `declare it using the "emits" option.`);
  10383. }
  10384. }
  10385. }
  10386. }
  10387. // inherit directives
  10388. if (vnode.dirs) {
  10389. if (( true) && !isElementRoot(root)) {
  10390. warn(`Runtime directive used on component with non-element root node. ` +
  10391. `The directives will not function as intended.`);
  10392. }
  10393. root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs;
  10394. }
  10395. // inherit transition data
  10396. if (vnode.transition) {
  10397. if (( true) && !isElementRoot(root)) {
  10398. warn(`Component inside <Transition> renders non-element root node ` +
  10399. `that cannot be animated.`);
  10400. }
  10401. root.transition = vnode.transition;
  10402. }
  10403. if (( true) && setRoot) {
  10404. setRoot(root);
  10405. }
  10406. else {
  10407. result = root;
  10408. }
  10409. setCurrentRenderingInstance(prev);
  10410. return result;
  10411. }
  10412. /**
  10413. * dev only
  10414. * In dev mode, template root level comments are rendered, which turns the
  10415. * template into a fragment root, but we need to locate the single element
  10416. * root for attrs and scope id processing.
  10417. */
  10418. const getChildRoot = (vnode) => {
  10419. const rawChildren = vnode.children;
  10420. const dynamicChildren = vnode.dynamicChildren;
  10421. const childRoot = filterSingleRoot(rawChildren);
  10422. if (!childRoot) {
  10423. return [vnode, undefined];
  10424. }
  10425. const index = rawChildren.indexOf(childRoot);
  10426. const dynamicIndex = dynamicChildren ? dynamicChildren.indexOf(childRoot) : -1;
  10427. const setRoot = (updatedRoot) => {
  10428. rawChildren[index] = updatedRoot;
  10429. if (dynamicChildren) {
  10430. if (dynamicIndex > -1) {
  10431. dynamicChildren[dynamicIndex] = updatedRoot;
  10432. }
  10433. else if (updatedRoot.patchFlag > 0) {
  10434. vnode.dynamicChildren = [...dynamicChildren, updatedRoot];
  10435. }
  10436. }
  10437. };
  10438. return [normalizeVNode(childRoot), setRoot];
  10439. };
  10440. function filterSingleRoot(children) {
  10441. let singleRoot;
  10442. for (let i = 0; i < children.length; i++) {
  10443. const child = children[i];
  10444. if (isVNode(child)) {
  10445. // ignore user comment
  10446. if (child.type !== Comment || child.children === 'v-if') {
  10447. if (singleRoot) {
  10448. // has more than 1 non-comment child, return now
  10449. return;
  10450. }
  10451. else {
  10452. singleRoot = child;
  10453. }
  10454. }
  10455. }
  10456. else {
  10457. return;
  10458. }
  10459. }
  10460. return singleRoot;
  10461. }
  10462. const getFunctionalFallthrough = (attrs) => {
  10463. let res;
  10464. for (const key in attrs) {
  10465. if (key === 'class' || key === 'style' || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isOn)(key)) {
  10466. (res || (res = {}))[key] = attrs[key];
  10467. }
  10468. }
  10469. return res;
  10470. };
  10471. const filterModelListeners = (attrs, props) => {
  10472. const res = {};
  10473. for (const key in attrs) {
  10474. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isModelListener)(key) || !(key.slice(9) in props)) {
  10475. res[key] = attrs[key];
  10476. }
  10477. }
  10478. return res;
  10479. };
  10480. const isElementRoot = (vnode) => {
  10481. return (vnode.shapeFlag & (6 /* COMPONENT */ | 1 /* ELEMENT */) ||
  10482. vnode.type === Comment // potential v-if branch switch
  10483. );
  10484. };
  10485. function shouldUpdateComponent(prevVNode, nextVNode, optimized) {
  10486. const { props: prevProps, children: prevChildren, component } = prevVNode;
  10487. const { props: nextProps, children: nextChildren, patchFlag } = nextVNode;
  10488. const emits = component.emitsOptions;
  10489. // Parent component's render function was hot-updated. Since this may have
  10490. // caused the child component's slots content to have changed, we need to
  10491. // force the child to update as well.
  10492. if (( true) && (prevChildren || nextChildren) && isHmrUpdating) {
  10493. return true;
  10494. }
  10495. // force child update for runtime directive or transition on component vnode.
  10496. if (nextVNode.dirs || nextVNode.transition) {
  10497. return true;
  10498. }
  10499. if (optimized && patchFlag >= 0) {
  10500. if (patchFlag & 1024 /* DYNAMIC_SLOTS */) {
  10501. // slot content that references values that might have changed,
  10502. // e.g. in a v-for
  10503. return true;
  10504. }
  10505. if (patchFlag & 16 /* FULL_PROPS */) {
  10506. if (!prevProps) {
  10507. return !!nextProps;
  10508. }
  10509. // presence of this flag indicates props are always non-null
  10510. return hasPropsChanged(prevProps, nextProps, emits);
  10511. }
  10512. else if (patchFlag & 8 /* PROPS */) {
  10513. const dynamicProps = nextVNode.dynamicProps;
  10514. for (let i = 0; i < dynamicProps.length; i++) {
  10515. const key = dynamicProps[i];
  10516. if (nextProps[key] !== prevProps[key] &&
  10517. !isEmitListener(emits, key)) {
  10518. return true;
  10519. }
  10520. }
  10521. }
  10522. }
  10523. else {
  10524. // this path is only taken by manually written render functions
  10525. // so presence of any children leads to a forced update
  10526. if (prevChildren || nextChildren) {
  10527. if (!nextChildren || !nextChildren.$stable) {
  10528. return true;
  10529. }
  10530. }
  10531. if (prevProps === nextProps) {
  10532. return false;
  10533. }
  10534. if (!prevProps) {
  10535. return !!nextProps;
  10536. }
  10537. if (!nextProps) {
  10538. return true;
  10539. }
  10540. return hasPropsChanged(prevProps, nextProps, emits);
  10541. }
  10542. return false;
  10543. }
  10544. function hasPropsChanged(prevProps, nextProps, emitsOptions) {
  10545. const nextKeys = Object.keys(nextProps);
  10546. if (nextKeys.length !== Object.keys(prevProps).length) {
  10547. return true;
  10548. }
  10549. for (let i = 0; i < nextKeys.length; i++) {
  10550. const key = nextKeys[i];
  10551. if (nextProps[key] !== prevProps[key] &&
  10552. !isEmitListener(emitsOptions, key)) {
  10553. return true;
  10554. }
  10555. }
  10556. return false;
  10557. }
  10558. function updateHOCHostEl({ vnode, parent }, el // HostNode
  10559. ) {
  10560. while (parent && parent.subTree === vnode) {
  10561. (vnode = parent.vnode).el = el;
  10562. parent = parent.parent;
  10563. }
  10564. }
  10565. const isSuspense = (type) => type.__isSuspense;
  10566. // Suspense exposes a component-like API, and is treated like a component
  10567. // in the compiler, but internally it's a special built-in type that hooks
  10568. // directly into the renderer.
  10569. const SuspenseImpl = {
  10570. name: 'Suspense',
  10571. // In order to make Suspense tree-shakable, we need to avoid importing it
  10572. // directly in the renderer. The renderer checks for the __isSuspense flag
  10573. // on a vnode's type and calls the `process` method, passing in renderer
  10574. // internals.
  10575. __isSuspense: true,
  10576. process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized,
  10577. // platform-specific impl passed from renderer
  10578. rendererInternals) {
  10579. if (n1 == null) {
  10580. mountSuspense(n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, rendererInternals);
  10581. }
  10582. else {
  10583. patchSuspense(n1, n2, container, anchor, parentComponent, isSVG, slotScopeIds, optimized, rendererInternals);
  10584. }
  10585. },
  10586. hydrate: hydrateSuspense,
  10587. create: createSuspenseBoundary,
  10588. normalize: normalizeSuspenseChildren
  10589. };
  10590. // Force-casted public typing for h and TSX props inference
  10591. const Suspense = (SuspenseImpl );
  10592. function triggerEvent(vnode, name) {
  10593. const eventListener = vnode.props && vnode.props[name];
  10594. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(eventListener)) {
  10595. eventListener();
  10596. }
  10597. }
  10598. function mountSuspense(vnode, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, rendererInternals) {
  10599. const { p: patch, o: { createElement } } = rendererInternals;
  10600. const hiddenContainer = createElement('div');
  10601. const suspense = (vnode.suspense = createSuspenseBoundary(vnode, parentSuspense, parentComponent, container, hiddenContainer, anchor, isSVG, slotScopeIds, optimized, rendererInternals));
  10602. // start mounting the content subtree in an off-dom container
  10603. patch(null, (suspense.pendingBranch = vnode.ssContent), hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds);
  10604. // now check if we have encountered any async deps
  10605. if (suspense.deps > 0) {
  10606. // has async
  10607. // invoke @fallback event
  10608. triggerEvent(vnode, 'onPending');
  10609. triggerEvent(vnode, 'onFallback');
  10610. // mount the fallback tree
  10611. patch(null, vnode.ssFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context
  10612. isSVG, slotScopeIds);
  10613. setActiveBranch(suspense, vnode.ssFallback);
  10614. }
  10615. else {
  10616. // Suspense has no async deps. Just resolve.
  10617. suspense.resolve();
  10618. }
  10619. }
  10620. function patchSuspense(n1, n2, container, anchor, parentComponent, isSVG, slotScopeIds, optimized, { p: patch, um: unmount, o: { createElement } }) {
  10621. const suspense = (n2.suspense = n1.suspense);
  10622. suspense.vnode = n2;
  10623. n2.el = n1.el;
  10624. const newBranch = n2.ssContent;
  10625. const newFallback = n2.ssFallback;
  10626. const { activeBranch, pendingBranch, isInFallback, isHydrating } = suspense;
  10627. if (pendingBranch) {
  10628. suspense.pendingBranch = newBranch;
  10629. if (isSameVNodeType(newBranch, pendingBranch)) {
  10630. // same root type but content may have changed.
  10631. patch(pendingBranch, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized);
  10632. if (suspense.deps <= 0) {
  10633. suspense.resolve();
  10634. }
  10635. else if (isInFallback) {
  10636. patch(activeBranch, newFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context
  10637. isSVG, slotScopeIds, optimized);
  10638. setActiveBranch(suspense, newFallback);
  10639. }
  10640. }
  10641. else {
  10642. // toggled before pending tree is resolved
  10643. suspense.pendingId++;
  10644. if (isHydrating) {
  10645. // if toggled before hydration is finished, the current DOM tree is
  10646. // no longer valid. set it as the active branch so it will be unmounted
  10647. // when resolved
  10648. suspense.isHydrating = false;
  10649. suspense.activeBranch = pendingBranch;
  10650. }
  10651. else {
  10652. unmount(pendingBranch, parentComponent, suspense);
  10653. }
  10654. // increment pending ID. this is used to invalidate async callbacks
  10655. // reset suspense state
  10656. suspense.deps = 0;
  10657. // discard effects from pending branch
  10658. suspense.effects.length = 0;
  10659. // discard previous container
  10660. suspense.hiddenContainer = createElement('div');
  10661. if (isInFallback) {
  10662. // already in fallback state
  10663. patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized);
  10664. if (suspense.deps <= 0) {
  10665. suspense.resolve();
  10666. }
  10667. else {
  10668. patch(activeBranch, newFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context
  10669. isSVG, slotScopeIds, optimized);
  10670. setActiveBranch(suspense, newFallback);
  10671. }
  10672. }
  10673. else if (activeBranch && isSameVNodeType(newBranch, activeBranch)) {
  10674. // toggled "back" to current active branch
  10675. patch(activeBranch, newBranch, container, anchor, parentComponent, suspense, isSVG, slotScopeIds, optimized);
  10676. // force resolve
  10677. suspense.resolve(true);
  10678. }
  10679. else {
  10680. // switched to a 3rd branch
  10681. patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized);
  10682. if (suspense.deps <= 0) {
  10683. suspense.resolve();
  10684. }
  10685. }
  10686. }
  10687. }
  10688. else {
  10689. if (activeBranch && isSameVNodeType(newBranch, activeBranch)) {
  10690. // root did not change, just normal patch
  10691. patch(activeBranch, newBranch, container, anchor, parentComponent, suspense, isSVG, slotScopeIds, optimized);
  10692. setActiveBranch(suspense, newBranch);
  10693. }
  10694. else {
  10695. // root node toggled
  10696. // invoke @pending event
  10697. triggerEvent(n2, 'onPending');
  10698. // mount pending branch in off-dom container
  10699. suspense.pendingBranch = newBranch;
  10700. suspense.pendingId++;
  10701. patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized);
  10702. if (suspense.deps <= 0) {
  10703. // incoming branch has no async deps, resolve now.
  10704. suspense.resolve();
  10705. }
  10706. else {
  10707. const { timeout, pendingId } = suspense;
  10708. if (timeout > 0) {
  10709. setTimeout(() => {
  10710. if (suspense.pendingId === pendingId) {
  10711. suspense.fallback(newFallback);
  10712. }
  10713. }, timeout);
  10714. }
  10715. else if (timeout === 0) {
  10716. suspense.fallback(newFallback);
  10717. }
  10718. }
  10719. }
  10720. }
  10721. }
  10722. let hasWarned = false;
  10723. function createSuspenseBoundary(vnode, parent, parentComponent, container, hiddenContainer, anchor, isSVG, slotScopeIds, optimized, rendererInternals, isHydrating = false) {
  10724. /* istanbul ignore if */
  10725. if ( true && !hasWarned) {
  10726. hasWarned = true;
  10727. // @ts-ignore `console.info` cannot be null error
  10728. console[console.info ? 'info' : 'log'](`<Suspense> is an experimental feature and its API will likely change.`);
  10729. }
  10730. const { p: patch, m: move, um: unmount, n: next, o: { parentNode, remove } } = rendererInternals;
  10731. const timeout = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber)(vnode.props && vnode.props.timeout);
  10732. const suspense = {
  10733. vnode,
  10734. parent,
  10735. parentComponent,
  10736. isSVG,
  10737. container,
  10738. hiddenContainer,
  10739. anchor,
  10740. deps: 0,
  10741. pendingId: 0,
  10742. timeout: typeof timeout === 'number' ? timeout : -1,
  10743. activeBranch: null,
  10744. pendingBranch: null,
  10745. isInFallback: true,
  10746. isHydrating,
  10747. isUnmounted: false,
  10748. effects: [],
  10749. resolve(resume = false) {
  10750. if ((true)) {
  10751. if (!resume && !suspense.pendingBranch) {
  10752. throw new Error(`suspense.resolve() is called without a pending branch.`);
  10753. }
  10754. if (suspense.isUnmounted) {
  10755. throw new Error(`suspense.resolve() is called on an already unmounted suspense boundary.`);
  10756. }
  10757. }
  10758. const { vnode, activeBranch, pendingBranch, pendingId, effects, parentComponent, container } = suspense;
  10759. if (suspense.isHydrating) {
  10760. suspense.isHydrating = false;
  10761. }
  10762. else if (!resume) {
  10763. const delayEnter = activeBranch &&
  10764. pendingBranch.transition &&
  10765. pendingBranch.transition.mode === 'out-in';
  10766. if (delayEnter) {
  10767. activeBranch.transition.afterLeave = () => {
  10768. if (pendingId === suspense.pendingId) {
  10769. move(pendingBranch, container, anchor, 0 /* ENTER */);
  10770. }
  10771. };
  10772. }
  10773. // this is initial anchor on mount
  10774. let { anchor } = suspense;
  10775. // unmount current active tree
  10776. if (activeBranch) {
  10777. // if the fallback tree was mounted, it may have been moved
  10778. // as part of a parent suspense. get the latest anchor for insertion
  10779. anchor = next(activeBranch);
  10780. unmount(activeBranch, parentComponent, suspense, true);
  10781. }
  10782. if (!delayEnter) {
  10783. // move content from off-dom container to actual container
  10784. move(pendingBranch, container, anchor, 0 /* ENTER */);
  10785. }
  10786. }
  10787. setActiveBranch(suspense, pendingBranch);
  10788. suspense.pendingBranch = null;
  10789. suspense.isInFallback = false;
  10790. // flush buffered effects
  10791. // check if there is a pending parent suspense
  10792. let parent = suspense.parent;
  10793. let hasUnresolvedAncestor = false;
  10794. while (parent) {
  10795. if (parent.pendingBranch) {
  10796. // found a pending parent suspense, merge buffered post jobs
  10797. // into that parent
  10798. parent.effects.push(...effects);
  10799. hasUnresolvedAncestor = true;
  10800. break;
  10801. }
  10802. parent = parent.parent;
  10803. }
  10804. // no pending parent suspense, flush all jobs
  10805. if (!hasUnresolvedAncestor) {
  10806. queuePostFlushCb(effects);
  10807. }
  10808. suspense.effects = [];
  10809. // invoke @resolve event
  10810. triggerEvent(vnode, 'onResolve');
  10811. },
  10812. fallback(fallbackVNode) {
  10813. if (!suspense.pendingBranch) {
  10814. return;
  10815. }
  10816. const { vnode, activeBranch, parentComponent, container, isSVG } = suspense;
  10817. // invoke @fallback event
  10818. triggerEvent(vnode, 'onFallback');
  10819. const anchor = next(activeBranch);
  10820. const mountFallback = () => {
  10821. if (!suspense.isInFallback) {
  10822. return;
  10823. }
  10824. // mount the fallback tree
  10825. patch(null, fallbackVNode, container, anchor, parentComponent, null, // fallback tree will not have suspense context
  10826. isSVG, slotScopeIds, optimized);
  10827. setActiveBranch(suspense, fallbackVNode);
  10828. };
  10829. const delayEnter = fallbackVNode.transition && fallbackVNode.transition.mode === 'out-in';
  10830. if (delayEnter) {
  10831. activeBranch.transition.afterLeave = mountFallback;
  10832. }
  10833. suspense.isInFallback = true;
  10834. // unmount current active branch
  10835. unmount(activeBranch, parentComponent, null, // no suspense so unmount hooks fire now
  10836. true // shouldRemove
  10837. );
  10838. if (!delayEnter) {
  10839. mountFallback();
  10840. }
  10841. },
  10842. move(container, anchor, type) {
  10843. suspense.activeBranch &&
  10844. move(suspense.activeBranch, container, anchor, type);
  10845. suspense.container = container;
  10846. },
  10847. next() {
  10848. return suspense.activeBranch && next(suspense.activeBranch);
  10849. },
  10850. registerDep(instance, setupRenderEffect) {
  10851. const isInPendingSuspense = !!suspense.pendingBranch;
  10852. if (isInPendingSuspense) {
  10853. suspense.deps++;
  10854. }
  10855. const hydratedEl = instance.vnode.el;
  10856. instance
  10857. .asyncDep.catch(err => {
  10858. handleError(err, instance, 0 /* SETUP_FUNCTION */);
  10859. })
  10860. .then(asyncSetupResult => {
  10861. // retry when the setup() promise resolves.
  10862. // component may have been unmounted before resolve.
  10863. if (instance.isUnmounted ||
  10864. suspense.isUnmounted ||
  10865. suspense.pendingId !== instance.suspenseId) {
  10866. return;
  10867. }
  10868. // retry from this component
  10869. instance.asyncResolved = true;
  10870. const { vnode } = instance;
  10871. if ((true)) {
  10872. pushWarningContext(vnode);
  10873. }
  10874. handleSetupResult(instance, asyncSetupResult, false);
  10875. if (hydratedEl) {
  10876. // vnode may have been replaced if an update happened before the
  10877. // async dep is resolved.
  10878. vnode.el = hydratedEl;
  10879. }
  10880. const placeholder = !hydratedEl && instance.subTree.el;
  10881. setupRenderEffect(instance, vnode,
  10882. // component may have been moved before resolve.
  10883. // if this is not a hydration, instance.subTree will be the comment
  10884. // placeholder.
  10885. parentNode(hydratedEl || instance.subTree.el),
  10886. // anchor will not be used if this is hydration, so only need to
  10887. // consider the comment placeholder case.
  10888. hydratedEl ? null : next(instance.subTree), suspense, isSVG, optimized);
  10889. if (placeholder) {
  10890. remove(placeholder);
  10891. }
  10892. updateHOCHostEl(instance, vnode.el);
  10893. if ((true)) {
  10894. popWarningContext();
  10895. }
  10896. // only decrease deps count if suspense is not already resolved
  10897. if (isInPendingSuspense && --suspense.deps === 0) {
  10898. suspense.resolve();
  10899. }
  10900. });
  10901. },
  10902. unmount(parentSuspense, doRemove) {
  10903. suspense.isUnmounted = true;
  10904. if (suspense.activeBranch) {
  10905. unmount(suspense.activeBranch, parentComponent, parentSuspense, doRemove);
  10906. }
  10907. if (suspense.pendingBranch) {
  10908. unmount(suspense.pendingBranch, parentComponent, parentSuspense, doRemove);
  10909. }
  10910. }
  10911. };
  10912. return suspense;
  10913. }
  10914. function hydrateSuspense(node, vnode, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, rendererInternals, hydrateNode) {
  10915. /* eslint-disable no-restricted-globals */
  10916. const suspense = (vnode.suspense = createSuspenseBoundary(vnode, parentSuspense, parentComponent, node.parentNode, document.createElement('div'), null, isSVG, slotScopeIds, optimized, rendererInternals, true /* hydrating */));
  10917. // there are two possible scenarios for server-rendered suspense:
  10918. // - success: ssr content should be fully resolved
  10919. // - failure: ssr content should be the fallback branch.
  10920. // however, on the client we don't really know if it has failed or not
  10921. // attempt to hydrate the DOM assuming it has succeeded, but we still
  10922. // need to construct a suspense boundary first
  10923. const result = hydrateNode(node, (suspense.pendingBranch = vnode.ssContent), parentComponent, suspense, slotScopeIds, optimized);
  10924. if (suspense.deps === 0) {
  10925. suspense.resolve();
  10926. }
  10927. return result;
  10928. /* eslint-enable no-restricted-globals */
  10929. }
  10930. function normalizeSuspenseChildren(vnode) {
  10931. const { shapeFlag, children } = vnode;
  10932. const isSlotChildren = shapeFlag & 32 /* SLOTS_CHILDREN */;
  10933. vnode.ssContent = normalizeSuspenseSlot(isSlotChildren ? children.default : children);
  10934. vnode.ssFallback = isSlotChildren
  10935. ? normalizeSuspenseSlot(children.fallback)
  10936. : createVNode(Comment);
  10937. }
  10938. function normalizeSuspenseSlot(s) {
  10939. let block;
  10940. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(s)) {
  10941. const trackBlock = isBlockTreeEnabled && s._c;
  10942. if (trackBlock) {
  10943. // disableTracking: false
  10944. // allow block tracking for compiled slots
  10945. // (see ./componentRenderContext.ts)
  10946. s._d = false;
  10947. openBlock();
  10948. }
  10949. s = s();
  10950. if (trackBlock) {
  10951. s._d = true;
  10952. block = currentBlock;
  10953. closeBlock();
  10954. }
  10955. }
  10956. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(s)) {
  10957. const singleChild = filterSingleRoot(s);
  10958. if (( true) && !singleChild) {
  10959. warn(`<Suspense> slots expect a single root node.`);
  10960. }
  10961. s = singleChild;
  10962. }
  10963. s = normalizeVNode(s);
  10964. if (block && !s.dynamicChildren) {
  10965. s.dynamicChildren = block.filter(c => c !== s);
  10966. }
  10967. return s;
  10968. }
  10969. function queueEffectWithSuspense(fn, suspense) {
  10970. if (suspense && suspense.pendingBranch) {
  10971. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(fn)) {
  10972. suspense.effects.push(...fn);
  10973. }
  10974. else {
  10975. suspense.effects.push(fn);
  10976. }
  10977. }
  10978. else {
  10979. queuePostFlushCb(fn);
  10980. }
  10981. }
  10982. function setActiveBranch(suspense, branch) {
  10983. suspense.activeBranch = branch;
  10984. const { vnode, parentComponent } = suspense;
  10985. const el = (vnode.el = branch.el);
  10986. // in case suspense is the root node of a component,
  10987. // recursively update the HOC el
  10988. if (parentComponent && parentComponent.subTree === vnode) {
  10989. parentComponent.vnode.el = el;
  10990. updateHOCHostEl(parentComponent, el);
  10991. }
  10992. }
  10993. function provide(key, value) {
  10994. if (!currentInstance) {
  10995. if ((true)) {
  10996. warn(`provide() can only be used inside setup().`);
  10997. }
  10998. }
  10999. else {
  11000. let provides = currentInstance.provides;
  11001. // by default an instance inherits its parent's provides object
  11002. // but when it needs to provide values of its own, it creates its
  11003. // own provides object using parent provides object as prototype.
  11004. // this way in `inject` we can simply look up injections from direct
  11005. // parent and let the prototype chain do the work.
  11006. const parentProvides = currentInstance.parent && currentInstance.parent.provides;
  11007. if (parentProvides === provides) {
  11008. provides = currentInstance.provides = Object.create(parentProvides);
  11009. }
  11010. // TS doesn't allow symbol as index type
  11011. provides[key] = value;
  11012. }
  11013. }
  11014. function inject(key, defaultValue, treatDefaultAsFactory = false) {
  11015. // fallback to `currentRenderingInstance` so that this can be called in
  11016. // a functional component
  11017. const instance = currentInstance || currentRenderingInstance;
  11018. if (instance) {
  11019. // #2400
  11020. // to support `app.use` plugins,
  11021. // fallback to appContext's `provides` if the instance is at root
  11022. const provides = instance.parent == null
  11023. ? instance.vnode.appContext && instance.vnode.appContext.provides
  11024. : instance.parent.provides;
  11025. if (provides && key in provides) {
  11026. // TS doesn't allow symbol as index type
  11027. return provides[key];
  11028. }
  11029. else if (arguments.length > 1) {
  11030. return treatDefaultAsFactory && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(defaultValue)
  11031. ? defaultValue.call(instance.proxy)
  11032. : defaultValue;
  11033. }
  11034. else if ((true)) {
  11035. warn(`injection "${String(key)}" not found.`);
  11036. }
  11037. }
  11038. else if ((true)) {
  11039. warn(`inject() can only be used inside setup() or functional components.`);
  11040. }
  11041. }
  11042. // Simple effect.
  11043. function watchEffect(effect, options) {
  11044. return doWatch(effect, null, options);
  11045. }
  11046. function watchPostEffect(effect, options) {
  11047. return doWatch(effect, null, (( true)
  11048. ? Object.assign(Object.assign({}, options), { flush: 'post' }) : 0));
  11049. }
  11050. function watchSyncEffect(effect, options) {
  11051. return doWatch(effect, null, (( true)
  11052. ? Object.assign(Object.assign({}, options), { flush: 'sync' }) : 0));
  11053. }
  11054. // initial value for watchers to trigger on undefined initial values
  11055. const INITIAL_WATCHER_VALUE = {};
  11056. // implementation
  11057. function watch(source, cb, options) {
  11058. if (( true) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(cb)) {
  11059. warn(`\`watch(fn, options?)\` signature has been moved to a separate API. ` +
  11060. `Use \`watchEffect(fn, options?)\` instead. \`watch\` now only ` +
  11061. `supports \`watch(source, cb, options?) signature.`);
  11062. }
  11063. return doWatch(source, cb, options);
  11064. }
  11065. function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ) {
  11066. if (( true) && !cb) {
  11067. if (immediate !== undefined) {
  11068. warn(`watch() "immediate" option is only respected when using the ` +
  11069. `watch(source, callback, options?) signature.`);
  11070. }
  11071. if (deep !== undefined) {
  11072. warn(`watch() "deep" option is only respected when using the ` +
  11073. `watch(source, callback, options?) signature.`);
  11074. }
  11075. }
  11076. const warnInvalidSource = (s) => {
  11077. warn(`Invalid watch source: `, s, `A watch source can only be a getter/effect function, a ref, ` +
  11078. `a reactive object, or an array of these types.`);
  11079. };
  11080. const instance = currentInstance;
  11081. let getter;
  11082. let forceTrigger = false;
  11083. let isMultiSource = false;
  11084. if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(source)) {
  11085. getter = () => source.value;
  11086. forceTrigger = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isShallow)(source);
  11087. }
  11088. else if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReactive)(source)) {
  11089. getter = () => source;
  11090. deep = true;
  11091. }
  11092. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(source)) {
  11093. isMultiSource = true;
  11094. forceTrigger = source.some(_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReactive);
  11095. getter = () => source.map(s => {
  11096. if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(s)) {
  11097. return s.value;
  11098. }
  11099. else if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReactive)(s)) {
  11100. return traverse(s);
  11101. }
  11102. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(s)) {
  11103. return callWithErrorHandling(s, instance, 2 /* WATCH_GETTER */);
  11104. }
  11105. else {
  11106. ( true) && warnInvalidSource(s);
  11107. }
  11108. });
  11109. }
  11110. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(source)) {
  11111. if (cb) {
  11112. // getter with cb
  11113. getter = () => callWithErrorHandling(source, instance, 2 /* WATCH_GETTER */);
  11114. }
  11115. else {
  11116. // no cb -> simple effect
  11117. getter = () => {
  11118. if (instance && instance.isUnmounted) {
  11119. return;
  11120. }
  11121. if (cleanup) {
  11122. cleanup();
  11123. }
  11124. return callWithAsyncErrorHandling(source, instance, 3 /* WATCH_CALLBACK */, [onCleanup]);
  11125. };
  11126. }
  11127. }
  11128. else {
  11129. getter = _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP;
  11130. ( true) && warnInvalidSource(source);
  11131. }
  11132. if (cb && deep) {
  11133. const baseGetter = getter;
  11134. getter = () => traverse(baseGetter());
  11135. }
  11136. let cleanup;
  11137. let onCleanup = (fn) => {
  11138. cleanup = effect.onStop = () => {
  11139. callWithErrorHandling(fn, instance, 4 /* WATCH_CLEANUP */);
  11140. };
  11141. };
  11142. // in SSR there is no need to setup an actual effect, and it should be noop
  11143. // unless it's eager
  11144. if (isInSSRComponentSetup) {
  11145. // we will also not call the invalidate callback (+ runner is not set up)
  11146. onCleanup = _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP;
  11147. if (!cb) {
  11148. getter();
  11149. }
  11150. else if (immediate) {
  11151. callWithAsyncErrorHandling(cb, instance, 3 /* WATCH_CALLBACK */, [
  11152. getter(),
  11153. isMultiSource ? [] : undefined,
  11154. onCleanup
  11155. ]);
  11156. }
  11157. return _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP;
  11158. }
  11159. let oldValue = isMultiSource ? [] : INITIAL_WATCHER_VALUE;
  11160. const job = () => {
  11161. if (!effect.active) {
  11162. return;
  11163. }
  11164. if (cb) {
  11165. // watch(source, cb)
  11166. const newValue = effect.run();
  11167. if (deep ||
  11168. forceTrigger ||
  11169. (isMultiSource
  11170. ? newValue.some((v, i) => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasChanged)(v, oldValue[i]))
  11171. : (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasChanged)(newValue, oldValue)) ||
  11172. (false )) {
  11173. // cleanup before running cb again
  11174. if (cleanup) {
  11175. cleanup();
  11176. }
  11177. callWithAsyncErrorHandling(cb, instance, 3 /* WATCH_CALLBACK */, [
  11178. newValue,
  11179. // pass undefined as the old value when it's changed for the first time
  11180. oldValue === INITIAL_WATCHER_VALUE ? undefined : oldValue,
  11181. onCleanup
  11182. ]);
  11183. oldValue = newValue;
  11184. }
  11185. }
  11186. else {
  11187. // watchEffect
  11188. effect.run();
  11189. }
  11190. };
  11191. // important: mark the job as a watcher callback so that scheduler knows
  11192. // it is allowed to self-trigger (#1727)
  11193. job.allowRecurse = !!cb;
  11194. let scheduler;
  11195. if (flush === 'sync') {
  11196. scheduler = job; // the scheduler function gets called directly
  11197. }
  11198. else if (flush === 'post') {
  11199. scheduler = () => queuePostRenderEffect(job, instance && instance.suspense);
  11200. }
  11201. else {
  11202. // default: 'pre'
  11203. scheduler = () => {
  11204. if (!instance || instance.isMounted) {
  11205. queuePreFlushCb(job);
  11206. }
  11207. else {
  11208. // with 'pre' option, the first call must happen before
  11209. // the component is mounted so it is called synchronously.
  11210. job();
  11211. }
  11212. };
  11213. }
  11214. const effect = new _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.ReactiveEffect(getter, scheduler);
  11215. if ((true)) {
  11216. effect.onTrack = onTrack;
  11217. effect.onTrigger = onTrigger;
  11218. }
  11219. // initial run
  11220. if (cb) {
  11221. if (immediate) {
  11222. job();
  11223. }
  11224. else {
  11225. oldValue = effect.run();
  11226. }
  11227. }
  11228. else if (flush === 'post') {
  11229. queuePostRenderEffect(effect.run.bind(effect), instance && instance.suspense);
  11230. }
  11231. else {
  11232. effect.run();
  11233. }
  11234. return () => {
  11235. effect.stop();
  11236. if (instance && instance.scope) {
  11237. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.remove)(instance.scope.effects, effect);
  11238. }
  11239. };
  11240. }
  11241. // this.$watch
  11242. function instanceWatch(source, value, options) {
  11243. const publicThis = this.proxy;
  11244. const getter = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(source)
  11245. ? source.includes('.')
  11246. ? createPathGetter(publicThis, source)
  11247. : () => publicThis[source]
  11248. : source.bind(publicThis, publicThis);
  11249. let cb;
  11250. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(value)) {
  11251. cb = value;
  11252. }
  11253. else {
  11254. cb = value.handler;
  11255. options = value;
  11256. }
  11257. const cur = currentInstance;
  11258. setCurrentInstance(this);
  11259. const res = doWatch(getter, cb.bind(publicThis), options);
  11260. if (cur) {
  11261. setCurrentInstance(cur);
  11262. }
  11263. else {
  11264. unsetCurrentInstance();
  11265. }
  11266. return res;
  11267. }
  11268. function createPathGetter(ctx, path) {
  11269. const segments = path.split('.');
  11270. return () => {
  11271. let cur = ctx;
  11272. for (let i = 0; i < segments.length && cur; i++) {
  11273. cur = cur[segments[i]];
  11274. }
  11275. return cur;
  11276. };
  11277. }
  11278. function traverse(value, seen) {
  11279. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(value) || value["__v_skip" /* SKIP */]) {
  11280. return value;
  11281. }
  11282. seen = seen || new Set();
  11283. if (seen.has(value)) {
  11284. return value;
  11285. }
  11286. seen.add(value);
  11287. if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(value)) {
  11288. traverse(value.value, seen);
  11289. }
  11290. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(value)) {
  11291. for (let i = 0; i < value.length; i++) {
  11292. traverse(value[i], seen);
  11293. }
  11294. }
  11295. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSet)(value) || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isMap)(value)) {
  11296. value.forEach((v) => {
  11297. traverse(v, seen);
  11298. });
  11299. }
  11300. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(value)) {
  11301. for (const key in value) {
  11302. traverse(value[key], seen);
  11303. }
  11304. }
  11305. return value;
  11306. }
  11307. function useTransitionState() {
  11308. const state = {
  11309. isMounted: false,
  11310. isLeaving: false,
  11311. isUnmounting: false,
  11312. leavingVNodes: new Map()
  11313. };
  11314. onMounted(() => {
  11315. state.isMounted = true;
  11316. });
  11317. onBeforeUnmount(() => {
  11318. state.isUnmounting = true;
  11319. });
  11320. return state;
  11321. }
  11322. const TransitionHookValidator = [Function, Array];
  11323. const BaseTransitionImpl = {
  11324. name: `BaseTransition`,
  11325. props: {
  11326. mode: String,
  11327. appear: Boolean,
  11328. persisted: Boolean,
  11329. // enter
  11330. onBeforeEnter: TransitionHookValidator,
  11331. onEnter: TransitionHookValidator,
  11332. onAfterEnter: TransitionHookValidator,
  11333. onEnterCancelled: TransitionHookValidator,
  11334. // leave
  11335. onBeforeLeave: TransitionHookValidator,
  11336. onLeave: TransitionHookValidator,
  11337. onAfterLeave: TransitionHookValidator,
  11338. onLeaveCancelled: TransitionHookValidator,
  11339. // appear
  11340. onBeforeAppear: TransitionHookValidator,
  11341. onAppear: TransitionHookValidator,
  11342. onAfterAppear: TransitionHookValidator,
  11343. onAppearCancelled: TransitionHookValidator
  11344. },
  11345. setup(props, { slots }) {
  11346. const instance = getCurrentInstance();
  11347. const state = useTransitionState();
  11348. let prevTransitionKey;
  11349. return () => {
  11350. const children = slots.default && getTransitionRawChildren(slots.default(), true);
  11351. if (!children || !children.length) {
  11352. return;
  11353. }
  11354. let child = children[0];
  11355. if (children.length > 1) {
  11356. let hasFound = false;
  11357. // locate first non-comment child
  11358. for (const c of children) {
  11359. if (c.type !== Comment) {
  11360. if (( true) && hasFound) {
  11361. // warn more than one non-comment child
  11362. warn('<transition> can only be used on a single element or component. ' +
  11363. 'Use <transition-group> for lists.');
  11364. break;
  11365. }
  11366. child = c;
  11367. hasFound = true;
  11368. if (false)
  11369. {}
  11370. }
  11371. }
  11372. }
  11373. // there's no need to track reactivity for these props so use the raw
  11374. // props for a bit better perf
  11375. const rawProps = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(props);
  11376. const { mode } = rawProps;
  11377. // check mode
  11378. if (( true) &&
  11379. mode &&
  11380. mode !== 'in-out' &&
  11381. mode !== 'out-in' &&
  11382. mode !== 'default') {
  11383. warn(`invalid <transition> mode: ${mode}`);
  11384. }
  11385. if (state.isLeaving) {
  11386. return emptyPlaceholder(child);
  11387. }
  11388. // in the case of <transition><keep-alive/></transition>, we need to
  11389. // compare the type of the kept-alive children.
  11390. const innerChild = getKeepAliveChild(child);
  11391. if (!innerChild) {
  11392. return emptyPlaceholder(child);
  11393. }
  11394. const enterHooks = resolveTransitionHooks(innerChild, rawProps, state, instance);
  11395. setTransitionHooks(innerChild, enterHooks);
  11396. const oldChild = instance.subTree;
  11397. const oldInnerChild = oldChild && getKeepAliveChild(oldChild);
  11398. let transitionKeyChanged = false;
  11399. const { getTransitionKey } = innerChild.type;
  11400. if (getTransitionKey) {
  11401. const key = getTransitionKey();
  11402. if (prevTransitionKey === undefined) {
  11403. prevTransitionKey = key;
  11404. }
  11405. else if (key !== prevTransitionKey) {
  11406. prevTransitionKey = key;
  11407. transitionKeyChanged = true;
  11408. }
  11409. }
  11410. // handle mode
  11411. if (oldInnerChild &&
  11412. oldInnerChild.type !== Comment &&
  11413. (!isSameVNodeType(innerChild, oldInnerChild) || transitionKeyChanged)) {
  11414. const leavingHooks = resolveTransitionHooks(oldInnerChild, rawProps, state, instance);
  11415. // update old tree's hooks in case of dynamic transition
  11416. setTransitionHooks(oldInnerChild, leavingHooks);
  11417. // switching between different views
  11418. if (mode === 'out-in') {
  11419. state.isLeaving = true;
  11420. // return placeholder node and queue update when leave finishes
  11421. leavingHooks.afterLeave = () => {
  11422. state.isLeaving = false;
  11423. instance.update();
  11424. };
  11425. return emptyPlaceholder(child);
  11426. }
  11427. else if (mode === 'in-out' && innerChild.type !== Comment) {
  11428. leavingHooks.delayLeave = (el, earlyRemove, delayedLeave) => {
  11429. const leavingVNodesCache = getLeavingNodesForType(state, oldInnerChild);
  11430. leavingVNodesCache[String(oldInnerChild.key)] = oldInnerChild;
  11431. // early removal callback
  11432. el._leaveCb = () => {
  11433. earlyRemove();
  11434. el._leaveCb = undefined;
  11435. delete enterHooks.delayedLeave;
  11436. };
  11437. enterHooks.delayedLeave = delayedLeave;
  11438. };
  11439. }
  11440. }
  11441. return child;
  11442. };
  11443. }
  11444. };
  11445. // export the public type for h/tsx inference
  11446. // also to avoid inline import() in generated d.ts files
  11447. const BaseTransition = BaseTransitionImpl;
  11448. function getLeavingNodesForType(state, vnode) {
  11449. const { leavingVNodes } = state;
  11450. let leavingVNodesCache = leavingVNodes.get(vnode.type);
  11451. if (!leavingVNodesCache) {
  11452. leavingVNodesCache = Object.create(null);
  11453. leavingVNodes.set(vnode.type, leavingVNodesCache);
  11454. }
  11455. return leavingVNodesCache;
  11456. }
  11457. // The transition hooks are attached to the vnode as vnode.transition
  11458. // and will be called at appropriate timing in the renderer.
  11459. function resolveTransitionHooks(vnode, props, state, instance) {
  11460. const { appear, mode, persisted = false, onBeforeEnter, onEnter, onAfterEnter, onEnterCancelled, onBeforeLeave, onLeave, onAfterLeave, onLeaveCancelled, onBeforeAppear, onAppear, onAfterAppear, onAppearCancelled } = props;
  11461. const key = String(vnode.key);
  11462. const leavingVNodesCache = getLeavingNodesForType(state, vnode);
  11463. const callHook = (hook, args) => {
  11464. hook &&
  11465. callWithAsyncErrorHandling(hook, instance, 9 /* TRANSITION_HOOK */, args);
  11466. };
  11467. const hooks = {
  11468. mode,
  11469. persisted,
  11470. beforeEnter(el) {
  11471. let hook = onBeforeEnter;
  11472. if (!state.isMounted) {
  11473. if (appear) {
  11474. hook = onBeforeAppear || onBeforeEnter;
  11475. }
  11476. else {
  11477. return;
  11478. }
  11479. }
  11480. // for same element (v-show)
  11481. if (el._leaveCb) {
  11482. el._leaveCb(true /* cancelled */);
  11483. }
  11484. // for toggled element with same key (v-if)
  11485. const leavingVNode = leavingVNodesCache[key];
  11486. if (leavingVNode &&
  11487. isSameVNodeType(vnode, leavingVNode) &&
  11488. leavingVNode.el._leaveCb) {
  11489. // force early removal (not cancelled)
  11490. leavingVNode.el._leaveCb();
  11491. }
  11492. callHook(hook, [el]);
  11493. },
  11494. enter(el) {
  11495. let hook = onEnter;
  11496. let afterHook = onAfterEnter;
  11497. let cancelHook = onEnterCancelled;
  11498. if (!state.isMounted) {
  11499. if (appear) {
  11500. hook = onAppear || onEnter;
  11501. afterHook = onAfterAppear || onAfterEnter;
  11502. cancelHook = onAppearCancelled || onEnterCancelled;
  11503. }
  11504. else {
  11505. return;
  11506. }
  11507. }
  11508. let called = false;
  11509. const done = (el._enterCb = (cancelled) => {
  11510. if (called)
  11511. return;
  11512. called = true;
  11513. if (cancelled) {
  11514. callHook(cancelHook, [el]);
  11515. }
  11516. else {
  11517. callHook(afterHook, [el]);
  11518. }
  11519. if (hooks.delayedLeave) {
  11520. hooks.delayedLeave();
  11521. }
  11522. el._enterCb = undefined;
  11523. });
  11524. if (hook) {
  11525. hook(el, done);
  11526. if (hook.length <= 1) {
  11527. done();
  11528. }
  11529. }
  11530. else {
  11531. done();
  11532. }
  11533. },
  11534. leave(el, remove) {
  11535. const key = String(vnode.key);
  11536. if (el._enterCb) {
  11537. el._enterCb(true /* cancelled */);
  11538. }
  11539. if (state.isUnmounting) {
  11540. return remove();
  11541. }
  11542. callHook(onBeforeLeave, [el]);
  11543. let called = false;
  11544. const done = (el._leaveCb = (cancelled) => {
  11545. if (called)
  11546. return;
  11547. called = true;
  11548. remove();
  11549. if (cancelled) {
  11550. callHook(onLeaveCancelled, [el]);
  11551. }
  11552. else {
  11553. callHook(onAfterLeave, [el]);
  11554. }
  11555. el._leaveCb = undefined;
  11556. if (leavingVNodesCache[key] === vnode) {
  11557. delete leavingVNodesCache[key];
  11558. }
  11559. });
  11560. leavingVNodesCache[key] = vnode;
  11561. if (onLeave) {
  11562. onLeave(el, done);
  11563. if (onLeave.length <= 1) {
  11564. done();
  11565. }
  11566. }
  11567. else {
  11568. done();
  11569. }
  11570. },
  11571. clone(vnode) {
  11572. return resolveTransitionHooks(vnode, props, state, instance);
  11573. }
  11574. };
  11575. return hooks;
  11576. }
  11577. // the placeholder really only handles one special case: KeepAlive
  11578. // in the case of a KeepAlive in a leave phase we need to return a KeepAlive
  11579. // placeholder with empty content to avoid the KeepAlive instance from being
  11580. // unmounted.
  11581. function emptyPlaceholder(vnode) {
  11582. if (isKeepAlive(vnode)) {
  11583. vnode = cloneVNode(vnode);
  11584. vnode.children = null;
  11585. return vnode;
  11586. }
  11587. }
  11588. function getKeepAliveChild(vnode) {
  11589. return isKeepAlive(vnode)
  11590. ? vnode.children
  11591. ? vnode.children[0]
  11592. : undefined
  11593. : vnode;
  11594. }
  11595. function setTransitionHooks(vnode, hooks) {
  11596. if (vnode.shapeFlag & 6 /* COMPONENT */ && vnode.component) {
  11597. setTransitionHooks(vnode.component.subTree, hooks);
  11598. }
  11599. else if (vnode.shapeFlag & 128 /* SUSPENSE */) {
  11600. vnode.ssContent.transition = hooks.clone(vnode.ssContent);
  11601. vnode.ssFallback.transition = hooks.clone(vnode.ssFallback);
  11602. }
  11603. else {
  11604. vnode.transition = hooks;
  11605. }
  11606. }
  11607. function getTransitionRawChildren(children, keepComment = false, parentKey) {
  11608. let ret = [];
  11609. let keyedFragmentCount = 0;
  11610. for (let i = 0; i < children.length; i++) {
  11611. let child = children[i];
  11612. // #5360 inherit parent key in case of <template v-for>
  11613. const key = parentKey == null
  11614. ? child.key
  11615. : String(parentKey) + String(child.key != null ? child.key : i);
  11616. // handle fragment children case, e.g. v-for
  11617. if (child.type === Fragment) {
  11618. if (child.patchFlag & 128 /* KEYED_FRAGMENT */)
  11619. keyedFragmentCount++;
  11620. ret = ret.concat(getTransitionRawChildren(child.children, keepComment, key));
  11621. }
  11622. // comment placeholders should be skipped, e.g. v-if
  11623. else if (keepComment || child.type !== Comment) {
  11624. ret.push(key != null ? cloneVNode(child, { key }) : child);
  11625. }
  11626. }
  11627. // #1126 if a transition children list contains multiple sub fragments, these
  11628. // fragments will be merged into a flat children array. Since each v-for
  11629. // fragment may contain different static bindings inside, we need to de-op
  11630. // these children to force full diffs to ensure correct behavior.
  11631. if (keyedFragmentCount > 1) {
  11632. for (let i = 0; i < ret.length; i++) {
  11633. ret[i].patchFlag = -2 /* BAIL */;
  11634. }
  11635. }
  11636. return ret;
  11637. }
  11638. // implementation, close to no-op
  11639. function defineComponent(options) {
  11640. return (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(options) ? { setup: options, name: options.name } : options;
  11641. }
  11642. const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
  11643. function defineAsyncComponent(source) {
  11644. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(source)) {
  11645. source = { loader: source };
  11646. }
  11647. const { loader, loadingComponent, errorComponent, delay = 200, timeout, // undefined = never times out
  11648. suspensible = true, onError: userOnError } = source;
  11649. let pendingRequest = null;
  11650. let resolvedComp;
  11651. let retries = 0;
  11652. const retry = () => {
  11653. retries++;
  11654. pendingRequest = null;
  11655. return load();
  11656. };
  11657. const load = () => {
  11658. let thisRequest;
  11659. return (pendingRequest ||
  11660. (thisRequest = pendingRequest =
  11661. loader()
  11662. .catch(err => {
  11663. err = err instanceof Error ? err : new Error(String(err));
  11664. if (userOnError) {
  11665. return new Promise((resolve, reject) => {
  11666. const userRetry = () => resolve(retry());
  11667. const userFail = () => reject(err);
  11668. userOnError(err, userRetry, userFail, retries + 1);
  11669. });
  11670. }
  11671. else {
  11672. throw err;
  11673. }
  11674. })
  11675. .then((comp) => {
  11676. if (thisRequest !== pendingRequest && pendingRequest) {
  11677. return pendingRequest;
  11678. }
  11679. if (( true) && !comp) {
  11680. warn(`Async component loader resolved to undefined. ` +
  11681. `If you are using retry(), make sure to return its return value.`);
  11682. }
  11683. // interop module default
  11684. if (comp &&
  11685. (comp.__esModule || comp[Symbol.toStringTag] === 'Module')) {
  11686. comp = comp.default;
  11687. }
  11688. if (( true) && comp && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(comp) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(comp)) {
  11689. throw new Error(`Invalid async component load result: ${comp}`);
  11690. }
  11691. resolvedComp = comp;
  11692. return comp;
  11693. })));
  11694. };
  11695. return defineComponent({
  11696. name: 'AsyncComponentWrapper',
  11697. __asyncLoader: load,
  11698. get __asyncResolved() {
  11699. return resolvedComp;
  11700. },
  11701. setup() {
  11702. const instance = currentInstance;
  11703. // already resolved
  11704. if (resolvedComp) {
  11705. return () => createInnerComp(resolvedComp, instance);
  11706. }
  11707. const onError = (err) => {
  11708. pendingRequest = null;
  11709. handleError(err, instance, 13 /* ASYNC_COMPONENT_LOADER */, !errorComponent /* do not throw in dev if user provided error component */);
  11710. };
  11711. // suspense-controlled or SSR.
  11712. if ((suspensible && instance.suspense) ||
  11713. (isInSSRComponentSetup)) {
  11714. return load()
  11715. .then(comp => {
  11716. return () => createInnerComp(comp, instance);
  11717. })
  11718. .catch(err => {
  11719. onError(err);
  11720. return () => errorComponent
  11721. ? createVNode(errorComponent, {
  11722. error: err
  11723. })
  11724. : null;
  11725. });
  11726. }
  11727. const loaded = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.ref)(false);
  11728. const error = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.ref)();
  11729. const delayed = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.ref)(!!delay);
  11730. if (delay) {
  11731. setTimeout(() => {
  11732. delayed.value = false;
  11733. }, delay);
  11734. }
  11735. if (timeout != null) {
  11736. setTimeout(() => {
  11737. if (!loaded.value && !error.value) {
  11738. const err = new Error(`Async component timed out after ${timeout}ms.`);
  11739. onError(err);
  11740. error.value = err;
  11741. }
  11742. }, timeout);
  11743. }
  11744. load()
  11745. .then(() => {
  11746. loaded.value = true;
  11747. if (instance.parent && isKeepAlive(instance.parent.vnode)) {
  11748. // parent is keep-alive, force update so the loaded component's
  11749. // name is taken into account
  11750. queueJob(instance.parent.update);
  11751. }
  11752. })
  11753. .catch(err => {
  11754. onError(err);
  11755. error.value = err;
  11756. });
  11757. return () => {
  11758. if (loaded.value && resolvedComp) {
  11759. return createInnerComp(resolvedComp, instance);
  11760. }
  11761. else if (error.value && errorComponent) {
  11762. return createVNode(errorComponent, {
  11763. error: error.value
  11764. });
  11765. }
  11766. else if (loadingComponent && !delayed.value) {
  11767. return createVNode(loadingComponent);
  11768. }
  11769. };
  11770. }
  11771. });
  11772. }
  11773. function createInnerComp(comp, { vnode: { ref, props, children } }) {
  11774. const vnode = createVNode(comp, props, children);
  11775. // ensure inner component inherits the async wrapper's ref owner
  11776. vnode.ref = ref;
  11777. return vnode;
  11778. }
  11779. const isKeepAlive = (vnode) => vnode.type.__isKeepAlive;
  11780. const KeepAliveImpl = {
  11781. name: `KeepAlive`,
  11782. // Marker for special handling inside the renderer. We are not using a ===
  11783. // check directly on KeepAlive in the renderer, because importing it directly
  11784. // would prevent it from being tree-shaken.
  11785. __isKeepAlive: true,
  11786. props: {
  11787. include: [String, RegExp, Array],
  11788. exclude: [String, RegExp, Array],
  11789. max: [String, Number]
  11790. },
  11791. setup(props, { slots }) {
  11792. const instance = getCurrentInstance();
  11793. // KeepAlive communicates with the instantiated renderer via the
  11794. // ctx where the renderer passes in its internals,
  11795. // and the KeepAlive instance exposes activate/deactivate implementations.
  11796. // The whole point of this is to avoid importing KeepAlive directly in the
  11797. // renderer to facilitate tree-shaking.
  11798. const sharedContext = instance.ctx;
  11799. // if the internal renderer is not registered, it indicates that this is server-side rendering,
  11800. // for KeepAlive, we just need to render its children
  11801. if (!sharedContext.renderer) {
  11802. return slots.default;
  11803. }
  11804. const cache = new Map();
  11805. const keys = new Set();
  11806. let current = null;
  11807. if (true) {
  11808. instance.__v_cache = cache;
  11809. }
  11810. const parentSuspense = instance.suspense;
  11811. const { renderer: { p: patch, m: move, um: _unmount, o: { createElement } } } = sharedContext;
  11812. const storageContainer = createElement('div');
  11813. sharedContext.activate = (vnode, container, anchor, isSVG, optimized) => {
  11814. const instance = vnode.component;
  11815. move(vnode, container, anchor, 0 /* ENTER */, parentSuspense);
  11816. // in case props have changed
  11817. patch(instance.vnode, vnode, container, anchor, instance, parentSuspense, isSVG, vnode.slotScopeIds, optimized);
  11818. queuePostRenderEffect(() => {
  11819. instance.isDeactivated = false;
  11820. if (instance.a) {
  11821. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(instance.a);
  11822. }
  11823. const vnodeHook = vnode.props && vnode.props.onVnodeMounted;
  11824. if (vnodeHook) {
  11825. invokeVNodeHook(vnodeHook, instance.parent, vnode);
  11826. }
  11827. }, parentSuspense);
  11828. if (true) {
  11829. // Update components tree
  11830. devtoolsComponentAdded(instance);
  11831. }
  11832. };
  11833. sharedContext.deactivate = (vnode) => {
  11834. const instance = vnode.component;
  11835. move(vnode, storageContainer, null, 1 /* LEAVE */, parentSuspense);
  11836. queuePostRenderEffect(() => {
  11837. if (instance.da) {
  11838. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(instance.da);
  11839. }
  11840. const vnodeHook = vnode.props && vnode.props.onVnodeUnmounted;
  11841. if (vnodeHook) {
  11842. invokeVNodeHook(vnodeHook, instance.parent, vnode);
  11843. }
  11844. instance.isDeactivated = true;
  11845. }, parentSuspense);
  11846. if (true) {
  11847. // Update components tree
  11848. devtoolsComponentAdded(instance);
  11849. }
  11850. };
  11851. function unmount(vnode) {
  11852. // reset the shapeFlag so it can be properly unmounted
  11853. resetShapeFlag(vnode);
  11854. _unmount(vnode, instance, parentSuspense, true);
  11855. }
  11856. function pruneCache(filter) {
  11857. cache.forEach((vnode, key) => {
  11858. const name = getComponentName(vnode.type);
  11859. if (name && (!filter || !filter(name))) {
  11860. pruneCacheEntry(key);
  11861. }
  11862. });
  11863. }
  11864. function pruneCacheEntry(key) {
  11865. const cached = cache.get(key);
  11866. if (!current || cached.type !== current.type) {
  11867. unmount(cached);
  11868. }
  11869. else if (current) {
  11870. // current active instance should no longer be kept-alive.
  11871. // we can't unmount it now but it might be later, so reset its flag now.
  11872. resetShapeFlag(current);
  11873. }
  11874. cache.delete(key);
  11875. keys.delete(key);
  11876. }
  11877. // prune cache on include/exclude prop change
  11878. watch(() => [props.include, props.exclude], ([include, exclude]) => {
  11879. include && pruneCache(name => matches(include, name));
  11880. exclude && pruneCache(name => !matches(exclude, name));
  11881. },
  11882. // prune post-render after `current` has been updated
  11883. { flush: 'post', deep: true });
  11884. // cache sub tree after render
  11885. let pendingCacheKey = null;
  11886. const cacheSubtree = () => {
  11887. // fix #1621, the pendingCacheKey could be 0
  11888. if (pendingCacheKey != null) {
  11889. cache.set(pendingCacheKey, getInnerChild(instance.subTree));
  11890. }
  11891. };
  11892. onMounted(cacheSubtree);
  11893. onUpdated(cacheSubtree);
  11894. onBeforeUnmount(() => {
  11895. cache.forEach(cached => {
  11896. const { subTree, suspense } = instance;
  11897. const vnode = getInnerChild(subTree);
  11898. if (cached.type === vnode.type) {
  11899. // current instance will be unmounted as part of keep-alive's unmount
  11900. resetShapeFlag(vnode);
  11901. // but invoke its deactivated hook here
  11902. const da = vnode.component.da;
  11903. da && queuePostRenderEffect(da, suspense);
  11904. return;
  11905. }
  11906. unmount(cached);
  11907. });
  11908. });
  11909. return () => {
  11910. pendingCacheKey = null;
  11911. if (!slots.default) {
  11912. return null;
  11913. }
  11914. const children = slots.default();
  11915. const rawVNode = children[0];
  11916. if (children.length > 1) {
  11917. if ((true)) {
  11918. warn(`KeepAlive should contain exactly one component child.`);
  11919. }
  11920. current = null;
  11921. return children;
  11922. }
  11923. else if (!isVNode(rawVNode) ||
  11924. (!(rawVNode.shapeFlag & 4 /* STATEFUL_COMPONENT */) &&
  11925. !(rawVNode.shapeFlag & 128 /* SUSPENSE */))) {
  11926. current = null;
  11927. return rawVNode;
  11928. }
  11929. let vnode = getInnerChild(rawVNode);
  11930. const comp = vnode.type;
  11931. // for async components, name check should be based in its loaded
  11932. // inner component if available
  11933. const name = getComponentName(isAsyncWrapper(vnode)
  11934. ? vnode.type.__asyncResolved || {}
  11935. : comp);
  11936. const { include, exclude, max } = props;
  11937. if ((include && (!name || !matches(include, name))) ||
  11938. (exclude && name && matches(exclude, name))) {
  11939. current = vnode;
  11940. return rawVNode;
  11941. }
  11942. const key = vnode.key == null ? comp : vnode.key;
  11943. const cachedVNode = cache.get(key);
  11944. // clone vnode if it's reused because we are going to mutate it
  11945. if (vnode.el) {
  11946. vnode = cloneVNode(vnode);
  11947. if (rawVNode.shapeFlag & 128 /* SUSPENSE */) {
  11948. rawVNode.ssContent = vnode;
  11949. }
  11950. }
  11951. // #1513 it's possible for the returned vnode to be cloned due to attr
  11952. // fallthrough or scopeId, so the vnode here may not be the final vnode
  11953. // that is mounted. Instead of caching it directly, we store the pending
  11954. // key and cache `instance.subTree` (the normalized vnode) in
  11955. // beforeMount/beforeUpdate hooks.
  11956. pendingCacheKey = key;
  11957. if (cachedVNode) {
  11958. // copy over mounted state
  11959. vnode.el = cachedVNode.el;
  11960. vnode.component = cachedVNode.component;
  11961. if (vnode.transition) {
  11962. // recursively update transition hooks on subTree
  11963. setTransitionHooks(vnode, vnode.transition);
  11964. }
  11965. // avoid vnode being mounted as fresh
  11966. vnode.shapeFlag |= 512 /* COMPONENT_KEPT_ALIVE */;
  11967. // make this key the freshest
  11968. keys.delete(key);
  11969. keys.add(key);
  11970. }
  11971. else {
  11972. keys.add(key);
  11973. // prune oldest entry
  11974. if (max && keys.size > parseInt(max, 10)) {
  11975. pruneCacheEntry(keys.values().next().value);
  11976. }
  11977. }
  11978. // avoid vnode being unmounted
  11979. vnode.shapeFlag |= 256 /* COMPONENT_SHOULD_KEEP_ALIVE */;
  11980. current = vnode;
  11981. return rawVNode;
  11982. };
  11983. }
  11984. };
  11985. // export the public type for h/tsx inference
  11986. // also to avoid inline import() in generated d.ts files
  11987. const KeepAlive = KeepAliveImpl;
  11988. function matches(pattern, name) {
  11989. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(pattern)) {
  11990. return pattern.some((p) => matches(p, name));
  11991. }
  11992. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(pattern)) {
  11993. return pattern.split(',').includes(name);
  11994. }
  11995. else if (pattern.test) {
  11996. return pattern.test(name);
  11997. }
  11998. /* istanbul ignore next */
  11999. return false;
  12000. }
  12001. function onActivated(hook, target) {
  12002. registerKeepAliveHook(hook, "a" /* ACTIVATED */, target);
  12003. }
  12004. function onDeactivated(hook, target) {
  12005. registerKeepAliveHook(hook, "da" /* DEACTIVATED */, target);
  12006. }
  12007. function registerKeepAliveHook(hook, type, target = currentInstance) {
  12008. // cache the deactivate branch check wrapper for injected hooks so the same
  12009. // hook can be properly deduped by the scheduler. "__wdc" stands for "with
  12010. // deactivation check".
  12011. const wrappedHook = hook.__wdc ||
  12012. (hook.__wdc = () => {
  12013. // only fire the hook if the target instance is NOT in a deactivated branch.
  12014. let current = target;
  12015. while (current) {
  12016. if (current.isDeactivated) {
  12017. return;
  12018. }
  12019. current = current.parent;
  12020. }
  12021. return hook();
  12022. });
  12023. injectHook(type, wrappedHook, target);
  12024. // In addition to registering it on the target instance, we walk up the parent
  12025. // chain and register it on all ancestor instances that are keep-alive roots.
  12026. // This avoids the need to walk the entire component tree when invoking these
  12027. // hooks, and more importantly, avoids the need to track child components in
  12028. // arrays.
  12029. if (target) {
  12030. let current = target.parent;
  12031. while (current && current.parent) {
  12032. if (isKeepAlive(current.parent.vnode)) {
  12033. injectToKeepAliveRoot(wrappedHook, type, target, current);
  12034. }
  12035. current = current.parent;
  12036. }
  12037. }
  12038. }
  12039. function injectToKeepAliveRoot(hook, type, target, keepAliveRoot) {
  12040. // injectHook wraps the original for error handling, so make sure to remove
  12041. // the wrapped version.
  12042. const injected = injectHook(type, hook, keepAliveRoot, true /* prepend */);
  12043. onUnmounted(() => {
  12044. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.remove)(keepAliveRoot[type], injected);
  12045. }, target);
  12046. }
  12047. function resetShapeFlag(vnode) {
  12048. let shapeFlag = vnode.shapeFlag;
  12049. if (shapeFlag & 256 /* COMPONENT_SHOULD_KEEP_ALIVE */) {
  12050. shapeFlag -= 256 /* COMPONENT_SHOULD_KEEP_ALIVE */;
  12051. }
  12052. if (shapeFlag & 512 /* COMPONENT_KEPT_ALIVE */) {
  12053. shapeFlag -= 512 /* COMPONENT_KEPT_ALIVE */;
  12054. }
  12055. vnode.shapeFlag = shapeFlag;
  12056. }
  12057. function getInnerChild(vnode) {
  12058. return vnode.shapeFlag & 128 /* SUSPENSE */ ? vnode.ssContent : vnode;
  12059. }
  12060. function injectHook(type, hook, target = currentInstance, prepend = false) {
  12061. if (target) {
  12062. const hooks = target[type] || (target[type] = []);
  12063. // cache the error handling wrapper for injected hooks so the same hook
  12064. // can be properly deduped by the scheduler. "__weh" stands for "with error
  12065. // handling".
  12066. const wrappedHook = hook.__weh ||
  12067. (hook.__weh = (...args) => {
  12068. if (target.isUnmounted) {
  12069. return;
  12070. }
  12071. // disable tracking inside all lifecycle hooks
  12072. // since they can potentially be called inside effects.
  12073. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.pauseTracking)();
  12074. // Set currentInstance during hook invocation.
  12075. // This assumes the hook does not synchronously trigger other hooks, which
  12076. // can only be false when the user does something really funky.
  12077. setCurrentInstance(target);
  12078. const res = callWithAsyncErrorHandling(hook, target, type, args);
  12079. unsetCurrentInstance();
  12080. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.resetTracking)();
  12081. return res;
  12082. });
  12083. if (prepend) {
  12084. hooks.unshift(wrappedHook);
  12085. }
  12086. else {
  12087. hooks.push(wrappedHook);
  12088. }
  12089. return wrappedHook;
  12090. }
  12091. else if ((true)) {
  12092. const apiName = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey)(ErrorTypeStrings[type].replace(/ hook$/, ''));
  12093. warn(`${apiName} is called when there is no active component instance to be ` +
  12094. `associated with. ` +
  12095. `Lifecycle injection APIs can only be used during execution of setup().` +
  12096. (` If you are using async setup(), make sure to register lifecycle ` +
  12097. `hooks before the first await statement.`
  12098. ));
  12099. }
  12100. }
  12101. const createHook = (lifecycle) => (hook, target = currentInstance) =>
  12102. // post-create lifecycle registrations are noops during SSR (except for serverPrefetch)
  12103. (!isInSSRComponentSetup || lifecycle === "sp" /* SERVER_PREFETCH */) &&
  12104. injectHook(lifecycle, hook, target);
  12105. const onBeforeMount = createHook("bm" /* BEFORE_MOUNT */);
  12106. const onMounted = createHook("m" /* MOUNTED */);
  12107. const onBeforeUpdate = createHook("bu" /* BEFORE_UPDATE */);
  12108. const onUpdated = createHook("u" /* UPDATED */);
  12109. const onBeforeUnmount = createHook("bum" /* BEFORE_UNMOUNT */);
  12110. const onUnmounted = createHook("um" /* UNMOUNTED */);
  12111. const onServerPrefetch = createHook("sp" /* SERVER_PREFETCH */);
  12112. const onRenderTriggered = createHook("rtg" /* RENDER_TRIGGERED */);
  12113. const onRenderTracked = createHook("rtc" /* RENDER_TRACKED */);
  12114. function onErrorCaptured(hook, target = currentInstance) {
  12115. injectHook("ec" /* ERROR_CAPTURED */, hook, target);
  12116. }
  12117. function createDuplicateChecker() {
  12118. const cache = Object.create(null);
  12119. return (type, key) => {
  12120. if (cache[key]) {
  12121. warn(`${type} property "${key}" is already defined in ${cache[key]}.`);
  12122. }
  12123. else {
  12124. cache[key] = type;
  12125. }
  12126. };
  12127. }
  12128. let shouldCacheAccess = true;
  12129. function applyOptions(instance) {
  12130. const options = resolveMergedOptions(instance);
  12131. const publicThis = instance.proxy;
  12132. const ctx = instance.ctx;
  12133. // do not cache property access on public proxy during state initialization
  12134. shouldCacheAccess = false;
  12135. // call beforeCreate first before accessing other options since
  12136. // the hook may mutate resolved options (#2791)
  12137. if (options.beforeCreate) {
  12138. callHook(options.beforeCreate, instance, "bc" /* BEFORE_CREATE */);
  12139. }
  12140. const {
  12141. // state
  12142. data: dataOptions, computed: computedOptions, methods, watch: watchOptions, provide: provideOptions, inject: injectOptions,
  12143. // lifecycle
  12144. created, beforeMount, mounted, beforeUpdate, updated, activated, deactivated, beforeDestroy, beforeUnmount, destroyed, unmounted, render, renderTracked, renderTriggered, errorCaptured, serverPrefetch,
  12145. // public API
  12146. expose, inheritAttrs,
  12147. // assets
  12148. components, directives, filters } = options;
  12149. const checkDuplicateProperties = ( true) ? createDuplicateChecker() : 0;
  12150. if ((true)) {
  12151. const [propsOptions] = instance.propsOptions;
  12152. if (propsOptions) {
  12153. for (const key in propsOptions) {
  12154. checkDuplicateProperties("Props" /* PROPS */, key);
  12155. }
  12156. }
  12157. }
  12158. // options initialization order (to be consistent with Vue 2):
  12159. // - props (already done outside of this function)
  12160. // - inject
  12161. // - methods
  12162. // - data (deferred since it relies on `this` access)
  12163. // - computed
  12164. // - watch (deferred since it relies on `this` access)
  12165. if (injectOptions) {
  12166. resolveInjections(injectOptions, ctx, checkDuplicateProperties, instance.appContext.config.unwrapInjectedRef);
  12167. }
  12168. if (methods) {
  12169. for (const key in methods) {
  12170. const methodHandler = methods[key];
  12171. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(methodHandler)) {
  12172. // In dev mode, we use the `createRenderContext` function to define
  12173. // methods to the proxy target, and those are read-only but
  12174. // reconfigurable, so it needs to be redefined here
  12175. if ((true)) {
  12176. Object.defineProperty(ctx, key, {
  12177. value: methodHandler.bind(publicThis),
  12178. configurable: true,
  12179. enumerable: true,
  12180. writable: true
  12181. });
  12182. }
  12183. else {}
  12184. if ((true)) {
  12185. checkDuplicateProperties("Methods" /* METHODS */, key);
  12186. }
  12187. }
  12188. else if ((true)) {
  12189. warn(`Method "${key}" has type "${typeof methodHandler}" in the component definition. ` +
  12190. `Did you reference the function correctly?`);
  12191. }
  12192. }
  12193. }
  12194. if (dataOptions) {
  12195. if (( true) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(dataOptions)) {
  12196. warn(`The data option must be a function. ` +
  12197. `Plain object usage is no longer supported.`);
  12198. }
  12199. const data = dataOptions.call(publicThis, publicThis);
  12200. if (( true) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isPromise)(data)) {
  12201. warn(`data() returned a Promise - note data() cannot be async; If you ` +
  12202. `intend to perform data fetching before component renders, use ` +
  12203. `async setup() + <Suspense>.`);
  12204. }
  12205. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(data)) {
  12206. ( true) && warn(`data() should return an object.`);
  12207. }
  12208. else {
  12209. instance.data = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.reactive)(data);
  12210. if ((true)) {
  12211. for (const key in data) {
  12212. checkDuplicateProperties("Data" /* DATA */, key);
  12213. // expose data on ctx during dev
  12214. if (key[0] !== '$' && key[0] !== '_') {
  12215. Object.defineProperty(ctx, key, {
  12216. configurable: true,
  12217. enumerable: true,
  12218. get: () => data[key],
  12219. set: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP
  12220. });
  12221. }
  12222. }
  12223. }
  12224. }
  12225. }
  12226. // state initialization complete at this point - start caching access
  12227. shouldCacheAccess = true;
  12228. if (computedOptions) {
  12229. for (const key in computedOptions) {
  12230. const opt = computedOptions[key];
  12231. const get = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(opt)
  12232. ? opt.bind(publicThis, publicThis)
  12233. : (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(opt.get)
  12234. ? opt.get.bind(publicThis, publicThis)
  12235. : _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP;
  12236. if (( true) && get === _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP) {
  12237. warn(`Computed property "${key}" has no getter.`);
  12238. }
  12239. const set = !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(opt) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(opt.set)
  12240. ? opt.set.bind(publicThis)
  12241. : ( true)
  12242. ? () => {
  12243. warn(`Write operation failed: computed property "${key}" is readonly.`);
  12244. }
  12245. : 0;
  12246. const c = computed({
  12247. get,
  12248. set
  12249. });
  12250. Object.defineProperty(ctx, key, {
  12251. enumerable: true,
  12252. configurable: true,
  12253. get: () => c.value,
  12254. set: v => (c.value = v)
  12255. });
  12256. if ((true)) {
  12257. checkDuplicateProperties("Computed" /* COMPUTED */, key);
  12258. }
  12259. }
  12260. }
  12261. if (watchOptions) {
  12262. for (const key in watchOptions) {
  12263. createWatcher(watchOptions[key], ctx, publicThis, key);
  12264. }
  12265. }
  12266. if (provideOptions) {
  12267. const provides = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(provideOptions)
  12268. ? provideOptions.call(publicThis)
  12269. : provideOptions;
  12270. Reflect.ownKeys(provides).forEach(key => {
  12271. provide(key, provides[key]);
  12272. });
  12273. }
  12274. if (created) {
  12275. callHook(created, instance, "c" /* CREATED */);
  12276. }
  12277. function registerLifecycleHook(register, hook) {
  12278. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(hook)) {
  12279. hook.forEach(_hook => register(_hook.bind(publicThis)));
  12280. }
  12281. else if (hook) {
  12282. register(hook.bind(publicThis));
  12283. }
  12284. }
  12285. registerLifecycleHook(onBeforeMount, beforeMount);
  12286. registerLifecycleHook(onMounted, mounted);
  12287. registerLifecycleHook(onBeforeUpdate, beforeUpdate);
  12288. registerLifecycleHook(onUpdated, updated);
  12289. registerLifecycleHook(onActivated, activated);
  12290. registerLifecycleHook(onDeactivated, deactivated);
  12291. registerLifecycleHook(onErrorCaptured, errorCaptured);
  12292. registerLifecycleHook(onRenderTracked, renderTracked);
  12293. registerLifecycleHook(onRenderTriggered, renderTriggered);
  12294. registerLifecycleHook(onBeforeUnmount, beforeUnmount);
  12295. registerLifecycleHook(onUnmounted, unmounted);
  12296. registerLifecycleHook(onServerPrefetch, serverPrefetch);
  12297. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(expose)) {
  12298. if (expose.length) {
  12299. const exposed = instance.exposed || (instance.exposed = {});
  12300. expose.forEach(key => {
  12301. Object.defineProperty(exposed, key, {
  12302. get: () => publicThis[key],
  12303. set: val => (publicThis[key] = val)
  12304. });
  12305. });
  12306. }
  12307. else if (!instance.exposed) {
  12308. instance.exposed = {};
  12309. }
  12310. }
  12311. // options that are handled when creating the instance but also need to be
  12312. // applied from mixins
  12313. if (render && instance.render === _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP) {
  12314. instance.render = render;
  12315. }
  12316. if (inheritAttrs != null) {
  12317. instance.inheritAttrs = inheritAttrs;
  12318. }
  12319. // asset options.
  12320. if (components)
  12321. instance.components = components;
  12322. if (directives)
  12323. instance.directives = directives;
  12324. }
  12325. function resolveInjections(injectOptions, ctx, checkDuplicateProperties = _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP, unwrapRef = false) {
  12326. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(injectOptions)) {
  12327. injectOptions = normalizeInject(injectOptions);
  12328. }
  12329. for (const key in injectOptions) {
  12330. const opt = injectOptions[key];
  12331. let injected;
  12332. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(opt)) {
  12333. if ('default' in opt) {
  12334. injected = inject(opt.from || key, opt.default, true /* treat default function as factory */);
  12335. }
  12336. else {
  12337. injected = inject(opt.from || key);
  12338. }
  12339. }
  12340. else {
  12341. injected = inject(opt);
  12342. }
  12343. if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(injected)) {
  12344. // TODO remove the check in 3.3
  12345. if (unwrapRef) {
  12346. Object.defineProperty(ctx, key, {
  12347. enumerable: true,
  12348. configurable: true,
  12349. get: () => injected.value,
  12350. set: v => (injected.value = v)
  12351. });
  12352. }
  12353. else {
  12354. if ((true)) {
  12355. warn(`injected property "${key}" is a ref and will be auto-unwrapped ` +
  12356. `and no longer needs \`.value\` in the next minor release. ` +
  12357. `To opt-in to the new behavior now, ` +
  12358. `set \`app.config.unwrapInjectedRef = true\` (this config is ` +
  12359. `temporary and will not be needed in the future.)`);
  12360. }
  12361. ctx[key] = injected;
  12362. }
  12363. }
  12364. else {
  12365. ctx[key] = injected;
  12366. }
  12367. if ((true)) {
  12368. checkDuplicateProperties("Inject" /* INJECT */, key);
  12369. }
  12370. }
  12371. }
  12372. function callHook(hook, instance, type) {
  12373. callWithAsyncErrorHandling((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(hook)
  12374. ? hook.map(h => h.bind(instance.proxy))
  12375. : hook.bind(instance.proxy), instance, type);
  12376. }
  12377. function createWatcher(raw, ctx, publicThis, key) {
  12378. const getter = key.includes('.')
  12379. ? createPathGetter(publicThis, key)
  12380. : () => publicThis[key];
  12381. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(raw)) {
  12382. const handler = ctx[raw];
  12383. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handler)) {
  12384. watch(getter, handler);
  12385. }
  12386. else if ((true)) {
  12387. warn(`Invalid watch handler specified by key "${raw}"`, handler);
  12388. }
  12389. }
  12390. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(raw)) {
  12391. watch(getter, raw.bind(publicThis));
  12392. }
  12393. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(raw)) {
  12394. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(raw)) {
  12395. raw.forEach(r => createWatcher(r, ctx, publicThis, key));
  12396. }
  12397. else {
  12398. const handler = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(raw.handler)
  12399. ? raw.handler.bind(publicThis)
  12400. : ctx[raw.handler];
  12401. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handler)) {
  12402. watch(getter, handler, raw);
  12403. }
  12404. else if ((true)) {
  12405. warn(`Invalid watch handler specified by key "${raw.handler}"`, handler);
  12406. }
  12407. }
  12408. }
  12409. else if ((true)) {
  12410. warn(`Invalid watch option: "${key}"`, raw);
  12411. }
  12412. }
  12413. /**
  12414. * Resolve merged options and cache it on the component.
  12415. * This is done only once per-component since the merging does not involve
  12416. * instances.
  12417. */
  12418. function resolveMergedOptions(instance) {
  12419. const base = instance.type;
  12420. const { mixins, extends: extendsOptions } = base;
  12421. const { mixins: globalMixins, optionsCache: cache, config: { optionMergeStrategies } } = instance.appContext;
  12422. const cached = cache.get(base);
  12423. let resolved;
  12424. if (cached) {
  12425. resolved = cached;
  12426. }
  12427. else if (!globalMixins.length && !mixins && !extendsOptions) {
  12428. {
  12429. resolved = base;
  12430. }
  12431. }
  12432. else {
  12433. resolved = {};
  12434. if (globalMixins.length) {
  12435. globalMixins.forEach(m => mergeOptions(resolved, m, optionMergeStrategies, true));
  12436. }
  12437. mergeOptions(resolved, base, optionMergeStrategies);
  12438. }
  12439. cache.set(base, resolved);
  12440. return resolved;
  12441. }
  12442. function mergeOptions(to, from, strats, asMixin = false) {
  12443. const { mixins, extends: extendsOptions } = from;
  12444. if (extendsOptions) {
  12445. mergeOptions(to, extendsOptions, strats, true);
  12446. }
  12447. if (mixins) {
  12448. mixins.forEach((m) => mergeOptions(to, m, strats, true));
  12449. }
  12450. for (const key in from) {
  12451. if (asMixin && key === 'expose') {
  12452. ( true) &&
  12453. warn(`"expose" option is ignored when declared in mixins or extends. ` +
  12454. `It should only be declared in the base component itself.`);
  12455. }
  12456. else {
  12457. const strat = internalOptionMergeStrats[key] || (strats && strats[key]);
  12458. to[key] = strat ? strat(to[key], from[key]) : from[key];
  12459. }
  12460. }
  12461. return to;
  12462. }
  12463. const internalOptionMergeStrats = {
  12464. data: mergeDataFn,
  12465. props: mergeObjectOptions,
  12466. emits: mergeObjectOptions,
  12467. // objects
  12468. methods: mergeObjectOptions,
  12469. computed: mergeObjectOptions,
  12470. // lifecycle
  12471. beforeCreate: mergeAsArray,
  12472. created: mergeAsArray,
  12473. beforeMount: mergeAsArray,
  12474. mounted: mergeAsArray,
  12475. beforeUpdate: mergeAsArray,
  12476. updated: mergeAsArray,
  12477. beforeDestroy: mergeAsArray,
  12478. beforeUnmount: mergeAsArray,
  12479. destroyed: mergeAsArray,
  12480. unmounted: mergeAsArray,
  12481. activated: mergeAsArray,
  12482. deactivated: mergeAsArray,
  12483. errorCaptured: mergeAsArray,
  12484. serverPrefetch: mergeAsArray,
  12485. // assets
  12486. components: mergeObjectOptions,
  12487. directives: mergeObjectOptions,
  12488. // watch
  12489. watch: mergeWatchOptions,
  12490. // provide / inject
  12491. provide: mergeDataFn,
  12492. inject: mergeInject
  12493. };
  12494. function mergeDataFn(to, from) {
  12495. if (!from) {
  12496. return to;
  12497. }
  12498. if (!to) {
  12499. return from;
  12500. }
  12501. return function mergedDataFn() {
  12502. return ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend))((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(to) ? to.call(this, this) : to, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(from) ? from.call(this, this) : from);
  12503. };
  12504. }
  12505. function mergeInject(to, from) {
  12506. return mergeObjectOptions(normalizeInject(to), normalizeInject(from));
  12507. }
  12508. function normalizeInject(raw) {
  12509. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(raw)) {
  12510. const res = {};
  12511. for (let i = 0; i < raw.length; i++) {
  12512. res[raw[i]] = raw[i];
  12513. }
  12514. return res;
  12515. }
  12516. return raw;
  12517. }
  12518. function mergeAsArray(to, from) {
  12519. return to ? [...new Set([].concat(to, from))] : from;
  12520. }
  12521. function mergeObjectOptions(to, from) {
  12522. return to ? (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(Object.create(null), to), from) : from;
  12523. }
  12524. function mergeWatchOptions(to, from) {
  12525. if (!to)
  12526. return from;
  12527. if (!from)
  12528. return to;
  12529. const merged = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(Object.create(null), to);
  12530. for (const key in from) {
  12531. merged[key] = mergeAsArray(to[key], from[key]);
  12532. }
  12533. return merged;
  12534. }
  12535. function initProps(instance, rawProps, isStateful, // result of bitwise flag comparison
  12536. isSSR = false) {
  12537. const props = {};
  12538. const attrs = {};
  12539. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.def)(attrs, InternalObjectKey, 1);
  12540. instance.propsDefaults = Object.create(null);
  12541. setFullProps(instance, rawProps, props, attrs);
  12542. // ensure all declared prop keys are present
  12543. for (const key in instance.propsOptions[0]) {
  12544. if (!(key in props)) {
  12545. props[key] = undefined;
  12546. }
  12547. }
  12548. // validation
  12549. if ((true)) {
  12550. validateProps(rawProps || {}, props, instance);
  12551. }
  12552. if (isStateful) {
  12553. // stateful
  12554. instance.props = isSSR ? props : (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReactive)(props);
  12555. }
  12556. else {
  12557. if (!instance.type.props) {
  12558. // functional w/ optional props, props === attrs
  12559. instance.props = attrs;
  12560. }
  12561. else {
  12562. // functional w/ declared props
  12563. instance.props = props;
  12564. }
  12565. }
  12566. instance.attrs = attrs;
  12567. }
  12568. function updateProps(instance, rawProps, rawPrevProps, optimized) {
  12569. const { props, attrs, vnode: { patchFlag } } = instance;
  12570. const rawCurrentProps = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(props);
  12571. const [options] = instance.propsOptions;
  12572. let hasAttrsChanged = false;
  12573. if (
  12574. // always force full diff in dev
  12575. // - #1942 if hmr is enabled with sfc component
  12576. // - vite#872 non-sfc component used by sfc component
  12577. !(( true) &&
  12578. (instance.type.__hmrId ||
  12579. (instance.parent && instance.parent.type.__hmrId))) &&
  12580. (optimized || patchFlag > 0) &&
  12581. !(patchFlag & 16 /* FULL_PROPS */)) {
  12582. if (patchFlag & 8 /* PROPS */) {
  12583. // Compiler-generated props & no keys change, just set the updated
  12584. // the props.
  12585. const propsToUpdate = instance.vnode.dynamicProps;
  12586. for (let i = 0; i < propsToUpdate.length; i++) {
  12587. let key = propsToUpdate[i];
  12588. // skip if the prop key is a declared emit event listener
  12589. if (isEmitListener(instance.emitsOptions, key)) {
  12590. continue;
  12591. }
  12592. // PROPS flag guarantees rawProps to be non-null
  12593. const value = rawProps[key];
  12594. if (options) {
  12595. // attr / props separation was done on init and will be consistent
  12596. // in this code path, so just check if attrs have it.
  12597. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(attrs, key)) {
  12598. if (value !== attrs[key]) {
  12599. attrs[key] = value;
  12600. hasAttrsChanged = true;
  12601. }
  12602. }
  12603. else {
  12604. const camelizedKey = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(key);
  12605. props[camelizedKey] = resolvePropValue(options, rawCurrentProps, camelizedKey, value, instance, false /* isAbsent */);
  12606. }
  12607. }
  12608. else {
  12609. if (value !== attrs[key]) {
  12610. attrs[key] = value;
  12611. hasAttrsChanged = true;
  12612. }
  12613. }
  12614. }
  12615. }
  12616. }
  12617. else {
  12618. // full props update.
  12619. if (setFullProps(instance, rawProps, props, attrs)) {
  12620. hasAttrsChanged = true;
  12621. }
  12622. // in case of dynamic props, check if we need to delete keys from
  12623. // the props object
  12624. let kebabKey;
  12625. for (const key in rawCurrentProps) {
  12626. if (!rawProps ||
  12627. // for camelCase
  12628. (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(rawProps, key) &&
  12629. // it's possible the original props was passed in as kebab-case
  12630. // and converted to camelCase (#955)
  12631. ((kebabKey = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(key)) === key || !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(rawProps, kebabKey)))) {
  12632. if (options) {
  12633. if (rawPrevProps &&
  12634. // for camelCase
  12635. (rawPrevProps[key] !== undefined ||
  12636. // for kebab-case
  12637. rawPrevProps[kebabKey] !== undefined)) {
  12638. props[key] = resolvePropValue(options, rawCurrentProps, key, undefined, instance, true /* isAbsent */);
  12639. }
  12640. }
  12641. else {
  12642. delete props[key];
  12643. }
  12644. }
  12645. }
  12646. // in the case of functional component w/o props declaration, props and
  12647. // attrs point to the same object so it should already have been updated.
  12648. if (attrs !== rawCurrentProps) {
  12649. for (const key in attrs) {
  12650. if (!rawProps ||
  12651. (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(rawProps, key) &&
  12652. (!false ))) {
  12653. delete attrs[key];
  12654. hasAttrsChanged = true;
  12655. }
  12656. }
  12657. }
  12658. }
  12659. // trigger updates for $attrs in case it's used in component slots
  12660. if (hasAttrsChanged) {
  12661. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.trigger)(instance, "set" /* SET */, '$attrs');
  12662. }
  12663. if ((true)) {
  12664. validateProps(rawProps || {}, props, instance);
  12665. }
  12666. }
  12667. function setFullProps(instance, rawProps, props, attrs) {
  12668. const [options, needCastKeys] = instance.propsOptions;
  12669. let hasAttrsChanged = false;
  12670. let rawCastValues;
  12671. if (rawProps) {
  12672. for (let key in rawProps) {
  12673. // key, ref are reserved and never passed down
  12674. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isReservedProp)(key)) {
  12675. continue;
  12676. }
  12677. const value = rawProps[key];
  12678. // prop option names are camelized during normalization, so to support
  12679. // kebab -> camel conversion here we need to camelize the key.
  12680. let camelKey;
  12681. if (options && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(options, (camelKey = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(key)))) {
  12682. if (!needCastKeys || !needCastKeys.includes(camelKey)) {
  12683. props[camelKey] = value;
  12684. }
  12685. else {
  12686. (rawCastValues || (rawCastValues = {}))[camelKey] = value;
  12687. }
  12688. }
  12689. else if (!isEmitListener(instance.emitsOptions, key)) {
  12690. if (!(key in attrs) || value !== attrs[key]) {
  12691. attrs[key] = value;
  12692. hasAttrsChanged = true;
  12693. }
  12694. }
  12695. }
  12696. }
  12697. if (needCastKeys) {
  12698. const rawCurrentProps = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(props);
  12699. const castValues = rawCastValues || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
  12700. for (let i = 0; i < needCastKeys.length; i++) {
  12701. const key = needCastKeys[i];
  12702. props[key] = resolvePropValue(options, rawCurrentProps, key, castValues[key], instance, !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(castValues, key));
  12703. }
  12704. }
  12705. return hasAttrsChanged;
  12706. }
  12707. function resolvePropValue(options, props, key, value, instance, isAbsent) {
  12708. const opt = options[key];
  12709. if (opt != null) {
  12710. const hasDefault = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(opt, 'default');
  12711. // default values
  12712. if (hasDefault && value === undefined) {
  12713. const defaultValue = opt.default;
  12714. if (opt.type !== Function && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(defaultValue)) {
  12715. const { propsDefaults } = instance;
  12716. if (key in propsDefaults) {
  12717. value = propsDefaults[key];
  12718. }
  12719. else {
  12720. setCurrentInstance(instance);
  12721. value = propsDefaults[key] = defaultValue.call(null, props);
  12722. unsetCurrentInstance();
  12723. }
  12724. }
  12725. else {
  12726. value = defaultValue;
  12727. }
  12728. }
  12729. // boolean casting
  12730. if (opt[0 /* shouldCast */]) {
  12731. if (isAbsent && !hasDefault) {
  12732. value = false;
  12733. }
  12734. else if (opt[1 /* shouldCastTrue */] &&
  12735. (value === '' || value === (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(key))) {
  12736. value = true;
  12737. }
  12738. }
  12739. }
  12740. return value;
  12741. }
  12742. function normalizePropsOptions(comp, appContext, asMixin = false) {
  12743. const cache = appContext.propsCache;
  12744. const cached = cache.get(comp);
  12745. if (cached) {
  12746. return cached;
  12747. }
  12748. const raw = comp.props;
  12749. const normalized = {};
  12750. const needCastKeys = [];
  12751. // apply mixin/extends props
  12752. let hasExtends = false;
  12753. if ( true && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(comp)) {
  12754. const extendProps = (raw) => {
  12755. hasExtends = true;
  12756. const [props, keys] = normalizePropsOptions(raw, appContext, true);
  12757. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(normalized, props);
  12758. if (keys)
  12759. needCastKeys.push(...keys);
  12760. };
  12761. if (!asMixin && appContext.mixins.length) {
  12762. appContext.mixins.forEach(extendProps);
  12763. }
  12764. if (comp.extends) {
  12765. extendProps(comp.extends);
  12766. }
  12767. if (comp.mixins) {
  12768. comp.mixins.forEach(extendProps);
  12769. }
  12770. }
  12771. if (!raw && !hasExtends) {
  12772. cache.set(comp, _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_ARR);
  12773. return _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_ARR;
  12774. }
  12775. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(raw)) {
  12776. for (let i = 0; i < raw.length; i++) {
  12777. if (( true) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(raw[i])) {
  12778. warn(`props must be strings when using array syntax.`, raw[i]);
  12779. }
  12780. const normalizedKey = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(raw[i]);
  12781. if (validatePropName(normalizedKey)) {
  12782. normalized[normalizedKey] = _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
  12783. }
  12784. }
  12785. }
  12786. else if (raw) {
  12787. if (( true) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(raw)) {
  12788. warn(`invalid props options`, raw);
  12789. }
  12790. for (const key in raw) {
  12791. const normalizedKey = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(key);
  12792. if (validatePropName(normalizedKey)) {
  12793. const opt = raw[key];
  12794. const prop = (normalized[normalizedKey] =
  12795. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(opt) || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(opt) ? { type: opt } : opt);
  12796. if (prop) {
  12797. const booleanIndex = getTypeIndex(Boolean, prop.type);
  12798. const stringIndex = getTypeIndex(String, prop.type);
  12799. prop[0 /* shouldCast */] = booleanIndex > -1;
  12800. prop[1 /* shouldCastTrue */] =
  12801. stringIndex < 0 || booleanIndex < stringIndex;
  12802. // if the prop needs boolean casting or default value
  12803. if (booleanIndex > -1 || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(prop, 'default')) {
  12804. needCastKeys.push(normalizedKey);
  12805. }
  12806. }
  12807. }
  12808. }
  12809. }
  12810. const res = [normalized, needCastKeys];
  12811. cache.set(comp, res);
  12812. return res;
  12813. }
  12814. function validatePropName(key) {
  12815. if (key[0] !== '$') {
  12816. return true;
  12817. }
  12818. else if ((true)) {
  12819. warn(`Invalid prop name: "${key}" is a reserved property.`);
  12820. }
  12821. return false;
  12822. }
  12823. // use function string name to check type constructors
  12824. // so that it works across vms / iframes.
  12825. function getType(ctor) {
  12826. const match = ctor && ctor.toString().match(/^\s*function (\w+)/);
  12827. return match ? match[1] : ctor === null ? 'null' : '';
  12828. }
  12829. function isSameType(a, b) {
  12830. return getType(a) === getType(b);
  12831. }
  12832. function getTypeIndex(type, expectedTypes) {
  12833. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(expectedTypes)) {
  12834. return expectedTypes.findIndex(t => isSameType(t, type));
  12835. }
  12836. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(expectedTypes)) {
  12837. return isSameType(expectedTypes, type) ? 0 : -1;
  12838. }
  12839. return -1;
  12840. }
  12841. /**
  12842. * dev only
  12843. */
  12844. function validateProps(rawProps, props, instance) {
  12845. const resolvedValues = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(props);
  12846. const options = instance.propsOptions[0];
  12847. for (const key in options) {
  12848. let opt = options[key];
  12849. if (opt == null)
  12850. continue;
  12851. validateProp(key, resolvedValues[key], opt, !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(rawProps, key) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(rawProps, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(key)));
  12852. }
  12853. }
  12854. /**
  12855. * dev only
  12856. */
  12857. function validateProp(name, value, prop, isAbsent) {
  12858. const { type, required, validator } = prop;
  12859. // required!
  12860. if (required && isAbsent) {
  12861. warn('Missing required prop: "' + name + '"');
  12862. return;
  12863. }
  12864. // missing but optional
  12865. if (value == null && !prop.required) {
  12866. return;
  12867. }
  12868. // type check
  12869. if (type != null && type !== true) {
  12870. let isValid = false;
  12871. const types = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(type) ? type : [type];
  12872. const expectedTypes = [];
  12873. // value is valid as long as one of the specified types match
  12874. for (let i = 0; i < types.length && !isValid; i++) {
  12875. const { valid, expectedType } = assertType(value, types[i]);
  12876. expectedTypes.push(expectedType || '');
  12877. isValid = valid;
  12878. }
  12879. if (!isValid) {
  12880. warn(getInvalidTypeMessage(name, value, expectedTypes));
  12881. return;
  12882. }
  12883. }
  12884. // custom validator
  12885. if (validator && !validator(value)) {
  12886. warn('Invalid prop: custom validator check failed for prop "' + name + '".');
  12887. }
  12888. }
  12889. const isSimpleType = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.makeMap)('String,Number,Boolean,Function,Symbol,BigInt');
  12890. /**
  12891. * dev only
  12892. */
  12893. function assertType(value, type) {
  12894. let valid;
  12895. const expectedType = getType(type);
  12896. if (isSimpleType(expectedType)) {
  12897. const t = typeof value;
  12898. valid = t === expectedType.toLowerCase();
  12899. // for primitive wrapper objects
  12900. if (!valid && t === 'object') {
  12901. valid = value instanceof type;
  12902. }
  12903. }
  12904. else if (expectedType === 'Object') {
  12905. valid = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(value);
  12906. }
  12907. else if (expectedType === 'Array') {
  12908. valid = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(value);
  12909. }
  12910. else if (expectedType === 'null') {
  12911. valid = value === null;
  12912. }
  12913. else {
  12914. valid = value instanceof type;
  12915. }
  12916. return {
  12917. valid,
  12918. expectedType
  12919. };
  12920. }
  12921. /**
  12922. * dev only
  12923. */
  12924. function getInvalidTypeMessage(name, value, expectedTypes) {
  12925. let message = `Invalid prop: type check failed for prop "${name}".` +
  12926. ` Expected ${expectedTypes.map(_vue_shared__WEBPACK_IMPORTED_MODULE_1__.capitalize).join(' | ')}`;
  12927. const expectedType = expectedTypes[0];
  12928. const receivedType = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toRawType)(value);
  12929. const expectedValue = styleValue(value, expectedType);
  12930. const receivedValue = styleValue(value, receivedType);
  12931. // check if we need to specify expected value
  12932. if (expectedTypes.length === 1 &&
  12933. isExplicable(expectedType) &&
  12934. !isBoolean(expectedType, receivedType)) {
  12935. message += ` with value ${expectedValue}`;
  12936. }
  12937. message += `, got ${receivedType} `;
  12938. // check if we need to specify received value
  12939. if (isExplicable(receivedType)) {
  12940. message += `with value ${receivedValue}.`;
  12941. }
  12942. return message;
  12943. }
  12944. /**
  12945. * dev only
  12946. */
  12947. function styleValue(value, type) {
  12948. if (type === 'String') {
  12949. return `"${value}"`;
  12950. }
  12951. else if (type === 'Number') {
  12952. return `${Number(value)}`;
  12953. }
  12954. else {
  12955. return `${value}`;
  12956. }
  12957. }
  12958. /**
  12959. * dev only
  12960. */
  12961. function isExplicable(type) {
  12962. const explicitTypes = ['string', 'number', 'boolean'];
  12963. return explicitTypes.some(elem => type.toLowerCase() === elem);
  12964. }
  12965. /**
  12966. * dev only
  12967. */
  12968. function isBoolean(...args) {
  12969. return args.some(elem => elem.toLowerCase() === 'boolean');
  12970. }
  12971. const isInternalKey = (key) => key[0] === '_' || key === '$stable';
  12972. const normalizeSlotValue = (value) => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(value)
  12973. ? value.map(normalizeVNode)
  12974. : [normalizeVNode(value)];
  12975. const normalizeSlot = (key, rawSlot, ctx) => {
  12976. const normalized = withCtx((...args) => {
  12977. if (( true) && currentInstance) {
  12978. warn(`Slot "${key}" invoked outside of the render function: ` +
  12979. `this will not track dependencies used in the slot. ` +
  12980. `Invoke the slot function inside the render function instead.`);
  12981. }
  12982. return normalizeSlotValue(rawSlot(...args));
  12983. }, ctx);
  12984. normalized._c = false;
  12985. return normalized;
  12986. };
  12987. const normalizeObjectSlots = (rawSlots, slots, instance) => {
  12988. const ctx = rawSlots._ctx;
  12989. for (const key in rawSlots) {
  12990. if (isInternalKey(key))
  12991. continue;
  12992. const value = rawSlots[key];
  12993. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(value)) {
  12994. slots[key] = normalizeSlot(key, value, ctx);
  12995. }
  12996. else if (value != null) {
  12997. if (true) {
  12998. warn(`Non-function value encountered for slot "${key}". ` +
  12999. `Prefer function slots for better performance.`);
  13000. }
  13001. const normalized = normalizeSlotValue(value);
  13002. slots[key] = () => normalized;
  13003. }
  13004. }
  13005. };
  13006. const normalizeVNodeSlots = (instance, children) => {
  13007. if (( true) &&
  13008. !isKeepAlive(instance.vnode) &&
  13009. !(false )) {
  13010. warn(`Non-function value encountered for default slot. ` +
  13011. `Prefer function slots for better performance.`);
  13012. }
  13013. const normalized = normalizeSlotValue(children);
  13014. instance.slots.default = () => normalized;
  13015. };
  13016. const initSlots = (instance, children) => {
  13017. if (instance.vnode.shapeFlag & 32 /* SLOTS_CHILDREN */) {
  13018. const type = children._;
  13019. if (type) {
  13020. // users can get the shallow readonly version of the slots object through `this.$slots`,
  13021. // we should avoid the proxy object polluting the slots of the internal instance
  13022. instance.slots = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(children);
  13023. // make compiler marker non-enumerable
  13024. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.def)(children, '_', type);
  13025. }
  13026. else {
  13027. normalizeObjectSlots(children, (instance.slots = {}));
  13028. }
  13029. }
  13030. else {
  13031. instance.slots = {};
  13032. if (children) {
  13033. normalizeVNodeSlots(instance, children);
  13034. }
  13035. }
  13036. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.def)(instance.slots, InternalObjectKey, 1);
  13037. };
  13038. const updateSlots = (instance, children, optimized) => {
  13039. const { vnode, slots } = instance;
  13040. let needDeletionCheck = true;
  13041. let deletionComparisonTarget = _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
  13042. if (vnode.shapeFlag & 32 /* SLOTS_CHILDREN */) {
  13043. const type = children._;
  13044. if (type) {
  13045. // compiled slots.
  13046. if (( true) && isHmrUpdating) {
  13047. // Parent was HMR updated so slot content may have changed.
  13048. // force update slots and mark instance for hmr as well
  13049. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(slots, children);
  13050. }
  13051. else if (optimized && type === 1 /* STABLE */) {
  13052. // compiled AND stable.
  13053. // no need to update, and skip stale slots removal.
  13054. needDeletionCheck = false;
  13055. }
  13056. else {
  13057. // compiled but dynamic (v-if/v-for on slots) - update slots, but skip
  13058. // normalization.
  13059. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(slots, children);
  13060. // #2893
  13061. // when rendering the optimized slots by manually written render function,
  13062. // we need to delete the `slots._` flag if necessary to make subsequent updates reliable,
  13063. // i.e. let the `renderSlot` create the bailed Fragment
  13064. if (!optimized && type === 1 /* STABLE */) {
  13065. delete slots._;
  13066. }
  13067. }
  13068. }
  13069. else {
  13070. needDeletionCheck = !children.$stable;
  13071. normalizeObjectSlots(children, slots);
  13072. }
  13073. deletionComparisonTarget = children;
  13074. }
  13075. else if (children) {
  13076. // non slot object children (direct value) passed to a component
  13077. normalizeVNodeSlots(instance, children);
  13078. deletionComparisonTarget = { default: 1 };
  13079. }
  13080. // delete stale slots
  13081. if (needDeletionCheck) {
  13082. for (const key in slots) {
  13083. if (!isInternalKey(key) && !(key in deletionComparisonTarget)) {
  13084. delete slots[key];
  13085. }
  13086. }
  13087. }
  13088. };
  13089. /**
  13090. Runtime helper for applying directives to a vnode. Example usage:
  13091. const comp = resolveComponent('comp')
  13092. const foo = resolveDirective('foo')
  13093. const bar = resolveDirective('bar')
  13094. return withDirectives(h(comp), [
  13095. [foo, this.x],
  13096. [bar, this.y]
  13097. ])
  13098. */
  13099. function validateDirectiveName(name) {
  13100. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isBuiltInDirective)(name)) {
  13101. warn('Do not use built-in directive ids as custom directive id: ' + name);
  13102. }
  13103. }
  13104. /**
  13105. * Adds directives to a VNode.
  13106. */
  13107. function withDirectives(vnode, directives) {
  13108. const internalInstance = currentRenderingInstance;
  13109. if (internalInstance === null) {
  13110. ( true) && warn(`withDirectives can only be used inside render functions.`);
  13111. return vnode;
  13112. }
  13113. const instance = getExposeProxy(internalInstance) ||
  13114. internalInstance.proxy;
  13115. const bindings = vnode.dirs || (vnode.dirs = []);
  13116. for (let i = 0; i < directives.length; i++) {
  13117. let [dir, value, arg, modifiers = _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ] = directives[i];
  13118. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(dir)) {
  13119. dir = {
  13120. mounted: dir,
  13121. updated: dir
  13122. };
  13123. }
  13124. if (dir.deep) {
  13125. traverse(value);
  13126. }
  13127. bindings.push({
  13128. dir,
  13129. instance,
  13130. value,
  13131. oldValue: void 0,
  13132. arg,
  13133. modifiers
  13134. });
  13135. }
  13136. return vnode;
  13137. }
  13138. function invokeDirectiveHook(vnode, prevVNode, instance, name) {
  13139. const bindings = vnode.dirs;
  13140. const oldBindings = prevVNode && prevVNode.dirs;
  13141. for (let i = 0; i < bindings.length; i++) {
  13142. const binding = bindings[i];
  13143. if (oldBindings) {
  13144. binding.oldValue = oldBindings[i].value;
  13145. }
  13146. let hook = binding.dir[name];
  13147. if (hook) {
  13148. // disable tracking inside all lifecycle hooks
  13149. // since they can potentially be called inside effects.
  13150. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.pauseTracking)();
  13151. callWithAsyncErrorHandling(hook, instance, 8 /* DIRECTIVE_HOOK */, [
  13152. vnode.el,
  13153. binding,
  13154. vnode,
  13155. prevVNode
  13156. ]);
  13157. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.resetTracking)();
  13158. }
  13159. }
  13160. }
  13161. function createAppContext() {
  13162. return {
  13163. app: null,
  13164. config: {
  13165. isNativeTag: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NO,
  13166. performance: false,
  13167. globalProperties: {},
  13168. optionMergeStrategies: {},
  13169. errorHandler: undefined,
  13170. warnHandler: undefined,
  13171. compilerOptions: {}
  13172. },
  13173. mixins: [],
  13174. components: {},
  13175. directives: {},
  13176. provides: Object.create(null),
  13177. optionsCache: new WeakMap(),
  13178. propsCache: new WeakMap(),
  13179. emitsCache: new WeakMap()
  13180. };
  13181. }
  13182. let uid = 0;
  13183. function createAppAPI(render, hydrate) {
  13184. return function createApp(rootComponent, rootProps = null) {
  13185. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(rootComponent)) {
  13186. rootComponent = Object.assign({}, rootComponent);
  13187. }
  13188. if (rootProps != null && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(rootProps)) {
  13189. ( true) && warn(`root props passed to app.mount() must be an object.`);
  13190. rootProps = null;
  13191. }
  13192. const context = createAppContext();
  13193. const installedPlugins = new Set();
  13194. let isMounted = false;
  13195. const app = (context.app = {
  13196. _uid: uid++,
  13197. _component: rootComponent,
  13198. _props: rootProps,
  13199. _container: null,
  13200. _context: context,
  13201. _instance: null,
  13202. version,
  13203. get config() {
  13204. return context.config;
  13205. },
  13206. set config(v) {
  13207. if ((true)) {
  13208. warn(`app.config cannot be replaced. Modify individual options instead.`);
  13209. }
  13210. },
  13211. use(plugin, ...options) {
  13212. if (installedPlugins.has(plugin)) {
  13213. ( true) && warn(`Plugin has already been applied to target app.`);
  13214. }
  13215. else if (plugin && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(plugin.install)) {
  13216. installedPlugins.add(plugin);
  13217. plugin.install(app, ...options);
  13218. }
  13219. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(plugin)) {
  13220. installedPlugins.add(plugin);
  13221. plugin(app, ...options);
  13222. }
  13223. else if ((true)) {
  13224. warn(`A plugin must either be a function or an object with an "install" ` +
  13225. `function.`);
  13226. }
  13227. return app;
  13228. },
  13229. mixin(mixin) {
  13230. if (true) {
  13231. if (!context.mixins.includes(mixin)) {
  13232. context.mixins.push(mixin);
  13233. }
  13234. else if ((true)) {
  13235. warn('Mixin has already been applied to target app' +
  13236. (mixin.name ? `: ${mixin.name}` : ''));
  13237. }
  13238. }
  13239. else {}
  13240. return app;
  13241. },
  13242. component(name, component) {
  13243. if ((true)) {
  13244. validateComponentName(name, context.config);
  13245. }
  13246. if (!component) {
  13247. return context.components[name];
  13248. }
  13249. if (( true) && context.components[name]) {
  13250. warn(`Component "${name}" has already been registered in target app.`);
  13251. }
  13252. context.components[name] = component;
  13253. return app;
  13254. },
  13255. directive(name, directive) {
  13256. if ((true)) {
  13257. validateDirectiveName(name);
  13258. }
  13259. if (!directive) {
  13260. return context.directives[name];
  13261. }
  13262. if (( true) && context.directives[name]) {
  13263. warn(`Directive "${name}" has already been registered in target app.`);
  13264. }
  13265. context.directives[name] = directive;
  13266. return app;
  13267. },
  13268. mount(rootContainer, isHydrate, isSVG) {
  13269. if (!isMounted) {
  13270. const vnode = createVNode(rootComponent, rootProps);
  13271. // store app context on the root VNode.
  13272. // this will be set on the root instance on initial mount.
  13273. vnode.appContext = context;
  13274. // HMR root reload
  13275. if ((true)) {
  13276. context.reload = () => {
  13277. render(cloneVNode(vnode), rootContainer, isSVG);
  13278. };
  13279. }
  13280. if (isHydrate && hydrate) {
  13281. hydrate(vnode, rootContainer);
  13282. }
  13283. else {
  13284. render(vnode, rootContainer, isSVG);
  13285. }
  13286. isMounted = true;
  13287. app._container = rootContainer;
  13288. rootContainer.__vue_app__ = app;
  13289. if (true) {
  13290. app._instance = vnode.component;
  13291. devtoolsInitApp(app, version);
  13292. }
  13293. return getExposeProxy(vnode.component) || vnode.component.proxy;
  13294. }
  13295. else if ((true)) {
  13296. warn(`App has already been mounted.\n` +
  13297. `If you want to remount the same app, move your app creation logic ` +
  13298. `into a factory function and create fresh app instances for each ` +
  13299. `mount - e.g. \`const createMyApp = () => createApp(App)\``);
  13300. }
  13301. },
  13302. unmount() {
  13303. if (isMounted) {
  13304. render(null, app._container);
  13305. if (true) {
  13306. app._instance = null;
  13307. devtoolsUnmountApp(app);
  13308. }
  13309. delete app._container.__vue_app__;
  13310. }
  13311. else if ((true)) {
  13312. warn(`Cannot unmount an app that is not mounted.`);
  13313. }
  13314. },
  13315. provide(key, value) {
  13316. if (( true) && key in context.provides) {
  13317. warn(`App already provides property with key "${String(key)}". ` +
  13318. `It will be overwritten with the new value.`);
  13319. }
  13320. // TypeScript doesn't allow symbols as index type
  13321. // https://github.com/Microsoft/TypeScript/issues/24587
  13322. context.provides[key] = value;
  13323. return app;
  13324. }
  13325. });
  13326. return app;
  13327. };
  13328. }
  13329. /**
  13330. * Function for handling a template ref
  13331. */
  13332. function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
  13333. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(rawRef)) {
  13334. rawRef.forEach((r, i) => setRef(r, oldRawRef && ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(oldRawRef) ? oldRawRef[i] : oldRawRef), parentSuspense, vnode, isUnmount));
  13335. return;
  13336. }
  13337. if (isAsyncWrapper(vnode) && !isUnmount) {
  13338. // when mounting async components, nothing needs to be done,
  13339. // because the template ref is forwarded to inner component
  13340. return;
  13341. }
  13342. const refValue = vnode.shapeFlag & 4 /* STATEFUL_COMPONENT */
  13343. ? getExposeProxy(vnode.component) || vnode.component.proxy
  13344. : vnode.el;
  13345. const value = isUnmount ? null : refValue;
  13346. const { i: owner, r: ref } = rawRef;
  13347. if (( true) && !owner) {
  13348. warn(`Missing ref owner context. ref cannot be used on hoisted vnodes. ` +
  13349. `A vnode with ref must be created inside the render function.`);
  13350. return;
  13351. }
  13352. const oldRef = oldRawRef && oldRawRef.r;
  13353. const refs = owner.refs === _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ ? (owner.refs = {}) : owner.refs;
  13354. const setupState = owner.setupState;
  13355. // dynamic ref changed. unset old ref
  13356. if (oldRef != null && oldRef !== ref) {
  13357. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(oldRef)) {
  13358. refs[oldRef] = null;
  13359. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(setupState, oldRef)) {
  13360. setupState[oldRef] = null;
  13361. }
  13362. }
  13363. else if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(oldRef)) {
  13364. oldRef.value = null;
  13365. }
  13366. }
  13367. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(ref)) {
  13368. callWithErrorHandling(ref, owner, 12 /* FUNCTION_REF */, [value, refs]);
  13369. }
  13370. else {
  13371. const _isString = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(ref);
  13372. const _isRef = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(ref);
  13373. if (_isString || _isRef) {
  13374. const doSet = () => {
  13375. if (rawRef.f) {
  13376. const existing = _isString ? refs[ref] : ref.value;
  13377. if (isUnmount) {
  13378. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(existing) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.remove)(existing, refValue);
  13379. }
  13380. else {
  13381. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(existing)) {
  13382. if (_isString) {
  13383. refs[ref] = [refValue];
  13384. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(setupState, ref)) {
  13385. setupState[ref] = refs[ref];
  13386. }
  13387. }
  13388. else {
  13389. ref.value = [refValue];
  13390. if (rawRef.k)
  13391. refs[rawRef.k] = ref.value;
  13392. }
  13393. }
  13394. else if (!existing.includes(refValue)) {
  13395. existing.push(refValue);
  13396. }
  13397. }
  13398. }
  13399. else if (_isString) {
  13400. refs[ref] = value;
  13401. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(setupState, ref)) {
  13402. setupState[ref] = value;
  13403. }
  13404. }
  13405. else if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(ref)) {
  13406. ref.value = value;
  13407. if (rawRef.k)
  13408. refs[rawRef.k] = value;
  13409. }
  13410. else if ((true)) {
  13411. warn('Invalid template ref type:', ref, `(${typeof ref})`);
  13412. }
  13413. };
  13414. if (value) {
  13415. doSet.id = -1;
  13416. queuePostRenderEffect(doSet, parentSuspense);
  13417. }
  13418. else {
  13419. doSet();
  13420. }
  13421. }
  13422. else if ((true)) {
  13423. warn('Invalid template ref type:', ref, `(${typeof ref})`);
  13424. }
  13425. }
  13426. }
  13427. let hasMismatch = false;
  13428. const isSVGContainer = (container) => /svg/.test(container.namespaceURI) && container.tagName !== 'foreignObject';
  13429. const isComment = (node) => node.nodeType === 8 /* COMMENT */;
  13430. // Note: hydration is DOM-specific
  13431. // But we have to place it in core due to tight coupling with core - splitting
  13432. // it out creates a ton of unnecessary complexity.
  13433. // Hydration also depends on some renderer internal logic which needs to be
  13434. // passed in via arguments.
  13435. function createHydrationFunctions(rendererInternals) {
  13436. const { mt: mountComponent, p: patch, o: { patchProp, nextSibling, parentNode, remove, insert, createComment } } = rendererInternals;
  13437. const hydrate = (vnode, container) => {
  13438. if (!container.hasChildNodes()) {
  13439. ( true) &&
  13440. warn(`Attempting to hydrate existing markup but container is empty. ` +
  13441. `Performing full mount instead.`);
  13442. patch(null, vnode, container);
  13443. flushPostFlushCbs();
  13444. return;
  13445. }
  13446. hasMismatch = false;
  13447. hydrateNode(container.firstChild, vnode, null, null, null);
  13448. flushPostFlushCbs();
  13449. if (hasMismatch && !false) {
  13450. // this error should show up in production
  13451. console.error(`Hydration completed but contains mismatches.`);
  13452. }
  13453. };
  13454. const hydrateNode = (node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized = false) => {
  13455. const isFragmentStart = isComment(node) && node.data === '[';
  13456. const onMismatch = () => handleMismatch(node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragmentStart);
  13457. const { type, ref, shapeFlag } = vnode;
  13458. const domType = node.nodeType;
  13459. vnode.el = node;
  13460. let nextNode = null;
  13461. switch (type) {
  13462. case Text:
  13463. if (domType !== 3 /* TEXT */) {
  13464. nextNode = onMismatch();
  13465. }
  13466. else {
  13467. if (node.data !== vnode.children) {
  13468. hasMismatch = true;
  13469. ( true) &&
  13470. warn(`Hydration text mismatch:` +
  13471. `\n- Client: ${JSON.stringify(node.data)}` +
  13472. `\n- Server: ${JSON.stringify(vnode.children)}`);
  13473. node.data = vnode.children;
  13474. }
  13475. nextNode = nextSibling(node);
  13476. }
  13477. break;
  13478. case Comment:
  13479. if (domType !== 8 /* COMMENT */ || isFragmentStart) {
  13480. nextNode = onMismatch();
  13481. }
  13482. else {
  13483. nextNode = nextSibling(node);
  13484. }
  13485. break;
  13486. case Static:
  13487. if (domType !== 1 /* ELEMENT */) {
  13488. nextNode = onMismatch();
  13489. }
  13490. else {
  13491. // determine anchor, adopt content
  13492. nextNode = node;
  13493. // if the static vnode has its content stripped during build,
  13494. // adopt it from the server-rendered HTML.
  13495. const needToAdoptContent = !vnode.children.length;
  13496. for (let i = 0; i < vnode.staticCount; i++) {
  13497. if (needToAdoptContent)
  13498. vnode.children += nextNode.outerHTML;
  13499. if (i === vnode.staticCount - 1) {
  13500. vnode.anchor = nextNode;
  13501. }
  13502. nextNode = nextSibling(nextNode);
  13503. }
  13504. return nextNode;
  13505. }
  13506. break;
  13507. case Fragment:
  13508. if (!isFragmentStart) {
  13509. nextNode = onMismatch();
  13510. }
  13511. else {
  13512. nextNode = hydrateFragment(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);
  13513. }
  13514. break;
  13515. default:
  13516. if (shapeFlag & 1 /* ELEMENT */) {
  13517. if (domType !== 1 /* ELEMENT */ ||
  13518. vnode.type.toLowerCase() !==
  13519. node.tagName.toLowerCase()) {
  13520. nextNode = onMismatch();
  13521. }
  13522. else {
  13523. nextNode = hydrateElement(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);
  13524. }
  13525. }
  13526. else if (shapeFlag & 6 /* COMPONENT */) {
  13527. // when setting up the render effect, if the initial vnode already
  13528. // has .el set, the component will perform hydration instead of mount
  13529. // on its sub-tree.
  13530. vnode.slotScopeIds = slotScopeIds;
  13531. const container = parentNode(node);
  13532. mountComponent(vnode, container, null, parentComponent, parentSuspense, isSVGContainer(container), optimized);
  13533. // component may be async, so in the case of fragments we cannot rely
  13534. // on component's rendered output to determine the end of the fragment
  13535. // instead, we do a lookahead to find the end anchor node.
  13536. nextNode = isFragmentStart
  13537. ? locateClosingAsyncAnchor(node)
  13538. : nextSibling(node);
  13539. // #3787
  13540. // if component is async, it may get moved / unmounted before its
  13541. // inner component is loaded, so we need to give it a placeholder
  13542. // vnode that matches its adopted DOM.
  13543. if (isAsyncWrapper(vnode)) {
  13544. let subTree;
  13545. if (isFragmentStart) {
  13546. subTree = createVNode(Fragment);
  13547. subTree.anchor = nextNode
  13548. ? nextNode.previousSibling
  13549. : container.lastChild;
  13550. }
  13551. else {
  13552. subTree =
  13553. node.nodeType === 3 ? createTextVNode('') : createVNode('div');
  13554. }
  13555. subTree.el = node;
  13556. vnode.component.subTree = subTree;
  13557. }
  13558. }
  13559. else if (shapeFlag & 64 /* TELEPORT */) {
  13560. if (domType !== 8 /* COMMENT */) {
  13561. nextNode = onMismatch();
  13562. }
  13563. else {
  13564. nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, rendererInternals, hydrateChildren);
  13565. }
  13566. }
  13567. else if (shapeFlag & 128 /* SUSPENSE */) {
  13568. nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, isSVGContainer(parentNode(node)), slotScopeIds, optimized, rendererInternals, hydrateNode);
  13569. }
  13570. else if ((true)) {
  13571. warn('Invalid HostVNode type:', type, `(${typeof type})`);
  13572. }
  13573. }
  13574. if (ref != null) {
  13575. setRef(ref, null, parentSuspense, vnode);
  13576. }
  13577. return nextNode;
  13578. };
  13579. const hydrateElement = (el, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => {
  13580. optimized = optimized || !!vnode.dynamicChildren;
  13581. const { type, props, patchFlag, shapeFlag, dirs } = vnode;
  13582. // #4006 for form elements with non-string v-model value bindings
  13583. // e.g. <option :value="obj">, <input type="checkbox" :true-value="1">
  13584. const forcePatchValue = (type === 'input' && dirs) || type === 'option';
  13585. // skip props & children if this is hoisted static nodes
  13586. // #5405 in dev, always hydrate children for HMR
  13587. if (true /* HOISTED */) {
  13588. if (dirs) {
  13589. invokeDirectiveHook(vnode, null, parentComponent, 'created');
  13590. }
  13591. // props
  13592. if (props) {
  13593. if (forcePatchValue ||
  13594. !optimized ||
  13595. patchFlag & (16 /* FULL_PROPS */ | 32 /* HYDRATE_EVENTS */)) {
  13596. for (const key in props) {
  13597. if ((forcePatchValue && key.endsWith('value')) ||
  13598. ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isOn)(key) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isReservedProp)(key))) {
  13599. patchProp(el, key, null, props[key], false, undefined, parentComponent);
  13600. }
  13601. }
  13602. }
  13603. else if (props.onClick) {
  13604. // Fast path for click listeners (which is most often) to avoid
  13605. // iterating through props.
  13606. patchProp(el, 'onClick', null, props.onClick, false, undefined, parentComponent);
  13607. }
  13608. }
  13609. // vnode / directive hooks
  13610. let vnodeHooks;
  13611. if ((vnodeHooks = props && props.onVnodeBeforeMount)) {
  13612. invokeVNodeHook(vnodeHooks, parentComponent, vnode);
  13613. }
  13614. if (dirs) {
  13615. invokeDirectiveHook(vnode, null, parentComponent, 'beforeMount');
  13616. }
  13617. if ((vnodeHooks = props && props.onVnodeMounted) || dirs) {
  13618. queueEffectWithSuspense(() => {
  13619. vnodeHooks && invokeVNodeHook(vnodeHooks, parentComponent, vnode);
  13620. dirs && invokeDirectiveHook(vnode, null, parentComponent, 'mounted');
  13621. }, parentSuspense);
  13622. }
  13623. // children
  13624. if (shapeFlag & 16 /* ARRAY_CHILDREN */ &&
  13625. // skip if element has innerHTML / textContent
  13626. !(props && (props.innerHTML || props.textContent))) {
  13627. let next = hydrateChildren(el.firstChild, vnode, el, parentComponent, parentSuspense, slotScopeIds, optimized);
  13628. let hasWarned = false;
  13629. while (next) {
  13630. hasMismatch = true;
  13631. if (( true) && !hasWarned) {
  13632. warn(`Hydration children mismatch in <${vnode.type}>: ` +
  13633. `server rendered element contains more child nodes than client vdom.`);
  13634. hasWarned = true;
  13635. }
  13636. // The SSRed DOM contains more nodes than it should. Remove them.
  13637. const cur = next;
  13638. next = next.nextSibling;
  13639. remove(cur);
  13640. }
  13641. }
  13642. else if (shapeFlag & 8 /* TEXT_CHILDREN */) {
  13643. if (el.textContent !== vnode.children) {
  13644. hasMismatch = true;
  13645. ( true) &&
  13646. warn(`Hydration text content mismatch in <${vnode.type}>:\n` +
  13647. `- Client: ${el.textContent}\n` +
  13648. `- Server: ${vnode.children}`);
  13649. el.textContent = vnode.children;
  13650. }
  13651. }
  13652. }
  13653. return el.nextSibling;
  13654. };
  13655. const hydrateChildren = (node, parentVNode, container, parentComponent, parentSuspense, slotScopeIds, optimized) => {
  13656. optimized = optimized || !!parentVNode.dynamicChildren;
  13657. const children = parentVNode.children;
  13658. const l = children.length;
  13659. let hasWarned = false;
  13660. for (let i = 0; i < l; i++) {
  13661. const vnode = optimized
  13662. ? children[i]
  13663. : (children[i] = normalizeVNode(children[i]));
  13664. if (node) {
  13665. node = hydrateNode(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);
  13666. }
  13667. else if (vnode.type === Text && !vnode.children) {
  13668. continue;
  13669. }
  13670. else {
  13671. hasMismatch = true;
  13672. if (( true) && !hasWarned) {
  13673. warn(`Hydration children mismatch in <${container.tagName.toLowerCase()}>: ` +
  13674. `server rendered element contains fewer child nodes than client vdom.`);
  13675. hasWarned = true;
  13676. }
  13677. // the SSRed DOM didn't contain enough nodes. Mount the missing ones.
  13678. patch(null, vnode, container, null, parentComponent, parentSuspense, isSVGContainer(container), slotScopeIds);
  13679. }
  13680. }
  13681. return node;
  13682. };
  13683. const hydrateFragment = (node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => {
  13684. const { slotScopeIds: fragmentSlotScopeIds } = vnode;
  13685. if (fragmentSlotScopeIds) {
  13686. slotScopeIds = slotScopeIds
  13687. ? slotScopeIds.concat(fragmentSlotScopeIds)
  13688. : fragmentSlotScopeIds;
  13689. }
  13690. const container = parentNode(node);
  13691. const next = hydrateChildren(nextSibling(node), vnode, container, parentComponent, parentSuspense, slotScopeIds, optimized);
  13692. if (next && isComment(next) && next.data === ']') {
  13693. return nextSibling((vnode.anchor = next));
  13694. }
  13695. else {
  13696. // fragment didn't hydrate successfully, since we didn't get a end anchor
  13697. // back. This should have led to node/children mismatch warnings.
  13698. hasMismatch = true;
  13699. // since the anchor is missing, we need to create one and insert it
  13700. insert((vnode.anchor = createComment(`]`)), container, next);
  13701. return next;
  13702. }
  13703. };
  13704. const handleMismatch = (node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragment) => {
  13705. hasMismatch = true;
  13706. ( true) &&
  13707. warn(`Hydration node mismatch:\n- Client vnode:`, vnode.type, `\n- Server rendered DOM:`, node, node.nodeType === 3 /* TEXT */
  13708. ? `(text)`
  13709. : isComment(node) && node.data === '['
  13710. ? `(start of fragment)`
  13711. : ``);
  13712. vnode.el = null;
  13713. if (isFragment) {
  13714. // remove excessive fragment nodes
  13715. const end = locateClosingAsyncAnchor(node);
  13716. while (true) {
  13717. const next = nextSibling(node);
  13718. if (next && next !== end) {
  13719. remove(next);
  13720. }
  13721. else {
  13722. break;
  13723. }
  13724. }
  13725. }
  13726. const next = nextSibling(node);
  13727. const container = parentNode(node);
  13728. remove(node);
  13729. patch(null, vnode, container, next, parentComponent, parentSuspense, isSVGContainer(container), slotScopeIds);
  13730. return next;
  13731. };
  13732. const locateClosingAsyncAnchor = (node) => {
  13733. let match = 0;
  13734. while (node) {
  13735. node = nextSibling(node);
  13736. if (node && isComment(node)) {
  13737. if (node.data === '[')
  13738. match++;
  13739. if (node.data === ']') {
  13740. if (match === 0) {
  13741. return nextSibling(node);
  13742. }
  13743. else {
  13744. match--;
  13745. }
  13746. }
  13747. }
  13748. }
  13749. return node;
  13750. };
  13751. return [hydrate, hydrateNode];
  13752. }
  13753. /* eslint-disable no-restricted-globals */
  13754. let supported;
  13755. let perf;
  13756. function startMeasure(instance, type) {
  13757. if (instance.appContext.config.performance && isSupported()) {
  13758. perf.mark(`vue-${type}-${instance.uid}`);
  13759. }
  13760. if (true) {
  13761. devtoolsPerfStart(instance, type, isSupported() ? perf.now() : Date.now());
  13762. }
  13763. }
  13764. function endMeasure(instance, type) {
  13765. if (instance.appContext.config.performance && isSupported()) {
  13766. const startTag = `vue-${type}-${instance.uid}`;
  13767. const endTag = startTag + `:end`;
  13768. perf.mark(endTag);
  13769. perf.measure(`<${formatComponentName(instance, instance.type)}> ${type}`, startTag, endTag);
  13770. perf.clearMarks(startTag);
  13771. perf.clearMarks(endTag);
  13772. }
  13773. if (true) {
  13774. devtoolsPerfEnd(instance, type, isSupported() ? perf.now() : Date.now());
  13775. }
  13776. }
  13777. function isSupported() {
  13778. if (supported !== undefined) {
  13779. return supported;
  13780. }
  13781. if (typeof window !== 'undefined' && window.performance) {
  13782. supported = true;
  13783. perf = window.performance;
  13784. }
  13785. else {
  13786. supported = false;
  13787. }
  13788. return supported;
  13789. }
  13790. /**
  13791. * This is only called in esm-bundler builds.
  13792. * It is called when a renderer is created, in `baseCreateRenderer` so that
  13793. * importing runtime-core is side-effects free.
  13794. *
  13795. * istanbul-ignore-next
  13796. */
  13797. function initFeatureFlags() {
  13798. const needWarn = [];
  13799. if (false) {}
  13800. if (false) {}
  13801. if (( true) && needWarn.length) {
  13802. const multi = needWarn.length > 1;
  13803. console.warn(`Feature flag${multi ? `s` : ``} ${needWarn.join(', ')} ${multi ? `are` : `is`} not explicitly defined. You are running the esm-bundler build of Vue, ` +
  13804. `which expects these compile-time feature flags to be globally injected ` +
  13805. `via the bundler config in order to get better tree-shaking in the ` +
  13806. `production bundle.\n\n` +
  13807. `For more details, see https://link.vuejs.org/feature-flags.`);
  13808. }
  13809. }
  13810. const queuePostRenderEffect = queueEffectWithSuspense
  13811. ;
  13812. /**
  13813. * The createRenderer function accepts two generic arguments:
  13814. * HostNode and HostElement, corresponding to Node and Element types in the
  13815. * host environment. For example, for runtime-dom, HostNode would be the DOM
  13816. * `Node` interface and HostElement would be the DOM `Element` interface.
  13817. *
  13818. * Custom renderers can pass in the platform specific types like this:
  13819. *
  13820. * ``` js
  13821. * const { render, createApp } = createRenderer<Node, Element>({
  13822. * patchProp,
  13823. * ...nodeOps
  13824. * })
  13825. * ```
  13826. */
  13827. function createRenderer(options) {
  13828. return baseCreateRenderer(options);
  13829. }
  13830. // Separate API for creating hydration-enabled renderer.
  13831. // Hydration logic is only used when calling this function, making it
  13832. // tree-shakable.
  13833. function createHydrationRenderer(options) {
  13834. return baseCreateRenderer(options, createHydrationFunctions);
  13835. }
  13836. // implementation
  13837. function baseCreateRenderer(options, createHydrationFns) {
  13838. // compile-time feature flags check
  13839. {
  13840. initFeatureFlags();
  13841. }
  13842. const target = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.getGlobalThis)();
  13843. target.__VUE__ = true;
  13844. if (true) {
  13845. setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__, target);
  13846. }
  13847. const { insert: hostInsert, remove: hostRemove, patchProp: hostPatchProp, createElement: hostCreateElement, createText: hostCreateText, createComment: hostCreateComment, setText: hostSetText, setElementText: hostSetElementText, parentNode: hostParentNode, nextSibling: hostNextSibling, setScopeId: hostSetScopeId = _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP, cloneNode: hostCloneNode, insertStaticContent: hostInsertStaticContent } = options;
  13848. // Note: functions inside this closure should use `const xxx = () => {}`
  13849. // style in order to prevent being inlined by minifiers.
  13850. const patch = (n1, n2, container, anchor = null, parentComponent = null, parentSuspense = null, isSVG = false, slotScopeIds = null, optimized = ( true) && isHmrUpdating ? false : !!n2.dynamicChildren) => {
  13851. if (n1 === n2) {
  13852. return;
  13853. }
  13854. // patching & not same type, unmount old tree
  13855. if (n1 && !isSameVNodeType(n1, n2)) {
  13856. anchor = getNextHostNode(n1);
  13857. unmount(n1, parentComponent, parentSuspense, true);
  13858. n1 = null;
  13859. }
  13860. if (n2.patchFlag === -2 /* BAIL */) {
  13861. optimized = false;
  13862. n2.dynamicChildren = null;
  13863. }
  13864. const { type, ref, shapeFlag } = n2;
  13865. switch (type) {
  13866. case Text:
  13867. processText(n1, n2, container, anchor);
  13868. break;
  13869. case Comment:
  13870. processCommentNode(n1, n2, container, anchor);
  13871. break;
  13872. case Static:
  13873. if (n1 == null) {
  13874. mountStaticNode(n2, container, anchor, isSVG);
  13875. }
  13876. else if ((true)) {
  13877. patchStaticNode(n1, n2, container, isSVG);
  13878. }
  13879. break;
  13880. case Fragment:
  13881. processFragment(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  13882. break;
  13883. default:
  13884. if (shapeFlag & 1 /* ELEMENT */) {
  13885. processElement(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  13886. }
  13887. else if (shapeFlag & 6 /* COMPONENT */) {
  13888. processComponent(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  13889. }
  13890. else if (shapeFlag & 64 /* TELEPORT */) {
  13891. type.process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals);
  13892. }
  13893. else if (shapeFlag & 128 /* SUSPENSE */) {
  13894. type.process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals);
  13895. }
  13896. else if ((true)) {
  13897. warn('Invalid VNode type:', type, `(${typeof type})`);
  13898. }
  13899. }
  13900. // set ref
  13901. if (ref != null && parentComponent) {
  13902. setRef(ref, n1 && n1.ref, parentSuspense, n2 || n1, !n2);
  13903. }
  13904. };
  13905. const processText = (n1, n2, container, anchor) => {
  13906. if (n1 == null) {
  13907. hostInsert((n2.el = hostCreateText(n2.children)), container, anchor);
  13908. }
  13909. else {
  13910. const el = (n2.el = n1.el);
  13911. if (n2.children !== n1.children) {
  13912. hostSetText(el, n2.children);
  13913. }
  13914. }
  13915. };
  13916. const processCommentNode = (n1, n2, container, anchor) => {
  13917. if (n1 == null) {
  13918. hostInsert((n2.el = hostCreateComment(n2.children || '')), container, anchor);
  13919. }
  13920. else {
  13921. // there's no support for dynamic comments
  13922. n2.el = n1.el;
  13923. }
  13924. };
  13925. const mountStaticNode = (n2, container, anchor, isSVG) => {
  13926. [n2.el, n2.anchor] = hostInsertStaticContent(n2.children, container, anchor, isSVG, n2.el, n2.anchor);
  13927. };
  13928. /**
  13929. * Dev / HMR only
  13930. */
  13931. const patchStaticNode = (n1, n2, container, isSVG) => {
  13932. // static nodes are only patched during dev for HMR
  13933. if (n2.children !== n1.children) {
  13934. const anchor = hostNextSibling(n1.anchor);
  13935. // remove existing
  13936. removeStaticNode(n1);
  13937. [n2.el, n2.anchor] = hostInsertStaticContent(n2.children, container, anchor, isSVG);
  13938. }
  13939. else {
  13940. n2.el = n1.el;
  13941. n2.anchor = n1.anchor;
  13942. }
  13943. };
  13944. const moveStaticNode = ({ el, anchor }, container, nextSibling) => {
  13945. let next;
  13946. while (el && el !== anchor) {
  13947. next = hostNextSibling(el);
  13948. hostInsert(el, container, nextSibling);
  13949. el = next;
  13950. }
  13951. hostInsert(anchor, container, nextSibling);
  13952. };
  13953. const removeStaticNode = ({ el, anchor }) => {
  13954. let next;
  13955. while (el && el !== anchor) {
  13956. next = hostNextSibling(el);
  13957. hostRemove(el);
  13958. el = next;
  13959. }
  13960. hostRemove(anchor);
  13961. };
  13962. const processElement = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {
  13963. isSVG = isSVG || n2.type === 'svg';
  13964. if (n1 == null) {
  13965. mountElement(n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  13966. }
  13967. else {
  13968. patchElement(n1, n2, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  13969. }
  13970. };
  13971. const mountElement = (vnode, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {
  13972. let el;
  13973. let vnodeHook;
  13974. const { type, props, shapeFlag, transition, patchFlag, dirs } = vnode;
  13975. if (false /* HOISTED */) {}
  13976. else {
  13977. el = vnode.el = hostCreateElement(vnode.type, isSVG, props && props.is, props);
  13978. // mount children first, since some props may rely on child content
  13979. // being already rendered, e.g. `<select value>`
  13980. if (shapeFlag & 8 /* TEXT_CHILDREN */) {
  13981. hostSetElementText(el, vnode.children);
  13982. }
  13983. else if (shapeFlag & 16 /* ARRAY_CHILDREN */) {
  13984. mountChildren(vnode.children, el, null, parentComponent, parentSuspense, isSVG && type !== 'foreignObject', slotScopeIds, optimized);
  13985. }
  13986. if (dirs) {
  13987. invokeDirectiveHook(vnode, null, parentComponent, 'created');
  13988. }
  13989. // props
  13990. if (props) {
  13991. for (const key in props) {
  13992. if (key !== 'value' && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isReservedProp)(key)) {
  13993. hostPatchProp(el, key, null, props[key], isSVG, vnode.children, parentComponent, parentSuspense, unmountChildren);
  13994. }
  13995. }
  13996. /**
  13997. * Special case for setting value on DOM elements:
  13998. * - it can be order-sensitive (e.g. should be set *after* min/max, #2325, #4024)
  13999. * - it needs to be forced (#1471)
  14000. * #2353 proposes adding another renderer option to configure this, but
  14001. * the properties affects are so finite it is worth special casing it
  14002. * here to reduce the complexity. (Special casing it also should not
  14003. * affect non-DOM renderers)
  14004. */
  14005. if ('value' in props) {
  14006. hostPatchProp(el, 'value', null, props.value);
  14007. }
  14008. if ((vnodeHook = props.onVnodeBeforeMount)) {
  14009. invokeVNodeHook(vnodeHook, parentComponent, vnode);
  14010. }
  14011. }
  14012. // scopeId
  14013. setScopeId(el, vnode, vnode.scopeId, slotScopeIds, parentComponent);
  14014. }
  14015. if (true) {
  14016. Object.defineProperty(el, '__vnode', {
  14017. value: vnode,
  14018. enumerable: false
  14019. });
  14020. Object.defineProperty(el, '__vueParentComponent', {
  14021. value: parentComponent,
  14022. enumerable: false
  14023. });
  14024. }
  14025. if (dirs) {
  14026. invokeDirectiveHook(vnode, null, parentComponent, 'beforeMount');
  14027. }
  14028. // #1583 For inside suspense + suspense not resolved case, enter hook should call when suspense resolved
  14029. // #1689 For inside suspense + suspense resolved case, just call it
  14030. const needCallTransitionHooks = (!parentSuspense || (parentSuspense && !parentSuspense.pendingBranch)) &&
  14031. transition &&
  14032. !transition.persisted;
  14033. if (needCallTransitionHooks) {
  14034. transition.beforeEnter(el);
  14035. }
  14036. hostInsert(el, container, anchor);
  14037. if ((vnodeHook = props && props.onVnodeMounted) ||
  14038. needCallTransitionHooks ||
  14039. dirs) {
  14040. queuePostRenderEffect(() => {
  14041. vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode);
  14042. needCallTransitionHooks && transition.enter(el);
  14043. dirs && invokeDirectiveHook(vnode, null, parentComponent, 'mounted');
  14044. }, parentSuspense);
  14045. }
  14046. };
  14047. const setScopeId = (el, vnode, scopeId, slotScopeIds, parentComponent) => {
  14048. if (scopeId) {
  14049. hostSetScopeId(el, scopeId);
  14050. }
  14051. if (slotScopeIds) {
  14052. for (let i = 0; i < slotScopeIds.length; i++) {
  14053. hostSetScopeId(el, slotScopeIds[i]);
  14054. }
  14055. }
  14056. if (parentComponent) {
  14057. let subTree = parentComponent.subTree;
  14058. if (( true) &&
  14059. subTree.patchFlag > 0 &&
  14060. subTree.patchFlag & 2048 /* DEV_ROOT_FRAGMENT */) {
  14061. subTree =
  14062. filterSingleRoot(subTree.children) || subTree;
  14063. }
  14064. if (vnode === subTree) {
  14065. const parentVNode = parentComponent.vnode;
  14066. setScopeId(el, parentVNode, parentVNode.scopeId, parentVNode.slotScopeIds, parentComponent.parent);
  14067. }
  14068. }
  14069. };
  14070. const mountChildren = (children, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, start = 0) => {
  14071. for (let i = start; i < children.length; i++) {
  14072. const child = (children[i] = optimized
  14073. ? cloneIfMounted(children[i])
  14074. : normalizeVNode(children[i]));
  14075. patch(null, child, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14076. }
  14077. };
  14078. const patchElement = (n1, n2, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {
  14079. const el = (n2.el = n1.el);
  14080. let { patchFlag, dynamicChildren, dirs } = n2;
  14081. // #1426 take the old vnode's patch flag into account since user may clone a
  14082. // compiler-generated vnode, which de-opts to FULL_PROPS
  14083. patchFlag |= n1.patchFlag & 16 /* FULL_PROPS */;
  14084. const oldProps = n1.props || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
  14085. const newProps = n2.props || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
  14086. let vnodeHook;
  14087. // disable recurse in beforeUpdate hooks
  14088. parentComponent && toggleRecurse(parentComponent, false);
  14089. if ((vnodeHook = newProps.onVnodeBeforeUpdate)) {
  14090. invokeVNodeHook(vnodeHook, parentComponent, n2, n1);
  14091. }
  14092. if (dirs) {
  14093. invokeDirectiveHook(n2, n1, parentComponent, 'beforeUpdate');
  14094. }
  14095. parentComponent && toggleRecurse(parentComponent, true);
  14096. if (( true) && isHmrUpdating) {
  14097. // HMR updated, force full diff
  14098. patchFlag = 0;
  14099. optimized = false;
  14100. dynamicChildren = null;
  14101. }
  14102. const areChildrenSVG = isSVG && n2.type !== 'foreignObject';
  14103. if (dynamicChildren) {
  14104. patchBlockChildren(n1.dynamicChildren, dynamicChildren, el, parentComponent, parentSuspense, areChildrenSVG, slotScopeIds);
  14105. if (( true) && parentComponent && parentComponent.type.__hmrId) {
  14106. traverseStaticChildren(n1, n2);
  14107. }
  14108. }
  14109. else if (!optimized) {
  14110. // full diff
  14111. patchChildren(n1, n2, el, null, parentComponent, parentSuspense, areChildrenSVG, slotScopeIds, false);
  14112. }
  14113. if (patchFlag > 0) {
  14114. // the presence of a patchFlag means this element's render code was
  14115. // generated by the compiler and can take the fast path.
  14116. // in this path old node and new node are guaranteed to have the same shape
  14117. // (i.e. at the exact same position in the source template)
  14118. if (patchFlag & 16 /* FULL_PROPS */) {
  14119. // element props contain dynamic keys, full diff needed
  14120. patchProps(el, n2, oldProps, newProps, parentComponent, parentSuspense, isSVG);
  14121. }
  14122. else {
  14123. // class
  14124. // this flag is matched when the element has dynamic class bindings.
  14125. if (patchFlag & 2 /* CLASS */) {
  14126. if (oldProps.class !== newProps.class) {
  14127. hostPatchProp(el, 'class', null, newProps.class, isSVG);
  14128. }
  14129. }
  14130. // style
  14131. // this flag is matched when the element has dynamic style bindings
  14132. if (patchFlag & 4 /* STYLE */) {
  14133. hostPatchProp(el, 'style', oldProps.style, newProps.style, isSVG);
  14134. }
  14135. // props
  14136. // This flag is matched when the element has dynamic prop/attr bindings
  14137. // other than class and style. The keys of dynamic prop/attrs are saved for
  14138. // faster iteration.
  14139. // Note dynamic keys like :[foo]="bar" will cause this optimization to
  14140. // bail out and go through a full diff because we need to unset the old key
  14141. if (patchFlag & 8 /* PROPS */) {
  14142. // if the flag is present then dynamicProps must be non-null
  14143. const propsToUpdate = n2.dynamicProps;
  14144. for (let i = 0; i < propsToUpdate.length; i++) {
  14145. const key = propsToUpdate[i];
  14146. const prev = oldProps[key];
  14147. const next = newProps[key];
  14148. // #1471 force patch value
  14149. if (next !== prev || key === 'value') {
  14150. hostPatchProp(el, key, prev, next, isSVG, n1.children, parentComponent, parentSuspense, unmountChildren);
  14151. }
  14152. }
  14153. }
  14154. }
  14155. // text
  14156. // This flag is matched when the element has only dynamic text children.
  14157. if (patchFlag & 1 /* TEXT */) {
  14158. if (n1.children !== n2.children) {
  14159. hostSetElementText(el, n2.children);
  14160. }
  14161. }
  14162. }
  14163. else if (!optimized && dynamicChildren == null) {
  14164. // unoptimized, full diff
  14165. patchProps(el, n2, oldProps, newProps, parentComponent, parentSuspense, isSVG);
  14166. }
  14167. if ((vnodeHook = newProps.onVnodeUpdated) || dirs) {
  14168. queuePostRenderEffect(() => {
  14169. vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, n2, n1);
  14170. dirs && invokeDirectiveHook(n2, n1, parentComponent, 'updated');
  14171. }, parentSuspense);
  14172. }
  14173. };
  14174. // The fast path for blocks.
  14175. const patchBlockChildren = (oldChildren, newChildren, fallbackContainer, parentComponent, parentSuspense, isSVG, slotScopeIds) => {
  14176. for (let i = 0; i < newChildren.length; i++) {
  14177. const oldVNode = oldChildren[i];
  14178. const newVNode = newChildren[i];
  14179. // Determine the container (parent element) for the patch.
  14180. const container =
  14181. // oldVNode may be an errored async setup() component inside Suspense
  14182. // which will not have a mounted element
  14183. oldVNode.el &&
  14184. // - In the case of a Fragment, we need to provide the actual parent
  14185. // of the Fragment itself so it can move its children.
  14186. (oldVNode.type === Fragment ||
  14187. // - In the case of different nodes, there is going to be a replacement
  14188. // which also requires the correct parent container
  14189. !isSameVNodeType(oldVNode, newVNode) ||
  14190. // - In the case of a component, it could contain anything.
  14191. oldVNode.shapeFlag & (6 /* COMPONENT */ | 64 /* TELEPORT */))
  14192. ? hostParentNode(oldVNode.el)
  14193. : // In other cases, the parent container is not actually used so we
  14194. // just pass the block element here to avoid a DOM parentNode call.
  14195. fallbackContainer;
  14196. patch(oldVNode, newVNode, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, true);
  14197. }
  14198. };
  14199. const patchProps = (el, vnode, oldProps, newProps, parentComponent, parentSuspense, isSVG) => {
  14200. if (oldProps !== newProps) {
  14201. for (const key in newProps) {
  14202. // empty string is not valid prop
  14203. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isReservedProp)(key))
  14204. continue;
  14205. const next = newProps[key];
  14206. const prev = oldProps[key];
  14207. // defer patching value
  14208. if (next !== prev && key !== 'value') {
  14209. hostPatchProp(el, key, prev, next, isSVG, vnode.children, parentComponent, parentSuspense, unmountChildren);
  14210. }
  14211. }
  14212. if (oldProps !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ) {
  14213. for (const key in oldProps) {
  14214. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isReservedProp)(key) && !(key in newProps)) {
  14215. hostPatchProp(el, key, oldProps[key], null, isSVG, vnode.children, parentComponent, parentSuspense, unmountChildren);
  14216. }
  14217. }
  14218. }
  14219. if ('value' in newProps) {
  14220. hostPatchProp(el, 'value', oldProps.value, newProps.value);
  14221. }
  14222. }
  14223. };
  14224. const processFragment = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {
  14225. const fragmentStartAnchor = (n2.el = n1 ? n1.el : hostCreateText(''));
  14226. const fragmentEndAnchor = (n2.anchor = n1 ? n1.anchor : hostCreateText(''));
  14227. let { patchFlag, dynamicChildren, slotScopeIds: fragmentSlotScopeIds } = n2;
  14228. if (( true) && isHmrUpdating) {
  14229. // HMR updated, force full diff
  14230. patchFlag = 0;
  14231. optimized = false;
  14232. dynamicChildren = null;
  14233. }
  14234. // check if this is a slot fragment with :slotted scope ids
  14235. if (fragmentSlotScopeIds) {
  14236. slotScopeIds = slotScopeIds
  14237. ? slotScopeIds.concat(fragmentSlotScopeIds)
  14238. : fragmentSlotScopeIds;
  14239. }
  14240. if (n1 == null) {
  14241. hostInsert(fragmentStartAnchor, container, anchor);
  14242. hostInsert(fragmentEndAnchor, container, anchor);
  14243. // a fragment can only have array children
  14244. // since they are either generated by the compiler, or implicitly created
  14245. // from arrays.
  14246. mountChildren(n2.children, container, fragmentEndAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14247. }
  14248. else {
  14249. if (patchFlag > 0 &&
  14250. patchFlag & 64 /* STABLE_FRAGMENT */ &&
  14251. dynamicChildren &&
  14252. // #2715 the previous fragment could've been a BAILed one as a result
  14253. // of renderSlot() with no valid children
  14254. n1.dynamicChildren) {
  14255. // a stable fragment (template root or <template v-for>) doesn't need to
  14256. // patch children order, but it may contain dynamicChildren.
  14257. patchBlockChildren(n1.dynamicChildren, dynamicChildren, container, parentComponent, parentSuspense, isSVG, slotScopeIds);
  14258. if (( true) && parentComponent && parentComponent.type.__hmrId) {
  14259. traverseStaticChildren(n1, n2);
  14260. }
  14261. else if (
  14262. // #2080 if the stable fragment has a key, it's a <template v-for> that may
  14263. // get moved around. Make sure all root level vnodes inherit el.
  14264. // #2134 or if it's a component root, it may also get moved around
  14265. // as the component is being moved.
  14266. n2.key != null ||
  14267. (parentComponent && n2 === parentComponent.subTree)) {
  14268. traverseStaticChildren(n1, n2, true /* shallow */);
  14269. }
  14270. }
  14271. else {
  14272. // keyed / unkeyed, or manual fragments.
  14273. // for keyed & unkeyed, since they are compiler generated from v-for,
  14274. // each child is guaranteed to be a block so the fragment will never
  14275. // have dynamicChildren.
  14276. patchChildren(n1, n2, container, fragmentEndAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14277. }
  14278. }
  14279. };
  14280. const processComponent = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {
  14281. n2.slotScopeIds = slotScopeIds;
  14282. if (n1 == null) {
  14283. if (n2.shapeFlag & 512 /* COMPONENT_KEPT_ALIVE */) {
  14284. parentComponent.ctx.activate(n2, container, anchor, isSVG, optimized);
  14285. }
  14286. else {
  14287. mountComponent(n2, container, anchor, parentComponent, parentSuspense, isSVG, optimized);
  14288. }
  14289. }
  14290. else {
  14291. updateComponent(n1, n2, optimized);
  14292. }
  14293. };
  14294. const mountComponent = (initialVNode, container, anchor, parentComponent, parentSuspense, isSVG, optimized) => {
  14295. const instance = (initialVNode.component = createComponentInstance(initialVNode, parentComponent, parentSuspense));
  14296. if (( true) && instance.type.__hmrId) {
  14297. registerHMR(instance);
  14298. }
  14299. if ((true)) {
  14300. pushWarningContext(initialVNode);
  14301. startMeasure(instance, `mount`);
  14302. }
  14303. // inject renderer internals for keepAlive
  14304. if (isKeepAlive(initialVNode)) {
  14305. instance.ctx.renderer = internals;
  14306. }
  14307. // resolve props and slots for setup context
  14308. {
  14309. if ((true)) {
  14310. startMeasure(instance, `init`);
  14311. }
  14312. setupComponent(instance);
  14313. if ((true)) {
  14314. endMeasure(instance, `init`);
  14315. }
  14316. }
  14317. // setup() is async. This component relies on async logic to be resolved
  14318. // before proceeding
  14319. if (instance.asyncDep) {
  14320. parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect);
  14321. // Give it a placeholder if this is not hydration
  14322. // TODO handle self-defined fallback
  14323. if (!initialVNode.el) {
  14324. const placeholder = (instance.subTree = createVNode(Comment));
  14325. processCommentNode(null, placeholder, container, anchor);
  14326. }
  14327. return;
  14328. }
  14329. setupRenderEffect(instance, initialVNode, container, anchor, parentSuspense, isSVG, optimized);
  14330. if ((true)) {
  14331. popWarningContext();
  14332. endMeasure(instance, `mount`);
  14333. }
  14334. };
  14335. const updateComponent = (n1, n2, optimized) => {
  14336. const instance = (n2.component = n1.component);
  14337. if (shouldUpdateComponent(n1, n2, optimized)) {
  14338. if (instance.asyncDep &&
  14339. !instance.asyncResolved) {
  14340. // async & still pending - just update props and slots
  14341. // since the component's reactive effect for render isn't set-up yet
  14342. if ((true)) {
  14343. pushWarningContext(n2);
  14344. }
  14345. updateComponentPreRender(instance, n2, optimized);
  14346. if ((true)) {
  14347. popWarningContext();
  14348. }
  14349. return;
  14350. }
  14351. else {
  14352. // normal update
  14353. instance.next = n2;
  14354. // in case the child component is also queued, remove it to avoid
  14355. // double updating the same child component in the same flush.
  14356. invalidateJob(instance.update);
  14357. // instance.update is the reactive effect.
  14358. instance.update();
  14359. }
  14360. }
  14361. else {
  14362. // no update needed. just copy over properties
  14363. n2.component = n1.component;
  14364. n2.el = n1.el;
  14365. instance.vnode = n2;
  14366. }
  14367. };
  14368. const setupRenderEffect = (instance, initialVNode, container, anchor, parentSuspense, isSVG, optimized) => {
  14369. const componentUpdateFn = () => {
  14370. if (!instance.isMounted) {
  14371. let vnodeHook;
  14372. const { el, props } = initialVNode;
  14373. const { bm, m, parent } = instance;
  14374. const isAsyncWrapperVNode = isAsyncWrapper(initialVNode);
  14375. toggleRecurse(instance, false);
  14376. // beforeMount hook
  14377. if (bm) {
  14378. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(bm);
  14379. }
  14380. // onVnodeBeforeMount
  14381. if (!isAsyncWrapperVNode &&
  14382. (vnodeHook = props && props.onVnodeBeforeMount)) {
  14383. invokeVNodeHook(vnodeHook, parent, initialVNode);
  14384. }
  14385. toggleRecurse(instance, true);
  14386. if (el && hydrateNode) {
  14387. // vnode has adopted host node - perform hydration instead of mount.
  14388. const hydrateSubTree = () => {
  14389. if ((true)) {
  14390. startMeasure(instance, `render`);
  14391. }
  14392. instance.subTree = renderComponentRoot(instance);
  14393. if ((true)) {
  14394. endMeasure(instance, `render`);
  14395. }
  14396. if ((true)) {
  14397. startMeasure(instance, `hydrate`);
  14398. }
  14399. hydrateNode(el, instance.subTree, instance, parentSuspense, null);
  14400. if ((true)) {
  14401. endMeasure(instance, `hydrate`);
  14402. }
  14403. };
  14404. if (isAsyncWrapperVNode) {
  14405. initialVNode.type.__asyncLoader().then(
  14406. // note: we are moving the render call into an async callback,
  14407. // which means it won't track dependencies - but it's ok because
  14408. // a server-rendered async wrapper is already in resolved state
  14409. // and it will never need to change.
  14410. () => !instance.isUnmounted && hydrateSubTree());
  14411. }
  14412. else {
  14413. hydrateSubTree();
  14414. }
  14415. }
  14416. else {
  14417. if ((true)) {
  14418. startMeasure(instance, `render`);
  14419. }
  14420. const subTree = (instance.subTree = renderComponentRoot(instance));
  14421. if ((true)) {
  14422. endMeasure(instance, `render`);
  14423. }
  14424. if ((true)) {
  14425. startMeasure(instance, `patch`);
  14426. }
  14427. patch(null, subTree, container, anchor, instance, parentSuspense, isSVG);
  14428. if ((true)) {
  14429. endMeasure(instance, `patch`);
  14430. }
  14431. initialVNode.el = subTree.el;
  14432. }
  14433. // mounted hook
  14434. if (m) {
  14435. queuePostRenderEffect(m, parentSuspense);
  14436. }
  14437. // onVnodeMounted
  14438. if (!isAsyncWrapperVNode &&
  14439. (vnodeHook = props && props.onVnodeMounted)) {
  14440. const scopedInitialVNode = initialVNode;
  14441. queuePostRenderEffect(() => invokeVNodeHook(vnodeHook, parent, scopedInitialVNode), parentSuspense);
  14442. }
  14443. // activated hook for keep-alive roots.
  14444. // #1742 activated hook must be accessed after first render
  14445. // since the hook may be injected by a child keep-alive
  14446. if (initialVNode.shapeFlag & 256 /* COMPONENT_SHOULD_KEEP_ALIVE */) {
  14447. instance.a && queuePostRenderEffect(instance.a, parentSuspense);
  14448. }
  14449. instance.isMounted = true;
  14450. if (true) {
  14451. devtoolsComponentAdded(instance);
  14452. }
  14453. // #2458: deference mount-only object parameters to prevent memleaks
  14454. initialVNode = container = anchor = null;
  14455. }
  14456. else {
  14457. // updateComponent
  14458. // This is triggered by mutation of component's own state (next: null)
  14459. // OR parent calling processComponent (next: VNode)
  14460. let { next, bu, u, parent, vnode } = instance;
  14461. let originNext = next;
  14462. let vnodeHook;
  14463. if ((true)) {
  14464. pushWarningContext(next || instance.vnode);
  14465. }
  14466. // Disallow component effect recursion during pre-lifecycle hooks.
  14467. toggleRecurse(instance, false);
  14468. if (next) {
  14469. next.el = vnode.el;
  14470. updateComponentPreRender(instance, next, optimized);
  14471. }
  14472. else {
  14473. next = vnode;
  14474. }
  14475. // beforeUpdate hook
  14476. if (bu) {
  14477. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(bu);
  14478. }
  14479. // onVnodeBeforeUpdate
  14480. if ((vnodeHook = next.props && next.props.onVnodeBeforeUpdate)) {
  14481. invokeVNodeHook(vnodeHook, parent, next, vnode);
  14482. }
  14483. toggleRecurse(instance, true);
  14484. // render
  14485. if ((true)) {
  14486. startMeasure(instance, `render`);
  14487. }
  14488. const nextTree = renderComponentRoot(instance);
  14489. if ((true)) {
  14490. endMeasure(instance, `render`);
  14491. }
  14492. const prevTree = instance.subTree;
  14493. instance.subTree = nextTree;
  14494. if ((true)) {
  14495. startMeasure(instance, `patch`);
  14496. }
  14497. patch(prevTree, nextTree,
  14498. // parent may have changed if it's in a teleport
  14499. hostParentNode(prevTree.el),
  14500. // anchor may have changed if it's in a fragment
  14501. getNextHostNode(prevTree), instance, parentSuspense, isSVG);
  14502. if ((true)) {
  14503. endMeasure(instance, `patch`);
  14504. }
  14505. next.el = nextTree.el;
  14506. if (originNext === null) {
  14507. // self-triggered update. In case of HOC, update parent component
  14508. // vnode el. HOC is indicated by parent instance's subTree pointing
  14509. // to child component's vnode
  14510. updateHOCHostEl(instance, nextTree.el);
  14511. }
  14512. // updated hook
  14513. if (u) {
  14514. queuePostRenderEffect(u, parentSuspense);
  14515. }
  14516. // onVnodeUpdated
  14517. if ((vnodeHook = next.props && next.props.onVnodeUpdated)) {
  14518. queuePostRenderEffect(() => invokeVNodeHook(vnodeHook, parent, next, vnode), parentSuspense);
  14519. }
  14520. if (true) {
  14521. devtoolsComponentUpdated(instance);
  14522. }
  14523. if ((true)) {
  14524. popWarningContext();
  14525. }
  14526. }
  14527. };
  14528. // create reactive effect for rendering
  14529. const effect = (instance.effect = new _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.ReactiveEffect(componentUpdateFn, () => queueJob(instance.update), instance.scope // track it in component's effect scope
  14530. ));
  14531. const update = (instance.update = effect.run.bind(effect));
  14532. update.id = instance.uid;
  14533. // allowRecurse
  14534. // #1801, #2043 component render effects should allow recursive updates
  14535. toggleRecurse(instance, true);
  14536. if ((true)) {
  14537. effect.onTrack = instance.rtc
  14538. ? e => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(instance.rtc, e)
  14539. : void 0;
  14540. effect.onTrigger = instance.rtg
  14541. ? e => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(instance.rtg, e)
  14542. : void 0;
  14543. // @ts-ignore (for scheduler)
  14544. update.ownerInstance = instance;
  14545. }
  14546. update();
  14547. };
  14548. const updateComponentPreRender = (instance, nextVNode, optimized) => {
  14549. nextVNode.component = instance;
  14550. const prevProps = instance.vnode.props;
  14551. instance.vnode = nextVNode;
  14552. instance.next = null;
  14553. updateProps(instance, nextVNode.props, prevProps, optimized);
  14554. updateSlots(instance, nextVNode.children, optimized);
  14555. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.pauseTracking)();
  14556. // props update may have triggered pre-flush watchers.
  14557. // flush them before the render update.
  14558. flushPreFlushCbs(undefined, instance.update);
  14559. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.resetTracking)();
  14560. };
  14561. const patchChildren = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized = false) => {
  14562. const c1 = n1 && n1.children;
  14563. const prevShapeFlag = n1 ? n1.shapeFlag : 0;
  14564. const c2 = n2.children;
  14565. const { patchFlag, shapeFlag } = n2;
  14566. // fast path
  14567. if (patchFlag > 0) {
  14568. if (patchFlag & 128 /* KEYED_FRAGMENT */) {
  14569. // this could be either fully-keyed or mixed (some keyed some not)
  14570. // presence of patchFlag means children are guaranteed to be arrays
  14571. patchKeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14572. return;
  14573. }
  14574. else if (patchFlag & 256 /* UNKEYED_FRAGMENT */) {
  14575. // unkeyed
  14576. patchUnkeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14577. return;
  14578. }
  14579. }
  14580. // children has 3 possibilities: text, array or no children.
  14581. if (shapeFlag & 8 /* TEXT_CHILDREN */) {
  14582. // text children fast path
  14583. if (prevShapeFlag & 16 /* ARRAY_CHILDREN */) {
  14584. unmountChildren(c1, parentComponent, parentSuspense);
  14585. }
  14586. if (c2 !== c1) {
  14587. hostSetElementText(container, c2);
  14588. }
  14589. }
  14590. else {
  14591. if (prevShapeFlag & 16 /* ARRAY_CHILDREN */) {
  14592. // prev children was array
  14593. if (shapeFlag & 16 /* ARRAY_CHILDREN */) {
  14594. // two arrays, cannot assume anything, do full diff
  14595. patchKeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14596. }
  14597. else {
  14598. // no new children, just unmount old
  14599. unmountChildren(c1, parentComponent, parentSuspense, true);
  14600. }
  14601. }
  14602. else {
  14603. // prev children was text OR null
  14604. // new children is array OR null
  14605. if (prevShapeFlag & 8 /* TEXT_CHILDREN */) {
  14606. hostSetElementText(container, '');
  14607. }
  14608. // mount new if array
  14609. if (shapeFlag & 16 /* ARRAY_CHILDREN */) {
  14610. mountChildren(c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14611. }
  14612. }
  14613. }
  14614. };
  14615. const patchUnkeyedChildren = (c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {
  14616. c1 = c1 || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_ARR;
  14617. c2 = c2 || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_ARR;
  14618. const oldLength = c1.length;
  14619. const newLength = c2.length;
  14620. const commonLength = Math.min(oldLength, newLength);
  14621. let i;
  14622. for (i = 0; i < commonLength; i++) {
  14623. const nextChild = (c2[i] = optimized
  14624. ? cloneIfMounted(c2[i])
  14625. : normalizeVNode(c2[i]));
  14626. patch(c1[i], nextChild, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14627. }
  14628. if (oldLength > newLength) {
  14629. // remove old
  14630. unmountChildren(c1, parentComponent, parentSuspense, true, false, commonLength);
  14631. }
  14632. else {
  14633. // mount new
  14634. mountChildren(c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, commonLength);
  14635. }
  14636. };
  14637. // can be all-keyed or mixed
  14638. const patchKeyedChildren = (c1, c2, container, parentAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {
  14639. let i = 0;
  14640. const l2 = c2.length;
  14641. let e1 = c1.length - 1; // prev ending index
  14642. let e2 = l2 - 1; // next ending index
  14643. // 1. sync from start
  14644. // (a b) c
  14645. // (a b) d e
  14646. while (i <= e1 && i <= e2) {
  14647. const n1 = c1[i];
  14648. const n2 = (c2[i] = optimized
  14649. ? cloneIfMounted(c2[i])
  14650. : normalizeVNode(c2[i]));
  14651. if (isSameVNodeType(n1, n2)) {
  14652. patch(n1, n2, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14653. }
  14654. else {
  14655. break;
  14656. }
  14657. i++;
  14658. }
  14659. // 2. sync from end
  14660. // a (b c)
  14661. // d e (b c)
  14662. while (i <= e1 && i <= e2) {
  14663. const n1 = c1[e1];
  14664. const n2 = (c2[e2] = optimized
  14665. ? cloneIfMounted(c2[e2])
  14666. : normalizeVNode(c2[e2]));
  14667. if (isSameVNodeType(n1, n2)) {
  14668. patch(n1, n2, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14669. }
  14670. else {
  14671. break;
  14672. }
  14673. e1--;
  14674. e2--;
  14675. }
  14676. // 3. common sequence + mount
  14677. // (a b)
  14678. // (a b) c
  14679. // i = 2, e1 = 1, e2 = 2
  14680. // (a b)
  14681. // c (a b)
  14682. // i = 0, e1 = -1, e2 = 0
  14683. if (i > e1) {
  14684. if (i <= e2) {
  14685. const nextPos = e2 + 1;
  14686. const anchor = nextPos < l2 ? c2[nextPos].el : parentAnchor;
  14687. while (i <= e2) {
  14688. patch(null, (c2[i] = optimized
  14689. ? cloneIfMounted(c2[i])
  14690. : normalizeVNode(c2[i])), container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14691. i++;
  14692. }
  14693. }
  14694. }
  14695. // 4. common sequence + unmount
  14696. // (a b) c
  14697. // (a b)
  14698. // i = 2, e1 = 2, e2 = 1
  14699. // a (b c)
  14700. // (b c)
  14701. // i = 0, e1 = 0, e2 = -1
  14702. else if (i > e2) {
  14703. while (i <= e1) {
  14704. unmount(c1[i], parentComponent, parentSuspense, true);
  14705. i++;
  14706. }
  14707. }
  14708. // 5. unknown sequence
  14709. // [i ... e1 + 1]: a b [c d e] f g
  14710. // [i ... e2 + 1]: a b [e d c h] f g
  14711. // i = 2, e1 = 4, e2 = 5
  14712. else {
  14713. const s1 = i; // prev starting index
  14714. const s2 = i; // next starting index
  14715. // 5.1 build key:index map for newChildren
  14716. const keyToNewIndexMap = new Map();
  14717. for (i = s2; i <= e2; i++) {
  14718. const nextChild = (c2[i] = optimized
  14719. ? cloneIfMounted(c2[i])
  14720. : normalizeVNode(c2[i]));
  14721. if (nextChild.key != null) {
  14722. if (( true) && keyToNewIndexMap.has(nextChild.key)) {
  14723. warn(`Duplicate keys found during update:`, JSON.stringify(nextChild.key), `Make sure keys are unique.`);
  14724. }
  14725. keyToNewIndexMap.set(nextChild.key, i);
  14726. }
  14727. }
  14728. // 5.2 loop through old children left to be patched and try to patch
  14729. // matching nodes & remove nodes that are no longer present
  14730. let j;
  14731. let patched = 0;
  14732. const toBePatched = e2 - s2 + 1;
  14733. let moved = false;
  14734. // used to track whether any node has moved
  14735. let maxNewIndexSoFar = 0;
  14736. // works as Map<newIndex, oldIndex>
  14737. // Note that oldIndex is offset by +1
  14738. // and oldIndex = 0 is a special value indicating the new node has
  14739. // no corresponding old node.
  14740. // used for determining longest stable subsequence
  14741. const newIndexToOldIndexMap = new Array(toBePatched);
  14742. for (i = 0; i < toBePatched; i++)
  14743. newIndexToOldIndexMap[i] = 0;
  14744. for (i = s1; i <= e1; i++) {
  14745. const prevChild = c1[i];
  14746. if (patched >= toBePatched) {
  14747. // all new children have been patched so this can only be a removal
  14748. unmount(prevChild, parentComponent, parentSuspense, true);
  14749. continue;
  14750. }
  14751. let newIndex;
  14752. if (prevChild.key != null) {
  14753. newIndex = keyToNewIndexMap.get(prevChild.key);
  14754. }
  14755. else {
  14756. // key-less node, try to locate a key-less node of the same type
  14757. for (j = s2; j <= e2; j++) {
  14758. if (newIndexToOldIndexMap[j - s2] === 0 &&
  14759. isSameVNodeType(prevChild, c2[j])) {
  14760. newIndex = j;
  14761. break;
  14762. }
  14763. }
  14764. }
  14765. if (newIndex === undefined) {
  14766. unmount(prevChild, parentComponent, parentSuspense, true);
  14767. }
  14768. else {
  14769. newIndexToOldIndexMap[newIndex - s2] = i + 1;
  14770. if (newIndex >= maxNewIndexSoFar) {
  14771. maxNewIndexSoFar = newIndex;
  14772. }
  14773. else {
  14774. moved = true;
  14775. }
  14776. patch(prevChild, c2[newIndex], container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14777. patched++;
  14778. }
  14779. }
  14780. // 5.3 move and mount
  14781. // generate longest stable subsequence only when nodes have moved
  14782. const increasingNewIndexSequence = moved
  14783. ? getSequence(newIndexToOldIndexMap)
  14784. : _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_ARR;
  14785. j = increasingNewIndexSequence.length - 1;
  14786. // looping backwards so that we can use last patched node as anchor
  14787. for (i = toBePatched - 1; i >= 0; i--) {
  14788. const nextIndex = s2 + i;
  14789. const nextChild = c2[nextIndex];
  14790. const anchor = nextIndex + 1 < l2 ? c2[nextIndex + 1].el : parentAnchor;
  14791. if (newIndexToOldIndexMap[i] === 0) {
  14792. // mount new
  14793. patch(null, nextChild, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14794. }
  14795. else if (moved) {
  14796. // move if:
  14797. // There is no stable subsequence (e.g. a reverse)
  14798. // OR current node is not among the stable sequence
  14799. if (j < 0 || i !== increasingNewIndexSequence[j]) {
  14800. move(nextChild, container, anchor, 2 /* REORDER */);
  14801. }
  14802. else {
  14803. j--;
  14804. }
  14805. }
  14806. }
  14807. }
  14808. };
  14809. const move = (vnode, container, anchor, moveType, parentSuspense = null) => {
  14810. const { el, type, transition, children, shapeFlag } = vnode;
  14811. if (shapeFlag & 6 /* COMPONENT */) {
  14812. move(vnode.component.subTree, container, anchor, moveType);
  14813. return;
  14814. }
  14815. if (shapeFlag & 128 /* SUSPENSE */) {
  14816. vnode.suspense.move(container, anchor, moveType);
  14817. return;
  14818. }
  14819. if (shapeFlag & 64 /* TELEPORT */) {
  14820. type.move(vnode, container, anchor, internals);
  14821. return;
  14822. }
  14823. if (type === Fragment) {
  14824. hostInsert(el, container, anchor);
  14825. for (let i = 0; i < children.length; i++) {
  14826. move(children[i], container, anchor, moveType);
  14827. }
  14828. hostInsert(vnode.anchor, container, anchor);
  14829. return;
  14830. }
  14831. if (type === Static) {
  14832. moveStaticNode(vnode, container, anchor);
  14833. return;
  14834. }
  14835. // single nodes
  14836. const needTransition = moveType !== 2 /* REORDER */ &&
  14837. shapeFlag & 1 /* ELEMENT */ &&
  14838. transition;
  14839. if (needTransition) {
  14840. if (moveType === 0 /* ENTER */) {
  14841. transition.beforeEnter(el);
  14842. hostInsert(el, container, anchor);
  14843. queuePostRenderEffect(() => transition.enter(el), parentSuspense);
  14844. }
  14845. else {
  14846. const { leave, delayLeave, afterLeave } = transition;
  14847. const remove = () => hostInsert(el, container, anchor);
  14848. const performLeave = () => {
  14849. leave(el, () => {
  14850. remove();
  14851. afterLeave && afterLeave();
  14852. });
  14853. };
  14854. if (delayLeave) {
  14855. delayLeave(el, remove, performLeave);
  14856. }
  14857. else {
  14858. performLeave();
  14859. }
  14860. }
  14861. }
  14862. else {
  14863. hostInsert(el, container, anchor);
  14864. }
  14865. };
  14866. const unmount = (vnode, parentComponent, parentSuspense, doRemove = false, optimized = false) => {
  14867. const { type, props, ref, children, dynamicChildren, shapeFlag, patchFlag, dirs } = vnode;
  14868. // unset ref
  14869. if (ref != null) {
  14870. setRef(ref, null, parentSuspense, vnode, true);
  14871. }
  14872. if (shapeFlag & 256 /* COMPONENT_SHOULD_KEEP_ALIVE */) {
  14873. parentComponent.ctx.deactivate(vnode);
  14874. return;
  14875. }
  14876. const shouldInvokeDirs = shapeFlag & 1 /* ELEMENT */ && dirs;
  14877. const shouldInvokeVnodeHook = !isAsyncWrapper(vnode);
  14878. let vnodeHook;
  14879. if (shouldInvokeVnodeHook &&
  14880. (vnodeHook = props && props.onVnodeBeforeUnmount)) {
  14881. invokeVNodeHook(vnodeHook, parentComponent, vnode);
  14882. }
  14883. if (shapeFlag & 6 /* COMPONENT */) {
  14884. unmountComponent(vnode.component, parentSuspense, doRemove);
  14885. }
  14886. else {
  14887. if (shapeFlag & 128 /* SUSPENSE */) {
  14888. vnode.suspense.unmount(parentSuspense, doRemove);
  14889. return;
  14890. }
  14891. if (shouldInvokeDirs) {
  14892. invokeDirectiveHook(vnode, null, parentComponent, 'beforeUnmount');
  14893. }
  14894. if (shapeFlag & 64 /* TELEPORT */) {
  14895. vnode.type.remove(vnode, parentComponent, parentSuspense, optimized, internals, doRemove);
  14896. }
  14897. else if (dynamicChildren &&
  14898. // #1153: fast path should not be taken for non-stable (v-for) fragments
  14899. (type !== Fragment ||
  14900. (patchFlag > 0 && patchFlag & 64 /* STABLE_FRAGMENT */))) {
  14901. // fast path for block nodes: only need to unmount dynamic children.
  14902. unmountChildren(dynamicChildren, parentComponent, parentSuspense, false, true);
  14903. }
  14904. else if ((type === Fragment &&
  14905. patchFlag &
  14906. (128 /* KEYED_FRAGMENT */ | 256 /* UNKEYED_FRAGMENT */)) ||
  14907. (!optimized && shapeFlag & 16 /* ARRAY_CHILDREN */)) {
  14908. unmountChildren(children, parentComponent, parentSuspense);
  14909. }
  14910. if (doRemove) {
  14911. remove(vnode);
  14912. }
  14913. }
  14914. if ((shouldInvokeVnodeHook &&
  14915. (vnodeHook = props && props.onVnodeUnmounted)) ||
  14916. shouldInvokeDirs) {
  14917. queuePostRenderEffect(() => {
  14918. vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode);
  14919. shouldInvokeDirs &&
  14920. invokeDirectiveHook(vnode, null, parentComponent, 'unmounted');
  14921. }, parentSuspense);
  14922. }
  14923. };
  14924. const remove = vnode => {
  14925. const { type, el, anchor, transition } = vnode;
  14926. if (type === Fragment) {
  14927. if (( true) &&
  14928. vnode.patchFlag > 0 &&
  14929. vnode.patchFlag & 2048 /* DEV_ROOT_FRAGMENT */ &&
  14930. transition &&
  14931. !transition.persisted) {
  14932. vnode.children.forEach(child => {
  14933. if (child.type === Comment) {
  14934. hostRemove(child.el);
  14935. }
  14936. else {
  14937. remove(child);
  14938. }
  14939. });
  14940. }
  14941. else {
  14942. removeFragment(el, anchor);
  14943. }
  14944. return;
  14945. }
  14946. if (type === Static) {
  14947. removeStaticNode(vnode);
  14948. return;
  14949. }
  14950. const performRemove = () => {
  14951. hostRemove(el);
  14952. if (transition && !transition.persisted && transition.afterLeave) {
  14953. transition.afterLeave();
  14954. }
  14955. };
  14956. if (vnode.shapeFlag & 1 /* ELEMENT */ &&
  14957. transition &&
  14958. !transition.persisted) {
  14959. const { leave, delayLeave } = transition;
  14960. const performLeave = () => leave(el, performRemove);
  14961. if (delayLeave) {
  14962. delayLeave(vnode.el, performRemove, performLeave);
  14963. }
  14964. else {
  14965. performLeave();
  14966. }
  14967. }
  14968. else {
  14969. performRemove();
  14970. }
  14971. };
  14972. const removeFragment = (cur, end) => {
  14973. // For fragments, directly remove all contained DOM nodes.
  14974. // (fragment child nodes cannot have transition)
  14975. let next;
  14976. while (cur !== end) {
  14977. next = hostNextSibling(cur);
  14978. hostRemove(cur);
  14979. cur = next;
  14980. }
  14981. hostRemove(end);
  14982. };
  14983. const unmountComponent = (instance, parentSuspense, doRemove) => {
  14984. if (( true) && instance.type.__hmrId) {
  14985. unregisterHMR(instance);
  14986. }
  14987. const { bum, scope, update, subTree, um } = instance;
  14988. // beforeUnmount hook
  14989. if (bum) {
  14990. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(bum);
  14991. }
  14992. // stop effects in component scope
  14993. scope.stop();
  14994. // update may be null if a component is unmounted before its async
  14995. // setup has resolved.
  14996. if (update) {
  14997. // so that scheduler will no longer invoke it
  14998. update.active = false;
  14999. unmount(subTree, instance, parentSuspense, doRemove);
  15000. }
  15001. // unmounted hook
  15002. if (um) {
  15003. queuePostRenderEffect(um, parentSuspense);
  15004. }
  15005. queuePostRenderEffect(() => {
  15006. instance.isUnmounted = true;
  15007. }, parentSuspense);
  15008. // A component with async dep inside a pending suspense is unmounted before
  15009. // its async dep resolves. This should remove the dep from the suspense, and
  15010. // cause the suspense to resolve immediately if that was the last dep.
  15011. if (parentSuspense &&
  15012. parentSuspense.pendingBranch &&
  15013. !parentSuspense.isUnmounted &&
  15014. instance.asyncDep &&
  15015. !instance.asyncResolved &&
  15016. instance.suspenseId === parentSuspense.pendingId) {
  15017. parentSuspense.deps--;
  15018. if (parentSuspense.deps === 0) {
  15019. parentSuspense.resolve();
  15020. }
  15021. }
  15022. if (true) {
  15023. devtoolsComponentRemoved(instance);
  15024. }
  15025. };
  15026. const unmountChildren = (children, parentComponent, parentSuspense, doRemove = false, optimized = false, start = 0) => {
  15027. for (let i = start; i < children.length; i++) {
  15028. unmount(children[i], parentComponent, parentSuspense, doRemove, optimized);
  15029. }
  15030. };
  15031. const getNextHostNode = vnode => {
  15032. if (vnode.shapeFlag & 6 /* COMPONENT */) {
  15033. return getNextHostNode(vnode.component.subTree);
  15034. }
  15035. if (vnode.shapeFlag & 128 /* SUSPENSE */) {
  15036. return vnode.suspense.next();
  15037. }
  15038. return hostNextSibling((vnode.anchor || vnode.el));
  15039. };
  15040. const render = (vnode, container, isSVG) => {
  15041. if (vnode == null) {
  15042. if (container._vnode) {
  15043. unmount(container._vnode, null, null, true);
  15044. }
  15045. }
  15046. else {
  15047. patch(container._vnode || null, vnode, container, null, null, null, isSVG);
  15048. }
  15049. flushPostFlushCbs();
  15050. container._vnode = vnode;
  15051. };
  15052. const internals = {
  15053. p: patch,
  15054. um: unmount,
  15055. m: move,
  15056. r: remove,
  15057. mt: mountComponent,
  15058. mc: mountChildren,
  15059. pc: patchChildren,
  15060. pbc: patchBlockChildren,
  15061. n: getNextHostNode,
  15062. o: options
  15063. };
  15064. let hydrate;
  15065. let hydrateNode;
  15066. if (createHydrationFns) {
  15067. [hydrate, hydrateNode] = createHydrationFns(internals);
  15068. }
  15069. return {
  15070. render,
  15071. hydrate,
  15072. createApp: createAppAPI(render, hydrate)
  15073. };
  15074. }
  15075. function toggleRecurse({ effect, update }, allowed) {
  15076. effect.allowRecurse = update.allowRecurse = allowed;
  15077. }
  15078. /**
  15079. * #1156
  15080. * When a component is HMR-enabled, we need to make sure that all static nodes
  15081. * inside a block also inherit the DOM element from the previous tree so that
  15082. * HMR updates (which are full updates) can retrieve the element for patching.
  15083. *
  15084. * #2080
  15085. * Inside keyed `template` fragment static children, if a fragment is moved,
  15086. * the children will always be moved. Therefore, in order to ensure correct move
  15087. * position, el should be inherited from previous nodes.
  15088. */
  15089. function traverseStaticChildren(n1, n2, shallow = false) {
  15090. const ch1 = n1.children;
  15091. const ch2 = n2.children;
  15092. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(ch1) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(ch2)) {
  15093. for (let i = 0; i < ch1.length; i++) {
  15094. // this is only called in the optimized path so array children are
  15095. // guaranteed to be vnodes
  15096. const c1 = ch1[i];
  15097. let c2 = ch2[i];
  15098. if (c2.shapeFlag & 1 /* ELEMENT */ && !c2.dynamicChildren) {
  15099. if (c2.patchFlag <= 0 || c2.patchFlag === 32 /* HYDRATE_EVENTS */) {
  15100. c2 = ch2[i] = cloneIfMounted(ch2[i]);
  15101. c2.el = c1.el;
  15102. }
  15103. if (!shallow)
  15104. traverseStaticChildren(c1, c2);
  15105. }
  15106. // also inherit for comment nodes, but not placeholders (e.g. v-if which
  15107. // would have received .el during block patch)
  15108. if (( true) && c2.type === Comment && !c2.el) {
  15109. c2.el = c1.el;
  15110. }
  15111. }
  15112. }
  15113. }
  15114. // https://en.wikipedia.org/wiki/Longest_increasing_subsequence
  15115. function getSequence(arr) {
  15116. const p = arr.slice();
  15117. const result = [0];
  15118. let i, j, u, v, c;
  15119. const len = arr.length;
  15120. for (i = 0; i < len; i++) {
  15121. const arrI = arr[i];
  15122. if (arrI !== 0) {
  15123. j = result[result.length - 1];
  15124. if (arr[j] < arrI) {
  15125. p[i] = j;
  15126. result.push(i);
  15127. continue;
  15128. }
  15129. u = 0;
  15130. v = result.length - 1;
  15131. while (u < v) {
  15132. c = (u + v) >> 1;
  15133. if (arr[result[c]] < arrI) {
  15134. u = c + 1;
  15135. }
  15136. else {
  15137. v = c;
  15138. }
  15139. }
  15140. if (arrI < arr[result[u]]) {
  15141. if (u > 0) {
  15142. p[i] = result[u - 1];
  15143. }
  15144. result[u] = i;
  15145. }
  15146. }
  15147. }
  15148. u = result.length;
  15149. v = result[u - 1];
  15150. while (u-- > 0) {
  15151. result[u] = v;
  15152. v = p[v];
  15153. }
  15154. return result;
  15155. }
  15156. const isTeleport = (type) => type.__isTeleport;
  15157. const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === '');
  15158. const isTargetSVG = (target) => typeof SVGElement !== 'undefined' && target instanceof SVGElement;
  15159. const resolveTarget = (props, select) => {
  15160. const targetSelector = props && props.to;
  15161. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(targetSelector)) {
  15162. if (!select) {
  15163. ( true) &&
  15164. warn(`Current renderer does not support string target for Teleports. ` +
  15165. `(missing querySelector renderer option)`);
  15166. return null;
  15167. }
  15168. else {
  15169. const target = select(targetSelector);
  15170. if (!target) {
  15171. ( true) &&
  15172. warn(`Failed to locate Teleport target with selector "${targetSelector}". ` +
  15173. `Note the target element must exist before the component is mounted - ` +
  15174. `i.e. the target cannot be rendered by the component itself, and ` +
  15175. `ideally should be outside of the entire Vue component tree.`);
  15176. }
  15177. return target;
  15178. }
  15179. }
  15180. else {
  15181. if (( true) && !targetSelector && !isTeleportDisabled(props)) {
  15182. warn(`Invalid Teleport target: ${targetSelector}`);
  15183. }
  15184. return targetSelector;
  15185. }
  15186. };
  15187. const TeleportImpl = {
  15188. __isTeleport: true,
  15189. process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals) {
  15190. const { mc: mountChildren, pc: patchChildren, pbc: patchBlockChildren, o: { insert, querySelector, createText, createComment } } = internals;
  15191. const disabled = isTeleportDisabled(n2.props);
  15192. let { shapeFlag, children, dynamicChildren } = n2;
  15193. // #3302
  15194. // HMR updated, force full diff
  15195. if (( true) && isHmrUpdating) {
  15196. optimized = false;
  15197. dynamicChildren = null;
  15198. }
  15199. if (n1 == null) {
  15200. // insert anchors in the main view
  15201. const placeholder = (n2.el = ( true)
  15202. ? createComment('teleport start')
  15203. : 0);
  15204. const mainAnchor = (n2.anchor = ( true)
  15205. ? createComment('teleport end')
  15206. : 0);
  15207. insert(placeholder, container, anchor);
  15208. insert(mainAnchor, container, anchor);
  15209. const target = (n2.target = resolveTarget(n2.props, querySelector));
  15210. const targetAnchor = (n2.targetAnchor = createText(''));
  15211. if (target) {
  15212. insert(targetAnchor, target);
  15213. // #2652 we could be teleporting from a non-SVG tree into an SVG tree
  15214. isSVG = isSVG || isTargetSVG(target);
  15215. }
  15216. else if (( true) && !disabled) {
  15217. warn('Invalid Teleport target on mount:', target, `(${typeof target})`);
  15218. }
  15219. const mount = (container, anchor) => {
  15220. // Teleport *always* has Array children. This is enforced in both the
  15221. // compiler and vnode children normalization.
  15222. if (shapeFlag & 16 /* ARRAY_CHILDREN */) {
  15223. mountChildren(children, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  15224. }
  15225. };
  15226. if (disabled) {
  15227. mount(container, mainAnchor);
  15228. }
  15229. else if (target) {
  15230. mount(target, targetAnchor);
  15231. }
  15232. }
  15233. else {
  15234. // update content
  15235. n2.el = n1.el;
  15236. const mainAnchor = (n2.anchor = n1.anchor);
  15237. const target = (n2.target = n1.target);
  15238. const targetAnchor = (n2.targetAnchor = n1.targetAnchor);
  15239. const wasDisabled = isTeleportDisabled(n1.props);
  15240. const currentContainer = wasDisabled ? container : target;
  15241. const currentAnchor = wasDisabled ? mainAnchor : targetAnchor;
  15242. isSVG = isSVG || isTargetSVG(target);
  15243. if (dynamicChildren) {
  15244. // fast path when the teleport happens to be a block root
  15245. patchBlockChildren(n1.dynamicChildren, dynamicChildren, currentContainer, parentComponent, parentSuspense, isSVG, slotScopeIds);
  15246. // even in block tree mode we need to make sure all root-level nodes
  15247. // in the teleport inherit previous DOM references so that they can
  15248. // be moved in future patches.
  15249. traverseStaticChildren(n1, n2, true);
  15250. }
  15251. else if (!optimized) {
  15252. patchChildren(n1, n2, currentContainer, currentAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, false);
  15253. }
  15254. if (disabled) {
  15255. if (!wasDisabled) {
  15256. // enabled -> disabled
  15257. // move into main container
  15258. moveTeleport(n2, container, mainAnchor, internals, 1 /* TOGGLE */);
  15259. }
  15260. }
  15261. else {
  15262. // target changed
  15263. if ((n2.props && n2.props.to) !== (n1.props && n1.props.to)) {
  15264. const nextTarget = (n2.target = resolveTarget(n2.props, querySelector));
  15265. if (nextTarget) {
  15266. moveTeleport(n2, nextTarget, null, internals, 0 /* TARGET_CHANGE */);
  15267. }
  15268. else if ((true)) {
  15269. warn('Invalid Teleport target on update:', target, `(${typeof target})`);
  15270. }
  15271. }
  15272. else if (wasDisabled) {
  15273. // disabled -> enabled
  15274. // move into teleport target
  15275. moveTeleport(n2, target, targetAnchor, internals, 1 /* TOGGLE */);
  15276. }
  15277. }
  15278. }
  15279. },
  15280. remove(vnode, parentComponent, parentSuspense, optimized, { um: unmount, o: { remove: hostRemove } }, doRemove) {
  15281. const { shapeFlag, children, anchor, targetAnchor, target, props } = vnode;
  15282. if (target) {
  15283. hostRemove(targetAnchor);
  15284. }
  15285. // an unmounted teleport should always remove its children if not disabled
  15286. if (doRemove || !isTeleportDisabled(props)) {
  15287. hostRemove(anchor);
  15288. if (shapeFlag & 16 /* ARRAY_CHILDREN */) {
  15289. for (let i = 0; i < children.length; i++) {
  15290. const child = children[i];
  15291. unmount(child, parentComponent, parentSuspense, true, !!child.dynamicChildren);
  15292. }
  15293. }
  15294. }
  15295. },
  15296. move: moveTeleport,
  15297. hydrate: hydrateTeleport
  15298. };
  15299. function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }, moveType = 2 /* REORDER */) {
  15300. // move target anchor if this is a target change.
  15301. if (moveType === 0 /* TARGET_CHANGE */) {
  15302. insert(vnode.targetAnchor, container, parentAnchor);
  15303. }
  15304. const { el, anchor, shapeFlag, children, props } = vnode;
  15305. const isReorder = moveType === 2 /* REORDER */;
  15306. // move main view anchor if this is a re-order.
  15307. if (isReorder) {
  15308. insert(el, container, parentAnchor);
  15309. }
  15310. // if this is a re-order and teleport is enabled (content is in target)
  15311. // do not move children. So the opposite is: only move children if this
  15312. // is not a reorder, or the teleport is disabled
  15313. if (!isReorder || isTeleportDisabled(props)) {
  15314. // Teleport has either Array children or no children.
  15315. if (shapeFlag & 16 /* ARRAY_CHILDREN */) {
  15316. for (let i = 0; i < children.length; i++) {
  15317. move(children[i], container, parentAnchor, 2 /* REORDER */);
  15318. }
  15319. }
  15320. }
  15321. // move main view anchor if this is a re-order.
  15322. if (isReorder) {
  15323. insert(anchor, container, parentAnchor);
  15324. }
  15325. }
  15326. function hydrateTeleport(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, { o: { nextSibling, parentNode, querySelector } }, hydrateChildren) {
  15327. const target = (vnode.target = resolveTarget(vnode.props, querySelector));
  15328. if (target) {
  15329. // if multiple teleports rendered to the same target element, we need to
  15330. // pick up from where the last teleport finished instead of the first node
  15331. const targetNode = target._lpa || target.firstChild;
  15332. if (vnode.shapeFlag & 16 /* ARRAY_CHILDREN */) {
  15333. if (isTeleportDisabled(vnode.props)) {
  15334. vnode.anchor = hydrateChildren(nextSibling(node), vnode, parentNode(node), parentComponent, parentSuspense, slotScopeIds, optimized);
  15335. vnode.targetAnchor = targetNode;
  15336. }
  15337. else {
  15338. vnode.anchor = nextSibling(node);
  15339. vnode.targetAnchor = hydrateChildren(targetNode, vnode, target, parentComponent, parentSuspense, slotScopeIds, optimized);
  15340. }
  15341. target._lpa =
  15342. vnode.targetAnchor && nextSibling(vnode.targetAnchor);
  15343. }
  15344. }
  15345. return vnode.anchor && nextSibling(vnode.anchor);
  15346. }
  15347. // Force-casted public typing for h and TSX props inference
  15348. const Teleport = TeleportImpl;
  15349. const COMPONENTS = 'components';
  15350. const DIRECTIVES = 'directives';
  15351. /**
  15352. * @private
  15353. */
  15354. function resolveComponent(name, maybeSelfReference) {
  15355. return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
  15356. }
  15357. const NULL_DYNAMIC_COMPONENT = Symbol();
  15358. /**
  15359. * @private
  15360. */
  15361. function resolveDynamicComponent(component) {
  15362. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(component)) {
  15363. return resolveAsset(COMPONENTS, component, false) || component;
  15364. }
  15365. else {
  15366. // invalid types will fallthrough to createVNode and raise warning
  15367. return (component || NULL_DYNAMIC_COMPONENT);
  15368. }
  15369. }
  15370. /**
  15371. * @private
  15372. */
  15373. function resolveDirective(name) {
  15374. return resolveAsset(DIRECTIVES, name);
  15375. }
  15376. // implementation
  15377. function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) {
  15378. const instance = currentRenderingInstance || currentInstance;
  15379. if (instance) {
  15380. const Component = instance.type;
  15381. // explicit self name has highest priority
  15382. if (type === COMPONENTS) {
  15383. const selfName = getComponentName(Component);
  15384. if (selfName &&
  15385. (selfName === name ||
  15386. selfName === (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(name) ||
  15387. selfName === (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.capitalize)((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(name)))) {
  15388. return Component;
  15389. }
  15390. }
  15391. const res =
  15392. // local registration
  15393. // check instance[type] first which is resolved for options API
  15394. resolve(instance[type] || Component[type], name) ||
  15395. // global registration
  15396. resolve(instance.appContext[type], name);
  15397. if (!res && maybeSelfReference) {
  15398. // fallback to implicit self-reference
  15399. return Component;
  15400. }
  15401. if (( true) && warnMissing && !res) {
  15402. const extra = type === COMPONENTS
  15403. ? `\nIf this is a native custom element, make sure to exclude it from ` +
  15404. `component resolution via compilerOptions.isCustomElement.`
  15405. : ``;
  15406. warn(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
  15407. }
  15408. return res;
  15409. }
  15410. else if ((true)) {
  15411. warn(`resolve${(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.capitalize)(type.slice(0, -1))} ` +
  15412. `can only be used in render() or setup().`);
  15413. }
  15414. }
  15415. function resolve(registry, name) {
  15416. return (registry &&
  15417. (registry[name] ||
  15418. registry[(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(name)] ||
  15419. registry[(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.capitalize)((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(name))]));
  15420. }
  15421. const Fragment = Symbol(( true) ? 'Fragment' : 0);
  15422. const Text = Symbol(( true) ? 'Text' : 0);
  15423. const Comment = Symbol(( true) ? 'Comment' : 0);
  15424. const Static = Symbol(( true) ? 'Static' : 0);
  15425. // Since v-if and v-for are the two possible ways node structure can dynamically
  15426. // change, once we consider v-if branches and each v-for fragment a block, we
  15427. // can divide a template into nested blocks, and within each block the node
  15428. // structure would be stable. This allows us to skip most children diffing
  15429. // and only worry about the dynamic nodes (indicated by patch flags).
  15430. const blockStack = [];
  15431. let currentBlock = null;
  15432. /**
  15433. * Open a block.
  15434. * This must be called before `createBlock`. It cannot be part of `createBlock`
  15435. * because the children of the block are evaluated before `createBlock` itself
  15436. * is called. The generated code typically looks like this:
  15437. *
  15438. * ```js
  15439. * function render() {
  15440. * return (openBlock(),createBlock('div', null, [...]))
  15441. * }
  15442. * ```
  15443. * disableTracking is true when creating a v-for fragment block, since a v-for
  15444. * fragment always diffs its children.
  15445. *
  15446. * @private
  15447. */
  15448. function openBlock(disableTracking = false) {
  15449. blockStack.push((currentBlock = disableTracking ? null : []));
  15450. }
  15451. function closeBlock() {
  15452. blockStack.pop();
  15453. currentBlock = blockStack[blockStack.length - 1] || null;
  15454. }
  15455. // Whether we should be tracking dynamic child nodes inside a block.
  15456. // Only tracks when this value is > 0
  15457. // We are not using a simple boolean because this value may need to be
  15458. // incremented/decremented by nested usage of v-once (see below)
  15459. let isBlockTreeEnabled = 1;
  15460. /**
  15461. * Block tracking sometimes needs to be disabled, for example during the
  15462. * creation of a tree that needs to be cached by v-once. The compiler generates
  15463. * code like this:
  15464. *
  15465. * ``` js
  15466. * _cache[1] || (
  15467. * setBlockTracking(-1),
  15468. * _cache[1] = createVNode(...),
  15469. * setBlockTracking(1),
  15470. * _cache[1]
  15471. * )
  15472. * ```
  15473. *
  15474. * @private
  15475. */
  15476. function setBlockTracking(value) {
  15477. isBlockTreeEnabled += value;
  15478. }
  15479. function setupBlock(vnode) {
  15480. // save current block children on the block vnode
  15481. vnode.dynamicChildren =
  15482. isBlockTreeEnabled > 0 ? currentBlock || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_ARR : null;
  15483. // close block
  15484. closeBlock();
  15485. // a block is always going to be patched, so track it as a child of its
  15486. // parent block
  15487. if (isBlockTreeEnabled > 0 && currentBlock) {
  15488. currentBlock.push(vnode);
  15489. }
  15490. return vnode;
  15491. }
  15492. /**
  15493. * @private
  15494. */
  15495. function createElementBlock(type, props, children, patchFlag, dynamicProps, shapeFlag) {
  15496. return setupBlock(createBaseVNode(type, props, children, patchFlag, dynamicProps, shapeFlag, true /* isBlock */));
  15497. }
  15498. /**
  15499. * Create a block root vnode. Takes the same exact arguments as `createVNode`.
  15500. * A block root keeps track of dynamic nodes within the block in the
  15501. * `dynamicChildren` array.
  15502. *
  15503. * @private
  15504. */
  15505. function createBlock(type, props, children, patchFlag, dynamicProps) {
  15506. return setupBlock(createVNode(type, props, children, patchFlag, dynamicProps, true /* isBlock: prevent a block from tracking itself */));
  15507. }
  15508. function isVNode(value) {
  15509. return value ? value.__v_isVNode === true : false;
  15510. }
  15511. function isSameVNodeType(n1, n2) {
  15512. if (( true) &&
  15513. n2.shapeFlag & 6 /* COMPONENT */ &&
  15514. hmrDirtyComponents.has(n2.type)) {
  15515. // HMR only: if the component has been hot-updated, force a reload.
  15516. return false;
  15517. }
  15518. return n1.type === n2.type && n1.key === n2.key;
  15519. }
  15520. let vnodeArgsTransformer;
  15521. /**
  15522. * Internal API for registering an arguments transform for createVNode
  15523. * used for creating stubs in the test-utils
  15524. * It is *internal* but needs to be exposed for test-utils to pick up proper
  15525. * typings
  15526. */
  15527. function transformVNodeArgs(transformer) {
  15528. vnodeArgsTransformer = transformer;
  15529. }
  15530. const createVNodeWithArgsTransform = (...args) => {
  15531. return _createVNode(...(vnodeArgsTransformer
  15532. ? vnodeArgsTransformer(args, currentRenderingInstance)
  15533. : args));
  15534. };
  15535. const InternalObjectKey = `__vInternal`;
  15536. const normalizeKey = ({ key }) => key != null ? key : null;
  15537. const normalizeRef = ({ ref, ref_key, ref_for }) => {
  15538. return (ref != null
  15539. ? (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(ref) || (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(ref) || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(ref)
  15540. ? { i: currentRenderingInstance, r: ref, k: ref_key, f: !!ref_for }
  15541. : ref
  15542. : null);
  15543. };
  15544. function createBaseVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, shapeFlag = type === Fragment ? 0 : 1 /* ELEMENT */, isBlockNode = false, needFullChildrenNormalization = false) {
  15545. const vnode = {
  15546. __v_isVNode: true,
  15547. __v_skip: true,
  15548. type,
  15549. props,
  15550. key: props && normalizeKey(props),
  15551. ref: props && normalizeRef(props),
  15552. scopeId: currentScopeId,
  15553. slotScopeIds: null,
  15554. children,
  15555. component: null,
  15556. suspense: null,
  15557. ssContent: null,
  15558. ssFallback: null,
  15559. dirs: null,
  15560. transition: null,
  15561. el: null,
  15562. anchor: null,
  15563. target: null,
  15564. targetAnchor: null,
  15565. staticCount: 0,
  15566. shapeFlag,
  15567. patchFlag,
  15568. dynamicProps,
  15569. dynamicChildren: null,
  15570. appContext: null
  15571. };
  15572. if (needFullChildrenNormalization) {
  15573. normalizeChildren(vnode, children);
  15574. // normalize suspense children
  15575. if (shapeFlag & 128 /* SUSPENSE */) {
  15576. type.normalize(vnode);
  15577. }
  15578. }
  15579. else if (children) {
  15580. // compiled element vnode - if children is passed, only possible types are
  15581. // string or Array.
  15582. vnode.shapeFlag |= (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(children)
  15583. ? 8 /* TEXT_CHILDREN */
  15584. : 16 /* ARRAY_CHILDREN */;
  15585. }
  15586. // validate key
  15587. if (( true) && vnode.key !== vnode.key) {
  15588. warn(`VNode created with invalid key (NaN). VNode type:`, vnode.type);
  15589. }
  15590. // track vnode for block tree
  15591. if (isBlockTreeEnabled > 0 &&
  15592. // avoid a block node from tracking itself
  15593. !isBlockNode &&
  15594. // has current parent block
  15595. currentBlock &&
  15596. // presence of a patch flag indicates this node needs patching on updates.
  15597. // component nodes also should always be patched, because even if the
  15598. // component doesn't need to update, it needs to persist the instance on to
  15599. // the next vnode so that it can be properly unmounted later.
  15600. (vnode.patchFlag > 0 || shapeFlag & 6 /* COMPONENT */) &&
  15601. // the EVENTS flag is only for hydration and if it is the only flag, the
  15602. // vnode should not be considered dynamic due to handler caching.
  15603. vnode.patchFlag !== 32 /* HYDRATE_EVENTS */) {
  15604. currentBlock.push(vnode);
  15605. }
  15606. return vnode;
  15607. }
  15608. const createVNode = (( true) ? createVNodeWithArgsTransform : 0);
  15609. function _createVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, isBlockNode = false) {
  15610. if (!type || type === NULL_DYNAMIC_COMPONENT) {
  15611. if (( true) && !type) {
  15612. warn(`Invalid vnode type when creating vnode: ${type}.`);
  15613. }
  15614. type = Comment;
  15615. }
  15616. if (isVNode(type)) {
  15617. // createVNode receiving an existing vnode. This happens in cases like
  15618. // <component :is="vnode"/>
  15619. // #2078 make sure to merge refs during the clone instead of overwriting it
  15620. const cloned = cloneVNode(type, props, true /* mergeRef: true */);
  15621. if (children) {
  15622. normalizeChildren(cloned, children);
  15623. }
  15624. return cloned;
  15625. }
  15626. // class component normalization.
  15627. if (isClassComponent(type)) {
  15628. type = type.__vccOpts;
  15629. }
  15630. // class & style normalization.
  15631. if (props) {
  15632. // for reactive or proxy objects, we need to clone it to enable mutation.
  15633. props = guardReactiveProps(props);
  15634. let { class: klass, style } = props;
  15635. if (klass && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(klass)) {
  15636. props.class = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.normalizeClass)(klass);
  15637. }
  15638. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(style)) {
  15639. // reactive state objects need to be cloned since they are likely to be
  15640. // mutated
  15641. if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isProxy)(style) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(style)) {
  15642. style = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, style);
  15643. }
  15644. props.style = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.normalizeStyle)(style);
  15645. }
  15646. }
  15647. // encode the vnode type information into a bitmap
  15648. const shapeFlag = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(type)
  15649. ? 1 /* ELEMENT */
  15650. : isSuspense(type)
  15651. ? 128 /* SUSPENSE */
  15652. : isTeleport(type)
  15653. ? 64 /* TELEPORT */
  15654. : (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(type)
  15655. ? 4 /* STATEFUL_COMPONENT */
  15656. : (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(type)
  15657. ? 2 /* FUNCTIONAL_COMPONENT */
  15658. : 0;
  15659. if (( true) && shapeFlag & 4 /* STATEFUL_COMPONENT */ && (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isProxy)(type)) {
  15660. type = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(type);
  15661. warn(`Vue received a Component which was made a reactive object. This can ` +
  15662. `lead to unnecessary performance overhead, and should be avoided by ` +
  15663. `marking the component with \`markRaw\` or using \`shallowRef\` ` +
  15664. `instead of \`ref\`.`, `\nComponent that was made reactive: `, type);
  15665. }
  15666. return createBaseVNode(type, props, children, patchFlag, dynamicProps, shapeFlag, isBlockNode, true);
  15667. }
  15668. function guardReactiveProps(props) {
  15669. if (!props)
  15670. return null;
  15671. return (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isProxy)(props) || InternalObjectKey in props
  15672. ? (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, props)
  15673. : props;
  15674. }
  15675. function cloneVNode(vnode, extraProps, mergeRef = false) {
  15676. // This is intentionally NOT using spread or extend to avoid the runtime
  15677. // key enumeration cost.
  15678. const { props, ref, patchFlag, children } = vnode;
  15679. const mergedProps = extraProps ? mergeProps(props || {}, extraProps) : props;
  15680. const cloned = {
  15681. __v_isVNode: true,
  15682. __v_skip: true,
  15683. type: vnode.type,
  15684. props: mergedProps,
  15685. key: mergedProps && normalizeKey(mergedProps),
  15686. ref: extraProps && extraProps.ref
  15687. ? // #2078 in the case of <component :is="vnode" ref="extra"/>
  15688. // if the vnode itself already has a ref, cloneVNode will need to merge
  15689. // the refs so the single vnode can be set on multiple refs
  15690. mergeRef && ref
  15691. ? (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(ref)
  15692. ? ref.concat(normalizeRef(extraProps))
  15693. : [ref, normalizeRef(extraProps)]
  15694. : normalizeRef(extraProps)
  15695. : ref,
  15696. scopeId: vnode.scopeId,
  15697. slotScopeIds: vnode.slotScopeIds,
  15698. children: ( true) && patchFlag === -1 /* HOISTED */ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(children)
  15699. ? children.map(deepCloneVNode)
  15700. : children,
  15701. target: vnode.target,
  15702. targetAnchor: vnode.targetAnchor,
  15703. staticCount: vnode.staticCount,
  15704. shapeFlag: vnode.shapeFlag,
  15705. // if the vnode is cloned with extra props, we can no longer assume its
  15706. // existing patch flag to be reliable and need to add the FULL_PROPS flag.
  15707. // note: preserve flag for fragments since they use the flag for children
  15708. // fast paths only.
  15709. patchFlag: extraProps && vnode.type !== Fragment
  15710. ? patchFlag === -1 // hoisted node
  15711. ? 16 /* FULL_PROPS */
  15712. : patchFlag | 16 /* FULL_PROPS */
  15713. : patchFlag,
  15714. dynamicProps: vnode.dynamicProps,
  15715. dynamicChildren: vnode.dynamicChildren,
  15716. appContext: vnode.appContext,
  15717. dirs: vnode.dirs,
  15718. transition: vnode.transition,
  15719. // These should technically only be non-null on mounted VNodes. However,
  15720. // they *should* be copied for kept-alive vnodes. So we just always copy
  15721. // them since them being non-null during a mount doesn't affect the logic as
  15722. // they will simply be overwritten.
  15723. component: vnode.component,
  15724. suspense: vnode.suspense,
  15725. ssContent: vnode.ssContent && cloneVNode(vnode.ssContent),
  15726. ssFallback: vnode.ssFallback && cloneVNode(vnode.ssFallback),
  15727. el: vnode.el,
  15728. anchor: vnode.anchor
  15729. };
  15730. return cloned;
  15731. }
  15732. /**
  15733. * Dev only, for HMR of hoisted vnodes reused in v-for
  15734. * https://github.com/vitejs/vite/issues/2022
  15735. */
  15736. function deepCloneVNode(vnode) {
  15737. const cloned = cloneVNode(vnode);
  15738. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(vnode.children)) {
  15739. cloned.children = vnode.children.map(deepCloneVNode);
  15740. }
  15741. return cloned;
  15742. }
  15743. /**
  15744. * @private
  15745. */
  15746. function createTextVNode(text = ' ', flag = 0) {
  15747. return createVNode(Text, null, text, flag);
  15748. }
  15749. /**
  15750. * @private
  15751. */
  15752. function createStaticVNode(content, numberOfNodes) {
  15753. // A static vnode can contain multiple stringified elements, and the number
  15754. // of elements is necessary for hydration.
  15755. const vnode = createVNode(Static, null, content);
  15756. vnode.staticCount = numberOfNodes;
  15757. return vnode;
  15758. }
  15759. /**
  15760. * @private
  15761. */
  15762. function createCommentVNode(text = '',
  15763. // when used as the v-else branch, the comment node must be created as a
  15764. // block to ensure correct updates.
  15765. asBlock = false) {
  15766. return asBlock
  15767. ? (openBlock(), createBlock(Comment, null, text))
  15768. : createVNode(Comment, null, text);
  15769. }
  15770. function normalizeVNode(child) {
  15771. if (child == null || typeof child === 'boolean') {
  15772. // empty placeholder
  15773. return createVNode(Comment);
  15774. }
  15775. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(child)) {
  15776. // fragment
  15777. return createVNode(Fragment, null,
  15778. // #3666, avoid reference pollution when reusing vnode
  15779. child.slice());
  15780. }
  15781. else if (typeof child === 'object') {
  15782. // already vnode, this should be the most common since compiled templates
  15783. // always produce all-vnode children arrays
  15784. return cloneIfMounted(child);
  15785. }
  15786. else {
  15787. // strings and numbers
  15788. return createVNode(Text, null, String(child));
  15789. }
  15790. }
  15791. // optimized normalization for template-compiled render fns
  15792. function cloneIfMounted(child) {
  15793. return child.el === null || child.memo ? child : cloneVNode(child);
  15794. }
  15795. function normalizeChildren(vnode, children) {
  15796. let type = 0;
  15797. const { shapeFlag } = vnode;
  15798. if (children == null) {
  15799. children = null;
  15800. }
  15801. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(children)) {
  15802. type = 16 /* ARRAY_CHILDREN */;
  15803. }
  15804. else if (typeof children === 'object') {
  15805. if (shapeFlag & (1 /* ELEMENT */ | 64 /* TELEPORT */)) {
  15806. // Normalize slot to plain children for plain element and Teleport
  15807. const slot = children.default;
  15808. if (slot) {
  15809. // _c marker is added by withCtx() indicating this is a compiled slot
  15810. slot._c && (slot._d = false);
  15811. normalizeChildren(vnode, slot());
  15812. slot._c && (slot._d = true);
  15813. }
  15814. return;
  15815. }
  15816. else {
  15817. type = 32 /* SLOTS_CHILDREN */;
  15818. const slotFlag = children._;
  15819. if (!slotFlag && !(InternalObjectKey in children)) {
  15820. children._ctx = currentRenderingInstance;
  15821. }
  15822. else if (slotFlag === 3 /* FORWARDED */ && currentRenderingInstance) {
  15823. // a child component receives forwarded slots from the parent.
  15824. // its slot type is determined by its parent's slot type.
  15825. if (currentRenderingInstance.slots._ === 1 /* STABLE */) {
  15826. children._ = 1 /* STABLE */;
  15827. }
  15828. else {
  15829. children._ = 2 /* DYNAMIC */;
  15830. vnode.patchFlag |= 1024 /* DYNAMIC_SLOTS */;
  15831. }
  15832. }
  15833. }
  15834. }
  15835. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(children)) {
  15836. children = { default: children, _ctx: currentRenderingInstance };
  15837. type = 32 /* SLOTS_CHILDREN */;
  15838. }
  15839. else {
  15840. children = String(children);
  15841. // force teleport children to array so it can be moved around
  15842. if (shapeFlag & 64 /* TELEPORT */) {
  15843. type = 16 /* ARRAY_CHILDREN */;
  15844. children = [createTextVNode(children)];
  15845. }
  15846. else {
  15847. type = 8 /* TEXT_CHILDREN */;
  15848. }
  15849. }
  15850. vnode.children = children;
  15851. vnode.shapeFlag |= type;
  15852. }
  15853. function mergeProps(...args) {
  15854. const ret = {};
  15855. for (let i = 0; i < args.length; i++) {
  15856. const toMerge = args[i];
  15857. for (const key in toMerge) {
  15858. if (key === 'class') {
  15859. if (ret.class !== toMerge.class) {
  15860. ret.class = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.normalizeClass)([ret.class, toMerge.class]);
  15861. }
  15862. }
  15863. else if (key === 'style') {
  15864. ret.style = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.normalizeStyle)([ret.style, toMerge.style]);
  15865. }
  15866. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isOn)(key)) {
  15867. const existing = ret[key];
  15868. const incoming = toMerge[key];
  15869. if (incoming &&
  15870. existing !== incoming &&
  15871. !((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(existing) && existing.includes(incoming))) {
  15872. ret[key] = existing
  15873. ? [].concat(existing, incoming)
  15874. : incoming;
  15875. }
  15876. }
  15877. else if (key !== '') {
  15878. ret[key] = toMerge[key];
  15879. }
  15880. }
  15881. }
  15882. return ret;
  15883. }
  15884. function invokeVNodeHook(hook, instance, vnode, prevVNode = null) {
  15885. callWithAsyncErrorHandling(hook, instance, 7 /* VNODE_HOOK */, [
  15886. vnode,
  15887. prevVNode
  15888. ]);
  15889. }
  15890. /**
  15891. * Actual implementation
  15892. */
  15893. function renderList(source, renderItem, cache, index) {
  15894. let ret;
  15895. const cached = (cache && cache[index]);
  15896. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(source) || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(source)) {
  15897. ret = new Array(source.length);
  15898. for (let i = 0, l = source.length; i < l; i++) {
  15899. ret[i] = renderItem(source[i], i, undefined, cached && cached[i]);
  15900. }
  15901. }
  15902. else if (typeof source === 'number') {
  15903. if (( true) && !Number.isInteger(source)) {
  15904. warn(`The v-for range expect an integer value but got ${source}.`);
  15905. return [];
  15906. }
  15907. ret = new Array(source);
  15908. for (let i = 0; i < source; i++) {
  15909. ret[i] = renderItem(i + 1, i, undefined, cached && cached[i]);
  15910. }
  15911. }
  15912. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(source)) {
  15913. if (source[Symbol.iterator]) {
  15914. ret = Array.from(source, (item, i) => renderItem(item, i, undefined, cached && cached[i]));
  15915. }
  15916. else {
  15917. const keys = Object.keys(source);
  15918. ret = new Array(keys.length);
  15919. for (let i = 0, l = keys.length; i < l; i++) {
  15920. const key = keys[i];
  15921. ret[i] = renderItem(source[key], key, i, cached && cached[i]);
  15922. }
  15923. }
  15924. }
  15925. else {
  15926. ret = [];
  15927. }
  15928. if (cache) {
  15929. cache[index] = ret;
  15930. }
  15931. return ret;
  15932. }
  15933. /**
  15934. * Compiler runtime helper for creating dynamic slots object
  15935. * @private
  15936. */
  15937. function createSlots(slots, dynamicSlots) {
  15938. for (let i = 0; i < dynamicSlots.length; i++) {
  15939. const slot = dynamicSlots[i];
  15940. // array of dynamic slot generated by <template v-for="..." #[...]>
  15941. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(slot)) {
  15942. for (let j = 0; j < slot.length; j++) {
  15943. slots[slot[j].name] = slot[j].fn;
  15944. }
  15945. }
  15946. else if (slot) {
  15947. // conditional single slot generated by <template v-if="..." #foo>
  15948. slots[slot.name] = slot.fn;
  15949. }
  15950. }
  15951. return slots;
  15952. }
  15953. /**
  15954. * Compiler runtime helper for rendering `<slot/>`
  15955. * @private
  15956. */
  15957. function renderSlot(slots, name, props = {},
  15958. // this is not a user-facing function, so the fallback is always generated by
  15959. // the compiler and guaranteed to be a function returning an array
  15960. fallback, noSlotted) {
  15961. if (currentRenderingInstance.isCE ||
  15962. (currentRenderingInstance.parent &&
  15963. isAsyncWrapper(currentRenderingInstance.parent) &&
  15964. currentRenderingInstance.parent.isCE)) {
  15965. return createVNode('slot', name === 'default' ? null : { name }, fallback && fallback());
  15966. }
  15967. let slot = slots[name];
  15968. if (( true) && slot && slot.length > 1) {
  15969. warn(`SSR-optimized slot function detected in a non-SSR-optimized render ` +
  15970. `function. You need to mark this component with $dynamic-slots in the ` +
  15971. `parent template.`);
  15972. slot = () => [];
  15973. }
  15974. // a compiled slot disables block tracking by default to avoid manual
  15975. // invocation interfering with template-based block tracking, but in
  15976. // `renderSlot` we can be sure that it's template-based so we can force
  15977. // enable it.
  15978. if (slot && slot._c) {
  15979. slot._d = false;
  15980. }
  15981. openBlock();
  15982. const validSlotContent = slot && ensureValidVNode(slot(props));
  15983. const rendered = createBlock(Fragment, { key: props.key || `_${name}` }, validSlotContent || (fallback ? fallback() : []), validSlotContent && slots._ === 1 /* STABLE */
  15984. ? 64 /* STABLE_FRAGMENT */
  15985. : -2 /* BAIL */);
  15986. if (!noSlotted && rendered.scopeId) {
  15987. rendered.slotScopeIds = [rendered.scopeId + '-s'];
  15988. }
  15989. if (slot && slot._c) {
  15990. slot._d = true;
  15991. }
  15992. return rendered;
  15993. }
  15994. function ensureValidVNode(vnodes) {
  15995. return vnodes.some(child => {
  15996. if (!isVNode(child))
  15997. return true;
  15998. if (child.type === Comment)
  15999. return false;
  16000. if (child.type === Fragment &&
  16001. !ensureValidVNode(child.children))
  16002. return false;
  16003. return true;
  16004. })
  16005. ? vnodes
  16006. : null;
  16007. }
  16008. /**
  16009. * For prefixing keys in v-on="obj" with "on"
  16010. * @private
  16011. */
  16012. function toHandlers(obj) {
  16013. const ret = {};
  16014. if (( true) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(obj)) {
  16015. warn(`v-on with no argument expects an object value.`);
  16016. return ret;
  16017. }
  16018. for (const key in obj) {
  16019. ret[(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey)(key)] = obj[key];
  16020. }
  16021. return ret;
  16022. }
  16023. /**
  16024. * #2437 In Vue 3, functional components do not have a public instance proxy but
  16025. * they exist in the internal parent chain. For code that relies on traversing
  16026. * public $parent chains, skip functional ones and go to the parent instead.
  16027. */
  16028. const getPublicInstance = (i) => {
  16029. if (!i)
  16030. return null;
  16031. if (isStatefulComponent(i))
  16032. return getExposeProxy(i) || i.proxy;
  16033. return getPublicInstance(i.parent);
  16034. };
  16035. const publicPropertiesMap =
  16036. // Move PURE marker to new line to workaround compiler discarding it
  16037. // due to type annotation
  16038. /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(Object.create(null), {
  16039. $: i => i,
  16040. $el: i => i.vnode.el,
  16041. $data: i => i.data,
  16042. $props: i => (( true) ? (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly)(i.props) : 0),
  16043. $attrs: i => (( true) ? (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly)(i.attrs) : 0),
  16044. $slots: i => (( true) ? (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly)(i.slots) : 0),
  16045. $refs: i => (( true) ? (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly)(i.refs) : 0),
  16046. $parent: i => getPublicInstance(i.parent),
  16047. $root: i => getPublicInstance(i.root),
  16048. $emit: i => i.emit,
  16049. $options: i => ( true ? resolveMergedOptions(i) : 0),
  16050. $forceUpdate: i => () => queueJob(i.update),
  16051. $nextTick: i => nextTick.bind(i.proxy),
  16052. $watch: i => ( true ? instanceWatch.bind(i) : 0)
  16053. });
  16054. const PublicInstanceProxyHandlers = {
  16055. get({ _: instance }, key) {
  16056. const { ctx, setupState, data, props, accessCache, type, appContext } = instance;
  16057. // for internal formatters to know that this is a Vue instance
  16058. if (( true) && key === '__isVue') {
  16059. return true;
  16060. }
  16061. // prioritize <script setup> bindings during dev.
  16062. // this allows even properties that start with _ or $ to be used - so that
  16063. // it aligns with the production behavior where the render fn is inlined and
  16064. // indeed has access to all declared variables.
  16065. if (( true) &&
  16066. setupState !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ &&
  16067. setupState.__isScriptSetup &&
  16068. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(setupState, key)) {
  16069. return setupState[key];
  16070. }
  16071. // data / props / ctx
  16072. // This getter gets called for every property access on the render context
  16073. // during render and is a major hotspot. The most expensive part of this
  16074. // is the multiple hasOwn() calls. It's much faster to do a simple property
  16075. // access on a plain object, so we use an accessCache object (with null
  16076. // prototype) to memoize what access type a key corresponds to.
  16077. let normalizedProps;
  16078. if (key[0] !== '$') {
  16079. const n = accessCache[key];
  16080. if (n !== undefined) {
  16081. switch (n) {
  16082. case 1 /* SETUP */:
  16083. return setupState[key];
  16084. case 2 /* DATA */:
  16085. return data[key];
  16086. case 4 /* CONTEXT */:
  16087. return ctx[key];
  16088. case 3 /* PROPS */:
  16089. return props[key];
  16090. // default: just fallthrough
  16091. }
  16092. }
  16093. else if (setupState !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(setupState, key)) {
  16094. accessCache[key] = 1 /* SETUP */;
  16095. return setupState[key];
  16096. }
  16097. else if (data !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(data, key)) {
  16098. accessCache[key] = 2 /* DATA */;
  16099. return data[key];
  16100. }
  16101. else if (
  16102. // only cache other properties when instance has declared (thus stable)
  16103. // props
  16104. (normalizedProps = instance.propsOptions[0]) &&
  16105. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(normalizedProps, key)) {
  16106. accessCache[key] = 3 /* PROPS */;
  16107. return props[key];
  16108. }
  16109. else if (ctx !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(ctx, key)) {
  16110. accessCache[key] = 4 /* CONTEXT */;
  16111. return ctx[key];
  16112. }
  16113. else if ( false || shouldCacheAccess) {
  16114. accessCache[key] = 0 /* OTHER */;
  16115. }
  16116. }
  16117. const publicGetter = publicPropertiesMap[key];
  16118. let cssModule, globalProperties;
  16119. // public $xxx properties
  16120. if (publicGetter) {
  16121. if (key === '$attrs') {
  16122. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.track)(instance, "get" /* GET */, key);
  16123. ( true) && markAttrsAccessed();
  16124. }
  16125. return publicGetter(instance);
  16126. }
  16127. else if (
  16128. // css module (injected by vue-loader)
  16129. (cssModule = type.__cssModules) &&
  16130. (cssModule = cssModule[key])) {
  16131. return cssModule;
  16132. }
  16133. else if (ctx !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(ctx, key)) {
  16134. // user may set custom properties to `this` that start with `$`
  16135. accessCache[key] = 4 /* CONTEXT */;
  16136. return ctx[key];
  16137. }
  16138. else if (
  16139. // global properties
  16140. ((globalProperties = appContext.config.globalProperties),
  16141. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(globalProperties, key))) {
  16142. {
  16143. return globalProperties[key];
  16144. }
  16145. }
  16146. else if (( true) &&
  16147. currentRenderingInstance &&
  16148. (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(key) ||
  16149. // #1091 avoid internal isRef/isVNode checks on component instance leading
  16150. // to infinite warning loop
  16151. key.indexOf('__v') !== 0)) {
  16152. if (data !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ &&
  16153. (key[0] === '$' || key[0] === '_') &&
  16154. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(data, key)) {
  16155. warn(`Property ${JSON.stringify(key)} must be accessed via $data because it starts with a reserved ` +
  16156. `character ("$" or "_") and is not proxied on the render context.`);
  16157. }
  16158. else if (instance === currentRenderingInstance) {
  16159. warn(`Property ${JSON.stringify(key)} was accessed during render ` +
  16160. `but is not defined on instance.`);
  16161. }
  16162. }
  16163. },
  16164. set({ _: instance }, key, value) {
  16165. const { data, setupState, ctx } = instance;
  16166. if (setupState !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(setupState, key)) {
  16167. setupState[key] = value;
  16168. return true;
  16169. }
  16170. else if (data !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(data, key)) {
  16171. data[key] = value;
  16172. return true;
  16173. }
  16174. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(instance.props, key)) {
  16175. ( true) &&
  16176. warn(`Attempting to mutate prop "${key}". Props are readonly.`, instance);
  16177. return false;
  16178. }
  16179. if (key[0] === '$' && key.slice(1) in instance) {
  16180. ( true) &&
  16181. warn(`Attempting to mutate public property "${key}". ` +
  16182. `Properties starting with $ are reserved and readonly.`, instance);
  16183. return false;
  16184. }
  16185. else {
  16186. if (( true) && key in instance.appContext.config.globalProperties) {
  16187. Object.defineProperty(ctx, key, {
  16188. enumerable: true,
  16189. configurable: true,
  16190. value
  16191. });
  16192. }
  16193. else {
  16194. ctx[key] = value;
  16195. }
  16196. }
  16197. return true;
  16198. },
  16199. has({ _: { data, setupState, accessCache, ctx, appContext, propsOptions } }, key) {
  16200. let normalizedProps;
  16201. return (!!accessCache[key] ||
  16202. (data !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(data, key)) ||
  16203. (setupState !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(setupState, key)) ||
  16204. ((normalizedProps = propsOptions[0]) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(normalizedProps, key)) ||
  16205. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(ctx, key) ||
  16206. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(publicPropertiesMap, key) ||
  16207. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(appContext.config.globalProperties, key));
  16208. },
  16209. defineProperty(target, key, descriptor) {
  16210. if (descriptor.get != null) {
  16211. // invalidate key cache of a getter based property #5417
  16212. target._.accessCache[key] = 0;
  16213. }
  16214. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(descriptor, 'value')) {
  16215. this.set(target, key, descriptor.value, null);
  16216. }
  16217. return Reflect.defineProperty(target, key, descriptor);
  16218. }
  16219. };
  16220. if (true) {
  16221. PublicInstanceProxyHandlers.ownKeys = (target) => {
  16222. warn(`Avoid app logic that relies on enumerating keys on a component instance. ` +
  16223. `The keys will be empty in production mode to avoid performance overhead.`);
  16224. return Reflect.ownKeys(target);
  16225. };
  16226. }
  16227. const RuntimeCompiledPublicInstanceProxyHandlers = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, PublicInstanceProxyHandlers, {
  16228. get(target, key) {
  16229. // fast path for unscopables when using `with` block
  16230. if (key === Symbol.unscopables) {
  16231. return;
  16232. }
  16233. return PublicInstanceProxyHandlers.get(target, key, target);
  16234. },
  16235. has(_, key) {
  16236. const has = key[0] !== '_' && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isGloballyWhitelisted)(key);
  16237. if (( true) && !has && PublicInstanceProxyHandlers.has(_, key)) {
  16238. warn(`Property ${JSON.stringify(key)} should not start with _ which is a reserved prefix for Vue internals.`);
  16239. }
  16240. return has;
  16241. }
  16242. });
  16243. // dev only
  16244. // In dev mode, the proxy target exposes the same properties as seen on `this`
  16245. // for easier console inspection. In prod mode it will be an empty object so
  16246. // these properties definitions can be skipped.
  16247. function createDevRenderContext(instance) {
  16248. const target = {};
  16249. // expose internal instance for proxy handlers
  16250. Object.defineProperty(target, `_`, {
  16251. configurable: true,
  16252. enumerable: false,
  16253. get: () => instance
  16254. });
  16255. // expose public properties
  16256. Object.keys(publicPropertiesMap).forEach(key => {
  16257. Object.defineProperty(target, key, {
  16258. configurable: true,
  16259. enumerable: false,
  16260. get: () => publicPropertiesMap[key](instance),
  16261. // intercepted by the proxy so no need for implementation,
  16262. // but needed to prevent set errors
  16263. set: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP
  16264. });
  16265. });
  16266. return target;
  16267. }
  16268. // dev only
  16269. function exposePropsOnRenderContext(instance) {
  16270. const { ctx, propsOptions: [propsOptions] } = instance;
  16271. if (propsOptions) {
  16272. Object.keys(propsOptions).forEach(key => {
  16273. Object.defineProperty(ctx, key, {
  16274. enumerable: true,
  16275. configurable: true,
  16276. get: () => instance.props[key],
  16277. set: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP
  16278. });
  16279. });
  16280. }
  16281. }
  16282. // dev only
  16283. function exposeSetupStateOnRenderContext(instance) {
  16284. const { ctx, setupState } = instance;
  16285. Object.keys((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(setupState)).forEach(key => {
  16286. if (!setupState.__isScriptSetup) {
  16287. if (key[0] === '$' || key[0] === '_') {
  16288. warn(`setup() return property ${JSON.stringify(key)} should not start with "$" or "_" ` +
  16289. `which are reserved prefixes for Vue internals.`);
  16290. return;
  16291. }
  16292. Object.defineProperty(ctx, key, {
  16293. enumerable: true,
  16294. configurable: true,
  16295. get: () => setupState[key],
  16296. set: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP
  16297. });
  16298. }
  16299. });
  16300. }
  16301. const emptyAppContext = createAppContext();
  16302. let uid$1 = 0;
  16303. function createComponentInstance(vnode, parent, suspense) {
  16304. const type = vnode.type;
  16305. // inherit parent app context - or - if root, adopt from root vnode
  16306. const appContext = (parent ? parent.appContext : vnode.appContext) || emptyAppContext;
  16307. const instance = {
  16308. uid: uid$1++,
  16309. vnode,
  16310. type,
  16311. parent,
  16312. appContext,
  16313. root: null,
  16314. next: null,
  16315. subTree: null,
  16316. effect: null,
  16317. update: null,
  16318. scope: new _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.EffectScope(true /* detached */),
  16319. render: null,
  16320. proxy: null,
  16321. exposed: null,
  16322. exposeProxy: null,
  16323. withProxy: null,
  16324. provides: parent ? parent.provides : Object.create(appContext.provides),
  16325. accessCache: null,
  16326. renderCache: [],
  16327. // local resovled assets
  16328. components: null,
  16329. directives: null,
  16330. // resolved props and emits options
  16331. propsOptions: normalizePropsOptions(type, appContext),
  16332. emitsOptions: normalizeEmitsOptions(type, appContext),
  16333. // emit
  16334. emit: null,
  16335. emitted: null,
  16336. // props default value
  16337. propsDefaults: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ,
  16338. // inheritAttrs
  16339. inheritAttrs: type.inheritAttrs,
  16340. // state
  16341. ctx: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ,
  16342. data: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ,
  16343. props: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ,
  16344. attrs: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ,
  16345. slots: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ,
  16346. refs: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ,
  16347. setupState: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ,
  16348. setupContext: null,
  16349. // suspense related
  16350. suspense,
  16351. suspenseId: suspense ? suspense.pendingId : 0,
  16352. asyncDep: null,
  16353. asyncResolved: false,
  16354. // lifecycle hooks
  16355. // not using enums here because it results in computed properties
  16356. isMounted: false,
  16357. isUnmounted: false,
  16358. isDeactivated: false,
  16359. bc: null,
  16360. c: null,
  16361. bm: null,
  16362. m: null,
  16363. bu: null,
  16364. u: null,
  16365. um: null,
  16366. bum: null,
  16367. da: null,
  16368. a: null,
  16369. rtg: null,
  16370. rtc: null,
  16371. ec: null,
  16372. sp: null
  16373. };
  16374. if ((true)) {
  16375. instance.ctx = createDevRenderContext(instance);
  16376. }
  16377. else {}
  16378. instance.root = parent ? parent.root : instance;
  16379. instance.emit = emit$1.bind(null, instance);
  16380. // apply custom element special handling
  16381. if (vnode.ce) {
  16382. vnode.ce(instance);
  16383. }
  16384. return instance;
  16385. }
  16386. let currentInstance = null;
  16387. const getCurrentInstance = () => currentInstance || currentRenderingInstance;
  16388. const setCurrentInstance = (instance) => {
  16389. currentInstance = instance;
  16390. instance.scope.on();
  16391. };
  16392. const unsetCurrentInstance = () => {
  16393. currentInstance && currentInstance.scope.off();
  16394. currentInstance = null;
  16395. };
  16396. const isBuiltInTag = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.makeMap)('slot,component');
  16397. function validateComponentName(name, config) {
  16398. const appIsNativeTag = config.isNativeTag || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NO;
  16399. if (isBuiltInTag(name) || appIsNativeTag(name)) {
  16400. warn('Do not use built-in or reserved HTML elements as component id: ' + name);
  16401. }
  16402. }
  16403. function isStatefulComponent(instance) {
  16404. return instance.vnode.shapeFlag & 4 /* STATEFUL_COMPONENT */;
  16405. }
  16406. let isInSSRComponentSetup = false;
  16407. function setupComponent(instance, isSSR = false) {
  16408. isInSSRComponentSetup = isSSR;
  16409. const { props, children } = instance.vnode;
  16410. const isStateful = isStatefulComponent(instance);
  16411. initProps(instance, props, isStateful, isSSR);
  16412. initSlots(instance, children);
  16413. const setupResult = isStateful
  16414. ? setupStatefulComponent(instance, isSSR)
  16415. : undefined;
  16416. isInSSRComponentSetup = false;
  16417. return setupResult;
  16418. }
  16419. function setupStatefulComponent(instance, isSSR) {
  16420. var _a;
  16421. const Component = instance.type;
  16422. if ((true)) {
  16423. if (Component.name) {
  16424. validateComponentName(Component.name, instance.appContext.config);
  16425. }
  16426. if (Component.components) {
  16427. const names = Object.keys(Component.components);
  16428. for (let i = 0; i < names.length; i++) {
  16429. validateComponentName(names[i], instance.appContext.config);
  16430. }
  16431. }
  16432. if (Component.directives) {
  16433. const names = Object.keys(Component.directives);
  16434. for (let i = 0; i < names.length; i++) {
  16435. validateDirectiveName(names[i]);
  16436. }
  16437. }
  16438. if (Component.compilerOptions && isRuntimeOnly()) {
  16439. warn(`"compilerOptions" is only supported when using a build of Vue that ` +
  16440. `includes the runtime compiler. Since you are using a runtime-only ` +
  16441. `build, the options should be passed via your build tool config instead.`);
  16442. }
  16443. }
  16444. // 0. create render proxy property access cache
  16445. instance.accessCache = Object.create(null);
  16446. // 1. create public instance / render proxy
  16447. // also mark it raw so it's never observed
  16448. instance.proxy = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.markRaw)(new Proxy(instance.ctx, PublicInstanceProxyHandlers));
  16449. if ((true)) {
  16450. exposePropsOnRenderContext(instance);
  16451. }
  16452. // 2. call setup()
  16453. const { setup } = Component;
  16454. if (setup) {
  16455. const setupContext = (instance.setupContext =
  16456. setup.length > 1 ? createSetupContext(instance) : null);
  16457. setCurrentInstance(instance);
  16458. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.pauseTracking)();
  16459. const setupResult = callWithErrorHandling(setup, instance, 0 /* SETUP_FUNCTION */, [( true) ? (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly)(instance.props) : 0, setupContext]);
  16460. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.resetTracking)();
  16461. unsetCurrentInstance();
  16462. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isPromise)(setupResult)) {
  16463. setupResult.then(unsetCurrentInstance, unsetCurrentInstance);
  16464. if (isSSR) {
  16465. // return the promise so server-renderer can wait on it
  16466. return setupResult
  16467. .then((resolvedResult) => {
  16468. handleSetupResult(instance, resolvedResult, isSSR);
  16469. })
  16470. .catch(e => {
  16471. handleError(e, instance, 0 /* SETUP_FUNCTION */);
  16472. });
  16473. }
  16474. else {
  16475. // async setup returned Promise.
  16476. // bail here and wait for re-entry.
  16477. instance.asyncDep = setupResult;
  16478. if (( true) && !instance.suspense) {
  16479. const name = (_a = Component.name) !== null && _a !== void 0 ? _a : 'Anonymous';
  16480. warn(`Component <${name}>: setup function returned a promise, but no ` +
  16481. `<Suspense> boundary was found in the parent component tree. ` +
  16482. `A component with async setup() must be nested in a <Suspense> ` +
  16483. `in order to be rendered.`);
  16484. }
  16485. }
  16486. }
  16487. else {
  16488. handleSetupResult(instance, setupResult, isSSR);
  16489. }
  16490. }
  16491. else {
  16492. finishComponentSetup(instance, isSSR);
  16493. }
  16494. }
  16495. function handleSetupResult(instance, setupResult, isSSR) {
  16496. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(setupResult)) {
  16497. // setup returned an inline render function
  16498. if (instance.type.__ssrInlineRender) {
  16499. // when the function's name is `ssrRender` (compiled by SFC inline mode),
  16500. // set it as ssrRender instead.
  16501. instance.ssrRender = setupResult;
  16502. }
  16503. else {
  16504. instance.render = setupResult;
  16505. }
  16506. }
  16507. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(setupResult)) {
  16508. if (( true) && isVNode(setupResult)) {
  16509. warn(`setup() should not return VNodes directly - ` +
  16510. `return a render function instead.`);
  16511. }
  16512. // setup returned bindings.
  16513. // assuming a render function compiled from template is present.
  16514. if (true) {
  16515. instance.devtoolsRawSetupState = setupResult;
  16516. }
  16517. instance.setupState = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.proxyRefs)(setupResult);
  16518. if ((true)) {
  16519. exposeSetupStateOnRenderContext(instance);
  16520. }
  16521. }
  16522. else if (( true) && setupResult !== undefined) {
  16523. warn(`setup() should return an object. Received: ${setupResult === null ? 'null' : typeof setupResult}`);
  16524. }
  16525. finishComponentSetup(instance, isSSR);
  16526. }
  16527. let compile;
  16528. let installWithProxy;
  16529. /**
  16530. * For runtime-dom to register the compiler.
  16531. * Note the exported method uses any to avoid d.ts relying on the compiler types.
  16532. */
  16533. function registerRuntimeCompiler(_compile) {
  16534. compile = _compile;
  16535. installWithProxy = i => {
  16536. if (i.render._rc) {
  16537. i.withProxy = new Proxy(i.ctx, RuntimeCompiledPublicInstanceProxyHandlers);
  16538. }
  16539. };
  16540. }
  16541. // dev only
  16542. const isRuntimeOnly = () => !compile;
  16543. function finishComponentSetup(instance, isSSR, skipOptions) {
  16544. const Component = instance.type;
  16545. // template / render function normalization
  16546. // could be already set when returned from setup()
  16547. if (!instance.render) {
  16548. // only do on-the-fly compile if not in SSR - SSR on-the-fly compilation
  16549. // is done by server-renderer
  16550. if (!isSSR && compile && !Component.render) {
  16551. const template = Component.template;
  16552. if (template) {
  16553. if ((true)) {
  16554. startMeasure(instance, `compile`);
  16555. }
  16556. const { isCustomElement, compilerOptions } = instance.appContext.config;
  16557. const { delimiters, compilerOptions: componentCompilerOptions } = Component;
  16558. const finalCompilerOptions = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({
  16559. isCustomElement,
  16560. delimiters
  16561. }, compilerOptions), componentCompilerOptions);
  16562. Component.render = compile(template, finalCompilerOptions);
  16563. if ((true)) {
  16564. endMeasure(instance, `compile`);
  16565. }
  16566. }
  16567. }
  16568. instance.render = (Component.render || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP);
  16569. // for runtime-compiled render functions using `with` blocks, the render
  16570. // proxy used needs a different `has` handler which is more performant and
  16571. // also only allows a whitelist of globals to fallthrough.
  16572. if (installWithProxy) {
  16573. installWithProxy(instance);
  16574. }
  16575. }
  16576. // support for 2.x options
  16577. if (true) {
  16578. setCurrentInstance(instance);
  16579. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.pauseTracking)();
  16580. applyOptions(instance);
  16581. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.resetTracking)();
  16582. unsetCurrentInstance();
  16583. }
  16584. // warn missing template/render
  16585. // the runtime compilation of template in SSR is done by server-render
  16586. if (( true) && !Component.render && instance.render === _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP && !isSSR) {
  16587. /* istanbul ignore if */
  16588. if (!compile && Component.template) {
  16589. warn(`Component provided template option but ` +
  16590. `runtime compilation is not supported in this build of Vue.` +
  16591. (` Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".`
  16592. ) /* should not happen */);
  16593. }
  16594. else {
  16595. warn(`Component is missing template or render function.`);
  16596. }
  16597. }
  16598. }
  16599. function createAttrsProxy(instance) {
  16600. return new Proxy(instance.attrs, ( true)
  16601. ? {
  16602. get(target, key) {
  16603. markAttrsAccessed();
  16604. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.track)(instance, "get" /* GET */, '$attrs');
  16605. return target[key];
  16606. },
  16607. set() {
  16608. warn(`setupContext.attrs is readonly.`);
  16609. return false;
  16610. },
  16611. deleteProperty() {
  16612. warn(`setupContext.attrs is readonly.`);
  16613. return false;
  16614. }
  16615. }
  16616. : 0);
  16617. }
  16618. function createSetupContext(instance) {
  16619. const expose = exposed => {
  16620. if (( true) && instance.exposed) {
  16621. warn(`expose() should be called only once per setup().`);
  16622. }
  16623. instance.exposed = exposed || {};
  16624. };
  16625. let attrs;
  16626. if ((true)) {
  16627. // We use getters in dev in case libs like test-utils overwrite instance
  16628. // properties (overwrites should not be done in prod)
  16629. return Object.freeze({
  16630. get attrs() {
  16631. return attrs || (attrs = createAttrsProxy(instance));
  16632. },
  16633. get slots() {
  16634. return (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly)(instance.slots);
  16635. },
  16636. get emit() {
  16637. return (event, ...args) => instance.emit(event, ...args);
  16638. },
  16639. expose
  16640. });
  16641. }
  16642. else {}
  16643. }
  16644. function getExposeProxy(instance) {
  16645. if (instance.exposed) {
  16646. return (instance.exposeProxy ||
  16647. (instance.exposeProxy = new Proxy((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.proxyRefs)((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.markRaw)(instance.exposed)), {
  16648. get(target, key) {
  16649. if (key in target) {
  16650. return target[key];
  16651. }
  16652. else if (key in publicPropertiesMap) {
  16653. return publicPropertiesMap[key](instance);
  16654. }
  16655. }
  16656. })));
  16657. }
  16658. }
  16659. const classifyRE = /(?:^|[-_])(\w)/g;
  16660. const classify = (str) => str.replace(classifyRE, c => c.toUpperCase()).replace(/[-_]/g, '');
  16661. function getComponentName(Component) {
  16662. return (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(Component)
  16663. ? Component.displayName || Component.name
  16664. : Component.name;
  16665. }
  16666. /* istanbul ignore next */
  16667. function formatComponentName(instance, Component, isRoot = false) {
  16668. let name = getComponentName(Component);
  16669. if (!name && Component.__file) {
  16670. const match = Component.__file.match(/([^/\\]+)\.\w+$/);
  16671. if (match) {
  16672. name = match[1];
  16673. }
  16674. }
  16675. if (!name && instance && instance.parent) {
  16676. // try to infer the name based on reverse resolution
  16677. const inferFromRegistry = (registry) => {
  16678. for (const key in registry) {
  16679. if (registry[key] === Component) {
  16680. return key;
  16681. }
  16682. }
  16683. };
  16684. name =
  16685. inferFromRegistry(instance.components ||
  16686. instance.parent.type.components) || inferFromRegistry(instance.appContext.components);
  16687. }
  16688. return name ? classify(name) : isRoot ? `App` : `Anonymous`;
  16689. }
  16690. function isClassComponent(value) {
  16691. return (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(value) && '__vccOpts' in value;
  16692. }
  16693. const computed = ((getterOrOptions, debugOptions) => {
  16694. // @ts-ignore
  16695. return (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.computed)(getterOrOptions, debugOptions, isInSSRComponentSetup);
  16696. });
  16697. // dev only
  16698. const warnRuntimeUsage = (method) => warn(`${method}() is a compiler-hint helper that is only usable inside ` +
  16699. `<script setup> of a single file component. Its arguments should be ` +
  16700. `compiled away and passing it at runtime has no effect.`);
  16701. // implementation
  16702. function defineProps() {
  16703. if ((true)) {
  16704. warnRuntimeUsage(`defineProps`);
  16705. }
  16706. return null;
  16707. }
  16708. // implementation
  16709. function defineEmits() {
  16710. if ((true)) {
  16711. warnRuntimeUsage(`defineEmits`);
  16712. }
  16713. return null;
  16714. }
  16715. /**
  16716. * Vue `<script setup>` compiler macro for declaring a component's exposed
  16717. * instance properties when it is accessed by a parent component via template
  16718. * refs.
  16719. *
  16720. * `<script setup>` components are closed by default - i.e. variables inside
  16721. * the `<script setup>` scope is not exposed to parent unless explicitly exposed
  16722. * via `defineExpose`.
  16723. *
  16724. * This is only usable inside `<script setup>`, is compiled away in the
  16725. * output and should **not** be actually called at runtime.
  16726. */
  16727. function defineExpose(exposed) {
  16728. if ((true)) {
  16729. warnRuntimeUsage(`defineExpose`);
  16730. }
  16731. }
  16732. /**
  16733. * Vue `<script setup>` compiler macro for providing props default values when
  16734. * using type-based `defineProps` declaration.
  16735. *
  16736. * Example usage:
  16737. * ```ts
  16738. * withDefaults(defineProps<{
  16739. * size?: number
  16740. * labels?: string[]
  16741. * }>(), {
  16742. * size: 3,
  16743. * labels: () => ['default label']
  16744. * })
  16745. * ```
  16746. *
  16747. * This is only usable inside `<script setup>`, is compiled away in the output
  16748. * and should **not** be actually called at runtime.
  16749. */
  16750. function withDefaults(props, defaults) {
  16751. if ((true)) {
  16752. warnRuntimeUsage(`withDefaults`);
  16753. }
  16754. return null;
  16755. }
  16756. function useSlots() {
  16757. return getContext().slots;
  16758. }
  16759. function useAttrs() {
  16760. return getContext().attrs;
  16761. }
  16762. function getContext() {
  16763. const i = getCurrentInstance();
  16764. if (( true) && !i) {
  16765. warn(`useContext() called without active instance.`);
  16766. }
  16767. return i.setupContext || (i.setupContext = createSetupContext(i));
  16768. }
  16769. /**
  16770. * Runtime helper for merging default declarations. Imported by compiled code
  16771. * only.
  16772. * @internal
  16773. */
  16774. function mergeDefaults(raw, defaults) {
  16775. const props = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(raw)
  16776. ? raw.reduce((normalized, p) => ((normalized[p] = {}), normalized), {})
  16777. : raw;
  16778. for (const key in defaults) {
  16779. const opt = props[key];
  16780. if (opt) {
  16781. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(opt) || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(opt)) {
  16782. props[key] = { type: opt, default: defaults[key] };
  16783. }
  16784. else {
  16785. opt.default = defaults[key];
  16786. }
  16787. }
  16788. else if (opt === null) {
  16789. props[key] = { default: defaults[key] };
  16790. }
  16791. else if ((true)) {
  16792. warn(`props default key "${key}" has no corresponding declaration.`);
  16793. }
  16794. }
  16795. return props;
  16796. }
  16797. /**
  16798. * Used to create a proxy for the rest element when destructuring props with
  16799. * defineProps().
  16800. * @internal
  16801. */
  16802. function createPropsRestProxy(props, excludedKeys) {
  16803. const ret = {};
  16804. for (const key in props) {
  16805. if (!excludedKeys.includes(key)) {
  16806. Object.defineProperty(ret, key, {
  16807. enumerable: true,
  16808. get: () => props[key]
  16809. });
  16810. }
  16811. }
  16812. return ret;
  16813. }
  16814. /**
  16815. * `<script setup>` helper for persisting the current instance context over
  16816. * async/await flows.
  16817. *
  16818. * `@vue/compiler-sfc` converts the following:
  16819. *
  16820. * ```ts
  16821. * const x = await foo()
  16822. * ```
  16823. *
  16824. * into:
  16825. *
  16826. * ```ts
  16827. * let __temp, __restore
  16828. * const x = (([__temp, __restore] = withAsyncContext(() => foo())),__temp=await __temp,__restore(),__temp)
  16829. * ```
  16830. * @internal
  16831. */
  16832. function withAsyncContext(getAwaitable) {
  16833. const ctx = getCurrentInstance();
  16834. if (( true) && !ctx) {
  16835. warn(`withAsyncContext called without active current instance. ` +
  16836. `This is likely a bug.`);
  16837. }
  16838. let awaitable = getAwaitable();
  16839. unsetCurrentInstance();
  16840. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isPromise)(awaitable)) {
  16841. awaitable = awaitable.catch(e => {
  16842. setCurrentInstance(ctx);
  16843. throw e;
  16844. });
  16845. }
  16846. return [awaitable, () => setCurrentInstance(ctx)];
  16847. }
  16848. // Actual implementation
  16849. function h(type, propsOrChildren, children) {
  16850. const l = arguments.length;
  16851. if (l === 2) {
  16852. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(propsOrChildren) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(propsOrChildren)) {
  16853. // single vnode without props
  16854. if (isVNode(propsOrChildren)) {
  16855. return createVNode(type, null, [propsOrChildren]);
  16856. }
  16857. // props without children
  16858. return createVNode(type, propsOrChildren);
  16859. }
  16860. else {
  16861. // omit props
  16862. return createVNode(type, null, propsOrChildren);
  16863. }
  16864. }
  16865. else {
  16866. if (l > 3) {
  16867. children = Array.prototype.slice.call(arguments, 2);
  16868. }
  16869. else if (l === 3 && isVNode(children)) {
  16870. children = [children];
  16871. }
  16872. return createVNode(type, propsOrChildren, children);
  16873. }
  16874. }
  16875. const ssrContextKey = Symbol(( true) ? `ssrContext` : 0);
  16876. const useSSRContext = () => {
  16877. {
  16878. const ctx = inject(ssrContextKey);
  16879. if (!ctx) {
  16880. warn(`Server rendering context not provided. Make sure to only call ` +
  16881. `useSSRContext() conditionally in the server build.`);
  16882. }
  16883. return ctx;
  16884. }
  16885. };
  16886. function isShallow(value) {
  16887. return !!(value && value["__v_isShallow" /* IS_SHALLOW */]);
  16888. }
  16889. function initCustomFormatter() {
  16890. /* eslint-disable no-restricted-globals */
  16891. if ( false || typeof window === 'undefined') {
  16892. return;
  16893. }
  16894. const vueStyle = { style: 'color:#3ba776' };
  16895. const numberStyle = { style: 'color:#0b1bc9' };
  16896. const stringStyle = { style: 'color:#b62e24' };
  16897. const keywordStyle = { style: 'color:#9d288c' };
  16898. // custom formatter for Chrome
  16899. // https://www.mattzeunert.com/2016/02/19/custom-chrome-devtools-object-formatters.html
  16900. const formatter = {
  16901. header(obj) {
  16902. // TODO also format ComponentPublicInstance & ctx.slots/attrs in setup
  16903. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(obj)) {
  16904. return null;
  16905. }
  16906. if (obj.__isVue) {
  16907. return ['div', vueStyle, `VueInstance`];
  16908. }
  16909. else if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(obj)) {
  16910. return [
  16911. 'div',
  16912. {},
  16913. ['span', vueStyle, genRefFlag(obj)],
  16914. '<',
  16915. formatValue(obj.value),
  16916. `>`
  16917. ];
  16918. }
  16919. else if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReactive)(obj)) {
  16920. return [
  16921. 'div',
  16922. {},
  16923. ['span', vueStyle, isShallow(obj) ? 'ShallowReactive' : 'Reactive'],
  16924. '<',
  16925. formatValue(obj),
  16926. `>${(0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReadonly)(obj) ? ` (readonly)` : ``}`
  16927. ];
  16928. }
  16929. else if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReadonly)(obj)) {
  16930. return [
  16931. 'div',
  16932. {},
  16933. ['span', vueStyle, isShallow(obj) ? 'ShallowReadonly' : 'Readonly'],
  16934. '<',
  16935. formatValue(obj),
  16936. '>'
  16937. ];
  16938. }
  16939. return null;
  16940. },
  16941. hasBody(obj) {
  16942. return obj && obj.__isVue;
  16943. },
  16944. body(obj) {
  16945. if (obj && obj.__isVue) {
  16946. return [
  16947. 'div',
  16948. {},
  16949. ...formatInstance(obj.$)
  16950. ];
  16951. }
  16952. }
  16953. };
  16954. function formatInstance(instance) {
  16955. const blocks = [];
  16956. if (instance.type.props && instance.props) {
  16957. blocks.push(createInstanceBlock('props', (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(instance.props)));
  16958. }
  16959. if (instance.setupState !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ) {
  16960. blocks.push(createInstanceBlock('setup', instance.setupState));
  16961. }
  16962. if (instance.data !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ) {
  16963. blocks.push(createInstanceBlock('data', (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(instance.data)));
  16964. }
  16965. const computed = extractKeys(instance, 'computed');
  16966. if (computed) {
  16967. blocks.push(createInstanceBlock('computed', computed));
  16968. }
  16969. const injected = extractKeys(instance, 'inject');
  16970. if (injected) {
  16971. blocks.push(createInstanceBlock('injected', injected));
  16972. }
  16973. blocks.push([
  16974. 'div',
  16975. {},
  16976. [
  16977. 'span',
  16978. {
  16979. style: keywordStyle.style + ';opacity:0.66'
  16980. },
  16981. '$ (internal): '
  16982. ],
  16983. ['object', { object: instance }]
  16984. ]);
  16985. return blocks;
  16986. }
  16987. function createInstanceBlock(type, target) {
  16988. target = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, target);
  16989. if (!Object.keys(target).length) {
  16990. return ['span', {}];
  16991. }
  16992. return [
  16993. 'div',
  16994. { style: 'line-height:1.25em;margin-bottom:0.6em' },
  16995. [
  16996. 'div',
  16997. {
  16998. style: 'color:#476582'
  16999. },
  17000. type
  17001. ],
  17002. [
  17003. 'div',
  17004. {
  17005. style: 'padding-left:1.25em'
  17006. },
  17007. ...Object.keys(target).map(key => {
  17008. return [
  17009. 'div',
  17010. {},
  17011. ['span', keywordStyle, key + ': '],
  17012. formatValue(target[key], false)
  17013. ];
  17014. })
  17015. ]
  17016. ];
  17017. }
  17018. function formatValue(v, asRaw = true) {
  17019. if (typeof v === 'number') {
  17020. return ['span', numberStyle, v];
  17021. }
  17022. else if (typeof v === 'string') {
  17023. return ['span', stringStyle, JSON.stringify(v)];
  17024. }
  17025. else if (typeof v === 'boolean') {
  17026. return ['span', keywordStyle, v];
  17027. }
  17028. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(v)) {
  17029. return ['object', { object: asRaw ? (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(v) : v }];
  17030. }
  17031. else {
  17032. return ['span', stringStyle, String(v)];
  17033. }
  17034. }
  17035. function extractKeys(instance, type) {
  17036. const Comp = instance.type;
  17037. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(Comp)) {
  17038. return;
  17039. }
  17040. const extracted = {};
  17041. for (const key in instance.ctx) {
  17042. if (isKeyOfType(Comp, key, type)) {
  17043. extracted[key] = instance.ctx[key];
  17044. }
  17045. }
  17046. return extracted;
  17047. }
  17048. function isKeyOfType(Comp, key, type) {
  17049. const opts = Comp[type];
  17050. if (((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(opts) && opts.includes(key)) ||
  17051. ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(opts) && key in opts)) {
  17052. return true;
  17053. }
  17054. if (Comp.extends && isKeyOfType(Comp.extends, key, type)) {
  17055. return true;
  17056. }
  17057. if (Comp.mixins && Comp.mixins.some(m => isKeyOfType(m, key, type))) {
  17058. return true;
  17059. }
  17060. }
  17061. function genRefFlag(v) {
  17062. if (isShallow(v)) {
  17063. return `ShallowRef`;
  17064. }
  17065. if (v.effect) {
  17066. return `ComputedRef`;
  17067. }
  17068. return `Ref`;
  17069. }
  17070. if (window.devtoolsFormatters) {
  17071. window.devtoolsFormatters.push(formatter);
  17072. }
  17073. else {
  17074. window.devtoolsFormatters = [formatter];
  17075. }
  17076. }
  17077. function withMemo(memo, render, cache, index) {
  17078. const cached = cache[index];
  17079. if (cached && isMemoSame(cached, memo)) {
  17080. return cached;
  17081. }
  17082. const ret = render();
  17083. // shallow clone
  17084. ret.memo = memo.slice();
  17085. return (cache[index] = ret);
  17086. }
  17087. function isMemoSame(cached, memo) {
  17088. const prev = cached.memo;
  17089. if (prev.length != memo.length) {
  17090. return false;
  17091. }
  17092. for (let i = 0; i < prev.length; i++) {
  17093. if (prev[i] !== memo[i]) {
  17094. return false;
  17095. }
  17096. }
  17097. // make sure to let parent block track it when returning cached
  17098. if (isBlockTreeEnabled > 0 && currentBlock) {
  17099. currentBlock.push(cached);
  17100. }
  17101. return true;
  17102. }
  17103. // Core API ------------------------------------------------------------------
  17104. const version = "3.2.33";
  17105. const _ssrUtils = {
  17106. createComponentInstance,
  17107. setupComponent,
  17108. renderComponentRoot,
  17109. setCurrentRenderingInstance,
  17110. isVNode,
  17111. normalizeVNode
  17112. };
  17113. /**
  17114. * SSR utils for \@vue/server-renderer. Only exposed in cjs builds.
  17115. * @internal
  17116. */
  17117. const ssrUtils = (_ssrUtils );
  17118. /**
  17119. * @internal only exposed in compat builds
  17120. */
  17121. const resolveFilter = null;
  17122. /**
  17123. * @internal only exposed in compat builds.
  17124. */
  17125. const compatUtils = (null);
  17126. /***/ }),
  17127. /***/ "./node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js":
  17128. /*!***********************************************************************!*\
  17129. !*** ./node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js ***!
  17130. \***********************************************************************/
  17131. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  17132. "use strict";
  17133. __webpack_require__.r(__webpack_exports__);
  17134. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  17135. /* harmony export */ "BaseTransition": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.BaseTransition),
  17136. /* harmony export */ "Comment": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Comment),
  17137. /* harmony export */ "EffectScope": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.EffectScope),
  17138. /* harmony export */ "Fragment": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Fragment),
  17139. /* harmony export */ "KeepAlive": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.KeepAlive),
  17140. /* harmony export */ "ReactiveEffect": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.ReactiveEffect),
  17141. /* harmony export */ "Static": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Static),
  17142. /* harmony export */ "Suspense": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Suspense),
  17143. /* harmony export */ "Teleport": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Teleport),
  17144. /* harmony export */ "Text": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Text),
  17145. /* harmony export */ "Transition": () => (/* binding */ Transition),
  17146. /* harmony export */ "TransitionGroup": () => (/* binding */ TransitionGroup),
  17147. /* harmony export */ "VueElement": () => (/* binding */ VueElement),
  17148. /* harmony export */ "callWithAsyncErrorHandling": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.callWithAsyncErrorHandling),
  17149. /* harmony export */ "callWithErrorHandling": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.callWithErrorHandling),
  17150. /* harmony export */ "camelize": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.camelize),
  17151. /* harmony export */ "capitalize": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.capitalize),
  17152. /* harmony export */ "cloneVNode": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.cloneVNode),
  17153. /* harmony export */ "compatUtils": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.compatUtils),
  17154. /* harmony export */ "computed": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.computed),
  17155. /* harmony export */ "createApp": () => (/* binding */ createApp),
  17156. /* harmony export */ "createBlock": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createBlock),
  17157. /* harmony export */ "createCommentVNode": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode),
  17158. /* harmony export */ "createElementBlock": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createElementBlock),
  17159. /* harmony export */ "createElementVNode": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createElementVNode),
  17160. /* harmony export */ "createHydrationRenderer": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createHydrationRenderer),
  17161. /* harmony export */ "createPropsRestProxy": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createPropsRestProxy),
  17162. /* harmony export */ "createRenderer": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createRenderer),
  17163. /* harmony export */ "createSSRApp": () => (/* binding */ createSSRApp),
  17164. /* harmony export */ "createSlots": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createSlots),
  17165. /* harmony export */ "createStaticVNode": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createStaticVNode),
  17166. /* harmony export */ "createTextVNode": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createTextVNode),
  17167. /* harmony export */ "createVNode": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createVNode),
  17168. /* harmony export */ "customRef": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.customRef),
  17169. /* harmony export */ "defineAsyncComponent": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineAsyncComponent),
  17170. /* harmony export */ "defineComponent": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineComponent),
  17171. /* harmony export */ "defineCustomElement": () => (/* binding */ defineCustomElement),
  17172. /* harmony export */ "defineEmits": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineEmits),
  17173. /* harmony export */ "defineExpose": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineExpose),
  17174. /* harmony export */ "defineProps": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineProps),
  17175. /* harmony export */ "defineSSRCustomElement": () => (/* binding */ defineSSRCustomElement),
  17176. /* harmony export */ "devtools": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.devtools),
  17177. /* harmony export */ "effect": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.effect),
  17178. /* harmony export */ "effectScope": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.effectScope),
  17179. /* harmony export */ "getCurrentInstance": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance),
  17180. /* harmony export */ "getCurrentScope": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getCurrentScope),
  17181. /* harmony export */ "getTransitionRawChildren": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getTransitionRawChildren),
  17182. /* harmony export */ "guardReactiveProps": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.guardReactiveProps),
  17183. /* harmony export */ "h": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.h),
  17184. /* harmony export */ "handleError": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.handleError),
  17185. /* harmony export */ "hydrate": () => (/* binding */ hydrate),
  17186. /* harmony export */ "initCustomFormatter": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.initCustomFormatter),
  17187. /* harmony export */ "initDirectivesForSSR": () => (/* binding */ initDirectivesForSSR),
  17188. /* harmony export */ "inject": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.inject),
  17189. /* harmony export */ "isMemoSame": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isMemoSame),
  17190. /* harmony export */ "isProxy": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isProxy),
  17191. /* harmony export */ "isReactive": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isReactive),
  17192. /* harmony export */ "isReadonly": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isReadonly),
  17193. /* harmony export */ "isRef": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isRef),
  17194. /* harmony export */ "isRuntimeOnly": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isRuntimeOnly),
  17195. /* harmony export */ "isShallow": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isShallow),
  17196. /* harmony export */ "isVNode": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isVNode),
  17197. /* harmony export */ "markRaw": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.markRaw),
  17198. /* harmony export */ "mergeDefaults": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.mergeDefaults),
  17199. /* harmony export */ "mergeProps": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.mergeProps),
  17200. /* harmony export */ "nextTick": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.nextTick),
  17201. /* harmony export */ "normalizeClass": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.normalizeClass),
  17202. /* harmony export */ "normalizeProps": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.normalizeProps),
  17203. /* harmony export */ "normalizeStyle": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.normalizeStyle),
  17204. /* harmony export */ "onActivated": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onActivated),
  17205. /* harmony export */ "onBeforeMount": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onBeforeMount),
  17206. /* harmony export */ "onBeforeUnmount": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onBeforeUnmount),
  17207. /* harmony export */ "onBeforeUpdate": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onBeforeUpdate),
  17208. /* harmony export */ "onDeactivated": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onDeactivated),
  17209. /* harmony export */ "onErrorCaptured": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onErrorCaptured),
  17210. /* harmony export */ "onMounted": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onMounted),
  17211. /* harmony export */ "onRenderTracked": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onRenderTracked),
  17212. /* harmony export */ "onRenderTriggered": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onRenderTriggered),
  17213. /* harmony export */ "onScopeDispose": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onScopeDispose),
  17214. /* harmony export */ "onServerPrefetch": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onServerPrefetch),
  17215. /* harmony export */ "onUnmounted": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onUnmounted),
  17216. /* harmony export */ "onUpdated": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onUpdated),
  17217. /* harmony export */ "openBlock": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.openBlock),
  17218. /* harmony export */ "popScopeId": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.popScopeId),
  17219. /* harmony export */ "provide": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.provide),
  17220. /* harmony export */ "proxyRefs": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.proxyRefs),
  17221. /* harmony export */ "pushScopeId": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.pushScopeId),
  17222. /* harmony export */ "queuePostFlushCb": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.queuePostFlushCb),
  17223. /* harmony export */ "reactive": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.reactive),
  17224. /* harmony export */ "readonly": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.readonly),
  17225. /* harmony export */ "ref": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.ref),
  17226. /* harmony export */ "registerRuntimeCompiler": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.registerRuntimeCompiler),
  17227. /* harmony export */ "render": () => (/* binding */ render),
  17228. /* harmony export */ "renderList": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.renderList),
  17229. /* harmony export */ "renderSlot": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.renderSlot),
  17230. /* harmony export */ "resolveComponent": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveComponent),
  17231. /* harmony export */ "resolveDirective": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveDirective),
  17232. /* harmony export */ "resolveDynamicComponent": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveDynamicComponent),
  17233. /* harmony export */ "resolveFilter": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveFilter),
  17234. /* harmony export */ "resolveTransitionHooks": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveTransitionHooks),
  17235. /* harmony export */ "setBlockTracking": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.setBlockTracking),
  17236. /* harmony export */ "setDevtoolsHook": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.setDevtoolsHook),
  17237. /* harmony export */ "setTransitionHooks": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.setTransitionHooks),
  17238. /* harmony export */ "shallowReactive": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.shallowReactive),
  17239. /* harmony export */ "shallowReadonly": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly),
  17240. /* harmony export */ "shallowRef": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.shallowRef),
  17241. /* harmony export */ "ssrContextKey": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.ssrContextKey),
  17242. /* harmony export */ "ssrUtils": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.ssrUtils),
  17243. /* harmony export */ "stop": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.stop),
  17244. /* harmony export */ "toDisplayString": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.toDisplayString),
  17245. /* harmony export */ "toHandlerKey": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.toHandlerKey),
  17246. /* harmony export */ "toHandlers": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.toHandlers),
  17247. /* harmony export */ "toRaw": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.toRaw),
  17248. /* harmony export */ "toRef": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.toRef),
  17249. /* harmony export */ "toRefs": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.toRefs),
  17250. /* harmony export */ "transformVNodeArgs": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.transformVNodeArgs),
  17251. /* harmony export */ "triggerRef": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.triggerRef),
  17252. /* harmony export */ "unref": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.unref),
  17253. /* harmony export */ "useAttrs": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.useAttrs),
  17254. /* harmony export */ "useCssModule": () => (/* binding */ useCssModule),
  17255. /* harmony export */ "useCssVars": () => (/* binding */ useCssVars),
  17256. /* harmony export */ "useSSRContext": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.useSSRContext),
  17257. /* harmony export */ "useSlots": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.useSlots),
  17258. /* harmony export */ "useTransitionState": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.useTransitionState),
  17259. /* harmony export */ "vModelCheckbox": () => (/* binding */ vModelCheckbox),
  17260. /* harmony export */ "vModelDynamic": () => (/* binding */ vModelDynamic),
  17261. /* harmony export */ "vModelRadio": () => (/* binding */ vModelRadio),
  17262. /* harmony export */ "vModelSelect": () => (/* binding */ vModelSelect),
  17263. /* harmony export */ "vModelText": () => (/* binding */ vModelText),
  17264. /* harmony export */ "vShow": () => (/* binding */ vShow),
  17265. /* harmony export */ "version": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.version),
  17266. /* harmony export */ "warn": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn),
  17267. /* harmony export */ "watch": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.watch),
  17268. /* harmony export */ "watchEffect": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.watchEffect),
  17269. /* harmony export */ "watchPostEffect": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.watchPostEffect),
  17270. /* harmony export */ "watchSyncEffect": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.watchSyncEffect),
  17271. /* harmony export */ "withAsyncContext": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.withAsyncContext),
  17272. /* harmony export */ "withCtx": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.withCtx),
  17273. /* harmony export */ "withDefaults": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.withDefaults),
  17274. /* harmony export */ "withDirectives": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.withDirectives),
  17275. /* harmony export */ "withKeys": () => (/* binding */ withKeys),
  17276. /* harmony export */ "withMemo": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.withMemo),
  17277. /* harmony export */ "withModifiers": () => (/* binding */ withModifiers),
  17278. /* harmony export */ "withScopeId": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.withScopeId)
  17279. /* harmony export */ });
  17280. /* harmony import */ var _vue_shared__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @vue/shared */ "./node_modules/@vue/shared/dist/shared.esm-bundler.js");
  17281. /* harmony import */ var _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vue/runtime-core */ "./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js");
  17282. /* harmony import */ var _vue_runtime_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @vue/runtime-core */ "./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js");
  17283. const svgNS = 'http://www.w3.org/2000/svg';
  17284. const doc = (typeof document !== 'undefined' ? document : null);
  17285. const templateContainer = doc && /*#__PURE__*/ doc.createElement('template');
  17286. const nodeOps = {
  17287. insert: (child, parent, anchor) => {
  17288. parent.insertBefore(child, anchor || null);
  17289. },
  17290. remove: child => {
  17291. const parent = child.parentNode;
  17292. if (parent) {
  17293. parent.removeChild(child);
  17294. }
  17295. },
  17296. createElement: (tag, isSVG, is, props) => {
  17297. const el = isSVG
  17298. ? doc.createElementNS(svgNS, tag)
  17299. : doc.createElement(tag, is ? { is } : undefined);
  17300. if (tag === 'select' && props && props.multiple != null) {
  17301. el.setAttribute('multiple', props.multiple);
  17302. }
  17303. return el;
  17304. },
  17305. createText: text => doc.createTextNode(text),
  17306. createComment: text => doc.createComment(text),
  17307. setText: (node, text) => {
  17308. node.nodeValue = text;
  17309. },
  17310. setElementText: (el, text) => {
  17311. el.textContent = text;
  17312. },
  17313. parentNode: node => node.parentNode,
  17314. nextSibling: node => node.nextSibling,
  17315. querySelector: selector => doc.querySelector(selector),
  17316. setScopeId(el, id) {
  17317. el.setAttribute(id, '');
  17318. },
  17319. cloneNode(el) {
  17320. const cloned = el.cloneNode(true);
  17321. // #3072
  17322. // - in `patchDOMProp`, we store the actual value in the `el._value` property.
  17323. // - normally, elements using `:value` bindings will not be hoisted, but if
  17324. // the bound value is a constant, e.g. `:value="true"` - they do get
  17325. // hoisted.
  17326. // - in production, hoisted nodes are cloned when subsequent inserts, but
  17327. // cloneNode() does not copy the custom property we attached.
  17328. // - This may need to account for other custom DOM properties we attach to
  17329. // elements in addition to `_value` in the future.
  17330. if (`_value` in el) {
  17331. cloned._value = el._value;
  17332. }
  17333. return cloned;
  17334. },
  17335. // __UNSAFE__
  17336. // Reason: innerHTML.
  17337. // Static content here can only come from compiled templates.
  17338. // As long as the user only uses trusted templates, this is safe.
  17339. insertStaticContent(content, parent, anchor, isSVG, start, end) {
  17340. // <parent> before | first ... last | anchor </parent>
  17341. const before = anchor ? anchor.previousSibling : parent.lastChild;
  17342. // #5308 can only take cached path if:
  17343. // - has a single root node
  17344. // - nextSibling info is still available
  17345. if (start && (start === end || start.nextSibling)) {
  17346. // cached
  17347. while (true) {
  17348. parent.insertBefore(start.cloneNode(true), anchor);
  17349. if (start === end || !(start = start.nextSibling))
  17350. break;
  17351. }
  17352. }
  17353. else {
  17354. // fresh insert
  17355. templateContainer.innerHTML = isSVG ? `<svg>${content}</svg>` : content;
  17356. const template = templateContainer.content;
  17357. if (isSVG) {
  17358. // remove outer svg wrapper
  17359. const wrapper = template.firstChild;
  17360. while (wrapper.firstChild) {
  17361. template.appendChild(wrapper.firstChild);
  17362. }
  17363. template.removeChild(wrapper);
  17364. }
  17365. parent.insertBefore(template, anchor);
  17366. }
  17367. return [
  17368. // first
  17369. before ? before.nextSibling : parent.firstChild,
  17370. // last
  17371. anchor ? anchor.previousSibling : parent.lastChild
  17372. ];
  17373. }
  17374. };
  17375. // compiler should normalize class + :class bindings on the same element
  17376. // into a single binding ['staticClass', dynamic]
  17377. function patchClass(el, value, isSVG) {
  17378. // directly setting className should be faster than setAttribute in theory
  17379. // if this is an element during a transition, take the temporary transition
  17380. // classes into account.
  17381. const transitionClasses = el._vtc;
  17382. if (transitionClasses) {
  17383. value = (value ? [value, ...transitionClasses] : [...transitionClasses]).join(' ');
  17384. }
  17385. if (value == null) {
  17386. el.removeAttribute('class');
  17387. }
  17388. else if (isSVG) {
  17389. el.setAttribute('class', value);
  17390. }
  17391. else {
  17392. el.className = value;
  17393. }
  17394. }
  17395. function patchStyle(el, prev, next) {
  17396. const style = el.style;
  17397. const isCssString = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(next);
  17398. if (next && !isCssString) {
  17399. for (const key in next) {
  17400. setStyle(style, key, next[key]);
  17401. }
  17402. if (prev && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(prev)) {
  17403. for (const key in prev) {
  17404. if (next[key] == null) {
  17405. setStyle(style, key, '');
  17406. }
  17407. }
  17408. }
  17409. }
  17410. else {
  17411. const currentDisplay = style.display;
  17412. if (isCssString) {
  17413. if (prev !== next) {
  17414. style.cssText = next;
  17415. }
  17416. }
  17417. else if (prev) {
  17418. el.removeAttribute('style');
  17419. }
  17420. // indicates that the `display` of the element is controlled by `v-show`,
  17421. // so we always keep the current `display` value regardless of the `style`
  17422. // value, thus handing over control to `v-show`.
  17423. if ('_vod' in el) {
  17424. style.display = currentDisplay;
  17425. }
  17426. }
  17427. }
  17428. const importantRE = /\s*!important$/;
  17429. function setStyle(style, name, val) {
  17430. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(val)) {
  17431. val.forEach(v => setStyle(style, name, v));
  17432. }
  17433. else {
  17434. if (val == null)
  17435. val = '';
  17436. if (name.startsWith('--')) {
  17437. // custom property definition
  17438. style.setProperty(name, val);
  17439. }
  17440. else {
  17441. const prefixed = autoPrefix(style, name);
  17442. if (importantRE.test(val)) {
  17443. // !important
  17444. style.setProperty((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(prefixed), val.replace(importantRE, ''), 'important');
  17445. }
  17446. else {
  17447. style[prefixed] = val;
  17448. }
  17449. }
  17450. }
  17451. }
  17452. const prefixes = ['Webkit', 'Moz', 'ms'];
  17453. const prefixCache = {};
  17454. function autoPrefix(style, rawName) {
  17455. const cached = prefixCache[rawName];
  17456. if (cached) {
  17457. return cached;
  17458. }
  17459. let name = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(rawName);
  17460. if (name !== 'filter' && name in style) {
  17461. return (prefixCache[rawName] = name);
  17462. }
  17463. name = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.capitalize)(name);
  17464. for (let i = 0; i < prefixes.length; i++) {
  17465. const prefixed = prefixes[i] + name;
  17466. if (prefixed in style) {
  17467. return (prefixCache[rawName] = prefixed);
  17468. }
  17469. }
  17470. return rawName;
  17471. }
  17472. const xlinkNS = 'http://www.w3.org/1999/xlink';
  17473. function patchAttr(el, key, value, isSVG, instance) {
  17474. if (isSVG && key.startsWith('xlink:')) {
  17475. if (value == null) {
  17476. el.removeAttributeNS(xlinkNS, key.slice(6, key.length));
  17477. }
  17478. else {
  17479. el.setAttributeNS(xlinkNS, key, value);
  17480. }
  17481. }
  17482. else {
  17483. // note we are only checking boolean attributes that don't have a
  17484. // corresponding dom prop of the same name here.
  17485. const isBoolean = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSpecialBooleanAttr)(key);
  17486. if (value == null || (isBoolean && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.includeBooleanAttr)(value))) {
  17487. el.removeAttribute(key);
  17488. }
  17489. else {
  17490. el.setAttribute(key, isBoolean ? '' : value);
  17491. }
  17492. }
  17493. }
  17494. // __UNSAFE__
  17495. // functions. The user is responsible for using them with only trusted content.
  17496. function patchDOMProp(el, key, value,
  17497. // the following args are passed only due to potential innerHTML/textContent
  17498. // overriding existing VNodes, in which case the old tree must be properly
  17499. // unmounted.
  17500. prevChildren, parentComponent, parentSuspense, unmountChildren) {
  17501. if (key === 'innerHTML' || key === 'textContent') {
  17502. if (prevChildren) {
  17503. unmountChildren(prevChildren, parentComponent, parentSuspense);
  17504. }
  17505. el[key] = value == null ? '' : value;
  17506. return;
  17507. }
  17508. if (key === 'value' &&
  17509. el.tagName !== 'PROGRESS' &&
  17510. // custom elements may use _value internally
  17511. !el.tagName.includes('-')) {
  17512. // store value as _value as well since
  17513. // non-string values will be stringified.
  17514. el._value = value;
  17515. const newValue = value == null ? '' : value;
  17516. if (el.value !== newValue ||
  17517. // #4956: always set for OPTION elements because its value falls back to
  17518. // textContent if no value attribute is present. And setting .value for
  17519. // OPTION has no side effect
  17520. el.tagName === 'OPTION') {
  17521. el.value = newValue;
  17522. }
  17523. if (value == null) {
  17524. el.removeAttribute(key);
  17525. }
  17526. return;
  17527. }
  17528. let needRemove = false;
  17529. if (value === '' || value == null) {
  17530. const type = typeof el[key];
  17531. if (type === 'boolean') {
  17532. // e.g. <select multiple> compiles to { multiple: '' }
  17533. value = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.includeBooleanAttr)(value);
  17534. }
  17535. else if (value == null && type === 'string') {
  17536. // e.g. <div :id="null">
  17537. value = '';
  17538. needRemove = true;
  17539. }
  17540. else if (type === 'number') {
  17541. // e.g. <img :width="null">
  17542. // the value of some IDL attr must be greater than 0, e.g. input.size = 0 -> error
  17543. value = 0;
  17544. needRemove = true;
  17545. }
  17546. }
  17547. // some properties perform value validation and throw,
  17548. // some properties has getter, no setter, will error in 'use strict'
  17549. // eg. <select :type="null"></select> <select :willValidate="null"></select>
  17550. try {
  17551. el[key] = value;
  17552. }
  17553. catch (e) {
  17554. if ((true)) {
  17555. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`Failed setting prop "${key}" on <${el.tagName.toLowerCase()}>: ` +
  17556. `value ${value} is invalid.`, e);
  17557. }
  17558. }
  17559. needRemove && el.removeAttribute(key);
  17560. }
  17561. // Async edge case fix requires storing an event listener's attach timestamp.
  17562. const [_getNow, skipTimestampCheck] = /*#__PURE__*/ (() => {
  17563. let _getNow = Date.now;
  17564. let skipTimestampCheck = false;
  17565. if (typeof window !== 'undefined') {
  17566. // Determine what event timestamp the browser is using. Annoyingly, the
  17567. // timestamp can either be hi-res (relative to page load) or low-res
  17568. // (relative to UNIX epoch), so in order to compare time we have to use the
  17569. // same timestamp type when saving the flush timestamp.
  17570. if (Date.now() > document.createEvent('Event').timeStamp) {
  17571. // if the low-res timestamp which is bigger than the event timestamp
  17572. // (which is evaluated AFTER) it means the event is using a hi-res timestamp,
  17573. // and we need to use the hi-res version for event listeners as well.
  17574. _getNow = () => performance.now();
  17575. }
  17576. // #3485: Firefox <= 53 has incorrect Event.timeStamp implementation
  17577. // and does not fire microtasks in between event propagation, so safe to exclude.
  17578. const ffMatch = navigator.userAgent.match(/firefox\/(\d+)/i);
  17579. skipTimestampCheck = !!(ffMatch && Number(ffMatch[1]) <= 53);
  17580. }
  17581. return [_getNow, skipTimestampCheck];
  17582. })();
  17583. // To avoid the overhead of repeatedly calling performance.now(), we cache
  17584. // and use the same timestamp for all event listeners attached in the same tick.
  17585. let cachedNow = 0;
  17586. const p = /*#__PURE__*/ Promise.resolve();
  17587. const reset = () => {
  17588. cachedNow = 0;
  17589. };
  17590. const getNow = () => cachedNow || (p.then(reset), (cachedNow = _getNow()));
  17591. function addEventListener(el, event, handler, options) {
  17592. el.addEventListener(event, handler, options);
  17593. }
  17594. function removeEventListener(el, event, handler, options) {
  17595. el.removeEventListener(event, handler, options);
  17596. }
  17597. function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
  17598. // vei = vue event invokers
  17599. const invokers = el._vei || (el._vei = {});
  17600. const existingInvoker = invokers[rawName];
  17601. if (nextValue && existingInvoker) {
  17602. // patch
  17603. existingInvoker.value = nextValue;
  17604. }
  17605. else {
  17606. const [name, options] = parseName(rawName);
  17607. if (nextValue) {
  17608. // add
  17609. const invoker = (invokers[rawName] = createInvoker(nextValue, instance));
  17610. addEventListener(el, name, invoker, options);
  17611. }
  17612. else if (existingInvoker) {
  17613. // remove
  17614. removeEventListener(el, name, existingInvoker, options);
  17615. invokers[rawName] = undefined;
  17616. }
  17617. }
  17618. }
  17619. const optionsModifierRE = /(?:Once|Passive|Capture)$/;
  17620. function parseName(name) {
  17621. let options;
  17622. if (optionsModifierRE.test(name)) {
  17623. options = {};
  17624. let m;
  17625. while ((m = name.match(optionsModifierRE))) {
  17626. name = name.slice(0, name.length - m[0].length);
  17627. options[m[0].toLowerCase()] = true;
  17628. }
  17629. }
  17630. return [(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(name.slice(2)), options];
  17631. }
  17632. function createInvoker(initialValue, instance) {
  17633. const invoker = (e) => {
  17634. // async edge case #6566: inner click event triggers patch, event handler
  17635. // attached to outer element during patch, and triggered again. This
  17636. // happens because browsers fire microtask ticks between event propagation.
  17637. // the solution is simple: we save the timestamp when a handler is attached,
  17638. // and the handler would only fire if the event passed to it was fired
  17639. // AFTER it was attached.
  17640. const timeStamp = e.timeStamp || _getNow();
  17641. if (skipTimestampCheck || timeStamp >= invoker.attached - 1) {
  17642. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.callWithAsyncErrorHandling)(patchStopImmediatePropagation(e, invoker.value), instance, 5 /* NATIVE_EVENT_HANDLER */, [e]);
  17643. }
  17644. };
  17645. invoker.value = initialValue;
  17646. invoker.attached = getNow();
  17647. return invoker;
  17648. }
  17649. function patchStopImmediatePropagation(e, value) {
  17650. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(value)) {
  17651. const originalStop = e.stopImmediatePropagation;
  17652. e.stopImmediatePropagation = () => {
  17653. originalStop.call(e);
  17654. e._stopped = true;
  17655. };
  17656. return value.map(fn => (e) => !e._stopped && fn && fn(e));
  17657. }
  17658. else {
  17659. return value;
  17660. }
  17661. }
  17662. const nativeOnRE = /^on[a-z]/;
  17663. const patchProp = (el, key, prevValue, nextValue, isSVG = false, prevChildren, parentComponent, parentSuspense, unmountChildren) => {
  17664. if (key === 'class') {
  17665. patchClass(el, nextValue, isSVG);
  17666. }
  17667. else if (key === 'style') {
  17668. patchStyle(el, prevValue, nextValue);
  17669. }
  17670. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isOn)(key)) {
  17671. // ignore v-model listeners
  17672. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isModelListener)(key)) {
  17673. patchEvent(el, key, prevValue, nextValue, parentComponent);
  17674. }
  17675. }
  17676. else if (key[0] === '.'
  17677. ? ((key = key.slice(1)), true)
  17678. : key[0] === '^'
  17679. ? ((key = key.slice(1)), false)
  17680. : shouldSetAsProp(el, key, nextValue, isSVG)) {
  17681. patchDOMProp(el, key, nextValue, prevChildren, parentComponent, parentSuspense, unmountChildren);
  17682. }
  17683. else {
  17684. // special case for <input v-model type="checkbox"> with
  17685. // :true-value & :false-value
  17686. // store value as dom properties since non-string values will be
  17687. // stringified.
  17688. if (key === 'true-value') {
  17689. el._trueValue = nextValue;
  17690. }
  17691. else if (key === 'false-value') {
  17692. el._falseValue = nextValue;
  17693. }
  17694. patchAttr(el, key, nextValue, isSVG);
  17695. }
  17696. };
  17697. function shouldSetAsProp(el, key, value, isSVG) {
  17698. if (isSVG) {
  17699. // most keys must be set as attribute on svg elements to work
  17700. // ...except innerHTML & textContent
  17701. if (key === 'innerHTML' || key === 'textContent') {
  17702. return true;
  17703. }
  17704. // or native onclick with function values
  17705. if (key in el && nativeOnRE.test(key) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(value)) {
  17706. return true;
  17707. }
  17708. return false;
  17709. }
  17710. // these are enumerated attrs, however their corresponding DOM properties
  17711. // are actually booleans - this leads to setting it with a string "false"
  17712. // value leading it to be coerced to `true`, so we need to always treat
  17713. // them as attributes.
  17714. // Note that `contentEditable` doesn't have this problem: its DOM
  17715. // property is also enumerated string values.
  17716. if (key === 'spellcheck' || key === 'draggable' || key === 'translate') {
  17717. return false;
  17718. }
  17719. // #1787, #2840 form property on form elements is readonly and must be set as
  17720. // attribute.
  17721. if (key === 'form') {
  17722. return false;
  17723. }
  17724. // #1526 <input list> must be set as attribute
  17725. if (key === 'list' && el.tagName === 'INPUT') {
  17726. return false;
  17727. }
  17728. // #2766 <textarea type> must be set as attribute
  17729. if (key === 'type' && el.tagName === 'TEXTAREA') {
  17730. return false;
  17731. }
  17732. // native onclick with string value, must be set as attribute
  17733. if (nativeOnRE.test(key) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(value)) {
  17734. return false;
  17735. }
  17736. return key in el;
  17737. }
  17738. function defineCustomElement(options, hydate) {
  17739. const Comp = (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineComponent)(options);
  17740. class VueCustomElement extends VueElement {
  17741. constructor(initialProps) {
  17742. super(Comp, initialProps, hydate);
  17743. }
  17744. }
  17745. VueCustomElement.def = Comp;
  17746. return VueCustomElement;
  17747. }
  17748. const defineSSRCustomElement = ((options) => {
  17749. // @ts-ignore
  17750. return defineCustomElement(options, hydrate);
  17751. });
  17752. const BaseClass = (typeof HTMLElement !== 'undefined' ? HTMLElement : class {
  17753. });
  17754. class VueElement extends BaseClass {
  17755. constructor(_def, _props = {}, hydrate) {
  17756. super();
  17757. this._def = _def;
  17758. this._props = _props;
  17759. /**
  17760. * @internal
  17761. */
  17762. this._instance = null;
  17763. this._connected = false;
  17764. this._resolved = false;
  17765. this._numberProps = null;
  17766. if (this.shadowRoot && hydrate) {
  17767. hydrate(this._createVNode(), this.shadowRoot);
  17768. }
  17769. else {
  17770. if (( true) && this.shadowRoot) {
  17771. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`Custom element has pre-rendered declarative shadow root but is not ` +
  17772. `defined as hydratable. Use \`defineSSRCustomElement\`.`);
  17773. }
  17774. this.attachShadow({ mode: 'open' });
  17775. }
  17776. }
  17777. connectedCallback() {
  17778. this._connected = true;
  17779. if (!this._instance) {
  17780. this._resolveDef();
  17781. }
  17782. }
  17783. disconnectedCallback() {
  17784. this._connected = false;
  17785. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.nextTick)(() => {
  17786. if (!this._connected) {
  17787. render(null, this.shadowRoot);
  17788. this._instance = null;
  17789. }
  17790. });
  17791. }
  17792. /**
  17793. * resolve inner component definition (handle possible async component)
  17794. */
  17795. _resolveDef() {
  17796. if (this._resolved) {
  17797. return;
  17798. }
  17799. this._resolved = true;
  17800. // set initial attrs
  17801. for (let i = 0; i < this.attributes.length; i++) {
  17802. this._setAttr(this.attributes[i].name);
  17803. }
  17804. // watch future attr changes
  17805. new MutationObserver(mutations => {
  17806. for (const m of mutations) {
  17807. this._setAttr(m.attributeName);
  17808. }
  17809. }).observe(this, { attributes: true });
  17810. const resolve = (def) => {
  17811. const { props, styles } = def;
  17812. const hasOptions = !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(props);
  17813. const rawKeys = props ? (hasOptions ? Object.keys(props) : props) : [];
  17814. // cast Number-type props set before resolve
  17815. let numberProps;
  17816. if (hasOptions) {
  17817. for (const key in this._props) {
  17818. const opt = props[key];
  17819. if (opt === Number || (opt && opt.type === Number)) {
  17820. this._props[key] = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber)(this._props[key]);
  17821. (numberProps || (numberProps = Object.create(null)))[key] = true;
  17822. }
  17823. }
  17824. }
  17825. this._numberProps = numberProps;
  17826. // check if there are props set pre-upgrade or connect
  17827. for (const key of Object.keys(this)) {
  17828. if (key[0] !== '_') {
  17829. this._setProp(key, this[key], true, false);
  17830. }
  17831. }
  17832. // defining getter/setters on prototype
  17833. for (const key of rawKeys.map(_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)) {
  17834. Object.defineProperty(this, key, {
  17835. get() {
  17836. return this._getProp(key);
  17837. },
  17838. set(val) {
  17839. this._setProp(key, val);
  17840. }
  17841. });
  17842. }
  17843. // apply CSS
  17844. this._applyStyles(styles);
  17845. // initial render
  17846. this._update();
  17847. };
  17848. const asyncDef = this._def.__asyncLoader;
  17849. if (asyncDef) {
  17850. asyncDef().then(resolve);
  17851. }
  17852. else {
  17853. resolve(this._def);
  17854. }
  17855. }
  17856. _setAttr(key) {
  17857. let value = this.getAttribute(key);
  17858. if (this._numberProps && this._numberProps[key]) {
  17859. value = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber)(value);
  17860. }
  17861. this._setProp((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(key), value, false);
  17862. }
  17863. /**
  17864. * @internal
  17865. */
  17866. _getProp(key) {
  17867. return this._props[key];
  17868. }
  17869. /**
  17870. * @internal
  17871. */
  17872. _setProp(key, val, shouldReflect = true, shouldUpdate = true) {
  17873. if (val !== this._props[key]) {
  17874. this._props[key] = val;
  17875. if (shouldUpdate && this._instance) {
  17876. this._update();
  17877. }
  17878. // reflect
  17879. if (shouldReflect) {
  17880. if (val === true) {
  17881. this.setAttribute((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(key), '');
  17882. }
  17883. else if (typeof val === 'string' || typeof val === 'number') {
  17884. this.setAttribute((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(key), val + '');
  17885. }
  17886. else if (!val) {
  17887. this.removeAttribute((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(key));
  17888. }
  17889. }
  17890. }
  17891. }
  17892. _update() {
  17893. render(this._createVNode(), this.shadowRoot);
  17894. }
  17895. _createVNode() {
  17896. const vnode = (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createVNode)(this._def, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, this._props));
  17897. if (!this._instance) {
  17898. vnode.ce = instance => {
  17899. this._instance = instance;
  17900. instance.isCE = true;
  17901. // HMR
  17902. if ((true)) {
  17903. instance.ceReload = newStyles => {
  17904. // always reset styles
  17905. if (this._styles) {
  17906. this._styles.forEach(s => this.shadowRoot.removeChild(s));
  17907. this._styles.length = 0;
  17908. }
  17909. this._applyStyles(newStyles);
  17910. // if this is an async component, ceReload is called from the inner
  17911. // component so no need to reload the async wrapper
  17912. if (!this._def.__asyncLoader) {
  17913. // reload
  17914. this._instance = null;
  17915. this._update();
  17916. }
  17917. };
  17918. }
  17919. // intercept emit
  17920. instance.emit = (event, ...args) => {
  17921. this.dispatchEvent(new CustomEvent(event, {
  17922. detail: args
  17923. }));
  17924. };
  17925. // locate nearest Vue custom element parent for provide/inject
  17926. let parent = this;
  17927. while ((parent =
  17928. parent && (parent.parentNode || parent.host))) {
  17929. if (parent instanceof VueElement) {
  17930. instance.parent = parent._instance;
  17931. break;
  17932. }
  17933. }
  17934. };
  17935. }
  17936. return vnode;
  17937. }
  17938. _applyStyles(styles) {
  17939. if (styles) {
  17940. styles.forEach(css => {
  17941. const s = document.createElement('style');
  17942. s.textContent = css;
  17943. this.shadowRoot.appendChild(s);
  17944. // record for HMR
  17945. if ((true)) {
  17946. (this._styles || (this._styles = [])).push(s);
  17947. }
  17948. });
  17949. }
  17950. }
  17951. }
  17952. function useCssModule(name = '$style') {
  17953. /* istanbul ignore else */
  17954. {
  17955. const instance = (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance)();
  17956. if (!instance) {
  17957. ( true) && (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`useCssModule must be called inside setup()`);
  17958. return _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
  17959. }
  17960. const modules = instance.type.__cssModules;
  17961. if (!modules) {
  17962. ( true) && (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`Current instance does not have CSS modules injected.`);
  17963. return _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
  17964. }
  17965. const mod = modules[name];
  17966. if (!mod) {
  17967. ( true) &&
  17968. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`Current instance does not have CSS module named "${name}".`);
  17969. return _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
  17970. }
  17971. return mod;
  17972. }
  17973. }
  17974. /**
  17975. * Runtime helper for SFC's CSS variable injection feature.
  17976. * @private
  17977. */
  17978. function useCssVars(getter) {
  17979. const instance = (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance)();
  17980. /* istanbul ignore next */
  17981. if (!instance) {
  17982. ( true) &&
  17983. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`useCssVars is called without current active component instance.`);
  17984. return;
  17985. }
  17986. const setVars = () => setVarsOnVNode(instance.subTree, getter(instance.proxy));
  17987. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.watchPostEffect)(setVars);
  17988. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onMounted)(() => {
  17989. const ob = new MutationObserver(setVars);
  17990. ob.observe(instance.subTree.el.parentNode, { childList: true });
  17991. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onUnmounted)(() => ob.disconnect());
  17992. });
  17993. }
  17994. function setVarsOnVNode(vnode, vars) {
  17995. if (vnode.shapeFlag & 128 /* SUSPENSE */) {
  17996. const suspense = vnode.suspense;
  17997. vnode = suspense.activeBranch;
  17998. if (suspense.pendingBranch && !suspense.isHydrating) {
  17999. suspense.effects.push(() => {
  18000. setVarsOnVNode(suspense.activeBranch, vars);
  18001. });
  18002. }
  18003. }
  18004. // drill down HOCs until it's a non-component vnode
  18005. while (vnode.component) {
  18006. vnode = vnode.component.subTree;
  18007. }
  18008. if (vnode.shapeFlag & 1 /* ELEMENT */ && vnode.el) {
  18009. setVarsOnNode(vnode.el, vars);
  18010. }
  18011. else if (vnode.type === _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Fragment) {
  18012. vnode.children.forEach(c => setVarsOnVNode(c, vars));
  18013. }
  18014. else if (vnode.type === _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Static) {
  18015. let { el, anchor } = vnode;
  18016. while (el) {
  18017. setVarsOnNode(el, vars);
  18018. if (el === anchor)
  18019. break;
  18020. el = el.nextSibling;
  18021. }
  18022. }
  18023. }
  18024. function setVarsOnNode(el, vars) {
  18025. if (el.nodeType === 1) {
  18026. const style = el.style;
  18027. for (const key in vars) {
  18028. style.setProperty(`--${key}`, vars[key]);
  18029. }
  18030. }
  18031. }
  18032. const TRANSITION = 'transition';
  18033. const ANIMATION = 'animation';
  18034. // DOM Transition is a higher-order-component based on the platform-agnostic
  18035. // base Transition component, with DOM-specific logic.
  18036. const Transition = (props, { slots }) => (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.h)(_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.BaseTransition, resolveTransitionProps(props), slots);
  18037. Transition.displayName = 'Transition';
  18038. const DOMTransitionPropsValidators = {
  18039. name: String,
  18040. type: String,
  18041. css: {
  18042. type: Boolean,
  18043. default: true
  18044. },
  18045. duration: [String, Number, Object],
  18046. enterFromClass: String,
  18047. enterActiveClass: String,
  18048. enterToClass: String,
  18049. appearFromClass: String,
  18050. appearActiveClass: String,
  18051. appearToClass: String,
  18052. leaveFromClass: String,
  18053. leaveActiveClass: String,
  18054. leaveToClass: String
  18055. };
  18056. const TransitionPropsValidators = (Transition.props =
  18057. /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.BaseTransition.props, DOMTransitionPropsValidators));
  18058. /**
  18059. * #3227 Incoming hooks may be merged into arrays when wrapping Transition
  18060. * with custom HOCs.
  18061. */
  18062. const callHook = (hook, args = []) => {
  18063. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(hook)) {
  18064. hook.forEach(h => h(...args));
  18065. }
  18066. else if (hook) {
  18067. hook(...args);
  18068. }
  18069. };
  18070. /**
  18071. * Check if a hook expects a callback (2nd arg), which means the user
  18072. * intends to explicitly control the end of the transition.
  18073. */
  18074. const hasExplicitCallback = (hook) => {
  18075. return hook
  18076. ? (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(hook)
  18077. ? hook.some(h => h.length > 1)
  18078. : hook.length > 1
  18079. : false;
  18080. };
  18081. function resolveTransitionProps(rawProps) {
  18082. const baseProps = {};
  18083. for (const key in rawProps) {
  18084. if (!(key in DOMTransitionPropsValidators)) {
  18085. baseProps[key] = rawProps[key];
  18086. }
  18087. }
  18088. if (rawProps.css === false) {
  18089. return baseProps;
  18090. }
  18091. const { name = 'v', type, duration, enterFromClass = `${name}-enter-from`, enterActiveClass = `${name}-enter-active`, enterToClass = `${name}-enter-to`, appearFromClass = enterFromClass, appearActiveClass = enterActiveClass, appearToClass = enterToClass, leaveFromClass = `${name}-leave-from`, leaveActiveClass = `${name}-leave-active`, leaveToClass = `${name}-leave-to` } = rawProps;
  18092. const durations = normalizeDuration(duration);
  18093. const enterDuration = durations && durations[0];
  18094. const leaveDuration = durations && durations[1];
  18095. const { onBeforeEnter, onEnter, onEnterCancelled, onLeave, onLeaveCancelled, onBeforeAppear = onBeforeEnter, onAppear = onEnter, onAppearCancelled = onEnterCancelled } = baseProps;
  18096. const finishEnter = (el, isAppear, done) => {
  18097. removeTransitionClass(el, isAppear ? appearToClass : enterToClass);
  18098. removeTransitionClass(el, isAppear ? appearActiveClass : enterActiveClass);
  18099. done && done();
  18100. };
  18101. const finishLeave = (el, done) => {
  18102. removeTransitionClass(el, leaveToClass);
  18103. removeTransitionClass(el, leaveActiveClass);
  18104. done && done();
  18105. };
  18106. const makeEnterHook = (isAppear) => {
  18107. return (el, done) => {
  18108. const hook = isAppear ? onAppear : onEnter;
  18109. const resolve = () => finishEnter(el, isAppear, done);
  18110. callHook(hook, [el, resolve]);
  18111. nextFrame(() => {
  18112. removeTransitionClass(el, isAppear ? appearFromClass : enterFromClass);
  18113. addTransitionClass(el, isAppear ? appearToClass : enterToClass);
  18114. if (!hasExplicitCallback(hook)) {
  18115. whenTransitionEnds(el, type, enterDuration, resolve);
  18116. }
  18117. });
  18118. };
  18119. };
  18120. return (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(baseProps, {
  18121. onBeforeEnter(el) {
  18122. callHook(onBeforeEnter, [el]);
  18123. addTransitionClass(el, enterFromClass);
  18124. addTransitionClass(el, enterActiveClass);
  18125. },
  18126. onBeforeAppear(el) {
  18127. callHook(onBeforeAppear, [el]);
  18128. addTransitionClass(el, appearFromClass);
  18129. addTransitionClass(el, appearActiveClass);
  18130. },
  18131. onEnter: makeEnterHook(false),
  18132. onAppear: makeEnterHook(true),
  18133. onLeave(el, done) {
  18134. const resolve = () => finishLeave(el, done);
  18135. addTransitionClass(el, leaveFromClass);
  18136. // force reflow so *-leave-from classes immediately take effect (#2593)
  18137. forceReflow();
  18138. addTransitionClass(el, leaveActiveClass);
  18139. nextFrame(() => {
  18140. removeTransitionClass(el, leaveFromClass);
  18141. addTransitionClass(el, leaveToClass);
  18142. if (!hasExplicitCallback(onLeave)) {
  18143. whenTransitionEnds(el, type, leaveDuration, resolve);
  18144. }
  18145. });
  18146. callHook(onLeave, [el, resolve]);
  18147. },
  18148. onEnterCancelled(el) {
  18149. finishEnter(el, false);
  18150. callHook(onEnterCancelled, [el]);
  18151. },
  18152. onAppearCancelled(el) {
  18153. finishEnter(el, true);
  18154. callHook(onAppearCancelled, [el]);
  18155. },
  18156. onLeaveCancelled(el) {
  18157. finishLeave(el);
  18158. callHook(onLeaveCancelled, [el]);
  18159. }
  18160. });
  18161. }
  18162. function normalizeDuration(duration) {
  18163. if (duration == null) {
  18164. return null;
  18165. }
  18166. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(duration)) {
  18167. return [NumberOf(duration.enter), NumberOf(duration.leave)];
  18168. }
  18169. else {
  18170. const n = NumberOf(duration);
  18171. return [n, n];
  18172. }
  18173. }
  18174. function NumberOf(val) {
  18175. const res = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber)(val);
  18176. if ((true))
  18177. validateDuration(res);
  18178. return res;
  18179. }
  18180. function validateDuration(val) {
  18181. if (typeof val !== 'number') {
  18182. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`<transition> explicit duration is not a valid number - ` +
  18183. `got ${JSON.stringify(val)}.`);
  18184. }
  18185. else if (isNaN(val)) {
  18186. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`<transition> explicit duration is NaN - ` +
  18187. 'the duration expression might be incorrect.');
  18188. }
  18189. }
  18190. function addTransitionClass(el, cls) {
  18191. cls.split(/\s+/).forEach(c => c && el.classList.add(c));
  18192. (el._vtc ||
  18193. (el._vtc = new Set())).add(cls);
  18194. }
  18195. function removeTransitionClass(el, cls) {
  18196. cls.split(/\s+/).forEach(c => c && el.classList.remove(c));
  18197. const { _vtc } = el;
  18198. if (_vtc) {
  18199. _vtc.delete(cls);
  18200. if (!_vtc.size) {
  18201. el._vtc = undefined;
  18202. }
  18203. }
  18204. }
  18205. function nextFrame(cb) {
  18206. requestAnimationFrame(() => {
  18207. requestAnimationFrame(cb);
  18208. });
  18209. }
  18210. let endId = 0;
  18211. function whenTransitionEnds(el, expectedType, explicitTimeout, resolve) {
  18212. const id = (el._endId = ++endId);
  18213. const resolveIfNotStale = () => {
  18214. if (id === el._endId) {
  18215. resolve();
  18216. }
  18217. };
  18218. if (explicitTimeout) {
  18219. return setTimeout(resolveIfNotStale, explicitTimeout);
  18220. }
  18221. const { type, timeout, propCount } = getTransitionInfo(el, expectedType);
  18222. if (!type) {
  18223. return resolve();
  18224. }
  18225. const endEvent = type + 'end';
  18226. let ended = 0;
  18227. const end = () => {
  18228. el.removeEventListener(endEvent, onEnd);
  18229. resolveIfNotStale();
  18230. };
  18231. const onEnd = (e) => {
  18232. if (e.target === el && ++ended >= propCount) {
  18233. end();
  18234. }
  18235. };
  18236. setTimeout(() => {
  18237. if (ended < propCount) {
  18238. end();
  18239. }
  18240. }, timeout + 1);
  18241. el.addEventListener(endEvent, onEnd);
  18242. }
  18243. function getTransitionInfo(el, expectedType) {
  18244. const styles = window.getComputedStyle(el);
  18245. // JSDOM may return undefined for transition properties
  18246. const getStyleProperties = (key) => (styles[key] || '').split(', ');
  18247. const transitionDelays = getStyleProperties(TRANSITION + 'Delay');
  18248. const transitionDurations = getStyleProperties(TRANSITION + 'Duration');
  18249. const transitionTimeout = getTimeout(transitionDelays, transitionDurations);
  18250. const animationDelays = getStyleProperties(ANIMATION + 'Delay');
  18251. const animationDurations = getStyleProperties(ANIMATION + 'Duration');
  18252. const animationTimeout = getTimeout(animationDelays, animationDurations);
  18253. let type = null;
  18254. let timeout = 0;
  18255. let propCount = 0;
  18256. /* istanbul ignore if */
  18257. if (expectedType === TRANSITION) {
  18258. if (transitionTimeout > 0) {
  18259. type = TRANSITION;
  18260. timeout = transitionTimeout;
  18261. propCount = transitionDurations.length;
  18262. }
  18263. }
  18264. else if (expectedType === ANIMATION) {
  18265. if (animationTimeout > 0) {
  18266. type = ANIMATION;
  18267. timeout = animationTimeout;
  18268. propCount = animationDurations.length;
  18269. }
  18270. }
  18271. else {
  18272. timeout = Math.max(transitionTimeout, animationTimeout);
  18273. type =
  18274. timeout > 0
  18275. ? transitionTimeout > animationTimeout
  18276. ? TRANSITION
  18277. : ANIMATION
  18278. : null;
  18279. propCount = type
  18280. ? type === TRANSITION
  18281. ? transitionDurations.length
  18282. : animationDurations.length
  18283. : 0;
  18284. }
  18285. const hasTransform = type === TRANSITION &&
  18286. /\b(transform|all)(,|$)/.test(styles[TRANSITION + 'Property']);
  18287. return {
  18288. type,
  18289. timeout,
  18290. propCount,
  18291. hasTransform
  18292. };
  18293. }
  18294. function getTimeout(delays, durations) {
  18295. while (delays.length < durations.length) {
  18296. delays = delays.concat(delays);
  18297. }
  18298. return Math.max(...durations.map((d, i) => toMs(d) + toMs(delays[i])));
  18299. }
  18300. // Old versions of Chromium (below 61.0.3163.100) formats floating pointer
  18301. // numbers in a locale-dependent way, using a comma instead of a dot.
  18302. // If comma is not replaced with a dot, the input will be rounded down
  18303. // (i.e. acting as a floor function) causing unexpected behaviors
  18304. function toMs(s) {
  18305. return Number(s.slice(0, -1).replace(',', '.')) * 1000;
  18306. }
  18307. // synchronously force layout to put elements into a certain state
  18308. function forceReflow() {
  18309. return document.body.offsetHeight;
  18310. }
  18311. const positionMap = new WeakMap();
  18312. const newPositionMap = new WeakMap();
  18313. const TransitionGroupImpl = {
  18314. name: 'TransitionGroup',
  18315. props: /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, TransitionPropsValidators, {
  18316. tag: String,
  18317. moveClass: String
  18318. }),
  18319. setup(props, { slots }) {
  18320. const instance = (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance)();
  18321. const state = (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.useTransitionState)();
  18322. let prevChildren;
  18323. let children;
  18324. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onUpdated)(() => {
  18325. // children is guaranteed to exist after initial render
  18326. if (!prevChildren.length) {
  18327. return;
  18328. }
  18329. const moveClass = props.moveClass || `${props.name || 'v'}-move`;
  18330. if (!hasCSSTransform(prevChildren[0].el, instance.vnode.el, moveClass)) {
  18331. return;
  18332. }
  18333. // we divide the work into three loops to avoid mixing DOM reads and writes
  18334. // in each iteration - which helps prevent layout thrashing.
  18335. prevChildren.forEach(callPendingCbs);
  18336. prevChildren.forEach(recordPosition);
  18337. const movedChildren = prevChildren.filter(applyTranslation);
  18338. // force reflow to put everything in position
  18339. forceReflow();
  18340. movedChildren.forEach(c => {
  18341. const el = c.el;
  18342. const style = el.style;
  18343. addTransitionClass(el, moveClass);
  18344. style.transform = style.webkitTransform = style.transitionDuration = '';
  18345. const cb = (el._moveCb = (e) => {
  18346. if (e && e.target !== el) {
  18347. return;
  18348. }
  18349. if (!e || /transform$/.test(e.propertyName)) {
  18350. el.removeEventListener('transitionend', cb);
  18351. el._moveCb = null;
  18352. removeTransitionClass(el, moveClass);
  18353. }
  18354. });
  18355. el.addEventListener('transitionend', cb);
  18356. });
  18357. });
  18358. return () => {
  18359. const rawProps = (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_2__.toRaw)(props);
  18360. const cssTransitionProps = resolveTransitionProps(rawProps);
  18361. let tag = rawProps.tag || _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Fragment;
  18362. prevChildren = children;
  18363. children = slots.default ? (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getTransitionRawChildren)(slots.default()) : [];
  18364. for (let i = 0; i < children.length; i++) {
  18365. const child = children[i];
  18366. if (child.key != null) {
  18367. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.setTransitionHooks)(child, (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveTransitionHooks)(child, cssTransitionProps, state, instance));
  18368. }
  18369. else if ((true)) {
  18370. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`<TransitionGroup> children must be keyed.`);
  18371. }
  18372. }
  18373. if (prevChildren) {
  18374. for (let i = 0; i < prevChildren.length; i++) {
  18375. const child = prevChildren[i];
  18376. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.setTransitionHooks)(child, (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveTransitionHooks)(child, cssTransitionProps, state, instance));
  18377. positionMap.set(child, child.el.getBoundingClientRect());
  18378. }
  18379. }
  18380. return (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createVNode)(tag, null, children);
  18381. };
  18382. }
  18383. };
  18384. const TransitionGroup = TransitionGroupImpl;
  18385. function callPendingCbs(c) {
  18386. const el = c.el;
  18387. if (el._moveCb) {
  18388. el._moveCb();
  18389. }
  18390. if (el._enterCb) {
  18391. el._enterCb();
  18392. }
  18393. }
  18394. function recordPosition(c) {
  18395. newPositionMap.set(c, c.el.getBoundingClientRect());
  18396. }
  18397. function applyTranslation(c) {
  18398. const oldPos = positionMap.get(c);
  18399. const newPos = newPositionMap.get(c);
  18400. const dx = oldPos.left - newPos.left;
  18401. const dy = oldPos.top - newPos.top;
  18402. if (dx || dy) {
  18403. const s = c.el.style;
  18404. s.transform = s.webkitTransform = `translate(${dx}px,${dy}px)`;
  18405. s.transitionDuration = '0s';
  18406. return c;
  18407. }
  18408. }
  18409. function hasCSSTransform(el, root, moveClass) {
  18410. // Detect whether an element with the move class applied has
  18411. // CSS transitions. Since the element may be inside an entering
  18412. // transition at this very moment, we make a clone of it and remove
  18413. // all other transition classes applied to ensure only the move class
  18414. // is applied.
  18415. const clone = el.cloneNode();
  18416. if (el._vtc) {
  18417. el._vtc.forEach(cls => {
  18418. cls.split(/\s+/).forEach(c => c && clone.classList.remove(c));
  18419. });
  18420. }
  18421. moveClass.split(/\s+/).forEach(c => c && clone.classList.add(c));
  18422. clone.style.display = 'none';
  18423. const container = (root.nodeType === 1 ? root : root.parentNode);
  18424. container.appendChild(clone);
  18425. const { hasTransform } = getTransitionInfo(clone);
  18426. container.removeChild(clone);
  18427. return hasTransform;
  18428. }
  18429. const getModelAssigner = (vnode) => {
  18430. const fn = vnode.props['onUpdate:modelValue'];
  18431. return (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(fn) ? value => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(fn, value) : fn;
  18432. };
  18433. function onCompositionStart(e) {
  18434. e.target.composing = true;
  18435. }
  18436. function onCompositionEnd(e) {
  18437. const target = e.target;
  18438. if (target.composing) {
  18439. target.composing = false;
  18440. trigger(target, 'input');
  18441. }
  18442. }
  18443. function trigger(el, type) {
  18444. const e = document.createEvent('HTMLEvents');
  18445. e.initEvent(type, true, true);
  18446. el.dispatchEvent(e);
  18447. }
  18448. // We are exporting the v-model runtime directly as vnode hooks so that it can
  18449. // be tree-shaken in case v-model is never used.
  18450. const vModelText = {
  18451. created(el, { modifiers: { lazy, trim, number } }, vnode) {
  18452. el._assign = getModelAssigner(vnode);
  18453. const castToNumber = number || (vnode.props && vnode.props.type === 'number');
  18454. addEventListener(el, lazy ? 'change' : 'input', e => {
  18455. if (e.target.composing)
  18456. return;
  18457. let domValue = el.value;
  18458. if (trim) {
  18459. domValue = domValue.trim();
  18460. }
  18461. else if (castToNumber) {
  18462. domValue = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber)(domValue);
  18463. }
  18464. el._assign(domValue);
  18465. });
  18466. if (trim) {
  18467. addEventListener(el, 'change', () => {
  18468. el.value = el.value.trim();
  18469. });
  18470. }
  18471. if (!lazy) {
  18472. addEventListener(el, 'compositionstart', onCompositionStart);
  18473. addEventListener(el, 'compositionend', onCompositionEnd);
  18474. // Safari < 10.2 & UIWebView doesn't fire compositionend when
  18475. // switching focus before confirming composition choice
  18476. // this also fixes the issue where some browsers e.g. iOS Chrome
  18477. // fires "change" instead of "input" on autocomplete.
  18478. addEventListener(el, 'change', onCompositionEnd);
  18479. }
  18480. },
  18481. // set value on mounted so it's after min/max for type="range"
  18482. mounted(el, { value }) {
  18483. el.value = value == null ? '' : value;
  18484. },
  18485. beforeUpdate(el, { value, modifiers: { lazy, trim, number } }, vnode) {
  18486. el._assign = getModelAssigner(vnode);
  18487. // avoid clearing unresolved text. #2302
  18488. if (el.composing)
  18489. return;
  18490. if (document.activeElement === el) {
  18491. if (lazy) {
  18492. return;
  18493. }
  18494. if (trim && el.value.trim() === value) {
  18495. return;
  18496. }
  18497. if ((number || el.type === 'number') && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber)(el.value) === value) {
  18498. return;
  18499. }
  18500. }
  18501. const newValue = value == null ? '' : value;
  18502. if (el.value !== newValue) {
  18503. el.value = newValue;
  18504. }
  18505. }
  18506. };
  18507. const vModelCheckbox = {
  18508. // #4096 array checkboxes need to be deep traversed
  18509. deep: true,
  18510. created(el, _, vnode) {
  18511. el._assign = getModelAssigner(vnode);
  18512. addEventListener(el, 'change', () => {
  18513. const modelValue = el._modelValue;
  18514. const elementValue = getValue(el);
  18515. const checked = el.checked;
  18516. const assign = el._assign;
  18517. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(modelValue)) {
  18518. const index = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseIndexOf)(modelValue, elementValue);
  18519. const found = index !== -1;
  18520. if (checked && !found) {
  18521. assign(modelValue.concat(elementValue));
  18522. }
  18523. else if (!checked && found) {
  18524. const filtered = [...modelValue];
  18525. filtered.splice(index, 1);
  18526. assign(filtered);
  18527. }
  18528. }
  18529. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSet)(modelValue)) {
  18530. const cloned = new Set(modelValue);
  18531. if (checked) {
  18532. cloned.add(elementValue);
  18533. }
  18534. else {
  18535. cloned.delete(elementValue);
  18536. }
  18537. assign(cloned);
  18538. }
  18539. else {
  18540. assign(getCheckboxValue(el, checked));
  18541. }
  18542. });
  18543. },
  18544. // set initial checked on mount to wait for true-value/false-value
  18545. mounted: setChecked,
  18546. beforeUpdate(el, binding, vnode) {
  18547. el._assign = getModelAssigner(vnode);
  18548. setChecked(el, binding, vnode);
  18549. }
  18550. };
  18551. function setChecked(el, { value, oldValue }, vnode) {
  18552. el._modelValue = value;
  18553. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(value)) {
  18554. el.checked = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseIndexOf)(value, vnode.props.value) > -1;
  18555. }
  18556. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSet)(value)) {
  18557. el.checked = value.has(vnode.props.value);
  18558. }
  18559. else if (value !== oldValue) {
  18560. el.checked = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseEqual)(value, getCheckboxValue(el, true));
  18561. }
  18562. }
  18563. const vModelRadio = {
  18564. created(el, { value }, vnode) {
  18565. el.checked = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseEqual)(value, vnode.props.value);
  18566. el._assign = getModelAssigner(vnode);
  18567. addEventListener(el, 'change', () => {
  18568. el._assign(getValue(el));
  18569. });
  18570. },
  18571. beforeUpdate(el, { value, oldValue }, vnode) {
  18572. el._assign = getModelAssigner(vnode);
  18573. if (value !== oldValue) {
  18574. el.checked = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseEqual)(value, vnode.props.value);
  18575. }
  18576. }
  18577. };
  18578. const vModelSelect = {
  18579. // <select multiple> value need to be deep traversed
  18580. deep: true,
  18581. created(el, { value, modifiers: { number } }, vnode) {
  18582. const isSetModel = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSet)(value);
  18583. addEventListener(el, 'change', () => {
  18584. const selectedVal = Array.prototype.filter
  18585. .call(el.options, (o) => o.selected)
  18586. .map((o) => number ? (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber)(getValue(o)) : getValue(o));
  18587. el._assign(el.multiple
  18588. ? isSetModel
  18589. ? new Set(selectedVal)
  18590. : selectedVal
  18591. : selectedVal[0]);
  18592. });
  18593. el._assign = getModelAssigner(vnode);
  18594. },
  18595. // set value in mounted & updated because <select> relies on its children
  18596. // <option>s.
  18597. mounted(el, { value }) {
  18598. setSelected(el, value);
  18599. },
  18600. beforeUpdate(el, _binding, vnode) {
  18601. el._assign = getModelAssigner(vnode);
  18602. },
  18603. updated(el, { value }) {
  18604. setSelected(el, value);
  18605. }
  18606. };
  18607. function setSelected(el, value) {
  18608. const isMultiple = el.multiple;
  18609. if (isMultiple && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(value) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSet)(value)) {
  18610. ( true) &&
  18611. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`<select multiple v-model> expects an Array or Set value for its binding, ` +
  18612. `but got ${Object.prototype.toString.call(value).slice(8, -1)}.`);
  18613. return;
  18614. }
  18615. for (let i = 0, l = el.options.length; i < l; i++) {
  18616. const option = el.options[i];
  18617. const optionValue = getValue(option);
  18618. if (isMultiple) {
  18619. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(value)) {
  18620. option.selected = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseIndexOf)(value, optionValue) > -1;
  18621. }
  18622. else {
  18623. option.selected = value.has(optionValue);
  18624. }
  18625. }
  18626. else {
  18627. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseEqual)(getValue(option), value)) {
  18628. if (el.selectedIndex !== i)
  18629. el.selectedIndex = i;
  18630. return;
  18631. }
  18632. }
  18633. }
  18634. if (!isMultiple && el.selectedIndex !== -1) {
  18635. el.selectedIndex = -1;
  18636. }
  18637. }
  18638. // retrieve raw value set via :value bindings
  18639. function getValue(el) {
  18640. return '_value' in el ? el._value : el.value;
  18641. }
  18642. // retrieve raw value for true-value and false-value set via :true-value or :false-value bindings
  18643. function getCheckboxValue(el, checked) {
  18644. const key = checked ? '_trueValue' : '_falseValue';
  18645. return key in el ? el[key] : checked;
  18646. }
  18647. const vModelDynamic = {
  18648. created(el, binding, vnode) {
  18649. callModelHook(el, binding, vnode, null, 'created');
  18650. },
  18651. mounted(el, binding, vnode) {
  18652. callModelHook(el, binding, vnode, null, 'mounted');
  18653. },
  18654. beforeUpdate(el, binding, vnode, prevVNode) {
  18655. callModelHook(el, binding, vnode, prevVNode, 'beforeUpdate');
  18656. },
  18657. updated(el, binding, vnode, prevVNode) {
  18658. callModelHook(el, binding, vnode, prevVNode, 'updated');
  18659. }
  18660. };
  18661. function callModelHook(el, binding, vnode, prevVNode, hook) {
  18662. let modelToUse;
  18663. switch (el.tagName) {
  18664. case 'SELECT':
  18665. modelToUse = vModelSelect;
  18666. break;
  18667. case 'TEXTAREA':
  18668. modelToUse = vModelText;
  18669. break;
  18670. default:
  18671. switch (vnode.props && vnode.props.type) {
  18672. case 'checkbox':
  18673. modelToUse = vModelCheckbox;
  18674. break;
  18675. case 'radio':
  18676. modelToUse = vModelRadio;
  18677. break;
  18678. default:
  18679. modelToUse = vModelText;
  18680. }
  18681. }
  18682. const fn = modelToUse[hook];
  18683. fn && fn(el, binding, vnode, prevVNode);
  18684. }
  18685. // SSR vnode transforms, only used when user includes client-oriented render
  18686. // function in SSR
  18687. function initVModelForSSR() {
  18688. vModelText.getSSRProps = ({ value }) => ({ value });
  18689. vModelRadio.getSSRProps = ({ value }, vnode) => {
  18690. if (vnode.props && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseEqual)(vnode.props.value, value)) {
  18691. return { checked: true };
  18692. }
  18693. };
  18694. vModelCheckbox.getSSRProps = ({ value }, vnode) => {
  18695. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(value)) {
  18696. if (vnode.props && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseIndexOf)(value, vnode.props.value) > -1) {
  18697. return { checked: true };
  18698. }
  18699. }
  18700. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSet)(value)) {
  18701. if (vnode.props && value.has(vnode.props.value)) {
  18702. return { checked: true };
  18703. }
  18704. }
  18705. else if (value) {
  18706. return { checked: true };
  18707. }
  18708. };
  18709. }
  18710. const systemModifiers = ['ctrl', 'shift', 'alt', 'meta'];
  18711. const modifierGuards = {
  18712. stop: e => e.stopPropagation(),
  18713. prevent: e => e.preventDefault(),
  18714. self: e => e.target !== e.currentTarget,
  18715. ctrl: e => !e.ctrlKey,
  18716. shift: e => !e.shiftKey,
  18717. alt: e => !e.altKey,
  18718. meta: e => !e.metaKey,
  18719. left: e => 'button' in e && e.button !== 0,
  18720. middle: e => 'button' in e && e.button !== 1,
  18721. right: e => 'button' in e && e.button !== 2,
  18722. exact: (e, modifiers) => systemModifiers.some(m => e[`${m}Key`] && !modifiers.includes(m))
  18723. };
  18724. /**
  18725. * @private
  18726. */
  18727. const withModifiers = (fn, modifiers) => {
  18728. return (event, ...args) => {
  18729. for (let i = 0; i < modifiers.length; i++) {
  18730. const guard = modifierGuards[modifiers[i]];
  18731. if (guard && guard(event, modifiers))
  18732. return;
  18733. }
  18734. return fn(event, ...args);
  18735. };
  18736. };
  18737. // Kept for 2.x compat.
  18738. // Note: IE11 compat for `spacebar` and `del` is removed for now.
  18739. const keyNames = {
  18740. esc: 'escape',
  18741. space: ' ',
  18742. up: 'arrow-up',
  18743. left: 'arrow-left',
  18744. right: 'arrow-right',
  18745. down: 'arrow-down',
  18746. delete: 'backspace'
  18747. };
  18748. /**
  18749. * @private
  18750. */
  18751. const withKeys = (fn, modifiers) => {
  18752. return (event) => {
  18753. if (!('key' in event)) {
  18754. return;
  18755. }
  18756. const eventKey = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(event.key);
  18757. if (modifiers.some(k => k === eventKey || keyNames[k] === eventKey)) {
  18758. return fn(event);
  18759. }
  18760. };
  18761. };
  18762. const vShow = {
  18763. beforeMount(el, { value }, { transition }) {
  18764. el._vod = el.style.display === 'none' ? '' : el.style.display;
  18765. if (transition && value) {
  18766. transition.beforeEnter(el);
  18767. }
  18768. else {
  18769. setDisplay(el, value);
  18770. }
  18771. },
  18772. mounted(el, { value }, { transition }) {
  18773. if (transition && value) {
  18774. transition.enter(el);
  18775. }
  18776. },
  18777. updated(el, { value, oldValue }, { transition }) {
  18778. if (!value === !oldValue)
  18779. return;
  18780. if (transition) {
  18781. if (value) {
  18782. transition.beforeEnter(el);
  18783. setDisplay(el, true);
  18784. transition.enter(el);
  18785. }
  18786. else {
  18787. transition.leave(el, () => {
  18788. setDisplay(el, false);
  18789. });
  18790. }
  18791. }
  18792. else {
  18793. setDisplay(el, value);
  18794. }
  18795. },
  18796. beforeUnmount(el, { value }) {
  18797. setDisplay(el, value);
  18798. }
  18799. };
  18800. function setDisplay(el, value) {
  18801. el.style.display = value ? el._vod : 'none';
  18802. }
  18803. // SSR vnode transforms, only used when user includes client-oriented render
  18804. // function in SSR
  18805. function initVShowForSSR() {
  18806. vShow.getSSRProps = ({ value }) => {
  18807. if (!value) {
  18808. return { style: { display: 'none' } };
  18809. }
  18810. };
  18811. }
  18812. const rendererOptions = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({ patchProp }, nodeOps);
  18813. // lazy create the renderer - this makes core renderer logic tree-shakable
  18814. // in case the user only imports reactivity utilities from Vue.
  18815. let renderer;
  18816. let enabledHydration = false;
  18817. function ensureRenderer() {
  18818. return (renderer ||
  18819. (renderer = (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createRenderer)(rendererOptions)));
  18820. }
  18821. function ensureHydrationRenderer() {
  18822. renderer = enabledHydration
  18823. ? renderer
  18824. : (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createHydrationRenderer)(rendererOptions);
  18825. enabledHydration = true;
  18826. return renderer;
  18827. }
  18828. // use explicit type casts here to avoid import() calls in rolled-up d.ts
  18829. const render = ((...args) => {
  18830. ensureRenderer().render(...args);
  18831. });
  18832. const hydrate = ((...args) => {
  18833. ensureHydrationRenderer().hydrate(...args);
  18834. });
  18835. const createApp = ((...args) => {
  18836. const app = ensureRenderer().createApp(...args);
  18837. if ((true)) {
  18838. injectNativeTagCheck(app);
  18839. injectCompilerOptionsCheck(app);
  18840. }
  18841. const { mount } = app;
  18842. app.mount = (containerOrSelector) => {
  18843. const container = normalizeContainer(containerOrSelector);
  18844. if (!container)
  18845. return;
  18846. const component = app._component;
  18847. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(component) && !component.render && !component.template) {
  18848. // __UNSAFE__
  18849. // Reason: potential execution of JS expressions in in-DOM template.
  18850. // The user must make sure the in-DOM template is trusted. If it's
  18851. // rendered by the server, the template should not contain any user data.
  18852. component.template = container.innerHTML;
  18853. }
  18854. // clear content before mounting
  18855. container.innerHTML = '';
  18856. const proxy = mount(container, false, container instanceof SVGElement);
  18857. if (container instanceof Element) {
  18858. container.removeAttribute('v-cloak');
  18859. container.setAttribute('data-v-app', '');
  18860. }
  18861. return proxy;
  18862. };
  18863. return app;
  18864. });
  18865. const createSSRApp = ((...args) => {
  18866. const app = ensureHydrationRenderer().createApp(...args);
  18867. if ((true)) {
  18868. injectNativeTagCheck(app);
  18869. injectCompilerOptionsCheck(app);
  18870. }
  18871. const { mount } = app;
  18872. app.mount = (containerOrSelector) => {
  18873. const container = normalizeContainer(containerOrSelector);
  18874. if (container) {
  18875. return mount(container, true, container instanceof SVGElement);
  18876. }
  18877. };
  18878. return app;
  18879. });
  18880. function injectNativeTagCheck(app) {
  18881. // Inject `isNativeTag`
  18882. // this is used for component name validation (dev only)
  18883. Object.defineProperty(app.config, 'isNativeTag', {
  18884. value: (tag) => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isHTMLTag)(tag) || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSVGTag)(tag),
  18885. writable: false
  18886. });
  18887. }
  18888. // dev only
  18889. function injectCompilerOptionsCheck(app) {
  18890. if ((0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isRuntimeOnly)()) {
  18891. const isCustomElement = app.config.isCustomElement;
  18892. Object.defineProperty(app.config, 'isCustomElement', {
  18893. get() {
  18894. return isCustomElement;
  18895. },
  18896. set() {
  18897. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`The \`isCustomElement\` config option is deprecated. Use ` +
  18898. `\`compilerOptions.isCustomElement\` instead.`);
  18899. }
  18900. });
  18901. const compilerOptions = app.config.compilerOptions;
  18902. const msg = `The \`compilerOptions\` config option is only respected when using ` +
  18903. `a build of Vue.js that includes the runtime compiler (aka "full build"). ` +
  18904. `Since you are using the runtime-only build, \`compilerOptions\` ` +
  18905. `must be passed to \`@vue/compiler-dom\` in the build setup instead.\n` +
  18906. `- For vue-loader: pass it via vue-loader's \`compilerOptions\` loader option.\n` +
  18907. `- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n` +
  18908. `- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-dom`;
  18909. Object.defineProperty(app.config, 'compilerOptions', {
  18910. get() {
  18911. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(msg);
  18912. return compilerOptions;
  18913. },
  18914. set() {
  18915. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(msg);
  18916. }
  18917. });
  18918. }
  18919. }
  18920. function normalizeContainer(container) {
  18921. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(container)) {
  18922. const res = document.querySelector(container);
  18923. if (( true) && !res) {
  18924. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`Failed to mount app: mount target selector "${container}" returned null.`);
  18925. }
  18926. return res;
  18927. }
  18928. if (( true) &&
  18929. window.ShadowRoot &&
  18930. container instanceof window.ShadowRoot &&
  18931. container.mode === 'closed') {
  18932. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`mounting on a ShadowRoot with \`{mode: "closed"}\` may lead to unpredictable bugs`);
  18933. }
  18934. return container;
  18935. }
  18936. let ssrDirectiveInitialized = false;
  18937. /**
  18938. * @internal
  18939. */
  18940. const initDirectivesForSSR = () => {
  18941. if (!ssrDirectiveInitialized) {
  18942. ssrDirectiveInitialized = true;
  18943. initVModelForSSR();
  18944. initVShowForSSR();
  18945. }
  18946. }
  18947. ;
  18948. /***/ }),
  18949. /***/ "./node_modules/@vue/shared/dist/shared.esm-bundler.js":
  18950. /*!*************************************************************!*\
  18951. !*** ./node_modules/@vue/shared/dist/shared.esm-bundler.js ***!
  18952. \*************************************************************/
  18953. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  18954. "use strict";
  18955. __webpack_require__.r(__webpack_exports__);
  18956. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  18957. /* harmony export */ "EMPTY_ARR": () => (/* binding */ EMPTY_ARR),
  18958. /* harmony export */ "EMPTY_OBJ": () => (/* binding */ EMPTY_OBJ),
  18959. /* harmony export */ "NO": () => (/* binding */ NO),
  18960. /* harmony export */ "NOOP": () => (/* binding */ NOOP),
  18961. /* harmony export */ "PatchFlagNames": () => (/* binding */ PatchFlagNames),
  18962. /* harmony export */ "camelize": () => (/* binding */ camelize),
  18963. /* harmony export */ "capitalize": () => (/* binding */ capitalize),
  18964. /* harmony export */ "def": () => (/* binding */ def),
  18965. /* harmony export */ "escapeHtml": () => (/* binding */ escapeHtml),
  18966. /* harmony export */ "escapeHtmlComment": () => (/* binding */ escapeHtmlComment),
  18967. /* harmony export */ "extend": () => (/* binding */ extend),
  18968. /* harmony export */ "generateCodeFrame": () => (/* binding */ generateCodeFrame),
  18969. /* harmony export */ "getGlobalThis": () => (/* binding */ getGlobalThis),
  18970. /* harmony export */ "hasChanged": () => (/* binding */ hasChanged),
  18971. /* harmony export */ "hasOwn": () => (/* binding */ hasOwn),
  18972. /* harmony export */ "hyphenate": () => (/* binding */ hyphenate),
  18973. /* harmony export */ "includeBooleanAttr": () => (/* binding */ includeBooleanAttr),
  18974. /* harmony export */ "invokeArrayFns": () => (/* binding */ invokeArrayFns),
  18975. /* harmony export */ "isArray": () => (/* binding */ isArray),
  18976. /* harmony export */ "isBooleanAttr": () => (/* binding */ isBooleanAttr),
  18977. /* harmony export */ "isBuiltInDirective": () => (/* binding */ isBuiltInDirective),
  18978. /* harmony export */ "isDate": () => (/* binding */ isDate),
  18979. /* harmony export */ "isFunction": () => (/* binding */ isFunction),
  18980. /* harmony export */ "isGloballyWhitelisted": () => (/* binding */ isGloballyWhitelisted),
  18981. /* harmony export */ "isHTMLTag": () => (/* binding */ isHTMLTag),
  18982. /* harmony export */ "isIntegerKey": () => (/* binding */ isIntegerKey),
  18983. /* harmony export */ "isKnownHtmlAttr": () => (/* binding */ isKnownHtmlAttr),
  18984. /* harmony export */ "isKnownSvgAttr": () => (/* binding */ isKnownSvgAttr),
  18985. /* harmony export */ "isMap": () => (/* binding */ isMap),
  18986. /* harmony export */ "isModelListener": () => (/* binding */ isModelListener),
  18987. /* harmony export */ "isNoUnitNumericStyleProp": () => (/* binding */ isNoUnitNumericStyleProp),
  18988. /* harmony export */ "isObject": () => (/* binding */ isObject),
  18989. /* harmony export */ "isOn": () => (/* binding */ isOn),
  18990. /* harmony export */ "isPlainObject": () => (/* binding */ isPlainObject),
  18991. /* harmony export */ "isPromise": () => (/* binding */ isPromise),
  18992. /* harmony export */ "isReservedProp": () => (/* binding */ isReservedProp),
  18993. /* harmony export */ "isSSRSafeAttrName": () => (/* binding */ isSSRSafeAttrName),
  18994. /* harmony export */ "isSVGTag": () => (/* binding */ isSVGTag),
  18995. /* harmony export */ "isSet": () => (/* binding */ isSet),
  18996. /* harmony export */ "isSpecialBooleanAttr": () => (/* binding */ isSpecialBooleanAttr),
  18997. /* harmony export */ "isString": () => (/* binding */ isString),
  18998. /* harmony export */ "isSymbol": () => (/* binding */ isSymbol),
  18999. /* harmony export */ "isVoidTag": () => (/* binding */ isVoidTag),
  19000. /* harmony export */ "looseEqual": () => (/* binding */ looseEqual),
  19001. /* harmony export */ "looseIndexOf": () => (/* binding */ looseIndexOf),
  19002. /* harmony export */ "makeMap": () => (/* binding */ makeMap),
  19003. /* harmony export */ "normalizeClass": () => (/* binding */ normalizeClass),
  19004. /* harmony export */ "normalizeProps": () => (/* binding */ normalizeProps),
  19005. /* harmony export */ "normalizeStyle": () => (/* binding */ normalizeStyle),
  19006. /* harmony export */ "objectToString": () => (/* binding */ objectToString),
  19007. /* harmony export */ "parseStringStyle": () => (/* binding */ parseStringStyle),
  19008. /* harmony export */ "propsToAttrMap": () => (/* binding */ propsToAttrMap),
  19009. /* harmony export */ "remove": () => (/* binding */ remove),
  19010. /* harmony export */ "slotFlagsText": () => (/* binding */ slotFlagsText),
  19011. /* harmony export */ "stringifyStyle": () => (/* binding */ stringifyStyle),
  19012. /* harmony export */ "toDisplayString": () => (/* binding */ toDisplayString),
  19013. /* harmony export */ "toHandlerKey": () => (/* binding */ toHandlerKey),
  19014. /* harmony export */ "toNumber": () => (/* binding */ toNumber),
  19015. /* harmony export */ "toRawType": () => (/* binding */ toRawType),
  19016. /* harmony export */ "toTypeString": () => (/* binding */ toTypeString)
  19017. /* harmony export */ });
  19018. /**
  19019. * Make a map and return a function for checking if a key
  19020. * is in that map.
  19021. * IMPORTANT: all calls of this function must be prefixed with
  19022. * \/\*#\_\_PURE\_\_\*\/
  19023. * So that rollup can tree-shake them if necessary.
  19024. */
  19025. function makeMap(str, expectsLowerCase) {
  19026. const map = Object.create(null);
  19027. const list = str.split(',');
  19028. for (let i = 0; i < list.length; i++) {
  19029. map[list[i]] = true;
  19030. }
  19031. return expectsLowerCase ? val => !!map[val.toLowerCase()] : val => !!map[val];
  19032. }
  19033. /**
  19034. * dev only flag -> name mapping
  19035. */
  19036. const PatchFlagNames = {
  19037. [1 /* TEXT */]: `TEXT`,
  19038. [2 /* CLASS */]: `CLASS`,
  19039. [4 /* STYLE */]: `STYLE`,
  19040. [8 /* PROPS */]: `PROPS`,
  19041. [16 /* FULL_PROPS */]: `FULL_PROPS`,
  19042. [32 /* HYDRATE_EVENTS */]: `HYDRATE_EVENTS`,
  19043. [64 /* STABLE_FRAGMENT */]: `STABLE_FRAGMENT`,
  19044. [128 /* KEYED_FRAGMENT */]: `KEYED_FRAGMENT`,
  19045. [256 /* UNKEYED_FRAGMENT */]: `UNKEYED_FRAGMENT`,
  19046. [512 /* NEED_PATCH */]: `NEED_PATCH`,
  19047. [1024 /* DYNAMIC_SLOTS */]: `DYNAMIC_SLOTS`,
  19048. [2048 /* DEV_ROOT_FRAGMENT */]: `DEV_ROOT_FRAGMENT`,
  19049. [-1 /* HOISTED */]: `HOISTED`,
  19050. [-2 /* BAIL */]: `BAIL`
  19051. };
  19052. /**
  19053. * Dev only
  19054. */
  19055. const slotFlagsText = {
  19056. [1 /* STABLE */]: 'STABLE',
  19057. [2 /* DYNAMIC */]: 'DYNAMIC',
  19058. [3 /* FORWARDED */]: 'FORWARDED'
  19059. };
  19060. const GLOBALS_WHITE_LISTED = 'Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,' +
  19061. 'decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,' +
  19062. 'Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt';
  19063. const isGloballyWhitelisted = /*#__PURE__*/ makeMap(GLOBALS_WHITE_LISTED);
  19064. const range = 2;
  19065. function generateCodeFrame(source, start = 0, end = source.length) {
  19066. // Split the content into individual lines but capture the newline sequence
  19067. // that separated each line. This is important because the actual sequence is
  19068. // needed to properly take into account the full line length for offset
  19069. // comparison
  19070. let lines = source.split(/(\r?\n)/);
  19071. // Separate the lines and newline sequences into separate arrays for easier referencing
  19072. const newlineSequences = lines.filter((_, idx) => idx % 2 === 1);
  19073. lines = lines.filter((_, idx) => idx % 2 === 0);
  19074. let count = 0;
  19075. const res = [];
  19076. for (let i = 0; i < lines.length; i++) {
  19077. count +=
  19078. lines[i].length +
  19079. ((newlineSequences[i] && newlineSequences[i].length) || 0);
  19080. if (count >= start) {
  19081. for (let j = i - range; j <= i + range || end > count; j++) {
  19082. if (j < 0 || j >= lines.length)
  19083. continue;
  19084. const line = j + 1;
  19085. res.push(`${line}${' '.repeat(Math.max(3 - String(line).length, 0))}| ${lines[j]}`);
  19086. const lineLength = lines[j].length;
  19087. const newLineSeqLength = (newlineSequences[j] && newlineSequences[j].length) || 0;
  19088. if (j === i) {
  19089. // push underline
  19090. const pad = start - (count - (lineLength + newLineSeqLength));
  19091. const length = Math.max(1, end > count ? lineLength - pad : end - start);
  19092. res.push(` | ` + ' '.repeat(pad) + '^'.repeat(length));
  19093. }
  19094. else if (j > i) {
  19095. if (end > count) {
  19096. const length = Math.max(Math.min(end - count, lineLength), 1);
  19097. res.push(` | ` + '^'.repeat(length));
  19098. }
  19099. count += lineLength + newLineSeqLength;
  19100. }
  19101. }
  19102. break;
  19103. }
  19104. }
  19105. return res.join('\n');
  19106. }
  19107. /**
  19108. * On the client we only need to offer special cases for boolean attributes that
  19109. * have different names from their corresponding dom properties:
  19110. * - itemscope -> N/A
  19111. * - allowfullscreen -> allowFullscreen
  19112. * - formnovalidate -> formNoValidate
  19113. * - ismap -> isMap
  19114. * - nomodule -> noModule
  19115. * - novalidate -> noValidate
  19116. * - readonly -> readOnly
  19117. */
  19118. const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;
  19119. const isSpecialBooleanAttr = /*#__PURE__*/ makeMap(specialBooleanAttrs);
  19120. /**
  19121. * The full list is needed during SSR to produce the correct initial markup.
  19122. */
  19123. const isBooleanAttr = /*#__PURE__*/ makeMap(specialBooleanAttrs +
  19124. `,async,autofocus,autoplay,controls,default,defer,disabled,hidden,` +
  19125. `loop,open,required,reversed,scoped,seamless,` +
  19126. `checked,muted,multiple,selected`);
  19127. /**
  19128. * Boolean attributes should be included if the value is truthy or ''.
  19129. * e.g. `<select multiple>` compiles to `{ multiple: '' }`
  19130. */
  19131. function includeBooleanAttr(value) {
  19132. return !!value || value === '';
  19133. }
  19134. const unsafeAttrCharRE = /[>/="'\u0009\u000a\u000c\u0020]/;
  19135. const attrValidationCache = {};
  19136. function isSSRSafeAttrName(name) {
  19137. if (attrValidationCache.hasOwnProperty(name)) {
  19138. return attrValidationCache[name];
  19139. }
  19140. const isUnsafe = unsafeAttrCharRE.test(name);
  19141. if (isUnsafe) {
  19142. console.error(`unsafe attribute name: ${name}`);
  19143. }
  19144. return (attrValidationCache[name] = !isUnsafe);
  19145. }
  19146. const propsToAttrMap = {
  19147. acceptCharset: 'accept-charset',
  19148. className: 'class',
  19149. htmlFor: 'for',
  19150. httpEquiv: 'http-equiv'
  19151. };
  19152. /**
  19153. * CSS properties that accept plain numbers
  19154. */
  19155. const isNoUnitNumericStyleProp = /*#__PURE__*/ makeMap(`animation-iteration-count,border-image-outset,border-image-slice,` +
  19156. `border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,` +
  19157. `columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,` +
  19158. `grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,` +
  19159. `grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,` +
  19160. `line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,` +
  19161. // SVG
  19162. `fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,` +
  19163. `stroke-miterlimit,stroke-opacity,stroke-width`);
  19164. /**
  19165. * Known attributes, this is used for stringification of runtime static nodes
  19166. * so that we don't stringify bindings that cannot be set from HTML.
  19167. * Don't also forget to allow `data-*` and `aria-*`!
  19168. * Generated from https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes
  19169. */
  19170. const isKnownHtmlAttr = /*#__PURE__*/ makeMap(`accept,accept-charset,accesskey,action,align,allow,alt,async,` +
  19171. `autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,` +
  19172. `border,buffered,capture,challenge,charset,checked,cite,class,code,` +
  19173. `codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,` +
  19174. `coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,` +
  19175. `disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,` +
  19176. `formaction,formenctype,formmethod,formnovalidate,formtarget,headers,` +
  19177. `height,hidden,high,href,hreflang,http-equiv,icon,id,importance,integrity,` +
  19178. `ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,` +
  19179. `manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,` +
  19180. `open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,` +
  19181. `referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,` +
  19182. `selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,` +
  19183. `start,step,style,summary,tabindex,target,title,translate,type,usemap,` +
  19184. `value,width,wrap`);
  19185. /**
  19186. * Generated from https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute
  19187. */
  19188. const isKnownSvgAttr = /*#__PURE__*/ makeMap(`xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,` +
  19189. `arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,` +
  19190. `baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,` +
  19191. `clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,` +
  19192. `color-interpolation-filters,color-profile,color-rendering,` +
  19193. `contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,` +
  19194. `descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,` +
  19195. `dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,` +
  19196. `fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,` +
  19197. `font-family,font-size,font-size-adjust,font-stretch,font-style,` +
  19198. `font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,` +
  19199. `glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,` +
  19200. `gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,` +
  19201. `horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,` +
  19202. `k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,` +
  19203. `lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,` +
  19204. `marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,` +
  19205. `mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,` +
  19206. `name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,` +
  19207. `overflow,overline-position,overline-thickness,panose-1,paint-order,path,` +
  19208. `pathLength,patternContentUnits,patternTransform,patternUnits,ping,` +
  19209. `pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,` +
  19210. `preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,` +
  19211. `rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,` +
  19212. `restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,` +
  19213. `specularConstant,specularExponent,speed,spreadMethod,startOffset,` +
  19214. `stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,` +
  19215. `strikethrough-position,strikethrough-thickness,string,stroke,` +
  19216. `stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,` +
  19217. `stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,` +
  19218. `systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,` +
  19219. `text-decoration,text-rendering,textLength,to,transform,transform-origin,` +
  19220. `type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,` +
  19221. `unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,` +
  19222. `v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,` +
  19223. `vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,` +
  19224. `writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,` +
  19225. `xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,` +
  19226. `xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan`);
  19227. function normalizeStyle(value) {
  19228. if (isArray(value)) {
  19229. const res = {};
  19230. for (let i = 0; i < value.length; i++) {
  19231. const item = value[i];
  19232. const normalized = isString(item)
  19233. ? parseStringStyle(item)
  19234. : normalizeStyle(item);
  19235. if (normalized) {
  19236. for (const key in normalized) {
  19237. res[key] = normalized[key];
  19238. }
  19239. }
  19240. }
  19241. return res;
  19242. }
  19243. else if (isString(value)) {
  19244. return value;
  19245. }
  19246. else if (isObject(value)) {
  19247. return value;
  19248. }
  19249. }
  19250. const listDelimiterRE = /;(?![^(]*\))/g;
  19251. const propertyDelimiterRE = /:(.+)/;
  19252. function parseStringStyle(cssText) {
  19253. const ret = {};
  19254. cssText.split(listDelimiterRE).forEach(item => {
  19255. if (item) {
  19256. const tmp = item.split(propertyDelimiterRE);
  19257. tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim());
  19258. }
  19259. });
  19260. return ret;
  19261. }
  19262. function stringifyStyle(styles) {
  19263. let ret = '';
  19264. if (!styles || isString(styles)) {
  19265. return ret;
  19266. }
  19267. for (const key in styles) {
  19268. const value = styles[key];
  19269. const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key);
  19270. if (isString(value) ||
  19271. (typeof value === 'number' && isNoUnitNumericStyleProp(normalizedKey))) {
  19272. // only render valid values
  19273. ret += `${normalizedKey}:${value};`;
  19274. }
  19275. }
  19276. return ret;
  19277. }
  19278. function normalizeClass(value) {
  19279. let res = '';
  19280. if (isString(value)) {
  19281. res = value;
  19282. }
  19283. else if (isArray(value)) {
  19284. for (let i = 0; i < value.length; i++) {
  19285. const normalized = normalizeClass(value[i]);
  19286. if (normalized) {
  19287. res += normalized + ' ';
  19288. }
  19289. }
  19290. }
  19291. else if (isObject(value)) {
  19292. for (const name in value) {
  19293. if (value[name]) {
  19294. res += name + ' ';
  19295. }
  19296. }
  19297. }
  19298. return res.trim();
  19299. }
  19300. function normalizeProps(props) {
  19301. if (!props)
  19302. return null;
  19303. let { class: klass, style } = props;
  19304. if (klass && !isString(klass)) {
  19305. props.class = normalizeClass(klass);
  19306. }
  19307. if (style) {
  19308. props.style = normalizeStyle(style);
  19309. }
  19310. return props;
  19311. }
  19312. // These tag configs are shared between compiler-dom and runtime-dom, so they
  19313. // https://developer.mozilla.org/en-US/docs/Web/HTML/Element
  19314. const HTML_TAGS = 'html,body,base,head,link,meta,style,title,address,article,aside,footer,' +
  19315. 'header,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,' +
  19316. 'figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,' +
  19317. 'data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,' +
  19318. 'time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,' +
  19319. 'canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,' +
  19320. 'th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,' +
  19321. 'option,output,progress,select,textarea,details,dialog,menu,' +
  19322. 'summary,template,blockquote,iframe,tfoot';
  19323. // https://developer.mozilla.org/en-US/docs/Web/SVG/Element
  19324. const SVG_TAGS = 'svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,' +
  19325. 'defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,' +
  19326. 'feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,' +
  19327. 'feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,' +
  19328. 'feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,' +
  19329. 'fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,' +
  19330. 'foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,' +
  19331. 'mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,' +
  19332. 'polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,' +
  19333. 'text,textPath,title,tspan,unknown,use,view';
  19334. const VOID_TAGS = 'area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr';
  19335. /**
  19336. * Compiler only.
  19337. * Do NOT use in runtime code paths unless behind `(process.env.NODE_ENV !== 'production')` flag.
  19338. */
  19339. const isHTMLTag = /*#__PURE__*/ makeMap(HTML_TAGS);
  19340. /**
  19341. * Compiler only.
  19342. * Do NOT use in runtime code paths unless behind `(process.env.NODE_ENV !== 'production')` flag.
  19343. */
  19344. const isSVGTag = /*#__PURE__*/ makeMap(SVG_TAGS);
  19345. /**
  19346. * Compiler only.
  19347. * Do NOT use in runtime code paths unless behind `(process.env.NODE_ENV !== 'production')` flag.
  19348. */
  19349. const isVoidTag = /*#__PURE__*/ makeMap(VOID_TAGS);
  19350. const escapeRE = /["'&<>]/;
  19351. function escapeHtml(string) {
  19352. const str = '' + string;
  19353. const match = escapeRE.exec(str);
  19354. if (!match) {
  19355. return str;
  19356. }
  19357. let html = '';
  19358. let escaped;
  19359. let index;
  19360. let lastIndex = 0;
  19361. for (index = match.index; index < str.length; index++) {
  19362. switch (str.charCodeAt(index)) {
  19363. case 34: // "
  19364. escaped = '&quot;';
  19365. break;
  19366. case 38: // &
  19367. escaped = '&amp;';
  19368. break;
  19369. case 39: // '
  19370. escaped = '&#39;';
  19371. break;
  19372. case 60: // <
  19373. escaped = '&lt;';
  19374. break;
  19375. case 62: // >
  19376. escaped = '&gt;';
  19377. break;
  19378. default:
  19379. continue;
  19380. }
  19381. if (lastIndex !== index) {
  19382. html += str.slice(lastIndex, index);
  19383. }
  19384. lastIndex = index + 1;
  19385. html += escaped;
  19386. }
  19387. return lastIndex !== index ? html + str.slice(lastIndex, index) : html;
  19388. }
  19389. // https://www.w3.org/TR/html52/syntax.html#comments
  19390. const commentStripRE = /^-?>|<!--|-->|--!>|<!-$/g;
  19391. function escapeHtmlComment(src) {
  19392. return src.replace(commentStripRE, '');
  19393. }
  19394. function looseCompareArrays(a, b) {
  19395. if (a.length !== b.length)
  19396. return false;
  19397. let equal = true;
  19398. for (let i = 0; equal && i < a.length; i++) {
  19399. equal = looseEqual(a[i], b[i]);
  19400. }
  19401. return equal;
  19402. }
  19403. function looseEqual(a, b) {
  19404. if (a === b)
  19405. return true;
  19406. let aValidType = isDate(a);
  19407. let bValidType = isDate(b);
  19408. if (aValidType || bValidType) {
  19409. return aValidType && bValidType ? a.getTime() === b.getTime() : false;
  19410. }
  19411. aValidType = isArray(a);
  19412. bValidType = isArray(b);
  19413. if (aValidType || bValidType) {
  19414. return aValidType && bValidType ? looseCompareArrays(a, b) : false;
  19415. }
  19416. aValidType = isObject(a);
  19417. bValidType = isObject(b);
  19418. if (aValidType || bValidType) {
  19419. /* istanbul ignore if: this if will probably never be called */
  19420. if (!aValidType || !bValidType) {
  19421. return false;
  19422. }
  19423. const aKeysCount = Object.keys(a).length;
  19424. const bKeysCount = Object.keys(b).length;
  19425. if (aKeysCount !== bKeysCount) {
  19426. return false;
  19427. }
  19428. for (const key in a) {
  19429. const aHasKey = a.hasOwnProperty(key);
  19430. const bHasKey = b.hasOwnProperty(key);
  19431. if ((aHasKey && !bHasKey) ||
  19432. (!aHasKey && bHasKey) ||
  19433. !looseEqual(a[key], b[key])) {
  19434. return false;
  19435. }
  19436. }
  19437. }
  19438. return String(a) === String(b);
  19439. }
  19440. function looseIndexOf(arr, val) {
  19441. return arr.findIndex(item => looseEqual(item, val));
  19442. }
  19443. /**
  19444. * For converting {{ interpolation }} values to displayed strings.
  19445. * @private
  19446. */
  19447. const toDisplayString = (val) => {
  19448. return isString(val)
  19449. ? val
  19450. : val == null
  19451. ? ''
  19452. : isArray(val) ||
  19453. (isObject(val) &&
  19454. (val.toString === objectToString || !isFunction(val.toString)))
  19455. ? JSON.stringify(val, replacer, 2)
  19456. : String(val);
  19457. };
  19458. const replacer = (_key, val) => {
  19459. // can't use isRef here since @vue/shared has no deps
  19460. if (val && val.__v_isRef) {
  19461. return replacer(_key, val.value);
  19462. }
  19463. else if (isMap(val)) {
  19464. return {
  19465. [`Map(${val.size})`]: [...val.entries()].reduce((entries, [key, val]) => {
  19466. entries[`${key} =>`] = val;
  19467. return entries;
  19468. }, {})
  19469. };
  19470. }
  19471. else if (isSet(val)) {
  19472. return {
  19473. [`Set(${val.size})`]: [...val.values()]
  19474. };
  19475. }
  19476. else if (isObject(val) && !isArray(val) && !isPlainObject(val)) {
  19477. return String(val);
  19478. }
  19479. return val;
  19480. };
  19481. const EMPTY_OBJ = ( true)
  19482. ? Object.freeze({})
  19483. : 0;
  19484. const EMPTY_ARR = ( true) ? Object.freeze([]) : 0;
  19485. const NOOP = () => { };
  19486. /**
  19487. * Always return false.
  19488. */
  19489. const NO = () => false;
  19490. const onRE = /^on[^a-z]/;
  19491. const isOn = (key) => onRE.test(key);
  19492. const isModelListener = (key) => key.startsWith('onUpdate:');
  19493. const extend = Object.assign;
  19494. const remove = (arr, el) => {
  19495. const i = arr.indexOf(el);
  19496. if (i > -1) {
  19497. arr.splice(i, 1);
  19498. }
  19499. };
  19500. const hasOwnProperty = Object.prototype.hasOwnProperty;
  19501. const hasOwn = (val, key) => hasOwnProperty.call(val, key);
  19502. const isArray = Array.isArray;
  19503. const isMap = (val) => toTypeString(val) === '[object Map]';
  19504. const isSet = (val) => toTypeString(val) === '[object Set]';
  19505. const isDate = (val) => val instanceof Date;
  19506. const isFunction = (val) => typeof val === 'function';
  19507. const isString = (val) => typeof val === 'string';
  19508. const isSymbol = (val) => typeof val === 'symbol';
  19509. const isObject = (val) => val !== null && typeof val === 'object';
  19510. const isPromise = (val) => {
  19511. return isObject(val) && isFunction(val.then) && isFunction(val.catch);
  19512. };
  19513. const objectToString = Object.prototype.toString;
  19514. const toTypeString = (value) => objectToString.call(value);
  19515. const toRawType = (value) => {
  19516. // extract "RawType" from strings like "[object RawType]"
  19517. return toTypeString(value).slice(8, -1);
  19518. };
  19519. const isPlainObject = (val) => toTypeString(val) === '[object Object]';
  19520. const isIntegerKey = (key) => isString(key) &&
  19521. key !== 'NaN' &&
  19522. key[0] !== '-' &&
  19523. '' + parseInt(key, 10) === key;
  19524. const isReservedProp = /*#__PURE__*/ makeMap(
  19525. // the leading comma is intentional so empty string "" is also included
  19526. ',key,ref,ref_for,ref_key,' +
  19527. 'onVnodeBeforeMount,onVnodeMounted,' +
  19528. 'onVnodeBeforeUpdate,onVnodeUpdated,' +
  19529. 'onVnodeBeforeUnmount,onVnodeUnmounted');
  19530. const isBuiltInDirective = /*#__PURE__*/ makeMap('bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo');
  19531. const cacheStringFunction = (fn) => {
  19532. const cache = Object.create(null);
  19533. return ((str) => {
  19534. const hit = cache[str];
  19535. return hit || (cache[str] = fn(str));
  19536. });
  19537. };
  19538. const camelizeRE = /-(\w)/g;
  19539. /**
  19540. * @private
  19541. */
  19542. const camelize = cacheStringFunction((str) => {
  19543. return str.replace(camelizeRE, (_, c) => (c ? c.toUpperCase() : ''));
  19544. });
  19545. const hyphenateRE = /\B([A-Z])/g;
  19546. /**
  19547. * @private
  19548. */
  19549. const hyphenate = cacheStringFunction((str) => str.replace(hyphenateRE, '-$1').toLowerCase());
  19550. /**
  19551. * @private
  19552. */
  19553. const capitalize = cacheStringFunction((str) => str.charAt(0).toUpperCase() + str.slice(1));
  19554. /**
  19555. * @private
  19556. */
  19557. const toHandlerKey = cacheStringFunction((str) => str ? `on${capitalize(str)}` : ``);
  19558. // compare whether a value has changed, accounting for NaN.
  19559. const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
  19560. const invokeArrayFns = (fns, arg) => {
  19561. for (let i = 0; i < fns.length; i++) {
  19562. fns[i](arg);
  19563. }
  19564. };
  19565. const def = (obj, key, value) => {
  19566. Object.defineProperty(obj, key, {
  19567. configurable: true,
  19568. enumerable: false,
  19569. value
  19570. });
  19571. };
  19572. const toNumber = (val) => {
  19573. const n = parseFloat(val);
  19574. return isNaN(n) ? val : n;
  19575. };
  19576. let _globalThis;
  19577. const getGlobalThis = () => {
  19578. return (_globalThis ||
  19579. (_globalThis =
  19580. typeof globalThis !== 'undefined'
  19581. ? globalThis
  19582. : typeof self !== 'undefined'
  19583. ? self
  19584. : typeof window !== 'undefined'
  19585. ? window
  19586. : typeof __webpack_require__.g !== 'undefined'
  19587. ? __webpack_require__.g
  19588. : {}));
  19589. };
  19590. /***/ }),
  19591. /***/ "./node_modules/base64-js/index.js":
  19592. /*!*****************************************!*\
  19593. !*** ./node_modules/base64-js/index.js ***!
  19594. \*****************************************/
  19595. /***/ ((__unused_webpack_module, exports) => {
  19596. "use strict";
  19597. exports.byteLength = byteLength
  19598. exports.toByteArray = toByteArray
  19599. exports.fromByteArray = fromByteArray
  19600. var lookup = []
  19601. var revLookup = []
  19602. var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
  19603. var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  19604. for (var i = 0, len = code.length; i < len; ++i) {
  19605. lookup[i] = code[i]
  19606. revLookup[code.charCodeAt(i)] = i
  19607. }
  19608. // Support decoding URL-safe base64 strings, as Node.js does.
  19609. // See: https://en.wikipedia.org/wiki/Base64#URL_applications
  19610. revLookup['-'.charCodeAt(0)] = 62
  19611. revLookup['_'.charCodeAt(0)] = 63
  19612. function getLens (b64) {
  19613. var len = b64.length
  19614. if (len % 4 > 0) {
  19615. throw new Error('Invalid string. Length must be a multiple of 4')
  19616. }
  19617. // Trim off extra bytes after placeholder bytes are found
  19618. // See: https://github.com/beatgammit/base64-js/issues/42
  19619. var validLen = b64.indexOf('=')
  19620. if (validLen === -1) validLen = len
  19621. var placeHoldersLen = validLen === len
  19622. ? 0
  19623. : 4 - (validLen % 4)
  19624. return [validLen, placeHoldersLen]
  19625. }
  19626. // base64 is 4/3 + up to two characters of the original data
  19627. function byteLength (b64) {
  19628. var lens = getLens(b64)
  19629. var validLen = lens[0]
  19630. var placeHoldersLen = lens[1]
  19631. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  19632. }
  19633. function _byteLength (b64, validLen, placeHoldersLen) {
  19634. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  19635. }
  19636. function toByteArray (b64) {
  19637. var tmp
  19638. var lens = getLens(b64)
  19639. var validLen = lens[0]
  19640. var placeHoldersLen = lens[1]
  19641. var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
  19642. var curByte = 0
  19643. // if there are placeholders, only get up to the last complete 4 chars
  19644. var len = placeHoldersLen > 0
  19645. ? validLen - 4
  19646. : validLen
  19647. var i
  19648. for (i = 0; i < len; i += 4) {
  19649. tmp =
  19650. (revLookup[b64.charCodeAt(i)] << 18) |
  19651. (revLookup[b64.charCodeAt(i + 1)] << 12) |
  19652. (revLookup[b64.charCodeAt(i + 2)] << 6) |
  19653. revLookup[b64.charCodeAt(i + 3)]
  19654. arr[curByte++] = (tmp >> 16) & 0xFF
  19655. arr[curByte++] = (tmp >> 8) & 0xFF
  19656. arr[curByte++] = tmp & 0xFF
  19657. }
  19658. if (placeHoldersLen === 2) {
  19659. tmp =
  19660. (revLookup[b64.charCodeAt(i)] << 2) |
  19661. (revLookup[b64.charCodeAt(i + 1)] >> 4)
  19662. arr[curByte++] = tmp & 0xFF
  19663. }
  19664. if (placeHoldersLen === 1) {
  19665. tmp =
  19666. (revLookup[b64.charCodeAt(i)] << 10) |
  19667. (revLookup[b64.charCodeAt(i + 1)] << 4) |
  19668. (revLookup[b64.charCodeAt(i + 2)] >> 2)
  19669. arr[curByte++] = (tmp >> 8) & 0xFF
  19670. arr[curByte++] = tmp & 0xFF
  19671. }
  19672. return arr
  19673. }
  19674. function tripletToBase64 (num) {
  19675. return lookup[num >> 18 & 0x3F] +
  19676. lookup[num >> 12 & 0x3F] +
  19677. lookup[num >> 6 & 0x3F] +
  19678. lookup[num & 0x3F]
  19679. }
  19680. function encodeChunk (uint8, start, end) {
  19681. var tmp
  19682. var output = []
  19683. for (var i = start; i < end; i += 3) {
  19684. tmp =
  19685. ((uint8[i] << 16) & 0xFF0000) +
  19686. ((uint8[i + 1] << 8) & 0xFF00) +
  19687. (uint8[i + 2] & 0xFF)
  19688. output.push(tripletToBase64(tmp))
  19689. }
  19690. return output.join('')
  19691. }
  19692. function fromByteArray (uint8) {
  19693. var tmp
  19694. var len = uint8.length
  19695. var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
  19696. var parts = []
  19697. var maxChunkLength = 16383 // must be multiple of 3
  19698. // go through the array every three bytes, we'll deal with trailing stuff later
  19699. for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
  19700. parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
  19701. }
  19702. // pad the end with zeros, but make sure to not forget the extra bytes
  19703. if (extraBytes === 1) {
  19704. tmp = uint8[len - 1]
  19705. parts.push(
  19706. lookup[tmp >> 2] +
  19707. lookup[(tmp << 4) & 0x3F] +
  19708. '=='
  19709. )
  19710. } else if (extraBytes === 2) {
  19711. tmp = (uint8[len - 2] << 8) + uint8[len - 1]
  19712. parts.push(
  19713. lookup[tmp >> 10] +
  19714. lookup[(tmp >> 4) & 0x3F] +
  19715. lookup[(tmp << 2) & 0x3F] +
  19716. '='
  19717. )
  19718. }
  19719. return parts.join('')
  19720. }
  19721. /***/ }),
  19722. /***/ "./node_modules/buffer/index.js":
  19723. /*!**************************************!*\
  19724. !*** ./node_modules/buffer/index.js ***!
  19725. \**************************************/
  19726. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  19727. "use strict";
  19728. /*!
  19729. * The buffer module from node.js, for the browser.
  19730. *
  19731. * @author Feross Aboukhadijeh <http://feross.org>
  19732. * @license MIT
  19733. */
  19734. /* eslint-disable no-proto */
  19735. var base64 = __webpack_require__(/*! base64-js */ "./node_modules/base64-js/index.js")
  19736. var ieee754 = __webpack_require__(/*! ieee754 */ "./node_modules/ieee754/index.js")
  19737. var isArray = __webpack_require__(/*! isarray */ "./node_modules/isarray/index.js")
  19738. exports.Buffer = Buffer
  19739. exports.SlowBuffer = SlowBuffer
  19740. exports.INSPECT_MAX_BYTES = 50
  19741. /**
  19742. * If `Buffer.TYPED_ARRAY_SUPPORT`:
  19743. * === true Use Uint8Array implementation (fastest)
  19744. * === false Use Object implementation (most compatible, even IE6)
  19745. *
  19746. * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
  19747. * Opera 11.6+, iOS 4.2+.
  19748. *
  19749. * Due to various browser bugs, sometimes the Object implementation will be used even
  19750. * when the browser supports typed arrays.
  19751. *
  19752. * Note:
  19753. *
  19754. * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
  19755. * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
  19756. *
  19757. * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
  19758. *
  19759. * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
  19760. * incorrect length in some situations.
  19761. * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
  19762. * get the Object implementation, which is slower but behaves correctly.
  19763. */
  19764. Buffer.TYPED_ARRAY_SUPPORT = __webpack_require__.g.TYPED_ARRAY_SUPPORT !== undefined
  19765. ? __webpack_require__.g.TYPED_ARRAY_SUPPORT
  19766. : typedArraySupport()
  19767. /*
  19768. * Export kMaxLength after typed array support is determined.
  19769. */
  19770. exports.kMaxLength = kMaxLength()
  19771. function typedArraySupport () {
  19772. try {
  19773. var arr = new Uint8Array(1)
  19774. arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
  19775. return arr.foo() === 42 && // typed array instances can be augmented
  19776. typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
  19777. arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
  19778. } catch (e) {
  19779. return false
  19780. }
  19781. }
  19782. function kMaxLength () {
  19783. return Buffer.TYPED_ARRAY_SUPPORT
  19784. ? 0x7fffffff
  19785. : 0x3fffffff
  19786. }
  19787. function createBuffer (that, length) {
  19788. if (kMaxLength() < length) {
  19789. throw new RangeError('Invalid typed array length')
  19790. }
  19791. if (Buffer.TYPED_ARRAY_SUPPORT) {
  19792. // Return an augmented `Uint8Array` instance, for best performance
  19793. that = new Uint8Array(length)
  19794. that.__proto__ = Buffer.prototype
  19795. } else {
  19796. // Fallback: Return an object instance of the Buffer class
  19797. if (that === null) {
  19798. that = new Buffer(length)
  19799. }
  19800. that.length = length
  19801. }
  19802. return that
  19803. }
  19804. /**
  19805. * The Buffer constructor returns instances of `Uint8Array` that have their
  19806. * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
  19807. * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
  19808. * and the `Uint8Array` methods. Square bracket notation works as expected -- it
  19809. * returns a single octet.
  19810. *
  19811. * The `Uint8Array` prototype remains unmodified.
  19812. */
  19813. function Buffer (arg, encodingOrOffset, length) {
  19814. if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
  19815. return new Buffer(arg, encodingOrOffset, length)
  19816. }
  19817. // Common case.
  19818. if (typeof arg === 'number') {
  19819. if (typeof encodingOrOffset === 'string') {
  19820. throw new Error(
  19821. 'If encoding is specified then the first argument must be a string'
  19822. )
  19823. }
  19824. return allocUnsafe(this, arg)
  19825. }
  19826. return from(this, arg, encodingOrOffset, length)
  19827. }
  19828. Buffer.poolSize = 8192 // not used by this implementation
  19829. // TODO: Legacy, not needed anymore. Remove in next major version.
  19830. Buffer._augment = function (arr) {
  19831. arr.__proto__ = Buffer.prototype
  19832. return arr
  19833. }
  19834. function from (that, value, encodingOrOffset, length) {
  19835. if (typeof value === 'number') {
  19836. throw new TypeError('"value" argument must not be a number')
  19837. }
  19838. if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
  19839. return fromArrayBuffer(that, value, encodingOrOffset, length)
  19840. }
  19841. if (typeof value === 'string') {
  19842. return fromString(that, value, encodingOrOffset)
  19843. }
  19844. return fromObject(that, value)
  19845. }
  19846. /**
  19847. * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
  19848. * if value is a number.
  19849. * Buffer.from(str[, encoding])
  19850. * Buffer.from(array)
  19851. * Buffer.from(buffer)
  19852. * Buffer.from(arrayBuffer[, byteOffset[, length]])
  19853. **/
  19854. Buffer.from = function (value, encodingOrOffset, length) {
  19855. return from(null, value, encodingOrOffset, length)
  19856. }
  19857. if (Buffer.TYPED_ARRAY_SUPPORT) {
  19858. Buffer.prototype.__proto__ = Uint8Array.prototype
  19859. Buffer.__proto__ = Uint8Array
  19860. if (typeof Symbol !== 'undefined' && Symbol.species &&
  19861. Buffer[Symbol.species] === Buffer) {
  19862. // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
  19863. Object.defineProperty(Buffer, Symbol.species, {
  19864. value: null,
  19865. configurable: true
  19866. })
  19867. }
  19868. }
  19869. function assertSize (size) {
  19870. if (typeof size !== 'number') {
  19871. throw new TypeError('"size" argument must be a number')
  19872. } else if (size < 0) {
  19873. throw new RangeError('"size" argument must not be negative')
  19874. }
  19875. }
  19876. function alloc (that, size, fill, encoding) {
  19877. assertSize(size)
  19878. if (size <= 0) {
  19879. return createBuffer(that, size)
  19880. }
  19881. if (fill !== undefined) {
  19882. // Only pay attention to encoding if it's a string. This
  19883. // prevents accidentally sending in a number that would
  19884. // be interpretted as a start offset.
  19885. return typeof encoding === 'string'
  19886. ? createBuffer(that, size).fill(fill, encoding)
  19887. : createBuffer(that, size).fill(fill)
  19888. }
  19889. return createBuffer(that, size)
  19890. }
  19891. /**
  19892. * Creates a new filled Buffer instance.
  19893. * alloc(size[, fill[, encoding]])
  19894. **/
  19895. Buffer.alloc = function (size, fill, encoding) {
  19896. return alloc(null, size, fill, encoding)
  19897. }
  19898. function allocUnsafe (that, size) {
  19899. assertSize(size)
  19900. that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
  19901. if (!Buffer.TYPED_ARRAY_SUPPORT) {
  19902. for (var i = 0; i < size; ++i) {
  19903. that[i] = 0
  19904. }
  19905. }
  19906. return that
  19907. }
  19908. /**
  19909. * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
  19910. * */
  19911. Buffer.allocUnsafe = function (size) {
  19912. return allocUnsafe(null, size)
  19913. }
  19914. /**
  19915. * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
  19916. */
  19917. Buffer.allocUnsafeSlow = function (size) {
  19918. return allocUnsafe(null, size)
  19919. }
  19920. function fromString (that, string, encoding) {
  19921. if (typeof encoding !== 'string' || encoding === '') {
  19922. encoding = 'utf8'
  19923. }
  19924. if (!Buffer.isEncoding(encoding)) {
  19925. throw new TypeError('"encoding" must be a valid string encoding')
  19926. }
  19927. var length = byteLength(string, encoding) | 0
  19928. that = createBuffer(that, length)
  19929. var actual = that.write(string, encoding)
  19930. if (actual !== length) {
  19931. // Writing a hex string, for example, that contains invalid characters will
  19932. // cause everything after the first invalid character to be ignored. (e.g.
  19933. // 'abxxcd' will be treated as 'ab')
  19934. that = that.slice(0, actual)
  19935. }
  19936. return that
  19937. }
  19938. function fromArrayLike (that, array) {
  19939. var length = array.length < 0 ? 0 : checked(array.length) | 0
  19940. that = createBuffer(that, length)
  19941. for (var i = 0; i < length; i += 1) {
  19942. that[i] = array[i] & 255
  19943. }
  19944. return that
  19945. }
  19946. function fromArrayBuffer (that, array, byteOffset, length) {
  19947. array.byteLength // this throws if `array` is not a valid ArrayBuffer
  19948. if (byteOffset < 0 || array.byteLength < byteOffset) {
  19949. throw new RangeError('\'offset\' is out of bounds')
  19950. }
  19951. if (array.byteLength < byteOffset + (length || 0)) {
  19952. throw new RangeError('\'length\' is out of bounds')
  19953. }
  19954. if (byteOffset === undefined && length === undefined) {
  19955. array = new Uint8Array(array)
  19956. } else if (length === undefined) {
  19957. array = new Uint8Array(array, byteOffset)
  19958. } else {
  19959. array = new Uint8Array(array, byteOffset, length)
  19960. }
  19961. if (Buffer.TYPED_ARRAY_SUPPORT) {
  19962. // Return an augmented `Uint8Array` instance, for best performance
  19963. that = array
  19964. that.__proto__ = Buffer.prototype
  19965. } else {
  19966. // Fallback: Return an object instance of the Buffer class
  19967. that = fromArrayLike(that, array)
  19968. }
  19969. return that
  19970. }
  19971. function fromObject (that, obj) {
  19972. if (Buffer.isBuffer(obj)) {
  19973. var len = checked(obj.length) | 0
  19974. that = createBuffer(that, len)
  19975. if (that.length === 0) {
  19976. return that
  19977. }
  19978. obj.copy(that, 0, 0, len)
  19979. return that
  19980. }
  19981. if (obj) {
  19982. if ((typeof ArrayBuffer !== 'undefined' &&
  19983. obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
  19984. if (typeof obj.length !== 'number' || isnan(obj.length)) {
  19985. return createBuffer(that, 0)
  19986. }
  19987. return fromArrayLike(that, obj)
  19988. }
  19989. if (obj.type === 'Buffer' && isArray(obj.data)) {
  19990. return fromArrayLike(that, obj.data)
  19991. }
  19992. }
  19993. throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
  19994. }
  19995. function checked (length) {
  19996. // Note: cannot use `length < kMaxLength()` here because that fails when
  19997. // length is NaN (which is otherwise coerced to zero.)
  19998. if (length >= kMaxLength()) {
  19999. throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
  20000. 'size: 0x' + kMaxLength().toString(16) + ' bytes')
  20001. }
  20002. return length | 0
  20003. }
  20004. function SlowBuffer (length) {
  20005. if (+length != length) { // eslint-disable-line eqeqeq
  20006. length = 0
  20007. }
  20008. return Buffer.alloc(+length)
  20009. }
  20010. Buffer.isBuffer = function isBuffer (b) {
  20011. return !!(b != null && b._isBuffer)
  20012. }
  20013. Buffer.compare = function compare (a, b) {
  20014. if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
  20015. throw new TypeError('Arguments must be Buffers')
  20016. }
  20017. if (a === b) return 0
  20018. var x = a.length
  20019. var y = b.length
  20020. for (var i = 0, len = Math.min(x, y); i < len; ++i) {
  20021. if (a[i] !== b[i]) {
  20022. x = a[i]
  20023. y = b[i]
  20024. break
  20025. }
  20026. }
  20027. if (x < y) return -1
  20028. if (y < x) return 1
  20029. return 0
  20030. }
  20031. Buffer.isEncoding = function isEncoding (encoding) {
  20032. switch (String(encoding).toLowerCase()) {
  20033. case 'hex':
  20034. case 'utf8':
  20035. case 'utf-8':
  20036. case 'ascii':
  20037. case 'latin1':
  20038. case 'binary':
  20039. case 'base64':
  20040. case 'ucs2':
  20041. case 'ucs-2':
  20042. case 'utf16le':
  20043. case 'utf-16le':
  20044. return true
  20045. default:
  20046. return false
  20047. }
  20048. }
  20049. Buffer.concat = function concat (list, length) {
  20050. if (!isArray(list)) {
  20051. throw new TypeError('"list" argument must be an Array of Buffers')
  20052. }
  20053. if (list.length === 0) {
  20054. return Buffer.alloc(0)
  20055. }
  20056. var i
  20057. if (length === undefined) {
  20058. length = 0
  20059. for (i = 0; i < list.length; ++i) {
  20060. length += list[i].length
  20061. }
  20062. }
  20063. var buffer = Buffer.allocUnsafe(length)
  20064. var pos = 0
  20065. for (i = 0; i < list.length; ++i) {
  20066. var buf = list[i]
  20067. if (!Buffer.isBuffer(buf)) {
  20068. throw new TypeError('"list" argument must be an Array of Buffers')
  20069. }
  20070. buf.copy(buffer, pos)
  20071. pos += buf.length
  20072. }
  20073. return buffer
  20074. }
  20075. function byteLength (string, encoding) {
  20076. if (Buffer.isBuffer(string)) {
  20077. return string.length
  20078. }
  20079. if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
  20080. (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
  20081. return string.byteLength
  20082. }
  20083. if (typeof string !== 'string') {
  20084. string = '' + string
  20085. }
  20086. var len = string.length
  20087. if (len === 0) return 0
  20088. // Use a for loop to avoid recursion
  20089. var loweredCase = false
  20090. for (;;) {
  20091. switch (encoding) {
  20092. case 'ascii':
  20093. case 'latin1':
  20094. case 'binary':
  20095. return len
  20096. case 'utf8':
  20097. case 'utf-8':
  20098. case undefined:
  20099. return utf8ToBytes(string).length
  20100. case 'ucs2':
  20101. case 'ucs-2':
  20102. case 'utf16le':
  20103. case 'utf-16le':
  20104. return len * 2
  20105. case 'hex':
  20106. return len >>> 1
  20107. case 'base64':
  20108. return base64ToBytes(string).length
  20109. default:
  20110. if (loweredCase) return utf8ToBytes(string).length // assume utf8
  20111. encoding = ('' + encoding).toLowerCase()
  20112. loweredCase = true
  20113. }
  20114. }
  20115. }
  20116. Buffer.byteLength = byteLength
  20117. function slowToString (encoding, start, end) {
  20118. var loweredCase = false
  20119. // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
  20120. // property of a typed array.
  20121. // This behaves neither like String nor Uint8Array in that we set start/end
  20122. // to their upper/lower bounds if the value passed is out of range.
  20123. // undefined is handled specially as per ECMA-262 6th Edition,
  20124. // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
  20125. if (start === undefined || start < 0) {
  20126. start = 0
  20127. }
  20128. // Return early if start > this.length. Done here to prevent potential uint32
  20129. // coercion fail below.
  20130. if (start > this.length) {
  20131. return ''
  20132. }
  20133. if (end === undefined || end > this.length) {
  20134. end = this.length
  20135. }
  20136. if (end <= 0) {
  20137. return ''
  20138. }
  20139. // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
  20140. end >>>= 0
  20141. start >>>= 0
  20142. if (end <= start) {
  20143. return ''
  20144. }
  20145. if (!encoding) encoding = 'utf8'
  20146. while (true) {
  20147. switch (encoding) {
  20148. case 'hex':
  20149. return hexSlice(this, start, end)
  20150. case 'utf8':
  20151. case 'utf-8':
  20152. return utf8Slice(this, start, end)
  20153. case 'ascii':
  20154. return asciiSlice(this, start, end)
  20155. case 'latin1':
  20156. case 'binary':
  20157. return latin1Slice(this, start, end)
  20158. case 'base64':
  20159. return base64Slice(this, start, end)
  20160. case 'ucs2':
  20161. case 'ucs-2':
  20162. case 'utf16le':
  20163. case 'utf-16le':
  20164. return utf16leSlice(this, start, end)
  20165. default:
  20166. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  20167. encoding = (encoding + '').toLowerCase()
  20168. loweredCase = true
  20169. }
  20170. }
  20171. }
  20172. // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
  20173. // Buffer instances.
  20174. Buffer.prototype._isBuffer = true
  20175. function swap (b, n, m) {
  20176. var i = b[n]
  20177. b[n] = b[m]
  20178. b[m] = i
  20179. }
  20180. Buffer.prototype.swap16 = function swap16 () {
  20181. var len = this.length
  20182. if (len % 2 !== 0) {
  20183. throw new RangeError('Buffer size must be a multiple of 16-bits')
  20184. }
  20185. for (var i = 0; i < len; i += 2) {
  20186. swap(this, i, i + 1)
  20187. }
  20188. return this
  20189. }
  20190. Buffer.prototype.swap32 = function swap32 () {
  20191. var len = this.length
  20192. if (len % 4 !== 0) {
  20193. throw new RangeError('Buffer size must be a multiple of 32-bits')
  20194. }
  20195. for (var i = 0; i < len; i += 4) {
  20196. swap(this, i, i + 3)
  20197. swap(this, i + 1, i + 2)
  20198. }
  20199. return this
  20200. }
  20201. Buffer.prototype.swap64 = function swap64 () {
  20202. var len = this.length
  20203. if (len % 8 !== 0) {
  20204. throw new RangeError('Buffer size must be a multiple of 64-bits')
  20205. }
  20206. for (var i = 0; i < len; i += 8) {
  20207. swap(this, i, i + 7)
  20208. swap(this, i + 1, i + 6)
  20209. swap(this, i + 2, i + 5)
  20210. swap(this, i + 3, i + 4)
  20211. }
  20212. return this
  20213. }
  20214. Buffer.prototype.toString = function toString () {
  20215. var length = this.length | 0
  20216. if (length === 0) return ''
  20217. if (arguments.length === 0) return utf8Slice(this, 0, length)
  20218. return slowToString.apply(this, arguments)
  20219. }
  20220. Buffer.prototype.equals = function equals (b) {
  20221. if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  20222. if (this === b) return true
  20223. return Buffer.compare(this, b) === 0
  20224. }
  20225. Buffer.prototype.inspect = function inspect () {
  20226. var str = ''
  20227. var max = exports.INSPECT_MAX_BYTES
  20228. if (this.length > 0) {
  20229. str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
  20230. if (this.length > max) str += ' ... '
  20231. }
  20232. return '<Buffer ' + str + '>'
  20233. }
  20234. Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
  20235. if (!Buffer.isBuffer(target)) {
  20236. throw new TypeError('Argument must be a Buffer')
  20237. }
  20238. if (start === undefined) {
  20239. start = 0
  20240. }
  20241. if (end === undefined) {
  20242. end = target ? target.length : 0
  20243. }
  20244. if (thisStart === undefined) {
  20245. thisStart = 0
  20246. }
  20247. if (thisEnd === undefined) {
  20248. thisEnd = this.length
  20249. }
  20250. if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
  20251. throw new RangeError('out of range index')
  20252. }
  20253. if (thisStart >= thisEnd && start >= end) {
  20254. return 0
  20255. }
  20256. if (thisStart >= thisEnd) {
  20257. return -1
  20258. }
  20259. if (start >= end) {
  20260. return 1
  20261. }
  20262. start >>>= 0
  20263. end >>>= 0
  20264. thisStart >>>= 0
  20265. thisEnd >>>= 0
  20266. if (this === target) return 0
  20267. var x = thisEnd - thisStart
  20268. var y = end - start
  20269. var len = Math.min(x, y)
  20270. var thisCopy = this.slice(thisStart, thisEnd)
  20271. var targetCopy = target.slice(start, end)
  20272. for (var i = 0; i < len; ++i) {
  20273. if (thisCopy[i] !== targetCopy[i]) {
  20274. x = thisCopy[i]
  20275. y = targetCopy[i]
  20276. break
  20277. }
  20278. }
  20279. if (x < y) return -1
  20280. if (y < x) return 1
  20281. return 0
  20282. }
  20283. // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
  20284. // OR the last index of `val` in `buffer` at offset <= `byteOffset`.
  20285. //
  20286. // Arguments:
  20287. // - buffer - a Buffer to search
  20288. // - val - a string, Buffer, or number
  20289. // - byteOffset - an index into `buffer`; will be clamped to an int32
  20290. // - encoding - an optional encoding, relevant is val is a string
  20291. // - dir - true for indexOf, false for lastIndexOf
  20292. function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
  20293. // Empty buffer means no match
  20294. if (buffer.length === 0) return -1
  20295. // Normalize byteOffset
  20296. if (typeof byteOffset === 'string') {
  20297. encoding = byteOffset
  20298. byteOffset = 0
  20299. } else if (byteOffset > 0x7fffffff) {
  20300. byteOffset = 0x7fffffff
  20301. } else if (byteOffset < -0x80000000) {
  20302. byteOffset = -0x80000000
  20303. }
  20304. byteOffset = +byteOffset // Coerce to Number.
  20305. if (isNaN(byteOffset)) {
  20306. // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
  20307. byteOffset = dir ? 0 : (buffer.length - 1)
  20308. }
  20309. // Normalize byteOffset: negative offsets start from the end of the buffer
  20310. if (byteOffset < 0) byteOffset = buffer.length + byteOffset
  20311. if (byteOffset >= buffer.length) {
  20312. if (dir) return -1
  20313. else byteOffset = buffer.length - 1
  20314. } else if (byteOffset < 0) {
  20315. if (dir) byteOffset = 0
  20316. else return -1
  20317. }
  20318. // Normalize val
  20319. if (typeof val === 'string') {
  20320. val = Buffer.from(val, encoding)
  20321. }
  20322. // Finally, search either indexOf (if dir is true) or lastIndexOf
  20323. if (Buffer.isBuffer(val)) {
  20324. // Special case: looking for empty string/buffer always fails
  20325. if (val.length === 0) {
  20326. return -1
  20327. }
  20328. return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
  20329. } else if (typeof val === 'number') {
  20330. val = val & 0xFF // Search for a byte value [0-255]
  20331. if (Buffer.TYPED_ARRAY_SUPPORT &&
  20332. typeof Uint8Array.prototype.indexOf === 'function') {
  20333. if (dir) {
  20334. return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
  20335. } else {
  20336. return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
  20337. }
  20338. }
  20339. return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
  20340. }
  20341. throw new TypeError('val must be string, number or Buffer')
  20342. }
  20343. function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
  20344. var indexSize = 1
  20345. var arrLength = arr.length
  20346. var valLength = val.length
  20347. if (encoding !== undefined) {
  20348. encoding = String(encoding).toLowerCase()
  20349. if (encoding === 'ucs2' || encoding === 'ucs-2' ||
  20350. encoding === 'utf16le' || encoding === 'utf-16le') {
  20351. if (arr.length < 2 || val.length < 2) {
  20352. return -1
  20353. }
  20354. indexSize = 2
  20355. arrLength /= 2
  20356. valLength /= 2
  20357. byteOffset /= 2
  20358. }
  20359. }
  20360. function read (buf, i) {
  20361. if (indexSize === 1) {
  20362. return buf[i]
  20363. } else {
  20364. return buf.readUInt16BE(i * indexSize)
  20365. }
  20366. }
  20367. var i
  20368. if (dir) {
  20369. var foundIndex = -1
  20370. for (i = byteOffset; i < arrLength; i++) {
  20371. if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
  20372. if (foundIndex === -1) foundIndex = i
  20373. if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
  20374. } else {
  20375. if (foundIndex !== -1) i -= i - foundIndex
  20376. foundIndex = -1
  20377. }
  20378. }
  20379. } else {
  20380. if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
  20381. for (i = byteOffset; i >= 0; i--) {
  20382. var found = true
  20383. for (var j = 0; j < valLength; j++) {
  20384. if (read(arr, i + j) !== read(val, j)) {
  20385. found = false
  20386. break
  20387. }
  20388. }
  20389. if (found) return i
  20390. }
  20391. }
  20392. return -1
  20393. }
  20394. Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
  20395. return this.indexOf(val, byteOffset, encoding) !== -1
  20396. }
  20397. Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
  20398. return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
  20399. }
  20400. Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
  20401. return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
  20402. }
  20403. function hexWrite (buf, string, offset, length) {
  20404. offset = Number(offset) || 0
  20405. var remaining = buf.length - offset
  20406. if (!length) {
  20407. length = remaining
  20408. } else {
  20409. length = Number(length)
  20410. if (length > remaining) {
  20411. length = remaining
  20412. }
  20413. }
  20414. // must be an even number of digits
  20415. var strLen = string.length
  20416. if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
  20417. if (length > strLen / 2) {
  20418. length = strLen / 2
  20419. }
  20420. for (var i = 0; i < length; ++i) {
  20421. var parsed = parseInt(string.substr(i * 2, 2), 16)
  20422. if (isNaN(parsed)) return i
  20423. buf[offset + i] = parsed
  20424. }
  20425. return i
  20426. }
  20427. function utf8Write (buf, string, offset, length) {
  20428. return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
  20429. }
  20430. function asciiWrite (buf, string, offset, length) {
  20431. return blitBuffer(asciiToBytes(string), buf, offset, length)
  20432. }
  20433. function latin1Write (buf, string, offset, length) {
  20434. return asciiWrite(buf, string, offset, length)
  20435. }
  20436. function base64Write (buf, string, offset, length) {
  20437. return blitBuffer(base64ToBytes(string), buf, offset, length)
  20438. }
  20439. function ucs2Write (buf, string, offset, length) {
  20440. return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
  20441. }
  20442. Buffer.prototype.write = function write (string, offset, length, encoding) {
  20443. // Buffer#write(string)
  20444. if (offset === undefined) {
  20445. encoding = 'utf8'
  20446. length = this.length
  20447. offset = 0
  20448. // Buffer#write(string, encoding)
  20449. } else if (length === undefined && typeof offset === 'string') {
  20450. encoding = offset
  20451. length = this.length
  20452. offset = 0
  20453. // Buffer#write(string, offset[, length][, encoding])
  20454. } else if (isFinite(offset)) {
  20455. offset = offset | 0
  20456. if (isFinite(length)) {
  20457. length = length | 0
  20458. if (encoding === undefined) encoding = 'utf8'
  20459. } else {
  20460. encoding = length
  20461. length = undefined
  20462. }
  20463. // legacy write(string, encoding, offset, length) - remove in v0.13
  20464. } else {
  20465. throw new Error(
  20466. 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
  20467. )
  20468. }
  20469. var remaining = this.length - offset
  20470. if (length === undefined || length > remaining) length = remaining
  20471. if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
  20472. throw new RangeError('Attempt to write outside buffer bounds')
  20473. }
  20474. if (!encoding) encoding = 'utf8'
  20475. var loweredCase = false
  20476. for (;;) {
  20477. switch (encoding) {
  20478. case 'hex':
  20479. return hexWrite(this, string, offset, length)
  20480. case 'utf8':
  20481. case 'utf-8':
  20482. return utf8Write(this, string, offset, length)
  20483. case 'ascii':
  20484. return asciiWrite(this, string, offset, length)
  20485. case 'latin1':
  20486. case 'binary':
  20487. return latin1Write(this, string, offset, length)
  20488. case 'base64':
  20489. // Warning: maxLength not taken into account in base64Write
  20490. return base64Write(this, string, offset, length)
  20491. case 'ucs2':
  20492. case 'ucs-2':
  20493. case 'utf16le':
  20494. case 'utf-16le':
  20495. return ucs2Write(this, string, offset, length)
  20496. default:
  20497. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  20498. encoding = ('' + encoding).toLowerCase()
  20499. loweredCase = true
  20500. }
  20501. }
  20502. }
  20503. Buffer.prototype.toJSON = function toJSON () {
  20504. return {
  20505. type: 'Buffer',
  20506. data: Array.prototype.slice.call(this._arr || this, 0)
  20507. }
  20508. }
  20509. function base64Slice (buf, start, end) {
  20510. if (start === 0 && end === buf.length) {
  20511. return base64.fromByteArray(buf)
  20512. } else {
  20513. return base64.fromByteArray(buf.slice(start, end))
  20514. }
  20515. }
  20516. function utf8Slice (buf, start, end) {
  20517. end = Math.min(buf.length, end)
  20518. var res = []
  20519. var i = start
  20520. while (i < end) {
  20521. var firstByte = buf[i]
  20522. var codePoint = null
  20523. var bytesPerSequence = (firstByte > 0xEF) ? 4
  20524. : (firstByte > 0xDF) ? 3
  20525. : (firstByte > 0xBF) ? 2
  20526. : 1
  20527. if (i + bytesPerSequence <= end) {
  20528. var secondByte, thirdByte, fourthByte, tempCodePoint
  20529. switch (bytesPerSequence) {
  20530. case 1:
  20531. if (firstByte < 0x80) {
  20532. codePoint = firstByte
  20533. }
  20534. break
  20535. case 2:
  20536. secondByte = buf[i + 1]
  20537. if ((secondByte & 0xC0) === 0x80) {
  20538. tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
  20539. if (tempCodePoint > 0x7F) {
  20540. codePoint = tempCodePoint
  20541. }
  20542. }
  20543. break
  20544. case 3:
  20545. secondByte = buf[i + 1]
  20546. thirdByte = buf[i + 2]
  20547. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
  20548. tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
  20549. if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
  20550. codePoint = tempCodePoint
  20551. }
  20552. }
  20553. break
  20554. case 4:
  20555. secondByte = buf[i + 1]
  20556. thirdByte = buf[i + 2]
  20557. fourthByte = buf[i + 3]
  20558. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
  20559. tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
  20560. if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
  20561. codePoint = tempCodePoint
  20562. }
  20563. }
  20564. }
  20565. }
  20566. if (codePoint === null) {
  20567. // we did not generate a valid codePoint so insert a
  20568. // replacement char (U+FFFD) and advance only 1 byte
  20569. codePoint = 0xFFFD
  20570. bytesPerSequence = 1
  20571. } else if (codePoint > 0xFFFF) {
  20572. // encode to utf16 (surrogate pair dance)
  20573. codePoint -= 0x10000
  20574. res.push(codePoint >>> 10 & 0x3FF | 0xD800)
  20575. codePoint = 0xDC00 | codePoint & 0x3FF
  20576. }
  20577. res.push(codePoint)
  20578. i += bytesPerSequence
  20579. }
  20580. return decodeCodePointsArray(res)
  20581. }
  20582. // Based on http://stackoverflow.com/a/22747272/680742, the browser with
  20583. // the lowest limit is Chrome, with 0x10000 args.
  20584. // We go 1 magnitude less, for safety
  20585. var MAX_ARGUMENTS_LENGTH = 0x1000
  20586. function decodeCodePointsArray (codePoints) {
  20587. var len = codePoints.length
  20588. if (len <= MAX_ARGUMENTS_LENGTH) {
  20589. return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
  20590. }
  20591. // Decode in chunks to avoid "call stack size exceeded".
  20592. var res = ''
  20593. var i = 0
  20594. while (i < len) {
  20595. res += String.fromCharCode.apply(
  20596. String,
  20597. codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
  20598. )
  20599. }
  20600. return res
  20601. }
  20602. function asciiSlice (buf, start, end) {
  20603. var ret = ''
  20604. end = Math.min(buf.length, end)
  20605. for (var i = start; i < end; ++i) {
  20606. ret += String.fromCharCode(buf[i] & 0x7F)
  20607. }
  20608. return ret
  20609. }
  20610. function latin1Slice (buf, start, end) {
  20611. var ret = ''
  20612. end = Math.min(buf.length, end)
  20613. for (var i = start; i < end; ++i) {
  20614. ret += String.fromCharCode(buf[i])
  20615. }
  20616. return ret
  20617. }
  20618. function hexSlice (buf, start, end) {
  20619. var len = buf.length
  20620. if (!start || start < 0) start = 0
  20621. if (!end || end < 0 || end > len) end = len
  20622. var out = ''
  20623. for (var i = start; i < end; ++i) {
  20624. out += toHex(buf[i])
  20625. }
  20626. return out
  20627. }
  20628. function utf16leSlice (buf, start, end) {
  20629. var bytes = buf.slice(start, end)
  20630. var res = ''
  20631. for (var i = 0; i < bytes.length; i += 2) {
  20632. res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
  20633. }
  20634. return res
  20635. }
  20636. Buffer.prototype.slice = function slice (start, end) {
  20637. var len = this.length
  20638. start = ~~start
  20639. end = end === undefined ? len : ~~end
  20640. if (start < 0) {
  20641. start += len
  20642. if (start < 0) start = 0
  20643. } else if (start > len) {
  20644. start = len
  20645. }
  20646. if (end < 0) {
  20647. end += len
  20648. if (end < 0) end = 0
  20649. } else if (end > len) {
  20650. end = len
  20651. }
  20652. if (end < start) end = start
  20653. var newBuf
  20654. if (Buffer.TYPED_ARRAY_SUPPORT) {
  20655. newBuf = this.subarray(start, end)
  20656. newBuf.__proto__ = Buffer.prototype
  20657. } else {
  20658. var sliceLen = end - start
  20659. newBuf = new Buffer(sliceLen, undefined)
  20660. for (var i = 0; i < sliceLen; ++i) {
  20661. newBuf[i] = this[i + start]
  20662. }
  20663. }
  20664. return newBuf
  20665. }
  20666. /*
  20667. * Need to make sure that buffer isn't trying to write out of bounds.
  20668. */
  20669. function checkOffset (offset, ext, length) {
  20670. if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
  20671. if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
  20672. }
  20673. Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
  20674. offset = offset | 0
  20675. byteLength = byteLength | 0
  20676. if (!noAssert) checkOffset(offset, byteLength, this.length)
  20677. var val = this[offset]
  20678. var mul = 1
  20679. var i = 0
  20680. while (++i < byteLength && (mul *= 0x100)) {
  20681. val += this[offset + i] * mul
  20682. }
  20683. return val
  20684. }
  20685. Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
  20686. offset = offset | 0
  20687. byteLength = byteLength | 0
  20688. if (!noAssert) {
  20689. checkOffset(offset, byteLength, this.length)
  20690. }
  20691. var val = this[offset + --byteLength]
  20692. var mul = 1
  20693. while (byteLength > 0 && (mul *= 0x100)) {
  20694. val += this[offset + --byteLength] * mul
  20695. }
  20696. return val
  20697. }
  20698. Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
  20699. if (!noAssert) checkOffset(offset, 1, this.length)
  20700. return this[offset]
  20701. }
  20702. Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  20703. if (!noAssert) checkOffset(offset, 2, this.length)
  20704. return this[offset] | (this[offset + 1] << 8)
  20705. }
  20706. Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  20707. if (!noAssert) checkOffset(offset, 2, this.length)
  20708. return (this[offset] << 8) | this[offset + 1]
  20709. }
  20710. Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  20711. if (!noAssert) checkOffset(offset, 4, this.length)
  20712. return ((this[offset]) |
  20713. (this[offset + 1] << 8) |
  20714. (this[offset + 2] << 16)) +
  20715. (this[offset + 3] * 0x1000000)
  20716. }
  20717. Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
  20718. if (!noAssert) checkOffset(offset, 4, this.length)
  20719. return (this[offset] * 0x1000000) +
  20720. ((this[offset + 1] << 16) |
  20721. (this[offset + 2] << 8) |
  20722. this[offset + 3])
  20723. }
  20724. Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
  20725. offset = offset | 0
  20726. byteLength = byteLength | 0
  20727. if (!noAssert) checkOffset(offset, byteLength, this.length)
  20728. var val = this[offset]
  20729. var mul = 1
  20730. var i = 0
  20731. while (++i < byteLength && (mul *= 0x100)) {
  20732. val += this[offset + i] * mul
  20733. }
  20734. mul *= 0x80
  20735. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  20736. return val
  20737. }
  20738. Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
  20739. offset = offset | 0
  20740. byteLength = byteLength | 0
  20741. if (!noAssert) checkOffset(offset, byteLength, this.length)
  20742. var i = byteLength
  20743. var mul = 1
  20744. var val = this[offset + --i]
  20745. while (i > 0 && (mul *= 0x100)) {
  20746. val += this[offset + --i] * mul
  20747. }
  20748. mul *= 0x80
  20749. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  20750. return val
  20751. }
  20752. Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
  20753. if (!noAssert) checkOffset(offset, 1, this.length)
  20754. if (!(this[offset] & 0x80)) return (this[offset])
  20755. return ((0xff - this[offset] + 1) * -1)
  20756. }
  20757. Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
  20758. if (!noAssert) checkOffset(offset, 2, this.length)
  20759. var val = this[offset] | (this[offset + 1] << 8)
  20760. return (val & 0x8000) ? val | 0xFFFF0000 : val
  20761. }
  20762. Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
  20763. if (!noAssert) checkOffset(offset, 2, this.length)
  20764. var val = this[offset + 1] | (this[offset] << 8)
  20765. return (val & 0x8000) ? val | 0xFFFF0000 : val
  20766. }
  20767. Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
  20768. if (!noAssert) checkOffset(offset, 4, this.length)
  20769. return (this[offset]) |
  20770. (this[offset + 1] << 8) |
  20771. (this[offset + 2] << 16) |
  20772. (this[offset + 3] << 24)
  20773. }
  20774. Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
  20775. if (!noAssert) checkOffset(offset, 4, this.length)
  20776. return (this[offset] << 24) |
  20777. (this[offset + 1] << 16) |
  20778. (this[offset + 2] << 8) |
  20779. (this[offset + 3])
  20780. }
  20781. Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  20782. if (!noAssert) checkOffset(offset, 4, this.length)
  20783. return ieee754.read(this, offset, true, 23, 4)
  20784. }
  20785. Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  20786. if (!noAssert) checkOffset(offset, 4, this.length)
  20787. return ieee754.read(this, offset, false, 23, 4)
  20788. }
  20789. Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  20790. if (!noAssert) checkOffset(offset, 8, this.length)
  20791. return ieee754.read(this, offset, true, 52, 8)
  20792. }
  20793. Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  20794. if (!noAssert) checkOffset(offset, 8, this.length)
  20795. return ieee754.read(this, offset, false, 52, 8)
  20796. }
  20797. function checkInt (buf, value, offset, ext, max, min) {
  20798. if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
  20799. if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
  20800. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  20801. }
  20802. Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
  20803. value = +value
  20804. offset = offset | 0
  20805. byteLength = byteLength | 0
  20806. if (!noAssert) {
  20807. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  20808. checkInt(this, value, offset, byteLength, maxBytes, 0)
  20809. }
  20810. var mul = 1
  20811. var i = 0
  20812. this[offset] = value & 0xFF
  20813. while (++i < byteLength && (mul *= 0x100)) {
  20814. this[offset + i] = (value / mul) & 0xFF
  20815. }
  20816. return offset + byteLength
  20817. }
  20818. Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
  20819. value = +value
  20820. offset = offset | 0
  20821. byteLength = byteLength | 0
  20822. if (!noAssert) {
  20823. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  20824. checkInt(this, value, offset, byteLength, maxBytes, 0)
  20825. }
  20826. var i = byteLength - 1
  20827. var mul = 1
  20828. this[offset + i] = value & 0xFF
  20829. while (--i >= 0 && (mul *= 0x100)) {
  20830. this[offset + i] = (value / mul) & 0xFF
  20831. }
  20832. return offset + byteLength
  20833. }
  20834. Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
  20835. value = +value
  20836. offset = offset | 0
  20837. if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
  20838. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  20839. this[offset] = (value & 0xff)
  20840. return offset + 1
  20841. }
  20842. function objectWriteUInt16 (buf, value, offset, littleEndian) {
  20843. if (value < 0) value = 0xffff + value + 1
  20844. for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
  20845. buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
  20846. (littleEndian ? i : 1 - i) * 8
  20847. }
  20848. }
  20849. Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  20850. value = +value
  20851. offset = offset | 0
  20852. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  20853. if (Buffer.TYPED_ARRAY_SUPPORT) {
  20854. this[offset] = (value & 0xff)
  20855. this[offset + 1] = (value >>> 8)
  20856. } else {
  20857. objectWriteUInt16(this, value, offset, true)
  20858. }
  20859. return offset + 2
  20860. }
  20861. Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
  20862. value = +value
  20863. offset = offset | 0
  20864. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  20865. if (Buffer.TYPED_ARRAY_SUPPORT) {
  20866. this[offset] = (value >>> 8)
  20867. this[offset + 1] = (value & 0xff)
  20868. } else {
  20869. objectWriteUInt16(this, value, offset, false)
  20870. }
  20871. return offset + 2
  20872. }
  20873. function objectWriteUInt32 (buf, value, offset, littleEndian) {
  20874. if (value < 0) value = 0xffffffff + value + 1
  20875. for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
  20876. buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  20877. }
  20878. }
  20879. Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  20880. value = +value
  20881. offset = offset | 0
  20882. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  20883. if (Buffer.TYPED_ARRAY_SUPPORT) {
  20884. this[offset + 3] = (value >>> 24)
  20885. this[offset + 2] = (value >>> 16)
  20886. this[offset + 1] = (value >>> 8)
  20887. this[offset] = (value & 0xff)
  20888. } else {
  20889. objectWriteUInt32(this, value, offset, true)
  20890. }
  20891. return offset + 4
  20892. }
  20893. Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
  20894. value = +value
  20895. offset = offset | 0
  20896. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  20897. if (Buffer.TYPED_ARRAY_SUPPORT) {
  20898. this[offset] = (value >>> 24)
  20899. this[offset + 1] = (value >>> 16)
  20900. this[offset + 2] = (value >>> 8)
  20901. this[offset + 3] = (value & 0xff)
  20902. } else {
  20903. objectWriteUInt32(this, value, offset, false)
  20904. }
  20905. return offset + 4
  20906. }
  20907. Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
  20908. value = +value
  20909. offset = offset | 0
  20910. if (!noAssert) {
  20911. var limit = Math.pow(2, 8 * byteLength - 1)
  20912. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  20913. }
  20914. var i = 0
  20915. var mul = 1
  20916. var sub = 0
  20917. this[offset] = value & 0xFF
  20918. while (++i < byteLength && (mul *= 0x100)) {
  20919. if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
  20920. sub = 1
  20921. }
  20922. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  20923. }
  20924. return offset + byteLength
  20925. }
  20926. Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
  20927. value = +value
  20928. offset = offset | 0
  20929. if (!noAssert) {
  20930. var limit = Math.pow(2, 8 * byteLength - 1)
  20931. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  20932. }
  20933. var i = byteLength - 1
  20934. var mul = 1
  20935. var sub = 0
  20936. this[offset + i] = value & 0xFF
  20937. while (--i >= 0 && (mul *= 0x100)) {
  20938. if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
  20939. sub = 1
  20940. }
  20941. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  20942. }
  20943. return offset + byteLength
  20944. }
  20945. Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
  20946. value = +value
  20947. offset = offset | 0
  20948. if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
  20949. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  20950. if (value < 0) value = 0xff + value + 1
  20951. this[offset] = (value & 0xff)
  20952. return offset + 1
  20953. }
  20954. Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
  20955. value = +value
  20956. offset = offset | 0
  20957. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  20958. if (Buffer.TYPED_ARRAY_SUPPORT) {
  20959. this[offset] = (value & 0xff)
  20960. this[offset + 1] = (value >>> 8)
  20961. } else {
  20962. objectWriteUInt16(this, value, offset, true)
  20963. }
  20964. return offset + 2
  20965. }
  20966. Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
  20967. value = +value
  20968. offset = offset | 0
  20969. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  20970. if (Buffer.TYPED_ARRAY_SUPPORT) {
  20971. this[offset] = (value >>> 8)
  20972. this[offset + 1] = (value & 0xff)
  20973. } else {
  20974. objectWriteUInt16(this, value, offset, false)
  20975. }
  20976. return offset + 2
  20977. }
  20978. Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
  20979. value = +value
  20980. offset = offset | 0
  20981. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  20982. if (Buffer.TYPED_ARRAY_SUPPORT) {
  20983. this[offset] = (value & 0xff)
  20984. this[offset + 1] = (value >>> 8)
  20985. this[offset + 2] = (value >>> 16)
  20986. this[offset + 3] = (value >>> 24)
  20987. } else {
  20988. objectWriteUInt32(this, value, offset, true)
  20989. }
  20990. return offset + 4
  20991. }
  20992. Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
  20993. value = +value
  20994. offset = offset | 0
  20995. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  20996. if (value < 0) value = 0xffffffff + value + 1
  20997. if (Buffer.TYPED_ARRAY_SUPPORT) {
  20998. this[offset] = (value >>> 24)
  20999. this[offset + 1] = (value >>> 16)
  21000. this[offset + 2] = (value >>> 8)
  21001. this[offset + 3] = (value & 0xff)
  21002. } else {
  21003. objectWriteUInt32(this, value, offset, false)
  21004. }
  21005. return offset + 4
  21006. }
  21007. function checkIEEE754 (buf, value, offset, ext, max, min) {
  21008. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  21009. if (offset < 0) throw new RangeError('Index out of range')
  21010. }
  21011. function writeFloat (buf, value, offset, littleEndian, noAssert) {
  21012. if (!noAssert) {
  21013. checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
  21014. }
  21015. ieee754.write(buf, value, offset, littleEndian, 23, 4)
  21016. return offset + 4
  21017. }
  21018. Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
  21019. return writeFloat(this, value, offset, true, noAssert)
  21020. }
  21021. Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
  21022. return writeFloat(this, value, offset, false, noAssert)
  21023. }
  21024. function writeDouble (buf, value, offset, littleEndian, noAssert) {
  21025. if (!noAssert) {
  21026. checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
  21027. }
  21028. ieee754.write(buf, value, offset, littleEndian, 52, 8)
  21029. return offset + 8
  21030. }
  21031. Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
  21032. return writeDouble(this, value, offset, true, noAssert)
  21033. }
  21034. Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
  21035. return writeDouble(this, value, offset, false, noAssert)
  21036. }
  21037. // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
  21038. Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  21039. if (!start) start = 0
  21040. if (!end && end !== 0) end = this.length
  21041. if (targetStart >= target.length) targetStart = target.length
  21042. if (!targetStart) targetStart = 0
  21043. if (end > 0 && end < start) end = start
  21044. // Copy 0 bytes; we're done
  21045. if (end === start) return 0
  21046. if (target.length === 0 || this.length === 0) return 0
  21047. // Fatal error conditions
  21048. if (targetStart < 0) {
  21049. throw new RangeError('targetStart out of bounds')
  21050. }
  21051. if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
  21052. if (end < 0) throw new RangeError('sourceEnd out of bounds')
  21053. // Are we oob?
  21054. if (end > this.length) end = this.length
  21055. if (target.length - targetStart < end - start) {
  21056. end = target.length - targetStart + start
  21057. }
  21058. var len = end - start
  21059. var i
  21060. if (this === target && start < targetStart && targetStart < end) {
  21061. // descending copy from end
  21062. for (i = len - 1; i >= 0; --i) {
  21063. target[i + targetStart] = this[i + start]
  21064. }
  21065. } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
  21066. // ascending copy from start
  21067. for (i = 0; i < len; ++i) {
  21068. target[i + targetStart] = this[i + start]
  21069. }
  21070. } else {
  21071. Uint8Array.prototype.set.call(
  21072. target,
  21073. this.subarray(start, start + len),
  21074. targetStart
  21075. )
  21076. }
  21077. return len
  21078. }
  21079. // Usage:
  21080. // buffer.fill(number[, offset[, end]])
  21081. // buffer.fill(buffer[, offset[, end]])
  21082. // buffer.fill(string[, offset[, end]][, encoding])
  21083. Buffer.prototype.fill = function fill (val, start, end, encoding) {
  21084. // Handle string cases:
  21085. if (typeof val === 'string') {
  21086. if (typeof start === 'string') {
  21087. encoding = start
  21088. start = 0
  21089. end = this.length
  21090. } else if (typeof end === 'string') {
  21091. encoding = end
  21092. end = this.length
  21093. }
  21094. if (val.length === 1) {
  21095. var code = val.charCodeAt(0)
  21096. if (code < 256) {
  21097. val = code
  21098. }
  21099. }
  21100. if (encoding !== undefined && typeof encoding !== 'string') {
  21101. throw new TypeError('encoding must be a string')
  21102. }
  21103. if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
  21104. throw new TypeError('Unknown encoding: ' + encoding)
  21105. }
  21106. } else if (typeof val === 'number') {
  21107. val = val & 255
  21108. }
  21109. // Invalid ranges are not set to a default, so can range check early.
  21110. if (start < 0 || this.length < start || this.length < end) {
  21111. throw new RangeError('Out of range index')
  21112. }
  21113. if (end <= start) {
  21114. return this
  21115. }
  21116. start = start >>> 0
  21117. end = end === undefined ? this.length : end >>> 0
  21118. if (!val) val = 0
  21119. var i
  21120. if (typeof val === 'number') {
  21121. for (i = start; i < end; ++i) {
  21122. this[i] = val
  21123. }
  21124. } else {
  21125. var bytes = Buffer.isBuffer(val)
  21126. ? val
  21127. : utf8ToBytes(new Buffer(val, encoding).toString())
  21128. var len = bytes.length
  21129. for (i = 0; i < end - start; ++i) {
  21130. this[i + start] = bytes[i % len]
  21131. }
  21132. }
  21133. return this
  21134. }
  21135. // HELPER FUNCTIONS
  21136. // ================
  21137. var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
  21138. function base64clean (str) {
  21139. // Node strips out invalid characters like \n and \t from the string, base64-js does not
  21140. str = stringtrim(str).replace(INVALID_BASE64_RE, '')
  21141. // Node converts strings with length < 2 to ''
  21142. if (str.length < 2) return ''
  21143. // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
  21144. while (str.length % 4 !== 0) {
  21145. str = str + '='
  21146. }
  21147. return str
  21148. }
  21149. function stringtrim (str) {
  21150. if (str.trim) return str.trim()
  21151. return str.replace(/^\s+|\s+$/g, '')
  21152. }
  21153. function toHex (n) {
  21154. if (n < 16) return '0' + n.toString(16)
  21155. return n.toString(16)
  21156. }
  21157. function utf8ToBytes (string, units) {
  21158. units = units || Infinity
  21159. var codePoint
  21160. var length = string.length
  21161. var leadSurrogate = null
  21162. var bytes = []
  21163. for (var i = 0; i < length; ++i) {
  21164. codePoint = string.charCodeAt(i)
  21165. // is surrogate component
  21166. if (codePoint > 0xD7FF && codePoint < 0xE000) {
  21167. // last char was a lead
  21168. if (!leadSurrogate) {
  21169. // no lead yet
  21170. if (codePoint > 0xDBFF) {
  21171. // unexpected trail
  21172. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  21173. continue
  21174. } else if (i + 1 === length) {
  21175. // unpaired lead
  21176. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  21177. continue
  21178. }
  21179. // valid lead
  21180. leadSurrogate = codePoint
  21181. continue
  21182. }
  21183. // 2 leads in a row
  21184. if (codePoint < 0xDC00) {
  21185. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  21186. leadSurrogate = codePoint
  21187. continue
  21188. }
  21189. // valid surrogate pair
  21190. codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
  21191. } else if (leadSurrogate) {
  21192. // valid bmp char, but last char was a lead
  21193. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  21194. }
  21195. leadSurrogate = null
  21196. // encode utf8
  21197. if (codePoint < 0x80) {
  21198. if ((units -= 1) < 0) break
  21199. bytes.push(codePoint)
  21200. } else if (codePoint < 0x800) {
  21201. if ((units -= 2) < 0) break
  21202. bytes.push(
  21203. codePoint >> 0x6 | 0xC0,
  21204. codePoint & 0x3F | 0x80
  21205. )
  21206. } else if (codePoint < 0x10000) {
  21207. if ((units -= 3) < 0) break
  21208. bytes.push(
  21209. codePoint >> 0xC | 0xE0,
  21210. codePoint >> 0x6 & 0x3F | 0x80,
  21211. codePoint & 0x3F | 0x80
  21212. )
  21213. } else if (codePoint < 0x110000) {
  21214. if ((units -= 4) < 0) break
  21215. bytes.push(
  21216. codePoint >> 0x12 | 0xF0,
  21217. codePoint >> 0xC & 0x3F | 0x80,
  21218. codePoint >> 0x6 & 0x3F | 0x80,
  21219. codePoint & 0x3F | 0x80
  21220. )
  21221. } else {
  21222. throw new Error('Invalid code point')
  21223. }
  21224. }
  21225. return bytes
  21226. }
  21227. function asciiToBytes (str) {
  21228. var byteArray = []
  21229. for (var i = 0; i < str.length; ++i) {
  21230. // Node's code seems to be doing this and not & 0x7F..
  21231. byteArray.push(str.charCodeAt(i) & 0xFF)
  21232. }
  21233. return byteArray
  21234. }
  21235. function utf16leToBytes (str, units) {
  21236. var c, hi, lo
  21237. var byteArray = []
  21238. for (var i = 0; i < str.length; ++i) {
  21239. if ((units -= 2) < 0) break
  21240. c = str.charCodeAt(i)
  21241. hi = c >> 8
  21242. lo = c % 256
  21243. byteArray.push(lo)
  21244. byteArray.push(hi)
  21245. }
  21246. return byteArray
  21247. }
  21248. function base64ToBytes (str) {
  21249. return base64.toByteArray(base64clean(str))
  21250. }
  21251. function blitBuffer (src, dst, offset, length) {
  21252. for (var i = 0; i < length; ++i) {
  21253. if ((i + offset >= dst.length) || (i >= src.length)) break
  21254. dst[i + offset] = src[i]
  21255. }
  21256. return i
  21257. }
  21258. function isnan (val) {
  21259. return val !== val // eslint-disable-line no-self-compare
  21260. }
  21261. /***/ }),
  21262. /***/ "./node_modules/call-bind/callBound.js":
  21263. /*!*********************************************!*\
  21264. !*** ./node_modules/call-bind/callBound.js ***!
  21265. \*********************************************/
  21266. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  21267. "use strict";
  21268. var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "./node_modules/get-intrinsic/index.js");
  21269. var callBind = __webpack_require__(/*! ./ */ "./node_modules/call-bind/index.js");
  21270. var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
  21271. module.exports = function callBoundIntrinsic(name, allowMissing) {
  21272. var intrinsic = GetIntrinsic(name, !!allowMissing);
  21273. if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
  21274. return callBind(intrinsic);
  21275. }
  21276. return intrinsic;
  21277. };
  21278. /***/ }),
  21279. /***/ "./node_modules/call-bind/index.js":
  21280. /*!*****************************************!*\
  21281. !*** ./node_modules/call-bind/index.js ***!
  21282. \*****************************************/
  21283. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  21284. "use strict";
  21285. var bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js");
  21286. var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "./node_modules/get-intrinsic/index.js");
  21287. var $apply = GetIntrinsic('%Function.prototype.apply%');
  21288. var $call = GetIntrinsic('%Function.prototype.call%');
  21289. var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
  21290. var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
  21291. var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
  21292. var $max = GetIntrinsic('%Math.max%');
  21293. if ($defineProperty) {
  21294. try {
  21295. $defineProperty({}, 'a', { value: 1 });
  21296. } catch (e) {
  21297. // IE 8 has a broken defineProperty
  21298. $defineProperty = null;
  21299. }
  21300. }
  21301. module.exports = function callBind(originalFunction) {
  21302. var func = $reflectApply(bind, $call, arguments);
  21303. if ($gOPD && $defineProperty) {
  21304. var desc = $gOPD(func, 'length');
  21305. if (desc.configurable) {
  21306. // original length, plus the receiver, minus any additional arguments (after the receiver)
  21307. $defineProperty(
  21308. func,
  21309. 'length',
  21310. { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
  21311. );
  21312. }
  21313. }
  21314. return func;
  21315. };
  21316. var applyBind = function applyBind() {
  21317. return $reflectApply(bind, $apply, arguments);
  21318. };
  21319. if ($defineProperty) {
  21320. $defineProperty(module.exports, 'apply', { value: applyBind });
  21321. } else {
  21322. module.exports.apply = applyBind;
  21323. }
  21324. /***/ }),
  21325. /***/ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-11.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-11.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-11.use[3]!./resources/js/assets/styles/layout.scss":
  21326. /*!**************************************************************************************************************************************************************************************************************************************************!*\
  21327. !*** ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-11.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-11.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-11.use[3]!./resources/js/assets/styles/layout.scss ***!
  21328. \**************************************************************************************************************************************************************************************************************************************************/
  21329. /***/ ((module, __webpack_exports__, __webpack_require__) => {
  21330. "use strict";
  21331. __webpack_require__.r(__webpack_exports__);
  21332. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21333. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21334. /* harmony export */ });
  21335. /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
  21336. /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
  21337. // Imports
  21338. var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
  21339. // Module
  21340. ___CSS_LOADER_EXPORT___.push([module.id, "/* General */\n.preloader {\n position: fixed;\n z-index: 999999;\n background: #edf1f5;\n width: 100%;\n height: 100%;\n}\n\n.preloader-content {\n border: 0 solid transparent;\n border-radius: 50%;\n width: 150px;\n height: 150px;\n position: absolute;\n top: calc(50vh - 75px);\n left: calc(50vw - 75px);\n}\n\n.preloader-content:before, .preloader-content:after {\n content: \"\";\n border: 1em solid var(--primary-color);\n border-radius: 50%;\n width: inherit;\n height: inherit;\n position: absolute;\n top: 0;\n left: 0;\n -webkit-animation: loader 2s linear infinite;\n animation: loader 2s linear infinite;\n opacity: 0;\n}\n\n.preloader-content:before {\n -webkit-animation-delay: 0.5s;\n animation-delay: 0.5s;\n}\n\n@-webkit-keyframes loader {\n 0% {\n transform: scale(0);\n opacity: 0;\n }\n 50% {\n opacity: 1;\n }\n 100% {\n transform: scale(1);\n opacity: 0;\n }\n}\n\n@keyframes loader {\n 0% {\n transform: scale(0);\n opacity: 0;\n }\n 50% {\n opacity: 1;\n }\n 100% {\n transform: scale(1);\n opacity: 0;\n }\n}\n* {\n box-sizing: border-box;\n}\n\nhtml {\n height: 100%;\n font-size: 14px;\n}\n\nbody {\n font-family: var(--font-family);\n color: var(--text-color);\n background-color: var(--surface-ground);\n margin: 0;\n padding: 0;\n min-height: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\na {\n text-decoration: none;\n color: var(--primary-color);\n}\n\n.layout-theme-light {\n background-color: #edf1f5;\n}\n\n.layout-topbar {\n position: fixed;\n height: 5rem;\n z-index: 997;\n left: 0;\n top: 0;\n width: 100%;\n padding: 0 2rem;\n background-color: var(--surface-card);\n transition: left 0.2s;\n display: flex;\n align-items: center;\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08);\n}\n.layout-topbar .layout-topbar-logo {\n display: flex;\n align-items: center;\n color: var(--surface-900);\n font-size: 1.5rem;\n font-weight: 500;\n width: 300px;\n border-radius: 12px;\n}\n.layout-topbar .layout-topbar-logo img {\n height: 2.5rem;\n margin-right: 0.5rem;\n}\n.layout-topbar .layout-topbar-logo:focus {\n outline: 0 none;\n outline-offset: 0;\n transition: box-shadow 0.2s;\n box-shadow: var(--focus-ring);\n}\n.layout-topbar .layout-topbar-button {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n position: relative;\n color: var(--text-color-secondary);\n border-radius: 50%;\n width: 3rem;\n height: 3rem;\n cursor: pointer;\n transition: background-color 0.2s;\n}\n.layout-topbar .layout-topbar-button:hover {\n color: var(--text-color);\n background-color: var(--surface-hover);\n}\n.layout-topbar .layout-topbar-button:focus {\n outline: 0 none;\n outline-offset: 0;\n transition: box-shadow 0.2s;\n box-shadow: var(--focus-ring);\n}\n.layout-topbar .layout-topbar-button i {\n font-size: 1.5rem;\n}\n.layout-topbar .layout-topbar-button span {\n font-size: 1rem;\n display: none;\n}\n.layout-topbar .layout-menu-button {\n margin-left: 2rem;\n}\n.layout-topbar .layout-topbar-menu-button {\n display: none;\n}\n.layout-topbar .layout-topbar-menu-button i {\n font-size: 1.25rem;\n}\n.layout-topbar .layout-topbar-menu {\n margin: 0 0 0 auto;\n padding: 0;\n list-style: none;\n display: flex;\n}\n.layout-topbar .layout-topbar-menu .layout-topbar-button {\n margin-left: 1rem;\n}\n\n@media (max-width: 991px) {\n .layout-topbar {\n justify-content: space-between;\n }\n .layout-topbar .layout-topbar-logo {\n width: auto;\n order: 2;\n }\n .layout-topbar .layout-menu-button {\n margin-left: 0;\n order: 1;\n }\n .layout-topbar .layout-topbar-menu-button {\n display: inline-flex;\n margin-left: 0;\n order: 3;\n }\n .layout-topbar .layout-topbar-menu {\n margin-left: 0;\n position: absolute;\n flex-direction: column;\n background-color: var(--surface-overlay);\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08);\n border-radius: 12px;\n padding: 1rem;\n right: 2rem;\n top: 5rem;\n min-width: 15rem;\n }\n .layout-topbar .layout-topbar-menu .layout-topbar-button {\n margin-left: 0;\n display: flex;\n width: 100%;\n height: auto;\n justify-content: flex-start;\n border-radius: 12px;\n padding: 1rem;\n }\n .layout-topbar .layout-topbar-menu .layout-topbar-button i {\n font-size: 1rem;\n margin-right: 0.5rem;\n }\n .layout-topbar .layout-topbar-menu .layout-topbar-button span {\n font-weight: medium;\n display: block;\n }\n}\n.layout-sidebar {\n position: fixed;\n width: 300px;\n height: calc(100vh - 9rem);\n z-index: 999;\n overflow-y: auto;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n top: 7rem;\n left: 2rem;\n transition: transform 0.2s, left 0.2s;\n background-color: var(--surface-overlay);\n border-radius: 12px;\n padding: 1.5rem;\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08);\n}\n\n.layout-menu {\n list-style-type: none;\n margin: 0;\n padding: 0;\n}\n.layout-menu li.layout-menuitem-category {\n margin-top: 0.75rem;\n}\n.layout-menu li.layout-menuitem-category:first-child {\n margin-top: 0;\n}\n.layout-menu li .layout-menuitem-root-text {\n text-transform: uppercase;\n color: var(--surface-900);\n font-weight: 600;\n margin-bottom: 0.5rem;\n font-size: 0.875rem;\n}\n.layout-menu li a {\n cursor: pointer;\n text-decoration: none;\n display: flex;\n align-items: center;\n color: var(--text-color);\n transition: color 0.2s;\n border-radius: 12px;\n padding: 0.75rem 1rem;\n transition: background-color 0.15s;\n}\n.layout-menu li a span {\n margin-left: 0.5rem;\n}\n.layout-menu li a .menuitem-toggle-icon {\n margin-left: auto;\n}\n.layout-menu li a:focus {\n outline: 0 none;\n outline-offset: 0;\n transition: box-shadow 0.2s;\n box-shadow: inset var(--focus-ring);\n}\n.layout-menu li a:hover {\n background-color: var(--surface-hover);\n}\n.layout-menu li a.router-link-exact-active {\n font-weight: 700;\n color: var(--primary-color);\n}\n.layout-menu li a .p-badge {\n margin-left: auto;\n}\n.layout-menu li.active-menuitem > a .menuitem-toggle-icon:before {\n content: \"\\e933\";\n}\n.layout-menu li ul {\n list-style-type: none;\n margin: 0;\n padding: 0;\n}\n.layout-menu li ul.layout-submenu-wrapper-enter-from, .layout-menu li ul.layout-submenu-wrapper-leave-to {\n max-height: 0;\n}\n.layout-menu li ul.layout-submenu-wrapper-enter-to, .layout-menu li ul.layout-submenu-wrapper-leave-from {\n max-height: 1000px;\n}\n.layout-menu li ul.layout-submenu-wrapper-leave-active {\n overflow: hidden;\n transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);\n}\n.layout-menu li ul.layout-submenu-wrapper-enter-active {\n overflow: hidden;\n transition: max-height 1s ease-in-out;\n}\n.layout-menu li ul ul {\n padding-left: 1rem;\n}\n\n.layout-main-container {\n display: flex;\n flex-direction: column;\n min-height: 100vh;\n justify-content: space-between;\n padding: 7rem 2rem 2rem 4rem;\n transition: margin-left 0.2s;\n}\n\n.layout-main {\n flex: 1 1 auto;\n}\n\n.layout-footer {\n transition: margin-left 0.2s;\n display: flex;\n align-items: center;\n justify-content: center;\n padding-top: 1rem;\n border-top: 1px solid var(--surface-border);\n}\n\n@media (min-width: 992px) {\n .layout-wrapper.layout-overlay .layout-main-container {\n margin-left: 0;\n padding-left: 2rem;\n }\n .layout-wrapper.layout-overlay .layout-sidebar {\n transform: translateX(-100%);\n left: 0;\n top: 0;\n height: 100vh;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n .layout-wrapper.layout-overlay.layout-overlay-sidebar-active .layout-sidebar {\n transform: translateX(0);\n }\n .layout-wrapper.layout-static .layout-main-container {\n margin-left: 300px;\n }\n .layout-wrapper.layout-static.layout-static-sidebar-inactive .layout-sidebar {\n transform: translateX(-100%);\n left: 0;\n }\n .layout-wrapper.layout-static.layout-static-sidebar-inactive .layout-main-container {\n margin-left: 0;\n padding-left: 2rem;\n }\n .layout-wrapper .layout-mask {\n display: none;\n }\n}\n@media (max-width: 991px) {\n .layout-wrapper .layout-main-container {\n margin-left: 0;\n padding-left: 2rem;\n }\n .layout-wrapper .layout-sidebar {\n transform: translateX(-100%);\n left: 0;\n top: 0;\n height: 100vh;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n .layout-wrapper .layout-mask {\n z-index: 998;\n background-color: var(--maskbg);\n }\n .layout-wrapper .layout-mask.layout-mask-enter-from, .layout-wrapper .layout-mask.layout-mask-leave-to {\n background-color: transparent;\n }\n .layout-wrapper.layout-mobile-sidebar-active .layout-sidebar {\n transform: translateX(0);\n }\n .layout-wrapper.layout-mobile-sidebar-active .layout-mask {\n display: block;\n }\n\n .body-overflow-hidden {\n overflow: hidden;\n }\n}\n.card {\n background-color: var(--surface-card);\n padding: 1.5rem;\n color: var(--surface-900);\n margin-bottom: 1rem;\n border-radius: 12px;\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08) !important;\n}\n.card.card-w-title {\n padding-bottom: 2rem;\n}\n\nh1, h2, h3, h4, h5, h6 {\n margin: 1.5rem 0 1rem 0;\n font-family: inherit;\n font-weight: 500;\n line-height: 1.2;\n color: inherit;\n}\nh1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child {\n margin-top: 0;\n}\n\nh1 {\n font-size: 2.5rem;\n}\n\nh2 {\n font-size: 2rem;\n}\n\nh3 {\n font-size: 1.75rem;\n}\n\nh4 {\n font-size: 1.5rem;\n}\n\nh5 {\n font-size: 1.25rem;\n}\n\nh6 {\n font-size: 1rem;\n}\n\nmark {\n background: #FFF8E1;\n padding: 0.25rem 0.4rem;\n border-radius: 12px;\n font-family: monospace;\n}\n\nblockquote {\n margin: 1rem 0;\n padding: 0 2rem;\n border-left: 4px solid #90A4AE;\n}\n\nhr {\n border-top: solid var(--surface-border);\n border-width: 1px 0 0 0;\n margin: 1rem 0;\n}\n\np {\n margin: 0 0 1rem 0;\n line-height: 1.5;\n}\np:last-child {\n margin-bottom: 0;\n}", ""]);
  21341. // Exports
  21342. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
  21343. /***/ }),
  21344. /***/ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primeflex/primeflex.css":
  21345. /*!******************************************************************************************************************************************************************************!*\
  21346. !*** ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primeflex/primeflex.css ***!
  21347. \******************************************************************************************************************************************************************************/
  21348. /***/ ((module, __webpack_exports__, __webpack_require__) => {
  21349. "use strict";
  21350. __webpack_require__.r(__webpack_exports__);
  21351. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21352. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21353. /* harmony export */ });
  21354. /* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
  21355. /* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
  21356. // Imports
  21357. var ___CSS_LOADER_EXPORT___ = _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
  21358. // Module
  21359. ___CSS_LOADER_EXPORT___.push([module.id, ".grid {\n display: flex;\n flex-wrap: wrap;\n margin-right: -0.5rem;\n margin-left: -0.5rem;\n margin-top: -0.5rem;\n}\n\n.grid > .col,\n.grid > [class*=col] {\n box-sizing: border-box;\n}\n\n.grid-nogutter {\n margin-right: 0;\n margin-left: 0;\n margin-top: 0;\n}\n\n.grid-nogutter > .col,\n.grid-nogutter > [class*=col-] {\n padding: 0;\n}\n\n.col {\n flex-grow: 1;\n flex-basis: 0;\n padding: 0.5rem;\n}\n\n.col-fixed {\n flex: 0 0 auto;\n padding: 0.5rem;\n}\n\n.col-1 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 8.3333%;\n}\n\n.col-2 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 16.6667%;\n}\n\n.col-3 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 25%;\n}\n\n.col-4 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 33.3333%;\n}\n\n.col-5 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 41.6667%;\n}\n\n.col-6 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 50%;\n}\n\n.col-7 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 58.3333%;\n}\n\n.col-8 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 66.6667%;\n}\n\n.col-9 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 75%;\n}\n\n.col-10 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 83.3333%;\n}\n\n.col-11 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 91.6667%;\n}\n\n.col-12 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 100%;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:col-1 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 8.3333%;\n }\n .sm\\:col-2 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 16.6667%;\n }\n .sm\\:col-3 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 25%;\n }\n .sm\\:col-4 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 33.3333%;\n }\n .sm\\:col-5 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 41.6667%;\n }\n .sm\\:col-6 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 50%;\n }\n .sm\\:col-7 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 58.3333%;\n }\n .sm\\:col-8 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 66.6667%;\n }\n .sm\\:col-9 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 75%;\n }\n .sm\\:col-10 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 83.3333%;\n }\n .sm\\:col-11 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 91.6667%;\n }\n .sm\\:col-12 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 100%;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:col-1 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 8.3333%;\n }\n .md\\:col-2 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 16.6667%;\n }\n .md\\:col-3 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 25%;\n }\n .md\\:col-4 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 33.3333%;\n }\n .md\\:col-5 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 41.6667%;\n }\n .md\\:col-6 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 50%;\n }\n .md\\:col-7 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 58.3333%;\n }\n .md\\:col-8 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 66.6667%;\n }\n .md\\:col-9 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 75%;\n }\n .md\\:col-10 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 83.3333%;\n }\n .md\\:col-11 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 91.6667%;\n }\n .md\\:col-12 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 100%;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:col-1 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 8.3333%;\n }\n .lg\\:col-2 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 16.6667%;\n }\n .lg\\:col-3 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 25%;\n }\n .lg\\:col-4 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 33.3333%;\n }\n .lg\\:col-5 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 41.6667%;\n }\n .lg\\:col-6 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 50%;\n }\n .lg\\:col-7 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 58.3333%;\n }\n .lg\\:col-8 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 66.6667%;\n }\n .lg\\:col-9 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 75%;\n }\n .lg\\:col-10 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 83.3333%;\n }\n .lg\\:col-11 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 91.6667%;\n }\n .lg\\:col-12 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 100%;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:col-1 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 8.3333%;\n }\n .xl\\:col-2 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 16.6667%;\n }\n .xl\\:col-3 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 25%;\n }\n .xl\\:col-4 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 33.3333%;\n }\n .xl\\:col-5 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 41.6667%;\n }\n .xl\\:col-6 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 50%;\n }\n .xl\\:col-7 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 58.3333%;\n }\n .xl\\:col-8 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 66.6667%;\n }\n .xl\\:col-9 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 75%;\n }\n .xl\\:col-10 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 83.3333%;\n }\n .xl\\:col-11 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 91.6667%;\n }\n .xl\\:col-12 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 100%;\n }\n}\n.col-offset-0 {\n margin-left: 0 !important;\n}\n\n.col-offset-1 {\n margin-left: 8.3333% !important;\n}\n\n.col-offset-2 {\n margin-left: 16.6667% !important;\n}\n\n.col-offset-3 {\n margin-left: 25% !important;\n}\n\n.col-offset-4 {\n margin-left: 33.3333% !important;\n}\n\n.col-offset-5 {\n margin-left: 41.6667% !important;\n}\n\n.col-offset-6 {\n margin-left: 50% !important;\n}\n\n.col-offset-7 {\n margin-left: 58.3333% !important;\n}\n\n.col-offset-8 {\n margin-left: 66.6667% !important;\n}\n\n.col-offset-9 {\n margin-left: 75% !important;\n}\n\n.col-offset-10 {\n margin-left: 83.3333% !important;\n}\n\n.col-offset-11 {\n margin-left: 91.6667% !important;\n}\n\n.col-offset-12 {\n margin-left: 100% !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:col-offset-0 {\n margin-left: 0 !important;\n }\n .sm\\:col-offset-1 {\n margin-left: 8.3333% !important;\n }\n .sm\\:col-offset-2 {\n margin-left: 16.6667% !important;\n }\n .sm\\:col-offset-3 {\n margin-left: 25% !important;\n }\n .sm\\:col-offset-4 {\n margin-left: 33.3333% !important;\n }\n .sm\\:col-offset-5 {\n margin-left: 41.6667% !important;\n }\n .sm\\:col-offset-6 {\n margin-left: 50% !important;\n }\n .sm\\:col-offset-7 {\n margin-left: 58.3333% !important;\n }\n .sm\\:col-offset-8 {\n margin-left: 66.6667% !important;\n }\n .sm\\:col-offset-9 {\n margin-left: 75% !important;\n }\n .sm\\:col-offset-10 {\n margin-left: 83.3333% !important;\n }\n .sm\\:col-offset-11 {\n margin-left: 91.6667% !important;\n }\n .sm\\:col-offset-12 {\n margin-left: 100% !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:col-offset-0 {\n margin-left: 0 !important;\n }\n .md\\:col-offset-1 {\n margin-left: 8.3333% !important;\n }\n .md\\:col-offset-2 {\n margin-left: 16.6667% !important;\n }\n .md\\:col-offset-3 {\n margin-left: 25% !important;\n }\n .md\\:col-offset-4 {\n margin-left: 33.3333% !important;\n }\n .md\\:col-offset-5 {\n margin-left: 41.6667% !important;\n }\n .md\\:col-offset-6 {\n margin-left: 50% !important;\n }\n .md\\:col-offset-7 {\n margin-left: 58.3333% !important;\n }\n .md\\:col-offset-8 {\n margin-left: 66.6667% !important;\n }\n .md\\:col-offset-9 {\n margin-left: 75% !important;\n }\n .md\\:col-offset-10 {\n margin-left: 83.3333% !important;\n }\n .md\\:col-offset-11 {\n margin-left: 91.6667% !important;\n }\n .md\\:col-offset-12 {\n margin-left: 100% !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:col-offset-0 {\n margin-left: 0 !important;\n }\n .lg\\:col-offset-1 {\n margin-left: 8.3333% !important;\n }\n .lg\\:col-offset-2 {\n margin-left: 16.6667% !important;\n }\n .lg\\:col-offset-3 {\n margin-left: 25% !important;\n }\n .lg\\:col-offset-4 {\n margin-left: 33.3333% !important;\n }\n .lg\\:col-offset-5 {\n margin-left: 41.6667% !important;\n }\n .lg\\:col-offset-6 {\n margin-left: 50% !important;\n }\n .lg\\:col-offset-7 {\n margin-left: 58.3333% !important;\n }\n .lg\\:col-offset-8 {\n margin-left: 66.6667% !important;\n }\n .lg\\:col-offset-9 {\n margin-left: 75% !important;\n }\n .lg\\:col-offset-10 {\n margin-left: 83.3333% !important;\n }\n .lg\\:col-offset-11 {\n margin-left: 91.6667% !important;\n }\n .lg\\:col-offset-12 {\n margin-left: 100% !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:col-offset-0 {\n margin-left: 0 !important;\n }\n .xl\\:col-offset-1 {\n margin-left: 8.3333% !important;\n }\n .xl\\:col-offset-2 {\n margin-left: 16.6667% !important;\n }\n .xl\\:col-offset-3 {\n margin-left: 25% !important;\n }\n .xl\\:col-offset-4 {\n margin-left: 33.3333% !important;\n }\n .xl\\:col-offset-5 {\n margin-left: 41.6667% !important;\n }\n .xl\\:col-offset-6 {\n margin-left: 50% !important;\n }\n .xl\\:col-offset-7 {\n margin-left: 58.3333% !important;\n }\n .xl\\:col-offset-8 {\n margin-left: 66.6667% !important;\n }\n .xl\\:col-offset-9 {\n margin-left: 75% !important;\n }\n .xl\\:col-offset-10 {\n margin-left: 83.3333% !important;\n }\n .xl\\:col-offset-11 {\n margin-left: 91.6667% !important;\n }\n .xl\\:col-offset-12 {\n margin-left: 100% !important;\n }\n}\n.text-0 {\n color: var(--surface-0) !important;\n}\n\n.text-50 {\n color: var(--surface-50) !important;\n}\n\n.text-100 {\n color: var(--surface-100) !important;\n}\n\n.text-200 {\n color: var(--surface-200) !important;\n}\n\n.text-300 {\n color: var(--surface-300) !important;\n}\n\n.text-400 {\n color: var(--surface-400) !important;\n}\n\n.text-500 {\n color: var(--surface-500) !important;\n}\n\n.text-600 {\n color: var(--surface-600) !important;\n}\n\n.text-700 {\n color: var(--surface-700) !important;\n}\n\n.text-800 {\n color: var(--surface-800) !important;\n}\n\n.text-900 {\n color: var(--surface-900) !important;\n}\n\n.focus\\:text-0:focus {\n color: var(--surface-0) !important;\n}\n\n.hover\\:text-0:hover {\n color: var(--surface-0) !important;\n}\n\n.active\\:text-0:active {\n color: var(--surface-0) !important;\n}\n\n.focus\\:text-50:focus {\n color: var(--surface-50) !important;\n}\n\n.hover\\:text-50:hover {\n color: var(--surface-50) !important;\n}\n\n.active\\:text-50:active {\n color: var(--surface-50) !important;\n}\n\n.focus\\:text-100:focus {\n color: var(--surface-100) !important;\n}\n\n.hover\\:text-100:hover {\n color: var(--surface-100) !important;\n}\n\n.active\\:text-100:active {\n color: var(--surface-100) !important;\n}\n\n.focus\\:text-200:focus {\n color: var(--surface-200) !important;\n}\n\n.hover\\:text-200:hover {\n color: var(--surface-200) !important;\n}\n\n.active\\:text-200:active {\n color: var(--surface-200) !important;\n}\n\n.focus\\:text-300:focus {\n color: var(--surface-300) !important;\n}\n\n.hover\\:text-300:hover {\n color: var(--surface-300) !important;\n}\n\n.active\\:text-300:active {\n color: var(--surface-300) !important;\n}\n\n.focus\\:text-400:focus {\n color: var(--surface-400) !important;\n}\n\n.hover\\:text-400:hover {\n color: var(--surface-400) !important;\n}\n\n.active\\:text-400:active {\n color: var(--surface-400) !important;\n}\n\n.focus\\:text-500:focus {\n color: var(--surface-500) !important;\n}\n\n.hover\\:text-500:hover {\n color: var(--surface-500) !important;\n}\n\n.active\\:text-500:active {\n color: var(--surface-500) !important;\n}\n\n.focus\\:text-600:focus {\n color: var(--surface-600) !important;\n}\n\n.hover\\:text-600:hover {\n color: var(--surface-600) !important;\n}\n\n.active\\:text-600:active {\n color: var(--surface-600) !important;\n}\n\n.focus\\:text-700:focus {\n color: var(--surface-700) !important;\n}\n\n.hover\\:text-700:hover {\n color: var(--surface-700) !important;\n}\n\n.active\\:text-700:active {\n color: var(--surface-700) !important;\n}\n\n.focus\\:text-800:focus {\n color: var(--surface-800) !important;\n}\n\n.hover\\:text-800:hover {\n color: var(--surface-800) !important;\n}\n\n.active\\:text-800:active {\n color: var(--surface-800) !important;\n}\n\n.focus\\:text-900:focus {\n color: var(--surface-900) !important;\n}\n\n.hover\\:text-900:hover {\n color: var(--surface-900) !important;\n}\n\n.active\\:text-900:active {\n color: var(--surface-900) !important;\n}\n\n.surface-0 {\n background-color: var(--surface-0) !important;\n}\n\n.surface-50 {\n background-color: var(--surface-50) !important;\n}\n\n.surface-100 {\n background-color: var(--surface-100) !important;\n}\n\n.surface-200 {\n background-color: var(--surface-200) !important;\n}\n\n.surface-300 {\n background-color: var(--surface-300) !important;\n}\n\n.surface-400 {\n background-color: var(--surface-400) !important;\n}\n\n.surface-500 {\n background-color: var(--surface-500) !important;\n}\n\n.surface-600 {\n background-color: var(--surface-600) !important;\n}\n\n.surface-700 {\n background-color: var(--surface-700) !important;\n}\n\n.surface-800 {\n background-color: var(--surface-800) !important;\n}\n\n.surface-900 {\n background-color: var(--surface-900) !important;\n}\n\n.focus\\:surface-0:focus {\n background-color: var(--surface-0) !important;\n}\n\n.hover\\:surface-0:hover {\n background-color: var(--surface-0) !important;\n}\n\n.active\\:surface-0:active {\n background-color: var(--surface-0) !important;\n}\n\n.focus\\:surface-50:focus {\n background-color: var(--surface-50) !important;\n}\n\n.hover\\:surface-50:hover {\n background-color: var(--surface-50) !important;\n}\n\n.active\\:surface-50:active {\n background-color: var(--surface-50) !important;\n}\n\n.focus\\:surface-100:focus {\n background-color: var(--surface-100) !important;\n}\n\n.hover\\:surface-100:hover {\n background-color: var(--surface-100) !important;\n}\n\n.active\\:surface-100:active {\n background-color: var(--surface-100) !important;\n}\n\n.focus\\:surface-200:focus {\n background-color: var(--surface-200) !important;\n}\n\n.hover\\:surface-200:hover {\n background-color: var(--surface-200) !important;\n}\n\n.active\\:surface-200:active {\n background-color: var(--surface-200) !important;\n}\n\n.focus\\:surface-300:focus {\n background-color: var(--surface-300) !important;\n}\n\n.hover\\:surface-300:hover {\n background-color: var(--surface-300) !important;\n}\n\n.active\\:surface-300:active {\n background-color: var(--surface-300) !important;\n}\n\n.focus\\:surface-400:focus {\n background-color: var(--surface-400) !important;\n}\n\n.hover\\:surface-400:hover {\n background-color: var(--surface-400) !important;\n}\n\n.active\\:surface-400:active {\n background-color: var(--surface-400) !important;\n}\n\n.focus\\:surface-500:focus {\n background-color: var(--surface-500) !important;\n}\n\n.hover\\:surface-500:hover {\n background-color: var(--surface-500) !important;\n}\n\n.active\\:surface-500:active {\n background-color: var(--surface-500) !important;\n}\n\n.focus\\:surface-600:focus {\n background-color: var(--surface-600) !important;\n}\n\n.hover\\:surface-600:hover {\n background-color: var(--surface-600) !important;\n}\n\n.active\\:surface-600:active {\n background-color: var(--surface-600) !important;\n}\n\n.focus\\:surface-700:focus {\n background-color: var(--surface-700) !important;\n}\n\n.hover\\:surface-700:hover {\n background-color: var(--surface-700) !important;\n}\n\n.active\\:surface-700:active {\n background-color: var(--surface-700) !important;\n}\n\n.focus\\:surface-800:focus {\n background-color: var(--surface-800) !important;\n}\n\n.hover\\:surface-800:hover {\n background-color: var(--surface-800) !important;\n}\n\n.active\\:surface-800:active {\n background-color: var(--surface-800) !important;\n}\n\n.focus\\:surface-900:focus {\n background-color: var(--surface-900) !important;\n}\n\n.hover\\:surface-900:hover {\n background-color: var(--surface-900) !important;\n}\n\n.active\\:surface-900:active {\n background-color: var(--surface-900) !important;\n}\n\n.border-0 {\n border-color: var(--surface-0) !important;\n}\n\n.border-50 {\n border-color: var(--surface-50) !important;\n}\n\n.border-100 {\n border-color: var(--surface-100) !important;\n}\n\n.border-200 {\n border-color: var(--surface-200) !important;\n}\n\n.border-300 {\n border-color: var(--surface-300) !important;\n}\n\n.border-400 {\n border-color: var(--surface-400) !important;\n}\n\n.border-500 {\n border-color: var(--surface-500) !important;\n}\n\n.border-600 {\n border-color: var(--surface-600) !important;\n}\n\n.border-700 {\n border-color: var(--surface-700) !important;\n}\n\n.border-800 {\n border-color: var(--surface-800) !important;\n}\n\n.border-900 {\n border-color: var(--surface-900) !important;\n}\n\n.focus\\:border-0:focus {\n border-color: var(--surface-0) !important;\n}\n\n.hover\\:border-0:hover {\n border-color: var(--surface-0) !important;\n}\n\n.active\\:border-0:active {\n border-color: var(--surface-0) !important;\n}\n\n.focus\\:border-50:focus {\n border-color: var(--surface-50) !important;\n}\n\n.hover\\:border-50:hover {\n border-color: var(--surface-50) !important;\n}\n\n.active\\:border-50:active {\n border-color: var(--surface-50) !important;\n}\n\n.focus\\:border-100:focus {\n border-color: var(--surface-100) !important;\n}\n\n.hover\\:border-100:hover {\n border-color: var(--surface-100) !important;\n}\n\n.active\\:border-100:active {\n border-color: var(--surface-100) !important;\n}\n\n.focus\\:border-200:focus {\n border-color: var(--surface-200) !important;\n}\n\n.hover\\:border-200:hover {\n border-color: var(--surface-200) !important;\n}\n\n.active\\:border-200:active {\n border-color: var(--surface-200) !important;\n}\n\n.focus\\:border-300:focus {\n border-color: var(--surface-300) !important;\n}\n\n.hover\\:border-300:hover {\n border-color: var(--surface-300) !important;\n}\n\n.active\\:border-300:active {\n border-color: var(--surface-300) !important;\n}\n\n.focus\\:border-400:focus {\n border-color: var(--surface-400) !important;\n}\n\n.hover\\:border-400:hover {\n border-color: var(--surface-400) !important;\n}\n\n.active\\:border-400:active {\n border-color: var(--surface-400) !important;\n}\n\n.focus\\:border-500:focus {\n border-color: var(--surface-500) !important;\n}\n\n.hover\\:border-500:hover {\n border-color: var(--surface-500) !important;\n}\n\n.active\\:border-500:active {\n border-color: var(--surface-500) !important;\n}\n\n.focus\\:border-600:focus {\n border-color: var(--surface-600) !important;\n}\n\n.hover\\:border-600:hover {\n border-color: var(--surface-600) !important;\n}\n\n.active\\:border-600:active {\n border-color: var(--surface-600) !important;\n}\n\n.focus\\:border-700:focus {\n border-color: var(--surface-700) !important;\n}\n\n.hover\\:border-700:hover {\n border-color: var(--surface-700) !important;\n}\n\n.active\\:border-700:active {\n border-color: var(--surface-700) !important;\n}\n\n.focus\\:border-800:focus {\n border-color: var(--surface-800) !important;\n}\n\n.hover\\:border-800:hover {\n border-color: var(--surface-800) !important;\n}\n\n.active\\:border-800:active {\n border-color: var(--surface-800) !important;\n}\n\n.focus\\:border-900:focus {\n border-color: var(--surface-900) !important;\n}\n\n.hover\\:border-900:hover {\n border-color: var(--surface-900) !important;\n}\n\n.active\\:border-900:active {\n border-color: var(--surface-900) !important;\n}\n\n.bg-transparent {\n background-color: transparent !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:bg-transparent {\n background-color: transparent !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:bg-transparent {\n background-color: transparent !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:bg-transparent {\n background-color: transparent !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:bg-transparent {\n background-color: transparent !important;\n }\n}\n.border-transparent {\n border-color: transparent !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:border-transparent {\n border-color: transparent !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:border-transparent {\n border-color: transparent !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:border-transparent {\n border-color: transparent !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:border-transparent {\n border-color: transparent !important;\n }\n}\n.text-blue-50 {\n color: var(--blue-50) !important;\n}\n.text-blue-100 {\n color: var(--blue-100) !important;\n}\n.text-blue-200 {\n color: var(--blue-200) !important;\n}\n.text-blue-300 {\n color: var(--blue-300) !important;\n}\n.text-blue-400 {\n color: var(--blue-400) !important;\n}\n.text-blue-500 {\n color: var(--blue-500) !important;\n}\n.text-blue-600 {\n color: var(--blue-600) !important;\n}\n.text-blue-700 {\n color: var(--blue-700) !important;\n}\n.text-blue-800 {\n color: var(--blue-800) !important;\n}\n.text-blue-900 {\n color: var(--blue-900) !important;\n}\n\n.focus\\:text-blue-50:focus {\n color: var(--blue-50) !important;\n}\n.focus\\:text-blue-100:focus {\n color: var(--blue-100) !important;\n}\n.focus\\:text-blue-200:focus {\n color: var(--blue-200) !important;\n}\n.focus\\:text-blue-300:focus {\n color: var(--blue-300) !important;\n}\n.focus\\:text-blue-400:focus {\n color: var(--blue-400) !important;\n}\n.focus\\:text-blue-500:focus {\n color: var(--blue-500) !important;\n}\n.focus\\:text-blue-600:focus {\n color: var(--blue-600) !important;\n}\n.focus\\:text-blue-700:focus {\n color: var(--blue-700) !important;\n}\n.focus\\:text-blue-800:focus {\n color: var(--blue-800) !important;\n}\n.focus\\:text-blue-900:focus {\n color: var(--blue-900) !important;\n}\n\n.hover\\:text-blue-50:hover {\n color: var(--blue-50) !important;\n}\n.hover\\:text-blue-100:hover {\n color: var(--blue-100) !important;\n}\n.hover\\:text-blue-200:hover {\n color: var(--blue-200) !important;\n}\n.hover\\:text-blue-300:hover {\n color: var(--blue-300) !important;\n}\n.hover\\:text-blue-400:hover {\n color: var(--blue-400) !important;\n}\n.hover\\:text-blue-500:hover {\n color: var(--blue-500) !important;\n}\n.hover\\:text-blue-600:hover {\n color: var(--blue-600) !important;\n}\n.hover\\:text-blue-700:hover {\n color: var(--blue-700) !important;\n}\n.hover\\:text-blue-800:hover {\n color: var(--blue-800) !important;\n}\n.hover\\:text-blue-900:hover {\n color: var(--blue-900) !important;\n}\n\n.active\\:text-blue-50:active {\n color: var(--blue-50) !important;\n}\n.active\\:text-blue-100:active {\n color: var(--blue-100) !important;\n}\n.active\\:text-blue-200:active {\n color: var(--blue-200) !important;\n}\n.active\\:text-blue-300:active {\n color: var(--blue-300) !important;\n}\n.active\\:text-blue-400:active {\n color: var(--blue-400) !important;\n}\n.active\\:text-blue-500:active {\n color: var(--blue-500) !important;\n}\n.active\\:text-blue-600:active {\n color: var(--blue-600) !important;\n}\n.active\\:text-blue-700:active {\n color: var(--blue-700) !important;\n}\n.active\\:text-blue-800:active {\n color: var(--blue-800) !important;\n}\n.active\\:text-blue-900:active {\n color: var(--blue-900) !important;\n}\n\n.text-green-50 {\n color: var(--green-50) !important;\n}\n.text-green-100 {\n color: var(--green-100) !important;\n}\n.text-green-200 {\n color: var(--green-200) !important;\n}\n.text-green-300 {\n color: var(--green-300) !important;\n}\n.text-green-400 {\n color: var(--green-400) !important;\n}\n.text-green-500 {\n color: var(--green-500) !important;\n}\n.text-green-600 {\n color: var(--green-600) !important;\n}\n.text-green-700 {\n color: var(--green-700) !important;\n}\n.text-green-800 {\n color: var(--green-800) !important;\n}\n.text-green-900 {\n color: var(--green-900) !important;\n}\n\n.focus\\:text-green-50:focus {\n color: var(--green-50) !important;\n}\n.focus\\:text-green-100:focus {\n color: var(--green-100) !important;\n}\n.focus\\:text-green-200:focus {\n color: var(--green-200) !important;\n}\n.focus\\:text-green-300:focus {\n color: var(--green-300) !important;\n}\n.focus\\:text-green-400:focus {\n color: var(--green-400) !important;\n}\n.focus\\:text-green-500:focus {\n color: var(--green-500) !important;\n}\n.focus\\:text-green-600:focus {\n color: var(--green-600) !important;\n}\n.focus\\:text-green-700:focus {\n color: var(--green-700) !important;\n}\n.focus\\:text-green-800:focus {\n color: var(--green-800) !important;\n}\n.focus\\:text-green-900:focus {\n color: var(--green-900) !important;\n}\n\n.hover\\:text-green-50:hover {\n color: var(--green-50) !important;\n}\n.hover\\:text-green-100:hover {\n color: var(--green-100) !important;\n}\n.hover\\:text-green-200:hover {\n color: var(--green-200) !important;\n}\n.hover\\:text-green-300:hover {\n color: var(--green-300) !important;\n}\n.hover\\:text-green-400:hover {\n color: var(--green-400) !important;\n}\n.hover\\:text-green-500:hover {\n color: var(--green-500) !important;\n}\n.hover\\:text-green-600:hover {\n color: var(--green-600) !important;\n}\n.hover\\:text-green-700:hover {\n color: var(--green-700) !important;\n}\n.hover\\:text-green-800:hover {\n color: var(--green-800) !important;\n}\n.hover\\:text-green-900:hover {\n color: var(--green-900) !important;\n}\n\n.active\\:text-green-50:active {\n color: var(--green-50) !important;\n}\n.active\\:text-green-100:active {\n color: var(--green-100) !important;\n}\n.active\\:text-green-200:active {\n color: var(--green-200) !important;\n}\n.active\\:text-green-300:active {\n color: var(--green-300) !important;\n}\n.active\\:text-green-400:active {\n color: var(--green-400) !important;\n}\n.active\\:text-green-500:active {\n color: var(--green-500) !important;\n}\n.active\\:text-green-600:active {\n color: var(--green-600) !important;\n}\n.active\\:text-green-700:active {\n color: var(--green-700) !important;\n}\n.active\\:text-green-800:active {\n color: var(--green-800) !important;\n}\n.active\\:text-green-900:active {\n color: var(--green-900) !important;\n}\n\n.text-yellow-50 {\n color: var(--yellow-50) !important;\n}\n.text-yellow-100 {\n color: var(--yellow-100) !important;\n}\n.text-yellow-200 {\n color: var(--yellow-200) !important;\n}\n.text-yellow-300 {\n color: var(--yellow-300) !important;\n}\n.text-yellow-400 {\n color: var(--yellow-400) !important;\n}\n.text-yellow-500 {\n color: var(--yellow-500) !important;\n}\n.text-yellow-600 {\n color: var(--yellow-600) !important;\n}\n.text-yellow-700 {\n color: var(--yellow-700) !important;\n}\n.text-yellow-800 {\n color: var(--yellow-800) !important;\n}\n.text-yellow-900 {\n color: var(--yellow-900) !important;\n}\n\n.focus\\:text-yellow-50:focus {\n color: var(--yellow-50) !important;\n}\n.focus\\:text-yellow-100:focus {\n color: var(--yellow-100) !important;\n}\n.focus\\:text-yellow-200:focus {\n color: var(--yellow-200) !important;\n}\n.focus\\:text-yellow-300:focus {\n color: var(--yellow-300) !important;\n}\n.focus\\:text-yellow-400:focus {\n color: var(--yellow-400) !important;\n}\n.focus\\:text-yellow-500:focus {\n color: var(--yellow-500) !important;\n}\n.focus\\:text-yellow-600:focus {\n color: var(--yellow-600) !important;\n}\n.focus\\:text-yellow-700:focus {\n color: var(--yellow-700) !important;\n}\n.focus\\:text-yellow-800:focus {\n color: var(--yellow-800) !important;\n}\n.focus\\:text-yellow-900:focus {\n color: var(--yellow-900) !important;\n}\n\n.hover\\:text-yellow-50:hover {\n color: var(--yellow-50) !important;\n}\n.hover\\:text-yellow-100:hover {\n color: var(--yellow-100) !important;\n}\n.hover\\:text-yellow-200:hover {\n color: var(--yellow-200) !important;\n}\n.hover\\:text-yellow-300:hover {\n color: var(--yellow-300) !important;\n}\n.hover\\:text-yellow-400:hover {\n color: var(--yellow-400) !important;\n}\n.hover\\:text-yellow-500:hover {\n color: var(--yellow-500) !important;\n}\n.hover\\:text-yellow-600:hover {\n color: var(--yellow-600) !important;\n}\n.hover\\:text-yellow-700:hover {\n color: var(--yellow-700) !important;\n}\n.hover\\:text-yellow-800:hover {\n color: var(--yellow-800) !important;\n}\n.hover\\:text-yellow-900:hover {\n color: var(--yellow-900) !important;\n}\n\n.active\\:text-yellow-50:active {\n color: var(--yellow-50) !important;\n}\n.active\\:text-yellow-100:active {\n color: var(--yellow-100) !important;\n}\n.active\\:text-yellow-200:active {\n color: var(--yellow-200) !important;\n}\n.active\\:text-yellow-300:active {\n color: var(--yellow-300) !important;\n}\n.active\\:text-yellow-400:active {\n color: var(--yellow-400) !important;\n}\n.active\\:text-yellow-500:active {\n color: var(--yellow-500) !important;\n}\n.active\\:text-yellow-600:active {\n color: var(--yellow-600) !important;\n}\n.active\\:text-yellow-700:active {\n color: var(--yellow-700) !important;\n}\n.active\\:text-yellow-800:active {\n color: var(--yellow-800) !important;\n}\n.active\\:text-yellow-900:active {\n color: var(--yellow-900) !important;\n}\n\n.text-cyan-50 {\n color: var(--cyan-50) !important;\n}\n.text-cyan-100 {\n color: var(--cyan-100) !important;\n}\n.text-cyan-200 {\n color: var(--cyan-200) !important;\n}\n.text-cyan-300 {\n color: var(--cyan-300) !important;\n}\n.text-cyan-400 {\n color: var(--cyan-400) !important;\n}\n.text-cyan-500 {\n color: var(--cyan-500) !important;\n}\n.text-cyan-600 {\n color: var(--cyan-600) !important;\n}\n.text-cyan-700 {\n color: var(--cyan-700) !important;\n}\n.text-cyan-800 {\n color: var(--cyan-800) !important;\n}\n.text-cyan-900 {\n color: var(--cyan-900) !important;\n}\n\n.focus\\:text-cyan-50:focus {\n color: var(--cyan-50) !important;\n}\n.focus\\:text-cyan-100:focus {\n color: var(--cyan-100) !important;\n}\n.focus\\:text-cyan-200:focus {\n color: var(--cyan-200) !important;\n}\n.focus\\:text-cyan-300:focus {\n color: var(--cyan-300) !important;\n}\n.focus\\:text-cyan-400:focus {\n color: var(--cyan-400) !important;\n}\n.focus\\:text-cyan-500:focus {\n color: var(--cyan-500) !important;\n}\n.focus\\:text-cyan-600:focus {\n color: var(--cyan-600) !important;\n}\n.focus\\:text-cyan-700:focus {\n color: var(--cyan-700) !important;\n}\n.focus\\:text-cyan-800:focus {\n color: var(--cyan-800) !important;\n}\n.focus\\:text-cyan-900:focus {\n color: var(--cyan-900) !important;\n}\n\n.hover\\:text-cyan-50:hover {\n color: var(--cyan-50) !important;\n}\n.hover\\:text-cyan-100:hover {\n color: var(--cyan-100) !important;\n}\n.hover\\:text-cyan-200:hover {\n color: var(--cyan-200) !important;\n}\n.hover\\:text-cyan-300:hover {\n color: var(--cyan-300) !important;\n}\n.hover\\:text-cyan-400:hover {\n color: var(--cyan-400) !important;\n}\n.hover\\:text-cyan-500:hover {\n color: var(--cyan-500) !important;\n}\n.hover\\:text-cyan-600:hover {\n color: var(--cyan-600) !important;\n}\n.hover\\:text-cyan-700:hover {\n color: var(--cyan-700) !important;\n}\n.hover\\:text-cyan-800:hover {\n color: var(--cyan-800) !important;\n}\n.hover\\:text-cyan-900:hover {\n color: var(--cyan-900) !important;\n}\n\n.active\\:text-cyan-50:active {\n color: var(--cyan-50) !important;\n}\n.active\\:text-cyan-100:active {\n color: var(--cyan-100) !important;\n}\n.active\\:text-cyan-200:active {\n color: var(--cyan-200) !important;\n}\n.active\\:text-cyan-300:active {\n color: var(--cyan-300) !important;\n}\n.active\\:text-cyan-400:active {\n color: var(--cyan-400) !important;\n}\n.active\\:text-cyan-500:active {\n color: var(--cyan-500) !important;\n}\n.active\\:text-cyan-600:active {\n color: var(--cyan-600) !important;\n}\n.active\\:text-cyan-700:active {\n color: var(--cyan-700) !important;\n}\n.active\\:text-cyan-800:active {\n color: var(--cyan-800) !important;\n}\n.active\\:text-cyan-900:active {\n color: var(--cyan-900) !important;\n}\n\n.text-pink-50 {\n color: var(--pink-50) !important;\n}\n.text-pink-100 {\n color: var(--pink-100) !important;\n}\n.text-pink-200 {\n color: var(--pink-200) !important;\n}\n.text-pink-300 {\n color: var(--pink-300) !important;\n}\n.text-pink-400 {\n color: var(--pink-400) !important;\n}\n.text-pink-500 {\n color: var(--pink-500) !important;\n}\n.text-pink-600 {\n color: var(--pink-600) !important;\n}\n.text-pink-700 {\n color: var(--pink-700) !important;\n}\n.text-pink-800 {\n color: var(--pink-800) !important;\n}\n.text-pink-900 {\n color: var(--pink-900) !important;\n}\n\n.focus\\:text-pink-50:focus {\n color: var(--pink-50) !important;\n}\n.focus\\:text-pink-100:focus {\n color: var(--pink-100) !important;\n}\n.focus\\:text-pink-200:focus {\n color: var(--pink-200) !important;\n}\n.focus\\:text-pink-300:focus {\n color: var(--pink-300) !important;\n}\n.focus\\:text-pink-400:focus {\n color: var(--pink-400) !important;\n}\n.focus\\:text-pink-500:focus {\n color: var(--pink-500) !important;\n}\n.focus\\:text-pink-600:focus {\n color: var(--pink-600) !important;\n}\n.focus\\:text-pink-700:focus {\n color: var(--pink-700) !important;\n}\n.focus\\:text-pink-800:focus {\n color: var(--pink-800) !important;\n}\n.focus\\:text-pink-900:focus {\n color: var(--pink-900) !important;\n}\n\n.hover\\:text-pink-50:hover {\n color: var(--pink-50) !important;\n}\n.hover\\:text-pink-100:hover {\n color: var(--pink-100) !important;\n}\n.hover\\:text-pink-200:hover {\n color: var(--pink-200) !important;\n}\n.hover\\:text-pink-300:hover {\n color: var(--pink-300) !important;\n}\n.hover\\:text-pink-400:hover {\n color: var(--pink-400) !important;\n}\n.hover\\:text-pink-500:hover {\n color: var(--pink-500) !important;\n}\n.hover\\:text-pink-600:hover {\n color: var(--pink-600) !important;\n}\n.hover\\:text-pink-700:hover {\n color: var(--pink-700) !important;\n}\n.hover\\:text-pink-800:hover {\n color: var(--pink-800) !important;\n}\n.hover\\:text-pink-900:hover {\n color: var(--pink-900) !important;\n}\n\n.active\\:text-pink-50:active {\n color: var(--pink-50) !important;\n}\n.active\\:text-pink-100:active {\n color: var(--pink-100) !important;\n}\n.active\\:text-pink-200:active {\n color: var(--pink-200) !important;\n}\n.active\\:text-pink-300:active {\n color: var(--pink-300) !important;\n}\n.active\\:text-pink-400:active {\n color: var(--pink-400) !important;\n}\n.active\\:text-pink-500:active {\n color: var(--pink-500) !important;\n}\n.active\\:text-pink-600:active {\n color: var(--pink-600) !important;\n}\n.active\\:text-pink-700:active {\n color: var(--pink-700) !important;\n}\n.active\\:text-pink-800:active {\n color: var(--pink-800) !important;\n}\n.active\\:text-pink-900:active {\n color: var(--pink-900) !important;\n}\n\n.text-indigo-50 {\n color: var(--indigo-50) !important;\n}\n.text-indigo-100 {\n color: var(--indigo-100) !important;\n}\n.text-indigo-200 {\n color: var(--indigo-200) !important;\n}\n.text-indigo-300 {\n color: var(--indigo-300) !important;\n}\n.text-indigo-400 {\n color: var(--indigo-400) !important;\n}\n.text-indigo-500 {\n color: var(--indigo-500) !important;\n}\n.text-indigo-600 {\n color: var(--indigo-600) !important;\n}\n.text-indigo-700 {\n color: var(--indigo-700) !important;\n}\n.text-indigo-800 {\n color: var(--indigo-800) !important;\n}\n.text-indigo-900 {\n color: var(--indigo-900) !important;\n}\n\n.focus\\:text-indigo-50:focus {\n color: var(--indigo-50) !important;\n}\n.focus\\:text-indigo-100:focus {\n color: var(--indigo-100) !important;\n}\n.focus\\:text-indigo-200:focus {\n color: var(--indigo-200) !important;\n}\n.focus\\:text-indigo-300:focus {\n color: var(--indigo-300) !important;\n}\n.focus\\:text-indigo-400:focus {\n color: var(--indigo-400) !important;\n}\n.focus\\:text-indigo-500:focus {\n color: var(--indigo-500) !important;\n}\n.focus\\:text-indigo-600:focus {\n color: var(--indigo-600) !important;\n}\n.focus\\:text-indigo-700:focus {\n color: var(--indigo-700) !important;\n}\n.focus\\:text-indigo-800:focus {\n color: var(--indigo-800) !important;\n}\n.focus\\:text-indigo-900:focus {\n color: var(--indigo-900) !important;\n}\n\n.hover\\:text-indigo-50:hover {\n color: var(--indigo-50) !important;\n}\n.hover\\:text-indigo-100:hover {\n color: var(--indigo-100) !important;\n}\n.hover\\:text-indigo-200:hover {\n color: var(--indigo-200) !important;\n}\n.hover\\:text-indigo-300:hover {\n color: var(--indigo-300) !important;\n}\n.hover\\:text-indigo-400:hover {\n color: var(--indigo-400) !important;\n}\n.hover\\:text-indigo-500:hover {\n color: var(--indigo-500) !important;\n}\n.hover\\:text-indigo-600:hover {\n color: var(--indigo-600) !important;\n}\n.hover\\:text-indigo-700:hover {\n color: var(--indigo-700) !important;\n}\n.hover\\:text-indigo-800:hover {\n color: var(--indigo-800) !important;\n}\n.hover\\:text-indigo-900:hover {\n color: var(--indigo-900) !important;\n}\n\n.active\\:text-indigo-50:active {\n color: var(--indigo-50) !important;\n}\n.active\\:text-indigo-100:active {\n color: var(--indigo-100) !important;\n}\n.active\\:text-indigo-200:active {\n color: var(--indigo-200) !important;\n}\n.active\\:text-indigo-300:active {\n color: var(--indigo-300) !important;\n}\n.active\\:text-indigo-400:active {\n color: var(--indigo-400) !important;\n}\n.active\\:text-indigo-500:active {\n color: var(--indigo-500) !important;\n}\n.active\\:text-indigo-600:active {\n color: var(--indigo-600) !important;\n}\n.active\\:text-indigo-700:active {\n color: var(--indigo-700) !important;\n}\n.active\\:text-indigo-800:active {\n color: var(--indigo-800) !important;\n}\n.active\\:text-indigo-900:active {\n color: var(--indigo-900) !important;\n}\n\n.text-teal-50 {\n color: var(--teal-50) !important;\n}\n.text-teal-100 {\n color: var(--teal-100) !important;\n}\n.text-teal-200 {\n color: var(--teal-200) !important;\n}\n.text-teal-300 {\n color: var(--teal-300) !important;\n}\n.text-teal-400 {\n color: var(--teal-400) !important;\n}\n.text-teal-500 {\n color: var(--teal-500) !important;\n}\n.text-teal-600 {\n color: var(--teal-600) !important;\n}\n.text-teal-700 {\n color: var(--teal-700) !important;\n}\n.text-teal-800 {\n color: var(--teal-800) !important;\n}\n.text-teal-900 {\n color: var(--teal-900) !important;\n}\n\n.focus\\:text-teal-50:focus {\n color: var(--teal-50) !important;\n}\n.focus\\:text-teal-100:focus {\n color: var(--teal-100) !important;\n}\n.focus\\:text-teal-200:focus {\n color: var(--teal-200) !important;\n}\n.focus\\:text-teal-300:focus {\n color: var(--teal-300) !important;\n}\n.focus\\:text-teal-400:focus {\n color: var(--teal-400) !important;\n}\n.focus\\:text-teal-500:focus {\n color: var(--teal-500) !important;\n}\n.focus\\:text-teal-600:focus {\n color: var(--teal-600) !important;\n}\n.focus\\:text-teal-700:focus {\n color: var(--teal-700) !important;\n}\n.focus\\:text-teal-800:focus {\n color: var(--teal-800) !important;\n}\n.focus\\:text-teal-900:focus {\n color: var(--teal-900) !important;\n}\n\n.hover\\:text-teal-50:hover {\n color: var(--teal-50) !important;\n}\n.hover\\:text-teal-100:hover {\n color: var(--teal-100) !important;\n}\n.hover\\:text-teal-200:hover {\n color: var(--teal-200) !important;\n}\n.hover\\:text-teal-300:hover {\n color: var(--teal-300) !important;\n}\n.hover\\:text-teal-400:hover {\n color: var(--teal-400) !important;\n}\n.hover\\:text-teal-500:hover {\n color: var(--teal-500) !important;\n}\n.hover\\:text-teal-600:hover {\n color: var(--teal-600) !important;\n}\n.hover\\:text-teal-700:hover {\n color: var(--teal-700) !important;\n}\n.hover\\:text-teal-800:hover {\n color: var(--teal-800) !important;\n}\n.hover\\:text-teal-900:hover {\n color: var(--teal-900) !important;\n}\n\n.active\\:text-teal-50:active {\n color: var(--teal-50) !important;\n}\n.active\\:text-teal-100:active {\n color: var(--teal-100) !important;\n}\n.active\\:text-teal-200:active {\n color: var(--teal-200) !important;\n}\n.active\\:text-teal-300:active {\n color: var(--teal-300) !important;\n}\n.active\\:text-teal-400:active {\n color: var(--teal-400) !important;\n}\n.active\\:text-teal-500:active {\n color: var(--teal-500) !important;\n}\n.active\\:text-teal-600:active {\n color: var(--teal-600) !important;\n}\n.active\\:text-teal-700:active {\n color: var(--teal-700) !important;\n}\n.active\\:text-teal-800:active {\n color: var(--teal-800) !important;\n}\n.active\\:text-teal-900:active {\n color: var(--teal-900) !important;\n}\n\n.text-orange-50 {\n color: var(--orange-50) !important;\n}\n.text-orange-100 {\n color: var(--orange-100) !important;\n}\n.text-orange-200 {\n color: var(--orange-200) !important;\n}\n.text-orange-300 {\n color: var(--orange-300) !important;\n}\n.text-orange-400 {\n color: var(--orange-400) !important;\n}\n.text-orange-500 {\n color: var(--orange-500) !important;\n}\n.text-orange-600 {\n color: var(--orange-600) !important;\n}\n.text-orange-700 {\n color: var(--orange-700) !important;\n}\n.text-orange-800 {\n color: var(--orange-800) !important;\n}\n.text-orange-900 {\n color: var(--orange-900) !important;\n}\n\n.focus\\:text-orange-50:focus {\n color: var(--orange-50) !important;\n}\n.focus\\:text-orange-100:focus {\n color: var(--orange-100) !important;\n}\n.focus\\:text-orange-200:focus {\n color: var(--orange-200) !important;\n}\n.focus\\:text-orange-300:focus {\n color: var(--orange-300) !important;\n}\n.focus\\:text-orange-400:focus {\n color: var(--orange-400) !important;\n}\n.focus\\:text-orange-500:focus {\n color: var(--orange-500) !important;\n}\n.focus\\:text-orange-600:focus {\n color: var(--orange-600) !important;\n}\n.focus\\:text-orange-700:focus {\n color: var(--orange-700) !important;\n}\n.focus\\:text-orange-800:focus {\n color: var(--orange-800) !important;\n}\n.focus\\:text-orange-900:focus {\n color: var(--orange-900) !important;\n}\n\n.hover\\:text-orange-50:hover {\n color: var(--orange-50) !important;\n}\n.hover\\:text-orange-100:hover {\n color: var(--orange-100) !important;\n}\n.hover\\:text-orange-200:hover {\n color: var(--orange-200) !important;\n}\n.hover\\:text-orange-300:hover {\n color: var(--orange-300) !important;\n}\n.hover\\:text-orange-400:hover {\n color: var(--orange-400) !important;\n}\n.hover\\:text-orange-500:hover {\n color: var(--orange-500) !important;\n}\n.hover\\:text-orange-600:hover {\n color: var(--orange-600) !important;\n}\n.hover\\:text-orange-700:hover {\n color: var(--orange-700) !important;\n}\n.hover\\:text-orange-800:hover {\n color: var(--orange-800) !important;\n}\n.hover\\:text-orange-900:hover {\n color: var(--orange-900) !important;\n}\n\n.active\\:text-orange-50:active {\n color: var(--orange-50) !important;\n}\n.active\\:text-orange-100:active {\n color: var(--orange-100) !important;\n}\n.active\\:text-orange-200:active {\n color: var(--orange-200) !important;\n}\n.active\\:text-orange-300:active {\n color: var(--orange-300) !important;\n}\n.active\\:text-orange-400:active {\n color: var(--orange-400) !important;\n}\n.active\\:text-orange-500:active {\n color: var(--orange-500) !important;\n}\n.active\\:text-orange-600:active {\n color: var(--orange-600) !important;\n}\n.active\\:text-orange-700:active {\n color: var(--orange-700) !important;\n}\n.active\\:text-orange-800:active {\n color: var(--orange-800) !important;\n}\n.active\\:text-orange-900:active {\n color: var(--orange-900) !important;\n}\n\n.text-bluegray-50 {\n color: var(--bluegray-50) !important;\n}\n.text-bluegray-100 {\n color: var(--bluegray-100) !important;\n}\n.text-bluegray-200 {\n color: var(--bluegray-200) !important;\n}\n.text-bluegray-300 {\n color: var(--bluegray-300) !important;\n}\n.text-bluegray-400 {\n color: var(--bluegray-400) !important;\n}\n.text-bluegray-500 {\n color: var(--bluegray-500) !important;\n}\n.text-bluegray-600 {\n color: var(--bluegray-600) !important;\n}\n.text-bluegray-700 {\n color: var(--bluegray-700) !important;\n}\n.text-bluegray-800 {\n color: var(--bluegray-800) !important;\n}\n.text-bluegray-900 {\n color: var(--bluegray-900) !important;\n}\n\n.focus\\:text-bluegray-50:focus {\n color: var(--bluegray-50) !important;\n}\n.focus\\:text-bluegray-100:focus {\n color: var(--bluegray-100) !important;\n}\n.focus\\:text-bluegray-200:focus {\n color: var(--bluegray-200) !important;\n}\n.focus\\:text-bluegray-300:focus {\n color: var(--bluegray-300) !important;\n}\n.focus\\:text-bluegray-400:focus {\n color: var(--bluegray-400) !important;\n}\n.focus\\:text-bluegray-500:focus {\n color: var(--bluegray-500) !important;\n}\n.focus\\:text-bluegray-600:focus {\n color: var(--bluegray-600) !important;\n}\n.focus\\:text-bluegray-700:focus {\n color: var(--bluegray-700) !important;\n}\n.focus\\:text-bluegray-800:focus {\n color: var(--bluegray-800) !important;\n}\n.focus\\:text-bluegray-900:focus {\n color: var(--bluegray-900) !important;\n}\n\n.hover\\:text-bluegray-50:hover {\n color: var(--bluegray-50) !important;\n}\n.hover\\:text-bluegray-100:hover {\n color: var(--bluegray-100) !important;\n}\n.hover\\:text-bluegray-200:hover {\n color: var(--bluegray-200) !important;\n}\n.hover\\:text-bluegray-300:hover {\n color: var(--bluegray-300) !important;\n}\n.hover\\:text-bluegray-400:hover {\n color: var(--bluegray-400) !important;\n}\n.hover\\:text-bluegray-500:hover {\n color: var(--bluegray-500) !important;\n}\n.hover\\:text-bluegray-600:hover {\n color: var(--bluegray-600) !important;\n}\n.hover\\:text-bluegray-700:hover {\n color: var(--bluegray-700) !important;\n}\n.hover\\:text-bluegray-800:hover {\n color: var(--bluegray-800) !important;\n}\n.hover\\:text-bluegray-900:hover {\n color: var(--bluegray-900) !important;\n}\n\n.active\\:text-bluegray-50:active {\n color: var(--bluegray-50) !important;\n}\n.active\\:text-bluegray-100:active {\n color: var(--bluegray-100) !important;\n}\n.active\\:text-bluegray-200:active {\n color: var(--bluegray-200) !important;\n}\n.active\\:text-bluegray-300:active {\n color: var(--bluegray-300) !important;\n}\n.active\\:text-bluegray-400:active {\n color: var(--bluegray-400) !important;\n}\n.active\\:text-bluegray-500:active {\n color: var(--bluegray-500) !important;\n}\n.active\\:text-bluegray-600:active {\n color: var(--bluegray-600) !important;\n}\n.active\\:text-bluegray-700:active {\n color: var(--bluegray-700) !important;\n}\n.active\\:text-bluegray-800:active {\n color: var(--bluegray-800) !important;\n}\n.active\\:text-bluegray-900:active {\n color: var(--bluegray-900) !important;\n}\n\n.text-purple-50 {\n color: var(--purple-50) !important;\n}\n.text-purple-100 {\n color: var(--purple-100) !important;\n}\n.text-purple-200 {\n color: var(--purple-200) !important;\n}\n.text-purple-300 {\n color: var(--purple-300) !important;\n}\n.text-purple-400 {\n color: var(--purple-400) !important;\n}\n.text-purple-500 {\n color: var(--purple-500) !important;\n}\n.text-purple-600 {\n color: var(--purple-600) !important;\n}\n.text-purple-700 {\n color: var(--purple-700) !important;\n}\n.text-purple-800 {\n color: var(--purple-800) !important;\n}\n.text-purple-900 {\n color: var(--purple-900) !important;\n}\n\n.focus\\:text-purple-50:focus {\n color: var(--purple-50) !important;\n}\n.focus\\:text-purple-100:focus {\n color: var(--purple-100) !important;\n}\n.focus\\:text-purple-200:focus {\n color: var(--purple-200) !important;\n}\n.focus\\:text-purple-300:focus {\n color: var(--purple-300) !important;\n}\n.focus\\:text-purple-400:focus {\n color: var(--purple-400) !important;\n}\n.focus\\:text-purple-500:focus {\n color: var(--purple-500) !important;\n}\n.focus\\:text-purple-600:focus {\n color: var(--purple-600) !important;\n}\n.focus\\:text-purple-700:focus {\n color: var(--purple-700) !important;\n}\n.focus\\:text-purple-800:focus {\n color: var(--purple-800) !important;\n}\n.focus\\:text-purple-900:focus {\n color: var(--purple-900) !important;\n}\n\n.hover\\:text-purple-50:hover {\n color: var(--purple-50) !important;\n}\n.hover\\:text-purple-100:hover {\n color: var(--purple-100) !important;\n}\n.hover\\:text-purple-200:hover {\n color: var(--purple-200) !important;\n}\n.hover\\:text-purple-300:hover {\n color: var(--purple-300) !important;\n}\n.hover\\:text-purple-400:hover {\n color: var(--purple-400) !important;\n}\n.hover\\:text-purple-500:hover {\n color: var(--purple-500) !important;\n}\n.hover\\:text-purple-600:hover {\n color: var(--purple-600) !important;\n}\n.hover\\:text-purple-700:hover {\n color: var(--purple-700) !important;\n}\n.hover\\:text-purple-800:hover {\n color: var(--purple-800) !important;\n}\n.hover\\:text-purple-900:hover {\n color: var(--purple-900) !important;\n}\n\n.active\\:text-purple-50:active {\n color: var(--purple-50) !important;\n}\n.active\\:text-purple-100:active {\n color: var(--purple-100) !important;\n}\n.active\\:text-purple-200:active {\n color: var(--purple-200) !important;\n}\n.active\\:text-purple-300:active {\n color: var(--purple-300) !important;\n}\n.active\\:text-purple-400:active {\n color: var(--purple-400) !important;\n}\n.active\\:text-purple-500:active {\n color: var(--purple-500) !important;\n}\n.active\\:text-purple-600:active {\n color: var(--purple-600) !important;\n}\n.active\\:text-purple-700:active {\n color: var(--purple-700) !important;\n}\n.active\\:text-purple-800:active {\n color: var(--purple-800) !important;\n}\n.active\\:text-purple-900:active {\n color: var(--purple-900) !important;\n}\n\n.text-gray-50 {\n color: var(--gray-50) !important;\n}\n.text-gray-100 {\n color: var(--gray-100) !important;\n}\n.text-gray-200 {\n color: var(--gray-200) !important;\n}\n.text-gray-300 {\n color: var(--gray-300) !important;\n}\n.text-gray-400 {\n color: var(--gray-400) !important;\n}\n.text-gray-500 {\n color: var(--gray-500) !important;\n}\n.text-gray-600 {\n color: var(--gray-600) !important;\n}\n.text-gray-700 {\n color: var(--gray-700) !important;\n}\n.text-gray-800 {\n color: var(--gray-800) !important;\n}\n.text-gray-900 {\n color: var(--gray-900) !important;\n}\n\n.focus\\:text-gray-50:focus {\n color: var(--gray-50) !important;\n}\n.focus\\:text-gray-100:focus {\n color: var(--gray-100) !important;\n}\n.focus\\:text-gray-200:focus {\n color: var(--gray-200) !important;\n}\n.focus\\:text-gray-300:focus {\n color: var(--gray-300) !important;\n}\n.focus\\:text-gray-400:focus {\n color: var(--gray-400) !important;\n}\n.focus\\:text-gray-500:focus {\n color: var(--gray-500) !important;\n}\n.focus\\:text-gray-600:focus {\n color: var(--gray-600) !important;\n}\n.focus\\:text-gray-700:focus {\n color: var(--gray-700) !important;\n}\n.focus\\:text-gray-800:focus {\n color: var(--gray-800) !important;\n}\n.focus\\:text-gray-900:focus {\n color: var(--gray-900) !important;\n}\n\n.hover\\:text-gray-50:hover {\n color: var(--gray-50) !important;\n}\n.hover\\:text-gray-100:hover {\n color: var(--gray-100) !important;\n}\n.hover\\:text-gray-200:hover {\n color: var(--gray-200) !important;\n}\n.hover\\:text-gray-300:hover {\n color: var(--gray-300) !important;\n}\n.hover\\:text-gray-400:hover {\n color: var(--gray-400) !important;\n}\n.hover\\:text-gray-500:hover {\n color: var(--gray-500) !important;\n}\n.hover\\:text-gray-600:hover {\n color: var(--gray-600) !important;\n}\n.hover\\:text-gray-700:hover {\n color: var(--gray-700) !important;\n}\n.hover\\:text-gray-800:hover {\n color: var(--gray-800) !important;\n}\n.hover\\:text-gray-900:hover {\n color: var(--gray-900) !important;\n}\n\n.active\\:text-gray-50:active {\n color: var(--gray-50) !important;\n}\n.active\\:text-gray-100:active {\n color: var(--gray-100) !important;\n}\n.active\\:text-gray-200:active {\n color: var(--gray-200) !important;\n}\n.active\\:text-gray-300:active {\n color: var(--gray-300) !important;\n}\n.active\\:text-gray-400:active {\n color: var(--gray-400) !important;\n}\n.active\\:text-gray-500:active {\n color: var(--gray-500) !important;\n}\n.active\\:text-gray-600:active {\n color: var(--gray-600) !important;\n}\n.active\\:text-gray-700:active {\n color: var(--gray-700) !important;\n}\n.active\\:text-gray-800:active {\n color: var(--gray-800) !important;\n}\n.active\\:text-gray-900:active {\n color: var(--gray-900) !important;\n}\n\n.bg-blue-50 {\n background-color: var(--blue-50) !important;\n}\n.bg-blue-100 {\n background-color: var(--blue-100) !important;\n}\n.bg-blue-200 {\n background-color: var(--blue-200) !important;\n}\n.bg-blue-300 {\n background-color: var(--blue-300) !important;\n}\n.bg-blue-400 {\n background-color: var(--blue-400) !important;\n}\n.bg-blue-500 {\n background-color: var(--blue-500) !important;\n}\n.bg-blue-600 {\n background-color: var(--blue-600) !important;\n}\n.bg-blue-700 {\n background-color: var(--blue-700) !important;\n}\n.bg-blue-800 {\n background-color: var(--blue-800) !important;\n}\n.bg-blue-900 {\n background-color: var(--blue-900) !important;\n}\n\n.focus\\:bg-blue-50:focus {\n background-color: var(--blue-50) !important;\n}\n.focus\\:bg-blue-100:focus {\n background-color: var(--blue-100) !important;\n}\n.focus\\:bg-blue-200:focus {\n background-color: var(--blue-200) !important;\n}\n.focus\\:bg-blue-300:focus {\n background-color: var(--blue-300) !important;\n}\n.focus\\:bg-blue-400:focus {\n background-color: var(--blue-400) !important;\n}\n.focus\\:bg-blue-500:focus {\n background-color: var(--blue-500) !important;\n}\n.focus\\:bg-blue-600:focus {\n background-color: var(--blue-600) !important;\n}\n.focus\\:bg-blue-700:focus {\n background-color: var(--blue-700) !important;\n}\n.focus\\:bg-blue-800:focus {\n background-color: var(--blue-800) !important;\n}\n.focus\\:bg-blue-900:focus {\n background-color: var(--blue-900) !important;\n}\n\n.hover\\:bg-blue-50:hover {\n background-color: var(--blue-50) !important;\n}\n.hover\\:bg-blue-100:hover {\n background-color: var(--blue-100) !important;\n}\n.hover\\:bg-blue-200:hover {\n background-color: var(--blue-200) !important;\n}\n.hover\\:bg-blue-300:hover {\n background-color: var(--blue-300) !important;\n}\n.hover\\:bg-blue-400:hover {\n background-color: var(--blue-400) !important;\n}\n.hover\\:bg-blue-500:hover {\n background-color: var(--blue-500) !important;\n}\n.hover\\:bg-blue-600:hover {\n background-color: var(--blue-600) !important;\n}\n.hover\\:bg-blue-700:hover {\n background-color: var(--blue-700) !important;\n}\n.hover\\:bg-blue-800:hover {\n background-color: var(--blue-800) !important;\n}\n.hover\\:bg-blue-900:hover {\n background-color: var(--blue-900) !important;\n}\n\n.active\\:bg-blue-50:active {\n background-color: var(--blue-50) !important;\n}\n.active\\:bg-blue-100:active {\n background-color: var(--blue-100) !important;\n}\n.active\\:bg-blue-200:active {\n background-color: var(--blue-200) !important;\n}\n.active\\:bg-blue-300:active {\n background-color: var(--blue-300) !important;\n}\n.active\\:bg-blue-400:active {\n background-color: var(--blue-400) !important;\n}\n.active\\:bg-blue-500:active {\n background-color: var(--blue-500) !important;\n}\n.active\\:bg-blue-600:active {\n background-color: var(--blue-600) !important;\n}\n.active\\:bg-blue-700:active {\n background-color: var(--blue-700) !important;\n}\n.active\\:bg-blue-800:active {\n background-color: var(--blue-800) !important;\n}\n.active\\:bg-blue-900:active {\n background-color: var(--blue-900) !important;\n}\n\n.bg-green-50 {\n background-color: var(--green-50) !important;\n}\n.bg-green-100 {\n background-color: var(--green-100) !important;\n}\n.bg-green-200 {\n background-color: var(--green-200) !important;\n}\n.bg-green-300 {\n background-color: var(--green-300) !important;\n}\n.bg-green-400 {\n background-color: var(--green-400) !important;\n}\n.bg-green-500 {\n background-color: var(--green-500) !important;\n}\n.bg-green-600 {\n background-color: var(--green-600) !important;\n}\n.bg-green-700 {\n background-color: var(--green-700) !important;\n}\n.bg-green-800 {\n background-color: var(--green-800) !important;\n}\n.bg-green-900 {\n background-color: var(--green-900) !important;\n}\n\n.focus\\:bg-green-50:focus {\n background-color: var(--green-50) !important;\n}\n.focus\\:bg-green-100:focus {\n background-color: var(--green-100) !important;\n}\n.focus\\:bg-green-200:focus {\n background-color: var(--green-200) !important;\n}\n.focus\\:bg-green-300:focus {\n background-color: var(--green-300) !important;\n}\n.focus\\:bg-green-400:focus {\n background-color: var(--green-400) !important;\n}\n.focus\\:bg-green-500:focus {\n background-color: var(--green-500) !important;\n}\n.focus\\:bg-green-600:focus {\n background-color: var(--green-600) !important;\n}\n.focus\\:bg-green-700:focus {\n background-color: var(--green-700) !important;\n}\n.focus\\:bg-green-800:focus {\n background-color: var(--green-800) !important;\n}\n.focus\\:bg-green-900:focus {\n background-color: var(--green-900) !important;\n}\n\n.hover\\:bg-green-50:hover {\n background-color: var(--green-50) !important;\n}\n.hover\\:bg-green-100:hover {\n background-color: var(--green-100) !important;\n}\n.hover\\:bg-green-200:hover {\n background-color: var(--green-200) !important;\n}\n.hover\\:bg-green-300:hover {\n background-color: var(--green-300) !important;\n}\n.hover\\:bg-green-400:hover {\n background-color: var(--green-400) !important;\n}\n.hover\\:bg-green-500:hover {\n background-color: var(--green-500) !important;\n}\n.hover\\:bg-green-600:hover {\n background-color: var(--green-600) !important;\n}\n.hover\\:bg-green-700:hover {\n background-color: var(--green-700) !important;\n}\n.hover\\:bg-green-800:hover {\n background-color: var(--green-800) !important;\n}\n.hover\\:bg-green-900:hover {\n background-color: var(--green-900) !important;\n}\n\n.active\\:bg-green-50:active {\n background-color: var(--green-50) !important;\n}\n.active\\:bg-green-100:active {\n background-color: var(--green-100) !important;\n}\n.active\\:bg-green-200:active {\n background-color: var(--green-200) !important;\n}\n.active\\:bg-green-300:active {\n background-color: var(--green-300) !important;\n}\n.active\\:bg-green-400:active {\n background-color: var(--green-400) !important;\n}\n.active\\:bg-green-500:active {\n background-color: var(--green-500) !important;\n}\n.active\\:bg-green-600:active {\n background-color: var(--green-600) !important;\n}\n.active\\:bg-green-700:active {\n background-color: var(--green-700) !important;\n}\n.active\\:bg-green-800:active {\n background-color: var(--green-800) !important;\n}\n.active\\:bg-green-900:active {\n background-color: var(--green-900) !important;\n}\n\n.bg-yellow-50 {\n background-color: var(--yellow-50) !important;\n}\n.bg-yellow-100 {\n background-color: var(--yellow-100) !important;\n}\n.bg-yellow-200 {\n background-color: var(--yellow-200) !important;\n}\n.bg-yellow-300 {\n background-color: var(--yellow-300) !important;\n}\n.bg-yellow-400 {\n background-color: var(--yellow-400) !important;\n}\n.bg-yellow-500 {\n background-color: var(--yellow-500) !important;\n}\n.bg-yellow-600 {\n background-color: var(--yellow-600) !important;\n}\n.bg-yellow-700 {\n background-color: var(--yellow-700) !important;\n}\n.bg-yellow-800 {\n background-color: var(--yellow-800) !important;\n}\n.bg-yellow-900 {\n background-color: var(--yellow-900) !important;\n}\n\n.focus\\:bg-yellow-50:focus {\n background-color: var(--yellow-50) !important;\n}\n.focus\\:bg-yellow-100:focus {\n background-color: var(--yellow-100) !important;\n}\n.focus\\:bg-yellow-200:focus {\n background-color: var(--yellow-200) !important;\n}\n.focus\\:bg-yellow-300:focus {\n background-color: var(--yellow-300) !important;\n}\n.focus\\:bg-yellow-400:focus {\n background-color: var(--yellow-400) !important;\n}\n.focus\\:bg-yellow-500:focus {\n background-color: var(--yellow-500) !important;\n}\n.focus\\:bg-yellow-600:focus {\n background-color: var(--yellow-600) !important;\n}\n.focus\\:bg-yellow-700:focus {\n background-color: var(--yellow-700) !important;\n}\n.focus\\:bg-yellow-800:focus {\n background-color: var(--yellow-800) !important;\n}\n.focus\\:bg-yellow-900:focus {\n background-color: var(--yellow-900) !important;\n}\n\n.hover\\:bg-yellow-50:hover {\n background-color: var(--yellow-50) !important;\n}\n.hover\\:bg-yellow-100:hover {\n background-color: var(--yellow-100) !important;\n}\n.hover\\:bg-yellow-200:hover {\n background-color: var(--yellow-200) !important;\n}\n.hover\\:bg-yellow-300:hover {\n background-color: var(--yellow-300) !important;\n}\n.hover\\:bg-yellow-400:hover {\n background-color: var(--yellow-400) !important;\n}\n.hover\\:bg-yellow-500:hover {\n background-color: var(--yellow-500) !important;\n}\n.hover\\:bg-yellow-600:hover {\n background-color: var(--yellow-600) !important;\n}\n.hover\\:bg-yellow-700:hover {\n background-color: var(--yellow-700) !important;\n}\n.hover\\:bg-yellow-800:hover {\n background-color: var(--yellow-800) !important;\n}\n.hover\\:bg-yellow-900:hover {\n background-color: var(--yellow-900) !important;\n}\n\n.active\\:bg-yellow-50:active {\n background-color: var(--yellow-50) !important;\n}\n.active\\:bg-yellow-100:active {\n background-color: var(--yellow-100) !important;\n}\n.active\\:bg-yellow-200:active {\n background-color: var(--yellow-200) !important;\n}\n.active\\:bg-yellow-300:active {\n background-color: var(--yellow-300) !important;\n}\n.active\\:bg-yellow-400:active {\n background-color: var(--yellow-400) !important;\n}\n.active\\:bg-yellow-500:active {\n background-color: var(--yellow-500) !important;\n}\n.active\\:bg-yellow-600:active {\n background-color: var(--yellow-600) !important;\n}\n.active\\:bg-yellow-700:active {\n background-color: var(--yellow-700) !important;\n}\n.active\\:bg-yellow-800:active {\n background-color: var(--yellow-800) !important;\n}\n.active\\:bg-yellow-900:active {\n background-color: var(--yellow-900) !important;\n}\n\n.bg-cyan-50 {\n background-color: var(--cyan-50) !important;\n}\n.bg-cyan-100 {\n background-color: var(--cyan-100) !important;\n}\n.bg-cyan-200 {\n background-color: var(--cyan-200) !important;\n}\n.bg-cyan-300 {\n background-color: var(--cyan-300) !important;\n}\n.bg-cyan-400 {\n background-color: var(--cyan-400) !important;\n}\n.bg-cyan-500 {\n background-color: var(--cyan-500) !important;\n}\n.bg-cyan-600 {\n background-color: var(--cyan-600) !important;\n}\n.bg-cyan-700 {\n background-color: var(--cyan-700) !important;\n}\n.bg-cyan-800 {\n background-color: var(--cyan-800) !important;\n}\n.bg-cyan-900 {\n background-color: var(--cyan-900) !important;\n}\n\n.focus\\:bg-cyan-50:focus {\n background-color: var(--cyan-50) !important;\n}\n.focus\\:bg-cyan-100:focus {\n background-color: var(--cyan-100) !important;\n}\n.focus\\:bg-cyan-200:focus {\n background-color: var(--cyan-200) !important;\n}\n.focus\\:bg-cyan-300:focus {\n background-color: var(--cyan-300) !important;\n}\n.focus\\:bg-cyan-400:focus {\n background-color: var(--cyan-400) !important;\n}\n.focus\\:bg-cyan-500:focus {\n background-color: var(--cyan-500) !important;\n}\n.focus\\:bg-cyan-600:focus {\n background-color: var(--cyan-600) !important;\n}\n.focus\\:bg-cyan-700:focus {\n background-color: var(--cyan-700) !important;\n}\n.focus\\:bg-cyan-800:focus {\n background-color: var(--cyan-800) !important;\n}\n.focus\\:bg-cyan-900:focus {\n background-color: var(--cyan-900) !important;\n}\n\n.hover\\:bg-cyan-50:hover {\n background-color: var(--cyan-50) !important;\n}\n.hover\\:bg-cyan-100:hover {\n background-color: var(--cyan-100) !important;\n}\n.hover\\:bg-cyan-200:hover {\n background-color: var(--cyan-200) !important;\n}\n.hover\\:bg-cyan-300:hover {\n background-color: var(--cyan-300) !important;\n}\n.hover\\:bg-cyan-400:hover {\n background-color: var(--cyan-400) !important;\n}\n.hover\\:bg-cyan-500:hover {\n background-color: var(--cyan-500) !important;\n}\n.hover\\:bg-cyan-600:hover {\n background-color: var(--cyan-600) !important;\n}\n.hover\\:bg-cyan-700:hover {\n background-color: var(--cyan-700) !important;\n}\n.hover\\:bg-cyan-800:hover {\n background-color: var(--cyan-800) !important;\n}\n.hover\\:bg-cyan-900:hover {\n background-color: var(--cyan-900) !important;\n}\n\n.active\\:bg-cyan-50:active {\n background-color: var(--cyan-50) !important;\n}\n.active\\:bg-cyan-100:active {\n background-color: var(--cyan-100) !important;\n}\n.active\\:bg-cyan-200:active {\n background-color: var(--cyan-200) !important;\n}\n.active\\:bg-cyan-300:active {\n background-color: var(--cyan-300) !important;\n}\n.active\\:bg-cyan-400:active {\n background-color: var(--cyan-400) !important;\n}\n.active\\:bg-cyan-500:active {\n background-color: var(--cyan-500) !important;\n}\n.active\\:bg-cyan-600:active {\n background-color: var(--cyan-600) !important;\n}\n.active\\:bg-cyan-700:active {\n background-color: var(--cyan-700) !important;\n}\n.active\\:bg-cyan-800:active {\n background-color: var(--cyan-800) !important;\n}\n.active\\:bg-cyan-900:active {\n background-color: var(--cyan-900) !important;\n}\n\n.bg-pink-50 {\n background-color: var(--pink-50) !important;\n}\n.bg-pink-100 {\n background-color: var(--pink-100) !important;\n}\n.bg-pink-200 {\n background-color: var(--pink-200) !important;\n}\n.bg-pink-300 {\n background-color: var(--pink-300) !important;\n}\n.bg-pink-400 {\n background-color: var(--pink-400) !important;\n}\n.bg-pink-500 {\n background-color: var(--pink-500) !important;\n}\n.bg-pink-600 {\n background-color: var(--pink-600) !important;\n}\n.bg-pink-700 {\n background-color: var(--pink-700) !important;\n}\n.bg-pink-800 {\n background-color: var(--pink-800) !important;\n}\n.bg-pink-900 {\n background-color: var(--pink-900) !important;\n}\n\n.focus\\:bg-pink-50:focus {\n background-color: var(--pink-50) !important;\n}\n.focus\\:bg-pink-100:focus {\n background-color: var(--pink-100) !important;\n}\n.focus\\:bg-pink-200:focus {\n background-color: var(--pink-200) !important;\n}\n.focus\\:bg-pink-300:focus {\n background-color: var(--pink-300) !important;\n}\n.focus\\:bg-pink-400:focus {\n background-color: var(--pink-400) !important;\n}\n.focus\\:bg-pink-500:focus {\n background-color: var(--pink-500) !important;\n}\n.focus\\:bg-pink-600:focus {\n background-color: var(--pink-600) !important;\n}\n.focus\\:bg-pink-700:focus {\n background-color: var(--pink-700) !important;\n}\n.focus\\:bg-pink-800:focus {\n background-color: var(--pink-800) !important;\n}\n.focus\\:bg-pink-900:focus {\n background-color: var(--pink-900) !important;\n}\n\n.hover\\:bg-pink-50:hover {\n background-color: var(--pink-50) !important;\n}\n.hover\\:bg-pink-100:hover {\n background-color: var(--pink-100) !important;\n}\n.hover\\:bg-pink-200:hover {\n background-color: var(--pink-200) !important;\n}\n.hover\\:bg-pink-300:hover {\n background-color: var(--pink-300) !important;\n}\n.hover\\:bg-pink-400:hover {\n background-color: var(--pink-400) !important;\n}\n.hover\\:bg-pink-500:hover {\n background-color: var(--pink-500) !important;\n}\n.hover\\:bg-pink-600:hover {\n background-color: var(--pink-600) !important;\n}\n.hover\\:bg-pink-700:hover {\n background-color: var(--pink-700) !important;\n}\n.hover\\:bg-pink-800:hover {\n background-color: var(--pink-800) !important;\n}\n.hover\\:bg-pink-900:hover {\n background-color: var(--pink-900) !important;\n}\n\n.active\\:bg-pink-50:active {\n background-color: var(--pink-50) !important;\n}\n.active\\:bg-pink-100:active {\n background-color: var(--pink-100) !important;\n}\n.active\\:bg-pink-200:active {\n background-color: var(--pink-200) !important;\n}\n.active\\:bg-pink-300:active {\n background-color: var(--pink-300) !important;\n}\n.active\\:bg-pink-400:active {\n background-color: var(--pink-400) !important;\n}\n.active\\:bg-pink-500:active {\n background-color: var(--pink-500) !important;\n}\n.active\\:bg-pink-600:active {\n background-color: var(--pink-600) !important;\n}\n.active\\:bg-pink-700:active {\n background-color: var(--pink-700) !important;\n}\n.active\\:bg-pink-800:active {\n background-color: var(--pink-800) !important;\n}\n.active\\:bg-pink-900:active {\n background-color: var(--pink-900) !important;\n}\n\n.bg-indigo-50 {\n background-color: var(--indigo-50) !important;\n}\n.bg-indigo-100 {\n background-color: var(--indigo-100) !important;\n}\n.bg-indigo-200 {\n background-color: var(--indigo-200) !important;\n}\n.bg-indigo-300 {\n background-color: var(--indigo-300) !important;\n}\n.bg-indigo-400 {\n background-color: var(--indigo-400) !important;\n}\n.bg-indigo-500 {\n background-color: var(--indigo-500) !important;\n}\n.bg-indigo-600 {\n background-color: var(--indigo-600) !important;\n}\n.bg-indigo-700 {\n background-color: var(--indigo-700) !important;\n}\n.bg-indigo-800 {\n background-color: var(--indigo-800) !important;\n}\n.bg-indigo-900 {\n background-color: var(--indigo-900) !important;\n}\n\n.focus\\:bg-indigo-50:focus {\n background-color: var(--indigo-50) !important;\n}\n.focus\\:bg-indigo-100:focus {\n background-color: var(--indigo-100) !important;\n}\n.focus\\:bg-indigo-200:focus {\n background-color: var(--indigo-200) !important;\n}\n.focus\\:bg-indigo-300:focus {\n background-color: var(--indigo-300) !important;\n}\n.focus\\:bg-indigo-400:focus {\n background-color: var(--indigo-400) !important;\n}\n.focus\\:bg-indigo-500:focus {\n background-color: var(--indigo-500) !important;\n}\n.focus\\:bg-indigo-600:focus {\n background-color: var(--indigo-600) !important;\n}\n.focus\\:bg-indigo-700:focus {\n background-color: var(--indigo-700) !important;\n}\n.focus\\:bg-indigo-800:focus {\n background-color: var(--indigo-800) !important;\n}\n.focus\\:bg-indigo-900:focus {\n background-color: var(--indigo-900) !important;\n}\n\n.hover\\:bg-indigo-50:hover {\n background-color: var(--indigo-50) !important;\n}\n.hover\\:bg-indigo-100:hover {\n background-color: var(--indigo-100) !important;\n}\n.hover\\:bg-indigo-200:hover {\n background-color: var(--indigo-200) !important;\n}\n.hover\\:bg-indigo-300:hover {\n background-color: var(--indigo-300) !important;\n}\n.hover\\:bg-indigo-400:hover {\n background-color: var(--indigo-400) !important;\n}\n.hover\\:bg-indigo-500:hover {\n background-color: var(--indigo-500) !important;\n}\n.hover\\:bg-indigo-600:hover {\n background-color: var(--indigo-600) !important;\n}\n.hover\\:bg-indigo-700:hover {\n background-color: var(--indigo-700) !important;\n}\n.hover\\:bg-indigo-800:hover {\n background-color: var(--indigo-800) !important;\n}\n.hover\\:bg-indigo-900:hover {\n background-color: var(--indigo-900) !important;\n}\n\n.active\\:bg-indigo-50:active {\n background-color: var(--indigo-50) !important;\n}\n.active\\:bg-indigo-100:active {\n background-color: var(--indigo-100) !important;\n}\n.active\\:bg-indigo-200:active {\n background-color: var(--indigo-200) !important;\n}\n.active\\:bg-indigo-300:active {\n background-color: var(--indigo-300) !important;\n}\n.active\\:bg-indigo-400:active {\n background-color: var(--indigo-400) !important;\n}\n.active\\:bg-indigo-500:active {\n background-color: var(--indigo-500) !important;\n}\n.active\\:bg-indigo-600:active {\n background-color: var(--indigo-600) !important;\n}\n.active\\:bg-indigo-700:active {\n background-color: var(--indigo-700) !important;\n}\n.active\\:bg-indigo-800:active {\n background-color: var(--indigo-800) !important;\n}\n.active\\:bg-indigo-900:active {\n background-color: var(--indigo-900) !important;\n}\n\n.bg-teal-50 {\n background-color: var(--teal-50) !important;\n}\n.bg-teal-100 {\n background-color: var(--teal-100) !important;\n}\n.bg-teal-200 {\n background-color: var(--teal-200) !important;\n}\n.bg-teal-300 {\n background-color: var(--teal-300) !important;\n}\n.bg-teal-400 {\n background-color: var(--teal-400) !important;\n}\n.bg-teal-500 {\n background-color: var(--teal-500) !important;\n}\n.bg-teal-600 {\n background-color: var(--teal-600) !important;\n}\n.bg-teal-700 {\n background-color: var(--teal-700) !important;\n}\n.bg-teal-800 {\n background-color: var(--teal-800) !important;\n}\n.bg-teal-900 {\n background-color: var(--teal-900) !important;\n}\n\n.focus\\:bg-teal-50:focus {\n background-color: var(--teal-50) !important;\n}\n.focus\\:bg-teal-100:focus {\n background-color: var(--teal-100) !important;\n}\n.focus\\:bg-teal-200:focus {\n background-color: var(--teal-200) !important;\n}\n.focus\\:bg-teal-300:focus {\n background-color: var(--teal-300) !important;\n}\n.focus\\:bg-teal-400:focus {\n background-color: var(--teal-400) !important;\n}\n.focus\\:bg-teal-500:focus {\n background-color: var(--teal-500) !important;\n}\n.focus\\:bg-teal-600:focus {\n background-color: var(--teal-600) !important;\n}\n.focus\\:bg-teal-700:focus {\n background-color: var(--teal-700) !important;\n}\n.focus\\:bg-teal-800:focus {\n background-color: var(--teal-800) !important;\n}\n.focus\\:bg-teal-900:focus {\n background-color: var(--teal-900) !important;\n}\n\n.hover\\:bg-teal-50:hover {\n background-color: var(--teal-50) !important;\n}\n.hover\\:bg-teal-100:hover {\n background-color: var(--teal-100) !important;\n}\n.hover\\:bg-teal-200:hover {\n background-color: var(--teal-200) !important;\n}\n.hover\\:bg-teal-300:hover {\n background-color: var(--teal-300) !important;\n}\n.hover\\:bg-teal-400:hover {\n background-color: var(--teal-400) !important;\n}\n.hover\\:bg-teal-500:hover {\n background-color: var(--teal-500) !important;\n}\n.hover\\:bg-teal-600:hover {\n background-color: var(--teal-600) !important;\n}\n.hover\\:bg-teal-700:hover {\n background-color: var(--teal-700) !important;\n}\n.hover\\:bg-teal-800:hover {\n background-color: var(--teal-800) !important;\n}\n.hover\\:bg-teal-900:hover {\n background-color: var(--teal-900) !important;\n}\n\n.active\\:bg-teal-50:active {\n background-color: var(--teal-50) !important;\n}\n.active\\:bg-teal-100:active {\n background-color: var(--teal-100) !important;\n}\n.active\\:bg-teal-200:active {\n background-color: var(--teal-200) !important;\n}\n.active\\:bg-teal-300:active {\n background-color: var(--teal-300) !important;\n}\n.active\\:bg-teal-400:active {\n background-color: var(--teal-400) !important;\n}\n.active\\:bg-teal-500:active {\n background-color: var(--teal-500) !important;\n}\n.active\\:bg-teal-600:active {\n background-color: var(--teal-600) !important;\n}\n.active\\:bg-teal-700:active {\n background-color: var(--teal-700) !important;\n}\n.active\\:bg-teal-800:active {\n background-color: var(--teal-800) !important;\n}\n.active\\:bg-teal-900:active {\n background-color: var(--teal-900) !important;\n}\n\n.bg-orange-50 {\n background-color: var(--orange-50) !important;\n}\n.bg-orange-100 {\n background-color: var(--orange-100) !important;\n}\n.bg-orange-200 {\n background-color: var(--orange-200) !important;\n}\n.bg-orange-300 {\n background-color: var(--orange-300) !important;\n}\n.bg-orange-400 {\n background-color: var(--orange-400) !important;\n}\n.bg-orange-500 {\n background-color: var(--orange-500) !important;\n}\n.bg-orange-600 {\n background-color: var(--orange-600) !important;\n}\n.bg-orange-700 {\n background-color: var(--orange-700) !important;\n}\n.bg-orange-800 {\n background-color: var(--orange-800) !important;\n}\n.bg-orange-900 {\n background-color: var(--orange-900) !important;\n}\n\n.focus\\:bg-orange-50:focus {\n background-color: var(--orange-50) !important;\n}\n.focus\\:bg-orange-100:focus {\n background-color: var(--orange-100) !important;\n}\n.focus\\:bg-orange-200:focus {\n background-color: var(--orange-200) !important;\n}\n.focus\\:bg-orange-300:focus {\n background-color: var(--orange-300) !important;\n}\n.focus\\:bg-orange-400:focus {\n background-color: var(--orange-400) !important;\n}\n.focus\\:bg-orange-500:focus {\n background-color: var(--orange-500) !important;\n}\n.focus\\:bg-orange-600:focus {\n background-color: var(--orange-600) !important;\n}\n.focus\\:bg-orange-700:focus {\n background-color: var(--orange-700) !important;\n}\n.focus\\:bg-orange-800:focus {\n background-color: var(--orange-800) !important;\n}\n.focus\\:bg-orange-900:focus {\n background-color: var(--orange-900) !important;\n}\n\n.hover\\:bg-orange-50:hover {\n background-color: var(--orange-50) !important;\n}\n.hover\\:bg-orange-100:hover {\n background-color: var(--orange-100) !important;\n}\n.hover\\:bg-orange-200:hover {\n background-color: var(--orange-200) !important;\n}\n.hover\\:bg-orange-300:hover {\n background-color: var(--orange-300) !important;\n}\n.hover\\:bg-orange-400:hover {\n background-color: var(--orange-400) !important;\n}\n.hover\\:bg-orange-500:hover {\n background-color: var(--orange-500) !important;\n}\n.hover\\:bg-orange-600:hover {\n background-color: var(--orange-600) !important;\n}\n.hover\\:bg-orange-700:hover {\n background-color: var(--orange-700) !important;\n}\n.hover\\:bg-orange-800:hover {\n background-color: var(--orange-800) !important;\n}\n.hover\\:bg-orange-900:hover {\n background-color: var(--orange-900) !important;\n}\n\n.active\\:bg-orange-50:active {\n background-color: var(--orange-50) !important;\n}\n.active\\:bg-orange-100:active {\n background-color: var(--orange-100) !important;\n}\n.active\\:bg-orange-200:active {\n background-color: var(--orange-200) !important;\n}\n.active\\:bg-orange-300:active {\n background-color: var(--orange-300) !important;\n}\n.active\\:bg-orange-400:active {\n background-color: var(--orange-400) !important;\n}\n.active\\:bg-orange-500:active {\n background-color: var(--orange-500) !important;\n}\n.active\\:bg-orange-600:active {\n background-color: var(--orange-600) !important;\n}\n.active\\:bg-orange-700:active {\n background-color: var(--orange-700) !important;\n}\n.active\\:bg-orange-800:active {\n background-color: var(--orange-800) !important;\n}\n.active\\:bg-orange-900:active {\n background-color: var(--orange-900) !important;\n}\n\n.bg-bluegray-50 {\n background-color: var(--bluegray-50) !important;\n}\n.bg-bluegray-100 {\n background-color: var(--bluegray-100) !important;\n}\n.bg-bluegray-200 {\n background-color: var(--bluegray-200) !important;\n}\n.bg-bluegray-300 {\n background-color: var(--bluegray-300) !important;\n}\n.bg-bluegray-400 {\n background-color: var(--bluegray-400) !important;\n}\n.bg-bluegray-500 {\n background-color: var(--bluegray-500) !important;\n}\n.bg-bluegray-600 {\n background-color: var(--bluegray-600) !important;\n}\n.bg-bluegray-700 {\n background-color: var(--bluegray-700) !important;\n}\n.bg-bluegray-800 {\n background-color: var(--bluegray-800) !important;\n}\n.bg-bluegray-900 {\n background-color: var(--bluegray-900) !important;\n}\n\n.focus\\:bg-bluegray-50:focus {\n background-color: var(--bluegray-50) !important;\n}\n.focus\\:bg-bluegray-100:focus {\n background-color: var(--bluegray-100) !important;\n}\n.focus\\:bg-bluegray-200:focus {\n background-color: var(--bluegray-200) !important;\n}\n.focus\\:bg-bluegray-300:focus {\n background-color: var(--bluegray-300) !important;\n}\n.focus\\:bg-bluegray-400:focus {\n background-color: var(--bluegray-400) !important;\n}\n.focus\\:bg-bluegray-500:focus {\n background-color: var(--bluegray-500) !important;\n}\n.focus\\:bg-bluegray-600:focus {\n background-color: var(--bluegray-600) !important;\n}\n.focus\\:bg-bluegray-700:focus {\n background-color: var(--bluegray-700) !important;\n}\n.focus\\:bg-bluegray-800:focus {\n background-color: var(--bluegray-800) !important;\n}\n.focus\\:bg-bluegray-900:focus {\n background-color: var(--bluegray-900) !important;\n}\n\n.hover\\:bg-bluegray-50:hover {\n background-color: var(--bluegray-50) !important;\n}\n.hover\\:bg-bluegray-100:hover {\n background-color: var(--bluegray-100) !important;\n}\n.hover\\:bg-bluegray-200:hover {\n background-color: var(--bluegray-200) !important;\n}\n.hover\\:bg-bluegray-300:hover {\n background-color: var(--bluegray-300) !important;\n}\n.hover\\:bg-bluegray-400:hover {\n background-color: var(--bluegray-400) !important;\n}\n.hover\\:bg-bluegray-500:hover {\n background-color: var(--bluegray-500) !important;\n}\n.hover\\:bg-bluegray-600:hover {\n background-color: var(--bluegray-600) !important;\n}\n.hover\\:bg-bluegray-700:hover {\n background-color: var(--bluegray-700) !important;\n}\n.hover\\:bg-bluegray-800:hover {\n background-color: var(--bluegray-800) !important;\n}\n.hover\\:bg-bluegray-900:hover {\n background-color: var(--bluegray-900) !important;\n}\n\n.active\\:bg-bluegray-50:active {\n background-color: var(--bluegray-50) !important;\n}\n.active\\:bg-bluegray-100:active {\n background-color: var(--bluegray-100) !important;\n}\n.active\\:bg-bluegray-200:active {\n background-color: var(--bluegray-200) !important;\n}\n.active\\:bg-bluegray-300:active {\n background-color: var(--bluegray-300) !important;\n}\n.active\\:bg-bluegray-400:active {\n background-color: var(--bluegray-400) !important;\n}\n.active\\:bg-bluegray-500:active {\n background-color: var(--bluegray-500) !important;\n}\n.active\\:bg-bluegray-600:active {\n background-color: var(--bluegray-600) !important;\n}\n.active\\:bg-bluegray-700:active {\n background-color: var(--bluegray-700) !important;\n}\n.active\\:bg-bluegray-800:active {\n background-color: var(--bluegray-800) !important;\n}\n.active\\:bg-bluegray-900:active {\n background-color: var(--bluegray-900) !important;\n}\n\n.bg-purple-50 {\n background-color: var(--purple-50) !important;\n}\n.bg-purple-100 {\n background-color: var(--purple-100) !important;\n}\n.bg-purple-200 {\n background-color: var(--purple-200) !important;\n}\n.bg-purple-300 {\n background-color: var(--purple-300) !important;\n}\n.bg-purple-400 {\n background-color: var(--purple-400) !important;\n}\n.bg-purple-500 {\n background-color: var(--purple-500) !important;\n}\n.bg-purple-600 {\n background-color: var(--purple-600) !important;\n}\n.bg-purple-700 {\n background-color: var(--purple-700) !important;\n}\n.bg-purple-800 {\n background-color: var(--purple-800) !important;\n}\n.bg-purple-900 {\n background-color: var(--purple-900) !important;\n}\n\n.focus\\:bg-purple-50:focus {\n background-color: var(--purple-50) !important;\n}\n.focus\\:bg-purple-100:focus {\n background-color: var(--purple-100) !important;\n}\n.focus\\:bg-purple-200:focus {\n background-color: var(--purple-200) !important;\n}\n.focus\\:bg-purple-300:focus {\n background-color: var(--purple-300) !important;\n}\n.focus\\:bg-purple-400:focus {\n background-color: var(--purple-400) !important;\n}\n.focus\\:bg-purple-500:focus {\n background-color: var(--purple-500) !important;\n}\n.focus\\:bg-purple-600:focus {\n background-color: var(--purple-600) !important;\n}\n.focus\\:bg-purple-700:focus {\n background-color: var(--purple-700) !important;\n}\n.focus\\:bg-purple-800:focus {\n background-color: var(--purple-800) !important;\n}\n.focus\\:bg-purple-900:focus {\n background-color: var(--purple-900) !important;\n}\n\n.hover\\:bg-purple-50:hover {\n background-color: var(--purple-50) !important;\n}\n.hover\\:bg-purple-100:hover {\n background-color: var(--purple-100) !important;\n}\n.hover\\:bg-purple-200:hover {\n background-color: var(--purple-200) !important;\n}\n.hover\\:bg-purple-300:hover {\n background-color: var(--purple-300) !important;\n}\n.hover\\:bg-purple-400:hover {\n background-color: var(--purple-400) !important;\n}\n.hover\\:bg-purple-500:hover {\n background-color: var(--purple-500) !important;\n}\n.hover\\:bg-purple-600:hover {\n background-color: var(--purple-600) !important;\n}\n.hover\\:bg-purple-700:hover {\n background-color: var(--purple-700) !important;\n}\n.hover\\:bg-purple-800:hover {\n background-color: var(--purple-800) !important;\n}\n.hover\\:bg-purple-900:hover {\n background-color: var(--purple-900) !important;\n}\n\n.active\\:bg-purple-50:active {\n background-color: var(--purple-50) !important;\n}\n.active\\:bg-purple-100:active {\n background-color: var(--purple-100) !important;\n}\n.active\\:bg-purple-200:active {\n background-color: var(--purple-200) !important;\n}\n.active\\:bg-purple-300:active {\n background-color: var(--purple-300) !important;\n}\n.active\\:bg-purple-400:active {\n background-color: var(--purple-400) !important;\n}\n.active\\:bg-purple-500:active {\n background-color: var(--purple-500) !important;\n}\n.active\\:bg-purple-600:active {\n background-color: var(--purple-600) !important;\n}\n.active\\:bg-purple-700:active {\n background-color: var(--purple-700) !important;\n}\n.active\\:bg-purple-800:active {\n background-color: var(--purple-800) !important;\n}\n.active\\:bg-purple-900:active {\n background-color: var(--purple-900) !important;\n}\n\n.bg-gray-50 {\n background-color: var(--gray-50) !important;\n}\n.bg-gray-100 {\n background-color: var(--gray-100) !important;\n}\n.bg-gray-200 {\n background-color: var(--gray-200) !important;\n}\n.bg-gray-300 {\n background-color: var(--gray-300) !important;\n}\n.bg-gray-400 {\n background-color: var(--gray-400) !important;\n}\n.bg-gray-500 {\n background-color: var(--gray-500) !important;\n}\n.bg-gray-600 {\n background-color: var(--gray-600) !important;\n}\n.bg-gray-700 {\n background-color: var(--gray-700) !important;\n}\n.bg-gray-800 {\n background-color: var(--gray-800) !important;\n}\n.bg-gray-900 {\n background-color: var(--gray-900) !important;\n}\n\n.focus\\:bg-gray-50:focus {\n background-color: var(--gray-50) !important;\n}\n.focus\\:bg-gray-100:focus {\n background-color: var(--gray-100) !important;\n}\n.focus\\:bg-gray-200:focus {\n background-color: var(--gray-200) !important;\n}\n.focus\\:bg-gray-300:focus {\n background-color: var(--gray-300) !important;\n}\n.focus\\:bg-gray-400:focus {\n background-color: var(--gray-400) !important;\n}\n.focus\\:bg-gray-500:focus {\n background-color: var(--gray-500) !important;\n}\n.focus\\:bg-gray-600:focus {\n background-color: var(--gray-600) !important;\n}\n.focus\\:bg-gray-700:focus {\n background-color: var(--gray-700) !important;\n}\n.focus\\:bg-gray-800:focus {\n background-color: var(--gray-800) !important;\n}\n.focus\\:bg-gray-900:focus {\n background-color: var(--gray-900) !important;\n}\n\n.hover\\:bg-gray-50:hover {\n background-color: var(--gray-50) !important;\n}\n.hover\\:bg-gray-100:hover {\n background-color: var(--gray-100) !important;\n}\n.hover\\:bg-gray-200:hover {\n background-color: var(--gray-200) !important;\n}\n.hover\\:bg-gray-300:hover {\n background-color: var(--gray-300) !important;\n}\n.hover\\:bg-gray-400:hover {\n background-color: var(--gray-400) !important;\n}\n.hover\\:bg-gray-500:hover {\n background-color: var(--gray-500) !important;\n}\n.hover\\:bg-gray-600:hover {\n background-color: var(--gray-600) !important;\n}\n.hover\\:bg-gray-700:hover {\n background-color: var(--gray-700) !important;\n}\n.hover\\:bg-gray-800:hover {\n background-color: var(--gray-800) !important;\n}\n.hover\\:bg-gray-900:hover {\n background-color: var(--gray-900) !important;\n}\n\n.active\\:bg-gray-50:active {\n background-color: var(--gray-50) !important;\n}\n.active\\:bg-gray-100:active {\n background-color: var(--gray-100) !important;\n}\n.active\\:bg-gray-200:active {\n background-color: var(--gray-200) !important;\n}\n.active\\:bg-gray-300:active {\n background-color: var(--gray-300) !important;\n}\n.active\\:bg-gray-400:active {\n background-color: var(--gray-400) !important;\n}\n.active\\:bg-gray-500:active {\n background-color: var(--gray-500) !important;\n}\n.active\\:bg-gray-600:active {\n background-color: var(--gray-600) !important;\n}\n.active\\:bg-gray-700:active {\n background-color: var(--gray-700) !important;\n}\n.active\\:bg-gray-800:active {\n background-color: var(--gray-800) !important;\n}\n.active\\:bg-gray-900:active {\n background-color: var(--gray-900) !important;\n}\n\n.border-blue-50 {\n border-color: var(--blue-50) !important;\n}\n.border-blue-100 {\n border-color: var(--blue-100) !important;\n}\n.border-blue-200 {\n border-color: var(--blue-200) !important;\n}\n.border-blue-300 {\n border-color: var(--blue-300) !important;\n}\n.border-blue-400 {\n border-color: var(--blue-400) !important;\n}\n.border-blue-500 {\n border-color: var(--blue-500) !important;\n}\n.border-blue-600 {\n border-color: var(--blue-600) !important;\n}\n.border-blue-700 {\n border-color: var(--blue-700) !important;\n}\n.border-blue-800 {\n border-color: var(--blue-800) !important;\n}\n.border-blue-900 {\n border-color: var(--blue-900) !important;\n}\n\n.focus\\:border-blue-50:focus {\n border-color: var(--blue-50) !important;\n}\n.focus\\:border-blue-100:focus {\n border-color: var(--blue-100) !important;\n}\n.focus\\:border-blue-200:focus {\n border-color: var(--blue-200) !important;\n}\n.focus\\:border-blue-300:focus {\n border-color: var(--blue-300) !important;\n}\n.focus\\:border-blue-400:focus {\n border-color: var(--blue-400) !important;\n}\n.focus\\:border-blue-500:focus {\n border-color: var(--blue-500) !important;\n}\n.focus\\:border-blue-600:focus {\n border-color: var(--blue-600) !important;\n}\n.focus\\:border-blue-700:focus {\n border-color: var(--blue-700) !important;\n}\n.focus\\:border-blue-800:focus {\n border-color: var(--blue-800) !important;\n}\n.focus\\:border-blue-900:focus {\n border-color: var(--blue-900) !important;\n}\n\n.hover\\:border-blue-50:hover {\n border-color: var(--blue-50) !important;\n}\n.hover\\:border-blue-100:hover {\n border-color: var(--blue-100) !important;\n}\n.hover\\:border-blue-200:hover {\n border-color: var(--blue-200) !important;\n}\n.hover\\:border-blue-300:hover {\n border-color: var(--blue-300) !important;\n}\n.hover\\:border-blue-400:hover {\n border-color: var(--blue-400) !important;\n}\n.hover\\:border-blue-500:hover {\n border-color: var(--blue-500) !important;\n}\n.hover\\:border-blue-600:hover {\n border-color: var(--blue-600) !important;\n}\n.hover\\:border-blue-700:hover {\n border-color: var(--blue-700) !important;\n}\n.hover\\:border-blue-800:hover {\n border-color: var(--blue-800) !important;\n}\n.hover\\:border-blue-900:hover {\n border-color: var(--blue-900) !important;\n}\n\n.active\\:border-blue-50:active {\n border-color: var(--blue-50) !important;\n}\n.active\\:border-blue-100:active {\n border-color: var(--blue-100) !important;\n}\n.active\\:border-blue-200:active {\n border-color: var(--blue-200) !important;\n}\n.active\\:border-blue-300:active {\n border-color: var(--blue-300) !important;\n}\n.active\\:border-blue-400:active {\n border-color: var(--blue-400) !important;\n}\n.active\\:border-blue-500:active {\n border-color: var(--blue-500) !important;\n}\n.active\\:border-blue-600:active {\n border-color: var(--blue-600) !important;\n}\n.active\\:border-blue-700:active {\n border-color: var(--blue-700) !important;\n}\n.active\\:border-blue-800:active {\n border-color: var(--blue-800) !important;\n}\n.active\\:border-blue-900:active {\n border-color: var(--blue-900) !important;\n}\n\n.border-green-50 {\n border-color: var(--green-50) !important;\n}\n.border-green-100 {\n border-color: var(--green-100) !important;\n}\n.border-green-200 {\n border-color: var(--green-200) !important;\n}\n.border-green-300 {\n border-color: var(--green-300) !important;\n}\n.border-green-400 {\n border-color: var(--green-400) !important;\n}\n.border-green-500 {\n border-color: var(--green-500) !important;\n}\n.border-green-600 {\n border-color: var(--green-600) !important;\n}\n.border-green-700 {\n border-color: var(--green-700) !important;\n}\n.border-green-800 {\n border-color: var(--green-800) !important;\n}\n.border-green-900 {\n border-color: var(--green-900) !important;\n}\n\n.focus\\:border-green-50:focus {\n border-color: var(--green-50) !important;\n}\n.focus\\:border-green-100:focus {\n border-color: var(--green-100) !important;\n}\n.focus\\:border-green-200:focus {\n border-color: var(--green-200) !important;\n}\n.focus\\:border-green-300:focus {\n border-color: var(--green-300) !important;\n}\n.focus\\:border-green-400:focus {\n border-color: var(--green-400) !important;\n}\n.focus\\:border-green-500:focus {\n border-color: var(--green-500) !important;\n}\n.focus\\:border-green-600:focus {\n border-color: var(--green-600) !important;\n}\n.focus\\:border-green-700:focus {\n border-color: var(--green-700) !important;\n}\n.focus\\:border-green-800:focus {\n border-color: var(--green-800) !important;\n}\n.focus\\:border-green-900:focus {\n border-color: var(--green-900) !important;\n}\n\n.hover\\:border-green-50:hover {\n border-color: var(--green-50) !important;\n}\n.hover\\:border-green-100:hover {\n border-color: var(--green-100) !important;\n}\n.hover\\:border-green-200:hover {\n border-color: var(--green-200) !important;\n}\n.hover\\:border-green-300:hover {\n border-color: var(--green-300) !important;\n}\n.hover\\:border-green-400:hover {\n border-color: var(--green-400) !important;\n}\n.hover\\:border-green-500:hover {\n border-color: var(--green-500) !important;\n}\n.hover\\:border-green-600:hover {\n border-color: var(--green-600) !important;\n}\n.hover\\:border-green-700:hover {\n border-color: var(--green-700) !important;\n}\n.hover\\:border-green-800:hover {\n border-color: var(--green-800) !important;\n}\n.hover\\:border-green-900:hover {\n border-color: var(--green-900) !important;\n}\n\n.active\\:border-green-50:active {\n border-color: var(--green-50) !important;\n}\n.active\\:border-green-100:active {\n border-color: var(--green-100) !important;\n}\n.active\\:border-green-200:active {\n border-color: var(--green-200) !important;\n}\n.active\\:border-green-300:active {\n border-color: var(--green-300) !important;\n}\n.active\\:border-green-400:active {\n border-color: var(--green-400) !important;\n}\n.active\\:border-green-500:active {\n border-color: var(--green-500) !important;\n}\n.active\\:border-green-600:active {\n border-color: var(--green-600) !important;\n}\n.active\\:border-green-700:active {\n border-color: var(--green-700) !important;\n}\n.active\\:border-green-800:active {\n border-color: var(--green-800) !important;\n}\n.active\\:border-green-900:active {\n border-color: var(--green-900) !important;\n}\n\n.border-yellow-50 {\n border-color: var(--yellow-50) !important;\n}\n.border-yellow-100 {\n border-color: var(--yellow-100) !important;\n}\n.border-yellow-200 {\n border-color: var(--yellow-200) !important;\n}\n.border-yellow-300 {\n border-color: var(--yellow-300) !important;\n}\n.border-yellow-400 {\n border-color: var(--yellow-400) !important;\n}\n.border-yellow-500 {\n border-color: var(--yellow-500) !important;\n}\n.border-yellow-600 {\n border-color: var(--yellow-600) !important;\n}\n.border-yellow-700 {\n border-color: var(--yellow-700) !important;\n}\n.border-yellow-800 {\n border-color: var(--yellow-800) !important;\n}\n.border-yellow-900 {\n border-color: var(--yellow-900) !important;\n}\n\n.focus\\:border-yellow-50:focus {\n border-color: var(--yellow-50) !important;\n}\n.focus\\:border-yellow-100:focus {\n border-color: var(--yellow-100) !important;\n}\n.focus\\:border-yellow-200:focus {\n border-color: var(--yellow-200) !important;\n}\n.focus\\:border-yellow-300:focus {\n border-color: var(--yellow-300) !important;\n}\n.focus\\:border-yellow-400:focus {\n border-color: var(--yellow-400) !important;\n}\n.focus\\:border-yellow-500:focus {\n border-color: var(--yellow-500) !important;\n}\n.focus\\:border-yellow-600:focus {\n border-color: var(--yellow-600) !important;\n}\n.focus\\:border-yellow-700:focus {\n border-color: var(--yellow-700) !important;\n}\n.focus\\:border-yellow-800:focus {\n border-color: var(--yellow-800) !important;\n}\n.focus\\:border-yellow-900:focus {\n border-color: var(--yellow-900) !important;\n}\n\n.hover\\:border-yellow-50:hover {\n border-color: var(--yellow-50) !important;\n}\n.hover\\:border-yellow-100:hover {\n border-color: var(--yellow-100) !important;\n}\n.hover\\:border-yellow-200:hover {\n border-color: var(--yellow-200) !important;\n}\n.hover\\:border-yellow-300:hover {\n border-color: var(--yellow-300) !important;\n}\n.hover\\:border-yellow-400:hover {\n border-color: var(--yellow-400) !important;\n}\n.hover\\:border-yellow-500:hover {\n border-color: var(--yellow-500) !important;\n}\n.hover\\:border-yellow-600:hover {\n border-color: var(--yellow-600) !important;\n}\n.hover\\:border-yellow-700:hover {\n border-color: var(--yellow-700) !important;\n}\n.hover\\:border-yellow-800:hover {\n border-color: var(--yellow-800) !important;\n}\n.hover\\:border-yellow-900:hover {\n border-color: var(--yellow-900) !important;\n}\n\n.active\\:border-yellow-50:active {\n border-color: var(--yellow-50) !important;\n}\n.active\\:border-yellow-100:active {\n border-color: var(--yellow-100) !important;\n}\n.active\\:border-yellow-200:active {\n border-color: var(--yellow-200) !important;\n}\n.active\\:border-yellow-300:active {\n border-color: var(--yellow-300) !important;\n}\n.active\\:border-yellow-400:active {\n border-color: var(--yellow-400) !important;\n}\n.active\\:border-yellow-500:active {\n border-color: var(--yellow-500) !important;\n}\n.active\\:border-yellow-600:active {\n border-color: var(--yellow-600) !important;\n}\n.active\\:border-yellow-700:active {\n border-color: var(--yellow-700) !important;\n}\n.active\\:border-yellow-800:active {\n border-color: var(--yellow-800) !important;\n}\n.active\\:border-yellow-900:active {\n border-color: var(--yellow-900) !important;\n}\n\n.border-cyan-50 {\n border-color: var(--cyan-50) !important;\n}\n.border-cyan-100 {\n border-color: var(--cyan-100) !important;\n}\n.border-cyan-200 {\n border-color: var(--cyan-200) !important;\n}\n.border-cyan-300 {\n border-color: var(--cyan-300) !important;\n}\n.border-cyan-400 {\n border-color: var(--cyan-400) !important;\n}\n.border-cyan-500 {\n border-color: var(--cyan-500) !important;\n}\n.border-cyan-600 {\n border-color: var(--cyan-600) !important;\n}\n.border-cyan-700 {\n border-color: var(--cyan-700) !important;\n}\n.border-cyan-800 {\n border-color: var(--cyan-800) !important;\n}\n.border-cyan-900 {\n border-color: var(--cyan-900) !important;\n}\n\n.focus\\:border-cyan-50:focus {\n border-color: var(--cyan-50) !important;\n}\n.focus\\:border-cyan-100:focus {\n border-color: var(--cyan-100) !important;\n}\n.focus\\:border-cyan-200:focus {\n border-color: var(--cyan-200) !important;\n}\n.focus\\:border-cyan-300:focus {\n border-color: var(--cyan-300) !important;\n}\n.focus\\:border-cyan-400:focus {\n border-color: var(--cyan-400) !important;\n}\n.focus\\:border-cyan-500:focus {\n border-color: var(--cyan-500) !important;\n}\n.focus\\:border-cyan-600:focus {\n border-color: var(--cyan-600) !important;\n}\n.focus\\:border-cyan-700:focus {\n border-color: var(--cyan-700) !important;\n}\n.focus\\:border-cyan-800:focus {\n border-color: var(--cyan-800) !important;\n}\n.focus\\:border-cyan-900:focus {\n border-color: var(--cyan-900) !important;\n}\n\n.hover\\:border-cyan-50:hover {\n border-color: var(--cyan-50) !important;\n}\n.hover\\:border-cyan-100:hover {\n border-color: var(--cyan-100) !important;\n}\n.hover\\:border-cyan-200:hover {\n border-color: var(--cyan-200) !important;\n}\n.hover\\:border-cyan-300:hover {\n border-color: var(--cyan-300) !important;\n}\n.hover\\:border-cyan-400:hover {\n border-color: var(--cyan-400) !important;\n}\n.hover\\:border-cyan-500:hover {\n border-color: var(--cyan-500) !important;\n}\n.hover\\:border-cyan-600:hover {\n border-color: var(--cyan-600) !important;\n}\n.hover\\:border-cyan-700:hover {\n border-color: var(--cyan-700) !important;\n}\n.hover\\:border-cyan-800:hover {\n border-color: var(--cyan-800) !important;\n}\n.hover\\:border-cyan-900:hover {\n border-color: var(--cyan-900) !important;\n}\n\n.active\\:border-cyan-50:active {\n border-color: var(--cyan-50) !important;\n}\n.active\\:border-cyan-100:active {\n border-color: var(--cyan-100) !important;\n}\n.active\\:border-cyan-200:active {\n border-color: var(--cyan-200) !important;\n}\n.active\\:border-cyan-300:active {\n border-color: var(--cyan-300) !important;\n}\n.active\\:border-cyan-400:active {\n border-color: var(--cyan-400) !important;\n}\n.active\\:border-cyan-500:active {\n border-color: var(--cyan-500) !important;\n}\n.active\\:border-cyan-600:active {\n border-color: var(--cyan-600) !important;\n}\n.active\\:border-cyan-700:active {\n border-color: var(--cyan-700) !important;\n}\n.active\\:border-cyan-800:active {\n border-color: var(--cyan-800) !important;\n}\n.active\\:border-cyan-900:active {\n border-color: var(--cyan-900) !important;\n}\n\n.border-pink-50 {\n border-color: var(--pink-50) !important;\n}\n.border-pink-100 {\n border-color: var(--pink-100) !important;\n}\n.border-pink-200 {\n border-color: var(--pink-200) !important;\n}\n.border-pink-300 {\n border-color: var(--pink-300) !important;\n}\n.border-pink-400 {\n border-color: var(--pink-400) !important;\n}\n.border-pink-500 {\n border-color: var(--pink-500) !important;\n}\n.border-pink-600 {\n border-color: var(--pink-600) !important;\n}\n.border-pink-700 {\n border-color: var(--pink-700) !important;\n}\n.border-pink-800 {\n border-color: var(--pink-800) !important;\n}\n.border-pink-900 {\n border-color: var(--pink-900) !important;\n}\n\n.focus\\:border-pink-50:focus {\n border-color: var(--pink-50) !important;\n}\n.focus\\:border-pink-100:focus {\n border-color: var(--pink-100) !important;\n}\n.focus\\:border-pink-200:focus {\n border-color: var(--pink-200) !important;\n}\n.focus\\:border-pink-300:focus {\n border-color: var(--pink-300) !important;\n}\n.focus\\:border-pink-400:focus {\n border-color: var(--pink-400) !important;\n}\n.focus\\:border-pink-500:focus {\n border-color: var(--pink-500) !important;\n}\n.focus\\:border-pink-600:focus {\n border-color: var(--pink-600) !important;\n}\n.focus\\:border-pink-700:focus {\n border-color: var(--pink-700) !important;\n}\n.focus\\:border-pink-800:focus {\n border-color: var(--pink-800) !important;\n}\n.focus\\:border-pink-900:focus {\n border-color: var(--pink-900) !important;\n}\n\n.hover\\:border-pink-50:hover {\n border-color: var(--pink-50) !important;\n}\n.hover\\:border-pink-100:hover {\n border-color: var(--pink-100) !important;\n}\n.hover\\:border-pink-200:hover {\n border-color: var(--pink-200) !important;\n}\n.hover\\:border-pink-300:hover {\n border-color: var(--pink-300) !important;\n}\n.hover\\:border-pink-400:hover {\n border-color: var(--pink-400) !important;\n}\n.hover\\:border-pink-500:hover {\n border-color: var(--pink-500) !important;\n}\n.hover\\:border-pink-600:hover {\n border-color: var(--pink-600) !important;\n}\n.hover\\:border-pink-700:hover {\n border-color: var(--pink-700) !important;\n}\n.hover\\:border-pink-800:hover {\n border-color: var(--pink-800) !important;\n}\n.hover\\:border-pink-900:hover {\n border-color: var(--pink-900) !important;\n}\n\n.active\\:border-pink-50:active {\n border-color: var(--pink-50) !important;\n}\n.active\\:border-pink-100:active {\n border-color: var(--pink-100) !important;\n}\n.active\\:border-pink-200:active {\n border-color: var(--pink-200) !important;\n}\n.active\\:border-pink-300:active {\n border-color: var(--pink-300) !important;\n}\n.active\\:border-pink-400:active {\n border-color: var(--pink-400) !important;\n}\n.active\\:border-pink-500:active {\n border-color: var(--pink-500) !important;\n}\n.active\\:border-pink-600:active {\n border-color: var(--pink-600) !important;\n}\n.active\\:border-pink-700:active {\n border-color: var(--pink-700) !important;\n}\n.active\\:border-pink-800:active {\n border-color: var(--pink-800) !important;\n}\n.active\\:border-pink-900:active {\n border-color: var(--pink-900) !important;\n}\n\n.border-indigo-50 {\n border-color: var(--indigo-50) !important;\n}\n.border-indigo-100 {\n border-color: var(--indigo-100) !important;\n}\n.border-indigo-200 {\n border-color: var(--indigo-200) !important;\n}\n.border-indigo-300 {\n border-color: var(--indigo-300) !important;\n}\n.border-indigo-400 {\n border-color: var(--indigo-400) !important;\n}\n.border-indigo-500 {\n border-color: var(--indigo-500) !important;\n}\n.border-indigo-600 {\n border-color: var(--indigo-600) !important;\n}\n.border-indigo-700 {\n border-color: var(--indigo-700) !important;\n}\n.border-indigo-800 {\n border-color: var(--indigo-800) !important;\n}\n.border-indigo-900 {\n border-color: var(--indigo-900) !important;\n}\n\n.focus\\:border-indigo-50:focus {\n border-color: var(--indigo-50) !important;\n}\n.focus\\:border-indigo-100:focus {\n border-color: var(--indigo-100) !important;\n}\n.focus\\:border-indigo-200:focus {\n border-color: var(--indigo-200) !important;\n}\n.focus\\:border-indigo-300:focus {\n border-color: var(--indigo-300) !important;\n}\n.focus\\:border-indigo-400:focus {\n border-color: var(--indigo-400) !important;\n}\n.focus\\:border-indigo-500:focus {\n border-color: var(--indigo-500) !important;\n}\n.focus\\:border-indigo-600:focus {\n border-color: var(--indigo-600) !important;\n}\n.focus\\:border-indigo-700:focus {\n border-color: var(--indigo-700) !important;\n}\n.focus\\:border-indigo-800:focus {\n border-color: var(--indigo-800) !important;\n}\n.focus\\:border-indigo-900:focus {\n border-color: var(--indigo-900) !important;\n}\n\n.hover\\:border-indigo-50:hover {\n border-color: var(--indigo-50) !important;\n}\n.hover\\:border-indigo-100:hover {\n border-color: var(--indigo-100) !important;\n}\n.hover\\:border-indigo-200:hover {\n border-color: var(--indigo-200) !important;\n}\n.hover\\:border-indigo-300:hover {\n border-color: var(--indigo-300) !important;\n}\n.hover\\:border-indigo-400:hover {\n border-color: var(--indigo-400) !important;\n}\n.hover\\:border-indigo-500:hover {\n border-color: var(--indigo-500) !important;\n}\n.hover\\:border-indigo-600:hover {\n border-color: var(--indigo-600) !important;\n}\n.hover\\:border-indigo-700:hover {\n border-color: var(--indigo-700) !important;\n}\n.hover\\:border-indigo-800:hover {\n border-color: var(--indigo-800) !important;\n}\n.hover\\:border-indigo-900:hover {\n border-color: var(--indigo-900) !important;\n}\n\n.active\\:border-indigo-50:active {\n border-color: var(--indigo-50) !important;\n}\n.active\\:border-indigo-100:active {\n border-color: var(--indigo-100) !important;\n}\n.active\\:border-indigo-200:active {\n border-color: var(--indigo-200) !important;\n}\n.active\\:border-indigo-300:active {\n border-color: var(--indigo-300) !important;\n}\n.active\\:border-indigo-400:active {\n border-color: var(--indigo-400) !important;\n}\n.active\\:border-indigo-500:active {\n border-color: var(--indigo-500) !important;\n}\n.active\\:border-indigo-600:active {\n border-color: var(--indigo-600) !important;\n}\n.active\\:border-indigo-700:active {\n border-color: var(--indigo-700) !important;\n}\n.active\\:border-indigo-800:active {\n border-color: var(--indigo-800) !important;\n}\n.active\\:border-indigo-900:active {\n border-color: var(--indigo-900) !important;\n}\n\n.border-teal-50 {\n border-color: var(--teal-50) !important;\n}\n.border-teal-100 {\n border-color: var(--teal-100) !important;\n}\n.border-teal-200 {\n border-color: var(--teal-200) !important;\n}\n.border-teal-300 {\n border-color: var(--teal-300) !important;\n}\n.border-teal-400 {\n border-color: var(--teal-400) !important;\n}\n.border-teal-500 {\n border-color: var(--teal-500) !important;\n}\n.border-teal-600 {\n border-color: var(--teal-600) !important;\n}\n.border-teal-700 {\n border-color: var(--teal-700) !important;\n}\n.border-teal-800 {\n border-color: var(--teal-800) !important;\n}\n.border-teal-900 {\n border-color: var(--teal-900) !important;\n}\n\n.focus\\:border-teal-50:focus {\n border-color: var(--teal-50) !important;\n}\n.focus\\:border-teal-100:focus {\n border-color: var(--teal-100) !important;\n}\n.focus\\:border-teal-200:focus {\n border-color: var(--teal-200) !important;\n}\n.focus\\:border-teal-300:focus {\n border-color: var(--teal-300) !important;\n}\n.focus\\:border-teal-400:focus {\n border-color: var(--teal-400) !important;\n}\n.focus\\:border-teal-500:focus {\n border-color: var(--teal-500) !important;\n}\n.focus\\:border-teal-600:focus {\n border-color: var(--teal-600) !important;\n}\n.focus\\:border-teal-700:focus {\n border-color: var(--teal-700) !important;\n}\n.focus\\:border-teal-800:focus {\n border-color: var(--teal-800) !important;\n}\n.focus\\:border-teal-900:focus {\n border-color: var(--teal-900) !important;\n}\n\n.hover\\:border-teal-50:hover {\n border-color: var(--teal-50) !important;\n}\n.hover\\:border-teal-100:hover {\n border-color: var(--teal-100) !important;\n}\n.hover\\:border-teal-200:hover {\n border-color: var(--teal-200) !important;\n}\n.hover\\:border-teal-300:hover {\n border-color: var(--teal-300) !important;\n}\n.hover\\:border-teal-400:hover {\n border-color: var(--teal-400) !important;\n}\n.hover\\:border-teal-500:hover {\n border-color: var(--teal-500) !important;\n}\n.hover\\:border-teal-600:hover {\n border-color: var(--teal-600) !important;\n}\n.hover\\:border-teal-700:hover {\n border-color: var(--teal-700) !important;\n}\n.hover\\:border-teal-800:hover {\n border-color: var(--teal-800) !important;\n}\n.hover\\:border-teal-900:hover {\n border-color: var(--teal-900) !important;\n}\n\n.active\\:border-teal-50:active {\n border-color: var(--teal-50) !important;\n}\n.active\\:border-teal-100:active {\n border-color: var(--teal-100) !important;\n}\n.active\\:border-teal-200:active {\n border-color: var(--teal-200) !important;\n}\n.active\\:border-teal-300:active {\n border-color: var(--teal-300) !important;\n}\n.active\\:border-teal-400:active {\n border-color: var(--teal-400) !important;\n}\n.active\\:border-teal-500:active {\n border-color: var(--teal-500) !important;\n}\n.active\\:border-teal-600:active {\n border-color: var(--teal-600) !important;\n}\n.active\\:border-teal-700:active {\n border-color: var(--teal-700) !important;\n}\n.active\\:border-teal-800:active {\n border-color: var(--teal-800) !important;\n}\n.active\\:border-teal-900:active {\n border-color: var(--teal-900) !important;\n}\n\n.border-orange-50 {\n border-color: var(--orange-50) !important;\n}\n.border-orange-100 {\n border-color: var(--orange-100) !important;\n}\n.border-orange-200 {\n border-color: var(--orange-200) !important;\n}\n.border-orange-300 {\n border-color: var(--orange-300) !important;\n}\n.border-orange-400 {\n border-color: var(--orange-400) !important;\n}\n.border-orange-500 {\n border-color: var(--orange-500) !important;\n}\n.border-orange-600 {\n border-color: var(--orange-600) !important;\n}\n.border-orange-700 {\n border-color: var(--orange-700) !important;\n}\n.border-orange-800 {\n border-color: var(--orange-800) !important;\n}\n.border-orange-900 {\n border-color: var(--orange-900) !important;\n}\n\n.focus\\:border-orange-50:focus {\n border-color: var(--orange-50) !important;\n}\n.focus\\:border-orange-100:focus {\n border-color: var(--orange-100) !important;\n}\n.focus\\:border-orange-200:focus {\n border-color: var(--orange-200) !important;\n}\n.focus\\:border-orange-300:focus {\n border-color: var(--orange-300) !important;\n}\n.focus\\:border-orange-400:focus {\n border-color: var(--orange-400) !important;\n}\n.focus\\:border-orange-500:focus {\n border-color: var(--orange-500) !important;\n}\n.focus\\:border-orange-600:focus {\n border-color: var(--orange-600) !important;\n}\n.focus\\:border-orange-700:focus {\n border-color: var(--orange-700) !important;\n}\n.focus\\:border-orange-800:focus {\n border-color: var(--orange-800) !important;\n}\n.focus\\:border-orange-900:focus {\n border-color: var(--orange-900) !important;\n}\n\n.hover\\:border-orange-50:hover {\n border-color: var(--orange-50) !important;\n}\n.hover\\:border-orange-100:hover {\n border-color: var(--orange-100) !important;\n}\n.hover\\:border-orange-200:hover {\n border-color: var(--orange-200) !important;\n}\n.hover\\:border-orange-300:hover {\n border-color: var(--orange-300) !important;\n}\n.hover\\:border-orange-400:hover {\n border-color: var(--orange-400) !important;\n}\n.hover\\:border-orange-500:hover {\n border-color: var(--orange-500) !important;\n}\n.hover\\:border-orange-600:hover {\n border-color: var(--orange-600) !important;\n}\n.hover\\:border-orange-700:hover {\n border-color: var(--orange-700) !important;\n}\n.hover\\:border-orange-800:hover {\n border-color: var(--orange-800) !important;\n}\n.hover\\:border-orange-900:hover {\n border-color: var(--orange-900) !important;\n}\n\n.active\\:border-orange-50:active {\n border-color: var(--orange-50) !important;\n}\n.active\\:border-orange-100:active {\n border-color: var(--orange-100) !important;\n}\n.active\\:border-orange-200:active {\n border-color: var(--orange-200) !important;\n}\n.active\\:border-orange-300:active {\n border-color: var(--orange-300) !important;\n}\n.active\\:border-orange-400:active {\n border-color: var(--orange-400) !important;\n}\n.active\\:border-orange-500:active {\n border-color: var(--orange-500) !important;\n}\n.active\\:border-orange-600:active {\n border-color: var(--orange-600) !important;\n}\n.active\\:border-orange-700:active {\n border-color: var(--orange-700) !important;\n}\n.active\\:border-orange-800:active {\n border-color: var(--orange-800) !important;\n}\n.active\\:border-orange-900:active {\n border-color: var(--orange-900) !important;\n}\n\n.border-bluegray-50 {\n border-color: var(--bluegray-50) !important;\n}\n.border-bluegray-100 {\n border-color: var(--bluegray-100) !important;\n}\n.border-bluegray-200 {\n border-color: var(--bluegray-200) !important;\n}\n.border-bluegray-300 {\n border-color: var(--bluegray-300) !important;\n}\n.border-bluegray-400 {\n border-color: var(--bluegray-400) !important;\n}\n.border-bluegray-500 {\n border-color: var(--bluegray-500) !important;\n}\n.border-bluegray-600 {\n border-color: var(--bluegray-600) !important;\n}\n.border-bluegray-700 {\n border-color: var(--bluegray-700) !important;\n}\n.border-bluegray-800 {\n border-color: var(--bluegray-800) !important;\n}\n.border-bluegray-900 {\n border-color: var(--bluegray-900) !important;\n}\n\n.focus\\:border-bluegray-50:focus {\n border-color: var(--bluegray-50) !important;\n}\n.focus\\:border-bluegray-100:focus {\n border-color: var(--bluegray-100) !important;\n}\n.focus\\:border-bluegray-200:focus {\n border-color: var(--bluegray-200) !important;\n}\n.focus\\:border-bluegray-300:focus {\n border-color: var(--bluegray-300) !important;\n}\n.focus\\:border-bluegray-400:focus {\n border-color: var(--bluegray-400) !important;\n}\n.focus\\:border-bluegray-500:focus {\n border-color: var(--bluegray-500) !important;\n}\n.focus\\:border-bluegray-600:focus {\n border-color: var(--bluegray-600) !important;\n}\n.focus\\:border-bluegray-700:focus {\n border-color: var(--bluegray-700) !important;\n}\n.focus\\:border-bluegray-800:focus {\n border-color: var(--bluegray-800) !important;\n}\n.focus\\:border-bluegray-900:focus {\n border-color: var(--bluegray-900) !important;\n}\n\n.hover\\:border-bluegray-50:hover {\n border-color: var(--bluegray-50) !important;\n}\n.hover\\:border-bluegray-100:hover {\n border-color: var(--bluegray-100) !important;\n}\n.hover\\:border-bluegray-200:hover {\n border-color: var(--bluegray-200) !important;\n}\n.hover\\:border-bluegray-300:hover {\n border-color: var(--bluegray-300) !important;\n}\n.hover\\:border-bluegray-400:hover {\n border-color: var(--bluegray-400) !important;\n}\n.hover\\:border-bluegray-500:hover {\n border-color: var(--bluegray-500) !important;\n}\n.hover\\:border-bluegray-600:hover {\n border-color: var(--bluegray-600) !important;\n}\n.hover\\:border-bluegray-700:hover {\n border-color: var(--bluegray-700) !important;\n}\n.hover\\:border-bluegray-800:hover {\n border-color: var(--bluegray-800) !important;\n}\n.hover\\:border-bluegray-900:hover {\n border-color: var(--bluegray-900) !important;\n}\n\n.active\\:border-bluegray-50:active {\n border-color: var(--bluegray-50) !important;\n}\n.active\\:border-bluegray-100:active {\n border-color: var(--bluegray-100) !important;\n}\n.active\\:border-bluegray-200:active {\n border-color: var(--bluegray-200) !important;\n}\n.active\\:border-bluegray-300:active {\n border-color: var(--bluegray-300) !important;\n}\n.active\\:border-bluegray-400:active {\n border-color: var(--bluegray-400) !important;\n}\n.active\\:border-bluegray-500:active {\n border-color: var(--bluegray-500) !important;\n}\n.active\\:border-bluegray-600:active {\n border-color: var(--bluegray-600) !important;\n}\n.active\\:border-bluegray-700:active {\n border-color: var(--bluegray-700) !important;\n}\n.active\\:border-bluegray-800:active {\n border-color: var(--bluegray-800) !important;\n}\n.active\\:border-bluegray-900:active {\n border-color: var(--bluegray-900) !important;\n}\n\n.border-purple-50 {\n border-color: var(--purple-50) !important;\n}\n.border-purple-100 {\n border-color: var(--purple-100) !important;\n}\n.border-purple-200 {\n border-color: var(--purple-200) !important;\n}\n.border-purple-300 {\n border-color: var(--purple-300) !important;\n}\n.border-purple-400 {\n border-color: var(--purple-400) !important;\n}\n.border-purple-500 {\n border-color: var(--purple-500) !important;\n}\n.border-purple-600 {\n border-color: var(--purple-600) !important;\n}\n.border-purple-700 {\n border-color: var(--purple-700) !important;\n}\n.border-purple-800 {\n border-color: var(--purple-800) !important;\n}\n.border-purple-900 {\n border-color: var(--purple-900) !important;\n}\n\n.focus\\:border-purple-50:focus {\n border-color: var(--purple-50) !important;\n}\n.focus\\:border-purple-100:focus {\n border-color: var(--purple-100) !important;\n}\n.focus\\:border-purple-200:focus {\n border-color: var(--purple-200) !important;\n}\n.focus\\:border-purple-300:focus {\n border-color: var(--purple-300) !important;\n}\n.focus\\:border-purple-400:focus {\n border-color: var(--purple-400) !important;\n}\n.focus\\:border-purple-500:focus {\n border-color: var(--purple-500) !important;\n}\n.focus\\:border-purple-600:focus {\n border-color: var(--purple-600) !important;\n}\n.focus\\:border-purple-700:focus {\n border-color: var(--purple-700) !important;\n}\n.focus\\:border-purple-800:focus {\n border-color: var(--purple-800) !important;\n}\n.focus\\:border-purple-900:focus {\n border-color: var(--purple-900) !important;\n}\n\n.hover\\:border-purple-50:hover {\n border-color: var(--purple-50) !important;\n}\n.hover\\:border-purple-100:hover {\n border-color: var(--purple-100) !important;\n}\n.hover\\:border-purple-200:hover {\n border-color: var(--purple-200) !important;\n}\n.hover\\:border-purple-300:hover {\n border-color: var(--purple-300) !important;\n}\n.hover\\:border-purple-400:hover {\n border-color: var(--purple-400) !important;\n}\n.hover\\:border-purple-500:hover {\n border-color: var(--purple-500) !important;\n}\n.hover\\:border-purple-600:hover {\n border-color: var(--purple-600) !important;\n}\n.hover\\:border-purple-700:hover {\n border-color: var(--purple-700) !important;\n}\n.hover\\:border-purple-800:hover {\n border-color: var(--purple-800) !important;\n}\n.hover\\:border-purple-900:hover {\n border-color: var(--purple-900) !important;\n}\n\n.active\\:border-purple-50:active {\n border-color: var(--purple-50) !important;\n}\n.active\\:border-purple-100:active {\n border-color: var(--purple-100) !important;\n}\n.active\\:border-purple-200:active {\n border-color: var(--purple-200) !important;\n}\n.active\\:border-purple-300:active {\n border-color: var(--purple-300) !important;\n}\n.active\\:border-purple-400:active {\n border-color: var(--purple-400) !important;\n}\n.active\\:border-purple-500:active {\n border-color: var(--purple-500) !important;\n}\n.active\\:border-purple-600:active {\n border-color: var(--purple-600) !important;\n}\n.active\\:border-purple-700:active {\n border-color: var(--purple-700) !important;\n}\n.active\\:border-purple-800:active {\n border-color: var(--purple-800) !important;\n}\n.active\\:border-purple-900:active {\n border-color: var(--purple-900) !important;\n}\n\n.border-gray-50 {\n border-color: var(--gray-50) !important;\n}\n.border-gray-100 {\n border-color: var(--gray-100) !important;\n}\n.border-gray-200 {\n border-color: var(--gray-200) !important;\n}\n.border-gray-300 {\n border-color: var(--gray-300) !important;\n}\n.border-gray-400 {\n border-color: var(--gray-400) !important;\n}\n.border-gray-500 {\n border-color: var(--gray-500) !important;\n}\n.border-gray-600 {\n border-color: var(--gray-600) !important;\n}\n.border-gray-700 {\n border-color: var(--gray-700) !important;\n}\n.border-gray-800 {\n border-color: var(--gray-800) !important;\n}\n.border-gray-900 {\n border-color: var(--gray-900) !important;\n}\n\n.focus\\:border-gray-50:focus {\n border-color: var(--gray-50) !important;\n}\n.focus\\:border-gray-100:focus {\n border-color: var(--gray-100) !important;\n}\n.focus\\:border-gray-200:focus {\n border-color: var(--gray-200) !important;\n}\n.focus\\:border-gray-300:focus {\n border-color: var(--gray-300) !important;\n}\n.focus\\:border-gray-400:focus {\n border-color: var(--gray-400) !important;\n}\n.focus\\:border-gray-500:focus {\n border-color: var(--gray-500) !important;\n}\n.focus\\:border-gray-600:focus {\n border-color: var(--gray-600) !important;\n}\n.focus\\:border-gray-700:focus {\n border-color: var(--gray-700) !important;\n}\n.focus\\:border-gray-800:focus {\n border-color: var(--gray-800) !important;\n}\n.focus\\:border-gray-900:focus {\n border-color: var(--gray-900) !important;\n}\n\n.hover\\:border-gray-50:hover {\n border-color: var(--gray-50) !important;\n}\n.hover\\:border-gray-100:hover {\n border-color: var(--gray-100) !important;\n}\n.hover\\:border-gray-200:hover {\n border-color: var(--gray-200) !important;\n}\n.hover\\:border-gray-300:hover {\n border-color: var(--gray-300) !important;\n}\n.hover\\:border-gray-400:hover {\n border-color: var(--gray-400) !important;\n}\n.hover\\:border-gray-500:hover {\n border-color: var(--gray-500) !important;\n}\n.hover\\:border-gray-600:hover {\n border-color: var(--gray-600) !important;\n}\n.hover\\:border-gray-700:hover {\n border-color: var(--gray-700) !important;\n}\n.hover\\:border-gray-800:hover {\n border-color: var(--gray-800) !important;\n}\n.hover\\:border-gray-900:hover {\n border-color: var(--gray-900) !important;\n}\n\n.active\\:border-gray-50:active {\n border-color: var(--gray-50) !important;\n}\n.active\\:border-gray-100:active {\n border-color: var(--gray-100) !important;\n}\n.active\\:border-gray-200:active {\n border-color: var(--gray-200) !important;\n}\n.active\\:border-gray-300:active {\n border-color: var(--gray-300) !important;\n}\n.active\\:border-gray-400:active {\n border-color: var(--gray-400) !important;\n}\n.active\\:border-gray-500:active {\n border-color: var(--gray-500) !important;\n}\n.active\\:border-gray-600:active {\n border-color: var(--gray-600) !important;\n}\n.active\\:border-gray-700:active {\n border-color: var(--gray-700) !important;\n}\n.active\\:border-gray-800:active {\n border-color: var(--gray-800) !important;\n}\n.active\\:border-gray-900:active {\n border-color: var(--gray-900) !important;\n}\n\n.bg-white-alpha-10 {\n background-color: rgba(255,255,255,0.1) !important;\n}\n.bg-white-alpha-20 {\n background-color: rgba(255,255,255,0.2) !important;\n}\n.bg-white-alpha-30 {\n background-color: rgba(255,255,255,0.3) !important;\n}\n.bg-white-alpha-40 {\n background-color: rgba(255,255,255,0.4) !important;\n}\n.bg-white-alpha-50 {\n background-color: rgba(255,255,255,0.5) !important;\n}\n.bg-white-alpha-60 {\n background-color: rgba(255,255,255,0.6) !important;\n}\n.bg-white-alpha-70 {\n background-color: rgba(255,255,255,0.7) !important;\n}\n.bg-white-alpha-80 {\n background-color: rgba(255,255,255,0.8) !important;\n}\n.bg-white-alpha-90 {\n background-color: rgba(255,255,255,0.9) !important;\n}\n\n.hover\\:bg-white-alpha-10:hover {\n background-color: rgba(255,255,255,0.1) !important;\n}\n.hover\\:bg-white-alpha-20:hover {\n background-color: rgba(255,255,255,0.2) !important;\n}\n.hover\\:bg-white-alpha-30:hover {\n background-color: rgba(255,255,255,0.3) !important;\n}\n.hover\\:bg-white-alpha-40:hover {\n background-color: rgba(255,255,255,0.4) !important;\n}\n.hover\\:bg-white-alpha-50:hover {\n background-color: rgba(255,255,255,0.5) !important;\n}\n.hover\\:bg-white-alpha-60:hover {\n background-color: rgba(255,255,255,0.6) !important;\n}\n.hover\\:bg-white-alpha-70:hover {\n background-color: rgba(255,255,255,0.7) !important;\n}\n.hover\\:bg-white-alpha-80:hover {\n background-color: rgba(255,255,255,0.8) !important;\n}\n.hover\\:bg-white-alpha-90:hover {\n background-color: rgba(255,255,255,0.9) !important;\n}\n\n.focus\\:bg-white-alpha-10:focus {\n background-color: rgba(255,255,255,0.1) !important;\n}\n.focus\\:bg-white-alpha-20:focus {\n background-color: rgba(255,255,255,0.2) !important;\n}\n.focus\\:bg-white-alpha-30:focus {\n background-color: rgba(255,255,255,0.3) !important;\n}\n.focus\\:bg-white-alpha-40:focus {\n background-color: rgba(255,255,255,0.4) !important;\n}\n.focus\\:bg-white-alpha-50:focus {\n background-color: rgba(255,255,255,0.5) !important;\n}\n.focus\\:bg-white-alpha-60:focus {\n background-color: rgba(255,255,255,0.6) !important;\n}\n.focus\\:bg-white-alpha-70:focus {\n background-color: rgba(255,255,255,0.7) !important;\n}\n.focus\\:bg-white-alpha-80:focus {\n background-color: rgba(255,255,255,0.8) !important;\n}\n.focus\\:bg-white-alpha-90:focus {\n background-color: rgba(255,255,255,0.9) !important;\n}\n\n.active\\:bg-white-alpha-10:active {\n background-color: rgba(255,255,255,0.1) !important;\n}\n.active\\:bg-white-alpha-20:active {\n background-color: rgba(255,255,255,0.2) !important;\n}\n.active\\:bg-white-alpha-30:active {\n background-color: rgba(255,255,255,0.3) !important;\n}\n.active\\:bg-white-alpha-40:active {\n background-color: rgba(255,255,255,0.4) !important;\n}\n.active\\:bg-white-alpha-50:active {\n background-color: rgba(255,255,255,0.5) !important;\n}\n.active\\:bg-white-alpha-60:active {\n background-color: rgba(255,255,255,0.6) !important;\n}\n.active\\:bg-white-alpha-70:active {\n background-color: rgba(255,255,255,0.7) !important;\n}\n.active\\:bg-white-alpha-80:active {\n background-color: rgba(255,255,255,0.8) !important;\n}\n.active\\:bg-white-alpha-90:active {\n background-color: rgba(255,255,255,0.9) !important;\n}\n\n.bg-black-alpha-10 {\n background-color: rgba(0,0,0,0.1) !important;\n}\n.bg-black-alpha-20 {\n background-color: rgba(0,0,0,0.2) !important;\n}\n.bg-black-alpha-30 {\n background-color: rgba(0,0,0,0.3) !important;\n}\n.bg-black-alpha-40 {\n background-color: rgba(0,0,0,0.4) !important;\n}\n.bg-black-alpha-50 {\n background-color: rgba(0,0,0,0.5) !important;\n}\n.bg-black-alpha-60 {\n background-color: rgba(0,0,0,0.6) !important;\n}\n.bg-black-alpha-70 {\n background-color: rgba(0,0,0,0.7) !important;\n}\n.bg-black-alpha-80 {\n background-color: rgba(0,0,0,0.8) !important;\n}\n.bg-black-alpha-90 {\n background-color: rgba(0,0,0,0.9) !important;\n}\n\n.hover\\:bg-black-alpha-10:hover {\n background-color: rgba(0,0,0,0.1) !important;\n}\n.hover\\:bg-black-alpha-20:hover {\n background-color: rgba(0,0,0,0.2) !important;\n}\n.hover\\:bg-black-alpha-30:hover {\n background-color: rgba(0,0,0,0.3) !important;\n}\n.hover\\:bg-black-alpha-40:hover {\n background-color: rgba(0,0,0,0.4) !important;\n}\n.hover\\:bg-black-alpha-50:hover {\n background-color: rgba(0,0,0,0.5) !important;\n}\n.hover\\:bg-black-alpha-60:hover {\n background-color: rgba(0,0,0,0.6) !important;\n}\n.hover\\:bg-black-alpha-70:hover {\n background-color: rgba(0,0,0,0.7) !important;\n}\n.hover\\:bg-black-alpha-80:hover {\n background-color: rgba(0,0,0,0.8) !important;\n}\n.hover\\:bg-black-alpha-90:hover {\n background-color: rgba(0,0,0,0.9) !important;\n}\n\n.focus\\:bg-black-alpha-10:focus {\n background-color: rgba(0,0,0,0.1) !important;\n}\n.focus\\:bg-black-alpha-20:focus {\n background-color: rgba(0,0,0,0.2) !important;\n}\n.focus\\:bg-black-alpha-30:focus {\n background-color: rgba(0,0,0,0.3) !important;\n}\n.focus\\:bg-black-alpha-40:focus {\n background-color: rgba(0,0,0,0.4) !important;\n}\n.focus\\:bg-black-alpha-50:focus {\n background-color: rgba(0,0,0,0.5) !important;\n}\n.focus\\:bg-black-alpha-60:focus {\n background-color: rgba(0,0,0,0.6) !important;\n}\n.focus\\:bg-black-alpha-70:focus {\n background-color: rgba(0,0,0,0.7) !important;\n}\n.focus\\:bg-black-alpha-80:focus {\n background-color: rgba(0,0,0,0.8) !important;\n}\n.focus\\:bg-black-alpha-90:focus {\n background-color: rgba(0,0,0,0.9) !important;\n}\n\n.active\\:bg-black-alpha-10:active {\n background-color: rgba(0,0,0,0.1) !important;\n}\n.active\\:bg-black-alpha-20:active {\n background-color: rgba(0,0,0,0.2) !important;\n}\n.active\\:bg-black-alpha-30:active {\n background-color: rgba(0,0,0,0.3) !important;\n}\n.active\\:bg-black-alpha-40:active {\n background-color: rgba(0,0,0,0.4) !important;\n}\n.active\\:bg-black-alpha-50:active {\n background-color: rgba(0,0,0,0.5) !important;\n}\n.active\\:bg-black-alpha-60:active {\n background-color: rgba(0,0,0,0.6) !important;\n}\n.active\\:bg-black-alpha-70:active {\n background-color: rgba(0,0,0,0.7) !important;\n}\n.active\\:bg-black-alpha-80:active {\n background-color: rgba(0,0,0,0.8) !important;\n}\n.active\\:bg-black-alpha-90:active {\n background-color: rgba(0,0,0,0.9) !important;\n}\n\n.border-white-alpha-10 {\n border-color: rgba(255,255,255,0.1) !important;\n}\n.border-white-alpha-20 {\n border-color: rgba(255,255,255,0.2) !important;\n}\n.border-white-alpha-30 {\n border-color: rgba(255,255,255,0.3) !important;\n}\n.border-white-alpha-40 {\n border-color: rgba(255,255,255,0.4) !important;\n}\n.border-white-alpha-50 {\n border-color: rgba(255,255,255,0.5) !important;\n}\n.border-white-alpha-60 {\n border-color: rgba(255,255,255,0.6) !important;\n}\n.border-white-alpha-70 {\n border-color: rgba(255,255,255,0.7) !important;\n}\n.border-white-alpha-80 {\n border-color: rgba(255,255,255,0.8) !important;\n}\n.border-white-alpha-90 {\n border-color: rgba(255,255,255,0.9) !important;\n}\n\n.hover\\:border-white-alpha-10:hover {\n border-color: rgba(255,255,255,0.1) !important;\n}\n.hover\\:border-white-alpha-20:hover {\n border-color: rgba(255,255,255,0.2) !important;\n}\n.hover\\:border-white-alpha-30:hover {\n border-color: rgba(255,255,255,0.3) !important;\n}\n.hover\\:border-white-alpha-40:hover {\n border-color: rgba(255,255,255,0.4) !important;\n}\n.hover\\:border-white-alpha-50:hover {\n border-color: rgba(255,255,255,0.5) !important;\n}\n.hover\\:border-white-alpha-60:hover {\n border-color: rgba(255,255,255,0.6) !important;\n}\n.hover\\:border-white-alpha-70:hover {\n border-color: rgba(255,255,255,0.7) !important;\n}\n.hover\\:border-white-alpha-80:hover {\n border-color: rgba(255,255,255,0.8) !important;\n}\n.hover\\:border-white-alpha-90:hover {\n border-color: rgba(255,255,255,0.9) !important;\n}\n\n.focus\\:border-white-alpha-10:focus {\n border-color: rgba(255,255,255,0.1) !important;\n}\n.focus\\:border-white-alpha-20:focus {\n border-color: rgba(255,255,255,0.2) !important;\n}\n.focus\\:border-white-alpha-30:focus {\n border-color: rgba(255,255,255,0.3) !important;\n}\n.focus\\:border-white-alpha-40:focus {\n border-color: rgba(255,255,255,0.4) !important;\n}\n.focus\\:border-white-alpha-50:focus {\n border-color: rgba(255,255,255,0.5) !important;\n}\n.focus\\:border-white-alpha-60:focus {\n border-color: rgba(255,255,255,0.6) !important;\n}\n.focus\\:border-white-alpha-70:focus {\n border-color: rgba(255,255,255,0.7) !important;\n}\n.focus\\:border-white-alpha-80:focus {\n border-color: rgba(255,255,255,0.8) !important;\n}\n.focus\\:border-white-alpha-90:focus {\n border-color: rgba(255,255,255,0.9) !important;\n}\n\n.active\\:border-white-alpha-10:active {\n border-color: rgba(255,255,255,0.1) !important;\n}\n.active\\:border-white-alpha-20:active {\n border-color: rgba(255,255,255,0.2) !important;\n}\n.active\\:border-white-alpha-30:active {\n border-color: rgba(255,255,255,0.3) !important;\n}\n.active\\:border-white-alpha-40:active {\n border-color: rgba(255,255,255,0.4) !important;\n}\n.active\\:border-white-alpha-50:active {\n border-color: rgba(255,255,255,0.5) !important;\n}\n.active\\:border-white-alpha-60:active {\n border-color: rgba(255,255,255,0.6) !important;\n}\n.active\\:border-white-alpha-70:active {\n border-color: rgba(255,255,255,0.7) !important;\n}\n.active\\:border-white-alpha-80:active {\n border-color: rgba(255,255,255,0.8) !important;\n}\n.active\\:border-white-alpha-90:active {\n border-color: rgba(255,255,255,0.9) !important;\n}\n\n.border-black-alpha-10 {\n border-color: rgba(0,0,0,0.1) !important;\n}\n.border-black-alpha-20 {\n border-color: rgba(0,0,0,0.2) !important;\n}\n.border-black-alpha-30 {\n border-color: rgba(0,0,0,0.3) !important;\n}\n.border-black-alpha-40 {\n border-color: rgba(0,0,0,0.4) !important;\n}\n.border-black-alpha-50 {\n border-color: rgba(0,0,0,0.5) !important;\n}\n.border-black-alpha-60 {\n border-color: rgba(0,0,0,0.6) !important;\n}\n.border-black-alpha-70 {\n border-color: rgba(0,0,0,0.7) !important;\n}\n.border-black-alpha-80 {\n border-color: rgba(0,0,0,0.8) !important;\n}\n.border-black-alpha-90 {\n border-color: rgba(0,0,0,0.9) !important;\n}\n\n.hover\\:border-black-alpha-10:hover {\n border-color: rgba(0,0,0,0.1) !important;\n}\n.hover\\:border-black-alpha-20:hover {\n border-color: rgba(0,0,0,0.2) !important;\n}\n.hover\\:border-black-alpha-30:hover {\n border-color: rgba(0,0,0,0.3) !important;\n}\n.hover\\:border-black-alpha-40:hover {\n border-color: rgba(0,0,0,0.4) !important;\n}\n.hover\\:border-black-alpha-50:hover {\n border-color: rgba(0,0,0,0.5) !important;\n}\n.hover\\:border-black-alpha-60:hover {\n border-color: rgba(0,0,0,0.6) !important;\n}\n.hover\\:border-black-alpha-70:hover {\n border-color: rgba(0,0,0,0.7) !important;\n}\n.hover\\:border-black-alpha-80:hover {\n border-color: rgba(0,0,0,0.8) !important;\n}\n.hover\\:border-black-alpha-90:hover {\n border-color: rgba(0,0,0,0.9) !important;\n}\n\n.focus\\:border-black-alpha-10:focus {\n border-color: rgba(0,0,0,0.1) !important;\n}\n.focus\\:border-black-alpha-20:focus {\n border-color: rgba(0,0,0,0.2) !important;\n}\n.focus\\:border-black-alpha-30:focus {\n border-color: rgba(0,0,0,0.3) !important;\n}\n.focus\\:border-black-alpha-40:focus {\n border-color: rgba(0,0,0,0.4) !important;\n}\n.focus\\:border-black-alpha-50:focus {\n border-color: rgba(0,0,0,0.5) !important;\n}\n.focus\\:border-black-alpha-60:focus {\n border-color: rgba(0,0,0,0.6) !important;\n}\n.focus\\:border-black-alpha-70:focus {\n border-color: rgba(0,0,0,0.7) !important;\n}\n.focus\\:border-black-alpha-80:focus {\n border-color: rgba(0,0,0,0.8) !important;\n}\n.focus\\:border-black-alpha-90:focus {\n border-color: rgba(0,0,0,0.9) !important;\n}\n\n.active\\:border-black-alpha-10:active {\n border-color: rgba(0,0,0,0.1) !important;\n}\n.active\\:border-black-alpha-20:active {\n border-color: rgba(0,0,0,0.2) !important;\n}\n.active\\:border-black-alpha-30:active {\n border-color: rgba(0,0,0,0.3) !important;\n}\n.active\\:border-black-alpha-40:active {\n border-color: rgba(0,0,0,0.4) !important;\n}\n.active\\:border-black-alpha-50:active {\n border-color: rgba(0,0,0,0.5) !important;\n}\n.active\\:border-black-alpha-60:active {\n border-color: rgba(0,0,0,0.6) !important;\n}\n.active\\:border-black-alpha-70:active {\n border-color: rgba(0,0,0,0.7) !important;\n}\n.active\\:border-black-alpha-80:active {\n border-color: rgba(0,0,0,0.8) !important;\n}\n.active\\:border-black-alpha-90:active {\n border-color: rgba(0,0,0,0.9) !important;\n}\n\n.text-white-alpha-10 {\n color: rgba(255,255,255,0.1) !important;\n}\n.text-white-alpha-20 {\n color: rgba(255,255,255,0.2) !important;\n}\n.text-white-alpha-30 {\n color: rgba(255,255,255,0.3) !important;\n}\n.text-white-alpha-40 {\n color: rgba(255,255,255,0.4) !important;\n}\n.text-white-alpha-50 {\n color: rgba(255,255,255,0.5) !important;\n}\n.text-white-alpha-60 {\n color: rgba(255,255,255,0.6) !important;\n}\n.text-white-alpha-70 {\n color: rgba(255,255,255,0.7) !important;\n}\n.text-white-alpha-80 {\n color: rgba(255,255,255,0.8) !important;\n}\n.text-white-alpha-90 {\n color: rgba(255,255,255,0.9) !important;\n}\n\n.hover\\:text-white-alpha-10:hover {\n color: rgba(255,255,255,0.1) !important;\n}\n.hover\\:text-white-alpha-20:hover {\n color: rgba(255,255,255,0.2) !important;\n}\n.hover\\:text-white-alpha-30:hover {\n color: rgba(255,255,255,0.3) !important;\n}\n.hover\\:text-white-alpha-40:hover {\n color: rgba(255,255,255,0.4) !important;\n}\n.hover\\:text-white-alpha-50:hover {\n color: rgba(255,255,255,0.5) !important;\n}\n.hover\\:text-white-alpha-60:hover {\n color: rgba(255,255,255,0.6) !important;\n}\n.hover\\:text-white-alpha-70:hover {\n color: rgba(255,255,255,0.7) !important;\n}\n.hover\\:text-white-alpha-80:hover {\n color: rgba(255,255,255,0.8) !important;\n}\n.hover\\:text-white-alpha-90:hover {\n color: rgba(255,255,255,0.9) !important;\n}\n\n.focus\\:text-white-alpha-10:focus {\n color: rgba(255,255,255,0.1) !important;\n}\n.focus\\:text-white-alpha-20:focus {\n color: rgba(255,255,255,0.2) !important;\n}\n.focus\\:text-white-alpha-30:focus {\n color: rgba(255,255,255,0.3) !important;\n}\n.focus\\:text-white-alpha-40:focus {\n color: rgba(255,255,255,0.4) !important;\n}\n.focus\\:text-white-alpha-50:focus {\n color: rgba(255,255,255,0.5) !important;\n}\n.focus\\:text-white-alpha-60:focus {\n color: rgba(255,255,255,0.6) !important;\n}\n.focus\\:text-white-alpha-70:focus {\n color: rgba(255,255,255,0.7) !important;\n}\n.focus\\:text-white-alpha-80:focus {\n color: rgba(255,255,255,0.8) !important;\n}\n.focus\\:text-white-alpha-90:focus {\n color: rgba(255,255,255,0.9) !important;\n}\n\n.active\\:text-white-alpha-10:active {\n color: rgba(255,255,255,0.1) !important;\n}\n.active\\:text-white-alpha-20:active {\n color: rgba(255,255,255,0.2) !important;\n}\n.active\\:text-white-alpha-30:active {\n color: rgba(255,255,255,0.3) !important;\n}\n.active\\:text-white-alpha-40:active {\n color: rgba(255,255,255,0.4) !important;\n}\n.active\\:text-white-alpha-50:active {\n color: rgba(255,255,255,0.5) !important;\n}\n.active\\:text-white-alpha-60:active {\n color: rgba(255,255,255,0.6) !important;\n}\n.active\\:text-white-alpha-70:active {\n color: rgba(255,255,255,0.7) !important;\n}\n.active\\:text-white-alpha-80:active {\n color: rgba(255,255,255,0.8) !important;\n}\n.active\\:text-white-alpha-90:active {\n color: rgba(255,255,255,0.9) !important;\n}\n\n.text-black-alpha-10 {\n color: rgba(0,0,0,0.1) !important;\n}\n.text-black-alpha-20 {\n color: rgba(0,0,0,0.2) !important;\n}\n.text-black-alpha-30 {\n color: rgba(0,0,0,0.3) !important;\n}\n.text-black-alpha-40 {\n color: rgba(0,0,0,0.4) !important;\n}\n.text-black-alpha-50 {\n color: rgba(0,0,0,0.5) !important;\n}\n.text-black-alpha-60 {\n color: rgba(0,0,0,0.6) !important;\n}\n.text-black-alpha-70 {\n color: rgba(0,0,0,0.7) !important;\n}\n.text-black-alpha-80 {\n color: rgba(0,0,0,0.8) !important;\n}\n.text-black-alpha-90 {\n color: rgba(0,0,0,0.9) !important;\n}\n\n.hover\\:text-black-alpha-10:hover {\n color: rgba(0,0,0,0.1) !important;\n}\n.hover\\:text-black-alpha-20:hover {\n color: rgba(0,0,0,0.2) !important;\n}\n.hover\\:text-black-alpha-30:hover {\n color: rgba(0,0,0,0.3) !important;\n}\n.hover\\:text-black-alpha-40:hover {\n color: rgba(0,0,0,0.4) !important;\n}\n.hover\\:text-black-alpha-50:hover {\n color: rgba(0,0,0,0.5) !important;\n}\n.hover\\:text-black-alpha-60:hover {\n color: rgba(0,0,0,0.6) !important;\n}\n.hover\\:text-black-alpha-70:hover {\n color: rgba(0,0,0,0.7) !important;\n}\n.hover\\:text-black-alpha-80:hover {\n color: rgba(0,0,0,0.8) !important;\n}\n.hover\\:text-black-alpha-90:hover {\n color: rgba(0,0,0,0.9) !important;\n}\n\n.focus\\:text-black-alpha-10:focus {\n color: rgba(0,0,0,0.1) !important;\n}\n.focus\\:text-black-alpha-20:focus {\n color: rgba(0,0,0,0.2) !important;\n}\n.focus\\:text-black-alpha-30:focus {\n color: rgba(0,0,0,0.3) !important;\n}\n.focus\\:text-black-alpha-40:focus {\n color: rgba(0,0,0,0.4) !important;\n}\n.focus\\:text-black-alpha-50:focus {\n color: rgba(0,0,0,0.5) !important;\n}\n.focus\\:text-black-alpha-60:focus {\n color: rgba(0,0,0,0.6) !important;\n}\n.focus\\:text-black-alpha-70:focus {\n color: rgba(0,0,0,0.7) !important;\n}\n.focus\\:text-black-alpha-80:focus {\n color: rgba(0,0,0,0.8) !important;\n}\n.focus\\:text-black-alpha-90:focus {\n color: rgba(0,0,0,0.9) !important;\n}\n\n.active\\:text-black-alpha-10:active {\n color: rgba(0,0,0,0.1) !important;\n}\n.active\\:text-black-alpha-20:active {\n color: rgba(0,0,0,0.2) !important;\n}\n.active\\:text-black-alpha-30:active {\n color: rgba(0,0,0,0.3) !important;\n}\n.active\\:text-black-alpha-40:active {\n color: rgba(0,0,0,0.4) !important;\n}\n.active\\:text-black-alpha-50:active {\n color: rgba(0,0,0,0.5) !important;\n}\n.active\\:text-black-alpha-60:active {\n color: rgba(0,0,0,0.6) !important;\n}\n.active\\:text-black-alpha-70:active {\n color: rgba(0,0,0,0.7) !important;\n}\n.active\\:text-black-alpha-80:active {\n color: rgba(0,0,0,0.8) !important;\n}\n.active\\:text-black-alpha-90:active {\n color: rgba(0,0,0,0.9) !important;\n}\n\n.text-primary {\n color: var(--primary-color) !important;\n}\n\n.hover\\:text-primary:hover {\n color: var(--primary-color) !important;\n}\n\n.bg-primary {\n background-color: var(--primary-color) !important;\n color: var(--primary-color-text) !important;\n}\n\n.hover\\:bg-primary:hover {\n background-color: var(--primary-color) !important;\n color: var(--primary-color-text) !important;\n}\n\n.border-primary {\n border-color: var(--primary-color) !important;\n}\n\n.hover\\:border-primary:hover {\n border-color: var(--primary-color) !important;\n}\n\n.bg-primary-reverse {\n background-color: var(--primary-color-text) !important;\n color: var(--primary-color) !important;\n}\n\n.hover\\:bg-primary-reverse:hover {\n background-color: var(--primary-color-text) !important;\n color: var(--primary-color) !important;\n}\n\n.text-white {\n color: #ffffff !important;\n}\n\n.hover\\:text-white:hover {\n color: #ffffff !important;\n}\n\n.bg-white {\n background-color: #ffffff !important;\n}\n\n.hover\\:bg-white:hover {\n background-color: #ffffff !important;\n}\n\n.border-white {\n border-color: #ffffff !important;\n}\n\n.hover\\:border-white:hover {\n border-color: #ffffff !important;\n}\n\n.surface-ground {\n background-color: var(--surface-ground) !important;\n}\n\n.surface-section {\n background-color: var(--surface-section) !important;\n}\n\n.surface-card {\n background-color: var(--surface-card) !important;\n}\n\n.surface-overlay {\n background-color: var(--surface-overlay) !important;\n}\n\n.surface-border {\n border-color: var(--surface-border) !important;\n}\n\n.surface-hover {\n background-color: var(--surface-hover) !important;\n}\n\n.field {\n margin-bottom: 1rem;\n}\n\n.field > label {\n display: inline-block;\n margin-bottom: 0.5rem;\n}\n\n.field.grid > label {\n display: flex;\n align-items: center;\n}\n\n.field > small {\n margin-top: 0.25rem;\n}\n\n.field.grid,\n.formgrid.grid {\n margin-top: 0;\n}\n\n.field.grid .col-fixed,\n.formgrid.grid .col-fixed,\n.field.grid .col,\n.formgrid.grid .col,\n.field.grid .col-1,\n.formgrid.grid .col-1,\n.field.grid .col-2,\n.formgrid.grid .col-2,\n.field.grid .col-3,\n.formgrid.grid .col-3,\n.field.grid .col-4,\n.formgrid.grid .col-4,\n.field.grid .col-5,\n.formgrid.grid .col-5,\n.field.grid .col-6,\n.formgrid.grid .col-6,\n.field.grid .col-7,\n.formgrid.grid .col-7,\n.field.grid .col-8,\n.formgrid.grid .col-8,\n.field.grid .col-9,\n.formgrid.grid .col-9,\n.field.grid .col-10,\n.formgrid.grid .col-10,\n.field.grid .col-11,\n.formgrid.grid .col-11,\n.field.grid .col-12,\n.formgrid.grid .col-12 {\n padding-top: 0;\n padding-bottom: 0;\n}\n\n.formgroup-inline {\n display: flex;\n flex-wrap: wrap;\n align-items: flex-start;\n}\n\n.formgroup-inline .field,\n.formgroup-inline .field-checkbox,\n.formgroup-inline .field-radiobutton {\n margin-right: 1rem;\n}\n\n.formgroup-inline .field > label,\n.formgroup-inline .field-checkbox > label,\n.formgroup-inline .field-radiobutton > label {\n margin-right: 0.5rem;\n margin-bottom: 0;\n}\n\n.field-checkbox,\n.field-radiobutton {\n margin-bottom: 1rem;\n display: flex;\n align-items: center;\n}\n\n.field-checkbox > label,\n.field-radiobutton > label {\n margin-left: 0.5rem;\n line-height: 1;\n}\n\n.hidden {\n display: none !important;\n}\n\n.block {\n display: block !important;\n}\n\n.inline {\n display: inline !important;\n}\n\n.inline-block {\n display: inline-block !important;\n}\n\n.flex {\n display: flex !important;\n}\n\n.inline-flex {\n display: inline-flex !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:hidden {\n display: none !important;\n }\n .sm\\:block {\n display: block !important;\n }\n .sm\\:inline {\n display: inline !important;\n }\n .sm\\:inline-block {\n display: inline-block !important;\n }\n .sm\\:flex {\n display: flex !important;\n }\n .sm\\:inline-flex {\n display: inline-flex !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:hidden {\n display: none !important;\n }\n .md\\:block {\n display: block !important;\n }\n .md\\:inline {\n display: inline !important;\n }\n .md\\:inline-block {\n display: inline-block !important;\n }\n .md\\:flex {\n display: flex !important;\n }\n .md\\:inline-flex {\n display: inline-flex !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:hidden {\n display: none !important;\n }\n .lg\\:block {\n display: block !important;\n }\n .lg\\:inline {\n display: inline !important;\n }\n .lg\\:inline-block {\n display: inline-block !important;\n }\n .lg\\:flex {\n display: flex !important;\n }\n .lg\\:inline-flex {\n display: inline-flex !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:hidden {\n display: none !important;\n }\n .xl\\:block {\n display: block !important;\n }\n .xl\\:inline {\n display: inline !important;\n }\n .xl\\:inline-block {\n display: inline-block !important;\n }\n .xl\\:flex {\n display: flex !important;\n }\n .xl\\:inline-flex {\n display: inline-flex !important;\n }\n}\n.text-center {\n text-align: center !important;\n}\n\n.text-justify {\n text-align: justify !important;\n}\n\n.text-left {\n text-align: left !important;\n}\n\n.text-right {\n text-align: right !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:text-center {\n text-align: center !important;\n }\n .sm\\:text-justify {\n text-align: justify !important;\n }\n .sm\\:text-left {\n text-align: left !important;\n }\n .sm\\:text-right {\n text-align: right !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:text-center {\n text-align: center !important;\n }\n .md\\:text-justify {\n text-align: justify !important;\n }\n .md\\:text-left {\n text-align: left !important;\n }\n .md\\:text-right {\n text-align: right !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:text-center {\n text-align: center !important;\n }\n .lg\\:text-justify {\n text-align: justify !important;\n }\n .lg\\:text-left {\n text-align: left !important;\n }\n .lg\\:text-right {\n text-align: right !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:text-center {\n text-align: center !important;\n }\n .xl\\:text-justify {\n text-align: justify !important;\n }\n .xl\\:text-left {\n text-align: left !important;\n }\n .xl\\:text-right {\n text-align: right !important;\n }\n}\n.underline {\n text-decoration: underline !important;\n}\n\n.line-through {\n text-decoration: line-through !important;\n}\n\n.no-underline {\n text-decoration: none !important;\n}\n\n.lowercase {\n text-transform: lowercase !important;\n}\n\n.uppercase {\n text-transform: uppercase !important;\n}\n\n.capitalize {\n text-transform: capitalize !important;\n}\n\n.text-overflow-clip {\n text-overflow: clip !important;\n}\n\n.text-overflow-ellipsis {\n text-overflow: ellipsis !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:text-overflow-clip {\n text-overflow: clip !important;\n }\n .sm\\:text-overflow-ellipsis {\n text-overflow: ellipsis !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:text-overflow-clip {\n text-overflow: clip !important;\n }\n .md\\:text-overflow-ellipsis {\n text-overflow: ellipsis !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:text-overflow-clip {\n text-overflow: clip !important;\n }\n .lg\\:text-overflow-ellipsis {\n text-overflow: ellipsis !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:text-overflow-clip {\n text-overflow: clip !important;\n }\n .xl\\:text-overflow-ellipsis {\n text-overflow: ellipsis !important;\n }\n}\n.font-light {\n font-weight: 300 !important;\n}\n\n.font-normal {\n font-weight: 400 !important;\n}\n\n.font-medium {\n font-weight: 500 !important;\n}\n\n.font-semibold {\n font-weight: 600 !important;\n}\n\n.font-bold {\n font-weight: 700 !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:font-light {\n font-weight: 300 !important;\n }\n .sm\\:font-normal {\n font-weight: 400 !important;\n }\n .sm\\:font-medium {\n font-weight: 500 !important;\n }\n .sm\\:font-semibold {\n font-weight: 600 !important;\n }\n .sm\\:font-bold {\n font-weight: 700 !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:font-light {\n font-weight: 300 !important;\n }\n .md\\:font-normal {\n font-weight: 400 !important;\n }\n .md\\:font-medium {\n font-weight: 500 !important;\n }\n .md\\:font-semibold {\n font-weight: 600 !important;\n }\n .md\\:font-bold {\n font-weight: 700 !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:font-light {\n font-weight: 300 !important;\n }\n .lg\\:font-normal {\n font-weight: 400 !important;\n }\n .lg\\:font-medium {\n font-weight: 500 !important;\n }\n .lg\\:font-semibold {\n font-weight: 600 !important;\n }\n .lg\\:font-bold {\n font-weight: 700 !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:font-light {\n font-weight: 300 !important;\n }\n .xl\\:font-normal {\n font-weight: 400 !important;\n }\n .xl\\:font-medium {\n font-weight: 500 !important;\n }\n .xl\\:font-semibold {\n font-weight: 600 !important;\n }\n .xl\\:font-bold {\n font-weight: 700 !important;\n }\n}\n.font-italic {\n font-style: italic !important;\n}\n\n.text-xs {\n font-size: 0.75rem !important;\n}\n\n.text-sm {\n font-size: 0.875rem !important;\n}\n\n.text-base {\n font-size: 1rem !important;\n}\n\n.text-lg {\n font-size: 1.125rem !important;\n}\n\n.text-xl {\n font-size: 1.25rem !important;\n}\n\n.text-2xl {\n font-size: 1.5rem !important;\n}\n\n.text-3xl {\n font-size: 1.75rem !important;\n}\n\n.text-4xl {\n font-size: 2rem !important;\n}\n\n.text-5xl {\n font-size: 2.5rem !important;\n}\n\n.text-6xl {\n font-size: 3rem !important;\n}\n\n.text-7xl {\n font-size: 4rem !important;\n}\n\n.text-8xl {\n font-size: 6rem !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:text-xs {\n font-size: 0.75rem !important;\n }\n .sm\\:text-sm {\n font-size: 0.875rem !important;\n }\n .sm\\:text-base {\n font-size: 1rem !important;\n }\n .sm\\:text-lg {\n font-size: 1.125rem !important;\n }\n .sm\\:text-xl {\n font-size: 1.25rem !important;\n }\n .sm\\:text-2xl {\n font-size: 1.5rem !important;\n }\n .sm\\:text-3xl {\n font-size: 1.75rem !important;\n }\n .sm\\:text-4xl {\n font-size: 2rem !important;\n }\n .sm\\:text-5xl {\n font-size: 2.5rem !important;\n }\n .sm\\:text-6xl {\n font-size: 3rem !important;\n }\n .sm\\:text-7xl {\n font-size: 4rem !important;\n }\n .sm\\:text-8xl {\n font-size: 6rem !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:text-xs {\n font-size: 0.75rem !important;\n }\n .md\\:text-sm {\n font-size: 0.875rem !important;\n }\n .md\\:text-base {\n font-size: 1rem !important;\n }\n .md\\:text-lg {\n font-size: 1.125rem !important;\n }\n .md\\:text-xl {\n font-size: 1.25rem !important;\n }\n .md\\:text-2xl {\n font-size: 1.5rem !important;\n }\n .md\\:text-3xl {\n font-size: 1.75rem !important;\n }\n .md\\:text-4xl {\n font-size: 2rem !important;\n }\n .md\\:text-5xl {\n font-size: 2.5rem !important;\n }\n .md\\:text-6xl {\n font-size: 3rem !important;\n }\n .md\\:text-7xl {\n font-size: 4rem !important;\n }\n .md\\:text-8xl {\n font-size: 6rem !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:text-xs {\n font-size: 0.75rem !important;\n }\n .lg\\:text-sm {\n font-size: 0.875rem !important;\n }\n .lg\\:text-base {\n font-size: 1rem !important;\n }\n .lg\\:text-lg {\n font-size: 1.125rem !important;\n }\n .lg\\:text-xl {\n font-size: 1.25rem !important;\n }\n .lg\\:text-2xl {\n font-size: 1.5rem !important;\n }\n .lg\\:text-3xl {\n font-size: 1.75rem !important;\n }\n .lg\\:text-4xl {\n font-size: 2rem !important;\n }\n .lg\\:text-5xl {\n font-size: 2.5rem !important;\n }\n .lg\\:text-6xl {\n font-size: 3rem !important;\n }\n .lg\\:text-7xl {\n font-size: 4rem !important;\n }\n .lg\\:text-8xl {\n font-size: 6rem !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:text-xs {\n font-size: 0.75rem !important;\n }\n .xl\\:text-sm {\n font-size: 0.875rem !important;\n }\n .xl\\:text-base {\n font-size: 1rem !important;\n }\n .xl\\:text-lg {\n font-size: 1.125rem !important;\n }\n .xl\\:text-xl {\n font-size: 1.25rem !important;\n }\n .xl\\:text-2xl {\n font-size: 1.5rem !important;\n }\n .xl\\:text-3xl {\n font-size: 1.75rem !important;\n }\n .xl\\:text-4xl {\n font-size: 2rem !important;\n }\n .xl\\:text-5xl {\n font-size: 2.5rem !important;\n }\n .xl\\:text-6xl {\n font-size: 3rem !important;\n }\n .xl\\:text-7xl {\n font-size: 4rem !important;\n }\n .xl\\:text-8xl {\n font-size: 6rem !important;\n }\n}\n.line-height-1 {\n line-height: 1 !important;\n}\n\n.line-height-2 {\n line-height: 1.25 !important;\n}\n\n.line-height-3 {\n line-height: 1.5 !important;\n}\n\n.line-height-4 {\n line-height: 2 !important;\n}\n\n.white-space-normal {\n white-space: normal !important;\n}\n\n.white-space-nowrap {\n white-space: nowrap !important;\n}\n\n.flex-row {\n flex-direction: row !important;\n}\n\n.flex-row-reverse {\n flex-direction: row-reverse !important;\n}\n\n.flex-column {\n flex-direction: column !important;\n}\n\n.flex-column-reverse {\n flex-direction: column-reverse !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:flex-row {\n flex-direction: row !important;\n }\n .sm\\:flex-row-reverse {\n flex-direction: row-reverse !important;\n }\n .sm\\:flex-column {\n flex-direction: column !important;\n }\n .sm\\:flex-column-reverse {\n flex-direction: column-reverse !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:flex-row {\n flex-direction: row !important;\n }\n .md\\:flex-row-reverse {\n flex-direction: row-reverse !important;\n }\n .md\\:flex-column {\n flex-direction: column !important;\n }\n .md\\:flex-column-reverse {\n flex-direction: column-reverse !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:flex-row {\n flex-direction: row !important;\n }\n .lg\\:flex-row-reverse {\n flex-direction: row-reverse !important;\n }\n .lg\\:flex-column {\n flex-direction: column !important;\n }\n .lg\\:flex-column-reverse {\n flex-direction: column-reverse !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:flex-row {\n flex-direction: row !important;\n }\n .xl\\:flex-row-reverse {\n flex-direction: row-reverse !important;\n }\n .xl\\:flex-column {\n flex-direction: column !important;\n }\n .xl\\:flex-column-reverse {\n flex-direction: column-reverse !important;\n }\n}\n.flex-wrap {\n flex-wrap: wrap !important;\n}\n\n.flex-wrap-reverse {\n flex-wrap: wrap-reverse !important;\n}\n\n.flex-nowrap {\n flex-wrap: nowrap !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:flex-wrap {\n flex-wrap: wrap !important;\n }\n .sm\\:flex-wrap-reverse {\n flex-wrap: wrap-reverse !important;\n }\n .sm\\:flex-nowrap {\n flex-wrap: nowrap !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:flex-wrap {\n flex-wrap: wrap !important;\n }\n .md\\:flex-wrap-reverse {\n flex-wrap: wrap-reverse !important;\n }\n .md\\:flex-nowrap {\n flex-wrap: nowrap !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:flex-wrap {\n flex-wrap: wrap !important;\n }\n .lg\\:flex-wrap-reverse {\n flex-wrap: wrap-reverse !important;\n }\n .lg\\:flex-nowrap {\n flex-wrap: nowrap !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:flex-wrap {\n flex-wrap: wrap !important;\n }\n .xl\\:flex-wrap-reverse {\n flex-wrap: wrap-reverse !important;\n }\n .xl\\:flex-nowrap {\n flex-wrap: nowrap !important;\n }\n}\n.justify-content-start {\n justify-content: flex-start !important;\n}\n\n.justify-content-end {\n justify-content: flex-end !important;\n}\n\n.justify-content-center {\n justify-content: center !important;\n}\n\n.justify-content-between {\n justify-content: space-between !important;\n}\n\n.justify-content-around {\n justify-content: space-around !important;\n}\n\n.justify-content-evenly {\n justify-content: space-evenly !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:justify-content-start {\n justify-content: flex-start !important;\n }\n .sm\\:justify-content-end {\n justify-content: flex-end !important;\n }\n .sm\\:justify-content-center {\n justify-content: center !important;\n }\n .sm\\:justify-content-between {\n justify-content: space-between !important;\n }\n .sm\\:justify-content-around {\n justify-content: space-around !important;\n }\n .sm\\:justify-content-evenly {\n justify-content: space-evenly !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:justify-content-start {\n justify-content: flex-start !important;\n }\n .md\\:justify-content-end {\n justify-content: flex-end !important;\n }\n .md\\:justify-content-center {\n justify-content: center !important;\n }\n .md\\:justify-content-between {\n justify-content: space-between !important;\n }\n .md\\:justify-content-around {\n justify-content: space-around !important;\n }\n .md\\:justify-content-evenly {\n justify-content: space-evenly !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:justify-content-start {\n justify-content: flex-start !important;\n }\n .lg\\:justify-content-end {\n justify-content: flex-end !important;\n }\n .lg\\:justify-content-center {\n justify-content: center !important;\n }\n .lg\\:justify-content-between {\n justify-content: space-between !important;\n }\n .lg\\:justify-content-around {\n justify-content: space-around !important;\n }\n .lg\\:justify-content-evenly {\n justify-content: space-evenly !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:justify-content-start {\n justify-content: flex-start !important;\n }\n .xl\\:justify-content-end {\n justify-content: flex-end !important;\n }\n .xl\\:justify-content-center {\n justify-content: center !important;\n }\n .xl\\:justify-content-between {\n justify-content: space-between !important;\n }\n .xl\\:justify-content-around {\n justify-content: space-around !important;\n }\n .xl\\:justify-content-evenly {\n justify-content: space-evenly !important;\n }\n}\n.align-content-start {\n align-content: flex-start !important;\n}\n\n.align-content-end {\n align-content: flex-end !important;\n}\n\n.align-content-center {\n align-content: center !important;\n}\n\n.align-content-between {\n align-content: space-between !important;\n}\n\n.align-content-around {\n align-content: space-around !important;\n}\n\n.align-content-evenly {\n align-content: space-evenly !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:align-content-start {\n align-content: flex-start !important;\n }\n .sm\\:align-content-end {\n align-content: flex-end !important;\n }\n .sm\\:align-content-center {\n align-content: center !important;\n }\n .sm\\:align-content-between {\n align-content: space-between !important;\n }\n .sm\\:align-content-around {\n align-content: space-around !important;\n }\n .sm\\:align-content-evenly {\n align-content: space-evenly !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:align-content-start {\n align-content: flex-start !important;\n }\n .md\\:align-content-end {\n align-content: flex-end !important;\n }\n .md\\:align-content-center {\n align-content: center !important;\n }\n .md\\:align-content-between {\n align-content: space-between !important;\n }\n .md\\:align-content-around {\n align-content: space-around !important;\n }\n .md\\:align-content-evenly {\n align-content: space-evenly !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:align-content-start {\n align-content: flex-start !important;\n }\n .lg\\:align-content-end {\n align-content: flex-end !important;\n }\n .lg\\:align-content-center {\n align-content: center !important;\n }\n .lg\\:align-content-between {\n align-content: space-between !important;\n }\n .lg\\:align-content-around {\n align-content: space-around !important;\n }\n .lg\\:align-content-evenly {\n align-content: space-evenly !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:align-content-start {\n align-content: flex-start !important;\n }\n .xl\\:align-content-end {\n align-content: flex-end !important;\n }\n .xl\\:align-content-center {\n align-content: center !important;\n }\n .xl\\:align-content-between {\n align-content: space-between !important;\n }\n .xl\\:align-content-around {\n align-content: space-around !important;\n }\n .xl\\:align-content-evenly {\n align-content: space-evenly !important;\n }\n}\n.align-items-stretch {\n align-items: stretch !important;\n}\n\n.align-items-start {\n align-items: flex-start !important;\n}\n\n.align-items-center {\n align-items: center !important;\n}\n\n.align-items-end {\n align-items: flex-end !important;\n}\n\n.align-items-baseline {\n align-items: baseline !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:align-items-stretch {\n align-items: stretch !important;\n }\n .sm\\:align-items-start {\n align-items: flex-start !important;\n }\n .sm\\:align-items-center {\n align-items: center !important;\n }\n .sm\\:align-items-end {\n align-items: flex-end !important;\n }\n .sm\\:align-items-baseline {\n align-items: baseline !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:align-items-stretch {\n align-items: stretch !important;\n }\n .md\\:align-items-start {\n align-items: flex-start !important;\n }\n .md\\:align-items-center {\n align-items: center !important;\n }\n .md\\:align-items-end {\n align-items: flex-end !important;\n }\n .md\\:align-items-baseline {\n align-items: baseline !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:align-items-stretch {\n align-items: stretch !important;\n }\n .lg\\:align-items-start {\n align-items: flex-start !important;\n }\n .lg\\:align-items-center {\n align-items: center !important;\n }\n .lg\\:align-items-end {\n align-items: flex-end !important;\n }\n .lg\\:align-items-baseline {\n align-items: baseline !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:align-items-stretch {\n align-items: stretch !important;\n }\n .xl\\:align-items-start {\n align-items: flex-start !important;\n }\n .xl\\:align-items-center {\n align-items: center !important;\n }\n .xl\\:align-items-end {\n align-items: flex-end !important;\n }\n .xl\\:align-items-baseline {\n align-items: baseline !important;\n }\n}\n.align-self-auto {\n align-self: auto !important;\n}\n\n.align-self-start {\n align-self: flex-start !important;\n}\n\n.align-self-end {\n align-self: flex-end !important;\n}\n\n.align-self-center {\n align-self: center !important;\n}\n\n.align-self-stretch {\n align-self: stretch !important;\n}\n\n.align-self-baseline {\n align-self: baseline !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:align-self-auto {\n align-self: auto !important;\n }\n .sm\\:align-self-start {\n align-self: flex-start !important;\n }\n .sm\\:align-self-end {\n align-self: flex-end !important;\n }\n .sm\\:align-self-center {\n align-self: center !important;\n }\n .sm\\:align-self-stretch {\n align-self: stretch !important;\n }\n .sm\\:align-self-baseline {\n align-self: baseline !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:align-self-auto {\n align-self: auto !important;\n }\n .md\\:align-self-start {\n align-self: flex-start !important;\n }\n .md\\:align-self-end {\n align-self: flex-end !important;\n }\n .md\\:align-self-center {\n align-self: center !important;\n }\n .md\\:align-self-stretch {\n align-self: stretch !important;\n }\n .md\\:align-self-baseline {\n align-self: baseline !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:align-self-auto {\n align-self: auto !important;\n }\n .lg\\:align-self-start {\n align-self: flex-start !important;\n }\n .lg\\:align-self-end {\n align-self: flex-end !important;\n }\n .lg\\:align-self-center {\n align-self: center !important;\n }\n .lg\\:align-self-stretch {\n align-self: stretch !important;\n }\n .lg\\:align-self-baseline {\n align-self: baseline !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:align-self-auto {\n align-self: auto !important;\n }\n .xl\\:align-self-start {\n align-self: flex-start !important;\n }\n .xl\\:align-self-end {\n align-self: flex-end !important;\n }\n .xl\\:align-self-center {\n align-self: center !important;\n }\n .xl\\:align-self-stretch {\n align-self: stretch !important;\n }\n .xl\\:align-self-baseline {\n align-self: baseline !important;\n }\n}\n.flex-order-0 {\n order: 0 !important;\n}\n\n.flex-order-1 {\n order: 1 !important;\n}\n\n.flex-order-2 {\n order: 2 !important;\n}\n\n.flex-order-3 {\n order: 3 !important;\n}\n\n.flex-order-4 {\n order: 4 !important;\n}\n\n.flex-order-5 {\n order: 5 !important;\n}\n\n.flex-order-6 {\n order: 6 !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:flex-order-0 {\n order: 0 !important;\n }\n .sm\\:flex-order-1 {\n order: 1 !important;\n }\n .sm\\:flex-order-2 {\n order: 2 !important;\n }\n .sm\\:flex-order-3 {\n order: 3 !important;\n }\n .sm\\:flex-order-4 {\n order: 4 !important;\n }\n .sm\\:flex-order-5 {\n order: 5 !important;\n }\n .sm\\:flex-order-6 {\n order: 6 !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:flex-order-0 {\n order: 0 !important;\n }\n .md\\:flex-order-1 {\n order: 1 !important;\n }\n .md\\:flex-order-2 {\n order: 2 !important;\n }\n .md\\:flex-order-3 {\n order: 3 !important;\n }\n .md\\:flex-order-4 {\n order: 4 !important;\n }\n .md\\:flex-order-5 {\n order: 5 !important;\n }\n .md\\:flex-order-6 {\n order: 6 !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:flex-order-0 {\n order: 0 !important;\n }\n .lg\\:flex-order-1 {\n order: 1 !important;\n }\n .lg\\:flex-order-2 {\n order: 2 !important;\n }\n .lg\\:flex-order-3 {\n order: 3 !important;\n }\n .lg\\:flex-order-4 {\n order: 4 !important;\n }\n .lg\\:flex-order-5 {\n order: 5 !important;\n }\n .lg\\:flex-order-6 {\n order: 6 !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:flex-order-0 {\n order: 0 !important;\n }\n .xl\\:flex-order-1 {\n order: 1 !important;\n }\n .xl\\:flex-order-2 {\n order: 2 !important;\n }\n .xl\\:flex-order-3 {\n order: 3 !important;\n }\n .xl\\:flex-order-4 {\n order: 4 !important;\n }\n .xl\\:flex-order-5 {\n order: 5 !important;\n }\n .xl\\:flex-order-6 {\n order: 6 !important;\n }\n}\n.flex-1 {\n flex: 1 1 0% !important;\n}\n\n.flex-auto {\n flex: 1 1 auto !important;\n}\n\n.flex-initial {\n flex: 0 1 auto !important;\n}\n\n.flex-none {\n flex: none !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:flex-1 {\n flex: 1 1 0% !important;\n }\n .sm\\:flex-auto {\n flex: 1 1 auto !important;\n }\n .sm\\:flex-initial {\n flex: 0 1 auto !important;\n }\n .sm\\:flex-none {\n flex: none !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:flex-1 {\n flex: 1 1 0% !important;\n }\n .md\\:flex-auto {\n flex: 1 1 auto !important;\n }\n .md\\:flex-initial {\n flex: 0 1 auto !important;\n }\n .md\\:flex-none {\n flex: none !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:flex-1 {\n flex: 1 1 0% !important;\n }\n .lg\\:flex-auto {\n flex: 1 1 auto !important;\n }\n .lg\\:flex-initial {\n flex: 0 1 auto !important;\n }\n .lg\\:flex-none {\n flex: none !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:flex-1 {\n flex: 1 1 0% !important;\n }\n .xl\\:flex-auto {\n flex: 1 1 auto !important;\n }\n .xl\\:flex-initial {\n flex: 0 1 auto !important;\n }\n .xl\\:flex-none {\n flex: none !important;\n }\n}\n.flex-grow-0 {\n flex-grow: 0 !important;\n}\n\n.flex-grow-1 {\n flex-grow: 1 !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:flex-grow-0 {\n flex-grow: 0 !important;\n }\n .sm\\:flex-grow-1 {\n flex-grow: 1 !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:flex-grow-0 {\n flex-grow: 0 !important;\n }\n .md\\:flex-grow-1 {\n flex-grow: 1 !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:flex-grow-0 {\n flex-grow: 0 !important;\n }\n .lg\\:flex-grow-1 {\n flex-grow: 1 !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:flex-grow-0 {\n flex-grow: 0 !important;\n }\n .xl\\:flex-grow-1 {\n flex-grow: 1 !important;\n }\n}\n.flex-shrink-0 {\n flex-shrink: 0 !important;\n}\n\n.flex-shrink-1 {\n flex-shrink: 1 !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:flex-shrink-0 {\n flex-shrink: 0 !important;\n }\n .sm\\:flex-shrink-1 {\n flex-shrink: 1 !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:flex-shrink-0 {\n flex-shrink: 0 !important;\n }\n .md\\:flex-shrink-1 {\n flex-shrink: 1 !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:flex-shrink-0 {\n flex-shrink: 0 !important;\n }\n .lg\\:flex-shrink-1 {\n flex-shrink: 1 !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:flex-shrink-0 {\n flex-shrink: 0 !important;\n }\n .xl\\:flex-shrink-1 {\n flex-shrink: 1 !important;\n }\n}\n.p-0 {\n padding: 0rem !important;\n}\n\n.p-1 {\n padding: 0.25rem !important;\n}\n\n.p-2 {\n padding: 0.5rem !important;\n}\n\n.p-3 {\n padding: 1rem !important;\n}\n\n.p-4 {\n padding: 1.5rem !important;\n}\n\n.p-5 {\n padding: 2rem !important;\n}\n\n.p-6 {\n padding: 3rem !important;\n}\n\n.p-7 {\n padding: 4rem !important;\n}\n\n.p-8 {\n padding: 5rem !important;\n}\n\n.pt-0 {\n padding-top: 0rem !important;\n}\n\n.pt-1 {\n padding-top: 0.25rem !important;\n}\n\n.pt-2 {\n padding-top: 0.5rem !important;\n}\n\n.pt-3 {\n padding-top: 1rem !important;\n}\n\n.pt-4 {\n padding-top: 1.5rem !important;\n}\n\n.pt-5 {\n padding-top: 2rem !important;\n}\n\n.pt-6 {\n padding-top: 3rem !important;\n}\n\n.pt-7 {\n padding-top: 4rem !important;\n}\n\n.pt-8 {\n padding-top: 5rem !important;\n}\n\n.pr-0 {\n padding-right: 0rem !important;\n}\n\n.pr-1 {\n padding-right: 0.25rem !important;\n}\n\n.pr-2 {\n padding-right: 0.5rem !important;\n}\n\n.pr-3 {\n padding-right: 1rem !important;\n}\n\n.pr-4 {\n padding-right: 1.5rem !important;\n}\n\n.pr-5 {\n padding-right: 2rem !important;\n}\n\n.pr-6 {\n padding-right: 3rem !important;\n}\n\n.pr-7 {\n padding-right: 4rem !important;\n}\n\n.pr-8 {\n padding-right: 5rem !important;\n}\n\n.pl-0 {\n padding-left: 0rem !important;\n}\n\n.pl-1 {\n padding-left: 0.25rem !important;\n}\n\n.pl-2 {\n padding-left: 0.5rem !important;\n}\n\n.pl-3 {\n padding-left: 1rem !important;\n}\n\n.pl-4 {\n padding-left: 1.5rem !important;\n}\n\n.pl-5 {\n padding-left: 2rem !important;\n}\n\n.pl-6 {\n padding-left: 3rem !important;\n}\n\n.pl-7 {\n padding-left: 4rem !important;\n}\n\n.pl-8 {\n padding-left: 5rem !important;\n}\n\n.pb-0 {\n padding-bottom: 0rem !important;\n}\n\n.pb-1 {\n padding-bottom: 0.25rem !important;\n}\n\n.pb-2 {\n padding-bottom: 0.5rem !important;\n}\n\n.pb-3 {\n padding-bottom: 1rem !important;\n}\n\n.pb-4 {\n padding-bottom: 1.5rem !important;\n}\n\n.pb-5 {\n padding-bottom: 2rem !important;\n}\n\n.pb-6 {\n padding-bottom: 3rem !important;\n}\n\n.pb-7 {\n padding-bottom: 4rem !important;\n}\n\n.pb-8 {\n padding-bottom: 5rem !important;\n}\n\n.px-0 {\n padding-left: 0rem !important;\n padding-right: 0rem !important;\n}\n\n.px-1 {\n padding-left: 0.25rem !important;\n padding-right: 0.25rem !important;\n}\n\n.px-2 {\n padding-left: 0.5rem !important;\n padding-right: 0.5rem !important;\n}\n\n.px-3 {\n padding-left: 1rem !important;\n padding-right: 1rem !important;\n}\n\n.px-4 {\n padding-left: 1.5rem !important;\n padding-right: 1.5rem !important;\n}\n\n.px-5 {\n padding-left: 2rem !important;\n padding-right: 2rem !important;\n}\n\n.px-6 {\n padding-left: 3rem !important;\n padding-right: 3rem !important;\n}\n\n.px-7 {\n padding-left: 4rem !important;\n padding-right: 4rem !important;\n}\n\n.px-8 {\n padding-left: 5rem !important;\n padding-right: 5rem !important;\n}\n\n.py-0 {\n padding-top: 0rem !important;\n padding-bottom: 0rem !important;\n}\n\n.py-1 {\n padding-top: 0.25rem !important;\n padding-bottom: 0.25rem !important;\n}\n\n.py-2 {\n padding-top: 0.5rem !important;\n padding-bottom: 0.5rem !important;\n}\n\n.py-3 {\n padding-top: 1rem !important;\n padding-bottom: 1rem !important;\n}\n\n.py-4 {\n padding-top: 1.5rem !important;\n padding-bottom: 1.5rem !important;\n}\n\n.py-5 {\n padding-top: 2rem !important;\n padding-bottom: 2rem !important;\n}\n\n.py-6 {\n padding-top: 3rem !important;\n padding-bottom: 3rem !important;\n}\n\n.py-7 {\n padding-top: 4rem !important;\n padding-bottom: 4rem !important;\n}\n\n.py-8 {\n padding-top: 5rem !important;\n padding-bottom: 5rem !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:p-0 {\n padding: 0rem !important;\n }\n\n .sm\\:p-1 {\n padding: 0.25rem !important;\n }\n\n .sm\\:p-2 {\n padding: 0.5rem !important;\n }\n\n .sm\\:p-3 {\n padding: 1rem !important;\n }\n\n .sm\\:p-4 {\n padding: 1.5rem !important;\n }\n\n .sm\\:p-5 {\n padding: 2rem !important;\n }\n\n .sm\\:p-6 {\n padding: 3rem !important;\n }\n\n .sm\\:p-7 {\n padding: 4rem !important;\n }\n\n .sm\\:p-8 {\n padding: 5rem !important;\n }\n\n .sm\\:pt-0 {\n padding-top: 0rem !important;\n }\n\n .sm\\:pt-1 {\n padding-top: 0.25rem !important;\n }\n\n .sm\\:pt-2 {\n padding-top: 0.5rem !important;\n }\n\n .sm\\:pt-3 {\n padding-top: 1rem !important;\n }\n\n .sm\\:pt-4 {\n padding-top: 1.5rem !important;\n }\n\n .sm\\:pt-5 {\n padding-top: 2rem !important;\n }\n\n .sm\\:pt-6 {\n padding-top: 3rem !important;\n }\n\n .sm\\:pt-7 {\n padding-top: 4rem !important;\n }\n\n .sm\\:pt-8 {\n padding-top: 5rem !important;\n }\n\n .sm\\:pr-0 {\n padding-right: 0rem !important;\n }\n\n .sm\\:pr-1 {\n padding-right: 0.25rem !important;\n }\n\n .sm\\:pr-2 {\n padding-right: 0.5rem !important;\n }\n\n .sm\\:pr-3 {\n padding-right: 1rem !important;\n }\n\n .sm\\:pr-4 {\n padding-right: 1.5rem !important;\n }\n\n .sm\\:pr-5 {\n padding-right: 2rem !important;\n }\n\n .sm\\:pr-6 {\n padding-right: 3rem !important;\n }\n\n .sm\\:pr-7 {\n padding-right: 4rem !important;\n }\n\n .sm\\:pr-8 {\n padding-right: 5rem !important;\n }\n\n .sm\\:pl-0 {\n padding-left: 0rem !important;\n }\n\n .sm\\:pl-1 {\n padding-left: 0.25rem !important;\n }\n\n .sm\\:pl-2 {\n padding-left: 0.5rem !important;\n }\n\n .sm\\:pl-3 {\n padding-left: 1rem !important;\n }\n\n .sm\\:pl-4 {\n padding-left: 1.5rem !important;\n }\n\n .sm\\:pl-5 {\n padding-left: 2rem !important;\n }\n\n .sm\\:pl-6 {\n padding-left: 3rem !important;\n }\n\n .sm\\:pl-7 {\n padding-left: 4rem !important;\n }\n\n .sm\\:pl-8 {\n padding-left: 5rem !important;\n }\n\n .sm\\:pb-0 {\n padding-bottom: 0rem !important;\n }\n\n .sm\\:pb-1 {\n padding-bottom: 0.25rem !important;\n }\n\n .sm\\:pb-2 {\n padding-bottom: 0.5rem !important;\n }\n\n .sm\\:pb-3 {\n padding-bottom: 1rem !important;\n }\n\n .sm\\:pb-4 {\n padding-bottom: 1.5rem !important;\n }\n\n .sm\\:pb-5 {\n padding-bottom: 2rem !important;\n }\n\n .sm\\:pb-6 {\n padding-bottom: 3rem !important;\n }\n\n .sm\\:pb-7 {\n padding-bottom: 4rem !important;\n }\n\n .sm\\:pb-8 {\n padding-bottom: 5rem !important;\n }\n\n .sm\\:px-0 {\n padding-left: 0rem !important;\n padding-right: 0rem !important;\n }\n\n .sm\\:px-1 {\n padding-left: 0.25rem !important;\n padding-right: 0.25rem !important;\n }\n\n .sm\\:px-2 {\n padding-left: 0.5rem !important;\n padding-right: 0.5rem !important;\n }\n\n .sm\\:px-3 {\n padding-left: 1rem !important;\n padding-right: 1rem !important;\n }\n\n .sm\\:px-4 {\n padding-left: 1.5rem !important;\n padding-right: 1.5rem !important;\n }\n\n .sm\\:px-5 {\n padding-left: 2rem !important;\n padding-right: 2rem !important;\n }\n\n .sm\\:px-6 {\n padding-left: 3rem !important;\n padding-right: 3rem !important;\n }\n\n .sm\\:px-7 {\n padding-left: 4rem !important;\n padding-right: 4rem !important;\n }\n\n .sm\\:px-8 {\n padding-left: 5rem !important;\n padding-right: 5rem !important;\n }\n\n .sm\\:py-0 {\n padding-top: 0rem !important;\n padding-bottom: 0rem !important;\n }\n\n .sm\\:py-1 {\n padding-top: 0.25rem !important;\n padding-bottom: 0.25rem !important;\n }\n\n .sm\\:py-2 {\n padding-top: 0.5rem !important;\n padding-bottom: 0.5rem !important;\n }\n\n .sm\\:py-3 {\n padding-top: 1rem !important;\n padding-bottom: 1rem !important;\n }\n\n .sm\\:py-4 {\n padding-top: 1.5rem !important;\n padding-bottom: 1.5rem !important;\n }\n\n .sm\\:py-5 {\n padding-top: 2rem !important;\n padding-bottom: 2rem !important;\n }\n\n .sm\\:py-6 {\n padding-top: 3rem !important;\n padding-bottom: 3rem !important;\n }\n\n .sm\\:py-7 {\n padding-top: 4rem !important;\n padding-bottom: 4rem !important;\n }\n\n .sm\\:py-8 {\n padding-top: 5rem !important;\n padding-bottom: 5rem !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:p-0 {\n padding: 0rem !important;\n }\n\n .md\\:p-1 {\n padding: 0.25rem !important;\n }\n\n .md\\:p-2 {\n padding: 0.5rem !important;\n }\n\n .md\\:p-3 {\n padding: 1rem !important;\n }\n\n .md\\:p-4 {\n padding: 1.5rem !important;\n }\n\n .md\\:p-5 {\n padding: 2rem !important;\n }\n\n .md\\:p-6 {\n padding: 3rem !important;\n }\n\n .md\\:p-7 {\n padding: 4rem !important;\n }\n\n .md\\:p-8 {\n padding: 5rem !important;\n }\n\n .md\\:pt-0 {\n padding-top: 0rem !important;\n }\n\n .md\\:pt-1 {\n padding-top: 0.25rem !important;\n }\n\n .md\\:pt-2 {\n padding-top: 0.5rem !important;\n }\n\n .md\\:pt-3 {\n padding-top: 1rem !important;\n }\n\n .md\\:pt-4 {\n padding-top: 1.5rem !important;\n }\n\n .md\\:pt-5 {\n padding-top: 2rem !important;\n }\n\n .md\\:pt-6 {\n padding-top: 3rem !important;\n }\n\n .md\\:pt-7 {\n padding-top: 4rem !important;\n }\n\n .md\\:pt-8 {\n padding-top: 5rem !important;\n }\n\n .md\\:pr-0 {\n padding-right: 0rem !important;\n }\n\n .md\\:pr-1 {\n padding-right: 0.25rem !important;\n }\n\n .md\\:pr-2 {\n padding-right: 0.5rem !important;\n }\n\n .md\\:pr-3 {\n padding-right: 1rem !important;\n }\n\n .md\\:pr-4 {\n padding-right: 1.5rem !important;\n }\n\n .md\\:pr-5 {\n padding-right: 2rem !important;\n }\n\n .md\\:pr-6 {\n padding-right: 3rem !important;\n }\n\n .md\\:pr-7 {\n padding-right: 4rem !important;\n }\n\n .md\\:pr-8 {\n padding-right: 5rem !important;\n }\n\n .md\\:pl-0 {\n padding-left: 0rem !important;\n }\n\n .md\\:pl-1 {\n padding-left: 0.25rem !important;\n }\n\n .md\\:pl-2 {\n padding-left: 0.5rem !important;\n }\n\n .md\\:pl-3 {\n padding-left: 1rem !important;\n }\n\n .md\\:pl-4 {\n padding-left: 1.5rem !important;\n }\n\n .md\\:pl-5 {\n padding-left: 2rem !important;\n }\n\n .md\\:pl-6 {\n padding-left: 3rem !important;\n }\n\n .md\\:pl-7 {\n padding-left: 4rem !important;\n }\n\n .md\\:pl-8 {\n padding-left: 5rem !important;\n }\n\n .md\\:pb-0 {\n padding-bottom: 0rem !important;\n }\n\n .md\\:pb-1 {\n padding-bottom: 0.25rem !important;\n }\n\n .md\\:pb-2 {\n padding-bottom: 0.5rem !important;\n }\n\n .md\\:pb-3 {\n padding-bottom: 1rem !important;\n }\n\n .md\\:pb-4 {\n padding-bottom: 1.5rem !important;\n }\n\n .md\\:pb-5 {\n padding-bottom: 2rem !important;\n }\n\n .md\\:pb-6 {\n padding-bottom: 3rem !important;\n }\n\n .md\\:pb-7 {\n padding-bottom: 4rem !important;\n }\n\n .md\\:pb-8 {\n padding-bottom: 5rem !important;\n }\n\n .md\\:px-0 {\n padding-left: 0rem !important;\n padding-right: 0rem !important;\n }\n\n .md\\:px-1 {\n padding-left: 0.25rem !important;\n padding-right: 0.25rem !important;\n }\n\n .md\\:px-2 {\n padding-left: 0.5rem !important;\n padding-right: 0.5rem !important;\n }\n\n .md\\:px-3 {\n padding-left: 1rem !important;\n padding-right: 1rem !important;\n }\n\n .md\\:px-4 {\n padding-left: 1.5rem !important;\n padding-right: 1.5rem !important;\n }\n\n .md\\:px-5 {\n padding-left: 2rem !important;\n padding-right: 2rem !important;\n }\n\n .md\\:px-6 {\n padding-left: 3rem !important;\n padding-right: 3rem !important;\n }\n\n .md\\:px-7 {\n padding-left: 4rem !important;\n padding-right: 4rem !important;\n }\n\n .md\\:px-8 {\n padding-left: 5rem !important;\n padding-right: 5rem !important;\n }\n\n .md\\:py-0 {\n padding-top: 0rem !important;\n padding-bottom: 0rem !important;\n }\n\n .md\\:py-1 {\n padding-top: 0.25rem !important;\n padding-bottom: 0.25rem !important;\n }\n\n .md\\:py-2 {\n padding-top: 0.5rem !important;\n padding-bottom: 0.5rem !important;\n }\n\n .md\\:py-3 {\n padding-top: 1rem !important;\n padding-bottom: 1rem !important;\n }\n\n .md\\:py-4 {\n padding-top: 1.5rem !important;\n padding-bottom: 1.5rem !important;\n }\n\n .md\\:py-5 {\n padding-top: 2rem !important;\n padding-bottom: 2rem !important;\n }\n\n .md\\:py-6 {\n padding-top: 3rem !important;\n padding-bottom: 3rem !important;\n }\n\n .md\\:py-7 {\n padding-top: 4rem !important;\n padding-bottom: 4rem !important;\n }\n\n .md\\:py-8 {\n padding-top: 5rem !important;\n padding-bottom: 5rem !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:p-0 {\n padding: 0rem !important;\n }\n\n .lg\\:p-1 {\n padding: 0.25rem !important;\n }\n\n .lg\\:p-2 {\n padding: 0.5rem !important;\n }\n\n .lg\\:p-3 {\n padding: 1rem !important;\n }\n\n .lg\\:p-4 {\n padding: 1.5rem !important;\n }\n\n .lg\\:p-5 {\n padding: 2rem !important;\n }\n\n .lg\\:p-6 {\n padding: 3rem !important;\n }\n\n .lg\\:p-7 {\n padding: 4rem !important;\n }\n\n .lg\\:p-8 {\n padding: 5rem !important;\n }\n\n .lg\\:pt-0 {\n padding-top: 0rem !important;\n }\n\n .lg\\:pt-1 {\n padding-top: 0.25rem !important;\n }\n\n .lg\\:pt-2 {\n padding-top: 0.5rem !important;\n }\n\n .lg\\:pt-3 {\n padding-top: 1rem !important;\n }\n\n .lg\\:pt-4 {\n padding-top: 1.5rem !important;\n }\n\n .lg\\:pt-5 {\n padding-top: 2rem !important;\n }\n\n .lg\\:pt-6 {\n padding-top: 3rem !important;\n }\n\n .lg\\:pt-7 {\n padding-top: 4rem !important;\n }\n\n .lg\\:pt-8 {\n padding-top: 5rem !important;\n }\n\n .lg\\:pr-0 {\n padding-right: 0rem !important;\n }\n\n .lg\\:pr-1 {\n padding-right: 0.25rem !important;\n }\n\n .lg\\:pr-2 {\n padding-right: 0.5rem !important;\n }\n\n .lg\\:pr-3 {\n padding-right: 1rem !important;\n }\n\n .lg\\:pr-4 {\n padding-right: 1.5rem !important;\n }\n\n .lg\\:pr-5 {\n padding-right: 2rem !important;\n }\n\n .lg\\:pr-6 {\n padding-right: 3rem !important;\n }\n\n .lg\\:pr-7 {\n padding-right: 4rem !important;\n }\n\n .lg\\:pr-8 {\n padding-right: 5rem !important;\n }\n\n .lg\\:pl-0 {\n padding-left: 0rem !important;\n }\n\n .lg\\:pl-1 {\n padding-left: 0.25rem !important;\n }\n\n .lg\\:pl-2 {\n padding-left: 0.5rem !important;\n }\n\n .lg\\:pl-3 {\n padding-left: 1rem !important;\n }\n\n .lg\\:pl-4 {\n padding-left: 1.5rem !important;\n }\n\n .lg\\:pl-5 {\n padding-left: 2rem !important;\n }\n\n .lg\\:pl-6 {\n padding-left: 3rem !important;\n }\n\n .lg\\:pl-7 {\n padding-left: 4rem !important;\n }\n\n .lg\\:pl-8 {\n padding-left: 5rem !important;\n }\n\n .lg\\:pb-0 {\n padding-bottom: 0rem !important;\n }\n\n .lg\\:pb-1 {\n padding-bottom: 0.25rem !important;\n }\n\n .lg\\:pb-2 {\n padding-bottom: 0.5rem !important;\n }\n\n .lg\\:pb-3 {\n padding-bottom: 1rem !important;\n }\n\n .lg\\:pb-4 {\n padding-bottom: 1.5rem !important;\n }\n\n .lg\\:pb-5 {\n padding-bottom: 2rem !important;\n }\n\n .lg\\:pb-6 {\n padding-bottom: 3rem !important;\n }\n\n .lg\\:pb-7 {\n padding-bottom: 4rem !important;\n }\n\n .lg\\:pb-8 {\n padding-bottom: 5rem !important;\n }\n\n .lg\\:px-0 {\n padding-left: 0rem !important;\n padding-right: 0rem !important;\n }\n\n .lg\\:px-1 {\n padding-left: 0.25rem !important;\n padding-right: 0.25rem !important;\n }\n\n .lg\\:px-2 {\n padding-left: 0.5rem !important;\n padding-right: 0.5rem !important;\n }\n\n .lg\\:px-3 {\n padding-left: 1rem !important;\n padding-right: 1rem !important;\n }\n\n .lg\\:px-4 {\n padding-left: 1.5rem !important;\n padding-right: 1.5rem !important;\n }\n\n .lg\\:px-5 {\n padding-left: 2rem !important;\n padding-right: 2rem !important;\n }\n\n .lg\\:px-6 {\n padding-left: 3rem !important;\n padding-right: 3rem !important;\n }\n\n .lg\\:px-7 {\n padding-left: 4rem !important;\n padding-right: 4rem !important;\n }\n\n .lg\\:px-8 {\n padding-left: 5rem !important;\n padding-right: 5rem !important;\n }\n\n .lg\\:py-0 {\n padding-top: 0rem !important;\n padding-bottom: 0rem !important;\n }\n\n .lg\\:py-1 {\n padding-top: 0.25rem !important;\n padding-bottom: 0.25rem !important;\n }\n\n .lg\\:py-2 {\n padding-top: 0.5rem !important;\n padding-bottom: 0.5rem !important;\n }\n\n .lg\\:py-3 {\n padding-top: 1rem !important;\n padding-bottom: 1rem !important;\n }\n\n .lg\\:py-4 {\n padding-top: 1.5rem !important;\n padding-bottom: 1.5rem !important;\n }\n\n .lg\\:py-5 {\n padding-top: 2rem !important;\n padding-bottom: 2rem !important;\n }\n\n .lg\\:py-6 {\n padding-top: 3rem !important;\n padding-bottom: 3rem !important;\n }\n\n .lg\\:py-7 {\n padding-top: 4rem !important;\n padding-bottom: 4rem !important;\n }\n\n .lg\\:py-8 {\n padding-top: 5rem !important;\n padding-bottom: 5rem !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:p-0 {\n padding: 0rem !important;\n }\n\n .xl\\:p-1 {\n padding: 0.25rem !important;\n }\n\n .xl\\:p-2 {\n padding: 0.5rem !important;\n }\n\n .xl\\:p-3 {\n padding: 1rem !important;\n }\n\n .xl\\:p-4 {\n padding: 1.5rem !important;\n }\n\n .xl\\:p-5 {\n padding: 2rem !important;\n }\n\n .xl\\:p-6 {\n padding: 3rem !important;\n }\n\n .xl\\:p-7 {\n padding: 4rem !important;\n }\n\n .xl\\:p-8 {\n padding: 5rem !important;\n }\n\n .xl\\:pt-0 {\n padding-top: 0rem !important;\n }\n\n .xl\\:pt-1 {\n padding-top: 0.25rem !important;\n }\n\n .xl\\:pt-2 {\n padding-top: 0.5rem !important;\n }\n\n .xl\\:pt-3 {\n padding-top: 1rem !important;\n }\n\n .xl\\:pt-4 {\n padding-top: 1.5rem !important;\n }\n\n .xl\\:pt-5 {\n padding-top: 2rem !important;\n }\n\n .xl\\:pt-6 {\n padding-top: 3rem !important;\n }\n\n .xl\\:pt-7 {\n padding-top: 4rem !important;\n }\n\n .xl\\:pt-8 {\n padding-top: 5rem !important;\n }\n\n .xl\\:pr-0 {\n padding-right: 0rem !important;\n }\n\n .xl\\:pr-1 {\n padding-right: 0.25rem !important;\n }\n\n .xl\\:pr-2 {\n padding-right: 0.5rem !important;\n }\n\n .xl\\:pr-3 {\n padding-right: 1rem !important;\n }\n\n .xl\\:pr-4 {\n padding-right: 1.5rem !important;\n }\n\n .xl\\:pr-5 {\n padding-right: 2rem !important;\n }\n\n .xl\\:pr-6 {\n padding-right: 3rem !important;\n }\n\n .xl\\:pr-7 {\n padding-right: 4rem !important;\n }\n\n .xl\\:pr-8 {\n padding-right: 5rem !important;\n }\n\n .xl\\:pl-0 {\n padding-left: 0rem !important;\n }\n\n .xl\\:pl-1 {\n padding-left: 0.25rem !important;\n }\n\n .xl\\:pl-2 {\n padding-left: 0.5rem !important;\n }\n\n .xl\\:pl-3 {\n padding-left: 1rem !important;\n }\n\n .xl\\:pl-4 {\n padding-left: 1.5rem !important;\n }\n\n .xl\\:pl-5 {\n padding-left: 2rem !important;\n }\n\n .xl\\:pl-6 {\n padding-left: 3rem !important;\n }\n\n .xl\\:pl-7 {\n padding-left: 4rem !important;\n }\n\n .xl\\:pl-8 {\n padding-left: 5rem !important;\n }\n\n .xl\\:pb-0 {\n padding-bottom: 0rem !important;\n }\n\n .xl\\:pb-1 {\n padding-bottom: 0.25rem !important;\n }\n\n .xl\\:pb-2 {\n padding-bottom: 0.5rem !important;\n }\n\n .xl\\:pb-3 {\n padding-bottom: 1rem !important;\n }\n\n .xl\\:pb-4 {\n padding-bottom: 1.5rem !important;\n }\n\n .xl\\:pb-5 {\n padding-bottom: 2rem !important;\n }\n\n .xl\\:pb-6 {\n padding-bottom: 3rem !important;\n }\n\n .xl\\:pb-7 {\n padding-bottom: 4rem !important;\n }\n\n .xl\\:pb-8 {\n padding-bottom: 5rem !important;\n }\n\n .xl\\:px-0 {\n padding-left: 0rem !important;\n padding-right: 0rem !important;\n }\n\n .xl\\:px-1 {\n padding-left: 0.25rem !important;\n padding-right: 0.25rem !important;\n }\n\n .xl\\:px-2 {\n padding-left: 0.5rem !important;\n padding-right: 0.5rem !important;\n }\n\n .xl\\:px-3 {\n padding-left: 1rem !important;\n padding-right: 1rem !important;\n }\n\n .xl\\:px-4 {\n padding-left: 1.5rem !important;\n padding-right: 1.5rem !important;\n }\n\n .xl\\:px-5 {\n padding-left: 2rem !important;\n padding-right: 2rem !important;\n }\n\n .xl\\:px-6 {\n padding-left: 3rem !important;\n padding-right: 3rem !important;\n }\n\n .xl\\:px-7 {\n padding-left: 4rem !important;\n padding-right: 4rem !important;\n }\n\n .xl\\:px-8 {\n padding-left: 5rem !important;\n padding-right: 5rem !important;\n }\n\n .xl\\:py-0 {\n padding-top: 0rem !important;\n padding-bottom: 0rem !important;\n }\n\n .xl\\:py-1 {\n padding-top: 0.25rem !important;\n padding-bottom: 0.25rem !important;\n }\n\n .xl\\:py-2 {\n padding-top: 0.5rem !important;\n padding-bottom: 0.5rem !important;\n }\n\n .xl\\:py-3 {\n padding-top: 1rem !important;\n padding-bottom: 1rem !important;\n }\n\n .xl\\:py-4 {\n padding-top: 1.5rem !important;\n padding-bottom: 1.5rem !important;\n }\n\n .xl\\:py-5 {\n padding-top: 2rem !important;\n padding-bottom: 2rem !important;\n }\n\n .xl\\:py-6 {\n padding-top: 3rem !important;\n padding-bottom: 3rem !important;\n }\n\n .xl\\:py-7 {\n padding-top: 4rem !important;\n padding-bottom: 4rem !important;\n }\n\n .xl\\:py-8 {\n padding-top: 5rem !important;\n padding-bottom: 5rem !important;\n }\n}\n.m-0 {\n margin: 0rem !important;\n}\n\n.m-1 {\n margin: 0.25rem !important;\n}\n\n.m-2 {\n margin: 0.5rem !important;\n}\n\n.m-3 {\n margin: 1rem !important;\n}\n\n.m-4 {\n margin: 1.5rem !important;\n}\n\n.m-5 {\n margin: 2rem !important;\n}\n\n.m-6 {\n margin: 3rem !important;\n}\n\n.m-7 {\n margin: 4rem !important;\n}\n\n.m-8 {\n margin: 5rem !important;\n}\n\n.-m-1 {\n margin: -0.25rem !important;\n}\n\n.-m-2 {\n margin: -0.5rem !important;\n}\n\n.-m-3 {\n margin: -1rem !important;\n}\n\n.-m-4 {\n margin: -1.5rem !important;\n}\n\n.-m-5 {\n margin: -2rem !important;\n}\n\n.-m-6 {\n margin: -3rem !important;\n}\n\n.-m-7 {\n margin: -4rem !important;\n}\n\n.-m-8 {\n margin: -5rem !important;\n}\n\n.m-auto {\n margin: auto !important;\n}\n\n.mt-0 {\n margin-top: 0rem !important;\n}\n\n.mt-1 {\n margin-top: 0.25rem !important;\n}\n\n.mt-2 {\n margin-top: 0.5rem !important;\n}\n\n.mt-3 {\n margin-top: 1rem !important;\n}\n\n.mt-4 {\n margin-top: 1.5rem !important;\n}\n\n.mt-5 {\n margin-top: 2rem !important;\n}\n\n.mt-6 {\n margin-top: 3rem !important;\n}\n\n.mt-7 {\n margin-top: 4rem !important;\n}\n\n.mt-8 {\n margin-top: 5rem !important;\n}\n\n.-mt-1 {\n margin-top: -0.25rem !important;\n}\n\n.-mt-2 {\n margin-top: -0.5rem !important;\n}\n\n.-mt-3 {\n margin-top: -1rem !important;\n}\n\n.-mt-4 {\n margin-top: -1.5rem !important;\n}\n\n.-mt-5 {\n margin-top: -2rem !important;\n}\n\n.-mt-6 {\n margin-top: -3rem !important;\n}\n\n.-mt-7 {\n margin-top: -4rem !important;\n}\n\n.-mt-8 {\n margin-top: -5rem !important;\n}\n\n.mt-auto {\n margin-top: auto !important;\n}\n\n.mr-0 {\n margin-right: 0rem !important;\n}\n\n.mr-1 {\n margin-right: 0.25rem !important;\n}\n\n.mr-2 {\n margin-right: 0.5rem !important;\n}\n\n.mr-3 {\n margin-right: 1rem !important;\n}\n\n.mr-4 {\n margin-right: 1.5rem !important;\n}\n\n.mr-5 {\n margin-right: 2rem !important;\n}\n\n.mr-6 {\n margin-right: 3rem !important;\n}\n\n.mr-7 {\n margin-right: 4rem !important;\n}\n\n.mr-8 {\n margin-right: 5rem !important;\n}\n\n.-mr-1 {\n margin-right: -0.25rem !important;\n}\n\n.-mr-2 {\n margin-right: -0.5rem !important;\n}\n\n.-mr-3 {\n margin-right: -1rem !important;\n}\n\n.-mr-4 {\n margin-right: -1.5rem !important;\n}\n\n.-mr-5 {\n margin-right: -2rem !important;\n}\n\n.-mr-6 {\n margin-right: -3rem !important;\n}\n\n.-mr-7 {\n margin-right: -4rem !important;\n}\n\n.-mr-8 {\n margin-right: -5rem !important;\n}\n\n.mr-auto {\n margin-right: auto !important;\n}\n\n.ml-0 {\n margin-left: 0rem !important;\n}\n\n.ml-1 {\n margin-left: 0.25rem !important;\n}\n\n.ml-2 {\n margin-left: 0.5rem !important;\n}\n\n.ml-3 {\n margin-left: 1rem !important;\n}\n\n.ml-4 {\n margin-left: 1.5rem !important;\n}\n\n.ml-5 {\n margin-left: 2rem !important;\n}\n\n.ml-6 {\n margin-left: 3rem !important;\n}\n\n.ml-7 {\n margin-left: 4rem !important;\n}\n\n.ml-8 {\n margin-left: 5rem !important;\n}\n\n.-ml-1 {\n margin-left: -0.25rem !important;\n}\n\n.-ml-2 {\n margin-left: -0.5rem !important;\n}\n\n.-ml-3 {\n margin-left: -1rem !important;\n}\n\n.-ml-4 {\n margin-left: -1.5rem !important;\n}\n\n.-ml-5 {\n margin-left: -2rem !important;\n}\n\n.-ml-6 {\n margin-left: -3rem !important;\n}\n\n.-ml-7 {\n margin-left: -4rem !important;\n}\n\n.-ml-8 {\n margin-left: -5rem !important;\n}\n\n.ml-auto {\n margin-left: auto !important;\n}\n\n.mb-0 {\n margin-bottom: 0rem !important;\n}\n\n.mb-1 {\n margin-bottom: 0.25rem !important;\n}\n\n.mb-2 {\n margin-bottom: 0.5rem !important;\n}\n\n.mb-3 {\n margin-bottom: 1rem !important;\n}\n\n.mb-4 {\n margin-bottom: 1.5rem !important;\n}\n\n.mb-5 {\n margin-bottom: 2rem !important;\n}\n\n.mb-6 {\n margin-bottom: 3rem !important;\n}\n\n.mb-7 {\n margin-bottom: 4rem !important;\n}\n\n.mb-8 {\n margin-bottom: 5rem !important;\n}\n\n.-mb-1 {\n margin-bottom: -0.25rem !important;\n}\n\n.-mb-2 {\n margin-bottom: -0.5rem !important;\n}\n\n.-mb-3 {\n margin-bottom: -1rem !important;\n}\n\n.-mb-4 {\n margin-bottom: -1.5rem !important;\n}\n\n.-mb-5 {\n margin-bottom: -2rem !important;\n}\n\n.-mb-6 {\n margin-bottom: -3rem !important;\n}\n\n.-mb-7 {\n margin-bottom: -4rem !important;\n}\n\n.-mb-8 {\n margin-bottom: -5rem !important;\n}\n\n.mb-auto {\n margin-bottom: auto !important;\n}\n\n.mx-0 {\n margin-left: 0rem !important;\n margin-right: 0rem !important;\n}\n\n.mx-1 {\n margin-left: 0.25rem !important;\n margin-right: 0.25rem !important;\n}\n\n.mx-2 {\n margin-left: 0.5rem !important;\n margin-right: 0.5rem !important;\n}\n\n.mx-3 {\n margin-left: 1rem !important;\n margin-right: 1rem !important;\n}\n\n.mx-4 {\n margin-left: 1.5rem !important;\n margin-right: 1.5rem !important;\n}\n\n.mx-5 {\n margin-left: 2rem !important;\n margin-right: 2rem !important;\n}\n\n.mx-6 {\n margin-left: 3rem !important;\n margin-right: 3rem !important;\n}\n\n.mx-7 {\n margin-left: 4rem !important;\n margin-right: 4rem !important;\n}\n\n.mx-8 {\n margin-left: 5rem !important;\n margin-right: 5rem !important;\n}\n\n.-mx-1 {\n margin-left: -0.25rem !important;\n margin-right: -0.25rem !important;\n}\n\n.-mx-2 {\n margin-left: -0.5rem !important;\n margin-right: -0.5rem !important;\n}\n\n.-mx-3 {\n margin-left: -1rem !important;\n margin-right: -1rem !important;\n}\n\n.-mx-4 {\n margin-left: -1.5rem !important;\n margin-right: -1.5rem !important;\n}\n\n.-mx-5 {\n margin-left: -2rem !important;\n margin-right: -2rem !important;\n}\n\n.-mx-6 {\n margin-left: -3rem !important;\n margin-right: -3rem !important;\n}\n\n.-mx-7 {\n margin-left: -4rem !important;\n margin-right: -4rem !important;\n}\n\n.-mx-8 {\n margin-left: -5rem !important;\n margin-right: -5rem !important;\n}\n\n.mx-auto {\n margin-left: auto !important;\n margin-right: auto !important;\n}\n\n.my-0 {\n margin-top: 0rem !important;\n margin-bottom: 0rem !important;\n}\n\n.my-1 {\n margin-top: 0.25rem !important;\n margin-bottom: 0.25rem !important;\n}\n\n.my-2 {\n margin-top: 0.5rem !important;\n margin-bottom: 0.5rem !important;\n}\n\n.my-3 {\n margin-top: 1rem !important;\n margin-bottom: 1rem !important;\n}\n\n.my-4 {\n margin-top: 1.5rem !important;\n margin-bottom: 1.5rem !important;\n}\n\n.my-5 {\n margin-top: 2rem !important;\n margin-bottom: 2rem !important;\n}\n\n.my-6 {\n margin-top: 3rem !important;\n margin-bottom: 3rem !important;\n}\n\n.my-7 {\n margin-top: 4rem !important;\n margin-bottom: 4rem !important;\n}\n\n.my-8 {\n margin-top: 5rem !important;\n margin-bottom: 5rem !important;\n}\n\n.-my-1 {\n margin-top: -0.25rem !important;\n margin-bottom: -0.25rem !important;\n}\n\n.-my-2 {\n margin-top: -0.5rem !important;\n margin-bottom: -0.5rem !important;\n}\n\n.-my-3 {\n margin-top: -1rem !important;\n margin-bottom: -1rem !important;\n}\n\n.-my-4 {\n margin-top: -1.5rem !important;\n margin-bottom: -1.5rem !important;\n}\n\n.-my-5 {\n margin-top: -2rem !important;\n margin-bottom: -2rem !important;\n}\n\n.-my-6 {\n margin-top: -3rem !important;\n margin-bottom: -3rem !important;\n}\n\n.-my-7 {\n margin-top: -4rem !important;\n margin-bottom: -4rem !important;\n}\n\n.-my-8 {\n margin-top: -5rem !important;\n margin-bottom: -5rem !important;\n}\n\n.my-auto {\n margin-top: auto !important;\n margin-bottom: auto !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:m-0 {\n margin: 0rem !important;\n }\n\n .sm\\:m-1 {\n margin: 0.25rem !important;\n }\n\n .sm\\:m-2 {\n margin: 0.5rem !important;\n }\n\n .sm\\:m-3 {\n margin: 1rem !important;\n }\n\n .sm\\:m-4 {\n margin: 1.5rem !important;\n }\n\n .sm\\:m-5 {\n margin: 2rem !important;\n }\n\n .sm\\:m-6 {\n margin: 3rem !important;\n }\n\n .sm\\:m-7 {\n margin: 4rem !important;\n }\n\n .sm\\:m-8 {\n margin: 5rem !important;\n }\n\n .sm\\:-m-1 {\n margin: -0.25rem !important;\n }\n\n .sm\\:-m-2 {\n margin: -0.5rem !important;\n }\n\n .sm\\:-m-3 {\n margin: -1rem !important;\n }\n\n .sm\\:-m-4 {\n margin: -1.5rem !important;\n }\n\n .sm\\:-m-5 {\n margin: -2rem !important;\n }\n\n .sm\\:-m-6 {\n margin: -3rem !important;\n }\n\n .sm\\:-m-7 {\n margin: -4rem !important;\n }\n\n .sm\\:-m-8 {\n margin: -5rem !important;\n }\n\n .sm\\:m-auto {\n margin: auto !important;\n }\n\n .sm\\:mt-0 {\n margin-top: 0rem !important;\n }\n\n .sm\\:mt-1 {\n margin-top: 0.25rem !important;\n }\n\n .sm\\:mt-2 {\n margin-top: 0.5rem !important;\n }\n\n .sm\\:mt-3 {\n margin-top: 1rem !important;\n }\n\n .sm\\:mt-4 {\n margin-top: 1.5rem !important;\n }\n\n .sm\\:mt-5 {\n margin-top: 2rem !important;\n }\n\n .sm\\:mt-6 {\n margin-top: 3rem !important;\n }\n\n .sm\\:mt-7 {\n margin-top: 4rem !important;\n }\n\n .sm\\:mt-8 {\n margin-top: 5rem !important;\n }\n\n .sm\\:-mt-1 {\n margin-top: -0.25rem !important;\n }\n\n .sm\\:-mt-2 {\n margin-top: -0.5rem !important;\n }\n\n .sm\\:-mt-3 {\n margin-top: -1rem !important;\n }\n\n .sm\\:-mt-4 {\n margin-top: -1.5rem !important;\n }\n\n .sm\\:-mt-5 {\n margin-top: -2rem !important;\n }\n\n .sm\\:-mt-6 {\n margin-top: -3rem !important;\n }\n\n .sm\\:-mt-7 {\n margin-top: -4rem !important;\n }\n\n .sm\\:-mt-8 {\n margin-top: -5rem !important;\n }\n\n .sm\\:mt-auto {\n margin-top: auto !important;\n }\n\n .sm\\:mr-0 {\n margin-right: 0rem !important;\n }\n\n .sm\\:mr-1 {\n margin-right: 0.25rem !important;\n }\n\n .sm\\:mr-2 {\n margin-right: 0.5rem !important;\n }\n\n .sm\\:mr-3 {\n margin-right: 1rem !important;\n }\n\n .sm\\:mr-4 {\n margin-right: 1.5rem !important;\n }\n\n .sm\\:mr-5 {\n margin-right: 2rem !important;\n }\n\n .sm\\:mr-6 {\n margin-right: 3rem !important;\n }\n\n .sm\\:mr-7 {\n margin-right: 4rem !important;\n }\n\n .sm\\:mr-8 {\n margin-right: 5rem !important;\n }\n\n .sm\\:-mr-1 {\n margin-right: -0.25rem !important;\n }\n\n .sm\\:-mr-2 {\n margin-right: -0.5rem !important;\n }\n\n .sm\\:-mr-3 {\n margin-right: -1rem !important;\n }\n\n .sm\\:-mr-4 {\n margin-right: -1.5rem !important;\n }\n\n .sm\\:-mr-5 {\n margin-right: -2rem !important;\n }\n\n .sm\\:-mr-6 {\n margin-right: -3rem !important;\n }\n\n .sm\\:-mr-7 {\n margin-right: -4rem !important;\n }\n\n .sm\\:-mr-8 {\n margin-right: -5rem !important;\n }\n\n .sm\\:mr-auto {\n margin-right: auto !important;\n }\n\n .sm\\:ml-0 {\n margin-left: 0rem !important;\n }\n\n .sm\\:ml-1 {\n margin-left: 0.25rem !important;\n }\n\n .sm\\:ml-2 {\n margin-left: 0.5rem !important;\n }\n\n .sm\\:ml-3 {\n margin-left: 1rem !important;\n }\n\n .sm\\:ml-4 {\n margin-left: 1.5rem !important;\n }\n\n .sm\\:ml-5 {\n margin-left: 2rem !important;\n }\n\n .sm\\:ml-6 {\n margin-left: 3rem !important;\n }\n\n .sm\\:ml-7 {\n margin-left: 4rem !important;\n }\n\n .sm\\:ml-8 {\n margin-left: 5rem !important;\n }\n\n .sm\\:-ml-1 {\n margin-left: -0.25rem !important;\n }\n\n .sm\\:-ml-2 {\n margin-left: -0.5rem !important;\n }\n\n .sm\\:-ml-3 {\n margin-left: -1rem !important;\n }\n\n .sm\\:-ml-4 {\n margin-left: -1.5rem !important;\n }\n\n .sm\\:-ml-5 {\n margin-left: -2rem !important;\n }\n\n .sm\\:-ml-6 {\n margin-left: -3rem !important;\n }\n\n .sm\\:-ml-7 {\n margin-left: -4rem !important;\n }\n\n .sm\\:-ml-8 {\n margin-left: -5rem !important;\n }\n\n .sm\\:ml-auto {\n margin-left: auto !important;\n }\n\n .sm\\:mb-0 {\n margin-bottom: 0rem !important;\n }\n\n .sm\\:mb-1 {\n margin-bottom: 0.25rem !important;\n }\n\n .sm\\:mb-2 {\n margin-bottom: 0.5rem !important;\n }\n\n .sm\\:mb-3 {\n margin-bottom: 1rem !important;\n }\n\n .sm\\:mb-4 {\n margin-bottom: 1.5rem !important;\n }\n\n .sm\\:mb-5 {\n margin-bottom: 2rem !important;\n }\n\n .sm\\:mb-6 {\n margin-bottom: 3rem !important;\n }\n\n .sm\\:mb-7 {\n margin-bottom: 4rem !important;\n }\n\n .sm\\:mb-8 {\n margin-bottom: 5rem !important;\n }\n\n .sm\\:-mb-1 {\n margin-bottom: -0.25rem !important;\n }\n\n .sm\\:-mb-2 {\n margin-bottom: -0.5rem !important;\n }\n\n .sm\\:-mb-3 {\n margin-bottom: -1rem !important;\n }\n\n .sm\\:-mb-4 {\n margin-bottom: -1.5rem !important;\n }\n\n .sm\\:-mb-5 {\n margin-bottom: -2rem !important;\n }\n\n .sm\\:-mb-6 {\n margin-bottom: -3rem !important;\n }\n\n .sm\\:-mb-7 {\n margin-bottom: -4rem !important;\n }\n\n .sm\\:-mb-8 {\n margin-bottom: -5rem !important;\n }\n\n .sm\\:mb-auto {\n margin-bottom: auto !important;\n }\n\n .sm\\:mx-0 {\n margin-left: 0rem !important;\n margin-right: 0rem !important;\n }\n\n .sm\\:mx-1 {\n margin-left: 0.25rem !important;\n margin-right: 0.25rem !important;\n }\n\n .sm\\:mx-2 {\n margin-left: 0.5rem !important;\n margin-right: 0.5rem !important;\n }\n\n .sm\\:mx-3 {\n margin-left: 1rem !important;\n margin-right: 1rem !important;\n }\n\n .sm\\:mx-4 {\n margin-left: 1.5rem !important;\n margin-right: 1.5rem !important;\n }\n\n .sm\\:mx-5 {\n margin-left: 2rem !important;\n margin-right: 2rem !important;\n }\n\n .sm\\:mx-6 {\n margin-left: 3rem !important;\n margin-right: 3rem !important;\n }\n\n .sm\\:mx-7 {\n margin-left: 4rem !important;\n margin-right: 4rem !important;\n }\n\n .sm\\:mx-8 {\n margin-left: 5rem !important;\n margin-right: 5rem !important;\n }\n\n .sm\\:-mx-1 {\n margin-left: -0.25rem !important;\n margin-right: -0.25rem !important;\n }\n\n .sm\\:-mx-2 {\n margin-left: -0.5rem !important;\n margin-right: -0.5rem !important;\n }\n\n .sm\\:-mx-3 {\n margin-left: -1rem !important;\n margin-right: -1rem !important;\n }\n\n .sm\\:-mx-4 {\n margin-left: -1.5rem !important;\n margin-right: -1.5rem !important;\n }\n\n .sm\\:-mx-5 {\n margin-left: -2rem !important;\n margin-right: -2rem !important;\n }\n\n .sm\\:-mx-6 {\n margin-left: -3rem !important;\n margin-right: -3rem !important;\n }\n\n .sm\\:-mx-7 {\n margin-left: -4rem !important;\n margin-right: -4rem !important;\n }\n\n .sm\\:-mx-8 {\n margin-left: -5rem !important;\n margin-right: -5rem !important;\n }\n\n .sm\\:mx-auto {\n margin-left: auto !important;\n margin-right: auto !important;\n }\n\n .sm\\:my-0 {\n margin-top: 0rem !important;\n margin-bottom: 0rem !important;\n }\n\n .sm\\:my-1 {\n margin-top: 0.25rem !important;\n margin-bottom: 0.25rem !important;\n }\n\n .sm\\:my-2 {\n margin-top: 0.5rem !important;\n margin-bottom: 0.5rem !important;\n }\n\n .sm\\:my-3 {\n margin-top: 1rem !important;\n margin-bottom: 1rem !important;\n }\n\n .sm\\:my-4 {\n margin-top: 1.5rem !important;\n margin-bottom: 1.5rem !important;\n }\n\n .sm\\:my-5 {\n margin-top: 2rem !important;\n margin-bottom: 2rem !important;\n }\n\n .sm\\:my-6 {\n margin-top: 3rem !important;\n margin-bottom: 3rem !important;\n }\n\n .sm\\:my-7 {\n margin-top: 4rem !important;\n margin-bottom: 4rem !important;\n }\n\n .sm\\:my-8 {\n margin-top: 5rem !important;\n margin-bottom: 5rem !important;\n }\n\n .sm\\:-my-1 {\n margin-top: -0.25rem !important;\n margin-bottom: -0.25rem !important;\n }\n\n .sm\\:-my-2 {\n margin-top: -0.5rem !important;\n margin-bottom: -0.5rem !important;\n }\n\n .sm\\:-my-3 {\n margin-top: -1rem !important;\n margin-bottom: -1rem !important;\n }\n\n .sm\\:-my-4 {\n margin-top: -1.5rem !important;\n margin-bottom: -1.5rem !important;\n }\n\n .sm\\:-my-5 {\n margin-top: -2rem !important;\n margin-bottom: -2rem !important;\n }\n\n .sm\\:-my-6 {\n margin-top: -3rem !important;\n margin-bottom: -3rem !important;\n }\n\n .sm\\:-my-7 {\n margin-top: -4rem !important;\n margin-bottom: -4rem !important;\n }\n\n .sm\\:-my-8 {\n margin-top: -5rem !important;\n margin-bottom: -5rem !important;\n }\n\n .sm\\:my-auto {\n margin-top: auto !important;\n margin-bottom: auto !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:m-0 {\n margin: 0rem !important;\n }\n\n .md\\:m-1 {\n margin: 0.25rem !important;\n }\n\n .md\\:m-2 {\n margin: 0.5rem !important;\n }\n\n .md\\:m-3 {\n margin: 1rem !important;\n }\n\n .md\\:m-4 {\n margin: 1.5rem !important;\n }\n\n .md\\:m-5 {\n margin: 2rem !important;\n }\n\n .md\\:m-6 {\n margin: 3rem !important;\n }\n\n .md\\:m-7 {\n margin: 4rem !important;\n }\n\n .md\\:m-8 {\n margin: 5rem !important;\n }\n\n .md\\:-m-1 {\n margin: -0.25rem !important;\n }\n\n .md\\:-m-2 {\n margin: -0.5rem !important;\n }\n\n .md\\:-m-3 {\n margin: -1rem !important;\n }\n\n .md\\:-m-4 {\n margin: -1.5rem !important;\n }\n\n .md\\:-m-5 {\n margin: -2rem !important;\n }\n\n .md\\:-m-6 {\n margin: -3rem !important;\n }\n\n .md\\:-m-7 {\n margin: -4rem !important;\n }\n\n .md\\:-m-8 {\n margin: -5rem !important;\n }\n\n .md\\:m-auto {\n margin: auto !important;\n }\n\n .md\\:mt-0 {\n margin-top: 0rem !important;\n }\n\n .md\\:mt-1 {\n margin-top: 0.25rem !important;\n }\n\n .md\\:mt-2 {\n margin-top: 0.5rem !important;\n }\n\n .md\\:mt-3 {\n margin-top: 1rem !important;\n }\n\n .md\\:mt-4 {\n margin-top: 1.5rem !important;\n }\n\n .md\\:mt-5 {\n margin-top: 2rem !important;\n }\n\n .md\\:mt-6 {\n margin-top: 3rem !important;\n }\n\n .md\\:mt-7 {\n margin-top: 4rem !important;\n }\n\n .md\\:mt-8 {\n margin-top: 5rem !important;\n }\n\n .md\\:-mt-1 {\n margin-top: -0.25rem !important;\n }\n\n .md\\:-mt-2 {\n margin-top: -0.5rem !important;\n }\n\n .md\\:-mt-3 {\n margin-top: -1rem !important;\n }\n\n .md\\:-mt-4 {\n margin-top: -1.5rem !important;\n }\n\n .md\\:-mt-5 {\n margin-top: -2rem !important;\n }\n\n .md\\:-mt-6 {\n margin-top: -3rem !important;\n }\n\n .md\\:-mt-7 {\n margin-top: -4rem !important;\n }\n\n .md\\:-mt-8 {\n margin-top: -5rem !important;\n }\n\n .md\\:mt-auto {\n margin-top: auto !important;\n }\n\n .md\\:mr-0 {\n margin-right: 0rem !important;\n }\n\n .md\\:mr-1 {\n margin-right: 0.25rem !important;\n }\n\n .md\\:mr-2 {\n margin-right: 0.5rem !important;\n }\n\n .md\\:mr-3 {\n margin-right: 1rem !important;\n }\n\n .md\\:mr-4 {\n margin-right: 1.5rem !important;\n }\n\n .md\\:mr-5 {\n margin-right: 2rem !important;\n }\n\n .md\\:mr-6 {\n margin-right: 3rem !important;\n }\n\n .md\\:mr-7 {\n margin-right: 4rem !important;\n }\n\n .md\\:mr-8 {\n margin-right: 5rem !important;\n }\n\n .md\\:-mr-1 {\n margin-right: -0.25rem !important;\n }\n\n .md\\:-mr-2 {\n margin-right: -0.5rem !important;\n }\n\n .md\\:-mr-3 {\n margin-right: -1rem !important;\n }\n\n .md\\:-mr-4 {\n margin-right: -1.5rem !important;\n }\n\n .md\\:-mr-5 {\n margin-right: -2rem !important;\n }\n\n .md\\:-mr-6 {\n margin-right: -3rem !important;\n }\n\n .md\\:-mr-7 {\n margin-right: -4rem !important;\n }\n\n .md\\:-mr-8 {\n margin-right: -5rem !important;\n }\n\n .md\\:mr-auto {\n margin-right: auto !important;\n }\n\n .md\\:ml-0 {\n margin-left: 0rem !important;\n }\n\n .md\\:ml-1 {\n margin-left: 0.25rem !important;\n }\n\n .md\\:ml-2 {\n margin-left: 0.5rem !important;\n }\n\n .md\\:ml-3 {\n margin-left: 1rem !important;\n }\n\n .md\\:ml-4 {\n margin-left: 1.5rem !important;\n }\n\n .md\\:ml-5 {\n margin-left: 2rem !important;\n }\n\n .md\\:ml-6 {\n margin-left: 3rem !important;\n }\n\n .md\\:ml-7 {\n margin-left: 4rem !important;\n }\n\n .md\\:ml-8 {\n margin-left: 5rem !important;\n }\n\n .md\\:-ml-1 {\n margin-left: -0.25rem !important;\n }\n\n .md\\:-ml-2 {\n margin-left: -0.5rem !important;\n }\n\n .md\\:-ml-3 {\n margin-left: -1rem !important;\n }\n\n .md\\:-ml-4 {\n margin-left: -1.5rem !important;\n }\n\n .md\\:-ml-5 {\n margin-left: -2rem !important;\n }\n\n .md\\:-ml-6 {\n margin-left: -3rem !important;\n }\n\n .md\\:-ml-7 {\n margin-left: -4rem !important;\n }\n\n .md\\:-ml-8 {\n margin-left: -5rem !important;\n }\n\n .md\\:ml-auto {\n margin-left: auto !important;\n }\n\n .md\\:mb-0 {\n margin-bottom: 0rem !important;\n }\n\n .md\\:mb-1 {\n margin-bottom: 0.25rem !important;\n }\n\n .md\\:mb-2 {\n margin-bottom: 0.5rem !important;\n }\n\n .md\\:mb-3 {\n margin-bottom: 1rem !important;\n }\n\n .md\\:mb-4 {\n margin-bottom: 1.5rem !important;\n }\n\n .md\\:mb-5 {\n margin-bottom: 2rem !important;\n }\n\n .md\\:mb-6 {\n margin-bottom: 3rem !important;\n }\n\n .md\\:mb-7 {\n margin-bottom: 4rem !important;\n }\n\n .md\\:mb-8 {\n margin-bottom: 5rem !important;\n }\n\n .md\\:-mb-1 {\n margin-bottom: -0.25rem !important;\n }\n\n .md\\:-mb-2 {\n margin-bottom: -0.5rem !important;\n }\n\n .md\\:-mb-3 {\n margin-bottom: -1rem !important;\n }\n\n .md\\:-mb-4 {\n margin-bottom: -1.5rem !important;\n }\n\n .md\\:-mb-5 {\n margin-bottom: -2rem !important;\n }\n\n .md\\:-mb-6 {\n margin-bottom: -3rem !important;\n }\n\n .md\\:-mb-7 {\n margin-bottom: -4rem !important;\n }\n\n .md\\:-mb-8 {\n margin-bottom: -5rem !important;\n }\n\n .md\\:mb-auto {\n margin-bottom: auto !important;\n }\n\n .md\\:mx-0 {\n margin-left: 0rem !important;\n margin-right: 0rem !important;\n }\n\n .md\\:mx-1 {\n margin-left: 0.25rem !important;\n margin-right: 0.25rem !important;\n }\n\n .md\\:mx-2 {\n margin-left: 0.5rem !important;\n margin-right: 0.5rem !important;\n }\n\n .md\\:mx-3 {\n margin-left: 1rem !important;\n margin-right: 1rem !important;\n }\n\n .md\\:mx-4 {\n margin-left: 1.5rem !important;\n margin-right: 1.5rem !important;\n }\n\n .md\\:mx-5 {\n margin-left: 2rem !important;\n margin-right: 2rem !important;\n }\n\n .md\\:mx-6 {\n margin-left: 3rem !important;\n margin-right: 3rem !important;\n }\n\n .md\\:mx-7 {\n margin-left: 4rem !important;\n margin-right: 4rem !important;\n }\n\n .md\\:mx-8 {\n margin-left: 5rem !important;\n margin-right: 5rem !important;\n }\n\n .md\\:-mx-1 {\n margin-left: -0.25rem !important;\n margin-right: -0.25rem !important;\n }\n\n .md\\:-mx-2 {\n margin-left: -0.5rem !important;\n margin-right: -0.5rem !important;\n }\n\n .md\\:-mx-3 {\n margin-left: -1rem !important;\n margin-right: -1rem !important;\n }\n\n .md\\:-mx-4 {\n margin-left: -1.5rem !important;\n margin-right: -1.5rem !important;\n }\n\n .md\\:-mx-5 {\n margin-left: -2rem !important;\n margin-right: -2rem !important;\n }\n\n .md\\:-mx-6 {\n margin-left: -3rem !important;\n margin-right: -3rem !important;\n }\n\n .md\\:-mx-7 {\n margin-left: -4rem !important;\n margin-right: -4rem !important;\n }\n\n .md\\:-mx-8 {\n margin-left: -5rem !important;\n margin-right: -5rem !important;\n }\n\n .md\\:mx-auto {\n margin-left: auto !important;\n margin-right: auto !important;\n }\n\n .md\\:my-0 {\n margin-top: 0rem !important;\n margin-bottom: 0rem !important;\n }\n\n .md\\:my-1 {\n margin-top: 0.25rem !important;\n margin-bottom: 0.25rem !important;\n }\n\n .md\\:my-2 {\n margin-top: 0.5rem !important;\n margin-bottom: 0.5rem !important;\n }\n\n .md\\:my-3 {\n margin-top: 1rem !important;\n margin-bottom: 1rem !important;\n }\n\n .md\\:my-4 {\n margin-top: 1.5rem !important;\n margin-bottom: 1.5rem !important;\n }\n\n .md\\:my-5 {\n margin-top: 2rem !important;\n margin-bottom: 2rem !important;\n }\n\n .md\\:my-6 {\n margin-top: 3rem !important;\n margin-bottom: 3rem !important;\n }\n\n .md\\:my-7 {\n margin-top: 4rem !important;\n margin-bottom: 4rem !important;\n }\n\n .md\\:my-8 {\n margin-top: 5rem !important;\n margin-bottom: 5rem !important;\n }\n\n .md\\:-my-1 {\n margin-top: -0.25rem !important;\n margin-bottom: -0.25rem !important;\n }\n\n .md\\:-my-2 {\n margin-top: -0.5rem !important;\n margin-bottom: -0.5rem !important;\n }\n\n .md\\:-my-3 {\n margin-top: -1rem !important;\n margin-bottom: -1rem !important;\n }\n\n .md\\:-my-4 {\n margin-top: -1.5rem !important;\n margin-bottom: -1.5rem !important;\n }\n\n .md\\:-my-5 {\n margin-top: -2rem !important;\n margin-bottom: -2rem !important;\n }\n\n .md\\:-my-6 {\n margin-top: -3rem !important;\n margin-bottom: -3rem !important;\n }\n\n .md\\:-my-7 {\n margin-top: -4rem !important;\n margin-bottom: -4rem !important;\n }\n\n .md\\:-my-8 {\n margin-top: -5rem !important;\n margin-bottom: -5rem !important;\n }\n\n .md\\:my-auto {\n margin-top: auto !important;\n margin-bottom: auto !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:m-0 {\n margin: 0rem !important;\n }\n\n .lg\\:m-1 {\n margin: 0.25rem !important;\n }\n\n .lg\\:m-2 {\n margin: 0.5rem !important;\n }\n\n .lg\\:m-3 {\n margin: 1rem !important;\n }\n\n .lg\\:m-4 {\n margin: 1.5rem !important;\n }\n\n .lg\\:m-5 {\n margin: 2rem !important;\n }\n\n .lg\\:m-6 {\n margin: 3rem !important;\n }\n\n .lg\\:m-7 {\n margin: 4rem !important;\n }\n\n .lg\\:m-8 {\n margin: 5rem !important;\n }\n\n .lg\\:-m-1 {\n margin: -0.25rem !important;\n }\n\n .lg\\:-m-2 {\n margin: -0.5rem !important;\n }\n\n .lg\\:-m-3 {\n margin: -1rem !important;\n }\n\n .lg\\:-m-4 {\n margin: -1.5rem !important;\n }\n\n .lg\\:-m-5 {\n margin: -2rem !important;\n }\n\n .lg\\:-m-6 {\n margin: -3rem !important;\n }\n\n .lg\\:-m-7 {\n margin: -4rem !important;\n }\n\n .lg\\:-m-8 {\n margin: -5rem !important;\n }\n\n .lg\\:m-auto {\n margin: auto !important;\n }\n\n .lg\\:mt-0 {\n margin-top: 0rem !important;\n }\n\n .lg\\:mt-1 {\n margin-top: 0.25rem !important;\n }\n\n .lg\\:mt-2 {\n margin-top: 0.5rem !important;\n }\n\n .lg\\:mt-3 {\n margin-top: 1rem !important;\n }\n\n .lg\\:mt-4 {\n margin-top: 1.5rem !important;\n }\n\n .lg\\:mt-5 {\n margin-top: 2rem !important;\n }\n\n .lg\\:mt-6 {\n margin-top: 3rem !important;\n }\n\n .lg\\:mt-7 {\n margin-top: 4rem !important;\n }\n\n .lg\\:mt-8 {\n margin-top: 5rem !important;\n }\n\n .lg\\:-mt-1 {\n margin-top: -0.25rem !important;\n }\n\n .lg\\:-mt-2 {\n margin-top: -0.5rem !important;\n }\n\n .lg\\:-mt-3 {\n margin-top: -1rem !important;\n }\n\n .lg\\:-mt-4 {\n margin-top: -1.5rem !important;\n }\n\n .lg\\:-mt-5 {\n margin-top: -2rem !important;\n }\n\n .lg\\:-mt-6 {\n margin-top: -3rem !important;\n }\n\n .lg\\:-mt-7 {\n margin-top: -4rem !important;\n }\n\n .lg\\:-mt-8 {\n margin-top: -5rem !important;\n }\n\n .lg\\:mt-auto {\n margin-top: auto !important;\n }\n\n .lg\\:mr-0 {\n margin-right: 0rem !important;\n }\n\n .lg\\:mr-1 {\n margin-right: 0.25rem !important;\n }\n\n .lg\\:mr-2 {\n margin-right: 0.5rem !important;\n }\n\n .lg\\:mr-3 {\n margin-right: 1rem !important;\n }\n\n .lg\\:mr-4 {\n margin-right: 1.5rem !important;\n }\n\n .lg\\:mr-5 {\n margin-right: 2rem !important;\n }\n\n .lg\\:mr-6 {\n margin-right: 3rem !important;\n }\n\n .lg\\:mr-7 {\n margin-right: 4rem !important;\n }\n\n .lg\\:mr-8 {\n margin-right: 5rem !important;\n }\n\n .lg\\:-mr-1 {\n margin-right: -0.25rem !important;\n }\n\n .lg\\:-mr-2 {\n margin-right: -0.5rem !important;\n }\n\n .lg\\:-mr-3 {\n margin-right: -1rem !important;\n }\n\n .lg\\:-mr-4 {\n margin-right: -1.5rem !important;\n }\n\n .lg\\:-mr-5 {\n margin-right: -2rem !important;\n }\n\n .lg\\:-mr-6 {\n margin-right: -3rem !important;\n }\n\n .lg\\:-mr-7 {\n margin-right: -4rem !important;\n }\n\n .lg\\:-mr-8 {\n margin-right: -5rem !important;\n }\n\n .lg\\:mr-auto {\n margin-right: auto !important;\n }\n\n .lg\\:ml-0 {\n margin-left: 0rem !important;\n }\n\n .lg\\:ml-1 {\n margin-left: 0.25rem !important;\n }\n\n .lg\\:ml-2 {\n margin-left: 0.5rem !important;\n }\n\n .lg\\:ml-3 {\n margin-left: 1rem !important;\n }\n\n .lg\\:ml-4 {\n margin-left: 1.5rem !important;\n }\n\n .lg\\:ml-5 {\n margin-left: 2rem !important;\n }\n\n .lg\\:ml-6 {\n margin-left: 3rem !important;\n }\n\n .lg\\:ml-7 {\n margin-left: 4rem !important;\n }\n\n .lg\\:ml-8 {\n margin-left: 5rem !important;\n }\n\n .lg\\:-ml-1 {\n margin-left: -0.25rem !important;\n }\n\n .lg\\:-ml-2 {\n margin-left: -0.5rem !important;\n }\n\n .lg\\:-ml-3 {\n margin-left: -1rem !important;\n }\n\n .lg\\:-ml-4 {\n margin-left: -1.5rem !important;\n }\n\n .lg\\:-ml-5 {\n margin-left: -2rem !important;\n }\n\n .lg\\:-ml-6 {\n margin-left: -3rem !important;\n }\n\n .lg\\:-ml-7 {\n margin-left: -4rem !important;\n }\n\n .lg\\:-ml-8 {\n margin-left: -5rem !important;\n }\n\n .lg\\:ml-auto {\n margin-left: auto !important;\n }\n\n .lg\\:mb-0 {\n margin-bottom: 0rem !important;\n }\n\n .lg\\:mb-1 {\n margin-bottom: 0.25rem !important;\n }\n\n .lg\\:mb-2 {\n margin-bottom: 0.5rem !important;\n }\n\n .lg\\:mb-3 {\n margin-bottom: 1rem !important;\n }\n\n .lg\\:mb-4 {\n margin-bottom: 1.5rem !important;\n }\n\n .lg\\:mb-5 {\n margin-bottom: 2rem !important;\n }\n\n .lg\\:mb-6 {\n margin-bottom: 3rem !important;\n }\n\n .lg\\:mb-7 {\n margin-bottom: 4rem !important;\n }\n\n .lg\\:mb-8 {\n margin-bottom: 5rem !important;\n }\n\n .lg\\:-mb-1 {\n margin-bottom: -0.25rem !important;\n }\n\n .lg\\:-mb-2 {\n margin-bottom: -0.5rem !important;\n }\n\n .lg\\:-mb-3 {\n margin-bottom: -1rem !important;\n }\n\n .lg\\:-mb-4 {\n margin-bottom: -1.5rem !important;\n }\n\n .lg\\:-mb-5 {\n margin-bottom: -2rem !important;\n }\n\n .lg\\:-mb-6 {\n margin-bottom: -3rem !important;\n }\n\n .lg\\:-mb-7 {\n margin-bottom: -4rem !important;\n }\n\n .lg\\:-mb-8 {\n margin-bottom: -5rem !important;\n }\n\n .lg\\:mb-auto {\n margin-bottom: auto !important;\n }\n\n .lg\\:mx-0 {\n margin-left: 0rem !important;\n margin-right: 0rem !important;\n }\n\n .lg\\:mx-1 {\n margin-left: 0.25rem !important;\n margin-right: 0.25rem !important;\n }\n\n .lg\\:mx-2 {\n margin-left: 0.5rem !important;\n margin-right: 0.5rem !important;\n }\n\n .lg\\:mx-3 {\n margin-left: 1rem !important;\n margin-right: 1rem !important;\n }\n\n .lg\\:mx-4 {\n margin-left: 1.5rem !important;\n margin-right: 1.5rem !important;\n }\n\n .lg\\:mx-5 {\n margin-left: 2rem !important;\n margin-right: 2rem !important;\n }\n\n .lg\\:mx-6 {\n margin-left: 3rem !important;\n margin-right: 3rem !important;\n }\n\n .lg\\:mx-7 {\n margin-left: 4rem !important;\n margin-right: 4rem !important;\n }\n\n .lg\\:mx-8 {\n margin-left: 5rem !important;\n margin-right: 5rem !important;\n }\n\n .lg\\:-mx-1 {\n margin-left: -0.25rem !important;\n margin-right: -0.25rem !important;\n }\n\n .lg\\:-mx-2 {\n margin-left: -0.5rem !important;\n margin-right: -0.5rem !important;\n }\n\n .lg\\:-mx-3 {\n margin-left: -1rem !important;\n margin-right: -1rem !important;\n }\n\n .lg\\:-mx-4 {\n margin-left: -1.5rem !important;\n margin-right: -1.5rem !important;\n }\n\n .lg\\:-mx-5 {\n margin-left: -2rem !important;\n margin-right: -2rem !important;\n }\n\n .lg\\:-mx-6 {\n margin-left: -3rem !important;\n margin-right: -3rem !important;\n }\n\n .lg\\:-mx-7 {\n margin-left: -4rem !important;\n margin-right: -4rem !important;\n }\n\n .lg\\:-mx-8 {\n margin-left: -5rem !important;\n margin-right: -5rem !important;\n }\n\n .lg\\:mx-auto {\n margin-left: auto !important;\n margin-right: auto !important;\n }\n\n .lg\\:my-0 {\n margin-top: 0rem !important;\n margin-bottom: 0rem !important;\n }\n\n .lg\\:my-1 {\n margin-top: 0.25rem !important;\n margin-bottom: 0.25rem !important;\n }\n\n .lg\\:my-2 {\n margin-top: 0.5rem !important;\n margin-bottom: 0.5rem !important;\n }\n\n .lg\\:my-3 {\n margin-top: 1rem !important;\n margin-bottom: 1rem !important;\n }\n\n .lg\\:my-4 {\n margin-top: 1.5rem !important;\n margin-bottom: 1.5rem !important;\n }\n\n .lg\\:my-5 {\n margin-top: 2rem !important;\n margin-bottom: 2rem !important;\n }\n\n .lg\\:my-6 {\n margin-top: 3rem !important;\n margin-bottom: 3rem !important;\n }\n\n .lg\\:my-7 {\n margin-top: 4rem !important;\n margin-bottom: 4rem !important;\n }\n\n .lg\\:my-8 {\n margin-top: 5rem !important;\n margin-bottom: 5rem !important;\n }\n\n .lg\\:-my-1 {\n margin-top: -0.25rem !important;\n margin-bottom: -0.25rem !important;\n }\n\n .lg\\:-my-2 {\n margin-top: -0.5rem !important;\n margin-bottom: -0.5rem !important;\n }\n\n .lg\\:-my-3 {\n margin-top: -1rem !important;\n margin-bottom: -1rem !important;\n }\n\n .lg\\:-my-4 {\n margin-top: -1.5rem !important;\n margin-bottom: -1.5rem !important;\n }\n\n .lg\\:-my-5 {\n margin-top: -2rem !important;\n margin-bottom: -2rem !important;\n }\n\n .lg\\:-my-6 {\n margin-top: -3rem !important;\n margin-bottom: -3rem !important;\n }\n\n .lg\\:-my-7 {\n margin-top: -4rem !important;\n margin-bottom: -4rem !important;\n }\n\n .lg\\:-my-8 {\n margin-top: -5rem !important;\n margin-bottom: -5rem !important;\n }\n\n .lg\\:my-auto {\n margin-top: auto !important;\n margin-bottom: auto !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:m-0 {\n margin: 0rem !important;\n }\n\n .xl\\:m-1 {\n margin: 0.25rem !important;\n }\n\n .xl\\:m-2 {\n margin: 0.5rem !important;\n }\n\n .xl\\:m-3 {\n margin: 1rem !important;\n }\n\n .xl\\:m-4 {\n margin: 1.5rem !important;\n }\n\n .xl\\:m-5 {\n margin: 2rem !important;\n }\n\n .xl\\:m-6 {\n margin: 3rem !important;\n }\n\n .xl\\:m-7 {\n margin: 4rem !important;\n }\n\n .xl\\:m-8 {\n margin: 5rem !important;\n }\n\n .xl\\:-m-1 {\n margin: -0.25rem !important;\n }\n\n .xl\\:-m-2 {\n margin: -0.5rem !important;\n }\n\n .xl\\:-m-3 {\n margin: -1rem !important;\n }\n\n .xl\\:-m-4 {\n margin: -1.5rem !important;\n }\n\n .xl\\:-m-5 {\n margin: -2rem !important;\n }\n\n .xl\\:-m-6 {\n margin: -3rem !important;\n }\n\n .xl\\:-m-7 {\n margin: -4rem !important;\n }\n\n .xl\\:-m-8 {\n margin: -5rem !important;\n }\n\n .xl\\:m-auto {\n margin: auto !important;\n }\n\n .xl\\:mt-0 {\n margin-top: 0rem !important;\n }\n\n .xl\\:mt-1 {\n margin-top: 0.25rem !important;\n }\n\n .xl\\:mt-2 {\n margin-top: 0.5rem !important;\n }\n\n .xl\\:mt-3 {\n margin-top: 1rem !important;\n }\n\n .xl\\:mt-4 {\n margin-top: 1.5rem !important;\n }\n\n .xl\\:mt-5 {\n margin-top: 2rem !important;\n }\n\n .xl\\:mt-6 {\n margin-top: 3rem !important;\n }\n\n .xl\\:mt-7 {\n margin-top: 4rem !important;\n }\n\n .xl\\:mt-8 {\n margin-top: 5rem !important;\n }\n\n .xl\\:-mt-1 {\n margin-top: -0.25rem !important;\n }\n\n .xl\\:-mt-2 {\n margin-top: -0.5rem !important;\n }\n\n .xl\\:-mt-3 {\n margin-top: -1rem !important;\n }\n\n .xl\\:-mt-4 {\n margin-top: -1.5rem !important;\n }\n\n .xl\\:-mt-5 {\n margin-top: -2rem !important;\n }\n\n .xl\\:-mt-6 {\n margin-top: -3rem !important;\n }\n\n .xl\\:-mt-7 {\n margin-top: -4rem !important;\n }\n\n .xl\\:-mt-8 {\n margin-top: -5rem !important;\n }\n\n .xl\\:mt-auto {\n margin-top: auto !important;\n }\n\n .xl\\:mr-0 {\n margin-right: 0rem !important;\n }\n\n .xl\\:mr-1 {\n margin-right: 0.25rem !important;\n }\n\n .xl\\:mr-2 {\n margin-right: 0.5rem !important;\n }\n\n .xl\\:mr-3 {\n margin-right: 1rem !important;\n }\n\n .xl\\:mr-4 {\n margin-right: 1.5rem !important;\n }\n\n .xl\\:mr-5 {\n margin-right: 2rem !important;\n }\n\n .xl\\:mr-6 {\n margin-right: 3rem !important;\n }\n\n .xl\\:mr-7 {\n margin-right: 4rem !important;\n }\n\n .xl\\:mr-8 {\n margin-right: 5rem !important;\n }\n\n .xl\\:-mr-1 {\n margin-right: -0.25rem !important;\n }\n\n .xl\\:-mr-2 {\n margin-right: -0.5rem !important;\n }\n\n .xl\\:-mr-3 {\n margin-right: -1rem !important;\n }\n\n .xl\\:-mr-4 {\n margin-right: -1.5rem !important;\n }\n\n .xl\\:-mr-5 {\n margin-right: -2rem !important;\n }\n\n .xl\\:-mr-6 {\n margin-right: -3rem !important;\n }\n\n .xl\\:-mr-7 {\n margin-right: -4rem !important;\n }\n\n .xl\\:-mr-8 {\n margin-right: -5rem !important;\n }\n\n .xl\\:mr-auto {\n margin-right: auto !important;\n }\n\n .xl\\:ml-0 {\n margin-left: 0rem !important;\n }\n\n .xl\\:ml-1 {\n margin-left: 0.25rem !important;\n }\n\n .xl\\:ml-2 {\n margin-left: 0.5rem !important;\n }\n\n .xl\\:ml-3 {\n margin-left: 1rem !important;\n }\n\n .xl\\:ml-4 {\n margin-left: 1.5rem !important;\n }\n\n .xl\\:ml-5 {\n margin-left: 2rem !important;\n }\n\n .xl\\:ml-6 {\n margin-left: 3rem !important;\n }\n\n .xl\\:ml-7 {\n margin-left: 4rem !important;\n }\n\n .xl\\:ml-8 {\n margin-left: 5rem !important;\n }\n\n .xl\\:-ml-1 {\n margin-left: -0.25rem !important;\n }\n\n .xl\\:-ml-2 {\n margin-left: -0.5rem !important;\n }\n\n .xl\\:-ml-3 {\n margin-left: -1rem !important;\n }\n\n .xl\\:-ml-4 {\n margin-left: -1.5rem !important;\n }\n\n .xl\\:-ml-5 {\n margin-left: -2rem !important;\n }\n\n .xl\\:-ml-6 {\n margin-left: -3rem !important;\n }\n\n .xl\\:-ml-7 {\n margin-left: -4rem !important;\n }\n\n .xl\\:-ml-8 {\n margin-left: -5rem !important;\n }\n\n .xl\\:ml-auto {\n margin-left: auto !important;\n }\n\n .xl\\:mb-0 {\n margin-bottom: 0rem !important;\n }\n\n .xl\\:mb-1 {\n margin-bottom: 0.25rem !important;\n }\n\n .xl\\:mb-2 {\n margin-bottom: 0.5rem !important;\n }\n\n .xl\\:mb-3 {\n margin-bottom: 1rem !important;\n }\n\n .xl\\:mb-4 {\n margin-bottom: 1.5rem !important;\n }\n\n .xl\\:mb-5 {\n margin-bottom: 2rem !important;\n }\n\n .xl\\:mb-6 {\n margin-bottom: 3rem !important;\n }\n\n .xl\\:mb-7 {\n margin-bottom: 4rem !important;\n }\n\n .xl\\:mb-8 {\n margin-bottom: 5rem !important;\n }\n\n .xl\\:-mb-1 {\n margin-bottom: -0.25rem !important;\n }\n\n .xl\\:-mb-2 {\n margin-bottom: -0.5rem !important;\n }\n\n .xl\\:-mb-3 {\n margin-bottom: -1rem !important;\n }\n\n .xl\\:-mb-4 {\n margin-bottom: -1.5rem !important;\n }\n\n .xl\\:-mb-5 {\n margin-bottom: -2rem !important;\n }\n\n .xl\\:-mb-6 {\n margin-bottom: -3rem !important;\n }\n\n .xl\\:-mb-7 {\n margin-bottom: -4rem !important;\n }\n\n .xl\\:-mb-8 {\n margin-bottom: -5rem !important;\n }\n\n .xl\\:mb-auto {\n margin-bottom: auto !important;\n }\n\n .xl\\:mx-0 {\n margin-left: 0rem !important;\n margin-right: 0rem !important;\n }\n\n .xl\\:mx-1 {\n margin-left: 0.25rem !important;\n margin-right: 0.25rem !important;\n }\n\n .xl\\:mx-2 {\n margin-left: 0.5rem !important;\n margin-right: 0.5rem !important;\n }\n\n .xl\\:mx-3 {\n margin-left: 1rem !important;\n margin-right: 1rem !important;\n }\n\n .xl\\:mx-4 {\n margin-left: 1.5rem !important;\n margin-right: 1.5rem !important;\n }\n\n .xl\\:mx-5 {\n margin-left: 2rem !important;\n margin-right: 2rem !important;\n }\n\n .xl\\:mx-6 {\n margin-left: 3rem !important;\n margin-right: 3rem !important;\n }\n\n .xl\\:mx-7 {\n margin-left: 4rem !important;\n margin-right: 4rem !important;\n }\n\n .xl\\:mx-8 {\n margin-left: 5rem !important;\n margin-right: 5rem !important;\n }\n\n .xl\\:-mx-1 {\n margin-left: -0.25rem !important;\n margin-right: -0.25rem !important;\n }\n\n .xl\\:-mx-2 {\n margin-left: -0.5rem !important;\n margin-right: -0.5rem !important;\n }\n\n .xl\\:-mx-3 {\n margin-left: -1rem !important;\n margin-right: -1rem !important;\n }\n\n .xl\\:-mx-4 {\n margin-left: -1.5rem !important;\n margin-right: -1.5rem !important;\n }\n\n .xl\\:-mx-5 {\n margin-left: -2rem !important;\n margin-right: -2rem !important;\n }\n\n .xl\\:-mx-6 {\n margin-left: -3rem !important;\n margin-right: -3rem !important;\n }\n\n .xl\\:-mx-7 {\n margin-left: -4rem !important;\n margin-right: -4rem !important;\n }\n\n .xl\\:-mx-8 {\n margin-left: -5rem !important;\n margin-right: -5rem !important;\n }\n\n .xl\\:mx-auto {\n margin-left: auto !important;\n margin-right: auto !important;\n }\n\n .xl\\:my-0 {\n margin-top: 0rem !important;\n margin-bottom: 0rem !important;\n }\n\n .xl\\:my-1 {\n margin-top: 0.25rem !important;\n margin-bottom: 0.25rem !important;\n }\n\n .xl\\:my-2 {\n margin-top: 0.5rem !important;\n margin-bottom: 0.5rem !important;\n }\n\n .xl\\:my-3 {\n margin-top: 1rem !important;\n margin-bottom: 1rem !important;\n }\n\n .xl\\:my-4 {\n margin-top: 1.5rem !important;\n margin-bottom: 1.5rem !important;\n }\n\n .xl\\:my-5 {\n margin-top: 2rem !important;\n margin-bottom: 2rem !important;\n }\n\n .xl\\:my-6 {\n margin-top: 3rem !important;\n margin-bottom: 3rem !important;\n }\n\n .xl\\:my-7 {\n margin-top: 4rem !important;\n margin-bottom: 4rem !important;\n }\n\n .xl\\:my-8 {\n margin-top: 5rem !important;\n margin-bottom: 5rem !important;\n }\n\n .xl\\:-my-1 {\n margin-top: -0.25rem !important;\n margin-bottom: -0.25rem !important;\n }\n\n .xl\\:-my-2 {\n margin-top: -0.5rem !important;\n margin-bottom: -0.5rem !important;\n }\n\n .xl\\:-my-3 {\n margin-top: -1rem !important;\n margin-bottom: -1rem !important;\n }\n\n .xl\\:-my-4 {\n margin-top: -1.5rem !important;\n margin-bottom: -1.5rem !important;\n }\n\n .xl\\:-my-5 {\n margin-top: -2rem !important;\n margin-bottom: -2rem !important;\n }\n\n .xl\\:-my-6 {\n margin-top: -3rem !important;\n margin-bottom: -3rem !important;\n }\n\n .xl\\:-my-7 {\n margin-top: -4rem !important;\n margin-bottom: -4rem !important;\n }\n\n .xl\\:-my-8 {\n margin-top: -5rem !important;\n margin-bottom: -5rem !important;\n }\n\n .xl\\:my-auto {\n margin-top: auto !important;\n margin-bottom: auto !important;\n }\n}\n.shadow-none {\n box-shadow: none !important;\n}\n\n.shadow-1 {\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08) !important;\n}\n\n.shadow-2 {\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.03), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 2px 6px rgba(0, 0, 0, 0.12) !important;\n}\n\n.shadow-3 {\n box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.08), 0px 3px 4px rgba(0, 0, 0, 0.1), 0px 1px 4px -1px rgba(0, 0, 0, 0.1) !important;\n}\n\n.shadow-4 {\n box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.12), 0px 4px 5px rgba(0, 0, 0, 0.14), 0px 2px 4px -1px rgba(0, 0, 0, 0.2) !important;\n}\n\n.shadow-5 {\n box-shadow: 0px 1px 7px rgba(0, 0, 0, 0.1), 0px 4px 5px -2px rgba(0, 0, 0, 0.12), 0px 10px 15px -5px rgba(0, 0, 0, 0.2) !important;\n}\n\n.shadow-6 {\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.06), 0px 7px 9px rgba(0, 0, 0, 0.12), 0px 20px 25px -8px rgba(0, 0, 0, 0.18) !important;\n}\n\n.shadow-7 {\n box-shadow: 0px 7px 30px rgba(0, 0, 0, 0.08), 0px 22px 30px 2px rgba(0, 0, 0, 0.15), 0px 8px 10px rgba(0, 0, 0, 0.15) !important;\n}\n\n.shadow-8 {\n box-shadow: 0px 9px 46px 8px rgba(0, 0, 0, 0.12), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 11px 15px rgba(0, 0, 0, 0.2) !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:shadow-none {\n box-shadow: none !important;\n }\n .sm\\:shadow-1 {\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08) !important;\n }\n .sm\\:shadow-2 {\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.03), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 2px 6px rgba(0, 0, 0, 0.12) !important;\n }\n .sm\\:shadow-3 {\n box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.08), 0px 3px 4px rgba(0, 0, 0, 0.1), 0px 1px 4px -1px rgba(0, 0, 0, 0.1) !important;\n }\n .sm\\:shadow-4 {\n box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.12), 0px 4px 5px rgba(0, 0, 0, 0.14), 0px 2px 4px -1px rgba(0, 0, 0, 0.2) !important;\n }\n .sm\\:shadow-5 {\n box-shadow: 0px 1px 7px rgba(0, 0, 0, 0.1), 0px 4px 5px -2px rgba(0, 0, 0, 0.12), 0px 10px 15px -5px rgba(0, 0, 0, 0.2) !important;\n }\n .sm\\:shadow-6 {\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.06), 0px 7px 9px rgba(0, 0, 0, 0.12), 0px 20px 25px -8px rgba(0, 0, 0, 0.18) !important;\n }\n .sm\\:shadow-7 {\n box-shadow: 0px 7px 30px rgba(0, 0, 0, 0.08), 0px 22px 30px 2px rgba(0, 0, 0, 0.15), 0px 8px 10px rgba(0, 0, 0, 0.15) !important;\n }\n .sm\\:shadow-8 {\n box-shadow: 0px 9px 46px 8px rgba(0, 0, 0, 0.12), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 11px 15px rgba(0, 0, 0, 0.2) !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:shadow-none {\n box-shadow: none !important;\n }\n .md\\:shadow-1 {\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08) !important;\n }\n .md\\:shadow-2 {\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.03), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 2px 6px rgba(0, 0, 0, 0.12) !important;\n }\n .md\\:shadow-3 {\n box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.08), 0px 3px 4px rgba(0, 0, 0, 0.1), 0px 1px 4px -1px rgba(0, 0, 0, 0.1) !important;\n }\n .md\\:shadow-4 {\n box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.12), 0px 4px 5px rgba(0, 0, 0, 0.14), 0px 2px 4px -1px rgba(0, 0, 0, 0.2) !important;\n }\n .md\\:shadow-5 {\n box-shadow: 0px 1px 7px rgba(0, 0, 0, 0.1), 0px 4px 5px -2px rgba(0, 0, 0, 0.12), 0px 10px 15px -5px rgba(0, 0, 0, 0.2) !important;\n }\n .md\\:shadow-6 {\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.06), 0px 7px 9px rgba(0, 0, 0, 0.12), 0px 20px 25px -8px rgba(0, 0, 0, 0.18) !important;\n }\n .md\\:shadow-7 {\n box-shadow: 0px 7px 30px rgba(0, 0, 0, 0.08), 0px 22px 30px 2px rgba(0, 0, 0, 0.15), 0px 8px 10px rgba(0, 0, 0, 0.15) !important;\n }\n .md\\:shadow-8 {\n box-shadow: 0px 9px 46px 8px rgba(0, 0, 0, 0.12), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 11px 15px rgba(0, 0, 0, 0.2) !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:shadow-none {\n box-shadow: none !important;\n }\n .lg\\:shadow-1 {\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08) !important;\n }\n .lg\\:shadow-2 {\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.03), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 2px 6px rgba(0, 0, 0, 0.12) !important;\n }\n .lg\\:shadow-3 {\n box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.08), 0px 3px 4px rgba(0, 0, 0, 0.1), 0px 1px 4px -1px rgba(0, 0, 0, 0.1) !important;\n }\n .lg\\:shadow-4 {\n box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.12), 0px 4px 5px rgba(0, 0, 0, 0.14), 0px 2px 4px -1px rgba(0, 0, 0, 0.2) !important;\n }\n .lg\\:shadow-5 {\n box-shadow: 0px 1px 7px rgba(0, 0, 0, 0.1), 0px 4px 5px -2px rgba(0, 0, 0, 0.12), 0px 10px 15px -5px rgba(0, 0, 0, 0.2) !important;\n }\n .lg\\:shadow-6 {\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.06), 0px 7px 9px rgba(0, 0, 0, 0.12), 0px 20px 25px -8px rgba(0, 0, 0, 0.18) !important;\n }\n .lg\\:shadow-7 {\n box-shadow: 0px 7px 30px rgba(0, 0, 0, 0.08), 0px 22px 30px 2px rgba(0, 0, 0, 0.15), 0px 8px 10px rgba(0, 0, 0, 0.15) !important;\n }\n .lg\\:shadow-8 {\n box-shadow: 0px 9px 46px 8px rgba(0, 0, 0, 0.12), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 11px 15px rgba(0, 0, 0, 0.2) !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:shadow-none {\n box-shadow: none !important;\n }\n .xl\\:shadow-1 {\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08) !important;\n }\n .xl\\:shadow-2 {\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.03), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 2px 6px rgba(0, 0, 0, 0.12) !important;\n }\n .xl\\:shadow-3 {\n box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.08), 0px 3px 4px rgba(0, 0, 0, 0.1), 0px 1px 4px -1px rgba(0, 0, 0, 0.1) !important;\n }\n .xl\\:shadow-4 {\n box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.12), 0px 4px 5px rgba(0, 0, 0, 0.14), 0px 2px 4px -1px rgba(0, 0, 0, 0.2) !important;\n }\n .xl\\:shadow-5 {\n box-shadow: 0px 1px 7px rgba(0, 0, 0, 0.1), 0px 4px 5px -2px rgba(0, 0, 0, 0.12), 0px 10px 15px -5px rgba(0, 0, 0, 0.2) !important;\n }\n .xl\\:shadow-6 {\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.06), 0px 7px 9px rgba(0, 0, 0, 0.12), 0px 20px 25px -8px rgba(0, 0, 0, 0.18) !important;\n }\n .xl\\:shadow-7 {\n box-shadow: 0px 7px 30px rgba(0, 0, 0, 0.08), 0px 22px 30px 2px rgba(0, 0, 0, 0.15), 0px 8px 10px rgba(0, 0, 0, 0.15) !important;\n }\n .xl\\:shadow-8 {\n box-shadow: 0px 9px 46px 8px rgba(0, 0, 0, 0.12), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 11px 15px rgba(0, 0, 0, 0.2) !important;\n }\n}\n.border-none {\n border-width: 0px !important;\n border-style: none;\n}\n\n.border-1 {\n border-width: 1px !important;\n border-style: solid;\n}\n\n.border-2 {\n border-width: 2px !important;\n border-style: solid;\n}\n\n.border-3 {\n border-width: 3px !important;\n border-style: solid;\n}\n\n.border-top-none {\n border-top-width: 0px !important;\n border-top-style: none;\n}\n\n.border-top-1 {\n border-top-width: 1px !important;\n border-top-style: solid;\n}\n\n.border-top-2 {\n border-top-width: 2px !important;\n border-top-style: solid;\n}\n\n.border-top-3 {\n border-top-width: 3px !important;\n border-top-style: solid;\n}\n\n.border-right-none {\n border-right-width: 0px !important;\n border-right-style: none;\n}\n\n.border-right-1 {\n border-right-width: 1px !important;\n border-right-style: solid;\n}\n\n.border-right-2 {\n border-right-width: 2px !important;\n border-right-style: solid;\n}\n\n.border-right-3 {\n border-right-width: 3px !important;\n border-right-style: solid;\n}\n\n.border-left-none {\n border-left-width: 0px !important;\n border-left-style: none;\n}\n\n.border-left-1 {\n border-left-width: 1px !important;\n border-left-style: solid;\n}\n\n.border-left-2 {\n border-left-width: 2px !important;\n border-left-style: solid;\n}\n\n.border-left-3 {\n border-left-width: 3px !important;\n border-left-style: solid;\n}\n\n.border-bottom-none {\n border-bottom-width: 0px !important;\n border-bottom-style: none;\n}\n\n.border-bottom-1 {\n border-bottom-width: 1px !important;\n border-bottom-style: solid;\n}\n\n.border-bottom-2 {\n border-bottom-width: 2px !important;\n border-bottom-style: solid;\n}\n\n.border-bottom-3 {\n border-bottom-width: 3px !important;\n border-bottom-style: solid;\n}\n\n.border-x-none {\n border-left-width: 0px !important;\n border-left-style: none;\n border-right-width: 0px !important;\n border-right-style: none;\n}\n\n.border-x-1 {\n border-left-width: 1px !important;\n border-left-style: solid;\n border-right-width: 1px !important;\n border-right-style: solid;\n}\n\n.border-x-2 {\n border-left-width: 2px !important;\n border-left-style: solid;\n border-right-width: 2px !important;\n border-right-style: solid;\n}\n\n.border-x-3 {\n border-left-width: 3px !important;\n border-left-style: solid;\n border-right-width: 3px !important;\n border-right-style: solid;\n}\n\n.border-y-none {\n border-top-width: 0px !important;\n border-top-style: none;\n border-bottom-width: 0px !important;\n border-bottom-style: none;\n}\n\n.border-y-1 {\n border-top-width: 1px !important;\n border-top-style: solid;\n border-bottom-width: 1px !important;\n border-bottom-style: solid;\n}\n\n.border-y-2 {\n border-top-width: 2px !important;\n border-top-style: solid;\n border-bottom-width: 2px !important;\n border-bottom-style: solid;\n}\n\n.border-y-3 {\n border-top-width: 3px !important;\n border-top-style: solid;\n border-bottom-width: 3px !important;\n border-bottom-style: solid;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:border-none {\n border-width: 0px !important;\n border-style: none;\n }\n .sm\\:border-1 {\n border-width: 1px !important;\n border-style: solid;\n }\n .sm\\:border-2 {\n border-width: 2px !important;\n border-style: solid;\n }\n .sm\\:border-3 {\n border-width: 3px !important;\n border-style: solid;\n }\n .sm\\:border-top-none {\n border-top-width: 0px !important;\n border-top-style: none;\n }\n .sm\\:border-top-1 {\n border-top-width: 1px !important;\n border-top-style: solid;\n }\n .sm\\:border-top-2 {\n border-top-width: 2px !important;\n border-top-style: solid;\n }\n .sm\\:border-top-3 {\n border-top-width: 3px !important;\n border-top-style: solid;\n }\n .sm\\:border-right-none {\n border-right-width: 0px !important;\n border-right-style: none;\n }\n .sm\\:border-right-1 {\n border-right-width: 1px !important;\n border-right-style: solid;\n }\n .sm\\:border-right-2 {\n border-right-width: 2px !important;\n border-right-style: solid;\n }\n .sm\\:border-right-3 {\n border-right-width: 3px !important;\n border-right-style: solid;\n }\n .sm\\:border-left-none {\n border-left-width: 0px !important;\n border-left-style: none;\n }\n .sm\\:border-left-1 {\n border-left-width: 1px !important;\n border-left-style: solid;\n }\n .sm\\:border-left-2 {\n border-left-width: 2px !important;\n border-left-style: solid;\n }\n .sm\\:border-left-3 {\n border-left-width: 3px !important;\n border-left-style: solid;\n }\n .sm\\:border-bottom-none {\n border-bottom-width: 0px !important;\n border-bottom-style: none;\n }\n .sm\\:border-bottom-1 {\n border-bottom-width: 1px !important;\n border-bottom-style: solid;\n }\n .sm\\:border-bottom-2 {\n border-bottom-width: 2px !important;\n border-bottom-style: solid;\n }\n .sm\\:border-bottom-3 {\n border-bottom-width: 3px !important;\n border-bottom-style: solid;\n }\n .sm\\:border-x-none {\n border-left-width: 0px !important;\n border-left-style: none;\n border-right-width: 0px !important;\n border-right-style: none;\n }\n .sm\\:border-x-1 {\n border-left-width: 1px !important;\n border-left-style: solid;\n border-right-width: 1px !important;\n border-right-style: solid;\n }\n .sm\\:border-x-2 {\n border-left-width: 2px !important;\n border-left-style: solid;\n border-right-width: 2px !important;\n border-right-style: solid;\n }\n .sm\\:border-x-3 {\n border-left-width: 3px !important;\n border-left-style: solid;\n border-right-width: 3px !important;\n border-right-style: solid;\n }\n .sm\\:border-y-none {\n border-top-width: 0px !important;\n border-top-style: none;\n border-bottom-width: 0px !important;\n border-bottom-style: none;\n }\n .sm\\:border-y-1 {\n border-top-width: 1px !important;\n border-top-style: solid;\n border-bottom-width: 1px !important;\n border-bottom-style: solid;\n }\n .sm\\:border-y-2 {\n border-top-width: 2px !important;\n border-top-style: solid;\n border-bottom-width: 2px !important;\n border-bottom-style: solid;\n }\n .sm\\:border-y-3 {\n border-top-width: 3px !important;\n border-top-style: solid;\n border-bottom-width: 3px !important;\n border-bottom-style: solid;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:border-none {\n border-width: 0px !important;\n border-style: none;\n }\n .md\\:border-1 {\n border-width: 1px !important;\n border-style: solid;\n }\n .md\\:border-2 {\n border-width: 2px !important;\n border-style: solid;\n }\n .md\\:border-3 {\n border-width: 3px !important;\n border-style: solid;\n }\n .md\\:border-top-none {\n border-top-width: 0px !important;\n border-top-style: none;\n }\n .md\\:border-top-1 {\n border-top-width: 1px !important;\n border-top-style: solid;\n }\n .md\\:border-top-2 {\n border-top-width: 2px !important;\n border-top-style: solid;\n }\n .md\\:border-top-3 {\n border-top-width: 3px !important;\n border-top-style: solid;\n }\n .md\\:border-right-none {\n border-right-width: 0px !important;\n border-right-style: none;\n }\n .md\\:border-right-1 {\n border-right-width: 1px !important;\n border-right-style: solid;\n }\n .md\\:border-right-2 {\n border-right-width: 2px !important;\n border-right-style: solid;\n }\n .md\\:border-right-3 {\n border-right-width: 3px !important;\n border-right-style: solid;\n }\n .md\\:border-left-none {\n border-left-width: 0px !important;\n border-left-style: none;\n }\n .md\\:border-left-1 {\n border-left-width: 1px !important;\n border-left-style: solid;\n }\n .md\\:border-left-2 {\n border-left-width: 2px !important;\n border-left-style: solid;\n }\n .md\\:border-left-3 {\n border-left-width: 3px !important;\n border-left-style: solid;\n }\n .md\\:border-bottom-none {\n border-bottom-width: 0px !important;\n border-bottom-style: none;\n }\n .md\\:border-bottom-1 {\n border-bottom-width: 1px !important;\n border-bottom-style: solid;\n }\n .md\\:border-bottom-2 {\n border-bottom-width: 2px !important;\n border-bottom-style: solid;\n }\n .md\\:border-bottom-3 {\n border-bottom-width: 3px !important;\n border-bottom-style: solid;\n }\n .md\\:border-x-none {\n border-left-width: 0px !important;\n border-left-style: none;\n border-right-width: 0px !important;\n border-right-style: none;\n }\n .md\\:border-x-1 {\n border-left-width: 1px !important;\n border-left-style: solid;\n border-right-width: 1px !important;\n border-right-style: solid;\n }\n .md\\:border-x-2 {\n border-left-width: 2px !important;\n border-left-style: solid;\n border-right-width: 2px !important;\n border-right-style: solid;\n }\n .md\\:border-x-3 {\n border-left-width: 3px !important;\n border-left-style: solid;\n border-right-width: 3px !important;\n border-right-style: solid;\n }\n .md\\:border-y-none {\n border-top-width: 0px !important;\n border-top-style: none;\n border-bottom-width: 0px !important;\n border-bottom-style: none;\n }\n .md\\:border-y-1 {\n border-top-width: 1px !important;\n border-top-style: solid;\n border-bottom-width: 1px !important;\n border-bottom-style: solid;\n }\n .md\\:border-y-2 {\n border-top-width: 2px !important;\n border-top-style: solid;\n border-bottom-width: 2px !important;\n border-bottom-style: solid;\n }\n .md\\:border-y-3 {\n border-top-width: 3px !important;\n border-top-style: solid;\n border-bottom-width: 3px !important;\n border-bottom-style: solid;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:border-none {\n border-width: 0px !important;\n border-style: none;\n }\n .lg\\:border-1 {\n border-width: 1px !important;\n border-style: solid;\n }\n .lg\\:border-2 {\n border-width: 2px !important;\n border-style: solid;\n }\n .lg\\:border-3 {\n border-width: 3px !important;\n border-style: solid;\n }\n .lg\\:border-top-none {\n border-top-width: 0px !important;\n border-top-style: none;\n }\n .lg\\:border-top-1 {\n border-top-width: 1px !important;\n border-top-style: solid;\n }\n .lg\\:border-top-2 {\n border-top-width: 2px !important;\n border-top-style: solid;\n }\n .lg\\:border-top-3 {\n border-top-width: 3px !important;\n border-top-style: solid;\n }\n .lg\\:border-right-none {\n border-right-width: 0px !important;\n border-right-style: none;\n }\n .lg\\:border-right-1 {\n border-right-width: 1px !important;\n border-right-style: solid;\n }\n .lg\\:border-right-2 {\n border-right-width: 2px !important;\n border-right-style: solid;\n }\n .lg\\:border-right-3 {\n border-right-width: 3px !important;\n border-right-style: solid;\n }\n .lg\\:border-left-none {\n border-left-width: 0px !important;\n border-left-style: none;\n }\n .lg\\:border-left-1 {\n border-left-width: 1px !important;\n border-left-style: solid;\n }\n .lg\\:border-left-2 {\n border-left-width: 2px !important;\n border-left-style: solid;\n }\n .lg\\:border-left-3 {\n border-left-width: 3px !important;\n border-left-style: solid;\n }\n .lg\\:border-bottom-none {\n border-bottom-width: 0px !important;\n border-bottom-style: none;\n }\n .lg\\:border-bottom-1 {\n border-bottom-width: 1px !important;\n border-bottom-style: solid;\n }\n .lg\\:border-bottom-2 {\n border-bottom-width: 2px !important;\n border-bottom-style: solid;\n }\n .lg\\:border-bottom-3 {\n border-bottom-width: 3px !important;\n border-bottom-style: solid;\n }\n .lg\\:border-x-none {\n border-left-width: 0px !important;\n border-left-style: none;\n border-right-width: 0px !important;\n border-right-style: none;\n }\n .lg\\:border-x-1 {\n border-left-width: 1px !important;\n border-left-style: solid;\n border-right-width: 1px !important;\n border-right-style: solid;\n }\n .lg\\:border-x-2 {\n border-left-width: 2px !important;\n border-left-style: solid;\n border-right-width: 2px !important;\n border-right-style: solid;\n }\n .lg\\:border-x-3 {\n border-left-width: 3px !important;\n border-left-style: solid;\n border-right-width: 3px !important;\n border-right-style: solid;\n }\n .lg\\:border-y-none {\n border-top-width: 0px !important;\n border-top-style: none;\n border-bottom-width: 0px !important;\n border-bottom-style: none;\n }\n .lg\\:border-y-1 {\n border-top-width: 1px !important;\n border-top-style: solid;\n border-bottom-width: 1px !important;\n border-bottom-style: solid;\n }\n .lg\\:border-y-2 {\n border-top-width: 2px !important;\n border-top-style: solid;\n border-bottom-width: 2px !important;\n border-bottom-style: solid;\n }\n .lg\\:border-y-3 {\n border-top-width: 3px !important;\n border-top-style: solid;\n border-bottom-width: 3px !important;\n border-bottom-style: solid;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:border-none {\n border-width: 0px !important;\n border-style: none;\n }\n .xl\\:border-1 {\n border-width: 1px !important;\n border-style: solid;\n }\n .xl\\:border-2 {\n border-width: 2px !important;\n border-style: solid;\n }\n .xl\\:border-3 {\n border-width: 3px !important;\n border-style: solid;\n }\n .xl\\:border-top-none {\n border-top-width: 0px !important;\n border-top-style: none;\n }\n .xl\\:border-top-1 {\n border-top-width: 1px !important;\n border-top-style: solid;\n }\n .xl\\:border-top-2 {\n border-top-width: 2px !important;\n border-top-style: solid;\n }\n .xl\\:border-top-3 {\n border-top-width: 3px !important;\n border-top-style: solid;\n }\n .xl\\:border-right-none {\n border-right-width: 0px !important;\n border-right-style: none;\n }\n .xl\\:border-right-1 {\n border-right-width: 1px !important;\n border-right-style: solid;\n }\n .xl\\:border-right-2 {\n border-right-width: 2px !important;\n border-right-style: solid;\n }\n .xl\\:border-right-3 {\n border-right-width: 3px !important;\n border-right-style: solid;\n }\n .xl\\:border-left-none {\n border-left-width: 0px !important;\n border-left-style: none;\n }\n .xl\\:border-left-1 {\n border-left-width: 1px !important;\n border-left-style: solid;\n }\n .xl\\:border-left-2 {\n border-left-width: 2px !important;\n border-left-style: solid;\n }\n .xl\\:border-left-3 {\n border-left-width: 3px !important;\n border-left-style: solid;\n }\n .xl\\:border-bottom-none {\n border-bottom-width: 0px !important;\n border-bottom-style: none;\n }\n .xl\\:border-bottom-1 {\n border-bottom-width: 1px !important;\n border-bottom-style: solid;\n }\n .xl\\:border-bottom-2 {\n border-bottom-width: 2px !important;\n border-bottom-style: solid;\n }\n .xl\\:border-bottom-3 {\n border-bottom-width: 3px !important;\n border-bottom-style: solid;\n }\n .xl\\:border-x-none {\n border-left-width: 0px !important;\n border-left-style: none;\n border-right-width: 0px !important;\n border-right-style: none;\n }\n .xl\\:border-x-1 {\n border-left-width: 1px !important;\n border-left-style: solid;\n border-right-width: 1px !important;\n border-right-style: solid;\n }\n .xl\\:border-x-2 {\n border-left-width: 2px !important;\n border-left-style: solid;\n border-right-width: 2px !important;\n border-right-style: solid;\n }\n .xl\\:border-x-3 {\n border-left-width: 3px !important;\n border-left-style: solid;\n border-right-width: 3px !important;\n border-right-style: solid;\n }\n .xl\\:border-y-none {\n border-top-width: 0px !important;\n border-top-style: none;\n border-bottom-width: 0px !important;\n border-bottom-style: none;\n }\n .xl\\:border-y-1 {\n border-top-width: 1px !important;\n border-top-style: solid;\n border-bottom-width: 1px !important;\n border-bottom-style: solid;\n }\n .xl\\:border-y-2 {\n border-top-width: 2px !important;\n border-top-style: solid;\n border-bottom-width: 2px !important;\n border-bottom-style: solid;\n }\n .xl\\:border-y-3 {\n border-top-width: 3px !important;\n border-top-style: solid;\n border-bottom-width: 3px !important;\n border-bottom-style: solid;\n }\n}\n.border-solid {\n border-style: solid !important;\n}\n\n.border-dashed {\n border-style: dashed !important;\n}\n\n.border-dotted {\n border-style: dotted !important;\n}\n\n.border-double {\n border-style: double !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:border-solid {\n border-style: solid !important;\n }\n .sm\\:border-dashed {\n border-style: dashed !important;\n }\n .sm\\:border-dotted {\n border-style: dotted !important;\n }\n .sm\\:border-double {\n border-style: double !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:border-solid {\n border-style: solid !important;\n }\n .md\\:border-dashed {\n border-style: dashed !important;\n }\n .md\\:border-dotted {\n border-style: dotted !important;\n }\n .md\\:border-double {\n border-style: double !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:border-solid {\n border-style: solid !important;\n }\n .lg\\:border-dashed {\n border-style: dashed !important;\n }\n .lg\\:border-dotted {\n border-style: dotted !important;\n }\n .lg\\:border-double {\n border-style: double !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:border-solid {\n border-style: solid !important;\n }\n .xl\\:border-dashed {\n border-style: dashed !important;\n }\n .xl\\:border-dotted {\n border-style: dotted !important;\n }\n .xl\\:border-double {\n border-style: double !important;\n }\n}\n.border-round-left {\n border-top-left-radius: var(--border-radius);\n border-bottom-left-radius: var(--border-radius);\n}\n\n.border-round-top {\n border-top-left-radius: var(--border-radius);\n border-top-right-radius: var(--border-radius);\n}\n\n.border-round-right {\n border-top-right-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n}\n\n.border-round-bottom {\n border-bottom-left-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:border-round-left {\n border-top-left-radius: var(--border-radius);\n border-bottom-left-radius: var(--border-radius);\n }\n .sm\\:border-round-top {\n border-top-left-radius: var(--border-radius);\n border-top-right-radius: var(--border-radius);\n }\n .sm\\:border-round-right {\n border-top-right-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n }\n .sm\\:border-round-bottom {\n border-bottom-left-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:border-round-left {\n border-top-left-radius: var(--border-radius);\n border-bottom-left-radius: var(--border-radius);\n }\n .md\\:border-round-top {\n border-top-left-radius: var(--border-radius);\n border-top-right-radius: var(--border-radius);\n }\n .md\\:border-round-right {\n border-top-right-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n }\n .md\\:border-round-bottom {\n border-bottom-left-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:border-round-left {\n border-top-left-radius: var(--border-radius);\n border-bottom-left-radius: var(--border-radius);\n }\n .lg\\:border-round-top {\n border-top-left-radius: var(--border-radius);\n border-top-right-radius: var(--border-radius);\n }\n .lg\\:border-round-right {\n border-top-right-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n }\n .lg\\:border-round-bottom {\n border-bottom-left-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:border-round-left {\n border-top-left-radius: var(--border-radius);\n border-bottom-left-radius: var(--border-radius);\n }\n .xl\\:border-round-top {\n border-top-left-radius: var(--border-radius);\n border-top-right-radius: var(--border-radius);\n }\n .xl\\:border-round-right {\n border-top-right-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n }\n .xl\\:border-round-bottom {\n border-bottom-left-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n }\n}\n.border-noround {\n border-radius: 0 !important;\n}\n\n.border-round {\n border-radius: var(--border-radius) !important;\n}\n\n.border-circle {\n border-radius: 50% !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:border-noround {\n border-radius: 0 !important;\n }\n .sm\\:border-round {\n border-radius: var(--border-radius) !important;\n }\n .sm\\:border-circle {\n border-radius: 50% !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:border-noround {\n border-radius: 0 !important;\n }\n .md\\:border-round {\n border-radius: var(--border-radius) !important;\n }\n .md\\:border-circle {\n border-radius: 50% !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:border-noround {\n border-radius: 0 !important;\n }\n .lg\\:border-round {\n border-radius: var(--border-radius) !important;\n }\n .lg\\:border-circle {\n border-radius: 50% !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:border-noround {\n border-radius: 0 !important;\n }\n .xl\\:border-round {\n border-radius: var(--border-radius) !important;\n }\n .xl\\:border-circle {\n border-radius: 50% !important;\n }\n}\n.w-full {\n width: 100% !important;\n}\n\n.w-screen {\n width: 100vw !important;\n}\n\n.w-auto {\n width: auto !important;\n}\n\n.w-min {\n width: -webkit-min-content !important;\n width: -moz-min-content !important;\n width: min-content !important;\n}\n\n.w-max {\n width: -webkit-max-content !important;\n width: -moz-max-content !important;\n width: max-content !important;\n}\n\n.w-1 {\n width: 8.3333% !important;\n}\n\n.w-2 {\n width: 16.6667% !important;\n}\n\n.w-3 {\n width: 25% !important;\n}\n\n.w-4 {\n width: 33.3333% !important;\n}\n\n.w-5 {\n width: 41.6667% !important;\n}\n\n.w-6 {\n width: 50% !important;\n}\n\n.w-7 {\n width: 58.3333% !important;\n}\n\n.w-8 {\n width: 66.6667% !important;\n}\n\n.w-9 {\n width: 75% !important;\n}\n\n.w-10 {\n width: 83.3333% !important;\n}\n\n.w-11 {\n width: 91.6667% !important;\n}\n\n.w-12 {\n width: 100% !important;\n}\n\n.w-1rem {\n width: 1rem !important;\n}\n\n.w-2rem {\n width: 2rem !important;\n}\n\n.w-3rem {\n width: 3rem !important;\n}\n\n.w-4rem {\n width: 4rem !important;\n}\n\n.w-5rem {\n width: 5rem !important;\n}\n\n.w-6rem {\n width: 6rem !important;\n}\n\n.w-7rem {\n width: 7rem !important;\n}\n\n.w-8rem {\n width: 8rem !important;\n}\n\n.w-9rem {\n width: 9rem !important;\n}\n\n.w-10rem {\n width: 10rem !important;\n}\n\n.w-11rem {\n width: 11rem !important;\n}\n\n.w-12rem {\n width: 12rem !important;\n}\n\n.w-13rem {\n width: 13rem !important;\n}\n\n.w-14rem {\n width: 14rem !important;\n}\n\n.w-15rem {\n width: 15rem !important;\n}\n\n.w-16rem {\n width: 16rem !important;\n}\n\n.w-17rem {\n width: 17rem !important;\n}\n\n.w-18rem {\n width: 18rem !important;\n}\n\n.w-19rem {\n width: 19rem !important;\n}\n\n.w-20rem {\n width: 20rem !important;\n}\n\n.w-21rem {\n width: 21rem !important;\n}\n\n.w-22rem {\n width: 22rem !important;\n}\n\n.w-23rem {\n width: 23rem !important;\n}\n\n.w-24rem {\n width: 24rem !important;\n}\n\n.w-25rem {\n width: 25rem !important;\n}\n\n.w-26rem {\n width: 26rem !important;\n}\n\n.w-27rem {\n width: 27rem !important;\n}\n\n.w-28rem {\n width: 28rem !important;\n}\n\n.w-29rem {\n width: 29rem !important;\n}\n\n.w-30rem {\n width: 30rem !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:w-full {\n width: 100% !important;\n }\n .sm\\:w-screen {\n width: 100vw !important;\n }\n .sm\\:w-auto {\n width: auto !important;\n }\n .sm\\:w-min {\n width: -webkit-min-content !important;\n width: -moz-min-content !important;\n width: min-content !important;\n }\n .sm\\:w-max {\n width: -webkit-max-content !important;\n width: -moz-max-content !important;\n width: max-content !important;\n }\n .sm\\:w-1 {\n width: 8.3333% !important;\n }\n .sm\\:w-2 {\n width: 16.6667% !important;\n }\n .sm\\:w-3 {\n width: 25% !important;\n }\n .sm\\:w-4 {\n width: 33.3333% !important;\n }\n .sm\\:w-5 {\n width: 41.6667% !important;\n }\n .sm\\:w-6 {\n width: 50% !important;\n }\n .sm\\:w-7 {\n width: 58.3333% !important;\n }\n .sm\\:w-8 {\n width: 66.6667% !important;\n }\n .sm\\:w-9 {\n width: 75% !important;\n }\n .sm\\:w-10 {\n width: 83.3333% !important;\n }\n .sm\\:w-11 {\n width: 91.6667% !important;\n }\n .sm\\:w-12 {\n width: 100% !important;\n }\n .sm\\:w-1rem {\n width: 1rem !important;\n }\n .sm\\:w-2rem {\n width: 2rem !important;\n }\n .sm\\:w-3rem {\n width: 3rem !important;\n }\n .sm\\:w-4rem {\n width: 4rem !important;\n }\n .sm\\:w-5rem {\n width: 5rem !important;\n }\n .sm\\:w-6rem {\n width: 6rem !important;\n }\n .sm\\:w-7rem {\n width: 7rem !important;\n }\n .sm\\:w-8rem {\n width: 8rem !important;\n }\n .sm\\:w-9rem {\n width: 9rem !important;\n }\n .sm\\:w-10rem {\n width: 10rem !important;\n }\n .sm\\:w-11rem {\n width: 11rem !important;\n }\n .sm\\:w-12rem {\n width: 12rem !important;\n }\n .sm\\:w-13rem {\n width: 13rem !important;\n }\n .sm\\:w-14rem {\n width: 14rem !important;\n }\n .sm\\:w-15rem {\n width: 15rem !important;\n }\n .sm\\:w-16rem {\n width: 16rem !important;\n }\n .sm\\:w-17rem {\n width: 17rem !important;\n }\n .sm\\:w-18rem {\n width: 18rem !important;\n }\n .sm\\:w-19rem {\n width: 19rem !important;\n }\n .sm\\:w-20rem {\n width: 20rem !important;\n }\n .sm\\:w-21rem {\n width: 21rem !important;\n }\n .sm\\:w-22rem {\n width: 22rem !important;\n }\n .sm\\:w-23rem {\n width: 23rem !important;\n }\n .sm\\:w-24rem {\n width: 24rem !important;\n }\n .sm\\:w-25rem {\n width: 25rem !important;\n }\n .sm\\:w-26rem {\n width: 26rem !important;\n }\n .sm\\:w-27rem {\n width: 27rem !important;\n }\n .sm\\:w-28rem {\n width: 28rem !important;\n }\n .sm\\:w-29rem {\n width: 29rem !important;\n }\n .sm\\:w-30rem {\n width: 30rem !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:w-full {\n width: 100% !important;\n }\n .md\\:w-screen {\n width: 100vw !important;\n }\n .md\\:w-auto {\n width: auto !important;\n }\n .md\\:w-min {\n width: -webkit-min-content !important;\n width: -moz-min-content !important;\n width: min-content !important;\n }\n .md\\:w-max {\n width: -webkit-max-content !important;\n width: -moz-max-content !important;\n width: max-content !important;\n }\n .md\\:w-1 {\n width: 8.3333% !important;\n }\n .md\\:w-2 {\n width: 16.6667% !important;\n }\n .md\\:w-3 {\n width: 25% !important;\n }\n .md\\:w-4 {\n width: 33.3333% !important;\n }\n .md\\:w-5 {\n width: 41.6667% !important;\n }\n .md\\:w-6 {\n width: 50% !important;\n }\n .md\\:w-7 {\n width: 58.3333% !important;\n }\n .md\\:w-8 {\n width: 66.6667% !important;\n }\n .md\\:w-9 {\n width: 75% !important;\n }\n .md\\:w-10 {\n width: 83.3333% !important;\n }\n .md\\:w-11 {\n width: 91.6667% !important;\n }\n .md\\:w-12 {\n width: 100% !important;\n }\n .md\\:w-1rem {\n width: 1rem !important;\n }\n .md\\:w-2rem {\n width: 2rem !important;\n }\n .md\\:w-3rem {\n width: 3rem !important;\n }\n .md\\:w-4rem {\n width: 4rem !important;\n }\n .md\\:w-5rem {\n width: 5rem !important;\n }\n .md\\:w-6rem {\n width: 6rem !important;\n }\n .md\\:w-7rem {\n width: 7rem !important;\n }\n .md\\:w-8rem {\n width: 8rem !important;\n }\n .md\\:w-9rem {\n width: 9rem !important;\n }\n .md\\:w-10rem {\n width: 10rem !important;\n }\n .md\\:w-11rem {\n width: 11rem !important;\n }\n .md\\:w-12rem {\n width: 12rem !important;\n }\n .md\\:w-13rem {\n width: 13rem !important;\n }\n .md\\:w-14rem {\n width: 14rem !important;\n }\n .md\\:w-15rem {\n width: 15rem !important;\n }\n .md\\:w-16rem {\n width: 16rem !important;\n }\n .md\\:w-17rem {\n width: 17rem !important;\n }\n .md\\:w-18rem {\n width: 18rem !important;\n }\n .md\\:w-19rem {\n width: 19rem !important;\n }\n .md\\:w-20rem {\n width: 20rem !important;\n }\n .md\\:w-21rem {\n width: 21rem !important;\n }\n .md\\:w-22rem {\n width: 22rem !important;\n }\n .md\\:w-23rem {\n width: 23rem !important;\n }\n .md\\:w-24rem {\n width: 24rem !important;\n }\n .md\\:w-25rem {\n width: 25rem !important;\n }\n .md\\:w-26rem {\n width: 26rem !important;\n }\n .md\\:w-27rem {\n width: 27rem !important;\n }\n .md\\:w-28rem {\n width: 28rem !important;\n }\n .md\\:w-29rem {\n width: 29rem !important;\n }\n .md\\:w-30rem {\n width: 30rem !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:w-full {\n width: 100% !important;\n }\n .lg\\:w-screen {\n width: 100vw !important;\n }\n .lg\\:w-auto {\n width: auto !important;\n }\n .lg\\:w-min {\n width: -webkit-min-content !important;\n width: -moz-min-content !important;\n width: min-content !important;\n }\n .lg\\:w-max {\n width: -webkit-max-content !important;\n width: -moz-max-content !important;\n width: max-content !important;\n }\n .lg\\:w-1 {\n width: 8.3333% !important;\n }\n .lg\\:w-2 {\n width: 16.6667% !important;\n }\n .lg\\:w-3 {\n width: 25% !important;\n }\n .lg\\:w-4 {\n width: 33.3333% !important;\n }\n .lg\\:w-5 {\n width: 41.6667% !important;\n }\n .lg\\:w-6 {\n width: 50% !important;\n }\n .lg\\:w-7 {\n width: 58.3333% !important;\n }\n .lg\\:w-8 {\n width: 66.6667% !important;\n }\n .lg\\:w-9 {\n width: 75% !important;\n }\n .lg\\:w-10 {\n width: 83.3333% !important;\n }\n .lg\\:w-11 {\n width: 91.6667% !important;\n }\n .lg\\:w-12 {\n width: 100% !important;\n }\n .lg\\:w-1rem {\n width: 1rem !important;\n }\n .lg\\:w-2rem {\n width: 2rem !important;\n }\n .lg\\:w-3rem {\n width: 3rem !important;\n }\n .lg\\:w-4rem {\n width: 4rem !important;\n }\n .lg\\:w-5rem {\n width: 5rem !important;\n }\n .lg\\:w-6rem {\n width: 6rem !important;\n }\n .lg\\:w-7rem {\n width: 7rem !important;\n }\n .lg\\:w-8rem {\n width: 8rem !important;\n }\n .lg\\:w-9rem {\n width: 9rem !important;\n }\n .lg\\:w-10rem {\n width: 10rem !important;\n }\n .lg\\:w-11rem {\n width: 11rem !important;\n }\n .lg\\:w-12rem {\n width: 12rem !important;\n }\n .lg\\:w-13rem {\n width: 13rem !important;\n }\n .lg\\:w-14rem {\n width: 14rem !important;\n }\n .lg\\:w-15rem {\n width: 15rem !important;\n }\n .lg\\:w-16rem {\n width: 16rem !important;\n }\n .lg\\:w-17rem {\n width: 17rem !important;\n }\n .lg\\:w-18rem {\n width: 18rem !important;\n }\n .lg\\:w-19rem {\n width: 19rem !important;\n }\n .lg\\:w-20rem {\n width: 20rem !important;\n }\n .lg\\:w-21rem {\n width: 21rem !important;\n }\n .lg\\:w-22rem {\n width: 22rem !important;\n }\n .lg\\:w-23rem {\n width: 23rem !important;\n }\n .lg\\:w-24rem {\n width: 24rem !important;\n }\n .lg\\:w-25rem {\n width: 25rem !important;\n }\n .lg\\:w-26rem {\n width: 26rem !important;\n }\n .lg\\:w-27rem {\n width: 27rem !important;\n }\n .lg\\:w-28rem {\n width: 28rem !important;\n }\n .lg\\:w-29rem {\n width: 29rem !important;\n }\n .lg\\:w-30rem {\n width: 30rem !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:w-full {\n width: 100% !important;\n }\n .xl\\:w-screen {\n width: 100vw !important;\n }\n .xl\\:w-auto {\n width: auto !important;\n }\n .xl\\:w-min {\n width: -webkit-min-content !important;\n width: -moz-min-content !important;\n width: min-content !important;\n }\n .xl\\:w-max {\n width: -webkit-max-content !important;\n width: -moz-max-content !important;\n width: max-content !important;\n }\n .xl\\:w-1 {\n width: 8.3333% !important;\n }\n .xl\\:w-2 {\n width: 16.6667% !important;\n }\n .xl\\:w-3 {\n width: 25% !important;\n }\n .xl\\:w-4 {\n width: 33.3333% !important;\n }\n .xl\\:w-5 {\n width: 41.6667% !important;\n }\n .xl\\:w-6 {\n width: 50% !important;\n }\n .xl\\:w-7 {\n width: 58.3333% !important;\n }\n .xl\\:w-8 {\n width: 66.6667% !important;\n }\n .xl\\:w-9 {\n width: 75% !important;\n }\n .xl\\:w-10 {\n width: 83.3333% !important;\n }\n .xl\\:w-11 {\n width: 91.6667% !important;\n }\n .xl\\:w-12 {\n width: 100% !important;\n }\n .xl\\:w-1rem {\n width: 1rem !important;\n }\n .xl\\:w-2rem {\n width: 2rem !important;\n }\n .xl\\:w-3rem {\n width: 3rem !important;\n }\n .xl\\:w-4rem {\n width: 4rem !important;\n }\n .xl\\:w-5rem {\n width: 5rem !important;\n }\n .xl\\:w-6rem {\n width: 6rem !important;\n }\n .xl\\:w-7rem {\n width: 7rem !important;\n }\n .xl\\:w-8rem {\n width: 8rem !important;\n }\n .xl\\:w-9rem {\n width: 9rem !important;\n }\n .xl\\:w-10rem {\n width: 10rem !important;\n }\n .xl\\:w-11rem {\n width: 11rem !important;\n }\n .xl\\:w-12rem {\n width: 12rem !important;\n }\n .xl\\:w-13rem {\n width: 13rem !important;\n }\n .xl\\:w-14rem {\n width: 14rem !important;\n }\n .xl\\:w-15rem {\n width: 15rem !important;\n }\n .xl\\:w-16rem {\n width: 16rem !important;\n }\n .xl\\:w-17rem {\n width: 17rem !important;\n }\n .xl\\:w-18rem {\n width: 18rem !important;\n }\n .xl\\:w-19rem {\n width: 19rem !important;\n }\n .xl\\:w-20rem {\n width: 20rem !important;\n }\n .xl\\:w-21rem {\n width: 21rem !important;\n }\n .xl\\:w-22rem {\n width: 22rem !important;\n }\n .xl\\:w-23rem {\n width: 23rem !important;\n }\n .xl\\:w-24rem {\n width: 24rem !important;\n }\n .xl\\:w-25rem {\n width: 25rem !important;\n }\n .xl\\:w-26rem {\n width: 26rem !important;\n }\n .xl\\:w-27rem {\n width: 27rem !important;\n }\n .xl\\:w-28rem {\n width: 28rem !important;\n }\n .xl\\:w-29rem {\n width: 29rem !important;\n }\n .xl\\:w-30rem {\n width: 30rem !important;\n }\n}\n.h-full {\n height: 100% !important;\n}\n\n.h-screen {\n height: 100vh !important;\n}\n\n.h-auto {\n height: auto !important;\n}\n\n.h-1rem {\n height: 1rem !important;\n}\n\n.h-2rem {\n height: 2rem !important;\n}\n\n.h-3rem {\n height: 3rem !important;\n}\n\n.h-4rem {\n height: 4rem !important;\n}\n\n.h-5rem {\n height: 5rem !important;\n}\n\n.h-6rem {\n height: 6rem !important;\n}\n\n.h-7rem {\n height: 7rem !important;\n}\n\n.h-8rem {\n height: 8rem !important;\n}\n\n.h-9rem {\n height: 9rem !important;\n}\n\n.h-10rem {\n height: 10rem !important;\n}\n\n.h-11rem {\n height: 11rem !important;\n}\n\n.h-12rem {\n height: 12rem !important;\n}\n\n.h-13rem {\n height: 13rem !important;\n}\n\n.h-14rem {\n height: 14rem !important;\n}\n\n.h-15rem {\n height: 15rem !important;\n}\n\n.h-16rem {\n height: 16rem !important;\n}\n\n.h-17rem {\n height: 17rem !important;\n}\n\n.h-18rem {\n height: 18rem !important;\n}\n\n.h-19rem {\n height: 19rem !important;\n}\n\n.h-20rem {\n height: 20rem !important;\n}\n\n.h-21rem {\n height: 21rem !important;\n}\n\n.h-22rem {\n height: 22rem !important;\n}\n\n.h-23rem {\n height: 23rem !important;\n}\n\n.h-24rem {\n height: 24rem !important;\n}\n\n.h-25rem {\n height: 25rem !important;\n}\n\n.h-26rem {\n height: 26rem !important;\n}\n\n.h-27rem {\n height: 27rem !important;\n}\n\n.h-28rem {\n height: 28rem !important;\n}\n\n.h-29rem {\n height: 29rem !important;\n}\n\n.h-30rem {\n height: 30rem !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:h-full {\n height: 100% !important;\n }\n .sm\\:h-screen {\n height: 100vh !important;\n }\n .sm\\:h-auto {\n height: auto !important;\n }\n .sm\\:h-1rem {\n height: 1rem !important;\n }\n .sm\\:h-2rem {\n height: 2rem !important;\n }\n .sm\\:h-3rem {\n height: 3rem !important;\n }\n .sm\\:h-4rem {\n height: 4rem !important;\n }\n .sm\\:h-5rem {\n height: 5rem !important;\n }\n .sm\\:h-6rem {\n height: 6rem !important;\n }\n .sm\\:h-7rem {\n height: 7rem !important;\n }\n .sm\\:h-8rem {\n height: 8rem !important;\n }\n .sm\\:h-9rem {\n height: 9rem !important;\n }\n .sm\\:h-10rem {\n height: 10rem !important;\n }\n .sm\\:h-11rem {\n height: 11rem !important;\n }\n .sm\\:h-12rem {\n height: 12rem !important;\n }\n .sm\\:h-13rem {\n height: 13rem !important;\n }\n .sm\\:h-14rem {\n height: 14rem !important;\n }\n .sm\\:h-15rem {\n height: 15rem !important;\n }\n .sm\\:h-16rem {\n height: 16rem !important;\n }\n .sm\\:h-17rem {\n height: 17rem !important;\n }\n .sm\\:h-18rem {\n height: 18rem !important;\n }\n .sm\\:h-19rem {\n height: 19rem !important;\n }\n .sm\\:h-20rem {\n height: 20rem !important;\n }\n .sm\\:h-21rem {\n height: 21rem !important;\n }\n .sm\\:h-22rem {\n height: 22rem !important;\n }\n .sm\\:h-23rem {\n height: 23rem !important;\n }\n .sm\\:h-24rem {\n height: 24rem !important;\n }\n .sm\\:h-25rem {\n height: 25rem !important;\n }\n .sm\\:h-26rem {\n height: 26rem !important;\n }\n .sm\\:h-27rem {\n height: 27rem !important;\n }\n .sm\\:h-28rem {\n height: 28rem !important;\n }\n .sm\\:h-29rem {\n height: 29rem !important;\n }\n .sm\\:h-30rem {\n height: 30rem !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:h-full {\n height: 100% !important;\n }\n .md\\:h-screen {\n height: 100vh !important;\n }\n .md\\:h-auto {\n height: auto !important;\n }\n .md\\:h-1rem {\n height: 1rem !important;\n }\n .md\\:h-2rem {\n height: 2rem !important;\n }\n .md\\:h-3rem {\n height: 3rem !important;\n }\n .md\\:h-4rem {\n height: 4rem !important;\n }\n .md\\:h-5rem {\n height: 5rem !important;\n }\n .md\\:h-6rem {\n height: 6rem !important;\n }\n .md\\:h-7rem {\n height: 7rem !important;\n }\n .md\\:h-8rem {\n height: 8rem !important;\n }\n .md\\:h-9rem {\n height: 9rem !important;\n }\n .md\\:h-10rem {\n height: 10rem !important;\n }\n .md\\:h-11rem {\n height: 11rem !important;\n }\n .md\\:h-12rem {\n height: 12rem !important;\n }\n .md\\:h-13rem {\n height: 13rem !important;\n }\n .md\\:h-14rem {\n height: 14rem !important;\n }\n .md\\:h-15rem {\n height: 15rem !important;\n }\n .md\\:h-16rem {\n height: 16rem !important;\n }\n .md\\:h-17rem {\n height: 17rem !important;\n }\n .md\\:h-18rem {\n height: 18rem !important;\n }\n .md\\:h-19rem {\n height: 19rem !important;\n }\n .md\\:h-20rem {\n height: 20rem !important;\n }\n .md\\:h-21rem {\n height: 21rem !important;\n }\n .md\\:h-22rem {\n height: 22rem !important;\n }\n .md\\:h-23rem {\n height: 23rem !important;\n }\n .md\\:h-24rem {\n height: 24rem !important;\n }\n .md\\:h-25rem {\n height: 25rem !important;\n }\n .md\\:h-26rem {\n height: 26rem !important;\n }\n .md\\:h-27rem {\n height: 27rem !important;\n }\n .md\\:h-28rem {\n height: 28rem !important;\n }\n .md\\:h-29rem {\n height: 29rem !important;\n }\n .md\\:h-30rem {\n height: 30rem !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:h-full {\n height: 100% !important;\n }\n .lg\\:h-screen {\n height: 100vh !important;\n }\n .lg\\:h-auto {\n height: auto !important;\n }\n .lg\\:h-1rem {\n height: 1rem !important;\n }\n .lg\\:h-2rem {\n height: 2rem !important;\n }\n .lg\\:h-3rem {\n height: 3rem !important;\n }\n .lg\\:h-4rem {\n height: 4rem !important;\n }\n .lg\\:h-5rem {\n height: 5rem !important;\n }\n .lg\\:h-6rem {\n height: 6rem !important;\n }\n .lg\\:h-7rem {\n height: 7rem !important;\n }\n .lg\\:h-8rem {\n height: 8rem !important;\n }\n .lg\\:h-9rem {\n height: 9rem !important;\n }\n .lg\\:h-10rem {\n height: 10rem !important;\n }\n .lg\\:h-11rem {\n height: 11rem !important;\n }\n .lg\\:h-12rem {\n height: 12rem !important;\n }\n .lg\\:h-13rem {\n height: 13rem !important;\n }\n .lg\\:h-14rem {\n height: 14rem !important;\n }\n .lg\\:h-15rem {\n height: 15rem !important;\n }\n .lg\\:h-16rem {\n height: 16rem !important;\n }\n .lg\\:h-17rem {\n height: 17rem !important;\n }\n .lg\\:h-18rem {\n height: 18rem !important;\n }\n .lg\\:h-19rem {\n height: 19rem !important;\n }\n .lg\\:h-20rem {\n height: 20rem !important;\n }\n .lg\\:h-21rem {\n height: 21rem !important;\n }\n .lg\\:h-22rem {\n height: 22rem !important;\n }\n .lg\\:h-23rem {\n height: 23rem !important;\n }\n .lg\\:h-24rem {\n height: 24rem !important;\n }\n .lg\\:h-25rem {\n height: 25rem !important;\n }\n .lg\\:h-26rem {\n height: 26rem !important;\n }\n .lg\\:h-27rem {\n height: 27rem !important;\n }\n .lg\\:h-28rem {\n height: 28rem !important;\n }\n .lg\\:h-29rem {\n height: 29rem !important;\n }\n .lg\\:h-30rem {\n height: 30rem !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:h-full {\n height: 100% !important;\n }\n .xl\\:h-screen {\n height: 100vh !important;\n }\n .xl\\:h-auto {\n height: auto !important;\n }\n .xl\\:h-1rem {\n height: 1rem !important;\n }\n .xl\\:h-2rem {\n height: 2rem !important;\n }\n .xl\\:h-3rem {\n height: 3rem !important;\n }\n .xl\\:h-4rem {\n height: 4rem !important;\n }\n .xl\\:h-5rem {\n height: 5rem !important;\n }\n .xl\\:h-6rem {\n height: 6rem !important;\n }\n .xl\\:h-7rem {\n height: 7rem !important;\n }\n .xl\\:h-8rem {\n height: 8rem !important;\n }\n .xl\\:h-9rem {\n height: 9rem !important;\n }\n .xl\\:h-10rem {\n height: 10rem !important;\n }\n .xl\\:h-11rem {\n height: 11rem !important;\n }\n .xl\\:h-12rem {\n height: 12rem !important;\n }\n .xl\\:h-13rem {\n height: 13rem !important;\n }\n .xl\\:h-14rem {\n height: 14rem !important;\n }\n .xl\\:h-15rem {\n height: 15rem !important;\n }\n .xl\\:h-16rem {\n height: 16rem !important;\n }\n .xl\\:h-17rem {\n height: 17rem !important;\n }\n .xl\\:h-18rem {\n height: 18rem !important;\n }\n .xl\\:h-19rem {\n height: 19rem !important;\n }\n .xl\\:h-20rem {\n height: 20rem !important;\n }\n .xl\\:h-21rem {\n height: 21rem !important;\n }\n .xl\\:h-22rem {\n height: 22rem !important;\n }\n .xl\\:h-23rem {\n height: 23rem !important;\n }\n .xl\\:h-24rem {\n height: 24rem !important;\n }\n .xl\\:h-25rem {\n height: 25rem !important;\n }\n .xl\\:h-26rem {\n height: 26rem !important;\n }\n .xl\\:h-27rem {\n height: 27rem !important;\n }\n .xl\\:h-28rem {\n height: 28rem !important;\n }\n .xl\\:h-29rem {\n height: 29rem !important;\n }\n .xl\\:h-30rem {\n height: 30rem !important;\n }\n}\n.min-w-0 {\n min-width: 0px !important;\n}\n\n.min-w-full {\n min-width: 100% !important;\n}\n\n.min-w-screen {\n min-width: 100vw !important;\n}\n\n.min-w-min {\n min-width: -webkit-min-content !important;\n min-width: -moz-min-content !important;\n min-width: min-content !important;\n}\n\n.min-w-max {\n min-width: -webkit-max-content !important;\n min-width: -moz-max-content !important;\n min-width: max-content !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:min-w-0 {\n min-width: 0px !important;\n }\n .sm\\:min-w-full {\n min-width: 100% !important;\n }\n .sm\\:min-w-screen {\n min-width: 100vw !important;\n }\n .sm\\:min-w-min {\n min-width: -webkit-min-content !important;\n min-width: -moz-min-content !important;\n min-width: min-content !important;\n }\n .sm\\:min-w-max {\n min-width: -webkit-max-content !important;\n min-width: -moz-max-content !important;\n min-width: max-content !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:min-w-0 {\n min-width: 0px !important;\n }\n .md\\:min-w-full {\n min-width: 100% !important;\n }\n .md\\:min-w-screen {\n min-width: 100vw !important;\n }\n .md\\:min-w-min {\n min-width: -webkit-min-content !important;\n min-width: -moz-min-content !important;\n min-width: min-content !important;\n }\n .md\\:min-w-max {\n min-width: -webkit-max-content !important;\n min-width: -moz-max-content !important;\n min-width: max-content !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:min-w-0 {\n min-width: 0px !important;\n }\n .lg\\:min-w-full {\n min-width: 100% !important;\n }\n .lg\\:min-w-screen {\n min-width: 100vw !important;\n }\n .lg\\:min-w-min {\n min-width: -webkit-min-content !important;\n min-width: -moz-min-content !important;\n min-width: min-content !important;\n }\n .lg\\:min-w-max {\n min-width: -webkit-max-content !important;\n min-width: -moz-max-content !important;\n min-width: max-content !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:min-w-0 {\n min-width: 0px !important;\n }\n .xl\\:min-w-full {\n min-width: 100% !important;\n }\n .xl\\:min-w-screen {\n min-width: 100vw !important;\n }\n .xl\\:min-w-min {\n min-width: -webkit-min-content !important;\n min-width: -moz-min-content !important;\n min-width: min-content !important;\n }\n .xl\\:min-w-max {\n min-width: -webkit-max-content !important;\n min-width: -moz-max-content !important;\n min-width: max-content !important;\n }\n}\n.max-w-0 {\n max-width: 0px !important;\n}\n\n.max-w-full {\n max-width: 100% !important;\n}\n\n.max-w-screen {\n max-width: 100vw !important;\n}\n\n.max-w-min {\n max-width: -webkit-min-content !important;\n max-width: -moz-min-content !important;\n max-width: min-content !important;\n}\n\n.max-w-max {\n max-width: -webkit-max-content !important;\n max-width: -moz-max-content !important;\n max-width: max-content !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:max-w-0 {\n max-width: 0px !important;\n }\n .sm\\:max-w-full {\n max-width: 100% !important;\n }\n .sm\\:max-w-screen {\n max-width: 100vw !important;\n }\n .sm\\:max-w-min {\n max-width: -webkit-min-content !important;\n max-width: -moz-min-content !important;\n max-width: min-content !important;\n }\n .sm\\:max-w-max {\n max-width: -webkit-max-content !important;\n max-width: -moz-max-content !important;\n max-width: max-content !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:max-w-0 {\n max-width: 0px !important;\n }\n .md\\:max-w-full {\n max-width: 100% !important;\n }\n .md\\:max-w-screen {\n max-width: 100vw !important;\n }\n .md\\:max-w-min {\n max-width: -webkit-min-content !important;\n max-width: -moz-min-content !important;\n max-width: min-content !important;\n }\n .md\\:max-w-max {\n max-width: -webkit-max-content !important;\n max-width: -moz-max-content !important;\n max-width: max-content !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:max-w-0 {\n max-width: 0px !important;\n }\n .lg\\:max-w-full {\n max-width: 100% !important;\n }\n .lg\\:max-w-screen {\n max-width: 100vw !important;\n }\n .lg\\:max-w-min {\n max-width: -webkit-min-content !important;\n max-width: -moz-min-content !important;\n max-width: min-content !important;\n }\n .lg\\:max-w-max {\n max-width: -webkit-max-content !important;\n max-width: -moz-max-content !important;\n max-width: max-content !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:max-w-0 {\n max-width: 0px !important;\n }\n .xl\\:max-w-full {\n max-width: 100% !important;\n }\n .xl\\:max-w-screen {\n max-width: 100vw !important;\n }\n .xl\\:max-w-min {\n max-width: -webkit-min-content !important;\n max-width: -moz-min-content !important;\n max-width: min-content !important;\n }\n .xl\\:max-w-max {\n max-width: -webkit-max-content !important;\n max-width: -moz-max-content !important;\n max-width: max-content !important;\n }\n}\n.min-h-0 {\n min-height: 0px !important;\n}\n\n.min-h-full {\n min-height: 100% !important;\n}\n\n.min-h-screen {\n min-height: 100vh !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:min-h-0 {\n min-height: 0px !important;\n }\n .sm\\:min-h-full {\n min-height: 100% !important;\n }\n .sm\\:min-h-screen {\n min-height: 100vh !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:min-h-0 {\n min-height: 0px !important;\n }\n .md\\:min-h-full {\n min-height: 100% !important;\n }\n .md\\:min-h-screen {\n min-height: 100vh !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:min-h-0 {\n min-height: 0px !important;\n }\n .lg\\:min-h-full {\n min-height: 100% !important;\n }\n .lg\\:min-h-screen {\n min-height: 100vh !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:min-h-0 {\n min-height: 0px !important;\n }\n .xl\\:min-h-full {\n min-height: 100% !important;\n }\n .xl\\:min-h-screen {\n min-height: 100vh !important;\n }\n}\n.max-h-0 {\n max-height: 0px !important;\n}\n\n.max-h-full {\n max-height: 100% !important;\n}\n\n.max-h-screen {\n max-height: 100vh !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:max-h-0 {\n max-height: 0px !important;\n }\n .sm\\:max-h-full {\n max-height: 100% !important;\n }\n .sm\\:max-h-screen {\n max-height: 100vh !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:max-h-0 {\n max-height: 0px !important;\n }\n .md\\:max-h-full {\n max-height: 100% !important;\n }\n .md\\:max-h-screen {\n max-height: 100vh !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:max-h-0 {\n max-height: 0px !important;\n }\n .lg\\:max-h-full {\n max-height: 100% !important;\n }\n .lg\\:max-h-screen {\n max-height: 100vh !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:max-h-0 {\n max-height: 0px !important;\n }\n .xl\\:max-h-full {\n max-height: 100% !important;\n }\n .xl\\:max-h-screen {\n max-height: 100vh !important;\n }\n}\n.static {\n position: static !important;\n}\n\n.fixed {\n position: fixed !important;\n}\n\n.absolute {\n position: absolute !important;\n}\n\n.relative {\n position: relative !important;\n}\n\n.sticky {\n position: -webkit-sticky !important;\n position: sticky !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:static {\n position: static !important;\n }\n .sm\\:fixed {\n position: fixed !important;\n }\n .sm\\:absolute {\n position: absolute !important;\n }\n .sm\\:relative {\n position: relative !important;\n }\n .sm\\:sticky {\n position: -webkit-sticky !important;\n position: sticky !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:static {\n position: static !important;\n }\n .md\\:fixed {\n position: fixed !important;\n }\n .md\\:absolute {\n position: absolute !important;\n }\n .md\\:relative {\n position: relative !important;\n }\n .md\\:sticky {\n position: -webkit-sticky !important;\n position: sticky !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:static {\n position: static !important;\n }\n .lg\\:fixed {\n position: fixed !important;\n }\n .lg\\:absolute {\n position: absolute !important;\n }\n .lg\\:relative {\n position: relative !important;\n }\n .lg\\:sticky {\n position: -webkit-sticky !important;\n position: sticky !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:static {\n position: static !important;\n }\n .xl\\:fixed {\n position: fixed !important;\n }\n .xl\\:absolute {\n position: absolute !important;\n }\n .xl\\:relative {\n position: relative !important;\n }\n .xl\\:sticky {\n position: -webkit-sticky !important;\n position: sticky !important;\n }\n}\n.top-auto {\n top: auto !important;\n}\n\n.top-0 {\n top: 0px !important;\n}\n\n.top-50 {\n top: 50% !important;\n}\n\n.top-100 {\n top: 100% !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:top-auto {\n top: auto !important;\n }\n .sm\\:top-0 {\n top: 0px !important;\n }\n .sm\\:top-50 {\n top: 50% !important;\n }\n .sm\\:top-100 {\n top: 100% !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:top-auto {\n top: auto !important;\n }\n .md\\:top-0 {\n top: 0px !important;\n }\n .md\\:top-50 {\n top: 50% !important;\n }\n .md\\:top-100 {\n top: 100% !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:top-auto {\n top: auto !important;\n }\n .lg\\:top-0 {\n top: 0px !important;\n }\n .lg\\:top-50 {\n top: 50% !important;\n }\n .lg\\:top-100 {\n top: 100% !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:top-auto {\n top: auto !important;\n }\n .xl\\:top-0 {\n top: 0px !important;\n }\n .xl\\:top-50 {\n top: 50% !important;\n }\n .xl\\:top-100 {\n top: 100% !important;\n }\n}\n.left-auto {\n left: auto !important;\n}\n\n.left-0 {\n left: 0px !important;\n}\n\n.left-50 {\n left: 50% !important;\n}\n\n.left-100 {\n left: 100% !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:left-auto {\n left: auto !important;\n }\n .sm\\:left-0 {\n left: 0px !important;\n }\n .sm\\:left-50 {\n left: 50% !important;\n }\n .sm\\:left-100 {\n left: 100% !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:left-auto {\n left: auto !important;\n }\n .md\\:left-0 {\n left: 0px !important;\n }\n .md\\:left-50 {\n left: 50% !important;\n }\n .md\\:left-100 {\n left: 100% !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:left-auto {\n left: auto !important;\n }\n .lg\\:left-0 {\n left: 0px !important;\n }\n .lg\\:left-50 {\n left: 50% !important;\n }\n .lg\\:left-100 {\n left: 100% !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:left-auto {\n left: auto !important;\n }\n .xl\\:left-0 {\n left: 0px !important;\n }\n .xl\\:left-50 {\n left: 50% !important;\n }\n .xl\\:left-100 {\n left: 100% !important;\n }\n}\n.right-auto {\n right: auto !important;\n}\n\n.right-0 {\n right: 0px !important;\n}\n\n.right-50 {\n right: 50% !important;\n}\n\n.right-100 {\n right: 100% !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:right-auto {\n right: auto !important;\n }\n .sm\\:right-0 {\n right: 0px !important;\n }\n .sm\\:right-50 {\n right: 50% !important;\n }\n .sm\\:right-100 {\n right: 100% !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:right-auto {\n right: auto !important;\n }\n .md\\:right-0 {\n right: 0px !important;\n }\n .md\\:right-50 {\n right: 50% !important;\n }\n .md\\:right-100 {\n right: 100% !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:right-auto {\n right: auto !important;\n }\n .lg\\:right-0 {\n right: 0px !important;\n }\n .lg\\:right-50 {\n right: 50% !important;\n }\n .lg\\:right-100 {\n right: 100% !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:right-auto {\n right: auto !important;\n }\n .xl\\:right-0 {\n right: 0px !important;\n }\n .xl\\:right-50 {\n right: 50% !important;\n }\n .xl\\:right-100 {\n right: 100% !important;\n }\n}\n.bottom-auto {\n bottom: auto !important;\n}\n\n.bottom-0 {\n bottom: 0px !important;\n}\n\n.bottom-50 {\n bottom: 50% !important;\n}\n\n.bottom-100 {\n bottom: 100% !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:bottom-auto {\n bottom: auto !important;\n }\n .sm\\:bottom-0 {\n bottom: 0px !important;\n }\n .sm\\:bottom-50 {\n bottom: 50% !important;\n }\n .sm\\:bottom-100 {\n bottom: 100% !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:bottom-auto {\n bottom: auto !important;\n }\n .md\\:bottom-0 {\n bottom: 0px !important;\n }\n .md\\:bottom-50 {\n bottom: 50% !important;\n }\n .md\\:bottom-100 {\n bottom: 100% !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:bottom-auto {\n bottom: auto !important;\n }\n .lg\\:bottom-0 {\n bottom: 0px !important;\n }\n .lg\\:bottom-50 {\n bottom: 50% !important;\n }\n .lg\\:bottom-100 {\n bottom: 100% !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:bottom-auto {\n bottom: auto !important;\n }\n .xl\\:bottom-0 {\n bottom: 0px !important;\n }\n .xl\\:bottom-50 {\n bottom: 50% !important;\n }\n .xl\\:bottom-100 {\n bottom: 100% !important;\n }\n}\n.overflow-auto {\n overflow: auto !important;\n}\n\n.overflow-hidden {\n overflow: hidden !important;\n}\n\n.overflow-visible {\n overflow: visible !important;\n}\n\n.overflow-scroll {\n overflow: scroll !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:overflow-auto {\n overflow: auto !important;\n }\n .sm\\:overflow-hidden {\n overflow: hidden !important;\n }\n .sm\\:overflow-visible {\n overflow: visible !important;\n }\n .sm\\:overflow-scroll {\n overflow: scroll !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:overflow-auto {\n overflow: auto !important;\n }\n .md\\:overflow-hidden {\n overflow: hidden !important;\n }\n .md\\:overflow-visible {\n overflow: visible !important;\n }\n .md\\:overflow-scroll {\n overflow: scroll !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:overflow-auto {\n overflow: auto !important;\n }\n .lg\\:overflow-hidden {\n overflow: hidden !important;\n }\n .lg\\:overflow-visible {\n overflow: visible !important;\n }\n .lg\\:overflow-scroll {\n overflow: scroll !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:overflow-auto {\n overflow: auto !important;\n }\n .xl\\:overflow-hidden {\n overflow: hidden !important;\n }\n .xl\\:overflow-visible {\n overflow: visible !important;\n }\n .xl\\:overflow-scroll {\n overflow: scroll !important;\n }\n}\n.overflow-x-auto {\n overflow-x: auto !important;\n}\n\n.overflow-x-hidden {\n overflow-x: hidden !important;\n}\n\n.overflow-x-visible {\n overflow-x: visible !important;\n}\n\n.overflow-x-scroll {\n overflow-x: scroll !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:overflow-x-auto {\n overflow-x: auto !important;\n }\n .sm\\:overflow-x-hidden {\n overflow-x: hidden !important;\n }\n .sm\\:overflow-x-visible {\n overflow-x: visible !important;\n }\n .sm\\:overflow-x-scroll {\n overflow-x: scroll !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:overflow-x-auto {\n overflow-x: auto !important;\n }\n .md\\:overflow-x-hidden {\n overflow-x: hidden !important;\n }\n .md\\:overflow-x-visible {\n overflow-x: visible !important;\n }\n .md\\:overflow-x-scroll {\n overflow-x: scroll !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:overflow-x-auto {\n overflow-x: auto !important;\n }\n .lg\\:overflow-x-hidden {\n overflow-x: hidden !important;\n }\n .lg\\:overflow-x-visible {\n overflow-x: visible !important;\n }\n .lg\\:overflow-x-scroll {\n overflow-x: scroll !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:overflow-x-auto {\n overflow-x: auto !important;\n }\n .xl\\:overflow-x-hidden {\n overflow-x: hidden !important;\n }\n .xl\\:overflow-x-visible {\n overflow-x: visible !important;\n }\n .xl\\:overflow-x-scroll {\n overflow-x: scroll !important;\n }\n}\n.overflow-y-auto {\n overflow-y: auto !important;\n}\n\n.overflow-y-hidden {\n overflow-y: hidden !important;\n}\n\n.overflow-y-visible {\n overflow-y: visible !important;\n}\n\n.overflow-y-scroll {\n overflow-y: scroll !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:overflow-y-auto {\n overflow-y: auto !important;\n }\n .sm\\:overflow-y-hidden {\n overflow-y: hidden !important;\n }\n .sm\\:overflow-y-visible {\n overflow-y: visible !important;\n }\n .sm\\:overflow-y-scroll {\n overflow-y: scroll !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:overflow-y-auto {\n overflow-y: auto !important;\n }\n .md\\:overflow-y-hidden {\n overflow-y: hidden !important;\n }\n .md\\:overflow-y-visible {\n overflow-y: visible !important;\n }\n .md\\:overflow-y-scroll {\n overflow-y: scroll !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:overflow-y-auto {\n overflow-y: auto !important;\n }\n .lg\\:overflow-y-hidden {\n overflow-y: hidden !important;\n }\n .lg\\:overflow-y-visible {\n overflow-y: visible !important;\n }\n .lg\\:overflow-y-scroll {\n overflow-y: scroll !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:overflow-y-auto {\n overflow-y: auto !important;\n }\n .xl\\:overflow-y-hidden {\n overflow-y: hidden !important;\n }\n .xl\\:overflow-y-visible {\n overflow-y: visible !important;\n }\n .xl\\:overflow-y-scroll {\n overflow-y: scroll !important;\n }\n}\n.z-auto {\n z-index: auto !important;\n}\n\n.z-0 {\n z-index: 0 !important;\n}\n\n.z-1 {\n z-index: 1 !important;\n}\n\n.z-2 {\n z-index: 2 !important;\n}\n\n.z-3 {\n z-index: 3 !important;\n}\n\n.z-4 {\n z-index: 4 !important;\n}\n\n.z-5 {\n z-index: 5 !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:z-auto {\n z-index: auto !important;\n }\n .sm\\:z-0 {\n z-index: 0 !important;\n }\n .sm\\:z-1 {\n z-index: 1 !important;\n }\n .sm\\:z-2 {\n z-index: 2 !important;\n }\n .sm\\:z-3 {\n z-index: 3 !important;\n }\n .sm\\:z-4 {\n z-index: 4 !important;\n }\n .sm\\:z-5 {\n z-index: 5 !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:z-auto {\n z-index: auto !important;\n }\n .md\\:z-0 {\n z-index: 0 !important;\n }\n .md\\:z-1 {\n z-index: 1 !important;\n }\n .md\\:z-2 {\n z-index: 2 !important;\n }\n .md\\:z-3 {\n z-index: 3 !important;\n }\n .md\\:z-4 {\n z-index: 4 !important;\n }\n .md\\:z-5 {\n z-index: 5 !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:z-auto {\n z-index: auto !important;\n }\n .lg\\:z-0 {\n z-index: 0 !important;\n }\n .lg\\:z-1 {\n z-index: 1 !important;\n }\n .lg\\:z-2 {\n z-index: 2 !important;\n }\n .lg\\:z-3 {\n z-index: 3 !important;\n }\n .lg\\:z-4 {\n z-index: 4 !important;\n }\n .lg\\:z-5 {\n z-index: 5 !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:z-auto {\n z-index: auto !important;\n }\n .xl\\:z-0 {\n z-index: 0 !important;\n }\n .xl\\:z-1 {\n z-index: 1 !important;\n }\n .xl\\:z-2 {\n z-index: 2 !important;\n }\n .xl\\:z-3 {\n z-index: 3 !important;\n }\n .xl\\:z-4 {\n z-index: 4 !important;\n }\n .xl\\:z-5 {\n z-index: 5 !important;\n }\n}\n.bg-repeat {\n background-repeat: repeat !important;\n}\n\n.bg-no-repeat {\n background-repeat: no-repeat !important;\n}\n\n.bg-repeat-x {\n background-repeat: repeat-x !important;\n}\n\n.bg-repeat-y {\n background-repeat: repeat-y !important;\n}\n\n.bg-repeat-round {\n background-repeat: round !important;\n}\n\n.bg-repeat-space {\n background-repeat: space !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:bg-repeat {\n background-repeat: repeat !important;\n }\n .sm\\:bg-no-repeat {\n background-repeat: no-repeat !important;\n }\n .sm\\:bg-repeat-x {\n background-repeat: repeat-x !important;\n }\n .sm\\:bg-repeat-y {\n background-repeat: repeat-y !important;\n }\n .sm\\:bg-repeat-round {\n background-repeat: round !important;\n }\n .sm\\:bg-repeat-space {\n background-repeat: space !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:bg-repeat {\n background-repeat: repeat !important;\n }\n .md\\:bg-no-repeat {\n background-repeat: no-repeat !important;\n }\n .md\\:bg-repeat-x {\n background-repeat: repeat-x !important;\n }\n .md\\:bg-repeat-y {\n background-repeat: repeat-y !important;\n }\n .md\\:bg-repeat-round {\n background-repeat: round !important;\n }\n .md\\:bg-repeat-space {\n background-repeat: space !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:bg-repeat {\n background-repeat: repeat !important;\n }\n .lg\\:bg-no-repeat {\n background-repeat: no-repeat !important;\n }\n .lg\\:bg-repeat-x {\n background-repeat: repeat-x !important;\n }\n .lg\\:bg-repeat-y {\n background-repeat: repeat-y !important;\n }\n .lg\\:bg-repeat-round {\n background-repeat: round !important;\n }\n .lg\\:bg-repeat-space {\n background-repeat: space !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:bg-repeat {\n background-repeat: repeat !important;\n }\n .xl\\:bg-no-repeat {\n background-repeat: no-repeat !important;\n }\n .xl\\:bg-repeat-x {\n background-repeat: repeat-x !important;\n }\n .xl\\:bg-repeat-y {\n background-repeat: repeat-y !important;\n }\n .xl\\:bg-repeat-round {\n background-repeat: round !important;\n }\n .xl\\:bg-repeat-space {\n background-repeat: space !important;\n }\n}\n.bg-auto {\n background-size: auto !important;\n}\n\n.bg-cover {\n background-size: cover !important;\n}\n\n.bg-contain {\n background-size: contain !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:bg-auto {\n background-size: auto !important;\n }\n .sm\\:bg-cover {\n background-size: cover !important;\n }\n .sm\\:bg-contain {\n background-size: contain !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:bg-auto {\n background-size: auto !important;\n }\n .md\\:bg-cover {\n background-size: cover !important;\n }\n .md\\:bg-contain {\n background-size: contain !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:bg-auto {\n background-size: auto !important;\n }\n .lg\\:bg-cover {\n background-size: cover !important;\n }\n .lg\\:bg-contain {\n background-size: contain !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:bg-auto {\n background-size: auto !important;\n }\n .xl\\:bg-cover {\n background-size: cover !important;\n }\n .xl\\:bg-contain {\n background-size: contain !important;\n }\n}\n.bg-bottom {\n background-position: bottom !important;\n}\n\n.bg-center {\n background-position: center !important;\n}\n\n.bg-left {\n background-position: left !important;\n}\n\n.bg-left-bottom {\n background-position: left bottom !important;\n}\n\n.bg-left-top {\n background-position: left top !important;\n}\n\n.bg-right {\n background-position: right !important;\n}\n\n.bg-right-bottom {\n background-position: right bottom !important;\n}\n\n.bg-right-top {\n background-position: right top !important;\n}\n\n.bg-top {\n background-position: top !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:bg-bottom {\n background-position: bottom !important;\n }\n .sm\\:bg-center {\n background-position: center !important;\n }\n .sm\\:bg-left {\n background-position: left !important;\n }\n .sm\\:bg-left-bottom {\n background-position: left bottom !important;\n }\n .sm\\:bg-left-top {\n background-position: left top !important;\n }\n .sm\\:bg-right {\n background-position: right !important;\n }\n .sm\\:bg-right-bottom {\n background-position: right bottom !important;\n }\n .sm\\:bg-right-top {\n background-position: right top !important;\n }\n .sm\\:bg-top {\n background-position: top !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:bg-bottom {\n background-position: bottom !important;\n }\n .md\\:bg-center {\n background-position: center !important;\n }\n .md\\:bg-left {\n background-position: left !important;\n }\n .md\\:bg-left-bottom {\n background-position: left bottom !important;\n }\n .md\\:bg-left-top {\n background-position: left top !important;\n }\n .md\\:bg-right {\n background-position: right !important;\n }\n .md\\:bg-right-bottom {\n background-position: right bottom !important;\n }\n .md\\:bg-right-top {\n background-position: right top !important;\n }\n .md\\:bg-top {\n background-position: top !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:bg-bottom {\n background-position: bottom !important;\n }\n .lg\\:bg-center {\n background-position: center !important;\n }\n .lg\\:bg-left {\n background-position: left !important;\n }\n .lg\\:bg-left-bottom {\n background-position: left bottom !important;\n }\n .lg\\:bg-left-top {\n background-position: left top !important;\n }\n .lg\\:bg-right {\n background-position: right !important;\n }\n .lg\\:bg-right-bottom {\n background-position: right bottom !important;\n }\n .lg\\:bg-right-top {\n background-position: right top !important;\n }\n .lg\\:bg-top {\n background-position: top !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:bg-bottom {\n background-position: bottom !important;\n }\n .xl\\:bg-center {\n background-position: center !important;\n }\n .xl\\:bg-left {\n background-position: left !important;\n }\n .xl\\:bg-left-bottom {\n background-position: left bottom !important;\n }\n .xl\\:bg-left-top {\n background-position: left top !important;\n }\n .xl\\:bg-right {\n background-position: right !important;\n }\n .xl\\:bg-right-bottom {\n background-position: right bottom !important;\n }\n .xl\\:bg-right-top {\n background-position: right top !important;\n }\n .xl\\:bg-top {\n background-position: top !important;\n }\n}\n.select-none {\n -webkit-user-select: none !important;\n -moz-user-select: none !important;\n -ms-user-select: none !important;\n user-select: none !important;\n}\n\n.select-text {\n -webkit-user-select: text !important;\n -moz-user-select: text !important;\n -ms-user-select: text !important;\n user-select: text !important;\n}\n\n.select-all {\n -webkit-user-select: all !important;\n -moz-user-select: all !important;\n user-select: all !important;\n}\n\n.select-auto {\n -webkit-user-select: auto !important;\n -moz-user-select: auto !important;\n -ms-user-select: auto !important;\n user-select: auto !important;\n}\n\n.list-none {\n list-style: none !important;\n}\n\n.list-disc {\n list-style: disc !important;\n}\n\n.list-decimal {\n list-style: decimal !important;\n}\n\n.appearance-none {\n -webkit-appearance: none !important;\n -moz-appearance: none !important;\n appearance: none !important;\n}\n\n.outline-none {\n outline: none !important;\n}\n\n.pointer-events-none {\n pointer-events: none !important;\n}\n\n.pointer-events-auto {\n pointer-events: auto !important;\n}\n\n.cursor-auto {\n cursor: auto !important;\n}\n\n.cursor-pointer {\n cursor: pointer !important;\n}\n\n.cursor-wait {\n cursor: wait !important;\n}\n\n.cursor-move {\n cursor: move !important;\n}\n\n.select-none {\n -webkit-user-select: none !important;\n -moz-user-select: none !important;\n -ms-user-select: none !important;\n user-select: none !important;\n}\n\n.select-text {\n -webkit-user-select: text !important;\n -moz-user-select: text !important;\n -ms-user-select: text !important;\n user-select: text !important;\n}\n\n.select-all {\n -webkit-user-select: all !important;\n -moz-user-select: all !important;\n user-select: all !important;\n}\n\n.select-auto {\n -webkit-user-select: auto !important;\n -moz-user-select: auto !important;\n -ms-user-select: auto !important;\n user-select: auto !important;\n}\n\n.opacity-0 {\n opacity: 0 !important;\n}\n\n.opacity-10 {\n opacity: .1 !important;\n}\n\n.opacity-20 {\n opacity: .2 !important;\n}\n\n.opacity-30 {\n opacity: .3 !important;\n}\n\n.opacity-40 {\n opacity: .4 !important;\n}\n\n.opacity-50 {\n opacity: .5 !important;\n}\n\n.opacity-60 {\n opacity: .6 !important;\n}\n\n.opacity-70 {\n opacity: .7 !important;\n}\n\n.opacity-80 {\n opacity: .8 !important;\n}\n\n.opacity-90 {\n opacity: .9 !important;\n}\n\n.opacity-100 {\n opacity: 1 !important;\n}\n\n.transition-none {\n transition-property: none !important;\n}\n\n.transition-all {\n transition-property: all !important;\n}\n\n.transition-colors {\n transition-property: background-color,border-color,color !important;\n}\n\n.transition-transform {\n transition-property: transform !important;\n}\n\n.transition-duration-100 {\n transition-duration: 100ms !important;\n}\n\n.transition-duration-150 {\n transition-duration: 150ms !important;\n}\n\n.transition-duration-200 {\n transition-duration: 200ms !important;\n}\n\n.transition-duration-300 {\n transition-duration: 300ms !important;\n}\n\n.transition-duration-400 {\n transition-duration: 400ms !important;\n}\n\n.transition-duration-500 {\n transition-duration: 500ms !important;\n}\n\n.transition-duration-1000 {\n transition-duration: 1000ms !important;\n}\n\n.transition-duration-2000 {\n transition-duration: 2000ms !important;\n}\n\n.transition-duration-3000 {\n transition-duration: 3000ms !important;\n}\n\n.transition-linear {\n transition-timing-function: linear !important;\n}\n\n.transition-ease-in {\n transition-timing-function: cubic-bezier(0.4, 0, 1, 1) !important;\n}\n\n.transition-ease-out {\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1) !important;\n}\n\n.transition-ease-in-out {\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;\n}\n\n.transition-delay-100 {\n transition-delay: 100ms !important;\n}\n\n.transition-delay-150 {\n transition-delay: 150ms !important;\n}\n\n.transition-delay-200 {\n transition-delay: 200ms !important;\n}\n\n.transition-delay-300 {\n transition-delay: 300ms !important;\n}\n\n.transition-delay-400 {\n transition-delay: 400ms !important;\n}\n\n.transition-delay-500 {\n transition-delay: 500ms !important;\n}\n\n.transition-delay-1000 {\n transition-delay: 1000ms !important;\n}\n\n.translate-x-0 {\n transform: translateX(0%) !important;\n}\n\n.translate-x-100 {\n transform: translateX(100%) !important;\n}\n\n.-translate-x-100 {\n transform: translateX(-100%) !important;\n}\n\n.translate-y-0 {\n transform: translateY(0%) !important;\n}\n\n.translate-y-100 {\n transform: translateY(100%) !important;\n}\n\n.-translate-y-100 {\n transform: translateY(-100%) !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:translate-x-0 {\n transform: translateX(0%) !important;\n }\n .sm\\:translate-x-100 {\n transform: translateX(100%) !important;\n }\n .sm\\:-translate-x-100 {\n transform: translateX(-100%) !important;\n }\n .sm\\:translate-y-0 {\n transform: translateY(0%) !important;\n }\n .sm\\:translate-y-100 {\n transform: translateY(100%) !important;\n }\n .sm\\:-translate-y-100 {\n transform: translateY(-100%) !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:translate-x-0 {\n transform: translateX(0%) !important;\n }\n .md\\:translate-x-100 {\n transform: translateX(100%) !important;\n }\n .md\\:-translate-x-100 {\n transform: translateX(-100%) !important;\n }\n .md\\:translate-y-0 {\n transform: translateY(0%) !important;\n }\n .md\\:translate-y-100 {\n transform: translateY(100%) !important;\n }\n .md\\:-translate-y-100 {\n transform: translateY(-100%) !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:translate-x-0 {\n transform: translateX(0%) !important;\n }\n .lg\\:translate-x-100 {\n transform: translateX(100%) !important;\n }\n .lg\\:-translate-x-100 {\n transform: translateX(-100%) !important;\n }\n .lg\\:translate-y-0 {\n transform: translateY(0%) !important;\n }\n .lg\\:translate-y-100 {\n transform: translateY(100%) !important;\n }\n .lg\\:-translate-y-100 {\n transform: translateY(-100%) !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:translate-x-0 {\n transform: translateX(0%) !important;\n }\n .xl\\:translate-x-100 {\n transform: translateX(100%) !important;\n }\n .xl\\:-translate-x-100 {\n transform: translateX(-100%) !important;\n }\n .xl\\:translate-y-0 {\n transform: translateY(0%) !important;\n }\n .xl\\:translate-y-100 {\n transform: translateY(100%) !important;\n }\n .xl\\:-translate-y-100 {\n transform: translateY(-100%) !important;\n }\n}\n.rotate-45 {\n transform: rotate(45deg) !important;\n}\n\n.-rotate-45 {\n transform: rotate(-45deg) !important;\n}\n\n.rotate-90 {\n transform: rotate(90deg) !important;\n}\n\n.-rotate-90 {\n transform: rotate(-90deg) !important;\n}\n\n.rotate-180 {\n transform: rotate(180deg) !important;\n}\n\n.-rotate-180 {\n transform: rotate(-180deg) !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:rotate-45 {\n transform: rotate(45deg) !important;\n }\n .sm\\:-rotate-45 {\n transform: rotate(-45deg) !important;\n }\n .sm\\:rotate-90 {\n transform: rotate(90deg) !important;\n }\n .sm\\:-rotate-90 {\n transform: rotate(-90deg) !important;\n }\n .sm\\:rotate-180 {\n transform: rotate(180deg) !important;\n }\n .sm\\:-rotate-180 {\n transform: rotate(-180deg) !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:rotate-45 {\n transform: rotate(45deg) !important;\n }\n .md\\:-rotate-45 {\n transform: rotate(-45deg) !important;\n }\n .md\\:rotate-90 {\n transform: rotate(90deg) !important;\n }\n .md\\:-rotate-90 {\n transform: rotate(-90deg) !important;\n }\n .md\\:rotate-180 {\n transform: rotate(180deg) !important;\n }\n .md\\:-rotate-180 {\n transform: rotate(-180deg) !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:rotate-45 {\n transform: rotate(45deg) !important;\n }\n .lg\\:-rotate-45 {\n transform: rotate(-45deg) !important;\n }\n .lg\\:rotate-90 {\n transform: rotate(90deg) !important;\n }\n .lg\\:-rotate-90 {\n transform: rotate(-90deg) !important;\n }\n .lg\\:rotate-180 {\n transform: rotate(180deg) !important;\n }\n .lg\\:-rotate-180 {\n transform: rotate(-180deg) !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:rotate-45 {\n transform: rotate(45deg) !important;\n }\n .xl\\:-rotate-45 {\n transform: rotate(-45deg) !important;\n }\n .xl\\:rotate-90 {\n transform: rotate(90deg) !important;\n }\n .xl\\:-rotate-90 {\n transform: rotate(-90deg) !important;\n }\n .xl\\:rotate-180 {\n transform: rotate(180deg) !important;\n }\n .xl\\:-rotate-180 {\n transform: rotate(-180deg) !important;\n }\n}\n.origin-center {\n transform-origin: center !important;\n}\n\n.origin-top {\n transform-origin: top !important;\n}\n\n.origin-top-right {\n transform-origin: top right !important;\n}\n\n.origin-right {\n transform-origin: right !important;\n}\n\n.origin-bottom-right {\n transform-origin: bottom right !important;\n}\n\n.origin-bottom {\n transform-origin: bottom !important;\n}\n\n.origin-bottom-left {\n transform-origin: bottom left !important;\n}\n\n.origin-left {\n transform-origin: left !important;\n}\n\n.origin-top-left {\n transform-origin: top-left !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:origin-center {\n transform-origin: center !important;\n }\n .sm\\:origin-top {\n transform-origin: top !important;\n }\n .sm\\:origin-top-right {\n transform-origin: top right !important;\n }\n .sm\\:origin-right {\n transform-origin: right !important;\n }\n .sm\\:origin-bottom-right {\n transform-origin: bottom right !important;\n }\n .sm\\:origin-bottom {\n transform-origin: bottom !important;\n }\n .sm\\:origin-bottom-left {\n transform-origin: bottom left !important;\n }\n .sm\\:origin-left {\n transform-origin: left !important;\n }\n .sm\\:origin-top-left {\n transform-origin: top-left !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:origin-center {\n transform-origin: center !important;\n }\n .md\\:origin-top {\n transform-origin: top !important;\n }\n .md\\:origin-top-right {\n transform-origin: top right !important;\n }\n .md\\:origin-right {\n transform-origin: right !important;\n }\n .md\\:origin-bottom-right {\n transform-origin: bottom right !important;\n }\n .md\\:origin-bottom {\n transform-origin: bottom !important;\n }\n .md\\:origin-bottom-left {\n transform-origin: bottom left !important;\n }\n .md\\:origin-left {\n transform-origin: left !important;\n }\n .md\\:origin-top-left {\n transform-origin: top-left !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:origin-center {\n transform-origin: center !important;\n }\n .lg\\:origin-top {\n transform-origin: top !important;\n }\n .lg\\:origin-top-right {\n transform-origin: top right !important;\n }\n .lg\\:origin-right {\n transform-origin: right !important;\n }\n .lg\\:origin-bottom-right {\n transform-origin: bottom right !important;\n }\n .lg\\:origin-bottom {\n transform-origin: bottom !important;\n }\n .lg\\:origin-bottom-left {\n transform-origin: bottom left !important;\n }\n .lg\\:origin-left {\n transform-origin: left !important;\n }\n .lg\\:origin-top-left {\n transform-origin: top-left !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:origin-center {\n transform-origin: center !important;\n }\n .xl\\:origin-top {\n transform-origin: top !important;\n }\n .xl\\:origin-top-right {\n transform-origin: top right !important;\n }\n .xl\\:origin-right {\n transform-origin: right !important;\n }\n .xl\\:origin-bottom-right {\n transform-origin: bottom right !important;\n }\n .xl\\:origin-bottom {\n transform-origin: bottom !important;\n }\n .xl\\:origin-bottom-left {\n transform-origin: bottom left !important;\n }\n .xl\\:origin-left {\n transform-origin: left !important;\n }\n .xl\\:origin-top-left {\n transform-origin: top-left !important;\n }\n}\n@-webkit-keyframes fadein {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes fadein {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@-webkit-keyframes fadeout {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}\n@keyframes fadeout {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}\n@-webkit-keyframes scalein {\n 0% {\n opacity: 0;\n transform: scaleY(0.8);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 1;\n transform: scaleY(1);\n }\n}\n@keyframes scalein {\n 0% {\n opacity: 0;\n transform: scaleY(0.8);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 1;\n transform: scaleY(1);\n }\n}\n@-webkit-keyframes slidedown {\n 0% {\n max-height: 0;\n }\n 100% {\n max-height: auto;\n }\n}\n@keyframes slidedown {\n 0% {\n max-height: 0;\n }\n 100% {\n max-height: auto;\n }\n}\n@-webkit-keyframes slideup {\n 0% {\n max-height: 1000px;\n }\n 100% {\n max-height: 0;\n }\n}\n@keyframes slideup {\n 0% {\n max-height: 1000px;\n }\n 100% {\n max-height: 0;\n }\n}\n@-webkit-keyframes fadeinleft {\n 0% {\n opacity: 0;\n transform: translateX(-100%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 1;\n transform: translateX(0%);\n }\n}\n@keyframes fadeinleft {\n 0% {\n opacity: 0;\n transform: translateX(-100%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 1;\n transform: translateX(0%);\n }\n}\n@-webkit-keyframes fadeoutleft {\n 0% {\n opacity: 1;\n transform: translateX(0%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 0;\n transform: translateX(-100%);\n }\n}\n@keyframes fadeoutleft {\n 0% {\n opacity: 1;\n transform: translateX(0%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 0;\n transform: translateX(-100%);\n }\n}\n@-webkit-keyframes fadeinright {\n 0% {\n opacity: 0;\n transform: translateX(100%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 1;\n transform: translateX(0%);\n }\n}\n@keyframes fadeinright {\n 0% {\n opacity: 0;\n transform: translateX(100%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 1;\n transform: translateX(0%);\n }\n}\n@-webkit-keyframes fadeoutright {\n 0% {\n opacity: 1;\n transform: translateX(0%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 0;\n transform: translateX(100%);\n }\n}\n@keyframes fadeoutright {\n 0% {\n opacity: 1;\n transform: translateX(0%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 0;\n transform: translateX(100%);\n }\n}\n@-webkit-keyframes fadeinup {\n 0% {\n opacity: 0;\n transform: translateY(-100%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 1;\n transform: translateY(0%);\n }\n}\n@keyframes fadeinup {\n 0% {\n opacity: 0;\n transform: translateY(-100%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 1;\n transform: translateY(0%);\n }\n}\n@-webkit-keyframes fadeoutup {\n 0% {\n opacity: 1;\n transform: translateY(0%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 0;\n transform: translateY(-100%);\n }\n}\n@keyframes fadeoutup {\n 0% {\n opacity: 1;\n transform: translateY(0%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 0;\n transform: translateY(-100%);\n }\n}\n@-webkit-keyframes fadeindown {\n 0% {\n opacity: 0;\n transform: translateY(100%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 1;\n transform: translateY(0%);\n }\n}\n@keyframes fadeindown {\n 0% {\n opacity: 0;\n transform: translateY(100%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 1;\n transform: translateY(0%);\n }\n}\n@-webkit-keyframes fadeoutdown {\n 0% {\n opacity: 1;\n transform: translateY(0%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 0;\n transform: translateY(100%);\n }\n}\n@keyframes fadeoutdown {\n 0% {\n opacity: 1;\n transform: translateY(0%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 0;\n transform: translateY(100%);\n }\n}\n@-webkit-keyframes animate-width {\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n}\n@keyframes animate-width {\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n}\n.fadein {\n -webkit-animation: fadein 0.15s linear;\n animation: fadein 0.15s linear;\n}\n\n.fadeout {\n -webkit-animation: fadeout 0.15s linear;\n animation: fadeout 0.15s linear;\n}\n\n.slidedown {\n -webkit-animation: slidedown 0.45s ease-in-out;\n animation: slidedown 0.45s ease-in-out;\n}\n\n.slideup {\n -webkit-animation: slideup 0.45s cubic-bezier(0, 1, 0, 1);\n animation: slideup 0.45s cubic-bezier(0, 1, 0, 1);\n}\n\n.scalein {\n -webkit-animation: scalein 0.15s linear;\n animation: scalein 0.15s linear;\n}\n\n.fadeinleft {\n -webkit-animation: fadeinleft 0.15s linear;\n animation: fadeinleft 0.15s linear;\n}\n\n.fadeoutleft {\n -webkit-animation: fadeoutleft 0.15s linear;\n animation: fadeoutleft 0.15s linear;\n}\n\n.fadeinright {\n -webkit-animation: fadeinright 0.15s linear;\n animation: fadeinright 0.15s linear;\n}\n\n.fadeoutright {\n -webkit-animation: fadeoutright 0.15s linear;\n animation: fadeoutright 0.15s linear;\n}\n\n.fadeinup {\n -webkit-animation: fadeinup 0.15s linear;\n animation: fadeinup 0.15s linear;\n}\n\n.fadeoutup {\n -webkit-animation: fadeoutup 0.15s linear;\n animation: fadeoutup 0.15s linear;\n}\n\n.fadeindown {\n -webkit-animation: fadeindown 0.15s linear;\n animation: fadeindown 0.15s linear;\n}\n\n.fadeoutdown {\n -webkit-animation: fadeoutdown 0.15s linear;\n animation: fadeoutdown 0.15s linear;\n}\n\n.animate-width {\n -webkit-animation: animate-width 1000ms linear;\n animation: animate-width 1000ms linear;\n}\n\n.animation-duration-100 {\n -webkit-animation-duration: 100ms !important;\n animation-duration: 100ms !important;\n}\n\n.animation-duration-150 {\n -webkit-animation-duration: 150ms !important;\n animation-duration: 150ms !important;\n}\n\n.animation-duration-200 {\n -webkit-animation-duration: 200ms !important;\n animation-duration: 200ms !important;\n}\n\n.animation-duration-300 {\n -webkit-animation-duration: 300ms !important;\n animation-duration: 300ms !important;\n}\n\n.animation-duration-400 {\n -webkit-animation-duration: 400ms !important;\n animation-duration: 400ms !important;\n}\n\n.animation-duration-500 {\n -webkit-animation-duration: 500ms !important;\n animation-duration: 500ms !important;\n}\n\n.animation-duration-1000 {\n -webkit-animation-duration: 1000ms !important;\n animation-duration: 1000ms !important;\n}\n\n.animation-duration-2000 {\n -webkit-animation-duration: 2000ms !important;\n animation-duration: 2000ms !important;\n}\n\n.animation-duration-3000 {\n -webkit-animation-duration: 3000ms !important;\n animation-duration: 3000ms !important;\n}\n\n.animation-delay-100 {\n -webkit-animation-delay: 100ms !important;\n animation-delay: 100ms !important;\n}\n\n.animation-delay-150 {\n -webkit-animation-delay: 150ms !important;\n animation-delay: 150ms !important;\n}\n\n.animation-delay-200 {\n -webkit-animation-delay: 200ms !important;\n animation-delay: 200ms !important;\n}\n\n.animation-delay-300 {\n -webkit-animation-delay: 300ms !important;\n animation-delay: 300ms !important;\n}\n\n.animation-delay-400 {\n -webkit-animation-delay: 400ms !important;\n animation-delay: 400ms !important;\n}\n\n.animation-delay-500 {\n -webkit-animation-delay: 500ms !important;\n animation-delay: 500ms !important;\n}\n\n.animation-delay-1000 {\n -webkit-animation-delay: 1000ms !important;\n animation-delay: 1000ms !important;\n}\n\n.animation-iteration-1 {\n -webkit-animation-iteration-count: 1 !important;\n animation-iteration-count: 1 !important;\n}\n\n.animation-iteration-2 {\n -webkit-animation-iteration-count: 2 !important;\n animation-iteration-count: 2 !important;\n}\n\n.animation-iteration-infinite {\n -webkit-animation-iteration-count: infinite !important;\n animation-iteration-count: infinite !important;\n}\n\n.animation-linear {\n -webkit-animation-timing-function: linear !important;\n animation-timing-function: linear !important;\n}\n\n.animation-ease-in {\n -webkit-animation-timing-function: cubic-bezier(0.4, 0, 1, 1) !important;\n animation-timing-function: cubic-bezier(0.4, 0, 1, 1) !important;\n}\n\n.animation-ease-out {\n -webkit-animation-timing-function: cubic-bezier(0, 0, 0.2, 1) !important;\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1) !important;\n}\n\n.animation-ease-in-out {\n -webkit-animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;\n}\n\n.animation-fill-none {\n -webkit-animation-fill-mode: none !important;\n animation-fill-mode: none !important;\n}\n\n.animation-fill-forwards {\n -webkit-animation-fill-mode: forwards !important;\n animation-fill-mode: forwards !important;\n}\n\n.animation-fill-backwards {\n -webkit-animation-fill-mode: backwards !important;\n animation-fill-mode: backwards !important;\n}\n\n.animation-fill-both {\n -webkit-animation-fill-mode: both !important;\n animation-fill-mode: both !important;\n}\n", ""]);
  21360. // Exports
  21361. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
  21362. /***/ }),
  21363. /***/ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primeicons/primeicons.css":
  21364. /*!********************************************************************************************************************************************************************************!*\
  21365. !*** ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primeicons/primeicons.css ***!
  21366. \********************************************************************************************************************************************************************************/
  21367. /***/ ((module, __webpack_exports__, __webpack_require__) => {
  21368. "use strict";
  21369. __webpack_require__.r(__webpack_exports__);
  21370. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21371. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21372. /* harmony export */ });
  21373. /* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
  21374. /* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
  21375. /* harmony import */ var _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../css-loader/dist/runtime/getUrl.js */ "./node_modules/css-loader/dist/runtime/getUrl.js");
  21376. /* harmony import */ var _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1__);
  21377. /* harmony import */ var _fonts_primeicons_eot__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./fonts/primeicons.eot */ "./node_modules/primeicons/fonts/primeicons.eot");
  21378. /* harmony import */ var _fonts_primeicons_ttf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./fonts/primeicons.ttf */ "./node_modules/primeicons/fonts/primeicons.ttf");
  21379. /* harmony import */ var _fonts_primeicons_woff__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./fonts/primeicons.woff */ "./node_modules/primeicons/fonts/primeicons.woff");
  21380. /* harmony import */ var _fonts_primeicons_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./fonts/primeicons.svg */ "./node_modules/primeicons/fonts/primeicons.svg");
  21381. // Imports
  21382. var ___CSS_LOADER_EXPORT___ = _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
  21383. var ___CSS_LOADER_URL_REPLACEMENT_0___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_primeicons_eot__WEBPACK_IMPORTED_MODULE_2__["default"]);
  21384. var ___CSS_LOADER_URL_REPLACEMENT_1___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_primeicons_eot__WEBPACK_IMPORTED_MODULE_2__["default"], { hash: "?#iefix" });
  21385. var ___CSS_LOADER_URL_REPLACEMENT_2___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_primeicons_ttf__WEBPACK_IMPORTED_MODULE_3__["default"]);
  21386. var ___CSS_LOADER_URL_REPLACEMENT_3___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_primeicons_woff__WEBPACK_IMPORTED_MODULE_4__["default"]);
  21387. var ___CSS_LOADER_URL_REPLACEMENT_4___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_primeicons_svg__WEBPACK_IMPORTED_MODULE_5__["default"], { hash: "?#primeicons" });
  21388. // Module
  21389. ___CSS_LOADER_EXPORT___.push([module.id, "@font-face {\n font-family: 'primeicons';\n font-display: block;\n src: url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ");\n src: url(" + ___CSS_LOADER_URL_REPLACEMENT_1___ + ") format('embedded-opentype'), url(" + ___CSS_LOADER_URL_REPLACEMENT_2___ + ") format('truetype'), url(" + ___CSS_LOADER_URL_REPLACEMENT_3___ + ") format('woff'), url(" + ___CSS_LOADER_URL_REPLACEMENT_4___ + ") format('svg');\n font-weight: normal;\n font-style: normal;\n}\n\n.pi {\n font-family: 'primeicons';\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n display: inline-block;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.pi:before {\n --webkit-backface-visibility:hidden;\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n}\n\n.pi-fw {\n width: 1.28571429em;\n text-align: center;\n}\n\n.pi-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(359deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(359deg);\n }\n}\n\n.pi-sort-alt-slash:before {\n content: \"\\e9ee\";\n}\n\n.pi-arrows-h:before {\n content: \"\\e9ec\";\n}\n\n.pi-arrows-v:before {\n content: \"\\e9ed\";\n}\n\n.pi-pound:before {\n content: \"\\e9eb\";\n}\n\n.pi-prime:before {\n content: \"\\e9ea\";\n}\n\n.pi-chart-pie:before {\n content: \"\\e9e9\";\n}\n\n.pi-reddit:before {\n content: \"\\e9e8\";\n}\n\n.pi-code:before {\n content: \"\\e9e7\";\n}\n\n.pi-sync:before {\n content: \"\\e9e6\";\n}\n\n.pi-shopping-bag:before {\n content: \"\\e9e5\";\n}\n\n.pi-server:before {\n content: \"\\e9e4\";\n}\n\n.pi-database:before {\n content: \"\\e9e3\";\n}\n\n.pi-hashtag:before {\n content: \"\\e9e2\";\n}\n\n.pi-bookmark-fill:before {\n content: \"\\e9df\";\n}\n\n.pi-filter-fill:before {\n content: \"\\e9e0\";\n}\n\n.pi-heart-fill:before {\n content: \"\\e9e1\";\n}\n\n.pi-flag-fill:before {\n content: \"\\e9de\";\n}\n\n.pi-circle:before {\n content: \"\\e9dc\";\n}\n\n.pi-circle-fill:before {\n content: \"\\e9dd\";\n}\n\n.pi-bolt:before {\n content: \"\\e9db\";\n}\n\n.pi-history:before {\n content: \"\\e9da\";\n}\n\n.pi-box:before {\n content: \"\\e9d9\";\n}\n\n.pi-at:before {\n content: \"\\e9d8\";\n}\n\n.pi-arrow-up-right:before {\n content: \"\\e9d4\";\n}\n\n.pi-arrow-up-left:before {\n content: \"\\e9d5\";\n}\n\n.pi-arrow-down-left:before {\n content: \"\\e9d6\";\n}\n\n.pi-arrow-down-right:before {\n content: \"\\e9d7\";\n}\n\n.pi-telegram:before {\n content: \"\\e9d3\";\n}\n\n.pi-stop-circle:before {\n content: \"\\e9d2\";\n}\n\n.pi-stop:before {\n content: \"\\e9d1\";\n}\n\n.pi-whatsapp:before {\n content: \"\\e9d0\";\n}\n\n.pi-building:before {\n content: \"\\e9cf\";\n}\n\n.pi-qrcode:before {\n content: \"\\e9ce\";\n}\n\n.pi-car:before {\n content: \"\\e9cd\";\n}\n\n.pi-instagram:before {\n content: \"\\e9cc\";\n}\n\n.pi-linkedin:before {\n content: \"\\e9cb\";\n}\n\n.pi-send:before {\n content: \"\\e9ca\";\n}\n\n.pi-slack:before {\n content: \"\\e9c9\";\n}\n\n.pi-sun:before {\n content: \"\\e9c8\";\n}\n\n.pi-moon:before {\n content: \"\\e9c7\";\n}\n\n.pi-vimeo:before {\n content: \"\\e9c6\";\n}\n\n.pi-youtube:before {\n content: \"\\e9c5\";\n}\n\n.pi-flag:before {\n content: \"\\e9c4\";\n}\n\n.pi-wallet:before {\n content: \"\\e9c3\";\n}\n\n.pi-map:before {\n content: \"\\e9c2\";\n}\n\n.pi-link:before {\n content: \"\\e9c1\";\n}\n\n.pi-credit-card:before {\n content: \"\\e9bf\";\n}\n\n.pi-discord:before {\n content: \"\\e9c0\";\n}\n\n.pi-percentage:before {\n content: \"\\e9be\";\n}\n\n.pi-euro:before {\n content: \"\\e9bd\";\n}\n\n.pi-book:before {\n content: \"\\e9ba\";\n}\n\n.pi-shield:before {\n content: \"\\e9b9\";\n}\n\n.pi-paypal:before {\n content: \"\\e9bb\";\n}\n\n.pi-amazon:before {\n content: \"\\e9bc\";\n}\n\n.pi-phone:before {\n content: \"\\e9b8\";\n}\n\n.pi-filter-slash:before {\n content: \"\\e9b7\";\n}\n\n.pi-facebook:before {\n content: \"\\e9b4\";\n}\n\n.pi-github:before {\n content: \"\\e9b5\";\n}\n\n.pi-twitter:before {\n content: \"\\e9b6\";\n}\n\n.pi-step-backward-alt:before {\n content: \"\\e9ac\";\n}\n\n.pi-step-forward-alt:before {\n content: \"\\e9ad\";\n}\n\n.pi-forward:before {\n content: \"\\e9ae\";\n}\n\n.pi-backward:before {\n content: \"\\e9af\";\n}\n\n.pi-fast-backward:before {\n content: \"\\e9b0\";\n}\n\n.pi-fast-forward:before {\n content: \"\\e9b1\";\n}\n\n.pi-pause:before {\n content: \"\\e9b2\";\n}\n\n.pi-play:before {\n content: \"\\e9b3\";\n}\n\n.pi-compass:before {\n content: \"\\e9ab\";\n}\n\n.pi-id-card:before {\n content: \"\\e9aa\";\n}\n\n.pi-ticket:before {\n content: \"\\e9a9\";\n}\n\n.pi-file-o:before {\n content: \"\\e9a8\";\n}\n\n.pi-reply:before {\n content: \"\\e9a7\";\n}\n\n.pi-directions-alt:before {\n content: \"\\e9a5\";\n}\n\n.pi-directions:before {\n content: \"\\e9a6\";\n}\n\n.pi-thumbs-up:before {\n content: \"\\e9a3\";\n}\n\n.pi-thumbs-down:before {\n content: \"\\e9a4\";\n}\n\n.pi-sort-numeric-down-alt:before {\n content: \"\\e996\";\n}\n\n.pi-sort-numeric-up-alt:before {\n content: \"\\e997\";\n}\n\n.pi-sort-alpha-down-alt:before {\n content: \"\\e998\";\n}\n\n.pi-sort-alpha-up-alt:before {\n content: \"\\e999\";\n}\n\n.pi-sort-numeric-down:before {\n content: \"\\e99a\";\n}\n\n.pi-sort-numeric-up:before {\n content: \"\\e99b\";\n}\n\n.pi-sort-alpha-down:before {\n content: \"\\e99c\";\n}\n\n.pi-sort-alpha-up:before {\n content: \"\\e99d\";\n}\n\n.pi-sort-alt:before {\n content: \"\\e99e\";\n}\n\n.pi-sort-amount-up:before {\n content: \"\\e99f\";\n}\n\n.pi-sort-amount-down:before {\n content: \"\\e9a0\";\n}\n\n.pi-sort-amount-down-alt:before {\n content: \"\\e9a1\";\n}\n\n.pi-sort-amount-up-alt:before {\n content: \"\\e9a2\";\n}\n\n.pi-palette:before {\n content: \"\\e995\";\n}\n\n.pi-undo:before {\n content: \"\\e994\";\n}\n\n.pi-desktop:before {\n content: \"\\e993\";\n}\n\n.pi-sliders-v:before {\n content: \"\\e991\";\n}\n\n.pi-sliders-h:before {\n content: \"\\e992\";\n}\n\n.pi-search-plus:before {\n content: \"\\e98f\";\n}\n\n.pi-search-minus:before {\n content: \"\\e990\";\n}\n\n.pi-file-excel:before {\n content: \"\\e98e\";\n}\n\n.pi-file-pdf:before {\n content: \"\\e98d\";\n}\n\n.pi-check-square:before {\n content: \"\\e98c\";\n}\n\n.pi-chart-line:before {\n content: \"\\e98b\";\n}\n\n.pi-user-edit:before {\n content: \"\\e98a\";\n}\n\n.pi-exclamation-circle:before {\n content: \"\\e989\";\n}\n\n.pi-android:before {\n content: \"\\e985\";\n}\n\n.pi-google:before {\n content: \"\\e986\";\n}\n\n.pi-apple:before {\n content: \"\\e987\";\n}\n\n.pi-microsoft:before {\n content: \"\\e988\";\n}\n\n.pi-heart:before {\n content: \"\\e984\";\n}\n\n.pi-mobile:before {\n content: \"\\e982\";\n}\n\n.pi-tablet:before {\n content: \"\\e983\";\n}\n\n.pi-key:before {\n content: \"\\e981\";\n}\n\n.pi-shopping-cart:before {\n content: \"\\e980\";\n}\n\n.pi-comments:before {\n content: \"\\e97e\";\n}\n\n.pi-comment:before {\n content: \"\\e97f\";\n}\n\n.pi-briefcase:before {\n content: \"\\e97d\";\n}\n\n.pi-bell:before {\n content: \"\\e97c\";\n}\n\n.pi-paperclip:before {\n content: \"\\e97b\";\n}\n\n.pi-share-alt:before {\n content: \"\\e97a\";\n}\n\n.pi-envelope:before {\n content: \"\\e979\";\n}\n\n.pi-volume-down:before {\n content: \"\\e976\";\n}\n\n.pi-volume-up:before {\n content: \"\\e977\";\n}\n\n.pi-volume-off:before {\n content: \"\\e978\";\n}\n\n.pi-eject:before {\n content: \"\\e975\";\n}\n\n.pi-money-bill:before {\n content: \"\\e974\";\n}\n\n.pi-images:before {\n content: \"\\e973\";\n}\n\n.pi-image:before {\n content: \"\\e972\";\n}\n\n.pi-sign-in:before {\n content: \"\\e970\";\n}\n\n.pi-sign-out:before {\n content: \"\\e971\";\n}\n\n.pi-wifi:before {\n content: \"\\e96f\";\n}\n\n.pi-sitemap:before {\n content: \"\\e96e\";\n}\n\n.pi-chart-bar:before {\n content: \"\\e96d\";\n}\n\n.pi-camera:before {\n content: \"\\e96c\";\n}\n\n.pi-dollar:before {\n content: \"\\e96b\";\n}\n\n.pi-lock-open:before {\n content: \"\\e96a\";\n}\n\n.pi-table:before {\n content: \"\\e969\";\n}\n\n.pi-map-marker:before {\n content: \"\\e968\";\n}\n\n.pi-list:before {\n content: \"\\e967\";\n}\n\n.pi-eye-slash:before {\n content: \"\\e965\";\n}\n\n.pi-eye:before {\n content: \"\\e966\";\n}\n\n.pi-folder-open:before {\n content: \"\\e964\";\n}\n\n.pi-folder:before {\n content: \"\\e963\";\n}\n\n.pi-video:before {\n content: \"\\e962\";\n}\n\n.pi-inbox:before {\n content: \"\\e961\";\n}\n\n.pi-lock:before {\n content: \"\\e95f\";\n}\n\n.pi-unlock:before {\n content: \"\\e960\";\n}\n\n.pi-tags:before {\n content: \"\\e95d\";\n}\n\n.pi-tag:before {\n content: \"\\e95e\";\n}\n\n.pi-power-off:before {\n content: \"\\e95c\";\n}\n\n.pi-save:before {\n content: \"\\e95b\";\n}\n\n.pi-question-circle:before {\n content: \"\\e959\";\n}\n\n.pi-question:before {\n content: \"\\e95a\";\n}\n\n.pi-copy:before {\n content: \"\\e957\";\n}\n\n.pi-file:before {\n content: \"\\e958\";\n}\n\n.pi-clone:before {\n content: \"\\e955\";\n}\n\n.pi-calendar-times:before {\n content: \"\\e952\";\n}\n\n.pi-calendar-minus:before {\n content: \"\\e953\";\n}\n\n.pi-calendar-plus:before {\n content: \"\\e954\";\n}\n\n.pi-ellipsis-v:before {\n content: \"\\e950\";\n}\n\n.pi-ellipsis-h:before {\n content: \"\\e951\";\n}\n\n.pi-bookmark:before {\n content: \"\\e94e\";\n}\n\n.pi-globe:before {\n content: \"\\e94f\";\n}\n\n.pi-replay:before {\n content: \"\\e94d\";\n}\n\n.pi-filter:before {\n content: \"\\e94c\";\n}\n\n.pi-print:before {\n content: \"\\e94b\";\n}\n\n.pi-align-right:before {\n content: \"\\e946\";\n}\n\n.pi-align-left:before {\n content: \"\\e947\";\n}\n\n.pi-align-center:before {\n content: \"\\e948\";\n}\n\n.pi-align-justify:before {\n content: \"\\e949\";\n}\n\n.pi-cog:before {\n content: \"\\e94a\";\n}\n\n.pi-cloud-download:before {\n content: \"\\e943\";\n}\n\n.pi-cloud-upload:before {\n content: \"\\e944\";\n}\n\n.pi-cloud:before {\n content: \"\\e945\";\n}\n\n.pi-pencil:before {\n content: \"\\e942\";\n}\n\n.pi-users:before {\n content: \"\\e941\";\n}\n\n.pi-clock:before {\n content: \"\\e940\";\n}\n\n.pi-user-minus:before {\n content: \"\\e93e\";\n}\n\n.pi-user-plus:before {\n content: \"\\e93f\";\n}\n\n.pi-trash:before {\n content: \"\\e93d\";\n}\n\n.pi-external-link:before {\n content: \"\\e93c\";\n}\n\n.pi-window-maximize:before {\n content: \"\\e93b\";\n}\n\n.pi-window-minimize:before {\n content: \"\\e93a\";\n}\n\n.pi-refresh:before {\n content: \"\\e938\";\n}\n \n.pi-user:before {\n content: \"\\e939\";\n}\n\n.pi-exclamation-triangle:before {\n content: \"\\e922\";\n}\n\n.pi-calendar:before {\n content: \"\\e927\";\n}\n\n.pi-chevron-circle-left:before {\n content: \"\\e928\";\n}\n\n.pi-chevron-circle-down:before {\n content: \"\\e929\";\n}\n\n.pi-chevron-circle-right:before {\n content: \"\\e92a\";\n}\n\n.pi-chevron-circle-up:before {\n content: \"\\e92b\";\n}\n\n.pi-angle-double-down:before {\n content: \"\\e92c\";\n}\n\n.pi-angle-double-left:before {\n content: \"\\e92d\";\n}\n\n.pi-angle-double-right:before {\n content: \"\\e92e\";\n}\n\n.pi-angle-double-up:before {\n content: \"\\e92f\";\n}\n\n.pi-angle-down:before {\n content: \"\\e930\";\n}\n\n.pi-angle-left:before {\n content: \"\\e931\";\n}\n\n.pi-angle-right:before {\n content: \"\\e932\";\n}\n\n.pi-angle-up:before {\n content: \"\\e933\";\n}\n\n.pi-upload:before {\n content: \"\\e934\";\n}\n\n.pi-download:before {\n content: \"\\e956\";\n}\n\n.pi-ban:before {\n content: \"\\e935\";\n}\n\n.pi-star-fill:before {\n content: \"\\e936\";\n}\n\n.pi-star:before {\n content: \"\\e937\";\n}\n\n.pi-chevron-left:before {\n content: \"\\e900\";\n}\n\n.pi-chevron-right:before {\n content: \"\\e901\";\n}\n\n.pi-chevron-down:before {\n content: \"\\e902\";\n}\n\n.pi-chevron-up:before {\n content: \"\\e903\";\n}\n\n.pi-caret-left:before {\n content: \"\\e904\";\n}\n\n.pi-caret-right:before {\n content: \"\\e905\";\n}\n\n.pi-caret-down:before {\n content: \"\\e906\";\n}\n\n.pi-caret-up:before {\n content: \"\\e907\";\n}\n\n.pi-search:before {\n content: \"\\e908\";\n}\n\n.pi-check:before {\n content: \"\\e909\";\n}\n\n.pi-check-circle:before {\n content: \"\\e90a\";\n}\n\n.pi-times:before {\n content: \"\\e90b\";\n}\n\n.pi-times-circle:before {\n content: \"\\e90c\";\n}\n\n.pi-plus:before {\n content: \"\\e90d\";\n}\n\n.pi-plus-circle:before {\n content: \"\\e90e\";\n}\n\n.pi-minus:before {\n content: \"\\e90f\";\n}\n\n.pi-minus-circle:before {\n content: \"\\e910\";\n}\n\n.pi-circle-on:before {\n content: \"\\e911\";\n}\n\n.pi-circle-off:before {\n content: \"\\e912\";\n}\n\n.pi-sort-down:before {\n content: \"\\e913\";\n}\n\n.pi-sort-up:before {\n content: \"\\e914\";\n}\n\n.pi-sort:before {\n content: \"\\e915\";\n}\n\n.pi-step-backward:before {\n content: \"\\e916\";\n}\n\n.pi-step-forward:before {\n content: \"\\e917\";\n}\n\n.pi-th-large:before {\n content: \"\\e918\";\n}\n\n.pi-arrow-down:before {\n content: \"\\e919\";\n}\n\n.pi-arrow-left:before {\n content: \"\\e91a\";\n}\n\n.pi-arrow-right:before {\n content: \"\\e91b\";\n}\n\n.pi-arrow-up:before {\n content: \"\\e91c\";\n}\n\n.pi-bars:before {\n content: \"\\e91d\";\n}\n\n.pi-arrow-circle-down:before {\n content: \"\\e91e\";\n}\n\n.pi-arrow-circle-left:before {\n content: \"\\e91f\";\n}\n\n.pi-arrow-circle-right:before {\n content: \"\\e920\";\n}\n\n.pi-arrow-circle-up:before {\n content: \"\\e921\";\n}\n\n.pi-info:before {\n content: \"\\e923\";\n}\n\n.pi-info-circle:before {\n content: \"\\e924\";\n}\n\n.pi-home:before {\n content: \"\\e925\";\n}\n\n.pi-spinner:before {\n content: \"\\e926\";\n}\n", ""]);
  21390. // Exports
  21391. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
  21392. /***/ }),
  21393. /***/ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primevue/resources/primevue.min.css":
  21394. /*!******************************************************************************************************************************************************************************************!*\
  21395. !*** ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primevue/resources/primevue.min.css ***!
  21396. \******************************************************************************************************************************************************************************************/
  21397. /***/ ((module, __webpack_exports__, __webpack_require__) => {
  21398. "use strict";
  21399. __webpack_require__.r(__webpack_exports__);
  21400. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21401. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21402. /* harmony export */ });
  21403. /* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
  21404. /* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
  21405. /* harmony import */ var _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../css-loader/dist/runtime/getUrl.js */ "./node_modules/css-loader/dist/runtime/getUrl.js");
  21406. /* harmony import */ var _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1__);
  21407. /* harmony import */ var _images_color_png__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./images/color.png */ "./node_modules/primevue/resources/images/color.png");
  21408. /* harmony import */ var _images_hue_png__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./images/hue.png */ "./node_modules/primevue/resources/images/hue.png");
  21409. // Imports
  21410. var ___CSS_LOADER_EXPORT___ = _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
  21411. var ___CSS_LOADER_URL_REPLACEMENT_0___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_images_color_png__WEBPACK_IMPORTED_MODULE_2__["default"]);
  21412. var ___CSS_LOADER_URL_REPLACEMENT_1___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_images_hue_png__WEBPACK_IMPORTED_MODULE_3__["default"]);
  21413. // Module
  21414. ___CSS_LOADER_EXPORT___.push([module.id, ".p-component,.p-component *{box-sizing:border-box}.p-hidden{display:none}.p-hidden-space{visibility:hidden}.p-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.p-hidden-accessible input,.p-hidden-accessible select{transform:scale(0)}.p-reset{margin:0;padding:0;border:0;outline:0;text-decoration:none;font-size:100%;list-style:none}.p-disabled,.p-disabled *{cursor:default !important;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.p-component-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.p-overflow-hidden{overflow:hidden}.p-unselectable-text{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.p-scrollbar-measure{width:100px;height:100px;overflow:scroll;position:absolute;top:-9999px}@-webkit-keyframes p-fadein{0%{opacity:0}100%{opacity:1}}@keyframes p-fadein{0%{opacity:0}100%{opacity:1}}input[type=\"button\"],input[type=\"submit\"],input[type=\"reset\"],input[type=\"file\"]::-webkit-file-upload-button,button{border-radius:0}.p-link{text-align:left;background-color:transparent;margin:0;padding:0;border:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.p-link:disabled{cursor:default}.p-connected-overlay{opacity:0;transform:scaleY(0.8);transition:transform .12s cubic-bezier(0,0,0.2,1),opacity .12s cubic-bezier(0,0,0.2,1)}.p-connected-overlay-visible{opacity:1;transform:scaleY(1)}.p-connected-overlay-hidden{opacity:0;transform:scaleY(1);transition:opacity .1s linear}.p-connected-overlay-enter-from{opacity:0;transform:scaleY(0.8)}.p-connected-overlay-leave-to{opacity:0}.p-connected-overlay-enter-active{transition:transform .12s cubic-bezier(0,0,0.2,1),opacity .12s cubic-bezier(0,0,0.2,1)}.p-connected-overlay-leave-active{transition:opacity .1s linear}.p-toggleable-content-enter-from,.p-toggleable-content-leave-to{max-height:0}.p-toggleable-content-enter-to,.p-toggleable-content-leave-from{max-height:1000px}.p-toggleable-content-leave-active{overflow:hidden;transition:max-height .45s cubic-bezier(0,1,0,1)}.p-toggleable-content-enter-active{overflow:hidden;transition:max-height 1s ease-in-out}.p-sr-only{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal !important}.p-badge{display:inline-block;border-radius:10px;text-align:center;padding:0 .5rem}.p-overlay-badge{position:relative}.p-overlay-badge .p-badge{position:absolute;top:0;right:0;transform:translate(50%,-50%);transform-origin:100% 0;margin:0}.p-badge-dot{width:.5rem;min-width:.5rem;height:.5rem;border-radius:50%;padding:0}.p-badge-no-gutter{padding:0;border-radius:50%}.p-button{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}.p-button-label{flex:1 1 auto}.p-button-icon-right{order:1}.p-button:disabled{cursor:default}.p-button-icon-only{justify-content:center}.p-button-icon-only .p-button-label{visibility:hidden;width:0;flex:0 0 auto}.p-button-vertical{flex-direction:column}.p-button-icon-bottom{order:2}.p-buttonset .p-button{margin:0}.p-buttonset .p-button:not(:last-child){border-right:0 none}.p-buttonset .p-button:not(:first-of-type):not(:last-of-type){border-radius:0}.p-buttonset .p-button:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}.p-buttonset .p-button:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}.p-buttonset .p-button:focus{position:relative;z-index:1}.p-button-label{transition:all .2s}.p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-box{display:flex;justify-content:center;align-items:center}.p-colorpicker-panel .p-colorpicker-color{background:transparent url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ") no-repeat left top}.p-colorpicker-panel .p-colorpicker-hue{background:transparent url(" + ___CSS_LOADER_URL_REPLACEMENT_1___ + ") no-repeat left top}.p-inputtext{margin:0}.p-fluid .p-inputtext{width:100%}.p-inputgroup{display:flex;align-items:stretch;width:100%}.p-inputgroup-addon{display:flex;align-items:center;justify-content:center}.p-inputgroup .p-float-label{display:flex;align-items:stretch;width:100%}.p-inputgroup .p-inputtext,.p-fluid .p-inputgroup .p-inputtext,.p-inputgroup .p-inputwrapper,.p-fluid .p-inputgroup .p-input{flex:1 1 auto;width:1%}.p-float-label{display:block;position:relative}.p-float-label label{position:absolute;pointer-events:none;top:50%;margin-top:-.5rem;transition-property:all;transition-timing-function:ease;line-height:1}.p-float-label textarea ~ label{top:1rem}.p-float-label input:focus ~ label,.p-float-label input.p-filled ~ label,.p-float-label textarea:focus ~ label,.p-float-label textarea.p-filled ~ label,.p-float-label .p-inputwrapper-focus ~ label,.p-float-label .p-inputwrapper-filled ~ label{top:-.75rem;font-size:12px}.p-float-label .input:-webkit-autofill ~ label{top:-20px;font-size:12px}.p-input-icon-left,.p-input-icon-right{position:relative;display:inline-block}.p-input-icon-left>i,.p-input-icon-right>i{position:absolute;top:50%;margin-top:-.5rem}.p-fluid .p-input-icon-left,.p-fluid .p-input-icon-right{display:block;width:100%}.p-radiobutton{display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:bottom}.p-radiobutton-box{display:flex;justify-content:center;align-items:center}.p-radiobutton-icon{-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0) scale(.1);border-radius:50%;visibility:hidden}.p-radiobutton-box.p-highlight .p-radiobutton-icon{transform:translateZ(0) scale(1.0,1.0);visibility:visible}.p-ripple{overflow:hidden;position:relative}.p-ink{display:block;position:absolute;background:rgba(255,255,255,0.5);border-radius:100%;transform:scale(0);pointer-events:none}.p-ink-active{-webkit-animation:ripple .4s linear;animation:ripple .4s linear}.p-ripple-disabled .p-ink{display:none !important}@-webkit-keyframes ripple{100%{opacity:0;transform:scale(2.5)}}@keyframes ripple{100%{opacity:0;transform:scale(2.5)}}.p-tooltip{position:absolute;display:none;padding:.25em .5rem;max-width:12.5rem}.p-tooltip.p-tooltip-right,.p-tooltip.p-tooltip-left{padding:0 .25rem}.p-tooltip.p-tooltip-top,.p-tooltip.p-tooltip-bottom{padding:.25em 0}.p-tooltip .p-tooltip-text{white-space:pre-line;word-break:break-word}.p-tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.p-tooltip-right .p-tooltip-arrow{top:50%;left:0;margin-top:-.25rem;border-width:.25em .25em .25em 0}.p-tooltip-left .p-tooltip-arrow{top:50%;right:0;margin-top:-.25rem;border-width:.25em 0 .25em .25rem}.p-tooltip.p-tooltip-top{padding:.25em 0}.p-tooltip-top .p-tooltip-arrow{bottom:0;left:50%;margin-left:-.25rem;border-width:.25em .25em 0}.p-tooltip-bottom .p-tooltip-arrow{top:0;left:50%;margin-left:-.25rem;border-width:0 .25em .25rem}", ""]);
  21415. // Exports
  21416. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
  21417. /***/ }),
  21418. /***/ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primevue/resources/themes/tailwind-light/theme.css":
  21419. /*!*********************************************************************************************************************************************************************************************************!*\
  21420. !*** ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primevue/resources/themes/tailwind-light/theme.css ***!
  21421. \*********************************************************************************************************************************************************************************************************/
  21422. /***/ ((module, __webpack_exports__, __webpack_require__) => {
  21423. "use strict";
  21424. __webpack_require__.r(__webpack_exports__);
  21425. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21426. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21427. /* harmony export */ });
  21428. /* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
  21429. /* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
  21430. /* harmony import */ var _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../css-loader/dist/runtime/getUrl.js */ "./node_modules/css-loader/dist/runtime/getUrl.js");
  21431. /* harmony import */ var _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1__);
  21432. /* harmony import */ var _fonts_Inter_Light_woff2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./fonts/Inter-Light.woff2 */ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Light.woff2");
  21433. /* harmony import */ var _fonts_Inter_Light_woff__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./fonts/Inter-Light.woff */ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Light.woff");
  21434. /* harmony import */ var _fonts_Inter_Regular_woff2__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./fonts/Inter-Regular.woff2 */ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Regular.woff2");
  21435. /* harmony import */ var _fonts_Inter_Regular_woff__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./fonts/Inter-Regular.woff */ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Regular.woff");
  21436. /* harmony import */ var _fonts_Inter_Medium_woff2__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./fonts/Inter-Medium.woff2 */ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Medium.woff2");
  21437. /* harmony import */ var _fonts_Inter_Medium_woff__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./fonts/Inter-Medium.woff */ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Medium.woff");
  21438. /* harmony import */ var _fonts_Inter_SemiBold_woff2__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./fonts/Inter-SemiBold.woff2 */ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff2");
  21439. /* harmony import */ var _fonts_Inter_SemiBold_woff__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./fonts/Inter-SemiBold.woff */ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff");
  21440. /* harmony import */ var _fonts_Inter_Bold_woff2__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./fonts/Inter-Bold.woff2 */ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Bold.woff2");
  21441. /* harmony import */ var _fonts_Inter_Bold_woff__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./fonts/Inter-Bold.woff */ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Bold.woff");
  21442. // Imports
  21443. var ___CSS_LOADER_EXPORT___ = _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
  21444. var ___CSS_LOADER_URL_REPLACEMENT_0___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_Inter_Light_woff2__WEBPACK_IMPORTED_MODULE_2__["default"]);
  21445. var ___CSS_LOADER_URL_REPLACEMENT_1___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_Inter_Light_woff__WEBPACK_IMPORTED_MODULE_3__["default"]);
  21446. var ___CSS_LOADER_URL_REPLACEMENT_2___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_Inter_Regular_woff2__WEBPACK_IMPORTED_MODULE_4__["default"]);
  21447. var ___CSS_LOADER_URL_REPLACEMENT_3___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_Inter_Regular_woff__WEBPACK_IMPORTED_MODULE_5__["default"]);
  21448. var ___CSS_LOADER_URL_REPLACEMENT_4___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_Inter_Medium_woff2__WEBPACK_IMPORTED_MODULE_6__["default"]);
  21449. var ___CSS_LOADER_URL_REPLACEMENT_5___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_Inter_Medium_woff__WEBPACK_IMPORTED_MODULE_7__["default"]);
  21450. var ___CSS_LOADER_URL_REPLACEMENT_6___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_Inter_SemiBold_woff2__WEBPACK_IMPORTED_MODULE_8__["default"]);
  21451. var ___CSS_LOADER_URL_REPLACEMENT_7___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_Inter_SemiBold_woff__WEBPACK_IMPORTED_MODULE_9__["default"]);
  21452. var ___CSS_LOADER_URL_REPLACEMENT_8___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_Inter_Bold_woff2__WEBPACK_IMPORTED_MODULE_10__["default"]);
  21453. var ___CSS_LOADER_URL_REPLACEMENT_9___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_Inter_Bold_woff__WEBPACK_IMPORTED_MODULE_11__["default"]);
  21454. // Module
  21455. ___CSS_LOADER_EXPORT___.push([module.id, ":root {\n --surface-a:#ffffff;\n --surface-b:#fafafa;\n --surface-c:#f4f4f5;\n --surface-d:#e5e7eb;\n --surface-e:#ffffff;\n --surface-f:#ffffff;\n --text-color:#3f3f46;\n --text-color-secondary:#71717A;\n --primary-color:#4F46E5;\n --primary-color-text:#ffffff;\n --font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;\n --surface-0: #ffffff;\n --surface-50: #FAFAFA;\n --surface-100: #F4F4F5;\n --surface-200: #E4E4E7;\n --surface-300: #D4D4D8;\n --surface-400: #A1A1AA;\n --surface-500: #71717A;\n --surface-600: #52525B;\n --surface-700: #3F3F46;\n --surface-800: #27272A;\n --surface-900: #18181B;\n --gray-50: #FAFAFA;\n --gray-100: #F4F4F5;\n --gray-200: #E4E4E7;\n --gray-300: #D4D4D8;\n --gray-400: #A1A1AA;\n --gray-500: #71717A;\n --gray-600: #52525B;\n --gray-700: #3F3F46;\n --gray-800: #27272A;\n --gray-900: #18181B;\n --content-padding:1.25rem;\n --inline-spacing:0.5rem;\n --border-radius:0.375rem;\n --surface-ground:#FAFAFA;\n --surface-section:#ffffff;\n --surface-card:#ffffff;\n --surface-overlay:#ffffff;\n --surface-border:#e5e7eb;\n --surface-hover: #f4f4f5;\n --focus-ring: 0 0 0 1px #6366F1;\n --maskbg: rgba(0, 0, 0, 0.4);\n}\n\n@font-face {\n font-family: \"Inter\";\n font-style: normal;\n font-weight: 300;\n src: local(\"\"), url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ") format(\"woff2\"), url(" + ___CSS_LOADER_URL_REPLACEMENT_1___ + ") format(\"woff\");\n /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */\n}\n@font-face {\n font-family: \"Inter\";\n font-style: normal;\n font-weight: 400;\n src: local(\"\"), url(" + ___CSS_LOADER_URL_REPLACEMENT_2___ + ") format(\"woff2\"), url(" + ___CSS_LOADER_URL_REPLACEMENT_3___ + ") format(\"woff\");\n /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */\n}\n@font-face {\n font-family: \"Inter\";\n font-style: normal;\n font-weight: 500;\n src: local(\"\"), url(" + ___CSS_LOADER_URL_REPLACEMENT_4___ + ") format(\"woff2\"), url(" + ___CSS_LOADER_URL_REPLACEMENT_5___ + ") format(\"woff\");\n /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */\n}\n@font-face {\n font-family: \"Inter\";\n font-style: normal;\n font-weight: 600;\n src: local(\"\"), url(" + ___CSS_LOADER_URL_REPLACEMENT_6___ + ") format(\"woff2\"), url(" + ___CSS_LOADER_URL_REPLACEMENT_7___ + ") format(\"woff\");\n /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */\n}\n@font-face {\n font-family: \"Inter\";\n font-style: normal;\n font-weight: 700;\n src: local(\"\"), url(" + ___CSS_LOADER_URL_REPLACEMENT_8___ + ") format(\"woff2\"), url(" + ___CSS_LOADER_URL_REPLACEMENT_9___ + ") format(\"woff\");\n /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */\n}\n* {\n box-sizing: border-box;\n}\n\n.p-component {\n font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n font-size: 1rem;\n font-weight: normal;\n}\n\n.p-component-overlay {\n background-color: rgba(0, 0, 0, 0.4);\n transition-duration: 0.2s;\n}\n\n.p-disabled, .p-component:disabled {\n opacity: 0.6;\n}\n\n.p-error {\n color: #e24c4c;\n}\n\n.p-text-secondary {\n color: #71717A;\n}\n\n.pi {\n font-size: 1rem;\n}\n\n.p-link {\n font-size: 1rem;\n font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n border-radius: 0.375rem;\n}\n.p-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n\n.p-component-overlay-enter {\n -webkit-animation: p-component-overlay-enter-animation 150ms forwards;\n animation: p-component-overlay-enter-animation 150ms forwards;\n}\n\n.p-component-overlay-leave {\n -webkit-animation: p-component-overlay-leave-animation 150ms forwards;\n animation: p-component-overlay-leave-animation 150ms forwards;\n}\n\n@-webkit-keyframes p-component-overlay-enter-animation {\n from {\n background-color: transparent;\n }\n to {\n background-color: var(--maskbg);\n }\n}\n\n@keyframes p-component-overlay-enter-animation {\n from {\n background-color: transparent;\n }\n to {\n background-color: var(--maskbg);\n }\n}\n@-webkit-keyframes p-component-overlay-leave-animation {\n from {\n background-color: var(--maskbg);\n }\n to {\n background-color: transparent;\n }\n}\n@keyframes p-component-overlay-leave-animation {\n from {\n background-color: var(--maskbg);\n }\n to {\n background-color: transparent;\n }\n}\n\n:root {\n --blue-50:#f5f9ff;\n --blue-100:#d0e1fd;\n --blue-200:#abc9fb;\n --blue-300:#85b2f9;\n --blue-400:#609af8;\n --blue-500:#3b82f6;\n --blue-600:#326fd1;\n --blue-700:#295bac;\n --blue-800:#204887;\n --blue-900:#183462;\n --green-50:#f4fcf7;\n --green-100:#caf1d8;\n --green-200:#a0e6ba;\n --green-300:#76db9b;\n --green-400:#4cd07d;\n --green-500:#22c55e;\n --green-600:#1da750;\n --green-700:#188a42;\n --green-800:#136c34;\n --green-900:#0e4f26;\n --yellow-50:#fefbf3;\n --yellow-100:#faedc4;\n --yellow-200:#f6de95;\n --yellow-300:#f2d066;\n --yellow-400:#eec137;\n --yellow-500:#eab308;\n --yellow-600:#c79807;\n --yellow-700:#a47d06;\n --yellow-800:#816204;\n --yellow-900:#5e4803;\n --cyan-50:#f3fbfd;\n --cyan-100:#c3edf5;\n --cyan-200:#94e0ed;\n --cyan-300:#65d2e4;\n --cyan-400:#35c4dc;\n --cyan-500:#06b6d4;\n --cyan-600:#059bb4;\n --cyan-700:#047f94;\n --cyan-800:#036475;\n --cyan-900:#024955;\n --pink-50:#fef6fa;\n --pink-100:#fad3e7;\n --pink-200:#f7b0d3;\n --pink-300:#f38ec0;\n --pink-400:#f06bac;\n --pink-500:#ec4899;\n --pink-600:#c93d82;\n --pink-700:#a5326b;\n --pink-800:#822854;\n --pink-900:#5e1d3d;\n --indigo-50:#f7f7fe;\n --indigo-100:#dadafc;\n --indigo-200:#bcbdf9;\n --indigo-300:#9ea0f6;\n --indigo-400:#8183f4;\n --indigo-500:#6366f1;\n --indigo-600:#5457cd;\n --indigo-700:#4547a9;\n --indigo-800:#363885;\n --indigo-900:#282960;\n --teal-50:#f3fbfb;\n --teal-100:#c7eeea;\n --teal-200:#9ae0d9;\n --teal-300:#6dd3c8;\n --teal-400:#41c5b7;\n --teal-500:#14b8a6;\n --teal-600:#119c8d;\n --teal-700:#0e8174;\n --teal-800:#0b655b;\n --teal-900:#084a42;\n --orange-50:#fff8f3;\n --orange-100:#feddc7;\n --orange-200:#fcc39b;\n --orange-300:#fba86f;\n --orange-400:#fa8e42;\n --orange-500:#f97316;\n --orange-600:#d46213;\n --orange-700:#ae510f;\n --orange-800:#893f0c;\n --orange-900:#642e09;\n --bluegray-50:#f7f8f9;\n --bluegray-100:#dadee3;\n --bluegray-200:#bcc3cd;\n --bluegray-300:#9fa9b7;\n --bluegray-400:#818ea1;\n --bluegray-500:#64748b;\n --bluegray-600:#556376;\n --bluegray-700:#465161;\n --bluegray-800:#37404c;\n --bluegray-900:#282e38;\n --purple-50:#fbf7ff;\n --purple-100:#ead6fd;\n --purple-200:#dab6fc;\n --purple-300:#c996fa;\n --purple-400:#b975f9;\n --purple-500:#a855f7;\n --purple-600:#8f48d2;\n --purple-700:#763cad;\n --purple-800:#5c2f88;\n --purple-900:#432263;\n --red-50:#fef6f6;\n --red-100:#fbd2d2;\n --red-200:#f8afaf;\n --red-300:#f58b8b;\n --red-400:#f26868;\n --red-500:#ef4444;\n --red-600:#cb3a3a;\n --red-700:#a73030;\n --red-800:#832525;\n --red-900:#601b1b;\n}\n\n.p-autocomplete .p-autocomplete-loader {\n right: 0.75rem;\n}\n.p-autocomplete.p-autocomplete-dd .p-autocomplete-loader {\n right: 3.75rem;\n}\n.p-autocomplete .p-autocomplete-multiple-container {\n padding: 0.375rem 0.75rem;\n}\n.p-autocomplete .p-autocomplete-multiple-container:not(.p-disabled):hover {\n border-color: #d4d4d8;\n}\n.p-autocomplete .p-autocomplete-multiple-container:not(.p-disabled).p-focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n border-color: #4F46E5;\n}\n.p-autocomplete .p-autocomplete-multiple-container .p-autocomplete-input-token {\n padding: 0.375rem 0;\n}\n.p-autocomplete .p-autocomplete-multiple-container .p-autocomplete-input-token input {\n font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n font-size: 1rem;\n color: #3f3f46;\n padding: 0;\n margin: 0;\n}\n.p-autocomplete .p-autocomplete-multiple-container .p-autocomplete-token {\n padding: 0.375rem 0.75rem;\n margin-right: 0.5rem;\n background: #e5e7eb;\n color: #3f3f46;\n border-radius: 16px;\n}\n.p-autocomplete .p-autocomplete-multiple-container .p-autocomplete-token .p-autocomplete-token-icon {\n margin-left: 0.5rem;\n}\n.p-autocomplete.p-invalid.p-component > .p-inputtext {\n border-color: #f0a9a7;\n}\n\n.p-autocomplete-panel {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n border-radius: 0.375rem;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n.p-autocomplete-panel .p-autocomplete-items {\n padding: 0.25rem 0;\n}\n.p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item {\n margin: 0;\n padding: 0.75rem 1rem;\n border: 0 none;\n color: #3f3f46;\n background: transparent;\n transition: none;\n border-radius: 0;\n}\n.p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item:hover {\n color: #18181B;\n background: #f4f4f5;\n}\n.p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item-group {\n margin: 0;\n padding: 0.75rem 1rem;\n color: #3f3f46;\n background: #ffffff;\n font-weight: 600;\n}\n\n.p-calendar.p-invalid.p-component > .p-inputtext {\n border-color: #f0a9a7;\n}\n\n.p-datepicker {\n padding: 0.5rem;\n background: #ffffff;\n color: #3f3f46;\n border: 1px solid #d4d4d8;\n border-radius: 0.375rem;\n}\n.p-datepicker:not(.p-datepicker-inline) {\n background: #ffffff;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n.p-datepicker:not(.p-datepicker-inline) .p-datepicker-header {\n background: #ffffff;\n}\n.p-datepicker .p-datepicker-header {\n padding: 0.5rem;\n color: #3f3f46;\n background: #ffffff;\n font-weight: 600;\n margin: 0;\n border-bottom: 1px solid #e5e7eb;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-datepicker .p-datepicker-header .p-datepicker-prev,\n.p-datepicker .p-datepicker-header .p-datepicker-next {\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n}\n.p-datepicker .p-datepicker-header .p-datepicker-prev:enabled:hover,\n.p-datepicker .p-datepicker-header .p-datepicker-next:enabled:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-datepicker .p-datepicker-header .p-datepicker-prev:focus,\n.p-datepicker .p-datepicker-header .p-datepicker-next:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-datepicker .p-datepicker-header .p-datepicker-title {\n line-height: 2rem;\n}\n.p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-year,\n.p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-month {\n color: #3f3f46;\n transition: none;\n font-weight: 600;\n padding: 0.5rem;\n}\n.p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-year:enabled:hover,\n.p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-month:enabled:hover {\n color: #4F46E5;\n}\n.p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-month {\n margin-right: 0.5rem;\n}\n.p-datepicker table {\n font-size: 1rem;\n margin: 0.5rem 0;\n}\n.p-datepicker table th {\n padding: 0.5rem;\n}\n.p-datepicker table th > span {\n width: 2.5rem;\n height: 2.5rem;\n}\n.p-datepicker table td {\n padding: 0.5rem;\n}\n.p-datepicker table td > span {\n width: 2.5rem;\n height: 2.5rem;\n border-radius: 50%;\n transition: none;\n border: 1px solid transparent;\n}\n.p-datepicker table td > span.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-datepicker table td > span:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-datepicker table td.p-datepicker-today > span {\n background: #d4d4d8;\n color: #3f3f46;\n border-color: transparent;\n}\n.p-datepicker table td.p-datepicker-today > span.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-datepicker .p-datepicker-buttonbar {\n padding: 1rem 0;\n border-top: 1px solid #f3f4f6;\n}\n.p-datepicker .p-datepicker-buttonbar .p-button {\n width: auto;\n}\n.p-datepicker .p-timepicker {\n border-top: 1px solid #f3f4f6;\n padding: 0.5rem;\n}\n.p-datepicker .p-timepicker button {\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n}\n.p-datepicker .p-timepicker button:enabled:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-datepicker .p-timepicker button:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-datepicker .p-timepicker button:last-child {\n margin-top: 0.2em;\n}\n.p-datepicker .p-timepicker span {\n font-size: 1.25rem;\n}\n.p-datepicker .p-timepicker > div {\n padding: 0 0.5rem;\n}\n.p-datepicker.p-datepicker-timeonly .p-timepicker {\n border-top: 0 none;\n}\n.p-datepicker .p-monthpicker {\n margin: 0.5rem 0;\n}\n.p-datepicker .p-monthpicker .p-monthpicker-month {\n padding: 0.5rem;\n transition: none;\n border-radius: 0.375rem;\n}\n.p-datepicker .p-monthpicker .p-monthpicker-month.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-datepicker .p-yearpicker {\n margin: 0.5rem 0;\n}\n.p-datepicker .p-yearpicker .p-yearpicker-year {\n padding: 0.5rem;\n transition: none;\n border-radius: 0.375rem;\n}\n.p-datepicker .p-yearpicker .p-yearpicker-year.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-datepicker.p-datepicker-multiple-month .p-datepicker-group {\n border-left: 1px solid #f3f4f6;\n padding-right: 0.5rem;\n padding-left: 0.5rem;\n padding-top: 0;\n padding-bottom: 0;\n}\n.p-datepicker.p-datepicker-multiple-month .p-datepicker-group:first-child {\n padding-left: 0;\n border-left: 0 none;\n}\n.p-datepicker.p-datepicker-multiple-month .p-datepicker-group:last-child {\n padding-right: 0;\n}\n.p-datepicker:not(.p-disabled) table td span:not(.p-highlight):not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-datepicker:not(.p-disabled) table td span:not(.p-highlight):not(.p-disabled):focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-disabled):not(.p-highlight):hover {\n background: #f4f4f5;\n}\n.p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-disabled):focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-datepicker:not(.p-disabled) .p-yearpicker .p-yearpicker-year:not(.p-disabled):not(.p-highlight):hover {\n background: #f4f4f5;\n}\n.p-datepicker:not(.p-disabled) .p-yearpicker .p-yearpicker-year:not(.p-disabled):focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n\n@media screen and (max-width: 769px) {\n .p-datepicker table th, .p-datepicker table td {\n padding: 0;\n }\n}\n.p-cascadeselect {\n background: #ffffff;\n border: 1px solid #d4d4d8;\n transition: none;\n border-radius: 0.375rem;\n}\n.p-cascadeselect:not(.p-disabled):hover {\n border-color: #d4d4d8;\n}\n.p-cascadeselect:not(.p-disabled).p-focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n border-color: #4F46E5;\n}\n.p-cascadeselect .p-cascadeselect-label {\n background: transparent;\n border: 0 none;\n padding: 0.75rem 0.75rem;\n}\n.p-cascadeselect .p-cascadeselect-label.p-placeholder {\n color: #71717A;\n}\n.p-cascadeselect .p-cascadeselect-label:enabled:focus {\n outline: 0 none;\n box-shadow: none;\n}\n.p-cascadeselect .p-cascadeselect-trigger {\n background: transparent;\n color: #71717A;\n width: 3rem;\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem;\n}\n.p-cascadeselect.p-invalid.p-component {\n border-color: #f0a9a7;\n}\n\n.p-cascadeselect-panel {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n border-radius: 0.375rem;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n.p-cascadeselect-panel .p-cascadeselect-items {\n padding: 0.25rem 0;\n}\n.p-cascadeselect-panel .p-cascadeselect-items .p-cascadeselect-item {\n margin: 0;\n border: 0 none;\n color: #3f3f46;\n background: transparent;\n transition: none;\n border-radius: 0;\n}\n.p-cascadeselect-panel .p-cascadeselect-items .p-cascadeselect-item .p-cascadeselect-item-content {\n padding: 0.75rem 1rem;\n}\n.p-cascadeselect-panel .p-cascadeselect-items .p-cascadeselect-item .p-cascadeselect-item-content:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-cascadeselect-panel .p-cascadeselect-items .p-cascadeselect-item.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-cascadeselect-panel .p-cascadeselect-items .p-cascadeselect-item:not(.p-highlight):not(.p-disabled):hover {\n color: #18181B;\n background: #f4f4f5;\n}\n.p-cascadeselect-panel .p-cascadeselect-items .p-cascadeselect-item .p-cascadeselect-group-icon {\n font-size: 0.875rem;\n}\n\n.p-input-filled .p-cascadeselect {\n background: #fafafa;\n}\n.p-input-filled .p-cascadeselect:not(.p-disabled):hover {\n background-color: #fafafa;\n}\n.p-input-filled .p-cascadeselect:not(.p-disabled).p-focus {\n background-color: #ffffff;\n}\n\n.p-checkbox {\n width: 16px;\n height: 16px;\n}\n.p-checkbox .p-checkbox-box {\n border: 2px solid #d4d4d8;\n background: #ffffff;\n width: 16px;\n height: 16px;\n color: #3f3f46;\n border-radius: 0.375rem;\n transition: none;\n}\n.p-checkbox .p-checkbox-box .p-checkbox-icon {\n transition-duration: 0.2s;\n color: #ffffff;\n font-size: 10px;\n}\n.p-checkbox .p-checkbox-box.p-highlight {\n border-color: #4F46E5;\n background: #4F46E5;\n}\n.p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box:hover {\n border-color: #d4d4d8;\n}\n.p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box.p-focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n border-color: #4F46E5;\n}\n.p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box.p-highlight:hover {\n border-color: #4F46E5;\n background: #4F46E5;\n color: #ffffff;\n}\n.p-checkbox.p-invalid > .p-checkbox-box {\n border-color: #f0a9a7;\n}\n\n.p-input-filled .p-checkbox .p-checkbox-box {\n background-color: #fafafa;\n}\n.p-input-filled .p-checkbox .p-checkbox-box.p-highlight {\n background: #4F46E5;\n}\n.p-input-filled .p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box:hover {\n background-color: #fafafa;\n}\n.p-input-filled .p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box.p-highlight:hover {\n background: #4F46E5;\n}\n\n.p-chips .p-chips-multiple-container {\n padding: 0.375rem 0.75rem;\n}\n.p-chips .p-chips-multiple-container:not(.p-disabled):hover {\n border-color: #d4d4d8;\n}\n.p-chips .p-chips-multiple-container:not(.p-disabled).p-focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n border-color: #4F46E5;\n}\n.p-chips .p-chips-multiple-container .p-chips-token {\n padding: 0.375rem 0.75rem;\n margin-right: 0.5rem;\n background: #e5e7eb;\n color: #3f3f46;\n border-radius: 16px;\n}\n.p-chips .p-chips-multiple-container .p-chips-token .p-chips-token-icon {\n margin-left: 0.5rem;\n}\n.p-chips .p-chips-multiple-container .p-chips-input-token {\n padding: 0.375rem 0;\n}\n.p-chips .p-chips-multiple-container .p-chips-input-token input {\n font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n font-size: 1rem;\n color: #3f3f46;\n padding: 0;\n margin: 0;\n}\n.p-chips.p-invalid.p-component > .p-inputtext {\n border-color: #f0a9a7;\n}\n\n.p-colorpicker-preview {\n width: 2rem;\n height: 2rem;\n}\n\n.p-colorpicker-panel {\n background: #27272A;\n border: 1px solid #18181B;\n}\n.p-colorpicker-panel .p-colorpicker-color-handle,\n.p-colorpicker-panel .p-colorpicker-hue-handle {\n border-color: #ffffff;\n}\n\n.p-colorpicker-overlay-panel {\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n\n.p-dropdown {\n background: #ffffff;\n border: 1px solid #d4d4d8;\n transition: none;\n border-radius: 0.375rem;\n}\n.p-dropdown:not(.p-disabled):hover {\n border-color: #d4d4d8;\n}\n.p-dropdown:not(.p-disabled).p-focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n border-color: #4F46E5;\n}\n.p-dropdown.p-dropdown-clearable .p-dropdown-label {\n padding-right: 1.75rem;\n}\n.p-dropdown .p-dropdown-label {\n background: transparent;\n border: 0 none;\n}\n.p-dropdown .p-dropdown-label.p-placeholder {\n color: #71717A;\n}\n.p-dropdown .p-dropdown-label:enabled:focus {\n outline: 0 none;\n box-shadow: none;\n}\n.p-dropdown .p-dropdown-trigger {\n background: transparent;\n color: #71717A;\n width: 3rem;\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem;\n}\n.p-dropdown .p-dropdown-clear-icon {\n color: #71717A;\n right: 3rem;\n}\n.p-dropdown.p-invalid.p-component {\n border-color: #f0a9a7;\n}\n\n.p-dropdown-panel {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n border-radius: 0.375rem;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n.p-dropdown-panel .p-dropdown-header {\n padding: 0.5rem 0.75rem;\n border-bottom: 0 none;\n color: #3f3f46;\n background: #fafafa;\n margin: 0;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-dropdown-panel .p-dropdown-header .p-dropdown-filter {\n padding-right: 1.75rem;\n margin-right: -1.75rem;\n}\n.p-dropdown-panel .p-dropdown-header .p-dropdown-filter-icon {\n right: 0.75rem;\n color: #71717A;\n}\n.p-dropdown-panel .p-dropdown-items {\n padding: 0.25rem 0;\n}\n.p-dropdown-panel .p-dropdown-items .p-dropdown-item {\n margin: 0;\n padding: 0.75rem 1rem;\n border: 0 none;\n color: #3f3f46;\n background: transparent;\n transition: none;\n border-radius: 0;\n}\n.p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-dropdown-panel .p-dropdown-items .p-dropdown-item:not(.p-highlight):not(.p-disabled):hover {\n color: #18181B;\n background: #f4f4f5;\n}\n.p-dropdown-panel .p-dropdown-items .p-dropdown-item-group {\n margin: 0;\n padding: 0.75rem 1rem;\n color: #3f3f46;\n background: #ffffff;\n font-weight: 600;\n}\n.p-dropdown-panel .p-dropdown-items .p-dropdown-empty-message {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n background: transparent;\n}\n\n.p-input-filled .p-dropdown {\n background: #fafafa;\n}\n.p-input-filled .p-dropdown:not(.p-disabled):hover {\n background-color: #fafafa;\n}\n.p-input-filled .p-dropdown:not(.p-disabled).p-focus {\n background-color: #ffffff;\n}\n.p-input-filled .p-dropdown:not(.p-disabled).p-focus .p-inputtext {\n background-color: transparent;\n}\n\n.p-editor-container .p-editor-toolbar {\n background: #fafafa;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-editor-container .p-editor-toolbar.ql-snow {\n border: 1px solid #e5e7eb;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-stroke {\n stroke: #71717A;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-fill {\n fill: #71717A;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker .ql-picker-label {\n border: 0 none;\n color: #71717A;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker .ql-picker-label:hover {\n color: #3f3f46;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker .ql-picker-label:hover .ql-stroke {\n stroke: #3f3f46;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker .ql-picker-label:hover .ql-fill {\n fill: #3f3f46;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {\n color: #3f3f46;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke {\n stroke: #3f3f46;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill {\n fill: #3f3f46;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {\n background: #ffffff;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n border-radius: 0.375rem;\n padding: 0.25rem 0;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item {\n color: #3f3f46;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item:hover {\n color: #18181B;\n background: #f4f4f5;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded:not(.ql-icon-picker) .ql-picker-item {\n padding: 0.75rem 1rem;\n}\n.p-editor-container .p-editor-content {\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.p-editor-container .p-editor-content.ql-snow {\n border: 1px solid #e5e7eb;\n}\n.p-editor-container .p-editor-content .ql-editor {\n background: #ffffff;\n color: #3f3f46;\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.p-editor-container .ql-snow.ql-toolbar button:hover,\n.p-editor-container .ql-snow.ql-toolbar button:focus {\n color: #3f3f46;\n}\n.p-editor-container .ql-snow.ql-toolbar button:hover .ql-stroke,\n.p-editor-container .ql-snow.ql-toolbar button:focus .ql-stroke {\n stroke: #3f3f46;\n}\n.p-editor-container .ql-snow.ql-toolbar button:hover .ql-fill,\n.p-editor-container .ql-snow.ql-toolbar button:focus .ql-fill {\n fill: #3f3f46;\n}\n.p-editor-container .ql-snow.ql-toolbar button.ql-active,\n.p-editor-container .ql-snow.ql-toolbar .ql-picker-label.ql-active,\n.p-editor-container .ql-snow.ql-toolbar .ql-picker-item.ql-selected {\n color: #4F46E5;\n}\n.p-editor-container .ql-snow.ql-toolbar button.ql-active .ql-stroke,\n.p-editor-container .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,\n.p-editor-container .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke {\n stroke: #4F46E5;\n}\n.p-editor-container .ql-snow.ql-toolbar button.ql-active .ql-fill,\n.p-editor-container .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,\n.p-editor-container .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill {\n fill: #4F46E5;\n}\n.p-editor-container .ql-snow.ql-toolbar button.ql-active .ql-picker-label,\n.p-editor-container .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-picker-label,\n.p-editor-container .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-picker-label {\n color: #4F46E5;\n}\n\n.p-inputgroup-addon {\n background: #fafafa;\n color: #71717A;\n border-top: 1px solid #d4d4d8;\n border-left: 1px solid #d4d4d8;\n border-bottom: 1px solid #d4d4d8;\n padding: 0.75rem 0.75rem;\n min-width: 3rem;\n}\n.p-inputgroup-addon:last-child {\n border-right: 1px solid #d4d4d8;\n}\n\n.p-inputgroup > .p-component,\n.p-inputgroup > .p-inputwrapper > .p-inputtext,\n.p-inputgroup > .p-float-label > .p-component {\n border-radius: 0;\n margin: 0;\n}\n.p-inputgroup > .p-component + .p-inputgroup-addon,\n.p-inputgroup > .p-inputwrapper > .p-inputtext + .p-inputgroup-addon,\n.p-inputgroup > .p-float-label > .p-component + .p-inputgroup-addon {\n border-left: 0 none;\n}\n.p-inputgroup > .p-component:focus,\n.p-inputgroup > .p-inputwrapper > .p-inputtext:focus,\n.p-inputgroup > .p-float-label > .p-component:focus {\n z-index: 1;\n}\n.p-inputgroup > .p-component:focus ~ label,\n.p-inputgroup > .p-inputwrapper > .p-inputtext:focus ~ label,\n.p-inputgroup > .p-float-label > .p-component:focus ~ label {\n z-index: 1;\n}\n\n.p-inputgroup-addon:first-child,\n.p-inputgroup button:first-child,\n.p-inputgroup input:first-child,\n.p-inputgroup > .p-inputwrapper:first-child,\n.p-inputgroup > .p-inputwrapper:first-child > .p-inputtext {\n border-top-left-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n\n.p-inputgroup .p-float-label:first-child input {\n border-top-left-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n\n.p-inputgroup-addon:last-child,\n.p-inputgroup button:last-child,\n.p-inputgroup input:last-child,\n.p-inputgroup > .p-inputwrapper:last-child,\n.p-inputgroup > .p-inputwrapper:last-child > .p-inputtext {\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem;\n}\n\n.p-inputgroup .p-float-label:last-child input {\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem;\n}\n\n.p-fluid .p-inputgroup .p-button {\n width: auto;\n}\n.p-fluid .p-inputgroup .p-button.p-button-icon-only {\n width: 3rem;\n}\n\n.p-inputnumber.p-invalid.p-component > .p-inputtext {\n border-color: #f0a9a7;\n}\n\n.p-inputswitch {\n width: 3rem;\n height: 1.75rem;\n}\n.p-inputswitch .p-inputswitch-slider {\n background: #d4d4d8;\n transition: none;\n border-radius: 30px;\n}\n.p-inputswitch .p-inputswitch-slider:before {\n background: #ffffff;\n width: 1.25rem;\n height: 1.25rem;\n left: 0.25rem;\n margin-top: -0.625rem;\n border-radius: 50%;\n transition-duration: 0.2s;\n}\n.p-inputswitch.p-inputswitch-checked .p-inputswitch-slider:before {\n transform: translateX(1.25rem);\n}\n.p-inputswitch.p-focus .p-inputswitch-slider {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-inputswitch:not(.p-disabled):hover .p-inputswitch-slider {\n background: #bebec4;\n}\n.p-inputswitch.p-inputswitch-checked .p-inputswitch-slider {\n background: #4F46E5;\n}\n.p-inputswitch.p-inputswitch-checked .p-inputswitch-slider:before {\n background: #ffffff;\n}\n.p-inputswitch.p-inputswitch-checked:not(.p-disabled):hover .p-inputswitch-slider {\n background: #4338CA;\n}\n.p-inputswitch.p-invalid {\n border-color: #f0a9a7;\n}\n\n.p-inputtext {\n font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n font-size: 1rem;\n color: #3f3f46;\n background: #ffffff;\n padding: 0.75rem 0.75rem;\n border: 1px solid #d4d4d8;\n transition: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n border-radius: 0.375rem;\n}\n.p-inputtext:enabled:hover {\n border-color: #d4d4d8;\n}\n.p-inputtext:enabled:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n border-color: #4F46E5;\n}\n.p-inputtext.p-invalid.p-component {\n border-color: #f0a9a7;\n}\n.p-inputtext.p-inputtext-sm {\n font-size: 0.875rem;\n padding: 0.65625rem 0.65625rem;\n}\n.p-inputtext.p-inputtext-lg {\n font-size: 1.25rem;\n padding: 0.9375rem 0.9375rem;\n}\n\n.p-float-label > label {\n left: 0.75rem;\n color: #71717A;\n transition-duration: 0.2s;\n}\n\n.p-input-icon-left > i:first-of-type {\n left: 0.75rem;\n color: #71717A;\n}\n\n.p-input-icon-left > .p-inputtext {\n padding-left: 2.5rem;\n}\n\n.p-input-icon-left.p-float-label > label {\n left: 2.5rem;\n}\n\n.p-input-icon-right > i:last-of-type {\n right: 0.75rem;\n color: #71717A;\n}\n\n.p-input-icon-right > .p-inputtext {\n padding-right: 2.5rem;\n}\n\n::-webkit-input-placeholder {\n color: #71717A;\n}\n\n:-moz-placeholder {\n color: #71717A;\n}\n\n::-moz-placeholder {\n color: #71717A;\n}\n\n:-ms-input-placeholder {\n color: #71717A;\n}\n\n.p-input-filled .p-inputtext {\n background-color: #fafafa;\n}\n.p-input-filled .p-inputtext:enabled:hover {\n background-color: #fafafa;\n}\n.p-input-filled .p-inputtext:enabled:focus {\n background-color: #ffffff;\n}\n\n.p-inputtext-sm .p-inputtext {\n font-size: 0.875rem;\n padding: 0.65625rem 0.65625rem;\n}\n\n.p-inputtext-lg .p-inputtext {\n font-size: 1.25rem;\n padding: 0.9375rem 0.9375rem;\n}\n\n.p-listbox {\n background: #ffffff;\n color: #3f3f46;\n border: 1px solid #d4d4d8;\n border-radius: 0.375rem;\n}\n.p-listbox .p-listbox-header {\n padding: 0.5rem 0.75rem;\n border-bottom: 0 none;\n color: #3f3f46;\n background: #fafafa;\n margin: 0;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-listbox .p-listbox-header .p-listbox-filter {\n padding-right: 1.75rem;\n}\n.p-listbox .p-listbox-header .p-listbox-filter-icon {\n right: 0.75rem;\n color: #71717A;\n}\n.p-listbox .p-listbox-list {\n padding: 0.25rem 0;\n}\n.p-listbox .p-listbox-list .p-listbox-item {\n margin: 0;\n padding: 0.75rem 1rem;\n border: 0 none;\n color: #3f3f46;\n transition: none;\n border-radius: 0;\n}\n.p-listbox .p-listbox-list .p-listbox-item.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-listbox .p-listbox-list .p-listbox-item:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-listbox .p-listbox-list .p-listbox-item-group {\n margin: 0;\n padding: 0.75rem 1rem;\n color: #3f3f46;\n background: #ffffff;\n font-weight: 600;\n}\n.p-listbox .p-listbox-list .p-listbox-empty-message {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n background: transparent;\n}\n.p-listbox:not(.p-disabled) .p-listbox-item:not(.p-highlight):not(.p-disabled):hover {\n color: #18181B;\n background: #f4f4f5;\n}\n.p-listbox.p-invalid {\n border-color: #f0a9a7;\n}\n\n.p-multiselect {\n background: #ffffff;\n border: 1px solid #d4d4d8;\n transition: none;\n border-radius: 0.375rem;\n}\n.p-multiselect:not(.p-disabled):hover {\n border-color: #d4d4d8;\n}\n.p-multiselect:not(.p-disabled).p-focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n border-color: #4F46E5;\n}\n.p-multiselect .p-multiselect-label {\n padding: 0.75rem 0.75rem;\n transition: none;\n}\n.p-multiselect .p-multiselect-label.p-placeholder {\n color: #71717A;\n}\n.p-multiselect.p-multiselect-chip .p-multiselect-token {\n padding: 0.375rem 0.75rem;\n margin-right: 0.5rem;\n background: #e5e7eb;\n color: #3f3f46;\n border-radius: 16px;\n}\n.p-multiselect.p-multiselect-chip .p-multiselect-token .p-multiselect-token-icon {\n margin-left: 0.5rem;\n}\n.p-multiselect .p-multiselect-trigger {\n background: transparent;\n color: #71717A;\n width: 3rem;\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem;\n}\n.p-multiselect.p-invalid.p-component {\n border-color: #f0a9a7;\n}\n\n.p-inputwrapper-filled.p-multiselect.p-multiselect-chip .p-multiselect-label {\n padding: 0.375rem 0.75rem;\n}\n\n.p-multiselect-panel {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n border-radius: 0.375rem;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n.p-multiselect-panel .p-multiselect-header {\n padding: 0.5rem 0.75rem;\n border-bottom: 0 none;\n color: #3f3f46;\n background: #fafafa;\n margin: 0;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-multiselect-panel .p-multiselect-header .p-multiselect-filter-container .p-inputtext {\n padding-right: 1.75rem;\n}\n.p-multiselect-panel .p-multiselect-header .p-multiselect-filter-container .p-multiselect-filter-icon {\n right: 0.75rem;\n color: #71717A;\n}\n.p-multiselect-panel .p-multiselect-header .p-checkbox {\n margin-right: 0.5rem;\n}\n.p-multiselect-panel .p-multiselect-header .p-multiselect-close {\n margin-left: 0.5rem;\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n}\n.p-multiselect-panel .p-multiselect-header .p-multiselect-close:enabled:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-multiselect-panel .p-multiselect-header .p-multiselect-close:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-multiselect-panel .p-multiselect-items {\n padding: 0.25rem 0;\n}\n.p-multiselect-panel .p-multiselect-items .p-multiselect-item {\n margin: 0;\n padding: 0.75rem 1rem;\n border: 0 none;\n color: #3f3f46;\n background: transparent;\n transition: none;\n border-radius: 0;\n}\n.p-multiselect-panel .p-multiselect-items .p-multiselect-item.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-multiselect-panel .p-multiselect-items .p-multiselect-item:not(.p-highlight):not(.p-disabled):hover {\n color: #18181B;\n background: #f4f4f5;\n}\n.p-multiselect-panel .p-multiselect-items .p-multiselect-item:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-multiselect-panel .p-multiselect-items .p-multiselect-item .p-checkbox {\n margin-right: 0.5rem;\n}\n.p-multiselect-panel .p-multiselect-items .p-multiselect-item-group {\n margin: 0;\n padding: 0.75rem 1rem;\n color: #3f3f46;\n background: #ffffff;\n font-weight: 600;\n}\n.p-multiselect-panel .p-multiselect-items .p-multiselect-empty-message {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n background: transparent;\n}\n\n.p-input-filled .p-multiselect {\n background: #fafafa;\n}\n.p-input-filled .p-multiselect:not(.p-disabled):hover {\n background-color: #fafafa;\n}\n.p-input-filled .p-multiselect:not(.p-disabled).p-focus {\n background-color: #ffffff;\n}\n\n.p-password.p-invalid.p-component > .p-inputtext {\n border-color: #f0a9a7;\n}\n\n.p-password-panel {\n padding: 1.25rem;\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n border-radius: 0.375rem;\n}\n.p-password-panel .p-password-meter {\n margin-bottom: 0.5rem;\n background: #e5e7eb;\n}\n.p-password-panel .p-password-meter .p-password-strength.weak {\n background: #EF4444;\n}\n.p-password-panel .p-password-meter .p-password-strength.medium {\n background: #F59E0B;\n}\n.p-password-panel .p-password-meter .p-password-strength.strong {\n background: #22C55E;\n}\n\n.p-radiobutton {\n width: 16px;\n height: 16px;\n}\n.p-radiobutton .p-radiobutton-box {\n border: 2px solid #d4d4d8;\n background: #ffffff;\n width: 16px;\n height: 16px;\n color: #3f3f46;\n border-radius: 50%;\n transition: none;\n}\n.p-radiobutton .p-radiobutton-box:not(.p-disabled):not(.p-highlight):hover {\n border-color: #d4d4d8;\n}\n.p-radiobutton .p-radiobutton-box:not(.p-disabled).p-focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n border-color: #4F46E5;\n}\n.p-radiobutton .p-radiobutton-box .p-radiobutton-icon {\n width: 6px;\n height: 6px;\n transition-duration: 0.2s;\n background-color: #ffffff;\n}\n.p-radiobutton .p-radiobutton-box.p-highlight {\n border-color: #4F46E5;\n background: #4F46E5;\n}\n.p-radiobutton .p-radiobutton-box.p-highlight:not(.p-disabled):hover {\n border-color: #4F46E5;\n background: #4F46E5;\n color: #ffffff;\n}\n.p-radiobutton.p-invalid > .p-radiobutton-box {\n border-color: #f0a9a7;\n}\n.p-radiobutton:focus {\n outline: 0 none;\n}\n\n.p-input-filled .p-radiobutton .p-radiobutton-box {\n background-color: #fafafa;\n}\n.p-input-filled .p-radiobutton .p-radiobutton-box:not(.p-disabled):hover {\n background-color: #fafafa;\n}\n.p-input-filled .p-radiobutton .p-radiobutton-box.p-highlight {\n background: #4F46E5;\n}\n.p-input-filled .p-radiobutton .p-radiobutton-box.p-highlight:not(.p-disabled):hover {\n background: #4F46E5;\n}\n\n.p-rating .p-rating-icon {\n color: #3f3f46;\n margin-left: 0.5rem;\n transition: none;\n font-size: 1.143rem;\n}\n.p-rating .p-rating-icon.p-rating-cancel {\n color: #EF4444;\n}\n.p-rating .p-rating-icon:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-rating .p-rating-icon:first-child {\n margin-left: 0;\n}\n.p-rating .p-rating-icon.pi-star-fill {\n color: #4F46E5;\n}\n.p-rating:not(.p-disabled):not(.p-readonly) .p-rating-icon:hover {\n color: #4F46E5;\n}\n.p-rating:not(.p-disabled):not(.p-readonly) .p-rating-icon.p-rating-cancel:hover {\n color: #DC2626;\n}\n\n.p-selectbutton .p-button {\n background: #ffffff;\n border: 1px solid #d4d4d8;\n color: #3f3f46;\n transition: none;\n}\n.p-selectbutton .p-button .p-button-icon-left,\n.p-selectbutton .p-button .p-button-icon-right {\n color: #71717A;\n}\n.p-selectbutton .p-button:not(.p-disabled):not(.p-highlight):hover {\n background: #f4f4f5;\n border-color: #d4d4d8;\n color: #3f3f46;\n}\n.p-selectbutton .p-button:not(.p-disabled):not(.p-highlight):hover .p-button-icon-left,\n.p-selectbutton .p-button:not(.p-disabled):not(.p-highlight):hover .p-button-icon-right {\n color: #71717A;\n}\n.p-selectbutton .p-button.p-highlight {\n background: #4F46E5;\n border-color: #4F46E5;\n color: #ffffff;\n}\n.p-selectbutton .p-button.p-highlight .p-button-icon-left,\n.p-selectbutton .p-button.p-highlight .p-button-icon-right {\n color: #ffffff;\n}\n.p-selectbutton .p-button.p-highlight:hover {\n background: #4338CA;\n border-color: #4338CA;\n color: #ffffff;\n}\n.p-selectbutton .p-button.p-highlight:hover .p-button-icon-left,\n.p-selectbutton .p-button.p-highlight:hover .p-button-icon-right {\n color: #ffffff;\n}\n.p-selectbutton.p-invalid > .p-button {\n border-color: #f0a9a7;\n}\n\n.p-slider {\n background: #e5e7eb;\n border: 0 none;\n border-radius: 0.375rem;\n}\n.p-slider.p-slider-horizontal {\n height: 0.286rem;\n}\n.p-slider.p-slider-horizontal .p-slider-handle {\n margin-top: -0.5715rem;\n margin-left: -0.5715rem;\n}\n.p-slider.p-slider-vertical {\n width: 0.286rem;\n}\n.p-slider.p-slider-vertical .p-slider-handle {\n margin-left: -0.5715rem;\n margin-bottom: -0.5715rem;\n}\n.p-slider .p-slider-handle {\n height: 1.143rem;\n width: 1.143rem;\n background: #ffffff;\n border: 2px solid #4F46E5;\n border-radius: 50%;\n transition: none;\n}\n.p-slider .p-slider-handle:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-slider .p-slider-range {\n background: #4F46E5;\n}\n.p-slider:not(.p-disabled) .p-slider-handle:hover {\n background: #4F46E5;\n border-color: #4F46E5;\n}\n\n.p-treeselect {\n background: #ffffff;\n border: 1px solid #d4d4d8;\n transition: none;\n border-radius: 0.375rem;\n}\n.p-treeselect:not(.p-disabled):hover {\n border-color: #d4d4d8;\n}\n.p-treeselect:not(.p-disabled).p-focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n border-color: #4F46E5;\n}\n.p-treeselect .p-treeselect-label {\n padding: 0.75rem 0.75rem;\n transition: none;\n}\n.p-treeselect .p-treeselect-label.p-placeholder {\n color: #71717A;\n}\n.p-treeselect.p-treeselect-chip .p-treeselect-token {\n padding: 0.375rem 0.75rem;\n margin-right: 0.5rem;\n background: #e5e7eb;\n color: #3f3f46;\n border-radius: 16px;\n}\n.p-treeselect .p-treeselect-trigger {\n background: transparent;\n color: #71717A;\n width: 3rem;\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem;\n}\n.p-treeselect.p-invalid.p-component {\n border-color: #f0a9a7;\n}\n\n.p-inputwrapper-filled.p-treeselect.p-treeselect-chip .p-treeselect-label {\n padding: 0.375rem 0.75rem;\n}\n\n.p-treeselect-panel {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n border-radius: 0.375rem;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n.p-treeselect-panel .p-treeselect-items-wrapper .p-tree {\n border: 0 none;\n}\n.p-treeselect-panel .p-treeselect-items-wrapper .p-treeselect-empty-message {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n background: transparent;\n}\n\n.p-input-filled .p-treeselect {\n background: #fafafa;\n}\n.p-input-filled .p-treeselect:not(.p-disabled):hover {\n background-color: #fafafa;\n}\n.p-input-filled .p-treeselect:not(.p-disabled).p-focus {\n background-color: #ffffff;\n}\n\n.p-togglebutton.p-button {\n background: #ffffff;\n border: 1px solid #d4d4d8;\n color: #3f3f46;\n transition: none;\n}\n.p-togglebutton.p-button .p-button-icon-left,\n.p-togglebutton.p-button .p-button-icon-right {\n color: #71717A;\n}\n.p-togglebutton.p-button:not(.p-disabled):not(.p-highlight):hover {\n background: #f4f4f5;\n border-color: #d4d4d8;\n color: #3f3f46;\n}\n.p-togglebutton.p-button:not(.p-disabled):not(.p-highlight):hover .p-button-icon-left,\n.p-togglebutton.p-button:not(.p-disabled):not(.p-highlight):hover .p-button-icon-right {\n color: #71717A;\n}\n.p-togglebutton.p-button.p-highlight {\n background: #4F46E5;\n border-color: #4F46E5;\n color: #ffffff;\n}\n.p-togglebutton.p-button.p-highlight .p-button-icon-left,\n.p-togglebutton.p-button.p-highlight .p-button-icon-right {\n color: #ffffff;\n}\n.p-togglebutton.p-button.p-highlight:hover {\n background: #4338CA;\n border-color: #4338CA;\n color: #ffffff;\n}\n.p-togglebutton.p-button.p-highlight:hover .p-button-icon-left,\n.p-togglebutton.p-button.p-highlight:hover .p-button-icon-right {\n color: #ffffff;\n}\n.p-togglebutton.p-button.p-invalid > .p-button {\n border-color: #f0a9a7;\n}\n\n.p-button {\n color: #ffffff;\n background: #4F46E5;\n border: 1px solid #4F46E5;\n padding: 0.75rem 1rem;\n font-size: 1rem;\n transition: none;\n border-radius: 0.375rem;\n}\n.p-button:enabled:hover {\n background: #4338CA;\n color: #ffffff;\n border-color: #4338CA;\n}\n.p-button:enabled:active {\n background: #4338CA;\n color: #ffffff;\n border-color: #4338CA;\n}\n.p-button.p-button-outlined {\n background-color: transparent;\n color: #4F46E5;\n border: 1px solid;\n}\n.p-button.p-button-outlined:enabled:hover {\n background: rgba(79, 70, 229, 0.04);\n color: #4F46E5;\n border: 1px solid;\n}\n.p-button.p-button-outlined:enabled:active {\n background: rgba(79, 70, 229, 0.16);\n color: #4F46E5;\n border: 1px solid;\n}\n.p-button.p-button-outlined.p-button-plain {\n color: #71717A;\n border-color: #71717A;\n}\n.p-button.p-button-outlined.p-button-plain:enabled:hover {\n background: #f4f4f5;\n color: #71717A;\n}\n.p-button.p-button-outlined.p-button-plain:enabled:active {\n background: #e5e7eb;\n color: #71717A;\n}\n.p-button.p-button-text {\n background-color: transparent;\n color: #4F46E5;\n border-color: transparent;\n}\n.p-button.p-button-text:enabled:hover {\n background: rgba(79, 70, 229, 0.04);\n color: #4F46E5;\n border-color: transparent;\n}\n.p-button.p-button-text:enabled:active {\n background: rgba(79, 70, 229, 0.16);\n color: #4F46E5;\n border-color: transparent;\n}\n.p-button.p-button-text.p-button-plain {\n color: #71717A;\n}\n.p-button.p-button-text.p-button-plain:enabled:hover {\n background: #f4f4f5;\n color: #71717A;\n}\n.p-button.p-button-text.p-button-plain:enabled:active {\n background: #e5e7eb;\n color: #71717A;\n}\n.p-button:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-button .p-button-icon-left {\n margin-right: 0.5rem;\n}\n.p-button .p-button-icon-right {\n margin-left: 0.5rem;\n}\n.p-button .p-button-icon-bottom {\n margin-top: 0.5rem;\n}\n.p-button .p-button-icon-top {\n margin-bottom: 0.5rem;\n}\n.p-button .p-badge {\n margin-left: 0.5rem;\n min-width: 1rem;\n height: 1rem;\n line-height: 1rem;\n color: #4F46E5;\n background-color: #ffffff;\n}\n.p-button.p-button-raised {\n box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);\n}\n.p-button.p-button-rounded {\n border-radius: 2rem;\n}\n.p-button.p-button-icon-only {\n width: 3rem;\n padding: 0.75rem 0;\n}\n.p-button.p-button-icon-only .p-button-icon-left,\n.p-button.p-button-icon-only .p-button-icon-right {\n margin: 0;\n}\n.p-button.p-button-icon-only.p-button-rounded {\n border-radius: 50%;\n height: 3rem;\n}\n.p-button.p-button-sm {\n font-size: 0.875rem;\n padding: 0.65625rem 0.875rem;\n}\n.p-button.p-button-sm .p-button-icon {\n font-size: 0.875rem;\n}\n.p-button.p-button-lg {\n font-size: 1.25rem;\n padding: 0.9375rem 1.25rem;\n}\n.p-button.p-button-lg .p-button-icon {\n font-size: 1.25rem;\n}\n.p-button.p-button-loading-label-only .p-button-label {\n margin-left: 0.5rem;\n}\n.p-button.p-button-loading-label-only .p-button-loading-icon {\n margin-right: 0;\n}\n\n.p-fluid .p-button {\n width: 100%;\n}\n.p-fluid .p-button-icon-only {\n width: 3rem;\n}\n.p-fluid .p-buttonset {\n display: flex;\n}\n.p-fluid .p-buttonset .p-button {\n flex: 1;\n}\n\n.p-button.p-button-secondary, .p-buttonset.p-button-secondary > .p-button, .p-splitbutton.p-button-secondary > .p-button {\n color: #ffffff;\n background: #64748B;\n border: 1px solid #64748B;\n}\n.p-button.p-button-secondary:enabled:hover, .p-buttonset.p-button-secondary > .p-button:enabled:hover, .p-splitbutton.p-button-secondary > .p-button:enabled:hover {\n background: #475569;\n color: #ffffff;\n border-color: #475569;\n}\n.p-button.p-button-secondary:enabled:focus, .p-buttonset.p-button-secondary > .p-button:enabled:focus, .p-splitbutton.p-button-secondary > .p-button:enabled:focus {\n box-shadow: 0 0 0 0.2rem #c0c7d2;\n}\n.p-button.p-button-secondary:enabled:active, .p-buttonset.p-button-secondary > .p-button:enabled:active, .p-splitbutton.p-button-secondary > .p-button:enabled:active {\n background: #475569;\n color: #ffffff;\n border-color: #475569;\n}\n.p-button.p-button-secondary.p-button-outlined, .p-buttonset.p-button-secondary > .p-button.p-button-outlined, .p-splitbutton.p-button-secondary > .p-button.p-button-outlined {\n background-color: transparent;\n color: #64748B;\n border: 1px solid;\n}\n.p-button.p-button-secondary.p-button-outlined:enabled:hover, .p-buttonset.p-button-secondary > .p-button.p-button-outlined:enabled:hover, .p-splitbutton.p-button-secondary > .p-button.p-button-outlined:enabled:hover {\n background: rgba(100, 116, 139, 0.04);\n color: #64748B;\n border: 1px solid;\n}\n.p-button.p-button-secondary.p-button-outlined:enabled:active, .p-buttonset.p-button-secondary > .p-button.p-button-outlined:enabled:active, .p-splitbutton.p-button-secondary > .p-button.p-button-outlined:enabled:active {\n background: rgba(100, 116, 139, 0.16);\n color: #64748B;\n border: 1px solid;\n}\n.p-button.p-button-secondary.p-button-text, .p-buttonset.p-button-secondary > .p-button.p-button-text, .p-splitbutton.p-button-secondary > .p-button.p-button-text {\n background-color: transparent;\n color: #64748B;\n border-color: transparent;\n}\n.p-button.p-button-secondary.p-button-text:enabled:hover, .p-buttonset.p-button-secondary > .p-button.p-button-text:enabled:hover, .p-splitbutton.p-button-secondary > .p-button.p-button-text:enabled:hover {\n background: rgba(100, 116, 139, 0.04);\n border-color: transparent;\n color: #64748B;\n}\n.p-button.p-button-secondary.p-button-text:enabled:active, .p-buttonset.p-button-secondary > .p-button.p-button-text:enabled:active, .p-splitbutton.p-button-secondary > .p-button.p-button-text:enabled:active {\n background: rgba(100, 116, 139, 0.16);\n border-color: transparent;\n color: #64748B;\n}\n\n.p-button.p-button-info, .p-buttonset.p-button-info > .p-button, .p-splitbutton.p-button-info > .p-button {\n color: #ffffff;\n background: #3B82F6;\n border: 1px solid #3B82F6;\n}\n.p-button.p-button-info:enabled:hover, .p-buttonset.p-button-info > .p-button:enabled:hover, .p-splitbutton.p-button-info > .p-button:enabled:hover {\n background: #2563EB;\n color: #ffffff;\n border-color: #2563EB;\n}\n.p-button.p-button-info:enabled:focus, .p-buttonset.p-button-info > .p-button:enabled:focus, .p-splitbutton.p-button-info > .p-button:enabled:focus {\n box-shadow: 0 0 0 0.2rem #b1cdfb;\n}\n.p-button.p-button-info:enabled:active, .p-buttonset.p-button-info > .p-button:enabled:active, .p-splitbutton.p-button-info > .p-button:enabled:active {\n background: #2563EB;\n color: #ffffff;\n border-color: #2563EB;\n}\n.p-button.p-button-info.p-button-outlined, .p-buttonset.p-button-info > .p-button.p-button-outlined, .p-splitbutton.p-button-info > .p-button.p-button-outlined {\n background-color: transparent;\n color: #3B82F6;\n border: 1px solid;\n}\n.p-button.p-button-info.p-button-outlined:enabled:hover, .p-buttonset.p-button-info > .p-button.p-button-outlined:enabled:hover, .p-splitbutton.p-button-info > .p-button.p-button-outlined:enabled:hover {\n background: rgba(59, 130, 246, 0.04);\n color: #3B82F6;\n border: 1px solid;\n}\n.p-button.p-button-info.p-button-outlined:enabled:active, .p-buttonset.p-button-info > .p-button.p-button-outlined:enabled:active, .p-splitbutton.p-button-info > .p-button.p-button-outlined:enabled:active {\n background: rgba(59, 130, 246, 0.16);\n color: #3B82F6;\n border: 1px solid;\n}\n.p-button.p-button-info.p-button-text, .p-buttonset.p-button-info > .p-button.p-button-text, .p-splitbutton.p-button-info > .p-button.p-button-text {\n background-color: transparent;\n color: #3B82F6;\n border-color: transparent;\n}\n.p-button.p-button-info.p-button-text:enabled:hover, .p-buttonset.p-button-info > .p-button.p-button-text:enabled:hover, .p-splitbutton.p-button-info > .p-button.p-button-text:enabled:hover {\n background: rgba(59, 130, 246, 0.04);\n border-color: transparent;\n color: #3B82F6;\n}\n.p-button.p-button-info.p-button-text:enabled:active, .p-buttonset.p-button-info > .p-button.p-button-text:enabled:active, .p-splitbutton.p-button-info > .p-button.p-button-text:enabled:active {\n background: rgba(59, 130, 246, 0.16);\n border-color: transparent;\n color: #3B82F6;\n}\n\n.p-button.p-button-success, .p-buttonset.p-button-success > .p-button, .p-splitbutton.p-button-success > .p-button {\n color: #ffffff;\n background: #22C55E;\n border: 1px solid #22C55E;\n}\n.p-button.p-button-success:enabled:hover, .p-buttonset.p-button-success > .p-button:enabled:hover, .p-splitbutton.p-button-success > .p-button:enabled:hover {\n background: #16A34A;\n color: #ffffff;\n border-color: #16A34A;\n}\n.p-button.p-button-success:enabled:focus, .p-buttonset.p-button-success > .p-button:enabled:focus, .p-splitbutton.p-button-success > .p-button:enabled:focus {\n box-shadow: 0 0 0 0.2rem #a0efbd;\n}\n.p-button.p-button-success:enabled:active, .p-buttonset.p-button-success > .p-button:enabled:active, .p-splitbutton.p-button-success > .p-button:enabled:active {\n background: #16A34A;\n color: #ffffff;\n border-color: #16A34A;\n}\n.p-button.p-button-success.p-button-outlined, .p-buttonset.p-button-success > .p-button.p-button-outlined, .p-splitbutton.p-button-success > .p-button.p-button-outlined {\n background-color: transparent;\n color: #22C55E;\n border: 1px solid;\n}\n.p-button.p-button-success.p-button-outlined:enabled:hover, .p-buttonset.p-button-success > .p-button.p-button-outlined:enabled:hover, .p-splitbutton.p-button-success > .p-button.p-button-outlined:enabled:hover {\n background: rgba(34, 197, 94, 0.04);\n color: #22C55E;\n border: 1px solid;\n}\n.p-button.p-button-success.p-button-outlined:enabled:active, .p-buttonset.p-button-success > .p-button.p-button-outlined:enabled:active, .p-splitbutton.p-button-success > .p-button.p-button-outlined:enabled:active {\n background: rgba(34, 197, 94, 0.16);\n color: #22C55E;\n border: 1px solid;\n}\n.p-button.p-button-success.p-button-text, .p-buttonset.p-button-success > .p-button.p-button-text, .p-splitbutton.p-button-success > .p-button.p-button-text {\n background-color: transparent;\n color: #22C55E;\n border-color: transparent;\n}\n.p-button.p-button-success.p-button-text:enabled:hover, .p-buttonset.p-button-success > .p-button.p-button-text:enabled:hover, .p-splitbutton.p-button-success > .p-button.p-button-text:enabled:hover {\n background: rgba(34, 197, 94, 0.04);\n border-color: transparent;\n color: #22C55E;\n}\n.p-button.p-button-success.p-button-text:enabled:active, .p-buttonset.p-button-success > .p-button.p-button-text:enabled:active, .p-splitbutton.p-button-success > .p-button.p-button-text:enabled:active {\n background: rgba(34, 197, 94, 0.16);\n border-color: transparent;\n color: #22C55E;\n}\n\n.p-button.p-button-warning, .p-buttonset.p-button-warning > .p-button, .p-splitbutton.p-button-warning > .p-button {\n color: #ffffff;\n background: #F59E0B;\n border: 1px solid #F59E0B;\n}\n.p-button.p-button-warning:enabled:hover, .p-buttonset.p-button-warning > .p-button:enabled:hover, .p-splitbutton.p-button-warning > .p-button:enabled:hover {\n background: #D97706;\n color: #ffffff;\n border-color: #D97706;\n}\n.p-button.p-button-warning:enabled:focus, .p-buttonset.p-button-warning > .p-button:enabled:focus, .p-splitbutton.p-button-warning > .p-button:enabled:focus {\n box-shadow: 0 0 0 0.2rem #fbd89d;\n}\n.p-button.p-button-warning:enabled:active, .p-buttonset.p-button-warning > .p-button:enabled:active, .p-splitbutton.p-button-warning > .p-button:enabled:active {\n background: #D97706;\n color: #ffffff;\n border-color: #D97706;\n}\n.p-button.p-button-warning.p-button-outlined, .p-buttonset.p-button-warning > .p-button.p-button-outlined, .p-splitbutton.p-button-warning > .p-button.p-button-outlined {\n background-color: transparent;\n color: #F59E0B;\n border: 1px solid;\n}\n.p-button.p-button-warning.p-button-outlined:enabled:hover, .p-buttonset.p-button-warning > .p-button.p-button-outlined:enabled:hover, .p-splitbutton.p-button-warning > .p-button.p-button-outlined:enabled:hover {\n background: rgba(245, 158, 11, 0.04);\n color: #F59E0B;\n border: 1px solid;\n}\n.p-button.p-button-warning.p-button-outlined:enabled:active, .p-buttonset.p-button-warning > .p-button.p-button-outlined:enabled:active, .p-splitbutton.p-button-warning > .p-button.p-button-outlined:enabled:active {\n background: rgba(245, 158, 11, 0.16);\n color: #F59E0B;\n border: 1px solid;\n}\n.p-button.p-button-warning.p-button-text, .p-buttonset.p-button-warning > .p-button.p-button-text, .p-splitbutton.p-button-warning > .p-button.p-button-text {\n background-color: transparent;\n color: #F59E0B;\n border-color: transparent;\n}\n.p-button.p-button-warning.p-button-text:enabled:hover, .p-buttonset.p-button-warning > .p-button.p-button-text:enabled:hover, .p-splitbutton.p-button-warning > .p-button.p-button-text:enabled:hover {\n background: rgba(245, 158, 11, 0.04);\n border-color: transparent;\n color: #F59E0B;\n}\n.p-button.p-button-warning.p-button-text:enabled:active, .p-buttonset.p-button-warning > .p-button.p-button-text:enabled:active, .p-splitbutton.p-button-warning > .p-button.p-button-text:enabled:active {\n background: rgba(245, 158, 11, 0.16);\n border-color: transparent;\n color: #F59E0B;\n}\n\n.p-button.p-button-help, .p-buttonset.p-button-help > .p-button, .p-splitbutton.p-button-help > .p-button {\n color: #ffffff;\n background: #A855F7;\n border: 1px solid #A855F7;\n}\n.p-button.p-button-help:enabled:hover, .p-buttonset.p-button-help > .p-button:enabled:hover, .p-splitbutton.p-button-help > .p-button:enabled:hover {\n background: #9333EA;\n color: #ffffff;\n border-color: #9333EA;\n}\n.p-button.p-button-help:enabled:focus, .p-buttonset.p-button-help > .p-button:enabled:focus, .p-splitbutton.p-button-help > .p-button:enabled:focus {\n box-shadow: 0 0 0 0.2rem #dcbbfc;\n}\n.p-button.p-button-help:enabled:active, .p-buttonset.p-button-help > .p-button:enabled:active, .p-splitbutton.p-button-help > .p-button:enabled:active {\n background: #9333EA;\n color: #ffffff;\n border-color: #9333EA;\n}\n.p-button.p-button-help.p-button-outlined, .p-buttonset.p-button-help > .p-button.p-button-outlined, .p-splitbutton.p-button-help > .p-button.p-button-outlined {\n background-color: transparent;\n color: #A855F7;\n border: 1px solid;\n}\n.p-button.p-button-help.p-button-outlined:enabled:hover, .p-buttonset.p-button-help > .p-button.p-button-outlined:enabled:hover, .p-splitbutton.p-button-help > .p-button.p-button-outlined:enabled:hover {\n background: rgba(168, 85, 247, 0.04);\n color: #A855F7;\n border: 1px solid;\n}\n.p-button.p-button-help.p-button-outlined:enabled:active, .p-buttonset.p-button-help > .p-button.p-button-outlined:enabled:active, .p-splitbutton.p-button-help > .p-button.p-button-outlined:enabled:active {\n background: rgba(168, 85, 247, 0.16);\n color: #A855F7;\n border: 1px solid;\n}\n.p-button.p-button-help.p-button-text, .p-buttonset.p-button-help > .p-button.p-button-text, .p-splitbutton.p-button-help > .p-button.p-button-text {\n background-color: transparent;\n color: #A855F7;\n border-color: transparent;\n}\n.p-button.p-button-help.p-button-text:enabled:hover, .p-buttonset.p-button-help > .p-button.p-button-text:enabled:hover, .p-splitbutton.p-button-help > .p-button.p-button-text:enabled:hover {\n background: rgba(168, 85, 247, 0.04);\n border-color: transparent;\n color: #A855F7;\n}\n.p-button.p-button-help.p-button-text:enabled:active, .p-buttonset.p-button-help > .p-button.p-button-text:enabled:active, .p-splitbutton.p-button-help > .p-button.p-button-text:enabled:active {\n background: rgba(168, 85, 247, 0.16);\n border-color: transparent;\n color: #A855F7;\n}\n\n.p-button.p-button-danger, .p-buttonset.p-button-danger > .p-button, .p-splitbutton.p-button-danger > .p-button {\n color: #ffffff;\n background: #EF4444;\n border: 1px solid #EF4444;\n}\n.p-button.p-button-danger:enabled:hover, .p-buttonset.p-button-danger > .p-button:enabled:hover, .p-splitbutton.p-button-danger > .p-button:enabled:hover {\n background: #DC2626;\n color: #ffffff;\n border-color: #DC2626;\n}\n.p-button.p-button-danger:enabled:focus, .p-buttonset.p-button-danger > .p-button:enabled:focus, .p-splitbutton.p-button-danger > .p-button:enabled:focus {\n box-shadow: 0 0 0 0.2rem #f9b4b4;\n}\n.p-button.p-button-danger:enabled:active, .p-buttonset.p-button-danger > .p-button:enabled:active, .p-splitbutton.p-button-danger > .p-button:enabled:active {\n background: #DC2626;\n color: #ffffff;\n border-color: #DC2626;\n}\n.p-button.p-button-danger.p-button-outlined, .p-buttonset.p-button-danger > .p-button.p-button-outlined, .p-splitbutton.p-button-danger > .p-button.p-button-outlined {\n background-color: transparent;\n color: #EF4444;\n border: 1px solid;\n}\n.p-button.p-button-danger.p-button-outlined:enabled:hover, .p-buttonset.p-button-danger > .p-button.p-button-outlined:enabled:hover, .p-splitbutton.p-button-danger > .p-button.p-button-outlined:enabled:hover {\n background: rgba(239, 68, 68, 0.04);\n color: #EF4444;\n border: 1px solid;\n}\n.p-button.p-button-danger.p-button-outlined:enabled:active, .p-buttonset.p-button-danger > .p-button.p-button-outlined:enabled:active, .p-splitbutton.p-button-danger > .p-button.p-button-outlined:enabled:active {\n background: rgba(239, 68, 68, 0.16);\n color: #EF4444;\n border: 1px solid;\n}\n.p-button.p-button-danger.p-button-text, .p-buttonset.p-button-danger > .p-button.p-button-text, .p-splitbutton.p-button-danger > .p-button.p-button-text {\n background-color: transparent;\n color: #EF4444;\n border-color: transparent;\n}\n.p-button.p-button-danger.p-button-text:enabled:hover, .p-buttonset.p-button-danger > .p-button.p-button-text:enabled:hover, .p-splitbutton.p-button-danger > .p-button.p-button-text:enabled:hover {\n background: rgba(239, 68, 68, 0.04);\n border-color: transparent;\n color: #EF4444;\n}\n.p-button.p-button-danger.p-button-text:enabled:active, .p-buttonset.p-button-danger > .p-button.p-button-text:enabled:active, .p-splitbutton.p-button-danger > .p-button.p-button-text:enabled:active {\n background: rgba(239, 68, 68, 0.16);\n border-color: transparent;\n color: #EF4444;\n}\n\n.p-button.p-button-link {\n color: #4F46E5;\n background: transparent;\n border: transparent;\n}\n.p-button.p-button-link:enabled:hover {\n background: transparent;\n color: #4F46E5;\n border-color: transparent;\n}\n.p-button.p-button-link:enabled:hover .p-button-label {\n text-decoration: underline;\n}\n.p-button.p-button-link:enabled:focus {\n background: transparent;\n box-shadow: 0 0 0 0.2rem #6366F1;\n border-color: transparent;\n}\n.p-button.p-button-link:enabled:active {\n background: transparent;\n color: #4F46E5;\n border-color: transparent;\n}\n\n.p-speeddial-button.p-button.p-button-icon-only {\n width: 4rem;\n height: 4rem;\n}\n.p-speeddial-button.p-button.p-button-icon-only .p-button-icon {\n font-size: 1.3rem;\n}\n\n.p-speeddial-action {\n width: 3rem;\n height: 3rem;\n background: #3f3f46;\n color: #fff;\n}\n.p-speeddial-action:hover {\n background: #27272A;\n color: #fff;\n}\n\n.p-speeddial-direction-up .p-speeddial-item {\n margin: 0.25rem 0;\n}\n.p-speeddial-direction-up .p-speeddial-item:first-child {\n margin-bottom: 0.5rem;\n}\n\n.p-speeddial-direction-down .p-speeddial-item {\n margin: 0.25rem 0;\n}\n.p-speeddial-direction-down .p-speeddial-item:first-child {\n margin-top: 0.5rem;\n}\n\n.p-speeddial-direction-left .p-speeddial-item {\n margin: 0 0.25rem;\n}\n.p-speeddial-direction-left .p-speeddial-item:first-child {\n margin-right: 0.5rem;\n}\n\n.p-speeddial-direction-right .p-speeddial-item {\n margin: 0 0.25rem;\n}\n.p-speeddial-direction-right .p-speeddial-item:first-child {\n margin-left: 0.5rem;\n}\n\n.p-speeddial-circle .p-speeddial-item,\n.p-speeddial-semi-circle .p-speeddial-item,\n.p-speeddial-quarter-circle .p-speeddial-item {\n margin: 0;\n}\n.p-speeddial-circle .p-speeddial-item:first-child, .p-speeddial-circle .p-speeddial-item:last-child,\n.p-speeddial-semi-circle .p-speeddial-item:first-child,\n.p-speeddial-semi-circle .p-speeddial-item:last-child,\n.p-speeddial-quarter-circle .p-speeddial-item:first-child,\n.p-speeddial-quarter-circle .p-speeddial-item:last-child {\n margin: 0;\n}\n\n.p-speeddial-mask {\n background-color: rgba(0, 0, 0, 0.4);\n}\n\n.p-splitbutton {\n border-radius: 0.375rem;\n}\n.p-splitbutton.p-button-outlined > .p-button {\n background-color: transparent;\n color: #4F46E5;\n border: 1px solid;\n}\n.p-splitbutton.p-button-outlined > .p-button:enabled:hover, .p-splitbutton.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(79, 70, 229, 0.04);\n color: #4F46E5;\n}\n.p-splitbutton.p-button-outlined > .p-button:enabled:active, .p-splitbutton.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(79, 70, 229, 0.16);\n color: #4F46E5;\n}\n.p-splitbutton.p-button-outlined.p-button-plain > .p-button {\n color: #71717A;\n border-color: #71717A;\n}\n.p-splitbutton.p-button-outlined.p-button-plain > .p-button:enabled:hover, .p-splitbutton.p-button-outlined.p-button-plain > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: #f4f4f5;\n color: #71717A;\n}\n.p-splitbutton.p-button-outlined.p-button-plain > .p-button:enabled:active, .p-splitbutton.p-button-outlined.p-button-plain > .p-button:not(button):not(a):not(.p-disabled):active {\n background: #e5e7eb;\n color: #71717A;\n}\n.p-splitbutton.p-button-text > .p-button {\n background-color: transparent;\n color: #4F46E5;\n border-color: transparent;\n}\n.p-splitbutton.p-button-text > .p-button:enabled:hover, .p-splitbutton.p-button-text > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(79, 70, 229, 0.04);\n color: #4F46E5;\n border-color: transparent;\n}\n.p-splitbutton.p-button-text > .p-button:enabled:active, .p-splitbutton.p-button-text > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(79, 70, 229, 0.16);\n color: #4F46E5;\n border-color: transparent;\n}\n.p-splitbutton.p-button-text.p-button-plain > .p-button {\n color: #71717A;\n}\n.p-splitbutton.p-button-text.p-button-plain > .p-button:enabled:hover, .p-splitbutton.p-button-text.p-button-plain > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: #f4f4f5;\n color: #71717A;\n}\n.p-splitbutton.p-button-text.p-button-plain > .p-button:enabled:active, .p-splitbutton.p-button-text.p-button-plain > .p-button:not(button):not(a):not(.p-disabled):active {\n background: #e5e7eb;\n color: #71717A;\n}\n.p-splitbutton.p-button-raised {\n box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);\n}\n.p-splitbutton.p-button-rounded {\n border-radius: 2rem;\n}\n.p-splitbutton.p-button-rounded > .p-button {\n border-radius: 2rem;\n}\n.p-splitbutton.p-button-sm > .p-button {\n font-size: 0.875rem;\n padding: 0.65625rem 0.875rem;\n}\n.p-splitbutton.p-button-sm > .p-button .p-button-icon {\n font-size: 0.875rem;\n}\n.p-splitbutton.p-button-lg > .p-button {\n font-size: 1.25rem;\n padding: 0.9375rem 1.25rem;\n}\n.p-splitbutton.p-button-lg > .p-button .p-button-icon {\n font-size: 1.25rem;\n}\n\n.p-splitbutton.p-button-secondary.p-button-outlined > .p-button {\n background-color: transparent;\n color: #64748B;\n border: 1px solid;\n}\n.p-splitbutton.p-button-secondary.p-button-outlined > .p-button:enabled:hover, .p-splitbutton.p-button-secondary.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(100, 116, 139, 0.04);\n color: #64748B;\n}\n.p-splitbutton.p-button-secondary.p-button-outlined > .p-button:enabled:active, .p-splitbutton.p-button-secondary.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(100, 116, 139, 0.16);\n color: #64748B;\n}\n.p-splitbutton.p-button-secondary.p-button-text > .p-button {\n background-color: transparent;\n color: #64748B;\n border-color: transparent;\n}\n.p-splitbutton.p-button-secondary.p-button-text > .p-button:enabled:hover, .p-splitbutton.p-button-secondary.p-button-text > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(100, 116, 139, 0.04);\n border-color: transparent;\n color: #64748B;\n}\n.p-splitbutton.p-button-secondary.p-button-text > .p-button:enabled:active, .p-splitbutton.p-button-secondary.p-button-text > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(100, 116, 139, 0.16);\n border-color: transparent;\n color: #64748B;\n}\n\n.p-splitbutton.p-button-info.p-button-outlined > .p-button {\n background-color: transparent;\n color: #3B82F6;\n border: 1px solid;\n}\n.p-splitbutton.p-button-info.p-button-outlined > .p-button:enabled:hover, .p-splitbutton.p-button-info.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(59, 130, 246, 0.04);\n color: #3B82F6;\n}\n.p-splitbutton.p-button-info.p-button-outlined > .p-button:enabled:active, .p-splitbutton.p-button-info.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(59, 130, 246, 0.16);\n color: #3B82F6;\n}\n.p-splitbutton.p-button-info.p-button-text > .p-button {\n background-color: transparent;\n color: #3B82F6;\n border-color: transparent;\n}\n.p-splitbutton.p-button-info.p-button-text > .p-button:enabled:hover, .p-splitbutton.p-button-info.p-button-text > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(59, 130, 246, 0.04);\n border-color: transparent;\n color: #3B82F6;\n}\n.p-splitbutton.p-button-info.p-button-text > .p-button:enabled:active, .p-splitbutton.p-button-info.p-button-text > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(59, 130, 246, 0.16);\n border-color: transparent;\n color: #3B82F6;\n}\n\n.p-splitbutton.p-button-success.p-button-outlined > .p-button {\n background-color: transparent;\n color: #22C55E;\n border: 1px solid;\n}\n.p-splitbutton.p-button-success.p-button-outlined > .p-button:enabled:hover, .p-splitbutton.p-button-success.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(34, 197, 94, 0.04);\n color: #22C55E;\n}\n.p-splitbutton.p-button-success.p-button-outlined > .p-button:enabled:active, .p-splitbutton.p-button-success.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(34, 197, 94, 0.16);\n color: #22C55E;\n}\n.p-splitbutton.p-button-success.p-button-text > .p-button {\n background-color: transparent;\n color: #22C55E;\n border-color: transparent;\n}\n.p-splitbutton.p-button-success.p-button-text > .p-button:enabled:hover, .p-splitbutton.p-button-success.p-button-text > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(34, 197, 94, 0.04);\n border-color: transparent;\n color: #22C55E;\n}\n.p-splitbutton.p-button-success.p-button-text > .p-button:enabled:active, .p-splitbutton.p-button-success.p-button-text > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(34, 197, 94, 0.16);\n border-color: transparent;\n color: #22C55E;\n}\n\n.p-splitbutton.p-button-warning.p-button-outlined > .p-button {\n background-color: transparent;\n color: #F59E0B;\n border: 1px solid;\n}\n.p-splitbutton.p-button-warning.p-button-outlined > .p-button:enabled:hover, .p-splitbutton.p-button-warning.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(245, 158, 11, 0.04);\n color: #F59E0B;\n}\n.p-splitbutton.p-button-warning.p-button-outlined > .p-button:enabled:active, .p-splitbutton.p-button-warning.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(245, 158, 11, 0.16);\n color: #F59E0B;\n}\n.p-splitbutton.p-button-warning.p-button-text > .p-button {\n background-color: transparent;\n color: #F59E0B;\n border-color: transparent;\n}\n.p-splitbutton.p-button-warning.p-button-text > .p-button:enabled:hover, .p-splitbutton.p-button-warning.p-button-text > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(245, 158, 11, 0.04);\n border-color: transparent;\n color: #F59E0B;\n}\n.p-splitbutton.p-button-warning.p-button-text > .p-button:enabled:active, .p-splitbutton.p-button-warning.p-button-text > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(245, 158, 11, 0.16);\n border-color: transparent;\n color: #F59E0B;\n}\n\n.p-splitbutton.p-button-help.p-button-outlined > .p-button {\n background-color: transparent;\n color: #A855F7;\n border: 1px solid;\n}\n.p-splitbutton.p-button-help.p-button-outlined > .p-button:enabled:hover, .p-splitbutton.p-button-help.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(168, 85, 247, 0.04);\n color: #A855F7;\n}\n.p-splitbutton.p-button-help.p-button-outlined > .p-button:enabled:active, .p-splitbutton.p-button-help.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(168, 85, 247, 0.16);\n color: #A855F7;\n}\n.p-splitbutton.p-button-help.p-button-text > .p-button {\n background-color: transparent;\n color: #A855F7;\n border-color: transparent;\n}\n.p-splitbutton.p-button-help.p-button-text > .p-button:enabled:hover, .p-splitbutton.p-button-help.p-button-text > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(168, 85, 247, 0.04);\n border-color: transparent;\n color: #A855F7;\n}\n.p-splitbutton.p-button-help.p-button-text > .p-button:enabled:active, .p-splitbutton.p-button-help.p-button-text > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(168, 85, 247, 0.16);\n border-color: transparent;\n color: #A855F7;\n}\n\n.p-splitbutton.p-button-danger.p-button-outlined > .p-button {\n background-color: transparent;\n color: #EF4444;\n border: 1px solid;\n}\n.p-splitbutton.p-button-danger.p-button-outlined > .p-button:enabled:hover, .p-splitbutton.p-button-danger.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(239, 68, 68, 0.04);\n color: #EF4444;\n}\n.p-splitbutton.p-button-danger.p-button-outlined > .p-button:enabled:active, .p-splitbutton.p-button-danger.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(239, 68, 68, 0.16);\n color: #EF4444;\n}\n.p-splitbutton.p-button-danger.p-button-text > .p-button {\n background-color: transparent;\n color: #EF4444;\n border-color: transparent;\n}\n.p-splitbutton.p-button-danger.p-button-text > .p-button:enabled:hover, .p-splitbutton.p-button-danger.p-button-text > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(239, 68, 68, 0.04);\n border-color: transparent;\n color: #EF4444;\n}\n.p-splitbutton.p-button-danger.p-button-text > .p-button:enabled:active, .p-splitbutton.p-button-danger.p-button-text > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(239, 68, 68, 0.16);\n border-color: transparent;\n color: #EF4444;\n}\n\n.p-carousel .p-carousel-content .p-carousel-prev,\n.p-carousel .p-carousel-content .p-carousel-next {\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n margin: 0.5rem;\n}\n.p-carousel .p-carousel-content .p-carousel-prev:enabled:hover,\n.p-carousel .p-carousel-content .p-carousel-next:enabled:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-carousel .p-carousel-content .p-carousel-prev:focus,\n.p-carousel .p-carousel-content .p-carousel-next:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-carousel .p-carousel-indicators {\n padding: 1rem;\n}\n.p-carousel .p-carousel-indicators .p-carousel-indicator {\n margin-right: 0.5rem;\n margin-bottom: 0.5rem;\n}\n.p-carousel .p-carousel-indicators .p-carousel-indicator button {\n background-color: #f4f4f5;\n width: 2rem;\n height: 0.5rem;\n transition: none;\n border-radius: 0;\n}\n.p-carousel .p-carousel-indicators .p-carousel-indicator button:hover {\n background: #e5e7eb;\n}\n.p-carousel .p-carousel-indicators .p-carousel-indicator.p-highlight button {\n background: #EEF2FF;\n color: #312E81;\n}\n\n.p-datatable .p-paginator-top {\n border-width: 0 0 1px 0;\n border-radius: 0;\n}\n.p-datatable .p-paginator-bottom {\n border-width: 0 0 1px 0;\n border-radius: 0;\n}\n.p-datatable .p-datatable-header {\n background: #fafafa;\n color: #3f3f46;\n border: 1px solid #f4f4f5;\n border-width: 1px 0 1px 0;\n padding: 1.25rem 1.25rem;\n font-weight: 600;\n}\n.p-datatable .p-datatable-footer {\n background: #fafafa;\n color: #3f3f46;\n border: 1px solid #f4f4f5;\n border-width: 0 0 1px 0;\n padding: 0.75rem 1.5rem;\n font-weight: 600;\n}\n.p-datatable .p-datatable-thead > tr > th {\n text-align: left;\n padding: 0.75rem 1.5rem;\n border: 1px solid #f4f4f5;\n border-width: 0 0 1px 0;\n font-weight: 500;\n color: #6b7280;\n background: #fafafa;\n transition: none;\n}\n.p-datatable .p-datatable-tfoot > tr > td {\n text-align: left;\n padding: 1rem 1rem;\n border: 1px solid #f4f4f5;\n border-width: 0 0 1px 0;\n font-weight: 600;\n color: #3f3f46;\n background: #fafafa;\n}\n.p-datatable .p-sortable-column .p-sortable-column-icon {\n color: #71717A;\n margin-left: 0.5rem;\n}\n.p-datatable .p-sortable-column .p-sortable-column-badge {\n border-radius: 50%;\n height: 1.143rem;\n min-width: 1.143rem;\n line-height: 1.143rem;\n color: #312E81;\n background: #EEF2FF;\n margin-left: 0.5rem;\n}\n.p-datatable .p-sortable-column:not(.p-highlight):hover {\n background: #f4f4f5;\n color: #3f3f46;\n}\n.p-datatable .p-sortable-column:not(.p-highlight):hover .p-sortable-column-icon {\n color: #71717A;\n}\n.p-datatable .p-sortable-column.p-highlight {\n background: #fafafa;\n color: #4F46E5;\n}\n.p-datatable .p-sortable-column.p-highlight .p-sortable-column-icon {\n color: #4F46E5;\n}\n.p-datatable .p-sortable-column.p-highlight:hover {\n background: #f4f4f5;\n color: #4F46E5;\n}\n.p-datatable .p-sortable-column.p-highlight:hover .p-sortable-column-icon {\n color: #4F46E5;\n}\n.p-datatable .p-sortable-column:focus {\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n outline: 0 none;\n}\n.p-datatable .p-datatable-tbody > tr {\n background: #ffffff;\n color: #3f3f46;\n transition: none;\n}\n.p-datatable .p-datatable-tbody > tr > td {\n text-align: left;\n border: 1px solid #f4f4f5;\n border-width: 0 0 1px 0;\n padding: 1rem 1.5rem;\n}\n.p-datatable .p-datatable-tbody > tr > td .p-row-toggler,\n.p-datatable .p-datatable-tbody > tr > td .p-row-editor-init,\n.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save,\n.p-datatable .p-datatable-tbody > tr > td .p-row-editor-cancel {\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n}\n.p-datatable .p-datatable-tbody > tr > td .p-row-toggler:enabled:hover,\n.p-datatable .p-datatable-tbody > tr > td .p-row-editor-init:enabled:hover,\n.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save:enabled:hover,\n.p-datatable .p-datatable-tbody > tr > td .p-row-editor-cancel:enabled:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-datatable .p-datatable-tbody > tr > td .p-row-toggler:focus,\n.p-datatable .p-datatable-tbody > tr > td .p-row-editor-init:focus,\n.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save:focus,\n.p-datatable .p-datatable-tbody > tr > td .p-row-editor-cancel:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {\n margin-right: 0.5rem;\n}\n.p-datatable .p-datatable-tbody > tr > td > .p-column-title {\n font-weight: 500;\n}\n.p-datatable .p-datatable-tbody > tr:focus {\n outline: 0.15rem solid #6366F1;\n outline-offset: -0.15rem;\n}\n.p-datatable .p-datatable-tbody > tr.p-highlight {\n background: #EEF2FF;\n color: #312E81;\n}\n.p-datatable .p-datatable-tbody > tr.p-datatable-dragpoint-top > td {\n box-shadow: inset 0 2px 0 0 #EEF2FF;\n}\n.p-datatable .p-datatable-tbody > tr.p-datatable-dragpoint-bottom > td {\n box-shadow: inset 0 -2px 0 0 #EEF2FF;\n}\n.p-datatable.p-datatable-hoverable-rows .p-datatable-tbody > tr:not(.p-highlight):hover {\n background: #f4f4f5;\n color: #3f3f46;\n}\n.p-datatable .p-column-resizer-helper {\n background: #4F46E5;\n}\n.p-datatable .p-datatable-scrollable-header,\n.p-datatable .p-datatable-scrollable-footer {\n background: #fafafa;\n}\n.p-datatable.p-datatable-scrollable > .p-datatable-wrapper > .p-datatable-table > .p-datatable-thead,\n.p-datatable.p-datatable-scrollable > .p-datatable-wrapper > .p-datatable-table > .p-datatable-tfoot {\n background-color: #fafafa;\n}\n.p-datatable .p-datatable-loading-icon {\n font-size: 2rem;\n}\n.p-datatable.p-datatable-gridlines .p-datatable-header {\n border-width: 1px 1px 0 1px;\n}\n.p-datatable.p-datatable-gridlines .p-datatable-footer {\n border-width: 0 1px 1px 1px;\n}\n.p-datatable.p-datatable-gridlines .p-paginator-top {\n border-width: 0 1px 0 1px;\n}\n.p-datatable.p-datatable-gridlines .p-paginator-bottom {\n border-width: 0 1px 1px 1px;\n}\n.p-datatable.p-datatable-gridlines .p-datatable-thead > tr > th {\n border-width: 1px 1px 1px 1px;\n}\n.p-datatable.p-datatable-gridlines .p-datatable-tbody > tr > td {\n border-width: 1px;\n}\n.p-datatable.p-datatable-gridlines .p-datatable-tfoot > tr > td {\n border-width: 1px;\n}\n.p-datatable.p-datatable-gridlines.p-datatable-scrollable .p-datatable-thead > tr > th + th {\n border-left-width: 0;\n}\n.p-datatable.p-datatable-gridlines.p-datatable-scrollable .p-datatable-tbody > tr > td + td {\n border-left-width: 0;\n}\n.p-datatable.p-datatable-gridlines.p-datatable-scrollable .p-datatable-tbody > tr + tr > td, .p-datatable.p-datatable-gridlines.p-datatable-scrollable .p-datatable-tbody > tr:first-child > td {\n border-top-width: 0;\n}\n.p-datatable.p-datatable-gridlines.p-datatable-scrollable .p-datatable-tfoot > tr > td + td {\n border-left-width: 0;\n}\n.p-datatable.p-datatable-striped .p-datatable-tbody > tr:nth-child(even) {\n background: #fcfcfc;\n}\n.p-datatable.p-datatable-striped .p-datatable-tbody > tr:nth-child(even).p-highlight {\n background: #EEF2FF;\n color: #312E81;\n}\n.p-datatable.p-datatable-striped .p-datatable-tbody > tr:nth-child(even).p-highlight .p-row-toggler {\n color: #312E81;\n}\n.p-datatable.p-datatable-striped .p-datatable-tbody > tr:nth-child(even).p-highlight .p-row-toggler:hover {\n color: #312E81;\n}\n.p-datatable.p-datatable-sm .p-datatable-header {\n padding: 0.625rem 0.625rem;\n}\n.p-datatable.p-datatable-sm .p-datatable-thead > tr > th {\n padding: 0.375rem 0.75rem;\n}\n.p-datatable.p-datatable-sm .p-datatable-tbody > tr > td {\n padding: 0.5rem 0.75rem;\n}\n.p-datatable.p-datatable-sm .p-datatable-tfoot > tr > td {\n padding: 0.375rem 0.75rem;\n}\n.p-datatable.p-datatable-sm .p-datatable-footer {\n padding: 0.375rem 0.75rem;\n}\n.p-datatable.p-datatable-lg .p-datatable-header {\n padding: 1.5625rem 1.5625rem;\n}\n.p-datatable.p-datatable-lg .p-datatable-thead > tr > th {\n padding: 0.9375rem 1.875rem;\n}\n.p-datatable.p-datatable-lg .p-datatable-tbody > tr > td {\n padding: 1.25rem 1.875rem;\n}\n.p-datatable.p-datatable-lg .p-datatable-tfoot > tr > td {\n padding: 0.9375rem 1.875rem;\n}\n.p-datatable.p-datatable-lg .p-datatable-footer {\n padding: 0.9375rem 1.875rem;\n}\n\n.p-dataview .p-paginator-top {\n border-width: 0 0 1px 0;\n border-radius: 0;\n}\n.p-dataview .p-paginator-bottom {\n border-width: 0 0 1px 0;\n border-radius: 0;\n}\n.p-dataview .p-dataview-header {\n background: #fafafa;\n color: #3f3f46;\n border: 1px solid #f4f4f5;\n border-width: 1px 0 1px 0;\n padding: 1.25rem 1.25rem;\n font-weight: 600;\n}\n.p-dataview .p-dataview-content {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n padding: 0;\n}\n.p-dataview.p-dataview-list .p-dataview-content > .p-grid > div {\n border: solid #f4f4f5;\n border-width: 0 0 1px 0;\n}\n.p-dataview .p-dataview-footer {\n background: #fafafa;\n color: #3f3f46;\n border: 1px solid #f4f4f5;\n border-width: 0 0 1px 0;\n padding: 0.75rem 1.5rem;\n font-weight: 600;\n border-bottom-left-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem;\n}\n\n.p-column-filter-row .p-column-filter-menu-button,\n.p-column-filter-row .p-column-filter-clear-button {\n margin-left: 0.5rem;\n}\n\n.p-column-filter-menu-button {\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n}\n.p-column-filter-menu-button:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-column-filter-menu-button.p-column-filter-menu-button-open, .p-column-filter-menu-button.p-column-filter-menu-button-open:hover {\n background: #f4f4f5;\n color: #18181B;\n}\n.p-column-filter-menu-button.p-column-filter-menu-button-active, .p-column-filter-menu-button.p-column-filter-menu-button-active:hover {\n background: #EEF2FF;\n color: #312E81;\n}\n.p-column-filter-menu-button:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n\n.p-column-filter-clear-button {\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n}\n.p-column-filter-clear-button:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-column-filter-clear-button:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n\n.p-column-filter-overlay {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n border-radius: 0.375rem;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n min-width: 12.5rem;\n}\n.p-column-filter-overlay .p-column-filter-row-items {\n padding: 0.25rem 0;\n}\n.p-column-filter-overlay .p-column-filter-row-items .p-column-filter-row-item {\n margin: 0;\n padding: 0.75rem 1rem;\n border: 0 none;\n color: #3f3f46;\n background: transparent;\n transition: none;\n border-radius: 0;\n}\n.p-column-filter-overlay .p-column-filter-row-items .p-column-filter-row-item.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-column-filter-overlay .p-column-filter-row-items .p-column-filter-row-item:not(.p-highlight):not(.p-disabled):hover {\n color: #18181B;\n background: #f4f4f5;\n}\n.p-column-filter-overlay .p-column-filter-row-items .p-column-filter-row-item:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-column-filter-overlay .p-column-filter-row-items .p-column-filter-separator {\n border-top: 1px solid #f3f4f6;\n margin: 0.25rem 0;\n}\n\n.p-column-filter-overlay-menu .p-column-filter-operator {\n padding: 0.5rem 0.75rem;\n border-bottom: 0 none;\n color: #3f3f46;\n background: #fafafa;\n margin: 0;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-column-filter-overlay-menu .p-column-filter-constraint {\n padding: 1.25rem;\n border-bottom: 1px solid #f3f4f6;\n}\n.p-column-filter-overlay-menu .p-column-filter-constraint .p-column-filter-matchmode-dropdown {\n margin-bottom: 0.5rem;\n}\n.p-column-filter-overlay-menu .p-column-filter-constraint .p-column-filter-remove-button {\n margin-top: 0.5rem;\n}\n.p-column-filter-overlay-menu .p-column-filter-constraint:last-child {\n border-bottom: 0 none;\n}\n.p-column-filter-overlay-menu .p-column-filter-add-rule {\n padding: 0.75rem 1.25rem;\n}\n.p-column-filter-overlay-menu .p-column-filter-buttonbar {\n padding: 1.25rem;\n}\n\n.fc {\n /* FullCalendar 4 */\n /* FullCalendar 5 */\n}\n.fc.fc-unthemed .fc-view-container th {\n background: #fafafa;\n border: 1px solid #e5e7eb;\n color: #3f3f46;\n}\n.fc.fc-unthemed .fc-view-container td.fc-widget-content {\n border: 1px solid #e5e7eb;\n color: #3f3f46;\n}\n.fc.fc-unthemed .fc-view-container td.fc-head-container {\n border: 1px solid #e5e7eb;\n}\n.fc.fc-unthemed .fc-view-container .fc-view {\n background: #ffffff;\n}\n.fc.fc-unthemed .fc-view-container .fc-row {\n border-right: 1px solid #e5e7eb;\n}\n.fc.fc-unthemed .fc-view-container .fc-event {\n background: #4F46E5;\n border: 1px solid #4F46E5;\n color: #ffffff;\n}\n.fc.fc-unthemed .fc-view-container .fc-divider {\n background: #fafafa;\n border: 1px solid #e5e7eb;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button {\n color: #ffffff;\n background: #4F46E5;\n border: 1px solid #4F46E5;\n font-size: 1rem;\n transition: none;\n border-radius: 0.375rem;\n display: flex;\n align-items: center;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button:enabled:hover {\n background: #4338CA;\n color: #ffffff;\n border-color: #4338CA;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button:enabled:active {\n background: #4338CA;\n color: #ffffff;\n border-color: #4338CA;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button:enabled:active:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button .fc-icon-chevron-left {\n font-family: \"PrimeIcons\" !important;\n text-indent: 0;\n font-size: 1rem;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button .fc-icon-chevron-left:before {\n content: \"\\e900\";\n}\n.fc.fc-unthemed .fc-toolbar .fc-button .fc-icon-chevron-right {\n font-family: \"PrimeIcons\" !important;\n text-indent: 0;\n font-size: 1rem;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button .fc-icon-chevron-right:before {\n content: \"\\e901\";\n}\n.fc.fc-unthemed .fc-toolbar .fc-button:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button.fc-dayGridMonth-button, .fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridWeek-button, .fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridDay-button {\n background: #ffffff;\n border: 1px solid #d4d4d8;\n color: #3f3f46;\n transition: none;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button.fc-dayGridMonth-button:hover, .fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridWeek-button:hover, .fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridDay-button:hover {\n background: #f4f4f5;\n border-color: #d4d4d8;\n color: #3f3f46;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button.fc-dayGridMonth-button.fc-button-active, .fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridWeek-button.fc-button-active, .fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridDay-button.fc-button-active {\n background: #4F46E5;\n border-color: #4F46E5;\n color: #ffffff;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button.fc-dayGridMonth-button.fc-button-active:hover, .fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridWeek-button.fc-button-active:hover, .fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridDay-button.fc-button-active:hover {\n background: #4338CA;\n border-color: #4338CA;\n color: #ffffff;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button.fc-dayGridMonth-button:focus, .fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridWeek-button:focus, .fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridDay-button:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n z-index: 1;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button-group .fc-button {\n border-radius: 0;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button-group .fc-button:first-child {\n border-top-left-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button-group .fc-button:last-child {\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-scrollgrid {\n border-color: #e5e7eb;\n}\n.fc.fc-theme-standard .fc-view-harness th {\n background: #fafafa;\n border-color: #e5e7eb;\n color: #3f3f46;\n}\n.fc.fc-theme-standard .fc-view-harness td {\n color: #3f3f46;\n border-color: #e5e7eb;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-view {\n background: #ffffff;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-popover {\n background: none;\n border: 0 none;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-popover .fc-popover-header {\n border: 1px solid #e5e7eb;\n padding: 1.25rem;\n background: #fafafa;\n color: #3f3f46;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-popover .fc-popover-header .fc-popover-close {\n opacity: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n font-family: \"PrimeIcons\" !important;\n font-size: 1rem;\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-popover .fc-popover-header .fc-popover-close:before {\n content: \"\\e90b\";\n}\n.fc.fc-theme-standard .fc-view-harness .fc-popover .fc-popover-header .fc-popover-close:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-popover .fc-popover-header .fc-popover-close:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-popover .fc-popover-body {\n padding: 1.25rem;\n border: 1px solid #e5e7eb;\n background: #ffffff;\n color: #3f3f46;\n border-top: 0 none;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-event.fc-daygrid-block-event {\n color: #ffffff;\n background: #4F46E5;\n border-color: #4F46E5;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-event.fc-daygrid-block-event .fc-event-main {\n color: #ffffff;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-event.fc-daygrid-dot-event .fc-daygrid-event-dot {\n background: #4F46E5;\n border-color: #4F46E5;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-event.fc-daygrid-dot-event:hover {\n background: #f4f4f5;\n color: #18181B;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-cell-shaded {\n background: #fafafa;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button {\n color: #ffffff;\n background: #4F46E5;\n border: 1px solid #4F46E5;\n font-size: 1rem;\n transition: none;\n border-radius: 0.375rem;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button:enabled:hover {\n background: #4338CA;\n color: #ffffff;\n border-color: #4338CA;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button:enabled:active {\n background: #4338CA;\n color: #ffffff;\n border-color: #4338CA;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button:enabled:active:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button:disabled {\n opacity: 0.6;\n color: #ffffff;\n background: #4F46E5;\n border: 1px solid #4F46E5;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button .fc-icon-chevron-left {\n font-family: \"PrimeIcons\" !important;\n text-indent: 0;\n font-size: 1rem;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button .fc-icon-chevron-left:before {\n content: \"\\e900\";\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button .fc-icon-chevron-right {\n font-family: \"PrimeIcons\" !important;\n text-indent: 0;\n font-size: 1rem;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button .fc-icon-chevron-right:before {\n content: \"\\e901\";\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button.fc-dayGridMonth-button, .fc.fc-theme-standard .fc-toolbar .fc-button.fc-timeGridWeek-button, .fc.fc-theme-standard .fc-toolbar .fc-button.fc-timeGridDay-button {\n background: #ffffff;\n border: 1px solid #d4d4d8;\n color: #3f3f46;\n transition: none;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button.fc-dayGridMonth-button:hover, .fc.fc-theme-standard .fc-toolbar .fc-button.fc-timeGridWeek-button:hover, .fc.fc-theme-standard .fc-toolbar .fc-button.fc-timeGridDay-button:hover {\n background: #f4f4f5;\n border-color: #d4d4d8;\n color: #3f3f46;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button.fc-dayGridMonth-button.fc-button-active, .fc.fc-theme-standard .fc-toolbar .fc-button.fc-timeGridWeek-button.fc-button-active, .fc.fc-theme-standard .fc-toolbar .fc-button.fc-timeGridDay-button.fc-button-active {\n background: #4F46E5;\n border-color: #4F46E5;\n color: #ffffff;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button.fc-dayGridMonth-button.fc-button-active:hover, .fc.fc-theme-standard .fc-toolbar .fc-button.fc-timeGridWeek-button.fc-button-active:hover, .fc.fc-theme-standard .fc-toolbar .fc-button.fc-timeGridDay-button.fc-button-active:hover {\n background: #4338CA;\n border-color: #4338CA;\n color: #ffffff;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button.fc-dayGridMonth-button:not(:disabled):focus, .fc.fc-theme-standard .fc-toolbar .fc-button.fc-timeGridWeek-button:not(:disabled):focus, .fc.fc-theme-standard .fc-toolbar .fc-button.fc-timeGridDay-button:not(:disabled):focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n z-index: 1;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button-group .fc-button {\n border-radius: 0;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button-group .fc-button:first-child {\n border-top-left-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button-group .fc-button:last-child {\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem;\n}\n.fc.fc-theme-standard .fc-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n\n.p-orderlist .p-orderlist-controls {\n padding: 1.25rem;\n}\n.p-orderlist .p-orderlist-controls .p-button {\n margin-bottom: 0.5rem;\n}\n.p-orderlist .p-orderlist-header {\n background: #fafafa;\n color: #3f3f46;\n border: 1px solid #e5e7eb;\n padding: 1.25rem;\n font-weight: 700;\n border-bottom: 0 none;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-orderlist .p-orderlist-list {\n border: 1px solid #e5e7eb;\n background: #ffffff;\n color: #3f3f46;\n padding: 0.25rem 0;\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.p-orderlist .p-orderlist-list .p-orderlist-item {\n padding: 0.75rem 1rem;\n margin: 0;\n border: 0 none;\n color: #3f3f46;\n background: transparent;\n transition: transform 0.2s, none;\n}\n.p-orderlist .p-orderlist-list .p-orderlist-item:not(.p-highlight):hover {\n background: #f4f4f5;\n color: #18181B;\n}\n.p-orderlist .p-orderlist-list .p-orderlist-item:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-orderlist .p-orderlist-list .p-orderlist-item.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-orderlist.p-orderlist-striped .p-orderlist-list .p-orderlist-item:nth-child(even) {\n background: #fcfcfc;\n}\n.p-orderlist.p-orderlist-striped .p-orderlist-list .p-orderlist-item:nth-child(even):hover {\n background: #f4f4f5;\n}\n\n.p-organizationchart .p-organizationchart-node-content.p-organizationchart-selectable-node:not(.p-highlight):hover {\n background: #f4f4f5;\n color: #18181B;\n}\n.p-organizationchart .p-organizationchart-node-content.p-highlight {\n background: #EEF2FF;\n color: #312E81;\n}\n.p-organizationchart .p-organizationchart-node-content.p-highlight .p-node-toggler i {\n color: #6f91ff;\n}\n.p-organizationchart .p-organizationchart-line-down {\n background: #e5e7eb;\n}\n.p-organizationchart .p-organizationchart-line-left {\n border-right: 1px solid #e5e7eb;\n border-color: #e5e7eb;\n}\n.p-organizationchart .p-organizationchart-line-top {\n border-top: 1px solid #e5e7eb;\n border-color: #e5e7eb;\n}\n.p-organizationchart .p-organizationchart-node-content {\n border: 1px solid #e5e7eb;\n background: #ffffff;\n color: #3f3f46;\n padding: 1.25rem;\n}\n.p-organizationchart .p-organizationchart-node-content .p-node-toggler {\n background: inherit;\n color: inherit;\n border-radius: 50%;\n}\n.p-organizationchart .p-organizationchart-node-content .p-node-toggler:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n\n.p-paginator {\n background: #ffffff;\n color: #71717A;\n border: solid #f4f4f5;\n border-width: 0;\n padding: 0.75rem 1.5rem;\n border-radius: 0.375rem;\n}\n.p-paginator .p-paginator-first,\n.p-paginator .p-paginator-prev,\n.p-paginator .p-paginator-next,\n.p-paginator .p-paginator-last {\n background-color: transparent;\n border: 1px solid #d4d4d8;\n color: #71717A;\n min-width: 3rem;\n height: 3rem;\n margin: 0 0 0 -1px;\n transition: none;\n border-radius: 0;\n}\n.p-paginator .p-paginator-first:not(.p-disabled):not(.p-highlight):hover,\n.p-paginator .p-paginator-prev:not(.p-disabled):not(.p-highlight):hover,\n.p-paginator .p-paginator-next:not(.p-disabled):not(.p-highlight):hover,\n.p-paginator .p-paginator-last:not(.p-disabled):not(.p-highlight):hover {\n background: #f4f4f5;\n border-color: #d4d4d8;\n color: #3f3f46;\n}\n.p-paginator .p-paginator-first {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.p-paginator .p-paginator-last {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-paginator .p-dropdown {\n margin-left: 0.5rem;\n margin-right: 0.5rem;\n height: 3rem;\n}\n.p-paginator .p-dropdown .p-dropdown-label {\n padding-right: 0;\n}\n.p-paginator .p-paginator-page-input {\n margin-left: 0.5rem;\n margin-right: 0.5rem;\n}\n.p-paginator .p-paginator-page-input .p-inputtext {\n max-width: 3rem;\n}\n.p-paginator .p-paginator-current {\n background-color: transparent;\n border: 1px solid #d4d4d8;\n color: #71717A;\n min-width: 3rem;\n height: 3rem;\n margin: 0 0 0 -1px;\n padding: 0 0.5rem;\n}\n.p-paginator .p-paginator-pages .p-paginator-page {\n background-color: transparent;\n border: 1px solid #d4d4d8;\n color: #71717A;\n min-width: 3rem;\n height: 3rem;\n margin: 0 0 0 -1px;\n transition: none;\n border-radius: 0;\n}\n.p-paginator .p-paginator-pages .p-paginator-page.p-highlight {\n background: #EEF2FF;\n border-color: #EEF2FF;\n color: #312E81;\n}\n.p-paginator .p-paginator-pages .p-paginator-page:not(.p-highlight):hover {\n background: #f4f4f5;\n border-color: #d4d4d8;\n color: #3f3f46;\n}\n\n.p-picklist .p-picklist-buttons {\n padding: 1.25rem;\n}\n.p-picklist .p-picklist-buttons .p-button {\n margin-bottom: 0.5rem;\n}\n.p-picklist .p-picklist-header {\n background: #fafafa;\n color: #3f3f46;\n border: 1px solid #e5e7eb;\n padding: 1.25rem;\n font-weight: 700;\n border-bottom: 0 none;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-picklist .p-picklist-list {\n border: 1px solid #e5e7eb;\n background: #ffffff;\n color: #3f3f46;\n padding: 0.25rem 0;\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.p-picklist .p-picklist-list .p-picklist-item {\n padding: 0.75rem 1rem;\n margin: 0;\n border: 0 none;\n color: #3f3f46;\n background: transparent;\n transition: transform 0.2s, none;\n}\n.p-picklist .p-picklist-list .p-picklist-item:not(.p-highlight):hover {\n background: #f4f4f5;\n color: #18181B;\n}\n.p-picklist .p-picklist-list .p-picklist-item:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-picklist .p-picklist-list .p-picklist-item.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-picklist.p-picklist-striped .p-picklist-list .p-picklist-item:nth-child(even) {\n background: #fcfcfc;\n}\n.p-picklist.p-picklist-striped .p-picklist-list .p-picklist-item:nth-child(even):hover {\n background: #f4f4f5;\n}\n\n.p-timeline .p-timeline-event-marker {\n border: 2px solid #4F46E5;\n border-radius: 50%;\n width: 1rem;\n height: 1rem;\n background-color: #ffffff;\n}\n.p-timeline .p-timeline-event-connector {\n background-color: #e5e7eb;\n}\n.p-timeline.p-timeline-vertical .p-timeline-event-opposite,\n.p-timeline.p-timeline-vertical .p-timeline-event-content {\n padding: 0 1rem;\n}\n.p-timeline.p-timeline-vertical .p-timeline-event-connector {\n width: 2px;\n}\n.p-timeline.p-timeline-horizontal .p-timeline-event-opposite,\n.p-timeline.p-timeline-horizontal .p-timeline-event-content {\n padding: 1rem 0;\n}\n.p-timeline.p-timeline-horizontal .p-timeline-event-connector {\n height: 2px;\n}\n\n.p-tree {\n border: 1px solid #e5e7eb;\n background: #ffffff;\n color: #3f3f46;\n padding: 1.25rem;\n border-radius: 0.375rem;\n}\n.p-tree .p-tree-container .p-treenode {\n padding: 0.143rem;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content {\n border-radius: 0.375rem;\n transition: none;\n padding: 0;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler {\n margin-right: 0.5rem;\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler:enabled:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content .p-treenode-icon {\n margin-right: 0.5rem;\n color: #71717A;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content .p-checkbox {\n margin-right: 0.5rem;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content .p-checkbox .p-indeterminate .p-checkbox-icon {\n color: #3f3f46;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight {\n background: #EEF2FF;\n color: #312E81;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-tree-toggler,\n.p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-treenode-icon {\n color: #312E81;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-tree-toggler:hover,\n.p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-treenode-icon:hover {\n color: #312E81;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content.p-treenode-selectable:not(.p-highlight):hover {\n background: #f4f4f5;\n color: #18181B;\n}\n.p-tree .p-tree-filter-container {\n margin-bottom: 0.5rem;\n}\n.p-tree .p-tree-filter-container .p-tree-filter {\n width: 100%;\n padding-right: 1.75rem;\n}\n.p-tree .p-tree-filter-container .p-tree-filter-icon {\n right: 0.75rem;\n color: #71717A;\n}\n.p-tree .p-treenode-children {\n padding: 0 0 0 1rem;\n}\n.p-tree .p-tree-loading-icon {\n font-size: 2rem;\n}\n\n.p-treetable .p-paginator-top {\n border-width: 0 0 1px 0;\n border-radius: 0;\n}\n.p-treetable .p-paginator-bottom {\n border-width: 0 0 1px 0;\n border-radius: 0;\n}\n.p-treetable .p-treetable-header {\n background: #fafafa;\n color: #3f3f46;\n border: 1px solid #f4f4f5;\n border-width: 1px 0 1px 0;\n padding: 1.25rem 1.25rem;\n font-weight: 600;\n}\n.p-treetable .p-treetable-footer {\n background: #fafafa;\n color: #3f3f46;\n border: 1px solid #f4f4f5;\n border-width: 0 0 1px 0;\n padding: 0.75rem 1.5rem;\n font-weight: 600;\n}\n.p-treetable .p-treetable-thead > tr > th {\n text-align: left;\n padding: 0.75rem 1.5rem;\n border: 1px solid #f4f4f5;\n border-width: 0 0 1px 0;\n font-weight: 500;\n color: #6b7280;\n background: #fafafa;\n transition: none;\n}\n.p-treetable .p-treetable-tfoot > tr > td {\n text-align: left;\n padding: 1rem 1rem;\n border: 1px solid #f4f4f5;\n border-width: 0 0 1px 0;\n font-weight: 600;\n color: #3f3f46;\n background: #fafafa;\n}\n.p-treetable .p-sortable-column {\n outline-color: #6366F1;\n}\n.p-treetable .p-sortable-column .p-sortable-column-icon {\n color: #71717A;\n margin-left: 0.5rem;\n}\n.p-treetable .p-sortable-column .p-sortable-column-badge {\n border-radius: 50%;\n height: 1.143rem;\n min-width: 1.143rem;\n line-height: 1.143rem;\n color: #312E81;\n background: #EEF2FF;\n margin-left: 0.5rem;\n}\n.p-treetable .p-sortable-column:not(.p-highlight):hover {\n background: #f4f4f5;\n color: #3f3f46;\n}\n.p-treetable .p-sortable-column:not(.p-highlight):hover .p-sortable-column-icon {\n color: #71717A;\n}\n.p-treetable .p-sortable-column.p-highlight {\n background: #fafafa;\n color: #4F46E5;\n}\n.p-treetable .p-sortable-column.p-highlight .p-sortable-column-icon {\n color: #4F46E5;\n}\n.p-treetable .p-treetable-tbody > tr {\n background: #ffffff;\n color: #3f3f46;\n transition: none;\n}\n.p-treetable .p-treetable-tbody > tr > td {\n text-align: left;\n border: 1px solid #f4f4f5;\n border-width: 0 0 1px 0;\n padding: 1rem 1.5rem;\n}\n.p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler {\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n margin-right: 0.5rem;\n}\n.p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler:enabled:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler + .p-checkbox {\n margin-right: 0.5rem;\n}\n.p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler + .p-checkbox .p-indeterminate .p-checkbox-icon {\n color: #3f3f46;\n}\n.p-treetable .p-treetable-tbody > tr:focus {\n outline: 0.15rem solid #6366F1;\n outline-offset: -0.15rem;\n}\n.p-treetable .p-treetable-tbody > tr.p-highlight {\n background: #EEF2FF;\n color: #312E81;\n}\n.p-treetable .p-treetable-tbody > tr.p-highlight .p-treetable-toggler {\n color: #312E81;\n}\n.p-treetable .p-treetable-tbody > tr.p-highlight .p-treetable-toggler:hover {\n color: #312E81;\n}\n.p-treetable.p-treetable-hoverable-rows .p-treetable-tbody > tr:not(.p-highlight):hover {\n background: #f4f4f5;\n color: #3f3f46;\n}\n.p-treetable.p-treetable-hoverable-rows .p-treetable-tbody > tr:not(.p-highlight):hover .p-treetable-toggler {\n color: #3f3f46;\n}\n.p-treetable .p-column-resizer-helper {\n background: #4F46E5;\n}\n.p-treetable .p-treetable-scrollable-header,\n.p-treetable .p-treetable-scrollable-footer {\n background: #fafafa;\n}\n.p-treetable .p-treetable-loading-icon {\n font-size: 2rem;\n}\n.p-treetable.p-treetable-gridlines .p-datatable-header {\n border-width: 1px 1px 0 1px;\n}\n.p-treetable.p-treetable-gridlines .p-treetable-footer {\n border-width: 0 1px 1px 1px;\n}\n.p-treetable.p-treetable-gridlines .p-treetable-top {\n border-width: 0 1px 0 1px;\n}\n.p-treetable.p-treetable-gridlines .p-treetable-bottom {\n border-width: 0 1px 1px 1px;\n}\n.p-treetable.p-treetable-gridlines .p-treetable-thead > tr > th {\n border-width: 1px;\n}\n.p-treetable.p-treetable-gridlines .p-treetable-tbody > tr > td {\n border-width: 1px;\n}\n.p-treetable.p-treetable-gridlines .p-treetable-tfoot > tr > td {\n border-width: 1px;\n}\n.p-treetable.p-treetable-sm .p-treetable-header {\n padding: 1.09375rem 1.09375rem;\n}\n.p-treetable.p-treetable-sm .p-treetable-thead > tr > th {\n padding: 0.375rem 0.75rem;\n}\n.p-treetable.p-treetable-sm .p-treetable-tbody > tr > td {\n padding: 0.5rem 0.75rem;\n}\n.p-treetable.p-treetable-sm .p-treetable-tfoot > tr > td {\n padding: 0.375rem 0.75rem;\n}\n.p-treetable.p-treetable-sm .p-treetable-footer {\n padding: 0.375rem 0.75rem;\n}\n.p-treetable.p-treetable-lg .p-treetable-header {\n padding: 1.5625rem 1.5625rem;\n}\n.p-treetable.p-treetable-lg .p-treetable-thead > tr > th {\n padding: 0.9375rem 1.875rem;\n}\n.p-treetable.p-treetable-lg .p-treetable-tbody > tr > td {\n padding: 1.25rem 1.875rem;\n}\n.p-treetable.p-treetable-lg .p-treetable-tfoot > tr > td {\n padding: 0.9375rem 1.875rem;\n}\n.p-treetable.p-treetable-lg .p-treetable-footer {\n padding: 0.9375rem 1.875rem;\n}\n\n.p-accordion .p-accordion-header .p-accordion-header-link {\n padding: 1.25rem;\n border: 1px solid #e5e7eb;\n color: #3f3f46;\n background: #fafafa;\n font-weight: 700;\n border-radius: 0.375rem;\n transition: none;\n}\n.p-accordion .p-accordion-header .p-accordion-header-link .p-accordion-toggle-icon {\n margin-right: 0.5rem;\n}\n.p-accordion .p-accordion-header:not(.p-disabled) .p-accordion-header-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-accordion .p-accordion-header:not(.p-highlight):not(.p-disabled):hover .p-accordion-header-link {\n background: #f4f4f5;\n border-color: #e5e7eb;\n color: #3f3f46;\n}\n.p-accordion .p-accordion-header:not(.p-disabled).p-highlight .p-accordion-header-link {\n background: #fafafa;\n border-color: #e5e7eb;\n color: #3f3f46;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.p-accordion .p-accordion-header:not(.p-disabled).p-highlight:hover .p-accordion-header-link {\n border-color: #e5e7eb;\n background: #f4f4f5;\n color: #3f3f46;\n}\n.p-accordion .p-accordion-content {\n padding: 1.25rem;\n border: 1px solid #e5e7eb;\n background: #ffffff;\n color: #3f3f46;\n border-top: 0;\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.p-accordion .p-accordion-tab {\n margin-bottom: 0;\n}\n.p-accordion .p-accordion-tab .p-accordion-header .p-accordion-header-link {\n border-radius: 0;\n}\n.p-accordion .p-accordion-tab .p-accordion-content {\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.p-accordion .p-accordion-tab:not(:first-child) .p-accordion-header .p-accordion-header-link {\n border-top: 0 none;\n}\n.p-accordion .p-accordion-tab:not(:first-child) .p-accordion-header:not(.p-highlight):not(.p-disabled):hover .p-accordion-header-link, .p-accordion .p-accordion-tab:not(:first-child) .p-accordion-header:not(.p-disabled).p-highlight:hover .p-accordion-header-link {\n border-top: 0 none;\n}\n.p-accordion .p-accordion-tab:first-child .p-accordion-header .p-accordion-header-link {\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-accordion .p-accordion-tab:last-child .p-accordion-header:not(.p-highlight) .p-accordion-header-link {\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.p-accordion .p-accordion-tab:last-child .p-accordion-content {\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n\n.p-card {\n background: #ffffff;\n color: #3f3f46;\n box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);\n border-radius: 0.375rem;\n}\n.p-card .p-card-body {\n padding: 1.25rem;\n}\n.p-card .p-card-title {\n font-size: 1.5rem;\n font-weight: 700;\n margin-bottom: 0.5rem;\n}\n.p-card .p-card-subtitle {\n font-weight: 400;\n margin-bottom: 0.5rem;\n color: #71717A;\n}\n.p-card .p-card-content {\n padding: 1.25rem 0;\n}\n.p-card .p-card-footer {\n padding: 1.25rem 0 0 0;\n}\n\n.p-fieldset {\n border: 1px solid #e5e7eb;\n background: #ffffff;\n color: #3f3f46;\n border-radius: 0.375rem;\n}\n.p-fieldset .p-fieldset-legend {\n padding: 1.25rem;\n border: 1px solid #e5e7eb;\n color: #3f3f46;\n background: #fafafa;\n font-weight: 700;\n border-radius: 0.375rem;\n}\n.p-fieldset.p-fieldset-toggleable .p-fieldset-legend {\n padding: 0;\n transition: none;\n}\n.p-fieldset.p-fieldset-toggleable .p-fieldset-legend a {\n padding: 1.25rem;\n color: #3f3f46;\n border-radius: 0.375rem;\n transition: none;\n}\n.p-fieldset.p-fieldset-toggleable .p-fieldset-legend a .p-fieldset-toggler {\n margin-right: 0.5rem;\n}\n.p-fieldset.p-fieldset-toggleable .p-fieldset-legend a:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-fieldset.p-fieldset-toggleable .p-fieldset-legend a:hover {\n color: #18181B;\n}\n.p-fieldset.p-fieldset-toggleable .p-fieldset-legend:hover {\n background: #f4f4f5;\n border-color: #e5e7eb;\n color: #18181B;\n}\n.p-fieldset .p-fieldset-content {\n padding: 1.25rem;\n}\n\n.p-divider .p-divider-content {\n background-color: #ffffff;\n}\n.p-divider.p-divider-horizontal {\n margin: 1rem 0;\n padding: 0 1rem;\n}\n.p-divider.p-divider-horizontal:before {\n border-top: 1px #e5e7eb;\n}\n.p-divider.p-divider-horizontal .p-divider-content {\n padding: 0 0.5rem;\n}\n.p-divider.p-divider-vertical {\n margin: 0 1rem;\n padding: 1rem 0;\n}\n.p-divider.p-divider-vertical:before {\n border-left: 1px #e5e7eb;\n}\n.p-divider.p-divider-vertical .p-divider-content {\n padding: 0.5rem 0;\n}\n\n.p-panel .p-panel-header {\n border: 1px solid #e5e7eb;\n padding: 1.25rem;\n background: #fafafa;\n color: #3f3f46;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-panel .p-panel-header .p-panel-title {\n font-weight: 700;\n}\n.p-panel .p-panel-header .p-panel-header-icon {\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n}\n.p-panel .p-panel-header .p-panel-header-icon:enabled:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-panel .p-panel-header .p-panel-header-icon:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-panel.p-panel-toggleable .p-panel-header {\n padding: 0.75rem 1.25rem;\n}\n.p-panel .p-panel-content {\n padding: 1.25rem;\n border: 1px solid #e5e7eb;\n background: #ffffff;\n color: #3f3f46;\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n border-top: 0 none;\n}\n.p-panel .p-panel-footer {\n padding: 0.75rem 1.25rem;\n border: 1px solid #e5e7eb;\n background: #ffffff;\n color: #3f3f46;\n border-top: 0 none;\n}\n\n.p-scrollpanel .p-scrollpanel-bar {\n background: #fafafa;\n border: 0 none;\n}\n\n.p-splitter {\n border: 1px solid #e5e7eb;\n background: #ffffff;\n border-radius: 0.375rem;\n color: #3f3f46;\n}\n.p-splitter .p-splitter-gutter {\n transition: none;\n background: #fafafa;\n}\n.p-splitter .p-splitter-gutter .p-splitter-gutter-handle {\n background: #e5e7eb;\n}\n.p-splitter .p-splitter-gutter-resizing {\n background: #e5e7eb;\n}\n\n.p-tabview .p-tabview-nav {\n background: #ffffff;\n border: 1px solid #e5e7eb;\n border-width: 0 0 2px 0;\n}\n.p-tabview .p-tabview-nav li {\n margin-right: 0;\n}\n.p-tabview .p-tabview-nav li .p-tabview-nav-link {\n border: solid #e5e7eb;\n border-width: 0 0 2px 0;\n border-color: transparent transparent #e5e7eb transparent;\n background: #ffffff;\n color: #71717A;\n padding: 1.25rem;\n font-weight: 700;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n transition: none;\n margin: 0 0 -2px 0;\n}\n.p-tabview .p-tabview-nav li .p-tabview-nav-link:not(.p-disabled):focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 1px #6366F1;\n}\n.p-tabview .p-tabview-nav li:not(.p-highlight):not(.p-disabled):hover .p-tabview-nav-link {\n background: #ffffff;\n border-color: #71717A;\n color: #71717A;\n}\n.p-tabview .p-tabview-nav li.p-highlight .p-tabview-nav-link {\n background: #ffffff;\n border-color: #4F46E5;\n color: #4F46E5;\n}\n.p-tabview .p-tabview-nav-btn.p-link {\n background: #ffffff;\n color: #4F46E5;\n width: 3rem;\n box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);\n border-radius: 0;\n}\n.p-tabview .p-tabview-nav-btn.p-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 1px #6366F1;\n}\n.p-tabview .p-tabview-panels {\n background: #ffffff;\n padding: 1.25rem;\n border: 0 none;\n color: #3f3f46;\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n\n.p-toolbar {\n background: #fafafa;\n border: 1px solid #e5e7eb;\n padding: 1.25rem;\n border-radius: 0.375rem;\n}\n.p-toolbar .p-toolbar-separator {\n margin: 0 0.5rem;\n}\n\n.p-confirm-popup {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n border-radius: 0.375rem;\n box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);\n}\n.p-confirm-popup .p-confirm-popup-content {\n padding: 1.25rem;\n}\n.p-confirm-popup .p-confirm-popup-footer {\n text-align: right;\n padding: 0 1rem 1rem 1rem;\n}\n.p-confirm-popup .p-confirm-popup-footer button {\n margin: 0 0.5rem 0 0;\n width: auto;\n}\n.p-confirm-popup .p-confirm-popup-footer button:last-child {\n margin: 0;\n}\n.p-confirm-popup:after {\n border: solid transparent;\n border-color: rgba(255, 255, 255, 0);\n border-bottom-color: #ffffff;\n}\n.p-confirm-popup:before {\n border: solid transparent;\n border-color: rgba(255, 255, 255, 0);\n border-bottom-color: #ffffff;\n}\n.p-confirm-popup.p-confirm-popup-flipped:after {\n border-top-color: #ffffff;\n}\n.p-confirm-popup.p-confirm-popup-flipped:before {\n border-top-color: #ffffff;\n}\n.p-confirm-popup .p-confirm-popup-icon {\n font-size: 1.5rem;\n}\n.p-confirm-popup .p-confirm-popup-message {\n margin-left: 1rem;\n}\n\n.p-dialog {\n border-radius: 0.375rem;\n box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);\n border: 0 none;\n}\n.p-dialog .p-dialog-header {\n border-bottom: 0 none;\n background: #ffffff;\n color: #3f3f46;\n padding: 1.5rem;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-dialog .p-dialog-header .p-dialog-title {\n font-weight: 600;\n font-size: 1.5rem;\n}\n.p-dialog .p-dialog-header .p-dialog-header-icon {\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n margin-right: 0.5rem;\n}\n.p-dialog .p-dialog-header .p-dialog-header-icon:enabled:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-dialog .p-dialog-header .p-dialog-header-icon:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-dialog .p-dialog-header .p-dialog-header-icon:last-child {\n margin-right: 0;\n}\n.p-dialog .p-dialog-content {\n background: #ffffff;\n color: #3f3f46;\n padding: 0 1.5rem 1.5rem 1.5rem;\n}\n.p-dialog .p-dialog-footer {\n border-top: 0 none;\n background: #ffffff;\n color: #3f3f46;\n padding: 0 1.5rem 1.5rem 1.5rem;\n text-align: right;\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.p-dialog .p-dialog-footer button {\n margin: 0 0.5rem 0 0;\n width: auto;\n}\n.p-dialog.p-confirm-dialog .p-confirm-dialog-icon {\n font-size: 2rem;\n}\n.p-dialog.p-confirm-dialog .p-confirm-dialog-message {\n margin-left: 1rem;\n}\n\n.p-overlaypanel {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n border-radius: 0.375rem;\n box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);\n}\n.p-overlaypanel .p-overlaypanel-content {\n padding: 1.25rem;\n}\n.p-overlaypanel .p-overlaypanel-close {\n background: #4F46E5;\n color: #ffffff;\n width: 2rem;\n height: 2rem;\n transition: none;\n border-radius: 50%;\n position: absolute;\n top: -1rem;\n right: -1rem;\n}\n.p-overlaypanel .p-overlaypanel-close:enabled:hover {\n background: #4338CA;\n color: #ffffff;\n}\n.p-overlaypanel:after {\n border: solid transparent;\n border-color: rgba(255, 255, 255, 0);\n border-bottom-color: #ffffff;\n}\n.p-overlaypanel:before {\n border: solid transparent;\n border-color: rgba(255, 255, 255, 0);\n border-bottom-color: #ffffff;\n}\n.p-overlaypanel.p-overlaypanel-flipped:after {\n border-top-color: #ffffff;\n}\n.p-overlaypanel.p-overlaypanel-flipped:before {\n border-top-color: #ffffff;\n}\n\n.p-sidebar {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);\n}\n.p-sidebar .p-sidebar-header {\n padding: 1.25rem;\n}\n.p-sidebar .p-sidebar-header .p-sidebar-close,\n.p-sidebar .p-sidebar-header .p-sidebar-icon {\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n}\n.p-sidebar .p-sidebar-header .p-sidebar-close:enabled:hover,\n.p-sidebar .p-sidebar-header .p-sidebar-icon:enabled:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-sidebar .p-sidebar-header .p-sidebar-close:focus,\n.p-sidebar .p-sidebar-header .p-sidebar-icon:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-sidebar .p-sidebar-header + .p-sidebar-content {\n padding-top: 0;\n}\n.p-sidebar .p-sidebar-content {\n padding: 1.25rem;\n}\n\n.p-tooltip .p-tooltip-text {\n background: #3f3f46;\n color: #ffffff;\n padding: 0.75rem 0.75rem;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n border-radius: 0.375rem;\n}\n.p-tooltip.p-tooltip-right .p-tooltip-arrow {\n border-right-color: #3f3f46;\n}\n.p-tooltip.p-tooltip-left .p-tooltip-arrow {\n border-left-color: #3f3f46;\n}\n.p-tooltip.p-tooltip-top .p-tooltip-arrow {\n border-top-color: #3f3f46;\n}\n.p-tooltip.p-tooltip-bottom .p-tooltip-arrow {\n border-bottom-color: #3f3f46;\n}\n\n.p-fileupload .p-fileupload-buttonbar {\n background: #fafafa;\n padding: 1.25rem;\n border: 1px solid #e5e7eb;\n color: #3f3f46;\n border-bottom: 0 none;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-fileupload .p-fileupload-buttonbar .p-button {\n margin-right: 0.5rem;\n}\n.p-fileupload .p-fileupload-buttonbar .p-button.p-fileupload-choose.p-focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-fileupload .p-fileupload-content {\n background: #ffffff;\n padding: 2rem 1rem;\n border: 1px solid #e5e7eb;\n color: #3f3f46;\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.p-fileupload .p-progressbar {\n height: 0.25rem;\n}\n.p-fileupload .p-fileupload-row > div {\n padding: 1rem 1.5rem;\n}\n.p-fileupload.p-fileupload-advanced .p-message {\n margin-top: 0;\n}\n\n.p-fileupload-choose:not(.p-disabled):hover {\n background: #4338CA;\n color: #ffffff;\n border-color: #4338CA;\n}\n.p-fileupload-choose:not(.p-disabled):active {\n background: #4338CA;\n color: #ffffff;\n border-color: #4338CA;\n}\n\n.p-breadcrumb {\n background: #ffffff;\n border: 1px solid #e5e7eb;\n border-radius: 0.375rem;\n padding: 1rem;\n}\n.p-breadcrumb ul li .p-menuitem-link {\n transition: none;\n border-radius: 0.375rem;\n}\n.p-breadcrumb ul li .p-menuitem-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-breadcrumb ul li .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-breadcrumb ul li .p-menuitem-link .p-menuitem-icon {\n color: #71717A;\n}\n.p-breadcrumb ul li.p-breadcrumb-chevron {\n margin: 0 0.5rem 0 0.5rem;\n color: #3f3f46;\n}\n.p-breadcrumb ul li:last-child .p-menuitem-text {\n color: #3f3f46;\n}\n.p-breadcrumb ul li:last-child .p-menuitem-icon {\n color: #71717A;\n}\n\n.p-contextmenu {\n padding: 0.25rem 0;\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n border-radius: 0.375rem;\n width: 12.5rem;\n}\n.p-contextmenu .p-menuitem-link {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n border-radius: 0;\n transition: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-contextmenu .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-contextmenu .p-menuitem-link .p-menuitem-icon {\n color: #71717A;\n margin-right: 0.5rem;\n}\n.p-contextmenu .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n}\n.p-contextmenu .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #18181B;\n}\n.p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n}\n.p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n}\n.p-contextmenu .p-menuitem-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-contextmenu .p-submenu-list {\n padding: 0.25rem 0;\n background: #ffffff;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n border-radius: 0.375rem;\n}\n.p-contextmenu .p-menuitem.p-menuitem-active > .p-menuitem-link {\n background: #f4f4f5;\n}\n.p-contextmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-contextmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon, .p-contextmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n}\n.p-contextmenu .p-menu-separator {\n border-top: 1px solid #f3f4f6;\n margin: 0.25rem 0;\n}\n.p-contextmenu .p-submenu-icon {\n font-size: 0.875rem;\n}\n\n.p-dock .p-dock-list-container {\n background: rgba(255, 255, 255, 0.1);\n border: 1px solid rgba(255, 255, 255, 0.2);\n padding: 0.5rem 0.5rem;\n border-radius: 0.5rem;\n}\n.p-dock .p-dock-item {\n padding: 0.5rem;\n}\n.p-dock .p-dock-action {\n width: 4rem;\n height: 4rem;\n}\n.p-dock.p-dock-top .p-dock-item-second-prev,\n.p-dock.p-dock-top .p-dock-item-second-next, .p-dock.p-dock-bottom .p-dock-item-second-prev,\n.p-dock.p-dock-bottom .p-dock-item-second-next {\n margin: 0 0.9rem;\n}\n.p-dock.p-dock-top .p-dock-item-prev,\n.p-dock.p-dock-top .p-dock-item-next, .p-dock.p-dock-bottom .p-dock-item-prev,\n.p-dock.p-dock-bottom .p-dock-item-next {\n margin: 0 1.3rem;\n}\n.p-dock.p-dock-top .p-dock-item-current, .p-dock.p-dock-bottom .p-dock-item-current {\n margin: 0 1.5rem;\n}\n.p-dock.p-dock-left .p-dock-item-second-prev,\n.p-dock.p-dock-left .p-dock-item-second-next, .p-dock.p-dock-right .p-dock-item-second-prev,\n.p-dock.p-dock-right .p-dock-item-second-next {\n margin: 0.9rem 0;\n}\n.p-dock.p-dock-left .p-dock-item-prev,\n.p-dock.p-dock-left .p-dock-item-next, .p-dock.p-dock-right .p-dock-item-prev,\n.p-dock.p-dock-right .p-dock-item-next {\n margin: 1.3rem 0;\n}\n.p-dock.p-dock-left .p-dock-item-current, .p-dock.p-dock-right .p-dock-item-current {\n margin: 1.5rem 0;\n}\n\n@media screen and (max-width: 960px) {\n .p-dock.p-dock-top .p-dock-list-container, .p-dock.p-dock-bottom .p-dock-list-container {\n overflow-x: auto;\n width: 100%;\n }\n .p-dock.p-dock-top .p-dock-list-container .p-dock-list, .p-dock.p-dock-bottom .p-dock-list-container .p-dock-list {\n margin: 0 auto;\n }\n .p-dock.p-dock-left .p-dock-list-container, .p-dock.p-dock-right .p-dock-list-container {\n overflow-y: auto;\n height: 100%;\n }\n .p-dock.p-dock-left .p-dock-list-container .p-dock-list, .p-dock.p-dock-right .p-dock-list-container .p-dock-list {\n margin: auto 0;\n }\n .p-dock .p-dock-list .p-dock-item {\n transform: none;\n margin: 0;\n }\n}\n.p-megamenu {\n padding: 1rem;\n background: #fafafa;\n color: #3f3f46;\n border: 1px solid #e5e7eb;\n border-radius: 0.375rem;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n border-radius: 0.375rem;\n transition: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-icon {\n color: #71717A;\n margin-right: 0.5rem;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n margin-left: 0.5rem;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #18181B;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link,\n.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text,\n.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #3f3f46;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon,\n.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon,\n.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n}\n.p-megamenu .p-menuitem-link {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n border-radius: 0;\n transition: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-megamenu .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-megamenu .p-menuitem-link .p-menuitem-icon {\n color: #71717A;\n margin-right: 0.5rem;\n}\n.p-megamenu .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n}\n.p-megamenu .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-megamenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #18181B;\n}\n.p-megamenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n}\n.p-megamenu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n}\n.p-megamenu .p-menuitem-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-megamenu .p-megamenu-panel {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n.p-megamenu .p-megamenu-submenu-header {\n margin: 0;\n padding: 0.75rem 1rem;\n color: #3f3f46;\n background: #ffffff;\n font-weight: 600;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-megamenu .p-megamenu-submenu {\n padding: 0.25rem 0;\n width: 12.5rem;\n}\n.p-megamenu .p-megamenu-submenu .p-menu-separator {\n border-top: 1px solid #f3f4f6;\n margin: 0.25rem 0;\n}\n.p-megamenu .p-menuitem.p-menuitem-active > .p-menuitem-link {\n background: #f4f4f5;\n}\n.p-megamenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-megamenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon, .p-megamenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n}\n.p-megamenu.p-megamenu-vertical {\n width: 12.5rem;\n padding: 0.25rem 0;\n}\n\n.p-menu {\n padding: 0.25rem 0;\n background: #ffffff;\n color: #3f3f46;\n border: 1px solid #e5e7eb;\n border-radius: 0.375rem;\n width: 12.5rem;\n}\n.p-menu .p-menuitem-link {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n border-radius: 0;\n transition: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-menu .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-menu .p-menuitem-link .p-menuitem-icon {\n color: #71717A;\n margin-right: 0.5rem;\n}\n.p-menu .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n}\n.p-menu .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-menu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #18181B;\n}\n.p-menu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n}\n.p-menu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n}\n.p-menu .p-menuitem-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-menu.p-menu-overlay {\n background: #ffffff;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n.p-menu .p-submenu-header {\n margin: 0;\n padding: 0.75rem 1rem;\n color: #3f3f46;\n background: #ffffff;\n font-weight: 600;\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n}\n.p-menu .p-menu-separator {\n border-top: 1px solid #f3f4f6;\n margin: 0.25rem 0;\n}\n\n.p-menubar {\n padding: 1rem;\n background: #fafafa;\n color: #3f3f46;\n border: 1px solid #e5e7eb;\n border-radius: 0.375rem;\n}\n.p-menubar .p-menuitem-link {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n border-radius: 0;\n transition: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-menubar .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-menubar .p-menuitem-link .p-menuitem-icon {\n color: #71717A;\n margin-right: 0.5rem;\n}\n.p-menubar .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n}\n.p-menubar .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-menubar .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #18181B;\n}\n.p-menubar .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n}\n.p-menubar .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n}\n.p-menubar .p-menuitem-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n border-radius: 0.375rem;\n transition: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-icon {\n color: #71717A;\n margin-right: 0.5rem;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n margin-left: 0.5rem;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #18181B;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link,\n.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text,\n.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #3f3f46;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon,\n.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon,\n.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n}\n.p-menubar .p-submenu-list {\n padding: 0.25rem 0;\n background: #ffffff;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n width: 12.5rem;\n}\n.p-menubar .p-submenu-list .p-menu-separator {\n border-top: 1px solid #f3f4f6;\n margin: 0.25rem 0;\n}\n.p-menubar .p-submenu-list .p-submenu-icon {\n font-size: 0.875rem;\n}\n.p-menubar .p-menuitem.p-menuitem-active > .p-menuitem-link {\n background: #f4f4f5;\n}\n.p-menubar .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-menubar .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon, .p-menubar .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n}\n\n@media screen and (max-width: 960px) {\n .p-menubar {\n position: relative;\n }\n .p-menubar .p-menubar-button {\n display: flex;\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border-radius: 50%;\n transition: none;\n }\n .p-menubar .p-menubar-button:hover {\n color: #71717A;\n background: #f4f4f5;\n }\n .p-menubar .p-menubar-button:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n }\n .p-menubar .p-menubar-root-list {\n position: absolute;\n display: none;\n padding: 0.25rem 0;\n background: #ffffff;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n width: 100%;\n }\n .p-menubar .p-menubar-root-list .p-menu-separator {\n border-top: 1px solid #f3f4f6;\n margin: 0.25rem 0;\n }\n .p-menubar .p-menubar-root-list .p-submenu-icon {\n font-size: 0.875rem;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem {\n width: 100%;\n position: static;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n border-radius: 0;\n transition: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-icon {\n color: #71717A;\n margin-right: 0.5rem;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #18181B;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link > .p-submenu-icon {\n margin-left: auto;\n transition: transform 0.2s;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link > .p-submenu-icon {\n transform: rotate(-180deg);\n }\n .p-menubar .p-menubar-root-list .p-submenu-list {\n width: 100%;\n position: static;\n box-shadow: none;\n border: 0 none;\n }\n .p-menubar .p-menubar-root-list .p-submenu-list .p-submenu-icon {\n transition: transform 0.2s;\n transform: rotate(90deg);\n }\n .p-menubar .p-menubar-root-list .p-submenu-list .p-menuitem-active > .p-menuitem-link > .p-submenu-icon {\n transform: rotate(-90deg);\n }\n .p-menubar .p-menubar-root-list .p-menuitem {\n width: 100%;\n position: static;\n }\n .p-menubar .p-menubar-root-list ul li a {\n padding-left: 2.25rem;\n }\n .p-menubar .p-menubar-root-list ul li ul li a {\n padding-left: 3.75rem;\n }\n .p-menubar .p-menubar-root-list ul li ul li ul li a {\n padding-left: 5.25rem;\n }\n .p-menubar .p-menubar-root-list ul li ul li ul li ul li a {\n padding-left: 6.75rem;\n }\n .p-menubar .p-menubar-root-list ul li ul li ul li ul li ul li a {\n padding-left: 8.25rem;\n }\n .p-menubar.p-menubar-mobile-active .p-menubar-root-list {\n display: flex;\n flex-direction: column;\n top: 100%;\n left: 0;\n z-index: 1;\n }\n}\n.p-panelmenu .p-panelmenu-header > a {\n padding: 1.25rem;\n border: 1px solid #e5e7eb;\n color: #3f3f46;\n background: #fafafa;\n font-weight: 700;\n border-radius: 0.375rem;\n transition: none;\n}\n.p-panelmenu .p-panelmenu-header > a .p-panelmenu-icon {\n margin-right: 0.5rem;\n}\n.p-panelmenu .p-panelmenu-header > a .p-menuitem-icon {\n margin-right: 0.5rem;\n}\n.p-panelmenu .p-panelmenu-header > a:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-panelmenu .p-panelmenu-header:not(.p-highlight):not(.p-disabled) > a:hover {\n background: #f4f4f5;\n border-color: #e5e7eb;\n color: #3f3f46;\n}\n.p-panelmenu .p-panelmenu-header.p-highlight {\n margin-bottom: 0;\n}\n.p-panelmenu .p-panelmenu-header.p-highlight > a {\n background: #fafafa;\n border-color: #e5e7eb;\n color: #3f3f46;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.p-panelmenu .p-panelmenu-header.p-highlight:not(.p-disabled) > a:hover {\n border-color: #e5e7eb;\n background: #f4f4f5;\n color: #3f3f46;\n}\n.p-panelmenu .p-panelmenu-content {\n padding: 0.25rem 0;\n border: 1px solid #e5e7eb;\n background: #ffffff;\n color: #3f3f46;\n margin-bottom: 0;\n border-top: 0;\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n border-radius: 0;\n transition: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link .p-menuitem-icon {\n color: #71717A;\n margin-right: 0.5rem;\n}\n.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n}\n.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #18181B;\n}\n.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n}\n.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n}\n.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link .p-panelmenu-icon {\n margin-right: 0.5rem;\n}\n.p-panelmenu .p-panelmenu-content .p-submenu-list:not(.p-panelmenu-root-submenu) {\n padding: 0 0 0 1rem;\n}\n.p-panelmenu .p-panelmenu-panel {\n margin-bottom: 0;\n}\n.p-panelmenu .p-panelmenu-panel .p-panelmenu-header > a {\n border-radius: 0;\n}\n.p-panelmenu .p-panelmenu-panel .p-panelmenu-content {\n border-radius: 0;\n}\n.p-panelmenu .p-panelmenu-panel:not(:first-child) .p-panelmenu-header > a {\n border-top: 0 none;\n}\n.p-panelmenu .p-panelmenu-panel:not(:first-child) .p-panelmenu-header:not(.p-highlight):not(.p-disabled):hover > a, .p-panelmenu .p-panelmenu-panel:not(:first-child) .p-panelmenu-header:not(.p-disabled).p-highlight:hover > a {\n border-top: 0 none;\n}\n.p-panelmenu .p-panelmenu-panel:first-child .p-panelmenu-header > a {\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-panelmenu .p-panelmenu-panel:last-child .p-panelmenu-header:not(.p-highlight) > a {\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.p-panelmenu .p-panelmenu-panel:last-child .p-panelmenu-content {\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n\n.p-steps .p-steps-item .p-menuitem-link {\n background: transparent;\n transition: none;\n border-radius: 0.375rem;\n background: #ffffff;\n}\n.p-steps .p-steps-item .p-menuitem-link .p-steps-number {\n color: #3f3f46;\n border: 1px solid #f4f4f5;\n background: #ffffff;\n min-width: 2rem;\n height: 2rem;\n line-height: 2rem;\n font-size: 1.143rem;\n z-index: 1;\n border-radius: 50%;\n}\n.p-steps .p-steps-item .p-menuitem-link .p-steps-title {\n margin-top: 0.5rem;\n color: #71717A;\n}\n.p-steps .p-steps-item .p-menuitem-link:not(.p-disabled):focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-steps .p-steps-item.p-highlight .p-steps-number {\n background: #EEF2FF;\n color: #312E81;\n}\n.p-steps .p-steps-item.p-highlight .p-steps-title {\n font-weight: 600;\n color: #3f3f46;\n}\n.p-steps .p-steps-item:before {\n content: \" \";\n border-top: 1px solid #f3f4f6;\n width: 100%;\n top: 50%;\n left: 0;\n display: block;\n position: absolute;\n margin-top: -1rem;\n}\n\n.p-tabmenu .p-tabmenu-nav {\n background: #ffffff;\n border: 1px solid #e5e7eb;\n border-width: 0 0 2px 0;\n}\n.p-tabmenu .p-tabmenu-nav .p-tabmenuitem {\n margin-right: 0;\n}\n.p-tabmenu .p-tabmenu-nav .p-tabmenuitem .p-menuitem-link {\n border: solid #e5e7eb;\n border-width: 0 0 2px 0;\n border-color: transparent transparent #e5e7eb transparent;\n background: #ffffff;\n color: #71717A;\n padding: 1.25rem;\n font-weight: 700;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n transition: none;\n margin: 0 0 -2px 0;\n}\n.p-tabmenu .p-tabmenu-nav .p-tabmenuitem .p-menuitem-link .p-menuitem-icon {\n margin-right: 0.5rem;\n}\n.p-tabmenu .p-tabmenu-nav .p-tabmenuitem .p-menuitem-link:not(.p-disabled):focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 1px #6366F1;\n}\n.p-tabmenu .p-tabmenu-nav .p-tabmenuitem:not(.p-highlight):not(.p-disabled):hover .p-menuitem-link {\n background: #ffffff;\n border-color: #71717A;\n color: #71717A;\n}\n.p-tabmenu .p-tabmenu-nav .p-tabmenuitem.p-highlight .p-menuitem-link {\n background: #ffffff;\n border-color: #4F46E5;\n color: #4F46E5;\n}\n\n.p-tieredmenu {\n padding: 0.25rem 0;\n background: #ffffff;\n color: #3f3f46;\n border: 1px solid #e5e7eb;\n border-radius: 0.375rem;\n width: 12.5rem;\n}\n.p-tieredmenu .p-menuitem-link {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n border-radius: 0;\n transition: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-tieredmenu .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-tieredmenu .p-menuitem-link .p-menuitem-icon {\n color: #71717A;\n margin-right: 0.5rem;\n}\n.p-tieredmenu .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n}\n.p-tieredmenu .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-tieredmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #18181B;\n}\n.p-tieredmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n}\n.p-tieredmenu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n}\n.p-tieredmenu .p-menuitem-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-tieredmenu.p-tieredmenu-overlay {\n background: #ffffff;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n.p-tieredmenu .p-submenu-list {\n padding: 0.25rem 0;\n background: #ffffff;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n.p-tieredmenu .p-menuitem.p-menuitem-active > .p-menuitem-link {\n background: #f4f4f5;\n}\n.p-tieredmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-tieredmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon, .p-tieredmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n}\n.p-tieredmenu .p-menu-separator {\n border-top: 1px solid #f3f4f6;\n margin: 0.25rem 0;\n}\n.p-tieredmenu .p-submenu-icon {\n font-size: 0.875rem;\n}\n\n.p-inline-message {\n padding: 0.75rem 0.75rem;\n margin: 0;\n border-radius: 0.375rem;\n}\n.p-inline-message.p-inline-message-info {\n background: #EFF6FF;\n border: none;\n border-width: 0px;\n color: #2563EB;\n}\n.p-inline-message.p-inline-message-info .p-inline-message-icon {\n color: #2563EB;\n}\n.p-inline-message.p-inline-message-success {\n background: #ECFDF5;\n border: none;\n border-width: 0px;\n color: #059669;\n}\n.p-inline-message.p-inline-message-success .p-inline-message-icon {\n color: #059669;\n}\n.p-inline-message.p-inline-message-warn {\n background: #FEF3C7;\n border: none;\n border-width: 0px;\n color: #D97706;\n}\n.p-inline-message.p-inline-message-warn .p-inline-message-icon {\n color: #D97706;\n}\n.p-inline-message.p-inline-message-error {\n background: #FEF3C7;\n border: none;\n border-width: 0px;\n color: #DC2626;\n}\n.p-inline-message.p-inline-message-error .p-inline-message-icon {\n color: #DC2626;\n}\n.p-inline-message .p-inline-message-icon {\n font-size: 1rem;\n margin-right: 0.5rem;\n}\n.p-inline-message .p-inline-message-text {\n font-size: 1rem;\n}\n.p-inline-message.p-inline-message-icon-only .p-inline-message-icon {\n margin-right: 0;\n}\n\n.p-message {\n margin: 1rem 0;\n border-radius: 0.375rem;\n}\n.p-message .p-message-wrapper {\n padding: 1.25rem 1.75rem;\n}\n.p-message .p-message-close {\n width: 2rem;\n height: 2rem;\n border-radius: 50%;\n background: transparent;\n transition: none;\n}\n.p-message .p-message-close:hover {\n background: rgba(255, 255, 255, 0.3);\n}\n.p-message .p-message-close:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-message.p-message-info {\n background: #EFF6FF;\n border: none;\n border-width: 0 0 0 6px;\n color: #2563EB;\n}\n.p-message.p-message-info .p-message-icon {\n color: #2563EB;\n}\n.p-message.p-message-info .p-message-close {\n color: #2563EB;\n}\n.p-message.p-message-success {\n background: #ECFDF5;\n border: none;\n border-width: 0 0 0 6px;\n color: #059669;\n}\n.p-message.p-message-success .p-message-icon {\n color: #059669;\n}\n.p-message.p-message-success .p-message-close {\n color: #059669;\n}\n.p-message.p-message-warn {\n background: #FEF3C7;\n border: none;\n border-width: 0 0 0 6px;\n color: #D97706;\n}\n.p-message.p-message-warn .p-message-icon {\n color: #D97706;\n}\n.p-message.p-message-warn .p-message-close {\n color: #D97706;\n}\n.p-message.p-message-error {\n background: #FEF3C7;\n border: none;\n border-width: 0 0 0 6px;\n color: #DC2626;\n}\n.p-message.p-message-error .p-message-icon {\n color: #DC2626;\n}\n.p-message.p-message-error .p-message-close {\n color: #DC2626;\n}\n.p-message .p-message-text {\n font-size: 1rem;\n font-weight: 500;\n}\n.p-message .p-message-icon {\n font-size: 1.5rem;\n margin-right: 0.5rem;\n}\n\n.p-toast {\n opacity: 0.9;\n}\n.p-toast .p-toast-message {\n margin: 0 0 1rem 0;\n box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);\n border-radius: 0.375rem;\n}\n.p-toast .p-toast-message .p-toast-message-content {\n padding: 1rem;\n border-width: 0 0 0 6px;\n}\n.p-toast .p-toast-message .p-toast-message-content .p-toast-message-text {\n margin: 0 0 0 1rem;\n}\n.p-toast .p-toast-message .p-toast-message-content .p-toast-message-icon {\n font-size: 2rem;\n}\n.p-toast .p-toast-message .p-toast-message-content .p-toast-summary {\n font-weight: 700;\n}\n.p-toast .p-toast-message .p-toast-message-content .p-toast-detail {\n margin: 0.5rem 0 0 0;\n}\n.p-toast .p-toast-message .p-toast-icon-close {\n width: 2rem;\n height: 2rem;\n border-radius: 50%;\n background: transparent;\n transition: none;\n}\n.p-toast .p-toast-message .p-toast-icon-close:hover {\n background: rgba(255, 255, 255, 0.3);\n}\n.p-toast .p-toast-message .p-toast-icon-close:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-toast .p-toast-message.p-toast-message-info {\n background: #EFF6FF;\n border: none;\n border-width: 0 0 0 6px;\n color: #2563EB;\n}\n.p-toast .p-toast-message.p-toast-message-info .p-toast-message-icon,\n.p-toast .p-toast-message.p-toast-message-info .p-toast-icon-close {\n color: #2563EB;\n}\n.p-toast .p-toast-message.p-toast-message-success {\n background: #ECFDF5;\n border: none;\n border-width: 0 0 0 6px;\n color: #059669;\n}\n.p-toast .p-toast-message.p-toast-message-success .p-toast-message-icon,\n.p-toast .p-toast-message.p-toast-message-success .p-toast-icon-close {\n color: #059669;\n}\n.p-toast .p-toast-message.p-toast-message-warn {\n background: #FEF3C7;\n border: none;\n border-width: 0 0 0 6px;\n color: #D97706;\n}\n.p-toast .p-toast-message.p-toast-message-warn .p-toast-message-icon,\n.p-toast .p-toast-message.p-toast-message-warn .p-toast-icon-close {\n color: #D97706;\n}\n.p-toast .p-toast-message.p-toast-message-error {\n background: #FEF3C7;\n border: none;\n border-width: 0 0 0 6px;\n color: #DC2626;\n}\n.p-toast .p-toast-message.p-toast-message-error .p-toast-message-icon,\n.p-toast .p-toast-message.p-toast-message-error .p-toast-icon-close {\n color: #DC2626;\n}\n\n.p-galleria .p-galleria-close {\n margin: 0.5rem;\n background: transparent;\n color: #fafafa;\n width: 4rem;\n height: 4rem;\n transition: none;\n border-radius: 50%;\n}\n.p-galleria .p-galleria-close .p-galleria-close-icon {\n font-size: 2rem;\n}\n.p-galleria .p-galleria-close:hover {\n background: rgba(255, 255, 255, 0.1);\n color: #fafafa;\n}\n.p-galleria .p-galleria-item-nav {\n background: transparent;\n color: #fafafa;\n width: 4rem;\n height: 4rem;\n transition: none;\n border-radius: 0.375rem;\n margin: 0 0.5rem;\n}\n.p-galleria .p-galleria-item-nav .p-galleria-item-prev-icon,\n.p-galleria .p-galleria-item-nav .p-galleria-item-next-icon {\n font-size: 2rem;\n}\n.p-galleria .p-galleria-item-nav:not(.p-disabled):hover {\n background: rgba(255, 255, 255, 0.1);\n color: #fafafa;\n}\n.p-galleria .p-galleria-caption {\n background: rgba(0, 0, 0, 0.5);\n color: #fafafa;\n padding: 1rem;\n}\n.p-galleria .p-galleria-indicators {\n padding: 1rem;\n}\n.p-galleria .p-galleria-indicators .p-galleria-indicator button {\n background-color: #f4f4f5;\n width: 1rem;\n height: 1rem;\n transition: none;\n border-radius: 50%;\n}\n.p-galleria .p-galleria-indicators .p-galleria-indicator button:hover {\n background: #e5e7eb;\n}\n.p-galleria .p-galleria-indicators .p-galleria-indicator.p-highlight button {\n background: #EEF2FF;\n color: #312E81;\n}\n.p-galleria.p-galleria-indicators-bottom .p-galleria-indicator, .p-galleria.p-galleria-indicators-top .p-galleria-indicator {\n margin-right: 0.5rem;\n}\n.p-galleria.p-galleria-indicators-left .p-galleria-indicator, .p-galleria.p-galleria-indicators-right .p-galleria-indicator {\n margin-bottom: 0.5rem;\n}\n.p-galleria.p-galleria-indicator-onitem .p-galleria-indicators {\n background: rgba(0, 0, 0, 0.5);\n}\n.p-galleria.p-galleria-indicator-onitem .p-galleria-indicators .p-galleria-indicator button {\n background: rgba(255, 255, 255, 0.4);\n}\n.p-galleria.p-galleria-indicator-onitem .p-galleria-indicators .p-galleria-indicator button:hover {\n background: rgba(255, 255, 255, 0.6);\n}\n.p-galleria.p-galleria-indicator-onitem .p-galleria-indicators .p-galleria-indicator.p-highlight button {\n background: #EEF2FF;\n color: #312E81;\n}\n.p-galleria .p-galleria-thumbnail-container {\n background: rgba(0, 0, 0, 0.9);\n padding: 1rem 0.25rem;\n}\n.p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-prev,\n.p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-next {\n margin: 0.5rem;\n background-color: transparent;\n color: #fafafa;\n width: 2rem;\n height: 2rem;\n transition: none;\n border-radius: 50%;\n}\n.p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-prev:hover,\n.p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-next:hover {\n background: rgba(255, 255, 255, 0.1);\n color: #fafafa;\n}\n.p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-item-content:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n\n.p-galleria-mask {\n --maskbg: rgba(0, 0, 0, 0.9);\n}\n\n.p-image-mask {\n --maskbg: rgba(0, 0, 0, 0.9);\n}\n\n.p-image-preview-indicator {\n background-color: transparent;\n color: #f8f9fa;\n transition: none;\n}\n\n.p-image-preview-container:hover > .p-image-preview-indicator {\n background-color: rgba(0, 0, 0, 0.5);\n}\n\n.p-image-toolbar {\n padding: 1rem;\n}\n\n.p-image-action.p-link {\n color: #f8f9fa;\n background-color: transparent;\n width: 3rem;\n height: 3rem;\n border-radius: 50%;\n transition: none;\n margin-right: 0.5rem;\n}\n.p-image-action.p-link:last-child {\n margin-right: 0;\n}\n.p-image-action.p-link:hover {\n color: #f8f9fa;\n background-color: rgba(255, 255, 255, 0.1);\n}\n.p-image-action.p-link i {\n font-size: 1.5rem;\n}\n\n.p-avatar {\n background-color: #e5e7eb;\n border-radius: 0.375rem;\n}\n.p-avatar.p-avatar-lg {\n width: 3rem;\n height: 3rem;\n font-size: 1.5rem;\n}\n.p-avatar.p-avatar-lg .p-avatar-icon {\n font-size: 1.5rem;\n}\n.p-avatar.p-avatar-xl {\n width: 4rem;\n height: 4rem;\n font-size: 2rem;\n}\n.p-avatar.p-avatar-xl .p-avatar-icon {\n font-size: 2rem;\n}\n\n.p-avatar-group .p-avatar {\n border: 2px solid #ffffff;\n}\n\n.p-badge {\n background: #4F46E5;\n color: #ffffff;\n font-size: 0.75rem;\n font-weight: 700;\n min-width: 1.5rem;\n height: 1.5rem;\n line-height: 1.5rem;\n}\n.p-badge.p-badge-secondary {\n background-color: #64748B;\n color: #ffffff;\n}\n.p-badge.p-badge-success {\n background-color: #22C55E;\n color: #ffffff;\n}\n.p-badge.p-badge-info {\n background-color: #3B82F6;\n color: #ffffff;\n}\n.p-badge.p-badge-warning {\n background-color: #F59E0B;\n color: #ffffff;\n}\n.p-badge.p-badge-danger {\n background-color: #EF4444;\n color: #ffffff;\n}\n.p-badge.p-badge-lg {\n font-size: 1.125rem;\n min-width: 2.25rem;\n height: 2.25rem;\n line-height: 2.25rem;\n}\n.p-badge.p-badge-xl {\n font-size: 1.5rem;\n min-width: 3rem;\n height: 3rem;\n line-height: 3rem;\n}\n\n.p-chip {\n background-color: #e5e7eb;\n color: #3f3f46;\n border-radius: 16px;\n padding: 0 0.75rem;\n}\n.p-chip .p-chip-text {\n line-height: 1.5;\n margin-top: 0.375rem;\n margin-bottom: 0.375rem;\n}\n.p-chip .p-chip-icon {\n margin-right: 0.5rem;\n}\n.p-chip img {\n width: 2.25rem;\n height: 2.25rem;\n margin-left: -0.75rem;\n margin-right: 0.5rem;\n}\n.p-chip .p-chip-remove-icon {\n margin-left: 0.5rem;\n border-radius: 0.375rem;\n transition: none;\n}\n.p-chip .p-chip-remove-icon:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n\n.p-inplace .p-inplace-display {\n padding: 0.75rem 0.75rem;\n border-radius: 0.375rem;\n transition: none;\n}\n.p-inplace .p-inplace-display:not(.p-disabled):hover {\n background: #f4f4f5;\n color: #18181B;\n}\n.p-inplace .p-inplace-display:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n\n.p-progressbar {\n border: 0 none;\n height: 1.5rem;\n background: #e5e7eb;\n border-radius: 0.375rem;\n}\n.p-progressbar .p-progressbar-value {\n border: 0 none;\n margin: 0;\n background: #4F46E5;\n}\n.p-progressbar .p-progressbar-label {\n color: #ffffff;\n line-height: 1.5rem;\n}\n\n.p-scrolltop {\n width: 3rem;\n height: 3rem;\n border-radius: 50%;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n transition: none;\n}\n.p-scrolltop.p-link {\n background: rgba(0, 0, 0, 0.7);\n}\n.p-scrolltop.p-link:hover {\n background: rgba(0, 0, 0, 0.8);\n}\n.p-scrolltop .p-scrolltop-icon {\n font-size: 1.5rem;\n color: #fafafa;\n}\n\n.p-skeleton {\n background-color: #f4f4f5;\n border-radius: 0.375rem;\n}\n.p-skeleton:after {\n background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));\n}\n\n.p-tag {\n background: #4F46E5;\n color: #ffffff;\n font-size: 0.75rem;\n font-weight: 700;\n padding: 0.25rem 0.4rem;\n border-radius: 0.375rem;\n}\n.p-tag.p-tag-success {\n background-color: #22C55E;\n color: #ffffff;\n}\n.p-tag.p-tag-info {\n background-color: #3B82F6;\n color: #ffffff;\n}\n.p-tag.p-tag-warning {\n background-color: #F59E0B;\n color: #ffffff;\n}\n.p-tag.p-tag-danger {\n background-color: #EF4444;\n color: #ffffff;\n}\n.p-tag .p-tag-icon {\n margin-right: 0.25rem;\n font-size: 0.75rem;\n}\n\n.p-terminal {\n background: #ffffff;\n color: #3f3f46;\n border: 1px solid #e5e7eb;\n padding: 1.25rem;\n}\n.p-terminal .p-terminal-input {\n font-size: 1rem;\n font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n}\n\n/* Customizations to the designer theme should be defined here */\n.p-inputtext, .p-togglebutton, .p-selectbutton, .p-inputgroup {\n box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n}\n\n.p-inputgroup .p-inputtext, .p-inputgroup .p-togglebutton, .p-inputgroup .p-selectbutton {\n box-shadow: none;\n}\n\n.p-inputtext.p-invalid.p-component:enabled:focus {\n box-shadow: 0 0 0 1px #f0a9a7;\n}\n\n.p-highlight {\n font-weight: 600;\n}\n\n.p-button-label {\n font-weight: 500;\n}\n\n.p-inputswitch.p-focus .p-inputswitch-slider {\n box-shadow: 0 0 0 2px #6366F1;\n}\n\n.p-paginator .p-paginator-pages .p-paginator-page {\n margin-left: -1px;\n}\n.p-paginator .p-paginator-pages .p-paginator-page.p-highlight {\n border-color: #4F46E5;\n margin-right: 1px;\n}\n.p-paginator .p-paginator-current {\n border: 0 none;\n}\n\n.p-button:focus {\n box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #6366F1, 0 1px 2px 0 rgba(0, 0, 0, 0);\n}\n.p-button.p-button-secondary:enabled:focus {\n box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #64748B, 0 1px 2px 0 rgba(0, 0, 0, 0);\n}\n.p-button.p-button-success:enabled:focus {\n box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #22C55E, 0 1px 2px 0 rgba(0, 0, 0, 0);\n}\n.p-button.p-button-info:enabled:focus {\n box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #3B82F6, 0 1px 2px 0 rgba(0, 0, 0, 0);\n}\n.p-button.p-button-warning:enabled:focus {\n box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #F59E0B, 0 1px 2px 0 rgba(0, 0, 0, 0);\n}\n.p-button.p-button-help:enabled:focus {\n box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #A855F7, 0 1px 2px 0 rgba(0, 0, 0, 0);\n}\n.p-button.p-button-danger:enabled:focus {\n box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #EF4444, 0 1px 2px 0 rgba(0, 0, 0, 0);\n}\n\n.p-checkbox .p-checkbox-box {\n border-radius: 0.25rem;\n}\n.p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box.p-focus {\n box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #6366F1, 0 1px 2px 0 rgba(0, 0, 0, 0);\n}\n\n.p-radiobutton:not(.p-radiobutton-disabled) .p-radiobutton-box.p-focus {\n box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #6366F1, 0 1px 2px 0 rgba(0, 0, 0, 0);\n}\n\n.p-carousel .p-carousel-indicators .p-carousel-indicator.p-highlight button {\n background-color: #4F46E5;\n}\n\n.p-galleria .p-galleria-indicators .p-galleria-indicator.p-highlight button {\n background-color: #4F46E5;\n}\n\n.p-datatable .p-datatable-tbody > tr.p-datatable-dragpoint-top > td {\n box-shadow: inset 0 2px 0 0 #4F46E5;\n}\n.p-datatable .p-datatable-tbody > tr.p-datatable-dragpoint-bottom > td {\n box-shadow: inset 0 -2px 0 0 #4F46E5;\n}\n", ""]);
  21456. // Exports
  21457. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
  21458. /***/ }),
  21459. /***/ "./node_modules/css-loader/dist/runtime/api.js":
  21460. /*!*****************************************************!*\
  21461. !*** ./node_modules/css-loader/dist/runtime/api.js ***!
  21462. \*****************************************************/
  21463. /***/ ((module) => {
  21464. "use strict";
  21465. /*
  21466. MIT License http://www.opensource.org/licenses/mit-license.php
  21467. Author Tobias Koppers @sokra
  21468. */
  21469. // css base code, injected by the css-loader
  21470. // eslint-disable-next-line func-names
  21471. module.exports = function (cssWithMappingToString) {
  21472. var list = []; // return the list of modules as css string
  21473. list.toString = function toString() {
  21474. return this.map(function (item) {
  21475. var content = cssWithMappingToString(item);
  21476. if (item[2]) {
  21477. return "@media ".concat(item[2], " {").concat(content, "}");
  21478. }
  21479. return content;
  21480. }).join("");
  21481. }; // import a list of modules into the list
  21482. // eslint-disable-next-line func-names
  21483. list.i = function (modules, mediaQuery, dedupe) {
  21484. if (typeof modules === "string") {
  21485. // eslint-disable-next-line no-param-reassign
  21486. modules = [[null, modules, ""]];
  21487. }
  21488. var alreadyImportedModules = {};
  21489. if (dedupe) {
  21490. for (var i = 0; i < this.length; i++) {
  21491. // eslint-disable-next-line prefer-destructuring
  21492. var id = this[i][0];
  21493. if (id != null) {
  21494. alreadyImportedModules[id] = true;
  21495. }
  21496. }
  21497. }
  21498. for (var _i = 0; _i < modules.length; _i++) {
  21499. var item = [].concat(modules[_i]);
  21500. if (dedupe && alreadyImportedModules[item[0]]) {
  21501. // eslint-disable-next-line no-continue
  21502. continue;
  21503. }
  21504. if (mediaQuery) {
  21505. if (!item[2]) {
  21506. item[2] = mediaQuery;
  21507. } else {
  21508. item[2] = "".concat(mediaQuery, " and ").concat(item[2]);
  21509. }
  21510. }
  21511. list.push(item);
  21512. }
  21513. };
  21514. return list;
  21515. };
  21516. /***/ }),
  21517. /***/ "./node_modules/css-loader/dist/runtime/getUrl.js":
  21518. /*!********************************************************!*\
  21519. !*** ./node_modules/css-loader/dist/runtime/getUrl.js ***!
  21520. \********************************************************/
  21521. /***/ ((module) => {
  21522. "use strict";
  21523. module.exports = function (url, options) {
  21524. if (!options) {
  21525. // eslint-disable-next-line no-param-reassign
  21526. options = {};
  21527. } // eslint-disable-next-line no-underscore-dangle, no-param-reassign
  21528. url = url && url.__esModule ? url.default : url;
  21529. if (typeof url !== "string") {
  21530. return url;
  21531. } // If url is already wrapped in quotes, remove them
  21532. if (/^['"].*['"]$/.test(url)) {
  21533. // eslint-disable-next-line no-param-reassign
  21534. url = url.slice(1, -1);
  21535. }
  21536. if (options.hash) {
  21537. // eslint-disable-next-line no-param-reassign
  21538. url += options.hash;
  21539. } // Should url be wrapped?
  21540. // See https://drafts.csswg.org/css-values-3/#urls
  21541. if (/["'() \t\n]/.test(url) || options.needQuotes) {
  21542. return "\"".concat(url.replace(/"/g, '\\"').replace(/\n/g, "\\n"), "\"");
  21543. }
  21544. return url;
  21545. };
  21546. /***/ }),
  21547. /***/ "./node_modules/deepmerge/dist/cjs.js":
  21548. /*!********************************************!*\
  21549. !*** ./node_modules/deepmerge/dist/cjs.js ***!
  21550. \********************************************/
  21551. /***/ ((module) => {
  21552. "use strict";
  21553. var isMergeableObject = function isMergeableObject(value) {
  21554. return isNonNullObject(value)
  21555. && !isSpecial(value)
  21556. };
  21557. function isNonNullObject(value) {
  21558. return !!value && typeof value === 'object'
  21559. }
  21560. function isSpecial(value) {
  21561. var stringValue = Object.prototype.toString.call(value);
  21562. return stringValue === '[object RegExp]'
  21563. || stringValue === '[object Date]'
  21564. || isReactElement(value)
  21565. }
  21566. // see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
  21567. var canUseSymbol = typeof Symbol === 'function' && Symbol.for;
  21568. var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;
  21569. function isReactElement(value) {
  21570. return value.$$typeof === REACT_ELEMENT_TYPE
  21571. }
  21572. function emptyTarget(val) {
  21573. return Array.isArray(val) ? [] : {}
  21574. }
  21575. function cloneUnlessOtherwiseSpecified(value, options) {
  21576. return (options.clone !== false && options.isMergeableObject(value))
  21577. ? deepmerge(emptyTarget(value), value, options)
  21578. : value
  21579. }
  21580. function defaultArrayMerge(target, source, options) {
  21581. return target.concat(source).map(function(element) {
  21582. return cloneUnlessOtherwiseSpecified(element, options)
  21583. })
  21584. }
  21585. function getMergeFunction(key, options) {
  21586. if (!options.customMerge) {
  21587. return deepmerge
  21588. }
  21589. var customMerge = options.customMerge(key);
  21590. return typeof customMerge === 'function' ? customMerge : deepmerge
  21591. }
  21592. function getEnumerableOwnPropertySymbols(target) {
  21593. return Object.getOwnPropertySymbols
  21594. ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
  21595. return target.propertyIsEnumerable(symbol)
  21596. })
  21597. : []
  21598. }
  21599. function getKeys(target) {
  21600. return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))
  21601. }
  21602. function propertyIsOnObject(object, property) {
  21603. try {
  21604. return property in object
  21605. } catch(_) {
  21606. return false
  21607. }
  21608. }
  21609. // Protects from prototype poisoning and unexpected merging up the prototype chain.
  21610. function propertyIsUnsafe(target, key) {
  21611. return propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,
  21612. && !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,
  21613. && Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable.
  21614. }
  21615. function mergeObject(target, source, options) {
  21616. var destination = {};
  21617. if (options.isMergeableObject(target)) {
  21618. getKeys(target).forEach(function(key) {
  21619. destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
  21620. });
  21621. }
  21622. getKeys(source).forEach(function(key) {
  21623. if (propertyIsUnsafe(target, key)) {
  21624. return
  21625. }
  21626. if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
  21627. destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
  21628. } else {
  21629. destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
  21630. }
  21631. });
  21632. return destination
  21633. }
  21634. function deepmerge(target, source, options) {
  21635. options = options || {};
  21636. options.arrayMerge = options.arrayMerge || defaultArrayMerge;
  21637. options.isMergeableObject = options.isMergeableObject || isMergeableObject;
  21638. // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
  21639. // implementations can use it. The caller may not replace it.
  21640. options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
  21641. var sourceIsArray = Array.isArray(source);
  21642. var targetIsArray = Array.isArray(target);
  21643. var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
  21644. if (!sourceAndTargetTypesMatch) {
  21645. return cloneUnlessOtherwiseSpecified(source, options)
  21646. } else if (sourceIsArray) {
  21647. return options.arrayMerge(target, source, options)
  21648. } else {
  21649. return mergeObject(target, source, options)
  21650. }
  21651. }
  21652. deepmerge.all = function deepmergeAll(array, options) {
  21653. if (!Array.isArray(array)) {
  21654. throw new Error('first argument should be an array')
  21655. }
  21656. return array.reduce(function(prev, next) {
  21657. return deepmerge(prev, next, options)
  21658. }, {})
  21659. };
  21660. var deepmerge_1 = deepmerge;
  21661. module.exports = deepmerge_1;
  21662. /***/ }),
  21663. /***/ "./node_modules/primevue/resources/images/color.png":
  21664. /*!**********************************************************!*\
  21665. !*** ./node_modules/primevue/resources/images/color.png ***!
  21666. \**********************************************************/
  21667. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21668. "use strict";
  21669. __webpack_require__.r(__webpack_exports__);
  21670. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21671. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21672. /* harmony export */ });
  21673. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/images/vendor/primevue/resources/color.png?6441e63a57ccc5105bad045142bc31eb");
  21674. /***/ }),
  21675. /***/ "./node_modules/primevue/resources/images/hue.png":
  21676. /*!********************************************************!*\
  21677. !*** ./node_modules/primevue/resources/images/hue.png ***!
  21678. \********************************************************/
  21679. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21680. "use strict";
  21681. __webpack_require__.r(__webpack_exports__);
  21682. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21683. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21684. /* harmony export */ });
  21685. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/images/vendor/primevue/resources/hue.png?f8505bd4d6f3e3aa435b72d1c045d4a7");
  21686. /***/ }),
  21687. /***/ "./node_modules/primeicons/fonts/primeicons.eot":
  21688. /*!******************************************************!*\
  21689. !*** ./node_modules/primeicons/fonts/primeicons.eot ***!
  21690. \******************************************************/
  21691. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21692. "use strict";
  21693. __webpack_require__.r(__webpack_exports__);
  21694. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21695. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21696. /* harmony export */ });
  21697. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primeicons/primeicons.eot?7fc4d8e224d1ff1b9c6256b15cbe43a7");
  21698. /***/ }),
  21699. /***/ "./node_modules/primeicons/fonts/primeicons.svg":
  21700. /*!******************************************************!*\
  21701. !*** ./node_modules/primeicons/fonts/primeicons.svg ***!
  21702. \******************************************************/
  21703. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21704. "use strict";
  21705. __webpack_require__.r(__webpack_exports__);
  21706. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21707. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21708. /* harmony export */ });
  21709. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primeicons/primeicons.svg?c6e2053303524e39530c36f094129407");
  21710. /***/ }),
  21711. /***/ "./node_modules/primeicons/fonts/primeicons.ttf":
  21712. /*!******************************************************!*\
  21713. !*** ./node_modules/primeicons/fonts/primeicons.ttf ***!
  21714. \******************************************************/
  21715. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21716. "use strict";
  21717. __webpack_require__.r(__webpack_exports__);
  21718. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21719. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21720. /* harmony export */ });
  21721. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primeicons/primeicons.ttf?91bacab1f083f2795272499faf7e83dc");
  21722. /***/ }),
  21723. /***/ "./node_modules/primeicons/fonts/primeicons.woff":
  21724. /*!*******************************************************!*\
  21725. !*** ./node_modules/primeicons/fonts/primeicons.woff ***!
  21726. \*******************************************************/
  21727. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21728. "use strict";
  21729. __webpack_require__.r(__webpack_exports__);
  21730. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21731. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21732. /* harmony export */ });
  21733. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primeicons/primeicons.woff?449aa8c65cdc5c2a868645403b9ea4d3");
  21734. /***/ }),
  21735. /***/ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Bold.woff":
  21736. /*!*************************************************************************************!*\
  21737. !*** ./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Bold.woff ***!
  21738. \*************************************************************************************/
  21739. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21740. "use strict";
  21741. __webpack_require__.r(__webpack_exports__);
  21742. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21743. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21744. /* harmony export */ });
  21745. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primevue/resources/themes/tailwind-light/Inter-Bold.woff?93c1301bd9f486c573b3d9001c6ec0e4");
  21746. /***/ }),
  21747. /***/ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Bold.woff2":
  21748. /*!**************************************************************************************!*\
  21749. !*** ./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Bold.woff2 ***!
  21750. \**************************************************************************************/
  21751. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21752. "use strict";
  21753. __webpack_require__.r(__webpack_exports__);
  21754. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21755. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21756. /* harmony export */ });
  21757. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primevue/resources/themes/tailwind-light/Inter-Bold.woff2?ec64ea577b0349e055ad6646c1d8797a");
  21758. /***/ }),
  21759. /***/ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Light.woff":
  21760. /*!**************************************************************************************!*\
  21761. !*** ./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Light.woff ***!
  21762. \**************************************************************************************/
  21763. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21764. "use strict";
  21765. __webpack_require__.r(__webpack_exports__);
  21766. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21767. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21768. /* harmony export */ });
  21769. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primevue/resources/themes/tailwind-light/Inter-Light.woff?994e34451cc19ede31d30802a480542b");
  21770. /***/ }),
  21771. /***/ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Light.woff2":
  21772. /*!***************************************************************************************!*\
  21773. !*** ./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Light.woff2 ***!
  21774. \***************************************************************************************/
  21775. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21776. "use strict";
  21777. __webpack_require__.r(__webpack_exports__);
  21778. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21779. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21780. /* harmony export */ });
  21781. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primevue/resources/themes/tailwind-light/Inter-Light.woff2?2d5198822ab091ce430554a436cdf53c");
  21782. /***/ }),
  21783. /***/ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Medium.woff":
  21784. /*!***************************************************************************************!*\
  21785. !*** ./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Medium.woff ***!
  21786. \***************************************************************************************/
  21787. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21788. "use strict";
  21789. __webpack_require__.r(__webpack_exports__);
  21790. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21791. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21792. /* harmony export */ });
  21793. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primevue/resources/themes/tailwind-light/Inter-Medium.woff?9053572c46aeb4b16caafd643a543b8d");
  21794. /***/ }),
  21795. /***/ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Medium.woff2":
  21796. /*!****************************************************************************************!*\
  21797. !*** ./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Medium.woff2 ***!
  21798. \****************************************************************************************/
  21799. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21800. "use strict";
  21801. __webpack_require__.r(__webpack_exports__);
  21802. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21803. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21804. /* harmony export */ });
  21805. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primevue/resources/themes/tailwind-light/Inter-Medium.woff2?293fd13dbca5a3e450ef1ebfb232a299");
  21806. /***/ }),
  21807. /***/ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Regular.woff":
  21808. /*!****************************************************************************************!*\
  21809. !*** ./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Regular.woff ***!
  21810. \****************************************************************************************/
  21811. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21812. "use strict";
  21813. __webpack_require__.r(__webpack_exports__);
  21814. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21815. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21816. /* harmony export */ });
  21817. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primevue/resources/themes/tailwind-light/Inter-Regular.woff?8c206db99195777c67691cbba9d64393");
  21818. /***/ }),
  21819. /***/ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Regular.woff2":
  21820. /*!*****************************************************************************************!*\
  21821. !*** ./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Regular.woff2 ***!
  21822. \*****************************************************************************************/
  21823. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21824. "use strict";
  21825. __webpack_require__.r(__webpack_exports__);
  21826. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21827. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21828. /* harmony export */ });
  21829. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primevue/resources/themes/tailwind-light/Inter-Regular.woff2?c8ba52b05a9ef10f47584d08ece2ec5c");
  21830. /***/ }),
  21831. /***/ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff":
  21832. /*!*****************************************************************************************!*\
  21833. !*** ./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff ***!
  21834. \*****************************************************************************************/
  21835. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21836. "use strict";
  21837. __webpack_require__.r(__webpack_exports__);
  21838. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21839. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21840. /* harmony export */ });
  21841. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primevue/resources/themes/tailwind-light/Inter-SemiBold.woff?cca62d21c8c555c392e580a52e0d4426");
  21842. /***/ }),
  21843. /***/ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff2":
  21844. /*!******************************************************************************************!*\
  21845. !*** ./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff2 ***!
  21846. \******************************************************************************************/
  21847. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21848. "use strict";
  21849. __webpack_require__.r(__webpack_exports__);
  21850. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21851. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21852. /* harmony export */ });
  21853. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primevue/resources/themes/tailwind-light/Inter-SemiBold.woff2?b5f0f109bc88052d4000c58ca615671d");
  21854. /***/ }),
  21855. /***/ "./node_modules/function-bind/implementation.js":
  21856. /*!******************************************************!*\
  21857. !*** ./node_modules/function-bind/implementation.js ***!
  21858. \******************************************************/
  21859. /***/ ((module) => {
  21860. "use strict";
  21861. /* eslint no-invalid-this: 1 */
  21862. var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
  21863. var slice = Array.prototype.slice;
  21864. var toStr = Object.prototype.toString;
  21865. var funcType = '[object Function]';
  21866. module.exports = function bind(that) {
  21867. var target = this;
  21868. if (typeof target !== 'function' || toStr.call(target) !== funcType) {
  21869. throw new TypeError(ERROR_MESSAGE + target);
  21870. }
  21871. var args = slice.call(arguments, 1);
  21872. var bound;
  21873. var binder = function () {
  21874. if (this instanceof bound) {
  21875. var result = target.apply(
  21876. this,
  21877. args.concat(slice.call(arguments))
  21878. );
  21879. if (Object(result) === result) {
  21880. return result;
  21881. }
  21882. return this;
  21883. } else {
  21884. return target.apply(
  21885. that,
  21886. args.concat(slice.call(arguments))
  21887. );
  21888. }
  21889. };
  21890. var boundLength = Math.max(0, target.length - args.length);
  21891. var boundArgs = [];
  21892. for (var i = 0; i < boundLength; i++) {
  21893. boundArgs.push('$' + i);
  21894. }
  21895. bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
  21896. if (target.prototype) {
  21897. var Empty = function Empty() {};
  21898. Empty.prototype = target.prototype;
  21899. bound.prototype = new Empty();
  21900. Empty.prototype = null;
  21901. }
  21902. return bound;
  21903. };
  21904. /***/ }),
  21905. /***/ "./node_modules/function-bind/index.js":
  21906. /*!*********************************************!*\
  21907. !*** ./node_modules/function-bind/index.js ***!
  21908. \*********************************************/
  21909. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  21910. "use strict";
  21911. var implementation = __webpack_require__(/*! ./implementation */ "./node_modules/function-bind/implementation.js");
  21912. module.exports = Function.prototype.bind || implementation;
  21913. /***/ }),
  21914. /***/ "./node_modules/get-intrinsic/index.js":
  21915. /*!*********************************************!*\
  21916. !*** ./node_modules/get-intrinsic/index.js ***!
  21917. \*********************************************/
  21918. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  21919. "use strict";
  21920. var undefined;
  21921. var $SyntaxError = SyntaxError;
  21922. var $Function = Function;
  21923. var $TypeError = TypeError;
  21924. // eslint-disable-next-line consistent-return
  21925. var getEvalledConstructor = function (expressionSyntax) {
  21926. try {
  21927. return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
  21928. } catch (e) {}
  21929. };
  21930. var $gOPD = Object.getOwnPropertyDescriptor;
  21931. if ($gOPD) {
  21932. try {
  21933. $gOPD({}, '');
  21934. } catch (e) {
  21935. $gOPD = null; // this is IE 8, which has a broken gOPD
  21936. }
  21937. }
  21938. var throwTypeError = function () {
  21939. throw new $TypeError();
  21940. };
  21941. var ThrowTypeError = $gOPD
  21942. ? (function () {
  21943. try {
  21944. // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
  21945. arguments.callee; // IE 8 does not throw here
  21946. return throwTypeError;
  21947. } catch (calleeThrows) {
  21948. try {
  21949. // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
  21950. return $gOPD(arguments, 'callee').get;
  21951. } catch (gOPDthrows) {
  21952. return throwTypeError;
  21953. }
  21954. }
  21955. }())
  21956. : throwTypeError;
  21957. var hasSymbols = __webpack_require__(/*! has-symbols */ "./node_modules/has-symbols/index.js")();
  21958. var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
  21959. var needsEval = {};
  21960. var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
  21961. var INTRINSICS = {
  21962. '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
  21963. '%Array%': Array,
  21964. '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
  21965. '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
  21966. '%AsyncFromSyncIteratorPrototype%': undefined,
  21967. '%AsyncFunction%': needsEval,
  21968. '%AsyncGenerator%': needsEval,
  21969. '%AsyncGeneratorFunction%': needsEval,
  21970. '%AsyncIteratorPrototype%': needsEval,
  21971. '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
  21972. '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
  21973. '%Boolean%': Boolean,
  21974. '%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
  21975. '%Date%': Date,
  21976. '%decodeURI%': decodeURI,
  21977. '%decodeURIComponent%': decodeURIComponent,
  21978. '%encodeURI%': encodeURI,
  21979. '%encodeURIComponent%': encodeURIComponent,
  21980. '%Error%': Error,
  21981. '%eval%': eval, // eslint-disable-line no-eval
  21982. '%EvalError%': EvalError,
  21983. '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
  21984. '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
  21985. '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
  21986. '%Function%': $Function,
  21987. '%GeneratorFunction%': needsEval,
  21988. '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
  21989. '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
  21990. '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
  21991. '%isFinite%': isFinite,
  21992. '%isNaN%': isNaN,
  21993. '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
  21994. '%JSON%': typeof JSON === 'object' ? JSON : undefined,
  21995. '%Map%': typeof Map === 'undefined' ? undefined : Map,
  21996. '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
  21997. '%Math%': Math,
  21998. '%Number%': Number,
  21999. '%Object%': Object,
  22000. '%parseFloat%': parseFloat,
  22001. '%parseInt%': parseInt,
  22002. '%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
  22003. '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
  22004. '%RangeError%': RangeError,
  22005. '%ReferenceError%': ReferenceError,
  22006. '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
  22007. '%RegExp%': RegExp,
  22008. '%Set%': typeof Set === 'undefined' ? undefined : Set,
  22009. '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
  22010. '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
  22011. '%String%': String,
  22012. '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
  22013. '%Symbol%': hasSymbols ? Symbol : undefined,
  22014. '%SyntaxError%': $SyntaxError,
  22015. '%ThrowTypeError%': ThrowTypeError,
  22016. '%TypedArray%': TypedArray,
  22017. '%TypeError%': $TypeError,
  22018. '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
  22019. '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
  22020. '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
  22021. '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
  22022. '%URIError%': URIError,
  22023. '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
  22024. '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
  22025. '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
  22026. };
  22027. var doEval = function doEval(name) {
  22028. var value;
  22029. if (name === '%AsyncFunction%') {
  22030. value = getEvalledConstructor('async function () {}');
  22031. } else if (name === '%GeneratorFunction%') {
  22032. value = getEvalledConstructor('function* () {}');
  22033. } else if (name === '%AsyncGeneratorFunction%') {
  22034. value = getEvalledConstructor('async function* () {}');
  22035. } else if (name === '%AsyncGenerator%') {
  22036. var fn = doEval('%AsyncGeneratorFunction%');
  22037. if (fn) {
  22038. value = fn.prototype;
  22039. }
  22040. } else if (name === '%AsyncIteratorPrototype%') {
  22041. var gen = doEval('%AsyncGenerator%');
  22042. if (gen) {
  22043. value = getProto(gen.prototype);
  22044. }
  22045. }
  22046. INTRINSICS[name] = value;
  22047. return value;
  22048. };
  22049. var LEGACY_ALIASES = {
  22050. '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
  22051. '%ArrayPrototype%': ['Array', 'prototype'],
  22052. '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
  22053. '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
  22054. '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
  22055. '%ArrayProto_values%': ['Array', 'prototype', 'values'],
  22056. '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
  22057. '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
  22058. '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
  22059. '%BooleanPrototype%': ['Boolean', 'prototype'],
  22060. '%DataViewPrototype%': ['DataView', 'prototype'],
  22061. '%DatePrototype%': ['Date', 'prototype'],
  22062. '%ErrorPrototype%': ['Error', 'prototype'],
  22063. '%EvalErrorPrototype%': ['EvalError', 'prototype'],
  22064. '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
  22065. '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
  22066. '%FunctionPrototype%': ['Function', 'prototype'],
  22067. '%Generator%': ['GeneratorFunction', 'prototype'],
  22068. '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
  22069. '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
  22070. '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
  22071. '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
  22072. '%JSONParse%': ['JSON', 'parse'],
  22073. '%JSONStringify%': ['JSON', 'stringify'],
  22074. '%MapPrototype%': ['Map', 'prototype'],
  22075. '%NumberPrototype%': ['Number', 'prototype'],
  22076. '%ObjectPrototype%': ['Object', 'prototype'],
  22077. '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
  22078. '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
  22079. '%PromisePrototype%': ['Promise', 'prototype'],
  22080. '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
  22081. '%Promise_all%': ['Promise', 'all'],
  22082. '%Promise_reject%': ['Promise', 'reject'],
  22083. '%Promise_resolve%': ['Promise', 'resolve'],
  22084. '%RangeErrorPrototype%': ['RangeError', 'prototype'],
  22085. '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
  22086. '%RegExpPrototype%': ['RegExp', 'prototype'],
  22087. '%SetPrototype%': ['Set', 'prototype'],
  22088. '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
  22089. '%StringPrototype%': ['String', 'prototype'],
  22090. '%SymbolPrototype%': ['Symbol', 'prototype'],
  22091. '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
  22092. '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
  22093. '%TypeErrorPrototype%': ['TypeError', 'prototype'],
  22094. '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
  22095. '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
  22096. '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
  22097. '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
  22098. '%URIErrorPrototype%': ['URIError', 'prototype'],
  22099. '%WeakMapPrototype%': ['WeakMap', 'prototype'],
  22100. '%WeakSetPrototype%': ['WeakSet', 'prototype']
  22101. };
  22102. var bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js");
  22103. var hasOwn = __webpack_require__(/*! has */ "./node_modules/has/src/index.js");
  22104. var $concat = bind.call(Function.call, Array.prototype.concat);
  22105. var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
  22106. var $replace = bind.call(Function.call, String.prototype.replace);
  22107. var $strSlice = bind.call(Function.call, String.prototype.slice);
  22108. /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
  22109. var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
  22110. var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
  22111. var stringToPath = function stringToPath(string) {
  22112. var first = $strSlice(string, 0, 1);
  22113. var last = $strSlice(string, -1);
  22114. if (first === '%' && last !== '%') {
  22115. throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
  22116. } else if (last === '%' && first !== '%') {
  22117. throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
  22118. }
  22119. var result = [];
  22120. $replace(string, rePropName, function (match, number, quote, subString) {
  22121. result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
  22122. });
  22123. return result;
  22124. };
  22125. /* end adaptation */
  22126. var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
  22127. var intrinsicName = name;
  22128. var alias;
  22129. if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
  22130. alias = LEGACY_ALIASES[intrinsicName];
  22131. intrinsicName = '%' + alias[0] + '%';
  22132. }
  22133. if (hasOwn(INTRINSICS, intrinsicName)) {
  22134. var value = INTRINSICS[intrinsicName];
  22135. if (value === needsEval) {
  22136. value = doEval(intrinsicName);
  22137. }
  22138. if (typeof value === 'undefined' && !allowMissing) {
  22139. throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
  22140. }
  22141. return {
  22142. alias: alias,
  22143. name: intrinsicName,
  22144. value: value
  22145. };
  22146. }
  22147. throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
  22148. };
  22149. module.exports = function GetIntrinsic(name, allowMissing) {
  22150. if (typeof name !== 'string' || name.length === 0) {
  22151. throw new $TypeError('intrinsic name must be a non-empty string');
  22152. }
  22153. if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
  22154. throw new $TypeError('"allowMissing" argument must be a boolean');
  22155. }
  22156. var parts = stringToPath(name);
  22157. var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
  22158. var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
  22159. var intrinsicRealName = intrinsic.name;
  22160. var value = intrinsic.value;
  22161. var skipFurtherCaching = false;
  22162. var alias = intrinsic.alias;
  22163. if (alias) {
  22164. intrinsicBaseName = alias[0];
  22165. $spliceApply(parts, $concat([0, 1], alias));
  22166. }
  22167. for (var i = 1, isOwn = true; i < parts.length; i += 1) {
  22168. var part = parts[i];
  22169. var first = $strSlice(part, 0, 1);
  22170. var last = $strSlice(part, -1);
  22171. if (
  22172. (
  22173. (first === '"' || first === "'" || first === '`')
  22174. || (last === '"' || last === "'" || last === '`')
  22175. )
  22176. && first !== last
  22177. ) {
  22178. throw new $SyntaxError('property names with quotes must have matching quotes');
  22179. }
  22180. if (part === 'constructor' || !isOwn) {
  22181. skipFurtherCaching = true;
  22182. }
  22183. intrinsicBaseName += '.' + part;
  22184. intrinsicRealName = '%' + intrinsicBaseName + '%';
  22185. if (hasOwn(INTRINSICS, intrinsicRealName)) {
  22186. value = INTRINSICS[intrinsicRealName];
  22187. } else if (value != null) {
  22188. if (!(part in value)) {
  22189. if (!allowMissing) {
  22190. throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
  22191. }
  22192. return void undefined;
  22193. }
  22194. if ($gOPD && (i + 1) >= parts.length) {
  22195. var desc = $gOPD(value, part);
  22196. isOwn = !!desc;
  22197. // By convention, when a data property is converted to an accessor
  22198. // property to emulate a data property that does not suffer from
  22199. // the override mistake, that accessor's getter is marked with
  22200. // an `originalValue` property. Here, when we detect this, we
  22201. // uphold the illusion by pretending to see that original data
  22202. // property, i.e., returning the value rather than the getter
  22203. // itself.
  22204. if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
  22205. value = desc.get;
  22206. } else {
  22207. value = value[part];
  22208. }
  22209. } else {
  22210. isOwn = hasOwn(value, part);
  22211. value = value[part];
  22212. }
  22213. if (isOwn && !skipFurtherCaching) {
  22214. INTRINSICS[intrinsicRealName] = value;
  22215. }
  22216. }
  22217. }
  22218. return value;
  22219. };
  22220. /***/ }),
  22221. /***/ "./node_modules/has-symbols/index.js":
  22222. /*!*******************************************!*\
  22223. !*** ./node_modules/has-symbols/index.js ***!
  22224. \*******************************************/
  22225. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  22226. "use strict";
  22227. var origSymbol = typeof Symbol !== 'undefined' && Symbol;
  22228. var hasSymbolSham = __webpack_require__(/*! ./shams */ "./node_modules/has-symbols/shams.js");
  22229. module.exports = function hasNativeSymbols() {
  22230. if (typeof origSymbol !== 'function') { return false; }
  22231. if (typeof Symbol !== 'function') { return false; }
  22232. if (typeof origSymbol('foo') !== 'symbol') { return false; }
  22233. if (typeof Symbol('bar') !== 'symbol') { return false; }
  22234. return hasSymbolSham();
  22235. };
  22236. /***/ }),
  22237. /***/ "./node_modules/has-symbols/shams.js":
  22238. /*!*******************************************!*\
  22239. !*** ./node_modules/has-symbols/shams.js ***!
  22240. \*******************************************/
  22241. /***/ ((module) => {
  22242. "use strict";
  22243. /* eslint complexity: [2, 18], max-statements: [2, 33] */
  22244. module.exports = function hasSymbols() {
  22245. if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
  22246. if (typeof Symbol.iterator === 'symbol') { return true; }
  22247. var obj = {};
  22248. var sym = Symbol('test');
  22249. var symObj = Object(sym);
  22250. if (typeof sym === 'string') { return false; }
  22251. if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
  22252. if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
  22253. // temp disabled per https://github.com/ljharb/object.assign/issues/17
  22254. // if (sym instanceof Symbol) { return false; }
  22255. // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
  22256. // if (!(symObj instanceof Symbol)) { return false; }
  22257. // if (typeof Symbol.prototype.toString !== 'function') { return false; }
  22258. // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
  22259. var symVal = 42;
  22260. obj[sym] = symVal;
  22261. for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
  22262. if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
  22263. if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
  22264. var syms = Object.getOwnPropertySymbols(obj);
  22265. if (syms.length !== 1 || syms[0] !== sym) { return false; }
  22266. if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
  22267. if (typeof Object.getOwnPropertyDescriptor === 'function') {
  22268. var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
  22269. if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
  22270. }
  22271. return true;
  22272. };
  22273. /***/ }),
  22274. /***/ "./node_modules/has/src/index.js":
  22275. /*!***************************************!*\
  22276. !*** ./node_modules/has/src/index.js ***!
  22277. \***************************************/
  22278. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  22279. "use strict";
  22280. var bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js");
  22281. module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
  22282. /***/ }),
  22283. /***/ "./node_modules/ieee754/index.js":
  22284. /*!***************************************!*\
  22285. !*** ./node_modules/ieee754/index.js ***!
  22286. \***************************************/
  22287. /***/ ((__unused_webpack_module, exports) => {
  22288. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  22289. exports.read = function (buffer, offset, isLE, mLen, nBytes) {
  22290. var e, m
  22291. var eLen = (nBytes * 8) - mLen - 1
  22292. var eMax = (1 << eLen) - 1
  22293. var eBias = eMax >> 1
  22294. var nBits = -7
  22295. var i = isLE ? (nBytes - 1) : 0
  22296. var d = isLE ? -1 : 1
  22297. var s = buffer[offset + i]
  22298. i += d
  22299. e = s & ((1 << (-nBits)) - 1)
  22300. s >>= (-nBits)
  22301. nBits += eLen
  22302. for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  22303. m = e & ((1 << (-nBits)) - 1)
  22304. e >>= (-nBits)
  22305. nBits += mLen
  22306. for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  22307. if (e === 0) {
  22308. e = 1 - eBias
  22309. } else if (e === eMax) {
  22310. return m ? NaN : ((s ? -1 : 1) * Infinity)
  22311. } else {
  22312. m = m + Math.pow(2, mLen)
  22313. e = e - eBias
  22314. }
  22315. return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
  22316. }
  22317. exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
  22318. var e, m, c
  22319. var eLen = (nBytes * 8) - mLen - 1
  22320. var eMax = (1 << eLen) - 1
  22321. var eBias = eMax >> 1
  22322. var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
  22323. var i = isLE ? 0 : (nBytes - 1)
  22324. var d = isLE ? 1 : -1
  22325. var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
  22326. value = Math.abs(value)
  22327. if (isNaN(value) || value === Infinity) {
  22328. m = isNaN(value) ? 1 : 0
  22329. e = eMax
  22330. } else {
  22331. e = Math.floor(Math.log(value) / Math.LN2)
  22332. if (value * (c = Math.pow(2, -e)) < 1) {
  22333. e--
  22334. c *= 2
  22335. }
  22336. if (e + eBias >= 1) {
  22337. value += rt / c
  22338. } else {
  22339. value += rt * Math.pow(2, 1 - eBias)
  22340. }
  22341. if (value * c >= 2) {
  22342. e++
  22343. c /= 2
  22344. }
  22345. if (e + eBias >= eMax) {
  22346. m = 0
  22347. e = eMax
  22348. } else if (e + eBias >= 1) {
  22349. m = ((value * c) - 1) * Math.pow(2, mLen)
  22350. e = e + eBias
  22351. } else {
  22352. m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
  22353. e = 0
  22354. }
  22355. }
  22356. for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
  22357. e = (e << mLen) | m
  22358. eLen += mLen
  22359. for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
  22360. buffer[offset + i - d] |= s * 128
  22361. }
  22362. /***/ }),
  22363. /***/ "./node_modules/isarray/index.js":
  22364. /*!***************************************!*\
  22365. !*** ./node_modules/isarray/index.js ***!
  22366. \***************************************/
  22367. /***/ ((module) => {
  22368. var toString = {}.toString;
  22369. module.exports = Array.isArray || function (arr) {
  22370. return toString.call(arr) == '[object Array]';
  22371. };
  22372. /***/ }),
  22373. /***/ "./node_modules/lodash.clonedeep/index.js":
  22374. /*!************************************************!*\
  22375. !*** ./node_modules/lodash.clonedeep/index.js ***!
  22376. \************************************************/
  22377. /***/ ((module, exports, __webpack_require__) => {
  22378. /* module decorator */ module = __webpack_require__.nmd(module);
  22379. /**
  22380. * lodash (Custom Build) <https://lodash.com/>
  22381. * Build: `lodash modularize exports="npm" -o ./`
  22382. * Copyright jQuery Foundation and other contributors <https://jquery.org/>
  22383. * Released under MIT license <https://lodash.com/license>
  22384. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  22385. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  22386. */
  22387. /** Used as the size to enable large array optimizations. */
  22388. var LARGE_ARRAY_SIZE = 200;
  22389. /** Used to stand-in for `undefined` hash values. */
  22390. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  22391. /** Used as references for various `Number` constants. */
  22392. var MAX_SAFE_INTEGER = 9007199254740991;
  22393. /** `Object#toString` result references. */
  22394. var argsTag = '[object Arguments]',
  22395. arrayTag = '[object Array]',
  22396. boolTag = '[object Boolean]',
  22397. dateTag = '[object Date]',
  22398. errorTag = '[object Error]',
  22399. funcTag = '[object Function]',
  22400. genTag = '[object GeneratorFunction]',
  22401. mapTag = '[object Map]',
  22402. numberTag = '[object Number]',
  22403. objectTag = '[object Object]',
  22404. promiseTag = '[object Promise]',
  22405. regexpTag = '[object RegExp]',
  22406. setTag = '[object Set]',
  22407. stringTag = '[object String]',
  22408. symbolTag = '[object Symbol]',
  22409. weakMapTag = '[object WeakMap]';
  22410. var arrayBufferTag = '[object ArrayBuffer]',
  22411. dataViewTag = '[object DataView]',
  22412. float32Tag = '[object Float32Array]',
  22413. float64Tag = '[object Float64Array]',
  22414. int8Tag = '[object Int8Array]',
  22415. int16Tag = '[object Int16Array]',
  22416. int32Tag = '[object Int32Array]',
  22417. uint8Tag = '[object Uint8Array]',
  22418. uint8ClampedTag = '[object Uint8ClampedArray]',
  22419. uint16Tag = '[object Uint16Array]',
  22420. uint32Tag = '[object Uint32Array]';
  22421. /**
  22422. * Used to match `RegExp`
  22423. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  22424. */
  22425. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  22426. /** Used to match `RegExp` flags from their coerced string values. */
  22427. var reFlags = /\w*$/;
  22428. /** Used to detect host constructors (Safari). */
  22429. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  22430. /** Used to detect unsigned integer values. */
  22431. var reIsUint = /^(?:0|[1-9]\d*)$/;
  22432. /** Used to identify `toStringTag` values supported by `_.clone`. */
  22433. var cloneableTags = {};
  22434. cloneableTags[argsTag] = cloneableTags[arrayTag] =
  22435. cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
  22436. cloneableTags[boolTag] = cloneableTags[dateTag] =
  22437. cloneableTags[float32Tag] = cloneableTags[float64Tag] =
  22438. cloneableTags[int8Tag] = cloneableTags[int16Tag] =
  22439. cloneableTags[int32Tag] = cloneableTags[mapTag] =
  22440. cloneableTags[numberTag] = cloneableTags[objectTag] =
  22441. cloneableTags[regexpTag] = cloneableTags[setTag] =
  22442. cloneableTags[stringTag] = cloneableTags[symbolTag] =
  22443. cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
  22444. cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
  22445. cloneableTags[errorTag] = cloneableTags[funcTag] =
  22446. cloneableTags[weakMapTag] = false;
  22447. /** Detect free variable `global` from Node.js. */
  22448. var freeGlobal = typeof __webpack_require__.g == 'object' && __webpack_require__.g && __webpack_require__.g.Object === Object && __webpack_require__.g;
  22449. /** Detect free variable `self`. */
  22450. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  22451. /** Used as a reference to the global object. */
  22452. var root = freeGlobal || freeSelf || Function('return this')();
  22453. /** Detect free variable `exports`. */
  22454. var freeExports = true && exports && !exports.nodeType && exports;
  22455. /** Detect free variable `module`. */
  22456. var freeModule = freeExports && "object" == 'object' && module && !module.nodeType && module;
  22457. /** Detect the popular CommonJS extension `module.exports`. */
  22458. var moduleExports = freeModule && freeModule.exports === freeExports;
  22459. /**
  22460. * Adds the key-value `pair` to `map`.
  22461. *
  22462. * @private
  22463. * @param {Object} map The map to modify.
  22464. * @param {Array} pair The key-value pair to add.
  22465. * @returns {Object} Returns `map`.
  22466. */
  22467. function addMapEntry(map, pair) {
  22468. // Don't return `map.set` because it's not chainable in IE 11.
  22469. map.set(pair[0], pair[1]);
  22470. return map;
  22471. }
  22472. /**
  22473. * Adds `value` to `set`.
  22474. *
  22475. * @private
  22476. * @param {Object} set The set to modify.
  22477. * @param {*} value The value to add.
  22478. * @returns {Object} Returns `set`.
  22479. */
  22480. function addSetEntry(set, value) {
  22481. // Don't return `set.add` because it's not chainable in IE 11.
  22482. set.add(value);
  22483. return set;
  22484. }
  22485. /**
  22486. * A specialized version of `_.forEach` for arrays without support for
  22487. * iteratee shorthands.
  22488. *
  22489. * @private
  22490. * @param {Array} [array] The array to iterate over.
  22491. * @param {Function} iteratee The function invoked per iteration.
  22492. * @returns {Array} Returns `array`.
  22493. */
  22494. function arrayEach(array, iteratee) {
  22495. var index = -1,
  22496. length = array ? array.length : 0;
  22497. while (++index < length) {
  22498. if (iteratee(array[index], index, array) === false) {
  22499. break;
  22500. }
  22501. }
  22502. return array;
  22503. }
  22504. /**
  22505. * Appends the elements of `values` to `array`.
  22506. *
  22507. * @private
  22508. * @param {Array} array The array to modify.
  22509. * @param {Array} values The values to append.
  22510. * @returns {Array} Returns `array`.
  22511. */
  22512. function arrayPush(array, values) {
  22513. var index = -1,
  22514. length = values.length,
  22515. offset = array.length;
  22516. while (++index < length) {
  22517. array[offset + index] = values[index];
  22518. }
  22519. return array;
  22520. }
  22521. /**
  22522. * A specialized version of `_.reduce` for arrays without support for
  22523. * iteratee shorthands.
  22524. *
  22525. * @private
  22526. * @param {Array} [array] The array to iterate over.
  22527. * @param {Function} iteratee The function invoked per iteration.
  22528. * @param {*} [accumulator] The initial value.
  22529. * @param {boolean} [initAccum] Specify using the first element of `array` as
  22530. * the initial value.
  22531. * @returns {*} Returns the accumulated value.
  22532. */
  22533. function arrayReduce(array, iteratee, accumulator, initAccum) {
  22534. var index = -1,
  22535. length = array ? array.length : 0;
  22536. if (initAccum && length) {
  22537. accumulator = array[++index];
  22538. }
  22539. while (++index < length) {
  22540. accumulator = iteratee(accumulator, array[index], index, array);
  22541. }
  22542. return accumulator;
  22543. }
  22544. /**
  22545. * The base implementation of `_.times` without support for iteratee shorthands
  22546. * or max array length checks.
  22547. *
  22548. * @private
  22549. * @param {number} n The number of times to invoke `iteratee`.
  22550. * @param {Function} iteratee The function invoked per iteration.
  22551. * @returns {Array} Returns the array of results.
  22552. */
  22553. function baseTimes(n, iteratee) {
  22554. var index = -1,
  22555. result = Array(n);
  22556. while (++index < n) {
  22557. result[index] = iteratee(index);
  22558. }
  22559. return result;
  22560. }
  22561. /**
  22562. * Gets the value at `key` of `object`.
  22563. *
  22564. * @private
  22565. * @param {Object} [object] The object to query.
  22566. * @param {string} key The key of the property to get.
  22567. * @returns {*} Returns the property value.
  22568. */
  22569. function getValue(object, key) {
  22570. return object == null ? undefined : object[key];
  22571. }
  22572. /**
  22573. * Checks if `value` is a host object in IE < 9.
  22574. *
  22575. * @private
  22576. * @param {*} value The value to check.
  22577. * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
  22578. */
  22579. function isHostObject(value) {
  22580. // Many host objects are `Object` objects that can coerce to strings
  22581. // despite having improperly defined `toString` methods.
  22582. var result = false;
  22583. if (value != null && typeof value.toString != 'function') {
  22584. try {
  22585. result = !!(value + '');
  22586. } catch (e) {}
  22587. }
  22588. return result;
  22589. }
  22590. /**
  22591. * Converts `map` to its key-value pairs.
  22592. *
  22593. * @private
  22594. * @param {Object} map The map to convert.
  22595. * @returns {Array} Returns the key-value pairs.
  22596. */
  22597. function mapToArray(map) {
  22598. var index = -1,
  22599. result = Array(map.size);
  22600. map.forEach(function(value, key) {
  22601. result[++index] = [key, value];
  22602. });
  22603. return result;
  22604. }
  22605. /**
  22606. * Creates a unary function that invokes `func` with its argument transformed.
  22607. *
  22608. * @private
  22609. * @param {Function} func The function to wrap.
  22610. * @param {Function} transform The argument transform.
  22611. * @returns {Function} Returns the new function.
  22612. */
  22613. function overArg(func, transform) {
  22614. return function(arg) {
  22615. return func(transform(arg));
  22616. };
  22617. }
  22618. /**
  22619. * Converts `set` to an array of its values.
  22620. *
  22621. * @private
  22622. * @param {Object} set The set to convert.
  22623. * @returns {Array} Returns the values.
  22624. */
  22625. function setToArray(set) {
  22626. var index = -1,
  22627. result = Array(set.size);
  22628. set.forEach(function(value) {
  22629. result[++index] = value;
  22630. });
  22631. return result;
  22632. }
  22633. /** Used for built-in method references. */
  22634. var arrayProto = Array.prototype,
  22635. funcProto = Function.prototype,
  22636. objectProto = Object.prototype;
  22637. /** Used to detect overreaching core-js shims. */
  22638. var coreJsData = root['__core-js_shared__'];
  22639. /** Used to detect methods masquerading as native. */
  22640. var maskSrcKey = (function() {
  22641. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  22642. return uid ? ('Symbol(src)_1.' + uid) : '';
  22643. }());
  22644. /** Used to resolve the decompiled source of functions. */
  22645. var funcToString = funcProto.toString;
  22646. /** Used to check objects for own properties. */
  22647. var hasOwnProperty = objectProto.hasOwnProperty;
  22648. /**
  22649. * Used to resolve the
  22650. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  22651. * of values.
  22652. */
  22653. var objectToString = objectProto.toString;
  22654. /** Used to detect if a method is native. */
  22655. var reIsNative = RegExp('^' +
  22656. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  22657. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  22658. );
  22659. /** Built-in value references. */
  22660. var Buffer = moduleExports ? root.Buffer : undefined,
  22661. Symbol = root.Symbol,
  22662. Uint8Array = root.Uint8Array,
  22663. getPrototype = overArg(Object.getPrototypeOf, Object),
  22664. objectCreate = Object.create,
  22665. propertyIsEnumerable = objectProto.propertyIsEnumerable,
  22666. splice = arrayProto.splice;
  22667. /* Built-in method references for those with the same name as other `lodash` methods. */
  22668. var nativeGetSymbols = Object.getOwnPropertySymbols,
  22669. nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
  22670. nativeKeys = overArg(Object.keys, Object);
  22671. /* Built-in method references that are verified to be native. */
  22672. var DataView = getNative(root, 'DataView'),
  22673. Map = getNative(root, 'Map'),
  22674. Promise = getNative(root, 'Promise'),
  22675. Set = getNative(root, 'Set'),
  22676. WeakMap = getNative(root, 'WeakMap'),
  22677. nativeCreate = getNative(Object, 'create');
  22678. /** Used to detect maps, sets, and weakmaps. */
  22679. var dataViewCtorString = toSource(DataView),
  22680. mapCtorString = toSource(Map),
  22681. promiseCtorString = toSource(Promise),
  22682. setCtorString = toSource(Set),
  22683. weakMapCtorString = toSource(WeakMap);
  22684. /** Used to convert symbols to primitives and strings. */
  22685. var symbolProto = Symbol ? Symbol.prototype : undefined,
  22686. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  22687. /**
  22688. * Creates a hash object.
  22689. *
  22690. * @private
  22691. * @constructor
  22692. * @param {Array} [entries] The key-value pairs to cache.
  22693. */
  22694. function Hash(entries) {
  22695. var index = -1,
  22696. length = entries ? entries.length : 0;
  22697. this.clear();
  22698. while (++index < length) {
  22699. var entry = entries[index];
  22700. this.set(entry[0], entry[1]);
  22701. }
  22702. }
  22703. /**
  22704. * Removes all key-value entries from the hash.
  22705. *
  22706. * @private
  22707. * @name clear
  22708. * @memberOf Hash
  22709. */
  22710. function hashClear() {
  22711. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  22712. }
  22713. /**
  22714. * Removes `key` and its value from the hash.
  22715. *
  22716. * @private
  22717. * @name delete
  22718. * @memberOf Hash
  22719. * @param {Object} hash The hash to modify.
  22720. * @param {string} key The key of the value to remove.
  22721. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  22722. */
  22723. function hashDelete(key) {
  22724. return this.has(key) && delete this.__data__[key];
  22725. }
  22726. /**
  22727. * Gets the hash value for `key`.
  22728. *
  22729. * @private
  22730. * @name get
  22731. * @memberOf Hash
  22732. * @param {string} key The key of the value to get.
  22733. * @returns {*} Returns the entry value.
  22734. */
  22735. function hashGet(key) {
  22736. var data = this.__data__;
  22737. if (nativeCreate) {
  22738. var result = data[key];
  22739. return result === HASH_UNDEFINED ? undefined : result;
  22740. }
  22741. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  22742. }
  22743. /**
  22744. * Checks if a hash value for `key` exists.
  22745. *
  22746. * @private
  22747. * @name has
  22748. * @memberOf Hash
  22749. * @param {string} key The key of the entry to check.
  22750. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  22751. */
  22752. function hashHas(key) {
  22753. var data = this.__data__;
  22754. return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);
  22755. }
  22756. /**
  22757. * Sets the hash `key` to `value`.
  22758. *
  22759. * @private
  22760. * @name set
  22761. * @memberOf Hash
  22762. * @param {string} key The key of the value to set.
  22763. * @param {*} value The value to set.
  22764. * @returns {Object} Returns the hash instance.
  22765. */
  22766. function hashSet(key, value) {
  22767. var data = this.__data__;
  22768. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  22769. return this;
  22770. }
  22771. // Add methods to `Hash`.
  22772. Hash.prototype.clear = hashClear;
  22773. Hash.prototype['delete'] = hashDelete;
  22774. Hash.prototype.get = hashGet;
  22775. Hash.prototype.has = hashHas;
  22776. Hash.prototype.set = hashSet;
  22777. /**
  22778. * Creates an list cache object.
  22779. *
  22780. * @private
  22781. * @constructor
  22782. * @param {Array} [entries] The key-value pairs to cache.
  22783. */
  22784. function ListCache(entries) {
  22785. var index = -1,
  22786. length = entries ? entries.length : 0;
  22787. this.clear();
  22788. while (++index < length) {
  22789. var entry = entries[index];
  22790. this.set(entry[0], entry[1]);
  22791. }
  22792. }
  22793. /**
  22794. * Removes all key-value entries from the list cache.
  22795. *
  22796. * @private
  22797. * @name clear
  22798. * @memberOf ListCache
  22799. */
  22800. function listCacheClear() {
  22801. this.__data__ = [];
  22802. }
  22803. /**
  22804. * Removes `key` and its value from the list cache.
  22805. *
  22806. * @private
  22807. * @name delete
  22808. * @memberOf ListCache
  22809. * @param {string} key The key of the value to remove.
  22810. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  22811. */
  22812. function listCacheDelete(key) {
  22813. var data = this.__data__,
  22814. index = assocIndexOf(data, key);
  22815. if (index < 0) {
  22816. return false;
  22817. }
  22818. var lastIndex = data.length - 1;
  22819. if (index == lastIndex) {
  22820. data.pop();
  22821. } else {
  22822. splice.call(data, index, 1);
  22823. }
  22824. return true;
  22825. }
  22826. /**
  22827. * Gets the list cache value for `key`.
  22828. *
  22829. * @private
  22830. * @name get
  22831. * @memberOf ListCache
  22832. * @param {string} key The key of the value to get.
  22833. * @returns {*} Returns the entry value.
  22834. */
  22835. function listCacheGet(key) {
  22836. var data = this.__data__,
  22837. index = assocIndexOf(data, key);
  22838. return index < 0 ? undefined : data[index][1];
  22839. }
  22840. /**
  22841. * Checks if a list cache value for `key` exists.
  22842. *
  22843. * @private
  22844. * @name has
  22845. * @memberOf ListCache
  22846. * @param {string} key The key of the entry to check.
  22847. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  22848. */
  22849. function listCacheHas(key) {
  22850. return assocIndexOf(this.__data__, key) > -1;
  22851. }
  22852. /**
  22853. * Sets the list cache `key` to `value`.
  22854. *
  22855. * @private
  22856. * @name set
  22857. * @memberOf ListCache
  22858. * @param {string} key The key of the value to set.
  22859. * @param {*} value The value to set.
  22860. * @returns {Object} Returns the list cache instance.
  22861. */
  22862. function listCacheSet(key, value) {
  22863. var data = this.__data__,
  22864. index = assocIndexOf(data, key);
  22865. if (index < 0) {
  22866. data.push([key, value]);
  22867. } else {
  22868. data[index][1] = value;
  22869. }
  22870. return this;
  22871. }
  22872. // Add methods to `ListCache`.
  22873. ListCache.prototype.clear = listCacheClear;
  22874. ListCache.prototype['delete'] = listCacheDelete;
  22875. ListCache.prototype.get = listCacheGet;
  22876. ListCache.prototype.has = listCacheHas;
  22877. ListCache.prototype.set = listCacheSet;
  22878. /**
  22879. * Creates a map cache object to store key-value pairs.
  22880. *
  22881. * @private
  22882. * @constructor
  22883. * @param {Array} [entries] The key-value pairs to cache.
  22884. */
  22885. function MapCache(entries) {
  22886. var index = -1,
  22887. length = entries ? entries.length : 0;
  22888. this.clear();
  22889. while (++index < length) {
  22890. var entry = entries[index];
  22891. this.set(entry[0], entry[1]);
  22892. }
  22893. }
  22894. /**
  22895. * Removes all key-value entries from the map.
  22896. *
  22897. * @private
  22898. * @name clear
  22899. * @memberOf MapCache
  22900. */
  22901. function mapCacheClear() {
  22902. this.__data__ = {
  22903. 'hash': new Hash,
  22904. 'map': new (Map || ListCache),
  22905. 'string': new Hash
  22906. };
  22907. }
  22908. /**
  22909. * Removes `key` and its value from the map.
  22910. *
  22911. * @private
  22912. * @name delete
  22913. * @memberOf MapCache
  22914. * @param {string} key The key of the value to remove.
  22915. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  22916. */
  22917. function mapCacheDelete(key) {
  22918. return getMapData(this, key)['delete'](key);
  22919. }
  22920. /**
  22921. * Gets the map value for `key`.
  22922. *
  22923. * @private
  22924. * @name get
  22925. * @memberOf MapCache
  22926. * @param {string} key The key of the value to get.
  22927. * @returns {*} Returns the entry value.
  22928. */
  22929. function mapCacheGet(key) {
  22930. return getMapData(this, key).get(key);
  22931. }
  22932. /**
  22933. * Checks if a map value for `key` exists.
  22934. *
  22935. * @private
  22936. * @name has
  22937. * @memberOf MapCache
  22938. * @param {string} key The key of the entry to check.
  22939. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  22940. */
  22941. function mapCacheHas(key) {
  22942. return getMapData(this, key).has(key);
  22943. }
  22944. /**
  22945. * Sets the map `key` to `value`.
  22946. *
  22947. * @private
  22948. * @name set
  22949. * @memberOf MapCache
  22950. * @param {string} key The key of the value to set.
  22951. * @param {*} value The value to set.
  22952. * @returns {Object} Returns the map cache instance.
  22953. */
  22954. function mapCacheSet(key, value) {
  22955. getMapData(this, key).set(key, value);
  22956. return this;
  22957. }
  22958. // Add methods to `MapCache`.
  22959. MapCache.prototype.clear = mapCacheClear;
  22960. MapCache.prototype['delete'] = mapCacheDelete;
  22961. MapCache.prototype.get = mapCacheGet;
  22962. MapCache.prototype.has = mapCacheHas;
  22963. MapCache.prototype.set = mapCacheSet;
  22964. /**
  22965. * Creates a stack cache object to store key-value pairs.
  22966. *
  22967. * @private
  22968. * @constructor
  22969. * @param {Array} [entries] The key-value pairs to cache.
  22970. */
  22971. function Stack(entries) {
  22972. this.__data__ = new ListCache(entries);
  22973. }
  22974. /**
  22975. * Removes all key-value entries from the stack.
  22976. *
  22977. * @private
  22978. * @name clear
  22979. * @memberOf Stack
  22980. */
  22981. function stackClear() {
  22982. this.__data__ = new ListCache;
  22983. }
  22984. /**
  22985. * Removes `key` and its value from the stack.
  22986. *
  22987. * @private
  22988. * @name delete
  22989. * @memberOf Stack
  22990. * @param {string} key The key of the value to remove.
  22991. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  22992. */
  22993. function stackDelete(key) {
  22994. return this.__data__['delete'](key);
  22995. }
  22996. /**
  22997. * Gets the stack value for `key`.
  22998. *
  22999. * @private
  23000. * @name get
  23001. * @memberOf Stack
  23002. * @param {string} key The key of the value to get.
  23003. * @returns {*} Returns the entry value.
  23004. */
  23005. function stackGet(key) {
  23006. return this.__data__.get(key);
  23007. }
  23008. /**
  23009. * Checks if a stack value for `key` exists.
  23010. *
  23011. * @private
  23012. * @name has
  23013. * @memberOf Stack
  23014. * @param {string} key The key of the entry to check.
  23015. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  23016. */
  23017. function stackHas(key) {
  23018. return this.__data__.has(key);
  23019. }
  23020. /**
  23021. * Sets the stack `key` to `value`.
  23022. *
  23023. * @private
  23024. * @name set
  23025. * @memberOf Stack
  23026. * @param {string} key The key of the value to set.
  23027. * @param {*} value The value to set.
  23028. * @returns {Object} Returns the stack cache instance.
  23029. */
  23030. function stackSet(key, value) {
  23031. var cache = this.__data__;
  23032. if (cache instanceof ListCache) {
  23033. var pairs = cache.__data__;
  23034. if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
  23035. pairs.push([key, value]);
  23036. return this;
  23037. }
  23038. cache = this.__data__ = new MapCache(pairs);
  23039. }
  23040. cache.set(key, value);
  23041. return this;
  23042. }
  23043. // Add methods to `Stack`.
  23044. Stack.prototype.clear = stackClear;
  23045. Stack.prototype['delete'] = stackDelete;
  23046. Stack.prototype.get = stackGet;
  23047. Stack.prototype.has = stackHas;
  23048. Stack.prototype.set = stackSet;
  23049. /**
  23050. * Creates an array of the enumerable property names of the array-like `value`.
  23051. *
  23052. * @private
  23053. * @param {*} value The value to query.
  23054. * @param {boolean} inherited Specify returning inherited property names.
  23055. * @returns {Array} Returns the array of property names.
  23056. */
  23057. function arrayLikeKeys(value, inherited) {
  23058. // Safari 8.1 makes `arguments.callee` enumerable in strict mode.
  23059. // Safari 9 makes `arguments.length` enumerable in strict mode.
  23060. var result = (isArray(value) || isArguments(value))
  23061. ? baseTimes(value.length, String)
  23062. : [];
  23063. var length = result.length,
  23064. skipIndexes = !!length;
  23065. for (var key in value) {
  23066. if ((inherited || hasOwnProperty.call(value, key)) &&
  23067. !(skipIndexes && (key == 'length' || isIndex(key, length)))) {
  23068. result.push(key);
  23069. }
  23070. }
  23071. return result;
  23072. }
  23073. /**
  23074. * Assigns `value` to `key` of `object` if the existing value is not equivalent
  23075. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  23076. * for equality comparisons.
  23077. *
  23078. * @private
  23079. * @param {Object} object The object to modify.
  23080. * @param {string} key The key of the property to assign.
  23081. * @param {*} value The value to assign.
  23082. */
  23083. function assignValue(object, key, value) {
  23084. var objValue = object[key];
  23085. if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
  23086. (value === undefined && !(key in object))) {
  23087. object[key] = value;
  23088. }
  23089. }
  23090. /**
  23091. * Gets the index at which the `key` is found in `array` of key-value pairs.
  23092. *
  23093. * @private
  23094. * @param {Array} array The array to inspect.
  23095. * @param {*} key The key to search for.
  23096. * @returns {number} Returns the index of the matched value, else `-1`.
  23097. */
  23098. function assocIndexOf(array, key) {
  23099. var length = array.length;
  23100. while (length--) {
  23101. if (eq(array[length][0], key)) {
  23102. return length;
  23103. }
  23104. }
  23105. return -1;
  23106. }
  23107. /**
  23108. * The base implementation of `_.assign` without support for multiple sources
  23109. * or `customizer` functions.
  23110. *
  23111. * @private
  23112. * @param {Object} object The destination object.
  23113. * @param {Object} source The source object.
  23114. * @returns {Object} Returns `object`.
  23115. */
  23116. function baseAssign(object, source) {
  23117. return object && copyObject(source, keys(source), object);
  23118. }
  23119. /**
  23120. * The base implementation of `_.clone` and `_.cloneDeep` which tracks
  23121. * traversed objects.
  23122. *
  23123. * @private
  23124. * @param {*} value The value to clone.
  23125. * @param {boolean} [isDeep] Specify a deep clone.
  23126. * @param {boolean} [isFull] Specify a clone including symbols.
  23127. * @param {Function} [customizer] The function to customize cloning.
  23128. * @param {string} [key] The key of `value`.
  23129. * @param {Object} [object] The parent object of `value`.
  23130. * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
  23131. * @returns {*} Returns the cloned value.
  23132. */
  23133. function baseClone(value, isDeep, isFull, customizer, key, object, stack) {
  23134. var result;
  23135. if (customizer) {
  23136. result = object ? customizer(value, key, object, stack) : customizer(value);
  23137. }
  23138. if (result !== undefined) {
  23139. return result;
  23140. }
  23141. if (!isObject(value)) {
  23142. return value;
  23143. }
  23144. var isArr = isArray(value);
  23145. if (isArr) {
  23146. result = initCloneArray(value);
  23147. if (!isDeep) {
  23148. return copyArray(value, result);
  23149. }
  23150. } else {
  23151. var tag = getTag(value),
  23152. isFunc = tag == funcTag || tag == genTag;
  23153. if (isBuffer(value)) {
  23154. return cloneBuffer(value, isDeep);
  23155. }
  23156. if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
  23157. if (isHostObject(value)) {
  23158. return object ? value : {};
  23159. }
  23160. result = initCloneObject(isFunc ? {} : value);
  23161. if (!isDeep) {
  23162. return copySymbols(value, baseAssign(result, value));
  23163. }
  23164. } else {
  23165. if (!cloneableTags[tag]) {
  23166. return object ? value : {};
  23167. }
  23168. result = initCloneByTag(value, tag, baseClone, isDeep);
  23169. }
  23170. }
  23171. // Check for circular references and return its corresponding clone.
  23172. stack || (stack = new Stack);
  23173. var stacked = stack.get(value);
  23174. if (stacked) {
  23175. return stacked;
  23176. }
  23177. stack.set(value, result);
  23178. if (!isArr) {
  23179. var props = isFull ? getAllKeys(value) : keys(value);
  23180. }
  23181. arrayEach(props || value, function(subValue, key) {
  23182. if (props) {
  23183. key = subValue;
  23184. subValue = value[key];
  23185. }
  23186. // Recursively populate clone (susceptible to call stack limits).
  23187. assignValue(result, key, baseClone(subValue, isDeep, isFull, customizer, key, value, stack));
  23188. });
  23189. return result;
  23190. }
  23191. /**
  23192. * The base implementation of `_.create` without support for assigning
  23193. * properties to the created object.
  23194. *
  23195. * @private
  23196. * @param {Object} prototype The object to inherit from.
  23197. * @returns {Object} Returns the new object.
  23198. */
  23199. function baseCreate(proto) {
  23200. return isObject(proto) ? objectCreate(proto) : {};
  23201. }
  23202. /**
  23203. * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
  23204. * `keysFunc` and `symbolsFunc` to get the enumerable property names and
  23205. * symbols of `object`.
  23206. *
  23207. * @private
  23208. * @param {Object} object The object to query.
  23209. * @param {Function} keysFunc The function to get the keys of `object`.
  23210. * @param {Function} symbolsFunc The function to get the symbols of `object`.
  23211. * @returns {Array} Returns the array of property names and symbols.
  23212. */
  23213. function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  23214. var result = keysFunc(object);
  23215. return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
  23216. }
  23217. /**
  23218. * The base implementation of `getTag`.
  23219. *
  23220. * @private
  23221. * @param {*} value The value to query.
  23222. * @returns {string} Returns the `toStringTag`.
  23223. */
  23224. function baseGetTag(value) {
  23225. return objectToString.call(value);
  23226. }
  23227. /**
  23228. * The base implementation of `_.isNative` without bad shim checks.
  23229. *
  23230. * @private
  23231. * @param {*} value The value to check.
  23232. * @returns {boolean} Returns `true` if `value` is a native function,
  23233. * else `false`.
  23234. */
  23235. function baseIsNative(value) {
  23236. if (!isObject(value) || isMasked(value)) {
  23237. return false;
  23238. }
  23239. var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
  23240. return pattern.test(toSource(value));
  23241. }
  23242. /**
  23243. * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
  23244. *
  23245. * @private
  23246. * @param {Object} object The object to query.
  23247. * @returns {Array} Returns the array of property names.
  23248. */
  23249. function baseKeys(object) {
  23250. if (!isPrototype(object)) {
  23251. return nativeKeys(object);
  23252. }
  23253. var result = [];
  23254. for (var key in Object(object)) {
  23255. if (hasOwnProperty.call(object, key) && key != 'constructor') {
  23256. result.push(key);
  23257. }
  23258. }
  23259. return result;
  23260. }
  23261. /**
  23262. * Creates a clone of `buffer`.
  23263. *
  23264. * @private
  23265. * @param {Buffer} buffer The buffer to clone.
  23266. * @param {boolean} [isDeep] Specify a deep clone.
  23267. * @returns {Buffer} Returns the cloned buffer.
  23268. */
  23269. function cloneBuffer(buffer, isDeep) {
  23270. if (isDeep) {
  23271. return buffer.slice();
  23272. }
  23273. var result = new buffer.constructor(buffer.length);
  23274. buffer.copy(result);
  23275. return result;
  23276. }
  23277. /**
  23278. * Creates a clone of `arrayBuffer`.
  23279. *
  23280. * @private
  23281. * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
  23282. * @returns {ArrayBuffer} Returns the cloned array buffer.
  23283. */
  23284. function cloneArrayBuffer(arrayBuffer) {
  23285. var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  23286. new Uint8Array(result).set(new Uint8Array(arrayBuffer));
  23287. return result;
  23288. }
  23289. /**
  23290. * Creates a clone of `dataView`.
  23291. *
  23292. * @private
  23293. * @param {Object} dataView The data view to clone.
  23294. * @param {boolean} [isDeep] Specify a deep clone.
  23295. * @returns {Object} Returns the cloned data view.
  23296. */
  23297. function cloneDataView(dataView, isDeep) {
  23298. var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
  23299. return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
  23300. }
  23301. /**
  23302. * Creates a clone of `map`.
  23303. *
  23304. * @private
  23305. * @param {Object} map The map to clone.
  23306. * @param {Function} cloneFunc The function to clone values.
  23307. * @param {boolean} [isDeep] Specify a deep clone.
  23308. * @returns {Object} Returns the cloned map.
  23309. */
  23310. function cloneMap(map, isDeep, cloneFunc) {
  23311. var array = isDeep ? cloneFunc(mapToArray(map), true) : mapToArray(map);
  23312. return arrayReduce(array, addMapEntry, new map.constructor);
  23313. }
  23314. /**
  23315. * Creates a clone of `regexp`.
  23316. *
  23317. * @private
  23318. * @param {Object} regexp The regexp to clone.
  23319. * @returns {Object} Returns the cloned regexp.
  23320. */
  23321. function cloneRegExp(regexp) {
  23322. var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
  23323. result.lastIndex = regexp.lastIndex;
  23324. return result;
  23325. }
  23326. /**
  23327. * Creates a clone of `set`.
  23328. *
  23329. * @private
  23330. * @param {Object} set The set to clone.
  23331. * @param {Function} cloneFunc The function to clone values.
  23332. * @param {boolean} [isDeep] Specify a deep clone.
  23333. * @returns {Object} Returns the cloned set.
  23334. */
  23335. function cloneSet(set, isDeep, cloneFunc) {
  23336. var array = isDeep ? cloneFunc(setToArray(set), true) : setToArray(set);
  23337. return arrayReduce(array, addSetEntry, new set.constructor);
  23338. }
  23339. /**
  23340. * Creates a clone of the `symbol` object.
  23341. *
  23342. * @private
  23343. * @param {Object} symbol The symbol object to clone.
  23344. * @returns {Object} Returns the cloned symbol object.
  23345. */
  23346. function cloneSymbol(symbol) {
  23347. return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
  23348. }
  23349. /**
  23350. * Creates a clone of `typedArray`.
  23351. *
  23352. * @private
  23353. * @param {Object} typedArray The typed array to clone.
  23354. * @param {boolean} [isDeep] Specify a deep clone.
  23355. * @returns {Object} Returns the cloned typed array.
  23356. */
  23357. function cloneTypedArray(typedArray, isDeep) {
  23358. var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
  23359. return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
  23360. }
  23361. /**
  23362. * Copies the values of `source` to `array`.
  23363. *
  23364. * @private
  23365. * @param {Array} source The array to copy values from.
  23366. * @param {Array} [array=[]] The array to copy values to.
  23367. * @returns {Array} Returns `array`.
  23368. */
  23369. function copyArray(source, array) {
  23370. var index = -1,
  23371. length = source.length;
  23372. array || (array = Array(length));
  23373. while (++index < length) {
  23374. array[index] = source[index];
  23375. }
  23376. return array;
  23377. }
  23378. /**
  23379. * Copies properties of `source` to `object`.
  23380. *
  23381. * @private
  23382. * @param {Object} source The object to copy properties from.
  23383. * @param {Array} props The property identifiers to copy.
  23384. * @param {Object} [object={}] The object to copy properties to.
  23385. * @param {Function} [customizer] The function to customize copied values.
  23386. * @returns {Object} Returns `object`.
  23387. */
  23388. function copyObject(source, props, object, customizer) {
  23389. object || (object = {});
  23390. var index = -1,
  23391. length = props.length;
  23392. while (++index < length) {
  23393. var key = props[index];
  23394. var newValue = customizer
  23395. ? customizer(object[key], source[key], key, object, source)
  23396. : undefined;
  23397. assignValue(object, key, newValue === undefined ? source[key] : newValue);
  23398. }
  23399. return object;
  23400. }
  23401. /**
  23402. * Copies own symbol properties of `source` to `object`.
  23403. *
  23404. * @private
  23405. * @param {Object} source The object to copy symbols from.
  23406. * @param {Object} [object={}] The object to copy symbols to.
  23407. * @returns {Object} Returns `object`.
  23408. */
  23409. function copySymbols(source, object) {
  23410. return copyObject(source, getSymbols(source), object);
  23411. }
  23412. /**
  23413. * Creates an array of own enumerable property names and symbols of `object`.
  23414. *
  23415. * @private
  23416. * @param {Object} object The object to query.
  23417. * @returns {Array} Returns the array of property names and symbols.
  23418. */
  23419. function getAllKeys(object) {
  23420. return baseGetAllKeys(object, keys, getSymbols);
  23421. }
  23422. /**
  23423. * Gets the data for `map`.
  23424. *
  23425. * @private
  23426. * @param {Object} map The map to query.
  23427. * @param {string} key The reference key.
  23428. * @returns {*} Returns the map data.
  23429. */
  23430. function getMapData(map, key) {
  23431. var data = map.__data__;
  23432. return isKeyable(key)
  23433. ? data[typeof key == 'string' ? 'string' : 'hash']
  23434. : data.map;
  23435. }
  23436. /**
  23437. * Gets the native function at `key` of `object`.
  23438. *
  23439. * @private
  23440. * @param {Object} object The object to query.
  23441. * @param {string} key The key of the method to get.
  23442. * @returns {*} Returns the function if it's native, else `undefined`.
  23443. */
  23444. function getNative(object, key) {
  23445. var value = getValue(object, key);
  23446. return baseIsNative(value) ? value : undefined;
  23447. }
  23448. /**
  23449. * Creates an array of the own enumerable symbol properties of `object`.
  23450. *
  23451. * @private
  23452. * @param {Object} object The object to query.
  23453. * @returns {Array} Returns the array of symbols.
  23454. */
  23455. var getSymbols = nativeGetSymbols ? overArg(nativeGetSymbols, Object) : stubArray;
  23456. /**
  23457. * Gets the `toStringTag` of `value`.
  23458. *
  23459. * @private
  23460. * @param {*} value The value to query.
  23461. * @returns {string} Returns the `toStringTag`.
  23462. */
  23463. var getTag = baseGetTag;
  23464. // Fallback for data views, maps, sets, and weak maps in IE 11,
  23465. // for data views in Edge < 14, and promises in Node.js.
  23466. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
  23467. (Map && getTag(new Map) != mapTag) ||
  23468. (Promise && getTag(Promise.resolve()) != promiseTag) ||
  23469. (Set && getTag(new Set) != setTag) ||
  23470. (WeakMap && getTag(new WeakMap) != weakMapTag)) {
  23471. getTag = function(value) {
  23472. var result = objectToString.call(value),
  23473. Ctor = result == objectTag ? value.constructor : undefined,
  23474. ctorString = Ctor ? toSource(Ctor) : undefined;
  23475. if (ctorString) {
  23476. switch (ctorString) {
  23477. case dataViewCtorString: return dataViewTag;
  23478. case mapCtorString: return mapTag;
  23479. case promiseCtorString: return promiseTag;
  23480. case setCtorString: return setTag;
  23481. case weakMapCtorString: return weakMapTag;
  23482. }
  23483. }
  23484. return result;
  23485. };
  23486. }
  23487. /**
  23488. * Initializes an array clone.
  23489. *
  23490. * @private
  23491. * @param {Array} array The array to clone.
  23492. * @returns {Array} Returns the initialized clone.
  23493. */
  23494. function initCloneArray(array) {
  23495. var length = array.length,
  23496. result = array.constructor(length);
  23497. // Add properties assigned by `RegExp#exec`.
  23498. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
  23499. result.index = array.index;
  23500. result.input = array.input;
  23501. }
  23502. return result;
  23503. }
  23504. /**
  23505. * Initializes an object clone.
  23506. *
  23507. * @private
  23508. * @param {Object} object The object to clone.
  23509. * @returns {Object} Returns the initialized clone.
  23510. */
  23511. function initCloneObject(object) {
  23512. return (typeof object.constructor == 'function' && !isPrototype(object))
  23513. ? baseCreate(getPrototype(object))
  23514. : {};
  23515. }
  23516. /**
  23517. * Initializes an object clone based on its `toStringTag`.
  23518. *
  23519. * **Note:** This function only supports cloning values with tags of
  23520. * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
  23521. *
  23522. * @private
  23523. * @param {Object} object The object to clone.
  23524. * @param {string} tag The `toStringTag` of the object to clone.
  23525. * @param {Function} cloneFunc The function to clone values.
  23526. * @param {boolean} [isDeep] Specify a deep clone.
  23527. * @returns {Object} Returns the initialized clone.
  23528. */
  23529. function initCloneByTag(object, tag, cloneFunc, isDeep) {
  23530. var Ctor = object.constructor;
  23531. switch (tag) {
  23532. case arrayBufferTag:
  23533. return cloneArrayBuffer(object);
  23534. case boolTag:
  23535. case dateTag:
  23536. return new Ctor(+object);
  23537. case dataViewTag:
  23538. return cloneDataView(object, isDeep);
  23539. case float32Tag: case float64Tag:
  23540. case int8Tag: case int16Tag: case int32Tag:
  23541. case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
  23542. return cloneTypedArray(object, isDeep);
  23543. case mapTag:
  23544. return cloneMap(object, isDeep, cloneFunc);
  23545. case numberTag:
  23546. case stringTag:
  23547. return new Ctor(object);
  23548. case regexpTag:
  23549. return cloneRegExp(object);
  23550. case setTag:
  23551. return cloneSet(object, isDeep, cloneFunc);
  23552. case symbolTag:
  23553. return cloneSymbol(object);
  23554. }
  23555. }
  23556. /**
  23557. * Checks if `value` is a valid array-like index.
  23558. *
  23559. * @private
  23560. * @param {*} value The value to check.
  23561. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  23562. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  23563. */
  23564. function isIndex(value, length) {
  23565. length = length == null ? MAX_SAFE_INTEGER : length;
  23566. return !!length &&
  23567. (typeof value == 'number' || reIsUint.test(value)) &&
  23568. (value > -1 && value % 1 == 0 && value < length);
  23569. }
  23570. /**
  23571. * Checks if `value` is suitable for use as unique object key.
  23572. *
  23573. * @private
  23574. * @param {*} value The value to check.
  23575. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  23576. */
  23577. function isKeyable(value) {
  23578. var type = typeof value;
  23579. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  23580. ? (value !== '__proto__')
  23581. : (value === null);
  23582. }
  23583. /**
  23584. * Checks if `func` has its source masked.
  23585. *
  23586. * @private
  23587. * @param {Function} func The function to check.
  23588. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  23589. */
  23590. function isMasked(func) {
  23591. return !!maskSrcKey && (maskSrcKey in func);
  23592. }
  23593. /**
  23594. * Checks if `value` is likely a prototype object.
  23595. *
  23596. * @private
  23597. * @param {*} value The value to check.
  23598. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
  23599. */
  23600. function isPrototype(value) {
  23601. var Ctor = value && value.constructor,
  23602. proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
  23603. return value === proto;
  23604. }
  23605. /**
  23606. * Converts `func` to its source code.
  23607. *
  23608. * @private
  23609. * @param {Function} func The function to process.
  23610. * @returns {string} Returns the source code.
  23611. */
  23612. function toSource(func) {
  23613. if (func != null) {
  23614. try {
  23615. return funcToString.call(func);
  23616. } catch (e) {}
  23617. try {
  23618. return (func + '');
  23619. } catch (e) {}
  23620. }
  23621. return '';
  23622. }
  23623. /**
  23624. * This method is like `_.clone` except that it recursively clones `value`.
  23625. *
  23626. * @static
  23627. * @memberOf _
  23628. * @since 1.0.0
  23629. * @category Lang
  23630. * @param {*} value The value to recursively clone.
  23631. * @returns {*} Returns the deep cloned value.
  23632. * @see _.clone
  23633. * @example
  23634. *
  23635. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  23636. *
  23637. * var deep = _.cloneDeep(objects);
  23638. * console.log(deep[0] === objects[0]);
  23639. * // => false
  23640. */
  23641. function cloneDeep(value) {
  23642. return baseClone(value, true, true);
  23643. }
  23644. /**
  23645. * Performs a
  23646. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  23647. * comparison between two values to determine if they are equivalent.
  23648. *
  23649. * @static
  23650. * @memberOf _
  23651. * @since 4.0.0
  23652. * @category Lang
  23653. * @param {*} value The value to compare.
  23654. * @param {*} other The other value to compare.
  23655. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  23656. * @example
  23657. *
  23658. * var object = { 'a': 1 };
  23659. * var other = { 'a': 1 };
  23660. *
  23661. * _.eq(object, object);
  23662. * // => true
  23663. *
  23664. * _.eq(object, other);
  23665. * // => false
  23666. *
  23667. * _.eq('a', 'a');
  23668. * // => true
  23669. *
  23670. * _.eq('a', Object('a'));
  23671. * // => false
  23672. *
  23673. * _.eq(NaN, NaN);
  23674. * // => true
  23675. */
  23676. function eq(value, other) {
  23677. return value === other || (value !== value && other !== other);
  23678. }
  23679. /**
  23680. * Checks if `value` is likely an `arguments` object.
  23681. *
  23682. * @static
  23683. * @memberOf _
  23684. * @since 0.1.0
  23685. * @category Lang
  23686. * @param {*} value The value to check.
  23687. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  23688. * else `false`.
  23689. * @example
  23690. *
  23691. * _.isArguments(function() { return arguments; }());
  23692. * // => true
  23693. *
  23694. * _.isArguments([1, 2, 3]);
  23695. * // => false
  23696. */
  23697. function isArguments(value) {
  23698. // Safari 8.1 makes `arguments.callee` enumerable in strict mode.
  23699. return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&
  23700. (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);
  23701. }
  23702. /**
  23703. * Checks if `value` is classified as an `Array` object.
  23704. *
  23705. * @static
  23706. * @memberOf _
  23707. * @since 0.1.0
  23708. * @category Lang
  23709. * @param {*} value The value to check.
  23710. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  23711. * @example
  23712. *
  23713. * _.isArray([1, 2, 3]);
  23714. * // => true
  23715. *
  23716. * _.isArray(document.body.children);
  23717. * // => false
  23718. *
  23719. * _.isArray('abc');
  23720. * // => false
  23721. *
  23722. * _.isArray(_.noop);
  23723. * // => false
  23724. */
  23725. var isArray = Array.isArray;
  23726. /**
  23727. * Checks if `value` is array-like. A value is considered array-like if it's
  23728. * not a function and has a `value.length` that's an integer greater than or
  23729. * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
  23730. *
  23731. * @static
  23732. * @memberOf _
  23733. * @since 4.0.0
  23734. * @category Lang
  23735. * @param {*} value The value to check.
  23736. * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
  23737. * @example
  23738. *
  23739. * _.isArrayLike([1, 2, 3]);
  23740. * // => true
  23741. *
  23742. * _.isArrayLike(document.body.children);
  23743. * // => true
  23744. *
  23745. * _.isArrayLike('abc');
  23746. * // => true
  23747. *
  23748. * _.isArrayLike(_.noop);
  23749. * // => false
  23750. */
  23751. function isArrayLike(value) {
  23752. return value != null && isLength(value.length) && !isFunction(value);
  23753. }
  23754. /**
  23755. * This method is like `_.isArrayLike` except that it also checks if `value`
  23756. * is an object.
  23757. *
  23758. * @static
  23759. * @memberOf _
  23760. * @since 4.0.0
  23761. * @category Lang
  23762. * @param {*} value The value to check.
  23763. * @returns {boolean} Returns `true` if `value` is an array-like object,
  23764. * else `false`.
  23765. * @example
  23766. *
  23767. * _.isArrayLikeObject([1, 2, 3]);
  23768. * // => true
  23769. *
  23770. * _.isArrayLikeObject(document.body.children);
  23771. * // => true
  23772. *
  23773. * _.isArrayLikeObject('abc');
  23774. * // => false
  23775. *
  23776. * _.isArrayLikeObject(_.noop);
  23777. * // => false
  23778. */
  23779. function isArrayLikeObject(value) {
  23780. return isObjectLike(value) && isArrayLike(value);
  23781. }
  23782. /**
  23783. * Checks if `value` is a buffer.
  23784. *
  23785. * @static
  23786. * @memberOf _
  23787. * @since 4.3.0
  23788. * @category Lang
  23789. * @param {*} value The value to check.
  23790. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
  23791. * @example
  23792. *
  23793. * _.isBuffer(new Buffer(2));
  23794. * // => true
  23795. *
  23796. * _.isBuffer(new Uint8Array(2));
  23797. * // => false
  23798. */
  23799. var isBuffer = nativeIsBuffer || stubFalse;
  23800. /**
  23801. * Checks if `value` is classified as a `Function` object.
  23802. *
  23803. * @static
  23804. * @memberOf _
  23805. * @since 0.1.0
  23806. * @category Lang
  23807. * @param {*} value The value to check.
  23808. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  23809. * @example
  23810. *
  23811. * _.isFunction(_);
  23812. * // => true
  23813. *
  23814. * _.isFunction(/abc/);
  23815. * // => false
  23816. */
  23817. function isFunction(value) {
  23818. // The use of `Object#toString` avoids issues with the `typeof` operator
  23819. // in Safari 8-9 which returns 'object' for typed array and other constructors.
  23820. var tag = isObject(value) ? objectToString.call(value) : '';
  23821. return tag == funcTag || tag == genTag;
  23822. }
  23823. /**
  23824. * Checks if `value` is a valid array-like length.
  23825. *
  23826. * **Note:** This method is loosely based on
  23827. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  23828. *
  23829. * @static
  23830. * @memberOf _
  23831. * @since 4.0.0
  23832. * @category Lang
  23833. * @param {*} value The value to check.
  23834. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
  23835. * @example
  23836. *
  23837. * _.isLength(3);
  23838. * // => true
  23839. *
  23840. * _.isLength(Number.MIN_VALUE);
  23841. * // => false
  23842. *
  23843. * _.isLength(Infinity);
  23844. * // => false
  23845. *
  23846. * _.isLength('3');
  23847. * // => false
  23848. */
  23849. function isLength(value) {
  23850. return typeof value == 'number' &&
  23851. value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
  23852. }
  23853. /**
  23854. * Checks if `value` is the
  23855. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  23856. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  23857. *
  23858. * @static
  23859. * @memberOf _
  23860. * @since 0.1.0
  23861. * @category Lang
  23862. * @param {*} value The value to check.
  23863. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  23864. * @example
  23865. *
  23866. * _.isObject({});
  23867. * // => true
  23868. *
  23869. * _.isObject([1, 2, 3]);
  23870. * // => true
  23871. *
  23872. * _.isObject(_.noop);
  23873. * // => true
  23874. *
  23875. * _.isObject(null);
  23876. * // => false
  23877. */
  23878. function isObject(value) {
  23879. var type = typeof value;
  23880. return !!value && (type == 'object' || type == 'function');
  23881. }
  23882. /**
  23883. * Checks if `value` is object-like. A value is object-like if it's not `null`
  23884. * and has a `typeof` result of "object".
  23885. *
  23886. * @static
  23887. * @memberOf _
  23888. * @since 4.0.0
  23889. * @category Lang
  23890. * @param {*} value The value to check.
  23891. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  23892. * @example
  23893. *
  23894. * _.isObjectLike({});
  23895. * // => true
  23896. *
  23897. * _.isObjectLike([1, 2, 3]);
  23898. * // => true
  23899. *
  23900. * _.isObjectLike(_.noop);
  23901. * // => false
  23902. *
  23903. * _.isObjectLike(null);
  23904. * // => false
  23905. */
  23906. function isObjectLike(value) {
  23907. return !!value && typeof value == 'object';
  23908. }
  23909. /**
  23910. * Creates an array of the own enumerable property names of `object`.
  23911. *
  23912. * **Note:** Non-object values are coerced to objects. See the
  23913. * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  23914. * for more details.
  23915. *
  23916. * @static
  23917. * @since 0.1.0
  23918. * @memberOf _
  23919. * @category Object
  23920. * @param {Object} object The object to query.
  23921. * @returns {Array} Returns the array of property names.
  23922. * @example
  23923. *
  23924. * function Foo() {
  23925. * this.a = 1;
  23926. * this.b = 2;
  23927. * }
  23928. *
  23929. * Foo.prototype.c = 3;
  23930. *
  23931. * _.keys(new Foo);
  23932. * // => ['a', 'b'] (iteration order is not guaranteed)
  23933. *
  23934. * _.keys('hi');
  23935. * // => ['0', '1']
  23936. */
  23937. function keys(object) {
  23938. return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
  23939. }
  23940. /**
  23941. * This method returns a new empty array.
  23942. *
  23943. * @static
  23944. * @memberOf _
  23945. * @since 4.13.0
  23946. * @category Util
  23947. * @returns {Array} Returns the new empty array.
  23948. * @example
  23949. *
  23950. * var arrays = _.times(2, _.stubArray);
  23951. *
  23952. * console.log(arrays);
  23953. * // => [[], []]
  23954. *
  23955. * console.log(arrays[0] === arrays[1]);
  23956. * // => false
  23957. */
  23958. function stubArray() {
  23959. return [];
  23960. }
  23961. /**
  23962. * This method returns `false`.
  23963. *
  23964. * @static
  23965. * @memberOf _
  23966. * @since 4.13.0
  23967. * @category Util
  23968. * @returns {boolean} Returns `false`.
  23969. * @example
  23970. *
  23971. * _.times(2, _.stubFalse);
  23972. * // => [false, false]
  23973. */
  23974. function stubFalse() {
  23975. return false;
  23976. }
  23977. module.exports = cloneDeep;
  23978. /***/ }),
  23979. /***/ "./node_modules/lodash.isequal/index.js":
  23980. /*!**********************************************!*\
  23981. !*** ./node_modules/lodash.isequal/index.js ***!
  23982. \**********************************************/
  23983. /***/ ((module, exports, __webpack_require__) => {
  23984. /* module decorator */ module = __webpack_require__.nmd(module);
  23985. /**
  23986. * Lodash (Custom Build) <https://lodash.com/>
  23987. * Build: `lodash modularize exports="npm" -o ./`
  23988. * Copyright JS Foundation and other contributors <https://js.foundation/>
  23989. * Released under MIT license <https://lodash.com/license>
  23990. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  23991. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  23992. */
  23993. /** Used as the size to enable large array optimizations. */
  23994. var LARGE_ARRAY_SIZE = 200;
  23995. /** Used to stand-in for `undefined` hash values. */
  23996. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  23997. /** Used to compose bitmasks for value comparisons. */
  23998. var COMPARE_PARTIAL_FLAG = 1,
  23999. COMPARE_UNORDERED_FLAG = 2;
  24000. /** Used as references for various `Number` constants. */
  24001. var MAX_SAFE_INTEGER = 9007199254740991;
  24002. /** `Object#toString` result references. */
  24003. var argsTag = '[object Arguments]',
  24004. arrayTag = '[object Array]',
  24005. asyncTag = '[object AsyncFunction]',
  24006. boolTag = '[object Boolean]',
  24007. dateTag = '[object Date]',
  24008. errorTag = '[object Error]',
  24009. funcTag = '[object Function]',
  24010. genTag = '[object GeneratorFunction]',
  24011. mapTag = '[object Map]',
  24012. numberTag = '[object Number]',
  24013. nullTag = '[object Null]',
  24014. objectTag = '[object Object]',
  24015. promiseTag = '[object Promise]',
  24016. proxyTag = '[object Proxy]',
  24017. regexpTag = '[object RegExp]',
  24018. setTag = '[object Set]',
  24019. stringTag = '[object String]',
  24020. symbolTag = '[object Symbol]',
  24021. undefinedTag = '[object Undefined]',
  24022. weakMapTag = '[object WeakMap]';
  24023. var arrayBufferTag = '[object ArrayBuffer]',
  24024. dataViewTag = '[object DataView]',
  24025. float32Tag = '[object Float32Array]',
  24026. float64Tag = '[object Float64Array]',
  24027. int8Tag = '[object Int8Array]',
  24028. int16Tag = '[object Int16Array]',
  24029. int32Tag = '[object Int32Array]',
  24030. uint8Tag = '[object Uint8Array]',
  24031. uint8ClampedTag = '[object Uint8ClampedArray]',
  24032. uint16Tag = '[object Uint16Array]',
  24033. uint32Tag = '[object Uint32Array]';
  24034. /**
  24035. * Used to match `RegExp`
  24036. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  24037. */
  24038. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  24039. /** Used to detect host constructors (Safari). */
  24040. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  24041. /** Used to detect unsigned integer values. */
  24042. var reIsUint = /^(?:0|[1-9]\d*)$/;
  24043. /** Used to identify `toStringTag` values of typed arrays. */
  24044. var typedArrayTags = {};
  24045. typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
  24046. typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
  24047. typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
  24048. typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
  24049. typedArrayTags[uint32Tag] = true;
  24050. typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
  24051. typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
  24052. typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
  24053. typedArrayTags[errorTag] = typedArrayTags[funcTag] =
  24054. typedArrayTags[mapTag] = typedArrayTags[numberTag] =
  24055. typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
  24056. typedArrayTags[setTag] = typedArrayTags[stringTag] =
  24057. typedArrayTags[weakMapTag] = false;
  24058. /** Detect free variable `global` from Node.js. */
  24059. var freeGlobal = typeof __webpack_require__.g == 'object' && __webpack_require__.g && __webpack_require__.g.Object === Object && __webpack_require__.g;
  24060. /** Detect free variable `self`. */
  24061. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  24062. /** Used as a reference to the global object. */
  24063. var root = freeGlobal || freeSelf || Function('return this')();
  24064. /** Detect free variable `exports`. */
  24065. var freeExports = true && exports && !exports.nodeType && exports;
  24066. /** Detect free variable `module`. */
  24067. var freeModule = freeExports && "object" == 'object' && module && !module.nodeType && module;
  24068. /** Detect the popular CommonJS extension `module.exports`. */
  24069. var moduleExports = freeModule && freeModule.exports === freeExports;
  24070. /** Detect free variable `process` from Node.js. */
  24071. var freeProcess = moduleExports && freeGlobal.process;
  24072. /** Used to access faster Node.js helpers. */
  24073. var nodeUtil = (function() {
  24074. try {
  24075. return freeProcess && freeProcess.binding && freeProcess.binding('util');
  24076. } catch (e) {}
  24077. }());
  24078. /* Node.js helper references. */
  24079. var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
  24080. /**
  24081. * A specialized version of `_.filter` for arrays without support for
  24082. * iteratee shorthands.
  24083. *
  24084. * @private
  24085. * @param {Array} [array] The array to iterate over.
  24086. * @param {Function} predicate The function invoked per iteration.
  24087. * @returns {Array} Returns the new filtered array.
  24088. */
  24089. function arrayFilter(array, predicate) {
  24090. var index = -1,
  24091. length = array == null ? 0 : array.length,
  24092. resIndex = 0,
  24093. result = [];
  24094. while (++index < length) {
  24095. var value = array[index];
  24096. if (predicate(value, index, array)) {
  24097. result[resIndex++] = value;
  24098. }
  24099. }
  24100. return result;
  24101. }
  24102. /**
  24103. * Appends the elements of `values` to `array`.
  24104. *
  24105. * @private
  24106. * @param {Array} array The array to modify.
  24107. * @param {Array} values The values to append.
  24108. * @returns {Array} Returns `array`.
  24109. */
  24110. function arrayPush(array, values) {
  24111. var index = -1,
  24112. length = values.length,
  24113. offset = array.length;
  24114. while (++index < length) {
  24115. array[offset + index] = values[index];
  24116. }
  24117. return array;
  24118. }
  24119. /**
  24120. * A specialized version of `_.some` for arrays without support for iteratee
  24121. * shorthands.
  24122. *
  24123. * @private
  24124. * @param {Array} [array] The array to iterate over.
  24125. * @param {Function} predicate The function invoked per iteration.
  24126. * @returns {boolean} Returns `true` if any element passes the predicate check,
  24127. * else `false`.
  24128. */
  24129. function arraySome(array, predicate) {
  24130. var index = -1,
  24131. length = array == null ? 0 : array.length;
  24132. while (++index < length) {
  24133. if (predicate(array[index], index, array)) {
  24134. return true;
  24135. }
  24136. }
  24137. return false;
  24138. }
  24139. /**
  24140. * The base implementation of `_.times` without support for iteratee shorthands
  24141. * or max array length checks.
  24142. *
  24143. * @private
  24144. * @param {number} n The number of times to invoke `iteratee`.
  24145. * @param {Function} iteratee The function invoked per iteration.
  24146. * @returns {Array} Returns the array of results.
  24147. */
  24148. function baseTimes(n, iteratee) {
  24149. var index = -1,
  24150. result = Array(n);
  24151. while (++index < n) {
  24152. result[index] = iteratee(index);
  24153. }
  24154. return result;
  24155. }
  24156. /**
  24157. * The base implementation of `_.unary` without support for storing metadata.
  24158. *
  24159. * @private
  24160. * @param {Function} func The function to cap arguments for.
  24161. * @returns {Function} Returns the new capped function.
  24162. */
  24163. function baseUnary(func) {
  24164. return function(value) {
  24165. return func(value);
  24166. };
  24167. }
  24168. /**
  24169. * Checks if a `cache` value for `key` exists.
  24170. *
  24171. * @private
  24172. * @param {Object} cache The cache to query.
  24173. * @param {string} key The key of the entry to check.
  24174. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  24175. */
  24176. function cacheHas(cache, key) {
  24177. return cache.has(key);
  24178. }
  24179. /**
  24180. * Gets the value at `key` of `object`.
  24181. *
  24182. * @private
  24183. * @param {Object} [object] The object to query.
  24184. * @param {string} key The key of the property to get.
  24185. * @returns {*} Returns the property value.
  24186. */
  24187. function getValue(object, key) {
  24188. return object == null ? undefined : object[key];
  24189. }
  24190. /**
  24191. * Converts `map` to its key-value pairs.
  24192. *
  24193. * @private
  24194. * @param {Object} map The map to convert.
  24195. * @returns {Array} Returns the key-value pairs.
  24196. */
  24197. function mapToArray(map) {
  24198. var index = -1,
  24199. result = Array(map.size);
  24200. map.forEach(function(value, key) {
  24201. result[++index] = [key, value];
  24202. });
  24203. return result;
  24204. }
  24205. /**
  24206. * Creates a unary function that invokes `func` with its argument transformed.
  24207. *
  24208. * @private
  24209. * @param {Function} func The function to wrap.
  24210. * @param {Function} transform The argument transform.
  24211. * @returns {Function} Returns the new function.
  24212. */
  24213. function overArg(func, transform) {
  24214. return function(arg) {
  24215. return func(transform(arg));
  24216. };
  24217. }
  24218. /**
  24219. * Converts `set` to an array of its values.
  24220. *
  24221. * @private
  24222. * @param {Object} set The set to convert.
  24223. * @returns {Array} Returns the values.
  24224. */
  24225. function setToArray(set) {
  24226. var index = -1,
  24227. result = Array(set.size);
  24228. set.forEach(function(value) {
  24229. result[++index] = value;
  24230. });
  24231. return result;
  24232. }
  24233. /** Used for built-in method references. */
  24234. var arrayProto = Array.prototype,
  24235. funcProto = Function.prototype,
  24236. objectProto = Object.prototype;
  24237. /** Used to detect overreaching core-js shims. */
  24238. var coreJsData = root['__core-js_shared__'];
  24239. /** Used to resolve the decompiled source of functions. */
  24240. var funcToString = funcProto.toString;
  24241. /** Used to check objects for own properties. */
  24242. var hasOwnProperty = objectProto.hasOwnProperty;
  24243. /** Used to detect methods masquerading as native. */
  24244. var maskSrcKey = (function() {
  24245. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  24246. return uid ? ('Symbol(src)_1.' + uid) : '';
  24247. }());
  24248. /**
  24249. * Used to resolve the
  24250. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  24251. * of values.
  24252. */
  24253. var nativeObjectToString = objectProto.toString;
  24254. /** Used to detect if a method is native. */
  24255. var reIsNative = RegExp('^' +
  24256. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  24257. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  24258. );
  24259. /** Built-in value references. */
  24260. var Buffer = moduleExports ? root.Buffer : undefined,
  24261. Symbol = root.Symbol,
  24262. Uint8Array = root.Uint8Array,
  24263. propertyIsEnumerable = objectProto.propertyIsEnumerable,
  24264. splice = arrayProto.splice,
  24265. symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  24266. /* Built-in method references for those with the same name as other `lodash` methods. */
  24267. var nativeGetSymbols = Object.getOwnPropertySymbols,
  24268. nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
  24269. nativeKeys = overArg(Object.keys, Object);
  24270. /* Built-in method references that are verified to be native. */
  24271. var DataView = getNative(root, 'DataView'),
  24272. Map = getNative(root, 'Map'),
  24273. Promise = getNative(root, 'Promise'),
  24274. Set = getNative(root, 'Set'),
  24275. WeakMap = getNative(root, 'WeakMap'),
  24276. nativeCreate = getNative(Object, 'create');
  24277. /** Used to detect maps, sets, and weakmaps. */
  24278. var dataViewCtorString = toSource(DataView),
  24279. mapCtorString = toSource(Map),
  24280. promiseCtorString = toSource(Promise),
  24281. setCtorString = toSource(Set),
  24282. weakMapCtorString = toSource(WeakMap);
  24283. /** Used to convert symbols to primitives and strings. */
  24284. var symbolProto = Symbol ? Symbol.prototype : undefined,
  24285. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  24286. /**
  24287. * Creates a hash object.
  24288. *
  24289. * @private
  24290. * @constructor
  24291. * @param {Array} [entries] The key-value pairs to cache.
  24292. */
  24293. function Hash(entries) {
  24294. var index = -1,
  24295. length = entries == null ? 0 : entries.length;
  24296. this.clear();
  24297. while (++index < length) {
  24298. var entry = entries[index];
  24299. this.set(entry[0], entry[1]);
  24300. }
  24301. }
  24302. /**
  24303. * Removes all key-value entries from the hash.
  24304. *
  24305. * @private
  24306. * @name clear
  24307. * @memberOf Hash
  24308. */
  24309. function hashClear() {
  24310. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  24311. this.size = 0;
  24312. }
  24313. /**
  24314. * Removes `key` and its value from the hash.
  24315. *
  24316. * @private
  24317. * @name delete
  24318. * @memberOf Hash
  24319. * @param {Object} hash The hash to modify.
  24320. * @param {string} key The key of the value to remove.
  24321. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  24322. */
  24323. function hashDelete(key) {
  24324. var result = this.has(key) && delete this.__data__[key];
  24325. this.size -= result ? 1 : 0;
  24326. return result;
  24327. }
  24328. /**
  24329. * Gets the hash value for `key`.
  24330. *
  24331. * @private
  24332. * @name get
  24333. * @memberOf Hash
  24334. * @param {string} key The key of the value to get.
  24335. * @returns {*} Returns the entry value.
  24336. */
  24337. function hashGet(key) {
  24338. var data = this.__data__;
  24339. if (nativeCreate) {
  24340. var result = data[key];
  24341. return result === HASH_UNDEFINED ? undefined : result;
  24342. }
  24343. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  24344. }
  24345. /**
  24346. * Checks if a hash value for `key` exists.
  24347. *
  24348. * @private
  24349. * @name has
  24350. * @memberOf Hash
  24351. * @param {string} key The key of the entry to check.
  24352. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  24353. */
  24354. function hashHas(key) {
  24355. var data = this.__data__;
  24356. return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
  24357. }
  24358. /**
  24359. * Sets the hash `key` to `value`.
  24360. *
  24361. * @private
  24362. * @name set
  24363. * @memberOf Hash
  24364. * @param {string} key The key of the value to set.
  24365. * @param {*} value The value to set.
  24366. * @returns {Object} Returns the hash instance.
  24367. */
  24368. function hashSet(key, value) {
  24369. var data = this.__data__;
  24370. this.size += this.has(key) ? 0 : 1;
  24371. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  24372. return this;
  24373. }
  24374. // Add methods to `Hash`.
  24375. Hash.prototype.clear = hashClear;
  24376. Hash.prototype['delete'] = hashDelete;
  24377. Hash.prototype.get = hashGet;
  24378. Hash.prototype.has = hashHas;
  24379. Hash.prototype.set = hashSet;
  24380. /**
  24381. * Creates an list cache object.
  24382. *
  24383. * @private
  24384. * @constructor
  24385. * @param {Array} [entries] The key-value pairs to cache.
  24386. */
  24387. function ListCache(entries) {
  24388. var index = -1,
  24389. length = entries == null ? 0 : entries.length;
  24390. this.clear();
  24391. while (++index < length) {
  24392. var entry = entries[index];
  24393. this.set(entry[0], entry[1]);
  24394. }
  24395. }
  24396. /**
  24397. * Removes all key-value entries from the list cache.
  24398. *
  24399. * @private
  24400. * @name clear
  24401. * @memberOf ListCache
  24402. */
  24403. function listCacheClear() {
  24404. this.__data__ = [];
  24405. this.size = 0;
  24406. }
  24407. /**
  24408. * Removes `key` and its value from the list cache.
  24409. *
  24410. * @private
  24411. * @name delete
  24412. * @memberOf ListCache
  24413. * @param {string} key The key of the value to remove.
  24414. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  24415. */
  24416. function listCacheDelete(key) {
  24417. var data = this.__data__,
  24418. index = assocIndexOf(data, key);
  24419. if (index < 0) {
  24420. return false;
  24421. }
  24422. var lastIndex = data.length - 1;
  24423. if (index == lastIndex) {
  24424. data.pop();
  24425. } else {
  24426. splice.call(data, index, 1);
  24427. }
  24428. --this.size;
  24429. return true;
  24430. }
  24431. /**
  24432. * Gets the list cache value for `key`.
  24433. *
  24434. * @private
  24435. * @name get
  24436. * @memberOf ListCache
  24437. * @param {string} key The key of the value to get.
  24438. * @returns {*} Returns the entry value.
  24439. */
  24440. function listCacheGet(key) {
  24441. var data = this.__data__,
  24442. index = assocIndexOf(data, key);
  24443. return index < 0 ? undefined : data[index][1];
  24444. }
  24445. /**
  24446. * Checks if a list cache value for `key` exists.
  24447. *
  24448. * @private
  24449. * @name has
  24450. * @memberOf ListCache
  24451. * @param {string} key The key of the entry to check.
  24452. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  24453. */
  24454. function listCacheHas(key) {
  24455. return assocIndexOf(this.__data__, key) > -1;
  24456. }
  24457. /**
  24458. * Sets the list cache `key` to `value`.
  24459. *
  24460. * @private
  24461. * @name set
  24462. * @memberOf ListCache
  24463. * @param {string} key The key of the value to set.
  24464. * @param {*} value The value to set.
  24465. * @returns {Object} Returns the list cache instance.
  24466. */
  24467. function listCacheSet(key, value) {
  24468. var data = this.__data__,
  24469. index = assocIndexOf(data, key);
  24470. if (index < 0) {
  24471. ++this.size;
  24472. data.push([key, value]);
  24473. } else {
  24474. data[index][1] = value;
  24475. }
  24476. return this;
  24477. }
  24478. // Add methods to `ListCache`.
  24479. ListCache.prototype.clear = listCacheClear;
  24480. ListCache.prototype['delete'] = listCacheDelete;
  24481. ListCache.prototype.get = listCacheGet;
  24482. ListCache.prototype.has = listCacheHas;
  24483. ListCache.prototype.set = listCacheSet;
  24484. /**
  24485. * Creates a map cache object to store key-value pairs.
  24486. *
  24487. * @private
  24488. * @constructor
  24489. * @param {Array} [entries] The key-value pairs to cache.
  24490. */
  24491. function MapCache(entries) {
  24492. var index = -1,
  24493. length = entries == null ? 0 : entries.length;
  24494. this.clear();
  24495. while (++index < length) {
  24496. var entry = entries[index];
  24497. this.set(entry[0], entry[1]);
  24498. }
  24499. }
  24500. /**
  24501. * Removes all key-value entries from the map.
  24502. *
  24503. * @private
  24504. * @name clear
  24505. * @memberOf MapCache
  24506. */
  24507. function mapCacheClear() {
  24508. this.size = 0;
  24509. this.__data__ = {
  24510. 'hash': new Hash,
  24511. 'map': new (Map || ListCache),
  24512. 'string': new Hash
  24513. };
  24514. }
  24515. /**
  24516. * Removes `key` and its value from the map.
  24517. *
  24518. * @private
  24519. * @name delete
  24520. * @memberOf MapCache
  24521. * @param {string} key The key of the value to remove.
  24522. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  24523. */
  24524. function mapCacheDelete(key) {
  24525. var result = getMapData(this, key)['delete'](key);
  24526. this.size -= result ? 1 : 0;
  24527. return result;
  24528. }
  24529. /**
  24530. * Gets the map value for `key`.
  24531. *
  24532. * @private
  24533. * @name get
  24534. * @memberOf MapCache
  24535. * @param {string} key The key of the value to get.
  24536. * @returns {*} Returns the entry value.
  24537. */
  24538. function mapCacheGet(key) {
  24539. return getMapData(this, key).get(key);
  24540. }
  24541. /**
  24542. * Checks if a map value for `key` exists.
  24543. *
  24544. * @private
  24545. * @name has
  24546. * @memberOf MapCache
  24547. * @param {string} key The key of the entry to check.
  24548. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  24549. */
  24550. function mapCacheHas(key) {
  24551. return getMapData(this, key).has(key);
  24552. }
  24553. /**
  24554. * Sets the map `key` to `value`.
  24555. *
  24556. * @private
  24557. * @name set
  24558. * @memberOf MapCache
  24559. * @param {string} key The key of the value to set.
  24560. * @param {*} value The value to set.
  24561. * @returns {Object} Returns the map cache instance.
  24562. */
  24563. function mapCacheSet(key, value) {
  24564. var data = getMapData(this, key),
  24565. size = data.size;
  24566. data.set(key, value);
  24567. this.size += data.size == size ? 0 : 1;
  24568. return this;
  24569. }
  24570. // Add methods to `MapCache`.
  24571. MapCache.prototype.clear = mapCacheClear;
  24572. MapCache.prototype['delete'] = mapCacheDelete;
  24573. MapCache.prototype.get = mapCacheGet;
  24574. MapCache.prototype.has = mapCacheHas;
  24575. MapCache.prototype.set = mapCacheSet;
  24576. /**
  24577. *
  24578. * Creates an array cache object to store unique values.
  24579. *
  24580. * @private
  24581. * @constructor
  24582. * @param {Array} [values] The values to cache.
  24583. */
  24584. function SetCache(values) {
  24585. var index = -1,
  24586. length = values == null ? 0 : values.length;
  24587. this.__data__ = new MapCache;
  24588. while (++index < length) {
  24589. this.add(values[index]);
  24590. }
  24591. }
  24592. /**
  24593. * Adds `value` to the array cache.
  24594. *
  24595. * @private
  24596. * @name add
  24597. * @memberOf SetCache
  24598. * @alias push
  24599. * @param {*} value The value to cache.
  24600. * @returns {Object} Returns the cache instance.
  24601. */
  24602. function setCacheAdd(value) {
  24603. this.__data__.set(value, HASH_UNDEFINED);
  24604. return this;
  24605. }
  24606. /**
  24607. * Checks if `value` is in the array cache.
  24608. *
  24609. * @private
  24610. * @name has
  24611. * @memberOf SetCache
  24612. * @param {*} value The value to search for.
  24613. * @returns {number} Returns `true` if `value` is found, else `false`.
  24614. */
  24615. function setCacheHas(value) {
  24616. return this.__data__.has(value);
  24617. }
  24618. // Add methods to `SetCache`.
  24619. SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
  24620. SetCache.prototype.has = setCacheHas;
  24621. /**
  24622. * Creates a stack cache object to store key-value pairs.
  24623. *
  24624. * @private
  24625. * @constructor
  24626. * @param {Array} [entries] The key-value pairs to cache.
  24627. */
  24628. function Stack(entries) {
  24629. var data = this.__data__ = new ListCache(entries);
  24630. this.size = data.size;
  24631. }
  24632. /**
  24633. * Removes all key-value entries from the stack.
  24634. *
  24635. * @private
  24636. * @name clear
  24637. * @memberOf Stack
  24638. */
  24639. function stackClear() {
  24640. this.__data__ = new ListCache;
  24641. this.size = 0;
  24642. }
  24643. /**
  24644. * Removes `key` and its value from the stack.
  24645. *
  24646. * @private
  24647. * @name delete
  24648. * @memberOf Stack
  24649. * @param {string} key The key of the value to remove.
  24650. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  24651. */
  24652. function stackDelete(key) {
  24653. var data = this.__data__,
  24654. result = data['delete'](key);
  24655. this.size = data.size;
  24656. return result;
  24657. }
  24658. /**
  24659. * Gets the stack value for `key`.
  24660. *
  24661. * @private
  24662. * @name get
  24663. * @memberOf Stack
  24664. * @param {string} key The key of the value to get.
  24665. * @returns {*} Returns the entry value.
  24666. */
  24667. function stackGet(key) {
  24668. return this.__data__.get(key);
  24669. }
  24670. /**
  24671. * Checks if a stack value for `key` exists.
  24672. *
  24673. * @private
  24674. * @name has
  24675. * @memberOf Stack
  24676. * @param {string} key The key of the entry to check.
  24677. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  24678. */
  24679. function stackHas(key) {
  24680. return this.__data__.has(key);
  24681. }
  24682. /**
  24683. * Sets the stack `key` to `value`.
  24684. *
  24685. * @private
  24686. * @name set
  24687. * @memberOf Stack
  24688. * @param {string} key The key of the value to set.
  24689. * @param {*} value The value to set.
  24690. * @returns {Object} Returns the stack cache instance.
  24691. */
  24692. function stackSet(key, value) {
  24693. var data = this.__data__;
  24694. if (data instanceof ListCache) {
  24695. var pairs = data.__data__;
  24696. if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
  24697. pairs.push([key, value]);
  24698. this.size = ++data.size;
  24699. return this;
  24700. }
  24701. data = this.__data__ = new MapCache(pairs);
  24702. }
  24703. data.set(key, value);
  24704. this.size = data.size;
  24705. return this;
  24706. }
  24707. // Add methods to `Stack`.
  24708. Stack.prototype.clear = stackClear;
  24709. Stack.prototype['delete'] = stackDelete;
  24710. Stack.prototype.get = stackGet;
  24711. Stack.prototype.has = stackHas;
  24712. Stack.prototype.set = stackSet;
  24713. /**
  24714. * Creates an array of the enumerable property names of the array-like `value`.
  24715. *
  24716. * @private
  24717. * @param {*} value The value to query.
  24718. * @param {boolean} inherited Specify returning inherited property names.
  24719. * @returns {Array} Returns the array of property names.
  24720. */
  24721. function arrayLikeKeys(value, inherited) {
  24722. var isArr = isArray(value),
  24723. isArg = !isArr && isArguments(value),
  24724. isBuff = !isArr && !isArg && isBuffer(value),
  24725. isType = !isArr && !isArg && !isBuff && isTypedArray(value),
  24726. skipIndexes = isArr || isArg || isBuff || isType,
  24727. result = skipIndexes ? baseTimes(value.length, String) : [],
  24728. length = result.length;
  24729. for (var key in value) {
  24730. if ((inherited || hasOwnProperty.call(value, key)) &&
  24731. !(skipIndexes && (
  24732. // Safari 9 has enumerable `arguments.length` in strict mode.
  24733. key == 'length' ||
  24734. // Node.js 0.10 has enumerable non-index properties on buffers.
  24735. (isBuff && (key == 'offset' || key == 'parent')) ||
  24736. // PhantomJS 2 has enumerable non-index properties on typed arrays.
  24737. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
  24738. // Skip index properties.
  24739. isIndex(key, length)
  24740. ))) {
  24741. result.push(key);
  24742. }
  24743. }
  24744. return result;
  24745. }
  24746. /**
  24747. * Gets the index at which the `key` is found in `array` of key-value pairs.
  24748. *
  24749. * @private
  24750. * @param {Array} array The array to inspect.
  24751. * @param {*} key The key to search for.
  24752. * @returns {number} Returns the index of the matched value, else `-1`.
  24753. */
  24754. function assocIndexOf(array, key) {
  24755. var length = array.length;
  24756. while (length--) {
  24757. if (eq(array[length][0], key)) {
  24758. return length;
  24759. }
  24760. }
  24761. return -1;
  24762. }
  24763. /**
  24764. * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
  24765. * `keysFunc` and `symbolsFunc` to get the enumerable property names and
  24766. * symbols of `object`.
  24767. *
  24768. * @private
  24769. * @param {Object} object The object to query.
  24770. * @param {Function} keysFunc The function to get the keys of `object`.
  24771. * @param {Function} symbolsFunc The function to get the symbols of `object`.
  24772. * @returns {Array} Returns the array of property names and symbols.
  24773. */
  24774. function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  24775. var result = keysFunc(object);
  24776. return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
  24777. }
  24778. /**
  24779. * The base implementation of `getTag` without fallbacks for buggy environments.
  24780. *
  24781. * @private
  24782. * @param {*} value The value to query.
  24783. * @returns {string} Returns the `toStringTag`.
  24784. */
  24785. function baseGetTag(value) {
  24786. if (value == null) {
  24787. return value === undefined ? undefinedTag : nullTag;
  24788. }
  24789. return (symToStringTag && symToStringTag in Object(value))
  24790. ? getRawTag(value)
  24791. : objectToString(value);
  24792. }
  24793. /**
  24794. * The base implementation of `_.isArguments`.
  24795. *
  24796. * @private
  24797. * @param {*} value The value to check.
  24798. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  24799. */
  24800. function baseIsArguments(value) {
  24801. return isObjectLike(value) && baseGetTag(value) == argsTag;
  24802. }
  24803. /**
  24804. * The base implementation of `_.isEqual` which supports partial comparisons
  24805. * and tracks traversed objects.
  24806. *
  24807. * @private
  24808. * @param {*} value The value to compare.
  24809. * @param {*} other The other value to compare.
  24810. * @param {boolean} bitmask The bitmask flags.
  24811. * 1 - Unordered comparison
  24812. * 2 - Partial comparison
  24813. * @param {Function} [customizer] The function to customize comparisons.
  24814. * @param {Object} [stack] Tracks traversed `value` and `other` objects.
  24815. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  24816. */
  24817. function baseIsEqual(value, other, bitmask, customizer, stack) {
  24818. if (value === other) {
  24819. return true;
  24820. }
  24821. if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
  24822. return value !== value && other !== other;
  24823. }
  24824. return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
  24825. }
  24826. /**
  24827. * A specialized version of `baseIsEqual` for arrays and objects which performs
  24828. * deep comparisons and tracks traversed objects enabling objects with circular
  24829. * references to be compared.
  24830. *
  24831. * @private
  24832. * @param {Object} object The object to compare.
  24833. * @param {Object} other The other object to compare.
  24834. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  24835. * @param {Function} customizer The function to customize comparisons.
  24836. * @param {Function} equalFunc The function to determine equivalents of values.
  24837. * @param {Object} [stack] Tracks traversed `object` and `other` objects.
  24838. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  24839. */
  24840. function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
  24841. var objIsArr = isArray(object),
  24842. othIsArr = isArray(other),
  24843. objTag = objIsArr ? arrayTag : getTag(object),
  24844. othTag = othIsArr ? arrayTag : getTag(other);
  24845. objTag = objTag == argsTag ? objectTag : objTag;
  24846. othTag = othTag == argsTag ? objectTag : othTag;
  24847. var objIsObj = objTag == objectTag,
  24848. othIsObj = othTag == objectTag,
  24849. isSameTag = objTag == othTag;
  24850. if (isSameTag && isBuffer(object)) {
  24851. if (!isBuffer(other)) {
  24852. return false;
  24853. }
  24854. objIsArr = true;
  24855. objIsObj = false;
  24856. }
  24857. if (isSameTag && !objIsObj) {
  24858. stack || (stack = new Stack);
  24859. return (objIsArr || isTypedArray(object))
  24860. ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
  24861. : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
  24862. }
  24863. if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
  24864. var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
  24865. othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
  24866. if (objIsWrapped || othIsWrapped) {
  24867. var objUnwrapped = objIsWrapped ? object.value() : object,
  24868. othUnwrapped = othIsWrapped ? other.value() : other;
  24869. stack || (stack = new Stack);
  24870. return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
  24871. }
  24872. }
  24873. if (!isSameTag) {
  24874. return false;
  24875. }
  24876. stack || (stack = new Stack);
  24877. return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
  24878. }
  24879. /**
  24880. * The base implementation of `_.isNative` without bad shim checks.
  24881. *
  24882. * @private
  24883. * @param {*} value The value to check.
  24884. * @returns {boolean} Returns `true` if `value` is a native function,
  24885. * else `false`.
  24886. */
  24887. function baseIsNative(value) {
  24888. if (!isObject(value) || isMasked(value)) {
  24889. return false;
  24890. }
  24891. var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
  24892. return pattern.test(toSource(value));
  24893. }
  24894. /**
  24895. * The base implementation of `_.isTypedArray` without Node.js optimizations.
  24896. *
  24897. * @private
  24898. * @param {*} value The value to check.
  24899. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  24900. */
  24901. function baseIsTypedArray(value) {
  24902. return isObjectLike(value) &&
  24903. isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
  24904. }
  24905. /**
  24906. * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
  24907. *
  24908. * @private
  24909. * @param {Object} object The object to query.
  24910. * @returns {Array} Returns the array of property names.
  24911. */
  24912. function baseKeys(object) {
  24913. if (!isPrototype(object)) {
  24914. return nativeKeys(object);
  24915. }
  24916. var result = [];
  24917. for (var key in Object(object)) {
  24918. if (hasOwnProperty.call(object, key) && key != 'constructor') {
  24919. result.push(key);
  24920. }
  24921. }
  24922. return result;
  24923. }
  24924. /**
  24925. * A specialized version of `baseIsEqualDeep` for arrays with support for
  24926. * partial deep comparisons.
  24927. *
  24928. * @private
  24929. * @param {Array} array The array to compare.
  24930. * @param {Array} other The other array to compare.
  24931. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  24932. * @param {Function} customizer The function to customize comparisons.
  24933. * @param {Function} equalFunc The function to determine equivalents of values.
  24934. * @param {Object} stack Tracks traversed `array` and `other` objects.
  24935. * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
  24936. */
  24937. function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
  24938. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  24939. arrLength = array.length,
  24940. othLength = other.length;
  24941. if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
  24942. return false;
  24943. }
  24944. // Assume cyclic values are equal.
  24945. var stacked = stack.get(array);
  24946. if (stacked && stack.get(other)) {
  24947. return stacked == other;
  24948. }
  24949. var index = -1,
  24950. result = true,
  24951. seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
  24952. stack.set(array, other);
  24953. stack.set(other, array);
  24954. // Ignore non-index properties.
  24955. while (++index < arrLength) {
  24956. var arrValue = array[index],
  24957. othValue = other[index];
  24958. if (customizer) {
  24959. var compared = isPartial
  24960. ? customizer(othValue, arrValue, index, other, array, stack)
  24961. : customizer(arrValue, othValue, index, array, other, stack);
  24962. }
  24963. if (compared !== undefined) {
  24964. if (compared) {
  24965. continue;
  24966. }
  24967. result = false;
  24968. break;
  24969. }
  24970. // Recursively compare arrays (susceptible to call stack limits).
  24971. if (seen) {
  24972. if (!arraySome(other, function(othValue, othIndex) {
  24973. if (!cacheHas(seen, othIndex) &&
  24974. (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
  24975. return seen.push(othIndex);
  24976. }
  24977. })) {
  24978. result = false;
  24979. break;
  24980. }
  24981. } else if (!(
  24982. arrValue === othValue ||
  24983. equalFunc(arrValue, othValue, bitmask, customizer, stack)
  24984. )) {
  24985. result = false;
  24986. break;
  24987. }
  24988. }
  24989. stack['delete'](array);
  24990. stack['delete'](other);
  24991. return result;
  24992. }
  24993. /**
  24994. * A specialized version of `baseIsEqualDeep` for comparing objects of
  24995. * the same `toStringTag`.
  24996. *
  24997. * **Note:** This function only supports comparing values with tags of
  24998. * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
  24999. *
  25000. * @private
  25001. * @param {Object} object The object to compare.
  25002. * @param {Object} other The other object to compare.
  25003. * @param {string} tag The `toStringTag` of the objects to compare.
  25004. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  25005. * @param {Function} customizer The function to customize comparisons.
  25006. * @param {Function} equalFunc The function to determine equivalents of values.
  25007. * @param {Object} stack Tracks traversed `object` and `other` objects.
  25008. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  25009. */
  25010. function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
  25011. switch (tag) {
  25012. case dataViewTag:
  25013. if ((object.byteLength != other.byteLength) ||
  25014. (object.byteOffset != other.byteOffset)) {
  25015. return false;
  25016. }
  25017. object = object.buffer;
  25018. other = other.buffer;
  25019. case arrayBufferTag:
  25020. if ((object.byteLength != other.byteLength) ||
  25021. !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
  25022. return false;
  25023. }
  25024. return true;
  25025. case boolTag:
  25026. case dateTag:
  25027. case numberTag:
  25028. // Coerce booleans to `1` or `0` and dates to milliseconds.
  25029. // Invalid dates are coerced to `NaN`.
  25030. return eq(+object, +other);
  25031. case errorTag:
  25032. return object.name == other.name && object.message == other.message;
  25033. case regexpTag:
  25034. case stringTag:
  25035. // Coerce regexes to strings and treat strings, primitives and objects,
  25036. // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
  25037. // for more details.
  25038. return object == (other + '');
  25039. case mapTag:
  25040. var convert = mapToArray;
  25041. case setTag:
  25042. var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
  25043. convert || (convert = setToArray);
  25044. if (object.size != other.size && !isPartial) {
  25045. return false;
  25046. }
  25047. // Assume cyclic values are equal.
  25048. var stacked = stack.get(object);
  25049. if (stacked) {
  25050. return stacked == other;
  25051. }
  25052. bitmask |= COMPARE_UNORDERED_FLAG;
  25053. // Recursively compare objects (susceptible to call stack limits).
  25054. stack.set(object, other);
  25055. var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
  25056. stack['delete'](object);
  25057. return result;
  25058. case symbolTag:
  25059. if (symbolValueOf) {
  25060. return symbolValueOf.call(object) == symbolValueOf.call(other);
  25061. }
  25062. }
  25063. return false;
  25064. }
  25065. /**
  25066. * A specialized version of `baseIsEqualDeep` for objects with support for
  25067. * partial deep comparisons.
  25068. *
  25069. * @private
  25070. * @param {Object} object The object to compare.
  25071. * @param {Object} other The other object to compare.
  25072. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  25073. * @param {Function} customizer The function to customize comparisons.
  25074. * @param {Function} equalFunc The function to determine equivalents of values.
  25075. * @param {Object} stack Tracks traversed `object` and `other` objects.
  25076. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  25077. */
  25078. function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
  25079. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  25080. objProps = getAllKeys(object),
  25081. objLength = objProps.length,
  25082. othProps = getAllKeys(other),
  25083. othLength = othProps.length;
  25084. if (objLength != othLength && !isPartial) {
  25085. return false;
  25086. }
  25087. var index = objLength;
  25088. while (index--) {
  25089. var key = objProps[index];
  25090. if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
  25091. return false;
  25092. }
  25093. }
  25094. // Assume cyclic values are equal.
  25095. var stacked = stack.get(object);
  25096. if (stacked && stack.get(other)) {
  25097. return stacked == other;
  25098. }
  25099. var result = true;
  25100. stack.set(object, other);
  25101. stack.set(other, object);
  25102. var skipCtor = isPartial;
  25103. while (++index < objLength) {
  25104. key = objProps[index];
  25105. var objValue = object[key],
  25106. othValue = other[key];
  25107. if (customizer) {
  25108. var compared = isPartial
  25109. ? customizer(othValue, objValue, key, other, object, stack)
  25110. : customizer(objValue, othValue, key, object, other, stack);
  25111. }
  25112. // Recursively compare objects (susceptible to call stack limits).
  25113. if (!(compared === undefined
  25114. ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
  25115. : compared
  25116. )) {
  25117. result = false;
  25118. break;
  25119. }
  25120. skipCtor || (skipCtor = key == 'constructor');
  25121. }
  25122. if (result && !skipCtor) {
  25123. var objCtor = object.constructor,
  25124. othCtor = other.constructor;
  25125. // Non `Object` object instances with different constructors are not equal.
  25126. if (objCtor != othCtor &&
  25127. ('constructor' in object && 'constructor' in other) &&
  25128. !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
  25129. typeof othCtor == 'function' && othCtor instanceof othCtor)) {
  25130. result = false;
  25131. }
  25132. }
  25133. stack['delete'](object);
  25134. stack['delete'](other);
  25135. return result;
  25136. }
  25137. /**
  25138. * Creates an array of own enumerable property names and symbols of `object`.
  25139. *
  25140. * @private
  25141. * @param {Object} object The object to query.
  25142. * @returns {Array} Returns the array of property names and symbols.
  25143. */
  25144. function getAllKeys(object) {
  25145. return baseGetAllKeys(object, keys, getSymbols);
  25146. }
  25147. /**
  25148. * Gets the data for `map`.
  25149. *
  25150. * @private
  25151. * @param {Object} map The map to query.
  25152. * @param {string} key The reference key.
  25153. * @returns {*} Returns the map data.
  25154. */
  25155. function getMapData(map, key) {
  25156. var data = map.__data__;
  25157. return isKeyable(key)
  25158. ? data[typeof key == 'string' ? 'string' : 'hash']
  25159. : data.map;
  25160. }
  25161. /**
  25162. * Gets the native function at `key` of `object`.
  25163. *
  25164. * @private
  25165. * @param {Object} object The object to query.
  25166. * @param {string} key The key of the method to get.
  25167. * @returns {*} Returns the function if it's native, else `undefined`.
  25168. */
  25169. function getNative(object, key) {
  25170. var value = getValue(object, key);
  25171. return baseIsNative(value) ? value : undefined;
  25172. }
  25173. /**
  25174. * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
  25175. *
  25176. * @private
  25177. * @param {*} value The value to query.
  25178. * @returns {string} Returns the raw `toStringTag`.
  25179. */
  25180. function getRawTag(value) {
  25181. var isOwn = hasOwnProperty.call(value, symToStringTag),
  25182. tag = value[symToStringTag];
  25183. try {
  25184. value[symToStringTag] = undefined;
  25185. var unmasked = true;
  25186. } catch (e) {}
  25187. var result = nativeObjectToString.call(value);
  25188. if (unmasked) {
  25189. if (isOwn) {
  25190. value[symToStringTag] = tag;
  25191. } else {
  25192. delete value[symToStringTag];
  25193. }
  25194. }
  25195. return result;
  25196. }
  25197. /**
  25198. * Creates an array of the own enumerable symbols of `object`.
  25199. *
  25200. * @private
  25201. * @param {Object} object The object to query.
  25202. * @returns {Array} Returns the array of symbols.
  25203. */
  25204. var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
  25205. if (object == null) {
  25206. return [];
  25207. }
  25208. object = Object(object);
  25209. return arrayFilter(nativeGetSymbols(object), function(symbol) {
  25210. return propertyIsEnumerable.call(object, symbol);
  25211. });
  25212. };
  25213. /**
  25214. * Gets the `toStringTag` of `value`.
  25215. *
  25216. * @private
  25217. * @param {*} value The value to query.
  25218. * @returns {string} Returns the `toStringTag`.
  25219. */
  25220. var getTag = baseGetTag;
  25221. // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
  25222. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
  25223. (Map && getTag(new Map) != mapTag) ||
  25224. (Promise && getTag(Promise.resolve()) != promiseTag) ||
  25225. (Set && getTag(new Set) != setTag) ||
  25226. (WeakMap && getTag(new WeakMap) != weakMapTag)) {
  25227. getTag = function(value) {
  25228. var result = baseGetTag(value),
  25229. Ctor = result == objectTag ? value.constructor : undefined,
  25230. ctorString = Ctor ? toSource(Ctor) : '';
  25231. if (ctorString) {
  25232. switch (ctorString) {
  25233. case dataViewCtorString: return dataViewTag;
  25234. case mapCtorString: return mapTag;
  25235. case promiseCtorString: return promiseTag;
  25236. case setCtorString: return setTag;
  25237. case weakMapCtorString: return weakMapTag;
  25238. }
  25239. }
  25240. return result;
  25241. };
  25242. }
  25243. /**
  25244. * Checks if `value` is a valid array-like index.
  25245. *
  25246. * @private
  25247. * @param {*} value The value to check.
  25248. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  25249. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  25250. */
  25251. function isIndex(value, length) {
  25252. length = length == null ? MAX_SAFE_INTEGER : length;
  25253. return !!length &&
  25254. (typeof value == 'number' || reIsUint.test(value)) &&
  25255. (value > -1 && value % 1 == 0 && value < length);
  25256. }
  25257. /**
  25258. * Checks if `value` is suitable for use as unique object key.
  25259. *
  25260. * @private
  25261. * @param {*} value The value to check.
  25262. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  25263. */
  25264. function isKeyable(value) {
  25265. var type = typeof value;
  25266. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  25267. ? (value !== '__proto__')
  25268. : (value === null);
  25269. }
  25270. /**
  25271. * Checks if `func` has its source masked.
  25272. *
  25273. * @private
  25274. * @param {Function} func The function to check.
  25275. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  25276. */
  25277. function isMasked(func) {
  25278. return !!maskSrcKey && (maskSrcKey in func);
  25279. }
  25280. /**
  25281. * Checks if `value` is likely a prototype object.
  25282. *
  25283. * @private
  25284. * @param {*} value The value to check.
  25285. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
  25286. */
  25287. function isPrototype(value) {
  25288. var Ctor = value && value.constructor,
  25289. proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
  25290. return value === proto;
  25291. }
  25292. /**
  25293. * Converts `value` to a string using `Object.prototype.toString`.
  25294. *
  25295. * @private
  25296. * @param {*} value The value to convert.
  25297. * @returns {string} Returns the converted string.
  25298. */
  25299. function objectToString(value) {
  25300. return nativeObjectToString.call(value);
  25301. }
  25302. /**
  25303. * Converts `func` to its source code.
  25304. *
  25305. * @private
  25306. * @param {Function} func The function to convert.
  25307. * @returns {string} Returns the source code.
  25308. */
  25309. function toSource(func) {
  25310. if (func != null) {
  25311. try {
  25312. return funcToString.call(func);
  25313. } catch (e) {}
  25314. try {
  25315. return (func + '');
  25316. } catch (e) {}
  25317. }
  25318. return '';
  25319. }
  25320. /**
  25321. * Performs a
  25322. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  25323. * comparison between two values to determine if they are equivalent.
  25324. *
  25325. * @static
  25326. * @memberOf _
  25327. * @since 4.0.0
  25328. * @category Lang
  25329. * @param {*} value The value to compare.
  25330. * @param {*} other The other value to compare.
  25331. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  25332. * @example
  25333. *
  25334. * var object = { 'a': 1 };
  25335. * var other = { 'a': 1 };
  25336. *
  25337. * _.eq(object, object);
  25338. * // => true
  25339. *
  25340. * _.eq(object, other);
  25341. * // => false
  25342. *
  25343. * _.eq('a', 'a');
  25344. * // => true
  25345. *
  25346. * _.eq('a', Object('a'));
  25347. * // => false
  25348. *
  25349. * _.eq(NaN, NaN);
  25350. * // => true
  25351. */
  25352. function eq(value, other) {
  25353. return value === other || (value !== value && other !== other);
  25354. }
  25355. /**
  25356. * Checks if `value` is likely an `arguments` object.
  25357. *
  25358. * @static
  25359. * @memberOf _
  25360. * @since 0.1.0
  25361. * @category Lang
  25362. * @param {*} value The value to check.
  25363. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  25364. * else `false`.
  25365. * @example
  25366. *
  25367. * _.isArguments(function() { return arguments; }());
  25368. * // => true
  25369. *
  25370. * _.isArguments([1, 2, 3]);
  25371. * // => false
  25372. */
  25373. var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
  25374. return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
  25375. !propertyIsEnumerable.call(value, 'callee');
  25376. };
  25377. /**
  25378. * Checks if `value` is classified as an `Array` object.
  25379. *
  25380. * @static
  25381. * @memberOf _
  25382. * @since 0.1.0
  25383. * @category Lang
  25384. * @param {*} value The value to check.
  25385. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  25386. * @example
  25387. *
  25388. * _.isArray([1, 2, 3]);
  25389. * // => true
  25390. *
  25391. * _.isArray(document.body.children);
  25392. * // => false
  25393. *
  25394. * _.isArray('abc');
  25395. * // => false
  25396. *
  25397. * _.isArray(_.noop);
  25398. * // => false
  25399. */
  25400. var isArray = Array.isArray;
  25401. /**
  25402. * Checks if `value` is array-like. A value is considered array-like if it's
  25403. * not a function and has a `value.length` that's an integer greater than or
  25404. * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
  25405. *
  25406. * @static
  25407. * @memberOf _
  25408. * @since 4.0.0
  25409. * @category Lang
  25410. * @param {*} value The value to check.
  25411. * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
  25412. * @example
  25413. *
  25414. * _.isArrayLike([1, 2, 3]);
  25415. * // => true
  25416. *
  25417. * _.isArrayLike(document.body.children);
  25418. * // => true
  25419. *
  25420. * _.isArrayLike('abc');
  25421. * // => true
  25422. *
  25423. * _.isArrayLike(_.noop);
  25424. * // => false
  25425. */
  25426. function isArrayLike(value) {
  25427. return value != null && isLength(value.length) && !isFunction(value);
  25428. }
  25429. /**
  25430. * Checks if `value` is a buffer.
  25431. *
  25432. * @static
  25433. * @memberOf _
  25434. * @since 4.3.0
  25435. * @category Lang
  25436. * @param {*} value The value to check.
  25437. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
  25438. * @example
  25439. *
  25440. * _.isBuffer(new Buffer(2));
  25441. * // => true
  25442. *
  25443. * _.isBuffer(new Uint8Array(2));
  25444. * // => false
  25445. */
  25446. var isBuffer = nativeIsBuffer || stubFalse;
  25447. /**
  25448. * Performs a deep comparison between two values to determine if they are
  25449. * equivalent.
  25450. *
  25451. * **Note:** This method supports comparing arrays, array buffers, booleans,
  25452. * date objects, error objects, maps, numbers, `Object` objects, regexes,
  25453. * sets, strings, symbols, and typed arrays. `Object` objects are compared
  25454. * by their own, not inherited, enumerable properties. Functions and DOM
  25455. * nodes are compared by strict equality, i.e. `===`.
  25456. *
  25457. * @static
  25458. * @memberOf _
  25459. * @since 0.1.0
  25460. * @category Lang
  25461. * @param {*} value The value to compare.
  25462. * @param {*} other The other value to compare.
  25463. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  25464. * @example
  25465. *
  25466. * var object = { 'a': 1 };
  25467. * var other = { 'a': 1 };
  25468. *
  25469. * _.isEqual(object, other);
  25470. * // => true
  25471. *
  25472. * object === other;
  25473. * // => false
  25474. */
  25475. function isEqual(value, other) {
  25476. return baseIsEqual(value, other);
  25477. }
  25478. /**
  25479. * Checks if `value` is classified as a `Function` object.
  25480. *
  25481. * @static
  25482. * @memberOf _
  25483. * @since 0.1.0
  25484. * @category Lang
  25485. * @param {*} value The value to check.
  25486. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  25487. * @example
  25488. *
  25489. * _.isFunction(_);
  25490. * // => true
  25491. *
  25492. * _.isFunction(/abc/);
  25493. * // => false
  25494. */
  25495. function isFunction(value) {
  25496. if (!isObject(value)) {
  25497. return false;
  25498. }
  25499. // The use of `Object#toString` avoids issues with the `typeof` operator
  25500. // in Safari 9 which returns 'object' for typed arrays and other constructors.
  25501. var tag = baseGetTag(value);
  25502. return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
  25503. }
  25504. /**
  25505. * Checks if `value` is a valid array-like length.
  25506. *
  25507. * **Note:** This method is loosely based on
  25508. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  25509. *
  25510. * @static
  25511. * @memberOf _
  25512. * @since 4.0.0
  25513. * @category Lang
  25514. * @param {*} value The value to check.
  25515. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
  25516. * @example
  25517. *
  25518. * _.isLength(3);
  25519. * // => true
  25520. *
  25521. * _.isLength(Number.MIN_VALUE);
  25522. * // => false
  25523. *
  25524. * _.isLength(Infinity);
  25525. * // => false
  25526. *
  25527. * _.isLength('3');
  25528. * // => false
  25529. */
  25530. function isLength(value) {
  25531. return typeof value == 'number' &&
  25532. value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
  25533. }
  25534. /**
  25535. * Checks if `value` is the
  25536. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  25537. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  25538. *
  25539. * @static
  25540. * @memberOf _
  25541. * @since 0.1.0
  25542. * @category Lang
  25543. * @param {*} value The value to check.
  25544. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  25545. * @example
  25546. *
  25547. * _.isObject({});
  25548. * // => true
  25549. *
  25550. * _.isObject([1, 2, 3]);
  25551. * // => true
  25552. *
  25553. * _.isObject(_.noop);
  25554. * // => true
  25555. *
  25556. * _.isObject(null);
  25557. * // => false
  25558. */
  25559. function isObject(value) {
  25560. var type = typeof value;
  25561. return value != null && (type == 'object' || type == 'function');
  25562. }
  25563. /**
  25564. * Checks if `value` is object-like. A value is object-like if it's not `null`
  25565. * and has a `typeof` result of "object".
  25566. *
  25567. * @static
  25568. * @memberOf _
  25569. * @since 4.0.0
  25570. * @category Lang
  25571. * @param {*} value The value to check.
  25572. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  25573. * @example
  25574. *
  25575. * _.isObjectLike({});
  25576. * // => true
  25577. *
  25578. * _.isObjectLike([1, 2, 3]);
  25579. * // => true
  25580. *
  25581. * _.isObjectLike(_.noop);
  25582. * // => false
  25583. *
  25584. * _.isObjectLike(null);
  25585. * // => false
  25586. */
  25587. function isObjectLike(value) {
  25588. return value != null && typeof value == 'object';
  25589. }
  25590. /**
  25591. * Checks if `value` is classified as a typed array.
  25592. *
  25593. * @static
  25594. * @memberOf _
  25595. * @since 3.0.0
  25596. * @category Lang
  25597. * @param {*} value The value to check.
  25598. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  25599. * @example
  25600. *
  25601. * _.isTypedArray(new Uint8Array);
  25602. * // => true
  25603. *
  25604. * _.isTypedArray([]);
  25605. * // => false
  25606. */
  25607. var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
  25608. /**
  25609. * Creates an array of the own enumerable property names of `object`.
  25610. *
  25611. * **Note:** Non-object values are coerced to objects. See the
  25612. * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  25613. * for more details.
  25614. *
  25615. * @static
  25616. * @since 0.1.0
  25617. * @memberOf _
  25618. * @category Object
  25619. * @param {Object} object The object to query.
  25620. * @returns {Array} Returns the array of property names.
  25621. * @example
  25622. *
  25623. * function Foo() {
  25624. * this.a = 1;
  25625. * this.b = 2;
  25626. * }
  25627. *
  25628. * Foo.prototype.c = 3;
  25629. *
  25630. * _.keys(new Foo);
  25631. * // => ['a', 'b'] (iteration order is not guaranteed)
  25632. *
  25633. * _.keys('hi');
  25634. * // => ['0', '1']
  25635. */
  25636. function keys(object) {
  25637. return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
  25638. }
  25639. /**
  25640. * This method returns a new empty array.
  25641. *
  25642. * @static
  25643. * @memberOf _
  25644. * @since 4.13.0
  25645. * @category Util
  25646. * @returns {Array} Returns the new empty array.
  25647. * @example
  25648. *
  25649. * var arrays = _.times(2, _.stubArray);
  25650. *
  25651. * console.log(arrays);
  25652. * // => [[], []]
  25653. *
  25654. * console.log(arrays[0] === arrays[1]);
  25655. * // => false
  25656. */
  25657. function stubArray() {
  25658. return [];
  25659. }
  25660. /**
  25661. * This method returns `false`.
  25662. *
  25663. * @static
  25664. * @memberOf _
  25665. * @since 4.13.0
  25666. * @category Util
  25667. * @returns {boolean} Returns `false`.
  25668. * @example
  25669. *
  25670. * _.times(2, _.stubFalse);
  25671. * // => [false, false]
  25672. */
  25673. function stubFalse() {
  25674. return false;
  25675. }
  25676. module.exports = isEqual;
  25677. /***/ }),
  25678. /***/ "./node_modules/nprogress/nprogress.js":
  25679. /*!*********************************************!*\
  25680. !*** ./node_modules/nprogress/nprogress.js ***!
  25681. \*********************************************/
  25682. /***/ (function(module, exports, __webpack_require__) {
  25683. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
  25684. * @license MIT */
  25685. ;(function(root, factory) {
  25686. if (true) {
  25687. !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25688. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25689. (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
  25690. __WEBPACK_AMD_DEFINE_FACTORY__),
  25691. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  25692. } else {}
  25693. })(this, function() {
  25694. var NProgress = {};
  25695. NProgress.version = '0.2.0';
  25696. var Settings = NProgress.settings = {
  25697. minimum: 0.08,
  25698. easing: 'ease',
  25699. positionUsing: '',
  25700. speed: 200,
  25701. trickle: true,
  25702. trickleRate: 0.02,
  25703. trickleSpeed: 800,
  25704. showSpinner: true,
  25705. barSelector: '[role="bar"]',
  25706. spinnerSelector: '[role="spinner"]',
  25707. parent: 'body',
  25708. template: '<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'
  25709. };
  25710. /**
  25711. * Updates configuration.
  25712. *
  25713. * NProgress.configure({
  25714. * minimum: 0.1
  25715. * });
  25716. */
  25717. NProgress.configure = function(options) {
  25718. var key, value;
  25719. for (key in options) {
  25720. value = options[key];
  25721. if (value !== undefined && options.hasOwnProperty(key)) Settings[key] = value;
  25722. }
  25723. return this;
  25724. };
  25725. /**
  25726. * Last number.
  25727. */
  25728. NProgress.status = null;
  25729. /**
  25730. * Sets the progress bar status, where `n` is a number from `0.0` to `1.0`.
  25731. *
  25732. * NProgress.set(0.4);
  25733. * NProgress.set(1.0);
  25734. */
  25735. NProgress.set = function(n) {
  25736. var started = NProgress.isStarted();
  25737. n = clamp(n, Settings.minimum, 1);
  25738. NProgress.status = (n === 1 ? null : n);
  25739. var progress = NProgress.render(!started),
  25740. bar = progress.querySelector(Settings.barSelector),
  25741. speed = Settings.speed,
  25742. ease = Settings.easing;
  25743. progress.offsetWidth; /* Repaint */
  25744. queue(function(next) {
  25745. // Set positionUsing if it hasn't already been set
  25746. if (Settings.positionUsing === '') Settings.positionUsing = NProgress.getPositioningCSS();
  25747. // Add transition
  25748. css(bar, barPositionCSS(n, speed, ease));
  25749. if (n === 1) {
  25750. // Fade out
  25751. css(progress, {
  25752. transition: 'none',
  25753. opacity: 1
  25754. });
  25755. progress.offsetWidth; /* Repaint */
  25756. setTimeout(function() {
  25757. css(progress, {
  25758. transition: 'all ' + speed + 'ms linear',
  25759. opacity: 0
  25760. });
  25761. setTimeout(function() {
  25762. NProgress.remove();
  25763. next();
  25764. }, speed);
  25765. }, speed);
  25766. } else {
  25767. setTimeout(next, speed);
  25768. }
  25769. });
  25770. return this;
  25771. };
  25772. NProgress.isStarted = function() {
  25773. return typeof NProgress.status === 'number';
  25774. };
  25775. /**
  25776. * Shows the progress bar.
  25777. * This is the same as setting the status to 0%, except that it doesn't go backwards.
  25778. *
  25779. * NProgress.start();
  25780. *
  25781. */
  25782. NProgress.start = function() {
  25783. if (!NProgress.status) NProgress.set(0);
  25784. var work = function() {
  25785. setTimeout(function() {
  25786. if (!NProgress.status) return;
  25787. NProgress.trickle();
  25788. work();
  25789. }, Settings.trickleSpeed);
  25790. };
  25791. if (Settings.trickle) work();
  25792. return this;
  25793. };
  25794. /**
  25795. * Hides the progress bar.
  25796. * This is the *sort of* the same as setting the status to 100%, with the
  25797. * difference being `done()` makes some placebo effect of some realistic motion.
  25798. *
  25799. * NProgress.done();
  25800. *
  25801. * If `true` is passed, it will show the progress bar even if its hidden.
  25802. *
  25803. * NProgress.done(true);
  25804. */
  25805. NProgress.done = function(force) {
  25806. if (!force && !NProgress.status) return this;
  25807. return NProgress.inc(0.3 + 0.5 * Math.random()).set(1);
  25808. };
  25809. /**
  25810. * Increments by a random amount.
  25811. */
  25812. NProgress.inc = function(amount) {
  25813. var n = NProgress.status;
  25814. if (!n) {
  25815. return NProgress.start();
  25816. } else {
  25817. if (typeof amount !== 'number') {
  25818. amount = (1 - n) * clamp(Math.random() * n, 0.1, 0.95);
  25819. }
  25820. n = clamp(n + amount, 0, 0.994);
  25821. return NProgress.set(n);
  25822. }
  25823. };
  25824. NProgress.trickle = function() {
  25825. return NProgress.inc(Math.random() * Settings.trickleRate);
  25826. };
  25827. /**
  25828. * Waits for all supplied jQuery promises and
  25829. * increases the progress as the promises resolve.
  25830. *
  25831. * @param $promise jQUery Promise
  25832. */
  25833. (function() {
  25834. var initial = 0, current = 0;
  25835. NProgress.promise = function($promise) {
  25836. if (!$promise || $promise.state() === "resolved") {
  25837. return this;
  25838. }
  25839. if (current === 0) {
  25840. NProgress.start();
  25841. }
  25842. initial++;
  25843. current++;
  25844. $promise.always(function() {
  25845. current--;
  25846. if (current === 0) {
  25847. initial = 0;
  25848. NProgress.done();
  25849. } else {
  25850. NProgress.set((initial - current) / initial);
  25851. }
  25852. });
  25853. return this;
  25854. };
  25855. })();
  25856. /**
  25857. * (Internal) renders the progress bar markup based on the `template`
  25858. * setting.
  25859. */
  25860. NProgress.render = function(fromStart) {
  25861. if (NProgress.isRendered()) return document.getElementById('nprogress');
  25862. addClass(document.documentElement, 'nprogress-busy');
  25863. var progress = document.createElement('div');
  25864. progress.id = 'nprogress';
  25865. progress.innerHTML = Settings.template;
  25866. var bar = progress.querySelector(Settings.barSelector),
  25867. perc = fromStart ? '-100' : toBarPerc(NProgress.status || 0),
  25868. parent = document.querySelector(Settings.parent),
  25869. spinner;
  25870. css(bar, {
  25871. transition: 'all 0 linear',
  25872. transform: 'translate3d(' + perc + '%,0,0)'
  25873. });
  25874. if (!Settings.showSpinner) {
  25875. spinner = progress.querySelector(Settings.spinnerSelector);
  25876. spinner && removeElement(spinner);
  25877. }
  25878. if (parent != document.body) {
  25879. addClass(parent, 'nprogress-custom-parent');
  25880. }
  25881. parent.appendChild(progress);
  25882. return progress;
  25883. };
  25884. /**
  25885. * Removes the element. Opposite of render().
  25886. */
  25887. NProgress.remove = function() {
  25888. removeClass(document.documentElement, 'nprogress-busy');
  25889. removeClass(document.querySelector(Settings.parent), 'nprogress-custom-parent');
  25890. var progress = document.getElementById('nprogress');
  25891. progress && removeElement(progress);
  25892. };
  25893. /**
  25894. * Checks if the progress bar is rendered.
  25895. */
  25896. NProgress.isRendered = function() {
  25897. return !!document.getElementById('nprogress');
  25898. };
  25899. /**
  25900. * Determine which positioning CSS rule to use.
  25901. */
  25902. NProgress.getPositioningCSS = function() {
  25903. // Sniff on document.body.style
  25904. var bodyStyle = document.body.style;
  25905. // Sniff prefixes
  25906. var vendorPrefix = ('WebkitTransform' in bodyStyle) ? 'Webkit' :
  25907. ('MozTransform' in bodyStyle) ? 'Moz' :
  25908. ('msTransform' in bodyStyle) ? 'ms' :
  25909. ('OTransform' in bodyStyle) ? 'O' : '';
  25910. if (vendorPrefix + 'Perspective' in bodyStyle) {
  25911. // Modern browsers with 3D support, e.g. Webkit, IE10
  25912. return 'translate3d';
  25913. } else if (vendorPrefix + 'Transform' in bodyStyle) {
  25914. // Browsers without 3D support, e.g. IE9
  25915. return 'translate';
  25916. } else {
  25917. // Browsers without translate() support, e.g. IE7-8
  25918. return 'margin';
  25919. }
  25920. };
  25921. /**
  25922. * Helpers
  25923. */
  25924. function clamp(n, min, max) {
  25925. if (n < min) return min;
  25926. if (n > max) return max;
  25927. return n;
  25928. }
  25929. /**
  25930. * (Internal) converts a percentage (`0..1`) to a bar translateX
  25931. * percentage (`-100%..0%`).
  25932. */
  25933. function toBarPerc(n) {
  25934. return (-1 + n) * 100;
  25935. }
  25936. /**
  25937. * (Internal) returns the correct CSS for changing the bar's
  25938. * position given an n percentage, and speed and ease from Settings
  25939. */
  25940. function barPositionCSS(n, speed, ease) {
  25941. var barCSS;
  25942. if (Settings.positionUsing === 'translate3d') {
  25943. barCSS = { transform: 'translate3d('+toBarPerc(n)+'%,0,0)' };
  25944. } else if (Settings.positionUsing === 'translate') {
  25945. barCSS = { transform: 'translate('+toBarPerc(n)+'%,0)' };
  25946. } else {
  25947. barCSS = { 'margin-left': toBarPerc(n)+'%' };
  25948. }
  25949. barCSS.transition = 'all '+speed+'ms '+ease;
  25950. return barCSS;
  25951. }
  25952. /**
  25953. * (Internal) Queues a function to be executed.
  25954. */
  25955. var queue = (function() {
  25956. var pending = [];
  25957. function next() {
  25958. var fn = pending.shift();
  25959. if (fn) {
  25960. fn(next);
  25961. }
  25962. }
  25963. return function(fn) {
  25964. pending.push(fn);
  25965. if (pending.length == 1) next();
  25966. };
  25967. })();
  25968. /**
  25969. * (Internal) Applies css properties to an element, similar to the jQuery
  25970. * css method.
  25971. *
  25972. * While this helper does assist with vendor prefixed property names, it
  25973. * does not perform any manipulation of values prior to setting styles.
  25974. */
  25975. var css = (function() {
  25976. var cssPrefixes = [ 'Webkit', 'O', 'Moz', 'ms' ],
  25977. cssProps = {};
  25978. function camelCase(string) {
  25979. return string.replace(/^-ms-/, 'ms-').replace(/-([\da-z])/gi, function(match, letter) {
  25980. return letter.toUpperCase();
  25981. });
  25982. }
  25983. function getVendorProp(name) {
  25984. var style = document.body.style;
  25985. if (name in style) return name;
  25986. var i = cssPrefixes.length,
  25987. capName = name.charAt(0).toUpperCase() + name.slice(1),
  25988. vendorName;
  25989. while (i--) {
  25990. vendorName = cssPrefixes[i] + capName;
  25991. if (vendorName in style) return vendorName;
  25992. }
  25993. return name;
  25994. }
  25995. function getStyleProp(name) {
  25996. name = camelCase(name);
  25997. return cssProps[name] || (cssProps[name] = getVendorProp(name));
  25998. }
  25999. function applyCss(element, prop, value) {
  26000. prop = getStyleProp(prop);
  26001. element.style[prop] = value;
  26002. }
  26003. return function(element, properties) {
  26004. var args = arguments,
  26005. prop,
  26006. value;
  26007. if (args.length == 2) {
  26008. for (prop in properties) {
  26009. value = properties[prop];
  26010. if (value !== undefined && properties.hasOwnProperty(prop)) applyCss(element, prop, value);
  26011. }
  26012. } else {
  26013. applyCss(element, args[1], args[2]);
  26014. }
  26015. }
  26016. })();
  26017. /**
  26018. * (Internal) Determines if an element or space separated list of class names contains a class name.
  26019. */
  26020. function hasClass(element, name) {
  26021. var list = typeof element == 'string' ? element : classList(element);
  26022. return list.indexOf(' ' + name + ' ') >= 0;
  26023. }
  26024. /**
  26025. * (Internal) Adds a class to an element.
  26026. */
  26027. function addClass(element, name) {
  26028. var oldList = classList(element),
  26029. newList = oldList + name;
  26030. if (hasClass(oldList, name)) return;
  26031. // Trim the opening space.
  26032. element.className = newList.substring(1);
  26033. }
  26034. /**
  26035. * (Internal) Removes a class from an element.
  26036. */
  26037. function removeClass(element, name) {
  26038. var oldList = classList(element),
  26039. newList;
  26040. if (!hasClass(element, name)) return;
  26041. // Replace the class name.
  26042. newList = oldList.replace(' ' + name + ' ', ' ');
  26043. // Trim the opening and closing spaces.
  26044. element.className = newList.substring(1, newList.length - 1);
  26045. }
  26046. /**
  26047. * (Internal) Gets a space separated list of the class names on the element.
  26048. * The list is wrapped with a single space on each end to facilitate finding
  26049. * matches within the list.
  26050. */
  26051. function classList(element) {
  26052. return (' ' + (element.className || '') + ' ').replace(/\s+/gi, ' ');
  26053. }
  26054. /**
  26055. * (Internal) Removes an element from the DOM.
  26056. */
  26057. function removeElement(element) {
  26058. element && element.parentNode && element.parentNode.removeChild(element);
  26059. }
  26060. return NProgress;
  26061. });
  26062. /***/ }),
  26063. /***/ "./node_modules/object-inspect/index.js":
  26064. /*!**********************************************!*\
  26065. !*** ./node_modules/object-inspect/index.js ***!
  26066. \**********************************************/
  26067. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  26068. var hasMap = typeof Map === 'function' && Map.prototype;
  26069. var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
  26070. var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
  26071. var mapForEach = hasMap && Map.prototype.forEach;
  26072. var hasSet = typeof Set === 'function' && Set.prototype;
  26073. var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
  26074. var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
  26075. var setForEach = hasSet && Set.prototype.forEach;
  26076. var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
  26077. var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
  26078. var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
  26079. var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
  26080. var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
  26081. var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
  26082. var booleanValueOf = Boolean.prototype.valueOf;
  26083. var objectToString = Object.prototype.toString;
  26084. var functionToString = Function.prototype.toString;
  26085. var $match = String.prototype.match;
  26086. var $slice = String.prototype.slice;
  26087. var $replace = String.prototype.replace;
  26088. var $toUpperCase = String.prototype.toUpperCase;
  26089. var $toLowerCase = String.prototype.toLowerCase;
  26090. var $test = RegExp.prototype.test;
  26091. var $concat = Array.prototype.concat;
  26092. var $join = Array.prototype.join;
  26093. var $arrSlice = Array.prototype.slice;
  26094. var $floor = Math.floor;
  26095. var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
  26096. var gOPS = Object.getOwnPropertySymbols;
  26097. var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
  26098. var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
  26099. // ie, `has-tostringtag/shams
  26100. var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
  26101. ? Symbol.toStringTag
  26102. : null;
  26103. var isEnumerable = Object.prototype.propertyIsEnumerable;
  26104. var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
  26105. [].__proto__ === Array.prototype // eslint-disable-line no-proto
  26106. ? function (O) {
  26107. return O.__proto__; // eslint-disable-line no-proto
  26108. }
  26109. : null
  26110. );
  26111. function addNumericSeparator(num, str) {
  26112. if (
  26113. num === Infinity
  26114. || num === -Infinity
  26115. || num !== num
  26116. || (num && num > -1000 && num < 1000)
  26117. || $test.call(/e/, str)
  26118. ) {
  26119. return str;
  26120. }
  26121. var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
  26122. if (typeof num === 'number') {
  26123. var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
  26124. if (int !== num) {
  26125. var intStr = String(int);
  26126. var dec = $slice.call(str, intStr.length + 1);
  26127. return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
  26128. }
  26129. }
  26130. return $replace.call(str, sepRegex, '$&_');
  26131. }
  26132. var inspectCustom = (__webpack_require__(/*! ./util.inspect */ "?2128").custom);
  26133. var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null;
  26134. module.exports = function inspect_(obj, options, depth, seen) {
  26135. var opts = options || {};
  26136. if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
  26137. throw new TypeError('option "quoteStyle" must be "single" or "double"');
  26138. }
  26139. if (
  26140. has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
  26141. ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
  26142. : opts.maxStringLength !== null
  26143. )
  26144. ) {
  26145. throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
  26146. }
  26147. var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
  26148. if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
  26149. throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
  26150. }
  26151. if (
  26152. has(opts, 'indent')
  26153. && opts.indent !== null
  26154. && opts.indent !== '\t'
  26155. && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
  26156. ) {
  26157. throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
  26158. }
  26159. if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
  26160. throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
  26161. }
  26162. var numericSeparator = opts.numericSeparator;
  26163. if (typeof obj === 'undefined') {
  26164. return 'undefined';
  26165. }
  26166. if (obj === null) {
  26167. return 'null';
  26168. }
  26169. if (typeof obj === 'boolean') {
  26170. return obj ? 'true' : 'false';
  26171. }
  26172. if (typeof obj === 'string') {
  26173. return inspectString(obj, opts);
  26174. }
  26175. if (typeof obj === 'number') {
  26176. if (obj === 0) {
  26177. return Infinity / obj > 0 ? '0' : '-0';
  26178. }
  26179. var str = String(obj);
  26180. return numericSeparator ? addNumericSeparator(obj, str) : str;
  26181. }
  26182. if (typeof obj === 'bigint') {
  26183. var bigIntStr = String(obj) + 'n';
  26184. return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
  26185. }
  26186. var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
  26187. if (typeof depth === 'undefined') { depth = 0; }
  26188. if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
  26189. return isArray(obj) ? '[Array]' : '[Object]';
  26190. }
  26191. var indent = getIndent(opts, depth);
  26192. if (typeof seen === 'undefined') {
  26193. seen = [];
  26194. } else if (indexOf(seen, obj) >= 0) {
  26195. return '[Circular]';
  26196. }
  26197. function inspect(value, from, noIndent) {
  26198. if (from) {
  26199. seen = $arrSlice.call(seen);
  26200. seen.push(from);
  26201. }
  26202. if (noIndent) {
  26203. var newOpts = {
  26204. depth: opts.depth
  26205. };
  26206. if (has(opts, 'quoteStyle')) {
  26207. newOpts.quoteStyle = opts.quoteStyle;
  26208. }
  26209. return inspect_(value, newOpts, depth + 1, seen);
  26210. }
  26211. return inspect_(value, opts, depth + 1, seen);
  26212. }
  26213. if (typeof obj === 'function') {
  26214. var name = nameOf(obj);
  26215. var keys = arrObjKeys(obj, inspect);
  26216. return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
  26217. }
  26218. if (isSymbol(obj)) {
  26219. var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
  26220. return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
  26221. }
  26222. if (isElement(obj)) {
  26223. var s = '<' + $toLowerCase.call(String(obj.nodeName));
  26224. var attrs = obj.attributes || [];
  26225. for (var i = 0; i < attrs.length; i++) {
  26226. s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
  26227. }
  26228. s += '>';
  26229. if (obj.childNodes && obj.childNodes.length) { s += '...'; }
  26230. s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
  26231. return s;
  26232. }
  26233. if (isArray(obj)) {
  26234. if (obj.length === 0) { return '[]'; }
  26235. var xs = arrObjKeys(obj, inspect);
  26236. if (indent && !singleLineValues(xs)) {
  26237. return '[' + indentedJoin(xs, indent) + ']';
  26238. }
  26239. return '[ ' + $join.call(xs, ', ') + ' ]';
  26240. }
  26241. if (isError(obj)) {
  26242. var parts = arrObjKeys(obj, inspect);
  26243. if ('cause' in obj && !isEnumerable.call(obj, 'cause')) {
  26244. return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
  26245. }
  26246. if (parts.length === 0) { return '[' + String(obj) + ']'; }
  26247. return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
  26248. }
  26249. if (typeof obj === 'object' && customInspect) {
  26250. if (inspectSymbol && typeof obj[inspectSymbol] === 'function') {
  26251. return obj[inspectSymbol]();
  26252. } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
  26253. return obj.inspect();
  26254. }
  26255. }
  26256. if (isMap(obj)) {
  26257. var mapParts = [];
  26258. mapForEach.call(obj, function (value, key) {
  26259. mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
  26260. });
  26261. return collectionOf('Map', mapSize.call(obj), mapParts, indent);
  26262. }
  26263. if (isSet(obj)) {
  26264. var setParts = [];
  26265. setForEach.call(obj, function (value) {
  26266. setParts.push(inspect(value, obj));
  26267. });
  26268. return collectionOf('Set', setSize.call(obj), setParts, indent);
  26269. }
  26270. if (isWeakMap(obj)) {
  26271. return weakCollectionOf('WeakMap');
  26272. }
  26273. if (isWeakSet(obj)) {
  26274. return weakCollectionOf('WeakSet');
  26275. }
  26276. if (isWeakRef(obj)) {
  26277. return weakCollectionOf('WeakRef');
  26278. }
  26279. if (isNumber(obj)) {
  26280. return markBoxed(inspect(Number(obj)));
  26281. }
  26282. if (isBigInt(obj)) {
  26283. return markBoxed(inspect(bigIntValueOf.call(obj)));
  26284. }
  26285. if (isBoolean(obj)) {
  26286. return markBoxed(booleanValueOf.call(obj));
  26287. }
  26288. if (isString(obj)) {
  26289. return markBoxed(inspect(String(obj)));
  26290. }
  26291. if (!isDate(obj) && !isRegExp(obj)) {
  26292. var ys = arrObjKeys(obj, inspect);
  26293. var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
  26294. var protoTag = obj instanceof Object ? '' : 'null prototype';
  26295. var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
  26296. var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
  26297. var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
  26298. if (ys.length === 0) { return tag + '{}'; }
  26299. if (indent) {
  26300. return tag + '{' + indentedJoin(ys, indent) + '}';
  26301. }
  26302. return tag + '{ ' + $join.call(ys, ', ') + ' }';
  26303. }
  26304. return String(obj);
  26305. };
  26306. function wrapQuotes(s, defaultStyle, opts) {
  26307. var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
  26308. return quoteChar + s + quoteChar;
  26309. }
  26310. function quote(s) {
  26311. return $replace.call(String(s), /"/g, '&quot;');
  26312. }
  26313. function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  26314. function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  26315. function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  26316. function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  26317. function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  26318. function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  26319. function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  26320. // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
  26321. function isSymbol(obj) {
  26322. if (hasShammedSymbols) {
  26323. return obj && typeof obj === 'object' && obj instanceof Symbol;
  26324. }
  26325. if (typeof obj === 'symbol') {
  26326. return true;
  26327. }
  26328. if (!obj || typeof obj !== 'object' || !symToString) {
  26329. return false;
  26330. }
  26331. try {
  26332. symToString.call(obj);
  26333. return true;
  26334. } catch (e) {}
  26335. return false;
  26336. }
  26337. function isBigInt(obj) {
  26338. if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
  26339. return false;
  26340. }
  26341. try {
  26342. bigIntValueOf.call(obj);
  26343. return true;
  26344. } catch (e) {}
  26345. return false;
  26346. }
  26347. var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
  26348. function has(obj, key) {
  26349. return hasOwn.call(obj, key);
  26350. }
  26351. function toStr(obj) {
  26352. return objectToString.call(obj);
  26353. }
  26354. function nameOf(f) {
  26355. if (f.name) { return f.name; }
  26356. var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
  26357. if (m) { return m[1]; }
  26358. return null;
  26359. }
  26360. function indexOf(xs, x) {
  26361. if (xs.indexOf) { return xs.indexOf(x); }
  26362. for (var i = 0, l = xs.length; i < l; i++) {
  26363. if (xs[i] === x) { return i; }
  26364. }
  26365. return -1;
  26366. }
  26367. function isMap(x) {
  26368. if (!mapSize || !x || typeof x !== 'object') {
  26369. return false;
  26370. }
  26371. try {
  26372. mapSize.call(x);
  26373. try {
  26374. setSize.call(x);
  26375. } catch (s) {
  26376. return true;
  26377. }
  26378. return x instanceof Map; // core-js workaround, pre-v2.5.0
  26379. } catch (e) {}
  26380. return false;
  26381. }
  26382. function isWeakMap(x) {
  26383. if (!weakMapHas || !x || typeof x !== 'object') {
  26384. return false;
  26385. }
  26386. try {
  26387. weakMapHas.call(x, weakMapHas);
  26388. try {
  26389. weakSetHas.call(x, weakSetHas);
  26390. } catch (s) {
  26391. return true;
  26392. }
  26393. return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
  26394. } catch (e) {}
  26395. return false;
  26396. }
  26397. function isWeakRef(x) {
  26398. if (!weakRefDeref || !x || typeof x !== 'object') {
  26399. return false;
  26400. }
  26401. try {
  26402. weakRefDeref.call(x);
  26403. return true;
  26404. } catch (e) {}
  26405. return false;
  26406. }
  26407. function isSet(x) {
  26408. if (!setSize || !x || typeof x !== 'object') {
  26409. return false;
  26410. }
  26411. try {
  26412. setSize.call(x);
  26413. try {
  26414. mapSize.call(x);
  26415. } catch (m) {
  26416. return true;
  26417. }
  26418. return x instanceof Set; // core-js workaround, pre-v2.5.0
  26419. } catch (e) {}
  26420. return false;
  26421. }
  26422. function isWeakSet(x) {
  26423. if (!weakSetHas || !x || typeof x !== 'object') {
  26424. return false;
  26425. }
  26426. try {
  26427. weakSetHas.call(x, weakSetHas);
  26428. try {
  26429. weakMapHas.call(x, weakMapHas);
  26430. } catch (s) {
  26431. return true;
  26432. }
  26433. return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
  26434. } catch (e) {}
  26435. return false;
  26436. }
  26437. function isElement(x) {
  26438. if (!x || typeof x !== 'object') { return false; }
  26439. if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
  26440. return true;
  26441. }
  26442. return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
  26443. }
  26444. function inspectString(str, opts) {
  26445. if (str.length > opts.maxStringLength) {
  26446. var remaining = str.length - opts.maxStringLength;
  26447. var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
  26448. return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
  26449. }
  26450. // eslint-disable-next-line no-control-regex
  26451. var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
  26452. return wrapQuotes(s, 'single', opts);
  26453. }
  26454. function lowbyte(c) {
  26455. var n = c.charCodeAt(0);
  26456. var x = {
  26457. 8: 'b',
  26458. 9: 't',
  26459. 10: 'n',
  26460. 12: 'f',
  26461. 13: 'r'
  26462. }[n];
  26463. if (x) { return '\\' + x; }
  26464. return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
  26465. }
  26466. function markBoxed(str) {
  26467. return 'Object(' + str + ')';
  26468. }
  26469. function weakCollectionOf(type) {
  26470. return type + ' { ? }';
  26471. }
  26472. function collectionOf(type, size, entries, indent) {
  26473. var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
  26474. return type + ' (' + size + ') {' + joinedEntries + '}';
  26475. }
  26476. function singleLineValues(xs) {
  26477. for (var i = 0; i < xs.length; i++) {
  26478. if (indexOf(xs[i], '\n') >= 0) {
  26479. return false;
  26480. }
  26481. }
  26482. return true;
  26483. }
  26484. function getIndent(opts, depth) {
  26485. var baseIndent;
  26486. if (opts.indent === '\t') {
  26487. baseIndent = '\t';
  26488. } else if (typeof opts.indent === 'number' && opts.indent > 0) {
  26489. baseIndent = $join.call(Array(opts.indent + 1), ' ');
  26490. } else {
  26491. return null;
  26492. }
  26493. return {
  26494. base: baseIndent,
  26495. prev: $join.call(Array(depth + 1), baseIndent)
  26496. };
  26497. }
  26498. function indentedJoin(xs, indent) {
  26499. if (xs.length === 0) { return ''; }
  26500. var lineJoiner = '\n' + indent.prev + indent.base;
  26501. return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
  26502. }
  26503. function arrObjKeys(obj, inspect) {
  26504. var isArr = isArray(obj);
  26505. var xs = [];
  26506. if (isArr) {
  26507. xs.length = obj.length;
  26508. for (var i = 0; i < obj.length; i++) {
  26509. xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
  26510. }
  26511. }
  26512. var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
  26513. var symMap;
  26514. if (hasShammedSymbols) {
  26515. symMap = {};
  26516. for (var k = 0; k < syms.length; k++) {
  26517. symMap['$' + syms[k]] = syms[k];
  26518. }
  26519. }
  26520. for (var key in obj) { // eslint-disable-line no-restricted-syntax
  26521. if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
  26522. if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
  26523. if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
  26524. // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
  26525. continue; // eslint-disable-line no-restricted-syntax, no-continue
  26526. } else if ($test.call(/[^\w$]/, key)) {
  26527. xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
  26528. } else {
  26529. xs.push(key + ': ' + inspect(obj[key], obj));
  26530. }
  26531. }
  26532. if (typeof gOPS === 'function') {
  26533. for (var j = 0; j < syms.length; j++) {
  26534. if (isEnumerable.call(obj, syms[j])) {
  26535. xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
  26536. }
  26537. }
  26538. }
  26539. return xs;
  26540. }
  26541. /***/ }),
  26542. /***/ "./node_modules/primevue/api/api.esm.js":
  26543. /*!**********************************************!*\
  26544. !*** ./node_modules/primevue/api/api.esm.js ***!
  26545. \**********************************************/
  26546. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  26547. "use strict";
  26548. __webpack_require__.r(__webpack_exports__);
  26549. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  26550. /* harmony export */ "FilterMatchMode": () => (/* binding */ FilterMatchMode),
  26551. /* harmony export */ "FilterOperator": () => (/* binding */ FilterOperator),
  26552. /* harmony export */ "FilterService": () => (/* binding */ FilterService),
  26553. /* harmony export */ "PrimeIcons": () => (/* binding */ PrimeIcons),
  26554. /* harmony export */ "ToastSeverity": () => (/* binding */ ToastSeverities)
  26555. /* harmony export */ });
  26556. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  26557. const FilterMatchMode = {
  26558. STARTS_WITH : 'startsWith',
  26559. CONTAINS : 'contains',
  26560. NOT_CONTAINS : 'notContains',
  26561. ENDS_WITH : 'endsWith',
  26562. EQUALS : 'equals',
  26563. NOT_EQUALS : 'notEquals',
  26564. IN : 'in',
  26565. LESS_THAN : 'lt',
  26566. LESS_THAN_OR_EQUAL_TO : 'lte',
  26567. GREATER_THAN : 'gt',
  26568. GREATER_THAN_OR_EQUAL_TO : 'gte',
  26569. BETWEEN : 'between',
  26570. DATE_IS : 'dateIs',
  26571. DATE_IS_NOT : 'dateIsNot',
  26572. DATE_BEFORE : 'dateBefore',
  26573. DATE_AFTER : 'dateAfter'
  26574. };
  26575. const FilterOperator = {
  26576. AND: 'and',
  26577. OR: 'or'
  26578. };
  26579. const FilterService = {
  26580. filter(value, fields, filterValue, filterMatchMode, filterLocale) {
  26581. let filteredItems = [];
  26582. if (value) {
  26583. for (let item of value) {
  26584. for (let field of fields) {
  26585. let fieldValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(item, field);
  26586. if (this.filters[filterMatchMode](fieldValue, filterValue, filterLocale)) {
  26587. filteredItems.push(item);
  26588. break;
  26589. }
  26590. }
  26591. }
  26592. }
  26593. return filteredItems;
  26594. },
  26595. filters: {
  26596. startsWith(value, filter, filterLocale) {
  26597. if (filter === undefined || filter === null || filter.trim() === '') {
  26598. return true;
  26599. }
  26600. if (value === undefined || value === null) {
  26601. return false;
  26602. }
  26603. let filterValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);
  26604. let stringValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale);
  26605. return stringValue.slice(0, filterValue.length) === filterValue;
  26606. },
  26607. contains(value, filter, filterLocale) {
  26608. if (filter === undefined || filter === null || (typeof filter === 'string' && filter.trim() === '')) {
  26609. return true;
  26610. }
  26611. if (value === undefined || value === null) {
  26612. return false;
  26613. }
  26614. let filterValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);
  26615. let stringValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale);
  26616. return stringValue.indexOf(filterValue) !== -1;
  26617. },
  26618. notContains(value, filter, filterLocale) {
  26619. if (filter === undefined || filter === null || (typeof filter === 'string' && filter.trim() === '')) {
  26620. return true;
  26621. }
  26622. if (value === undefined || value === null) {
  26623. return false;
  26624. }
  26625. let filterValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);
  26626. let stringValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale);
  26627. return stringValue.indexOf(filterValue) === -1;
  26628. },
  26629. endsWith(value, filter, filterLocale) {
  26630. if (filter === undefined || filter === null || filter.trim() === '') {
  26631. return true;
  26632. }
  26633. if (value === undefined || value === null) {
  26634. return false;
  26635. }
  26636. let filterValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);
  26637. let stringValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale);
  26638. return stringValue.indexOf(filterValue, stringValue.length - filterValue.length) !== -1;
  26639. },
  26640. equals(value, filter, filterLocale) {
  26641. if (filter === undefined || filter === null || (typeof filter === 'string' && filter.trim() === '')) {
  26642. return true;
  26643. }
  26644. if (value === undefined || value === null) {
  26645. return false;
  26646. }
  26647. if (value.getTime && filter.getTime)
  26648. return value.getTime() === filter.getTime();
  26649. else
  26650. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale) == primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);
  26651. },
  26652. notEquals(value, filter, filterLocale) {
  26653. if (filter === undefined || filter === null || (typeof filter === 'string' && filter.trim() === '')) {
  26654. return false;
  26655. }
  26656. if (value === undefined || value === null) {
  26657. return true;
  26658. }
  26659. if (value.getTime && filter.getTime)
  26660. return value.getTime() !== filter.getTime();
  26661. else
  26662. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale) != primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);
  26663. },
  26664. in(value, filter) {
  26665. if (filter === undefined || filter === null || filter.length === 0) {
  26666. return true;
  26667. }
  26668. for (let i = 0; i < filter.length; i++) {
  26669. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.equals(value, filter[i])) {
  26670. return true;
  26671. }
  26672. }
  26673. return false;
  26674. },
  26675. between(value, filter) {
  26676. if (filter == null || filter[0] == null || filter[1] == null) {
  26677. return true;
  26678. }
  26679. if (value === undefined || value === null) {
  26680. return false;
  26681. }
  26682. if (value.getTime)
  26683. return filter[0].getTime() <= value.getTime() && value.getTime() <= filter[1].getTime();
  26684. else
  26685. return filter[0] <= value && value <= filter[1];
  26686. },
  26687. lt(value, filter) {
  26688. if (filter === undefined || filter === null) {
  26689. return true;
  26690. }
  26691. if (value === undefined || value === null) {
  26692. return false;
  26693. }
  26694. if (value.getTime && filter.getTime)
  26695. return value.getTime() < filter.getTime();
  26696. else
  26697. return value < filter;
  26698. },
  26699. lte(value, filter) {
  26700. if (filter === undefined || filter === null) {
  26701. return true;
  26702. }
  26703. if (value === undefined || value === null) {
  26704. return false;
  26705. }
  26706. if (value.getTime && filter.getTime)
  26707. return value.getTime() <= filter.getTime();
  26708. else
  26709. return value <= filter;
  26710. },
  26711. gt(value, filter) {
  26712. if (filter === undefined || filter === null) {
  26713. return true;
  26714. }
  26715. if (value === undefined || value === null) {
  26716. return false;
  26717. }
  26718. if (value.getTime && filter.getTime)
  26719. return value.getTime() > filter.getTime();
  26720. else
  26721. return value > filter;
  26722. },
  26723. gte(value, filter) {
  26724. if (filter === undefined || filter === null) {
  26725. return true;
  26726. }
  26727. if (value === undefined || value === null) {
  26728. return false;
  26729. }
  26730. if (value.getTime && filter.getTime)
  26731. return value.getTime() >= filter.getTime();
  26732. else
  26733. return value >= filter;
  26734. },
  26735. dateIs(value, filter) {
  26736. if (filter === undefined || filter === null) {
  26737. return true;
  26738. }
  26739. if (value === undefined || value === null) {
  26740. return false;
  26741. }
  26742. return value.toDateString() === filter.toDateString();
  26743. },
  26744. dateIsNot(value, filter) {
  26745. if (filter === undefined || filter === null) {
  26746. return true;
  26747. }
  26748. if (value === undefined || value === null) {
  26749. return false;
  26750. }
  26751. return value.toDateString() !== filter.toDateString();
  26752. },
  26753. dateBefore(value, filter) {
  26754. if (filter === undefined || filter === null) {
  26755. return true;
  26756. }
  26757. if (value === undefined || value === null) {
  26758. return false;
  26759. }
  26760. return value.getTime() < filter.getTime();
  26761. },
  26762. dateAfter(value, filter) {
  26763. if (filter === undefined || filter === null) {
  26764. return true;
  26765. }
  26766. if (value === undefined || value === null) {
  26767. return false;
  26768. }
  26769. return value.getTime() > filter.getTime();
  26770. }
  26771. },
  26772. register(rule, fn) {
  26773. this.filters[rule] = fn;
  26774. }
  26775. };
  26776. const PrimeIcons = {
  26777. ALIGN_CENTER:'pi pi-align-center',
  26778. ALIGN_JUSTIFY:'pi pi-align-justify',
  26779. ALIGN_LEFT:'pi pi-align-left',
  26780. ALIGN_RIGHT:'pi pi-align-right',
  26781. AMAZON:'pi pi-amazon',
  26782. ANDROID:'pi pi-android',
  26783. ANGLE_DOUBLE_DOWN:'pi pi-angle-double-down',
  26784. ANGLE_DOUBLE_LEFT:'pi pi-angle-double-left',
  26785. ANGLE_DOUBLE_RIGHT:'pi pi-angle-double-right',
  26786. ANGLE_DOUBLE_UP:'pi pi-angle-double-up',
  26787. ANGLE_DOWN:'pi pi-angle-down',
  26788. ANGLE_LEFT:'pi pi-angle-left',
  26789. ANGLE_RIGHT:'pi pi-angle-right',
  26790. ANGLE_UP:'pi pi-angle-up',
  26791. APPLE:'pi pi-apple',
  26792. ARROW_CIRCLE_DOWN:'pi pi-arrow-circle-down',
  26793. ARROW_CIRCLE_LEFT:'pi pi-arrow-circle-left',
  26794. ARROW_CIRCLE_RIGHT:'pi pi-arrow-circle-right',
  26795. ARROW_CIRCLE_UP:'pi pi-arrow-circle-up',
  26796. ARROW_DOWN:'pi pi-arrow-down',
  26797. ARROW_DOWN_LEFT:'pi pi-arrow-down-left',
  26798. ARROW_DOWN_RIGHT:'pi pi-arrow-down-right',
  26799. ARROW_LEFT:'pi pi-arrow-left',
  26800. ARROW_RIGHT:'pi pi-arrow-right',
  26801. ARROW_UP:'pi pi-arrow-up',
  26802. ARROW_UP_LEFT:'pi pi-arrow-up-left',
  26803. ARROW_UP_RIGHT:'pi pi-arrow-up-right',
  26804. ARROW_H:'pi pi-arrow-h',
  26805. ARROW_V:'pi pi-arrow-v',
  26806. AT:'pi pi-at',
  26807. BACKWARD:'pi pi-backward',
  26808. BAN:'pi pi-ban',
  26809. BARS:'pi pi-bars',
  26810. BELL:'pi pi-bell',
  26811. BOLT:'pi pi-bolt',
  26812. BOOK:'pi pi-book',
  26813. BOOKMARK:'pi pi-bookmark',
  26814. BOOKMARK_FILL:'pi pi-bookmark-fill',
  26815. BOX:'pi pi-box',
  26816. BRIEFCASE:'pi pi-briefcase',
  26817. BUILDING:'pi pi-building',
  26818. CALENDAR:'pi pi-calendar',
  26819. CALENDAR_MINUS:'pi pi-calendar-minus',
  26820. CALENDAR_PLUS:'pi pi-calendar-plus',
  26821. CALENDAR_TIMES:'pi pi-calendar-times',
  26822. CAMERA:'pi pi-camera',
  26823. CAR:'pi pi-car',
  26824. CARET_DOWN:'pi pi-caret-down',
  26825. CARET_LEFT:'pi pi-caret-left',
  26826. CARET_RIGHT:'pi pi-caret-right',
  26827. CARET_UP:'pi pi-caret-up',
  26828. CHART_BAR:'pi pi-chart-bar',
  26829. CHART_LINE:'pi pi-chart-line',
  26830. CHART_PIE:'pi pi-chart-pie',
  26831. CHECK:'pi pi-check',
  26832. CHECK_CIRCLE:'pi pi-check-circle',
  26833. CHECK_SQUARE:'pi pi-check-square',
  26834. CHEVRON_CIRCLE_DOWN:'pi pi-chevron-circle-down',
  26835. CHEVRON_CIRCLE_LEFT:'pi pi-chevron-circle-left',
  26836. CHEVRON_CIRCLE_RIGHT:'pi pi-chevron-circle-right',
  26837. CHEVRON_CIRCLE_UP:'pi pi-chevron-circle-up',
  26838. CHEVRON_DOWN:'pi pi-chevron-down',
  26839. CHEVRON_LEFT:'pi pi-chevron-left',
  26840. CHEVRON_RIGHT:'pi pi-chevron-right',
  26841. CHEVRON_UP:'pi pi-chevron-up',
  26842. CIRCLE:'pi pi-circle',
  26843. CIRCLE_FILL:'pi pi-circle-fill',
  26844. CLOCK:'pi pi-clock',
  26845. CLONE:'pi pi-clone',
  26846. CLOUD:'pi pi-cloud',
  26847. CLOUD_DOWNLOAD:'pi pi-cloud-download',
  26848. CLOUD_UPLOAD:'pi pi-cloud-upload',
  26849. CODE:'pi pi-code',
  26850. COG:'pi pi-cog',
  26851. COMMENT:'pi pi-comment',
  26852. COMMENTS:'pi pi-comments',
  26853. COMPASS:'pi pi-compass',
  26854. COPY:'pi pi-copy',
  26855. CREDIT_CARD:'pi pi-credit-card',
  26856. DATABASE:'pi pi-database',
  26857. DESKTOP:'pi pi-desktop',
  26858. DIRECTIONS:'pi pi-directions',
  26859. DIRECTIONS_ALT:'pi pi-directions-alt',
  26860. DISCORD:'pi pi-discord',
  26861. DOLLAR:'pi pi-dollar',
  26862. DOWNLOAD:'pi pi-download',
  26863. EJECT:'pi pi-eject',
  26864. ELLIPSIS_H:'pi pi-ellipsis-h',
  26865. ELLIPSIS_V:'pi pi-ellipsis-v',
  26866. ENVELOPE:'pi pi-envelope',
  26867. EURO:'pi pi-euro',
  26868. EXCLAMATION_CIRCLE:'pi pi-exclamation-circle',
  26869. EXCLAMATION_TRIANGLE :'pi pi-exclamation-triangle',
  26870. EXTERNAL_LINK:'pi pi-external-link',
  26871. EYE:'pi pi-eye',
  26872. EYE_SLASH:'pi pi-eye-slash',
  26873. FACEBOOK:'pi pi-facebook',
  26874. FAST_BACKWARD:'pi pi-fast-backward',
  26875. FAST_FORWARD:'pi pi-fast-forward',
  26876. FILE:'pi pi-file',
  26877. FILE_EXCEL:'pi pi-file-excel',
  26878. FILE_PDF:'pi pi-file-pdf',
  26879. FILTER:'pi pi-filter',
  26880. FILTER_FILL:'pi pi-filter-fill',
  26881. FILTER_SLASH:'pi pi-filter-slash',
  26882. FLAG:'pi pi-flag',
  26883. FLAG_FILL:'pi pi-flag-fill',
  26884. FOLDER:'pi pi-folder',
  26885. FOLDER_OPEN:'pi pi-folder-open',
  26886. FORWARD:'pi pi-forward',
  26887. GITHUB:'pi pi-github',
  26888. GLOBE:'pi pi-globe',
  26889. GOOGLE:'pi pi-google',
  26890. HASHTAG:'pi pi-hashtag',
  26891. HEART:'pi pi-heart',
  26892. HEART_FILL:'pi pi-heart-fill',
  26893. HISTORY:'pi pi-history',
  26894. HOME:'pi pi-home',
  26895. ID_CARD:'pi pi-id-card',
  26896. IMAGE:'pi pi-image',
  26897. IMAGES:'pi pi-images',
  26898. INBOX:'pi pi-inbox',
  26899. INFO:'pi pi-info',
  26900. INFO_CIRCLE:'pi pi-info-circle',
  26901. INSTAGRAM:'pi pi-instagram',
  26902. KEY:'pi pi-key',
  26903. LINK:'pi pi-link',
  26904. LINKEDIN:'pi pi-linkedin',
  26905. LIST:'pi pi-list',
  26906. LOCK:'pi pi-lock',
  26907. LOCK_OPEN:'pi pi-lock-open',
  26908. MAP:'pi pi-map',
  26909. MAP_MARKER:'pi pi-map-marker',
  26910. MICROSOFT:'pi pi-microsoft',
  26911. MINUS:'pi pi-minus',
  26912. MINUS_CIRCLE:'pi pi-minus-circle',
  26913. MOBILE:'pi pi-mobile',
  26914. MONEY_BILL:'pi pi-money-bill',
  26915. MOON:'pi pi-moon',
  26916. PALETTE:'pi pi-palette',
  26917. PAPERCLIP:'pi pi-paperclip',
  26918. PAUSE:'pi pi-pause',
  26919. PAYPAL:'pi pi-paypal',
  26920. PENCIL:'pi pi-pencil',
  26921. PERCENTAGE:'pi pi-percentage',
  26922. PHONE:'pi pi-phone',
  26923. PLAY:'pi pi-play',
  26924. PLUS:'pi pi-plus',
  26925. PLUS_CIRCLE:'pi pi-plus-circle',
  26926. POUND:'pi pi-pound',
  26927. POWER_OFF:'pi pi-power-off',
  26928. PRIME:'pi pi-prime',
  26929. PRINT:'pi pi-print',
  26930. QRCODE:'pi pi-qrcode',
  26931. QUESTION:'pi pi-question',
  26932. QUESTION_CIRCLE:'pi pi-question-circle',
  26933. REDDIT:'pi pi-reddit',
  26934. REFRESH:'pi pi-refresh',
  26935. REPLAY:'pi pi-replay',
  26936. REPLY:'pi pi-reply',
  26937. SAVE:'pi pi-save',
  26938. SEARCH:'pi pi-search',
  26939. SEARCH_MINUS:'pi pi-search-minus',
  26940. SEARCH_PLUS:'pi pi-search-plus',
  26941. SEND:'pi pi-send',
  26942. SERVER:'pi pi-server',
  26943. SHARE_ALT:'pi pi-share-alt',
  26944. SHIELD:'pi pi-shield',
  26945. SHOPPING_BAG:'pi pi-shopping-bag',
  26946. SHOPPING_CART:'pi pi-shopping-cart',
  26947. SIGN_IN:'pi pi-sign-in',
  26948. SIGN_OUT:'pi pi-sign-out',
  26949. SITEMAP:'pi pi-sitemap',
  26950. SLACK:'pi pi-slack',
  26951. SLIDERS_H:'pi pi-sliders-h',
  26952. SLIDERS_V:'pi pi-sliders-v',
  26953. SORT:'pi pi-sort',
  26954. SORT_ALPHA_DOWN:'pi pi-sort-alpha-down',
  26955. SORT_ALPHA_ALT_DOWN:'pi pi-sort-alpha-alt-down',
  26956. SORT_ALPHA_UP:'pi pi-sort-alpha-up',
  26957. SORT_ALPHA_ALT_UP:'pi pi-sort-alpha-alt-up',
  26958. SORT_ALT:'pi pi-sort-alt',
  26959. SORT_ALT_SLASH:'pi pi-sort-slash',
  26960. SORT_AMOUNT_DOWN:'pi pi-sort-amount-down',
  26961. SORT_AMOUNT_DOWN_ALT:'pi pi-sort-amount-down-alt',
  26962. SORT_AMOUNT_UP:'pi pi-sort-amount-up',
  26963. SORT_AMOUNT_UP_ALT:'pi pi-sort-amount-up-alt',
  26964. SORT_DOWN:'pi pi-sort-down',
  26965. SORT_NUMERIC_DOWN:'pi pi-sort-numeric-down',
  26966. SORT_NUMERIC_ALT_DOWN:'pi pi-sort-numeric-alt-down',
  26967. SORT_NUMERIC_UP:'pi pi-sort-numeric-up',
  26968. SORT_NUMERIC_ALT_UP:'pi pi-sort-numeric-alt-up',
  26969. SORT_UP:'pi pi-sort-up',
  26970. SPINNER:'pi pi-spinner',
  26971. STAR:'pi pi-star',
  26972. STAR_FILL:'pi pi-star-fill',
  26973. STEP_BACKWARD:'pi pi-step-backward',
  26974. STEP_BACKWARD_ALT:'pi pi-step-backward-alt',
  26975. STEP_FORWARD:'pi pi-step-forward',
  26976. STEP_FORWARD_ALT:'pi pi-step-forward-alt',
  26977. STOP:'pi pi-stop',
  26978. STOP_CIRCLE:'pi pi-stop-circle',
  26979. SUN:'pi pi-sun',
  26980. SYNC:'pi pi-sync',
  26981. TABLE:'pi pi-table',
  26982. TABLET:'pi pi-tablet',
  26983. TAG:'pi pi-tag',
  26984. TAGS:'pi pi-tags',
  26985. TELEGRAM:'pi pi-telegram',
  26986. TH_LARGE:'pi pi-th-large',
  26987. THUMBS_DOWN:'pi pi-thumbs-down',
  26988. THUMBS_UP:'pi pi-thumbs-up',
  26989. TICKET:'pi pi-ticket',
  26990. TIMES:'pi pi-times',
  26991. TIMES_CIRCLE:'pi pi-times-circle',
  26992. TRASH:'pi pi-trash',
  26993. TWITTER:'pi pi-twitter',
  26994. UNDO:'pi pi-undo',
  26995. UNLOCK:'pi pi-unlock',
  26996. UPLOAD:'pi pi-upload',
  26997. USER:'pi pi-user',
  26998. USER_EDIT:'pi pi-user-edit',
  26999. USER_MINUS:'pi pi-user-minus',
  27000. USER_PLUS:'pi pi-user-plus',
  27001. USERS:'pi pi-users',
  27002. VIDEO:'pi pi-video',
  27003. VIMEO:'pi pi-vimeo',
  27004. VOLUME_DOWN:'pi pi-volume-down',
  27005. VOLUME_OFF:'pi pi-volume-off',
  27006. VOLUME_UP:'pi pi-volume-up',
  27007. WALLET:'pi pi-wallet',
  27008. WHATSAPP:'pi pi-whatsapp',
  27009. WIFI:'pi pi-wifi',
  27010. WINDOW_MAXIMIZE:'pi pi-window-maximize',
  27011. WINDOW_MINIMIZE:'pi pi-window-minimize',
  27012. YOUTUBE:'pi pi-youtube'
  27013. };
  27014. const ToastSeverities = {
  27015. INFO: 'info',
  27016. WARN: 'warn',
  27017. ERROR: 'error',
  27018. SUCCESS: 'success'
  27019. };
  27020. /***/ }),
  27021. /***/ "./node_modules/primevue/autocomplete/autocomplete.esm.js":
  27022. /*!****************************************************************!*\
  27023. !*** ./node_modules/primevue/autocomplete/autocomplete.esm.js ***!
  27024. \****************************************************************/
  27025. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  27026. "use strict";
  27027. __webpack_require__.r(__webpack_exports__);
  27028. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  27029. /* harmony export */ "default": () => (/* binding */ script)
  27030. /* harmony export */ });
  27031. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  27032. /* harmony import */ var primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/overlayeventbus */ "./node_modules/primevue/overlayeventbus/overlayeventbus.esm.js");
  27033. /* harmony import */ var primevue_button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! primevue/button */ "./node_modules/primevue/button/button.esm.js");
  27034. /* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! primevue/ripple */ "./node_modules/primevue/ripple/ripple.esm.js");
  27035. /* harmony import */ var primevue_virtualscroller__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! primevue/virtualscroller */ "./node_modules/primevue/virtualscroller/virtualscroller.esm.js");
  27036. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  27037. var script = {
  27038. name: 'AutoComplete',
  27039. inheritAttrs: false,
  27040. emits: ['update:modelValue', 'item-select', 'item-unselect', 'dropdown-click', 'clear', 'complete'],
  27041. props: {
  27042. modelValue: null,
  27043. suggestions: {
  27044. type: Array,
  27045. default: null
  27046. },
  27047. field: {
  27048. type: [String,Function],
  27049. default: null
  27050. },
  27051. optionGroupLabel: null,
  27052. optionGroupChildren: null,
  27053. scrollHeight: {
  27054. type: String,
  27055. default: '200px'
  27056. },
  27057. dropdown: {
  27058. type: Boolean,
  27059. default: false
  27060. },
  27061. dropdownMode: {
  27062. type: String,
  27063. default: 'blank'
  27064. },
  27065. autoHighlight: {
  27066. type: Boolean,
  27067. default: false
  27068. },
  27069. multiple: {
  27070. type: Boolean,
  27071. default: false
  27072. },
  27073. minLength: {
  27074. type: Number,
  27075. default: 1
  27076. },
  27077. delay: {
  27078. type: Number,
  27079. default: 300
  27080. },
  27081. appendTo: {
  27082. type: String,
  27083. default: 'body'
  27084. },
  27085. forceSelection: {
  27086. type: Boolean,
  27087. default: false
  27088. },
  27089. completeOnFocus: {
  27090. type: Boolean,
  27091. default: false
  27092. },
  27093. inputClass: null,
  27094. inputStyle: null,
  27095. class: null,
  27096. style: null,
  27097. panelClass: null,
  27098. virtualScrollerOptions: {
  27099. type: Object,
  27100. default: null
  27101. }
  27102. },
  27103. timeout: null,
  27104. outsideClickListener: null,
  27105. resizeListener: null,
  27106. scrollHandler: null,
  27107. overlay: null,
  27108. virtualScroller: null,
  27109. data() {
  27110. return {
  27111. searching: false,
  27112. focused: false,
  27113. overlayVisible: false,
  27114. inputTextValue: null,
  27115. highlightItem: null
  27116. };
  27117. },
  27118. watch: {
  27119. suggestions() {
  27120. if (this.searching) {
  27121. if (this.suggestions && this.suggestions.length)
  27122. this.showOverlay();
  27123. else
  27124. this.hideOverlay();
  27125. this.searching = false;
  27126. }
  27127. }
  27128. },
  27129. beforeUnmount() {
  27130. this.unbindOutsideClickListener();
  27131. this.unbindResizeListener();
  27132. if (this.scrollHandler) {
  27133. this.scrollHandler.destroy();
  27134. this.scrollHandler = null;
  27135. }
  27136. if (this.overlay) {
  27137. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(this.overlay);
  27138. this.overlay = null;
  27139. }
  27140. },
  27141. updated() {
  27142. if (this.overlayVisible) {
  27143. this.alignOverlay();
  27144. }
  27145. },
  27146. methods: {
  27147. getOptionIndex(index, fn) {
  27148. return this.virtualScrollerDisabled ? index : (fn && fn(index)['index']);
  27149. },
  27150. getOptionRenderKey(option) {
  27151. return this.getItemContent(option);
  27152. },
  27153. getOptionGroupRenderKey(optionGroup) {
  27154. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel);
  27155. },
  27156. getOptionGroupLabel(optionGroup) {
  27157. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel);
  27158. },
  27159. getOptionGroupChildren(optionGroup) {
  27160. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupChildren);
  27161. },
  27162. onOverlayEnter(el) {
  27163. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.set('overlay', el, this.$primevue.config.zIndex.overlay);
  27164. this.alignOverlay();
  27165. this.bindOutsideClickListener();
  27166. this.bindScrollListener();
  27167. this.bindResizeListener();
  27168. if (this.autoHighlight && this.suggestions && this.suggestions.length) {
  27169. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(this.list.firstElementChild, 'p-highlight');
  27170. }
  27171. },
  27172. onOverlayLeave() {
  27173. this.unbindOutsideClickListener();
  27174. this.unbindScrollListener();
  27175. this.unbindResizeListener();
  27176. this.overlay = null;
  27177. },
  27178. onOverlayAfterLeave(el) {
  27179. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(el);
  27180. },
  27181. alignOverlay() {
  27182. let target = this.multiple ? this.$refs.multiContainer : this.$refs.input;
  27183. if (this.appendDisabled) {
  27184. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.relativePosition(this.overlay, target);
  27185. }
  27186. else {
  27187. this.overlay.style.minWidth = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(target) + 'px';
  27188. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.absolutePosition(this.overlay, target);
  27189. }
  27190. },
  27191. bindOutsideClickListener() {
  27192. if (!this.outsideClickListener) {
  27193. this.outsideClickListener = (event) => {
  27194. if (this.overlayVisible && this.overlay && this.isOutsideClicked(event)) {
  27195. this.hideOverlay();
  27196. }
  27197. };
  27198. document.addEventListener('click', this.outsideClickListener);
  27199. }
  27200. },
  27201. bindScrollListener() {
  27202. if (!this.scrollHandler) {
  27203. this.scrollHandler = new primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ConnectedOverlayScrollHandler(this.$refs.container, () => {
  27204. if (this.overlayVisible) {
  27205. this.hideOverlay();
  27206. }
  27207. });
  27208. }
  27209. this.scrollHandler.bindScrollListener();
  27210. },
  27211. unbindScrollListener() {
  27212. if (this.scrollHandler) {
  27213. this.scrollHandler.unbindScrollListener();
  27214. }
  27215. },
  27216. bindResizeListener() {
  27217. if (!this.resizeListener) {
  27218. this.resizeListener = () => {
  27219. if (this.overlayVisible) {
  27220. this.hideOverlay();
  27221. }
  27222. };
  27223. window.addEventListener('resize', this.resizeListener);
  27224. }
  27225. },
  27226. unbindResizeListener() {
  27227. if (this.resizeListener) {
  27228. window.removeEventListener('resize', this.resizeListener);
  27229. this.resizeListener = null;
  27230. }
  27231. },
  27232. isOutsideClicked(event) {
  27233. return !this.overlay.contains(event.target) && !this.isInputClicked(event) && !this.isDropdownClicked(event);
  27234. },
  27235. isInputClicked(event) {
  27236. if (this.multiple)
  27237. return event.target === this.$refs.multiContainer || this.$refs.multiContainer.contains(event.target);
  27238. else
  27239. return event.target === this.$refs.input;
  27240. },
  27241. isDropdownClicked(event) {
  27242. return this.$refs.dropdownButton ? (event.target === this.$refs.dropdownButton || this.$refs.dropdownButton.$el.contains(event.target)) : false;
  27243. },
  27244. unbindOutsideClickListener() {
  27245. if (this.outsideClickListener) {
  27246. document.removeEventListener('click', this.outsideClickListener);
  27247. this.outsideClickListener = null;
  27248. }
  27249. },
  27250. selectItem(event, item) {
  27251. if (this.multiple) {
  27252. this.$refs.input.value = '';
  27253. this.inputTextValue = '';
  27254. if (!this.isSelected(item)) {
  27255. let newValue = this.modelValue ? [...this.modelValue, item] : [item];
  27256. this.$emit('update:modelValue', newValue);
  27257. }
  27258. }
  27259. else {
  27260. this.$emit('update:modelValue', item);
  27261. }
  27262. this.$emit('item-select', {
  27263. originalEvent: event,
  27264. value: item
  27265. });
  27266. this.focus();
  27267. this.hideOverlay();
  27268. },
  27269. onMultiContainerClick(event) {
  27270. this.focus();
  27271. if(this.completeOnFocus) {
  27272. this.search(event, '', 'click');
  27273. }
  27274. },
  27275. removeItem(event, index) {
  27276. let removedValue = this.modelValue[index];
  27277. let newValue = this.modelValue.filter((val, i) => (index !== i));
  27278. this.$emit('update:modelValue', newValue);
  27279. this.$emit('item-unselect', {
  27280. originalEvent: event,
  27281. value: removedValue
  27282. });
  27283. },
  27284. onDropdownClick(event) {
  27285. this.focus();
  27286. const query = this.$refs.input.value;
  27287. if (this.dropdownMode === 'blank')
  27288. this.search(event, '', 'dropdown');
  27289. else if (this.dropdownMode === 'current')
  27290. this.search(event, query, 'dropdown');
  27291. this.$emit('dropdown-click', {
  27292. originalEvent: event,
  27293. query: query
  27294. });
  27295. },
  27296. getItemContent(item) {
  27297. return this.field ? primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(item, this.field) : item;
  27298. },
  27299. showOverlay() {
  27300. this.overlayVisible = true;
  27301. },
  27302. hideOverlay() {
  27303. this.overlayVisible = false;
  27304. },
  27305. focus() {
  27306. this.$refs.input.focus();
  27307. },
  27308. search(event, query, source) {
  27309. //allow empty string but not undefined or null
  27310. if (query === undefined || query === null) {
  27311. return;
  27312. }
  27313. //do not search blank values on input change
  27314. if (source === 'input' && query.trim().length === 0) {
  27315. return;
  27316. }
  27317. this.searching = true;
  27318. this.$emit('complete', {
  27319. originalEvent: event,
  27320. query: query
  27321. });
  27322. },
  27323. onInputClicked(event) {
  27324. if(this.completeOnFocus) {
  27325. this.search(event, '', 'click');
  27326. }
  27327. },
  27328. onInput(event) {
  27329. this.inputTextValue = event.target.value;
  27330. if (this.timeout) {
  27331. clearTimeout(this.timeout);
  27332. }
  27333. let query = event.target.value;
  27334. if (!this.multiple) {
  27335. this.$emit('update:modelValue', query);
  27336. }
  27337. if (query.length === 0) {
  27338. this.hideOverlay();
  27339. this.$emit('clear');
  27340. }
  27341. else {
  27342. if (query.length >= this.minLength) {
  27343. this.timeout = setTimeout(() => {
  27344. this.search(event, query, 'input');
  27345. }, this.delay);
  27346. }
  27347. else {
  27348. this.hideOverlay();
  27349. }
  27350. }
  27351. },
  27352. onFocus() {
  27353. this.focused = true;
  27354. },
  27355. onBlur() {
  27356. this.focused = false;
  27357. },
  27358. onKeyDown(event) {
  27359. if (this.overlayVisible) {
  27360. let highlightItem = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.list, 'li.p-highlight');
  27361. switch(event.which) {
  27362. //down
  27363. case 40:
  27364. if (highlightItem) {
  27365. let nextElement = this.findNextItem(highlightItem);
  27366. if (nextElement) {
  27367. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(nextElement, 'p-highlight');
  27368. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(highlightItem, 'p-highlight');
  27369. nextElement.scrollIntoView({ block: 'nearest', inline: 'start' });
  27370. }
  27371. }
  27372. else {
  27373. highlightItem = this.list.firstElementChild;
  27374. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(highlightItem, 'p-autocomplete-item-group')) {
  27375. highlightItem = this.findNextItem(highlightItem);
  27376. }
  27377. if (highlightItem) {
  27378. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(highlightItem, 'p-highlight');
  27379. }
  27380. }
  27381. event.preventDefault();
  27382. break;
  27383. //up
  27384. case 38:
  27385. if (highlightItem) {
  27386. let previousElement = this.findPrevItem(highlightItem);
  27387. if (previousElement) {
  27388. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(previousElement, 'p-highlight');
  27389. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(highlightItem, 'p-highlight');
  27390. previousElement.scrollIntoView({ block: 'nearest', inline: 'start' });
  27391. }
  27392. }
  27393. event.preventDefault();
  27394. break;
  27395. //enter
  27396. case 13:
  27397. if (highlightItem) {
  27398. this.selectHighlightItem(event, highlightItem);
  27399. this.hideOverlay();
  27400. }
  27401. event.preventDefault();
  27402. break;
  27403. //escape
  27404. case 27:
  27405. this.hideOverlay();
  27406. event.preventDefault();
  27407. break;
  27408. //tab
  27409. case 9:
  27410. if (highlightItem) {
  27411. this.selectHighlightItem(event, highlightItem);
  27412. }
  27413. this.hideOverlay();
  27414. break;
  27415. }
  27416. }
  27417. if (this.multiple) {
  27418. switch(event.which) {
  27419. //backspace
  27420. case 8:
  27421. if (this.modelValue && this.modelValue.length && !this.$refs.input.value) {
  27422. let removedValue = this.modelValue[this.modelValue.length - 1];
  27423. let newValue = this.modelValue.slice(0, -1);
  27424. this.$emit('update:modelValue', newValue);
  27425. this.$emit('item-unselect', {
  27426. originalEvent: event,
  27427. value: removedValue
  27428. });
  27429. }
  27430. break;
  27431. }
  27432. }
  27433. },
  27434. selectHighlightItem(event, item) {
  27435. if (this.optionGroupLabel) {
  27436. let optionGroup = this.suggestions[item.dataset.group];
  27437. this.selectItem(event, this.getOptionGroupChildren(optionGroup)[item.dataset.index]);
  27438. }
  27439. else {
  27440. this.selectItem(event, this.suggestions[item.dataset.index]);
  27441. }
  27442. },
  27443. findNextItem(item) {
  27444. let nextItem = item.nextElementSibling;
  27445. if (nextItem)
  27446. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(nextItem, 'p-autocomplete-item-group') ? this.findNextItem(nextItem) : nextItem;
  27447. else
  27448. return null;
  27449. },
  27450. findPrevItem(item) {
  27451. let prevItem = item.previousElementSibling;
  27452. if (prevItem)
  27453. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(prevItem, 'p-autocomplete-item-group') ? this.findPrevItem(prevItem) : prevItem;
  27454. else
  27455. return null;
  27456. },
  27457. onChange(event) {
  27458. if (this.forceSelection) {
  27459. let valid = false;
  27460. let inputValue = event.target.value.trim();
  27461. if (this.suggestions) {
  27462. for (let item of this.suggestions) {
  27463. let itemValue = this.field ? primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(item, this.field) : item;
  27464. if (itemValue && inputValue === itemValue.trim()) {
  27465. valid = true;
  27466. this.selectItem(event, item);
  27467. break;
  27468. }
  27469. }
  27470. }
  27471. if (!valid) {
  27472. this.$refs.input.value = '';
  27473. this.inputTextValue = '';
  27474. this.$emit('clear');
  27475. if (!this.multiple) {
  27476. this.$emit('update:modelValue', null);
  27477. }
  27478. }
  27479. }
  27480. },
  27481. isSelected(val) {
  27482. let selected = false;
  27483. if (this.modelValue && this.modelValue.length) {
  27484. for (let i = 0; i < this.modelValue.length; i++) {
  27485. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.equals(this.modelValue[i], val)) {
  27486. selected = true;
  27487. break;
  27488. }
  27489. }
  27490. }
  27491. return selected;
  27492. },
  27493. overlayRef(el) {
  27494. this.overlay = el;
  27495. },
  27496. listRef(el, contentRef) {
  27497. this.list = el;
  27498. contentRef && contentRef(el); // for virtualScroller
  27499. },
  27500. virtualScrollerRef(el) {
  27501. this.virtualScroller = el;
  27502. },
  27503. onOverlayClick(event) {
  27504. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_1__["default"].emit('overlay-click', {
  27505. originalEvent: event,
  27506. target: this.$el
  27507. });
  27508. }
  27509. },
  27510. computed: {
  27511. containerClass() {
  27512. return ['p-autocomplete p-component p-inputwrapper', this.class, {
  27513. 'p-autocomplete-dd': this.dropdown,
  27514. 'p-autocomplete-multiple': this.multiple,
  27515. 'p-inputwrapper-filled': ((this.modelValue) || (this.inputTextValue && this.inputTextValue.length)),
  27516. 'p-inputwrapper-focus': this.focused
  27517. }];
  27518. },
  27519. inputFieldClass() {
  27520. return ['p-autocomplete-input p-inputtext p-component', this.inputClass, {
  27521. 'p-autocomplete-dd-input': this.dropdown,
  27522. 'p-disabled': this.$attrs.disabled
  27523. }];
  27524. },
  27525. multiContainerClass() {
  27526. return ['p-autocomplete-multiple-container p-component p-inputtext', {
  27527. 'p-disabled': this.$attrs.disabled,
  27528. 'p-focus': this.focused
  27529. }];
  27530. },
  27531. panelStyleClass() {
  27532. return [
  27533. 'p-autocomplete-panel p-component', this.panelClass, {
  27534. 'p-input-filled': this.$primevue.config.inputStyle === 'filled',
  27535. 'p-ripple-disabled': this.$primevue.config.ripple === false
  27536. }];
  27537. },
  27538. inputValue() {
  27539. if (this.modelValue) {
  27540. if (this.field && typeof this.modelValue === 'object') {
  27541. const resolvedFieldData = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(this.modelValue, this.field);
  27542. return resolvedFieldData != null ? resolvedFieldData : this.modelValue;
  27543. }
  27544. else
  27545. return this.modelValue;
  27546. }
  27547. else {
  27548. return '';
  27549. }
  27550. },
  27551. listId() {
  27552. return (0,primevue_utils__WEBPACK_IMPORTED_MODULE_0__.UniqueComponentId)() + '_list';
  27553. },
  27554. appendDisabled() {
  27555. return this.appendTo === 'self';
  27556. },
  27557. appendTarget() {
  27558. return this.appendDisabled ? null : this.appendTo;
  27559. },
  27560. virtualScrollerDisabled() {
  27561. return !this.virtualScrollerOptions;
  27562. }
  27563. },
  27564. components: {
  27565. 'Button': primevue_button__WEBPACK_IMPORTED_MODULE_2__["default"],
  27566. 'VirtualScroller': primevue_virtualscroller__WEBPACK_IMPORTED_MODULE_4__["default"]
  27567. },
  27568. directives: {
  27569. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_3__["default"]
  27570. }
  27571. };
  27572. const _hoisted_1 = ["aria-owns", "aria-expanded"];
  27573. const _hoisted_2 = ["value", "aria-controls"];
  27574. const _hoisted_3 = { class: "p-autocomplete-token-label" };
  27575. const _hoisted_4 = ["onClick"];
  27576. const _hoisted_5 = { class: "p-autocomplete-input-token" };
  27577. const _hoisted_6 = ["aria-controls"];
  27578. const _hoisted_7 = {
  27579. key: 2,
  27580. class: "p-autocomplete-loader pi pi-spinner pi-spin"
  27581. };
  27582. const _hoisted_8 = ["id"];
  27583. const _hoisted_9 = ["onClick", "data-index"];
  27584. const _hoisted_10 = { class: "p-autocomplete-item-group" };
  27585. const _hoisted_11 = ["onClick", "data-group", "data-index"];
  27586. function render(_ctx, _cache, $props, $setup, $data, $options) {
  27587. const _component_Button = (0,vue__WEBPACK_IMPORTED_MODULE_5__.resolveComponent)("Button");
  27588. const _component_VirtualScroller = (0,vue__WEBPACK_IMPORTED_MODULE_5__.resolveComponent)("VirtualScroller");
  27589. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_5__.resolveDirective)("ripple");
  27590. return ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementBlock)("span", {
  27591. ref: "container",
  27592. class: (0,vue__WEBPACK_IMPORTED_MODULE_5__.normalizeClass)($options.containerClass),
  27593. "aria-haspopup": "listbox",
  27594. "aria-owns": $options.listId,
  27595. "aria-expanded": $data.overlayVisible,
  27596. style: (0,vue__WEBPACK_IMPORTED_MODULE_5__.normalizeStyle)($props.style)
  27597. }, [
  27598. (!$props.multiple)
  27599. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementBlock)("input", (0,vue__WEBPACK_IMPORTED_MODULE_5__.mergeProps)({
  27600. key: 0,
  27601. ref: "input",
  27602. class: $options.inputFieldClass,
  27603. style: $props.inputStyle
  27604. }, _ctx.$attrs, {
  27605. value: $options.inputValue,
  27606. onClick: _cache[0] || (_cache[0] = (...args) => ($options.onInputClicked && $options.onInputClicked(...args))),
  27607. onInput: _cache[1] || (_cache[1] = (...args) => ($options.onInput && $options.onInput(...args))),
  27608. onFocus: _cache[2] || (_cache[2] = (...args) => ($options.onFocus && $options.onFocus(...args))),
  27609. onBlur: _cache[3] || (_cache[3] = (...args) => ($options.onBlur && $options.onBlur(...args))),
  27610. onKeydown: _cache[4] || (_cache[4] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args))),
  27611. onChange: _cache[5] || (_cache[5] = (...args) => ($options.onChange && $options.onChange(...args))),
  27612. type: "text",
  27613. autoComplete: "off",
  27614. role: "searchbox",
  27615. "aria-autocomplete": "list",
  27616. "aria-controls": $options.listId
  27617. }), null, 16, _hoisted_2))
  27618. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true),
  27619. ($props.multiple)
  27620. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementBlock)("ul", {
  27621. key: 1,
  27622. ref: "multiContainer",
  27623. class: (0,vue__WEBPACK_IMPORTED_MODULE_5__.normalizeClass)($options.multiContainerClass),
  27624. onClick: _cache[11] || (_cache[11] = (...args) => ($options.onMultiContainerClick && $options.onMultiContainerClick(...args)))
  27625. }, [
  27626. ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderList)($props.modelValue, (item, i) => {
  27627. return ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementBlock)("li", {
  27628. key: i,
  27629. class: "p-autocomplete-token"
  27630. }, [
  27631. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "chip", { value: item }, () => [
  27632. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementVNode)("span", _hoisted_3, (0,vue__WEBPACK_IMPORTED_MODULE_5__.toDisplayString)($options.getItemContent(item)), 1)
  27633. ]),
  27634. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementVNode)("span", {
  27635. class: "p-autocomplete-token-icon pi pi-times-circle",
  27636. onClick: $event => ($options.removeItem($event, i))
  27637. }, null, 8, _hoisted_4)
  27638. ]))
  27639. }), 128)),
  27640. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementVNode)("li", _hoisted_5, [
  27641. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementVNode)("input", (0,vue__WEBPACK_IMPORTED_MODULE_5__.mergeProps)({
  27642. ref: "input",
  27643. type: "text",
  27644. autoComplete: "off"
  27645. }, _ctx.$attrs, {
  27646. onInput: _cache[6] || (_cache[6] = (...args) => ($options.onInput && $options.onInput(...args))),
  27647. onFocus: _cache[7] || (_cache[7] = (...args) => ($options.onFocus && $options.onFocus(...args))),
  27648. onBlur: _cache[8] || (_cache[8] = (...args) => ($options.onBlur && $options.onBlur(...args))),
  27649. onKeydown: _cache[9] || (_cache[9] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args))),
  27650. onChange: _cache[10] || (_cache[10] = (...args) => ($options.onChange && $options.onChange(...args))),
  27651. role: "searchbox",
  27652. "aria-autocomplete": "list",
  27653. "aria-controls": $options.listId
  27654. }), null, 16, _hoisted_6)
  27655. ])
  27656. ], 2))
  27657. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true),
  27658. ($data.searching)
  27659. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementBlock)("i", _hoisted_7))
  27660. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true),
  27661. ($props.dropdown)
  27662. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)(_component_Button, {
  27663. key: 3,
  27664. ref: "dropdownButton",
  27665. type: "button",
  27666. icon: "pi pi-chevron-down",
  27667. class: "p-autocomplete-dropdown",
  27668. disabled: _ctx.$attrs.disabled,
  27669. onClick: $options.onDropdownClick
  27670. }, null, 8, ["disabled", "onClick"]))
  27671. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true),
  27672. ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Teleport, {
  27673. to: $options.appendTarget,
  27674. disabled: $options.appendDisabled
  27675. }, [
  27676. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)(vue__WEBPACK_IMPORTED_MODULE_5__.Transition, {
  27677. name: "p-connected-overlay",
  27678. onEnter: $options.onOverlayEnter,
  27679. onLeave: $options.onOverlayLeave,
  27680. onAfterLeave: $options.onOverlayAfterLeave
  27681. }, {
  27682. default: (0,vue__WEBPACK_IMPORTED_MODULE_5__.withCtx)(() => [
  27683. ($data.overlayVisible)
  27684. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementBlock)("div", {
  27685. key: 0,
  27686. ref: $options.overlayRef,
  27687. class: (0,vue__WEBPACK_IMPORTED_MODULE_5__.normalizeClass)($options.panelStyleClass),
  27688. style: (0,vue__WEBPACK_IMPORTED_MODULE_5__.normalizeStyle)({'max-height': $options.virtualScrollerDisabled ? $props.scrollHeight : ''}),
  27689. onClick: _cache[12] || (_cache[12] = (...args) => ($options.onOverlayClick && $options.onOverlayClick(...args)))
  27690. }, [
  27691. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "header", {
  27692. value: $props.modelValue,
  27693. suggestions: $props.suggestions
  27694. }),
  27695. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)(_component_VirtualScroller, (0,vue__WEBPACK_IMPORTED_MODULE_5__.mergeProps)({ ref: $options.virtualScrollerRef }, $props.virtualScrollerOptions, {
  27696. style: {'height': $props.scrollHeight},
  27697. items: $props.suggestions,
  27698. disabled: $options.virtualScrollerDisabled
  27699. }), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createSlots)({
  27700. content: (0,vue__WEBPACK_IMPORTED_MODULE_5__.withCtx)(({ styleClass, contentRef, items, getItemOptions, contentStyle }) => [
  27701. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementVNode)("ul", {
  27702. id: $options.listId,
  27703. ref: (el) => $options.listRef(el, contentRef),
  27704. class: (0,vue__WEBPACK_IMPORTED_MODULE_5__.normalizeClass)(['p-autocomplete-items', styleClass]),
  27705. style: (0,vue__WEBPACK_IMPORTED_MODULE_5__.normalizeStyle)(contentStyle),
  27706. role: "listbox"
  27707. }, [
  27708. (!$props.optionGroupLabel)
  27709. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Fragment, { key: 0 }, (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderList)(items, (item, i) => {
  27710. return (0,vue__WEBPACK_IMPORTED_MODULE_5__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementBlock)("li", {
  27711. class: "p-autocomplete-item",
  27712. key: $options.getOptionRenderKey(item),
  27713. onClick: $event => ($options.selectItem($event, item)),
  27714. role: "option",
  27715. "data-index": $options.getOptionIndex(i, getItemOptions)
  27716. }, [
  27717. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "item", {
  27718. item: item,
  27719. index: $options.getOptionIndex(i, getItemOptions)
  27720. }, () => [
  27721. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_5__.toDisplayString)($options.getItemContent(item)), 1)
  27722. ])
  27723. ], 8, _hoisted_9)), [
  27724. [_directive_ripple]
  27725. ])
  27726. }), 128))
  27727. : ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Fragment, { key: 1 }, (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderList)(items, (optionGroup, i) => {
  27728. return ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Fragment, {
  27729. key: $options.getOptionGroupRenderKey(optionGroup)
  27730. }, [
  27731. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementVNode)("li", _hoisted_10, [
  27732. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "optiongroup", {
  27733. item: optionGroup,
  27734. index: $options.getOptionIndex(i, getItemOptions)
  27735. }, () => [
  27736. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_5__.toDisplayString)($options.getOptionGroupLabel(optionGroup)), 1)
  27737. ])
  27738. ]),
  27739. ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderList)($options.getOptionGroupChildren(optionGroup), (item, j) => {
  27740. return (0,vue__WEBPACK_IMPORTED_MODULE_5__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementBlock)("li", {
  27741. class: "p-autocomplete-item",
  27742. key: j,
  27743. onClick: $event => ($options.selectItem($event, item)),
  27744. role: "option",
  27745. "data-group": i,
  27746. "data-index": $options.getOptionIndex(j, getItemOptions)
  27747. }, [
  27748. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "item", {
  27749. item: item,
  27750. index: $options.getOptionIndex(j, getItemOptions)
  27751. }, () => [
  27752. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_5__.toDisplayString)($options.getItemContent(item)), 1)
  27753. ])
  27754. ], 8, _hoisted_11)), [
  27755. [_directive_ripple]
  27756. ])
  27757. }), 128))
  27758. ], 64))
  27759. }), 128))
  27760. ], 14, _hoisted_8)
  27761. ]),
  27762. _: 2
  27763. }, [
  27764. (_ctx.$slots.loader)
  27765. ? {
  27766. name: "loader",
  27767. fn: (0,vue__WEBPACK_IMPORTED_MODULE_5__.withCtx)(({ options }) => [
  27768. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "loader", { options: options })
  27769. ])
  27770. }
  27771. : undefined
  27772. ]), 1040, ["style", "items", "disabled"]),
  27773. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "footer", {
  27774. value: $props.modelValue,
  27775. suggestions: $props.suggestions
  27776. })
  27777. ], 6))
  27778. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true)
  27779. ]),
  27780. _: 3
  27781. }, 8, ["onEnter", "onLeave", "onAfterLeave"])
  27782. ], 8, ["to", "disabled"]))
  27783. ], 14, _hoisted_1))
  27784. }
  27785. function styleInject(css, ref) {
  27786. if ( ref === void 0 ) ref = {};
  27787. var insertAt = ref.insertAt;
  27788. if (!css || typeof document === 'undefined') { return; }
  27789. var head = document.head || document.getElementsByTagName('head')[0];
  27790. var style = document.createElement('style');
  27791. style.type = 'text/css';
  27792. if (insertAt === 'top') {
  27793. if (head.firstChild) {
  27794. head.insertBefore(style, head.firstChild);
  27795. } else {
  27796. head.appendChild(style);
  27797. }
  27798. } else {
  27799. head.appendChild(style);
  27800. }
  27801. if (style.styleSheet) {
  27802. style.styleSheet.cssText = css;
  27803. } else {
  27804. style.appendChild(document.createTextNode(css));
  27805. }
  27806. }
  27807. var css_248z = "\n.p-autocomplete {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n position: relative;\n}\n.p-autocomplete-loader {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n}\n.p-autocomplete-dd .p-autocomplete-input {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n width: 1%;\n}\n.p-autocomplete-dd .p-autocomplete-input,\n.p-autocomplete-dd .p-autocomplete-multiple-container {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-autocomplete-dd .p-autocomplete-dropdown {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0px;\n}\n.p-autocomplete .p-autocomplete-panel {\n min-width: 100%;\n}\n.p-autocomplete-panel {\n position: absolute;\n overflow: auto;\n top: 0;\n left: 0;\n}\n.p-autocomplete-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n}\n.p-autocomplete-item {\n cursor: pointer;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n}\n.p-autocomplete-multiple-container {\n margin: 0;\n padding: 0;\n list-style-type: none;\n cursor: text;\n overflow: hidden;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n}\n.p-autocomplete-token {\n cursor: default;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-flex: 0;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n.p-autocomplete-token-icon {\n cursor: pointer;\n}\n.p-autocomplete-input-token {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n}\n.p-autocomplete-input-token input {\n border: 0 none;\n outline: 0 none;\n background-color: transparent;\n margin: 0;\n padding: 0;\n -webkit-box-shadow: none;\n box-shadow: none;\n border-radius: 0;\n width: 100%;\n}\n.p-fluid .p-autocomplete {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-fluid .p-autocomplete-dd .p-autocomplete-input {\n width: 1%;\n}\n";
  27808. styleInject(css_248z);
  27809. script.render = render;
  27810. /***/ }),
  27811. /***/ "./node_modules/primevue/badge/badge.esm.js":
  27812. /*!**************************************************!*\
  27813. !*** ./node_modules/primevue/badge/badge.esm.js ***!
  27814. \**************************************************/
  27815. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  27816. "use strict";
  27817. __webpack_require__.r(__webpack_exports__);
  27818. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  27819. /* harmony export */ "default": () => (/* binding */ script)
  27820. /* harmony export */ });
  27821. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  27822. var script = {
  27823. name: 'Badge',
  27824. props: {
  27825. value: null,
  27826. severity: null,
  27827. size: null
  27828. },
  27829. computed: {
  27830. containerClass() {
  27831. return this.$slots.default ? 'p-overlay-badge': this.badgeClass;
  27832. },
  27833. badgeClass() {
  27834. return ['p-badge p-component', {
  27835. 'p-badge-no-gutter': this.value && String(this.value).length === 1,
  27836. 'p-badge-dot': !this.value && !this.$slots.default,
  27837. 'p-badge-lg': this.size === 'large',
  27838. 'p-badge-xl': this.size === 'xlarge',
  27839. 'p-badge-info': this.severity === 'info',
  27840. 'p-badge-success': this.severity === 'success',
  27841. 'p-badge-warning': this.severity === 'warning',
  27842. 'p-badge-danger': this.severity === 'danger'
  27843. }];
  27844. }
  27845. }
  27846. };
  27847. function render(_ctx, _cache, $props, $setup, $data, $options) {
  27848. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("span", {
  27849. class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)($options.badgeClass)
  27850. }, [
  27851. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "default", {}, () => [
  27852. (0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($props.value), 1)
  27853. ])
  27854. ], 2))
  27855. }
  27856. script.render = render;
  27857. /***/ }),
  27858. /***/ "./node_modules/primevue/button/button.esm.js":
  27859. /*!****************************************************!*\
  27860. !*** ./node_modules/primevue/button/button.esm.js ***!
  27861. \****************************************************/
  27862. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  27863. "use strict";
  27864. __webpack_require__.r(__webpack_exports__);
  27865. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  27866. /* harmony export */ "default": () => (/* binding */ script)
  27867. /* harmony export */ });
  27868. /* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/ripple */ "./node_modules/primevue/ripple/ripple.esm.js");
  27869. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  27870. var script = {
  27871. name: 'Button',
  27872. props: {
  27873. label: {
  27874. type: String
  27875. },
  27876. icon: {
  27877. type: String
  27878. },
  27879. iconPos: {
  27880. type: String,
  27881. default: 'left'
  27882. },
  27883. badge: {
  27884. type: String
  27885. },
  27886. badgeClass: {
  27887. type: String,
  27888. default: null
  27889. },
  27890. loading: {
  27891. type: Boolean,
  27892. default: false
  27893. },
  27894. loadingIcon: {
  27895. type: String,
  27896. default: 'pi pi-spinner pi-spin'
  27897. }
  27898. },
  27899. computed: {
  27900. buttonClass() {
  27901. return {
  27902. 'p-button p-component': true,
  27903. 'p-button-icon-only': this.icon && !this.label,
  27904. 'p-button-vertical': (this.iconPos === 'top' || this.iconPos === 'bottom') && this.label,
  27905. 'p-disabled': this.$attrs.disabled || this.loading,
  27906. 'p-button-loading': this.loading,
  27907. 'p-button-loading-label-only': this.loading && !this.icon && this.label
  27908. }
  27909. },
  27910. iconClass() {
  27911. return [
  27912. this.loading ? 'p-button-loading-icon ' + this.loadingIcon : this.icon,
  27913. 'p-button-icon',
  27914. {
  27915. 'p-button-icon-left': this.iconPos === 'left' && this.label,
  27916. 'p-button-icon-right': this.iconPos === 'right' && this.label,
  27917. 'p-button-icon-top': this.iconPos === 'top' && this.label,
  27918. 'p-button-icon-bottom': this.iconPos === 'bottom' && this.label
  27919. }
  27920. ]
  27921. },
  27922. badgeStyleClass() {
  27923. return [
  27924. 'p-badge p-component', this.badgeClass, {
  27925. 'p-badge-no-gutter': this.badge && String(this.badge).length === 1
  27926. }]
  27927. },
  27928. disabled() {
  27929. return this.$attrs.disabled || this.loading;
  27930. }
  27931. },
  27932. directives: {
  27933. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_0__["default"]
  27934. }
  27935. };
  27936. const _hoisted_1 = ["disabled"];
  27937. const _hoisted_2 = { class: "p-button-label" };
  27938. function render(_ctx, _cache, $props, $setup, $data, $options) {
  27939. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_1__.resolveDirective)("ripple");
  27940. return (0,vue__WEBPACK_IMPORTED_MODULE_1__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_1__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_1__.createElementBlock)("button", {
  27941. class: (0,vue__WEBPACK_IMPORTED_MODULE_1__.normalizeClass)($options.buttonClass),
  27942. type: "button",
  27943. disabled: $options.disabled
  27944. }, [
  27945. (0,vue__WEBPACK_IMPORTED_MODULE_1__.renderSlot)(_ctx.$slots, "default", {}, () => [
  27946. ($props.loading && !$props.icon)
  27947. ? ((0,vue__WEBPACK_IMPORTED_MODULE_1__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_1__.createElementBlock)("span", {
  27948. key: 0,
  27949. class: (0,vue__WEBPACK_IMPORTED_MODULE_1__.normalizeClass)($options.iconClass)
  27950. }, null, 2))
  27951. : (0,vue__WEBPACK_IMPORTED_MODULE_1__.createCommentVNode)("", true),
  27952. ($props.icon)
  27953. ? ((0,vue__WEBPACK_IMPORTED_MODULE_1__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_1__.createElementBlock)("span", {
  27954. key: 1,
  27955. class: (0,vue__WEBPACK_IMPORTED_MODULE_1__.normalizeClass)($options.iconClass)
  27956. }, null, 2))
  27957. : (0,vue__WEBPACK_IMPORTED_MODULE_1__.createCommentVNode)("", true),
  27958. (0,vue__WEBPACK_IMPORTED_MODULE_1__.createElementVNode)("span", _hoisted_2, (0,vue__WEBPACK_IMPORTED_MODULE_1__.toDisplayString)($props.label||' '), 1),
  27959. ($props.badge)
  27960. ? ((0,vue__WEBPACK_IMPORTED_MODULE_1__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_1__.createElementBlock)("span", {
  27961. key: 2,
  27962. class: (0,vue__WEBPACK_IMPORTED_MODULE_1__.normalizeClass)($options.badgeStyleClass)
  27963. }, (0,vue__WEBPACK_IMPORTED_MODULE_1__.toDisplayString)($props.badge), 3))
  27964. : (0,vue__WEBPACK_IMPORTED_MODULE_1__.createCommentVNode)("", true)
  27965. ])
  27966. ], 10, _hoisted_1)), [
  27967. [_directive_ripple]
  27968. ])
  27969. }
  27970. script.render = render;
  27971. /***/ }),
  27972. /***/ "./node_modules/primevue/calendar/calendar.esm.js":
  27973. /*!********************************************************!*\
  27974. !*** ./node_modules/primevue/calendar/calendar.esm.js ***!
  27975. \********************************************************/
  27976. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  27977. "use strict";
  27978. __webpack_require__.r(__webpack_exports__);
  27979. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  27980. /* harmony export */ "default": () => (/* binding */ script)
  27981. /* harmony export */ });
  27982. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  27983. /* harmony import */ var primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/overlayeventbus */ "./node_modules/primevue/overlayeventbus/overlayeventbus.esm.js");
  27984. /* harmony import */ var primevue_button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! primevue/button */ "./node_modules/primevue/button/button.esm.js");
  27985. /* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! primevue/ripple */ "./node_modules/primevue/ripple/ripple.esm.js");
  27986. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  27987. var script = {
  27988. name: 'Calendar',
  27989. inheritAttrs: false,
  27990. emits: ['show', 'hide', 'input', 'month-change', 'year-change', 'date-select', 'update:modelValue', 'today-click', 'clear-click', 'focus', 'blur', 'keydown'],
  27991. props: {
  27992. modelValue: null,
  27993. selectionMode: {
  27994. type: String,
  27995. default: 'single'
  27996. },
  27997. dateFormat: {
  27998. type: String,
  27999. default: null
  28000. },
  28001. inline: {
  28002. type: Boolean,
  28003. default: false
  28004. },
  28005. showOtherMonths: {
  28006. type: Boolean,
  28007. default: true
  28008. },
  28009. selectOtherMonths: {
  28010. type: Boolean,
  28011. default: false
  28012. },
  28013. showIcon: {
  28014. type: Boolean,
  28015. default: false
  28016. },
  28017. icon: {
  28018. type: String,
  28019. default: 'pi pi-calendar'
  28020. },
  28021. numberOfMonths: {
  28022. type: Number,
  28023. default: 1
  28024. },
  28025. responsiveOptions: Array,
  28026. view: {
  28027. type: String,
  28028. default: 'date'
  28029. },
  28030. touchUI: {
  28031. type: Boolean,
  28032. default: false
  28033. },
  28034. monthNavigator: {
  28035. type: Boolean,
  28036. default: false
  28037. },
  28038. yearNavigator: {
  28039. type: Boolean,
  28040. default: false
  28041. },
  28042. yearRange: {
  28043. type: String,
  28044. default: null
  28045. },
  28046. panelClass: {
  28047. type: String,
  28048. default: null
  28049. },
  28050. minDate: {
  28051. type: Date,
  28052. value: null
  28053. },
  28054. maxDate: {
  28055. type: Date,
  28056. value: null
  28057. },
  28058. disabledDates: {
  28059. type: Array,
  28060. value: null
  28061. },
  28062. disabledDays: {
  28063. type: Array,
  28064. value: null
  28065. },
  28066. maxDateCount: {
  28067. type: Number,
  28068. value: null
  28069. },
  28070. showOnFocus: {
  28071. type: Boolean,
  28072. default: true
  28073. },
  28074. autoZIndex: {
  28075. type: Boolean,
  28076. default: true
  28077. },
  28078. baseZIndex: {
  28079. type: Number,
  28080. default: 0
  28081. },
  28082. showButtonBar: {
  28083. type: Boolean,
  28084. default: false
  28085. },
  28086. shortYearCutoff: {
  28087. type: String,
  28088. default: '+10'
  28089. },
  28090. showTime: {
  28091. type: Boolean,
  28092. default: false
  28093. },
  28094. timeOnly: {
  28095. type: Boolean,
  28096. default: false
  28097. },
  28098. hourFormat: {
  28099. type: String,
  28100. default: '24'
  28101. },
  28102. stepHour: {
  28103. type: Number,
  28104. default: 1
  28105. },
  28106. stepMinute: {
  28107. type: Number,
  28108. default: 1
  28109. },
  28110. stepSecond: {
  28111. type: Number,
  28112. default: 1
  28113. },
  28114. showSeconds: {
  28115. type: Boolean,
  28116. default: false
  28117. },
  28118. hideOnDateTimeSelect: {
  28119. type: Boolean,
  28120. default: false
  28121. },
  28122. timeSeparator: {
  28123. type: String,
  28124. default: ':'
  28125. },
  28126. showWeek: {
  28127. type: Boolean,
  28128. default: false
  28129. },
  28130. manualInput: {
  28131. type: Boolean,
  28132. default: true
  28133. },
  28134. appendTo: {
  28135. type: String,
  28136. default: 'body'
  28137. },
  28138. inputClass: null,
  28139. inputStyle: null,
  28140. class: null,
  28141. style: null
  28142. },
  28143. navigationState: null,
  28144. timePickerChange: false,
  28145. scrollHandler: null,
  28146. outsideClickListener: null,
  28147. maskClickListener: null,
  28148. resizeListener: null,
  28149. overlay: null,
  28150. input: null,
  28151. mask: null,
  28152. timePickerTimer: null,
  28153. preventFocus: false,
  28154. typeUpdate: false,
  28155. created() {
  28156. this.updateCurrentMetaData();
  28157. },
  28158. mounted() {
  28159. this.createResponsiveStyle();
  28160. if (this.inline) {
  28161. this.overlay && this.overlay.setAttribute(this.attributeSelector, '');
  28162. if (!this.$attrs.disabled) {
  28163. this.preventFocus = true;
  28164. this.initFocusableCell();
  28165. if (this.numberOfMonths === 1) {
  28166. this.overlay.style.width = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(this.$el) + 'px';
  28167. }
  28168. }
  28169. }
  28170. else {
  28171. this.input.value = this.formatValue(this.modelValue);
  28172. }
  28173. },
  28174. updated() {
  28175. if (this.overlay) {
  28176. this.preventFocus = true;
  28177. this.updateFocus();
  28178. }
  28179. if (this.input && this.selectionStart != null && this.selectionEnd != null) {
  28180. this.input.selectionStart = this.selectionStart;
  28181. this.input.selectionEnd = this.selectionEnd;
  28182. this.selectionStart = null;
  28183. this.selectionEnd = null;
  28184. }
  28185. },
  28186. beforeUnmount() {
  28187. if (this.timePickerTimer) {
  28188. clearTimeout(this.timePickerTimer);
  28189. }
  28190. if (this.mask) {
  28191. this.destroyMask();
  28192. }
  28193. this.destroyResponsiveStyleElement();
  28194. this.unbindOutsideClickListener();
  28195. this.unbindResizeListener();
  28196. if (this.scrollHandler) {
  28197. this.scrollHandler.destroy();
  28198. this.scrollHandler = null;
  28199. }
  28200. if (this.overlay && this.autoZIndex) {
  28201. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(this.overlay);
  28202. }
  28203. this.overlay = null;
  28204. },
  28205. data() {
  28206. return {
  28207. currentMonth: null,
  28208. currentYear: null,
  28209. currentHour: null,
  28210. currentMinute: null,
  28211. currentSecond: null,
  28212. pm: null,
  28213. focused: false,
  28214. overlayVisible: false,
  28215. currentView: this.view
  28216. }
  28217. },
  28218. watch: {
  28219. modelValue(newValue) {
  28220. this.updateCurrentMetaData();
  28221. if (!this.typeUpdate && !this.inline && this.input) {
  28222. this.input.value = this.formatValue(newValue);
  28223. }
  28224. this.typeUpdate = false;
  28225. },
  28226. showTime() {
  28227. this.updateCurrentMetaData();
  28228. },
  28229. months() {
  28230. if (this.overlay) {
  28231. if (!this.focused) {
  28232. setTimeout(this.updateFocus, 0);
  28233. }
  28234. }
  28235. },
  28236. numberOfMonths() {
  28237. this.destroyResponsiveStyleElement();
  28238. this.createResponsiveStyle();
  28239. },
  28240. responsiveOptions() {
  28241. this.destroyResponsiveStyleElement();
  28242. this.createResponsiveStyle();
  28243. },
  28244. currentView() {
  28245. Promise.resolve(null).then(() => this.alignOverlay());
  28246. }
  28247. },
  28248. methods: {
  28249. isComparable() {
  28250. return this.modelValue != null && typeof this.modelValue !== 'string';
  28251. },
  28252. isSelected(dateMeta) {
  28253. if (!this.isComparable()) {
  28254. return false;
  28255. }
  28256. if (this.modelValue) {
  28257. if (this.isSingleSelection()) {
  28258. return this.isDateEquals(this.modelValue, dateMeta);
  28259. }
  28260. else if (this.isMultipleSelection()) {
  28261. let selected = false;
  28262. for (let date of this.modelValue) {
  28263. selected = this.isDateEquals(date, dateMeta);
  28264. if (selected) {
  28265. break;
  28266. }
  28267. }
  28268. return selected;
  28269. }
  28270. else if( this.isRangeSelection()) {
  28271. if (this.modelValue[1])
  28272. return this.isDateEquals(this.modelValue[0], dateMeta) || this.isDateEquals(this.modelValue[1], dateMeta) || this.isDateBetween(this.modelValue[0], this.modelValue[1], dateMeta);
  28273. else {
  28274. return this.isDateEquals(this.modelValue[0], dateMeta);
  28275. }
  28276. }
  28277. }
  28278. return false;
  28279. },
  28280. isMonthSelected(month) {
  28281. if (this.isComparable()) {
  28282. let value = this.isRangeSelection() ? this.modelValue[0] : this.modelValue;
  28283. return !this.isMultipleSelection() ? (value.getMonth() === month && value.getFullYear() === this.currentYear) : false;
  28284. }
  28285. return false;
  28286. },
  28287. isYearSelected(year) {
  28288. if (this.isComparable()) {
  28289. let value = this.isRangeSelection() ? this.modelValue[0] : this.modelValue;
  28290. return !this.isMultipleSelection() && this.isComparable() ? (value.getFullYear() === year) : false;
  28291. }
  28292. return false;
  28293. },
  28294. isDateEquals(value, dateMeta) {
  28295. if (value)
  28296. return value.getDate() === dateMeta.day && value.getMonth() === dateMeta.month && value.getFullYear() === dateMeta.year;
  28297. else
  28298. return false;
  28299. },
  28300. isDateBetween(start, end, dateMeta) {
  28301. let between = false;
  28302. if (start && end) {
  28303. let date = new Date(dateMeta.year, dateMeta.month, dateMeta.day);
  28304. return start.getTime() <= date.getTime() && end.getTime() >= date.getTime();
  28305. }
  28306. return between;
  28307. },
  28308. getFirstDayOfMonthIndex(month, year) {
  28309. let day = new Date();
  28310. day.setDate(1);
  28311. day.setMonth(month);
  28312. day.setFullYear(year);
  28313. let dayIndex = day.getDay() + this.sundayIndex;
  28314. return dayIndex >= 7 ? dayIndex - 7 : dayIndex;
  28315. },
  28316. getDaysCountInMonth(month, year) {
  28317. return 32 - this.daylightSavingAdjust(new Date(year, month, 32)).getDate();
  28318. },
  28319. getDaysCountInPrevMonth(month, year) {
  28320. let prev = this.getPreviousMonthAndYear(month, year);
  28321. return this.getDaysCountInMonth(prev.month, prev.year);
  28322. },
  28323. getPreviousMonthAndYear(month, year) {
  28324. let m, y;
  28325. if (month === 0) {
  28326. m = 11;
  28327. y = year - 1;
  28328. }
  28329. else {
  28330. m = month - 1;
  28331. y = year;
  28332. }
  28333. return {'month':m, 'year': y};
  28334. },
  28335. getNextMonthAndYear(month, year) {
  28336. let m, y;
  28337. if (month === 11) {
  28338. m = 0;
  28339. y = year + 1;
  28340. }
  28341. else {
  28342. m = month + 1;
  28343. y = year;
  28344. }
  28345. return {'month':m,'year':y};
  28346. },
  28347. daylightSavingAdjust(date) {
  28348. if (!date) {
  28349. return null;
  28350. }
  28351. date.setHours(date.getHours() > 12 ? date.getHours() + 2 : 0);
  28352. return date;
  28353. },
  28354. isToday(today, day, month, year) {
  28355. return today.getDate() === day && today.getMonth() === month && today.getFullYear() === year;
  28356. },
  28357. isSelectable(day, month, year, otherMonth) {
  28358. let validMin = true;
  28359. let validMax = true;
  28360. let validDate = true;
  28361. let validDay = true;
  28362. if (otherMonth && !this.selectOtherMonths) {
  28363. return false;
  28364. }
  28365. if (this.minDate) {
  28366. if (this.minDate.getFullYear() > year) {
  28367. validMin = false;
  28368. }
  28369. else if (this.minDate.getFullYear() === year) {
  28370. if (this.minDate.getMonth() > month) {
  28371. validMin = false;
  28372. }
  28373. else if (this.minDate.getMonth() === month) {
  28374. if (this.minDate.getDate() > day) {
  28375. validMin = false;
  28376. }
  28377. }
  28378. }
  28379. }
  28380. if (this.maxDate) {
  28381. if (this.maxDate.getFullYear() < year) {
  28382. validMax = false;
  28383. }
  28384. else if (this.maxDate.getFullYear() === year) {
  28385. if (this.maxDate.getMonth() < month) {
  28386. validMax = false;
  28387. }
  28388. else if (this.maxDate.getMonth() === month) {
  28389. if (this.maxDate.getDate() < day) {
  28390. validMax = false;
  28391. }
  28392. }
  28393. }
  28394. }
  28395. if (this.disabledDates) {
  28396. validDate = !this.isDateDisabled(day,month,year);
  28397. }
  28398. if (this.disabledDays) {
  28399. validDay = !this.isDayDisabled(day,month,year);
  28400. }
  28401. return validMin && validMax && validDate && validDay;
  28402. },
  28403. onOverlayEnter(el) {
  28404. el.setAttribute(this.attributeSelector, '');
  28405. if (this.autoZIndex) {
  28406. if (this.touchUI)
  28407. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.set('modal', el, this.baseZIndex || this.$primevue.config.zIndex.modal);
  28408. else
  28409. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.set('overlay', el, this.baseZIndex || this.$primevue.config.zIndex.overlay);
  28410. }
  28411. this.alignOverlay();
  28412. this.$emit('show');
  28413. },
  28414. onOverlayEnterComplete() {
  28415. this.bindOutsideClickListener();
  28416. this.bindScrollListener();
  28417. this.bindResizeListener();
  28418. },
  28419. onOverlayAfterLeave(el) {
  28420. if (this.autoZIndex) {
  28421. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(el);
  28422. }
  28423. },
  28424. onOverlayLeave() {
  28425. this.currentView = this.view;
  28426. this.unbindOutsideClickListener();
  28427. this.unbindScrollListener();
  28428. this.unbindResizeListener();
  28429. this.$emit('hide');
  28430. if (this.mask) {
  28431. this.disableModality();
  28432. }
  28433. this.overlay = null;
  28434. },
  28435. onPrevButtonClick(event) {
  28436. if(this.showOtherMonths) {
  28437. this.navigationState = {backward: true, button: true};
  28438. this.navBackward(event);
  28439. }
  28440. },
  28441. onNextButtonClick(event) {
  28442. if(this.showOtherMonths) {
  28443. this.navigationState = {backward: false, button: true};
  28444. this.navForward(event);
  28445. }
  28446. },
  28447. navBackward(event) {
  28448. event.preventDefault();
  28449. if (!this.isEnabled()) {
  28450. return;
  28451. }
  28452. if (this.currentView === 'month') {
  28453. this.decrementYear();
  28454. }
  28455. else if (this.currentView === 'year') {
  28456. this.decrementDecade();
  28457. }
  28458. else {
  28459. if (this.currentMonth === 0) {
  28460. this.currentMonth = 11;
  28461. this.decrementYear();
  28462. }
  28463. else {
  28464. this.currentMonth--;
  28465. }
  28466. this.$emit('month-change', {month: this.currentMonth, year: this.currentYear});
  28467. }
  28468. },
  28469. navForward(event) {
  28470. event.preventDefault();
  28471. if (!this.isEnabled()) {
  28472. return;
  28473. }
  28474. if (this.currentView === 'month') {
  28475. this.incrementYear();
  28476. }
  28477. else if (this.currentView === 'year') {
  28478. this.incrementDecade();
  28479. }
  28480. else {
  28481. if (this.currentMonth === 11) {
  28482. this.currentMonth = 0;
  28483. this.incrementYear();
  28484. }
  28485. else {
  28486. this.currentMonth++;
  28487. }
  28488. this.$emit('month-change', {month: this.currentMonth , year: this.currentYear});
  28489. }
  28490. },
  28491. decrementYear() {
  28492. this.currentYear--;
  28493. },
  28494. decrementDecade() {
  28495. this.currentYear = this.currentYear - 10;
  28496. },
  28497. incrementYear() {
  28498. this.currentYear++;
  28499. },
  28500. incrementDecade() {
  28501. this.currentYear = this.currentYear + 10;
  28502. },
  28503. switchToMonthView(event) {
  28504. this.currentView = 'month';
  28505. setTimeout(this.updateFocus, 0);
  28506. event.preventDefault();
  28507. },
  28508. switchToYearView(event) {
  28509. this.currentView = 'year';
  28510. setTimeout(this.updateFocus, 0);
  28511. event.preventDefault();
  28512. },
  28513. isEnabled() {
  28514. return !this.$attrs.disabled && !this.$attrs.readonly;
  28515. },
  28516. updateCurrentTimeMeta(date) {
  28517. let currentHour = date.getHours();
  28518. if (this.hourFormat === '12') {
  28519. this.pm = currentHour > 11;
  28520. if (currentHour >= 12)
  28521. currentHour = (currentHour == 12) ? 12 : currentHour - 12;
  28522. else
  28523. currentHour = (currentHour == 0) ? 12 : currentHour;
  28524. }
  28525. this.currentHour = Math.floor(currentHour / this.stepHour) * this.stepHour;
  28526. this.currentMinute = Math.floor(date.getMinutes() / this.stepMinute) * this.stepMinute;
  28527. this.currentSecond = Math.floor(date.getSeconds() / this.stepSecond) * this.stepSecond;
  28528. },
  28529. bindOutsideClickListener() {
  28530. if (!this.outsideClickListener) {
  28531. this.outsideClickListener = (event) => {
  28532. if (this.overlayVisible && this.isOutsideClicked(event)) {
  28533. this.overlayVisible = false;
  28534. }
  28535. };
  28536. document.addEventListener('mousedown', this.outsideClickListener);
  28537. }
  28538. },
  28539. unbindOutsideClickListener() {
  28540. if (this.outsideClickListener) {
  28541. document.removeEventListener('mousedown', this.outsideClickListener);
  28542. this.outsideClickListener = null;
  28543. }
  28544. },
  28545. bindScrollListener() {
  28546. if (!this.scrollHandler) {
  28547. this.scrollHandler = new primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ConnectedOverlayScrollHandler(this.$refs.container, () => {
  28548. if (this.overlayVisible) {
  28549. this.overlayVisible = false;
  28550. }
  28551. });
  28552. }
  28553. this.scrollHandler.bindScrollListener();
  28554. },
  28555. unbindScrollListener() {
  28556. if (this.scrollHandler) {
  28557. this.scrollHandler.unbindScrollListener();
  28558. }
  28559. },
  28560. bindResizeListener() {
  28561. if (!this.resizeListener) {
  28562. this.resizeListener = () => {
  28563. if (this.overlayVisible) {
  28564. this.overlayVisible = false;
  28565. }
  28566. };
  28567. window.addEventListener('resize', this.resizeListener);
  28568. }
  28569. },
  28570. unbindResizeListener() {
  28571. if (this.resizeListener) {
  28572. window.removeEventListener('resize', this.resizeListener);
  28573. this.resizeListener = null;
  28574. }
  28575. },
  28576. isOutsideClicked(event) {
  28577. return !(this.$el.isSameNode(event.target) || this.isNavIconClicked(event) ||
  28578. this.$el.contains(event.target) || (this.overlay && this.overlay.contains(event.target)));
  28579. },
  28580. isNavIconClicked(event) {
  28581. return (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(event.target, 'p-datepicker-prev') || primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(event.target, 'p-datepicker-prev-icon')
  28582. || primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(event.target, 'p-datepicker-next') || primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(event.target, 'p-datepicker-next-icon'));
  28583. },
  28584. alignOverlay() {
  28585. if (this.touchUI) {
  28586. this.enableModality();
  28587. }
  28588. else if (this.overlay) {
  28589. if (this.appendDisabled) {
  28590. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.relativePosition(this.overlay, this.$el);
  28591. }
  28592. else {
  28593. if (this.view === 'date') {
  28594. this.overlay.style.width = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(this.overlay) + 'px';
  28595. this.overlay.style.minWidth = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(this.$el) + 'px';
  28596. }
  28597. else {
  28598. this.overlay.style.width = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(this.$el) + 'px';
  28599. }
  28600. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.absolutePosition(this.overlay, this.$el);
  28601. }
  28602. }
  28603. },
  28604. onButtonClick() {
  28605. if (this.isEnabled()) {
  28606. if (!this.overlayVisible) {
  28607. this.input.focus();
  28608. this.overlayVisible = true;
  28609. }
  28610. else {
  28611. this.overlayVisible = false;
  28612. }
  28613. }
  28614. },
  28615. isDateDisabled(day, month, year) {
  28616. if (this.disabledDates) {
  28617. for (let disabledDate of this.disabledDates) {
  28618. if (disabledDate.getFullYear() === year && disabledDate.getMonth() === month && disabledDate.getDate() === day) {
  28619. return true;
  28620. }
  28621. }
  28622. }
  28623. return false;
  28624. },
  28625. isDayDisabled(day, month, year) {
  28626. if (this.disabledDays) {
  28627. let weekday = new Date(year, month, day);
  28628. let weekdayNumber = weekday.getDay();
  28629. return this.disabledDays.indexOf(weekdayNumber) !== -1;
  28630. }
  28631. return false;
  28632. },
  28633. onMonthDropdownChange(value) {
  28634. this.currentMonth = parseInt(value);
  28635. this.$emit('month-change', {month: this.currentMonth + 1, year: this.currentYear});
  28636. },
  28637. onYearDropdownChange(value) {
  28638. this.currentYear = parseInt(value);
  28639. this.$emit('year-change', {month: this.currentMonth + 1, year: this.currentYear});
  28640. },
  28641. onDateSelect(event, dateMeta) {
  28642. if (this.$attrs.disabled || !dateMeta.selectable) {
  28643. return;
  28644. }
  28645. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.find(this.overlay, '.p-datepicker-calendar td span:not(.p-disabled)').forEach(cell => cell.tabIndex = -1);
  28646. if (event) {
  28647. event.currentTarget.focus();
  28648. }
  28649. if (this.isMultipleSelection() && this.isSelected(dateMeta)) {
  28650. let newValue = this.modelValue.filter(date => !this.isDateEquals(date, dateMeta));
  28651. this.updateModel(newValue);
  28652. }
  28653. else {
  28654. if (this.shouldSelectDate(dateMeta)) {
  28655. if (dateMeta.otherMonth) {
  28656. this.currentMonth = dateMeta.month;
  28657. this.currentYear = dateMeta.year;
  28658. this.selectDate(dateMeta);
  28659. }
  28660. else {
  28661. this.selectDate(dateMeta);
  28662. }
  28663. }
  28664. }
  28665. if (this.isSingleSelection() && (!this.showTime || this.hideOnDateTimeSelect)) {
  28666. setTimeout(() => {
  28667. this.overlayVisible = false;
  28668. }, 150);
  28669. }
  28670. },
  28671. selectDate(dateMeta) {
  28672. let date = new Date(dateMeta.year, dateMeta.month, dateMeta.day);
  28673. if (this.showTime) {
  28674. if (this.hourFormat === '12' && this.pm && this.currentHour != 12)
  28675. date.setHours(this.currentHour + 12);
  28676. else
  28677. date.setHours(this.currentHour);
  28678. date.setMinutes(this.currentMinute);
  28679. date.setSeconds(this.currentSecond);
  28680. }
  28681. if (this.minDate && this.minDate > date) {
  28682. date = this.minDate;
  28683. this.currentHour = date.getHours();
  28684. this.currentMinute = date.getMinutes();
  28685. this.currentSecond = date.getSeconds();
  28686. }
  28687. if (this.maxDate && this.maxDate < date) {
  28688. date = this.maxDate;
  28689. this.currentHour = date.getHours();
  28690. this.currentMinute = date.getMinutes();
  28691. this.currentSecond = date.getSeconds();
  28692. }
  28693. let modelVal = null;
  28694. if (this.isSingleSelection()) {
  28695. modelVal = date;
  28696. }
  28697. else if (this.isMultipleSelection()) {
  28698. modelVal = this.modelValue ? [...this.modelValue, date] : [date];
  28699. }
  28700. else if (this.isRangeSelection()) {
  28701. if (this.modelValue && this.modelValue.length) {
  28702. let startDate = this.modelValue[0];
  28703. let endDate = this.modelValue[1];
  28704. if (!endDate && date.getTime() >= startDate.getTime()) {
  28705. endDate = date;
  28706. }
  28707. else {
  28708. startDate = date;
  28709. endDate = null;
  28710. }
  28711. modelVal = [startDate, endDate];
  28712. }
  28713. else {
  28714. modelVal = [date, null];
  28715. }
  28716. }
  28717. if (modelVal !== null) {
  28718. this.updateModel(modelVal);
  28719. }
  28720. this.$emit('date-select', date);
  28721. },
  28722. updateModel(value) {
  28723. this.$emit('update:modelValue', value);
  28724. },
  28725. shouldSelectDate() {
  28726. if (this.isMultipleSelection())
  28727. return this.maxDateCount != null ? this.maxDateCount > (this.modelValue ? this.modelValue.length : 0) : true;
  28728. else
  28729. return true;
  28730. },
  28731. isSingleSelection() {
  28732. return this.selectionMode === 'single';
  28733. },
  28734. isRangeSelection() {
  28735. return this.selectionMode === 'range';
  28736. },
  28737. isMultipleSelection() {
  28738. return this.selectionMode === 'multiple';
  28739. },
  28740. formatValue(value) {
  28741. if (typeof value === 'string') {
  28742. return value;
  28743. }
  28744. let formattedValue = '';
  28745. if (value) {
  28746. try {
  28747. if (this.isSingleSelection()) {
  28748. formattedValue = this.formatDateTime(value);
  28749. }
  28750. else if (this.isMultipleSelection()) {
  28751. for(let i = 0; i < value.length; i++) {
  28752. let dateAsString = this.formatDateTime(value[i]);
  28753. formattedValue += dateAsString;
  28754. if(i !== (value.length - 1)) {
  28755. formattedValue += ', ';
  28756. }
  28757. }
  28758. }
  28759. else if (this.isRangeSelection()) {
  28760. if (value && value.length) {
  28761. let startDate = value[0];
  28762. let endDate = value[1];
  28763. formattedValue = this.formatDateTime(startDate);
  28764. if (endDate) {
  28765. formattedValue += ' - ' + this.formatDateTime(endDate);
  28766. }
  28767. }
  28768. }
  28769. }
  28770. catch(err) {
  28771. formattedValue = value;
  28772. }
  28773. }
  28774. return formattedValue;
  28775. },
  28776. formatDateTime(date) {
  28777. let formattedValue = null;
  28778. if (date) {
  28779. if(this.timeOnly) {
  28780. formattedValue = this.formatTime(date);
  28781. }
  28782. else {
  28783. formattedValue = this.formatDate(date, this.datePattern);
  28784. if(this.showTime) {
  28785. formattedValue += ' ' + this.formatTime(date);
  28786. }
  28787. }
  28788. }
  28789. return formattedValue;
  28790. },
  28791. formatDate(date, format) {
  28792. if (!date) {
  28793. return '';
  28794. }
  28795. let iFormat;
  28796. const lookAhead = (match) => {
  28797. const matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) === match);
  28798. if (matches) {
  28799. iFormat++;
  28800. }
  28801. return matches;
  28802. },
  28803. formatNumber = (match, value, len) => {
  28804. let num = '' + value;
  28805. if (lookAhead(match)) {
  28806. while (num.length < len) {
  28807. num = '0' + num;
  28808. }
  28809. }
  28810. return num;
  28811. },
  28812. formatName = (match, value, shortNames, longNames) => {
  28813. return (lookAhead(match) ? longNames[value] : shortNames[value]);
  28814. };
  28815. let output = '';
  28816. let literal = false;
  28817. if (date) {
  28818. for (iFormat = 0; iFormat < format.length; iFormat++) {
  28819. if (literal) {
  28820. if (format.charAt(iFormat) === '\'' && !lookAhead('\'')) {
  28821. literal = false;
  28822. } else {
  28823. output += format.charAt(iFormat);
  28824. }
  28825. } else {
  28826. switch (format.charAt(iFormat)) {
  28827. case 'd':
  28828. output += formatNumber('d', date.getDate(), 2);
  28829. break;
  28830. case 'D':
  28831. output += formatName('D', date.getDay(), this.$primevue.config.locale.dayNamesShort, this.$primevue.config.locale.dayNames);
  28832. break;
  28833. case 'o':
  28834. output += formatNumber('o',
  28835. Math.round((
  28836. new Date(date.getFullYear(), date.getMonth(), date.getDate()).getTime() -
  28837. new Date(date.getFullYear(), 0, 0).getTime()) / 86400000), 3);
  28838. break;
  28839. case 'm':
  28840. output += formatNumber('m', date.getMonth() + 1, 2);
  28841. break;
  28842. case 'M':
  28843. output += formatName('M',date.getMonth(), this.$primevue.config.locale.monthNamesShort, this.$primevue.config.locale.monthNames);
  28844. break;
  28845. case 'y':
  28846. output += lookAhead('y') ? date.getFullYear() : (date.getFullYear() % 100 < 10 ? '0' : '') + (date.getFullYear() % 100);
  28847. break;
  28848. case '@':
  28849. output += date.getTime();
  28850. break;
  28851. case '!':
  28852. output += date.getTime() * 10000 + this.ticksTo1970;
  28853. break;
  28854. case '\'':
  28855. if (lookAhead('\'')) {
  28856. output += '\'';
  28857. } else {
  28858. literal = true;
  28859. }
  28860. break;
  28861. default:
  28862. output += format.charAt(iFormat);
  28863. }
  28864. }
  28865. }
  28866. }
  28867. return output;
  28868. },
  28869. formatTime(date) {
  28870. if (!date) {
  28871. return '';
  28872. }
  28873. let output = '';
  28874. let hours = date.getHours();
  28875. let minutes = date.getMinutes();
  28876. let seconds = date.getSeconds();
  28877. if (this.hourFormat === '12' && hours > 11 && hours !== 12) {
  28878. hours -= 12;
  28879. }
  28880. if (this.hourFormat === '12') {
  28881. output += hours === 0 ? 12 : (hours < 10) ? '0' + hours : hours;
  28882. }
  28883. else {
  28884. output += (hours < 10) ? '0' + hours : hours;
  28885. }
  28886. output += ':';
  28887. output += (minutes < 10) ? '0' + minutes : minutes;
  28888. if (this.showSeconds) {
  28889. output += ':';
  28890. output += (seconds < 10) ? '0' + seconds : seconds;
  28891. }
  28892. if (this.hourFormat === '12') {
  28893. output += date.getHours() > 11 ? ' PM' : ' AM';
  28894. }
  28895. return output;
  28896. },
  28897. onTodayButtonClick(event) {
  28898. let date = new Date();
  28899. let dateMeta = {
  28900. day: date.getDate(),
  28901. month: date.getMonth(),
  28902. year: date.getFullYear(),
  28903. otherMonth: date.getMonth() !== this.currentMonth || date.getFullYear() !== this.currentYear,
  28904. today: true,
  28905. selectable: true
  28906. };
  28907. this.onDateSelect(null, dateMeta);
  28908. this.$emit('today-click', date);
  28909. event.preventDefault();
  28910. },
  28911. onClearButtonClick(event) {
  28912. this.updateModel(null);
  28913. this.overlayVisible = false;
  28914. this.$emit('clear-click', event);
  28915. event.preventDefault();
  28916. },
  28917. onTimePickerElementMouseDown(event, type, direction) {
  28918. if (this.isEnabled()) {
  28919. this.repeat(event, null, type, direction);
  28920. event.preventDefault();
  28921. }
  28922. },
  28923. onTimePickerElementMouseUp(event) {
  28924. if (this.isEnabled()) {
  28925. this.clearTimePickerTimer();
  28926. this.updateModelTime();
  28927. event.preventDefault();
  28928. }
  28929. },
  28930. onTimePickerElementMouseLeave() {
  28931. this.clearTimePickerTimer();
  28932. },
  28933. repeat(event, interval, type, direction) {
  28934. let i = interval||500;
  28935. this.clearTimePickerTimer();
  28936. this.timePickerTimer = setTimeout(() => {
  28937. this.repeat(event, 100, type, direction);
  28938. }, i);
  28939. switch(type) {
  28940. case 0:
  28941. if (direction === 1)
  28942. this.incrementHour(event);
  28943. else
  28944. this.decrementHour(event);
  28945. break;
  28946. case 1:
  28947. if (direction === 1)
  28948. this.incrementMinute(event);
  28949. else
  28950. this.decrementMinute(event);
  28951. break;
  28952. case 2:
  28953. if (direction === 1)
  28954. this.incrementSecond(event);
  28955. else
  28956. this.decrementSecond(event);
  28957. break;
  28958. }
  28959. },
  28960. convertTo24Hour(hours, pm) {
  28961. if (this.hourFormat == '12') {
  28962. if (hours === 12) {
  28963. return (pm ? 12 : 0);
  28964. } else {
  28965. return (pm ? hours + 12 : hours);
  28966. }
  28967. }
  28968. return hours;
  28969. },
  28970. validateTime(hour, minute, second, pm) {
  28971. let value = this.isComparable() ? this.modelValue : this.viewDate;
  28972. const convertedHour = this.convertTo24Hour(hour, pm);
  28973. if (this.isRangeSelection()) {
  28974. value = this.modelValue[1] || this.modelValue[0];
  28975. }
  28976. if (this.isMultipleSelection()) {
  28977. value = this.modelValue[this.modelValue.length - 1];
  28978. }
  28979. const valueDateString = value ? value.toDateString() : null;
  28980. if (this.minDate && valueDateString && this.minDate.toDateString() === valueDateString) {
  28981. if (this.minDate.getHours() > convertedHour) {
  28982. return false;
  28983. }
  28984. if (this.minDate.getHours() === convertedHour) {
  28985. if (this.minDate.getMinutes() > minute) {
  28986. return false;
  28987. }
  28988. if (this.minDate.getMinutes() === minute) {
  28989. if (this.minDate.getSeconds() > second) {
  28990. return false;
  28991. }
  28992. }
  28993. }
  28994. }
  28995. if (this.maxDate && valueDateString && this.maxDate.toDateString() === valueDateString) {
  28996. if (this.maxDate.getHours() < convertedHour) {
  28997. return false;
  28998. }
  28999. if (this.maxDate.getHours() === convertedHour) {
  29000. if (this.maxDate.getMinutes() < minute) {
  29001. return false;
  29002. }
  29003. if (this.maxDate.getMinutes() === minute) {
  29004. if (this.maxDate.getSeconds() < second) {
  29005. return false;
  29006. }
  29007. }
  29008. }
  29009. }
  29010. return true;
  29011. },
  29012. incrementHour(event) {
  29013. let prevHour = this.currentHour;
  29014. let newHour = this.currentHour + this.stepHour;
  29015. let newPM = this.pm;
  29016. if (this.hourFormat == '24')
  29017. newHour = (newHour >= 24) ? (newHour - 24) : newHour;
  29018. else if (this.hourFormat == '12') {
  29019. // Before the AM/PM break, now after
  29020. if (prevHour < 12 && newHour > 11) {
  29021. newPM= !this.pm;
  29022. }
  29023. newHour = (newHour >= 13) ? (newHour - 12) : newHour;
  29024. }
  29025. if (this.validateTime(newHour, this.currentMinute, this.currentSecond, newPM)) {
  29026. this.currentHour = newHour;
  29027. this.pm = newPM;
  29028. }
  29029. event.preventDefault();
  29030. },
  29031. decrementHour(event) {
  29032. let newHour = this.currentHour - this.stepHour;
  29033. let newPM = this.pm;
  29034. if (this.hourFormat == '24')
  29035. newHour = (newHour < 0) ? (24 + newHour) : newHour;
  29036. else if (this.hourFormat == '12') {
  29037. // If we were at noon/midnight, then switch
  29038. if (this.currentHour === 12) {
  29039. newPM = !this.pm;
  29040. }
  29041. newHour = (newHour <= 0) ? (12 + newHour) : newHour;
  29042. }
  29043. if (this.validateTime(newHour, this.currentMinute, this.currentSecond, newPM)) {
  29044. this.currentHour = newHour;
  29045. this.pm = newPM;
  29046. }
  29047. event.preventDefault();
  29048. },
  29049. incrementMinute(event) {
  29050. let newMinute = this.currentMinute + this.stepMinute;
  29051. if (this.validateTime(this.currentHour, newMinute, this.currentSecond, true)) {
  29052. this.currentMinute = (newMinute > 59) ? newMinute - 60 : newMinute;
  29053. }
  29054. event.preventDefault();
  29055. },
  29056. decrementMinute(event) {
  29057. let newMinute = this.currentMinute - this.stepMinute;
  29058. newMinute = (newMinute < 0) ? 60 + newMinute : newMinute;
  29059. if (this.validateTime(this.currentHour, newMinute, this.currentSecond, true)) {
  29060. this.currentMinute = newMinute;
  29061. }
  29062. event.preventDefault();
  29063. },
  29064. incrementSecond(event) {
  29065. let newSecond = this.currentSecond + this.stepSecond;
  29066. if (this.validateTime(this.currentHour, this.currentMinute, newSecond, true)) {
  29067. this.currentSecond = (newSecond > 59) ? newSecond - 60 : newSecond;
  29068. }
  29069. event.preventDefault();
  29070. },
  29071. decrementSecond(event) {
  29072. let newSecond = this.currentSecond - this.stepSecond;
  29073. newSecond = (newSecond < 0) ? 60 + newSecond : newSecond;
  29074. if (this.validateTime(this.currentHour, this.currentMinute, newSecond, true)) {
  29075. this.currentSecond = newSecond;
  29076. }
  29077. event.preventDefault();
  29078. },
  29079. updateModelTime() {
  29080. this.timePickerChange = true;
  29081. let value = this.isComparable() ? this.modelValue : this.viewDate;
  29082. if (this.isRangeSelection()) {
  29083. value = this.modelValue[1] || this.modelValue[0];
  29084. }
  29085. if (this.isMultipleSelection()) {
  29086. value = this.modelValue[this.modelValue.length - 1];
  29087. }
  29088. value = value ? new Date(value.getTime()) : new Date();
  29089. if (this.hourFormat == '12') {
  29090. if (this.currentHour === 12)
  29091. value.setHours(this.pm ? 12 : 0);
  29092. else
  29093. value.setHours(this.pm ? this.currentHour + 12 : this.currentHour);
  29094. }
  29095. else {
  29096. value.setHours(this.currentHour);
  29097. }
  29098. value.setMinutes(this.currentMinute);
  29099. value.setSeconds(this.currentSecond);
  29100. if (this.isRangeSelection()) {
  29101. if (this.modelValue[1])
  29102. value = [this.modelValue[0], value];
  29103. else
  29104. value = [value, null];
  29105. }
  29106. if (this.isMultipleSelection()){
  29107. value = [...this.modelValue.slice(0, -1), value];
  29108. }
  29109. this.updateModel(value);
  29110. this.$emit('date-select', value);
  29111. setTimeout(() => this.timePickerChange = false, 0);
  29112. },
  29113. toggleAMPM(event) {
  29114. this.pm = !this.pm;
  29115. this.updateModelTime();
  29116. event.preventDefault();
  29117. },
  29118. clearTimePickerTimer() {
  29119. if (this.timePickerTimer) {
  29120. clearInterval(this.timePickerTimer);
  29121. }
  29122. },
  29123. onMonthSelect(event, index) {
  29124. if (this.view === 'month') {
  29125. this.onDateSelect(event, {year: this.currentYear, month: index, day: 1, selectable: true});
  29126. }
  29127. else {
  29128. this.currentMonth = index;
  29129. this.currentView = 'date';
  29130. this.$emit('month-change', {month: this.currentMonth + 1, year: this.currentYear});
  29131. }
  29132. setTimeout(this.updateFocus, 0);
  29133. },
  29134. onYearSelect(event, year) {
  29135. if (this.view === 'year') {
  29136. this.onDateSelect(event, {year: year, month: 0, day: 1, selectable: true});
  29137. }
  29138. else {
  29139. this.currentYear = year;
  29140. this.currentView = 'month';
  29141. this.$emit('year-change', {month: this.currentMonth + 1, year: this.currentYear});
  29142. }
  29143. setTimeout(this.updateFocus, 0);
  29144. },
  29145. enableModality() {
  29146. if (!this.mask) {
  29147. this.mask = document.createElement('div');
  29148. this.mask.style.zIndex = String(parseInt(this.overlay.style.zIndex, 10) - 1);
  29149. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addMultipleClasses(this.mask, 'p-datepicker-mask p-datepicker-mask-scrollblocker p-component-overlay p-component-overlay-enter');
  29150. this.maskClickListener = () => {
  29151. this.overlayVisible = false;
  29152. };
  29153. this.mask.addEventListener('click', this.maskClickListener);
  29154. document.body.appendChild(this.mask);
  29155. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(document.body, 'p-overflow-hidden');
  29156. }
  29157. },
  29158. disableModality() {
  29159. if (this.mask) {
  29160. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(this.mask, 'p-component-overlay-leave');
  29161. this.mask.addEventListener('animationend', () => {
  29162. this.destroyMask();
  29163. });
  29164. }
  29165. },
  29166. destroyMask() {
  29167. this.mask.removeEventListener('click', this.maskClickListener);
  29168. this.maskClickListener = null;
  29169. document.body.removeChild(this.mask);
  29170. this.mask = null;
  29171. let bodyChildren = document.body.children;
  29172. let hasBlockerMasks;
  29173. for (let i = 0; i < bodyChildren.length; i++) {
  29174. let bodyChild = bodyChildren[i];
  29175. if(primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(bodyChild, 'p-datepicker-mask-scrollblocker')) {
  29176. hasBlockerMasks = true;
  29177. break;
  29178. }
  29179. }
  29180. if (!hasBlockerMasks) {
  29181. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(document.body, 'p-overflow-hidden');
  29182. }
  29183. },
  29184. updateCurrentMetaData() {
  29185. const viewDate = this.viewDate;
  29186. this.currentMonth = viewDate.getMonth();
  29187. this.currentYear = viewDate.getFullYear();
  29188. if (this.showTime || this.timeOnly) {
  29189. this.updateCurrentTimeMeta(viewDate);
  29190. }
  29191. },
  29192. isValidSelection(value) {
  29193. if (value == null) {
  29194. return true;
  29195. }
  29196. let isValid = true;
  29197. if (this.isSingleSelection()) {
  29198. if (!this.isSelectable(value.getDate(), value.getMonth(), value.getFullYear(), false)) {
  29199. isValid = false;
  29200. }
  29201. } else if (value.every(v => this.isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false))) {
  29202. if (this.isRangeSelection()) {
  29203. isValid = value.length > 1 && value[1] > value[0] ? true : false;
  29204. }
  29205. }
  29206. return isValid;
  29207. },
  29208. parseValue(text) {
  29209. if (!text || text.trim().length === 0) {
  29210. return null;
  29211. }
  29212. let value;
  29213. if (this.isSingleSelection()) {
  29214. value = this.parseDateTime(text);
  29215. }
  29216. else if (this.isMultipleSelection()) {
  29217. let tokens = text.split(',');
  29218. value = [];
  29219. for (let token of tokens) {
  29220. value.push(this.parseDateTime(token.trim()));
  29221. }
  29222. }
  29223. else if (this.isRangeSelection()) {
  29224. let tokens = text.split(' - ');
  29225. value = [];
  29226. for (let i = 0; i < tokens.length; i++) {
  29227. value[i] = this.parseDateTime(tokens[i].trim());
  29228. }
  29229. }
  29230. return value;
  29231. },
  29232. parseDateTime(text) {
  29233. let date;
  29234. let parts = text.split(' ');
  29235. if (this.timeOnly) {
  29236. date = new Date();
  29237. this.populateTime(date, parts[0], parts[1]);
  29238. }
  29239. else {
  29240. const dateFormat = this.datePattern;
  29241. if (this.showTime) {
  29242. date = this.parseDate(parts[0], dateFormat);
  29243. this.populateTime(date, parts[1], parts[2]);
  29244. }
  29245. else {
  29246. date = this.parseDate(text, dateFormat);
  29247. }
  29248. }
  29249. return date;
  29250. },
  29251. populateTime(value, timeString, ampm) {
  29252. if (this.hourFormat == '12' && !ampm) {
  29253. throw 'Invalid Time';
  29254. }
  29255. this.pm = (ampm === 'PM' || ampm === 'pm');
  29256. let time = this.parseTime(timeString);
  29257. value.setHours(time.hour);
  29258. value.setMinutes(time.minute);
  29259. value.setSeconds(time.second);
  29260. },
  29261. parseTime(value) {
  29262. let tokens = value.split(':');
  29263. let validTokenLength = this.showSeconds ? 3 : 2;
  29264. let regex = (/^[0-9][0-9]$/);
  29265. if (tokens.length !== validTokenLength || !tokens[0].match(regex) || !tokens[1].match(regex) || (this.showSeconds && !tokens[2].match(regex))) {
  29266. throw "Invalid time";
  29267. }
  29268. let h = parseInt(tokens[0]);
  29269. let m = parseInt(tokens[1]);
  29270. let s = this.showSeconds ? parseInt(tokens[2]) : null;
  29271. if (isNaN(h) || isNaN(m) || h > 23 || m > 59 || (this.hourFormat == '12' && h > 12) || (this.showSeconds && (isNaN(s) || s > 59))) {
  29272. throw "Invalid time";
  29273. }
  29274. else {
  29275. if (this.hourFormat == '12' && h !== 12 && this.pm) {
  29276. h+= 12;
  29277. }
  29278. return {hour: h, minute: m, second: s};
  29279. }
  29280. },
  29281. parseDate(value, format) {
  29282. if (format == null || value == null) {
  29283. throw "Invalid arguments";
  29284. }
  29285. value = (typeof value === "object" ? value.toString() : value + "");
  29286. if (value === "") {
  29287. return null;
  29288. }
  29289. let iFormat, dim, extra,
  29290. iValue = 0,
  29291. shortYearCutoff = (typeof this.shortYearCutoff !== "string" ? this.shortYearCutoff : new Date().getFullYear() % 100 + parseInt(this.shortYearCutoff, 10)),
  29292. year = -1,
  29293. month = -1,
  29294. day = -1,
  29295. doy = -1,
  29296. literal = false,
  29297. date,
  29298. lookAhead = (match) => {
  29299. let matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) === match);
  29300. if (matches) {
  29301. iFormat++;
  29302. }
  29303. return matches;
  29304. },
  29305. getNumber = (match) => {
  29306. let isDoubled = lookAhead(match),
  29307. size = (match === "@" ? 14 : (match === "!" ? 20 :
  29308. (match === "y" && isDoubled ? 4 : (match === "o" ? 3 : 2)))),
  29309. minSize = (match === "y" ? size : 1),
  29310. digits = new RegExp("^\\d{" + minSize + "," + size + "}"),
  29311. num = value.substring(iValue).match(digits);
  29312. if (!num) {
  29313. throw "Missing number at position " + iValue;
  29314. }
  29315. iValue += num[ 0 ].length;
  29316. return parseInt(num[ 0 ], 10);
  29317. },
  29318. getName = (match, shortNames, longNames) => {
  29319. let index = -1;
  29320. let arr = lookAhead(match) ? longNames : shortNames;
  29321. let names = [];
  29322. for (let i = 0; i < arr.length; i++) {
  29323. names.push([i,arr[i]]);
  29324. }
  29325. names.sort((a,b) => {
  29326. return -(a[ 1 ].length - b[ 1 ].length);
  29327. });
  29328. for (let i = 0; i < names.length; i++) {
  29329. let name = names[i][1];
  29330. if (value.substr(iValue, name.length).toLowerCase() === name.toLowerCase()) {
  29331. index = names[i][0];
  29332. iValue += name.length;
  29333. break;
  29334. }
  29335. }
  29336. if (index !== -1) {
  29337. return index + 1;
  29338. } else {
  29339. throw "Unknown name at position " + iValue;
  29340. }
  29341. },
  29342. checkLiteral = () => {
  29343. if (value.charAt(iValue) !== format.charAt(iFormat)) {
  29344. throw "Unexpected literal at position " + iValue;
  29345. }
  29346. iValue++;
  29347. };
  29348. if (this.currentView === 'month') {
  29349. day = 1;
  29350. }
  29351. for (iFormat = 0; iFormat < format.length; iFormat++) {
  29352. if (literal) {
  29353. if (format.charAt(iFormat) === "'" && !lookAhead("'")) {
  29354. literal = false;
  29355. } else {
  29356. checkLiteral();
  29357. }
  29358. } else {
  29359. switch (format.charAt(iFormat)) {
  29360. case "d":
  29361. day = getNumber("d");
  29362. break;
  29363. case "D":
  29364. getName("D", this.$primevue.config.locale.dayNamesShort, this.$primevue.config.locale.dayNames);
  29365. break;
  29366. case "o":
  29367. doy = getNumber("o");
  29368. break;
  29369. case "m":
  29370. month = getNumber("m");
  29371. break;
  29372. case "M":
  29373. month = getName("M", this.$primevue.config.locale.monthNamesShort, this.$primevue.config.locale.monthNames);
  29374. break;
  29375. case "y":
  29376. year = getNumber("y");
  29377. break;
  29378. case "@":
  29379. date = new Date(getNumber("@"));
  29380. year = date.getFullYear();
  29381. month = date.getMonth() + 1;
  29382. day = date.getDate();
  29383. break;
  29384. case "!":
  29385. date = new Date((getNumber("!") - this.ticksTo1970) / 10000);
  29386. year = date.getFullYear();
  29387. month = date.getMonth() + 1;
  29388. day = date.getDate();
  29389. break;
  29390. case "'":
  29391. if (lookAhead("'")) {
  29392. checkLiteral();
  29393. } else {
  29394. literal = true;
  29395. }
  29396. break;
  29397. default:
  29398. checkLiteral();
  29399. }
  29400. }
  29401. }
  29402. if (iValue < value.length) {
  29403. extra = value.substr(iValue);
  29404. if (!/^\s+/.test(extra)) {
  29405. throw "Extra/unparsed characters found in date: " + extra;
  29406. }
  29407. }
  29408. if (year === -1) {
  29409. year = new Date().getFullYear();
  29410. } else if (year < 100) {
  29411. year += new Date().getFullYear() - new Date().getFullYear() % 100 +
  29412. (year <= shortYearCutoff ? 0 : -100);
  29413. }
  29414. if (doy > -1) {
  29415. month = 1;
  29416. day = doy;
  29417. do {
  29418. dim = this.getDaysCountInMonth(year, month - 1);
  29419. if (day <= dim) {
  29420. break;
  29421. }
  29422. month++;
  29423. day -= dim;
  29424. // eslint-disable-next-line
  29425. } while (true);
  29426. }
  29427. date = this.daylightSavingAdjust(new Date(year, month - 1, day));
  29428. if (date.getFullYear() !== year || date.getMonth() + 1 !== month || date.getDate() !== day) {
  29429. throw "Invalid date"; // E.g. 31/02/00
  29430. }
  29431. return date;
  29432. },
  29433. getWeekNumber(date) {
  29434. let checkDate = new Date(date.getTime());
  29435. checkDate.setDate(checkDate.getDate() + 4 - ( checkDate.getDay() || 7 ));
  29436. let time = checkDate.getTime();
  29437. checkDate.setMonth( 0 );
  29438. checkDate.setDate( 1 );
  29439. return Math.floor( Math.round((time - checkDate.getTime()) / 86400000 ) / 7 ) + 1;
  29440. },
  29441. onDateCellKeydown(event, date, groupIndex) {
  29442. const cellContent = event.currentTarget;
  29443. const cell = cellContent.parentElement;
  29444. switch (event.which) {
  29445. //down arrow
  29446. case 40: {
  29447. cellContent.tabIndex = '-1';
  29448. let cellIndex = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.index(cell);
  29449. let nextRow = cell.parentElement.nextElementSibling;
  29450. if (nextRow) {
  29451. let focusCell = nextRow.children[cellIndex].children[0];
  29452. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(focusCell, 'p-disabled')) {
  29453. this.navigationState = {backward: false};
  29454. this.navForward(event);
  29455. }
  29456. else {
  29457. nextRow.children[cellIndex].children[0].tabIndex = '0';
  29458. nextRow.children[cellIndex].children[0].focus();
  29459. }
  29460. }
  29461. else {
  29462. this.navigationState = {backward: false};
  29463. this.navForward(event);
  29464. }
  29465. event.preventDefault();
  29466. break;
  29467. }
  29468. //up arrow
  29469. case 38: {
  29470. cellContent.tabIndex = '-1';
  29471. let cellIndex = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.index(cell);
  29472. let prevRow = cell.parentElement.previousElementSibling;
  29473. if (prevRow) {
  29474. let focusCell = prevRow.children[cellIndex].children[0];
  29475. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(focusCell, 'p-disabled')) {
  29476. this.navigationState = {backward: true};
  29477. this.navBackward(event);
  29478. }
  29479. else {
  29480. focusCell.tabIndex = '0';
  29481. focusCell.focus();
  29482. }
  29483. }
  29484. else {
  29485. this.navigationState = {backward: true};
  29486. this.navBackward(event);
  29487. }
  29488. event.preventDefault();
  29489. break;
  29490. }
  29491. //left arrow
  29492. case 37: {
  29493. cellContent.tabIndex = '-1';
  29494. let prevCell = cell.previousElementSibling;
  29495. if (prevCell) {
  29496. let focusCell = prevCell.children[0];
  29497. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(focusCell, 'p-disabled')) {
  29498. this.navigateToMonth(true, groupIndex);
  29499. }
  29500. else {
  29501. focusCell.tabIndex = '0';
  29502. focusCell.focus();
  29503. }
  29504. }
  29505. else {
  29506. this.navigateToMonth(true, groupIndex);
  29507. }
  29508. event.preventDefault();
  29509. break;
  29510. }
  29511. //right arrow
  29512. case 39: {
  29513. cellContent.tabIndex = '-1';
  29514. let nextCell = cell.nextElementSibling;
  29515. if (nextCell) {
  29516. let focusCell = nextCell.children[0];
  29517. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(focusCell, 'p-disabled')) {
  29518. this.navigateToMonth(false, groupIndex);
  29519. }
  29520. else {
  29521. focusCell.tabIndex = '0';
  29522. focusCell.focus();
  29523. }
  29524. }
  29525. else {
  29526. this.navigateToMonth(false, groupIndex);
  29527. }
  29528. event.preventDefault();
  29529. break;
  29530. }
  29531. //enter
  29532. //space
  29533. case 13:
  29534. case 32: {
  29535. this.onDateSelect(event, date);
  29536. event.preventDefault();
  29537. break;
  29538. }
  29539. //escape
  29540. case 27: {
  29541. this.overlayVisible = false;
  29542. event.preventDefault();
  29543. break;
  29544. }
  29545. //tab
  29546. case 9: {
  29547. if (!this.inline) {
  29548. this.trapFocus(event);
  29549. }
  29550. break;
  29551. }
  29552. }
  29553. },
  29554. navigateToMonth(prev, groupIndex) {
  29555. if (prev) {
  29556. if (this.numberOfMonths === 1 || (groupIndex === 0)) {
  29557. this.navigationState = {backward: true};
  29558. this.navBackward(event);
  29559. }
  29560. else {
  29561. let prevMonthContainer = this.overlay.children[groupIndex - 1];
  29562. let cells = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.find(prevMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
  29563. let focusCell = cells[cells.length - 1];
  29564. focusCell.tabIndex = '0';
  29565. focusCell.focus();
  29566. }
  29567. }
  29568. else {
  29569. if (this.numberOfMonths === 1 || (groupIndex === this.numberOfMonths - 1)) {
  29570. this.navigationState = {backward: false};
  29571. this.navForward(event);
  29572. }
  29573. else {
  29574. let nextMonthContainer = this.overlay.children[groupIndex + 1];
  29575. let focusCell = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(nextMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
  29576. focusCell.tabIndex = '0';
  29577. focusCell.focus();
  29578. }
  29579. }
  29580. },
  29581. onMonthCellKeydown(event, index) {
  29582. const cell = event.currentTarget;
  29583. switch (event.which) {
  29584. //arrows
  29585. case 38:
  29586. case 40: {
  29587. cell.tabIndex = '-1';
  29588. var cells = cell.parentElement.children;
  29589. var cellIndex = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.index(cell);
  29590. let nextCell = cells[event.which === 40 ? cellIndex + 3 : cellIndex -3];
  29591. if (nextCell) {
  29592. nextCell.tabIndex = '0';
  29593. nextCell.focus();
  29594. }
  29595. event.preventDefault();
  29596. break;
  29597. }
  29598. //left arrow
  29599. case 37: {
  29600. cell.tabIndex = '-1';
  29601. let prevCell = cell.previousElementSibling;
  29602. if (prevCell) {
  29603. prevCell.tabIndex = '0';
  29604. prevCell.focus();
  29605. }
  29606. else {
  29607. this.navigationState = {backward: true};
  29608. this.navBackward(event);
  29609. }
  29610. event.preventDefault();
  29611. break;
  29612. }
  29613. //right arrow
  29614. case 39: {
  29615. cell.tabIndex = '-1';
  29616. let nextCell = cell.nextElementSibling;
  29617. if (nextCell) {
  29618. nextCell.tabIndex = '0';
  29619. nextCell.focus();
  29620. }
  29621. else {
  29622. this.navigationState = {backward: false};
  29623. this.navForward(event);
  29624. }
  29625. event.preventDefault();
  29626. break;
  29627. }
  29628. //enter
  29629. //space
  29630. case 13:
  29631. case 32: {
  29632. this.onMonthSelect(event, index);
  29633. event.preventDefault();
  29634. break;
  29635. }
  29636. //escape
  29637. case 27: {
  29638. this.overlayVisible = false;
  29639. event.preventDefault();
  29640. break;
  29641. }
  29642. //tab
  29643. case 9: {
  29644. this.trapFocus(event);
  29645. break;
  29646. }
  29647. }
  29648. },
  29649. onYearCellKeydown(event, index) {
  29650. const cell = event.currentTarget;
  29651. switch (event.which) {
  29652. //arrows
  29653. case 38:
  29654. case 40: {
  29655. cell.tabIndex = '-1';
  29656. var cells = cell.parentElement.children;
  29657. var cellIndex = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.index(cell);
  29658. let nextCell = cells[event.which === 40 ? cellIndex + 2 : cellIndex - 2];
  29659. if (nextCell) {
  29660. nextCell.tabIndex = '0';
  29661. nextCell.focus();
  29662. }
  29663. event.preventDefault();
  29664. break;
  29665. }
  29666. //left arrow
  29667. case 37: {
  29668. cell.tabIndex = '-1';
  29669. let prevCell = cell.previousElementSibling;
  29670. if (prevCell) {
  29671. prevCell.tabIndex = '0';
  29672. prevCell.focus();
  29673. }
  29674. else {
  29675. this.navigationState = {backward: true};
  29676. this.navBackward(event);
  29677. }
  29678. event.preventDefault();
  29679. break;
  29680. }
  29681. //right arrow
  29682. case 39: {
  29683. cell.tabIndex = '-1';
  29684. let nextCell = cell.nextElementSibling;
  29685. if (nextCell) {
  29686. nextCell.tabIndex = '0';
  29687. nextCell.focus();
  29688. }
  29689. else {
  29690. this.navigationState = {backward: false};
  29691. this.navForward(event);
  29692. }
  29693. event.preventDefault();
  29694. break;
  29695. }
  29696. //enter
  29697. //space
  29698. case 13:
  29699. case 32: {
  29700. this.onYearSelect(event, index);
  29701. event.preventDefault();
  29702. break;
  29703. }
  29704. //escape
  29705. case 27: {
  29706. this.overlayVisible = false;
  29707. event.preventDefault();
  29708. break;
  29709. }
  29710. //tab
  29711. case 9: {
  29712. this.trapFocus(event);
  29713. break;
  29714. }
  29715. }
  29716. },
  29717. updateFocus() {
  29718. let cell;
  29719. if (this.navigationState) {
  29720. if (this.navigationState.button) {
  29721. this.initFocusableCell();
  29722. if (this.navigationState.backward)
  29723. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, '.p-datepicker-prev').focus();
  29724. else
  29725. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, '.p-datepicker-next').focus();
  29726. }
  29727. else {
  29728. if (this.navigationState.backward) {
  29729. let cells;
  29730. if (this.currentView === 'month') {
  29731. cells = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.find(this.overlay, '.p-monthpicker .p-monthpicker-month:not(.p-disabled)');
  29732. }
  29733. else if (this.currentView === 'year') {
  29734. cells = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.find(this.overlay, '.p-yearpicker .p-yearpicker-year:not(.p-disabled)');
  29735. }
  29736. else {
  29737. cells = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.find(this.overlay, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
  29738. }
  29739. if (cells && cells.length > 0) {
  29740. cell = cells[cells.length - 1];
  29741. }
  29742. }
  29743. else {
  29744. if (this.currentView === 'month') {
  29745. cell = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, '.p-monthpicker .p-monthpicker-month:not(.p-disabled)');
  29746. }
  29747. else if (this.currentView === 'year') {
  29748. cell = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, '.p-yearpicker .p-yearpicker-year:not(.p-disabled)');
  29749. }
  29750. else {
  29751. cell = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
  29752. }
  29753. }
  29754. if (cell) {
  29755. cell.tabIndex = '0';
  29756. cell.focus();
  29757. }
  29758. }
  29759. this.navigationState = null;
  29760. }
  29761. else {
  29762. this.initFocusableCell();
  29763. }
  29764. },
  29765. initFocusableCell() {
  29766. let cell;
  29767. if (this.currentView === 'month') {
  29768. let cells = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.find(this.overlay, '.p-monthpicker .p-monthpicker-month');
  29769. let selectedCell= primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, '.p-monthpicker .p-monthpicker-month.p-highlight');
  29770. cells.forEach(cell => cell.tabIndex = -1);
  29771. cell = selectedCell || cells[0];
  29772. }
  29773. else if (this.currentView === 'year') {
  29774. let cells = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.find(this.overlay, '.p-yearpicker .p-yearpicker-year');
  29775. let selectedCell= primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, '.p-yearpicker .p-yearpicker-year.p-highlight');
  29776. cells.forEach(cell => cell.tabIndex = -1);
  29777. cell = selectedCell || cells[0];
  29778. }
  29779. else {
  29780. cell = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, 'span.p-highlight');
  29781. if (!cell) {
  29782. let todayCell = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, 'td.p-datepicker-today span:not(.p-disabled):not(.p-ink');
  29783. if (todayCell)
  29784. cell = todayCell;
  29785. else
  29786. cell = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink');
  29787. }
  29788. }
  29789. if (cell) {
  29790. cell.tabIndex = '0';
  29791. if (!this.preventFocus && (!this.navigationState || !this.navigationState.button) && !this.timePickerChange) {
  29792. cell.focus();
  29793. }
  29794. this.preventFocus = false;
  29795. }
  29796. },
  29797. trapFocus(event) {
  29798. event.preventDefault();
  29799. let focusableElements = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getFocusableElements(this.overlay);
  29800. if (focusableElements && focusableElements.length > 0) {
  29801. if (!document.activeElement) {
  29802. focusableElements[0].focus();
  29803. }
  29804. else {
  29805. let focusedIndex = focusableElements.indexOf(document.activeElement);
  29806. if (event.shiftKey) {
  29807. if (focusedIndex == -1 || focusedIndex === 0)
  29808. focusableElements[focusableElements.length - 1].focus();
  29809. else
  29810. focusableElements[focusedIndex - 1].focus();
  29811. }
  29812. else {
  29813. if (focusedIndex == -1 || focusedIndex === (focusableElements.length - 1))
  29814. focusableElements[0].focus();
  29815. else
  29816. focusableElements[focusedIndex + 1].focus();
  29817. }
  29818. }
  29819. }
  29820. },
  29821. onContainerButtonKeydown(event) {
  29822. switch (event.which) {
  29823. //tab
  29824. case 9:
  29825. this.trapFocus(event);
  29826. break;
  29827. //escape
  29828. case 27:
  29829. this.overlayVisible = false;
  29830. event.preventDefault();
  29831. break;
  29832. }
  29833. this.$emit('keydown', event);
  29834. },
  29835. onInput(event) {
  29836. try {
  29837. this.selectionStart = this.input.selectionStart;
  29838. this.selectionEnd = this.input.selectionEnd;
  29839. let value = this.parseValue(event.target.value);
  29840. if (this.isValidSelection(value)) {
  29841. this.typeUpdate = true;
  29842. this.updateModel(value);
  29843. }
  29844. }
  29845. catch(err) {
  29846. /* NoOp */
  29847. }
  29848. this.$emit('input', event);
  29849. },
  29850. onFocus(event) {
  29851. if (this.showOnFocus && this.isEnabled()) {
  29852. this.overlayVisible = true;
  29853. }
  29854. this.focused = true;
  29855. this.$emit('focus', event);
  29856. },
  29857. onBlur(event) {
  29858. this.$emit('blur', {originalEvent: event, value: this.input.value});
  29859. this.focused = false;
  29860. this.input.value = this.formatValue(this.modelValue);
  29861. },
  29862. onKeyDown() {
  29863. if (event.keyCode === 40 && this.overlay) {
  29864. this.trapFocus(event);
  29865. }
  29866. else if (event.keyCode === 27) {
  29867. if (this.overlayVisible) {
  29868. this.overlayVisible = false;
  29869. event.preventDefault();
  29870. }
  29871. }
  29872. else if (event.keyCode === 9) {
  29873. if (this.overlay) {
  29874. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getFocusableElements(this.overlay).forEach(el => el.tabIndex = '-1');
  29875. }
  29876. if (this.overlayVisible) {
  29877. this.overlayVisible = false;
  29878. }
  29879. }
  29880. },
  29881. overlayRef(el) {
  29882. this.overlay = el;
  29883. },
  29884. inputRef(el) {
  29885. this.input = el;
  29886. },
  29887. getMonthName(index) {
  29888. return this.$primevue.config.locale.monthNames[index];
  29889. },
  29890. getYear(month) {
  29891. return this.currentView === 'month' ? this.currentYear : month.year;
  29892. },
  29893. onOverlayClick(event) {
  29894. if (!this.inline) {
  29895. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_1__["default"].emit('overlay-click', {
  29896. originalEvent: event,
  29897. target: this.$el
  29898. });
  29899. }
  29900. },
  29901. onOverlayMouseUp(event) {
  29902. this.onOverlayClick(event);
  29903. },
  29904. createResponsiveStyle() {
  29905. if (this.numberOfMonths > 1 && this.responsiveOptions) {
  29906. if (!this.responsiveStyleElement) {
  29907. this.responsiveStyleElement = document.createElement('style');
  29908. this.responsiveStyleElement.type = 'text/css';
  29909. document.body.appendChild(this.responsiveStyleElement);
  29910. }
  29911. let innerHTML = '';
  29912. if (this.responsiveOptions) {
  29913. let responsiveOptions = [...this.responsiveOptions]
  29914. .filter(o => !!(o.breakpoint && o.numMonths))
  29915. .sort((o1, o2) => -1 * o1.breakpoint.localeCompare(o2.breakpoint, undefined, { numeric: true }));
  29916. for (let i = 0; i < responsiveOptions.length; i++) {
  29917. let { breakpoint, numMonths } = responsiveOptions[i];
  29918. let styles = `
  29919. .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${numMonths}) .p-datepicker-next {
  29920. display: inline-flex !important;
  29921. }
  29922. `;
  29923. for (let j = numMonths; j < this.numberOfMonths; j++) {
  29924. styles += `
  29925. .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${j + 1}) {
  29926. display: none !important;
  29927. }
  29928. `;
  29929. }
  29930. innerHTML += `
  29931. @media screen and (max-width: ${breakpoint}) {
  29932. ${styles}
  29933. }
  29934. `;
  29935. }
  29936. }
  29937. this.responsiveStyleElement.innerHTML = innerHTML;
  29938. }
  29939. },
  29940. destroyResponsiveStyleElement() {
  29941. if (this.responsiveStyleElement) {
  29942. this.responsiveStyleElement.remove();
  29943. this.responsiveStyleElement = null;
  29944. }
  29945. }
  29946. },
  29947. computed: {
  29948. viewDate() {
  29949. let propValue = this.modelValue;
  29950. if (propValue && Array.isArray(propValue)) {
  29951. propValue = propValue[0];
  29952. }
  29953. if (propValue && typeof propValue !== 'string') {
  29954. return propValue;
  29955. }
  29956. else {
  29957. let today = new Date();
  29958. if (this.maxDate && this.maxDate < today) {
  29959. return this.maxDate;
  29960. }
  29961. if (this.minDate && this.minDate > today) {
  29962. return this.minDate;
  29963. }
  29964. return today;
  29965. }
  29966. },
  29967. inputFieldValue() {
  29968. return this.formatValue(this.modelValue);
  29969. },
  29970. containerClass() {
  29971. return [
  29972. 'p-calendar p-component p-inputwrapper', this.class,
  29973. {
  29974. 'p-calendar-w-btn': this.showIcon,
  29975. 'p-calendar-timeonly': this.timeOnly,
  29976. 'p-calendar-disabled': this.$attrs.disabled,
  29977. 'p-inputwrapper-filled': this.modelValue,
  29978. 'p-inputwrapper-focus': this.focused
  29979. }
  29980. ];
  29981. },
  29982. panelStyleClass() {
  29983. return ['p-datepicker p-component', this.panelClass, {
  29984. 'p-datepicker-inline': this.inline,
  29985. 'p-disabled': this.$attrs.disabled,
  29986. 'p-datepicker-timeonly': this.timeOnly,
  29987. 'p-datepicker-multiple-month': this.numberOfMonths > 1,
  29988. 'p-datepicker-monthpicker': (this.currentView === 'month'),
  29989. 'p-datepicker-yearpicker': (this.currentView === 'year'),
  29990. 'p-datepicker-touch-ui': this.touchUI,
  29991. 'p-input-filled': this.$primevue.config.inputStyle === 'filled',
  29992. 'p-ripple-disabled': this.$primevue.config.ripple === false
  29993. }];
  29994. },
  29995. months() {
  29996. let months = [];
  29997. for (let i = 0 ; i < this.numberOfMonths; i++) {
  29998. let month = this.currentMonth + i;
  29999. let year = this.currentYear;
  30000. if (month > 11) {
  30001. month = month % 11 - 1;
  30002. year = year + 1;
  30003. }
  30004. let dates = [];
  30005. let firstDay = this.getFirstDayOfMonthIndex(month, year);
  30006. let daysLength = this.getDaysCountInMonth(month, year);
  30007. let prevMonthDaysLength = this.getDaysCountInPrevMonth(month, year);
  30008. let dayNo = 1;
  30009. let today = new Date();
  30010. let weekNumbers = [];
  30011. let monthRows = Math.ceil((daysLength + firstDay) / 7);
  30012. for (let i = 0; i < monthRows; i++) {
  30013. let week = [];
  30014. if (i == 0) {
  30015. for (let j = (prevMonthDaysLength - firstDay + 1); j <= prevMonthDaysLength; j++) {
  30016. let prev = this.getPreviousMonthAndYear(month, year);
  30017. week.push({day: j, month: prev.month, year: prev.year, otherMonth: true,
  30018. today: this.isToday(today, j, prev.month, prev.year), selectable: this.isSelectable(j, prev.month, prev.year, true)});
  30019. }
  30020. let remainingDaysLength = 7 - week.length;
  30021. for (let j = 0; j < remainingDaysLength; j++) {
  30022. week.push({day: dayNo, month: month, year: year, today: this.isToday(today, dayNo, month, year),
  30023. selectable: this.isSelectable(dayNo, month, year, false)});
  30024. dayNo++;
  30025. }
  30026. }
  30027. else {
  30028. for (let j = 0; j < 7; j++) {
  30029. if (dayNo > daysLength) {
  30030. let next = this.getNextMonthAndYear(month, year);
  30031. week.push({day: dayNo - daysLength, month: next.month, year: next.year, otherMonth: true,
  30032. today: this.isToday(today, dayNo - daysLength, next.month, next.year),
  30033. selectable: this.isSelectable((dayNo - daysLength), next.month, next.year, true)});
  30034. }
  30035. else {
  30036. week.push({day: dayNo, month: month, year: year, today: this.isToday(today, dayNo, month, year),
  30037. selectable: this.isSelectable(dayNo, month, year, false)});
  30038. }
  30039. dayNo++;
  30040. }
  30041. }
  30042. if (this.showWeek) {
  30043. weekNumbers.push(this.getWeekNumber(new Date(week[0].year, week[0].month, week[0].day)));
  30044. }
  30045. dates.push(week);
  30046. }
  30047. months.push({
  30048. month: month,
  30049. year: year,
  30050. dates: dates,
  30051. weekNumbers: weekNumbers
  30052. });
  30053. }
  30054. return months;
  30055. },
  30056. weekDays() {
  30057. let weekDays = [];
  30058. let dayIndex = this.$primevue.config.locale.firstDayOfWeek;
  30059. for (let i = 0; i < 7; i++) {
  30060. weekDays.push(this.$primevue.config.locale.dayNamesMin[dayIndex]);
  30061. dayIndex = (dayIndex == 6) ? 0 : ++dayIndex;
  30062. }
  30063. return weekDays;
  30064. },
  30065. ticksTo1970() {
  30066. return (((1970 - 1) * 365 + Math.floor(1970 / 4) - Math.floor(1970 / 100) + Math.floor(1970 / 400)) * 24 * 60 * 60 * 10000000);
  30067. },
  30068. sundayIndex() {
  30069. return this.$primevue.config.locale.firstDayOfWeek > 0 ? 7 - this.$primevue.config.locale.firstDayOfWeek : 0;
  30070. },
  30071. datePattern() {
  30072. return this.dateFormat || this.$primevue.config.locale.dateFormat;
  30073. },
  30074. yearOptions() {
  30075. if (this.yearRange) {
  30076. let $vm = this;
  30077. const years = this.yearRange.split(':');
  30078. let yearStart = parseInt(years[0]);
  30079. let yearEnd = parseInt(years[1]);
  30080. let yearOptions = [];
  30081. if (this.currentYear < yearStart) {
  30082. $vm.currentYear = yearEnd;
  30083. }
  30084. else if (this.currentYear > yearEnd) {
  30085. $vm.currentYear = yearStart;
  30086. }
  30087. for (let i = yearStart; i <= yearEnd; i++) {
  30088. yearOptions.push(i);
  30089. }
  30090. return yearOptions;
  30091. }
  30092. else {
  30093. return null;
  30094. }
  30095. },
  30096. monthPickerValues() {
  30097. let monthPickerValues = [];
  30098. for (let i = 0; i <= 11; i++) {
  30099. monthPickerValues.push(this.$primevue.config.locale.monthNamesShort[i]);
  30100. }
  30101. return monthPickerValues;
  30102. },
  30103. yearPickerValues() {
  30104. let yearPickerValues = [];
  30105. let base = this.currentYear - (this.currentYear % 10);
  30106. for (let i = 0; i < 10; i++) {
  30107. yearPickerValues.push(base + i);
  30108. }
  30109. return yearPickerValues;
  30110. },
  30111. formattedCurrentHour() {
  30112. return this.currentHour < 10 ? '0' + this.currentHour : this.currentHour;
  30113. },
  30114. formattedCurrentMinute() {
  30115. return this.currentMinute < 10 ? '0' + this.currentMinute : this.currentMinute;
  30116. },
  30117. formattedCurrentSecond() {
  30118. return this.currentSecond < 10 ? '0' + this.currentSecond : this.currentSecond;
  30119. },
  30120. todayLabel() {
  30121. return this.$primevue.config.locale.today;
  30122. },
  30123. clearLabel() {
  30124. return this.$primevue.config.locale.clear;
  30125. },
  30126. weekHeaderLabel() {
  30127. return this.$primevue.config.locale.weekHeader;
  30128. },
  30129. monthNames() {
  30130. return this.$primevue.config.locale.monthNames;
  30131. },
  30132. appendDisabled() {
  30133. return this.appendTo === 'self' || this.inline;
  30134. },
  30135. appendTarget() {
  30136. return this.appendDisabled ? null : this.appendTo;
  30137. },
  30138. attributeSelector() {
  30139. return (0,primevue_utils__WEBPACK_IMPORTED_MODULE_0__.UniqueComponentId)();
  30140. },
  30141. switchViewButtonDisabled() {
  30142. return this.numberOfMonths > 1 || this.$attrs.disabled;
  30143. }
  30144. },
  30145. components: {
  30146. 'CalendarButton': primevue_button__WEBPACK_IMPORTED_MODULE_2__["default"]
  30147. },
  30148. directives: {
  30149. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_3__["default"]
  30150. }
  30151. };
  30152. const _hoisted_1 = ["readonly"];
  30153. const _hoisted_2 = ["role"];
  30154. const _hoisted_3 = { class: "p-datepicker-group-container" };
  30155. const _hoisted_4 = { class: "p-datepicker-header" };
  30156. const _hoisted_5 = ["disabled"];
  30157. const _hoisted_6 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("span", { class: "p-datepicker-prev-icon pi pi-chevron-left" }, null, -1);
  30158. const _hoisted_7 = [
  30159. _hoisted_6
  30160. ];
  30161. const _hoisted_8 = { class: "p-datepicker-title" };
  30162. const _hoisted_9 = ["disabled"];
  30163. const _hoisted_10 = ["disabled"];
  30164. const _hoisted_11 = {
  30165. key: 2,
  30166. class: "p-datepicker-decade"
  30167. };
  30168. const _hoisted_12 = ["disabled"];
  30169. const _hoisted_13 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("span", { class: "p-datepicker-next-icon pi pi-chevron-right" }, null, -1);
  30170. const _hoisted_14 = [
  30171. _hoisted_13
  30172. ];
  30173. const _hoisted_15 = {
  30174. key: 0,
  30175. class: "p-datepicker-calendar-container"
  30176. };
  30177. const _hoisted_16 = { class: "p-datepicker-calendar" };
  30178. const _hoisted_17 = {
  30179. key: 0,
  30180. scope: "col",
  30181. class: "p-datepicker-weekheader p-disabled"
  30182. };
  30183. const _hoisted_18 = {
  30184. key: 0,
  30185. class: "p-datepicker-weeknumber"
  30186. };
  30187. const _hoisted_19 = { class: "p-disabled" };
  30188. const _hoisted_20 = {
  30189. key: 0,
  30190. style: {"visibility":"hidden"}
  30191. };
  30192. const _hoisted_21 = ["onClick", "onKeydown"];
  30193. const _hoisted_22 = {
  30194. key: 0,
  30195. class: "p-monthpicker"
  30196. };
  30197. const _hoisted_23 = ["onClick", "onKeydown"];
  30198. const _hoisted_24 = {
  30199. key: 1,
  30200. class: "p-yearpicker"
  30201. };
  30202. const _hoisted_25 = ["onClick", "onKeydown"];
  30203. const _hoisted_26 = {
  30204. key: 1,
  30205. class: "p-timepicker"
  30206. };
  30207. const _hoisted_27 = { class: "p-hour-picker" };
  30208. const _hoisted_28 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("span", { class: "pi pi-chevron-up" }, null, -1);
  30209. const _hoisted_29 = [
  30210. _hoisted_28
  30211. ];
  30212. const _hoisted_30 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("span", { class: "pi pi-chevron-down" }, null, -1);
  30213. const _hoisted_31 = [
  30214. _hoisted_30
  30215. ];
  30216. const _hoisted_32 = { class: "p-separator" };
  30217. const _hoisted_33 = { class: "p-minute-picker" };
  30218. const _hoisted_34 = ["disabled"];
  30219. const _hoisted_35 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("span", { class: "pi pi-chevron-up" }, null, -1);
  30220. const _hoisted_36 = [
  30221. _hoisted_35
  30222. ];
  30223. const _hoisted_37 = ["disabled"];
  30224. const _hoisted_38 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("span", { class: "pi pi-chevron-down" }, null, -1);
  30225. const _hoisted_39 = [
  30226. _hoisted_38
  30227. ];
  30228. const _hoisted_40 = {
  30229. key: 0,
  30230. class: "p-separator"
  30231. };
  30232. const _hoisted_41 = {
  30233. key: 1,
  30234. class: "p-second-picker"
  30235. };
  30236. const _hoisted_42 = ["disabled"];
  30237. const _hoisted_43 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("span", { class: "pi pi-chevron-up" }, null, -1);
  30238. const _hoisted_44 = [
  30239. _hoisted_43
  30240. ];
  30241. const _hoisted_45 = ["disabled"];
  30242. const _hoisted_46 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("span", { class: "pi pi-chevron-down" }, null, -1);
  30243. const _hoisted_47 = [
  30244. _hoisted_46
  30245. ];
  30246. const _hoisted_48 = {
  30247. key: 2,
  30248. class: "p-separator"
  30249. };
  30250. const _hoisted_49 = {
  30251. key: 3,
  30252. class: "p-ampm-picker"
  30253. };
  30254. const _hoisted_50 = ["disabled"];
  30255. const _hoisted_51 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("span", { class: "pi pi-chevron-up" }, null, -1);
  30256. const _hoisted_52 = [
  30257. _hoisted_51
  30258. ];
  30259. const _hoisted_53 = ["disabled"];
  30260. const _hoisted_54 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("span", { class: "pi pi-chevron-down" }, null, -1);
  30261. const _hoisted_55 = [
  30262. _hoisted_54
  30263. ];
  30264. const _hoisted_56 = {
  30265. key: 2,
  30266. class: "p-datepicker-buttonbar"
  30267. };
  30268. function render(_ctx, _cache, $props, $setup, $data, $options) {
  30269. const _component_CalendarButton = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("CalendarButton");
  30270. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDirective)("ripple");
  30271. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("span", {
  30272. ref: "container",
  30273. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)($options.containerClass),
  30274. style: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeStyle)($props.style)
  30275. }, [
  30276. (!$props.inline)
  30277. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("input", (0,vue__WEBPACK_IMPORTED_MODULE_4__.mergeProps)({
  30278. key: 0,
  30279. ref: $options.inputRef,
  30280. type: "text",
  30281. class: ['p-inputtext p-component', $props.inputClass],
  30282. style: $props.inputStyle,
  30283. onInput: _cache[0] || (_cache[0] = (...args) => ($options.onInput && $options.onInput(...args)))
  30284. }, _ctx.$attrs, {
  30285. onFocus: _cache[1] || (_cache[1] = (...args) => ($options.onFocus && $options.onFocus(...args))),
  30286. onBlur: _cache[2] || (_cache[2] = (...args) => ($options.onBlur && $options.onBlur(...args))),
  30287. onKeydown: _cache[3] || (_cache[3] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args))),
  30288. readonly: !$props.manualInput,
  30289. inputmode: "none"
  30290. }), null, 16, _hoisted_1))
  30291. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30292. ($props.showIcon)
  30293. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_CalendarButton, {
  30294. key: 1,
  30295. icon: $props.icon,
  30296. tabindex: "-1",
  30297. class: "p-datepicker-trigger",
  30298. disabled: _ctx.$attrs.disabled,
  30299. onClick: $options.onButtonClick,
  30300. type: "button",
  30301. "aria-label": $options.inputFieldValue
  30302. }, null, 8, ["icon", "disabled", "onClick", "aria-label"]))
  30303. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30304. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Teleport, {
  30305. to: $options.appendTarget,
  30306. disabled: $options.appendDisabled
  30307. }, [
  30308. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)(vue__WEBPACK_IMPORTED_MODULE_4__.Transition, {
  30309. name: "p-connected-overlay",
  30310. onEnter: _cache[66] || (_cache[66] = $event => ($options.onOverlayEnter($event))),
  30311. onAfterEnter: $options.onOverlayEnterComplete,
  30312. onAfterLeave: $options.onOverlayAfterLeave,
  30313. onLeave: $options.onOverlayLeave
  30314. }, {
  30315. default: (0,vue__WEBPACK_IMPORTED_MODULE_4__.withCtx)(() => [
  30316. ($props.inline ? true : $data.overlayVisible)
  30317. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("div", {
  30318. key: 0,
  30319. ref: $options.overlayRef,
  30320. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)($options.panelStyleClass),
  30321. role: $props.inline ? null : 'dialog',
  30322. onClick: _cache[64] || (_cache[64] = (...args) => ($options.onOverlayClick && $options.onOverlayClick(...args))),
  30323. onMouseup: _cache[65] || (_cache[65] = (...args) => ($options.onOverlayMouseUp && $options.onOverlayMouseUp(...args)))
  30324. }, [
  30325. (!$props.timeOnly)
  30326. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, { key: 0 }, [
  30327. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("div", _hoisted_3, [
  30328. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($options.months, (month, groupIndex) => {
  30329. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("div", {
  30330. class: "p-datepicker-group",
  30331. key: month.month + month.year
  30332. }, [
  30333. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("div", _hoisted_4, [
  30334. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "header"),
  30335. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("button", {
  30336. class: "p-datepicker-prev p-link",
  30337. onClick: _cache[4] || (_cache[4] = (...args) => ($options.onPrevButtonClick && $options.onPrevButtonClick(...args))),
  30338. type: "button",
  30339. onKeydown: _cache[5] || (_cache[5] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
  30340. disabled: _ctx.$attrs.disabled
  30341. }, _hoisted_7, 40, _hoisted_5)), [
  30342. [vue__WEBPACK_IMPORTED_MODULE_4__.vShow, groupIndex === 0],
  30343. [_directive_ripple]
  30344. ]),
  30345. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("div", _hoisted_8, [
  30346. ($data.currentView === 'date')
  30347. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("button", {
  30348. key: 0,
  30349. type: "button",
  30350. onClick: _cache[6] || (_cache[6] = (...args) => ($options.switchToMonthView && $options.switchToMonthView(...args))),
  30351. onKeydown: _cache[7] || (_cache[7] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
  30352. class: "p-datepicker-month p-link",
  30353. disabled: $options.switchViewButtonDisabled
  30354. }, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.getMonthName(month.month)), 41, _hoisted_9))
  30355. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30356. ($data.currentView !== 'year')
  30357. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("button", {
  30358. key: 1,
  30359. type: "button",
  30360. onClick: _cache[8] || (_cache[8] = (...args) => ($options.switchToYearView && $options.switchToYearView(...args))),
  30361. onKeydown: _cache[9] || (_cache[9] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
  30362. class: "p-datepicker-year p-link",
  30363. disabled: $options.switchViewButtonDisabled
  30364. }, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.getYear(month)), 41, _hoisted_10))
  30365. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30366. ($data.currentView === 'year')
  30367. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("span", _hoisted_11, [
  30368. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "decade", { years: $options.yearPickerValues }, () => [
  30369. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.yearPickerValues[0]) + " - " + (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.yearPickerValues[$options.yearPickerValues.length - 1]), 1)
  30370. ])
  30371. ]))
  30372. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  30373. ]),
  30374. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("button", {
  30375. class: "p-datepicker-next p-link",
  30376. onClick: _cache[10] || (_cache[10] = (...args) => ($options.onNextButtonClick && $options.onNextButtonClick(...args))),
  30377. type: "button",
  30378. onKeydown: _cache[11] || (_cache[11] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
  30379. disabled: _ctx.$attrs.disabled
  30380. }, _hoisted_14, 40, _hoisted_12)), [
  30381. [vue__WEBPACK_IMPORTED_MODULE_4__.vShow, $props.numberOfMonths === 1 ? true : (groupIndex === $props.numberOfMonths - 1)],
  30382. [_directive_ripple]
  30383. ])
  30384. ]),
  30385. ($data.currentView ==='date')
  30386. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("div", _hoisted_15, [
  30387. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("table", _hoisted_16, [
  30388. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("thead", null, [
  30389. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("tr", null, [
  30390. ($props.showWeek)
  30391. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("th", _hoisted_17, [
  30392. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.weekHeaderLabel), 1)
  30393. ]))
  30394. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30395. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($options.weekDays, (weekDay) => {
  30396. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("th", {
  30397. scope: "col",
  30398. key: weekDay
  30399. }, [
  30400. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)(weekDay), 1)
  30401. ]))
  30402. }), 128))
  30403. ])
  30404. ]),
  30405. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("tbody", null, [
  30406. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)(month.dates, (week, i) => {
  30407. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("tr", {
  30408. key: week[0].day + '' + week[0].month
  30409. }, [
  30410. ($props.showWeek)
  30411. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("td", _hoisted_18, [
  30412. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("span", _hoisted_19, [
  30413. (month.weekNumbers[i] < 10)
  30414. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("span", _hoisted_20, "0"))
  30415. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30416. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createTextVNode)(" " + (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)(month.weekNumbers[i]), 1)
  30417. ])
  30418. ]))
  30419. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30420. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)(week, (date) => {
  30421. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("td", {
  30422. key: date.day + '' + date.month,
  30423. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)({'p-datepicker-other-month': date.otherMonth, 'p-datepicker-today': date.today})
  30424. }, [
  30425. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("span", {
  30426. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)({'p-highlight': $options.isSelected(date), 'p-disabled': !date.selectable}),
  30427. onClick: $event => ($options.onDateSelect($event, date)),
  30428. draggable: "false",
  30429. onKeydown: $event => ($options.onDateCellKeydown($event,date,groupIndex))
  30430. }, [
  30431. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "date", { date: date }, () => [
  30432. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)(date.day), 1)
  30433. ])
  30434. ], 42, _hoisted_21)), [
  30435. [_directive_ripple]
  30436. ])
  30437. ], 2))
  30438. }), 128))
  30439. ]))
  30440. }), 128))
  30441. ])
  30442. ])
  30443. ]))
  30444. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  30445. ]))
  30446. }), 128))
  30447. ]),
  30448. ($data.currentView === 'month')
  30449. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("div", _hoisted_22, [
  30450. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($options.monthPickerValues, (m, i) => {
  30451. return (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("span", {
  30452. key: m,
  30453. onClick: $event => ($options.onMonthSelect($event, i)),
  30454. onKeydown: $event => ($options.onMonthCellKeydown($event,i)),
  30455. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)(["p-monthpicker-month", {'p-highlight': $options.isMonthSelected(i)}])
  30456. }, [
  30457. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)(m), 1)
  30458. ], 42, _hoisted_23)), [
  30459. [_directive_ripple]
  30460. ])
  30461. }), 128))
  30462. ]))
  30463. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30464. ($data.currentView === 'year')
  30465. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("div", _hoisted_24, [
  30466. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($options.yearPickerValues, (y) => {
  30467. return (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("span", {
  30468. key: y,
  30469. onClick: $event => ($options.onYearSelect($event, y)),
  30470. onKeydown: $event => ($options.onYearCellKeydown($event,y)),
  30471. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)(["p-yearpicker-year", {'p-highlight': $options.isYearSelected(y)}])
  30472. }, [
  30473. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)(y), 1)
  30474. ], 42, _hoisted_25)), [
  30475. [_directive_ripple]
  30476. ])
  30477. }), 128))
  30478. ]))
  30479. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  30480. ], 64))
  30481. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30482. (($props.showTime||$props.timeOnly) && $data.currentView === 'date')
  30483. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("div", _hoisted_26, [
  30484. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("div", _hoisted_27, [
  30485. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("button", {
  30486. class: "p-link",
  30487. onMousedown: _cache[12] || (_cache[12] = $event => ($options.onTimePickerElementMouseDown($event, 0, 1))),
  30488. onMouseup: _cache[13] || (_cache[13] = $event => ($options.onTimePickerElementMouseUp($event))),
  30489. onKeydown: [
  30490. _cache[14] || (_cache[14] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
  30491. _cache[16] || (_cache[16] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 0, 1)), ["enter"])),
  30492. _cache[17] || (_cache[17] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 0, 1)), ["space"]))
  30493. ],
  30494. onMouseleave: _cache[15] || (_cache[15] = $event => ($options.onTimePickerElementMouseLeave())),
  30495. onKeyup: [
  30496. _cache[18] || (_cache[18] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
  30497. _cache[19] || (_cache[19] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
  30498. ],
  30499. type: "button"
  30500. }, _hoisted_29, 32)), [
  30501. [_directive_ripple]
  30502. ]),
  30503. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.formattedCurrentHour), 1),
  30504. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("button", {
  30505. class: "p-link",
  30506. onMousedown: _cache[20] || (_cache[20] = $event => ($options.onTimePickerElementMouseDown($event, 0, -1))),
  30507. onMouseup: _cache[21] || (_cache[21] = $event => ($options.onTimePickerElementMouseUp($event))),
  30508. onKeydown: [
  30509. _cache[22] || (_cache[22] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
  30510. _cache[24] || (_cache[24] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 0, -1)), ["enter"])),
  30511. _cache[25] || (_cache[25] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 0, -1)), ["space"]))
  30512. ],
  30513. onMouseleave: _cache[23] || (_cache[23] = $event => ($options.onTimePickerElementMouseLeave())),
  30514. onKeyup: [
  30515. _cache[26] || (_cache[26] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
  30516. _cache[27] || (_cache[27] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
  30517. ],
  30518. type: "button"
  30519. }, _hoisted_31, 32)), [
  30520. [_directive_ripple]
  30521. ])
  30522. ]),
  30523. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("div", _hoisted_32, [
  30524. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($props.timeSeparator), 1)
  30525. ]),
  30526. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("div", _hoisted_33, [
  30527. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("button", {
  30528. class: "p-link",
  30529. onMousedown: _cache[28] || (_cache[28] = $event => ($options.onTimePickerElementMouseDown($event, 1, 1))),
  30530. onMouseup: _cache[29] || (_cache[29] = $event => ($options.onTimePickerElementMouseUp($event))),
  30531. onKeydown: [
  30532. _cache[30] || (_cache[30] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
  30533. _cache[32] || (_cache[32] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 1, 1)), ["enter"])),
  30534. _cache[33] || (_cache[33] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 1, 1)), ["space"]))
  30535. ],
  30536. disabled: _ctx.$attrs.disabled,
  30537. onMouseleave: _cache[31] || (_cache[31] = $event => ($options.onTimePickerElementMouseLeave())),
  30538. onKeyup: [
  30539. _cache[34] || (_cache[34] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
  30540. _cache[35] || (_cache[35] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
  30541. ],
  30542. type: "button"
  30543. }, _hoisted_36, 40, _hoisted_34)), [
  30544. [_directive_ripple]
  30545. ]),
  30546. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.formattedCurrentMinute), 1),
  30547. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("button", {
  30548. class: "p-link",
  30549. onMousedown: _cache[36] || (_cache[36] = $event => ($options.onTimePickerElementMouseDown($event, 1, -1))),
  30550. onMouseup: _cache[37] || (_cache[37] = $event => ($options.onTimePickerElementMouseUp($event))),
  30551. onKeydown: [
  30552. _cache[38] || (_cache[38] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
  30553. _cache[40] || (_cache[40] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 1, -1)), ["enter"])),
  30554. _cache[41] || (_cache[41] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 1, -1)), ["space"]))
  30555. ],
  30556. disabled: _ctx.$attrs.disabled,
  30557. onMouseleave: _cache[39] || (_cache[39] = $event => ($options.onTimePickerElementMouseLeave())),
  30558. onKeyup: [
  30559. _cache[42] || (_cache[42] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
  30560. _cache[43] || (_cache[43] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
  30561. ],
  30562. type: "button"
  30563. }, _hoisted_39, 40, _hoisted_37)), [
  30564. [_directive_ripple]
  30565. ])
  30566. ]),
  30567. ($props.showSeconds)
  30568. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("div", _hoisted_40, [
  30569. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($props.timeSeparator), 1)
  30570. ]))
  30571. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30572. ($props.showSeconds)
  30573. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("div", _hoisted_41, [
  30574. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("button", {
  30575. class: "p-link",
  30576. onMousedown: _cache[44] || (_cache[44] = $event => ($options.onTimePickerElementMouseDown($event, 2, 1))),
  30577. onMouseup: _cache[45] || (_cache[45] = $event => ($options.onTimePickerElementMouseUp($event))),
  30578. onKeydown: [
  30579. _cache[46] || (_cache[46] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
  30580. _cache[48] || (_cache[48] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 2, 1)), ["enter"])),
  30581. _cache[49] || (_cache[49] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 2, 1)), ["space"]))
  30582. ],
  30583. disabled: _ctx.$attrs.disabled,
  30584. onMouseleave: _cache[47] || (_cache[47] = $event => ($options.onTimePickerElementMouseLeave())),
  30585. onKeyup: [
  30586. _cache[50] || (_cache[50] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
  30587. _cache[51] || (_cache[51] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
  30588. ],
  30589. type: "button"
  30590. }, _hoisted_44, 40, _hoisted_42)), [
  30591. [_directive_ripple]
  30592. ]),
  30593. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.formattedCurrentSecond), 1),
  30594. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("button", {
  30595. class: "p-link",
  30596. onMousedown: _cache[52] || (_cache[52] = $event => ($options.onTimePickerElementMouseDown($event, 2, -1))),
  30597. onMouseup: _cache[53] || (_cache[53] = $event => ($options.onTimePickerElementMouseUp($event))),
  30598. onKeydown: [
  30599. _cache[54] || (_cache[54] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
  30600. _cache[56] || (_cache[56] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 2, -1)), ["enter"])),
  30601. _cache[57] || (_cache[57] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 2, -1)), ["space"]))
  30602. ],
  30603. disabled: _ctx.$attrs.disabled,
  30604. onMouseleave: _cache[55] || (_cache[55] = $event => ($options.onTimePickerElementMouseLeave())),
  30605. onKeyup: [
  30606. _cache[58] || (_cache[58] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
  30607. _cache[59] || (_cache[59] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
  30608. ],
  30609. type: "button"
  30610. }, _hoisted_47, 40, _hoisted_45)), [
  30611. [_directive_ripple]
  30612. ])
  30613. ]))
  30614. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30615. ($props.hourFormat=='12')
  30616. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("div", _hoisted_48, [
  30617. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($props.timeSeparator), 1)
  30618. ]))
  30619. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30620. ($props.hourFormat=='12')
  30621. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("div", _hoisted_49, [
  30622. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("button", {
  30623. class: "p-link",
  30624. onClick: _cache[60] || (_cache[60] = $event => ($options.toggleAMPM($event))),
  30625. type: "button",
  30626. disabled: _ctx.$attrs.disabled
  30627. }, _hoisted_52, 8, _hoisted_50)), [
  30628. [_directive_ripple]
  30629. ]),
  30630. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($data.pm ? 'PM' : 'AM'), 1),
  30631. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("button", {
  30632. class: "p-link",
  30633. onClick: _cache[61] || (_cache[61] = $event => ($options.toggleAMPM($event))),
  30634. type: "button",
  30635. disabled: _ctx.$attrs.disabled
  30636. }, _hoisted_55, 8, _hoisted_53)), [
  30637. [_directive_ripple]
  30638. ])
  30639. ]))
  30640. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  30641. ]))
  30642. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30643. ($props.showButtonBar)
  30644. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("div", _hoisted_56, [
  30645. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)(_component_CalendarButton, {
  30646. type: "button",
  30647. label: $options.todayLabel,
  30648. onClick: _cache[62] || (_cache[62] = $event => ($options.onTodayButtonClick($event))),
  30649. class: "p-button-text",
  30650. onKeydown: $options.onContainerButtonKeydown
  30651. }, null, 8, ["label", "onKeydown"]),
  30652. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)(_component_CalendarButton, {
  30653. type: "button",
  30654. label: $options.clearLabel,
  30655. onClick: _cache[63] || (_cache[63] = $event => ($options.onClearButtonClick($event))),
  30656. class: "p-button-text",
  30657. onKeydown: $options.onContainerButtonKeydown
  30658. }, null, 8, ["label", "onKeydown"])
  30659. ]))
  30660. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30661. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "footer")
  30662. ], 42, _hoisted_2))
  30663. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  30664. ]),
  30665. _: 3
  30666. }, 8, ["onAfterEnter", "onAfterLeave", "onLeave"])
  30667. ], 8, ["to", "disabled"]))
  30668. ], 6))
  30669. }
  30670. function styleInject(css, ref) {
  30671. if ( ref === void 0 ) ref = {};
  30672. var insertAt = ref.insertAt;
  30673. if (!css || typeof document === 'undefined') { return; }
  30674. var head = document.head || document.getElementsByTagName('head')[0];
  30675. var style = document.createElement('style');
  30676. style.type = 'text/css';
  30677. if (insertAt === 'top') {
  30678. if (head.firstChild) {
  30679. head.insertBefore(style, head.firstChild);
  30680. } else {
  30681. head.appendChild(style);
  30682. }
  30683. } else {
  30684. head.appendChild(style);
  30685. }
  30686. if (style.styleSheet) {
  30687. style.styleSheet.cssText = css;
  30688. } else {
  30689. style.appendChild(document.createTextNode(css));
  30690. }
  30691. }
  30692. var css_248z = "\n.p-calendar {\n position: relative;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n max-width: 100%;\n}\n.p-calendar .p-inputtext {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n width: 1%;\n}\n.p-calendar-w-btn .p-inputtext {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-calendar-w-btn .p-datepicker-trigger {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n/* Fluid */\n.p-fluid .p-calendar {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-fluid .p-calendar .p-inputtext {\n width: 1%;\n}\n\n/* Datepicker */\n.p-calendar .p-datepicker {\n min-width: 100%;\n}\n.p-datepicker {\n\twidth: auto;\n position: absolute;\n top: 0;\n left: 0;\n}\n.p-datepicker-inline {\n display: inline-block;\n position: static;\n overflow-x: auto;\n}\n\n/* Header */\n.p-datepicker-header {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n.p-datepicker-header .p-datepicker-title {\n margin: 0 auto;\n}\n.p-datepicker-prev,\n.p-datepicker-next {\n cursor: pointer;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n overflow: hidden;\n position: relative;\n}\n\n/* Multiple Month DatePicker */\n.p-datepicker-multiple-month .p-datepicker-group-container {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n}\n\n/* DatePicker Table */\n.p-datepicker table {\n\twidth: 100%;\n\tborder-collapse: collapse;\n}\n.p-datepicker td > span {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n cursor: pointer;\n margin: 0 auto;\n overflow: hidden;\n position: relative;\n}\n\n/* Month Picker */\n.p-monthpicker-month {\n width: 33.3%;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n\n/* Year Picker */\n.p-yearpicker-year {\n width: 50%;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n\n/* Button Bar */\n.p-datepicker-buttonbar {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n\n/* Time Picker */\n.p-timepicker {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.p-timepicker button {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n.p-timepicker > div {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n\n/* Touch UI */\n.p-datepicker-touch-ui,\n.p-calendar .p-datepicker-touch-ui {\n position: fixed;\n top: 50%;\n left: 50%;\n min-width: 80vw;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n}\n";
  30693. styleInject(css_248z);
  30694. script.render = render;
  30695. /***/ }),
  30696. /***/ "./node_modules/primevue/card/card.esm.js":
  30697. /*!************************************************!*\
  30698. !*** ./node_modules/primevue/card/card.esm.js ***!
  30699. \************************************************/
  30700. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  30701. "use strict";
  30702. __webpack_require__.r(__webpack_exports__);
  30703. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  30704. /* harmony export */ "default": () => (/* binding */ script)
  30705. /* harmony export */ });
  30706. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  30707. var script = {
  30708. name: 'Card'
  30709. };
  30710. const _hoisted_1 = { class: "p-card p-component" };
  30711. const _hoisted_2 = {
  30712. key: 0,
  30713. class: "p-card-header"
  30714. };
  30715. const _hoisted_3 = { class: "p-card-body" };
  30716. const _hoisted_4 = {
  30717. key: 0,
  30718. class: "p-card-title"
  30719. };
  30720. const _hoisted_5 = {
  30721. key: 1,
  30722. class: "p-card-subtitle"
  30723. };
  30724. const _hoisted_6 = { class: "p-card-content" };
  30725. const _hoisted_7 = {
  30726. key: 2,
  30727. class: "p-card-footer"
  30728. };
  30729. function render(_ctx, _cache, $props, $setup, $data, $options) {
  30730. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_1, [
  30731. (_ctx.$slots.header)
  30732. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_2, [
  30733. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "header")
  30734. ]))
  30735. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true),
  30736. (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_3, [
  30737. (_ctx.$slots.title)
  30738. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_4, [
  30739. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "title")
  30740. ]))
  30741. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true),
  30742. (_ctx.$slots.subtitle)
  30743. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_5, [
  30744. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "subtitle")
  30745. ]))
  30746. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true),
  30747. (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_6, [
  30748. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "content")
  30749. ]),
  30750. (_ctx.$slots.footer)
  30751. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_7, [
  30752. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "footer")
  30753. ]))
  30754. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true)
  30755. ])
  30756. ]))
  30757. }
  30758. function styleInject(css, ref) {
  30759. if ( ref === void 0 ) ref = {};
  30760. var insertAt = ref.insertAt;
  30761. if (!css || typeof document === 'undefined') { return; }
  30762. var head = document.head || document.getElementsByTagName('head')[0];
  30763. var style = document.createElement('style');
  30764. style.type = 'text/css';
  30765. if (insertAt === 'top') {
  30766. if (head.firstChild) {
  30767. head.insertBefore(style, head.firstChild);
  30768. } else {
  30769. head.appendChild(style);
  30770. }
  30771. } else {
  30772. head.appendChild(style);
  30773. }
  30774. if (style.styleSheet) {
  30775. style.styleSheet.cssText = css;
  30776. } else {
  30777. style.appendChild(document.createTextNode(css));
  30778. }
  30779. }
  30780. var css_248z = "\n.p-card-header img {\n width: 100%;\n}\n";
  30781. styleInject(css_248z);
  30782. script.render = render;
  30783. /***/ }),
  30784. /***/ "./node_modules/primevue/chart/chart.esm.js":
  30785. /*!**************************************************!*\
  30786. !*** ./node_modules/primevue/chart/chart.esm.js ***!
  30787. \**************************************************/
  30788. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  30789. "use strict";
  30790. __webpack_require__.r(__webpack_exports__);
  30791. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  30792. /* harmony export */ "default": () => (/* binding */ script)
  30793. /* harmony export */ });
  30794. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  30795. var script = {
  30796. name: 'Chart',
  30797. emits: ['select', 'loaded'],
  30798. props: {
  30799. type: String,
  30800. data: null,
  30801. options: null,
  30802. plugins: null,
  30803. width: {
  30804. type: Number,
  30805. default: 300
  30806. },
  30807. height: {
  30808. type: Number,
  30809. default: 150
  30810. },
  30811. },
  30812. chart: null,
  30813. mounted() {
  30814. this.initChart();
  30815. },
  30816. beforeUnmount() {
  30817. if (this.chart) {
  30818. this.chart.destroy();
  30819. this.chart = null;
  30820. }
  30821. },
  30822. watch: {
  30823. /*
  30824. * Use deep watch to enable triggering watch for changes within structure
  30825. * otherwise the entire data object needs to be replaced to trigger watch
  30826. */
  30827. data: {
  30828. handler() {
  30829. this.reinit();
  30830. },
  30831. deep: true
  30832. },
  30833. type() {
  30834. this.reinit();
  30835. },
  30836. options() {
  30837. this.reinit();
  30838. }
  30839. },
  30840. methods: {
  30841. initChart() {
  30842. __webpack_require__.e(/*! import() */ "node_modules_chart_js_auto_auto_esm_js").then(__webpack_require__.bind(__webpack_require__, /*! chart.js/auto */ "./node_modules/chart.js/auto/auto.esm.js")).then((module) => {
  30843. if (this.chart) {
  30844. this.chart.destroy();
  30845. this.chart = null;
  30846. }
  30847. if (module && module.default) {
  30848. this.chart = new module.default(this.$refs.canvas, {
  30849. type: this.type,
  30850. data: this.data,
  30851. options: this.options,
  30852. plugins: this.plugins
  30853. });
  30854. }
  30855. this.$emit('loaded', this.chart);
  30856. });
  30857. },
  30858. getCanvas() {
  30859. return this.$canvas;
  30860. },
  30861. getChart() {
  30862. return this.chart;
  30863. },
  30864. getBase64Image() {
  30865. return this.chart.toBase64Image();
  30866. },
  30867. refresh() {
  30868. if (this.chart) {
  30869. this.chart.update();
  30870. }
  30871. },
  30872. reinit() {
  30873. this.initChart();
  30874. },
  30875. onCanvasClick(event) {
  30876. if (this.chart) {
  30877. const element = this.chart.getElementsAtEventForMode(event, 'nearest', { intersect: true }, false);
  30878. const dataset = this.chart.getElementsAtEventForMode(event, 'dataset', { intersect: true }, false);
  30879. if (element && element[0] && dataset) {
  30880. this.$emit('select', {originalEvent: event, element: element[0], dataset: dataset});
  30881. }
  30882. }
  30883. },
  30884. generateLegend() {
  30885. if (this.chart) {
  30886. return this.chart.generateLegend();
  30887. }
  30888. }
  30889. }
  30890. };
  30891. const _hoisted_1 = { class: "p-chart" };
  30892. const _hoisted_2 = ["width", "height"];
  30893. function render(_ctx, _cache, $props, $setup, $data, $options) {
  30894. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_1, [
  30895. (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("canvas", {
  30896. ref: "canvas",
  30897. width: $props.width,
  30898. height: $props.height,
  30899. onClick: _cache[0] || (_cache[0] = $event => ($options.onCanvasClick($event)))
  30900. }, null, 8, _hoisted_2)
  30901. ]))
  30902. }
  30903. function styleInject(css, ref) {
  30904. if ( ref === void 0 ) ref = {};
  30905. var insertAt = ref.insertAt;
  30906. if (!css || typeof document === 'undefined') { return; }
  30907. var head = document.head || document.getElementsByTagName('head')[0];
  30908. var style = document.createElement('style');
  30909. style.type = 'text/css';
  30910. if (insertAt === 'top') {
  30911. if (head.firstChild) {
  30912. head.insertBefore(style, head.firstChild);
  30913. } else {
  30914. head.appendChild(style);
  30915. }
  30916. } else {
  30917. head.appendChild(style);
  30918. }
  30919. if (style.styleSheet) {
  30920. style.styleSheet.cssText = css;
  30921. } else {
  30922. style.appendChild(document.createTextNode(css));
  30923. }
  30924. }
  30925. var css_248z = "\n.p-chart {\n position: relative;\n}\n";
  30926. styleInject(css_248z);
  30927. script.render = render;
  30928. /***/ }),
  30929. /***/ "./node_modules/primevue/column/column.esm.js":
  30930. /*!****************************************************!*\
  30931. !*** ./node_modules/primevue/column/column.esm.js ***!
  30932. \****************************************************/
  30933. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  30934. "use strict";
  30935. __webpack_require__.r(__webpack_exports__);
  30936. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  30937. /* harmony export */ "default": () => (/* binding */ script)
  30938. /* harmony export */ });
  30939. var script = {
  30940. name: 'Column',
  30941. props: {
  30942. columnKey: {
  30943. type: null,
  30944. default: null
  30945. },
  30946. field: {
  30947. type: [String, Function],
  30948. default: null
  30949. },
  30950. sortField: {
  30951. type: [String, Function],
  30952. default: null
  30953. },
  30954. filterField: {
  30955. type: [String, Function],
  30956. default: null
  30957. },
  30958. dataType: {
  30959. type: String,
  30960. default: 'text'
  30961. },
  30962. sortable: {
  30963. type: Boolean,
  30964. default: false
  30965. },
  30966. header: {
  30967. type: null,
  30968. default: null
  30969. },
  30970. footer: {
  30971. type: null,
  30972. default: null
  30973. },
  30974. style: {
  30975. type: null,
  30976. default: null
  30977. },
  30978. class: {
  30979. type: String,
  30980. default: null
  30981. },
  30982. headerStyle: {
  30983. type: null,
  30984. default: null
  30985. },
  30986. headerClass: {
  30987. type: String,
  30988. default: null
  30989. },
  30990. bodyStyle: {
  30991. type: null,
  30992. default: null
  30993. },
  30994. bodyClass: {
  30995. type: String,
  30996. default: null
  30997. },
  30998. footerStyle: {
  30999. type: null,
  31000. default: null
  31001. },
  31002. footerClass: {
  31003. type: String,
  31004. default: null
  31005. },
  31006. showFilterMenu: {
  31007. type: Boolean,
  31008. default: true
  31009. },
  31010. showFilterOperator: {
  31011. type: Boolean,
  31012. default: true
  31013. },
  31014. showClearButton: {
  31015. type: Boolean,
  31016. default: true
  31017. },
  31018. showApplyButton: {
  31019. type: Boolean,
  31020. default: true
  31021. },
  31022. showFilterMatchModes: {
  31023. type: Boolean,
  31024. default: true
  31025. },
  31026. showAddButton: {
  31027. type: Boolean,
  31028. default: true
  31029. },
  31030. filterMatchModeOptions: {
  31031. type: Array,
  31032. default: null
  31033. },
  31034. maxConstraints: {
  31035. type: Number,
  31036. default: 2
  31037. },
  31038. excludeGlobalFilter: {
  31039. type: Boolean,
  31040. default: false
  31041. },
  31042. filterHeaderClass: {
  31043. type: String,
  31044. default: null
  31045. },
  31046. filterHeaderStyle: {
  31047. type: null,
  31048. default: null
  31049. },
  31050. filterMenuClass: {
  31051. type: String,
  31052. default: null
  31053. },
  31054. filterMenuStyle: {
  31055. type: null,
  31056. default: null
  31057. },
  31058. selectionMode: {
  31059. type: String,
  31060. default: null
  31061. },
  31062. expander: {
  31063. type: Boolean,
  31064. default: false
  31065. },
  31066. colspan: {
  31067. type: Number,
  31068. default: null
  31069. },
  31070. rowspan: {
  31071. type: Number,
  31072. default: null
  31073. },
  31074. rowReorder: {
  31075. type: Boolean,
  31076. default: false
  31077. },
  31078. rowReorderIcon: {
  31079. type: String,
  31080. default: 'pi pi-bars'
  31081. },
  31082. reorderableColumn: {
  31083. type: Boolean,
  31084. default: true
  31085. },
  31086. rowEditor: {
  31087. type: Boolean,
  31088. default: false
  31089. },
  31090. frozen: {
  31091. type: Boolean,
  31092. default: false
  31093. },
  31094. alignFrozen: {
  31095. type: String,
  31096. default: 'left'
  31097. },
  31098. exportable: {
  31099. type: Boolean,
  31100. default: true
  31101. },
  31102. exportHeader: {
  31103. type: String,
  31104. default: null
  31105. },
  31106. filterMatchMode: {
  31107. type: String,
  31108. default: null
  31109. },
  31110. hidden: {
  31111. type: Boolean,
  31112. default: false
  31113. }
  31114. },
  31115. render() {
  31116. return null;
  31117. }
  31118. };
  31119. /***/ }),
  31120. /***/ "./node_modules/primevue/config/config.esm.js":
  31121. /*!****************************************************!*\
  31122. !*** ./node_modules/primevue/config/config.esm.js ***!
  31123. \****************************************************/
  31124. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  31125. "use strict";
  31126. __webpack_require__.r(__webpack_exports__);
  31127. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  31128. /* harmony export */ "default": () => (/* binding */ PrimeVue),
  31129. /* harmony export */ "usePrimeVue": () => (/* binding */ usePrimeVue)
  31130. /* harmony export */ });
  31131. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  31132. /* harmony import */ var primevue_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/api */ "./node_modules/primevue/api/api.esm.js");
  31133. const defaultOptions = {
  31134. ripple: false,
  31135. inputStyle: 'outlined',
  31136. locale: {
  31137. startsWith: 'Starts with',
  31138. contains: 'Contains',
  31139. notContains: 'Not contains',
  31140. endsWith: 'Ends with',
  31141. equals: 'Equals',
  31142. notEquals: 'Not equals',
  31143. noFilter: 'No Filter',
  31144. lt: 'Less than',
  31145. lte: 'Less than or equal to',
  31146. gt: 'Greater than',
  31147. gte: 'Greater than or equal to',
  31148. dateIs: 'Date is',
  31149. dateIsNot: 'Date is not',
  31150. dateBefore: 'Date is before',
  31151. dateAfter: 'Date is after',
  31152. clear: 'Clear',
  31153. apply: 'Apply',
  31154. matchAll: 'Match All',
  31155. matchAny: 'Match Any',
  31156. addRule: 'Add Rule',
  31157. removeRule: 'Remove Rule',
  31158. accept: 'Yes',
  31159. reject: 'No',
  31160. choose: 'Choose',
  31161. upload: 'Upload',
  31162. cancel: 'Cancel',
  31163. dayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
  31164. dayNamesShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
  31165. dayNamesMin: ["Su","Mo","Tu","We","Th","Fr","Sa"],
  31166. monthNames: ["January","February","March","April","May","June","July","August","September","October","November","December"],
  31167. monthNamesShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun","Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
  31168. today: 'Today',
  31169. weekHeader: 'Wk',
  31170. firstDayOfWeek: 0,
  31171. dateFormat: 'mm/dd/yy',
  31172. weak: 'Weak',
  31173. medium: 'Medium',
  31174. strong: 'Strong',
  31175. passwordPrompt: 'Enter a password',
  31176. emptyFilterMessage: 'No results found',
  31177. emptyMessage: 'No available options'
  31178. },
  31179. filterMatchModeOptions: {
  31180. text: [
  31181. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.STARTS_WITH,
  31182. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.CONTAINS,
  31183. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.NOT_CONTAINS,
  31184. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.ENDS_WITH,
  31185. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.EQUALS,
  31186. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.NOT_EQUALS
  31187. ],
  31188. numeric: [
  31189. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.EQUALS,
  31190. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.NOT_EQUALS,
  31191. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.LESS_THAN,
  31192. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.LESS_THAN_OR_EQUAL_TO,
  31193. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.GREATER_THAN,
  31194. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.GREATER_THAN_OR_EQUAL_TO
  31195. ],
  31196. date: [
  31197. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.DATE_IS,
  31198. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.DATE_IS_NOT,
  31199. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.DATE_BEFORE,
  31200. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.DATE_AFTER
  31201. ]
  31202. },
  31203. zIndex: {
  31204. modal: 1100,
  31205. overlay: 1000,
  31206. menu: 1000,
  31207. tooltip: 1100
  31208. }
  31209. };
  31210. const PrimeVueSymbol = Symbol();
  31211. function usePrimeVue() {
  31212. const PrimeVue = (0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)(PrimeVueSymbol);
  31213. if (!PrimeVue) {
  31214. throw new Error('PrimeVue is not installed!');
  31215. }
  31216. return PrimeVue;
  31217. }
  31218. var PrimeVue = {
  31219. install: (app, options) => {
  31220. let configOptions = options ? {...defaultOptions, ...options} : {...defaultOptions};
  31221. const PrimeVue = {
  31222. config: (0,vue__WEBPACK_IMPORTED_MODULE_0__.reactive)(configOptions)
  31223. };
  31224. app.config.globalProperties.$primevue = PrimeVue;
  31225. app.provide(PrimeVueSymbol, PrimeVue);
  31226. }
  31227. };
  31228. /***/ }),
  31229. /***/ "./node_modules/primevue/datatable/datatable.esm.js":
  31230. /*!**********************************************************!*\
  31231. !*** ./node_modules/primevue/datatable/datatable.esm.js ***!
  31232. \**********************************************************/
  31233. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  31234. "use strict";
  31235. __webpack_require__.r(__webpack_exports__);
  31236. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  31237. /* harmony export */ "default": () => (/* binding */ script)
  31238. /* harmony export */ });
  31239. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  31240. /* harmony import */ var primevue_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/api */ "./node_modules/primevue/api/api.esm.js");
  31241. /* harmony import */ var primevue_paginator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! primevue/paginator */ "./node_modules/primevue/paginator/paginator.esm.js");
  31242. /* harmony import */ var primevue_virtualscroller__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! primevue/virtualscroller */ "./node_modules/primevue/virtualscroller/virtualscroller.esm.js");
  31243. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  31244. /* harmony import */ var primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! primevue/overlayeventbus */ "./node_modules/primevue/overlayeventbus/overlayeventbus.esm.js");
  31245. /* harmony import */ var primevue_dropdown__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! primevue/dropdown */ "./node_modules/primevue/dropdown/dropdown.esm.js");
  31246. /* harmony import */ var primevue_button__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! primevue/button */ "./node_modules/primevue/button/button.esm.js");
  31247. /* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! primevue/ripple */ "./node_modules/primevue/ripple/ripple.esm.js");
  31248. var script$a = {
  31249. name: 'HeaderCheckbox',
  31250. inheritAttrs: false,
  31251. emits: ['change'],
  31252. props: {
  31253. checked: null
  31254. },
  31255. data() {
  31256. return {
  31257. focused: false
  31258. };
  31259. },
  31260. methods: {
  31261. onClick(event) {
  31262. if (!this.$attrs.disabled) {
  31263. this.focused = true;
  31264. this.$emit('change', {
  31265. originalEvent: event,
  31266. checked: !this.checked
  31267. });
  31268. }
  31269. },
  31270. onFocus() {
  31271. this.focused = true;
  31272. },
  31273. onBlur() {
  31274. this.focused = false;
  31275. }
  31276. }
  31277. };
  31278. const _hoisted_1$a = ["aria-checked", "tabindex"];
  31279. function render$a(_ctx, _cache, $props, $setup, $data, $options) {
  31280. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("div", {
  31281. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)(['p-checkbox p-component', {'p-checkbox-focused': $data.focused}]),
  31282. onClick: _cache[2] || (_cache[2] = (...args) => ($options.onClick && $options.onClick(...args))),
  31283. onKeydown: _cache[3] || (_cache[3] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)((0,vue__WEBPACK_IMPORTED_MODULE_4__.withModifiers)((...args) => ($options.onClick && $options.onClick(...args)), ["prevent"]), ["space"]))
  31284. }, [
  31285. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("div", {
  31286. ref: "box",
  31287. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)(['p-checkbox-box p-component', {'p-highlight': $props.checked, 'p-disabled': _ctx.$attrs.disabled, 'p-focus': $data.focused}]),
  31288. role: "checkbox",
  31289. "aria-checked": $props.checked,
  31290. tabindex: _ctx.$attrs.disabled ? null : '0',
  31291. onFocus: _cache[0] || (_cache[0] = $event => ($options.onFocus($event))),
  31292. onBlur: _cache[1] || (_cache[1] = $event => ($options.onBlur($event)))
  31293. }, [
  31294. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("span", {
  31295. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)(['p-checkbox-icon', {'pi pi-check': $props.checked}])
  31296. }, null, 2)
  31297. ], 42, _hoisted_1$a)
  31298. ], 34))
  31299. }
  31300. script$a.render = render$a;
  31301. var script$9 = {
  31302. name: 'ColumnFilter',
  31303. emits: ['filter-change','filter-apply','operator-change','matchmode-change','constraint-add','constraint-remove','filter-clear','apply-click'],
  31304. props: {
  31305. field: {
  31306. type: String,
  31307. default: null
  31308. },
  31309. type: {
  31310. type: String,
  31311. default: 'text'
  31312. },
  31313. display: {
  31314. type: String,
  31315. default: null
  31316. },
  31317. showMenu: {
  31318. type: Boolean,
  31319. default: true
  31320. },
  31321. matchMode: {
  31322. type: String,
  31323. default: null
  31324. },
  31325. showOperator: {
  31326. type: Boolean,
  31327. default: true
  31328. },
  31329. showClearButton: {
  31330. type: Boolean,
  31331. default: true
  31332. },
  31333. showApplyButton: {
  31334. type: Boolean,
  31335. default: true
  31336. },
  31337. showMatchModes: {
  31338. type: Boolean,
  31339. default: true
  31340. },
  31341. showAddButton: {
  31342. type: Boolean,
  31343. default: true
  31344. },
  31345. matchModeOptions: {
  31346. type: Array,
  31347. default: null
  31348. },
  31349. maxConstraints: {
  31350. type: Number,
  31351. default: 2
  31352. },
  31353. filterElement: null,
  31354. filterHeaderTemplate: null,
  31355. filterFooterTemplate: null,
  31356. filterClearTemplate: null,
  31357. filterApplyTemplate: null,
  31358. filters: {
  31359. type: Object,
  31360. default: null
  31361. },
  31362. filtersStore: {
  31363. type: Object,
  31364. default: null
  31365. },
  31366. filterMenuClass: {
  31367. type: String,
  31368. default: null
  31369. },
  31370. filterMenuStyle: {
  31371. type: null,
  31372. default: null
  31373. }
  31374. },
  31375. data() {
  31376. return {
  31377. overlayVisible: false,
  31378. defaultMatchMode: null,
  31379. defaultOperator: null
  31380. }
  31381. },
  31382. overlay: null,
  31383. selfClick: false,
  31384. overlayEventListener: null,
  31385. beforeUnmount() {
  31386. if (this.overlayEventListener) {
  31387. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_5__["default"].off('overlay-click', this.overlayEventListener);
  31388. this.overlayEventListener = null;
  31389. }
  31390. if (this.overlay) {
  31391. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(this.overlay);
  31392. this.onOverlayHide();
  31393. }
  31394. },
  31395. mounted() {
  31396. if (this.filters && this.filters[this.field]) {
  31397. let fieldFilters = this.filters[this.field];
  31398. if (fieldFilters.operator) {
  31399. this.defaultMatchMode = fieldFilters.constraints[0].matchMode;
  31400. this.defaultOperator = fieldFilters.operator;
  31401. }
  31402. else {
  31403. this.defaultMatchMode = this.filters[this.field].matchMode;
  31404. }
  31405. }
  31406. },
  31407. methods: {
  31408. clearFilter() {
  31409. let _filters = {...this.filters};
  31410. if (_filters[this.field].operator) {
  31411. _filters[this.field].constraints.splice(1);
  31412. _filters[this.field].operator = this.defaultOperator;
  31413. _filters[this.field].constraints[0] = {value: null, matchMode: this.defaultMatchMode};
  31414. }
  31415. else {
  31416. _filters[this.field].value = null;
  31417. _filters[this.field].matchMode = this.defaultMatchMode;
  31418. }
  31419. this.$emit('filter-clear');
  31420. this.$emit('filter-change', _filters);
  31421. this.$emit('filter-apply');
  31422. this.hide();
  31423. },
  31424. applyFilter() {
  31425. this.$emit('apply-click', {field: this.field, constraints: this.filters[this.field]});
  31426. this.$emit('filter-apply');
  31427. this.hide();
  31428. },
  31429. hasFilter() {
  31430. if (this.filtersStore) {
  31431. let fieldFilter = this.filtersStore[this.field];
  31432. if (fieldFilter) {
  31433. if (fieldFilter.operator)
  31434. return !this.isFilterBlank(fieldFilter.constraints[0].value);
  31435. else
  31436. return !this.isFilterBlank(fieldFilter.value);
  31437. }
  31438. }
  31439. return false;
  31440. },
  31441. hasRowFilter() {
  31442. return this.filters[this.field] && !this.isFilterBlank(this.filters[this.field].value);
  31443. },
  31444. isFilterBlank(filter) {
  31445. if (filter !== null && filter !== undefined) {
  31446. if ((typeof filter === 'string' && filter.trim().length == 0) || (filter instanceof Array && filter.length == 0))
  31447. return true;
  31448. else
  31449. return false;
  31450. }
  31451. return true;
  31452. },
  31453. toggleMenu() {
  31454. this.overlayVisible = !this.overlayVisible;
  31455. },
  31456. onToggleButtonKeyDown(event) {
  31457. switch(event.key) {
  31458. case 'Escape':
  31459. case 'Tab':
  31460. this.overlayVisible = false;
  31461. break;
  31462. case 'ArrowDown':
  31463. if (this.overlayVisible) {
  31464. let focusable = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getFocusableElements(this.overlay);
  31465. if (focusable) {
  31466. focusable[0].focus();
  31467. }
  31468. event.preventDefault();
  31469. }
  31470. else if (event.altKey) {
  31471. this.overlayVisible = true;
  31472. event.preventDefault();
  31473. }
  31474. break;
  31475. }
  31476. },
  31477. onEscape() {
  31478. this.overlayVisible = false;
  31479. if (this.$refs.icon) {
  31480. this.$refs.icon.focus();
  31481. }
  31482. },
  31483. onRowMatchModeChange(matchMode) {
  31484. let _filters = {...this.filters};
  31485. _filters[this.field].matchMode = matchMode;
  31486. this.$emit('matchmode-change', {field: this.field, matchMode: matchMode});
  31487. this.$emit('filter-change', _filters);
  31488. this.$emit('filter-apply');
  31489. this.hide();
  31490. },
  31491. onRowMatchModeKeyDown(event) {
  31492. let item = event.target;
  31493. switch(event.key) {
  31494. case 'ArrowDown':
  31495. var nextItem = this.findNextItem(item);
  31496. if (nextItem) {
  31497. item.removeAttribute('tabindex');
  31498. nextItem.tabIndex = '0';
  31499. nextItem.focus();
  31500. }
  31501. event.preventDefault();
  31502. break;
  31503. case 'ArrowUp':
  31504. var prevItem = this.findPrevItem(item);
  31505. if (prevItem) {
  31506. item.removeAttribute('tabindex');
  31507. prevItem.tabIndex = '0';
  31508. prevItem.focus();
  31509. }
  31510. event.preventDefault();
  31511. break;
  31512. }
  31513. },
  31514. isRowMatchModeSelected(matchMode) {
  31515. return (this.filters[this.field]).matchMode === matchMode;
  31516. },
  31517. onOperatorChange(value) {
  31518. let _filters = {...this.filters};
  31519. _filters[this.field].operator = value;
  31520. this.$emit('filter-change', _filters);
  31521. this.$emit('operator-change', {field: this.field, operator: value});
  31522. if (!this.showApplyButton) {
  31523. this.$emit('filter-apply');
  31524. }
  31525. },
  31526. onMenuMatchModeChange(value, index) {
  31527. let _filters = {...this.filters};
  31528. _filters[this.field].constraints[index].matchMode = value;
  31529. this.$emit('matchmode-change', {field: this.field, matchMode: value, index: index});
  31530. if (!this.showApplyButton) {
  31531. this.$emit('filter-apply');
  31532. }
  31533. },
  31534. addConstraint() {
  31535. let _filters = {...this.filters};
  31536. let newConstraint = {value: null, matchMode: this.defaultMatchMode};
  31537. _filters[this.field].constraints.push(newConstraint);
  31538. this.$emit('constraint-add', {field: this.field, constraing: newConstraint});
  31539. this.$emit('filter-change', _filters);
  31540. if (!this.showApplyButton) {
  31541. this.$emit('filter-apply');
  31542. }
  31543. },
  31544. removeConstraint(index) {
  31545. let _filters = {...this.filters};
  31546. let removedConstraint = _filters[this.field].constraints.splice(index, 1);
  31547. this.$emit('constraint-remove', {field: this.field, constraing: removedConstraint});
  31548. this.$emit('filter-change', _filters);
  31549. if (!this.showApplyButton) {
  31550. this.$emit('filter-apply');
  31551. }
  31552. },
  31553. filterCallback() {
  31554. this.$emit('filter-apply');
  31555. },
  31556. findNextItem(item) {
  31557. let nextItem = item.nextElementSibling;
  31558. if (nextItem)
  31559. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(nextItem, 'p-column-filter-separator') ? this.findNextItem(nextItem) : nextItem;
  31560. else
  31561. return item.parentElement.firstElementChild;
  31562. },
  31563. findPrevItem(item) {
  31564. let prevItem = item.previousElementSibling;
  31565. if (prevItem)
  31566. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(prevItem, 'p-column-filter-separator') ? this.findPrevItem(prevItem) : prevItem;
  31567. else
  31568. return item.parentElement.lastElementChild;
  31569. },
  31570. hide() {
  31571. this.overlayVisible = false;
  31572. },
  31573. onContentClick(event) {
  31574. this.selfClick = true;
  31575. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_5__["default"].emit('overlay-click', {
  31576. originalEvent: event,
  31577. target: this.overlay
  31578. });
  31579. },
  31580. onContentMouseDown() {
  31581. this.selfClick = true;
  31582. },
  31583. onOverlayEnter(el) {
  31584. if (this.filterMenuStyle) {
  31585. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.applyStyle(this.overlay, this.filterMenuStyle);
  31586. }
  31587. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.set('overlay', el, this.$primevue.config.zIndex.overlay);
  31588. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.absolutePosition(this.overlay, this.$refs.icon);
  31589. this.bindOutsideClickListener();
  31590. this.bindScrollListener();
  31591. this.bindResizeListener();
  31592. this.overlayEventListener = (e) => {
  31593. if (!this.isOutsideClicked(e.target)) {
  31594. this.selfClick = true;
  31595. }
  31596. };
  31597. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_5__["default"].on('overlay-click', this.overlayEventListener);
  31598. },
  31599. onOverlayLeave() {
  31600. this.onOverlayHide();
  31601. },
  31602. onOverlayAfterLeave(el) {
  31603. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(el);
  31604. },
  31605. onOverlayHide() {
  31606. this.unbindOutsideClickListener();
  31607. this.unbindResizeListener();
  31608. this.unbindScrollListener();
  31609. this.overlay = null;
  31610. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_5__["default"].off('overlay-click', this.overlayEventListener);
  31611. this.overlayEventListener = null;
  31612. },
  31613. overlayRef(el) {
  31614. this.overlay = el;
  31615. },
  31616. isOutsideClicked(target) {
  31617. return !this.isTargetClicked(target) && this.overlay && !(this.overlay.isSameNode(target) || this.overlay.contains(target));
  31618. },
  31619. isTargetClicked(target) {
  31620. return this.$refs.icon && (this.$refs.icon.isSameNode(target) || this.$refs.icon.contains(target));
  31621. },
  31622. bindOutsideClickListener() {
  31623. if (!this.outsideClickListener) {
  31624. this.outsideClickListener = (event) => {
  31625. if (this.overlayVisible && !this.selfClick && this.isOutsideClicked(event.target)) {
  31626. this.overlayVisible = false;
  31627. }
  31628. this.selfClick = false;
  31629. };
  31630. document.addEventListener('click', this.outsideClickListener);
  31631. }
  31632. },
  31633. unbindOutsideClickListener() {
  31634. if (this.outsideClickListener) {
  31635. document.removeEventListener('click', this.outsideClickListener);
  31636. this.outsideClickListener = null;
  31637. this.selfClick = false;
  31638. }
  31639. },
  31640. bindScrollListener() {
  31641. if (!this.scrollHandler) {
  31642. this.scrollHandler = new primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ConnectedOverlayScrollHandler(this.$refs.icon, () => {
  31643. if (this.overlayVisible) {
  31644. this.hide();
  31645. }
  31646. });
  31647. }
  31648. this.scrollHandler.bindScrollListener();
  31649. },
  31650. unbindScrollListener() {
  31651. if (this.scrollHandler) {
  31652. this.scrollHandler.unbindScrollListener();
  31653. }
  31654. },
  31655. bindResizeListener() {
  31656. if (!this.resizeListener) {
  31657. this.resizeListener = () => {
  31658. if (this.overlayVisible) {
  31659. this.hide();
  31660. }
  31661. };
  31662. window.addEventListener('resize', this.resizeListener);
  31663. }
  31664. },
  31665. unbindResizeListener() {
  31666. if (this.resizeListener) {
  31667. window.removeEventListener('resize', this.resizeListener);
  31668. this.resizeListener = null;
  31669. }
  31670. }
  31671. },
  31672. computed: {
  31673. containerClass() {
  31674. return ['p-column-filter p-fluid', {
  31675. 'p-column-filter-row': this.display === 'row',
  31676. 'p-column-filter-menu': this.display === 'menu'
  31677. }];
  31678. },
  31679. overlayClass() {
  31680. return [this.filterMenuClass, {
  31681. 'p-column-filter-overlay p-component p-fluid': true,
  31682. 'p-column-filter-overlay-menu': this.display === 'menu',
  31683. 'p-input-filled': this.$primevue.config.inputStyle === 'filled',
  31684. 'p-ripple-disabled': this.$primevue.config.ripple === false
  31685. }];
  31686. },
  31687. showMenuButton() {
  31688. return this.showMenu && (this.display === 'row' ? this.type !== 'boolean': true);
  31689. },
  31690. matchModes() {
  31691. return this.matchModeOptions ||
  31692. this.$primevue.config.filterMatchModeOptions[this.type].map(key => {
  31693. return {label: this.$primevue.config.locale[key], value: key}
  31694. });
  31695. },
  31696. isShowMatchModes() {
  31697. return this.type !== 'boolean' && this.showMatchModes && this.matchModes;
  31698. },
  31699. operatorOptions() {
  31700. return [
  31701. {label: this.$primevue.config.locale.matchAll, value: primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterOperator.AND},
  31702. {label: this.$primevue.config.locale.matchAny, value: primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterOperator.OR}
  31703. ];
  31704. },
  31705. noFilterLabel() {
  31706. return this.$primevue.config.locale.noFilter;
  31707. },
  31708. isShowOperator() {
  31709. return this.showOperator && this.filters[this.field].operator;
  31710. },
  31711. operator() {
  31712. return this.filters[this.field].operator;
  31713. },
  31714. fieldConstraints() {
  31715. return this.filters[this.field].constraints || [this.filters[this.field]];
  31716. },
  31717. showRemoveIcon() {
  31718. return this.fieldConstraints.length > 1;
  31719. },
  31720. removeRuleButtonLabel() {
  31721. return this.$primevue.config.locale.removeRule;
  31722. },
  31723. addRuleButtonLabel() {
  31724. return this.$primevue.config.locale.addRule;
  31725. },
  31726. isShowAddConstraint() {
  31727. return this.showAddButton && this.filters[this.field].operator && (this.fieldConstraints && this.fieldConstraints.length < this.maxConstraints);
  31728. },
  31729. clearButtonLabel() {
  31730. return this.$primevue.config.locale.clear;
  31731. },
  31732. applyButtonLabel() {
  31733. return this.$primevue.config.locale.apply;
  31734. }
  31735. },
  31736. components: {
  31737. 'CFDropdown': primevue_dropdown__WEBPACK_IMPORTED_MODULE_6__["default"],
  31738. 'CFButton': primevue_button__WEBPACK_IMPORTED_MODULE_7__["default"]
  31739. }
  31740. };
  31741. const _hoisted_1$9 = {
  31742. key: 0,
  31743. class: "p-fluid p-column-filter-element"
  31744. };
  31745. const _hoisted_2$7 = ["aria-expanded"];
  31746. const _hoisted_3$6 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("span", { class: "pi pi-filter-icon pi-filter" }, null, -1);
  31747. const _hoisted_4$4 = [
  31748. _hoisted_3$6
  31749. ];
  31750. const _hoisted_5$3 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("span", { class: "pi pi-filter-slash" }, null, -1);
  31751. const _hoisted_6$3 = [
  31752. _hoisted_5$3
  31753. ];
  31754. const _hoisted_7$1 = {
  31755. key: 0,
  31756. class: "p-column-filter-row-items"
  31757. };
  31758. const _hoisted_8 = ["onClick", "onKeydown", "tabindex"];
  31759. const _hoisted_9 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("li", { class: "p-column-filter-separator" }, null, -1);
  31760. const _hoisted_10 = {
  31761. key: 0,
  31762. class: "p-column-filter-operator"
  31763. };
  31764. const _hoisted_11 = { class: "p-column-filter-constraints" };
  31765. const _hoisted_12 = {
  31766. key: 1,
  31767. class: "p-column-filter-add-rule"
  31768. };
  31769. const _hoisted_13 = { class: "p-column-filter-buttonbar" };
  31770. function render$9(_ctx, _cache, $props, $setup, $data, $options) {
  31771. const _component_CFDropdown = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("CFDropdown");
  31772. const _component_CFButton = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("CFButton");
  31773. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("div", {
  31774. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)($options.containerClass)
  31775. }, [
  31776. ($props.display === 'row')
  31777. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("div", _hoisted_1$9, [
  31778. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.filterElement), {
  31779. field: $props.field,
  31780. filterModel: $props.filters[$props.field],
  31781. filterCallback: $options.filterCallback
  31782. }, null, 8, ["field", "filterModel", "filterCallback"]))
  31783. ]))
  31784. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  31785. ($options.showMenuButton)
  31786. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("button", {
  31787. key: 1,
  31788. ref: "icon",
  31789. type: "button",
  31790. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)(["p-column-filter-menu-button p-link", {'p-column-filter-menu-button-open': $data.overlayVisible, 'p-column-filter-menu-button-active': $options.hasFilter()}]),
  31791. "aria-haspopup": "true",
  31792. "aria-expanded": $data.overlayVisible,
  31793. onClick: _cache[0] || (_cache[0] = $event => ($options.toggleMenu())),
  31794. onKeydown: _cache[1] || (_cache[1] = $event => ($options.onToggleButtonKeyDown($event)))
  31795. }, _hoisted_4$4, 42, _hoisted_2$7))
  31796. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  31797. ($props.showClearButton && $props.display === 'row')
  31798. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("button", {
  31799. key: 2,
  31800. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)([{'p-hidden-space': !$options.hasRowFilter()}, "p-column-filter-clear-button p-link"]),
  31801. type: "button",
  31802. onClick: _cache[2] || (_cache[2] = $event => ($options.clearFilter()))
  31803. }, _hoisted_6$3, 2))
  31804. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  31805. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Teleport, { to: "body" }, [
  31806. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)(vue__WEBPACK_IMPORTED_MODULE_4__.Transition, {
  31807. name: "p-connected-overlay",
  31808. onEnter: $options.onOverlayEnter,
  31809. onLeave: $options.onOverlayLeave,
  31810. onAfterLeave: $options.onOverlayAfterLeave
  31811. }, {
  31812. default: (0,vue__WEBPACK_IMPORTED_MODULE_4__.withCtx)(() => [
  31813. ($data.overlayVisible)
  31814. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("div", {
  31815. key: 0,
  31816. ref: $options.overlayRef,
  31817. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)($options.overlayClass),
  31818. onKeydown: _cache[11] || (_cache[11] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)((...args) => ($options.onEscape && $options.onEscape(...args)), ["escape"])),
  31819. onClick: _cache[12] || (_cache[12] = (...args) => ($options.onContentClick && $options.onContentClick(...args))),
  31820. onMousedown: _cache[13] || (_cache[13] = (...args) => ($options.onContentMouseDown && $options.onContentMouseDown(...args)))
  31821. }, [
  31822. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.filterHeaderTemplate), {
  31823. field: $props.field,
  31824. filterModel: $props.filters[$props.field],
  31825. filterCallback: $options.filterCallback
  31826. }, null, 8, ["field", "filterModel", "filterCallback"])),
  31827. ($props.display === 'row')
  31828. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("ul", _hoisted_7$1, [
  31829. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($options.matchModes, (matchMode, i) => {
  31830. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("li", {
  31831. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)(["p-column-filter-row-item", {'p-highlight': $options.isRowMatchModeSelected(matchMode.value)}]),
  31832. key: matchMode.label,
  31833. onClick: $event => ($options.onRowMatchModeChange(matchMode.value)),
  31834. onKeydown: [
  31835. _cache[3] || (_cache[3] = $event => ($options.onRowMatchModeKeyDown($event))),
  31836. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)((0,vue__WEBPACK_IMPORTED_MODULE_4__.withModifiers)($event => ($options.onRowMatchModeChange(matchMode.value)), ["prevent"]), ["enter"])
  31837. ],
  31838. tabindex: i === 0 ? '0' : null
  31839. }, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)(matchMode.label), 43, _hoisted_8))
  31840. }), 128)),
  31841. _hoisted_9,
  31842. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("li", {
  31843. class: "p-column-filter-row-item",
  31844. onClick: _cache[4] || (_cache[4] = $event => ($options.clearFilter())),
  31845. onKeydown: [
  31846. _cache[5] || (_cache[5] = $event => ($options.onRowMatchModeKeyDown($event))),
  31847. _cache[6] || (_cache[6] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => (_ctx.onRowClearItemClick()), ["enter"]))
  31848. ]
  31849. }, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.noFilterLabel), 33)
  31850. ]))
  31851. : ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, { key: 1 }, [
  31852. ($options.isShowOperator)
  31853. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("div", _hoisted_10, [
  31854. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)(_component_CFDropdown, {
  31855. options: $options.operatorOptions,
  31856. modelValue: $options.operator,
  31857. "onUpdate:modelValue": _cache[7] || (_cache[7] = $event => ($options.onOperatorChange($event))),
  31858. class: "p-column-filter-operator-dropdown",
  31859. optionLabel: "label",
  31860. optionValue: "value"
  31861. }, null, 8, ["options", "modelValue"])
  31862. ]))
  31863. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  31864. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("div", _hoisted_11, [
  31865. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($options.fieldConstraints, (fieldConstraint, i) => {
  31866. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("div", {
  31867. key: i,
  31868. class: "p-column-filter-constraint"
  31869. }, [
  31870. ($options.isShowMatchModes)
  31871. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_CFDropdown, {
  31872. key: 0,
  31873. options: $options.matchModes,
  31874. modelValue: fieldConstraint.matchMode,
  31875. optionLabel: "label",
  31876. optionValue: "value",
  31877. "onUpdate:modelValue": $event => ($options.onMenuMatchModeChange($event, i)),
  31878. class: "p-column-filter-matchmode-dropdown"
  31879. }, null, 8, ["options", "modelValue", "onUpdate:modelValue"]))
  31880. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  31881. ($props.display === 'menu')
  31882. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.filterElement), {
  31883. key: 1,
  31884. field: $props.field,
  31885. filterModel: fieldConstraint,
  31886. filterCallback: $options.filterCallback
  31887. }, null, 8, ["field", "filterModel", "filterCallback"]))
  31888. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  31889. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("div", null, [
  31890. ($options.showRemoveIcon)
  31891. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_CFButton, {
  31892. key: 0,
  31893. type: "button",
  31894. icon: "pi pi-trash",
  31895. class: "p-column-filter-remove-button p-button-text p-button-danger p-button-sm",
  31896. onClick: $event => ($options.removeConstraint(i)),
  31897. label: $options.removeRuleButtonLabel
  31898. }, null, 8, ["onClick", "label"]))
  31899. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  31900. ])
  31901. ]))
  31902. }), 128))
  31903. ]),
  31904. ($options.isShowAddConstraint)
  31905. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("div", _hoisted_12, [
  31906. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)(_component_CFButton, {
  31907. type: "button",
  31908. label: $options.addRuleButtonLabel,
  31909. icon: "pi pi-plus",
  31910. class: "p-column-filter-add-button p-button-text p-button-sm",
  31911. onClick: _cache[8] || (_cache[8] = $event => ($options.addConstraint()))
  31912. }, null, 8, ["label"])
  31913. ]))
  31914. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  31915. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("div", _hoisted_13, [
  31916. (!$props.filterClearTemplate && $props.showClearButton)
  31917. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_CFButton, {
  31918. key: 0,
  31919. type: "button",
  31920. class: "p-button-outlined p-button-sm",
  31921. onClick: _cache[9] || (_cache[9] = $event => ($options.clearFilter())),
  31922. label: $options.clearButtonLabel
  31923. }, null, 8, ["label"]))
  31924. : ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.filterClearTemplate), {
  31925. key: 1,
  31926. field: $props.field,
  31927. filterModel: $props.filters[$props.field],
  31928. filterCallback: $options.clearFilter
  31929. }, null, 8, ["field", "filterModel", "filterCallback"])),
  31930. ($props.showApplyButton)
  31931. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, { key: 2 }, [
  31932. (!$props.filterApplyTemplate)
  31933. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_CFButton, {
  31934. key: 0,
  31935. type: "button",
  31936. class: "p-button-sm",
  31937. onClick: _cache[10] || (_cache[10] = $event => ($options.applyFilter())),
  31938. label: $options.applyButtonLabel
  31939. }, null, 8, ["label"]))
  31940. : ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.filterApplyTemplate), {
  31941. key: 1,
  31942. field: $props.field,
  31943. filterModel: $props.filters[$props.field],
  31944. filterCallback: $options.applyFilter
  31945. }, null, 8, ["field", "filterModel", "filterCallback"]))
  31946. ], 64))
  31947. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  31948. ])
  31949. ], 64)),
  31950. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.filterFooterTemplate), {
  31951. field: $props.field,
  31952. filterModel: $props.filters[$props.field],
  31953. filterCallback: $options.filterCallback
  31954. }, null, 8, ["field", "filterModel", "filterCallback"]))
  31955. ], 34))
  31956. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  31957. ]),
  31958. _: 1
  31959. }, 8, ["onEnter", "onLeave", "onAfterLeave"])
  31960. ]))
  31961. ], 2))
  31962. }
  31963. script$9.render = render$9;
  31964. var script$8 = {
  31965. name: 'HeaderCell',
  31966. emits: ['column-click', 'column-mousedown', 'column-dragstart', 'column-dragover', 'column-dragleave', 'column-drop',
  31967. 'column-resizestart', 'checkbox-change', 'filter-change', 'filter-apply',
  31968. 'operator-change', 'matchmode-change', 'constraint-add', 'constraint-remove', 'filter-clear', 'apply-click'],
  31969. props: {
  31970. column: {
  31971. type: Object,
  31972. default: null
  31973. },
  31974. resizableColumns: {
  31975. type: Boolean,
  31976. default: false
  31977. },
  31978. groupRowsBy: {
  31979. type: [Array,String],
  31980. default: null
  31981. },
  31982. sortMode: {
  31983. type: String,
  31984. default: 'single'
  31985. },
  31986. groupRowSortField: {
  31987. type: [String, Function],
  31988. default: null
  31989. },
  31990. sortField: {
  31991. type: [String, Function],
  31992. default: null
  31993. },
  31994. sortOrder: {
  31995. type: Number,
  31996. default: null
  31997. },
  31998. multiSortMeta: {
  31999. type: Array,
  32000. default: null
  32001. },
  32002. allRowsSelected: {
  32003. type: Boolean,
  32004. default: false
  32005. },
  32006. empty: {
  32007. type: Boolean,
  32008. default: false
  32009. },
  32010. filterDisplay: {
  32011. type: String,
  32012. default: null
  32013. },
  32014. filters: {
  32015. type: Object,
  32016. default: null
  32017. },
  32018. filtersStore: {
  32019. type: Object,
  32020. default: null
  32021. },
  32022. filterColumn: {
  32023. type: Boolean,
  32024. default: false
  32025. }
  32026. },
  32027. data() {
  32028. return {
  32029. styleObject: {}
  32030. }
  32031. },
  32032. mounted() {
  32033. if (this.columnProp('frozen')) {
  32034. this.updateStickyPosition();
  32035. }
  32036. },
  32037. updated() {
  32038. if (this.columnProp('frozen')) {
  32039. this.updateStickyPosition();
  32040. }
  32041. },
  32042. methods: {
  32043. columnProp(prop) {
  32044. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.getVNodeProp(this.column, prop);
  32045. },
  32046. onClick(event) {
  32047. this.$emit('column-click', {originalEvent: event, column: this.column});
  32048. },
  32049. onKeyDown(event) {
  32050. if (event.which === 13 && event.currentTarget.nodeName === 'TH' && primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(event.currentTarget, 'p-sortable-column')) {
  32051. this.$emit('column-click', {originalEvent: event, column: this.column});
  32052. }
  32053. },
  32054. onMouseDown(event) {
  32055. this.$emit('column-mousedown', {originalEvent: event, column: this.column});
  32056. },
  32057. onDragStart(event) {
  32058. this.$emit('column-dragstart', event);
  32059. },
  32060. onDragOver(event) {
  32061. this.$emit('column-dragover', event);
  32062. },
  32063. onDragLeave(event) {
  32064. this.$emit('column-dragleave', event);
  32065. },
  32066. onDrop(event) {
  32067. this.$emit('column-drop', event);
  32068. },
  32069. onResizeStart(event) {
  32070. this.$emit('column-resizestart', event);
  32071. },
  32072. getMultiSortMetaIndex() {
  32073. return this.multiSortMeta.findIndex(meta => (meta.field === this.columnProp('field') || meta.field === this.columnProp('sortField')));
  32074. },
  32075. getBadgeValue() {
  32076. let index = this.getMultiSortMetaIndex();
  32077. return (this.groupRowsBy && this.groupRowsBy === this.groupRowSortField) && index > -1 ? index : index + 1;
  32078. },
  32079. isMultiSorted() {
  32080. return this.sortMode === 'multiple' && this.columnProp('sortable') && this.getMultiSortMetaIndex() > -1
  32081. },
  32082. isColumnSorted() {
  32083. return this.sortMode === 'single' ? (this.sortField && (this.sortField === this.columnProp('field') || this.sortField === this.columnProp('sortField'))) : this.isMultiSorted();
  32084. },
  32085. updateStickyPosition() {
  32086. if (this.columnProp('frozen')) {
  32087. let align = this.columnProp('alignFrozen');
  32088. if (align === 'right') {
  32089. let right = 0;
  32090. let next = this.$el.nextElementSibling;
  32091. if (next) {
  32092. right = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
  32093. }
  32094. this.styleObject.right = right + 'px';
  32095. }
  32096. else {
  32097. let left = 0;
  32098. let prev = this.$el.previousElementSibling;
  32099. if (prev) {
  32100. left = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
  32101. }
  32102. this.styleObject.left = left + 'px';
  32103. }
  32104. let filterRow = this.$el.parentElement.nextElementSibling;
  32105. if (filterRow) {
  32106. let index = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.index(this.$el);
  32107. filterRow.children[index].style.left = this.styleObject.left;
  32108. filterRow.children[index].style.right = this.styleObject.right;
  32109. }
  32110. }
  32111. },
  32112. onHeaderCheckboxChange(event) {
  32113. this.$emit('checkbox-change', event);
  32114. }
  32115. },
  32116. computed: {
  32117. containerClass() {
  32118. return [this.filterColumn ? this.columnProp('filterHeaderClass') : this.columnProp('headerClass'), this.columnProp('class'), {
  32119. 'p-sortable-column': this.columnProp('sortable'),
  32120. 'p-resizable-column': this.resizableColumns,
  32121. 'p-highlight': this.isColumnSorted(),
  32122. 'p-filter-column': this.filterColumn,
  32123. 'p-frozen-column': this.columnProp('frozen')
  32124. }];
  32125. },
  32126. containerStyle() {
  32127. let headerStyle = this.filterColumn ? this.columnProp('filterHeaderStyle'): this.columnProp('headerStyle');
  32128. let columnStyle = this.columnProp('style');
  32129. return this.columnProp('frozen') ? [columnStyle, headerStyle, this.styleObject]: [columnStyle, headerStyle];
  32130. },
  32131. sortableColumnIcon() {
  32132. let sorted = false;
  32133. let sortOrder = null;
  32134. if (this.sortMode === 'single') {
  32135. sorted = this.sortField && (this.sortField === this.columnProp('field') || this.sortField === this.columnProp('sortField'));
  32136. sortOrder = sorted ? this.sortOrder: 0;
  32137. }
  32138. else if (this.sortMode === 'multiple') {
  32139. let metaIndex = this.getMultiSortMetaIndex();
  32140. if (metaIndex > -1) {
  32141. sorted = true;
  32142. sortOrder = this.multiSortMeta[metaIndex].order;
  32143. }
  32144. }
  32145. return [
  32146. 'p-sortable-column-icon pi pi-fw', {
  32147. 'pi-sort-alt': !sorted,
  32148. 'pi-sort-amount-up-alt': sorted && sortOrder > 0,
  32149. 'pi-sort-amount-down': sorted && sortOrder < 0
  32150. }
  32151. ];
  32152. },
  32153. ariaSort() {
  32154. if (this.columnProp('sortable')) {
  32155. const sortIcon = this.sortableColumnIcon;
  32156. if (sortIcon[1]['pi-sort-amount-down'])
  32157. return 'descending';
  32158. else if (sortIcon[1]['pi-sort-amount-up-alt'])
  32159. return 'ascending';
  32160. else
  32161. return 'none';
  32162. }
  32163. else {
  32164. return null;
  32165. }
  32166. }
  32167. },
  32168. components: {
  32169. 'DTHeaderCheckbox': script$a,
  32170. 'DTColumnFilter': script$9
  32171. }
  32172. };
  32173. const _hoisted_1$8 = ["tabindex", "colspan", "rowspan", "aria-sort"];
  32174. const _hoisted_2$6 = { class: "p-column-header-content" };
  32175. const _hoisted_3$5 = {
  32176. key: 1,
  32177. class: "p-column-title"
  32178. };
  32179. const _hoisted_4$3 = {
  32180. key: 3,
  32181. class: "p-sortable-column-badge"
  32182. };
  32183. function render$8(_ctx, _cache, $props, $setup, $data, $options) {
  32184. const _component_DTHeaderCheckbox = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTHeaderCheckbox");
  32185. const _component_DTColumnFilter = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTColumnFilter");
  32186. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("th", {
  32187. style: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeStyle)($options.containerStyle),
  32188. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)($options.containerClass),
  32189. tabindex: $options.columnProp('sortable') ? '0' : null,
  32190. role: "cell",
  32191. onClick: _cache[8] || (_cache[8] = (...args) => ($options.onClick && $options.onClick(...args))),
  32192. onKeydown: _cache[9] || (_cache[9] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args))),
  32193. onMousedown: _cache[10] || (_cache[10] = (...args) => ($options.onMouseDown && $options.onMouseDown(...args))),
  32194. onDragstart: _cache[11] || (_cache[11] = (...args) => ($options.onDragStart && $options.onDragStart(...args))),
  32195. onDragover: _cache[12] || (_cache[12] = (...args) => ($options.onDragOver && $options.onDragOver(...args))),
  32196. onDragleave: _cache[13] || (_cache[13] = (...args) => ($options.onDragLeave && $options.onDragLeave(...args))),
  32197. onDrop: _cache[14] || (_cache[14] = (...args) => ($options.onDrop && $options.onDrop(...args))),
  32198. colspan: $options.columnProp('colspan'),
  32199. rowspan: $options.columnProp('rowspan'),
  32200. "aria-sort": $options.ariaSort
  32201. }, [
  32202. ($props.resizableColumns && !$options.columnProp('frozen'))
  32203. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("span", {
  32204. key: 0,
  32205. class: "p-column-resizer",
  32206. onMousedown: _cache[0] || (_cache[0] = (...args) => ($options.onResizeStart && $options.onResizeStart(...args)))
  32207. }, null, 32))
  32208. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  32209. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("div", _hoisted_2$6, [
  32210. ($props.column.children && $props.column.children.header)
  32211. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.column.children.header), {
  32212. key: 0,
  32213. column: $props.column
  32214. }, null, 8, ["column"]))
  32215. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  32216. ($options.columnProp('header'))
  32217. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("span", _hoisted_3$5, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.columnProp('header')), 1))
  32218. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  32219. ($options.columnProp('sortable'))
  32220. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("span", {
  32221. key: 2,
  32222. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)($options.sortableColumnIcon)
  32223. }, null, 2))
  32224. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  32225. ($options.isMultiSorted())
  32226. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("span", _hoisted_4$3, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.getBadgeValue()), 1))
  32227. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  32228. ($options.columnProp('selectionMode') ==='multiple' && $props.filterDisplay !== 'row')
  32229. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTHeaderCheckbox, {
  32230. key: 4,
  32231. checked: $props.allRowsSelected,
  32232. onChange: $options.onHeaderCheckboxChange,
  32233. disabled: $props.empty
  32234. }, null, 8, ["checked", "onChange", "disabled"]))
  32235. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  32236. ($props.filterDisplay === 'menu' && $props.column.children && $props.column.children.filter)
  32237. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTColumnFilter, {
  32238. key: 5,
  32239. field: $options.columnProp('filterField')||$options.columnProp('field'),
  32240. type: $options.columnProp('dataType'),
  32241. display: "menu",
  32242. showMenu: $options.columnProp('showFilterMenu'),
  32243. filterElement: $props.column.children && $props.column.children.filter,
  32244. filterHeaderTemplate: $props.column.children && $props.column.children.filterheader,
  32245. filterFooterTemplate: $props.column.children && $props.column.children.filterfooter,
  32246. filterClearTemplate: $props.column.children && $props.column.children.filterclear,
  32247. filterApplyTemplate: $props.column.children && $props.column.children.filterapply,
  32248. filters: $props.filters,
  32249. filtersStore: $props.filtersStore,
  32250. onFilterChange: _cache[1] || (_cache[1] = $event => (_ctx.$emit('filter-change', $event))),
  32251. onFilterApply: _cache[2] || (_cache[2] = $event => (_ctx.$emit('filter-apply'))),
  32252. filterMenuStyle: $options.columnProp('filterMenuStyle'),
  32253. filterMenuClass: $options.columnProp('filterMenuClass'),
  32254. showOperator: $options.columnProp('showFilterOperator'),
  32255. showClearButton: $options.columnProp('showClearButton'),
  32256. showApplyButton: $options.columnProp('showApplyButton'),
  32257. showMatchModes: $options.columnProp('showFilterMatchModes'),
  32258. showAddButton: $options.columnProp('showAddButton'),
  32259. matchModeOptions: $options.columnProp('filterMatchModeOptions'),
  32260. maxConstraints: $options.columnProp('maxConstraints'),
  32261. onOperatorChange: _cache[3] || (_cache[3] = $event => (_ctx.$emit('operator-change',$event))),
  32262. onMatchmodeChange: _cache[4] || (_cache[4] = $event => (_ctx.$emit('matchmode-change', $event))),
  32263. onConstraintAdd: _cache[5] || (_cache[5] = $event => (_ctx.$emit('constraint-add', $event))),
  32264. onConstraintRemove: _cache[6] || (_cache[6] = $event => (_ctx.$emit('constraint-remove', $event))),
  32265. onApplyClick: _cache[7] || (_cache[7] = $event => (_ctx.$emit('apply-click',$event)))
  32266. }, null, 8, ["field", "type", "showMenu", "filterElement", "filterHeaderTemplate", "filterFooterTemplate", "filterClearTemplate", "filterApplyTemplate", "filters", "filtersStore", "filterMenuStyle", "filterMenuClass", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "matchModeOptions", "maxConstraints"]))
  32267. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  32268. ])
  32269. ], 46, _hoisted_1$8))
  32270. }
  32271. script$8.render = render$8;
  32272. var script$7 = {
  32273. name: 'TableHeader',
  32274. emits: ['column-click', 'column-mousedown', 'column-dragstart', 'column-dragover', 'column-dragleave', 'column-drop',
  32275. 'column-resizestart', 'checkbox-change', 'filter-change', 'filter-apply',
  32276. 'operator-change', 'matchmode-change', 'constraint-add', 'constraint-remove', 'filter-clear', 'apply-click'],
  32277. props: {
  32278. columnGroup: {
  32279. type: null,
  32280. default: null
  32281. },
  32282. columns: {
  32283. type: null,
  32284. default: null
  32285. },
  32286. rowGroupMode: {
  32287. type: String,
  32288. default: null
  32289. },
  32290. groupRowsBy: {
  32291. type: [Array,String],
  32292. default: null
  32293. },
  32294. resizableColumns: {
  32295. type: Boolean,
  32296. default: false
  32297. },
  32298. allRowsSelected: {
  32299. type: Boolean,
  32300. default: false
  32301. },
  32302. empty: {
  32303. type: Boolean,
  32304. default: false
  32305. },
  32306. sortMode: {
  32307. type: String,
  32308. default: 'single'
  32309. },
  32310. groupRowSortField: {
  32311. type: [String, Function],
  32312. default: null
  32313. },
  32314. sortField: {
  32315. type: [String, Function],
  32316. default: null
  32317. },
  32318. sortOrder: {
  32319. type: Number,
  32320. default: null
  32321. },
  32322. multiSortMeta: {
  32323. type: Array,
  32324. default: null
  32325. },
  32326. filterDisplay: {
  32327. type: String,
  32328. default: null
  32329. },
  32330. filters: {
  32331. type: Object,
  32332. default: null
  32333. },
  32334. filtersStore: {
  32335. type: Object,
  32336. default: null
  32337. }
  32338. },
  32339. methods: {
  32340. columnProp(col, prop) {
  32341. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.getVNodeProp(col, prop);
  32342. },
  32343. getFilterColumnHeaderClass(column) {
  32344. return ['p-filter-column', this.columnProp(column, 'filterHeaderClass'), this.columnProp(column, 'class'), {
  32345. 'p-frozen-column': this.columnProp(column, 'frozen')
  32346. }];
  32347. },
  32348. getFilterColumnHeaderStyle(column) {
  32349. return [this.columnProp(column, 'filterHeaderStyle'), this.columnProp(column, 'style')];
  32350. },
  32351. getHeaderRows() {
  32352. let rows = [];
  32353. let columnGroup = this.columnGroup;
  32354. if (columnGroup.children && columnGroup.children.default) {
  32355. for (let child of columnGroup.children.default()) {
  32356. if (child.type.name === 'Row') {
  32357. rows.push(child);
  32358. }
  32359. else if (child.children && child.children instanceof Array) {
  32360. rows = child.children;
  32361. }
  32362. }
  32363. return rows;
  32364. }
  32365. },
  32366. getHeaderColumns(row){
  32367. let cols = [];
  32368. if (row.children && row.children.default) {
  32369. row.children.default().forEach(child => {
  32370. if (child.children && child.children instanceof Array)
  32371. cols = [...cols, ...child.children];
  32372. else if (child.type.name === 'Column')
  32373. cols.push(child);
  32374. });
  32375. return cols;
  32376. }
  32377. }
  32378. },
  32379. components: {
  32380. 'DTHeaderCell': script$8,
  32381. 'DTHeaderCheckbox': script$a,
  32382. 'DTColumnFilter': script$9
  32383. }
  32384. };
  32385. const _hoisted_1$7 = {
  32386. class: "p-datatable-thead",
  32387. role: "rowgroup"
  32388. };
  32389. const _hoisted_2$5 = { role: "row" };
  32390. const _hoisted_3$4 = {
  32391. key: 0,
  32392. role: "row"
  32393. };
  32394. function render$7(_ctx, _cache, $props, $setup, $data, $options) {
  32395. const _component_DTHeaderCell = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTHeaderCell");
  32396. const _component_DTHeaderCheckbox = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTHeaderCheckbox");
  32397. const _component_DTColumnFilter = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTColumnFilter");
  32398. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("thead", _hoisted_1$7, [
  32399. (!$props.columnGroup)
  32400. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, { key: 0 }, [
  32401. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("tr", _hoisted_2$5, [
  32402. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($props.columns, (col, i) => {
  32403. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
  32404. key: $options.columnProp(col, 'columnKey')||$options.columnProp(col, 'field')||i
  32405. }, [
  32406. (!$options.columnProp(col, 'hidden') && ($props.rowGroupMode !== 'subheader' || ($props.groupRowsBy !== $options.columnProp(col, 'field'))))
  32407. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTHeaderCell, {
  32408. key: 0,
  32409. column: col,
  32410. onColumnClick: _cache[0] || (_cache[0] = $event => (_ctx.$emit('column-click', $event))),
  32411. onColumnMousedown: _cache[1] || (_cache[1] = $event => (_ctx.$emit('column-mousedown', $event))),
  32412. onColumnDragstart: _cache[2] || (_cache[2] = $event => (_ctx.$emit('column-dragstart', $event))),
  32413. onColumnDragover: _cache[3] || (_cache[3] = $event => (_ctx.$emit('column-dragover', $event))),
  32414. onColumnDragleave: _cache[4] || (_cache[4] = $event => (_ctx.$emit('column-dragleave', $event))),
  32415. onColumnDrop: _cache[5] || (_cache[5] = $event => (_ctx.$emit('column-drop', $event))),
  32416. groupRowsBy: $props.groupRowsBy,
  32417. groupRowSortField: $props.groupRowSortField,
  32418. resizableColumns: $props.resizableColumns,
  32419. onColumnResizestart: _cache[6] || (_cache[6] = $event => (_ctx.$emit('column-resizestart', $event))),
  32420. sortMode: $props.sortMode,
  32421. sortField: $props.sortField,
  32422. sortOrder: $props.sortOrder,
  32423. multiSortMeta: $props.multiSortMeta,
  32424. allRowsSelected: $props.allRowsSelected,
  32425. empty: $props.empty,
  32426. onCheckboxChange: _cache[7] || (_cache[7] = $event => (_ctx.$emit('checkbox-change', $event))),
  32427. filters: $props.filters,
  32428. filterDisplay: $props.filterDisplay,
  32429. filtersStore: $props.filtersStore,
  32430. onFilterChange: _cache[8] || (_cache[8] = $event => (_ctx.$emit('filter-change', $event))),
  32431. onFilterApply: _cache[9] || (_cache[9] = $event => (_ctx.$emit('filter-apply'))),
  32432. onOperatorChange: _cache[10] || (_cache[10] = $event => (_ctx.$emit('operator-change',$event))),
  32433. onMatchmodeChange: _cache[11] || (_cache[11] = $event => (_ctx.$emit('matchmode-change', $event))),
  32434. onConstraintAdd: _cache[12] || (_cache[12] = $event => (_ctx.$emit('constraint-add', $event))),
  32435. onConstraintRemove: _cache[13] || (_cache[13] = $event => (_ctx.$emit('constraint-remove', $event))),
  32436. onApplyClick: _cache[14] || (_cache[14] = $event => (_ctx.$emit('apply-click',$event)))
  32437. }, null, 8, ["column", "groupRowsBy", "groupRowSortField", "resizableColumns", "sortMode", "sortField", "sortOrder", "multiSortMeta", "allRowsSelected", "empty", "filters", "filterDisplay", "filtersStore"]))
  32438. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  32439. ], 64))
  32440. }), 128))
  32441. ]),
  32442. ($props.filterDisplay === 'row')
  32443. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("tr", _hoisted_3$4, [
  32444. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($props.columns, (col, i) => {
  32445. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
  32446. key: $options.columnProp(col, 'columnKey')||$options.columnProp(col, 'field')||i
  32447. }, [
  32448. (!$options.columnProp(col, 'hidden') && ($props.rowGroupMode !== 'subheader' || ($props.groupRowsBy !== $options.columnProp(col, 'field'))))
  32449. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("th", {
  32450. key: 0,
  32451. style: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeStyle)($options.getFilterColumnHeaderStyle(col)),
  32452. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)($options.getFilterColumnHeaderClass(col))
  32453. }, [
  32454. ($options.columnProp(col, 'selectionMode') ==='multiple')
  32455. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTHeaderCheckbox, {
  32456. key: 0,
  32457. checked: $props.allRowsSelected,
  32458. onChange: _cache[15] || (_cache[15] = $event => (_ctx.$emit('checkbox-change', $event))),
  32459. disabled: $props.empty
  32460. }, null, 8, ["checked", "disabled"]))
  32461. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  32462. (col.children && col.children.filter)
  32463. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTColumnFilter, {
  32464. key: 1,
  32465. field: $options.columnProp(col,'filterField')||$options.columnProp(col,'field'),
  32466. type: $options.columnProp(col,'dataType'),
  32467. display: "row",
  32468. showMenu: $options.columnProp(col,'showFilterMenu'),
  32469. filterElement: col.children && col.children.filter,
  32470. filterHeaderTemplate: col.children && col.children.filterheader,
  32471. filterFooterTemplate: col.children && col.children.filterfooter,
  32472. filterClearTemplate: col.children && col.children.filterclear,
  32473. filterApplyTemplate: col.children && col.children.filterapply,
  32474. filters: $props.filters,
  32475. filtersStore: $props.filtersStore,
  32476. onFilterChange: _cache[16] || (_cache[16] = $event => (_ctx.$emit('filter-change', $event))),
  32477. onFilterApply: _cache[17] || (_cache[17] = $event => (_ctx.$emit('filter-apply'))),
  32478. filterMenuStyle: $options.columnProp(col,'filterMenuStyle'),
  32479. filterMenuClass: $options.columnProp(col,'filterMenuClass'),
  32480. showOperator: $options.columnProp(col,'showFilterOperator'),
  32481. showClearButton: $options.columnProp(col,'showClearButton'),
  32482. showApplyButton: $options.columnProp(col,'showApplyButton'),
  32483. showMatchModes: $options.columnProp(col,'showFilterMatchModes'),
  32484. showAddButton: $options.columnProp(col,'showAddButton'),
  32485. matchModeOptions: $options.columnProp(col,'filterMatchModeOptions'),
  32486. maxConstraints: $options.columnProp(col,'maxConstraints'),
  32487. onOperatorChange: _cache[18] || (_cache[18] = $event => (_ctx.$emit('operator-change',$event))),
  32488. onMatchmodeChange: _cache[19] || (_cache[19] = $event => (_ctx.$emit('matchmode-change', $event))),
  32489. onConstraintAdd: _cache[20] || (_cache[20] = $event => (_ctx.$emit('constraint-add', $event))),
  32490. onConstraintRemove: _cache[21] || (_cache[21] = $event => (_ctx.$emit('constraint-remove', $event))),
  32491. onApplyClick: _cache[22] || (_cache[22] = $event => (_ctx.$emit('apply-click',$event)))
  32492. }, null, 8, ["field", "type", "showMenu", "filterElement", "filterHeaderTemplate", "filterFooterTemplate", "filterClearTemplate", "filterApplyTemplate", "filters", "filtersStore", "filterMenuStyle", "filterMenuClass", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "matchModeOptions", "maxConstraints"]))
  32493. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  32494. ], 6))
  32495. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  32496. ], 64))
  32497. }), 128))
  32498. ]))
  32499. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  32500. ], 64))
  32501. : ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, { key: 1 }, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($options.getHeaderRows(), (row, i) => {
  32502. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("tr", {
  32503. key: i,
  32504. role: "row"
  32505. }, [
  32506. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($options.getHeaderColumns(row), (col, j) => {
  32507. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
  32508. key: $options.columnProp(col, 'columnKey')||$options.columnProp(col, 'field')||j
  32509. }, [
  32510. (!$options.columnProp(col, 'hidden') && ($props.rowGroupMode !== 'subheader' || ($props.groupRowsBy !== $options.columnProp(col, 'field'))) && (typeof col.children !== 'string'))
  32511. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTHeaderCell, {
  32512. key: 0,
  32513. column: col,
  32514. onColumnClick: _cache[23] || (_cache[23] = $event => (_ctx.$emit('column-click', $event))),
  32515. onColumnMousedown: _cache[24] || (_cache[24] = $event => (_ctx.$emit('column-mousedown', $event))),
  32516. groupRowsBy: $props.groupRowsBy,
  32517. groupRowSortField: $props.groupRowSortField,
  32518. sortMode: $props.sortMode,
  32519. sortField: $props.sortField,
  32520. sortOrder: $props.sortOrder,
  32521. multiSortMeta: $props.multiSortMeta,
  32522. allRowsSelected: $props.allRowsSelected,
  32523. empty: $props.empty,
  32524. onCheckboxChange: _cache[25] || (_cache[25] = $event => (_ctx.$emit('checkbox-change', $event))),
  32525. filters: $props.filters,
  32526. filterDisplay: $props.filterDisplay,
  32527. filtersStore: $props.filtersStore,
  32528. onFilterChange: _cache[26] || (_cache[26] = $event => (_ctx.$emit('filter-change', $event))),
  32529. onFilterApply: _cache[27] || (_cache[27] = $event => (_ctx.$emit('filter-apply'))),
  32530. onOperatorChange: _cache[28] || (_cache[28] = $event => (_ctx.$emit('operator-change',$event))),
  32531. onMatchmodeChange: _cache[29] || (_cache[29] = $event => (_ctx.$emit('matchmode-change', $event))),
  32532. onConstraintAdd: _cache[30] || (_cache[30] = $event => (_ctx.$emit('constraint-add', $event))),
  32533. onConstraintRemove: _cache[31] || (_cache[31] = $event => (_ctx.$emit('constraint-remove', $event))),
  32534. onApplyClick: _cache[32] || (_cache[32] = $event => (_ctx.$emit('apply-click',$event)))
  32535. }, null, 8, ["column", "groupRowsBy", "groupRowSortField", "sortMode", "sortField", "sortOrder", "multiSortMeta", "allRowsSelected", "empty", "filters", "filterDisplay", "filtersStore"]))
  32536. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  32537. ], 64))
  32538. }), 128))
  32539. ]))
  32540. }), 128))
  32541. ]))
  32542. }
  32543. script$7.render = render$7;
  32544. var script$6 = {
  32545. name: 'RowRadioButton',
  32546. inheritAttrs: false,
  32547. emits: ['change'],
  32548. props: {
  32549. value: null,
  32550. checked: null
  32551. },
  32552. data() {
  32553. return {
  32554. focused: false
  32555. };
  32556. },
  32557. methods: {
  32558. onClick(event) {
  32559. if (!this.disabled) {
  32560. if (!this.checked) {
  32561. this.$emit('change', {
  32562. originalEvent: event,
  32563. data: this.value
  32564. });
  32565. }
  32566. }
  32567. },
  32568. onFocus() {
  32569. this.focused = true;
  32570. },
  32571. onBlur() {
  32572. this.focused = false;
  32573. }
  32574. }
  32575. };
  32576. const _hoisted_1$6 = ["aria-checked"];
  32577. const _hoisted_2$4 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("div", { class: "p-radiobutton-icon" }, null, -1);
  32578. const _hoisted_3$3 = [
  32579. _hoisted_2$4
  32580. ];
  32581. function render$6(_ctx, _cache, $props, $setup, $data, $options) {
  32582. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("div", {
  32583. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)(['p-radiobutton p-component', {'p-radiobutton-focused': $data.focused}]),
  32584. onClick: _cache[0] || (_cache[0] = (...args) => ($options.onClick && $options.onClick(...args))),
  32585. tabindex: "0",
  32586. onFocus: _cache[1] || (_cache[1] = $event => ($options.onFocus($event))),
  32587. onBlur: _cache[2] || (_cache[2] = $event => ($options.onBlur($event))),
  32588. onKeydown: _cache[3] || (_cache[3] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)((0,vue__WEBPACK_IMPORTED_MODULE_4__.withModifiers)((...args) => ($options.onClick && $options.onClick(...args)), ["prevent"]), ["space"]))
  32589. }, [
  32590. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("div", {
  32591. ref: "box",
  32592. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)(['p-radiobutton-box p-component', {'p-highlight': $props.checked, 'p-disabled': _ctx.$attrs.disabled, 'p-focus': $data.focused}]),
  32593. role: "radio",
  32594. "aria-checked": $props.checked
  32595. }, _hoisted_3$3, 10, _hoisted_1$6)
  32596. ], 34))
  32597. }
  32598. script$6.render = render$6;
  32599. var script$5 = {
  32600. name: 'RowCheckbox',
  32601. inheritAttrs: false,
  32602. emits: ['change'],
  32603. props: {
  32604. value: null,
  32605. checked: null
  32606. },
  32607. data() {
  32608. return {
  32609. focused: false
  32610. };
  32611. },
  32612. methods: {
  32613. onClick(event) {
  32614. if (!this.$attrs.disabled) {
  32615. this.focused = true;
  32616. this.$emit('change', {
  32617. originalEvent: event,
  32618. data: this.value
  32619. });
  32620. }
  32621. },
  32622. onFocus() {
  32623. this.focused = true;
  32624. },
  32625. onBlur() {
  32626. this.focused = false;
  32627. }
  32628. }
  32629. };
  32630. const _hoisted_1$5 = ["aria-checked", "tabindex"];
  32631. function render$5(_ctx, _cache, $props, $setup, $data, $options) {
  32632. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("div", {
  32633. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)(['p-checkbox p-component', {'p-checkbox-focused': $data.focused}]),
  32634. onClick: _cache[3] || (_cache[3] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withModifiers)((...args) => ($options.onClick && $options.onClick(...args)), ["stop","prevent"]))
  32635. }, [
  32636. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("div", {
  32637. ref: "box",
  32638. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)(['p-checkbox-box p-component', {'p-highlight': $props.checked, 'p-disabled': _ctx.$attrs.disabled, 'p-focus': $data.focused}]),
  32639. role: "checkbox",
  32640. "aria-checked": $props.checked,
  32641. tabindex: _ctx.$attrs.disabled ? null : '0',
  32642. onKeydown: _cache[0] || (_cache[0] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)((0,vue__WEBPACK_IMPORTED_MODULE_4__.withModifiers)((...args) => ($options.onClick && $options.onClick(...args)), ["prevent"]), ["space"])),
  32643. onFocus: _cache[1] || (_cache[1] = $event => ($options.onFocus($event))),
  32644. onBlur: _cache[2] || (_cache[2] = $event => ($options.onBlur($event)))
  32645. }, [
  32646. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("span", {
  32647. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)(['p-checkbox-icon', {'pi pi-check': $props.checked}])
  32648. }, null, 2)
  32649. ], 42, _hoisted_1$5)
  32650. ], 2))
  32651. }
  32652. script$5.render = render$5;
  32653. var script$4 = {
  32654. name: 'BodyCell',
  32655. emits: ['cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'row-edit-init', 'row-edit-save', 'row-edit-cancel',
  32656. 'row-toggle', 'radio-change', 'checkbox-change', 'editing-meta-change'],
  32657. props: {
  32658. rowData: {
  32659. type: Object,
  32660. default: null
  32661. },
  32662. column: {
  32663. type: Object,
  32664. default: null
  32665. },
  32666. frozenRow: {
  32667. type: Boolean,
  32668. default: false
  32669. },
  32670. rowIndex: {
  32671. type: Number,
  32672. default: null
  32673. },
  32674. index: {
  32675. type: Number,
  32676. default: null
  32677. },
  32678. rowTogglerIcon: {
  32679. type: Array,
  32680. default: null
  32681. },
  32682. selected: {
  32683. type: Boolean,
  32684. default: false
  32685. },
  32686. editing: {
  32687. type: Boolean,
  32688. default: false
  32689. },
  32690. editingMeta: {
  32691. type: Object,
  32692. default: null
  32693. },
  32694. editMode: {
  32695. type: String,
  32696. default: null
  32697. },
  32698. responsiveLayout: {
  32699. type: String,
  32700. default: 'stack'
  32701. },
  32702. virtualScrollerContentProps: {
  32703. type: Object,
  32704. default: null
  32705. }
  32706. },
  32707. documentEditListener: null,
  32708. selfClick: false,
  32709. overlayEventListener: null,
  32710. data() {
  32711. return {
  32712. d_editing: this.editing,
  32713. styleObject: {}
  32714. }
  32715. },
  32716. watch: {
  32717. editing(newValue) {
  32718. this.d_editing = newValue;
  32719. },
  32720. '$data.d_editing': function(newValue) {
  32721. this.$emit('editing-meta-change', {data: this.rowData, field: (this.field || `field_${this.index}`), index: this.rowIndex, editing: newValue});
  32722. }
  32723. },
  32724. mounted() {
  32725. if (this.columnProp('frozen')) {
  32726. this.updateStickyPosition();
  32727. }
  32728. },
  32729. updated() {
  32730. if (this.columnProp('frozen')) {
  32731. this.updateStickyPosition();
  32732. }
  32733. if (this.d_editing && (this.editMode === 'cell' || (this.editMode === 'row' && this.columnProp('rowEditor')))) {
  32734. const focusableEl = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getFirstFocusableElement(this.$el);
  32735. focusableEl && focusableEl.focus();
  32736. }
  32737. },
  32738. beforeUnmount() {
  32739. if (this.overlayEventListener) {
  32740. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_5__["default"].off('overlay-click', this.overlayEventListener);
  32741. this.overlayEventListener = null;
  32742. }
  32743. },
  32744. methods: {
  32745. columnProp(prop) {
  32746. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.getVNodeProp(this.column, prop);
  32747. },
  32748. resolveFieldData() {
  32749. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(this.rowData, this.field);
  32750. },
  32751. toggleRow(event) {
  32752. this.$emit('row-toggle', {
  32753. originalEvent: event,
  32754. data: this.rowData
  32755. });
  32756. },
  32757. toggleRowWithRadio(event, index) {
  32758. this.$emit('radio-change', { originalEvent: event.originalEvent, index: index, data: event.data});
  32759. },
  32760. toggleRowWithCheckbox(event, index) {
  32761. this.$emit('checkbox-change', { originalEvent: event.originalEvent, index: index, data: event.data });
  32762. },
  32763. isEditable() {
  32764. return this.column.children && this.column.children.editor != null;
  32765. },
  32766. bindDocumentEditListener() {
  32767. if (!this.documentEditListener) {
  32768. this.documentEditListener = (event) => {
  32769. if (!this.selfClick) {
  32770. this.completeEdit(event, 'outside');
  32771. }
  32772. this.selfClick = false;
  32773. };
  32774. document.addEventListener('click', this.documentEditListener);
  32775. }
  32776. },
  32777. unbindDocumentEditListener() {
  32778. if (this.documentEditListener) {
  32779. document.removeEventListener('click', this.documentEditListener);
  32780. this.documentEditListener = null;
  32781. this.selfClick = false;
  32782. }
  32783. },
  32784. switchCellToViewMode() {
  32785. this.d_editing = false;
  32786. this.unbindDocumentEditListener();
  32787. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_5__["default"].off('overlay-click', this.overlayEventListener);
  32788. this.overlayEventListener = null;
  32789. },
  32790. onClick(event) {
  32791. if (this.editMode === 'cell' && this.isEditable()) {
  32792. this.selfClick = true;
  32793. if (!this.d_editing) {
  32794. this.d_editing = true;
  32795. this.bindDocumentEditListener();
  32796. this.$emit('cell-edit-init', {originalEvent: event, data: this.rowData, field: this.field, index: this.rowIndex});
  32797. this.overlayEventListener = (e) => {
  32798. if (this.$el && this.$el.contains(e.target)) {
  32799. this.selfClick = true;
  32800. }
  32801. };
  32802. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_5__["default"].on('overlay-click', this.overlayEventListener);
  32803. }
  32804. }
  32805. },
  32806. completeEdit(event, type) {
  32807. const completeEvent = {
  32808. originalEvent: event,
  32809. data: this.rowData,
  32810. newData: this.editingRowData,
  32811. value: this.rowData[this.field],
  32812. newValue: this.editingRowData[this.field],
  32813. field: this.field,
  32814. index: this.rowIndex,
  32815. type: type,
  32816. defaultPrevented: false,
  32817. preventDefault: function() {
  32818. this.defaultPrevented = true;
  32819. }
  32820. };
  32821. this.$emit('cell-edit-complete', completeEvent);
  32822. if (!completeEvent.defaultPrevented) {
  32823. this.switchCellToViewMode();
  32824. }
  32825. },
  32826. onKeyDown(event) {
  32827. if (this.editMode === 'cell') {
  32828. switch (event.which) {
  32829. case 13:
  32830. this.completeEdit(event, 'enter');
  32831. break;
  32832. case 27:
  32833. this.switchCellToViewMode();
  32834. this.$emit('cell-edit-cancel', {originalEvent: event, data: this.rowData, field: this.field, index: this.rowIndex});
  32835. break;
  32836. case 9:
  32837. this.completeEdit(event, 'tab');
  32838. if (event.shiftKey)
  32839. this.moveToPreviousCell(event);
  32840. else
  32841. this.moveToNextCell(event);
  32842. break;
  32843. }
  32844. }
  32845. },
  32846. moveToPreviousCell(event) {
  32847. let currentCell = this.findCell(event.target);
  32848. let targetCell = this.findPreviousEditableColumn(currentCell);
  32849. if (targetCell) {
  32850. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.invokeElementMethod(targetCell, 'click');
  32851. event.preventDefault();
  32852. }
  32853. },
  32854. moveToNextCell(event) {
  32855. let currentCell = this.findCell(event.target);
  32856. let targetCell = this.findNextEditableColumn(currentCell);
  32857. if (targetCell) {
  32858. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.invokeElementMethod(targetCell, 'click');
  32859. event.preventDefault();
  32860. }
  32861. },
  32862. findCell(element) {
  32863. if (element) {
  32864. let cell = element;
  32865. while (cell && !primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(cell, 'p-cell-editing')) {
  32866. cell = cell.parentElement;
  32867. }
  32868. return cell;
  32869. }
  32870. else {
  32871. return null;
  32872. }
  32873. },
  32874. findPreviousEditableColumn(cell) {
  32875. let prevCell = cell.previousElementSibling;
  32876. if (!prevCell) {
  32877. let previousRow = cell.parentElement.previousElementSibling;
  32878. if (previousRow) {
  32879. prevCell = previousRow.lastElementChild;
  32880. }
  32881. }
  32882. if (prevCell) {
  32883. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(prevCell, 'p-editable-column'))
  32884. return prevCell;
  32885. else
  32886. return this.findPreviousEditableColumn(prevCell);
  32887. }
  32888. else {
  32889. return null;
  32890. }
  32891. },
  32892. findNextEditableColumn(cell) {
  32893. let nextCell = cell.nextElementSibling;
  32894. if (!nextCell) {
  32895. let nextRow = cell.parentElement.nextElementSibling;
  32896. if (nextRow) {
  32897. nextCell = nextRow.firstElementChild;
  32898. }
  32899. }
  32900. if (nextCell) {
  32901. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(nextCell, 'p-editable-column'))
  32902. return nextCell;
  32903. else
  32904. return this.findNextEditableColumn(nextCell);
  32905. }
  32906. else {
  32907. return null;
  32908. }
  32909. },
  32910. isEditingCellValid() {
  32911. return (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.find(this.$el, '.p-invalid').length === 0);
  32912. },
  32913. onRowEditInit(event) {
  32914. this.$emit('row-edit-init', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
  32915. },
  32916. onRowEditSave(event) {
  32917. this.$emit('row-edit-save', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
  32918. },
  32919. onRowEditCancel(event) {
  32920. this.$emit('row-edit-cancel', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
  32921. },
  32922. editorInitCallback(event) {
  32923. this.$emit('row-edit-init', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
  32924. },
  32925. editorSaveCallback(event) {
  32926. this.$emit('row-edit-save', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
  32927. },
  32928. editorCancelCallback(event) {
  32929. this.$emit('row-edit-cancel', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
  32930. },
  32931. updateStickyPosition() {
  32932. if (this.columnProp('frozen')) {
  32933. let align = this.columnProp('alignFrozen');
  32934. if (align === 'right') {
  32935. let right = 0;
  32936. let next = this.$el.nextElementSibling;
  32937. if (next) {
  32938. right = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
  32939. }
  32940. this.styleObject.right = right + 'px';
  32941. }
  32942. else {
  32943. let left = 0;
  32944. let prev = this.$el.previousElementSibling;
  32945. if (prev) {
  32946. left = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
  32947. }
  32948. this.styleObject.left = left + 'px';
  32949. }
  32950. }
  32951. },
  32952. getVirtualScrollerProp(option) {
  32953. return this.virtualScrollerContentProps ? this.virtualScrollerContentProps[option] : null;
  32954. }
  32955. },
  32956. computed: {
  32957. editingRowData() {
  32958. return this.editingMeta[this.rowIndex] ? this.editingMeta[this.rowIndex].data : this.rowData;
  32959. },
  32960. field() {
  32961. return this.columnProp('field');
  32962. },
  32963. containerClass() {
  32964. return [this.columnProp('bodyClass'), this.columnProp('class'), {
  32965. 'p-selection-column': this.columnProp('selectionMode') != null,
  32966. 'p-editable-column': this.isEditable(),
  32967. 'p-cell-editing': this.d_editing,
  32968. 'p-frozen-column': this.columnProp('frozen')
  32969. }];
  32970. },
  32971. containerStyle() {
  32972. let bodyStyle = this.columnProp('bodyStyle');
  32973. let columnStyle = this.columnProp('style');
  32974. return this.columnProp('frozen') ? [columnStyle, bodyStyle, this.styleObject]: [columnStyle, bodyStyle];
  32975. },
  32976. loading() {
  32977. return this.getVirtualScrollerProp('loading');
  32978. },
  32979. loadingOptions() {
  32980. const getLoaderOptions = this.getVirtualScrollerProp('getLoaderOptions');
  32981. return getLoaderOptions && getLoaderOptions(this.rowIndex, {
  32982. cellIndex: this.index,
  32983. cellFirst: this.index === 0,
  32984. cellLast: this.index === (this.getVirtualScrollerProp('columns').length - 1),
  32985. cellEven: this.index % 2 === 0,
  32986. cellOdd: this.index % 2 !== 0,
  32987. column: this.column,
  32988. field: this.field
  32989. });
  32990. }
  32991. },
  32992. components: {
  32993. 'DTRadioButton': script$6,
  32994. 'DTCheckbox': script$5
  32995. },
  32996. directives: {
  32997. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_8__["default"]
  32998. }
  32999. };
  33000. const _hoisted_1$4 = {
  33001. key: 0,
  33002. class: "p-column-title"
  33003. };
  33004. const _hoisted_2$3 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("span", { class: "p-row-editor-init-icon pi pi-fw pi-pencil" }, null, -1);
  33005. const _hoisted_3$2 = [
  33006. _hoisted_2$3
  33007. ];
  33008. const _hoisted_4$2 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("span", { class: "p-row-editor-save-icon pi pi-fw pi-check" }, null, -1);
  33009. const _hoisted_5$2 = [
  33010. _hoisted_4$2
  33011. ];
  33012. const _hoisted_6$2 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("span", { class: "p-row-editor-cancel-icon pi pi-fw pi-times" }, null, -1);
  33013. const _hoisted_7 = [
  33014. _hoisted_6$2
  33015. ];
  33016. function render$4(_ctx, _cache, $props, $setup, $data, $options) {
  33017. const _component_DTRadioButton = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTRadioButton");
  33018. const _component_DTCheckbox = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTCheckbox");
  33019. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDirective)("ripple");
  33020. return ($options.loading)
  33021. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("td", {
  33022. key: 0,
  33023. style: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeStyle)($options.containerStyle),
  33024. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)($options.containerClass)
  33025. }, [
  33026. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.column.children.loading), {
  33027. data: $props.rowData,
  33028. column: $props.column,
  33029. field: $options.field,
  33030. index: $props.rowIndex,
  33031. frozenRow: $props.frozenRow,
  33032. loadingOptions: $options.loadingOptions
  33033. }, null, 8, ["data", "column", "field", "index", "frozenRow", "loadingOptions"]))
  33034. ], 6))
  33035. : ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("td", {
  33036. key: 1,
  33037. style: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeStyle)($options.containerStyle),
  33038. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)($options.containerClass),
  33039. onClick: _cache[6] || (_cache[6] = (...args) => ($options.onClick && $options.onClick(...args))),
  33040. onKeydown: _cache[7] || (_cache[7] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args))),
  33041. role: "cell"
  33042. }, [
  33043. ($props.responsiveLayout === 'stack')
  33044. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("span", _hoisted_1$4, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.columnProp('header')), 1))
  33045. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  33046. ($props.column.children && $props.column.children.body && !$data.d_editing)
  33047. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.column.children.body), {
  33048. key: 1,
  33049. data: $props.rowData,
  33050. column: $props.column,
  33051. field: $options.field,
  33052. index: $props.rowIndex,
  33053. frozenRow: $props.frozenRow,
  33054. editorInitCallback: $options.editorInitCallback
  33055. }, null, 8, ["data", "column", "field", "index", "frozenRow", "editorInitCallback"]))
  33056. : ($props.column.children && $props.column.children.editor && $data.d_editing)
  33057. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.column.children.editor), {
  33058. key: 2,
  33059. data: $options.editingRowData,
  33060. column: $props.column,
  33061. field: $options.field,
  33062. index: $props.rowIndex,
  33063. frozenRow: $props.frozenRow,
  33064. editorSaveCallback: $options.editorSaveCallback,
  33065. editorCancelCallback: $options.editorCancelCallback
  33066. }, null, 8, ["data", "column", "field", "index", "frozenRow", "editorSaveCallback", "editorCancelCallback"]))
  33067. : ($props.column.children && $props.column.children.body && !$props.column.children.editor && $data.d_editing)
  33068. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.column.children.body), {
  33069. key: 3,
  33070. data: $options.editingRowData,
  33071. column: $props.column,
  33072. field: $options.field,
  33073. index: $props.rowIndex,
  33074. frozenRow: $props.frozenRow
  33075. }, null, 8, ["data", "column", "field", "index", "frozenRow"]))
  33076. : ($options.columnProp('selectionMode'))
  33077. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, { key: 4 }, [
  33078. ($options.columnProp('selectionMode') === 'single')
  33079. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTRadioButton, {
  33080. key: 0,
  33081. value: $props.rowData,
  33082. checked: $props.selected,
  33083. onChange: _cache[0] || (_cache[0] = $event => ($options.toggleRowWithRadio($event, $props.rowIndex)))
  33084. }, null, 8, ["value", "checked"]))
  33085. : ($options.columnProp('selectionMode') ==='multiple')
  33086. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTCheckbox, {
  33087. key: 1,
  33088. value: $props.rowData,
  33089. checked: $props.selected,
  33090. onChange: _cache[1] || (_cache[1] = $event => ($options.toggleRowWithCheckbox($event, $props.rowIndex)))
  33091. }, null, 8, ["value", "checked"]))
  33092. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  33093. ], 64))
  33094. : ($options.columnProp('rowReorder'))
  33095. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("i", {
  33096. key: 5,
  33097. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)(['p-datatable-reorderablerow-handle', ($options.columnProp('rowReorderIcon') || 'pi pi-bars')])
  33098. }, null, 2))
  33099. : ($options.columnProp('expander'))
  33100. ? (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("button", {
  33101. key: 6,
  33102. class: "p-row-toggler p-link",
  33103. onClick: _cache[2] || (_cache[2] = (...args) => ($options.toggleRow && $options.toggleRow(...args))),
  33104. type: "button"
  33105. }, [
  33106. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("span", {
  33107. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)($props.rowTogglerIcon)
  33108. }, null, 2)
  33109. ])), [
  33110. [_directive_ripple]
  33111. ])
  33112. : ($props.editMode === 'row' && $options.columnProp('rowEditor'))
  33113. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, { key: 7 }, [
  33114. (!$data.d_editing)
  33115. ? (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("button", {
  33116. key: 0,
  33117. class: "p-row-editor-init p-link",
  33118. onClick: _cache[3] || (_cache[3] = (...args) => ($options.onRowEditInit && $options.onRowEditInit(...args))),
  33119. type: "button"
  33120. }, _hoisted_3$2)), [
  33121. [_directive_ripple]
  33122. ])
  33123. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  33124. ($data.d_editing)
  33125. ? (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("button", {
  33126. key: 1,
  33127. class: "p-row-editor-save p-link",
  33128. onClick: _cache[4] || (_cache[4] = (...args) => ($options.onRowEditSave && $options.onRowEditSave(...args))),
  33129. type: "button"
  33130. }, _hoisted_5$2)), [
  33131. [_directive_ripple]
  33132. ])
  33133. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  33134. ($data.d_editing)
  33135. ? (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("button", {
  33136. key: 2,
  33137. class: "p-row-editor-cancel p-link",
  33138. onClick: _cache[5] || (_cache[5] = (...args) => ($options.onRowEditCancel && $options.onRowEditCancel(...args))),
  33139. type: "button"
  33140. }, _hoisted_7)), [
  33141. [_directive_ripple]
  33142. ])
  33143. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  33144. ], 64))
  33145. : ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, { key: 8 }, [
  33146. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.resolveFieldData()), 1)
  33147. ], 64))
  33148. ], 38))
  33149. }
  33150. script$4.render = render$4;
  33151. var script$3 = {
  33152. name: 'TableBody',
  33153. emits: ['rowgroup-toggle', 'row-click', 'row-dblclick', 'row-rightclick', 'row-touchend', 'row-keydown', 'row-mousedown',
  33154. 'row-dragstart', 'row-dragover', 'row-dragleave', 'row-dragend', 'row-drop', 'row-toggle',
  33155. 'radio-change', 'checkbox-change', 'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel',
  33156. 'row-edit-init', 'row-edit-save', 'row-edit-cancel', 'editing-meta-change'],
  33157. props: {
  33158. value: {
  33159. type: Array,
  33160. default: null
  33161. },
  33162. columns: {
  33163. type: null,
  33164. default: null
  33165. },
  33166. frozenRow: {
  33167. type: Boolean,
  33168. default: false
  33169. },
  33170. empty: {
  33171. type: Boolean,
  33172. default: false
  33173. },
  33174. rowGroupMode: {
  33175. type: String,
  33176. default: null
  33177. },
  33178. groupRowsBy: {
  33179. type: [Array,String],
  33180. default: null
  33181. },
  33182. expandableRowGroups: {
  33183. type: Boolean,
  33184. default: false
  33185. },
  33186. expandedRowGroups: {
  33187. type: Array,
  33188. default: null
  33189. },
  33190. dataKey: {
  33191. type: String,
  33192. default: null
  33193. },
  33194. expandedRowIcon: {
  33195. type: String,
  33196. default: null
  33197. },
  33198. collapsedRowIcon: {
  33199. type: String,
  33200. default: null
  33201. },
  33202. expandedRows: {
  33203. type: Array,
  33204. default: null
  33205. },
  33206. expandedRowKeys: {
  33207. type: null,
  33208. default: null
  33209. },
  33210. selection: {
  33211. type: [Array,Object],
  33212. default: null
  33213. },
  33214. selectionKeys: {
  33215. type: null,
  33216. default: null
  33217. },
  33218. selectionMode: {
  33219. type: String,
  33220. default: null
  33221. },
  33222. contextMenu: {
  33223. type: Boolean,
  33224. default: false
  33225. },
  33226. contextMenuSelection: {
  33227. type: Object,
  33228. default: null
  33229. },
  33230. rowClass: {
  33231. type: null,
  33232. default: null
  33233. },
  33234. rowStyle: {
  33235. type: null,
  33236. default: null
  33237. },
  33238. editMode: {
  33239. type: String,
  33240. default: null
  33241. },
  33242. compareSelectionBy: {
  33243. type: String,
  33244. default: 'deepEquals'
  33245. },
  33246. editingRows: {
  33247. type: Array,
  33248. default: null
  33249. },
  33250. editingRowKeys: {
  33251. type: null,
  33252. default: null
  33253. },
  33254. editingMeta: {
  33255. type: Object,
  33256. default: null
  33257. },
  33258. loading: {
  33259. type: Boolean,
  33260. default: false
  33261. },
  33262. templates: {
  33263. type: null,
  33264. default: null
  33265. },
  33266. scrollable: {
  33267. type: Boolean,
  33268. default: false
  33269. },
  33270. responsiveLayout: {
  33271. type: String,
  33272. default: 'stack'
  33273. },
  33274. virtualScrollerContentProps: {
  33275. type: Object,
  33276. default: null
  33277. },
  33278. isVirtualScrollerDisabled: {
  33279. type: Boolean,
  33280. default: false
  33281. }
  33282. },
  33283. watch: {
  33284. virtualScrollerContentProps(newValue, oldValue) {
  33285. if (!this.isVirtualScrollerDisabled && this.getVirtualScrollerProp('vertical') && this.getVirtualScrollerProp('itemSize', oldValue) !== this.getVirtualScrollerProp('itemSize', newValue)) {
  33286. this.updateVirtualScrollerPosition();
  33287. }
  33288. }
  33289. },
  33290. mounted() {
  33291. if (this.frozenRow) {
  33292. this.updateFrozenRowStickyPosition();
  33293. }
  33294. if (this.scrollable && this.rowGroupMode === 'subheader') {
  33295. this.updateFrozenRowGroupHeaderStickyPosition();
  33296. }
  33297. if (!this.isVirtualScrollerDisabled && this.getVirtualScrollerProp('vertical')) {
  33298. this.updateVirtualScrollerPosition();
  33299. }
  33300. },
  33301. updated() {
  33302. if (this.frozenRow) {
  33303. this.updateFrozenRowStickyPosition();
  33304. }
  33305. if (this.scrollable && this.rowGroupMode === 'subheader') {
  33306. this.updateFrozenRowGroupHeaderStickyPosition();
  33307. }
  33308. },
  33309. data() {
  33310. return {
  33311. rowGroupHeaderStyleObject: {}
  33312. }
  33313. },
  33314. methods: {
  33315. columnProp(col, prop) {
  33316. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.getVNodeProp(col, prop);
  33317. },
  33318. shouldRenderRowGroupHeader(value, rowData, i) {
  33319. let currentRowFieldData = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
  33320. let prevRowData = value[i - 1];
  33321. if (prevRowData) {
  33322. let previousRowFieldData = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(prevRowData, this.groupRowsBy);
  33323. return currentRowFieldData !== previousRowFieldData;
  33324. }
  33325. else {
  33326. return true;
  33327. }
  33328. },
  33329. getRowKey(rowData, index) {
  33330. return this.dataKey ? primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, this.dataKey): index;
  33331. },
  33332. getRowIndex(index) {
  33333. const getItemOptions = this.getVirtualScrollerProp('getItemOptions');
  33334. return getItemOptions ? getItemOptions(index).index : index;
  33335. },
  33336. getRowClass(rowData) {
  33337. let rowStyleClass = [];
  33338. if (this.selectionMode) {
  33339. rowStyleClass.push('p-selectable-row');
  33340. }
  33341. if (this.selection) {
  33342. rowStyleClass.push({
  33343. 'p-highlight': this.isSelected(rowData)
  33344. });
  33345. }
  33346. if (this.contextMenuSelection) {
  33347. rowStyleClass.push({
  33348. 'p-highlight-contextmenu': this.isSelectedWithContextMenu(rowData)
  33349. });
  33350. }
  33351. if (this.rowClass) {
  33352. let rowClassValue = this.rowClass(rowData);
  33353. if (rowClassValue) {
  33354. rowStyleClass.push(rowClassValue);
  33355. }
  33356. }
  33357. return rowStyleClass;
  33358. },
  33359. shouldRenderRowGroupFooter(value, rowData, i) {
  33360. if (this.expandableRowGroups && !this.isRowGroupExpanded(rowData)) {
  33361. return false;
  33362. }
  33363. else {
  33364. let currentRowFieldData = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
  33365. let nextRowData = value[i + 1];
  33366. if (nextRowData) {
  33367. let nextRowFieldData = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(nextRowData, this.groupRowsBy);
  33368. return currentRowFieldData !== nextRowFieldData;
  33369. }
  33370. else {
  33371. return true;
  33372. }
  33373. }
  33374. },
  33375. shouldRenderBodyCell(value, column, i) {
  33376. if (this.rowGroupMode) {
  33377. if (this.rowGroupMode === 'subheader') {
  33378. return this.groupRowsBy !== this.columnProp(column, 'field');
  33379. }
  33380. else if (this.rowGroupMode === 'rowspan') {
  33381. if (this.isGrouped(column)) {
  33382. let prevRowData = value[i - 1];
  33383. if (prevRowData) {
  33384. let currentRowFieldData = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(value[i], this.columnProp(column, 'field'));
  33385. let previousRowFieldData = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(prevRowData, this.columnProp(column, 'field'));
  33386. return currentRowFieldData !== previousRowFieldData;
  33387. }
  33388. else {
  33389. return true;
  33390. }
  33391. }
  33392. else {
  33393. return true;
  33394. }
  33395. }
  33396. }
  33397. else {
  33398. return !this.columnProp(column, 'hidden');
  33399. }
  33400. },
  33401. calculateRowGroupSize(value, column, index) {
  33402. if (this.isGrouped(column)) {
  33403. let currentRowFieldData = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(value[index], this.columnProp(column, 'field'));
  33404. let nextRowFieldData = currentRowFieldData;
  33405. let groupRowSpan = 0;
  33406. while (currentRowFieldData === nextRowFieldData) {
  33407. groupRowSpan++;
  33408. let nextRowData = value[++index];
  33409. if (nextRowData) {
  33410. nextRowFieldData = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(nextRowData, this.columnProp(column, 'field'));
  33411. }
  33412. else {
  33413. break;
  33414. }
  33415. }
  33416. return groupRowSpan === 1 ? null : groupRowSpan;
  33417. }
  33418. else {
  33419. return null;
  33420. }
  33421. },
  33422. rowTogglerIcon(rowData) {
  33423. const icon = this.isRowExpanded(rowData) ? this.expandedRowIcon : this.collapsedRowIcon;
  33424. return ['p-row-toggler-icon pi', icon];
  33425. },
  33426. rowGroupTogglerIcon(rowData) {
  33427. const icon = this.isRowGroupExpanded(rowData) ? this.expandedRowIcon : this.collapsedRowIcon;
  33428. return ['p-row-toggler-icon pi', icon];
  33429. },
  33430. isGrouped(column) {
  33431. if (this.groupRowsBy && this.columnProp(column, 'field')) {
  33432. if (Array.isArray(this.groupRowsBy))
  33433. return this.groupRowsBy.indexOf(column.props.field) > -1;
  33434. else
  33435. return this.groupRowsBy === column.props.field;
  33436. }
  33437. else {
  33438. return false;
  33439. }
  33440. },
  33441. isRowEditing(rowData) {
  33442. if (rowData && this.editingRows) {
  33443. if (this.dataKey)
  33444. return this.editingRowKeys ? this.editingRowKeys[primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
  33445. else
  33446. return this.findIndex(rowData, this.editingRows) > -1;
  33447. }
  33448. return false;
  33449. },
  33450. isRowExpanded(rowData) {
  33451. if (rowData && this.expandedRows) {
  33452. if (this.dataKey)
  33453. return this.expandedRowKeys ? this.expandedRowKeys[primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
  33454. else
  33455. return this.findIndex(rowData, this.expandedRows) > -1;
  33456. }
  33457. return false;
  33458. },
  33459. isRowGroupExpanded(rowData) {
  33460. if (this.expandableRowGroups && this.expandedRowGroups) {
  33461. let groupFieldValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
  33462. return this.expandedRowGroups.indexOf(groupFieldValue) > -1;
  33463. }
  33464. return false;
  33465. },
  33466. isSelected(rowData) {
  33467. if (rowData && this.selection) {
  33468. if (this.dataKey) {
  33469. return this.selectionKeys ? this.selectionKeys[primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
  33470. }
  33471. else {
  33472. if (this.selection instanceof Array)
  33473. return this.findIndexInSelection(rowData) > -1;
  33474. else
  33475. return this.equals(rowData, this.selection);
  33476. }
  33477. }
  33478. return false;
  33479. },
  33480. isSelectedWithContextMenu(rowData) {
  33481. if (rowData && this.contextMenuSelection) {
  33482. return this.equals(rowData, this.contextMenuSelection, this.dataKey);
  33483. }
  33484. return false;
  33485. },
  33486. findIndexInSelection(rowData) {
  33487. return this.findIndex(rowData, this.selection);
  33488. },
  33489. findIndex(rowData, collection) {
  33490. let index = -1;
  33491. if (collection && collection.length) {
  33492. for (let i = 0; i < collection.length; i++) {
  33493. if (this.equals(rowData, collection[i])) {
  33494. index = i;
  33495. break;
  33496. }
  33497. }
  33498. }
  33499. return index;
  33500. },
  33501. equals(data1, data2) {
  33502. return this.compareSelectionBy === 'equals' ? (data1 === data2) : primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.equals(data1, data2, this.dataKey);
  33503. },
  33504. onRowGroupToggle(event, data) {
  33505. this.$emit('rowgroup-toggle', {originalEvent: event, data: data});
  33506. },
  33507. onRowClick(event, rowData, rowIndex) {
  33508. this.$emit('row-click', {originalEvent: event, data: rowData, index: rowIndex});
  33509. },
  33510. onRowDblClick(event, rowData, rowIndex) {
  33511. this.$emit('row-dblclick', {originalEvent: event, data: rowData, index: rowIndex});
  33512. },
  33513. onRowRightClick(event, rowData, rowIndex) {
  33514. this.$emit('row-rightclick', {originalEvent: event, data: rowData, index: rowIndex});
  33515. },
  33516. onRowTouchEnd(event) {
  33517. this.$emit('row-touchend', event);
  33518. },
  33519. onRowKeyDown(event, rowData, rowIndex) {
  33520. this.$emit('row-keydown', {originalEvent: event, data: rowData, index: rowIndex});
  33521. },
  33522. onRowMouseDown(event) {
  33523. this.$emit('row-mousedown', event);
  33524. },
  33525. onRowDragStart(event, rowIndex) {
  33526. this.$emit('row-dragstart', {originalEvent: event, index: rowIndex});
  33527. },
  33528. onRowDragOver(event, rowIndex) {
  33529. this.$emit('row-dragover', {originalEvent: event, index: rowIndex});
  33530. },
  33531. onRowDragLeave(event) {
  33532. this.$emit('row-dragleave', event);
  33533. },
  33534. onRowDragEnd(event) {
  33535. this.$emit('row-dragend', event);
  33536. },
  33537. onRowDrop(event) {
  33538. this.$emit('row-drop', event);
  33539. },
  33540. onRowToggle(event) {
  33541. this.$emit('row-toggle', event);
  33542. },
  33543. onRadioChange(event) {
  33544. this.$emit('radio-change', event);
  33545. },
  33546. onCheckboxChange(event) {
  33547. this.$emit('checkbox-change', event);
  33548. },
  33549. onCellEditInit(event) {
  33550. this.$emit('cell-edit-init', event);
  33551. },
  33552. onCellEditComplete(event) {
  33553. this.$emit('cell-edit-complete', event);
  33554. },
  33555. onCellEditCancel(event) {
  33556. this.$emit('cell-edit-cancel', event);
  33557. },
  33558. onRowEditInit(event) {
  33559. this.$emit('row-edit-init', event);
  33560. },
  33561. onRowEditSave(event) {
  33562. this.$emit('row-edit-save', event);
  33563. },
  33564. onRowEditCancel(event) {
  33565. this.$emit('row-edit-cancel', event);
  33566. },
  33567. onEditingMetaChange(event) {
  33568. this.$emit('editing-meta-change', event);
  33569. },
  33570. updateFrozenRowStickyPosition() {
  33571. this.$el.style.top = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(this.$el.previousElementSibling) + 'px';
  33572. },
  33573. updateFrozenRowGroupHeaderStickyPosition() {
  33574. let tableHeaderHeight = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(this.$el.previousElementSibling);
  33575. this.rowGroupHeaderStyleObject.top = tableHeaderHeight + 'px';
  33576. },
  33577. updateVirtualScrollerPosition() {
  33578. const tableHeaderHeight = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(this.$el.previousElementSibling);
  33579. this.$el.style.top = (this.$el.style.top || 0) + tableHeaderHeight + 'px';
  33580. },
  33581. getVirtualScrollerProp(option, options) {
  33582. options = options || this.virtualScrollerContentProps;
  33583. return options ? options[option] : null;
  33584. },
  33585. bodyRef(el) {
  33586. // For VirtualScroller
  33587. const contentRef = this.getVirtualScrollerProp('contentRef');
  33588. contentRef && contentRef(el);
  33589. }
  33590. },
  33591. computed: {
  33592. columnsLength() {
  33593. let hiddenColLength = 0;
  33594. this.columns.forEach(column => {
  33595. if(this.columnProp(column, 'hidden')) hiddenColLength++;
  33596. });
  33597. return this.columns ? this.columns.length - hiddenColLength : 0;
  33598. },
  33599. rowGroupHeaderStyle() {
  33600. if (this.scrollable) {
  33601. return {top: this.rowGroupHeaderStyleObject.top};
  33602. }
  33603. return null;
  33604. },
  33605. bodyStyle() {
  33606. return this.getVirtualScrollerProp('contentStyle');
  33607. }
  33608. },
  33609. components: {
  33610. 'DTBodyCell': script$4
  33611. }
  33612. };
  33613. const _hoisted_1$3 = ["colspan"];
  33614. const _hoisted_2$2 = ["onClick"];
  33615. const _hoisted_3$1 = ["onClick", "onDblclick", "onContextmenu", "onKeydown", "tabindex", "onDragstart", "onDragover"];
  33616. const _hoisted_4$1 = ["colspan"];
  33617. const _hoisted_5$1 = {
  33618. key: 1,
  33619. class: "p-datatable-emptymessage",
  33620. role: "row"
  33621. };
  33622. const _hoisted_6$1 = ["colspan"];
  33623. function render$3(_ctx, _cache, $props, $setup, $data, $options) {
  33624. const _component_DTBodyCell = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTBodyCell");
  33625. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("tbody", {
  33626. ref: $options.bodyRef,
  33627. class: "p-datatable-tbody",
  33628. role: "rowgroup",
  33629. style: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeStyle)($options.bodyStyle)
  33630. }, [
  33631. (!$props.empty)
  33632. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, { key: 0 }, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($props.value, (rowData, index) => {
  33633. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
  33634. key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_subheader'
  33635. }, [
  33636. ($props.templates['groupheader'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupHeader($props.value, rowData, $options.getRowIndex(index)))
  33637. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("tr", {
  33638. key: 0,
  33639. class: "p-rowgroup-header",
  33640. style: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeStyle)($options.rowGroupHeaderStyle),
  33641. role: "row"
  33642. }, [
  33643. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("td", {
  33644. colspan: $options.columnsLength - 1
  33645. }, [
  33646. ($props.expandableRowGroups)
  33647. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("button", {
  33648. key: 0,
  33649. class: "p-row-toggler p-link",
  33650. onClick: $event => ($options.onRowGroupToggle($event, rowData)),
  33651. type: "button"
  33652. }, [
  33653. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("span", {
  33654. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)($options.rowGroupTogglerIcon(rowData))
  33655. }, null, 2)
  33656. ], 8, _hoisted_2$2))
  33657. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  33658. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.templates['groupheader']), {
  33659. data: rowData,
  33660. index: $options.getRowIndex(index)
  33661. }, null, 8, ["data", "index"]))
  33662. ], 8, _hoisted_1$3)
  33663. ], 4))
  33664. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  33665. ($props.expandableRowGroups ? $options.isRowGroupExpanded(rowData): true)
  33666. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("tr", {
  33667. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)($options.getRowClass(rowData)),
  33668. style: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeStyle)($props.rowStyle),
  33669. key: $options.getRowKey(rowData, $options.getRowIndex(index)),
  33670. onClick: $event => ($options.onRowClick($event, rowData, $options.getRowIndex(index))),
  33671. onDblclick: $event => ($options.onRowDblClick($event, rowData, $options.getRowIndex(index))),
  33672. onContextmenu: $event => ($options.onRowRightClick($event, rowData, $options.getRowIndex(index))),
  33673. onTouchend: _cache[9] || (_cache[9] = $event => ($options.onRowTouchEnd($event))),
  33674. onKeydown: $event => ($options.onRowKeyDown($event, rowData, $options.getRowIndex(index))),
  33675. tabindex: $props.selectionMode || $props.contextMenu ? '0' : null,
  33676. onMousedown: _cache[10] || (_cache[10] = $event => ($options.onRowMouseDown($event))),
  33677. onDragstart: $event => ($options.onRowDragStart($event, $options.getRowIndex(index))),
  33678. onDragover: $event => ($options.onRowDragOver($event, $options.getRowIndex(index))),
  33679. onDragleave: _cache[11] || (_cache[11] = $event => ($options.onRowDragLeave($event))),
  33680. onDragend: _cache[12] || (_cache[12] = $event => ($options.onRowDragEnd($event))),
  33681. onDrop: _cache[13] || (_cache[13] = $event => ($options.onRowDrop($event))),
  33682. role: "row"
  33683. }, [
  33684. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($props.columns, (col, i) => {
  33685. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
  33686. key: $options.columnProp(col,'columnKey')||$options.columnProp(col,'field')||i
  33687. }, [
  33688. ($options.shouldRenderBodyCell($props.value, col, $options.getRowIndex(index)))
  33689. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTBodyCell, {
  33690. key: 0,
  33691. rowData: rowData,
  33692. column: col,
  33693. rowIndex: $options.getRowIndex(index),
  33694. index: i,
  33695. selected: $options.isSelected(rowData),
  33696. rowTogglerIcon: $options.columnProp(col,'expander') ? $options.rowTogglerIcon(rowData): null,
  33697. frozenRow: $props.frozenRow,
  33698. rowspan: $props.rowGroupMode === 'rowspan' ? $options.calculateRowGroupSize($props.value, col, $options.getRowIndex(index)) : null,
  33699. editMode: $props.editMode,
  33700. editing: $props.editMode === 'row' && $options.isRowEditing(rowData),
  33701. responsiveLayout: $props.responsiveLayout,
  33702. onRadioChange: _cache[0] || (_cache[0] = $event => ($options.onRadioChange($event))),
  33703. onCheckboxChange: _cache[1] || (_cache[1] = $event => ($options.onCheckboxChange($event))),
  33704. onRowToggle: _cache[2] || (_cache[2] = $event => ($options.onRowToggle($event))),
  33705. onCellEditInit: _cache[3] || (_cache[3] = $event => ($options.onCellEditInit($event))),
  33706. onCellEditComplete: _cache[4] || (_cache[4] = $event => ($options.onCellEditComplete($event))),
  33707. onCellEditCancel: _cache[5] || (_cache[5] = $event => ($options.onCellEditCancel($event))),
  33708. onRowEditInit: _cache[6] || (_cache[6] = $event => ($options.onRowEditInit($event))),
  33709. onRowEditSave: _cache[7] || (_cache[7] = $event => ($options.onRowEditSave($event))),
  33710. onRowEditCancel: _cache[8] || (_cache[8] = $event => ($options.onRowEditCancel($event))),
  33711. editingMeta: $props.editingMeta,
  33712. onEditingMetaChange: $options.onEditingMetaChange,
  33713. virtualScrollerContentProps: $props.virtualScrollerContentProps
  33714. }, null, 8, ["rowData", "column", "rowIndex", "index", "selected", "rowTogglerIcon", "frozenRow", "rowspan", "editMode", "editing", "responsiveLayout", "editingMeta", "onEditingMetaChange", "virtualScrollerContentProps"]))
  33715. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  33716. ], 64))
  33717. }), 128))
  33718. ], 46, _hoisted_3$1))
  33719. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  33720. ($props.templates['expansion'] && $props.expandedRows && $options.isRowExpanded(rowData))
  33721. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("tr", {
  33722. class: "p-datatable-row-expansion",
  33723. key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_expansion',
  33724. role: "row"
  33725. }, [
  33726. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("td", { colspan: $options.columnsLength }, [
  33727. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.templates['expansion']), {
  33728. data: rowData,
  33729. index: $options.getRowIndex(index)
  33730. }, null, 8, ["data", "index"]))
  33731. ], 8, _hoisted_4$1)
  33732. ]))
  33733. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  33734. ($props.templates['groupfooter'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupFooter($props.value, rowData, $options.getRowIndex(index)))
  33735. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("tr", {
  33736. class: "p-rowgroup-footer",
  33737. key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_subfooter',
  33738. role: "row"
  33739. }, [
  33740. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.templates['groupfooter']), {
  33741. data: rowData,
  33742. index: $options.getRowIndex(index)
  33743. }, null, 8, ["data", "index"]))
  33744. ]))
  33745. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  33746. ], 64))
  33747. }), 128))
  33748. : ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("tr", _hoisted_5$1, [
  33749. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("td", { colspan: $options.columnsLength }, [
  33750. ($props.templates.empty && !$props.loading)
  33751. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.templates.empty), { key: 0 }))
  33752. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  33753. ($props.templates.loading && $props.loading)
  33754. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.templates.loading), { key: 1 }))
  33755. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  33756. ], 8, _hoisted_6$1)
  33757. ]))
  33758. ], 4))
  33759. }
  33760. script$3.render = render$3;
  33761. var script$2 = {
  33762. name: 'FooterCell',
  33763. props: {
  33764. column: {
  33765. type: null,
  33766. default: null
  33767. }
  33768. },
  33769. data() {
  33770. return {
  33771. styleObject: {}
  33772. }
  33773. },
  33774. mounted() {
  33775. if (this.columnProp('frozen')) {
  33776. this.updateStickyPosition();
  33777. }
  33778. },
  33779. updated() {
  33780. if (this.columnProp('frozen')) {
  33781. this.updateStickyPosition();
  33782. }
  33783. },
  33784. methods: {
  33785. columnProp(prop) {
  33786. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.getVNodeProp(this.column, prop);
  33787. },
  33788. updateStickyPosition() {
  33789. if (this.columnProp('frozen')) {
  33790. let align = this.columnProp('alignFrozen');
  33791. if (align === 'right') {
  33792. let right = 0;
  33793. let next = this.$el.nextElementSibling;
  33794. if (next) {
  33795. right = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(next) + parseFloat(next.style.left);
  33796. }
  33797. this.styleObject.right = right + 'px';
  33798. }
  33799. else {
  33800. let left = 0;
  33801. let prev = this.$el.previousElementSibling;
  33802. if (prev) {
  33803. left = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left);
  33804. }
  33805. this.styleObject.left = left + 'px';
  33806. }
  33807. }
  33808. }
  33809. },
  33810. computed: {
  33811. containerClass() {
  33812. return [this.columnProp('footerClass'), this.columnProp('class'), {
  33813. 'p-frozen-column': this.columnProp('frozen')
  33814. }];
  33815. },
  33816. containerStyle() {
  33817. let bodyStyle = this.columnProp('footerStyle');
  33818. let columnStyle = this.columnProp('style');
  33819. return this.columnProp('frozen') ? [columnStyle, bodyStyle, this.styleObject]: [columnStyle, bodyStyle];
  33820. }
  33821. }
  33822. };
  33823. const _hoisted_1$2 = ["colspan", "rowspan"];
  33824. function render$2(_ctx, _cache, $props, $setup, $data, $options) {
  33825. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("td", {
  33826. style: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeStyle)($options.containerStyle),
  33827. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)($options.containerClass),
  33828. role: "cell",
  33829. colspan: $options.columnProp('colspan'),
  33830. rowspan: $options.columnProp('rowspan')
  33831. }, [
  33832. ($props.column.children && $props.column.children.footer)
  33833. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.column.children.footer), {
  33834. key: 0,
  33835. column: $props.column
  33836. }, null, 8, ["column"]))
  33837. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  33838. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createTextVNode)(" " + (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.columnProp('footer')), 1)
  33839. ], 14, _hoisted_1$2))
  33840. }
  33841. script$2.render = render$2;
  33842. var script$1 = {
  33843. name: 'TableFooter',
  33844. props: {
  33845. columnGroup: {
  33846. type: null,
  33847. default: null
  33848. },
  33849. columns: {
  33850. type: null,
  33851. default: null
  33852. },
  33853. },
  33854. methods: {
  33855. columnProp(col, prop) {
  33856. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.getVNodeProp(col, prop);
  33857. },
  33858. getFooterRows() {
  33859. let rows = [];
  33860. let columnGroup = this.columnGroup;
  33861. if (columnGroup.children && columnGroup.children.default) {
  33862. for (let child of columnGroup.children.default()) {
  33863. if (child.type.name === 'Row') {
  33864. rows.push(child);
  33865. }
  33866. else if (child.children && child.children instanceof Array) {
  33867. rows = child.children;
  33868. }
  33869. }
  33870. return rows;
  33871. }
  33872. },
  33873. getFooterColumns(row){
  33874. let cols = [];
  33875. if (row.children && row.children.default) {
  33876. row.children.default().forEach(child => {
  33877. if (child.children && child.children instanceof Array)
  33878. cols = [...cols, ...child.children];
  33879. else if (child.type.name === 'Column')
  33880. cols.push(child);
  33881. });
  33882. return cols;
  33883. }
  33884. }
  33885. },
  33886. computed: {
  33887. hasFooter() {
  33888. let hasFooter = false;
  33889. if (this.columnGroup) {
  33890. hasFooter = true;
  33891. }
  33892. else if (this.columns) {
  33893. for (let col of this.columns) {
  33894. if (this.columnProp(col, 'footer') || (col.children && col.children.footer)) {
  33895. hasFooter = true;
  33896. break;
  33897. }
  33898. }
  33899. }
  33900. return hasFooter;
  33901. }
  33902. },
  33903. components: {
  33904. 'DTFooterCell': script$2
  33905. }
  33906. };
  33907. const _hoisted_1$1 = {
  33908. key: 0,
  33909. class: "p-datatable-tfoot",
  33910. role: "rowgroup"
  33911. };
  33912. const _hoisted_2$1 = {
  33913. key: 0,
  33914. role: "row"
  33915. };
  33916. function render$1(_ctx, _cache, $props, $setup, $data, $options) {
  33917. const _component_DTFooterCell = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTFooterCell");
  33918. return ($options.hasFooter)
  33919. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("tfoot", _hoisted_1$1, [
  33920. (!$props.columnGroup)
  33921. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("tr", _hoisted_2$1, [
  33922. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($props.columns, (col, i) => {
  33923. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
  33924. key: $options.columnProp(col,'columnKey')||$options.columnProp(col,'field')||i
  33925. }, [
  33926. (!$options.columnProp(col,'hidden'))
  33927. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTFooterCell, {
  33928. key: 0,
  33929. column: col
  33930. }, null, 8, ["column"]))
  33931. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  33932. ], 64))
  33933. }), 128))
  33934. ]))
  33935. : ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, { key: 1 }, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($options.getFooterRows(), (row, i) => {
  33936. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("tr", {
  33937. key: i,
  33938. role: "row"
  33939. }, [
  33940. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($options.getFooterColumns(row), (col, j) => {
  33941. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
  33942. key: $options.columnProp(col,'columnKey')||$options.columnProp(col,'field')||j
  33943. }, [
  33944. (!$options.columnProp(col,'hidden'))
  33945. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTFooterCell, {
  33946. key: 0,
  33947. column: col
  33948. }, null, 8, ["column"]))
  33949. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  33950. ], 64))
  33951. }), 128))
  33952. ]))
  33953. }), 128))
  33954. ]))
  33955. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  33956. }
  33957. script$1.render = render$1;
  33958. var script = {
  33959. name: 'DataTable',
  33960. emits: ['value-change', 'update:first', 'update:rows', 'page', 'update:sortField', 'update:sortOrder', 'update:multiSortMeta', 'sort', 'filter', 'row-click', 'row-dblclick',
  33961. 'update:selection', 'row-select', 'row-unselect', 'update:contextMenuSelection', 'row-contextmenu', 'row-unselect-all', 'row-select-all', 'select-all-change',
  33962. 'column-resize-end', 'column-reorder', 'row-reorder', 'update:expandedRows', 'row-collapse', 'row-expand',
  33963. 'update:expandedRowGroups', 'rowgroup-collapse', 'rowgroup-expand', 'update:filters', 'state-restore', 'state-save',
  33964. 'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'update:editingRows', 'row-edit-init', 'row-edit-save', 'row-edit-cancel'],
  33965. props: {
  33966. value: {
  33967. type: Array,
  33968. default: null
  33969. },
  33970. dataKey: {
  33971. type: String,
  33972. default: null
  33973. },
  33974. rows: {
  33975. type: Number,
  33976. default: 0
  33977. },
  33978. first: {
  33979. type: Number,
  33980. default: 0
  33981. },
  33982. totalRecords: {
  33983. type: Number,
  33984. default: 0
  33985. },
  33986. paginator: {
  33987. type: Boolean,
  33988. default: false
  33989. },
  33990. paginatorPosition: {
  33991. type: String,
  33992. default: 'bottom'
  33993. },
  33994. alwaysShowPaginator: {
  33995. type: Boolean,
  33996. default: true
  33997. },
  33998. paginatorTemplate: {
  33999. type: String,
  34000. default: 'FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown'
  34001. },
  34002. pageLinkSize: {
  34003. type: Number,
  34004. default: 5
  34005. },
  34006. rowsPerPageOptions: {
  34007. type: Array,
  34008. default: null
  34009. },
  34010. currentPageReportTemplate: {
  34011. type: String,
  34012. default: '({currentPage} of {totalPages})'
  34013. },
  34014. lazy: {
  34015. type: Boolean,
  34016. default: false
  34017. },
  34018. loading: {
  34019. type: Boolean,
  34020. default: false
  34021. },
  34022. loadingIcon: {
  34023. type: String,
  34024. default: 'pi pi-spinner'
  34025. },
  34026. sortField: {
  34027. type: [String, Function],
  34028. default: null
  34029. },
  34030. sortOrder: {
  34031. type: Number,
  34032. default: null
  34033. },
  34034. defaultSortOrder: {
  34035. type: Number,
  34036. default: 1
  34037. },
  34038. multiSortMeta: {
  34039. type: Array,
  34040. default: null
  34041. },
  34042. sortMode: {
  34043. type: String,
  34044. default: 'single'
  34045. },
  34046. removableSort: {
  34047. type: Boolean,
  34048. default: false
  34049. },
  34050. filters: {
  34051. type: Object,
  34052. default: null
  34053. },
  34054. filterDisplay: {
  34055. type: String,
  34056. default: null
  34057. },
  34058. globalFilterFields: {
  34059. type: Array,
  34060. default: null
  34061. },
  34062. filterLocale: {
  34063. type: String,
  34064. default: undefined
  34065. },
  34066. selection: {
  34067. type: [Array,Object],
  34068. default: null
  34069. },
  34070. selectionMode: {
  34071. type: String,
  34072. default: null
  34073. },
  34074. compareSelectionBy: {
  34075. type: String,
  34076. default: 'deepEquals'
  34077. },
  34078. metaKeySelection: {
  34079. type: Boolean,
  34080. default: true
  34081. },
  34082. contextMenu: {
  34083. type: Boolean,
  34084. default: false
  34085. },
  34086. contextMenuSelection: {
  34087. type: Object,
  34088. default: null
  34089. },
  34090. selectAll: {
  34091. type: Boolean,
  34092. default: null
  34093. },
  34094. rowHover: {
  34095. type: Boolean,
  34096. default: false
  34097. },
  34098. csvSeparator: {
  34099. type: String,
  34100. default: ','
  34101. },
  34102. exportFilename: {
  34103. type: String,
  34104. default: 'download'
  34105. },
  34106. exportFunction: {
  34107. type: Function,
  34108. default: null
  34109. },
  34110. autoLayout: {
  34111. type: Boolean,
  34112. default: false
  34113. },
  34114. resizableColumns: {
  34115. type: Boolean,
  34116. default: false
  34117. },
  34118. columnResizeMode: {
  34119. type: String,
  34120. default: 'fit'
  34121. },
  34122. reorderableColumns: {
  34123. type: Boolean,
  34124. default: false
  34125. },
  34126. expandedRows: {
  34127. type: Array,
  34128. default: null
  34129. },
  34130. expandedRowIcon: {
  34131. type: String,
  34132. default: 'pi-chevron-down'
  34133. },
  34134. collapsedRowIcon: {
  34135. type: String,
  34136. default: 'pi-chevron-right'
  34137. },
  34138. rowGroupMode: {
  34139. type: String,
  34140. default: null
  34141. },
  34142. groupRowsBy: {
  34143. type: [Array,String],
  34144. default: null
  34145. },
  34146. expandableRowGroups: {
  34147. type: Boolean,
  34148. default: false
  34149. },
  34150. expandedRowGroups: {
  34151. type: Array,
  34152. default: null
  34153. },
  34154. stateStorage: {
  34155. type: String,
  34156. default: 'session'
  34157. },
  34158. stateKey: {
  34159. type: String,
  34160. default: null
  34161. },
  34162. editMode: {
  34163. type: String,
  34164. default: null
  34165. },
  34166. editingRows: {
  34167. type: Array,
  34168. default: null
  34169. },
  34170. rowClass: {
  34171. type: null,
  34172. default: null
  34173. },
  34174. rowStyle: {
  34175. type: null,
  34176. default: null
  34177. },
  34178. scrollable: {
  34179. type: Boolean,
  34180. default: false
  34181. },
  34182. scrollDirection: {
  34183. type: String,
  34184. default: "vertical"
  34185. },
  34186. virtualScrollerOptions: {
  34187. type: Object,
  34188. default: null
  34189. },
  34190. scrollHeight: {
  34191. type: String,
  34192. default: null
  34193. },
  34194. frozenValue: {
  34195. type: Array,
  34196. default: null
  34197. },
  34198. responsiveLayout: {
  34199. type: String,
  34200. default: 'stack'
  34201. },
  34202. breakpoint: {
  34203. type: String,
  34204. default: '960px'
  34205. },
  34206. showGridlines: {
  34207. type: Boolean,
  34208. default: false
  34209. },
  34210. stripedRows: {
  34211. type: Boolean,
  34212. default: false
  34213. },
  34214. tableStyle: {
  34215. type: null,
  34216. default: null
  34217. },
  34218. tableClass: {
  34219. type: String,
  34220. default: null
  34221. }
  34222. },
  34223. data() {
  34224. return {
  34225. d_first: this.first,
  34226. d_rows: this.rows,
  34227. d_sortField: this.sortField,
  34228. d_sortOrder: this.sortOrder,
  34229. d_multiSortMeta: this.multiSortMeta ? [...this.multiSortMeta] : [],
  34230. d_groupRowsSortMeta: null,
  34231. d_selectionKeys: null,
  34232. d_expandedRowKeys: null,
  34233. d_columnOrder: null,
  34234. d_editingRowKeys: null,
  34235. d_editingMeta: {},
  34236. d_filters: this.cloneFilters(this.filters)
  34237. };
  34238. },
  34239. rowTouched: false,
  34240. anchorRowIndex: null,
  34241. rangeRowIndex: null,
  34242. documentColumnResizeListener: null,
  34243. documentColumnResizeEndListener: null,
  34244. lastResizeHelperX: null,
  34245. resizeColumnElement: null,
  34246. columnResizing: false,
  34247. colReorderIconWidth: null,
  34248. colReorderIconHeight: null,
  34249. draggedColumn: null,
  34250. draggedRowIndex: null,
  34251. droppedRowIndex: null,
  34252. rowDragging: null,
  34253. columnWidthsState: null,
  34254. tableWidthState: null,
  34255. columnWidthsRestored: false,
  34256. watch: {
  34257. first(newValue) {
  34258. this.d_first = newValue;
  34259. },
  34260. rows(newValue) {
  34261. this.d_rows = newValue;
  34262. },
  34263. sortField(newValue) {
  34264. this.d_sortField = newValue;
  34265. },
  34266. sortOrder(newValue) {
  34267. this.d_sortOrder = newValue;
  34268. },
  34269. multiSortMeta(newValue) {
  34270. this.d_multiSortMeta = newValue;
  34271. },
  34272. selection: {
  34273. immediate: true,
  34274. handler(newValue) {
  34275. if (this.dataKey) {
  34276. this.updateSelectionKeys(newValue);
  34277. }
  34278. }
  34279. },
  34280. expandedRows(newValue) {
  34281. if (this.dataKey) {
  34282. this.updateExpandedRowKeys(newValue);
  34283. }
  34284. },
  34285. editingRows(newValue) {
  34286. if (this.dataKey) {
  34287. this.updateEditingRowKeys(newValue);
  34288. }
  34289. },
  34290. filters: {
  34291. deep: true,
  34292. handler: function(newValue) {
  34293. this.d_filters = this.cloneFilters(newValue);
  34294. }
  34295. }
  34296. },
  34297. beforeMount() {
  34298. if (this.isStateful()) {
  34299. this.restoreState();
  34300. }
  34301. },
  34302. mounted() {
  34303. this.$el.setAttribute(this.attributeSelector, '');
  34304. if (this.responsiveLayout === 'stack' && !this.scrollable) {
  34305. this.createResponsiveStyle();
  34306. }
  34307. if (this.isStateful() && this.resizableColumns) {
  34308. this.restoreColumnWidths();
  34309. }
  34310. if (this.editMode === 'row' && this.dataKey && !this.d_editingRowKeys) {
  34311. this.updateEditingRowKeys(this.editingRows);
  34312. }
  34313. },
  34314. beforeUnmount() {
  34315. this.unbindColumnResizeEvents();
  34316. this.destroyStyleElement();
  34317. this.destroyResponsiveStyle();
  34318. },
  34319. updated() {
  34320. if (this.isStateful()) {
  34321. this.saveState();
  34322. }
  34323. if (this.editMode === 'row' && this.dataKey && !this.d_editingRowKeys) {
  34324. this.updateEditingRowKeys(this.editingRows);
  34325. }
  34326. },
  34327. methods: {
  34328. columnProp(col, prop) {
  34329. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.getVNodeProp(col, prop);
  34330. },
  34331. onPage(event) {
  34332. this.clearEditingMetaData();
  34333. this.d_first = event.first;
  34334. this.d_rows = event.rows;
  34335. let pageEvent = this.createLazyLoadEvent(event);
  34336. pageEvent.pageCount = event.pageCount;
  34337. pageEvent.page = event.page;
  34338. this.$emit('update:first', this.d_first);
  34339. this.$emit('update:rows', this.d_rows);
  34340. this.$emit('page', pageEvent);
  34341. this.$emit('value-change', this.processedData);
  34342. },
  34343. onColumnHeaderClick(e) {
  34344. const event = e.originalEvent;
  34345. const column = e.column;
  34346. if (this.columnProp(column, 'sortable')) {
  34347. const targetNode = event.target;
  34348. const columnField = this.columnProp(column, 'sortField') || this.columnProp(column, 'field');
  34349. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(targetNode, 'p-sortable-column') || primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(targetNode, 'p-column-title') || primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(targetNode, 'p-column-header-content')
  34350. || primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(targetNode, 'p-sortable-column-icon') || primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(targetNode.parentElement, 'p-sortable-column-icon')) {
  34351. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.clearSelection();
  34352. if (this.sortMode === 'single') {
  34353. if (this.d_sortField === columnField) {
  34354. if (this.removableSort && (this.d_sortOrder * -1 === this.defaultSortOrder)) {
  34355. this.d_sortOrder = null;
  34356. this.d_sortField = null;
  34357. }
  34358. else {
  34359. this.d_sortOrder = this.d_sortOrder * -1;
  34360. }
  34361. }
  34362. else {
  34363. this.d_sortOrder = this.defaultSortOrder;
  34364. this.d_sortField = columnField;
  34365. }
  34366. this.$emit('update:sortField', this.d_sortField);
  34367. this.$emit('update:sortOrder', this.d_sortOrder);
  34368. this.resetPage();
  34369. }
  34370. else if (this.sortMode === 'multiple') {
  34371. let metaKey = event.metaKey || event.ctrlKey;
  34372. if (!metaKey) {
  34373. this.d_multiSortMeta = this.d_multiSortMeta.filter(meta => meta.field === columnField);
  34374. }
  34375. this.addMultiSortField(columnField);
  34376. this.$emit('update:multiSortMeta', this.d_multiSortMeta);
  34377. }
  34378. this.$emit('sort', this.createLazyLoadEvent(event));
  34379. this.$emit('value-change', this.processedData);
  34380. }
  34381. }
  34382. },
  34383. sortSingle(value) {
  34384. this.clearEditingMetaData();
  34385. if (this.groupRowsBy && this.groupRowsBy === this.sortField) {
  34386. this.d_multiSortMeta = [
  34387. {field: this.sortField, order: this.sortOrder || this.defaultSortOrder},
  34388. {field: this.d_sortField, order: this.d_sortOrder}
  34389. ];
  34390. return this.sortMultiple(value);
  34391. }
  34392. let data = [...value];
  34393. data.sort((data1, data2) => {
  34394. let value1 = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(data1, this.d_sortField);
  34395. let value2 = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(data2, this.d_sortField);
  34396. let result = null;
  34397. if (value1 == null && value2 != null)
  34398. result = -1;
  34399. else if (value1 != null && value2 == null)
  34400. result = 1;
  34401. else if (value1 == null && value2 == null)
  34402. result = 0;
  34403. else if (typeof value1 === 'string' && typeof value2 === 'string')
  34404. result = value1.localeCompare(value2, undefined, { numeric: true });
  34405. else
  34406. result = (value1 < value2) ? -1 : (value1 > value2) ? 1 : 0;
  34407. return (this.d_sortOrder * result);
  34408. });
  34409. return data;
  34410. },
  34411. sortMultiple(value) {
  34412. this.clearEditingMetaData();
  34413. if (this.groupRowsBy && (this.d_groupRowsSortMeta || (this.d_multiSortMeta.length && this.groupRowsBy === this.d_multiSortMeta[0].field))) {
  34414. const firstSortMeta = this.d_multiSortMeta[0];
  34415. !this.d_groupRowsSortMeta && (this.d_groupRowsSortMeta = firstSortMeta);
  34416. if (firstSortMeta.field !== this.d_groupRowsSortMeta.field) {
  34417. this.d_multiSortMeta = [this.d_groupRowsSortMeta, ...this.d_multiSortMeta];
  34418. }
  34419. }
  34420. let data = [...value];
  34421. data.sort((data1, data2) => {
  34422. return this.multisortField(data1, data2, 0);
  34423. });
  34424. return data;
  34425. },
  34426. multisortField(data1, data2, index) {
  34427. const value1 = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(data1, this.d_multiSortMeta[index].field);
  34428. const value2 = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(data2, this.d_multiSortMeta[index].field);
  34429. let result = null;
  34430. if (typeof value1 === 'string' || value1 instanceof String) {
  34431. if (value1.localeCompare && (value1 !== value2)) {
  34432. return (this.d_multiSortMeta[index].order * value1.localeCompare(value2, undefined, { numeric: true }));
  34433. }
  34434. }
  34435. else {
  34436. result = (value1 < value2) ? -1 : 1;
  34437. }
  34438. if (value1 === value2) {
  34439. return (this.d_multiSortMeta.length - 1) > (index) ? (this.multisortField(data1, data2, index + 1)) : 0;
  34440. }
  34441. return (this.d_multiSortMeta[index].order * result);
  34442. },
  34443. addMultiSortField(field) {
  34444. let index = this.d_multiSortMeta.findIndex(meta => meta.field === field);
  34445. if (index >= 0) {
  34446. if (this.removableSort && (this.d_multiSortMeta[index].order * -1 === this.defaultSortOrder))
  34447. this.d_multiSortMeta.splice(index, 1);
  34448. else
  34449. this.d_multiSortMeta[index] = {field: field, order: this.d_multiSortMeta[index].order * -1};
  34450. }
  34451. else {
  34452. this.d_multiSortMeta.push({field: field, order: this.defaultSortOrder});
  34453. }
  34454. this.d_multiSortMeta = [...this.d_multiSortMeta];
  34455. },
  34456. filter(data) {
  34457. if (!data) {
  34458. return;
  34459. }
  34460. this.clearEditingMetaData();
  34461. let globalFilterFieldsArray;
  34462. if (this.filters['global']) {
  34463. globalFilterFieldsArray = this.globalFilterFields|| this.columns.map(col => this.columnProp(col, 'filterField') || this.columnProp(col, 'field'));
  34464. }
  34465. let filteredValue = [];
  34466. for (let i = 0; i < data.length; i++) {
  34467. let localMatch = true;
  34468. let globalMatch = false;
  34469. let localFiltered = false;
  34470. for (let prop in this.filters) {
  34471. if (Object.prototype.hasOwnProperty.call(this.filters, prop) && prop !== 'global') {
  34472. localFiltered = true;
  34473. let filterField = prop;
  34474. let filterMeta = this.filters[filterField];
  34475. if (filterMeta.operator) {
  34476. for (let filterConstraint of filterMeta.constraints) {
  34477. localMatch = this.executeLocalFilter(filterField, data[i], filterConstraint);
  34478. if ((filterMeta.operator === primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterOperator.OR && localMatch) || (filterMeta.operator === primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterOperator.AND && !localMatch)) {
  34479. break;
  34480. }
  34481. }
  34482. }
  34483. else {
  34484. localMatch = this.executeLocalFilter(filterField, data[i], filterMeta);
  34485. }
  34486. if (!localMatch) {
  34487. break;
  34488. }
  34489. }
  34490. }
  34491. if (this.filters['global'] && !globalMatch && globalFilterFieldsArray) {
  34492. for(let j = 0; j < globalFilterFieldsArray.length; j++) {
  34493. let globalFilterField = globalFilterFieldsArray[j];
  34494. globalMatch = primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterService.filters[this.filters['global'].matchMode || primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.CONTAINS](primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(data[i], globalFilterField), this.filters['global'].value, this.filterLocale);
  34495. if (globalMatch) {
  34496. break;
  34497. }
  34498. }
  34499. }
  34500. let matches;
  34501. if (this.filters['global']) {
  34502. matches = localFiltered ? (localFiltered && localMatch && globalMatch) : globalMatch;
  34503. }
  34504. else {
  34505. matches = localFiltered && localMatch;
  34506. }
  34507. if (matches) {
  34508. filteredValue.push(data[i]);
  34509. }
  34510. }
  34511. if (filteredValue.length === this.value.length) {
  34512. filteredValue = data;
  34513. }
  34514. let filterEvent = this.createLazyLoadEvent();
  34515. filterEvent.filteredValue = filteredValue;
  34516. this.$emit('filter', filterEvent);
  34517. this.$emit('value-change', filteredValue);
  34518. return filteredValue;
  34519. },
  34520. executeLocalFilter(field, rowData, filterMeta) {
  34521. let filterValue = filterMeta.value;
  34522. let filterMatchMode = filterMeta.matchMode || primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.STARTS_WITH;
  34523. let dataFieldValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, field);
  34524. let filterConstraint = primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterService.filters[filterMatchMode];
  34525. return filterConstraint(dataFieldValue, filterValue, this.filterLocale);
  34526. },
  34527. onRowClick(e) {
  34528. const event = e.originalEvent;
  34529. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.isClickable(event.target)) {
  34530. return;
  34531. }
  34532. this.$emit('row-click', e);
  34533. if (this.selectionMode) {
  34534. const rowData = e.data;
  34535. const rowIndex = this.d_first + e.index;
  34536. if (this.isMultipleSelectionMode() && event.shiftKey && this.anchorRowIndex != null) {
  34537. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.clearSelection();
  34538. this.rangeRowIndex = rowIndex;
  34539. this.selectRange(event);
  34540. }
  34541. else {
  34542. const selected = this.isSelected(rowData);
  34543. const metaSelection = this.rowTouched ? false : this.metaKeySelection;
  34544. this.anchorRowIndex = rowIndex;
  34545. this.rangeRowIndex = rowIndex;
  34546. if (metaSelection) {
  34547. let metaKey = event.metaKey || event.ctrlKey;
  34548. if (selected && metaKey) {
  34549. if(this.isSingleSelectionMode()) {
  34550. this.$emit('update:selection', null);
  34551. }
  34552. else {
  34553. const selectionIndex = this.findIndexInSelection(rowData);
  34554. const _selection = this.selection.filter((val,i) => i != selectionIndex);
  34555. this.$emit('update:selection', _selection);
  34556. }
  34557. this.$emit('row-unselect', {originalEvent: event, data: rowData, index: rowIndex, type: 'row'});
  34558. }
  34559. else {
  34560. if(this.isSingleSelectionMode()) {
  34561. this.$emit('update:selection', rowData);
  34562. }
  34563. else if (this.isMultipleSelectionMode()) {
  34564. let _selection = metaKey ? (this.selection || []) : [];
  34565. _selection = [..._selection, rowData];
  34566. this.$emit('update:selection', _selection);
  34567. }
  34568. this.$emit('row-select', {originalEvent: event, data: rowData, index: rowIndex, type: 'row'});
  34569. }
  34570. }
  34571. else {
  34572. if (this.selectionMode === 'single') {
  34573. if (selected) {
  34574. this.$emit('update:selection', null);
  34575. this.$emit('row-unselect', {originalEvent: event, data: rowData, index: rowIndex, type: 'row'});
  34576. }
  34577. else {
  34578. this.$emit('update:selection', rowData);
  34579. this.$emit('row-select', {originalEvent: event, data: rowData, index: rowIndex, type: 'row'});
  34580. }
  34581. }
  34582. else if (this.selectionMode === 'multiple') {
  34583. if (selected) {
  34584. const selectionIndex = this.findIndexInSelection(rowData);
  34585. const _selection = this.selection.filter((val, i) => i != selectionIndex);
  34586. this.$emit('update:selection', _selection);
  34587. this.$emit('row-unselect', {originalEvent: event, data: rowData, index: rowIndex, type: 'row'});
  34588. }
  34589. else {
  34590. const _selection = this.selection ? [...this.selection, rowData] : [rowData];
  34591. this.$emit('update:selection', _selection);
  34592. this.$emit('row-select', {originalEvent: event, data: rowData, index: rowIndex, type: 'row'});
  34593. }
  34594. }
  34595. }
  34596. }
  34597. }
  34598. this.rowTouched = false;
  34599. },
  34600. onRowDblClick(e) {
  34601. const event = e.originalEvent;
  34602. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.isClickable(event.target)) {
  34603. return;
  34604. }
  34605. this.$emit('row-dblclick', e);
  34606. },
  34607. onRowRightClick(event) {
  34608. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.clearSelection();
  34609. event.originalEvent.target.focus();
  34610. this.$emit('update:contextMenuSelection', event.data);
  34611. this.$emit('row-contextmenu', event);
  34612. },
  34613. onRowTouchEnd() {
  34614. this.rowTouched = true;
  34615. },
  34616. onRowKeyDown(e) {
  34617. const event = e.originalEvent;
  34618. const rowData = e.data;
  34619. const rowIndex = e.index;
  34620. if (this.selectionMode) {
  34621. const row = event.target;
  34622. switch (event.which) {
  34623. //down arrow
  34624. case 40:
  34625. var nextRow = this.findNextSelectableRow(row);
  34626. if (nextRow) {
  34627. nextRow.focus();
  34628. }
  34629. event.preventDefault();
  34630. break;
  34631. //up arrow
  34632. case 38:
  34633. var prevRow = this.findPrevSelectableRow(row);
  34634. if (prevRow) {
  34635. prevRow.focus();
  34636. }
  34637. event.preventDefault();
  34638. break;
  34639. //enter
  34640. case 13:
  34641. this.onRowClick({originalEvent: event, data: rowData, index: rowIndex});
  34642. break;
  34643. }
  34644. }
  34645. },
  34646. findNextSelectableRow(row) {
  34647. let nextRow = row.nextElementSibling;
  34648. if (nextRow) {
  34649. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(nextRow, 'p-selectable-row'))
  34650. return nextRow;
  34651. else
  34652. return this.findNextSelectableRow(nextRow);
  34653. }
  34654. else {
  34655. return null;
  34656. }
  34657. },
  34658. findPrevSelectableRow(row) {
  34659. let prevRow = row.previousElementSibling;
  34660. if (prevRow) {
  34661. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(prevRow, 'p-selectable-row'))
  34662. return prevRow;
  34663. else
  34664. return this.findPrevSelectableRow(prevRow);
  34665. }
  34666. else {
  34667. return null;
  34668. }
  34669. },
  34670. toggleRowWithRadio(event) {
  34671. const rowData = event.data;
  34672. if (this.isSelected(rowData)) {
  34673. this.$emit('update:selection', null);
  34674. this.$emit('row-unselect', { originalEvent: event.originalEvent, data: rowData, index: event.index, type: 'radiobutton' });
  34675. }
  34676. else {
  34677. this.$emit('update:selection', rowData);
  34678. this.$emit('row-select', { originalEvent: event.originalEvent, data: rowData, index: event.index, type: 'radiobutton' });
  34679. }
  34680. },
  34681. toggleRowWithCheckbox(event) {
  34682. const rowData = event.data;
  34683. if (this.isSelected(rowData)) {
  34684. const selectionIndex = this.findIndexInSelection(rowData);
  34685. const _selection = this.selection.filter((val, i) => i != selectionIndex);
  34686. this.$emit('update:selection', _selection);
  34687. this.$emit('row-unselect', { originalEvent: event.originalEvent, data: rowData, index: event.index, type: 'checkbox' });
  34688. }
  34689. else {
  34690. let _selection = this.selection ? [...this.selection] : [];
  34691. _selection = [..._selection, rowData];
  34692. this.$emit('update:selection', _selection);
  34693. this.$emit('row-select', { originalEvent: event.originalEvent, data: rowData, index: event.index, type: 'checkbox' });
  34694. }
  34695. },
  34696. toggleRowsWithCheckbox(event) {
  34697. if (this.selectAll !== null) {
  34698. this.$emit('select-all-change', event);
  34699. }
  34700. else {
  34701. const { originalEvent, checked } = event;
  34702. let _selection = [];
  34703. if (checked) {
  34704. _selection = this.frozenValue ? [...this.frozenValue, ...this.processedData] : this.processedData;
  34705. this.$emit('row-select-all', {originalEvent, data: _selection});
  34706. }
  34707. else {
  34708. this.$emit('row-unselect-all', {originalEvent});
  34709. }
  34710. this.$emit('update:selection', _selection);
  34711. }
  34712. },
  34713. isSingleSelectionMode() {
  34714. return this.selectionMode === 'single';
  34715. },
  34716. isMultipleSelectionMode() {
  34717. return this.selectionMode === 'multiple';
  34718. },
  34719. isSelected(rowData) {
  34720. if (rowData && this.selection) {
  34721. if (this.dataKey) {
  34722. return this.d_selectionKeys ? this.d_selectionKeys[primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
  34723. }
  34724. else {
  34725. if (this.selection instanceof Array)
  34726. return this.findIndexInSelection(rowData) > -1;
  34727. else
  34728. return this.equals(rowData, this.selection);
  34729. }
  34730. }
  34731. return false;
  34732. },
  34733. findIndexInSelection(rowData) {
  34734. return this.findIndex(rowData, this.selection);
  34735. },
  34736. findIndex(rowData, collection) {
  34737. let index = -1;
  34738. if (collection && collection.length) {
  34739. for (let i = 0; i < collection.length; i++) {
  34740. if (this.equals(rowData, collection[i])) {
  34741. index = i;
  34742. break;
  34743. }
  34744. }
  34745. }
  34746. return index;
  34747. },
  34748. updateSelectionKeys(selection) {
  34749. this.d_selectionKeys = {};
  34750. if (Array.isArray(selection)) {
  34751. for (let data of selection) {
  34752. this.d_selectionKeys[String(primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
  34753. }
  34754. }
  34755. else {
  34756. this.d_selectionKeys[String(primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(selection, this.dataKey))] = 1;
  34757. }
  34758. },
  34759. updateExpandedRowKeys(expandedRows) {
  34760. if (expandedRows && expandedRows.length) {
  34761. this.d_expandedRowKeys = {};
  34762. for (let data of expandedRows) {
  34763. this.d_expandedRowKeys[String(primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
  34764. }
  34765. }
  34766. else {
  34767. this.d_expandedRowKeys = null;
  34768. }
  34769. },
  34770. updateEditingRowKeys(editingRows) {
  34771. if (editingRows && editingRows.length) {
  34772. this.d_editingRowKeys = {};
  34773. for (let data of editingRows) {
  34774. this.d_editingRowKeys[String(primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
  34775. }
  34776. }
  34777. else {
  34778. this.d_editingRowKeys = null;
  34779. }
  34780. },
  34781. equals(data1, data2) {
  34782. return this.compareSelectionBy === 'equals' ? (data1 === data2) : primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.equals(data1, data2, this.dataKey);
  34783. },
  34784. selectRange(event) {
  34785. let rangeStart, rangeEnd;
  34786. if (this.rangeRowIndex > this.anchorRowIndex) {
  34787. rangeStart = this.anchorRowIndex;
  34788. rangeEnd = this.rangeRowIndex;
  34789. }
  34790. else if(this.rangeRowIndex < this.anchorRowIndex) {
  34791. rangeStart = this.rangeRowIndex;
  34792. rangeEnd = this.anchorRowIndex;
  34793. }
  34794. else {
  34795. rangeStart = this.rangeRowIndex;
  34796. rangeEnd = this.rangeRowIndex;
  34797. }
  34798. if (this.lazy && this.paginator) {
  34799. rangeStart -= this.first;
  34800. rangeEnd -= this.first;
  34801. }
  34802. const value = this.processedData;
  34803. let _selection = [];
  34804. for(let i = rangeStart; i <= rangeEnd; i++) {
  34805. let rangeRowData = value[i];
  34806. _selection.push(rangeRowData);
  34807. this.$emit('row-select', {originalEvent: event, data: rangeRowData, type: 'row'});
  34808. }
  34809. this.$emit('update:selection', _selection);
  34810. },
  34811. exportCSV(options, data) {
  34812. let csv = '\ufeff';
  34813. if (!data) {
  34814. data = this.processedData;
  34815. if (options && options.selectionOnly)
  34816. data = this.selection || [];
  34817. else if (this.frozenValue)
  34818. data = data ? [...this.frozenValue, ...data] : this.frozenValue;
  34819. }
  34820. //headers
  34821. let headerInitiated = false;
  34822. for (let i = 0; i < this.columns.length; i++) {
  34823. let column = this.columns[i];
  34824. if (this.columnProp(column, 'exportable') !== false && this.columnProp(column, 'field')) {
  34825. if (headerInitiated)
  34826. csv += this.csvSeparator;
  34827. else
  34828. headerInitiated = true;
  34829. csv += '"' + (this.columnProp(column, 'exportHeader') || this.columnProp(column, 'header') || this.columnProp(column, 'field')) + '"';
  34830. }
  34831. }
  34832. //body
  34833. if (data) {
  34834. data.forEach(record => {
  34835. csv += '\n';
  34836. let rowInitiated = false;
  34837. for (let i = 0; i < this.columns.length; i++) {
  34838. let column = this.columns[i];
  34839. if (this.columnProp(column, 'exportable') !== false && this.columnProp(column, 'field')) {
  34840. if (rowInitiated)
  34841. csv += this.csvSeparator;
  34842. else
  34843. rowInitiated = true;
  34844. let cellData = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(record, this.columnProp(column, 'field'));
  34845. if (cellData != null) {
  34846. if (this.exportFunction) {
  34847. cellData = this.exportFunction({
  34848. data: cellData,
  34849. field: this.columnProp(column, 'field')
  34850. });
  34851. }
  34852. else
  34853. cellData = String(cellData).replace(/"/g, '""');
  34854. }
  34855. else
  34856. cellData = '';
  34857. csv += '"' + cellData + '"';
  34858. }
  34859. }
  34860. });
  34861. }
  34862. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.exportCSV(csv, this.exportFilename);
  34863. },
  34864. resetPage() {
  34865. this.d_first = 0;
  34866. this.$emit('update:first', this.d_first);
  34867. },
  34868. onColumnResizeStart(event) {
  34869. let containerLeft = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOffset(this.$el).left;
  34870. this.resizeColumnElement = event.target.parentElement;
  34871. this.columnResizing = true;
  34872. this.lastResizeHelperX = (event.pageX - containerLeft + this.$el.scrollLeft);
  34873. this.bindColumnResizeEvents();
  34874. },
  34875. onColumnResize(event) {
  34876. let containerLeft = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOffset(this.$el).left;
  34877. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(this.$el, 'p-unselectable-text');
  34878. this.$refs.resizeHelper.style.height = this.$el.offsetHeight + 'px';
  34879. this.$refs.resizeHelper.style.top = 0 + 'px';
  34880. this.$refs.resizeHelper.style.left = (event.pageX - containerLeft + this.$el.scrollLeft) + 'px';
  34881. this.$refs.resizeHelper.style.display = 'block';
  34882. },
  34883. onColumnResizeEnd() {
  34884. let delta = this.$refs.resizeHelper.offsetLeft - this.lastResizeHelperX;
  34885. let columnWidth = this.resizeColumnElement.offsetWidth;
  34886. let newColumnWidth = columnWidth + delta;
  34887. let minWidth = this.resizeColumnElement.style.minWidth||15;
  34888. if (columnWidth + delta > parseInt(minWidth, 10)) {
  34889. if (this.columnResizeMode === 'fit') {
  34890. let nextColumn = this.resizeColumnElement.nextElementSibling;
  34891. let nextColumnWidth = nextColumn.offsetWidth - delta;
  34892. if (newColumnWidth > 15 && nextColumnWidth > 15) {
  34893. this.resizeTableCells(newColumnWidth, nextColumnWidth);
  34894. }
  34895. }
  34896. else if (this.columnResizeMode === 'expand') {
  34897. const tableWidth = this.$refs.table.offsetWidth + delta + 'px';
  34898. this.$refs.table.style.width = tableWidth;
  34899. this.$refs.table.style.minWidth = tableWidth;
  34900. this.resizeTableCells(newColumnWidth);
  34901. }
  34902. this.$emit('column-resize-end', {
  34903. element: this.resizeColumnElement,
  34904. delta: delta
  34905. });
  34906. }
  34907. this.$refs.resizeHelper.style.display = 'none';
  34908. this.resizeColumn = null;
  34909. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(this.$el, 'p-unselectable-text');
  34910. this.unbindColumnResizeEvents();
  34911. if (this.isStateful()) {
  34912. this.saveState();
  34913. }
  34914. },
  34915. resizeTableCells(newColumnWidth, nextColumnWidth) {
  34916. let colIndex = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.index(this.resizeColumnElement);
  34917. let widths = [];
  34918. let headers = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.find(this.$refs.table, '.p-datatable-thead > tr > th');
  34919. headers.forEach(header => widths.push(primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(header)));
  34920. this.destroyStyleElement();
  34921. this.createStyleElement();
  34922. let innerHTML = '';
  34923. widths.forEach((width, index) => {
  34924. let colWidth = index === colIndex ? newColumnWidth : (nextColumnWidth && index === colIndex + 1) ? nextColumnWidth : width;
  34925. let style = this.scrollable ? `flex: 1 1 ${colWidth}px !important` : `width: ${colWidth}px !important`;
  34926. innerHTML += `
  34927. .p-datatable[${this.attributeSelector}] .p-datatable-thead > tr > th:nth-child(${index + 1}),
  34928. .p-datatable[${this.attributeSelector}] .p-datatable-tbody > tr > td:nth-child(${index + 1}),
  34929. .p-datatable[${this.attributeSelector}] .p-datatable-tfoot > tr > td:nth-child(${index + 1}) {
  34930. ${style}
  34931. }
  34932. `;
  34933. });
  34934. this.styleElement.innerHTML = innerHTML;
  34935. },
  34936. bindColumnResizeEvents() {
  34937. if (!this.documentColumnResizeListener) {
  34938. this.documentColumnResizeListener = document.addEventListener('mousemove', () => {
  34939. if(this.columnResizing) {
  34940. this.onColumnResize(event);
  34941. }
  34942. });
  34943. }
  34944. if (!this.documentColumnResizeEndListener) {
  34945. this.documentColumnResizeEndListener = document.addEventListener('mouseup', () => {
  34946. if(this.columnResizing) {
  34947. this.columnResizing = false;
  34948. this.onColumnResizeEnd();
  34949. }
  34950. });
  34951. }
  34952. },
  34953. unbindColumnResizeEvents() {
  34954. if (this.documentColumnResizeListener) {
  34955. document.removeEventListener('document', this.documentColumnResizeListener);
  34956. this.documentColumnResizeListener = null;
  34957. }
  34958. if (this.documentColumnResizeEndListener) {
  34959. document.removeEventListener('document', this.documentColumnResizeEndListener);
  34960. this.documentColumnResizeEndListener = null;
  34961. }
  34962. },
  34963. onColumnHeaderMouseDown(e) {
  34964. const event = e.originalEvent;
  34965. const column = e.column;
  34966. if (this.reorderableColumns && this.columnProp(column, 'reorderableColumn') !== false) {
  34967. if (event.target.nodeName === 'INPUT' || event.target.nodeName === 'TEXTAREA' || primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(event.target, 'p-column-resizer'))
  34968. event.currentTarget.draggable = false;
  34969. else
  34970. event.currentTarget.draggable = true;
  34971. }
  34972. },
  34973. onColumnHeaderDragStart(event) {
  34974. if (this.columnResizing) {
  34975. event.preventDefault();
  34976. return;
  34977. }
  34978. this.colReorderIconWidth = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getHiddenElementOuterWidth(this.$refs.reorderIndicatorUp);
  34979. this.colReorderIconHeight = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getHiddenElementOuterHeight(this.$refs.reorderIndicatorUp);
  34980. this.draggedColumn = this.findParentHeader(event.target);
  34981. event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible
  34982. },
  34983. onColumnHeaderDragOver(event) {
  34984. let dropHeader = this.findParentHeader(event.target);
  34985. if(this.reorderableColumns && this.draggedColumn && dropHeader) {
  34986. event.preventDefault();
  34987. let containerOffset = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOffset(this.$el);
  34988. let dropHeaderOffset = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOffset(dropHeader);
  34989. if (this.draggedColumn !== dropHeader) {
  34990. let targetLeft = dropHeaderOffset.left - containerOffset.left;
  34991. let columnCenter = dropHeaderOffset.left + dropHeader.offsetWidth / 2;
  34992. this.$refs.reorderIndicatorUp.style.top = dropHeaderOffset.top - containerOffset.top - (this.colReorderIconHeight - 1) + 'px';
  34993. this.$refs.reorderIndicatorDown.style.top = dropHeaderOffset.top - containerOffset.top + dropHeader.offsetHeight + 'px';
  34994. if(event.pageX > columnCenter) {
  34995. this.$refs.reorderIndicatorUp.style.left = (targetLeft + dropHeader.offsetWidth - Math.ceil(this.colReorderIconWidth / 2)) + 'px';
  34996. this.$refs.reorderIndicatorDown.style.left = (targetLeft + dropHeader.offsetWidth - Math.ceil(this.colReorderIconWidth / 2))+ 'px';
  34997. this.dropPosition = 1;
  34998. }
  34999. else {
  35000. this.$refs.reorderIndicatorUp.style.left = (targetLeft - Math.ceil(this.colReorderIconWidth / 2)) + 'px';
  35001. this.$refs.reorderIndicatorDown.style.left = (targetLeft - Math.ceil(this.colReorderIconWidth / 2))+ 'px';
  35002. this.dropPosition = -1;
  35003. }
  35004. this.$refs.reorderIndicatorUp.style.display = 'block';
  35005. this.$refs.reorderIndicatorDown.style.display = 'block';
  35006. }
  35007. }
  35008. },
  35009. onColumnHeaderDragLeave(event) {
  35010. if(this.reorderableColumns && this.draggedColumn) {
  35011. event.preventDefault();
  35012. this.$refs.reorderIndicatorUp.style.display = 'none';
  35013. this.$refs.reorderIndicatorDown.style.display = 'none';
  35014. }
  35015. },
  35016. onColumnHeaderDrop(event) {
  35017. event.preventDefault();
  35018. if (this.draggedColumn) {
  35019. let dragIndex = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.index(this.draggedColumn);
  35020. let dropIndex = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.index(this.findParentHeader(event.target));
  35021. let allowDrop = (dragIndex !== dropIndex);
  35022. if (allowDrop && ((dropIndex - dragIndex === 1 && this.dropPosition === -1) || (dragIndex - dropIndex === 1 && this.dropPosition === 1))) {
  35023. allowDrop = false;
  35024. }
  35025. if (allowDrop) {
  35026. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.reorderArray(this.columns, dragIndex, dropIndex);
  35027. this.updateReorderableColumns();
  35028. this.$emit('column-reorder', {
  35029. originalEvent: event,
  35030. dragIndex: dragIndex,
  35031. dropIndex: dropIndex
  35032. });
  35033. }
  35034. this.$refs.reorderIndicatorUp.style.display = 'none';
  35035. this.$refs.reorderIndicatorDown.style.display = 'none';
  35036. this.draggedColumn.draggable = false;
  35037. this.draggedColumn = null;
  35038. this.dropPosition = null;
  35039. }
  35040. },
  35041. findParentHeader(element) {
  35042. if(element.nodeName === 'TH') {
  35043. return element;
  35044. }
  35045. else {
  35046. let parent = element.parentElement;
  35047. while(parent.nodeName !== 'TH') {
  35048. parent = parent.parentElement;
  35049. if (!parent) break;
  35050. }
  35051. return parent;
  35052. }
  35053. },
  35054. findColumnByKey(columns, key) {
  35055. if (columns && columns.length) {
  35056. for (let i = 0; i < columns.length; i++) {
  35057. let column = columns[i];
  35058. if (this.columnProp(column, 'columnKey') === key || this.columnProp(column, 'field') === key) {
  35059. return column;
  35060. }
  35061. }
  35062. }
  35063. return null;
  35064. },
  35065. onRowMouseDown(event) {
  35066. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(event.target, 'p-datatable-reorderablerow-handle'))
  35067. event.currentTarget.draggable = true;
  35068. else
  35069. event.currentTarget.draggable = false;
  35070. },
  35071. onRowDragStart(e) {
  35072. const event = e.originalEvent;
  35073. const index = e.index;
  35074. this.rowDragging = true;
  35075. this.draggedRowIndex = index;
  35076. event.dataTransfer.setData('text', 'b'); // For firefox
  35077. },
  35078. onRowDragOver(e) {
  35079. const event = e.originalEvent;
  35080. const index = e.index;
  35081. if (this.rowDragging && this.draggedRowIndex !== index) {
  35082. let rowElement = event.currentTarget;
  35083. let rowY = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOffset(rowElement).top + primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getWindowScrollTop();
  35084. let pageY = event.pageY;
  35085. let rowMidY = rowY + primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(rowElement) / 2;
  35086. let prevRowElement = rowElement.previousElementSibling;
  35087. if (pageY < rowMidY) {
  35088. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(rowElement, 'p-datatable-dragpoint-bottom');
  35089. this.droppedRowIndex = index;
  35090. if (prevRowElement)
  35091. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(prevRowElement, 'p-datatable-dragpoint-bottom');
  35092. else
  35093. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(rowElement, 'p-datatable-dragpoint-top');
  35094. }
  35095. else {
  35096. if (prevRowElement)
  35097. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(prevRowElement, 'p-datatable-dragpoint-bottom');
  35098. else
  35099. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(rowElement, 'p-datatable-dragpoint-top');
  35100. this.droppedRowIndex = index + 1;
  35101. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(rowElement, 'p-datatable-dragpoint-bottom');
  35102. }
  35103. event.preventDefault();
  35104. }
  35105. },
  35106. onRowDragLeave(event) {
  35107. let rowElement = event.currentTarget;
  35108. let prevRowElement = rowElement.previousElementSibling;
  35109. if (prevRowElement) {
  35110. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(prevRowElement, 'p-datatable-dragpoint-bottom');
  35111. }
  35112. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(rowElement, 'p-datatable-dragpoint-bottom');
  35113. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(rowElement, 'p-datatable-dragpoint-top');
  35114. },
  35115. onRowDragEnd(event) {
  35116. this.rowDragging = false;
  35117. this.draggedRowIndex = null;
  35118. this.droppedRowIndex = null;
  35119. event.currentTarget.draggable = false;
  35120. },
  35121. onRowDrop(event) {
  35122. if (this.droppedRowIndex != null) {
  35123. let dropIndex = (this.draggedRowIndex > this.droppedRowIndex) ? this.droppedRowIndex : (this.droppedRowIndex === 0) ? 0 : this.droppedRowIndex - 1;
  35124. let processedData = [...this.processedData];
  35125. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.reorderArray(processedData, this.draggedRowIndex, dropIndex);
  35126. this.$emit('row-reorder', {
  35127. originalEvent: event,
  35128. dragIndex: this.draggedRowIndex,
  35129. dropIndex: dropIndex,
  35130. value: processedData
  35131. });
  35132. }
  35133. //cleanup
  35134. this.onRowDragLeave(event);
  35135. this.onRowDragEnd(event);
  35136. event.preventDefault();
  35137. },
  35138. toggleRow(event) {
  35139. let rowData = event.data;
  35140. let expanded;
  35141. let expandedRowIndex;
  35142. let _expandedRows = this.expandedRows ? [...this.expandedRows] : [];
  35143. if (this.dataKey) {
  35144. expanded = this.d_expandedRowKeys ? this.d_expandedRowKeys[primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
  35145. }
  35146. else {
  35147. expandedRowIndex = this.findIndex(rowData, this.expandedRows);
  35148. expanded = expandedRowIndex > -1;
  35149. }
  35150. if (expanded) {
  35151. if (expandedRowIndex == null) {
  35152. expandedRowIndex = this.findIndex(rowData, this.expandedRows);
  35153. }
  35154. _expandedRows.splice(expandedRowIndex, 1);
  35155. this.$emit('update:expandedRows', _expandedRows);
  35156. this.$emit('row-collapse', event);
  35157. }
  35158. else {
  35159. _expandedRows.push(rowData);
  35160. this.$emit('update:expandedRows', _expandedRows);
  35161. this.$emit('row-expand', event);
  35162. }
  35163. },
  35164. toggleRowGroup(e) {
  35165. const event = e.originalEvent;
  35166. const data = e.data;
  35167. const groupFieldValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(data, this.groupRowsBy);
  35168. let _expandedRowGroups = this.expandedRowGroups ? [...this.expandedRowGroups] : [];
  35169. if (this.isRowGroupExpanded(data)) {
  35170. _expandedRowGroups = _expandedRowGroups.filter(group => group !== groupFieldValue);
  35171. this.$emit('update:expandedRowGroups', _expandedRowGroups);
  35172. this.$emit('rowgroup-collapse', {originalEvent: event, data: groupFieldValue});
  35173. }
  35174. else {
  35175. _expandedRowGroups.push(groupFieldValue);
  35176. this.$emit('update:expandedRowGroups', _expandedRowGroups);
  35177. this.$emit('rowgroup-expand', {originalEvent: event, data: groupFieldValue});
  35178. }
  35179. },
  35180. isRowGroupExpanded(rowData) {
  35181. if (this.expandableRowGroups && this.expandedRowGroups) {
  35182. let groupFieldValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
  35183. return this.expandedRowGroups.indexOf(groupFieldValue) > -1;
  35184. }
  35185. return false;
  35186. },
  35187. isStateful() {
  35188. return this.stateKey != null;
  35189. },
  35190. getStorage() {
  35191. switch(this.stateStorage) {
  35192. case 'local':
  35193. return window.localStorage;
  35194. case 'session':
  35195. return window.sessionStorage;
  35196. default:
  35197. throw new Error(this.stateStorage + ' is not a valid value for the state storage, supported values are "local" and "session".');
  35198. }
  35199. },
  35200. saveState() {
  35201. const storage = this.getStorage();
  35202. let state = {};
  35203. if (this.paginator) {
  35204. state.first = this.d_first;
  35205. state.rows = this.d_rows;
  35206. }
  35207. if (this.d_sortField) {
  35208. state.sortField = this.d_sortField;
  35209. state.sortOrder = this.d_sortOrder;
  35210. }
  35211. if (this.d_multiSortMeta) {
  35212. state.multiSortMeta = this.d_multiSortMeta;
  35213. }
  35214. if (this.hasFilters) {
  35215. state.filters = this.filters;
  35216. }
  35217. if (this.resizableColumns) {
  35218. this.saveColumnWidths(state);
  35219. }
  35220. if (this.reorderableColumns) {
  35221. state.columnOrder = this.d_columnOrder;
  35222. }
  35223. if (this.expandedRows) {
  35224. state.expandedRows = this.expandedRows;
  35225. state.expandedRowKeys = this.d_expandedRowKeys;
  35226. }
  35227. if (this.expandedRowGroups) {
  35228. state.expandedRowGroups = this.expandedRowGroups;
  35229. }
  35230. if (this.selection) {
  35231. state.selection = this.selection;
  35232. state.selectionKeys = this.d_selectionKeys;
  35233. }
  35234. if (Object.keys(state).length) {
  35235. storage.setItem(this.stateKey, JSON.stringify(state));
  35236. }
  35237. this.$emit('state-save', state);
  35238. },
  35239. restoreState() {
  35240. const storage = this.getStorage();
  35241. const stateString = storage.getItem(this.stateKey);
  35242. const dateFormat = /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;
  35243. const reviver = function(key, value) {
  35244. if (typeof value === "string" && dateFormat.test(value)) {
  35245. return new Date(value);
  35246. }
  35247. return value;
  35248. };
  35249. if (stateString) {
  35250. let restoredState = JSON.parse(stateString, reviver);
  35251. if (this.paginator) {
  35252. this.d_first = restoredState.first;
  35253. this.d_rows = restoredState.rows;
  35254. }
  35255. if (restoredState.sortField) {
  35256. this.d_sortField = restoredState.sortField;
  35257. this.d_sortOrder = restoredState.sortOrder;
  35258. }
  35259. if (restoredState.multiSortMeta) {
  35260. this.d_multiSortMeta = restoredState.multiSortMeta;
  35261. }
  35262. if (restoredState.filters) {
  35263. this.$emit('update:filters', restoredState.filters);
  35264. }
  35265. if (this.resizableColumns) {
  35266. this.columnWidthsState = restoredState.columnWidths;
  35267. this.tableWidthState = restoredState.tableWidth;
  35268. }
  35269. if (this.reorderableColumns) {
  35270. this.d_columnOrder = restoredState.columnOrder;
  35271. }
  35272. if (restoredState.expandedRows) {
  35273. this.d_expandedRowKeys = restoredState.expandedRowKeys;
  35274. this.$emit('update:expandedRows', restoredState.expandedRows);
  35275. }
  35276. if (restoredState.expandedRowGroups) {
  35277. this.$emit('update:expandedRowGroups', restoredState.expandedRowGroups);
  35278. }
  35279. if (restoredState.selection) {
  35280. this.d_selectionKeys = restoredState.d_selectionKeys;
  35281. this.$emit('update:selection', restoredState.selection);
  35282. }
  35283. this.$emit('state-restore', restoredState);
  35284. }
  35285. },
  35286. saveColumnWidths(state) {
  35287. let widths = [];
  35288. let headers = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.find(this.$el, '.p-datatable-thead > tr > th');
  35289. headers.forEach(header => widths.push(primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(header)));
  35290. state.columnWidths = widths.join(',');
  35291. if (this.columnResizeMode === 'expand') {
  35292. state.tableWidth = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(this.$refs.table) + 'px';
  35293. }
  35294. },
  35295. restoreColumnWidths() {
  35296. if (this.columnWidthsState) {
  35297. let widths = this.columnWidthsState.split(',');
  35298. if (this.columnResizeMode === 'expand' && this.tableWidthState) {
  35299. this.$refs.table.style.width = this.tableWidthState;
  35300. this.$refs.table.style.minWidth = this.tableWidthState;
  35301. this.$el.style.width = this.tableWidthState;
  35302. }
  35303. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.isNotEmpty(widths)) {
  35304. this.createStyleElement();
  35305. let innerHTML = '';
  35306. widths.forEach((width, index) => {
  35307. let style = this.scrollable ? `flex: 1 1 ${width}px !important` : `width: ${width}px !important`;
  35308. innerHTML += `
  35309. .p-datatable[${this.attributeSelector}] .p-datatable-thead > tr > th:nth-child(${index + 1}),
  35310. .p-datatable[${this.attributeSelector}] .p-datatable-tbody > tr > td:nth-child(${index + 1}),
  35311. .p-datatable[${this.attributeSelector}] .p-datatable-tfoot > tr > td:nth-child(${index + 1}) {
  35312. ${style}
  35313. }
  35314. `;
  35315. });
  35316. this.styleElement.innerHTML = innerHTML;
  35317. }
  35318. }
  35319. },
  35320. onCellEditInit(event) {
  35321. this.$emit('cell-edit-init', event);
  35322. },
  35323. onCellEditComplete(event) {
  35324. this.$emit('cell-edit-complete', event);
  35325. },
  35326. onCellEditCancel(event) {
  35327. this.$emit('cell-edit-cancel', event);
  35328. },
  35329. onRowEditInit(event) {
  35330. let _editingRows = this.editingRows ? [...this.editingRows] : [];
  35331. _editingRows.push(event.data);
  35332. this.$emit('update:editingRows', _editingRows);
  35333. this.$emit('row-edit-init', event);
  35334. },
  35335. onRowEditSave(event) {
  35336. let _editingRows = [...this.editingRows];
  35337. _editingRows.splice(this.findIndex(event.data, _editingRows), 1);
  35338. this.$emit('update:editingRows', _editingRows);
  35339. this.$emit('row-edit-save', event);
  35340. },
  35341. onRowEditCancel(event) {
  35342. let _editingRows = [...this.editingRows];
  35343. _editingRows.splice(this.findIndex(event.data, _editingRows), 1);
  35344. this.$emit('update:editingRows', _editingRows);
  35345. this.$emit('row-edit-cancel', event);
  35346. },
  35347. onEditingMetaChange(event) {
  35348. let { data, field, index, editing } = event;
  35349. let editingMeta = { ...this.d_editingMeta };
  35350. let meta = editingMeta[index];
  35351. if (editing) {
  35352. !meta && (meta = editingMeta[index] = { data: { ...data }, fields: [] });
  35353. meta['fields'].push(field);
  35354. }
  35355. else if (meta) {
  35356. const fields = meta['fields'].filter(f => f !== field);
  35357. !fields.length ? (delete editingMeta[index]) : (meta['fields'] = fields);
  35358. }
  35359. this.d_editingMeta = editingMeta;
  35360. },
  35361. clearEditingMetaData() {
  35362. if (this.editMode) {
  35363. this.d_editingMeta = {};
  35364. }
  35365. },
  35366. createLazyLoadEvent(event) {
  35367. return {
  35368. originalEvent: event,
  35369. first: this.d_first,
  35370. rows: this.d_rows,
  35371. sortField: this.d_sortField,
  35372. sortOrder: this.d_sortOrder,
  35373. multiSortMeta: this.d_multiSortMeta,
  35374. filters: this.d_filters
  35375. };
  35376. },
  35377. hasGlobalFilter() {
  35378. return this.filters && Object.prototype.hasOwnProperty.call(this.filters, 'global');
  35379. },
  35380. getChildren() {
  35381. return this.$slots.default ? this.$slots.default() : null;
  35382. },
  35383. onFilterChange(filters) {
  35384. this.d_filters = filters;
  35385. },
  35386. onFilterApply() {
  35387. this.d_first = 0;
  35388. this.$emit('update:first', this.d_first);
  35389. this.$emit('update:filters', this.d_filters);
  35390. if (this.lazy) {
  35391. this.$emit('filter', this.createLazyLoadEvent());
  35392. }
  35393. },
  35394. cloneFilters() {
  35395. let cloned = {};
  35396. if (this.filters) {
  35397. Object.entries(this.filters).forEach(([prop,value]) => {
  35398. cloned[prop] = value.operator ? {operator: value.operator, constraints: value.constraints.map(constraint => {return {...constraint}})} : {...value};
  35399. });
  35400. }
  35401. return cloned;
  35402. },
  35403. updateReorderableColumns() {
  35404. let columnOrder = [];
  35405. this.columns.forEach(col => columnOrder.push(this.columnProp(col, 'columnKey')||this.columnProp(col, 'field')));
  35406. this.d_columnOrder = columnOrder;
  35407. },
  35408. createStyleElement() {
  35409. this.styleElement = document.createElement('style');
  35410. this.styleElement.type = 'text/css';
  35411. document.head.appendChild(this.styleElement);
  35412. },
  35413. createResponsiveStyle() {
  35414. if (!this.responsiveStyleElement) {
  35415. this.responsiveStyleElement = document.createElement('style');
  35416. this.responsiveStyleElement.type = 'text/css';
  35417. document.head.appendChild(this.responsiveStyleElement);
  35418. let innerHTML = `
  35419. @media screen and (max-width: ${this.breakpoint}) {
  35420. .p-datatable[${this.attributeSelector}] .p-datatable-thead > tr > th,
  35421. .p-datatable[${this.attributeSelector}] .p-datatable-tfoot > tr > td {
  35422. display: none !important;
  35423. }
  35424. .p-datatable[${this.attributeSelector}] .p-datatable-tbody > tr > td {
  35425. display: flex;
  35426. width: 100% !important;
  35427. align-items: center;
  35428. justify-content: space-between;
  35429. }
  35430. .p-datatable[${this.attributeSelector}] .p-datatable-tbody > tr > td:not(:last-child) {
  35431. border: 0 none;
  35432. }
  35433. .p-datatable[${this.attributeSelector}].p-datatable-gridlines .p-datatable-tbody > tr > td:last-child {
  35434. border-top: 0;
  35435. border-right: 0;
  35436. border-left: 0;
  35437. }
  35438. .p-datatable[${this.attributeSelector}] .p-datatable-tbody > tr > td > .p-column-title {
  35439. display: block;
  35440. }
  35441. }
  35442. `;
  35443. this.responsiveStyleElement.innerHTML = innerHTML;
  35444. }
  35445. },
  35446. destroyResponsiveStyle() {
  35447. if (this.responsiveStyleElement) {
  35448. document.head.removeChild(this.responsiveStyleElement);
  35449. this.responsiveStyleElement = null;
  35450. }
  35451. },
  35452. destroyStyleElement() {
  35453. if (this.styleElement) {
  35454. document.head.removeChild(this.styleElement);
  35455. this.styleElement = null;
  35456. }
  35457. },
  35458. recursiveGetChildren(children, results) {
  35459. if (!results) {
  35460. results = [];
  35461. }
  35462. if (children && children.length) {
  35463. children.forEach((child) => {
  35464. if (child.children instanceof Array) {
  35465. results.concat(this.recursiveGetChildren(child.children, results));
  35466. } else if (child.type.name == 'Column') {
  35467. results.push(child);
  35468. }
  35469. });
  35470. }
  35471. return results;
  35472. },
  35473. dataToRender(data) {
  35474. const _data = data || this.processedData;
  35475. if (_data && this.paginator) {
  35476. const first = this.lazy ? 0 : this.d_first;
  35477. return _data.slice(first, first + this.d_rows);
  35478. }
  35479. return _data;
  35480. }
  35481. },
  35482. computed: {
  35483. containerClass() {
  35484. return [
  35485. 'p-datatable p-component', {
  35486. 'p-datatable-hoverable-rows': (this.rowHover || this.selectionMode),
  35487. 'p-datatable-auto-layout': this.autoLayout,
  35488. 'p-datatable-resizable': this.resizableColumns,
  35489. 'p-datatable-resizable-fit': this.resizableColumns && this.columnResizeMode === 'fit',
  35490. 'p-datatable-scrollable': this.scrollable,
  35491. 'p-datatable-scrollable-vertical': this.scrollable && this.scrollDirection === 'vertical',
  35492. 'p-datatable-scrollable-horizontal': this.scrollable && this.scrollDirection === 'horizontal',
  35493. 'p-datatable-scrollable-both': this.scrollable && this.scrollDirection === 'both',
  35494. 'p-datatable-flex-scrollable': (this.scrollable && this.scrollHeight === 'flex'),
  35495. 'p-datatable-responsive-stack': this.responsiveLayout === 'stack',
  35496. 'p-datatable-responsive-scroll': this.responsiveLayout === 'scroll',
  35497. 'p-datatable-striped': this.stripedRows,
  35498. 'p-datatable-gridlines': this.showGridlines,
  35499. 'p-datatable-grouped-header': this.headerColumnGroup != null,
  35500. 'p-datatable-grouped-footer': this.footerColumnGroup != null
  35501. }
  35502. ];
  35503. },
  35504. columns() {
  35505. let children = this.getChildren();
  35506. if (!children) {
  35507. return;
  35508. }
  35509. const cols = this.recursiveGetChildren(children, []);
  35510. if (this.reorderableColumns && this.d_columnOrder) {
  35511. let orderedColumns = [];
  35512. for (let columnKey of this.d_columnOrder) {
  35513. let column = this.findColumnByKey(cols, columnKey);
  35514. if (column) {
  35515. orderedColumns.push(column);
  35516. }
  35517. }
  35518. return [...orderedColumns, ...cols.filter((item) => orderedColumns.indexOf(item) < 0)];
  35519. }
  35520. return cols;
  35521. },
  35522. headerColumnGroup() {
  35523. const children = this.getChildren();
  35524. if (children) {
  35525. for (let child of children) {
  35526. if (child.type.name === 'ColumnGroup' && this.columnProp(child, 'type') === 'header') {
  35527. return child;
  35528. }
  35529. }
  35530. }
  35531. return null;
  35532. },
  35533. footerColumnGroup() {
  35534. const children = this.getChildren();
  35535. if (children) {
  35536. for (let child of children) {
  35537. if (child.type.name === 'ColumnGroup' && this.columnProp(child, 'type') === 'footer') {
  35538. return child;
  35539. }
  35540. }
  35541. }
  35542. return null;
  35543. },
  35544. hasFilters() {
  35545. return this.filters && Object.keys(this.filters).length > 0 && this.filters.constructor === Object;
  35546. },
  35547. processedData() {
  35548. let data = this.value || [];
  35549. if (!this.lazy) {
  35550. if (data && data.length) {
  35551. if (this.hasFilters) {
  35552. data = this.filter(data);
  35553. }
  35554. if (this.sorted) {
  35555. if(this.sortMode === 'single')
  35556. data = this.sortSingle(data);
  35557. else if(this.sortMode === 'multiple')
  35558. data = this.sortMultiple(data);
  35559. }
  35560. }
  35561. }
  35562. return data;
  35563. },
  35564. totalRecordsLength() {
  35565. if (this.lazy) {
  35566. return this.totalRecords;
  35567. }
  35568. else {
  35569. const data = this.processedData;
  35570. return data ? data.length : 0;
  35571. }
  35572. },
  35573. empty() {
  35574. const data = this.processedData;
  35575. return (!data || data.length === 0);
  35576. },
  35577. paginatorTop() {
  35578. return this.paginator && (this.paginatorPosition !== 'bottom' || this.paginatorPosition === 'both');
  35579. },
  35580. paginatorBottom() {
  35581. return this.paginator && (this.paginatorPosition !== 'top' || this.paginatorPosition === 'both');
  35582. },
  35583. sorted() {
  35584. return this.d_sortField || (this.d_multiSortMeta && this.d_multiSortMeta.length > 0);
  35585. },
  35586. loadingIconClass() {
  35587. return ['p-datatable-loading-icon pi-spin', this.loadingIcon];
  35588. },
  35589. allRowsSelected() {
  35590. if (this.selectAll !== null) {
  35591. return this.selectAll;
  35592. }
  35593. else {
  35594. const val = this.frozenValue ? [...this.frozenValue, ...this.processedData] : this.processedData;
  35595. return val && this.selection && Array.isArray(this.selection) && val.every(v => this.selection.some(s => this.equals(s, v)));
  35596. }
  35597. },
  35598. attributeSelector() {
  35599. return (0,primevue_utils__WEBPACK_IMPORTED_MODULE_0__.UniqueComponentId)();
  35600. },
  35601. groupRowSortField() {
  35602. return this.sortMode === 'single' ? this.sortField : (this.d_groupRowsSortMeta ? this.d_groupRowsSortMeta.field : null);
  35603. },
  35604. virtualScrollerDisabled() {
  35605. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.isEmpty(this.virtualScrollerOptions) || !this.scrollable;
  35606. }
  35607. },
  35608. components: {
  35609. 'DTPaginator': primevue_paginator__WEBPACK_IMPORTED_MODULE_2__["default"],
  35610. 'DTTableHeader': script$7,
  35611. 'DTTableBody': script$3,
  35612. 'DTTableFooter': script$1,
  35613. 'DTVirtualScroller': primevue_virtualscroller__WEBPACK_IMPORTED_MODULE_3__["default"]
  35614. }
  35615. };
  35616. const _hoisted_1 = {
  35617. key: 0,
  35618. class: "p-datatable-loading-overlay p-component-overlay"
  35619. };
  35620. const _hoisted_2 = {
  35621. key: 1,
  35622. class: "p-datatable-header"
  35623. };
  35624. const _hoisted_3 = {
  35625. key: 4,
  35626. class: "p-datatable-footer"
  35627. };
  35628. const _hoisted_4 = {
  35629. ref: "resizeHelper",
  35630. class: "p-column-resizer-helper",
  35631. style: {"display":"none"}
  35632. };
  35633. const _hoisted_5 = {
  35634. key: 5,
  35635. ref: "reorderIndicatorUp",
  35636. class: "pi pi-arrow-down p-datatable-reorder-indicator-up",
  35637. style: {"position":"absolute","display":"none"}
  35638. };
  35639. const _hoisted_6 = {
  35640. key: 6,
  35641. ref: "reorderIndicatorDown",
  35642. class: "pi pi-arrow-up p-datatable-reorder-indicator-down",
  35643. style: {"position":"absolute","display":"none"}
  35644. };
  35645. function render(_ctx, _cache, $props, $setup, $data, $options) {
  35646. const _component_DTPaginator = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTPaginator");
  35647. const _component_DTTableHeader = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTTableHeader");
  35648. const _component_DTTableBody = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTTableBody");
  35649. const _component_DTTableFooter = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTTableFooter");
  35650. const _component_DTVirtualScroller = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTVirtualScroller");
  35651. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("div", {
  35652. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)($options.containerClass),
  35653. "data-scrollselectors": ".p-datatable-wrapper"
  35654. }, [
  35655. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "default"),
  35656. ($props.loading)
  35657. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("div", _hoisted_1, [
  35658. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("i", {
  35659. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)($options.loadingIconClass)
  35660. }, null, 2)
  35661. ]))
  35662. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  35663. (_ctx.$slots.header)
  35664. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("div", _hoisted_2, [
  35665. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "header")
  35666. ]))
  35667. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  35668. ($options.paginatorTop)
  35669. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTPaginator, {
  35670. key: 2,
  35671. rows: $data.d_rows,
  35672. first: $data.d_first,
  35673. totalRecords: $options.totalRecordsLength,
  35674. pageLinkSize: $props.pageLinkSize,
  35675. template: $props.paginatorTemplate,
  35676. rowsPerPageOptions: $props.rowsPerPageOptions,
  35677. currentPageReportTemplate: $props.currentPageReportTemplate,
  35678. class: "p-paginator-top",
  35679. onPage: _cache[0] || (_cache[0] = $event => ($options.onPage($event))),
  35680. alwaysShow: $props.alwaysShowPaginator
  35681. }, (0,vue__WEBPACK_IMPORTED_MODULE_4__.createSlots)({ _: 2 }, [
  35682. (_ctx.$slots.paginatorstart)
  35683. ? {
  35684. name: "start",
  35685. fn: (0,vue__WEBPACK_IMPORTED_MODULE_4__.withCtx)(() => [
  35686. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "paginatorstart")
  35687. ])
  35688. }
  35689. : undefined,
  35690. (_ctx.$slots.paginatorend)
  35691. ? {
  35692. name: "end",
  35693. fn: (0,vue__WEBPACK_IMPORTED_MODULE_4__.withCtx)(() => [
  35694. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "paginatorend")
  35695. ])
  35696. }
  35697. : undefined
  35698. ]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "alwaysShow"]))
  35699. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  35700. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("div", {
  35701. class: "p-datatable-wrapper",
  35702. style: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeStyle)({ maxHeight: $options.virtualScrollerDisabled ? $props.scrollHeight : '' })
  35703. }, [
  35704. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)(_component_DTVirtualScroller, (0,vue__WEBPACK_IMPORTED_MODULE_4__.mergeProps)($props.virtualScrollerOptions, {
  35705. items: $options.processedData,
  35706. columns: $options.columns,
  35707. style: { height: $props.scrollHeight },
  35708. disabled: $options.virtualScrollerDisabled,
  35709. loaderDisabled: "",
  35710. showSpacer: false
  35711. }), {
  35712. content: (0,vue__WEBPACK_IMPORTED_MODULE_4__.withCtx)((slotProps) => [
  35713. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("table", {
  35714. ref: "table",
  35715. role: "table",
  35716. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)([$props.tableClass, 'p-datatable-table']),
  35717. style: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeStyle)([$props.tableStyle, slotProps.spacerStyle])
  35718. }, [
  35719. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)(_component_DTTableHeader, {
  35720. columnGroup: $options.headerColumnGroup,
  35721. columns: slotProps.columns,
  35722. rowGroupMode: $props.rowGroupMode,
  35723. groupRowsBy: $props.groupRowsBy,
  35724. groupRowSortField: $options.groupRowSortField,
  35725. resizableColumns: $props.resizableColumns,
  35726. allRowsSelected: $options.allRowsSelected,
  35727. empty: $options.empty,
  35728. sortMode: $props.sortMode,
  35729. sortField: $data.d_sortField,
  35730. sortOrder: $data.d_sortOrder,
  35731. multiSortMeta: $data.d_multiSortMeta,
  35732. filters: $data.d_filters,
  35733. filtersStore: $props.filters,
  35734. filterDisplay: $props.filterDisplay,
  35735. onColumnClick: _cache[1] || (_cache[1] = $event => ($options.onColumnHeaderClick($event))),
  35736. onColumnMousedown: _cache[2] || (_cache[2] = $event => ($options.onColumnHeaderMouseDown($event))),
  35737. onFilterChange: $options.onFilterChange,
  35738. onFilterApply: $options.onFilterApply,
  35739. onColumnDragstart: _cache[3] || (_cache[3] = $event => ($options.onColumnHeaderDragStart($event))),
  35740. onColumnDragover: _cache[4] || (_cache[4] = $event => ($options.onColumnHeaderDragOver($event))),
  35741. onColumnDragleave: _cache[5] || (_cache[5] = $event => ($options.onColumnHeaderDragLeave($event))),
  35742. onColumnDrop: _cache[6] || (_cache[6] = $event => ($options.onColumnHeaderDrop($event))),
  35743. onColumnResizestart: _cache[7] || (_cache[7] = $event => ($options.onColumnResizeStart($event))),
  35744. onCheckboxChange: _cache[8] || (_cache[8] = $event => ($options.toggleRowsWithCheckbox($event)))
  35745. }, null, 8, ["columnGroup", "columns", "rowGroupMode", "groupRowsBy", "groupRowSortField", "resizableColumns", "allRowsSelected", "empty", "sortMode", "sortField", "sortOrder", "multiSortMeta", "filters", "filtersStore", "filterDisplay", "onFilterChange", "onFilterApply"]),
  35746. ($props.frozenValue)
  35747. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTTableBody, {
  35748. key: 0,
  35749. value: $props.frozenValue,
  35750. frozenRow: true,
  35751. class: "p-datatable-frozen-tbody",
  35752. columns: slotProps.columns,
  35753. dataKey: $props.dataKey,
  35754. selection: $props.selection,
  35755. selectionKeys: $data.d_selectionKeys,
  35756. selectionMode: $props.selectionMode,
  35757. contextMenu: $props.contextMenu,
  35758. contextMenuSelection: $props.contextMenuSelection,
  35759. rowGroupMode: $props.rowGroupMode,
  35760. groupRowsBy: $props.groupRowsBy,
  35761. expandableRowGroups: $props.expandableRowGroups,
  35762. rowClass: $props.rowClass,
  35763. rowStyle: $props.rowStyle,
  35764. editMode: $props.editMode,
  35765. compareSelectionBy: $props.compareSelectionBy,
  35766. scrollable: $props.scrollable,
  35767. expandedRowIcon: $props.expandedRowIcon,
  35768. collapsedRowIcon: $props.collapsedRowIcon,
  35769. expandedRows: $props.expandedRows,
  35770. expandedRowKeys: $data.d_expandedRowKeys,
  35771. expandedRowGroups: $props.expandedRowGroups,
  35772. editingRows: $props.editingRows,
  35773. editingRowKeys: $data.d_editingRowKeys,
  35774. templates: _ctx.$slots,
  35775. loading: $props.loading,
  35776. responsiveLayout: $props.responsiveLayout,
  35777. onRowgroupToggle: $options.toggleRowGroup,
  35778. onRowClick: _cache[9] || (_cache[9] = $event => ($options.onRowClick($event))),
  35779. onRowDblclick: _cache[10] || (_cache[10] = $event => ($options.onRowDblClick($event))),
  35780. onRowRightclick: _cache[11] || (_cache[11] = $event => ($options.onRowRightClick($event))),
  35781. onRowTouchend: $options.onRowTouchEnd,
  35782. onRowKeydown: $options.onRowKeyDown,
  35783. onRowMousedown: $options.onRowMouseDown,
  35784. onRowDragstart: _cache[12] || (_cache[12] = $event => ($options.onRowDragStart($event))),
  35785. onRowDragover: _cache[13] || (_cache[13] = $event => ($options.onRowDragOver($event))),
  35786. onRowDragleave: _cache[14] || (_cache[14] = $event => ($options.onRowDragLeave($event))),
  35787. onRowDragend: _cache[15] || (_cache[15] = $event => ($options.onRowDragEnd($event))),
  35788. onRowDrop: _cache[16] || (_cache[16] = $event => ($options.onRowDrop($event))),
  35789. onRowToggle: _cache[17] || (_cache[17] = $event => ($options.toggleRow($event))),
  35790. onRadioChange: _cache[18] || (_cache[18] = $event => ($options.toggleRowWithRadio($event))),
  35791. onCheckboxChange: _cache[19] || (_cache[19] = $event => ($options.toggleRowWithCheckbox($event))),
  35792. onCellEditInit: _cache[20] || (_cache[20] = $event => ($options.onCellEditInit($event))),
  35793. onCellEditComplete: _cache[21] || (_cache[21] = $event => ($options.onCellEditComplete($event))),
  35794. onCellEditCancel: _cache[22] || (_cache[22] = $event => ($options.onCellEditCancel($event))),
  35795. onRowEditInit: _cache[23] || (_cache[23] = $event => ($options.onRowEditInit($event))),
  35796. onRowEditSave: _cache[24] || (_cache[24] = $event => ($options.onRowEditSave($event))),
  35797. onRowEditCancel: _cache[25] || (_cache[25] = $event => ($options.onRowEditCancel($event))),
  35798. editingMeta: $data.d_editingMeta,
  35799. onEditingMetaChange: $options.onEditingMetaChange,
  35800. isVirtualScrollerDisabled: true
  35801. }, null, 8, ["value", "columns", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowKeys", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "loading", "responsiveLayout", "onRowgroupToggle", "onRowTouchend", "onRowKeydown", "onRowMousedown", "editingMeta", "onEditingMetaChange"]))
  35802. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  35803. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)(_component_DTTableBody, {
  35804. value: $options.dataToRender(slotProps.rows),
  35805. class: (0,vue__WEBPACK_IMPORTED_MODULE_4__.normalizeClass)(slotProps.styleClass),
  35806. columns: slotProps.columns,
  35807. empty: $options.empty,
  35808. dataKey: $props.dataKey,
  35809. selection: $props.selection,
  35810. selectionKeys: $data.d_selectionKeys,
  35811. selectionMode: $props.selectionMode,
  35812. contextMenu: $props.contextMenu,
  35813. contextMenuSelection: $props.contextMenuSelection,
  35814. rowGroupMode: $props.rowGroupMode,
  35815. groupRowsBy: $props.groupRowsBy,
  35816. expandableRowGroups: $props.expandableRowGroups,
  35817. rowClass: $props.rowClass,
  35818. rowStyle: $props.rowStyle,
  35819. editMode: $props.editMode,
  35820. compareSelectionBy: $props.compareSelectionBy,
  35821. scrollable: $props.scrollable,
  35822. expandedRowIcon: $props.expandedRowIcon,
  35823. collapsedRowIcon: $props.collapsedRowIcon,
  35824. expandedRows: $props.expandedRows,
  35825. expandedRowKeys: $data.d_expandedRowKeys,
  35826. expandedRowGroups: $props.expandedRowGroups,
  35827. editingRows: $props.editingRows,
  35828. editingRowKeys: $data.d_editingRowKeys,
  35829. templates: _ctx.$slots,
  35830. loading: $props.loading,
  35831. responsiveLayout: $props.responsiveLayout,
  35832. onRowgroupToggle: $options.toggleRowGroup,
  35833. onRowClick: _cache[26] || (_cache[26] = $event => ($options.onRowClick($event))),
  35834. onRowDblclick: _cache[27] || (_cache[27] = $event => ($options.onRowDblClick($event))),
  35835. onRowRightclick: _cache[28] || (_cache[28] = $event => ($options.onRowRightClick($event))),
  35836. onRowTouchend: $options.onRowTouchEnd,
  35837. onRowKeydown: $options.onRowKeyDown,
  35838. onRowMousedown: $options.onRowMouseDown,
  35839. onRowDragstart: _cache[29] || (_cache[29] = $event => ($options.onRowDragStart($event))),
  35840. onRowDragover: _cache[30] || (_cache[30] = $event => ($options.onRowDragOver($event))),
  35841. onRowDragleave: _cache[31] || (_cache[31] = $event => ($options.onRowDragLeave($event))),
  35842. onRowDragend: _cache[32] || (_cache[32] = $event => ($options.onRowDragEnd($event))),
  35843. onRowDrop: _cache[33] || (_cache[33] = $event => ($options.onRowDrop($event))),
  35844. onRowToggle: _cache[34] || (_cache[34] = $event => ($options.toggleRow($event))),
  35845. onRadioChange: _cache[35] || (_cache[35] = $event => ($options.toggleRowWithRadio($event))),
  35846. onCheckboxChange: _cache[36] || (_cache[36] = $event => ($options.toggleRowWithCheckbox($event))),
  35847. onCellEditInit: _cache[37] || (_cache[37] = $event => ($options.onCellEditInit($event))),
  35848. onCellEditComplete: _cache[38] || (_cache[38] = $event => ($options.onCellEditComplete($event))),
  35849. onCellEditCancel: _cache[39] || (_cache[39] = $event => ($options.onCellEditCancel($event))),
  35850. onRowEditInit: _cache[40] || (_cache[40] = $event => ($options.onRowEditInit($event))),
  35851. onRowEditSave: _cache[41] || (_cache[41] = $event => ($options.onRowEditSave($event))),
  35852. onRowEditCancel: _cache[42] || (_cache[42] = $event => ($options.onRowEditCancel($event))),
  35853. editingMeta: $data.d_editingMeta,
  35854. onEditingMetaChange: $options.onEditingMetaChange,
  35855. virtualScrollerContentProps: slotProps,
  35856. isVirtualScrollerDisabled: $options.virtualScrollerDisabled
  35857. }, null, 8, ["value", "class", "columns", "empty", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowKeys", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "loading", "responsiveLayout", "onRowgroupToggle", "onRowTouchend", "onRowKeydown", "onRowMousedown", "editingMeta", "onEditingMetaChange", "virtualScrollerContentProps", "isVirtualScrollerDisabled"]),
  35858. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)(_component_DTTableFooter, {
  35859. columnGroup: $options.footerColumnGroup,
  35860. columns: slotProps.columns
  35861. }, null, 8, ["columnGroup", "columns"])
  35862. ], 6)
  35863. ]),
  35864. _: 1
  35865. }, 16, ["items", "columns", "style", "disabled"])
  35866. ], 4),
  35867. ($options.paginatorBottom)
  35868. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTPaginator, {
  35869. key: 3,
  35870. rows: $data.d_rows,
  35871. first: $data.d_first,
  35872. totalRecords: $options.totalRecordsLength,
  35873. pageLinkSize: $props.pageLinkSize,
  35874. template: $props.paginatorTemplate,
  35875. rowsPerPageOptions: $props.rowsPerPageOptions,
  35876. currentPageReportTemplate: $props.currentPageReportTemplate,
  35877. class: "p-paginator-bottom",
  35878. onPage: _cache[43] || (_cache[43] = $event => ($options.onPage($event))),
  35879. alwaysShow: $props.alwaysShowPaginator
  35880. }, (0,vue__WEBPACK_IMPORTED_MODULE_4__.createSlots)({ _: 2 }, [
  35881. (_ctx.$slots.paginatorstart)
  35882. ? {
  35883. name: "start",
  35884. fn: (0,vue__WEBPACK_IMPORTED_MODULE_4__.withCtx)(() => [
  35885. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "paginatorstart")
  35886. ])
  35887. }
  35888. : undefined,
  35889. (_ctx.$slots.paginatorend)
  35890. ? {
  35891. name: "end",
  35892. fn: (0,vue__WEBPACK_IMPORTED_MODULE_4__.withCtx)(() => [
  35893. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "paginatorend")
  35894. ])
  35895. }
  35896. : undefined
  35897. ]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "alwaysShow"]))
  35898. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  35899. (_ctx.$slots.footer)
  35900. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("div", _hoisted_3, [
  35901. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "footer")
  35902. ]))
  35903. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  35904. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementVNode)("div", _hoisted_4, null, 512),
  35905. ($props.reorderableColumns)
  35906. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("span", _hoisted_5, null, 512))
  35907. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  35908. ($props.reorderableColumns)
  35909. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createElementBlock)("span", _hoisted_6, null, 512))
  35910. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  35911. ], 2))
  35912. }
  35913. function styleInject(css, ref) {
  35914. if ( ref === void 0 ) ref = {};
  35915. var insertAt = ref.insertAt;
  35916. if (!css || typeof document === 'undefined') { return; }
  35917. var head = document.head || document.getElementsByTagName('head')[0];
  35918. var style = document.createElement('style');
  35919. style.type = 'text/css';
  35920. if (insertAt === 'top') {
  35921. if (head.firstChild) {
  35922. head.insertBefore(style, head.firstChild);
  35923. } else {
  35924. head.appendChild(style);
  35925. }
  35926. } else {
  35927. head.appendChild(style);
  35928. }
  35929. if (style.styleSheet) {
  35930. style.styleSheet.cssText = css;
  35931. } else {
  35932. style.appendChild(document.createTextNode(css));
  35933. }
  35934. }
  35935. var css_248z = "\n.p-datatable {\n position: relative;\n}\n.p-datatable table {\n border-collapse: collapse;\n min-width: 100%;\n table-layout: fixed;\n}\n.p-datatable .p-sortable-column {\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-datatable .p-sortable-column .p-column-title,\n.p-datatable .p-sortable-column .p-sortable-column-icon,\n.p-datatable .p-sortable-column .p-sortable-column-badge {\n vertical-align: middle;\n}\n.p-datatable .p-sortable-column .p-sortable-column-badge {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.p-datatable-responsive-scroll > .p-datatable-wrapper {\n overflow-x: auto;\n}\n.p-datatable-responsive-scroll > .p-datatable-wrapper > table,\n.p-datatable-auto-layout > .p-datatable-wrapper > table {\n table-layout: auto;\n}\n.p-datatable-hoverable-rows .p-selectable-row {\n cursor: pointer;\n}\n\n/* Scrollable */\n.p-datatable-scrollable .p-datatable-wrapper {\n position: relative;\n overflow: auto;\n}\n.p-datatable-scrollable .p-datatable-thead,\n.p-datatable-scrollable .p-datatable-tbody,\n.p-datatable-scrollable .p-datatable-tfoot {\n display: block;\n}\n.p-datatable-scrollable .p-datatable-thead > tr,\n.p-datatable-scrollable .p-datatable-tbody > tr,\n.p-datatable-scrollable .p-datatable-tfoot > tr {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap;\n width: 100%;\n}\n.p-datatable-scrollable .p-datatable-thead > tr > th,\n.p-datatable-scrollable .p-datatable-tbody > tr > td,\n.p-datatable-scrollable .p-datatable-tfoot > tr > td {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-flex: 1;\n -ms-flex: 1 1 0px;\n flex: 1 1 0;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.p-datatable-scrollable .p-datatable-thead {\n position: sticky;\n top: 0;\n z-index: 1;\n}\n.p-datatable-scrollable .p-datatable-frozen-tbody {\n position: sticky;\n z-index: 1;\n}\n.p-datatable-scrollable .p-datatable-tfoot {\n position: sticky;\n bottom: 0;\n z-index: 1;\n}\n.p-datatable-scrollable .p-frozen-column {\n position: sticky;\n background: inherit;\n}\n.p-datatable-scrollable th.p-frozen-column {\n z-index: 1;\n}\n.p-datatable-scrollable-both .p-datatable-thead > tr > th,\n.p-datatable-scrollable-both .p-datatable-tbody > tr > td,\n.p-datatable-scrollable-both .p-datatable-tfoot > tr > td,\n.p-datatable-scrollable-horizontal .p-datatable-thead > tr > th\n.p-datatable-scrollable-horizontal .p-datatable-tbody > tr > td,\n.p-datatable-scrollable-horizontal .p-datatable-tfoot > tr > td {\n -webkit-box-flex: 0;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n.p-datatable-flex-scrollable {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n height: 100%;\n}\n.p-datatable-flex-scrollable .p-datatable-wrapper {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n height: 100%;\n}\n.p-datatable-scrollable .p-rowgroup-header {\n position: sticky;\n z-index: 1;\n}\n.p-datatable-scrollable.p-datatable-grouped-header .p-datatable-thead,\n.p-datatable-scrollable.p-datatable-grouped-footer .p-datatable-tfoot {\n display: table;\n border-collapse: collapse;\n width: 100%;\n table-layout: fixed;\n}\n.p-datatable-scrollable.p-datatable-grouped-header .p-datatable-thead > tr,\n.p-datatable-scrollable.p-datatable-grouped-footer .p-datatable-tfoot > tr {\n display: table-row;\n}\n.p-datatable-scrollable.p-datatable-grouped-header .p-datatable-thead > tr > th,\n.p-datatable-scrollable.p-datatable-grouped-footer .p-datatable-tfoot > tr > td {\n display: table-cell;\n}\n\n/* Resizable */\n.p-datatable-resizable > .p-datatable-wrapper {\n overflow-x: auto;\n}\n.p-datatable-resizable .p-datatable-thead > tr > th,\n.p-datatable-resizable .p-datatable-tfoot > tr > td,\n.p-datatable-resizable .p-datatable-tbody > tr > td {\n overflow: hidden;\n white-space: nowrap;\n}\n.p-datatable-resizable .p-resizable-column:not(.p-frozen-column) {\n background-clip: padding-box;\n position: relative;\n}\n.p-datatable-resizable-fit .p-resizable-column:last-child .p-column-resizer {\n display: none;\n}\n.p-datatable .p-column-resizer {\n display: block;\n position: absolute !important;\n top: 0;\n right: 0;\n margin: 0;\n width: .5rem;\n height: 100%;\n padding: 0px;\n cursor:col-resize;\n border: 1px solid transparent;\n}\n.p-datatable .p-column-header-content {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.p-datatable .p-column-resizer-helper {\n width: 1px;\n position: absolute;\n z-index: 10;\n display: none;\n}\n.p-datatable .p-row-editor-init,\n.p-datatable .p-row-editor-save,\n.p-datatable .p-row-editor-cancel {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n overflow: hidden;\n position: relative;\n}\n\n/* Expand */\n.p-datatable .p-row-toggler {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n overflow: hidden;\n position: relative;\n}\n\n/* Reorder */\n.p-datatable-reorder-indicator-up,\n.p-datatable-reorder-indicator-down {\n position: absolute;\n display: none;\n}\n\n/* Loader */\n.p-datatable .p-datatable-loading-overlay {\n position: absolute;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n z-index: 2;\n}\n\n/* Filter */\n.p-column-filter-row {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n width: 100%;\n}\n.p-column-filter-menu {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n margin-left: auto;\n}\n.p-column-filter-row .p-column-filter-element {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n width: 1%;\n}\n.p-column-filter-menu-button,\n.p-column-filter-clear-button {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n cursor: pointer;\n text-decoration: none;\n overflow: hidden;\n position: relative;\n}\n.p-column-filter-overlay {\n position: absolute;\n top: 0;\n left: 0;\n}\n.p-column-filter-row-items {\n margin: 0;\n padding: 0;\n list-style: none;\n}\n.p-column-filter-row-item {\n cursor: pointer;\n}\n.p-column-filter-add-button,\n.p-column-filter-remove-button {\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.p-column-filter-add-button .p-button-label,\n.p-column-filter-remove-button .p-button-label {\n -webkit-box-flex: 0;\n -ms-flex-positive: 0;\n flex-grow: 0;\n}\n.p-column-filter-buttonbar {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n.p-column-filter-buttonbar .p-button:not(.p-button-icon-only) {\n width: auto;\n}\n\n/* Responsive */\n.p-datatable .p-datatable-tbody > tr > td > .p-column-title {\n display: none;\n}\n\n/* VirtualScroller */\n.p-datatable .p-virtualscroller-loading {\n -webkit-transform: none !important;\n transform: none !important;\n min-height: 0;\n position: sticky;\n top: 0;\n left: 0;\n}\n";
  35936. styleInject(css_248z);
  35937. script.render = render;
  35938. /***/ }),
  35939. /***/ "./node_modules/primevue/dialog/dialog.esm.js":
  35940. /*!****************************************************!*\
  35941. !*** ./node_modules/primevue/dialog/dialog.esm.js ***!
  35942. \****************************************************/
  35943. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  35944. "use strict";
  35945. __webpack_require__.r(__webpack_exports__);
  35946. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  35947. /* harmony export */ "default": () => (/* binding */ script)
  35948. /* harmony export */ });
  35949. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  35950. /* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/ripple */ "./node_modules/primevue/ripple/ripple.esm.js");
  35951. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  35952. var script = {
  35953. name: 'Dialog',
  35954. inheritAttrs: false,
  35955. emits: ['update:visible','show','hide','maximize','unmaximize','dragend'],
  35956. props: {
  35957. header: null,
  35958. footer: null,
  35959. visible: Boolean,
  35960. modal: Boolean,
  35961. contentStyle: null,
  35962. contentClass: String,
  35963. rtl: Boolean,
  35964. maximizable: Boolean,
  35965. dismissableMask: Boolean,
  35966. closable: {
  35967. type: Boolean,
  35968. default: true
  35969. },
  35970. closeOnEscape: {
  35971. type: Boolean,
  35972. default: true
  35973. },
  35974. showHeader: {
  35975. type: Boolean,
  35976. default: true
  35977. },
  35978. baseZIndex: {
  35979. type: Number,
  35980. default: 0
  35981. },
  35982. autoZIndex: {
  35983. type: Boolean,
  35984. default: true
  35985. },
  35986. ariaCloseLabel: {
  35987. type: String,
  35988. default: 'close'
  35989. },
  35990. position: {
  35991. type: String,
  35992. default: 'center'
  35993. },
  35994. breakpoints: {
  35995. type: Object,
  35996. default: null
  35997. },
  35998. draggable: {
  35999. type: Boolean,
  36000. default: true
  36001. },
  36002. keepInViewport: {
  36003. type: Boolean,
  36004. default: true
  36005. },
  36006. minX: {
  36007. type: Number,
  36008. default: 0
  36009. },
  36010. minY: {
  36011. type: Number,
  36012. default: 0
  36013. },
  36014. appendTo: {
  36015. type: String,
  36016. default: 'body'
  36017. }
  36018. },
  36019. data() {
  36020. return {
  36021. containerVisible: this.visible,
  36022. maximized: false
  36023. }
  36024. },
  36025. documentKeydownListener: null,
  36026. container: null,
  36027. mask: null,
  36028. styleElement: null,
  36029. dragging: null,
  36030. documentDragListener: null,
  36031. documentDragEndListener: null,
  36032. lastPageX: null,
  36033. lastPageY: null,
  36034. updated() {
  36035. if (this.visible) {
  36036. this.containerVisible = this.visible;
  36037. }
  36038. },
  36039. beforeUnmount() {
  36040. this.unbindDocumentState();
  36041. this.unbindGlobalListeners();
  36042. this.destroyStyle();
  36043. this.mask = null;
  36044. if (this.container && this.autoZIndex) {
  36045. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(this.container);
  36046. }
  36047. this.container = null;
  36048. },
  36049. mounted() {
  36050. if (this.breakpoints) {
  36051. this.createStyle();
  36052. }
  36053. },
  36054. methods: {
  36055. close() {
  36056. this.$emit('update:visible', false);
  36057. },
  36058. onBeforeEnter(el) {
  36059. if (this.autoZIndex) {
  36060. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.set('modal', el, this.baseZIndex + this.$primevue.config.zIndex.modal);
  36061. }
  36062. el.setAttribute(this.attributeSelector, '');
  36063. },
  36064. onEnter() {
  36065. this.mask.style.zIndex = String(parseInt(this.container.style.zIndex, 10) - 1);
  36066. this.$emit('show');
  36067. this.focus();
  36068. this.enableDocumentSettings();
  36069. this.bindGlobalListeners();
  36070. },
  36071. onBeforeLeave() {
  36072. if (this.modal) {
  36073. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(this.mask, 'p-component-overlay-leave');
  36074. }
  36075. },
  36076. onLeave() {
  36077. this.$emit('hide');
  36078. },
  36079. onAfterLeave(el) {
  36080. if (this.autoZIndex) {
  36081. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(el);
  36082. }
  36083. this.containerVisible = false;
  36084. this.unbindDocumentState();
  36085. this.unbindGlobalListeners();
  36086. },
  36087. onMaskClick(event) {
  36088. if (this.dismissableMask && this.closable && this.modal && this.mask === event.target) {
  36089. this.close();
  36090. }
  36091. },
  36092. focus() {
  36093. let focusTarget = this.container.querySelector('[autofocus]');
  36094. if (focusTarget) {
  36095. focusTarget.focus();
  36096. }
  36097. },
  36098. maximize(event) {
  36099. if (this.maximized) {
  36100. this.maximized = false;
  36101. this.$emit('unmaximize', event);
  36102. }
  36103. else {
  36104. this.maximized = true;
  36105. this.$emit('maximize', event);
  36106. }
  36107. if (!this.modal) {
  36108. if (this.maximized)
  36109. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(document.body, 'p-overflow-hidden');
  36110. else
  36111. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(document.body, 'p-overflow-hidden');
  36112. }
  36113. },
  36114. enableDocumentSettings() {
  36115. if (this.modal || (this.maximizable && this.maximized)) {
  36116. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(document.body, 'p-overflow-hidden');
  36117. }
  36118. },
  36119. unbindDocumentState() {
  36120. if (this.modal || (this.maximizable && this.maximized)) {
  36121. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(document.body, 'p-overflow-hidden');
  36122. }
  36123. },
  36124. onKeyDown(event) {
  36125. if (event.which === 9) {
  36126. event.preventDefault();
  36127. let focusableElements = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getFocusableElements(this.container);
  36128. if (focusableElements && focusableElements.length > 0) {
  36129. if (!document.activeElement) {
  36130. focusableElements[0].focus();
  36131. }
  36132. else {
  36133. let focusedIndex = focusableElements.indexOf(document.activeElement);
  36134. if (event.shiftKey) {
  36135. if (focusedIndex == -1 || focusedIndex === 0)
  36136. focusableElements[focusableElements.length - 1].focus();
  36137. else
  36138. focusableElements[focusedIndex - 1].focus();
  36139. }
  36140. else {
  36141. if (focusedIndex == -1 || focusedIndex === (focusableElements.length - 1))
  36142. focusableElements[0].focus();
  36143. else
  36144. focusableElements[focusedIndex + 1].focus();
  36145. }
  36146. }
  36147. }
  36148. } else if (event.which === 27 && this.closeOnEscape) {
  36149. this.close();
  36150. }
  36151. },
  36152. bindDocumentKeyDownListener() {
  36153. if (!this.documentKeydownListener) {
  36154. this.documentKeydownListener = this.onKeyDown.bind(this);
  36155. window.document.addEventListener('keydown', this.documentKeydownListener);
  36156. }
  36157. },
  36158. unbindDocumentKeyDownListener() {
  36159. if (this.documentKeydownListener) {
  36160. window.document.removeEventListener('keydown', this.documentKeydownListener);
  36161. this.documentKeydownListener = null;
  36162. }
  36163. },
  36164. getPositionClass() {
  36165. const positions = ['left', 'right', 'top', 'topleft', 'topright', 'bottom', 'bottomleft', 'bottomright'];
  36166. const pos = positions.find(item => item === this.position);
  36167. return pos ? `p-dialog-${pos}` : '';
  36168. },
  36169. containerRef(el) {
  36170. this.container = el;
  36171. },
  36172. maskRef(el) {
  36173. this.mask = el;
  36174. },
  36175. createStyle() {
  36176. if (!this.styleElement) {
  36177. this.styleElement = document.createElement('style');
  36178. this.styleElement.type = 'text/css';
  36179. document.head.appendChild(this.styleElement);
  36180. let innerHTML = '';
  36181. for (let breakpoint in this.breakpoints) {
  36182. innerHTML += `
  36183. @media screen and (max-width: ${breakpoint}) {
  36184. .p-dialog[${this.attributeSelector}] {
  36185. width: ${this.breakpoints[breakpoint]} !important;
  36186. }
  36187. }
  36188. `;
  36189. }
  36190. this.styleElement.innerHTML = innerHTML;
  36191. }
  36192. },
  36193. destroyStyle() {
  36194. if (this.styleElement) {
  36195. document.head.removeChild(this.styleElement);
  36196. this.styleElement = null;
  36197. }
  36198. },
  36199. initDrag(event) {
  36200. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(event.target, 'p-dialog-header-icon') || primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(event.target.parentElement, 'p-dialog-header-icon')) {
  36201. return;
  36202. }
  36203. if (this.draggable) {
  36204. this.dragging = true;
  36205. this.lastPageX = event.pageX;
  36206. this.lastPageY = event.pageY;
  36207. this.container.style.margin = '0';
  36208. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(document.body, 'p-unselectable-text');
  36209. }
  36210. },
  36211. bindGlobalListeners() {
  36212. if (this.draggable) {
  36213. this.bindDocumentDragListener();
  36214. this.bindDocumentDragEndListener();
  36215. }
  36216. if (this.closeOnEscape && this.closable) {
  36217. this.bindDocumentKeyDownListener();
  36218. }
  36219. },
  36220. unbindGlobalListeners() {
  36221. this.unbindDocumentDragListener();
  36222. this.unbindDocumentDragEndListener();
  36223. this.unbindDocumentKeyDownListener();
  36224. },
  36225. bindDocumentDragListener() {
  36226. this.documentDragListener = (event) => {
  36227. if (this.dragging) {
  36228. let width = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(this.container);
  36229. let height = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(this.container);
  36230. let deltaX = event.pageX - this.lastPageX;
  36231. let deltaY = event.pageY - this.lastPageY;
  36232. let offset = this.container.getBoundingClientRect();
  36233. let leftPos = offset.left + deltaX;
  36234. let topPos = offset.top + deltaY;
  36235. let viewport = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getViewport();
  36236. this.container.style.position = 'fixed';
  36237. if (this.keepInViewport) {
  36238. if (leftPos >= this.minX && (leftPos + width) < viewport.width) {
  36239. this.lastPageX = event.pageX;
  36240. this.container.style.left = leftPos + 'px';
  36241. }
  36242. if (topPos >= this.minY && (topPos + height) < viewport.height) {
  36243. this.lastPageY = event.pageY;
  36244. this.container.style.top = topPos + 'px';
  36245. }
  36246. }
  36247. else {
  36248. this.lastPageX = event.pageX;
  36249. this.container.style.left = leftPos + 'px';
  36250. this.lastPageY = event.pageY;
  36251. this.container.style.top = topPos + 'px';
  36252. }
  36253. }
  36254. };
  36255. window.document.addEventListener('mousemove', this.documentDragListener);
  36256. },
  36257. unbindDocumentDragListener() {
  36258. if (this.documentDragListener) {
  36259. window.document.removeEventListener('mousemove', this.documentDragListener);
  36260. this.documentDragListener = null;
  36261. }
  36262. },
  36263. bindDocumentDragEndListener() {
  36264. this.documentDragEndListener = (event) => {
  36265. if (this.dragging) {
  36266. this.dragging = false;
  36267. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(document.body, 'p-unselectable-text');
  36268. this.$emit('dragend', event);
  36269. }
  36270. };
  36271. window.document.addEventListener('mouseup', this.documentDragEndListener);
  36272. },
  36273. unbindDocumentDragEndListener() {
  36274. if (this.documentDragEndListener) {
  36275. window.document.removeEventListener('mouseup', this.documentDragEndListener);
  36276. this.documentDragEndListener = null;
  36277. }
  36278. }
  36279. },
  36280. computed: {
  36281. maskClass() {
  36282. return ['p-dialog-mask', {'p-component-overlay p-component-overlay-enter': this.modal}, this.getPositionClass()];
  36283. },
  36284. dialogClass() {
  36285. return ['p-dialog p-component', {
  36286. 'p-dialog-rtl': this.rtl,
  36287. 'p-dialog-maximized': this.maximizable && this.maximized,
  36288. 'p-input-filled': this.$primevue.config.inputStyle === 'filled',
  36289. 'p-ripple-disabled': this.$primevue.config.ripple === false
  36290. }];
  36291. },
  36292. maximizeIconClass() {
  36293. return ['p-dialog-header-maximize-icon pi', {
  36294. 'pi-window-maximize': !this.maximized,
  36295. 'pi-window-minimize': this.maximized
  36296. }];
  36297. },
  36298. ariaId() {
  36299. return (0,primevue_utils__WEBPACK_IMPORTED_MODULE_0__.UniqueComponentId)();
  36300. },
  36301. ariaLabelledById() {
  36302. return this.header != null ? this.ariaId + '_header' : null;
  36303. },
  36304. attributeSelector() {
  36305. return (0,primevue_utils__WEBPACK_IMPORTED_MODULE_0__.UniqueComponentId)();
  36306. },
  36307. contentStyleClass() {
  36308. return ['p-dialog-content', this.contentClass];
  36309. },
  36310. appendDisabled() {
  36311. return this.appendTo === 'self';
  36312. },
  36313. appendTarget() {
  36314. return this.appendDisabled ? null : this.appendTo;
  36315. }
  36316. },
  36317. directives: {
  36318. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_1__["default"]
  36319. }
  36320. };
  36321. const _hoisted_1 = ["aria-labelledby", "aria-modal"];
  36322. const _hoisted_2 = ["id"];
  36323. const _hoisted_3 = { class: "p-dialog-header-icons" };
  36324. const _hoisted_4 = ["aria-label"];
  36325. const _hoisted_5 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_2__.createElementVNode)("span", { class: "p-dialog-header-close-icon pi pi-times" }, null, -1);
  36326. const _hoisted_6 = [
  36327. _hoisted_5
  36328. ];
  36329. const _hoisted_7 = {
  36330. key: 1,
  36331. class: "p-dialog-footer"
  36332. };
  36333. function render(_ctx, _cache, $props, $setup, $data, $options) {
  36334. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_2__.resolveDirective)("ripple");
  36335. return ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_2__.Teleport, {
  36336. to: $options.appendTarget,
  36337. disabled: $options.appendDisabled
  36338. }, [
  36339. ($data.containerVisible)
  36340. ? ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createElementBlock)("div", {
  36341. key: 0,
  36342. ref: $options.maskRef,
  36343. class: (0,vue__WEBPACK_IMPORTED_MODULE_2__.normalizeClass)($options.maskClass),
  36344. onClick: _cache[3] || (_cache[3] = (...args) => ($options.onMaskClick && $options.onMaskClick(...args)))
  36345. }, [
  36346. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)(vue__WEBPACK_IMPORTED_MODULE_2__.Transition, {
  36347. name: "p-dialog",
  36348. onBeforeEnter: $options.onBeforeEnter,
  36349. onEnter: $options.onEnter,
  36350. onBeforeLeave: $options.onBeforeLeave,
  36351. onLeave: $options.onLeave,
  36352. onAfterLeave: $options.onAfterLeave,
  36353. appear: ""
  36354. }, {
  36355. default: (0,vue__WEBPACK_IMPORTED_MODULE_2__.withCtx)(() => [
  36356. ($props.visible)
  36357. ? ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createElementBlock)("div", (0,vue__WEBPACK_IMPORTED_MODULE_2__.mergeProps)({
  36358. key: 0,
  36359. ref: $options.containerRef,
  36360. class: $options.dialogClass
  36361. }, _ctx.$attrs, {
  36362. role: "dialog",
  36363. "aria-labelledby": $options.ariaLabelledById,
  36364. "aria-modal": $props.modal
  36365. }), [
  36366. ($props.showHeader)
  36367. ? ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createElementBlock)("div", {
  36368. key: 0,
  36369. class: "p-dialog-header",
  36370. onMousedown: _cache[2] || (_cache[2] = (...args) => ($options.initDrag && $options.initDrag(...args)))
  36371. }, [
  36372. (0,vue__WEBPACK_IMPORTED_MODULE_2__.renderSlot)(_ctx.$slots, "header", {}, () => [
  36373. ($props.header)
  36374. ? ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createElementBlock)("span", {
  36375. key: 0,
  36376. id: $options.ariaLabelledById,
  36377. class: "p-dialog-title"
  36378. }, (0,vue__WEBPACK_IMPORTED_MODULE_2__.toDisplayString)($props.header), 9, _hoisted_2))
  36379. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true)
  36380. ]),
  36381. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createElementVNode)("div", _hoisted_3, [
  36382. ($props.maximizable)
  36383. ? (0,vue__WEBPACK_IMPORTED_MODULE_2__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createElementBlock)("button", {
  36384. key: 0,
  36385. class: "p-dialog-header-icon p-dialog-header-maximize p-link",
  36386. onClick: _cache[0] || (_cache[0] = (...args) => ($options.maximize && $options.maximize(...args))),
  36387. type: "button",
  36388. tabindex: "-1"
  36389. }, [
  36390. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createElementVNode)("span", {
  36391. class: (0,vue__WEBPACK_IMPORTED_MODULE_2__.normalizeClass)($options.maximizeIconClass)
  36392. }, null, 2)
  36393. ])), [
  36394. [_directive_ripple]
  36395. ])
  36396. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true),
  36397. ($props.closable)
  36398. ? (0,vue__WEBPACK_IMPORTED_MODULE_2__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createElementBlock)("button", {
  36399. key: 1,
  36400. class: "p-dialog-header-icon p-dialog-header-close p-link",
  36401. onClick: _cache[1] || (_cache[1] = (...args) => ($options.close && $options.close(...args))),
  36402. "aria-label": $props.ariaCloseLabel,
  36403. type: "button"
  36404. }, _hoisted_6, 8, _hoisted_4)), [
  36405. [_directive_ripple]
  36406. ])
  36407. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true)
  36408. ])
  36409. ], 32))
  36410. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true),
  36411. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createElementVNode)("div", {
  36412. class: (0,vue__WEBPACK_IMPORTED_MODULE_2__.normalizeClass)($options.contentStyleClass),
  36413. style: (0,vue__WEBPACK_IMPORTED_MODULE_2__.normalizeStyle)($props.contentStyle)
  36414. }, [
  36415. (0,vue__WEBPACK_IMPORTED_MODULE_2__.renderSlot)(_ctx.$slots, "default")
  36416. ], 6),
  36417. ($props.footer || _ctx.$slots.footer)
  36418. ? ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createElementBlock)("div", _hoisted_7, [
  36419. (0,vue__WEBPACK_IMPORTED_MODULE_2__.renderSlot)(_ctx.$slots, "footer", {}, () => [
  36420. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_2__.toDisplayString)($props.footer), 1)
  36421. ])
  36422. ]))
  36423. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true)
  36424. ], 16, _hoisted_1))
  36425. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true)
  36426. ]),
  36427. _: 3
  36428. }, 8, ["onBeforeEnter", "onEnter", "onBeforeLeave", "onLeave", "onAfterLeave"])
  36429. ], 2))
  36430. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true)
  36431. ], 8, ["to", "disabled"]))
  36432. }
  36433. function styleInject(css, ref) {
  36434. if ( ref === void 0 ) ref = {};
  36435. var insertAt = ref.insertAt;
  36436. if (!css || typeof document === 'undefined') { return; }
  36437. var head = document.head || document.getElementsByTagName('head')[0];
  36438. var style = document.createElement('style');
  36439. style.type = 'text/css';
  36440. if (insertAt === 'top') {
  36441. if (head.firstChild) {
  36442. head.insertBefore(style, head.firstChild);
  36443. } else {
  36444. head.appendChild(style);
  36445. }
  36446. } else {
  36447. head.appendChild(style);
  36448. }
  36449. if (style.styleSheet) {
  36450. style.styleSheet.cssText = css;
  36451. } else {
  36452. style.appendChild(document.createTextNode(css));
  36453. }
  36454. }
  36455. var css_248z = "\n.p-dialog-mask {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n pointer-events: none;\n}\n.p-dialog-mask.p-component-overlay {\n pointer-events: auto;\n}\n.p-dialog {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n pointer-events: auto;\n max-height: 90%;\n -webkit-transform: scale(1);\n transform: scale(1);\n}\n.p-dialog-content {\n overflow-y: auto;\n}\n.p-dialog-header {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n.p-dialog-footer {\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n.p-dialog .p-dialog-header-icons {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.p-dialog .p-dialog-header-icon {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n overflow: hidden;\n position: relative;\n}\n\n/* Fluid */\n.p-fluid .p-dialog-footer .p-button {\n width: auto;\n}\n\n/* Animation */\n/* Center */\n.p-dialog-enter-active {\n -webkit-transition: all 150ms cubic-bezier(0, 0, 0.2, 1);\n transition: all 150ms cubic-bezier(0, 0, 0.2, 1);\n}\n.p-dialog-leave-active {\n -webkit-transition: all 150ms cubic-bezier(0.4, 0.0, 0.2, 1);\n transition: all 150ms cubic-bezier(0.4, 0.0, 0.2, 1);\n}\n.p-dialog-enter-from,\n.p-dialog-leave-to {\n opacity: 0;\n -webkit-transform: scale(0.7);\n transform: scale(0.7);\n}\n\n/* Top, Bottom, Left, Right, Top* and Bottom* */\n.p-dialog-top .p-dialog,\n.p-dialog-bottom .p-dialog,\n.p-dialog-left .p-dialog,\n.p-dialog-right .p-dialog,\n.p-dialog-topleft .p-dialog,\n.p-dialog-topright .p-dialog,\n.p-dialog-bottomleft .p-dialog,\n.p-dialog-bottomright .p-dialog {\n margin: .75rem;\n -webkit-transform: translate3d(0px, 0px, 0px);\n transform: translate3d(0px, 0px, 0px);\n}\n.p-dialog-top .p-dialog-enter-active,\n.p-dialog-top .p-dialog-leave-active,\n.p-dialog-bottom .p-dialog-enter-active,\n.p-dialog-bottom .p-dialog-leave-active,\n.p-dialog-left .p-dialog-enter-active,\n.p-dialog-left .p-dialog-leave-active,\n.p-dialog-right .p-dialog-enter-active,\n.p-dialog-right .p-dialog-leave-active,\n.p-dialog-topleft .p-dialog-enter-active,\n.p-dialog-topleft .p-dialog-leave-active,\n.p-dialog-topright .p-dialog-enter-active,\n.p-dialog-topright .p-dialog-leave-active,\n.p-dialog-bottomleft .p-dialog-enter-active,\n.p-dialog-bottomleft .p-dialog-leave-active,\n.p-dialog-bottomright .p-dialog-enter-active,\n.p-dialog-bottomright .p-dialog-leave-active {\n -webkit-transition: all .3s ease-out;\n transition: all .3s ease-out;\n}\n.p-dialog-top .p-dialog-enter-from,\n.p-dialog-top .p-dialog-leave-to {\n -webkit-transform: translate3d(0px, -100%, 0px);\n transform: translate3d(0px, -100%, 0px);\n}\n.p-dialog-bottom .p-dialog-enter-from,\n.p-dialog-bottom .p-dialog-leave-to {\n -webkit-transform: translate3d(0px, 100%, 0px);\n transform: translate3d(0px, 100%, 0px);\n}\n.p-dialog-left .p-dialog-enter-from,\n.p-dialog-left .p-dialog-leave-to,\n.p-dialog-topleft .p-dialog-enter-from,\n.p-dialog-topleft .p-dialog-leave-to,\n.p-dialog-bottomleft .p-dialog-enter-from,\n.p-dialog-bottomleft .p-dialog-leave-to {\n -webkit-transform: translate3d(-100%, 0px, 0px);\n transform: translate3d(-100%, 0px, 0px);\n}\n.p-dialog-right .p-dialog-enter-from,\n.p-dialog-right .p-dialog-leave-to,\n.p-dialog-topright .p-dialog-enter-from,\n.p-dialog-topright .p-dialog-leave-to,\n.p-dialog-bottomright .p-dialog-enter-from,\n.p-dialog-bottomright .p-dialog-leave-to {\n -webkit-transform: translate3d(100%, 0px, 0px);\n transform: translate3d(100%, 0px, 0px);\n}\n\n/* Maximize */\n.p-dialog-maximized {\n -webkit-transition: none;\n transition: none;\n -webkit-transform: none;\n transform: none;\n width: 100vw !important;\n height: 100vh !important;\n top: 0px !important;\n left: 0px !important;\n max-height: 100%;\n height: 100%;\n}\n.p-dialog-maximized .p-dialog-content {\n -webkit-box-flex: 1;\n -ms-flex-positive: 1;\n flex-grow: 1;\n}\n\n/* Position */\n.p-dialog-left {\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n}\n.p-dialog-right {\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n}\n.p-dialog-top {\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n}\n.p-dialog-topleft {\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n}\n.p-dialog-topright {\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n}\n.p-dialog-bottom {\n -webkit-box-align: end;\n -ms-flex-align: end;\n align-items: flex-end;\n}\n.p-dialog-bottomleft {\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: end;\n -ms-flex-align: end;\n align-items: flex-end;\n}\n.p-dialog-bottomright {\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n -webkit-box-align: end;\n -ms-flex-align: end;\n align-items: flex-end;\n}\n.p-confirm-dialog .p-dialog-content {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n";
  36456. styleInject(css_248z);
  36457. script.render = render;
  36458. /***/ }),
  36459. /***/ "./node_modules/primevue/divider/divider.esm.js":
  36460. /*!******************************************************!*\
  36461. !*** ./node_modules/primevue/divider/divider.esm.js ***!
  36462. \******************************************************/
  36463. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  36464. "use strict";
  36465. __webpack_require__.r(__webpack_exports__);
  36466. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  36467. /* harmony export */ "default": () => (/* binding */ script)
  36468. /* harmony export */ });
  36469. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  36470. var script = {
  36471. name: 'Divider',
  36472. props: {
  36473. align: {
  36474. type: String,
  36475. default: null
  36476. },
  36477. layout: {
  36478. type: String,
  36479. default: 'horizontal'
  36480. },
  36481. type: {
  36482. type: String,
  36483. default: 'solid'
  36484. }
  36485. },
  36486. computed: {
  36487. containerClass() {
  36488. return ['p-divider p-component', 'p-divider-' + this.layout, 'p-divider-' + this.type,
  36489. {'p-divider-left': this.layout === 'horizontal' && (!this.align || this.align === 'left')},
  36490. {'p-divider-center': this.layout === 'horizontal' && this.align === 'center'},
  36491. {'p-divider-right': this.layout === 'horizontal' && this.align === 'right'},
  36492. {'p-divider-top': this.layout === 'vertical' && (this.align === 'top')},
  36493. {'p-divider-center': this.layout === 'vertical' && (!this.align || this.align === 'center')},
  36494. {'p-divider-bottom': this.layout === 'vertical' && this.align === 'bottom'}
  36495. ];
  36496. }
  36497. }
  36498. };
  36499. const _hoisted_1 = {
  36500. key: 0,
  36501. class: "p-divider-content"
  36502. };
  36503. function render(_ctx, _cache, $props, $setup, $data, $options) {
  36504. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", {
  36505. class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)($options.containerClass),
  36506. role: "separator"
  36507. }, [
  36508. (_ctx.$slots.default)
  36509. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_1, [
  36510. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "default")
  36511. ]))
  36512. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true)
  36513. ], 2))
  36514. }
  36515. function styleInject(css, ref) {
  36516. if ( ref === void 0 ) ref = {};
  36517. var insertAt = ref.insertAt;
  36518. if (!css || typeof document === 'undefined') { return; }
  36519. var head = document.head || document.getElementsByTagName('head')[0];
  36520. var style = document.createElement('style');
  36521. style.type = 'text/css';
  36522. if (insertAt === 'top') {
  36523. if (head.firstChild) {
  36524. head.insertBefore(style, head.firstChild);
  36525. } else {
  36526. head.appendChild(style);
  36527. }
  36528. } else {
  36529. head.appendChild(style);
  36530. }
  36531. if (style.styleSheet) {
  36532. style.styleSheet.cssText = css;
  36533. } else {
  36534. style.appendChild(document.createTextNode(css));
  36535. }
  36536. }
  36537. var css_248z = "\n.p-divider-horizontal {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n position: relative;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.p-divider-horizontal:before {\n position: absolute;\n display: block;\n top: 50%;\n left: 0;\n width: 100%;\n content: \"\";\n}\n.p-divider-horizontal.p-divider-left {\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n}\n.p-divider-horizontal.p-divider-right {\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n}\n.p-divider-horizontal.p-divider-center {\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.p-divider-content {\n z-index: 1;\n}\n.p-divider-vertical {\n min-height: 100%;\n margin: 0 1rem;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n position: relative;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.p-divider-vertical:before {\n position: absolute;\n display: block;\n top: 0;\n left: 50%;\n height: 100%;\n content: \"\";\n}\n.p-divider-vertical.p-divider-top {\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n}\n.p-divider-vertical.p-divider-center {\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.p-divider-vertical.p-divider-bottom {\n -webkit-box-align: end;\n -ms-flex-align: end;\n align-items: flex-end;\n}\n.p-divider-solid.p-divider-horizontal:before {\n border-top-style: solid;\n}\n.p-divider-solid.p-divider-vertical:before {\n border-left-style: solid;\n}\n.p-divider-dashed.p-divider-horizontal:before {\n border-top-style: dashed;\n}\n.p-divider-dashed.p-divider-vertical:before {\n border-left-style: dashed;\n}\n.p-divider-dotted.p-divider-horizontal:before {\n border-top-style: dotted;\n}\n.p-divider-dotted.p-divider-horizontal:before {\n border-left-style: dotted;\n}\n";
  36538. styleInject(css_248z);
  36539. script.render = render;
  36540. /***/ }),
  36541. /***/ "./node_modules/primevue/dropdown/dropdown.esm.js":
  36542. /*!********************************************************!*\
  36543. !*** ./node_modules/primevue/dropdown/dropdown.esm.js ***!
  36544. \********************************************************/
  36545. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  36546. "use strict";
  36547. __webpack_require__.r(__webpack_exports__);
  36548. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  36549. /* harmony export */ "default": () => (/* binding */ script)
  36550. /* harmony export */ });
  36551. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  36552. /* harmony import */ var primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/overlayeventbus */ "./node_modules/primevue/overlayeventbus/overlayeventbus.esm.js");
  36553. /* harmony import */ var primevue_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! primevue/api */ "./node_modules/primevue/api/api.esm.js");
  36554. /* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! primevue/ripple */ "./node_modules/primevue/ripple/ripple.esm.js");
  36555. /* harmony import */ var primevue_virtualscroller__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! primevue/virtualscroller */ "./node_modules/primevue/virtualscroller/virtualscroller.esm.js");
  36556. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  36557. var script = {
  36558. name: 'Dropdown',
  36559. emits: ['update:modelValue', 'before-show', 'before-hide', 'show', 'hide', 'change', 'filter', 'focus', 'blur'],
  36560. props: {
  36561. modelValue: null,
  36562. options: Array,
  36563. optionLabel: null,
  36564. optionValue: null,
  36565. optionDisabled: null,
  36566. optionGroupLabel: null,
  36567. optionGroupChildren: null,
  36568. scrollHeight: {
  36569. type: String,
  36570. default: '200px'
  36571. },
  36572. filter: Boolean,
  36573. filterPlaceholder: String,
  36574. filterLocale: String,
  36575. filterMatchMode: {
  36576. type: String,
  36577. default: 'contains'
  36578. },
  36579. filterFields: {
  36580. type: Array,
  36581. default: null
  36582. },
  36583. editable: Boolean,
  36584. placeholder: String,
  36585. disabled: Boolean,
  36586. dataKey: null,
  36587. showClear: Boolean,
  36588. inputId: String,
  36589. tabindex: String,
  36590. ariaLabelledBy: null,
  36591. appendTo: {
  36592. type: String,
  36593. default: 'body'
  36594. },
  36595. emptyFilterMessage: {
  36596. type: String,
  36597. default: null
  36598. },
  36599. emptyMessage: {
  36600. type: String,
  36601. default: null
  36602. },
  36603. panelClass: null,
  36604. loading: {
  36605. type: Boolean,
  36606. default: false
  36607. },
  36608. loadingIcon: {
  36609. type: String,
  36610. default: 'pi pi-spinner pi-spin'
  36611. },
  36612. virtualScrollerOptions: {
  36613. type: Object,
  36614. default: null
  36615. }
  36616. },
  36617. data() {
  36618. return {
  36619. focused: false,
  36620. filterValue: null,
  36621. overlayVisible: false
  36622. };
  36623. },
  36624. watch: {
  36625. modelValue() {
  36626. this.isModelValueChanged = true;
  36627. }
  36628. },
  36629. outsideClickListener: null,
  36630. scrollHandler: null,
  36631. resizeListener: null,
  36632. searchTimeout: null,
  36633. currentSearchChar: null,
  36634. previousSearchChar: null,
  36635. searchValue: null,
  36636. overlay: null,
  36637. itemsWrapper: null,
  36638. virtualScroller: null,
  36639. isModelValueChanged: false,
  36640. updated() {
  36641. if (this.overlayVisible && this.isModelValueChanged) {
  36642. this.scrollValueInView();
  36643. }
  36644. this.isModelValueChanged = false;
  36645. },
  36646. beforeUnmount() {
  36647. this.unbindOutsideClickListener();
  36648. this.unbindResizeListener();
  36649. if (this.scrollHandler) {
  36650. this.scrollHandler.destroy();
  36651. this.scrollHandler = null;
  36652. }
  36653. this.itemsWrapper = null;
  36654. if (this.overlay) {
  36655. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(this.overlay);
  36656. this.overlay = null;
  36657. }
  36658. },
  36659. methods: {
  36660. getOptionIndex(index, fn) {
  36661. return this.virtualScrollerDisabled ? index : (fn && fn(index)['index']);
  36662. },
  36663. getOptionLabel(option) {
  36664. return this.optionLabel ? primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(option, this.optionLabel) : option;
  36665. },
  36666. getOptionValue(option) {
  36667. return this.optionValue ? primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(option, this.optionValue) : option;
  36668. },
  36669. getOptionRenderKey(option) {
  36670. return this.dataKey ? primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(option, this.dataKey) : this.getOptionLabel(option);
  36671. },
  36672. isOptionDisabled(option) {
  36673. return this.optionDisabled ? primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(option, this.optionDisabled) : false;
  36674. },
  36675. getOptionGroupRenderKey(optionGroup) {
  36676. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel);
  36677. },
  36678. getOptionGroupLabel(optionGroup) {
  36679. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel);
  36680. },
  36681. getOptionGroupChildren(optionGroup) {
  36682. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupChildren);
  36683. },
  36684. getSelectedOption() {
  36685. let index = this.getSelectedOptionIndex();
  36686. return index !== -1 ? (this.optionGroupLabel ? this.getOptionGroupChildren(this.visibleOptions[index.group])[index.option]: this.visibleOptions[index]) : null;
  36687. },
  36688. getSelectedOptionIndex() {
  36689. if (this.modelValue != null && this.visibleOptions) {
  36690. if (this.optionGroupLabel) {
  36691. for (let i = 0; i < this.visibleOptions.length; i++) {
  36692. let selectedOptionIndex = this.findOptionIndexInList(this.modelValue, this.getOptionGroupChildren(this.visibleOptions[i]));
  36693. if (selectedOptionIndex !== -1) {
  36694. return {group: i, option: selectedOptionIndex};
  36695. }
  36696. }
  36697. }
  36698. else {
  36699. return this.findOptionIndexInList(this.modelValue, this.visibleOptions);
  36700. }
  36701. }
  36702. return -1;
  36703. },
  36704. findOptionIndexInList(value, list) {
  36705. for (let i = 0; i < list.length; i++) {
  36706. if ((primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.equals(value, this.getOptionValue(list[i]), this.equalityKey))) {
  36707. return i;
  36708. }
  36709. }
  36710. return -1;
  36711. },
  36712. isSelected(option) {
  36713. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.equals(this.modelValue, this.getOptionValue(option), this.equalityKey);
  36714. },
  36715. show() {
  36716. this.$emit('before-show');
  36717. this.overlayVisible = true;
  36718. },
  36719. hide() {
  36720. this.$emit('before-hide');
  36721. this.overlayVisible = false;
  36722. },
  36723. onFocus(event) {
  36724. this.focused = true;
  36725. this.$emit('focus', event);
  36726. },
  36727. onBlur(event) {
  36728. this.focused = false;
  36729. this.$emit('blur', event);
  36730. },
  36731. onKeyDown(event) {
  36732. switch(event.which) {
  36733. //down
  36734. case 40:
  36735. this.onDownKey(event);
  36736. break;
  36737. //up
  36738. case 38:
  36739. this.onUpKey(event);
  36740. break;
  36741. //space
  36742. case 32:
  36743. if (!this.overlayVisible) {
  36744. this.show();
  36745. event.preventDefault();
  36746. }
  36747. break;
  36748. //enter and escape
  36749. case 13:
  36750. case 27:
  36751. if (this.overlayVisible) {
  36752. this.hide();
  36753. event.preventDefault();
  36754. }
  36755. break;
  36756. //tab
  36757. case 9:
  36758. this.hide();
  36759. break;
  36760. default:
  36761. this.search(event);
  36762. break;
  36763. }
  36764. },
  36765. onFilterKeyDown(event) {
  36766. switch (event.which) {
  36767. //down
  36768. case 40:
  36769. this.onDownKey(event);
  36770. break;
  36771. //up
  36772. case 38:
  36773. this.onUpKey(event);
  36774. break;
  36775. //enter and escape
  36776. case 13:
  36777. case 27:
  36778. this.overlayVisible = false;
  36779. event.preventDefault();
  36780. break;
  36781. }
  36782. },
  36783. onDownKey(event) {
  36784. if (this.visibleOptions) {
  36785. if (!this.overlayVisible && event.altKey) {
  36786. this.show();
  36787. }
  36788. else {
  36789. let nextOption = this.visibleOptions && this.visibleOptions.length > 0 ? this.findNextOption(this.getSelectedOptionIndex()) : null;
  36790. if (nextOption) {
  36791. this.updateModel(event, this.getOptionValue(nextOption));
  36792. }
  36793. }
  36794. }
  36795. event.preventDefault();
  36796. },
  36797. onUpKey(event) {
  36798. if (this.visibleOptions) {
  36799. let prevOption = this.findPrevOption(this.getSelectedOptionIndex());
  36800. if (prevOption) {
  36801. this.updateModel(event, this.getOptionValue(prevOption));
  36802. }
  36803. }
  36804. event.preventDefault();
  36805. },
  36806. findNextOption(index) {
  36807. if (this.optionGroupLabel) {
  36808. let groupIndex = index === -1 ? 0 : index.group;
  36809. let optionIndex = index === -1 ? -1 : index.option;
  36810. let option = this.findNextOptionInList(this.getOptionGroupChildren(this.visibleOptions[groupIndex]), optionIndex);
  36811. if (option)
  36812. return option;
  36813. else if ((groupIndex + 1) !== this.visibleOptions.length)
  36814. return this.findNextOption({group: (groupIndex + 1), option: -1});
  36815. else
  36816. return null;
  36817. }
  36818. else {
  36819. return this.findNextOptionInList(this.visibleOptions, index);
  36820. }
  36821. },
  36822. findNextOptionInList(list, index) {
  36823. let i = index + 1;
  36824. if (i === list.length) {
  36825. return null;
  36826. }
  36827. let option = list[i];
  36828. if (this.isOptionDisabled(option))
  36829. return this.findNextOptionInList(i);
  36830. else
  36831. return option;
  36832. },
  36833. findPrevOption(index) {
  36834. if (index === -1) {
  36835. return null;
  36836. }
  36837. if (this.optionGroupLabel) {
  36838. let groupIndex = index.group;
  36839. let optionIndex = index.option;
  36840. let option = this.findPrevOptionInList(this.getOptionGroupChildren(this.visibleOptions[groupIndex]), optionIndex);
  36841. if (option)
  36842. return option;
  36843. else if (groupIndex > 0)
  36844. return this.findPrevOption({group: (groupIndex - 1), option: this.getOptionGroupChildren(this.visibleOptions[groupIndex - 1]).length});
  36845. else
  36846. return null;
  36847. }
  36848. else {
  36849. return this.findPrevOptionInList(this.visibleOptions, index);
  36850. }
  36851. },
  36852. findPrevOptionInList(list, index) {
  36853. let i = index - 1;
  36854. if (i < 0) {
  36855. return null;
  36856. }
  36857. let option = list[i];
  36858. if (this.isOptionDisabled(option))
  36859. return this.findPrevOption(i);
  36860. else
  36861. return option;
  36862. },
  36863. onClearClick(event) {
  36864. this.updateModel(event, null);
  36865. },
  36866. onClick(event) {
  36867. if (this.disabled || this.loading) {
  36868. return;
  36869. }
  36870. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(event.target, 'p-dropdown-clear-icon') || event.target.tagName === 'INPUT') {
  36871. return;
  36872. }
  36873. else if (!this.overlay || !this.overlay.contains(event.target)) {
  36874. if (this.overlayVisible)
  36875. this.hide();
  36876. else
  36877. this.show();
  36878. this.$refs.focusInput.focus();
  36879. }
  36880. },
  36881. onOptionSelect(event, option) {
  36882. let value = this.getOptionValue(option);
  36883. this.updateModel(event, value);
  36884. this.$refs.focusInput.focus();
  36885. setTimeout(() => {
  36886. this.hide();
  36887. }, 200);
  36888. },
  36889. onEditableInput(event) {
  36890. this.$emit('update:modelValue', event.target.value);
  36891. },
  36892. onOverlayEnter(el) {
  36893. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.set('overlay', el, this.$primevue.config.zIndex.overlay);
  36894. this.alignOverlay();
  36895. this.scrollValueInView();
  36896. if (!this.virtualScrollerDisabled) {
  36897. const selectedIndex = this.getSelectedOptionIndex();
  36898. if (selectedIndex !== -1) {
  36899. setTimeout(() => {
  36900. this.virtualScroller && this.virtualScroller.scrollToIndex(selectedIndex);
  36901. }, 0);
  36902. }
  36903. }
  36904. },
  36905. onOverlayAfterEnter() {
  36906. if (this.filter) {
  36907. this.$refs.filterInput.focus();
  36908. }
  36909. this.bindOutsideClickListener();
  36910. this.bindScrollListener();
  36911. this.bindResizeListener();
  36912. this.$emit('show');
  36913. },
  36914. onOverlayLeave() {
  36915. this.unbindOutsideClickListener();
  36916. this.unbindScrollListener();
  36917. this.unbindResizeListener();
  36918. this.$emit('hide');
  36919. this.itemsWrapper = null;
  36920. this.overlay = null;
  36921. },
  36922. onOverlayAfterLeave(el) {
  36923. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(el);
  36924. },
  36925. alignOverlay() {
  36926. if (this.appendDisabled) {
  36927. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.relativePosition(this.overlay, this.$el);
  36928. }
  36929. else {
  36930. this.overlay.style.minWidth = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(this.$el) + 'px';
  36931. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.absolutePosition(this.overlay, this.$el);
  36932. }
  36933. },
  36934. updateModel(event, value) {
  36935. this.$emit('update:modelValue', value);
  36936. this.$emit('change', {originalEvent: event, value: value});
  36937. },
  36938. bindOutsideClickListener() {
  36939. if (!this.outsideClickListener) {
  36940. this.outsideClickListener = (event) => {
  36941. if (this.overlayVisible && this.overlay && !this.$el.contains(event.target) && !this.overlay.contains(event.target)) {
  36942. this.hide();
  36943. }
  36944. };
  36945. document.addEventListener('click', this.outsideClickListener);
  36946. }
  36947. },
  36948. unbindOutsideClickListener() {
  36949. if (this.outsideClickListener) {
  36950. document.removeEventListener('click', this.outsideClickListener);
  36951. this.outsideClickListener = null;
  36952. }
  36953. },
  36954. bindScrollListener() {
  36955. if (!this.scrollHandler) {
  36956. this.scrollHandler = new primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ConnectedOverlayScrollHandler(this.$refs.container, () => {
  36957. if (this.overlayVisible) {
  36958. this.hide();
  36959. }
  36960. });
  36961. }
  36962. this.scrollHandler.bindScrollListener();
  36963. },
  36964. unbindScrollListener() {
  36965. if (this.scrollHandler) {
  36966. this.scrollHandler.unbindScrollListener();
  36967. }
  36968. },
  36969. bindResizeListener() {
  36970. if (!this.resizeListener) {
  36971. this.resizeListener = () => {
  36972. if (this.overlayVisible && !primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.isTouchDevice()) {
  36973. this.hide();
  36974. }
  36975. };
  36976. window.addEventListener('resize', this.resizeListener);
  36977. }
  36978. },
  36979. unbindResizeListener() {
  36980. if (this.resizeListener) {
  36981. window.removeEventListener('resize', this.resizeListener);
  36982. this.resizeListener = null;
  36983. }
  36984. },
  36985. search(event) {
  36986. if (!this.visibleOptions) {
  36987. return;
  36988. }
  36989. if (this.searchTimeout) {
  36990. clearTimeout(this.searchTimeout);
  36991. }
  36992. const char = event.key;
  36993. this.previousSearchChar = this.currentSearchChar;
  36994. this.currentSearchChar = char;
  36995. if (this.previousSearchChar === this.currentSearchChar)
  36996. this.searchValue = this.currentSearchChar;
  36997. else
  36998. this.searchValue = this.searchValue ? this.searchValue + char : char;
  36999. if (this.searchValue) {
  37000. let searchIndex = this.getSelectedOptionIndex();
  37001. let newOption = this.optionGroupLabel ? this.searchOptionInGroup(searchIndex) : this.searchOption(++searchIndex);
  37002. if (newOption) {
  37003. this.updateModel(event, this.getOptionValue(newOption));
  37004. }
  37005. }
  37006. this.searchTimeout = setTimeout(() => {
  37007. this.searchValue = null;
  37008. }, 250);
  37009. },
  37010. searchOption(index) {
  37011. let option;
  37012. if (this.searchValue) {
  37013. option = this.searchOptionInRange(index, this.visibleOptions.length);
  37014. if (!option) {
  37015. option = this.searchOptionInRange(0, index);
  37016. }
  37017. }
  37018. return option;
  37019. },
  37020. searchOptionInRange(start, end) {
  37021. for (let i = start; i < end; i++) {
  37022. let opt = this.visibleOptions[i];
  37023. if (this.matchesSearchValue(opt)) {
  37024. return opt;
  37025. }
  37026. }
  37027. return null;
  37028. },
  37029. searchOptionInGroup(index) {
  37030. let searchIndex = index === -1 ? {group: 0, option: -1} : index;
  37031. for (let i = searchIndex.group; i < this.visibleOptions.length; i++) {
  37032. let groupOptions = this.getOptionGroupChildren(this.visibleOptions[i]);
  37033. for (let j = (searchIndex.group === i ? searchIndex.option + 1 : 0); j < groupOptions.length; j++) {
  37034. if (this.matchesSearchValue(groupOptions[j])) {
  37035. return groupOptions[j];
  37036. }
  37037. }
  37038. }
  37039. for (let i = 0; i <= searchIndex.group; i++) {
  37040. let groupOptions = this.getOptionGroupChildren(this.visibleOptions[i]);
  37041. for (let j = 0; j < (searchIndex.group === i ? searchIndex.option: groupOptions.length); j++) {
  37042. if (this.matchesSearchValue(groupOptions[j])) {
  37043. return groupOptions[j];
  37044. }
  37045. }
  37046. }
  37047. return null;
  37048. },
  37049. matchesSearchValue(option) {
  37050. let label = this.getOptionLabel(option).toLocaleLowerCase(this.filterLocale);
  37051. return label.startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale));
  37052. },
  37053. onFilterChange(event) {
  37054. this.filterValue = event.target.value;
  37055. this.$emit('filter', {originalEvent: event, value: event.target.value});
  37056. },
  37057. onFilterUpdated() {
  37058. if (this.overlayVisible) {
  37059. this.alignOverlay();
  37060. }
  37061. },
  37062. overlayRef(el) {
  37063. this.overlay = el;
  37064. },
  37065. itemsWrapperRef(el) {
  37066. this.itemsWrapper = el;
  37067. },
  37068. virtualScrollerRef(el) {
  37069. this.virtualScroller = el;
  37070. },
  37071. scrollValueInView() {
  37072. if (this.overlay) {
  37073. let selectedItem = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, 'li.p-highlight');
  37074. if (selectedItem) {
  37075. selectedItem.scrollIntoView({ block: 'nearest', inline: 'start' });
  37076. }
  37077. }
  37078. },
  37079. onOverlayClick(event) {
  37080. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_1__["default"].emit('overlay-click', {
  37081. originalEvent: event,
  37082. target: this.$el
  37083. });
  37084. }
  37085. },
  37086. computed: {
  37087. visibleOptions() {
  37088. if (this.filterValue) {
  37089. if (this.optionGroupLabel) {
  37090. let filteredGroups = [];
  37091. for (let optgroup of this.options) {
  37092. let filteredSubOptions = primevue_api__WEBPACK_IMPORTED_MODULE_2__.FilterService.filter(this.getOptionGroupChildren(optgroup), this.searchFields, this.filterValue, this.filterMatchMode, this.filterLocale);
  37093. if (filteredSubOptions && filteredSubOptions.length) {
  37094. let filteredGroup = {...optgroup};
  37095. filteredGroup[this.optionGroupChildren] = filteredSubOptions;
  37096. filteredGroups.push(filteredGroup);
  37097. }
  37098. }
  37099. return filteredGroups
  37100. }
  37101. else {
  37102. return primevue_api__WEBPACK_IMPORTED_MODULE_2__.FilterService.filter(this.options, this.searchFields, this.filterValue, this.filterMatchMode, this.filterLocale);
  37103. }
  37104. }
  37105. else {
  37106. return this.options;
  37107. }
  37108. },
  37109. containerClass() {
  37110. return [
  37111. 'p-dropdown p-component p-inputwrapper',
  37112. {
  37113. 'p-disabled': this.disabled,
  37114. 'p-dropdown-clearable': this.showClear && !this.disabled,
  37115. 'p-focus': this.focused,
  37116. 'p-inputwrapper-filled': this.modelValue,
  37117. 'p-inputwrapper-focus': this.focused || this.overlayVisible
  37118. }
  37119. ];
  37120. },
  37121. labelClass() {
  37122. return [
  37123. 'p-dropdown-label p-inputtext',
  37124. {
  37125. 'p-placeholder': this.label === this.placeholder,
  37126. 'p-dropdown-label-empty': !this.$slots['value'] && (this.label === 'p-emptylabel' || this.label.length === 0)
  37127. }
  37128. ];
  37129. },
  37130. panelStyleClass() {
  37131. return ['p-dropdown-panel p-component', this.panelClass, {
  37132. 'p-input-filled': this.$primevue.config.inputStyle === 'filled',
  37133. 'p-ripple-disabled': this.$primevue.config.ripple === false
  37134. }];
  37135. },
  37136. label() {
  37137. let selectedOption = this.getSelectedOption();
  37138. if (selectedOption !== null)
  37139. return this.getOptionLabel(selectedOption);
  37140. else
  37141. return this.placeholder||'p-emptylabel';
  37142. },
  37143. editableInputValue() {
  37144. let selectedOption = this.getSelectedOption();
  37145. if (selectedOption)
  37146. return this.getOptionLabel(selectedOption);
  37147. else
  37148. return this.modelValue;
  37149. },
  37150. equalityKey() {
  37151. return this.optionValue ? null : this.dataKey;
  37152. },
  37153. searchFields() {
  37154. return this.filterFields || [this.optionLabel];
  37155. },
  37156. emptyFilterMessageText() {
  37157. return this.emptyFilterMessage || this.$primevue.config.locale.emptyFilterMessage;
  37158. },
  37159. emptyMessageText() {
  37160. return this.emptyMessage || this.$primevue.config.locale.emptyMessage;
  37161. },
  37162. appendDisabled() {
  37163. return this.appendTo === 'self';
  37164. },
  37165. virtualScrollerDisabled() {
  37166. return !this.virtualScrollerOptions;
  37167. },
  37168. appendTarget() {
  37169. return this.appendDisabled ? null : this.appendTo;
  37170. },
  37171. dropdownIconClass() {
  37172. return ['p-dropdown-trigger-icon', this.loading ? this.loadingIcon : 'pi pi-chevron-down'];
  37173. }
  37174. },
  37175. directives: {
  37176. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_3__["default"]
  37177. },
  37178. components: {
  37179. 'VirtualScroller': primevue_virtualscroller__WEBPACK_IMPORTED_MODULE_4__["default"]
  37180. }
  37181. };
  37182. const _hoisted_1 = { class: "p-hidden-accessible" };
  37183. const _hoisted_2 = ["id", "disabled", "tabindex", "aria-expanded", "aria-labelledby"];
  37184. const _hoisted_3 = ["disabled", "placeholder", "value", "aria-expanded"];
  37185. const _hoisted_4 = ["aria-expanded"];
  37186. const _hoisted_5 = {
  37187. key: 0,
  37188. class: "p-dropdown-header"
  37189. };
  37190. const _hoisted_6 = { class: "p-dropdown-filter-container" };
  37191. const _hoisted_7 = ["value", "placeholder"];
  37192. const _hoisted_8 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementVNode)("span", { class: "p-dropdown-filter-icon pi pi-search" }, null, -1);
  37193. const _hoisted_9 = ["onClick", "aria-label", "aria-selected"];
  37194. const _hoisted_10 = { class: "p-dropdown-item-group" };
  37195. const _hoisted_11 = ["onClick", "aria-label", "aria-selected"];
  37196. const _hoisted_12 = {
  37197. key: 2,
  37198. class: "p-dropdown-empty-message"
  37199. };
  37200. const _hoisted_13 = {
  37201. key: 3,
  37202. class: "p-dropdown-empty-message"
  37203. };
  37204. function render(_ctx, _cache, $props, $setup, $data, $options) {
  37205. const _component_VirtualScroller = (0,vue__WEBPACK_IMPORTED_MODULE_5__.resolveComponent)("VirtualScroller");
  37206. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_5__.resolveDirective)("ripple");
  37207. return ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementBlock)("div", {
  37208. ref: "container",
  37209. class: (0,vue__WEBPACK_IMPORTED_MODULE_5__.normalizeClass)($options.containerClass),
  37210. onClick: _cache[11] || (_cache[11] = $event => ($options.onClick($event)))
  37211. }, [
  37212. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementVNode)("div", _hoisted_1, [
  37213. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementVNode)("input", {
  37214. ref: "focusInput",
  37215. type: "text",
  37216. id: $props.inputId,
  37217. readonly: "",
  37218. disabled: $props.disabled,
  37219. onFocus: _cache[0] || (_cache[0] = (...args) => ($options.onFocus && $options.onFocus(...args))),
  37220. onBlur: _cache[1] || (_cache[1] = (...args) => ($options.onBlur && $options.onBlur(...args))),
  37221. onKeydown: _cache[2] || (_cache[2] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args))),
  37222. tabindex: $props.tabindex,
  37223. "aria-haspopup": "true",
  37224. "aria-expanded": $data.overlayVisible,
  37225. "aria-labelledby": $props.ariaLabelledBy
  37226. }, null, 40, _hoisted_2)
  37227. ]),
  37228. ($props.editable)
  37229. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementBlock)("input", {
  37230. key: 0,
  37231. type: "text",
  37232. class: "p-dropdown-label p-inputtext",
  37233. disabled: $props.disabled,
  37234. onFocus: _cache[3] || (_cache[3] = (...args) => ($options.onFocus && $options.onFocus(...args))),
  37235. onBlur: _cache[4] || (_cache[4] = (...args) => ($options.onBlur && $options.onBlur(...args))),
  37236. placeholder: $props.placeholder,
  37237. value: $options.editableInputValue,
  37238. onInput: _cache[5] || (_cache[5] = (...args) => ($options.onEditableInput && $options.onEditableInput(...args))),
  37239. "aria-haspopup": "listbox",
  37240. "aria-expanded": $data.overlayVisible
  37241. }, null, 40, _hoisted_3))
  37242. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true),
  37243. (!$props.editable)
  37244. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementBlock)("span", {
  37245. key: 1,
  37246. class: (0,vue__WEBPACK_IMPORTED_MODULE_5__.normalizeClass)($options.labelClass)
  37247. }, [
  37248. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "value", {
  37249. value: $props.modelValue,
  37250. placeholder: $props.placeholder
  37251. }, () => [
  37252. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_5__.toDisplayString)($options.label||'empty'), 1)
  37253. ])
  37254. ], 2))
  37255. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true),
  37256. ($props.showClear && $props.modelValue != null)
  37257. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementBlock)("i", {
  37258. key: 2,
  37259. class: "p-dropdown-clear-icon pi pi-times",
  37260. onClick: _cache[6] || (_cache[6] = $event => ($options.onClearClick($event)))
  37261. }))
  37262. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true),
  37263. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementVNode)("div", {
  37264. class: "p-dropdown-trigger",
  37265. role: "button",
  37266. "aria-haspopup": "listbox",
  37267. "aria-expanded": $data.overlayVisible
  37268. }, [
  37269. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "indicator", {}, () => [
  37270. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementVNode)("span", {
  37271. class: (0,vue__WEBPACK_IMPORTED_MODULE_5__.normalizeClass)($options.dropdownIconClass)
  37272. }, null, 2)
  37273. ])
  37274. ], 8, _hoisted_4),
  37275. ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Teleport, {
  37276. to: $options.appendTarget,
  37277. disabled: $options.appendDisabled
  37278. }, [
  37279. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)(vue__WEBPACK_IMPORTED_MODULE_5__.Transition, {
  37280. name: "p-connected-overlay",
  37281. onEnter: $options.onOverlayEnter,
  37282. onAfterEnter: $options.onOverlayAfterEnter,
  37283. onLeave: $options.onOverlayLeave,
  37284. onAfterLeave: $options.onOverlayAfterLeave
  37285. }, {
  37286. default: (0,vue__WEBPACK_IMPORTED_MODULE_5__.withCtx)(() => [
  37287. ($data.overlayVisible)
  37288. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementBlock)("div", {
  37289. key: 0,
  37290. ref: $options.overlayRef,
  37291. class: (0,vue__WEBPACK_IMPORTED_MODULE_5__.normalizeClass)($options.panelStyleClass),
  37292. onClick: _cache[10] || (_cache[10] = (...args) => ($options.onOverlayClick && $options.onOverlayClick(...args)))
  37293. }, [
  37294. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "header", {
  37295. value: $props.modelValue,
  37296. options: $options.visibleOptions
  37297. }),
  37298. ($props.filter)
  37299. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementBlock)("div", _hoisted_5, [
  37300. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementVNode)("div", _hoisted_6, [
  37301. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementVNode)("input", {
  37302. type: "text",
  37303. ref: "filterInput",
  37304. value: $data.filterValue,
  37305. onVnodeUpdated: _cache[7] || (_cache[7] = (...args) => ($options.onFilterUpdated && $options.onFilterUpdated(...args))),
  37306. autoComplete: "off",
  37307. class: "p-dropdown-filter p-inputtext p-component",
  37308. placeholder: $props.filterPlaceholder,
  37309. onKeydown: _cache[8] || (_cache[8] = (...args) => ($options.onFilterKeyDown && $options.onFilterKeyDown(...args))),
  37310. onInput: _cache[9] || (_cache[9] = (...args) => ($options.onFilterChange && $options.onFilterChange(...args)))
  37311. }, null, 40, _hoisted_7),
  37312. _hoisted_8
  37313. ])
  37314. ]))
  37315. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true),
  37316. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementVNode)("div", {
  37317. ref: $options.itemsWrapperRef,
  37318. class: "p-dropdown-items-wrapper",
  37319. style: (0,vue__WEBPACK_IMPORTED_MODULE_5__.normalizeStyle)({'max-height': $options.virtualScrollerDisabled ? $props.scrollHeight : ''})
  37320. }, [
  37321. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)(_component_VirtualScroller, (0,vue__WEBPACK_IMPORTED_MODULE_5__.mergeProps)({ ref: $options.virtualScrollerRef }, $props.virtualScrollerOptions, {
  37322. items: $options.visibleOptions,
  37323. style: {'height': $props.scrollHeight},
  37324. disabled: $options.virtualScrollerDisabled
  37325. }), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createSlots)({
  37326. content: (0,vue__WEBPACK_IMPORTED_MODULE_5__.withCtx)(({ styleClass, contentRef, items, getItemOptions, contentStyle }) => [
  37327. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementVNode)("ul", {
  37328. ref: contentRef,
  37329. class: (0,vue__WEBPACK_IMPORTED_MODULE_5__.normalizeClass)(['p-dropdown-items', styleClass]),
  37330. style: (0,vue__WEBPACK_IMPORTED_MODULE_5__.normalizeStyle)(contentStyle),
  37331. role: "listbox"
  37332. }, [
  37333. (!$props.optionGroupLabel)
  37334. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Fragment, { key: 0 }, (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderList)(items, (option, i) => {
  37335. return (0,vue__WEBPACK_IMPORTED_MODULE_5__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementBlock)("li", {
  37336. class: (0,vue__WEBPACK_IMPORTED_MODULE_5__.normalizeClass)(['p-dropdown-item', {'p-highlight': $options.isSelected(option), 'p-disabled': $options.isOptionDisabled(option)}]),
  37337. key: $options.getOptionRenderKey(option),
  37338. onClick: $event => ($options.onOptionSelect($event, option)),
  37339. role: "option",
  37340. "aria-label": $options.getOptionLabel(option),
  37341. "aria-selected": $options.isSelected(option)
  37342. }, [
  37343. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "option", {
  37344. option: option,
  37345. index: $options.getOptionIndex(i, getItemOptions)
  37346. }, () => [
  37347. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_5__.toDisplayString)($options.getOptionLabel(option)), 1)
  37348. ])
  37349. ], 10, _hoisted_9)), [
  37350. [_directive_ripple]
  37351. ])
  37352. }), 128))
  37353. : ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Fragment, { key: 1 }, (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderList)(items, (optionGroup, i) => {
  37354. return ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Fragment, {
  37355. key: $options.getOptionGroupRenderKey(optionGroup)
  37356. }, [
  37357. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementVNode)("li", _hoisted_10, [
  37358. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "optiongroup", {
  37359. option: optionGroup,
  37360. index: $options.getOptionIndex(i, getItemOptions)
  37361. }, () => [
  37362. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_5__.toDisplayString)($options.getOptionGroupLabel(optionGroup)), 1)
  37363. ])
  37364. ]),
  37365. ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderList)($options.getOptionGroupChildren(optionGroup), (option, i) => {
  37366. return (0,vue__WEBPACK_IMPORTED_MODULE_5__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementBlock)("li", {
  37367. class: (0,vue__WEBPACK_IMPORTED_MODULE_5__.normalizeClass)(['p-dropdown-item', {'p-highlight': $options.isSelected(option), 'p-disabled': $options.isOptionDisabled(option)}]),
  37368. key: $options.getOptionRenderKey(option),
  37369. onClick: $event => ($options.onOptionSelect($event, option)),
  37370. role: "option",
  37371. "aria-label": $options.getOptionLabel(option),
  37372. "aria-selected": $options.isSelected(option)
  37373. }, [
  37374. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "option", {
  37375. option: option,
  37376. index: $options.getOptionIndex(i, getItemOptions)
  37377. }, () => [
  37378. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_5__.toDisplayString)($options.getOptionLabel(option)), 1)
  37379. ])
  37380. ], 10, _hoisted_11)), [
  37381. [_directive_ripple]
  37382. ])
  37383. }), 128))
  37384. ], 64))
  37385. }), 128)),
  37386. ($data.filterValue && (!items || (items && items.length === 0)))
  37387. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementBlock)("li", _hoisted_12, [
  37388. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "emptyfilter", {}, () => [
  37389. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_5__.toDisplayString)($options.emptyFilterMessageText), 1)
  37390. ])
  37391. ]))
  37392. : ((!$props.options || ($props.options && $props.options.length === 0)))
  37393. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createElementBlock)("li", _hoisted_13, [
  37394. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "empty", {}, () => [
  37395. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_5__.toDisplayString)($options.emptyMessageText), 1)
  37396. ])
  37397. ]))
  37398. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true)
  37399. ], 6)
  37400. ]),
  37401. _: 2
  37402. }, [
  37403. (_ctx.$slots.loader)
  37404. ? {
  37405. name: "loader",
  37406. fn: (0,vue__WEBPACK_IMPORTED_MODULE_5__.withCtx)(({ options }) => [
  37407. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "loader", { options: options })
  37408. ])
  37409. }
  37410. : undefined
  37411. ]), 1040, ["items", "style", "disabled"])
  37412. ], 4),
  37413. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "footer", {
  37414. value: $props.modelValue,
  37415. options: $options.visibleOptions
  37416. })
  37417. ], 2))
  37418. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true)
  37419. ]),
  37420. _: 3
  37421. }, 8, ["onEnter", "onAfterEnter", "onLeave", "onAfterLeave"])
  37422. ], 8, ["to", "disabled"]))
  37423. ], 2))
  37424. }
  37425. function styleInject(css, ref) {
  37426. if ( ref === void 0 ) ref = {};
  37427. var insertAt = ref.insertAt;
  37428. if (!css || typeof document === 'undefined') { return; }
  37429. var head = document.head || document.getElementsByTagName('head')[0];
  37430. var style = document.createElement('style');
  37431. style.type = 'text/css';
  37432. if (insertAt === 'top') {
  37433. if (head.firstChild) {
  37434. head.insertBefore(style, head.firstChild);
  37435. } else {
  37436. head.appendChild(style);
  37437. }
  37438. } else {
  37439. head.appendChild(style);
  37440. }
  37441. if (style.styleSheet) {
  37442. style.styleSheet.cssText = css;
  37443. } else {
  37444. style.appendChild(document.createTextNode(css));
  37445. }
  37446. }
  37447. var css_248z = "\n.p-dropdown {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n cursor: pointer;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-dropdown-clear-icon {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n}\n.p-dropdown-trigger {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n.p-dropdown-label {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n width: 1%;\n text-overflow: ellipsis;\n cursor: pointer;\n}\n.p-dropdown-label-empty {\n overflow: hidden;\n visibility: hidden;\n}\ninput.p-dropdown-label {\n cursor: default;\n}\n.p-dropdown .p-dropdown-panel {\n min-width: 100%;\n}\n.p-dropdown-panel {\n position: absolute;\n top: 0;\n left: 0;\n}\n.p-dropdown-items-wrapper {\n overflow: auto;\n}\n.p-dropdown-item {\n cursor: pointer;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n}\n.p-dropdown-item-group {\n cursor: auto;\n}\n.p-dropdown-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n}\n.p-dropdown-filter {\n width: 100%;\n}\n.p-dropdown-filter-container {\n position: relative;\n}\n.p-dropdown-filter-icon {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n}\n.p-fluid .p-dropdown {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-fluid .p-dropdown .p-dropdown-label {\n width: 1%;\n}\n";
  37448. styleInject(css_248z);
  37449. script.render = render;
  37450. /***/ }),
  37451. /***/ "./node_modules/primevue/editor/editor.esm.js":
  37452. /*!****************************************************!*\
  37453. !*** ./node_modules/primevue/editor/editor.esm.js ***!
  37454. \****************************************************/
  37455. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  37456. "use strict";
  37457. __webpack_require__.r(__webpack_exports__);
  37458. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  37459. /* harmony export */ "default": () => (/* binding */ script)
  37460. /* harmony export */ });
  37461. /* harmony import */ var quill__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! quill */ "./node_modules/quill/dist/quill.js");
  37462. /* harmony import */ var quill__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(quill__WEBPACK_IMPORTED_MODULE_0__);
  37463. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  37464. var script = {
  37465. name: 'Editor',
  37466. emits: ['update:modelValue', 'text-change'],
  37467. props: {
  37468. modelValue: String,
  37469. placeholder: String,
  37470. readonly: Boolean,
  37471. formats: Array,
  37472. editorStyle: null
  37473. },
  37474. quill: null,
  37475. watch: {
  37476. modelValue(newValue, oldValue) {
  37477. if (newValue !== oldValue && this.quill && !this.quill.hasFocus()) {
  37478. this.renderValue(newValue);
  37479. }
  37480. }
  37481. },
  37482. mounted() {
  37483. this.quill = new (quill__WEBPACK_IMPORTED_MODULE_0___default())(this.$refs.editorElement, {
  37484. modules: {
  37485. toolbar: this.$refs.toolbarElement
  37486. },
  37487. readOnly: this.readonly,
  37488. theme: 'snow',
  37489. formats: this.formats,
  37490. placeholder: this.placeholder
  37491. });
  37492. this.renderValue(this.modelValue);
  37493. this.quill.on('text-change', (delta, oldContents, source) => {
  37494. if (source === 'user') {
  37495. let html = this.$refs.editorElement.children[0].innerHTML;
  37496. let text = this.quill.getText().trim();
  37497. if (html === '<p><br></p>') {
  37498. html = '';
  37499. }
  37500. this.$emit('update:modelValue', html);
  37501. this.$emit('text-change', {
  37502. htmlValue: html,
  37503. textValue: text,
  37504. delta: delta,
  37505. source: source,
  37506. instance: this.quill
  37507. });
  37508. }
  37509. });
  37510. },
  37511. methods: {
  37512. renderValue(value) {
  37513. if (this.quill) {
  37514. if (value)
  37515. this.quill.pasteHTML(value);
  37516. else
  37517. this.quill.setText('');
  37518. }
  37519. }
  37520. },
  37521. beforeUnmount() {
  37522. this.quill = null;
  37523. }
  37524. };
  37525. const _hoisted_1 = { class: "p-editor-container" };
  37526. const _hoisted_2 = {
  37527. ref: "toolbarElement",
  37528. class: "p-editor-toolbar"
  37529. };
  37530. const _hoisted_3 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createElementVNode)("span", { class: "ql-formats" }, [
  37531. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createElementVNode)("select", {
  37532. class: "ql-header",
  37533. defaultValue: "0"
  37534. }, [
  37535. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createElementVNode)("option", { value: "1" }, "Heading"),
  37536. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createElementVNode)("option", { value: "2" }, "Subheading"),
  37537. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createElementVNode)("option", { value: "0" }, "Normal")
  37538. ]),
  37539. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createElementVNode)("select", { class: "ql-font" }, [
  37540. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createElementVNode)("option"),
  37541. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createElementVNode)("option", { value: "serif" }),
  37542. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createElementVNode)("option", { value: "monospace" })
  37543. ])
  37544. ], -1);
  37545. const _hoisted_4 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createStaticVNode)("<span class=\"ql-formats\"><button class=\"ql-bold\" type=\"button\"></button><button class=\"ql-italic\" type=\"button\"></button><button class=\"ql-underline\" type=\"button\"></button></span><span class=\"ql-formats\"><select class=\"ql-color\"></select><select class=\"ql-background\"></select></span>", 2);
  37546. const _hoisted_6 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createElementVNode)("span", { class: "ql-formats" }, [
  37547. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createElementVNode)("button", {
  37548. class: "ql-list",
  37549. value: "ordered",
  37550. type: "button"
  37551. }),
  37552. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createElementVNode)("button", {
  37553. class: "ql-list",
  37554. value: "bullet",
  37555. type: "button"
  37556. }),
  37557. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createElementVNode)("select", { class: "ql-align" }, [
  37558. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createElementVNode)("option", { defaultValue: "" }),
  37559. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createElementVNode)("option", { value: "center" }),
  37560. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createElementVNode)("option", { value: "right" }),
  37561. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createElementVNode)("option", { value: "justify" })
  37562. ])
  37563. ], -1);
  37564. const _hoisted_7 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createStaticVNode)("<span class=\"ql-formats\"><button class=\"ql-link\" type=\"button\"></button><button class=\"ql-image\" type=\"button\"></button><button class=\"ql-code-block\" type=\"button\"></button></span><span class=\"ql-formats\"><button class=\"ql-clean\" type=\"button\"></button></span>", 2);
  37565. function render(_ctx, _cache, $props, $setup, $data, $options) {
  37566. return ((0,vue__WEBPACK_IMPORTED_MODULE_1__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_1__.createElementBlock)("div", _hoisted_1, [
  37567. (0,vue__WEBPACK_IMPORTED_MODULE_1__.createElementVNode)("div", _hoisted_2, [
  37568. (0,vue__WEBPACK_IMPORTED_MODULE_1__.renderSlot)(_ctx.$slots, "toolbar", {}, () => [
  37569. _hoisted_3,
  37570. _hoisted_4,
  37571. _hoisted_6,
  37572. _hoisted_7
  37573. ])
  37574. ], 512),
  37575. (0,vue__WEBPACK_IMPORTED_MODULE_1__.createElementVNode)("div", {
  37576. ref: "editorElement",
  37577. class: "p-editor-content",
  37578. style: (0,vue__WEBPACK_IMPORTED_MODULE_1__.normalizeStyle)($props.editorStyle)
  37579. }, null, 4)
  37580. ]))
  37581. }
  37582. function styleInject(css, ref) {
  37583. if ( ref === void 0 ) ref = {};
  37584. var insertAt = ref.insertAt;
  37585. if (!css || typeof document === 'undefined') { return; }
  37586. var head = document.head || document.getElementsByTagName('head')[0];
  37587. var style = document.createElement('style');
  37588. style.type = 'text/css';
  37589. if (insertAt === 'top') {
  37590. if (head.firstChild) {
  37591. head.insertBefore(style, head.firstChild);
  37592. } else {
  37593. head.appendChild(style);
  37594. }
  37595. } else {
  37596. head.appendChild(style);
  37597. }
  37598. if (style.styleSheet) {
  37599. style.styleSheet.cssText = css;
  37600. } else {
  37601. style.appendChild(document.createTextNode(css));
  37602. }
  37603. }
  37604. var css_248z = "\n/*!\n * Quill Editor v1.3.3\n * https://quilljs.com/\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */\n.ql-container {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n font-family: Helvetica, Arial, sans-serif;\n font-size: 13px;\n height: 100%;\n margin: 0px;\n position: relative;\n}\n.ql-container.ql-disabled .ql-tooltip {\n visibility: hidden;\n}\n.ql-container.ql-disabled .ql-editor ul[data-checked] > li::before {\n pointer-events: none;\n}\n.ql-clipboard {\n left: -100000px;\n height: 1px;\n overflow-y: hidden;\n position: absolute;\n top: 50%;\n}\n.ql-clipboard p {\n margin: 0;\n padding: 0;\n}\n.ql-editor {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n line-height: 1.42;\n height: 100%;\n outline: none;\n overflow-y: auto;\n padding: 12px 15px;\n -o-tab-size: 4;\n tab-size: 4;\n -moz-tab-size: 4;\n text-align: left;\n white-space: pre-wrap;\n word-wrap: break-word;\n}\n.ql-editor > * {\n cursor: text;\n}\n.ql-editor p,\n.ql-editor ol,\n.ql-editor ul,\n.ql-editor pre,\n.ql-editor blockquote,\n.ql-editor h1,\n.ql-editor h2,\n.ql-editor h3,\n.ql-editor h4,\n.ql-editor h5,\n.ql-editor h6 {\n margin: 0;\n padding: 0;\n counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol,\n.ql-editor ul {\n padding-left: 1.5rem;\n}\n.ql-editor ol > li,\n.ql-editor ul > li {\n list-style-type: none;\n}\n.ql-editor ul > li::before {\n content: '\\2022';\n}\n.ql-editor ul[data-checked=true],\n.ql-editor ul[data-checked=false] {\n pointer-events: none;\n}\n.ql-editor ul[data-checked=true] > li *,\n.ql-editor ul[data-checked=false] > li * {\n pointer-events: all;\n}\n.ql-editor ul[data-checked=true] > li::before,\n.ql-editor ul[data-checked=false] > li::before {\n color: #777;\n cursor: pointer;\n pointer-events: all;\n}\n.ql-editor ul[data-checked=true] > li::before {\n content: '\\2611';\n}\n.ql-editor ul[data-checked=false] > li::before {\n content: '\\2610';\n}\n.ql-editor li::before {\n display: inline-block;\n white-space: nowrap;\n width: 1.2rem;\n}\n.ql-editor li:not(.ql-direction-rtl)::before {\n margin-left: -1.5rem;\n margin-right: 0.3rem;\n text-align: right;\n}\n.ql-editor li.ql-direction-rtl::before {\n margin-left: 0.3rem;\n margin-right: -1.5rem;\n}\n.ql-editor ol li:not(.ql-direction-rtl),\n.ql-editor ul li:not(.ql-direction-rtl) {\n padding-left: 1.5rem;\n}\n.ql-editor ol li.ql-direction-rtl,\n.ql-editor ul li.ql-direction-rtl {\n padding-right: 1.5rem;\n}\n.ql-editor ol li {\n counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n counter-increment: list-0;\n}\n.ql-editor ol li:before {\n content: counter(list-0, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-1 {\n counter-increment: list-1;\n}\n.ql-editor ol li.ql-indent-1:before {\n content: counter(list-1, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-1 {\n counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-2 {\n counter-increment: list-2;\n}\n.ql-editor ol li.ql-indent-2:before {\n content: counter(list-2, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-2 {\n counter-reset: list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-3 {\n counter-increment: list-3;\n}\n.ql-editor ol li.ql-indent-3:before {\n content: counter(list-3, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-3 {\n counter-reset: list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-4 {\n counter-increment: list-4;\n}\n.ql-editor ol li.ql-indent-4:before {\n content: counter(list-4, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-4 {\n counter-reset: list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-5 {\n counter-increment: list-5;\n}\n.ql-editor ol li.ql-indent-5:before {\n content: counter(list-5, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-5 {\n counter-reset: list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-6 {\n counter-increment: list-6;\n}\n.ql-editor ol li.ql-indent-6:before {\n content: counter(list-6, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-6 {\n counter-reset: list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-7 {\n counter-increment: list-7;\n}\n.ql-editor ol li.ql-indent-7:before {\n content: counter(list-7, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-7 {\n counter-reset: list-8 list-9;\n}\n.ql-editor ol li.ql-indent-8 {\n counter-increment: list-8;\n}\n.ql-editor ol li.ql-indent-8:before {\n content: counter(list-8, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-8 {\n counter-reset: list-9;\n}\n.ql-editor ol li.ql-indent-9 {\n counter-increment: list-9;\n}\n.ql-editor ol li.ql-indent-9:before {\n content: counter(list-9, decimal) '. ';\n}\n.ql-editor .ql-indent-1:not(.ql-direction-rtl) {\n padding-left: 3rem;\n}\n.ql-editor li.ql-indent-1:not(.ql-direction-rtl) {\n padding-left: 4.5rem;\n}\n.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right {\n padding-right: 3rem;\n}\n.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right {\n padding-right: 4.5rem;\n}\n.ql-editor .ql-indent-2:not(.ql-direction-rtl) {\n padding-left: 6rem;\n}\n.ql-editor li.ql-indent-2:not(.ql-direction-rtl) {\n padding-left: 7.5rem;\n}\n.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right {\n padding-right: 6rem;\n}\n.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right {\n padding-right: 7.5rem;\n}\n.ql-editor .ql-indent-3:not(.ql-direction-rtl) {\n padding-left: 9rem;\n}\n.ql-editor li.ql-indent-3:not(.ql-direction-rtl) {\n padding-left: 10.5rem;\n}\n.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right {\n padding-right: 9rem;\n}\n.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right {\n padding-right: 10.5rem;\n}\n.ql-editor .ql-indent-4:not(.ql-direction-rtl) {\n padding-left: 12rem;\n}\n.ql-editor li.ql-indent-4:not(.ql-direction-rtl) {\n padding-left: 13.5rem;\n}\n.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right {\n padding-right: 12rem;\n}\n.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right {\n padding-right: 13.5rem;\n}\n.ql-editor .ql-indent-5:not(.ql-direction-rtl) {\n padding-left: 15rem;\n}\n.ql-editor li.ql-indent-5:not(.ql-direction-rtl) {\n padding-left: 16.5rem;\n}\n.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right {\n padding-right: 15rem;\n}\n.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right {\n padding-right: 16.5rem;\n}\n.ql-editor .ql-indent-6:not(.ql-direction-rtl) {\n padding-left: 18rem;\n}\n.ql-editor li.ql-indent-6:not(.ql-direction-rtl) {\n padding-left: 19.5rem;\n}\n.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right {\n padding-right: 18rem;\n}\n.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right {\n padding-right: 19.5rem;\n}\n.ql-editor .ql-indent-7:not(.ql-direction-rtl) {\n padding-left: 21rem;\n}\n.ql-editor li.ql-indent-7:not(.ql-direction-rtl) {\n padding-left: 22.5rem;\n}\n.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right {\n padding-right: 21rem;\n}\n.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right {\n padding-right: 22.5rem;\n}\n.ql-editor .ql-indent-8:not(.ql-direction-rtl) {\n padding-left: 24rem;\n}\n.ql-editor li.ql-indent-8:not(.ql-direction-rtl) {\n padding-left: 25.5rem;\n}\n.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right {\n padding-right: 24rem;\n}\n.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right {\n padding-right: 25.5rem;\n}\n.ql-editor .ql-indent-9:not(.ql-direction-rtl) {\n padding-left: 27rem;\n}\n.ql-editor li.ql-indent-9:not(.ql-direction-rtl) {\n padding-left: 28.5rem;\n}\n.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right {\n padding-right: 27rem;\n}\n.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right {\n padding-right: 28.5rem;\n}\n.ql-editor .ql-video {\n display: block;\n max-width: 100%;\n}\n.ql-editor .ql-video.ql-align-center {\n margin: 0 auto;\n}\n.ql-editor .ql-video.ql-align-right {\n margin: 0 0 0 auto;\n}\n.ql-editor .ql-bg-black {\n background-color: #000;\n}\n.ql-editor .ql-bg-red {\n background-color: #e60000;\n}\n.ql-editor .ql-bg-orange {\n background-color: #f90;\n}\n.ql-editor .ql-bg-yellow {\n background-color: #ff0;\n}\n.ql-editor .ql-bg-green {\n background-color: #008a00;\n}\n.ql-editor .ql-bg-blue {\n background-color: #06c;\n}\n.ql-editor .ql-bg-purple {\n background-color: #93f;\n}\n.ql-editor .ql-color-white {\n color: #fff;\n}\n.ql-editor .ql-color-red {\n color: #e60000;\n}\n.ql-editor .ql-color-orange {\n color: #f90;\n}\n.ql-editor .ql-color-yellow {\n color: #ff0;\n}\n.ql-editor .ql-color-green {\n color: #008a00;\n}\n.ql-editor .ql-color-blue {\n color: #06c;\n}\n.ql-editor .ql-color-purple {\n color: #93f;\n}\n.ql-editor .ql-font-serif {\n font-family: Georgia, Times New Roman, serif;\n}\n.ql-editor .ql-font-monospace {\n font-family: Monaco, Courier New, monospace;\n}\n.ql-editor .ql-size-small {\n font-size: 0.75rem;\n}\n.ql-editor .ql-size-large {\n font-size: 1.5rem;\n}\n.ql-editor .ql-size-huge {\n font-size: 2.5rem;\n}\n.ql-editor .ql-direction-rtl {\n direction: rtl;\n text-align: inherit;\n}\n.ql-editor .ql-align-center {\n text-align: center;\n}\n.ql-editor .ql-align-justify {\n text-align: justify;\n}\n.ql-editor .ql-align-right {\n text-align: right;\n}\n.ql-editor.ql-blank::before {\n color: rgba(0,0,0,0.6);\n content: attr(data-placeholder);\n font-style: italic;\n left: 15px;\n pointer-events: none;\n position: absolute;\n right: 15px;\n}\n.ql-snow.ql-toolbar:after,\n.ql-snow .ql-toolbar:after {\n clear: both;\n content: '';\n display: table;\n}\n.ql-snow.ql-toolbar button,\n.ql-snow .ql-toolbar button {\n background: none;\n border: none;\n cursor: pointer;\n display: inline-block;\n float: left;\n height: 24px;\n padding: 3px 5px;\n width: 28px;\n}\n.ql-snow.ql-toolbar button svg,\n.ql-snow .ql-toolbar button svg {\n float: left;\n height: 100%;\n}\n.ql-snow.ql-toolbar button:active:hover,\n.ql-snow .ql-toolbar button:active:hover {\n outline: none;\n}\n.ql-snow.ql-toolbar input.ql-image[type=file],\n.ql-snow .ql-toolbar input.ql-image[type=file] {\n display: none;\n}\n.ql-snow.ql-toolbar button:hover,\n.ql-snow .ql-toolbar button:hover,\n.ql-snow.ql-toolbar button:focus,\n.ql-snow .ql-toolbar button:focus,\n.ql-snow.ql-toolbar button.ql-active,\n.ql-snow .ql-toolbar button.ql-active,\n.ql-snow.ql-toolbar .ql-picker-label:hover,\n.ql-snow .ql-toolbar .ql-picker-label:hover,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active,\n.ql-snow.ql-toolbar .ql-picker-item:hover,\n.ql-snow .ql-toolbar .ql-picker-item:hover,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected {\n color: #06c;\n}\n.ql-snow.ql-toolbar button:hover .ql-fill,\n.ql-snow .ql-toolbar button:hover .ql-fill,\n.ql-snow.ql-toolbar button:focus .ql-fill,\n.ql-snow .ql-toolbar button:focus .ql-fill,\n.ql-snow.ql-toolbar button.ql-active .ql-fill,\n.ql-snow .ql-toolbar button.ql-active .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,\n.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill {\n fill: #06c;\n}\n.ql-snow.ql-toolbar button:hover .ql-stroke,\n.ql-snow .ql-toolbar button:hover .ql-stroke,\n.ql-snow.ql-toolbar button:focus .ql-stroke,\n.ql-snow .ql-toolbar button:focus .ql-stroke,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\n.ql-snow.ql-toolbar button:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar button:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar button:focus .ql-stroke-miter,\n.ql-snow .ql-toolbar button:focus .ql-stroke-miter,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter {\n stroke: #06c;\n}\n@media (pointer: coarse) {\n.ql-snow.ql-toolbar button:hover:not(.ql-active),\n .ql-snow .ql-toolbar button:hover:not(.ql-active) {\n color: #444;\n}\n.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,\n .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill {\n fill: #444;\n}\n.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,\n .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter {\n stroke: #444;\n}\n}\n.ql-snow {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.ql-snow * {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.ql-snow .ql-hidden {\n display: none;\n}\n.ql-snow .ql-out-bottom,\n.ql-snow .ql-out-top {\n visibility: hidden;\n}\n.ql-snow .ql-tooltip {\n position: absolute;\n -webkit-transform: translateY(10px);\n transform: translateY(10px);\n}\n.ql-snow .ql-tooltip a {\n cursor: pointer;\n text-decoration: none;\n}\n.ql-snow .ql-tooltip.ql-flip {\n -webkit-transform: translateY(-10px);\n transform: translateY(-10px);\n}\n.ql-snow .ql-formats {\n display: inline-block;\n vertical-align: middle;\n}\n.ql-snow .ql-formats:after {\n clear: both;\n content: '';\n display: table;\n}\n.ql-snow .ql-stroke {\n fill: none;\n stroke: #444;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-width: 2;\n}\n.ql-snow .ql-stroke-miter {\n fill: none;\n stroke: #444;\n stroke-miterlimit: 10;\n stroke-width: 2;\n}\n.ql-snow .ql-fill,\n.ql-snow .ql-stroke.ql-fill {\n fill: #444;\n}\n.ql-snow .ql-empty {\n fill: none;\n}\n.ql-snow .ql-even {\n fill-rule: evenodd;\n}\n.ql-snow .ql-thin,\n.ql-snow .ql-stroke.ql-thin {\n stroke-width: 1;\n}\n.ql-snow .ql-transparent {\n opacity: 0.4;\n}\n.ql-snow .ql-direction svg:last-child {\n display: none;\n}\n.ql-snow .ql-direction.ql-active svg:last-child {\n display: inline;\n}\n.ql-snow .ql-direction.ql-active svg:first-child {\n display: none;\n}\n.ql-snow .ql-editor h1 {\n font-size: 2rem;\n}\n.ql-snow .ql-editor h2 {\n font-size: 1.5rem;\n}\n.ql-snow .ql-editor h3 {\n font-size: 1.17rem;\n}\n.ql-snow .ql-editor h4 {\n font-size: 1rem;\n}\n.ql-snow .ql-editor h5 {\n font-size: 0.83rem;\n}\n.ql-snow .ql-editor h6 {\n font-size: 0.67rem;\n}\n.ql-snow .ql-editor a {\n text-decoration: underline;\n}\n.ql-snow .ql-editor blockquote {\n border-left: 4px solid #ccc;\n margin-bottom: 5px;\n margin-top: 5px;\n padding-left: 16px;\n}\n.ql-snow .ql-editor code,\n.ql-snow .ql-editor pre {\n background-color: #f0f0f0;\n border-radius: 3px;\n}\n.ql-snow .ql-editor pre {\n white-space: pre-wrap;\n margin-bottom: 5px;\n margin-top: 5px;\n padding: 5px 10px;\n}\n.ql-snow .ql-editor code {\n font-size: 85%;\n padding: 2px 4px;\n}\n.ql-snow .ql-editor pre.ql-syntax {\n background-color: #23241f;\n color: #f8f8f2;\n overflow: visible;\n}\n.ql-snow .ql-editor img {\n max-width: 100%;\n}\n.ql-snow .ql-picker {\n color: #444;\n display: inline-block;\n float: left;\n font-size: 14px;\n font-weight: 500;\n height: 24px;\n position: relative;\n vertical-align: middle;\n}\n.ql-snow .ql-picker-label {\n cursor: pointer;\n display: inline-block;\n height: 100%;\n padding-left: 8px;\n padding-right: 2px;\n position: relative;\n width: 100%;\n}\n.ql-snow .ql-picker-label::before {\n display: inline-block;\n line-height: 22px;\n}\n.ql-snow .ql-picker-options {\n background-color: #fff;\n display: none;\n min-width: 100%;\n padding: 4px 8px;\n position: absolute;\n white-space: nowrap;\n}\n.ql-snow .ql-picker-options .ql-picker-item {\n cursor: pointer;\n display: block;\n padding-bottom: 5px;\n padding-top: 5px;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label {\n color: #ccc;\n z-index: 2;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill {\n fill: #ccc;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke {\n stroke: #ccc;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-options {\n display: block;\n margin-top: -1px;\n top: 100%;\n z-index: 1;\n}\n.ql-snow .ql-color-picker,\n.ql-snow .ql-icon-picker {\n width: 28px;\n}\n.ql-snow .ql-color-picker .ql-picker-label,\n.ql-snow .ql-icon-picker .ql-picker-label {\n padding: 2px 4px;\n}\n.ql-snow .ql-color-picker .ql-picker-label svg,\n.ql-snow .ql-icon-picker .ql-picker-label svg {\n right: 4px;\n}\n.ql-snow .ql-icon-picker .ql-picker-options {\n padding: 4px 0px;\n}\n.ql-snow .ql-icon-picker .ql-picker-item {\n height: 24px;\n width: 24px;\n padding: 2px 4px;\n}\n.ql-snow .ql-color-picker .ql-picker-options {\n padding: 3px 5px;\n width: 152px;\n}\n.ql-snow .ql-color-picker .ql-picker-item {\n border: 1px solid transparent;\n float: left;\n height: 16px;\n margin: 2px;\n padding: 0px;\n width: 16px;\n}\n.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg {\n position: absolute;\n margin-top: -9px;\n right: 0;\n top: 50%;\n width: 18px;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before {\n content: attr(data-label);\n}\n.ql-snow .ql-picker.ql-header {\n width: 98px;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item::before {\n content: 'Normal';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"1\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before {\n content: 'Heading 1';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"2\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before {\n content: 'Heading 2';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"3\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before {\n content: 'Heading 3';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"4\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before {\n content: 'Heading 4';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"5\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before {\n content: 'Heading 5';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"6\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before {\n content: 'Heading 6';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before {\n font-size: 2rem;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before {\n font-size: 1.5rem;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before {\n font-size: 1.17rem;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before {\n font-size: 1rem;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before {\n font-size: 0.83rem;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before {\n font-size: 0.67rem;\n}\n.ql-snow .ql-picker.ql-font {\n width: 108px;\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item::before {\n content: 'Sans Serif';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {\n content: 'Serif';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {\n content: 'Monospace';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {\n font-family: Georgia, Times New Roman, serif;\n}\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {\n font-family: Monaco, Courier New, monospace;\n}\n.ql-snow .ql-picker.ql-size {\n width: 98px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item::before {\n content: 'Normal';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {\n content: 'Small';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {\n content: 'Large';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {\n content: 'Huge';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {\n font-size: 10px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {\n font-size: 18px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {\n font-size: 32px;\n}\n.ql-snow .ql-color-picker.ql-background .ql-picker-item {\n background-color: #fff;\n}\n.ql-snow .ql-color-picker.ql-color .ql-picker-item {\n background-color: #000;\n}\n.ql-toolbar.ql-snow {\n border: 1px solid #ccc;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;\n padding: 8px;\n}\n.ql-toolbar.ql-snow .ql-formats {\n margin-right: 15px;\n}\n.ql-toolbar.ql-snow .ql-picker-label {\n border: 1px solid transparent;\n}\n.ql-toolbar.ql-snow .ql-picker-options {\n border: 1px solid transparent;\n -webkit-box-shadow: rgba(0,0,0,0.2) 0 2px 8px;\n box-shadow: rgba(0,0,0,0.2) 0 2px 8px;\n}\n.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {\n border-color: #ccc;\n}\n.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {\n border-color: #ccc;\n}\n.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,\n.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover {\n border-color: #000;\n}\n.ql-toolbar.ql-snow + .ql-container.ql-snow {\n border-top: 0px;\n}\n.ql-snow .ql-tooltip {\n background-color: #fff;\n border: 1px solid #ccc;\n -webkit-box-shadow: 0px 0px 5px #ddd;\n box-shadow: 0px 0px 5px #ddd;\n color: #444;\n padding: 5px 12px;\n white-space: nowrap;\n}\n.ql-snow .ql-tooltip::before {\n content: \"Visit URL:\";\n line-height: 26px;\n margin-right: 8px;\n}\n.ql-snow .ql-tooltip input[type=text] {\n display: none;\n border: 1px solid #ccc;\n font-size: 13px;\n height: 26px;\n margin: 0px;\n padding: 3px 5px;\n width: 170px;\n}\n.ql-snow .ql-tooltip a.ql-preview {\n display: inline-block;\n max-width: 200px;\n overflow-x: hidden;\n text-overflow: ellipsis;\n vertical-align: top;\n}\n.ql-snow .ql-tooltip a.ql-action::after {\n border-right: 1px solid #ccc;\n content: 'Edit';\n margin-left: 16px;\n padding-right: 8px;\n}\n.ql-snow .ql-tooltip a.ql-remove::before {\n content: 'Remove';\n margin-left: 8px;\n}\n.ql-snow .ql-tooltip a {\n line-height: 26px;\n}\n.ql-snow .ql-tooltip.ql-editing a.ql-preview,\n.ql-snow .ql-tooltip.ql-editing a.ql-remove {\n display: none;\n}\n.ql-snow .ql-tooltip.ql-editing input[type=text] {\n display: inline-block;\n}\n.ql-snow .ql-tooltip.ql-editing a.ql-action::after {\n border-right: 0px;\n content: 'Save';\n padding-right: 0px;\n}\n.ql-snow .ql-tooltip[data-mode=link]::before {\n content: \"Enter link:\";\n}\n.ql-snow .ql-tooltip[data-mode=formula]::before {\n content: \"Enter formula:\";\n}\n.ql-snow .ql-tooltip[data-mode=video]::before {\n content: \"Enter video:\";\n}\n.ql-snow a {\n color: #06c;\n}\n.ql-container.ql-snow {\n border: 1px solid #ccc;\n}\n";
  37605. styleInject(css_248z);
  37606. script.render = render;
  37607. /***/ }),
  37608. /***/ "./node_modules/primevue/inputnumber/inputnumber.esm.js":
  37609. /*!**************************************************************!*\
  37610. !*** ./node_modules/primevue/inputnumber/inputnumber.esm.js ***!
  37611. \**************************************************************/
  37612. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  37613. "use strict";
  37614. __webpack_require__.r(__webpack_exports__);
  37615. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  37616. /* harmony export */ "default": () => (/* binding */ script)
  37617. /* harmony export */ });
  37618. /* harmony import */ var primevue_inputtext__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/inputtext */ "./node_modules/primevue/inputtext/inputtext.esm.js");
  37619. /* harmony import */ var primevue_button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/button */ "./node_modules/primevue/button/button.esm.js");
  37620. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  37621. var script = {
  37622. name: 'InputNumber',
  37623. inheritAttrs: false,
  37624. emits: ['update:modelValue', 'input', 'focus', 'blur'],
  37625. props: {
  37626. modelValue: {
  37627. type: Number,
  37628. default: null
  37629. },
  37630. format: {
  37631. type: Boolean,
  37632. default: true
  37633. },
  37634. showButtons: {
  37635. type: Boolean,
  37636. default: false
  37637. },
  37638. buttonLayout: {
  37639. type: String,
  37640. default: 'stacked'
  37641. },
  37642. incrementButtonClass: {
  37643. type: String,
  37644. default: null,
  37645. },
  37646. decrementButtonClass: {
  37647. type: String,
  37648. default: null,
  37649. },
  37650. incrementButtonIcon: {
  37651. type: String,
  37652. default: 'pi pi-angle-up',
  37653. },
  37654. decrementButtonIcon: {
  37655. type: String,
  37656. default: 'pi pi-angle-down',
  37657. },
  37658. locale: {
  37659. type: String,
  37660. default: undefined
  37661. },
  37662. localeMatcher: {
  37663. type: String,
  37664. default: undefined
  37665. },
  37666. mode: {
  37667. type: String,
  37668. default: 'decimal'
  37669. },
  37670. prefix: {
  37671. type: String,
  37672. default: null
  37673. },
  37674. suffix: {
  37675. type: String,
  37676. default: null
  37677. },
  37678. currency: {
  37679. type: String,
  37680. default: undefined
  37681. },
  37682. currencyDisplay: {
  37683. type: String,
  37684. default: undefined
  37685. },
  37686. useGrouping: {
  37687. type: Boolean,
  37688. default: true
  37689. },
  37690. minFractionDigits: {
  37691. type: Number,
  37692. default: undefined
  37693. },
  37694. maxFractionDigits: {
  37695. type: Number,
  37696. default: undefined
  37697. },
  37698. min: {
  37699. type: Number,
  37700. default: null
  37701. },
  37702. max: {
  37703. type: Number,
  37704. default: null
  37705. },
  37706. step: {
  37707. type: Number,
  37708. default: 1
  37709. },
  37710. allowEmpty: {
  37711. type: Boolean,
  37712. default: true
  37713. },
  37714. style: null,
  37715. class: null,
  37716. inputStyle: null,
  37717. inputClass: null
  37718. },
  37719. numberFormat: null,
  37720. _numeral: null,
  37721. _decimal: null,
  37722. _group: null,
  37723. _minusSign: null,
  37724. _currency: null,
  37725. _suffix: null,
  37726. _prefix: null,
  37727. _index: null,
  37728. groupChar: '',
  37729. isSpecialChar: null,
  37730. prefixChar: null,
  37731. suffixChar: null,
  37732. timer: null,
  37733. data() {
  37734. return {
  37735. d_modelValue: this.modelValue,
  37736. focused: false
  37737. }
  37738. },
  37739. watch: {
  37740. modelValue(newValue) {
  37741. this.d_modelValue = newValue;
  37742. },
  37743. locale(newValue, oldValue) {
  37744. this.updateConstructParser(newValue, oldValue);
  37745. },
  37746. localeMatcher(newValue, oldValue) {
  37747. this.updateConstructParser(newValue, oldValue);
  37748. },
  37749. mode(newValue, oldValue) {
  37750. this.updateConstructParser(newValue, oldValue);
  37751. },
  37752. currency(newValue, oldValue) {
  37753. this.updateConstructParser(newValue, oldValue);
  37754. },
  37755. currencyDisplay(newValue, oldValue) {
  37756. this.updateConstructParser(newValue, oldValue);
  37757. },
  37758. useGrouping(newValue, oldValue) {
  37759. this.updateConstructParser(newValue, oldValue);
  37760. },
  37761. minFractionDigits(newValue, oldValue) {
  37762. this.updateConstructParser(newValue, oldValue);
  37763. },
  37764. maxFractionDigits(newValue, oldValue) {
  37765. this.updateConstructParser(newValue, oldValue);
  37766. },
  37767. suffix(newValue, oldValue) {
  37768. this.updateConstructParser(newValue, oldValue);
  37769. },
  37770. prefix(newValue, oldValue) {
  37771. this.updateConstructParser(newValue, oldValue);
  37772. }
  37773. },
  37774. created() {
  37775. this.constructParser();
  37776. },
  37777. methods: {
  37778. getOptions() {
  37779. return {
  37780. localeMatcher: this.localeMatcher,
  37781. style: this.mode,
  37782. currency: this.currency,
  37783. currencyDisplay: this.currencyDisplay,
  37784. useGrouping: this.useGrouping,
  37785. minimumFractionDigits: this.minFractionDigits,
  37786. maximumFractionDigits: this.maxFractionDigits
  37787. };
  37788. },
  37789. constructParser() {
  37790. this.numberFormat = new Intl.NumberFormat(this.locale, this.getOptions());
  37791. const numerals = [...new Intl.NumberFormat(this.locale, {useGrouping: false}).format(9876543210)].reverse();
  37792. const index = new Map(numerals.map((d, i) => [d, i]));
  37793. this._numeral = new RegExp(`[${numerals.join('')}]`, 'g');
  37794. this._group = this.getGroupingExpression();
  37795. this._minusSign = this.getMinusSignExpression();
  37796. this._currency = this.getCurrencyExpression();
  37797. this._decimal = this.getDecimalExpression();
  37798. this._suffix = this.getSuffixExpression();
  37799. this._prefix = this.getPrefixExpression();
  37800. this._index = d => index.get(d);
  37801. },
  37802. updateConstructParser(newValue, oldValue) {
  37803. if (newValue !== oldValue) {
  37804. this.constructParser();
  37805. }
  37806. },
  37807. escapeRegExp(text) {
  37808. return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
  37809. },
  37810. getDecimalExpression() {
  37811. const formatter = new Intl.NumberFormat(this.locale, {...this.getOptions(), useGrouping: false});
  37812. return new RegExp(`[${formatter.format(1.1).replace(this._currency, '').trim().replace(this._numeral, '')}]`, 'g');
  37813. },
  37814. getGroupingExpression() {
  37815. const formatter = new Intl.NumberFormat(this.locale, {useGrouping: true});
  37816. this.groupChar = formatter.format(1000000).trim().replace(this._numeral, '').charAt(0);
  37817. return new RegExp(`[${this.groupChar}]`, 'g');
  37818. },
  37819. getMinusSignExpression() {
  37820. const formatter = new Intl.NumberFormat(this.locale, {useGrouping: false});
  37821. return new RegExp(`[${formatter.format(-1).trim().replace(this._numeral, '')}]`, 'g');
  37822. },
  37823. getCurrencyExpression() {
  37824. if (this.currency) {
  37825. const formatter = new Intl.NumberFormat(this.locale, {style: 'currency', currency: this.currency, currencyDisplay: this.currencyDisplay,
  37826. minimumFractionDigits: 0, maximumFractionDigits: 0});
  37827. return new RegExp(`[${formatter.format(1).replace(/\s/g, '').replace(this._numeral, '').replace(this._group, '')}]`, 'g');
  37828. }
  37829. return new RegExp(`[]`,'g');
  37830. },
  37831. getPrefixExpression() {
  37832. if (this.prefix) {
  37833. this.prefixChar = this.prefix;
  37834. }
  37835. else {
  37836. const formatter = new Intl.NumberFormat(this.locale, {style: this.mode, currency: this.currency, currencyDisplay: this.currencyDisplay});
  37837. this.prefixChar = formatter.format(1).split('1')[0];
  37838. }
  37839. return new RegExp(`${this.escapeRegExp(this.prefixChar||'')}`, 'g');
  37840. },
  37841. getSuffixExpression() {
  37842. if (this.suffix) {
  37843. this.suffixChar = this.suffix;
  37844. }
  37845. else {
  37846. const formatter = new Intl.NumberFormat(this.locale, {style: this.mode, currency: this.currency, currencyDisplay: this.currencyDisplay,
  37847. minimumFractionDigits: 0, maximumFractionDigits: 0});
  37848. this.suffixChar = formatter.format(1).split('1')[1];
  37849. }
  37850. return new RegExp(`${this.escapeRegExp(this.suffixChar||'')}`, 'g');
  37851. },
  37852. formatValue(value) {
  37853. if (value != null) {
  37854. if (value === '-') { // Minus sign
  37855. return value;
  37856. }
  37857. if (this.format) {
  37858. let formatter = new Intl.NumberFormat(this.locale, this.getOptions());
  37859. let formattedValue = formatter.format(value);
  37860. if (this.prefix) {
  37861. formattedValue = this.prefix + formattedValue;
  37862. }
  37863. if (this.suffix) {
  37864. formattedValue = formattedValue + this.suffix;
  37865. }
  37866. return formattedValue;
  37867. }
  37868. return value.toString();
  37869. }
  37870. return '';
  37871. },
  37872. parseValue(text) {
  37873. let filteredText = text
  37874. .replace(this._suffix, '')
  37875. .replace(this._prefix, '')
  37876. .trim()
  37877. .replace(/\s/g, '')
  37878. .replace(this._currency, '')
  37879. .replace(this._group, '')
  37880. .replace(this._minusSign, '-')
  37881. .replace(this._decimal, '.')
  37882. .replace(this._numeral, this._index);
  37883. if (filteredText) {
  37884. if (filteredText === '-') // Minus sign
  37885. return filteredText;
  37886. let parsedValue = +filteredText;
  37887. return isNaN(parsedValue) ? null : parsedValue;
  37888. }
  37889. return null;
  37890. },
  37891. repeat(event, interval, dir) {
  37892. let i = interval || 500;
  37893. this.clearTimer();
  37894. this.timer = setTimeout(() => {
  37895. this.repeat(event, 40, dir);
  37896. }, i);
  37897. this.spin(event, dir);
  37898. },
  37899. spin(event, dir) {
  37900. if (this.$refs.input) {
  37901. let step = this.step * dir;
  37902. let currentValue = this.parseValue(this.$refs.input.$el.value) || 0;
  37903. let newValue = this.validateValue(currentValue + step);
  37904. this.updateInput(newValue, null, 'spin');
  37905. this.updateModel(event, newValue);
  37906. this.handleOnInput(event, currentValue, newValue);
  37907. }
  37908. },
  37909. onUpButtonMouseDown(event) {
  37910. if (!this.$attrs.disabled) {
  37911. this.$refs.input.$el.focus();
  37912. this.repeat(event, null, 1);
  37913. event.preventDefault();
  37914. }
  37915. },
  37916. onUpButtonMouseUp() {
  37917. if (!this.$attrs.disabled) {
  37918. this.clearTimer();
  37919. }
  37920. },
  37921. onUpButtonMouseLeave() {
  37922. if (!this.$attrs.disabled) {
  37923. this.clearTimer();
  37924. }
  37925. },
  37926. onUpButtonKeyUp() {
  37927. if (!this.$attrs.disabled) {
  37928. this.clearTimer();
  37929. }
  37930. },
  37931. onUpButtonKeyDown(event) {
  37932. if (event.keyCode === 32 || event.keyCode === 13) {
  37933. this.repeat(event, null, 1);
  37934. }
  37935. },
  37936. onDownButtonMouseDown(event) {
  37937. if (!this.$attrs.disabled) {
  37938. this.$refs.input.$el.focus();
  37939. this.repeat(event, null, -1);
  37940. event.preventDefault();
  37941. }
  37942. },
  37943. onDownButtonMouseUp() {
  37944. if (!this.$attrs.disabled) {
  37945. this.clearTimer();
  37946. }
  37947. },
  37948. onDownButtonMouseLeave() {
  37949. if (!this.$attrs.disabled) {
  37950. this.clearTimer();
  37951. }
  37952. },
  37953. onDownButtonKeyUp() {
  37954. if (!this.$attrs.disabled) {
  37955. this.clearTimer();
  37956. }
  37957. },
  37958. onDownButtonKeyDown(event) {
  37959. if (event.keyCode === 32 || event.keyCode === 13) {
  37960. this.repeat(event, null, -1);
  37961. }
  37962. },
  37963. onUserInput() {
  37964. if (this.isSpecialChar) {
  37965. this.$refs.input.$el.value = this.lastValue;
  37966. }
  37967. this.isSpecialChar = false;
  37968. },
  37969. onInputKeyDown(event) {
  37970. this.lastValue = event.target.value;
  37971. if (event.shiftKey || event.altKey) {
  37972. this.isSpecialChar = true;
  37973. return;
  37974. }
  37975. let selectionStart = event.target.selectionStart;
  37976. let selectionEnd = event.target.selectionEnd;
  37977. let inputValue = event.target.value;
  37978. let newValueStr = null;
  37979. if (event.altKey) {
  37980. event.preventDefault();
  37981. }
  37982. switch (event.which) {
  37983. //up
  37984. case 38:
  37985. this.spin(event, 1);
  37986. event.preventDefault();
  37987. break;
  37988. //down
  37989. case 40:
  37990. this.spin(event, -1);
  37991. event.preventDefault();
  37992. break;
  37993. //left
  37994. case 37:
  37995. if (!this.isNumeralChar(inputValue.charAt(selectionStart - 1))) {
  37996. event.preventDefault();
  37997. }
  37998. break;
  37999. //right
  38000. case 39:
  38001. if (!this.isNumeralChar(inputValue.charAt(selectionStart))) {
  38002. event.preventDefault();
  38003. }
  38004. break;
  38005. //enter
  38006. case 13:
  38007. newValueStr = this.validateValue(this.parseValue(inputValue));
  38008. this.$refs.input.$el.value = this.formatValue(newValueStr);
  38009. this.$refs.input.$el.setAttribute('aria-valuenow', newValueStr);
  38010. this.updateModel(event, newValueStr);
  38011. break;
  38012. //backspace
  38013. case 8: {
  38014. event.preventDefault();
  38015. if (selectionStart === selectionEnd) {
  38016. const deleteChar = inputValue.charAt(selectionStart - 1);
  38017. const { decimalCharIndex, decimalCharIndexWithoutPrefix } = this.getDecimalCharIndexes(inputValue);
  38018. if (this.isNumeralChar(deleteChar)) {
  38019. const decimalLength = this.getDecimalLength(inputValue);
  38020. if (this._group.test(deleteChar)) {
  38021. this._group.lastIndex = 0;
  38022. newValueStr = inputValue.slice(0, selectionStart - 2) + inputValue.slice(selectionStart - 1);
  38023. }
  38024. else if (this._decimal.test(deleteChar)) {
  38025. this._decimal.lastIndex = 0;
  38026. if (decimalLength) {
  38027. this.$refs.input.$el.setSelectionRange(selectionStart - 1, selectionStart - 1);
  38028. }
  38029. else {
  38030. newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);
  38031. }
  38032. }
  38033. else if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
  38034. const insertedText = this.isDecimalMode() && (this.minFractionDigits || 0) < decimalLength ? '' : '0';
  38035. newValueStr = inputValue.slice(0, selectionStart - 1) + insertedText + inputValue.slice(selectionStart);
  38036. }
  38037. else if (decimalCharIndexWithoutPrefix === 1) {
  38038. newValueStr = inputValue.slice(0, selectionStart - 1) + '0' + inputValue.slice(selectionStart);
  38039. newValueStr = this.parseValue(newValueStr) > 0 ? newValueStr : '';
  38040. }
  38041. else {
  38042. newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);
  38043. }
  38044. }
  38045. this.updateValue(event, newValueStr, null, 'delete-single');
  38046. }
  38047. else {
  38048. newValueStr = this.deleteRange(inputValue, selectionStart, selectionEnd);
  38049. this.updateValue(event, newValueStr, null, 'delete-range');
  38050. }
  38051. break;
  38052. }
  38053. // del
  38054. case 46:
  38055. event.preventDefault();
  38056. if (selectionStart === selectionEnd) {
  38057. const deleteChar = inputValue.charAt(selectionStart);
  38058. const { decimalCharIndex, decimalCharIndexWithoutPrefix } = this.getDecimalCharIndexes(inputValue);
  38059. if (this.isNumeralChar(deleteChar)) {
  38060. const decimalLength = this.getDecimalLength(inputValue);
  38061. if (this._group.test(deleteChar)) {
  38062. this._group.lastIndex = 0;
  38063. newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 2);
  38064. }
  38065. else if (this._decimal.test(deleteChar)) {
  38066. this._decimal.lastIndex = 0;
  38067. if (decimalLength) {
  38068. this.$refs.input.$el.setSelectionRange(selectionStart + 1, selectionStart + 1);
  38069. }
  38070. else {
  38071. newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);
  38072. }
  38073. }
  38074. else if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
  38075. const insertedText = this.isDecimalMode() && (this.minFractionDigits || 0) < decimalLength ? '' : '0';
  38076. newValueStr = inputValue.slice(0, selectionStart) + insertedText + inputValue.slice(selectionStart + 1);
  38077. }
  38078. else if (decimalCharIndexWithoutPrefix === 1) {
  38079. newValueStr = inputValue.slice(0, selectionStart) + '0' + inputValue.slice(selectionStart + 1);
  38080. newValueStr = this.parseValue(newValueStr) > 0 ? newValueStr : '';
  38081. }
  38082. else {
  38083. newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);
  38084. }
  38085. }
  38086. this.updateValue(event, newValueStr, null, 'delete-back-single');
  38087. }
  38088. else {
  38089. newValueStr = this.deleteRange(inputValue, selectionStart, selectionEnd);
  38090. this.updateValue(event, newValueStr, null, 'delete-range');
  38091. }
  38092. break;
  38093. }
  38094. },
  38095. onInputKeyPress(event) {
  38096. event.preventDefault();
  38097. let code = event.which || event.keyCode;
  38098. let char = String.fromCharCode(code);
  38099. const isDecimalSign = this.isDecimalSign(char);
  38100. const isMinusSign = this.isMinusSign(char);
  38101. if ((48 <= code && code <= 57) || isMinusSign || isDecimalSign) {
  38102. this.insert(event, char, { isDecimalSign, isMinusSign });
  38103. }
  38104. },
  38105. onPaste(event) {
  38106. event.preventDefault();
  38107. let data = (event.clipboardData || window['clipboardData']).getData('Text');
  38108. if (data) {
  38109. let filteredData = this.parseValue(data);
  38110. if (filteredData != null) {
  38111. this.insert(event, filteredData.toString());
  38112. }
  38113. }
  38114. },
  38115. allowMinusSign() {
  38116. return this.min === null || this.min < 0;
  38117. },
  38118. isMinusSign(char) {
  38119. if (this._minusSign.test(char) || char === '-') {
  38120. this._minusSign.lastIndex = 0;
  38121. return true;
  38122. }
  38123. return false;
  38124. },
  38125. isDecimalSign(char) {
  38126. if (this._decimal.test(char)) {
  38127. this._decimal.lastIndex = 0;
  38128. return true;
  38129. }
  38130. return false;
  38131. },
  38132. isDecimalMode() {
  38133. return this.mode === 'decimal';
  38134. },
  38135. getDecimalCharIndexes(val) {
  38136. let decimalCharIndex = val.search(this._decimal);
  38137. this._decimal.lastIndex = 0;
  38138. const filteredVal = val.replace(this._prefix, '').trim().replace(/\s/g, '').replace(this._currency, '');
  38139. const decimalCharIndexWithoutPrefix = filteredVal.search(this._decimal);
  38140. this._decimal.lastIndex = 0;
  38141. return { decimalCharIndex, decimalCharIndexWithoutPrefix };
  38142. },
  38143. getCharIndexes(val) {
  38144. const decimalCharIndex = val.search(this._decimal);
  38145. this._decimal.lastIndex = 0;
  38146. const minusCharIndex = val.search(this._minusSign);
  38147. this._minusSign.lastIndex = 0;
  38148. const suffixCharIndex = val.search(this._suffix);
  38149. this._suffix.lastIndex = 0;
  38150. const currencyCharIndex = val.search(this._currency);
  38151. this._currency.lastIndex = 0;
  38152. return { decimalCharIndex, minusCharIndex, suffixCharIndex, currencyCharIndex };
  38153. },
  38154. insert(event, text, sign = { isDecimalSign: false, isMinusSign: false }) {
  38155. const minusCharIndexOnText = text.search(this._minusSign);
  38156. this._minusSign.lastIndex = 0;
  38157. if (!this.allowMinusSign() && minusCharIndexOnText !== -1) {
  38158. return;
  38159. }
  38160. const selectionStart = this.$refs.input.$el.selectionStart;
  38161. const selectionEnd = this.$refs.input.$el.selectionEnd;
  38162. let inputValue = this.$refs.input.$el.value.trim();
  38163. const { decimalCharIndex, minusCharIndex, suffixCharIndex, currencyCharIndex } = this.getCharIndexes(inputValue);
  38164. let newValueStr;
  38165. if (sign.isMinusSign) {
  38166. if (selectionStart === 0) {
  38167. newValueStr = inputValue;
  38168. if (minusCharIndex === -1 || selectionEnd !== 0) {
  38169. newValueStr = this.insertText(inputValue, text, 0, selectionEnd);
  38170. }
  38171. this.updateValue(event, newValueStr, text, 'insert');
  38172. }
  38173. }
  38174. else if (sign.isDecimalSign) {
  38175. if (decimalCharIndex > 0 && selectionStart === decimalCharIndex) {
  38176. this.updateValue(event, inputValue, text, 'insert');
  38177. }
  38178. else if (decimalCharIndex > selectionStart && decimalCharIndex < selectionEnd) {
  38179. newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
  38180. this.updateValue(event, newValueStr, text, 'insert');
  38181. }
  38182. else if (decimalCharIndex === -1 && this.maxFractionDigits) {
  38183. newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
  38184. this.updateValue(event, newValueStr, text, 'insert');
  38185. }
  38186. }
  38187. else {
  38188. const maxFractionDigits = this.numberFormat.resolvedOptions().maximumFractionDigits;
  38189. const operation = selectionStart !== selectionEnd ? 'range-insert' : 'insert';
  38190. if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
  38191. if ((selectionStart + text.length - (decimalCharIndex + 1)) <= maxFractionDigits) {
  38192. const charIndex = currencyCharIndex >= selectionStart ? currencyCharIndex - 1 : (suffixCharIndex >= selectionStart ? suffixCharIndex : inputValue.length);
  38193. newValueStr = inputValue.slice(0, selectionStart) + text + inputValue.slice(selectionStart + text.length, charIndex) + inputValue.slice(charIndex);
  38194. this.updateValue(event, newValueStr, text, operation);
  38195. }
  38196. }
  38197. else {
  38198. newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
  38199. this.updateValue(event, newValueStr, text, operation);
  38200. }
  38201. }
  38202. },
  38203. insertText(value, text, start, end) {
  38204. let textSplit = text === '.' ? text : text.split('.');
  38205. if (textSplit.length === 2) {
  38206. const decimalCharIndex = value.slice(start, end).search(this._decimal);
  38207. this._decimal.lastIndex = 0;
  38208. return (decimalCharIndex > 0) ? value.slice(0, start) + this.formatValue(text) + value.slice(end) : (value || this.formatValue(text));
  38209. }
  38210. else if ((end - start) === value.length) {
  38211. return this.formatValue(text);
  38212. }
  38213. else if (start === 0) {
  38214. return text + value.slice(end);
  38215. }
  38216. else if (end === value.length) {
  38217. return value.slice(0, start) + text;
  38218. }
  38219. else {
  38220. return value.slice(0, start) + text + value.slice(end);
  38221. }
  38222. },
  38223. deleteRange(value, start, end) {
  38224. let newValueStr;
  38225. if ((end - start) === value.length)
  38226. newValueStr = '';
  38227. else if (start === 0)
  38228. newValueStr = value.slice(end);
  38229. else if (end === value.length)
  38230. newValueStr = value.slice(0, start);
  38231. else
  38232. newValueStr = value.slice(0, start) + value.slice(end);
  38233. return newValueStr;
  38234. },
  38235. initCursor() {
  38236. let selectionStart = this.$refs.input.$el.selectionStart;
  38237. let inputValue = this.$refs.input.$el.value;
  38238. let valueLength = inputValue.length;
  38239. let index = null;
  38240. // remove prefix
  38241. let prefixLength = (this.prefixChar || '').length;
  38242. inputValue = inputValue.replace(this._prefix, '');
  38243. selectionStart = selectionStart - prefixLength;
  38244. let char = inputValue.charAt(selectionStart);
  38245. if (this.isNumeralChar(char)) {
  38246. return selectionStart + prefixLength;
  38247. }
  38248. //left
  38249. let i = selectionStart - 1;
  38250. while (i >= 0) {
  38251. char = inputValue.charAt(i);
  38252. if (this.isNumeralChar(char)) {
  38253. index = i + prefixLength;
  38254. break;
  38255. }
  38256. else {
  38257. i--;
  38258. }
  38259. }
  38260. if (index !== null) {
  38261. this.$refs.input.$el.setSelectionRange(index + 1, index + 1);
  38262. }
  38263. else {
  38264. i = selectionStart;
  38265. while (i < valueLength) {
  38266. char = inputValue.charAt(i);
  38267. if (this.isNumeralChar(char)) {
  38268. index = i + prefixLength;
  38269. break;
  38270. }
  38271. else {
  38272. i++;
  38273. }
  38274. }
  38275. if (index !== null) {
  38276. this.$refs.input.$el.setSelectionRange(index, index);
  38277. }
  38278. }
  38279. return index || 0;
  38280. },
  38281. onInputClick() {
  38282. this.initCursor();
  38283. },
  38284. isNumeralChar(char) {
  38285. if (char.length === 1 && (this._numeral.test(char) || this._decimal.test(char) || this._group.test(char) || this._minusSign.test(char))) {
  38286. this.resetRegex();
  38287. return true;
  38288. }
  38289. return false;
  38290. },
  38291. resetRegex() {
  38292. this._numeral.lastIndex = 0;
  38293. this._decimal.lastIndex = 0;
  38294. this._group.lastIndex = 0;
  38295. this._minusSign.lastIndex = 0;
  38296. },
  38297. updateValue(event, valueStr, insertedValueStr, operation) {
  38298. let currentValue = this.$refs.input.$el.value;
  38299. let newValue = null;
  38300. if (valueStr != null) {
  38301. newValue = this.parseValue(valueStr);
  38302. newValue = !newValue && !this.allowEmpty ? 0 : newValue;
  38303. this.updateInput(newValue, insertedValueStr, operation, valueStr);
  38304. this.handleOnInput(event, currentValue, newValue);
  38305. }
  38306. },
  38307. handleOnInput(event, currentValue, newValue) {
  38308. if (this.isValueChanged(currentValue, newValue)) {
  38309. this.$emit('input', { originalEvent: event, value: newValue });
  38310. }
  38311. },
  38312. isValueChanged(currentValue, newValue) {
  38313. if (newValue === null && currentValue !== null) {
  38314. return true;
  38315. }
  38316. if (newValue != null) {
  38317. let parsedCurrentValue = (typeof currentValue === 'string') ? this.parseValue(currentValue) : currentValue;
  38318. return newValue !== parsedCurrentValue;
  38319. }
  38320. return false;
  38321. },
  38322. validateValue(value) {
  38323. if (value === '-' || value == null) {
  38324. return null;
  38325. }
  38326. if (this.min != null && value < this.min) {
  38327. return this.min;
  38328. }
  38329. if (this.max != null && value > this.max) {
  38330. return this.max;
  38331. }
  38332. return value;
  38333. },
  38334. updateInput(value, insertedValueStr, operation, valueStr) {
  38335. insertedValueStr = insertedValueStr || '';
  38336. let inputValue = this.$refs.input.$el.value;
  38337. let newValue = this.formatValue(value);
  38338. let currentLength = inputValue.length;
  38339. if (newValue !== valueStr) {
  38340. newValue = this.concatValues(newValue, valueStr);
  38341. }
  38342. if (currentLength === 0) {
  38343. this.$refs.input.$el.value = newValue;
  38344. this.$refs.input.$el.setSelectionRange(0, 0);
  38345. const index = this.initCursor();
  38346. const selectionEnd = index + insertedValueStr.length;
  38347. this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
  38348. }
  38349. else {
  38350. let selectionStart = this.$refs.input.$el.selectionStart;
  38351. let selectionEnd = this.$refs.input.$el.selectionEnd;
  38352. this.$refs.input.$el.value = newValue;
  38353. let newLength = newValue.length;
  38354. if (operation === 'range-insert') {
  38355. const startValue = this.parseValue((inputValue || '').slice(0, selectionStart));
  38356. const startValueStr = startValue !== null ? startValue.toString() : '';
  38357. const startExpr = startValueStr.split('').join(`(${this.groupChar})?`);
  38358. const sRegex = new RegExp(startExpr, 'g');
  38359. sRegex.test(newValue);
  38360. const tExpr = insertedValueStr.split('').join(`(${this.groupChar})?`);
  38361. const tRegex = new RegExp(tExpr, 'g');
  38362. tRegex.test(newValue.slice(sRegex.lastIndex));
  38363. selectionEnd = sRegex.lastIndex + tRegex.lastIndex;
  38364. this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
  38365. }
  38366. else if (newLength === currentLength) {
  38367. if (operation === 'insert' || operation === 'delete-back-single')
  38368. this.$refs.input.$el.setSelectionRange(selectionEnd + 1, selectionEnd + 1);
  38369. else if (operation === 'delete-single')
  38370. this.$refs.input.$el.setSelectionRange(selectionEnd - 1, selectionEnd - 1);
  38371. else if (operation === 'delete-range' || operation === 'spin')
  38372. this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
  38373. }
  38374. else if (operation === 'delete-back-single') {
  38375. let prevChar = inputValue.charAt(selectionEnd - 1);
  38376. let nextChar = inputValue.charAt(selectionEnd);
  38377. let diff = currentLength - newLength;
  38378. let isGroupChar = this._group.test(nextChar);
  38379. if (isGroupChar && diff === 1) {
  38380. selectionEnd += 1;
  38381. }
  38382. else if (!isGroupChar && this.isNumeralChar(prevChar)) {
  38383. selectionEnd += (-1 * diff) + 1;
  38384. }
  38385. this._group.lastIndex = 0;
  38386. this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
  38387. }
  38388. else if (inputValue === '-' && operation === 'insert') {
  38389. this.$refs.input.$el.setSelectionRange(0, 0);
  38390. const index = this.initCursor();
  38391. const selectionEnd = index + insertedValueStr.length + 1;
  38392. this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
  38393. }
  38394. else {
  38395. selectionEnd = selectionEnd + (newLength - currentLength);
  38396. this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
  38397. }
  38398. }
  38399. this.$refs.input.$el.setAttribute('aria-valuenow', value);
  38400. },
  38401. concatValues(val1, val2) {
  38402. if (val1 && val2) {
  38403. let decimalCharIndex = val2.search(this._decimal);
  38404. this._decimal.lastIndex = 0;
  38405. return decimalCharIndex !== -1 ? (val1.split(this._decimal)[0] + val2.slice(decimalCharIndex)) : val1;
  38406. }
  38407. return val1;
  38408. },
  38409. getDecimalLength(value) {
  38410. if (value) {
  38411. const valueSplit = value.split(this._decimal);
  38412. if (valueSplit.length === 2) {
  38413. return valueSplit[1].replace(this._suffix, '')
  38414. .trim()
  38415. .replace(/\s/g, '')
  38416. .replace(this._currency, '').length;
  38417. }
  38418. }
  38419. return 0;
  38420. },
  38421. updateModel(event, value) {
  38422. this.d_modelValue = value;
  38423. this.$emit('update:modelValue', value);
  38424. },
  38425. onInputFocus(event) {
  38426. this.focused = true;
  38427. this.$emit('focus', event);
  38428. },
  38429. onInputBlur(event) {
  38430. this.focused = false;
  38431. let input = event.target;
  38432. let newValue = this.validateValue(this.parseValue(input.value));
  38433. this.$emit('blur', { originalEvent: event, value: input.value});
  38434. input.value = this.formatValue(newValue);
  38435. input.setAttribute('aria-valuenow', newValue);
  38436. this.updateModel(event, newValue);
  38437. },
  38438. clearTimer() {
  38439. if (this.timer) {
  38440. clearInterval(this.timer);
  38441. }
  38442. },
  38443. maxBoundry() {
  38444. return this.d_modelValue >= this.max;
  38445. },
  38446. minBoundry() {
  38447. return this.d_modelValue <= this.min;
  38448. },
  38449. },
  38450. computed: {
  38451. containerClass() {
  38452. return ['p-inputnumber p-component p-inputwrapper', this.class, {
  38453. 'p-inputwrapper-filled': this.filled,
  38454. 'p-inputwrapper-focus': this.focused,
  38455. 'p-inputnumber-buttons-stacked': this.showButtons && this.buttonLayout === 'stacked',
  38456. 'p-inputnumber-buttons-horizontal': this.showButtons && this.buttonLayout === 'horizontal',
  38457. 'p-inputnumber-buttons-vertical': this.showButtons && this.buttonLayout === 'vertical'
  38458. }];
  38459. },
  38460. upButtonClass() {
  38461. return ['p-inputnumber-button p-inputnumber-button-up', this.incrementButtonClass, {
  38462. 'p-disabled': this.showButtons && this.max !== null && this.maxBoundry()
  38463. }];
  38464. },
  38465. downButtonClass() {
  38466. return ['p-inputnumber-button p-inputnumber-button-down', this.decrementButtonClass, {
  38467. 'p-disabled': this.showButtons && this.min !== null && this.minBoundry()
  38468. }];
  38469. },
  38470. filled() {
  38471. return (this.modelValue != null && this.modelValue.toString().length > 0)
  38472. },
  38473. upButtonListeners() {
  38474. return {
  38475. mousedown: event => this.onUpButtonMouseDown(event),
  38476. mouseup: event => this.onUpButtonMouseUp(event),
  38477. mouseleave: event => this.onUpButtonMouseLeave(event),
  38478. keydown: event => this.onUpButtonKeyDown(event),
  38479. keyup: event => this.onUpButtonKeyUp(event)
  38480. }
  38481. },
  38482. downButtonListeners() {
  38483. return {
  38484. mousedown: event => this.onDownButtonMouseDown(event),
  38485. mouseup: event => this.onDownButtonMouseUp(event),
  38486. mouseleave: event => this.onDownButtonMouseLeave(event),
  38487. keydown: event => this.onDownButtonKeyDown(event),
  38488. keyup: event => this.onDownButtonKeyUp(event)
  38489. }
  38490. },
  38491. formattedValue() {
  38492. const val = !this.modelValue && !this.allowEmpty ? 0 : this.modelValue;
  38493. return this.formatValue(val);
  38494. },
  38495. getFormatter() {
  38496. return this.numberFormat;
  38497. }
  38498. },
  38499. components: {
  38500. 'INInputText': primevue_inputtext__WEBPACK_IMPORTED_MODULE_0__["default"],
  38501. 'INButton': primevue_button__WEBPACK_IMPORTED_MODULE_1__["default"]
  38502. }
  38503. };
  38504. const _hoisted_1 = {
  38505. key: 0,
  38506. class: "p-inputnumber-button-group"
  38507. };
  38508. function render(_ctx, _cache, $props, $setup, $data, $options) {
  38509. const _component_INInputText = (0,vue__WEBPACK_IMPORTED_MODULE_2__.resolveComponent)("INInputText");
  38510. const _component_INButton = (0,vue__WEBPACK_IMPORTED_MODULE_2__.resolveComponent)("INButton");
  38511. return ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createElementBlock)("span", {
  38512. class: (0,vue__WEBPACK_IMPORTED_MODULE_2__.normalizeClass)($options.containerClass),
  38513. style: (0,vue__WEBPACK_IMPORTED_MODULE_2__.normalizeStyle)($props.style)
  38514. }, [
  38515. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)(_component_INInputText, (0,vue__WEBPACK_IMPORTED_MODULE_2__.mergeProps)({
  38516. ref: "input",
  38517. class: ['p-inputnumber-input', $props.inputClass],
  38518. style: $props.inputStyle,
  38519. value: $options.formattedValue
  38520. }, _ctx.$attrs, {
  38521. "aria-valumin": $props.min,
  38522. "aria-valuemax": $props.max,
  38523. onInput: $options.onUserInput,
  38524. onKeydown: $options.onInputKeyDown,
  38525. onKeypress: $options.onInputKeyPress,
  38526. onPaste: $options.onPaste,
  38527. onClick: $options.onInputClick,
  38528. onFocus: $options.onInputFocus,
  38529. onBlur: $options.onInputBlur
  38530. }), null, 16, ["class", "style", "value", "aria-valumin", "aria-valuemax", "onInput", "onKeydown", "onKeypress", "onPaste", "onClick", "onFocus", "onBlur"]),
  38531. ($props.showButtons && $props.buttonLayout === 'stacked')
  38532. ? ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createElementBlock)("span", _hoisted_1, [
  38533. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)(_component_INButton, (0,vue__WEBPACK_IMPORTED_MODULE_2__.mergeProps)({
  38534. class: $options.upButtonClass,
  38535. icon: $props.incrementButtonIcon
  38536. }, (0,vue__WEBPACK_IMPORTED_MODULE_2__.toHandlers)($options.upButtonListeners), {
  38537. disabled: _ctx.$attrs.disabled
  38538. }), null, 16, ["class", "icon", "disabled"]),
  38539. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)(_component_INButton, (0,vue__WEBPACK_IMPORTED_MODULE_2__.mergeProps)({
  38540. class: $options.downButtonClass,
  38541. icon: $props.decrementButtonIcon
  38542. }, (0,vue__WEBPACK_IMPORTED_MODULE_2__.toHandlers)($options.downButtonListeners), {
  38543. disabled: _ctx.$attrs.disabled
  38544. }), null, 16, ["class", "icon", "disabled"])
  38545. ]))
  38546. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true),
  38547. ($props.showButtons && $props.buttonLayout !== 'stacked')
  38548. ? ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)(_component_INButton, (0,vue__WEBPACK_IMPORTED_MODULE_2__.mergeProps)({
  38549. key: 1,
  38550. class: $options.upButtonClass,
  38551. icon: $props.incrementButtonIcon
  38552. }, (0,vue__WEBPACK_IMPORTED_MODULE_2__.toHandlers)($options.upButtonListeners), {
  38553. disabled: _ctx.$attrs.disabled
  38554. }), null, 16, ["class", "icon", "disabled"]))
  38555. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true),
  38556. ($props.showButtons && $props.buttonLayout !== 'stacked')
  38557. ? ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)(_component_INButton, (0,vue__WEBPACK_IMPORTED_MODULE_2__.mergeProps)({
  38558. key: 2,
  38559. class: $options.downButtonClass,
  38560. icon: $props.decrementButtonIcon
  38561. }, (0,vue__WEBPACK_IMPORTED_MODULE_2__.toHandlers)($options.downButtonListeners), {
  38562. disabled: _ctx.$attrs.disabled
  38563. }), null, 16, ["class", "icon", "disabled"]))
  38564. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true)
  38565. ], 6))
  38566. }
  38567. function styleInject(css, ref) {
  38568. if ( ref === void 0 ) ref = {};
  38569. var insertAt = ref.insertAt;
  38570. if (!css || typeof document === 'undefined') { return; }
  38571. var head = document.head || document.getElementsByTagName('head')[0];
  38572. var style = document.createElement('style');
  38573. style.type = 'text/css';
  38574. if (insertAt === 'top') {
  38575. if (head.firstChild) {
  38576. head.insertBefore(style, head.firstChild);
  38577. } else {
  38578. head.appendChild(style);
  38579. }
  38580. } else {
  38581. head.appendChild(style);
  38582. }
  38583. if (style.styleSheet) {
  38584. style.styleSheet.cssText = css;
  38585. } else {
  38586. style.appendChild(document.createTextNode(css));
  38587. }
  38588. }
  38589. var css_248z = "\n.p-inputnumber {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n}\n.p-inputnumber-button {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-flex: 0;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label,\n.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label {\n display: none;\n}\n.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-up {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n padding: 0;\n}\n.p-inputnumber-buttons-stacked .p-inputnumber-input {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-down {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n border-bottom-left-radius: 0;\n padding: 0;\n}\n.p-inputnumber-buttons-stacked .p-inputnumber-button-group {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n}\n.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-up {\n -webkit-box-ordinal-group: 4;\n -ms-flex-order: 3;\n order: 3;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.p-inputnumber-buttons-horizontal .p-inputnumber-input {\n -webkit-box-ordinal-group: 3;\n -ms-flex-order: 2;\n order: 2;\n border-radius: 0;\n}\n.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-down {\n -webkit-box-ordinal-group: 2;\n -ms-flex-order: 1;\n order: 1;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-inputnumber-buttons-vertical {\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-up {\n -webkit-box-ordinal-group: 2;\n -ms-flex-order: 1;\n order: 1;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n width: 100%;\n}\n.p-inputnumber-buttons-vertical .p-inputnumber-input {\n -webkit-box-ordinal-group: 3;\n -ms-flex-order: 2;\n order: 2;\n border-radius: 0;\n text-align: center;\n}\n.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-down {\n -webkit-box-ordinal-group: 4;\n -ms-flex-order: 3;\n order: 3;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n width: 100%;\n}\n.p-inputnumber-input {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n}\n.p-fluid .p-inputnumber {\n width: 100%;\n}\n.p-fluid .p-inputnumber .p-inputnumber-input {\n width: 1%;\n}\n.p-fluid .p-inputnumber-buttons-vertical .p-inputnumber-input {\n width: 100%;\n}\n";
  38590. styleInject(css_248z);
  38591. script.render = render;
  38592. /***/ }),
  38593. /***/ "./node_modules/primevue/inputtext/inputtext.esm.js":
  38594. /*!**********************************************************!*\
  38595. !*** ./node_modules/primevue/inputtext/inputtext.esm.js ***!
  38596. \**********************************************************/
  38597. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  38598. "use strict";
  38599. __webpack_require__.r(__webpack_exports__);
  38600. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  38601. /* harmony export */ "default": () => (/* binding */ script)
  38602. /* harmony export */ });
  38603. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  38604. var script = {
  38605. name: 'InputText',
  38606. emits: ['update:modelValue'],
  38607. props: {
  38608. modelValue: null
  38609. },
  38610. methods: {
  38611. onInput(event) {
  38612. this.$emit('update:modelValue', event.target.value);
  38613. }
  38614. },
  38615. computed: {
  38616. filled() {
  38617. return (this.modelValue != null && this.modelValue.toString().length > 0)
  38618. }
  38619. }
  38620. };
  38621. const _hoisted_1 = ["value"];
  38622. function render(_ctx, _cache, $props, $setup, $data, $options) {
  38623. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("input", (0,vue__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({
  38624. class: ['p-inputtext p-component', {'p-filled': $options.filled}],
  38625. value: $props.modelValue,
  38626. onInput: _cache[0] || (_cache[0] = (...args) => ($options.onInput && $options.onInput(...args)))
  38627. }, _ctx.$attrs), null, 16, _hoisted_1))
  38628. }
  38629. script.render = render;
  38630. /***/ }),
  38631. /***/ "./node_modules/primevue/message/message.esm.js":
  38632. /*!******************************************************!*\
  38633. !*** ./node_modules/primevue/message/message.esm.js ***!
  38634. \******************************************************/
  38635. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  38636. "use strict";
  38637. __webpack_require__.r(__webpack_exports__);
  38638. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  38639. /* harmony export */ "default": () => (/* binding */ script)
  38640. /* harmony export */ });
  38641. /* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/ripple */ "./node_modules/primevue/ripple/ripple.esm.js");
  38642. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  38643. var script = {
  38644. name: 'Message',
  38645. emits: ['close'],
  38646. props: {
  38647. severity: {
  38648. type: String,
  38649. default: 'info'
  38650. },
  38651. closable: {
  38652. type: Boolean,
  38653. default: true
  38654. },
  38655. sticky: {
  38656. type: Boolean,
  38657. default: true
  38658. },
  38659. life: {
  38660. type: Number,
  38661. default: 3000
  38662. },
  38663. icon: {
  38664. type: String,
  38665. default: null
  38666. },
  38667. },
  38668. timeout: null,
  38669. data() {
  38670. return {
  38671. visible: true
  38672. }
  38673. },
  38674. mounted() {
  38675. if (!this.sticky) {
  38676. setTimeout(() => {
  38677. this.visible = false;
  38678. }, this.life);
  38679. }
  38680. },
  38681. methods: {
  38682. close(event) {
  38683. this.visible = false;
  38684. this.$emit('close', event);
  38685. }
  38686. },
  38687. computed: {
  38688. containerClass() {
  38689. return 'p-message p-component p-message-' + this.severity;
  38690. },
  38691. iconClass() {
  38692. return ['p-message-icon pi', this.icon ? this.icon : {
  38693. 'pi-info-circle': this.severity === 'info',
  38694. 'pi-check': this.severity === 'success',
  38695. 'pi-exclamation-triangle': this.severity === 'warn',
  38696. 'pi-times-circle': this.severity === 'error'
  38697. }];
  38698. }
  38699. },
  38700. directives: {
  38701. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_0__["default"]
  38702. }
  38703. };
  38704. const _hoisted_1 = { class: "p-message-wrapper" };
  38705. const _hoisted_2 = { class: "p-message-text" };
  38706. const _hoisted_3 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createElementVNode)("i", { class: "p-message-close-icon pi pi-times" }, null, -1);
  38707. const _hoisted_4 = [
  38708. _hoisted_3
  38709. ];
  38710. function render(_ctx, _cache, $props, $setup, $data, $options) {
  38711. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_1__.resolveDirective)("ripple");
  38712. return ((0,vue__WEBPACK_IMPORTED_MODULE_1__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_1__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_1__.Transition, {
  38713. name: "p-message",
  38714. appear: ""
  38715. }, {
  38716. default: (0,vue__WEBPACK_IMPORTED_MODULE_1__.withCtx)(() => [
  38717. (0,vue__WEBPACK_IMPORTED_MODULE_1__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_1__.createElementVNode)("div", {
  38718. class: (0,vue__WEBPACK_IMPORTED_MODULE_1__.normalizeClass)($options.containerClass),
  38719. role: "alert"
  38720. }, [
  38721. (0,vue__WEBPACK_IMPORTED_MODULE_1__.createElementVNode)("div", _hoisted_1, [
  38722. (0,vue__WEBPACK_IMPORTED_MODULE_1__.createElementVNode)("span", {
  38723. class: (0,vue__WEBPACK_IMPORTED_MODULE_1__.normalizeClass)($options.iconClass)
  38724. }, null, 2),
  38725. (0,vue__WEBPACK_IMPORTED_MODULE_1__.createElementVNode)("div", _hoisted_2, [
  38726. (0,vue__WEBPACK_IMPORTED_MODULE_1__.renderSlot)(_ctx.$slots, "default")
  38727. ]),
  38728. ($props.closable)
  38729. ? (0,vue__WEBPACK_IMPORTED_MODULE_1__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_1__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_1__.createElementBlock)("button", {
  38730. key: 0,
  38731. class: "p-message-close p-link",
  38732. onClick: _cache[0] || (_cache[0] = $event => ($options.close($event))),
  38733. type: "button"
  38734. }, _hoisted_4)), [
  38735. [_directive_ripple]
  38736. ])
  38737. : (0,vue__WEBPACK_IMPORTED_MODULE_1__.createCommentVNode)("", true)
  38738. ])
  38739. ], 2), [
  38740. [vue__WEBPACK_IMPORTED_MODULE_1__.vShow, $data.visible]
  38741. ])
  38742. ]),
  38743. _: 3
  38744. }))
  38745. }
  38746. function styleInject(css, ref) {
  38747. if ( ref === void 0 ) ref = {};
  38748. var insertAt = ref.insertAt;
  38749. if (!css || typeof document === 'undefined') { return; }
  38750. var head = document.head || document.getElementsByTagName('head')[0];
  38751. var style = document.createElement('style');
  38752. style.type = 'text/css';
  38753. if (insertAt === 'top') {
  38754. if (head.firstChild) {
  38755. head.insertBefore(style, head.firstChild);
  38756. } else {
  38757. head.appendChild(style);
  38758. }
  38759. } else {
  38760. head.appendChild(style);
  38761. }
  38762. if (style.styleSheet) {
  38763. style.styleSheet.cssText = css;
  38764. } else {
  38765. style.appendChild(document.createTextNode(css));
  38766. }
  38767. }
  38768. var css_248z = "\n.p-message-wrapper {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.p-message-close {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.p-message-close.p-link {\n margin-left: auto;\n overflow: hidden;\n position: relative;\n}\n.p-message-enter-from {\n opacity: 0;\n}\n.p-message-enter-active {\n -webkit-transition: opacity .3s;\n transition: opacity .3s;\n}\n.p-message.p-message-leave-from {\n max-height: 1000px;\n}\n.p-message.p-message-leave-to {\n max-height: 0;\n opacity: 0;\n margin: 0 !important;\n}\n.p-message-leave-active {\n overflow: hidden;\n -webkit-transition: max-height .3s cubic-bezier(0, 1, 0, 1), opacity .3s, margin .15s;\n transition: max-height .3s cubic-bezier(0, 1, 0, 1), opacity .3s, margin .15s;\n}\n.p-message-leave-active .p-message-close {\n display: none;\n}\n";
  38769. styleInject(css_248z);
  38770. script.render = render;
  38771. /***/ }),
  38772. /***/ "./node_modules/primevue/overlayeventbus/overlayeventbus.esm.js":
  38773. /*!**********************************************************************!*\
  38774. !*** ./node_modules/primevue/overlayeventbus/overlayeventbus.esm.js ***!
  38775. \**********************************************************************/
  38776. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  38777. "use strict";
  38778. __webpack_require__.r(__webpack_exports__);
  38779. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  38780. /* harmony export */ "default": () => (/* binding */ OverlayEventBus)
  38781. /* harmony export */ });
  38782. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  38783. var OverlayEventBus = (0,primevue_utils__WEBPACK_IMPORTED_MODULE_0__.EventBus)();
  38784. /***/ }),
  38785. /***/ "./node_modules/primevue/paginator/paginator.esm.js":
  38786. /*!**********************************************************!*\
  38787. !*** ./node_modules/primevue/paginator/paginator.esm.js ***!
  38788. \**********************************************************/
  38789. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  38790. "use strict";
  38791. __webpack_require__.r(__webpack_exports__);
  38792. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  38793. /* harmony export */ "default": () => (/* binding */ script)
  38794. /* harmony export */ });
  38795. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  38796. /* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/ripple */ "./node_modules/primevue/ripple/ripple.esm.js");
  38797. /* harmony import */ var primevue_dropdown__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! primevue/dropdown */ "./node_modules/primevue/dropdown/dropdown.esm.js");
  38798. /* harmony import */ var primevue_inputnumber__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! primevue/inputnumber */ "./node_modules/primevue/inputnumber/inputnumber.esm.js");
  38799. var script$9 = {
  38800. name: 'CurrentPageReport',
  38801. inheritAttrs: false,
  38802. props: {
  38803. pageCount: {
  38804. type: Number,
  38805. default: 0
  38806. },
  38807. currentPage: {
  38808. type: Number,
  38809. default: 0
  38810. },
  38811. page: {
  38812. type: Number,
  38813. default: 0
  38814. },
  38815. first: {
  38816. type: Number,
  38817. default: 0
  38818. },
  38819. rows: {
  38820. type: Number,
  38821. default: 0
  38822. },
  38823. totalRecords: {
  38824. type: Number,
  38825. default: 0
  38826. },
  38827. template: {
  38828. type: String,
  38829. default: '({currentPage} of {totalPages})'
  38830. }
  38831. },
  38832. computed: {
  38833. text() {
  38834. let text = this.template
  38835. .replace("{currentPage}", this.currentPage)
  38836. .replace("{totalPages}", this.pageCount)
  38837. .replace("{first}", this.pageCount > 0 ? this.first + 1 : 0)
  38838. .replace("{last}", Math.min(this.first + this.rows, this.totalRecords))
  38839. .replace("{rows}", this.rows)
  38840. .replace("{totalRecords}", this.totalRecords);
  38841. return text;
  38842. }
  38843. }
  38844. };
  38845. const _hoisted_1$6 = { class: "p-paginator-current" };
  38846. function render$9(_ctx, _cache, $props, $setup, $data, $options) {
  38847. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("span", _hoisted_1$6, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($options.text), 1))
  38848. }
  38849. script$9.render = render$9;
  38850. var script$8 = {
  38851. name: 'FirstPageLink',
  38852. computed: {
  38853. containerClass() {
  38854. return ['p-paginator-first p-paginator-element p-link', {
  38855. 'p-disabled': this.$attrs.disabled
  38856. }];
  38857. }
  38858. },
  38859. directives: {
  38860. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_1__["default"]
  38861. }
  38862. };
  38863. const _hoisted_1$5 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", { class: "p-paginator-icon pi pi-angle-double-left" }, null, -1);
  38864. const _hoisted_2$5 = [
  38865. _hoisted_1$5
  38866. ];
  38867. function render$8(_ctx, _cache, $props, $setup, $data, $options) {
  38868. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveDirective)("ripple");
  38869. return (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("button", {
  38870. class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)($options.containerClass),
  38871. type: "button"
  38872. }, _hoisted_2$5, 2)), [
  38873. [_directive_ripple]
  38874. ])
  38875. }
  38876. script$8.render = render$8;
  38877. var script$7 = {
  38878. name: 'LastPageLink',
  38879. computed: {
  38880. containerClass() {
  38881. return ['p-paginator-last p-paginator-element p-link', {
  38882. 'p-disabled': this.$attrs.disabled
  38883. }];
  38884. }
  38885. },
  38886. directives: {
  38887. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_1__["default"]
  38888. }
  38889. };
  38890. const _hoisted_1$4 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", { class: "p-paginator-icon pi pi-angle-double-right" }, null, -1);
  38891. const _hoisted_2$4 = [
  38892. _hoisted_1$4
  38893. ];
  38894. function render$7(_ctx, _cache, $props, $setup, $data, $options) {
  38895. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveDirective)("ripple");
  38896. return (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("button", {
  38897. class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)($options.containerClass),
  38898. type: "button"
  38899. }, _hoisted_2$4, 2)), [
  38900. [_directive_ripple]
  38901. ])
  38902. }
  38903. script$7.render = render$7;
  38904. var script$6 = {
  38905. name: 'NextPageLink',
  38906. computed: {
  38907. containerClass() {
  38908. return ['p-paginator-next p-paginator-element p-link', {
  38909. 'p-disabled': this.$attrs.disabled
  38910. }];
  38911. }
  38912. },
  38913. directives: {
  38914. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_1__["default"]
  38915. }
  38916. };
  38917. const _hoisted_1$3 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", { class: "p-paginator-icon pi pi-angle-right" }, null, -1);
  38918. const _hoisted_2$3 = [
  38919. _hoisted_1$3
  38920. ];
  38921. function render$6(_ctx, _cache, $props, $setup, $data, $options) {
  38922. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveDirective)("ripple");
  38923. return (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("button", {
  38924. class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)($options.containerClass),
  38925. type: "button"
  38926. }, _hoisted_2$3, 2)), [
  38927. [_directive_ripple]
  38928. ])
  38929. }
  38930. script$6.render = render$6;
  38931. var script$5 = {
  38932. name: 'PageLinks',
  38933. inheritAttrs: false,
  38934. emits: ['click'],
  38935. props: {
  38936. value: Array,
  38937. page: Number
  38938. },
  38939. methods: {
  38940. onPageLinkClick(event, pageLink) {
  38941. this.$emit('click', {
  38942. originalEvent: event,
  38943. value: pageLink
  38944. });
  38945. }
  38946. },
  38947. directives: {
  38948. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_1__["default"]
  38949. }
  38950. };
  38951. const _hoisted_1$2 = { class: "p-paginator-pages" };
  38952. const _hoisted_2$2 = ["onClick"];
  38953. function render$5(_ctx, _cache, $props, $setup, $data, $options) {
  38954. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveDirective)("ripple");
  38955. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("span", _hoisted_1$2, [
  38956. ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)($props.value, (pageLink) => {
  38957. return (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("button", {
  38958. key: pageLink,
  38959. class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(['p-paginator-page p-paginator-element p-link', {'p-highlight': ((pageLink - 1) === $props.page)}]),
  38960. type: "button",
  38961. onClick: $event => ($options.onPageLinkClick($event, pageLink))
  38962. }, [
  38963. (0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(pageLink), 1)
  38964. ], 10, _hoisted_2$2)), [
  38965. [_directive_ripple]
  38966. ])
  38967. }), 128))
  38968. ]))
  38969. }
  38970. script$5.render = render$5;
  38971. var script$4 = {
  38972. name: 'PrevPageLink',
  38973. computed: {
  38974. containerClass() {
  38975. return ['p-paginator-prev p-paginator-element p-link', {
  38976. 'p-disabled': this.$attrs.disabled
  38977. }];
  38978. }
  38979. },
  38980. directives: {
  38981. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_1__["default"]
  38982. }
  38983. };
  38984. const _hoisted_1$1 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", { class: "p-paginator-icon pi pi-angle-left" }, null, -1);
  38985. const _hoisted_2$1 = [
  38986. _hoisted_1$1
  38987. ];
  38988. function render$4(_ctx, _cache, $props, $setup, $data, $options) {
  38989. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveDirective)("ripple");
  38990. return (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("button", {
  38991. class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)($options.containerClass),
  38992. type: "button"
  38993. }, _hoisted_2$1, 2)), [
  38994. [_directive_ripple]
  38995. ])
  38996. }
  38997. script$4.render = render$4;
  38998. var script$3 = {
  38999. name: 'RowsPerPageDropdown',
  39000. inheritAttrs: false,
  39001. emits: ['rows-change'],
  39002. props: {
  39003. options: Array,
  39004. rows: Number,
  39005. disabled: Boolean
  39006. },
  39007. methods: {
  39008. onChange(value) {
  39009. this.$emit('rows-change', value);
  39010. }
  39011. },
  39012. computed: {
  39013. rowsOptions() {
  39014. let opts = [];
  39015. if (this.options) {
  39016. for(let i= 0; i < this.options.length; i++) {
  39017. opts.push({label: String(this.options[i]), value: this.options[i]});
  39018. }
  39019. }
  39020. return opts;
  39021. }
  39022. },
  39023. components: {
  39024. 'RPPDropdown': primevue_dropdown__WEBPACK_IMPORTED_MODULE_2__["default"]
  39025. }
  39026. };
  39027. function render$3(_ctx, _cache, $props, $setup, $data, $options) {
  39028. const _component_RPPDropdown = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("RPPDropdown");
  39029. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_RPPDropdown, {
  39030. modelValue: $props.rows,
  39031. options: $options.rowsOptions,
  39032. optionLabel: "label",
  39033. optionValue: "value",
  39034. "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ($options.onChange($event))),
  39035. class: "p-paginator-rpp-options",
  39036. disabled: $props.disabled
  39037. }, null, 8, ["modelValue", "options", "disabled"]))
  39038. }
  39039. script$3.render = render$3;
  39040. var script$2 = {
  39041. name: 'JumpToPageDropdown',
  39042. inheritAttrs: false,
  39043. emits: ['page-change'],
  39044. props: {
  39045. page: Number,
  39046. pageCount: Number,
  39047. disabled: Boolean
  39048. },
  39049. methods: {
  39050. onChange(value) {
  39051. this.$emit('page-change', value);
  39052. }
  39053. },
  39054. computed: {
  39055. pageOptions() {
  39056. let opts = [];
  39057. for(let i= 0; i < this.pageCount; i++) {
  39058. opts.push({label: String(i+1), value: i});
  39059. }
  39060. return opts;
  39061. }
  39062. },
  39063. components: {
  39064. 'JTPDropdown': primevue_dropdown__WEBPACK_IMPORTED_MODULE_2__["default"]
  39065. }
  39066. };
  39067. function render$2(_ctx, _cache, $props, $setup, $data, $options) {
  39068. const _component_JTPDropdown = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("JTPDropdown");
  39069. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_JTPDropdown, {
  39070. modelValue: $props.page,
  39071. options: $options.pageOptions,
  39072. optionLabel: "label",
  39073. optionValue: "value",
  39074. "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ($options.onChange($event))),
  39075. class: "p-paginator-page-options",
  39076. disabled: $props.disabled
  39077. }, null, 8, ["modelValue", "options", "disabled"]))
  39078. }
  39079. script$2.render = render$2;
  39080. var script$1 = {
  39081. name: 'JumpToPageInput',
  39082. inheritAttrs: false,
  39083. emits: ['page-change'],
  39084. props: {
  39085. page: Number,
  39086. pageCount: Number,
  39087. disabled: Boolean
  39088. },
  39089. methods: {
  39090. onChange(value) {
  39091. this.$emit('page-change', value - 1);
  39092. }
  39093. },
  39094. components: {
  39095. 'JTPInput': primevue_inputnumber__WEBPACK_IMPORTED_MODULE_3__["default"]
  39096. }
  39097. };
  39098. function render$1(_ctx, _cache, $props, $setup, $data, $options) {
  39099. const _component_JTPInput = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("JTPInput");
  39100. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_JTPInput, {
  39101. modelValue: $props.page,
  39102. "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ($options.onChange($event))),
  39103. class: "p-paginator-page-input",
  39104. disabled: $props.disabled
  39105. }, null, 8, ["modelValue", "disabled"]))
  39106. }
  39107. script$1.render = render$1;
  39108. var script = {
  39109. name: 'Paginator',
  39110. emits: ['update:first', 'update:rows', 'page'],
  39111. props: {
  39112. totalRecords: {
  39113. type: Number,
  39114. default: 0
  39115. },
  39116. rows: {
  39117. type: Number,
  39118. default: 0
  39119. },
  39120. first: {
  39121. type: Number,
  39122. default: 0
  39123. },
  39124. pageLinkSize: {
  39125. type: Number,
  39126. default: 5
  39127. },
  39128. rowsPerPageOptions: {
  39129. type: Array,
  39130. default: null
  39131. },
  39132. template: {
  39133. type: String,
  39134. default: 'FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown'
  39135. },
  39136. currentPageReportTemplate: {
  39137. type: null,
  39138. default: '({currentPage} of {totalPages})'
  39139. },
  39140. alwaysShow: {
  39141. type: Boolean,
  39142. default: true
  39143. }
  39144. },
  39145. data() {
  39146. return {
  39147. d_first: this.first,
  39148. d_rows: this.rows
  39149. }
  39150. },
  39151. watch: {
  39152. first(newValue) {
  39153. this.d_first = newValue;
  39154. },
  39155. rows(newValue) {
  39156. this.d_rows = newValue;
  39157. },
  39158. totalRecords(newValue) {
  39159. if (this.page > 0 && newValue && (this.d_first >= newValue)) {
  39160. this.changePage(this.pageCount - 1);
  39161. }
  39162. }
  39163. },
  39164. methods: {
  39165. changePage(p) {
  39166. const pc = this.pageCount;
  39167. if (p >= 0 && p < pc) {
  39168. this.d_first = this.d_rows * p;
  39169. const state = {
  39170. page: p,
  39171. first: this.d_first,
  39172. rows: this.d_rows,
  39173. pageCount: pc
  39174. };
  39175. this.$emit('update:first', this.d_first);
  39176. this.$emit('update:rows', this.d_rows);
  39177. this.$emit('page', state);
  39178. }
  39179. },
  39180. changePageToFirst(event) {
  39181. if(!this.isFirstPage) {
  39182. this.changePage(0);
  39183. }
  39184. event.preventDefault();
  39185. },
  39186. changePageToPrev(event) {
  39187. this.changePage(this.page - 1);
  39188. event.preventDefault();
  39189. },
  39190. changePageLink(event) {
  39191. this.changePage(event.value - 1);
  39192. event.originalEvent.preventDefault();
  39193. },
  39194. changePageToNext(event) {
  39195. this.changePage(this.page + 1);
  39196. event.preventDefault();
  39197. },
  39198. changePageToLast(event) {
  39199. if(!this.isLastPage) {
  39200. this.changePage(this.pageCount - 1);
  39201. }
  39202. event.preventDefault();
  39203. },
  39204. onRowChange(value) {
  39205. this.d_rows = value;
  39206. this.changePage(this.page);
  39207. }
  39208. },
  39209. computed: {
  39210. templateItems() {
  39211. let keys = [];
  39212. this.template.split(' ').map((value) => {
  39213. keys.push(value.trim());
  39214. });
  39215. return keys;
  39216. },
  39217. page() {
  39218. return Math.floor(this.d_first / this.d_rows);
  39219. },
  39220. pageCount() {
  39221. return Math.ceil(this.totalRecords / this.d_rows);
  39222. },
  39223. isFirstPage() {
  39224. return this.page === 0;
  39225. },
  39226. isLastPage() {
  39227. return this.page === this.pageCount - 1;
  39228. },
  39229. calculatePageLinkBoundaries() {
  39230. const numberOfPages = this.pageCount;
  39231. const visiblePages = Math.min(this.pageLinkSize, numberOfPages);
  39232. //calculate range, keep current in middle if necessary
  39233. let start = Math.max(0, Math.ceil(this.page - ((visiblePages) / 2)));
  39234. let end = Math.min(numberOfPages - 1, start + visiblePages - 1);
  39235. //check when approaching to last page
  39236. const delta = this.pageLinkSize - (end - start + 1);
  39237. start = Math.max(0, start - delta);
  39238. return [start, end];
  39239. },
  39240. pageLinks() {
  39241. let pageLinks = [];
  39242. let boundaries = this.calculatePageLinkBoundaries;
  39243. let start = boundaries[0];
  39244. let end = boundaries[1];
  39245. for(var i = start; i <= end; i++) {
  39246. pageLinks.push(i + 1);
  39247. }
  39248. return pageLinks;
  39249. },
  39250. currentState() {
  39251. return {
  39252. page: this.page,
  39253. first: this.d_first,
  39254. rows: this.d_rows
  39255. }
  39256. },
  39257. empty() {
  39258. return this.pageCount === 0;
  39259. },
  39260. currentPage() {
  39261. return this.pageCount > 0 ? this.page + 1 : 0;
  39262. }
  39263. },
  39264. components: {
  39265. 'CurrentPageReport': script$9,
  39266. 'FirstPageLink': script$8,
  39267. 'LastPageLink': script$7,
  39268. 'NextPageLink': script$6,
  39269. 'PageLinks': script$5,
  39270. 'PrevPageLink': script$4,
  39271. 'RowsPerPageDropdown': script$3,
  39272. 'JumpToPageDropdown': script$2,
  39273. 'JumpToPageInput': script$1
  39274. }
  39275. };
  39276. const _hoisted_1 = {
  39277. key: 0,
  39278. class: "p-paginator p-component"
  39279. };
  39280. const _hoisted_2 = {
  39281. key: 0,
  39282. class: "p-paginator-left-content"
  39283. };
  39284. const _hoisted_3 = {
  39285. key: 1,
  39286. class: "p-paginator-right-content"
  39287. };
  39288. function render(_ctx, _cache, $props, $setup, $data, $options) {
  39289. const _component_FirstPageLink = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("FirstPageLink");
  39290. const _component_PrevPageLink = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("PrevPageLink");
  39291. const _component_NextPageLink = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("NextPageLink");
  39292. const _component_LastPageLink = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("LastPageLink");
  39293. const _component_PageLinks = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("PageLinks");
  39294. const _component_CurrentPageReport = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("CurrentPageReport");
  39295. const _component_RowsPerPageDropdown = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("RowsPerPageDropdown");
  39296. const _component_JumpToPageDropdown = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("JumpToPageDropdown");
  39297. const _component_JumpToPageInput = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("JumpToPageInput");
  39298. return ($props.alwaysShow ? true : ($options.pageLinks && $options.pageLinks.length > 1))
  39299. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_1, [
  39300. (_ctx.$slots.start)
  39301. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_2, [
  39302. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "start", { state: $options.currentState })
  39303. ]))
  39304. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true),
  39305. ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)($options.templateItems, (item) => {
  39306. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: item }, [
  39307. (item === 'FirstPageLink')
  39308. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_FirstPageLink, {
  39309. key: 0,
  39310. onClick: _cache[0] || (_cache[0] = $event => ($options.changePageToFirst($event))),
  39311. disabled: $options.isFirstPage || $options.empty
  39312. }, null, 8, ["disabled"]))
  39313. : (item === 'PrevPageLink')
  39314. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_PrevPageLink, {
  39315. key: 1,
  39316. onClick: _cache[1] || (_cache[1] = $event => ($options.changePageToPrev($event))),
  39317. disabled: $options.isFirstPage || $options.empty
  39318. }, null, 8, ["disabled"]))
  39319. : (item === 'NextPageLink')
  39320. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_NextPageLink, {
  39321. key: 2,
  39322. onClick: _cache[2] || (_cache[2] = $event => ($options.changePageToNext($event))),
  39323. disabled: $options.isLastPage || $options.empty
  39324. }, null, 8, ["disabled"]))
  39325. : (item === 'LastPageLink')
  39326. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_LastPageLink, {
  39327. key: 3,
  39328. onClick: _cache[3] || (_cache[3] = $event => ($options.changePageToLast($event))),
  39329. disabled: $options.isLastPage || $options.empty
  39330. }, null, 8, ["disabled"]))
  39331. : (item === 'PageLinks')
  39332. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_PageLinks, {
  39333. key: 4,
  39334. value: $options.pageLinks,
  39335. page: $options.page,
  39336. onClick: _cache[4] || (_cache[4] = $event => ($options.changePageLink($event)))
  39337. }, null, 8, ["value", "page"]))
  39338. : (item === 'CurrentPageReport')
  39339. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_CurrentPageReport, {
  39340. key: 5,
  39341. template: $props.currentPageReportTemplate,
  39342. currentPage: $options.currentPage,
  39343. page: $options.page,
  39344. pageCount: $options.pageCount,
  39345. first: $data.d_first,
  39346. rows: $data.d_rows,
  39347. totalRecords: $props.totalRecords
  39348. }, null, 8, ["template", "currentPage", "page", "pageCount", "first", "rows", "totalRecords"]))
  39349. : (item === 'RowsPerPageDropdown' && $props.rowsPerPageOptions)
  39350. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_RowsPerPageDropdown, {
  39351. key: 6,
  39352. rows: $data.d_rows,
  39353. options: $props.rowsPerPageOptions,
  39354. onRowsChange: _cache[5] || (_cache[5] = $event => ($options.onRowChange($event))),
  39355. disabled: $options.empty
  39356. }, null, 8, ["rows", "options", "disabled"]))
  39357. : (item === 'JumpToPageDropdown')
  39358. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_JumpToPageDropdown, {
  39359. key: 7,
  39360. page: $options.page,
  39361. pageCount: $options.pageCount,
  39362. onPageChange: _cache[6] || (_cache[6] = $event => ($options.changePage($event))),
  39363. disabled: $options.empty
  39364. }, null, 8, ["page", "pageCount", "disabled"]))
  39365. : (item === 'JumpToPageInput')
  39366. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_JumpToPageInput, {
  39367. key: 8,
  39368. page: $options.currentPage,
  39369. onPageChange: _cache[7] || (_cache[7] = $event => ($options.changePage($event))),
  39370. disabled: $options.empty
  39371. }, null, 8, ["page", "disabled"]))
  39372. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true)
  39373. ], 64))
  39374. }), 128)),
  39375. (_ctx.$slots.end)
  39376. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_3, [
  39377. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "end", { state: $options.currentState })
  39378. ]))
  39379. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true)
  39380. ]))
  39381. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true)
  39382. }
  39383. function styleInject(css, ref) {
  39384. if ( ref === void 0 ) ref = {};
  39385. var insertAt = ref.insertAt;
  39386. if (!css || typeof document === 'undefined') { return; }
  39387. var head = document.head || document.getElementsByTagName('head')[0];
  39388. var style = document.createElement('style');
  39389. style.type = 'text/css';
  39390. if (insertAt === 'top') {
  39391. if (head.firstChild) {
  39392. head.insertBefore(style, head.firstChild);
  39393. } else {
  39394. head.appendChild(style);
  39395. }
  39396. } else {
  39397. head.appendChild(style);
  39398. }
  39399. if (style.styleSheet) {
  39400. style.styleSheet.cssText = css;
  39401. } else {
  39402. style.appendChild(document.createTextNode(css));
  39403. }
  39404. }
  39405. var css_248z = "\n.p-paginator {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n}\n.p-paginator-left-content {\n\tmargin-right: auto;\n}\n.p-paginator-right-content {\n\tmargin-left: auto;\n}\n.p-paginator-page,\n.p-paginator-next,\n.p-paginator-last,\n.p-paginator-first,\n.p-paginator-prev,\n.p-paginator-current {\n cursor: pointer;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n line-height: 1;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n overflow: hidden;\n position: relative;\n}\n.p-paginator-element:focus {\n z-index: 1;\n position: relative;\n}\n";
  39406. styleInject(css_248z);
  39407. script.render = render;
  39408. /***/ }),
  39409. /***/ "./node_modules/primevue/password/password.esm.js":
  39410. /*!********************************************************!*\
  39411. !*** ./node_modules/primevue/password/password.esm.js ***!
  39412. \********************************************************/
  39413. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  39414. "use strict";
  39415. __webpack_require__.r(__webpack_exports__);
  39416. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  39417. /* harmony export */ "default": () => (/* binding */ script)
  39418. /* harmony export */ });
  39419. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  39420. /* harmony import */ var primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/overlayeventbus */ "./node_modules/primevue/overlayeventbus/overlayeventbus.esm.js");
  39421. /* harmony import */ var primevue_inputtext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! primevue/inputtext */ "./node_modules/primevue/inputtext/inputtext.esm.js");
  39422. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  39423. var script = {
  39424. name: 'Password',
  39425. emits: ['update:modelValue'],
  39426. inheritAttrs: false,
  39427. props: {
  39428. modelValue: String,
  39429. promptLabel: {
  39430. type: String,
  39431. default: null
  39432. },
  39433. mediumRegex: {
  39434. type: String,
  39435. default: '^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})' // eslint-disable-line
  39436. },
  39437. strongRegex: {
  39438. type: String,
  39439. default: '^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})' // eslint-disable-line
  39440. },
  39441. weakLabel: {
  39442. type: String,
  39443. default: null
  39444. },
  39445. mediumLabel: {
  39446. type: String,
  39447. default: null
  39448. },
  39449. strongLabel: {
  39450. type: String,
  39451. default: null
  39452. },
  39453. feedback: {
  39454. type: Boolean,
  39455. default: true
  39456. },
  39457. appendTo: {
  39458. type: String,
  39459. default: 'body'
  39460. },
  39461. toggleMask: {
  39462. type: Boolean,
  39463. default: false
  39464. },
  39465. hideIcon: {
  39466. type: String,
  39467. default: 'pi pi-eye-slash'
  39468. },
  39469. showIcon: {
  39470. type: String,
  39471. default: 'pi pi-eye'
  39472. },
  39473. inputClass: String,
  39474. inputStyle: null,
  39475. style: null,
  39476. class: String,
  39477. panelClass: String
  39478. },
  39479. data() {
  39480. return {
  39481. overlayVisible: false,
  39482. meter: null,
  39483. infoText: null,
  39484. focused: false,
  39485. unmasked: false
  39486. };
  39487. },
  39488. mediumCheckRegExp: null,
  39489. strongCheckRegExp: null,
  39490. resizeListener: null,
  39491. scrollHandler: null,
  39492. overlay: null,
  39493. mounted() {
  39494. this.infoText = this.promptText;
  39495. this.mediumCheckRegExp = new RegExp(this.mediumRegex);
  39496. this.strongCheckRegExp = new RegExp(this.strongRegex);
  39497. },
  39498. beforeUnmount() {
  39499. this.unbindResizeListener();
  39500. if (this.scrollHandler) {
  39501. this.scrollHandler.destroy();
  39502. this.scrollHandler = null;
  39503. }
  39504. if (this.overlay) {
  39505. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(this.overlay);
  39506. this.overlay = null;
  39507. }
  39508. },
  39509. methods: {
  39510. onOverlayEnter(el) {
  39511. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.set('overlay', el, this.$primevue.config.zIndex.overlay);
  39512. this.alignOverlay();
  39513. this.bindScrollListener();
  39514. this.bindResizeListener();
  39515. },
  39516. onOverlayLeave() {
  39517. this.unbindScrollListener();
  39518. this.unbindResizeListener();
  39519. this.overlay = null;
  39520. },
  39521. onOverlayAfterLeave(el) {
  39522. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(el);
  39523. },
  39524. alignOverlay() {
  39525. if (this.appendDisabled) {
  39526. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.relativePosition(this.overlay, this.$refs.input.$el);
  39527. }
  39528. else {
  39529. this.overlay.style.minWidth = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(this.$refs.input.$el) + 'px';
  39530. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.absolutePosition(this.overlay, this.$refs.input.$el);
  39531. }
  39532. },
  39533. testStrength(str) {
  39534. let level = 0;
  39535. if (this.strongCheckRegExp.test(str))
  39536. level = 3;
  39537. else if (this.mediumCheckRegExp.test(str))
  39538. level = 2;
  39539. else if (str.length)
  39540. level = 1;
  39541. return level;
  39542. },
  39543. onInput(event) {
  39544. this.$emit('update:modelValue', event.target.value);
  39545. },
  39546. onFocus() {
  39547. this.focused = true;
  39548. if (this.feedback) {
  39549. this.overlayVisible = true;
  39550. }
  39551. },
  39552. onBlur() {
  39553. this.focused = false;
  39554. if (this.feedback) {
  39555. this.overlayVisible = false;
  39556. }
  39557. },
  39558. onKeyUp(event) {
  39559. if (this.feedback) {
  39560. const value = event.target.value;
  39561. let label = null;
  39562. let meter = null;
  39563. switch (this.testStrength(value)) {
  39564. case 1:
  39565. label = this.weakText;
  39566. meter = {
  39567. strength: 'weak',
  39568. width: '33.33%'
  39569. };
  39570. break;
  39571. case 2:
  39572. label = this.mediumText;
  39573. meter = {
  39574. strength: 'medium',
  39575. width: '66.66%'
  39576. };
  39577. break;
  39578. case 3:
  39579. label = this.strongText;
  39580. meter = {
  39581. strength: 'strong',
  39582. width: '100%'
  39583. };
  39584. break;
  39585. default:
  39586. label = this.promptText;
  39587. meter = null;
  39588. break;
  39589. }
  39590. this.meter = meter;
  39591. this.infoText = label;
  39592. if (!this.overlayVisible) {
  39593. this.overlayVisible = true;
  39594. }
  39595. }
  39596. },
  39597. bindScrollListener() {
  39598. if (!this.scrollHandler) {
  39599. this.scrollHandler = new primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ConnectedOverlayScrollHandler(this.$refs.input.$el, () => {
  39600. if (this.overlayVisible) {
  39601. this.overlayVisible = false;
  39602. }
  39603. });
  39604. }
  39605. this.scrollHandler.bindScrollListener();
  39606. },
  39607. unbindScrollListener() {
  39608. if (this.scrollHandler) {
  39609. this.scrollHandler.unbindScrollListener();
  39610. }
  39611. },
  39612. bindResizeListener() {
  39613. if (!this.resizeListener) {
  39614. this.resizeListener = () => {
  39615. if (this.overlayVisible) {
  39616. this.overlayVisible = false;
  39617. }
  39618. };
  39619. window.addEventListener('resize', this.resizeListener);
  39620. }
  39621. },
  39622. unbindResizeListener() {
  39623. if (this.resizeListener) {
  39624. window.removeEventListener('resize', this.resizeListener);
  39625. this.resizeListener = null;
  39626. }
  39627. },
  39628. overlayRef(el) {
  39629. this.overlay = el;
  39630. },
  39631. onMaskToggle() {
  39632. this.unmasked = !this.unmasked;
  39633. },
  39634. onOverlayClick(event) {
  39635. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_1__["default"].emit('overlay-click', {
  39636. originalEvent: event,
  39637. target: this.$el
  39638. });
  39639. }
  39640. },
  39641. computed: {
  39642. containerClass() {
  39643. return ['p-password p-component p-inputwrapper', this.class, {
  39644. 'p-inputwrapper-filled': this.filled,
  39645. 'p-inputwrapper-focus': this.focused,
  39646. 'p-input-icon-right': this.toggleMask
  39647. }];
  39648. },
  39649. inputFieldClass() {
  39650. return ['p-password-input', this.inputClass, {
  39651. 'p-disabled': this.$attrs.disabled
  39652. }];
  39653. },
  39654. panelStyleClass() {
  39655. return ['p-password-panel p-component', this.panelClass, {
  39656. 'p-input-filled': this.$primevue.config.inputStyle === 'filled',
  39657. 'p-ripple-disabled': this.$primevue.config.ripple === false
  39658. }];
  39659. },
  39660. toggleIconClass() {
  39661. return this.unmasked ? this.hideIcon : this.showIcon;
  39662. },
  39663. strengthClass() {
  39664. return `p-password-strength ${this.meter ? this.meter.strength : ''}`;
  39665. },
  39666. inputType() {
  39667. return this.unmasked ? 'text' : 'password';
  39668. },
  39669. filled() {
  39670. return (this.modelValue != null && this.modelValue.toString().length > 0)
  39671. },
  39672. weakText() {
  39673. return this.weakLabel || this.$primevue.config.locale.weak;
  39674. },
  39675. mediumText() {
  39676. return this.mediumLabel || this.$primevue.config.locale.medium;
  39677. },
  39678. strongText() {
  39679. return this.strongLabel || this.$primevue.config.locale.strong;
  39680. },
  39681. promptText() {
  39682. return this.promptLabel || this.$primevue.config.locale.passwordPrompt;
  39683. },
  39684. appendDisabled() {
  39685. return this.appendTo === 'self';
  39686. },
  39687. appendTarget() {
  39688. return this.appendDisabled ? null : this.appendTo;
  39689. }
  39690. },
  39691. components: {
  39692. 'PInputText': primevue_inputtext__WEBPACK_IMPORTED_MODULE_2__["default"]
  39693. }
  39694. };
  39695. const _hoisted_1 = { class: "p-password-meter" };
  39696. const _hoisted_2 = { class: "p-password-info" };
  39697. function render(_ctx, _cache, $props, $setup, $data, $options) {
  39698. const _component_PInputText = (0,vue__WEBPACK_IMPORTED_MODULE_3__.resolveComponent)("PInputText");
  39699. return ((0,vue__WEBPACK_IMPORTED_MODULE_3__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_3__.createElementBlock)("div", {
  39700. class: (0,vue__WEBPACK_IMPORTED_MODULE_3__.normalizeClass)($options.containerClass),
  39701. style: (0,vue__WEBPACK_IMPORTED_MODULE_3__.normalizeStyle)($props.style)
  39702. }, [
  39703. (0,vue__WEBPACK_IMPORTED_MODULE_3__.createVNode)(_component_PInputText, (0,vue__WEBPACK_IMPORTED_MODULE_3__.mergeProps)({
  39704. ref: "input",
  39705. class: $options.inputFieldClass,
  39706. style: $props.inputStyle,
  39707. type: $options.inputType,
  39708. value: $props.modelValue,
  39709. onInput: $options.onInput,
  39710. onFocus: $options.onFocus,
  39711. onBlur: $options.onBlur,
  39712. onKeyup: $options.onKeyUp
  39713. }, _ctx.$attrs), null, 16, ["class", "style", "type", "value", "onInput", "onFocus", "onBlur", "onKeyup"]),
  39714. ($props.toggleMask)
  39715. ? ((0,vue__WEBPACK_IMPORTED_MODULE_3__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_3__.createElementBlock)("i", {
  39716. key: 0,
  39717. class: (0,vue__WEBPACK_IMPORTED_MODULE_3__.normalizeClass)($options.toggleIconClass),
  39718. onClick: _cache[0] || (_cache[0] = (...args) => ($options.onMaskToggle && $options.onMaskToggle(...args)))
  39719. }, null, 2))
  39720. : (0,vue__WEBPACK_IMPORTED_MODULE_3__.createCommentVNode)("", true),
  39721. ((0,vue__WEBPACK_IMPORTED_MODULE_3__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_3__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_3__.Teleport, {
  39722. to: $options.appendTarget,
  39723. disabled: $options.appendDisabled
  39724. }, [
  39725. (0,vue__WEBPACK_IMPORTED_MODULE_3__.createVNode)(vue__WEBPACK_IMPORTED_MODULE_3__.Transition, {
  39726. name: "p-connected-overlay",
  39727. onEnter: $options.onOverlayEnter,
  39728. onLeave: $options.onOverlayLeave,
  39729. onAfterLeave: $options.onOverlayAfterLeave
  39730. }, {
  39731. default: (0,vue__WEBPACK_IMPORTED_MODULE_3__.withCtx)(() => [
  39732. ($data.overlayVisible)
  39733. ? ((0,vue__WEBPACK_IMPORTED_MODULE_3__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_3__.createElementBlock)("div", {
  39734. key: 0,
  39735. ref: $options.overlayRef,
  39736. class: (0,vue__WEBPACK_IMPORTED_MODULE_3__.normalizeClass)($options.panelStyleClass),
  39737. onClick: _cache[1] || (_cache[1] = (...args) => ($options.onOverlayClick && $options.onOverlayClick(...args)))
  39738. }, [
  39739. (0,vue__WEBPACK_IMPORTED_MODULE_3__.renderSlot)(_ctx.$slots, "header"),
  39740. (0,vue__WEBPACK_IMPORTED_MODULE_3__.renderSlot)(_ctx.$slots, "content", {}, () => [
  39741. (0,vue__WEBPACK_IMPORTED_MODULE_3__.createElementVNode)("div", _hoisted_1, [
  39742. (0,vue__WEBPACK_IMPORTED_MODULE_3__.createElementVNode)("div", {
  39743. class: (0,vue__WEBPACK_IMPORTED_MODULE_3__.normalizeClass)($options.strengthClass),
  39744. style: (0,vue__WEBPACK_IMPORTED_MODULE_3__.normalizeStyle)({'width': $data.meter ? $data.meter.width : ''})
  39745. }, null, 6)
  39746. ]),
  39747. (0,vue__WEBPACK_IMPORTED_MODULE_3__.createElementVNode)("div", _hoisted_2, (0,vue__WEBPACK_IMPORTED_MODULE_3__.toDisplayString)($data.infoText), 1)
  39748. ]),
  39749. (0,vue__WEBPACK_IMPORTED_MODULE_3__.renderSlot)(_ctx.$slots, "footer")
  39750. ], 2))
  39751. : (0,vue__WEBPACK_IMPORTED_MODULE_3__.createCommentVNode)("", true)
  39752. ]),
  39753. _: 3
  39754. }, 8, ["onEnter", "onLeave", "onAfterLeave"])
  39755. ], 8, ["to", "disabled"]))
  39756. ], 6))
  39757. }
  39758. function styleInject(css, ref) {
  39759. if ( ref === void 0 ) ref = {};
  39760. var insertAt = ref.insertAt;
  39761. if (!css || typeof document === 'undefined') { return; }
  39762. var head = document.head || document.getElementsByTagName('head')[0];
  39763. var style = document.createElement('style');
  39764. style.type = 'text/css';
  39765. if (insertAt === 'top') {
  39766. if (head.firstChild) {
  39767. head.insertBefore(style, head.firstChild);
  39768. } else {
  39769. head.appendChild(style);
  39770. }
  39771. } else {
  39772. head.appendChild(style);
  39773. }
  39774. if (style.styleSheet) {
  39775. style.styleSheet.cssText = css;
  39776. } else {
  39777. style.appendChild(document.createTextNode(css));
  39778. }
  39779. }
  39780. var css_248z = "\n.p-password {\n position: relative;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n}\n.p-password-panel {\n position: absolute;\n top: 0;\n left: 0;\n}\n.p-password .p-password-panel {\n min-width: 100%;\n}\n.p-password-meter {\n height: 10px;\n}\n.p-password-strength {\n height: 100%;\n width: 0;\n -webkit-transition: width 1s ease-in-out;\n transition: width 1s ease-in-out;\n}\n.p-fluid .p-password {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n";
  39781. styleInject(css_248z);
  39782. script.render = render;
  39783. /***/ }),
  39784. /***/ "./node_modules/primevue/ripple/ripple.esm.js":
  39785. /*!****************************************************!*\
  39786. !*** ./node_modules/primevue/ripple/ripple.esm.js ***!
  39787. \****************************************************/
  39788. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  39789. "use strict";
  39790. __webpack_require__.r(__webpack_exports__);
  39791. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  39792. /* harmony export */ "default": () => (/* binding */ Ripple)
  39793. /* harmony export */ });
  39794. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  39795. function bindEvents(el) {
  39796. el.addEventListener('mousedown', onMouseDown);
  39797. }
  39798. function unbindEvents(el) {
  39799. el.removeEventListener('mousedown', onMouseDown);
  39800. }
  39801. function create(el) {
  39802. let ink = document.createElement('span');
  39803. ink.className = 'p-ink';
  39804. el.appendChild(ink);
  39805. ink.addEventListener('animationend', onAnimationEnd);
  39806. }
  39807. function remove(el) {
  39808. let ink = getInk(el);
  39809. if (ink) {
  39810. unbindEvents(el);
  39811. ink.removeEventListener('animationend', onAnimationEnd);
  39812. ink.remove();
  39813. }
  39814. }
  39815. function onMouseDown(event) {
  39816. let target = event.currentTarget;
  39817. let ink = getInk(target);
  39818. if (!ink || getComputedStyle(ink, null).display === 'none') {
  39819. return;
  39820. }
  39821. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(ink, 'p-ink-active');
  39822. if (!primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getHeight(ink) && !primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getWidth(ink)) {
  39823. let d = Math.max(primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(target), primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(target));
  39824. ink.style.height = d + 'px';
  39825. ink.style.width = d + 'px';
  39826. }
  39827. let offset = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOffset(target);
  39828. let x = event.pageX - offset.left + document.body.scrollTop - primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getWidth(ink) / 2;
  39829. let y = event.pageY - offset.top + document.body.scrollLeft - primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getHeight(ink) / 2;
  39830. ink.style.top = y + 'px';
  39831. ink.style.left = x + 'px';
  39832. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(ink, 'p-ink-active');
  39833. }
  39834. function onAnimationEnd(event) {
  39835. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(event.currentTarget, 'p-ink-active');
  39836. }
  39837. function getInk(el) {
  39838. for (let i = 0; i < el.children.length; i++) {
  39839. if (typeof el.children[i].className === 'string' && el.children[i].className.indexOf('p-ink') !== -1) {
  39840. return el.children[i];
  39841. }
  39842. }
  39843. return null;
  39844. }
  39845. const Ripple = {
  39846. mounted(el, binding) {
  39847. if (binding.instance.$primevue && binding.instance.$primevue.config && binding.instance.$primevue.config.ripple) {
  39848. create(el);
  39849. bindEvents(el);
  39850. }
  39851. },
  39852. unmounted(el) {
  39853. remove(el);
  39854. }
  39855. };
  39856. /***/ }),
  39857. /***/ "./node_modules/primevue/styleclass/styleclass.esm.js":
  39858. /*!************************************************************!*\
  39859. !*** ./node_modules/primevue/styleclass/styleclass.esm.js ***!
  39860. \************************************************************/
  39861. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  39862. "use strict";
  39863. __webpack_require__.r(__webpack_exports__);
  39864. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  39865. /* harmony export */ "default": () => (/* binding */ StyleClass)
  39866. /* harmony export */ });
  39867. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  39868. function bind(el, binding) {
  39869. el.$_pstyleclass_clicklistener = () => {
  39870. const target = resolveTarget(el, binding);
  39871. if (binding.value.toggleClass) {
  39872. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(target, binding.value.toggleClass))
  39873. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(target, binding.value.toggleClass);
  39874. else
  39875. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(target, binding.value.toggleClass);
  39876. }
  39877. else {
  39878. if (target.offsetParent === null)
  39879. enter(target, el, binding);
  39880. else
  39881. leave(target, binding);
  39882. }
  39883. };
  39884. el.addEventListener('click', el.$_pstyleclass_clicklistener);
  39885. }
  39886. function unbind(el) {
  39887. if (el.$_pstyleclass_clicklistener) {
  39888. el.addEventListener('click', el.$_pstyleclass_clicklistener);
  39889. el.$_pstyleclass_clicklistener = null;
  39890. }
  39891. unbindDocumentListener(el);
  39892. }
  39893. function enter(target, el, binding) {
  39894. if (binding.value.enterActiveClass) {
  39895. if (!target.$_pstyleclass_animating) {
  39896. target.$_pstyleclass_animating = true;
  39897. if (binding.value.enterActiveClass === 'slidedown') {
  39898. target.style.height = '0px';
  39899. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(target, 'hidden');
  39900. target.style.maxHeight = target.scrollHeight + 'px';
  39901. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(target, 'hidden');
  39902. target.style.height = '';
  39903. }
  39904. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(target, binding.value.enterActiveClass);
  39905. if (binding.value.enterClass) {
  39906. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(target, binding.value.enterClass);
  39907. }
  39908. target.$p_styleclass_enterlistener = () => {
  39909. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(target, binding.value.enterActiveClass);
  39910. if (binding.value.enterToClass) {
  39911. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(target, binding.value.enterToClass);
  39912. }
  39913. target.removeEventListener('animationend', target.$p_styleclass_enterlistener);
  39914. if (binding.value.enterActiveClass === 'slidedown') {
  39915. target.style.maxHeight = '';
  39916. }
  39917. target.$_pstyleclass_animating = false;
  39918. };
  39919. target.addEventListener('animationend', target.$p_styleclass_enterlistener);
  39920. }
  39921. }
  39922. else {
  39923. if (binding.value.enterClass) {
  39924. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(target, binding.value.enterClass);
  39925. }
  39926. if (binding.value.enterToClass) {
  39927. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(target, binding.value.enterToClass);
  39928. }
  39929. }
  39930. if (binding.value.hideOnOutsideClick) {
  39931. bindDocumentListener(target, el, binding);
  39932. }
  39933. }
  39934. function leave(target, binding) {
  39935. if (binding.value.leaveActiveClass) {
  39936. if (!target.$_pstyleclass_animating) {
  39937. target.$_pstyleclass_animating = true;
  39938. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(target, binding.value.leaveActiveClass);
  39939. if (binding.value.leaveClass) {
  39940. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(target, binding.value.leaveClass);
  39941. }
  39942. target.$p_styleclass_leavelistener = () => {
  39943. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(target, binding.value.leaveActiveClass);
  39944. if (binding.value.leaveToClass) {
  39945. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(target, binding.value.leaveToClass);
  39946. }
  39947. target.removeEventListener('animationend', target.$p_styleclass_leavelistener);
  39948. target.$_pstyleclass_animating = false;
  39949. };
  39950. target.addEventListener('animationend', target.$p_styleclass_leavelistener);
  39951. }
  39952. }
  39953. else {
  39954. if (binding.value.leaveClass) {
  39955. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(target, binding.value.leaveClass);
  39956. }
  39957. if (binding.value.leaveToClass) {
  39958. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(target, binding.value.leaveToClass);
  39959. }
  39960. }
  39961. if (binding.value.hideOnOutsideClick) {
  39962. unbindDocumentListener(target);
  39963. }
  39964. }
  39965. function resolveTarget(el, binding) {
  39966. switch (binding.value.selector) {
  39967. case '@next':
  39968. return el.nextElementSibling;
  39969. case '@prev':
  39970. return el.previousElementSibling;
  39971. case '@parent':
  39972. return el.parentElement;
  39973. case '@grandparent':
  39974. return el.parentElement.parentElement;
  39975. default:
  39976. return document.querySelector(binding.value.selector);
  39977. }
  39978. }
  39979. function bindDocumentListener(target, el, binding) {
  39980. if (!target.$p_styleclass_documentlistener) {
  39981. target.$p_styleclass_documentlistener = (event) => {
  39982. if (!isVisible(target) || getComputedStyle(target).getPropertyValue('position') === 'static') {
  39983. unbindDocumentListener(target);
  39984. }
  39985. else if (isOutsideClick(event, target, el)) {
  39986. leave(target, binding);
  39987. }
  39988. };
  39989. target.ownerDocument.addEventListener('click', target.$p_styleclass_documentlistener);
  39990. }
  39991. }
  39992. function unbindDocumentListener(target) {
  39993. if (target.$p_styleclass_documentlistener) {
  39994. target.ownerDocument.removeEventListener('click', target.$p_styleclass_documentlistener);
  39995. target.$p_styleclass_documentlistener = null;
  39996. }
  39997. }
  39998. function isVisible(target) {
  39999. return target.offsetParent !== null;
  40000. }
  40001. function isOutsideClick(event, target, el) {
  40002. return !el.isSameNode(event.target) && !el.contains(event.target) && !target.contains(event.target);
  40003. }
  40004. const StyleClass = {
  40005. mounted(el, binding) {
  40006. bind(el, binding);
  40007. },
  40008. unmounted(el) {
  40009. unbind(el);
  40010. }
  40011. };
  40012. /***/ }),
  40013. /***/ "./node_modules/primevue/tabpanel/tabpanel.esm.js":
  40014. /*!********************************************************!*\
  40015. !*** ./node_modules/primevue/tabpanel/tabpanel.esm.js ***!
  40016. \********************************************************/
  40017. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  40018. "use strict";
  40019. __webpack_require__.r(__webpack_exports__);
  40020. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  40021. /* harmony export */ "default": () => (/* binding */ script)
  40022. /* harmony export */ });
  40023. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  40024. var script = {
  40025. name: 'TabPanel',
  40026. props: {
  40027. header: null,
  40028. disabled: Boolean
  40029. }
  40030. };
  40031. function render(_ctx, _cache, $props, $setup, $data, $options) {
  40032. return (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "default")
  40033. }
  40034. script.render = render;
  40035. /***/ }),
  40036. /***/ "./node_modules/primevue/tabview/tabview.esm.js":
  40037. /*!******************************************************!*\
  40038. !*** ./node_modules/primevue/tabview/tabview.esm.js ***!
  40039. \******************************************************/
  40040. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  40041. "use strict";
  40042. __webpack_require__.r(__webpack_exports__);
  40043. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  40044. /* harmony export */ "default": () => (/* binding */ script)
  40045. /* harmony export */ });
  40046. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  40047. /* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/ripple */ "./node_modules/primevue/ripple/ripple.esm.js");
  40048. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  40049. var script = {
  40050. name: 'TabView',
  40051. emits: ['update:activeIndex', 'tab-change', 'tab-click'],
  40052. props: {
  40053. activeIndex: {
  40054. type: Number,
  40055. default: 0
  40056. },
  40057. lazy: {
  40058. type: Boolean,
  40059. default: false
  40060. },
  40061. scrollable: {
  40062. type: Boolean,
  40063. default: false
  40064. }
  40065. },
  40066. data() {
  40067. return {
  40068. d_activeIndex: this.activeIndex,
  40069. backwardIsDisabled: true,
  40070. forwardIsDisabled: false
  40071. }
  40072. },
  40073. watch: {
  40074. activeIndex(newValue) {
  40075. this.d_activeIndex = newValue;
  40076. this.updateScrollBar(newValue);
  40077. }
  40078. },
  40079. updated() {
  40080. this.updateInkBar();
  40081. },
  40082. mounted() {
  40083. this.updateInkBar();
  40084. },
  40085. methods: {
  40086. onTabClick(event, i) {
  40087. if (!this.isTabDisabled(this.tabs[i]) && i !== this.d_activeIndex) {
  40088. this.d_activeIndex = i;
  40089. this.$emit('update:activeIndex', this.d_activeIndex);
  40090. this.$emit('tab-change', {
  40091. originalEvent: event,
  40092. index: i
  40093. });
  40094. this.updateScrollBar(i);
  40095. }
  40096. this.$emit('tab-click', {
  40097. originalEvent: event,
  40098. index: i
  40099. });
  40100. },
  40101. onTabKeydown(event, i) {
  40102. if (event.which === 13) {
  40103. this.onTabClick(event, i);
  40104. }
  40105. },
  40106. updateInkBar() {
  40107. let tabHeader = this.$refs.nav.children[this.d_activeIndex];
  40108. this.$refs.inkbar.style.width = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getWidth(tabHeader) + 'px';
  40109. this.$refs.inkbar.style.left = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOffset(tabHeader).left - primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOffset(this.$refs.nav).left + 'px';
  40110. },
  40111. updateScrollBar(index) {
  40112. let tabHeader = this.$refs.nav.children[index];
  40113. tabHeader.scrollIntoView({ block: 'nearest' });
  40114. },
  40115. updateButtonState() {
  40116. const content = this.$refs.content;
  40117. const { scrollLeft, scrollWidth } = content;
  40118. const width = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getWidth(content);
  40119. this.backwardIsDisabled = scrollLeft === 0;
  40120. this.forwardIsDisabled = parseInt(scrollLeft) === scrollWidth - width;
  40121. },
  40122. getKey(tab, i) {
  40123. return (tab.props && tab.props.header) ? tab.props.header : i;
  40124. },
  40125. isTabDisabled(tab) {
  40126. return (tab.props && tab.props.disabled);
  40127. },
  40128. isTabPanel(child) {
  40129. return child.type.name === 'TabPanel'
  40130. },
  40131. onScroll(event) {
  40132. this.scrollable && this.updateButtonState();
  40133. event.preventDefault();
  40134. },
  40135. getVisibleButtonWidths() {
  40136. const { prevBtn, nextBtn } = this.$refs;
  40137. return [prevBtn, nextBtn].reduce((acc, el) => el ? acc + primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getWidth(el) : acc, 0);
  40138. },
  40139. navBackward() {
  40140. const content = this.$refs.content;
  40141. const width = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getWidth(content) - this.getVisibleButtonWidths();
  40142. const pos = content.scrollLeft - width;
  40143. content.scrollLeft = pos <= 0 ? 0 : pos;
  40144. },
  40145. navForward() {
  40146. const content = this.$refs.content;
  40147. const width = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getWidth(content) - this.getVisibleButtonWidths();
  40148. const pos = content.scrollLeft + width;
  40149. const lastPos = content.scrollWidth - width;
  40150. content.scrollLeft = pos >= lastPos ? lastPos : pos;
  40151. }
  40152. },
  40153. computed: {
  40154. contentClasses() {
  40155. return ['p-tabview p-component', {'p-tabview-scrollable': this.scrollable}];
  40156. },
  40157. prevButtonClasses() {
  40158. return ['p-tabview-nav-prev p-tabview-nav-btn p-link']
  40159. },
  40160. nextButtonClasses() {
  40161. return ['p-tabview-nav-next p-tabview-nav-btn p-link']
  40162. },
  40163. tabs() {
  40164. const tabs = [];
  40165. this.$slots.default().forEach(child => {
  40166. if (this.isTabPanel(child)) {
  40167. tabs.push(child);
  40168. }
  40169. else if (child.children && child.children instanceof Array) {
  40170. child.children.forEach(nestedChild => {
  40171. if (this.isTabPanel(nestedChild)) {
  40172. tabs.push(nestedChild);
  40173. }
  40174. });
  40175. }
  40176. }
  40177. );
  40178. return tabs;
  40179. }
  40180. },
  40181. directives: {
  40182. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_1__["default"]
  40183. }
  40184. };
  40185. const _hoisted_1 = { class: "p-tabview-nav-container" };
  40186. const _hoisted_2 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_2__.createElementVNode)("span", { class: "pi pi-chevron-left" }, null, -1);
  40187. const _hoisted_3 = [
  40188. _hoisted_2
  40189. ];
  40190. const _hoisted_4 = {
  40191. ref: "nav",
  40192. class: "p-tabview-nav",
  40193. role: "tablist"
  40194. };
  40195. const _hoisted_5 = ["onClick", "onKeydown", "tabindex", "aria-selected"];
  40196. const _hoisted_6 = {
  40197. key: 0,
  40198. class: "p-tabview-title"
  40199. };
  40200. const _hoisted_7 = {
  40201. ref: "inkbar",
  40202. class: "p-tabview-ink-bar"
  40203. };
  40204. const _hoisted_8 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_2__.createElementVNode)("span", { class: "pi pi-chevron-right" }, null, -1);
  40205. const _hoisted_9 = [
  40206. _hoisted_8
  40207. ];
  40208. const _hoisted_10 = { class: "p-tabview-panels" };
  40209. const _hoisted_11 = {
  40210. key: 0,
  40211. class: "p-tabview-panel",
  40212. role: "tabpanel"
  40213. };
  40214. function render(_ctx, _cache, $props, $setup, $data, $options) {
  40215. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_2__.resolveDirective)("ripple");
  40216. return ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createElementBlock)("div", {
  40217. class: (0,vue__WEBPACK_IMPORTED_MODULE_2__.normalizeClass)($options.contentClasses)
  40218. }, [
  40219. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createElementVNode)("div", _hoisted_1, [
  40220. ($props.scrollable && !$data.backwardIsDisabled)
  40221. ? (0,vue__WEBPACK_IMPORTED_MODULE_2__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createElementBlock)("button", {
  40222. key: 0,
  40223. ref: "prevBtn",
  40224. class: (0,vue__WEBPACK_IMPORTED_MODULE_2__.normalizeClass)($options.prevButtonClasses),
  40225. onClick: _cache[0] || (_cache[0] = (...args) => ($options.navBackward && $options.navBackward(...args))),
  40226. type: "button"
  40227. }, _hoisted_3, 2)), [
  40228. [_directive_ripple]
  40229. ])
  40230. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true),
  40231. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createElementVNode)("div", {
  40232. ref: "content",
  40233. class: "p-tabview-nav-content",
  40234. onScroll: _cache[1] || (_cache[1] = (...args) => ($options.onScroll && $options.onScroll(...args)))
  40235. }, [
  40236. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createElementVNode)("ul", _hoisted_4, [
  40237. ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_2__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_2__.renderList)($options.tabs, (tab, i) => {
  40238. return ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createElementBlock)("li", {
  40239. role: "presentation",
  40240. key: $options.getKey(tab,i),
  40241. class: (0,vue__WEBPACK_IMPORTED_MODULE_2__.normalizeClass)([{'p-highlight': ($data.d_activeIndex === i), 'p-disabled': $options.isTabDisabled(tab)}])
  40242. }, [
  40243. (0,vue__WEBPACK_IMPORTED_MODULE_2__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createElementBlock)("a", {
  40244. role: "tab",
  40245. class: "p-tabview-nav-link",
  40246. onClick: $event => ($options.onTabClick($event, i)),
  40247. onKeydown: $event => ($options.onTabKeydown($event, i)),
  40248. tabindex: $options.isTabDisabled(tab) ? null : '0',
  40249. "aria-selected": $data.d_activeIndex === i
  40250. }, [
  40251. (tab.props && tab.props.header)
  40252. ? ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createElementBlock)("span", _hoisted_6, (0,vue__WEBPACK_IMPORTED_MODULE_2__.toDisplayString)(tab.props.header), 1))
  40253. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true),
  40254. (tab.children && tab.children.header)
  40255. ? ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_2__.resolveDynamicComponent)(tab.children.header), { key: 1 }))
  40256. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true)
  40257. ], 40, _hoisted_5)), [
  40258. [_directive_ripple]
  40259. ])
  40260. ], 2))
  40261. }), 128)),
  40262. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createElementVNode)("li", _hoisted_7, null, 512)
  40263. ], 512)
  40264. ], 544),
  40265. ($props.scrollable && !$data.forwardIsDisabled)
  40266. ? (0,vue__WEBPACK_IMPORTED_MODULE_2__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createElementBlock)("button", {
  40267. key: 1,
  40268. ref: "nextBtn",
  40269. class: (0,vue__WEBPACK_IMPORTED_MODULE_2__.normalizeClass)($options.nextButtonClasses),
  40270. onClick: _cache[2] || (_cache[2] = (...args) => ($options.navForward && $options.navForward(...args))),
  40271. type: "button"
  40272. }, _hoisted_9, 2)), [
  40273. [_directive_ripple]
  40274. ])
  40275. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true)
  40276. ]),
  40277. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createElementVNode)("div", _hoisted_10, [
  40278. ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_2__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_2__.renderList)($options.tabs, (tab, i) => {
  40279. return ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_2__.Fragment, {
  40280. key: $options.getKey(tab,i)
  40281. }, [
  40282. ($props.lazy ? ($data.d_activeIndex === i) : true)
  40283. ? (0,vue__WEBPACK_IMPORTED_MODULE_2__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createElementBlock)("div", _hoisted_11, [
  40284. ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_2__.resolveDynamicComponent)(tab)))
  40285. ], 512)), [
  40286. [vue__WEBPACK_IMPORTED_MODULE_2__.vShow, $props.lazy ? true: ($data.d_activeIndex === i)]
  40287. ])
  40288. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true)
  40289. ], 64))
  40290. }), 128))
  40291. ])
  40292. ], 2))
  40293. }
  40294. function styleInject(css, ref) {
  40295. if ( ref === void 0 ) ref = {};
  40296. var insertAt = ref.insertAt;
  40297. if (!css || typeof document === 'undefined') { return; }
  40298. var head = document.head || document.getElementsByTagName('head')[0];
  40299. var style = document.createElement('style');
  40300. style.type = 'text/css';
  40301. if (insertAt === 'top') {
  40302. if (head.firstChild) {
  40303. head.insertBefore(style, head.firstChild);
  40304. } else {
  40305. head.appendChild(style);
  40306. }
  40307. } else {
  40308. head.appendChild(style);
  40309. }
  40310. if (style.styleSheet) {
  40311. style.styleSheet.cssText = css;
  40312. } else {
  40313. style.appendChild(document.createTextNode(css));
  40314. }
  40315. }
  40316. var css_248z = "\n.p-tabview-nav-container {\n position: relative;\n}\n.p-tabview-scrollable .p-tabview-nav-container {\n overflow: hidden;\n}\n.p-tabview-nav-content {\n overflow-x: auto;\n overflow-y: hidden;\n scroll-behavior: smooth;\n scrollbar-width: none;\n -ms-scroll-chaining: contain auto;\n overscroll-behavior: contain auto;\n}\n.p-tabview-nav {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n margin: 0;\n padding: 0;\n list-style-type: none;\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n}\n.p-tabview-nav-link {\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n position: relative;\n text-decoration: none;\n overflow: hidden;\n}\n.p-tabview-ink-bar {\n display: none;\n z-index: 1;\n}\n.p-tabview-nav-link:focus {\n z-index: 1;\n}\n.p-tabview-title {\n line-height: 1;\n white-space: nowrap;\n}\n.p-tabview-nav-btn {\n position: absolute;\n top: 0;\n z-index: 2;\n height: 100%;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.p-tabview-nav-prev {\n left: 0;\n}\n.p-tabview-nav-next {\n right: 0;\n}\n.p-tabview-nav-content::-webkit-scrollbar {\n display: none;\n}\n";
  40317. styleInject(css_248z);
  40318. script.render = render;
  40319. /***/ }),
  40320. /***/ "./node_modules/primevue/textarea/textarea.esm.js":
  40321. /*!********************************************************!*\
  40322. !*** ./node_modules/primevue/textarea/textarea.esm.js ***!
  40323. \********************************************************/
  40324. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  40325. "use strict";
  40326. __webpack_require__.r(__webpack_exports__);
  40327. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  40328. /* harmony export */ "default": () => (/* binding */ script)
  40329. /* harmony export */ });
  40330. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  40331. var script = {
  40332. name: 'Textarea',
  40333. emits: ['update:modelValue'],
  40334. props: {
  40335. modelValue: null,
  40336. autoResize: Boolean
  40337. },
  40338. mounted() {
  40339. if (this.$el.offsetParent && this.autoResize) {
  40340. this.resize();
  40341. }
  40342. },
  40343. updated() {
  40344. if (this.$el.offsetParent && this.autoResize) {
  40345. this.resize();
  40346. }
  40347. },
  40348. methods: {
  40349. resize() {
  40350. const style = window.getComputedStyle(this.$el);
  40351. this.$el.style.height = 'auto';
  40352. this.$el.style.height = `calc(${style.borderTopWidth} + ${style.borderBottomWidth} + ${this.$el.scrollHeight}px)`;
  40353. if (parseFloat(this.$el.style.height) >= parseFloat(this.$el.style.maxHeight)) {
  40354. this.$el.style.overflowY = "scroll";
  40355. this.$el.style.height = this.$el.style.maxHeight;
  40356. }
  40357. else {
  40358. this.$el.style.overflow = "hidden";
  40359. }
  40360. },
  40361. onInput(event) {
  40362. if (this.autoResize) {
  40363. this.resize();
  40364. }
  40365. this.$emit('update:modelValue', event.target.value);
  40366. }
  40367. },
  40368. computed: {
  40369. filled() {
  40370. return (this.modelValue != null && this.modelValue.toString().length > 0)
  40371. }
  40372. }
  40373. };
  40374. const _hoisted_1 = ["value"];
  40375. function render(_ctx, _cache, $props, $setup, $data, $options) {
  40376. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("textarea", (0,vue__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({
  40377. class: ['p-inputtextarea p-inputtext p-component', {'p-filled': $options.filled, 'p-inputtextarea-resizable ': $props.autoResize}]
  40378. }, _ctx.$attrs, {
  40379. value: $props.modelValue,
  40380. onInput: _cache[0] || (_cache[0] = (...args) => ($options.onInput && $options.onInput(...args)))
  40381. }), null, 16, _hoisted_1))
  40382. }
  40383. function styleInject(css, ref) {
  40384. if ( ref === void 0 ) ref = {};
  40385. var insertAt = ref.insertAt;
  40386. if (!css || typeof document === 'undefined') { return; }
  40387. var head = document.head || document.getElementsByTagName('head')[0];
  40388. var style = document.createElement('style');
  40389. style.type = 'text/css';
  40390. if (insertAt === 'top') {
  40391. if (head.firstChild) {
  40392. head.insertBefore(style, head.firstChild);
  40393. } else {
  40394. head.appendChild(style);
  40395. }
  40396. } else {
  40397. head.appendChild(style);
  40398. }
  40399. if (style.styleSheet) {
  40400. style.styleSheet.cssText = css;
  40401. } else {
  40402. style.appendChild(document.createTextNode(css));
  40403. }
  40404. }
  40405. var css_248z = "\n.p-inputtextarea-resizable {\n overflow: hidden;\n resize: none;\n}\n.p-fluid .p-inputtextarea {\n width: 100%;\n}\n";
  40406. styleInject(css_248z);
  40407. script.render = render;
  40408. /***/ }),
  40409. /***/ "./node_modules/primevue/tooltip/tooltip.esm.js":
  40410. /*!******************************************************!*\
  40411. !*** ./node_modules/primevue/tooltip/tooltip.esm.js ***!
  40412. \******************************************************/
  40413. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  40414. "use strict";
  40415. __webpack_require__.r(__webpack_exports__);
  40416. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  40417. /* harmony export */ "default": () => (/* binding */ Tooltip)
  40418. /* harmony export */ });
  40419. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  40420. function bindEvents(el) {
  40421. const modifiers = el.$_ptooltipModifiers;
  40422. if (modifiers.focus) {
  40423. el.addEventListener('focus', onFocus);
  40424. el.addEventListener('blur', onBlur);
  40425. }
  40426. else {
  40427. el.addEventListener('mouseenter', onMouseEnter);
  40428. el.addEventListener('mouseleave', onMouseLeave);
  40429. el.addEventListener('click', onClick);
  40430. }
  40431. }
  40432. function unbindEvents(el) {
  40433. const modifiers = el.$_ptooltipModifiers;
  40434. if (modifiers.focus) {
  40435. el.removeEventListener('focus', onFocus);
  40436. el.removeEventListener('blur', onBlur);
  40437. }
  40438. else {
  40439. el.removeEventListener('mouseenter', onMouseEnter);
  40440. el.removeEventListener('mouseleave', onMouseLeave);
  40441. el.removeEventListener('click', onClick);
  40442. }
  40443. }
  40444. function bindScrollListener(el) {
  40445. if (!el.$_ptooltipScrollHandler) {
  40446. el.$_ptooltipScrollHandler = new primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ConnectedOverlayScrollHandler(el, function() {
  40447. hide(el);
  40448. });
  40449. }
  40450. el.$_ptooltipScrollHandler.bindScrollListener();
  40451. }
  40452. function unbindScrollListener(el) {
  40453. if (el.$_ptooltipScrollHandler) {
  40454. el.$_ptooltipScrollHandler.unbindScrollListener();
  40455. }
  40456. }
  40457. function onMouseEnter(event) {
  40458. show(event.currentTarget);
  40459. }
  40460. function onMouseLeave(event) {
  40461. hide(event.currentTarget);
  40462. }
  40463. function onFocus(event) {
  40464. show(event.currentTarget);
  40465. }
  40466. function onBlur(event) {
  40467. hide(event.currentTarget);
  40468. }
  40469. function onClick(event) {
  40470. hide(event.currentTarget);
  40471. }
  40472. function show(el) {
  40473. if (el.$_ptooltipDisabled) {
  40474. return;
  40475. }
  40476. let tooltipElement = create(el);
  40477. align(el);
  40478. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.fadeIn(tooltipElement, 250);
  40479. window.addEventListener('resize', function onWindowResize() {
  40480. if (!primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.isAndroid()) {
  40481. hide(el);
  40482. }
  40483. this.removeEventListener('resize', onWindowResize);
  40484. });
  40485. bindScrollListener(el);
  40486. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.set('tooltip', tooltipElement, el.$_ptooltipZIndex);
  40487. }
  40488. function hide(el) {
  40489. remove(el);
  40490. unbindScrollListener(el);
  40491. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(el);
  40492. }
  40493. function getTooltipElement(el) {
  40494. return document.getElementById(el.$_ptooltipId);
  40495. }
  40496. function create(el) {
  40497. const id = (0,primevue_utils__WEBPACK_IMPORTED_MODULE_0__.UniqueComponentId)() + '_tooltip';
  40498. el.$_ptooltipId = id;
  40499. let container = document.createElement('div');
  40500. container.id = id;
  40501. let tooltipArrow = document.createElement('div');
  40502. tooltipArrow.className = 'p-tooltip-arrow';
  40503. container.appendChild(tooltipArrow);
  40504. let tooltipText = document.createElement('div');
  40505. tooltipText.className = 'p-tooltip-text';
  40506. if (el.$_ptooltipEscape) {
  40507. tooltipText.innerHTML = el.$_ptooltipValue;
  40508. }
  40509. else {
  40510. tooltipText.innerHTML = '';
  40511. tooltipText.appendChild(document.createTextNode(el.$_ptooltipValue));
  40512. }
  40513. container.appendChild(tooltipText);
  40514. document.body.appendChild(container);
  40515. container.style.display = 'inline-block';
  40516. return container;
  40517. }
  40518. function remove(el) {
  40519. if (el) {
  40520. let tooltipElement = getTooltipElement(el);
  40521. if (tooltipElement && tooltipElement.parentElement) {
  40522. document.body.removeChild(tooltipElement);
  40523. }
  40524. el.$_ptooltipId = null;
  40525. }
  40526. }
  40527. function align(el) {
  40528. const modifiers = el.$_ptooltipModifiers;
  40529. if (modifiers.top) {
  40530. alignTop(el);
  40531. if (isOutOfBounds(el)) {
  40532. alignBottom(el);
  40533. if (isOutOfBounds(el)) {
  40534. alignTop(el);
  40535. }
  40536. }
  40537. }
  40538. else if (modifiers.left) {
  40539. alignLeft(el);
  40540. if (isOutOfBounds(el)) {
  40541. alignRight(el);
  40542. if (isOutOfBounds(el)) {
  40543. alignTop(el);
  40544. if (isOutOfBounds(el)) {
  40545. alignBottom(el);
  40546. if (isOutOfBounds(el)) {
  40547. alignLeft(el);
  40548. }
  40549. }
  40550. }
  40551. }
  40552. }
  40553. else if (modifiers.bottom) {
  40554. alignBottom(el);
  40555. if (isOutOfBounds(el)) {
  40556. alignTop(el);
  40557. if (isOutOfBounds(el)) {
  40558. alignBottom(el);
  40559. }
  40560. }
  40561. }
  40562. else {
  40563. alignRight(el);
  40564. if (isOutOfBounds(el)) {
  40565. alignLeft(el);
  40566. if (isOutOfBounds(el)) {
  40567. alignTop(el);
  40568. if (isOutOfBounds(el)) {
  40569. alignBottom(el);
  40570. if (isOutOfBounds(el)) {
  40571. alignRight(el);
  40572. }
  40573. }
  40574. }
  40575. }
  40576. }
  40577. }
  40578. function getHostOffset(el) {
  40579. let offset = el.getBoundingClientRect();
  40580. let targetLeft = offset.left + primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getWindowScrollLeft();
  40581. let targetTop = offset.top + primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getWindowScrollTop();
  40582. return {left: targetLeft, top: targetTop};
  40583. }
  40584. function alignRight(el) {
  40585. preAlign(el, 'right');
  40586. let tooltipElement = getTooltipElement(el);
  40587. let hostOffset = getHostOffset(el);
  40588. let left = hostOffset.left + primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(el);
  40589. let top = hostOffset.top + (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(el) - primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(tooltipElement)) / 2;
  40590. tooltipElement.style.left = left + 'px';
  40591. tooltipElement.style.top = top + 'px';
  40592. }
  40593. function alignLeft(el) {
  40594. preAlign(el, 'left');
  40595. let tooltipElement = getTooltipElement(el);
  40596. let hostOffset = getHostOffset(el);
  40597. let left = hostOffset.left - primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(tooltipElement);
  40598. let top = hostOffset.top + (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(el) - primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(tooltipElement)) / 2;
  40599. tooltipElement.style.left = left + 'px';
  40600. tooltipElement.style.top = top + 'px';
  40601. }
  40602. function alignTop(el) {
  40603. preAlign(el, 'top');
  40604. let tooltipElement = getTooltipElement(el);
  40605. let hostOffset = getHostOffset(el);
  40606. let left = hostOffset.left + (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(el) - primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(tooltipElement)) / 2;
  40607. let top = hostOffset.top - primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(tooltipElement);
  40608. tooltipElement.style.left = left + 'px';
  40609. tooltipElement.style.top = top + 'px';
  40610. }
  40611. function alignBottom(el) {
  40612. preAlign(el, 'bottom');
  40613. let tooltipElement = getTooltipElement(el);
  40614. let hostOffset = getHostOffset(el);
  40615. let left = hostOffset.left + (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(el) - primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(tooltipElement)) / 2;
  40616. let top = hostOffset.top + primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(el);
  40617. tooltipElement.style.left = left + 'px';
  40618. tooltipElement.style.top = top + 'px';
  40619. }
  40620. function preAlign(el, position) {
  40621. let tooltipElement = getTooltipElement(el);
  40622. tooltipElement.style.left = -999 + 'px';
  40623. tooltipElement.style.top = -999 + 'px';
  40624. tooltipElement.className = `p-tooltip p-component p-tooltip-${position} ${el.$_ptooltipClass||''}`;
  40625. }
  40626. function isOutOfBounds(el) {
  40627. let tooltipElement = getTooltipElement(el);
  40628. let offset = tooltipElement.getBoundingClientRect();
  40629. let targetTop = offset.top;
  40630. let targetLeft = offset.left;
  40631. let width = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(tooltipElement);
  40632. let height = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(tooltipElement);
  40633. let viewport = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getViewport();
  40634. return (targetLeft + width > viewport.width) || (targetLeft < 0) || (targetTop < 0) || (targetTop + height > viewport.height);
  40635. }
  40636. function getTarget(el) {
  40637. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(el, 'p-inputwrapper') ? primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(el, 'input'): el;
  40638. }
  40639. function getModifiers(options) {
  40640. // modifiers
  40641. if (options.modifiers && Object.keys(options.modifiers).length) {
  40642. return options.modifiers;
  40643. }
  40644. // arg
  40645. if (options.arg && typeof options.arg === 'object') {
  40646. return Object.entries(options.arg).reduce((acc, [key, val]) => {
  40647. if (key === 'event' || key === 'position') acc[val] = true;
  40648. return acc;
  40649. }, {});
  40650. }
  40651. return {};
  40652. }
  40653. const Tooltip = {
  40654. beforeMount(el, options) {
  40655. let target = getTarget(el);
  40656. target.$_ptooltipModifiers = getModifiers(options);
  40657. if (!options.value) return;
  40658. else if (typeof options.value === 'string') {
  40659. target.$_ptooltipValue = options.value;
  40660. target.$_ptooltipDisabled = false;
  40661. target.$_ptooltipEscape = false;
  40662. target.$_ptooltipClass = null;
  40663. }
  40664. else {
  40665. target.$_ptooltipValue = options.value.value;
  40666. target.$_ptooltipDisabled = options.value.disabled || false;
  40667. target.$_ptooltipEscape = options.value.escape || false;
  40668. target.$_ptooltipClass = options.value.class;
  40669. }
  40670. target.$_ptooltipZIndex = options.instance.$primevue && options.instance.$primevue.config && options.instance.$primevue.config.zIndex.tooltip;
  40671. bindEvents(target);
  40672. },
  40673. unmounted(el) {
  40674. let target = getTarget(el);
  40675. remove(target);
  40676. unbindEvents(target);
  40677. if (target.$_ptooltipScrollHandler) {
  40678. target.$_ptooltipScrollHandler.destroy();
  40679. target.$_ptooltipScrollHandler = null;
  40680. }
  40681. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(el);
  40682. },
  40683. updated(el, options) {
  40684. let target = getTarget(el);
  40685. target.$_ptooltipModifiers = getModifiers(options);
  40686. if (!options.value) return;
  40687. if (typeof options.value === 'string') {
  40688. target.$_ptooltipValue = options.value;
  40689. target.$_ptooltipDisabled = false;
  40690. target.$_ptooltipEscape = false;
  40691. target.$_ptooltipClass = null;
  40692. }
  40693. else {
  40694. target.$_ptooltipValue = options.value.value;
  40695. target.$_ptooltipDisabled = options.value.disabled || false;
  40696. target.$_ptooltipEscape = options.value.escape || false;
  40697. target.$_ptooltipClass = options.value.class;
  40698. }
  40699. }
  40700. };
  40701. /***/ }),
  40702. /***/ "./node_modules/primevue/utils/utils.esm.js":
  40703. /*!**************************************************!*\
  40704. !*** ./node_modules/primevue/utils/utils.esm.js ***!
  40705. \**************************************************/
  40706. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  40707. "use strict";
  40708. __webpack_require__.r(__webpack_exports__);
  40709. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  40710. /* harmony export */ "ConnectedOverlayScrollHandler": () => (/* binding */ ConnectedOverlayScrollHandler),
  40711. /* harmony export */ "DomHandler": () => (/* binding */ DomHandler),
  40712. /* harmony export */ "EventBus": () => (/* binding */ primebus),
  40713. /* harmony export */ "ObjectUtils": () => (/* binding */ ObjectUtils),
  40714. /* harmony export */ "UniqueComponentId": () => (/* binding */ UniqueComponentId),
  40715. /* harmony export */ "ZIndexUtils": () => (/* binding */ ZIndexUtils)
  40716. /* harmony export */ });
  40717. var DomHandler = {
  40718. innerWidth(el) {
  40719. let width = el.offsetWidth;
  40720. let style = getComputedStyle(el);
  40721. width += parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);
  40722. return width;
  40723. },
  40724. width(el) {
  40725. let width = el.offsetWidth;
  40726. let style = getComputedStyle(el);
  40727. width -= parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);
  40728. return width;
  40729. },
  40730. getWindowScrollTop() {
  40731. let doc = document.documentElement;
  40732. return (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);
  40733. },
  40734. getWindowScrollLeft() {
  40735. let doc = document.documentElement;
  40736. return (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0);
  40737. },
  40738. getOuterWidth(el, margin) {
  40739. if (el) {
  40740. let width = el.offsetWidth;
  40741. if (margin) {
  40742. let style = getComputedStyle(el);
  40743. width += parseFloat(style.marginLeft) + parseFloat(style.marginRight);
  40744. }
  40745. return width;
  40746. }
  40747. else {
  40748. return 0;
  40749. }
  40750. },
  40751. getOuterHeight(el, margin) {
  40752. if (el) {
  40753. let height = el.offsetHeight;
  40754. if (margin) {
  40755. let style = getComputedStyle(el);
  40756. height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
  40757. }
  40758. return height;
  40759. }
  40760. else {
  40761. return 0;
  40762. }
  40763. },
  40764. getClientHeight(el, margin) {
  40765. if (el) {
  40766. let height = el.clientHeight;
  40767. if (margin) {
  40768. let style = getComputedStyle(el);
  40769. height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
  40770. }
  40771. return height;
  40772. } else {
  40773. return 0;
  40774. }
  40775. },
  40776. getViewport() {
  40777. let win = window,
  40778. d = document,
  40779. e = d.documentElement,
  40780. g = d.getElementsByTagName('body')[0],
  40781. w = win.innerWidth || e.clientWidth || g.clientWidth,
  40782. h = win.innerHeight || e.clientHeight || g.clientHeight;
  40783. return {width: w, height: h};
  40784. },
  40785. getOffset(el) {
  40786. var rect = el.getBoundingClientRect();
  40787. return {
  40788. top: rect.top + (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0),
  40789. left: rect.left + (window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0),
  40790. };
  40791. },
  40792. index(element) {
  40793. let children = element.parentNode.childNodes;
  40794. let num = 0;
  40795. for (var i = 0; i < children.length; i++) {
  40796. if (children[i] === element) return num;
  40797. if (children[i].nodeType === 1) num++;
  40798. }
  40799. return -1;
  40800. },
  40801. addMultipleClasses(element, className) {
  40802. if (element.classList) {
  40803. let styles = className.split(' ');
  40804. for (let i = 0; i < styles.length; i++) {
  40805. element.classList.add(styles[i]);
  40806. }
  40807. }
  40808. else {
  40809. let styles = className.split(' ');
  40810. for (let i = 0; i < styles.length; i++) {
  40811. element.className += ' ' + styles[i];
  40812. }
  40813. }
  40814. },
  40815. addClass(element, className) {
  40816. if (element.classList)
  40817. element.classList.add(className);
  40818. else
  40819. element.className += ' ' + className;
  40820. },
  40821. removeClass(element, className) {
  40822. if (element.classList)
  40823. element.classList.remove(className);
  40824. else
  40825. element.className = element.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' ');
  40826. },
  40827. hasClass(element, className) {
  40828. if (element) {
  40829. if (element.classList)
  40830. return element.classList.contains(className);
  40831. else
  40832. return new RegExp('(^| )' + className + '( |$)', 'gi').test(element.className);
  40833. }
  40834. return false;
  40835. },
  40836. find(element, selector) {
  40837. return element.querySelectorAll(selector);
  40838. },
  40839. findSingle(element, selector) {
  40840. return element.querySelector(selector);
  40841. },
  40842. getHeight(el) {
  40843. let height = el.offsetHeight;
  40844. let style = getComputedStyle(el);
  40845. height -= parseFloat(style.paddingTop) + parseFloat(style.paddingBottom) + parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);
  40846. return height;
  40847. },
  40848. getWidth(el) {
  40849. let width = el.offsetWidth;
  40850. let style = getComputedStyle(el);
  40851. width -= parseFloat(style.paddingLeft) + parseFloat(style.paddingRight) + parseFloat(style.borderLeftWidth) + parseFloat(style.borderRightWidth);
  40852. return width;
  40853. },
  40854. absolutePosition(element, target) {
  40855. let elementDimensions = element.offsetParent ? { width: element.offsetWidth, height: element.offsetHeight } : this.getHiddenElementDimensions(element);
  40856. let elementOuterHeight = elementDimensions.height;
  40857. let elementOuterWidth = elementDimensions.width;
  40858. let targetOuterHeight = target.offsetHeight;
  40859. let targetOuterWidth = target.offsetWidth;
  40860. let targetOffset = target.getBoundingClientRect();
  40861. let windowScrollTop = this.getWindowScrollTop();
  40862. let windowScrollLeft = this.getWindowScrollLeft();
  40863. let viewport = this.getViewport();
  40864. let top, left;
  40865. if (targetOffset.top + targetOuterHeight + elementOuterHeight > viewport.height) {
  40866. top = targetOffset.top + windowScrollTop - elementOuterHeight;
  40867. element.style.transformOrigin = 'bottom';
  40868. if (top < 0) {
  40869. top = windowScrollTop;
  40870. }
  40871. }
  40872. else {
  40873. top = targetOuterHeight + targetOffset.top + windowScrollTop;
  40874. element.style.transformOrigin = 'top';
  40875. }
  40876. if (targetOffset.left + elementOuterWidth > viewport.width)
  40877. left = Math.max(0, targetOffset.left + windowScrollLeft + targetOuterWidth - elementOuterWidth);
  40878. else
  40879. left = targetOffset.left + windowScrollLeft;
  40880. element.style.top = top + 'px';
  40881. element.style.left = left + 'px';
  40882. },
  40883. relativePosition(element, target) {
  40884. let elementDimensions = element.offsetParent ? { width: element.offsetWidth, height: element.offsetHeight } : this.getHiddenElementDimensions(element);
  40885. const targetHeight = target.offsetHeight;
  40886. const targetOffset = target.getBoundingClientRect();
  40887. const viewport = this.getViewport();
  40888. let top, left;
  40889. if ((targetOffset.top + targetHeight + elementDimensions.height) > viewport.height) {
  40890. top = -1 * (elementDimensions.height);
  40891. element.style.transformOrigin = 'bottom';
  40892. if (targetOffset.top + top < 0) {
  40893. top = -1 * targetOffset.top;
  40894. }
  40895. }
  40896. else {
  40897. top = targetHeight;
  40898. element.style.transformOrigin = 'top';
  40899. }
  40900. if (elementDimensions.width > viewport.width) {
  40901. // element wider then viewport and cannot fit on screen (align at left side of viewport)
  40902. left = targetOffset.left * -1;
  40903. }
  40904. else if ((targetOffset.left + elementDimensions.width) > viewport.width) {
  40905. // element wider then viewport but can be fit on screen (align at right side of viewport)
  40906. left = (targetOffset.left + elementDimensions.width - viewport.width) * -1;
  40907. }
  40908. else {
  40909. // element fits on screen (align with target)
  40910. left = 0;
  40911. }
  40912. element.style.top = top + 'px';
  40913. element.style.left = left + 'px';
  40914. },
  40915. getParents(element, parents = []) {
  40916. return element['parentNode'] === null ? parents : this.getParents(element.parentNode, parents.concat([element.parentNode]));
  40917. },
  40918. getScrollableParents(element) {
  40919. let scrollableParents = [];
  40920. if (element) {
  40921. let parents = this.getParents(element);
  40922. const overflowRegex = /(auto|scroll)/;
  40923. const overflowCheck = (node) => {
  40924. let styleDeclaration = window['getComputedStyle'](node, null);
  40925. return overflowRegex.test(styleDeclaration.getPropertyValue('overflow')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowX')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowY'));
  40926. };
  40927. for (let parent of parents) {
  40928. let scrollSelectors = parent.nodeType === 1 && parent.dataset['scrollselectors'];
  40929. if (scrollSelectors) {
  40930. let selectors = scrollSelectors.split(',');
  40931. for (let selector of selectors) {
  40932. let el = this.findSingle(parent, selector);
  40933. if (el && overflowCheck(el)) {
  40934. scrollableParents.push(el);
  40935. }
  40936. }
  40937. }
  40938. if (parent.nodeType !== 9 && overflowCheck(parent)) {
  40939. scrollableParents.push(parent);
  40940. }
  40941. }
  40942. }
  40943. return scrollableParents;
  40944. },
  40945. getHiddenElementOuterHeight(element) {
  40946. element.style.visibility = 'hidden';
  40947. element.style.display = 'block';
  40948. let elementHeight = element.offsetHeight;
  40949. element.style.display = 'none';
  40950. element.style.visibility = 'visible';
  40951. return elementHeight;
  40952. },
  40953. getHiddenElementOuterWidth(element) {
  40954. element.style.visibility = 'hidden';
  40955. element.style.display = 'block';
  40956. let elementWidth = element.offsetWidth;
  40957. element.style.display = 'none';
  40958. element.style.visibility = 'visible';
  40959. return elementWidth;
  40960. },
  40961. getHiddenElementDimensions(element) {
  40962. var dimensions = {};
  40963. element.style.visibility = 'hidden';
  40964. element.style.display = 'block';
  40965. dimensions.width = element.offsetWidth;
  40966. dimensions.height = element.offsetHeight;
  40967. element.style.display = 'none';
  40968. element.style.visibility = 'visible';
  40969. return dimensions;
  40970. },
  40971. fadeIn(element, duration) {
  40972. element.style.opacity = 0;
  40973. var last = +new Date();
  40974. var opacity = 0;
  40975. var tick = function () {
  40976. opacity = +element.style.opacity + (new Date().getTime() - last) / duration;
  40977. element.style.opacity = opacity;
  40978. last = +new Date();
  40979. if (+opacity < 1) {
  40980. (window.requestAnimationFrame && requestAnimationFrame(tick)) || setTimeout(tick, 16);
  40981. }
  40982. };
  40983. tick();
  40984. },
  40985. fadeOut(element, ms) {
  40986. var opacity = 1,
  40987. interval = 50,
  40988. duration = ms,
  40989. gap = interval / duration;
  40990. let fading = setInterval(() => {
  40991. opacity -= gap;
  40992. if (opacity <= 0) {
  40993. opacity = 0;
  40994. clearInterval(fading);
  40995. }
  40996. element.style.opacity = opacity;
  40997. }, interval);
  40998. },
  40999. getUserAgent() {
  41000. return navigator.userAgent;
  41001. },
  41002. appendChild(element, target) {
  41003. if(this.isElement(target))
  41004. target.appendChild(element);
  41005. else if(target.el && target.elElement)
  41006. target.elElement.appendChild(element);
  41007. else
  41008. throw new Error('Cannot append ' + target + ' to ' + element);
  41009. },
  41010. scrollInView(container, item) {
  41011. let borderTopValue = getComputedStyle(container).getPropertyValue('borderTopWidth');
  41012. let borderTop = borderTopValue ? parseFloat(borderTopValue) : 0;
  41013. let paddingTopValue = getComputedStyle(container).getPropertyValue('paddingTop');
  41014. let paddingTop = paddingTopValue ? parseFloat(paddingTopValue) : 0;
  41015. let containerRect = container.getBoundingClientRect();
  41016. let itemRect = item.getBoundingClientRect();
  41017. let offset = (itemRect.top + document.body.scrollTop) - (containerRect.top + document.body.scrollTop) - borderTop - paddingTop;
  41018. let scroll = container.scrollTop;
  41019. let elementHeight = container.clientHeight;
  41020. let itemHeight = this.getOuterHeight(item);
  41021. if (offset < 0) {
  41022. container.scrollTop = scroll + offset;
  41023. }
  41024. else if ((offset + itemHeight) > elementHeight) {
  41025. container.scrollTop = scroll + offset - elementHeight + itemHeight;
  41026. }
  41027. },
  41028. clearSelection() {
  41029. if(window.getSelection) {
  41030. if(window.getSelection().empty) {
  41031. window.getSelection().empty();
  41032. } else if(window.getSelection().removeAllRanges && window.getSelection().rangeCount > 0 && window.getSelection().getRangeAt(0).getClientRects().length > 0) {
  41033. window.getSelection().removeAllRanges();
  41034. }
  41035. }
  41036. else if(document['selection'] && document['selection'].empty) {
  41037. try {
  41038. document['selection'].empty();
  41039. } catch(error) {
  41040. //ignore IE bug
  41041. }
  41042. }
  41043. },
  41044. calculateScrollbarWidth() {
  41045. if(this.calculatedScrollbarWidth != null)
  41046. return this.calculatedScrollbarWidth;
  41047. let scrollDiv = document.createElement("div");
  41048. scrollDiv.className = "p-scrollbar-measure";
  41049. document.body.appendChild(scrollDiv);
  41050. let scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;
  41051. document.body.removeChild(scrollDiv);
  41052. this.calculatedScrollbarWidth = scrollbarWidth;
  41053. return scrollbarWidth;
  41054. },
  41055. getBrowser() {
  41056. if(!this.browser) {
  41057. let matched = this.resolveUserAgent();
  41058. this.browser = {};
  41059. if (matched.browser) {
  41060. this.browser[matched.browser] = true;
  41061. this.browser['version'] = matched.version;
  41062. }
  41063. if (this.browser['chrome']) {
  41064. this.browser['webkit'] = true;
  41065. } else if (this.browser['webkit']) {
  41066. this.browser['safari'] = true;
  41067. }
  41068. }
  41069. return this.browser;
  41070. },
  41071. resolveUserAgent() {
  41072. let ua = navigator.userAgent.toLowerCase();
  41073. let match = /(chrome)[ ]([\w.]+)/.exec(ua) ||
  41074. /(webkit)[ ]([\w.]+)/.exec(ua) ||
  41075. /(opera)(?:.*version|)[ ]([\w.]+)/.exec(ua) ||
  41076. /(msie) ([\w.]+)/.exec(ua) ||
  41077. (ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua)) ||
  41078. [];
  41079. return {
  41080. browser: match[1] || "",
  41081. version: match[2] || "0"
  41082. };
  41083. },
  41084. isVisible(element) {
  41085. return element.offsetParent != null;
  41086. },
  41087. invokeElementMethod(element, methodName, args) {
  41088. (element)[methodName].apply(element, args);
  41089. },
  41090. getFocusableElements(element) {
  41091. let focusableElements = this.find(element, `button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),
  41092. [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),
  41093. input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),
  41094. textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),
  41095. [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`
  41096. );
  41097. let visibleFocusableElements = [];
  41098. for (let focusableElement of focusableElements) {
  41099. if (getComputedStyle(focusableElement).display != "none" && getComputedStyle(focusableElement).visibility != "hidden")
  41100. visibleFocusableElements.push(focusableElement);
  41101. }
  41102. return visibleFocusableElements;
  41103. },
  41104. getFirstFocusableElement(element) {
  41105. const focusableElements = this.getFocusableElements(element);
  41106. return focusableElements.length > 0 ? focusableElements[0] : null;
  41107. },
  41108. isClickable(element) {
  41109. const targetNode = element.nodeName;
  41110. const parentNode = element.parentElement && element.parentElement.nodeName;
  41111. return (targetNode == 'INPUT' || targetNode == 'BUTTON' || targetNode == 'A' ||
  41112. parentNode == 'INPUT' || parentNode == 'BUTTON' || parentNode == 'A' ||
  41113. this.hasClass(element, 'p-button') || this.hasClass(element.parentElement, 'p-button') ||
  41114. this.hasClass(element.parentElement, 'p-checkbox') || this.hasClass(element.parentElement, 'p-radiobutton')
  41115. );
  41116. },
  41117. applyStyle(element, style) {
  41118. if (typeof style === 'string') {
  41119. element.style.cssText = style;
  41120. }
  41121. else {
  41122. for (let prop in style) {
  41123. element.style[prop] = style[prop];
  41124. }
  41125. }
  41126. },
  41127. isIOS() {
  41128. return /iPad|iPhone|iPod/.test(navigator.userAgent) && !window['MSStream'];
  41129. },
  41130. isAndroid() {
  41131. return /(android)/i.test(navigator.userAgent);
  41132. },
  41133. isTouchDevice() {
  41134. return (('ontouchstart' in window) || (navigator.maxTouchPoints > 0) || (navigator.msMaxTouchPoints > 0));
  41135. },
  41136. exportCSV(csv, filename) {
  41137. let blob = new Blob([csv], {
  41138. type: 'application/csv;charset=utf-8;'
  41139. });
  41140. if (window.navigator.msSaveOrOpenBlob) {
  41141. navigator.msSaveOrOpenBlob(blob, filename + '.csv');
  41142. }
  41143. else {
  41144. let link = document.createElement("a");
  41145. if (link.download !== undefined) {
  41146. link.setAttribute('href', URL.createObjectURL(blob));
  41147. link.setAttribute('download', filename + '.csv');
  41148. link.style.display = 'none';
  41149. document.body.appendChild(link);
  41150. link.click();
  41151. document.body.removeChild(link);
  41152. }
  41153. else {
  41154. csv = 'data:text/csv;charset=utf-8,' + csv;
  41155. window.open(encodeURI(csv));
  41156. }
  41157. }
  41158. }
  41159. };
  41160. class ConnectedOverlayScrollHandler {
  41161. constructor(element, listener = () => {}) {
  41162. this.element = element;
  41163. this.listener = listener;
  41164. }
  41165. bindScrollListener() {
  41166. this.scrollableParents = DomHandler.getScrollableParents(this.element);
  41167. for (let i = 0; i < this.scrollableParents.length; i++) {
  41168. this.scrollableParents[i].addEventListener('scroll', this.listener);
  41169. }
  41170. }
  41171. unbindScrollListener() {
  41172. if (this.scrollableParents) {
  41173. for (let i = 0; i < this.scrollableParents.length; i++) {
  41174. this.scrollableParents[i].removeEventListener('scroll', this.listener);
  41175. }
  41176. }
  41177. }
  41178. destroy() {
  41179. this.unbindScrollListener();
  41180. this.element = null;
  41181. this.listener = null;
  41182. this.scrollableParents = null;
  41183. }
  41184. }
  41185. var ObjectUtils = {
  41186. equals(obj1, obj2, field) {
  41187. if (field)
  41188. return (this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field));
  41189. else
  41190. return this.deepEquals(obj1, obj2);
  41191. },
  41192. deepEquals(a, b) {
  41193. if (a === b) return true;
  41194. if (a && b && typeof a == 'object' && typeof b == 'object') {
  41195. var arrA = Array.isArray(a)
  41196. , arrB = Array.isArray(b)
  41197. , i
  41198. , length
  41199. , key;
  41200. if (arrA && arrB) {
  41201. length = a.length;
  41202. if (length != b.length) return false;
  41203. for (i = length; i-- !== 0;)
  41204. if (!this.deepEquals(a[i], b[i])) return false;
  41205. return true;
  41206. }
  41207. if (arrA != arrB) return false;
  41208. var dateA = a instanceof Date
  41209. , dateB = b instanceof Date;
  41210. if (dateA != dateB) return false;
  41211. if (dateA && dateB) return a.getTime() == b.getTime();
  41212. var regexpA = a instanceof RegExp
  41213. , regexpB = b instanceof RegExp;
  41214. if (regexpA != regexpB) return false;
  41215. if (regexpA && regexpB) return a.toString() == b.toString();
  41216. var keys = Object.keys(a);
  41217. length = keys.length;
  41218. if (length !== Object.keys(b).length)
  41219. return false;
  41220. for (i = length; i-- !== 0;)
  41221. if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
  41222. for (i = length; i-- !== 0;) {
  41223. key = keys[i];
  41224. if (!this.deepEquals(a[key], b[key])) return false;
  41225. }
  41226. return true;
  41227. }
  41228. return a !== a && b !== b;
  41229. },
  41230. resolveFieldData(data, field) {
  41231. if (data && Object.keys(data).length && field) {
  41232. if (this.isFunction(field)) {
  41233. return field(data);
  41234. }
  41235. else if(field.indexOf('.') === -1) {
  41236. return data[field];
  41237. }
  41238. else {
  41239. let fields = field.split('.');
  41240. let value = data;
  41241. for(var i = 0, len = fields.length; i < len; ++i) {
  41242. if (value == null) {
  41243. return null;
  41244. }
  41245. value = value[fields[i]];
  41246. }
  41247. return value;
  41248. }
  41249. }
  41250. else {
  41251. return null;
  41252. }
  41253. },
  41254. isFunction(obj) {
  41255. return !!(obj && obj.constructor && obj.call && obj.apply);
  41256. },
  41257. filter(value, fields, filterValue) {
  41258. var filteredItems = [];
  41259. if (value) {
  41260. for (let item of value) {
  41261. for (let field of fields) {
  41262. if (String(this.resolveFieldData(item, field)).toLowerCase().indexOf(filterValue.toLowerCase()) > -1) {
  41263. filteredItems.push(item);
  41264. break;
  41265. }
  41266. }
  41267. }
  41268. }
  41269. return filteredItems;
  41270. },
  41271. reorderArray(value, from, to) {
  41272. let target;
  41273. if (value && (from !== to)) {
  41274. if (to >= value.length) {
  41275. target = to - value.length;
  41276. while ((target--) + 1) {
  41277. value.push(undefined);
  41278. }
  41279. }
  41280. value.splice(to, 0, value.splice(from, 1)[0]);
  41281. }
  41282. },
  41283. findIndexInList(value, list) {
  41284. let index = -1;
  41285. if (list) {
  41286. for (let i = 0; i < list.length; i++) {
  41287. if (list[i] === value) {
  41288. index = i;
  41289. break;
  41290. }
  41291. }
  41292. }
  41293. return index;
  41294. },
  41295. contains(value, list) {
  41296. if (value != null && list && list.length) {
  41297. for (let val of list) {
  41298. if (this.equals(value, val))
  41299. return true;
  41300. }
  41301. }
  41302. return false;
  41303. },
  41304. insertIntoOrderedArray(item, index, arr, sourceArr) {
  41305. if (arr.length > 0) {
  41306. let injected = false;
  41307. for (let i = 0; i < arr.length; i++) {
  41308. let currentItemIndex = this.findIndexInList(arr[i], sourceArr);
  41309. if (currentItemIndex > index) {
  41310. arr.splice(i, 0, item);
  41311. injected = true;
  41312. break;
  41313. }
  41314. }
  41315. if (!injected) {
  41316. arr.push(item);
  41317. }
  41318. }
  41319. else {
  41320. arr.push(item);
  41321. }
  41322. },
  41323. removeAccents(str) {
  41324. if (str && str.search(/[\xC0-\xFF]/g) > -1) {
  41325. str = str
  41326. .replace(/[\xC0-\xC5]/g, "A")
  41327. .replace(/[\xC6]/g, "AE")
  41328. .replace(/[\xC7]/g, "C")
  41329. .replace(/[\xC8-\xCB]/g, "E")
  41330. .replace(/[\xCC-\xCF]/g, "I")
  41331. .replace(/[\xD0]/g, "D")
  41332. .replace(/[\xD1]/g, "N")
  41333. .replace(/[\xD2-\xD6\xD8]/g, "O")
  41334. .replace(/[\xD9-\xDC]/g, "U")
  41335. .replace(/[\xDD]/g, "Y")
  41336. .replace(/[\xDE]/g, "P")
  41337. .replace(/[\xE0-\xE5]/g, "a")
  41338. .replace(/[\xE6]/g, "ae")
  41339. .replace(/[\xE7]/g, "c")
  41340. .replace(/[\xE8-\xEB]/g, "e")
  41341. .replace(/[\xEC-\xEF]/g, "i")
  41342. .replace(/[\xF1]/g, "n")
  41343. .replace(/[\xF2-\xF6\xF8]/g, "o")
  41344. .replace(/[\xF9-\xFC]/g, "u")
  41345. .replace(/[\xFE]/g, "p")
  41346. .replace(/[\xFD\xFF]/g, "y");
  41347. }
  41348. return str;
  41349. },
  41350. getVNodeProp(vnode, prop) {
  41351. let props = vnode.props;
  41352. if (props) {
  41353. let kebapProp = prop.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
  41354. let propName = Object.prototype.hasOwnProperty.call(props, kebapProp) ? kebapProp : prop;
  41355. return ((vnode.type.props[prop].type === Boolean && props[propName] === '') ? true : props[propName]);
  41356. }
  41357. return null;
  41358. },
  41359. isEmpty(value) {
  41360. return (
  41361. value === null || value === undefined || value === '' ||
  41362. (Array.isArray(value) && value.length === 0) ||
  41363. (!(value instanceof Date) && typeof value === 'object' && Object.keys(value).length === 0)
  41364. );
  41365. },
  41366. isNotEmpty(value) {
  41367. return !this.isEmpty(value);
  41368. }
  41369. };
  41370. function handler() {
  41371. let zIndexes = [];
  41372. const generateZIndex = (key, baseZIndex) => {
  41373. let lastZIndex = zIndexes.length > 0 ? zIndexes[zIndexes.length - 1] : { key, value: baseZIndex };
  41374. let newZIndex = lastZIndex.value + (lastZIndex.key === key ? 0 : baseZIndex) + 1;
  41375. zIndexes.push({ key, value: newZIndex });
  41376. return newZIndex;
  41377. };
  41378. const revertZIndex = (zIndex) => {
  41379. zIndexes = zIndexes.filter(obj => obj.value !== zIndex);
  41380. };
  41381. const getCurrentZIndex = () => {
  41382. return zIndexes.length > 0 ? zIndexes[zIndexes.length - 1].value : 0;
  41383. };
  41384. const getZIndex = (el) => {
  41385. return el ? parseInt(el.style.zIndex, 10) || 0 : 0
  41386. };
  41387. return {
  41388. get: getZIndex,
  41389. set: (key, el, baseZIndex) => {
  41390. if (el) {
  41391. el.style.zIndex = String(generateZIndex(key, baseZIndex));
  41392. }
  41393. },
  41394. clear: (el) => {
  41395. if (el) {
  41396. revertZIndex(getZIndex(el));
  41397. el.style.zIndex = '';
  41398. }
  41399. },
  41400. getCurrent: () => getCurrentZIndex()
  41401. };
  41402. }
  41403. var ZIndexUtils = handler();
  41404. var lastId = 0;
  41405. function UniqueComponentId (prefix = 'pv_id_') {
  41406. lastId++;
  41407. return `${prefix}${lastId}`;
  41408. }
  41409. function primebus() {
  41410. const allHandlers = new Map();
  41411. return {
  41412. on(type, handler) {
  41413. let handlers = allHandlers.get(type);
  41414. if (!handlers)
  41415. handlers = [handler];
  41416. else
  41417. handlers.push(handler);
  41418. allHandlers.set(type, handlers);
  41419. },
  41420. off(type, handler) {
  41421. let handlers = allHandlers.get(type);
  41422. if (handlers) {
  41423. handlers.splice(handlers.indexOf(handler) >>> 0, 1);
  41424. }
  41425. },
  41426. emit(type, evt) {
  41427. let handlers = allHandlers.get(type);
  41428. if (handlers) {
  41429. handlers.slice().map((handler) => { handler(evt);});
  41430. }
  41431. }
  41432. };
  41433. }
  41434. /***/ }),
  41435. /***/ "./node_modules/primevue/virtualscroller/virtualscroller.esm.js":
  41436. /*!**********************************************************************!*\
  41437. !*** ./node_modules/primevue/virtualscroller/virtualscroller.esm.js ***!
  41438. \**********************************************************************/
  41439. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  41440. "use strict";
  41441. __webpack_require__.r(__webpack_exports__);
  41442. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  41443. /* harmony export */ "default": () => (/* binding */ script)
  41444. /* harmony export */ });
  41445. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  41446. var script = {
  41447. name: 'VirtualScroller',
  41448. emits: ['update:numToleratedItems', 'scroll', 'scroll-index-change', 'lazy-load'],
  41449. props: {
  41450. id: {
  41451. type: String,
  41452. default: null
  41453. },
  41454. style: null,
  41455. class: null,
  41456. items: {
  41457. type: Array,
  41458. default: null
  41459. },
  41460. itemSize: {
  41461. type: [Number,Array],
  41462. default: 0
  41463. },
  41464. scrollHeight: null,
  41465. scrollWidth: null,
  41466. orientation: {
  41467. type: String,
  41468. default: 'vertical'
  41469. },
  41470. numToleratedItems: {
  41471. type: Number,
  41472. default: null
  41473. },
  41474. delay: {
  41475. type: Number,
  41476. default: 0
  41477. },
  41478. lazy: {
  41479. type: Boolean,
  41480. default: false
  41481. },
  41482. disabled: {
  41483. type: Boolean,
  41484. default: false
  41485. },
  41486. loaderDisabled: {
  41487. type: Boolean,
  41488. default: false
  41489. },
  41490. columns: {
  41491. type: Array,
  41492. default: null
  41493. },
  41494. loading: {
  41495. type: Boolean,
  41496. default: false
  41497. },
  41498. showSpacer: {
  41499. type: Boolean,
  41500. default: true
  41501. },
  41502. showLoader: {
  41503. type: Boolean,
  41504. default: false
  41505. }
  41506. },
  41507. data() {
  41508. return {
  41509. first: this.isBoth() ? { rows: 0, cols: 0 } : 0,
  41510. last: this.isBoth() ? { rows: 0, cols: 0 } : 0,
  41511. numItemsInViewport: this.isBoth() ? { rows: 0, cols: 0 } : 0,
  41512. lastScrollPos: this.isBoth() ? { top: 0, left: 0 } : 0,
  41513. d_numToleratedItems: this.numToleratedItems,
  41514. d_loading: this.loading,
  41515. loaderArr: [],
  41516. spacerStyle: {},
  41517. contentStyle: {}
  41518. }
  41519. },
  41520. element: null,
  41521. content: null,
  41522. lastScrollPos: null,
  41523. scrollTimeout: null,
  41524. mounted() {
  41525. this.init();
  41526. this.lastScrollPos = this.isBoth() ? { top: 0, left: 0 } : 0;
  41527. },
  41528. watch: {
  41529. numToleratedItems(newValue) {
  41530. this.d_numToleratedItems = newValue;
  41531. },
  41532. loading(newValue) {
  41533. this.d_loading = newValue;
  41534. },
  41535. items(newValue, oldValue) {
  41536. if (!oldValue || oldValue.length !== (newValue || []).length) {
  41537. this.init();
  41538. }
  41539. },
  41540. orientation() {
  41541. this.lastScrollPos = this.isBoth() ? { top: 0, left: 0 } : 0;
  41542. }
  41543. },
  41544. methods: {
  41545. init() {
  41546. this.setSize();
  41547. this.calculateOptions();
  41548. this.setSpacerSize();
  41549. },
  41550. isVertical() {
  41551. return this.orientation === 'vertical';
  41552. },
  41553. isHorizontal() {
  41554. return this.orientation === 'horizontal';
  41555. },
  41556. isBoth() {
  41557. return this.orientation === 'both';
  41558. },
  41559. scrollTo(options) {
  41560. this.element && this.element.scrollTo(options);
  41561. },
  41562. scrollToIndex(index, behavior = 'auto') {
  41563. const both = this.isBoth();
  41564. const horizontal = this.isHorizontal();
  41565. const first = this.first;
  41566. const { numToleratedItems } = this.calculateNumItems();
  41567. const itemSize = this.itemSize;
  41568. const contentPos = this.getContentPosition();
  41569. const calculateFirst = (_index = 0, _numT) => (_index <= _numT ? 0 : _index);
  41570. const calculateCoord = (_first, _size, _cpos) => (_first * _size) + _cpos;
  41571. const scrollTo = (left = 0, top = 0) => this.scrollTo({ left, top, behavior });
  41572. if (both) {
  41573. const newFirst = { rows: calculateFirst(index[0], numToleratedItems[0]), cols: calculateFirst(index[1], numToleratedItems[1]) };
  41574. if (newFirst.rows !== first.rows || newFirst.cols !== first.cols) {
  41575. scrollTo(calculateCoord(newFirst.cols, itemSize[1], contentPos.left), calculateCoord(newFirst.rows, itemSize[0], contentPos.top));
  41576. this.first = newFirst;
  41577. }
  41578. }
  41579. else {
  41580. const newFirst = calculateFirst(index, numToleratedItems);
  41581. if (newFirst !== first) {
  41582. horizontal ? scrollTo(calculateCoord(newFirst, itemSize, contentPos.left), 0) : scrollTo(0, calculateCoord(newFirst, itemSize, contentPos.top));
  41583. this.first = newFirst;
  41584. }
  41585. }
  41586. },
  41587. scrollInView(index, to, behavior = 'auto') {
  41588. if (to) {
  41589. const both = this.isBoth();
  41590. const horizontal = this.isHorizontal();
  41591. const { first, viewport } = this.getRenderedRange();
  41592. const scrollTo = (left = 0, top = 0) => this.scrollTo({ left, top, behavior });
  41593. const isToStart = to === 'to-start';
  41594. const isToEnd = to === 'to-end';
  41595. if (isToStart) {
  41596. if (both) {
  41597. if (viewport.first.rows - first.rows > index[0]) {
  41598. scrollTo(viewport.first.cols * this.itemSize[1], (viewport.first.rows - 1) * this.itemSize[0]);
  41599. }
  41600. else if (viewport.first.cols - first.cols > index[1]) {
  41601. scrollTo((viewport.first.cols - 1) * this.itemSize[1], viewport.first.rows * this.itemSize[0]);
  41602. }
  41603. }
  41604. else {
  41605. if (viewport.first - first > index) {
  41606. const pos = (viewport.first - 1) * this.itemSize;
  41607. horizontal ? scrollTo(pos, 0) : scrollTo(0, pos);
  41608. }
  41609. }
  41610. }
  41611. else if (isToEnd) {
  41612. if (both) {
  41613. if (viewport.last.rows - first.rows <= index[0] + 1) {
  41614. scrollTo(viewport.first.cols * this.itemSize[1], (viewport.first.rows + 1) * this.itemSize[0]);
  41615. }
  41616. else if (viewport.last.cols - first.cols <= index[1] + 1) {
  41617. scrollTo((viewport.first.cols + 1) * this.itemSize[1], viewport.first.rows * this.itemSize[0]);
  41618. }
  41619. }
  41620. else {
  41621. if (viewport.last - first <= index + 1) {
  41622. const pos = (viewport.first + 1) * this.itemSize;
  41623. horizontal ? scrollTo(pos, 0) : scrollTo(0, pos);
  41624. }
  41625. }
  41626. }
  41627. }
  41628. else {
  41629. this.scrollToIndex(index, behavior);
  41630. }
  41631. },
  41632. getRenderedRange() {
  41633. const calculateFirstInViewport = (_pos, _size) => Math.floor(_pos / (_size || _pos));
  41634. let firstInViewport = this.first;
  41635. let lastInViewport = 0;
  41636. if (this.element) {
  41637. const both = this.isBoth();
  41638. const horizontal = this.isHorizontal();
  41639. const scrollTop = this.element.scrollTop;
  41640. const scrollLeft = this.element.scrollLeft;
  41641. if (both) {
  41642. firstInViewport = { rows: calculateFirstInViewport(scrollTop, this.itemSize[0]), cols: calculateFirstInViewport(scrollLeft, this.itemSize[1]) };
  41643. lastInViewport = { rows: firstInViewport.rows + this.numItemsInViewport.rows, cols: firstInViewport.cols + this.numItemsInViewport.cols };
  41644. }
  41645. else {
  41646. const scrollPos = horizontal ? scrollLeft : scrollTop;
  41647. firstInViewport = calculateFirstInViewport(scrollPos, this.itemSize);
  41648. lastInViewport = firstInViewport + this.numItemsInViewport;
  41649. }
  41650. }
  41651. return {
  41652. first: this.first,
  41653. last: this.last,
  41654. viewport: {
  41655. first: firstInViewport,
  41656. last: lastInViewport
  41657. }
  41658. };
  41659. },
  41660. calculateNumItems() {
  41661. const both = this.isBoth();
  41662. const horizontal = this.isHorizontal();
  41663. const itemSize = this.itemSize;
  41664. const contentPos = this.getContentPosition();
  41665. const contentWidth = this.element ? this.element.offsetWidth - contentPos.left : 0;
  41666. const contentHeight = this.element ? this.element.offsetHeight - contentPos.top : 0;
  41667. const calculateNumItemsInViewport = (_contentSize, _itemSize) => Math.ceil(_contentSize / (_itemSize || _contentSize));
  41668. const calculateNumToleratedItems = (_numItems) => Math.ceil(_numItems / 2);
  41669. const numItemsInViewport = both ?
  41670. { rows: calculateNumItemsInViewport(contentHeight, itemSize[0]), cols: calculateNumItemsInViewport(contentWidth, itemSize[1]) } :
  41671. calculateNumItemsInViewport((horizontal ? contentWidth : contentHeight), itemSize);
  41672. const numToleratedItems = this.d_numToleratedItems || (both ?
  41673. [calculateNumToleratedItems(numItemsInViewport.rows), calculateNumToleratedItems(numItemsInViewport.cols)] :
  41674. calculateNumToleratedItems(numItemsInViewport));
  41675. return { numItemsInViewport, numToleratedItems };
  41676. },
  41677. calculateOptions() {
  41678. const both = this.isBoth();
  41679. const first = this.first;
  41680. const { numItemsInViewport, numToleratedItems } = this.calculateNumItems();
  41681. const calculateLast = (_first, _num, _numT, _isCols) => this.getLast(_first + _num + ((_first < _numT ? 2 : 3) * _numT), _isCols);
  41682. const last = both ?
  41683. { rows: calculateLast(first.rows, numItemsInViewport.rows, numToleratedItems[0]), cols: calculateLast(first.cols, numItemsInViewport.cols, numToleratedItems[1], true) } :
  41684. calculateLast(first, numItemsInViewport, numToleratedItems);
  41685. this.last = last;
  41686. this.numItemsInViewport = numItemsInViewport;
  41687. this.d_numToleratedItems = numToleratedItems;
  41688. this.$emit('update:numToleratedItems', this.d_numToleratedItems);
  41689. if (this.showLoader) {
  41690. this.loaderArr = both ?
  41691. Array.from({ length: numItemsInViewport.rows }).map(() => Array.from({ length: numItemsInViewport.cols })) :
  41692. Array.from({ length: numItemsInViewport });
  41693. }
  41694. if (this.lazy) {
  41695. this.$emit('lazy-load', { first, last });
  41696. }
  41697. },
  41698. getLast(last = 0, isCols) {
  41699. if (this.items) {
  41700. return Math.min((isCols ? (this.columns || this.items[0]).length : this.items.length), last);
  41701. }
  41702. return 0;
  41703. },
  41704. getContentPosition() {
  41705. if (this.content) {
  41706. const style = getComputedStyle(this.content);
  41707. const left = parseInt(style.paddingLeft, 10) + Math.max(parseInt(style.left, 10), 0);
  41708. const right = parseInt(style.paddingRight, 10) + Math.max(parseInt(style.right, 10), 0);
  41709. const top = parseInt(style.paddingTop, 10) + Math.max(parseInt(style.top, 10), 0);
  41710. const bottom = parseInt(style.paddingBottom, 10) + Math.max(parseInt(style.bottom, 10), 0);
  41711. return { left, right, top, bottom, x: left + right, y: top + bottom };
  41712. }
  41713. return { left: 0, right: 0, top: 0, bottom: 0, x: 0, y: 0 };
  41714. },
  41715. setSize() {
  41716. if (this.element) {
  41717. const both = this.isBoth();
  41718. const horizontal = this.isHorizontal();
  41719. const parentElement = this.element.parentElement;
  41720. const width = this.scrollWidth || `${(this.element.offsetWidth || parentElement.offsetWidth)}px`;
  41721. const height = this.scrollHeight || `${(this.element.offsetHeight || parentElement.offsetHeight)}px`;
  41722. const setProp = (_name, _value) => this.element.style[_name] = _value;
  41723. if (both || horizontal) {
  41724. setProp('height', height);
  41725. setProp('width', width);
  41726. }
  41727. else {
  41728. setProp('height', height);
  41729. }
  41730. }
  41731. },
  41732. setSpacerSize() {
  41733. const items = this.items;
  41734. if (items) {
  41735. const both = this.isBoth();
  41736. const horizontal = this.isHorizontal();
  41737. const contentPos = this.getContentPosition();
  41738. const setProp = (_name, _value, _size, _cpos = 0) => this.spacerStyle = { ...this.spacerStyle, ...{ [`${_name}`]: (((_value || []).length * _size) + _cpos) + 'px' } };
  41739. if (both) {
  41740. setProp('height', items, this.itemSize[0], contentPos.y);
  41741. setProp('width', (this.columns || items[1]), this.itemSize[1], contentPos.x);
  41742. }
  41743. else {
  41744. horizontal ? setProp('width', (this.columns || items), this.itemSize, contentPos.x) : setProp('height', items, this.itemSize, contentPos.y);
  41745. }
  41746. }
  41747. },
  41748. setContentPosition(pos) {
  41749. if (this.content) {
  41750. const both = this.isBoth();
  41751. const horizontal = this.isHorizontal();
  41752. const first = pos ? pos.first : this.first;
  41753. const calculateTranslateVal = (_first, _size) => (_first * _size);
  41754. const setTransform = (_x = 0, _y = 0) => {
  41755. this.contentStyle = { ...this.contentStyle, ...{ transform: `translate3d(${_x}px, ${_y}px, 0)` } };
  41756. };
  41757. if (both) {
  41758. setTransform(calculateTranslateVal(first.cols, this.itemSize[1]), calculateTranslateVal(first.rows, this.itemSize[0]));
  41759. }
  41760. else {
  41761. const translateVal = calculateTranslateVal(first, this.itemSize);
  41762. horizontal ? setTransform(translateVal, 0) : setTransform(0, translateVal);
  41763. }
  41764. }
  41765. },
  41766. onScrollPositionChange(event) {
  41767. const target = event.target;
  41768. const both = this.isBoth();
  41769. const horizontal = this.isHorizontal();
  41770. const contentPos = this.getContentPosition();
  41771. const calculateScrollPos = (_pos, _cpos) => _pos ? (_pos > _cpos ? _pos - _cpos : _pos) : 0;
  41772. const calculateCurrentIndex = (_pos, _size) => Math.floor(_pos / (_size || _pos));
  41773. const calculateTriggerIndex = (_currentIndex, _first, _last, _num, _numT, _isScrollDownOrRight) => {
  41774. return (_currentIndex <= _numT ? _numT : (_isScrollDownOrRight ? (_last - _num - _numT) : (_first + _numT - 1)))
  41775. };
  41776. const calculateFirst = (_currentIndex, _triggerIndex, _first, _last, _num, _numT, _isScrollDownOrRight) => {
  41777. if (_currentIndex <= _numT)
  41778. return 0;
  41779. else
  41780. return Math.max(0, _isScrollDownOrRight ?
  41781. (_currentIndex < _triggerIndex ? _first : _currentIndex - _numT) :
  41782. (_currentIndex > _triggerIndex ? _first : _currentIndex - (2 * _numT)));
  41783. };
  41784. const calculateLast = (_currentIndex, _first, _last, _num, _numT, _isCols) => {
  41785. let lastValue = _first + _num + (2 * _numT);
  41786. if (_currentIndex >= _numT) {
  41787. lastValue += (_numT + 1);
  41788. }
  41789. return this.getLast(lastValue, _isCols);
  41790. };
  41791. const scrollTop = calculateScrollPos(target.scrollTop, contentPos.top);
  41792. const scrollLeft = calculateScrollPos(target.scrollLeft, contentPos.left);
  41793. let newFirst = 0;
  41794. let newLast = this.last;
  41795. let isRangeChanged = false;
  41796. if (both) {
  41797. const isScrollDown = this.lastScrollPos.top <= scrollTop;
  41798. const isScrollRight = this.lastScrollPos.left <= scrollLeft;
  41799. const currentIndex = { rows: calculateCurrentIndex(scrollTop, this.itemSize[0]), cols: calculateCurrentIndex(scrollLeft, this.itemSize[1]) };
  41800. const triggerIndex = {
  41801. rows: calculateTriggerIndex(currentIndex.rows, this.first.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0], isScrollDown),
  41802. cols: calculateTriggerIndex(currentIndex.cols, this.first.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1], isScrollRight)
  41803. };
  41804. newFirst = {
  41805. rows: calculateFirst(currentIndex.rows, triggerIndex.rows, this.first.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0], isScrollDown),
  41806. cols: calculateFirst(currentIndex.cols, triggerIndex.cols, this.first.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1], isScrollRight)
  41807. };
  41808. newLast = {
  41809. rows: calculateLast(currentIndex.rows, newFirst.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0]),
  41810. cols: calculateLast(currentIndex.cols, newFirst.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1], true)
  41811. };
  41812. isRangeChanged = (newFirst.rows !== this.first.rows && newLast.rows !== this.last.rows) || (newFirst.cols !== this.first.cols && newLast.cols !== this.last.cols);
  41813. this.lastScrollPos = { top: scrollTop, left: scrollLeft };
  41814. }
  41815. else {
  41816. const scrollPos = horizontal ? scrollLeft : scrollTop;
  41817. const isScrollDownOrRight = this.lastScrollPos <= scrollPos;
  41818. const currentIndex = calculateCurrentIndex(scrollPos, this.itemSize);
  41819. const triggerIndex = calculateTriggerIndex(currentIndex, this.first, this.last, this.numItemsInViewport, this.d_numToleratedItems, isScrollDownOrRight);
  41820. newFirst = calculateFirst(currentIndex, triggerIndex, this.first, this.last, this.numItemsInViewport, this.d_numToleratedItems, isScrollDownOrRight);
  41821. newLast = calculateLast(currentIndex, newFirst, this.last, this.numItemsInViewport, this.d_numToleratedItems);
  41822. isRangeChanged = newFirst !== this.first && newLast !== this.last;
  41823. this.lastScrollPos = scrollPos;
  41824. }
  41825. return {
  41826. first: newFirst,
  41827. last: newLast,
  41828. isRangeChanged
  41829. }
  41830. },
  41831. onScrollChange(event) {
  41832. const { first, last, isRangeChanged } = this.onScrollPositionChange(event);
  41833. if (isRangeChanged) {
  41834. const newState = { first, last };
  41835. this.setContentPosition(newState);
  41836. this.first = first;
  41837. this.last = last;
  41838. this.$emit('scroll-index-change', newState);
  41839. if (this.lazy) {
  41840. this.$emit('lazy-load', newState);
  41841. }
  41842. }
  41843. },
  41844. onScroll(event) {
  41845. this.$emit('scroll', event);
  41846. if (this.delay) {
  41847. if (this.scrollTimeout) {
  41848. clearTimeout(this.scrollTimeout);
  41849. }
  41850. if (!this.d_loading && this.showLoader) {
  41851. const { isRangeChanged: changed } = this.onScrollPositionChange(event);
  41852. changed && (this.d_loading = true);
  41853. }
  41854. this.scrollTimeout = setTimeout(() => {
  41855. this.onScrollChange(event);
  41856. if (this.d_loading && this.showLoader && !this.lazy) {
  41857. this.d_loading = false;
  41858. }
  41859. }, this.delay);
  41860. }
  41861. else {
  41862. this.onScrollChange(event);
  41863. }
  41864. },
  41865. getOptions(renderedIndex) {
  41866. const count = (this.items || []).length;
  41867. const index = this.isBoth() ? this.first.rows + renderedIndex : this.first + renderedIndex;
  41868. return {
  41869. index,
  41870. count,
  41871. first: index === 0,
  41872. last: index === (count - 1),
  41873. even: index % 2 === 0,
  41874. odd: index % 2 !== 0
  41875. };
  41876. },
  41877. getLoaderOptions(index, extOptions) {
  41878. let count = this.loaderArr.length;
  41879. return {
  41880. index,
  41881. count,
  41882. first: index === 0,
  41883. last: index === (count - 1),
  41884. even: index % 2 === 0,
  41885. odd: index % 2 !== 0,
  41886. ...extOptions
  41887. }
  41888. },
  41889. elementRef(el) {
  41890. this.element = el;
  41891. },
  41892. contentRef(el) {
  41893. this.content = el;
  41894. }
  41895. },
  41896. computed: {
  41897. containerClass() {
  41898. return ['p-virtualscroller', {
  41899. 'p-both-scroll': this.isBoth(),
  41900. 'p-horizontal-scroll': this.isHorizontal()
  41901. }, this.class];
  41902. },
  41903. contentClass() {
  41904. return ['p-virtualscroller-content', {
  41905. 'p-virtualscroller-loading': this.d_loading
  41906. }];
  41907. },
  41908. loaderClass() {
  41909. return ['p-virtualscroller-loader', {
  41910. 'p-component-overlay': !this.$slots.loader
  41911. }];
  41912. },
  41913. loadedItems() {
  41914. const items = this.items;
  41915. if (items && !this.d_loading) {
  41916. if (this.isBoth()) {
  41917. return items.slice(this.first.rows, this.last.rows).map(item => this.columns ? item : item.slice(this.first.cols, this.last.cols));
  41918. }
  41919. else if (this.isHorizontal() && this.columns)
  41920. return items;
  41921. else
  41922. return items.slice(this.first, this.last);
  41923. }
  41924. return [];
  41925. },
  41926. loadedRows() {
  41927. return this.d_loading ? (this.loaderDisabled ? this.loaderArr : []) : this.loadedItems;
  41928. },
  41929. loadedColumns() {
  41930. if (this.columns) {
  41931. const both = this.isBoth();
  41932. const horizontal = this.isHorizontal();
  41933. if (both || horizontal) {
  41934. return this.d_loading && this.loaderDisabled ?
  41935. (both ? this.loaderArr[0] : this.loaderArr):
  41936. this.columns.slice((both ? this.first.cols : this.first), (both ? this.last.cols : this.last));
  41937. }
  41938. }
  41939. return this.columns;
  41940. }
  41941. }
  41942. };
  41943. const _hoisted_1 = {
  41944. key: 1,
  41945. class: "p-virtualscroller-loading-icon pi pi-spinner pi-spin"
  41946. };
  41947. function render(_ctx, _cache, $props, $setup, $data, $options) {
  41948. return (!$props.disabled)
  41949. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", {
  41950. key: 0,
  41951. ref: $options.elementRef,
  41952. class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)($options.containerClass),
  41953. tabindex: 0,
  41954. style: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeStyle)($props.style),
  41955. onScroll: _cache[0] || (_cache[0] = (...args) => ($options.onScroll && $options.onScroll(...args)))
  41956. }, [
  41957. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "content", {
  41958. styleClass: $options.contentClass,
  41959. items: $options.loadedItems,
  41960. getItemOptions: $options.getOptions,
  41961. loading: $data.d_loading,
  41962. getLoaderOptions: $options.getLoaderOptions,
  41963. itemSize: $props.itemSize,
  41964. rows: $options.loadedRows,
  41965. columns: $options.loadedColumns,
  41966. contentRef: $options.contentRef,
  41967. spacerStyle: $data.spacerStyle,
  41968. contentStyle: $data.contentStyle,
  41969. vertical: $options.isVertical(),
  41970. horizontal: $options.isHorizontal(),
  41971. both: $options.isBoth()
  41972. }, () => [
  41973. (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", {
  41974. ref: $options.contentRef,
  41975. class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)($options.contentClass),
  41976. style: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeStyle)($data.contentStyle)
  41977. }, [
  41978. ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)($options.loadedItems, (item, index) => {
  41979. return (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "item", {
  41980. key: index,
  41981. item: item,
  41982. options: $options.getOptions(index)
  41983. })
  41984. }), 128))
  41985. ], 6)
  41986. ]),
  41987. ($props.showSpacer)
  41988. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", {
  41989. key: 0,
  41990. class: "p-virtualscroller-spacer",
  41991. style: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeStyle)($data.spacerStyle)
  41992. }, null, 4))
  41993. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true),
  41994. (!$props.loaderDisabled && $props.showLoader && $data.d_loading)
  41995. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", {
  41996. key: 1,
  41997. class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)($options.loaderClass)
  41998. }, [
  41999. (_ctx.$slots && _ctx.$slots.loader)
  42000. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: 0 }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)($data.loaderArr, (_, index) => {
  42001. return (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "loader", {
  42002. key: index,
  42003. options: $options.getLoaderOptions(index, $options.isBoth() && { numCols: _ctx.d_numItemsInViewport.cols })
  42004. })
  42005. }), 128))
  42006. : ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("i", _hoisted_1))
  42007. ], 2))
  42008. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true)
  42009. ], 38))
  42010. : ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: 1 }, [
  42011. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "default"),
  42012. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "content", {
  42013. items: $props.items,
  42014. rows: $props.items,
  42015. columns: $options.loadedColumns
  42016. })
  42017. ], 64))
  42018. }
  42019. function styleInject(css, ref) {
  42020. if ( ref === void 0 ) ref = {};
  42021. var insertAt = ref.insertAt;
  42022. if (!css || typeof document === 'undefined') { return; }
  42023. var head = document.head || document.getElementsByTagName('head')[0];
  42024. var style = document.createElement('style');
  42025. style.type = 'text/css';
  42026. if (insertAt === 'top') {
  42027. if (head.firstChild) {
  42028. head.insertBefore(style, head.firstChild);
  42029. } else {
  42030. head.appendChild(style);
  42031. }
  42032. } else {
  42033. head.appendChild(style);
  42034. }
  42035. if (style.styleSheet) {
  42036. style.styleSheet.cssText = css;
  42037. } else {
  42038. style.appendChild(document.createTextNode(css));
  42039. }
  42040. }
  42041. var css_248z = "\n.p-virtualscroller {\n position: relative;\n overflow: auto;\n contain: strict;\n -webkit-transform: translateZ(0);\n transform: translateZ(0);\n will-change: scroll-position;\n outline: 0 none;\n}\n.p-virtualscroller-content {\n position: absolute;\n top: 0;\n left: 0;\n contain: content;\n min-height: 100%;\n min-width: 100%;\n will-change: transform;\n}\n.p-virtualscroller-spacer {\n position: absolute;\n top: 0;\n left: 0;\n height: 1px;\n width: 1px;\n -webkit-transform-origin: 0 0;\n transform-origin: 0 0;\n pointer-events: none;\n}\n.p-virtualscroller .p-virtualscroller-loader {\n position: sticky;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n.p-virtualscroller-loader.p-component-overlay {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n";
  42042. styleInject(css_248z);
  42043. script.render = render;
  42044. /***/ }),
  42045. /***/ "./node_modules/process/browser.js":
  42046. /*!*****************************************!*\
  42047. !*** ./node_modules/process/browser.js ***!
  42048. \*****************************************/
  42049. /***/ ((module) => {
  42050. // shim for using process in browser
  42051. var process = module.exports = {};
  42052. // cached from whatever global is present so that test runners that stub it
  42053. // don't break things. But we need to wrap it in a try catch in case it is
  42054. // wrapped in strict mode code which doesn't define any globals. It's inside a
  42055. // function because try/catches deoptimize in certain engines.
  42056. var cachedSetTimeout;
  42057. var cachedClearTimeout;
  42058. function defaultSetTimout() {
  42059. throw new Error('setTimeout has not been defined');
  42060. }
  42061. function defaultClearTimeout () {
  42062. throw new Error('clearTimeout has not been defined');
  42063. }
  42064. (function () {
  42065. try {
  42066. if (typeof setTimeout === 'function') {
  42067. cachedSetTimeout = setTimeout;
  42068. } else {
  42069. cachedSetTimeout = defaultSetTimout;
  42070. }
  42071. } catch (e) {
  42072. cachedSetTimeout = defaultSetTimout;
  42073. }
  42074. try {
  42075. if (typeof clearTimeout === 'function') {
  42076. cachedClearTimeout = clearTimeout;
  42077. } else {
  42078. cachedClearTimeout = defaultClearTimeout;
  42079. }
  42080. } catch (e) {
  42081. cachedClearTimeout = defaultClearTimeout;
  42082. }
  42083. } ())
  42084. function runTimeout(fun) {
  42085. if (cachedSetTimeout === setTimeout) {
  42086. //normal enviroments in sane situations
  42087. return setTimeout(fun, 0);
  42088. }
  42089. // if setTimeout wasn't available but was latter defined
  42090. if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
  42091. cachedSetTimeout = setTimeout;
  42092. return setTimeout(fun, 0);
  42093. }
  42094. try {
  42095. // when when somebody has screwed with setTimeout but no I.E. maddness
  42096. return cachedSetTimeout(fun, 0);
  42097. } catch(e){
  42098. try {
  42099. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  42100. return cachedSetTimeout.call(null, fun, 0);
  42101. } catch(e){
  42102. // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
  42103. return cachedSetTimeout.call(this, fun, 0);
  42104. }
  42105. }
  42106. }
  42107. function runClearTimeout(marker) {
  42108. if (cachedClearTimeout === clearTimeout) {
  42109. //normal enviroments in sane situations
  42110. return clearTimeout(marker);
  42111. }
  42112. // if clearTimeout wasn't available but was latter defined
  42113. if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
  42114. cachedClearTimeout = clearTimeout;
  42115. return clearTimeout(marker);
  42116. }
  42117. try {
  42118. // when when somebody has screwed with setTimeout but no I.E. maddness
  42119. return cachedClearTimeout(marker);
  42120. } catch (e){
  42121. try {
  42122. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  42123. return cachedClearTimeout.call(null, marker);
  42124. } catch (e){
  42125. // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
  42126. // Some versions of I.E. have different rules for clearTimeout vs setTimeout
  42127. return cachedClearTimeout.call(this, marker);
  42128. }
  42129. }
  42130. }
  42131. var queue = [];
  42132. var draining = false;
  42133. var currentQueue;
  42134. var queueIndex = -1;
  42135. function cleanUpNextTick() {
  42136. if (!draining || !currentQueue) {
  42137. return;
  42138. }
  42139. draining = false;
  42140. if (currentQueue.length) {
  42141. queue = currentQueue.concat(queue);
  42142. } else {
  42143. queueIndex = -1;
  42144. }
  42145. if (queue.length) {
  42146. drainQueue();
  42147. }
  42148. }
  42149. function drainQueue() {
  42150. if (draining) {
  42151. return;
  42152. }
  42153. var timeout = runTimeout(cleanUpNextTick);
  42154. draining = true;
  42155. var len = queue.length;
  42156. while(len) {
  42157. currentQueue = queue;
  42158. queue = [];
  42159. while (++queueIndex < len) {
  42160. if (currentQueue) {
  42161. currentQueue[queueIndex].run();
  42162. }
  42163. }
  42164. queueIndex = -1;
  42165. len = queue.length;
  42166. }
  42167. currentQueue = null;
  42168. draining = false;
  42169. runClearTimeout(timeout);
  42170. }
  42171. process.nextTick = function (fun) {
  42172. var args = new Array(arguments.length - 1);
  42173. if (arguments.length > 1) {
  42174. for (var i = 1; i < arguments.length; i++) {
  42175. args[i - 1] = arguments[i];
  42176. }
  42177. }
  42178. queue.push(new Item(fun, args));
  42179. if (queue.length === 1 && !draining) {
  42180. runTimeout(drainQueue);
  42181. }
  42182. };
  42183. // v8 likes predictible objects
  42184. function Item(fun, array) {
  42185. this.fun = fun;
  42186. this.array = array;
  42187. }
  42188. Item.prototype.run = function () {
  42189. this.fun.apply(null, this.array);
  42190. };
  42191. process.title = 'browser';
  42192. process.browser = true;
  42193. process.env = {};
  42194. process.argv = [];
  42195. process.version = ''; // empty string to avoid regexp issues
  42196. process.versions = {};
  42197. function noop() {}
  42198. process.on = noop;
  42199. process.addListener = noop;
  42200. process.once = noop;
  42201. process.off = noop;
  42202. process.removeListener = noop;
  42203. process.removeAllListeners = noop;
  42204. process.emit = noop;
  42205. process.prependListener = noop;
  42206. process.prependOnceListener = noop;
  42207. process.listeners = function (name) { return [] }
  42208. process.binding = function (name) {
  42209. throw new Error('process.binding is not supported');
  42210. };
  42211. process.cwd = function () { return '/' };
  42212. process.chdir = function (dir) {
  42213. throw new Error('process.chdir is not supported');
  42214. };
  42215. process.umask = function() { return 0; };
  42216. /***/ }),
  42217. /***/ "./node_modules/quill/dist/quill.js":
  42218. /*!******************************************!*\
  42219. !*** ./node_modules/quill/dist/quill.js ***!
  42220. \******************************************/
  42221. /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
  42222. /* provided dependency */ var Buffer = __webpack_require__(/*! buffer */ "./node_modules/buffer/index.js")["Buffer"];
  42223. /*!
  42224. * Quill Editor v1.3.7
  42225. * https://quilljs.com/
  42226. * Copyright (c) 2014, Jason Chen
  42227. * Copyright (c) 2013, salesforce.com
  42228. */
  42229. (function webpackUniversalModuleDefinition(root, factory) {
  42230. if(true)
  42231. module.exports = factory();
  42232. else {}
  42233. })(typeof self !== 'undefined' ? self : this, function() {
  42234. return /******/ (function(modules) { // webpackBootstrap
  42235. /******/ // The module cache
  42236. /******/ var installedModules = {};
  42237. /******/
  42238. /******/ // The require function
  42239. /******/ function __nested_webpack_require_697__(moduleId) {
  42240. /******/
  42241. /******/ // Check if module is in cache
  42242. /******/ if(installedModules[moduleId]) {
  42243. /******/ return installedModules[moduleId].exports;
  42244. /******/ }
  42245. /******/ // Create a new module (and put it into the cache)
  42246. /******/ var module = installedModules[moduleId] = {
  42247. /******/ i: moduleId,
  42248. /******/ l: false,
  42249. /******/ exports: {}
  42250. /******/ };
  42251. /******/
  42252. /******/ // Execute the module function
  42253. /******/ modules[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_697__);
  42254. /******/
  42255. /******/ // Flag the module as loaded
  42256. /******/ module.l = true;
  42257. /******/
  42258. /******/ // Return the exports of the module
  42259. /******/ return module.exports;
  42260. /******/ }
  42261. /******/
  42262. /******/
  42263. /******/ // expose the modules object (__webpack_modules__)
  42264. /******/ __nested_webpack_require_697__.m = modules;
  42265. /******/
  42266. /******/ // expose the module cache
  42267. /******/ __nested_webpack_require_697__.c = installedModules;
  42268. /******/
  42269. /******/ // define getter function for harmony exports
  42270. /******/ __nested_webpack_require_697__.d = function(exports, name, getter) {
  42271. /******/ if(!__nested_webpack_require_697__.o(exports, name)) {
  42272. /******/ Object.defineProperty(exports, name, {
  42273. /******/ configurable: false,
  42274. /******/ enumerable: true,
  42275. /******/ get: getter
  42276. /******/ });
  42277. /******/ }
  42278. /******/ };
  42279. /******/
  42280. /******/ // getDefaultExport function for compatibility with non-harmony modules
  42281. /******/ __nested_webpack_require_697__.n = function(module) {
  42282. /******/ var getter = module && module.__esModule ?
  42283. /******/ function getDefault() { return module['default']; } :
  42284. /******/ function getModuleExports() { return module; };
  42285. /******/ __nested_webpack_require_697__.d(getter, 'a', getter);
  42286. /******/ return getter;
  42287. /******/ };
  42288. /******/
  42289. /******/ // Object.prototype.hasOwnProperty.call
  42290. /******/ __nested_webpack_require_697__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  42291. /******/
  42292. /******/ // __webpack_public_path__
  42293. /******/ __nested_webpack_require_697__.p = "";
  42294. /******/
  42295. /******/ // Load entry module and return exports
  42296. /******/ return __nested_webpack_require_697__(__nested_webpack_require_697__.s = 109);
  42297. /******/ })
  42298. /************************************************************************/
  42299. /******/ ([
  42300. /* 0 */
  42301. /***/ (function(module, exports, __nested_webpack_require_2976__) {
  42302. "use strict";
  42303. Object.defineProperty(exports, "__esModule", { value: true });
  42304. var container_1 = __nested_webpack_require_2976__(17);
  42305. var format_1 = __nested_webpack_require_2976__(18);
  42306. var leaf_1 = __nested_webpack_require_2976__(19);
  42307. var scroll_1 = __nested_webpack_require_2976__(45);
  42308. var inline_1 = __nested_webpack_require_2976__(46);
  42309. var block_1 = __nested_webpack_require_2976__(47);
  42310. var embed_1 = __nested_webpack_require_2976__(48);
  42311. var text_1 = __nested_webpack_require_2976__(49);
  42312. var attributor_1 = __nested_webpack_require_2976__(12);
  42313. var class_1 = __nested_webpack_require_2976__(32);
  42314. var style_1 = __nested_webpack_require_2976__(33);
  42315. var store_1 = __nested_webpack_require_2976__(31);
  42316. var Registry = __nested_webpack_require_2976__(1);
  42317. var Parchment = {
  42318. Scope: Registry.Scope,
  42319. create: Registry.create,
  42320. find: Registry.find,
  42321. query: Registry.query,
  42322. register: Registry.register,
  42323. Container: container_1.default,
  42324. Format: format_1.default,
  42325. Leaf: leaf_1.default,
  42326. Embed: embed_1.default,
  42327. Scroll: scroll_1.default,
  42328. Block: block_1.default,
  42329. Inline: inline_1.default,
  42330. Text: text_1.default,
  42331. Attributor: {
  42332. Attribute: attributor_1.default,
  42333. Class: class_1.default,
  42334. Style: style_1.default,
  42335. Store: store_1.default,
  42336. },
  42337. };
  42338. exports.default = Parchment;
  42339. /***/ }),
  42340. /* 1 */
  42341. /***/ (function(module, exports, __webpack_require__) {
  42342. "use strict";
  42343. var __extends = (this && this.__extends) || (function () {
  42344. var extendStatics = Object.setPrototypeOf ||
  42345. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  42346. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  42347. return function (d, b) {
  42348. extendStatics(d, b);
  42349. function __() { this.constructor = d; }
  42350. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  42351. };
  42352. })();
  42353. Object.defineProperty(exports, "__esModule", { value: true });
  42354. var ParchmentError = /** @class */ (function (_super) {
  42355. __extends(ParchmentError, _super);
  42356. function ParchmentError(message) {
  42357. var _this = this;
  42358. message = '[Parchment] ' + message;
  42359. _this = _super.call(this, message) || this;
  42360. _this.message = message;
  42361. _this.name = _this.constructor.name;
  42362. return _this;
  42363. }
  42364. return ParchmentError;
  42365. }(Error));
  42366. exports.ParchmentError = ParchmentError;
  42367. var attributes = {};
  42368. var classes = {};
  42369. var tags = {};
  42370. var types = {};
  42371. exports.DATA_KEY = '__blot';
  42372. var Scope;
  42373. (function (Scope) {
  42374. Scope[Scope["TYPE"] = 3] = "TYPE";
  42375. Scope[Scope["LEVEL"] = 12] = "LEVEL";
  42376. Scope[Scope["ATTRIBUTE"] = 13] = "ATTRIBUTE";
  42377. Scope[Scope["BLOT"] = 14] = "BLOT";
  42378. Scope[Scope["INLINE"] = 7] = "INLINE";
  42379. Scope[Scope["BLOCK"] = 11] = "BLOCK";
  42380. Scope[Scope["BLOCK_BLOT"] = 10] = "BLOCK_BLOT";
  42381. Scope[Scope["INLINE_BLOT"] = 6] = "INLINE_BLOT";
  42382. Scope[Scope["BLOCK_ATTRIBUTE"] = 9] = "BLOCK_ATTRIBUTE";
  42383. Scope[Scope["INLINE_ATTRIBUTE"] = 5] = "INLINE_ATTRIBUTE";
  42384. Scope[Scope["ANY"] = 15] = "ANY";
  42385. })(Scope = exports.Scope || (exports.Scope = {}));
  42386. function create(input, value) {
  42387. var match = query(input);
  42388. if (match == null) {
  42389. throw new ParchmentError("Unable to create " + input + " blot");
  42390. }
  42391. var BlotClass = match;
  42392. var node =
  42393. // @ts-ignore
  42394. input instanceof Node || input['nodeType'] === Node.TEXT_NODE ? input : BlotClass.create(value);
  42395. return new BlotClass(node, value);
  42396. }
  42397. exports.create = create;
  42398. function find(node, bubble) {
  42399. if (bubble === void 0) { bubble = false; }
  42400. if (node == null)
  42401. return null;
  42402. // @ts-ignore
  42403. if (node[exports.DATA_KEY] != null)
  42404. return node[exports.DATA_KEY].blot;
  42405. if (bubble)
  42406. return find(node.parentNode, bubble);
  42407. return null;
  42408. }
  42409. exports.find = find;
  42410. function query(query, scope) {
  42411. if (scope === void 0) { scope = Scope.ANY; }
  42412. var match;
  42413. if (typeof query === 'string') {
  42414. match = types[query] || attributes[query];
  42415. // @ts-ignore
  42416. }
  42417. else if (query instanceof Text || query['nodeType'] === Node.TEXT_NODE) {
  42418. match = types['text'];
  42419. }
  42420. else if (typeof query === 'number') {
  42421. if (query & Scope.LEVEL & Scope.BLOCK) {
  42422. match = types['block'];
  42423. }
  42424. else if (query & Scope.LEVEL & Scope.INLINE) {
  42425. match = types['inline'];
  42426. }
  42427. }
  42428. else if (query instanceof HTMLElement) {
  42429. var names = (query.getAttribute('class') || '').split(/\s+/);
  42430. for (var i in names) {
  42431. match = classes[names[i]];
  42432. if (match)
  42433. break;
  42434. }
  42435. match = match || tags[query.tagName];
  42436. }
  42437. if (match == null)
  42438. return null;
  42439. // @ts-ignore
  42440. if (scope & Scope.LEVEL & match.scope && scope & Scope.TYPE & match.scope)
  42441. return match;
  42442. return null;
  42443. }
  42444. exports.query = query;
  42445. function register() {
  42446. var Definitions = [];
  42447. for (var _i = 0; _i < arguments.length; _i++) {
  42448. Definitions[_i] = arguments[_i];
  42449. }
  42450. if (Definitions.length > 1) {
  42451. return Definitions.map(function (d) {
  42452. return register(d);
  42453. });
  42454. }
  42455. var Definition = Definitions[0];
  42456. if (typeof Definition.blotName !== 'string' && typeof Definition.attrName !== 'string') {
  42457. throw new ParchmentError('Invalid definition');
  42458. }
  42459. else if (Definition.blotName === 'abstract') {
  42460. throw new ParchmentError('Cannot register abstract class');
  42461. }
  42462. types[Definition.blotName || Definition.attrName] = Definition;
  42463. if (typeof Definition.keyName === 'string') {
  42464. attributes[Definition.keyName] = Definition;
  42465. }
  42466. else {
  42467. if (Definition.className != null) {
  42468. classes[Definition.className] = Definition;
  42469. }
  42470. if (Definition.tagName != null) {
  42471. if (Array.isArray(Definition.tagName)) {
  42472. Definition.tagName = Definition.tagName.map(function (tagName) {
  42473. return tagName.toUpperCase();
  42474. });
  42475. }
  42476. else {
  42477. Definition.tagName = Definition.tagName.toUpperCase();
  42478. }
  42479. var tagNames = Array.isArray(Definition.tagName) ? Definition.tagName : [Definition.tagName];
  42480. tagNames.forEach(function (tag) {
  42481. if (tags[tag] == null || Definition.className == null) {
  42482. tags[tag] = Definition;
  42483. }
  42484. });
  42485. }
  42486. }
  42487. return Definition;
  42488. }
  42489. exports.register = register;
  42490. /***/ }),
  42491. /* 2 */
  42492. /***/ (function(module, exports, __nested_webpack_require_9445__) {
  42493. var diff = __nested_webpack_require_9445__(51);
  42494. var equal = __nested_webpack_require_9445__(11);
  42495. var extend = __nested_webpack_require_9445__(3);
  42496. var op = __nested_webpack_require_9445__(20);
  42497. var NULL_CHARACTER = String.fromCharCode(0); // Placeholder char for embed in diff()
  42498. var Delta = function (ops) {
  42499. // Assume we are given a well formed ops
  42500. if (Array.isArray(ops)) {
  42501. this.ops = ops;
  42502. } else if (ops != null && Array.isArray(ops.ops)) {
  42503. this.ops = ops.ops;
  42504. } else {
  42505. this.ops = [];
  42506. }
  42507. };
  42508. Delta.prototype.insert = function (text, attributes) {
  42509. var newOp = {};
  42510. if (text.length === 0) return this;
  42511. newOp.insert = text;
  42512. if (attributes != null && typeof attributes === 'object' && Object.keys(attributes).length > 0) {
  42513. newOp.attributes = attributes;
  42514. }
  42515. return this.push(newOp);
  42516. };
  42517. Delta.prototype['delete'] = function (length) {
  42518. if (length <= 0) return this;
  42519. return this.push({ 'delete': length });
  42520. };
  42521. Delta.prototype.retain = function (length, attributes) {
  42522. if (length <= 0) return this;
  42523. var newOp = { retain: length };
  42524. if (attributes != null && typeof attributes === 'object' && Object.keys(attributes).length > 0) {
  42525. newOp.attributes = attributes;
  42526. }
  42527. return this.push(newOp);
  42528. };
  42529. Delta.prototype.push = function (newOp) {
  42530. var index = this.ops.length;
  42531. var lastOp = this.ops[index - 1];
  42532. newOp = extend(true, {}, newOp);
  42533. if (typeof lastOp === 'object') {
  42534. if (typeof newOp['delete'] === 'number' && typeof lastOp['delete'] === 'number') {
  42535. this.ops[index - 1] = { 'delete': lastOp['delete'] + newOp['delete'] };
  42536. return this;
  42537. }
  42538. // Since it does not matter if we insert before or after deleting at the same index,
  42539. // always prefer to insert first
  42540. if (typeof lastOp['delete'] === 'number' && newOp.insert != null) {
  42541. index -= 1;
  42542. lastOp = this.ops[index - 1];
  42543. if (typeof lastOp !== 'object') {
  42544. this.ops.unshift(newOp);
  42545. return this;
  42546. }
  42547. }
  42548. if (equal(newOp.attributes, lastOp.attributes)) {
  42549. if (typeof newOp.insert === 'string' && typeof lastOp.insert === 'string') {
  42550. this.ops[index - 1] = { insert: lastOp.insert + newOp.insert };
  42551. if (typeof newOp.attributes === 'object') this.ops[index - 1].attributes = newOp.attributes
  42552. return this;
  42553. } else if (typeof newOp.retain === 'number' && typeof lastOp.retain === 'number') {
  42554. this.ops[index - 1] = { retain: lastOp.retain + newOp.retain };
  42555. if (typeof newOp.attributes === 'object') this.ops[index - 1].attributes = newOp.attributes
  42556. return this;
  42557. }
  42558. }
  42559. }
  42560. if (index === this.ops.length) {
  42561. this.ops.push(newOp);
  42562. } else {
  42563. this.ops.splice(index, 0, newOp);
  42564. }
  42565. return this;
  42566. };
  42567. Delta.prototype.chop = function () {
  42568. var lastOp = this.ops[this.ops.length - 1];
  42569. if (lastOp && lastOp.retain && !lastOp.attributes) {
  42570. this.ops.pop();
  42571. }
  42572. return this;
  42573. };
  42574. Delta.prototype.filter = function (predicate) {
  42575. return this.ops.filter(predicate);
  42576. };
  42577. Delta.prototype.forEach = function (predicate) {
  42578. this.ops.forEach(predicate);
  42579. };
  42580. Delta.prototype.map = function (predicate) {
  42581. return this.ops.map(predicate);
  42582. };
  42583. Delta.prototype.partition = function (predicate) {
  42584. var passed = [], failed = [];
  42585. this.forEach(function(op) {
  42586. var target = predicate(op) ? passed : failed;
  42587. target.push(op);
  42588. });
  42589. return [passed, failed];
  42590. };
  42591. Delta.prototype.reduce = function (predicate, initial) {
  42592. return this.ops.reduce(predicate, initial);
  42593. };
  42594. Delta.prototype.changeLength = function () {
  42595. return this.reduce(function (length, elem) {
  42596. if (elem.insert) {
  42597. return length + op.length(elem);
  42598. } else if (elem.delete) {
  42599. return length - elem.delete;
  42600. }
  42601. return length;
  42602. }, 0);
  42603. };
  42604. Delta.prototype.length = function () {
  42605. return this.reduce(function (length, elem) {
  42606. return length + op.length(elem);
  42607. }, 0);
  42608. };
  42609. Delta.prototype.slice = function (start, end) {
  42610. start = start || 0;
  42611. if (typeof end !== 'number') end = Infinity;
  42612. var ops = [];
  42613. var iter = op.iterator(this.ops);
  42614. var index = 0;
  42615. while (index < end && iter.hasNext()) {
  42616. var nextOp;
  42617. if (index < start) {
  42618. nextOp = iter.next(start - index);
  42619. } else {
  42620. nextOp = iter.next(end - index);
  42621. ops.push(nextOp);
  42622. }
  42623. index += op.length(nextOp);
  42624. }
  42625. return new Delta(ops);
  42626. };
  42627. Delta.prototype.compose = function (other) {
  42628. var thisIter = op.iterator(this.ops);
  42629. var otherIter = op.iterator(other.ops);
  42630. var ops = [];
  42631. var firstOther = otherIter.peek();
  42632. if (firstOther != null && typeof firstOther.retain === 'number' && firstOther.attributes == null) {
  42633. var firstLeft = firstOther.retain;
  42634. while (thisIter.peekType() === 'insert' && thisIter.peekLength() <= firstLeft) {
  42635. firstLeft -= thisIter.peekLength();
  42636. ops.push(thisIter.next());
  42637. }
  42638. if (firstOther.retain - firstLeft > 0) {
  42639. otherIter.next(firstOther.retain - firstLeft);
  42640. }
  42641. }
  42642. var delta = new Delta(ops);
  42643. while (thisIter.hasNext() || otherIter.hasNext()) {
  42644. if (otherIter.peekType() === 'insert') {
  42645. delta.push(otherIter.next());
  42646. } else if (thisIter.peekType() === 'delete') {
  42647. delta.push(thisIter.next());
  42648. } else {
  42649. var length = Math.min(thisIter.peekLength(), otherIter.peekLength());
  42650. var thisOp = thisIter.next(length);
  42651. var otherOp = otherIter.next(length);
  42652. if (typeof otherOp.retain === 'number') {
  42653. var newOp = {};
  42654. if (typeof thisOp.retain === 'number') {
  42655. newOp.retain = length;
  42656. } else {
  42657. newOp.insert = thisOp.insert;
  42658. }
  42659. // Preserve null when composing with a retain, otherwise remove it for inserts
  42660. var attributes = op.attributes.compose(thisOp.attributes, otherOp.attributes, typeof thisOp.retain === 'number');
  42661. if (attributes) newOp.attributes = attributes;
  42662. delta.push(newOp);
  42663. // Optimization if rest of other is just retain
  42664. if (!otherIter.hasNext() && equal(delta.ops[delta.ops.length - 1], newOp)) {
  42665. var rest = new Delta(thisIter.rest());
  42666. return delta.concat(rest).chop();
  42667. }
  42668. // Other op should be delete, we could be an insert or retain
  42669. // Insert + delete cancels out
  42670. } else if (typeof otherOp['delete'] === 'number' && typeof thisOp.retain === 'number') {
  42671. delta.push(otherOp);
  42672. }
  42673. }
  42674. }
  42675. return delta.chop();
  42676. };
  42677. Delta.prototype.concat = function (other) {
  42678. var delta = new Delta(this.ops.slice());
  42679. if (other.ops.length > 0) {
  42680. delta.push(other.ops[0]);
  42681. delta.ops = delta.ops.concat(other.ops.slice(1));
  42682. }
  42683. return delta;
  42684. };
  42685. Delta.prototype.diff = function (other, index) {
  42686. if (this.ops === other.ops) {
  42687. return new Delta();
  42688. }
  42689. var strings = [this, other].map(function (delta) {
  42690. return delta.map(function (op) {
  42691. if (op.insert != null) {
  42692. return typeof op.insert === 'string' ? op.insert : NULL_CHARACTER;
  42693. }
  42694. var prep = (delta === other) ? 'on' : 'with';
  42695. throw new Error('diff() called ' + prep + ' non-document');
  42696. }).join('');
  42697. });
  42698. var delta = new Delta();
  42699. var diffResult = diff(strings[0], strings[1], index);
  42700. var thisIter = op.iterator(this.ops);
  42701. var otherIter = op.iterator(other.ops);
  42702. diffResult.forEach(function (component) {
  42703. var length = component[1].length;
  42704. while (length > 0) {
  42705. var opLength = 0;
  42706. switch (component[0]) {
  42707. case diff.INSERT:
  42708. opLength = Math.min(otherIter.peekLength(), length);
  42709. delta.push(otherIter.next(opLength));
  42710. break;
  42711. case diff.DELETE:
  42712. opLength = Math.min(length, thisIter.peekLength());
  42713. thisIter.next(opLength);
  42714. delta['delete'](opLength);
  42715. break;
  42716. case diff.EQUAL:
  42717. opLength = Math.min(thisIter.peekLength(), otherIter.peekLength(), length);
  42718. var thisOp = thisIter.next(opLength);
  42719. var otherOp = otherIter.next(opLength);
  42720. if (equal(thisOp.insert, otherOp.insert)) {
  42721. delta.retain(opLength, op.attributes.diff(thisOp.attributes, otherOp.attributes));
  42722. } else {
  42723. delta.push(otherOp)['delete'](opLength);
  42724. }
  42725. break;
  42726. }
  42727. length -= opLength;
  42728. }
  42729. });
  42730. return delta.chop();
  42731. };
  42732. Delta.prototype.eachLine = function (predicate, newline) {
  42733. newline = newline || '\n';
  42734. var iter = op.iterator(this.ops);
  42735. var line = new Delta();
  42736. var i = 0;
  42737. while (iter.hasNext()) {
  42738. if (iter.peekType() !== 'insert') return;
  42739. var thisOp = iter.peek();
  42740. var start = op.length(thisOp) - iter.peekLength();
  42741. var index = typeof thisOp.insert === 'string' ?
  42742. thisOp.insert.indexOf(newline, start) - start : -1;
  42743. if (index < 0) {
  42744. line.push(iter.next());
  42745. } else if (index > 0) {
  42746. line.push(iter.next(index));
  42747. } else {
  42748. if (predicate(line, iter.next(1).attributes || {}, i) === false) {
  42749. return;
  42750. }
  42751. i += 1;
  42752. line = new Delta();
  42753. }
  42754. }
  42755. if (line.length() > 0) {
  42756. predicate(line, {}, i);
  42757. }
  42758. };
  42759. Delta.prototype.transform = function (other, priority) {
  42760. priority = !!priority;
  42761. if (typeof other === 'number') {
  42762. return this.transformPosition(other, priority);
  42763. }
  42764. var thisIter = op.iterator(this.ops);
  42765. var otherIter = op.iterator(other.ops);
  42766. var delta = new Delta();
  42767. while (thisIter.hasNext() || otherIter.hasNext()) {
  42768. if (thisIter.peekType() === 'insert' && (priority || otherIter.peekType() !== 'insert')) {
  42769. delta.retain(op.length(thisIter.next()));
  42770. } else if (otherIter.peekType() === 'insert') {
  42771. delta.push(otherIter.next());
  42772. } else {
  42773. var length = Math.min(thisIter.peekLength(), otherIter.peekLength());
  42774. var thisOp = thisIter.next(length);
  42775. var otherOp = otherIter.next(length);
  42776. if (thisOp['delete']) {
  42777. // Our delete either makes their delete redundant or removes their retain
  42778. continue;
  42779. } else if (otherOp['delete']) {
  42780. delta.push(otherOp);
  42781. } else {
  42782. // We retain either their retain or insert
  42783. delta.retain(length, op.attributes.transform(thisOp.attributes, otherOp.attributes, priority));
  42784. }
  42785. }
  42786. }
  42787. return delta.chop();
  42788. };
  42789. Delta.prototype.transformPosition = function (index, priority) {
  42790. priority = !!priority;
  42791. var thisIter = op.iterator(this.ops);
  42792. var offset = 0;
  42793. while (thisIter.hasNext() && offset <= index) {
  42794. var length = thisIter.peekLength();
  42795. var nextType = thisIter.peekType();
  42796. thisIter.next();
  42797. if (nextType === 'delete') {
  42798. index -= Math.min(length, index - offset);
  42799. continue;
  42800. } else if (nextType === 'insert' && (offset < index || !priority)) {
  42801. index += length;
  42802. }
  42803. offset += length;
  42804. }
  42805. return index;
  42806. };
  42807. module.exports = Delta;
  42808. /***/ }),
  42809. /* 3 */
  42810. /***/ (function(module, exports) {
  42811. 'use strict';
  42812. var hasOwn = Object.prototype.hasOwnProperty;
  42813. var toStr = Object.prototype.toString;
  42814. var defineProperty = Object.defineProperty;
  42815. var gOPD = Object.getOwnPropertyDescriptor;
  42816. var isArray = function isArray(arr) {
  42817. if (typeof Array.isArray === 'function') {
  42818. return Array.isArray(arr);
  42819. }
  42820. return toStr.call(arr) === '[object Array]';
  42821. };
  42822. var isPlainObject = function isPlainObject(obj) {
  42823. if (!obj || toStr.call(obj) !== '[object Object]') {
  42824. return false;
  42825. }
  42826. var hasOwnConstructor = hasOwn.call(obj, 'constructor');
  42827. var hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, 'isPrototypeOf');
  42828. // Not own constructor property must be Object
  42829. if (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) {
  42830. return false;
  42831. }
  42832. // Own properties are enumerated firstly, so to speed up,
  42833. // if last one is own, then all properties are own.
  42834. var key;
  42835. for (key in obj) { /**/ }
  42836. return typeof key === 'undefined' || hasOwn.call(obj, key);
  42837. };
  42838. // If name is '__proto__', and Object.defineProperty is available, define __proto__ as an own property on target
  42839. var setProperty = function setProperty(target, options) {
  42840. if (defineProperty && options.name === '__proto__') {
  42841. defineProperty(target, options.name, {
  42842. enumerable: true,
  42843. configurable: true,
  42844. value: options.newValue,
  42845. writable: true
  42846. });
  42847. } else {
  42848. target[options.name] = options.newValue;
  42849. }
  42850. };
  42851. // Return undefined instead of __proto__ if '__proto__' is not an own property
  42852. var getProperty = function getProperty(obj, name) {
  42853. if (name === '__proto__') {
  42854. if (!hasOwn.call(obj, name)) {
  42855. return void 0;
  42856. } else if (gOPD) {
  42857. // In early versions of node, obj['__proto__'] is buggy when obj has
  42858. // __proto__ as an own property. Object.getOwnPropertyDescriptor() works.
  42859. return gOPD(obj, name).value;
  42860. }
  42861. }
  42862. return obj[name];
  42863. };
  42864. module.exports = function extend() {
  42865. var options, name, src, copy, copyIsArray, clone;
  42866. var target = arguments[0];
  42867. var i = 1;
  42868. var length = arguments.length;
  42869. var deep = false;
  42870. // Handle a deep copy situation
  42871. if (typeof target === 'boolean') {
  42872. deep = target;
  42873. target = arguments[1] || {};
  42874. // skip the boolean and the target
  42875. i = 2;
  42876. }
  42877. if (target == null || (typeof target !== 'object' && typeof target !== 'function')) {
  42878. target = {};
  42879. }
  42880. for (; i < length; ++i) {
  42881. options = arguments[i];
  42882. // Only deal with non-null/undefined values
  42883. if (options != null) {
  42884. // Extend the base object
  42885. for (name in options) {
  42886. src = getProperty(target, name);
  42887. copy = getProperty(options, name);
  42888. // Prevent never-ending loop
  42889. if (target !== copy) {
  42890. // Recurse if we're merging plain objects or arrays
  42891. if (deep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) {
  42892. if (copyIsArray) {
  42893. copyIsArray = false;
  42894. clone = src && isArray(src) ? src : [];
  42895. } else {
  42896. clone = src && isPlainObject(src) ? src : {};
  42897. }
  42898. // Never move original objects, clone them
  42899. setProperty(target, { name: name, newValue: extend(deep, clone, copy) });
  42900. // Don't bring in undefined values
  42901. } else if (typeof copy !== 'undefined') {
  42902. setProperty(target, { name: name, newValue: copy });
  42903. }
  42904. }
  42905. }
  42906. }
  42907. }
  42908. // Return the modified object
  42909. return target;
  42910. };
  42911. /***/ }),
  42912. /* 4 */
  42913. /***/ (function(module, exports, __nested_webpack_require_23616__) {
  42914. "use strict";
  42915. Object.defineProperty(exports, "__esModule", {
  42916. value: true
  42917. });
  42918. exports.default = exports.BlockEmbed = exports.bubbleFormats = undefined;
  42919. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  42920. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  42921. var _extend = __nested_webpack_require_23616__(3);
  42922. var _extend2 = _interopRequireDefault(_extend);
  42923. var _quillDelta = __nested_webpack_require_23616__(2);
  42924. var _quillDelta2 = _interopRequireDefault(_quillDelta);
  42925. var _parchment = __nested_webpack_require_23616__(0);
  42926. var _parchment2 = _interopRequireDefault(_parchment);
  42927. var _break = __nested_webpack_require_23616__(16);
  42928. var _break2 = _interopRequireDefault(_break);
  42929. var _inline = __nested_webpack_require_23616__(6);
  42930. var _inline2 = _interopRequireDefault(_inline);
  42931. var _text = __nested_webpack_require_23616__(7);
  42932. var _text2 = _interopRequireDefault(_text);
  42933. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  42934. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  42935. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  42936. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  42937. var NEWLINE_LENGTH = 1;
  42938. var BlockEmbed = function (_Parchment$Embed) {
  42939. _inherits(BlockEmbed, _Parchment$Embed);
  42940. function BlockEmbed() {
  42941. _classCallCheck(this, BlockEmbed);
  42942. return _possibleConstructorReturn(this, (BlockEmbed.__proto__ || Object.getPrototypeOf(BlockEmbed)).apply(this, arguments));
  42943. }
  42944. _createClass(BlockEmbed, [{
  42945. key: 'attach',
  42946. value: function attach() {
  42947. _get(BlockEmbed.prototype.__proto__ || Object.getPrototypeOf(BlockEmbed.prototype), 'attach', this).call(this);
  42948. this.attributes = new _parchment2.default.Attributor.Store(this.domNode);
  42949. }
  42950. }, {
  42951. key: 'delta',
  42952. value: function delta() {
  42953. return new _quillDelta2.default().insert(this.value(), (0, _extend2.default)(this.formats(), this.attributes.values()));
  42954. }
  42955. }, {
  42956. key: 'format',
  42957. value: function format(name, value) {
  42958. var attribute = _parchment2.default.query(name, _parchment2.default.Scope.BLOCK_ATTRIBUTE);
  42959. if (attribute != null) {
  42960. this.attributes.attribute(attribute, value);
  42961. }
  42962. }
  42963. }, {
  42964. key: 'formatAt',
  42965. value: function formatAt(index, length, name, value) {
  42966. this.format(name, value);
  42967. }
  42968. }, {
  42969. key: 'insertAt',
  42970. value: function insertAt(index, value, def) {
  42971. if (typeof value === 'string' && value.endsWith('\n')) {
  42972. var block = _parchment2.default.create(Block.blotName);
  42973. this.parent.insertBefore(block, index === 0 ? this : this.next);
  42974. block.insertAt(0, value.slice(0, -1));
  42975. } else {
  42976. _get(BlockEmbed.prototype.__proto__ || Object.getPrototypeOf(BlockEmbed.prototype), 'insertAt', this).call(this, index, value, def);
  42977. }
  42978. }
  42979. }]);
  42980. return BlockEmbed;
  42981. }(_parchment2.default.Embed);
  42982. BlockEmbed.scope = _parchment2.default.Scope.BLOCK_BLOT;
  42983. // It is important for cursor behavior BlockEmbeds use tags that are block level elements
  42984. var Block = function (_Parchment$Block) {
  42985. _inherits(Block, _Parchment$Block);
  42986. function Block(domNode) {
  42987. _classCallCheck(this, Block);
  42988. var _this2 = _possibleConstructorReturn(this, (Block.__proto__ || Object.getPrototypeOf(Block)).call(this, domNode));
  42989. _this2.cache = {};
  42990. return _this2;
  42991. }
  42992. _createClass(Block, [{
  42993. key: 'delta',
  42994. value: function delta() {
  42995. if (this.cache.delta == null) {
  42996. this.cache.delta = this.descendants(_parchment2.default.Leaf).reduce(function (delta, leaf) {
  42997. if (leaf.length() === 0) {
  42998. return delta;
  42999. } else {
  43000. return delta.insert(leaf.value(), bubbleFormats(leaf));
  43001. }
  43002. }, new _quillDelta2.default()).insert('\n', bubbleFormats(this));
  43003. }
  43004. return this.cache.delta;
  43005. }
  43006. }, {
  43007. key: 'deleteAt',
  43008. value: function deleteAt(index, length) {
  43009. _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'deleteAt', this).call(this, index, length);
  43010. this.cache = {};
  43011. }
  43012. }, {
  43013. key: 'formatAt',
  43014. value: function formatAt(index, length, name, value) {
  43015. if (length <= 0) return;
  43016. if (_parchment2.default.query(name, _parchment2.default.Scope.BLOCK)) {
  43017. if (index + length === this.length()) {
  43018. this.format(name, value);
  43019. }
  43020. } else {
  43021. _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'formatAt', this).call(this, index, Math.min(length, this.length() - index - 1), name, value);
  43022. }
  43023. this.cache = {};
  43024. }
  43025. }, {
  43026. key: 'insertAt',
  43027. value: function insertAt(index, value, def) {
  43028. if (def != null) return _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'insertAt', this).call(this, index, value, def);
  43029. if (value.length === 0) return;
  43030. var lines = value.split('\n');
  43031. var text = lines.shift();
  43032. if (text.length > 0) {
  43033. if (index < this.length() - 1 || this.children.tail == null) {
  43034. _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'insertAt', this).call(this, Math.min(index, this.length() - 1), text);
  43035. } else {
  43036. this.children.tail.insertAt(this.children.tail.length(), text);
  43037. }
  43038. this.cache = {};
  43039. }
  43040. var block = this;
  43041. lines.reduce(function (index, line) {
  43042. block = block.split(index, true);
  43043. block.insertAt(0, line);
  43044. return line.length;
  43045. }, index + text.length);
  43046. }
  43047. }, {
  43048. key: 'insertBefore',
  43049. value: function insertBefore(blot, ref) {
  43050. var head = this.children.head;
  43051. _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'insertBefore', this).call(this, blot, ref);
  43052. if (head instanceof _break2.default) {
  43053. head.remove();
  43054. }
  43055. this.cache = {};
  43056. }
  43057. }, {
  43058. key: 'length',
  43059. value: function length() {
  43060. if (this.cache.length == null) {
  43061. this.cache.length = _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'length', this).call(this) + NEWLINE_LENGTH;
  43062. }
  43063. return this.cache.length;
  43064. }
  43065. }, {
  43066. key: 'moveChildren',
  43067. value: function moveChildren(target, ref) {
  43068. _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'moveChildren', this).call(this, target, ref);
  43069. this.cache = {};
  43070. }
  43071. }, {
  43072. key: 'optimize',
  43073. value: function optimize(context) {
  43074. _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'optimize', this).call(this, context);
  43075. this.cache = {};
  43076. }
  43077. }, {
  43078. key: 'path',
  43079. value: function path(index) {
  43080. return _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'path', this).call(this, index, true);
  43081. }
  43082. }, {
  43083. key: 'removeChild',
  43084. value: function removeChild(child) {
  43085. _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'removeChild', this).call(this, child);
  43086. this.cache = {};
  43087. }
  43088. }, {
  43089. key: 'split',
  43090. value: function split(index) {
  43091. var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  43092. if (force && (index === 0 || index >= this.length() - NEWLINE_LENGTH)) {
  43093. var clone = this.clone();
  43094. if (index === 0) {
  43095. this.parent.insertBefore(clone, this);
  43096. return this;
  43097. } else {
  43098. this.parent.insertBefore(clone, this.next);
  43099. return clone;
  43100. }
  43101. } else {
  43102. var next = _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'split', this).call(this, index, force);
  43103. this.cache = {};
  43104. return next;
  43105. }
  43106. }
  43107. }]);
  43108. return Block;
  43109. }(_parchment2.default.Block);
  43110. Block.blotName = 'block';
  43111. Block.tagName = 'P';
  43112. Block.defaultChild = 'break';
  43113. Block.allowedChildren = [_inline2.default, _parchment2.default.Embed, _text2.default];
  43114. function bubbleFormats(blot) {
  43115. var formats = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  43116. if (blot == null) return formats;
  43117. if (typeof blot.formats === 'function') {
  43118. formats = (0, _extend2.default)(formats, blot.formats());
  43119. }
  43120. if (blot.parent == null || blot.parent.blotName == 'scroll' || blot.parent.statics.scope !== blot.statics.scope) {
  43121. return formats;
  43122. }
  43123. return bubbleFormats(blot.parent, formats);
  43124. }
  43125. exports.bubbleFormats = bubbleFormats;
  43126. exports.BlockEmbed = BlockEmbed;
  43127. exports.default = Block;
  43128. /***/ }),
  43129. /* 5 */
  43130. /***/ (function(module, exports, __nested_webpack_require_33760__) {
  43131. "use strict";
  43132. Object.defineProperty(exports, "__esModule", {
  43133. value: true
  43134. });
  43135. exports.default = exports.overload = exports.expandConfig = undefined;
  43136. var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
  43137. var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
  43138. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  43139. __nested_webpack_require_33760__(50);
  43140. var _quillDelta = __nested_webpack_require_33760__(2);
  43141. var _quillDelta2 = _interopRequireDefault(_quillDelta);
  43142. var _editor = __nested_webpack_require_33760__(14);
  43143. var _editor2 = _interopRequireDefault(_editor);
  43144. var _emitter3 = __nested_webpack_require_33760__(8);
  43145. var _emitter4 = _interopRequireDefault(_emitter3);
  43146. var _module = __nested_webpack_require_33760__(9);
  43147. var _module2 = _interopRequireDefault(_module);
  43148. var _parchment = __nested_webpack_require_33760__(0);
  43149. var _parchment2 = _interopRequireDefault(_parchment);
  43150. var _selection = __nested_webpack_require_33760__(15);
  43151. var _selection2 = _interopRequireDefault(_selection);
  43152. var _extend = __nested_webpack_require_33760__(3);
  43153. var _extend2 = _interopRequireDefault(_extend);
  43154. var _logger = __nested_webpack_require_33760__(10);
  43155. var _logger2 = _interopRequireDefault(_logger);
  43156. var _theme = __nested_webpack_require_33760__(34);
  43157. var _theme2 = _interopRequireDefault(_theme);
  43158. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  43159. function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  43160. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  43161. var debug = (0, _logger2.default)('quill');
  43162. var Quill = function () {
  43163. _createClass(Quill, null, [{
  43164. key: 'debug',
  43165. value: function debug(limit) {
  43166. if (limit === true) {
  43167. limit = 'log';
  43168. }
  43169. _logger2.default.level(limit);
  43170. }
  43171. }, {
  43172. key: 'find',
  43173. value: function find(node) {
  43174. return node.__quill || _parchment2.default.find(node);
  43175. }
  43176. }, {
  43177. key: 'import',
  43178. value: function _import(name) {
  43179. if (this.imports[name] == null) {
  43180. debug.error('Cannot import ' + name + '. Are you sure it was registered?');
  43181. }
  43182. return this.imports[name];
  43183. }
  43184. }, {
  43185. key: 'register',
  43186. value: function register(path, target) {
  43187. var _this = this;
  43188. var overwrite = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  43189. if (typeof path !== 'string') {
  43190. var name = path.attrName || path.blotName;
  43191. if (typeof name === 'string') {
  43192. // register(Blot | Attributor, overwrite)
  43193. this.register('formats/' + name, path, target);
  43194. } else {
  43195. Object.keys(path).forEach(function (key) {
  43196. _this.register(key, path[key], target);
  43197. });
  43198. }
  43199. } else {
  43200. if (this.imports[path] != null && !overwrite) {
  43201. debug.warn('Overwriting ' + path + ' with', target);
  43202. }
  43203. this.imports[path] = target;
  43204. if ((path.startsWith('blots/') || path.startsWith('formats/')) && target.blotName !== 'abstract') {
  43205. _parchment2.default.register(target);
  43206. } else if (path.startsWith('modules') && typeof target.register === 'function') {
  43207. target.register();
  43208. }
  43209. }
  43210. }
  43211. }]);
  43212. function Quill(container) {
  43213. var _this2 = this;
  43214. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  43215. _classCallCheck(this, Quill);
  43216. this.options = expandConfig(container, options);
  43217. this.container = this.options.container;
  43218. if (this.container == null) {
  43219. return debug.error('Invalid Quill container', container);
  43220. }
  43221. if (this.options.debug) {
  43222. Quill.debug(this.options.debug);
  43223. }
  43224. var html = this.container.innerHTML.trim();
  43225. this.container.classList.add('ql-container');
  43226. this.container.innerHTML = '';
  43227. this.container.__quill = this;
  43228. this.root = this.addContainer('ql-editor');
  43229. this.root.classList.add('ql-blank');
  43230. this.root.setAttribute('data-gramm', false);
  43231. this.scrollingContainer = this.options.scrollingContainer || this.root;
  43232. this.emitter = new _emitter4.default();
  43233. this.scroll = _parchment2.default.create(this.root, {
  43234. emitter: this.emitter,
  43235. whitelist: this.options.formats
  43236. });
  43237. this.editor = new _editor2.default(this.scroll);
  43238. this.selection = new _selection2.default(this.scroll, this.emitter);
  43239. this.theme = new this.options.theme(this, this.options);
  43240. this.keyboard = this.theme.addModule('keyboard');
  43241. this.clipboard = this.theme.addModule('clipboard');
  43242. this.history = this.theme.addModule('history');
  43243. this.theme.init();
  43244. this.emitter.on(_emitter4.default.events.EDITOR_CHANGE, function (type) {
  43245. if (type === _emitter4.default.events.TEXT_CHANGE) {
  43246. _this2.root.classList.toggle('ql-blank', _this2.editor.isBlank());
  43247. }
  43248. });
  43249. this.emitter.on(_emitter4.default.events.SCROLL_UPDATE, function (source, mutations) {
  43250. var range = _this2.selection.lastRange;
  43251. var index = range && range.length === 0 ? range.index : undefined;
  43252. modify.call(_this2, function () {
  43253. return _this2.editor.update(null, mutations, index);
  43254. }, source);
  43255. });
  43256. var contents = this.clipboard.convert('<div class=\'ql-editor\' style="white-space: normal;">' + html + '<p><br></p></div>');
  43257. this.setContents(contents);
  43258. this.history.clear();
  43259. if (this.options.placeholder) {
  43260. this.root.setAttribute('data-placeholder', this.options.placeholder);
  43261. }
  43262. if (this.options.readOnly) {
  43263. this.disable();
  43264. }
  43265. }
  43266. _createClass(Quill, [{
  43267. key: 'addContainer',
  43268. value: function addContainer(container) {
  43269. var refNode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  43270. if (typeof container === 'string') {
  43271. var className = container;
  43272. container = document.createElement('div');
  43273. container.classList.add(className);
  43274. }
  43275. this.container.insertBefore(container, refNode);
  43276. return container;
  43277. }
  43278. }, {
  43279. key: 'blur',
  43280. value: function blur() {
  43281. this.selection.setRange(null);
  43282. }
  43283. }, {
  43284. key: 'deleteText',
  43285. value: function deleteText(index, length, source) {
  43286. var _this3 = this;
  43287. var _overload = overload(index, length, source);
  43288. var _overload2 = _slicedToArray(_overload, 4);
  43289. index = _overload2[0];
  43290. length = _overload2[1];
  43291. source = _overload2[3];
  43292. return modify.call(this, function () {
  43293. return _this3.editor.deleteText(index, length);
  43294. }, source, index, -1 * length);
  43295. }
  43296. }, {
  43297. key: 'disable',
  43298. value: function disable() {
  43299. this.enable(false);
  43300. }
  43301. }, {
  43302. key: 'enable',
  43303. value: function enable() {
  43304. var enabled = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  43305. this.scroll.enable(enabled);
  43306. this.container.classList.toggle('ql-disabled', !enabled);
  43307. }
  43308. }, {
  43309. key: 'focus',
  43310. value: function focus() {
  43311. var scrollTop = this.scrollingContainer.scrollTop;
  43312. this.selection.focus();
  43313. this.scrollingContainer.scrollTop = scrollTop;
  43314. this.scrollIntoView();
  43315. }
  43316. }, {
  43317. key: 'format',
  43318. value: function format(name, value) {
  43319. var _this4 = this;
  43320. var source = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _emitter4.default.sources.API;
  43321. return modify.call(this, function () {
  43322. var range = _this4.getSelection(true);
  43323. var change = new _quillDelta2.default();
  43324. if (range == null) {
  43325. return change;
  43326. } else if (_parchment2.default.query(name, _parchment2.default.Scope.BLOCK)) {
  43327. change = _this4.editor.formatLine(range.index, range.length, _defineProperty({}, name, value));
  43328. } else if (range.length === 0) {
  43329. _this4.selection.format(name, value);
  43330. return change;
  43331. } else {
  43332. change = _this4.editor.formatText(range.index, range.length, _defineProperty({}, name, value));
  43333. }
  43334. _this4.setSelection(range, _emitter4.default.sources.SILENT);
  43335. return change;
  43336. }, source);
  43337. }
  43338. }, {
  43339. key: 'formatLine',
  43340. value: function formatLine(index, length, name, value, source) {
  43341. var _this5 = this;
  43342. var formats = void 0;
  43343. var _overload3 = overload(index, length, name, value, source);
  43344. var _overload4 = _slicedToArray(_overload3, 4);
  43345. index = _overload4[0];
  43346. length = _overload4[1];
  43347. formats = _overload4[2];
  43348. source = _overload4[3];
  43349. return modify.call(this, function () {
  43350. return _this5.editor.formatLine(index, length, formats);
  43351. }, source, index, 0);
  43352. }
  43353. }, {
  43354. key: 'formatText',
  43355. value: function formatText(index, length, name, value, source) {
  43356. var _this6 = this;
  43357. var formats = void 0;
  43358. var _overload5 = overload(index, length, name, value, source);
  43359. var _overload6 = _slicedToArray(_overload5, 4);
  43360. index = _overload6[0];
  43361. length = _overload6[1];
  43362. formats = _overload6[2];
  43363. source = _overload6[3];
  43364. return modify.call(this, function () {
  43365. return _this6.editor.formatText(index, length, formats);
  43366. }, source, index, 0);
  43367. }
  43368. }, {
  43369. key: 'getBounds',
  43370. value: function getBounds(index) {
  43371. var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  43372. var bounds = void 0;
  43373. if (typeof index === 'number') {
  43374. bounds = this.selection.getBounds(index, length);
  43375. } else {
  43376. bounds = this.selection.getBounds(index.index, index.length);
  43377. }
  43378. var containerBounds = this.container.getBoundingClientRect();
  43379. return {
  43380. bottom: bounds.bottom - containerBounds.top,
  43381. height: bounds.height,
  43382. left: bounds.left - containerBounds.left,
  43383. right: bounds.right - containerBounds.left,
  43384. top: bounds.top - containerBounds.top,
  43385. width: bounds.width
  43386. };
  43387. }
  43388. }, {
  43389. key: 'getContents',
  43390. value: function getContents() {
  43391. var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  43392. var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.getLength() - index;
  43393. var _overload7 = overload(index, length);
  43394. var _overload8 = _slicedToArray(_overload7, 2);
  43395. index = _overload8[0];
  43396. length = _overload8[1];
  43397. return this.editor.getContents(index, length);
  43398. }
  43399. }, {
  43400. key: 'getFormat',
  43401. value: function getFormat() {
  43402. var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.getSelection(true);
  43403. var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  43404. if (typeof index === 'number') {
  43405. return this.editor.getFormat(index, length);
  43406. } else {
  43407. return this.editor.getFormat(index.index, index.length);
  43408. }
  43409. }
  43410. }, {
  43411. key: 'getIndex',
  43412. value: function getIndex(blot) {
  43413. return blot.offset(this.scroll);
  43414. }
  43415. }, {
  43416. key: 'getLength',
  43417. value: function getLength() {
  43418. return this.scroll.length();
  43419. }
  43420. }, {
  43421. key: 'getLeaf',
  43422. value: function getLeaf(index) {
  43423. return this.scroll.leaf(index);
  43424. }
  43425. }, {
  43426. key: 'getLine',
  43427. value: function getLine(index) {
  43428. return this.scroll.line(index);
  43429. }
  43430. }, {
  43431. key: 'getLines',
  43432. value: function getLines() {
  43433. var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  43434. var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Number.MAX_VALUE;
  43435. if (typeof index !== 'number') {
  43436. return this.scroll.lines(index.index, index.length);
  43437. } else {
  43438. return this.scroll.lines(index, length);
  43439. }
  43440. }
  43441. }, {
  43442. key: 'getModule',
  43443. value: function getModule(name) {
  43444. return this.theme.modules[name];
  43445. }
  43446. }, {
  43447. key: 'getSelection',
  43448. value: function getSelection() {
  43449. var focus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
  43450. if (focus) this.focus();
  43451. this.update(); // Make sure we access getRange with editor in consistent state
  43452. return this.selection.getRange()[0];
  43453. }
  43454. }, {
  43455. key: 'getText',
  43456. value: function getText() {
  43457. var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  43458. var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.getLength() - index;
  43459. var _overload9 = overload(index, length);
  43460. var _overload10 = _slicedToArray(_overload9, 2);
  43461. index = _overload10[0];
  43462. length = _overload10[1];
  43463. return this.editor.getText(index, length);
  43464. }
  43465. }, {
  43466. key: 'hasFocus',
  43467. value: function hasFocus() {
  43468. return this.selection.hasFocus();
  43469. }
  43470. }, {
  43471. key: 'insertEmbed',
  43472. value: function insertEmbed(index, embed, value) {
  43473. var _this7 = this;
  43474. var source = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Quill.sources.API;
  43475. return modify.call(this, function () {
  43476. return _this7.editor.insertEmbed(index, embed, value);
  43477. }, source, index);
  43478. }
  43479. }, {
  43480. key: 'insertText',
  43481. value: function insertText(index, text, name, value, source) {
  43482. var _this8 = this;
  43483. var formats = void 0;
  43484. var _overload11 = overload(index, 0, name, value, source);
  43485. var _overload12 = _slicedToArray(_overload11, 4);
  43486. index = _overload12[0];
  43487. formats = _overload12[2];
  43488. source = _overload12[3];
  43489. return modify.call(this, function () {
  43490. return _this8.editor.insertText(index, text, formats);
  43491. }, source, index, text.length);
  43492. }
  43493. }, {
  43494. key: 'isEnabled',
  43495. value: function isEnabled() {
  43496. return !this.container.classList.contains('ql-disabled');
  43497. }
  43498. }, {
  43499. key: 'off',
  43500. value: function off() {
  43501. return this.emitter.off.apply(this.emitter, arguments);
  43502. }
  43503. }, {
  43504. key: 'on',
  43505. value: function on() {
  43506. return this.emitter.on.apply(this.emitter, arguments);
  43507. }
  43508. }, {
  43509. key: 'once',
  43510. value: function once() {
  43511. return this.emitter.once.apply(this.emitter, arguments);
  43512. }
  43513. }, {
  43514. key: 'pasteHTML',
  43515. value: function pasteHTML(index, html, source) {
  43516. this.clipboard.dangerouslyPasteHTML(index, html, source);
  43517. }
  43518. }, {
  43519. key: 'removeFormat',
  43520. value: function removeFormat(index, length, source) {
  43521. var _this9 = this;
  43522. var _overload13 = overload(index, length, source);
  43523. var _overload14 = _slicedToArray(_overload13, 4);
  43524. index = _overload14[0];
  43525. length = _overload14[1];
  43526. source = _overload14[3];
  43527. return modify.call(this, function () {
  43528. return _this9.editor.removeFormat(index, length);
  43529. }, source, index);
  43530. }
  43531. }, {
  43532. key: 'scrollIntoView',
  43533. value: function scrollIntoView() {
  43534. this.selection.scrollIntoView(this.scrollingContainer);
  43535. }
  43536. }, {
  43537. key: 'setContents',
  43538. value: function setContents(delta) {
  43539. var _this10 = this;
  43540. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _emitter4.default.sources.API;
  43541. return modify.call(this, function () {
  43542. delta = new _quillDelta2.default(delta);
  43543. var length = _this10.getLength();
  43544. var deleted = _this10.editor.deleteText(0, length);
  43545. var applied = _this10.editor.applyDelta(delta);
  43546. var lastOp = applied.ops[applied.ops.length - 1];
  43547. if (lastOp != null && typeof lastOp.insert === 'string' && lastOp.insert[lastOp.insert.length - 1] === '\n') {
  43548. _this10.editor.deleteText(_this10.getLength() - 1, 1);
  43549. applied.delete(1);
  43550. }
  43551. var ret = deleted.compose(applied);
  43552. return ret;
  43553. }, source);
  43554. }
  43555. }, {
  43556. key: 'setSelection',
  43557. value: function setSelection(index, length, source) {
  43558. if (index == null) {
  43559. this.selection.setRange(null, length || Quill.sources.API);
  43560. } else {
  43561. var _overload15 = overload(index, length, source);
  43562. var _overload16 = _slicedToArray(_overload15, 4);
  43563. index = _overload16[0];
  43564. length = _overload16[1];
  43565. source = _overload16[3];
  43566. this.selection.setRange(new _selection.Range(index, length), source);
  43567. if (source !== _emitter4.default.sources.SILENT) {
  43568. this.selection.scrollIntoView(this.scrollingContainer);
  43569. }
  43570. }
  43571. }
  43572. }, {
  43573. key: 'setText',
  43574. value: function setText(text) {
  43575. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _emitter4.default.sources.API;
  43576. var delta = new _quillDelta2.default().insert(text);
  43577. return this.setContents(delta, source);
  43578. }
  43579. }, {
  43580. key: 'update',
  43581. value: function update() {
  43582. var source = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _emitter4.default.sources.USER;
  43583. var change = this.scroll.update(source); // Will update selection before selection.update() does if text changes
  43584. this.selection.update(source);
  43585. return change;
  43586. }
  43587. }, {
  43588. key: 'updateContents',
  43589. value: function updateContents(delta) {
  43590. var _this11 = this;
  43591. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _emitter4.default.sources.API;
  43592. return modify.call(this, function () {
  43593. delta = new _quillDelta2.default(delta);
  43594. return _this11.editor.applyDelta(delta, source);
  43595. }, source, true);
  43596. }
  43597. }]);
  43598. return Quill;
  43599. }();
  43600. Quill.DEFAULTS = {
  43601. bounds: null,
  43602. formats: null,
  43603. modules: {},
  43604. placeholder: '',
  43605. readOnly: false,
  43606. scrollingContainer: null,
  43607. strict: true,
  43608. theme: 'default'
  43609. };
  43610. Quill.events = _emitter4.default.events;
  43611. Quill.sources = _emitter4.default.sources;
  43612. // eslint-disable-next-line no-undef
  43613. Quill.version = false ? 0 : "1.3.7";
  43614. Quill.imports = {
  43615. 'delta': _quillDelta2.default,
  43616. 'parchment': _parchment2.default,
  43617. 'core/module': _module2.default,
  43618. 'core/theme': _theme2.default
  43619. };
  43620. function expandConfig(container, userConfig) {
  43621. userConfig = (0, _extend2.default)(true, {
  43622. container: container,
  43623. modules: {
  43624. clipboard: true,
  43625. keyboard: true,
  43626. history: true
  43627. }
  43628. }, userConfig);
  43629. if (!userConfig.theme || userConfig.theme === Quill.DEFAULTS.theme) {
  43630. userConfig.theme = _theme2.default;
  43631. } else {
  43632. userConfig.theme = Quill.import('themes/' + userConfig.theme);
  43633. if (userConfig.theme == null) {
  43634. throw new Error('Invalid theme ' + userConfig.theme + '. Did you register it?');
  43635. }
  43636. }
  43637. var themeConfig = (0, _extend2.default)(true, {}, userConfig.theme.DEFAULTS);
  43638. [themeConfig, userConfig].forEach(function (config) {
  43639. config.modules = config.modules || {};
  43640. Object.keys(config.modules).forEach(function (module) {
  43641. if (config.modules[module] === true) {
  43642. config.modules[module] = {};
  43643. }
  43644. });
  43645. });
  43646. var moduleNames = Object.keys(themeConfig.modules).concat(Object.keys(userConfig.modules));
  43647. var moduleConfig = moduleNames.reduce(function (config, name) {
  43648. var moduleClass = Quill.import('modules/' + name);
  43649. if (moduleClass == null) {
  43650. debug.error('Cannot load ' + name + ' module. Are you sure you registered it?');
  43651. } else {
  43652. config[name] = moduleClass.DEFAULTS || {};
  43653. }
  43654. return config;
  43655. }, {});
  43656. // Special case toolbar shorthand
  43657. if (userConfig.modules != null && userConfig.modules.toolbar && userConfig.modules.toolbar.constructor !== Object) {
  43658. userConfig.modules.toolbar = {
  43659. container: userConfig.modules.toolbar
  43660. };
  43661. }
  43662. userConfig = (0, _extend2.default)(true, {}, Quill.DEFAULTS, { modules: moduleConfig }, themeConfig, userConfig);
  43663. ['bounds', 'container', 'scrollingContainer'].forEach(function (key) {
  43664. if (typeof userConfig[key] === 'string') {
  43665. userConfig[key] = document.querySelector(userConfig[key]);
  43666. }
  43667. });
  43668. userConfig.modules = Object.keys(userConfig.modules).reduce(function (config, name) {
  43669. if (userConfig.modules[name]) {
  43670. config[name] = userConfig.modules[name];
  43671. }
  43672. return config;
  43673. }, {});
  43674. return userConfig;
  43675. }
  43676. // Handle selection preservation and TEXT_CHANGE emission
  43677. // common to modification APIs
  43678. function modify(modifier, source, index, shift) {
  43679. if (this.options.strict && !this.isEnabled() && source === _emitter4.default.sources.USER) {
  43680. return new _quillDelta2.default();
  43681. }
  43682. var range = index == null ? null : this.getSelection();
  43683. var oldDelta = this.editor.delta;
  43684. var change = modifier();
  43685. if (range != null) {
  43686. if (index === true) index = range.index;
  43687. if (shift == null) {
  43688. range = shiftRange(range, change, source);
  43689. } else if (shift !== 0) {
  43690. range = shiftRange(range, index, shift, source);
  43691. }
  43692. this.setSelection(range, _emitter4.default.sources.SILENT);
  43693. }
  43694. if (change.length() > 0) {
  43695. var _emitter;
  43696. var args = [_emitter4.default.events.TEXT_CHANGE, change, oldDelta, source];
  43697. (_emitter = this.emitter).emit.apply(_emitter, [_emitter4.default.events.EDITOR_CHANGE].concat(args));
  43698. if (source !== _emitter4.default.sources.SILENT) {
  43699. var _emitter2;
  43700. (_emitter2 = this.emitter).emit.apply(_emitter2, args);
  43701. }
  43702. }
  43703. return change;
  43704. }
  43705. function overload(index, length, name, value, source) {
  43706. var formats = {};
  43707. if (typeof index.index === 'number' && typeof index.length === 'number') {
  43708. // Allow for throwaway end (used by insertText/insertEmbed)
  43709. if (typeof length !== 'number') {
  43710. source = value, value = name, name = length, length = index.length, index = index.index;
  43711. } else {
  43712. length = index.length, index = index.index;
  43713. }
  43714. } else if (typeof length !== 'number') {
  43715. source = value, value = name, name = length, length = 0;
  43716. }
  43717. // Handle format being object, two format name/value strings or excluded
  43718. if ((typeof name === 'undefined' ? 'undefined' : _typeof(name)) === 'object') {
  43719. formats = name;
  43720. source = value;
  43721. } else if (typeof name === 'string') {
  43722. if (value != null) {
  43723. formats[name] = value;
  43724. } else {
  43725. source = name;
  43726. }
  43727. }
  43728. // Handle optional source
  43729. source = source || _emitter4.default.sources.API;
  43730. return [index, length, formats, source];
  43731. }
  43732. function shiftRange(range, index, length, source) {
  43733. if (range == null) return null;
  43734. var start = void 0,
  43735. end = void 0;
  43736. if (index instanceof _quillDelta2.default) {
  43737. var _map = [range.index, range.index + range.length].map(function (pos) {
  43738. return index.transformPosition(pos, source !== _emitter4.default.sources.USER);
  43739. });
  43740. var _map2 = _slicedToArray(_map, 2);
  43741. start = _map2[0];
  43742. end = _map2[1];
  43743. } else {
  43744. var _map3 = [range.index, range.index + range.length].map(function (pos) {
  43745. if (pos < index || pos === index && source === _emitter4.default.sources.USER) return pos;
  43746. if (length >= 0) {
  43747. return pos + length;
  43748. } else {
  43749. return Math.max(index, pos + length);
  43750. }
  43751. });
  43752. var _map4 = _slicedToArray(_map3, 2);
  43753. start = _map4[0];
  43754. end = _map4[1];
  43755. }
  43756. return new _selection.Range(start, end - start);
  43757. }
  43758. exports.expandConfig = expandConfig;
  43759. exports.overload = overload;
  43760. exports.default = Quill;
  43761. /***/ }),
  43762. /* 6 */
  43763. /***/ (function(module, exports, __nested_webpack_require_58401__) {
  43764. "use strict";
  43765. Object.defineProperty(exports, "__esModule", {
  43766. value: true
  43767. });
  43768. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  43769. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  43770. var _text = __nested_webpack_require_58401__(7);
  43771. var _text2 = _interopRequireDefault(_text);
  43772. var _parchment = __nested_webpack_require_58401__(0);
  43773. var _parchment2 = _interopRequireDefault(_parchment);
  43774. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  43775. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  43776. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  43777. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  43778. var Inline = function (_Parchment$Inline) {
  43779. _inherits(Inline, _Parchment$Inline);
  43780. function Inline() {
  43781. _classCallCheck(this, Inline);
  43782. return _possibleConstructorReturn(this, (Inline.__proto__ || Object.getPrototypeOf(Inline)).apply(this, arguments));
  43783. }
  43784. _createClass(Inline, [{
  43785. key: 'formatAt',
  43786. value: function formatAt(index, length, name, value) {
  43787. if (Inline.compare(this.statics.blotName, name) < 0 && _parchment2.default.query(name, _parchment2.default.Scope.BLOT)) {
  43788. var blot = this.isolate(index, length);
  43789. if (value) {
  43790. blot.wrap(name, value);
  43791. }
  43792. } else {
  43793. _get(Inline.prototype.__proto__ || Object.getPrototypeOf(Inline.prototype), 'formatAt', this).call(this, index, length, name, value);
  43794. }
  43795. }
  43796. }, {
  43797. key: 'optimize',
  43798. value: function optimize(context) {
  43799. _get(Inline.prototype.__proto__ || Object.getPrototypeOf(Inline.prototype), 'optimize', this).call(this, context);
  43800. if (this.parent instanceof Inline && Inline.compare(this.statics.blotName, this.parent.statics.blotName) > 0) {
  43801. var parent = this.parent.isolate(this.offset(), this.length());
  43802. this.moveChildren(parent);
  43803. parent.wrap(this);
  43804. }
  43805. }
  43806. }], [{
  43807. key: 'compare',
  43808. value: function compare(self, other) {
  43809. var selfIndex = Inline.order.indexOf(self);
  43810. var otherIndex = Inline.order.indexOf(other);
  43811. if (selfIndex >= 0 || otherIndex >= 0) {
  43812. return selfIndex - otherIndex;
  43813. } else if (self === other) {
  43814. return 0;
  43815. } else if (self < other) {
  43816. return -1;
  43817. } else {
  43818. return 1;
  43819. }
  43820. }
  43821. }]);
  43822. return Inline;
  43823. }(_parchment2.default.Inline);
  43824. Inline.allowedChildren = [Inline, _parchment2.default.Embed, _text2.default];
  43825. // Lower index means deeper in the DOM tree, since not found (-1) is for embeds
  43826. Inline.order = ['cursor', 'inline', // Must be lower
  43827. 'underline', 'strike', 'italic', 'bold', 'script', 'link', 'code' // Must be higher
  43828. ];
  43829. exports.default = Inline;
  43830. /***/ }),
  43831. /* 7 */
  43832. /***/ (function(module, exports, __nested_webpack_require_62823__) {
  43833. "use strict";
  43834. Object.defineProperty(exports, "__esModule", {
  43835. value: true
  43836. });
  43837. var _parchment = __nested_webpack_require_62823__(0);
  43838. var _parchment2 = _interopRequireDefault(_parchment);
  43839. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  43840. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  43841. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  43842. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  43843. var TextBlot = function (_Parchment$Text) {
  43844. _inherits(TextBlot, _Parchment$Text);
  43845. function TextBlot() {
  43846. _classCallCheck(this, TextBlot);
  43847. return _possibleConstructorReturn(this, (TextBlot.__proto__ || Object.getPrototypeOf(TextBlot)).apply(this, arguments));
  43848. }
  43849. return TextBlot;
  43850. }(_parchment2.default.Text);
  43851. exports.default = TextBlot;
  43852. /***/ }),
  43853. /* 8 */
  43854. /***/ (function(module, exports, __nested_webpack_require_64422__) {
  43855. "use strict";
  43856. Object.defineProperty(exports, "__esModule", {
  43857. value: true
  43858. });
  43859. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  43860. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  43861. var _eventemitter = __nested_webpack_require_64422__(54);
  43862. var _eventemitter2 = _interopRequireDefault(_eventemitter);
  43863. var _logger = __nested_webpack_require_64422__(10);
  43864. var _logger2 = _interopRequireDefault(_logger);
  43865. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  43866. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  43867. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  43868. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  43869. var debug = (0, _logger2.default)('quill:events');
  43870. var EVENTS = ['selectionchange', 'mousedown', 'mouseup', 'click'];
  43871. EVENTS.forEach(function (eventName) {
  43872. document.addEventListener(eventName, function () {
  43873. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  43874. args[_key] = arguments[_key];
  43875. }
  43876. [].slice.call(document.querySelectorAll('.ql-container')).forEach(function (node) {
  43877. // TODO use WeakMap
  43878. if (node.__quill && node.__quill.emitter) {
  43879. var _node$__quill$emitter;
  43880. (_node$__quill$emitter = node.__quill.emitter).handleDOM.apply(_node$__quill$emitter, args);
  43881. }
  43882. });
  43883. });
  43884. });
  43885. var Emitter = function (_EventEmitter) {
  43886. _inherits(Emitter, _EventEmitter);
  43887. function Emitter() {
  43888. _classCallCheck(this, Emitter);
  43889. var _this = _possibleConstructorReturn(this, (Emitter.__proto__ || Object.getPrototypeOf(Emitter)).call(this));
  43890. _this.listeners = {};
  43891. _this.on('error', debug.error);
  43892. return _this;
  43893. }
  43894. _createClass(Emitter, [{
  43895. key: 'emit',
  43896. value: function emit() {
  43897. debug.log.apply(debug, arguments);
  43898. _get(Emitter.prototype.__proto__ || Object.getPrototypeOf(Emitter.prototype), 'emit', this).apply(this, arguments);
  43899. }
  43900. }, {
  43901. key: 'handleDOM',
  43902. value: function handleDOM(event) {
  43903. for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  43904. args[_key2 - 1] = arguments[_key2];
  43905. }
  43906. (this.listeners[event.type] || []).forEach(function (_ref) {
  43907. var node = _ref.node,
  43908. handler = _ref.handler;
  43909. if (event.target === node || node.contains(event.target)) {
  43910. handler.apply(undefined, [event].concat(args));
  43911. }
  43912. });
  43913. }
  43914. }, {
  43915. key: 'listenDOM',
  43916. value: function listenDOM(eventName, node, handler) {
  43917. if (!this.listeners[eventName]) {
  43918. this.listeners[eventName] = [];
  43919. }
  43920. this.listeners[eventName].push({ node: node, handler: handler });
  43921. }
  43922. }]);
  43923. return Emitter;
  43924. }(_eventemitter2.default);
  43925. Emitter.events = {
  43926. EDITOR_CHANGE: 'editor-change',
  43927. SCROLL_BEFORE_UPDATE: 'scroll-before-update',
  43928. SCROLL_OPTIMIZE: 'scroll-optimize',
  43929. SCROLL_UPDATE: 'scroll-update',
  43930. SELECTION_CHANGE: 'selection-change',
  43931. TEXT_CHANGE: 'text-change'
  43932. };
  43933. Emitter.sources = {
  43934. API: 'api',
  43935. SILENT: 'silent',
  43936. USER: 'user'
  43937. };
  43938. exports.default = Emitter;
  43939. /***/ }),
  43940. /* 9 */
  43941. /***/ (function(module, exports, __webpack_require__) {
  43942. "use strict";
  43943. Object.defineProperty(exports, "__esModule", {
  43944. value: true
  43945. });
  43946. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  43947. var Module = function Module(quill) {
  43948. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  43949. _classCallCheck(this, Module);
  43950. this.quill = quill;
  43951. this.options = options;
  43952. };
  43953. Module.DEFAULTS = {};
  43954. exports.default = Module;
  43955. /***/ }),
  43956. /* 10 */
  43957. /***/ (function(module, exports, __webpack_require__) {
  43958. "use strict";
  43959. Object.defineProperty(exports, "__esModule", {
  43960. value: true
  43961. });
  43962. var levels = ['error', 'warn', 'log', 'info'];
  43963. var level = 'warn';
  43964. function debug(method) {
  43965. if (levels.indexOf(method) <= levels.indexOf(level)) {
  43966. var _console;
  43967. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  43968. args[_key - 1] = arguments[_key];
  43969. }
  43970. (_console = console)[method].apply(_console, args); // eslint-disable-line no-console
  43971. }
  43972. }
  43973. function namespace(ns) {
  43974. return levels.reduce(function (logger, method) {
  43975. logger[method] = debug.bind(console, method, ns);
  43976. return logger;
  43977. }, {});
  43978. }
  43979. debug.level = namespace.level = function (newLevel) {
  43980. level = newLevel;
  43981. };
  43982. exports.default = namespace;
  43983. /***/ }),
  43984. /* 11 */
  43985. /***/ (function(module, exports, __nested_webpack_require_70685__) {
  43986. var pSlice = Array.prototype.slice;
  43987. var objectKeys = __nested_webpack_require_70685__(52);
  43988. var isArguments = __nested_webpack_require_70685__(53);
  43989. var deepEqual = module.exports = function (actual, expected, opts) {
  43990. if (!opts) opts = {};
  43991. // 7.1. All identical values are equivalent, as determined by ===.
  43992. if (actual === expected) {
  43993. return true;
  43994. } else if (actual instanceof Date && expected instanceof Date) {
  43995. return actual.getTime() === expected.getTime();
  43996. // 7.3. Other pairs that do not both pass typeof value == 'object',
  43997. // equivalence is determined by ==.
  43998. } else if (!actual || !expected || typeof actual != 'object' && typeof expected != 'object') {
  43999. return opts.strict ? actual === expected : actual == expected;
  44000. // 7.4. For all other Object pairs, including Array objects, equivalence is
  44001. // determined by having the same number of owned properties (as verified
  44002. // with Object.prototype.hasOwnProperty.call), the same set of keys
  44003. // (although not necessarily the same order), equivalent values for every
  44004. // corresponding key, and an identical 'prototype' property. Note: this
  44005. // accounts for both named and indexed properties on Arrays.
  44006. } else {
  44007. return objEquiv(actual, expected, opts);
  44008. }
  44009. }
  44010. function isUndefinedOrNull(value) {
  44011. return value === null || value === undefined;
  44012. }
  44013. function isBuffer (x) {
  44014. if (!x || typeof x !== 'object' || typeof x.length !== 'number') return false;
  44015. if (typeof x.copy !== 'function' || typeof x.slice !== 'function') {
  44016. return false;
  44017. }
  44018. if (x.length > 0 && typeof x[0] !== 'number') return false;
  44019. return true;
  44020. }
  44021. function objEquiv(a, b, opts) {
  44022. var i, key;
  44023. if (isUndefinedOrNull(a) || isUndefinedOrNull(b))
  44024. return false;
  44025. // an identical 'prototype' property.
  44026. if (a.prototype !== b.prototype) return false;
  44027. //~~~I've managed to break Object.keys through screwy arguments passing.
  44028. // Converting to array solves the problem.
  44029. if (isArguments(a)) {
  44030. if (!isArguments(b)) {
  44031. return false;
  44032. }
  44033. a = pSlice.call(a);
  44034. b = pSlice.call(b);
  44035. return deepEqual(a, b, opts);
  44036. }
  44037. if (isBuffer(a)) {
  44038. if (!isBuffer(b)) {
  44039. return false;
  44040. }
  44041. if (a.length !== b.length) return false;
  44042. for (i = 0; i < a.length; i++) {
  44043. if (a[i] !== b[i]) return false;
  44044. }
  44045. return true;
  44046. }
  44047. try {
  44048. var ka = objectKeys(a),
  44049. kb = objectKeys(b);
  44050. } catch (e) {//happens when one is a string literal and the other isn't
  44051. return false;
  44052. }
  44053. // having the same number of owned properties (keys incorporates
  44054. // hasOwnProperty)
  44055. if (ka.length != kb.length)
  44056. return false;
  44057. //the same set of keys (although not necessarily the same order),
  44058. ka.sort();
  44059. kb.sort();
  44060. //~~~cheap key test
  44061. for (i = ka.length - 1; i >= 0; i--) {
  44062. if (ka[i] != kb[i])
  44063. return false;
  44064. }
  44065. //equivalent values for every corresponding key, and
  44066. //~~~possibly expensive deep test
  44067. for (i = ka.length - 1; i >= 0; i--) {
  44068. key = ka[i];
  44069. if (!deepEqual(a[key], b[key], opts)) return false;
  44070. }
  44071. return typeof a === typeof b;
  44072. }
  44073. /***/ }),
  44074. /* 12 */
  44075. /***/ (function(module, exports, __nested_webpack_require_73804__) {
  44076. "use strict";
  44077. Object.defineProperty(exports, "__esModule", { value: true });
  44078. var Registry = __nested_webpack_require_73804__(1);
  44079. var Attributor = /** @class */ (function () {
  44080. function Attributor(attrName, keyName, options) {
  44081. if (options === void 0) { options = {}; }
  44082. this.attrName = attrName;
  44083. this.keyName = keyName;
  44084. var attributeBit = Registry.Scope.TYPE & Registry.Scope.ATTRIBUTE;
  44085. if (options.scope != null) {
  44086. // Ignore type bits, force attribute bit
  44087. this.scope = (options.scope & Registry.Scope.LEVEL) | attributeBit;
  44088. }
  44089. else {
  44090. this.scope = Registry.Scope.ATTRIBUTE;
  44091. }
  44092. if (options.whitelist != null)
  44093. this.whitelist = options.whitelist;
  44094. }
  44095. Attributor.keys = function (node) {
  44096. return [].map.call(node.attributes, function (item) {
  44097. return item.name;
  44098. });
  44099. };
  44100. Attributor.prototype.add = function (node, value) {
  44101. if (!this.canAdd(node, value))
  44102. return false;
  44103. node.setAttribute(this.keyName, value);
  44104. return true;
  44105. };
  44106. Attributor.prototype.canAdd = function (node, value) {
  44107. var match = Registry.query(node, Registry.Scope.BLOT & (this.scope | Registry.Scope.TYPE));
  44108. if (match == null)
  44109. return false;
  44110. if (this.whitelist == null)
  44111. return true;
  44112. if (typeof value === 'string') {
  44113. return this.whitelist.indexOf(value.replace(/["']/g, '')) > -1;
  44114. }
  44115. else {
  44116. return this.whitelist.indexOf(value) > -1;
  44117. }
  44118. };
  44119. Attributor.prototype.remove = function (node) {
  44120. node.removeAttribute(this.keyName);
  44121. };
  44122. Attributor.prototype.value = function (node) {
  44123. var value = node.getAttribute(this.keyName);
  44124. if (this.canAdd(node, value) && value) {
  44125. return value;
  44126. }
  44127. return '';
  44128. };
  44129. return Attributor;
  44130. }());
  44131. exports.default = Attributor;
  44132. /***/ }),
  44133. /* 13 */
  44134. /***/ (function(module, exports, __nested_webpack_require_75851__) {
  44135. "use strict";
  44136. Object.defineProperty(exports, "__esModule", {
  44137. value: true
  44138. });
  44139. exports.default = exports.Code = undefined;
  44140. var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
  44141. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  44142. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  44143. var _quillDelta = __nested_webpack_require_75851__(2);
  44144. var _quillDelta2 = _interopRequireDefault(_quillDelta);
  44145. var _parchment = __nested_webpack_require_75851__(0);
  44146. var _parchment2 = _interopRequireDefault(_parchment);
  44147. var _block = __nested_webpack_require_75851__(4);
  44148. var _block2 = _interopRequireDefault(_block);
  44149. var _inline = __nested_webpack_require_75851__(6);
  44150. var _inline2 = _interopRequireDefault(_inline);
  44151. var _text = __nested_webpack_require_75851__(7);
  44152. var _text2 = _interopRequireDefault(_text);
  44153. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  44154. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  44155. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  44156. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  44157. var Code = function (_Inline) {
  44158. _inherits(Code, _Inline);
  44159. function Code() {
  44160. _classCallCheck(this, Code);
  44161. return _possibleConstructorReturn(this, (Code.__proto__ || Object.getPrototypeOf(Code)).apply(this, arguments));
  44162. }
  44163. return Code;
  44164. }(_inline2.default);
  44165. Code.blotName = 'code';
  44166. Code.tagName = 'CODE';
  44167. var CodeBlock = function (_Block) {
  44168. _inherits(CodeBlock, _Block);
  44169. function CodeBlock() {
  44170. _classCallCheck(this, CodeBlock);
  44171. return _possibleConstructorReturn(this, (CodeBlock.__proto__ || Object.getPrototypeOf(CodeBlock)).apply(this, arguments));
  44172. }
  44173. _createClass(CodeBlock, [{
  44174. key: 'delta',
  44175. value: function delta() {
  44176. var _this3 = this;
  44177. var text = this.domNode.textContent;
  44178. if (text.endsWith('\n')) {
  44179. // Should always be true
  44180. text = text.slice(0, -1);
  44181. }
  44182. return text.split('\n').reduce(function (delta, frag) {
  44183. return delta.insert(frag).insert('\n', _this3.formats());
  44184. }, new _quillDelta2.default());
  44185. }
  44186. }, {
  44187. key: 'format',
  44188. value: function format(name, value) {
  44189. if (name === this.statics.blotName && value) return;
  44190. var _descendant = this.descendant(_text2.default, this.length() - 1),
  44191. _descendant2 = _slicedToArray(_descendant, 1),
  44192. text = _descendant2[0];
  44193. if (text != null) {
  44194. text.deleteAt(text.length() - 1, 1);
  44195. }
  44196. _get(CodeBlock.prototype.__proto__ || Object.getPrototypeOf(CodeBlock.prototype), 'format', this).call(this, name, value);
  44197. }
  44198. }, {
  44199. key: 'formatAt',
  44200. value: function formatAt(index, length, name, value) {
  44201. if (length === 0) return;
  44202. if (_parchment2.default.query(name, _parchment2.default.Scope.BLOCK) == null || name === this.statics.blotName && value === this.statics.formats(this.domNode)) {
  44203. return;
  44204. }
  44205. var nextNewline = this.newlineIndex(index);
  44206. if (nextNewline < 0 || nextNewline >= index + length) return;
  44207. var prevNewline = this.newlineIndex(index, true) + 1;
  44208. var isolateLength = nextNewline - prevNewline + 1;
  44209. var blot = this.isolate(prevNewline, isolateLength);
  44210. var next = blot.next;
  44211. blot.format(name, value);
  44212. if (next instanceof CodeBlock) {
  44213. next.formatAt(0, index - prevNewline + length - isolateLength, name, value);
  44214. }
  44215. }
  44216. }, {
  44217. key: 'insertAt',
  44218. value: function insertAt(index, value, def) {
  44219. if (def != null) return;
  44220. var _descendant3 = this.descendant(_text2.default, index),
  44221. _descendant4 = _slicedToArray(_descendant3, 2),
  44222. text = _descendant4[0],
  44223. offset = _descendant4[1];
  44224. text.insertAt(offset, value);
  44225. }
  44226. }, {
  44227. key: 'length',
  44228. value: function length() {
  44229. var length = this.domNode.textContent.length;
  44230. if (!this.domNode.textContent.endsWith('\n')) {
  44231. return length + 1;
  44232. }
  44233. return length;
  44234. }
  44235. }, {
  44236. key: 'newlineIndex',
  44237. value: function newlineIndex(searchIndex) {
  44238. var reverse = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  44239. if (!reverse) {
  44240. var offset = this.domNode.textContent.slice(searchIndex).indexOf('\n');
  44241. return offset > -1 ? searchIndex + offset : -1;
  44242. } else {
  44243. return this.domNode.textContent.slice(0, searchIndex).lastIndexOf('\n');
  44244. }
  44245. }
  44246. }, {
  44247. key: 'optimize',
  44248. value: function optimize(context) {
  44249. if (!this.domNode.textContent.endsWith('\n')) {
  44250. this.appendChild(_parchment2.default.create('text', '\n'));
  44251. }
  44252. _get(CodeBlock.prototype.__proto__ || Object.getPrototypeOf(CodeBlock.prototype), 'optimize', this).call(this, context);
  44253. var next = this.next;
  44254. if (next != null && next.prev === this && next.statics.blotName === this.statics.blotName && this.statics.formats(this.domNode) === next.statics.formats(next.domNode)) {
  44255. next.optimize(context);
  44256. next.moveChildren(this);
  44257. next.remove();
  44258. }
  44259. }
  44260. }, {
  44261. key: 'replace',
  44262. value: function replace(target) {
  44263. _get(CodeBlock.prototype.__proto__ || Object.getPrototypeOf(CodeBlock.prototype), 'replace', this).call(this, target);
  44264. [].slice.call(this.domNode.querySelectorAll('*')).forEach(function (node) {
  44265. var blot = _parchment2.default.find(node);
  44266. if (blot == null) {
  44267. node.parentNode.removeChild(node);
  44268. } else if (blot instanceof _parchment2.default.Embed) {
  44269. blot.remove();
  44270. } else {
  44271. blot.unwrap();
  44272. }
  44273. });
  44274. }
  44275. }], [{
  44276. key: 'create',
  44277. value: function create(value) {
  44278. var domNode = _get(CodeBlock.__proto__ || Object.getPrototypeOf(CodeBlock), 'create', this).call(this, value);
  44279. domNode.setAttribute('spellcheck', false);
  44280. return domNode;
  44281. }
  44282. }, {
  44283. key: 'formats',
  44284. value: function formats() {
  44285. return true;
  44286. }
  44287. }]);
  44288. return CodeBlock;
  44289. }(_block2.default);
  44290. CodeBlock.blotName = 'code-block';
  44291. CodeBlock.tagName = 'PRE';
  44292. CodeBlock.TAB = ' ';
  44293. exports.Code = Code;
  44294. exports.default = CodeBlock;
  44295. /***/ }),
  44296. /* 14 */
  44297. /***/ (function(module, exports, __nested_webpack_require_84272__) {
  44298. "use strict";
  44299. Object.defineProperty(exports, "__esModule", {
  44300. value: true
  44301. });
  44302. var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
  44303. var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
  44304. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  44305. var _quillDelta = __nested_webpack_require_84272__(2);
  44306. var _quillDelta2 = _interopRequireDefault(_quillDelta);
  44307. var _op = __nested_webpack_require_84272__(20);
  44308. var _op2 = _interopRequireDefault(_op);
  44309. var _parchment = __nested_webpack_require_84272__(0);
  44310. var _parchment2 = _interopRequireDefault(_parchment);
  44311. var _code = __nested_webpack_require_84272__(13);
  44312. var _code2 = _interopRequireDefault(_code);
  44313. var _cursor = __nested_webpack_require_84272__(24);
  44314. var _cursor2 = _interopRequireDefault(_cursor);
  44315. var _block = __nested_webpack_require_84272__(4);
  44316. var _block2 = _interopRequireDefault(_block);
  44317. var _break = __nested_webpack_require_84272__(16);
  44318. var _break2 = _interopRequireDefault(_break);
  44319. var _clone = __nested_webpack_require_84272__(21);
  44320. var _clone2 = _interopRequireDefault(_clone);
  44321. var _deepEqual = __nested_webpack_require_84272__(11);
  44322. var _deepEqual2 = _interopRequireDefault(_deepEqual);
  44323. var _extend = __nested_webpack_require_84272__(3);
  44324. var _extend2 = _interopRequireDefault(_extend);
  44325. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  44326. function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  44327. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  44328. var ASCII = /^[ -~]*$/;
  44329. var Editor = function () {
  44330. function Editor(scroll) {
  44331. _classCallCheck(this, Editor);
  44332. this.scroll = scroll;
  44333. this.delta = this.getDelta();
  44334. }
  44335. _createClass(Editor, [{
  44336. key: 'applyDelta',
  44337. value: function applyDelta(delta) {
  44338. var _this = this;
  44339. var consumeNextNewline = false;
  44340. this.scroll.update();
  44341. var scrollLength = this.scroll.length();
  44342. this.scroll.batchStart();
  44343. delta = normalizeDelta(delta);
  44344. delta.reduce(function (index, op) {
  44345. var length = op.retain || op.delete || op.insert.length || 1;
  44346. var attributes = op.attributes || {};
  44347. if (op.insert != null) {
  44348. if (typeof op.insert === 'string') {
  44349. var text = op.insert;
  44350. if (text.endsWith('\n') && consumeNextNewline) {
  44351. consumeNextNewline = false;
  44352. text = text.slice(0, -1);
  44353. }
  44354. if (index >= scrollLength && !text.endsWith('\n')) {
  44355. consumeNextNewline = true;
  44356. }
  44357. _this.scroll.insertAt(index, text);
  44358. var _scroll$line = _this.scroll.line(index),
  44359. _scroll$line2 = _slicedToArray(_scroll$line, 2),
  44360. line = _scroll$line2[0],
  44361. offset = _scroll$line2[1];
  44362. var formats = (0, _extend2.default)({}, (0, _block.bubbleFormats)(line));
  44363. if (line instanceof _block2.default) {
  44364. var _line$descendant = line.descendant(_parchment2.default.Leaf, offset),
  44365. _line$descendant2 = _slicedToArray(_line$descendant, 1),
  44366. leaf = _line$descendant2[0];
  44367. formats = (0, _extend2.default)(formats, (0, _block.bubbleFormats)(leaf));
  44368. }
  44369. attributes = _op2.default.attributes.diff(formats, attributes) || {};
  44370. } else if (_typeof(op.insert) === 'object') {
  44371. var key = Object.keys(op.insert)[0]; // There should only be one key
  44372. if (key == null) return index;
  44373. _this.scroll.insertAt(index, key, op.insert[key]);
  44374. }
  44375. scrollLength += length;
  44376. }
  44377. Object.keys(attributes).forEach(function (name) {
  44378. _this.scroll.formatAt(index, length, name, attributes[name]);
  44379. });
  44380. return index + length;
  44381. }, 0);
  44382. delta.reduce(function (index, op) {
  44383. if (typeof op.delete === 'number') {
  44384. _this.scroll.deleteAt(index, op.delete);
  44385. return index;
  44386. }
  44387. return index + (op.retain || op.insert.length || 1);
  44388. }, 0);
  44389. this.scroll.batchEnd();
  44390. return this.update(delta);
  44391. }
  44392. }, {
  44393. key: 'deleteText',
  44394. value: function deleteText(index, length) {
  44395. this.scroll.deleteAt(index, length);
  44396. return this.update(new _quillDelta2.default().retain(index).delete(length));
  44397. }
  44398. }, {
  44399. key: 'formatLine',
  44400. value: function formatLine(index, length) {
  44401. var _this2 = this;
  44402. var formats = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  44403. this.scroll.update();
  44404. Object.keys(formats).forEach(function (format) {
  44405. if (_this2.scroll.whitelist != null && !_this2.scroll.whitelist[format]) return;
  44406. var lines = _this2.scroll.lines(index, Math.max(length, 1));
  44407. var lengthRemaining = length;
  44408. lines.forEach(function (line) {
  44409. var lineLength = line.length();
  44410. if (!(line instanceof _code2.default)) {
  44411. line.format(format, formats[format]);
  44412. } else {
  44413. var codeIndex = index - line.offset(_this2.scroll);
  44414. var codeLength = line.newlineIndex(codeIndex + lengthRemaining) - codeIndex + 1;
  44415. line.formatAt(codeIndex, codeLength, format, formats[format]);
  44416. }
  44417. lengthRemaining -= lineLength;
  44418. });
  44419. });
  44420. this.scroll.optimize();
  44421. return this.update(new _quillDelta2.default().retain(index).retain(length, (0, _clone2.default)(formats)));
  44422. }
  44423. }, {
  44424. key: 'formatText',
  44425. value: function formatText(index, length) {
  44426. var _this3 = this;
  44427. var formats = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  44428. Object.keys(formats).forEach(function (format) {
  44429. _this3.scroll.formatAt(index, length, format, formats[format]);
  44430. });
  44431. return this.update(new _quillDelta2.default().retain(index).retain(length, (0, _clone2.default)(formats)));
  44432. }
  44433. }, {
  44434. key: 'getContents',
  44435. value: function getContents(index, length) {
  44436. return this.delta.slice(index, index + length);
  44437. }
  44438. }, {
  44439. key: 'getDelta',
  44440. value: function getDelta() {
  44441. return this.scroll.lines().reduce(function (delta, line) {
  44442. return delta.concat(line.delta());
  44443. }, new _quillDelta2.default());
  44444. }
  44445. }, {
  44446. key: 'getFormat',
  44447. value: function getFormat(index) {
  44448. var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  44449. var lines = [],
  44450. leaves = [];
  44451. if (length === 0) {
  44452. this.scroll.path(index).forEach(function (path) {
  44453. var _path = _slicedToArray(path, 1),
  44454. blot = _path[0];
  44455. if (blot instanceof _block2.default) {
  44456. lines.push(blot);
  44457. } else if (blot instanceof _parchment2.default.Leaf) {
  44458. leaves.push(blot);
  44459. }
  44460. });
  44461. } else {
  44462. lines = this.scroll.lines(index, length);
  44463. leaves = this.scroll.descendants(_parchment2.default.Leaf, index, length);
  44464. }
  44465. var formatsArr = [lines, leaves].map(function (blots) {
  44466. if (blots.length === 0) return {};
  44467. var formats = (0, _block.bubbleFormats)(blots.shift());
  44468. while (Object.keys(formats).length > 0) {
  44469. var blot = blots.shift();
  44470. if (blot == null) return formats;
  44471. formats = combineFormats((0, _block.bubbleFormats)(blot), formats);
  44472. }
  44473. return formats;
  44474. });
  44475. return _extend2.default.apply(_extend2.default, formatsArr);
  44476. }
  44477. }, {
  44478. key: 'getText',
  44479. value: function getText(index, length) {
  44480. return this.getContents(index, length).filter(function (op) {
  44481. return typeof op.insert === 'string';
  44482. }).map(function (op) {
  44483. return op.insert;
  44484. }).join('');
  44485. }
  44486. }, {
  44487. key: 'insertEmbed',
  44488. value: function insertEmbed(index, embed, value) {
  44489. this.scroll.insertAt(index, embed, value);
  44490. return this.update(new _quillDelta2.default().retain(index).insert(_defineProperty({}, embed, value)));
  44491. }
  44492. }, {
  44493. key: 'insertText',
  44494. value: function insertText(index, text) {
  44495. var _this4 = this;
  44496. var formats = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  44497. text = text.replace(/\r\n/g, '\n').replace(/\r/g, '\n');
  44498. this.scroll.insertAt(index, text);
  44499. Object.keys(formats).forEach(function (format) {
  44500. _this4.scroll.formatAt(index, text.length, format, formats[format]);
  44501. });
  44502. return this.update(new _quillDelta2.default().retain(index).insert(text, (0, _clone2.default)(formats)));
  44503. }
  44504. }, {
  44505. key: 'isBlank',
  44506. value: function isBlank() {
  44507. if (this.scroll.children.length == 0) return true;
  44508. if (this.scroll.children.length > 1) return false;
  44509. var block = this.scroll.children.head;
  44510. if (block.statics.blotName !== _block2.default.blotName) return false;
  44511. if (block.children.length > 1) return false;
  44512. return block.children.head instanceof _break2.default;
  44513. }
  44514. }, {
  44515. key: 'removeFormat',
  44516. value: function removeFormat(index, length) {
  44517. var text = this.getText(index, length);
  44518. var _scroll$line3 = this.scroll.line(index + length),
  44519. _scroll$line4 = _slicedToArray(_scroll$line3, 2),
  44520. line = _scroll$line4[0],
  44521. offset = _scroll$line4[1];
  44522. var suffixLength = 0,
  44523. suffix = new _quillDelta2.default();
  44524. if (line != null) {
  44525. if (!(line instanceof _code2.default)) {
  44526. suffixLength = line.length() - offset;
  44527. } else {
  44528. suffixLength = line.newlineIndex(offset) - offset + 1;
  44529. }
  44530. suffix = line.delta().slice(offset, offset + suffixLength - 1).insert('\n');
  44531. }
  44532. var contents = this.getContents(index, length + suffixLength);
  44533. var diff = contents.diff(new _quillDelta2.default().insert(text).concat(suffix));
  44534. var delta = new _quillDelta2.default().retain(index).concat(diff);
  44535. return this.applyDelta(delta);
  44536. }
  44537. }, {
  44538. key: 'update',
  44539. value: function update(change) {
  44540. var mutations = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  44541. var cursorIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
  44542. var oldDelta = this.delta;
  44543. if (mutations.length === 1 && mutations[0].type === 'characterData' && mutations[0].target.data.match(ASCII) && _parchment2.default.find(mutations[0].target)) {
  44544. // Optimization for character changes
  44545. var textBlot = _parchment2.default.find(mutations[0].target);
  44546. var formats = (0, _block.bubbleFormats)(textBlot);
  44547. var index = textBlot.offset(this.scroll);
  44548. var oldValue = mutations[0].oldValue.replace(_cursor2.default.CONTENTS, '');
  44549. var oldText = new _quillDelta2.default().insert(oldValue);
  44550. var newText = new _quillDelta2.default().insert(textBlot.value());
  44551. var diffDelta = new _quillDelta2.default().retain(index).concat(oldText.diff(newText, cursorIndex));
  44552. change = diffDelta.reduce(function (delta, op) {
  44553. if (op.insert) {
  44554. return delta.insert(op.insert, formats);
  44555. } else {
  44556. return delta.push(op);
  44557. }
  44558. }, new _quillDelta2.default());
  44559. this.delta = oldDelta.compose(change);
  44560. } else {
  44561. this.delta = this.getDelta();
  44562. if (!change || !(0, _deepEqual2.default)(oldDelta.compose(change), this.delta)) {
  44563. change = oldDelta.diff(this.delta, cursorIndex);
  44564. }
  44565. }
  44566. return change;
  44567. }
  44568. }]);
  44569. return Editor;
  44570. }();
  44571. function combineFormats(formats, combined) {
  44572. return Object.keys(combined).reduce(function (merged, name) {
  44573. if (formats[name] == null) return merged;
  44574. if (combined[name] === formats[name]) {
  44575. merged[name] = combined[name];
  44576. } else if (Array.isArray(combined[name])) {
  44577. if (combined[name].indexOf(formats[name]) < 0) {
  44578. merged[name] = combined[name].concat([formats[name]]);
  44579. }
  44580. } else {
  44581. merged[name] = [combined[name], formats[name]];
  44582. }
  44583. return merged;
  44584. }, {});
  44585. }
  44586. function normalizeDelta(delta) {
  44587. return delta.reduce(function (delta, op) {
  44588. if (op.insert === 1) {
  44589. var attributes = (0, _clone2.default)(op.attributes);
  44590. delete attributes['image'];
  44591. return delta.insert({ image: op.attributes.image }, attributes);
  44592. }
  44593. if (op.attributes != null && (op.attributes.list === true || op.attributes.bullet === true)) {
  44594. op = (0, _clone2.default)(op);
  44595. if (op.attributes.list) {
  44596. op.attributes.list = 'ordered';
  44597. } else {
  44598. op.attributes.list = 'bullet';
  44599. delete op.attributes.bullet;
  44600. }
  44601. }
  44602. if (typeof op.insert === 'string') {
  44603. var text = op.insert.replace(/\r\n/g, '\n').replace(/\r/g, '\n');
  44604. return delta.insert(text, op.attributes);
  44605. }
  44606. return delta.push(op);
  44607. }, new _quillDelta2.default());
  44608. }
  44609. exports.default = Editor;
  44610. /***/ }),
  44611. /* 15 */
  44612. /***/ (function(module, exports, __nested_webpack_require_98688__) {
  44613. "use strict";
  44614. Object.defineProperty(exports, "__esModule", {
  44615. value: true
  44616. });
  44617. exports.default = exports.Range = undefined;
  44618. var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
  44619. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  44620. var _parchment = __nested_webpack_require_98688__(0);
  44621. var _parchment2 = _interopRequireDefault(_parchment);
  44622. var _clone = __nested_webpack_require_98688__(21);
  44623. var _clone2 = _interopRequireDefault(_clone);
  44624. var _deepEqual = __nested_webpack_require_98688__(11);
  44625. var _deepEqual2 = _interopRequireDefault(_deepEqual);
  44626. var _emitter3 = __nested_webpack_require_98688__(8);
  44627. var _emitter4 = _interopRequireDefault(_emitter3);
  44628. var _logger = __nested_webpack_require_98688__(10);
  44629. var _logger2 = _interopRequireDefault(_logger);
  44630. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  44631. function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
  44632. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  44633. var debug = (0, _logger2.default)('quill:selection');
  44634. var Range = function Range(index) {
  44635. var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  44636. _classCallCheck(this, Range);
  44637. this.index = index;
  44638. this.length = length;
  44639. };
  44640. var Selection = function () {
  44641. function Selection(scroll, emitter) {
  44642. var _this = this;
  44643. _classCallCheck(this, Selection);
  44644. this.emitter = emitter;
  44645. this.scroll = scroll;
  44646. this.composing = false;
  44647. this.mouseDown = false;
  44648. this.root = this.scroll.domNode;
  44649. this.cursor = _parchment2.default.create('cursor', this);
  44650. // savedRange is last non-null range
  44651. this.lastRange = this.savedRange = new Range(0, 0);
  44652. this.handleComposition();
  44653. this.handleDragging();
  44654. this.emitter.listenDOM('selectionchange', document, function () {
  44655. if (!_this.mouseDown) {
  44656. setTimeout(_this.update.bind(_this, _emitter4.default.sources.USER), 1);
  44657. }
  44658. });
  44659. this.emitter.on(_emitter4.default.events.EDITOR_CHANGE, function (type, delta) {
  44660. if (type === _emitter4.default.events.TEXT_CHANGE && delta.length() > 0) {
  44661. _this.update(_emitter4.default.sources.SILENT);
  44662. }
  44663. });
  44664. this.emitter.on(_emitter4.default.events.SCROLL_BEFORE_UPDATE, function () {
  44665. if (!_this.hasFocus()) return;
  44666. var native = _this.getNativeRange();
  44667. if (native == null) return;
  44668. if (native.start.node === _this.cursor.textNode) return; // cursor.restore() will handle
  44669. // TODO unclear if this has negative side effects
  44670. _this.emitter.once(_emitter4.default.events.SCROLL_UPDATE, function () {
  44671. try {
  44672. _this.setNativeRange(native.start.node, native.start.offset, native.end.node, native.end.offset);
  44673. } catch (ignored) {}
  44674. });
  44675. });
  44676. this.emitter.on(_emitter4.default.events.SCROLL_OPTIMIZE, function (mutations, context) {
  44677. if (context.range) {
  44678. var _context$range = context.range,
  44679. startNode = _context$range.startNode,
  44680. startOffset = _context$range.startOffset,
  44681. endNode = _context$range.endNode,
  44682. endOffset = _context$range.endOffset;
  44683. _this.setNativeRange(startNode, startOffset, endNode, endOffset);
  44684. }
  44685. });
  44686. this.update(_emitter4.default.sources.SILENT);
  44687. }
  44688. _createClass(Selection, [{
  44689. key: 'handleComposition',
  44690. value: function handleComposition() {
  44691. var _this2 = this;
  44692. this.root.addEventListener('compositionstart', function () {
  44693. _this2.composing = true;
  44694. });
  44695. this.root.addEventListener('compositionend', function () {
  44696. _this2.composing = false;
  44697. if (_this2.cursor.parent) {
  44698. var range = _this2.cursor.restore();
  44699. if (!range) return;
  44700. setTimeout(function () {
  44701. _this2.setNativeRange(range.startNode, range.startOffset, range.endNode, range.endOffset);
  44702. }, 1);
  44703. }
  44704. });
  44705. }
  44706. }, {
  44707. key: 'handleDragging',
  44708. value: function handleDragging() {
  44709. var _this3 = this;
  44710. this.emitter.listenDOM('mousedown', document.body, function () {
  44711. _this3.mouseDown = true;
  44712. });
  44713. this.emitter.listenDOM('mouseup', document.body, function () {
  44714. _this3.mouseDown = false;
  44715. _this3.update(_emitter4.default.sources.USER);
  44716. });
  44717. }
  44718. }, {
  44719. key: 'focus',
  44720. value: function focus() {
  44721. if (this.hasFocus()) return;
  44722. this.root.focus();
  44723. this.setRange(this.savedRange);
  44724. }
  44725. }, {
  44726. key: 'format',
  44727. value: function format(_format, value) {
  44728. if (this.scroll.whitelist != null && !this.scroll.whitelist[_format]) return;
  44729. this.scroll.update();
  44730. var nativeRange = this.getNativeRange();
  44731. if (nativeRange == null || !nativeRange.native.collapsed || _parchment2.default.query(_format, _parchment2.default.Scope.BLOCK)) return;
  44732. if (nativeRange.start.node !== this.cursor.textNode) {
  44733. var blot = _parchment2.default.find(nativeRange.start.node, false);
  44734. if (blot == null) return;
  44735. // TODO Give blot ability to not split
  44736. if (blot instanceof _parchment2.default.Leaf) {
  44737. var after = blot.split(nativeRange.start.offset);
  44738. blot.parent.insertBefore(this.cursor, after);
  44739. } else {
  44740. blot.insertBefore(this.cursor, nativeRange.start.node); // Should never happen
  44741. }
  44742. this.cursor.attach();
  44743. }
  44744. this.cursor.format(_format, value);
  44745. this.scroll.optimize();
  44746. this.setNativeRange(this.cursor.textNode, this.cursor.textNode.data.length);
  44747. this.update();
  44748. }
  44749. }, {
  44750. key: 'getBounds',
  44751. value: function getBounds(index) {
  44752. var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  44753. var scrollLength = this.scroll.length();
  44754. index = Math.min(index, scrollLength - 1);
  44755. length = Math.min(index + length, scrollLength - 1) - index;
  44756. var node = void 0,
  44757. _scroll$leaf = this.scroll.leaf(index),
  44758. _scroll$leaf2 = _slicedToArray(_scroll$leaf, 2),
  44759. leaf = _scroll$leaf2[0],
  44760. offset = _scroll$leaf2[1];
  44761. if (leaf == null) return null;
  44762. var _leaf$position = leaf.position(offset, true);
  44763. var _leaf$position2 = _slicedToArray(_leaf$position, 2);
  44764. node = _leaf$position2[0];
  44765. offset = _leaf$position2[1];
  44766. var range = document.createRange();
  44767. if (length > 0) {
  44768. range.setStart(node, offset);
  44769. var _scroll$leaf3 = this.scroll.leaf(index + length);
  44770. var _scroll$leaf4 = _slicedToArray(_scroll$leaf3, 2);
  44771. leaf = _scroll$leaf4[0];
  44772. offset = _scroll$leaf4[1];
  44773. if (leaf == null) return null;
  44774. var _leaf$position3 = leaf.position(offset, true);
  44775. var _leaf$position4 = _slicedToArray(_leaf$position3, 2);
  44776. node = _leaf$position4[0];
  44777. offset = _leaf$position4[1];
  44778. range.setEnd(node, offset);
  44779. return range.getBoundingClientRect();
  44780. } else {
  44781. var side = 'left';
  44782. var rect = void 0;
  44783. if (node instanceof Text) {
  44784. if (offset < node.data.length) {
  44785. range.setStart(node, offset);
  44786. range.setEnd(node, offset + 1);
  44787. } else {
  44788. range.setStart(node, offset - 1);
  44789. range.setEnd(node, offset);
  44790. side = 'right';
  44791. }
  44792. rect = range.getBoundingClientRect();
  44793. } else {
  44794. rect = leaf.domNode.getBoundingClientRect();
  44795. if (offset > 0) side = 'right';
  44796. }
  44797. return {
  44798. bottom: rect.top + rect.height,
  44799. height: rect.height,
  44800. left: rect[side],
  44801. right: rect[side],
  44802. top: rect.top,
  44803. width: 0
  44804. };
  44805. }
  44806. }
  44807. }, {
  44808. key: 'getNativeRange',
  44809. value: function getNativeRange() {
  44810. var selection = document.getSelection();
  44811. if (selection == null || selection.rangeCount <= 0) return null;
  44812. var nativeRange = selection.getRangeAt(0);
  44813. if (nativeRange == null) return null;
  44814. var range = this.normalizeNative(nativeRange);
  44815. debug.info('getNativeRange', range);
  44816. return range;
  44817. }
  44818. }, {
  44819. key: 'getRange',
  44820. value: function getRange() {
  44821. var normalized = this.getNativeRange();
  44822. if (normalized == null) return [null, null];
  44823. var range = this.normalizedToRange(normalized);
  44824. return [range, normalized];
  44825. }
  44826. }, {
  44827. key: 'hasFocus',
  44828. value: function hasFocus() {
  44829. return document.activeElement === this.root;
  44830. }
  44831. }, {
  44832. key: 'normalizedToRange',
  44833. value: function normalizedToRange(range) {
  44834. var _this4 = this;
  44835. var positions = [[range.start.node, range.start.offset]];
  44836. if (!range.native.collapsed) {
  44837. positions.push([range.end.node, range.end.offset]);
  44838. }
  44839. var indexes = positions.map(function (position) {
  44840. var _position = _slicedToArray(position, 2),
  44841. node = _position[0],
  44842. offset = _position[1];
  44843. var blot = _parchment2.default.find(node, true);
  44844. var index = blot.offset(_this4.scroll);
  44845. if (offset === 0) {
  44846. return index;
  44847. } else if (blot instanceof _parchment2.default.Container) {
  44848. return index + blot.length();
  44849. } else {
  44850. return index + blot.index(node, offset);
  44851. }
  44852. });
  44853. var end = Math.min(Math.max.apply(Math, _toConsumableArray(indexes)), this.scroll.length() - 1);
  44854. var start = Math.min.apply(Math, [end].concat(_toConsumableArray(indexes)));
  44855. return new Range(start, end - start);
  44856. }
  44857. }, {
  44858. key: 'normalizeNative',
  44859. value: function normalizeNative(nativeRange) {
  44860. if (!contains(this.root, nativeRange.startContainer) || !nativeRange.collapsed && !contains(this.root, nativeRange.endContainer)) {
  44861. return null;
  44862. }
  44863. var range = {
  44864. start: { node: nativeRange.startContainer, offset: nativeRange.startOffset },
  44865. end: { node: nativeRange.endContainer, offset: nativeRange.endOffset },
  44866. native: nativeRange
  44867. };
  44868. [range.start, range.end].forEach(function (position) {
  44869. var node = position.node,
  44870. offset = position.offset;
  44871. while (!(node instanceof Text) && node.childNodes.length > 0) {
  44872. if (node.childNodes.length > offset) {
  44873. node = node.childNodes[offset];
  44874. offset = 0;
  44875. } else if (node.childNodes.length === offset) {
  44876. node = node.lastChild;
  44877. offset = node instanceof Text ? node.data.length : node.childNodes.length + 1;
  44878. } else {
  44879. break;
  44880. }
  44881. }
  44882. position.node = node, position.offset = offset;
  44883. });
  44884. return range;
  44885. }
  44886. }, {
  44887. key: 'rangeToNative',
  44888. value: function rangeToNative(range) {
  44889. var _this5 = this;
  44890. var indexes = range.collapsed ? [range.index] : [range.index, range.index + range.length];
  44891. var args = [];
  44892. var scrollLength = this.scroll.length();
  44893. indexes.forEach(function (index, i) {
  44894. index = Math.min(scrollLength - 1, index);
  44895. var node = void 0,
  44896. _scroll$leaf5 = _this5.scroll.leaf(index),
  44897. _scroll$leaf6 = _slicedToArray(_scroll$leaf5, 2),
  44898. leaf = _scroll$leaf6[0],
  44899. offset = _scroll$leaf6[1];
  44900. var _leaf$position5 = leaf.position(offset, i !== 0);
  44901. var _leaf$position6 = _slicedToArray(_leaf$position5, 2);
  44902. node = _leaf$position6[0];
  44903. offset = _leaf$position6[1];
  44904. args.push(node, offset);
  44905. });
  44906. if (args.length < 2) {
  44907. args = args.concat(args);
  44908. }
  44909. return args;
  44910. }
  44911. }, {
  44912. key: 'scrollIntoView',
  44913. value: function scrollIntoView(scrollingContainer) {
  44914. var range = this.lastRange;
  44915. if (range == null) return;
  44916. var bounds = this.getBounds(range.index, range.length);
  44917. if (bounds == null) return;
  44918. var limit = this.scroll.length() - 1;
  44919. var _scroll$line = this.scroll.line(Math.min(range.index, limit)),
  44920. _scroll$line2 = _slicedToArray(_scroll$line, 1),
  44921. first = _scroll$line2[0];
  44922. var last = first;
  44923. if (range.length > 0) {
  44924. var _scroll$line3 = this.scroll.line(Math.min(range.index + range.length, limit));
  44925. var _scroll$line4 = _slicedToArray(_scroll$line3, 1);
  44926. last = _scroll$line4[0];
  44927. }
  44928. if (first == null || last == null) return;
  44929. var scrollBounds = scrollingContainer.getBoundingClientRect();
  44930. if (bounds.top < scrollBounds.top) {
  44931. scrollingContainer.scrollTop -= scrollBounds.top - bounds.top;
  44932. } else if (bounds.bottom > scrollBounds.bottom) {
  44933. scrollingContainer.scrollTop += bounds.bottom - scrollBounds.bottom;
  44934. }
  44935. }
  44936. }, {
  44937. key: 'setNativeRange',
  44938. value: function setNativeRange(startNode, startOffset) {
  44939. var endNode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : startNode;
  44940. var endOffset = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : startOffset;
  44941. var force = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  44942. debug.info('setNativeRange', startNode, startOffset, endNode, endOffset);
  44943. if (startNode != null && (this.root.parentNode == null || startNode.parentNode == null || endNode.parentNode == null)) {
  44944. return;
  44945. }
  44946. var selection = document.getSelection();
  44947. if (selection == null) return;
  44948. if (startNode != null) {
  44949. if (!this.hasFocus()) this.root.focus();
  44950. var native = (this.getNativeRange() || {}).native;
  44951. if (native == null || force || startNode !== native.startContainer || startOffset !== native.startOffset || endNode !== native.endContainer || endOffset !== native.endOffset) {
  44952. if (startNode.tagName == "BR") {
  44953. startOffset = [].indexOf.call(startNode.parentNode.childNodes, startNode);
  44954. startNode = startNode.parentNode;
  44955. }
  44956. if (endNode.tagName == "BR") {
  44957. endOffset = [].indexOf.call(endNode.parentNode.childNodes, endNode);
  44958. endNode = endNode.parentNode;
  44959. }
  44960. var range = document.createRange();
  44961. range.setStart(startNode, startOffset);
  44962. range.setEnd(endNode, endOffset);
  44963. selection.removeAllRanges();
  44964. selection.addRange(range);
  44965. }
  44966. } else {
  44967. selection.removeAllRanges();
  44968. this.root.blur();
  44969. document.body.focus(); // root.blur() not enough on IE11+Travis+SauceLabs (but not local VMs)
  44970. }
  44971. }
  44972. }, {
  44973. key: 'setRange',
  44974. value: function setRange(range) {
  44975. var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  44976. var source = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _emitter4.default.sources.API;
  44977. if (typeof force === 'string') {
  44978. source = force;
  44979. force = false;
  44980. }
  44981. debug.info('setRange', range);
  44982. if (range != null) {
  44983. var args = this.rangeToNative(range);
  44984. this.setNativeRange.apply(this, _toConsumableArray(args).concat([force]));
  44985. } else {
  44986. this.setNativeRange(null);
  44987. }
  44988. this.update(source);
  44989. }
  44990. }, {
  44991. key: 'update',
  44992. value: function update() {
  44993. var source = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _emitter4.default.sources.USER;
  44994. var oldRange = this.lastRange;
  44995. var _getRange = this.getRange(),
  44996. _getRange2 = _slicedToArray(_getRange, 2),
  44997. lastRange = _getRange2[0],
  44998. nativeRange = _getRange2[1];
  44999. this.lastRange = lastRange;
  45000. if (this.lastRange != null) {
  45001. this.savedRange = this.lastRange;
  45002. }
  45003. if (!(0, _deepEqual2.default)(oldRange, this.lastRange)) {
  45004. var _emitter;
  45005. if (!this.composing && nativeRange != null && nativeRange.native.collapsed && nativeRange.start.node !== this.cursor.textNode) {
  45006. this.cursor.restore();
  45007. }
  45008. var args = [_emitter4.default.events.SELECTION_CHANGE, (0, _clone2.default)(this.lastRange), (0, _clone2.default)(oldRange), source];
  45009. (_emitter = this.emitter).emit.apply(_emitter, [_emitter4.default.events.EDITOR_CHANGE].concat(args));
  45010. if (source !== _emitter4.default.sources.SILENT) {
  45011. var _emitter2;
  45012. (_emitter2 = this.emitter).emit.apply(_emitter2, args);
  45013. }
  45014. }
  45015. }
  45016. }]);
  45017. return Selection;
  45018. }();
  45019. function contains(parent, descendant) {
  45020. try {
  45021. // Firefox inserts inaccessible nodes around video elements
  45022. descendant.parentNode;
  45023. } catch (e) {
  45024. return false;
  45025. }
  45026. // IE11 has bug with Text nodes
  45027. // https://connect.microsoft.com/IE/feedback/details/780874/node-contains-is-incorrect
  45028. if (descendant instanceof Text) {
  45029. descendant = descendant.parentNode;
  45030. }
  45031. return parent.contains(descendant);
  45032. }
  45033. exports.Range = Range;
  45034. exports.default = Selection;
  45035. /***/ }),
  45036. /* 16 */
  45037. /***/ (function(module, exports, __nested_webpack_require_116908__) {
  45038. "use strict";
  45039. Object.defineProperty(exports, "__esModule", {
  45040. value: true
  45041. });
  45042. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  45043. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  45044. var _parchment = __nested_webpack_require_116908__(0);
  45045. var _parchment2 = _interopRequireDefault(_parchment);
  45046. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  45047. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  45048. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  45049. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  45050. var Break = function (_Parchment$Embed) {
  45051. _inherits(Break, _Parchment$Embed);
  45052. function Break() {
  45053. _classCallCheck(this, Break);
  45054. return _possibleConstructorReturn(this, (Break.__proto__ || Object.getPrototypeOf(Break)).apply(this, arguments));
  45055. }
  45056. _createClass(Break, [{
  45057. key: 'insertInto',
  45058. value: function insertInto(parent, ref) {
  45059. if (parent.children.length === 0) {
  45060. _get(Break.prototype.__proto__ || Object.getPrototypeOf(Break.prototype), 'insertInto', this).call(this, parent, ref);
  45061. } else {
  45062. this.remove();
  45063. }
  45064. }
  45065. }, {
  45066. key: 'length',
  45067. value: function length() {
  45068. return 0;
  45069. }
  45070. }, {
  45071. key: 'value',
  45072. value: function value() {
  45073. return '';
  45074. }
  45075. }], [{
  45076. key: 'value',
  45077. value: function value() {
  45078. return undefined;
  45079. }
  45080. }]);
  45081. return Break;
  45082. }(_parchment2.default.Embed);
  45083. Break.blotName = 'break';
  45084. Break.tagName = 'BR';
  45085. exports.default = Break;
  45086. /***/ }),
  45087. /* 17 */
  45088. /***/ (function(module, exports, __nested_webpack_require_120162__) {
  45089. "use strict";
  45090. var __extends = (this && this.__extends) || (function () {
  45091. var extendStatics = Object.setPrototypeOf ||
  45092. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  45093. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  45094. return function (d, b) {
  45095. extendStatics(d, b);
  45096. function __() { this.constructor = d; }
  45097. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  45098. };
  45099. })();
  45100. Object.defineProperty(exports, "__esModule", { value: true });
  45101. var linked_list_1 = __nested_webpack_require_120162__(44);
  45102. var shadow_1 = __nested_webpack_require_120162__(30);
  45103. var Registry = __nested_webpack_require_120162__(1);
  45104. var ContainerBlot = /** @class */ (function (_super) {
  45105. __extends(ContainerBlot, _super);
  45106. function ContainerBlot(domNode) {
  45107. var _this = _super.call(this, domNode) || this;
  45108. _this.build();
  45109. return _this;
  45110. }
  45111. ContainerBlot.prototype.appendChild = function (other) {
  45112. this.insertBefore(other);
  45113. };
  45114. ContainerBlot.prototype.attach = function () {
  45115. _super.prototype.attach.call(this);
  45116. this.children.forEach(function (child) {
  45117. child.attach();
  45118. });
  45119. };
  45120. ContainerBlot.prototype.build = function () {
  45121. var _this = this;
  45122. this.children = new linked_list_1.default();
  45123. // Need to be reversed for if DOM nodes already in order
  45124. [].slice
  45125. .call(this.domNode.childNodes)
  45126. .reverse()
  45127. .forEach(function (node) {
  45128. try {
  45129. var child = makeBlot(node);
  45130. _this.insertBefore(child, _this.children.head || undefined);
  45131. }
  45132. catch (err) {
  45133. if (err instanceof Registry.ParchmentError)
  45134. return;
  45135. else
  45136. throw err;
  45137. }
  45138. });
  45139. };
  45140. ContainerBlot.prototype.deleteAt = function (index, length) {
  45141. if (index === 0 && length === this.length()) {
  45142. return this.remove();
  45143. }
  45144. this.children.forEachAt(index, length, function (child, offset, length) {
  45145. child.deleteAt(offset, length);
  45146. });
  45147. };
  45148. ContainerBlot.prototype.descendant = function (criteria, index) {
  45149. var _a = this.children.find(index), child = _a[0], offset = _a[1];
  45150. if ((criteria.blotName == null && criteria(child)) ||
  45151. (criteria.blotName != null && child instanceof criteria)) {
  45152. return [child, offset];
  45153. }
  45154. else if (child instanceof ContainerBlot) {
  45155. return child.descendant(criteria, offset);
  45156. }
  45157. else {
  45158. return [null, -1];
  45159. }
  45160. };
  45161. ContainerBlot.prototype.descendants = function (criteria, index, length) {
  45162. if (index === void 0) { index = 0; }
  45163. if (length === void 0) { length = Number.MAX_VALUE; }
  45164. var descendants = [];
  45165. var lengthLeft = length;
  45166. this.children.forEachAt(index, length, function (child, index, length) {
  45167. if ((criteria.blotName == null && criteria(child)) ||
  45168. (criteria.blotName != null && child instanceof criteria)) {
  45169. descendants.push(child);
  45170. }
  45171. if (child instanceof ContainerBlot) {
  45172. descendants = descendants.concat(child.descendants(criteria, index, lengthLeft));
  45173. }
  45174. lengthLeft -= length;
  45175. });
  45176. return descendants;
  45177. };
  45178. ContainerBlot.prototype.detach = function () {
  45179. this.children.forEach(function (child) {
  45180. child.detach();
  45181. });
  45182. _super.prototype.detach.call(this);
  45183. };
  45184. ContainerBlot.prototype.formatAt = function (index, length, name, value) {
  45185. this.children.forEachAt(index, length, function (child, offset, length) {
  45186. child.formatAt(offset, length, name, value);
  45187. });
  45188. };
  45189. ContainerBlot.prototype.insertAt = function (index, value, def) {
  45190. var _a = this.children.find(index), child = _a[0], offset = _a[1];
  45191. if (child) {
  45192. child.insertAt(offset, value, def);
  45193. }
  45194. else {
  45195. var blot = def == null ? Registry.create('text', value) : Registry.create(value, def);
  45196. this.appendChild(blot);
  45197. }
  45198. };
  45199. ContainerBlot.prototype.insertBefore = function (childBlot, refBlot) {
  45200. if (this.statics.allowedChildren != null &&
  45201. !this.statics.allowedChildren.some(function (child) {
  45202. return childBlot instanceof child;
  45203. })) {
  45204. throw new Registry.ParchmentError("Cannot insert " + childBlot.statics.blotName + " into " + this.statics.blotName);
  45205. }
  45206. childBlot.insertInto(this, refBlot);
  45207. };
  45208. ContainerBlot.prototype.length = function () {
  45209. return this.children.reduce(function (memo, child) {
  45210. return memo + child.length();
  45211. }, 0);
  45212. };
  45213. ContainerBlot.prototype.moveChildren = function (targetParent, refNode) {
  45214. this.children.forEach(function (child) {
  45215. targetParent.insertBefore(child, refNode);
  45216. });
  45217. };
  45218. ContainerBlot.prototype.optimize = function (context) {
  45219. _super.prototype.optimize.call(this, context);
  45220. if (this.children.length === 0) {
  45221. if (this.statics.defaultChild != null) {
  45222. var child = Registry.create(this.statics.defaultChild);
  45223. this.appendChild(child);
  45224. child.optimize(context);
  45225. }
  45226. else {
  45227. this.remove();
  45228. }
  45229. }
  45230. };
  45231. ContainerBlot.prototype.path = function (index, inclusive) {
  45232. if (inclusive === void 0) { inclusive = false; }
  45233. var _a = this.children.find(index, inclusive), child = _a[0], offset = _a[1];
  45234. var position = [[this, index]];
  45235. if (child instanceof ContainerBlot) {
  45236. return position.concat(child.path(offset, inclusive));
  45237. }
  45238. else if (child != null) {
  45239. position.push([child, offset]);
  45240. }
  45241. return position;
  45242. };
  45243. ContainerBlot.prototype.removeChild = function (child) {
  45244. this.children.remove(child);
  45245. };
  45246. ContainerBlot.prototype.replace = function (target) {
  45247. if (target instanceof ContainerBlot) {
  45248. target.moveChildren(this);
  45249. }
  45250. _super.prototype.replace.call(this, target);
  45251. };
  45252. ContainerBlot.prototype.split = function (index, force) {
  45253. if (force === void 0) { force = false; }
  45254. if (!force) {
  45255. if (index === 0)
  45256. return this;
  45257. if (index === this.length())
  45258. return this.next;
  45259. }
  45260. var after = this.clone();
  45261. this.parent.insertBefore(after, this.next);
  45262. this.children.forEachAt(index, this.length(), function (child, offset, length) {
  45263. child = child.split(offset, force);
  45264. after.appendChild(child);
  45265. });
  45266. return after;
  45267. };
  45268. ContainerBlot.prototype.unwrap = function () {
  45269. this.moveChildren(this.parent, this.next);
  45270. this.remove();
  45271. };
  45272. ContainerBlot.prototype.update = function (mutations, context) {
  45273. var _this = this;
  45274. var addedNodes = [];
  45275. var removedNodes = [];
  45276. mutations.forEach(function (mutation) {
  45277. if (mutation.target === _this.domNode && mutation.type === 'childList') {
  45278. addedNodes.push.apply(addedNodes, mutation.addedNodes);
  45279. removedNodes.push.apply(removedNodes, mutation.removedNodes);
  45280. }
  45281. });
  45282. removedNodes.forEach(function (node) {
  45283. // Check node has actually been removed
  45284. // One exception is Chrome does not immediately remove IFRAMEs
  45285. // from DOM but MutationRecord is correct in its reported removal
  45286. if (node.parentNode != null &&
  45287. // @ts-ignore
  45288. node.tagName !== 'IFRAME' &&
  45289. document.body.compareDocumentPosition(node) & Node.DOCUMENT_POSITION_CONTAINED_BY) {
  45290. return;
  45291. }
  45292. var blot = Registry.find(node);
  45293. if (blot == null)
  45294. return;
  45295. if (blot.domNode.parentNode == null || blot.domNode.parentNode === _this.domNode) {
  45296. blot.detach();
  45297. }
  45298. });
  45299. addedNodes
  45300. .filter(function (node) {
  45301. return node.parentNode == _this.domNode;
  45302. })
  45303. .sort(function (a, b) {
  45304. if (a === b)
  45305. return 0;
  45306. if (a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING) {
  45307. return 1;
  45308. }
  45309. return -1;
  45310. })
  45311. .forEach(function (node) {
  45312. var refBlot = null;
  45313. if (node.nextSibling != null) {
  45314. refBlot = Registry.find(node.nextSibling);
  45315. }
  45316. var blot = makeBlot(node);
  45317. if (blot.next != refBlot || blot.next == null) {
  45318. if (blot.parent != null) {
  45319. blot.parent.removeChild(_this);
  45320. }
  45321. _this.insertBefore(blot, refBlot || undefined);
  45322. }
  45323. });
  45324. };
  45325. return ContainerBlot;
  45326. }(shadow_1.default));
  45327. function makeBlot(node) {
  45328. var blot = Registry.find(node);
  45329. if (blot == null) {
  45330. try {
  45331. blot = Registry.create(node);
  45332. }
  45333. catch (e) {
  45334. blot = Registry.create(Registry.Scope.INLINE);
  45335. [].slice.call(node.childNodes).forEach(function (child) {
  45336. // @ts-ignore
  45337. blot.domNode.appendChild(child);
  45338. });
  45339. if (node.parentNode) {
  45340. node.parentNode.replaceChild(blot.domNode, node);
  45341. }
  45342. blot.attach();
  45343. }
  45344. }
  45345. return blot;
  45346. }
  45347. exports.default = ContainerBlot;
  45348. /***/ }),
  45349. /* 18 */
  45350. /***/ (function(module, exports, __nested_webpack_require_130088__) {
  45351. "use strict";
  45352. var __extends = (this && this.__extends) || (function () {
  45353. var extendStatics = Object.setPrototypeOf ||
  45354. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  45355. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  45356. return function (d, b) {
  45357. extendStatics(d, b);
  45358. function __() { this.constructor = d; }
  45359. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  45360. };
  45361. })();
  45362. Object.defineProperty(exports, "__esModule", { value: true });
  45363. var attributor_1 = __nested_webpack_require_130088__(12);
  45364. var store_1 = __nested_webpack_require_130088__(31);
  45365. var container_1 = __nested_webpack_require_130088__(17);
  45366. var Registry = __nested_webpack_require_130088__(1);
  45367. var FormatBlot = /** @class */ (function (_super) {
  45368. __extends(FormatBlot, _super);
  45369. function FormatBlot(domNode) {
  45370. var _this = _super.call(this, domNode) || this;
  45371. _this.attributes = new store_1.default(_this.domNode);
  45372. return _this;
  45373. }
  45374. FormatBlot.formats = function (domNode) {
  45375. if (typeof this.tagName === 'string') {
  45376. return true;
  45377. }
  45378. else if (Array.isArray(this.tagName)) {
  45379. return domNode.tagName.toLowerCase();
  45380. }
  45381. return undefined;
  45382. };
  45383. FormatBlot.prototype.format = function (name, value) {
  45384. var format = Registry.query(name);
  45385. if (format instanceof attributor_1.default) {
  45386. this.attributes.attribute(format, value);
  45387. }
  45388. else if (value) {
  45389. if (format != null && (name !== this.statics.blotName || this.formats()[name] !== value)) {
  45390. this.replaceWith(name, value);
  45391. }
  45392. }
  45393. };
  45394. FormatBlot.prototype.formats = function () {
  45395. var formats = this.attributes.values();
  45396. var format = this.statics.formats(this.domNode);
  45397. if (format != null) {
  45398. formats[this.statics.blotName] = format;
  45399. }
  45400. return formats;
  45401. };
  45402. FormatBlot.prototype.replaceWith = function (name, value) {
  45403. var replacement = _super.prototype.replaceWith.call(this, name, value);
  45404. this.attributes.copy(replacement);
  45405. return replacement;
  45406. };
  45407. FormatBlot.prototype.update = function (mutations, context) {
  45408. var _this = this;
  45409. _super.prototype.update.call(this, mutations, context);
  45410. if (mutations.some(function (mutation) {
  45411. return mutation.target === _this.domNode && mutation.type === 'attributes';
  45412. })) {
  45413. this.attributes.build();
  45414. }
  45415. };
  45416. FormatBlot.prototype.wrap = function (name, value) {
  45417. var wrapper = _super.prototype.wrap.call(this, name, value);
  45418. if (wrapper instanceof FormatBlot && wrapper.statics.scope === this.statics.scope) {
  45419. this.attributes.move(wrapper);
  45420. }
  45421. return wrapper;
  45422. };
  45423. return FormatBlot;
  45424. }(container_1.default));
  45425. exports.default = FormatBlot;
  45426. /***/ }),
  45427. /* 19 */
  45428. /***/ (function(module, exports, __nested_webpack_require_133111__) {
  45429. "use strict";
  45430. var __extends = (this && this.__extends) || (function () {
  45431. var extendStatics = Object.setPrototypeOf ||
  45432. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  45433. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  45434. return function (d, b) {
  45435. extendStatics(d, b);
  45436. function __() { this.constructor = d; }
  45437. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  45438. };
  45439. })();
  45440. Object.defineProperty(exports, "__esModule", { value: true });
  45441. var shadow_1 = __nested_webpack_require_133111__(30);
  45442. var Registry = __nested_webpack_require_133111__(1);
  45443. var LeafBlot = /** @class */ (function (_super) {
  45444. __extends(LeafBlot, _super);
  45445. function LeafBlot() {
  45446. return _super !== null && _super.apply(this, arguments) || this;
  45447. }
  45448. LeafBlot.value = function (domNode) {
  45449. return true;
  45450. };
  45451. LeafBlot.prototype.index = function (node, offset) {
  45452. if (this.domNode === node ||
  45453. this.domNode.compareDocumentPosition(node) & Node.DOCUMENT_POSITION_CONTAINED_BY) {
  45454. return Math.min(offset, 1);
  45455. }
  45456. return -1;
  45457. };
  45458. LeafBlot.prototype.position = function (index, inclusive) {
  45459. var offset = [].indexOf.call(this.parent.domNode.childNodes, this.domNode);
  45460. if (index > 0)
  45461. offset += 1;
  45462. return [this.parent.domNode, offset];
  45463. };
  45464. LeafBlot.prototype.value = function () {
  45465. var _a;
  45466. return _a = {}, _a[this.statics.blotName] = this.statics.value(this.domNode) || true, _a;
  45467. };
  45468. LeafBlot.scope = Registry.Scope.INLINE_BLOT;
  45469. return LeafBlot;
  45470. }(shadow_1.default));
  45471. exports.default = LeafBlot;
  45472. /***/ }),
  45473. /* 20 */
  45474. /***/ (function(module, exports, __nested_webpack_require_134898__) {
  45475. var equal = __nested_webpack_require_134898__(11);
  45476. var extend = __nested_webpack_require_134898__(3);
  45477. var lib = {
  45478. attributes: {
  45479. compose: function (a, b, keepNull) {
  45480. if (typeof a !== 'object') a = {};
  45481. if (typeof b !== 'object') b = {};
  45482. var attributes = extend(true, {}, b);
  45483. if (!keepNull) {
  45484. attributes = Object.keys(attributes).reduce(function (copy, key) {
  45485. if (attributes[key] != null) {
  45486. copy[key] = attributes[key];
  45487. }
  45488. return copy;
  45489. }, {});
  45490. }
  45491. for (var key in a) {
  45492. if (a[key] !== undefined && b[key] === undefined) {
  45493. attributes[key] = a[key];
  45494. }
  45495. }
  45496. return Object.keys(attributes).length > 0 ? attributes : undefined;
  45497. },
  45498. diff: function(a, b) {
  45499. if (typeof a !== 'object') a = {};
  45500. if (typeof b !== 'object') b = {};
  45501. var attributes = Object.keys(a).concat(Object.keys(b)).reduce(function (attributes, key) {
  45502. if (!equal(a[key], b[key])) {
  45503. attributes[key] = b[key] === undefined ? null : b[key];
  45504. }
  45505. return attributes;
  45506. }, {});
  45507. return Object.keys(attributes).length > 0 ? attributes : undefined;
  45508. },
  45509. transform: function (a, b, priority) {
  45510. if (typeof a !== 'object') return b;
  45511. if (typeof b !== 'object') return undefined;
  45512. if (!priority) return b; // b simply overwrites us without priority
  45513. var attributes = Object.keys(b).reduce(function (attributes, key) {
  45514. if (a[key] === undefined) attributes[key] = b[key]; // null is a valid value
  45515. return attributes;
  45516. }, {});
  45517. return Object.keys(attributes).length > 0 ? attributes : undefined;
  45518. }
  45519. },
  45520. iterator: function (ops) {
  45521. return new Iterator(ops);
  45522. },
  45523. length: function (op) {
  45524. if (typeof op['delete'] === 'number') {
  45525. return op['delete'];
  45526. } else if (typeof op.retain === 'number') {
  45527. return op.retain;
  45528. } else {
  45529. return typeof op.insert === 'string' ? op.insert.length : 1;
  45530. }
  45531. }
  45532. };
  45533. function Iterator(ops) {
  45534. this.ops = ops;
  45535. this.index = 0;
  45536. this.offset = 0;
  45537. };
  45538. Iterator.prototype.hasNext = function () {
  45539. return this.peekLength() < Infinity;
  45540. };
  45541. Iterator.prototype.next = function (length) {
  45542. if (!length) length = Infinity;
  45543. var nextOp = this.ops[this.index];
  45544. if (nextOp) {
  45545. var offset = this.offset;
  45546. var opLength = lib.length(nextOp)
  45547. if (length >= opLength - offset) {
  45548. length = opLength - offset;
  45549. this.index += 1;
  45550. this.offset = 0;
  45551. } else {
  45552. this.offset += length;
  45553. }
  45554. if (typeof nextOp['delete'] === 'number') {
  45555. return { 'delete': length };
  45556. } else {
  45557. var retOp = {};
  45558. if (nextOp.attributes) {
  45559. retOp.attributes = nextOp.attributes;
  45560. }
  45561. if (typeof nextOp.retain === 'number') {
  45562. retOp.retain = length;
  45563. } else if (typeof nextOp.insert === 'string') {
  45564. retOp.insert = nextOp.insert.substr(offset, length);
  45565. } else {
  45566. // offset should === 0, length should === 1
  45567. retOp.insert = nextOp.insert;
  45568. }
  45569. return retOp;
  45570. }
  45571. } else {
  45572. return { retain: Infinity };
  45573. }
  45574. };
  45575. Iterator.prototype.peek = function () {
  45576. return this.ops[this.index];
  45577. };
  45578. Iterator.prototype.peekLength = function () {
  45579. if (this.ops[this.index]) {
  45580. // Should never return 0 if our index is being managed correctly
  45581. return lib.length(this.ops[this.index]) - this.offset;
  45582. } else {
  45583. return Infinity;
  45584. }
  45585. };
  45586. Iterator.prototype.peekType = function () {
  45587. if (this.ops[this.index]) {
  45588. if (typeof this.ops[this.index]['delete'] === 'number') {
  45589. return 'delete';
  45590. } else if (typeof this.ops[this.index].retain === 'number') {
  45591. return 'retain';
  45592. } else {
  45593. return 'insert';
  45594. }
  45595. }
  45596. return 'retain';
  45597. };
  45598. Iterator.prototype.rest = function () {
  45599. if (!this.hasNext()) {
  45600. return [];
  45601. } else if (this.offset === 0) {
  45602. return this.ops.slice(this.index);
  45603. } else {
  45604. var offset = this.offset;
  45605. var index = this.index;
  45606. var next = this.next();
  45607. var rest = this.ops.slice(this.index);
  45608. this.offset = offset;
  45609. this.index = index;
  45610. return [next].concat(rest);
  45611. }
  45612. };
  45613. module.exports = lib;
  45614. /***/ }),
  45615. /* 21 */
  45616. /***/ (function(module, exports) {
  45617. var clone = (function() {
  45618. 'use strict';
  45619. function _instanceof(obj, type) {
  45620. return type != null && obj instanceof type;
  45621. }
  45622. var nativeMap;
  45623. try {
  45624. nativeMap = Map;
  45625. } catch(_) {
  45626. // maybe a reference error because no `Map`. Give it a dummy value that no
  45627. // value will ever be an instanceof.
  45628. nativeMap = function() {};
  45629. }
  45630. var nativeSet;
  45631. try {
  45632. nativeSet = Set;
  45633. } catch(_) {
  45634. nativeSet = function() {};
  45635. }
  45636. var nativePromise;
  45637. try {
  45638. nativePromise = Promise;
  45639. } catch(_) {
  45640. nativePromise = function() {};
  45641. }
  45642. /**
  45643. * Clones (copies) an Object using deep copying.
  45644. *
  45645. * This function supports circular references by default, but if you are certain
  45646. * there are no circular references in your object, you can save some CPU time
  45647. * by calling clone(obj, false).
  45648. *
  45649. * Caution: if `circular` is false and `parent` contains circular references,
  45650. * your program may enter an infinite loop and crash.
  45651. *
  45652. * @param `parent` - the object to be cloned
  45653. * @param `circular` - set to true if the object to be cloned may contain
  45654. * circular references. (optional - true by default)
  45655. * @param `depth` - set to a number if the object is only to be cloned to
  45656. * a particular depth. (optional - defaults to Infinity)
  45657. * @param `prototype` - sets the prototype to be used when cloning an object.
  45658. * (optional - defaults to parent prototype).
  45659. * @param `includeNonEnumerable` - set to true if the non-enumerable properties
  45660. * should be cloned as well. Non-enumerable properties on the prototype
  45661. * chain will be ignored. (optional - false by default)
  45662. */
  45663. function clone(parent, circular, depth, prototype, includeNonEnumerable) {
  45664. if (typeof circular === 'object') {
  45665. depth = circular.depth;
  45666. prototype = circular.prototype;
  45667. includeNonEnumerable = circular.includeNonEnumerable;
  45668. circular = circular.circular;
  45669. }
  45670. // maintain two arrays for circular references, where corresponding parents
  45671. // and children have the same index
  45672. var allParents = [];
  45673. var allChildren = [];
  45674. var useBuffer = typeof Buffer != 'undefined';
  45675. if (typeof circular == 'undefined')
  45676. circular = true;
  45677. if (typeof depth == 'undefined')
  45678. depth = Infinity;
  45679. // recurse this function so we don't reset allParents and allChildren
  45680. function _clone(parent, depth) {
  45681. // cloning null always returns null
  45682. if (parent === null)
  45683. return null;
  45684. if (depth === 0)
  45685. return parent;
  45686. var child;
  45687. var proto;
  45688. if (typeof parent != 'object') {
  45689. return parent;
  45690. }
  45691. if (_instanceof(parent, nativeMap)) {
  45692. child = new nativeMap();
  45693. } else if (_instanceof(parent, nativeSet)) {
  45694. child = new nativeSet();
  45695. } else if (_instanceof(parent, nativePromise)) {
  45696. child = new nativePromise(function (resolve, reject) {
  45697. parent.then(function(value) {
  45698. resolve(_clone(value, depth - 1));
  45699. }, function(err) {
  45700. reject(_clone(err, depth - 1));
  45701. });
  45702. });
  45703. } else if (clone.__isArray(parent)) {
  45704. child = [];
  45705. } else if (clone.__isRegExp(parent)) {
  45706. child = new RegExp(parent.source, __getRegExpFlags(parent));
  45707. if (parent.lastIndex) child.lastIndex = parent.lastIndex;
  45708. } else if (clone.__isDate(parent)) {
  45709. child = new Date(parent.getTime());
  45710. } else if (useBuffer && Buffer.isBuffer(parent)) {
  45711. if (Buffer.allocUnsafe) {
  45712. // Node.js >= 4.5.0
  45713. child = Buffer.allocUnsafe(parent.length);
  45714. } else {
  45715. // Older Node.js versions
  45716. child = new Buffer(parent.length);
  45717. }
  45718. parent.copy(child);
  45719. return child;
  45720. } else if (_instanceof(parent, Error)) {
  45721. child = Object.create(parent);
  45722. } else {
  45723. if (typeof prototype == 'undefined') {
  45724. proto = Object.getPrototypeOf(parent);
  45725. child = Object.create(proto);
  45726. }
  45727. else {
  45728. child = Object.create(prototype);
  45729. proto = prototype;
  45730. }
  45731. }
  45732. if (circular) {
  45733. var index = allParents.indexOf(parent);
  45734. if (index != -1) {
  45735. return allChildren[index];
  45736. }
  45737. allParents.push(parent);
  45738. allChildren.push(child);
  45739. }
  45740. if (_instanceof(parent, nativeMap)) {
  45741. parent.forEach(function(value, key) {
  45742. var keyChild = _clone(key, depth - 1);
  45743. var valueChild = _clone(value, depth - 1);
  45744. child.set(keyChild, valueChild);
  45745. });
  45746. }
  45747. if (_instanceof(parent, nativeSet)) {
  45748. parent.forEach(function(value) {
  45749. var entryChild = _clone(value, depth - 1);
  45750. child.add(entryChild);
  45751. });
  45752. }
  45753. for (var i in parent) {
  45754. var attrs;
  45755. if (proto) {
  45756. attrs = Object.getOwnPropertyDescriptor(proto, i);
  45757. }
  45758. if (attrs && attrs.set == null) {
  45759. continue;
  45760. }
  45761. child[i] = _clone(parent[i], depth - 1);
  45762. }
  45763. if (Object.getOwnPropertySymbols) {
  45764. var symbols = Object.getOwnPropertySymbols(parent);
  45765. for (var i = 0; i < symbols.length; i++) {
  45766. // Don't need to worry about cloning a symbol because it is a primitive,
  45767. // like a number or string.
  45768. var symbol = symbols[i];
  45769. var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);
  45770. if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
  45771. continue;
  45772. }
  45773. child[symbol] = _clone(parent[symbol], depth - 1);
  45774. if (!descriptor.enumerable) {
  45775. Object.defineProperty(child, symbol, {
  45776. enumerable: false
  45777. });
  45778. }
  45779. }
  45780. }
  45781. if (includeNonEnumerable) {
  45782. var allPropertyNames = Object.getOwnPropertyNames(parent);
  45783. for (var i = 0; i < allPropertyNames.length; i++) {
  45784. var propertyName = allPropertyNames[i];
  45785. var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);
  45786. if (descriptor && descriptor.enumerable) {
  45787. continue;
  45788. }
  45789. child[propertyName] = _clone(parent[propertyName], depth - 1);
  45790. Object.defineProperty(child, propertyName, {
  45791. enumerable: false
  45792. });
  45793. }
  45794. }
  45795. return child;
  45796. }
  45797. return _clone(parent, depth);
  45798. }
  45799. /**
  45800. * Simple flat clone using prototype, accepts only objects, usefull for property
  45801. * override on FLAT configuration object (no nested props).
  45802. *
  45803. * USE WITH CAUTION! This may not behave as you wish if you do not know how this
  45804. * works.
  45805. */
  45806. clone.clonePrototype = function clonePrototype(parent) {
  45807. if (parent === null)
  45808. return null;
  45809. var c = function () {};
  45810. c.prototype = parent;
  45811. return new c();
  45812. };
  45813. // private utility functions
  45814. function __objToStr(o) {
  45815. return Object.prototype.toString.call(o);
  45816. }
  45817. clone.__objToStr = __objToStr;
  45818. function __isDate(o) {
  45819. return typeof o === 'object' && __objToStr(o) === '[object Date]';
  45820. }
  45821. clone.__isDate = __isDate;
  45822. function __isArray(o) {
  45823. return typeof o === 'object' && __objToStr(o) === '[object Array]';
  45824. }
  45825. clone.__isArray = __isArray;
  45826. function __isRegExp(o) {
  45827. return typeof o === 'object' && __objToStr(o) === '[object RegExp]';
  45828. }
  45829. clone.__isRegExp = __isRegExp;
  45830. function __getRegExpFlags(re) {
  45831. var flags = '';
  45832. if (re.global) flags += 'g';
  45833. if (re.ignoreCase) flags += 'i';
  45834. if (re.multiline) flags += 'm';
  45835. return flags;
  45836. }
  45837. clone.__getRegExpFlags = __getRegExpFlags;
  45838. return clone;
  45839. })();
  45840. if (typeof module === 'object' && module.exports) {
  45841. module.exports = clone;
  45842. }
  45843. /***/ }),
  45844. /* 22 */
  45845. /***/ (function(module, exports, __nested_webpack_require_146497__) {
  45846. "use strict";
  45847. Object.defineProperty(exports, "__esModule", {
  45848. value: true
  45849. });
  45850. var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
  45851. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  45852. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  45853. var _parchment = __nested_webpack_require_146497__(0);
  45854. var _parchment2 = _interopRequireDefault(_parchment);
  45855. var _emitter = __nested_webpack_require_146497__(8);
  45856. var _emitter2 = _interopRequireDefault(_emitter);
  45857. var _block = __nested_webpack_require_146497__(4);
  45858. var _block2 = _interopRequireDefault(_block);
  45859. var _break = __nested_webpack_require_146497__(16);
  45860. var _break2 = _interopRequireDefault(_break);
  45861. var _code = __nested_webpack_require_146497__(13);
  45862. var _code2 = _interopRequireDefault(_code);
  45863. var _container = __nested_webpack_require_146497__(25);
  45864. var _container2 = _interopRequireDefault(_container);
  45865. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  45866. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  45867. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  45868. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  45869. function isLine(blot) {
  45870. return blot instanceof _block2.default || blot instanceof _block.BlockEmbed;
  45871. }
  45872. var Scroll = function (_Parchment$Scroll) {
  45873. _inherits(Scroll, _Parchment$Scroll);
  45874. function Scroll(domNode, config) {
  45875. _classCallCheck(this, Scroll);
  45876. var _this = _possibleConstructorReturn(this, (Scroll.__proto__ || Object.getPrototypeOf(Scroll)).call(this, domNode));
  45877. _this.emitter = config.emitter;
  45878. if (Array.isArray(config.whitelist)) {
  45879. _this.whitelist = config.whitelist.reduce(function (whitelist, format) {
  45880. whitelist[format] = true;
  45881. return whitelist;
  45882. }, {});
  45883. }
  45884. // Some reason fixes composition issues with character languages in Windows/Chrome, Safari
  45885. _this.domNode.addEventListener('DOMNodeInserted', function () {});
  45886. _this.optimize();
  45887. _this.enable();
  45888. return _this;
  45889. }
  45890. _createClass(Scroll, [{
  45891. key: 'batchStart',
  45892. value: function batchStart() {
  45893. this.batch = true;
  45894. }
  45895. }, {
  45896. key: 'batchEnd',
  45897. value: function batchEnd() {
  45898. this.batch = false;
  45899. this.optimize();
  45900. }
  45901. }, {
  45902. key: 'deleteAt',
  45903. value: function deleteAt(index, length) {
  45904. var _line = this.line(index),
  45905. _line2 = _slicedToArray(_line, 2),
  45906. first = _line2[0],
  45907. offset = _line2[1];
  45908. var _line3 = this.line(index + length),
  45909. _line4 = _slicedToArray(_line3, 1),
  45910. last = _line4[0];
  45911. _get(Scroll.prototype.__proto__ || Object.getPrototypeOf(Scroll.prototype), 'deleteAt', this).call(this, index, length);
  45912. if (last != null && first !== last && offset > 0) {
  45913. if (first instanceof _block.BlockEmbed || last instanceof _block.BlockEmbed) {
  45914. this.optimize();
  45915. return;
  45916. }
  45917. if (first instanceof _code2.default) {
  45918. var newlineIndex = first.newlineIndex(first.length(), true);
  45919. if (newlineIndex > -1) {
  45920. first = first.split(newlineIndex + 1);
  45921. if (first === last) {
  45922. this.optimize();
  45923. return;
  45924. }
  45925. }
  45926. } else if (last instanceof _code2.default) {
  45927. var _newlineIndex = last.newlineIndex(0);
  45928. if (_newlineIndex > -1) {
  45929. last.split(_newlineIndex + 1);
  45930. }
  45931. }
  45932. var ref = last.children.head instanceof _break2.default ? null : last.children.head;
  45933. first.moveChildren(last, ref);
  45934. first.remove();
  45935. }
  45936. this.optimize();
  45937. }
  45938. }, {
  45939. key: 'enable',
  45940. value: function enable() {
  45941. var enabled = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  45942. this.domNode.setAttribute('contenteditable', enabled);
  45943. }
  45944. }, {
  45945. key: 'formatAt',
  45946. value: function formatAt(index, length, format, value) {
  45947. if (this.whitelist != null && !this.whitelist[format]) return;
  45948. _get(Scroll.prototype.__proto__ || Object.getPrototypeOf(Scroll.prototype), 'formatAt', this).call(this, index, length, format, value);
  45949. this.optimize();
  45950. }
  45951. }, {
  45952. key: 'insertAt',
  45953. value: function insertAt(index, value, def) {
  45954. if (def != null && this.whitelist != null && !this.whitelist[value]) return;
  45955. if (index >= this.length()) {
  45956. if (def == null || _parchment2.default.query(value, _parchment2.default.Scope.BLOCK) == null) {
  45957. var blot = _parchment2.default.create(this.statics.defaultChild);
  45958. this.appendChild(blot);
  45959. if (def == null && value.endsWith('\n')) {
  45960. value = value.slice(0, -1);
  45961. }
  45962. blot.insertAt(0, value, def);
  45963. } else {
  45964. var embed = _parchment2.default.create(value, def);
  45965. this.appendChild(embed);
  45966. }
  45967. } else {
  45968. _get(Scroll.prototype.__proto__ || Object.getPrototypeOf(Scroll.prototype), 'insertAt', this).call(this, index, value, def);
  45969. }
  45970. this.optimize();
  45971. }
  45972. }, {
  45973. key: 'insertBefore',
  45974. value: function insertBefore(blot, ref) {
  45975. if (blot.statics.scope === _parchment2.default.Scope.INLINE_BLOT) {
  45976. var wrapper = _parchment2.default.create(this.statics.defaultChild);
  45977. wrapper.appendChild(blot);
  45978. blot = wrapper;
  45979. }
  45980. _get(Scroll.prototype.__proto__ || Object.getPrototypeOf(Scroll.prototype), 'insertBefore', this).call(this, blot, ref);
  45981. }
  45982. }, {
  45983. key: 'leaf',
  45984. value: function leaf(index) {
  45985. return this.path(index).pop() || [null, -1];
  45986. }
  45987. }, {
  45988. key: 'line',
  45989. value: function line(index) {
  45990. if (index === this.length()) {
  45991. return this.line(index - 1);
  45992. }
  45993. return this.descendant(isLine, index);
  45994. }
  45995. }, {
  45996. key: 'lines',
  45997. value: function lines() {
  45998. var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  45999. var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Number.MAX_VALUE;
  46000. var getLines = function getLines(blot, index, length) {
  46001. var lines = [],
  46002. lengthLeft = length;
  46003. blot.children.forEachAt(index, length, function (child, index, length) {
  46004. if (isLine(child)) {
  46005. lines.push(child);
  46006. } else if (child instanceof _parchment2.default.Container) {
  46007. lines = lines.concat(getLines(child, index, lengthLeft));
  46008. }
  46009. lengthLeft -= length;
  46010. });
  46011. return lines;
  46012. };
  46013. return getLines(this, index, length);
  46014. }
  46015. }, {
  46016. key: 'optimize',
  46017. value: function optimize() {
  46018. var mutations = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  46019. var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  46020. if (this.batch === true) return;
  46021. _get(Scroll.prototype.__proto__ || Object.getPrototypeOf(Scroll.prototype), 'optimize', this).call(this, mutations, context);
  46022. if (mutations.length > 0) {
  46023. this.emitter.emit(_emitter2.default.events.SCROLL_OPTIMIZE, mutations, context);
  46024. }
  46025. }
  46026. }, {
  46027. key: 'path',
  46028. value: function path(index) {
  46029. return _get(Scroll.prototype.__proto__ || Object.getPrototypeOf(Scroll.prototype), 'path', this).call(this, index).slice(1); // Exclude self
  46030. }
  46031. }, {
  46032. key: 'update',
  46033. value: function update(mutations) {
  46034. if (this.batch === true) return;
  46035. var source = _emitter2.default.sources.USER;
  46036. if (typeof mutations === 'string') {
  46037. source = mutations;
  46038. }
  46039. if (!Array.isArray(mutations)) {
  46040. mutations = this.observer.takeRecords();
  46041. }
  46042. if (mutations.length > 0) {
  46043. this.emitter.emit(_emitter2.default.events.SCROLL_BEFORE_UPDATE, source, mutations);
  46044. }
  46045. _get(Scroll.prototype.__proto__ || Object.getPrototypeOf(Scroll.prototype), 'update', this).call(this, mutations.concat([])); // pass copy
  46046. if (mutations.length > 0) {
  46047. this.emitter.emit(_emitter2.default.events.SCROLL_UPDATE, source, mutations);
  46048. }
  46049. }
  46050. }]);
  46051. return Scroll;
  46052. }(_parchment2.default.Scroll);
  46053. Scroll.blotName = 'scroll';
  46054. Scroll.className = 'ql-editor';
  46055. Scroll.tagName = 'DIV';
  46056. Scroll.defaultChild = 'block';
  46057. Scroll.allowedChildren = [_block2.default, _block.BlockEmbed, _container2.default];
  46058. exports.default = Scroll;
  46059. /***/ }),
  46060. /* 23 */
  46061. /***/ (function(module, exports, __nested_webpack_require_157111__) {
  46062. "use strict";
  46063. Object.defineProperty(exports, "__esModule", {
  46064. value: true
  46065. });
  46066. exports.SHORTKEY = exports.default = undefined;
  46067. var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
  46068. var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
  46069. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  46070. var _clone = __nested_webpack_require_157111__(21);
  46071. var _clone2 = _interopRequireDefault(_clone);
  46072. var _deepEqual = __nested_webpack_require_157111__(11);
  46073. var _deepEqual2 = _interopRequireDefault(_deepEqual);
  46074. var _extend = __nested_webpack_require_157111__(3);
  46075. var _extend2 = _interopRequireDefault(_extend);
  46076. var _quillDelta = __nested_webpack_require_157111__(2);
  46077. var _quillDelta2 = _interopRequireDefault(_quillDelta);
  46078. var _op = __nested_webpack_require_157111__(20);
  46079. var _op2 = _interopRequireDefault(_op);
  46080. var _parchment = __nested_webpack_require_157111__(0);
  46081. var _parchment2 = _interopRequireDefault(_parchment);
  46082. var _quill = __nested_webpack_require_157111__(5);
  46083. var _quill2 = _interopRequireDefault(_quill);
  46084. var _logger = __nested_webpack_require_157111__(10);
  46085. var _logger2 = _interopRequireDefault(_logger);
  46086. var _module = __nested_webpack_require_157111__(9);
  46087. var _module2 = _interopRequireDefault(_module);
  46088. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  46089. function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  46090. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  46091. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  46092. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  46093. var debug = (0, _logger2.default)('quill:keyboard');
  46094. var SHORTKEY = /Mac/i.test(navigator.platform) ? 'metaKey' : 'ctrlKey';
  46095. var Keyboard = function (_Module) {
  46096. _inherits(Keyboard, _Module);
  46097. _createClass(Keyboard, null, [{
  46098. key: 'match',
  46099. value: function match(evt, binding) {
  46100. binding = normalize(binding);
  46101. if (['altKey', 'ctrlKey', 'metaKey', 'shiftKey'].some(function (key) {
  46102. return !!binding[key] !== evt[key] && binding[key] !== null;
  46103. })) {
  46104. return false;
  46105. }
  46106. return binding.key === (evt.which || evt.keyCode);
  46107. }
  46108. }]);
  46109. function Keyboard(quill, options) {
  46110. _classCallCheck(this, Keyboard);
  46111. var _this = _possibleConstructorReturn(this, (Keyboard.__proto__ || Object.getPrototypeOf(Keyboard)).call(this, quill, options));
  46112. _this.bindings = {};
  46113. Object.keys(_this.options.bindings).forEach(function (name) {
  46114. if (name === 'list autofill' && quill.scroll.whitelist != null && !quill.scroll.whitelist['list']) {
  46115. return;
  46116. }
  46117. if (_this.options.bindings[name]) {
  46118. _this.addBinding(_this.options.bindings[name]);
  46119. }
  46120. });
  46121. _this.addBinding({ key: Keyboard.keys.ENTER, shiftKey: null }, handleEnter);
  46122. _this.addBinding({ key: Keyboard.keys.ENTER, metaKey: null, ctrlKey: null, altKey: null }, function () {});
  46123. if (/Firefox/i.test(navigator.userAgent)) {
  46124. // Need to handle delete and backspace for Firefox in the general case #1171
  46125. _this.addBinding({ key: Keyboard.keys.BACKSPACE }, { collapsed: true }, handleBackspace);
  46126. _this.addBinding({ key: Keyboard.keys.DELETE }, { collapsed: true }, handleDelete);
  46127. } else {
  46128. _this.addBinding({ key: Keyboard.keys.BACKSPACE }, { collapsed: true, prefix: /^.?$/ }, handleBackspace);
  46129. _this.addBinding({ key: Keyboard.keys.DELETE }, { collapsed: true, suffix: /^.?$/ }, handleDelete);
  46130. }
  46131. _this.addBinding({ key: Keyboard.keys.BACKSPACE }, { collapsed: false }, handleDeleteRange);
  46132. _this.addBinding({ key: Keyboard.keys.DELETE }, { collapsed: false }, handleDeleteRange);
  46133. _this.addBinding({ key: Keyboard.keys.BACKSPACE, altKey: null, ctrlKey: null, metaKey: null, shiftKey: null }, { collapsed: true, offset: 0 }, handleBackspace);
  46134. _this.listen();
  46135. return _this;
  46136. }
  46137. _createClass(Keyboard, [{
  46138. key: 'addBinding',
  46139. value: function addBinding(key) {
  46140. var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  46141. var handler = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  46142. var binding = normalize(key);
  46143. if (binding == null || binding.key == null) {
  46144. return debug.warn('Attempted to add invalid keyboard binding', binding);
  46145. }
  46146. if (typeof context === 'function') {
  46147. context = { handler: context };
  46148. }
  46149. if (typeof handler === 'function') {
  46150. handler = { handler: handler };
  46151. }
  46152. binding = (0, _extend2.default)(binding, context, handler);
  46153. this.bindings[binding.key] = this.bindings[binding.key] || [];
  46154. this.bindings[binding.key].push(binding);
  46155. }
  46156. }, {
  46157. key: 'listen',
  46158. value: function listen() {
  46159. var _this2 = this;
  46160. this.quill.root.addEventListener('keydown', function (evt) {
  46161. if (evt.defaultPrevented) return;
  46162. var which = evt.which || evt.keyCode;
  46163. var bindings = (_this2.bindings[which] || []).filter(function (binding) {
  46164. return Keyboard.match(evt, binding);
  46165. });
  46166. if (bindings.length === 0) return;
  46167. var range = _this2.quill.getSelection();
  46168. if (range == null || !_this2.quill.hasFocus()) return;
  46169. var _quill$getLine = _this2.quill.getLine(range.index),
  46170. _quill$getLine2 = _slicedToArray(_quill$getLine, 2),
  46171. line = _quill$getLine2[0],
  46172. offset = _quill$getLine2[1];
  46173. var _quill$getLeaf = _this2.quill.getLeaf(range.index),
  46174. _quill$getLeaf2 = _slicedToArray(_quill$getLeaf, 2),
  46175. leafStart = _quill$getLeaf2[0],
  46176. offsetStart = _quill$getLeaf2[1];
  46177. var _ref = range.length === 0 ? [leafStart, offsetStart] : _this2.quill.getLeaf(range.index + range.length),
  46178. _ref2 = _slicedToArray(_ref, 2),
  46179. leafEnd = _ref2[0],
  46180. offsetEnd = _ref2[1];
  46181. var prefixText = leafStart instanceof _parchment2.default.Text ? leafStart.value().slice(0, offsetStart) : '';
  46182. var suffixText = leafEnd instanceof _parchment2.default.Text ? leafEnd.value().slice(offsetEnd) : '';
  46183. var curContext = {
  46184. collapsed: range.length === 0,
  46185. empty: range.length === 0 && line.length() <= 1,
  46186. format: _this2.quill.getFormat(range),
  46187. offset: offset,
  46188. prefix: prefixText,
  46189. suffix: suffixText
  46190. };
  46191. var prevented = bindings.some(function (binding) {
  46192. if (binding.collapsed != null && binding.collapsed !== curContext.collapsed) return false;
  46193. if (binding.empty != null && binding.empty !== curContext.empty) return false;
  46194. if (binding.offset != null && binding.offset !== curContext.offset) return false;
  46195. if (Array.isArray(binding.format)) {
  46196. // any format is present
  46197. if (binding.format.every(function (name) {
  46198. return curContext.format[name] == null;
  46199. })) {
  46200. return false;
  46201. }
  46202. } else if (_typeof(binding.format) === 'object') {
  46203. // all formats must match
  46204. if (!Object.keys(binding.format).every(function (name) {
  46205. if (binding.format[name] === true) return curContext.format[name] != null;
  46206. if (binding.format[name] === false) return curContext.format[name] == null;
  46207. return (0, _deepEqual2.default)(binding.format[name], curContext.format[name]);
  46208. })) {
  46209. return false;
  46210. }
  46211. }
  46212. if (binding.prefix != null && !binding.prefix.test(curContext.prefix)) return false;
  46213. if (binding.suffix != null && !binding.suffix.test(curContext.suffix)) return false;
  46214. return binding.handler.call(_this2, range, curContext) !== true;
  46215. });
  46216. if (prevented) {
  46217. evt.preventDefault();
  46218. }
  46219. });
  46220. }
  46221. }]);
  46222. return Keyboard;
  46223. }(_module2.default);
  46224. Keyboard.keys = {
  46225. BACKSPACE: 8,
  46226. TAB: 9,
  46227. ENTER: 13,
  46228. ESCAPE: 27,
  46229. LEFT: 37,
  46230. UP: 38,
  46231. RIGHT: 39,
  46232. DOWN: 40,
  46233. DELETE: 46
  46234. };
  46235. Keyboard.DEFAULTS = {
  46236. bindings: {
  46237. 'bold': makeFormatHandler('bold'),
  46238. 'italic': makeFormatHandler('italic'),
  46239. 'underline': makeFormatHandler('underline'),
  46240. 'indent': {
  46241. // highlight tab or tab at beginning of list, indent or blockquote
  46242. key: Keyboard.keys.TAB,
  46243. format: ['blockquote', 'indent', 'list'],
  46244. handler: function handler(range, context) {
  46245. if (context.collapsed && context.offset !== 0) return true;
  46246. this.quill.format('indent', '+1', _quill2.default.sources.USER);
  46247. }
  46248. },
  46249. 'outdent': {
  46250. key: Keyboard.keys.TAB,
  46251. shiftKey: true,
  46252. format: ['blockquote', 'indent', 'list'],
  46253. // highlight tab or tab at beginning of list, indent or blockquote
  46254. handler: function handler(range, context) {
  46255. if (context.collapsed && context.offset !== 0) return true;
  46256. this.quill.format('indent', '-1', _quill2.default.sources.USER);
  46257. }
  46258. },
  46259. 'outdent backspace': {
  46260. key: Keyboard.keys.BACKSPACE,
  46261. collapsed: true,
  46262. shiftKey: null,
  46263. metaKey: null,
  46264. ctrlKey: null,
  46265. altKey: null,
  46266. format: ['indent', 'list'],
  46267. offset: 0,
  46268. handler: function handler(range, context) {
  46269. if (context.format.indent != null) {
  46270. this.quill.format('indent', '-1', _quill2.default.sources.USER);
  46271. } else if (context.format.list != null) {
  46272. this.quill.format('list', false, _quill2.default.sources.USER);
  46273. }
  46274. }
  46275. },
  46276. 'indent code-block': makeCodeBlockHandler(true),
  46277. 'outdent code-block': makeCodeBlockHandler(false),
  46278. 'remove tab': {
  46279. key: Keyboard.keys.TAB,
  46280. shiftKey: true,
  46281. collapsed: true,
  46282. prefix: /\t$/,
  46283. handler: function handler(range) {
  46284. this.quill.deleteText(range.index - 1, 1, _quill2.default.sources.USER);
  46285. }
  46286. },
  46287. 'tab': {
  46288. key: Keyboard.keys.TAB,
  46289. handler: function handler(range) {
  46290. this.quill.history.cutoff();
  46291. var delta = new _quillDelta2.default().retain(range.index).delete(range.length).insert('\t');
  46292. this.quill.updateContents(delta, _quill2.default.sources.USER);
  46293. this.quill.history.cutoff();
  46294. this.quill.setSelection(range.index + 1, _quill2.default.sources.SILENT);
  46295. }
  46296. },
  46297. 'list empty enter': {
  46298. key: Keyboard.keys.ENTER,
  46299. collapsed: true,
  46300. format: ['list'],
  46301. empty: true,
  46302. handler: function handler(range, context) {
  46303. this.quill.format('list', false, _quill2.default.sources.USER);
  46304. if (context.format.indent) {
  46305. this.quill.format('indent', false, _quill2.default.sources.USER);
  46306. }
  46307. }
  46308. },
  46309. 'checklist enter': {
  46310. key: Keyboard.keys.ENTER,
  46311. collapsed: true,
  46312. format: { list: 'checked' },
  46313. handler: function handler(range) {
  46314. var _quill$getLine3 = this.quill.getLine(range.index),
  46315. _quill$getLine4 = _slicedToArray(_quill$getLine3, 2),
  46316. line = _quill$getLine4[0],
  46317. offset = _quill$getLine4[1];
  46318. var formats = (0, _extend2.default)({}, line.formats(), { list: 'checked' });
  46319. var delta = new _quillDelta2.default().retain(range.index).insert('\n', formats).retain(line.length() - offset - 1).retain(1, { list: 'unchecked' });
  46320. this.quill.updateContents(delta, _quill2.default.sources.USER);
  46321. this.quill.setSelection(range.index + 1, _quill2.default.sources.SILENT);
  46322. this.quill.scrollIntoView();
  46323. }
  46324. },
  46325. 'header enter': {
  46326. key: Keyboard.keys.ENTER,
  46327. collapsed: true,
  46328. format: ['header'],
  46329. suffix: /^$/,
  46330. handler: function handler(range, context) {
  46331. var _quill$getLine5 = this.quill.getLine(range.index),
  46332. _quill$getLine6 = _slicedToArray(_quill$getLine5, 2),
  46333. line = _quill$getLine6[0],
  46334. offset = _quill$getLine6[1];
  46335. var delta = new _quillDelta2.default().retain(range.index).insert('\n', context.format).retain(line.length() - offset - 1).retain(1, { header: null });
  46336. this.quill.updateContents(delta, _quill2.default.sources.USER);
  46337. this.quill.setSelection(range.index + 1, _quill2.default.sources.SILENT);
  46338. this.quill.scrollIntoView();
  46339. }
  46340. },
  46341. 'list autofill': {
  46342. key: ' ',
  46343. collapsed: true,
  46344. format: { list: false },
  46345. prefix: /^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,
  46346. handler: function handler(range, context) {
  46347. var length = context.prefix.length;
  46348. var _quill$getLine7 = this.quill.getLine(range.index),
  46349. _quill$getLine8 = _slicedToArray(_quill$getLine7, 2),
  46350. line = _quill$getLine8[0],
  46351. offset = _quill$getLine8[1];
  46352. if (offset > length) return true;
  46353. var value = void 0;
  46354. switch (context.prefix.trim()) {
  46355. case '[]':case '[ ]':
  46356. value = 'unchecked';
  46357. break;
  46358. case '[x]':
  46359. value = 'checked';
  46360. break;
  46361. case '-':case '*':
  46362. value = 'bullet';
  46363. break;
  46364. default:
  46365. value = 'ordered';
  46366. }
  46367. this.quill.insertText(range.index, ' ', _quill2.default.sources.USER);
  46368. this.quill.history.cutoff();
  46369. var delta = new _quillDelta2.default().retain(range.index - offset).delete(length + 1).retain(line.length() - 2 - offset).retain(1, { list: value });
  46370. this.quill.updateContents(delta, _quill2.default.sources.USER);
  46371. this.quill.history.cutoff();
  46372. this.quill.setSelection(range.index - length, _quill2.default.sources.SILENT);
  46373. }
  46374. },
  46375. 'code exit': {
  46376. key: Keyboard.keys.ENTER,
  46377. collapsed: true,
  46378. format: ['code-block'],
  46379. prefix: /\n\n$/,
  46380. suffix: /^\s+$/,
  46381. handler: function handler(range) {
  46382. var _quill$getLine9 = this.quill.getLine(range.index),
  46383. _quill$getLine10 = _slicedToArray(_quill$getLine9, 2),
  46384. line = _quill$getLine10[0],
  46385. offset = _quill$getLine10[1];
  46386. var delta = new _quillDelta2.default().retain(range.index + line.length() - offset - 2).retain(1, { 'code-block': null }).delete(1);
  46387. this.quill.updateContents(delta, _quill2.default.sources.USER);
  46388. }
  46389. },
  46390. 'embed left': makeEmbedArrowHandler(Keyboard.keys.LEFT, false),
  46391. 'embed left shift': makeEmbedArrowHandler(Keyboard.keys.LEFT, true),
  46392. 'embed right': makeEmbedArrowHandler(Keyboard.keys.RIGHT, false),
  46393. 'embed right shift': makeEmbedArrowHandler(Keyboard.keys.RIGHT, true)
  46394. }
  46395. };
  46396. function makeEmbedArrowHandler(key, shiftKey) {
  46397. var _ref3;
  46398. var where = key === Keyboard.keys.LEFT ? 'prefix' : 'suffix';
  46399. return _ref3 = {
  46400. key: key,
  46401. shiftKey: shiftKey,
  46402. altKey: null
  46403. }, _defineProperty(_ref3, where, /^$/), _defineProperty(_ref3, 'handler', function handler(range) {
  46404. var index = range.index;
  46405. if (key === Keyboard.keys.RIGHT) {
  46406. index += range.length + 1;
  46407. }
  46408. var _quill$getLeaf3 = this.quill.getLeaf(index),
  46409. _quill$getLeaf4 = _slicedToArray(_quill$getLeaf3, 1),
  46410. leaf = _quill$getLeaf4[0];
  46411. if (!(leaf instanceof _parchment2.default.Embed)) return true;
  46412. if (key === Keyboard.keys.LEFT) {
  46413. if (shiftKey) {
  46414. this.quill.setSelection(range.index - 1, range.length + 1, _quill2.default.sources.USER);
  46415. } else {
  46416. this.quill.setSelection(range.index - 1, _quill2.default.sources.USER);
  46417. }
  46418. } else {
  46419. if (shiftKey) {
  46420. this.quill.setSelection(range.index, range.length + 1, _quill2.default.sources.USER);
  46421. } else {
  46422. this.quill.setSelection(range.index + range.length + 1, _quill2.default.sources.USER);
  46423. }
  46424. }
  46425. return false;
  46426. }), _ref3;
  46427. }
  46428. function handleBackspace(range, context) {
  46429. if (range.index === 0 || this.quill.getLength() <= 1) return;
  46430. var _quill$getLine11 = this.quill.getLine(range.index),
  46431. _quill$getLine12 = _slicedToArray(_quill$getLine11, 1),
  46432. line = _quill$getLine12[0];
  46433. var formats = {};
  46434. if (context.offset === 0) {
  46435. var _quill$getLine13 = this.quill.getLine(range.index - 1),
  46436. _quill$getLine14 = _slicedToArray(_quill$getLine13, 1),
  46437. prev = _quill$getLine14[0];
  46438. if (prev != null && prev.length() > 1) {
  46439. var curFormats = line.formats();
  46440. var prevFormats = this.quill.getFormat(range.index - 1, 1);
  46441. formats = _op2.default.attributes.diff(curFormats, prevFormats) || {};
  46442. }
  46443. }
  46444. // Check for astral symbols
  46445. var length = /[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(context.prefix) ? 2 : 1;
  46446. this.quill.deleteText(range.index - length, length, _quill2.default.sources.USER);
  46447. if (Object.keys(formats).length > 0) {
  46448. this.quill.formatLine(range.index - length, length, formats, _quill2.default.sources.USER);
  46449. }
  46450. this.quill.focus();
  46451. }
  46452. function handleDelete(range, context) {
  46453. // Check for astral symbols
  46454. var length = /^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(context.suffix) ? 2 : 1;
  46455. if (range.index >= this.quill.getLength() - length) return;
  46456. var formats = {},
  46457. nextLength = 0;
  46458. var _quill$getLine15 = this.quill.getLine(range.index),
  46459. _quill$getLine16 = _slicedToArray(_quill$getLine15, 1),
  46460. line = _quill$getLine16[0];
  46461. if (context.offset >= line.length() - 1) {
  46462. var _quill$getLine17 = this.quill.getLine(range.index + 1),
  46463. _quill$getLine18 = _slicedToArray(_quill$getLine17, 1),
  46464. next = _quill$getLine18[0];
  46465. if (next) {
  46466. var curFormats = line.formats();
  46467. var nextFormats = this.quill.getFormat(range.index, 1);
  46468. formats = _op2.default.attributes.diff(curFormats, nextFormats) || {};
  46469. nextLength = next.length();
  46470. }
  46471. }
  46472. this.quill.deleteText(range.index, length, _quill2.default.sources.USER);
  46473. if (Object.keys(formats).length > 0) {
  46474. this.quill.formatLine(range.index + nextLength - 1, length, formats, _quill2.default.sources.USER);
  46475. }
  46476. }
  46477. function handleDeleteRange(range) {
  46478. var lines = this.quill.getLines(range);
  46479. var formats = {};
  46480. if (lines.length > 1) {
  46481. var firstFormats = lines[0].formats();
  46482. var lastFormats = lines[lines.length - 1].formats();
  46483. formats = _op2.default.attributes.diff(lastFormats, firstFormats) || {};
  46484. }
  46485. this.quill.deleteText(range, _quill2.default.sources.USER);
  46486. if (Object.keys(formats).length > 0) {
  46487. this.quill.formatLine(range.index, 1, formats, _quill2.default.sources.USER);
  46488. }
  46489. this.quill.setSelection(range.index, _quill2.default.sources.SILENT);
  46490. this.quill.focus();
  46491. }
  46492. function handleEnter(range, context) {
  46493. var _this3 = this;
  46494. if (range.length > 0) {
  46495. this.quill.scroll.deleteAt(range.index, range.length); // So we do not trigger text-change
  46496. }
  46497. var lineFormats = Object.keys(context.format).reduce(function (lineFormats, format) {
  46498. if (_parchment2.default.query(format, _parchment2.default.Scope.BLOCK) && !Array.isArray(context.format[format])) {
  46499. lineFormats[format] = context.format[format];
  46500. }
  46501. return lineFormats;
  46502. }, {});
  46503. this.quill.insertText(range.index, '\n', lineFormats, _quill2.default.sources.USER);
  46504. // Earlier scroll.deleteAt might have messed up our selection,
  46505. // so insertText's built in selection preservation is not reliable
  46506. this.quill.setSelection(range.index + 1, _quill2.default.sources.SILENT);
  46507. this.quill.focus();
  46508. Object.keys(context.format).forEach(function (name) {
  46509. if (lineFormats[name] != null) return;
  46510. if (Array.isArray(context.format[name])) return;
  46511. if (name === 'link') return;
  46512. _this3.quill.format(name, context.format[name], _quill2.default.sources.USER);
  46513. });
  46514. }
  46515. function makeCodeBlockHandler(indent) {
  46516. return {
  46517. key: Keyboard.keys.TAB,
  46518. shiftKey: !indent,
  46519. format: { 'code-block': true },
  46520. handler: function handler(range) {
  46521. var CodeBlock = _parchment2.default.query('code-block');
  46522. var index = range.index,
  46523. length = range.length;
  46524. var _quill$scroll$descend = this.quill.scroll.descendant(CodeBlock, index),
  46525. _quill$scroll$descend2 = _slicedToArray(_quill$scroll$descend, 2),
  46526. block = _quill$scroll$descend2[0],
  46527. offset = _quill$scroll$descend2[1];
  46528. if (block == null) return;
  46529. var scrollIndex = this.quill.getIndex(block);
  46530. var start = block.newlineIndex(offset, true) + 1;
  46531. var end = block.newlineIndex(scrollIndex + offset + length);
  46532. var lines = block.domNode.textContent.slice(start, end).split('\n');
  46533. offset = 0;
  46534. lines.forEach(function (line, i) {
  46535. if (indent) {
  46536. block.insertAt(start + offset, CodeBlock.TAB);
  46537. offset += CodeBlock.TAB.length;
  46538. if (i === 0) {
  46539. index += CodeBlock.TAB.length;
  46540. } else {
  46541. length += CodeBlock.TAB.length;
  46542. }
  46543. } else if (line.startsWith(CodeBlock.TAB)) {
  46544. block.deleteAt(start + offset, CodeBlock.TAB.length);
  46545. offset -= CodeBlock.TAB.length;
  46546. if (i === 0) {
  46547. index -= CodeBlock.TAB.length;
  46548. } else {
  46549. length -= CodeBlock.TAB.length;
  46550. }
  46551. }
  46552. offset += line.length + 1;
  46553. });
  46554. this.quill.update(_quill2.default.sources.USER);
  46555. this.quill.setSelection(index, length, _quill2.default.sources.SILENT);
  46556. }
  46557. };
  46558. }
  46559. function makeFormatHandler(format) {
  46560. return {
  46561. key: format[0].toUpperCase(),
  46562. shortKey: true,
  46563. handler: function handler(range, context) {
  46564. this.quill.format(format, !context.format[format], _quill2.default.sources.USER);
  46565. }
  46566. };
  46567. }
  46568. function normalize(binding) {
  46569. if (typeof binding === 'string' || typeof binding === 'number') {
  46570. return normalize({ key: binding });
  46571. }
  46572. if ((typeof binding === 'undefined' ? 'undefined' : _typeof(binding)) === 'object') {
  46573. binding = (0, _clone2.default)(binding, false);
  46574. }
  46575. if (typeof binding.key === 'string') {
  46576. if (Keyboard.keys[binding.key.toUpperCase()] != null) {
  46577. binding.key = Keyboard.keys[binding.key.toUpperCase()];
  46578. } else if (binding.key.length === 1) {
  46579. binding.key = binding.key.toUpperCase().charCodeAt(0);
  46580. } else {
  46581. return null;
  46582. }
  46583. }
  46584. if (binding.shortKey) {
  46585. binding[SHORTKEY] = binding.shortKey;
  46586. delete binding.shortKey;
  46587. }
  46588. return binding;
  46589. }
  46590. exports.default = Keyboard;
  46591. exports.SHORTKEY = SHORTKEY;
  46592. /***/ }),
  46593. /* 24 */
  46594. /***/ (function(module, exports, __nested_webpack_require_181454__) {
  46595. "use strict";
  46596. Object.defineProperty(exports, "__esModule", {
  46597. value: true
  46598. });
  46599. var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
  46600. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  46601. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  46602. var _parchment = __nested_webpack_require_181454__(0);
  46603. var _parchment2 = _interopRequireDefault(_parchment);
  46604. var _text = __nested_webpack_require_181454__(7);
  46605. var _text2 = _interopRequireDefault(_text);
  46606. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  46607. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  46608. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  46609. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  46610. var Cursor = function (_Parchment$Embed) {
  46611. _inherits(Cursor, _Parchment$Embed);
  46612. _createClass(Cursor, null, [{
  46613. key: 'value',
  46614. value: function value() {
  46615. return undefined;
  46616. }
  46617. }]);
  46618. function Cursor(domNode, selection) {
  46619. _classCallCheck(this, Cursor);
  46620. var _this = _possibleConstructorReturn(this, (Cursor.__proto__ || Object.getPrototypeOf(Cursor)).call(this, domNode));
  46621. _this.selection = selection;
  46622. _this.textNode = document.createTextNode(Cursor.CONTENTS);
  46623. _this.domNode.appendChild(_this.textNode);
  46624. _this._length = 0;
  46625. return _this;
  46626. }
  46627. _createClass(Cursor, [{
  46628. key: 'detach',
  46629. value: function detach() {
  46630. // super.detach() will also clear domNode.__blot
  46631. if (this.parent != null) this.parent.removeChild(this);
  46632. }
  46633. }, {
  46634. key: 'format',
  46635. value: function format(name, value) {
  46636. if (this._length !== 0) {
  46637. return _get(Cursor.prototype.__proto__ || Object.getPrototypeOf(Cursor.prototype), 'format', this).call(this, name, value);
  46638. }
  46639. var target = this,
  46640. index = 0;
  46641. while (target != null && target.statics.scope !== _parchment2.default.Scope.BLOCK_BLOT) {
  46642. index += target.offset(target.parent);
  46643. target = target.parent;
  46644. }
  46645. if (target != null) {
  46646. this._length = Cursor.CONTENTS.length;
  46647. target.optimize();
  46648. target.formatAt(index, Cursor.CONTENTS.length, name, value);
  46649. this._length = 0;
  46650. }
  46651. }
  46652. }, {
  46653. key: 'index',
  46654. value: function index(node, offset) {
  46655. if (node === this.textNode) return 0;
  46656. return _get(Cursor.prototype.__proto__ || Object.getPrototypeOf(Cursor.prototype), 'index', this).call(this, node, offset);
  46657. }
  46658. }, {
  46659. key: 'length',
  46660. value: function length() {
  46661. return this._length;
  46662. }
  46663. }, {
  46664. key: 'position',
  46665. value: function position() {
  46666. return [this.textNode, this.textNode.data.length];
  46667. }
  46668. }, {
  46669. key: 'remove',
  46670. value: function remove() {
  46671. _get(Cursor.prototype.__proto__ || Object.getPrototypeOf(Cursor.prototype), 'remove', this).call(this);
  46672. this.parent = null;
  46673. }
  46674. }, {
  46675. key: 'restore',
  46676. value: function restore() {
  46677. if (this.selection.composing || this.parent == null) return;
  46678. var textNode = this.textNode;
  46679. var range = this.selection.getNativeRange();
  46680. var restoreText = void 0,
  46681. start = void 0,
  46682. end = void 0;
  46683. if (range != null && range.start.node === textNode && range.end.node === textNode) {
  46684. var _ref = [textNode, range.start.offset, range.end.offset];
  46685. restoreText = _ref[0];
  46686. start = _ref[1];
  46687. end = _ref[2];
  46688. }
  46689. // Link format will insert text outside of anchor tag
  46690. while (this.domNode.lastChild != null && this.domNode.lastChild !== this.textNode) {
  46691. this.domNode.parentNode.insertBefore(this.domNode.lastChild, this.domNode);
  46692. }
  46693. if (this.textNode.data !== Cursor.CONTENTS) {
  46694. var text = this.textNode.data.split(Cursor.CONTENTS).join('');
  46695. if (this.next instanceof _text2.default) {
  46696. restoreText = this.next.domNode;
  46697. this.next.insertAt(0, text);
  46698. this.textNode.data = Cursor.CONTENTS;
  46699. } else {
  46700. this.textNode.data = text;
  46701. this.parent.insertBefore(_parchment2.default.create(this.textNode), this);
  46702. this.textNode = document.createTextNode(Cursor.CONTENTS);
  46703. this.domNode.appendChild(this.textNode);
  46704. }
  46705. }
  46706. this.remove();
  46707. if (start != null) {
  46708. var _map = [start, end].map(function (offset) {
  46709. return Math.max(0, Math.min(restoreText.data.length, offset - 1));
  46710. });
  46711. var _map2 = _slicedToArray(_map, 2);
  46712. start = _map2[0];
  46713. end = _map2[1];
  46714. return {
  46715. startNode: restoreText,
  46716. startOffset: start,
  46717. endNode: restoreText,
  46718. endOffset: end
  46719. };
  46720. }
  46721. }
  46722. }, {
  46723. key: 'update',
  46724. value: function update(mutations, context) {
  46725. var _this2 = this;
  46726. if (mutations.some(function (mutation) {
  46727. return mutation.type === 'characterData' && mutation.target === _this2.textNode;
  46728. })) {
  46729. var range = this.restore();
  46730. if (range) context.range = range;
  46731. }
  46732. }
  46733. }, {
  46734. key: 'value',
  46735. value: function value() {
  46736. return '';
  46737. }
  46738. }]);
  46739. return Cursor;
  46740. }(_parchment2.default.Embed);
  46741. Cursor.blotName = 'cursor';
  46742. Cursor.className = 'ql-cursor';
  46743. Cursor.tagName = 'span';
  46744. Cursor.CONTENTS = '\uFEFF'; // Zero width no break space
  46745. exports.default = Cursor;
  46746. /***/ }),
  46747. /* 25 */
  46748. /***/ (function(module, exports, __nested_webpack_require_189100__) {
  46749. "use strict";
  46750. Object.defineProperty(exports, "__esModule", {
  46751. value: true
  46752. });
  46753. var _parchment = __nested_webpack_require_189100__(0);
  46754. var _parchment2 = _interopRequireDefault(_parchment);
  46755. var _block = __nested_webpack_require_189100__(4);
  46756. var _block2 = _interopRequireDefault(_block);
  46757. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  46758. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  46759. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  46760. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  46761. var Container = function (_Parchment$Container) {
  46762. _inherits(Container, _Parchment$Container);
  46763. function Container() {
  46764. _classCallCheck(this, Container);
  46765. return _possibleConstructorReturn(this, (Container.__proto__ || Object.getPrototypeOf(Container)).apply(this, arguments));
  46766. }
  46767. return Container;
  46768. }(_parchment2.default.Container);
  46769. Container.allowedChildren = [_block2.default, _block.BlockEmbed, Container];
  46770. exports.default = Container;
  46771. /***/ }),
  46772. /* 26 */
  46773. /***/ (function(module, exports, __nested_webpack_require_190886__) {
  46774. "use strict";
  46775. Object.defineProperty(exports, "__esModule", {
  46776. value: true
  46777. });
  46778. exports.ColorStyle = exports.ColorClass = exports.ColorAttributor = undefined;
  46779. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  46780. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  46781. var _parchment = __nested_webpack_require_190886__(0);
  46782. var _parchment2 = _interopRequireDefault(_parchment);
  46783. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  46784. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  46785. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  46786. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  46787. var ColorAttributor = function (_Parchment$Attributor) {
  46788. _inherits(ColorAttributor, _Parchment$Attributor);
  46789. function ColorAttributor() {
  46790. _classCallCheck(this, ColorAttributor);
  46791. return _possibleConstructorReturn(this, (ColorAttributor.__proto__ || Object.getPrototypeOf(ColorAttributor)).apply(this, arguments));
  46792. }
  46793. _createClass(ColorAttributor, [{
  46794. key: 'value',
  46795. value: function value(domNode) {
  46796. var value = _get(ColorAttributor.prototype.__proto__ || Object.getPrototypeOf(ColorAttributor.prototype), 'value', this).call(this, domNode);
  46797. if (!value.startsWith('rgb(')) return value;
  46798. value = value.replace(/^[^\d]+/, '').replace(/[^\d]+$/, '');
  46799. return '#' + value.split(',').map(function (component) {
  46800. return ('00' + parseInt(component).toString(16)).slice(-2);
  46801. }).join('');
  46802. }
  46803. }]);
  46804. return ColorAttributor;
  46805. }(_parchment2.default.Attributor.Style);
  46806. var ColorClass = new _parchment2.default.Attributor.Class('color', 'ql-color', {
  46807. scope: _parchment2.default.Scope.INLINE
  46808. });
  46809. var ColorStyle = new ColorAttributor('color', 'color', {
  46810. scope: _parchment2.default.Scope.INLINE
  46811. });
  46812. exports.ColorAttributor = ColorAttributor;
  46813. exports.ColorClass = ColorClass;
  46814. exports.ColorStyle = ColorStyle;
  46815. /***/ }),
  46816. /* 27 */
  46817. /***/ (function(module, exports, __nested_webpack_require_194529__) {
  46818. "use strict";
  46819. Object.defineProperty(exports, "__esModule", {
  46820. value: true
  46821. });
  46822. exports.sanitize = exports.default = undefined;
  46823. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  46824. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  46825. var _inline = __nested_webpack_require_194529__(6);
  46826. var _inline2 = _interopRequireDefault(_inline);
  46827. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  46828. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  46829. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  46830. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  46831. var Link = function (_Inline) {
  46832. _inherits(Link, _Inline);
  46833. function Link() {
  46834. _classCallCheck(this, Link);
  46835. return _possibleConstructorReturn(this, (Link.__proto__ || Object.getPrototypeOf(Link)).apply(this, arguments));
  46836. }
  46837. _createClass(Link, [{
  46838. key: 'format',
  46839. value: function format(name, value) {
  46840. if (name !== this.statics.blotName || !value) return _get(Link.prototype.__proto__ || Object.getPrototypeOf(Link.prototype), 'format', this).call(this, name, value);
  46841. value = this.constructor.sanitize(value);
  46842. this.domNode.setAttribute('href', value);
  46843. }
  46844. }], [{
  46845. key: 'create',
  46846. value: function create(value) {
  46847. var node = _get(Link.__proto__ || Object.getPrototypeOf(Link), 'create', this).call(this, value);
  46848. value = this.sanitize(value);
  46849. node.setAttribute('href', value);
  46850. node.setAttribute('rel', 'noopener noreferrer');
  46851. node.setAttribute('target', '_blank');
  46852. return node;
  46853. }
  46854. }, {
  46855. key: 'formats',
  46856. value: function formats(domNode) {
  46857. return domNode.getAttribute('href');
  46858. }
  46859. }, {
  46860. key: 'sanitize',
  46861. value: function sanitize(url) {
  46862. return _sanitize(url, this.PROTOCOL_WHITELIST) ? url : this.SANITIZED_URL;
  46863. }
  46864. }]);
  46865. return Link;
  46866. }(_inline2.default);
  46867. Link.blotName = 'link';
  46868. Link.tagName = 'A';
  46869. Link.SANITIZED_URL = 'about:blank';
  46870. Link.PROTOCOL_WHITELIST = ['http', 'https', 'mailto', 'tel'];
  46871. function _sanitize(url, protocols) {
  46872. var anchor = document.createElement('a');
  46873. anchor.href = url;
  46874. var protocol = anchor.href.slice(0, anchor.href.indexOf(':'));
  46875. return protocols.indexOf(protocol) > -1;
  46876. }
  46877. exports.default = Link;
  46878. exports.sanitize = _sanitize;
  46879. /***/ }),
  46880. /* 28 */
  46881. /***/ (function(module, exports, __nested_webpack_require_198559__) {
  46882. "use strict";
  46883. Object.defineProperty(exports, "__esModule", {
  46884. value: true
  46885. });
  46886. var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
  46887. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  46888. var _keyboard = __nested_webpack_require_198559__(23);
  46889. var _keyboard2 = _interopRequireDefault(_keyboard);
  46890. var _dropdown = __nested_webpack_require_198559__(107);
  46891. var _dropdown2 = _interopRequireDefault(_dropdown);
  46892. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  46893. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  46894. var optionsCounter = 0;
  46895. function toggleAriaAttribute(element, attribute) {
  46896. element.setAttribute(attribute, !(element.getAttribute(attribute) === 'true'));
  46897. }
  46898. var Picker = function () {
  46899. function Picker(select) {
  46900. var _this = this;
  46901. _classCallCheck(this, Picker);
  46902. this.select = select;
  46903. this.container = document.createElement('span');
  46904. this.buildPicker();
  46905. this.select.style.display = 'none';
  46906. this.select.parentNode.insertBefore(this.container, this.select);
  46907. this.label.addEventListener('mousedown', function () {
  46908. _this.togglePicker();
  46909. });
  46910. this.label.addEventListener('keydown', function (event) {
  46911. switch (event.keyCode) {
  46912. // Allows the "Enter" key to open the picker
  46913. case _keyboard2.default.keys.ENTER:
  46914. _this.togglePicker();
  46915. break;
  46916. // Allows the "Escape" key to close the picker
  46917. case _keyboard2.default.keys.ESCAPE:
  46918. _this.escape();
  46919. event.preventDefault();
  46920. break;
  46921. default:
  46922. }
  46923. });
  46924. this.select.addEventListener('change', this.update.bind(this));
  46925. }
  46926. _createClass(Picker, [{
  46927. key: 'togglePicker',
  46928. value: function togglePicker() {
  46929. this.container.classList.toggle('ql-expanded');
  46930. // Toggle aria-expanded and aria-hidden to make the picker accessible
  46931. toggleAriaAttribute(this.label, 'aria-expanded');
  46932. toggleAriaAttribute(this.options, 'aria-hidden');
  46933. }
  46934. }, {
  46935. key: 'buildItem',
  46936. value: function buildItem(option) {
  46937. var _this2 = this;
  46938. var item = document.createElement('span');
  46939. item.tabIndex = '0';
  46940. item.setAttribute('role', 'button');
  46941. item.classList.add('ql-picker-item');
  46942. if (option.hasAttribute('value')) {
  46943. item.setAttribute('data-value', option.getAttribute('value'));
  46944. }
  46945. if (option.textContent) {
  46946. item.setAttribute('data-label', option.textContent);
  46947. }
  46948. item.addEventListener('click', function () {
  46949. _this2.selectItem(item, true);
  46950. });
  46951. item.addEventListener('keydown', function (event) {
  46952. switch (event.keyCode) {
  46953. // Allows the "Enter" key to select an item
  46954. case _keyboard2.default.keys.ENTER:
  46955. _this2.selectItem(item, true);
  46956. event.preventDefault();
  46957. break;
  46958. // Allows the "Escape" key to close the picker
  46959. case _keyboard2.default.keys.ESCAPE:
  46960. _this2.escape();
  46961. event.preventDefault();
  46962. break;
  46963. default:
  46964. }
  46965. });
  46966. return item;
  46967. }
  46968. }, {
  46969. key: 'buildLabel',
  46970. value: function buildLabel() {
  46971. var label = document.createElement('span');
  46972. label.classList.add('ql-picker-label');
  46973. label.innerHTML = _dropdown2.default;
  46974. label.tabIndex = '0';
  46975. label.setAttribute('role', 'button');
  46976. label.setAttribute('aria-expanded', 'false');
  46977. this.container.appendChild(label);
  46978. return label;
  46979. }
  46980. }, {
  46981. key: 'buildOptions',
  46982. value: function buildOptions() {
  46983. var _this3 = this;
  46984. var options = document.createElement('span');
  46985. options.classList.add('ql-picker-options');
  46986. // Don't want screen readers to read this until options are visible
  46987. options.setAttribute('aria-hidden', 'true');
  46988. options.tabIndex = '-1';
  46989. // Need a unique id for aria-controls
  46990. options.id = 'ql-picker-options-' + optionsCounter;
  46991. optionsCounter += 1;
  46992. this.label.setAttribute('aria-controls', options.id);
  46993. this.options = options;
  46994. [].slice.call(this.select.options).forEach(function (option) {
  46995. var item = _this3.buildItem(option);
  46996. options.appendChild(item);
  46997. if (option.selected === true) {
  46998. _this3.selectItem(item);
  46999. }
  47000. });
  47001. this.container.appendChild(options);
  47002. }
  47003. }, {
  47004. key: 'buildPicker',
  47005. value: function buildPicker() {
  47006. var _this4 = this;
  47007. [].slice.call(this.select.attributes).forEach(function (item) {
  47008. _this4.container.setAttribute(item.name, item.value);
  47009. });
  47010. this.container.classList.add('ql-picker');
  47011. this.label = this.buildLabel();
  47012. this.buildOptions();
  47013. }
  47014. }, {
  47015. key: 'escape',
  47016. value: function escape() {
  47017. var _this5 = this;
  47018. // Close menu and return focus to trigger label
  47019. this.close();
  47020. // Need setTimeout for accessibility to ensure that the browser executes
  47021. // focus on the next process thread and after any DOM content changes
  47022. setTimeout(function () {
  47023. return _this5.label.focus();
  47024. }, 1);
  47025. }
  47026. }, {
  47027. key: 'close',
  47028. value: function close() {
  47029. this.container.classList.remove('ql-expanded');
  47030. this.label.setAttribute('aria-expanded', 'false');
  47031. this.options.setAttribute('aria-hidden', 'true');
  47032. }
  47033. }, {
  47034. key: 'selectItem',
  47035. value: function selectItem(item) {
  47036. var trigger = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  47037. var selected = this.container.querySelector('.ql-selected');
  47038. if (item === selected) return;
  47039. if (selected != null) {
  47040. selected.classList.remove('ql-selected');
  47041. }
  47042. if (item == null) return;
  47043. item.classList.add('ql-selected');
  47044. this.select.selectedIndex = [].indexOf.call(item.parentNode.children, item);
  47045. if (item.hasAttribute('data-value')) {
  47046. this.label.setAttribute('data-value', item.getAttribute('data-value'));
  47047. } else {
  47048. this.label.removeAttribute('data-value');
  47049. }
  47050. if (item.hasAttribute('data-label')) {
  47051. this.label.setAttribute('data-label', item.getAttribute('data-label'));
  47052. } else {
  47053. this.label.removeAttribute('data-label');
  47054. }
  47055. if (trigger) {
  47056. if (typeof Event === 'function') {
  47057. this.select.dispatchEvent(new Event('change'));
  47058. } else if ((typeof Event === 'undefined' ? 'undefined' : _typeof(Event)) === 'object') {
  47059. // IE11
  47060. var event = document.createEvent('Event');
  47061. event.initEvent('change', true, true);
  47062. this.select.dispatchEvent(event);
  47063. }
  47064. this.close();
  47065. }
  47066. }
  47067. }, {
  47068. key: 'update',
  47069. value: function update() {
  47070. var option = void 0;
  47071. if (this.select.selectedIndex > -1) {
  47072. var item = this.container.querySelector('.ql-picker-options').children[this.select.selectedIndex];
  47073. option = this.select.options[this.select.selectedIndex];
  47074. this.selectItem(item);
  47075. } else {
  47076. this.selectItem(null);
  47077. }
  47078. var isActive = option != null && option !== this.select.querySelector('option[selected]');
  47079. this.label.classList.toggle('ql-active', isActive);
  47080. }
  47081. }]);
  47082. return Picker;
  47083. }();
  47084. exports.default = Picker;
  47085. /***/ }),
  47086. /* 29 */
  47087. /***/ (function(module, exports, __nested_webpack_require_206753__) {
  47088. "use strict";
  47089. Object.defineProperty(exports, "__esModule", {
  47090. value: true
  47091. });
  47092. var _parchment = __nested_webpack_require_206753__(0);
  47093. var _parchment2 = _interopRequireDefault(_parchment);
  47094. var _quill = __nested_webpack_require_206753__(5);
  47095. var _quill2 = _interopRequireDefault(_quill);
  47096. var _block = __nested_webpack_require_206753__(4);
  47097. var _block2 = _interopRequireDefault(_block);
  47098. var _break = __nested_webpack_require_206753__(16);
  47099. var _break2 = _interopRequireDefault(_break);
  47100. var _container = __nested_webpack_require_206753__(25);
  47101. var _container2 = _interopRequireDefault(_container);
  47102. var _cursor = __nested_webpack_require_206753__(24);
  47103. var _cursor2 = _interopRequireDefault(_cursor);
  47104. var _embed = __nested_webpack_require_206753__(35);
  47105. var _embed2 = _interopRequireDefault(_embed);
  47106. var _inline = __nested_webpack_require_206753__(6);
  47107. var _inline2 = _interopRequireDefault(_inline);
  47108. var _scroll = __nested_webpack_require_206753__(22);
  47109. var _scroll2 = _interopRequireDefault(_scroll);
  47110. var _text = __nested_webpack_require_206753__(7);
  47111. var _text2 = _interopRequireDefault(_text);
  47112. var _clipboard = __nested_webpack_require_206753__(55);
  47113. var _clipboard2 = _interopRequireDefault(_clipboard);
  47114. var _history = __nested_webpack_require_206753__(42);
  47115. var _history2 = _interopRequireDefault(_history);
  47116. var _keyboard = __nested_webpack_require_206753__(23);
  47117. var _keyboard2 = _interopRequireDefault(_keyboard);
  47118. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47119. _quill2.default.register({
  47120. 'blots/block': _block2.default,
  47121. 'blots/block/embed': _block.BlockEmbed,
  47122. 'blots/break': _break2.default,
  47123. 'blots/container': _container2.default,
  47124. 'blots/cursor': _cursor2.default,
  47125. 'blots/embed': _embed2.default,
  47126. 'blots/inline': _inline2.default,
  47127. 'blots/scroll': _scroll2.default,
  47128. 'blots/text': _text2.default,
  47129. 'modules/clipboard': _clipboard2.default,
  47130. 'modules/history': _history2.default,
  47131. 'modules/keyboard': _keyboard2.default
  47132. });
  47133. _parchment2.default.register(_block2.default, _break2.default, _cursor2.default, _inline2.default, _scroll2.default, _text2.default);
  47134. exports.default = _quill2.default;
  47135. /***/ }),
  47136. /* 30 */
  47137. /***/ (function(module, exports, __nested_webpack_require_208833__) {
  47138. "use strict";
  47139. Object.defineProperty(exports, "__esModule", { value: true });
  47140. var Registry = __nested_webpack_require_208833__(1);
  47141. var ShadowBlot = /** @class */ (function () {
  47142. function ShadowBlot(domNode) {
  47143. this.domNode = domNode;
  47144. // @ts-ignore
  47145. this.domNode[Registry.DATA_KEY] = { blot: this };
  47146. }
  47147. Object.defineProperty(ShadowBlot.prototype, "statics", {
  47148. // Hack for accessing inherited static methods
  47149. get: function () {
  47150. return this.constructor;
  47151. },
  47152. enumerable: true,
  47153. configurable: true
  47154. });
  47155. ShadowBlot.create = function (value) {
  47156. if (this.tagName == null) {
  47157. throw new Registry.ParchmentError('Blot definition missing tagName');
  47158. }
  47159. var node;
  47160. if (Array.isArray(this.tagName)) {
  47161. if (typeof value === 'string') {
  47162. value = value.toUpperCase();
  47163. if (parseInt(value).toString() === value) {
  47164. value = parseInt(value);
  47165. }
  47166. }
  47167. if (typeof value === 'number') {
  47168. node = document.createElement(this.tagName[value - 1]);
  47169. }
  47170. else if (this.tagName.indexOf(value) > -1) {
  47171. node = document.createElement(value);
  47172. }
  47173. else {
  47174. node = document.createElement(this.tagName[0]);
  47175. }
  47176. }
  47177. else {
  47178. node = document.createElement(this.tagName);
  47179. }
  47180. if (this.className) {
  47181. node.classList.add(this.className);
  47182. }
  47183. return node;
  47184. };
  47185. ShadowBlot.prototype.attach = function () {
  47186. if (this.parent != null) {
  47187. this.scroll = this.parent.scroll;
  47188. }
  47189. };
  47190. ShadowBlot.prototype.clone = function () {
  47191. var domNode = this.domNode.cloneNode(false);
  47192. return Registry.create(domNode);
  47193. };
  47194. ShadowBlot.prototype.detach = function () {
  47195. if (this.parent != null)
  47196. this.parent.removeChild(this);
  47197. // @ts-ignore
  47198. delete this.domNode[Registry.DATA_KEY];
  47199. };
  47200. ShadowBlot.prototype.deleteAt = function (index, length) {
  47201. var blot = this.isolate(index, length);
  47202. blot.remove();
  47203. };
  47204. ShadowBlot.prototype.formatAt = function (index, length, name, value) {
  47205. var blot = this.isolate(index, length);
  47206. if (Registry.query(name, Registry.Scope.BLOT) != null && value) {
  47207. blot.wrap(name, value);
  47208. }
  47209. else if (Registry.query(name, Registry.Scope.ATTRIBUTE) != null) {
  47210. var parent = Registry.create(this.statics.scope);
  47211. blot.wrap(parent);
  47212. parent.format(name, value);
  47213. }
  47214. };
  47215. ShadowBlot.prototype.insertAt = function (index, value, def) {
  47216. var blot = def == null ? Registry.create('text', value) : Registry.create(value, def);
  47217. var ref = this.split(index);
  47218. this.parent.insertBefore(blot, ref);
  47219. };
  47220. ShadowBlot.prototype.insertInto = function (parentBlot, refBlot) {
  47221. if (refBlot === void 0) { refBlot = null; }
  47222. if (this.parent != null) {
  47223. this.parent.children.remove(this);
  47224. }
  47225. var refDomNode = null;
  47226. parentBlot.children.insertBefore(this, refBlot);
  47227. if (refBlot != null) {
  47228. refDomNode = refBlot.domNode;
  47229. }
  47230. if (this.domNode.parentNode != parentBlot.domNode ||
  47231. this.domNode.nextSibling != refDomNode) {
  47232. parentBlot.domNode.insertBefore(this.domNode, refDomNode);
  47233. }
  47234. this.parent = parentBlot;
  47235. this.attach();
  47236. };
  47237. ShadowBlot.prototype.isolate = function (index, length) {
  47238. var target = this.split(index);
  47239. target.split(length);
  47240. return target;
  47241. };
  47242. ShadowBlot.prototype.length = function () {
  47243. return 1;
  47244. };
  47245. ShadowBlot.prototype.offset = function (root) {
  47246. if (root === void 0) { root = this.parent; }
  47247. if (this.parent == null || this == root)
  47248. return 0;
  47249. return this.parent.children.offset(this) + this.parent.offset(root);
  47250. };
  47251. ShadowBlot.prototype.optimize = function (context) {
  47252. // TODO clean up once we use WeakMap
  47253. // @ts-ignore
  47254. if (this.domNode[Registry.DATA_KEY] != null) {
  47255. // @ts-ignore
  47256. delete this.domNode[Registry.DATA_KEY].mutations;
  47257. }
  47258. };
  47259. ShadowBlot.prototype.remove = function () {
  47260. if (this.domNode.parentNode != null) {
  47261. this.domNode.parentNode.removeChild(this.domNode);
  47262. }
  47263. this.detach();
  47264. };
  47265. ShadowBlot.prototype.replace = function (target) {
  47266. if (target.parent == null)
  47267. return;
  47268. target.parent.insertBefore(this, target.next);
  47269. target.remove();
  47270. };
  47271. ShadowBlot.prototype.replaceWith = function (name, value) {
  47272. var replacement = typeof name === 'string' ? Registry.create(name, value) : name;
  47273. replacement.replace(this);
  47274. return replacement;
  47275. };
  47276. ShadowBlot.prototype.split = function (index, force) {
  47277. return index === 0 ? this : this.next;
  47278. };
  47279. ShadowBlot.prototype.update = function (mutations, context) {
  47280. // Nothing to do by default
  47281. };
  47282. ShadowBlot.prototype.wrap = function (name, value) {
  47283. var wrapper = typeof name === 'string' ? Registry.create(name, value) : name;
  47284. if (this.parent != null) {
  47285. this.parent.insertBefore(wrapper, this.next);
  47286. }
  47287. wrapper.appendChild(this);
  47288. return wrapper;
  47289. };
  47290. ShadowBlot.blotName = 'abstract';
  47291. return ShadowBlot;
  47292. }());
  47293. exports.default = ShadowBlot;
  47294. /***/ }),
  47295. /* 31 */
  47296. /***/ (function(module, exports, __nested_webpack_require_214530__) {
  47297. "use strict";
  47298. Object.defineProperty(exports, "__esModule", { value: true });
  47299. var attributor_1 = __nested_webpack_require_214530__(12);
  47300. var class_1 = __nested_webpack_require_214530__(32);
  47301. var style_1 = __nested_webpack_require_214530__(33);
  47302. var Registry = __nested_webpack_require_214530__(1);
  47303. var AttributorStore = /** @class */ (function () {
  47304. function AttributorStore(domNode) {
  47305. this.attributes = {};
  47306. this.domNode = domNode;
  47307. this.build();
  47308. }
  47309. AttributorStore.prototype.attribute = function (attribute, value) {
  47310. // verb
  47311. if (value) {
  47312. if (attribute.add(this.domNode, value)) {
  47313. if (attribute.value(this.domNode) != null) {
  47314. this.attributes[attribute.attrName] = attribute;
  47315. }
  47316. else {
  47317. delete this.attributes[attribute.attrName];
  47318. }
  47319. }
  47320. }
  47321. else {
  47322. attribute.remove(this.domNode);
  47323. delete this.attributes[attribute.attrName];
  47324. }
  47325. };
  47326. AttributorStore.prototype.build = function () {
  47327. var _this = this;
  47328. this.attributes = {};
  47329. var attributes = attributor_1.default.keys(this.domNode);
  47330. var classes = class_1.default.keys(this.domNode);
  47331. var styles = style_1.default.keys(this.domNode);
  47332. attributes
  47333. .concat(classes)
  47334. .concat(styles)
  47335. .forEach(function (name) {
  47336. var attr = Registry.query(name, Registry.Scope.ATTRIBUTE);
  47337. if (attr instanceof attributor_1.default) {
  47338. _this.attributes[attr.attrName] = attr;
  47339. }
  47340. });
  47341. };
  47342. AttributorStore.prototype.copy = function (target) {
  47343. var _this = this;
  47344. Object.keys(this.attributes).forEach(function (key) {
  47345. var value = _this.attributes[key].value(_this.domNode);
  47346. target.format(key, value);
  47347. });
  47348. };
  47349. AttributorStore.prototype.move = function (target) {
  47350. var _this = this;
  47351. this.copy(target);
  47352. Object.keys(this.attributes).forEach(function (key) {
  47353. _this.attributes[key].remove(_this.domNode);
  47354. });
  47355. this.attributes = {};
  47356. };
  47357. AttributorStore.prototype.values = function () {
  47358. var _this = this;
  47359. return Object.keys(this.attributes).reduce(function (attributes, name) {
  47360. attributes[name] = _this.attributes[name].value(_this.domNode);
  47361. return attributes;
  47362. }, {});
  47363. };
  47364. return AttributorStore;
  47365. }());
  47366. exports.default = AttributorStore;
  47367. /***/ }),
  47368. /* 32 */
  47369. /***/ (function(module, exports, __nested_webpack_require_217128__) {
  47370. "use strict";
  47371. var __extends = (this && this.__extends) || (function () {
  47372. var extendStatics = Object.setPrototypeOf ||
  47373. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  47374. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  47375. return function (d, b) {
  47376. extendStatics(d, b);
  47377. function __() { this.constructor = d; }
  47378. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  47379. };
  47380. })();
  47381. Object.defineProperty(exports, "__esModule", { value: true });
  47382. var attributor_1 = __nested_webpack_require_217128__(12);
  47383. function match(node, prefix) {
  47384. var className = node.getAttribute('class') || '';
  47385. return className.split(/\s+/).filter(function (name) {
  47386. return name.indexOf(prefix + "-") === 0;
  47387. });
  47388. }
  47389. var ClassAttributor = /** @class */ (function (_super) {
  47390. __extends(ClassAttributor, _super);
  47391. function ClassAttributor() {
  47392. return _super !== null && _super.apply(this, arguments) || this;
  47393. }
  47394. ClassAttributor.keys = function (node) {
  47395. return (node.getAttribute('class') || '').split(/\s+/).map(function (name) {
  47396. return name
  47397. .split('-')
  47398. .slice(0, -1)
  47399. .join('-');
  47400. });
  47401. };
  47402. ClassAttributor.prototype.add = function (node, value) {
  47403. if (!this.canAdd(node, value))
  47404. return false;
  47405. this.remove(node);
  47406. node.classList.add(this.keyName + "-" + value);
  47407. return true;
  47408. };
  47409. ClassAttributor.prototype.remove = function (node) {
  47410. var matches = match(node, this.keyName);
  47411. matches.forEach(function (name) {
  47412. node.classList.remove(name);
  47413. });
  47414. if (node.classList.length === 0) {
  47415. node.removeAttribute('class');
  47416. }
  47417. };
  47418. ClassAttributor.prototype.value = function (node) {
  47419. var result = match(node, this.keyName)[0] || '';
  47420. var value = result.slice(this.keyName.length + 1); // +1 for hyphen
  47421. return this.canAdd(node, value) ? value : '';
  47422. };
  47423. return ClassAttributor;
  47424. }(attributor_1.default));
  47425. exports.default = ClassAttributor;
  47426. /***/ }),
  47427. /* 33 */
  47428. /***/ (function(module, exports, __nested_webpack_require_219372__) {
  47429. "use strict";
  47430. var __extends = (this && this.__extends) || (function () {
  47431. var extendStatics = Object.setPrototypeOf ||
  47432. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  47433. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  47434. return function (d, b) {
  47435. extendStatics(d, b);
  47436. function __() { this.constructor = d; }
  47437. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  47438. };
  47439. })();
  47440. Object.defineProperty(exports, "__esModule", { value: true });
  47441. var attributor_1 = __nested_webpack_require_219372__(12);
  47442. function camelize(name) {
  47443. var parts = name.split('-');
  47444. var rest = parts
  47445. .slice(1)
  47446. .map(function (part) {
  47447. return part[0].toUpperCase() + part.slice(1);
  47448. })
  47449. .join('');
  47450. return parts[0] + rest;
  47451. }
  47452. var StyleAttributor = /** @class */ (function (_super) {
  47453. __extends(StyleAttributor, _super);
  47454. function StyleAttributor() {
  47455. return _super !== null && _super.apply(this, arguments) || this;
  47456. }
  47457. StyleAttributor.keys = function (node) {
  47458. return (node.getAttribute('style') || '').split(';').map(function (value) {
  47459. var arr = value.split(':');
  47460. return arr[0].trim();
  47461. });
  47462. };
  47463. StyleAttributor.prototype.add = function (node, value) {
  47464. if (!this.canAdd(node, value))
  47465. return false;
  47466. // @ts-ignore
  47467. node.style[camelize(this.keyName)] = value;
  47468. return true;
  47469. };
  47470. StyleAttributor.prototype.remove = function (node) {
  47471. // @ts-ignore
  47472. node.style[camelize(this.keyName)] = '';
  47473. if (!node.getAttribute('style')) {
  47474. node.removeAttribute('style');
  47475. }
  47476. };
  47477. StyleAttributor.prototype.value = function (node) {
  47478. // @ts-ignore
  47479. var value = node.style[camelize(this.keyName)];
  47480. return this.canAdd(node, value) ? value : '';
  47481. };
  47482. return StyleAttributor;
  47483. }(attributor_1.default));
  47484. exports.default = StyleAttributor;
  47485. /***/ }),
  47486. /* 34 */
  47487. /***/ (function(module, exports, __webpack_require__) {
  47488. "use strict";
  47489. Object.defineProperty(exports, "__esModule", {
  47490. value: true
  47491. });
  47492. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  47493. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  47494. var Theme = function () {
  47495. function Theme(quill, options) {
  47496. _classCallCheck(this, Theme);
  47497. this.quill = quill;
  47498. this.options = options;
  47499. this.modules = {};
  47500. }
  47501. _createClass(Theme, [{
  47502. key: 'init',
  47503. value: function init() {
  47504. var _this = this;
  47505. Object.keys(this.options.modules).forEach(function (name) {
  47506. if (_this.modules[name] == null) {
  47507. _this.addModule(name);
  47508. }
  47509. });
  47510. }
  47511. }, {
  47512. key: 'addModule',
  47513. value: function addModule(name) {
  47514. var moduleClass = this.quill.constructor.import('modules/' + name);
  47515. this.modules[name] = new moduleClass(this.quill, this.options.modules[name] || {});
  47516. return this.modules[name];
  47517. }
  47518. }]);
  47519. return Theme;
  47520. }();
  47521. Theme.DEFAULTS = {
  47522. modules: {}
  47523. };
  47524. Theme.themes = {
  47525. 'default': Theme
  47526. };
  47527. exports.default = Theme;
  47528. /***/ }),
  47529. /* 35 */
  47530. /***/ (function(module, exports, __nested_webpack_require_223199__) {
  47531. "use strict";
  47532. Object.defineProperty(exports, "__esModule", {
  47533. value: true
  47534. });
  47535. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  47536. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  47537. var _parchment = __nested_webpack_require_223199__(0);
  47538. var _parchment2 = _interopRequireDefault(_parchment);
  47539. var _text = __nested_webpack_require_223199__(7);
  47540. var _text2 = _interopRequireDefault(_text);
  47541. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47542. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  47543. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  47544. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  47545. var GUARD_TEXT = '\uFEFF';
  47546. var Embed = function (_Parchment$Embed) {
  47547. _inherits(Embed, _Parchment$Embed);
  47548. function Embed(node) {
  47549. _classCallCheck(this, Embed);
  47550. var _this = _possibleConstructorReturn(this, (Embed.__proto__ || Object.getPrototypeOf(Embed)).call(this, node));
  47551. _this.contentNode = document.createElement('span');
  47552. _this.contentNode.setAttribute('contenteditable', false);
  47553. [].slice.call(_this.domNode.childNodes).forEach(function (childNode) {
  47554. _this.contentNode.appendChild(childNode);
  47555. });
  47556. _this.leftGuard = document.createTextNode(GUARD_TEXT);
  47557. _this.rightGuard = document.createTextNode(GUARD_TEXT);
  47558. _this.domNode.appendChild(_this.leftGuard);
  47559. _this.domNode.appendChild(_this.contentNode);
  47560. _this.domNode.appendChild(_this.rightGuard);
  47561. return _this;
  47562. }
  47563. _createClass(Embed, [{
  47564. key: 'index',
  47565. value: function index(node, offset) {
  47566. if (node === this.leftGuard) return 0;
  47567. if (node === this.rightGuard) return 1;
  47568. return _get(Embed.prototype.__proto__ || Object.getPrototypeOf(Embed.prototype), 'index', this).call(this, node, offset);
  47569. }
  47570. }, {
  47571. key: 'restore',
  47572. value: function restore(node) {
  47573. var range = void 0,
  47574. textNode = void 0;
  47575. var text = node.data.split(GUARD_TEXT).join('');
  47576. if (node === this.leftGuard) {
  47577. if (this.prev instanceof _text2.default) {
  47578. var prevLength = this.prev.length();
  47579. this.prev.insertAt(prevLength, text);
  47580. range = {
  47581. startNode: this.prev.domNode,
  47582. startOffset: prevLength + text.length
  47583. };
  47584. } else {
  47585. textNode = document.createTextNode(text);
  47586. this.parent.insertBefore(_parchment2.default.create(textNode), this);
  47587. range = {
  47588. startNode: textNode,
  47589. startOffset: text.length
  47590. };
  47591. }
  47592. } else if (node === this.rightGuard) {
  47593. if (this.next instanceof _text2.default) {
  47594. this.next.insertAt(0, text);
  47595. range = {
  47596. startNode: this.next.domNode,
  47597. startOffset: text.length
  47598. };
  47599. } else {
  47600. textNode = document.createTextNode(text);
  47601. this.parent.insertBefore(_parchment2.default.create(textNode), this.next);
  47602. range = {
  47603. startNode: textNode,
  47604. startOffset: text.length
  47605. };
  47606. }
  47607. }
  47608. node.data = GUARD_TEXT;
  47609. return range;
  47610. }
  47611. }, {
  47612. key: 'update',
  47613. value: function update(mutations, context) {
  47614. var _this2 = this;
  47615. mutations.forEach(function (mutation) {
  47616. if (mutation.type === 'characterData' && (mutation.target === _this2.leftGuard || mutation.target === _this2.rightGuard)) {
  47617. var range = _this2.restore(mutation.target);
  47618. if (range) context.range = range;
  47619. }
  47620. });
  47621. }
  47622. }]);
  47623. return Embed;
  47624. }(_parchment2.default.Embed);
  47625. exports.default = Embed;
  47626. /***/ }),
  47627. /* 36 */
  47628. /***/ (function(module, exports, __nested_webpack_require_228527__) {
  47629. "use strict";
  47630. Object.defineProperty(exports, "__esModule", {
  47631. value: true
  47632. });
  47633. exports.AlignStyle = exports.AlignClass = exports.AlignAttribute = undefined;
  47634. var _parchment = __nested_webpack_require_228527__(0);
  47635. var _parchment2 = _interopRequireDefault(_parchment);
  47636. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47637. var config = {
  47638. scope: _parchment2.default.Scope.BLOCK,
  47639. whitelist: ['right', 'center', 'justify']
  47640. };
  47641. var AlignAttribute = new _parchment2.default.Attributor.Attribute('align', 'align', config);
  47642. var AlignClass = new _parchment2.default.Attributor.Class('align', 'ql-align', config);
  47643. var AlignStyle = new _parchment2.default.Attributor.Style('align', 'text-align', config);
  47644. exports.AlignAttribute = AlignAttribute;
  47645. exports.AlignClass = AlignClass;
  47646. exports.AlignStyle = AlignStyle;
  47647. /***/ }),
  47648. /* 37 */
  47649. /***/ (function(module, exports, __nested_webpack_require_229442__) {
  47650. "use strict";
  47651. Object.defineProperty(exports, "__esModule", {
  47652. value: true
  47653. });
  47654. exports.BackgroundStyle = exports.BackgroundClass = undefined;
  47655. var _parchment = __nested_webpack_require_229442__(0);
  47656. var _parchment2 = _interopRequireDefault(_parchment);
  47657. var _color = __nested_webpack_require_229442__(26);
  47658. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47659. var BackgroundClass = new _parchment2.default.Attributor.Class('background', 'ql-bg', {
  47660. scope: _parchment2.default.Scope.INLINE
  47661. });
  47662. var BackgroundStyle = new _color.ColorAttributor('background', 'background-color', {
  47663. scope: _parchment2.default.Scope.INLINE
  47664. });
  47665. exports.BackgroundClass = BackgroundClass;
  47666. exports.BackgroundStyle = BackgroundStyle;
  47667. /***/ }),
  47668. /* 38 */
  47669. /***/ (function(module, exports, __nested_webpack_require_230249__) {
  47670. "use strict";
  47671. Object.defineProperty(exports, "__esModule", {
  47672. value: true
  47673. });
  47674. exports.DirectionStyle = exports.DirectionClass = exports.DirectionAttribute = undefined;
  47675. var _parchment = __nested_webpack_require_230249__(0);
  47676. var _parchment2 = _interopRequireDefault(_parchment);
  47677. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47678. var config = {
  47679. scope: _parchment2.default.Scope.BLOCK,
  47680. whitelist: ['rtl']
  47681. };
  47682. var DirectionAttribute = new _parchment2.default.Attributor.Attribute('direction', 'dir', config);
  47683. var DirectionClass = new _parchment2.default.Attributor.Class('direction', 'ql-direction', config);
  47684. var DirectionStyle = new _parchment2.default.Attributor.Style('direction', 'direction', config);
  47685. exports.DirectionAttribute = DirectionAttribute;
  47686. exports.DirectionClass = DirectionClass;
  47687. exports.DirectionStyle = DirectionStyle;
  47688. /***/ }),
  47689. /* 39 */
  47690. /***/ (function(module, exports, __nested_webpack_require_231202__) {
  47691. "use strict";
  47692. Object.defineProperty(exports, "__esModule", {
  47693. value: true
  47694. });
  47695. exports.FontClass = exports.FontStyle = undefined;
  47696. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  47697. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  47698. var _parchment = __nested_webpack_require_231202__(0);
  47699. var _parchment2 = _interopRequireDefault(_parchment);
  47700. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47701. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  47702. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  47703. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  47704. var config = {
  47705. scope: _parchment2.default.Scope.INLINE,
  47706. whitelist: ['serif', 'monospace']
  47707. };
  47708. var FontClass = new _parchment2.default.Attributor.Class('font', 'ql-font', config);
  47709. var FontStyleAttributor = function (_Parchment$Attributor) {
  47710. _inherits(FontStyleAttributor, _Parchment$Attributor);
  47711. function FontStyleAttributor() {
  47712. _classCallCheck(this, FontStyleAttributor);
  47713. return _possibleConstructorReturn(this, (FontStyleAttributor.__proto__ || Object.getPrototypeOf(FontStyleAttributor)).apply(this, arguments));
  47714. }
  47715. _createClass(FontStyleAttributor, [{
  47716. key: 'value',
  47717. value: function value(node) {
  47718. return _get(FontStyleAttributor.prototype.__proto__ || Object.getPrototypeOf(FontStyleAttributor.prototype), 'value', this).call(this, node).replace(/["']/g, '');
  47719. }
  47720. }]);
  47721. return FontStyleAttributor;
  47722. }(_parchment2.default.Attributor.Style);
  47723. var FontStyle = new FontStyleAttributor('font', 'font-family', config);
  47724. exports.FontStyle = FontStyle;
  47725. exports.FontClass = FontClass;
  47726. /***/ }),
  47727. /* 40 */
  47728. /***/ (function(module, exports, __nested_webpack_require_234578__) {
  47729. "use strict";
  47730. Object.defineProperty(exports, "__esModule", {
  47731. value: true
  47732. });
  47733. exports.SizeStyle = exports.SizeClass = undefined;
  47734. var _parchment = __nested_webpack_require_234578__(0);
  47735. var _parchment2 = _interopRequireDefault(_parchment);
  47736. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47737. var SizeClass = new _parchment2.default.Attributor.Class('size', 'ql-size', {
  47738. scope: _parchment2.default.Scope.INLINE,
  47739. whitelist: ['small', 'large', 'huge']
  47740. });
  47741. var SizeStyle = new _parchment2.default.Attributor.Style('size', 'font-size', {
  47742. scope: _parchment2.default.Scope.INLINE,
  47743. whitelist: ['10px', '18px', '32px']
  47744. });
  47745. exports.SizeClass = SizeClass;
  47746. exports.SizeStyle = SizeStyle;
  47747. /***/ }),
  47748. /* 41 */
  47749. /***/ (function(module, exports, __nested_webpack_require_235375__) {
  47750. "use strict";
  47751. module.exports = {
  47752. 'align': {
  47753. '': __nested_webpack_require_235375__(76),
  47754. 'center': __nested_webpack_require_235375__(77),
  47755. 'right': __nested_webpack_require_235375__(78),
  47756. 'justify': __nested_webpack_require_235375__(79)
  47757. },
  47758. 'background': __nested_webpack_require_235375__(80),
  47759. 'blockquote': __nested_webpack_require_235375__(81),
  47760. 'bold': __nested_webpack_require_235375__(82),
  47761. 'clean': __nested_webpack_require_235375__(83),
  47762. 'code': __nested_webpack_require_235375__(58),
  47763. 'code-block': __nested_webpack_require_235375__(58),
  47764. 'color': __nested_webpack_require_235375__(84),
  47765. 'direction': {
  47766. '': __nested_webpack_require_235375__(85),
  47767. 'rtl': __nested_webpack_require_235375__(86)
  47768. },
  47769. 'float': {
  47770. 'center': __nested_webpack_require_235375__(87),
  47771. 'full': __nested_webpack_require_235375__(88),
  47772. 'left': __nested_webpack_require_235375__(89),
  47773. 'right': __nested_webpack_require_235375__(90)
  47774. },
  47775. 'formula': __nested_webpack_require_235375__(91),
  47776. 'header': {
  47777. '1': __nested_webpack_require_235375__(92),
  47778. '2': __nested_webpack_require_235375__(93)
  47779. },
  47780. 'italic': __nested_webpack_require_235375__(94),
  47781. 'image': __nested_webpack_require_235375__(95),
  47782. 'indent': {
  47783. '+1': __nested_webpack_require_235375__(96),
  47784. '-1': __nested_webpack_require_235375__(97)
  47785. },
  47786. 'link': __nested_webpack_require_235375__(98),
  47787. 'list': {
  47788. 'ordered': __nested_webpack_require_235375__(99),
  47789. 'bullet': __nested_webpack_require_235375__(100),
  47790. 'check': __nested_webpack_require_235375__(101)
  47791. },
  47792. 'script': {
  47793. 'sub': __nested_webpack_require_235375__(102),
  47794. 'super': __nested_webpack_require_235375__(103)
  47795. },
  47796. 'strike': __nested_webpack_require_235375__(104),
  47797. 'underline': __nested_webpack_require_235375__(105),
  47798. 'video': __nested_webpack_require_235375__(106)
  47799. };
  47800. /***/ }),
  47801. /* 42 */
  47802. /***/ (function(module, exports, __nested_webpack_require_236844__) {
  47803. "use strict";
  47804. Object.defineProperty(exports, "__esModule", {
  47805. value: true
  47806. });
  47807. exports.getLastChangeIndex = exports.default = undefined;
  47808. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  47809. var _parchment = __nested_webpack_require_236844__(0);
  47810. var _parchment2 = _interopRequireDefault(_parchment);
  47811. var _quill = __nested_webpack_require_236844__(5);
  47812. var _quill2 = _interopRequireDefault(_quill);
  47813. var _module = __nested_webpack_require_236844__(9);
  47814. var _module2 = _interopRequireDefault(_module);
  47815. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47816. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  47817. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  47818. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  47819. var History = function (_Module) {
  47820. _inherits(History, _Module);
  47821. function History(quill, options) {
  47822. _classCallCheck(this, History);
  47823. var _this = _possibleConstructorReturn(this, (History.__proto__ || Object.getPrototypeOf(History)).call(this, quill, options));
  47824. _this.lastRecorded = 0;
  47825. _this.ignoreChange = false;
  47826. _this.clear();
  47827. _this.quill.on(_quill2.default.events.EDITOR_CHANGE, function (eventName, delta, oldDelta, source) {
  47828. if (eventName !== _quill2.default.events.TEXT_CHANGE || _this.ignoreChange) return;
  47829. if (!_this.options.userOnly || source === _quill2.default.sources.USER) {
  47830. _this.record(delta, oldDelta);
  47831. } else {
  47832. _this.transform(delta);
  47833. }
  47834. });
  47835. _this.quill.keyboard.addBinding({ key: 'Z', shortKey: true }, _this.undo.bind(_this));
  47836. _this.quill.keyboard.addBinding({ key: 'Z', shortKey: true, shiftKey: true }, _this.redo.bind(_this));
  47837. if (/Win/i.test(navigator.platform)) {
  47838. _this.quill.keyboard.addBinding({ key: 'Y', shortKey: true }, _this.redo.bind(_this));
  47839. }
  47840. return _this;
  47841. }
  47842. _createClass(History, [{
  47843. key: 'change',
  47844. value: function change(source, dest) {
  47845. if (this.stack[source].length === 0) return;
  47846. var delta = this.stack[source].pop();
  47847. this.stack[dest].push(delta);
  47848. this.lastRecorded = 0;
  47849. this.ignoreChange = true;
  47850. this.quill.updateContents(delta[source], _quill2.default.sources.USER);
  47851. this.ignoreChange = false;
  47852. var index = getLastChangeIndex(delta[source]);
  47853. this.quill.setSelection(index);
  47854. }
  47855. }, {
  47856. key: 'clear',
  47857. value: function clear() {
  47858. this.stack = { undo: [], redo: [] };
  47859. }
  47860. }, {
  47861. key: 'cutoff',
  47862. value: function cutoff() {
  47863. this.lastRecorded = 0;
  47864. }
  47865. }, {
  47866. key: 'record',
  47867. value: function record(changeDelta, oldDelta) {
  47868. if (changeDelta.ops.length === 0) return;
  47869. this.stack.redo = [];
  47870. var undoDelta = this.quill.getContents().diff(oldDelta);
  47871. var timestamp = Date.now();
  47872. if (this.lastRecorded + this.options.delay > timestamp && this.stack.undo.length > 0) {
  47873. var delta = this.stack.undo.pop();
  47874. undoDelta = undoDelta.compose(delta.undo);
  47875. changeDelta = delta.redo.compose(changeDelta);
  47876. } else {
  47877. this.lastRecorded = timestamp;
  47878. }
  47879. this.stack.undo.push({
  47880. redo: changeDelta,
  47881. undo: undoDelta
  47882. });
  47883. if (this.stack.undo.length > this.options.maxStack) {
  47884. this.stack.undo.shift();
  47885. }
  47886. }
  47887. }, {
  47888. key: 'redo',
  47889. value: function redo() {
  47890. this.change('redo', 'undo');
  47891. }
  47892. }, {
  47893. key: 'transform',
  47894. value: function transform(delta) {
  47895. this.stack.undo.forEach(function (change) {
  47896. change.undo = delta.transform(change.undo, true);
  47897. change.redo = delta.transform(change.redo, true);
  47898. });
  47899. this.stack.redo.forEach(function (change) {
  47900. change.undo = delta.transform(change.undo, true);
  47901. change.redo = delta.transform(change.redo, true);
  47902. });
  47903. }
  47904. }, {
  47905. key: 'undo',
  47906. value: function undo() {
  47907. this.change('undo', 'redo');
  47908. }
  47909. }]);
  47910. return History;
  47911. }(_module2.default);
  47912. History.DEFAULTS = {
  47913. delay: 1000,
  47914. maxStack: 100,
  47915. userOnly: false
  47916. };
  47917. function endsWithNewlineChange(delta) {
  47918. var lastOp = delta.ops[delta.ops.length - 1];
  47919. if (lastOp == null) return false;
  47920. if (lastOp.insert != null) {
  47921. return typeof lastOp.insert === 'string' && lastOp.insert.endsWith('\n');
  47922. }
  47923. if (lastOp.attributes != null) {
  47924. return Object.keys(lastOp.attributes).some(function (attr) {
  47925. return _parchment2.default.query(attr, _parchment2.default.Scope.BLOCK) != null;
  47926. });
  47927. }
  47928. return false;
  47929. }
  47930. function getLastChangeIndex(delta) {
  47931. var deleteLength = delta.reduce(function (length, op) {
  47932. length += op.delete || 0;
  47933. return length;
  47934. }, 0);
  47935. var changeIndex = delta.length() - deleteLength;
  47936. if (endsWithNewlineChange(delta)) {
  47937. changeIndex -= 1;
  47938. }
  47939. return changeIndex;
  47940. }
  47941. exports.default = History;
  47942. exports.getLastChangeIndex = getLastChangeIndex;
  47943. /***/ }),
  47944. /* 43 */
  47945. /***/ (function(module, exports, __nested_webpack_require_242979__) {
  47946. "use strict";
  47947. Object.defineProperty(exports, "__esModule", {
  47948. value: true
  47949. });
  47950. exports.default = exports.BaseTooltip = undefined;
  47951. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  47952. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  47953. var _extend = __nested_webpack_require_242979__(3);
  47954. var _extend2 = _interopRequireDefault(_extend);
  47955. var _quillDelta = __nested_webpack_require_242979__(2);
  47956. var _quillDelta2 = _interopRequireDefault(_quillDelta);
  47957. var _emitter = __nested_webpack_require_242979__(8);
  47958. var _emitter2 = _interopRequireDefault(_emitter);
  47959. var _keyboard = __nested_webpack_require_242979__(23);
  47960. var _keyboard2 = _interopRequireDefault(_keyboard);
  47961. var _theme = __nested_webpack_require_242979__(34);
  47962. var _theme2 = _interopRequireDefault(_theme);
  47963. var _colorPicker = __nested_webpack_require_242979__(59);
  47964. var _colorPicker2 = _interopRequireDefault(_colorPicker);
  47965. var _iconPicker = __nested_webpack_require_242979__(60);
  47966. var _iconPicker2 = _interopRequireDefault(_iconPicker);
  47967. var _picker = __nested_webpack_require_242979__(28);
  47968. var _picker2 = _interopRequireDefault(_picker);
  47969. var _tooltip = __nested_webpack_require_242979__(61);
  47970. var _tooltip2 = _interopRequireDefault(_tooltip);
  47971. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47972. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  47973. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  47974. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  47975. var ALIGNS = [false, 'center', 'right', 'justify'];
  47976. var COLORS = ["#000000", "#e60000", "#ff9900", "#ffff00", "#008a00", "#0066cc", "#9933ff", "#ffffff", "#facccc", "#ffebcc", "#ffffcc", "#cce8cc", "#cce0f5", "#ebd6ff", "#bbbbbb", "#f06666", "#ffc266", "#ffff66", "#66b966", "#66a3e0", "#c285ff", "#888888", "#a10000", "#b26b00", "#b2b200", "#006100", "#0047b2", "#6b24b2", "#444444", "#5c0000", "#663d00", "#666600", "#003700", "#002966", "#3d1466"];
  47977. var FONTS = [false, 'serif', 'monospace'];
  47978. var HEADERS = ['1', '2', '3', false];
  47979. var SIZES = ['small', false, 'large', 'huge'];
  47980. var BaseTheme = function (_Theme) {
  47981. _inherits(BaseTheme, _Theme);
  47982. function BaseTheme(quill, options) {
  47983. _classCallCheck(this, BaseTheme);
  47984. var _this = _possibleConstructorReturn(this, (BaseTheme.__proto__ || Object.getPrototypeOf(BaseTheme)).call(this, quill, options));
  47985. var listener = function listener(e) {
  47986. if (!document.body.contains(quill.root)) {
  47987. return document.body.removeEventListener('click', listener);
  47988. }
  47989. if (_this.tooltip != null && !_this.tooltip.root.contains(e.target) && document.activeElement !== _this.tooltip.textbox && !_this.quill.hasFocus()) {
  47990. _this.tooltip.hide();
  47991. }
  47992. if (_this.pickers != null) {
  47993. _this.pickers.forEach(function (picker) {
  47994. if (!picker.container.contains(e.target)) {
  47995. picker.close();
  47996. }
  47997. });
  47998. }
  47999. };
  48000. quill.emitter.listenDOM('click', document.body, listener);
  48001. return _this;
  48002. }
  48003. _createClass(BaseTheme, [{
  48004. key: 'addModule',
  48005. value: function addModule(name) {
  48006. var module = _get(BaseTheme.prototype.__proto__ || Object.getPrototypeOf(BaseTheme.prototype), 'addModule', this).call(this, name);
  48007. if (name === 'toolbar') {
  48008. this.extendToolbar(module);
  48009. }
  48010. return module;
  48011. }
  48012. }, {
  48013. key: 'buildButtons',
  48014. value: function buildButtons(buttons, icons) {
  48015. buttons.forEach(function (button) {
  48016. var className = button.getAttribute('class') || '';
  48017. className.split(/\s+/).forEach(function (name) {
  48018. if (!name.startsWith('ql-')) return;
  48019. name = name.slice('ql-'.length);
  48020. if (icons[name] == null) return;
  48021. if (name === 'direction') {
  48022. button.innerHTML = icons[name][''] + icons[name]['rtl'];
  48023. } else if (typeof icons[name] === 'string') {
  48024. button.innerHTML = icons[name];
  48025. } else {
  48026. var value = button.value || '';
  48027. if (value != null && icons[name][value]) {
  48028. button.innerHTML = icons[name][value];
  48029. }
  48030. }
  48031. });
  48032. });
  48033. }
  48034. }, {
  48035. key: 'buildPickers',
  48036. value: function buildPickers(selects, icons) {
  48037. var _this2 = this;
  48038. this.pickers = selects.map(function (select) {
  48039. if (select.classList.contains('ql-align')) {
  48040. if (select.querySelector('option') == null) {
  48041. fillSelect(select, ALIGNS);
  48042. }
  48043. return new _iconPicker2.default(select, icons.align);
  48044. } else if (select.classList.contains('ql-background') || select.classList.contains('ql-color')) {
  48045. var format = select.classList.contains('ql-background') ? 'background' : 'color';
  48046. if (select.querySelector('option') == null) {
  48047. fillSelect(select, COLORS, format === 'background' ? '#ffffff' : '#000000');
  48048. }
  48049. return new _colorPicker2.default(select, icons[format]);
  48050. } else {
  48051. if (select.querySelector('option') == null) {
  48052. if (select.classList.contains('ql-font')) {
  48053. fillSelect(select, FONTS);
  48054. } else if (select.classList.contains('ql-header')) {
  48055. fillSelect(select, HEADERS);
  48056. } else if (select.classList.contains('ql-size')) {
  48057. fillSelect(select, SIZES);
  48058. }
  48059. }
  48060. return new _picker2.default(select);
  48061. }
  48062. });
  48063. var update = function update() {
  48064. _this2.pickers.forEach(function (picker) {
  48065. picker.update();
  48066. });
  48067. };
  48068. this.quill.on(_emitter2.default.events.EDITOR_CHANGE, update);
  48069. }
  48070. }]);
  48071. return BaseTheme;
  48072. }(_theme2.default);
  48073. BaseTheme.DEFAULTS = (0, _extend2.default)(true, {}, _theme2.default.DEFAULTS, {
  48074. modules: {
  48075. toolbar: {
  48076. handlers: {
  48077. formula: function formula() {
  48078. this.quill.theme.tooltip.edit('formula');
  48079. },
  48080. image: function image() {
  48081. var _this3 = this;
  48082. var fileInput = this.container.querySelector('input.ql-image[type=file]');
  48083. if (fileInput == null) {
  48084. fileInput = document.createElement('input');
  48085. fileInput.setAttribute('type', 'file');
  48086. fileInput.setAttribute('accept', 'image/png, image/gif, image/jpeg, image/bmp, image/x-icon');
  48087. fileInput.classList.add('ql-image');
  48088. fileInput.addEventListener('change', function () {
  48089. if (fileInput.files != null && fileInput.files[0] != null) {
  48090. var reader = new FileReader();
  48091. reader.onload = function (e) {
  48092. var range = _this3.quill.getSelection(true);
  48093. _this3.quill.updateContents(new _quillDelta2.default().retain(range.index).delete(range.length).insert({ image: e.target.result }), _emitter2.default.sources.USER);
  48094. _this3.quill.setSelection(range.index + 1, _emitter2.default.sources.SILENT);
  48095. fileInput.value = "";
  48096. };
  48097. reader.readAsDataURL(fileInput.files[0]);
  48098. }
  48099. });
  48100. this.container.appendChild(fileInput);
  48101. }
  48102. fileInput.click();
  48103. },
  48104. video: function video() {
  48105. this.quill.theme.tooltip.edit('video');
  48106. }
  48107. }
  48108. }
  48109. }
  48110. });
  48111. var BaseTooltip = function (_Tooltip) {
  48112. _inherits(BaseTooltip, _Tooltip);
  48113. function BaseTooltip(quill, boundsContainer) {
  48114. _classCallCheck(this, BaseTooltip);
  48115. var _this4 = _possibleConstructorReturn(this, (BaseTooltip.__proto__ || Object.getPrototypeOf(BaseTooltip)).call(this, quill, boundsContainer));
  48116. _this4.textbox = _this4.root.querySelector('input[type="text"]');
  48117. _this4.listen();
  48118. return _this4;
  48119. }
  48120. _createClass(BaseTooltip, [{
  48121. key: 'listen',
  48122. value: function listen() {
  48123. var _this5 = this;
  48124. this.textbox.addEventListener('keydown', function (event) {
  48125. if (_keyboard2.default.match(event, 'enter')) {
  48126. _this5.save();
  48127. event.preventDefault();
  48128. } else if (_keyboard2.default.match(event, 'escape')) {
  48129. _this5.cancel();
  48130. event.preventDefault();
  48131. }
  48132. });
  48133. }
  48134. }, {
  48135. key: 'cancel',
  48136. value: function cancel() {
  48137. this.hide();
  48138. }
  48139. }, {
  48140. key: 'edit',
  48141. value: function edit() {
  48142. var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'link';
  48143. var preview = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  48144. this.root.classList.remove('ql-hidden');
  48145. this.root.classList.add('ql-editing');
  48146. if (preview != null) {
  48147. this.textbox.value = preview;
  48148. } else if (mode !== this.root.getAttribute('data-mode')) {
  48149. this.textbox.value = '';
  48150. }
  48151. this.position(this.quill.getBounds(this.quill.selection.savedRange));
  48152. this.textbox.select();
  48153. this.textbox.setAttribute('placeholder', this.textbox.getAttribute('data-' + mode) || '');
  48154. this.root.setAttribute('data-mode', mode);
  48155. }
  48156. }, {
  48157. key: 'restoreFocus',
  48158. value: function restoreFocus() {
  48159. var scrollTop = this.quill.scrollingContainer.scrollTop;
  48160. this.quill.focus();
  48161. this.quill.scrollingContainer.scrollTop = scrollTop;
  48162. }
  48163. }, {
  48164. key: 'save',
  48165. value: function save() {
  48166. var value = this.textbox.value;
  48167. switch (this.root.getAttribute('data-mode')) {
  48168. case 'link':
  48169. {
  48170. var scrollTop = this.quill.root.scrollTop;
  48171. if (this.linkRange) {
  48172. this.quill.formatText(this.linkRange, 'link', value, _emitter2.default.sources.USER);
  48173. delete this.linkRange;
  48174. } else {
  48175. this.restoreFocus();
  48176. this.quill.format('link', value, _emitter2.default.sources.USER);
  48177. }
  48178. this.quill.root.scrollTop = scrollTop;
  48179. break;
  48180. }
  48181. case 'video':
  48182. {
  48183. value = extractVideoUrl(value);
  48184. } // eslint-disable-next-line no-fallthrough
  48185. case 'formula':
  48186. {
  48187. if (!value) break;
  48188. var range = this.quill.getSelection(true);
  48189. if (range != null) {
  48190. var index = range.index + range.length;
  48191. this.quill.insertEmbed(index, this.root.getAttribute('data-mode'), value, _emitter2.default.sources.USER);
  48192. if (this.root.getAttribute('data-mode') === 'formula') {
  48193. this.quill.insertText(index + 1, ' ', _emitter2.default.sources.USER);
  48194. }
  48195. this.quill.setSelection(index + 2, _emitter2.default.sources.USER);
  48196. }
  48197. break;
  48198. }
  48199. default:
  48200. }
  48201. this.textbox.value = '';
  48202. this.hide();
  48203. }
  48204. }]);
  48205. return BaseTooltip;
  48206. }(_tooltip2.default);
  48207. function extractVideoUrl(url) {
  48208. var match = url.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || url.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
  48209. if (match) {
  48210. return (match[1] || 'https') + '://www.youtube.com/embed/' + match[2] + '?showinfo=0';
  48211. }
  48212. if (match = url.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) {
  48213. // eslint-disable-line no-cond-assign
  48214. return (match[1] || 'https') + '://player.vimeo.com/video/' + match[2] + '/';
  48215. }
  48216. return url;
  48217. }
  48218. function fillSelect(select, values) {
  48219. var defaultValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  48220. values.forEach(function (value) {
  48221. var option = document.createElement('option');
  48222. if (value === defaultValue) {
  48223. option.setAttribute('selected', 'selected');
  48224. } else {
  48225. option.setAttribute('value', value);
  48226. }
  48227. select.appendChild(option);
  48228. });
  48229. }
  48230. exports.BaseTooltip = BaseTooltip;
  48231. exports.default = BaseTheme;
  48232. /***/ }),
  48233. /* 44 */
  48234. /***/ (function(module, exports, __webpack_require__) {
  48235. "use strict";
  48236. Object.defineProperty(exports, "__esModule", { value: true });
  48237. var LinkedList = /** @class */ (function () {
  48238. function LinkedList() {
  48239. this.head = this.tail = null;
  48240. this.length = 0;
  48241. }
  48242. LinkedList.prototype.append = function () {
  48243. var nodes = [];
  48244. for (var _i = 0; _i < arguments.length; _i++) {
  48245. nodes[_i] = arguments[_i];
  48246. }
  48247. this.insertBefore(nodes[0], null);
  48248. if (nodes.length > 1) {
  48249. this.append.apply(this, nodes.slice(1));
  48250. }
  48251. };
  48252. LinkedList.prototype.contains = function (node) {
  48253. var cur, next = this.iterator();
  48254. while ((cur = next())) {
  48255. if (cur === node)
  48256. return true;
  48257. }
  48258. return false;
  48259. };
  48260. LinkedList.prototype.insertBefore = function (node, refNode) {
  48261. if (!node)
  48262. return;
  48263. node.next = refNode;
  48264. if (refNode != null) {
  48265. node.prev = refNode.prev;
  48266. if (refNode.prev != null) {
  48267. refNode.prev.next = node;
  48268. }
  48269. refNode.prev = node;
  48270. if (refNode === this.head) {
  48271. this.head = node;
  48272. }
  48273. }
  48274. else if (this.tail != null) {
  48275. this.tail.next = node;
  48276. node.prev = this.tail;
  48277. this.tail = node;
  48278. }
  48279. else {
  48280. node.prev = null;
  48281. this.head = this.tail = node;
  48282. }
  48283. this.length += 1;
  48284. };
  48285. LinkedList.prototype.offset = function (target) {
  48286. var index = 0, cur = this.head;
  48287. while (cur != null) {
  48288. if (cur === target)
  48289. return index;
  48290. index += cur.length();
  48291. cur = cur.next;
  48292. }
  48293. return -1;
  48294. };
  48295. LinkedList.prototype.remove = function (node) {
  48296. if (!this.contains(node))
  48297. return;
  48298. if (node.prev != null)
  48299. node.prev.next = node.next;
  48300. if (node.next != null)
  48301. node.next.prev = node.prev;
  48302. if (node === this.head)
  48303. this.head = node.next;
  48304. if (node === this.tail)
  48305. this.tail = node.prev;
  48306. this.length -= 1;
  48307. };
  48308. LinkedList.prototype.iterator = function (curNode) {
  48309. if (curNode === void 0) { curNode = this.head; }
  48310. // TODO use yield when we can
  48311. return function () {
  48312. var ret = curNode;
  48313. if (curNode != null)
  48314. curNode = curNode.next;
  48315. return ret;
  48316. };
  48317. };
  48318. LinkedList.prototype.find = function (index, inclusive) {
  48319. if (inclusive === void 0) { inclusive = false; }
  48320. var cur, next = this.iterator();
  48321. while ((cur = next())) {
  48322. var length = cur.length();
  48323. if (index < length ||
  48324. (inclusive && index === length && (cur.next == null || cur.next.length() !== 0))) {
  48325. return [cur, index];
  48326. }
  48327. index -= length;
  48328. }
  48329. return [null, 0];
  48330. };
  48331. LinkedList.prototype.forEach = function (callback) {
  48332. var cur, next = this.iterator();
  48333. while ((cur = next())) {
  48334. callback(cur);
  48335. }
  48336. };
  48337. LinkedList.prototype.forEachAt = function (index, length, callback) {
  48338. if (length <= 0)
  48339. return;
  48340. var _a = this.find(index), startNode = _a[0], offset = _a[1];
  48341. var cur, curIndex = index - offset, next = this.iterator(startNode);
  48342. while ((cur = next()) && curIndex < index + length) {
  48343. var curLength = cur.length();
  48344. if (index > curIndex) {
  48345. callback(cur, index - curIndex, Math.min(length, curIndex + curLength - index));
  48346. }
  48347. else {
  48348. callback(cur, 0, Math.min(curLength, index + length - curIndex));
  48349. }
  48350. curIndex += curLength;
  48351. }
  48352. };
  48353. LinkedList.prototype.map = function (callback) {
  48354. return this.reduce(function (memo, cur) {
  48355. memo.push(callback(cur));
  48356. return memo;
  48357. }, []);
  48358. };
  48359. LinkedList.prototype.reduce = function (callback, memo) {
  48360. var cur, next = this.iterator();
  48361. while ((cur = next())) {
  48362. memo = callback(memo, cur);
  48363. }
  48364. return memo;
  48365. };
  48366. return LinkedList;
  48367. }());
  48368. exports.default = LinkedList;
  48369. /***/ }),
  48370. /* 45 */
  48371. /***/ (function(module, exports, __nested_webpack_require_260796__) {
  48372. "use strict";
  48373. var __extends = (this && this.__extends) || (function () {
  48374. var extendStatics = Object.setPrototypeOf ||
  48375. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  48376. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  48377. return function (d, b) {
  48378. extendStatics(d, b);
  48379. function __() { this.constructor = d; }
  48380. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  48381. };
  48382. })();
  48383. Object.defineProperty(exports, "__esModule", { value: true });
  48384. var container_1 = __nested_webpack_require_260796__(17);
  48385. var Registry = __nested_webpack_require_260796__(1);
  48386. var OBSERVER_CONFIG = {
  48387. attributes: true,
  48388. characterData: true,
  48389. characterDataOldValue: true,
  48390. childList: true,
  48391. subtree: true,
  48392. };
  48393. var MAX_OPTIMIZE_ITERATIONS = 100;
  48394. var ScrollBlot = /** @class */ (function (_super) {
  48395. __extends(ScrollBlot, _super);
  48396. function ScrollBlot(node) {
  48397. var _this = _super.call(this, node) || this;
  48398. _this.scroll = _this;
  48399. _this.observer = new MutationObserver(function (mutations) {
  48400. _this.update(mutations);
  48401. });
  48402. _this.observer.observe(_this.domNode, OBSERVER_CONFIG);
  48403. _this.attach();
  48404. return _this;
  48405. }
  48406. ScrollBlot.prototype.detach = function () {
  48407. _super.prototype.detach.call(this);
  48408. this.observer.disconnect();
  48409. };
  48410. ScrollBlot.prototype.deleteAt = function (index, length) {
  48411. this.update();
  48412. if (index === 0 && length === this.length()) {
  48413. this.children.forEach(function (child) {
  48414. child.remove();
  48415. });
  48416. }
  48417. else {
  48418. _super.prototype.deleteAt.call(this, index, length);
  48419. }
  48420. };
  48421. ScrollBlot.prototype.formatAt = function (index, length, name, value) {
  48422. this.update();
  48423. _super.prototype.formatAt.call(this, index, length, name, value);
  48424. };
  48425. ScrollBlot.prototype.insertAt = function (index, value, def) {
  48426. this.update();
  48427. _super.prototype.insertAt.call(this, index, value, def);
  48428. };
  48429. ScrollBlot.prototype.optimize = function (mutations, context) {
  48430. var _this = this;
  48431. if (mutations === void 0) { mutations = []; }
  48432. if (context === void 0) { context = {}; }
  48433. _super.prototype.optimize.call(this, context);
  48434. // We must modify mutations directly, cannot make copy and then modify
  48435. var records = [].slice.call(this.observer.takeRecords());
  48436. // Array.push currently seems to be implemented by a non-tail recursive function
  48437. // so we cannot just mutations.push.apply(mutations, this.observer.takeRecords());
  48438. while (records.length > 0)
  48439. mutations.push(records.pop());
  48440. // TODO use WeakMap
  48441. var mark = function (blot, markParent) {
  48442. if (markParent === void 0) { markParent = true; }
  48443. if (blot == null || blot === _this)
  48444. return;
  48445. if (blot.domNode.parentNode == null)
  48446. return;
  48447. // @ts-ignore
  48448. if (blot.domNode[Registry.DATA_KEY].mutations == null) {
  48449. // @ts-ignore
  48450. blot.domNode[Registry.DATA_KEY].mutations = [];
  48451. }
  48452. if (markParent)
  48453. mark(blot.parent);
  48454. };
  48455. var optimize = function (blot) {
  48456. // Post-order traversal
  48457. if (
  48458. // @ts-ignore
  48459. blot.domNode[Registry.DATA_KEY] == null ||
  48460. // @ts-ignore
  48461. blot.domNode[Registry.DATA_KEY].mutations == null) {
  48462. return;
  48463. }
  48464. if (blot instanceof container_1.default) {
  48465. blot.children.forEach(optimize);
  48466. }
  48467. blot.optimize(context);
  48468. };
  48469. var remaining = mutations;
  48470. for (var i = 0; remaining.length > 0; i += 1) {
  48471. if (i >= MAX_OPTIMIZE_ITERATIONS) {
  48472. throw new Error('[Parchment] Maximum optimize iterations reached');
  48473. }
  48474. remaining.forEach(function (mutation) {
  48475. var blot = Registry.find(mutation.target, true);
  48476. if (blot == null)
  48477. return;
  48478. if (blot.domNode === mutation.target) {
  48479. if (mutation.type === 'childList') {
  48480. mark(Registry.find(mutation.previousSibling, false));
  48481. [].forEach.call(mutation.addedNodes, function (node) {
  48482. var child = Registry.find(node, false);
  48483. mark(child, false);
  48484. if (child instanceof container_1.default) {
  48485. child.children.forEach(function (grandChild) {
  48486. mark(grandChild, false);
  48487. });
  48488. }
  48489. });
  48490. }
  48491. else if (mutation.type === 'attributes') {
  48492. mark(blot.prev);
  48493. }
  48494. }
  48495. mark(blot);
  48496. });
  48497. this.children.forEach(optimize);
  48498. remaining = [].slice.call(this.observer.takeRecords());
  48499. records = remaining.slice();
  48500. while (records.length > 0)
  48501. mutations.push(records.pop());
  48502. }
  48503. };
  48504. ScrollBlot.prototype.update = function (mutations, context) {
  48505. var _this = this;
  48506. if (context === void 0) { context = {}; }
  48507. mutations = mutations || this.observer.takeRecords();
  48508. // TODO use WeakMap
  48509. mutations
  48510. .map(function (mutation) {
  48511. var blot = Registry.find(mutation.target, true);
  48512. if (blot == null)
  48513. return null;
  48514. // @ts-ignore
  48515. if (blot.domNode[Registry.DATA_KEY].mutations == null) {
  48516. // @ts-ignore
  48517. blot.domNode[Registry.DATA_KEY].mutations = [mutation];
  48518. return blot;
  48519. }
  48520. else {
  48521. // @ts-ignore
  48522. blot.domNode[Registry.DATA_KEY].mutations.push(mutation);
  48523. return null;
  48524. }
  48525. })
  48526. .forEach(function (blot) {
  48527. if (blot == null ||
  48528. blot === _this ||
  48529. //@ts-ignore
  48530. blot.domNode[Registry.DATA_KEY] == null)
  48531. return;
  48532. // @ts-ignore
  48533. blot.update(blot.domNode[Registry.DATA_KEY].mutations || [], context);
  48534. });
  48535. // @ts-ignore
  48536. if (this.domNode[Registry.DATA_KEY].mutations != null) {
  48537. // @ts-ignore
  48538. _super.prototype.update.call(this, this.domNode[Registry.DATA_KEY].mutations, context);
  48539. }
  48540. this.optimize(mutations, context);
  48541. };
  48542. ScrollBlot.blotName = 'scroll';
  48543. ScrollBlot.defaultChild = 'block';
  48544. ScrollBlot.scope = Registry.Scope.BLOCK_BLOT;
  48545. ScrollBlot.tagName = 'DIV';
  48546. return ScrollBlot;
  48547. }(container_1.default));
  48548. exports.default = ScrollBlot;
  48549. /***/ }),
  48550. /* 46 */
  48551. /***/ (function(module, exports, __nested_webpack_require_267910__) {
  48552. "use strict";
  48553. var __extends = (this && this.__extends) || (function () {
  48554. var extendStatics = Object.setPrototypeOf ||
  48555. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  48556. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  48557. return function (d, b) {
  48558. extendStatics(d, b);
  48559. function __() { this.constructor = d; }
  48560. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  48561. };
  48562. })();
  48563. Object.defineProperty(exports, "__esModule", { value: true });
  48564. var format_1 = __nested_webpack_require_267910__(18);
  48565. var Registry = __nested_webpack_require_267910__(1);
  48566. // Shallow object comparison
  48567. function isEqual(obj1, obj2) {
  48568. if (Object.keys(obj1).length !== Object.keys(obj2).length)
  48569. return false;
  48570. // @ts-ignore
  48571. for (var prop in obj1) {
  48572. // @ts-ignore
  48573. if (obj1[prop] !== obj2[prop])
  48574. return false;
  48575. }
  48576. return true;
  48577. }
  48578. var InlineBlot = /** @class */ (function (_super) {
  48579. __extends(InlineBlot, _super);
  48580. function InlineBlot() {
  48581. return _super !== null && _super.apply(this, arguments) || this;
  48582. }
  48583. InlineBlot.formats = function (domNode) {
  48584. if (domNode.tagName === InlineBlot.tagName)
  48585. return undefined;
  48586. return _super.formats.call(this, domNode);
  48587. };
  48588. InlineBlot.prototype.format = function (name, value) {
  48589. var _this = this;
  48590. if (name === this.statics.blotName && !value) {
  48591. this.children.forEach(function (child) {
  48592. if (!(child instanceof format_1.default)) {
  48593. child = child.wrap(InlineBlot.blotName, true);
  48594. }
  48595. _this.attributes.copy(child);
  48596. });
  48597. this.unwrap();
  48598. }
  48599. else {
  48600. _super.prototype.format.call(this, name, value);
  48601. }
  48602. };
  48603. InlineBlot.prototype.formatAt = function (index, length, name, value) {
  48604. if (this.formats()[name] != null || Registry.query(name, Registry.Scope.ATTRIBUTE)) {
  48605. var blot = this.isolate(index, length);
  48606. blot.format(name, value);
  48607. }
  48608. else {
  48609. _super.prototype.formatAt.call(this, index, length, name, value);
  48610. }
  48611. };
  48612. InlineBlot.prototype.optimize = function (context) {
  48613. _super.prototype.optimize.call(this, context);
  48614. var formats = this.formats();
  48615. if (Object.keys(formats).length === 0) {
  48616. return this.unwrap(); // unformatted span
  48617. }
  48618. var next = this.next;
  48619. if (next instanceof InlineBlot && next.prev === this && isEqual(formats, next.formats())) {
  48620. next.moveChildren(this);
  48621. next.remove();
  48622. }
  48623. };
  48624. InlineBlot.blotName = 'inline';
  48625. InlineBlot.scope = Registry.Scope.INLINE_BLOT;
  48626. InlineBlot.tagName = 'SPAN';
  48627. return InlineBlot;
  48628. }(format_1.default));
  48629. exports.default = InlineBlot;
  48630. /***/ }),
  48631. /* 47 */
  48632. /***/ (function(module, exports, __nested_webpack_require_270902__) {
  48633. "use strict";
  48634. var __extends = (this && this.__extends) || (function () {
  48635. var extendStatics = Object.setPrototypeOf ||
  48636. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  48637. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  48638. return function (d, b) {
  48639. extendStatics(d, b);
  48640. function __() { this.constructor = d; }
  48641. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  48642. };
  48643. })();
  48644. Object.defineProperty(exports, "__esModule", { value: true });
  48645. var format_1 = __nested_webpack_require_270902__(18);
  48646. var Registry = __nested_webpack_require_270902__(1);
  48647. var BlockBlot = /** @class */ (function (_super) {
  48648. __extends(BlockBlot, _super);
  48649. function BlockBlot() {
  48650. return _super !== null && _super.apply(this, arguments) || this;
  48651. }
  48652. BlockBlot.formats = function (domNode) {
  48653. var tagName = Registry.query(BlockBlot.blotName).tagName;
  48654. if (domNode.tagName === tagName)
  48655. return undefined;
  48656. return _super.formats.call(this, domNode);
  48657. };
  48658. BlockBlot.prototype.format = function (name, value) {
  48659. if (Registry.query(name, Registry.Scope.BLOCK) == null) {
  48660. return;
  48661. }
  48662. else if (name === this.statics.blotName && !value) {
  48663. this.replaceWith(BlockBlot.blotName);
  48664. }
  48665. else {
  48666. _super.prototype.format.call(this, name, value);
  48667. }
  48668. };
  48669. BlockBlot.prototype.formatAt = function (index, length, name, value) {
  48670. if (Registry.query(name, Registry.Scope.BLOCK) != null) {
  48671. this.format(name, value);
  48672. }
  48673. else {
  48674. _super.prototype.formatAt.call(this, index, length, name, value);
  48675. }
  48676. };
  48677. BlockBlot.prototype.insertAt = function (index, value, def) {
  48678. if (def == null || Registry.query(value, Registry.Scope.INLINE) != null) {
  48679. // Insert text or inline
  48680. _super.prototype.insertAt.call(this, index, value, def);
  48681. }
  48682. else {
  48683. var after = this.split(index);
  48684. var blot = Registry.create(value, def);
  48685. after.parent.insertBefore(blot, after);
  48686. }
  48687. };
  48688. BlockBlot.prototype.update = function (mutations, context) {
  48689. if (navigator.userAgent.match(/Trident/)) {
  48690. this.build();
  48691. }
  48692. else {
  48693. _super.prototype.update.call(this, mutations, context);
  48694. }
  48695. };
  48696. BlockBlot.blotName = 'block';
  48697. BlockBlot.scope = Registry.Scope.BLOCK_BLOT;
  48698. BlockBlot.tagName = 'P';
  48699. return BlockBlot;
  48700. }(format_1.default));
  48701. exports.default = BlockBlot;
  48702. /***/ }),
  48703. /* 48 */
  48704. /***/ (function(module, exports, __nested_webpack_require_273610__) {
  48705. "use strict";
  48706. var __extends = (this && this.__extends) || (function () {
  48707. var extendStatics = Object.setPrototypeOf ||
  48708. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  48709. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  48710. return function (d, b) {
  48711. extendStatics(d, b);
  48712. function __() { this.constructor = d; }
  48713. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  48714. };
  48715. })();
  48716. Object.defineProperty(exports, "__esModule", { value: true });
  48717. var leaf_1 = __nested_webpack_require_273610__(19);
  48718. var EmbedBlot = /** @class */ (function (_super) {
  48719. __extends(EmbedBlot, _super);
  48720. function EmbedBlot() {
  48721. return _super !== null && _super.apply(this, arguments) || this;
  48722. }
  48723. EmbedBlot.formats = function (domNode) {
  48724. return undefined;
  48725. };
  48726. EmbedBlot.prototype.format = function (name, value) {
  48727. // super.formatAt wraps, which is what we want in general,
  48728. // but this allows subclasses to overwrite for formats
  48729. // that just apply to particular embeds
  48730. _super.prototype.formatAt.call(this, 0, this.length(), name, value);
  48731. };
  48732. EmbedBlot.prototype.formatAt = function (index, length, name, value) {
  48733. if (index === 0 && length === this.length()) {
  48734. this.format(name, value);
  48735. }
  48736. else {
  48737. _super.prototype.formatAt.call(this, index, length, name, value);
  48738. }
  48739. };
  48740. EmbedBlot.prototype.formats = function () {
  48741. return this.statics.formats(this.domNode);
  48742. };
  48743. return EmbedBlot;
  48744. }(leaf_1.default));
  48745. exports.default = EmbedBlot;
  48746. /***/ }),
  48747. /* 49 */
  48748. /***/ (function(module, exports, __nested_webpack_require_275351__) {
  48749. "use strict";
  48750. var __extends = (this && this.__extends) || (function () {
  48751. var extendStatics = Object.setPrototypeOf ||
  48752. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  48753. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  48754. return function (d, b) {
  48755. extendStatics(d, b);
  48756. function __() { this.constructor = d; }
  48757. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  48758. };
  48759. })();
  48760. Object.defineProperty(exports, "__esModule", { value: true });
  48761. var leaf_1 = __nested_webpack_require_275351__(19);
  48762. var Registry = __nested_webpack_require_275351__(1);
  48763. var TextBlot = /** @class */ (function (_super) {
  48764. __extends(TextBlot, _super);
  48765. function TextBlot(node) {
  48766. var _this = _super.call(this, node) || this;
  48767. _this.text = _this.statics.value(_this.domNode);
  48768. return _this;
  48769. }
  48770. TextBlot.create = function (value) {
  48771. return document.createTextNode(value);
  48772. };
  48773. TextBlot.value = function (domNode) {
  48774. var text = domNode.data;
  48775. // @ts-ignore
  48776. if (text['normalize'])
  48777. text = text['normalize']();
  48778. return text;
  48779. };
  48780. TextBlot.prototype.deleteAt = function (index, length) {
  48781. this.domNode.data = this.text = this.text.slice(0, index) + this.text.slice(index + length);
  48782. };
  48783. TextBlot.prototype.index = function (node, offset) {
  48784. if (this.domNode === node) {
  48785. return offset;
  48786. }
  48787. return -1;
  48788. };
  48789. TextBlot.prototype.insertAt = function (index, value, def) {
  48790. if (def == null) {
  48791. this.text = this.text.slice(0, index) + value + this.text.slice(index);
  48792. this.domNode.data = this.text;
  48793. }
  48794. else {
  48795. _super.prototype.insertAt.call(this, index, value, def);
  48796. }
  48797. };
  48798. TextBlot.prototype.length = function () {
  48799. return this.text.length;
  48800. };
  48801. TextBlot.prototype.optimize = function (context) {
  48802. _super.prototype.optimize.call(this, context);
  48803. this.text = this.statics.value(this.domNode);
  48804. if (this.text.length === 0) {
  48805. this.remove();
  48806. }
  48807. else if (this.next instanceof TextBlot && this.next.prev === this) {
  48808. this.insertAt(this.length(), this.next.value());
  48809. this.next.remove();
  48810. }
  48811. };
  48812. TextBlot.prototype.position = function (index, inclusive) {
  48813. if (inclusive === void 0) { inclusive = false; }
  48814. return [this.domNode, index];
  48815. };
  48816. TextBlot.prototype.split = function (index, force) {
  48817. if (force === void 0) { force = false; }
  48818. if (!force) {
  48819. if (index === 0)
  48820. return this;
  48821. if (index === this.length())
  48822. return this.next;
  48823. }
  48824. var after = Registry.create(this.domNode.splitText(index));
  48825. this.parent.insertBefore(after, this.next);
  48826. this.text = this.statics.value(this.domNode);
  48827. return after;
  48828. };
  48829. TextBlot.prototype.update = function (mutations, context) {
  48830. var _this = this;
  48831. if (mutations.some(function (mutation) {
  48832. return mutation.type === 'characterData' && mutation.target === _this.domNode;
  48833. })) {
  48834. this.text = this.statics.value(this.domNode);
  48835. }
  48836. };
  48837. TextBlot.prototype.value = function () {
  48838. return this.text;
  48839. };
  48840. TextBlot.blotName = 'text';
  48841. TextBlot.scope = Registry.Scope.INLINE_BLOT;
  48842. return TextBlot;
  48843. }(leaf_1.default));
  48844. exports.default = TextBlot;
  48845. /***/ }),
  48846. /* 50 */
  48847. /***/ (function(module, exports, __webpack_require__) {
  48848. "use strict";
  48849. var elem = document.createElement('div');
  48850. elem.classList.toggle('test-class', false);
  48851. if (elem.classList.contains('test-class')) {
  48852. var _toggle = DOMTokenList.prototype.toggle;
  48853. DOMTokenList.prototype.toggle = function (token, force) {
  48854. if (arguments.length > 1 && !this.contains(token) === !force) {
  48855. return force;
  48856. } else {
  48857. return _toggle.call(this, token);
  48858. }
  48859. };
  48860. }
  48861. if (!String.prototype.startsWith) {
  48862. String.prototype.startsWith = function (searchString, position) {
  48863. position = position || 0;
  48864. return this.substr(position, searchString.length) === searchString;
  48865. };
  48866. }
  48867. if (!String.prototype.endsWith) {
  48868. String.prototype.endsWith = function (searchString, position) {
  48869. var subjectString = this.toString();
  48870. if (typeof position !== 'number' || !isFinite(position) || Math.floor(position) !== position || position > subjectString.length) {
  48871. position = subjectString.length;
  48872. }
  48873. position -= searchString.length;
  48874. var lastIndex = subjectString.indexOf(searchString, position);
  48875. return lastIndex !== -1 && lastIndex === position;
  48876. };
  48877. }
  48878. if (!Array.prototype.find) {
  48879. Object.defineProperty(Array.prototype, "find", {
  48880. value: function value(predicate) {
  48881. if (this === null) {
  48882. throw new TypeError('Array.prototype.find called on null or undefined');
  48883. }
  48884. if (typeof predicate !== 'function') {
  48885. throw new TypeError('predicate must be a function');
  48886. }
  48887. var list = Object(this);
  48888. var length = list.length >>> 0;
  48889. var thisArg = arguments[1];
  48890. var value;
  48891. for (var i = 0; i < length; i++) {
  48892. value = list[i];
  48893. if (predicate.call(thisArg, value, i, list)) {
  48894. return value;
  48895. }
  48896. }
  48897. return undefined;
  48898. }
  48899. });
  48900. }
  48901. document.addEventListener("DOMContentLoaded", function () {
  48902. // Disable resizing in Firefox
  48903. document.execCommand("enableObjectResizing", false, false);
  48904. // Disable automatic linkifying in IE11
  48905. document.execCommand("autoUrlDetect", false, false);
  48906. });
  48907. /***/ }),
  48908. /* 51 */
  48909. /***/ (function(module, exports) {
  48910. /**
  48911. * This library modifies the diff-patch-match library by Neil Fraser
  48912. * by removing the patch and match functionality and certain advanced
  48913. * options in the diff function. The original license is as follows:
  48914. *
  48915. * ===
  48916. *
  48917. * Diff Match and Patch
  48918. *
  48919. * Copyright 2006 Google Inc.
  48920. * http://code.google.com/p/google-diff-match-patch/
  48921. *
  48922. * Licensed under the Apache License, Version 2.0 (the "License");
  48923. * you may not use this file except in compliance with the License.
  48924. * You may obtain a copy of the License at
  48925. *
  48926. * http://www.apache.org/licenses/LICENSE-2.0
  48927. *
  48928. * Unless required by applicable law or agreed to in writing, software
  48929. * distributed under the License is distributed on an "AS IS" BASIS,
  48930. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  48931. * See the License for the specific language governing permissions and
  48932. * limitations under the License.
  48933. */
  48934. /**
  48935. * The data structure representing a diff is an array of tuples:
  48936. * [[DIFF_DELETE, 'Hello'], [DIFF_INSERT, 'Goodbye'], [DIFF_EQUAL, ' world.']]
  48937. * which means: delete 'Hello', add 'Goodbye' and keep ' world.'
  48938. */
  48939. var DIFF_DELETE = -1;
  48940. var DIFF_INSERT = 1;
  48941. var DIFF_EQUAL = 0;
  48942. /**
  48943. * Find the differences between two texts. Simplifies the problem by stripping
  48944. * any common prefix or suffix off the texts before diffing.
  48945. * @param {string} text1 Old string to be diffed.
  48946. * @param {string} text2 New string to be diffed.
  48947. * @param {Int} cursor_pos Expected edit position in text1 (optional)
  48948. * @return {Array} Array of diff tuples.
  48949. */
  48950. function diff_main(text1, text2, cursor_pos) {
  48951. // Check for equality (speedup).
  48952. if (text1 == text2) {
  48953. if (text1) {
  48954. return [[DIFF_EQUAL, text1]];
  48955. }
  48956. return [];
  48957. }
  48958. // Check cursor_pos within bounds
  48959. if (cursor_pos < 0 || text1.length < cursor_pos) {
  48960. cursor_pos = null;
  48961. }
  48962. // Trim off common prefix (speedup).
  48963. var commonlength = diff_commonPrefix(text1, text2);
  48964. var commonprefix = text1.substring(0, commonlength);
  48965. text1 = text1.substring(commonlength);
  48966. text2 = text2.substring(commonlength);
  48967. // Trim off common suffix (speedup).
  48968. commonlength = diff_commonSuffix(text1, text2);
  48969. var commonsuffix = text1.substring(text1.length - commonlength);
  48970. text1 = text1.substring(0, text1.length - commonlength);
  48971. text2 = text2.substring(0, text2.length - commonlength);
  48972. // Compute the diff on the middle block.
  48973. var diffs = diff_compute_(text1, text2);
  48974. // Restore the prefix and suffix.
  48975. if (commonprefix) {
  48976. diffs.unshift([DIFF_EQUAL, commonprefix]);
  48977. }
  48978. if (commonsuffix) {
  48979. diffs.push([DIFF_EQUAL, commonsuffix]);
  48980. }
  48981. diff_cleanupMerge(diffs);
  48982. if (cursor_pos != null) {
  48983. diffs = fix_cursor(diffs, cursor_pos);
  48984. }
  48985. diffs = fix_emoji(diffs);
  48986. return diffs;
  48987. };
  48988. /**
  48989. * Find the differences between two texts. Assumes that the texts do not
  48990. * have any common prefix or suffix.
  48991. * @param {string} text1 Old string to be diffed.
  48992. * @param {string} text2 New string to be diffed.
  48993. * @return {Array} Array of diff tuples.
  48994. */
  48995. function diff_compute_(text1, text2) {
  48996. var diffs;
  48997. if (!text1) {
  48998. // Just add some text (speedup).
  48999. return [[DIFF_INSERT, text2]];
  49000. }
  49001. if (!text2) {
  49002. // Just delete some text (speedup).
  49003. return [[DIFF_DELETE, text1]];
  49004. }
  49005. var longtext = text1.length > text2.length ? text1 : text2;
  49006. var shorttext = text1.length > text2.length ? text2 : text1;
  49007. var i = longtext.indexOf(shorttext);
  49008. if (i != -1) {
  49009. // Shorter text is inside the longer text (speedup).
  49010. diffs = [[DIFF_INSERT, longtext.substring(0, i)],
  49011. [DIFF_EQUAL, shorttext],
  49012. [DIFF_INSERT, longtext.substring(i + shorttext.length)]];
  49013. // Swap insertions for deletions if diff is reversed.
  49014. if (text1.length > text2.length) {
  49015. diffs[0][0] = diffs[2][0] = DIFF_DELETE;
  49016. }
  49017. return diffs;
  49018. }
  49019. if (shorttext.length == 1) {
  49020. // Single character string.
  49021. // After the previous speedup, the character can't be an equality.
  49022. return [[DIFF_DELETE, text1], [DIFF_INSERT, text2]];
  49023. }
  49024. // Check to see if the problem can be split in two.
  49025. var hm = diff_halfMatch_(text1, text2);
  49026. if (hm) {
  49027. // A half-match was found, sort out the return data.
  49028. var text1_a = hm[0];
  49029. var text1_b = hm[1];
  49030. var text2_a = hm[2];
  49031. var text2_b = hm[3];
  49032. var mid_common = hm[4];
  49033. // Send both pairs off for separate processing.
  49034. var diffs_a = diff_main(text1_a, text2_a);
  49035. var diffs_b = diff_main(text1_b, text2_b);
  49036. // Merge the results.
  49037. return diffs_a.concat([[DIFF_EQUAL, mid_common]], diffs_b);
  49038. }
  49039. return diff_bisect_(text1, text2);
  49040. };
  49041. /**
  49042. * Find the 'middle snake' of a diff, split the problem in two
  49043. * and return the recursively constructed diff.
  49044. * See Myers 1986 paper: An O(ND) Difference Algorithm and Its Variations.
  49045. * @param {string} text1 Old string to be diffed.
  49046. * @param {string} text2 New string to be diffed.
  49047. * @return {Array} Array of diff tuples.
  49048. * @private
  49049. */
  49050. function diff_bisect_(text1, text2) {
  49051. // Cache the text lengths to prevent multiple calls.
  49052. var text1_length = text1.length;
  49053. var text2_length = text2.length;
  49054. var max_d = Math.ceil((text1_length + text2_length) / 2);
  49055. var v_offset = max_d;
  49056. var v_length = 2 * max_d;
  49057. var v1 = new Array(v_length);
  49058. var v2 = new Array(v_length);
  49059. // Setting all elements to -1 is faster in Chrome & Firefox than mixing
  49060. // integers and undefined.
  49061. for (var x = 0; x < v_length; x++) {
  49062. v1[x] = -1;
  49063. v2[x] = -1;
  49064. }
  49065. v1[v_offset + 1] = 0;
  49066. v2[v_offset + 1] = 0;
  49067. var delta = text1_length - text2_length;
  49068. // If the total number of characters is odd, then the front path will collide
  49069. // with the reverse path.
  49070. var front = (delta % 2 != 0);
  49071. // Offsets for start and end of k loop.
  49072. // Prevents mapping of space beyond the grid.
  49073. var k1start = 0;
  49074. var k1end = 0;
  49075. var k2start = 0;
  49076. var k2end = 0;
  49077. for (var d = 0; d < max_d; d++) {
  49078. // Walk the front path one step.
  49079. for (var k1 = -d + k1start; k1 <= d - k1end; k1 += 2) {
  49080. var k1_offset = v_offset + k1;
  49081. var x1;
  49082. if (k1 == -d || (k1 != d && v1[k1_offset - 1] < v1[k1_offset + 1])) {
  49083. x1 = v1[k1_offset + 1];
  49084. } else {
  49085. x1 = v1[k1_offset - 1] + 1;
  49086. }
  49087. var y1 = x1 - k1;
  49088. while (x1 < text1_length && y1 < text2_length &&
  49089. text1.charAt(x1) == text2.charAt(y1)) {
  49090. x1++;
  49091. y1++;
  49092. }
  49093. v1[k1_offset] = x1;
  49094. if (x1 > text1_length) {
  49095. // Ran off the right of the graph.
  49096. k1end += 2;
  49097. } else if (y1 > text2_length) {
  49098. // Ran off the bottom of the graph.
  49099. k1start += 2;
  49100. } else if (front) {
  49101. var k2_offset = v_offset + delta - k1;
  49102. if (k2_offset >= 0 && k2_offset < v_length && v2[k2_offset] != -1) {
  49103. // Mirror x2 onto top-left coordinate system.
  49104. var x2 = text1_length - v2[k2_offset];
  49105. if (x1 >= x2) {
  49106. // Overlap detected.
  49107. return diff_bisectSplit_(text1, text2, x1, y1);
  49108. }
  49109. }
  49110. }
  49111. }
  49112. // Walk the reverse path one step.
  49113. for (var k2 = -d + k2start; k2 <= d - k2end; k2 += 2) {
  49114. var k2_offset = v_offset + k2;
  49115. var x2;
  49116. if (k2 == -d || (k2 != d && v2[k2_offset - 1] < v2[k2_offset + 1])) {
  49117. x2 = v2[k2_offset + 1];
  49118. } else {
  49119. x2 = v2[k2_offset - 1] + 1;
  49120. }
  49121. var y2 = x2 - k2;
  49122. while (x2 < text1_length && y2 < text2_length &&
  49123. text1.charAt(text1_length - x2 - 1) ==
  49124. text2.charAt(text2_length - y2 - 1)) {
  49125. x2++;
  49126. y2++;
  49127. }
  49128. v2[k2_offset] = x2;
  49129. if (x2 > text1_length) {
  49130. // Ran off the left of the graph.
  49131. k2end += 2;
  49132. } else if (y2 > text2_length) {
  49133. // Ran off the top of the graph.
  49134. k2start += 2;
  49135. } else if (!front) {
  49136. var k1_offset = v_offset + delta - k2;
  49137. if (k1_offset >= 0 && k1_offset < v_length && v1[k1_offset] != -1) {
  49138. var x1 = v1[k1_offset];
  49139. var y1 = v_offset + x1 - k1_offset;
  49140. // Mirror x2 onto top-left coordinate system.
  49141. x2 = text1_length - x2;
  49142. if (x1 >= x2) {
  49143. // Overlap detected.
  49144. return diff_bisectSplit_(text1, text2, x1, y1);
  49145. }
  49146. }
  49147. }
  49148. }
  49149. }
  49150. // Diff took too long and hit the deadline or
  49151. // number of diffs equals number of characters, no commonality at all.
  49152. return [[DIFF_DELETE, text1], [DIFF_INSERT, text2]];
  49153. };
  49154. /**
  49155. * Given the location of the 'middle snake', split the diff in two parts
  49156. * and recurse.
  49157. * @param {string} text1 Old string to be diffed.
  49158. * @param {string} text2 New string to be diffed.
  49159. * @param {number} x Index of split point in text1.
  49160. * @param {number} y Index of split point in text2.
  49161. * @return {Array} Array of diff tuples.
  49162. */
  49163. function diff_bisectSplit_(text1, text2, x, y) {
  49164. var text1a = text1.substring(0, x);
  49165. var text2a = text2.substring(0, y);
  49166. var text1b = text1.substring(x);
  49167. var text2b = text2.substring(y);
  49168. // Compute both diffs serially.
  49169. var diffs = diff_main(text1a, text2a);
  49170. var diffsb = diff_main(text1b, text2b);
  49171. return diffs.concat(diffsb);
  49172. };
  49173. /**
  49174. * Determine the common prefix of two strings.
  49175. * @param {string} text1 First string.
  49176. * @param {string} text2 Second string.
  49177. * @return {number} The number of characters common to the start of each
  49178. * string.
  49179. */
  49180. function diff_commonPrefix(text1, text2) {
  49181. // Quick check for common null cases.
  49182. if (!text1 || !text2 || text1.charAt(0) != text2.charAt(0)) {
  49183. return 0;
  49184. }
  49185. // Binary search.
  49186. // Performance analysis: http://neil.fraser.name/news/2007/10/09/
  49187. var pointermin = 0;
  49188. var pointermax = Math.min(text1.length, text2.length);
  49189. var pointermid = pointermax;
  49190. var pointerstart = 0;
  49191. while (pointermin < pointermid) {
  49192. if (text1.substring(pointerstart, pointermid) ==
  49193. text2.substring(pointerstart, pointermid)) {
  49194. pointermin = pointermid;
  49195. pointerstart = pointermin;
  49196. } else {
  49197. pointermax = pointermid;
  49198. }
  49199. pointermid = Math.floor((pointermax - pointermin) / 2 + pointermin);
  49200. }
  49201. return pointermid;
  49202. };
  49203. /**
  49204. * Determine the common suffix of two strings.
  49205. * @param {string} text1 First string.
  49206. * @param {string} text2 Second string.
  49207. * @return {number} The number of characters common to the end of each string.
  49208. */
  49209. function diff_commonSuffix(text1, text2) {
  49210. // Quick check for common null cases.
  49211. if (!text1 || !text2 ||
  49212. text1.charAt(text1.length - 1) != text2.charAt(text2.length - 1)) {
  49213. return 0;
  49214. }
  49215. // Binary search.
  49216. // Performance analysis: http://neil.fraser.name/news/2007/10/09/
  49217. var pointermin = 0;
  49218. var pointermax = Math.min(text1.length, text2.length);
  49219. var pointermid = pointermax;
  49220. var pointerend = 0;
  49221. while (pointermin < pointermid) {
  49222. if (text1.substring(text1.length - pointermid, text1.length - pointerend) ==
  49223. text2.substring(text2.length - pointermid, text2.length - pointerend)) {
  49224. pointermin = pointermid;
  49225. pointerend = pointermin;
  49226. } else {
  49227. pointermax = pointermid;
  49228. }
  49229. pointermid = Math.floor((pointermax - pointermin) / 2 + pointermin);
  49230. }
  49231. return pointermid;
  49232. };
  49233. /**
  49234. * Do the two texts share a substring which is at least half the length of the
  49235. * longer text?
  49236. * This speedup can produce non-minimal diffs.
  49237. * @param {string} text1 First string.
  49238. * @param {string} text2 Second string.
  49239. * @return {Array.<string>} Five element Array, containing the prefix of
  49240. * text1, the suffix of text1, the prefix of text2, the suffix of
  49241. * text2 and the common middle. Or null if there was no match.
  49242. */
  49243. function diff_halfMatch_(text1, text2) {
  49244. var longtext = text1.length > text2.length ? text1 : text2;
  49245. var shorttext = text1.length > text2.length ? text2 : text1;
  49246. if (longtext.length < 4 || shorttext.length * 2 < longtext.length) {
  49247. return null; // Pointless.
  49248. }
  49249. /**
  49250. * Does a substring of shorttext exist within longtext such that the substring
  49251. * is at least half the length of longtext?
  49252. * Closure, but does not reference any external variables.
  49253. * @param {string} longtext Longer string.
  49254. * @param {string} shorttext Shorter string.
  49255. * @param {number} i Start index of quarter length substring within longtext.
  49256. * @return {Array.<string>} Five element Array, containing the prefix of
  49257. * longtext, the suffix of longtext, the prefix of shorttext, the suffix
  49258. * of shorttext and the common middle. Or null if there was no match.
  49259. * @private
  49260. */
  49261. function diff_halfMatchI_(longtext, shorttext, i) {
  49262. // Start with a 1/4 length substring at position i as a seed.
  49263. var seed = longtext.substring(i, i + Math.floor(longtext.length / 4));
  49264. var j = -1;
  49265. var best_common = '';
  49266. var best_longtext_a, best_longtext_b, best_shorttext_a, best_shorttext_b;
  49267. while ((j = shorttext.indexOf(seed, j + 1)) != -1) {
  49268. var prefixLength = diff_commonPrefix(longtext.substring(i),
  49269. shorttext.substring(j));
  49270. var suffixLength = diff_commonSuffix(longtext.substring(0, i),
  49271. shorttext.substring(0, j));
  49272. if (best_common.length < suffixLength + prefixLength) {
  49273. best_common = shorttext.substring(j - suffixLength, j) +
  49274. shorttext.substring(j, j + prefixLength);
  49275. best_longtext_a = longtext.substring(0, i - suffixLength);
  49276. best_longtext_b = longtext.substring(i + prefixLength);
  49277. best_shorttext_a = shorttext.substring(0, j - suffixLength);
  49278. best_shorttext_b = shorttext.substring(j + prefixLength);
  49279. }
  49280. }
  49281. if (best_common.length * 2 >= longtext.length) {
  49282. return [best_longtext_a, best_longtext_b,
  49283. best_shorttext_a, best_shorttext_b, best_common];
  49284. } else {
  49285. return null;
  49286. }
  49287. }
  49288. // First check if the second quarter is the seed for a half-match.
  49289. var hm1 = diff_halfMatchI_(longtext, shorttext,
  49290. Math.ceil(longtext.length / 4));
  49291. // Check again based on the third quarter.
  49292. var hm2 = diff_halfMatchI_(longtext, shorttext,
  49293. Math.ceil(longtext.length / 2));
  49294. var hm;
  49295. if (!hm1 && !hm2) {
  49296. return null;
  49297. } else if (!hm2) {
  49298. hm = hm1;
  49299. } else if (!hm1) {
  49300. hm = hm2;
  49301. } else {
  49302. // Both matched. Select the longest.
  49303. hm = hm1[4].length > hm2[4].length ? hm1 : hm2;
  49304. }
  49305. // A half-match was found, sort out the return data.
  49306. var text1_a, text1_b, text2_a, text2_b;
  49307. if (text1.length > text2.length) {
  49308. text1_a = hm[0];
  49309. text1_b = hm[1];
  49310. text2_a = hm[2];
  49311. text2_b = hm[3];
  49312. } else {
  49313. text2_a = hm[0];
  49314. text2_b = hm[1];
  49315. text1_a = hm[2];
  49316. text1_b = hm[3];
  49317. }
  49318. var mid_common = hm[4];
  49319. return [text1_a, text1_b, text2_a, text2_b, mid_common];
  49320. };
  49321. /**
  49322. * Reorder and merge like edit sections. Merge equalities.
  49323. * Any edit section can move as long as it doesn't cross an equality.
  49324. * @param {Array} diffs Array of diff tuples.
  49325. */
  49326. function diff_cleanupMerge(diffs) {
  49327. diffs.push([DIFF_EQUAL, '']); // Add a dummy entry at the end.
  49328. var pointer = 0;
  49329. var count_delete = 0;
  49330. var count_insert = 0;
  49331. var text_delete = '';
  49332. var text_insert = '';
  49333. var commonlength;
  49334. while (pointer < diffs.length) {
  49335. switch (diffs[pointer][0]) {
  49336. case DIFF_INSERT:
  49337. count_insert++;
  49338. text_insert += diffs[pointer][1];
  49339. pointer++;
  49340. break;
  49341. case DIFF_DELETE:
  49342. count_delete++;
  49343. text_delete += diffs[pointer][1];
  49344. pointer++;
  49345. break;
  49346. case DIFF_EQUAL:
  49347. // Upon reaching an equality, check for prior redundancies.
  49348. if (count_delete + count_insert > 1) {
  49349. if (count_delete !== 0 && count_insert !== 0) {
  49350. // Factor out any common prefixies.
  49351. commonlength = diff_commonPrefix(text_insert, text_delete);
  49352. if (commonlength !== 0) {
  49353. if ((pointer - count_delete - count_insert) > 0 &&
  49354. diffs[pointer - count_delete - count_insert - 1][0] ==
  49355. DIFF_EQUAL) {
  49356. diffs[pointer - count_delete - count_insert - 1][1] +=
  49357. text_insert.substring(0, commonlength);
  49358. } else {
  49359. diffs.splice(0, 0, [DIFF_EQUAL,
  49360. text_insert.substring(0, commonlength)]);
  49361. pointer++;
  49362. }
  49363. text_insert = text_insert.substring(commonlength);
  49364. text_delete = text_delete.substring(commonlength);
  49365. }
  49366. // Factor out any common suffixies.
  49367. commonlength = diff_commonSuffix(text_insert, text_delete);
  49368. if (commonlength !== 0) {
  49369. diffs[pointer][1] = text_insert.substring(text_insert.length -
  49370. commonlength) + diffs[pointer][1];
  49371. text_insert = text_insert.substring(0, text_insert.length -
  49372. commonlength);
  49373. text_delete = text_delete.substring(0, text_delete.length -
  49374. commonlength);
  49375. }
  49376. }
  49377. // Delete the offending records and add the merged ones.
  49378. if (count_delete === 0) {
  49379. diffs.splice(pointer - count_insert,
  49380. count_delete + count_insert, [DIFF_INSERT, text_insert]);
  49381. } else if (count_insert === 0) {
  49382. diffs.splice(pointer - count_delete,
  49383. count_delete + count_insert, [DIFF_DELETE, text_delete]);
  49384. } else {
  49385. diffs.splice(pointer - count_delete - count_insert,
  49386. count_delete + count_insert, [DIFF_DELETE, text_delete],
  49387. [DIFF_INSERT, text_insert]);
  49388. }
  49389. pointer = pointer - count_delete - count_insert +
  49390. (count_delete ? 1 : 0) + (count_insert ? 1 : 0) + 1;
  49391. } else if (pointer !== 0 && diffs[pointer - 1][0] == DIFF_EQUAL) {
  49392. // Merge this equality with the previous one.
  49393. diffs[pointer - 1][1] += diffs[pointer][1];
  49394. diffs.splice(pointer, 1);
  49395. } else {
  49396. pointer++;
  49397. }
  49398. count_insert = 0;
  49399. count_delete = 0;
  49400. text_delete = '';
  49401. text_insert = '';
  49402. break;
  49403. }
  49404. }
  49405. if (diffs[diffs.length - 1][1] === '') {
  49406. diffs.pop(); // Remove the dummy entry at the end.
  49407. }
  49408. // Second pass: look for single edits surrounded on both sides by equalities
  49409. // which can be shifted sideways to eliminate an equality.
  49410. // e.g: A<ins>BA</ins>C -> <ins>AB</ins>AC
  49411. var changes = false;
  49412. pointer = 1;
  49413. // Intentionally ignore the first and last element (don't need checking).
  49414. while (pointer < diffs.length - 1) {
  49415. if (diffs[pointer - 1][0] == DIFF_EQUAL &&
  49416. diffs[pointer + 1][0] == DIFF_EQUAL) {
  49417. // This is a single edit surrounded by equalities.
  49418. if (diffs[pointer][1].substring(diffs[pointer][1].length -
  49419. diffs[pointer - 1][1].length) == diffs[pointer - 1][1]) {
  49420. // Shift the edit over the previous equality.
  49421. diffs[pointer][1] = diffs[pointer - 1][1] +
  49422. diffs[pointer][1].substring(0, diffs[pointer][1].length -
  49423. diffs[pointer - 1][1].length);
  49424. diffs[pointer + 1][1] = diffs[pointer - 1][1] + diffs[pointer + 1][1];
  49425. diffs.splice(pointer - 1, 1);
  49426. changes = true;
  49427. } else if (diffs[pointer][1].substring(0, diffs[pointer + 1][1].length) ==
  49428. diffs[pointer + 1][1]) {
  49429. // Shift the edit over the next equality.
  49430. diffs[pointer - 1][1] += diffs[pointer + 1][1];
  49431. diffs[pointer][1] =
  49432. diffs[pointer][1].substring(diffs[pointer + 1][1].length) +
  49433. diffs[pointer + 1][1];
  49434. diffs.splice(pointer + 1, 1);
  49435. changes = true;
  49436. }
  49437. }
  49438. pointer++;
  49439. }
  49440. // If shifts were made, the diff needs reordering and another shift sweep.
  49441. if (changes) {
  49442. diff_cleanupMerge(diffs);
  49443. }
  49444. };
  49445. var diff = diff_main;
  49446. diff.INSERT = DIFF_INSERT;
  49447. diff.DELETE = DIFF_DELETE;
  49448. diff.EQUAL = DIFF_EQUAL;
  49449. module.exports = diff;
  49450. /*
  49451. * Modify a diff such that the cursor position points to the start of a change:
  49452. * E.g.
  49453. * cursor_normalize_diff([[DIFF_EQUAL, 'abc']], 1)
  49454. * => [1, [[DIFF_EQUAL, 'a'], [DIFF_EQUAL, 'bc']]]
  49455. * cursor_normalize_diff([[DIFF_INSERT, 'new'], [DIFF_DELETE, 'xyz']], 2)
  49456. * => [2, [[DIFF_INSERT, 'new'], [DIFF_DELETE, 'xy'], [DIFF_DELETE, 'z']]]
  49457. *
  49458. * @param {Array} diffs Array of diff tuples
  49459. * @param {Int} cursor_pos Suggested edit position. Must not be out of bounds!
  49460. * @return {Array} A tuple [cursor location in the modified diff, modified diff]
  49461. */
  49462. function cursor_normalize_diff (diffs, cursor_pos) {
  49463. if (cursor_pos === 0) {
  49464. return [DIFF_EQUAL, diffs];
  49465. }
  49466. for (var current_pos = 0, i = 0; i < diffs.length; i++) {
  49467. var d = diffs[i];
  49468. if (d[0] === DIFF_DELETE || d[0] === DIFF_EQUAL) {
  49469. var next_pos = current_pos + d[1].length;
  49470. if (cursor_pos === next_pos) {
  49471. return [i + 1, diffs];
  49472. } else if (cursor_pos < next_pos) {
  49473. // copy to prevent side effects
  49474. diffs = diffs.slice();
  49475. // split d into two diff changes
  49476. var split_pos = cursor_pos - current_pos;
  49477. var d_left = [d[0], d[1].slice(0, split_pos)];
  49478. var d_right = [d[0], d[1].slice(split_pos)];
  49479. diffs.splice(i, 1, d_left, d_right);
  49480. return [i + 1, diffs];
  49481. } else {
  49482. current_pos = next_pos;
  49483. }
  49484. }
  49485. }
  49486. throw new Error('cursor_pos is out of bounds!')
  49487. }
  49488. /*
  49489. * Modify a diff such that the edit position is "shifted" to the proposed edit location (cursor_position).
  49490. *
  49491. * Case 1)
  49492. * Check if a naive shift is possible:
  49493. * [0, X], [ 1, Y] -> [ 1, Y], [0, X] (if X + Y === Y + X)
  49494. * [0, X], [-1, Y] -> [-1, Y], [0, X] (if X + Y === Y + X) - holds same result
  49495. * Case 2)
  49496. * Check if the following shifts are possible:
  49497. * [0, 'pre'], [ 1, 'prefix'] -> [ 1, 'pre'], [0, 'pre'], [ 1, 'fix']
  49498. * [0, 'pre'], [-1, 'prefix'] -> [-1, 'pre'], [0, 'pre'], [-1, 'fix']
  49499. * ^ ^
  49500. * d d_next
  49501. *
  49502. * @param {Array} diffs Array of diff tuples
  49503. * @param {Int} cursor_pos Suggested edit position. Must not be out of bounds!
  49504. * @return {Array} Array of diff tuples
  49505. */
  49506. function fix_cursor (diffs, cursor_pos) {
  49507. var norm = cursor_normalize_diff(diffs, cursor_pos);
  49508. var ndiffs = norm[1];
  49509. var cursor_pointer = norm[0];
  49510. var d = ndiffs[cursor_pointer];
  49511. var d_next = ndiffs[cursor_pointer + 1];
  49512. if (d == null) {
  49513. // Text was deleted from end of original string,
  49514. // cursor is now out of bounds in new string
  49515. return diffs;
  49516. } else if (d[0] !== DIFF_EQUAL) {
  49517. // A modification happened at the cursor location.
  49518. // This is the expected outcome, so we can return the original diff.
  49519. return diffs;
  49520. } else {
  49521. if (d_next != null && d[1] + d_next[1] === d_next[1] + d[1]) {
  49522. // Case 1)
  49523. // It is possible to perform a naive shift
  49524. ndiffs.splice(cursor_pointer, 2, d_next, d)
  49525. return merge_tuples(ndiffs, cursor_pointer, 2)
  49526. } else if (d_next != null && d_next[1].indexOf(d[1]) === 0) {
  49527. // Case 2)
  49528. // d[1] is a prefix of d_next[1]
  49529. // We can assume that d_next[0] !== 0, since d[0] === 0
  49530. // Shift edit locations..
  49531. ndiffs.splice(cursor_pointer, 2, [d_next[0], d[1]], [0, d[1]]);
  49532. var suffix = d_next[1].slice(d[1].length);
  49533. if (suffix.length > 0) {
  49534. ndiffs.splice(cursor_pointer + 2, 0, [d_next[0], suffix]);
  49535. }
  49536. return merge_tuples(ndiffs, cursor_pointer, 3)
  49537. } else {
  49538. // Not possible to perform any modification
  49539. return diffs;
  49540. }
  49541. }
  49542. }
  49543. /*
  49544. * Check diff did not split surrogate pairs.
  49545. * Ex. [0, '\uD83D'], [-1, '\uDC36'], [1, '\uDC2F'] -> [-1, '\uD83D\uDC36'], [1, '\uD83D\uDC2F']
  49546. * '\uD83D\uDC36' === '🐶', '\uD83D\uDC2F' === '🐯'
  49547. *
  49548. * @param {Array} diffs Array of diff tuples
  49549. * @return {Array} Array of diff tuples
  49550. */
  49551. function fix_emoji (diffs) {
  49552. var compact = false;
  49553. var starts_with_pair_end = function(str) {
  49554. return str.charCodeAt(0) >= 0xDC00 && str.charCodeAt(0) <= 0xDFFF;
  49555. }
  49556. var ends_with_pair_start = function(str) {
  49557. return str.charCodeAt(str.length-1) >= 0xD800 && str.charCodeAt(str.length-1) <= 0xDBFF;
  49558. }
  49559. for (var i = 2; i < diffs.length; i += 1) {
  49560. if (diffs[i-2][0] === DIFF_EQUAL && ends_with_pair_start(diffs[i-2][1]) &&
  49561. diffs[i-1][0] === DIFF_DELETE && starts_with_pair_end(diffs[i-1][1]) &&
  49562. diffs[i][0] === DIFF_INSERT && starts_with_pair_end(diffs[i][1])) {
  49563. compact = true;
  49564. diffs[i-1][1] = diffs[i-2][1].slice(-1) + diffs[i-1][1];
  49565. diffs[i][1] = diffs[i-2][1].slice(-1) + diffs[i][1];
  49566. diffs[i-2][1] = diffs[i-2][1].slice(0, -1);
  49567. }
  49568. }
  49569. if (!compact) {
  49570. return diffs;
  49571. }
  49572. var fixed_diffs = [];
  49573. for (var i = 0; i < diffs.length; i += 1) {
  49574. if (diffs[i][1].length > 0) {
  49575. fixed_diffs.push(diffs[i]);
  49576. }
  49577. }
  49578. return fixed_diffs;
  49579. }
  49580. /*
  49581. * Try to merge tuples with their neigbors in a given range.
  49582. * E.g. [0, 'a'], [0, 'b'] -> [0, 'ab']
  49583. *
  49584. * @param {Array} diffs Array of diff tuples.
  49585. * @param {Int} start Position of the first element to merge (diffs[start] is also merged with diffs[start - 1]).
  49586. * @param {Int} length Number of consecutive elements to check.
  49587. * @return {Array} Array of merged diff tuples.
  49588. */
  49589. function merge_tuples (diffs, start, length) {
  49590. // Check from (start-1) to (start+length).
  49591. for (var i = start + length - 1; i >= 0 && i >= start - 1; i--) {
  49592. if (i + 1 < diffs.length) {
  49593. var left_d = diffs[i];
  49594. var right_d = diffs[i+1];
  49595. if (left_d[0] === right_d[1]) {
  49596. diffs.splice(i, 2, [left_d[0], left_d[1] + right_d[1]]);
  49597. }
  49598. }
  49599. }
  49600. return diffs;
  49601. }
  49602. /***/ }),
  49603. /* 52 */
  49604. /***/ (function(module, exports) {
  49605. exports = module.exports = typeof Object.keys === 'function'
  49606. ? Object.keys : shim;
  49607. exports.shim = shim;
  49608. function shim (obj) {
  49609. var keys = [];
  49610. for (var key in obj) keys.push(key);
  49611. return keys;
  49612. }
  49613. /***/ }),
  49614. /* 53 */
  49615. /***/ (function(module, exports) {
  49616. var supportsArgumentsClass = (function(){
  49617. return Object.prototype.toString.call(arguments)
  49618. })() == '[object Arguments]';
  49619. exports = module.exports = supportsArgumentsClass ? supported : unsupported;
  49620. exports.supported = supported;
  49621. function supported(object) {
  49622. return Object.prototype.toString.call(object) == '[object Arguments]';
  49623. };
  49624. exports.unsupported = unsupported;
  49625. function unsupported(object){
  49626. return object &&
  49627. typeof object == 'object' &&
  49628. typeof object.length == 'number' &&
  49629. Object.prototype.hasOwnProperty.call(object, 'callee') &&
  49630. !Object.prototype.propertyIsEnumerable.call(object, 'callee') ||
  49631. false;
  49632. };
  49633. /***/ }),
  49634. /* 54 */
  49635. /***/ (function(module, exports) {
  49636. 'use strict';
  49637. var has = Object.prototype.hasOwnProperty
  49638. , prefix = '~';
  49639. /**
  49640. * Constructor to create a storage for our `EE` objects.
  49641. * An `Events` instance is a plain object whose properties are event names.
  49642. *
  49643. * @constructor
  49644. * @api private
  49645. */
  49646. function Events() {}
  49647. //
  49648. // We try to not inherit from `Object.prototype`. In some engines creating an
  49649. // instance in this way is faster than calling `Object.create(null)` directly.
  49650. // If `Object.create(null)` is not supported we prefix the event names with a
  49651. // character to make sure that the built-in object properties are not
  49652. // overridden or used as an attack vector.
  49653. //
  49654. if (Object.create) {
  49655. Events.prototype = Object.create(null);
  49656. //
  49657. // This hack is needed because the `__proto__` property is still inherited in
  49658. // some old browsers like Android 4, iPhone 5.1, Opera 11 and Safari 5.
  49659. //
  49660. if (!new Events().__proto__) prefix = false;
  49661. }
  49662. /**
  49663. * Representation of a single event listener.
  49664. *
  49665. * @param {Function} fn The listener function.
  49666. * @param {Mixed} context The context to invoke the listener with.
  49667. * @param {Boolean} [once=false] Specify if the listener is a one-time listener.
  49668. * @constructor
  49669. * @api private
  49670. */
  49671. function EE(fn, context, once) {
  49672. this.fn = fn;
  49673. this.context = context;
  49674. this.once = once || false;
  49675. }
  49676. /**
  49677. * Minimal `EventEmitter` interface that is molded against the Node.js
  49678. * `EventEmitter` interface.
  49679. *
  49680. * @constructor
  49681. * @api public
  49682. */
  49683. function EventEmitter() {
  49684. this._events = new Events();
  49685. this._eventsCount = 0;
  49686. }
  49687. /**
  49688. * Return an array listing the events for which the emitter has registered
  49689. * listeners.
  49690. *
  49691. * @returns {Array}
  49692. * @api public
  49693. */
  49694. EventEmitter.prototype.eventNames = function eventNames() {
  49695. var names = []
  49696. , events
  49697. , name;
  49698. if (this._eventsCount === 0) return names;
  49699. for (name in (events = this._events)) {
  49700. if (has.call(events, name)) names.push(prefix ? name.slice(1) : name);
  49701. }
  49702. if (Object.getOwnPropertySymbols) {
  49703. return names.concat(Object.getOwnPropertySymbols(events));
  49704. }
  49705. return names;
  49706. };
  49707. /**
  49708. * Return the listeners registered for a given event.
  49709. *
  49710. * @param {String|Symbol} event The event name.
  49711. * @param {Boolean} exists Only check if there are listeners.
  49712. * @returns {Array|Boolean}
  49713. * @api public
  49714. */
  49715. EventEmitter.prototype.listeners = function listeners(event, exists) {
  49716. var evt = prefix ? prefix + event : event
  49717. , available = this._events[evt];
  49718. if (exists) return !!available;
  49719. if (!available) return [];
  49720. if (available.fn) return [available.fn];
  49721. for (var i = 0, l = available.length, ee = new Array(l); i < l; i++) {
  49722. ee[i] = available[i].fn;
  49723. }
  49724. return ee;
  49725. };
  49726. /**
  49727. * Calls each of the listeners registered for a given event.
  49728. *
  49729. * @param {String|Symbol} event The event name.
  49730. * @returns {Boolean} `true` if the event had listeners, else `false`.
  49731. * @api public
  49732. */
  49733. EventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {
  49734. var evt = prefix ? prefix + event : event;
  49735. if (!this._events[evt]) return false;
  49736. var listeners = this._events[evt]
  49737. , len = arguments.length
  49738. , args
  49739. , i;
  49740. if (listeners.fn) {
  49741. if (listeners.once) this.removeListener(event, listeners.fn, undefined, true);
  49742. switch (len) {
  49743. case 1: return listeners.fn.call(listeners.context), true;
  49744. case 2: return listeners.fn.call(listeners.context, a1), true;
  49745. case 3: return listeners.fn.call(listeners.context, a1, a2), true;
  49746. case 4: return listeners.fn.call(listeners.context, a1, a2, a3), true;
  49747. case 5: return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;
  49748. case 6: return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;
  49749. }
  49750. for (i = 1, args = new Array(len -1); i < len; i++) {
  49751. args[i - 1] = arguments[i];
  49752. }
  49753. listeners.fn.apply(listeners.context, args);
  49754. } else {
  49755. var length = listeners.length
  49756. , j;
  49757. for (i = 0; i < length; i++) {
  49758. if (listeners[i].once) this.removeListener(event, listeners[i].fn, undefined, true);
  49759. switch (len) {
  49760. case 1: listeners[i].fn.call(listeners[i].context); break;
  49761. case 2: listeners[i].fn.call(listeners[i].context, a1); break;
  49762. case 3: listeners[i].fn.call(listeners[i].context, a1, a2); break;
  49763. case 4: listeners[i].fn.call(listeners[i].context, a1, a2, a3); break;
  49764. default:
  49765. if (!args) for (j = 1, args = new Array(len -1); j < len; j++) {
  49766. args[j - 1] = arguments[j];
  49767. }
  49768. listeners[i].fn.apply(listeners[i].context, args);
  49769. }
  49770. }
  49771. }
  49772. return true;
  49773. };
  49774. /**
  49775. * Add a listener for a given event.
  49776. *
  49777. * @param {String|Symbol} event The event name.
  49778. * @param {Function} fn The listener function.
  49779. * @param {Mixed} [context=this] The context to invoke the listener with.
  49780. * @returns {EventEmitter} `this`.
  49781. * @api public
  49782. */
  49783. EventEmitter.prototype.on = function on(event, fn, context) {
  49784. var listener = new EE(fn, context || this)
  49785. , evt = prefix ? prefix + event : event;
  49786. if (!this._events[evt]) this._events[evt] = listener, this._eventsCount++;
  49787. else if (!this._events[evt].fn) this._events[evt].push(listener);
  49788. else this._events[evt] = [this._events[evt], listener];
  49789. return this;
  49790. };
  49791. /**
  49792. * Add a one-time listener for a given event.
  49793. *
  49794. * @param {String|Symbol} event The event name.
  49795. * @param {Function} fn The listener function.
  49796. * @param {Mixed} [context=this] The context to invoke the listener with.
  49797. * @returns {EventEmitter} `this`.
  49798. * @api public
  49799. */
  49800. EventEmitter.prototype.once = function once(event, fn, context) {
  49801. var listener = new EE(fn, context || this, true)
  49802. , evt = prefix ? prefix + event : event;
  49803. if (!this._events[evt]) this._events[evt] = listener, this._eventsCount++;
  49804. else if (!this._events[evt].fn) this._events[evt].push(listener);
  49805. else this._events[evt] = [this._events[evt], listener];
  49806. return this;
  49807. };
  49808. /**
  49809. * Remove the listeners of a given event.
  49810. *
  49811. * @param {String|Symbol} event The event name.
  49812. * @param {Function} fn Only remove the listeners that match this function.
  49813. * @param {Mixed} context Only remove the listeners that have this context.
  49814. * @param {Boolean} once Only remove one-time listeners.
  49815. * @returns {EventEmitter} `this`.
  49816. * @api public
  49817. */
  49818. EventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) {
  49819. var evt = prefix ? prefix + event : event;
  49820. if (!this._events[evt]) return this;
  49821. if (!fn) {
  49822. if (--this._eventsCount === 0) this._events = new Events();
  49823. else delete this._events[evt];
  49824. return this;
  49825. }
  49826. var listeners = this._events[evt];
  49827. if (listeners.fn) {
  49828. if (
  49829. listeners.fn === fn
  49830. && (!once || listeners.once)
  49831. && (!context || listeners.context === context)
  49832. ) {
  49833. if (--this._eventsCount === 0) this._events = new Events();
  49834. else delete this._events[evt];
  49835. }
  49836. } else {
  49837. for (var i = 0, events = [], length = listeners.length; i < length; i++) {
  49838. if (
  49839. listeners[i].fn !== fn
  49840. || (once && !listeners[i].once)
  49841. || (context && listeners[i].context !== context)
  49842. ) {
  49843. events.push(listeners[i]);
  49844. }
  49845. }
  49846. //
  49847. // Reset the array, or remove it completely if we have no more listeners.
  49848. //
  49849. if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;
  49850. else if (--this._eventsCount === 0) this._events = new Events();
  49851. else delete this._events[evt];
  49852. }
  49853. return this;
  49854. };
  49855. /**
  49856. * Remove all listeners, or those of the specified event.
  49857. *
  49858. * @param {String|Symbol} [event] The event name.
  49859. * @returns {EventEmitter} `this`.
  49860. * @api public
  49861. */
  49862. EventEmitter.prototype.removeAllListeners = function removeAllListeners(event) {
  49863. var evt;
  49864. if (event) {
  49865. evt = prefix ? prefix + event : event;
  49866. if (this._events[evt]) {
  49867. if (--this._eventsCount === 0) this._events = new Events();
  49868. else delete this._events[evt];
  49869. }
  49870. } else {
  49871. this._events = new Events();
  49872. this._eventsCount = 0;
  49873. }
  49874. return this;
  49875. };
  49876. //
  49877. // Alias methods names because people roll like that.
  49878. //
  49879. EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
  49880. EventEmitter.prototype.addListener = EventEmitter.prototype.on;
  49881. //
  49882. // This function doesn't apply anymore.
  49883. //
  49884. EventEmitter.prototype.setMaxListeners = function setMaxListeners() {
  49885. return this;
  49886. };
  49887. //
  49888. // Expose the prefix.
  49889. //
  49890. EventEmitter.prefixed = prefix;
  49891. //
  49892. // Allow `EventEmitter` to be imported as module namespace.
  49893. //
  49894. EventEmitter.EventEmitter = EventEmitter;
  49895. //
  49896. // Expose the module.
  49897. //
  49898. if ('undefined' !== typeof module) {
  49899. module.exports = EventEmitter;
  49900. }
  49901. /***/ }),
  49902. /* 55 */
  49903. /***/ (function(module, exports, __nested_webpack_require_316416__) {
  49904. "use strict";
  49905. Object.defineProperty(exports, "__esModule", {
  49906. value: true
  49907. });
  49908. exports.matchText = exports.matchSpacing = exports.matchNewline = exports.matchBlot = exports.matchAttributor = exports.default = undefined;
  49909. var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
  49910. var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
  49911. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  49912. var _extend2 = __nested_webpack_require_316416__(3);
  49913. var _extend3 = _interopRequireDefault(_extend2);
  49914. var _quillDelta = __nested_webpack_require_316416__(2);
  49915. var _quillDelta2 = _interopRequireDefault(_quillDelta);
  49916. var _parchment = __nested_webpack_require_316416__(0);
  49917. var _parchment2 = _interopRequireDefault(_parchment);
  49918. var _quill = __nested_webpack_require_316416__(5);
  49919. var _quill2 = _interopRequireDefault(_quill);
  49920. var _logger = __nested_webpack_require_316416__(10);
  49921. var _logger2 = _interopRequireDefault(_logger);
  49922. var _module = __nested_webpack_require_316416__(9);
  49923. var _module2 = _interopRequireDefault(_module);
  49924. var _align = __nested_webpack_require_316416__(36);
  49925. var _background = __nested_webpack_require_316416__(37);
  49926. var _code = __nested_webpack_require_316416__(13);
  49927. var _code2 = _interopRequireDefault(_code);
  49928. var _color = __nested_webpack_require_316416__(26);
  49929. var _direction = __nested_webpack_require_316416__(38);
  49930. var _font = __nested_webpack_require_316416__(39);
  49931. var _size = __nested_webpack_require_316416__(40);
  49932. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  49933. function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  49934. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  49935. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  49936. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  49937. var debug = (0, _logger2.default)('quill:clipboard');
  49938. var DOM_KEY = '__ql-matcher';
  49939. var CLIPBOARD_CONFIG = [[Node.TEXT_NODE, matchText], [Node.TEXT_NODE, matchNewline], ['br', matchBreak], [Node.ELEMENT_NODE, matchNewline], [Node.ELEMENT_NODE, matchBlot], [Node.ELEMENT_NODE, matchSpacing], [Node.ELEMENT_NODE, matchAttributor], [Node.ELEMENT_NODE, matchStyles], ['li', matchIndent], ['b', matchAlias.bind(matchAlias, 'bold')], ['i', matchAlias.bind(matchAlias, 'italic')], ['style', matchIgnore]];
  49940. var ATTRIBUTE_ATTRIBUTORS = [_align.AlignAttribute, _direction.DirectionAttribute].reduce(function (memo, attr) {
  49941. memo[attr.keyName] = attr;
  49942. return memo;
  49943. }, {});
  49944. var STYLE_ATTRIBUTORS = [_align.AlignStyle, _background.BackgroundStyle, _color.ColorStyle, _direction.DirectionStyle, _font.FontStyle, _size.SizeStyle].reduce(function (memo, attr) {
  49945. memo[attr.keyName] = attr;
  49946. return memo;
  49947. }, {});
  49948. var Clipboard = function (_Module) {
  49949. _inherits(Clipboard, _Module);
  49950. function Clipboard(quill, options) {
  49951. _classCallCheck(this, Clipboard);
  49952. var _this = _possibleConstructorReturn(this, (Clipboard.__proto__ || Object.getPrototypeOf(Clipboard)).call(this, quill, options));
  49953. _this.quill.root.addEventListener('paste', _this.onPaste.bind(_this));
  49954. _this.container = _this.quill.addContainer('ql-clipboard');
  49955. _this.container.setAttribute('contenteditable', true);
  49956. _this.container.setAttribute('tabindex', -1);
  49957. _this.matchers = [];
  49958. CLIPBOARD_CONFIG.concat(_this.options.matchers).forEach(function (_ref) {
  49959. var _ref2 = _slicedToArray(_ref, 2),
  49960. selector = _ref2[0],
  49961. matcher = _ref2[1];
  49962. if (!options.matchVisual && matcher === matchSpacing) return;
  49963. _this.addMatcher(selector, matcher);
  49964. });
  49965. return _this;
  49966. }
  49967. _createClass(Clipboard, [{
  49968. key: 'addMatcher',
  49969. value: function addMatcher(selector, matcher) {
  49970. this.matchers.push([selector, matcher]);
  49971. }
  49972. }, {
  49973. key: 'convert',
  49974. value: function convert(html) {
  49975. if (typeof html === 'string') {
  49976. this.container.innerHTML = html.replace(/\>\r?\n +\</g, '><'); // Remove spaces between tags
  49977. return this.convert();
  49978. }
  49979. var formats = this.quill.getFormat(this.quill.selection.savedRange.index);
  49980. if (formats[_code2.default.blotName]) {
  49981. var text = this.container.innerText;
  49982. this.container.innerHTML = '';
  49983. return new _quillDelta2.default().insert(text, _defineProperty({}, _code2.default.blotName, formats[_code2.default.blotName]));
  49984. }
  49985. var _prepareMatching = this.prepareMatching(),
  49986. _prepareMatching2 = _slicedToArray(_prepareMatching, 2),
  49987. elementMatchers = _prepareMatching2[0],
  49988. textMatchers = _prepareMatching2[1];
  49989. var delta = traverse(this.container, elementMatchers, textMatchers);
  49990. // Remove trailing newline
  49991. if (deltaEndsWith(delta, '\n') && delta.ops[delta.ops.length - 1].attributes == null) {
  49992. delta = delta.compose(new _quillDelta2.default().retain(delta.length() - 1).delete(1));
  49993. }
  49994. debug.log('convert', this.container.innerHTML, delta);
  49995. this.container.innerHTML = '';
  49996. return delta;
  49997. }
  49998. }, {
  49999. key: 'dangerouslyPasteHTML',
  50000. value: function dangerouslyPasteHTML(index, html) {
  50001. var source = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _quill2.default.sources.API;
  50002. if (typeof index === 'string') {
  50003. this.quill.setContents(this.convert(index), html);
  50004. this.quill.setSelection(0, _quill2.default.sources.SILENT);
  50005. } else {
  50006. var paste = this.convert(html);
  50007. this.quill.updateContents(new _quillDelta2.default().retain(index).concat(paste), source);
  50008. this.quill.setSelection(index + paste.length(), _quill2.default.sources.SILENT);
  50009. }
  50010. }
  50011. }, {
  50012. key: 'onPaste',
  50013. value: function onPaste(e) {
  50014. var _this2 = this;
  50015. if (e.defaultPrevented || !this.quill.isEnabled()) return;
  50016. var range = this.quill.getSelection();
  50017. var delta = new _quillDelta2.default().retain(range.index);
  50018. var scrollTop = this.quill.scrollingContainer.scrollTop;
  50019. this.container.focus();
  50020. this.quill.selection.update(_quill2.default.sources.SILENT);
  50021. setTimeout(function () {
  50022. delta = delta.concat(_this2.convert()).delete(range.length);
  50023. _this2.quill.updateContents(delta, _quill2.default.sources.USER);
  50024. // range.length contributes to delta.length()
  50025. _this2.quill.setSelection(delta.length() - range.length, _quill2.default.sources.SILENT);
  50026. _this2.quill.scrollingContainer.scrollTop = scrollTop;
  50027. _this2.quill.focus();
  50028. }, 1);
  50029. }
  50030. }, {
  50031. key: 'prepareMatching',
  50032. value: function prepareMatching() {
  50033. var _this3 = this;
  50034. var elementMatchers = [],
  50035. textMatchers = [];
  50036. this.matchers.forEach(function (pair) {
  50037. var _pair = _slicedToArray(pair, 2),
  50038. selector = _pair[0],
  50039. matcher = _pair[1];
  50040. switch (selector) {
  50041. case Node.TEXT_NODE:
  50042. textMatchers.push(matcher);
  50043. break;
  50044. case Node.ELEMENT_NODE:
  50045. elementMatchers.push(matcher);
  50046. break;
  50047. default:
  50048. [].forEach.call(_this3.container.querySelectorAll(selector), function (node) {
  50049. // TODO use weakmap
  50050. node[DOM_KEY] = node[DOM_KEY] || [];
  50051. node[DOM_KEY].push(matcher);
  50052. });
  50053. break;
  50054. }
  50055. });
  50056. return [elementMatchers, textMatchers];
  50057. }
  50058. }]);
  50059. return Clipboard;
  50060. }(_module2.default);
  50061. Clipboard.DEFAULTS = {
  50062. matchers: [],
  50063. matchVisual: true
  50064. };
  50065. function applyFormat(delta, format, value) {
  50066. if ((typeof format === 'undefined' ? 'undefined' : _typeof(format)) === 'object') {
  50067. return Object.keys(format).reduce(function (delta, key) {
  50068. return applyFormat(delta, key, format[key]);
  50069. }, delta);
  50070. } else {
  50071. return delta.reduce(function (delta, op) {
  50072. if (op.attributes && op.attributes[format]) {
  50073. return delta.push(op);
  50074. } else {
  50075. return delta.insert(op.insert, (0, _extend3.default)({}, _defineProperty({}, format, value), op.attributes));
  50076. }
  50077. }, new _quillDelta2.default());
  50078. }
  50079. }
  50080. function computeStyle(node) {
  50081. if (node.nodeType !== Node.ELEMENT_NODE) return {};
  50082. var DOM_KEY = '__ql-computed-style';
  50083. return node[DOM_KEY] || (node[DOM_KEY] = window.getComputedStyle(node));
  50084. }
  50085. function deltaEndsWith(delta, text) {
  50086. var endText = "";
  50087. for (var i = delta.ops.length - 1; i >= 0 && endText.length < text.length; --i) {
  50088. var op = delta.ops[i];
  50089. if (typeof op.insert !== 'string') break;
  50090. endText = op.insert + endText;
  50091. }
  50092. return endText.slice(-1 * text.length) === text;
  50093. }
  50094. function isLine(node) {
  50095. if (node.childNodes.length === 0) return false; // Exclude embed blocks
  50096. var style = computeStyle(node);
  50097. return ['block', 'list-item'].indexOf(style.display) > -1;
  50098. }
  50099. function traverse(node, elementMatchers, textMatchers) {
  50100. // Post-order
  50101. if (node.nodeType === node.TEXT_NODE) {
  50102. return textMatchers.reduce(function (delta, matcher) {
  50103. return matcher(node, delta);
  50104. }, new _quillDelta2.default());
  50105. } else if (node.nodeType === node.ELEMENT_NODE) {
  50106. return [].reduce.call(node.childNodes || [], function (delta, childNode) {
  50107. var childrenDelta = traverse(childNode, elementMatchers, textMatchers);
  50108. if (childNode.nodeType === node.ELEMENT_NODE) {
  50109. childrenDelta = elementMatchers.reduce(function (childrenDelta, matcher) {
  50110. return matcher(childNode, childrenDelta);
  50111. }, childrenDelta);
  50112. childrenDelta = (childNode[DOM_KEY] || []).reduce(function (childrenDelta, matcher) {
  50113. return matcher(childNode, childrenDelta);
  50114. }, childrenDelta);
  50115. }
  50116. return delta.concat(childrenDelta);
  50117. }, new _quillDelta2.default());
  50118. } else {
  50119. return new _quillDelta2.default();
  50120. }
  50121. }
  50122. function matchAlias(format, node, delta) {
  50123. return applyFormat(delta, format, true);
  50124. }
  50125. function matchAttributor(node, delta) {
  50126. var attributes = _parchment2.default.Attributor.Attribute.keys(node);
  50127. var classes = _parchment2.default.Attributor.Class.keys(node);
  50128. var styles = _parchment2.default.Attributor.Style.keys(node);
  50129. var formats = {};
  50130. attributes.concat(classes).concat(styles).forEach(function (name) {
  50131. var attr = _parchment2.default.query(name, _parchment2.default.Scope.ATTRIBUTE);
  50132. if (attr != null) {
  50133. formats[attr.attrName] = attr.value(node);
  50134. if (formats[attr.attrName]) return;
  50135. }
  50136. attr = ATTRIBUTE_ATTRIBUTORS[name];
  50137. if (attr != null && (attr.attrName === name || attr.keyName === name)) {
  50138. formats[attr.attrName] = attr.value(node) || undefined;
  50139. }
  50140. attr = STYLE_ATTRIBUTORS[name];
  50141. if (attr != null && (attr.attrName === name || attr.keyName === name)) {
  50142. attr = STYLE_ATTRIBUTORS[name];
  50143. formats[attr.attrName] = attr.value(node) || undefined;
  50144. }
  50145. });
  50146. if (Object.keys(formats).length > 0) {
  50147. delta = applyFormat(delta, formats);
  50148. }
  50149. return delta;
  50150. }
  50151. function matchBlot(node, delta) {
  50152. var match = _parchment2.default.query(node);
  50153. if (match == null) return delta;
  50154. if (match.prototype instanceof _parchment2.default.Embed) {
  50155. var embed = {};
  50156. var value = match.value(node);
  50157. if (value != null) {
  50158. embed[match.blotName] = value;
  50159. delta = new _quillDelta2.default().insert(embed, match.formats(node));
  50160. }
  50161. } else if (typeof match.formats === 'function') {
  50162. delta = applyFormat(delta, match.blotName, match.formats(node));
  50163. }
  50164. return delta;
  50165. }
  50166. function matchBreak(node, delta) {
  50167. if (!deltaEndsWith(delta, '\n')) {
  50168. delta.insert('\n');
  50169. }
  50170. return delta;
  50171. }
  50172. function matchIgnore() {
  50173. return new _quillDelta2.default();
  50174. }
  50175. function matchIndent(node, delta) {
  50176. var match = _parchment2.default.query(node);
  50177. if (match == null || match.blotName !== 'list-item' || !deltaEndsWith(delta, '\n')) {
  50178. return delta;
  50179. }
  50180. var indent = -1,
  50181. parent = node.parentNode;
  50182. while (!parent.classList.contains('ql-clipboard')) {
  50183. if ((_parchment2.default.query(parent) || {}).blotName === 'list') {
  50184. indent += 1;
  50185. }
  50186. parent = parent.parentNode;
  50187. }
  50188. if (indent <= 0) return delta;
  50189. return delta.compose(new _quillDelta2.default().retain(delta.length() - 1).retain(1, { indent: indent }));
  50190. }
  50191. function matchNewline(node, delta) {
  50192. if (!deltaEndsWith(delta, '\n')) {
  50193. if (isLine(node) || delta.length() > 0 && node.nextSibling && isLine(node.nextSibling)) {
  50194. delta.insert('\n');
  50195. }
  50196. }
  50197. return delta;
  50198. }
  50199. function matchSpacing(node, delta) {
  50200. if (isLine(node) && node.nextElementSibling != null && !deltaEndsWith(delta, '\n\n')) {
  50201. var nodeHeight = node.offsetHeight + parseFloat(computeStyle(node).marginTop) + parseFloat(computeStyle(node).marginBottom);
  50202. if (node.nextElementSibling.offsetTop > node.offsetTop + nodeHeight * 1.5) {
  50203. delta.insert('\n');
  50204. }
  50205. }
  50206. return delta;
  50207. }
  50208. function matchStyles(node, delta) {
  50209. var formats = {};
  50210. var style = node.style || {};
  50211. if (style.fontStyle && computeStyle(node).fontStyle === 'italic') {
  50212. formats.italic = true;
  50213. }
  50214. if (style.fontWeight && (computeStyle(node).fontWeight.startsWith('bold') || parseInt(computeStyle(node).fontWeight) >= 700)) {
  50215. formats.bold = true;
  50216. }
  50217. if (Object.keys(formats).length > 0) {
  50218. delta = applyFormat(delta, formats);
  50219. }
  50220. if (parseFloat(style.textIndent || 0) > 0) {
  50221. // Could be 0.5in
  50222. delta = new _quillDelta2.default().insert('\t').concat(delta);
  50223. }
  50224. return delta;
  50225. }
  50226. function matchText(node, delta) {
  50227. var text = node.data;
  50228. // Word represents empty line with <o:p>&nbsp;</o:p>
  50229. if (node.parentNode.tagName === 'O:P') {
  50230. return delta.insert(text.trim());
  50231. }
  50232. if (text.trim().length === 0 && node.parentNode.classList.contains('ql-clipboard')) {
  50233. return delta;
  50234. }
  50235. if (!computeStyle(node.parentNode).whiteSpace.startsWith('pre')) {
  50236. // eslint-disable-next-line func-style
  50237. var replacer = function replacer(collapse, match) {
  50238. match = match.replace(/[^\u00a0]/g, ''); // \u00a0 is nbsp;
  50239. return match.length < 1 && collapse ? ' ' : match;
  50240. };
  50241. text = text.replace(/\r\n/g, ' ').replace(/\n/g, ' ');
  50242. text = text.replace(/\s\s+/g, replacer.bind(replacer, true)); // collapse whitespace
  50243. if (node.previousSibling == null && isLine(node.parentNode) || node.previousSibling != null && isLine(node.previousSibling)) {
  50244. text = text.replace(/^\s+/, replacer.bind(replacer, false));
  50245. }
  50246. if (node.nextSibling == null && isLine(node.parentNode) || node.nextSibling != null && isLine(node.nextSibling)) {
  50247. text = text.replace(/\s+$/, replacer.bind(replacer, false));
  50248. }
  50249. }
  50250. return delta.insert(text);
  50251. }
  50252. exports.default = Clipboard;
  50253. exports.matchAttributor = matchAttributor;
  50254. exports.matchBlot = matchBlot;
  50255. exports.matchNewline = matchNewline;
  50256. exports.matchSpacing = matchSpacing;
  50257. exports.matchText = matchText;
  50258. /***/ }),
  50259. /* 56 */
  50260. /***/ (function(module, exports, __nested_webpack_require_333274__) {
  50261. "use strict";
  50262. Object.defineProperty(exports, "__esModule", {
  50263. value: true
  50264. });
  50265. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  50266. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  50267. var _inline = __nested_webpack_require_333274__(6);
  50268. var _inline2 = _interopRequireDefault(_inline);
  50269. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50270. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  50271. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  50272. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  50273. var Bold = function (_Inline) {
  50274. _inherits(Bold, _Inline);
  50275. function Bold() {
  50276. _classCallCheck(this, Bold);
  50277. return _possibleConstructorReturn(this, (Bold.__proto__ || Object.getPrototypeOf(Bold)).apply(this, arguments));
  50278. }
  50279. _createClass(Bold, [{
  50280. key: 'optimize',
  50281. value: function optimize(context) {
  50282. _get(Bold.prototype.__proto__ || Object.getPrototypeOf(Bold.prototype), 'optimize', this).call(this, context);
  50283. if (this.domNode.tagName !== this.statics.tagName[0]) {
  50284. this.replaceWith(this.statics.blotName);
  50285. }
  50286. }
  50287. }], [{
  50288. key: 'create',
  50289. value: function create() {
  50290. return _get(Bold.__proto__ || Object.getPrototypeOf(Bold), 'create', this).call(this);
  50291. }
  50292. }, {
  50293. key: 'formats',
  50294. value: function formats() {
  50295. return true;
  50296. }
  50297. }]);
  50298. return Bold;
  50299. }(_inline2.default);
  50300. Bold.blotName = 'bold';
  50301. Bold.tagName = ['STRONG', 'B'];
  50302. exports.default = Bold;
  50303. /***/ }),
  50304. /* 57 */
  50305. /***/ (function(module, exports, __nested_webpack_require_336502__) {
  50306. "use strict";
  50307. Object.defineProperty(exports, "__esModule", {
  50308. value: true
  50309. });
  50310. exports.addControls = exports.default = undefined;
  50311. var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
  50312. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  50313. var _quillDelta = __nested_webpack_require_336502__(2);
  50314. var _quillDelta2 = _interopRequireDefault(_quillDelta);
  50315. var _parchment = __nested_webpack_require_336502__(0);
  50316. var _parchment2 = _interopRequireDefault(_parchment);
  50317. var _quill = __nested_webpack_require_336502__(5);
  50318. var _quill2 = _interopRequireDefault(_quill);
  50319. var _logger = __nested_webpack_require_336502__(10);
  50320. var _logger2 = _interopRequireDefault(_logger);
  50321. var _module = __nested_webpack_require_336502__(9);
  50322. var _module2 = _interopRequireDefault(_module);
  50323. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50324. function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  50325. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  50326. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  50327. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  50328. var debug = (0, _logger2.default)('quill:toolbar');
  50329. var Toolbar = function (_Module) {
  50330. _inherits(Toolbar, _Module);
  50331. function Toolbar(quill, options) {
  50332. _classCallCheck(this, Toolbar);
  50333. var _this = _possibleConstructorReturn(this, (Toolbar.__proto__ || Object.getPrototypeOf(Toolbar)).call(this, quill, options));
  50334. if (Array.isArray(_this.options.container)) {
  50335. var container = document.createElement('div');
  50336. addControls(container, _this.options.container);
  50337. quill.container.parentNode.insertBefore(container, quill.container);
  50338. _this.container = container;
  50339. } else if (typeof _this.options.container === 'string') {
  50340. _this.container = document.querySelector(_this.options.container);
  50341. } else {
  50342. _this.container = _this.options.container;
  50343. }
  50344. if (!(_this.container instanceof HTMLElement)) {
  50345. var _ret;
  50346. return _ret = debug.error('Container required for toolbar', _this.options), _possibleConstructorReturn(_this, _ret);
  50347. }
  50348. _this.container.classList.add('ql-toolbar');
  50349. _this.controls = [];
  50350. _this.handlers = {};
  50351. Object.keys(_this.options.handlers).forEach(function (format) {
  50352. _this.addHandler(format, _this.options.handlers[format]);
  50353. });
  50354. [].forEach.call(_this.container.querySelectorAll('button, select'), function (input) {
  50355. _this.attach(input);
  50356. });
  50357. _this.quill.on(_quill2.default.events.EDITOR_CHANGE, function (type, range) {
  50358. if (type === _quill2.default.events.SELECTION_CHANGE) {
  50359. _this.update(range);
  50360. }
  50361. });
  50362. _this.quill.on(_quill2.default.events.SCROLL_OPTIMIZE, function () {
  50363. var _this$quill$selection = _this.quill.selection.getRange(),
  50364. _this$quill$selection2 = _slicedToArray(_this$quill$selection, 1),
  50365. range = _this$quill$selection2[0]; // quill.getSelection triggers update
  50366. _this.update(range);
  50367. });
  50368. return _this;
  50369. }
  50370. _createClass(Toolbar, [{
  50371. key: 'addHandler',
  50372. value: function addHandler(format, handler) {
  50373. this.handlers[format] = handler;
  50374. }
  50375. }, {
  50376. key: 'attach',
  50377. value: function attach(input) {
  50378. var _this2 = this;
  50379. var format = [].find.call(input.classList, function (className) {
  50380. return className.indexOf('ql-') === 0;
  50381. });
  50382. if (!format) return;
  50383. format = format.slice('ql-'.length);
  50384. if (input.tagName === 'BUTTON') {
  50385. input.setAttribute('type', 'button');
  50386. }
  50387. if (this.handlers[format] == null) {
  50388. if (this.quill.scroll.whitelist != null && this.quill.scroll.whitelist[format] == null) {
  50389. debug.warn('ignoring attaching to disabled format', format, input);
  50390. return;
  50391. }
  50392. if (_parchment2.default.query(format) == null) {
  50393. debug.warn('ignoring attaching to nonexistent format', format, input);
  50394. return;
  50395. }
  50396. }
  50397. var eventName = input.tagName === 'SELECT' ? 'change' : 'click';
  50398. input.addEventListener(eventName, function (e) {
  50399. var value = void 0;
  50400. if (input.tagName === 'SELECT') {
  50401. if (input.selectedIndex < 0) return;
  50402. var selected = input.options[input.selectedIndex];
  50403. if (selected.hasAttribute('selected')) {
  50404. value = false;
  50405. } else {
  50406. value = selected.value || false;
  50407. }
  50408. } else {
  50409. if (input.classList.contains('ql-active')) {
  50410. value = false;
  50411. } else {
  50412. value = input.value || !input.hasAttribute('value');
  50413. }
  50414. e.preventDefault();
  50415. }
  50416. _this2.quill.focus();
  50417. var _quill$selection$getR = _this2.quill.selection.getRange(),
  50418. _quill$selection$getR2 = _slicedToArray(_quill$selection$getR, 1),
  50419. range = _quill$selection$getR2[0];
  50420. if (_this2.handlers[format] != null) {
  50421. _this2.handlers[format].call(_this2, value);
  50422. } else if (_parchment2.default.query(format).prototype instanceof _parchment2.default.Embed) {
  50423. value = prompt('Enter ' + format);
  50424. if (!value) return;
  50425. _this2.quill.updateContents(new _quillDelta2.default().retain(range.index).delete(range.length).insert(_defineProperty({}, format, value)), _quill2.default.sources.USER);
  50426. } else {
  50427. _this2.quill.format(format, value, _quill2.default.sources.USER);
  50428. }
  50429. _this2.update(range);
  50430. });
  50431. // TODO use weakmap
  50432. this.controls.push([format, input]);
  50433. }
  50434. }, {
  50435. key: 'update',
  50436. value: function update(range) {
  50437. var formats = range == null ? {} : this.quill.getFormat(range);
  50438. this.controls.forEach(function (pair) {
  50439. var _pair = _slicedToArray(pair, 2),
  50440. format = _pair[0],
  50441. input = _pair[1];
  50442. if (input.tagName === 'SELECT') {
  50443. var option = void 0;
  50444. if (range == null) {
  50445. option = null;
  50446. } else if (formats[format] == null) {
  50447. option = input.querySelector('option[selected]');
  50448. } else if (!Array.isArray(formats[format])) {
  50449. var value = formats[format];
  50450. if (typeof value === 'string') {
  50451. value = value.replace(/\"/g, '\\"');
  50452. }
  50453. option = input.querySelector('option[value="' + value + '"]');
  50454. }
  50455. if (option == null) {
  50456. input.value = ''; // TODO make configurable?
  50457. input.selectedIndex = -1;
  50458. } else {
  50459. option.selected = true;
  50460. }
  50461. } else {
  50462. if (range == null) {
  50463. input.classList.remove('ql-active');
  50464. } else if (input.hasAttribute('value')) {
  50465. // both being null should match (default values)
  50466. // '1' should match with 1 (headers)
  50467. var isActive = formats[format] === input.getAttribute('value') || formats[format] != null && formats[format].toString() === input.getAttribute('value') || formats[format] == null && !input.getAttribute('value');
  50468. input.classList.toggle('ql-active', isActive);
  50469. } else {
  50470. input.classList.toggle('ql-active', formats[format] != null);
  50471. }
  50472. }
  50473. });
  50474. }
  50475. }]);
  50476. return Toolbar;
  50477. }(_module2.default);
  50478. Toolbar.DEFAULTS = {};
  50479. function addButton(container, format, value) {
  50480. var input = document.createElement('button');
  50481. input.setAttribute('type', 'button');
  50482. input.classList.add('ql-' + format);
  50483. if (value != null) {
  50484. input.value = value;
  50485. }
  50486. container.appendChild(input);
  50487. }
  50488. function addControls(container, groups) {
  50489. if (!Array.isArray(groups[0])) {
  50490. groups = [groups];
  50491. }
  50492. groups.forEach(function (controls) {
  50493. var group = document.createElement('span');
  50494. group.classList.add('ql-formats');
  50495. controls.forEach(function (control) {
  50496. if (typeof control === 'string') {
  50497. addButton(group, control);
  50498. } else {
  50499. var format = Object.keys(control)[0];
  50500. var value = control[format];
  50501. if (Array.isArray(value)) {
  50502. addSelect(group, format, value);
  50503. } else {
  50504. addButton(group, format, value);
  50505. }
  50506. }
  50507. });
  50508. container.appendChild(group);
  50509. });
  50510. }
  50511. function addSelect(container, format, values) {
  50512. var input = document.createElement('select');
  50513. input.classList.add('ql-' + format);
  50514. values.forEach(function (value) {
  50515. var option = document.createElement('option');
  50516. if (value !== false) {
  50517. option.setAttribute('value', value);
  50518. } else {
  50519. option.setAttribute('selected', 'selected');
  50520. }
  50521. input.appendChild(option);
  50522. });
  50523. container.appendChild(input);
  50524. }
  50525. Toolbar.DEFAULTS = {
  50526. container: null,
  50527. handlers: {
  50528. clean: function clean() {
  50529. var _this3 = this;
  50530. var range = this.quill.getSelection();
  50531. if (range == null) return;
  50532. if (range.length == 0) {
  50533. var formats = this.quill.getFormat();
  50534. Object.keys(formats).forEach(function (name) {
  50535. // Clean functionality in existing apps only clean inline formats
  50536. if (_parchment2.default.query(name, _parchment2.default.Scope.INLINE) != null) {
  50537. _this3.quill.format(name, false);
  50538. }
  50539. });
  50540. } else {
  50541. this.quill.removeFormat(range, _quill2.default.sources.USER);
  50542. }
  50543. },
  50544. direction: function direction(value) {
  50545. var align = this.quill.getFormat()['align'];
  50546. if (value === 'rtl' && align == null) {
  50547. this.quill.format('align', 'right', _quill2.default.sources.USER);
  50548. } else if (!value && align === 'right') {
  50549. this.quill.format('align', false, _quill2.default.sources.USER);
  50550. }
  50551. this.quill.format('direction', value, _quill2.default.sources.USER);
  50552. },
  50553. indent: function indent(value) {
  50554. var range = this.quill.getSelection();
  50555. var formats = this.quill.getFormat(range);
  50556. var indent = parseInt(formats.indent || 0);
  50557. if (value === '+1' || value === '-1') {
  50558. var modifier = value === '+1' ? 1 : -1;
  50559. if (formats.direction === 'rtl') modifier *= -1;
  50560. this.quill.format('indent', indent + modifier, _quill2.default.sources.USER);
  50561. }
  50562. },
  50563. link: function link(value) {
  50564. if (value === true) {
  50565. value = prompt('Enter link URL:');
  50566. }
  50567. this.quill.format('link', value, _quill2.default.sources.USER);
  50568. },
  50569. list: function list(value) {
  50570. var range = this.quill.getSelection();
  50571. var formats = this.quill.getFormat(range);
  50572. if (value === 'check') {
  50573. if (formats['list'] === 'checked' || formats['list'] === 'unchecked') {
  50574. this.quill.format('list', false, _quill2.default.sources.USER);
  50575. } else {
  50576. this.quill.format('list', 'unchecked', _quill2.default.sources.USER);
  50577. }
  50578. } else {
  50579. this.quill.format('list', value, _quill2.default.sources.USER);
  50580. }
  50581. }
  50582. }
  50583. };
  50584. exports.default = Toolbar;
  50585. exports.addControls = addControls;
  50586. /***/ }),
  50587. /* 58 */
  50588. /***/ (function(module, exports) {
  50589. module.exports = "<svg viewbox=\"0 0 18 18\"> <polyline class=\"ql-even ql-stroke\" points=\"5 7 3 9 5 11\"></polyline> <polyline class=\"ql-even ql-stroke\" points=\"13 7 15 9 13 11\"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>";
  50590. /***/ }),
  50591. /* 59 */
  50592. /***/ (function(module, exports, __nested_webpack_require_349781__) {
  50593. "use strict";
  50594. Object.defineProperty(exports, "__esModule", {
  50595. value: true
  50596. });
  50597. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  50598. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  50599. var _picker = __nested_webpack_require_349781__(28);
  50600. var _picker2 = _interopRequireDefault(_picker);
  50601. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50602. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  50603. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  50604. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  50605. var ColorPicker = function (_Picker) {
  50606. _inherits(ColorPicker, _Picker);
  50607. function ColorPicker(select, label) {
  50608. _classCallCheck(this, ColorPicker);
  50609. var _this = _possibleConstructorReturn(this, (ColorPicker.__proto__ || Object.getPrototypeOf(ColorPicker)).call(this, select));
  50610. _this.label.innerHTML = label;
  50611. _this.container.classList.add('ql-color-picker');
  50612. [].slice.call(_this.container.querySelectorAll('.ql-picker-item'), 0, 7).forEach(function (item) {
  50613. item.classList.add('ql-primary');
  50614. });
  50615. return _this;
  50616. }
  50617. _createClass(ColorPicker, [{
  50618. key: 'buildItem',
  50619. value: function buildItem(option) {
  50620. var item = _get(ColorPicker.prototype.__proto__ || Object.getPrototypeOf(ColorPicker.prototype), 'buildItem', this).call(this, option);
  50621. item.style.backgroundColor = option.getAttribute('value') || '';
  50622. return item;
  50623. }
  50624. }, {
  50625. key: 'selectItem',
  50626. value: function selectItem(item, trigger) {
  50627. _get(ColorPicker.prototype.__proto__ || Object.getPrototypeOf(ColorPicker.prototype), 'selectItem', this).call(this, item, trigger);
  50628. var colorLabel = this.label.querySelector('.ql-color-label');
  50629. var value = item ? item.getAttribute('data-value') || '' : '';
  50630. if (colorLabel) {
  50631. if (colorLabel.tagName === 'line') {
  50632. colorLabel.style.stroke = value;
  50633. } else {
  50634. colorLabel.style.fill = value;
  50635. }
  50636. }
  50637. }
  50638. }]);
  50639. return ColorPicker;
  50640. }(_picker2.default);
  50641. exports.default = ColorPicker;
  50642. /***/ }),
  50643. /* 60 */
  50644. /***/ (function(module, exports, __nested_webpack_require_353592__) {
  50645. "use strict";
  50646. Object.defineProperty(exports, "__esModule", {
  50647. value: true
  50648. });
  50649. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  50650. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  50651. var _picker = __nested_webpack_require_353592__(28);
  50652. var _picker2 = _interopRequireDefault(_picker);
  50653. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50654. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  50655. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  50656. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  50657. var IconPicker = function (_Picker) {
  50658. _inherits(IconPicker, _Picker);
  50659. function IconPicker(select, icons) {
  50660. _classCallCheck(this, IconPicker);
  50661. var _this = _possibleConstructorReturn(this, (IconPicker.__proto__ || Object.getPrototypeOf(IconPicker)).call(this, select));
  50662. _this.container.classList.add('ql-icon-picker');
  50663. [].forEach.call(_this.container.querySelectorAll('.ql-picker-item'), function (item) {
  50664. item.innerHTML = icons[item.getAttribute('data-value') || ''];
  50665. });
  50666. _this.defaultItem = _this.container.querySelector('.ql-selected');
  50667. _this.selectItem(_this.defaultItem);
  50668. return _this;
  50669. }
  50670. _createClass(IconPicker, [{
  50671. key: 'selectItem',
  50672. value: function selectItem(item, trigger) {
  50673. _get(IconPicker.prototype.__proto__ || Object.getPrototypeOf(IconPicker.prototype), 'selectItem', this).call(this, item, trigger);
  50674. item = item || this.defaultItem;
  50675. this.label.innerHTML = item.innerHTML;
  50676. }
  50677. }]);
  50678. return IconPicker;
  50679. }(_picker2.default);
  50680. exports.default = IconPicker;
  50681. /***/ }),
  50682. /* 61 */
  50683. /***/ (function(module, exports, __webpack_require__) {
  50684. "use strict";
  50685. Object.defineProperty(exports, "__esModule", {
  50686. value: true
  50687. });
  50688. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  50689. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  50690. var Tooltip = function () {
  50691. function Tooltip(quill, boundsContainer) {
  50692. var _this = this;
  50693. _classCallCheck(this, Tooltip);
  50694. this.quill = quill;
  50695. this.boundsContainer = boundsContainer || document.body;
  50696. this.root = quill.addContainer('ql-tooltip');
  50697. this.root.innerHTML = this.constructor.TEMPLATE;
  50698. if (this.quill.root === this.quill.scrollingContainer) {
  50699. this.quill.root.addEventListener('scroll', function () {
  50700. _this.root.style.marginTop = -1 * _this.quill.root.scrollTop + 'px';
  50701. });
  50702. }
  50703. this.hide();
  50704. }
  50705. _createClass(Tooltip, [{
  50706. key: 'hide',
  50707. value: function hide() {
  50708. this.root.classList.add('ql-hidden');
  50709. }
  50710. }, {
  50711. key: 'position',
  50712. value: function position(reference) {
  50713. var left = reference.left + reference.width / 2 - this.root.offsetWidth / 2;
  50714. // root.scrollTop should be 0 if scrollContainer !== root
  50715. var top = reference.bottom + this.quill.root.scrollTop;
  50716. this.root.style.left = left + 'px';
  50717. this.root.style.top = top + 'px';
  50718. this.root.classList.remove('ql-flip');
  50719. var containerBounds = this.boundsContainer.getBoundingClientRect();
  50720. var rootBounds = this.root.getBoundingClientRect();
  50721. var shift = 0;
  50722. if (rootBounds.right > containerBounds.right) {
  50723. shift = containerBounds.right - rootBounds.right;
  50724. this.root.style.left = left + shift + 'px';
  50725. }
  50726. if (rootBounds.left < containerBounds.left) {
  50727. shift = containerBounds.left - rootBounds.left;
  50728. this.root.style.left = left + shift + 'px';
  50729. }
  50730. if (rootBounds.bottom > containerBounds.bottom) {
  50731. var height = rootBounds.bottom - rootBounds.top;
  50732. var verticalShift = reference.bottom - reference.top + height;
  50733. this.root.style.top = top - verticalShift + 'px';
  50734. this.root.classList.add('ql-flip');
  50735. }
  50736. return shift;
  50737. }
  50738. }, {
  50739. key: 'show',
  50740. value: function show() {
  50741. this.root.classList.remove('ql-editing');
  50742. this.root.classList.remove('ql-hidden');
  50743. }
  50744. }]);
  50745. return Tooltip;
  50746. }();
  50747. exports.default = Tooltip;
  50748. /***/ }),
  50749. /* 62 */
  50750. /***/ (function(module, exports, __nested_webpack_require_359932__) {
  50751. "use strict";
  50752. Object.defineProperty(exports, "__esModule", {
  50753. value: true
  50754. });
  50755. var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
  50756. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  50757. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  50758. var _extend = __nested_webpack_require_359932__(3);
  50759. var _extend2 = _interopRequireDefault(_extend);
  50760. var _emitter = __nested_webpack_require_359932__(8);
  50761. var _emitter2 = _interopRequireDefault(_emitter);
  50762. var _base = __nested_webpack_require_359932__(43);
  50763. var _base2 = _interopRequireDefault(_base);
  50764. var _link = __nested_webpack_require_359932__(27);
  50765. var _link2 = _interopRequireDefault(_link);
  50766. var _selection = __nested_webpack_require_359932__(15);
  50767. var _icons = __nested_webpack_require_359932__(41);
  50768. var _icons2 = _interopRequireDefault(_icons);
  50769. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50770. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  50771. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  50772. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  50773. var TOOLBAR_CONFIG = [[{ header: ['1', '2', '3', false] }], ['bold', 'italic', 'underline', 'link'], [{ list: 'ordered' }, { list: 'bullet' }], ['clean']];
  50774. var SnowTheme = function (_BaseTheme) {
  50775. _inherits(SnowTheme, _BaseTheme);
  50776. function SnowTheme(quill, options) {
  50777. _classCallCheck(this, SnowTheme);
  50778. if (options.modules.toolbar != null && options.modules.toolbar.container == null) {
  50779. options.modules.toolbar.container = TOOLBAR_CONFIG;
  50780. }
  50781. var _this = _possibleConstructorReturn(this, (SnowTheme.__proto__ || Object.getPrototypeOf(SnowTheme)).call(this, quill, options));
  50782. _this.quill.container.classList.add('ql-snow');
  50783. return _this;
  50784. }
  50785. _createClass(SnowTheme, [{
  50786. key: 'extendToolbar',
  50787. value: function extendToolbar(toolbar) {
  50788. toolbar.container.classList.add('ql-snow');
  50789. this.buildButtons([].slice.call(toolbar.container.querySelectorAll('button')), _icons2.default);
  50790. this.buildPickers([].slice.call(toolbar.container.querySelectorAll('select')), _icons2.default);
  50791. this.tooltip = new SnowTooltip(this.quill, this.options.bounds);
  50792. if (toolbar.container.querySelector('.ql-link')) {
  50793. this.quill.keyboard.addBinding({ key: 'K', shortKey: true }, function (range, context) {
  50794. toolbar.handlers['link'].call(toolbar, !context.format.link);
  50795. });
  50796. }
  50797. }
  50798. }]);
  50799. return SnowTheme;
  50800. }(_base2.default);
  50801. SnowTheme.DEFAULTS = (0, _extend2.default)(true, {}, _base2.default.DEFAULTS, {
  50802. modules: {
  50803. toolbar: {
  50804. handlers: {
  50805. link: function link(value) {
  50806. if (value) {
  50807. var range = this.quill.getSelection();
  50808. if (range == null || range.length == 0) return;
  50809. var preview = this.quill.getText(range);
  50810. if (/^\S+@\S+\.\S+$/.test(preview) && preview.indexOf('mailto:') !== 0) {
  50811. preview = 'mailto:' + preview;
  50812. }
  50813. var tooltip = this.quill.theme.tooltip;
  50814. tooltip.edit('link', preview);
  50815. } else {
  50816. this.quill.format('link', false);
  50817. }
  50818. }
  50819. }
  50820. }
  50821. }
  50822. });
  50823. var SnowTooltip = function (_BaseTooltip) {
  50824. _inherits(SnowTooltip, _BaseTooltip);
  50825. function SnowTooltip(quill, bounds) {
  50826. _classCallCheck(this, SnowTooltip);
  50827. var _this2 = _possibleConstructorReturn(this, (SnowTooltip.__proto__ || Object.getPrototypeOf(SnowTooltip)).call(this, quill, bounds));
  50828. _this2.preview = _this2.root.querySelector('a.ql-preview');
  50829. return _this2;
  50830. }
  50831. _createClass(SnowTooltip, [{
  50832. key: 'listen',
  50833. value: function listen() {
  50834. var _this3 = this;
  50835. _get(SnowTooltip.prototype.__proto__ || Object.getPrototypeOf(SnowTooltip.prototype), 'listen', this).call(this);
  50836. this.root.querySelector('a.ql-action').addEventListener('click', function (event) {
  50837. if (_this3.root.classList.contains('ql-editing')) {
  50838. _this3.save();
  50839. } else {
  50840. _this3.edit('link', _this3.preview.textContent);
  50841. }
  50842. event.preventDefault();
  50843. });
  50844. this.root.querySelector('a.ql-remove').addEventListener('click', function (event) {
  50845. if (_this3.linkRange != null) {
  50846. var range = _this3.linkRange;
  50847. _this3.restoreFocus();
  50848. _this3.quill.formatText(range, 'link', false, _emitter2.default.sources.USER);
  50849. delete _this3.linkRange;
  50850. }
  50851. event.preventDefault();
  50852. _this3.hide();
  50853. });
  50854. this.quill.on(_emitter2.default.events.SELECTION_CHANGE, function (range, oldRange, source) {
  50855. if (range == null) return;
  50856. if (range.length === 0 && source === _emitter2.default.sources.USER) {
  50857. var _quill$scroll$descend = _this3.quill.scroll.descendant(_link2.default, range.index),
  50858. _quill$scroll$descend2 = _slicedToArray(_quill$scroll$descend, 2),
  50859. link = _quill$scroll$descend2[0],
  50860. offset = _quill$scroll$descend2[1];
  50861. if (link != null) {
  50862. _this3.linkRange = new _selection.Range(range.index - offset, link.length());
  50863. var preview = _link2.default.formats(link.domNode);
  50864. _this3.preview.textContent = preview;
  50865. _this3.preview.setAttribute('href', preview);
  50866. _this3.show();
  50867. _this3.position(_this3.quill.getBounds(_this3.linkRange));
  50868. return;
  50869. }
  50870. } else {
  50871. delete _this3.linkRange;
  50872. }
  50873. _this3.hide();
  50874. });
  50875. }
  50876. }, {
  50877. key: 'show',
  50878. value: function show() {
  50879. _get(SnowTooltip.prototype.__proto__ || Object.getPrototypeOf(SnowTooltip.prototype), 'show', this).call(this);
  50880. this.root.removeAttribute('data-mode');
  50881. }
  50882. }]);
  50883. return SnowTooltip;
  50884. }(_base.BaseTooltip);
  50885. SnowTooltip.TEMPLATE = ['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-action"></a>', '<a class="ql-remove"></a>'].join('');
  50886. exports.default = SnowTheme;
  50887. /***/ }),
  50888. /* 63 */
  50889. /***/ (function(module, exports, __nested_webpack_require_368316__) {
  50890. "use strict";
  50891. Object.defineProperty(exports, "__esModule", {
  50892. value: true
  50893. });
  50894. var _core = __nested_webpack_require_368316__(29);
  50895. var _core2 = _interopRequireDefault(_core);
  50896. var _align = __nested_webpack_require_368316__(36);
  50897. var _direction = __nested_webpack_require_368316__(38);
  50898. var _indent = __nested_webpack_require_368316__(64);
  50899. var _blockquote = __nested_webpack_require_368316__(65);
  50900. var _blockquote2 = _interopRequireDefault(_blockquote);
  50901. var _header = __nested_webpack_require_368316__(66);
  50902. var _header2 = _interopRequireDefault(_header);
  50903. var _list = __nested_webpack_require_368316__(67);
  50904. var _list2 = _interopRequireDefault(_list);
  50905. var _background = __nested_webpack_require_368316__(37);
  50906. var _color = __nested_webpack_require_368316__(26);
  50907. var _font = __nested_webpack_require_368316__(39);
  50908. var _size = __nested_webpack_require_368316__(40);
  50909. var _bold = __nested_webpack_require_368316__(56);
  50910. var _bold2 = _interopRequireDefault(_bold);
  50911. var _italic = __nested_webpack_require_368316__(68);
  50912. var _italic2 = _interopRequireDefault(_italic);
  50913. var _link = __nested_webpack_require_368316__(27);
  50914. var _link2 = _interopRequireDefault(_link);
  50915. var _script = __nested_webpack_require_368316__(69);
  50916. var _script2 = _interopRequireDefault(_script);
  50917. var _strike = __nested_webpack_require_368316__(70);
  50918. var _strike2 = _interopRequireDefault(_strike);
  50919. var _underline = __nested_webpack_require_368316__(71);
  50920. var _underline2 = _interopRequireDefault(_underline);
  50921. var _image = __nested_webpack_require_368316__(72);
  50922. var _image2 = _interopRequireDefault(_image);
  50923. var _video = __nested_webpack_require_368316__(73);
  50924. var _video2 = _interopRequireDefault(_video);
  50925. var _code = __nested_webpack_require_368316__(13);
  50926. var _code2 = _interopRequireDefault(_code);
  50927. var _formula = __nested_webpack_require_368316__(74);
  50928. var _formula2 = _interopRequireDefault(_formula);
  50929. var _syntax = __nested_webpack_require_368316__(75);
  50930. var _syntax2 = _interopRequireDefault(_syntax);
  50931. var _toolbar = __nested_webpack_require_368316__(57);
  50932. var _toolbar2 = _interopRequireDefault(_toolbar);
  50933. var _icons = __nested_webpack_require_368316__(41);
  50934. var _icons2 = _interopRequireDefault(_icons);
  50935. var _picker = __nested_webpack_require_368316__(28);
  50936. var _picker2 = _interopRequireDefault(_picker);
  50937. var _colorPicker = __nested_webpack_require_368316__(59);
  50938. var _colorPicker2 = _interopRequireDefault(_colorPicker);
  50939. var _iconPicker = __nested_webpack_require_368316__(60);
  50940. var _iconPicker2 = _interopRequireDefault(_iconPicker);
  50941. var _tooltip = __nested_webpack_require_368316__(61);
  50942. var _tooltip2 = _interopRequireDefault(_tooltip);
  50943. var _bubble = __nested_webpack_require_368316__(108);
  50944. var _bubble2 = _interopRequireDefault(_bubble);
  50945. var _snow = __nested_webpack_require_368316__(62);
  50946. var _snow2 = _interopRequireDefault(_snow);
  50947. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50948. _core2.default.register({
  50949. 'attributors/attribute/direction': _direction.DirectionAttribute,
  50950. 'attributors/class/align': _align.AlignClass,
  50951. 'attributors/class/background': _background.BackgroundClass,
  50952. 'attributors/class/color': _color.ColorClass,
  50953. 'attributors/class/direction': _direction.DirectionClass,
  50954. 'attributors/class/font': _font.FontClass,
  50955. 'attributors/class/size': _size.SizeClass,
  50956. 'attributors/style/align': _align.AlignStyle,
  50957. 'attributors/style/background': _background.BackgroundStyle,
  50958. 'attributors/style/color': _color.ColorStyle,
  50959. 'attributors/style/direction': _direction.DirectionStyle,
  50960. 'attributors/style/font': _font.FontStyle,
  50961. 'attributors/style/size': _size.SizeStyle
  50962. }, true);
  50963. _core2.default.register({
  50964. 'formats/align': _align.AlignClass,
  50965. 'formats/direction': _direction.DirectionClass,
  50966. 'formats/indent': _indent.IndentClass,
  50967. 'formats/background': _background.BackgroundStyle,
  50968. 'formats/color': _color.ColorStyle,
  50969. 'formats/font': _font.FontClass,
  50970. 'formats/size': _size.SizeClass,
  50971. 'formats/blockquote': _blockquote2.default,
  50972. 'formats/code-block': _code2.default,
  50973. 'formats/header': _header2.default,
  50974. 'formats/list': _list2.default,
  50975. 'formats/bold': _bold2.default,
  50976. 'formats/code': _code.Code,
  50977. 'formats/italic': _italic2.default,
  50978. 'formats/link': _link2.default,
  50979. 'formats/script': _script2.default,
  50980. 'formats/strike': _strike2.default,
  50981. 'formats/underline': _underline2.default,
  50982. 'formats/image': _image2.default,
  50983. 'formats/video': _video2.default,
  50984. 'formats/list/item': _list.ListItem,
  50985. 'modules/formula': _formula2.default,
  50986. 'modules/syntax': _syntax2.default,
  50987. 'modules/toolbar': _toolbar2.default,
  50988. 'themes/bubble': _bubble2.default,
  50989. 'themes/snow': _snow2.default,
  50990. 'ui/icons': _icons2.default,
  50991. 'ui/picker': _picker2.default,
  50992. 'ui/icon-picker': _iconPicker2.default,
  50993. 'ui/color-picker': _colorPicker2.default,
  50994. 'ui/tooltip': _tooltip2.default
  50995. }, true);
  50996. exports.default = _core2.default;
  50997. /***/ }),
  50998. /* 64 */
  50999. /***/ (function(module, exports, __nested_webpack_require_372903__) {
  51000. "use strict";
  51001. Object.defineProperty(exports, "__esModule", {
  51002. value: true
  51003. });
  51004. exports.IndentClass = undefined;
  51005. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  51006. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  51007. var _parchment = __nested_webpack_require_372903__(0);
  51008. var _parchment2 = _interopRequireDefault(_parchment);
  51009. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  51010. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  51011. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  51012. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  51013. var IdentAttributor = function (_Parchment$Attributor) {
  51014. _inherits(IdentAttributor, _Parchment$Attributor);
  51015. function IdentAttributor() {
  51016. _classCallCheck(this, IdentAttributor);
  51017. return _possibleConstructorReturn(this, (IdentAttributor.__proto__ || Object.getPrototypeOf(IdentAttributor)).apply(this, arguments));
  51018. }
  51019. _createClass(IdentAttributor, [{
  51020. key: 'add',
  51021. value: function add(node, value) {
  51022. if (value === '+1' || value === '-1') {
  51023. var indent = this.value(node) || 0;
  51024. value = value === '+1' ? indent + 1 : indent - 1;
  51025. }
  51026. if (value === 0) {
  51027. this.remove(node);
  51028. return true;
  51029. } else {
  51030. return _get(IdentAttributor.prototype.__proto__ || Object.getPrototypeOf(IdentAttributor.prototype), 'add', this).call(this, node, value);
  51031. }
  51032. }
  51033. }, {
  51034. key: 'canAdd',
  51035. value: function canAdd(node, value) {
  51036. return _get(IdentAttributor.prototype.__proto__ || Object.getPrototypeOf(IdentAttributor.prototype), 'canAdd', this).call(this, node, value) || _get(IdentAttributor.prototype.__proto__ || Object.getPrototypeOf(IdentAttributor.prototype), 'canAdd', this).call(this, node, parseInt(value));
  51037. }
  51038. }, {
  51039. key: 'value',
  51040. value: function value(node) {
  51041. return parseInt(_get(IdentAttributor.prototype.__proto__ || Object.getPrototypeOf(IdentAttributor.prototype), 'value', this).call(this, node)) || undefined; // Don't return NaN
  51042. }
  51043. }]);
  51044. return IdentAttributor;
  51045. }(_parchment2.default.Attributor.Class);
  51046. var IndentClass = new IdentAttributor('indent', 'ql-indent', {
  51047. scope: _parchment2.default.Scope.BLOCK,
  51048. whitelist: [1, 2, 3, 4, 5, 6, 7, 8]
  51049. });
  51050. exports.IndentClass = IndentClass;
  51051. /***/ }),
  51052. /* 65 */
  51053. /***/ (function(module, exports, __nested_webpack_require_376943__) {
  51054. "use strict";
  51055. Object.defineProperty(exports, "__esModule", {
  51056. value: true
  51057. });
  51058. var _block = __nested_webpack_require_376943__(4);
  51059. var _block2 = _interopRequireDefault(_block);
  51060. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  51061. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  51062. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  51063. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  51064. var Blockquote = function (_Block) {
  51065. _inherits(Blockquote, _Block);
  51066. function Blockquote() {
  51067. _classCallCheck(this, Blockquote);
  51068. return _possibleConstructorReturn(this, (Blockquote.__proto__ || Object.getPrototypeOf(Blockquote)).apply(this, arguments));
  51069. }
  51070. return Blockquote;
  51071. }(_block2.default);
  51072. Blockquote.blotName = 'blockquote';
  51073. Blockquote.tagName = 'blockquote';
  51074. exports.default = Blockquote;
  51075. /***/ }),
  51076. /* 66 */
  51077. /***/ (function(module, exports, __nested_webpack_require_378592__) {
  51078. "use strict";
  51079. Object.defineProperty(exports, "__esModule", {
  51080. value: true
  51081. });
  51082. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  51083. var _block = __nested_webpack_require_378592__(4);
  51084. var _block2 = _interopRequireDefault(_block);
  51085. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  51086. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  51087. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  51088. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  51089. var Header = function (_Block) {
  51090. _inherits(Header, _Block);
  51091. function Header() {
  51092. _classCallCheck(this, Header);
  51093. return _possibleConstructorReturn(this, (Header.__proto__ || Object.getPrototypeOf(Header)).apply(this, arguments));
  51094. }
  51095. _createClass(Header, null, [{
  51096. key: 'formats',
  51097. value: function formats(domNode) {
  51098. return this.tagName.indexOf(domNode.tagName) + 1;
  51099. }
  51100. }]);
  51101. return Header;
  51102. }(_block2.default);
  51103. Header.blotName = 'header';
  51104. Header.tagName = ['H1', 'H2', 'H3', 'H4', 'H5', 'H6'];
  51105. exports.default = Header;
  51106. /***/ }),
  51107. /* 67 */
  51108. /***/ (function(module, exports, __nested_webpack_require_380948__) {
  51109. "use strict";
  51110. Object.defineProperty(exports, "__esModule", {
  51111. value: true
  51112. });
  51113. exports.default = exports.ListItem = undefined;
  51114. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  51115. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  51116. var _parchment = __nested_webpack_require_380948__(0);
  51117. var _parchment2 = _interopRequireDefault(_parchment);
  51118. var _block = __nested_webpack_require_380948__(4);
  51119. var _block2 = _interopRequireDefault(_block);
  51120. var _container = __nested_webpack_require_380948__(25);
  51121. var _container2 = _interopRequireDefault(_container);
  51122. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  51123. function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  51124. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  51125. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  51126. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  51127. var ListItem = function (_Block) {
  51128. _inherits(ListItem, _Block);
  51129. function ListItem() {
  51130. _classCallCheck(this, ListItem);
  51131. return _possibleConstructorReturn(this, (ListItem.__proto__ || Object.getPrototypeOf(ListItem)).apply(this, arguments));
  51132. }
  51133. _createClass(ListItem, [{
  51134. key: 'format',
  51135. value: function format(name, value) {
  51136. if (name === List.blotName && !value) {
  51137. this.replaceWith(_parchment2.default.create(this.statics.scope));
  51138. } else {
  51139. _get(ListItem.prototype.__proto__ || Object.getPrototypeOf(ListItem.prototype), 'format', this).call(this, name, value);
  51140. }
  51141. }
  51142. }, {
  51143. key: 'remove',
  51144. value: function remove() {
  51145. if (this.prev == null && this.next == null) {
  51146. this.parent.remove();
  51147. } else {
  51148. _get(ListItem.prototype.__proto__ || Object.getPrototypeOf(ListItem.prototype), 'remove', this).call(this);
  51149. }
  51150. }
  51151. }, {
  51152. key: 'replaceWith',
  51153. value: function replaceWith(name, value) {
  51154. this.parent.isolate(this.offset(this.parent), this.length());
  51155. if (name === this.parent.statics.blotName) {
  51156. this.parent.replaceWith(name, value);
  51157. return this;
  51158. } else {
  51159. this.parent.unwrap();
  51160. return _get(ListItem.prototype.__proto__ || Object.getPrototypeOf(ListItem.prototype), 'replaceWith', this).call(this, name, value);
  51161. }
  51162. }
  51163. }], [{
  51164. key: 'formats',
  51165. value: function formats(domNode) {
  51166. return domNode.tagName === this.tagName ? undefined : _get(ListItem.__proto__ || Object.getPrototypeOf(ListItem), 'formats', this).call(this, domNode);
  51167. }
  51168. }]);
  51169. return ListItem;
  51170. }(_block2.default);
  51171. ListItem.blotName = 'list-item';
  51172. ListItem.tagName = 'LI';
  51173. var List = function (_Container) {
  51174. _inherits(List, _Container);
  51175. _createClass(List, null, [{
  51176. key: 'create',
  51177. value: function create(value) {
  51178. var tagName = value === 'ordered' ? 'OL' : 'UL';
  51179. var node = _get(List.__proto__ || Object.getPrototypeOf(List), 'create', this).call(this, tagName);
  51180. if (value === 'checked' || value === 'unchecked') {
  51181. node.setAttribute('data-checked', value === 'checked');
  51182. }
  51183. return node;
  51184. }
  51185. }, {
  51186. key: 'formats',
  51187. value: function formats(domNode) {
  51188. if (domNode.tagName === 'OL') return 'ordered';
  51189. if (domNode.tagName === 'UL') {
  51190. if (domNode.hasAttribute('data-checked')) {
  51191. return domNode.getAttribute('data-checked') === 'true' ? 'checked' : 'unchecked';
  51192. } else {
  51193. return 'bullet';
  51194. }
  51195. }
  51196. return undefined;
  51197. }
  51198. }]);
  51199. function List(domNode) {
  51200. _classCallCheck(this, List);
  51201. var _this2 = _possibleConstructorReturn(this, (List.__proto__ || Object.getPrototypeOf(List)).call(this, domNode));
  51202. var listEventHandler = function listEventHandler(e) {
  51203. if (e.target.parentNode !== domNode) return;
  51204. var format = _this2.statics.formats(domNode);
  51205. var blot = _parchment2.default.find(e.target);
  51206. if (format === 'checked') {
  51207. blot.format('list', 'unchecked');
  51208. } else if (format === 'unchecked') {
  51209. blot.format('list', 'checked');
  51210. }
  51211. };
  51212. domNode.addEventListener('touchstart', listEventHandler);
  51213. domNode.addEventListener('mousedown', listEventHandler);
  51214. return _this2;
  51215. }
  51216. _createClass(List, [{
  51217. key: 'format',
  51218. value: function format(name, value) {
  51219. if (this.children.length > 0) {
  51220. this.children.tail.format(name, value);
  51221. }
  51222. }
  51223. }, {
  51224. key: 'formats',
  51225. value: function formats() {
  51226. // We don't inherit from FormatBlot
  51227. return _defineProperty({}, this.statics.blotName, this.statics.formats(this.domNode));
  51228. }
  51229. }, {
  51230. key: 'insertBefore',
  51231. value: function insertBefore(blot, ref) {
  51232. if (blot instanceof ListItem) {
  51233. _get(List.prototype.__proto__ || Object.getPrototypeOf(List.prototype), 'insertBefore', this).call(this, blot, ref);
  51234. } else {
  51235. var index = ref == null ? this.length() : ref.offset(this);
  51236. var after = this.split(index);
  51237. after.parent.insertBefore(blot, after);
  51238. }
  51239. }
  51240. }, {
  51241. key: 'optimize',
  51242. value: function optimize(context) {
  51243. _get(List.prototype.__proto__ || Object.getPrototypeOf(List.prototype), 'optimize', this).call(this, context);
  51244. var next = this.next;
  51245. if (next != null && next.prev === this && next.statics.blotName === this.statics.blotName && next.domNode.tagName === this.domNode.tagName && next.domNode.getAttribute('data-checked') === this.domNode.getAttribute('data-checked')) {
  51246. next.moveChildren(this);
  51247. next.remove();
  51248. }
  51249. }
  51250. }, {
  51251. key: 'replace',
  51252. value: function replace(target) {
  51253. if (target.statics.blotName !== this.statics.blotName) {
  51254. var item = _parchment2.default.create(this.statics.defaultChild);
  51255. target.moveChildren(item);
  51256. this.appendChild(item);
  51257. }
  51258. _get(List.prototype.__proto__ || Object.getPrototypeOf(List.prototype), 'replace', this).call(this, target);
  51259. }
  51260. }]);
  51261. return List;
  51262. }(_container2.default);
  51263. List.blotName = 'list';
  51264. List.scope = _parchment2.default.Scope.BLOCK_BLOT;
  51265. List.tagName = ['OL', 'UL'];
  51266. List.defaultChild = 'list-item';
  51267. List.allowedChildren = [ListItem];
  51268. exports.ListItem = ListItem;
  51269. exports.default = List;
  51270. /***/ }),
  51271. /* 68 */
  51272. /***/ (function(module, exports, __nested_webpack_require_389000__) {
  51273. "use strict";
  51274. Object.defineProperty(exports, "__esModule", {
  51275. value: true
  51276. });
  51277. var _bold = __nested_webpack_require_389000__(56);
  51278. var _bold2 = _interopRequireDefault(_bold);
  51279. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  51280. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  51281. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  51282. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  51283. var Italic = function (_Bold) {
  51284. _inherits(Italic, _Bold);
  51285. function Italic() {
  51286. _classCallCheck(this, Italic);
  51287. return _possibleConstructorReturn(this, (Italic.__proto__ || Object.getPrototypeOf(Italic)).apply(this, arguments));
  51288. }
  51289. return Italic;
  51290. }(_bold2.default);
  51291. Italic.blotName = 'italic';
  51292. Italic.tagName = ['EM', 'I'];
  51293. exports.default = Italic;
  51294. /***/ }),
  51295. /* 69 */
  51296. /***/ (function(module, exports, __nested_webpack_require_390599__) {
  51297. "use strict";
  51298. Object.defineProperty(exports, "__esModule", {
  51299. value: true
  51300. });
  51301. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  51302. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  51303. var _inline = __nested_webpack_require_390599__(6);
  51304. var _inline2 = _interopRequireDefault(_inline);
  51305. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  51306. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  51307. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  51308. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  51309. var Script = function (_Inline) {
  51310. _inherits(Script, _Inline);
  51311. function Script() {
  51312. _classCallCheck(this, Script);
  51313. return _possibleConstructorReturn(this, (Script.__proto__ || Object.getPrototypeOf(Script)).apply(this, arguments));
  51314. }
  51315. _createClass(Script, null, [{
  51316. key: 'create',
  51317. value: function create(value) {
  51318. if (value === 'super') {
  51319. return document.createElement('sup');
  51320. } else if (value === 'sub') {
  51321. return document.createElement('sub');
  51322. } else {
  51323. return _get(Script.__proto__ || Object.getPrototypeOf(Script), 'create', this).call(this, value);
  51324. }
  51325. }
  51326. }, {
  51327. key: 'formats',
  51328. value: function formats(domNode) {
  51329. if (domNode.tagName === 'SUB') return 'sub';
  51330. if (domNode.tagName === 'SUP') return 'super';
  51331. return undefined;
  51332. }
  51333. }]);
  51334. return Script;
  51335. }(_inline2.default);
  51336. Script.blotName = 'script';
  51337. Script.tagName = ['SUB', 'SUP'];
  51338. exports.default = Script;
  51339. /***/ }),
  51340. /* 70 */
  51341. /***/ (function(module, exports, __nested_webpack_require_393860__) {
  51342. "use strict";
  51343. Object.defineProperty(exports, "__esModule", {
  51344. value: true
  51345. });
  51346. var _inline = __nested_webpack_require_393860__(6);
  51347. var _inline2 = _interopRequireDefault(_inline);
  51348. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  51349. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  51350. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  51351. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  51352. var Strike = function (_Inline) {
  51353. _inherits(Strike, _Inline);
  51354. function Strike() {
  51355. _classCallCheck(this, Strike);
  51356. return _possibleConstructorReturn(this, (Strike.__proto__ || Object.getPrototypeOf(Strike)).apply(this, arguments));
  51357. }
  51358. return Strike;
  51359. }(_inline2.default);
  51360. Strike.blotName = 'strike';
  51361. Strike.tagName = 'S';
  51362. exports.default = Strike;
  51363. /***/ }),
  51364. /* 71 */
  51365. /***/ (function(module, exports, __nested_webpack_require_395462__) {
  51366. "use strict";
  51367. Object.defineProperty(exports, "__esModule", {
  51368. value: true
  51369. });
  51370. var _inline = __nested_webpack_require_395462__(6);
  51371. var _inline2 = _interopRequireDefault(_inline);
  51372. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  51373. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  51374. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  51375. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  51376. var Underline = function (_Inline) {
  51377. _inherits(Underline, _Inline);
  51378. function Underline() {
  51379. _classCallCheck(this, Underline);
  51380. return _possibleConstructorReturn(this, (Underline.__proto__ || Object.getPrototypeOf(Underline)).apply(this, arguments));
  51381. }
  51382. return Underline;
  51383. }(_inline2.default);
  51384. Underline.blotName = 'underline';
  51385. Underline.tagName = 'U';
  51386. exports.default = Underline;
  51387. /***/ }),
  51388. /* 72 */
  51389. /***/ (function(module, exports, __nested_webpack_require_397097__) {
  51390. "use strict";
  51391. Object.defineProperty(exports, "__esModule", {
  51392. value: true
  51393. });
  51394. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  51395. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  51396. var _parchment = __nested_webpack_require_397097__(0);
  51397. var _parchment2 = _interopRequireDefault(_parchment);
  51398. var _link = __nested_webpack_require_397097__(27);
  51399. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  51400. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  51401. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  51402. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  51403. var ATTRIBUTES = ['alt', 'height', 'width'];
  51404. var Image = function (_Parchment$Embed) {
  51405. _inherits(Image, _Parchment$Embed);
  51406. function Image() {
  51407. _classCallCheck(this, Image);
  51408. return _possibleConstructorReturn(this, (Image.__proto__ || Object.getPrototypeOf(Image)).apply(this, arguments));
  51409. }
  51410. _createClass(Image, [{
  51411. key: 'format',
  51412. value: function format(name, value) {
  51413. if (ATTRIBUTES.indexOf(name) > -1) {
  51414. if (value) {
  51415. this.domNode.setAttribute(name, value);
  51416. } else {
  51417. this.domNode.removeAttribute(name);
  51418. }
  51419. } else {
  51420. _get(Image.prototype.__proto__ || Object.getPrototypeOf(Image.prototype), 'format', this).call(this, name, value);
  51421. }
  51422. }
  51423. }], [{
  51424. key: 'create',
  51425. value: function create(value) {
  51426. var node = _get(Image.__proto__ || Object.getPrototypeOf(Image), 'create', this).call(this, value);
  51427. if (typeof value === 'string') {
  51428. node.setAttribute('src', this.sanitize(value));
  51429. }
  51430. return node;
  51431. }
  51432. }, {
  51433. key: 'formats',
  51434. value: function formats(domNode) {
  51435. return ATTRIBUTES.reduce(function (formats, attribute) {
  51436. if (domNode.hasAttribute(attribute)) {
  51437. formats[attribute] = domNode.getAttribute(attribute);
  51438. }
  51439. return formats;
  51440. }, {});
  51441. }
  51442. }, {
  51443. key: 'match',
  51444. value: function match(url) {
  51445. return (/\.(jpe?g|gif|png)$/.test(url) || /^data:image\/.+;base64/.test(url)
  51446. );
  51447. }
  51448. }, {
  51449. key: 'sanitize',
  51450. value: function sanitize(url) {
  51451. return (0, _link.sanitize)(url, ['http', 'https', 'data']) ? url : '//:0';
  51452. }
  51453. }, {
  51454. key: 'value',
  51455. value: function value(domNode) {
  51456. return domNode.getAttribute('src');
  51457. }
  51458. }]);
  51459. return Image;
  51460. }(_parchment2.default.Embed);
  51461. Image.blotName = 'image';
  51462. Image.tagName = 'IMG';
  51463. exports.default = Image;
  51464. /***/ }),
  51465. /* 73 */
  51466. /***/ (function(module, exports, __nested_webpack_require_401311__) {
  51467. "use strict";
  51468. Object.defineProperty(exports, "__esModule", {
  51469. value: true
  51470. });
  51471. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  51472. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  51473. var _block = __nested_webpack_require_401311__(4);
  51474. var _link = __nested_webpack_require_401311__(27);
  51475. var _link2 = _interopRequireDefault(_link);
  51476. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  51477. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  51478. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  51479. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  51480. var ATTRIBUTES = ['height', 'width'];
  51481. var Video = function (_BlockEmbed) {
  51482. _inherits(Video, _BlockEmbed);
  51483. function Video() {
  51484. _classCallCheck(this, Video);
  51485. return _possibleConstructorReturn(this, (Video.__proto__ || Object.getPrototypeOf(Video)).apply(this, arguments));
  51486. }
  51487. _createClass(Video, [{
  51488. key: 'format',
  51489. value: function format(name, value) {
  51490. if (ATTRIBUTES.indexOf(name) > -1) {
  51491. if (value) {
  51492. this.domNode.setAttribute(name, value);
  51493. } else {
  51494. this.domNode.removeAttribute(name);
  51495. }
  51496. } else {
  51497. _get(Video.prototype.__proto__ || Object.getPrototypeOf(Video.prototype), 'format', this).call(this, name, value);
  51498. }
  51499. }
  51500. }], [{
  51501. key: 'create',
  51502. value: function create(value) {
  51503. var node = _get(Video.__proto__ || Object.getPrototypeOf(Video), 'create', this).call(this, value);
  51504. node.setAttribute('frameborder', '0');
  51505. node.setAttribute('allowfullscreen', true);
  51506. node.setAttribute('src', this.sanitize(value));
  51507. return node;
  51508. }
  51509. }, {
  51510. key: 'formats',
  51511. value: function formats(domNode) {
  51512. return ATTRIBUTES.reduce(function (formats, attribute) {
  51513. if (domNode.hasAttribute(attribute)) {
  51514. formats[attribute] = domNode.getAttribute(attribute);
  51515. }
  51516. return formats;
  51517. }, {});
  51518. }
  51519. }, {
  51520. key: 'sanitize',
  51521. value: function sanitize(url) {
  51522. return _link2.default.sanitize(url);
  51523. }
  51524. }, {
  51525. key: 'value',
  51526. value: function value(domNode) {
  51527. return domNode.getAttribute('src');
  51528. }
  51529. }]);
  51530. return Video;
  51531. }(_block.BlockEmbed);
  51532. Video.blotName = 'video';
  51533. Video.className = 'ql-video';
  51534. Video.tagName = 'IFRAME';
  51535. exports.default = Video;
  51536. /***/ }),
  51537. /* 74 */
  51538. /***/ (function(module, exports, __nested_webpack_require_405371__) {
  51539. "use strict";
  51540. Object.defineProperty(exports, "__esModule", {
  51541. value: true
  51542. });
  51543. exports.default = exports.FormulaBlot = undefined;
  51544. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  51545. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  51546. var _embed = __nested_webpack_require_405371__(35);
  51547. var _embed2 = _interopRequireDefault(_embed);
  51548. var _quill = __nested_webpack_require_405371__(5);
  51549. var _quill2 = _interopRequireDefault(_quill);
  51550. var _module = __nested_webpack_require_405371__(9);
  51551. var _module2 = _interopRequireDefault(_module);
  51552. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  51553. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  51554. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  51555. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  51556. var FormulaBlot = function (_Embed) {
  51557. _inherits(FormulaBlot, _Embed);
  51558. function FormulaBlot() {
  51559. _classCallCheck(this, FormulaBlot);
  51560. return _possibleConstructorReturn(this, (FormulaBlot.__proto__ || Object.getPrototypeOf(FormulaBlot)).apply(this, arguments));
  51561. }
  51562. _createClass(FormulaBlot, null, [{
  51563. key: 'create',
  51564. value: function create(value) {
  51565. var node = _get(FormulaBlot.__proto__ || Object.getPrototypeOf(FormulaBlot), 'create', this).call(this, value);
  51566. if (typeof value === 'string') {
  51567. window.katex.render(value, node, {
  51568. throwOnError: false,
  51569. errorColor: '#f00'
  51570. });
  51571. node.setAttribute('data-value', value);
  51572. }
  51573. return node;
  51574. }
  51575. }, {
  51576. key: 'value',
  51577. value: function value(domNode) {
  51578. return domNode.getAttribute('data-value');
  51579. }
  51580. }]);
  51581. return FormulaBlot;
  51582. }(_embed2.default);
  51583. FormulaBlot.blotName = 'formula';
  51584. FormulaBlot.className = 'ql-formula';
  51585. FormulaBlot.tagName = 'SPAN';
  51586. var Formula = function (_Module) {
  51587. _inherits(Formula, _Module);
  51588. _createClass(Formula, null, [{
  51589. key: 'register',
  51590. value: function register() {
  51591. _quill2.default.register(FormulaBlot, true);
  51592. }
  51593. }]);
  51594. function Formula() {
  51595. _classCallCheck(this, Formula);
  51596. var _this2 = _possibleConstructorReturn(this, (Formula.__proto__ || Object.getPrototypeOf(Formula)).call(this));
  51597. if (window.katex == null) {
  51598. throw new Error('Formula module requires KaTeX.');
  51599. }
  51600. return _this2;
  51601. }
  51602. return Formula;
  51603. }(_module2.default);
  51604. exports.FormulaBlot = FormulaBlot;
  51605. exports.default = Formula;
  51606. /***/ }),
  51607. /* 75 */
  51608. /***/ (function(module, exports, __nested_webpack_require_409500__) {
  51609. "use strict";
  51610. Object.defineProperty(exports, "__esModule", {
  51611. value: true
  51612. });
  51613. exports.default = exports.CodeToken = exports.CodeBlock = undefined;
  51614. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  51615. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  51616. var _parchment = __nested_webpack_require_409500__(0);
  51617. var _parchment2 = _interopRequireDefault(_parchment);
  51618. var _quill = __nested_webpack_require_409500__(5);
  51619. var _quill2 = _interopRequireDefault(_quill);
  51620. var _module = __nested_webpack_require_409500__(9);
  51621. var _module2 = _interopRequireDefault(_module);
  51622. var _code = __nested_webpack_require_409500__(13);
  51623. var _code2 = _interopRequireDefault(_code);
  51624. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  51625. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  51626. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  51627. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  51628. var SyntaxCodeBlock = function (_CodeBlock) {
  51629. _inherits(SyntaxCodeBlock, _CodeBlock);
  51630. function SyntaxCodeBlock() {
  51631. _classCallCheck(this, SyntaxCodeBlock);
  51632. return _possibleConstructorReturn(this, (SyntaxCodeBlock.__proto__ || Object.getPrototypeOf(SyntaxCodeBlock)).apply(this, arguments));
  51633. }
  51634. _createClass(SyntaxCodeBlock, [{
  51635. key: 'replaceWith',
  51636. value: function replaceWith(block) {
  51637. this.domNode.textContent = this.domNode.textContent;
  51638. this.attach();
  51639. _get(SyntaxCodeBlock.prototype.__proto__ || Object.getPrototypeOf(SyntaxCodeBlock.prototype), 'replaceWith', this).call(this, block);
  51640. }
  51641. }, {
  51642. key: 'highlight',
  51643. value: function highlight(_highlight) {
  51644. var text = this.domNode.textContent;
  51645. if (this.cachedText !== text) {
  51646. if (text.trim().length > 0 || this.cachedText == null) {
  51647. this.domNode.innerHTML = _highlight(text);
  51648. this.domNode.normalize();
  51649. this.attach();
  51650. }
  51651. this.cachedText = text;
  51652. }
  51653. }
  51654. }]);
  51655. return SyntaxCodeBlock;
  51656. }(_code2.default);
  51657. SyntaxCodeBlock.className = 'ql-syntax';
  51658. var CodeToken = new _parchment2.default.Attributor.Class('token', 'hljs', {
  51659. scope: _parchment2.default.Scope.INLINE
  51660. });
  51661. var Syntax = function (_Module) {
  51662. _inherits(Syntax, _Module);
  51663. _createClass(Syntax, null, [{
  51664. key: 'register',
  51665. value: function register() {
  51666. _quill2.default.register(CodeToken, true);
  51667. _quill2.default.register(SyntaxCodeBlock, true);
  51668. }
  51669. }]);
  51670. function Syntax(quill, options) {
  51671. _classCallCheck(this, Syntax);
  51672. var _this2 = _possibleConstructorReturn(this, (Syntax.__proto__ || Object.getPrototypeOf(Syntax)).call(this, quill, options));
  51673. if (typeof _this2.options.highlight !== 'function') {
  51674. throw new Error('Syntax module requires highlight.js. Please include the library on the page before Quill.');
  51675. }
  51676. var timer = null;
  51677. _this2.quill.on(_quill2.default.events.SCROLL_OPTIMIZE, function () {
  51678. clearTimeout(timer);
  51679. timer = setTimeout(function () {
  51680. _this2.highlight();
  51681. timer = null;
  51682. }, _this2.options.interval);
  51683. });
  51684. _this2.highlight();
  51685. return _this2;
  51686. }
  51687. _createClass(Syntax, [{
  51688. key: 'highlight',
  51689. value: function highlight() {
  51690. var _this3 = this;
  51691. if (this.quill.selection.composing) return;
  51692. this.quill.update(_quill2.default.sources.USER);
  51693. var range = this.quill.getSelection();
  51694. this.quill.scroll.descendants(SyntaxCodeBlock).forEach(function (code) {
  51695. code.highlight(_this3.options.highlight);
  51696. });
  51697. this.quill.update(_quill2.default.sources.SILENT);
  51698. if (range != null) {
  51699. this.quill.setSelection(range, _quill2.default.sources.SILENT);
  51700. }
  51701. }
  51702. }]);
  51703. return Syntax;
  51704. }(_module2.default);
  51705. Syntax.DEFAULTS = {
  51706. highlight: function () {
  51707. if (window.hljs == null) return null;
  51708. return function (text) {
  51709. var result = window.hljs.highlightAuto(text);
  51710. return result.value;
  51711. };
  51712. }(),
  51713. interval: 1000
  51714. };
  51715. exports.CodeBlock = SyntaxCodeBlock;
  51716. exports.CodeToken = CodeToken;
  51717. exports.default = Syntax;
  51718. /***/ }),
  51719. /* 76 */
  51720. /***/ (function(module, exports) {
  51721. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>";
  51722. /***/ }),
  51723. /* 77 */
  51724. /***/ (function(module, exports) {
  51725. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>";
  51726. /***/ }),
  51727. /* 78 */
  51728. /***/ (function(module, exports) {
  51729. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>";
  51730. /***/ }),
  51731. /* 79 */
  51732. /***/ (function(module, exports) {
  51733. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>";
  51734. /***/ }),
  51735. /* 80 */
  51736. /***/ (function(module, exports) {
  51737. module.exports = "<svg viewbox=\"0 0 18 18\"> <g class=\"ql-fill ql-color-label\"> <polygon points=\"6 6.868 6 6 5 6 5 7 5.942 7 6 6.868\"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points=\"6.817 5 6 5 6 6 6.38 6 6.817 5\"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points=\"4 11.439 4 11 3 11 3 12 3.755 12 4 11.439\"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points=\"4.63 10 4 10 4 11 4.192 11 4.63 10\"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points=\"13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174\"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points=\"12 6.868 12 6 11.62 6 12 6.868\"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points=\"12.933 9 13 9 13 8 12.495 8 12.933 9\"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points=\"5.5 13 9 5 12.5 13\"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>";
  51738. /***/ }),
  51739. /* 81 */
  51740. /***/ (function(module, exports) {
  51741. module.exports = "<svg viewbox=\"0 0 18 18\"> <rect class=\"ql-fill ql-stroke\" height=3 width=3 x=4 y=5></rect> <rect class=\"ql-fill ql-stroke\" height=3 width=3 x=11 y=5></rect> <path class=\"ql-even ql-fill ql-stroke\" d=M7,8c0,4.031-3,5-3,5></path> <path class=\"ql-even ql-fill ql-stroke\" d=M14,8c0,4.031-3,5-3,5></path> </svg>";
  51742. /***/ }),
  51743. /* 82 */
  51744. /***/ (function(module, exports) {
  51745. module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>";
  51746. /***/ }),
  51747. /* 83 */
  51748. /***/ (function(module, exports) {
  51749. module.exports = "<svg class=\"\" viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>";
  51750. /***/ }),
  51751. /* 84 */
  51752. /***/ (function(module, exports) {
  51753. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=\"ql-color-label ql-stroke ql-transparent\" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points=\"5.5 11 9 3 12.5 11\"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>";
  51754. /***/ }),
  51755. /* 85 */
  51756. /***/ (function(module, exports) {
  51757. module.exports = "<svg viewbox=\"0 0 18 18\"> <polygon class=\"ql-stroke ql-fill\" points=\"3 11 5 9 3 7 3 11\"></polygon> <line class=\"ql-stroke ql-fill\" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>";
  51758. /***/ }),
  51759. /* 86 */
  51760. /***/ (function(module, exports) {
  51761. module.exports = "<svg viewbox=\"0 0 18 18\"> <polygon class=\"ql-stroke ql-fill\" points=\"15 12 13 10 15 8 15 12\"></polygon> <line class=\"ql-stroke ql-fill\" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>";
  51762. /***/ }),
  51763. /* 87 */
  51764. /***/ (function(module, exports) {
  51765. module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>";
  51766. /***/ }),
  51767. /* 88 */
  51768. /***/ (function(module, exports) {
  51769. module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>";
  51770. /***/ }),
  51771. /* 89 */
  51772. /***/ (function(module, exports) {
  51773. module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>";
  51774. /***/ }),
  51775. /* 90 */
  51776. /***/ (function(module, exports) {
  51777. module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform=\"translate(24 18) rotate(-180)\"/> </svg>";
  51778. /***/ }),
  51779. /* 91 */
  51780. /***/ (function(module, exports) {
  51781. module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>";
  51782. /***/ }),
  51783. /* 92 */
  51784. /***/ (function(module, exports) {
  51785. module.exports = "<svg viewBox=\"0 0 18 18\"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>";
  51786. /***/ }),
  51787. /* 93 */
  51788. /***/ (function(module, exports) {
  51789. module.exports = "<svg viewBox=\"0 0 18 18\"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>";
  51790. /***/ }),
  51791. /* 94 */
  51792. /***/ (function(module, exports) {
  51793. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>";
  51794. /***/ }),
  51795. /* 95 */
  51796. /***/ (function(module, exports) {
  51797. module.exports = "<svg viewbox=\"0 0 18 18\"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class=\"ql-even ql-fill\" points=\"5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12\"></polyline> </svg>";
  51798. /***/ }),
  51799. /* 96 */
  51800. /***/ (function(module, exports) {
  51801. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=\"ql-fill ql-stroke\" points=\"3 7 3 11 5 9 3 7\"></polyline> </svg>";
  51802. /***/ }),
  51803. /* 97 */
  51804. /***/ (function(module, exports) {
  51805. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points=\"5 7 5 11 3 9 5 7\"></polyline> </svg>";
  51806. /***/ }),
  51807. /* 98 */
  51808. /***/ (function(module, exports) {
  51809. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class=\"ql-even ql-stroke\" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class=\"ql-even ql-stroke\" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>";
  51810. /***/ }),
  51811. /* 99 */
  51812. /***/ (function(module, exports) {
  51813. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class=\"ql-stroke ql-thin\" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class=\"ql-stroke ql-thin\" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class=\"ql-stroke ql-thin\" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>";
  51814. /***/ }),
  51815. /* 100 */
  51816. /***/ (function(module, exports) {
  51817. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>";
  51818. /***/ }),
  51819. /* 101 */
  51820. /***/ (function(module, exports) {
  51821. module.exports = "<svg class=\"\" viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points=\"3 4 4 5 6 3\"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points=\"3 14 4 15 6 13\"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points=\"3 9 4 10 6 8\"></polyline> </svg>";
  51822. /***/ }),
  51823. /* 102 */
  51824. /***/ (function(module, exports) {
  51825. module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>";
  51826. /***/ }),
  51827. /* 103 */
  51828. /***/ (function(module, exports) {
  51829. module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>";
  51830. /***/ }),
  51831. /* 104 */
  51832. /***/ (function(module, exports) {
  51833. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=\"ql-stroke ql-thin\" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>";
  51834. /***/ }),
  51835. /* 105 */
  51836. /***/ (function(module, exports) {
  51837. module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>";
  51838. /***/ }),
  51839. /* 106 */
  51840. /***/ (function(module, exports) {
  51841. module.exports = "<svg viewbox=\"0 0 18 18\"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>";
  51842. /***/ }),
  51843. /* 107 */
  51844. /***/ (function(module, exports) {
  51845. module.exports = "<svg viewbox=\"0 0 18 18\"> <polygon class=ql-stroke points=\"7 11 9 13 11 11 7 11\"></polygon> <polygon class=ql-stroke points=\"7 7 9 5 11 7 7 7\"></polygon> </svg>";
  51846. /***/ }),
  51847. /* 108 */
  51848. /***/ (function(module, exports, __nested_webpack_require_432266__) {
  51849. "use strict";
  51850. Object.defineProperty(exports, "__esModule", {
  51851. value: true
  51852. });
  51853. exports.default = exports.BubbleTooltip = undefined;
  51854. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  51855. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  51856. var _extend = __nested_webpack_require_432266__(3);
  51857. var _extend2 = _interopRequireDefault(_extend);
  51858. var _emitter = __nested_webpack_require_432266__(8);
  51859. var _emitter2 = _interopRequireDefault(_emitter);
  51860. var _base = __nested_webpack_require_432266__(43);
  51861. var _base2 = _interopRequireDefault(_base);
  51862. var _selection = __nested_webpack_require_432266__(15);
  51863. var _icons = __nested_webpack_require_432266__(41);
  51864. var _icons2 = _interopRequireDefault(_icons);
  51865. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  51866. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  51867. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  51868. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  51869. var TOOLBAR_CONFIG = [['bold', 'italic', 'link'], [{ header: 1 }, { header: 2 }, 'blockquote']];
  51870. var BubbleTheme = function (_BaseTheme) {
  51871. _inherits(BubbleTheme, _BaseTheme);
  51872. function BubbleTheme(quill, options) {
  51873. _classCallCheck(this, BubbleTheme);
  51874. if (options.modules.toolbar != null && options.modules.toolbar.container == null) {
  51875. options.modules.toolbar.container = TOOLBAR_CONFIG;
  51876. }
  51877. var _this = _possibleConstructorReturn(this, (BubbleTheme.__proto__ || Object.getPrototypeOf(BubbleTheme)).call(this, quill, options));
  51878. _this.quill.container.classList.add('ql-bubble');
  51879. return _this;
  51880. }
  51881. _createClass(BubbleTheme, [{
  51882. key: 'extendToolbar',
  51883. value: function extendToolbar(toolbar) {
  51884. this.tooltip = new BubbleTooltip(this.quill, this.options.bounds);
  51885. this.tooltip.root.appendChild(toolbar.container);
  51886. this.buildButtons([].slice.call(toolbar.container.querySelectorAll('button')), _icons2.default);
  51887. this.buildPickers([].slice.call(toolbar.container.querySelectorAll('select')), _icons2.default);
  51888. }
  51889. }]);
  51890. return BubbleTheme;
  51891. }(_base2.default);
  51892. BubbleTheme.DEFAULTS = (0, _extend2.default)(true, {}, _base2.default.DEFAULTS, {
  51893. modules: {
  51894. toolbar: {
  51895. handlers: {
  51896. link: function link(value) {
  51897. if (!value) {
  51898. this.quill.format('link', false);
  51899. } else {
  51900. this.quill.theme.tooltip.edit();
  51901. }
  51902. }
  51903. }
  51904. }
  51905. }
  51906. });
  51907. var BubbleTooltip = function (_BaseTooltip) {
  51908. _inherits(BubbleTooltip, _BaseTooltip);
  51909. function BubbleTooltip(quill, bounds) {
  51910. _classCallCheck(this, BubbleTooltip);
  51911. var _this2 = _possibleConstructorReturn(this, (BubbleTooltip.__proto__ || Object.getPrototypeOf(BubbleTooltip)).call(this, quill, bounds));
  51912. _this2.quill.on(_emitter2.default.events.EDITOR_CHANGE, function (type, range, oldRange, source) {
  51913. if (type !== _emitter2.default.events.SELECTION_CHANGE) return;
  51914. if (range != null && range.length > 0 && source === _emitter2.default.sources.USER) {
  51915. _this2.show();
  51916. // Lock our width so we will expand beyond our offsetParent boundaries
  51917. _this2.root.style.left = '0px';
  51918. _this2.root.style.width = '';
  51919. _this2.root.style.width = _this2.root.offsetWidth + 'px';
  51920. var lines = _this2.quill.getLines(range.index, range.length);
  51921. if (lines.length === 1) {
  51922. _this2.position(_this2.quill.getBounds(range));
  51923. } else {
  51924. var lastLine = lines[lines.length - 1];
  51925. var index = _this2.quill.getIndex(lastLine);
  51926. var length = Math.min(lastLine.length() - 1, range.index + range.length - index);
  51927. var _bounds = _this2.quill.getBounds(new _selection.Range(index, length));
  51928. _this2.position(_bounds);
  51929. }
  51930. } else if (document.activeElement !== _this2.textbox && _this2.quill.hasFocus()) {
  51931. _this2.hide();
  51932. }
  51933. });
  51934. return _this2;
  51935. }
  51936. _createClass(BubbleTooltip, [{
  51937. key: 'listen',
  51938. value: function listen() {
  51939. var _this3 = this;
  51940. _get(BubbleTooltip.prototype.__proto__ || Object.getPrototypeOf(BubbleTooltip.prototype), 'listen', this).call(this);
  51941. this.root.querySelector('.ql-close').addEventListener('click', function () {
  51942. _this3.root.classList.remove('ql-editing');
  51943. });
  51944. this.quill.on(_emitter2.default.events.SCROLL_OPTIMIZE, function () {
  51945. // Let selection be restored by toolbar handlers before repositioning
  51946. setTimeout(function () {
  51947. if (_this3.root.classList.contains('ql-hidden')) return;
  51948. var range = _this3.quill.getSelection();
  51949. if (range != null) {
  51950. _this3.position(_this3.quill.getBounds(range));
  51951. }
  51952. }, 1);
  51953. });
  51954. }
  51955. }, {
  51956. key: 'cancel',
  51957. value: function cancel() {
  51958. this.show();
  51959. }
  51960. }, {
  51961. key: 'position',
  51962. value: function position(reference) {
  51963. var shift = _get(BubbleTooltip.prototype.__proto__ || Object.getPrototypeOf(BubbleTooltip.prototype), 'position', this).call(this, reference);
  51964. var arrow = this.root.querySelector('.ql-tooltip-arrow');
  51965. arrow.style.marginLeft = '';
  51966. if (shift === 0) return shift;
  51967. arrow.style.marginLeft = -1 * shift - arrow.offsetWidth / 2 + 'px';
  51968. }
  51969. }]);
  51970. return BubbleTooltip;
  51971. }(_base.BaseTooltip);
  51972. BubbleTooltip.TEMPLATE = ['<span class="ql-tooltip-arrow"></span>', '<div class="ql-tooltip-editor">', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-close"></a>', '</div>'].join('');
  51973. exports.BubbleTooltip = BubbleTooltip;
  51974. exports.default = BubbleTheme;
  51975. /***/ }),
  51976. /* 109 */
  51977. /***/ (function(module, exports, __nested_webpack_require_439588__) {
  51978. module.exports = __nested_webpack_require_439588__(63);
  51979. /***/ })
  51980. /******/ ])["default"];
  51981. });
  51982. /***/ }),
  51983. /***/ "./node_modules/side-channel/index.js":
  51984. /*!********************************************!*\
  51985. !*** ./node_modules/side-channel/index.js ***!
  51986. \********************************************/
  51987. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  51988. "use strict";
  51989. var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "./node_modules/get-intrinsic/index.js");
  51990. var callBound = __webpack_require__(/*! call-bind/callBound */ "./node_modules/call-bind/callBound.js");
  51991. var inspect = __webpack_require__(/*! object-inspect */ "./node_modules/object-inspect/index.js");
  51992. var $TypeError = GetIntrinsic('%TypeError%');
  51993. var $WeakMap = GetIntrinsic('%WeakMap%', true);
  51994. var $Map = GetIntrinsic('%Map%', true);
  51995. var $weakMapGet = callBound('WeakMap.prototype.get', true);
  51996. var $weakMapSet = callBound('WeakMap.prototype.set', true);
  51997. var $weakMapHas = callBound('WeakMap.prototype.has', true);
  51998. var $mapGet = callBound('Map.prototype.get', true);
  51999. var $mapSet = callBound('Map.prototype.set', true);
  52000. var $mapHas = callBound('Map.prototype.has', true);
  52001. /*
  52002. * This function traverses the list returning the node corresponding to the
  52003. * given key.
  52004. *
  52005. * That node is also moved to the head of the list, so that if it's accessed
  52006. * again we don't need to traverse the whole list. By doing so, all the recently
  52007. * used nodes can be accessed relatively quickly.
  52008. */
  52009. var listGetNode = function (list, key) { // eslint-disable-line consistent-return
  52010. for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
  52011. if (curr.key === key) {
  52012. prev.next = curr.next;
  52013. curr.next = list.next;
  52014. list.next = curr; // eslint-disable-line no-param-reassign
  52015. return curr;
  52016. }
  52017. }
  52018. };
  52019. var listGet = function (objects, key) {
  52020. var node = listGetNode(objects, key);
  52021. return node && node.value;
  52022. };
  52023. var listSet = function (objects, key, value) {
  52024. var node = listGetNode(objects, key);
  52025. if (node) {
  52026. node.value = value;
  52027. } else {
  52028. // Prepend the new node to the beginning of the list
  52029. objects.next = { // eslint-disable-line no-param-reassign
  52030. key: key,
  52031. next: objects.next,
  52032. value: value
  52033. };
  52034. }
  52035. };
  52036. var listHas = function (objects, key) {
  52037. return !!listGetNode(objects, key);
  52038. };
  52039. module.exports = function getSideChannel() {
  52040. var $wm;
  52041. var $m;
  52042. var $o;
  52043. var channel = {
  52044. assert: function (key) {
  52045. if (!channel.has(key)) {
  52046. throw new $TypeError('Side channel does not contain ' + inspect(key));
  52047. }
  52048. },
  52049. get: function (key) { // eslint-disable-line consistent-return
  52050. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  52051. if ($wm) {
  52052. return $weakMapGet($wm, key);
  52053. }
  52054. } else if ($Map) {
  52055. if ($m) {
  52056. return $mapGet($m, key);
  52057. }
  52058. } else {
  52059. if ($o) { // eslint-disable-line no-lonely-if
  52060. return listGet($o, key);
  52061. }
  52062. }
  52063. },
  52064. has: function (key) {
  52065. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  52066. if ($wm) {
  52067. return $weakMapHas($wm, key);
  52068. }
  52069. } else if ($Map) {
  52070. if ($m) {
  52071. return $mapHas($m, key);
  52072. }
  52073. } else {
  52074. if ($o) { // eslint-disable-line no-lonely-if
  52075. return listHas($o, key);
  52076. }
  52077. }
  52078. return false;
  52079. },
  52080. set: function (key, value) {
  52081. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  52082. if (!$wm) {
  52083. $wm = new $WeakMap();
  52084. }
  52085. $weakMapSet($wm, key, value);
  52086. } else if ($Map) {
  52087. if (!$m) {
  52088. $m = new $Map();
  52089. }
  52090. $mapSet($m, key, value);
  52091. } else {
  52092. if (!$o) {
  52093. /*
  52094. * Initialize the linked list as an empty node, so that we don't have
  52095. * to special-case handling of the first node: we can always refer to
  52096. * it as (previous node).next, instead of something like (list).head
  52097. */
  52098. $o = { key: {}, next: null };
  52099. }
  52100. listSet($o, key, value);
  52101. }
  52102. }
  52103. };
  52104. return channel;
  52105. };
  52106. /***/ }),
  52107. /***/ "./resources/js/assets/styles/layout.scss":
  52108. /*!************************************************!*\
  52109. !*** ./resources/js/assets/styles/layout.scss ***!
  52110. \************************************************/
  52111. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  52112. "use strict";
  52113. __webpack_require__.r(__webpack_exports__);
  52114. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  52115. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  52116. /* harmony export */ });
  52117. /* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
  52118. /* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
  52119. /* harmony import */ var _node_modules_css_loader_dist_cjs_js_clonedRuleSet_11_use_1_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_11_use_2_node_modules_sass_loader_dist_cjs_js_clonedRuleSet_11_use_3_layout_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !!../../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-11.use[1]!../../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-11.use[2]!../../../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-11.use[3]!./layout.scss */ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-11.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-11.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-11.use[3]!./resources/js/assets/styles/layout.scss");
  52120. var options = {};
  52121. options.insert = "head";
  52122. options.singleton = false;
  52123. var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_clonedRuleSet_11_use_1_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_11_use_2_node_modules_sass_loader_dist_cjs_js_clonedRuleSet_11_use_3_layout_scss__WEBPACK_IMPORTED_MODULE_1__["default"], options);
  52124. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_clonedRuleSet_11_use_1_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_11_use_2_node_modules_sass_loader_dist_cjs_js_clonedRuleSet_11_use_3_layout_scss__WEBPACK_IMPORTED_MODULE_1__["default"].locals || {});
  52125. /***/ }),
  52126. /***/ "./node_modules/primeflex/primeflex.css":
  52127. /*!**********************************************!*\
  52128. !*** ./node_modules/primeflex/primeflex.css ***!
  52129. \**********************************************/
  52130. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  52131. "use strict";
  52132. __webpack_require__.r(__webpack_exports__);
  52133. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  52134. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  52135. /* harmony export */ });
  52136. /* harmony import */ var _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
  52137. /* harmony import */ var _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
  52138. /* harmony import */ var _css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_primeflex_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !!../css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!../postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./primeflex.css */ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primeflex/primeflex.css");
  52139. var options = {};
  52140. options.insert = "head";
  52141. options.singleton = false;
  52142. var update = _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_primeflex_css__WEBPACK_IMPORTED_MODULE_1__["default"], options);
  52143. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_primeflex_css__WEBPACK_IMPORTED_MODULE_1__["default"].locals || {});
  52144. /***/ }),
  52145. /***/ "./node_modules/primeicons/primeicons.css":
  52146. /*!************************************************!*\
  52147. !*** ./node_modules/primeicons/primeicons.css ***!
  52148. \************************************************/
  52149. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  52150. "use strict";
  52151. __webpack_require__.r(__webpack_exports__);
  52152. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  52153. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  52154. /* harmony export */ });
  52155. /* harmony import */ var _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
  52156. /* harmony import */ var _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
  52157. /* harmony import */ var _css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_primeicons_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !!../css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!../postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./primeicons.css */ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primeicons/primeicons.css");
  52158. var options = {};
  52159. options.insert = "head";
  52160. options.singleton = false;
  52161. var update = _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_primeicons_css__WEBPACK_IMPORTED_MODULE_1__["default"], options);
  52162. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_primeicons_css__WEBPACK_IMPORTED_MODULE_1__["default"].locals || {});
  52163. /***/ }),
  52164. /***/ "./node_modules/primevue/resources/primevue.min.css":
  52165. /*!**********************************************************!*\
  52166. !*** ./node_modules/primevue/resources/primevue.min.css ***!
  52167. \**********************************************************/
  52168. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  52169. "use strict";
  52170. __webpack_require__.r(__webpack_exports__);
  52171. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  52172. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  52173. /* harmony export */ });
  52174. /* harmony import */ var _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
  52175. /* harmony import */ var _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
  52176. /* harmony import */ var _css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_primevue_min_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !!../../css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!../../postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./primevue.min.css */ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primevue/resources/primevue.min.css");
  52177. var options = {};
  52178. options.insert = "head";
  52179. options.singleton = false;
  52180. var update = _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_primevue_min_css__WEBPACK_IMPORTED_MODULE_1__["default"], options);
  52181. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_primevue_min_css__WEBPACK_IMPORTED_MODULE_1__["default"].locals || {});
  52182. /***/ }),
  52183. /***/ "./node_modules/primevue/resources/themes/tailwind-light/theme.css":
  52184. /*!*************************************************************************!*\
  52185. !*** ./node_modules/primevue/resources/themes/tailwind-light/theme.css ***!
  52186. \*************************************************************************/
  52187. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  52188. "use strict";
  52189. __webpack_require__.r(__webpack_exports__);
  52190. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  52191. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  52192. /* harmony export */ });
  52193. /* harmony import */ var _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../../style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
  52194. /* harmony import */ var _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
  52195. /* harmony import */ var _css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_theme_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !!../../../../css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!../../../../postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./theme.css */ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primevue/resources/themes/tailwind-light/theme.css");
  52196. var options = {};
  52197. options.insert = "head";
  52198. options.singleton = false;
  52199. var update = _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_theme_css__WEBPACK_IMPORTED_MODULE_1__["default"], options);
  52200. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_theme_css__WEBPACK_IMPORTED_MODULE_1__["default"].locals || {});
  52201. /***/ }),
  52202. /***/ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js":
  52203. /*!****************************************************************************!*\
  52204. !*** ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js ***!
  52205. \****************************************************************************/
  52206. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  52207. "use strict";
  52208. var isOldIE = function isOldIE() {
  52209. var memo;
  52210. return function memorize() {
  52211. if (typeof memo === 'undefined') {
  52212. // Test for IE <= 9 as proposed by Browserhacks
  52213. // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
  52214. // Tests for existence of standard globals is to allow style-loader
  52215. // to operate correctly into non-standard environments
  52216. // @see https://github.com/webpack-contrib/style-loader/issues/177
  52217. memo = Boolean(window && document && document.all && !window.atob);
  52218. }
  52219. return memo;
  52220. };
  52221. }();
  52222. var getTarget = function getTarget() {
  52223. var memo = {};
  52224. return function memorize(target) {
  52225. if (typeof memo[target] === 'undefined') {
  52226. var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself
  52227. if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
  52228. try {
  52229. // This will throw an exception if access to iframe is blocked
  52230. // due to cross-origin restrictions
  52231. styleTarget = styleTarget.contentDocument.head;
  52232. } catch (e) {
  52233. // istanbul ignore next
  52234. styleTarget = null;
  52235. }
  52236. }
  52237. memo[target] = styleTarget;
  52238. }
  52239. return memo[target];
  52240. };
  52241. }();
  52242. var stylesInDom = [];
  52243. function getIndexByIdentifier(identifier) {
  52244. var result = -1;
  52245. for (var i = 0; i < stylesInDom.length; i++) {
  52246. if (stylesInDom[i].identifier === identifier) {
  52247. result = i;
  52248. break;
  52249. }
  52250. }
  52251. return result;
  52252. }
  52253. function modulesToDom(list, options) {
  52254. var idCountMap = {};
  52255. var identifiers = [];
  52256. for (var i = 0; i < list.length; i++) {
  52257. var item = list[i];
  52258. var id = options.base ? item[0] + options.base : item[0];
  52259. var count = idCountMap[id] || 0;
  52260. var identifier = "".concat(id, " ").concat(count);
  52261. idCountMap[id] = count + 1;
  52262. var index = getIndexByIdentifier(identifier);
  52263. var obj = {
  52264. css: item[1],
  52265. media: item[2],
  52266. sourceMap: item[3]
  52267. };
  52268. if (index !== -1) {
  52269. stylesInDom[index].references++;
  52270. stylesInDom[index].updater(obj);
  52271. } else {
  52272. stylesInDom.push({
  52273. identifier: identifier,
  52274. updater: addStyle(obj, options),
  52275. references: 1
  52276. });
  52277. }
  52278. identifiers.push(identifier);
  52279. }
  52280. return identifiers;
  52281. }
  52282. function insertStyleElement(options) {
  52283. var style = document.createElement('style');
  52284. var attributes = options.attributes || {};
  52285. if (typeof attributes.nonce === 'undefined') {
  52286. var nonce = true ? __webpack_require__.nc : 0;
  52287. if (nonce) {
  52288. attributes.nonce = nonce;
  52289. }
  52290. }
  52291. Object.keys(attributes).forEach(function (key) {
  52292. style.setAttribute(key, attributes[key]);
  52293. });
  52294. if (typeof options.insert === 'function') {
  52295. options.insert(style);
  52296. } else {
  52297. var target = getTarget(options.insert || 'head');
  52298. if (!target) {
  52299. throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
  52300. }
  52301. target.appendChild(style);
  52302. }
  52303. return style;
  52304. }
  52305. function removeStyleElement(style) {
  52306. // istanbul ignore if
  52307. if (style.parentNode === null) {
  52308. return false;
  52309. }
  52310. style.parentNode.removeChild(style);
  52311. }
  52312. /* istanbul ignore next */
  52313. var replaceText = function replaceText() {
  52314. var textStore = [];
  52315. return function replace(index, replacement) {
  52316. textStore[index] = replacement;
  52317. return textStore.filter(Boolean).join('\n');
  52318. };
  52319. }();
  52320. function applyToSingletonTag(style, index, remove, obj) {
  52321. var css = remove ? '' : obj.media ? "@media ".concat(obj.media, " {").concat(obj.css, "}") : obj.css; // For old IE
  52322. /* istanbul ignore if */
  52323. if (style.styleSheet) {
  52324. style.styleSheet.cssText = replaceText(index, css);
  52325. } else {
  52326. var cssNode = document.createTextNode(css);
  52327. var childNodes = style.childNodes;
  52328. if (childNodes[index]) {
  52329. style.removeChild(childNodes[index]);
  52330. }
  52331. if (childNodes.length) {
  52332. style.insertBefore(cssNode, childNodes[index]);
  52333. } else {
  52334. style.appendChild(cssNode);
  52335. }
  52336. }
  52337. }
  52338. function applyToTag(style, options, obj) {
  52339. var css = obj.css;
  52340. var media = obj.media;
  52341. var sourceMap = obj.sourceMap;
  52342. if (media) {
  52343. style.setAttribute('media', media);
  52344. } else {
  52345. style.removeAttribute('media');
  52346. }
  52347. if (sourceMap && typeof btoa !== 'undefined') {
  52348. css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
  52349. } // For old IE
  52350. /* istanbul ignore if */
  52351. if (style.styleSheet) {
  52352. style.styleSheet.cssText = css;
  52353. } else {
  52354. while (style.firstChild) {
  52355. style.removeChild(style.firstChild);
  52356. }
  52357. style.appendChild(document.createTextNode(css));
  52358. }
  52359. }
  52360. var singleton = null;
  52361. var singletonCounter = 0;
  52362. function addStyle(obj, options) {
  52363. var style;
  52364. var update;
  52365. var remove;
  52366. if (options.singleton) {
  52367. var styleIndex = singletonCounter++;
  52368. style = singleton || (singleton = insertStyleElement(options));
  52369. update = applyToSingletonTag.bind(null, style, styleIndex, false);
  52370. remove = applyToSingletonTag.bind(null, style, styleIndex, true);
  52371. } else {
  52372. style = insertStyleElement(options);
  52373. update = applyToTag.bind(null, style, options);
  52374. remove = function remove() {
  52375. removeStyleElement(style);
  52376. };
  52377. }
  52378. update(obj);
  52379. return function updateStyle(newObj) {
  52380. if (newObj) {
  52381. if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {
  52382. return;
  52383. }
  52384. update(obj = newObj);
  52385. } else {
  52386. remove();
  52387. }
  52388. };
  52389. }
  52390. module.exports = function (list, options) {
  52391. options = options || {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
  52392. // tags it will allow on a page
  52393. if (!options.singleton && typeof options.singleton !== 'boolean') {
  52394. options.singleton = isOldIE();
  52395. }
  52396. list = list || [];
  52397. var lastIdentifiers = modulesToDom(list, options);
  52398. return function update(newList) {
  52399. newList = newList || [];
  52400. if (Object.prototype.toString.call(newList) !== '[object Array]') {
  52401. return;
  52402. }
  52403. for (var i = 0; i < lastIdentifiers.length; i++) {
  52404. var identifier = lastIdentifiers[i];
  52405. var index = getIndexByIdentifier(identifier);
  52406. stylesInDom[index].references--;
  52407. }
  52408. var newLastIdentifiers = modulesToDom(newList, options);
  52409. for (var _i = 0; _i < lastIdentifiers.length; _i++) {
  52410. var _identifier = lastIdentifiers[_i];
  52411. var _index = getIndexByIdentifier(_identifier);
  52412. if (stylesInDom[_index].references === 0) {
  52413. stylesInDom[_index].updater();
  52414. stylesInDom.splice(_index, 1);
  52415. }
  52416. }
  52417. lastIdentifiers = newLastIdentifiers;
  52418. };
  52419. };
  52420. /***/ }),
  52421. /***/ "./node_modules/vue/dist/vue.esm-bundler.js":
  52422. /*!**************************************************!*\
  52423. !*** ./node_modules/vue/dist/vue.esm-bundler.js ***!
  52424. \**************************************************/
  52425. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  52426. "use strict";
  52427. __webpack_require__.r(__webpack_exports__);
  52428. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  52429. /* harmony export */ "BaseTransition": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.BaseTransition),
  52430. /* harmony export */ "Comment": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Comment),
  52431. /* harmony export */ "EffectScope": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.EffectScope),
  52432. /* harmony export */ "Fragment": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Fragment),
  52433. /* harmony export */ "KeepAlive": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.KeepAlive),
  52434. /* harmony export */ "ReactiveEffect": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.ReactiveEffect),
  52435. /* harmony export */ "Static": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Static),
  52436. /* harmony export */ "Suspense": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Suspense),
  52437. /* harmony export */ "Teleport": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Teleport),
  52438. /* harmony export */ "Text": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Text),
  52439. /* harmony export */ "Transition": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Transition),
  52440. /* harmony export */ "TransitionGroup": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.TransitionGroup),
  52441. /* harmony export */ "VueElement": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.VueElement),
  52442. /* harmony export */ "callWithAsyncErrorHandling": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.callWithAsyncErrorHandling),
  52443. /* harmony export */ "callWithErrorHandling": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.callWithErrorHandling),
  52444. /* harmony export */ "camelize": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.camelize),
  52445. /* harmony export */ "capitalize": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.capitalize),
  52446. /* harmony export */ "cloneVNode": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.cloneVNode),
  52447. /* harmony export */ "compatUtils": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.compatUtils),
  52448. /* harmony export */ "compile": () => (/* binding */ compileToFunction),
  52449. /* harmony export */ "computed": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.computed),
  52450. /* harmony export */ "createApp": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createApp),
  52451. /* harmony export */ "createBlock": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createBlock),
  52452. /* harmony export */ "createCommentVNode": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode),
  52453. /* harmony export */ "createElementBlock": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createElementBlock),
  52454. /* harmony export */ "createElementVNode": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createElementVNode),
  52455. /* harmony export */ "createHydrationRenderer": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createHydrationRenderer),
  52456. /* harmony export */ "createPropsRestProxy": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createPropsRestProxy),
  52457. /* harmony export */ "createRenderer": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createRenderer),
  52458. /* harmony export */ "createSSRApp": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createSSRApp),
  52459. /* harmony export */ "createSlots": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createSlots),
  52460. /* harmony export */ "createStaticVNode": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createStaticVNode),
  52461. /* harmony export */ "createTextVNode": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createTextVNode),
  52462. /* harmony export */ "createVNode": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createVNode),
  52463. /* harmony export */ "customRef": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.customRef),
  52464. /* harmony export */ "defineAsyncComponent": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineAsyncComponent),
  52465. /* harmony export */ "defineComponent": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineComponent),
  52466. /* harmony export */ "defineCustomElement": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineCustomElement),
  52467. /* harmony export */ "defineEmits": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineEmits),
  52468. /* harmony export */ "defineExpose": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineExpose),
  52469. /* harmony export */ "defineProps": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineProps),
  52470. /* harmony export */ "defineSSRCustomElement": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineSSRCustomElement),
  52471. /* harmony export */ "devtools": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.devtools),
  52472. /* harmony export */ "effect": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.effect),
  52473. /* harmony export */ "effectScope": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.effectScope),
  52474. /* harmony export */ "getCurrentInstance": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance),
  52475. /* harmony export */ "getCurrentScope": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.getCurrentScope),
  52476. /* harmony export */ "getTransitionRawChildren": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.getTransitionRawChildren),
  52477. /* harmony export */ "guardReactiveProps": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.guardReactiveProps),
  52478. /* harmony export */ "h": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.h),
  52479. /* harmony export */ "handleError": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.handleError),
  52480. /* harmony export */ "hydrate": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.hydrate),
  52481. /* harmony export */ "initCustomFormatter": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.initCustomFormatter),
  52482. /* harmony export */ "initDirectivesForSSR": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.initDirectivesForSSR),
  52483. /* harmony export */ "inject": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.inject),
  52484. /* harmony export */ "isMemoSame": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isMemoSame),
  52485. /* harmony export */ "isProxy": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isProxy),
  52486. /* harmony export */ "isReactive": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isReactive),
  52487. /* harmony export */ "isReadonly": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isReadonly),
  52488. /* harmony export */ "isRef": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isRef),
  52489. /* harmony export */ "isRuntimeOnly": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isRuntimeOnly),
  52490. /* harmony export */ "isShallow": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isShallow),
  52491. /* harmony export */ "isVNode": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isVNode),
  52492. /* harmony export */ "markRaw": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.markRaw),
  52493. /* harmony export */ "mergeDefaults": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.mergeDefaults),
  52494. /* harmony export */ "mergeProps": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.mergeProps),
  52495. /* harmony export */ "nextTick": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.nextTick),
  52496. /* harmony export */ "normalizeClass": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.normalizeClass),
  52497. /* harmony export */ "normalizeProps": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.normalizeProps),
  52498. /* harmony export */ "normalizeStyle": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.normalizeStyle),
  52499. /* harmony export */ "onActivated": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onActivated),
  52500. /* harmony export */ "onBeforeMount": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onBeforeMount),
  52501. /* harmony export */ "onBeforeUnmount": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onBeforeUnmount),
  52502. /* harmony export */ "onBeforeUpdate": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onBeforeUpdate),
  52503. /* harmony export */ "onDeactivated": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onDeactivated),
  52504. /* harmony export */ "onErrorCaptured": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onErrorCaptured),
  52505. /* harmony export */ "onMounted": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onMounted),
  52506. /* harmony export */ "onRenderTracked": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onRenderTracked),
  52507. /* harmony export */ "onRenderTriggered": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onRenderTriggered),
  52508. /* harmony export */ "onScopeDispose": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onScopeDispose),
  52509. /* harmony export */ "onServerPrefetch": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onServerPrefetch),
  52510. /* harmony export */ "onUnmounted": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onUnmounted),
  52511. /* harmony export */ "onUpdated": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onUpdated),
  52512. /* harmony export */ "openBlock": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.openBlock),
  52513. /* harmony export */ "popScopeId": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.popScopeId),
  52514. /* harmony export */ "provide": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.provide),
  52515. /* harmony export */ "proxyRefs": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.proxyRefs),
  52516. /* harmony export */ "pushScopeId": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.pushScopeId),
  52517. /* harmony export */ "queuePostFlushCb": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.queuePostFlushCb),
  52518. /* harmony export */ "reactive": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.reactive),
  52519. /* harmony export */ "readonly": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.readonly),
  52520. /* harmony export */ "ref": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.ref),
  52521. /* harmony export */ "registerRuntimeCompiler": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.registerRuntimeCompiler),
  52522. /* harmony export */ "render": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.render),
  52523. /* harmony export */ "renderList": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.renderList),
  52524. /* harmony export */ "renderSlot": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.renderSlot),
  52525. /* harmony export */ "resolveComponent": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.resolveComponent),
  52526. /* harmony export */ "resolveDirective": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.resolveDirective),
  52527. /* harmony export */ "resolveDynamicComponent": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.resolveDynamicComponent),
  52528. /* harmony export */ "resolveFilter": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.resolveFilter),
  52529. /* harmony export */ "resolveTransitionHooks": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.resolveTransitionHooks),
  52530. /* harmony export */ "setBlockTracking": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.setBlockTracking),
  52531. /* harmony export */ "setDevtoolsHook": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.setDevtoolsHook),
  52532. /* harmony export */ "setTransitionHooks": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.setTransitionHooks),
  52533. /* harmony export */ "shallowReactive": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.shallowReactive),
  52534. /* harmony export */ "shallowReadonly": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly),
  52535. /* harmony export */ "shallowRef": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.shallowRef),
  52536. /* harmony export */ "ssrContextKey": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.ssrContextKey),
  52537. /* harmony export */ "ssrUtils": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.ssrUtils),
  52538. /* harmony export */ "stop": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.stop),
  52539. /* harmony export */ "toDisplayString": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.toDisplayString),
  52540. /* harmony export */ "toHandlerKey": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.toHandlerKey),
  52541. /* harmony export */ "toHandlers": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.toHandlers),
  52542. /* harmony export */ "toRaw": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.toRaw),
  52543. /* harmony export */ "toRef": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.toRef),
  52544. /* harmony export */ "toRefs": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.toRefs),
  52545. /* harmony export */ "transformVNodeArgs": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.transformVNodeArgs),
  52546. /* harmony export */ "triggerRef": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.triggerRef),
  52547. /* harmony export */ "unref": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.unref),
  52548. /* harmony export */ "useAttrs": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.useAttrs),
  52549. /* harmony export */ "useCssModule": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.useCssModule),
  52550. /* harmony export */ "useCssVars": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.useCssVars),
  52551. /* harmony export */ "useSSRContext": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.useSSRContext),
  52552. /* harmony export */ "useSlots": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.useSlots),
  52553. /* harmony export */ "useTransitionState": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.useTransitionState),
  52554. /* harmony export */ "vModelCheckbox": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.vModelCheckbox),
  52555. /* harmony export */ "vModelDynamic": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.vModelDynamic),
  52556. /* harmony export */ "vModelRadio": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.vModelRadio),
  52557. /* harmony export */ "vModelSelect": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.vModelSelect),
  52558. /* harmony export */ "vModelText": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.vModelText),
  52559. /* harmony export */ "vShow": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.vShow),
  52560. /* harmony export */ "version": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.version),
  52561. /* harmony export */ "warn": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.warn),
  52562. /* harmony export */ "watch": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.watch),
  52563. /* harmony export */ "watchEffect": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.watchEffect),
  52564. /* harmony export */ "watchPostEffect": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.watchPostEffect),
  52565. /* harmony export */ "watchSyncEffect": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.watchSyncEffect),
  52566. /* harmony export */ "withAsyncContext": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withAsyncContext),
  52567. /* harmony export */ "withCtx": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withCtx),
  52568. /* harmony export */ "withDefaults": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withDefaults),
  52569. /* harmony export */ "withDirectives": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withDirectives),
  52570. /* harmony export */ "withKeys": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withKeys),
  52571. /* harmony export */ "withMemo": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withMemo),
  52572. /* harmony export */ "withModifiers": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withModifiers),
  52573. /* harmony export */ "withScopeId": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withScopeId)
  52574. /* harmony export */ });
  52575. /* harmony import */ var _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vue/runtime-dom */ "./node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js");
  52576. /* harmony import */ var _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @vue/runtime-dom */ "./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js");
  52577. /* harmony import */ var _vue_compiler_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @vue/compiler-dom */ "./node_modules/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js");
  52578. /* harmony import */ var _vue_shared__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @vue/shared */ "./node_modules/@vue/shared/dist/shared.esm-bundler.js");
  52579. function initDev() {
  52580. {
  52581. (0,_vue_runtime_dom__WEBPACK_IMPORTED_MODULE_1__.initCustomFormatter)();
  52582. }
  52583. }
  52584. // This entry is the "full-build" that includes both the runtime
  52585. if ((true)) {
  52586. initDev();
  52587. }
  52588. const compileCache = Object.create(null);
  52589. function compileToFunction(template, options) {
  52590. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_2__.isString)(template)) {
  52591. if (template.nodeType) {
  52592. template = template.innerHTML;
  52593. }
  52594. else {
  52595. ( true) && (0,_vue_runtime_dom__WEBPACK_IMPORTED_MODULE_1__.warn)(`invalid template option: `, template);
  52596. return _vue_shared__WEBPACK_IMPORTED_MODULE_2__.NOOP;
  52597. }
  52598. }
  52599. const key = template;
  52600. const cached = compileCache[key];
  52601. if (cached) {
  52602. return cached;
  52603. }
  52604. if (template[0] === '#') {
  52605. const el = document.querySelector(template);
  52606. if (( true) && !el) {
  52607. (0,_vue_runtime_dom__WEBPACK_IMPORTED_MODULE_1__.warn)(`Template element not found or is empty: ${template}`);
  52608. }
  52609. // __UNSAFE__
  52610. // Reason: potential execution of JS expressions in in-DOM template.
  52611. // The user must make sure the in-DOM template is trusted. If it's rendered
  52612. // by the server, the template should not contain any user data.
  52613. template = el ? el.innerHTML : ``;
  52614. }
  52615. const { code } = (0,_vue_compiler_dom__WEBPACK_IMPORTED_MODULE_3__.compile)(template, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_2__.extend)({
  52616. hoistStatic: true,
  52617. onError: ( true) ? onError : 0,
  52618. onWarn: ( true) ? e => onError(e, true) : 0
  52619. }, options));
  52620. function onError(err, asWarning = false) {
  52621. const message = asWarning
  52622. ? err.message
  52623. : `Template compilation error: ${err.message}`;
  52624. const codeFrame = err.loc &&
  52625. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_2__.generateCodeFrame)(template, err.loc.start.offset, err.loc.end.offset);
  52626. (0,_vue_runtime_dom__WEBPACK_IMPORTED_MODULE_1__.warn)(codeFrame ? `${message}\n${codeFrame}` : message);
  52627. }
  52628. // The wildcard import results in a huge object with every export
  52629. // with keys that cannot be mangled, and can be quite heavy size-wise.
  52630. // In the global build we know `Vue` is available globally so we can avoid
  52631. // the wildcard object.
  52632. const render = (new Function('Vue', code)(_vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__));
  52633. render._rc = true;
  52634. return (compileCache[key] = render);
  52635. }
  52636. (0,_vue_runtime_dom__WEBPACK_IMPORTED_MODULE_1__.registerRuntimeCompiler)(compileToFunction);
  52637. /***/ }),
  52638. /***/ "./resources/js/pages lazy recursive ^\\.\\/.*$":
  52639. /*!************************************************************!*\
  52640. !*** ./resources/js/pages/ lazy ^\.\/.*$ namespace object ***!
  52641. \************************************************************/
  52642. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  52643. var map = {
  52644. "./auth/ForgotPassword": [
  52645. "./resources/js/pages/auth/ForgotPassword.vue",
  52646. "resources_js_pages_auth_ForgotPassword_vue"
  52647. ],
  52648. "./auth/ForgotPassword.vue": [
  52649. "./resources/js/pages/auth/ForgotPassword.vue",
  52650. "resources_js_pages_auth_ForgotPassword_vue"
  52651. ],
  52652. "./auth/Login": [
  52653. "./resources/js/pages/auth/Login.vue",
  52654. "resources_js_pages_auth_Login_vue"
  52655. ],
  52656. "./auth/Login.vue": [
  52657. "./resources/js/pages/auth/Login.vue",
  52658. "resources_js_pages_auth_Login_vue"
  52659. ],
  52660. "./auth/ResetPassword": [
  52661. "./resources/js/pages/auth/ResetPassword.vue",
  52662. "resources_js_pages_auth_ResetPassword_vue"
  52663. ],
  52664. "./auth/ResetPassword.vue": [
  52665. "./resources/js/pages/auth/ResetPassword.vue",
  52666. "resources_js_pages_auth_ResetPassword_vue"
  52667. ],
  52668. "./auth/VerifyEmail": [
  52669. "./resources/js/pages/auth/VerifyEmail.vue",
  52670. "resources_js_pages_auth_VerifyEmail_vue"
  52671. ],
  52672. "./auth/VerifyEmail.vue": [
  52673. "./resources/js/pages/auth/VerifyEmail.vue",
  52674. "resources_js_pages_auth_VerifyEmail_vue"
  52675. ],
  52676. "./customer/Create": [
  52677. "./resources/js/pages/customer/Create.vue",
  52678. "resources_js_pages_customer_Create_vue"
  52679. ],
  52680. "./customer/Create.vue": [
  52681. "./resources/js/pages/customer/Create.vue",
  52682. "resources_js_pages_customer_Create_vue"
  52683. ],
  52684. "./customer/Edit": [
  52685. "./resources/js/pages/customer/Edit.vue",
  52686. "resources_js_pages_customer_Edit_vue"
  52687. ],
  52688. "./customer/Edit.vue": [
  52689. "./resources/js/pages/customer/Edit.vue",
  52690. "resources_js_pages_customer_Edit_vue"
  52691. ],
  52692. "./customer/Index": [
  52693. "./resources/js/pages/customer/Index.vue",
  52694. "resources_js_pages_customer_Index_vue"
  52695. ],
  52696. "./customer/Index.vue": [
  52697. "./resources/js/pages/customer/Index.vue",
  52698. "resources_js_pages_customer_Index_vue"
  52699. ],
  52700. "./customer/TableHeader": [
  52701. "./resources/js/pages/customer/TableHeader.js",
  52702. "resources_js_pages_customer_TableHeader_js"
  52703. ],
  52704. "./customer/TableHeader.js": [
  52705. "./resources/js/pages/customer/TableHeader.js",
  52706. "resources_js_pages_customer_TableHeader_js"
  52707. ],
  52708. "./discount/Index": [
  52709. "./resources/js/pages/discount/Index.vue",
  52710. "resources_js_pages_discount_Index_vue"
  52711. ],
  52712. "./discount/Index.vue": [
  52713. "./resources/js/pages/discount/Index.vue",
  52714. "resources_js_pages_discount_Index_vue"
  52715. ],
  52716. "./error/Error": [
  52717. "./resources/js/pages/error/Error.vue",
  52718. "resources_js_pages_error_Error_vue"
  52719. ],
  52720. "./error/Error.vue": [
  52721. "./resources/js/pages/error/Error.vue",
  52722. "resources_js_pages_error_Error_vue"
  52723. ],
  52724. "./expense/Create": [
  52725. "./resources/js/pages/expense/Create.vue",
  52726. "resources_js_pages_expense_Create_vue"
  52727. ],
  52728. "./expense/Create.vue": [
  52729. "./resources/js/pages/expense/Create.vue",
  52730. "resources_js_pages_expense_Create_vue"
  52731. ],
  52732. "./expense/Index": [
  52733. "./resources/js/pages/expense/Index.vue",
  52734. "resources_js_pages_expense_Index_vue"
  52735. ],
  52736. "./expense/Index.vue": [
  52737. "./resources/js/pages/expense/Index.vue",
  52738. "resources_js_pages_expense_Index_vue"
  52739. ],
  52740. "./expense/Show": [
  52741. "./resources/js/pages/expense/Show.vue",
  52742. "resources_js_pages_expense_Show_vue"
  52743. ],
  52744. "./expense/Show.vue": [
  52745. "./resources/js/pages/expense/Show.vue",
  52746. "resources_js_pages_expense_Show_vue"
  52747. ],
  52748. "./expense/TableHeader": [
  52749. "./resources/js/pages/expense/TableHeader.js",
  52750. "resources_js_pages_expense_TableHeader_js"
  52751. ],
  52752. "./expense/TableHeader.js": [
  52753. "./resources/js/pages/expense/TableHeader.js",
  52754. "resources_js_pages_expense_TableHeader_js"
  52755. ],
  52756. "./home/Index": [
  52757. "./resources/js/pages/home/Index.vue",
  52758. "resources_js_pages_home_Index_vue"
  52759. ],
  52760. "./home/Index.vue": [
  52761. "./resources/js/pages/home/Index.vue",
  52762. "resources_js_pages_home_Index_vue"
  52763. ],
  52764. "./laundry/Create": [
  52765. "./resources/js/pages/laundry/Create.vue",
  52766. "resources_js_pages_laundry_Create_vue"
  52767. ],
  52768. "./laundry/Create.vue": [
  52769. "./resources/js/pages/laundry/Create.vue",
  52770. "resources_js_pages_laundry_Create_vue"
  52771. ],
  52772. "./laundry/Edit": [
  52773. "./resources/js/pages/laundry/Edit.vue",
  52774. "resources_js_pages_laundry_Edit_vue"
  52775. ],
  52776. "./laundry/Edit.vue": [
  52777. "./resources/js/pages/laundry/Edit.vue",
  52778. "resources_js_pages_laundry_Edit_vue"
  52779. ],
  52780. "./laundry/Index": [
  52781. "./resources/js/pages/laundry/Index.vue",
  52782. "resources_js_pages_laundry_Index_vue"
  52783. ],
  52784. "./laundry/Index.vue": [
  52785. "./resources/js/pages/laundry/Index.vue",
  52786. "resources_js_pages_laundry_Index_vue"
  52787. ],
  52788. "./laundry/TableHeader": [
  52789. "./resources/js/pages/laundry/TableHeader.js",
  52790. "resources_js_pages_laundry_TableHeader_js"
  52791. ],
  52792. "./laundry/TableHeader.js": [
  52793. "./resources/js/pages/laundry/TableHeader.js",
  52794. "resources_js_pages_laundry_TableHeader_js"
  52795. ],
  52796. "./mutation/Report": [
  52797. "./resources/js/pages/mutation/Report.vue",
  52798. "resources_js_pages_mutation_Report_vue"
  52799. ],
  52800. "./mutation/Report.vue": [
  52801. "./resources/js/pages/mutation/Report.vue",
  52802. "resources_js_pages_mutation_Report_vue"
  52803. ],
  52804. "./mutation/TableHeader": [
  52805. "./resources/js/pages/mutation/TableHeader.js",
  52806. "resources_js_pages_mutation_TableHeader_js"
  52807. ],
  52808. "./mutation/TableHeader.js": [
  52809. "./resources/js/pages/mutation/TableHeader.js",
  52810. "resources_js_pages_mutation_TableHeader_js"
  52811. ],
  52812. "./outlet/Create": [
  52813. "./resources/js/pages/outlet/Create.vue",
  52814. "resources_js_pages_outlet_Create_vue"
  52815. ],
  52816. "./outlet/Create.vue": [
  52817. "./resources/js/pages/outlet/Create.vue",
  52818. "resources_js_pages_outlet_Create_vue"
  52819. ],
  52820. "./outlet/Edit": [
  52821. "./resources/js/pages/outlet/Edit.vue",
  52822. "resources_js_pages_outlet_Edit_vue"
  52823. ],
  52824. "./outlet/Edit.vue": [
  52825. "./resources/js/pages/outlet/Edit.vue",
  52826. "resources_js_pages_outlet_Edit_vue"
  52827. ],
  52828. "./outlet/Index": [
  52829. "./resources/js/pages/outlet/Index.vue",
  52830. "resources_js_pages_outlet_Index_vue"
  52831. ],
  52832. "./outlet/Index.vue": [
  52833. "./resources/js/pages/outlet/Index.vue",
  52834. "resources_js_pages_outlet_Index_vue"
  52835. ],
  52836. "./outlet/TableHeader": [
  52837. "./resources/js/pages/outlet/TableHeader.js",
  52838. "resources_js_pages_outlet_TableHeader_js"
  52839. ],
  52840. "./outlet/TableHeader.js": [
  52841. "./resources/js/pages/outlet/TableHeader.js",
  52842. "resources_js_pages_outlet_TableHeader_js"
  52843. ],
  52844. "./product/Create": [
  52845. "./resources/js/pages/product/Create.vue",
  52846. "resources_js_pages_product_Create_vue"
  52847. ],
  52848. "./product/Create.vue": [
  52849. "./resources/js/pages/product/Create.vue",
  52850. "resources_js_pages_product_Create_vue"
  52851. ],
  52852. "./product/Edit": [
  52853. "./resources/js/pages/product/Edit.vue",
  52854. "resources_js_pages_product_Edit_vue"
  52855. ],
  52856. "./product/Edit.vue": [
  52857. "./resources/js/pages/product/Edit.vue",
  52858. "resources_js_pages_product_Edit_vue"
  52859. ],
  52860. "./product/Index": [
  52861. "./resources/js/pages/product/Index.vue",
  52862. "resources_js_pages_product_Index_vue"
  52863. ],
  52864. "./product/Index.vue": [
  52865. "./resources/js/pages/product/Index.vue",
  52866. "resources_js_pages_product_Index_vue"
  52867. ],
  52868. "./product/TableHeader": [
  52869. "./resources/js/pages/product/TableHeader.js",
  52870. "resources_js_pages_product_TableHeader_js"
  52871. ],
  52872. "./product/TableHeader.js": [
  52873. "./resources/js/pages/product/TableHeader.js",
  52874. "resources_js_pages_product_TableHeader_js"
  52875. ],
  52876. "./transaction/Create": [
  52877. "./resources/js/pages/transaction/Create.vue",
  52878. "resources_js_pages_transaction_Create_vue"
  52879. ],
  52880. "./transaction/Create.vue": [
  52881. "./resources/js/pages/transaction/Create.vue",
  52882. "resources_js_pages_transaction_Create_vue"
  52883. ],
  52884. "./transaction/Index": [
  52885. "./resources/js/pages/transaction/Index.vue",
  52886. "resources_js_pages_transaction_Index_vue"
  52887. ],
  52888. "./transaction/Index.vue": [
  52889. "./resources/js/pages/transaction/Index.vue",
  52890. "resources_js_pages_transaction_Index_vue"
  52891. ],
  52892. "./transaction/Report": [
  52893. "./resources/js/pages/transaction/Report.vue",
  52894. "resources_js_pages_transaction_Report_vue"
  52895. ],
  52896. "./transaction/Report.vue": [
  52897. "./resources/js/pages/transaction/Report.vue",
  52898. "resources_js_pages_transaction_Report_vue"
  52899. ],
  52900. "./transaction/Show": [
  52901. "./resources/js/pages/transaction/Show.vue",
  52902. "resources_js_pages_transaction_Show_vue"
  52903. ],
  52904. "./transaction/Show.vue": [
  52905. "./resources/js/pages/transaction/Show.vue",
  52906. "resources_js_pages_transaction_Show_vue"
  52907. ],
  52908. "./transaction/TableHeader": [
  52909. "./resources/js/pages/transaction/TableHeader.js",
  52910. "resources_js_pages_transaction_TableHeader_js"
  52911. ],
  52912. "./transaction/TableHeader.js": [
  52913. "./resources/js/pages/transaction/TableHeader.js",
  52914. "resources_js_pages_transaction_TableHeader_js"
  52915. ],
  52916. "./user/Create": [
  52917. "./resources/js/pages/user/Create.vue",
  52918. "resources_js_pages_user_Create_vue"
  52919. ],
  52920. "./user/Create.vue": [
  52921. "./resources/js/pages/user/Create.vue",
  52922. "resources_js_pages_user_Create_vue"
  52923. ],
  52924. "./user/Edit": [
  52925. "./resources/js/pages/user/Edit.vue",
  52926. "resources_js_pages_user_Edit_vue"
  52927. ],
  52928. "./user/Edit.vue": [
  52929. "./resources/js/pages/user/Edit.vue",
  52930. "resources_js_pages_user_Edit_vue"
  52931. ],
  52932. "./user/Index": [
  52933. "./resources/js/pages/user/Index.vue",
  52934. "resources_js_pages_user_Index_vue"
  52935. ],
  52936. "./user/Index.vue": [
  52937. "./resources/js/pages/user/Index.vue",
  52938. "resources_js_pages_user_Index_vue"
  52939. ],
  52940. "./user/Show": [
  52941. "./resources/js/pages/user/Show.vue",
  52942. "resources_js_pages_user_Show_vue"
  52943. ],
  52944. "./user/Show.vue": [
  52945. "./resources/js/pages/user/Show.vue",
  52946. "resources_js_pages_user_Show_vue"
  52947. ],
  52948. "./user/TableHeader": [
  52949. "./resources/js/pages/user/TableHeader.js",
  52950. "resources_js_pages_user_TableHeader_js"
  52951. ],
  52952. "./user/TableHeader.js": [
  52953. "./resources/js/pages/user/TableHeader.js",
  52954. "resources_js_pages_user_TableHeader_js"
  52955. ]
  52956. };
  52957. function webpackAsyncContext(req) {
  52958. if(!__webpack_require__.o(map, req)) {
  52959. return Promise.resolve().then(() => {
  52960. var e = new Error("Cannot find module '" + req + "'");
  52961. e.code = 'MODULE_NOT_FOUND';
  52962. throw e;
  52963. });
  52964. }
  52965. var ids = map[req], id = ids[0];
  52966. return __webpack_require__.e(ids[1]).then(() => {
  52967. return __webpack_require__(id);
  52968. });
  52969. }
  52970. webpackAsyncContext.keys = () => (Object.keys(map));
  52971. webpackAsyncContext.id = "./resources/js/pages lazy recursive ^\\.\\/.*$";
  52972. module.exports = webpackAsyncContext;
  52973. /***/ }),
  52974. /***/ "?2128":
  52975. /*!********************************!*\
  52976. !*** ./util.inspect (ignored) ***!
  52977. \********************************/
  52978. /***/ (() => {
  52979. /* (ignored) */
  52980. /***/ }),
  52981. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/package.json":
  52982. /*!*************************************************************************!*\
  52983. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/package.json ***!
  52984. \*************************************************************************/
  52985. /***/ ((module) => {
  52986. "use strict";
  52987. module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}');
  52988. /***/ })
  52989. /******/ });
  52990. /************************************************************************/
  52991. /******/ // The module cache
  52992. /******/ var __webpack_module_cache__ = {};
  52993. /******/
  52994. /******/ // The require function
  52995. /******/ function __webpack_require__(moduleId) {
  52996. /******/ // Check if module is in cache
  52997. /******/ var cachedModule = __webpack_module_cache__[moduleId];
  52998. /******/ if (cachedModule !== undefined) {
  52999. /******/ return cachedModule.exports;
  53000. /******/ }
  53001. /******/ // Create a new module (and put it into the cache)
  53002. /******/ var module = __webpack_module_cache__[moduleId] = {
  53003. /******/ id: moduleId,
  53004. /******/ loaded: false,
  53005. /******/ exports: {}
  53006. /******/ };
  53007. /******/
  53008. /******/ // Execute the module function
  53009. /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  53010. /******/
  53011. /******/ // Flag the module as loaded
  53012. /******/ module.loaded = true;
  53013. /******/
  53014. /******/ // Return the exports of the module
  53015. /******/ return module.exports;
  53016. /******/ }
  53017. /******/
  53018. /******/ // expose the modules object (__webpack_modules__)
  53019. /******/ __webpack_require__.m = __webpack_modules__;
  53020. /******/
  53021. /************************************************************************/
  53022. /******/ /* webpack/runtime/compat get default export */
  53023. /******/ (() => {
  53024. /******/ // getDefaultExport function for compatibility with non-harmony modules
  53025. /******/ __webpack_require__.n = (module) => {
  53026. /******/ var getter = module && module.__esModule ?
  53027. /******/ () => (module['default']) :
  53028. /******/ () => (module);
  53029. /******/ __webpack_require__.d(getter, { a: getter });
  53030. /******/ return getter;
  53031. /******/ };
  53032. /******/ })();
  53033. /******/
  53034. /******/ /* webpack/runtime/define property getters */
  53035. /******/ (() => {
  53036. /******/ // define getter functions for harmony exports
  53037. /******/ __webpack_require__.d = (exports, definition) => {
  53038. /******/ for(var key in definition) {
  53039. /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
  53040. /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
  53041. /******/ }
  53042. /******/ }
  53043. /******/ };
  53044. /******/ })();
  53045. /******/
  53046. /******/ /* webpack/runtime/ensure chunk */
  53047. /******/ (() => {
  53048. /******/ __webpack_require__.f = {};
  53049. /******/ // This file contains only the entry chunk.
  53050. /******/ // The chunk loading function for additional chunks
  53051. /******/ __webpack_require__.e = (chunkId) => {
  53052. /******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
  53053. /******/ __webpack_require__.f[key](chunkId, promises);
  53054. /******/ return promises;
  53055. /******/ }, []));
  53056. /******/ };
  53057. /******/ })();
  53058. /******/
  53059. /******/ /* webpack/runtime/get javascript chunk filename */
  53060. /******/ (() => {
  53061. /******/ // This function allow to reference async chunks
  53062. /******/ __webpack_require__.u = (chunkId) => {
  53063. /******/ // return url for filenames based on template
  53064. /******/ return "js/" + chunkId + ".js?id=" + {"node_modules_chart_js_auto_auto_esm_js":"10c6b388645ceb22","resources_js_pages_auth_ForgotPassword_vue":"5ba7f14738f5b5b3","resources_js_pages_auth_Login_vue":"d131e33be4dc97f4","resources_js_pages_auth_ResetPassword_vue":"5bfba6d2c56263a0","resources_js_pages_auth_VerifyEmail_vue":"b123ed2c5547499e","resources_js_pages_customer_Create_vue":"195862f6c8d43aa3","resources_js_pages_customer_Edit_vue":"cc06436e9672bbf8","resources_js_pages_customer_Index_vue":"98a0917b05c32b8c","resources_js_pages_customer_TableHeader_js":"71be5afdca048a9c","resources_js_pages_discount_Index_vue":"850ef0c99c031e8f","resources_js_pages_error_Error_vue":"3519f67bad9dce8e","resources_js_pages_expense_Create_vue":"7fda256562474d1b","resources_js_pages_expense_Index_vue":"76de446ced93e5a6","resources_js_pages_expense_Show_vue":"7f8921910077a63e","resources_js_pages_expense_TableHeader_js":"72e3dee74175b1c0","resources_js_pages_home_Index_vue":"1afbf744fb02747e","resources_js_pages_laundry_Create_vue":"e0db65aca8692812","resources_js_pages_laundry_Edit_vue":"602266670efb8031","resources_js_pages_laundry_Index_vue":"24610ded1ab0f6a8","resources_js_pages_laundry_TableHeader_js":"494e577855bbcaf6","resources_js_pages_mutation_Report_vue":"ee3f8dab53b5b480","resources_js_pages_mutation_TableHeader_js":"82c2999bd7d098a1","resources_js_pages_outlet_Create_vue":"7ddd4886e59217a4","resources_js_pages_outlet_Edit_vue":"7320842192639b28","resources_js_pages_outlet_Index_vue":"35a374d7420742d3","resources_js_pages_outlet_TableHeader_js":"498bf7e64bc0d0c4","resources_js_pages_product_Create_vue":"8d4d9cb143a610db","resources_js_pages_product_Edit_vue":"6feba26715d12a5c","resources_js_pages_product_Index_vue":"16e94f852a60d4cc","resources_js_pages_product_TableHeader_js":"b8eaaa9de25a2322","resources_js_pages_transaction_Create_vue":"6fb5d24f66a34948","resources_js_pages_transaction_Index_vue":"45f46b9204c7c50b","resources_js_pages_transaction_Report_vue":"1c3a38247074276a","resources_js_pages_transaction_Show_vue":"9958783382359c22","resources_js_pages_transaction_TableHeader_js":"be63e672e103818b","resources_js_pages_user_Create_vue":"073159d716c5b315","resources_js_pages_user_Edit_vue":"984644c5ca042ed5","resources_js_pages_user_Index_vue":"c4296ceedcb8b751","resources_js_pages_user_Show_vue":"e4e30a2d16ce602a","resources_js_pages_user_TableHeader_js":"5653ecbcd70fd235"}[chunkId] + "";
  53065. /******/ };
  53066. /******/ })();
  53067. /******/
  53068. /******/ /* webpack/runtime/get mini-css chunk filename */
  53069. /******/ (() => {
  53070. /******/ // This function allow to reference all chunks
  53071. /******/ __webpack_require__.miniCssF = (chunkId) => {
  53072. /******/ // return url for filenames based on template
  53073. /******/ return undefined;
  53074. /******/ };
  53075. /******/ })();
  53076. /******/
  53077. /******/ /* webpack/runtime/global */
  53078. /******/ (() => {
  53079. /******/ __webpack_require__.g = (function() {
  53080. /******/ if (typeof globalThis === 'object') return globalThis;
  53081. /******/ try {
  53082. /******/ return this || new Function('return this')();
  53083. /******/ } catch (e) {
  53084. /******/ if (typeof window === 'object') return window;
  53085. /******/ }
  53086. /******/ })();
  53087. /******/ })();
  53088. /******/
  53089. /******/ /* webpack/runtime/hasOwnProperty shorthand */
  53090. /******/ (() => {
  53091. /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
  53092. /******/ })();
  53093. /******/
  53094. /******/ /* webpack/runtime/load script */
  53095. /******/ (() => {
  53096. /******/ var inProgress = {};
  53097. /******/ // data-webpack is not used as build has no uniqueName
  53098. /******/ // loadScript function to load a script via script tag
  53099. /******/ __webpack_require__.l = (url, done, key, chunkId) => {
  53100. /******/ if(inProgress[url]) { inProgress[url].push(done); return; }
  53101. /******/ var script, needAttach;
  53102. /******/ if(key !== undefined) {
  53103. /******/ var scripts = document.getElementsByTagName("script");
  53104. /******/ for(var i = 0; i < scripts.length; i++) {
  53105. /******/ var s = scripts[i];
  53106. /******/ if(s.getAttribute("src") == url) { script = s; break; }
  53107. /******/ }
  53108. /******/ }
  53109. /******/ if(!script) {
  53110. /******/ needAttach = true;
  53111. /******/ script = document.createElement('script');
  53112. /******/
  53113. /******/ script.charset = 'utf-8';
  53114. /******/ script.timeout = 120;
  53115. /******/ if (__webpack_require__.nc) {
  53116. /******/ script.setAttribute("nonce", __webpack_require__.nc);
  53117. /******/ }
  53118. /******/
  53119. /******/ script.src = url;
  53120. /******/ }
  53121. /******/ inProgress[url] = [done];
  53122. /******/ var onScriptComplete = (prev, event) => {
  53123. /******/ // avoid mem leaks in IE.
  53124. /******/ script.onerror = script.onload = null;
  53125. /******/ clearTimeout(timeout);
  53126. /******/ var doneFns = inProgress[url];
  53127. /******/ delete inProgress[url];
  53128. /******/ script.parentNode && script.parentNode.removeChild(script);
  53129. /******/ doneFns && doneFns.forEach((fn) => (fn(event)));
  53130. /******/ if(prev) return prev(event);
  53131. /******/ }
  53132. /******/ ;
  53133. /******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
  53134. /******/ script.onerror = onScriptComplete.bind(null, script.onerror);
  53135. /******/ script.onload = onScriptComplete.bind(null, script.onload);
  53136. /******/ needAttach && document.head.appendChild(script);
  53137. /******/ };
  53138. /******/ })();
  53139. /******/
  53140. /******/ /* webpack/runtime/make namespace object */
  53141. /******/ (() => {
  53142. /******/ // define __esModule on exports
  53143. /******/ __webpack_require__.r = (exports) => {
  53144. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  53145. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  53146. /******/ }
  53147. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  53148. /******/ };
  53149. /******/ })();
  53150. /******/
  53151. /******/ /* webpack/runtime/node module decorator */
  53152. /******/ (() => {
  53153. /******/ __webpack_require__.nmd = (module) => {
  53154. /******/ module.paths = [];
  53155. /******/ if (!module.children) module.children = [];
  53156. /******/ return module;
  53157. /******/ };
  53158. /******/ })();
  53159. /******/
  53160. /******/ /* webpack/runtime/publicPath */
  53161. /******/ (() => {
  53162. /******/ __webpack_require__.p = "/";
  53163. /******/ })();
  53164. /******/
  53165. /******/ /* webpack/runtime/jsonp chunk loading */
  53166. /******/ (() => {
  53167. /******/ // no baseURI
  53168. /******/
  53169. /******/ // object to store loaded and loading chunks
  53170. /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
  53171. /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
  53172. /******/ var installedChunks = {
  53173. /******/ "/js/vue": 0
  53174. /******/ };
  53175. /******/
  53176. /******/ __webpack_require__.f.j = (chunkId, promises) => {
  53177. /******/ // JSONP chunk loading for javascript
  53178. /******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
  53179. /******/ if(installedChunkData !== 0) { // 0 means "already installed".
  53180. /******/
  53181. /******/ // a Promise means "currently loading".
  53182. /******/ if(installedChunkData) {
  53183. /******/ promises.push(installedChunkData[2]);
  53184. /******/ } else {
  53185. /******/ if(true) { // all chunks have JS
  53186. /******/ // setup Promise in chunk cache
  53187. /******/ var promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));
  53188. /******/ promises.push(installedChunkData[2] = promise);
  53189. /******/
  53190. /******/ // start chunk loading
  53191. /******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
  53192. /******/ // create error before stack unwound to get useful stacktrace later
  53193. /******/ var error = new Error();
  53194. /******/ var loadingEnded = (event) => {
  53195. /******/ if(__webpack_require__.o(installedChunks, chunkId)) {
  53196. /******/ installedChunkData = installedChunks[chunkId];
  53197. /******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
  53198. /******/ if(installedChunkData) {
  53199. /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
  53200. /******/ var realSrc = event && event.target && event.target.src;
  53201. /******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
  53202. /******/ error.name = 'ChunkLoadError';
  53203. /******/ error.type = errorType;
  53204. /******/ error.request = realSrc;
  53205. /******/ installedChunkData[1](error);
  53206. /******/ }
  53207. /******/ }
  53208. /******/ };
  53209. /******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
  53210. /******/ } else installedChunks[chunkId] = 0;
  53211. /******/ }
  53212. /******/ }
  53213. /******/ };
  53214. /******/
  53215. /******/ // no prefetching
  53216. /******/
  53217. /******/ // no preloaded
  53218. /******/
  53219. /******/ // no HMR
  53220. /******/
  53221. /******/ // no HMR manifest
  53222. /******/
  53223. /******/ // no on chunks loaded
  53224. /******/
  53225. /******/ // install a JSONP callback for chunk loading
  53226. /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
  53227. /******/ var [chunkIds, moreModules, runtime] = data;
  53228. /******/ // add "moreModules" to the modules object,
  53229. /******/ // then flag all "chunkIds" as loaded and fire callback
  53230. /******/ var moduleId, chunkId, i = 0;
  53231. /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
  53232. /******/ for(moduleId in moreModules) {
  53233. /******/ if(__webpack_require__.o(moreModules, moduleId)) {
  53234. /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
  53235. /******/ }
  53236. /******/ }
  53237. /******/ if(runtime) var result = runtime(__webpack_require__);
  53238. /******/ }
  53239. /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
  53240. /******/ for(;i < chunkIds.length; i++) {
  53241. /******/ chunkId = chunkIds[i];
  53242. /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
  53243. /******/ installedChunks[chunkId][0]();
  53244. /******/ }
  53245. /******/ installedChunks[chunkId] = 0;
  53246. /******/ }
  53247. /******/
  53248. /******/ }
  53249. /******/
  53250. /******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
  53251. /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
  53252. /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
  53253. /******/ })();
  53254. /******/
  53255. /************************************************************************/
  53256. var __webpack_exports__ = {};
  53257. // This entry need to be wrapped in an IIFE because it need to be in strict mode.
  53258. (() => {
  53259. "use strict";
  53260. /*!*****************************!*\
  53261. !*** ./resources/js/vue.js ***!
  53262. \*****************************/
  53263. __webpack_require__.r(__webpack_exports__);
  53264. /* harmony import */ var primevue_resources_themes_tailwind_light_theme_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/resources/themes/tailwind-light/theme.css */ "./node_modules/primevue/resources/themes/tailwind-light/theme.css");
  53265. /* harmony import */ var primevue_resources_primevue_min_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/resources/primevue.min.css */ "./node_modules/primevue/resources/primevue.min.css");
  53266. /* harmony import */ var primeflex_primeflex_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! primeflex/primeflex.css */ "./node_modules/primeflex/primeflex.css");
  53267. /* harmony import */ var primeicons_primeicons_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! primeicons/primeicons.css */ "./node_modules/primeicons/primeicons.css");
  53268. /* harmony import */ var _assets_styles_layout_scss__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/assets/styles/layout.scss */ "./resources/js/assets/styles/layout.scss");
  53269. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  53270. /* harmony import */ var _inertiajs_inertia_vue3__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @inertiajs/inertia-vue3 */ "./node_modules/@inertiajs/inertia-vue3/dist/index.js");
  53271. /* harmony import */ var _inertiajs_progress__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @inertiajs/progress */ "./node_modules/@inertiajs/progress/dist/index.js");
  53272. /* harmony import */ var primevue_config__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! primevue/config */ "./node_modules/primevue/config/config.esm.js");
  53273. /* harmony import */ var primevue_styleclass__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! primevue/styleclass */ "./node_modules/primevue/styleclass/styleclass.esm.js");
  53274. /* harmony import */ var primevue_autocomplete__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! primevue/autocomplete */ "./node_modules/primevue/autocomplete/autocomplete.esm.js");
  53275. /* harmony import */ var primevue_badge__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! primevue/badge */ "./node_modules/primevue/badge/badge.esm.js");
  53276. /* harmony import */ var primevue_button__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! primevue/button */ "./node_modules/primevue/button/button.esm.js");
  53277. /* harmony import */ var primevue_calendar__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! primevue/calendar */ "./node_modules/primevue/calendar/calendar.esm.js");
  53278. /* harmony import */ var primevue_card__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! primevue/card */ "./node_modules/primevue/card/card.esm.js");
  53279. /* harmony import */ var primevue_chart__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! primevue/chart */ "./node_modules/primevue/chart/chart.esm.js");
  53280. /* harmony import */ var primevue_column__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! primevue/column */ "./node_modules/primevue/column/column.esm.js");
  53281. /* harmony import */ var primevue_datatable__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! primevue/datatable */ "./node_modules/primevue/datatable/datatable.esm.js");
  53282. /* harmony import */ var primevue_dialog__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! primevue/dialog */ "./node_modules/primevue/dialog/dialog.esm.js");
  53283. /* harmony import */ var primevue_divider__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! primevue/divider */ "./node_modules/primevue/divider/divider.esm.js");
  53284. /* harmony import */ var primevue_dropdown__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! primevue/dropdown */ "./node_modules/primevue/dropdown/dropdown.esm.js");
  53285. /* harmony import */ var primevue_editor__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! primevue/editor */ "./node_modules/primevue/editor/editor.esm.js");
  53286. /* harmony import */ var primevue_inputnumber__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! primevue/inputnumber */ "./node_modules/primevue/inputnumber/inputnumber.esm.js");
  53287. /* harmony import */ var primevue_inputtext__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! primevue/inputtext */ "./node_modules/primevue/inputtext/inputtext.esm.js");
  53288. /* harmony import */ var primevue_message__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! primevue/message */ "./node_modules/primevue/message/message.esm.js");
  53289. /* harmony import */ var primevue_paginator__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! primevue/paginator */ "./node_modules/primevue/paginator/paginator.esm.js");
  53290. /* harmony import */ var primevue_password__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! primevue/password */ "./node_modules/primevue/password/password.esm.js");
  53291. /* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! primevue/ripple */ "./node_modules/primevue/ripple/ripple.esm.js");
  53292. /* harmony import */ var primevue_tabview__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! primevue/tabview */ "./node_modules/primevue/tabview/tabview.esm.js");
  53293. /* harmony import */ var primevue_tabpanel__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! primevue/tabpanel */ "./node_modules/primevue/tabpanel/tabpanel.esm.js");
  53294. /* harmony import */ var primevue_textarea__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! primevue/textarea */ "./node_modules/primevue/textarea/textarea.esm.js");
  53295. /* harmony import */ var primevue_tooltip__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! primevue/tooltip */ "./node_modules/primevue/tooltip/tooltip.esm.js");
  53296. (0,_inertiajs_inertia_vue3__WEBPACK_IMPORTED_MODULE_6__.createInertiaApp)({
  53297. title: function title(_title) {
  53298. return "".concat(_title, " - Bamb's Laundry");
  53299. },
  53300. resolve: function resolve(name) {
  53301. return __webpack_require__("./resources/js/pages lazy recursive ^\\.\\/.*$")("./".concat(name));
  53302. },
  53303. setup: function setup(_ref) {
  53304. var el = _ref.el,
  53305. App = _ref.App,
  53306. props = _ref.props,
  53307. plugin = _ref.plugin;
  53308. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createApp)({
  53309. render: function render() {
  53310. return (0,vue__WEBPACK_IMPORTED_MODULE_5__.h)(App, props);
  53311. }
  53312. }).use(plugin).use(primevue_config__WEBPACK_IMPORTED_MODULE_8__["default"], {
  53313. ripple: true
  53314. }).mixin({
  53315. methods: {
  53316. route: route
  53317. }
  53318. }).directive('styleclass', primevue_styleclass__WEBPACK_IMPORTED_MODULE_9__["default"]).directive('ripple', primevue_ripple__WEBPACK_IMPORTED_MODULE_27__["default"]).directive('tooltip', primevue_tooltip__WEBPACK_IMPORTED_MODULE_31__["default"]).component('AutoComplete', primevue_autocomplete__WEBPACK_IMPORTED_MODULE_10__["default"]).component('Button', primevue_button__WEBPACK_IMPORTED_MODULE_12__["default"]).component('Badge', primevue_badge__WEBPACK_IMPORTED_MODULE_11__["default"]).component('Card', primevue_card__WEBPACK_IMPORTED_MODULE_14__["default"]).component('Calendar', primevue_calendar__WEBPACK_IMPORTED_MODULE_13__["default"]).component('Chart', primevue_chart__WEBPACK_IMPORTED_MODULE_15__["default"]).component('Column', primevue_column__WEBPACK_IMPORTED_MODULE_16__["default"]).component('DataTable', primevue_datatable__WEBPACK_IMPORTED_MODULE_17__["default"]).component('Dialog', primevue_dialog__WEBPACK_IMPORTED_MODULE_18__["default"]).component('Divider', primevue_divider__WEBPACK_IMPORTED_MODULE_19__["default"]).component('Dropdown', primevue_dropdown__WEBPACK_IMPORTED_MODULE_20__["default"]).component('Editor', primevue_editor__WEBPACK_IMPORTED_MODULE_21__["default"]).component('InputNumber', primevue_inputnumber__WEBPACK_IMPORTED_MODULE_22__["default"]).component('InputText', primevue_inputtext__WEBPACK_IMPORTED_MODULE_23__["default"]).component('Message', primevue_message__WEBPACK_IMPORTED_MODULE_24__["default"]).component('Paginator', primevue_paginator__WEBPACK_IMPORTED_MODULE_25__["default"]).component('Password', primevue_password__WEBPACK_IMPORTED_MODULE_26__["default"]).component('TabView', primevue_tabview__WEBPACK_IMPORTED_MODULE_28__["default"]).component('TabPanel', primevue_tabpanel__WEBPACK_IMPORTED_MODULE_29__["default"]).component('Textarea', primevue_textarea__WEBPACK_IMPORTED_MODULE_30__["default"]).mount(el);
  53319. }
  53320. });
  53321. _inertiajs_progress__WEBPACK_IMPORTED_MODULE_7__.InertiaProgress.init({
  53322. color: '#4F46E5'
  53323. });
  53324. })();
  53325. /******/ })()
  53326. ;