vendor.js 1.3 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],[
  2. /* 0 */,
  3. /* 1 */
  4. /*!*********************************************************!*\
  5. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js ***!
  6. \*********************************************************/
  7. /*! no static exports found */
  8. /***/ (function(module, exports, __webpack_require__) {
  9. "use strict";
  10. Object.defineProperty(exports, "__esModule", {
  11. value: true
  12. });
  13. exports.default = void 0;
  14. var objectKeys = ['qy', 'env', 'error', 'version', 'lanDebug', 'cloud', 'serviceMarket', 'router', 'worklet'];
  15. var singlePageDisableKey = ['lanDebug', 'router', 'worklet'];
  16. var target = typeof globalThis !== 'undefined' ? globalThis : function () {
  17. return this;
  18. }();
  19. var key = ['w', 'x'].join('');
  20. var oldWx = target[key];
  21. var launchOption = oldWx.getLaunchOptionsSync ? oldWx.getLaunchOptionsSync() : null;
  22. function isWxKey(key) {
  23. if (launchOption && launchOption.scene === 1154 && singlePageDisableKey.includes(key)) {
  24. return false;
  25. }
  26. return objectKeys.indexOf(key) > -1 || typeof oldWx[key] === 'function';
  27. }
  28. function initWx() {
  29. var newWx = {};
  30. for (var _key in oldWx) {
  31. if (isWxKey(_key)) {
  32. // TODO wrapper function
  33. newWx[_key] = oldWx[_key];
  34. }
  35. }
  36. return newWx;
  37. }
  38. target[key] = initWx();
  39. var _default = target[key];
  40. exports.default = _default;
  41. /***/ }),
  42. /* 2 */
  43. /*!************************************************************!*\
  44. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  45. \************************************************************/
  46. /*! no static exports found */
  47. /***/ (function(module, exports, __webpack_require__) {
  48. "use strict";
  49. /* WEBPACK VAR INJECTION */(function(wx, global) {
  50. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  51. Object.defineProperty(exports, "__esModule", {
  52. value: true
  53. });
  54. exports.createApp = createApp;
  55. exports.createComponent = createComponent;
  56. exports.createPage = createPage;
  57. exports.createPlugin = createPlugin;
  58. exports.createSubpackageApp = createSubpackageApp;
  59. exports.default = void 0;
  60. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  61. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  62. var _construct2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/construct */ 15));
  63. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  64. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  65. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 22);
  66. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  67. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  68. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  69. var realAtob;
  70. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  71. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  72. if (typeof atob !== 'function') {
  73. realAtob = function realAtob(str) {
  74. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  75. if (!b64re.test(str)) {
  76. throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  77. }
  78. // Adding the padding if missing, for semplicity
  79. str += '=='.slice(2 - (str.length & 3));
  80. var bitmap;
  81. var result = '';
  82. var r1;
  83. var r2;
  84. var i = 0;
  85. for (; i < str.length;) {
  86. bitmap = b64.indexOf(str.charAt(i++)) << 18 | b64.indexOf(str.charAt(i++)) << 12 | (r1 = b64.indexOf(str.charAt(i++))) << 6 | (r2 = b64.indexOf(str.charAt(i++)));
  87. result += r1 === 64 ? String.fromCharCode(bitmap >> 16 & 255) : r2 === 64 ? String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255) : String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255, bitmap & 255);
  88. }
  89. return result;
  90. };
  91. } else {
  92. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  93. realAtob = atob;
  94. }
  95. function b64DecodeUnicode(str) {
  96. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  97. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  98. }).join(''));
  99. }
  100. function getCurrentUserInfo() {
  101. var token = wx.getStorageSync('uni_id_token') || '';
  102. var tokenArr = token.split('.');
  103. if (!token || tokenArr.length !== 3) {
  104. return {
  105. uid: null,
  106. role: [],
  107. permission: [],
  108. tokenExpired: 0
  109. };
  110. }
  111. var userInfo;
  112. try {
  113. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  114. } catch (error) {
  115. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  116. }
  117. userInfo.tokenExpired = userInfo.exp * 1000;
  118. delete userInfo.exp;
  119. delete userInfo.iat;
  120. return userInfo;
  121. }
  122. function uniIdMixin(Vue) {
  123. Vue.prototype.uniIDHasRole = function (roleId) {
  124. var _getCurrentUserInfo = getCurrentUserInfo(),
  125. role = _getCurrentUserInfo.role;
  126. return role.indexOf(roleId) > -1;
  127. };
  128. Vue.prototype.uniIDHasPermission = function (permissionId) {
  129. var _getCurrentUserInfo2 = getCurrentUserInfo(),
  130. permission = _getCurrentUserInfo2.permission;
  131. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  132. };
  133. Vue.prototype.uniIDTokenValid = function () {
  134. var _getCurrentUserInfo3 = getCurrentUserInfo(),
  135. tokenExpired = _getCurrentUserInfo3.tokenExpired;
  136. return tokenExpired > Date.now();
  137. };
  138. }
  139. var _toString = Object.prototype.toString;
  140. var hasOwnProperty = Object.prototype.hasOwnProperty;
  141. function isFn(fn) {
  142. return typeof fn === 'function';
  143. }
  144. function isStr(str) {
  145. return typeof str === 'string';
  146. }
  147. function isObject(obj) {
  148. return obj !== null && (0, _typeof2.default)(obj) === 'object';
  149. }
  150. function isPlainObject(obj) {
  151. return _toString.call(obj) === '[object Object]';
  152. }
  153. function hasOwn(obj, key) {
  154. return hasOwnProperty.call(obj, key);
  155. }
  156. function noop() {}
  157. /**
  158. * Create a cached version of a pure function.
  159. */
  160. function cached(fn) {
  161. var cache = Object.create(null);
  162. return function cachedFn(str) {
  163. var hit = cache[str];
  164. return hit || (cache[str] = fn(str));
  165. };
  166. }
  167. /**
  168. * Camelize a hyphen-delimited string.
  169. */
  170. var camelizeRE = /-(\w)/g;
  171. var camelize = cached(function (str) {
  172. return str.replace(camelizeRE, function (_, c) {
  173. return c ? c.toUpperCase() : '';
  174. });
  175. });
  176. function sortObject(obj) {
  177. var sortObj = {};
  178. if (isPlainObject(obj)) {
  179. Object.keys(obj).sort().forEach(function (key) {
  180. sortObj[key] = obj[key];
  181. });
  182. }
  183. return !Object.keys(sortObj) ? obj : sortObj;
  184. }
  185. var HOOKS = ['invoke', 'success', 'fail', 'complete', 'returnValue'];
  186. var globalInterceptors = {};
  187. var scopedInterceptors = {};
  188. function mergeHook(parentVal, childVal) {
  189. var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal;
  190. return res ? dedupeHooks(res) : res;
  191. }
  192. function dedupeHooks(hooks) {
  193. var res = [];
  194. for (var i = 0; i < hooks.length; i++) {
  195. if (res.indexOf(hooks[i]) === -1) {
  196. res.push(hooks[i]);
  197. }
  198. }
  199. return res;
  200. }
  201. function removeHook(hooks, hook) {
  202. var index = hooks.indexOf(hook);
  203. if (index !== -1) {
  204. hooks.splice(index, 1);
  205. }
  206. }
  207. function mergeInterceptorHook(interceptor, option) {
  208. Object.keys(option).forEach(function (hook) {
  209. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  210. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  211. }
  212. });
  213. }
  214. function removeInterceptorHook(interceptor, option) {
  215. if (!interceptor || !option) {
  216. return;
  217. }
  218. Object.keys(option).forEach(function (hook) {
  219. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  220. removeHook(interceptor[hook], option[hook]);
  221. }
  222. });
  223. }
  224. function addInterceptor(method, option) {
  225. if (typeof method === 'string' && isPlainObject(option)) {
  226. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  227. } else if (isPlainObject(method)) {
  228. mergeInterceptorHook(globalInterceptors, method);
  229. }
  230. }
  231. function removeInterceptor(method, option) {
  232. if (typeof method === 'string') {
  233. if (isPlainObject(option)) {
  234. removeInterceptorHook(scopedInterceptors[method], option);
  235. } else {
  236. delete scopedInterceptors[method];
  237. }
  238. } else if (isPlainObject(method)) {
  239. removeInterceptorHook(globalInterceptors, method);
  240. }
  241. }
  242. function wrapperHook(hook) {
  243. return function (data) {
  244. return hook(data) || data;
  245. };
  246. }
  247. function isPromise(obj) {
  248. return !!obj && ((0, _typeof2.default)(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  249. }
  250. function queue(hooks, data) {
  251. var promise = false;
  252. for (var i = 0; i < hooks.length; i++) {
  253. var hook = hooks[i];
  254. if (promise) {
  255. promise = Promise.resolve(wrapperHook(hook));
  256. } else {
  257. var res = hook(data);
  258. if (isPromise(res)) {
  259. promise = Promise.resolve(res);
  260. }
  261. if (res === false) {
  262. return {
  263. then: function then() {}
  264. };
  265. }
  266. }
  267. }
  268. return promise || {
  269. then: function then(callback) {
  270. return callback(data);
  271. }
  272. };
  273. }
  274. function wrapperOptions(interceptor) {
  275. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  276. ['success', 'fail', 'complete'].forEach(function (name) {
  277. if (Array.isArray(interceptor[name])) {
  278. var oldCallback = options[name];
  279. options[name] = function callbackInterceptor(res) {
  280. queue(interceptor[name], res).then(function (res) {
  281. /* eslint-disable no-mixed-operators */
  282. return isFn(oldCallback) && oldCallback(res) || res;
  283. });
  284. };
  285. }
  286. });
  287. return options;
  288. }
  289. function wrapperReturnValue(method, returnValue) {
  290. var returnValueHooks = [];
  291. if (Array.isArray(globalInterceptors.returnValue)) {
  292. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(globalInterceptors.returnValue));
  293. }
  294. var interceptor = scopedInterceptors[method];
  295. if (interceptor && Array.isArray(interceptor.returnValue)) {
  296. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(interceptor.returnValue));
  297. }
  298. returnValueHooks.forEach(function (hook) {
  299. returnValue = hook(returnValue) || returnValue;
  300. });
  301. return returnValue;
  302. }
  303. function getApiInterceptorHooks(method) {
  304. var interceptor = Object.create(null);
  305. Object.keys(globalInterceptors).forEach(function (hook) {
  306. if (hook !== 'returnValue') {
  307. interceptor[hook] = globalInterceptors[hook].slice();
  308. }
  309. });
  310. var scopedInterceptor = scopedInterceptors[method];
  311. if (scopedInterceptor) {
  312. Object.keys(scopedInterceptor).forEach(function (hook) {
  313. if (hook !== 'returnValue') {
  314. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  315. }
  316. });
  317. }
  318. return interceptor;
  319. }
  320. function invokeApi(method, api, options) {
  321. for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
  322. params[_key - 3] = arguments[_key];
  323. }
  324. var interceptor = getApiInterceptorHooks(method);
  325. if (interceptor && Object.keys(interceptor).length) {
  326. if (Array.isArray(interceptor.invoke)) {
  327. var res = queue(interceptor.invoke, options);
  328. return res.then(function (options) {
  329. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  330. });
  331. } else {
  332. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  333. }
  334. }
  335. return api.apply(void 0, [options].concat(params));
  336. }
  337. var promiseInterceptor = {
  338. returnValue: function returnValue(res) {
  339. if (!isPromise(res)) {
  340. return res;
  341. }
  342. return new Promise(function (resolve, reject) {
  343. res.then(function (res) {
  344. if (res[0]) {
  345. reject(res[0]);
  346. } else {
  347. resolve(res[1]);
  348. }
  349. });
  350. });
  351. }
  352. };
  353. var SYNC_API_RE = /^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting|initUTS|requireUTS|registerUTS/;
  354. var CONTEXT_API_RE = /^create|Manager$/;
  355. // Context例外情况
  356. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  357. // 同步例外情况
  358. var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
  359. var CALLBACK_API_RE = /^on|^off/;
  360. function isContextApi(name) {
  361. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  362. }
  363. function isSyncApi(name) {
  364. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  365. }
  366. function isCallbackApi(name) {
  367. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  368. }
  369. function handlePromise(promise) {
  370. return promise.then(function (data) {
  371. return [null, data];
  372. }).catch(function (err) {
  373. return [err];
  374. });
  375. }
  376. function shouldPromise(name) {
  377. if (isContextApi(name) || isSyncApi(name) || isCallbackApi(name)) {
  378. return false;
  379. }
  380. return true;
  381. }
  382. /* eslint-disable no-extend-native */
  383. if (!Promise.prototype.finally) {
  384. Promise.prototype.finally = function (callback) {
  385. var promise = this.constructor;
  386. return this.then(function (value) {
  387. return promise.resolve(callback()).then(function () {
  388. return value;
  389. });
  390. }, function (reason) {
  391. return promise.resolve(callback()).then(function () {
  392. throw reason;
  393. });
  394. });
  395. };
  396. }
  397. function promisify(name, api) {
  398. if (!shouldPromise(name) || !isFn(api)) {
  399. return api;
  400. }
  401. return function promiseApi() {
  402. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  403. for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  404. params[_key2 - 1] = arguments[_key2];
  405. }
  406. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  407. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  408. }
  409. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  410. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  411. success: resolve,
  412. fail: reject
  413. })].concat(params));
  414. })));
  415. };
  416. }
  417. var EPS = 1e-4;
  418. var BASE_DEVICE_WIDTH = 750;
  419. var isIOS = false;
  420. var deviceWidth = 0;
  421. var deviceDPR = 0;
  422. function checkDeviceWidth() {
  423. var _wx$getSystemInfoSync = wx.getSystemInfoSync(),
  424. platform = _wx$getSystemInfoSync.platform,
  425. pixelRatio = _wx$getSystemInfoSync.pixelRatio,
  426. windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  427. deviceWidth = windowWidth;
  428. deviceDPR = pixelRatio;
  429. isIOS = platform === 'ios';
  430. }
  431. function upx2px(number, newDeviceWidth) {
  432. if (deviceWidth === 0) {
  433. checkDeviceWidth();
  434. }
  435. number = Number(number);
  436. if (number === 0) {
  437. return 0;
  438. }
  439. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  440. if (result < 0) {
  441. result = -result;
  442. }
  443. result = Math.floor(result + EPS);
  444. if (result === 0) {
  445. if (deviceDPR === 1 || !isIOS) {
  446. result = 1;
  447. } else {
  448. result = 0.5;
  449. }
  450. }
  451. return number < 0 ? -result : result;
  452. }
  453. var LOCALE_ZH_HANS = 'zh-Hans';
  454. var LOCALE_ZH_HANT = 'zh-Hant';
  455. var LOCALE_EN = 'en';
  456. var LOCALE_FR = 'fr';
  457. var LOCALE_ES = 'es';
  458. var messages = {};
  459. var locale;
  460. {
  461. locale = normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  462. }
  463. function initI18nMessages() {
  464. if (!isEnableLocale()) {
  465. return;
  466. }
  467. var localeKeys = Object.keys(__uniConfig.locales);
  468. if (localeKeys.length) {
  469. localeKeys.forEach(function (locale) {
  470. var curMessages = messages[locale];
  471. var userMessages = __uniConfig.locales[locale];
  472. if (curMessages) {
  473. Object.assign(curMessages, userMessages);
  474. } else {
  475. messages[locale] = userMessages;
  476. }
  477. });
  478. }
  479. }
  480. initI18nMessages();
  481. var i18n = (0, _uniI18n.initVueI18n)(locale, {});
  482. var t = i18n.t;
  483. var i18nMixin = i18n.mixin = {
  484. beforeCreate: function beforeCreate() {
  485. var _this = this;
  486. var unwatch = i18n.i18n.watchLocale(function () {
  487. _this.$forceUpdate();
  488. });
  489. this.$once('hook:beforeDestroy', function () {
  490. unwatch();
  491. });
  492. },
  493. methods: {
  494. $$t: function $$t(key, values) {
  495. return t(key, values);
  496. }
  497. }
  498. };
  499. var setLocale = i18n.setLocale;
  500. var getLocale = i18n.getLocale;
  501. function initAppLocale(Vue, appVm, locale) {
  502. var state = Vue.observable({
  503. locale: locale || i18n.getLocale()
  504. });
  505. var localeWatchers = [];
  506. appVm.$watchLocale = function (fn) {
  507. localeWatchers.push(fn);
  508. };
  509. Object.defineProperty(appVm, '$locale', {
  510. get: function get() {
  511. return state.locale;
  512. },
  513. set: function set(v) {
  514. state.locale = v;
  515. localeWatchers.forEach(function (watch) {
  516. return watch(v);
  517. });
  518. }
  519. });
  520. }
  521. function isEnableLocale() {
  522. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  523. }
  524. function include(str, parts) {
  525. return !!parts.find(function (part) {
  526. return str.indexOf(part) !== -1;
  527. });
  528. }
  529. function startsWith(str, parts) {
  530. return parts.find(function (part) {
  531. return str.indexOf(part) === 0;
  532. });
  533. }
  534. function normalizeLocale(locale, messages) {
  535. if (!locale) {
  536. return;
  537. }
  538. locale = locale.trim().replace(/_/g, '-');
  539. if (messages && messages[locale]) {
  540. return locale;
  541. }
  542. locale = locale.toLowerCase();
  543. if (locale === 'chinese') {
  544. // 支付宝
  545. return LOCALE_ZH_HANS;
  546. }
  547. if (locale.indexOf('zh') === 0) {
  548. if (locale.indexOf('-hans') > -1) {
  549. return LOCALE_ZH_HANS;
  550. }
  551. if (locale.indexOf('-hant') > -1) {
  552. return LOCALE_ZH_HANT;
  553. }
  554. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  555. return LOCALE_ZH_HANT;
  556. }
  557. return LOCALE_ZH_HANS;
  558. }
  559. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  560. if (lang) {
  561. return lang;
  562. }
  563. }
  564. // export function initI18n() {
  565. // const localeKeys = Object.keys(__uniConfig.locales || {})
  566. // if (localeKeys.length) {
  567. // localeKeys.forEach((locale) =>
  568. // i18n.add(locale, __uniConfig.locales[locale])
  569. // )
  570. // }
  571. // }
  572. function getLocale$1() {
  573. // 优先使用 $locale
  574. if (isFn(getApp)) {
  575. var app = getApp({
  576. allowDefault: true
  577. });
  578. if (app && app.$vm) {
  579. return app.$vm.$locale;
  580. }
  581. }
  582. return normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  583. }
  584. function setLocale$1(locale) {
  585. var app = isFn(getApp) ? getApp() : false;
  586. if (!app) {
  587. return false;
  588. }
  589. var oldLocale = app.$vm.$locale;
  590. if (oldLocale !== locale) {
  591. app.$vm.$locale = locale;
  592. onLocaleChangeCallbacks.forEach(function (fn) {
  593. return fn({
  594. locale: locale
  595. });
  596. });
  597. return true;
  598. }
  599. return false;
  600. }
  601. var onLocaleChangeCallbacks = [];
  602. function onLocaleChange(fn) {
  603. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  604. onLocaleChangeCallbacks.push(fn);
  605. }
  606. }
  607. if (typeof global !== 'undefined') {
  608. global.getLocale = getLocale$1;
  609. }
  610. var interceptors = {
  611. promiseInterceptor: promiseInterceptor
  612. };
  613. var baseApi = /*#__PURE__*/Object.freeze({
  614. __proto__: null,
  615. upx2px: upx2px,
  616. getLocale: getLocale$1,
  617. setLocale: setLocale$1,
  618. onLocaleChange: onLocaleChange,
  619. addInterceptor: addInterceptor,
  620. removeInterceptor: removeInterceptor,
  621. interceptors: interceptors
  622. });
  623. function findExistsPageIndex(url) {
  624. var pages = getCurrentPages();
  625. var len = pages.length;
  626. while (len--) {
  627. var page = pages[len];
  628. if (page.$page && page.$page.fullPath === url) {
  629. return len;
  630. }
  631. }
  632. return -1;
  633. }
  634. var redirectTo = {
  635. name: function name(fromArgs) {
  636. if (fromArgs.exists === 'back' && fromArgs.delta) {
  637. return 'navigateBack';
  638. }
  639. return 'redirectTo';
  640. },
  641. args: function args(fromArgs) {
  642. if (fromArgs.exists === 'back' && fromArgs.url) {
  643. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  644. if (existsPageIndex !== -1) {
  645. var delta = getCurrentPages().length - 1 - existsPageIndex;
  646. if (delta > 0) {
  647. fromArgs.delta = delta;
  648. }
  649. }
  650. }
  651. }
  652. };
  653. var previewImage = {
  654. args: function args(fromArgs) {
  655. var currentIndex = parseInt(fromArgs.current);
  656. if (isNaN(currentIndex)) {
  657. return;
  658. }
  659. var urls = fromArgs.urls;
  660. if (!Array.isArray(urls)) {
  661. return;
  662. }
  663. var len = urls.length;
  664. if (!len) {
  665. return;
  666. }
  667. if (currentIndex < 0) {
  668. currentIndex = 0;
  669. } else if (currentIndex >= len) {
  670. currentIndex = len - 1;
  671. }
  672. if (currentIndex > 0) {
  673. fromArgs.current = urls[currentIndex];
  674. fromArgs.urls = urls.filter(function (item, index) {
  675. return index < currentIndex ? item !== urls[currentIndex] : true;
  676. });
  677. } else {
  678. fromArgs.current = urls[0];
  679. }
  680. return {
  681. indicator: false,
  682. loop: false
  683. };
  684. }
  685. };
  686. var UUID_KEY = '__DC_STAT_UUID';
  687. var deviceId;
  688. function useDeviceId(result) {
  689. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  690. if (!deviceId) {
  691. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  692. wx.setStorage({
  693. key: UUID_KEY,
  694. data: deviceId
  695. });
  696. }
  697. result.deviceId = deviceId;
  698. }
  699. function addSafeAreaInsets(result) {
  700. if (result.safeArea) {
  701. var safeArea = result.safeArea;
  702. result.safeAreaInsets = {
  703. top: safeArea.top,
  704. left: safeArea.left,
  705. right: result.windowWidth - safeArea.right,
  706. bottom: result.screenHeight - safeArea.bottom
  707. };
  708. }
  709. }
  710. function populateParameters(result) {
  711. var _result$brand = result.brand,
  712. brand = _result$brand === void 0 ? '' : _result$brand,
  713. _result$model = result.model,
  714. model = _result$model === void 0 ? '' : _result$model,
  715. _result$system = result.system,
  716. system = _result$system === void 0 ? '' : _result$system,
  717. _result$language = result.language,
  718. language = _result$language === void 0 ? '' : _result$language,
  719. theme = result.theme,
  720. version = result.version,
  721. platform = result.platform,
  722. fontSizeSetting = result.fontSizeSetting,
  723. SDKVersion = result.SDKVersion,
  724. pixelRatio = result.pixelRatio,
  725. deviceOrientation = result.deviceOrientation;
  726. // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
  727. var extraParam = {};
  728. // osName osVersion
  729. var osName = '';
  730. var osVersion = '';
  731. {
  732. osName = system.split(' ')[0] || '';
  733. osVersion = system.split(' ')[1] || '';
  734. }
  735. var hostVersion = version;
  736. // deviceType
  737. var deviceType = getGetDeviceType(result, model);
  738. // deviceModel
  739. var deviceBrand = getDeviceBrand(brand);
  740. // hostName
  741. var _hostName = getHostName(result);
  742. // deviceOrientation
  743. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  744. // devicePixelRatio
  745. var _devicePixelRatio = pixelRatio;
  746. // SDKVersion
  747. var _SDKVersion = SDKVersion;
  748. // hostLanguage
  749. var hostLanguage = language.replace(/_/g, '-');
  750. // wx.getAccountInfoSync
  751. var parameters = {
  752. appId: "__UNI__2080341",
  753. appName: "自由天空",
  754. appVersion: "1.1.6",
  755. appVersionCode: "116",
  756. appLanguage: getAppLanguage(hostLanguage),
  757. uniCompileVersion: "3.7.3",
  758. uniRuntimeVersion: "3.7.3",
  759. uniPlatform: undefined || "mp-weixin",
  760. deviceBrand: deviceBrand,
  761. deviceModel: model,
  762. deviceType: deviceType,
  763. devicePixelRatio: _devicePixelRatio,
  764. deviceOrientation: _deviceOrientation,
  765. osName: osName.toLocaleLowerCase(),
  766. osVersion: osVersion,
  767. hostTheme: theme,
  768. hostVersion: hostVersion,
  769. hostLanguage: hostLanguage,
  770. hostName: _hostName,
  771. hostSDKVersion: _SDKVersion,
  772. hostFontSizeSetting: fontSizeSetting,
  773. windowTop: 0,
  774. windowBottom: 0,
  775. // TODO
  776. osLanguage: undefined,
  777. osTheme: undefined,
  778. ua: undefined,
  779. hostPackageName: undefined,
  780. browserName: undefined,
  781. browserVersion: undefined
  782. };
  783. Object.assign(result, parameters, extraParam);
  784. }
  785. function getGetDeviceType(result, model) {
  786. var deviceType = result.deviceType || 'phone';
  787. {
  788. var deviceTypeMaps = {
  789. ipad: 'pad',
  790. windows: 'pc',
  791. mac: 'pc'
  792. };
  793. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  794. var _model = model.toLocaleLowerCase();
  795. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  796. var _m = deviceTypeMapsKeys[index];
  797. if (_model.indexOf(_m) !== -1) {
  798. deviceType = deviceTypeMaps[_m];
  799. break;
  800. }
  801. }
  802. }
  803. return deviceType;
  804. }
  805. function getDeviceBrand(brand) {
  806. var deviceBrand = brand;
  807. if (deviceBrand) {
  808. deviceBrand = brand.toLocaleLowerCase();
  809. }
  810. return deviceBrand;
  811. }
  812. function getAppLanguage(defaultLanguage) {
  813. return getLocale$1 ? getLocale$1() : defaultLanguage;
  814. }
  815. function getHostName(result) {
  816. var _platform = 'WeChat';
  817. var _hostName = result.hostName || _platform; // mp-jd
  818. {
  819. if (result.environment) {
  820. _hostName = result.environment;
  821. } else if (result.host && result.host.env) {
  822. _hostName = result.host.env;
  823. }
  824. }
  825. return _hostName;
  826. }
  827. var getSystemInfo = {
  828. returnValue: function returnValue(result) {
  829. useDeviceId(result);
  830. addSafeAreaInsets(result);
  831. populateParameters(result);
  832. }
  833. };
  834. var showActionSheet = {
  835. args: function args(fromArgs) {
  836. if ((0, _typeof2.default)(fromArgs) === 'object') {
  837. fromArgs.alertText = fromArgs.title;
  838. }
  839. }
  840. };
  841. var getAppBaseInfo = {
  842. returnValue: function returnValue(result) {
  843. var _result = result,
  844. version = _result.version,
  845. language = _result.language,
  846. SDKVersion = _result.SDKVersion,
  847. theme = _result.theme;
  848. var _hostName = getHostName(result);
  849. var hostLanguage = language.replace('_', '-');
  850. result = sortObject(Object.assign(result, {
  851. appId: "__UNI__2080341",
  852. appName: "自由天空",
  853. appVersion: "1.1.6",
  854. appVersionCode: "116",
  855. appLanguage: getAppLanguage(hostLanguage),
  856. hostVersion: version,
  857. hostLanguage: hostLanguage,
  858. hostName: _hostName,
  859. hostSDKVersion: SDKVersion,
  860. hostTheme: theme
  861. }));
  862. }
  863. };
  864. var getDeviceInfo = {
  865. returnValue: function returnValue(result) {
  866. var _result2 = result,
  867. brand = _result2.brand,
  868. model = _result2.model;
  869. var deviceType = getGetDeviceType(result, model);
  870. var deviceBrand = getDeviceBrand(brand);
  871. useDeviceId(result);
  872. result = sortObject(Object.assign(result, {
  873. deviceType: deviceType,
  874. deviceBrand: deviceBrand,
  875. deviceModel: model
  876. }));
  877. }
  878. };
  879. var getWindowInfo = {
  880. returnValue: function returnValue(result) {
  881. addSafeAreaInsets(result);
  882. result = sortObject(Object.assign(result, {
  883. windowTop: 0,
  884. windowBottom: 0
  885. }));
  886. }
  887. };
  888. var getAppAuthorizeSetting = {
  889. returnValue: function returnValue(result) {
  890. var locationReducedAccuracy = result.locationReducedAccuracy;
  891. result.locationAccuracy = 'unsupported';
  892. if (locationReducedAccuracy === true) {
  893. result.locationAccuracy = 'reduced';
  894. } else if (locationReducedAccuracy === false) {
  895. result.locationAccuracy = 'full';
  896. }
  897. }
  898. };
  899. // import navigateTo from 'uni-helpers/navigate-to'
  900. var compressImage = {
  901. args: function args(fromArgs) {
  902. // https://developers.weixin.qq.com/community/develop/doc/000c08940c865011298e0a43256800?highLine=compressHeight
  903. if (fromArgs.compressedHeight && !fromArgs.compressHeight) {
  904. fromArgs.compressHeight = fromArgs.compressedHeight;
  905. }
  906. if (fromArgs.compressedWidth && !fromArgs.compressWidth) {
  907. fromArgs.compressWidth = fromArgs.compressedWidth;
  908. }
  909. }
  910. };
  911. var protocols = {
  912. redirectTo: redirectTo,
  913. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  914. previewImage: previewImage,
  915. getSystemInfo: getSystemInfo,
  916. getSystemInfoSync: getSystemInfo,
  917. showActionSheet: showActionSheet,
  918. getAppBaseInfo: getAppBaseInfo,
  919. getDeviceInfo: getDeviceInfo,
  920. getWindowInfo: getWindowInfo,
  921. getAppAuthorizeSetting: getAppAuthorizeSetting,
  922. compressImage: compressImage
  923. };
  924. var todos = ['vibrate', 'preloadPage', 'unPreloadPage', 'loadSubPackage'];
  925. var canIUses = [];
  926. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  927. function processCallback(methodName, method, returnValue) {
  928. return function (res) {
  929. return method(processReturnValue(methodName, res, returnValue));
  930. };
  931. }
  932. function processArgs(methodName, fromArgs) {
  933. var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  934. var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  935. var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  936. if (isPlainObject(fromArgs)) {
  937. // 一般 api 的参数解析
  938. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  939. if (isFn(argsOption)) {
  940. argsOption = argsOption(fromArgs, toArgs) || {};
  941. }
  942. for (var key in fromArgs) {
  943. if (hasOwn(argsOption, key)) {
  944. var keyOption = argsOption[key];
  945. if (isFn(keyOption)) {
  946. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  947. }
  948. if (!keyOption) {
  949. // 不支持的参数
  950. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  951. } else if (isStr(keyOption)) {
  952. // 重写参数 key
  953. toArgs[keyOption] = fromArgs[key];
  954. } else if (isPlainObject(keyOption)) {
  955. // {name:newName,value:value}可重新指定参数 key:value
  956. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  957. }
  958. } else if (CALLBACKS.indexOf(key) !== -1) {
  959. if (isFn(fromArgs[key])) {
  960. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  961. }
  962. } else {
  963. if (!keepFromArgs) {
  964. toArgs[key] = fromArgs[key];
  965. }
  966. }
  967. }
  968. return toArgs;
  969. } else if (isFn(fromArgs)) {
  970. fromArgs = processCallback(methodName, fromArgs, returnValue);
  971. }
  972. return fromArgs;
  973. }
  974. function processReturnValue(methodName, res, returnValue) {
  975. var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  976. if (isFn(protocols.returnValue)) {
  977. // 处理通用 returnValue
  978. res = protocols.returnValue(methodName, res);
  979. }
  980. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  981. }
  982. function wrapper(methodName, method) {
  983. if (hasOwn(protocols, methodName)) {
  984. var protocol = protocols[methodName];
  985. if (!protocol) {
  986. // 暂不支持的 api
  987. return function () {
  988. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  989. };
  990. }
  991. return function (arg1, arg2) {
  992. // 目前 api 最多两个参数
  993. var options = protocol;
  994. if (isFn(protocol)) {
  995. options = protocol(arg1);
  996. }
  997. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  998. var args = [arg1];
  999. if (typeof arg2 !== 'undefined') {
  1000. args.push(arg2);
  1001. }
  1002. if (isFn(options.name)) {
  1003. methodName = options.name(arg1);
  1004. } else if (isStr(options.name)) {
  1005. methodName = options.name;
  1006. }
  1007. var returnValue = wx[methodName].apply(wx, args);
  1008. if (isSyncApi(methodName)) {
  1009. // 同步 api
  1010. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  1011. }
  1012. return returnValue;
  1013. };
  1014. }
  1015. return method;
  1016. }
  1017. var todoApis = Object.create(null);
  1018. var TODOS = ['onTabBarMidButtonTap', 'subscribePush', 'unsubscribePush', 'onPush', 'offPush', 'share'];
  1019. function createTodoApi(name) {
  1020. return function todoApi(_ref) {
  1021. var fail = _ref.fail,
  1022. complete = _ref.complete;
  1023. var res = {
  1024. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported")
  1025. };
  1026. isFn(fail) && fail(res);
  1027. isFn(complete) && complete(res);
  1028. };
  1029. }
  1030. TODOS.forEach(function (name) {
  1031. todoApis[name] = createTodoApi(name);
  1032. });
  1033. var providers = {
  1034. oauth: ['weixin'],
  1035. share: ['weixin'],
  1036. payment: ['wxpay'],
  1037. push: ['weixin']
  1038. };
  1039. function getProvider(_ref2) {
  1040. var service = _ref2.service,
  1041. success = _ref2.success,
  1042. fail = _ref2.fail,
  1043. complete = _ref2.complete;
  1044. var res = false;
  1045. if (providers[service]) {
  1046. res = {
  1047. errMsg: 'getProvider:ok',
  1048. service: service,
  1049. provider: providers[service]
  1050. };
  1051. isFn(success) && success(res);
  1052. } else {
  1053. res = {
  1054. errMsg: 'getProvider:fail service not found'
  1055. };
  1056. isFn(fail) && fail(res);
  1057. }
  1058. isFn(complete) && complete(res);
  1059. }
  1060. var extraApi = /*#__PURE__*/Object.freeze({
  1061. __proto__: null,
  1062. getProvider: getProvider
  1063. });
  1064. var getEmitter = function () {
  1065. var Emitter;
  1066. return function getUniEmitter() {
  1067. if (!Emitter) {
  1068. Emitter = new _vue.default();
  1069. }
  1070. return Emitter;
  1071. };
  1072. }();
  1073. function apply(ctx, method, args) {
  1074. return ctx[method].apply(ctx, args);
  1075. }
  1076. function $on() {
  1077. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  1078. }
  1079. function $off() {
  1080. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  1081. }
  1082. function $once() {
  1083. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  1084. }
  1085. function $emit() {
  1086. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  1087. }
  1088. var eventApi = /*#__PURE__*/Object.freeze({
  1089. __proto__: null,
  1090. $on: $on,
  1091. $off: $off,
  1092. $once: $once,
  1093. $emit: $emit
  1094. });
  1095. /**
  1096. * 框架内 try-catch
  1097. */
  1098. /**
  1099. * 开发者 try-catch
  1100. */
  1101. function tryCatch(fn) {
  1102. return function () {
  1103. try {
  1104. return fn.apply(fn, arguments);
  1105. } catch (e) {
  1106. // TODO
  1107. console.error(e);
  1108. }
  1109. };
  1110. }
  1111. function getApiCallbacks(params) {
  1112. var apiCallbacks = {};
  1113. for (var name in params) {
  1114. var param = params[name];
  1115. if (isFn(param)) {
  1116. apiCallbacks[name] = tryCatch(param);
  1117. delete params[name];
  1118. }
  1119. }
  1120. return apiCallbacks;
  1121. }
  1122. var cid;
  1123. var cidErrMsg;
  1124. var enabled;
  1125. function normalizePushMessage(message) {
  1126. try {
  1127. return JSON.parse(message);
  1128. } catch (e) {}
  1129. return message;
  1130. }
  1131. function invokePushCallback(args) {
  1132. if (args.type === 'enabled') {
  1133. enabled = true;
  1134. } else if (args.type === 'clientId') {
  1135. cid = args.cid;
  1136. cidErrMsg = args.errMsg;
  1137. invokeGetPushCidCallbacks(cid, args.errMsg);
  1138. } else if (args.type === 'pushMsg') {
  1139. var message = {
  1140. type: 'receive',
  1141. data: normalizePushMessage(args.message)
  1142. };
  1143. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  1144. var callback = onPushMessageCallbacks[i];
  1145. callback(message);
  1146. // 该消息已被阻止
  1147. if (message.stopped) {
  1148. break;
  1149. }
  1150. }
  1151. } else if (args.type === 'click') {
  1152. onPushMessageCallbacks.forEach(function (callback) {
  1153. callback({
  1154. type: 'click',
  1155. data: normalizePushMessage(args.message)
  1156. });
  1157. });
  1158. }
  1159. }
  1160. var getPushCidCallbacks = [];
  1161. function invokeGetPushCidCallbacks(cid, errMsg) {
  1162. getPushCidCallbacks.forEach(function (callback) {
  1163. callback(cid, errMsg);
  1164. });
  1165. getPushCidCallbacks.length = 0;
  1166. }
  1167. function getPushClientId(args) {
  1168. if (!isPlainObject(args)) {
  1169. args = {};
  1170. }
  1171. var _getApiCallbacks = getApiCallbacks(args),
  1172. success = _getApiCallbacks.success,
  1173. fail = _getApiCallbacks.fail,
  1174. complete = _getApiCallbacks.complete;
  1175. var hasSuccess = isFn(success);
  1176. var hasFail = isFn(fail);
  1177. var hasComplete = isFn(complete);
  1178. Promise.resolve().then(function () {
  1179. if (typeof enabled === 'undefined') {
  1180. enabled = false;
  1181. cid = '';
  1182. cidErrMsg = 'uniPush is not enabled';
  1183. }
  1184. getPushCidCallbacks.push(function (cid, errMsg) {
  1185. var res;
  1186. if (cid) {
  1187. res = {
  1188. errMsg: 'getPushClientId:ok',
  1189. cid: cid
  1190. };
  1191. hasSuccess && success(res);
  1192. } else {
  1193. res = {
  1194. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
  1195. };
  1196. hasFail && fail(res);
  1197. }
  1198. hasComplete && complete(res);
  1199. });
  1200. if (typeof cid !== 'undefined') {
  1201. invokeGetPushCidCallbacks(cid, cidErrMsg);
  1202. }
  1203. });
  1204. }
  1205. var onPushMessageCallbacks = [];
  1206. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  1207. var onPushMessage = function onPushMessage(fn) {
  1208. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  1209. onPushMessageCallbacks.push(fn);
  1210. }
  1211. };
  1212. var offPushMessage = function offPushMessage(fn) {
  1213. if (!fn) {
  1214. onPushMessageCallbacks.length = 0;
  1215. } else {
  1216. var index = onPushMessageCallbacks.indexOf(fn);
  1217. if (index > -1) {
  1218. onPushMessageCallbacks.splice(index, 1);
  1219. }
  1220. }
  1221. };
  1222. var baseInfo = wx.getAppBaseInfo && wx.getAppBaseInfo();
  1223. if (!baseInfo) {
  1224. baseInfo = wx.getSystemInfoSync();
  1225. }
  1226. var host = baseInfo ? baseInfo.host : null;
  1227. var shareVideoMessage = host && host.env === 'SAAASDK' ? wx.miniapp.shareVideoMessage : wx.shareVideoMessage;
  1228. var api = /*#__PURE__*/Object.freeze({
  1229. __proto__: null,
  1230. shareVideoMessage: shareVideoMessage,
  1231. getPushClientId: getPushClientId,
  1232. onPushMessage: onPushMessage,
  1233. offPushMessage: offPushMessage,
  1234. invokePushCallback: invokePushCallback
  1235. });
  1236. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1237. function findVmByVueId(vm, vuePid) {
  1238. var $children = vm.$children;
  1239. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1240. for (var i = $children.length - 1; i >= 0; i--) {
  1241. var childVm = $children[i];
  1242. if (childVm.$scope._$vueId === vuePid) {
  1243. return childVm;
  1244. }
  1245. }
  1246. // 反向递归查找
  1247. var parentVm;
  1248. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1249. parentVm = findVmByVueId($children[_i], vuePid);
  1250. if (parentVm) {
  1251. return parentVm;
  1252. }
  1253. }
  1254. }
  1255. function initBehavior(options) {
  1256. return Behavior(options);
  1257. }
  1258. function isPage() {
  1259. return !!this.route;
  1260. }
  1261. function initRelation(detail) {
  1262. this.triggerEvent('__l', detail);
  1263. }
  1264. function selectAllComponents(mpInstance, selector, $refs) {
  1265. var components = mpInstance.selectAllComponents(selector) || [];
  1266. components.forEach(function (component) {
  1267. var ref = component.dataset.ref;
  1268. $refs[ref] = component.$vm || toSkip(component);
  1269. {
  1270. if (component.dataset.vueGeneric === 'scoped') {
  1271. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1272. selectAllComponents(scopedComponent, selector, $refs);
  1273. });
  1274. }
  1275. }
  1276. });
  1277. }
  1278. function syncRefs(refs, newRefs) {
  1279. var oldKeys = (0, _construct2.default)(Set, (0, _toConsumableArray2.default)(Object.keys(refs)));
  1280. var newKeys = Object.keys(newRefs);
  1281. newKeys.forEach(function (key) {
  1282. var oldValue = refs[key];
  1283. var newValue = newRefs[key];
  1284. if (Array.isArray(oldValue) && Array.isArray(newValue) && oldValue.length === newValue.length && newValue.every(function (value) {
  1285. return oldValue.includes(value);
  1286. })) {
  1287. return;
  1288. }
  1289. refs[key] = newValue;
  1290. oldKeys.delete(key);
  1291. });
  1292. oldKeys.forEach(function (key) {
  1293. delete refs[key];
  1294. });
  1295. return refs;
  1296. }
  1297. function initRefs(vm) {
  1298. var mpInstance = vm.$scope;
  1299. var refs = {};
  1300. Object.defineProperty(vm, '$refs', {
  1301. get: function get() {
  1302. var $refs = {};
  1303. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1304. // TODO 暂不考虑 for 中的 scoped
  1305. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for') || [];
  1306. forComponents.forEach(function (component) {
  1307. var ref = component.dataset.ref;
  1308. if (!$refs[ref]) {
  1309. $refs[ref] = [];
  1310. }
  1311. $refs[ref].push(component.$vm || toSkip(component));
  1312. });
  1313. return syncRefs(refs, $refs);
  1314. }
  1315. });
  1316. }
  1317. function handleLink(event) {
  1318. var _ref3 = event.detail || event.value,
  1319. vuePid = _ref3.vuePid,
  1320. vueOptions = _ref3.vueOptions; // detail 是微信,value 是百度(dipatch)
  1321. var parentVm;
  1322. if (vuePid) {
  1323. parentVm = findVmByVueId(this.$vm, vuePid);
  1324. }
  1325. if (!parentVm) {
  1326. parentVm = this.$vm;
  1327. }
  1328. vueOptions.parent = parentVm;
  1329. }
  1330. function markMPComponent(component) {
  1331. // 在 Vue 中标记为小程序组件
  1332. var IS_MP = '__v_isMPComponent';
  1333. Object.defineProperty(component, IS_MP, {
  1334. configurable: true,
  1335. enumerable: false,
  1336. value: true
  1337. });
  1338. return component;
  1339. }
  1340. function toSkip(obj) {
  1341. var OB = '__ob__';
  1342. var SKIP = '__v_skip';
  1343. if (isObject(obj) && Object.isExtensible(obj)) {
  1344. // 避免被 @vue/composition-api 观测
  1345. Object.defineProperty(obj, OB, {
  1346. configurable: true,
  1347. enumerable: false,
  1348. value: (0, _defineProperty2.default)({}, SKIP, true)
  1349. });
  1350. }
  1351. return obj;
  1352. }
  1353. var MPPage = Page;
  1354. var MPComponent = Component;
  1355. var customizeRE = /:/g;
  1356. var customize = cached(function (str) {
  1357. return camelize(str.replace(customizeRE, '-'));
  1358. });
  1359. function initTriggerEvent(mpInstance) {
  1360. var oldTriggerEvent = mpInstance.triggerEvent;
  1361. var newTriggerEvent = function newTriggerEvent(event) {
  1362. for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
  1363. args[_key3 - 1] = arguments[_key3];
  1364. }
  1365. // 事件名统一转驼峰格式,仅处理:当前组件为 vue 组件、当前组件为 vue 组件子组件
  1366. if (this.$vm || this.dataset && this.dataset.comType) {
  1367. event = customize(event);
  1368. } else {
  1369. // 针对微信/QQ小程序单独补充驼峰格式事件,以兼容历史项目
  1370. var newEvent = customize(event);
  1371. if (newEvent !== event) {
  1372. oldTriggerEvent.apply(this, [newEvent].concat(args));
  1373. }
  1374. }
  1375. return oldTriggerEvent.apply(this, [event].concat(args));
  1376. };
  1377. try {
  1378. // 京东小程序 triggerEvent 为只读
  1379. mpInstance.triggerEvent = newTriggerEvent;
  1380. } catch (error) {
  1381. mpInstance._triggerEvent = newTriggerEvent;
  1382. }
  1383. }
  1384. function initHook(name, options, isComponent) {
  1385. var oldHook = options[name];
  1386. options[name] = function () {
  1387. markMPComponent(this);
  1388. initTriggerEvent(this);
  1389. if (oldHook) {
  1390. for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  1391. args[_key4] = arguments[_key4];
  1392. }
  1393. return oldHook.apply(this, args);
  1394. }
  1395. };
  1396. }
  1397. if (!MPPage.__$wrappered) {
  1398. MPPage.__$wrappered = true;
  1399. Page = function Page() {
  1400. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1401. initHook('onLoad', options);
  1402. return MPPage(options);
  1403. };
  1404. Page.after = MPPage.after;
  1405. Component = function Component() {
  1406. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1407. initHook('created', options);
  1408. return MPComponent(options);
  1409. };
  1410. }
  1411. var PAGE_EVENT_HOOKS = ['onPullDownRefresh', 'onReachBottom', 'onAddToFavorites', 'onShareTimeline', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
  1412. function initMocks(vm, mocks) {
  1413. var mpInstance = vm.$mp[vm.mpType];
  1414. mocks.forEach(function (mock) {
  1415. if (hasOwn(mpInstance, mock)) {
  1416. vm[mock] = mpInstance[mock];
  1417. }
  1418. });
  1419. }
  1420. function hasHook(hook, vueOptions) {
  1421. if (!vueOptions) {
  1422. return true;
  1423. }
  1424. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  1425. return true;
  1426. }
  1427. vueOptions = vueOptions.default || vueOptions;
  1428. if (isFn(vueOptions)) {
  1429. if (isFn(vueOptions.extendOptions[hook])) {
  1430. return true;
  1431. }
  1432. if (vueOptions.super && vueOptions.super.options && Array.isArray(vueOptions.super.options[hook])) {
  1433. return true;
  1434. }
  1435. return false;
  1436. }
  1437. if (isFn(vueOptions[hook]) || Array.isArray(vueOptions[hook])) {
  1438. return true;
  1439. }
  1440. var mixins = vueOptions.mixins;
  1441. if (Array.isArray(mixins)) {
  1442. return !!mixins.find(function (mixin) {
  1443. return hasHook(hook, mixin);
  1444. });
  1445. }
  1446. }
  1447. function initHooks(mpOptions, hooks, vueOptions) {
  1448. hooks.forEach(function (hook) {
  1449. if (hasHook(hook, vueOptions)) {
  1450. mpOptions[hook] = function (args) {
  1451. return this.$vm && this.$vm.__call_hook(hook, args);
  1452. };
  1453. }
  1454. });
  1455. }
  1456. function initUnknownHooks(mpOptions, vueOptions) {
  1457. var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1458. findHooks(vueOptions).forEach(function (hook) {
  1459. return initHook$1(mpOptions, hook, excludes);
  1460. });
  1461. }
  1462. function findHooks(vueOptions) {
  1463. var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  1464. if (vueOptions) {
  1465. Object.keys(vueOptions).forEach(function (name) {
  1466. if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
  1467. hooks.push(name);
  1468. }
  1469. });
  1470. }
  1471. return hooks;
  1472. }
  1473. function initHook$1(mpOptions, hook, excludes) {
  1474. if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
  1475. mpOptions[hook] = function (args) {
  1476. return this.$vm && this.$vm.__call_hook(hook, args);
  1477. };
  1478. }
  1479. }
  1480. function initVueComponent(Vue, vueOptions) {
  1481. vueOptions = vueOptions.default || vueOptions;
  1482. var VueComponent;
  1483. if (isFn(vueOptions)) {
  1484. VueComponent = vueOptions;
  1485. } else {
  1486. VueComponent = Vue.extend(vueOptions);
  1487. }
  1488. vueOptions = VueComponent.options;
  1489. return [VueComponent, vueOptions];
  1490. }
  1491. function initSlots(vm, vueSlots) {
  1492. if (Array.isArray(vueSlots) && vueSlots.length) {
  1493. var $slots = Object.create(null);
  1494. vueSlots.forEach(function (slotName) {
  1495. $slots[slotName] = true;
  1496. });
  1497. vm.$scopedSlots = vm.$slots = $slots;
  1498. }
  1499. }
  1500. function initVueIds(vueIds, mpInstance) {
  1501. vueIds = (vueIds || '').split(',');
  1502. var len = vueIds.length;
  1503. if (len === 1) {
  1504. mpInstance._$vueId = vueIds[0];
  1505. } else if (len === 2) {
  1506. mpInstance._$vueId = vueIds[0];
  1507. mpInstance._$vuePid = vueIds[1];
  1508. }
  1509. }
  1510. function initData(vueOptions, context) {
  1511. var data = vueOptions.data || {};
  1512. var methods = vueOptions.methods || {};
  1513. if (typeof data === 'function') {
  1514. try {
  1515. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  1516. } catch (e) {
  1517. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"自由天空","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  1518. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  1519. }
  1520. }
  1521. } else {
  1522. try {
  1523. // 对 data 格式化
  1524. data = JSON.parse(JSON.stringify(data));
  1525. } catch (e) {}
  1526. }
  1527. if (!isPlainObject(data)) {
  1528. data = {};
  1529. }
  1530. Object.keys(methods).forEach(function (methodName) {
  1531. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  1532. data[methodName] = methods[methodName];
  1533. }
  1534. });
  1535. return data;
  1536. }
  1537. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  1538. function createObserver(name) {
  1539. return function observer(newVal, oldVal) {
  1540. if (this.$vm) {
  1541. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  1542. }
  1543. };
  1544. }
  1545. function initBehaviors(vueOptions, initBehavior) {
  1546. var vueBehaviors = vueOptions.behaviors;
  1547. var vueExtends = vueOptions.extends;
  1548. var vueMixins = vueOptions.mixins;
  1549. var vueProps = vueOptions.props;
  1550. if (!vueProps) {
  1551. vueOptions.props = vueProps = [];
  1552. }
  1553. var behaviors = [];
  1554. if (Array.isArray(vueBehaviors)) {
  1555. vueBehaviors.forEach(function (behavior) {
  1556. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  1557. if (behavior === 'uni://form-field') {
  1558. if (Array.isArray(vueProps)) {
  1559. vueProps.push('name');
  1560. vueProps.push('value');
  1561. } else {
  1562. vueProps.name = {
  1563. type: String,
  1564. default: ''
  1565. };
  1566. vueProps.value = {
  1567. type: [String, Number, Boolean, Array, Object, Date],
  1568. default: ''
  1569. };
  1570. }
  1571. }
  1572. });
  1573. }
  1574. if (isPlainObject(vueExtends) && vueExtends.props) {
  1575. behaviors.push(initBehavior({
  1576. properties: initProperties(vueExtends.props, true)
  1577. }));
  1578. }
  1579. if (Array.isArray(vueMixins)) {
  1580. vueMixins.forEach(function (vueMixin) {
  1581. if (isPlainObject(vueMixin) && vueMixin.props) {
  1582. behaviors.push(initBehavior({
  1583. properties: initProperties(vueMixin.props, true)
  1584. }));
  1585. }
  1586. });
  1587. }
  1588. return behaviors;
  1589. }
  1590. function parsePropType(key, type, defaultValue, file) {
  1591. // [String]=>String
  1592. if (Array.isArray(type) && type.length === 1) {
  1593. return type[0];
  1594. }
  1595. return type;
  1596. }
  1597. function initProperties(props) {
  1598. var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  1599. var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  1600. var options = arguments.length > 3 ? arguments[3] : undefined;
  1601. var properties = {};
  1602. if (!isBehavior) {
  1603. properties.vueId = {
  1604. type: String,
  1605. value: ''
  1606. };
  1607. {
  1608. if (options.virtualHost) {
  1609. properties.virtualHostStyle = {
  1610. type: null,
  1611. value: ''
  1612. };
  1613. properties.virtualHostClass = {
  1614. type: null,
  1615. value: ''
  1616. };
  1617. }
  1618. }
  1619. // scopedSlotsCompiler auto
  1620. properties.scopedSlotsCompiler = {
  1621. type: String,
  1622. value: ''
  1623. };
  1624. properties.vueSlots = {
  1625. // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  1626. type: null,
  1627. value: [],
  1628. observer: function observer(newVal, oldVal) {
  1629. var $slots = Object.create(null);
  1630. newVal.forEach(function (slotName) {
  1631. $slots[slotName] = true;
  1632. });
  1633. this.setData({
  1634. $slots: $slots
  1635. });
  1636. }
  1637. };
  1638. }
  1639. if (Array.isArray(props)) {
  1640. // ['title']
  1641. props.forEach(function (key) {
  1642. properties[key] = {
  1643. type: null,
  1644. observer: createObserver(key)
  1645. };
  1646. });
  1647. } else if (isPlainObject(props)) {
  1648. // {title:{type:String,default:''},content:String}
  1649. Object.keys(props).forEach(function (key) {
  1650. var opts = props[key];
  1651. if (isPlainObject(opts)) {
  1652. // title:{type:String,default:''}
  1653. var value = opts.default;
  1654. if (isFn(value)) {
  1655. value = value();
  1656. }
  1657. opts.type = parsePropType(key, opts.type);
  1658. properties[key] = {
  1659. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  1660. value: value,
  1661. observer: createObserver(key)
  1662. };
  1663. } else {
  1664. // content:String
  1665. var type = parsePropType(key, opts);
  1666. properties[key] = {
  1667. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  1668. observer: createObserver(key)
  1669. };
  1670. }
  1671. });
  1672. }
  1673. return properties;
  1674. }
  1675. function wrapper$1(event) {
  1676. // TODO 又得兼容 mpvue 的 mp 对象
  1677. try {
  1678. event.mp = JSON.parse(JSON.stringify(event));
  1679. } catch (e) {}
  1680. event.stopPropagation = noop;
  1681. event.preventDefault = noop;
  1682. event.target = event.target || {};
  1683. if (!hasOwn(event, 'detail')) {
  1684. event.detail = {};
  1685. }
  1686. if (hasOwn(event, 'markerId')) {
  1687. event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
  1688. event.detail.markerId = event.markerId;
  1689. }
  1690. if (isPlainObject(event.detail)) {
  1691. event.target = Object.assign({}, event.target, event.detail);
  1692. }
  1693. return event;
  1694. }
  1695. function getExtraValue(vm, dataPathsArray) {
  1696. var context = vm;
  1697. dataPathsArray.forEach(function (dataPathArray) {
  1698. var dataPath = dataPathArray[0];
  1699. var value = dataPathArray[2];
  1700. if (dataPath || typeof value !== 'undefined') {
  1701. // ['','',index,'disable']
  1702. var propPath = dataPathArray[1];
  1703. var valuePath = dataPathArray[3];
  1704. var vFor;
  1705. if (Number.isInteger(dataPath)) {
  1706. vFor = dataPath;
  1707. } else if (!dataPath) {
  1708. vFor = context;
  1709. } else if (typeof dataPath === 'string' && dataPath) {
  1710. if (dataPath.indexOf('#s#') === 0) {
  1711. vFor = dataPath.substr(3);
  1712. } else {
  1713. vFor = vm.__get_value(dataPath, context);
  1714. }
  1715. }
  1716. if (Number.isInteger(vFor)) {
  1717. context = value;
  1718. } else if (!propPath) {
  1719. context = vFor[value];
  1720. } else {
  1721. if (Array.isArray(vFor)) {
  1722. context = vFor.find(function (vForItem) {
  1723. return vm.__get_value(propPath, vForItem) === value;
  1724. });
  1725. } else if (isPlainObject(vFor)) {
  1726. context = Object.keys(vFor).find(function (vForKey) {
  1727. return vm.__get_value(propPath, vFor[vForKey]) === value;
  1728. });
  1729. } else {
  1730. console.error('v-for 暂不支持循环数据:', vFor);
  1731. }
  1732. }
  1733. if (valuePath) {
  1734. context = vm.__get_value(valuePath, context);
  1735. }
  1736. }
  1737. });
  1738. return context;
  1739. }
  1740. function processEventExtra(vm, extra, event, __args__) {
  1741. var extraObj = {};
  1742. if (Array.isArray(extra) && extra.length) {
  1743. /**
  1744. *[
  1745. * ['data.items', 'data.id', item.data.id],
  1746. * ['metas', 'id', meta.id]
  1747. *],
  1748. *[
  1749. * ['data.items', 'data.id', item.data.id],
  1750. * ['metas', 'id', meta.id]
  1751. *],
  1752. *'test'
  1753. */
  1754. extra.forEach(function (dataPath, index) {
  1755. if (typeof dataPath === 'string') {
  1756. if (!dataPath) {
  1757. // model,prop.sync
  1758. extraObj['$' + index] = vm;
  1759. } else {
  1760. if (dataPath === '$event') {
  1761. // $event
  1762. extraObj['$' + index] = event;
  1763. } else if (dataPath === 'arguments') {
  1764. extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
  1765. } else if (dataPath.indexOf('$event.') === 0) {
  1766. // $event.target.value
  1767. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1768. } else {
  1769. extraObj['$' + index] = vm.__get_value(dataPath);
  1770. }
  1771. }
  1772. } else {
  1773. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1774. }
  1775. });
  1776. }
  1777. return extraObj;
  1778. }
  1779. function getObjByArray(arr) {
  1780. var obj = {};
  1781. for (var i = 1; i < arr.length; i++) {
  1782. var element = arr[i];
  1783. obj[element[0]] = element[1];
  1784. }
  1785. return obj;
  1786. }
  1787. function processEventArgs(vm, event) {
  1788. var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1789. var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  1790. var isCustom = arguments.length > 4 ? arguments[4] : undefined;
  1791. var methodName = arguments.length > 5 ? arguments[5] : undefined;
  1792. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  1793. // fixed 用户直接触发 mpInstance.triggerEvent
  1794. var __args__ = isPlainObject(event.detail) ? event.detail.__args__ || [event.detail] : [event.detail];
  1795. if (isCustom) {
  1796. // 自定义事件
  1797. isCustomMPEvent = event.currentTarget && event.currentTarget.dataset && event.currentTarget.dataset.comType === 'wx';
  1798. if (!args.length) {
  1799. // 无参数,直接传入 event 或 detail 数组
  1800. if (isCustomMPEvent) {
  1801. return [event];
  1802. }
  1803. return __args__;
  1804. }
  1805. }
  1806. var extraObj = processEventExtra(vm, extra, event, __args__);
  1807. var ret = [];
  1808. args.forEach(function (arg) {
  1809. if (arg === '$event') {
  1810. if (methodName === '__set_model' && !isCustom) {
  1811. // input v-model value
  1812. ret.push(event.target.value);
  1813. } else {
  1814. if (isCustom && !isCustomMPEvent) {
  1815. ret.push(__args__[0]);
  1816. } else {
  1817. // wxcomponent 组件或内置组件
  1818. ret.push(event);
  1819. }
  1820. }
  1821. } else {
  1822. if (Array.isArray(arg) && arg[0] === 'o') {
  1823. ret.push(getObjByArray(arg));
  1824. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  1825. ret.push(extraObj[arg]);
  1826. } else {
  1827. ret.push(arg);
  1828. }
  1829. }
  1830. });
  1831. return ret;
  1832. }
  1833. var ONCE = '~';
  1834. var CUSTOM = '^';
  1835. function isMatchEventType(eventType, optType) {
  1836. return eventType === optType || optType === 'regionchange' && (eventType === 'begin' || eventType === 'end');
  1837. }
  1838. function getContextVm(vm) {
  1839. var $parent = vm.$parent;
  1840. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  1841. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  1842. $parent = $parent.$parent;
  1843. }
  1844. return $parent && $parent.$parent;
  1845. }
  1846. function handleEvent(event) {
  1847. var _this2 = this;
  1848. event = wrapper$1(event);
  1849. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  1850. var dataset = (event.currentTarget || event.target).dataset;
  1851. if (!dataset) {
  1852. return console.warn('事件信息不存在');
  1853. }
  1854. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  1855. if (!eventOpts) {
  1856. return console.warn('事件信息不存在');
  1857. }
  1858. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  1859. var eventType = event.type;
  1860. var ret = [];
  1861. eventOpts.forEach(function (eventOpt) {
  1862. var type = eventOpt[0];
  1863. var eventsArray = eventOpt[1];
  1864. var isCustom = type.charAt(0) === CUSTOM;
  1865. type = isCustom ? type.slice(1) : type;
  1866. var isOnce = type.charAt(0) === ONCE;
  1867. type = isOnce ? type.slice(1) : type;
  1868. if (eventsArray && isMatchEventType(eventType, type)) {
  1869. eventsArray.forEach(function (eventArray) {
  1870. var methodName = eventArray[0];
  1871. if (methodName) {
  1872. var handlerCtx = _this2.$vm;
  1873. if (handlerCtx.$options.generic) {
  1874. // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  1875. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  1876. }
  1877. if (methodName === '$emit') {
  1878. handlerCtx.$emit.apply(handlerCtx, processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName));
  1879. return;
  1880. }
  1881. var handler = handlerCtx[methodName];
  1882. if (!isFn(handler)) {
  1883. var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
  1884. var path = _this2.route || _this2.is;
  1885. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  1886. }
  1887. if (isOnce) {
  1888. if (handler.once) {
  1889. return;
  1890. }
  1891. handler.once = true;
  1892. }
  1893. var params = processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName);
  1894. params = Array.isArray(params) ? params : [];
  1895. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  1896. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  1897. // eslint-disable-next-line no-sparse-arrays
  1898. params = params.concat([,,,,,,,,,, event]);
  1899. }
  1900. ret.push(handler.apply(handlerCtx, params));
  1901. }
  1902. });
  1903. }
  1904. });
  1905. if (eventType === 'input' && ret.length === 1 && typeof ret[0] !== 'undefined') {
  1906. return ret[0];
  1907. }
  1908. }
  1909. var eventChannels = {};
  1910. var eventChannelStack = [];
  1911. function getEventChannel(id) {
  1912. if (id) {
  1913. var eventChannel = eventChannels[id];
  1914. delete eventChannels[id];
  1915. return eventChannel;
  1916. }
  1917. return eventChannelStack.shift();
  1918. }
  1919. var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
  1920. function initEventChannel() {
  1921. _vue.default.prototype.getOpenerEventChannel = function () {
  1922. // 微信小程序使用自身getOpenerEventChannel
  1923. {
  1924. return this.$scope.getOpenerEventChannel();
  1925. }
  1926. };
  1927. var callHook = _vue.default.prototype.__call_hook;
  1928. _vue.default.prototype.__call_hook = function (hook, args) {
  1929. if (hook === 'onLoad' && args && args.__id__) {
  1930. this.__eventChannel__ = getEventChannel(args.__id__);
  1931. delete args.__id__;
  1932. }
  1933. return callHook.call(this, hook, args);
  1934. };
  1935. }
  1936. function initScopedSlotsParams() {
  1937. var center = {};
  1938. var parents = {};
  1939. _vue.default.prototype.$hasScopedSlotsParams = function (vueId) {
  1940. var has = center[vueId];
  1941. if (!has) {
  1942. parents[vueId] = this;
  1943. this.$on('hook:destroyed', function () {
  1944. delete parents[vueId];
  1945. });
  1946. }
  1947. return has;
  1948. };
  1949. _vue.default.prototype.$getScopedSlotsParams = function (vueId, name, key) {
  1950. var data = center[vueId];
  1951. if (data) {
  1952. var object = data[name] || {};
  1953. return key ? object[key] : object;
  1954. } else {
  1955. parents[vueId] = this;
  1956. this.$on('hook:destroyed', function () {
  1957. delete parents[vueId];
  1958. });
  1959. }
  1960. };
  1961. _vue.default.prototype.$setScopedSlotsParams = function (name, value) {
  1962. var vueIds = this.$options.propsData.vueId;
  1963. if (vueIds) {
  1964. var vueId = vueIds.split(',')[0];
  1965. var object = center[vueId] = center[vueId] || {};
  1966. object[name] = value;
  1967. if (parents[vueId]) {
  1968. parents[vueId].$forceUpdate();
  1969. }
  1970. }
  1971. };
  1972. _vue.default.mixin({
  1973. destroyed: function destroyed() {
  1974. var propsData = this.$options.propsData;
  1975. var vueId = propsData && propsData.vueId;
  1976. if (vueId) {
  1977. delete center[vueId];
  1978. delete parents[vueId];
  1979. }
  1980. }
  1981. });
  1982. }
  1983. function parseBaseApp(vm, _ref4) {
  1984. var mocks = _ref4.mocks,
  1985. initRefs = _ref4.initRefs;
  1986. initEventChannel();
  1987. {
  1988. initScopedSlotsParams();
  1989. }
  1990. if (vm.$options.store) {
  1991. _vue.default.prototype.$store = vm.$options.store;
  1992. }
  1993. uniIdMixin(_vue.default);
  1994. _vue.default.prototype.mpHost = "mp-weixin";
  1995. _vue.default.mixin({
  1996. beforeCreate: function beforeCreate() {
  1997. if (!this.$options.mpType) {
  1998. return;
  1999. }
  2000. this.mpType = this.$options.mpType;
  2001. this.$mp = (0, _defineProperty2.default)({
  2002. data: {}
  2003. }, this.mpType, this.$options.mpInstance);
  2004. this.$scope = this.$options.mpInstance;
  2005. delete this.$options.mpType;
  2006. delete this.$options.mpInstance;
  2007. if (this.mpType === 'page' && typeof getApp === 'function') {
  2008. // hack vue-i18n
  2009. var app = getApp();
  2010. if (app.$vm && app.$vm.$i18n) {
  2011. this._i18n = app.$vm.$i18n;
  2012. }
  2013. }
  2014. if (this.mpType !== 'app') {
  2015. initRefs(this);
  2016. initMocks(this, mocks);
  2017. }
  2018. }
  2019. });
  2020. var appOptions = {
  2021. onLaunch: function onLaunch(args) {
  2022. if (this.$vm) {
  2023. // 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  2024. return;
  2025. }
  2026. {
  2027. if (wx.canIUse && !wx.canIUse('nextTick')) {
  2028. // 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  2029. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  2030. }
  2031. }
  2032. this.$vm = vm;
  2033. this.$vm.$mp = {
  2034. app: this
  2035. };
  2036. this.$vm.$scope = this;
  2037. // vm 上也挂载 globalData
  2038. this.$vm.globalData = this.globalData;
  2039. this.$vm._isMounted = true;
  2040. this.$vm.__call_hook('mounted', args);
  2041. this.$vm.__call_hook('onLaunch', args);
  2042. }
  2043. };
  2044. // 兼容旧版本 globalData
  2045. appOptions.globalData = vm.$options.globalData || {};
  2046. // 将 methods 中的方法挂在 getApp() 中
  2047. var methods = vm.$options.methods;
  2048. if (methods) {
  2049. Object.keys(methods).forEach(function (name) {
  2050. appOptions[name] = methods[name];
  2051. });
  2052. }
  2053. initAppLocale(_vue.default, vm, normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN);
  2054. initHooks(appOptions, hooks);
  2055. initUnknownHooks(appOptions, vm.$options);
  2056. return appOptions;
  2057. }
  2058. function parseApp(vm) {
  2059. return parseBaseApp(vm, {
  2060. mocks: mocks,
  2061. initRefs: initRefs
  2062. });
  2063. }
  2064. function createApp(vm) {
  2065. App(parseApp(vm));
  2066. return vm;
  2067. }
  2068. var encodeReserveRE = /[!'()*]/g;
  2069. var encodeReserveReplacer = function encodeReserveReplacer(c) {
  2070. return '%' + c.charCodeAt(0).toString(16);
  2071. };
  2072. var commaRE = /%2C/g;
  2073. // fixed encodeURIComponent which is more conformant to RFC3986:
  2074. // - escapes [!'()*]
  2075. // - preserve commas
  2076. var encode = function encode(str) {
  2077. return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
  2078. };
  2079. function stringifyQuery(obj) {
  2080. var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  2081. var res = obj ? Object.keys(obj).map(function (key) {
  2082. var val = obj[key];
  2083. if (val === undefined) {
  2084. return '';
  2085. }
  2086. if (val === null) {
  2087. return encodeStr(key);
  2088. }
  2089. if (Array.isArray(val)) {
  2090. var result = [];
  2091. val.forEach(function (val2) {
  2092. if (val2 === undefined) {
  2093. return;
  2094. }
  2095. if (val2 === null) {
  2096. result.push(encodeStr(key));
  2097. } else {
  2098. result.push(encodeStr(key) + '=' + encodeStr(val2));
  2099. }
  2100. });
  2101. return result.join('&');
  2102. }
  2103. return encodeStr(key) + '=' + encodeStr(val);
  2104. }).filter(function (x) {
  2105. return x.length > 0;
  2106. }).join('&') : null;
  2107. return res ? "?".concat(res) : '';
  2108. }
  2109. function parseBaseComponent(vueComponentOptions) {
  2110. var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  2111. isPage = _ref5.isPage,
  2112. initRelation = _ref5.initRelation;
  2113. var needVueOptions = arguments.length > 2 ? arguments[2] : undefined;
  2114. var _initVueComponent = initVueComponent(_vue.default, vueComponentOptions),
  2115. _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
  2116. VueComponent = _initVueComponent2[0],
  2117. vueOptions = _initVueComponent2[1];
  2118. var options = _objectSpread({
  2119. multipleSlots: true,
  2120. addGlobalClass: true
  2121. }, vueOptions.options || {});
  2122. {
  2123. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  2124. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  2125. Object.assign(options, vueOptions['mp-weixin'].options);
  2126. }
  2127. }
  2128. var componentOptions = {
  2129. options: options,
  2130. data: initData(vueOptions, _vue.default.prototype),
  2131. behaviors: initBehaviors(vueOptions, initBehavior),
  2132. properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
  2133. lifetimes: {
  2134. attached: function attached() {
  2135. var properties = this.properties;
  2136. var options = {
  2137. mpType: isPage.call(this) ? 'page' : 'component',
  2138. mpInstance: this,
  2139. propsData: properties
  2140. };
  2141. initVueIds(properties.vueId, this);
  2142. // 处理父子关系
  2143. initRelation.call(this, {
  2144. vuePid: this._$vuePid,
  2145. vueOptions: options
  2146. });
  2147. // 初始化 vue 实例
  2148. this.$vm = new VueComponent(options);
  2149. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  2150. initSlots(this.$vm, properties.vueSlots);
  2151. // 触发首次 setData
  2152. this.$vm.$mount();
  2153. },
  2154. ready: function ready() {
  2155. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  2156. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  2157. if (this.$vm) {
  2158. this.$vm._isMounted = true;
  2159. this.$vm.__call_hook('mounted');
  2160. this.$vm.__call_hook('onReady');
  2161. }
  2162. },
  2163. detached: function detached() {
  2164. this.$vm && this.$vm.$destroy();
  2165. }
  2166. },
  2167. pageLifetimes: {
  2168. show: function show(args) {
  2169. this.$vm && this.$vm.__call_hook('onPageShow', args);
  2170. },
  2171. hide: function hide() {
  2172. this.$vm && this.$vm.__call_hook('onPageHide');
  2173. },
  2174. resize: function resize(size) {
  2175. this.$vm && this.$vm.__call_hook('onPageResize', size);
  2176. }
  2177. },
  2178. methods: {
  2179. __l: handleLink,
  2180. __e: handleEvent
  2181. }
  2182. };
  2183. // externalClasses
  2184. if (vueOptions.externalClasses) {
  2185. componentOptions.externalClasses = vueOptions.externalClasses;
  2186. }
  2187. if (Array.isArray(vueOptions.wxsCallMethods)) {
  2188. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  2189. componentOptions.methods[callMethod] = function (args) {
  2190. return this.$vm[callMethod](args);
  2191. };
  2192. });
  2193. }
  2194. if (needVueOptions) {
  2195. return [componentOptions, vueOptions, VueComponent];
  2196. }
  2197. if (isPage) {
  2198. return componentOptions;
  2199. }
  2200. return [componentOptions, VueComponent];
  2201. }
  2202. function parseComponent(vueComponentOptions, needVueOptions) {
  2203. return parseBaseComponent(vueComponentOptions, {
  2204. isPage: isPage,
  2205. initRelation: initRelation
  2206. }, needVueOptions);
  2207. }
  2208. var hooks$1 = ['onShow', 'onHide', 'onUnload'];
  2209. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  2210. function parseBasePage(vuePageOptions) {
  2211. var _parseComponent = parseComponent(vuePageOptions, true),
  2212. _parseComponent2 = (0, _slicedToArray2.default)(_parseComponent, 2),
  2213. pageOptions = _parseComponent2[0],
  2214. vueOptions = _parseComponent2[1];
  2215. initHooks(pageOptions.methods, hooks$1, vueOptions);
  2216. pageOptions.methods.onLoad = function (query) {
  2217. this.options = query;
  2218. var copyQuery = Object.assign({}, query);
  2219. delete copyQuery.__id__;
  2220. this.$page = {
  2221. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery)
  2222. };
  2223. this.$vm.$mp.query = query; // 兼容 mpvue
  2224. this.$vm.__call_hook('onLoad', query);
  2225. };
  2226. {
  2227. initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  2228. }
  2229. return pageOptions;
  2230. }
  2231. function parsePage(vuePageOptions) {
  2232. return parseBasePage(vuePageOptions);
  2233. }
  2234. function createPage(vuePageOptions) {
  2235. {
  2236. return Component(parsePage(vuePageOptions));
  2237. }
  2238. }
  2239. function createComponent(vueOptions) {
  2240. {
  2241. return Component(parseComponent(vueOptions));
  2242. }
  2243. }
  2244. function createSubpackageApp(vm) {
  2245. var appOptions = parseApp(vm);
  2246. var app = getApp({
  2247. allowDefault: true
  2248. });
  2249. vm.$scope = app;
  2250. var globalData = app.globalData;
  2251. if (globalData) {
  2252. Object.keys(appOptions.globalData).forEach(function (name) {
  2253. if (!hasOwn(globalData, name)) {
  2254. globalData[name] = appOptions.globalData[name];
  2255. }
  2256. });
  2257. }
  2258. Object.keys(appOptions).forEach(function (name) {
  2259. if (!hasOwn(app, name)) {
  2260. app[name] = appOptions[name];
  2261. }
  2262. });
  2263. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2264. wx.onAppShow(function () {
  2265. for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
  2266. args[_key5] = arguments[_key5];
  2267. }
  2268. vm.__call_hook('onShow', args);
  2269. });
  2270. }
  2271. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2272. wx.onAppHide(function () {
  2273. for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
  2274. args[_key6] = arguments[_key6];
  2275. }
  2276. vm.__call_hook('onHide', args);
  2277. });
  2278. }
  2279. if (isFn(appOptions.onLaunch)) {
  2280. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2281. vm.__call_hook('onLaunch', args);
  2282. }
  2283. return vm;
  2284. }
  2285. function createPlugin(vm) {
  2286. var appOptions = parseApp(vm);
  2287. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2288. wx.onAppShow(function () {
  2289. for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
  2290. args[_key7] = arguments[_key7];
  2291. }
  2292. vm.__call_hook('onShow', args);
  2293. });
  2294. }
  2295. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2296. wx.onAppHide(function () {
  2297. for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
  2298. args[_key8] = arguments[_key8];
  2299. }
  2300. vm.__call_hook('onHide', args);
  2301. });
  2302. }
  2303. if (isFn(appOptions.onLaunch)) {
  2304. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2305. vm.__call_hook('onLaunch', args);
  2306. }
  2307. return vm;
  2308. }
  2309. todos.forEach(function (todoApi) {
  2310. protocols[todoApi] = false;
  2311. });
  2312. canIUses.forEach(function (canIUseApi) {
  2313. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
  2314. if (!wx.canIUse(apiName)) {
  2315. protocols[canIUseApi] = false;
  2316. }
  2317. });
  2318. var uni = {};
  2319. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  2320. uni = new Proxy({}, {
  2321. get: function get(target, name) {
  2322. if (hasOwn(target, name)) {
  2323. return target[name];
  2324. }
  2325. if (baseApi[name]) {
  2326. return baseApi[name];
  2327. }
  2328. if (api[name]) {
  2329. return promisify(name, api[name]);
  2330. }
  2331. {
  2332. if (extraApi[name]) {
  2333. return promisify(name, extraApi[name]);
  2334. }
  2335. if (todoApis[name]) {
  2336. return promisify(name, todoApis[name]);
  2337. }
  2338. }
  2339. if (eventApi[name]) {
  2340. return eventApi[name];
  2341. }
  2342. return promisify(name, wrapper(name, wx[name]));
  2343. },
  2344. set: function set(target, name, value) {
  2345. target[name] = value;
  2346. return true;
  2347. }
  2348. });
  2349. } else {
  2350. Object.keys(baseApi).forEach(function (name) {
  2351. uni[name] = baseApi[name];
  2352. });
  2353. {
  2354. Object.keys(todoApis).forEach(function (name) {
  2355. uni[name] = promisify(name, todoApis[name]);
  2356. });
  2357. Object.keys(extraApi).forEach(function (name) {
  2358. uni[name] = promisify(name, todoApis[name]);
  2359. });
  2360. }
  2361. Object.keys(eventApi).forEach(function (name) {
  2362. uni[name] = eventApi[name];
  2363. });
  2364. Object.keys(api).forEach(function (name) {
  2365. uni[name] = promisify(name, api[name]);
  2366. });
  2367. Object.keys(wx).forEach(function (name) {
  2368. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  2369. uni[name] = promisify(name, wrapper(name, wx[name]));
  2370. }
  2371. });
  2372. }
  2373. wx.createApp = createApp;
  2374. wx.createPage = createPage;
  2375. wx.createComponent = createComponent;
  2376. wx.createSubpackageApp = createSubpackageApp;
  2377. wx.createPlugin = createPlugin;
  2378. var uni$1 = uni;
  2379. var _default = uni$1;
  2380. exports.default = _default;
  2381. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 3)))
  2382. /***/ }),
  2383. /* 3 */
  2384. /*!***********************************!*\
  2385. !*** (webpack)/buildin/global.js ***!
  2386. \***********************************/
  2387. /*! no static exports found */
  2388. /***/ (function(module, exports) {
  2389. var g;
  2390. // This works in non-strict mode
  2391. g = (function() {
  2392. return this;
  2393. })();
  2394. try {
  2395. // This works if eval is allowed (see CSP)
  2396. g = g || new Function("return this")();
  2397. } catch (e) {
  2398. // This works if the window reference is available
  2399. if (typeof window === "object") g = window;
  2400. }
  2401. // g can still be undefined, but nothing to do about it...
  2402. // We return undefined, instead of nothing here, so it's
  2403. // easier to handle this case. if(!global) { ...}
  2404. module.exports = g;
  2405. /***/ }),
  2406. /* 4 */
  2407. /*!**********************************************************************!*\
  2408. !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  2409. \**********************************************************************/
  2410. /*! no static exports found */
  2411. /***/ (function(module, exports) {
  2412. function _interopRequireDefault(obj) {
  2413. return obj && obj.__esModule ? obj : {
  2414. "default": obj
  2415. };
  2416. }
  2417. module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2418. /***/ }),
  2419. /* 5 */
  2420. /*!**************************************************************!*\
  2421. !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  2422. \**************************************************************/
  2423. /*! no static exports found */
  2424. /***/ (function(module, exports, __webpack_require__) {
  2425. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  2426. var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 7);
  2427. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2428. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  2429. function _slicedToArray(arr, i) {
  2430. return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
  2431. }
  2432. module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2433. /***/ }),
  2434. /* 6 */
  2435. /*!***************************************************************!*\
  2436. !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  2437. \***************************************************************/
  2438. /*! no static exports found */
  2439. /***/ (function(module, exports) {
  2440. function _arrayWithHoles(arr) {
  2441. if (Array.isArray(arr)) return arr;
  2442. }
  2443. module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2444. /***/ }),
  2445. /* 7 */
  2446. /*!*********************************************************************!*\
  2447. !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  2448. \*********************************************************************/
  2449. /*! no static exports found */
  2450. /***/ (function(module, exports) {
  2451. function _iterableToArrayLimit(arr, i) {
  2452. var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
  2453. if (null != _i) {
  2454. var _s,
  2455. _e,
  2456. _x,
  2457. _r,
  2458. _arr = [],
  2459. _n = !0,
  2460. _d = !1;
  2461. try {
  2462. if (_x = (_i = _i.call(arr)).next, 0 === i) {
  2463. if (Object(_i) !== _i) return;
  2464. _n = !1;
  2465. } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
  2466. ;
  2467. }
  2468. } catch (err) {
  2469. _d = !0, _e = err;
  2470. } finally {
  2471. try {
  2472. if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
  2473. } finally {
  2474. if (_d) throw _e;
  2475. }
  2476. }
  2477. return _arr;
  2478. }
  2479. }
  2480. module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2481. /***/ }),
  2482. /* 8 */
  2483. /*!***************************************************************************!*\
  2484. !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  2485. \***************************************************************************/
  2486. /*! no static exports found */
  2487. /***/ (function(module, exports, __webpack_require__) {
  2488. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2489. function _unsupportedIterableToArray(o, minLen) {
  2490. if (!o) return;
  2491. if (typeof o === "string") return arrayLikeToArray(o, minLen);
  2492. var n = Object.prototype.toString.call(o).slice(8, -1);
  2493. if (n === "Object" && o.constructor) n = o.constructor.name;
  2494. if (n === "Map" || n === "Set") return Array.from(o);
  2495. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
  2496. }
  2497. module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2498. /***/ }),
  2499. /* 9 */
  2500. /*!*****************************************************************!*\
  2501. !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  2502. \*****************************************************************/
  2503. /*! no static exports found */
  2504. /***/ (function(module, exports) {
  2505. function _arrayLikeToArray(arr, len) {
  2506. if (len == null || len > arr.length) len = arr.length;
  2507. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  2508. arr2[i] = arr[i];
  2509. }
  2510. return arr2;
  2511. }
  2512. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2513. /***/ }),
  2514. /* 10 */
  2515. /*!****************************************************************!*\
  2516. !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
  2517. \****************************************************************/
  2518. /*! no static exports found */
  2519. /***/ (function(module, exports) {
  2520. function _nonIterableRest() {
  2521. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2522. }
  2523. module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2524. /***/ }),
  2525. /* 11 */
  2526. /*!***************************************************************!*\
  2527. !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  2528. \***************************************************************/
  2529. /*! no static exports found */
  2530. /***/ (function(module, exports, __webpack_require__) {
  2531. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  2532. function _defineProperty(obj, key, value) {
  2533. key = toPropertyKey(key);
  2534. if (key in obj) {
  2535. Object.defineProperty(obj, key, {
  2536. value: value,
  2537. enumerable: true,
  2538. configurable: true,
  2539. writable: true
  2540. });
  2541. } else {
  2542. obj[key] = value;
  2543. }
  2544. return obj;
  2545. }
  2546. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2547. /***/ }),
  2548. /* 12 */
  2549. /*!**************************************************************!*\
  2550. !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  2551. \**************************************************************/
  2552. /*! no static exports found */
  2553. /***/ (function(module, exports, __webpack_require__) {
  2554. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2555. var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
  2556. function _toPropertyKey(arg) {
  2557. var key = toPrimitive(arg, "string");
  2558. return _typeof(key) === "symbol" ? key : String(key);
  2559. }
  2560. module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2561. /***/ }),
  2562. /* 13 */
  2563. /*!*******************************************************!*\
  2564. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  2565. \*******************************************************/
  2566. /*! no static exports found */
  2567. /***/ (function(module, exports) {
  2568. function _typeof(obj) {
  2569. "@babel/helpers - typeof";
  2570. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
  2571. return typeof obj;
  2572. } : function (obj) {
  2573. return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  2574. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
  2575. }
  2576. module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2577. /***/ }),
  2578. /* 14 */
  2579. /*!************************************************************!*\
  2580. !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  2581. \************************************************************/
  2582. /*! no static exports found */
  2583. /***/ (function(module, exports, __webpack_require__) {
  2584. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2585. function _toPrimitive(input, hint) {
  2586. if (_typeof(input) !== "object" || input === null) return input;
  2587. var prim = input[Symbol.toPrimitive];
  2588. if (prim !== undefined) {
  2589. var res = prim.call(input, hint || "default");
  2590. if (_typeof(res) !== "object") return res;
  2591. throw new TypeError("@@toPrimitive must return a primitive value.");
  2592. }
  2593. return (hint === "string" ? String : Number)(input);
  2594. }
  2595. module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2596. /***/ }),
  2597. /* 15 */
  2598. /*!**********************************************************!*\
  2599. !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
  2600. \**********************************************************/
  2601. /*! no static exports found */
  2602. /***/ (function(module, exports, __webpack_require__) {
  2603. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  2604. var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 17);
  2605. function _construct(Parent, args, Class) {
  2606. if (isNativeReflectConstruct()) {
  2607. module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports;
  2608. } else {
  2609. module.exports = _construct = function _construct(Parent, args, Class) {
  2610. var a = [null];
  2611. a.push.apply(a, args);
  2612. var Constructor = Function.bind.apply(Parent, a);
  2613. var instance = new Constructor();
  2614. if (Class) setPrototypeOf(instance, Class.prototype);
  2615. return instance;
  2616. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2617. }
  2618. return _construct.apply(null, arguments);
  2619. }
  2620. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2621. /***/ }),
  2622. /* 16 */
  2623. /*!***************************************************************!*\
  2624. !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  2625. \***************************************************************/
  2626. /*! no static exports found */
  2627. /***/ (function(module, exports) {
  2628. function _setPrototypeOf(o, p) {
  2629. module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  2630. o.__proto__ = p;
  2631. return o;
  2632. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2633. return _setPrototypeOf(o, p);
  2634. }
  2635. module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2636. /***/ }),
  2637. /* 17 */
  2638. /*!*************************************************************************!*\
  2639. !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  2640. \*************************************************************************/
  2641. /*! no static exports found */
  2642. /***/ (function(module, exports) {
  2643. function _isNativeReflectConstruct() {
  2644. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  2645. if (Reflect.construct.sham) return false;
  2646. if (typeof Proxy === "function") return true;
  2647. try {
  2648. Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  2649. return true;
  2650. } catch (e) {
  2651. return false;
  2652. }
  2653. }
  2654. module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2655. /***/ }),
  2656. /* 18 */
  2657. /*!******************************************************************!*\
  2658. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  2659. \******************************************************************/
  2660. /*! no static exports found */
  2661. /***/ (function(module, exports, __webpack_require__) {
  2662. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 19);
  2663. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  2664. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2665. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 21);
  2666. function _toConsumableArray(arr) {
  2667. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  2668. }
  2669. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2670. /***/ }),
  2671. /* 19 */
  2672. /*!******************************************************************!*\
  2673. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  2674. \******************************************************************/
  2675. /*! no static exports found */
  2676. /***/ (function(module, exports, __webpack_require__) {
  2677. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2678. function _arrayWithoutHoles(arr) {
  2679. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  2680. }
  2681. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2682. /***/ }),
  2683. /* 20 */
  2684. /*!****************************************************************!*\
  2685. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  2686. \****************************************************************/
  2687. /*! no static exports found */
  2688. /***/ (function(module, exports) {
  2689. function _iterableToArray(iter) {
  2690. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  2691. }
  2692. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2693. /***/ }),
  2694. /* 21 */
  2695. /*!******************************************************************!*\
  2696. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  2697. \******************************************************************/
  2698. /*! no static exports found */
  2699. /***/ (function(module, exports) {
  2700. function _nonIterableSpread() {
  2701. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2702. }
  2703. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2704. /***/ }),
  2705. /* 22 */
  2706. /*!*************************************************************!*\
  2707. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  2708. \*************************************************************/
  2709. /*! no static exports found */
  2710. /***/ (function(module, exports, __webpack_require__) {
  2711. "use strict";
  2712. /* WEBPACK VAR INJECTION */(function(uni, global) {
  2713. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  2714. Object.defineProperty(exports, "__esModule", {
  2715. value: true
  2716. });
  2717. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  2718. exports.compileI18nJsonStr = compileI18nJsonStr;
  2719. exports.hasI18nJson = hasI18nJson;
  2720. exports.initVueI18n = initVueI18n;
  2721. exports.isI18nStr = isI18nStr;
  2722. exports.isString = void 0;
  2723. exports.normalizeLocale = normalizeLocale;
  2724. exports.parseI18nJson = parseI18nJson;
  2725. exports.resolveLocale = resolveLocale;
  2726. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  2727. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  2728. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  2729. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  2730. var isArray = Array.isArray;
  2731. var isObject = function isObject(val) {
  2732. return val !== null && (0, _typeof2.default)(val) === 'object';
  2733. };
  2734. var defaultDelimiters = ['{', '}'];
  2735. var BaseFormatter = /*#__PURE__*/function () {
  2736. function BaseFormatter() {
  2737. (0, _classCallCheck2.default)(this, BaseFormatter);
  2738. this._caches = Object.create(null);
  2739. }
  2740. (0, _createClass2.default)(BaseFormatter, [{
  2741. key: "interpolate",
  2742. value: function interpolate(message, values) {
  2743. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  2744. if (!values) {
  2745. return [message];
  2746. }
  2747. var tokens = this._caches[message];
  2748. if (!tokens) {
  2749. tokens = parse(message, delimiters);
  2750. this._caches[message] = tokens;
  2751. }
  2752. return compile(tokens, values);
  2753. }
  2754. }]);
  2755. return BaseFormatter;
  2756. }();
  2757. exports.Formatter = BaseFormatter;
  2758. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  2759. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  2760. function parse(format, _ref) {
  2761. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  2762. startDelimiter = _ref2[0],
  2763. endDelimiter = _ref2[1];
  2764. var tokens = [];
  2765. var position = 0;
  2766. var text = '';
  2767. while (position < format.length) {
  2768. var char = format[position++];
  2769. if (char === startDelimiter) {
  2770. if (text) {
  2771. tokens.push({
  2772. type: 'text',
  2773. value: text
  2774. });
  2775. }
  2776. text = '';
  2777. var sub = '';
  2778. char = format[position++];
  2779. while (char !== undefined && char !== endDelimiter) {
  2780. sub += char;
  2781. char = format[position++];
  2782. }
  2783. var isClosed = char === endDelimiter;
  2784. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  2785. tokens.push({
  2786. value: sub,
  2787. type: type
  2788. });
  2789. }
  2790. // else if (char === '%') {
  2791. // // when found rails i18n syntax, skip text capture
  2792. // if (format[position] !== '{') {
  2793. // text += char
  2794. // }
  2795. // }
  2796. else {
  2797. text += char;
  2798. }
  2799. }
  2800. text && tokens.push({
  2801. type: 'text',
  2802. value: text
  2803. });
  2804. return tokens;
  2805. }
  2806. function compile(tokens, values) {
  2807. var compiled = [];
  2808. var index = 0;
  2809. var mode = isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  2810. if (mode === 'unknown') {
  2811. return compiled;
  2812. }
  2813. while (index < tokens.length) {
  2814. var token = tokens[index];
  2815. switch (token.type) {
  2816. case 'text':
  2817. compiled.push(token.value);
  2818. break;
  2819. case 'list':
  2820. compiled.push(values[parseInt(token.value, 10)]);
  2821. break;
  2822. case 'named':
  2823. if (mode === 'named') {
  2824. compiled.push(values[token.value]);
  2825. } else {
  2826. if (true) {
  2827. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  2828. }
  2829. }
  2830. break;
  2831. case 'unknown':
  2832. if (true) {
  2833. console.warn("Detect 'unknown' type of token!");
  2834. }
  2835. break;
  2836. }
  2837. index++;
  2838. }
  2839. return compiled;
  2840. }
  2841. var LOCALE_ZH_HANS = 'zh-Hans';
  2842. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  2843. var LOCALE_ZH_HANT = 'zh-Hant';
  2844. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  2845. var LOCALE_EN = 'en';
  2846. exports.LOCALE_EN = LOCALE_EN;
  2847. var LOCALE_FR = 'fr';
  2848. exports.LOCALE_FR = LOCALE_FR;
  2849. var LOCALE_ES = 'es';
  2850. exports.LOCALE_ES = LOCALE_ES;
  2851. var hasOwnProperty = Object.prototype.hasOwnProperty;
  2852. var hasOwn = function hasOwn(val, key) {
  2853. return hasOwnProperty.call(val, key);
  2854. };
  2855. var defaultFormatter = new BaseFormatter();
  2856. function include(str, parts) {
  2857. return !!parts.find(function (part) {
  2858. return str.indexOf(part) !== -1;
  2859. });
  2860. }
  2861. function startsWith(str, parts) {
  2862. return parts.find(function (part) {
  2863. return str.indexOf(part) === 0;
  2864. });
  2865. }
  2866. function normalizeLocale(locale, messages) {
  2867. if (!locale) {
  2868. return;
  2869. }
  2870. locale = locale.trim().replace(/_/g, '-');
  2871. if (messages && messages[locale]) {
  2872. return locale;
  2873. }
  2874. locale = locale.toLowerCase();
  2875. if (locale.indexOf('zh') === 0) {
  2876. if (locale.indexOf('-hans') > -1) {
  2877. return LOCALE_ZH_HANS;
  2878. }
  2879. if (locale.indexOf('-hant') > -1) {
  2880. return LOCALE_ZH_HANT;
  2881. }
  2882. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  2883. return LOCALE_ZH_HANT;
  2884. }
  2885. return LOCALE_ZH_HANS;
  2886. }
  2887. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  2888. if (lang) {
  2889. return lang;
  2890. }
  2891. }
  2892. var I18n = /*#__PURE__*/function () {
  2893. function I18n(_ref3) {
  2894. var locale = _ref3.locale,
  2895. fallbackLocale = _ref3.fallbackLocale,
  2896. messages = _ref3.messages,
  2897. watcher = _ref3.watcher,
  2898. formater = _ref3.formater;
  2899. (0, _classCallCheck2.default)(this, I18n);
  2900. this.locale = LOCALE_EN;
  2901. this.fallbackLocale = LOCALE_EN;
  2902. this.message = {};
  2903. this.messages = {};
  2904. this.watchers = [];
  2905. if (fallbackLocale) {
  2906. this.fallbackLocale = fallbackLocale;
  2907. }
  2908. this.formater = formater || defaultFormatter;
  2909. this.messages = messages || {};
  2910. this.setLocale(locale || LOCALE_EN);
  2911. if (watcher) {
  2912. this.watchLocale(watcher);
  2913. }
  2914. }
  2915. (0, _createClass2.default)(I18n, [{
  2916. key: "setLocale",
  2917. value: function setLocale(locale) {
  2918. var _this = this;
  2919. var oldLocale = this.locale;
  2920. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  2921. if (!this.messages[this.locale]) {
  2922. // 可能初始化时不存在
  2923. this.messages[this.locale] = {};
  2924. }
  2925. this.message = this.messages[this.locale];
  2926. // 仅发生变化时,通知
  2927. if (oldLocale !== this.locale) {
  2928. this.watchers.forEach(function (watcher) {
  2929. watcher(_this.locale, oldLocale);
  2930. });
  2931. }
  2932. }
  2933. }, {
  2934. key: "getLocale",
  2935. value: function getLocale() {
  2936. return this.locale;
  2937. }
  2938. }, {
  2939. key: "watchLocale",
  2940. value: function watchLocale(fn) {
  2941. var _this2 = this;
  2942. var index = this.watchers.push(fn) - 1;
  2943. return function () {
  2944. _this2.watchers.splice(index, 1);
  2945. };
  2946. }
  2947. }, {
  2948. key: "add",
  2949. value: function add(locale, message) {
  2950. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  2951. var curMessages = this.messages[locale];
  2952. if (curMessages) {
  2953. if (override) {
  2954. Object.assign(curMessages, message);
  2955. } else {
  2956. Object.keys(message).forEach(function (key) {
  2957. if (!hasOwn(curMessages, key)) {
  2958. curMessages[key] = message[key];
  2959. }
  2960. });
  2961. }
  2962. } else {
  2963. this.messages[locale] = message;
  2964. }
  2965. }
  2966. }, {
  2967. key: "f",
  2968. value: function f(message, values, delimiters) {
  2969. return this.formater.interpolate(message, values, delimiters).join('');
  2970. }
  2971. }, {
  2972. key: "t",
  2973. value: function t(key, locale, values) {
  2974. var message = this.message;
  2975. if (typeof locale === 'string') {
  2976. locale = normalizeLocale(locale, this.messages);
  2977. locale && (message = this.messages[locale]);
  2978. } else {
  2979. values = locale;
  2980. }
  2981. if (!hasOwn(message, key)) {
  2982. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  2983. return key;
  2984. }
  2985. return this.formater.interpolate(message[key], values).join('');
  2986. }
  2987. }]);
  2988. return I18n;
  2989. }();
  2990. exports.I18n = I18n;
  2991. function watchAppLocale(appVm, i18n) {
  2992. // 需要保证 watch 的触发在组件渲染之前
  2993. if (appVm.$watchLocale) {
  2994. // vue2
  2995. appVm.$watchLocale(function (newLocale) {
  2996. i18n.setLocale(newLocale);
  2997. });
  2998. } else {
  2999. appVm.$watch(function () {
  3000. return appVm.$locale;
  3001. }, function (newLocale) {
  3002. i18n.setLocale(newLocale);
  3003. });
  3004. }
  3005. }
  3006. function getDefaultLocale() {
  3007. if (typeof uni !== 'undefined' && uni.getLocale) {
  3008. return uni.getLocale();
  3009. }
  3010. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  3011. if (typeof global !== 'undefined' && global.getLocale) {
  3012. return global.getLocale();
  3013. }
  3014. return LOCALE_EN;
  3015. }
  3016. function initVueI18n(locale) {
  3017. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3018. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  3019. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  3020. // 兼容旧版本入参
  3021. if (typeof locale !== 'string') {
  3022. var _ref4 = [messages, locale];
  3023. locale = _ref4[0];
  3024. messages = _ref4[1];
  3025. }
  3026. if (typeof locale !== 'string') {
  3027. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  3028. locale = getDefaultLocale();
  3029. }
  3030. if (typeof fallbackLocale !== 'string') {
  3031. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  3032. }
  3033. var i18n = new I18n({
  3034. locale: locale,
  3035. fallbackLocale: fallbackLocale,
  3036. messages: messages,
  3037. watcher: watcher
  3038. });
  3039. var _t = function t(key, values) {
  3040. if (typeof getApp !== 'function') {
  3041. // app view
  3042. /* eslint-disable no-func-assign */
  3043. _t = function t(key, values) {
  3044. return i18n.t(key, values);
  3045. };
  3046. } else {
  3047. var isWatchedAppLocale = false;
  3048. _t = function t(key, values) {
  3049. var appVm = getApp().$vm;
  3050. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  3051. // options: {
  3052. // type: Array,
  3053. // default () {
  3054. // return [{
  3055. // icon: 'shop',
  3056. // text: t("uni-goods-nav.options.shop"),
  3057. // }, {
  3058. // icon: 'cart',
  3059. // text: t("uni-goods-nav.options.cart")
  3060. // }]
  3061. // }
  3062. // },
  3063. if (appVm) {
  3064. // 触发响应式
  3065. appVm.$locale;
  3066. if (!isWatchedAppLocale) {
  3067. isWatchedAppLocale = true;
  3068. watchAppLocale(appVm, i18n);
  3069. }
  3070. }
  3071. return i18n.t(key, values);
  3072. };
  3073. }
  3074. return _t(key, values);
  3075. };
  3076. return {
  3077. i18n: i18n,
  3078. f: function f(message, values, delimiters) {
  3079. return i18n.f(message, values, delimiters);
  3080. },
  3081. t: function t(key, values) {
  3082. return _t(key, values);
  3083. },
  3084. add: function add(locale, message) {
  3085. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3086. return i18n.add(locale, message, override);
  3087. },
  3088. watch: function watch(fn) {
  3089. return i18n.watchLocale(fn);
  3090. },
  3091. getLocale: function getLocale() {
  3092. return i18n.getLocale();
  3093. },
  3094. setLocale: function setLocale(newLocale) {
  3095. return i18n.setLocale(newLocale);
  3096. }
  3097. };
  3098. }
  3099. var isString = function isString(val) {
  3100. return typeof val === 'string';
  3101. };
  3102. exports.isString = isString;
  3103. var formater;
  3104. function hasI18nJson(jsonObj, delimiters) {
  3105. if (!formater) {
  3106. formater = new BaseFormatter();
  3107. }
  3108. return walkJsonObj(jsonObj, function (jsonObj, key) {
  3109. var value = jsonObj[key];
  3110. if (isString(value)) {
  3111. if (isI18nStr(value, delimiters)) {
  3112. return true;
  3113. }
  3114. } else {
  3115. return hasI18nJson(value, delimiters);
  3116. }
  3117. });
  3118. }
  3119. function parseI18nJson(jsonObj, values, delimiters) {
  3120. if (!formater) {
  3121. formater = new BaseFormatter();
  3122. }
  3123. walkJsonObj(jsonObj, function (jsonObj, key) {
  3124. var value = jsonObj[key];
  3125. if (isString(value)) {
  3126. if (isI18nStr(value, delimiters)) {
  3127. jsonObj[key] = compileStr(value, values, delimiters);
  3128. }
  3129. } else {
  3130. parseI18nJson(value, values, delimiters);
  3131. }
  3132. });
  3133. return jsonObj;
  3134. }
  3135. function compileI18nJsonStr(jsonStr, _ref5) {
  3136. var locale = _ref5.locale,
  3137. locales = _ref5.locales,
  3138. delimiters = _ref5.delimiters;
  3139. if (!isI18nStr(jsonStr, delimiters)) {
  3140. return jsonStr;
  3141. }
  3142. if (!formater) {
  3143. formater = new BaseFormatter();
  3144. }
  3145. var localeValues = [];
  3146. Object.keys(locales).forEach(function (name) {
  3147. if (name !== locale) {
  3148. localeValues.push({
  3149. locale: name,
  3150. values: locales[name]
  3151. });
  3152. }
  3153. });
  3154. localeValues.unshift({
  3155. locale: locale,
  3156. values: locales[locale]
  3157. });
  3158. try {
  3159. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  3160. } catch (e) {}
  3161. return jsonStr;
  3162. }
  3163. function isI18nStr(value, delimiters) {
  3164. return value.indexOf(delimiters[0]) > -1;
  3165. }
  3166. function compileStr(value, values, delimiters) {
  3167. return formater.interpolate(value, values, delimiters).join('');
  3168. }
  3169. function compileValue(jsonObj, key, localeValues, delimiters) {
  3170. var value = jsonObj[key];
  3171. if (isString(value)) {
  3172. // 存在国际化
  3173. if (isI18nStr(value, delimiters)) {
  3174. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  3175. if (localeValues.length > 1) {
  3176. // 格式化国际化语言
  3177. var valueLocales = jsonObj[key + 'Locales'] = {};
  3178. localeValues.forEach(function (localValue) {
  3179. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  3180. });
  3181. }
  3182. }
  3183. } else {
  3184. compileJsonObj(value, localeValues, delimiters);
  3185. }
  3186. }
  3187. function compileJsonObj(jsonObj, localeValues, delimiters) {
  3188. walkJsonObj(jsonObj, function (jsonObj, key) {
  3189. compileValue(jsonObj, key, localeValues, delimiters);
  3190. });
  3191. return jsonObj;
  3192. }
  3193. function walkJsonObj(jsonObj, walk) {
  3194. if (isArray(jsonObj)) {
  3195. for (var i = 0; i < jsonObj.length; i++) {
  3196. if (walk(jsonObj, i)) {
  3197. return true;
  3198. }
  3199. }
  3200. } else if (isObject(jsonObj)) {
  3201. for (var key in jsonObj) {
  3202. if (walk(jsonObj, key)) {
  3203. return true;
  3204. }
  3205. }
  3206. }
  3207. return false;
  3208. }
  3209. function resolveLocale(locales) {
  3210. return function (locale) {
  3211. if (!locale) {
  3212. return locale;
  3213. }
  3214. locale = normalizeLocale(locale) || locale;
  3215. return resolveLocaleChain(locale).find(function (locale) {
  3216. return locales.indexOf(locale) > -1;
  3217. });
  3218. };
  3219. }
  3220. function resolveLocaleChain(locale) {
  3221. var chain = [];
  3222. var tokens = locale.split('-');
  3223. while (tokens.length) {
  3224. chain.push(tokens.join('-'));
  3225. tokens.pop();
  3226. }
  3227. return chain;
  3228. }
  3229. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 3)))
  3230. /***/ }),
  3231. /* 23 */
  3232. /*!***************************************************************!*\
  3233. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  3234. \***************************************************************/
  3235. /*! no static exports found */
  3236. /***/ (function(module, exports) {
  3237. function _classCallCheck(instance, Constructor) {
  3238. if (!(instance instanceof Constructor)) {
  3239. throw new TypeError("Cannot call a class as a function");
  3240. }
  3241. }
  3242. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3243. /***/ }),
  3244. /* 24 */
  3245. /*!************************************************************!*\
  3246. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  3247. \************************************************************/
  3248. /*! no static exports found */
  3249. /***/ (function(module, exports, __webpack_require__) {
  3250. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  3251. function _defineProperties(target, props) {
  3252. for (var i = 0; i < props.length; i++) {
  3253. var descriptor = props[i];
  3254. descriptor.enumerable = descriptor.enumerable || false;
  3255. descriptor.configurable = true;
  3256. if ("value" in descriptor) descriptor.writable = true;
  3257. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  3258. }
  3259. }
  3260. function _createClass(Constructor, protoProps, staticProps) {
  3261. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  3262. if (staticProps) _defineProperties(Constructor, staticProps);
  3263. Object.defineProperty(Constructor, "prototype", {
  3264. writable: false
  3265. });
  3266. return Constructor;
  3267. }
  3268. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3269. /***/ }),
  3270. /* 25 */
  3271. /*!******************************************************************************************!*\
  3272. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  3273. \******************************************************************************************/
  3274. /*! exports provided: default */
  3275. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3276. "use strict";
  3277. __webpack_require__.r(__webpack_exports__);
  3278. /* WEBPACK VAR INJECTION */(function(global) {/*!
  3279. * Vue.js v2.6.11
  3280. * (c) 2014-2022 Evan You
  3281. * Released under the MIT License.
  3282. */
  3283. /* */
  3284. var emptyObject = Object.freeze({});
  3285. // These helpers produce better VM code in JS engines due to their
  3286. // explicitness and function inlining.
  3287. function isUndef (v) {
  3288. return v === undefined || v === null
  3289. }
  3290. function isDef (v) {
  3291. return v !== undefined && v !== null
  3292. }
  3293. function isTrue (v) {
  3294. return v === true
  3295. }
  3296. function isFalse (v) {
  3297. return v === false
  3298. }
  3299. /**
  3300. * Check if value is primitive.
  3301. */
  3302. function isPrimitive (value) {
  3303. return (
  3304. typeof value === 'string' ||
  3305. typeof value === 'number' ||
  3306. // $flow-disable-line
  3307. typeof value === 'symbol' ||
  3308. typeof value === 'boolean'
  3309. )
  3310. }
  3311. /**
  3312. * Quick object check - this is primarily used to tell
  3313. * Objects from primitive values when we know the value
  3314. * is a JSON-compliant type.
  3315. */
  3316. function isObject (obj) {
  3317. return obj !== null && typeof obj === 'object'
  3318. }
  3319. /**
  3320. * Get the raw type string of a value, e.g., [object Object].
  3321. */
  3322. var _toString = Object.prototype.toString;
  3323. function toRawType (value) {
  3324. return _toString.call(value).slice(8, -1)
  3325. }
  3326. /**
  3327. * Strict object type check. Only returns true
  3328. * for plain JavaScript objects.
  3329. */
  3330. function isPlainObject (obj) {
  3331. return _toString.call(obj) === '[object Object]'
  3332. }
  3333. function isRegExp (v) {
  3334. return _toString.call(v) === '[object RegExp]'
  3335. }
  3336. /**
  3337. * Check if val is a valid array index.
  3338. */
  3339. function isValidArrayIndex (val) {
  3340. var n = parseFloat(String(val));
  3341. return n >= 0 && Math.floor(n) === n && isFinite(val)
  3342. }
  3343. function isPromise (val) {
  3344. return (
  3345. isDef(val) &&
  3346. typeof val.then === 'function' &&
  3347. typeof val.catch === 'function'
  3348. )
  3349. }
  3350. /**
  3351. * Convert a value to a string that is actually rendered.
  3352. */
  3353. function toString (val) {
  3354. return val == null
  3355. ? ''
  3356. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  3357. ? JSON.stringify(val, null, 2)
  3358. : String(val)
  3359. }
  3360. /**
  3361. * Convert an input value to a number for persistence.
  3362. * If the conversion fails, return original string.
  3363. */
  3364. function toNumber (val) {
  3365. var n = parseFloat(val);
  3366. return isNaN(n) ? val : n
  3367. }
  3368. /**
  3369. * Make a map and return a function for checking if a key
  3370. * is in that map.
  3371. */
  3372. function makeMap (
  3373. str,
  3374. expectsLowerCase
  3375. ) {
  3376. var map = Object.create(null);
  3377. var list = str.split(',');
  3378. for (var i = 0; i < list.length; i++) {
  3379. map[list[i]] = true;
  3380. }
  3381. return expectsLowerCase
  3382. ? function (val) { return map[val.toLowerCase()]; }
  3383. : function (val) { return map[val]; }
  3384. }
  3385. /**
  3386. * Check if a tag is a built-in tag.
  3387. */
  3388. var isBuiltInTag = makeMap('slot,component', true);
  3389. /**
  3390. * Check if an attribute is a reserved attribute.
  3391. */
  3392. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  3393. /**
  3394. * Remove an item from an array.
  3395. */
  3396. function remove (arr, item) {
  3397. if (arr.length) {
  3398. var index = arr.indexOf(item);
  3399. if (index > -1) {
  3400. return arr.splice(index, 1)
  3401. }
  3402. }
  3403. }
  3404. /**
  3405. * Check whether an object has the property.
  3406. */
  3407. var hasOwnProperty = Object.prototype.hasOwnProperty;
  3408. function hasOwn (obj, key) {
  3409. return hasOwnProperty.call(obj, key)
  3410. }
  3411. /**
  3412. * Create a cached version of a pure function.
  3413. */
  3414. function cached (fn) {
  3415. var cache = Object.create(null);
  3416. return (function cachedFn (str) {
  3417. var hit = cache[str];
  3418. return hit || (cache[str] = fn(str))
  3419. })
  3420. }
  3421. /**
  3422. * Camelize a hyphen-delimited string.
  3423. */
  3424. var camelizeRE = /-(\w)/g;
  3425. var camelize = cached(function (str) {
  3426. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  3427. });
  3428. /**
  3429. * Capitalize a string.
  3430. */
  3431. var capitalize = cached(function (str) {
  3432. return str.charAt(0).toUpperCase() + str.slice(1)
  3433. });
  3434. /**
  3435. * Hyphenate a camelCase string.
  3436. */
  3437. var hyphenateRE = /\B([A-Z])/g;
  3438. var hyphenate = cached(function (str) {
  3439. return str.replace(hyphenateRE, '-$1').toLowerCase()
  3440. });
  3441. /**
  3442. * Simple bind polyfill for environments that do not support it,
  3443. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  3444. * since native bind is now performant enough in most browsers.
  3445. * But removing it would mean breaking code that was able to run in
  3446. * PhantomJS 1.x, so this must be kept for backward compatibility.
  3447. */
  3448. /* istanbul ignore next */
  3449. function polyfillBind (fn, ctx) {
  3450. function boundFn (a) {
  3451. var l = arguments.length;
  3452. return l
  3453. ? l > 1
  3454. ? fn.apply(ctx, arguments)
  3455. : fn.call(ctx, a)
  3456. : fn.call(ctx)
  3457. }
  3458. boundFn._length = fn.length;
  3459. return boundFn
  3460. }
  3461. function nativeBind (fn, ctx) {
  3462. return fn.bind(ctx)
  3463. }
  3464. var bind = Function.prototype.bind
  3465. ? nativeBind
  3466. : polyfillBind;
  3467. /**
  3468. * Convert an Array-like object to a real Array.
  3469. */
  3470. function toArray (list, start) {
  3471. start = start || 0;
  3472. var i = list.length - start;
  3473. var ret = new Array(i);
  3474. while (i--) {
  3475. ret[i] = list[i + start];
  3476. }
  3477. return ret
  3478. }
  3479. /**
  3480. * Mix properties into target object.
  3481. */
  3482. function extend (to, _from) {
  3483. for (var key in _from) {
  3484. to[key] = _from[key];
  3485. }
  3486. return to
  3487. }
  3488. /**
  3489. * Merge an Array of Objects into a single Object.
  3490. */
  3491. function toObject (arr) {
  3492. var res = {};
  3493. for (var i = 0; i < arr.length; i++) {
  3494. if (arr[i]) {
  3495. extend(res, arr[i]);
  3496. }
  3497. }
  3498. return res
  3499. }
  3500. /* eslint-disable no-unused-vars */
  3501. /**
  3502. * Perform no operation.
  3503. * Stubbing args to make Flow happy without leaving useless transpiled code
  3504. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  3505. */
  3506. function noop (a, b, c) {}
  3507. /**
  3508. * Always return false.
  3509. */
  3510. var no = function (a, b, c) { return false; };
  3511. /* eslint-enable no-unused-vars */
  3512. /**
  3513. * Return the same value.
  3514. */
  3515. var identity = function (_) { return _; };
  3516. /**
  3517. * Check if two values are loosely equal - that is,
  3518. * if they are plain objects, do they have the same shape?
  3519. */
  3520. function looseEqual (a, b) {
  3521. if (a === b) { return true }
  3522. var isObjectA = isObject(a);
  3523. var isObjectB = isObject(b);
  3524. if (isObjectA && isObjectB) {
  3525. try {
  3526. var isArrayA = Array.isArray(a);
  3527. var isArrayB = Array.isArray(b);
  3528. if (isArrayA && isArrayB) {
  3529. return a.length === b.length && a.every(function (e, i) {
  3530. return looseEqual(e, b[i])
  3531. })
  3532. } else if (a instanceof Date && b instanceof Date) {
  3533. return a.getTime() === b.getTime()
  3534. } else if (!isArrayA && !isArrayB) {
  3535. var keysA = Object.keys(a);
  3536. var keysB = Object.keys(b);
  3537. return keysA.length === keysB.length && keysA.every(function (key) {
  3538. return looseEqual(a[key], b[key])
  3539. })
  3540. } else {
  3541. /* istanbul ignore next */
  3542. return false
  3543. }
  3544. } catch (e) {
  3545. /* istanbul ignore next */
  3546. return false
  3547. }
  3548. } else if (!isObjectA && !isObjectB) {
  3549. return String(a) === String(b)
  3550. } else {
  3551. return false
  3552. }
  3553. }
  3554. /**
  3555. * Return the first index at which a loosely equal value can be
  3556. * found in the array (if value is a plain object, the array must
  3557. * contain an object of the same shape), or -1 if it is not present.
  3558. */
  3559. function looseIndexOf (arr, val) {
  3560. for (var i = 0; i < arr.length; i++) {
  3561. if (looseEqual(arr[i], val)) { return i }
  3562. }
  3563. return -1
  3564. }
  3565. /**
  3566. * Ensure a function is called only once.
  3567. */
  3568. function once (fn) {
  3569. var called = false;
  3570. return function () {
  3571. if (!called) {
  3572. called = true;
  3573. fn.apply(this, arguments);
  3574. }
  3575. }
  3576. }
  3577. var ASSET_TYPES = [
  3578. 'component',
  3579. 'directive',
  3580. 'filter'
  3581. ];
  3582. var LIFECYCLE_HOOKS = [
  3583. 'beforeCreate',
  3584. 'created',
  3585. 'beforeMount',
  3586. 'mounted',
  3587. 'beforeUpdate',
  3588. 'updated',
  3589. 'beforeDestroy',
  3590. 'destroyed',
  3591. 'activated',
  3592. 'deactivated',
  3593. 'errorCaptured',
  3594. 'serverPrefetch'
  3595. ];
  3596. /* */
  3597. var config = ({
  3598. /**
  3599. * Option merge strategies (used in core/util/options)
  3600. */
  3601. // $flow-disable-line
  3602. optionMergeStrategies: Object.create(null),
  3603. /**
  3604. * Whether to suppress warnings.
  3605. */
  3606. silent: false,
  3607. /**
  3608. * Show production mode tip message on boot?
  3609. */
  3610. productionTip: "development" !== 'production',
  3611. /**
  3612. * Whether to enable devtools
  3613. */
  3614. devtools: "development" !== 'production',
  3615. /**
  3616. * Whether to record perf
  3617. */
  3618. performance: false,
  3619. /**
  3620. * Error handler for watcher errors
  3621. */
  3622. errorHandler: null,
  3623. /**
  3624. * Warn handler for watcher warns
  3625. */
  3626. warnHandler: null,
  3627. /**
  3628. * Ignore certain custom elements
  3629. */
  3630. ignoredElements: [],
  3631. /**
  3632. * Custom user key aliases for v-on
  3633. */
  3634. // $flow-disable-line
  3635. keyCodes: Object.create(null),
  3636. /**
  3637. * Check if a tag is reserved so that it cannot be registered as a
  3638. * component. This is platform-dependent and may be overwritten.
  3639. */
  3640. isReservedTag: no,
  3641. /**
  3642. * Check if an attribute is reserved so that it cannot be used as a component
  3643. * prop. This is platform-dependent and may be overwritten.
  3644. */
  3645. isReservedAttr: no,
  3646. /**
  3647. * Check if a tag is an unknown element.
  3648. * Platform-dependent.
  3649. */
  3650. isUnknownElement: no,
  3651. /**
  3652. * Get the namespace of an element
  3653. */
  3654. getTagNamespace: noop,
  3655. /**
  3656. * Parse the real tag name for the specific platform.
  3657. */
  3658. parsePlatformTagName: identity,
  3659. /**
  3660. * Check if an attribute must be bound using property, e.g. value
  3661. * Platform-dependent.
  3662. */
  3663. mustUseProp: no,
  3664. /**
  3665. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  3666. * This will significantly reduce performance if set to false.
  3667. */
  3668. async: true,
  3669. /**
  3670. * Exposed for legacy reasons
  3671. */
  3672. _lifecycleHooks: LIFECYCLE_HOOKS
  3673. });
  3674. /* */
  3675. /**
  3676. * unicode letters used for parsing html tags, component names and property paths.
  3677. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  3678. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  3679. */
  3680. var unicodeRegExp = /a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;
  3681. /**
  3682. * Check if a string starts with $ or _
  3683. */
  3684. function isReserved (str) {
  3685. var c = (str + '').charCodeAt(0);
  3686. return c === 0x24 || c === 0x5F
  3687. }
  3688. /**
  3689. * Define a property.
  3690. */
  3691. function def (obj, key, val, enumerable) {
  3692. Object.defineProperty(obj, key, {
  3693. value: val,
  3694. enumerable: !!enumerable,
  3695. writable: true,
  3696. configurable: true
  3697. });
  3698. }
  3699. /**
  3700. * Parse simple path.
  3701. */
  3702. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  3703. function parsePath (path) {
  3704. if (bailRE.test(path)) {
  3705. return
  3706. }
  3707. var segments = path.split('.');
  3708. return function (obj) {
  3709. for (var i = 0; i < segments.length; i++) {
  3710. if (!obj) { return }
  3711. obj = obj[segments[i]];
  3712. }
  3713. return obj
  3714. }
  3715. }
  3716. /* */
  3717. // can we use __proto__?
  3718. var hasProto = '__proto__' in {};
  3719. // Browser environment sniffing
  3720. var inBrowser = typeof window !== 'undefined';
  3721. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  3722. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  3723. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  3724. var isIE = UA && /msie|trident/.test(UA);
  3725. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  3726. var isEdge = UA && UA.indexOf('edge/') > 0;
  3727. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  3728. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  3729. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  3730. var isPhantomJS = UA && /phantomjs/.test(UA);
  3731. var isFF = UA && UA.match(/firefox\/(\d+)/);
  3732. // Firefox has a "watch" function on Object.prototype...
  3733. var nativeWatch = ({}).watch;
  3734. if (inBrowser) {
  3735. try {
  3736. var opts = {};
  3737. Object.defineProperty(opts, 'passive', ({
  3738. get: function get () {
  3739. }
  3740. })); // https://github.com/facebook/flow/issues/285
  3741. window.addEventListener('test-passive', null, opts);
  3742. } catch (e) {}
  3743. }
  3744. // this needs to be lazy-evaled because vue may be required before
  3745. // vue-server-renderer can set VUE_ENV
  3746. var _isServer;
  3747. var isServerRendering = function () {
  3748. if (_isServer === undefined) {
  3749. /* istanbul ignore if */
  3750. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  3751. // detect presence of vue-server-renderer and avoid
  3752. // Webpack shimming the process
  3753. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  3754. } else {
  3755. _isServer = false;
  3756. }
  3757. }
  3758. return _isServer
  3759. };
  3760. // detect devtools
  3761. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  3762. /* istanbul ignore next */
  3763. function isNative (Ctor) {
  3764. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  3765. }
  3766. var hasSymbol =
  3767. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  3768. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  3769. var _Set;
  3770. /* istanbul ignore if */ // $flow-disable-line
  3771. if (typeof Set !== 'undefined' && isNative(Set)) {
  3772. // use native Set when available.
  3773. _Set = Set;
  3774. } else {
  3775. // a non-standard Set polyfill that only works with primitive keys.
  3776. _Set = /*@__PURE__*/(function () {
  3777. function Set () {
  3778. this.set = Object.create(null);
  3779. }
  3780. Set.prototype.has = function has (key) {
  3781. return this.set[key] === true
  3782. };
  3783. Set.prototype.add = function add (key) {
  3784. this.set[key] = true;
  3785. };
  3786. Set.prototype.clear = function clear () {
  3787. this.set = Object.create(null);
  3788. };
  3789. return Set;
  3790. }());
  3791. }
  3792. /* */
  3793. var warn = noop;
  3794. var tip = noop;
  3795. var generateComponentTrace = (noop); // work around flow check
  3796. var formatComponentName = (noop);
  3797. if (true) {
  3798. var hasConsole = typeof console !== 'undefined';
  3799. var classifyRE = /(?:^|[-_])(\w)/g;
  3800. var classify = function (str) { return str
  3801. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  3802. .replace(/[-_]/g, ''); };
  3803. warn = function (msg, vm) {
  3804. var trace = vm ? generateComponentTrace(vm) : '';
  3805. if (config.warnHandler) {
  3806. config.warnHandler.call(null, msg, vm, trace);
  3807. } else if (hasConsole && (!config.silent)) {
  3808. console.error(("[Vue warn]: " + msg + trace));
  3809. }
  3810. };
  3811. tip = function (msg, vm) {
  3812. if (hasConsole && (!config.silent)) {
  3813. console.warn("[Vue tip]: " + msg + (
  3814. vm ? generateComponentTrace(vm) : ''
  3815. ));
  3816. }
  3817. };
  3818. formatComponentName = function (vm, includeFile) {
  3819. if (vm.$root === vm) {
  3820. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  3821. return ('') + vm.$options.__file
  3822. }
  3823. return '<Root>'
  3824. }
  3825. var options = typeof vm === 'function' && vm.cid != null
  3826. ? vm.options
  3827. : vm._isVue
  3828. ? vm.$options || vm.constructor.options
  3829. : vm;
  3830. var name = options.name || options._componentTag;
  3831. var file = options.__file;
  3832. if (!name && file) {
  3833. var match = file.match(/([^/\\]+)\.vue$/);
  3834. name = match && match[1];
  3835. }
  3836. return (
  3837. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  3838. (file && includeFile !== false ? (" at " + file) : '')
  3839. )
  3840. };
  3841. var repeat = function (str, n) {
  3842. var res = '';
  3843. while (n) {
  3844. if (n % 2 === 1) { res += str; }
  3845. if (n > 1) { str += str; }
  3846. n >>= 1;
  3847. }
  3848. return res
  3849. };
  3850. generateComponentTrace = function (vm) {
  3851. if (vm._isVue && vm.$parent) {
  3852. var tree = [];
  3853. var currentRecursiveSequence = 0;
  3854. while (vm && vm.$options.name !== 'PageBody') {
  3855. if (tree.length > 0) {
  3856. var last = tree[tree.length - 1];
  3857. if (last.constructor === vm.constructor) {
  3858. currentRecursiveSequence++;
  3859. vm = vm.$parent;
  3860. continue
  3861. } else if (currentRecursiveSequence > 0) {
  3862. tree[tree.length - 1] = [last, currentRecursiveSequence];
  3863. currentRecursiveSequence = 0;
  3864. }
  3865. }
  3866. !vm.$options.isReserved && tree.push(vm);
  3867. vm = vm.$parent;
  3868. }
  3869. return '\n\nfound in\n\n' + tree
  3870. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  3871. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  3872. : formatComponentName(vm))); })
  3873. .join('\n')
  3874. } else {
  3875. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  3876. }
  3877. };
  3878. }
  3879. /* */
  3880. var uid = 0;
  3881. /**
  3882. * A dep is an observable that can have multiple
  3883. * directives subscribing to it.
  3884. */
  3885. var Dep = function Dep () {
  3886. this.id = uid++;
  3887. this.subs = [];
  3888. };
  3889. Dep.prototype.addSub = function addSub (sub) {
  3890. this.subs.push(sub);
  3891. };
  3892. Dep.prototype.removeSub = function removeSub (sub) {
  3893. remove(this.subs, sub);
  3894. };
  3895. Dep.prototype.depend = function depend () {
  3896. if (Dep.SharedObject.target) {
  3897. Dep.SharedObject.target.addDep(this);
  3898. }
  3899. };
  3900. Dep.prototype.notify = function notify () {
  3901. // stabilize the subscriber list first
  3902. var subs = this.subs.slice();
  3903. if ( true && !config.async) {
  3904. // subs aren't sorted in scheduler if not running async
  3905. // we need to sort them now to make sure they fire in correct
  3906. // order
  3907. subs.sort(function (a, b) { return a.id - b.id; });
  3908. }
  3909. for (var i = 0, l = subs.length; i < l; i++) {
  3910. subs[i].update();
  3911. }
  3912. };
  3913. // The current target watcher being evaluated.
  3914. // This is globally unique because only one watcher
  3915. // can be evaluated at a time.
  3916. // fixed by xxxxxx (nvue shared vuex)
  3917. /* eslint-disable no-undef */
  3918. Dep.SharedObject = {};
  3919. Dep.SharedObject.target = null;
  3920. Dep.SharedObject.targetStack = [];
  3921. function pushTarget (target) {
  3922. Dep.SharedObject.targetStack.push(target);
  3923. Dep.SharedObject.target = target;
  3924. Dep.target = target;
  3925. }
  3926. function popTarget () {
  3927. Dep.SharedObject.targetStack.pop();
  3928. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  3929. Dep.target = Dep.SharedObject.target;
  3930. }
  3931. /* */
  3932. var VNode = function VNode (
  3933. tag,
  3934. data,
  3935. children,
  3936. text,
  3937. elm,
  3938. context,
  3939. componentOptions,
  3940. asyncFactory
  3941. ) {
  3942. this.tag = tag;
  3943. this.data = data;
  3944. this.children = children;
  3945. this.text = text;
  3946. this.elm = elm;
  3947. this.ns = undefined;
  3948. this.context = context;
  3949. this.fnContext = undefined;
  3950. this.fnOptions = undefined;
  3951. this.fnScopeId = undefined;
  3952. this.key = data && data.key;
  3953. this.componentOptions = componentOptions;
  3954. this.componentInstance = undefined;
  3955. this.parent = undefined;
  3956. this.raw = false;
  3957. this.isStatic = false;
  3958. this.isRootInsert = true;
  3959. this.isComment = false;
  3960. this.isCloned = false;
  3961. this.isOnce = false;
  3962. this.asyncFactory = asyncFactory;
  3963. this.asyncMeta = undefined;
  3964. this.isAsyncPlaceholder = false;
  3965. };
  3966. var prototypeAccessors = { child: { configurable: true } };
  3967. // DEPRECATED: alias for componentInstance for backwards compat.
  3968. /* istanbul ignore next */
  3969. prototypeAccessors.child.get = function () {
  3970. return this.componentInstance
  3971. };
  3972. Object.defineProperties( VNode.prototype, prototypeAccessors );
  3973. var createEmptyVNode = function (text) {
  3974. if ( text === void 0 ) text = '';
  3975. var node = new VNode();
  3976. node.text = text;
  3977. node.isComment = true;
  3978. return node
  3979. };
  3980. function createTextVNode (val) {
  3981. return new VNode(undefined, undefined, undefined, String(val))
  3982. }
  3983. // optimized shallow clone
  3984. // used for static nodes and slot nodes because they may be reused across
  3985. // multiple renders, cloning them avoids errors when DOM manipulations rely
  3986. // on their elm reference.
  3987. function cloneVNode (vnode) {
  3988. var cloned = new VNode(
  3989. vnode.tag,
  3990. vnode.data,
  3991. // #7975
  3992. // clone children array to avoid mutating original in case of cloning
  3993. // a child.
  3994. vnode.children && vnode.children.slice(),
  3995. vnode.text,
  3996. vnode.elm,
  3997. vnode.context,
  3998. vnode.componentOptions,
  3999. vnode.asyncFactory
  4000. );
  4001. cloned.ns = vnode.ns;
  4002. cloned.isStatic = vnode.isStatic;
  4003. cloned.key = vnode.key;
  4004. cloned.isComment = vnode.isComment;
  4005. cloned.fnContext = vnode.fnContext;
  4006. cloned.fnOptions = vnode.fnOptions;
  4007. cloned.fnScopeId = vnode.fnScopeId;
  4008. cloned.asyncMeta = vnode.asyncMeta;
  4009. cloned.isCloned = true;
  4010. return cloned
  4011. }
  4012. /*
  4013. * not type checking this file because flow doesn't play well with
  4014. * dynamically accessing methods on Array prototype
  4015. */
  4016. var arrayProto = Array.prototype;
  4017. var arrayMethods = Object.create(arrayProto);
  4018. var methodsToPatch = [
  4019. 'push',
  4020. 'pop',
  4021. 'shift',
  4022. 'unshift',
  4023. 'splice',
  4024. 'sort',
  4025. 'reverse'
  4026. ];
  4027. /**
  4028. * Intercept mutating methods and emit events
  4029. */
  4030. methodsToPatch.forEach(function (method) {
  4031. // cache original method
  4032. var original = arrayProto[method];
  4033. def(arrayMethods, method, function mutator () {
  4034. var args = [], len = arguments.length;
  4035. while ( len-- ) args[ len ] = arguments[ len ];
  4036. var result = original.apply(this, args);
  4037. var ob = this.__ob__;
  4038. var inserted;
  4039. switch (method) {
  4040. case 'push':
  4041. case 'unshift':
  4042. inserted = args;
  4043. break
  4044. case 'splice':
  4045. inserted = args.slice(2);
  4046. break
  4047. }
  4048. if (inserted) { ob.observeArray(inserted); }
  4049. // notify change
  4050. ob.dep.notify();
  4051. return result
  4052. });
  4053. });
  4054. /* */
  4055. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  4056. /**
  4057. * In some cases we may want to disable observation inside a component's
  4058. * update computation.
  4059. */
  4060. var shouldObserve = true;
  4061. function toggleObserving (value) {
  4062. shouldObserve = value;
  4063. }
  4064. /**
  4065. * Observer class that is attached to each observed
  4066. * object. Once attached, the observer converts the target
  4067. * object's property keys into getter/setters that
  4068. * collect dependencies and dispatch updates.
  4069. */
  4070. var Observer = function Observer (value) {
  4071. this.value = value;
  4072. this.dep = new Dep();
  4073. this.vmCount = 0;
  4074. def(value, '__ob__', this);
  4075. if (Array.isArray(value)) {
  4076. if (hasProto) {
  4077. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  4078. if(value.push !== value.__proto__.push){
  4079. copyAugment(value, arrayMethods, arrayKeys);
  4080. } else {
  4081. protoAugment(value, arrayMethods);
  4082. }
  4083. }
  4084. } else {
  4085. copyAugment(value, arrayMethods, arrayKeys);
  4086. }
  4087. this.observeArray(value);
  4088. } else {
  4089. this.walk(value);
  4090. }
  4091. };
  4092. /**
  4093. * Walk through all properties and convert them into
  4094. * getter/setters. This method should only be called when
  4095. * value type is Object.
  4096. */
  4097. Observer.prototype.walk = function walk (obj) {
  4098. var keys = Object.keys(obj);
  4099. for (var i = 0; i < keys.length; i++) {
  4100. defineReactive$$1(obj, keys[i]);
  4101. }
  4102. };
  4103. /**
  4104. * Observe a list of Array items.
  4105. */
  4106. Observer.prototype.observeArray = function observeArray (items) {
  4107. for (var i = 0, l = items.length; i < l; i++) {
  4108. observe(items[i]);
  4109. }
  4110. };
  4111. // helpers
  4112. /**
  4113. * Augment a target Object or Array by intercepting
  4114. * the prototype chain using __proto__
  4115. */
  4116. function protoAugment (target, src) {
  4117. /* eslint-disable no-proto */
  4118. target.__proto__ = src;
  4119. /* eslint-enable no-proto */
  4120. }
  4121. /**
  4122. * Augment a target Object or Array by defining
  4123. * hidden properties.
  4124. */
  4125. /* istanbul ignore next */
  4126. function copyAugment (target, src, keys) {
  4127. for (var i = 0, l = keys.length; i < l; i++) {
  4128. var key = keys[i];
  4129. def(target, key, src[key]);
  4130. }
  4131. }
  4132. /**
  4133. * Attempt to create an observer instance for a value,
  4134. * returns the new observer if successfully observed,
  4135. * or the existing observer if the value already has one.
  4136. */
  4137. function observe (value, asRootData) {
  4138. if (!isObject(value) || value instanceof VNode) {
  4139. return
  4140. }
  4141. var ob;
  4142. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  4143. ob = value.__ob__;
  4144. } else if (
  4145. shouldObserve &&
  4146. !isServerRendering() &&
  4147. (Array.isArray(value) || isPlainObject(value)) &&
  4148. Object.isExtensible(value) &&
  4149. !value._isVue &&
  4150. !value.__v_isMPComponent
  4151. ) {
  4152. ob = new Observer(value);
  4153. }
  4154. if (asRootData && ob) {
  4155. ob.vmCount++;
  4156. }
  4157. return ob
  4158. }
  4159. /**
  4160. * Define a reactive property on an Object.
  4161. */
  4162. function defineReactive$$1 (
  4163. obj,
  4164. key,
  4165. val,
  4166. customSetter,
  4167. shallow
  4168. ) {
  4169. var dep = new Dep();
  4170. var property = Object.getOwnPropertyDescriptor(obj, key);
  4171. if (property && property.configurable === false) {
  4172. return
  4173. }
  4174. // cater for pre-defined getter/setters
  4175. var getter = property && property.get;
  4176. var setter = property && property.set;
  4177. if ((!getter || setter) && arguments.length === 2) {
  4178. val = obj[key];
  4179. }
  4180. var childOb = !shallow && observe(val);
  4181. Object.defineProperty(obj, key, {
  4182. enumerable: true,
  4183. configurable: true,
  4184. get: function reactiveGetter () {
  4185. var value = getter ? getter.call(obj) : val;
  4186. if (Dep.SharedObject.target) { // fixed by xxxxxx
  4187. dep.depend();
  4188. if (childOb) {
  4189. childOb.dep.depend();
  4190. if (Array.isArray(value)) {
  4191. dependArray(value);
  4192. }
  4193. }
  4194. }
  4195. return value
  4196. },
  4197. set: function reactiveSetter (newVal) {
  4198. var value = getter ? getter.call(obj) : val;
  4199. /* eslint-disable no-self-compare */
  4200. if (newVal === value || (newVal !== newVal && value !== value)) {
  4201. return
  4202. }
  4203. /* eslint-enable no-self-compare */
  4204. if ( true && customSetter) {
  4205. customSetter();
  4206. }
  4207. // #7981: for accessor properties without setter
  4208. if (getter && !setter) { return }
  4209. if (setter) {
  4210. setter.call(obj, newVal);
  4211. } else {
  4212. val = newVal;
  4213. }
  4214. childOb = !shallow && observe(newVal);
  4215. dep.notify();
  4216. }
  4217. });
  4218. }
  4219. /**
  4220. * Set a property on an object. Adds the new property and
  4221. * triggers change notification if the property doesn't
  4222. * already exist.
  4223. */
  4224. function set (target, key, val) {
  4225. if ( true &&
  4226. (isUndef(target) || isPrimitive(target))
  4227. ) {
  4228. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  4229. }
  4230. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4231. target.length = Math.max(target.length, key);
  4232. target.splice(key, 1, val);
  4233. return val
  4234. }
  4235. if (key in target && !(key in Object.prototype)) {
  4236. target[key] = val;
  4237. return val
  4238. }
  4239. var ob = (target).__ob__;
  4240. if (target._isVue || (ob && ob.vmCount)) {
  4241. true && warn(
  4242. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  4243. 'at runtime - declare it upfront in the data option.'
  4244. );
  4245. return val
  4246. }
  4247. if (!ob) {
  4248. target[key] = val;
  4249. return val
  4250. }
  4251. defineReactive$$1(ob.value, key, val);
  4252. ob.dep.notify();
  4253. return val
  4254. }
  4255. /**
  4256. * Delete a property and trigger change if necessary.
  4257. */
  4258. function del (target, key) {
  4259. if ( true &&
  4260. (isUndef(target) || isPrimitive(target))
  4261. ) {
  4262. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  4263. }
  4264. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4265. target.splice(key, 1);
  4266. return
  4267. }
  4268. var ob = (target).__ob__;
  4269. if (target._isVue || (ob && ob.vmCount)) {
  4270. true && warn(
  4271. 'Avoid deleting properties on a Vue instance or its root $data ' +
  4272. '- just set it to null.'
  4273. );
  4274. return
  4275. }
  4276. if (!hasOwn(target, key)) {
  4277. return
  4278. }
  4279. delete target[key];
  4280. if (!ob) {
  4281. return
  4282. }
  4283. ob.dep.notify();
  4284. }
  4285. /**
  4286. * Collect dependencies on array elements when the array is touched, since
  4287. * we cannot intercept array element access like property getters.
  4288. */
  4289. function dependArray (value) {
  4290. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  4291. e = value[i];
  4292. e && e.__ob__ && e.__ob__.dep.depend();
  4293. if (Array.isArray(e)) {
  4294. dependArray(e);
  4295. }
  4296. }
  4297. }
  4298. /* */
  4299. /**
  4300. * Option overwriting strategies are functions that handle
  4301. * how to merge a parent option value and a child option
  4302. * value into the final value.
  4303. */
  4304. var strats = config.optionMergeStrategies;
  4305. /**
  4306. * Options with restrictions
  4307. */
  4308. if (true) {
  4309. strats.el = strats.propsData = function (parent, child, vm, key) {
  4310. if (!vm) {
  4311. warn(
  4312. "option \"" + key + "\" can only be used during instance " +
  4313. 'creation with the `new` keyword.'
  4314. );
  4315. }
  4316. return defaultStrat(parent, child)
  4317. };
  4318. }
  4319. /**
  4320. * Helper that recursively merges two data objects together.
  4321. */
  4322. function mergeData (to, from) {
  4323. if (!from) { return to }
  4324. var key, toVal, fromVal;
  4325. var keys = hasSymbol
  4326. ? Reflect.ownKeys(from)
  4327. : Object.keys(from);
  4328. for (var i = 0; i < keys.length; i++) {
  4329. key = keys[i];
  4330. // in case the object is already observed...
  4331. if (key === '__ob__') { continue }
  4332. toVal = to[key];
  4333. fromVal = from[key];
  4334. if (!hasOwn(to, key)) {
  4335. set(to, key, fromVal);
  4336. } else if (
  4337. toVal !== fromVal &&
  4338. isPlainObject(toVal) &&
  4339. isPlainObject(fromVal)
  4340. ) {
  4341. mergeData(toVal, fromVal);
  4342. }
  4343. }
  4344. return to
  4345. }
  4346. /**
  4347. * Data
  4348. */
  4349. function mergeDataOrFn (
  4350. parentVal,
  4351. childVal,
  4352. vm
  4353. ) {
  4354. if (!vm) {
  4355. // in a Vue.extend merge, both should be functions
  4356. if (!childVal) {
  4357. return parentVal
  4358. }
  4359. if (!parentVal) {
  4360. return childVal
  4361. }
  4362. // when parentVal & childVal are both present,
  4363. // we need to return a function that returns the
  4364. // merged result of both functions... no need to
  4365. // check if parentVal is a function here because
  4366. // it has to be a function to pass previous merges.
  4367. return function mergedDataFn () {
  4368. return mergeData(
  4369. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  4370. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  4371. )
  4372. }
  4373. } else {
  4374. return function mergedInstanceDataFn () {
  4375. // instance merge
  4376. var instanceData = typeof childVal === 'function'
  4377. ? childVal.call(vm, vm)
  4378. : childVal;
  4379. var defaultData = typeof parentVal === 'function'
  4380. ? parentVal.call(vm, vm)
  4381. : parentVal;
  4382. if (instanceData) {
  4383. return mergeData(instanceData, defaultData)
  4384. } else {
  4385. return defaultData
  4386. }
  4387. }
  4388. }
  4389. }
  4390. strats.data = function (
  4391. parentVal,
  4392. childVal,
  4393. vm
  4394. ) {
  4395. if (!vm) {
  4396. if (childVal && typeof childVal !== 'function') {
  4397. true && warn(
  4398. 'The "data" option should be a function ' +
  4399. 'that returns a per-instance value in component ' +
  4400. 'definitions.',
  4401. vm
  4402. );
  4403. return parentVal
  4404. }
  4405. return mergeDataOrFn(parentVal, childVal)
  4406. }
  4407. return mergeDataOrFn(parentVal, childVal, vm)
  4408. };
  4409. /**
  4410. * Hooks and props are merged as arrays.
  4411. */
  4412. function mergeHook (
  4413. parentVal,
  4414. childVal
  4415. ) {
  4416. var res = childVal
  4417. ? parentVal
  4418. ? parentVal.concat(childVal)
  4419. : Array.isArray(childVal)
  4420. ? childVal
  4421. : [childVal]
  4422. : parentVal;
  4423. return res
  4424. ? dedupeHooks(res)
  4425. : res
  4426. }
  4427. function dedupeHooks (hooks) {
  4428. var res = [];
  4429. for (var i = 0; i < hooks.length; i++) {
  4430. if (res.indexOf(hooks[i]) === -1) {
  4431. res.push(hooks[i]);
  4432. }
  4433. }
  4434. return res
  4435. }
  4436. LIFECYCLE_HOOKS.forEach(function (hook) {
  4437. strats[hook] = mergeHook;
  4438. });
  4439. /**
  4440. * Assets
  4441. *
  4442. * When a vm is present (instance creation), we need to do
  4443. * a three-way merge between constructor options, instance
  4444. * options and parent options.
  4445. */
  4446. function mergeAssets (
  4447. parentVal,
  4448. childVal,
  4449. vm,
  4450. key
  4451. ) {
  4452. var res = Object.create(parentVal || null);
  4453. if (childVal) {
  4454. true && assertObjectType(key, childVal, vm);
  4455. return extend(res, childVal)
  4456. } else {
  4457. return res
  4458. }
  4459. }
  4460. ASSET_TYPES.forEach(function (type) {
  4461. strats[type + 's'] = mergeAssets;
  4462. });
  4463. /**
  4464. * Watchers.
  4465. *
  4466. * Watchers hashes should not overwrite one
  4467. * another, so we merge them as arrays.
  4468. */
  4469. strats.watch = function (
  4470. parentVal,
  4471. childVal,
  4472. vm,
  4473. key
  4474. ) {
  4475. // work around Firefox's Object.prototype.watch...
  4476. if (parentVal === nativeWatch) { parentVal = undefined; }
  4477. if (childVal === nativeWatch) { childVal = undefined; }
  4478. /* istanbul ignore if */
  4479. if (!childVal) { return Object.create(parentVal || null) }
  4480. if (true) {
  4481. assertObjectType(key, childVal, vm);
  4482. }
  4483. if (!parentVal) { return childVal }
  4484. var ret = {};
  4485. extend(ret, parentVal);
  4486. for (var key$1 in childVal) {
  4487. var parent = ret[key$1];
  4488. var child = childVal[key$1];
  4489. if (parent && !Array.isArray(parent)) {
  4490. parent = [parent];
  4491. }
  4492. ret[key$1] = parent
  4493. ? parent.concat(child)
  4494. : Array.isArray(child) ? child : [child];
  4495. }
  4496. return ret
  4497. };
  4498. /**
  4499. * Other object hashes.
  4500. */
  4501. strats.props =
  4502. strats.methods =
  4503. strats.inject =
  4504. strats.computed = function (
  4505. parentVal,
  4506. childVal,
  4507. vm,
  4508. key
  4509. ) {
  4510. if (childVal && "development" !== 'production') {
  4511. assertObjectType(key, childVal, vm);
  4512. }
  4513. if (!parentVal) { return childVal }
  4514. var ret = Object.create(null);
  4515. extend(ret, parentVal);
  4516. if (childVal) { extend(ret, childVal); }
  4517. return ret
  4518. };
  4519. strats.provide = mergeDataOrFn;
  4520. /**
  4521. * Default strategy.
  4522. */
  4523. var defaultStrat = function (parentVal, childVal) {
  4524. return childVal === undefined
  4525. ? parentVal
  4526. : childVal
  4527. };
  4528. /**
  4529. * Validate component names
  4530. */
  4531. function checkComponents (options) {
  4532. for (var key in options.components) {
  4533. validateComponentName(key);
  4534. }
  4535. }
  4536. function validateComponentName (name) {
  4537. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  4538. warn(
  4539. 'Invalid component name: "' + name + '". Component names ' +
  4540. 'should conform to valid custom element name in html5 specification.'
  4541. );
  4542. }
  4543. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  4544. warn(
  4545. 'Do not use built-in or reserved HTML elements as component ' +
  4546. 'id: ' + name
  4547. );
  4548. }
  4549. }
  4550. /**
  4551. * Ensure all props option syntax are normalized into the
  4552. * Object-based format.
  4553. */
  4554. function normalizeProps (options, vm) {
  4555. var props = options.props;
  4556. if (!props) { return }
  4557. var res = {};
  4558. var i, val, name;
  4559. if (Array.isArray(props)) {
  4560. i = props.length;
  4561. while (i--) {
  4562. val = props[i];
  4563. if (typeof val === 'string') {
  4564. name = camelize(val);
  4565. res[name] = { type: null };
  4566. } else if (true) {
  4567. warn('props must be strings when using array syntax.');
  4568. }
  4569. }
  4570. } else if (isPlainObject(props)) {
  4571. for (var key in props) {
  4572. val = props[key];
  4573. name = camelize(key);
  4574. res[name] = isPlainObject(val)
  4575. ? val
  4576. : { type: val };
  4577. }
  4578. } else if (true) {
  4579. warn(
  4580. "Invalid value for option \"props\": expected an Array or an Object, " +
  4581. "but got " + (toRawType(props)) + ".",
  4582. vm
  4583. );
  4584. }
  4585. options.props = res;
  4586. }
  4587. /**
  4588. * Normalize all injections into Object-based format
  4589. */
  4590. function normalizeInject (options, vm) {
  4591. var inject = options.inject;
  4592. if (!inject) { return }
  4593. var normalized = options.inject = {};
  4594. if (Array.isArray(inject)) {
  4595. for (var i = 0; i < inject.length; i++) {
  4596. normalized[inject[i]] = { from: inject[i] };
  4597. }
  4598. } else if (isPlainObject(inject)) {
  4599. for (var key in inject) {
  4600. var val = inject[key];
  4601. normalized[key] = isPlainObject(val)
  4602. ? extend({ from: key }, val)
  4603. : { from: val };
  4604. }
  4605. } else if (true) {
  4606. warn(
  4607. "Invalid value for option \"inject\": expected an Array or an Object, " +
  4608. "but got " + (toRawType(inject)) + ".",
  4609. vm
  4610. );
  4611. }
  4612. }
  4613. /**
  4614. * Normalize raw function directives into object format.
  4615. */
  4616. function normalizeDirectives (options) {
  4617. var dirs = options.directives;
  4618. if (dirs) {
  4619. for (var key in dirs) {
  4620. var def$$1 = dirs[key];
  4621. if (typeof def$$1 === 'function') {
  4622. dirs[key] = { bind: def$$1, update: def$$1 };
  4623. }
  4624. }
  4625. }
  4626. }
  4627. function assertObjectType (name, value, vm) {
  4628. if (!isPlainObject(value)) {
  4629. warn(
  4630. "Invalid value for option \"" + name + "\": expected an Object, " +
  4631. "but got " + (toRawType(value)) + ".",
  4632. vm
  4633. );
  4634. }
  4635. }
  4636. /**
  4637. * Merge two option objects into a new one.
  4638. * Core utility used in both instantiation and inheritance.
  4639. */
  4640. function mergeOptions (
  4641. parent,
  4642. child,
  4643. vm
  4644. ) {
  4645. if (true) {
  4646. checkComponents(child);
  4647. }
  4648. if (typeof child === 'function') {
  4649. child = child.options;
  4650. }
  4651. normalizeProps(child, vm);
  4652. normalizeInject(child, vm);
  4653. normalizeDirectives(child);
  4654. // Apply extends and mixins on the child options,
  4655. // but only if it is a raw options object that isn't
  4656. // the result of another mergeOptions call.
  4657. // Only merged options has the _base property.
  4658. if (!child._base) {
  4659. if (child.extends) {
  4660. parent = mergeOptions(parent, child.extends, vm);
  4661. }
  4662. if (child.mixins) {
  4663. for (var i = 0, l = child.mixins.length; i < l; i++) {
  4664. parent = mergeOptions(parent, child.mixins[i], vm);
  4665. }
  4666. }
  4667. }
  4668. var options = {};
  4669. var key;
  4670. for (key in parent) {
  4671. mergeField(key);
  4672. }
  4673. for (key in child) {
  4674. if (!hasOwn(parent, key)) {
  4675. mergeField(key);
  4676. }
  4677. }
  4678. function mergeField (key) {
  4679. var strat = strats[key] || defaultStrat;
  4680. options[key] = strat(parent[key], child[key], vm, key);
  4681. }
  4682. return options
  4683. }
  4684. /**
  4685. * Resolve an asset.
  4686. * This function is used because child instances need access
  4687. * to assets defined in its ancestor chain.
  4688. */
  4689. function resolveAsset (
  4690. options,
  4691. type,
  4692. id,
  4693. warnMissing
  4694. ) {
  4695. /* istanbul ignore if */
  4696. if (typeof id !== 'string') {
  4697. return
  4698. }
  4699. var assets = options[type];
  4700. // check local registration variations first
  4701. if (hasOwn(assets, id)) { return assets[id] }
  4702. var camelizedId = camelize(id);
  4703. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  4704. var PascalCaseId = capitalize(camelizedId);
  4705. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  4706. // fallback to prototype chain
  4707. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  4708. if ( true && warnMissing && !res) {
  4709. warn(
  4710. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  4711. options
  4712. );
  4713. }
  4714. return res
  4715. }
  4716. /* */
  4717. function validateProp (
  4718. key,
  4719. propOptions,
  4720. propsData,
  4721. vm
  4722. ) {
  4723. var prop = propOptions[key];
  4724. var absent = !hasOwn(propsData, key);
  4725. var value = propsData[key];
  4726. // boolean casting
  4727. var booleanIndex = getTypeIndex(Boolean, prop.type);
  4728. if (booleanIndex > -1) {
  4729. if (absent && !hasOwn(prop, 'default')) {
  4730. value = false;
  4731. } else if (value === '' || value === hyphenate(key)) {
  4732. // only cast empty string / same name to boolean if
  4733. // boolean has higher priority
  4734. var stringIndex = getTypeIndex(String, prop.type);
  4735. if (stringIndex < 0 || booleanIndex < stringIndex) {
  4736. value = true;
  4737. }
  4738. }
  4739. }
  4740. // check default value
  4741. if (value === undefined) {
  4742. value = getPropDefaultValue(vm, prop, key);
  4743. // since the default value is a fresh copy,
  4744. // make sure to observe it.
  4745. var prevShouldObserve = shouldObserve;
  4746. toggleObserving(true);
  4747. observe(value);
  4748. toggleObserving(prevShouldObserve);
  4749. }
  4750. if (
  4751. true
  4752. ) {
  4753. assertProp(prop, key, value, vm, absent);
  4754. }
  4755. return value
  4756. }
  4757. /**
  4758. * Get the default value of a prop.
  4759. */
  4760. function getPropDefaultValue (vm, prop, key) {
  4761. // no default, return undefined
  4762. if (!hasOwn(prop, 'default')) {
  4763. return undefined
  4764. }
  4765. var def = prop.default;
  4766. // warn against non-factory defaults for Object & Array
  4767. if ( true && isObject(def)) {
  4768. warn(
  4769. 'Invalid default value for prop "' + key + '": ' +
  4770. 'Props with type Object/Array must use a factory function ' +
  4771. 'to return the default value.',
  4772. vm
  4773. );
  4774. }
  4775. // the raw prop value was also undefined from previous render,
  4776. // return previous default value to avoid unnecessary watcher trigger
  4777. if (vm && vm.$options.propsData &&
  4778. vm.$options.propsData[key] === undefined &&
  4779. vm._props[key] !== undefined
  4780. ) {
  4781. return vm._props[key]
  4782. }
  4783. // call factory function for non-Function types
  4784. // a value is Function if its prototype is function even across different execution context
  4785. return typeof def === 'function' && getType(prop.type) !== 'Function'
  4786. ? def.call(vm)
  4787. : def
  4788. }
  4789. /**
  4790. * Assert whether a prop is valid.
  4791. */
  4792. function assertProp (
  4793. prop,
  4794. name,
  4795. value,
  4796. vm,
  4797. absent
  4798. ) {
  4799. if (prop.required && absent) {
  4800. warn(
  4801. 'Missing required prop: "' + name + '"',
  4802. vm
  4803. );
  4804. return
  4805. }
  4806. if (value == null && !prop.required) {
  4807. return
  4808. }
  4809. var type = prop.type;
  4810. var valid = !type || type === true;
  4811. var expectedTypes = [];
  4812. if (type) {
  4813. if (!Array.isArray(type)) {
  4814. type = [type];
  4815. }
  4816. for (var i = 0; i < type.length && !valid; i++) {
  4817. var assertedType = assertType(value, type[i]);
  4818. expectedTypes.push(assertedType.expectedType || '');
  4819. valid = assertedType.valid;
  4820. }
  4821. }
  4822. if (!valid) {
  4823. warn(
  4824. getInvalidTypeMessage(name, value, expectedTypes),
  4825. vm
  4826. );
  4827. return
  4828. }
  4829. var validator = prop.validator;
  4830. if (validator) {
  4831. if (!validator(value)) {
  4832. warn(
  4833. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  4834. vm
  4835. );
  4836. }
  4837. }
  4838. }
  4839. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  4840. function assertType (value, type) {
  4841. var valid;
  4842. var expectedType = getType(type);
  4843. if (simpleCheckRE.test(expectedType)) {
  4844. var t = typeof value;
  4845. valid = t === expectedType.toLowerCase();
  4846. // for primitive wrapper objects
  4847. if (!valid && t === 'object') {
  4848. valid = value instanceof type;
  4849. }
  4850. } else if (expectedType === 'Object') {
  4851. valid = isPlainObject(value);
  4852. } else if (expectedType === 'Array') {
  4853. valid = Array.isArray(value);
  4854. } else {
  4855. valid = value instanceof type;
  4856. }
  4857. return {
  4858. valid: valid,
  4859. expectedType: expectedType
  4860. }
  4861. }
  4862. /**
  4863. * Use function string name to check built-in types,
  4864. * because a simple equality check will fail when running
  4865. * across different vms / iframes.
  4866. */
  4867. function getType (fn) {
  4868. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  4869. return match ? match[1] : ''
  4870. }
  4871. function isSameType (a, b) {
  4872. return getType(a) === getType(b)
  4873. }
  4874. function getTypeIndex (type, expectedTypes) {
  4875. if (!Array.isArray(expectedTypes)) {
  4876. return isSameType(expectedTypes, type) ? 0 : -1
  4877. }
  4878. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  4879. if (isSameType(expectedTypes[i], type)) {
  4880. return i
  4881. }
  4882. }
  4883. return -1
  4884. }
  4885. function getInvalidTypeMessage (name, value, expectedTypes) {
  4886. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  4887. " Expected " + (expectedTypes.map(capitalize).join(', '));
  4888. var expectedType = expectedTypes[0];
  4889. var receivedType = toRawType(value);
  4890. var expectedValue = styleValue(value, expectedType);
  4891. var receivedValue = styleValue(value, receivedType);
  4892. // check if we need to specify expected value
  4893. if (expectedTypes.length === 1 &&
  4894. isExplicable(expectedType) &&
  4895. !isBoolean(expectedType, receivedType)) {
  4896. message += " with value " + expectedValue;
  4897. }
  4898. message += ", got " + receivedType + " ";
  4899. // check if we need to specify received value
  4900. if (isExplicable(receivedType)) {
  4901. message += "with value " + receivedValue + ".";
  4902. }
  4903. return message
  4904. }
  4905. function styleValue (value, type) {
  4906. if (type === 'String') {
  4907. return ("\"" + value + "\"")
  4908. } else if (type === 'Number') {
  4909. return ("" + (Number(value)))
  4910. } else {
  4911. return ("" + value)
  4912. }
  4913. }
  4914. function isExplicable (value) {
  4915. var explicitTypes = ['string', 'number', 'boolean'];
  4916. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  4917. }
  4918. function isBoolean () {
  4919. var args = [], len = arguments.length;
  4920. while ( len-- ) args[ len ] = arguments[ len ];
  4921. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  4922. }
  4923. /* */
  4924. function handleError (err, vm, info) {
  4925. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  4926. // See: https://github.com/vuejs/vuex/issues/1505
  4927. pushTarget();
  4928. try {
  4929. if (vm) {
  4930. var cur = vm;
  4931. while ((cur = cur.$parent)) {
  4932. var hooks = cur.$options.errorCaptured;
  4933. if (hooks) {
  4934. for (var i = 0; i < hooks.length; i++) {
  4935. try {
  4936. var capture = hooks[i].call(cur, err, vm, info) === false;
  4937. if (capture) { return }
  4938. } catch (e) {
  4939. globalHandleError(e, cur, 'errorCaptured hook');
  4940. }
  4941. }
  4942. }
  4943. }
  4944. }
  4945. globalHandleError(err, vm, info);
  4946. } finally {
  4947. popTarget();
  4948. }
  4949. }
  4950. function invokeWithErrorHandling (
  4951. handler,
  4952. context,
  4953. args,
  4954. vm,
  4955. info
  4956. ) {
  4957. var res;
  4958. try {
  4959. res = args ? handler.apply(context, args) : handler.call(context);
  4960. if (res && !res._isVue && isPromise(res) && !res._handled) {
  4961. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  4962. // issue #9511
  4963. // avoid catch triggering multiple times when nested calls
  4964. res._handled = true;
  4965. }
  4966. } catch (e) {
  4967. handleError(e, vm, info);
  4968. }
  4969. return res
  4970. }
  4971. function globalHandleError (err, vm, info) {
  4972. if (config.errorHandler) {
  4973. try {
  4974. return config.errorHandler.call(null, err, vm, info)
  4975. } catch (e) {
  4976. // if the user intentionally throws the original error in the handler,
  4977. // do not log it twice
  4978. if (e !== err) {
  4979. logError(e, null, 'config.errorHandler');
  4980. }
  4981. }
  4982. }
  4983. logError(err, vm, info);
  4984. }
  4985. function logError (err, vm, info) {
  4986. if (true) {
  4987. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  4988. }
  4989. /* istanbul ignore else */
  4990. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  4991. console.error(err);
  4992. } else {
  4993. throw err
  4994. }
  4995. }
  4996. /* */
  4997. var callbacks = [];
  4998. var pending = false;
  4999. function flushCallbacks () {
  5000. pending = false;
  5001. var copies = callbacks.slice(0);
  5002. callbacks.length = 0;
  5003. for (var i = 0; i < copies.length; i++) {
  5004. copies[i]();
  5005. }
  5006. }
  5007. // Here we have async deferring wrappers using microtasks.
  5008. // In 2.5 we used (macro) tasks (in combination with microtasks).
  5009. // However, it has subtle problems when state is changed right before repaint
  5010. // (e.g. #6813, out-in transitions).
  5011. // Also, using (macro) tasks in event handler would cause some weird behaviors
  5012. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  5013. // So we now use microtasks everywhere, again.
  5014. // A major drawback of this tradeoff is that there are some scenarios
  5015. // where microtasks have too high a priority and fire in between supposedly
  5016. // sequential events (e.g. #4521, #6690, which have workarounds)
  5017. // or even between bubbling of the same event (#6566).
  5018. var timerFunc;
  5019. // The nextTick behavior leverages the microtask queue, which can be accessed
  5020. // via either native Promise.then or MutationObserver.
  5021. // MutationObserver has wider support, however it is seriously bugged in
  5022. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  5023. // completely stops working after triggering a few times... so, if native
  5024. // Promise is available, we will use it:
  5025. /* istanbul ignore next, $flow-disable-line */
  5026. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  5027. var p = Promise.resolve();
  5028. timerFunc = function () {
  5029. p.then(flushCallbacks);
  5030. // In problematic UIWebViews, Promise.then doesn't completely break, but
  5031. // it can get stuck in a weird state where callbacks are pushed into the
  5032. // microtask queue but the queue isn't being flushed, until the browser
  5033. // needs to do some other work, e.g. handle a timer. Therefore we can
  5034. // "force" the microtask queue to be flushed by adding an empty timer.
  5035. if (isIOS) { setTimeout(noop); }
  5036. };
  5037. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  5038. isNative(MutationObserver) ||
  5039. // PhantomJS and iOS 7.x
  5040. MutationObserver.toString() === '[object MutationObserverConstructor]'
  5041. )) {
  5042. // Use MutationObserver where native Promise is not available,
  5043. // e.g. PhantomJS, iOS7, Android 4.4
  5044. // (#6466 MutationObserver is unreliable in IE11)
  5045. var counter = 1;
  5046. var observer = new MutationObserver(flushCallbacks);
  5047. var textNode = document.createTextNode(String(counter));
  5048. observer.observe(textNode, {
  5049. characterData: true
  5050. });
  5051. timerFunc = function () {
  5052. counter = (counter + 1) % 2;
  5053. textNode.data = String(counter);
  5054. };
  5055. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  5056. // Fallback to setImmediate.
  5057. // Technically it leverages the (macro) task queue,
  5058. // but it is still a better choice than setTimeout.
  5059. timerFunc = function () {
  5060. setImmediate(flushCallbacks);
  5061. };
  5062. } else {
  5063. // Fallback to setTimeout.
  5064. timerFunc = function () {
  5065. setTimeout(flushCallbacks, 0);
  5066. };
  5067. }
  5068. function nextTick (cb, ctx) {
  5069. var _resolve;
  5070. callbacks.push(function () {
  5071. if (cb) {
  5072. try {
  5073. cb.call(ctx);
  5074. } catch (e) {
  5075. handleError(e, ctx, 'nextTick');
  5076. }
  5077. } else if (_resolve) {
  5078. _resolve(ctx);
  5079. }
  5080. });
  5081. if (!pending) {
  5082. pending = true;
  5083. timerFunc();
  5084. }
  5085. // $flow-disable-line
  5086. if (!cb && typeof Promise !== 'undefined') {
  5087. return new Promise(function (resolve) {
  5088. _resolve = resolve;
  5089. })
  5090. }
  5091. }
  5092. /* */
  5093. /* not type checking this file because flow doesn't play well with Proxy */
  5094. var initProxy;
  5095. if (true) {
  5096. var allowedGlobals = makeMap(
  5097. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  5098. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  5099. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  5100. 'require' // for Webpack/Browserify
  5101. );
  5102. var warnNonPresent = function (target, key) {
  5103. warn(
  5104. "Property or method \"" + key + "\" is not defined on the instance but " +
  5105. 'referenced during render. Make sure that this property is reactive, ' +
  5106. 'either in the data option, or for class-based components, by ' +
  5107. 'initializing the property. ' +
  5108. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  5109. target
  5110. );
  5111. };
  5112. var warnReservedPrefix = function (target, key) {
  5113. warn(
  5114. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  5115. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  5116. 'prevent conflicts with Vue internals. ' +
  5117. 'See: https://vuejs.org/v2/api/#data',
  5118. target
  5119. );
  5120. };
  5121. var hasProxy =
  5122. typeof Proxy !== 'undefined' && isNative(Proxy);
  5123. if (hasProxy) {
  5124. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  5125. config.keyCodes = new Proxy(config.keyCodes, {
  5126. set: function set (target, key, value) {
  5127. if (isBuiltInModifier(key)) {
  5128. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  5129. return false
  5130. } else {
  5131. target[key] = value;
  5132. return true
  5133. }
  5134. }
  5135. });
  5136. }
  5137. var hasHandler = {
  5138. has: function has (target, key) {
  5139. var has = key in target;
  5140. var isAllowed = allowedGlobals(key) ||
  5141. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  5142. if (!has && !isAllowed) {
  5143. if (key in target.$data) { warnReservedPrefix(target, key); }
  5144. else { warnNonPresent(target, key); }
  5145. }
  5146. return has || !isAllowed
  5147. }
  5148. };
  5149. var getHandler = {
  5150. get: function get (target, key) {
  5151. if (typeof key === 'string' && !(key in target)) {
  5152. if (key in target.$data) { warnReservedPrefix(target, key); }
  5153. else { warnNonPresent(target, key); }
  5154. }
  5155. return target[key]
  5156. }
  5157. };
  5158. initProxy = function initProxy (vm) {
  5159. if (hasProxy) {
  5160. // determine which proxy handler to use
  5161. var options = vm.$options;
  5162. var handlers = options.render && options.render._withStripped
  5163. ? getHandler
  5164. : hasHandler;
  5165. vm._renderProxy = new Proxy(vm, handlers);
  5166. } else {
  5167. vm._renderProxy = vm;
  5168. }
  5169. };
  5170. }
  5171. /* */
  5172. var seenObjects = new _Set();
  5173. /**
  5174. * Recursively traverse an object to evoke all converted
  5175. * getters, so that every nested property inside the object
  5176. * is collected as a "deep" dependency.
  5177. */
  5178. function traverse (val) {
  5179. _traverse(val, seenObjects);
  5180. seenObjects.clear();
  5181. }
  5182. function _traverse (val, seen) {
  5183. var i, keys;
  5184. var isA = Array.isArray(val);
  5185. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  5186. return
  5187. }
  5188. if (val.__ob__) {
  5189. var depId = val.__ob__.dep.id;
  5190. if (seen.has(depId)) {
  5191. return
  5192. }
  5193. seen.add(depId);
  5194. }
  5195. if (isA) {
  5196. i = val.length;
  5197. while (i--) { _traverse(val[i], seen); }
  5198. } else {
  5199. keys = Object.keys(val);
  5200. i = keys.length;
  5201. while (i--) { _traverse(val[keys[i]], seen); }
  5202. }
  5203. }
  5204. var mark;
  5205. var measure;
  5206. if (true) {
  5207. var perf = inBrowser && window.performance;
  5208. /* istanbul ignore if */
  5209. if (
  5210. perf &&
  5211. perf.mark &&
  5212. perf.measure &&
  5213. perf.clearMarks &&
  5214. perf.clearMeasures
  5215. ) {
  5216. mark = function (tag) { return perf.mark(tag); };
  5217. measure = function (name, startTag, endTag) {
  5218. perf.measure(name, startTag, endTag);
  5219. perf.clearMarks(startTag);
  5220. perf.clearMarks(endTag);
  5221. // perf.clearMeasures(name)
  5222. };
  5223. }
  5224. }
  5225. /* */
  5226. var normalizeEvent = cached(function (name) {
  5227. var passive = name.charAt(0) === '&';
  5228. name = passive ? name.slice(1) : name;
  5229. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  5230. name = once$$1 ? name.slice(1) : name;
  5231. var capture = name.charAt(0) === '!';
  5232. name = capture ? name.slice(1) : name;
  5233. return {
  5234. name: name,
  5235. once: once$$1,
  5236. capture: capture,
  5237. passive: passive
  5238. }
  5239. });
  5240. function createFnInvoker (fns, vm) {
  5241. function invoker () {
  5242. var arguments$1 = arguments;
  5243. var fns = invoker.fns;
  5244. if (Array.isArray(fns)) {
  5245. var cloned = fns.slice();
  5246. for (var i = 0; i < cloned.length; i++) {
  5247. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  5248. }
  5249. } else {
  5250. // return handler return value for single handlers
  5251. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  5252. }
  5253. }
  5254. invoker.fns = fns;
  5255. return invoker
  5256. }
  5257. function updateListeners (
  5258. on,
  5259. oldOn,
  5260. add,
  5261. remove$$1,
  5262. createOnceHandler,
  5263. vm
  5264. ) {
  5265. var name, def$$1, cur, old, event;
  5266. for (name in on) {
  5267. def$$1 = cur = on[name];
  5268. old = oldOn[name];
  5269. event = normalizeEvent(name);
  5270. if (isUndef(cur)) {
  5271. true && warn(
  5272. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  5273. vm
  5274. );
  5275. } else if (isUndef(old)) {
  5276. if (isUndef(cur.fns)) {
  5277. cur = on[name] = createFnInvoker(cur, vm);
  5278. }
  5279. if (isTrue(event.once)) {
  5280. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  5281. }
  5282. add(event.name, cur, event.capture, event.passive, event.params);
  5283. } else if (cur !== old) {
  5284. old.fns = cur;
  5285. on[name] = old;
  5286. }
  5287. }
  5288. for (name in oldOn) {
  5289. if (isUndef(on[name])) {
  5290. event = normalizeEvent(name);
  5291. remove$$1(event.name, oldOn[name], event.capture);
  5292. }
  5293. }
  5294. }
  5295. /* */
  5296. /* */
  5297. // fixed by xxxxxx (mp properties)
  5298. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  5299. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  5300. if (isUndef(propOptions)) {
  5301. return res
  5302. }
  5303. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  5304. var attrs = data.attrs;
  5305. var props = data.props;
  5306. if (isDef(attrs) || isDef(props)) {
  5307. for (var key in propOptions) {
  5308. var altKey = hyphenate(key);
  5309. var result = checkProp(res, props, key, altKey, true) ||
  5310. checkProp(res, attrs, key, altKey, false);
  5311. // externalClass
  5312. if (
  5313. result &&
  5314. res[key] &&
  5315. externalClasses.indexOf(altKey) !== -1 &&
  5316. context[camelize(res[key])]
  5317. ) {
  5318. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  5319. res[key] = context[camelize(res[key])];
  5320. }
  5321. }
  5322. }
  5323. return res
  5324. }
  5325. function extractPropsFromVNodeData (
  5326. data,
  5327. Ctor,
  5328. tag,
  5329. context// fixed by xxxxxx
  5330. ) {
  5331. // we are only extracting raw values here.
  5332. // validation and default values are handled in the child
  5333. // component itself.
  5334. var propOptions = Ctor.options.props;
  5335. if (isUndef(propOptions)) {
  5336. // fixed by xxxxxx
  5337. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  5338. }
  5339. var res = {};
  5340. var attrs = data.attrs;
  5341. var props = data.props;
  5342. if (isDef(attrs) || isDef(props)) {
  5343. for (var key in propOptions) {
  5344. var altKey = hyphenate(key);
  5345. if (true) {
  5346. var keyInLowerCase = key.toLowerCase();
  5347. if (
  5348. key !== keyInLowerCase &&
  5349. attrs && hasOwn(attrs, keyInLowerCase)
  5350. ) {
  5351. tip(
  5352. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  5353. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  5354. " \"" + key + "\". " +
  5355. "Note that HTML attributes are case-insensitive and camelCased " +
  5356. "props need to use their kebab-case equivalents when using in-DOM " +
  5357. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  5358. );
  5359. }
  5360. }
  5361. checkProp(res, props, key, altKey, true) ||
  5362. checkProp(res, attrs, key, altKey, false);
  5363. }
  5364. }
  5365. // fixed by xxxxxx
  5366. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  5367. }
  5368. function checkProp (
  5369. res,
  5370. hash,
  5371. key,
  5372. altKey,
  5373. preserve
  5374. ) {
  5375. if (isDef(hash)) {
  5376. if (hasOwn(hash, key)) {
  5377. res[key] = hash[key];
  5378. if (!preserve) {
  5379. delete hash[key];
  5380. }
  5381. return true
  5382. } else if (hasOwn(hash, altKey)) {
  5383. res[key] = hash[altKey];
  5384. if (!preserve) {
  5385. delete hash[altKey];
  5386. }
  5387. return true
  5388. }
  5389. }
  5390. return false
  5391. }
  5392. /* */
  5393. // The template compiler attempts to minimize the need for normalization by
  5394. // statically analyzing the template at compile time.
  5395. //
  5396. // For plain HTML markup, normalization can be completely skipped because the
  5397. // generated render function is guaranteed to return Array<VNode>. There are
  5398. // two cases where extra normalization is needed:
  5399. // 1. When the children contains components - because a functional component
  5400. // may return an Array instead of a single root. In this case, just a simple
  5401. // normalization is needed - if any child is an Array, we flatten the whole
  5402. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  5403. // because functional components already normalize their own children.
  5404. function simpleNormalizeChildren (children) {
  5405. for (var i = 0; i < children.length; i++) {
  5406. if (Array.isArray(children[i])) {
  5407. return Array.prototype.concat.apply([], children)
  5408. }
  5409. }
  5410. return children
  5411. }
  5412. // 2. When the children contains constructs that always generated nested Arrays,
  5413. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  5414. // with hand-written render functions / JSX. In such cases a full normalization
  5415. // is needed to cater to all possible types of children values.
  5416. function normalizeChildren (children) {
  5417. return isPrimitive(children)
  5418. ? [createTextVNode(children)]
  5419. : Array.isArray(children)
  5420. ? normalizeArrayChildren(children)
  5421. : undefined
  5422. }
  5423. function isTextNode (node) {
  5424. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  5425. }
  5426. function normalizeArrayChildren (children, nestedIndex) {
  5427. var res = [];
  5428. var i, c, lastIndex, last;
  5429. for (i = 0; i < children.length; i++) {
  5430. c = children[i];
  5431. if (isUndef(c) || typeof c === 'boolean') { continue }
  5432. lastIndex = res.length - 1;
  5433. last = res[lastIndex];
  5434. // nested
  5435. if (Array.isArray(c)) {
  5436. if (c.length > 0) {
  5437. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  5438. // merge adjacent text nodes
  5439. if (isTextNode(c[0]) && isTextNode(last)) {
  5440. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  5441. c.shift();
  5442. }
  5443. res.push.apply(res, c);
  5444. }
  5445. } else if (isPrimitive(c)) {
  5446. if (isTextNode(last)) {
  5447. // merge adjacent text nodes
  5448. // this is necessary for SSR hydration because text nodes are
  5449. // essentially merged when rendered to HTML strings
  5450. res[lastIndex] = createTextVNode(last.text + c);
  5451. } else if (c !== '') {
  5452. // convert primitive to vnode
  5453. res.push(createTextVNode(c));
  5454. }
  5455. } else {
  5456. if (isTextNode(c) && isTextNode(last)) {
  5457. // merge adjacent text nodes
  5458. res[lastIndex] = createTextVNode(last.text + c.text);
  5459. } else {
  5460. // default key for nested array children (likely generated by v-for)
  5461. if (isTrue(children._isVList) &&
  5462. isDef(c.tag) &&
  5463. isUndef(c.key) &&
  5464. isDef(nestedIndex)) {
  5465. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  5466. }
  5467. res.push(c);
  5468. }
  5469. }
  5470. }
  5471. return res
  5472. }
  5473. /* */
  5474. function initProvide (vm) {
  5475. var provide = vm.$options.provide;
  5476. if (provide) {
  5477. vm._provided = typeof provide === 'function'
  5478. ? provide.call(vm)
  5479. : provide;
  5480. }
  5481. }
  5482. function initInjections (vm) {
  5483. var result = resolveInject(vm.$options.inject, vm);
  5484. if (result) {
  5485. toggleObserving(false);
  5486. Object.keys(result).forEach(function (key) {
  5487. /* istanbul ignore else */
  5488. if (true) {
  5489. defineReactive$$1(vm, key, result[key], function () {
  5490. warn(
  5491. "Avoid mutating an injected value directly since the changes will be " +
  5492. "overwritten whenever the provided component re-renders. " +
  5493. "injection being mutated: \"" + key + "\"",
  5494. vm
  5495. );
  5496. });
  5497. } else {}
  5498. });
  5499. toggleObserving(true);
  5500. }
  5501. }
  5502. function resolveInject (inject, vm) {
  5503. if (inject) {
  5504. // inject is :any because flow is not smart enough to figure out cached
  5505. var result = Object.create(null);
  5506. var keys = hasSymbol
  5507. ? Reflect.ownKeys(inject)
  5508. : Object.keys(inject);
  5509. for (var i = 0; i < keys.length; i++) {
  5510. var key = keys[i];
  5511. // #6574 in case the inject object is observed...
  5512. if (key === '__ob__') { continue }
  5513. var provideKey = inject[key].from;
  5514. var source = vm;
  5515. while (source) {
  5516. if (source._provided && hasOwn(source._provided, provideKey)) {
  5517. result[key] = source._provided[provideKey];
  5518. break
  5519. }
  5520. source = source.$parent;
  5521. }
  5522. if (!source) {
  5523. if ('default' in inject[key]) {
  5524. var provideDefault = inject[key].default;
  5525. result[key] = typeof provideDefault === 'function'
  5526. ? provideDefault.call(vm)
  5527. : provideDefault;
  5528. } else if (true) {
  5529. warn(("Injection \"" + key + "\" not found"), vm);
  5530. }
  5531. }
  5532. }
  5533. return result
  5534. }
  5535. }
  5536. /* */
  5537. /**
  5538. * Runtime helper for resolving raw children VNodes into a slot object.
  5539. */
  5540. function resolveSlots (
  5541. children,
  5542. context
  5543. ) {
  5544. if (!children || !children.length) {
  5545. return {}
  5546. }
  5547. var slots = {};
  5548. for (var i = 0, l = children.length; i < l; i++) {
  5549. var child = children[i];
  5550. var data = child.data;
  5551. // remove slot attribute if the node is resolved as a Vue slot node
  5552. if (data && data.attrs && data.attrs.slot) {
  5553. delete data.attrs.slot;
  5554. }
  5555. // named slots should only be respected if the vnode was rendered in the
  5556. // same context.
  5557. if ((child.context === context || child.fnContext === context) &&
  5558. data && data.slot != null
  5559. ) {
  5560. var name = data.slot;
  5561. var slot = (slots[name] || (slots[name] = []));
  5562. if (child.tag === 'template') {
  5563. slot.push.apply(slot, child.children || []);
  5564. } else {
  5565. slot.push(child);
  5566. }
  5567. } else {
  5568. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  5569. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  5570. (slots['page'] || (slots['page'] = [])).push(child);
  5571. }else{
  5572. (slots.default || (slots.default = [])).push(child);
  5573. }
  5574. }
  5575. }
  5576. // ignore slots that contains only whitespace
  5577. for (var name$1 in slots) {
  5578. if (slots[name$1].every(isWhitespace)) {
  5579. delete slots[name$1];
  5580. }
  5581. }
  5582. return slots
  5583. }
  5584. function isWhitespace (node) {
  5585. return (node.isComment && !node.asyncFactory) || node.text === ' '
  5586. }
  5587. /* */
  5588. function normalizeScopedSlots (
  5589. slots,
  5590. normalSlots,
  5591. prevSlots
  5592. ) {
  5593. var res;
  5594. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  5595. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  5596. var key = slots && slots.$key;
  5597. if (!slots) {
  5598. res = {};
  5599. } else if (slots._normalized) {
  5600. // fast path 1: child component re-render only, parent did not change
  5601. return slots._normalized
  5602. } else if (
  5603. isStable &&
  5604. prevSlots &&
  5605. prevSlots !== emptyObject &&
  5606. key === prevSlots.$key &&
  5607. !hasNormalSlots &&
  5608. !prevSlots.$hasNormal
  5609. ) {
  5610. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  5611. // only need to normalize once
  5612. return prevSlots
  5613. } else {
  5614. res = {};
  5615. for (var key$1 in slots) {
  5616. if (slots[key$1] && key$1[0] !== '$') {
  5617. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  5618. }
  5619. }
  5620. }
  5621. // expose normal slots on scopedSlots
  5622. for (var key$2 in normalSlots) {
  5623. if (!(key$2 in res)) {
  5624. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  5625. }
  5626. }
  5627. // avoriaz seems to mock a non-extensible $scopedSlots object
  5628. // and when that is passed down this would cause an error
  5629. if (slots && Object.isExtensible(slots)) {
  5630. (slots)._normalized = res;
  5631. }
  5632. def(res, '$stable', isStable);
  5633. def(res, '$key', key);
  5634. def(res, '$hasNormal', hasNormalSlots);
  5635. return res
  5636. }
  5637. function normalizeScopedSlot(normalSlots, key, fn) {
  5638. var normalized = function () {
  5639. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  5640. res = res && typeof res === 'object' && !Array.isArray(res)
  5641. ? [res] // single vnode
  5642. : normalizeChildren(res);
  5643. return res && (
  5644. res.length === 0 ||
  5645. (res.length === 1 && res[0].isComment) // #9658
  5646. ) ? undefined
  5647. : res
  5648. };
  5649. // this is a slot using the new v-slot syntax without scope. although it is
  5650. // compiled as a scoped slot, render fn users would expect it to be present
  5651. // on this.$slots because the usage is semantically a normal slot.
  5652. if (fn.proxy) {
  5653. Object.defineProperty(normalSlots, key, {
  5654. get: normalized,
  5655. enumerable: true,
  5656. configurable: true
  5657. });
  5658. }
  5659. return normalized
  5660. }
  5661. function proxyNormalSlot(slots, key) {
  5662. return function () { return slots[key]; }
  5663. }
  5664. /* */
  5665. /**
  5666. * Runtime helper for rendering v-for lists.
  5667. */
  5668. function renderList (
  5669. val,
  5670. render
  5671. ) {
  5672. var ret, i, l, keys, key;
  5673. if (Array.isArray(val) || typeof val === 'string') {
  5674. ret = new Array(val.length);
  5675. for (i = 0, l = val.length; i < l; i++) {
  5676. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  5677. }
  5678. } else if (typeof val === 'number') {
  5679. ret = new Array(val);
  5680. for (i = 0; i < val; i++) {
  5681. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  5682. }
  5683. } else if (isObject(val)) {
  5684. if (hasSymbol && val[Symbol.iterator]) {
  5685. ret = [];
  5686. var iterator = val[Symbol.iterator]();
  5687. var result = iterator.next();
  5688. while (!result.done) {
  5689. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  5690. result = iterator.next();
  5691. }
  5692. } else {
  5693. keys = Object.keys(val);
  5694. ret = new Array(keys.length);
  5695. for (i = 0, l = keys.length; i < l; i++) {
  5696. key = keys[i];
  5697. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  5698. }
  5699. }
  5700. }
  5701. if (!isDef(ret)) {
  5702. ret = [];
  5703. }
  5704. (ret)._isVList = true;
  5705. return ret
  5706. }
  5707. /* */
  5708. /**
  5709. * Runtime helper for rendering <slot>
  5710. */
  5711. function renderSlot (
  5712. name,
  5713. fallback,
  5714. props,
  5715. bindObject
  5716. ) {
  5717. var scopedSlotFn = this.$scopedSlots[name];
  5718. var nodes;
  5719. if (scopedSlotFn) { // scoped slot
  5720. props = props || {};
  5721. if (bindObject) {
  5722. if ( true && !isObject(bindObject)) {
  5723. warn(
  5724. 'slot v-bind without argument expects an Object',
  5725. this
  5726. );
  5727. }
  5728. props = extend(extend({}, bindObject), props);
  5729. }
  5730. // fixed by xxxxxx app-plus scopedSlot
  5731. nodes = scopedSlotFn(props, this, props._i) || fallback;
  5732. } else {
  5733. nodes = this.$slots[name] || fallback;
  5734. }
  5735. var target = props && props.slot;
  5736. if (target) {
  5737. return this.$createElement('template', { slot: target }, nodes)
  5738. } else {
  5739. return nodes
  5740. }
  5741. }
  5742. /* */
  5743. /**
  5744. * Runtime helper for resolving filters
  5745. */
  5746. function resolveFilter (id) {
  5747. return resolveAsset(this.$options, 'filters', id, true) || identity
  5748. }
  5749. /* */
  5750. function isKeyNotMatch (expect, actual) {
  5751. if (Array.isArray(expect)) {
  5752. return expect.indexOf(actual) === -1
  5753. } else {
  5754. return expect !== actual
  5755. }
  5756. }
  5757. /**
  5758. * Runtime helper for checking keyCodes from config.
  5759. * exposed as Vue.prototype._k
  5760. * passing in eventKeyName as last argument separately for backwards compat
  5761. */
  5762. function checkKeyCodes (
  5763. eventKeyCode,
  5764. key,
  5765. builtInKeyCode,
  5766. eventKeyName,
  5767. builtInKeyName
  5768. ) {
  5769. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  5770. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  5771. return isKeyNotMatch(builtInKeyName, eventKeyName)
  5772. } else if (mappedKeyCode) {
  5773. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  5774. } else if (eventKeyName) {
  5775. return hyphenate(eventKeyName) !== key
  5776. }
  5777. }
  5778. /* */
  5779. /**
  5780. * Runtime helper for merging v-bind="object" into a VNode's data.
  5781. */
  5782. function bindObjectProps (
  5783. data,
  5784. tag,
  5785. value,
  5786. asProp,
  5787. isSync
  5788. ) {
  5789. if (value) {
  5790. if (!isObject(value)) {
  5791. true && warn(
  5792. 'v-bind without argument expects an Object or Array value',
  5793. this
  5794. );
  5795. } else {
  5796. if (Array.isArray(value)) {
  5797. value = toObject(value);
  5798. }
  5799. var hash;
  5800. var loop = function ( key ) {
  5801. if (
  5802. key === 'class' ||
  5803. key === 'style' ||
  5804. isReservedAttribute(key)
  5805. ) {
  5806. hash = data;
  5807. } else {
  5808. var type = data.attrs && data.attrs.type;
  5809. hash = asProp || config.mustUseProp(tag, type, key)
  5810. ? data.domProps || (data.domProps = {})
  5811. : data.attrs || (data.attrs = {});
  5812. }
  5813. var camelizedKey = camelize(key);
  5814. var hyphenatedKey = hyphenate(key);
  5815. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  5816. hash[key] = value[key];
  5817. if (isSync) {
  5818. var on = data.on || (data.on = {});
  5819. on[("update:" + key)] = function ($event) {
  5820. value[key] = $event;
  5821. };
  5822. }
  5823. }
  5824. };
  5825. for (var key in value) loop( key );
  5826. }
  5827. }
  5828. return data
  5829. }
  5830. /* */
  5831. /**
  5832. * Runtime helper for rendering static trees.
  5833. */
  5834. function renderStatic (
  5835. index,
  5836. isInFor
  5837. ) {
  5838. var cached = this._staticTrees || (this._staticTrees = []);
  5839. var tree = cached[index];
  5840. // if has already-rendered static tree and not inside v-for,
  5841. // we can reuse the same tree.
  5842. if (tree && !isInFor) {
  5843. return tree
  5844. }
  5845. // otherwise, render a fresh tree.
  5846. tree = cached[index] = this.$options.staticRenderFns[index].call(
  5847. this._renderProxy,
  5848. null,
  5849. this // for render fns generated for functional component templates
  5850. );
  5851. markStatic(tree, ("__static__" + index), false);
  5852. return tree
  5853. }
  5854. /**
  5855. * Runtime helper for v-once.
  5856. * Effectively it means marking the node as static with a unique key.
  5857. */
  5858. function markOnce (
  5859. tree,
  5860. index,
  5861. key
  5862. ) {
  5863. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  5864. return tree
  5865. }
  5866. function markStatic (
  5867. tree,
  5868. key,
  5869. isOnce
  5870. ) {
  5871. if (Array.isArray(tree)) {
  5872. for (var i = 0; i < tree.length; i++) {
  5873. if (tree[i] && typeof tree[i] !== 'string') {
  5874. markStaticNode(tree[i], (key + "_" + i), isOnce);
  5875. }
  5876. }
  5877. } else {
  5878. markStaticNode(tree, key, isOnce);
  5879. }
  5880. }
  5881. function markStaticNode (node, key, isOnce) {
  5882. node.isStatic = true;
  5883. node.key = key;
  5884. node.isOnce = isOnce;
  5885. }
  5886. /* */
  5887. function bindObjectListeners (data, value) {
  5888. if (value) {
  5889. if (!isPlainObject(value)) {
  5890. true && warn(
  5891. 'v-on without argument expects an Object value',
  5892. this
  5893. );
  5894. } else {
  5895. var on = data.on = data.on ? extend({}, data.on) : {};
  5896. for (var key in value) {
  5897. var existing = on[key];
  5898. var ours = value[key];
  5899. on[key] = existing ? [].concat(existing, ours) : ours;
  5900. }
  5901. }
  5902. }
  5903. return data
  5904. }
  5905. /* */
  5906. function resolveScopedSlots (
  5907. fns, // see flow/vnode
  5908. res,
  5909. // the following are added in 2.6
  5910. hasDynamicKeys,
  5911. contentHashKey
  5912. ) {
  5913. res = res || { $stable: !hasDynamicKeys };
  5914. for (var i = 0; i < fns.length; i++) {
  5915. var slot = fns[i];
  5916. if (Array.isArray(slot)) {
  5917. resolveScopedSlots(slot, res, hasDynamicKeys);
  5918. } else if (slot) {
  5919. // marker for reverse proxying v-slot without scope on this.$slots
  5920. if (slot.proxy) {
  5921. slot.fn.proxy = true;
  5922. }
  5923. res[slot.key] = slot.fn;
  5924. }
  5925. }
  5926. if (contentHashKey) {
  5927. (res).$key = contentHashKey;
  5928. }
  5929. return res
  5930. }
  5931. /* */
  5932. function bindDynamicKeys (baseObj, values) {
  5933. for (var i = 0; i < values.length; i += 2) {
  5934. var key = values[i];
  5935. if (typeof key === 'string' && key) {
  5936. baseObj[values[i]] = values[i + 1];
  5937. } else if ( true && key !== '' && key !== null) {
  5938. // null is a special value for explicitly removing a binding
  5939. warn(
  5940. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  5941. this
  5942. );
  5943. }
  5944. }
  5945. return baseObj
  5946. }
  5947. // helper to dynamically append modifier runtime markers to event names.
  5948. // ensure only append when value is already string, otherwise it will be cast
  5949. // to string and cause the type check to miss.
  5950. function prependModifier (value, symbol) {
  5951. return typeof value === 'string' ? symbol + value : value
  5952. }
  5953. /* */
  5954. function installRenderHelpers (target) {
  5955. target._o = markOnce;
  5956. target._n = toNumber;
  5957. target._s = toString;
  5958. target._l = renderList;
  5959. target._t = renderSlot;
  5960. target._q = looseEqual;
  5961. target._i = looseIndexOf;
  5962. target._m = renderStatic;
  5963. target._f = resolveFilter;
  5964. target._k = checkKeyCodes;
  5965. target._b = bindObjectProps;
  5966. target._v = createTextVNode;
  5967. target._e = createEmptyVNode;
  5968. target._u = resolveScopedSlots;
  5969. target._g = bindObjectListeners;
  5970. target._d = bindDynamicKeys;
  5971. target._p = prependModifier;
  5972. }
  5973. /* */
  5974. function FunctionalRenderContext (
  5975. data,
  5976. props,
  5977. children,
  5978. parent,
  5979. Ctor
  5980. ) {
  5981. var this$1 = this;
  5982. var options = Ctor.options;
  5983. // ensure the createElement function in functional components
  5984. // gets a unique context - this is necessary for correct named slot check
  5985. var contextVm;
  5986. if (hasOwn(parent, '_uid')) {
  5987. contextVm = Object.create(parent);
  5988. // $flow-disable-line
  5989. contextVm._original = parent;
  5990. } else {
  5991. // the context vm passed in is a functional context as well.
  5992. // in this case we want to make sure we are able to get a hold to the
  5993. // real context instance.
  5994. contextVm = parent;
  5995. // $flow-disable-line
  5996. parent = parent._original;
  5997. }
  5998. var isCompiled = isTrue(options._compiled);
  5999. var needNormalization = !isCompiled;
  6000. this.data = data;
  6001. this.props = props;
  6002. this.children = children;
  6003. this.parent = parent;
  6004. this.listeners = data.on || emptyObject;
  6005. this.injections = resolveInject(options.inject, parent);
  6006. this.slots = function () {
  6007. if (!this$1.$slots) {
  6008. normalizeScopedSlots(
  6009. data.scopedSlots,
  6010. this$1.$slots = resolveSlots(children, parent)
  6011. );
  6012. }
  6013. return this$1.$slots
  6014. };
  6015. Object.defineProperty(this, 'scopedSlots', ({
  6016. enumerable: true,
  6017. get: function get () {
  6018. return normalizeScopedSlots(data.scopedSlots, this.slots())
  6019. }
  6020. }));
  6021. // support for compiled functional template
  6022. if (isCompiled) {
  6023. // exposing $options for renderStatic()
  6024. this.$options = options;
  6025. // pre-resolve slots for renderSlot()
  6026. this.$slots = this.slots();
  6027. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  6028. }
  6029. if (options._scopeId) {
  6030. this._c = function (a, b, c, d) {
  6031. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  6032. if (vnode && !Array.isArray(vnode)) {
  6033. vnode.fnScopeId = options._scopeId;
  6034. vnode.fnContext = parent;
  6035. }
  6036. return vnode
  6037. };
  6038. } else {
  6039. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  6040. }
  6041. }
  6042. installRenderHelpers(FunctionalRenderContext.prototype);
  6043. function createFunctionalComponent (
  6044. Ctor,
  6045. propsData,
  6046. data,
  6047. contextVm,
  6048. children
  6049. ) {
  6050. var options = Ctor.options;
  6051. var props = {};
  6052. var propOptions = options.props;
  6053. if (isDef(propOptions)) {
  6054. for (var key in propOptions) {
  6055. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  6056. }
  6057. } else {
  6058. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  6059. if (isDef(data.props)) { mergeProps(props, data.props); }
  6060. }
  6061. var renderContext = new FunctionalRenderContext(
  6062. data,
  6063. props,
  6064. children,
  6065. contextVm,
  6066. Ctor
  6067. );
  6068. var vnode = options.render.call(null, renderContext._c, renderContext);
  6069. if (vnode instanceof VNode) {
  6070. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  6071. } else if (Array.isArray(vnode)) {
  6072. var vnodes = normalizeChildren(vnode) || [];
  6073. var res = new Array(vnodes.length);
  6074. for (var i = 0; i < vnodes.length; i++) {
  6075. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  6076. }
  6077. return res
  6078. }
  6079. }
  6080. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  6081. // #7817 clone node before setting fnContext, otherwise if the node is reused
  6082. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  6083. // that should not be matched to match.
  6084. var clone = cloneVNode(vnode);
  6085. clone.fnContext = contextVm;
  6086. clone.fnOptions = options;
  6087. if (true) {
  6088. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  6089. }
  6090. if (data.slot) {
  6091. (clone.data || (clone.data = {})).slot = data.slot;
  6092. }
  6093. return clone
  6094. }
  6095. function mergeProps (to, from) {
  6096. for (var key in from) {
  6097. to[camelize(key)] = from[key];
  6098. }
  6099. }
  6100. /* */
  6101. /* */
  6102. /* */
  6103. /* */
  6104. // inline hooks to be invoked on component VNodes during patch
  6105. var componentVNodeHooks = {
  6106. init: function init (vnode, hydrating) {
  6107. if (
  6108. vnode.componentInstance &&
  6109. !vnode.componentInstance._isDestroyed &&
  6110. vnode.data.keepAlive
  6111. ) {
  6112. // kept-alive components, treat as a patch
  6113. var mountedNode = vnode; // work around flow
  6114. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  6115. } else {
  6116. var child = vnode.componentInstance = createComponentInstanceForVnode(
  6117. vnode,
  6118. activeInstance
  6119. );
  6120. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  6121. }
  6122. },
  6123. prepatch: function prepatch (oldVnode, vnode) {
  6124. var options = vnode.componentOptions;
  6125. var child = vnode.componentInstance = oldVnode.componentInstance;
  6126. updateChildComponent(
  6127. child,
  6128. options.propsData, // updated props
  6129. options.listeners, // updated listeners
  6130. vnode, // new parent vnode
  6131. options.children // new children
  6132. );
  6133. },
  6134. insert: function insert (vnode) {
  6135. var context = vnode.context;
  6136. var componentInstance = vnode.componentInstance;
  6137. if (!componentInstance._isMounted) {
  6138. callHook(componentInstance, 'onServiceCreated');
  6139. callHook(componentInstance, 'onServiceAttached');
  6140. componentInstance._isMounted = true;
  6141. callHook(componentInstance, 'mounted');
  6142. }
  6143. if (vnode.data.keepAlive) {
  6144. if (context._isMounted) {
  6145. // vue-router#1212
  6146. // During updates, a kept-alive component's child components may
  6147. // change, so directly walking the tree here may call activated hooks
  6148. // on incorrect children. Instead we push them into a queue which will
  6149. // be processed after the whole patch process ended.
  6150. queueActivatedComponent(componentInstance);
  6151. } else {
  6152. activateChildComponent(componentInstance, true /* direct */);
  6153. }
  6154. }
  6155. },
  6156. destroy: function destroy (vnode) {
  6157. var componentInstance = vnode.componentInstance;
  6158. if (!componentInstance._isDestroyed) {
  6159. if (!vnode.data.keepAlive) {
  6160. componentInstance.$destroy();
  6161. } else {
  6162. deactivateChildComponent(componentInstance, true /* direct */);
  6163. }
  6164. }
  6165. }
  6166. };
  6167. var hooksToMerge = Object.keys(componentVNodeHooks);
  6168. function createComponent (
  6169. Ctor,
  6170. data,
  6171. context,
  6172. children,
  6173. tag
  6174. ) {
  6175. if (isUndef(Ctor)) {
  6176. return
  6177. }
  6178. var baseCtor = context.$options._base;
  6179. // plain options object: turn it into a constructor
  6180. if (isObject(Ctor)) {
  6181. Ctor = baseCtor.extend(Ctor);
  6182. }
  6183. // if at this stage it's not a constructor or an async component factory,
  6184. // reject.
  6185. if (typeof Ctor !== 'function') {
  6186. if (true) {
  6187. warn(("Invalid Component definition: " + (String(Ctor))), context);
  6188. }
  6189. return
  6190. }
  6191. // async component
  6192. var asyncFactory;
  6193. if (isUndef(Ctor.cid)) {
  6194. asyncFactory = Ctor;
  6195. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  6196. if (Ctor === undefined) {
  6197. // return a placeholder node for async component, which is rendered
  6198. // as a comment node but preserves all the raw information for the node.
  6199. // the information will be used for async server-rendering and hydration.
  6200. return createAsyncPlaceholder(
  6201. asyncFactory,
  6202. data,
  6203. context,
  6204. children,
  6205. tag
  6206. )
  6207. }
  6208. }
  6209. data = data || {};
  6210. // resolve constructor options in case global mixins are applied after
  6211. // component constructor creation
  6212. resolveConstructorOptions(Ctor);
  6213. // transform component v-model data into props & events
  6214. if (isDef(data.model)) {
  6215. transformModel(Ctor.options, data);
  6216. }
  6217. // extract props
  6218. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  6219. // functional component
  6220. if (isTrue(Ctor.options.functional)) {
  6221. return createFunctionalComponent(Ctor, propsData, data, context, children)
  6222. }
  6223. // extract listeners, since these needs to be treated as
  6224. // child component listeners instead of DOM listeners
  6225. var listeners = data.on;
  6226. // replace with listeners with .native modifier
  6227. // so it gets processed during parent component patch.
  6228. data.on = data.nativeOn;
  6229. if (isTrue(Ctor.options.abstract)) {
  6230. // abstract components do not keep anything
  6231. // other than props & listeners & slot
  6232. // work around flow
  6233. var slot = data.slot;
  6234. data = {};
  6235. if (slot) {
  6236. data.slot = slot;
  6237. }
  6238. }
  6239. // install component management hooks onto the placeholder node
  6240. installComponentHooks(data);
  6241. // return a placeholder vnode
  6242. var name = Ctor.options.name || tag;
  6243. var vnode = new VNode(
  6244. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  6245. data, undefined, undefined, undefined, context,
  6246. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  6247. asyncFactory
  6248. );
  6249. return vnode
  6250. }
  6251. function createComponentInstanceForVnode (
  6252. vnode, // we know it's MountedComponentVNode but flow doesn't
  6253. parent // activeInstance in lifecycle state
  6254. ) {
  6255. var options = {
  6256. _isComponent: true,
  6257. _parentVnode: vnode,
  6258. parent: parent
  6259. };
  6260. // check inline-template render functions
  6261. var inlineTemplate = vnode.data.inlineTemplate;
  6262. if (isDef(inlineTemplate)) {
  6263. options.render = inlineTemplate.render;
  6264. options.staticRenderFns = inlineTemplate.staticRenderFns;
  6265. }
  6266. return new vnode.componentOptions.Ctor(options)
  6267. }
  6268. function installComponentHooks (data) {
  6269. var hooks = data.hook || (data.hook = {});
  6270. for (var i = 0; i < hooksToMerge.length; i++) {
  6271. var key = hooksToMerge[i];
  6272. var existing = hooks[key];
  6273. var toMerge = componentVNodeHooks[key];
  6274. if (existing !== toMerge && !(existing && existing._merged)) {
  6275. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  6276. }
  6277. }
  6278. }
  6279. function mergeHook$1 (f1, f2) {
  6280. var merged = function (a, b) {
  6281. // flow complains about extra args which is why we use any
  6282. f1(a, b);
  6283. f2(a, b);
  6284. };
  6285. merged._merged = true;
  6286. return merged
  6287. }
  6288. // transform component v-model info (value and callback) into
  6289. // prop and event handler respectively.
  6290. function transformModel (options, data) {
  6291. var prop = (options.model && options.model.prop) || 'value';
  6292. var event = (options.model && options.model.event) || 'input'
  6293. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  6294. var on = data.on || (data.on = {});
  6295. var existing = on[event];
  6296. var callback = data.model.callback;
  6297. if (isDef(existing)) {
  6298. if (
  6299. Array.isArray(existing)
  6300. ? existing.indexOf(callback) === -1
  6301. : existing !== callback
  6302. ) {
  6303. on[event] = [callback].concat(existing);
  6304. }
  6305. } else {
  6306. on[event] = callback;
  6307. }
  6308. }
  6309. /* */
  6310. var SIMPLE_NORMALIZE = 1;
  6311. var ALWAYS_NORMALIZE = 2;
  6312. // wrapper function for providing a more flexible interface
  6313. // without getting yelled at by flow
  6314. function createElement (
  6315. context,
  6316. tag,
  6317. data,
  6318. children,
  6319. normalizationType,
  6320. alwaysNormalize
  6321. ) {
  6322. if (Array.isArray(data) || isPrimitive(data)) {
  6323. normalizationType = children;
  6324. children = data;
  6325. data = undefined;
  6326. }
  6327. if (isTrue(alwaysNormalize)) {
  6328. normalizationType = ALWAYS_NORMALIZE;
  6329. }
  6330. return _createElement(context, tag, data, children, normalizationType)
  6331. }
  6332. function _createElement (
  6333. context,
  6334. tag,
  6335. data,
  6336. children,
  6337. normalizationType
  6338. ) {
  6339. if (isDef(data) && isDef((data).__ob__)) {
  6340. true && warn(
  6341. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  6342. 'Always create fresh vnode data objects in each render!',
  6343. context
  6344. );
  6345. return createEmptyVNode()
  6346. }
  6347. // object syntax in v-bind
  6348. if (isDef(data) && isDef(data.is)) {
  6349. tag = data.is;
  6350. }
  6351. if (!tag) {
  6352. // in case of component :is set to falsy value
  6353. return createEmptyVNode()
  6354. }
  6355. // warn against non-primitive key
  6356. if ( true &&
  6357. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  6358. ) {
  6359. {
  6360. warn(
  6361. 'Avoid using non-primitive value as key, ' +
  6362. 'use string/number value instead.',
  6363. context
  6364. );
  6365. }
  6366. }
  6367. // support single function children as default scoped slot
  6368. if (Array.isArray(children) &&
  6369. typeof children[0] === 'function'
  6370. ) {
  6371. data = data || {};
  6372. data.scopedSlots = { default: children[0] };
  6373. children.length = 0;
  6374. }
  6375. if (normalizationType === ALWAYS_NORMALIZE) {
  6376. children = normalizeChildren(children);
  6377. } else if (normalizationType === SIMPLE_NORMALIZE) {
  6378. children = simpleNormalizeChildren(children);
  6379. }
  6380. var vnode, ns;
  6381. if (typeof tag === 'string') {
  6382. var Ctor;
  6383. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  6384. if (config.isReservedTag(tag)) {
  6385. // platform built-in elements
  6386. if ( true && isDef(data) && isDef(data.nativeOn)) {
  6387. warn(
  6388. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  6389. context
  6390. );
  6391. }
  6392. vnode = new VNode(
  6393. config.parsePlatformTagName(tag), data, children,
  6394. undefined, undefined, context
  6395. );
  6396. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  6397. // component
  6398. vnode = createComponent(Ctor, data, context, children, tag);
  6399. } else {
  6400. // unknown or unlisted namespaced elements
  6401. // check at runtime because it may get assigned a namespace when its
  6402. // parent normalizes children
  6403. vnode = new VNode(
  6404. tag, data, children,
  6405. undefined, undefined, context
  6406. );
  6407. }
  6408. } else {
  6409. // direct component options / constructor
  6410. vnode = createComponent(tag, data, context, children);
  6411. }
  6412. if (Array.isArray(vnode)) {
  6413. return vnode
  6414. } else if (isDef(vnode)) {
  6415. if (isDef(ns)) { applyNS(vnode, ns); }
  6416. if (isDef(data)) { registerDeepBindings(data); }
  6417. return vnode
  6418. } else {
  6419. return createEmptyVNode()
  6420. }
  6421. }
  6422. function applyNS (vnode, ns, force) {
  6423. vnode.ns = ns;
  6424. if (vnode.tag === 'foreignObject') {
  6425. // use default namespace inside foreignObject
  6426. ns = undefined;
  6427. force = true;
  6428. }
  6429. if (isDef(vnode.children)) {
  6430. for (var i = 0, l = vnode.children.length; i < l; i++) {
  6431. var child = vnode.children[i];
  6432. if (isDef(child.tag) && (
  6433. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  6434. applyNS(child, ns, force);
  6435. }
  6436. }
  6437. }
  6438. }
  6439. // ref #5318
  6440. // necessary to ensure parent re-render when deep bindings like :style and
  6441. // :class are used on slot nodes
  6442. function registerDeepBindings (data) {
  6443. if (isObject(data.style)) {
  6444. traverse(data.style);
  6445. }
  6446. if (isObject(data.class)) {
  6447. traverse(data.class);
  6448. }
  6449. }
  6450. /* */
  6451. function initRender (vm) {
  6452. vm._vnode = null; // the root of the child tree
  6453. vm._staticTrees = null; // v-once cached trees
  6454. var options = vm.$options;
  6455. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  6456. var renderContext = parentVnode && parentVnode.context;
  6457. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  6458. vm.$scopedSlots = emptyObject;
  6459. // bind the createElement fn to this instance
  6460. // so that we get proper render context inside it.
  6461. // args order: tag, data, children, normalizationType, alwaysNormalize
  6462. // internal version is used by render functions compiled from templates
  6463. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  6464. // normalization is always applied for the public version, used in
  6465. // user-written render functions.
  6466. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  6467. // $attrs & $listeners are exposed for easier HOC creation.
  6468. // they need to be reactive so that HOCs using them are always updated
  6469. var parentData = parentVnode && parentVnode.data;
  6470. /* istanbul ignore else */
  6471. if (true) {
  6472. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  6473. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  6474. }, true);
  6475. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  6476. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  6477. }, true);
  6478. } else {}
  6479. }
  6480. var currentRenderingInstance = null;
  6481. function renderMixin (Vue) {
  6482. // install runtime convenience helpers
  6483. installRenderHelpers(Vue.prototype);
  6484. Vue.prototype.$nextTick = function (fn) {
  6485. return nextTick(fn, this)
  6486. };
  6487. Vue.prototype._render = function () {
  6488. var vm = this;
  6489. var ref = vm.$options;
  6490. var render = ref.render;
  6491. var _parentVnode = ref._parentVnode;
  6492. if (_parentVnode) {
  6493. vm.$scopedSlots = normalizeScopedSlots(
  6494. _parentVnode.data.scopedSlots,
  6495. vm.$slots,
  6496. vm.$scopedSlots
  6497. );
  6498. }
  6499. // set parent vnode. this allows render functions to have access
  6500. // to the data on the placeholder node.
  6501. vm.$vnode = _parentVnode;
  6502. // render self
  6503. var vnode;
  6504. try {
  6505. // There's no need to maintain a stack because all render fns are called
  6506. // separately from one another. Nested component's render fns are called
  6507. // when parent component is patched.
  6508. currentRenderingInstance = vm;
  6509. vnode = render.call(vm._renderProxy, vm.$createElement);
  6510. } catch (e) {
  6511. handleError(e, vm, "render");
  6512. // return error render result,
  6513. // or previous vnode to prevent render error causing blank component
  6514. /* istanbul ignore else */
  6515. if ( true && vm.$options.renderError) {
  6516. try {
  6517. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  6518. } catch (e) {
  6519. handleError(e, vm, "renderError");
  6520. vnode = vm._vnode;
  6521. }
  6522. } else {
  6523. vnode = vm._vnode;
  6524. }
  6525. } finally {
  6526. currentRenderingInstance = null;
  6527. }
  6528. // if the returned array contains only a single node, allow it
  6529. if (Array.isArray(vnode) && vnode.length === 1) {
  6530. vnode = vnode[0];
  6531. }
  6532. // return empty vnode in case the render function errored out
  6533. if (!(vnode instanceof VNode)) {
  6534. if ( true && Array.isArray(vnode)) {
  6535. warn(
  6536. 'Multiple root nodes returned from render function. Render function ' +
  6537. 'should return a single root node.',
  6538. vm
  6539. );
  6540. }
  6541. vnode = createEmptyVNode();
  6542. }
  6543. // set parent
  6544. vnode.parent = _parentVnode;
  6545. return vnode
  6546. };
  6547. }
  6548. /* */
  6549. function ensureCtor (comp, base) {
  6550. if (
  6551. comp.__esModule ||
  6552. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  6553. ) {
  6554. comp = comp.default;
  6555. }
  6556. return isObject(comp)
  6557. ? base.extend(comp)
  6558. : comp
  6559. }
  6560. function createAsyncPlaceholder (
  6561. factory,
  6562. data,
  6563. context,
  6564. children,
  6565. tag
  6566. ) {
  6567. var node = createEmptyVNode();
  6568. node.asyncFactory = factory;
  6569. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  6570. return node
  6571. }
  6572. function resolveAsyncComponent (
  6573. factory,
  6574. baseCtor
  6575. ) {
  6576. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  6577. return factory.errorComp
  6578. }
  6579. if (isDef(factory.resolved)) {
  6580. return factory.resolved
  6581. }
  6582. var owner = currentRenderingInstance;
  6583. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  6584. // already pending
  6585. factory.owners.push(owner);
  6586. }
  6587. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  6588. return factory.loadingComp
  6589. }
  6590. if (owner && !isDef(factory.owners)) {
  6591. var owners = factory.owners = [owner];
  6592. var sync = true;
  6593. var timerLoading = null;
  6594. var timerTimeout = null
  6595. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  6596. var forceRender = function (renderCompleted) {
  6597. for (var i = 0, l = owners.length; i < l; i++) {
  6598. (owners[i]).$forceUpdate();
  6599. }
  6600. if (renderCompleted) {
  6601. owners.length = 0;
  6602. if (timerLoading !== null) {
  6603. clearTimeout(timerLoading);
  6604. timerLoading = null;
  6605. }
  6606. if (timerTimeout !== null) {
  6607. clearTimeout(timerTimeout);
  6608. timerTimeout = null;
  6609. }
  6610. }
  6611. };
  6612. var resolve = once(function (res) {
  6613. // cache resolved
  6614. factory.resolved = ensureCtor(res, baseCtor);
  6615. // invoke callbacks only if this is not a synchronous resolve
  6616. // (async resolves are shimmed as synchronous during SSR)
  6617. if (!sync) {
  6618. forceRender(true);
  6619. } else {
  6620. owners.length = 0;
  6621. }
  6622. });
  6623. var reject = once(function (reason) {
  6624. true && warn(
  6625. "Failed to resolve async component: " + (String(factory)) +
  6626. (reason ? ("\nReason: " + reason) : '')
  6627. );
  6628. if (isDef(factory.errorComp)) {
  6629. factory.error = true;
  6630. forceRender(true);
  6631. }
  6632. });
  6633. var res = factory(resolve, reject);
  6634. if (isObject(res)) {
  6635. if (isPromise(res)) {
  6636. // () => Promise
  6637. if (isUndef(factory.resolved)) {
  6638. res.then(resolve, reject);
  6639. }
  6640. } else if (isPromise(res.component)) {
  6641. res.component.then(resolve, reject);
  6642. if (isDef(res.error)) {
  6643. factory.errorComp = ensureCtor(res.error, baseCtor);
  6644. }
  6645. if (isDef(res.loading)) {
  6646. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  6647. if (res.delay === 0) {
  6648. factory.loading = true;
  6649. } else {
  6650. timerLoading = setTimeout(function () {
  6651. timerLoading = null;
  6652. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  6653. factory.loading = true;
  6654. forceRender(false);
  6655. }
  6656. }, res.delay || 200);
  6657. }
  6658. }
  6659. if (isDef(res.timeout)) {
  6660. timerTimeout = setTimeout(function () {
  6661. timerTimeout = null;
  6662. if (isUndef(factory.resolved)) {
  6663. reject(
  6664. true
  6665. ? ("timeout (" + (res.timeout) + "ms)")
  6666. : undefined
  6667. );
  6668. }
  6669. }, res.timeout);
  6670. }
  6671. }
  6672. }
  6673. sync = false;
  6674. // return in case resolved synchronously
  6675. return factory.loading
  6676. ? factory.loadingComp
  6677. : factory.resolved
  6678. }
  6679. }
  6680. /* */
  6681. function isAsyncPlaceholder (node) {
  6682. return node.isComment && node.asyncFactory
  6683. }
  6684. /* */
  6685. function getFirstComponentChild (children) {
  6686. if (Array.isArray(children)) {
  6687. for (var i = 0; i < children.length; i++) {
  6688. var c = children[i];
  6689. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  6690. return c
  6691. }
  6692. }
  6693. }
  6694. }
  6695. /* */
  6696. /* */
  6697. function initEvents (vm) {
  6698. vm._events = Object.create(null);
  6699. vm._hasHookEvent = false;
  6700. // init parent attached events
  6701. var listeners = vm.$options._parentListeners;
  6702. if (listeners) {
  6703. updateComponentListeners(vm, listeners);
  6704. }
  6705. }
  6706. var target;
  6707. function add (event, fn) {
  6708. target.$on(event, fn);
  6709. }
  6710. function remove$1 (event, fn) {
  6711. target.$off(event, fn);
  6712. }
  6713. function createOnceHandler (event, fn) {
  6714. var _target = target;
  6715. return function onceHandler () {
  6716. var res = fn.apply(null, arguments);
  6717. if (res !== null) {
  6718. _target.$off(event, onceHandler);
  6719. }
  6720. }
  6721. }
  6722. function updateComponentListeners (
  6723. vm,
  6724. listeners,
  6725. oldListeners
  6726. ) {
  6727. target = vm;
  6728. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  6729. target = undefined;
  6730. }
  6731. function eventsMixin (Vue) {
  6732. var hookRE = /^hook:/;
  6733. Vue.prototype.$on = function (event, fn) {
  6734. var vm = this;
  6735. if (Array.isArray(event)) {
  6736. for (var i = 0, l = event.length; i < l; i++) {
  6737. vm.$on(event[i], fn);
  6738. }
  6739. } else {
  6740. (vm._events[event] || (vm._events[event] = [])).push(fn);
  6741. // optimize hook:event cost by using a boolean flag marked at registration
  6742. // instead of a hash lookup
  6743. if (hookRE.test(event)) {
  6744. vm._hasHookEvent = true;
  6745. }
  6746. }
  6747. return vm
  6748. };
  6749. Vue.prototype.$once = function (event, fn) {
  6750. var vm = this;
  6751. function on () {
  6752. vm.$off(event, on);
  6753. fn.apply(vm, arguments);
  6754. }
  6755. on.fn = fn;
  6756. vm.$on(event, on);
  6757. return vm
  6758. };
  6759. Vue.prototype.$off = function (event, fn) {
  6760. var vm = this;
  6761. // all
  6762. if (!arguments.length) {
  6763. vm._events = Object.create(null);
  6764. return vm
  6765. }
  6766. // array of events
  6767. if (Array.isArray(event)) {
  6768. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  6769. vm.$off(event[i$1], fn);
  6770. }
  6771. return vm
  6772. }
  6773. // specific event
  6774. var cbs = vm._events[event];
  6775. if (!cbs) {
  6776. return vm
  6777. }
  6778. if (!fn) {
  6779. vm._events[event] = null;
  6780. return vm
  6781. }
  6782. // specific handler
  6783. var cb;
  6784. var i = cbs.length;
  6785. while (i--) {
  6786. cb = cbs[i];
  6787. if (cb === fn || cb.fn === fn) {
  6788. cbs.splice(i, 1);
  6789. break
  6790. }
  6791. }
  6792. return vm
  6793. };
  6794. Vue.prototype.$emit = function (event) {
  6795. var vm = this;
  6796. if (true) {
  6797. var lowerCaseEvent = event.toLowerCase();
  6798. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  6799. tip(
  6800. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  6801. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  6802. "Note that HTML attributes are case-insensitive and you cannot use " +
  6803. "v-on to listen to camelCase events when using in-DOM templates. " +
  6804. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  6805. );
  6806. }
  6807. }
  6808. var cbs = vm._events[event];
  6809. if (cbs) {
  6810. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  6811. var args = toArray(arguments, 1);
  6812. var info = "event handler for \"" + event + "\"";
  6813. for (var i = 0, l = cbs.length; i < l; i++) {
  6814. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  6815. }
  6816. }
  6817. return vm
  6818. };
  6819. }
  6820. /* */
  6821. var activeInstance = null;
  6822. var isUpdatingChildComponent = false;
  6823. function setActiveInstance(vm) {
  6824. var prevActiveInstance = activeInstance;
  6825. activeInstance = vm;
  6826. return function () {
  6827. activeInstance = prevActiveInstance;
  6828. }
  6829. }
  6830. function initLifecycle (vm) {
  6831. var options = vm.$options;
  6832. // locate first non-abstract parent
  6833. var parent = options.parent;
  6834. if (parent && !options.abstract) {
  6835. while (parent.$options.abstract && parent.$parent) {
  6836. parent = parent.$parent;
  6837. }
  6838. parent.$children.push(vm);
  6839. }
  6840. vm.$parent = parent;
  6841. vm.$root = parent ? parent.$root : vm;
  6842. vm.$children = [];
  6843. vm.$refs = {};
  6844. vm._watcher = null;
  6845. vm._inactive = null;
  6846. vm._directInactive = false;
  6847. vm._isMounted = false;
  6848. vm._isDestroyed = false;
  6849. vm._isBeingDestroyed = false;
  6850. }
  6851. function lifecycleMixin (Vue) {
  6852. Vue.prototype._update = function (vnode, hydrating) {
  6853. var vm = this;
  6854. var prevEl = vm.$el;
  6855. var prevVnode = vm._vnode;
  6856. var restoreActiveInstance = setActiveInstance(vm);
  6857. vm._vnode = vnode;
  6858. // Vue.prototype.__patch__ is injected in entry points
  6859. // based on the rendering backend used.
  6860. if (!prevVnode) {
  6861. // initial render
  6862. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  6863. } else {
  6864. // updates
  6865. vm.$el = vm.__patch__(prevVnode, vnode);
  6866. }
  6867. restoreActiveInstance();
  6868. // update __vue__ reference
  6869. if (prevEl) {
  6870. prevEl.__vue__ = null;
  6871. }
  6872. if (vm.$el) {
  6873. vm.$el.__vue__ = vm;
  6874. }
  6875. // if parent is an HOC, update its $el as well
  6876. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  6877. vm.$parent.$el = vm.$el;
  6878. }
  6879. // updated hook is called by the scheduler to ensure that children are
  6880. // updated in a parent's updated hook.
  6881. };
  6882. Vue.prototype.$forceUpdate = function () {
  6883. var vm = this;
  6884. if (vm._watcher) {
  6885. vm._watcher.update();
  6886. }
  6887. };
  6888. Vue.prototype.$destroy = function () {
  6889. var vm = this;
  6890. if (vm._isBeingDestroyed) {
  6891. return
  6892. }
  6893. callHook(vm, 'beforeDestroy');
  6894. vm._isBeingDestroyed = true;
  6895. // remove self from parent
  6896. var parent = vm.$parent;
  6897. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  6898. remove(parent.$children, vm);
  6899. }
  6900. // teardown watchers
  6901. if (vm._watcher) {
  6902. vm._watcher.teardown();
  6903. }
  6904. var i = vm._watchers.length;
  6905. while (i--) {
  6906. vm._watchers[i].teardown();
  6907. }
  6908. // remove reference from data ob
  6909. // frozen object may not have observer.
  6910. if (vm._data.__ob__) {
  6911. vm._data.__ob__.vmCount--;
  6912. }
  6913. // call the last hook...
  6914. vm._isDestroyed = true;
  6915. // invoke destroy hooks on current rendered tree
  6916. vm.__patch__(vm._vnode, null);
  6917. // fire destroyed hook
  6918. callHook(vm, 'destroyed');
  6919. // turn off all instance listeners.
  6920. vm.$off();
  6921. // remove __vue__ reference
  6922. if (vm.$el) {
  6923. vm.$el.__vue__ = null;
  6924. }
  6925. // release circular reference (#6759)
  6926. if (vm.$vnode) {
  6927. vm.$vnode.parent = null;
  6928. }
  6929. };
  6930. }
  6931. function updateChildComponent (
  6932. vm,
  6933. propsData,
  6934. listeners,
  6935. parentVnode,
  6936. renderChildren
  6937. ) {
  6938. if (true) {
  6939. isUpdatingChildComponent = true;
  6940. }
  6941. // determine whether component has slot children
  6942. // we need to do this before overwriting $options._renderChildren.
  6943. // check if there are dynamic scopedSlots (hand-written or compiled but with
  6944. // dynamic slot names). Static scoped slots compiled from template has the
  6945. // "$stable" marker.
  6946. var newScopedSlots = parentVnode.data.scopedSlots;
  6947. var oldScopedSlots = vm.$scopedSlots;
  6948. var hasDynamicScopedSlot = !!(
  6949. (newScopedSlots && !newScopedSlots.$stable) ||
  6950. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  6951. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  6952. );
  6953. // Any static slot children from the parent may have changed during parent's
  6954. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  6955. // update is necessary to ensure correctness.
  6956. var needsForceUpdate = !!(
  6957. renderChildren || // has new static slots
  6958. vm.$options._renderChildren || // has old static slots
  6959. hasDynamicScopedSlot
  6960. );
  6961. vm.$options._parentVnode = parentVnode;
  6962. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  6963. if (vm._vnode) { // update child tree's parent
  6964. vm._vnode.parent = parentVnode;
  6965. }
  6966. vm.$options._renderChildren = renderChildren;
  6967. // update $attrs and $listeners hash
  6968. // these are also reactive so they may trigger child update if the child
  6969. // used them during render
  6970. vm.$attrs = parentVnode.data.attrs || emptyObject;
  6971. vm.$listeners = listeners || emptyObject;
  6972. // update props
  6973. if (propsData && vm.$options.props) {
  6974. toggleObserving(false);
  6975. var props = vm._props;
  6976. var propKeys = vm.$options._propKeys || [];
  6977. for (var i = 0; i < propKeys.length; i++) {
  6978. var key = propKeys[i];
  6979. var propOptions = vm.$options.props; // wtf flow?
  6980. props[key] = validateProp(key, propOptions, propsData, vm);
  6981. }
  6982. toggleObserving(true);
  6983. // keep a copy of raw propsData
  6984. vm.$options.propsData = propsData;
  6985. }
  6986. // fixed by xxxxxx update properties(mp runtime)
  6987. vm._$updateProperties && vm._$updateProperties(vm);
  6988. // update listeners
  6989. listeners = listeners || emptyObject;
  6990. var oldListeners = vm.$options._parentListeners;
  6991. vm.$options._parentListeners = listeners;
  6992. updateComponentListeners(vm, listeners, oldListeners);
  6993. // resolve slots + force update if has children
  6994. if (needsForceUpdate) {
  6995. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  6996. vm.$forceUpdate();
  6997. }
  6998. if (true) {
  6999. isUpdatingChildComponent = false;
  7000. }
  7001. }
  7002. function isInInactiveTree (vm) {
  7003. while (vm && (vm = vm.$parent)) {
  7004. if (vm._inactive) { return true }
  7005. }
  7006. return false
  7007. }
  7008. function activateChildComponent (vm, direct) {
  7009. if (direct) {
  7010. vm._directInactive = false;
  7011. if (isInInactiveTree(vm)) {
  7012. return
  7013. }
  7014. } else if (vm._directInactive) {
  7015. return
  7016. }
  7017. if (vm._inactive || vm._inactive === null) {
  7018. vm._inactive = false;
  7019. for (var i = 0; i < vm.$children.length; i++) {
  7020. activateChildComponent(vm.$children[i]);
  7021. }
  7022. callHook(vm, 'activated');
  7023. }
  7024. }
  7025. function deactivateChildComponent (vm, direct) {
  7026. if (direct) {
  7027. vm._directInactive = true;
  7028. if (isInInactiveTree(vm)) {
  7029. return
  7030. }
  7031. }
  7032. if (!vm._inactive) {
  7033. vm._inactive = true;
  7034. for (var i = 0; i < vm.$children.length; i++) {
  7035. deactivateChildComponent(vm.$children[i]);
  7036. }
  7037. callHook(vm, 'deactivated');
  7038. }
  7039. }
  7040. function callHook (vm, hook) {
  7041. // #7573 disable dep collection when invoking lifecycle hooks
  7042. pushTarget();
  7043. var handlers = vm.$options[hook];
  7044. var info = hook + " hook";
  7045. if (handlers) {
  7046. for (var i = 0, j = handlers.length; i < j; i++) {
  7047. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  7048. }
  7049. }
  7050. if (vm._hasHookEvent) {
  7051. vm.$emit('hook:' + hook);
  7052. }
  7053. popTarget();
  7054. }
  7055. /* */
  7056. var MAX_UPDATE_COUNT = 100;
  7057. var queue = [];
  7058. var activatedChildren = [];
  7059. var has = {};
  7060. var circular = {};
  7061. var waiting = false;
  7062. var flushing = false;
  7063. var index = 0;
  7064. /**
  7065. * Reset the scheduler's state.
  7066. */
  7067. function resetSchedulerState () {
  7068. index = queue.length = activatedChildren.length = 0;
  7069. has = {};
  7070. if (true) {
  7071. circular = {};
  7072. }
  7073. waiting = flushing = false;
  7074. }
  7075. // Async edge case #6566 requires saving the timestamp when event listeners are
  7076. // attached. However, calling performance.now() has a perf overhead especially
  7077. // if the page has thousands of event listeners. Instead, we take a timestamp
  7078. // every time the scheduler flushes and use that for all event listeners
  7079. // attached during that flush.
  7080. var currentFlushTimestamp = 0;
  7081. // Async edge case fix requires storing an event listener's attach timestamp.
  7082. var getNow = Date.now;
  7083. // Determine what event timestamp the browser is using. Annoyingly, the
  7084. // timestamp can either be hi-res (relative to page load) or low-res
  7085. // (relative to UNIX epoch), so in order to compare time we have to use the
  7086. // same timestamp type when saving the flush timestamp.
  7087. // All IE versions use low-res event timestamps, and have problematic clock
  7088. // implementations (#9632)
  7089. if (inBrowser && !isIE) {
  7090. var performance = window.performance;
  7091. if (
  7092. performance &&
  7093. typeof performance.now === 'function' &&
  7094. getNow() > document.createEvent('Event').timeStamp
  7095. ) {
  7096. // if the event timestamp, although evaluated AFTER the Date.now(), is
  7097. // smaller than it, it means the event is using a hi-res timestamp,
  7098. // and we need to use the hi-res version for event listener timestamps as
  7099. // well.
  7100. getNow = function () { return performance.now(); };
  7101. }
  7102. }
  7103. /**
  7104. * Flush both queues and run the watchers.
  7105. */
  7106. function flushSchedulerQueue () {
  7107. currentFlushTimestamp = getNow();
  7108. flushing = true;
  7109. var watcher, id;
  7110. // Sort queue before flush.
  7111. // This ensures that:
  7112. // 1. Components are updated from parent to child. (because parent is always
  7113. // created before the child)
  7114. // 2. A component's user watchers are run before its render watcher (because
  7115. // user watchers are created before the render watcher)
  7116. // 3. If a component is destroyed during a parent component's watcher run,
  7117. // its watchers can be skipped.
  7118. queue.sort(function (a, b) { return a.id - b.id; });
  7119. // do not cache length because more watchers might be pushed
  7120. // as we run existing watchers
  7121. for (index = 0; index < queue.length; index++) {
  7122. watcher = queue[index];
  7123. if (watcher.before) {
  7124. watcher.before();
  7125. }
  7126. id = watcher.id;
  7127. has[id] = null;
  7128. watcher.run();
  7129. // in dev build, check and stop circular updates.
  7130. if ( true && has[id] != null) {
  7131. circular[id] = (circular[id] || 0) + 1;
  7132. if (circular[id] > MAX_UPDATE_COUNT) {
  7133. warn(
  7134. 'You may have an infinite update loop ' + (
  7135. watcher.user
  7136. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  7137. : "in a component render function."
  7138. ),
  7139. watcher.vm
  7140. );
  7141. break
  7142. }
  7143. }
  7144. }
  7145. // keep copies of post queues before resetting state
  7146. var activatedQueue = activatedChildren.slice();
  7147. var updatedQueue = queue.slice();
  7148. resetSchedulerState();
  7149. // call component updated and activated hooks
  7150. callActivatedHooks(activatedQueue);
  7151. callUpdatedHooks(updatedQueue);
  7152. // devtool hook
  7153. /* istanbul ignore if */
  7154. if (devtools && config.devtools) {
  7155. devtools.emit('flush');
  7156. }
  7157. }
  7158. function callUpdatedHooks (queue) {
  7159. var i = queue.length;
  7160. while (i--) {
  7161. var watcher = queue[i];
  7162. var vm = watcher.vm;
  7163. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  7164. callHook(vm, 'updated');
  7165. }
  7166. }
  7167. }
  7168. /**
  7169. * Queue a kept-alive component that was activated during patch.
  7170. * The queue will be processed after the entire tree has been patched.
  7171. */
  7172. function queueActivatedComponent (vm) {
  7173. // setting _inactive to false here so that a render function can
  7174. // rely on checking whether it's in an inactive tree (e.g. router-view)
  7175. vm._inactive = false;
  7176. activatedChildren.push(vm);
  7177. }
  7178. function callActivatedHooks (queue) {
  7179. for (var i = 0; i < queue.length; i++) {
  7180. queue[i]._inactive = true;
  7181. activateChildComponent(queue[i], true /* true */);
  7182. }
  7183. }
  7184. /**
  7185. * Push a watcher into the watcher queue.
  7186. * Jobs with duplicate IDs will be skipped unless it's
  7187. * pushed when the queue is being flushed.
  7188. */
  7189. function queueWatcher (watcher) {
  7190. var id = watcher.id;
  7191. if (has[id] == null) {
  7192. has[id] = true;
  7193. if (!flushing) {
  7194. queue.push(watcher);
  7195. } else {
  7196. // if already flushing, splice the watcher based on its id
  7197. // if already past its id, it will be run next immediately.
  7198. var i = queue.length - 1;
  7199. while (i > index && queue[i].id > watcher.id) {
  7200. i--;
  7201. }
  7202. queue.splice(i + 1, 0, watcher);
  7203. }
  7204. // queue the flush
  7205. if (!waiting) {
  7206. waiting = true;
  7207. if ( true && !config.async) {
  7208. flushSchedulerQueue();
  7209. return
  7210. }
  7211. nextTick(flushSchedulerQueue);
  7212. }
  7213. }
  7214. }
  7215. /* */
  7216. var uid$2 = 0;
  7217. /**
  7218. * A watcher parses an expression, collects dependencies,
  7219. * and fires callback when the expression value changes.
  7220. * This is used for both the $watch() api and directives.
  7221. */
  7222. var Watcher = function Watcher (
  7223. vm,
  7224. expOrFn,
  7225. cb,
  7226. options,
  7227. isRenderWatcher
  7228. ) {
  7229. this.vm = vm;
  7230. if (isRenderWatcher) {
  7231. vm._watcher = this;
  7232. }
  7233. vm._watchers.push(this);
  7234. // options
  7235. if (options) {
  7236. this.deep = !!options.deep;
  7237. this.user = !!options.user;
  7238. this.lazy = !!options.lazy;
  7239. this.sync = !!options.sync;
  7240. this.before = options.before;
  7241. } else {
  7242. this.deep = this.user = this.lazy = this.sync = false;
  7243. }
  7244. this.cb = cb;
  7245. this.id = ++uid$2; // uid for batching
  7246. this.active = true;
  7247. this.dirty = this.lazy; // for lazy watchers
  7248. this.deps = [];
  7249. this.newDeps = [];
  7250. this.depIds = new _Set();
  7251. this.newDepIds = new _Set();
  7252. this.expression = true
  7253. ? expOrFn.toString()
  7254. : undefined;
  7255. // parse expression for getter
  7256. if (typeof expOrFn === 'function') {
  7257. this.getter = expOrFn;
  7258. } else {
  7259. this.getter = parsePath(expOrFn);
  7260. if (!this.getter) {
  7261. this.getter = noop;
  7262. true && warn(
  7263. "Failed watching path: \"" + expOrFn + "\" " +
  7264. 'Watcher only accepts simple dot-delimited paths. ' +
  7265. 'For full control, use a function instead.',
  7266. vm
  7267. );
  7268. }
  7269. }
  7270. this.value = this.lazy
  7271. ? undefined
  7272. : this.get();
  7273. };
  7274. /**
  7275. * Evaluate the getter, and re-collect dependencies.
  7276. */
  7277. Watcher.prototype.get = function get () {
  7278. pushTarget(this);
  7279. var value;
  7280. var vm = this.vm;
  7281. try {
  7282. value = this.getter.call(vm, vm);
  7283. } catch (e) {
  7284. if (this.user) {
  7285. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  7286. } else {
  7287. throw e
  7288. }
  7289. } finally {
  7290. // "touch" every property so they are all tracked as
  7291. // dependencies for deep watching
  7292. if (this.deep) {
  7293. traverse(value);
  7294. }
  7295. popTarget();
  7296. this.cleanupDeps();
  7297. }
  7298. return value
  7299. };
  7300. /**
  7301. * Add a dependency to this directive.
  7302. */
  7303. Watcher.prototype.addDep = function addDep (dep) {
  7304. var id = dep.id;
  7305. if (!this.newDepIds.has(id)) {
  7306. this.newDepIds.add(id);
  7307. this.newDeps.push(dep);
  7308. if (!this.depIds.has(id)) {
  7309. dep.addSub(this);
  7310. }
  7311. }
  7312. };
  7313. /**
  7314. * Clean up for dependency collection.
  7315. */
  7316. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  7317. var i = this.deps.length;
  7318. while (i--) {
  7319. var dep = this.deps[i];
  7320. if (!this.newDepIds.has(dep.id)) {
  7321. dep.removeSub(this);
  7322. }
  7323. }
  7324. var tmp = this.depIds;
  7325. this.depIds = this.newDepIds;
  7326. this.newDepIds = tmp;
  7327. this.newDepIds.clear();
  7328. tmp = this.deps;
  7329. this.deps = this.newDeps;
  7330. this.newDeps = tmp;
  7331. this.newDeps.length = 0;
  7332. };
  7333. /**
  7334. * Subscriber interface.
  7335. * Will be called when a dependency changes.
  7336. */
  7337. Watcher.prototype.update = function update () {
  7338. /* istanbul ignore else */
  7339. if (this.lazy) {
  7340. this.dirty = true;
  7341. } else if (this.sync) {
  7342. this.run();
  7343. } else {
  7344. queueWatcher(this);
  7345. }
  7346. };
  7347. /**
  7348. * Scheduler job interface.
  7349. * Will be called by the scheduler.
  7350. */
  7351. Watcher.prototype.run = function run () {
  7352. if (this.active) {
  7353. var value = this.get();
  7354. if (
  7355. value !== this.value ||
  7356. // Deep watchers and watchers on Object/Arrays should fire even
  7357. // when the value is the same, because the value may
  7358. // have mutated.
  7359. isObject(value) ||
  7360. this.deep
  7361. ) {
  7362. // set new value
  7363. var oldValue = this.value;
  7364. this.value = value;
  7365. if (this.user) {
  7366. try {
  7367. this.cb.call(this.vm, value, oldValue);
  7368. } catch (e) {
  7369. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  7370. }
  7371. } else {
  7372. this.cb.call(this.vm, value, oldValue);
  7373. }
  7374. }
  7375. }
  7376. };
  7377. /**
  7378. * Evaluate the value of the watcher.
  7379. * This only gets called for lazy watchers.
  7380. */
  7381. Watcher.prototype.evaluate = function evaluate () {
  7382. this.value = this.get();
  7383. this.dirty = false;
  7384. };
  7385. /**
  7386. * Depend on all deps collected by this watcher.
  7387. */
  7388. Watcher.prototype.depend = function depend () {
  7389. var i = this.deps.length;
  7390. while (i--) {
  7391. this.deps[i].depend();
  7392. }
  7393. };
  7394. /**
  7395. * Remove self from all dependencies' subscriber list.
  7396. */
  7397. Watcher.prototype.teardown = function teardown () {
  7398. if (this.active) {
  7399. // remove self from vm's watcher list
  7400. // this is a somewhat expensive operation so we skip it
  7401. // if the vm is being destroyed.
  7402. if (!this.vm._isBeingDestroyed) {
  7403. remove(this.vm._watchers, this);
  7404. }
  7405. var i = this.deps.length;
  7406. while (i--) {
  7407. this.deps[i].removeSub(this);
  7408. }
  7409. this.active = false;
  7410. }
  7411. };
  7412. /* */
  7413. var sharedPropertyDefinition = {
  7414. enumerable: true,
  7415. configurable: true,
  7416. get: noop,
  7417. set: noop
  7418. };
  7419. function proxy (target, sourceKey, key) {
  7420. sharedPropertyDefinition.get = function proxyGetter () {
  7421. return this[sourceKey][key]
  7422. };
  7423. sharedPropertyDefinition.set = function proxySetter (val) {
  7424. this[sourceKey][key] = val;
  7425. };
  7426. Object.defineProperty(target, key, sharedPropertyDefinition);
  7427. }
  7428. function initState (vm) {
  7429. vm._watchers = [];
  7430. var opts = vm.$options;
  7431. if (opts.props) { initProps(vm, opts.props); }
  7432. if (opts.methods) { initMethods(vm, opts.methods); }
  7433. if (opts.data) {
  7434. initData(vm);
  7435. } else {
  7436. observe(vm._data = {}, true /* asRootData */);
  7437. }
  7438. if (opts.computed) { initComputed(vm, opts.computed); }
  7439. if (opts.watch && opts.watch !== nativeWatch) {
  7440. initWatch(vm, opts.watch);
  7441. }
  7442. }
  7443. function initProps (vm, propsOptions) {
  7444. var propsData = vm.$options.propsData || {};
  7445. var props = vm._props = {};
  7446. // cache prop keys so that future props updates can iterate using Array
  7447. // instead of dynamic object key enumeration.
  7448. var keys = vm.$options._propKeys = [];
  7449. var isRoot = !vm.$parent;
  7450. // root instance props should be converted
  7451. if (!isRoot) {
  7452. toggleObserving(false);
  7453. }
  7454. var loop = function ( key ) {
  7455. keys.push(key);
  7456. var value = validateProp(key, propsOptions, propsData, vm);
  7457. /* istanbul ignore else */
  7458. if (true) {
  7459. var hyphenatedKey = hyphenate(key);
  7460. if (isReservedAttribute(hyphenatedKey) ||
  7461. config.isReservedAttr(hyphenatedKey)) {
  7462. warn(
  7463. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  7464. vm
  7465. );
  7466. }
  7467. defineReactive$$1(props, key, value, function () {
  7468. if (!isRoot && !isUpdatingChildComponent) {
  7469. {
  7470. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  7471. return
  7472. }
  7473. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  7474. if(
  7475. key === 'value' &&
  7476. Array.isArray(vm.$options.behaviors) &&
  7477. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  7478. ){
  7479. return
  7480. }
  7481. if(vm._getFormData){
  7482. return
  7483. }
  7484. var $parent = vm.$parent;
  7485. while($parent){
  7486. if($parent.__next_tick_pending){
  7487. return
  7488. }
  7489. $parent = $parent.$parent;
  7490. }
  7491. }
  7492. warn(
  7493. "Avoid mutating a prop directly since the value will be " +
  7494. "overwritten whenever the parent component re-renders. " +
  7495. "Instead, use a data or computed property based on the prop's " +
  7496. "value. Prop being mutated: \"" + key + "\"",
  7497. vm
  7498. );
  7499. }
  7500. });
  7501. } else {}
  7502. // static props are already proxied on the component's prototype
  7503. // during Vue.extend(). We only need to proxy props defined at
  7504. // instantiation here.
  7505. if (!(key in vm)) {
  7506. proxy(vm, "_props", key);
  7507. }
  7508. };
  7509. for (var key in propsOptions) loop( key );
  7510. toggleObserving(true);
  7511. }
  7512. function initData (vm) {
  7513. var data = vm.$options.data;
  7514. data = vm._data = typeof data === 'function'
  7515. ? getData(data, vm)
  7516. : data || {};
  7517. if (!isPlainObject(data)) {
  7518. data = {};
  7519. true && warn(
  7520. 'data functions should return an object:\n' +
  7521. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  7522. vm
  7523. );
  7524. }
  7525. // proxy data on instance
  7526. var keys = Object.keys(data);
  7527. var props = vm.$options.props;
  7528. var methods = vm.$options.methods;
  7529. var i = keys.length;
  7530. while (i--) {
  7531. var key = keys[i];
  7532. if (true) {
  7533. if (methods && hasOwn(methods, key)) {
  7534. warn(
  7535. ("Method \"" + key + "\" has already been defined as a data property."),
  7536. vm
  7537. );
  7538. }
  7539. }
  7540. if (props && hasOwn(props, key)) {
  7541. true && warn(
  7542. "The data property \"" + key + "\" is already declared as a prop. " +
  7543. "Use prop default value instead.",
  7544. vm
  7545. );
  7546. } else if (!isReserved(key)) {
  7547. proxy(vm, "_data", key);
  7548. }
  7549. }
  7550. // observe data
  7551. observe(data, true /* asRootData */);
  7552. }
  7553. function getData (data, vm) {
  7554. // #7573 disable dep collection when invoking data getters
  7555. pushTarget();
  7556. try {
  7557. return data.call(vm, vm)
  7558. } catch (e) {
  7559. handleError(e, vm, "data()");
  7560. return {}
  7561. } finally {
  7562. popTarget();
  7563. }
  7564. }
  7565. var computedWatcherOptions = { lazy: true };
  7566. function initComputed (vm, computed) {
  7567. // $flow-disable-line
  7568. var watchers = vm._computedWatchers = Object.create(null);
  7569. // computed properties are just getters during SSR
  7570. var isSSR = isServerRendering();
  7571. for (var key in computed) {
  7572. var userDef = computed[key];
  7573. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  7574. if ( true && getter == null) {
  7575. warn(
  7576. ("Getter is missing for computed property \"" + key + "\"."),
  7577. vm
  7578. );
  7579. }
  7580. if (!isSSR) {
  7581. // create internal watcher for the computed property.
  7582. watchers[key] = new Watcher(
  7583. vm,
  7584. getter || noop,
  7585. noop,
  7586. computedWatcherOptions
  7587. );
  7588. }
  7589. // component-defined computed properties are already defined on the
  7590. // component prototype. We only need to define computed properties defined
  7591. // at instantiation here.
  7592. if (!(key in vm)) {
  7593. defineComputed(vm, key, userDef);
  7594. } else if (true) {
  7595. if (key in vm.$data) {
  7596. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  7597. } else if (vm.$options.props && key in vm.$options.props) {
  7598. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  7599. }
  7600. }
  7601. }
  7602. }
  7603. function defineComputed (
  7604. target,
  7605. key,
  7606. userDef
  7607. ) {
  7608. var shouldCache = !isServerRendering();
  7609. if (typeof userDef === 'function') {
  7610. sharedPropertyDefinition.get = shouldCache
  7611. ? createComputedGetter(key)
  7612. : createGetterInvoker(userDef);
  7613. sharedPropertyDefinition.set = noop;
  7614. } else {
  7615. sharedPropertyDefinition.get = userDef.get
  7616. ? shouldCache && userDef.cache !== false
  7617. ? createComputedGetter(key)
  7618. : createGetterInvoker(userDef.get)
  7619. : noop;
  7620. sharedPropertyDefinition.set = userDef.set || noop;
  7621. }
  7622. if ( true &&
  7623. sharedPropertyDefinition.set === noop) {
  7624. sharedPropertyDefinition.set = function () {
  7625. warn(
  7626. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  7627. this
  7628. );
  7629. };
  7630. }
  7631. Object.defineProperty(target, key, sharedPropertyDefinition);
  7632. }
  7633. function createComputedGetter (key) {
  7634. return function computedGetter () {
  7635. var watcher = this._computedWatchers && this._computedWatchers[key];
  7636. if (watcher) {
  7637. if (watcher.dirty) {
  7638. watcher.evaluate();
  7639. }
  7640. if (Dep.SharedObject.target) {// fixed by xxxxxx
  7641. watcher.depend();
  7642. }
  7643. return watcher.value
  7644. }
  7645. }
  7646. }
  7647. function createGetterInvoker(fn) {
  7648. return function computedGetter () {
  7649. return fn.call(this, this)
  7650. }
  7651. }
  7652. function initMethods (vm, methods) {
  7653. var props = vm.$options.props;
  7654. for (var key in methods) {
  7655. if (true) {
  7656. if (typeof methods[key] !== 'function') {
  7657. warn(
  7658. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  7659. "Did you reference the function correctly?",
  7660. vm
  7661. );
  7662. }
  7663. if (props && hasOwn(props, key)) {
  7664. warn(
  7665. ("Method \"" + key + "\" has already been defined as a prop."),
  7666. vm
  7667. );
  7668. }
  7669. if ((key in vm) && isReserved(key)) {
  7670. warn(
  7671. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  7672. "Avoid defining component methods that start with _ or $."
  7673. );
  7674. }
  7675. }
  7676. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  7677. }
  7678. }
  7679. function initWatch (vm, watch) {
  7680. for (var key in watch) {
  7681. var handler = watch[key];
  7682. if (Array.isArray(handler)) {
  7683. for (var i = 0; i < handler.length; i++) {
  7684. createWatcher(vm, key, handler[i]);
  7685. }
  7686. } else {
  7687. createWatcher(vm, key, handler);
  7688. }
  7689. }
  7690. }
  7691. function createWatcher (
  7692. vm,
  7693. expOrFn,
  7694. handler,
  7695. options
  7696. ) {
  7697. if (isPlainObject(handler)) {
  7698. options = handler;
  7699. handler = handler.handler;
  7700. }
  7701. if (typeof handler === 'string') {
  7702. handler = vm[handler];
  7703. }
  7704. return vm.$watch(expOrFn, handler, options)
  7705. }
  7706. function stateMixin (Vue) {
  7707. // flow somehow has problems with directly declared definition object
  7708. // when using Object.defineProperty, so we have to procedurally build up
  7709. // the object here.
  7710. var dataDef = {};
  7711. dataDef.get = function () { return this._data };
  7712. var propsDef = {};
  7713. propsDef.get = function () { return this._props };
  7714. if (true) {
  7715. dataDef.set = function () {
  7716. warn(
  7717. 'Avoid replacing instance root $data. ' +
  7718. 'Use nested data properties instead.',
  7719. this
  7720. );
  7721. };
  7722. propsDef.set = function () {
  7723. warn("$props is readonly.", this);
  7724. };
  7725. }
  7726. Object.defineProperty(Vue.prototype, '$data', dataDef);
  7727. Object.defineProperty(Vue.prototype, '$props', propsDef);
  7728. Vue.prototype.$set = set;
  7729. Vue.prototype.$delete = del;
  7730. Vue.prototype.$watch = function (
  7731. expOrFn,
  7732. cb,
  7733. options
  7734. ) {
  7735. var vm = this;
  7736. if (isPlainObject(cb)) {
  7737. return createWatcher(vm, expOrFn, cb, options)
  7738. }
  7739. options = options || {};
  7740. options.user = true;
  7741. var watcher = new Watcher(vm, expOrFn, cb, options);
  7742. if (options.immediate) {
  7743. try {
  7744. cb.call(vm, watcher.value);
  7745. } catch (error) {
  7746. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  7747. }
  7748. }
  7749. return function unwatchFn () {
  7750. watcher.teardown();
  7751. }
  7752. };
  7753. }
  7754. /* */
  7755. var uid$3 = 0;
  7756. function initMixin (Vue) {
  7757. Vue.prototype._init = function (options) {
  7758. var vm = this;
  7759. // a uid
  7760. vm._uid = uid$3++;
  7761. var startTag, endTag;
  7762. /* istanbul ignore if */
  7763. if ( true && config.performance && mark) {
  7764. startTag = "vue-perf-start:" + (vm._uid);
  7765. endTag = "vue-perf-end:" + (vm._uid);
  7766. mark(startTag);
  7767. }
  7768. // a flag to avoid this being observed
  7769. vm._isVue = true;
  7770. // merge options
  7771. if (options && options._isComponent) {
  7772. // optimize internal component instantiation
  7773. // since dynamic options merging is pretty slow, and none of the
  7774. // internal component options needs special treatment.
  7775. initInternalComponent(vm, options);
  7776. } else {
  7777. vm.$options = mergeOptions(
  7778. resolveConstructorOptions(vm.constructor),
  7779. options || {},
  7780. vm
  7781. );
  7782. }
  7783. /* istanbul ignore else */
  7784. if (true) {
  7785. initProxy(vm);
  7786. } else {}
  7787. // expose real self
  7788. vm._self = vm;
  7789. initLifecycle(vm);
  7790. initEvents(vm);
  7791. initRender(vm);
  7792. callHook(vm, 'beforeCreate');
  7793. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  7794. initState(vm);
  7795. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  7796. !vm._$fallback && callHook(vm, 'created');
  7797. /* istanbul ignore if */
  7798. if ( true && config.performance && mark) {
  7799. vm._name = formatComponentName(vm, false);
  7800. mark(endTag);
  7801. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  7802. }
  7803. if (vm.$options.el) {
  7804. vm.$mount(vm.$options.el);
  7805. }
  7806. };
  7807. }
  7808. function initInternalComponent (vm, options) {
  7809. var opts = vm.$options = Object.create(vm.constructor.options);
  7810. // doing this because it's faster than dynamic enumeration.
  7811. var parentVnode = options._parentVnode;
  7812. opts.parent = options.parent;
  7813. opts._parentVnode = parentVnode;
  7814. var vnodeComponentOptions = parentVnode.componentOptions;
  7815. opts.propsData = vnodeComponentOptions.propsData;
  7816. opts._parentListeners = vnodeComponentOptions.listeners;
  7817. opts._renderChildren = vnodeComponentOptions.children;
  7818. opts._componentTag = vnodeComponentOptions.tag;
  7819. if (options.render) {
  7820. opts.render = options.render;
  7821. opts.staticRenderFns = options.staticRenderFns;
  7822. }
  7823. }
  7824. function resolveConstructorOptions (Ctor) {
  7825. var options = Ctor.options;
  7826. if (Ctor.super) {
  7827. var superOptions = resolveConstructorOptions(Ctor.super);
  7828. var cachedSuperOptions = Ctor.superOptions;
  7829. if (superOptions !== cachedSuperOptions) {
  7830. // super option changed,
  7831. // need to resolve new options.
  7832. Ctor.superOptions = superOptions;
  7833. // check if there are any late-modified/attached options (#4976)
  7834. var modifiedOptions = resolveModifiedOptions(Ctor);
  7835. // update base extend options
  7836. if (modifiedOptions) {
  7837. extend(Ctor.extendOptions, modifiedOptions);
  7838. }
  7839. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  7840. if (options.name) {
  7841. options.components[options.name] = Ctor;
  7842. }
  7843. }
  7844. }
  7845. return options
  7846. }
  7847. function resolveModifiedOptions (Ctor) {
  7848. var modified;
  7849. var latest = Ctor.options;
  7850. var sealed = Ctor.sealedOptions;
  7851. for (var key in latest) {
  7852. if (latest[key] !== sealed[key]) {
  7853. if (!modified) { modified = {}; }
  7854. modified[key] = latest[key];
  7855. }
  7856. }
  7857. return modified
  7858. }
  7859. function Vue (options) {
  7860. if ( true &&
  7861. !(this instanceof Vue)
  7862. ) {
  7863. warn('Vue is a constructor and should be called with the `new` keyword');
  7864. }
  7865. this._init(options);
  7866. }
  7867. initMixin(Vue);
  7868. stateMixin(Vue);
  7869. eventsMixin(Vue);
  7870. lifecycleMixin(Vue);
  7871. renderMixin(Vue);
  7872. /* */
  7873. function initUse (Vue) {
  7874. Vue.use = function (plugin) {
  7875. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  7876. if (installedPlugins.indexOf(plugin) > -1) {
  7877. return this
  7878. }
  7879. // additional parameters
  7880. var args = toArray(arguments, 1);
  7881. args.unshift(this);
  7882. if (typeof plugin.install === 'function') {
  7883. plugin.install.apply(plugin, args);
  7884. } else if (typeof plugin === 'function') {
  7885. plugin.apply(null, args);
  7886. }
  7887. installedPlugins.push(plugin);
  7888. return this
  7889. };
  7890. }
  7891. /* */
  7892. function initMixin$1 (Vue) {
  7893. Vue.mixin = function (mixin) {
  7894. this.options = mergeOptions(this.options, mixin);
  7895. return this
  7896. };
  7897. }
  7898. /* */
  7899. function initExtend (Vue) {
  7900. /**
  7901. * Each instance constructor, including Vue, has a unique
  7902. * cid. This enables us to create wrapped "child
  7903. * constructors" for prototypal inheritance and cache them.
  7904. */
  7905. Vue.cid = 0;
  7906. var cid = 1;
  7907. /**
  7908. * Class inheritance
  7909. */
  7910. Vue.extend = function (extendOptions) {
  7911. extendOptions = extendOptions || {};
  7912. var Super = this;
  7913. var SuperId = Super.cid;
  7914. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  7915. if (cachedCtors[SuperId]) {
  7916. return cachedCtors[SuperId]
  7917. }
  7918. var name = extendOptions.name || Super.options.name;
  7919. if ( true && name) {
  7920. validateComponentName(name);
  7921. }
  7922. var Sub = function VueComponent (options) {
  7923. this._init(options);
  7924. };
  7925. Sub.prototype = Object.create(Super.prototype);
  7926. Sub.prototype.constructor = Sub;
  7927. Sub.cid = cid++;
  7928. Sub.options = mergeOptions(
  7929. Super.options,
  7930. extendOptions
  7931. );
  7932. Sub['super'] = Super;
  7933. // For props and computed properties, we define the proxy getters on
  7934. // the Vue instances at extension time, on the extended prototype. This
  7935. // avoids Object.defineProperty calls for each instance created.
  7936. if (Sub.options.props) {
  7937. initProps$1(Sub);
  7938. }
  7939. if (Sub.options.computed) {
  7940. initComputed$1(Sub);
  7941. }
  7942. // allow further extension/mixin/plugin usage
  7943. Sub.extend = Super.extend;
  7944. Sub.mixin = Super.mixin;
  7945. Sub.use = Super.use;
  7946. // create asset registers, so extended classes
  7947. // can have their private assets too.
  7948. ASSET_TYPES.forEach(function (type) {
  7949. Sub[type] = Super[type];
  7950. });
  7951. // enable recursive self-lookup
  7952. if (name) {
  7953. Sub.options.components[name] = Sub;
  7954. }
  7955. // keep a reference to the super options at extension time.
  7956. // later at instantiation we can check if Super's options have
  7957. // been updated.
  7958. Sub.superOptions = Super.options;
  7959. Sub.extendOptions = extendOptions;
  7960. Sub.sealedOptions = extend({}, Sub.options);
  7961. // cache constructor
  7962. cachedCtors[SuperId] = Sub;
  7963. return Sub
  7964. };
  7965. }
  7966. function initProps$1 (Comp) {
  7967. var props = Comp.options.props;
  7968. for (var key in props) {
  7969. proxy(Comp.prototype, "_props", key);
  7970. }
  7971. }
  7972. function initComputed$1 (Comp) {
  7973. var computed = Comp.options.computed;
  7974. for (var key in computed) {
  7975. defineComputed(Comp.prototype, key, computed[key]);
  7976. }
  7977. }
  7978. /* */
  7979. function initAssetRegisters (Vue) {
  7980. /**
  7981. * Create asset registration methods.
  7982. */
  7983. ASSET_TYPES.forEach(function (type) {
  7984. Vue[type] = function (
  7985. id,
  7986. definition
  7987. ) {
  7988. if (!definition) {
  7989. return this.options[type + 's'][id]
  7990. } else {
  7991. /* istanbul ignore if */
  7992. if ( true && type === 'component') {
  7993. validateComponentName(id);
  7994. }
  7995. if (type === 'component' && isPlainObject(definition)) {
  7996. definition.name = definition.name || id;
  7997. definition = this.options._base.extend(definition);
  7998. }
  7999. if (type === 'directive' && typeof definition === 'function') {
  8000. definition = { bind: definition, update: definition };
  8001. }
  8002. this.options[type + 's'][id] = definition;
  8003. return definition
  8004. }
  8005. };
  8006. });
  8007. }
  8008. /* */
  8009. function getComponentName (opts) {
  8010. return opts && (opts.Ctor.options.name || opts.tag)
  8011. }
  8012. function matches (pattern, name) {
  8013. if (Array.isArray(pattern)) {
  8014. return pattern.indexOf(name) > -1
  8015. } else if (typeof pattern === 'string') {
  8016. return pattern.split(',').indexOf(name) > -1
  8017. } else if (isRegExp(pattern)) {
  8018. return pattern.test(name)
  8019. }
  8020. /* istanbul ignore next */
  8021. return false
  8022. }
  8023. function pruneCache (keepAliveInstance, filter) {
  8024. var cache = keepAliveInstance.cache;
  8025. var keys = keepAliveInstance.keys;
  8026. var _vnode = keepAliveInstance._vnode;
  8027. for (var key in cache) {
  8028. var cachedNode = cache[key];
  8029. if (cachedNode) {
  8030. var name = getComponentName(cachedNode.componentOptions);
  8031. if (name && !filter(name)) {
  8032. pruneCacheEntry(cache, key, keys, _vnode);
  8033. }
  8034. }
  8035. }
  8036. }
  8037. function pruneCacheEntry (
  8038. cache,
  8039. key,
  8040. keys,
  8041. current
  8042. ) {
  8043. var cached$$1 = cache[key];
  8044. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  8045. cached$$1.componentInstance.$destroy();
  8046. }
  8047. cache[key] = null;
  8048. remove(keys, key);
  8049. }
  8050. var patternTypes = [String, RegExp, Array];
  8051. var KeepAlive = {
  8052. name: 'keep-alive',
  8053. abstract: true,
  8054. props: {
  8055. include: patternTypes,
  8056. exclude: patternTypes,
  8057. max: [String, Number]
  8058. },
  8059. created: function created () {
  8060. this.cache = Object.create(null);
  8061. this.keys = [];
  8062. },
  8063. destroyed: function destroyed () {
  8064. for (var key in this.cache) {
  8065. pruneCacheEntry(this.cache, key, this.keys);
  8066. }
  8067. },
  8068. mounted: function mounted () {
  8069. var this$1 = this;
  8070. this.$watch('include', function (val) {
  8071. pruneCache(this$1, function (name) { return matches(val, name); });
  8072. });
  8073. this.$watch('exclude', function (val) {
  8074. pruneCache(this$1, function (name) { return !matches(val, name); });
  8075. });
  8076. },
  8077. render: function render () {
  8078. var slot = this.$slots.default;
  8079. var vnode = getFirstComponentChild(slot);
  8080. var componentOptions = vnode && vnode.componentOptions;
  8081. if (componentOptions) {
  8082. // check pattern
  8083. var name = getComponentName(componentOptions);
  8084. var ref = this;
  8085. var include = ref.include;
  8086. var exclude = ref.exclude;
  8087. if (
  8088. // not included
  8089. (include && (!name || !matches(include, name))) ||
  8090. // excluded
  8091. (exclude && name && matches(exclude, name))
  8092. ) {
  8093. return vnode
  8094. }
  8095. var ref$1 = this;
  8096. var cache = ref$1.cache;
  8097. var keys = ref$1.keys;
  8098. var key = vnode.key == null
  8099. // same constructor may get registered as different local components
  8100. // so cid alone is not enough (#3269)
  8101. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  8102. : vnode.key;
  8103. if (cache[key]) {
  8104. vnode.componentInstance = cache[key].componentInstance;
  8105. // make current key freshest
  8106. remove(keys, key);
  8107. keys.push(key);
  8108. } else {
  8109. cache[key] = vnode;
  8110. keys.push(key);
  8111. // prune oldest entry
  8112. if (this.max && keys.length > parseInt(this.max)) {
  8113. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  8114. }
  8115. }
  8116. vnode.data.keepAlive = true;
  8117. }
  8118. return vnode || (slot && slot[0])
  8119. }
  8120. };
  8121. var builtInComponents = {
  8122. KeepAlive: KeepAlive
  8123. };
  8124. /* */
  8125. function initGlobalAPI (Vue) {
  8126. // config
  8127. var configDef = {};
  8128. configDef.get = function () { return config; };
  8129. if (true) {
  8130. configDef.set = function () {
  8131. warn(
  8132. 'Do not replace the Vue.config object, set individual fields instead.'
  8133. );
  8134. };
  8135. }
  8136. Object.defineProperty(Vue, 'config', configDef);
  8137. // exposed util methods.
  8138. // NOTE: these are not considered part of the public API - avoid relying on
  8139. // them unless you are aware of the risk.
  8140. Vue.util = {
  8141. warn: warn,
  8142. extend: extend,
  8143. mergeOptions: mergeOptions,
  8144. defineReactive: defineReactive$$1
  8145. };
  8146. Vue.set = set;
  8147. Vue.delete = del;
  8148. Vue.nextTick = nextTick;
  8149. // 2.6 explicit observable API
  8150. Vue.observable = function (obj) {
  8151. observe(obj);
  8152. return obj
  8153. };
  8154. Vue.options = Object.create(null);
  8155. ASSET_TYPES.forEach(function (type) {
  8156. Vue.options[type + 's'] = Object.create(null);
  8157. });
  8158. // this is used to identify the "base" constructor to extend all plain-object
  8159. // components with in Weex's multi-instance scenarios.
  8160. Vue.options._base = Vue;
  8161. extend(Vue.options.components, builtInComponents);
  8162. initUse(Vue);
  8163. initMixin$1(Vue);
  8164. initExtend(Vue);
  8165. initAssetRegisters(Vue);
  8166. }
  8167. initGlobalAPI(Vue);
  8168. Object.defineProperty(Vue.prototype, '$isServer', {
  8169. get: isServerRendering
  8170. });
  8171. Object.defineProperty(Vue.prototype, '$ssrContext', {
  8172. get: function get () {
  8173. /* istanbul ignore next */
  8174. return this.$vnode && this.$vnode.ssrContext
  8175. }
  8176. });
  8177. // expose FunctionalRenderContext for ssr runtime helper installation
  8178. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  8179. value: FunctionalRenderContext
  8180. });
  8181. Vue.version = '2.6.11';
  8182. /**
  8183. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  8184. */
  8185. var ARRAYTYPE = '[object Array]';
  8186. var OBJECTTYPE = '[object Object]';
  8187. var NULLTYPE = '[object Null]';
  8188. var UNDEFINEDTYPE = '[object Undefined]';
  8189. // const FUNCTIONTYPE = '[object Function]'
  8190. function diff(current, pre) {
  8191. var result = {};
  8192. syncKeys(current, pre);
  8193. _diff(current, pre, '', result);
  8194. return result
  8195. }
  8196. function syncKeys(current, pre) {
  8197. if (current === pre) { return }
  8198. var rootCurrentType = type(current);
  8199. var rootPreType = type(pre);
  8200. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  8201. if(Object.keys(current).length >= Object.keys(pre).length){
  8202. for (var key in pre) {
  8203. var currentValue = current[key];
  8204. if (currentValue === undefined) {
  8205. current[key] = null;
  8206. } else {
  8207. syncKeys(currentValue, pre[key]);
  8208. }
  8209. }
  8210. }
  8211. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  8212. if (current.length >= pre.length) {
  8213. pre.forEach(function (item, index) {
  8214. syncKeys(current[index], item);
  8215. });
  8216. }
  8217. }
  8218. }
  8219. function nullOrUndefined(currentType, preType) {
  8220. if(
  8221. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  8222. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  8223. ) {
  8224. return false
  8225. }
  8226. return true
  8227. }
  8228. function _diff(current, pre, path, result) {
  8229. if (current === pre) { return }
  8230. var rootCurrentType = type(current);
  8231. var rootPreType = type(pre);
  8232. if (rootCurrentType == OBJECTTYPE) {
  8233. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  8234. setResult(result, path, current);
  8235. } else {
  8236. var loop = function ( key ) {
  8237. var currentValue = current[key];
  8238. var preValue = pre[key];
  8239. var currentType = type(currentValue);
  8240. var preType = type(preValue);
  8241. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  8242. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  8243. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8244. }
  8245. } else if (currentType == ARRAYTYPE) {
  8246. if (preType != ARRAYTYPE) {
  8247. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8248. } else {
  8249. if (currentValue.length < preValue.length) {
  8250. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8251. } else {
  8252. currentValue.forEach(function (item, index) {
  8253. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  8254. });
  8255. }
  8256. }
  8257. } else if (currentType == OBJECTTYPE) {
  8258. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  8259. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8260. } else {
  8261. for (var subKey in currentValue) {
  8262. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  8263. }
  8264. }
  8265. }
  8266. };
  8267. for (var key in current) loop( key );
  8268. }
  8269. } else if (rootCurrentType == ARRAYTYPE) {
  8270. if (rootPreType != ARRAYTYPE) {
  8271. setResult(result, path, current);
  8272. } else {
  8273. if (current.length < pre.length) {
  8274. setResult(result, path, current);
  8275. } else {
  8276. current.forEach(function (item, index) {
  8277. _diff(item, pre[index], path + '[' + index + ']', result);
  8278. });
  8279. }
  8280. }
  8281. } else {
  8282. setResult(result, path, current);
  8283. }
  8284. }
  8285. function setResult(result, k, v) {
  8286. // if (type(v) != FUNCTIONTYPE) {
  8287. result[k] = v;
  8288. // }
  8289. }
  8290. function type(obj) {
  8291. return Object.prototype.toString.call(obj)
  8292. }
  8293. /* */
  8294. function flushCallbacks$1(vm) {
  8295. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  8296. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"自由天空","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8297. var mpInstance = vm.$scope;
  8298. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8299. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  8300. }
  8301. var copies = vm.__next_tick_callbacks.slice(0);
  8302. vm.__next_tick_callbacks.length = 0;
  8303. for (var i = 0; i < copies.length; i++) {
  8304. copies[i]();
  8305. }
  8306. }
  8307. }
  8308. function hasRenderWatcher(vm) {
  8309. return queue.find(function (watcher) { return vm._watcher === watcher; })
  8310. }
  8311. function nextTick$1(vm, cb) {
  8312. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  8313. //2.nextTick 之前存在 render watcher
  8314. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  8315. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"自由天空","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8316. var mpInstance = vm.$scope;
  8317. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8318. ']:nextVueTick');
  8319. }
  8320. return nextTick(cb, vm)
  8321. }else{
  8322. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"自由天空","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8323. var mpInstance$1 = vm.$scope;
  8324. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  8325. ']:nextMPTick');
  8326. }
  8327. }
  8328. var _resolve;
  8329. if (!vm.__next_tick_callbacks) {
  8330. vm.__next_tick_callbacks = [];
  8331. }
  8332. vm.__next_tick_callbacks.push(function () {
  8333. if (cb) {
  8334. try {
  8335. cb.call(vm);
  8336. } catch (e) {
  8337. handleError(e, vm, 'nextTick');
  8338. }
  8339. } else if (_resolve) {
  8340. _resolve(vm);
  8341. }
  8342. });
  8343. // $flow-disable-line
  8344. if (!cb && typeof Promise !== 'undefined') {
  8345. return new Promise(function (resolve) {
  8346. _resolve = resolve;
  8347. })
  8348. }
  8349. }
  8350. /* */
  8351. function clearInstance(key, value) {
  8352. // 简易去除 Vue 和小程序组件实例
  8353. if (value) {
  8354. if (value._isVue || value.__v_isMPComponent) {
  8355. return {}
  8356. }
  8357. }
  8358. return value
  8359. }
  8360. function cloneWithData(vm) {
  8361. // 确保当前 vm 所有数据被同步
  8362. var ret = Object.create(null);
  8363. var dataKeys = [].concat(
  8364. Object.keys(vm._data || {}),
  8365. Object.keys(vm._computedWatchers || {}));
  8366. dataKeys.reduce(function(ret, key) {
  8367. ret[key] = vm[key];
  8368. return ret
  8369. }, ret);
  8370. // vue-composition-api
  8371. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  8372. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  8373. if (rawBindings) {
  8374. Object.keys(rawBindings).forEach(function (key) {
  8375. ret[key] = vm[key];
  8376. });
  8377. }
  8378. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  8379. Object.assign(ret, vm.$mp.data || {});
  8380. if (
  8381. Array.isArray(vm.$options.behaviors) &&
  8382. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  8383. ) { //form-field
  8384. ret['name'] = vm.name;
  8385. ret['value'] = vm.value;
  8386. }
  8387. return JSON.parse(JSON.stringify(ret, clearInstance))
  8388. }
  8389. var patch = function(oldVnode, vnode) {
  8390. var this$1 = this;
  8391. if (vnode === null) { //destroy
  8392. return
  8393. }
  8394. if (this.mpType === 'page' || this.mpType === 'component') {
  8395. var mpInstance = this.$scope;
  8396. var data = Object.create(null);
  8397. try {
  8398. data = cloneWithData(this);
  8399. } catch (err) {
  8400. console.error(err);
  8401. }
  8402. data.__webviewId__ = mpInstance.data.__webviewId__;
  8403. var mpData = Object.create(null);
  8404. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  8405. mpData[key] = mpInstance.data[key];
  8406. });
  8407. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  8408. if (Object.keys(diffData).length) {
  8409. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"自由天空","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8410. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  8411. ']差量更新',
  8412. JSON.stringify(diffData));
  8413. }
  8414. this.__next_tick_pending = true;
  8415. mpInstance.setData(diffData, function () {
  8416. this$1.__next_tick_pending = false;
  8417. flushCallbacks$1(this$1);
  8418. });
  8419. } else {
  8420. flushCallbacks$1(this);
  8421. }
  8422. }
  8423. };
  8424. /* */
  8425. function createEmptyRender() {
  8426. }
  8427. function mountComponent$1(
  8428. vm,
  8429. el,
  8430. hydrating
  8431. ) {
  8432. if (!vm.mpType) {//main.js 中的 new Vue
  8433. return vm
  8434. }
  8435. if (vm.mpType === 'app') {
  8436. vm.$options.render = createEmptyRender;
  8437. }
  8438. if (!vm.$options.render) {
  8439. vm.$options.render = createEmptyRender;
  8440. if (true) {
  8441. /* istanbul ignore if */
  8442. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  8443. vm.$options.el || el) {
  8444. warn(
  8445. 'You are using the runtime-only build of Vue where the template ' +
  8446. 'compiler is not available. Either pre-compile the templates into ' +
  8447. 'render functions, or use the compiler-included build.',
  8448. vm
  8449. );
  8450. } else {
  8451. warn(
  8452. 'Failed to mount component: template or render function not defined.',
  8453. vm
  8454. );
  8455. }
  8456. }
  8457. }
  8458. !vm._$fallback && callHook(vm, 'beforeMount');
  8459. var updateComponent = function () {
  8460. vm._update(vm._render(), hydrating);
  8461. };
  8462. // we set this to vm._watcher inside the watcher's constructor
  8463. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  8464. // component's mounted hook), which relies on vm._watcher being already defined
  8465. new Watcher(vm, updateComponent, noop, {
  8466. before: function before() {
  8467. if (vm._isMounted && !vm._isDestroyed) {
  8468. callHook(vm, 'beforeUpdate');
  8469. }
  8470. }
  8471. }, true /* isRenderWatcher */);
  8472. hydrating = false;
  8473. return vm
  8474. }
  8475. /* */
  8476. function renderClass (
  8477. staticClass,
  8478. dynamicClass
  8479. ) {
  8480. if (isDef(staticClass) || isDef(dynamicClass)) {
  8481. return concat(staticClass, stringifyClass(dynamicClass))
  8482. }
  8483. /* istanbul ignore next */
  8484. return ''
  8485. }
  8486. function concat (a, b) {
  8487. return a ? b ? (a + ' ' + b) : a : (b || '')
  8488. }
  8489. function stringifyClass (value) {
  8490. if (Array.isArray(value)) {
  8491. return stringifyArray(value)
  8492. }
  8493. if (isObject(value)) {
  8494. return stringifyObject(value)
  8495. }
  8496. if (typeof value === 'string') {
  8497. return value
  8498. }
  8499. /* istanbul ignore next */
  8500. return ''
  8501. }
  8502. function stringifyArray (value) {
  8503. var res = '';
  8504. var stringified;
  8505. for (var i = 0, l = value.length; i < l; i++) {
  8506. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  8507. if (res) { res += ' '; }
  8508. res += stringified;
  8509. }
  8510. }
  8511. return res
  8512. }
  8513. function stringifyObject (value) {
  8514. var res = '';
  8515. for (var key in value) {
  8516. if (value[key]) {
  8517. if (res) { res += ' '; }
  8518. res += key;
  8519. }
  8520. }
  8521. return res
  8522. }
  8523. /* */
  8524. var parseStyleText = cached(function (cssText) {
  8525. var res = {};
  8526. var listDelimiter = /;(?![^(]*\))/g;
  8527. var propertyDelimiter = /:(.+)/;
  8528. cssText.split(listDelimiter).forEach(function (item) {
  8529. if (item) {
  8530. var tmp = item.split(propertyDelimiter);
  8531. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  8532. }
  8533. });
  8534. return res
  8535. });
  8536. // normalize possible array / string values into Object
  8537. function normalizeStyleBinding (bindingStyle) {
  8538. if (Array.isArray(bindingStyle)) {
  8539. return toObject(bindingStyle)
  8540. }
  8541. if (typeof bindingStyle === 'string') {
  8542. return parseStyleText(bindingStyle)
  8543. }
  8544. return bindingStyle
  8545. }
  8546. /* */
  8547. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  8548. function getTarget(obj, path) {
  8549. var parts = path.split('.');
  8550. var key = parts[0];
  8551. if (key.indexOf('__$n') === 0) { //number index
  8552. key = parseInt(key.replace('__$n', ''));
  8553. }
  8554. if (parts.length === 1) {
  8555. return obj[key]
  8556. }
  8557. return getTarget(obj[key], parts.slice(1).join('.'))
  8558. }
  8559. function internalMixin(Vue) {
  8560. Vue.config.errorHandler = function(err, vm, info) {
  8561. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  8562. console.error(err);
  8563. /* eslint-disable no-undef */
  8564. var app = typeof getApp === 'function' && getApp();
  8565. if (app && app.onError) {
  8566. app.onError(err);
  8567. }
  8568. };
  8569. var oldEmit = Vue.prototype.$emit;
  8570. Vue.prototype.$emit = function(event) {
  8571. if (this.$scope && event) {
  8572. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  8573. if (triggerEvent) {
  8574. try {
  8575. triggerEvent.call(this.$scope, event, {
  8576. __args__: toArray(arguments, 1)
  8577. });
  8578. } catch (error) {
  8579. }
  8580. }
  8581. }
  8582. return oldEmit.apply(this, arguments)
  8583. };
  8584. Vue.prototype.$nextTick = function(fn) {
  8585. return nextTick$1(this, fn)
  8586. };
  8587. MP_METHODS.forEach(function (method) {
  8588. Vue.prototype[method] = function(args) {
  8589. if (this.$scope && this.$scope[method]) {
  8590. return this.$scope[method](args)
  8591. }
  8592. // mp-alipay
  8593. if (typeof my === 'undefined') {
  8594. return
  8595. }
  8596. if (method === 'createSelectorQuery') {
  8597. /* eslint-disable no-undef */
  8598. return my.createSelectorQuery(args)
  8599. } else if (method === 'createIntersectionObserver') {
  8600. /* eslint-disable no-undef */
  8601. return my.createIntersectionObserver(args)
  8602. }
  8603. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  8604. };
  8605. });
  8606. Vue.prototype.__init_provide = initProvide;
  8607. Vue.prototype.__init_injections = initInjections;
  8608. Vue.prototype.__call_hook = function(hook, args) {
  8609. var vm = this;
  8610. // #7573 disable dep collection when invoking lifecycle hooks
  8611. pushTarget();
  8612. var handlers = vm.$options[hook];
  8613. var info = hook + " hook";
  8614. var ret;
  8615. if (handlers) {
  8616. for (var i = 0, j = handlers.length; i < j; i++) {
  8617. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  8618. }
  8619. }
  8620. if (vm._hasHookEvent) {
  8621. vm.$emit('hook:' + hook, args);
  8622. }
  8623. popTarget();
  8624. return ret
  8625. };
  8626. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  8627. if (Array.isArray(modifiers)) {
  8628. if (modifiers.indexOf('trim') !== -1) {
  8629. value = value.trim();
  8630. }
  8631. if (modifiers.indexOf('number') !== -1) {
  8632. value = this._n(value);
  8633. }
  8634. }
  8635. if (!target) {
  8636. target = this;
  8637. }
  8638. // 解决动态属性添加
  8639. Vue.set(target, key, value);
  8640. };
  8641. Vue.prototype.__set_sync = function(target, key, value) {
  8642. if (!target) {
  8643. target = this;
  8644. }
  8645. // 解决动态属性添加
  8646. Vue.set(target, key, value);
  8647. };
  8648. Vue.prototype.__get_orig = function(item) {
  8649. if (isPlainObject(item)) {
  8650. return item['$orig'] || item
  8651. }
  8652. return item
  8653. };
  8654. Vue.prototype.__get_value = function(dataPath, target) {
  8655. return getTarget(target || this, dataPath)
  8656. };
  8657. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  8658. return renderClass(staticClass, dynamicClass)
  8659. };
  8660. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  8661. if (!dynamicStyle && !staticStyle) {
  8662. return ''
  8663. }
  8664. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  8665. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  8666. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  8667. };
  8668. Vue.prototype.__map = function(val, iteratee) {
  8669. //TODO 暂不考虑 string
  8670. var ret, i, l, keys, key;
  8671. if (Array.isArray(val)) {
  8672. ret = new Array(val.length);
  8673. for (i = 0, l = val.length; i < l; i++) {
  8674. ret[i] = iteratee(val[i], i);
  8675. }
  8676. return ret
  8677. } else if (isObject(val)) {
  8678. keys = Object.keys(val);
  8679. ret = Object.create(null);
  8680. for (i = 0, l = keys.length; i < l; i++) {
  8681. key = keys[i];
  8682. ret[key] = iteratee(val[key], key, i);
  8683. }
  8684. return ret
  8685. } else if (typeof val === 'number') {
  8686. ret = new Array(val);
  8687. for (i = 0, l = val; i < l; i++) {
  8688. // 第一个参数暂时仍和小程序一致
  8689. ret[i] = iteratee(i, i);
  8690. }
  8691. return ret
  8692. }
  8693. return []
  8694. };
  8695. }
  8696. /* */
  8697. var LIFECYCLE_HOOKS$1 = [
  8698. //App
  8699. 'onLaunch',
  8700. 'onShow',
  8701. 'onHide',
  8702. 'onUniNViewMessage',
  8703. 'onPageNotFound',
  8704. 'onThemeChange',
  8705. 'onError',
  8706. 'onUnhandledRejection',
  8707. //Page
  8708. 'onInit',
  8709. 'onLoad',
  8710. // 'onShow',
  8711. 'onReady',
  8712. // 'onHide',
  8713. 'onUnload',
  8714. 'onPullDownRefresh',
  8715. 'onReachBottom',
  8716. 'onTabItemTap',
  8717. 'onAddToFavorites',
  8718. 'onShareTimeline',
  8719. 'onShareAppMessage',
  8720. 'onResize',
  8721. 'onPageScroll',
  8722. 'onNavigationBarButtonTap',
  8723. 'onBackPress',
  8724. 'onNavigationBarSearchInputChanged',
  8725. 'onNavigationBarSearchInputConfirmed',
  8726. 'onNavigationBarSearchInputClicked',
  8727. //Component
  8728. // 'onReady', // 兼容旧版本,应该移除该事件
  8729. 'onPageShow',
  8730. 'onPageHide',
  8731. 'onPageResize',
  8732. 'onUploadDouyinVideo'
  8733. ];
  8734. function lifecycleMixin$1(Vue) {
  8735. //fixed vue-class-component
  8736. var oldExtend = Vue.extend;
  8737. Vue.extend = function(extendOptions) {
  8738. extendOptions = extendOptions || {};
  8739. var methods = extendOptions.methods;
  8740. if (methods) {
  8741. Object.keys(methods).forEach(function (methodName) {
  8742. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  8743. extendOptions[methodName] = methods[methodName];
  8744. delete methods[methodName];
  8745. }
  8746. });
  8747. }
  8748. return oldExtend.call(this, extendOptions)
  8749. };
  8750. var strategies = Vue.config.optionMergeStrategies;
  8751. var mergeHook = strategies.created;
  8752. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  8753. strategies[hook] = mergeHook;
  8754. });
  8755. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  8756. }
  8757. /* */
  8758. // install platform patch function
  8759. Vue.prototype.__patch__ = patch;
  8760. // public mount method
  8761. Vue.prototype.$mount = function(
  8762. el ,
  8763. hydrating
  8764. ) {
  8765. return mountComponent$1(this, el, hydrating)
  8766. };
  8767. lifecycleMixin$1(Vue);
  8768. internalMixin(Vue);
  8769. /* */
  8770. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  8771. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  8772. /***/ }),
  8773. /* 26 */
  8774. /*!*****************************************!*\
  8775. !*** D:/project/项目模板/uniapp/pages.json ***!
  8776. \*****************************************/
  8777. /*! no static exports found */
  8778. /***/ (function(module, exports) {
  8779. /***/ }),
  8780. /* 27 */,
  8781. /* 28 */,
  8782. /* 29 */,
  8783. /* 30 */,
  8784. /* 31 */,
  8785. /* 32 */
  8786. /*!**********************************************************************************************************!*\
  8787. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  8788. \**********************************************************************************************************/
  8789. /*! exports provided: default */
  8790. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8791. "use strict";
  8792. __webpack_require__.r(__webpack_exports__);
  8793. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  8794. /* globals __VUE_SSR_CONTEXT__ */
  8795. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  8796. // This module is a runtime utility for cleaner component module output and will
  8797. // be included in the final webpack user bundle.
  8798. function normalizeComponent (
  8799. scriptExports,
  8800. render,
  8801. staticRenderFns,
  8802. functionalTemplate,
  8803. injectStyles,
  8804. scopeId,
  8805. moduleIdentifier, /* server only */
  8806. shadowMode, /* vue-cli only */
  8807. components, // fixed by xxxxxx auto components
  8808. renderjs // fixed by xxxxxx renderjs
  8809. ) {
  8810. // Vue.extend constructor export interop
  8811. var options = typeof scriptExports === 'function'
  8812. ? scriptExports.options
  8813. : scriptExports
  8814. // fixed by xxxxxx auto components
  8815. if (components) {
  8816. if (!options.components) {
  8817. options.components = {}
  8818. }
  8819. var hasOwn = Object.prototype.hasOwnProperty
  8820. for (var name in components) {
  8821. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  8822. options.components[name] = components[name]
  8823. }
  8824. }
  8825. }
  8826. // fixed by xxxxxx renderjs
  8827. if (renderjs) {
  8828. if(typeof renderjs.beforeCreate === 'function'){
  8829. renderjs.beforeCreate = [renderjs.beforeCreate]
  8830. }
  8831. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  8832. this[renderjs.__module] = this
  8833. });
  8834. (options.mixins || (options.mixins = [])).push(renderjs)
  8835. }
  8836. // render functions
  8837. if (render) {
  8838. options.render = render
  8839. options.staticRenderFns = staticRenderFns
  8840. options._compiled = true
  8841. }
  8842. // functional template
  8843. if (functionalTemplate) {
  8844. options.functional = true
  8845. }
  8846. // scopedId
  8847. if (scopeId) {
  8848. options._scopeId = 'data-v-' + scopeId
  8849. }
  8850. var hook
  8851. if (moduleIdentifier) { // server build
  8852. hook = function (context) {
  8853. // 2.3 injection
  8854. context =
  8855. context || // cached call
  8856. (this.$vnode && this.$vnode.ssrContext) || // stateful
  8857. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  8858. // 2.2 with runInNewContext: true
  8859. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  8860. context = __VUE_SSR_CONTEXT__
  8861. }
  8862. // inject component styles
  8863. if (injectStyles) {
  8864. injectStyles.call(this, context)
  8865. }
  8866. // register component module identifier for async chunk inferrence
  8867. if (context && context._registeredComponents) {
  8868. context._registeredComponents.add(moduleIdentifier)
  8869. }
  8870. }
  8871. // used by ssr in case component is cached and beforeCreate
  8872. // never gets called
  8873. options._ssrRegister = hook
  8874. } else if (injectStyles) {
  8875. hook = shadowMode
  8876. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  8877. : injectStyles
  8878. }
  8879. if (hook) {
  8880. if (options.functional) {
  8881. // for template-only hot-reload because in that case the render fn doesn't
  8882. // go through the normalizer
  8883. options._injectStyles = hook
  8884. // register for functioal component in vue file
  8885. var originalRender = options.render
  8886. options.render = function renderWithStyleInjection (h, context) {
  8887. hook.call(context)
  8888. return originalRender(h, context)
  8889. }
  8890. } else {
  8891. // inject component registration as beforeCreate hook
  8892. var existing = options.beforeCreate
  8893. options.beforeCreate = existing
  8894. ? [].concat(existing, hook)
  8895. : [hook]
  8896. }
  8897. }
  8898. return {
  8899. exports: scriptExports,
  8900. options: options
  8901. }
  8902. }
  8903. /***/ }),
  8904. /* 33 */
  8905. /*!***********************************************!*\
  8906. !*** D:/project/项目模板/uniapp/common/config.js ***!
  8907. \***********************************************/
  8908. /*! no static exports found */
  8909. /***/ (function(module, exports, __webpack_require__) {
  8910. "use strict";
  8911. /* WEBPACK VAR INJECTION */(function(uni) {
  8912. Object.defineProperty(exports, "__esModule", {
  8913. value: true
  8914. });
  8915. exports.default = void 0;
  8916. var _default = {
  8917. // 接口地址
  8918. serverUrl: "https://broadcast.waityou24.cn",
  8919. //https://broadcast.waityou24.cn http://www.freeskyghw.cn http://192.168.1.144:10102
  8920. fileserverUrl: 'https://broadcast.waityou24.cn',
  8921. wechatUrl: "https://broadcast.waityou24.cn",
  8922. // 设备信息
  8923. system: uni.getSystemInfoSync(),
  8924. // app下载地址
  8925. app_url: 'https://broadcast.waityou24.cn/files/projectadmin/zytk.apk',
  8926. // 节目类型
  8927. pro_type: [
  8928. //
  8929. {
  8930. dict_label: '电视节目',
  8931. dict_value: '0'
  8932. }, {
  8933. dict_label: '电影节目',
  8934. dict_value: '1'
  8935. }]
  8936. // video:标签说明
  8937. // src--视频
  8938. // poster--封面
  8939. // title--全屏顶部标题
  8940. // controls--默认播放控件true
  8941. // show-fullscreen-btn--是否显示全屏按钮true
  8942. // show-play-btn-是否显示底部控制栏播放按钮true
  8943. // show-center-play-btn--是否显示视频中间按钮
  8944. // enable-progress-gesture--是否开启控制进度的手势true
  8945. // show-mute-btn--是否开启静音false
  8946. // enable-play-gesture--是否开启播放手势,双击播放/暂停false
  8947. // vslide-gesture(page-gesture)--非全屏开启亮度/音量false
  8948. // vslide-gesture-in-fullscreen--全屏开启亮度/音量true
  8949. };
  8950. exports.default = _default;
  8951. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  8952. /***/ }),
  8953. /* 34 */
  8954. /*!********************************************!*\
  8955. !*** D:/project/项目模板/uniapp/common/api.js ***!
  8956. \********************************************/
  8957. /*! no static exports found */
  8958. /***/ (function(module, exports, __webpack_require__) {
  8959. "use strict";
  8960. /* WEBPACK VAR INJECTION */(function(uni) {
  8961. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  8962. Object.defineProperty(exports, "__esModule", {
  8963. value: true
  8964. });
  8965. exports.requestFile = exports.requestBase = void 0;
  8966. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 35));
  8967. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 37));
  8968. var _config = _interopRequireDefault(__webpack_require__(/*! ../common/config */ 33));
  8969. var getDomain = function getDomain(uri, type) {
  8970. var serverUrl = _config.default.serverUrl,
  8971. fileserverUrl = _config.default.fileserverUrl,
  8972. wechatUrl = _config.default.wechatUrl;
  8973. // 自定义
  8974. if (uri.includes("http")) return uri;
  8975. // 微信
  8976. if (uri.startsWith("/wechat/api")) return wechatUrl + uri;
  8977. // 地址前缀
  8978. else if (type) return serverUrl + "/projectadmin/".concat(type, "/api/") + uri;
  8979. // 常规
  8980. return serverUrl + "/projectadmin/api/" + uri;
  8981. };
  8982. // 常规请求
  8983. var requestBase = /*#__PURE__*/function () {
  8984. var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(uri) {
  8985. var method,
  8986. data,
  8987. type,
  8988. baseUrl,
  8989. header,
  8990. token,
  8991. _args = arguments;
  8992. return _regenerator.default.wrap(function _callee$(_context) {
  8993. while (1) {
  8994. switch (_context.prev = _context.next) {
  8995. case 0:
  8996. method = _args.length > 1 && _args[1] !== undefined ? _args[1] : "GET";
  8997. data = _args.length > 2 ? _args[2] : undefined;
  8998. type = _args.length > 3 ? _args[3] : undefined;
  8999. // 请求地址
  9000. baseUrl = getDomain(uri, type); // 请求头
  9001. header = {}; // 用户信息
  9002. token = "";
  9003. if (token) header.token = token;
  9004. return _context.abrupt("return", new Promise(function (resolve, reject) {
  9005. uni.request({
  9006. url: baseUrl,
  9007. method: method,
  9008. data: data,
  9009. header: header,
  9010. success: function success(res) {
  9011. return toResolve(resolve, res);
  9012. },
  9013. fail: function fail(err) {
  9014. console.log(err);
  9015. }
  9016. });
  9017. }));
  9018. case 8:
  9019. case "end":
  9020. return _context.stop();
  9021. }
  9022. }
  9023. }, _callee);
  9024. }));
  9025. return function requestBase(_x) {
  9026. return _ref.apply(this, arguments);
  9027. };
  9028. }();
  9029. // 图片请求
  9030. exports.requestBase = requestBase;
  9031. var requestFile = function requestFile(uri, method, data, type) {
  9032. // 请求地址
  9033. // let baseUrl = getDomain(uri, type);
  9034. return new Promise(function (resolve, reject) {
  9035. uni.uploadFile({
  9036. url: "".concat(_config.default.fileserverUrl, "/").concat(uri),
  9037. filePath: data,
  9038. name: 'file',
  9039. formData: {},
  9040. success: function success(res) {
  9041. return toResolve(resolve, res);
  9042. },
  9043. error: function error(e) {
  9044. return toReject(reject, e);
  9045. }
  9046. });
  9047. });
  9048. };
  9049. exports.requestFile = requestFile;
  9050. var toResolve = function toResolve(resolve, result) {
  9051. if (result.statusCode === 200) resolve(result.data);
  9052. };
  9053. var toReject = function toReject(reject, result) {
  9054. reject(result);
  9055. };
  9056. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9057. /***/ }),
  9058. /* 35 */
  9059. /*!************************************************************************************************!*\
  9060. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  9061. \************************************************************************************************/
  9062. /*! no static exports found */
  9063. /***/ (function(module, exports, __webpack_require__) {
  9064. // TODO(Babel 8): Remove this file.
  9065. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 36)();
  9066. module.exports = runtime;
  9067. /***/ }),
  9068. /* 36 */
  9069. /*!*******************************************************************!*\
  9070. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  9071. \*******************************************************************/
  9072. /*! no static exports found */
  9073. /***/ (function(module, exports, __webpack_require__) {
  9074. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  9075. function _regeneratorRuntime() {
  9076. "use strict";
  9077. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  9078. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  9079. return exports;
  9080. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  9081. var exports = {},
  9082. Op = Object.prototype,
  9083. hasOwn = Op.hasOwnProperty,
  9084. defineProperty = Object.defineProperty || function (obj, key, desc) {
  9085. obj[key] = desc.value;
  9086. },
  9087. $Symbol = "function" == typeof Symbol ? Symbol : {},
  9088. iteratorSymbol = $Symbol.iterator || "@@iterator",
  9089. asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
  9090. toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  9091. function define(obj, key, value) {
  9092. return Object.defineProperty(obj, key, {
  9093. value: value,
  9094. enumerable: !0,
  9095. configurable: !0,
  9096. writable: !0
  9097. }), obj[key];
  9098. }
  9099. try {
  9100. define({}, "");
  9101. } catch (err) {
  9102. define = function define(obj, key, value) {
  9103. return obj[key] = value;
  9104. };
  9105. }
  9106. function wrap(innerFn, outerFn, self, tryLocsList) {
  9107. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
  9108. generator = Object.create(protoGenerator.prototype),
  9109. context = new Context(tryLocsList || []);
  9110. return defineProperty(generator, "_invoke", {
  9111. value: makeInvokeMethod(innerFn, self, context)
  9112. }), generator;
  9113. }
  9114. function tryCatch(fn, obj, arg) {
  9115. try {
  9116. return {
  9117. type: "normal",
  9118. arg: fn.call(obj, arg)
  9119. };
  9120. } catch (err) {
  9121. return {
  9122. type: "throw",
  9123. arg: err
  9124. };
  9125. }
  9126. }
  9127. exports.wrap = wrap;
  9128. var ContinueSentinel = {};
  9129. function Generator() {}
  9130. function GeneratorFunction() {}
  9131. function GeneratorFunctionPrototype() {}
  9132. var IteratorPrototype = {};
  9133. define(IteratorPrototype, iteratorSymbol, function () {
  9134. return this;
  9135. });
  9136. var getProto = Object.getPrototypeOf,
  9137. NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  9138. NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
  9139. var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
  9140. function defineIteratorMethods(prototype) {
  9141. ["next", "throw", "return"].forEach(function (method) {
  9142. define(prototype, method, function (arg) {
  9143. return this._invoke(method, arg);
  9144. });
  9145. });
  9146. }
  9147. function AsyncIterator(generator, PromiseImpl) {
  9148. function invoke(method, arg, resolve, reject) {
  9149. var record = tryCatch(generator[method], generator, arg);
  9150. if ("throw" !== record.type) {
  9151. var result = record.arg,
  9152. value = result.value;
  9153. return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
  9154. invoke("next", value, resolve, reject);
  9155. }, function (err) {
  9156. invoke("throw", err, resolve, reject);
  9157. }) : PromiseImpl.resolve(value).then(function (unwrapped) {
  9158. result.value = unwrapped, resolve(result);
  9159. }, function (error) {
  9160. return invoke("throw", error, resolve, reject);
  9161. });
  9162. }
  9163. reject(record.arg);
  9164. }
  9165. var previousPromise;
  9166. defineProperty(this, "_invoke", {
  9167. value: function value(method, arg) {
  9168. function callInvokeWithMethodAndArg() {
  9169. return new PromiseImpl(function (resolve, reject) {
  9170. invoke(method, arg, resolve, reject);
  9171. });
  9172. }
  9173. return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  9174. }
  9175. });
  9176. }
  9177. function makeInvokeMethod(innerFn, self, context) {
  9178. var state = "suspendedStart";
  9179. return function (method, arg) {
  9180. if ("executing" === state) throw new Error("Generator is already running");
  9181. if ("completed" === state) {
  9182. if ("throw" === method) throw arg;
  9183. return doneResult();
  9184. }
  9185. for (context.method = method, context.arg = arg;;) {
  9186. var delegate = context.delegate;
  9187. if (delegate) {
  9188. var delegateResult = maybeInvokeDelegate(delegate, context);
  9189. if (delegateResult) {
  9190. if (delegateResult === ContinueSentinel) continue;
  9191. return delegateResult;
  9192. }
  9193. }
  9194. if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
  9195. if ("suspendedStart" === state) throw state = "completed", context.arg;
  9196. context.dispatchException(context.arg);
  9197. } else "return" === context.method && context.abrupt("return", context.arg);
  9198. state = "executing";
  9199. var record = tryCatch(innerFn, self, context);
  9200. if ("normal" === record.type) {
  9201. if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
  9202. return {
  9203. value: record.arg,
  9204. done: context.done
  9205. };
  9206. }
  9207. "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
  9208. }
  9209. };
  9210. }
  9211. function maybeInvokeDelegate(delegate, context) {
  9212. var methodName = context.method,
  9213. method = delegate.iterator[methodName];
  9214. if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
  9215. var record = tryCatch(method, delegate.iterator, context.arg);
  9216. if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
  9217. var info = record.arg;
  9218. return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
  9219. }
  9220. function pushTryEntry(locs) {
  9221. var entry = {
  9222. tryLoc: locs[0]
  9223. };
  9224. 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
  9225. }
  9226. function resetTryEntry(entry) {
  9227. var record = entry.completion || {};
  9228. record.type = "normal", delete record.arg, entry.completion = record;
  9229. }
  9230. function Context(tryLocsList) {
  9231. this.tryEntries = [{
  9232. tryLoc: "root"
  9233. }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
  9234. }
  9235. function values(iterable) {
  9236. if (iterable) {
  9237. var iteratorMethod = iterable[iteratorSymbol];
  9238. if (iteratorMethod) return iteratorMethod.call(iterable);
  9239. if ("function" == typeof iterable.next) return iterable;
  9240. if (!isNaN(iterable.length)) {
  9241. var i = -1,
  9242. next = function next() {
  9243. for (; ++i < iterable.length;) {
  9244. if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
  9245. }
  9246. return next.value = undefined, next.done = !0, next;
  9247. };
  9248. return next.next = next;
  9249. }
  9250. }
  9251. return {
  9252. next: doneResult
  9253. };
  9254. }
  9255. function doneResult() {
  9256. return {
  9257. value: undefined,
  9258. done: !0
  9259. };
  9260. }
  9261. return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
  9262. value: GeneratorFunctionPrototype,
  9263. configurable: !0
  9264. }), defineProperty(GeneratorFunctionPrototype, "constructor", {
  9265. value: GeneratorFunction,
  9266. configurable: !0
  9267. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
  9268. var ctor = "function" == typeof genFun && genFun.constructor;
  9269. return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
  9270. }, exports.mark = function (genFun) {
  9271. return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
  9272. }, exports.awrap = function (arg) {
  9273. return {
  9274. __await: arg
  9275. };
  9276. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
  9277. return this;
  9278. }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
  9279. void 0 === PromiseImpl && (PromiseImpl = Promise);
  9280. var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
  9281. return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
  9282. return result.done ? result.value : iter.next();
  9283. });
  9284. }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
  9285. return this;
  9286. }), define(Gp, "toString", function () {
  9287. return "[object Generator]";
  9288. }), exports.keys = function (val) {
  9289. var object = Object(val),
  9290. keys = [];
  9291. for (var key in object) {
  9292. keys.push(key);
  9293. }
  9294. return keys.reverse(), function next() {
  9295. for (; keys.length;) {
  9296. var key = keys.pop();
  9297. if (key in object) return next.value = key, next.done = !1, next;
  9298. }
  9299. return next.done = !0, next;
  9300. };
  9301. }, exports.values = values, Context.prototype = {
  9302. constructor: Context,
  9303. reset: function reset(skipTempReset) {
  9304. if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
  9305. "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
  9306. }
  9307. },
  9308. stop: function stop() {
  9309. this.done = !0;
  9310. var rootRecord = this.tryEntries[0].completion;
  9311. if ("throw" === rootRecord.type) throw rootRecord.arg;
  9312. return this.rval;
  9313. },
  9314. dispatchException: function dispatchException(exception) {
  9315. if (this.done) throw exception;
  9316. var context = this;
  9317. function handle(loc, caught) {
  9318. return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
  9319. }
  9320. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  9321. var entry = this.tryEntries[i],
  9322. record = entry.completion;
  9323. if ("root" === entry.tryLoc) return handle("end");
  9324. if (entry.tryLoc <= this.prev) {
  9325. var hasCatch = hasOwn.call(entry, "catchLoc"),
  9326. hasFinally = hasOwn.call(entry, "finallyLoc");
  9327. if (hasCatch && hasFinally) {
  9328. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  9329. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  9330. } else if (hasCatch) {
  9331. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  9332. } else {
  9333. if (!hasFinally) throw new Error("try statement without catch or finally");
  9334. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  9335. }
  9336. }
  9337. }
  9338. },
  9339. abrupt: function abrupt(type, arg) {
  9340. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  9341. var entry = this.tryEntries[i];
  9342. if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
  9343. var finallyEntry = entry;
  9344. break;
  9345. }
  9346. }
  9347. finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
  9348. var record = finallyEntry ? finallyEntry.completion : {};
  9349. return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
  9350. },
  9351. complete: function complete(record, afterLoc) {
  9352. if ("throw" === record.type) throw record.arg;
  9353. return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
  9354. },
  9355. finish: function finish(finallyLoc) {
  9356. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  9357. var entry = this.tryEntries[i];
  9358. if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
  9359. }
  9360. },
  9361. "catch": function _catch(tryLoc) {
  9362. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  9363. var entry = this.tryEntries[i];
  9364. if (entry.tryLoc === tryLoc) {
  9365. var record = entry.completion;
  9366. if ("throw" === record.type) {
  9367. var thrown = record.arg;
  9368. resetTryEntry(entry);
  9369. }
  9370. return thrown;
  9371. }
  9372. }
  9373. throw new Error("illegal catch attempt");
  9374. },
  9375. delegateYield: function delegateYield(iterable, resultName, nextLoc) {
  9376. return this.delegate = {
  9377. iterator: values(iterable),
  9378. resultName: resultName,
  9379. nextLoc: nextLoc
  9380. }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
  9381. }
  9382. }, exports;
  9383. }
  9384. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  9385. /***/ }),
  9386. /* 37 */
  9387. /*!*****************************************************************!*\
  9388. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  9389. \*****************************************************************/
  9390. /*! no static exports found */
  9391. /***/ (function(module, exports) {
  9392. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  9393. try {
  9394. var info = gen[key](arg);
  9395. var value = info.value;
  9396. } catch (error) {
  9397. reject(error);
  9398. return;
  9399. }
  9400. if (info.done) {
  9401. resolve(value);
  9402. } else {
  9403. Promise.resolve(value).then(_next, _throw);
  9404. }
  9405. }
  9406. function _asyncToGenerator(fn) {
  9407. return function () {
  9408. var self = this,
  9409. args = arguments;
  9410. return new Promise(function (resolve, reject) {
  9411. var gen = fn.apply(self, args);
  9412. function _next(value) {
  9413. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  9414. }
  9415. function _throw(err) {
  9416. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  9417. }
  9418. _next(undefined);
  9419. });
  9420. };
  9421. }
  9422. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  9423. /***/ }),
  9424. /* 38 */
  9425. /*!**************************************************!*\
  9426. !*** D:/project/项目模板/uniapp/common/weapp-jwt.js ***!
  9427. \**************************************************/
  9428. /*! no static exports found */
  9429. /***/ (function(module, exports, __webpack_require__) {
  9430. "use strict";
  9431. Object.defineProperty(exports, "__esModule", {
  9432. value: true
  9433. });
  9434. var b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
  9435. var b64re = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/;
  9436. exports.weBtoa = function (string) {
  9437. string = String(string);
  9438. var bitmap,
  9439. a,
  9440. b,
  9441. c,
  9442. result = "",
  9443. i = 0,
  9444. rest = string.length % 3;
  9445. for (; i < string.length;) {
  9446. if ((a = string.charCodeAt(i++)) > 255 || (b = string.charCodeAt(i++)) > 255 || (c = string.charCodeAt(i++)) > 255) throw new TypeError("Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.");
  9447. bitmap = a << 16 | b << 8 | c;
  9448. result += b64.charAt(bitmap >> 18 & 63) + b64.charAt(bitmap >> 12 & 63) + b64.charAt(bitmap >> 6 & 63) + b64.charAt(bitmap & 63);
  9449. }
  9450. return rest ? result.slice(0, rest - 3) + "===".substring(rest) : result;
  9451. };
  9452. exports.weAtob = function (string) {
  9453. string = String(string).replace(/[\t\n\f\r ]+/g, "");
  9454. if (!b64re.test(string)) throw new TypeError("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  9455. string += "==".slice(2 - (string.length & 3));
  9456. var bitmap,
  9457. result = "",
  9458. r1,
  9459. r2,
  9460. i = 0;
  9461. for (; i < string.length;) {
  9462. bitmap = b64.indexOf(string.charAt(i++)) << 18 | b64.indexOf(string.charAt(i++)) << 12 | (r1 = b64.indexOf(string.charAt(i++))) << 6 | (r2 = b64.indexOf(string.charAt(i++)));
  9463. result += r1 === 64 ? String.fromCharCode(bitmap >> 16 & 255) : r2 === 64 ? String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255) : String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255, bitmap & 255);
  9464. }
  9465. return result;
  9466. };
  9467. function b64DecodeUnicode(str) {
  9468. return decodeURIComponent(exports.weAtob(str).replace(/(.)/g, function (p) {
  9469. var code = p.charCodeAt(0).toString(16).toUpperCase();
  9470. if (code.length < 2) {
  9471. code = "0" + code;
  9472. }
  9473. return "%" + code;
  9474. }));
  9475. }
  9476. function base64_url_decode(str) {
  9477. var output = str.replace(/-/g, "+").replace(/_/g, "/");
  9478. switch (output.length % 4) {
  9479. case 0:
  9480. break;
  9481. case 2:
  9482. output += "==";
  9483. break;
  9484. case 3:
  9485. output += "=";
  9486. break;
  9487. default:
  9488. throw "Illegal base64url string!";
  9489. }
  9490. try {
  9491. return b64DecodeUnicode(output);
  9492. } catch (err) {
  9493. return exports.weAtob(output);
  9494. }
  9495. }
  9496. function weappJwtDecode(token, options) {
  9497. if (typeof token !== "string") {
  9498. throw "Invalid token specified";
  9499. }
  9500. options = options || {};
  9501. var pos = options.header === true ? 0 : 1;
  9502. try {
  9503. return JSON.parse(base64_url_decode(token.split(".")[pos]));
  9504. } catch (e) {
  9505. throw "Invalid token specified: " + e.message;
  9506. }
  9507. }
  9508. exports.default = weappJwtDecode;
  9509. /***/ }),
  9510. /* 39 */
  9511. /*!************************************************************!*\
  9512. !*** D:/project/项目模板/uniapp/node_modules/moment/moment.js ***!
  9513. \************************************************************/
  9514. /*! no static exports found */
  9515. /***/ (function(module, exports, __webpack_require__) {
  9516. /* WEBPACK VAR INJECTION */(function(module) {var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;var require;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  9517. //! moment.js
  9518. //! version : 2.29.4
  9519. //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
  9520. //! license : MIT
  9521. //! momentjs.com
  9522. ;
  9523. (function (global, factory) {
  9524. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' ? module.exports = factory() : true ? !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  9525. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  9526. (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
  9527. __WEBPACK_AMD_DEFINE_FACTORY__),
  9528. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  9529. })(this, function () {
  9530. 'use strict';
  9531. var hookCallback;
  9532. function hooks() {
  9533. return hookCallback.apply(null, arguments);
  9534. }
  9535. // This is done to register the method called with moment()
  9536. // without creating circular dependencies.
  9537. function setHookCallback(callback) {
  9538. hookCallback = callback;
  9539. }
  9540. function isArray(input) {
  9541. return input instanceof Array || Object.prototype.toString.call(input) === '[object Array]';
  9542. }
  9543. function isObject(input) {
  9544. // IE8 will treat undefined and null as object if it wasn't for
  9545. // input != null
  9546. return input != null && Object.prototype.toString.call(input) === '[object Object]';
  9547. }
  9548. function hasOwnProp(a, b) {
  9549. return Object.prototype.hasOwnProperty.call(a, b);
  9550. }
  9551. function isObjectEmpty(obj) {
  9552. if (Object.getOwnPropertyNames) {
  9553. return Object.getOwnPropertyNames(obj).length === 0;
  9554. } else {
  9555. var k;
  9556. for (k in obj) {
  9557. if (hasOwnProp(obj, k)) {
  9558. return false;
  9559. }
  9560. }
  9561. return true;
  9562. }
  9563. }
  9564. function isUndefined(input) {
  9565. return input === void 0;
  9566. }
  9567. function isNumber(input) {
  9568. return typeof input === 'number' || Object.prototype.toString.call(input) === '[object Number]';
  9569. }
  9570. function isDate(input) {
  9571. return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]';
  9572. }
  9573. function map(arr, fn) {
  9574. var res = [],
  9575. i,
  9576. arrLen = arr.length;
  9577. for (i = 0; i < arrLen; ++i) {
  9578. res.push(fn(arr[i], i));
  9579. }
  9580. return res;
  9581. }
  9582. function extend(a, b) {
  9583. for (var i in b) {
  9584. if (hasOwnProp(b, i)) {
  9585. a[i] = b[i];
  9586. }
  9587. }
  9588. if (hasOwnProp(b, 'toString')) {
  9589. a.toString = b.toString;
  9590. }
  9591. if (hasOwnProp(b, 'valueOf')) {
  9592. a.valueOf = b.valueOf;
  9593. }
  9594. return a;
  9595. }
  9596. function createUTC(input, format, locale, strict) {
  9597. return createLocalOrUTC(input, format, locale, strict, true).utc();
  9598. }
  9599. function defaultParsingFlags() {
  9600. // We need to deep clone this object.
  9601. return {
  9602. empty: false,
  9603. unusedTokens: [],
  9604. unusedInput: [],
  9605. overflow: -2,
  9606. charsLeftOver: 0,
  9607. nullInput: false,
  9608. invalidEra: null,
  9609. invalidMonth: null,
  9610. invalidFormat: false,
  9611. userInvalidated: false,
  9612. iso: false,
  9613. parsedDateParts: [],
  9614. era: null,
  9615. meridiem: null,
  9616. rfc2822: false,
  9617. weekdayMismatch: false
  9618. };
  9619. }
  9620. function getParsingFlags(m) {
  9621. if (m._pf == null) {
  9622. m._pf = defaultParsingFlags();
  9623. }
  9624. return m._pf;
  9625. }
  9626. var some;
  9627. if (Array.prototype.some) {
  9628. some = Array.prototype.some;
  9629. } else {
  9630. some = function some(fun) {
  9631. var t = Object(this),
  9632. len = t.length >>> 0,
  9633. i;
  9634. for (i = 0; i < len; i++) {
  9635. if (i in t && fun.call(this, t[i], i, t)) {
  9636. return true;
  9637. }
  9638. }
  9639. return false;
  9640. };
  9641. }
  9642. function isValid(m) {
  9643. if (m._isValid == null) {
  9644. var flags = getParsingFlags(m),
  9645. parsedParts = some.call(flags.parsedDateParts, function (i) {
  9646. return i != null;
  9647. }),
  9648. isNowValid = !isNaN(m._d.getTime()) && flags.overflow < 0 && !flags.empty && !flags.invalidEra && !flags.invalidMonth && !flags.invalidWeekday && !flags.weekdayMismatch && !flags.nullInput && !flags.invalidFormat && !flags.userInvalidated && (!flags.meridiem || flags.meridiem && parsedParts);
  9649. if (m._strict) {
  9650. isNowValid = isNowValid && flags.charsLeftOver === 0 && flags.unusedTokens.length === 0 && flags.bigHour === undefined;
  9651. }
  9652. if (Object.isFrozen == null || !Object.isFrozen(m)) {
  9653. m._isValid = isNowValid;
  9654. } else {
  9655. return isNowValid;
  9656. }
  9657. }
  9658. return m._isValid;
  9659. }
  9660. function createInvalid(flags) {
  9661. var m = createUTC(NaN);
  9662. if (flags != null) {
  9663. extend(getParsingFlags(m), flags);
  9664. } else {
  9665. getParsingFlags(m).userInvalidated = true;
  9666. }
  9667. return m;
  9668. }
  9669. // Plugins that add properties should also add the key here (null value),
  9670. // so we can properly clone ourselves.
  9671. var momentProperties = hooks.momentProperties = [],
  9672. updateInProgress = false;
  9673. function copyConfig(to, from) {
  9674. var i,
  9675. prop,
  9676. val,
  9677. momentPropertiesLen = momentProperties.length;
  9678. if (!isUndefined(from._isAMomentObject)) {
  9679. to._isAMomentObject = from._isAMomentObject;
  9680. }
  9681. if (!isUndefined(from._i)) {
  9682. to._i = from._i;
  9683. }
  9684. if (!isUndefined(from._f)) {
  9685. to._f = from._f;
  9686. }
  9687. if (!isUndefined(from._l)) {
  9688. to._l = from._l;
  9689. }
  9690. if (!isUndefined(from._strict)) {
  9691. to._strict = from._strict;
  9692. }
  9693. if (!isUndefined(from._tzm)) {
  9694. to._tzm = from._tzm;
  9695. }
  9696. if (!isUndefined(from._isUTC)) {
  9697. to._isUTC = from._isUTC;
  9698. }
  9699. if (!isUndefined(from._offset)) {
  9700. to._offset = from._offset;
  9701. }
  9702. if (!isUndefined(from._pf)) {
  9703. to._pf = getParsingFlags(from);
  9704. }
  9705. if (!isUndefined(from._locale)) {
  9706. to._locale = from._locale;
  9707. }
  9708. if (momentPropertiesLen > 0) {
  9709. for (i = 0; i < momentPropertiesLen; i++) {
  9710. prop = momentProperties[i];
  9711. val = from[prop];
  9712. if (!isUndefined(val)) {
  9713. to[prop] = val;
  9714. }
  9715. }
  9716. }
  9717. return to;
  9718. }
  9719. // Moment prototype object
  9720. function Moment(config) {
  9721. copyConfig(this, config);
  9722. this._d = new Date(config._d != null ? config._d.getTime() : NaN);
  9723. if (!this.isValid()) {
  9724. this._d = new Date(NaN);
  9725. }
  9726. // Prevent infinite loop in case updateOffset creates new moment
  9727. // objects.
  9728. if (updateInProgress === false) {
  9729. updateInProgress = true;
  9730. hooks.updateOffset(this);
  9731. updateInProgress = false;
  9732. }
  9733. }
  9734. function isMoment(obj) {
  9735. return obj instanceof Moment || obj != null && obj._isAMomentObject != null;
  9736. }
  9737. function warn(msg) {
  9738. if (hooks.suppressDeprecationWarnings === false && typeof console !== 'undefined' && console.warn) {
  9739. console.warn('Deprecation warning: ' + msg);
  9740. }
  9741. }
  9742. function deprecate(msg, fn) {
  9743. var firstTime = true;
  9744. return extend(function () {
  9745. if (hooks.deprecationHandler != null) {
  9746. hooks.deprecationHandler(null, msg);
  9747. }
  9748. if (firstTime) {
  9749. var args = [],
  9750. arg,
  9751. i,
  9752. key,
  9753. argLen = arguments.length;
  9754. for (i = 0; i < argLen; i++) {
  9755. arg = '';
  9756. if (_typeof(arguments[i]) === 'object') {
  9757. arg += '\n[' + i + '] ';
  9758. for (key in arguments[0]) {
  9759. if (hasOwnProp(arguments[0], key)) {
  9760. arg += key + ': ' + arguments[0][key] + ', ';
  9761. }
  9762. }
  9763. arg = arg.slice(0, -2); // Remove trailing comma and space
  9764. } else {
  9765. arg = arguments[i];
  9766. }
  9767. args.push(arg);
  9768. }
  9769. warn(msg + '\nArguments: ' + Array.prototype.slice.call(args).join('') + '\n' + new Error().stack);
  9770. firstTime = false;
  9771. }
  9772. return fn.apply(this, arguments);
  9773. }, fn);
  9774. }
  9775. var deprecations = {};
  9776. function deprecateSimple(name, msg) {
  9777. if (hooks.deprecationHandler != null) {
  9778. hooks.deprecationHandler(name, msg);
  9779. }
  9780. if (!deprecations[name]) {
  9781. warn(msg);
  9782. deprecations[name] = true;
  9783. }
  9784. }
  9785. hooks.suppressDeprecationWarnings = false;
  9786. hooks.deprecationHandler = null;
  9787. function isFunction(input) {
  9788. return typeof Function !== 'undefined' && input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
  9789. }
  9790. function set(config) {
  9791. var prop, i;
  9792. for (i in config) {
  9793. if (hasOwnProp(config, i)) {
  9794. prop = config[i];
  9795. if (isFunction(prop)) {
  9796. this[i] = prop;
  9797. } else {
  9798. this['_' + i] = prop;
  9799. }
  9800. }
  9801. }
  9802. this._config = config;
  9803. // Lenient ordinal parsing accepts just a number in addition to
  9804. // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
  9805. // TODO: Remove "ordinalParse" fallback in next major release.
  9806. this._dayOfMonthOrdinalParseLenient = new RegExp((this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + '|' + /\d{1,2}/.source);
  9807. }
  9808. function mergeConfigs(parentConfig, childConfig) {
  9809. var res = extend({}, parentConfig),
  9810. prop;
  9811. for (prop in childConfig) {
  9812. if (hasOwnProp(childConfig, prop)) {
  9813. if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
  9814. res[prop] = {};
  9815. extend(res[prop], parentConfig[prop]);
  9816. extend(res[prop], childConfig[prop]);
  9817. } else if (childConfig[prop] != null) {
  9818. res[prop] = childConfig[prop];
  9819. } else {
  9820. delete res[prop];
  9821. }
  9822. }
  9823. }
  9824. for (prop in parentConfig) {
  9825. if (hasOwnProp(parentConfig, prop) && !hasOwnProp(childConfig, prop) && isObject(parentConfig[prop])) {
  9826. // make sure changes to properties don't modify parent config
  9827. res[prop] = extend({}, res[prop]);
  9828. }
  9829. }
  9830. return res;
  9831. }
  9832. function Locale(config) {
  9833. if (config != null) {
  9834. this.set(config);
  9835. }
  9836. }
  9837. var keys;
  9838. if (Object.keys) {
  9839. keys = Object.keys;
  9840. } else {
  9841. keys = function keys(obj) {
  9842. var i,
  9843. res = [];
  9844. for (i in obj) {
  9845. if (hasOwnProp(obj, i)) {
  9846. res.push(i);
  9847. }
  9848. }
  9849. return res;
  9850. };
  9851. }
  9852. var defaultCalendar = {
  9853. sameDay: '[Today at] LT',
  9854. nextDay: '[Tomorrow at] LT',
  9855. nextWeek: 'dddd [at] LT',
  9856. lastDay: '[Yesterday at] LT',
  9857. lastWeek: '[Last] dddd [at] LT',
  9858. sameElse: 'L'
  9859. };
  9860. function calendar(key, mom, now) {
  9861. var output = this._calendar[key] || this._calendar['sameElse'];
  9862. return isFunction(output) ? output.call(mom, now) : output;
  9863. }
  9864. function zeroFill(number, targetLength, forceSign) {
  9865. var absNumber = '' + Math.abs(number),
  9866. zerosToFill = targetLength - absNumber.length,
  9867. sign = number >= 0;
  9868. return (sign ? forceSign ? '+' : '' : '-') + Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;
  9869. }
  9870. var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,
  9871. localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
  9872. formatFunctions = {},
  9873. formatTokenFunctions = {};
  9874. // token: 'M'
  9875. // padded: ['MM', 2]
  9876. // ordinal: 'Mo'
  9877. // callback: function () { this.month() + 1 }
  9878. function addFormatToken(token, padded, ordinal, callback) {
  9879. var func = callback;
  9880. if (typeof callback === 'string') {
  9881. func = function func() {
  9882. return this[callback]();
  9883. };
  9884. }
  9885. if (token) {
  9886. formatTokenFunctions[token] = func;
  9887. }
  9888. if (padded) {
  9889. formatTokenFunctions[padded[0]] = function () {
  9890. return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
  9891. };
  9892. }
  9893. if (ordinal) {
  9894. formatTokenFunctions[ordinal] = function () {
  9895. return this.localeData().ordinal(func.apply(this, arguments), token);
  9896. };
  9897. }
  9898. }
  9899. function removeFormattingTokens(input) {
  9900. if (input.match(/\[[\s\S]/)) {
  9901. return input.replace(/^\[|\]$/g, '');
  9902. }
  9903. return input.replace(/\\/g, '');
  9904. }
  9905. function makeFormatFunction(format) {
  9906. var array = format.match(formattingTokens),
  9907. i,
  9908. length;
  9909. for (i = 0, length = array.length; i < length; i++) {
  9910. if (formatTokenFunctions[array[i]]) {
  9911. array[i] = formatTokenFunctions[array[i]];
  9912. } else {
  9913. array[i] = removeFormattingTokens(array[i]);
  9914. }
  9915. }
  9916. return function (mom) {
  9917. var output = '',
  9918. i;
  9919. for (i = 0; i < length; i++) {
  9920. output += isFunction(array[i]) ? array[i].call(mom, format) : array[i];
  9921. }
  9922. return output;
  9923. };
  9924. }
  9925. // format date using native date object
  9926. function formatMoment(m, format) {
  9927. if (!m.isValid()) {
  9928. return m.localeData().invalidDate();
  9929. }
  9930. format = expandFormat(format, m.localeData());
  9931. formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format);
  9932. return formatFunctions[format](m);
  9933. }
  9934. function expandFormat(format, locale) {
  9935. var i = 5;
  9936. function replaceLongDateFormatTokens(input) {
  9937. return locale.longDateFormat(input) || input;
  9938. }
  9939. localFormattingTokens.lastIndex = 0;
  9940. while (i >= 0 && localFormattingTokens.test(format)) {
  9941. format = format.replace(localFormattingTokens, replaceLongDateFormatTokens);
  9942. localFormattingTokens.lastIndex = 0;
  9943. i -= 1;
  9944. }
  9945. return format;
  9946. }
  9947. var defaultLongDateFormat = {
  9948. LTS: 'h:mm:ss A',
  9949. LT: 'h:mm A',
  9950. L: 'MM/DD/YYYY',
  9951. LL: 'MMMM D, YYYY',
  9952. LLL: 'MMMM D, YYYY h:mm A',
  9953. LLLL: 'dddd, MMMM D, YYYY h:mm A'
  9954. };
  9955. function longDateFormat(key) {
  9956. var format = this._longDateFormat[key],
  9957. formatUpper = this._longDateFormat[key.toUpperCase()];
  9958. if (format || !formatUpper) {
  9959. return format;
  9960. }
  9961. this._longDateFormat[key] = formatUpper.match(formattingTokens).map(function (tok) {
  9962. if (tok === 'MMMM' || tok === 'MM' || tok === 'DD' || tok === 'dddd') {
  9963. return tok.slice(1);
  9964. }
  9965. return tok;
  9966. }).join('');
  9967. return this._longDateFormat[key];
  9968. }
  9969. var defaultInvalidDate = 'Invalid date';
  9970. function invalidDate() {
  9971. return this._invalidDate;
  9972. }
  9973. var defaultOrdinal = '%d',
  9974. defaultDayOfMonthOrdinalParse = /\d{1,2}/;
  9975. function ordinal(number) {
  9976. return this._ordinal.replace('%d', number);
  9977. }
  9978. var defaultRelativeTime = {
  9979. future: 'in %s',
  9980. past: '%s ago',
  9981. s: 'a few seconds',
  9982. ss: '%d seconds',
  9983. m: 'a minute',
  9984. mm: '%d minutes',
  9985. h: 'an hour',
  9986. hh: '%d hours',
  9987. d: 'a day',
  9988. dd: '%d days',
  9989. w: 'a week',
  9990. ww: '%d weeks',
  9991. M: 'a month',
  9992. MM: '%d months',
  9993. y: 'a year',
  9994. yy: '%d years'
  9995. };
  9996. function relativeTime(number, withoutSuffix, string, isFuture) {
  9997. var output = this._relativeTime[string];
  9998. return isFunction(output) ? output(number, withoutSuffix, string, isFuture) : output.replace(/%d/i, number);
  9999. }
  10000. function pastFuture(diff, output) {
  10001. var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
  10002. return isFunction(format) ? format(output) : format.replace(/%s/i, output);
  10003. }
  10004. var aliases = {};
  10005. function addUnitAlias(unit, shorthand) {
  10006. var lowerCase = unit.toLowerCase();
  10007. aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
  10008. }
  10009. function normalizeUnits(units) {
  10010. return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined;
  10011. }
  10012. function normalizeObjectUnits(inputObject) {
  10013. var normalizedInput = {},
  10014. normalizedProp,
  10015. prop;
  10016. for (prop in inputObject) {
  10017. if (hasOwnProp(inputObject, prop)) {
  10018. normalizedProp = normalizeUnits(prop);
  10019. if (normalizedProp) {
  10020. normalizedInput[normalizedProp] = inputObject[prop];
  10021. }
  10022. }
  10023. }
  10024. return normalizedInput;
  10025. }
  10026. var priorities = {};
  10027. function addUnitPriority(unit, priority) {
  10028. priorities[unit] = priority;
  10029. }
  10030. function getPrioritizedUnits(unitsObj) {
  10031. var units = [],
  10032. u;
  10033. for (u in unitsObj) {
  10034. if (hasOwnProp(unitsObj, u)) {
  10035. units.push({
  10036. unit: u,
  10037. priority: priorities[u]
  10038. });
  10039. }
  10040. }
  10041. units.sort(function (a, b) {
  10042. return a.priority - b.priority;
  10043. });
  10044. return units;
  10045. }
  10046. function isLeapYear(year) {
  10047. return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
  10048. }
  10049. function absFloor(number) {
  10050. if (number < 0) {
  10051. // -0 -> 0
  10052. return Math.ceil(number) || 0;
  10053. } else {
  10054. return Math.floor(number);
  10055. }
  10056. }
  10057. function toInt(argumentForCoercion) {
  10058. var coercedNumber = +argumentForCoercion,
  10059. value = 0;
  10060. if (coercedNumber !== 0 && isFinite(coercedNumber)) {
  10061. value = absFloor(coercedNumber);
  10062. }
  10063. return value;
  10064. }
  10065. function makeGetSet(unit, keepTime) {
  10066. return function (value) {
  10067. if (value != null) {
  10068. set$1(this, unit, value);
  10069. hooks.updateOffset(this, keepTime);
  10070. return this;
  10071. } else {
  10072. return get(this, unit);
  10073. }
  10074. };
  10075. }
  10076. function get(mom, unit) {
  10077. return mom.isValid() ? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN;
  10078. }
  10079. function set$1(mom, unit, value) {
  10080. if (mom.isValid() && !isNaN(value)) {
  10081. if (unit === 'FullYear' && isLeapYear(mom.year()) && mom.month() === 1 && mom.date() === 29) {
  10082. value = toInt(value);
  10083. mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value, mom.month(), daysInMonth(value, mom.month()));
  10084. } else {
  10085. mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
  10086. }
  10087. }
  10088. }
  10089. // MOMENTS
  10090. function stringGet(units) {
  10091. units = normalizeUnits(units);
  10092. if (isFunction(this[units])) {
  10093. return this[units]();
  10094. }
  10095. return this;
  10096. }
  10097. function stringSet(units, value) {
  10098. if (_typeof(units) === 'object') {
  10099. units = normalizeObjectUnits(units);
  10100. var prioritized = getPrioritizedUnits(units),
  10101. i,
  10102. prioritizedLen = prioritized.length;
  10103. for (i = 0; i < prioritizedLen; i++) {
  10104. this[prioritized[i].unit](units[prioritized[i].unit]);
  10105. }
  10106. } else {
  10107. units = normalizeUnits(units);
  10108. if (isFunction(this[units])) {
  10109. return this[units](value);
  10110. }
  10111. }
  10112. return this;
  10113. }
  10114. var match1 = /\d/,
  10115. // 0 - 9
  10116. match2 = /\d\d/,
  10117. // 00 - 99
  10118. match3 = /\d{3}/,
  10119. // 000 - 999
  10120. match4 = /\d{4}/,
  10121. // 0000 - 9999
  10122. match6 = /[+-]?\d{6}/,
  10123. // -999999 - 999999
  10124. match1to2 = /\d\d?/,
  10125. // 0 - 99
  10126. match3to4 = /\d\d\d\d?/,
  10127. // 999 - 9999
  10128. match5to6 = /\d\d\d\d\d\d?/,
  10129. // 99999 - 999999
  10130. match1to3 = /\d{1,3}/,
  10131. // 0 - 999
  10132. match1to4 = /\d{1,4}/,
  10133. // 0 - 9999
  10134. match1to6 = /[+-]?\d{1,6}/,
  10135. // -999999 - 999999
  10136. matchUnsigned = /\d+/,
  10137. // 0 - inf
  10138. matchSigned = /[+-]?\d+/,
  10139. // -inf - inf
  10140. matchOffset = /Z|[+-]\d\d:?\d\d/gi,
  10141. // +00:00 -00:00 +0000 -0000 or Z
  10142. matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi,
  10143. // +00 -00 +00:00 -00:00 +0000 -0000 or Z
  10144. matchTimestamp = /[+-]?\d+(\.\d{1,3})?/,
  10145. // 123456789 123456789.123
  10146. // any word (or two) characters or numbers including two/three word month in arabic.
  10147. // includes scottish gaelic two word and hyphenated months
  10148. matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,
  10149. regexes;
  10150. regexes = {};
  10151. function addRegexToken(token, regex, strictRegex) {
  10152. regexes[token] = isFunction(regex) ? regex : function (isStrict, localeData) {
  10153. return isStrict && strictRegex ? strictRegex : regex;
  10154. };
  10155. }
  10156. function getParseRegexForToken(token, config) {
  10157. if (!hasOwnProp(regexes, token)) {
  10158. return new RegExp(unescapeFormat(token));
  10159. }
  10160. return regexes[token](config._strict, config._locale);
  10161. }
  10162. // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
  10163. function unescapeFormat(s) {
  10164. return regexEscape(s.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) {
  10165. return p1 || p2 || p3 || p4;
  10166. }));
  10167. }
  10168. function regexEscape(s) {
  10169. return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
  10170. }
  10171. var tokens = {};
  10172. function addParseToken(token, callback) {
  10173. var i,
  10174. func = callback,
  10175. tokenLen;
  10176. if (typeof token === 'string') {
  10177. token = [token];
  10178. }
  10179. if (isNumber(callback)) {
  10180. func = function func(input, array) {
  10181. array[callback] = toInt(input);
  10182. };
  10183. }
  10184. tokenLen = token.length;
  10185. for (i = 0; i < tokenLen; i++) {
  10186. tokens[token[i]] = func;
  10187. }
  10188. }
  10189. function addWeekParseToken(token, callback) {
  10190. addParseToken(token, function (input, array, config, token) {
  10191. config._w = config._w || {};
  10192. callback(input, config._w, config, token);
  10193. });
  10194. }
  10195. function addTimeToArrayFromToken(token, input, config) {
  10196. if (input != null && hasOwnProp(tokens, token)) {
  10197. tokens[token](input, config._a, config, token);
  10198. }
  10199. }
  10200. var YEAR = 0,
  10201. MONTH = 1,
  10202. DATE = 2,
  10203. HOUR = 3,
  10204. MINUTE = 4,
  10205. SECOND = 5,
  10206. MILLISECOND = 6,
  10207. WEEK = 7,
  10208. WEEKDAY = 8;
  10209. function mod(n, x) {
  10210. return (n % x + x) % x;
  10211. }
  10212. var indexOf;
  10213. if (Array.prototype.indexOf) {
  10214. indexOf = Array.prototype.indexOf;
  10215. } else {
  10216. indexOf = function indexOf(o) {
  10217. // I know
  10218. var i;
  10219. for (i = 0; i < this.length; ++i) {
  10220. if (this[i] === o) {
  10221. return i;
  10222. }
  10223. }
  10224. return -1;
  10225. };
  10226. }
  10227. function daysInMonth(year, month) {
  10228. if (isNaN(year) || isNaN(month)) {
  10229. return NaN;
  10230. }
  10231. var modMonth = mod(month, 12);
  10232. year += (month - modMonth) / 12;
  10233. return modMonth === 1 ? isLeapYear(year) ? 29 : 28 : 31 - modMonth % 7 % 2;
  10234. }
  10235. // FORMATTING
  10236. addFormatToken('M', ['MM', 2], 'Mo', function () {
  10237. return this.month() + 1;
  10238. });
  10239. addFormatToken('MMM', 0, 0, function (format) {
  10240. return this.localeData().monthsShort(this, format);
  10241. });
  10242. addFormatToken('MMMM', 0, 0, function (format) {
  10243. return this.localeData().months(this, format);
  10244. });
  10245. // ALIASES
  10246. addUnitAlias('month', 'M');
  10247. // PRIORITY
  10248. addUnitPriority('month', 8);
  10249. // PARSING
  10250. addRegexToken('M', match1to2);
  10251. addRegexToken('MM', match1to2, match2);
  10252. addRegexToken('MMM', function (isStrict, locale) {
  10253. return locale.monthsShortRegex(isStrict);
  10254. });
  10255. addRegexToken('MMMM', function (isStrict, locale) {
  10256. return locale.monthsRegex(isStrict);
  10257. });
  10258. addParseToken(['M', 'MM'], function (input, array) {
  10259. array[MONTH] = toInt(input) - 1;
  10260. });
  10261. addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
  10262. var month = config._locale.monthsParse(input, token, config._strict);
  10263. // if we didn't find a month name, mark the date as invalid.
  10264. if (month != null) {
  10265. array[MONTH] = month;
  10266. } else {
  10267. getParsingFlags(config).invalidMonth = input;
  10268. }
  10269. });
  10270. // LOCALES
  10271. var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  10272. defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  10273. MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
  10274. defaultMonthsShortRegex = matchWord,
  10275. defaultMonthsRegex = matchWord;
  10276. function localeMonths(m, format) {
  10277. if (!m) {
  10278. return isArray(this._months) ? this._months : this._months['standalone'];
  10279. }
  10280. return isArray(this._months) ? this._months[m.month()] : this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format) ? 'format' : 'standalone'][m.month()];
  10281. }
  10282. function localeMonthsShort(m, format) {
  10283. if (!m) {
  10284. return isArray(this._monthsShort) ? this._monthsShort : this._monthsShort['standalone'];
  10285. }
  10286. return isArray(this._monthsShort) ? this._monthsShort[m.month()] : this._monthsShort[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()];
  10287. }
  10288. function handleStrictParse(monthName, format, strict) {
  10289. var i,
  10290. ii,
  10291. mom,
  10292. llc = monthName.toLocaleLowerCase();
  10293. if (!this._monthsParse) {
  10294. // this is not used
  10295. this._monthsParse = [];
  10296. this._longMonthsParse = [];
  10297. this._shortMonthsParse = [];
  10298. for (i = 0; i < 12; ++i) {
  10299. mom = createUTC([2000, i]);
  10300. this._shortMonthsParse[i] = this.monthsShort(mom, '').toLocaleLowerCase();
  10301. this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();
  10302. }
  10303. }
  10304. if (strict) {
  10305. if (format === 'MMM') {
  10306. ii = indexOf.call(this._shortMonthsParse, llc);
  10307. return ii !== -1 ? ii : null;
  10308. } else {
  10309. ii = indexOf.call(this._longMonthsParse, llc);
  10310. return ii !== -1 ? ii : null;
  10311. }
  10312. } else {
  10313. if (format === 'MMM') {
  10314. ii = indexOf.call(this._shortMonthsParse, llc);
  10315. if (ii !== -1) {
  10316. return ii;
  10317. }
  10318. ii = indexOf.call(this._longMonthsParse, llc);
  10319. return ii !== -1 ? ii : null;
  10320. } else {
  10321. ii = indexOf.call(this._longMonthsParse, llc);
  10322. if (ii !== -1) {
  10323. return ii;
  10324. }
  10325. ii = indexOf.call(this._shortMonthsParse, llc);
  10326. return ii !== -1 ? ii : null;
  10327. }
  10328. }
  10329. }
  10330. function localeMonthsParse(monthName, format, strict) {
  10331. var i, mom, regex;
  10332. if (this._monthsParseExact) {
  10333. return handleStrictParse.call(this, monthName, format, strict);
  10334. }
  10335. if (!this._monthsParse) {
  10336. this._monthsParse = [];
  10337. this._longMonthsParse = [];
  10338. this._shortMonthsParse = [];
  10339. }
  10340. // TODO: add sorting
  10341. // Sorting makes sure if one month (or abbr) is a prefix of another
  10342. // see sorting in computeMonthsParse
  10343. for (i = 0; i < 12; i++) {
  10344. // make the regex if we don't have it already
  10345. mom = createUTC([2000, i]);
  10346. if (strict && !this._longMonthsParse[i]) {
  10347. this._longMonthsParse[i] = new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i');
  10348. this._shortMonthsParse[i] = new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i');
  10349. }
  10350. if (!strict && !this._monthsParse[i]) {
  10351. regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
  10352. this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
  10353. }
  10354. // test the regex
  10355. if (strict && format === 'MMMM' && this._longMonthsParse[i].test(monthName)) {
  10356. return i;
  10357. } else if (strict && format === 'MMM' && this._shortMonthsParse[i].test(monthName)) {
  10358. return i;
  10359. } else if (!strict && this._monthsParse[i].test(monthName)) {
  10360. return i;
  10361. }
  10362. }
  10363. }
  10364. // MOMENTS
  10365. function setMonth(mom, value) {
  10366. var dayOfMonth;
  10367. if (!mom.isValid()) {
  10368. // No op
  10369. return mom;
  10370. }
  10371. if (typeof value === 'string') {
  10372. if (/^\d+$/.test(value)) {
  10373. value = toInt(value);
  10374. } else {
  10375. value = mom.localeData().monthsParse(value);
  10376. // TODO: Another silent failure?
  10377. if (!isNumber(value)) {
  10378. return mom;
  10379. }
  10380. }
  10381. }
  10382. dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
  10383. mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
  10384. return mom;
  10385. }
  10386. function getSetMonth(value) {
  10387. if (value != null) {
  10388. setMonth(this, value);
  10389. hooks.updateOffset(this, true);
  10390. return this;
  10391. } else {
  10392. return get(this, 'Month');
  10393. }
  10394. }
  10395. function getDaysInMonth() {
  10396. return daysInMonth(this.year(), this.month());
  10397. }
  10398. function monthsShortRegex(isStrict) {
  10399. if (this._monthsParseExact) {
  10400. if (!hasOwnProp(this, '_monthsRegex')) {
  10401. computeMonthsParse.call(this);
  10402. }
  10403. if (isStrict) {
  10404. return this._monthsShortStrictRegex;
  10405. } else {
  10406. return this._monthsShortRegex;
  10407. }
  10408. } else {
  10409. if (!hasOwnProp(this, '_monthsShortRegex')) {
  10410. this._monthsShortRegex = defaultMonthsShortRegex;
  10411. }
  10412. return this._monthsShortStrictRegex && isStrict ? this._monthsShortStrictRegex : this._monthsShortRegex;
  10413. }
  10414. }
  10415. function monthsRegex(isStrict) {
  10416. if (this._monthsParseExact) {
  10417. if (!hasOwnProp(this, '_monthsRegex')) {
  10418. computeMonthsParse.call(this);
  10419. }
  10420. if (isStrict) {
  10421. return this._monthsStrictRegex;
  10422. } else {
  10423. return this._monthsRegex;
  10424. }
  10425. } else {
  10426. if (!hasOwnProp(this, '_monthsRegex')) {
  10427. this._monthsRegex = defaultMonthsRegex;
  10428. }
  10429. return this._monthsStrictRegex && isStrict ? this._monthsStrictRegex : this._monthsRegex;
  10430. }
  10431. }
  10432. function computeMonthsParse() {
  10433. function cmpLenRev(a, b) {
  10434. return b.length - a.length;
  10435. }
  10436. var shortPieces = [],
  10437. longPieces = [],
  10438. mixedPieces = [],
  10439. i,
  10440. mom;
  10441. for (i = 0; i < 12; i++) {
  10442. // make the regex if we don't have it already
  10443. mom = createUTC([2000, i]);
  10444. shortPieces.push(this.monthsShort(mom, ''));
  10445. longPieces.push(this.months(mom, ''));
  10446. mixedPieces.push(this.months(mom, ''));
  10447. mixedPieces.push(this.monthsShort(mom, ''));
  10448. }
  10449. // Sorting makes sure if one month (or abbr) is a prefix of another it
  10450. // will match the longer piece.
  10451. shortPieces.sort(cmpLenRev);
  10452. longPieces.sort(cmpLenRev);
  10453. mixedPieces.sort(cmpLenRev);
  10454. for (i = 0; i < 12; i++) {
  10455. shortPieces[i] = regexEscape(shortPieces[i]);
  10456. longPieces[i] = regexEscape(longPieces[i]);
  10457. }
  10458. for (i = 0; i < 24; i++) {
  10459. mixedPieces[i] = regexEscape(mixedPieces[i]);
  10460. }
  10461. this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  10462. this._monthsShortRegex = this._monthsRegex;
  10463. this._monthsStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
  10464. this._monthsShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
  10465. }
  10466. // FORMATTING
  10467. addFormatToken('Y', 0, 0, function () {
  10468. var y = this.year();
  10469. return y <= 9999 ? zeroFill(y, 4) : '+' + y;
  10470. });
  10471. addFormatToken(0, ['YY', 2], 0, function () {
  10472. return this.year() % 100;
  10473. });
  10474. addFormatToken(0, ['YYYY', 4], 0, 'year');
  10475. addFormatToken(0, ['YYYYY', 5], 0, 'year');
  10476. addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
  10477. // ALIASES
  10478. addUnitAlias('year', 'y');
  10479. // PRIORITIES
  10480. addUnitPriority('year', 1);
  10481. // PARSING
  10482. addRegexToken('Y', matchSigned);
  10483. addRegexToken('YY', match1to2, match2);
  10484. addRegexToken('YYYY', match1to4, match4);
  10485. addRegexToken('YYYYY', match1to6, match6);
  10486. addRegexToken('YYYYYY', match1to6, match6);
  10487. addParseToken(['YYYYY', 'YYYYYY'], YEAR);
  10488. addParseToken('YYYY', function (input, array) {
  10489. array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
  10490. });
  10491. addParseToken('YY', function (input, array) {
  10492. array[YEAR] = hooks.parseTwoDigitYear(input);
  10493. });
  10494. addParseToken('Y', function (input, array) {
  10495. array[YEAR] = parseInt(input, 10);
  10496. });
  10497. // HELPERS
  10498. function daysInYear(year) {
  10499. return isLeapYear(year) ? 366 : 365;
  10500. }
  10501. // HOOKS
  10502. hooks.parseTwoDigitYear = function (input) {
  10503. return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
  10504. };
  10505. // MOMENTS
  10506. var getSetYear = makeGetSet('FullYear', true);
  10507. function getIsLeapYear() {
  10508. return isLeapYear(this.year());
  10509. }
  10510. function createDate(y, m, d, h, M, s, ms) {
  10511. // can't just apply() to create a date:
  10512. // https://stackoverflow.com/q/181348
  10513. var date;
  10514. // the date constructor remaps years 0-99 to 1900-1999
  10515. if (y < 100 && y >= 0) {
  10516. // preserve leap years using a full 400 year cycle, then reset
  10517. date = new Date(y + 400, m, d, h, M, s, ms);
  10518. if (isFinite(date.getFullYear())) {
  10519. date.setFullYear(y);
  10520. }
  10521. } else {
  10522. date = new Date(y, m, d, h, M, s, ms);
  10523. }
  10524. return date;
  10525. }
  10526. function createUTCDate(y) {
  10527. var date, args;
  10528. // the Date.UTC function remaps years 0-99 to 1900-1999
  10529. if (y < 100 && y >= 0) {
  10530. args = Array.prototype.slice.call(arguments);
  10531. // preserve leap years using a full 400 year cycle, then reset
  10532. args[0] = y + 400;
  10533. date = new Date(Date.UTC.apply(null, args));
  10534. if (isFinite(date.getUTCFullYear())) {
  10535. date.setUTCFullYear(y);
  10536. }
  10537. } else {
  10538. date = new Date(Date.UTC.apply(null, arguments));
  10539. }
  10540. return date;
  10541. }
  10542. // start-of-first-week - start-of-year
  10543. function firstWeekOffset(year, dow, doy) {
  10544. var
  10545. // first-week day -- which january is always in the first week (4 for iso, 1 for other)
  10546. fwd = 7 + dow - doy,
  10547. // first-week day local weekday -- which local weekday is fwd
  10548. fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
  10549. return -fwdlw + fwd - 1;
  10550. }
  10551. // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
  10552. function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
  10553. var localWeekday = (7 + weekday - dow) % 7,
  10554. weekOffset = firstWeekOffset(year, dow, doy),
  10555. dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,
  10556. resYear,
  10557. resDayOfYear;
  10558. if (dayOfYear <= 0) {
  10559. resYear = year - 1;
  10560. resDayOfYear = daysInYear(resYear) + dayOfYear;
  10561. } else if (dayOfYear > daysInYear(year)) {
  10562. resYear = year + 1;
  10563. resDayOfYear = dayOfYear - daysInYear(year);
  10564. } else {
  10565. resYear = year;
  10566. resDayOfYear = dayOfYear;
  10567. }
  10568. return {
  10569. year: resYear,
  10570. dayOfYear: resDayOfYear
  10571. };
  10572. }
  10573. function weekOfYear(mom, dow, doy) {
  10574. var weekOffset = firstWeekOffset(mom.year(), dow, doy),
  10575. week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,
  10576. resWeek,
  10577. resYear;
  10578. if (week < 1) {
  10579. resYear = mom.year() - 1;
  10580. resWeek = week + weeksInYear(resYear, dow, doy);
  10581. } else if (week > weeksInYear(mom.year(), dow, doy)) {
  10582. resWeek = week - weeksInYear(mom.year(), dow, doy);
  10583. resYear = mom.year() + 1;
  10584. } else {
  10585. resYear = mom.year();
  10586. resWeek = week;
  10587. }
  10588. return {
  10589. week: resWeek,
  10590. year: resYear
  10591. };
  10592. }
  10593. function weeksInYear(year, dow, doy) {
  10594. var weekOffset = firstWeekOffset(year, dow, doy),
  10595. weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
  10596. return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
  10597. }
  10598. // FORMATTING
  10599. addFormatToken('w', ['ww', 2], 'wo', 'week');
  10600. addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
  10601. // ALIASES
  10602. addUnitAlias('week', 'w');
  10603. addUnitAlias('isoWeek', 'W');
  10604. // PRIORITIES
  10605. addUnitPriority('week', 5);
  10606. addUnitPriority('isoWeek', 5);
  10607. // PARSING
  10608. addRegexToken('w', match1to2);
  10609. addRegexToken('ww', match1to2, match2);
  10610. addRegexToken('W', match1to2);
  10611. addRegexToken('WW', match1to2, match2);
  10612. addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token) {
  10613. week[token.substr(0, 1)] = toInt(input);
  10614. });
  10615. // HELPERS
  10616. // LOCALES
  10617. function localeWeek(mom) {
  10618. return weekOfYear(mom, this._week.dow, this._week.doy).week;
  10619. }
  10620. var defaultLocaleWeek = {
  10621. dow: 0,
  10622. // Sunday is the first day of the week.
  10623. doy: 6 // The week that contains Jan 6th is the first week of the year.
  10624. };
  10625. function localeFirstDayOfWeek() {
  10626. return this._week.dow;
  10627. }
  10628. function localeFirstDayOfYear() {
  10629. return this._week.doy;
  10630. }
  10631. // MOMENTS
  10632. function getSetWeek(input) {
  10633. var week = this.localeData().week(this);
  10634. return input == null ? week : this.add((input - week) * 7, 'd');
  10635. }
  10636. function getSetISOWeek(input) {
  10637. var week = weekOfYear(this, 1, 4).week;
  10638. return input == null ? week : this.add((input - week) * 7, 'd');
  10639. }
  10640. // FORMATTING
  10641. addFormatToken('d', 0, 'do', 'day');
  10642. addFormatToken('dd', 0, 0, function (format) {
  10643. return this.localeData().weekdaysMin(this, format);
  10644. });
  10645. addFormatToken('ddd', 0, 0, function (format) {
  10646. return this.localeData().weekdaysShort(this, format);
  10647. });
  10648. addFormatToken('dddd', 0, 0, function (format) {
  10649. return this.localeData().weekdays(this, format);
  10650. });
  10651. addFormatToken('e', 0, 0, 'weekday');
  10652. addFormatToken('E', 0, 0, 'isoWeekday');
  10653. // ALIASES
  10654. addUnitAlias('day', 'd');
  10655. addUnitAlias('weekday', 'e');
  10656. addUnitAlias('isoWeekday', 'E');
  10657. // PRIORITY
  10658. addUnitPriority('day', 11);
  10659. addUnitPriority('weekday', 11);
  10660. addUnitPriority('isoWeekday', 11);
  10661. // PARSING
  10662. addRegexToken('d', match1to2);
  10663. addRegexToken('e', match1to2);
  10664. addRegexToken('E', match1to2);
  10665. addRegexToken('dd', function (isStrict, locale) {
  10666. return locale.weekdaysMinRegex(isStrict);
  10667. });
  10668. addRegexToken('ddd', function (isStrict, locale) {
  10669. return locale.weekdaysShortRegex(isStrict);
  10670. });
  10671. addRegexToken('dddd', function (isStrict, locale) {
  10672. return locale.weekdaysRegex(isStrict);
  10673. });
  10674. addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
  10675. var weekday = config._locale.weekdaysParse(input, token, config._strict);
  10676. // if we didn't get a weekday name, mark the date as invalid
  10677. if (weekday != null) {
  10678. week.d = weekday;
  10679. } else {
  10680. getParsingFlags(config).invalidWeekday = input;
  10681. }
  10682. });
  10683. addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
  10684. week[token] = toInt(input);
  10685. });
  10686. // HELPERS
  10687. function parseWeekday(input, locale) {
  10688. if (typeof input !== 'string') {
  10689. return input;
  10690. }
  10691. if (!isNaN(input)) {
  10692. return parseInt(input, 10);
  10693. }
  10694. input = locale.weekdaysParse(input);
  10695. if (typeof input === 'number') {
  10696. return input;
  10697. }
  10698. return null;
  10699. }
  10700. function parseIsoWeekday(input, locale) {
  10701. if (typeof input === 'string') {
  10702. return locale.weekdaysParse(input) % 7 || 7;
  10703. }
  10704. return isNaN(input) ? null : input;
  10705. }
  10706. // LOCALES
  10707. function shiftWeekdays(ws, n) {
  10708. return ws.slice(n, 7).concat(ws.slice(0, n));
  10709. }
  10710. var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  10711. defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  10712. defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  10713. defaultWeekdaysRegex = matchWord,
  10714. defaultWeekdaysShortRegex = matchWord,
  10715. defaultWeekdaysMinRegex = matchWord;
  10716. function localeWeekdays(m, format) {
  10717. var weekdays = isArray(this._weekdays) ? this._weekdays : this._weekdays[m && m !== true && this._weekdays.isFormat.test(format) ? 'format' : 'standalone'];
  10718. return m === true ? shiftWeekdays(weekdays, this._week.dow) : m ? weekdays[m.day()] : weekdays;
  10719. }
  10720. function localeWeekdaysShort(m) {
  10721. return m === true ? shiftWeekdays(this._weekdaysShort, this._week.dow) : m ? this._weekdaysShort[m.day()] : this._weekdaysShort;
  10722. }
  10723. function localeWeekdaysMin(m) {
  10724. return m === true ? shiftWeekdays(this._weekdaysMin, this._week.dow) : m ? this._weekdaysMin[m.day()] : this._weekdaysMin;
  10725. }
  10726. function handleStrictParse$1(weekdayName, format, strict) {
  10727. var i,
  10728. ii,
  10729. mom,
  10730. llc = weekdayName.toLocaleLowerCase();
  10731. if (!this._weekdaysParse) {
  10732. this._weekdaysParse = [];
  10733. this._shortWeekdaysParse = [];
  10734. this._minWeekdaysParse = [];
  10735. for (i = 0; i < 7; ++i) {
  10736. mom = createUTC([2000, 1]).day(i);
  10737. this._minWeekdaysParse[i] = this.weekdaysMin(mom, '').toLocaleLowerCase();
  10738. this._shortWeekdaysParse[i] = this.weekdaysShort(mom, '').toLocaleLowerCase();
  10739. this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();
  10740. }
  10741. }
  10742. if (strict) {
  10743. if (format === 'dddd') {
  10744. ii = indexOf.call(this._weekdaysParse, llc);
  10745. return ii !== -1 ? ii : null;
  10746. } else if (format === 'ddd') {
  10747. ii = indexOf.call(this._shortWeekdaysParse, llc);
  10748. return ii !== -1 ? ii : null;
  10749. } else {
  10750. ii = indexOf.call(this._minWeekdaysParse, llc);
  10751. return ii !== -1 ? ii : null;
  10752. }
  10753. } else {
  10754. if (format === 'dddd') {
  10755. ii = indexOf.call(this._weekdaysParse, llc);
  10756. if (ii !== -1) {
  10757. return ii;
  10758. }
  10759. ii = indexOf.call(this._shortWeekdaysParse, llc);
  10760. if (ii !== -1) {
  10761. return ii;
  10762. }
  10763. ii = indexOf.call(this._minWeekdaysParse, llc);
  10764. return ii !== -1 ? ii : null;
  10765. } else if (format === 'ddd') {
  10766. ii = indexOf.call(this._shortWeekdaysParse, llc);
  10767. if (ii !== -1) {
  10768. return ii;
  10769. }
  10770. ii = indexOf.call(this._weekdaysParse, llc);
  10771. if (ii !== -1) {
  10772. return ii;
  10773. }
  10774. ii = indexOf.call(this._minWeekdaysParse, llc);
  10775. return ii !== -1 ? ii : null;
  10776. } else {
  10777. ii = indexOf.call(this._minWeekdaysParse, llc);
  10778. if (ii !== -1) {
  10779. return ii;
  10780. }
  10781. ii = indexOf.call(this._weekdaysParse, llc);
  10782. if (ii !== -1) {
  10783. return ii;
  10784. }
  10785. ii = indexOf.call(this._shortWeekdaysParse, llc);
  10786. return ii !== -1 ? ii : null;
  10787. }
  10788. }
  10789. }
  10790. function localeWeekdaysParse(weekdayName, format, strict) {
  10791. var i, mom, regex;
  10792. if (this._weekdaysParseExact) {
  10793. return handleStrictParse$1.call(this, weekdayName, format, strict);
  10794. }
  10795. if (!this._weekdaysParse) {
  10796. this._weekdaysParse = [];
  10797. this._minWeekdaysParse = [];
  10798. this._shortWeekdaysParse = [];
  10799. this._fullWeekdaysParse = [];
  10800. }
  10801. for (i = 0; i < 7; i++) {
  10802. // make the regex if we don't have it already
  10803. mom = createUTC([2000, 1]).day(i);
  10804. if (strict && !this._fullWeekdaysParse[i]) {
  10805. this._fullWeekdaysParse[i] = new RegExp('^' + this.weekdays(mom, '').replace('.', '\\.?') + '$', 'i');
  10806. this._shortWeekdaysParse[i] = new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\\.?') + '$', 'i');
  10807. this._minWeekdaysParse[i] = new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\\.?') + '$', 'i');
  10808. }
  10809. if (!this._weekdaysParse[i]) {
  10810. regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, '');
  10811. this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
  10812. }
  10813. // test the regex
  10814. if (strict && format === 'dddd' && this._fullWeekdaysParse[i].test(weekdayName)) {
  10815. return i;
  10816. } else if (strict && format === 'ddd' && this._shortWeekdaysParse[i].test(weekdayName)) {
  10817. return i;
  10818. } else if (strict && format === 'dd' && this._minWeekdaysParse[i].test(weekdayName)) {
  10819. return i;
  10820. } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
  10821. return i;
  10822. }
  10823. }
  10824. }
  10825. // MOMENTS
  10826. function getSetDayOfWeek(input) {
  10827. if (!this.isValid()) {
  10828. return input != null ? this : NaN;
  10829. }
  10830. var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
  10831. if (input != null) {
  10832. input = parseWeekday(input, this.localeData());
  10833. return this.add(input - day, 'd');
  10834. } else {
  10835. return day;
  10836. }
  10837. }
  10838. function getSetLocaleDayOfWeek(input) {
  10839. if (!this.isValid()) {
  10840. return input != null ? this : NaN;
  10841. }
  10842. var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
  10843. return input == null ? weekday : this.add(input - weekday, 'd');
  10844. }
  10845. function getSetISODayOfWeek(input) {
  10846. if (!this.isValid()) {
  10847. return input != null ? this : NaN;
  10848. }
  10849. // behaves the same as moment#day except
  10850. // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
  10851. // as a setter, sunday should belong to the previous week.
  10852. if (input != null) {
  10853. var weekday = parseIsoWeekday(input, this.localeData());
  10854. return this.day(this.day() % 7 ? weekday : weekday - 7);
  10855. } else {
  10856. return this.day() || 7;
  10857. }
  10858. }
  10859. function weekdaysRegex(isStrict) {
  10860. if (this._weekdaysParseExact) {
  10861. if (!hasOwnProp(this, '_weekdaysRegex')) {
  10862. computeWeekdaysParse.call(this);
  10863. }
  10864. if (isStrict) {
  10865. return this._weekdaysStrictRegex;
  10866. } else {
  10867. return this._weekdaysRegex;
  10868. }
  10869. } else {
  10870. if (!hasOwnProp(this, '_weekdaysRegex')) {
  10871. this._weekdaysRegex = defaultWeekdaysRegex;
  10872. }
  10873. return this._weekdaysStrictRegex && isStrict ? this._weekdaysStrictRegex : this._weekdaysRegex;
  10874. }
  10875. }
  10876. function weekdaysShortRegex(isStrict) {
  10877. if (this._weekdaysParseExact) {
  10878. if (!hasOwnProp(this, '_weekdaysRegex')) {
  10879. computeWeekdaysParse.call(this);
  10880. }
  10881. if (isStrict) {
  10882. return this._weekdaysShortStrictRegex;
  10883. } else {
  10884. return this._weekdaysShortRegex;
  10885. }
  10886. } else {
  10887. if (!hasOwnProp(this, '_weekdaysShortRegex')) {
  10888. this._weekdaysShortRegex = defaultWeekdaysShortRegex;
  10889. }
  10890. return this._weekdaysShortStrictRegex && isStrict ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex;
  10891. }
  10892. }
  10893. function weekdaysMinRegex(isStrict) {
  10894. if (this._weekdaysParseExact) {
  10895. if (!hasOwnProp(this, '_weekdaysRegex')) {
  10896. computeWeekdaysParse.call(this);
  10897. }
  10898. if (isStrict) {
  10899. return this._weekdaysMinStrictRegex;
  10900. } else {
  10901. return this._weekdaysMinRegex;
  10902. }
  10903. } else {
  10904. if (!hasOwnProp(this, '_weekdaysMinRegex')) {
  10905. this._weekdaysMinRegex = defaultWeekdaysMinRegex;
  10906. }
  10907. return this._weekdaysMinStrictRegex && isStrict ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex;
  10908. }
  10909. }
  10910. function computeWeekdaysParse() {
  10911. function cmpLenRev(a, b) {
  10912. return b.length - a.length;
  10913. }
  10914. var minPieces = [],
  10915. shortPieces = [],
  10916. longPieces = [],
  10917. mixedPieces = [],
  10918. i,
  10919. mom,
  10920. minp,
  10921. shortp,
  10922. longp;
  10923. for (i = 0; i < 7; i++) {
  10924. // make the regex if we don't have it already
  10925. mom = createUTC([2000, 1]).day(i);
  10926. minp = regexEscape(this.weekdaysMin(mom, ''));
  10927. shortp = regexEscape(this.weekdaysShort(mom, ''));
  10928. longp = regexEscape(this.weekdays(mom, ''));
  10929. minPieces.push(minp);
  10930. shortPieces.push(shortp);
  10931. longPieces.push(longp);
  10932. mixedPieces.push(minp);
  10933. mixedPieces.push(shortp);
  10934. mixedPieces.push(longp);
  10935. }
  10936. // Sorting makes sure if one weekday (or abbr) is a prefix of another it
  10937. // will match the longer piece.
  10938. minPieces.sort(cmpLenRev);
  10939. shortPieces.sort(cmpLenRev);
  10940. longPieces.sort(cmpLenRev);
  10941. mixedPieces.sort(cmpLenRev);
  10942. this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  10943. this._weekdaysShortRegex = this._weekdaysRegex;
  10944. this._weekdaysMinRegex = this._weekdaysRegex;
  10945. this._weekdaysStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
  10946. this._weekdaysShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
  10947. this._weekdaysMinStrictRegex = new RegExp('^(' + minPieces.join('|') + ')', 'i');
  10948. }
  10949. // FORMATTING
  10950. function hFormat() {
  10951. return this.hours() % 12 || 12;
  10952. }
  10953. function kFormat() {
  10954. return this.hours() || 24;
  10955. }
  10956. addFormatToken('H', ['HH', 2], 0, 'hour');
  10957. addFormatToken('h', ['hh', 2], 0, hFormat);
  10958. addFormatToken('k', ['kk', 2], 0, kFormat);
  10959. addFormatToken('hmm', 0, 0, function () {
  10960. return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);
  10961. });
  10962. addFormatToken('hmmss', 0, 0, function () {
  10963. return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2) + zeroFill(this.seconds(), 2);
  10964. });
  10965. addFormatToken('Hmm', 0, 0, function () {
  10966. return '' + this.hours() + zeroFill(this.minutes(), 2);
  10967. });
  10968. addFormatToken('Hmmss', 0, 0, function () {
  10969. return '' + this.hours() + zeroFill(this.minutes(), 2) + zeroFill(this.seconds(), 2);
  10970. });
  10971. function meridiem(token, lowercase) {
  10972. addFormatToken(token, 0, 0, function () {
  10973. return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);
  10974. });
  10975. }
  10976. meridiem('a', true);
  10977. meridiem('A', false);
  10978. // ALIASES
  10979. addUnitAlias('hour', 'h');
  10980. // PRIORITY
  10981. addUnitPriority('hour', 13);
  10982. // PARSING
  10983. function matchMeridiem(isStrict, locale) {
  10984. return locale._meridiemParse;
  10985. }
  10986. addRegexToken('a', matchMeridiem);
  10987. addRegexToken('A', matchMeridiem);
  10988. addRegexToken('H', match1to2);
  10989. addRegexToken('h', match1to2);
  10990. addRegexToken('k', match1to2);
  10991. addRegexToken('HH', match1to2, match2);
  10992. addRegexToken('hh', match1to2, match2);
  10993. addRegexToken('kk', match1to2, match2);
  10994. addRegexToken('hmm', match3to4);
  10995. addRegexToken('hmmss', match5to6);
  10996. addRegexToken('Hmm', match3to4);
  10997. addRegexToken('Hmmss', match5to6);
  10998. addParseToken(['H', 'HH'], HOUR);
  10999. addParseToken(['k', 'kk'], function (input, array, config) {
  11000. var kInput = toInt(input);
  11001. array[HOUR] = kInput === 24 ? 0 : kInput;
  11002. });
  11003. addParseToken(['a', 'A'], function (input, array, config) {
  11004. config._isPm = config._locale.isPM(input);
  11005. config._meridiem = input;
  11006. });
  11007. addParseToken(['h', 'hh'], function (input, array, config) {
  11008. array[HOUR] = toInt(input);
  11009. getParsingFlags(config).bigHour = true;
  11010. });
  11011. addParseToken('hmm', function (input, array, config) {
  11012. var pos = input.length - 2;
  11013. array[HOUR] = toInt(input.substr(0, pos));
  11014. array[MINUTE] = toInt(input.substr(pos));
  11015. getParsingFlags(config).bigHour = true;
  11016. });
  11017. addParseToken('hmmss', function (input, array, config) {
  11018. var pos1 = input.length - 4,
  11019. pos2 = input.length - 2;
  11020. array[HOUR] = toInt(input.substr(0, pos1));
  11021. array[MINUTE] = toInt(input.substr(pos1, 2));
  11022. array[SECOND] = toInt(input.substr(pos2));
  11023. getParsingFlags(config).bigHour = true;
  11024. });
  11025. addParseToken('Hmm', function (input, array, config) {
  11026. var pos = input.length - 2;
  11027. array[HOUR] = toInt(input.substr(0, pos));
  11028. array[MINUTE] = toInt(input.substr(pos));
  11029. });
  11030. addParseToken('Hmmss', function (input, array, config) {
  11031. var pos1 = input.length - 4,
  11032. pos2 = input.length - 2;
  11033. array[HOUR] = toInt(input.substr(0, pos1));
  11034. array[MINUTE] = toInt(input.substr(pos1, 2));
  11035. array[SECOND] = toInt(input.substr(pos2));
  11036. });
  11037. // LOCALES
  11038. function localeIsPM(input) {
  11039. // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
  11040. // Using charAt should be more compatible.
  11041. return (input + '').toLowerCase().charAt(0) === 'p';
  11042. }
  11043. var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i,
  11044. // Setting the hour should keep the time, because the user explicitly
  11045. // specified which hour they want. So trying to maintain the same hour (in
  11046. // a new timezone) makes sense. Adding/subtracting hours does not follow
  11047. // this rule.
  11048. getSetHour = makeGetSet('Hours', true);
  11049. function localeMeridiem(hours, minutes, isLower) {
  11050. if (hours > 11) {
  11051. return isLower ? 'pm' : 'PM';
  11052. } else {
  11053. return isLower ? 'am' : 'AM';
  11054. }
  11055. }
  11056. var baseConfig = {
  11057. calendar: defaultCalendar,
  11058. longDateFormat: defaultLongDateFormat,
  11059. invalidDate: defaultInvalidDate,
  11060. ordinal: defaultOrdinal,
  11061. dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,
  11062. relativeTime: defaultRelativeTime,
  11063. months: defaultLocaleMonths,
  11064. monthsShort: defaultLocaleMonthsShort,
  11065. week: defaultLocaleWeek,
  11066. weekdays: defaultLocaleWeekdays,
  11067. weekdaysMin: defaultLocaleWeekdaysMin,
  11068. weekdaysShort: defaultLocaleWeekdaysShort,
  11069. meridiemParse: defaultLocaleMeridiemParse
  11070. };
  11071. // internal storage for locale config files
  11072. var locales = {},
  11073. localeFamilies = {},
  11074. globalLocale;
  11075. function commonPrefix(arr1, arr2) {
  11076. var i,
  11077. minl = Math.min(arr1.length, arr2.length);
  11078. for (i = 0; i < minl; i += 1) {
  11079. if (arr1[i] !== arr2[i]) {
  11080. return i;
  11081. }
  11082. }
  11083. return minl;
  11084. }
  11085. function normalizeLocale(key) {
  11086. return key ? key.toLowerCase().replace('_', '-') : key;
  11087. }
  11088. // pick the locale from the array
  11089. // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
  11090. // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
  11091. function chooseLocale(names) {
  11092. var i = 0,
  11093. j,
  11094. next,
  11095. locale,
  11096. split;
  11097. while (i < names.length) {
  11098. split = normalizeLocale(names[i]).split('-');
  11099. j = split.length;
  11100. next = normalizeLocale(names[i + 1]);
  11101. next = next ? next.split('-') : null;
  11102. while (j > 0) {
  11103. locale = loadLocale(split.slice(0, j).join('-'));
  11104. if (locale) {
  11105. return locale;
  11106. }
  11107. if (next && next.length >= j && commonPrefix(split, next) >= j - 1) {
  11108. //the next array item is better than a shallower substring of this one
  11109. break;
  11110. }
  11111. j--;
  11112. }
  11113. i++;
  11114. }
  11115. return globalLocale;
  11116. }
  11117. function isLocaleNameSane(name) {
  11118. // Prevent names that look like filesystem paths, i.e contain '/' or '\'
  11119. return name.match('^[^/\\\\]*$') != null;
  11120. }
  11121. function loadLocale(name) {
  11122. var oldLocale = null,
  11123. aliasedRequire;
  11124. // TODO: Find a better way to register and load all the locales in Node
  11125. if (locales[name] === undefined && typeof module !== 'undefined' && module && module.exports && isLocaleNameSane(name)) {
  11126. try {
  11127. oldLocale = globalLocale._abbr;
  11128. aliasedRequire = require;
  11129. __webpack_require__(41)("./" + name);
  11130. getSetGlobalLocale(oldLocale);
  11131. } catch (e) {
  11132. // mark as not found to avoid repeating expensive file require call causing high CPU
  11133. // when trying to find en-US, en_US, en-us for every format call
  11134. locales[name] = null; // null means not found
  11135. }
  11136. }
  11137. return locales[name];
  11138. }
  11139. // This function will load locale and then set the global locale. If
  11140. // no arguments are passed in, it will simply return the current global
  11141. // locale key.
  11142. function getSetGlobalLocale(key, values) {
  11143. var data;
  11144. if (key) {
  11145. if (isUndefined(values)) {
  11146. data = getLocale(key);
  11147. } else {
  11148. data = defineLocale(key, values);
  11149. }
  11150. if (data) {
  11151. // moment.duration._locale = moment._locale = data;
  11152. globalLocale = data;
  11153. } else {
  11154. if (typeof console !== 'undefined' && console.warn) {
  11155. //warn user if arguments are passed but the locale could not be set
  11156. console.warn('Locale ' + key + ' not found. Did you forget to load it?');
  11157. }
  11158. }
  11159. }
  11160. return globalLocale._abbr;
  11161. }
  11162. function defineLocale(name, config) {
  11163. if (config !== null) {
  11164. var locale,
  11165. parentConfig = baseConfig;
  11166. config.abbr = name;
  11167. if (locales[name] != null) {
  11168. deprecateSimple('defineLocaleOverride', 'use moment.updateLocale(localeName, config) to change ' + 'an existing locale. moment.defineLocale(localeName, ' + 'config) should only be used for creating a new locale ' + 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.');
  11169. parentConfig = locales[name]._config;
  11170. } else if (config.parentLocale != null) {
  11171. if (locales[config.parentLocale] != null) {
  11172. parentConfig = locales[config.parentLocale]._config;
  11173. } else {
  11174. locale = loadLocale(config.parentLocale);
  11175. if (locale != null) {
  11176. parentConfig = locale._config;
  11177. } else {
  11178. if (!localeFamilies[config.parentLocale]) {
  11179. localeFamilies[config.parentLocale] = [];
  11180. }
  11181. localeFamilies[config.parentLocale].push({
  11182. name: name,
  11183. config: config
  11184. });
  11185. return null;
  11186. }
  11187. }
  11188. }
  11189. locales[name] = new Locale(mergeConfigs(parentConfig, config));
  11190. if (localeFamilies[name]) {
  11191. localeFamilies[name].forEach(function (x) {
  11192. defineLocale(x.name, x.config);
  11193. });
  11194. }
  11195. // backwards compat for now: also set the locale
  11196. // make sure we set the locale AFTER all child locales have been
  11197. // created, so we won't end up with the child locale set.
  11198. getSetGlobalLocale(name);
  11199. return locales[name];
  11200. } else {
  11201. // useful for testing
  11202. delete locales[name];
  11203. return null;
  11204. }
  11205. }
  11206. function updateLocale(name, config) {
  11207. if (config != null) {
  11208. var locale,
  11209. tmpLocale,
  11210. parentConfig = baseConfig;
  11211. if (locales[name] != null && locales[name].parentLocale != null) {
  11212. // Update existing child locale in-place to avoid memory-leaks
  11213. locales[name].set(mergeConfigs(locales[name]._config, config));
  11214. } else {
  11215. // MERGE
  11216. tmpLocale = loadLocale(name);
  11217. if (tmpLocale != null) {
  11218. parentConfig = tmpLocale._config;
  11219. }
  11220. config = mergeConfigs(parentConfig, config);
  11221. if (tmpLocale == null) {
  11222. // updateLocale is called for creating a new locale
  11223. // Set abbr so it will have a name (getters return
  11224. // undefined otherwise).
  11225. config.abbr = name;
  11226. }
  11227. locale = new Locale(config);
  11228. locale.parentLocale = locales[name];
  11229. locales[name] = locale;
  11230. }
  11231. // backwards compat for now: also set the locale
  11232. getSetGlobalLocale(name);
  11233. } else {
  11234. // pass null for config to unupdate, useful for tests
  11235. if (locales[name] != null) {
  11236. if (locales[name].parentLocale != null) {
  11237. locales[name] = locales[name].parentLocale;
  11238. if (name === getSetGlobalLocale()) {
  11239. getSetGlobalLocale(name);
  11240. }
  11241. } else if (locales[name] != null) {
  11242. delete locales[name];
  11243. }
  11244. }
  11245. }
  11246. return locales[name];
  11247. }
  11248. // returns locale data
  11249. function getLocale(key) {
  11250. var locale;
  11251. if (key && key._locale && key._locale._abbr) {
  11252. key = key._locale._abbr;
  11253. }
  11254. if (!key) {
  11255. return globalLocale;
  11256. }
  11257. if (!isArray(key)) {
  11258. //short-circuit everything else
  11259. locale = loadLocale(key);
  11260. if (locale) {
  11261. return locale;
  11262. }
  11263. key = [key];
  11264. }
  11265. return chooseLocale(key);
  11266. }
  11267. function listLocales() {
  11268. return keys(locales);
  11269. }
  11270. function checkOverflow(m) {
  11271. var overflow,
  11272. a = m._a;
  11273. if (a && getParsingFlags(m).overflow === -2) {
  11274. overflow = a[MONTH] < 0 || a[MONTH] > 11 ? MONTH : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE : a[HOUR] < 0 || a[HOUR] > 24 || a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0) ? HOUR : a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE : a[SECOND] < 0 || a[SECOND] > 59 ? SECOND : a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND : -1;
  11275. if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) {
  11276. overflow = DATE;
  11277. }
  11278. if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
  11279. overflow = WEEK;
  11280. }
  11281. if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
  11282. overflow = WEEKDAY;
  11283. }
  11284. getParsingFlags(m).overflow = overflow;
  11285. }
  11286. return m;
  11287. }
  11288. // iso 8601 regex
  11289. // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
  11290. var extendedIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
  11291. basicIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
  11292. tzRegex = /Z|[+-]\d\d(?::?\d\d)?/,
  11293. isoDates = [['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/], ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/], ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/], ['GGGG-[W]WW', /\d{4}-W\d\d/, false], ['YYYY-DDD', /\d{4}-\d{3}/], ['YYYY-MM', /\d{4}-\d\d/, false], ['YYYYYYMMDD', /[+-]\d{10}/], ['YYYYMMDD', /\d{8}/], ['GGGG[W]WWE', /\d{4}W\d{3}/], ['GGGG[W]WW', /\d{4}W\d{2}/, false], ['YYYYDDD', /\d{7}/], ['YYYYMM', /\d{6}/, false], ['YYYY', /\d{4}/, false]],
  11294. // iso time formats and regexes
  11295. isoTimes = [['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/], ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/], ['HH:mm:ss', /\d\d:\d\d:\d\d/], ['HH:mm', /\d\d:\d\d/], ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/], ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/], ['HHmmss', /\d\d\d\d\d\d/], ['HHmm', /\d\d\d\d/], ['HH', /\d\d/]],
  11296. aspNetJsonRegex = /^\/?Date\((-?\d+)/i,
  11297. // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
  11298. rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,
  11299. obsOffsets = {
  11300. UT: 0,
  11301. GMT: 0,
  11302. EDT: -4 * 60,
  11303. EST: -5 * 60,
  11304. CDT: -5 * 60,
  11305. CST: -6 * 60,
  11306. MDT: -6 * 60,
  11307. MST: -7 * 60,
  11308. PDT: -7 * 60,
  11309. PST: -8 * 60
  11310. };
  11311. // date from iso format
  11312. function configFromISO(config) {
  11313. var i,
  11314. l,
  11315. string = config._i,
  11316. match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
  11317. allowTime,
  11318. dateFormat,
  11319. timeFormat,
  11320. tzFormat,
  11321. isoDatesLen = isoDates.length,
  11322. isoTimesLen = isoTimes.length;
  11323. if (match) {
  11324. getParsingFlags(config).iso = true;
  11325. for (i = 0, l = isoDatesLen; i < l; i++) {
  11326. if (isoDates[i][1].exec(match[1])) {
  11327. dateFormat = isoDates[i][0];
  11328. allowTime = isoDates[i][2] !== false;
  11329. break;
  11330. }
  11331. }
  11332. if (dateFormat == null) {
  11333. config._isValid = false;
  11334. return;
  11335. }
  11336. if (match[3]) {
  11337. for (i = 0, l = isoTimesLen; i < l; i++) {
  11338. if (isoTimes[i][1].exec(match[3])) {
  11339. // match[2] should be 'T' or space
  11340. timeFormat = (match[2] || ' ') + isoTimes[i][0];
  11341. break;
  11342. }
  11343. }
  11344. if (timeFormat == null) {
  11345. config._isValid = false;
  11346. return;
  11347. }
  11348. }
  11349. if (!allowTime && timeFormat != null) {
  11350. config._isValid = false;
  11351. return;
  11352. }
  11353. if (match[4]) {
  11354. if (tzRegex.exec(match[4])) {
  11355. tzFormat = 'Z';
  11356. } else {
  11357. config._isValid = false;
  11358. return;
  11359. }
  11360. }
  11361. config._f = dateFormat + (timeFormat || '') + (tzFormat || '');
  11362. configFromStringAndFormat(config);
  11363. } else {
  11364. config._isValid = false;
  11365. }
  11366. }
  11367. function extractFromRFC2822Strings(yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {
  11368. var result = [untruncateYear(yearStr), defaultLocaleMonthsShort.indexOf(monthStr), parseInt(dayStr, 10), parseInt(hourStr, 10), parseInt(minuteStr, 10)];
  11369. if (secondStr) {
  11370. result.push(parseInt(secondStr, 10));
  11371. }
  11372. return result;
  11373. }
  11374. function untruncateYear(yearStr) {
  11375. var year = parseInt(yearStr, 10);
  11376. if (year <= 49) {
  11377. return 2000 + year;
  11378. } else if (year <= 999) {
  11379. return 1900 + year;
  11380. }
  11381. return year;
  11382. }
  11383. function preprocessRFC2822(s) {
  11384. // Remove comments and folding whitespace and replace multiple-spaces with a single space
  11385. return s.replace(/\([^()]*\)|[\n\t]/g, ' ').replace(/(\s\s+)/g, ' ').replace(/^\s\s*/, '').replace(/\s\s*$/, '');
  11386. }
  11387. function checkWeekday(weekdayStr, parsedInput, config) {
  11388. if (weekdayStr) {
  11389. // TODO: Replace the vanilla JS Date object with an independent day-of-week check.
  11390. var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),
  11391. weekdayActual = new Date(parsedInput[0], parsedInput[1], parsedInput[2]).getDay();
  11392. if (weekdayProvided !== weekdayActual) {
  11393. getParsingFlags(config).weekdayMismatch = true;
  11394. config._isValid = false;
  11395. return false;
  11396. }
  11397. }
  11398. return true;
  11399. }
  11400. function calculateOffset(obsOffset, militaryOffset, numOffset) {
  11401. if (obsOffset) {
  11402. return obsOffsets[obsOffset];
  11403. } else if (militaryOffset) {
  11404. // the only allowed military tz is Z
  11405. return 0;
  11406. } else {
  11407. var hm = parseInt(numOffset, 10),
  11408. m = hm % 100,
  11409. h = (hm - m) / 100;
  11410. return h * 60 + m;
  11411. }
  11412. }
  11413. // date and time from ref 2822 format
  11414. function configFromRFC2822(config) {
  11415. var match = rfc2822.exec(preprocessRFC2822(config._i)),
  11416. parsedArray;
  11417. if (match) {
  11418. parsedArray = extractFromRFC2822Strings(match[4], match[3], match[2], match[5], match[6], match[7]);
  11419. if (!checkWeekday(match[1], parsedArray, config)) {
  11420. return;
  11421. }
  11422. config._a = parsedArray;
  11423. config._tzm = calculateOffset(match[8], match[9], match[10]);
  11424. config._d = createUTCDate.apply(null, config._a);
  11425. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  11426. getParsingFlags(config).rfc2822 = true;
  11427. } else {
  11428. config._isValid = false;
  11429. }
  11430. }
  11431. // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
  11432. function configFromString(config) {
  11433. var matched = aspNetJsonRegex.exec(config._i);
  11434. if (matched !== null) {
  11435. config._d = new Date(+matched[1]);
  11436. return;
  11437. }
  11438. configFromISO(config);
  11439. if (config._isValid === false) {
  11440. delete config._isValid;
  11441. } else {
  11442. return;
  11443. }
  11444. configFromRFC2822(config);
  11445. if (config._isValid === false) {
  11446. delete config._isValid;
  11447. } else {
  11448. return;
  11449. }
  11450. if (config._strict) {
  11451. config._isValid = false;
  11452. } else {
  11453. // Final attempt, use Input Fallback
  11454. hooks.createFromInputFallback(config);
  11455. }
  11456. }
  11457. hooks.createFromInputFallback = deprecate('value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' + 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' + 'discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.', function (config) {
  11458. config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
  11459. });
  11460. // Pick the first defined of two or three arguments.
  11461. function defaults(a, b, c) {
  11462. if (a != null) {
  11463. return a;
  11464. }
  11465. if (b != null) {
  11466. return b;
  11467. }
  11468. return c;
  11469. }
  11470. function currentDateArray(config) {
  11471. // hooks is actually the exported moment object
  11472. var nowValue = new Date(hooks.now());
  11473. if (config._useUTC) {
  11474. return [nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate()];
  11475. }
  11476. return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
  11477. }
  11478. // convert an array to a date.
  11479. // the array should mirror the parameters below
  11480. // note: all values past the year are optional and will default to the lowest possible value.
  11481. // [year, month, day , hour, minute, second, millisecond]
  11482. function configFromArray(config) {
  11483. var i,
  11484. date,
  11485. input = [],
  11486. currentDate,
  11487. expectedWeekday,
  11488. yearToUse;
  11489. if (config._d) {
  11490. return;
  11491. }
  11492. currentDate = currentDateArray(config);
  11493. //compute day of the year from weeks and weekdays
  11494. if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
  11495. dayOfYearFromWeekInfo(config);
  11496. }
  11497. //if the day of the year is set, figure out what it is
  11498. if (config._dayOfYear != null) {
  11499. yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
  11500. if (config._dayOfYear > daysInYear(yearToUse) || config._dayOfYear === 0) {
  11501. getParsingFlags(config)._overflowDayOfYear = true;
  11502. }
  11503. date = createUTCDate(yearToUse, 0, config._dayOfYear);
  11504. config._a[MONTH] = date.getUTCMonth();
  11505. config._a[DATE] = date.getUTCDate();
  11506. }
  11507. // Default to current date.
  11508. // * if no year, month, day of month are given, default to today
  11509. // * if day of month is given, default month and year
  11510. // * if month is given, default only year
  11511. // * if year is given, don't default anything
  11512. for (i = 0; i < 3 && config._a[i] == null; ++i) {
  11513. config._a[i] = input[i] = currentDate[i];
  11514. }
  11515. // Zero out whatever was not defaulted, including time
  11516. for (; i < 7; i++) {
  11517. config._a[i] = input[i] = config._a[i] == null ? i === 2 ? 1 : 0 : config._a[i];
  11518. }
  11519. // Check for 24:00:00.000
  11520. if (config._a[HOUR] === 24 && config._a[MINUTE] === 0 && config._a[SECOND] === 0 && config._a[MILLISECOND] === 0) {
  11521. config._nextDay = true;
  11522. config._a[HOUR] = 0;
  11523. }
  11524. config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input);
  11525. expectedWeekday = config._useUTC ? config._d.getUTCDay() : config._d.getDay();
  11526. // Apply timezone offset from input. The actual utcOffset can be changed
  11527. // with parseZone.
  11528. if (config._tzm != null) {
  11529. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  11530. }
  11531. if (config._nextDay) {
  11532. config._a[HOUR] = 24;
  11533. }
  11534. // check for mismatching day of week
  11535. if (config._w && typeof config._w.d !== 'undefined' && config._w.d !== expectedWeekday) {
  11536. getParsingFlags(config).weekdayMismatch = true;
  11537. }
  11538. }
  11539. function dayOfYearFromWeekInfo(config) {
  11540. var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;
  11541. w = config._w;
  11542. if (w.GG != null || w.W != null || w.E != null) {
  11543. dow = 1;
  11544. doy = 4;
  11545. // TODO: We need to take the current isoWeekYear, but that depends on
  11546. // how we interpret now (local, utc, fixed offset). So create
  11547. // a now version of current config (take local/utc/offset flags, and
  11548. // create now).
  11549. weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(createLocal(), 1, 4).year);
  11550. week = defaults(w.W, 1);
  11551. weekday = defaults(w.E, 1);
  11552. if (weekday < 1 || weekday > 7) {
  11553. weekdayOverflow = true;
  11554. }
  11555. } else {
  11556. dow = config._locale._week.dow;
  11557. doy = config._locale._week.doy;
  11558. curWeek = weekOfYear(createLocal(), dow, doy);
  11559. weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);
  11560. // Default to current week.
  11561. week = defaults(w.w, curWeek.week);
  11562. if (w.d != null) {
  11563. // weekday -- low day numbers are considered next week
  11564. weekday = w.d;
  11565. if (weekday < 0 || weekday > 6) {
  11566. weekdayOverflow = true;
  11567. }
  11568. } else if (w.e != null) {
  11569. // local weekday -- counting starts from beginning of week
  11570. weekday = w.e + dow;
  11571. if (w.e < 0 || w.e > 6) {
  11572. weekdayOverflow = true;
  11573. }
  11574. } else {
  11575. // default to beginning of week
  11576. weekday = dow;
  11577. }
  11578. }
  11579. if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {
  11580. getParsingFlags(config)._overflowWeeks = true;
  11581. } else if (weekdayOverflow != null) {
  11582. getParsingFlags(config)._overflowWeekday = true;
  11583. } else {
  11584. temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
  11585. config._a[YEAR] = temp.year;
  11586. config._dayOfYear = temp.dayOfYear;
  11587. }
  11588. }
  11589. // constant that refers to the ISO standard
  11590. hooks.ISO_8601 = function () {};
  11591. // constant that refers to the RFC 2822 form
  11592. hooks.RFC_2822 = function () {};
  11593. // date from string and format string
  11594. function configFromStringAndFormat(config) {
  11595. // TODO: Move this to another part of the creation flow to prevent circular deps
  11596. if (config._f === hooks.ISO_8601) {
  11597. configFromISO(config);
  11598. return;
  11599. }
  11600. if (config._f === hooks.RFC_2822) {
  11601. configFromRFC2822(config);
  11602. return;
  11603. }
  11604. config._a = [];
  11605. getParsingFlags(config).empty = true;
  11606. // This array is used to make a Date, either with `new Date` or `Date.UTC`
  11607. var string = '' + config._i,
  11608. i,
  11609. parsedInput,
  11610. tokens,
  11611. token,
  11612. skipped,
  11613. stringLength = string.length,
  11614. totalParsedInputLength = 0,
  11615. era,
  11616. tokenLen;
  11617. tokens = expandFormat(config._f, config._locale).match(formattingTokens) || [];
  11618. tokenLen = tokens.length;
  11619. for (i = 0; i < tokenLen; i++) {
  11620. token = tokens[i];
  11621. parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0];
  11622. if (parsedInput) {
  11623. skipped = string.substr(0, string.indexOf(parsedInput));
  11624. if (skipped.length > 0) {
  11625. getParsingFlags(config).unusedInput.push(skipped);
  11626. }
  11627. string = string.slice(string.indexOf(parsedInput) + parsedInput.length);
  11628. totalParsedInputLength += parsedInput.length;
  11629. }
  11630. // don't parse if it's not a known token
  11631. if (formatTokenFunctions[token]) {
  11632. if (parsedInput) {
  11633. getParsingFlags(config).empty = false;
  11634. } else {
  11635. getParsingFlags(config).unusedTokens.push(token);
  11636. }
  11637. addTimeToArrayFromToken(token, parsedInput, config);
  11638. } else if (config._strict && !parsedInput) {
  11639. getParsingFlags(config).unusedTokens.push(token);
  11640. }
  11641. }
  11642. // add remaining unparsed input length to the string
  11643. getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength;
  11644. if (string.length > 0) {
  11645. getParsingFlags(config).unusedInput.push(string);
  11646. }
  11647. // clear _12h flag if hour is <= 12
  11648. if (config._a[HOUR] <= 12 && getParsingFlags(config).bigHour === true && config._a[HOUR] > 0) {
  11649. getParsingFlags(config).bigHour = undefined;
  11650. }
  11651. getParsingFlags(config).parsedDateParts = config._a.slice(0);
  11652. getParsingFlags(config).meridiem = config._meridiem;
  11653. // handle meridiem
  11654. config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem);
  11655. // handle era
  11656. era = getParsingFlags(config).era;
  11657. if (era !== null) {
  11658. config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);
  11659. }
  11660. configFromArray(config);
  11661. checkOverflow(config);
  11662. }
  11663. function meridiemFixWrap(locale, hour, meridiem) {
  11664. var isPm;
  11665. if (meridiem == null) {
  11666. // nothing to do
  11667. return hour;
  11668. }
  11669. if (locale.meridiemHour != null) {
  11670. return locale.meridiemHour(hour, meridiem);
  11671. } else if (locale.isPM != null) {
  11672. // Fallback
  11673. isPm = locale.isPM(meridiem);
  11674. if (isPm && hour < 12) {
  11675. hour += 12;
  11676. }
  11677. if (!isPm && hour === 12) {
  11678. hour = 0;
  11679. }
  11680. return hour;
  11681. } else {
  11682. // this is not supposed to happen
  11683. return hour;
  11684. }
  11685. }
  11686. // date from string and array of format strings
  11687. function configFromStringAndArray(config) {
  11688. var tempConfig,
  11689. bestMoment,
  11690. scoreToBeat,
  11691. i,
  11692. currentScore,
  11693. validFormatFound,
  11694. bestFormatIsValid = false,
  11695. configfLen = config._f.length;
  11696. if (configfLen === 0) {
  11697. getParsingFlags(config).invalidFormat = true;
  11698. config._d = new Date(NaN);
  11699. return;
  11700. }
  11701. for (i = 0; i < configfLen; i++) {
  11702. currentScore = 0;
  11703. validFormatFound = false;
  11704. tempConfig = copyConfig({}, config);
  11705. if (config._useUTC != null) {
  11706. tempConfig._useUTC = config._useUTC;
  11707. }
  11708. tempConfig._f = config._f[i];
  11709. configFromStringAndFormat(tempConfig);
  11710. if (isValid(tempConfig)) {
  11711. validFormatFound = true;
  11712. }
  11713. // if there is any input that was not parsed add a penalty for that format
  11714. currentScore += getParsingFlags(tempConfig).charsLeftOver;
  11715. //or tokens
  11716. currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
  11717. getParsingFlags(tempConfig).score = currentScore;
  11718. if (!bestFormatIsValid) {
  11719. if (scoreToBeat == null || currentScore < scoreToBeat || validFormatFound) {
  11720. scoreToBeat = currentScore;
  11721. bestMoment = tempConfig;
  11722. if (validFormatFound) {
  11723. bestFormatIsValid = true;
  11724. }
  11725. }
  11726. } else {
  11727. if (currentScore < scoreToBeat) {
  11728. scoreToBeat = currentScore;
  11729. bestMoment = tempConfig;
  11730. }
  11731. }
  11732. }
  11733. extend(config, bestMoment || tempConfig);
  11734. }
  11735. function configFromObject(config) {
  11736. if (config._d) {
  11737. return;
  11738. }
  11739. var i = normalizeObjectUnits(config._i),
  11740. dayOrDate = i.day === undefined ? i.date : i.day;
  11741. config._a = map([i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond], function (obj) {
  11742. return obj && parseInt(obj, 10);
  11743. });
  11744. configFromArray(config);
  11745. }
  11746. function createFromConfig(config) {
  11747. var res = new Moment(checkOverflow(prepareConfig(config)));
  11748. if (res._nextDay) {
  11749. // Adding is smart enough around DST
  11750. res.add(1, 'd');
  11751. res._nextDay = undefined;
  11752. }
  11753. return res;
  11754. }
  11755. function prepareConfig(config) {
  11756. var input = config._i,
  11757. format = config._f;
  11758. config._locale = config._locale || getLocale(config._l);
  11759. if (input === null || format === undefined && input === '') {
  11760. return createInvalid({
  11761. nullInput: true
  11762. });
  11763. }
  11764. if (typeof input === 'string') {
  11765. config._i = input = config._locale.preparse(input);
  11766. }
  11767. if (isMoment(input)) {
  11768. return new Moment(checkOverflow(input));
  11769. } else if (isDate(input)) {
  11770. config._d = input;
  11771. } else if (isArray(format)) {
  11772. configFromStringAndArray(config);
  11773. } else if (format) {
  11774. configFromStringAndFormat(config);
  11775. } else {
  11776. configFromInput(config);
  11777. }
  11778. if (!isValid(config)) {
  11779. config._d = null;
  11780. }
  11781. return config;
  11782. }
  11783. function configFromInput(config) {
  11784. var input = config._i;
  11785. if (isUndefined(input)) {
  11786. config._d = new Date(hooks.now());
  11787. } else if (isDate(input)) {
  11788. config._d = new Date(input.valueOf());
  11789. } else if (typeof input === 'string') {
  11790. configFromString(config);
  11791. } else if (isArray(input)) {
  11792. config._a = map(input.slice(0), function (obj) {
  11793. return parseInt(obj, 10);
  11794. });
  11795. configFromArray(config);
  11796. } else if (isObject(input)) {
  11797. configFromObject(config);
  11798. } else if (isNumber(input)) {
  11799. // from milliseconds
  11800. config._d = new Date(input);
  11801. } else {
  11802. hooks.createFromInputFallback(config);
  11803. }
  11804. }
  11805. function createLocalOrUTC(input, format, locale, strict, isUTC) {
  11806. var c = {};
  11807. if (format === true || format === false) {
  11808. strict = format;
  11809. format = undefined;
  11810. }
  11811. if (locale === true || locale === false) {
  11812. strict = locale;
  11813. locale = undefined;
  11814. }
  11815. if (isObject(input) && isObjectEmpty(input) || isArray(input) && input.length === 0) {
  11816. input = undefined;
  11817. }
  11818. // object construction must be done this way.
  11819. // https://github.com/moment/moment/issues/1423
  11820. c._isAMomentObject = true;
  11821. c._useUTC = c._isUTC = isUTC;
  11822. c._l = locale;
  11823. c._i = input;
  11824. c._f = format;
  11825. c._strict = strict;
  11826. return createFromConfig(c);
  11827. }
  11828. function createLocal(input, format, locale, strict) {
  11829. return createLocalOrUTC(input, format, locale, strict, false);
  11830. }
  11831. var prototypeMin = deprecate('moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/', function () {
  11832. var other = createLocal.apply(null, arguments);
  11833. if (this.isValid() && other.isValid()) {
  11834. return other < this ? this : other;
  11835. } else {
  11836. return createInvalid();
  11837. }
  11838. }),
  11839. prototypeMax = deprecate('moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/', function () {
  11840. var other = createLocal.apply(null, arguments);
  11841. if (this.isValid() && other.isValid()) {
  11842. return other > this ? this : other;
  11843. } else {
  11844. return createInvalid();
  11845. }
  11846. });
  11847. // Pick a moment m from moments so that m[fn](other) is true for all
  11848. // other. This relies on the function fn to be transitive.
  11849. //
  11850. // moments should either be an array of moment objects or an array, whose
  11851. // first element is an array of moment objects.
  11852. function pickBy(fn, moments) {
  11853. var res, i;
  11854. if (moments.length === 1 && isArray(moments[0])) {
  11855. moments = moments[0];
  11856. }
  11857. if (!moments.length) {
  11858. return createLocal();
  11859. }
  11860. res = moments[0];
  11861. for (i = 1; i < moments.length; ++i) {
  11862. if (!moments[i].isValid() || moments[i][fn](res)) {
  11863. res = moments[i];
  11864. }
  11865. }
  11866. return res;
  11867. }
  11868. // TODO: Use [].sort instead?
  11869. function min() {
  11870. var args = [].slice.call(arguments, 0);
  11871. return pickBy('isBefore', args);
  11872. }
  11873. function max() {
  11874. var args = [].slice.call(arguments, 0);
  11875. return pickBy('isAfter', args);
  11876. }
  11877. var now = function now() {
  11878. return Date.now ? Date.now() : +new Date();
  11879. };
  11880. var ordering = ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', 'millisecond'];
  11881. function isDurationValid(m) {
  11882. var key,
  11883. unitHasDecimal = false,
  11884. i,
  11885. orderLen = ordering.length;
  11886. for (key in m) {
  11887. if (hasOwnProp(m, key) && !(indexOf.call(ordering, key) !== -1 && (m[key] == null || !isNaN(m[key])))) {
  11888. return false;
  11889. }
  11890. }
  11891. for (i = 0; i < orderLen; ++i) {
  11892. if (m[ordering[i]]) {
  11893. if (unitHasDecimal) {
  11894. return false; // only allow non-integers for smallest unit
  11895. }
  11896. if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {
  11897. unitHasDecimal = true;
  11898. }
  11899. }
  11900. }
  11901. return true;
  11902. }
  11903. function isValid$1() {
  11904. return this._isValid;
  11905. }
  11906. function createInvalid$1() {
  11907. return createDuration(NaN);
  11908. }
  11909. function Duration(duration) {
  11910. var normalizedInput = normalizeObjectUnits(duration),
  11911. years = normalizedInput.year || 0,
  11912. quarters = normalizedInput.quarter || 0,
  11913. months = normalizedInput.month || 0,
  11914. weeks = normalizedInput.week || normalizedInput.isoWeek || 0,
  11915. days = normalizedInput.day || 0,
  11916. hours = normalizedInput.hour || 0,
  11917. minutes = normalizedInput.minute || 0,
  11918. seconds = normalizedInput.second || 0,
  11919. milliseconds = normalizedInput.millisecond || 0;
  11920. this._isValid = isDurationValid(normalizedInput);
  11921. // representation for dateAddRemove
  11922. this._milliseconds = +milliseconds + seconds * 1e3 +
  11923. // 1000
  11924. minutes * 6e4 +
  11925. // 1000 * 60
  11926. hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
  11927. // Because of dateAddRemove treats 24 hours as different from a
  11928. // day when working around DST, we need to store them separately
  11929. this._days = +days + weeks * 7;
  11930. // It is impossible to translate months into days without knowing
  11931. // which months you are are talking about, so we have to store
  11932. // it separately.
  11933. this._months = +months + quarters * 3 + years * 12;
  11934. this._data = {};
  11935. this._locale = getLocale();
  11936. this._bubble();
  11937. }
  11938. function isDuration(obj) {
  11939. return obj instanceof Duration;
  11940. }
  11941. function absRound(number) {
  11942. if (number < 0) {
  11943. return Math.round(-1 * number) * -1;
  11944. } else {
  11945. return Math.round(number);
  11946. }
  11947. }
  11948. // compare two arrays, return the number of differences
  11949. function compareArrays(array1, array2, dontConvert) {
  11950. var len = Math.min(array1.length, array2.length),
  11951. lengthDiff = Math.abs(array1.length - array2.length),
  11952. diffs = 0,
  11953. i;
  11954. for (i = 0; i < len; i++) {
  11955. if (dontConvert && array1[i] !== array2[i] || !dontConvert && toInt(array1[i]) !== toInt(array2[i])) {
  11956. diffs++;
  11957. }
  11958. }
  11959. return diffs + lengthDiff;
  11960. }
  11961. // FORMATTING
  11962. function offset(token, separator) {
  11963. addFormatToken(token, 0, 0, function () {
  11964. var offset = this.utcOffset(),
  11965. sign = '+';
  11966. if (offset < 0) {
  11967. offset = -offset;
  11968. sign = '-';
  11969. }
  11970. return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~offset % 60, 2);
  11971. });
  11972. }
  11973. offset('Z', ':');
  11974. offset('ZZ', '');
  11975. // PARSING
  11976. addRegexToken('Z', matchShortOffset);
  11977. addRegexToken('ZZ', matchShortOffset);
  11978. addParseToken(['Z', 'ZZ'], function (input, array, config) {
  11979. config._useUTC = true;
  11980. config._tzm = offsetFromString(matchShortOffset, input);
  11981. });
  11982. // HELPERS
  11983. // timezone chunker
  11984. // '+10:00' > ['10', '00']
  11985. // '-1530' > ['-15', '30']
  11986. var chunkOffset = /([\+\-]|\d\d)/gi;
  11987. function offsetFromString(matcher, string) {
  11988. var matches = (string || '').match(matcher),
  11989. chunk,
  11990. parts,
  11991. minutes;
  11992. if (matches === null) {
  11993. return null;
  11994. }
  11995. chunk = matches[matches.length - 1] || [];
  11996. parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
  11997. minutes = +(parts[1] * 60) + toInt(parts[2]);
  11998. return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes;
  11999. }
  12000. // Return a moment from input, that is local/utc/zone equivalent to model.
  12001. function cloneWithOffset(input, model) {
  12002. var res, diff;
  12003. if (model._isUTC) {
  12004. res = model.clone();
  12005. diff = (isMoment(input) || isDate(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf();
  12006. // Use low-level api, because this fn is low-level api.
  12007. res._d.setTime(res._d.valueOf() + diff);
  12008. hooks.updateOffset(res, false);
  12009. return res;
  12010. } else {
  12011. return createLocal(input).local();
  12012. }
  12013. }
  12014. function getDateOffset(m) {
  12015. // On Firefox.24 Date#getTimezoneOffset returns a floating point.
  12016. // https://github.com/moment/moment/pull/1871
  12017. return -Math.round(m._d.getTimezoneOffset());
  12018. }
  12019. // HOOKS
  12020. // This function will be called whenever a moment is mutated.
  12021. // It is intended to keep the offset in sync with the timezone.
  12022. hooks.updateOffset = function () {};
  12023. // MOMENTS
  12024. // keepLocalTime = true means only change the timezone, without
  12025. // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
  12026. // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
  12027. // +0200, so we adjust the time as needed, to be valid.
  12028. //
  12029. // Keeping the time actually adds/subtracts (one hour)
  12030. // from the actual represented time. That is why we call updateOffset
  12031. // a second time. In case it wants us to change the offset again
  12032. // _changeInProgress == true case, then we have to adjust, because
  12033. // there is no such time in the given timezone.
  12034. function getSetOffset(input, keepLocalTime, keepMinutes) {
  12035. var offset = this._offset || 0,
  12036. localAdjust;
  12037. if (!this.isValid()) {
  12038. return input != null ? this : NaN;
  12039. }
  12040. if (input != null) {
  12041. if (typeof input === 'string') {
  12042. input = offsetFromString(matchShortOffset, input);
  12043. if (input === null) {
  12044. return this;
  12045. }
  12046. } else if (Math.abs(input) < 16 && !keepMinutes) {
  12047. input = input * 60;
  12048. }
  12049. if (!this._isUTC && keepLocalTime) {
  12050. localAdjust = getDateOffset(this);
  12051. }
  12052. this._offset = input;
  12053. this._isUTC = true;
  12054. if (localAdjust != null) {
  12055. this.add(localAdjust, 'm');
  12056. }
  12057. if (offset !== input) {
  12058. if (!keepLocalTime || this._changeInProgress) {
  12059. addSubtract(this, createDuration(input - offset, 'm'), 1, false);
  12060. } else if (!this._changeInProgress) {
  12061. this._changeInProgress = true;
  12062. hooks.updateOffset(this, true);
  12063. this._changeInProgress = null;
  12064. }
  12065. }
  12066. return this;
  12067. } else {
  12068. return this._isUTC ? offset : getDateOffset(this);
  12069. }
  12070. }
  12071. function getSetZone(input, keepLocalTime) {
  12072. if (input != null) {
  12073. if (typeof input !== 'string') {
  12074. input = -input;
  12075. }
  12076. this.utcOffset(input, keepLocalTime);
  12077. return this;
  12078. } else {
  12079. return -this.utcOffset();
  12080. }
  12081. }
  12082. function setOffsetToUTC(keepLocalTime) {
  12083. return this.utcOffset(0, keepLocalTime);
  12084. }
  12085. function setOffsetToLocal(keepLocalTime) {
  12086. if (this._isUTC) {
  12087. this.utcOffset(0, keepLocalTime);
  12088. this._isUTC = false;
  12089. if (keepLocalTime) {
  12090. this.subtract(getDateOffset(this), 'm');
  12091. }
  12092. }
  12093. return this;
  12094. }
  12095. function setOffsetToParsedOffset() {
  12096. if (this._tzm != null) {
  12097. this.utcOffset(this._tzm, false, true);
  12098. } else if (typeof this._i === 'string') {
  12099. var tZone = offsetFromString(matchOffset, this._i);
  12100. if (tZone != null) {
  12101. this.utcOffset(tZone);
  12102. } else {
  12103. this.utcOffset(0, true);
  12104. }
  12105. }
  12106. return this;
  12107. }
  12108. function hasAlignedHourOffset(input) {
  12109. if (!this.isValid()) {
  12110. return false;
  12111. }
  12112. input = input ? createLocal(input).utcOffset() : 0;
  12113. return (this.utcOffset() - input) % 60 === 0;
  12114. }
  12115. function isDaylightSavingTime() {
  12116. return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
  12117. }
  12118. function isDaylightSavingTimeShifted() {
  12119. if (!isUndefined(this._isDSTShifted)) {
  12120. return this._isDSTShifted;
  12121. }
  12122. var c = {},
  12123. other;
  12124. copyConfig(c, this);
  12125. c = prepareConfig(c);
  12126. if (c._a) {
  12127. other = c._isUTC ? createUTC(c._a) : createLocal(c._a);
  12128. this._isDSTShifted = this.isValid() && compareArrays(c._a, other.toArray()) > 0;
  12129. } else {
  12130. this._isDSTShifted = false;
  12131. }
  12132. return this._isDSTShifted;
  12133. }
  12134. function isLocal() {
  12135. return this.isValid() ? !this._isUTC : false;
  12136. }
  12137. function isUtcOffset() {
  12138. return this.isValid() ? this._isUTC : false;
  12139. }
  12140. function isUtc() {
  12141. return this.isValid() ? this._isUTC && this._offset === 0 : false;
  12142. }
  12143. // ASP.NET json date format regex
  12144. var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
  12145. // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
  12146. // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
  12147. // and further modified to allow for strings containing both week and day
  12148. isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
  12149. function createDuration(input, key) {
  12150. var duration = input,
  12151. // matching against regexp is expensive, do it on demand
  12152. match = null,
  12153. sign,
  12154. ret,
  12155. diffRes;
  12156. if (isDuration(input)) {
  12157. duration = {
  12158. ms: input._milliseconds,
  12159. d: input._days,
  12160. M: input._months
  12161. };
  12162. } else if (isNumber(input) || !isNaN(+input)) {
  12163. duration = {};
  12164. if (key) {
  12165. duration[key] = +input;
  12166. } else {
  12167. duration.milliseconds = +input;
  12168. }
  12169. } else if (match = aspNetRegex.exec(input)) {
  12170. sign = match[1] === '-' ? -1 : 1;
  12171. duration = {
  12172. y: 0,
  12173. d: toInt(match[DATE]) * sign,
  12174. h: toInt(match[HOUR]) * sign,
  12175. m: toInt(match[MINUTE]) * sign,
  12176. s: toInt(match[SECOND]) * sign,
  12177. ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign // the millisecond decimal point is included in the match
  12178. };
  12179. } else if (match = isoRegex.exec(input)) {
  12180. sign = match[1] === '-' ? -1 : 1;
  12181. duration = {
  12182. y: parseIso(match[2], sign),
  12183. M: parseIso(match[3], sign),
  12184. w: parseIso(match[4], sign),
  12185. d: parseIso(match[5], sign),
  12186. h: parseIso(match[6], sign),
  12187. m: parseIso(match[7], sign),
  12188. s: parseIso(match[8], sign)
  12189. };
  12190. } else if (duration == null) {
  12191. // checks for null or undefined
  12192. duration = {};
  12193. } else if (_typeof(duration) === 'object' && ('from' in duration || 'to' in duration)) {
  12194. diffRes = momentsDifference(createLocal(duration.from), createLocal(duration.to));
  12195. duration = {};
  12196. duration.ms = diffRes.milliseconds;
  12197. duration.M = diffRes.months;
  12198. }
  12199. ret = new Duration(duration);
  12200. if (isDuration(input) && hasOwnProp(input, '_locale')) {
  12201. ret._locale = input._locale;
  12202. }
  12203. if (isDuration(input) && hasOwnProp(input, '_isValid')) {
  12204. ret._isValid = input._isValid;
  12205. }
  12206. return ret;
  12207. }
  12208. createDuration.fn = Duration.prototype;
  12209. createDuration.invalid = createInvalid$1;
  12210. function parseIso(inp, sign) {
  12211. // We'd normally use ~~inp for this, but unfortunately it also
  12212. // converts floats to ints.
  12213. // inp may be undefined, so careful calling replace on it.
  12214. var res = inp && parseFloat(inp.replace(',', '.'));
  12215. // apply sign while we're at it
  12216. return (isNaN(res) ? 0 : res) * sign;
  12217. }
  12218. function positiveMomentsDifference(base, other) {
  12219. var res = {};
  12220. res.months = other.month() - base.month() + (other.year() - base.year()) * 12;
  12221. if (base.clone().add(res.months, 'M').isAfter(other)) {
  12222. --res.months;
  12223. }
  12224. res.milliseconds = +other - +base.clone().add(res.months, 'M');
  12225. return res;
  12226. }
  12227. function momentsDifference(base, other) {
  12228. var res;
  12229. if (!(base.isValid() && other.isValid())) {
  12230. return {
  12231. milliseconds: 0,
  12232. months: 0
  12233. };
  12234. }
  12235. other = cloneWithOffset(other, base);
  12236. if (base.isBefore(other)) {
  12237. res = positiveMomentsDifference(base, other);
  12238. } else {
  12239. res = positiveMomentsDifference(other, base);
  12240. res.milliseconds = -res.milliseconds;
  12241. res.months = -res.months;
  12242. }
  12243. return res;
  12244. }
  12245. // TODO: remove 'name' arg after deprecation is removed
  12246. function createAdder(direction, name) {
  12247. return function (val, period) {
  12248. var dur, tmp;
  12249. //invert the arguments, but complain about it
  12250. if (period !== null && !isNaN(+period)) {
  12251. deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period). ' + 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.');
  12252. tmp = val;
  12253. val = period;
  12254. period = tmp;
  12255. }
  12256. dur = createDuration(val, period);
  12257. addSubtract(this, dur, direction);
  12258. return this;
  12259. };
  12260. }
  12261. function addSubtract(mom, duration, isAdding, updateOffset) {
  12262. var milliseconds = duration._milliseconds,
  12263. days = absRound(duration._days),
  12264. months = absRound(duration._months);
  12265. if (!mom.isValid()) {
  12266. // No op
  12267. return;
  12268. }
  12269. updateOffset = updateOffset == null ? true : updateOffset;
  12270. if (months) {
  12271. setMonth(mom, get(mom, 'Month') + months * isAdding);
  12272. }
  12273. if (days) {
  12274. set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);
  12275. }
  12276. if (milliseconds) {
  12277. mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
  12278. }
  12279. if (updateOffset) {
  12280. hooks.updateOffset(mom, days || months);
  12281. }
  12282. }
  12283. var add = createAdder(1, 'add'),
  12284. subtract = createAdder(-1, 'subtract');
  12285. function isString(input) {
  12286. return typeof input === 'string' || input instanceof String;
  12287. }
  12288. // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
  12289. function isMomentInput(input) {
  12290. return isMoment(input) || isDate(input) || isString(input) || isNumber(input) || isNumberOrStringArray(input) || isMomentInputObject(input) || input === null || input === undefined;
  12291. }
  12292. function isMomentInputObject(input) {
  12293. var objectTest = isObject(input) && !isObjectEmpty(input),
  12294. propertyTest = false,
  12295. properties = ['years', 'year', 'y', 'months', 'month', 'M', 'days', 'day', 'd', 'dates', 'date', 'D', 'hours', 'hour', 'h', 'minutes', 'minute', 'm', 'seconds', 'second', 's', 'milliseconds', 'millisecond', 'ms'],
  12296. i,
  12297. property,
  12298. propertyLen = properties.length;
  12299. for (i = 0; i < propertyLen; i += 1) {
  12300. property = properties[i];
  12301. propertyTest = propertyTest || hasOwnProp(input, property);
  12302. }
  12303. return objectTest && propertyTest;
  12304. }
  12305. function isNumberOrStringArray(input) {
  12306. var arrayTest = isArray(input),
  12307. dataTypeTest = false;
  12308. if (arrayTest) {
  12309. dataTypeTest = input.filter(function (item) {
  12310. return !isNumber(item) && isString(input);
  12311. }).length === 0;
  12312. }
  12313. return arrayTest && dataTypeTest;
  12314. }
  12315. function isCalendarSpec(input) {
  12316. var objectTest = isObject(input) && !isObjectEmpty(input),
  12317. propertyTest = false,
  12318. properties = ['sameDay', 'nextDay', 'lastDay', 'nextWeek', 'lastWeek', 'sameElse'],
  12319. i,
  12320. property;
  12321. for (i = 0; i < properties.length; i += 1) {
  12322. property = properties[i];
  12323. propertyTest = propertyTest || hasOwnProp(input, property);
  12324. }
  12325. return objectTest && propertyTest;
  12326. }
  12327. function getCalendarFormat(myMoment, now) {
  12328. var diff = myMoment.diff(now, 'days', true);
  12329. return diff < -6 ? 'sameElse' : diff < -1 ? 'lastWeek' : diff < 0 ? 'lastDay' : diff < 1 ? 'sameDay' : diff < 2 ? 'nextDay' : diff < 7 ? 'nextWeek' : 'sameElse';
  12330. }
  12331. function calendar$1(time, formats) {
  12332. // Support for single parameter, formats only overload to the calendar function
  12333. if (arguments.length === 1) {
  12334. if (!arguments[0]) {
  12335. time = undefined;
  12336. formats = undefined;
  12337. } else if (isMomentInput(arguments[0])) {
  12338. time = arguments[0];
  12339. formats = undefined;
  12340. } else if (isCalendarSpec(arguments[0])) {
  12341. formats = arguments[0];
  12342. time = undefined;
  12343. }
  12344. }
  12345. // We want to compare the start of today, vs this.
  12346. // Getting start-of-today depends on whether we're local/utc/offset or not.
  12347. var now = time || createLocal(),
  12348. sod = cloneWithOffset(now, this).startOf('day'),
  12349. format = hooks.calendarFormat(this, sod) || 'sameElse',
  12350. output = formats && (isFunction(formats[format]) ? formats[format].call(this, now) : formats[format]);
  12351. return this.format(output || this.localeData().calendar(format, this, createLocal(now)));
  12352. }
  12353. function clone() {
  12354. return new Moment(this);
  12355. }
  12356. function isAfter(input, units) {
  12357. var localInput = isMoment(input) ? input : createLocal(input);
  12358. if (!(this.isValid() && localInput.isValid())) {
  12359. return false;
  12360. }
  12361. units = normalizeUnits(units) || 'millisecond';
  12362. if (units === 'millisecond') {
  12363. return this.valueOf() > localInput.valueOf();
  12364. } else {
  12365. return localInput.valueOf() < this.clone().startOf(units).valueOf();
  12366. }
  12367. }
  12368. function isBefore(input, units) {
  12369. var localInput = isMoment(input) ? input : createLocal(input);
  12370. if (!(this.isValid() && localInput.isValid())) {
  12371. return false;
  12372. }
  12373. units = normalizeUnits(units) || 'millisecond';
  12374. if (units === 'millisecond') {
  12375. return this.valueOf() < localInput.valueOf();
  12376. } else {
  12377. return this.clone().endOf(units).valueOf() < localInput.valueOf();
  12378. }
  12379. }
  12380. function isBetween(from, to, units, inclusivity) {
  12381. var localFrom = isMoment(from) ? from : createLocal(from),
  12382. localTo = isMoment(to) ? to : createLocal(to);
  12383. if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {
  12384. return false;
  12385. }
  12386. inclusivity = inclusivity || '()';
  12387. return (inclusivity[0] === '(' ? this.isAfter(localFrom, units) : !this.isBefore(localFrom, units)) && (inclusivity[1] === ')' ? this.isBefore(localTo, units) : !this.isAfter(localTo, units));
  12388. }
  12389. function isSame(input, units) {
  12390. var localInput = isMoment(input) ? input : createLocal(input),
  12391. inputMs;
  12392. if (!(this.isValid() && localInput.isValid())) {
  12393. return false;
  12394. }
  12395. units = normalizeUnits(units) || 'millisecond';
  12396. if (units === 'millisecond') {
  12397. return this.valueOf() === localInput.valueOf();
  12398. } else {
  12399. inputMs = localInput.valueOf();
  12400. return this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf();
  12401. }
  12402. }
  12403. function isSameOrAfter(input, units) {
  12404. return this.isSame(input, units) || this.isAfter(input, units);
  12405. }
  12406. function isSameOrBefore(input, units) {
  12407. return this.isSame(input, units) || this.isBefore(input, units);
  12408. }
  12409. function diff(input, units, asFloat) {
  12410. var that, zoneDelta, output;
  12411. if (!this.isValid()) {
  12412. return NaN;
  12413. }
  12414. that = cloneWithOffset(input, this);
  12415. if (!that.isValid()) {
  12416. return NaN;
  12417. }
  12418. zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;
  12419. units = normalizeUnits(units);
  12420. switch (units) {
  12421. case 'year':
  12422. output = monthDiff(this, that) / 12;
  12423. break;
  12424. case 'month':
  12425. output = monthDiff(this, that);
  12426. break;
  12427. case 'quarter':
  12428. output = monthDiff(this, that) / 3;
  12429. break;
  12430. case 'second':
  12431. output = (this - that) / 1e3;
  12432. break;
  12433. // 1000
  12434. case 'minute':
  12435. output = (this - that) / 6e4;
  12436. break;
  12437. // 1000 * 60
  12438. case 'hour':
  12439. output = (this - that) / 36e5;
  12440. break;
  12441. // 1000 * 60 * 60
  12442. case 'day':
  12443. output = (this - that - zoneDelta) / 864e5;
  12444. break;
  12445. // 1000 * 60 * 60 * 24, negate dst
  12446. case 'week':
  12447. output = (this - that - zoneDelta) / 6048e5;
  12448. break;
  12449. // 1000 * 60 * 60 * 24 * 7, negate dst
  12450. default:
  12451. output = this - that;
  12452. }
  12453. return asFloat ? output : absFloor(output);
  12454. }
  12455. function monthDiff(a, b) {
  12456. if (a.date() < b.date()) {
  12457. // end-of-month calculations work correct when the start month has more
  12458. // days than the end month.
  12459. return -monthDiff(b, a);
  12460. }
  12461. // difference in months
  12462. var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()),
  12463. // b is in (anchor - 1 month, anchor + 1 month)
  12464. anchor = a.clone().add(wholeMonthDiff, 'months'),
  12465. anchor2,
  12466. adjust;
  12467. if (b - anchor < 0) {
  12468. anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
  12469. // linear across the month
  12470. adjust = (b - anchor) / (anchor - anchor2);
  12471. } else {
  12472. anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
  12473. // linear across the month
  12474. adjust = (b - anchor) / (anchor2 - anchor);
  12475. }
  12476. //check for negative zero, return zero if negative zero
  12477. return -(wholeMonthDiff + adjust) || 0;
  12478. }
  12479. hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
  12480. hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';
  12481. function toString() {
  12482. return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
  12483. }
  12484. function toISOString(keepOffset) {
  12485. if (!this.isValid()) {
  12486. return null;
  12487. }
  12488. var utc = keepOffset !== true,
  12489. m = utc ? this.clone().utc() : this;
  12490. if (m.year() < 0 || m.year() > 9999) {
  12491. return formatMoment(m, utc ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ');
  12492. }
  12493. if (isFunction(Date.prototype.toISOString)) {
  12494. // native implementation is ~50x faster, use it when we can
  12495. if (utc) {
  12496. return this.toDate().toISOString();
  12497. } else {
  12498. return new Date(this.valueOf() + this.utcOffset() * 60 * 1000).toISOString().replace('Z', formatMoment(m, 'Z'));
  12499. }
  12500. }
  12501. return formatMoment(m, utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ');
  12502. }
  12503. /**
  12504. * Return a human readable representation of a moment that can
  12505. * also be evaluated to get a new moment which is the same
  12506. *
  12507. * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
  12508. */
  12509. function inspect() {
  12510. if (!this.isValid()) {
  12511. return 'moment.invalid(/* ' + this._i + ' */)';
  12512. }
  12513. var func = 'moment',
  12514. zone = '',
  12515. prefix,
  12516. year,
  12517. datetime,
  12518. suffix;
  12519. if (!this.isLocal()) {
  12520. func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';
  12521. zone = 'Z';
  12522. }
  12523. prefix = '[' + func + '("]';
  12524. year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY';
  12525. datetime = '-MM-DD[T]HH:mm:ss.SSS';
  12526. suffix = zone + '[")]';
  12527. return this.format(prefix + year + datetime + suffix);
  12528. }
  12529. function format(inputString) {
  12530. if (!inputString) {
  12531. inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat;
  12532. }
  12533. var output = formatMoment(this, inputString);
  12534. return this.localeData().postformat(output);
  12535. }
  12536. function from(time, withoutSuffix) {
  12537. if (this.isValid() && (isMoment(time) && time.isValid() || createLocal(time).isValid())) {
  12538. return createDuration({
  12539. to: this,
  12540. from: time
  12541. }).locale(this.locale()).humanize(!withoutSuffix);
  12542. } else {
  12543. return this.localeData().invalidDate();
  12544. }
  12545. }
  12546. function fromNow(withoutSuffix) {
  12547. return this.from(createLocal(), withoutSuffix);
  12548. }
  12549. function to(time, withoutSuffix) {
  12550. if (this.isValid() && (isMoment(time) && time.isValid() || createLocal(time).isValid())) {
  12551. return createDuration({
  12552. from: this,
  12553. to: time
  12554. }).locale(this.locale()).humanize(!withoutSuffix);
  12555. } else {
  12556. return this.localeData().invalidDate();
  12557. }
  12558. }
  12559. function toNow(withoutSuffix) {
  12560. return this.to(createLocal(), withoutSuffix);
  12561. }
  12562. // If passed a locale key, it will set the locale for this
  12563. // instance. Otherwise, it will return the locale configuration
  12564. // variables for this instance.
  12565. function locale(key) {
  12566. var newLocaleData;
  12567. if (key === undefined) {
  12568. return this._locale._abbr;
  12569. } else {
  12570. newLocaleData = getLocale(key);
  12571. if (newLocaleData != null) {
  12572. this._locale = newLocaleData;
  12573. }
  12574. return this;
  12575. }
  12576. }
  12577. var lang = deprecate('moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.', function (key) {
  12578. if (key === undefined) {
  12579. return this.localeData();
  12580. } else {
  12581. return this.locale(key);
  12582. }
  12583. });
  12584. function localeData() {
  12585. return this._locale;
  12586. }
  12587. var MS_PER_SECOND = 1000,
  12588. MS_PER_MINUTE = 60 * MS_PER_SECOND,
  12589. MS_PER_HOUR = 60 * MS_PER_MINUTE,
  12590. MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;
  12591. // actual modulo - handles negative numbers (for dates before 1970):
  12592. function mod$1(dividend, divisor) {
  12593. return (dividend % divisor + divisor) % divisor;
  12594. }
  12595. function localStartOfDate(y, m, d) {
  12596. // the date constructor remaps years 0-99 to 1900-1999
  12597. if (y < 100 && y >= 0) {
  12598. // preserve leap years using a full 400 year cycle, then reset
  12599. return new Date(y + 400, m, d) - MS_PER_400_YEARS;
  12600. } else {
  12601. return new Date(y, m, d).valueOf();
  12602. }
  12603. }
  12604. function utcStartOfDate(y, m, d) {
  12605. // Date.UTC remaps years 0-99 to 1900-1999
  12606. if (y < 100 && y >= 0) {
  12607. // preserve leap years using a full 400 year cycle, then reset
  12608. return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;
  12609. } else {
  12610. return Date.UTC(y, m, d);
  12611. }
  12612. }
  12613. function startOf(units) {
  12614. var time, startOfDate;
  12615. units = normalizeUnits(units);
  12616. if (units === undefined || units === 'millisecond' || !this.isValid()) {
  12617. return this;
  12618. }
  12619. startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
  12620. switch (units) {
  12621. case 'year':
  12622. time = startOfDate(this.year(), 0, 1);
  12623. break;
  12624. case 'quarter':
  12625. time = startOfDate(this.year(), this.month() - this.month() % 3, 1);
  12626. break;
  12627. case 'month':
  12628. time = startOfDate(this.year(), this.month(), 1);
  12629. break;
  12630. case 'week':
  12631. time = startOfDate(this.year(), this.month(), this.date() - this.weekday());
  12632. break;
  12633. case 'isoWeek':
  12634. time = startOfDate(this.year(), this.month(), this.date() - (this.isoWeekday() - 1));
  12635. break;
  12636. case 'day':
  12637. case 'date':
  12638. time = startOfDate(this.year(), this.month(), this.date());
  12639. break;
  12640. case 'hour':
  12641. time = this._d.valueOf();
  12642. time -= mod$1(time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR);
  12643. break;
  12644. case 'minute':
  12645. time = this._d.valueOf();
  12646. time -= mod$1(time, MS_PER_MINUTE);
  12647. break;
  12648. case 'second':
  12649. time = this._d.valueOf();
  12650. time -= mod$1(time, MS_PER_SECOND);
  12651. break;
  12652. }
  12653. this._d.setTime(time);
  12654. hooks.updateOffset(this, true);
  12655. return this;
  12656. }
  12657. function endOf(units) {
  12658. var time, startOfDate;
  12659. units = normalizeUnits(units);
  12660. if (units === undefined || units === 'millisecond' || !this.isValid()) {
  12661. return this;
  12662. }
  12663. startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
  12664. switch (units) {
  12665. case 'year':
  12666. time = startOfDate(this.year() + 1, 0, 1) - 1;
  12667. break;
  12668. case 'quarter':
  12669. time = startOfDate(this.year(), this.month() - this.month() % 3 + 3, 1) - 1;
  12670. break;
  12671. case 'month':
  12672. time = startOfDate(this.year(), this.month() + 1, 1) - 1;
  12673. break;
  12674. case 'week':
  12675. time = startOfDate(this.year(), this.month(), this.date() - this.weekday() + 7) - 1;
  12676. break;
  12677. case 'isoWeek':
  12678. time = startOfDate(this.year(), this.month(), this.date() - (this.isoWeekday() - 1) + 7) - 1;
  12679. break;
  12680. case 'day':
  12681. case 'date':
  12682. time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;
  12683. break;
  12684. case 'hour':
  12685. time = this._d.valueOf();
  12686. time += MS_PER_HOUR - mod$1(time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR) - 1;
  12687. break;
  12688. case 'minute':
  12689. time = this._d.valueOf();
  12690. time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;
  12691. break;
  12692. case 'second':
  12693. time = this._d.valueOf();
  12694. time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;
  12695. break;
  12696. }
  12697. this._d.setTime(time);
  12698. hooks.updateOffset(this, true);
  12699. return this;
  12700. }
  12701. function valueOf() {
  12702. return this._d.valueOf() - (this._offset || 0) * 60000;
  12703. }
  12704. function unix() {
  12705. return Math.floor(this.valueOf() / 1000);
  12706. }
  12707. function toDate() {
  12708. return new Date(this.valueOf());
  12709. }
  12710. function toArray() {
  12711. var m = this;
  12712. return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()];
  12713. }
  12714. function toObject() {
  12715. var m = this;
  12716. return {
  12717. years: m.year(),
  12718. months: m.month(),
  12719. date: m.date(),
  12720. hours: m.hours(),
  12721. minutes: m.minutes(),
  12722. seconds: m.seconds(),
  12723. milliseconds: m.milliseconds()
  12724. };
  12725. }
  12726. function toJSON() {
  12727. // new Date(NaN).toJSON() === null
  12728. return this.isValid() ? this.toISOString() : null;
  12729. }
  12730. function isValid$2() {
  12731. return isValid(this);
  12732. }
  12733. function parsingFlags() {
  12734. return extend({}, getParsingFlags(this));
  12735. }
  12736. function invalidAt() {
  12737. return getParsingFlags(this).overflow;
  12738. }
  12739. function creationData() {
  12740. return {
  12741. input: this._i,
  12742. format: this._f,
  12743. locale: this._locale,
  12744. isUTC: this._isUTC,
  12745. strict: this._strict
  12746. };
  12747. }
  12748. addFormatToken('N', 0, 0, 'eraAbbr');
  12749. addFormatToken('NN', 0, 0, 'eraAbbr');
  12750. addFormatToken('NNN', 0, 0, 'eraAbbr');
  12751. addFormatToken('NNNN', 0, 0, 'eraName');
  12752. addFormatToken('NNNNN', 0, 0, 'eraNarrow');
  12753. addFormatToken('y', ['y', 1], 'yo', 'eraYear');
  12754. addFormatToken('y', ['yy', 2], 0, 'eraYear');
  12755. addFormatToken('y', ['yyy', 3], 0, 'eraYear');
  12756. addFormatToken('y', ['yyyy', 4], 0, 'eraYear');
  12757. addRegexToken('N', matchEraAbbr);
  12758. addRegexToken('NN', matchEraAbbr);
  12759. addRegexToken('NNN', matchEraAbbr);
  12760. addRegexToken('NNNN', matchEraName);
  12761. addRegexToken('NNNNN', matchEraNarrow);
  12762. addParseToken(['N', 'NN', 'NNN', 'NNNN', 'NNNNN'], function (input, array, config, token) {
  12763. var era = config._locale.erasParse(input, token, config._strict);
  12764. if (era) {
  12765. getParsingFlags(config).era = era;
  12766. } else {
  12767. getParsingFlags(config).invalidEra = input;
  12768. }
  12769. });
  12770. addRegexToken('y', matchUnsigned);
  12771. addRegexToken('yy', matchUnsigned);
  12772. addRegexToken('yyy', matchUnsigned);
  12773. addRegexToken('yyyy', matchUnsigned);
  12774. addRegexToken('yo', matchEraYearOrdinal);
  12775. addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR);
  12776. addParseToken(['yo'], function (input, array, config, token) {
  12777. var match;
  12778. if (config._locale._eraYearOrdinalRegex) {
  12779. match = input.match(config._locale._eraYearOrdinalRegex);
  12780. }
  12781. if (config._locale.eraYearOrdinalParse) {
  12782. array[YEAR] = config._locale.eraYearOrdinalParse(input, match);
  12783. } else {
  12784. array[YEAR] = parseInt(input, 10);
  12785. }
  12786. });
  12787. function localeEras(m, format) {
  12788. var i,
  12789. l,
  12790. date,
  12791. eras = this._eras || getLocale('en')._eras;
  12792. for (i = 0, l = eras.length; i < l; ++i) {
  12793. switch (_typeof(eras[i].since)) {
  12794. case 'string':
  12795. // truncate time
  12796. date = hooks(eras[i].since).startOf('day');
  12797. eras[i].since = date.valueOf();
  12798. break;
  12799. }
  12800. switch (_typeof(eras[i].until)) {
  12801. case 'undefined':
  12802. eras[i].until = +Infinity;
  12803. break;
  12804. case 'string':
  12805. // truncate time
  12806. date = hooks(eras[i].until).startOf('day').valueOf();
  12807. eras[i].until = date.valueOf();
  12808. break;
  12809. }
  12810. }
  12811. return eras;
  12812. }
  12813. function localeErasParse(eraName, format, strict) {
  12814. var i,
  12815. l,
  12816. eras = this.eras(),
  12817. name,
  12818. abbr,
  12819. narrow;
  12820. eraName = eraName.toUpperCase();
  12821. for (i = 0, l = eras.length; i < l; ++i) {
  12822. name = eras[i].name.toUpperCase();
  12823. abbr = eras[i].abbr.toUpperCase();
  12824. narrow = eras[i].narrow.toUpperCase();
  12825. if (strict) {
  12826. switch (format) {
  12827. case 'N':
  12828. case 'NN':
  12829. case 'NNN':
  12830. if (abbr === eraName) {
  12831. return eras[i];
  12832. }
  12833. break;
  12834. case 'NNNN':
  12835. if (name === eraName) {
  12836. return eras[i];
  12837. }
  12838. break;
  12839. case 'NNNNN':
  12840. if (narrow === eraName) {
  12841. return eras[i];
  12842. }
  12843. break;
  12844. }
  12845. } else if ([name, abbr, narrow].indexOf(eraName) >= 0) {
  12846. return eras[i];
  12847. }
  12848. }
  12849. }
  12850. function localeErasConvertYear(era, year) {
  12851. var dir = era.since <= era.until ? +1 : -1;
  12852. if (year === undefined) {
  12853. return hooks(era.since).year();
  12854. } else {
  12855. return hooks(era.since).year() + (year - era.offset) * dir;
  12856. }
  12857. }
  12858. function getEraName() {
  12859. var i,
  12860. l,
  12861. val,
  12862. eras = this.localeData().eras();
  12863. for (i = 0, l = eras.length; i < l; ++i) {
  12864. // truncate time
  12865. val = this.clone().startOf('day').valueOf();
  12866. if (eras[i].since <= val && val <= eras[i].until) {
  12867. return eras[i].name;
  12868. }
  12869. if (eras[i].until <= val && val <= eras[i].since) {
  12870. return eras[i].name;
  12871. }
  12872. }
  12873. return '';
  12874. }
  12875. function getEraNarrow() {
  12876. var i,
  12877. l,
  12878. val,
  12879. eras = this.localeData().eras();
  12880. for (i = 0, l = eras.length; i < l; ++i) {
  12881. // truncate time
  12882. val = this.clone().startOf('day').valueOf();
  12883. if (eras[i].since <= val && val <= eras[i].until) {
  12884. return eras[i].narrow;
  12885. }
  12886. if (eras[i].until <= val && val <= eras[i].since) {
  12887. return eras[i].narrow;
  12888. }
  12889. }
  12890. return '';
  12891. }
  12892. function getEraAbbr() {
  12893. var i,
  12894. l,
  12895. val,
  12896. eras = this.localeData().eras();
  12897. for (i = 0, l = eras.length; i < l; ++i) {
  12898. // truncate time
  12899. val = this.clone().startOf('day').valueOf();
  12900. if (eras[i].since <= val && val <= eras[i].until) {
  12901. return eras[i].abbr;
  12902. }
  12903. if (eras[i].until <= val && val <= eras[i].since) {
  12904. return eras[i].abbr;
  12905. }
  12906. }
  12907. return '';
  12908. }
  12909. function getEraYear() {
  12910. var i,
  12911. l,
  12912. dir,
  12913. val,
  12914. eras = this.localeData().eras();
  12915. for (i = 0, l = eras.length; i < l; ++i) {
  12916. dir = eras[i].since <= eras[i].until ? +1 : -1;
  12917. // truncate time
  12918. val = this.clone().startOf('day').valueOf();
  12919. if (eras[i].since <= val && val <= eras[i].until || eras[i].until <= val && val <= eras[i].since) {
  12920. return (this.year() - hooks(eras[i].since).year()) * dir + eras[i].offset;
  12921. }
  12922. }
  12923. return this.year();
  12924. }
  12925. function erasNameRegex(isStrict) {
  12926. if (!hasOwnProp(this, '_erasNameRegex')) {
  12927. computeErasParse.call(this);
  12928. }
  12929. return isStrict ? this._erasNameRegex : this._erasRegex;
  12930. }
  12931. function erasAbbrRegex(isStrict) {
  12932. if (!hasOwnProp(this, '_erasAbbrRegex')) {
  12933. computeErasParse.call(this);
  12934. }
  12935. return isStrict ? this._erasAbbrRegex : this._erasRegex;
  12936. }
  12937. function erasNarrowRegex(isStrict) {
  12938. if (!hasOwnProp(this, '_erasNarrowRegex')) {
  12939. computeErasParse.call(this);
  12940. }
  12941. return isStrict ? this._erasNarrowRegex : this._erasRegex;
  12942. }
  12943. function matchEraAbbr(isStrict, locale) {
  12944. return locale.erasAbbrRegex(isStrict);
  12945. }
  12946. function matchEraName(isStrict, locale) {
  12947. return locale.erasNameRegex(isStrict);
  12948. }
  12949. function matchEraNarrow(isStrict, locale) {
  12950. return locale.erasNarrowRegex(isStrict);
  12951. }
  12952. function matchEraYearOrdinal(isStrict, locale) {
  12953. return locale._eraYearOrdinalRegex || matchUnsigned;
  12954. }
  12955. function computeErasParse() {
  12956. var abbrPieces = [],
  12957. namePieces = [],
  12958. narrowPieces = [],
  12959. mixedPieces = [],
  12960. i,
  12961. l,
  12962. eras = this.eras();
  12963. for (i = 0, l = eras.length; i < l; ++i) {
  12964. namePieces.push(regexEscape(eras[i].name));
  12965. abbrPieces.push(regexEscape(eras[i].abbr));
  12966. narrowPieces.push(regexEscape(eras[i].narrow));
  12967. mixedPieces.push(regexEscape(eras[i].name));
  12968. mixedPieces.push(regexEscape(eras[i].abbr));
  12969. mixedPieces.push(regexEscape(eras[i].narrow));
  12970. }
  12971. this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  12972. this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i');
  12973. this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i');
  12974. this._erasNarrowRegex = new RegExp('^(' + narrowPieces.join('|') + ')', 'i');
  12975. }
  12976. // FORMATTING
  12977. addFormatToken(0, ['gg', 2], 0, function () {
  12978. return this.weekYear() % 100;
  12979. });
  12980. addFormatToken(0, ['GG', 2], 0, function () {
  12981. return this.isoWeekYear() % 100;
  12982. });
  12983. function addWeekYearFormatToken(token, getter) {
  12984. addFormatToken(0, [token, token.length], 0, getter);
  12985. }
  12986. addWeekYearFormatToken('gggg', 'weekYear');
  12987. addWeekYearFormatToken('ggggg', 'weekYear');
  12988. addWeekYearFormatToken('GGGG', 'isoWeekYear');
  12989. addWeekYearFormatToken('GGGGG', 'isoWeekYear');
  12990. // ALIASES
  12991. addUnitAlias('weekYear', 'gg');
  12992. addUnitAlias('isoWeekYear', 'GG');
  12993. // PRIORITY
  12994. addUnitPriority('weekYear', 1);
  12995. addUnitPriority('isoWeekYear', 1);
  12996. // PARSING
  12997. addRegexToken('G', matchSigned);
  12998. addRegexToken('g', matchSigned);
  12999. addRegexToken('GG', match1to2, match2);
  13000. addRegexToken('gg', match1to2, match2);
  13001. addRegexToken('GGGG', match1to4, match4);
  13002. addRegexToken('gggg', match1to4, match4);
  13003. addRegexToken('GGGGG', match1to6, match6);
  13004. addRegexToken('ggggg', match1to6, match6);
  13005. addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token) {
  13006. week[token.substr(0, 2)] = toInt(input);
  13007. });
  13008. addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
  13009. week[token] = hooks.parseTwoDigitYear(input);
  13010. });
  13011. // MOMENTS
  13012. function getSetWeekYear(input) {
  13013. return getSetWeekYearHelper.call(this, input, this.week(), this.weekday(), this.localeData()._week.dow, this.localeData()._week.doy);
  13014. }
  13015. function getSetISOWeekYear(input) {
  13016. return getSetWeekYearHelper.call(this, input, this.isoWeek(), this.isoWeekday(), 1, 4);
  13017. }
  13018. function getISOWeeksInYear() {
  13019. return weeksInYear(this.year(), 1, 4);
  13020. }
  13021. function getISOWeeksInISOWeekYear() {
  13022. return weeksInYear(this.isoWeekYear(), 1, 4);
  13023. }
  13024. function getWeeksInYear() {
  13025. var weekInfo = this.localeData()._week;
  13026. return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
  13027. }
  13028. function getWeeksInWeekYear() {
  13029. var weekInfo = this.localeData()._week;
  13030. return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy);
  13031. }
  13032. function getSetWeekYearHelper(input, week, weekday, dow, doy) {
  13033. var weeksTarget;
  13034. if (input == null) {
  13035. return weekOfYear(this, dow, doy).year;
  13036. } else {
  13037. weeksTarget = weeksInYear(input, dow, doy);
  13038. if (week > weeksTarget) {
  13039. week = weeksTarget;
  13040. }
  13041. return setWeekAll.call(this, input, week, weekday, dow, doy);
  13042. }
  13043. }
  13044. function setWeekAll(weekYear, week, weekday, dow, doy) {
  13045. var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),
  13046. date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
  13047. this.year(date.getUTCFullYear());
  13048. this.month(date.getUTCMonth());
  13049. this.date(date.getUTCDate());
  13050. return this;
  13051. }
  13052. // FORMATTING
  13053. addFormatToken('Q', 0, 'Qo', 'quarter');
  13054. // ALIASES
  13055. addUnitAlias('quarter', 'Q');
  13056. // PRIORITY
  13057. addUnitPriority('quarter', 7);
  13058. // PARSING
  13059. addRegexToken('Q', match1);
  13060. addParseToken('Q', function (input, array) {
  13061. array[MONTH] = (toInt(input) - 1) * 3;
  13062. });
  13063. // MOMENTS
  13064. function getSetQuarter(input) {
  13065. return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);
  13066. }
  13067. // FORMATTING
  13068. addFormatToken('D', ['DD', 2], 'Do', 'date');
  13069. // ALIASES
  13070. addUnitAlias('date', 'D');
  13071. // PRIORITY
  13072. addUnitPriority('date', 9);
  13073. // PARSING
  13074. addRegexToken('D', match1to2);
  13075. addRegexToken('DD', match1to2, match2);
  13076. addRegexToken('Do', function (isStrict, locale) {
  13077. // TODO: Remove "ordinalParse" fallback in next major release.
  13078. return isStrict ? locale._dayOfMonthOrdinalParse || locale._ordinalParse : locale._dayOfMonthOrdinalParseLenient;
  13079. });
  13080. addParseToken(['D', 'DD'], DATE);
  13081. addParseToken('Do', function (input, array) {
  13082. array[DATE] = toInt(input.match(match1to2)[0]);
  13083. });
  13084. // MOMENTS
  13085. var getSetDayOfMonth = makeGetSet('Date', true);
  13086. // FORMATTING
  13087. addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
  13088. // ALIASES
  13089. addUnitAlias('dayOfYear', 'DDD');
  13090. // PRIORITY
  13091. addUnitPriority('dayOfYear', 4);
  13092. // PARSING
  13093. addRegexToken('DDD', match1to3);
  13094. addRegexToken('DDDD', match3);
  13095. addParseToken(['DDD', 'DDDD'], function (input, array, config) {
  13096. config._dayOfYear = toInt(input);
  13097. });
  13098. // HELPERS
  13099. // MOMENTS
  13100. function getSetDayOfYear(input) {
  13101. var dayOfYear = Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1;
  13102. return input == null ? dayOfYear : this.add(input - dayOfYear, 'd');
  13103. }
  13104. // FORMATTING
  13105. addFormatToken('m', ['mm', 2], 0, 'minute');
  13106. // ALIASES
  13107. addUnitAlias('minute', 'm');
  13108. // PRIORITY
  13109. addUnitPriority('minute', 14);
  13110. // PARSING
  13111. addRegexToken('m', match1to2);
  13112. addRegexToken('mm', match1to2, match2);
  13113. addParseToken(['m', 'mm'], MINUTE);
  13114. // MOMENTS
  13115. var getSetMinute = makeGetSet('Minutes', false);
  13116. // FORMATTING
  13117. addFormatToken('s', ['ss', 2], 0, 'second');
  13118. // ALIASES
  13119. addUnitAlias('second', 's');
  13120. // PRIORITY
  13121. addUnitPriority('second', 15);
  13122. // PARSING
  13123. addRegexToken('s', match1to2);
  13124. addRegexToken('ss', match1to2, match2);
  13125. addParseToken(['s', 'ss'], SECOND);
  13126. // MOMENTS
  13127. var getSetSecond = makeGetSet('Seconds', false);
  13128. // FORMATTING
  13129. addFormatToken('S', 0, 0, function () {
  13130. return ~~(this.millisecond() / 100);
  13131. });
  13132. addFormatToken(0, ['SS', 2], 0, function () {
  13133. return ~~(this.millisecond() / 10);
  13134. });
  13135. addFormatToken(0, ['SSS', 3], 0, 'millisecond');
  13136. addFormatToken(0, ['SSSS', 4], 0, function () {
  13137. return this.millisecond() * 10;
  13138. });
  13139. addFormatToken(0, ['SSSSS', 5], 0, function () {
  13140. return this.millisecond() * 100;
  13141. });
  13142. addFormatToken(0, ['SSSSSS', 6], 0, function () {
  13143. return this.millisecond() * 1000;
  13144. });
  13145. addFormatToken(0, ['SSSSSSS', 7], 0, function () {
  13146. return this.millisecond() * 10000;
  13147. });
  13148. addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
  13149. return this.millisecond() * 100000;
  13150. });
  13151. addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
  13152. return this.millisecond() * 1000000;
  13153. });
  13154. // ALIASES
  13155. addUnitAlias('millisecond', 'ms');
  13156. // PRIORITY
  13157. addUnitPriority('millisecond', 16);
  13158. // PARSING
  13159. addRegexToken('S', match1to3, match1);
  13160. addRegexToken('SS', match1to3, match2);
  13161. addRegexToken('SSS', match1to3, match3);
  13162. var token, getSetMillisecond;
  13163. for (token = 'SSSS'; token.length <= 9; token += 'S') {
  13164. addRegexToken(token, matchUnsigned);
  13165. }
  13166. function parseMs(input, array) {
  13167. array[MILLISECOND] = toInt(('0.' + input) * 1000);
  13168. }
  13169. for (token = 'S'; token.length <= 9; token += 'S') {
  13170. addParseToken(token, parseMs);
  13171. }
  13172. getSetMillisecond = makeGetSet('Milliseconds', false);
  13173. // FORMATTING
  13174. addFormatToken('z', 0, 0, 'zoneAbbr');
  13175. addFormatToken('zz', 0, 0, 'zoneName');
  13176. // MOMENTS
  13177. function getZoneAbbr() {
  13178. return this._isUTC ? 'UTC' : '';
  13179. }
  13180. function getZoneName() {
  13181. return this._isUTC ? 'Coordinated Universal Time' : '';
  13182. }
  13183. var proto = Moment.prototype;
  13184. proto.add = add;
  13185. proto.calendar = calendar$1;
  13186. proto.clone = clone;
  13187. proto.diff = diff;
  13188. proto.endOf = endOf;
  13189. proto.format = format;
  13190. proto.from = from;
  13191. proto.fromNow = fromNow;
  13192. proto.to = to;
  13193. proto.toNow = toNow;
  13194. proto.get = stringGet;
  13195. proto.invalidAt = invalidAt;
  13196. proto.isAfter = isAfter;
  13197. proto.isBefore = isBefore;
  13198. proto.isBetween = isBetween;
  13199. proto.isSame = isSame;
  13200. proto.isSameOrAfter = isSameOrAfter;
  13201. proto.isSameOrBefore = isSameOrBefore;
  13202. proto.isValid = isValid$2;
  13203. proto.lang = lang;
  13204. proto.locale = locale;
  13205. proto.localeData = localeData;
  13206. proto.max = prototypeMax;
  13207. proto.min = prototypeMin;
  13208. proto.parsingFlags = parsingFlags;
  13209. proto.set = stringSet;
  13210. proto.startOf = startOf;
  13211. proto.subtract = subtract;
  13212. proto.toArray = toArray;
  13213. proto.toObject = toObject;
  13214. proto.toDate = toDate;
  13215. proto.toISOString = toISOString;
  13216. proto.inspect = inspect;
  13217. if (typeof Symbol !== 'undefined' && Symbol.for != null) {
  13218. proto[Symbol.for('nodejs.util.inspect.custom')] = function () {
  13219. return 'Moment<' + this.format() + '>';
  13220. };
  13221. }
  13222. proto.toJSON = toJSON;
  13223. proto.toString = toString;
  13224. proto.unix = unix;
  13225. proto.valueOf = valueOf;
  13226. proto.creationData = creationData;
  13227. proto.eraName = getEraName;
  13228. proto.eraNarrow = getEraNarrow;
  13229. proto.eraAbbr = getEraAbbr;
  13230. proto.eraYear = getEraYear;
  13231. proto.year = getSetYear;
  13232. proto.isLeapYear = getIsLeapYear;
  13233. proto.weekYear = getSetWeekYear;
  13234. proto.isoWeekYear = getSetISOWeekYear;
  13235. proto.quarter = proto.quarters = getSetQuarter;
  13236. proto.month = getSetMonth;
  13237. proto.daysInMonth = getDaysInMonth;
  13238. proto.week = proto.weeks = getSetWeek;
  13239. proto.isoWeek = proto.isoWeeks = getSetISOWeek;
  13240. proto.weeksInYear = getWeeksInYear;
  13241. proto.weeksInWeekYear = getWeeksInWeekYear;
  13242. proto.isoWeeksInYear = getISOWeeksInYear;
  13243. proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;
  13244. proto.date = getSetDayOfMonth;
  13245. proto.day = proto.days = getSetDayOfWeek;
  13246. proto.weekday = getSetLocaleDayOfWeek;
  13247. proto.isoWeekday = getSetISODayOfWeek;
  13248. proto.dayOfYear = getSetDayOfYear;
  13249. proto.hour = proto.hours = getSetHour;
  13250. proto.minute = proto.minutes = getSetMinute;
  13251. proto.second = proto.seconds = getSetSecond;
  13252. proto.millisecond = proto.milliseconds = getSetMillisecond;
  13253. proto.utcOffset = getSetOffset;
  13254. proto.utc = setOffsetToUTC;
  13255. proto.local = setOffsetToLocal;
  13256. proto.parseZone = setOffsetToParsedOffset;
  13257. proto.hasAlignedHourOffset = hasAlignedHourOffset;
  13258. proto.isDST = isDaylightSavingTime;
  13259. proto.isLocal = isLocal;
  13260. proto.isUtcOffset = isUtcOffset;
  13261. proto.isUtc = isUtc;
  13262. proto.isUTC = isUtc;
  13263. proto.zoneAbbr = getZoneAbbr;
  13264. proto.zoneName = getZoneName;
  13265. proto.dates = deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth);
  13266. proto.months = deprecate('months accessor is deprecated. Use month instead', getSetMonth);
  13267. proto.years = deprecate('years accessor is deprecated. Use year instead', getSetYear);
  13268. proto.zone = deprecate('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', getSetZone);
  13269. proto.isDSTShifted = deprecate('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', isDaylightSavingTimeShifted);
  13270. function createUnix(input) {
  13271. return createLocal(input * 1000);
  13272. }
  13273. function createInZone() {
  13274. return createLocal.apply(null, arguments).parseZone();
  13275. }
  13276. function preParsePostFormat(string) {
  13277. return string;
  13278. }
  13279. var proto$1 = Locale.prototype;
  13280. proto$1.calendar = calendar;
  13281. proto$1.longDateFormat = longDateFormat;
  13282. proto$1.invalidDate = invalidDate;
  13283. proto$1.ordinal = ordinal;
  13284. proto$1.preparse = preParsePostFormat;
  13285. proto$1.postformat = preParsePostFormat;
  13286. proto$1.relativeTime = relativeTime;
  13287. proto$1.pastFuture = pastFuture;
  13288. proto$1.set = set;
  13289. proto$1.eras = localeEras;
  13290. proto$1.erasParse = localeErasParse;
  13291. proto$1.erasConvertYear = localeErasConvertYear;
  13292. proto$1.erasAbbrRegex = erasAbbrRegex;
  13293. proto$1.erasNameRegex = erasNameRegex;
  13294. proto$1.erasNarrowRegex = erasNarrowRegex;
  13295. proto$1.months = localeMonths;
  13296. proto$1.monthsShort = localeMonthsShort;
  13297. proto$1.monthsParse = localeMonthsParse;
  13298. proto$1.monthsRegex = monthsRegex;
  13299. proto$1.monthsShortRegex = monthsShortRegex;
  13300. proto$1.week = localeWeek;
  13301. proto$1.firstDayOfYear = localeFirstDayOfYear;
  13302. proto$1.firstDayOfWeek = localeFirstDayOfWeek;
  13303. proto$1.weekdays = localeWeekdays;
  13304. proto$1.weekdaysMin = localeWeekdaysMin;
  13305. proto$1.weekdaysShort = localeWeekdaysShort;
  13306. proto$1.weekdaysParse = localeWeekdaysParse;
  13307. proto$1.weekdaysRegex = weekdaysRegex;
  13308. proto$1.weekdaysShortRegex = weekdaysShortRegex;
  13309. proto$1.weekdaysMinRegex = weekdaysMinRegex;
  13310. proto$1.isPM = localeIsPM;
  13311. proto$1.meridiem = localeMeridiem;
  13312. function get$1(format, index, field, setter) {
  13313. var locale = getLocale(),
  13314. utc = createUTC().set(setter, index);
  13315. return locale[field](utc, format);
  13316. }
  13317. function listMonthsImpl(format, index, field) {
  13318. if (isNumber(format)) {
  13319. index = format;
  13320. format = undefined;
  13321. }
  13322. format = format || '';
  13323. if (index != null) {
  13324. return get$1(format, index, field, 'month');
  13325. }
  13326. var i,
  13327. out = [];
  13328. for (i = 0; i < 12; i++) {
  13329. out[i] = get$1(format, i, field, 'month');
  13330. }
  13331. return out;
  13332. }
  13333. // ()
  13334. // (5)
  13335. // (fmt, 5)
  13336. // (fmt)
  13337. // (true)
  13338. // (true, 5)
  13339. // (true, fmt, 5)
  13340. // (true, fmt)
  13341. function listWeekdaysImpl(localeSorted, format, index, field) {
  13342. if (typeof localeSorted === 'boolean') {
  13343. if (isNumber(format)) {
  13344. index = format;
  13345. format = undefined;
  13346. }
  13347. format = format || '';
  13348. } else {
  13349. format = localeSorted;
  13350. index = format;
  13351. localeSorted = false;
  13352. if (isNumber(format)) {
  13353. index = format;
  13354. format = undefined;
  13355. }
  13356. format = format || '';
  13357. }
  13358. var locale = getLocale(),
  13359. shift = localeSorted ? locale._week.dow : 0,
  13360. i,
  13361. out = [];
  13362. if (index != null) {
  13363. return get$1(format, (index + shift) % 7, field, 'day');
  13364. }
  13365. for (i = 0; i < 7; i++) {
  13366. out[i] = get$1(format, (i + shift) % 7, field, 'day');
  13367. }
  13368. return out;
  13369. }
  13370. function listMonths(format, index) {
  13371. return listMonthsImpl(format, index, 'months');
  13372. }
  13373. function listMonthsShort(format, index) {
  13374. return listMonthsImpl(format, index, 'monthsShort');
  13375. }
  13376. function listWeekdays(localeSorted, format, index) {
  13377. return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
  13378. }
  13379. function listWeekdaysShort(localeSorted, format, index) {
  13380. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
  13381. }
  13382. function listWeekdaysMin(localeSorted, format, index) {
  13383. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
  13384. }
  13385. getSetGlobalLocale('en', {
  13386. eras: [{
  13387. since: '0001-01-01',
  13388. until: +Infinity,
  13389. offset: 1,
  13390. name: 'Anno Domini',
  13391. narrow: 'AD',
  13392. abbr: 'AD'
  13393. }, {
  13394. since: '0000-12-31',
  13395. until: -Infinity,
  13396. offset: 1,
  13397. name: 'Before Christ',
  13398. narrow: 'BC',
  13399. abbr: 'BC'
  13400. }],
  13401. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  13402. ordinal: function ordinal(number) {
  13403. var b = number % 10,
  13404. output = toInt(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  13405. return number + output;
  13406. }
  13407. });
  13408. // Side effect imports
  13409. hooks.lang = deprecate('moment.lang is deprecated. Use moment.locale instead.', getSetGlobalLocale);
  13410. hooks.langData = deprecate('moment.langData is deprecated. Use moment.localeData instead.', getLocale);
  13411. var mathAbs = Math.abs;
  13412. function abs() {
  13413. var data = this._data;
  13414. this._milliseconds = mathAbs(this._milliseconds);
  13415. this._days = mathAbs(this._days);
  13416. this._months = mathAbs(this._months);
  13417. data.milliseconds = mathAbs(data.milliseconds);
  13418. data.seconds = mathAbs(data.seconds);
  13419. data.minutes = mathAbs(data.minutes);
  13420. data.hours = mathAbs(data.hours);
  13421. data.months = mathAbs(data.months);
  13422. data.years = mathAbs(data.years);
  13423. return this;
  13424. }
  13425. function addSubtract$1(duration, input, value, direction) {
  13426. var other = createDuration(input, value);
  13427. duration._milliseconds += direction * other._milliseconds;
  13428. duration._days += direction * other._days;
  13429. duration._months += direction * other._months;
  13430. return duration._bubble();
  13431. }
  13432. // supports only 2.0-style add(1, 's') or add(duration)
  13433. function add$1(input, value) {
  13434. return addSubtract$1(this, input, value, 1);
  13435. }
  13436. // supports only 2.0-style subtract(1, 's') or subtract(duration)
  13437. function subtract$1(input, value) {
  13438. return addSubtract$1(this, input, value, -1);
  13439. }
  13440. function absCeil(number) {
  13441. if (number < 0) {
  13442. return Math.floor(number);
  13443. } else {
  13444. return Math.ceil(number);
  13445. }
  13446. }
  13447. function bubble() {
  13448. var milliseconds = this._milliseconds,
  13449. days = this._days,
  13450. months = this._months,
  13451. data = this._data,
  13452. seconds,
  13453. minutes,
  13454. hours,
  13455. years,
  13456. monthsFromDays;
  13457. // if we have a mix of positive and negative values, bubble down first
  13458. // check: https://github.com/moment/moment/issues/2166
  13459. if (!(milliseconds >= 0 && days >= 0 && months >= 0 || milliseconds <= 0 && days <= 0 && months <= 0)) {
  13460. milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
  13461. days = 0;
  13462. months = 0;
  13463. }
  13464. // The following code bubbles up values, see the tests for
  13465. // examples of what that means.
  13466. data.milliseconds = milliseconds % 1000;
  13467. seconds = absFloor(milliseconds / 1000);
  13468. data.seconds = seconds % 60;
  13469. minutes = absFloor(seconds / 60);
  13470. data.minutes = minutes % 60;
  13471. hours = absFloor(minutes / 60);
  13472. data.hours = hours % 24;
  13473. days += absFloor(hours / 24);
  13474. // convert days to months
  13475. monthsFromDays = absFloor(daysToMonths(days));
  13476. months += monthsFromDays;
  13477. days -= absCeil(monthsToDays(monthsFromDays));
  13478. // 12 months -> 1 year
  13479. years = absFloor(months / 12);
  13480. months %= 12;
  13481. data.days = days;
  13482. data.months = months;
  13483. data.years = years;
  13484. return this;
  13485. }
  13486. function daysToMonths(days) {
  13487. // 400 years have 146097 days (taking into account leap year rules)
  13488. // 400 years have 12 months === 4800
  13489. return days * 4800 / 146097;
  13490. }
  13491. function monthsToDays(months) {
  13492. // the reverse of daysToMonths
  13493. return months * 146097 / 4800;
  13494. }
  13495. function as(units) {
  13496. if (!this.isValid()) {
  13497. return NaN;
  13498. }
  13499. var days,
  13500. months,
  13501. milliseconds = this._milliseconds;
  13502. units = normalizeUnits(units);
  13503. if (units === 'month' || units === 'quarter' || units === 'year') {
  13504. days = this._days + milliseconds / 864e5;
  13505. months = this._months + daysToMonths(days);
  13506. switch (units) {
  13507. case 'month':
  13508. return months;
  13509. case 'quarter':
  13510. return months / 3;
  13511. case 'year':
  13512. return months / 12;
  13513. }
  13514. } else {
  13515. // handle milliseconds separately because of floating point math errors (issue #1867)
  13516. days = this._days + Math.round(monthsToDays(this._months));
  13517. switch (units) {
  13518. case 'week':
  13519. return days / 7 + milliseconds / 6048e5;
  13520. case 'day':
  13521. return days + milliseconds / 864e5;
  13522. case 'hour':
  13523. return days * 24 + milliseconds / 36e5;
  13524. case 'minute':
  13525. return days * 1440 + milliseconds / 6e4;
  13526. case 'second':
  13527. return days * 86400 + milliseconds / 1000;
  13528. // Math.floor prevents floating point math errors here
  13529. case 'millisecond':
  13530. return Math.floor(days * 864e5) + milliseconds;
  13531. default:
  13532. throw new Error('Unknown unit ' + units);
  13533. }
  13534. }
  13535. }
  13536. // TODO: Use this.as('ms')?
  13537. function valueOf$1() {
  13538. if (!this.isValid()) {
  13539. return NaN;
  13540. }
  13541. return this._milliseconds + this._days * 864e5 + this._months % 12 * 2592e6 + toInt(this._months / 12) * 31536e6;
  13542. }
  13543. function makeAs(alias) {
  13544. return function () {
  13545. return this.as(alias);
  13546. };
  13547. }
  13548. var asMilliseconds = makeAs('ms'),
  13549. asSeconds = makeAs('s'),
  13550. asMinutes = makeAs('m'),
  13551. asHours = makeAs('h'),
  13552. asDays = makeAs('d'),
  13553. asWeeks = makeAs('w'),
  13554. asMonths = makeAs('M'),
  13555. asQuarters = makeAs('Q'),
  13556. asYears = makeAs('y');
  13557. function clone$1() {
  13558. return createDuration(this);
  13559. }
  13560. function get$2(units) {
  13561. units = normalizeUnits(units);
  13562. return this.isValid() ? this[units + 's']() : NaN;
  13563. }
  13564. function makeGetter(name) {
  13565. return function () {
  13566. return this.isValid() ? this._data[name] : NaN;
  13567. };
  13568. }
  13569. var milliseconds = makeGetter('milliseconds'),
  13570. seconds = makeGetter('seconds'),
  13571. minutes = makeGetter('minutes'),
  13572. hours = makeGetter('hours'),
  13573. days = makeGetter('days'),
  13574. months = makeGetter('months'),
  13575. years = makeGetter('years');
  13576. function weeks() {
  13577. return absFloor(this.days() / 7);
  13578. }
  13579. var round = Math.round,
  13580. thresholds = {
  13581. ss: 44,
  13582. // a few seconds to seconds
  13583. s: 45,
  13584. // seconds to minute
  13585. m: 45,
  13586. // minutes to hour
  13587. h: 22,
  13588. // hours to day
  13589. d: 26,
  13590. // days to month/week
  13591. w: null,
  13592. // weeks to month
  13593. M: 11 // months to year
  13594. };
  13595. // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
  13596. function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
  13597. return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
  13598. }
  13599. function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {
  13600. var duration = createDuration(posNegDuration).abs(),
  13601. seconds = round(duration.as('s')),
  13602. minutes = round(duration.as('m')),
  13603. hours = round(duration.as('h')),
  13604. days = round(duration.as('d')),
  13605. months = round(duration.as('M')),
  13606. weeks = round(duration.as('w')),
  13607. years = round(duration.as('y')),
  13608. a = seconds <= thresholds.ss && ['s', seconds] || seconds < thresholds.s && ['ss', seconds] || minutes <= 1 && ['m'] || minutes < thresholds.m && ['mm', minutes] || hours <= 1 && ['h'] || hours < thresholds.h && ['hh', hours] || days <= 1 && ['d'] || days < thresholds.d && ['dd', days];
  13609. if (thresholds.w != null) {
  13610. a = a || weeks <= 1 && ['w'] || weeks < thresholds.w && ['ww', weeks];
  13611. }
  13612. a = a || months <= 1 && ['M'] || months < thresholds.M && ['MM', months] || years <= 1 && ['y'] || ['yy', years];
  13613. a[2] = withoutSuffix;
  13614. a[3] = +posNegDuration > 0;
  13615. a[4] = locale;
  13616. return substituteTimeAgo.apply(null, a);
  13617. }
  13618. // This function allows you to set the rounding function for relative time strings
  13619. function getSetRelativeTimeRounding(roundingFunction) {
  13620. if (roundingFunction === undefined) {
  13621. return round;
  13622. }
  13623. if (typeof roundingFunction === 'function') {
  13624. round = roundingFunction;
  13625. return true;
  13626. }
  13627. return false;
  13628. }
  13629. // This function allows you to set a threshold for relative time strings
  13630. function getSetRelativeTimeThreshold(threshold, limit) {
  13631. if (thresholds[threshold] === undefined) {
  13632. return false;
  13633. }
  13634. if (limit === undefined) {
  13635. return thresholds[threshold];
  13636. }
  13637. thresholds[threshold] = limit;
  13638. if (threshold === 's') {
  13639. thresholds.ss = limit - 1;
  13640. }
  13641. return true;
  13642. }
  13643. function humanize(argWithSuffix, argThresholds) {
  13644. if (!this.isValid()) {
  13645. return this.localeData().invalidDate();
  13646. }
  13647. var withSuffix = false,
  13648. th = thresholds,
  13649. locale,
  13650. output;
  13651. if (_typeof(argWithSuffix) === 'object') {
  13652. argThresholds = argWithSuffix;
  13653. argWithSuffix = false;
  13654. }
  13655. if (typeof argWithSuffix === 'boolean') {
  13656. withSuffix = argWithSuffix;
  13657. }
  13658. if (_typeof(argThresholds) === 'object') {
  13659. th = Object.assign({}, thresholds, argThresholds);
  13660. if (argThresholds.s != null && argThresholds.ss == null) {
  13661. th.ss = argThresholds.s - 1;
  13662. }
  13663. }
  13664. locale = this.localeData();
  13665. output = relativeTime$1(this, !withSuffix, th, locale);
  13666. if (withSuffix) {
  13667. output = locale.pastFuture(+this, output);
  13668. }
  13669. return locale.postformat(output);
  13670. }
  13671. var abs$1 = Math.abs;
  13672. function sign(x) {
  13673. return (x > 0) - (x < 0) || +x;
  13674. }
  13675. function toISOString$1() {
  13676. // for ISO strings we do not use the normal bubbling rules:
  13677. // * milliseconds bubble up until they become hours
  13678. // * days do not bubble at all
  13679. // * months bubble up until they become years
  13680. // This is because there is no context-free conversion between hours and days
  13681. // (think of clock changes)
  13682. // and also not between days and months (28-31 days per month)
  13683. if (!this.isValid()) {
  13684. return this.localeData().invalidDate();
  13685. }
  13686. var seconds = abs$1(this._milliseconds) / 1000,
  13687. days = abs$1(this._days),
  13688. months = abs$1(this._months),
  13689. minutes,
  13690. hours,
  13691. years,
  13692. s,
  13693. total = this.asSeconds(),
  13694. totalSign,
  13695. ymSign,
  13696. daysSign,
  13697. hmsSign;
  13698. if (!total) {
  13699. // this is the same as C#'s (Noda) and python (isodate)...
  13700. // but not other JS (goog.date)
  13701. return 'P0D';
  13702. }
  13703. // 3600 seconds -> 60 minutes -> 1 hour
  13704. minutes = absFloor(seconds / 60);
  13705. hours = absFloor(minutes / 60);
  13706. seconds %= 60;
  13707. minutes %= 60;
  13708. // 12 months -> 1 year
  13709. years = absFloor(months / 12);
  13710. months %= 12;
  13711. // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
  13712. s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : '';
  13713. totalSign = total < 0 ? '-' : '';
  13714. ymSign = sign(this._months) !== sign(total) ? '-' : '';
  13715. daysSign = sign(this._days) !== sign(total) ? '-' : '';
  13716. hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';
  13717. return totalSign + 'P' + (years ? ymSign + years + 'Y' : '') + (months ? ymSign + months + 'M' : '') + (days ? daysSign + days + 'D' : '') + (hours || minutes || seconds ? 'T' : '') + (hours ? hmsSign + hours + 'H' : '') + (minutes ? hmsSign + minutes + 'M' : '') + (seconds ? hmsSign + s + 'S' : '');
  13718. }
  13719. var proto$2 = Duration.prototype;
  13720. proto$2.isValid = isValid$1;
  13721. proto$2.abs = abs;
  13722. proto$2.add = add$1;
  13723. proto$2.subtract = subtract$1;
  13724. proto$2.as = as;
  13725. proto$2.asMilliseconds = asMilliseconds;
  13726. proto$2.asSeconds = asSeconds;
  13727. proto$2.asMinutes = asMinutes;
  13728. proto$2.asHours = asHours;
  13729. proto$2.asDays = asDays;
  13730. proto$2.asWeeks = asWeeks;
  13731. proto$2.asMonths = asMonths;
  13732. proto$2.asQuarters = asQuarters;
  13733. proto$2.asYears = asYears;
  13734. proto$2.valueOf = valueOf$1;
  13735. proto$2._bubble = bubble;
  13736. proto$2.clone = clone$1;
  13737. proto$2.get = get$2;
  13738. proto$2.milliseconds = milliseconds;
  13739. proto$2.seconds = seconds;
  13740. proto$2.minutes = minutes;
  13741. proto$2.hours = hours;
  13742. proto$2.days = days;
  13743. proto$2.weeks = weeks;
  13744. proto$2.months = months;
  13745. proto$2.years = years;
  13746. proto$2.humanize = humanize;
  13747. proto$2.toISOString = toISOString$1;
  13748. proto$2.toString = toISOString$1;
  13749. proto$2.toJSON = toISOString$1;
  13750. proto$2.locale = locale;
  13751. proto$2.localeData = localeData;
  13752. proto$2.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', toISOString$1);
  13753. proto$2.lang = lang;
  13754. // FORMATTING
  13755. addFormatToken('X', 0, 0, 'unix');
  13756. addFormatToken('x', 0, 0, 'valueOf');
  13757. // PARSING
  13758. addRegexToken('x', matchSigned);
  13759. addRegexToken('X', matchTimestamp);
  13760. addParseToken('X', function (input, array, config) {
  13761. config._d = new Date(parseFloat(input) * 1000);
  13762. });
  13763. addParseToken('x', function (input, array, config) {
  13764. config._d = new Date(toInt(input));
  13765. });
  13766. //! moment.js
  13767. hooks.version = '2.29.4';
  13768. setHookCallback(createLocal);
  13769. hooks.fn = proto;
  13770. hooks.min = min;
  13771. hooks.max = max;
  13772. hooks.now = now;
  13773. hooks.utc = createUTC;
  13774. hooks.unix = createUnix;
  13775. hooks.months = listMonths;
  13776. hooks.isDate = isDate;
  13777. hooks.locale = getSetGlobalLocale;
  13778. hooks.invalid = createInvalid;
  13779. hooks.duration = createDuration;
  13780. hooks.isMoment = isMoment;
  13781. hooks.weekdays = listWeekdays;
  13782. hooks.parseZone = createInZone;
  13783. hooks.localeData = getLocale;
  13784. hooks.isDuration = isDuration;
  13785. hooks.monthsShort = listMonthsShort;
  13786. hooks.weekdaysMin = listWeekdaysMin;
  13787. hooks.defineLocale = defineLocale;
  13788. hooks.updateLocale = updateLocale;
  13789. hooks.locales = listLocales;
  13790. hooks.weekdaysShort = listWeekdaysShort;
  13791. hooks.normalizeUnits = normalizeUnits;
  13792. hooks.relativeTimeRounding = getSetRelativeTimeRounding;
  13793. hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
  13794. hooks.calendarFormat = getCalendarFormat;
  13795. hooks.prototype = proto;
  13796. // currently HTML5 input type only supports 24-hour formats
  13797. hooks.HTML5_FMT = {
  13798. DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm',
  13799. // <input type="datetime-local" />
  13800. DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss',
  13801. // <input type="datetime-local" step="1" />
  13802. DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS',
  13803. // <input type="datetime-local" step="0.001" />
  13804. DATE: 'YYYY-MM-DD',
  13805. // <input type="date" />
  13806. TIME: 'HH:mm',
  13807. // <input type="time" />
  13808. TIME_SECONDS: 'HH:mm:ss',
  13809. // <input type="time" step="1" />
  13810. TIME_MS: 'HH:mm:ss.SSS',
  13811. // <input type="time" step="0.001" />
  13812. WEEK: 'GGGG-[W]WW',
  13813. // <input type="week" />
  13814. MONTH: 'YYYY-MM' // <input type="month" />
  13815. };
  13816. return hooks;
  13817. });
  13818. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../软件/HBuilderX.3.4.14.20220607/HBuilderX/plugins/uniapp-cli/node_modules/webpack/buildin/module.js */ 40)(module)))
  13819. /***/ }),
  13820. /* 40 */
  13821. /*!***********************************!*\
  13822. !*** (webpack)/buildin/module.js ***!
  13823. \***********************************/
  13824. /*! no static exports found */
  13825. /***/ (function(module, exports) {
  13826. module.exports = function(module) {
  13827. if (!module.webpackPolyfill) {
  13828. module.deprecate = function() {};
  13829. module.paths = [];
  13830. // module.parent = undefined by default
  13831. if (!module.children) module.children = [];
  13832. Object.defineProperty(module, "loaded", {
  13833. enumerable: true,
  13834. get: function() {
  13835. return module.l;
  13836. }
  13837. });
  13838. Object.defineProperty(module, "id", {
  13839. enumerable: true,
  13840. get: function() {
  13841. return module.i;
  13842. }
  13843. });
  13844. module.webpackPolyfill = 1;
  13845. }
  13846. return module;
  13847. };
  13848. /***/ }),
  13849. /* 41 */
  13850. /*!***********************************************************************!*\
  13851. !*** D:/project/项目模板/uniapp/node_modules/moment/locale sync ^\.\/.*$ ***!
  13852. \***********************************************************************/
  13853. /*! no static exports found */
  13854. /***/ (function(module, exports, __webpack_require__) {
  13855. var map = {
  13856. "./af": 42,
  13857. "./af.js": 42,
  13858. "./ar": 43,
  13859. "./ar-dz": 44,
  13860. "./ar-dz.js": 44,
  13861. "./ar-kw": 45,
  13862. "./ar-kw.js": 45,
  13863. "./ar-ly": 46,
  13864. "./ar-ly.js": 46,
  13865. "./ar-ma": 47,
  13866. "./ar-ma.js": 47,
  13867. "./ar-sa": 48,
  13868. "./ar-sa.js": 48,
  13869. "./ar-tn": 49,
  13870. "./ar-tn.js": 49,
  13871. "./ar.js": 43,
  13872. "./az": 50,
  13873. "./az.js": 50,
  13874. "./be": 51,
  13875. "./be.js": 51,
  13876. "./bg": 52,
  13877. "./bg.js": 52,
  13878. "./bm": 53,
  13879. "./bm.js": 53,
  13880. "./bn": 54,
  13881. "./bn-bd": 55,
  13882. "./bn-bd.js": 55,
  13883. "./bn.js": 54,
  13884. "./bo": 56,
  13885. "./bo.js": 56,
  13886. "./br": 57,
  13887. "./br.js": 57,
  13888. "./bs": 58,
  13889. "./bs.js": 58,
  13890. "./ca": 59,
  13891. "./ca.js": 59,
  13892. "./cs": 60,
  13893. "./cs.js": 60,
  13894. "./cv": 61,
  13895. "./cv.js": 61,
  13896. "./cy": 62,
  13897. "./cy.js": 62,
  13898. "./da": 63,
  13899. "./da.js": 63,
  13900. "./de": 64,
  13901. "./de-at": 65,
  13902. "./de-at.js": 65,
  13903. "./de-ch": 66,
  13904. "./de-ch.js": 66,
  13905. "./de.js": 64,
  13906. "./dv": 67,
  13907. "./dv.js": 67,
  13908. "./el": 68,
  13909. "./el.js": 68,
  13910. "./en-au": 69,
  13911. "./en-au.js": 69,
  13912. "./en-ca": 70,
  13913. "./en-ca.js": 70,
  13914. "./en-gb": 71,
  13915. "./en-gb.js": 71,
  13916. "./en-ie": 72,
  13917. "./en-ie.js": 72,
  13918. "./en-il": 73,
  13919. "./en-il.js": 73,
  13920. "./en-in": 74,
  13921. "./en-in.js": 74,
  13922. "./en-nz": 75,
  13923. "./en-nz.js": 75,
  13924. "./en-sg": 76,
  13925. "./en-sg.js": 76,
  13926. "./eo": 77,
  13927. "./eo.js": 77,
  13928. "./es": 78,
  13929. "./es-do": 79,
  13930. "./es-do.js": 79,
  13931. "./es-mx": 80,
  13932. "./es-mx.js": 80,
  13933. "./es-us": 81,
  13934. "./es-us.js": 81,
  13935. "./es.js": 78,
  13936. "./et": 82,
  13937. "./et.js": 82,
  13938. "./eu": 83,
  13939. "./eu.js": 83,
  13940. "./fa": 84,
  13941. "./fa.js": 84,
  13942. "./fi": 85,
  13943. "./fi.js": 85,
  13944. "./fil": 86,
  13945. "./fil.js": 86,
  13946. "./fo": 87,
  13947. "./fo.js": 87,
  13948. "./fr": 88,
  13949. "./fr-ca": 89,
  13950. "./fr-ca.js": 89,
  13951. "./fr-ch": 90,
  13952. "./fr-ch.js": 90,
  13953. "./fr.js": 88,
  13954. "./fy": 91,
  13955. "./fy.js": 91,
  13956. "./ga": 92,
  13957. "./ga.js": 92,
  13958. "./gd": 93,
  13959. "./gd.js": 93,
  13960. "./gl": 94,
  13961. "./gl.js": 94,
  13962. "./gom-deva": 95,
  13963. "./gom-deva.js": 95,
  13964. "./gom-latn": 96,
  13965. "./gom-latn.js": 96,
  13966. "./gu": 97,
  13967. "./gu.js": 97,
  13968. "./he": 98,
  13969. "./he.js": 98,
  13970. "./hi": 99,
  13971. "./hi.js": 99,
  13972. "./hr": 100,
  13973. "./hr.js": 100,
  13974. "./hu": 101,
  13975. "./hu.js": 101,
  13976. "./hy-am": 102,
  13977. "./hy-am.js": 102,
  13978. "./id": 103,
  13979. "./id.js": 103,
  13980. "./is": 104,
  13981. "./is.js": 104,
  13982. "./it": 105,
  13983. "./it-ch": 106,
  13984. "./it-ch.js": 106,
  13985. "./it.js": 105,
  13986. "./ja": 107,
  13987. "./ja.js": 107,
  13988. "./jv": 108,
  13989. "./jv.js": 108,
  13990. "./ka": 109,
  13991. "./ka.js": 109,
  13992. "./kk": 110,
  13993. "./kk.js": 110,
  13994. "./km": 111,
  13995. "./km.js": 111,
  13996. "./kn": 112,
  13997. "./kn.js": 112,
  13998. "./ko": 113,
  13999. "./ko.js": 113,
  14000. "./ku": 114,
  14001. "./ku.js": 114,
  14002. "./ky": 115,
  14003. "./ky.js": 115,
  14004. "./lb": 116,
  14005. "./lb.js": 116,
  14006. "./lo": 117,
  14007. "./lo.js": 117,
  14008. "./lt": 118,
  14009. "./lt.js": 118,
  14010. "./lv": 119,
  14011. "./lv.js": 119,
  14012. "./me": 120,
  14013. "./me.js": 120,
  14014. "./mi": 121,
  14015. "./mi.js": 121,
  14016. "./mk": 122,
  14017. "./mk.js": 122,
  14018. "./ml": 123,
  14019. "./ml.js": 123,
  14020. "./mn": 124,
  14021. "./mn.js": 124,
  14022. "./mr": 125,
  14023. "./mr.js": 125,
  14024. "./ms": 126,
  14025. "./ms-my": 127,
  14026. "./ms-my.js": 127,
  14027. "./ms.js": 126,
  14028. "./mt": 128,
  14029. "./mt.js": 128,
  14030. "./my": 129,
  14031. "./my.js": 129,
  14032. "./nb": 130,
  14033. "./nb.js": 130,
  14034. "./ne": 131,
  14035. "./ne.js": 131,
  14036. "./nl": 132,
  14037. "./nl-be": 133,
  14038. "./nl-be.js": 133,
  14039. "./nl.js": 132,
  14040. "./nn": 134,
  14041. "./nn.js": 134,
  14042. "./oc-lnc": 135,
  14043. "./oc-lnc.js": 135,
  14044. "./pa-in": 136,
  14045. "./pa-in.js": 136,
  14046. "./pl": 137,
  14047. "./pl.js": 137,
  14048. "./pt": 138,
  14049. "./pt-br": 139,
  14050. "./pt-br.js": 139,
  14051. "./pt.js": 138,
  14052. "./ro": 140,
  14053. "./ro.js": 140,
  14054. "./ru": 141,
  14055. "./ru.js": 141,
  14056. "./sd": 142,
  14057. "./sd.js": 142,
  14058. "./se": 143,
  14059. "./se.js": 143,
  14060. "./si": 144,
  14061. "./si.js": 144,
  14062. "./sk": 145,
  14063. "./sk.js": 145,
  14064. "./sl": 146,
  14065. "./sl.js": 146,
  14066. "./sq": 147,
  14067. "./sq.js": 147,
  14068. "./sr": 148,
  14069. "./sr-cyrl": 149,
  14070. "./sr-cyrl.js": 149,
  14071. "./sr.js": 148,
  14072. "./ss": 150,
  14073. "./ss.js": 150,
  14074. "./sv": 151,
  14075. "./sv.js": 151,
  14076. "./sw": 152,
  14077. "./sw.js": 152,
  14078. "./ta": 153,
  14079. "./ta.js": 153,
  14080. "./te": 154,
  14081. "./te.js": 154,
  14082. "./tet": 155,
  14083. "./tet.js": 155,
  14084. "./tg": 156,
  14085. "./tg.js": 156,
  14086. "./th": 157,
  14087. "./th.js": 157,
  14088. "./tk": 158,
  14089. "./tk.js": 158,
  14090. "./tl-ph": 159,
  14091. "./tl-ph.js": 159,
  14092. "./tlh": 160,
  14093. "./tlh.js": 160,
  14094. "./tr": 161,
  14095. "./tr.js": 161,
  14096. "./tzl": 162,
  14097. "./tzl.js": 162,
  14098. "./tzm": 163,
  14099. "./tzm-latn": 164,
  14100. "./tzm-latn.js": 164,
  14101. "./tzm.js": 163,
  14102. "./ug-cn": 165,
  14103. "./ug-cn.js": 165,
  14104. "./uk": 166,
  14105. "./uk.js": 166,
  14106. "./ur": 167,
  14107. "./ur.js": 167,
  14108. "./uz": 168,
  14109. "./uz-latn": 169,
  14110. "./uz-latn.js": 169,
  14111. "./uz.js": 168,
  14112. "./vi": 170,
  14113. "./vi.js": 170,
  14114. "./x-pseudo": 171,
  14115. "./x-pseudo.js": 171,
  14116. "./yo": 172,
  14117. "./yo.js": 172,
  14118. "./zh-cn": 173,
  14119. "./zh-cn.js": 173,
  14120. "./zh-hk": 174,
  14121. "./zh-hk.js": 174,
  14122. "./zh-mo": 175,
  14123. "./zh-mo.js": 175,
  14124. "./zh-tw": 176,
  14125. "./zh-tw.js": 176
  14126. };
  14127. function webpackContext(req) {
  14128. var id = webpackContextResolve(req);
  14129. return __webpack_require__(id);
  14130. }
  14131. function webpackContextResolve(req) {
  14132. if(!__webpack_require__.o(map, req)) {
  14133. var e = new Error("Cannot find module '" + req + "'");
  14134. e.code = 'MODULE_NOT_FOUND';
  14135. throw e;
  14136. }
  14137. return map[req];
  14138. }
  14139. webpackContext.keys = function webpackContextKeys() {
  14140. return Object.keys(map);
  14141. };
  14142. webpackContext.resolve = webpackContextResolve;
  14143. module.exports = webpackContext;
  14144. webpackContext.id = 41;
  14145. /***/ }),
  14146. /* 42 */
  14147. /*!***************************************************************!*\
  14148. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/af.js ***!
  14149. \***************************************************************/
  14150. /*! no static exports found */
  14151. /***/ (function(module, exports, __webpack_require__) {
  14152. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  14153. //! moment.js locale configuration
  14154. //! locale : Afrikaans [af]
  14155. //! author : Werner Mollentze : https://github.com/wernerm
  14156. ;
  14157. (function (global, factory) {
  14158. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  14159. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  14160. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  14161. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  14162. })(this, function (moment) {
  14163. 'use strict';
  14164. //! moment.js locale configuration
  14165. var af = moment.defineLocale('af', {
  14166. months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
  14167. monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
  14168. weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
  14169. weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
  14170. weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
  14171. meridiemParse: /vm|nm/i,
  14172. isPM: function isPM(input) {
  14173. return /^nm$/i.test(input);
  14174. },
  14175. meridiem: function meridiem(hours, minutes, isLower) {
  14176. if (hours < 12) {
  14177. return isLower ? 'vm' : 'VM';
  14178. } else {
  14179. return isLower ? 'nm' : 'NM';
  14180. }
  14181. },
  14182. longDateFormat: {
  14183. LT: 'HH:mm',
  14184. LTS: 'HH:mm:ss',
  14185. L: 'DD/MM/YYYY',
  14186. LL: 'D MMMM YYYY',
  14187. LLL: 'D MMMM YYYY HH:mm',
  14188. LLLL: 'dddd, D MMMM YYYY HH:mm'
  14189. },
  14190. calendar: {
  14191. sameDay: '[Vandag om] LT',
  14192. nextDay: '[Môre om] LT',
  14193. nextWeek: 'dddd [om] LT',
  14194. lastDay: '[Gister om] LT',
  14195. lastWeek: '[Laas] dddd [om] LT',
  14196. sameElse: 'L'
  14197. },
  14198. relativeTime: {
  14199. future: 'oor %s',
  14200. past: '%s gelede',
  14201. s: "'n paar sekondes",
  14202. ss: '%d sekondes',
  14203. m: "'n minuut",
  14204. mm: '%d minute',
  14205. h: "'n uur",
  14206. hh: '%d ure',
  14207. d: "'n dag",
  14208. dd: '%d dae',
  14209. M: "'n maand",
  14210. MM: '%d maande',
  14211. y: "'n jaar",
  14212. yy: '%d jaar'
  14213. },
  14214. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  14215. ordinal: function ordinal(number) {
  14216. return number + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter
  14217. },
  14218. week: {
  14219. dow: 1,
  14220. // Maandag is die eerste dag van die week.
  14221. doy: 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
  14222. }
  14223. });
  14224. return af;
  14225. });
  14226. /***/ }),
  14227. /* 43 */
  14228. /*!***************************************************************!*\
  14229. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ar.js ***!
  14230. \***************************************************************/
  14231. /*! no static exports found */
  14232. /***/ (function(module, exports, __webpack_require__) {
  14233. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  14234. //! moment.js locale configuration
  14235. //! locale : Arabic [ar]
  14236. //! author : Abdel Said: https://github.com/abdelsaid
  14237. //! author : Ahmed Elkhatib
  14238. //! author : forabi https://github.com/forabi
  14239. ;
  14240. (function (global, factory) {
  14241. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  14242. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  14243. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  14244. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  14245. })(this, function (moment) {
  14246. 'use strict';
  14247. //! moment.js locale configuration
  14248. var symbolMap = {
  14249. 1: '١',
  14250. 2: '٢',
  14251. 3: '٣',
  14252. 4: '٤',
  14253. 5: '٥',
  14254. 6: '٦',
  14255. 7: '٧',
  14256. 8: '٨',
  14257. 9: '٩',
  14258. 0: '٠'
  14259. },
  14260. numberMap = {
  14261. '١': '1',
  14262. '٢': '2',
  14263. '٣': '3',
  14264. '٤': '4',
  14265. '٥': '5',
  14266. '٦': '6',
  14267. '٧': '7',
  14268. '٨': '8',
  14269. '٩': '9',
  14270. '٠': '0'
  14271. },
  14272. pluralForm = function pluralForm(n) {
  14273. return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
  14274. },
  14275. plurals = {
  14276. s: ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
  14277. m: ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
  14278. h: ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
  14279. d: ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
  14280. M: ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
  14281. y: ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
  14282. },
  14283. pluralize = function pluralize(u) {
  14284. return function (number, withoutSuffix, string, isFuture) {
  14285. var f = pluralForm(number),
  14286. str = plurals[u][pluralForm(number)];
  14287. if (f === 2) {
  14288. str = str[withoutSuffix ? 0 : 1];
  14289. }
  14290. return str.replace(/%d/i, number);
  14291. };
  14292. },
  14293. months = ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'];
  14294. var ar = moment.defineLocale('ar', {
  14295. months: months,
  14296. monthsShort: months,
  14297. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  14298. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  14299. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  14300. weekdaysParseExact: true,
  14301. longDateFormat: {
  14302. LT: 'HH:mm',
  14303. LTS: 'HH:mm:ss',
  14304. L: "D/\u200FM/\u200FYYYY",
  14305. LL: 'D MMMM YYYY',
  14306. LLL: 'D MMMM YYYY HH:mm',
  14307. LLLL: 'dddd D MMMM YYYY HH:mm'
  14308. },
  14309. meridiemParse: /ص|م/,
  14310. isPM: function isPM(input) {
  14311. return 'م' === input;
  14312. },
  14313. meridiem: function meridiem(hour, minute, isLower) {
  14314. if (hour < 12) {
  14315. return 'ص';
  14316. } else {
  14317. return 'م';
  14318. }
  14319. },
  14320. calendar: {
  14321. sameDay: '[اليوم عند الساعة] LT',
  14322. nextDay: '[غدًا عند الساعة] LT',
  14323. nextWeek: 'dddd [عند الساعة] LT',
  14324. lastDay: '[أمس عند الساعة] LT',
  14325. lastWeek: 'dddd [عند الساعة] LT',
  14326. sameElse: 'L'
  14327. },
  14328. relativeTime: {
  14329. future: 'بعد %s',
  14330. past: 'منذ %s',
  14331. s: pluralize('s'),
  14332. ss: pluralize('s'),
  14333. m: pluralize('m'),
  14334. mm: pluralize('m'),
  14335. h: pluralize('h'),
  14336. hh: pluralize('h'),
  14337. d: pluralize('d'),
  14338. dd: pluralize('d'),
  14339. M: pluralize('M'),
  14340. MM: pluralize('M'),
  14341. y: pluralize('y'),
  14342. yy: pluralize('y')
  14343. },
  14344. preparse: function preparse(string) {
  14345. return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  14346. return numberMap[match];
  14347. }).replace(/،/g, ',');
  14348. },
  14349. postformat: function postformat(string) {
  14350. return string.replace(/\d/g, function (match) {
  14351. return symbolMap[match];
  14352. }).replace(/,/g, '،');
  14353. },
  14354. week: {
  14355. dow: 6,
  14356. // Saturday is the first day of the week.
  14357. doy: 12 // The week that contains Jan 12th is the first week of the year.
  14358. }
  14359. });
  14360. return ar;
  14361. });
  14362. /***/ }),
  14363. /* 44 */
  14364. /*!******************************************************************!*\
  14365. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ar-dz.js ***!
  14366. \******************************************************************/
  14367. /*! no static exports found */
  14368. /***/ (function(module, exports, __webpack_require__) {
  14369. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  14370. //! moment.js locale configuration
  14371. //! locale : Arabic (Algeria) [ar-dz]
  14372. //! author : Amine Roukh: https://github.com/Amine27
  14373. //! author : Abdel Said: https://github.com/abdelsaid
  14374. //! author : Ahmed Elkhatib
  14375. //! author : forabi https://github.com/forabi
  14376. //! author : Noureddine LOUAHEDJ : https://github.com/noureddinem
  14377. ;
  14378. (function (global, factory) {
  14379. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  14380. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  14381. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  14382. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  14383. })(this, function (moment) {
  14384. 'use strict';
  14385. //! moment.js locale configuration
  14386. var pluralForm = function pluralForm(n) {
  14387. return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
  14388. },
  14389. plurals = {
  14390. s: ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
  14391. m: ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
  14392. h: ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
  14393. d: ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
  14394. M: ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
  14395. y: ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
  14396. },
  14397. pluralize = function pluralize(u) {
  14398. return function (number, withoutSuffix, string, isFuture) {
  14399. var f = pluralForm(number),
  14400. str = plurals[u][pluralForm(number)];
  14401. if (f === 2) {
  14402. str = str[withoutSuffix ? 0 : 1];
  14403. }
  14404. return str.replace(/%d/i, number);
  14405. };
  14406. },
  14407. months = ['جانفي', 'فيفري', 'مارس', 'أفريل', 'ماي', 'جوان', 'جويلية', 'أوت', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'];
  14408. var arDz = moment.defineLocale('ar-dz', {
  14409. months: months,
  14410. monthsShort: months,
  14411. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  14412. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  14413. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  14414. weekdaysParseExact: true,
  14415. longDateFormat: {
  14416. LT: 'HH:mm',
  14417. LTS: 'HH:mm:ss',
  14418. L: "D/\u200FM/\u200FYYYY",
  14419. LL: 'D MMMM YYYY',
  14420. LLL: 'D MMMM YYYY HH:mm',
  14421. LLLL: 'dddd D MMMM YYYY HH:mm'
  14422. },
  14423. meridiemParse: /ص|م/,
  14424. isPM: function isPM(input) {
  14425. return 'م' === input;
  14426. },
  14427. meridiem: function meridiem(hour, minute, isLower) {
  14428. if (hour < 12) {
  14429. return 'ص';
  14430. } else {
  14431. return 'م';
  14432. }
  14433. },
  14434. calendar: {
  14435. sameDay: '[اليوم عند الساعة] LT',
  14436. nextDay: '[غدًا عند الساعة] LT',
  14437. nextWeek: 'dddd [عند الساعة] LT',
  14438. lastDay: '[أمس عند الساعة] LT',
  14439. lastWeek: 'dddd [عند الساعة] LT',
  14440. sameElse: 'L'
  14441. },
  14442. relativeTime: {
  14443. future: 'بعد %s',
  14444. past: 'منذ %s',
  14445. s: pluralize('s'),
  14446. ss: pluralize('s'),
  14447. m: pluralize('m'),
  14448. mm: pluralize('m'),
  14449. h: pluralize('h'),
  14450. hh: pluralize('h'),
  14451. d: pluralize('d'),
  14452. dd: pluralize('d'),
  14453. M: pluralize('M'),
  14454. MM: pluralize('M'),
  14455. y: pluralize('y'),
  14456. yy: pluralize('y')
  14457. },
  14458. postformat: function postformat(string) {
  14459. return string.replace(/,/g, '،');
  14460. },
  14461. week: {
  14462. dow: 0,
  14463. // Sunday is the first day of the week.
  14464. doy: 4 // The week that contains Jan 4th is the first week of the year.
  14465. }
  14466. });
  14467. return arDz;
  14468. });
  14469. /***/ }),
  14470. /* 45 */
  14471. /*!******************************************************************!*\
  14472. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ar-kw.js ***!
  14473. \******************************************************************/
  14474. /*! no static exports found */
  14475. /***/ (function(module, exports, __webpack_require__) {
  14476. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  14477. //! moment.js locale configuration
  14478. //! locale : Arabic (Kuwait) [ar-kw]
  14479. //! author : Nusret Parlak: https://github.com/nusretparlak
  14480. ;
  14481. (function (global, factory) {
  14482. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  14483. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  14484. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  14485. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  14486. })(this, function (moment) {
  14487. 'use strict';
  14488. //! moment.js locale configuration
  14489. var arKw = moment.defineLocale('ar-kw', {
  14490. months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  14491. monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  14492. weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  14493. weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  14494. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  14495. weekdaysParseExact: true,
  14496. longDateFormat: {
  14497. LT: 'HH:mm',
  14498. LTS: 'HH:mm:ss',
  14499. L: 'DD/MM/YYYY',
  14500. LL: 'D MMMM YYYY',
  14501. LLL: 'D MMMM YYYY HH:mm',
  14502. LLLL: 'dddd D MMMM YYYY HH:mm'
  14503. },
  14504. calendar: {
  14505. sameDay: '[اليوم على الساعة] LT',
  14506. nextDay: '[غدا على الساعة] LT',
  14507. nextWeek: 'dddd [على الساعة] LT',
  14508. lastDay: '[أمس على الساعة] LT',
  14509. lastWeek: 'dddd [على الساعة] LT',
  14510. sameElse: 'L'
  14511. },
  14512. relativeTime: {
  14513. future: 'في %s',
  14514. past: 'منذ %s',
  14515. s: 'ثوان',
  14516. ss: '%d ثانية',
  14517. m: 'دقيقة',
  14518. mm: '%d دقائق',
  14519. h: 'ساعة',
  14520. hh: '%d ساعات',
  14521. d: 'يوم',
  14522. dd: '%d أيام',
  14523. M: 'شهر',
  14524. MM: '%d أشهر',
  14525. y: 'سنة',
  14526. yy: '%d سنوات'
  14527. },
  14528. week: {
  14529. dow: 0,
  14530. // Sunday is the first day of the week.
  14531. doy: 12 // The week that contains Jan 12th is the first week of the year.
  14532. }
  14533. });
  14534. return arKw;
  14535. });
  14536. /***/ }),
  14537. /* 46 */
  14538. /*!******************************************************************!*\
  14539. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ar-ly.js ***!
  14540. \******************************************************************/
  14541. /*! no static exports found */
  14542. /***/ (function(module, exports, __webpack_require__) {
  14543. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  14544. //! moment.js locale configuration
  14545. //! locale : Arabic (Libya) [ar-ly]
  14546. //! author : Ali Hmer: https://github.com/kikoanis
  14547. ;
  14548. (function (global, factory) {
  14549. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  14550. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  14551. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  14552. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  14553. })(this, function (moment) {
  14554. 'use strict';
  14555. //! moment.js locale configuration
  14556. var symbolMap = {
  14557. 1: '1',
  14558. 2: '2',
  14559. 3: '3',
  14560. 4: '4',
  14561. 5: '5',
  14562. 6: '6',
  14563. 7: '7',
  14564. 8: '8',
  14565. 9: '9',
  14566. 0: '0'
  14567. },
  14568. pluralForm = function pluralForm(n) {
  14569. return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
  14570. },
  14571. plurals = {
  14572. s: ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
  14573. m: ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
  14574. h: ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
  14575. d: ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
  14576. M: ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
  14577. y: ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
  14578. },
  14579. pluralize = function pluralize(u) {
  14580. return function (number, withoutSuffix, string, isFuture) {
  14581. var f = pluralForm(number),
  14582. str = plurals[u][pluralForm(number)];
  14583. if (f === 2) {
  14584. str = str[withoutSuffix ? 0 : 1];
  14585. }
  14586. return str.replace(/%d/i, number);
  14587. };
  14588. },
  14589. months = ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'];
  14590. var arLy = moment.defineLocale('ar-ly', {
  14591. months: months,
  14592. monthsShort: months,
  14593. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  14594. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  14595. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  14596. weekdaysParseExact: true,
  14597. longDateFormat: {
  14598. LT: 'HH:mm',
  14599. LTS: 'HH:mm:ss',
  14600. L: "D/\u200FM/\u200FYYYY",
  14601. LL: 'D MMMM YYYY',
  14602. LLL: 'D MMMM YYYY HH:mm',
  14603. LLLL: 'dddd D MMMM YYYY HH:mm'
  14604. },
  14605. meridiemParse: /ص|م/,
  14606. isPM: function isPM(input) {
  14607. return 'م' === input;
  14608. },
  14609. meridiem: function meridiem(hour, minute, isLower) {
  14610. if (hour < 12) {
  14611. return 'ص';
  14612. } else {
  14613. return 'م';
  14614. }
  14615. },
  14616. calendar: {
  14617. sameDay: '[اليوم عند الساعة] LT',
  14618. nextDay: '[غدًا عند الساعة] LT',
  14619. nextWeek: 'dddd [عند الساعة] LT',
  14620. lastDay: '[أمس عند الساعة] LT',
  14621. lastWeek: 'dddd [عند الساعة] LT',
  14622. sameElse: 'L'
  14623. },
  14624. relativeTime: {
  14625. future: 'بعد %s',
  14626. past: 'منذ %s',
  14627. s: pluralize('s'),
  14628. ss: pluralize('s'),
  14629. m: pluralize('m'),
  14630. mm: pluralize('m'),
  14631. h: pluralize('h'),
  14632. hh: pluralize('h'),
  14633. d: pluralize('d'),
  14634. dd: pluralize('d'),
  14635. M: pluralize('M'),
  14636. MM: pluralize('M'),
  14637. y: pluralize('y'),
  14638. yy: pluralize('y')
  14639. },
  14640. preparse: function preparse(string) {
  14641. return string.replace(/،/g, ',');
  14642. },
  14643. postformat: function postformat(string) {
  14644. return string.replace(/\d/g, function (match) {
  14645. return symbolMap[match];
  14646. }).replace(/,/g, '،');
  14647. },
  14648. week: {
  14649. dow: 6,
  14650. // Saturday is the first day of the week.
  14651. doy: 12 // The week that contains Jan 12th is the first week of the year.
  14652. }
  14653. });
  14654. return arLy;
  14655. });
  14656. /***/ }),
  14657. /* 47 */
  14658. /*!******************************************************************!*\
  14659. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ar-ma.js ***!
  14660. \******************************************************************/
  14661. /*! no static exports found */
  14662. /***/ (function(module, exports, __webpack_require__) {
  14663. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  14664. //! moment.js locale configuration
  14665. //! locale : Arabic (Morocco) [ar-ma]
  14666. //! author : ElFadili Yassine : https://github.com/ElFadiliY
  14667. //! author : Abdel Said : https://github.com/abdelsaid
  14668. ;
  14669. (function (global, factory) {
  14670. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  14671. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  14672. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  14673. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  14674. })(this, function (moment) {
  14675. 'use strict';
  14676. //! moment.js locale configuration
  14677. var arMa = moment.defineLocale('ar-ma', {
  14678. months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  14679. monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  14680. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  14681. weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  14682. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  14683. weekdaysParseExact: true,
  14684. longDateFormat: {
  14685. LT: 'HH:mm',
  14686. LTS: 'HH:mm:ss',
  14687. L: 'DD/MM/YYYY',
  14688. LL: 'D MMMM YYYY',
  14689. LLL: 'D MMMM YYYY HH:mm',
  14690. LLLL: 'dddd D MMMM YYYY HH:mm'
  14691. },
  14692. calendar: {
  14693. sameDay: '[اليوم على الساعة] LT',
  14694. nextDay: '[غدا على الساعة] LT',
  14695. nextWeek: 'dddd [على الساعة] LT',
  14696. lastDay: '[أمس على الساعة] LT',
  14697. lastWeek: 'dddd [على الساعة] LT',
  14698. sameElse: 'L'
  14699. },
  14700. relativeTime: {
  14701. future: 'في %s',
  14702. past: 'منذ %s',
  14703. s: 'ثوان',
  14704. ss: '%d ثانية',
  14705. m: 'دقيقة',
  14706. mm: '%d دقائق',
  14707. h: 'ساعة',
  14708. hh: '%d ساعات',
  14709. d: 'يوم',
  14710. dd: '%d أيام',
  14711. M: 'شهر',
  14712. MM: '%d أشهر',
  14713. y: 'سنة',
  14714. yy: '%d سنوات'
  14715. },
  14716. week: {
  14717. dow: 1,
  14718. // Monday is the first day of the week.
  14719. doy: 4 // The week that contains Jan 4th is the first week of the year.
  14720. }
  14721. });
  14722. return arMa;
  14723. });
  14724. /***/ }),
  14725. /* 48 */
  14726. /*!******************************************************************!*\
  14727. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ar-sa.js ***!
  14728. \******************************************************************/
  14729. /*! no static exports found */
  14730. /***/ (function(module, exports, __webpack_require__) {
  14731. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  14732. //! moment.js locale configuration
  14733. //! locale : Arabic (Saudi Arabia) [ar-sa]
  14734. //! author : Suhail Alkowaileet : https://github.com/xsoh
  14735. ;
  14736. (function (global, factory) {
  14737. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  14738. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  14739. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  14740. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  14741. })(this, function (moment) {
  14742. 'use strict';
  14743. //! moment.js locale configuration
  14744. var symbolMap = {
  14745. 1: '١',
  14746. 2: '٢',
  14747. 3: '٣',
  14748. 4: '٤',
  14749. 5: '٥',
  14750. 6: '٦',
  14751. 7: '٧',
  14752. 8: '٨',
  14753. 9: '٩',
  14754. 0: '٠'
  14755. },
  14756. numberMap = {
  14757. '١': '1',
  14758. '٢': '2',
  14759. '٣': '3',
  14760. '٤': '4',
  14761. '٥': '5',
  14762. '٦': '6',
  14763. '٧': '7',
  14764. '٨': '8',
  14765. '٩': '9',
  14766. '٠': '0'
  14767. };
  14768. var arSa = moment.defineLocale('ar-sa', {
  14769. months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  14770. monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  14771. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  14772. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  14773. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  14774. weekdaysParseExact: true,
  14775. longDateFormat: {
  14776. LT: 'HH:mm',
  14777. LTS: 'HH:mm:ss',
  14778. L: 'DD/MM/YYYY',
  14779. LL: 'D MMMM YYYY',
  14780. LLL: 'D MMMM YYYY HH:mm',
  14781. LLLL: 'dddd D MMMM YYYY HH:mm'
  14782. },
  14783. meridiemParse: /ص|م/,
  14784. isPM: function isPM(input) {
  14785. return 'م' === input;
  14786. },
  14787. meridiem: function meridiem(hour, minute, isLower) {
  14788. if (hour < 12) {
  14789. return 'ص';
  14790. } else {
  14791. return 'م';
  14792. }
  14793. },
  14794. calendar: {
  14795. sameDay: '[اليوم على الساعة] LT',
  14796. nextDay: '[غدا على الساعة] LT',
  14797. nextWeek: 'dddd [على الساعة] LT',
  14798. lastDay: '[أمس على الساعة] LT',
  14799. lastWeek: 'dddd [على الساعة] LT',
  14800. sameElse: 'L'
  14801. },
  14802. relativeTime: {
  14803. future: 'في %s',
  14804. past: 'منذ %s',
  14805. s: 'ثوان',
  14806. ss: '%d ثانية',
  14807. m: 'دقيقة',
  14808. mm: '%d دقائق',
  14809. h: 'ساعة',
  14810. hh: '%d ساعات',
  14811. d: 'يوم',
  14812. dd: '%d أيام',
  14813. M: 'شهر',
  14814. MM: '%d أشهر',
  14815. y: 'سنة',
  14816. yy: '%d سنوات'
  14817. },
  14818. preparse: function preparse(string) {
  14819. return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  14820. return numberMap[match];
  14821. }).replace(/،/g, ',');
  14822. },
  14823. postformat: function postformat(string) {
  14824. return string.replace(/\d/g, function (match) {
  14825. return symbolMap[match];
  14826. }).replace(/,/g, '،');
  14827. },
  14828. week: {
  14829. dow: 0,
  14830. // Sunday is the first day of the week.
  14831. doy: 6 // The week that contains Jan 6th is the first week of the year.
  14832. }
  14833. });
  14834. return arSa;
  14835. });
  14836. /***/ }),
  14837. /* 49 */
  14838. /*!******************************************************************!*\
  14839. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ar-tn.js ***!
  14840. \******************************************************************/
  14841. /*! no static exports found */
  14842. /***/ (function(module, exports, __webpack_require__) {
  14843. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  14844. //! moment.js locale configuration
  14845. //! locale : Arabic (Tunisia) [ar-tn]
  14846. //! author : Nader Toukabri : https://github.com/naderio
  14847. ;
  14848. (function (global, factory) {
  14849. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  14850. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  14851. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  14852. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  14853. })(this, function (moment) {
  14854. 'use strict';
  14855. //! moment.js locale configuration
  14856. var arTn = moment.defineLocale('ar-tn', {
  14857. months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  14858. monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  14859. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  14860. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  14861. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  14862. weekdaysParseExact: true,
  14863. longDateFormat: {
  14864. LT: 'HH:mm',
  14865. LTS: 'HH:mm:ss',
  14866. L: 'DD/MM/YYYY',
  14867. LL: 'D MMMM YYYY',
  14868. LLL: 'D MMMM YYYY HH:mm',
  14869. LLLL: 'dddd D MMMM YYYY HH:mm'
  14870. },
  14871. calendar: {
  14872. sameDay: '[اليوم على الساعة] LT',
  14873. nextDay: '[غدا على الساعة] LT',
  14874. nextWeek: 'dddd [على الساعة] LT',
  14875. lastDay: '[أمس على الساعة] LT',
  14876. lastWeek: 'dddd [على الساعة] LT',
  14877. sameElse: 'L'
  14878. },
  14879. relativeTime: {
  14880. future: 'في %s',
  14881. past: 'منذ %s',
  14882. s: 'ثوان',
  14883. ss: '%d ثانية',
  14884. m: 'دقيقة',
  14885. mm: '%d دقائق',
  14886. h: 'ساعة',
  14887. hh: '%d ساعات',
  14888. d: 'يوم',
  14889. dd: '%d أيام',
  14890. M: 'شهر',
  14891. MM: '%d أشهر',
  14892. y: 'سنة',
  14893. yy: '%d سنوات'
  14894. },
  14895. week: {
  14896. dow: 1,
  14897. // Monday is the first day of the week.
  14898. doy: 4 // The week that contains Jan 4th is the first week of the year.
  14899. }
  14900. });
  14901. return arTn;
  14902. });
  14903. /***/ }),
  14904. /* 50 */
  14905. /*!***************************************************************!*\
  14906. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/az.js ***!
  14907. \***************************************************************/
  14908. /*! no static exports found */
  14909. /***/ (function(module, exports, __webpack_require__) {
  14910. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  14911. //! moment.js locale configuration
  14912. //! locale : Azerbaijani [az]
  14913. //! author : topchiyev : https://github.com/topchiyev
  14914. ;
  14915. (function (global, factory) {
  14916. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  14917. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  14918. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  14919. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  14920. })(this, function (moment) {
  14921. 'use strict';
  14922. //! moment.js locale configuration
  14923. var suffixes = {
  14924. 1: '-inci',
  14925. 5: '-inci',
  14926. 8: '-inci',
  14927. 70: '-inci',
  14928. 80: '-inci',
  14929. 2: '-nci',
  14930. 7: '-nci',
  14931. 20: '-nci',
  14932. 50: '-nci',
  14933. 3: '-üncü',
  14934. 4: '-üncü',
  14935. 100: '-üncü',
  14936. 6: '-ncı',
  14937. 9: '-uncu',
  14938. 10: '-uncu',
  14939. 30: '-uncu',
  14940. 60: '-ıncı',
  14941. 90: '-ıncı'
  14942. };
  14943. var az = moment.defineLocale('az', {
  14944. months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),
  14945. monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
  14946. weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),
  14947. weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
  14948. weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
  14949. weekdaysParseExact: true,
  14950. longDateFormat: {
  14951. LT: 'HH:mm',
  14952. LTS: 'HH:mm:ss',
  14953. L: 'DD.MM.YYYY',
  14954. LL: 'D MMMM YYYY',
  14955. LLL: 'D MMMM YYYY HH:mm',
  14956. LLLL: 'dddd, D MMMM YYYY HH:mm'
  14957. },
  14958. calendar: {
  14959. sameDay: '[bugün saat] LT',
  14960. nextDay: '[sabah saat] LT',
  14961. nextWeek: '[gələn həftə] dddd [saat] LT',
  14962. lastDay: '[dünən] LT',
  14963. lastWeek: '[keçən həftə] dddd [saat] LT',
  14964. sameElse: 'L'
  14965. },
  14966. relativeTime: {
  14967. future: '%s sonra',
  14968. past: '%s əvvəl',
  14969. s: 'bir neçə saniyə',
  14970. ss: '%d saniyə',
  14971. m: 'bir dəqiqə',
  14972. mm: '%d dəqiqə',
  14973. h: 'bir saat',
  14974. hh: '%d saat',
  14975. d: 'bir gün',
  14976. dd: '%d gün',
  14977. M: 'bir ay',
  14978. MM: '%d ay',
  14979. y: 'bir il',
  14980. yy: '%d il'
  14981. },
  14982. meridiemParse: /gecə|səhər|gündüz|axşam/,
  14983. isPM: function isPM(input) {
  14984. return /^(gündüz|axşam)$/.test(input);
  14985. },
  14986. meridiem: function meridiem(hour, minute, isLower) {
  14987. if (hour < 4) {
  14988. return 'gecə';
  14989. } else if (hour < 12) {
  14990. return 'səhər';
  14991. } else if (hour < 17) {
  14992. return 'gündüz';
  14993. } else {
  14994. return 'axşam';
  14995. }
  14996. },
  14997. dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
  14998. ordinal: function ordinal(number) {
  14999. if (number === 0) {
  15000. // special case for zero
  15001. return number + '-ıncı';
  15002. }
  15003. var a = number % 10,
  15004. b = number % 100 - a,
  15005. c = number >= 100 ? 100 : null;
  15006. return number + (suffixes[a] || suffixes[b] || suffixes[c]);
  15007. },
  15008. week: {
  15009. dow: 1,
  15010. // Monday is the first day of the week.
  15011. doy: 7 // The week that contains Jan 7th is the first week of the year.
  15012. }
  15013. });
  15014. return az;
  15015. });
  15016. /***/ }),
  15017. /* 51 */
  15018. /*!***************************************************************!*\
  15019. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/be.js ***!
  15020. \***************************************************************/
  15021. /*! no static exports found */
  15022. /***/ (function(module, exports, __webpack_require__) {
  15023. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  15024. //! moment.js locale configuration
  15025. //! locale : Belarusian [be]
  15026. //! author : Dmitry Demidov : https://github.com/demidov91
  15027. //! author: Praleska: http://praleska.pro/
  15028. //! Author : Menelion Elensúle : https://github.com/Oire
  15029. ;
  15030. (function (global, factory) {
  15031. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  15032. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  15033. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  15034. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  15035. })(this, function (moment) {
  15036. 'use strict';
  15037. //! moment.js locale configuration
  15038. function plural(word, num) {
  15039. var forms = word.split('_');
  15040. return num % 10 === 1 && num % 100 !== 11 ? forms[0] : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2];
  15041. }
  15042. function relativeTimeWithPlural(number, withoutSuffix, key) {
  15043. var format = {
  15044. ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
  15045. mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
  15046. hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
  15047. dd: 'дзень_дні_дзён',
  15048. MM: 'месяц_месяцы_месяцаў',
  15049. yy: 'год_гады_гадоў'
  15050. };
  15051. if (key === 'm') {
  15052. return withoutSuffix ? 'хвіліна' : 'хвіліну';
  15053. } else if (key === 'h') {
  15054. return withoutSuffix ? 'гадзіна' : 'гадзіну';
  15055. } else {
  15056. return number + ' ' + plural(format[key], +number);
  15057. }
  15058. }
  15059. var be = moment.defineLocale('be', {
  15060. months: {
  15061. format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'),
  15062. standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_')
  15063. },
  15064. monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
  15065. weekdays: {
  15066. format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'),
  15067. standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
  15068. isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/
  15069. },
  15070. weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  15071. weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  15072. longDateFormat: {
  15073. LT: 'HH:mm',
  15074. LTS: 'HH:mm:ss',
  15075. L: 'DD.MM.YYYY',
  15076. LL: 'D MMMM YYYY г.',
  15077. LLL: 'D MMMM YYYY г., HH:mm',
  15078. LLLL: 'dddd, D MMMM YYYY г., HH:mm'
  15079. },
  15080. calendar: {
  15081. sameDay: '[Сёння ў] LT',
  15082. nextDay: '[Заўтра ў] LT',
  15083. lastDay: '[Учора ў] LT',
  15084. nextWeek: function nextWeek() {
  15085. return '[У] dddd [ў] LT';
  15086. },
  15087. lastWeek: function lastWeek() {
  15088. switch (this.day()) {
  15089. case 0:
  15090. case 3:
  15091. case 5:
  15092. case 6:
  15093. return '[У мінулую] dddd [ў] LT';
  15094. case 1:
  15095. case 2:
  15096. case 4:
  15097. return '[У мінулы] dddd [ў] LT';
  15098. }
  15099. },
  15100. sameElse: 'L'
  15101. },
  15102. relativeTime: {
  15103. future: 'праз %s',
  15104. past: '%s таму',
  15105. s: 'некалькі секунд',
  15106. m: relativeTimeWithPlural,
  15107. mm: relativeTimeWithPlural,
  15108. h: relativeTimeWithPlural,
  15109. hh: relativeTimeWithPlural,
  15110. d: 'дзень',
  15111. dd: relativeTimeWithPlural,
  15112. M: 'месяц',
  15113. MM: relativeTimeWithPlural,
  15114. y: 'год',
  15115. yy: relativeTimeWithPlural
  15116. },
  15117. meridiemParse: /ночы|раніцы|дня|вечара/,
  15118. isPM: function isPM(input) {
  15119. return /^(дня|вечара)$/.test(input);
  15120. },
  15121. meridiem: function meridiem(hour, minute, isLower) {
  15122. if (hour < 4) {
  15123. return 'ночы';
  15124. } else if (hour < 12) {
  15125. return 'раніцы';
  15126. } else if (hour < 17) {
  15127. return 'дня';
  15128. } else {
  15129. return 'вечара';
  15130. }
  15131. },
  15132. dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
  15133. ordinal: function ordinal(number, period) {
  15134. switch (period) {
  15135. case 'M':
  15136. case 'd':
  15137. case 'DDD':
  15138. case 'w':
  15139. case 'W':
  15140. return (number % 10 === 2 || number % 10 === 3) && number % 100 !== 12 && number % 100 !== 13 ? number + '-і' : number + '-ы';
  15141. case 'D':
  15142. return number + '-га';
  15143. default:
  15144. return number;
  15145. }
  15146. },
  15147. week: {
  15148. dow: 1,
  15149. // Monday is the first day of the week.
  15150. doy: 7 // The week that contains Jan 7th is the first week of the year.
  15151. }
  15152. });
  15153. return be;
  15154. });
  15155. /***/ }),
  15156. /* 52 */
  15157. /*!***************************************************************!*\
  15158. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/bg.js ***!
  15159. \***************************************************************/
  15160. /*! no static exports found */
  15161. /***/ (function(module, exports, __webpack_require__) {
  15162. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  15163. //! moment.js locale configuration
  15164. //! locale : Bulgarian [bg]
  15165. //! author : Krasen Borisov : https://github.com/kraz
  15166. ;
  15167. (function (global, factory) {
  15168. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  15169. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  15170. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  15171. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  15172. })(this, function (moment) {
  15173. 'use strict';
  15174. //! moment.js locale configuration
  15175. var bg = moment.defineLocale('bg', {
  15176. months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),
  15177. monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
  15178. weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'),
  15179. weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
  15180. weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  15181. longDateFormat: {
  15182. LT: 'H:mm',
  15183. LTS: 'H:mm:ss',
  15184. L: 'D.MM.YYYY',
  15185. LL: 'D MMMM YYYY',
  15186. LLL: 'D MMMM YYYY H:mm',
  15187. LLLL: 'dddd, D MMMM YYYY H:mm'
  15188. },
  15189. calendar: {
  15190. sameDay: '[Днес в] LT',
  15191. nextDay: '[Утре в] LT',
  15192. nextWeek: 'dddd [в] LT',
  15193. lastDay: '[Вчера в] LT',
  15194. lastWeek: function lastWeek() {
  15195. switch (this.day()) {
  15196. case 0:
  15197. case 3:
  15198. case 6:
  15199. return '[Миналата] dddd [в] LT';
  15200. case 1:
  15201. case 2:
  15202. case 4:
  15203. case 5:
  15204. return '[Миналия] dddd [в] LT';
  15205. }
  15206. },
  15207. sameElse: 'L'
  15208. },
  15209. relativeTime: {
  15210. future: 'след %s',
  15211. past: 'преди %s',
  15212. s: 'няколко секунди',
  15213. ss: '%d секунди',
  15214. m: 'минута',
  15215. mm: '%d минути',
  15216. h: 'час',
  15217. hh: '%d часа',
  15218. d: 'ден',
  15219. dd: '%d дена',
  15220. w: 'седмица',
  15221. ww: '%d седмици',
  15222. M: 'месец',
  15223. MM: '%d месеца',
  15224. y: 'година',
  15225. yy: '%d години'
  15226. },
  15227. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  15228. ordinal: function ordinal(number) {
  15229. var lastDigit = number % 10,
  15230. last2Digits = number % 100;
  15231. if (number === 0) {
  15232. return number + '-ев';
  15233. } else if (last2Digits === 0) {
  15234. return number + '-ен';
  15235. } else if (last2Digits > 10 && last2Digits < 20) {
  15236. return number + '-ти';
  15237. } else if (lastDigit === 1) {
  15238. return number + '-ви';
  15239. } else if (lastDigit === 2) {
  15240. return number + '-ри';
  15241. } else if (lastDigit === 7 || lastDigit === 8) {
  15242. return number + '-ми';
  15243. } else {
  15244. return number + '-ти';
  15245. }
  15246. },
  15247. week: {
  15248. dow: 1,
  15249. // Monday is the first day of the week.
  15250. doy: 7 // The week that contains Jan 7th is the first week of the year.
  15251. }
  15252. });
  15253. return bg;
  15254. });
  15255. /***/ }),
  15256. /* 53 */
  15257. /*!***************************************************************!*\
  15258. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/bm.js ***!
  15259. \***************************************************************/
  15260. /*! no static exports found */
  15261. /***/ (function(module, exports, __webpack_require__) {
  15262. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  15263. //! moment.js locale configuration
  15264. //! locale : Bambara [bm]
  15265. //! author : Estelle Comment : https://github.com/estellecomment
  15266. ;
  15267. (function (global, factory) {
  15268. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  15269. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  15270. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  15271. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  15272. })(this, function (moment) {
  15273. 'use strict';
  15274. //! moment.js locale configuration
  15275. var bm = moment.defineLocale('bm', {
  15276. months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split('_'),
  15277. monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
  15278. weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
  15279. weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
  15280. weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
  15281. longDateFormat: {
  15282. LT: 'HH:mm',
  15283. LTS: 'HH:mm:ss',
  15284. L: 'DD/MM/YYYY',
  15285. LL: 'MMMM [tile] D [san] YYYY',
  15286. LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
  15287. LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm'
  15288. },
  15289. calendar: {
  15290. sameDay: '[Bi lɛrɛ] LT',
  15291. nextDay: '[Sini lɛrɛ] LT',
  15292. nextWeek: 'dddd [don lɛrɛ] LT',
  15293. lastDay: '[Kunu lɛrɛ] LT',
  15294. lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT',
  15295. sameElse: 'L'
  15296. },
  15297. relativeTime: {
  15298. future: '%s kɔnɔ',
  15299. past: 'a bɛ %s bɔ',
  15300. s: 'sanga dama dama',
  15301. ss: 'sekondi %d',
  15302. m: 'miniti kelen',
  15303. mm: 'miniti %d',
  15304. h: 'lɛrɛ kelen',
  15305. hh: 'lɛrɛ %d',
  15306. d: 'tile kelen',
  15307. dd: 'tile %d',
  15308. M: 'kalo kelen',
  15309. MM: 'kalo %d',
  15310. y: 'san kelen',
  15311. yy: 'san %d'
  15312. },
  15313. week: {
  15314. dow: 1,
  15315. // Monday is the first day of the week.
  15316. doy: 4 // The week that contains Jan 4th is the first week of the year.
  15317. }
  15318. });
  15319. return bm;
  15320. });
  15321. /***/ }),
  15322. /* 54 */
  15323. /*!***************************************************************!*\
  15324. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/bn.js ***!
  15325. \***************************************************************/
  15326. /*! no static exports found */
  15327. /***/ (function(module, exports, __webpack_require__) {
  15328. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  15329. //! moment.js locale configuration
  15330. //! locale : Bengali [bn]
  15331. //! author : Kaushik Gandhi : https://github.com/kaushikgandhi
  15332. ;
  15333. (function (global, factory) {
  15334. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  15335. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  15336. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  15337. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  15338. })(this, function (moment) {
  15339. 'use strict';
  15340. //! moment.js locale configuration
  15341. var symbolMap = {
  15342. 1: '১',
  15343. 2: '২',
  15344. 3: '৩',
  15345. 4: '৪',
  15346. 5: '৫',
  15347. 6: '৬',
  15348. 7: '৭',
  15349. 8: '৮',
  15350. 9: '৯',
  15351. 0: '০'
  15352. },
  15353. numberMap = {
  15354. '১': '1',
  15355. '২': '2',
  15356. '৩': '3',
  15357. '৪': '4',
  15358. '৫': '5',
  15359. '৬': '6',
  15360. '৭': '7',
  15361. '৮': '8',
  15362. '৯': '9',
  15363. '০': '0'
  15364. };
  15365. var bn = moment.defineLocale('bn', {
  15366. months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
  15367. monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),
  15368. weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),
  15369. weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
  15370. weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
  15371. longDateFormat: {
  15372. LT: 'A h:mm সময়',
  15373. LTS: 'A h:mm:ss সময়',
  15374. L: 'DD/MM/YYYY',
  15375. LL: 'D MMMM YYYY',
  15376. LLL: 'D MMMM YYYY, A h:mm সময়',
  15377. LLLL: 'dddd, D MMMM YYYY, A h:mm সময়'
  15378. },
  15379. calendar: {
  15380. sameDay: '[আজ] LT',
  15381. nextDay: '[আগামীকাল] LT',
  15382. nextWeek: 'dddd, LT',
  15383. lastDay: '[গতকাল] LT',
  15384. lastWeek: '[গত] dddd, LT',
  15385. sameElse: 'L'
  15386. },
  15387. relativeTime: {
  15388. future: '%s পরে',
  15389. past: '%s আগে',
  15390. s: 'কয়েক সেকেন্ড',
  15391. ss: '%d সেকেন্ড',
  15392. m: 'এক মিনিট',
  15393. mm: '%d মিনিট',
  15394. h: 'এক ঘন্টা',
  15395. hh: '%d ঘন্টা',
  15396. d: 'এক দিন',
  15397. dd: '%d দিন',
  15398. M: 'এক মাস',
  15399. MM: '%d মাস',
  15400. y: 'এক বছর',
  15401. yy: '%d বছর'
  15402. },
  15403. preparse: function preparse(string) {
  15404. return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
  15405. return numberMap[match];
  15406. });
  15407. },
  15408. postformat: function postformat(string) {
  15409. return string.replace(/\d/g, function (match) {
  15410. return symbolMap[match];
  15411. });
  15412. },
  15413. meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
  15414. meridiemHour: function meridiemHour(hour, meridiem) {
  15415. if (hour === 12) {
  15416. hour = 0;
  15417. }
  15418. if (meridiem === 'রাত' && hour >= 4 || meridiem === 'দুপুর' && hour < 5 || meridiem === 'বিকাল') {
  15419. return hour + 12;
  15420. } else {
  15421. return hour;
  15422. }
  15423. },
  15424. meridiem: function meridiem(hour, minute, isLower) {
  15425. if (hour < 4) {
  15426. return 'রাত';
  15427. } else if (hour < 10) {
  15428. return 'সকাল';
  15429. } else if (hour < 17) {
  15430. return 'দুপুর';
  15431. } else if (hour < 20) {
  15432. return 'বিকাল';
  15433. } else {
  15434. return 'রাত';
  15435. }
  15436. },
  15437. week: {
  15438. dow: 0,
  15439. // Sunday is the first day of the week.
  15440. doy: 6 // The week that contains Jan 6th is the first week of the year.
  15441. }
  15442. });
  15443. return bn;
  15444. });
  15445. /***/ }),
  15446. /* 55 */
  15447. /*!******************************************************************!*\
  15448. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/bn-bd.js ***!
  15449. \******************************************************************/
  15450. /*! no static exports found */
  15451. /***/ (function(module, exports, __webpack_require__) {
  15452. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  15453. //! moment.js locale configuration
  15454. //! locale : Bengali (Bangladesh) [bn-bd]
  15455. //! author : Asraf Hossain Patoary : https://github.com/ashwoolford
  15456. ;
  15457. (function (global, factory) {
  15458. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  15459. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  15460. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  15461. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  15462. })(this, function (moment) {
  15463. 'use strict';
  15464. //! moment.js locale configuration
  15465. var symbolMap = {
  15466. 1: '১',
  15467. 2: '২',
  15468. 3: '৩',
  15469. 4: '৪',
  15470. 5: '৫',
  15471. 6: '৬',
  15472. 7: '৭',
  15473. 8: '৮',
  15474. 9: '৯',
  15475. 0: '০'
  15476. },
  15477. numberMap = {
  15478. '১': '1',
  15479. '২': '2',
  15480. '৩': '3',
  15481. '৪': '4',
  15482. '৫': '5',
  15483. '৬': '6',
  15484. '৭': '7',
  15485. '৮': '8',
  15486. '৯': '9',
  15487. '০': '0'
  15488. };
  15489. var bnBd = moment.defineLocale('bn-bd', {
  15490. months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
  15491. monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),
  15492. weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),
  15493. weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
  15494. weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
  15495. longDateFormat: {
  15496. LT: 'A h:mm সময়',
  15497. LTS: 'A h:mm:ss সময়',
  15498. L: 'DD/MM/YYYY',
  15499. LL: 'D MMMM YYYY',
  15500. LLL: 'D MMMM YYYY, A h:mm সময়',
  15501. LLLL: 'dddd, D MMMM YYYY, A h:mm সময়'
  15502. },
  15503. calendar: {
  15504. sameDay: '[আজ] LT',
  15505. nextDay: '[আগামীকাল] LT',
  15506. nextWeek: 'dddd, LT',
  15507. lastDay: '[গতকাল] LT',
  15508. lastWeek: '[গত] dddd, LT',
  15509. sameElse: 'L'
  15510. },
  15511. relativeTime: {
  15512. future: '%s পরে',
  15513. past: '%s আগে',
  15514. s: 'কয়েক সেকেন্ড',
  15515. ss: '%d সেকেন্ড',
  15516. m: 'এক মিনিট',
  15517. mm: '%d মিনিট',
  15518. h: 'এক ঘন্টা',
  15519. hh: '%d ঘন্টা',
  15520. d: 'এক দিন',
  15521. dd: '%d দিন',
  15522. M: 'এক মাস',
  15523. MM: '%d মাস',
  15524. y: 'এক বছর',
  15525. yy: '%d বছর'
  15526. },
  15527. preparse: function preparse(string) {
  15528. return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
  15529. return numberMap[match];
  15530. });
  15531. },
  15532. postformat: function postformat(string) {
  15533. return string.replace(/\d/g, function (match) {
  15534. return symbolMap[match];
  15535. });
  15536. },
  15537. meridiemParse: /রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,
  15538. meridiemHour: function meridiemHour(hour, meridiem) {
  15539. if (hour === 12) {
  15540. hour = 0;
  15541. }
  15542. if (meridiem === 'রাত') {
  15543. return hour < 4 ? hour : hour + 12;
  15544. } else if (meridiem === 'ভোর') {
  15545. return hour;
  15546. } else if (meridiem === 'সকাল') {
  15547. return hour;
  15548. } else if (meridiem === 'দুপুর') {
  15549. return hour >= 3 ? hour : hour + 12;
  15550. } else if (meridiem === 'বিকাল') {
  15551. return hour + 12;
  15552. } else if (meridiem === 'সন্ধ্যা') {
  15553. return hour + 12;
  15554. }
  15555. },
  15556. meridiem: function meridiem(hour, minute, isLower) {
  15557. if (hour < 4) {
  15558. return 'রাত';
  15559. } else if (hour < 6) {
  15560. return 'ভোর';
  15561. } else if (hour < 12) {
  15562. return 'সকাল';
  15563. } else if (hour < 15) {
  15564. return 'দুপুর';
  15565. } else if (hour < 18) {
  15566. return 'বিকাল';
  15567. } else if (hour < 20) {
  15568. return 'সন্ধ্যা';
  15569. } else {
  15570. return 'রাত';
  15571. }
  15572. },
  15573. week: {
  15574. dow: 0,
  15575. // Sunday is the first day of the week.
  15576. doy: 6 // The week that contains Jan 6th is the first week of the year.
  15577. }
  15578. });
  15579. return bnBd;
  15580. });
  15581. /***/ }),
  15582. /* 56 */
  15583. /*!***************************************************************!*\
  15584. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/bo.js ***!
  15585. \***************************************************************/
  15586. /*! no static exports found */
  15587. /***/ (function(module, exports, __webpack_require__) {
  15588. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  15589. //! moment.js locale configuration
  15590. //! locale : Tibetan [bo]
  15591. //! author : Thupten N. Chakrishar : https://github.com/vajradog
  15592. ;
  15593. (function (global, factory) {
  15594. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  15595. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  15596. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  15597. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  15598. })(this, function (moment) {
  15599. 'use strict';
  15600. //! moment.js locale configuration
  15601. var symbolMap = {
  15602. 1: '༡',
  15603. 2: '༢',
  15604. 3: '༣',
  15605. 4: '༤',
  15606. 5: '༥',
  15607. 6: '༦',
  15608. 7: '༧',
  15609. 8: '༨',
  15610. 9: '༩',
  15611. 0: '༠'
  15612. },
  15613. numberMap = {
  15614. '༡': '1',
  15615. '༢': '2',
  15616. '༣': '3',
  15617. '༤': '4',
  15618. '༥': '5',
  15619. '༦': '6',
  15620. '༧': '7',
  15621. '༨': '8',
  15622. '༩': '9',
  15623. '༠': '0'
  15624. };
  15625. var bo = moment.defineLocale('bo', {
  15626. months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
  15627. monthsShort: 'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split('_'),
  15628. monthsShortRegex: /^(ཟླ་\d{1,2})/,
  15629. monthsParseExact: true,
  15630. weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),
  15631. weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
  15632. weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'),
  15633. longDateFormat: {
  15634. LT: 'A h:mm',
  15635. LTS: 'A h:mm:ss',
  15636. L: 'DD/MM/YYYY',
  15637. LL: 'D MMMM YYYY',
  15638. LLL: 'D MMMM YYYY, A h:mm',
  15639. LLLL: 'dddd, D MMMM YYYY, A h:mm'
  15640. },
  15641. calendar: {
  15642. sameDay: '[དི་རིང] LT',
  15643. nextDay: '[སང་ཉིན] LT',
  15644. nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT',
  15645. lastDay: '[ཁ་སང] LT',
  15646. lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
  15647. sameElse: 'L'
  15648. },
  15649. relativeTime: {
  15650. future: '%s ལ་',
  15651. past: '%s སྔན་ལ',
  15652. s: 'ལམ་སང',
  15653. ss: '%d སྐར་ཆ།',
  15654. m: 'སྐར་མ་གཅིག',
  15655. mm: '%d སྐར་མ',
  15656. h: 'ཆུ་ཚོད་གཅིག',
  15657. hh: '%d ཆུ་ཚོད',
  15658. d: 'ཉིན་གཅིག',
  15659. dd: '%d ཉིན་',
  15660. M: 'ཟླ་བ་གཅིག',
  15661. MM: '%d ཟླ་བ',
  15662. y: 'ལོ་གཅིག',
  15663. yy: '%d ལོ'
  15664. },
  15665. preparse: function preparse(string) {
  15666. return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
  15667. return numberMap[match];
  15668. });
  15669. },
  15670. postformat: function postformat(string) {
  15671. return string.replace(/\d/g, function (match) {
  15672. return symbolMap[match];
  15673. });
  15674. },
  15675. meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
  15676. meridiemHour: function meridiemHour(hour, meridiem) {
  15677. if (hour === 12) {
  15678. hour = 0;
  15679. }
  15680. if (meridiem === 'མཚན་མོ' && hour >= 4 || meridiem === 'ཉིན་གུང' && hour < 5 || meridiem === 'དགོང་དག') {
  15681. return hour + 12;
  15682. } else {
  15683. return hour;
  15684. }
  15685. },
  15686. meridiem: function meridiem(hour, minute, isLower) {
  15687. if (hour < 4) {
  15688. return 'མཚན་མོ';
  15689. } else if (hour < 10) {
  15690. return 'ཞོགས་ཀས';
  15691. } else if (hour < 17) {
  15692. return 'ཉིན་གུང';
  15693. } else if (hour < 20) {
  15694. return 'དགོང་དག';
  15695. } else {
  15696. return 'མཚན་མོ';
  15697. }
  15698. },
  15699. week: {
  15700. dow: 0,
  15701. // Sunday is the first day of the week.
  15702. doy: 6 // The week that contains Jan 6th is the first week of the year.
  15703. }
  15704. });
  15705. return bo;
  15706. });
  15707. /***/ }),
  15708. /* 57 */
  15709. /*!***************************************************************!*\
  15710. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/br.js ***!
  15711. \***************************************************************/
  15712. /*! no static exports found */
  15713. /***/ (function(module, exports, __webpack_require__) {
  15714. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  15715. //! moment.js locale configuration
  15716. //! locale : Breton [br]
  15717. //! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou
  15718. ;
  15719. (function (global, factory) {
  15720. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  15721. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  15722. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  15723. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  15724. })(this, function (moment) {
  15725. 'use strict';
  15726. //! moment.js locale configuration
  15727. function relativeTimeWithMutation(number, withoutSuffix, key) {
  15728. var format = {
  15729. mm: 'munutenn',
  15730. MM: 'miz',
  15731. dd: 'devezh'
  15732. };
  15733. return number + ' ' + mutation(format[key], number);
  15734. }
  15735. function specialMutationForYears(number) {
  15736. switch (lastNumber(number)) {
  15737. case 1:
  15738. case 3:
  15739. case 4:
  15740. case 5:
  15741. case 9:
  15742. return number + ' bloaz';
  15743. default:
  15744. return number + ' vloaz';
  15745. }
  15746. }
  15747. function lastNumber(number) {
  15748. if (number > 9) {
  15749. return lastNumber(number % 10);
  15750. }
  15751. return number;
  15752. }
  15753. function mutation(text, number) {
  15754. if (number === 2) {
  15755. return softMutation(text);
  15756. }
  15757. return text;
  15758. }
  15759. function softMutation(text) {
  15760. var mutationTable = {
  15761. m: 'v',
  15762. b: 'v',
  15763. d: 'z'
  15764. };
  15765. if (mutationTable[text.charAt(0)] === undefined) {
  15766. return text;
  15767. }
  15768. return mutationTable[text.charAt(0)] + text.substring(1);
  15769. }
  15770. var monthsParse = [/^gen/i, /^c[ʼ\']hwe/i, /^meu/i, /^ebr/i, /^mae/i, /^(mez|eve)/i, /^gou/i, /^eos/i, /^gwe/i, /^her/i, /^du/i, /^ker/i],
  15771. monthsRegex = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
  15772. monthsStrictRegex = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,
  15773. monthsShortStrictRegex = /^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
  15774. fullWeekdaysParse = [/^sul/i, /^lun/i, /^meurzh/i, /^merc[ʼ\']her/i, /^yaou/i, /^gwener/i, /^sadorn/i],
  15775. shortWeekdaysParse = [/^Sul/i, /^Lun/i, /^Meu/i, /^Mer/i, /^Yao/i, /^Gwe/i, /^Sad/i],
  15776. minWeekdaysParse = [/^Su/i, /^Lu/i, /^Me([^r]|$)/i, /^Mer/i, /^Ya/i, /^Gw/i, /^Sa/i];
  15777. var br = moment.defineLocale('br', {
  15778. months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),
  15779. monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
  15780. weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'),
  15781. weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
  15782. weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
  15783. weekdaysParse: minWeekdaysParse,
  15784. fullWeekdaysParse: fullWeekdaysParse,
  15785. shortWeekdaysParse: shortWeekdaysParse,
  15786. minWeekdaysParse: minWeekdaysParse,
  15787. monthsRegex: monthsRegex,
  15788. monthsShortRegex: monthsRegex,
  15789. monthsStrictRegex: monthsStrictRegex,
  15790. monthsShortStrictRegex: monthsShortStrictRegex,
  15791. monthsParse: monthsParse,
  15792. longMonthsParse: monthsParse,
  15793. shortMonthsParse: monthsParse,
  15794. longDateFormat: {
  15795. LT: 'HH:mm',
  15796. LTS: 'HH:mm:ss',
  15797. L: 'DD/MM/YYYY',
  15798. LL: 'D [a viz] MMMM YYYY',
  15799. LLL: 'D [a viz] MMMM YYYY HH:mm',
  15800. LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm'
  15801. },
  15802. calendar: {
  15803. sameDay: '[Hiziv da] LT',
  15804. nextDay: '[Warcʼhoazh da] LT',
  15805. nextWeek: 'dddd [da] LT',
  15806. lastDay: '[Decʼh da] LT',
  15807. lastWeek: 'dddd [paset da] LT',
  15808. sameElse: 'L'
  15809. },
  15810. relativeTime: {
  15811. future: 'a-benn %s',
  15812. past: '%s ʼzo',
  15813. s: 'un nebeud segondennoù',
  15814. ss: '%d eilenn',
  15815. m: 'ur vunutenn',
  15816. mm: relativeTimeWithMutation,
  15817. h: 'un eur',
  15818. hh: '%d eur',
  15819. d: 'un devezh',
  15820. dd: relativeTimeWithMutation,
  15821. M: 'ur miz',
  15822. MM: relativeTimeWithMutation,
  15823. y: 'ur bloaz',
  15824. yy: specialMutationForYears
  15825. },
  15826. dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
  15827. ordinal: function ordinal(number) {
  15828. var output = number === 1 ? 'añ' : 'vet';
  15829. return number + output;
  15830. },
  15831. week: {
  15832. dow: 1,
  15833. // Monday is the first day of the week.
  15834. doy: 4 // The week that contains Jan 4th is the first week of the year.
  15835. },
  15836. meridiemParse: /a.m.|g.m./,
  15837. // goude merenn | a-raok merenn
  15838. isPM: function isPM(token) {
  15839. return token === 'g.m.';
  15840. },
  15841. meridiem: function meridiem(hour, minute, isLower) {
  15842. return hour < 12 ? 'a.m.' : 'g.m.';
  15843. }
  15844. });
  15845. return br;
  15846. });
  15847. /***/ }),
  15848. /* 58 */
  15849. /*!***************************************************************!*\
  15850. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/bs.js ***!
  15851. \***************************************************************/
  15852. /*! no static exports found */
  15853. /***/ (function(module, exports, __webpack_require__) {
  15854. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  15855. //! moment.js locale configuration
  15856. //! locale : Bosnian [bs]
  15857. //! author : Nedim Cholich : https://github.com/frontyard
  15858. //! based on (hr) translation by Bojan Marković
  15859. ;
  15860. (function (global, factory) {
  15861. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  15862. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  15863. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  15864. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  15865. })(this, function (moment) {
  15866. 'use strict';
  15867. //! moment.js locale configuration
  15868. function translate(number, withoutSuffix, key) {
  15869. var result = number + ' ';
  15870. switch (key) {
  15871. case 'ss':
  15872. if (number === 1) {
  15873. result += 'sekunda';
  15874. } else if (number === 2 || number === 3 || number === 4) {
  15875. result += 'sekunde';
  15876. } else {
  15877. result += 'sekundi';
  15878. }
  15879. return result;
  15880. case 'm':
  15881. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  15882. case 'mm':
  15883. if (number === 1) {
  15884. result += 'minuta';
  15885. } else if (number === 2 || number === 3 || number === 4) {
  15886. result += 'minute';
  15887. } else {
  15888. result += 'minuta';
  15889. }
  15890. return result;
  15891. case 'h':
  15892. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  15893. case 'hh':
  15894. if (number === 1) {
  15895. result += 'sat';
  15896. } else if (number === 2 || number === 3 || number === 4) {
  15897. result += 'sata';
  15898. } else {
  15899. result += 'sati';
  15900. }
  15901. return result;
  15902. case 'dd':
  15903. if (number === 1) {
  15904. result += 'dan';
  15905. } else {
  15906. result += 'dana';
  15907. }
  15908. return result;
  15909. case 'MM':
  15910. if (number === 1) {
  15911. result += 'mjesec';
  15912. } else if (number === 2 || number === 3 || number === 4) {
  15913. result += 'mjeseca';
  15914. } else {
  15915. result += 'mjeseci';
  15916. }
  15917. return result;
  15918. case 'yy':
  15919. if (number === 1) {
  15920. result += 'godina';
  15921. } else if (number === 2 || number === 3 || number === 4) {
  15922. result += 'godine';
  15923. } else {
  15924. result += 'godina';
  15925. }
  15926. return result;
  15927. }
  15928. }
  15929. var bs = moment.defineLocale('bs', {
  15930. months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),
  15931. monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  15932. monthsParseExact: true,
  15933. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  15934. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  15935. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  15936. weekdaysParseExact: true,
  15937. longDateFormat: {
  15938. LT: 'H:mm',
  15939. LTS: 'H:mm:ss',
  15940. L: 'DD.MM.YYYY',
  15941. LL: 'D. MMMM YYYY',
  15942. LLL: 'D. MMMM YYYY H:mm',
  15943. LLLL: 'dddd, D. MMMM YYYY H:mm'
  15944. },
  15945. calendar: {
  15946. sameDay: '[danas u] LT',
  15947. nextDay: '[sutra u] LT',
  15948. nextWeek: function nextWeek() {
  15949. switch (this.day()) {
  15950. case 0:
  15951. return '[u] [nedjelju] [u] LT';
  15952. case 3:
  15953. return '[u] [srijedu] [u] LT';
  15954. case 6:
  15955. return '[u] [subotu] [u] LT';
  15956. case 1:
  15957. case 2:
  15958. case 4:
  15959. case 5:
  15960. return '[u] dddd [u] LT';
  15961. }
  15962. },
  15963. lastDay: '[jučer u] LT',
  15964. lastWeek: function lastWeek() {
  15965. switch (this.day()) {
  15966. case 0:
  15967. case 3:
  15968. return '[prošlu] dddd [u] LT';
  15969. case 6:
  15970. return '[prošle] [subote] [u] LT';
  15971. case 1:
  15972. case 2:
  15973. case 4:
  15974. case 5:
  15975. return '[prošli] dddd [u] LT';
  15976. }
  15977. },
  15978. sameElse: 'L'
  15979. },
  15980. relativeTime: {
  15981. future: 'za %s',
  15982. past: 'prije %s',
  15983. s: 'par sekundi',
  15984. ss: translate,
  15985. m: translate,
  15986. mm: translate,
  15987. h: translate,
  15988. hh: translate,
  15989. d: 'dan',
  15990. dd: translate,
  15991. M: 'mjesec',
  15992. MM: translate,
  15993. y: 'godinu',
  15994. yy: translate
  15995. },
  15996. dayOfMonthOrdinalParse: /\d{1,2}\./,
  15997. ordinal: '%d.',
  15998. week: {
  15999. dow: 1,
  16000. // Monday is the first day of the week.
  16001. doy: 7 // The week that contains Jan 7th is the first week of the year.
  16002. }
  16003. });
  16004. return bs;
  16005. });
  16006. /***/ }),
  16007. /* 59 */
  16008. /*!***************************************************************!*\
  16009. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ca.js ***!
  16010. \***************************************************************/
  16011. /*! no static exports found */
  16012. /***/ (function(module, exports, __webpack_require__) {
  16013. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16014. //! moment.js locale configuration
  16015. //! locale : Catalan [ca]
  16016. //! author : Juan G. Hurtado : https://github.com/juanghurtado
  16017. ;
  16018. (function (global, factory) {
  16019. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  16020. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  16021. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  16022. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  16023. })(this, function (moment) {
  16024. 'use strict';
  16025. //! moment.js locale configuration
  16026. var ca = moment.defineLocale('ca', {
  16027. months: {
  16028. standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),
  16029. format: "de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split('_'),
  16030. isFormat: /D[oD]?(\s)+MMMM/
  16031. },
  16032. monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split('_'),
  16033. monthsParseExact: true,
  16034. weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),
  16035. weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
  16036. weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
  16037. weekdaysParseExact: true,
  16038. longDateFormat: {
  16039. LT: 'H:mm',
  16040. LTS: 'H:mm:ss',
  16041. L: 'DD/MM/YYYY',
  16042. LL: 'D MMMM [de] YYYY',
  16043. ll: 'D MMM YYYY',
  16044. LLL: 'D MMMM [de] YYYY [a les] H:mm',
  16045. lll: 'D MMM YYYY, H:mm',
  16046. LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',
  16047. llll: 'ddd D MMM YYYY, H:mm'
  16048. },
  16049. calendar: {
  16050. sameDay: function sameDay() {
  16051. return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  16052. },
  16053. nextDay: function nextDay() {
  16054. return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  16055. },
  16056. nextWeek: function nextWeek() {
  16057. return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  16058. },
  16059. lastDay: function lastDay() {
  16060. return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  16061. },
  16062. lastWeek: function lastWeek() {
  16063. return '[el] dddd [passat a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  16064. },
  16065. sameElse: 'L'
  16066. },
  16067. relativeTime: {
  16068. future: "d'aquí %s",
  16069. past: 'fa %s',
  16070. s: 'uns segons',
  16071. ss: '%d segons',
  16072. m: 'un minut',
  16073. mm: '%d minuts',
  16074. h: 'una hora',
  16075. hh: '%d hores',
  16076. d: 'un dia',
  16077. dd: '%d dies',
  16078. M: 'un mes',
  16079. MM: '%d mesos',
  16080. y: 'un any',
  16081. yy: '%d anys'
  16082. },
  16083. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  16084. ordinal: function ordinal(number, period) {
  16085. var output = number === 1 ? 'r' : number === 2 ? 'n' : number === 3 ? 'r' : number === 4 ? 't' : 'è';
  16086. if (period === 'w' || period === 'W') {
  16087. output = 'a';
  16088. }
  16089. return number + output;
  16090. },
  16091. week: {
  16092. dow: 1,
  16093. // Monday is the first day of the week.
  16094. doy: 4 // The week that contains Jan 4th is the first week of the year.
  16095. }
  16096. });
  16097. return ca;
  16098. });
  16099. /***/ }),
  16100. /* 60 */
  16101. /*!***************************************************************!*\
  16102. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/cs.js ***!
  16103. \***************************************************************/
  16104. /*! no static exports found */
  16105. /***/ (function(module, exports, __webpack_require__) {
  16106. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16107. //! moment.js locale configuration
  16108. //! locale : Czech [cs]
  16109. //! author : petrbela : https://github.com/petrbela
  16110. ;
  16111. (function (global, factory) {
  16112. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  16113. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  16114. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  16115. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  16116. })(this, function (moment) {
  16117. 'use strict';
  16118. //! moment.js locale configuration
  16119. var months = {
  16120. format: 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'),
  16121. standalone: 'ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince'.split('_')
  16122. },
  16123. monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),
  16124. monthsParse = [/^led/i, /^úno/i, /^bře/i, /^dub/i, /^kvě/i, /^(čvn|červen$|června)/i, /^(čvc|červenec|července)/i, /^srp/i, /^zář/i, /^říj/i, /^lis/i, /^pro/i],
  16125. // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
  16126. // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
  16127. monthsRegex = /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;
  16128. function plural(n) {
  16129. return n > 1 && n < 5 && ~~(n / 10) !== 1;
  16130. }
  16131. function translate(number, withoutSuffix, key, isFuture) {
  16132. var result = number + ' ';
  16133. switch (key) {
  16134. case 's':
  16135. // a few seconds / in a few seconds / a few seconds ago
  16136. return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami';
  16137. case 'ss':
  16138. // 9 seconds / in 9 seconds / 9 seconds ago
  16139. if (withoutSuffix || isFuture) {
  16140. return result + (plural(number) ? 'sekundy' : 'sekund');
  16141. } else {
  16142. return result + 'sekundami';
  16143. }
  16144. case 'm':
  16145. // a minute / in a minute / a minute ago
  16146. return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou';
  16147. case 'mm':
  16148. // 9 minutes / in 9 minutes / 9 minutes ago
  16149. if (withoutSuffix || isFuture) {
  16150. return result + (plural(number) ? 'minuty' : 'minut');
  16151. } else {
  16152. return result + 'minutami';
  16153. }
  16154. case 'h':
  16155. // an hour / in an hour / an hour ago
  16156. return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
  16157. case 'hh':
  16158. // 9 hours / in 9 hours / 9 hours ago
  16159. if (withoutSuffix || isFuture) {
  16160. return result + (plural(number) ? 'hodiny' : 'hodin');
  16161. } else {
  16162. return result + 'hodinami';
  16163. }
  16164. case 'd':
  16165. // a day / in a day / a day ago
  16166. return withoutSuffix || isFuture ? 'den' : 'dnem';
  16167. case 'dd':
  16168. // 9 days / in 9 days / 9 days ago
  16169. if (withoutSuffix || isFuture) {
  16170. return result + (plural(number) ? 'dny' : 'dní');
  16171. } else {
  16172. return result + 'dny';
  16173. }
  16174. case 'M':
  16175. // a month / in a month / a month ago
  16176. return withoutSuffix || isFuture ? 'měsíc' : 'měsícem';
  16177. case 'MM':
  16178. // 9 months / in 9 months / 9 months ago
  16179. if (withoutSuffix || isFuture) {
  16180. return result + (plural(number) ? 'měsíce' : 'měsíců');
  16181. } else {
  16182. return result + 'měsíci';
  16183. }
  16184. case 'y':
  16185. // a year / in a year / a year ago
  16186. return withoutSuffix || isFuture ? 'rok' : 'rokem';
  16187. case 'yy':
  16188. // 9 years / in 9 years / 9 years ago
  16189. if (withoutSuffix || isFuture) {
  16190. return result + (plural(number) ? 'roky' : 'let');
  16191. } else {
  16192. return result + 'lety';
  16193. }
  16194. }
  16195. }
  16196. var cs = moment.defineLocale('cs', {
  16197. months: months,
  16198. monthsShort: monthsShort,
  16199. monthsRegex: monthsRegex,
  16200. monthsShortRegex: monthsRegex,
  16201. // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
  16202. // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
  16203. monthsStrictRegex: /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,
  16204. monthsShortStrictRegex: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,
  16205. monthsParse: monthsParse,
  16206. longMonthsParse: monthsParse,
  16207. shortMonthsParse: monthsParse,
  16208. weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
  16209. weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),
  16210. weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),
  16211. longDateFormat: {
  16212. LT: 'H:mm',
  16213. LTS: 'H:mm:ss',
  16214. L: 'DD.MM.YYYY',
  16215. LL: 'D. MMMM YYYY',
  16216. LLL: 'D. MMMM YYYY H:mm',
  16217. LLLL: 'dddd D. MMMM YYYY H:mm',
  16218. l: 'D. M. YYYY'
  16219. },
  16220. calendar: {
  16221. sameDay: '[dnes v] LT',
  16222. nextDay: '[zítra v] LT',
  16223. nextWeek: function nextWeek() {
  16224. switch (this.day()) {
  16225. case 0:
  16226. return '[v neděli v] LT';
  16227. case 1:
  16228. case 2:
  16229. return '[v] dddd [v] LT';
  16230. case 3:
  16231. return '[ve středu v] LT';
  16232. case 4:
  16233. return '[ve čtvrtek v] LT';
  16234. case 5:
  16235. return '[v pátek v] LT';
  16236. case 6:
  16237. return '[v sobotu v] LT';
  16238. }
  16239. },
  16240. lastDay: '[včera v] LT',
  16241. lastWeek: function lastWeek() {
  16242. switch (this.day()) {
  16243. case 0:
  16244. return '[minulou neděli v] LT';
  16245. case 1:
  16246. case 2:
  16247. return '[minulé] dddd [v] LT';
  16248. case 3:
  16249. return '[minulou středu v] LT';
  16250. case 4:
  16251. case 5:
  16252. return '[minulý] dddd [v] LT';
  16253. case 6:
  16254. return '[minulou sobotu v] LT';
  16255. }
  16256. },
  16257. sameElse: 'L'
  16258. },
  16259. relativeTime: {
  16260. future: 'za %s',
  16261. past: 'před %s',
  16262. s: translate,
  16263. ss: translate,
  16264. m: translate,
  16265. mm: translate,
  16266. h: translate,
  16267. hh: translate,
  16268. d: translate,
  16269. dd: translate,
  16270. M: translate,
  16271. MM: translate,
  16272. y: translate,
  16273. yy: translate
  16274. },
  16275. dayOfMonthOrdinalParse: /\d{1,2}\./,
  16276. ordinal: '%d.',
  16277. week: {
  16278. dow: 1,
  16279. // Monday is the first day of the week.
  16280. doy: 4 // The week that contains Jan 4th is the first week of the year.
  16281. }
  16282. });
  16283. return cs;
  16284. });
  16285. /***/ }),
  16286. /* 61 */
  16287. /*!***************************************************************!*\
  16288. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/cv.js ***!
  16289. \***************************************************************/
  16290. /*! no static exports found */
  16291. /***/ (function(module, exports, __webpack_require__) {
  16292. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16293. //! moment.js locale configuration
  16294. //! locale : Chuvash [cv]
  16295. //! author : Anatoly Mironov : https://github.com/mirontoli
  16296. ;
  16297. (function (global, factory) {
  16298. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  16299. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  16300. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  16301. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  16302. })(this, function (moment) {
  16303. 'use strict';
  16304. //! moment.js locale configuration
  16305. var cv = moment.defineLocale('cv', {
  16306. months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'),
  16307. monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
  16308. weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'),
  16309. weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
  16310. weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
  16311. longDateFormat: {
  16312. LT: 'HH:mm',
  16313. LTS: 'HH:mm:ss',
  16314. L: 'DD-MM-YYYY',
  16315. LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
  16316. LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
  16317. LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm'
  16318. },
  16319. calendar: {
  16320. sameDay: '[Паян] LT [сехетре]',
  16321. nextDay: '[Ыран] LT [сехетре]',
  16322. lastDay: '[Ӗнер] LT [сехетре]',
  16323. nextWeek: '[Ҫитес] dddd LT [сехетре]',
  16324. lastWeek: '[Иртнӗ] dddd LT [сехетре]',
  16325. sameElse: 'L'
  16326. },
  16327. relativeTime: {
  16328. future: function future(output) {
  16329. var affix = /сехет$/i.exec(output) ? 'рен' : /ҫул$/i.exec(output) ? 'тан' : 'ран';
  16330. return output + affix;
  16331. },
  16332. past: '%s каялла',
  16333. s: 'пӗр-ик ҫеккунт',
  16334. ss: '%d ҫеккунт',
  16335. m: 'пӗр минут',
  16336. mm: '%d минут',
  16337. h: 'пӗр сехет',
  16338. hh: '%d сехет',
  16339. d: 'пӗр кун',
  16340. dd: '%d кун',
  16341. M: 'пӗр уйӑх',
  16342. MM: '%d уйӑх',
  16343. y: 'пӗр ҫул',
  16344. yy: '%d ҫул'
  16345. },
  16346. dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
  16347. ordinal: '%d-мӗш',
  16348. week: {
  16349. dow: 1,
  16350. // Monday is the first day of the week.
  16351. doy: 7 // The week that contains Jan 7th is the first week of the year.
  16352. }
  16353. });
  16354. return cv;
  16355. });
  16356. /***/ }),
  16357. /* 62 */
  16358. /*!***************************************************************!*\
  16359. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/cy.js ***!
  16360. \***************************************************************/
  16361. /*! no static exports found */
  16362. /***/ (function(module, exports, __webpack_require__) {
  16363. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16364. //! moment.js locale configuration
  16365. //! locale : Welsh [cy]
  16366. //! author : Robert Allen : https://github.com/robgallen
  16367. //! author : https://github.com/ryangreaves
  16368. ;
  16369. (function (global, factory) {
  16370. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  16371. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  16372. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  16373. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  16374. })(this, function (moment) {
  16375. 'use strict';
  16376. //! moment.js locale configuration
  16377. var cy = moment.defineLocale('cy', {
  16378. months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),
  16379. monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),
  16380. weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),
  16381. weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
  16382. weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
  16383. weekdaysParseExact: true,
  16384. // time formats are the same as en-gb
  16385. longDateFormat: {
  16386. LT: 'HH:mm',
  16387. LTS: 'HH:mm:ss',
  16388. L: 'DD/MM/YYYY',
  16389. LL: 'D MMMM YYYY',
  16390. LLL: 'D MMMM YYYY HH:mm',
  16391. LLLL: 'dddd, D MMMM YYYY HH:mm'
  16392. },
  16393. calendar: {
  16394. sameDay: '[Heddiw am] LT',
  16395. nextDay: '[Yfory am] LT',
  16396. nextWeek: 'dddd [am] LT',
  16397. lastDay: '[Ddoe am] LT',
  16398. lastWeek: 'dddd [diwethaf am] LT',
  16399. sameElse: 'L'
  16400. },
  16401. relativeTime: {
  16402. future: 'mewn %s',
  16403. past: '%s yn ôl',
  16404. s: 'ychydig eiliadau',
  16405. ss: '%d eiliad',
  16406. m: 'munud',
  16407. mm: '%d munud',
  16408. h: 'awr',
  16409. hh: '%d awr',
  16410. d: 'diwrnod',
  16411. dd: '%d diwrnod',
  16412. M: 'mis',
  16413. MM: '%d mis',
  16414. y: 'blwyddyn',
  16415. yy: '%d flynedd'
  16416. },
  16417. dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
  16418. // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
  16419. ordinal: function ordinal(number) {
  16420. var b = number,
  16421. output = '',
  16422. lookup = ['', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed',
  16423. // 1af to 10fed
  16424. 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed
  16425. ];
  16426. if (b > 20) {
  16427. if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
  16428. output = 'fed'; // not 30ain, 70ain or 90ain
  16429. } else {
  16430. output = 'ain';
  16431. }
  16432. } else if (b > 0) {
  16433. output = lookup[b];
  16434. }
  16435. return number + output;
  16436. },
  16437. week: {
  16438. dow: 1,
  16439. // Monday is the first day of the week.
  16440. doy: 4 // The week that contains Jan 4th is the first week of the year.
  16441. }
  16442. });
  16443. return cy;
  16444. });
  16445. /***/ }),
  16446. /* 63 */
  16447. /*!***************************************************************!*\
  16448. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/da.js ***!
  16449. \***************************************************************/
  16450. /*! no static exports found */
  16451. /***/ (function(module, exports, __webpack_require__) {
  16452. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16453. //! moment.js locale configuration
  16454. //! locale : Danish [da]
  16455. //! author : Ulrik Nielsen : https://github.com/mrbase
  16456. ;
  16457. (function (global, factory) {
  16458. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  16459. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  16460. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  16461. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  16462. })(this, function (moment) {
  16463. 'use strict';
  16464. //! moment.js locale configuration
  16465. var da = moment.defineLocale('da', {
  16466. months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),
  16467. monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  16468. weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  16469. weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'),
  16470. weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
  16471. longDateFormat: {
  16472. LT: 'HH:mm',
  16473. LTS: 'HH:mm:ss',
  16474. L: 'DD.MM.YYYY',
  16475. LL: 'D. MMMM YYYY',
  16476. LLL: 'D. MMMM YYYY HH:mm',
  16477. LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm'
  16478. },
  16479. calendar: {
  16480. sameDay: '[i dag kl.] LT',
  16481. nextDay: '[i morgen kl.] LT',
  16482. nextWeek: 'på dddd [kl.] LT',
  16483. lastDay: '[i går kl.] LT',
  16484. lastWeek: '[i] dddd[s kl.] LT',
  16485. sameElse: 'L'
  16486. },
  16487. relativeTime: {
  16488. future: 'om %s',
  16489. past: '%s siden',
  16490. s: 'få sekunder',
  16491. ss: '%d sekunder',
  16492. m: 'et minut',
  16493. mm: '%d minutter',
  16494. h: 'en time',
  16495. hh: '%d timer',
  16496. d: 'en dag',
  16497. dd: '%d dage',
  16498. M: 'en måned',
  16499. MM: '%d måneder',
  16500. y: 'et år',
  16501. yy: '%d år'
  16502. },
  16503. dayOfMonthOrdinalParse: /\d{1,2}\./,
  16504. ordinal: '%d.',
  16505. week: {
  16506. dow: 1,
  16507. // Monday is the first day of the week.
  16508. doy: 4 // The week that contains Jan 4th is the first week of the year.
  16509. }
  16510. });
  16511. return da;
  16512. });
  16513. /***/ }),
  16514. /* 64 */
  16515. /*!***************************************************************!*\
  16516. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/de.js ***!
  16517. \***************************************************************/
  16518. /*! no static exports found */
  16519. /***/ (function(module, exports, __webpack_require__) {
  16520. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16521. //! moment.js locale configuration
  16522. //! locale : German [de]
  16523. //! author : lluchs : https://github.com/lluchs
  16524. //! author: Menelion Elensúle: https://github.com/Oire
  16525. //! author : Mikolaj Dadela : https://github.com/mik01aj
  16526. ;
  16527. (function (global, factory) {
  16528. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  16529. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  16530. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  16531. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  16532. })(this, function (moment) {
  16533. 'use strict';
  16534. //! moment.js locale configuration
  16535. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  16536. var format = {
  16537. m: ['eine Minute', 'einer Minute'],
  16538. h: ['eine Stunde', 'einer Stunde'],
  16539. d: ['ein Tag', 'einem Tag'],
  16540. dd: [number + ' Tage', number + ' Tagen'],
  16541. w: ['eine Woche', 'einer Woche'],
  16542. M: ['ein Monat', 'einem Monat'],
  16543. MM: [number + ' Monate', number + ' Monaten'],
  16544. y: ['ein Jahr', 'einem Jahr'],
  16545. yy: [number + ' Jahre', number + ' Jahren']
  16546. };
  16547. return withoutSuffix ? format[key][0] : format[key][1];
  16548. }
  16549. var de = moment.defineLocale('de', {
  16550. months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  16551. monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  16552. monthsParseExact: true,
  16553. weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  16554. weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  16555. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  16556. weekdaysParseExact: true,
  16557. longDateFormat: {
  16558. LT: 'HH:mm',
  16559. LTS: 'HH:mm:ss',
  16560. L: 'DD.MM.YYYY',
  16561. LL: 'D. MMMM YYYY',
  16562. LLL: 'D. MMMM YYYY HH:mm',
  16563. LLLL: 'dddd, D. MMMM YYYY HH:mm'
  16564. },
  16565. calendar: {
  16566. sameDay: '[heute um] LT [Uhr]',
  16567. sameElse: 'L',
  16568. nextDay: '[morgen um] LT [Uhr]',
  16569. nextWeek: 'dddd [um] LT [Uhr]',
  16570. lastDay: '[gestern um] LT [Uhr]',
  16571. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  16572. },
  16573. relativeTime: {
  16574. future: 'in %s',
  16575. past: 'vor %s',
  16576. s: 'ein paar Sekunden',
  16577. ss: '%d Sekunden',
  16578. m: processRelativeTime,
  16579. mm: '%d Minuten',
  16580. h: processRelativeTime,
  16581. hh: '%d Stunden',
  16582. d: processRelativeTime,
  16583. dd: processRelativeTime,
  16584. w: processRelativeTime,
  16585. ww: '%d Wochen',
  16586. M: processRelativeTime,
  16587. MM: processRelativeTime,
  16588. y: processRelativeTime,
  16589. yy: processRelativeTime
  16590. },
  16591. dayOfMonthOrdinalParse: /\d{1,2}\./,
  16592. ordinal: '%d.',
  16593. week: {
  16594. dow: 1,
  16595. // Monday is the first day of the week.
  16596. doy: 4 // The week that contains Jan 4th is the first week of the year.
  16597. }
  16598. });
  16599. return de;
  16600. });
  16601. /***/ }),
  16602. /* 65 */
  16603. /*!******************************************************************!*\
  16604. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/de-at.js ***!
  16605. \******************************************************************/
  16606. /*! no static exports found */
  16607. /***/ (function(module, exports, __webpack_require__) {
  16608. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16609. //! moment.js locale configuration
  16610. //! locale : German (Austria) [de-at]
  16611. //! author : lluchs : https://github.com/lluchs
  16612. //! author: Menelion Elensúle: https://github.com/Oire
  16613. //! author : Martin Groller : https://github.com/MadMG
  16614. //! author : Mikolaj Dadela : https://github.com/mik01aj
  16615. ;
  16616. (function (global, factory) {
  16617. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  16618. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  16619. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  16620. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  16621. })(this, function (moment) {
  16622. 'use strict';
  16623. //! moment.js locale configuration
  16624. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  16625. var format = {
  16626. m: ['eine Minute', 'einer Minute'],
  16627. h: ['eine Stunde', 'einer Stunde'],
  16628. d: ['ein Tag', 'einem Tag'],
  16629. dd: [number + ' Tage', number + ' Tagen'],
  16630. w: ['eine Woche', 'einer Woche'],
  16631. M: ['ein Monat', 'einem Monat'],
  16632. MM: [number + ' Monate', number + ' Monaten'],
  16633. y: ['ein Jahr', 'einem Jahr'],
  16634. yy: [number + ' Jahre', number + ' Jahren']
  16635. };
  16636. return withoutSuffix ? format[key][0] : format[key][1];
  16637. }
  16638. var deAt = moment.defineLocale('de-at', {
  16639. months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  16640. monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  16641. monthsParseExact: true,
  16642. weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  16643. weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  16644. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  16645. weekdaysParseExact: true,
  16646. longDateFormat: {
  16647. LT: 'HH:mm',
  16648. LTS: 'HH:mm:ss',
  16649. L: 'DD.MM.YYYY',
  16650. LL: 'D. MMMM YYYY',
  16651. LLL: 'D. MMMM YYYY HH:mm',
  16652. LLLL: 'dddd, D. MMMM YYYY HH:mm'
  16653. },
  16654. calendar: {
  16655. sameDay: '[heute um] LT [Uhr]',
  16656. sameElse: 'L',
  16657. nextDay: '[morgen um] LT [Uhr]',
  16658. nextWeek: 'dddd [um] LT [Uhr]',
  16659. lastDay: '[gestern um] LT [Uhr]',
  16660. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  16661. },
  16662. relativeTime: {
  16663. future: 'in %s',
  16664. past: 'vor %s',
  16665. s: 'ein paar Sekunden',
  16666. ss: '%d Sekunden',
  16667. m: processRelativeTime,
  16668. mm: '%d Minuten',
  16669. h: processRelativeTime,
  16670. hh: '%d Stunden',
  16671. d: processRelativeTime,
  16672. dd: processRelativeTime,
  16673. w: processRelativeTime,
  16674. ww: '%d Wochen',
  16675. M: processRelativeTime,
  16676. MM: processRelativeTime,
  16677. y: processRelativeTime,
  16678. yy: processRelativeTime
  16679. },
  16680. dayOfMonthOrdinalParse: /\d{1,2}\./,
  16681. ordinal: '%d.',
  16682. week: {
  16683. dow: 1,
  16684. // Monday is the first day of the week.
  16685. doy: 4 // The week that contains Jan 4th is the first week of the year.
  16686. }
  16687. });
  16688. return deAt;
  16689. });
  16690. /***/ }),
  16691. /* 66 */
  16692. /*!******************************************************************!*\
  16693. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/de-ch.js ***!
  16694. \******************************************************************/
  16695. /*! no static exports found */
  16696. /***/ (function(module, exports, __webpack_require__) {
  16697. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16698. //! moment.js locale configuration
  16699. //! locale : German (Switzerland) [de-ch]
  16700. //! author : sschueller : https://github.com/sschueller
  16701. ;
  16702. (function (global, factory) {
  16703. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  16704. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  16705. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  16706. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  16707. })(this, function (moment) {
  16708. 'use strict';
  16709. //! moment.js locale configuration
  16710. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  16711. var format = {
  16712. m: ['eine Minute', 'einer Minute'],
  16713. h: ['eine Stunde', 'einer Stunde'],
  16714. d: ['ein Tag', 'einem Tag'],
  16715. dd: [number + ' Tage', number + ' Tagen'],
  16716. w: ['eine Woche', 'einer Woche'],
  16717. M: ['ein Monat', 'einem Monat'],
  16718. MM: [number + ' Monate', number + ' Monaten'],
  16719. y: ['ein Jahr', 'einem Jahr'],
  16720. yy: [number + ' Jahre', number + ' Jahren']
  16721. };
  16722. return withoutSuffix ? format[key][0] : format[key][1];
  16723. }
  16724. var deCh = moment.defineLocale('de-ch', {
  16725. months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  16726. monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  16727. monthsParseExact: true,
  16728. weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  16729. weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  16730. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  16731. weekdaysParseExact: true,
  16732. longDateFormat: {
  16733. LT: 'HH:mm',
  16734. LTS: 'HH:mm:ss',
  16735. L: 'DD.MM.YYYY',
  16736. LL: 'D. MMMM YYYY',
  16737. LLL: 'D. MMMM YYYY HH:mm',
  16738. LLLL: 'dddd, D. MMMM YYYY HH:mm'
  16739. },
  16740. calendar: {
  16741. sameDay: '[heute um] LT [Uhr]',
  16742. sameElse: 'L',
  16743. nextDay: '[morgen um] LT [Uhr]',
  16744. nextWeek: 'dddd [um] LT [Uhr]',
  16745. lastDay: '[gestern um] LT [Uhr]',
  16746. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  16747. },
  16748. relativeTime: {
  16749. future: 'in %s',
  16750. past: 'vor %s',
  16751. s: 'ein paar Sekunden',
  16752. ss: '%d Sekunden',
  16753. m: processRelativeTime,
  16754. mm: '%d Minuten',
  16755. h: processRelativeTime,
  16756. hh: '%d Stunden',
  16757. d: processRelativeTime,
  16758. dd: processRelativeTime,
  16759. w: processRelativeTime,
  16760. ww: '%d Wochen',
  16761. M: processRelativeTime,
  16762. MM: processRelativeTime,
  16763. y: processRelativeTime,
  16764. yy: processRelativeTime
  16765. },
  16766. dayOfMonthOrdinalParse: /\d{1,2}\./,
  16767. ordinal: '%d.',
  16768. week: {
  16769. dow: 1,
  16770. // Monday is the first day of the week.
  16771. doy: 4 // The week that contains Jan 4th is the first week of the year.
  16772. }
  16773. });
  16774. return deCh;
  16775. });
  16776. /***/ }),
  16777. /* 67 */
  16778. /*!***************************************************************!*\
  16779. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/dv.js ***!
  16780. \***************************************************************/
  16781. /*! no static exports found */
  16782. /***/ (function(module, exports, __webpack_require__) {
  16783. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16784. //! moment.js locale configuration
  16785. //! locale : Maldivian [dv]
  16786. //! author : Jawish Hameed : https://github.com/jawish
  16787. ;
  16788. (function (global, factory) {
  16789. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  16790. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  16791. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  16792. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  16793. })(this, function (moment) {
  16794. 'use strict';
  16795. //! moment.js locale configuration
  16796. var months = ['ޖެނުއަރީ', 'ފެބްރުއަރީ', 'މާރިޗު', 'އޭޕްރީލު', 'މޭ', 'ޖޫން', 'ޖުލައި', 'އޯގަސްޓު', 'ސެޕްޓެމްބަރު', 'އޮކްޓޯބަރު', 'ނޮވެމްބަރު', 'ޑިސެމްބަރު'],
  16797. weekdays = ['އާދިއްތަ', 'ހޯމަ', 'އަންގާރަ', 'ބުދަ', 'ބުރާސްފަތި', 'ހުކުރު', 'ހޮނިހިރު'];
  16798. var dv = moment.defineLocale('dv', {
  16799. months: months,
  16800. monthsShort: months,
  16801. weekdays: weekdays,
  16802. weekdaysShort: weekdays,
  16803. weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
  16804. longDateFormat: {
  16805. LT: 'HH:mm',
  16806. LTS: 'HH:mm:ss',
  16807. L: 'D/M/YYYY',
  16808. LL: 'D MMMM YYYY',
  16809. LLL: 'D MMMM YYYY HH:mm',
  16810. LLLL: 'dddd D MMMM YYYY HH:mm'
  16811. },
  16812. meridiemParse: /މކ|މފ/,
  16813. isPM: function isPM(input) {
  16814. return 'މފ' === input;
  16815. },
  16816. meridiem: function meridiem(hour, minute, isLower) {
  16817. if (hour < 12) {
  16818. return 'މކ';
  16819. } else {
  16820. return 'މފ';
  16821. }
  16822. },
  16823. calendar: {
  16824. sameDay: '[މިއަދު] LT',
  16825. nextDay: '[މާދަމާ] LT',
  16826. nextWeek: 'dddd LT',
  16827. lastDay: '[އިއްޔެ] LT',
  16828. lastWeek: '[ފާއިތުވި] dddd LT',
  16829. sameElse: 'L'
  16830. },
  16831. relativeTime: {
  16832. future: 'ތެރޭގައި %s',
  16833. past: 'ކުރިން %s',
  16834. s: 'ސިކުންތުކޮޅެއް',
  16835. ss: 'd% ސިކުންތު',
  16836. m: 'މިނިޓެއް',
  16837. mm: 'މިނިޓު %d',
  16838. h: 'ގަޑިއިރެއް',
  16839. hh: 'ގަޑިއިރު %d',
  16840. d: 'ދުވަހެއް',
  16841. dd: 'ދުވަސް %d',
  16842. M: 'މަހެއް',
  16843. MM: 'މަސް %d',
  16844. y: 'އަހަރެއް',
  16845. yy: 'އަހަރު %d'
  16846. },
  16847. preparse: function preparse(string) {
  16848. return string.replace(/،/g, ',');
  16849. },
  16850. postformat: function postformat(string) {
  16851. return string.replace(/,/g, '،');
  16852. },
  16853. week: {
  16854. dow: 7,
  16855. // Sunday is the first day of the week.
  16856. doy: 12 // The week that contains Jan 12th is the first week of the year.
  16857. }
  16858. });
  16859. return dv;
  16860. });
  16861. /***/ }),
  16862. /* 68 */
  16863. /*!***************************************************************!*\
  16864. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/el.js ***!
  16865. \***************************************************************/
  16866. /*! no static exports found */
  16867. /***/ (function(module, exports, __webpack_require__) {
  16868. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16869. //! moment.js locale configuration
  16870. //! locale : Greek [el]
  16871. //! author : Aggelos Karalias : https://github.com/mehiel
  16872. ;
  16873. (function (global, factory) {
  16874. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  16875. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  16876. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  16877. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  16878. })(this, function (moment) {
  16879. 'use strict';
  16880. //! moment.js locale configuration
  16881. function isFunction(input) {
  16882. return typeof Function !== 'undefined' && input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
  16883. }
  16884. var el = moment.defineLocale('el', {
  16885. monthsNominativeEl: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),
  16886. monthsGenitiveEl: 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),
  16887. months: function months(momentToFormat, format) {
  16888. if (!momentToFormat) {
  16889. return this._monthsNominativeEl;
  16890. } else if (typeof format === 'string' && /D/.test(format.substring(0, format.indexOf('MMMM')))) {
  16891. // if there is a day number before 'MMMM'
  16892. return this._monthsGenitiveEl[momentToFormat.month()];
  16893. } else {
  16894. return this._monthsNominativeEl[momentToFormat.month()];
  16895. }
  16896. },
  16897. monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
  16898. weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),
  16899. weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
  16900. weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
  16901. meridiem: function meridiem(hours, minutes, isLower) {
  16902. if (hours > 11) {
  16903. return isLower ? 'μμ' : 'ΜΜ';
  16904. } else {
  16905. return isLower ? 'πμ' : 'ΠΜ';
  16906. }
  16907. },
  16908. isPM: function isPM(input) {
  16909. return (input + '').toLowerCase()[0] === 'μ';
  16910. },
  16911. meridiemParse: /[ΠΜ]\.?Μ?\.?/i,
  16912. longDateFormat: {
  16913. LT: 'h:mm A',
  16914. LTS: 'h:mm:ss A',
  16915. L: 'DD/MM/YYYY',
  16916. LL: 'D MMMM YYYY',
  16917. LLL: 'D MMMM YYYY h:mm A',
  16918. LLLL: 'dddd, D MMMM YYYY h:mm A'
  16919. },
  16920. calendarEl: {
  16921. sameDay: '[Σήμερα {}] LT',
  16922. nextDay: '[Αύριο {}] LT',
  16923. nextWeek: 'dddd [{}] LT',
  16924. lastDay: '[Χθες {}] LT',
  16925. lastWeek: function lastWeek() {
  16926. switch (this.day()) {
  16927. case 6:
  16928. return '[το προηγούμενο] dddd [{}] LT';
  16929. default:
  16930. return '[την προηγούμενη] dddd [{}] LT';
  16931. }
  16932. },
  16933. sameElse: 'L'
  16934. },
  16935. calendar: function calendar(key, mom) {
  16936. var output = this._calendarEl[key],
  16937. hours = mom && mom.hours();
  16938. if (isFunction(output)) {
  16939. output = output.apply(mom);
  16940. }
  16941. return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις');
  16942. },
  16943. relativeTime: {
  16944. future: 'σε %s',
  16945. past: '%s πριν',
  16946. s: 'λίγα δευτερόλεπτα',
  16947. ss: '%d δευτερόλεπτα',
  16948. m: 'ένα λεπτό',
  16949. mm: '%d λεπτά',
  16950. h: 'μία ώρα',
  16951. hh: '%d ώρες',
  16952. d: 'μία μέρα',
  16953. dd: '%d μέρες',
  16954. M: 'ένας μήνας',
  16955. MM: '%d μήνες',
  16956. y: 'ένας χρόνος',
  16957. yy: '%d χρόνια'
  16958. },
  16959. dayOfMonthOrdinalParse: /\d{1,2}η/,
  16960. ordinal: '%dη',
  16961. week: {
  16962. dow: 1,
  16963. // Monday is the first day of the week.
  16964. doy: 4 // The week that contains Jan 4st is the first week of the year.
  16965. }
  16966. });
  16967. return el;
  16968. });
  16969. /***/ }),
  16970. /* 69 */
  16971. /*!******************************************************************!*\
  16972. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/en-au.js ***!
  16973. \******************************************************************/
  16974. /*! no static exports found */
  16975. /***/ (function(module, exports, __webpack_require__) {
  16976. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16977. //! moment.js locale configuration
  16978. //! locale : English (Australia) [en-au]
  16979. //! author : Jared Morse : https://github.com/jarcoal
  16980. ;
  16981. (function (global, factory) {
  16982. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  16983. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  16984. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  16985. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  16986. })(this, function (moment) {
  16987. 'use strict';
  16988. //! moment.js locale configuration
  16989. var enAu = moment.defineLocale('en-au', {
  16990. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  16991. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  16992. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  16993. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  16994. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  16995. longDateFormat: {
  16996. LT: 'h:mm A',
  16997. LTS: 'h:mm:ss A',
  16998. L: 'DD/MM/YYYY',
  16999. LL: 'D MMMM YYYY',
  17000. LLL: 'D MMMM YYYY h:mm A',
  17001. LLLL: 'dddd, D MMMM YYYY h:mm A'
  17002. },
  17003. calendar: {
  17004. sameDay: '[Today at] LT',
  17005. nextDay: '[Tomorrow at] LT',
  17006. nextWeek: 'dddd [at] LT',
  17007. lastDay: '[Yesterday at] LT',
  17008. lastWeek: '[Last] dddd [at] LT',
  17009. sameElse: 'L'
  17010. },
  17011. relativeTime: {
  17012. future: 'in %s',
  17013. past: '%s ago',
  17014. s: 'a few seconds',
  17015. ss: '%d seconds',
  17016. m: 'a minute',
  17017. mm: '%d minutes',
  17018. h: 'an hour',
  17019. hh: '%d hours',
  17020. d: 'a day',
  17021. dd: '%d days',
  17022. M: 'a month',
  17023. MM: '%d months',
  17024. y: 'a year',
  17025. yy: '%d years'
  17026. },
  17027. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  17028. ordinal: function ordinal(number) {
  17029. var b = number % 10,
  17030. output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  17031. return number + output;
  17032. },
  17033. week: {
  17034. dow: 0,
  17035. // Sunday is the first day of the week.
  17036. doy: 4 // The week that contains Jan 4th is the first week of the year.
  17037. }
  17038. });
  17039. return enAu;
  17040. });
  17041. /***/ }),
  17042. /* 70 */
  17043. /*!******************************************************************!*\
  17044. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/en-ca.js ***!
  17045. \******************************************************************/
  17046. /*! no static exports found */
  17047. /***/ (function(module, exports, __webpack_require__) {
  17048. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17049. //! moment.js locale configuration
  17050. //! locale : English (Canada) [en-ca]
  17051. //! author : Jonathan Abourbih : https://github.com/jonbca
  17052. ;
  17053. (function (global, factory) {
  17054. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17055. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17056. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17057. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17058. })(this, function (moment) {
  17059. 'use strict';
  17060. //! moment.js locale configuration
  17061. var enCa = moment.defineLocale('en-ca', {
  17062. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  17063. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  17064. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  17065. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  17066. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  17067. longDateFormat: {
  17068. LT: 'h:mm A',
  17069. LTS: 'h:mm:ss A',
  17070. L: 'YYYY-MM-DD',
  17071. LL: 'MMMM D, YYYY',
  17072. LLL: 'MMMM D, YYYY h:mm A',
  17073. LLLL: 'dddd, MMMM D, YYYY h:mm A'
  17074. },
  17075. calendar: {
  17076. sameDay: '[Today at] LT',
  17077. nextDay: '[Tomorrow at] LT',
  17078. nextWeek: 'dddd [at] LT',
  17079. lastDay: '[Yesterday at] LT',
  17080. lastWeek: '[Last] dddd [at] LT',
  17081. sameElse: 'L'
  17082. },
  17083. relativeTime: {
  17084. future: 'in %s',
  17085. past: '%s ago',
  17086. s: 'a few seconds',
  17087. ss: '%d seconds',
  17088. m: 'a minute',
  17089. mm: '%d minutes',
  17090. h: 'an hour',
  17091. hh: '%d hours',
  17092. d: 'a day',
  17093. dd: '%d days',
  17094. M: 'a month',
  17095. MM: '%d months',
  17096. y: 'a year',
  17097. yy: '%d years'
  17098. },
  17099. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  17100. ordinal: function ordinal(number) {
  17101. var b = number % 10,
  17102. output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  17103. return number + output;
  17104. }
  17105. });
  17106. return enCa;
  17107. });
  17108. /***/ }),
  17109. /* 71 */
  17110. /*!******************************************************************!*\
  17111. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/en-gb.js ***!
  17112. \******************************************************************/
  17113. /*! no static exports found */
  17114. /***/ (function(module, exports, __webpack_require__) {
  17115. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17116. //! moment.js locale configuration
  17117. //! locale : English (United Kingdom) [en-gb]
  17118. //! author : Chris Gedrim : https://github.com/chrisgedrim
  17119. ;
  17120. (function (global, factory) {
  17121. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17122. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17123. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17124. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17125. })(this, function (moment) {
  17126. 'use strict';
  17127. //! moment.js locale configuration
  17128. var enGb = moment.defineLocale('en-gb', {
  17129. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  17130. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  17131. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  17132. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  17133. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  17134. longDateFormat: {
  17135. LT: 'HH:mm',
  17136. LTS: 'HH:mm:ss',
  17137. L: 'DD/MM/YYYY',
  17138. LL: 'D MMMM YYYY',
  17139. LLL: 'D MMMM YYYY HH:mm',
  17140. LLLL: 'dddd, D MMMM YYYY HH:mm'
  17141. },
  17142. calendar: {
  17143. sameDay: '[Today at] LT',
  17144. nextDay: '[Tomorrow at] LT',
  17145. nextWeek: 'dddd [at] LT',
  17146. lastDay: '[Yesterday at] LT',
  17147. lastWeek: '[Last] dddd [at] LT',
  17148. sameElse: 'L'
  17149. },
  17150. relativeTime: {
  17151. future: 'in %s',
  17152. past: '%s ago',
  17153. s: 'a few seconds',
  17154. ss: '%d seconds',
  17155. m: 'a minute',
  17156. mm: '%d minutes',
  17157. h: 'an hour',
  17158. hh: '%d hours',
  17159. d: 'a day',
  17160. dd: '%d days',
  17161. M: 'a month',
  17162. MM: '%d months',
  17163. y: 'a year',
  17164. yy: '%d years'
  17165. },
  17166. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  17167. ordinal: function ordinal(number) {
  17168. var b = number % 10,
  17169. output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  17170. return number + output;
  17171. },
  17172. week: {
  17173. dow: 1,
  17174. // Monday is the first day of the week.
  17175. doy: 4 // The week that contains Jan 4th is the first week of the year.
  17176. }
  17177. });
  17178. return enGb;
  17179. });
  17180. /***/ }),
  17181. /* 72 */
  17182. /*!******************************************************************!*\
  17183. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/en-ie.js ***!
  17184. \******************************************************************/
  17185. /*! no static exports found */
  17186. /***/ (function(module, exports, __webpack_require__) {
  17187. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17188. //! moment.js locale configuration
  17189. //! locale : English (Ireland) [en-ie]
  17190. //! author : Chris Cartlidge : https://github.com/chriscartlidge
  17191. ;
  17192. (function (global, factory) {
  17193. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17194. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17195. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17196. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17197. })(this, function (moment) {
  17198. 'use strict';
  17199. //! moment.js locale configuration
  17200. var enIe = moment.defineLocale('en-ie', {
  17201. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  17202. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  17203. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  17204. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  17205. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  17206. longDateFormat: {
  17207. LT: 'HH:mm',
  17208. LTS: 'HH:mm:ss',
  17209. L: 'DD/MM/YYYY',
  17210. LL: 'D MMMM YYYY',
  17211. LLL: 'D MMMM YYYY HH:mm',
  17212. LLLL: 'dddd D MMMM YYYY HH:mm'
  17213. },
  17214. calendar: {
  17215. sameDay: '[Today at] LT',
  17216. nextDay: '[Tomorrow at] LT',
  17217. nextWeek: 'dddd [at] LT',
  17218. lastDay: '[Yesterday at] LT',
  17219. lastWeek: '[Last] dddd [at] LT',
  17220. sameElse: 'L'
  17221. },
  17222. relativeTime: {
  17223. future: 'in %s',
  17224. past: '%s ago',
  17225. s: 'a few seconds',
  17226. ss: '%d seconds',
  17227. m: 'a minute',
  17228. mm: '%d minutes',
  17229. h: 'an hour',
  17230. hh: '%d hours',
  17231. d: 'a day',
  17232. dd: '%d days',
  17233. M: 'a month',
  17234. MM: '%d months',
  17235. y: 'a year',
  17236. yy: '%d years'
  17237. },
  17238. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  17239. ordinal: function ordinal(number) {
  17240. var b = number % 10,
  17241. output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  17242. return number + output;
  17243. },
  17244. week: {
  17245. dow: 1,
  17246. // Monday is the first day of the week.
  17247. doy: 4 // The week that contains Jan 4th is the first week of the year.
  17248. }
  17249. });
  17250. return enIe;
  17251. });
  17252. /***/ }),
  17253. /* 73 */
  17254. /*!******************************************************************!*\
  17255. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/en-il.js ***!
  17256. \******************************************************************/
  17257. /*! no static exports found */
  17258. /***/ (function(module, exports, __webpack_require__) {
  17259. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17260. //! moment.js locale configuration
  17261. //! locale : English (Israel) [en-il]
  17262. //! author : Chris Gedrim : https://github.com/chrisgedrim
  17263. ;
  17264. (function (global, factory) {
  17265. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17266. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17267. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17268. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17269. })(this, function (moment) {
  17270. 'use strict';
  17271. //! moment.js locale configuration
  17272. var enIl = moment.defineLocale('en-il', {
  17273. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  17274. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  17275. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  17276. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  17277. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  17278. longDateFormat: {
  17279. LT: 'HH:mm',
  17280. LTS: 'HH:mm:ss',
  17281. L: 'DD/MM/YYYY',
  17282. LL: 'D MMMM YYYY',
  17283. LLL: 'D MMMM YYYY HH:mm',
  17284. LLLL: 'dddd, D MMMM YYYY HH:mm'
  17285. },
  17286. calendar: {
  17287. sameDay: '[Today at] LT',
  17288. nextDay: '[Tomorrow at] LT',
  17289. nextWeek: 'dddd [at] LT',
  17290. lastDay: '[Yesterday at] LT',
  17291. lastWeek: '[Last] dddd [at] LT',
  17292. sameElse: 'L'
  17293. },
  17294. relativeTime: {
  17295. future: 'in %s',
  17296. past: '%s ago',
  17297. s: 'a few seconds',
  17298. ss: '%d seconds',
  17299. m: 'a minute',
  17300. mm: '%d minutes',
  17301. h: 'an hour',
  17302. hh: '%d hours',
  17303. d: 'a day',
  17304. dd: '%d days',
  17305. M: 'a month',
  17306. MM: '%d months',
  17307. y: 'a year',
  17308. yy: '%d years'
  17309. },
  17310. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  17311. ordinal: function ordinal(number) {
  17312. var b = number % 10,
  17313. output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  17314. return number + output;
  17315. }
  17316. });
  17317. return enIl;
  17318. });
  17319. /***/ }),
  17320. /* 74 */
  17321. /*!******************************************************************!*\
  17322. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/en-in.js ***!
  17323. \******************************************************************/
  17324. /*! no static exports found */
  17325. /***/ (function(module, exports, __webpack_require__) {
  17326. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17327. //! moment.js locale configuration
  17328. //! locale : English (India) [en-in]
  17329. //! author : Jatin Agrawal : https://github.com/jatinag22
  17330. ;
  17331. (function (global, factory) {
  17332. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17333. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17334. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17335. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17336. })(this, function (moment) {
  17337. 'use strict';
  17338. //! moment.js locale configuration
  17339. var enIn = moment.defineLocale('en-in', {
  17340. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  17341. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  17342. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  17343. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  17344. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  17345. longDateFormat: {
  17346. LT: 'h:mm A',
  17347. LTS: 'h:mm:ss A',
  17348. L: 'DD/MM/YYYY',
  17349. LL: 'D MMMM YYYY',
  17350. LLL: 'D MMMM YYYY h:mm A',
  17351. LLLL: 'dddd, D MMMM YYYY h:mm A'
  17352. },
  17353. calendar: {
  17354. sameDay: '[Today at] LT',
  17355. nextDay: '[Tomorrow at] LT',
  17356. nextWeek: 'dddd [at] LT',
  17357. lastDay: '[Yesterday at] LT',
  17358. lastWeek: '[Last] dddd [at] LT',
  17359. sameElse: 'L'
  17360. },
  17361. relativeTime: {
  17362. future: 'in %s',
  17363. past: '%s ago',
  17364. s: 'a few seconds',
  17365. ss: '%d seconds',
  17366. m: 'a minute',
  17367. mm: '%d minutes',
  17368. h: 'an hour',
  17369. hh: '%d hours',
  17370. d: 'a day',
  17371. dd: '%d days',
  17372. M: 'a month',
  17373. MM: '%d months',
  17374. y: 'a year',
  17375. yy: '%d years'
  17376. },
  17377. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  17378. ordinal: function ordinal(number) {
  17379. var b = number % 10,
  17380. output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  17381. return number + output;
  17382. },
  17383. week: {
  17384. dow: 0,
  17385. // Sunday is the first day of the week.
  17386. doy: 6 // The week that contains Jan 1st is the first week of the year.
  17387. }
  17388. });
  17389. return enIn;
  17390. });
  17391. /***/ }),
  17392. /* 75 */
  17393. /*!******************************************************************!*\
  17394. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/en-nz.js ***!
  17395. \******************************************************************/
  17396. /*! no static exports found */
  17397. /***/ (function(module, exports, __webpack_require__) {
  17398. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17399. //! moment.js locale configuration
  17400. //! locale : English (New Zealand) [en-nz]
  17401. //! author : Luke McGregor : https://github.com/lukemcgregor
  17402. ;
  17403. (function (global, factory) {
  17404. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17405. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17406. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17407. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17408. })(this, function (moment) {
  17409. 'use strict';
  17410. //! moment.js locale configuration
  17411. var enNz = moment.defineLocale('en-nz', {
  17412. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  17413. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  17414. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  17415. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  17416. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  17417. longDateFormat: {
  17418. LT: 'h:mm A',
  17419. LTS: 'h:mm:ss A',
  17420. L: 'DD/MM/YYYY',
  17421. LL: 'D MMMM YYYY',
  17422. LLL: 'D MMMM YYYY h:mm A',
  17423. LLLL: 'dddd, D MMMM YYYY h:mm A'
  17424. },
  17425. calendar: {
  17426. sameDay: '[Today at] LT',
  17427. nextDay: '[Tomorrow at] LT',
  17428. nextWeek: 'dddd [at] LT',
  17429. lastDay: '[Yesterday at] LT',
  17430. lastWeek: '[Last] dddd [at] LT',
  17431. sameElse: 'L'
  17432. },
  17433. relativeTime: {
  17434. future: 'in %s',
  17435. past: '%s ago',
  17436. s: 'a few seconds',
  17437. ss: '%d seconds',
  17438. m: 'a minute',
  17439. mm: '%d minutes',
  17440. h: 'an hour',
  17441. hh: '%d hours',
  17442. d: 'a day',
  17443. dd: '%d days',
  17444. M: 'a month',
  17445. MM: '%d months',
  17446. y: 'a year',
  17447. yy: '%d years'
  17448. },
  17449. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  17450. ordinal: function ordinal(number) {
  17451. var b = number % 10,
  17452. output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  17453. return number + output;
  17454. },
  17455. week: {
  17456. dow: 1,
  17457. // Monday is the first day of the week.
  17458. doy: 4 // The week that contains Jan 4th is the first week of the year.
  17459. }
  17460. });
  17461. return enNz;
  17462. });
  17463. /***/ }),
  17464. /* 76 */
  17465. /*!******************************************************************!*\
  17466. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/en-sg.js ***!
  17467. \******************************************************************/
  17468. /*! no static exports found */
  17469. /***/ (function(module, exports, __webpack_require__) {
  17470. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17471. //! moment.js locale configuration
  17472. //! locale : English (Singapore) [en-sg]
  17473. //! author : Matthew Castrillon-Madrigal : https://github.com/techdimension
  17474. ;
  17475. (function (global, factory) {
  17476. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17477. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17478. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17479. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17480. })(this, function (moment) {
  17481. 'use strict';
  17482. //! moment.js locale configuration
  17483. var enSg = moment.defineLocale('en-sg', {
  17484. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  17485. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  17486. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  17487. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  17488. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  17489. longDateFormat: {
  17490. LT: 'HH:mm',
  17491. LTS: 'HH:mm:ss',
  17492. L: 'DD/MM/YYYY',
  17493. LL: 'D MMMM YYYY',
  17494. LLL: 'D MMMM YYYY HH:mm',
  17495. LLLL: 'dddd, D MMMM YYYY HH:mm'
  17496. },
  17497. calendar: {
  17498. sameDay: '[Today at] LT',
  17499. nextDay: '[Tomorrow at] LT',
  17500. nextWeek: 'dddd [at] LT',
  17501. lastDay: '[Yesterday at] LT',
  17502. lastWeek: '[Last] dddd [at] LT',
  17503. sameElse: 'L'
  17504. },
  17505. relativeTime: {
  17506. future: 'in %s',
  17507. past: '%s ago',
  17508. s: 'a few seconds',
  17509. ss: '%d seconds',
  17510. m: 'a minute',
  17511. mm: '%d minutes',
  17512. h: 'an hour',
  17513. hh: '%d hours',
  17514. d: 'a day',
  17515. dd: '%d days',
  17516. M: 'a month',
  17517. MM: '%d months',
  17518. y: 'a year',
  17519. yy: '%d years'
  17520. },
  17521. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  17522. ordinal: function ordinal(number) {
  17523. var b = number % 10,
  17524. output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  17525. return number + output;
  17526. },
  17527. week: {
  17528. dow: 1,
  17529. // Monday is the first day of the week.
  17530. doy: 4 // The week that contains Jan 4th is the first week of the year.
  17531. }
  17532. });
  17533. return enSg;
  17534. });
  17535. /***/ }),
  17536. /* 77 */
  17537. /*!***************************************************************!*\
  17538. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/eo.js ***!
  17539. \***************************************************************/
  17540. /*! no static exports found */
  17541. /***/ (function(module, exports, __webpack_require__) {
  17542. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17543. //! moment.js locale configuration
  17544. //! locale : Esperanto [eo]
  17545. //! author : Colin Dean : https://github.com/colindean
  17546. //! author : Mia Nordentoft Imperatori : https://github.com/miestasmia
  17547. //! comment : miestasmia corrected the translation by colindean
  17548. //! comment : Vivakvo corrected the translation by colindean and miestasmia
  17549. ;
  17550. (function (global, factory) {
  17551. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17552. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17553. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17554. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17555. })(this, function (moment) {
  17556. 'use strict';
  17557. //! moment.js locale configuration
  17558. var eo = moment.defineLocale('eo', {
  17559. months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),
  17560. monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split('_'),
  17561. weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
  17562. weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
  17563. weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
  17564. longDateFormat: {
  17565. LT: 'HH:mm',
  17566. LTS: 'HH:mm:ss',
  17567. L: 'YYYY-MM-DD',
  17568. LL: '[la] D[-an de] MMMM, YYYY',
  17569. LLL: '[la] D[-an de] MMMM, YYYY HH:mm',
  17570. LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm',
  17571. llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm'
  17572. },
  17573. meridiemParse: /[ap]\.t\.m/i,
  17574. isPM: function isPM(input) {
  17575. return input.charAt(0).toLowerCase() === 'p';
  17576. },
  17577. meridiem: function meridiem(hours, minutes, isLower) {
  17578. if (hours > 11) {
  17579. return isLower ? 'p.t.m.' : 'P.T.M.';
  17580. } else {
  17581. return isLower ? 'a.t.m.' : 'A.T.M.';
  17582. }
  17583. },
  17584. calendar: {
  17585. sameDay: '[Hodiaŭ je] LT',
  17586. nextDay: '[Morgaŭ je] LT',
  17587. nextWeek: 'dddd[n je] LT',
  17588. lastDay: '[Hieraŭ je] LT',
  17589. lastWeek: '[pasintan] dddd[n je] LT',
  17590. sameElse: 'L'
  17591. },
  17592. relativeTime: {
  17593. future: 'post %s',
  17594. past: 'antaŭ %s',
  17595. s: 'kelkaj sekundoj',
  17596. ss: '%d sekundoj',
  17597. m: 'unu minuto',
  17598. mm: '%d minutoj',
  17599. h: 'unu horo',
  17600. hh: '%d horoj',
  17601. d: 'unu tago',
  17602. //ne 'diurno', ĉar estas uzita por proksimumo
  17603. dd: '%d tagoj',
  17604. M: 'unu monato',
  17605. MM: '%d monatoj',
  17606. y: 'unu jaro',
  17607. yy: '%d jaroj'
  17608. },
  17609. dayOfMonthOrdinalParse: /\d{1,2}a/,
  17610. ordinal: '%da',
  17611. week: {
  17612. dow: 1,
  17613. // Monday is the first day of the week.
  17614. doy: 7 // The week that contains Jan 7th is the first week of the year.
  17615. }
  17616. });
  17617. return eo;
  17618. });
  17619. /***/ }),
  17620. /* 78 */
  17621. /*!***************************************************************!*\
  17622. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/es.js ***!
  17623. \***************************************************************/
  17624. /*! no static exports found */
  17625. /***/ (function(module, exports, __webpack_require__) {
  17626. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17627. //! moment.js locale configuration
  17628. //! locale : Spanish [es]
  17629. //! author : Julio Napurí : https://github.com/julionc
  17630. ;
  17631. (function (global, factory) {
  17632. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17633. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17634. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17635. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17636. })(this, function (moment) {
  17637. 'use strict';
  17638. //! moment.js locale configuration
  17639. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
  17640. _monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  17641. monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i],
  17642. monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
  17643. var es = moment.defineLocale('es', {
  17644. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  17645. monthsShort: function monthsShort(m, format) {
  17646. if (!m) {
  17647. return monthsShortDot;
  17648. } else if (/-MMM-/.test(format)) {
  17649. return _monthsShort[m.month()];
  17650. } else {
  17651. return monthsShortDot[m.month()];
  17652. }
  17653. },
  17654. monthsRegex: monthsRegex,
  17655. monthsShortRegex: monthsRegex,
  17656. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  17657. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  17658. monthsParse: monthsParse,
  17659. longMonthsParse: monthsParse,
  17660. shortMonthsParse: monthsParse,
  17661. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  17662. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  17663. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  17664. weekdaysParseExact: true,
  17665. longDateFormat: {
  17666. LT: 'H:mm',
  17667. LTS: 'H:mm:ss',
  17668. L: 'DD/MM/YYYY',
  17669. LL: 'D [de] MMMM [de] YYYY',
  17670. LLL: 'D [de] MMMM [de] YYYY H:mm',
  17671. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm'
  17672. },
  17673. calendar: {
  17674. sameDay: function sameDay() {
  17675. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17676. },
  17677. nextDay: function nextDay() {
  17678. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17679. },
  17680. nextWeek: function nextWeek() {
  17681. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17682. },
  17683. lastDay: function lastDay() {
  17684. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17685. },
  17686. lastWeek: function lastWeek() {
  17687. return '[el] dddd [pasado a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17688. },
  17689. sameElse: 'L'
  17690. },
  17691. relativeTime: {
  17692. future: 'en %s',
  17693. past: 'hace %s',
  17694. s: 'unos segundos',
  17695. ss: '%d segundos',
  17696. m: 'un minuto',
  17697. mm: '%d minutos',
  17698. h: 'una hora',
  17699. hh: '%d horas',
  17700. d: 'un día',
  17701. dd: '%d días',
  17702. w: 'una semana',
  17703. ww: '%d semanas',
  17704. M: 'un mes',
  17705. MM: '%d meses',
  17706. y: 'un año',
  17707. yy: '%d años'
  17708. },
  17709. dayOfMonthOrdinalParse: /\d{1,2}º/,
  17710. ordinal: '%dº',
  17711. week: {
  17712. dow: 1,
  17713. // Monday is the first day of the week.
  17714. doy: 4 // The week that contains Jan 4th is the first week of the year.
  17715. },
  17716. invalidDate: 'Fecha inválida'
  17717. });
  17718. return es;
  17719. });
  17720. /***/ }),
  17721. /* 79 */
  17722. /*!******************************************************************!*\
  17723. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/es-do.js ***!
  17724. \******************************************************************/
  17725. /*! no static exports found */
  17726. /***/ (function(module, exports, __webpack_require__) {
  17727. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17728. //! moment.js locale configuration
  17729. //! locale : Spanish (Dominican Republic) [es-do]
  17730. ;
  17731. (function (global, factory) {
  17732. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17733. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17734. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17735. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17736. })(this, function (moment) {
  17737. 'use strict';
  17738. //! moment.js locale configuration
  17739. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
  17740. _monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  17741. monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i],
  17742. monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
  17743. var esDo = moment.defineLocale('es-do', {
  17744. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  17745. monthsShort: function monthsShort(m, format) {
  17746. if (!m) {
  17747. return monthsShortDot;
  17748. } else if (/-MMM-/.test(format)) {
  17749. return _monthsShort[m.month()];
  17750. } else {
  17751. return monthsShortDot[m.month()];
  17752. }
  17753. },
  17754. monthsRegex: monthsRegex,
  17755. monthsShortRegex: monthsRegex,
  17756. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  17757. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  17758. monthsParse: monthsParse,
  17759. longMonthsParse: monthsParse,
  17760. shortMonthsParse: monthsParse,
  17761. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  17762. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  17763. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  17764. weekdaysParseExact: true,
  17765. longDateFormat: {
  17766. LT: 'h:mm A',
  17767. LTS: 'h:mm:ss A',
  17768. L: 'DD/MM/YYYY',
  17769. LL: 'D [de] MMMM [de] YYYY',
  17770. LLL: 'D [de] MMMM [de] YYYY h:mm A',
  17771. LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A'
  17772. },
  17773. calendar: {
  17774. sameDay: function sameDay() {
  17775. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17776. },
  17777. nextDay: function nextDay() {
  17778. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17779. },
  17780. nextWeek: function nextWeek() {
  17781. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17782. },
  17783. lastDay: function lastDay() {
  17784. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17785. },
  17786. lastWeek: function lastWeek() {
  17787. return '[el] dddd [pasado a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17788. },
  17789. sameElse: 'L'
  17790. },
  17791. relativeTime: {
  17792. future: 'en %s',
  17793. past: 'hace %s',
  17794. s: 'unos segundos',
  17795. ss: '%d segundos',
  17796. m: 'un minuto',
  17797. mm: '%d minutos',
  17798. h: 'una hora',
  17799. hh: '%d horas',
  17800. d: 'un día',
  17801. dd: '%d días',
  17802. w: 'una semana',
  17803. ww: '%d semanas',
  17804. M: 'un mes',
  17805. MM: '%d meses',
  17806. y: 'un año',
  17807. yy: '%d años'
  17808. },
  17809. dayOfMonthOrdinalParse: /\d{1,2}º/,
  17810. ordinal: '%dº',
  17811. week: {
  17812. dow: 1,
  17813. // Monday is the first day of the week.
  17814. doy: 4 // The week that contains Jan 4th is the first week of the year.
  17815. }
  17816. });
  17817. return esDo;
  17818. });
  17819. /***/ }),
  17820. /* 80 */
  17821. /*!******************************************************************!*\
  17822. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/es-mx.js ***!
  17823. \******************************************************************/
  17824. /*! no static exports found */
  17825. /***/ (function(module, exports, __webpack_require__) {
  17826. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17827. //! moment.js locale configuration
  17828. //! locale : Spanish (Mexico) [es-mx]
  17829. //! author : JC Franco : https://github.com/jcfranco
  17830. ;
  17831. (function (global, factory) {
  17832. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17833. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17834. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17835. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17836. })(this, function (moment) {
  17837. 'use strict';
  17838. //! moment.js locale configuration
  17839. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
  17840. _monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  17841. monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i],
  17842. monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
  17843. var esMx = moment.defineLocale('es-mx', {
  17844. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  17845. monthsShort: function monthsShort(m, format) {
  17846. if (!m) {
  17847. return monthsShortDot;
  17848. } else if (/-MMM-/.test(format)) {
  17849. return _monthsShort[m.month()];
  17850. } else {
  17851. return monthsShortDot[m.month()];
  17852. }
  17853. },
  17854. monthsRegex: monthsRegex,
  17855. monthsShortRegex: monthsRegex,
  17856. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  17857. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  17858. monthsParse: monthsParse,
  17859. longMonthsParse: monthsParse,
  17860. shortMonthsParse: monthsParse,
  17861. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  17862. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  17863. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  17864. weekdaysParseExact: true,
  17865. longDateFormat: {
  17866. LT: 'H:mm',
  17867. LTS: 'H:mm:ss',
  17868. L: 'DD/MM/YYYY',
  17869. LL: 'D [de] MMMM [de] YYYY',
  17870. LLL: 'D [de] MMMM [de] YYYY H:mm',
  17871. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm'
  17872. },
  17873. calendar: {
  17874. sameDay: function sameDay() {
  17875. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17876. },
  17877. nextDay: function nextDay() {
  17878. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17879. },
  17880. nextWeek: function nextWeek() {
  17881. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17882. },
  17883. lastDay: function lastDay() {
  17884. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17885. },
  17886. lastWeek: function lastWeek() {
  17887. return '[el] dddd [pasado a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17888. },
  17889. sameElse: 'L'
  17890. },
  17891. relativeTime: {
  17892. future: 'en %s',
  17893. past: 'hace %s',
  17894. s: 'unos segundos',
  17895. ss: '%d segundos',
  17896. m: 'un minuto',
  17897. mm: '%d minutos',
  17898. h: 'una hora',
  17899. hh: '%d horas',
  17900. d: 'un día',
  17901. dd: '%d días',
  17902. w: 'una semana',
  17903. ww: '%d semanas',
  17904. M: 'un mes',
  17905. MM: '%d meses',
  17906. y: 'un año',
  17907. yy: '%d años'
  17908. },
  17909. dayOfMonthOrdinalParse: /\d{1,2}º/,
  17910. ordinal: '%dº',
  17911. week: {
  17912. dow: 0,
  17913. // Sunday is the first day of the week.
  17914. doy: 4 // The week that contains Jan 4th is the first week of the year.
  17915. },
  17916. invalidDate: 'Fecha inválida'
  17917. });
  17918. return esMx;
  17919. });
  17920. /***/ }),
  17921. /* 81 */
  17922. /*!******************************************************************!*\
  17923. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/es-us.js ***!
  17924. \******************************************************************/
  17925. /*! no static exports found */
  17926. /***/ (function(module, exports, __webpack_require__) {
  17927. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17928. //! moment.js locale configuration
  17929. //! locale : Spanish (United States) [es-us]
  17930. //! author : bustta : https://github.com/bustta
  17931. //! author : chrisrodz : https://github.com/chrisrodz
  17932. ;
  17933. (function (global, factory) {
  17934. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17935. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17936. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17937. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17938. })(this, function (moment) {
  17939. 'use strict';
  17940. //! moment.js locale configuration
  17941. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
  17942. _monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  17943. monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i],
  17944. monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
  17945. var esUs = moment.defineLocale('es-us', {
  17946. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  17947. monthsShort: function monthsShort(m, format) {
  17948. if (!m) {
  17949. return monthsShortDot;
  17950. } else if (/-MMM-/.test(format)) {
  17951. return _monthsShort[m.month()];
  17952. } else {
  17953. return monthsShortDot[m.month()];
  17954. }
  17955. },
  17956. monthsRegex: monthsRegex,
  17957. monthsShortRegex: monthsRegex,
  17958. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  17959. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  17960. monthsParse: monthsParse,
  17961. longMonthsParse: monthsParse,
  17962. shortMonthsParse: monthsParse,
  17963. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  17964. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  17965. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  17966. weekdaysParseExact: true,
  17967. longDateFormat: {
  17968. LT: 'h:mm A',
  17969. LTS: 'h:mm:ss A',
  17970. L: 'MM/DD/YYYY',
  17971. LL: 'D [de] MMMM [de] YYYY',
  17972. LLL: 'D [de] MMMM [de] YYYY h:mm A',
  17973. LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A'
  17974. },
  17975. calendar: {
  17976. sameDay: function sameDay() {
  17977. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17978. },
  17979. nextDay: function nextDay() {
  17980. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17981. },
  17982. nextWeek: function nextWeek() {
  17983. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17984. },
  17985. lastDay: function lastDay() {
  17986. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17987. },
  17988. lastWeek: function lastWeek() {
  17989. return '[el] dddd [pasado a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17990. },
  17991. sameElse: 'L'
  17992. },
  17993. relativeTime: {
  17994. future: 'en %s',
  17995. past: 'hace %s',
  17996. s: 'unos segundos',
  17997. ss: '%d segundos',
  17998. m: 'un minuto',
  17999. mm: '%d minutos',
  18000. h: 'una hora',
  18001. hh: '%d horas',
  18002. d: 'un día',
  18003. dd: '%d días',
  18004. w: 'una semana',
  18005. ww: '%d semanas',
  18006. M: 'un mes',
  18007. MM: '%d meses',
  18008. y: 'un año',
  18009. yy: '%d años'
  18010. },
  18011. dayOfMonthOrdinalParse: /\d{1,2}º/,
  18012. ordinal: '%dº',
  18013. week: {
  18014. dow: 0,
  18015. // Sunday is the first day of the week.
  18016. doy: 6 // The week that contains Jan 6th is the first week of the year.
  18017. }
  18018. });
  18019. return esUs;
  18020. });
  18021. /***/ }),
  18022. /* 82 */
  18023. /*!***************************************************************!*\
  18024. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/et.js ***!
  18025. \***************************************************************/
  18026. /*! no static exports found */
  18027. /***/ (function(module, exports, __webpack_require__) {
  18028. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18029. //! moment.js locale configuration
  18030. //! locale : Estonian [et]
  18031. //! author : Henry Kehlmann : https://github.com/madhenry
  18032. //! improvements : Illimar Tambek : https://github.com/ragulka
  18033. ;
  18034. (function (global, factory) {
  18035. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18036. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18037. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18038. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18039. })(this, function (moment) {
  18040. 'use strict';
  18041. //! moment.js locale configuration
  18042. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  18043. var format = {
  18044. s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
  18045. ss: [number + 'sekundi', number + 'sekundit'],
  18046. m: ['ühe minuti', 'üks minut'],
  18047. mm: [number + ' minuti', number + ' minutit'],
  18048. h: ['ühe tunni', 'tund aega', 'üks tund'],
  18049. hh: [number + ' tunni', number + ' tundi'],
  18050. d: ['ühe päeva', 'üks päev'],
  18051. M: ['kuu aja', 'kuu aega', 'üks kuu'],
  18052. MM: [number + ' kuu', number + ' kuud'],
  18053. y: ['ühe aasta', 'aasta', 'üks aasta'],
  18054. yy: [number + ' aasta', number + ' aastat']
  18055. };
  18056. if (withoutSuffix) {
  18057. return format[key][2] ? format[key][2] : format[key][1];
  18058. }
  18059. return isFuture ? format[key][0] : format[key][1];
  18060. }
  18061. var et = moment.defineLocale('et', {
  18062. months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'),
  18063. monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
  18064. weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'),
  18065. weekdaysShort: 'P_E_T_K_N_R_L'.split('_'),
  18066. weekdaysMin: 'P_E_T_K_N_R_L'.split('_'),
  18067. longDateFormat: {
  18068. LT: 'H:mm',
  18069. LTS: 'H:mm:ss',
  18070. L: 'DD.MM.YYYY',
  18071. LL: 'D. MMMM YYYY',
  18072. LLL: 'D. MMMM YYYY H:mm',
  18073. LLLL: 'dddd, D. MMMM YYYY H:mm'
  18074. },
  18075. calendar: {
  18076. sameDay: '[Täna,] LT',
  18077. nextDay: '[Homme,] LT',
  18078. nextWeek: '[Järgmine] dddd LT',
  18079. lastDay: '[Eile,] LT',
  18080. lastWeek: '[Eelmine] dddd LT',
  18081. sameElse: 'L'
  18082. },
  18083. relativeTime: {
  18084. future: '%s pärast',
  18085. past: '%s tagasi',
  18086. s: processRelativeTime,
  18087. ss: processRelativeTime,
  18088. m: processRelativeTime,
  18089. mm: processRelativeTime,
  18090. h: processRelativeTime,
  18091. hh: processRelativeTime,
  18092. d: processRelativeTime,
  18093. dd: '%d päeva',
  18094. M: processRelativeTime,
  18095. MM: processRelativeTime,
  18096. y: processRelativeTime,
  18097. yy: processRelativeTime
  18098. },
  18099. dayOfMonthOrdinalParse: /\d{1,2}\./,
  18100. ordinal: '%d.',
  18101. week: {
  18102. dow: 1,
  18103. // Monday is the first day of the week.
  18104. doy: 4 // The week that contains Jan 4th is the first week of the year.
  18105. }
  18106. });
  18107. return et;
  18108. });
  18109. /***/ }),
  18110. /* 83 */
  18111. /*!***************************************************************!*\
  18112. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/eu.js ***!
  18113. \***************************************************************/
  18114. /*! no static exports found */
  18115. /***/ (function(module, exports, __webpack_require__) {
  18116. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18117. //! moment.js locale configuration
  18118. //! locale : Basque [eu]
  18119. //! author : Eneko Illarramendi : https://github.com/eillarra
  18120. ;
  18121. (function (global, factory) {
  18122. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18123. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18124. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18125. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18126. })(this, function (moment) {
  18127. 'use strict';
  18128. //! moment.js locale configuration
  18129. var eu = moment.defineLocale('eu', {
  18130. months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),
  18131. monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),
  18132. monthsParseExact: true,
  18133. weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),
  18134. weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'),
  18135. weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'),
  18136. weekdaysParseExact: true,
  18137. longDateFormat: {
  18138. LT: 'HH:mm',
  18139. LTS: 'HH:mm:ss',
  18140. L: 'YYYY-MM-DD',
  18141. LL: 'YYYY[ko] MMMM[ren] D[a]',
  18142. LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm',
  18143. LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
  18144. l: 'YYYY-M-D',
  18145. ll: 'YYYY[ko] MMM D[a]',
  18146. lll: 'YYYY[ko] MMM D[a] HH:mm',
  18147. llll: 'ddd, YYYY[ko] MMM D[a] HH:mm'
  18148. },
  18149. calendar: {
  18150. sameDay: '[gaur] LT[etan]',
  18151. nextDay: '[bihar] LT[etan]',
  18152. nextWeek: 'dddd LT[etan]',
  18153. lastDay: '[atzo] LT[etan]',
  18154. lastWeek: '[aurreko] dddd LT[etan]',
  18155. sameElse: 'L'
  18156. },
  18157. relativeTime: {
  18158. future: '%s barru',
  18159. past: 'duela %s',
  18160. s: 'segundo batzuk',
  18161. ss: '%d segundo',
  18162. m: 'minutu bat',
  18163. mm: '%d minutu',
  18164. h: 'ordu bat',
  18165. hh: '%d ordu',
  18166. d: 'egun bat',
  18167. dd: '%d egun',
  18168. M: 'hilabete bat',
  18169. MM: '%d hilabete',
  18170. y: 'urte bat',
  18171. yy: '%d urte'
  18172. },
  18173. dayOfMonthOrdinalParse: /\d{1,2}\./,
  18174. ordinal: '%d.',
  18175. week: {
  18176. dow: 1,
  18177. // Monday is the first day of the week.
  18178. doy: 7 // The week that contains Jan 7th is the first week of the year.
  18179. }
  18180. });
  18181. return eu;
  18182. });
  18183. /***/ }),
  18184. /* 84 */
  18185. /*!***************************************************************!*\
  18186. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/fa.js ***!
  18187. \***************************************************************/
  18188. /*! no static exports found */
  18189. /***/ (function(module, exports, __webpack_require__) {
  18190. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18191. //! moment.js locale configuration
  18192. //! locale : Persian [fa]
  18193. //! author : Ebrahim Byagowi : https://github.com/ebraminio
  18194. ;
  18195. (function (global, factory) {
  18196. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18197. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18198. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18199. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18200. })(this, function (moment) {
  18201. 'use strict';
  18202. //! moment.js locale configuration
  18203. var symbolMap = {
  18204. 1: '۱',
  18205. 2: '۲',
  18206. 3: '۳',
  18207. 4: '۴',
  18208. 5: '۵',
  18209. 6: '۶',
  18210. 7: '۷',
  18211. 8: '۸',
  18212. 9: '۹',
  18213. 0: '۰'
  18214. },
  18215. numberMap = {
  18216. '۱': '1',
  18217. '۲': '2',
  18218. '۳': '3',
  18219. '۴': '4',
  18220. '۵': '5',
  18221. '۶': '6',
  18222. '۷': '7',
  18223. '۸': '8',
  18224. '۹': '9',
  18225. '۰': '0'
  18226. };
  18227. var fa = moment.defineLocale('fa', {
  18228. months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
  18229. monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
  18230. weekdays: "\u06CC\u06A9\u200C\u0634\u0646\u0628\u0647_\u062F\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200C\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067E\u0646\u062C\u200C\u0634\u0646\u0628\u0647_\u062C\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split('_'),
  18231. weekdaysShort: "\u06CC\u06A9\u200C\u0634\u0646\u0628\u0647_\u062F\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200C\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067E\u0646\u062C\u200C\u0634\u0646\u0628\u0647_\u062C\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split('_'),
  18232. weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),
  18233. weekdaysParseExact: true,
  18234. longDateFormat: {
  18235. LT: 'HH:mm',
  18236. LTS: 'HH:mm:ss',
  18237. L: 'DD/MM/YYYY',
  18238. LL: 'D MMMM YYYY',
  18239. LLL: 'D MMMM YYYY HH:mm',
  18240. LLLL: 'dddd, D MMMM YYYY HH:mm'
  18241. },
  18242. meridiemParse: /قبل از ظهر|بعد از ظهر/,
  18243. isPM: function isPM(input) {
  18244. return /بعد از ظهر/.test(input);
  18245. },
  18246. meridiem: function meridiem(hour, minute, isLower) {
  18247. if (hour < 12) {
  18248. return 'قبل از ظهر';
  18249. } else {
  18250. return 'بعد از ظهر';
  18251. }
  18252. },
  18253. calendar: {
  18254. sameDay: '[امروز ساعت] LT',
  18255. nextDay: '[فردا ساعت] LT',
  18256. nextWeek: 'dddd [ساعت] LT',
  18257. lastDay: '[دیروز ساعت] LT',
  18258. lastWeek: 'dddd [پیش] [ساعت] LT',
  18259. sameElse: 'L'
  18260. },
  18261. relativeTime: {
  18262. future: 'در %s',
  18263. past: '%s پیش',
  18264. s: 'چند ثانیه',
  18265. ss: '%d ثانیه',
  18266. m: 'یک دقیقه',
  18267. mm: '%d دقیقه',
  18268. h: 'یک ساعت',
  18269. hh: '%d ساعت',
  18270. d: 'یک روز',
  18271. dd: '%d روز',
  18272. M: 'یک ماه',
  18273. MM: '%d ماه',
  18274. y: 'یک سال',
  18275. yy: '%d سال'
  18276. },
  18277. preparse: function preparse(string) {
  18278. return string.replace(/[۰-۹]/g, function (match) {
  18279. return numberMap[match];
  18280. }).replace(/،/g, ',');
  18281. },
  18282. postformat: function postformat(string) {
  18283. return string.replace(/\d/g, function (match) {
  18284. return symbolMap[match];
  18285. }).replace(/,/g, '،');
  18286. },
  18287. dayOfMonthOrdinalParse: /\d{1,2}م/,
  18288. ordinal: '%dم',
  18289. week: {
  18290. dow: 6,
  18291. // Saturday is the first day of the week.
  18292. doy: 12 // The week that contains Jan 12th is the first week of the year.
  18293. }
  18294. });
  18295. return fa;
  18296. });
  18297. /***/ }),
  18298. /* 85 */
  18299. /*!***************************************************************!*\
  18300. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/fi.js ***!
  18301. \***************************************************************/
  18302. /*! no static exports found */
  18303. /***/ (function(module, exports, __webpack_require__) {
  18304. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18305. //! moment.js locale configuration
  18306. //! locale : Finnish [fi]
  18307. //! author : Tarmo Aidantausta : https://github.com/bleadof
  18308. ;
  18309. (function (global, factory) {
  18310. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18311. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18312. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18313. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18314. })(this, function (moment) {
  18315. 'use strict';
  18316. //! moment.js locale configuration
  18317. var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '),
  18318. numbersFuture = ['nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden', numbersPast[7], numbersPast[8], numbersPast[9]];
  18319. function translate(number, withoutSuffix, key, isFuture) {
  18320. var result = '';
  18321. switch (key) {
  18322. case 's':
  18323. return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
  18324. case 'ss':
  18325. result = isFuture ? 'sekunnin' : 'sekuntia';
  18326. break;
  18327. case 'm':
  18328. return isFuture ? 'minuutin' : 'minuutti';
  18329. case 'mm':
  18330. result = isFuture ? 'minuutin' : 'minuuttia';
  18331. break;
  18332. case 'h':
  18333. return isFuture ? 'tunnin' : 'tunti';
  18334. case 'hh':
  18335. result = isFuture ? 'tunnin' : 'tuntia';
  18336. break;
  18337. case 'd':
  18338. return isFuture ? 'päivän' : 'päivä';
  18339. case 'dd':
  18340. result = isFuture ? 'päivän' : 'päivää';
  18341. break;
  18342. case 'M':
  18343. return isFuture ? 'kuukauden' : 'kuukausi';
  18344. case 'MM':
  18345. result = isFuture ? 'kuukauden' : 'kuukautta';
  18346. break;
  18347. case 'y':
  18348. return isFuture ? 'vuoden' : 'vuosi';
  18349. case 'yy':
  18350. result = isFuture ? 'vuoden' : 'vuotta';
  18351. break;
  18352. }
  18353. result = verbalNumber(number, isFuture) + ' ' + result;
  18354. return result;
  18355. }
  18356. function verbalNumber(number, isFuture) {
  18357. return number < 10 ? isFuture ? numbersFuture[number] : numbersPast[number] : number;
  18358. }
  18359. var fi = moment.defineLocale('fi', {
  18360. months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'),
  18361. monthsShort: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'),
  18362. weekdays: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'),
  18363. weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'),
  18364. weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'),
  18365. longDateFormat: {
  18366. LT: 'HH.mm',
  18367. LTS: 'HH.mm.ss',
  18368. L: 'DD.MM.YYYY',
  18369. LL: 'Do MMMM[ta] YYYY',
  18370. LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm',
  18371. LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
  18372. l: 'D.M.YYYY',
  18373. ll: 'Do MMM YYYY',
  18374. lll: 'Do MMM YYYY, [klo] HH.mm',
  18375. llll: 'ddd, Do MMM YYYY, [klo] HH.mm'
  18376. },
  18377. calendar: {
  18378. sameDay: '[tänään] [klo] LT',
  18379. nextDay: '[huomenna] [klo] LT',
  18380. nextWeek: 'dddd [klo] LT',
  18381. lastDay: '[eilen] [klo] LT',
  18382. lastWeek: '[viime] dddd[na] [klo] LT',
  18383. sameElse: 'L'
  18384. },
  18385. relativeTime: {
  18386. future: '%s päästä',
  18387. past: '%s sitten',
  18388. s: translate,
  18389. ss: translate,
  18390. m: translate,
  18391. mm: translate,
  18392. h: translate,
  18393. hh: translate,
  18394. d: translate,
  18395. dd: translate,
  18396. M: translate,
  18397. MM: translate,
  18398. y: translate,
  18399. yy: translate
  18400. },
  18401. dayOfMonthOrdinalParse: /\d{1,2}\./,
  18402. ordinal: '%d.',
  18403. week: {
  18404. dow: 1,
  18405. // Monday is the first day of the week.
  18406. doy: 4 // The week that contains Jan 4th is the first week of the year.
  18407. }
  18408. });
  18409. return fi;
  18410. });
  18411. /***/ }),
  18412. /* 86 */
  18413. /*!****************************************************************!*\
  18414. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/fil.js ***!
  18415. \****************************************************************/
  18416. /*! no static exports found */
  18417. /***/ (function(module, exports, __webpack_require__) {
  18418. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18419. //! moment.js locale configuration
  18420. //! locale : Filipino [fil]
  18421. //! author : Dan Hagman : https://github.com/hagmandan
  18422. //! author : Matthew Co : https://github.com/matthewdeeco
  18423. ;
  18424. (function (global, factory) {
  18425. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18426. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18427. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18428. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18429. })(this, function (moment) {
  18430. 'use strict';
  18431. //! moment.js locale configuration
  18432. var fil = moment.defineLocale('fil', {
  18433. months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),
  18434. monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  18435. weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),
  18436. weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  18437. weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  18438. longDateFormat: {
  18439. LT: 'HH:mm',
  18440. LTS: 'HH:mm:ss',
  18441. L: 'MM/D/YYYY',
  18442. LL: 'MMMM D, YYYY',
  18443. LLL: 'MMMM D, YYYY HH:mm',
  18444. LLLL: 'dddd, MMMM DD, YYYY HH:mm'
  18445. },
  18446. calendar: {
  18447. sameDay: 'LT [ngayong araw]',
  18448. nextDay: '[Bukas ng] LT',
  18449. nextWeek: 'LT [sa susunod na] dddd',
  18450. lastDay: 'LT [kahapon]',
  18451. lastWeek: 'LT [noong nakaraang] dddd',
  18452. sameElse: 'L'
  18453. },
  18454. relativeTime: {
  18455. future: 'sa loob ng %s',
  18456. past: '%s ang nakalipas',
  18457. s: 'ilang segundo',
  18458. ss: '%d segundo',
  18459. m: 'isang minuto',
  18460. mm: '%d minuto',
  18461. h: 'isang oras',
  18462. hh: '%d oras',
  18463. d: 'isang araw',
  18464. dd: '%d araw',
  18465. M: 'isang buwan',
  18466. MM: '%d buwan',
  18467. y: 'isang taon',
  18468. yy: '%d taon'
  18469. },
  18470. dayOfMonthOrdinalParse: /\d{1,2}/,
  18471. ordinal: function ordinal(number) {
  18472. return number;
  18473. },
  18474. week: {
  18475. dow: 1,
  18476. // Monday is the first day of the week.
  18477. doy: 4 // The week that contains Jan 4th is the first week of the year.
  18478. }
  18479. });
  18480. return fil;
  18481. });
  18482. /***/ }),
  18483. /* 87 */
  18484. /*!***************************************************************!*\
  18485. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/fo.js ***!
  18486. \***************************************************************/
  18487. /*! no static exports found */
  18488. /***/ (function(module, exports, __webpack_require__) {
  18489. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18490. //! moment.js locale configuration
  18491. //! locale : Faroese [fo]
  18492. //! author : Ragnar Johannesen : https://github.com/ragnar123
  18493. //! author : Kristian Sakarisson : https://github.com/sakarisson
  18494. ;
  18495. (function (global, factory) {
  18496. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18497. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18498. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18499. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18500. })(this, function (moment) {
  18501. 'use strict';
  18502. //! moment.js locale configuration
  18503. var fo = moment.defineLocale('fo', {
  18504. months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  18505. monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  18506. weekdays: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),
  18507. weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
  18508. weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'),
  18509. longDateFormat: {
  18510. LT: 'HH:mm',
  18511. LTS: 'HH:mm:ss',
  18512. L: 'DD/MM/YYYY',
  18513. LL: 'D MMMM YYYY',
  18514. LLL: 'D MMMM YYYY HH:mm',
  18515. LLLL: 'dddd D. MMMM, YYYY HH:mm'
  18516. },
  18517. calendar: {
  18518. sameDay: '[Í dag kl.] LT',
  18519. nextDay: '[Í morgin kl.] LT',
  18520. nextWeek: 'dddd [kl.] LT',
  18521. lastDay: '[Í gjár kl.] LT',
  18522. lastWeek: '[síðstu] dddd [kl] LT',
  18523. sameElse: 'L'
  18524. },
  18525. relativeTime: {
  18526. future: 'um %s',
  18527. past: '%s síðani',
  18528. s: 'fá sekund',
  18529. ss: '%d sekundir',
  18530. m: 'ein minuttur',
  18531. mm: '%d minuttir',
  18532. h: 'ein tími',
  18533. hh: '%d tímar',
  18534. d: 'ein dagur',
  18535. dd: '%d dagar',
  18536. M: 'ein mánaður',
  18537. MM: '%d mánaðir',
  18538. y: 'eitt ár',
  18539. yy: '%d ár'
  18540. },
  18541. dayOfMonthOrdinalParse: /\d{1,2}\./,
  18542. ordinal: '%d.',
  18543. week: {
  18544. dow: 1,
  18545. // Monday is the first day of the week.
  18546. doy: 4 // The week that contains Jan 4th is the first week of the year.
  18547. }
  18548. });
  18549. return fo;
  18550. });
  18551. /***/ }),
  18552. /* 88 */
  18553. /*!***************************************************************!*\
  18554. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/fr.js ***!
  18555. \***************************************************************/
  18556. /*! no static exports found */
  18557. /***/ (function(module, exports, __webpack_require__) {
  18558. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18559. //! moment.js locale configuration
  18560. //! locale : French [fr]
  18561. //! author : John Fischer : https://github.com/jfroffice
  18562. ;
  18563. (function (global, factory) {
  18564. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18565. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18566. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18567. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18568. })(this, function (moment) {
  18569. 'use strict';
  18570. //! moment.js locale configuration
  18571. var monthsStrictRegex = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
  18572. monthsShortStrictRegex = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,
  18573. monthsRegex = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
  18574. monthsParse = [/^janv/i, /^févr/i, /^mars/i, /^avr/i, /^mai/i, /^juin/i, /^juil/i, /^août/i, /^sept/i, /^oct/i, /^nov/i, /^déc/i];
  18575. var fr = moment.defineLocale('fr', {
  18576. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  18577. monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  18578. monthsRegex: monthsRegex,
  18579. monthsShortRegex: monthsRegex,
  18580. monthsStrictRegex: monthsStrictRegex,
  18581. monthsShortStrictRegex: monthsShortStrictRegex,
  18582. monthsParse: monthsParse,
  18583. longMonthsParse: monthsParse,
  18584. shortMonthsParse: monthsParse,
  18585. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  18586. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  18587. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  18588. weekdaysParseExact: true,
  18589. longDateFormat: {
  18590. LT: 'HH:mm',
  18591. LTS: 'HH:mm:ss',
  18592. L: 'DD/MM/YYYY',
  18593. LL: 'D MMMM YYYY',
  18594. LLL: 'D MMMM YYYY HH:mm',
  18595. LLLL: 'dddd D MMMM YYYY HH:mm'
  18596. },
  18597. calendar: {
  18598. sameDay: '[Aujourd’hui à] LT',
  18599. nextDay: '[Demain à] LT',
  18600. nextWeek: 'dddd [à] LT',
  18601. lastDay: '[Hier à] LT',
  18602. lastWeek: 'dddd [dernier à] LT',
  18603. sameElse: 'L'
  18604. },
  18605. relativeTime: {
  18606. future: 'dans %s',
  18607. past: 'il y a %s',
  18608. s: 'quelques secondes',
  18609. ss: '%d secondes',
  18610. m: 'une minute',
  18611. mm: '%d minutes',
  18612. h: 'une heure',
  18613. hh: '%d heures',
  18614. d: 'un jour',
  18615. dd: '%d jours',
  18616. w: 'une semaine',
  18617. ww: '%d semaines',
  18618. M: 'un mois',
  18619. MM: '%d mois',
  18620. y: 'un an',
  18621. yy: '%d ans'
  18622. },
  18623. dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
  18624. ordinal: function ordinal(number, period) {
  18625. switch (period) {
  18626. // TODO: Return 'e' when day of month > 1. Move this case inside
  18627. // block for masculine words below.
  18628. // See https://github.com/moment/moment/issues/3375
  18629. case 'D':
  18630. return number + (number === 1 ? 'er' : '');
  18631. // Words with masculine grammatical gender: mois, trimestre, jour
  18632. default:
  18633. case 'M':
  18634. case 'Q':
  18635. case 'DDD':
  18636. case 'd':
  18637. return number + (number === 1 ? 'er' : 'e');
  18638. // Words with feminine grammatical gender: semaine
  18639. case 'w':
  18640. case 'W':
  18641. return number + (number === 1 ? 're' : 'e');
  18642. }
  18643. },
  18644. week: {
  18645. dow: 1,
  18646. // Monday is the first day of the week.
  18647. doy: 4 // The week that contains Jan 4th is the first week of the year.
  18648. }
  18649. });
  18650. return fr;
  18651. });
  18652. /***/ }),
  18653. /* 89 */
  18654. /*!******************************************************************!*\
  18655. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/fr-ca.js ***!
  18656. \******************************************************************/
  18657. /*! no static exports found */
  18658. /***/ (function(module, exports, __webpack_require__) {
  18659. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18660. //! moment.js locale configuration
  18661. //! locale : French (Canada) [fr-ca]
  18662. //! author : Jonathan Abourbih : https://github.com/jonbca
  18663. ;
  18664. (function (global, factory) {
  18665. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18666. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18667. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18668. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18669. })(this, function (moment) {
  18670. 'use strict';
  18671. //! moment.js locale configuration
  18672. var frCa = moment.defineLocale('fr-ca', {
  18673. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  18674. monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  18675. monthsParseExact: true,
  18676. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  18677. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  18678. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  18679. weekdaysParseExact: true,
  18680. longDateFormat: {
  18681. LT: 'HH:mm',
  18682. LTS: 'HH:mm:ss',
  18683. L: 'YYYY-MM-DD',
  18684. LL: 'D MMMM YYYY',
  18685. LLL: 'D MMMM YYYY HH:mm',
  18686. LLLL: 'dddd D MMMM YYYY HH:mm'
  18687. },
  18688. calendar: {
  18689. sameDay: '[Aujourd’hui à] LT',
  18690. nextDay: '[Demain à] LT',
  18691. nextWeek: 'dddd [à] LT',
  18692. lastDay: '[Hier à] LT',
  18693. lastWeek: 'dddd [dernier à] LT',
  18694. sameElse: 'L'
  18695. },
  18696. relativeTime: {
  18697. future: 'dans %s',
  18698. past: 'il y a %s',
  18699. s: 'quelques secondes',
  18700. ss: '%d secondes',
  18701. m: 'une minute',
  18702. mm: '%d minutes',
  18703. h: 'une heure',
  18704. hh: '%d heures',
  18705. d: 'un jour',
  18706. dd: '%d jours',
  18707. M: 'un mois',
  18708. MM: '%d mois',
  18709. y: 'un an',
  18710. yy: '%d ans'
  18711. },
  18712. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  18713. ordinal: function ordinal(number, period) {
  18714. switch (period) {
  18715. // Words with masculine grammatical gender: mois, trimestre, jour
  18716. default:
  18717. case 'M':
  18718. case 'Q':
  18719. case 'D':
  18720. case 'DDD':
  18721. case 'd':
  18722. return number + (number === 1 ? 'er' : 'e');
  18723. // Words with feminine grammatical gender: semaine
  18724. case 'w':
  18725. case 'W':
  18726. return number + (number === 1 ? 're' : 'e');
  18727. }
  18728. }
  18729. });
  18730. return frCa;
  18731. });
  18732. /***/ }),
  18733. /* 90 */
  18734. /*!******************************************************************!*\
  18735. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/fr-ch.js ***!
  18736. \******************************************************************/
  18737. /*! no static exports found */
  18738. /***/ (function(module, exports, __webpack_require__) {
  18739. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18740. //! moment.js locale configuration
  18741. //! locale : French (Switzerland) [fr-ch]
  18742. //! author : Gaspard Bucher : https://github.com/gaspard
  18743. ;
  18744. (function (global, factory) {
  18745. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18746. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18747. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18748. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18749. })(this, function (moment) {
  18750. 'use strict';
  18751. //! moment.js locale configuration
  18752. var frCh = moment.defineLocale('fr-ch', {
  18753. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  18754. monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  18755. monthsParseExact: true,
  18756. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  18757. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  18758. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  18759. weekdaysParseExact: true,
  18760. longDateFormat: {
  18761. LT: 'HH:mm',
  18762. LTS: 'HH:mm:ss',
  18763. L: 'DD.MM.YYYY',
  18764. LL: 'D MMMM YYYY',
  18765. LLL: 'D MMMM YYYY HH:mm',
  18766. LLLL: 'dddd D MMMM YYYY HH:mm'
  18767. },
  18768. calendar: {
  18769. sameDay: '[Aujourd’hui à] LT',
  18770. nextDay: '[Demain à] LT',
  18771. nextWeek: 'dddd [à] LT',
  18772. lastDay: '[Hier à] LT',
  18773. lastWeek: 'dddd [dernier à] LT',
  18774. sameElse: 'L'
  18775. },
  18776. relativeTime: {
  18777. future: 'dans %s',
  18778. past: 'il y a %s',
  18779. s: 'quelques secondes',
  18780. ss: '%d secondes',
  18781. m: 'une minute',
  18782. mm: '%d minutes',
  18783. h: 'une heure',
  18784. hh: '%d heures',
  18785. d: 'un jour',
  18786. dd: '%d jours',
  18787. M: 'un mois',
  18788. MM: '%d mois',
  18789. y: 'un an',
  18790. yy: '%d ans'
  18791. },
  18792. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  18793. ordinal: function ordinal(number, period) {
  18794. switch (period) {
  18795. // Words with masculine grammatical gender: mois, trimestre, jour
  18796. default:
  18797. case 'M':
  18798. case 'Q':
  18799. case 'D':
  18800. case 'DDD':
  18801. case 'd':
  18802. return number + (number === 1 ? 'er' : 'e');
  18803. // Words with feminine grammatical gender: semaine
  18804. case 'w':
  18805. case 'W':
  18806. return number + (number === 1 ? 're' : 'e');
  18807. }
  18808. },
  18809. week: {
  18810. dow: 1,
  18811. // Monday is the first day of the week.
  18812. doy: 4 // The week that contains Jan 4th is the first week of the year.
  18813. }
  18814. });
  18815. return frCh;
  18816. });
  18817. /***/ }),
  18818. /* 91 */
  18819. /*!***************************************************************!*\
  18820. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/fy.js ***!
  18821. \***************************************************************/
  18822. /*! no static exports found */
  18823. /***/ (function(module, exports, __webpack_require__) {
  18824. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18825. //! moment.js locale configuration
  18826. //! locale : Frisian [fy]
  18827. //! author : Robin van der Vliet : https://github.com/robin0van0der0v
  18828. ;
  18829. (function (global, factory) {
  18830. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18831. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18832. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18833. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18834. })(this, function (moment) {
  18835. 'use strict';
  18836. //! moment.js locale configuration
  18837. var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
  18838. monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
  18839. var fy = moment.defineLocale('fy', {
  18840. months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
  18841. monthsShort: function monthsShort(m, format) {
  18842. if (!m) {
  18843. return monthsShortWithDots;
  18844. } else if (/-MMM-/.test(format)) {
  18845. return monthsShortWithoutDots[m.month()];
  18846. } else {
  18847. return monthsShortWithDots[m.month()];
  18848. }
  18849. },
  18850. monthsParseExact: true,
  18851. weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),
  18852. weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),
  18853. weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
  18854. weekdaysParseExact: true,
  18855. longDateFormat: {
  18856. LT: 'HH:mm',
  18857. LTS: 'HH:mm:ss',
  18858. L: 'DD-MM-YYYY',
  18859. LL: 'D MMMM YYYY',
  18860. LLL: 'D MMMM YYYY HH:mm',
  18861. LLLL: 'dddd D MMMM YYYY HH:mm'
  18862. },
  18863. calendar: {
  18864. sameDay: '[hjoed om] LT',
  18865. nextDay: '[moarn om] LT',
  18866. nextWeek: 'dddd [om] LT',
  18867. lastDay: '[juster om] LT',
  18868. lastWeek: '[ôfrûne] dddd [om] LT',
  18869. sameElse: 'L'
  18870. },
  18871. relativeTime: {
  18872. future: 'oer %s',
  18873. past: '%s lyn',
  18874. s: 'in pear sekonden',
  18875. ss: '%d sekonden',
  18876. m: 'ien minút',
  18877. mm: '%d minuten',
  18878. h: 'ien oere',
  18879. hh: '%d oeren',
  18880. d: 'ien dei',
  18881. dd: '%d dagen',
  18882. M: 'ien moanne',
  18883. MM: '%d moannen',
  18884. y: 'ien jier',
  18885. yy: '%d jierren'
  18886. },
  18887. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  18888. ordinal: function ordinal(number) {
  18889. return number + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de');
  18890. },
  18891. week: {
  18892. dow: 1,
  18893. // Monday is the first day of the week.
  18894. doy: 4 // The week that contains Jan 4th is the first week of the year.
  18895. }
  18896. });
  18897. return fy;
  18898. });
  18899. /***/ }),
  18900. /* 92 */
  18901. /*!***************************************************************!*\
  18902. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ga.js ***!
  18903. \***************************************************************/
  18904. /*! no static exports found */
  18905. /***/ (function(module, exports, __webpack_require__) {
  18906. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18907. //! moment.js locale configuration
  18908. //! locale : Irish or Irish Gaelic [ga]
  18909. //! author : André Silva : https://github.com/askpt
  18910. ;
  18911. (function (global, factory) {
  18912. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18913. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18914. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18915. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18916. })(this, function (moment) {
  18917. 'use strict';
  18918. //! moment.js locale configuration
  18919. var months = ['Eanáir', 'Feabhra', 'Márta', 'Aibreán', 'Bealtaine', 'Meitheamh', 'Iúil', 'Lúnasa', 'Meán Fómhair', 'Deireadh Fómhair', 'Samhain', 'Nollaig'],
  18920. monthsShort = ['Ean', 'Feabh', 'Márt', 'Aib', 'Beal', 'Meith', 'Iúil', 'Lún', 'M.F.', 'D.F.', 'Samh', 'Noll'],
  18921. weekdays = ['Dé Domhnaigh', 'Dé Luain', 'Dé Máirt', 'Dé Céadaoin', 'Déardaoin', 'Dé hAoine', 'Dé Sathairn'],
  18922. weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'],
  18923. weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa'];
  18924. var ga = moment.defineLocale('ga', {
  18925. months: months,
  18926. monthsShort: monthsShort,
  18927. monthsParseExact: true,
  18928. weekdays: weekdays,
  18929. weekdaysShort: weekdaysShort,
  18930. weekdaysMin: weekdaysMin,
  18931. longDateFormat: {
  18932. LT: 'HH:mm',
  18933. LTS: 'HH:mm:ss',
  18934. L: 'DD/MM/YYYY',
  18935. LL: 'D MMMM YYYY',
  18936. LLL: 'D MMMM YYYY HH:mm',
  18937. LLLL: 'dddd, D MMMM YYYY HH:mm'
  18938. },
  18939. calendar: {
  18940. sameDay: '[Inniu ag] LT',
  18941. nextDay: '[Amárach ag] LT',
  18942. nextWeek: 'dddd [ag] LT',
  18943. lastDay: '[Inné ag] LT',
  18944. lastWeek: 'dddd [seo caite] [ag] LT',
  18945. sameElse: 'L'
  18946. },
  18947. relativeTime: {
  18948. future: 'i %s',
  18949. past: '%s ó shin',
  18950. s: 'cúpla soicind',
  18951. ss: '%d soicind',
  18952. m: 'nóiméad',
  18953. mm: '%d nóiméad',
  18954. h: 'uair an chloig',
  18955. hh: '%d uair an chloig',
  18956. d: 'lá',
  18957. dd: '%d lá',
  18958. M: 'mí',
  18959. MM: '%d míonna',
  18960. y: 'bliain',
  18961. yy: '%d bliain'
  18962. },
  18963. dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
  18964. ordinal: function ordinal(number) {
  18965. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  18966. return number + output;
  18967. },
  18968. week: {
  18969. dow: 1,
  18970. // Monday is the first day of the week.
  18971. doy: 4 // The week that contains Jan 4th is the first week of the year.
  18972. }
  18973. });
  18974. return ga;
  18975. });
  18976. /***/ }),
  18977. /* 93 */
  18978. /*!***************************************************************!*\
  18979. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/gd.js ***!
  18980. \***************************************************************/
  18981. /*! no static exports found */
  18982. /***/ (function(module, exports, __webpack_require__) {
  18983. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18984. //! moment.js locale configuration
  18985. //! locale : Scottish Gaelic [gd]
  18986. //! author : Jon Ashdown : https://github.com/jonashdown
  18987. ;
  18988. (function (global, factory) {
  18989. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18990. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18991. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18992. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18993. })(this, function (moment) {
  18994. 'use strict';
  18995. //! moment.js locale configuration
  18996. var months = ['Am Faoilleach', 'An Gearran', 'Am Màrt', 'An Giblean', 'An Cèitean', 'An t-Ògmhios', 'An t-Iuchar', 'An Lùnastal', 'An t-Sultain', 'An Dàmhair', 'An t-Samhain', 'An Dùbhlachd'],
  18997. monthsShort = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'],
  18998. weekdays = ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'],
  18999. weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'],
  19000. weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
  19001. var gd = moment.defineLocale('gd', {
  19002. months: months,
  19003. monthsShort: monthsShort,
  19004. monthsParseExact: true,
  19005. weekdays: weekdays,
  19006. weekdaysShort: weekdaysShort,
  19007. weekdaysMin: weekdaysMin,
  19008. longDateFormat: {
  19009. LT: 'HH:mm',
  19010. LTS: 'HH:mm:ss',
  19011. L: 'DD/MM/YYYY',
  19012. LL: 'D MMMM YYYY',
  19013. LLL: 'D MMMM YYYY HH:mm',
  19014. LLLL: 'dddd, D MMMM YYYY HH:mm'
  19015. },
  19016. calendar: {
  19017. sameDay: '[An-diugh aig] LT',
  19018. nextDay: '[A-màireach aig] LT',
  19019. nextWeek: 'dddd [aig] LT',
  19020. lastDay: '[An-dè aig] LT',
  19021. lastWeek: 'dddd [seo chaidh] [aig] LT',
  19022. sameElse: 'L'
  19023. },
  19024. relativeTime: {
  19025. future: 'ann an %s',
  19026. past: 'bho chionn %s',
  19027. s: 'beagan diogan',
  19028. ss: '%d diogan',
  19029. m: 'mionaid',
  19030. mm: '%d mionaidean',
  19031. h: 'uair',
  19032. hh: '%d uairean',
  19033. d: 'latha',
  19034. dd: '%d latha',
  19035. M: 'mìos',
  19036. MM: '%d mìosan',
  19037. y: 'bliadhna',
  19038. yy: '%d bliadhna'
  19039. },
  19040. dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
  19041. ordinal: function ordinal(number) {
  19042. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  19043. return number + output;
  19044. },
  19045. week: {
  19046. dow: 1,
  19047. // Monday is the first day of the week.
  19048. doy: 4 // The week that contains Jan 4th is the first week of the year.
  19049. }
  19050. });
  19051. return gd;
  19052. });
  19053. /***/ }),
  19054. /* 94 */
  19055. /*!***************************************************************!*\
  19056. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/gl.js ***!
  19057. \***************************************************************/
  19058. /*! no static exports found */
  19059. /***/ (function(module, exports, __webpack_require__) {
  19060. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  19061. //! moment.js locale configuration
  19062. //! locale : Galician [gl]
  19063. //! author : Juan G. Hurtado : https://github.com/juanghurtado
  19064. ;
  19065. (function (global, factory) {
  19066. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  19067. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  19068. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  19069. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  19070. })(this, function (moment) {
  19071. 'use strict';
  19072. //! moment.js locale configuration
  19073. var gl = moment.defineLocale('gl', {
  19074. months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split('_'),
  19075. monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'),
  19076. monthsParseExact: true,
  19077. weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
  19078. weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
  19079. weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),
  19080. weekdaysParseExact: true,
  19081. longDateFormat: {
  19082. LT: 'H:mm',
  19083. LTS: 'H:mm:ss',
  19084. L: 'DD/MM/YYYY',
  19085. LL: 'D [de] MMMM [de] YYYY',
  19086. LLL: 'D [de] MMMM [de] YYYY H:mm',
  19087. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm'
  19088. },
  19089. calendar: {
  19090. sameDay: function sameDay() {
  19091. return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
  19092. },
  19093. nextDay: function nextDay() {
  19094. return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
  19095. },
  19096. nextWeek: function nextWeek() {
  19097. return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';
  19098. },
  19099. lastDay: function lastDay() {
  19100. return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT';
  19101. },
  19102. lastWeek: function lastWeek() {
  19103. return '[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';
  19104. },
  19105. sameElse: 'L'
  19106. },
  19107. relativeTime: {
  19108. future: function future(str) {
  19109. if (str.indexOf('un') === 0) {
  19110. return 'n' + str;
  19111. }
  19112. return 'en ' + str;
  19113. },
  19114. past: 'hai %s',
  19115. s: 'uns segundos',
  19116. ss: '%d segundos',
  19117. m: 'un minuto',
  19118. mm: '%d minutos',
  19119. h: 'unha hora',
  19120. hh: '%d horas',
  19121. d: 'un día',
  19122. dd: '%d días',
  19123. M: 'un mes',
  19124. MM: '%d meses',
  19125. y: 'un ano',
  19126. yy: '%d anos'
  19127. },
  19128. dayOfMonthOrdinalParse: /\d{1,2}º/,
  19129. ordinal: '%dº',
  19130. week: {
  19131. dow: 1,
  19132. // Monday is the first day of the week.
  19133. doy: 4 // The week that contains Jan 4th is the first week of the year.
  19134. }
  19135. });
  19136. return gl;
  19137. });
  19138. /***/ }),
  19139. /* 95 */
  19140. /*!*********************************************************************!*\
  19141. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/gom-deva.js ***!
  19142. \*********************************************************************/
  19143. /*! no static exports found */
  19144. /***/ (function(module, exports, __webpack_require__) {
  19145. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  19146. //! moment.js locale configuration
  19147. //! locale : Konkani Devanagari script [gom-deva]
  19148. //! author : The Discoverer : https://github.com/WikiDiscoverer
  19149. ;
  19150. (function (global, factory) {
  19151. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  19152. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  19153. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  19154. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  19155. })(this, function (moment) {
  19156. 'use strict';
  19157. //! moment.js locale configuration
  19158. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  19159. var format = {
  19160. s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'],
  19161. ss: [number + ' सॅकंडांनी', number + ' सॅकंड'],
  19162. m: ['एका मिणटान', 'एक मिनूट'],
  19163. mm: [number + ' मिणटांनी', number + ' मिणटां'],
  19164. h: ['एका वरान', 'एक वर'],
  19165. hh: [number + ' वरांनी', number + ' वरां'],
  19166. d: ['एका दिसान', 'एक दीस'],
  19167. dd: [number + ' दिसांनी', number + ' दीस'],
  19168. M: ['एका म्हयन्यान', 'एक म्हयनो'],
  19169. MM: [number + ' म्हयन्यानी', number + ' म्हयने'],
  19170. y: ['एका वर्सान', 'एक वर्स'],
  19171. yy: [number + ' वर्सांनी', number + ' वर्सां']
  19172. };
  19173. return isFuture ? format[key][0] : format[key][1];
  19174. }
  19175. var gomDeva = moment.defineLocale('gom-deva', {
  19176. months: {
  19177. standalone: 'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
  19178. format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split('_'),
  19179. isFormat: /MMMM(\s)+D[oD]?/
  19180. },
  19181. monthsShort: 'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
  19182. monthsParseExact: true,
  19183. weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'),
  19184. weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'),
  19185. weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'),
  19186. weekdaysParseExact: true,
  19187. longDateFormat: {
  19188. LT: 'A h:mm [वाजतां]',
  19189. LTS: 'A h:mm:ss [वाजतां]',
  19190. L: 'DD-MM-YYYY',
  19191. LL: 'D MMMM YYYY',
  19192. LLL: 'D MMMM YYYY A h:mm [वाजतां]',
  19193. LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]',
  19194. llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]'
  19195. },
  19196. calendar: {
  19197. sameDay: '[आयज] LT',
  19198. nextDay: '[फाल्यां] LT',
  19199. nextWeek: '[फुडलो] dddd[,] LT',
  19200. lastDay: '[काल] LT',
  19201. lastWeek: '[फाटलो] dddd[,] LT',
  19202. sameElse: 'L'
  19203. },
  19204. relativeTime: {
  19205. future: '%s',
  19206. past: '%s आदीं',
  19207. s: processRelativeTime,
  19208. ss: processRelativeTime,
  19209. m: processRelativeTime,
  19210. mm: processRelativeTime,
  19211. h: processRelativeTime,
  19212. hh: processRelativeTime,
  19213. d: processRelativeTime,
  19214. dd: processRelativeTime,
  19215. M: processRelativeTime,
  19216. MM: processRelativeTime,
  19217. y: processRelativeTime,
  19218. yy: processRelativeTime
  19219. },
  19220. dayOfMonthOrdinalParse: /\d{1,2}(वेर)/,
  19221. ordinal: function ordinal(number, period) {
  19222. switch (period) {
  19223. // the ordinal 'वेर' only applies to day of the month
  19224. case 'D':
  19225. return number + 'वेर';
  19226. default:
  19227. case 'M':
  19228. case 'Q':
  19229. case 'DDD':
  19230. case 'd':
  19231. case 'w':
  19232. case 'W':
  19233. return number;
  19234. }
  19235. },
  19236. week: {
  19237. dow: 0,
  19238. // Sunday is the first day of the week
  19239. doy: 3 // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
  19240. },
  19241. meridiemParse: /राती|सकाळीं|दनपारां|सांजे/,
  19242. meridiemHour: function meridiemHour(hour, meridiem) {
  19243. if (hour === 12) {
  19244. hour = 0;
  19245. }
  19246. if (meridiem === 'राती') {
  19247. return hour < 4 ? hour : hour + 12;
  19248. } else if (meridiem === 'सकाळीं') {
  19249. return hour;
  19250. } else if (meridiem === 'दनपारां') {
  19251. return hour > 12 ? hour : hour + 12;
  19252. } else if (meridiem === 'सांजे') {
  19253. return hour + 12;
  19254. }
  19255. },
  19256. meridiem: function meridiem(hour, minute, isLower) {
  19257. if (hour < 4) {
  19258. return 'राती';
  19259. } else if (hour < 12) {
  19260. return 'सकाळीं';
  19261. } else if (hour < 16) {
  19262. return 'दनपारां';
  19263. } else if (hour < 20) {
  19264. return 'सांजे';
  19265. } else {
  19266. return 'राती';
  19267. }
  19268. }
  19269. });
  19270. return gomDeva;
  19271. });
  19272. /***/ }),
  19273. /* 96 */
  19274. /*!*********************************************************************!*\
  19275. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/gom-latn.js ***!
  19276. \*********************************************************************/
  19277. /*! no static exports found */
  19278. /***/ (function(module, exports, __webpack_require__) {
  19279. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  19280. //! moment.js locale configuration
  19281. //! locale : Konkani Latin script [gom-latn]
  19282. //! author : The Discoverer : https://github.com/WikiDiscoverer
  19283. ;
  19284. (function (global, factory) {
  19285. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  19286. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  19287. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  19288. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  19289. })(this, function (moment) {
  19290. 'use strict';
  19291. //! moment.js locale configuration
  19292. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  19293. var format = {
  19294. s: ['thoddea sekondamni', 'thodde sekond'],
  19295. ss: [number + ' sekondamni', number + ' sekond'],
  19296. m: ['eka mintan', 'ek minut'],
  19297. mm: [number + ' mintamni', number + ' mintam'],
  19298. h: ['eka voran', 'ek vor'],
  19299. hh: [number + ' voramni', number + ' voram'],
  19300. d: ['eka disan', 'ek dis'],
  19301. dd: [number + ' disamni', number + ' dis'],
  19302. M: ['eka mhoinean', 'ek mhoino'],
  19303. MM: [number + ' mhoineamni', number + ' mhoine'],
  19304. y: ['eka vorsan', 'ek voros'],
  19305. yy: [number + ' vorsamni', number + ' vorsam']
  19306. };
  19307. return isFuture ? format[key][0] : format[key][1];
  19308. }
  19309. var gomLatn = moment.defineLocale('gom-latn', {
  19310. months: {
  19311. standalone: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split('_'),
  19312. format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split('_'),
  19313. isFormat: /MMMM(\s)+D[oD]?/
  19314. },
  19315. monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'),
  19316. monthsParseExact: true,
  19317. weekdays: "Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split('_'),
  19318. weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
  19319. weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
  19320. weekdaysParseExact: true,
  19321. longDateFormat: {
  19322. LT: 'A h:mm [vazta]',
  19323. LTS: 'A h:mm:ss [vazta]',
  19324. L: 'DD-MM-YYYY',
  19325. LL: 'D MMMM YYYY',
  19326. LLL: 'D MMMM YYYY A h:mm [vazta]',
  19327. LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]',
  19328. llll: 'ddd, D MMM YYYY, A h:mm [vazta]'
  19329. },
  19330. calendar: {
  19331. sameDay: '[Aiz] LT',
  19332. nextDay: '[Faleam] LT',
  19333. nextWeek: '[Fuddlo] dddd[,] LT',
  19334. lastDay: '[Kal] LT',
  19335. lastWeek: '[Fattlo] dddd[,] LT',
  19336. sameElse: 'L'
  19337. },
  19338. relativeTime: {
  19339. future: '%s',
  19340. past: '%s adim',
  19341. s: processRelativeTime,
  19342. ss: processRelativeTime,
  19343. m: processRelativeTime,
  19344. mm: processRelativeTime,
  19345. h: processRelativeTime,
  19346. hh: processRelativeTime,
  19347. d: processRelativeTime,
  19348. dd: processRelativeTime,
  19349. M: processRelativeTime,
  19350. MM: processRelativeTime,
  19351. y: processRelativeTime,
  19352. yy: processRelativeTime
  19353. },
  19354. dayOfMonthOrdinalParse: /\d{1,2}(er)/,
  19355. ordinal: function ordinal(number, period) {
  19356. switch (period) {
  19357. // the ordinal 'er' only applies to day of the month
  19358. case 'D':
  19359. return number + 'er';
  19360. default:
  19361. case 'M':
  19362. case 'Q':
  19363. case 'DDD':
  19364. case 'd':
  19365. case 'w':
  19366. case 'W':
  19367. return number;
  19368. }
  19369. },
  19370. week: {
  19371. dow: 0,
  19372. // Sunday is the first day of the week
  19373. doy: 3 // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
  19374. },
  19375. meridiemParse: /rati|sokallim|donparam|sanje/,
  19376. meridiemHour: function meridiemHour(hour, meridiem) {
  19377. if (hour === 12) {
  19378. hour = 0;
  19379. }
  19380. if (meridiem === 'rati') {
  19381. return hour < 4 ? hour : hour + 12;
  19382. } else if (meridiem === 'sokallim') {
  19383. return hour;
  19384. } else if (meridiem === 'donparam') {
  19385. return hour > 12 ? hour : hour + 12;
  19386. } else if (meridiem === 'sanje') {
  19387. return hour + 12;
  19388. }
  19389. },
  19390. meridiem: function meridiem(hour, minute, isLower) {
  19391. if (hour < 4) {
  19392. return 'rati';
  19393. } else if (hour < 12) {
  19394. return 'sokallim';
  19395. } else if (hour < 16) {
  19396. return 'donparam';
  19397. } else if (hour < 20) {
  19398. return 'sanje';
  19399. } else {
  19400. return 'rati';
  19401. }
  19402. }
  19403. });
  19404. return gomLatn;
  19405. });
  19406. /***/ }),
  19407. /* 97 */
  19408. /*!***************************************************************!*\
  19409. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/gu.js ***!
  19410. \***************************************************************/
  19411. /*! no static exports found */
  19412. /***/ (function(module, exports, __webpack_require__) {
  19413. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  19414. //! moment.js locale configuration
  19415. //! locale : Gujarati [gu]
  19416. //! author : Kaushik Thanki : https://github.com/Kaushik1987
  19417. ;
  19418. (function (global, factory) {
  19419. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  19420. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  19421. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  19422. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  19423. })(this, function (moment) {
  19424. 'use strict';
  19425. //! moment.js locale configuration
  19426. var symbolMap = {
  19427. 1: '૧',
  19428. 2: '૨',
  19429. 3: '૩',
  19430. 4: '૪',
  19431. 5: '૫',
  19432. 6: '૬',
  19433. 7: '૭',
  19434. 8: '૮',
  19435. 9: '૯',
  19436. 0: '૦'
  19437. },
  19438. numberMap = {
  19439. '૧': '1',
  19440. '૨': '2',
  19441. '૩': '3',
  19442. '૪': '4',
  19443. '૫': '5',
  19444. '૬': '6',
  19445. '૭': '7',
  19446. '૮': '8',
  19447. '૯': '9',
  19448. '૦': '0'
  19449. };
  19450. var gu = moment.defineLocale('gu', {
  19451. months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split('_'),
  19452. monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split('_'),
  19453. monthsParseExact: true,
  19454. weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split('_'),
  19455. weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
  19456. weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
  19457. longDateFormat: {
  19458. LT: 'A h:mm વાગ્યે',
  19459. LTS: 'A h:mm:ss વાગ્યે',
  19460. L: 'DD/MM/YYYY',
  19461. LL: 'D MMMM YYYY',
  19462. LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
  19463. LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે'
  19464. },
  19465. calendar: {
  19466. sameDay: '[આજ] LT',
  19467. nextDay: '[કાલે] LT',
  19468. nextWeek: 'dddd, LT',
  19469. lastDay: '[ગઇકાલે] LT',
  19470. lastWeek: '[પાછલા] dddd, LT',
  19471. sameElse: 'L'
  19472. },
  19473. relativeTime: {
  19474. future: '%s મા',
  19475. past: '%s પહેલા',
  19476. s: 'અમુક પળો',
  19477. ss: '%d સેકંડ',
  19478. m: 'એક મિનિટ',
  19479. mm: '%d મિનિટ',
  19480. h: 'એક કલાક',
  19481. hh: '%d કલાક',
  19482. d: 'એક દિવસ',
  19483. dd: '%d દિવસ',
  19484. M: 'એક મહિનો',
  19485. MM: '%d મહિનો',
  19486. y: 'એક વર્ષ',
  19487. yy: '%d વર્ષ'
  19488. },
  19489. preparse: function preparse(string) {
  19490. return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {
  19491. return numberMap[match];
  19492. });
  19493. },
  19494. postformat: function postformat(string) {
  19495. return string.replace(/\d/g, function (match) {
  19496. return symbolMap[match];
  19497. });
  19498. },
  19499. // Gujarati notation for meridiems are quite fuzzy in practice. While there exists
  19500. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.
  19501. meridiemParse: /રાત|બપોર|સવાર|સાંજ/,
  19502. meridiemHour: function meridiemHour(hour, meridiem) {
  19503. if (hour === 12) {
  19504. hour = 0;
  19505. }
  19506. if (meridiem === 'રાત') {
  19507. return hour < 4 ? hour : hour + 12;
  19508. } else if (meridiem === 'સવાર') {
  19509. return hour;
  19510. } else if (meridiem === 'બપોર') {
  19511. return hour >= 10 ? hour : hour + 12;
  19512. } else if (meridiem === 'સાંજ') {
  19513. return hour + 12;
  19514. }
  19515. },
  19516. meridiem: function meridiem(hour, minute, isLower) {
  19517. if (hour < 4) {
  19518. return 'રાત';
  19519. } else if (hour < 10) {
  19520. return 'સવાર';
  19521. } else if (hour < 17) {
  19522. return 'બપોર';
  19523. } else if (hour < 20) {
  19524. return 'સાંજ';
  19525. } else {
  19526. return 'રાત';
  19527. }
  19528. },
  19529. week: {
  19530. dow: 0,
  19531. // Sunday is the first day of the week.
  19532. doy: 6 // The week that contains Jan 6th is the first week of the year.
  19533. }
  19534. });
  19535. return gu;
  19536. });
  19537. /***/ }),
  19538. /* 98 */
  19539. /*!***************************************************************!*\
  19540. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/he.js ***!
  19541. \***************************************************************/
  19542. /*! no static exports found */
  19543. /***/ (function(module, exports, __webpack_require__) {
  19544. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  19545. //! moment.js locale configuration
  19546. //! locale : Hebrew [he]
  19547. //! author : Tomer Cohen : https://github.com/tomer
  19548. //! author : Moshe Simantov : https://github.com/DevelopmentIL
  19549. //! author : Tal Ater : https://github.com/TalAter
  19550. ;
  19551. (function (global, factory) {
  19552. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  19553. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  19554. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  19555. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  19556. })(this, function (moment) {
  19557. 'use strict';
  19558. //! moment.js locale configuration
  19559. var he = moment.defineLocale('he', {
  19560. months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),
  19561. monthsShort: 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
  19562. weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
  19563. weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
  19564. weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'),
  19565. longDateFormat: {
  19566. LT: 'HH:mm',
  19567. LTS: 'HH:mm:ss',
  19568. L: 'DD/MM/YYYY',
  19569. LL: 'D [ב]MMMM YYYY',
  19570. LLL: 'D [ב]MMMM YYYY HH:mm',
  19571. LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',
  19572. l: 'D/M/YYYY',
  19573. ll: 'D MMM YYYY',
  19574. lll: 'D MMM YYYY HH:mm',
  19575. llll: 'ddd, D MMM YYYY HH:mm'
  19576. },
  19577. calendar: {
  19578. sameDay: '[היום ב־]LT',
  19579. nextDay: '[מחר ב־]LT',
  19580. nextWeek: 'dddd [בשעה] LT',
  19581. lastDay: '[אתמול ב־]LT',
  19582. lastWeek: '[ביום] dddd [האחרון בשעה] LT',
  19583. sameElse: 'L'
  19584. },
  19585. relativeTime: {
  19586. future: 'בעוד %s',
  19587. past: 'לפני %s',
  19588. s: 'מספר שניות',
  19589. ss: '%d שניות',
  19590. m: 'דקה',
  19591. mm: '%d דקות',
  19592. h: 'שעה',
  19593. hh: function hh(number) {
  19594. if (number === 2) {
  19595. return 'שעתיים';
  19596. }
  19597. return number + ' שעות';
  19598. },
  19599. d: 'יום',
  19600. dd: function dd(number) {
  19601. if (number === 2) {
  19602. return 'יומיים';
  19603. }
  19604. return number + ' ימים';
  19605. },
  19606. M: 'חודש',
  19607. MM: function MM(number) {
  19608. if (number === 2) {
  19609. return 'חודשיים';
  19610. }
  19611. return number + ' חודשים';
  19612. },
  19613. y: 'שנה',
  19614. yy: function yy(number) {
  19615. if (number === 2) {
  19616. return 'שנתיים';
  19617. } else if (number % 10 === 0 && number !== 10) {
  19618. return number + ' שנה';
  19619. }
  19620. return number + ' שנים';
  19621. }
  19622. },
  19623. meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
  19624. isPM: function isPM(input) {
  19625. return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
  19626. },
  19627. meridiem: function meridiem(hour, minute, isLower) {
  19628. if (hour < 5) {
  19629. return 'לפנות בוקר';
  19630. } else if (hour < 10) {
  19631. return 'בבוקר';
  19632. } else if (hour < 12) {
  19633. return isLower ? 'לפנה"צ' : 'לפני הצהריים';
  19634. } else if (hour < 18) {
  19635. return isLower ? 'אחה"צ' : 'אחרי הצהריים';
  19636. } else {
  19637. return 'בערב';
  19638. }
  19639. }
  19640. });
  19641. return he;
  19642. });
  19643. /***/ }),
  19644. /* 99 */
  19645. /*!***************************************************************!*\
  19646. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/hi.js ***!
  19647. \***************************************************************/
  19648. /*! no static exports found */
  19649. /***/ (function(module, exports, __webpack_require__) {
  19650. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  19651. //! moment.js locale configuration
  19652. //! locale : Hindi [hi]
  19653. //! author : Mayank Singhal : https://github.com/mayanksinghal
  19654. ;
  19655. (function (global, factory) {
  19656. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  19657. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  19658. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  19659. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  19660. })(this, function (moment) {
  19661. 'use strict';
  19662. //! moment.js locale configuration
  19663. var symbolMap = {
  19664. 1: '१',
  19665. 2: '२',
  19666. 3: '३',
  19667. 4: '४',
  19668. 5: '५',
  19669. 6: '६',
  19670. 7: '७',
  19671. 8: '८',
  19672. 9: '९',
  19673. 0: '०'
  19674. },
  19675. numberMap = {
  19676. '१': '1',
  19677. '२': '2',
  19678. '३': '3',
  19679. '४': '4',
  19680. '५': '5',
  19681. '६': '6',
  19682. '७': '7',
  19683. '८': '8',
  19684. '९': '9',
  19685. '०': '0'
  19686. },
  19687. monthsParse = [/^जन/i, /^फ़र|फर/i, /^मार्च/i, /^अप्रै/i, /^मई/i, /^जून/i, /^जुल/i, /^अग/i, /^सितं|सित/i, /^अक्टू/i, /^नव|नवं/i, /^दिसं|दिस/i],
  19688. shortMonthsParse = [/^जन/i, /^फ़र/i, /^मार्च/i, /^अप्रै/i, /^मई/i, /^जून/i, /^जुल/i, /^अग/i, /^सित/i, /^अक्टू/i, /^नव/i, /^दिस/i];
  19689. var hi = moment.defineLocale('hi', {
  19690. months: {
  19691. format: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),
  19692. standalone: 'जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर'.split('_')
  19693. },
  19694. monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
  19695. weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  19696. weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
  19697. weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
  19698. longDateFormat: {
  19699. LT: 'A h:mm बजे',
  19700. LTS: 'A h:mm:ss बजे',
  19701. L: 'DD/MM/YYYY',
  19702. LL: 'D MMMM YYYY',
  19703. LLL: 'D MMMM YYYY, A h:mm बजे',
  19704. LLLL: 'dddd, D MMMM YYYY, A h:mm बजे'
  19705. },
  19706. monthsParse: monthsParse,
  19707. longMonthsParse: monthsParse,
  19708. shortMonthsParse: shortMonthsParse,
  19709. monthsRegex: /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,
  19710. monthsShortRegex: /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,
  19711. monthsStrictRegex: /^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,
  19712. monthsShortStrictRegex: /^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,
  19713. calendar: {
  19714. sameDay: '[आज] LT',
  19715. nextDay: '[कल] LT',
  19716. nextWeek: 'dddd, LT',
  19717. lastDay: '[कल] LT',
  19718. lastWeek: '[पिछले] dddd, LT',
  19719. sameElse: 'L'
  19720. },
  19721. relativeTime: {
  19722. future: '%s में',
  19723. past: '%s पहले',
  19724. s: 'कुछ ही क्षण',
  19725. ss: '%d सेकंड',
  19726. m: 'एक मिनट',
  19727. mm: '%d मिनट',
  19728. h: 'एक घंटा',
  19729. hh: '%d घंटे',
  19730. d: 'एक दिन',
  19731. dd: '%d दिन',
  19732. M: 'एक महीने',
  19733. MM: '%d महीने',
  19734. y: 'एक वर्ष',
  19735. yy: '%d वर्ष'
  19736. },
  19737. preparse: function preparse(string) {
  19738. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  19739. return numberMap[match];
  19740. });
  19741. },
  19742. postformat: function postformat(string) {
  19743. return string.replace(/\d/g, function (match) {
  19744. return symbolMap[match];
  19745. });
  19746. },
  19747. // Hindi notation for meridiems are quite fuzzy in practice. While there exists
  19748. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
  19749. meridiemParse: /रात|सुबह|दोपहर|शाम/,
  19750. meridiemHour: function meridiemHour(hour, meridiem) {
  19751. if (hour === 12) {
  19752. hour = 0;
  19753. }
  19754. if (meridiem === 'रात') {
  19755. return hour < 4 ? hour : hour + 12;
  19756. } else if (meridiem === 'सुबह') {
  19757. return hour;
  19758. } else if (meridiem === 'दोपहर') {
  19759. return hour >= 10 ? hour : hour + 12;
  19760. } else if (meridiem === 'शाम') {
  19761. return hour + 12;
  19762. }
  19763. },
  19764. meridiem: function meridiem(hour, minute, isLower) {
  19765. if (hour < 4) {
  19766. return 'रात';
  19767. } else if (hour < 10) {
  19768. return 'सुबह';
  19769. } else if (hour < 17) {
  19770. return 'दोपहर';
  19771. } else if (hour < 20) {
  19772. return 'शाम';
  19773. } else {
  19774. return 'रात';
  19775. }
  19776. },
  19777. week: {
  19778. dow: 0,
  19779. // Sunday is the first day of the week.
  19780. doy: 6 // The week that contains Jan 6th is the first week of the year.
  19781. }
  19782. });
  19783. return hi;
  19784. });
  19785. /***/ }),
  19786. /* 100 */
  19787. /*!***************************************************************!*\
  19788. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/hr.js ***!
  19789. \***************************************************************/
  19790. /*! no static exports found */
  19791. /***/ (function(module, exports, __webpack_require__) {
  19792. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  19793. //! moment.js locale configuration
  19794. //! locale : Croatian [hr]
  19795. //! author : Bojan Marković : https://github.com/bmarkovic
  19796. ;
  19797. (function (global, factory) {
  19798. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  19799. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  19800. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  19801. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  19802. })(this, function (moment) {
  19803. 'use strict';
  19804. //! moment.js locale configuration
  19805. function translate(number, withoutSuffix, key) {
  19806. var result = number + ' ';
  19807. switch (key) {
  19808. case 'ss':
  19809. if (number === 1) {
  19810. result += 'sekunda';
  19811. } else if (number === 2 || number === 3 || number === 4) {
  19812. result += 'sekunde';
  19813. } else {
  19814. result += 'sekundi';
  19815. }
  19816. return result;
  19817. case 'm':
  19818. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  19819. case 'mm':
  19820. if (number === 1) {
  19821. result += 'minuta';
  19822. } else if (number === 2 || number === 3 || number === 4) {
  19823. result += 'minute';
  19824. } else {
  19825. result += 'minuta';
  19826. }
  19827. return result;
  19828. case 'h':
  19829. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  19830. case 'hh':
  19831. if (number === 1) {
  19832. result += 'sat';
  19833. } else if (number === 2 || number === 3 || number === 4) {
  19834. result += 'sata';
  19835. } else {
  19836. result += 'sati';
  19837. }
  19838. return result;
  19839. case 'dd':
  19840. if (number === 1) {
  19841. result += 'dan';
  19842. } else {
  19843. result += 'dana';
  19844. }
  19845. return result;
  19846. case 'MM':
  19847. if (number === 1) {
  19848. result += 'mjesec';
  19849. } else if (number === 2 || number === 3 || number === 4) {
  19850. result += 'mjeseca';
  19851. } else {
  19852. result += 'mjeseci';
  19853. }
  19854. return result;
  19855. case 'yy':
  19856. if (number === 1) {
  19857. result += 'godina';
  19858. } else if (number === 2 || number === 3 || number === 4) {
  19859. result += 'godine';
  19860. } else {
  19861. result += 'godina';
  19862. }
  19863. return result;
  19864. }
  19865. }
  19866. var hr = moment.defineLocale('hr', {
  19867. months: {
  19868. format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split('_'),
  19869. standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_')
  19870. },
  19871. monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),
  19872. monthsParseExact: true,
  19873. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  19874. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  19875. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  19876. weekdaysParseExact: true,
  19877. longDateFormat: {
  19878. LT: 'H:mm',
  19879. LTS: 'H:mm:ss',
  19880. L: 'DD.MM.YYYY',
  19881. LL: 'Do MMMM YYYY',
  19882. LLL: 'Do MMMM YYYY H:mm',
  19883. LLLL: 'dddd, Do MMMM YYYY H:mm'
  19884. },
  19885. calendar: {
  19886. sameDay: '[danas u] LT',
  19887. nextDay: '[sutra u] LT',
  19888. nextWeek: function nextWeek() {
  19889. switch (this.day()) {
  19890. case 0:
  19891. return '[u] [nedjelju] [u] LT';
  19892. case 3:
  19893. return '[u] [srijedu] [u] LT';
  19894. case 6:
  19895. return '[u] [subotu] [u] LT';
  19896. case 1:
  19897. case 2:
  19898. case 4:
  19899. case 5:
  19900. return '[u] dddd [u] LT';
  19901. }
  19902. },
  19903. lastDay: '[jučer u] LT',
  19904. lastWeek: function lastWeek() {
  19905. switch (this.day()) {
  19906. case 0:
  19907. return '[prošlu] [nedjelju] [u] LT';
  19908. case 3:
  19909. return '[prošlu] [srijedu] [u] LT';
  19910. case 6:
  19911. return '[prošle] [subote] [u] LT';
  19912. case 1:
  19913. case 2:
  19914. case 4:
  19915. case 5:
  19916. return '[prošli] dddd [u] LT';
  19917. }
  19918. },
  19919. sameElse: 'L'
  19920. },
  19921. relativeTime: {
  19922. future: 'za %s',
  19923. past: 'prije %s',
  19924. s: 'par sekundi',
  19925. ss: translate,
  19926. m: translate,
  19927. mm: translate,
  19928. h: translate,
  19929. hh: translate,
  19930. d: 'dan',
  19931. dd: translate,
  19932. M: 'mjesec',
  19933. MM: translate,
  19934. y: 'godinu',
  19935. yy: translate
  19936. },
  19937. dayOfMonthOrdinalParse: /\d{1,2}\./,
  19938. ordinal: '%d.',
  19939. week: {
  19940. dow: 1,
  19941. // Monday is the first day of the week.
  19942. doy: 7 // The week that contains Jan 7th is the first week of the year.
  19943. }
  19944. });
  19945. return hr;
  19946. });
  19947. /***/ }),
  19948. /* 101 */
  19949. /*!***************************************************************!*\
  19950. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/hu.js ***!
  19951. \***************************************************************/
  19952. /*! no static exports found */
  19953. /***/ (function(module, exports, __webpack_require__) {
  19954. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  19955. //! moment.js locale configuration
  19956. //! locale : Hungarian [hu]
  19957. //! author : Adam Brunner : https://github.com/adambrunner
  19958. //! author : Peter Viszt : https://github.com/passatgt
  19959. ;
  19960. (function (global, factory) {
  19961. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  19962. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  19963. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  19964. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  19965. })(this, function (moment) {
  19966. 'use strict';
  19967. //! moment.js locale configuration
  19968. var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
  19969. function translate(number, withoutSuffix, key, isFuture) {
  19970. var num = number;
  19971. switch (key) {
  19972. case 's':
  19973. return isFuture || withoutSuffix ? 'néhány másodperc' : 'néhány másodperce';
  19974. case 'ss':
  19975. return num + (isFuture || withoutSuffix) ? ' másodperc' : ' másodperce';
  19976. case 'm':
  19977. return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
  19978. case 'mm':
  19979. return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
  19980. case 'h':
  19981. return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
  19982. case 'hh':
  19983. return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
  19984. case 'd':
  19985. return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
  19986. case 'dd':
  19987. return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
  19988. case 'M':
  19989. return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  19990. case 'MM':
  19991. return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  19992. case 'y':
  19993. return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
  19994. case 'yy':
  19995. return num + (isFuture || withoutSuffix ? ' év' : ' éve');
  19996. }
  19997. return '';
  19998. }
  19999. function week(isFuture) {
  20000. return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';
  20001. }
  20002. var hu = moment.defineLocale('hu', {
  20003. months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),
  20004. monthsShort: 'jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.'.split('_'),
  20005. monthsParseExact: true,
  20006. weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
  20007. weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
  20008. weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),
  20009. longDateFormat: {
  20010. LT: 'H:mm',
  20011. LTS: 'H:mm:ss',
  20012. L: 'YYYY.MM.DD.',
  20013. LL: 'YYYY. MMMM D.',
  20014. LLL: 'YYYY. MMMM D. H:mm',
  20015. LLLL: 'YYYY. MMMM D., dddd H:mm'
  20016. },
  20017. meridiemParse: /de|du/i,
  20018. isPM: function isPM(input) {
  20019. return input.charAt(1).toLowerCase() === 'u';
  20020. },
  20021. meridiem: function meridiem(hours, minutes, isLower) {
  20022. if (hours < 12) {
  20023. return isLower === true ? 'de' : 'DE';
  20024. } else {
  20025. return isLower === true ? 'du' : 'DU';
  20026. }
  20027. },
  20028. calendar: {
  20029. sameDay: '[ma] LT[-kor]',
  20030. nextDay: '[holnap] LT[-kor]',
  20031. nextWeek: function nextWeek() {
  20032. return week.call(this, true);
  20033. },
  20034. lastDay: '[tegnap] LT[-kor]',
  20035. lastWeek: function lastWeek() {
  20036. return week.call(this, false);
  20037. },
  20038. sameElse: 'L'
  20039. },
  20040. relativeTime: {
  20041. future: '%s múlva',
  20042. past: '%s',
  20043. s: translate,
  20044. ss: translate,
  20045. m: translate,
  20046. mm: translate,
  20047. h: translate,
  20048. hh: translate,
  20049. d: translate,
  20050. dd: translate,
  20051. M: translate,
  20052. MM: translate,
  20053. y: translate,
  20054. yy: translate
  20055. },
  20056. dayOfMonthOrdinalParse: /\d{1,2}\./,
  20057. ordinal: '%d.',
  20058. week: {
  20059. dow: 1,
  20060. // Monday is the first day of the week.
  20061. doy: 4 // The week that contains Jan 4th is the first week of the year.
  20062. }
  20063. });
  20064. return hu;
  20065. });
  20066. /***/ }),
  20067. /* 102 */
  20068. /*!******************************************************************!*\
  20069. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/hy-am.js ***!
  20070. \******************************************************************/
  20071. /*! no static exports found */
  20072. /***/ (function(module, exports, __webpack_require__) {
  20073. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20074. //! moment.js locale configuration
  20075. //! locale : Armenian [hy-am]
  20076. //! author : Armendarabyan : https://github.com/armendarabyan
  20077. ;
  20078. (function (global, factory) {
  20079. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20080. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20081. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20082. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  20083. })(this, function (moment) {
  20084. 'use strict';
  20085. //! moment.js locale configuration
  20086. var hyAm = moment.defineLocale('hy-am', {
  20087. months: {
  20088. format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_'),
  20089. standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_')
  20090. },
  20091. monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
  20092. weekdays: 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_'),
  20093. weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  20094. weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  20095. longDateFormat: {
  20096. LT: 'HH:mm',
  20097. LTS: 'HH:mm:ss',
  20098. L: 'DD.MM.YYYY',
  20099. LL: 'D MMMM YYYY թ.',
  20100. LLL: 'D MMMM YYYY թ., HH:mm',
  20101. LLLL: 'dddd, D MMMM YYYY թ., HH:mm'
  20102. },
  20103. calendar: {
  20104. sameDay: '[այսօր] LT',
  20105. nextDay: '[վաղը] LT',
  20106. lastDay: '[երեկ] LT',
  20107. nextWeek: function nextWeek() {
  20108. return 'dddd [օրը ժամը] LT';
  20109. },
  20110. lastWeek: function lastWeek() {
  20111. return '[անցած] dddd [օրը ժամը] LT';
  20112. },
  20113. sameElse: 'L'
  20114. },
  20115. relativeTime: {
  20116. future: '%s հետո',
  20117. past: '%s առաջ',
  20118. s: 'մի քանի վայրկյան',
  20119. ss: '%d վայրկյան',
  20120. m: 'րոպե',
  20121. mm: '%d րոպե',
  20122. h: 'ժամ',
  20123. hh: '%d ժամ',
  20124. d: 'օր',
  20125. dd: '%d օր',
  20126. M: 'ամիս',
  20127. MM: '%d ամիս',
  20128. y: 'տարի',
  20129. yy: '%d տարի'
  20130. },
  20131. meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
  20132. isPM: function isPM(input) {
  20133. return /^(ցերեկվա|երեկոյան)$/.test(input);
  20134. },
  20135. meridiem: function meridiem(hour) {
  20136. if (hour < 4) {
  20137. return 'գիշերվա';
  20138. } else if (hour < 12) {
  20139. return 'առավոտվա';
  20140. } else if (hour < 17) {
  20141. return 'ցերեկվա';
  20142. } else {
  20143. return 'երեկոյան';
  20144. }
  20145. },
  20146. dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
  20147. ordinal: function ordinal(number, period) {
  20148. switch (period) {
  20149. case 'DDD':
  20150. case 'w':
  20151. case 'W':
  20152. case 'DDDo':
  20153. if (number === 1) {
  20154. return number + '-ին';
  20155. }
  20156. return number + '-րդ';
  20157. default:
  20158. return number;
  20159. }
  20160. },
  20161. week: {
  20162. dow: 1,
  20163. // Monday is the first day of the week.
  20164. doy: 7 // The week that contains Jan 7th is the first week of the year.
  20165. }
  20166. });
  20167. return hyAm;
  20168. });
  20169. /***/ }),
  20170. /* 103 */
  20171. /*!***************************************************************!*\
  20172. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/id.js ***!
  20173. \***************************************************************/
  20174. /*! no static exports found */
  20175. /***/ (function(module, exports, __webpack_require__) {
  20176. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20177. //! moment.js locale configuration
  20178. //! locale : Indonesian [id]
  20179. //! author : Mohammad Satrio Utomo : https://github.com/tyok
  20180. //! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan
  20181. ;
  20182. (function (global, factory) {
  20183. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20184. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20185. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20186. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  20187. })(this, function (moment) {
  20188. 'use strict';
  20189. //! moment.js locale configuration
  20190. var id = moment.defineLocale('id', {
  20191. months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
  20192. monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),
  20193. weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
  20194. weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
  20195. weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
  20196. longDateFormat: {
  20197. LT: 'HH.mm',
  20198. LTS: 'HH.mm.ss',
  20199. L: 'DD/MM/YYYY',
  20200. LL: 'D MMMM YYYY',
  20201. LLL: 'D MMMM YYYY [pukul] HH.mm',
  20202. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'
  20203. },
  20204. meridiemParse: /pagi|siang|sore|malam/,
  20205. meridiemHour: function meridiemHour(hour, meridiem) {
  20206. if (hour === 12) {
  20207. hour = 0;
  20208. }
  20209. if (meridiem === 'pagi') {
  20210. return hour;
  20211. } else if (meridiem === 'siang') {
  20212. return hour >= 11 ? hour : hour + 12;
  20213. } else if (meridiem === 'sore' || meridiem === 'malam') {
  20214. return hour + 12;
  20215. }
  20216. },
  20217. meridiem: function meridiem(hours, minutes, isLower) {
  20218. if (hours < 11) {
  20219. return 'pagi';
  20220. } else if (hours < 15) {
  20221. return 'siang';
  20222. } else if (hours < 19) {
  20223. return 'sore';
  20224. } else {
  20225. return 'malam';
  20226. }
  20227. },
  20228. calendar: {
  20229. sameDay: '[Hari ini pukul] LT',
  20230. nextDay: '[Besok pukul] LT',
  20231. nextWeek: 'dddd [pukul] LT',
  20232. lastDay: '[Kemarin pukul] LT',
  20233. lastWeek: 'dddd [lalu pukul] LT',
  20234. sameElse: 'L'
  20235. },
  20236. relativeTime: {
  20237. future: 'dalam %s',
  20238. past: '%s yang lalu',
  20239. s: 'beberapa detik',
  20240. ss: '%d detik',
  20241. m: 'semenit',
  20242. mm: '%d menit',
  20243. h: 'sejam',
  20244. hh: '%d jam',
  20245. d: 'sehari',
  20246. dd: '%d hari',
  20247. M: 'sebulan',
  20248. MM: '%d bulan',
  20249. y: 'setahun',
  20250. yy: '%d tahun'
  20251. },
  20252. week: {
  20253. dow: 0,
  20254. // Sunday is the first day of the week.
  20255. doy: 6 // The week that contains Jan 6th is the first week of the year.
  20256. }
  20257. });
  20258. return id;
  20259. });
  20260. /***/ }),
  20261. /* 104 */
  20262. /*!***************************************************************!*\
  20263. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/is.js ***!
  20264. \***************************************************************/
  20265. /*! no static exports found */
  20266. /***/ (function(module, exports, __webpack_require__) {
  20267. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20268. //! moment.js locale configuration
  20269. //! locale : Icelandic [is]
  20270. //! author : Hinrik Örn Sigurðsson : https://github.com/hinrik
  20271. ;
  20272. (function (global, factory) {
  20273. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20274. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20275. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20276. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  20277. })(this, function (moment) {
  20278. 'use strict';
  20279. //! moment.js locale configuration
  20280. function plural(n) {
  20281. if (n % 100 === 11) {
  20282. return true;
  20283. } else if (n % 10 === 1) {
  20284. return false;
  20285. }
  20286. return true;
  20287. }
  20288. function translate(number, withoutSuffix, key, isFuture) {
  20289. var result = number + ' ';
  20290. switch (key) {
  20291. case 's':
  20292. return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum';
  20293. case 'ss':
  20294. if (plural(number)) {
  20295. return result + (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum');
  20296. }
  20297. return result + 'sekúnda';
  20298. case 'm':
  20299. return withoutSuffix ? 'mínúta' : 'mínútu';
  20300. case 'mm':
  20301. if (plural(number)) {
  20302. return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum');
  20303. } else if (withoutSuffix) {
  20304. return result + 'mínúta';
  20305. }
  20306. return result + 'mínútu';
  20307. case 'hh':
  20308. if (plural(number)) {
  20309. return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum');
  20310. }
  20311. return result + 'klukkustund';
  20312. case 'd':
  20313. if (withoutSuffix) {
  20314. return 'dagur';
  20315. }
  20316. return isFuture ? 'dag' : 'degi';
  20317. case 'dd':
  20318. if (plural(number)) {
  20319. if (withoutSuffix) {
  20320. return result + 'dagar';
  20321. }
  20322. return result + (isFuture ? 'daga' : 'dögum');
  20323. } else if (withoutSuffix) {
  20324. return result + 'dagur';
  20325. }
  20326. return result + (isFuture ? 'dag' : 'degi');
  20327. case 'M':
  20328. if (withoutSuffix) {
  20329. return 'mánuður';
  20330. }
  20331. return isFuture ? 'mánuð' : 'mánuði';
  20332. case 'MM':
  20333. if (plural(number)) {
  20334. if (withoutSuffix) {
  20335. return result + 'mánuðir';
  20336. }
  20337. return result + (isFuture ? 'mánuði' : 'mánuðum');
  20338. } else if (withoutSuffix) {
  20339. return result + 'mánuður';
  20340. }
  20341. return result + (isFuture ? 'mánuð' : 'mánuði');
  20342. case 'y':
  20343. return withoutSuffix || isFuture ? 'ár' : 'ári';
  20344. case 'yy':
  20345. if (plural(number)) {
  20346. return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
  20347. }
  20348. return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
  20349. }
  20350. }
  20351. var is = moment.defineLocale('is', {
  20352. months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),
  20353. monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
  20354. weekdays: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),
  20355. weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
  20356. weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
  20357. longDateFormat: {
  20358. LT: 'H:mm',
  20359. LTS: 'H:mm:ss',
  20360. L: 'DD.MM.YYYY',
  20361. LL: 'D. MMMM YYYY',
  20362. LLL: 'D. MMMM YYYY [kl.] H:mm',
  20363. LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm'
  20364. },
  20365. calendar: {
  20366. sameDay: '[í dag kl.] LT',
  20367. nextDay: '[á morgun kl.] LT',
  20368. nextWeek: 'dddd [kl.] LT',
  20369. lastDay: '[í gær kl.] LT',
  20370. lastWeek: '[síðasta] dddd [kl.] LT',
  20371. sameElse: 'L'
  20372. },
  20373. relativeTime: {
  20374. future: 'eftir %s',
  20375. past: 'fyrir %s síðan',
  20376. s: translate,
  20377. ss: translate,
  20378. m: translate,
  20379. mm: translate,
  20380. h: 'klukkustund',
  20381. hh: translate,
  20382. d: translate,
  20383. dd: translate,
  20384. M: translate,
  20385. MM: translate,
  20386. y: translate,
  20387. yy: translate
  20388. },
  20389. dayOfMonthOrdinalParse: /\d{1,2}\./,
  20390. ordinal: '%d.',
  20391. week: {
  20392. dow: 1,
  20393. // Monday is the first day of the week.
  20394. doy: 4 // The week that contains Jan 4th is the first week of the year.
  20395. }
  20396. });
  20397. return is;
  20398. });
  20399. /***/ }),
  20400. /* 105 */
  20401. /*!***************************************************************!*\
  20402. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/it.js ***!
  20403. \***************************************************************/
  20404. /*! no static exports found */
  20405. /***/ (function(module, exports, __webpack_require__) {
  20406. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20407. //! moment.js locale configuration
  20408. //! locale : Italian [it]
  20409. //! author : Lorenzo : https://github.com/aliem
  20410. //! author: Mattia Larentis: https://github.com/nostalgiaz
  20411. //! author: Marco : https://github.com/Manfre98
  20412. ;
  20413. (function (global, factory) {
  20414. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20415. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20416. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20417. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  20418. })(this, function (moment) {
  20419. 'use strict';
  20420. //! moment.js locale configuration
  20421. var it = moment.defineLocale('it', {
  20422. months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
  20423. monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  20424. weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),
  20425. weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
  20426. weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
  20427. longDateFormat: {
  20428. LT: 'HH:mm',
  20429. LTS: 'HH:mm:ss',
  20430. L: 'DD/MM/YYYY',
  20431. LL: 'D MMMM YYYY',
  20432. LLL: 'D MMMM YYYY HH:mm',
  20433. LLLL: 'dddd D MMMM YYYY HH:mm'
  20434. },
  20435. calendar: {
  20436. sameDay: function sameDay() {
  20437. return '[Oggi a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + ']LT';
  20438. },
  20439. nextDay: function nextDay() {
  20440. return '[Domani a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + ']LT';
  20441. },
  20442. nextWeek: function nextWeek() {
  20443. return 'dddd [a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + ']LT';
  20444. },
  20445. lastDay: function lastDay() {
  20446. return '[Ieri a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + ']LT';
  20447. },
  20448. lastWeek: function lastWeek() {
  20449. switch (this.day()) {
  20450. case 0:
  20451. return '[La scorsa] dddd [a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + ']LT';
  20452. default:
  20453. return '[Lo scorso] dddd [a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + ']LT';
  20454. }
  20455. },
  20456. sameElse: 'L'
  20457. },
  20458. relativeTime: {
  20459. future: 'tra %s',
  20460. past: '%s fa',
  20461. s: 'alcuni secondi',
  20462. ss: '%d secondi',
  20463. m: 'un minuto',
  20464. mm: '%d minuti',
  20465. h: "un'ora",
  20466. hh: '%d ore',
  20467. d: 'un giorno',
  20468. dd: '%d giorni',
  20469. w: 'una settimana',
  20470. ww: '%d settimane',
  20471. M: 'un mese',
  20472. MM: '%d mesi',
  20473. y: 'un anno',
  20474. yy: '%d anni'
  20475. },
  20476. dayOfMonthOrdinalParse: /\d{1,2}º/,
  20477. ordinal: '%dº',
  20478. week: {
  20479. dow: 1,
  20480. // Monday is the first day of the week.
  20481. doy: 4 // The week that contains Jan 4th is the first week of the year.
  20482. }
  20483. });
  20484. return it;
  20485. });
  20486. /***/ }),
  20487. /* 106 */
  20488. /*!******************************************************************!*\
  20489. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/it-ch.js ***!
  20490. \******************************************************************/
  20491. /*! no static exports found */
  20492. /***/ (function(module, exports, __webpack_require__) {
  20493. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20494. //! moment.js locale configuration
  20495. //! locale : Italian (Switzerland) [it-ch]
  20496. //! author : xfh : https://github.com/xfh
  20497. ;
  20498. (function (global, factory) {
  20499. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20500. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20501. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20502. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  20503. })(this, function (moment) {
  20504. 'use strict';
  20505. //! moment.js locale configuration
  20506. var itCh = moment.defineLocale('it-ch', {
  20507. months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
  20508. monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  20509. weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),
  20510. weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
  20511. weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
  20512. longDateFormat: {
  20513. LT: 'HH:mm',
  20514. LTS: 'HH:mm:ss',
  20515. L: 'DD.MM.YYYY',
  20516. LL: 'D MMMM YYYY',
  20517. LLL: 'D MMMM YYYY HH:mm',
  20518. LLLL: 'dddd D MMMM YYYY HH:mm'
  20519. },
  20520. calendar: {
  20521. sameDay: '[Oggi alle] LT',
  20522. nextDay: '[Domani alle] LT',
  20523. nextWeek: 'dddd [alle] LT',
  20524. lastDay: '[Ieri alle] LT',
  20525. lastWeek: function lastWeek() {
  20526. switch (this.day()) {
  20527. case 0:
  20528. return '[la scorsa] dddd [alle] LT';
  20529. default:
  20530. return '[lo scorso] dddd [alle] LT';
  20531. }
  20532. },
  20533. sameElse: 'L'
  20534. },
  20535. relativeTime: {
  20536. future: function future(s) {
  20537. return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s;
  20538. },
  20539. past: '%s fa',
  20540. s: 'alcuni secondi',
  20541. ss: '%d secondi',
  20542. m: 'un minuto',
  20543. mm: '%d minuti',
  20544. h: "un'ora",
  20545. hh: '%d ore',
  20546. d: 'un giorno',
  20547. dd: '%d giorni',
  20548. M: 'un mese',
  20549. MM: '%d mesi',
  20550. y: 'un anno',
  20551. yy: '%d anni'
  20552. },
  20553. dayOfMonthOrdinalParse: /\d{1,2}º/,
  20554. ordinal: '%dº',
  20555. week: {
  20556. dow: 1,
  20557. // Monday is the first day of the week.
  20558. doy: 4 // The week that contains Jan 4th is the first week of the year.
  20559. }
  20560. });
  20561. return itCh;
  20562. });
  20563. /***/ }),
  20564. /* 107 */
  20565. /*!***************************************************************!*\
  20566. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ja.js ***!
  20567. \***************************************************************/
  20568. /*! no static exports found */
  20569. /***/ (function(module, exports, __webpack_require__) {
  20570. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20571. //! moment.js locale configuration
  20572. //! locale : Japanese [ja]
  20573. //! author : LI Long : https://github.com/baryon
  20574. ;
  20575. (function (global, factory) {
  20576. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20577. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20578. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20579. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  20580. })(this, function (moment) {
  20581. 'use strict';
  20582. //! moment.js locale configuration
  20583. var ja = moment.defineLocale('ja', {
  20584. eras: [{
  20585. since: '2019-05-01',
  20586. offset: 1,
  20587. name: '令和',
  20588. narrow: '㋿',
  20589. abbr: 'R'
  20590. }, {
  20591. since: '1989-01-08',
  20592. until: '2019-04-30',
  20593. offset: 1,
  20594. name: '平成',
  20595. narrow: '㍻',
  20596. abbr: 'H'
  20597. }, {
  20598. since: '1926-12-25',
  20599. until: '1989-01-07',
  20600. offset: 1,
  20601. name: '昭和',
  20602. narrow: '㍼',
  20603. abbr: 'S'
  20604. }, {
  20605. since: '1912-07-30',
  20606. until: '1926-12-24',
  20607. offset: 1,
  20608. name: '大正',
  20609. narrow: '㍽',
  20610. abbr: 'T'
  20611. }, {
  20612. since: '1873-01-01',
  20613. until: '1912-07-29',
  20614. offset: 6,
  20615. name: '明治',
  20616. narrow: '㍾',
  20617. abbr: 'M'
  20618. }, {
  20619. since: '0001-01-01',
  20620. until: '1873-12-31',
  20621. offset: 1,
  20622. name: '西暦',
  20623. narrow: 'AD',
  20624. abbr: 'AD'
  20625. }, {
  20626. since: '0000-12-31',
  20627. until: -Infinity,
  20628. offset: 1,
  20629. name: '紀元前',
  20630. narrow: 'BC',
  20631. abbr: 'BC'
  20632. }],
  20633. eraYearOrdinalRegex: /(元|\d+)年/,
  20634. eraYearOrdinalParse: function eraYearOrdinalParse(input, match) {
  20635. return match[1] === '元' ? 1 : parseInt(match[1] || input, 10);
  20636. },
  20637. months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  20638. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  20639. weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
  20640. weekdaysShort: '日_月_火_水_木_金_土'.split('_'),
  20641. weekdaysMin: '日_月_火_水_木_金_土'.split('_'),
  20642. longDateFormat: {
  20643. LT: 'HH:mm',
  20644. LTS: 'HH:mm:ss',
  20645. L: 'YYYY/MM/DD',
  20646. LL: 'YYYY年M月D日',
  20647. LLL: 'YYYY年M月D日 HH:mm',
  20648. LLLL: 'YYYY年M月D日 dddd HH:mm',
  20649. l: 'YYYY/MM/DD',
  20650. ll: 'YYYY年M月D日',
  20651. lll: 'YYYY年M月D日 HH:mm',
  20652. llll: 'YYYY年M月D日(ddd) HH:mm'
  20653. },
  20654. meridiemParse: /午前|午後/i,
  20655. isPM: function isPM(input) {
  20656. return input === '午後';
  20657. },
  20658. meridiem: function meridiem(hour, minute, isLower) {
  20659. if (hour < 12) {
  20660. return '午前';
  20661. } else {
  20662. return '午後';
  20663. }
  20664. },
  20665. calendar: {
  20666. sameDay: '[今日] LT',
  20667. nextDay: '[明日] LT',
  20668. nextWeek: function nextWeek(now) {
  20669. if (now.week() !== this.week()) {
  20670. return '[来週]dddd LT';
  20671. } else {
  20672. return 'dddd LT';
  20673. }
  20674. },
  20675. lastDay: '[昨日] LT',
  20676. lastWeek: function lastWeek(now) {
  20677. if (this.week() !== now.week()) {
  20678. return '[先週]dddd LT';
  20679. } else {
  20680. return 'dddd LT';
  20681. }
  20682. },
  20683. sameElse: 'L'
  20684. },
  20685. dayOfMonthOrdinalParse: /\d{1,2}日/,
  20686. ordinal: function ordinal(number, period) {
  20687. switch (period) {
  20688. case 'y':
  20689. return number === 1 ? '元年' : number + '年';
  20690. case 'd':
  20691. case 'D':
  20692. case 'DDD':
  20693. return number + '日';
  20694. default:
  20695. return number;
  20696. }
  20697. },
  20698. relativeTime: {
  20699. future: '%s後',
  20700. past: '%s前',
  20701. s: '数秒',
  20702. ss: '%d秒',
  20703. m: '1分',
  20704. mm: '%d分',
  20705. h: '1時間',
  20706. hh: '%d時間',
  20707. d: '1日',
  20708. dd: '%d日',
  20709. M: '1ヶ月',
  20710. MM: '%dヶ月',
  20711. y: '1年',
  20712. yy: '%d年'
  20713. }
  20714. });
  20715. return ja;
  20716. });
  20717. /***/ }),
  20718. /* 108 */
  20719. /*!***************************************************************!*\
  20720. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/jv.js ***!
  20721. \***************************************************************/
  20722. /*! no static exports found */
  20723. /***/ (function(module, exports, __webpack_require__) {
  20724. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20725. //! moment.js locale configuration
  20726. //! locale : Javanese [jv]
  20727. //! author : Rony Lantip : https://github.com/lantip
  20728. //! reference: http://jv.wikipedia.org/wiki/Basa_Jawa
  20729. ;
  20730. (function (global, factory) {
  20731. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20732. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20733. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20734. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  20735. })(this, function (moment) {
  20736. 'use strict';
  20737. //! moment.js locale configuration
  20738. var jv = moment.defineLocale('jv', {
  20739. months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'),
  20740. monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
  20741. weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
  20742. weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
  20743. weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
  20744. longDateFormat: {
  20745. LT: 'HH.mm',
  20746. LTS: 'HH.mm.ss',
  20747. L: 'DD/MM/YYYY',
  20748. LL: 'D MMMM YYYY',
  20749. LLL: 'D MMMM YYYY [pukul] HH.mm',
  20750. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'
  20751. },
  20752. meridiemParse: /enjing|siyang|sonten|ndalu/,
  20753. meridiemHour: function meridiemHour(hour, meridiem) {
  20754. if (hour === 12) {
  20755. hour = 0;
  20756. }
  20757. if (meridiem === 'enjing') {
  20758. return hour;
  20759. } else if (meridiem === 'siyang') {
  20760. return hour >= 11 ? hour : hour + 12;
  20761. } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
  20762. return hour + 12;
  20763. }
  20764. },
  20765. meridiem: function meridiem(hours, minutes, isLower) {
  20766. if (hours < 11) {
  20767. return 'enjing';
  20768. } else if (hours < 15) {
  20769. return 'siyang';
  20770. } else if (hours < 19) {
  20771. return 'sonten';
  20772. } else {
  20773. return 'ndalu';
  20774. }
  20775. },
  20776. calendar: {
  20777. sameDay: '[Dinten puniko pukul] LT',
  20778. nextDay: '[Mbenjang pukul] LT',
  20779. nextWeek: 'dddd [pukul] LT',
  20780. lastDay: '[Kala wingi pukul] LT',
  20781. lastWeek: 'dddd [kepengker pukul] LT',
  20782. sameElse: 'L'
  20783. },
  20784. relativeTime: {
  20785. future: 'wonten ing %s',
  20786. past: '%s ingkang kepengker',
  20787. s: 'sawetawis detik',
  20788. ss: '%d detik',
  20789. m: 'setunggal menit',
  20790. mm: '%d menit',
  20791. h: 'setunggal jam',
  20792. hh: '%d jam',
  20793. d: 'sedinten',
  20794. dd: '%d dinten',
  20795. M: 'sewulan',
  20796. MM: '%d wulan',
  20797. y: 'setaun',
  20798. yy: '%d taun'
  20799. },
  20800. week: {
  20801. dow: 1,
  20802. // Monday is the first day of the week.
  20803. doy: 7 // The week that contains Jan 7th is the first week of the year.
  20804. }
  20805. });
  20806. return jv;
  20807. });
  20808. /***/ }),
  20809. /* 109 */
  20810. /*!***************************************************************!*\
  20811. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ka.js ***!
  20812. \***************************************************************/
  20813. /*! no static exports found */
  20814. /***/ (function(module, exports, __webpack_require__) {
  20815. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20816. //! moment.js locale configuration
  20817. //! locale : Georgian [ka]
  20818. //! author : Irakli Janiashvili : https://github.com/IrakliJani
  20819. ;
  20820. (function (global, factory) {
  20821. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20822. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20823. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20824. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  20825. })(this, function (moment) {
  20826. 'use strict';
  20827. //! moment.js locale configuration
  20828. var ka = moment.defineLocale('ka', {
  20829. months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),
  20830. monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
  20831. weekdays: {
  20832. standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'),
  20833. format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_'),
  20834. isFormat: /(წინა|შემდეგ)/
  20835. },
  20836. weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
  20837. weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
  20838. longDateFormat: {
  20839. LT: 'HH:mm',
  20840. LTS: 'HH:mm:ss',
  20841. L: 'DD/MM/YYYY',
  20842. LL: 'D MMMM YYYY',
  20843. LLL: 'D MMMM YYYY HH:mm',
  20844. LLLL: 'dddd, D MMMM YYYY HH:mm'
  20845. },
  20846. calendar: {
  20847. sameDay: '[დღეს] LT[-ზე]',
  20848. nextDay: '[ხვალ] LT[-ზე]',
  20849. lastDay: '[გუშინ] LT[-ზე]',
  20850. nextWeek: '[შემდეგ] dddd LT[-ზე]',
  20851. lastWeek: '[წინა] dddd LT-ზე',
  20852. sameElse: 'L'
  20853. },
  20854. relativeTime: {
  20855. future: function future(s) {
  20856. return s.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/, function ($0, $1, $2) {
  20857. return $2 === 'ი' ? $1 + 'ში' : $1 + $2 + 'ში';
  20858. });
  20859. },
  20860. past: function past(s) {
  20861. if (/(წამი|წუთი|საათი|დღე|თვე)/.test(s)) {
  20862. return s.replace(/(ი|ე)$/, 'ის წინ');
  20863. }
  20864. if (/წელი/.test(s)) {
  20865. return s.replace(/წელი$/, 'წლის წინ');
  20866. }
  20867. return s;
  20868. },
  20869. s: 'რამდენიმე წამი',
  20870. ss: '%d წამი',
  20871. m: 'წუთი',
  20872. mm: '%d წუთი',
  20873. h: 'საათი',
  20874. hh: '%d საათი',
  20875. d: 'დღე',
  20876. dd: '%d დღე',
  20877. M: 'თვე',
  20878. MM: '%d თვე',
  20879. y: 'წელი',
  20880. yy: '%d წელი'
  20881. },
  20882. dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
  20883. ordinal: function ordinal(number) {
  20884. if (number === 0) {
  20885. return number;
  20886. }
  20887. if (number === 1) {
  20888. return number + '-ლი';
  20889. }
  20890. if (number < 20 || number <= 100 && number % 20 === 0 || number % 100 === 0) {
  20891. return 'მე-' + number;
  20892. }
  20893. return number + '-ე';
  20894. },
  20895. week: {
  20896. dow: 1,
  20897. doy: 7
  20898. }
  20899. });
  20900. return ka;
  20901. });
  20902. /***/ }),
  20903. /* 110 */
  20904. /*!***************************************************************!*\
  20905. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/kk.js ***!
  20906. \***************************************************************/
  20907. /*! no static exports found */
  20908. /***/ (function(module, exports, __webpack_require__) {
  20909. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20910. //! moment.js locale configuration
  20911. //! locale : Kazakh [kk]
  20912. //! authors : Nurlan Rakhimzhanov : https://github.com/nurlan
  20913. ;
  20914. (function (global, factory) {
  20915. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20916. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20917. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20918. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  20919. })(this, function (moment) {
  20920. 'use strict';
  20921. //! moment.js locale configuration
  20922. var suffixes = {
  20923. 0: '-ші',
  20924. 1: '-ші',
  20925. 2: '-ші',
  20926. 3: '-ші',
  20927. 4: '-ші',
  20928. 5: '-ші',
  20929. 6: '-шы',
  20930. 7: '-ші',
  20931. 8: '-ші',
  20932. 9: '-шы',
  20933. 10: '-шы',
  20934. 20: '-шы',
  20935. 30: '-шы',
  20936. 40: '-шы',
  20937. 50: '-ші',
  20938. 60: '-шы',
  20939. 70: '-ші',
  20940. 80: '-ші',
  20941. 90: '-шы',
  20942. 100: '-ші'
  20943. };
  20944. var kk = moment.defineLocale('kk', {
  20945. months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split('_'),
  20946. monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
  20947. weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split('_'),
  20948. weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
  20949. weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
  20950. longDateFormat: {
  20951. LT: 'HH:mm',
  20952. LTS: 'HH:mm:ss',
  20953. L: 'DD.MM.YYYY',
  20954. LL: 'D MMMM YYYY',
  20955. LLL: 'D MMMM YYYY HH:mm',
  20956. LLLL: 'dddd, D MMMM YYYY HH:mm'
  20957. },
  20958. calendar: {
  20959. sameDay: '[Бүгін сағат] LT',
  20960. nextDay: '[Ертең сағат] LT',
  20961. nextWeek: 'dddd [сағат] LT',
  20962. lastDay: '[Кеше сағат] LT',
  20963. lastWeek: '[Өткен аптаның] dddd [сағат] LT',
  20964. sameElse: 'L'
  20965. },
  20966. relativeTime: {
  20967. future: '%s ішінде',
  20968. past: '%s бұрын',
  20969. s: 'бірнеше секунд',
  20970. ss: '%d секунд',
  20971. m: 'бір минут',
  20972. mm: '%d минут',
  20973. h: 'бір сағат',
  20974. hh: '%d сағат',
  20975. d: 'бір күн',
  20976. dd: '%d күн',
  20977. M: 'бір ай',
  20978. MM: '%d ай',
  20979. y: 'бір жыл',
  20980. yy: '%d жыл'
  20981. },
  20982. dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/,
  20983. ordinal: function ordinal(number) {
  20984. var a = number % 10,
  20985. b = number >= 100 ? 100 : null;
  20986. return number + (suffixes[number] || suffixes[a] || suffixes[b]);
  20987. },
  20988. week: {
  20989. dow: 1,
  20990. // Monday is the first day of the week.
  20991. doy: 7 // The week that contains Jan 7th is the first week of the year.
  20992. }
  20993. });
  20994. return kk;
  20995. });
  20996. /***/ }),
  20997. /* 111 */
  20998. /*!***************************************************************!*\
  20999. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/km.js ***!
  21000. \***************************************************************/
  21001. /*! no static exports found */
  21002. /***/ (function(module, exports, __webpack_require__) {
  21003. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21004. //! moment.js locale configuration
  21005. //! locale : Cambodian [km]
  21006. //! author : Kruy Vanna : https://github.com/kruyvanna
  21007. ;
  21008. (function (global, factory) {
  21009. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21010. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21011. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21012. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  21013. })(this, function (moment) {
  21014. 'use strict';
  21015. //! moment.js locale configuration
  21016. var symbolMap = {
  21017. 1: '១',
  21018. 2: '២',
  21019. 3: '៣',
  21020. 4: '៤',
  21021. 5: '៥',
  21022. 6: '៦',
  21023. 7: '៧',
  21024. 8: '៨',
  21025. 9: '៩',
  21026. 0: '០'
  21027. },
  21028. numberMap = {
  21029. '១': '1',
  21030. '២': '2',
  21031. '៣': '3',
  21032. '៤': '4',
  21033. '៥': '5',
  21034. '៦': '6',
  21035. '៧': '7',
  21036. '៨': '8',
  21037. '៩': '9',
  21038. '០': '0'
  21039. };
  21040. var km = moment.defineLocale('km', {
  21041. months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
  21042. monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
  21043. weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  21044. weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
  21045. weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
  21046. weekdaysParseExact: true,
  21047. longDateFormat: {
  21048. LT: 'HH:mm',
  21049. LTS: 'HH:mm:ss',
  21050. L: 'DD/MM/YYYY',
  21051. LL: 'D MMMM YYYY',
  21052. LLL: 'D MMMM YYYY HH:mm',
  21053. LLLL: 'dddd, D MMMM YYYY HH:mm'
  21054. },
  21055. meridiemParse: /ព្រឹក|ល្ងាច/,
  21056. isPM: function isPM(input) {
  21057. return input === 'ល្ងាច';
  21058. },
  21059. meridiem: function meridiem(hour, minute, isLower) {
  21060. if (hour < 12) {
  21061. return 'ព្រឹក';
  21062. } else {
  21063. return 'ល្ងាច';
  21064. }
  21065. },
  21066. calendar: {
  21067. sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
  21068. nextDay: '[ស្អែក ម៉ោង] LT',
  21069. nextWeek: 'dddd [ម៉ោង] LT',
  21070. lastDay: '[ម្សិលមិញ ម៉ោង] LT',
  21071. lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
  21072. sameElse: 'L'
  21073. },
  21074. relativeTime: {
  21075. future: '%sទៀត',
  21076. past: '%sមុន',
  21077. s: 'ប៉ុន្មានវិនាទី',
  21078. ss: '%d វិនាទី',
  21079. m: 'មួយនាទី',
  21080. mm: '%d នាទី',
  21081. h: 'មួយម៉ោង',
  21082. hh: '%d ម៉ោង',
  21083. d: 'មួយថ្ងៃ',
  21084. dd: '%d ថ្ងៃ',
  21085. M: 'មួយខែ',
  21086. MM: '%d ខែ',
  21087. y: 'មួយឆ្នាំ',
  21088. yy: '%d ឆ្នាំ'
  21089. },
  21090. dayOfMonthOrdinalParse: /ទី\d{1,2}/,
  21091. ordinal: 'ទី%d',
  21092. preparse: function preparse(string) {
  21093. return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {
  21094. return numberMap[match];
  21095. });
  21096. },
  21097. postformat: function postformat(string) {
  21098. return string.replace(/\d/g, function (match) {
  21099. return symbolMap[match];
  21100. });
  21101. },
  21102. week: {
  21103. dow: 1,
  21104. // Monday is the first day of the week.
  21105. doy: 4 // The week that contains Jan 4th is the first week of the year.
  21106. }
  21107. });
  21108. return km;
  21109. });
  21110. /***/ }),
  21111. /* 112 */
  21112. /*!***************************************************************!*\
  21113. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/kn.js ***!
  21114. \***************************************************************/
  21115. /*! no static exports found */
  21116. /***/ (function(module, exports, __webpack_require__) {
  21117. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21118. //! moment.js locale configuration
  21119. //! locale : Kannada [kn]
  21120. //! author : Rajeev Naik : https://github.com/rajeevnaikte
  21121. ;
  21122. (function (global, factory) {
  21123. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21124. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21125. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21126. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  21127. })(this, function (moment) {
  21128. 'use strict';
  21129. //! moment.js locale configuration
  21130. var symbolMap = {
  21131. 1: '೧',
  21132. 2: '೨',
  21133. 3: '೩',
  21134. 4: '೪',
  21135. 5: '೫',
  21136. 6: '೬',
  21137. 7: '೭',
  21138. 8: '೮',
  21139. 9: '೯',
  21140. 0: '೦'
  21141. },
  21142. numberMap = {
  21143. '೧': '1',
  21144. '೨': '2',
  21145. '೩': '3',
  21146. '೪': '4',
  21147. '೫': '5',
  21148. '೬': '6',
  21149. '೭': '7',
  21150. '೮': '8',
  21151. '೯': '9',
  21152. '೦': '0'
  21153. };
  21154. var kn = moment.defineLocale('kn', {
  21155. months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split('_'),
  21156. monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split('_'),
  21157. monthsParseExact: true,
  21158. weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split('_'),
  21159. weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
  21160. weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
  21161. longDateFormat: {
  21162. LT: 'A h:mm',
  21163. LTS: 'A h:mm:ss',
  21164. L: 'DD/MM/YYYY',
  21165. LL: 'D MMMM YYYY',
  21166. LLL: 'D MMMM YYYY, A h:mm',
  21167. LLLL: 'dddd, D MMMM YYYY, A h:mm'
  21168. },
  21169. calendar: {
  21170. sameDay: '[ಇಂದು] LT',
  21171. nextDay: '[ನಾಳೆ] LT',
  21172. nextWeek: 'dddd, LT',
  21173. lastDay: '[ನಿನ್ನೆ] LT',
  21174. lastWeek: '[ಕೊನೆಯ] dddd, LT',
  21175. sameElse: 'L'
  21176. },
  21177. relativeTime: {
  21178. future: '%s ನಂತರ',
  21179. past: '%s ಹಿಂದೆ',
  21180. s: 'ಕೆಲವು ಕ್ಷಣಗಳು',
  21181. ss: '%d ಸೆಕೆಂಡುಗಳು',
  21182. m: 'ಒಂದು ನಿಮಿಷ',
  21183. mm: '%d ನಿಮಿಷ',
  21184. h: 'ಒಂದು ಗಂಟೆ',
  21185. hh: '%d ಗಂಟೆ',
  21186. d: 'ಒಂದು ದಿನ',
  21187. dd: '%d ದಿನ',
  21188. M: 'ಒಂದು ತಿಂಗಳು',
  21189. MM: '%d ತಿಂಗಳು',
  21190. y: 'ಒಂದು ವರ್ಷ',
  21191. yy: '%d ವರ್ಷ'
  21192. },
  21193. preparse: function preparse(string) {
  21194. return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {
  21195. return numberMap[match];
  21196. });
  21197. },
  21198. postformat: function postformat(string) {
  21199. return string.replace(/\d/g, function (match) {
  21200. return symbolMap[match];
  21201. });
  21202. },
  21203. meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
  21204. meridiemHour: function meridiemHour(hour, meridiem) {
  21205. if (hour === 12) {
  21206. hour = 0;
  21207. }
  21208. if (meridiem === 'ರಾತ್ರಿ') {
  21209. return hour < 4 ? hour : hour + 12;
  21210. } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {
  21211. return hour;
  21212. } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {
  21213. return hour >= 10 ? hour : hour + 12;
  21214. } else if (meridiem === 'ಸಂಜೆ') {
  21215. return hour + 12;
  21216. }
  21217. },
  21218. meridiem: function meridiem(hour, minute, isLower) {
  21219. if (hour < 4) {
  21220. return 'ರಾತ್ರಿ';
  21221. } else if (hour < 10) {
  21222. return 'ಬೆಳಿಗ್ಗೆ';
  21223. } else if (hour < 17) {
  21224. return 'ಮಧ್ಯಾಹ್ನ';
  21225. } else if (hour < 20) {
  21226. return 'ಸಂಜೆ';
  21227. } else {
  21228. return 'ರಾತ್ರಿ';
  21229. }
  21230. },
  21231. dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
  21232. ordinal: function ordinal(number) {
  21233. return number + 'ನೇ';
  21234. },
  21235. week: {
  21236. dow: 0,
  21237. // Sunday is the first day of the week.
  21238. doy: 6 // The week that contains Jan 6th is the first week of the year.
  21239. }
  21240. });
  21241. return kn;
  21242. });
  21243. /***/ }),
  21244. /* 113 */
  21245. /*!***************************************************************!*\
  21246. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ko.js ***!
  21247. \***************************************************************/
  21248. /*! no static exports found */
  21249. /***/ (function(module, exports, __webpack_require__) {
  21250. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21251. //! moment.js locale configuration
  21252. //! locale : Korean [ko]
  21253. //! author : Kyungwook, Park : https://github.com/kyungw00k
  21254. //! author : Jeeeyul Lee <jeeeyul@gmail.com>
  21255. ;
  21256. (function (global, factory) {
  21257. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21258. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21259. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21260. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  21261. })(this, function (moment) {
  21262. 'use strict';
  21263. //! moment.js locale configuration
  21264. var ko = moment.defineLocale('ko', {
  21265. months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  21266. monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  21267. weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
  21268. weekdaysShort: '일_월_화_수_목_금_토'.split('_'),
  21269. weekdaysMin: '일_월_화_수_목_금_토'.split('_'),
  21270. longDateFormat: {
  21271. LT: 'A h:mm',
  21272. LTS: 'A h:mm:ss',
  21273. L: 'YYYY.MM.DD.',
  21274. LL: 'YYYY년 MMMM D일',
  21275. LLL: 'YYYY년 MMMM D일 A h:mm',
  21276. LLLL: 'YYYY년 MMMM D일 dddd A h:mm',
  21277. l: 'YYYY.MM.DD.',
  21278. ll: 'YYYY년 MMMM D일',
  21279. lll: 'YYYY년 MMMM D일 A h:mm',
  21280. llll: 'YYYY년 MMMM D일 dddd A h:mm'
  21281. },
  21282. calendar: {
  21283. sameDay: '오늘 LT',
  21284. nextDay: '내일 LT',
  21285. nextWeek: 'dddd LT',
  21286. lastDay: '어제 LT',
  21287. lastWeek: '지난주 dddd LT',
  21288. sameElse: 'L'
  21289. },
  21290. relativeTime: {
  21291. future: '%s 후',
  21292. past: '%s 전',
  21293. s: '몇 초',
  21294. ss: '%d초',
  21295. m: '1분',
  21296. mm: '%d분',
  21297. h: '한 시간',
  21298. hh: '%d시간',
  21299. d: '하루',
  21300. dd: '%d일',
  21301. M: '한 달',
  21302. MM: '%d달',
  21303. y: '일 년',
  21304. yy: '%d년'
  21305. },
  21306. dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/,
  21307. ordinal: function ordinal(number, period) {
  21308. switch (period) {
  21309. case 'd':
  21310. case 'D':
  21311. case 'DDD':
  21312. return number + '일';
  21313. case 'M':
  21314. return number + '월';
  21315. case 'w':
  21316. case 'W':
  21317. return number + '주';
  21318. default:
  21319. return number;
  21320. }
  21321. },
  21322. meridiemParse: /오전|오후/,
  21323. isPM: function isPM(token) {
  21324. return token === '오후';
  21325. },
  21326. meridiem: function meridiem(hour, minute, isUpper) {
  21327. return hour < 12 ? '오전' : '오후';
  21328. }
  21329. });
  21330. return ko;
  21331. });
  21332. /***/ }),
  21333. /* 114 */
  21334. /*!***************************************************************!*\
  21335. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ku.js ***!
  21336. \***************************************************************/
  21337. /*! no static exports found */
  21338. /***/ (function(module, exports, __webpack_require__) {
  21339. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21340. //! moment.js locale configuration
  21341. //! locale : Kurdish [ku]
  21342. //! author : Shahram Mebashar : https://github.com/ShahramMebashar
  21343. ;
  21344. (function (global, factory) {
  21345. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21346. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21347. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21348. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  21349. })(this, function (moment) {
  21350. 'use strict';
  21351. //! moment.js locale configuration
  21352. var symbolMap = {
  21353. 1: '١',
  21354. 2: '٢',
  21355. 3: '٣',
  21356. 4: '٤',
  21357. 5: '٥',
  21358. 6: '٦',
  21359. 7: '٧',
  21360. 8: '٨',
  21361. 9: '٩',
  21362. 0: '٠'
  21363. },
  21364. numberMap = {
  21365. '١': '1',
  21366. '٢': '2',
  21367. '٣': '3',
  21368. '٤': '4',
  21369. '٥': '5',
  21370. '٦': '6',
  21371. '٧': '7',
  21372. '٨': '8',
  21373. '٩': '9',
  21374. '٠': '0'
  21375. },
  21376. months = ['کانونی دووەم', 'شوبات', 'ئازار', 'نیسان', 'ئایار', 'حوزەیران', 'تەمموز', 'ئاب', 'ئەیلوول', 'تشرینی یەكەم', 'تشرینی دووەم', 'كانونی یەکەم'];
  21377. var ku = moment.defineLocale('ku', {
  21378. months: months,
  21379. monthsShort: months,
  21380. weekdays: 'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split('_'),
  21381. weekdaysShort: 'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split('_'),
  21382. weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'),
  21383. weekdaysParseExact: true,
  21384. longDateFormat: {
  21385. LT: 'HH:mm',
  21386. LTS: 'HH:mm:ss',
  21387. L: 'DD/MM/YYYY',
  21388. LL: 'D MMMM YYYY',
  21389. LLL: 'D MMMM YYYY HH:mm',
  21390. LLLL: 'dddd, D MMMM YYYY HH:mm'
  21391. },
  21392. meridiemParse: /ئێواره‌|به‌یانی/,
  21393. isPM: function isPM(input) {
  21394. return /ئێواره‌/.test(input);
  21395. },
  21396. meridiem: function meridiem(hour, minute, isLower) {
  21397. if (hour < 12) {
  21398. return 'به‌یانی';
  21399. } else {
  21400. return 'ئێواره‌';
  21401. }
  21402. },
  21403. calendar: {
  21404. sameDay: '[ئه‌مرۆ كاتژمێر] LT',
  21405. nextDay: '[به‌یانی كاتژمێر] LT',
  21406. nextWeek: 'dddd [كاتژمێر] LT',
  21407. lastDay: '[دوێنێ كاتژمێر] LT',
  21408. lastWeek: 'dddd [كاتژمێر] LT',
  21409. sameElse: 'L'
  21410. },
  21411. relativeTime: {
  21412. future: 'له‌ %s',
  21413. past: '%s',
  21414. s: 'چه‌ند چركه‌یه‌ك',
  21415. ss: 'چركه‌ %d',
  21416. m: 'یه‌ك خوله‌ك',
  21417. mm: '%d خوله‌ك',
  21418. h: 'یه‌ك كاتژمێر',
  21419. hh: '%d كاتژمێر',
  21420. d: 'یه‌ك ڕۆژ',
  21421. dd: '%d ڕۆژ',
  21422. M: 'یه‌ك مانگ',
  21423. MM: '%d مانگ',
  21424. y: 'یه‌ك ساڵ',
  21425. yy: '%d ساڵ'
  21426. },
  21427. preparse: function preparse(string) {
  21428. return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  21429. return numberMap[match];
  21430. }).replace(/،/g, ',');
  21431. },
  21432. postformat: function postformat(string) {
  21433. return string.replace(/\d/g, function (match) {
  21434. return symbolMap[match];
  21435. }).replace(/,/g, '،');
  21436. },
  21437. week: {
  21438. dow: 6,
  21439. // Saturday is the first day of the week.
  21440. doy: 12 // The week that contains Jan 12th is the first week of the year.
  21441. }
  21442. });
  21443. return ku;
  21444. });
  21445. /***/ }),
  21446. /* 115 */
  21447. /*!***************************************************************!*\
  21448. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ky.js ***!
  21449. \***************************************************************/
  21450. /*! no static exports found */
  21451. /***/ (function(module, exports, __webpack_require__) {
  21452. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21453. //! moment.js locale configuration
  21454. //! locale : Kyrgyz [ky]
  21455. //! author : Chyngyz Arystan uulu : https://github.com/chyngyz
  21456. ;
  21457. (function (global, factory) {
  21458. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21459. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21460. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21461. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  21462. })(this, function (moment) {
  21463. 'use strict';
  21464. //! moment.js locale configuration
  21465. var suffixes = {
  21466. 0: '-чү',
  21467. 1: '-чи',
  21468. 2: '-чи',
  21469. 3: '-чү',
  21470. 4: '-чү',
  21471. 5: '-чи',
  21472. 6: '-чы',
  21473. 7: '-чи',
  21474. 8: '-чи',
  21475. 9: '-чу',
  21476. 10: '-чу',
  21477. 20: '-чы',
  21478. 30: '-чу',
  21479. 40: '-чы',
  21480. 50: '-чү',
  21481. 60: '-чы',
  21482. 70: '-чи',
  21483. 80: '-чи',
  21484. 90: '-чу',
  21485. 100: '-чү'
  21486. };
  21487. var ky = moment.defineLocale('ky', {
  21488. months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
  21489. monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),
  21490. weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split('_'),
  21491. weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
  21492. weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
  21493. longDateFormat: {
  21494. LT: 'HH:mm',
  21495. LTS: 'HH:mm:ss',
  21496. L: 'DD.MM.YYYY',
  21497. LL: 'D MMMM YYYY',
  21498. LLL: 'D MMMM YYYY HH:mm',
  21499. LLLL: 'dddd, D MMMM YYYY HH:mm'
  21500. },
  21501. calendar: {
  21502. sameDay: '[Бүгүн саат] LT',
  21503. nextDay: '[Эртең саат] LT',
  21504. nextWeek: 'dddd [саат] LT',
  21505. lastDay: '[Кечээ саат] LT',
  21506. lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT',
  21507. sameElse: 'L'
  21508. },
  21509. relativeTime: {
  21510. future: '%s ичинде',
  21511. past: '%s мурун',
  21512. s: 'бирнече секунд',
  21513. ss: '%d секунд',
  21514. m: 'бир мүнөт',
  21515. mm: '%d мүнөт',
  21516. h: 'бир саат',
  21517. hh: '%d саат',
  21518. d: 'бир күн',
  21519. dd: '%d күн',
  21520. M: 'бир ай',
  21521. MM: '%d ай',
  21522. y: 'бир жыл',
  21523. yy: '%d жыл'
  21524. },
  21525. dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
  21526. ordinal: function ordinal(number) {
  21527. var a = number % 10,
  21528. b = number >= 100 ? 100 : null;
  21529. return number + (suffixes[number] || suffixes[a] || suffixes[b]);
  21530. },
  21531. week: {
  21532. dow: 1,
  21533. // Monday is the first day of the week.
  21534. doy: 7 // The week that contains Jan 7th is the first week of the year.
  21535. }
  21536. });
  21537. return ky;
  21538. });
  21539. /***/ }),
  21540. /* 116 */
  21541. /*!***************************************************************!*\
  21542. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/lb.js ***!
  21543. \***************************************************************/
  21544. /*! no static exports found */
  21545. /***/ (function(module, exports, __webpack_require__) {
  21546. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21547. //! moment.js locale configuration
  21548. //! locale : Luxembourgish [lb]
  21549. //! author : mweimerskirch : https://github.com/mweimerskirch
  21550. //! author : David Raison : https://github.com/kwisatz
  21551. ;
  21552. (function (global, factory) {
  21553. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21554. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21555. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21556. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  21557. })(this, function (moment) {
  21558. 'use strict';
  21559. //! moment.js locale configuration
  21560. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  21561. var format = {
  21562. m: ['eng Minutt', 'enger Minutt'],
  21563. h: ['eng Stonn', 'enger Stonn'],
  21564. d: ['een Dag', 'engem Dag'],
  21565. M: ['ee Mount', 'engem Mount'],
  21566. y: ['ee Joer', 'engem Joer']
  21567. };
  21568. return withoutSuffix ? format[key][0] : format[key][1];
  21569. }
  21570. function processFutureTime(string) {
  21571. var number = string.substr(0, string.indexOf(' '));
  21572. if (eifelerRegelAppliesToNumber(number)) {
  21573. return 'a ' + string;
  21574. }
  21575. return 'an ' + string;
  21576. }
  21577. function processPastTime(string) {
  21578. var number = string.substr(0, string.indexOf(' '));
  21579. if (eifelerRegelAppliesToNumber(number)) {
  21580. return 'viru ' + string;
  21581. }
  21582. return 'virun ' + string;
  21583. }
  21584. /**
  21585. * Returns true if the word before the given number loses the '-n' ending.
  21586. * e.g. 'an 10 Deeg' but 'a 5 Deeg'
  21587. *
  21588. * @param number {integer}
  21589. * @returns {boolean}
  21590. */
  21591. function eifelerRegelAppliesToNumber(number) {
  21592. number = parseInt(number, 10);
  21593. if (isNaN(number)) {
  21594. return false;
  21595. }
  21596. if (number < 0) {
  21597. // Negative Number --> always true
  21598. return true;
  21599. } else if (number < 10) {
  21600. // Only 1 digit
  21601. if (4 <= number && number <= 7) {
  21602. return true;
  21603. }
  21604. return false;
  21605. } else if (number < 100) {
  21606. // 2 digits
  21607. var lastDigit = number % 10,
  21608. firstDigit = number / 10;
  21609. if (lastDigit === 0) {
  21610. return eifelerRegelAppliesToNumber(firstDigit);
  21611. }
  21612. return eifelerRegelAppliesToNumber(lastDigit);
  21613. } else if (number < 10000) {
  21614. // 3 or 4 digits --> recursively check first digit
  21615. while (number >= 10) {
  21616. number = number / 10;
  21617. }
  21618. return eifelerRegelAppliesToNumber(number);
  21619. } else {
  21620. // Anything larger than 4 digits: recursively check first n-3 digits
  21621. number = number / 1000;
  21622. return eifelerRegelAppliesToNumber(number);
  21623. }
  21624. }
  21625. var lb = moment.defineLocale('lb', {
  21626. months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  21627. monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
  21628. monthsParseExact: true,
  21629. weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),
  21630. weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
  21631. weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
  21632. weekdaysParseExact: true,
  21633. longDateFormat: {
  21634. LT: 'H:mm [Auer]',
  21635. LTS: 'H:mm:ss [Auer]',
  21636. L: 'DD.MM.YYYY',
  21637. LL: 'D. MMMM YYYY',
  21638. LLL: 'D. MMMM YYYY H:mm [Auer]',
  21639. LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]'
  21640. },
  21641. calendar: {
  21642. sameDay: '[Haut um] LT',
  21643. sameElse: 'L',
  21644. nextDay: '[Muer um] LT',
  21645. nextWeek: 'dddd [um] LT',
  21646. lastDay: '[Gëschter um] LT',
  21647. lastWeek: function lastWeek() {
  21648. // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
  21649. switch (this.day()) {
  21650. case 2:
  21651. case 4:
  21652. return '[Leschten] dddd [um] LT';
  21653. default:
  21654. return '[Leschte] dddd [um] LT';
  21655. }
  21656. }
  21657. },
  21658. relativeTime: {
  21659. future: processFutureTime,
  21660. past: processPastTime,
  21661. s: 'e puer Sekonnen',
  21662. ss: '%d Sekonnen',
  21663. m: processRelativeTime,
  21664. mm: '%d Minutten',
  21665. h: processRelativeTime,
  21666. hh: '%d Stonnen',
  21667. d: processRelativeTime,
  21668. dd: '%d Deeg',
  21669. M: processRelativeTime,
  21670. MM: '%d Méint',
  21671. y: processRelativeTime,
  21672. yy: '%d Joer'
  21673. },
  21674. dayOfMonthOrdinalParse: /\d{1,2}\./,
  21675. ordinal: '%d.',
  21676. week: {
  21677. dow: 1,
  21678. // Monday is the first day of the week.
  21679. doy: 4 // The week that contains Jan 4th is the first week of the year.
  21680. }
  21681. });
  21682. return lb;
  21683. });
  21684. /***/ }),
  21685. /* 117 */
  21686. /*!***************************************************************!*\
  21687. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/lo.js ***!
  21688. \***************************************************************/
  21689. /*! no static exports found */
  21690. /***/ (function(module, exports, __webpack_require__) {
  21691. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21692. //! moment.js locale configuration
  21693. //! locale : Lao [lo]
  21694. //! author : Ryan Hart : https://github.com/ryanhart2
  21695. ;
  21696. (function (global, factory) {
  21697. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21698. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21699. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21700. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  21701. })(this, function (moment) {
  21702. 'use strict';
  21703. //! moment.js locale configuration
  21704. var lo = moment.defineLocale('lo', {
  21705. months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
  21706. monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
  21707. weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  21708. weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  21709. weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
  21710. weekdaysParseExact: true,
  21711. longDateFormat: {
  21712. LT: 'HH:mm',
  21713. LTS: 'HH:mm:ss',
  21714. L: 'DD/MM/YYYY',
  21715. LL: 'D MMMM YYYY',
  21716. LLL: 'D MMMM YYYY HH:mm',
  21717. LLLL: 'ວັນdddd D MMMM YYYY HH:mm'
  21718. },
  21719. meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
  21720. isPM: function isPM(input) {
  21721. return input === 'ຕອນແລງ';
  21722. },
  21723. meridiem: function meridiem(hour, minute, isLower) {
  21724. if (hour < 12) {
  21725. return 'ຕອນເຊົ້າ';
  21726. } else {
  21727. return 'ຕອນແລງ';
  21728. }
  21729. },
  21730. calendar: {
  21731. sameDay: '[ມື້ນີ້ເວລາ] LT',
  21732. nextDay: '[ມື້ອື່ນເວລາ] LT',
  21733. nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT',
  21734. lastDay: '[ມື້ວານນີ້ເວລາ] LT',
  21735. lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
  21736. sameElse: 'L'
  21737. },
  21738. relativeTime: {
  21739. future: 'ອີກ %s',
  21740. past: '%sຜ່ານມາ',
  21741. s: 'ບໍ່ເທົ່າໃດວິນາທີ',
  21742. ss: '%d ວິນາທີ',
  21743. m: '1 ນາທີ',
  21744. mm: '%d ນາທີ',
  21745. h: '1 ຊົ່ວໂມງ',
  21746. hh: '%d ຊົ່ວໂມງ',
  21747. d: '1 ມື້',
  21748. dd: '%d ມື້',
  21749. M: '1 ເດືອນ',
  21750. MM: '%d ເດືອນ',
  21751. y: '1 ປີ',
  21752. yy: '%d ປີ'
  21753. },
  21754. dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
  21755. ordinal: function ordinal(number) {
  21756. return 'ທີ່' + number;
  21757. }
  21758. });
  21759. return lo;
  21760. });
  21761. /***/ }),
  21762. /* 118 */
  21763. /*!***************************************************************!*\
  21764. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/lt.js ***!
  21765. \***************************************************************/
  21766. /*! no static exports found */
  21767. /***/ (function(module, exports, __webpack_require__) {
  21768. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21769. //! moment.js locale configuration
  21770. //! locale : Lithuanian [lt]
  21771. //! author : Mindaugas Mozūras : https://github.com/mmozuras
  21772. ;
  21773. (function (global, factory) {
  21774. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21775. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21776. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21777. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  21778. })(this, function (moment) {
  21779. 'use strict';
  21780. //! moment.js locale configuration
  21781. var units = {
  21782. ss: 'sekundė_sekundžių_sekundes',
  21783. m: 'minutė_minutės_minutę',
  21784. mm: 'minutės_minučių_minutes',
  21785. h: 'valanda_valandos_valandą',
  21786. hh: 'valandos_valandų_valandas',
  21787. d: 'diena_dienos_dieną',
  21788. dd: 'dienos_dienų_dienas',
  21789. M: 'mėnuo_mėnesio_mėnesį',
  21790. MM: 'mėnesiai_mėnesių_mėnesius',
  21791. y: 'metai_metų_metus',
  21792. yy: 'metai_metų_metus'
  21793. };
  21794. function translateSeconds(number, withoutSuffix, key, isFuture) {
  21795. if (withoutSuffix) {
  21796. return 'kelios sekundės';
  21797. } else {
  21798. return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
  21799. }
  21800. }
  21801. function translateSingular(number, withoutSuffix, key, isFuture) {
  21802. return withoutSuffix ? forms(key)[0] : isFuture ? forms(key)[1] : forms(key)[2];
  21803. }
  21804. function special(number) {
  21805. return number % 10 === 0 || number > 10 && number < 20;
  21806. }
  21807. function forms(key) {
  21808. return units[key].split('_');
  21809. }
  21810. function translate(number, withoutSuffix, key, isFuture) {
  21811. var result = number + ' ';
  21812. if (number === 1) {
  21813. return result + translateSingular(number, withoutSuffix, key[0], isFuture);
  21814. } else if (withoutSuffix) {
  21815. return result + (special(number) ? forms(key)[1] : forms(key)[0]);
  21816. } else {
  21817. if (isFuture) {
  21818. return result + forms(key)[1];
  21819. } else {
  21820. return result + (special(number) ? forms(key)[1] : forms(key)[2]);
  21821. }
  21822. }
  21823. }
  21824. var lt = moment.defineLocale('lt', {
  21825. months: {
  21826. format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),
  21827. standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'),
  21828. isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/
  21829. },
  21830. monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
  21831. weekdays: {
  21832. format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split('_'),
  21833. standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'),
  21834. isFormat: /dddd HH:mm/
  21835. },
  21836. weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
  21837. weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'),
  21838. weekdaysParseExact: true,
  21839. longDateFormat: {
  21840. LT: 'HH:mm',
  21841. LTS: 'HH:mm:ss',
  21842. L: 'YYYY-MM-DD',
  21843. LL: 'YYYY [m.] MMMM D [d.]',
  21844. LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  21845. LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
  21846. l: 'YYYY-MM-DD',
  21847. ll: 'YYYY [m.] MMMM D [d.]',
  21848. lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  21849. llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]'
  21850. },
  21851. calendar: {
  21852. sameDay: '[Šiandien] LT',
  21853. nextDay: '[Rytoj] LT',
  21854. nextWeek: 'dddd LT',
  21855. lastDay: '[Vakar] LT',
  21856. lastWeek: '[Praėjusį] dddd LT',
  21857. sameElse: 'L'
  21858. },
  21859. relativeTime: {
  21860. future: 'po %s',
  21861. past: 'prieš %s',
  21862. s: translateSeconds,
  21863. ss: translate,
  21864. m: translateSingular,
  21865. mm: translate,
  21866. h: translateSingular,
  21867. hh: translate,
  21868. d: translateSingular,
  21869. dd: translate,
  21870. M: translateSingular,
  21871. MM: translate,
  21872. y: translateSingular,
  21873. yy: translate
  21874. },
  21875. dayOfMonthOrdinalParse: /\d{1,2}-oji/,
  21876. ordinal: function ordinal(number) {
  21877. return number + '-oji';
  21878. },
  21879. week: {
  21880. dow: 1,
  21881. // Monday is the first day of the week.
  21882. doy: 4 // The week that contains Jan 4th is the first week of the year.
  21883. }
  21884. });
  21885. return lt;
  21886. });
  21887. /***/ }),
  21888. /* 119 */
  21889. /*!***************************************************************!*\
  21890. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/lv.js ***!
  21891. \***************************************************************/
  21892. /*! no static exports found */
  21893. /***/ (function(module, exports, __webpack_require__) {
  21894. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21895. //! moment.js locale configuration
  21896. //! locale : Latvian [lv]
  21897. //! author : Kristaps Karlsons : https://github.com/skakri
  21898. //! author : Jānis Elmeris : https://github.com/JanisE
  21899. ;
  21900. (function (global, factory) {
  21901. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21902. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21903. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21904. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  21905. })(this, function (moment) {
  21906. 'use strict';
  21907. //! moment.js locale configuration
  21908. var units = {
  21909. ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'),
  21910. m: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  21911. mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  21912. h: 'stundas_stundām_stunda_stundas'.split('_'),
  21913. hh: 'stundas_stundām_stunda_stundas'.split('_'),
  21914. d: 'dienas_dienām_diena_dienas'.split('_'),
  21915. dd: 'dienas_dienām_diena_dienas'.split('_'),
  21916. M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  21917. MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  21918. y: 'gada_gadiem_gads_gadi'.split('_'),
  21919. yy: 'gada_gadiem_gads_gadi'.split('_')
  21920. };
  21921. /**
  21922. * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
  21923. */
  21924. function format(forms, number, withoutSuffix) {
  21925. if (withoutSuffix) {
  21926. // E.g. "21 minūte", "3 minūtes".
  21927. return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];
  21928. } else {
  21929. // E.g. "21 minūtes" as in "pēc 21 minūtes".
  21930. // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
  21931. return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];
  21932. }
  21933. }
  21934. function relativeTimeWithPlural(number, withoutSuffix, key) {
  21935. return number + ' ' + format(units[key], number, withoutSuffix);
  21936. }
  21937. function relativeTimeWithSingular(number, withoutSuffix, key) {
  21938. return format(units[key], number, withoutSuffix);
  21939. }
  21940. function relativeSeconds(number, withoutSuffix) {
  21941. return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
  21942. }
  21943. var lv = moment.defineLocale('lv', {
  21944. months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),
  21945. monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
  21946. weekdays: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'),
  21947. weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'),
  21948. weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'),
  21949. weekdaysParseExact: true,
  21950. longDateFormat: {
  21951. LT: 'HH:mm',
  21952. LTS: 'HH:mm:ss',
  21953. L: 'DD.MM.YYYY.',
  21954. LL: 'YYYY. [gada] D. MMMM',
  21955. LLL: 'YYYY. [gada] D. MMMM, HH:mm',
  21956. LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm'
  21957. },
  21958. calendar: {
  21959. sameDay: '[Šodien pulksten] LT',
  21960. nextDay: '[Rīt pulksten] LT',
  21961. nextWeek: 'dddd [pulksten] LT',
  21962. lastDay: '[Vakar pulksten] LT',
  21963. lastWeek: '[Pagājušā] dddd [pulksten] LT',
  21964. sameElse: 'L'
  21965. },
  21966. relativeTime: {
  21967. future: 'pēc %s',
  21968. past: 'pirms %s',
  21969. s: relativeSeconds,
  21970. ss: relativeTimeWithPlural,
  21971. m: relativeTimeWithSingular,
  21972. mm: relativeTimeWithPlural,
  21973. h: relativeTimeWithSingular,
  21974. hh: relativeTimeWithPlural,
  21975. d: relativeTimeWithSingular,
  21976. dd: relativeTimeWithPlural,
  21977. M: relativeTimeWithSingular,
  21978. MM: relativeTimeWithPlural,
  21979. y: relativeTimeWithSingular,
  21980. yy: relativeTimeWithPlural
  21981. },
  21982. dayOfMonthOrdinalParse: /\d{1,2}\./,
  21983. ordinal: '%d.',
  21984. week: {
  21985. dow: 1,
  21986. // Monday is the first day of the week.
  21987. doy: 4 // The week that contains Jan 4th is the first week of the year.
  21988. }
  21989. });
  21990. return lv;
  21991. });
  21992. /***/ }),
  21993. /* 120 */
  21994. /*!***************************************************************!*\
  21995. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/me.js ***!
  21996. \***************************************************************/
  21997. /*! no static exports found */
  21998. /***/ (function(module, exports, __webpack_require__) {
  21999. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22000. //! moment.js locale configuration
  22001. //! locale : Montenegrin [me]
  22002. //! author : Miodrag Nikač <miodrag@restartit.me> : https://github.com/miodragnikac
  22003. ;
  22004. (function (global, factory) {
  22005. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22006. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22007. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22008. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  22009. })(this, function (moment) {
  22010. 'use strict';
  22011. //! moment.js locale configuration
  22012. var translator = {
  22013. words: {
  22014. //Different grammatical cases
  22015. ss: ['sekund', 'sekunda', 'sekundi'],
  22016. m: ['jedan minut', 'jednog minuta'],
  22017. mm: ['minut', 'minuta', 'minuta'],
  22018. h: ['jedan sat', 'jednog sata'],
  22019. hh: ['sat', 'sata', 'sati'],
  22020. dd: ['dan', 'dana', 'dana'],
  22021. MM: ['mjesec', 'mjeseca', 'mjeseci'],
  22022. yy: ['godina', 'godine', 'godina']
  22023. },
  22024. correctGrammaticalCase: function correctGrammaticalCase(number, wordKey) {
  22025. return number === 1 ? wordKey[0] : number >= 2 && number <= 4 ? wordKey[1] : wordKey[2];
  22026. },
  22027. translate: function translate(number, withoutSuffix, key) {
  22028. var wordKey = translator.words[key];
  22029. if (key.length === 1) {
  22030. return withoutSuffix ? wordKey[0] : wordKey[1];
  22031. } else {
  22032. return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
  22033. }
  22034. }
  22035. };
  22036. var me = moment.defineLocale('me', {
  22037. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
  22038. monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
  22039. monthsParseExact: true,
  22040. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  22041. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  22042. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  22043. weekdaysParseExact: true,
  22044. longDateFormat: {
  22045. LT: 'H:mm',
  22046. LTS: 'H:mm:ss',
  22047. L: 'DD.MM.YYYY',
  22048. LL: 'D. MMMM YYYY',
  22049. LLL: 'D. MMMM YYYY H:mm',
  22050. LLLL: 'dddd, D. MMMM YYYY H:mm'
  22051. },
  22052. calendar: {
  22053. sameDay: '[danas u] LT',
  22054. nextDay: '[sjutra u] LT',
  22055. nextWeek: function nextWeek() {
  22056. switch (this.day()) {
  22057. case 0:
  22058. return '[u] [nedjelju] [u] LT';
  22059. case 3:
  22060. return '[u] [srijedu] [u] LT';
  22061. case 6:
  22062. return '[u] [subotu] [u] LT';
  22063. case 1:
  22064. case 2:
  22065. case 4:
  22066. case 5:
  22067. return '[u] dddd [u] LT';
  22068. }
  22069. },
  22070. lastDay: '[juče u] LT',
  22071. lastWeek: function lastWeek() {
  22072. var lastWeekDays = ['[prošle] [nedjelje] [u] LT', '[prošlog] [ponedjeljka] [u] LT', '[prošlog] [utorka] [u] LT', '[prošle] [srijede] [u] LT', '[prošlog] [četvrtka] [u] LT', '[prošlog] [petka] [u] LT', '[prošle] [subote] [u] LT'];
  22073. return lastWeekDays[this.day()];
  22074. },
  22075. sameElse: 'L'
  22076. },
  22077. relativeTime: {
  22078. future: 'za %s',
  22079. past: 'prije %s',
  22080. s: 'nekoliko sekundi',
  22081. ss: translator.translate,
  22082. m: translator.translate,
  22083. mm: translator.translate,
  22084. h: translator.translate,
  22085. hh: translator.translate,
  22086. d: 'dan',
  22087. dd: translator.translate,
  22088. M: 'mjesec',
  22089. MM: translator.translate,
  22090. y: 'godinu',
  22091. yy: translator.translate
  22092. },
  22093. dayOfMonthOrdinalParse: /\d{1,2}\./,
  22094. ordinal: '%d.',
  22095. week: {
  22096. dow: 1,
  22097. // Monday is the first day of the week.
  22098. doy: 7 // The week that contains Jan 7th is the first week of the year.
  22099. }
  22100. });
  22101. return me;
  22102. });
  22103. /***/ }),
  22104. /* 121 */
  22105. /*!***************************************************************!*\
  22106. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/mi.js ***!
  22107. \***************************************************************/
  22108. /*! no static exports found */
  22109. /***/ (function(module, exports, __webpack_require__) {
  22110. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22111. //! moment.js locale configuration
  22112. //! locale : Maori [mi]
  22113. //! author : John Corrigan <robbiecloset@gmail.com> : https://github.com/johnideal
  22114. ;
  22115. (function (global, factory) {
  22116. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22117. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22118. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22119. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  22120. })(this, function (moment) {
  22121. 'use strict';
  22122. //! moment.js locale configuration
  22123. var mi = moment.defineLocale('mi', {
  22124. months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split('_'),
  22125. monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split('_'),
  22126. monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  22127. monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  22128. monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  22129. monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
  22130. weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
  22131. weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  22132. weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  22133. longDateFormat: {
  22134. LT: 'HH:mm',
  22135. LTS: 'HH:mm:ss',
  22136. L: 'DD/MM/YYYY',
  22137. LL: 'D MMMM YYYY',
  22138. LLL: 'D MMMM YYYY [i] HH:mm',
  22139. LLLL: 'dddd, D MMMM YYYY [i] HH:mm'
  22140. },
  22141. calendar: {
  22142. sameDay: '[i teie mahana, i] LT',
  22143. nextDay: '[apopo i] LT',
  22144. nextWeek: 'dddd [i] LT',
  22145. lastDay: '[inanahi i] LT',
  22146. lastWeek: 'dddd [whakamutunga i] LT',
  22147. sameElse: 'L'
  22148. },
  22149. relativeTime: {
  22150. future: 'i roto i %s',
  22151. past: '%s i mua',
  22152. s: 'te hēkona ruarua',
  22153. ss: '%d hēkona',
  22154. m: 'he meneti',
  22155. mm: '%d meneti',
  22156. h: 'te haora',
  22157. hh: '%d haora',
  22158. d: 'he ra',
  22159. dd: '%d ra',
  22160. M: 'he marama',
  22161. MM: '%d marama',
  22162. y: 'he tau',
  22163. yy: '%d tau'
  22164. },
  22165. dayOfMonthOrdinalParse: /\d{1,2}º/,
  22166. ordinal: '%dº',
  22167. week: {
  22168. dow: 1,
  22169. // Monday is the first day of the week.
  22170. doy: 4 // The week that contains Jan 4th is the first week of the year.
  22171. }
  22172. });
  22173. return mi;
  22174. });
  22175. /***/ }),
  22176. /* 122 */
  22177. /*!***************************************************************!*\
  22178. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/mk.js ***!
  22179. \***************************************************************/
  22180. /*! no static exports found */
  22181. /***/ (function(module, exports, __webpack_require__) {
  22182. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22183. //! moment.js locale configuration
  22184. //! locale : Macedonian [mk]
  22185. //! author : Borislav Mickov : https://github.com/B0k0
  22186. //! author : Sashko Todorov : https://github.com/bkyceh
  22187. ;
  22188. (function (global, factory) {
  22189. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22190. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22191. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22192. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  22193. })(this, function (moment) {
  22194. 'use strict';
  22195. //! moment.js locale configuration
  22196. var mk = moment.defineLocale('mk', {
  22197. months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'),
  22198. monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
  22199. weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'),
  22200. weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
  22201. weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'),
  22202. longDateFormat: {
  22203. LT: 'H:mm',
  22204. LTS: 'H:mm:ss',
  22205. L: 'D.MM.YYYY',
  22206. LL: 'D MMMM YYYY',
  22207. LLL: 'D MMMM YYYY H:mm',
  22208. LLLL: 'dddd, D MMMM YYYY H:mm'
  22209. },
  22210. calendar: {
  22211. sameDay: '[Денес во] LT',
  22212. nextDay: '[Утре во] LT',
  22213. nextWeek: '[Во] dddd [во] LT',
  22214. lastDay: '[Вчера во] LT',
  22215. lastWeek: function lastWeek() {
  22216. switch (this.day()) {
  22217. case 0:
  22218. case 3:
  22219. case 6:
  22220. return '[Изминатата] dddd [во] LT';
  22221. case 1:
  22222. case 2:
  22223. case 4:
  22224. case 5:
  22225. return '[Изминатиот] dddd [во] LT';
  22226. }
  22227. },
  22228. sameElse: 'L'
  22229. },
  22230. relativeTime: {
  22231. future: 'за %s',
  22232. past: 'пред %s',
  22233. s: 'неколку секунди',
  22234. ss: '%d секунди',
  22235. m: 'една минута',
  22236. mm: '%d минути',
  22237. h: 'еден час',
  22238. hh: '%d часа',
  22239. d: 'еден ден',
  22240. dd: '%d дена',
  22241. M: 'еден месец',
  22242. MM: '%d месеци',
  22243. y: 'една година',
  22244. yy: '%d години'
  22245. },
  22246. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  22247. ordinal: function ordinal(number) {
  22248. var lastDigit = number % 10,
  22249. last2Digits = number % 100;
  22250. if (number === 0) {
  22251. return number + '-ев';
  22252. } else if (last2Digits === 0) {
  22253. return number + '-ен';
  22254. } else if (last2Digits > 10 && last2Digits < 20) {
  22255. return number + '-ти';
  22256. } else if (lastDigit === 1) {
  22257. return number + '-ви';
  22258. } else if (lastDigit === 2) {
  22259. return number + '-ри';
  22260. } else if (lastDigit === 7 || lastDigit === 8) {
  22261. return number + '-ми';
  22262. } else {
  22263. return number + '-ти';
  22264. }
  22265. },
  22266. week: {
  22267. dow: 1,
  22268. // Monday is the first day of the week.
  22269. doy: 7 // The week that contains Jan 7th is the first week of the year.
  22270. }
  22271. });
  22272. return mk;
  22273. });
  22274. /***/ }),
  22275. /* 123 */
  22276. /*!***************************************************************!*\
  22277. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ml.js ***!
  22278. \***************************************************************/
  22279. /*! no static exports found */
  22280. /***/ (function(module, exports, __webpack_require__) {
  22281. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22282. //! moment.js locale configuration
  22283. //! locale : Malayalam [ml]
  22284. //! author : Floyd Pink : https://github.com/floydpink
  22285. ;
  22286. (function (global, factory) {
  22287. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22288. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22289. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22290. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  22291. })(this, function (moment) {
  22292. 'use strict';
  22293. //! moment.js locale configuration
  22294. var ml = moment.defineLocale('ml', {
  22295. months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'),
  22296. monthsShort: 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'),
  22297. monthsParseExact: true,
  22298. weekdays: 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'),
  22299. weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
  22300. weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
  22301. longDateFormat: {
  22302. LT: 'A h:mm -നു',
  22303. LTS: 'A h:mm:ss -നു',
  22304. L: 'DD/MM/YYYY',
  22305. LL: 'D MMMM YYYY',
  22306. LLL: 'D MMMM YYYY, A h:mm -നു',
  22307. LLLL: 'dddd, D MMMM YYYY, A h:mm -നു'
  22308. },
  22309. calendar: {
  22310. sameDay: '[ഇന്ന്] LT',
  22311. nextDay: '[നാളെ] LT',
  22312. nextWeek: 'dddd, LT',
  22313. lastDay: '[ഇന്നലെ] LT',
  22314. lastWeek: '[കഴിഞ്ഞ] dddd, LT',
  22315. sameElse: 'L'
  22316. },
  22317. relativeTime: {
  22318. future: '%s കഴിഞ്ഞ്',
  22319. past: '%s മുൻപ്',
  22320. s: 'അൽപ നിമിഷങ്ങൾ',
  22321. ss: '%d സെക്കൻഡ്',
  22322. m: 'ഒരു മിനിറ്റ്',
  22323. mm: '%d മിനിറ്റ്',
  22324. h: 'ഒരു മണിക്കൂർ',
  22325. hh: '%d മണിക്കൂർ',
  22326. d: 'ഒരു ദിവസം',
  22327. dd: '%d ദിവസം',
  22328. M: 'ഒരു മാസം',
  22329. MM: '%d മാസം',
  22330. y: 'ഒരു വർഷം',
  22331. yy: '%d വർഷം'
  22332. },
  22333. meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
  22334. meridiemHour: function meridiemHour(hour, meridiem) {
  22335. if (hour === 12) {
  22336. hour = 0;
  22337. }
  22338. if (meridiem === 'രാത്രി' && hour >= 4 || meridiem === 'ഉച്ച കഴിഞ്ഞ്' || meridiem === 'വൈകുന്നേരം') {
  22339. return hour + 12;
  22340. } else {
  22341. return hour;
  22342. }
  22343. },
  22344. meridiem: function meridiem(hour, minute, isLower) {
  22345. if (hour < 4) {
  22346. return 'രാത്രി';
  22347. } else if (hour < 12) {
  22348. return 'രാവിലെ';
  22349. } else if (hour < 17) {
  22350. return 'ഉച്ച കഴിഞ്ഞ്';
  22351. } else if (hour < 20) {
  22352. return 'വൈകുന്നേരം';
  22353. } else {
  22354. return 'രാത്രി';
  22355. }
  22356. }
  22357. });
  22358. return ml;
  22359. });
  22360. /***/ }),
  22361. /* 124 */
  22362. /*!***************************************************************!*\
  22363. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/mn.js ***!
  22364. \***************************************************************/
  22365. /*! no static exports found */
  22366. /***/ (function(module, exports, __webpack_require__) {
  22367. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22368. //! moment.js locale configuration
  22369. //! locale : Mongolian [mn]
  22370. //! author : Javkhlantugs Nyamdorj : https://github.com/javkhaanj7
  22371. ;
  22372. (function (global, factory) {
  22373. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22374. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22375. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22376. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  22377. })(this, function (moment) {
  22378. 'use strict';
  22379. //! moment.js locale configuration
  22380. function translate(number, withoutSuffix, key, isFuture) {
  22381. switch (key) {
  22382. case 's':
  22383. return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын';
  22384. case 'ss':
  22385. return number + (withoutSuffix ? ' секунд' : ' секундын');
  22386. case 'm':
  22387. case 'mm':
  22388. return number + (withoutSuffix ? ' минут' : ' минутын');
  22389. case 'h':
  22390. case 'hh':
  22391. return number + (withoutSuffix ? ' цаг' : ' цагийн');
  22392. case 'd':
  22393. case 'dd':
  22394. return number + (withoutSuffix ? ' өдөр' : ' өдрийн');
  22395. case 'M':
  22396. case 'MM':
  22397. return number + (withoutSuffix ? ' сар' : ' сарын');
  22398. case 'y':
  22399. case 'yy':
  22400. return number + (withoutSuffix ? ' жил' : ' жилийн');
  22401. default:
  22402. return number;
  22403. }
  22404. }
  22405. var mn = moment.defineLocale('mn', {
  22406. months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split('_'),
  22407. monthsShort: '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split('_'),
  22408. monthsParseExact: true,
  22409. weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'),
  22410. weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'),
  22411. weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'),
  22412. weekdaysParseExact: true,
  22413. longDateFormat: {
  22414. LT: 'HH:mm',
  22415. LTS: 'HH:mm:ss',
  22416. L: 'YYYY-MM-DD',
  22417. LL: 'YYYY оны MMMMын D',
  22418. LLL: 'YYYY оны MMMMын D HH:mm',
  22419. LLLL: 'dddd, YYYY оны MMMMын D HH:mm'
  22420. },
  22421. meridiemParse: /ҮӨ|ҮХ/i,
  22422. isPM: function isPM(input) {
  22423. return input === 'ҮХ';
  22424. },
  22425. meridiem: function meridiem(hour, minute, isLower) {
  22426. if (hour < 12) {
  22427. return 'ҮӨ';
  22428. } else {
  22429. return 'ҮХ';
  22430. }
  22431. },
  22432. calendar: {
  22433. sameDay: '[Өнөөдөр] LT',
  22434. nextDay: '[Маргааш] LT',
  22435. nextWeek: '[Ирэх] dddd LT',
  22436. lastDay: '[Өчигдөр] LT',
  22437. lastWeek: '[Өнгөрсөн] dddd LT',
  22438. sameElse: 'L'
  22439. },
  22440. relativeTime: {
  22441. future: '%s дараа',
  22442. past: '%s өмнө',
  22443. s: translate,
  22444. ss: translate,
  22445. m: translate,
  22446. mm: translate,
  22447. h: translate,
  22448. hh: translate,
  22449. d: translate,
  22450. dd: translate,
  22451. M: translate,
  22452. MM: translate,
  22453. y: translate,
  22454. yy: translate
  22455. },
  22456. dayOfMonthOrdinalParse: /\d{1,2} өдөр/,
  22457. ordinal: function ordinal(number, period) {
  22458. switch (period) {
  22459. case 'd':
  22460. case 'D':
  22461. case 'DDD':
  22462. return number + ' өдөр';
  22463. default:
  22464. return number;
  22465. }
  22466. }
  22467. });
  22468. return mn;
  22469. });
  22470. /***/ }),
  22471. /* 125 */
  22472. /*!***************************************************************!*\
  22473. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/mr.js ***!
  22474. \***************************************************************/
  22475. /*! no static exports found */
  22476. /***/ (function(module, exports, __webpack_require__) {
  22477. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22478. //! moment.js locale configuration
  22479. //! locale : Marathi [mr]
  22480. //! author : Harshad Kale : https://github.com/kalehv
  22481. //! author : Vivek Athalye : https://github.com/vnathalye
  22482. ;
  22483. (function (global, factory) {
  22484. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22485. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22486. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22487. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  22488. })(this, function (moment) {
  22489. 'use strict';
  22490. //! moment.js locale configuration
  22491. var symbolMap = {
  22492. 1: '१',
  22493. 2: '२',
  22494. 3: '३',
  22495. 4: '४',
  22496. 5: '५',
  22497. 6: '६',
  22498. 7: '७',
  22499. 8: '८',
  22500. 9: '९',
  22501. 0: '०'
  22502. },
  22503. numberMap = {
  22504. '१': '1',
  22505. '२': '2',
  22506. '३': '3',
  22507. '४': '4',
  22508. '५': '5',
  22509. '६': '6',
  22510. '७': '7',
  22511. '८': '8',
  22512. '९': '9',
  22513. '०': '0'
  22514. };
  22515. function relativeTimeMr(number, withoutSuffix, string, isFuture) {
  22516. var output = '';
  22517. if (withoutSuffix) {
  22518. switch (string) {
  22519. case 's':
  22520. output = 'काही सेकंद';
  22521. break;
  22522. case 'ss':
  22523. output = '%d सेकंद';
  22524. break;
  22525. case 'm':
  22526. output = 'एक मिनिट';
  22527. break;
  22528. case 'mm':
  22529. output = '%d मिनिटे';
  22530. break;
  22531. case 'h':
  22532. output = 'एक तास';
  22533. break;
  22534. case 'hh':
  22535. output = '%d तास';
  22536. break;
  22537. case 'd':
  22538. output = 'एक दिवस';
  22539. break;
  22540. case 'dd':
  22541. output = '%d दिवस';
  22542. break;
  22543. case 'M':
  22544. output = 'एक महिना';
  22545. break;
  22546. case 'MM':
  22547. output = '%d महिने';
  22548. break;
  22549. case 'y':
  22550. output = 'एक वर्ष';
  22551. break;
  22552. case 'yy':
  22553. output = '%d वर्षे';
  22554. break;
  22555. }
  22556. } else {
  22557. switch (string) {
  22558. case 's':
  22559. output = 'काही सेकंदां';
  22560. break;
  22561. case 'ss':
  22562. output = '%d सेकंदां';
  22563. break;
  22564. case 'm':
  22565. output = 'एका मिनिटा';
  22566. break;
  22567. case 'mm':
  22568. output = '%d मिनिटां';
  22569. break;
  22570. case 'h':
  22571. output = 'एका तासा';
  22572. break;
  22573. case 'hh':
  22574. output = '%d तासां';
  22575. break;
  22576. case 'd':
  22577. output = 'एका दिवसा';
  22578. break;
  22579. case 'dd':
  22580. output = '%d दिवसां';
  22581. break;
  22582. case 'M':
  22583. output = 'एका महिन्या';
  22584. break;
  22585. case 'MM':
  22586. output = '%d महिन्यां';
  22587. break;
  22588. case 'y':
  22589. output = 'एका वर्षा';
  22590. break;
  22591. case 'yy':
  22592. output = '%d वर्षां';
  22593. break;
  22594. }
  22595. }
  22596. return output.replace(/%d/i, number);
  22597. }
  22598. var mr = moment.defineLocale('mr', {
  22599. months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
  22600. monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
  22601. monthsParseExact: true,
  22602. weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  22603. weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
  22604. weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
  22605. longDateFormat: {
  22606. LT: 'A h:mm वाजता',
  22607. LTS: 'A h:mm:ss वाजता',
  22608. L: 'DD/MM/YYYY',
  22609. LL: 'D MMMM YYYY',
  22610. LLL: 'D MMMM YYYY, A h:mm वाजता',
  22611. LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता'
  22612. },
  22613. calendar: {
  22614. sameDay: '[आज] LT',
  22615. nextDay: '[उद्या] LT',
  22616. nextWeek: 'dddd, LT',
  22617. lastDay: '[काल] LT',
  22618. lastWeek: '[मागील] dddd, LT',
  22619. sameElse: 'L'
  22620. },
  22621. relativeTime: {
  22622. future: '%sमध्ये',
  22623. past: '%sपूर्वी',
  22624. s: relativeTimeMr,
  22625. ss: relativeTimeMr,
  22626. m: relativeTimeMr,
  22627. mm: relativeTimeMr,
  22628. h: relativeTimeMr,
  22629. hh: relativeTimeMr,
  22630. d: relativeTimeMr,
  22631. dd: relativeTimeMr,
  22632. M: relativeTimeMr,
  22633. MM: relativeTimeMr,
  22634. y: relativeTimeMr,
  22635. yy: relativeTimeMr
  22636. },
  22637. preparse: function preparse(string) {
  22638. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  22639. return numberMap[match];
  22640. });
  22641. },
  22642. postformat: function postformat(string) {
  22643. return string.replace(/\d/g, function (match) {
  22644. return symbolMap[match];
  22645. });
  22646. },
  22647. meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,
  22648. meridiemHour: function meridiemHour(hour, meridiem) {
  22649. if (hour === 12) {
  22650. hour = 0;
  22651. }
  22652. if (meridiem === 'पहाटे' || meridiem === 'सकाळी') {
  22653. return hour;
  22654. } else if (meridiem === 'दुपारी' || meridiem === 'सायंकाळी' || meridiem === 'रात्री') {
  22655. return hour >= 12 ? hour : hour + 12;
  22656. }
  22657. },
  22658. meridiem: function meridiem(hour, minute, isLower) {
  22659. if (hour >= 0 && hour < 6) {
  22660. return 'पहाटे';
  22661. } else if (hour < 12) {
  22662. return 'सकाळी';
  22663. } else if (hour < 17) {
  22664. return 'दुपारी';
  22665. } else if (hour < 20) {
  22666. return 'सायंकाळी';
  22667. } else {
  22668. return 'रात्री';
  22669. }
  22670. },
  22671. week: {
  22672. dow: 0,
  22673. // Sunday is the first day of the week.
  22674. doy: 6 // The week that contains Jan 6th is the first week of the year.
  22675. }
  22676. });
  22677. return mr;
  22678. });
  22679. /***/ }),
  22680. /* 126 */
  22681. /*!***************************************************************!*\
  22682. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ms.js ***!
  22683. \***************************************************************/
  22684. /*! no static exports found */
  22685. /***/ (function(module, exports, __webpack_require__) {
  22686. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22687. //! moment.js locale configuration
  22688. //! locale : Malay [ms]
  22689. //! author : Weldan Jamili : https://github.com/weldan
  22690. ;
  22691. (function (global, factory) {
  22692. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22693. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22694. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22695. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  22696. })(this, function (moment) {
  22697. 'use strict';
  22698. //! moment.js locale configuration
  22699. var ms = moment.defineLocale('ms', {
  22700. months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
  22701. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  22702. weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  22703. weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  22704. weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  22705. longDateFormat: {
  22706. LT: 'HH.mm',
  22707. LTS: 'HH.mm.ss',
  22708. L: 'DD/MM/YYYY',
  22709. LL: 'D MMMM YYYY',
  22710. LLL: 'D MMMM YYYY [pukul] HH.mm',
  22711. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'
  22712. },
  22713. meridiemParse: /pagi|tengahari|petang|malam/,
  22714. meridiemHour: function meridiemHour(hour, meridiem) {
  22715. if (hour === 12) {
  22716. hour = 0;
  22717. }
  22718. if (meridiem === 'pagi') {
  22719. return hour;
  22720. } else if (meridiem === 'tengahari') {
  22721. return hour >= 11 ? hour : hour + 12;
  22722. } else if (meridiem === 'petang' || meridiem === 'malam') {
  22723. return hour + 12;
  22724. }
  22725. },
  22726. meridiem: function meridiem(hours, minutes, isLower) {
  22727. if (hours < 11) {
  22728. return 'pagi';
  22729. } else if (hours < 15) {
  22730. return 'tengahari';
  22731. } else if (hours < 19) {
  22732. return 'petang';
  22733. } else {
  22734. return 'malam';
  22735. }
  22736. },
  22737. calendar: {
  22738. sameDay: '[Hari ini pukul] LT',
  22739. nextDay: '[Esok pukul] LT',
  22740. nextWeek: 'dddd [pukul] LT',
  22741. lastDay: '[Kelmarin pukul] LT',
  22742. lastWeek: 'dddd [lepas pukul] LT',
  22743. sameElse: 'L'
  22744. },
  22745. relativeTime: {
  22746. future: 'dalam %s',
  22747. past: '%s yang lepas',
  22748. s: 'beberapa saat',
  22749. ss: '%d saat',
  22750. m: 'seminit',
  22751. mm: '%d minit',
  22752. h: 'sejam',
  22753. hh: '%d jam',
  22754. d: 'sehari',
  22755. dd: '%d hari',
  22756. M: 'sebulan',
  22757. MM: '%d bulan',
  22758. y: 'setahun',
  22759. yy: '%d tahun'
  22760. },
  22761. week: {
  22762. dow: 1,
  22763. // Monday is the first day of the week.
  22764. doy: 7 // The week that contains Jan 7th is the first week of the year.
  22765. }
  22766. });
  22767. return ms;
  22768. });
  22769. /***/ }),
  22770. /* 127 */
  22771. /*!******************************************************************!*\
  22772. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ms-my.js ***!
  22773. \******************************************************************/
  22774. /*! no static exports found */
  22775. /***/ (function(module, exports, __webpack_require__) {
  22776. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22777. //! moment.js locale configuration
  22778. //! locale : Malay [ms-my]
  22779. //! note : DEPRECATED, the correct one is [ms]
  22780. //! author : Weldan Jamili : https://github.com/weldan
  22781. ;
  22782. (function (global, factory) {
  22783. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22784. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22785. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22786. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  22787. })(this, function (moment) {
  22788. 'use strict';
  22789. //! moment.js locale configuration
  22790. var msMy = moment.defineLocale('ms-my', {
  22791. months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
  22792. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  22793. weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  22794. weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  22795. weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  22796. longDateFormat: {
  22797. LT: 'HH.mm',
  22798. LTS: 'HH.mm.ss',
  22799. L: 'DD/MM/YYYY',
  22800. LL: 'D MMMM YYYY',
  22801. LLL: 'D MMMM YYYY [pukul] HH.mm',
  22802. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'
  22803. },
  22804. meridiemParse: /pagi|tengahari|petang|malam/,
  22805. meridiemHour: function meridiemHour(hour, meridiem) {
  22806. if (hour === 12) {
  22807. hour = 0;
  22808. }
  22809. if (meridiem === 'pagi') {
  22810. return hour;
  22811. } else if (meridiem === 'tengahari') {
  22812. return hour >= 11 ? hour : hour + 12;
  22813. } else if (meridiem === 'petang' || meridiem === 'malam') {
  22814. return hour + 12;
  22815. }
  22816. },
  22817. meridiem: function meridiem(hours, minutes, isLower) {
  22818. if (hours < 11) {
  22819. return 'pagi';
  22820. } else if (hours < 15) {
  22821. return 'tengahari';
  22822. } else if (hours < 19) {
  22823. return 'petang';
  22824. } else {
  22825. return 'malam';
  22826. }
  22827. },
  22828. calendar: {
  22829. sameDay: '[Hari ini pukul] LT',
  22830. nextDay: '[Esok pukul] LT',
  22831. nextWeek: 'dddd [pukul] LT',
  22832. lastDay: '[Kelmarin pukul] LT',
  22833. lastWeek: 'dddd [lepas pukul] LT',
  22834. sameElse: 'L'
  22835. },
  22836. relativeTime: {
  22837. future: 'dalam %s',
  22838. past: '%s yang lepas',
  22839. s: 'beberapa saat',
  22840. ss: '%d saat',
  22841. m: 'seminit',
  22842. mm: '%d minit',
  22843. h: 'sejam',
  22844. hh: '%d jam',
  22845. d: 'sehari',
  22846. dd: '%d hari',
  22847. M: 'sebulan',
  22848. MM: '%d bulan',
  22849. y: 'setahun',
  22850. yy: '%d tahun'
  22851. },
  22852. week: {
  22853. dow: 1,
  22854. // Monday is the first day of the week.
  22855. doy: 7 // The week that contains Jan 7th is the first week of the year.
  22856. }
  22857. });
  22858. return msMy;
  22859. });
  22860. /***/ }),
  22861. /* 128 */
  22862. /*!***************************************************************!*\
  22863. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/mt.js ***!
  22864. \***************************************************************/
  22865. /*! no static exports found */
  22866. /***/ (function(module, exports, __webpack_require__) {
  22867. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22868. //! moment.js locale configuration
  22869. //! locale : Maltese (Malta) [mt]
  22870. //! author : Alessandro Maruccia : https://github.com/alesma
  22871. ;
  22872. (function (global, factory) {
  22873. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22874. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22875. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22876. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  22877. })(this, function (moment) {
  22878. 'use strict';
  22879. //! moment.js locale configuration
  22880. var mt = moment.defineLocale('mt', {
  22881. months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split('_'),
  22882. monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),
  22883. weekdays: 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split('_'),
  22884. weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
  22885. weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
  22886. longDateFormat: {
  22887. LT: 'HH:mm',
  22888. LTS: 'HH:mm:ss',
  22889. L: 'DD/MM/YYYY',
  22890. LL: 'D MMMM YYYY',
  22891. LLL: 'D MMMM YYYY HH:mm',
  22892. LLLL: 'dddd, D MMMM YYYY HH:mm'
  22893. },
  22894. calendar: {
  22895. sameDay: '[Illum fil-]LT',
  22896. nextDay: '[Għada fil-]LT',
  22897. nextWeek: 'dddd [fil-]LT',
  22898. lastDay: '[Il-bieraħ fil-]LT',
  22899. lastWeek: 'dddd [li għadda] [fil-]LT',
  22900. sameElse: 'L'
  22901. },
  22902. relativeTime: {
  22903. future: 'f’ %s',
  22904. past: '%s ilu',
  22905. s: 'ftit sekondi',
  22906. ss: '%d sekondi',
  22907. m: 'minuta',
  22908. mm: '%d minuti',
  22909. h: 'siegħa',
  22910. hh: '%d siegħat',
  22911. d: 'ġurnata',
  22912. dd: '%d ġranet',
  22913. M: 'xahar',
  22914. MM: '%d xhur',
  22915. y: 'sena',
  22916. yy: '%d sni'
  22917. },
  22918. dayOfMonthOrdinalParse: /\d{1,2}º/,
  22919. ordinal: '%dº',
  22920. week: {
  22921. dow: 1,
  22922. // Monday is the first day of the week.
  22923. doy: 4 // The week that contains Jan 4th is the first week of the year.
  22924. }
  22925. });
  22926. return mt;
  22927. });
  22928. /***/ }),
  22929. /* 129 */
  22930. /*!***************************************************************!*\
  22931. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/my.js ***!
  22932. \***************************************************************/
  22933. /*! no static exports found */
  22934. /***/ (function(module, exports, __webpack_require__) {
  22935. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22936. //! moment.js locale configuration
  22937. //! locale : Burmese [my]
  22938. //! author : Squar team, mysquar.com
  22939. //! author : David Rossellat : https://github.com/gholadr
  22940. //! author : Tin Aung Lin : https://github.com/thanyawzinmin
  22941. ;
  22942. (function (global, factory) {
  22943. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22944. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22945. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22946. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  22947. })(this, function (moment) {
  22948. 'use strict';
  22949. //! moment.js locale configuration
  22950. var symbolMap = {
  22951. 1: '၁',
  22952. 2: '၂',
  22953. 3: '၃',
  22954. 4: '၄',
  22955. 5: '၅',
  22956. 6: '၆',
  22957. 7: '၇',
  22958. 8: '၈',
  22959. 9: '၉',
  22960. 0: '၀'
  22961. },
  22962. numberMap = {
  22963. '၁': '1',
  22964. '၂': '2',
  22965. '၃': '3',
  22966. '၄': '4',
  22967. '၅': '5',
  22968. '၆': '6',
  22969. '၇': '7',
  22970. '၈': '8',
  22971. '၉': '9',
  22972. '၀': '0'
  22973. };
  22974. var my = moment.defineLocale('my', {
  22975. months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),
  22976. monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
  22977. weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),
  22978. weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  22979. weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  22980. longDateFormat: {
  22981. LT: 'HH:mm',
  22982. LTS: 'HH:mm:ss',
  22983. L: 'DD/MM/YYYY',
  22984. LL: 'D MMMM YYYY',
  22985. LLL: 'D MMMM YYYY HH:mm',
  22986. LLLL: 'dddd D MMMM YYYY HH:mm'
  22987. },
  22988. calendar: {
  22989. sameDay: '[ယနေ.] LT [မှာ]',
  22990. nextDay: '[မနက်ဖြန်] LT [မှာ]',
  22991. nextWeek: 'dddd LT [မှာ]',
  22992. lastDay: '[မနေ.က] LT [မှာ]',
  22993. lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
  22994. sameElse: 'L'
  22995. },
  22996. relativeTime: {
  22997. future: 'လာမည့် %s မှာ',
  22998. past: 'လွန်ခဲ့သော %s က',
  22999. s: 'စက္ကန်.အနည်းငယ်',
  23000. ss: '%d စက္ကန့်',
  23001. m: 'တစ်မိနစ်',
  23002. mm: '%d မိနစ်',
  23003. h: 'တစ်နာရီ',
  23004. hh: '%d နာရီ',
  23005. d: 'တစ်ရက်',
  23006. dd: '%d ရက်',
  23007. M: 'တစ်လ',
  23008. MM: '%d လ',
  23009. y: 'တစ်နှစ်',
  23010. yy: '%d နှစ်'
  23011. },
  23012. preparse: function preparse(string) {
  23013. return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
  23014. return numberMap[match];
  23015. });
  23016. },
  23017. postformat: function postformat(string) {
  23018. return string.replace(/\d/g, function (match) {
  23019. return symbolMap[match];
  23020. });
  23021. },
  23022. week: {
  23023. dow: 1,
  23024. // Monday is the first day of the week.
  23025. doy: 4 // The week that contains Jan 4th is the first week of the year.
  23026. }
  23027. });
  23028. return my;
  23029. });
  23030. /***/ }),
  23031. /* 130 */
  23032. /*!***************************************************************!*\
  23033. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/nb.js ***!
  23034. \***************************************************************/
  23035. /*! no static exports found */
  23036. /***/ (function(module, exports, __webpack_require__) {
  23037. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23038. //! moment.js locale configuration
  23039. //! locale : Norwegian Bokmål [nb]
  23040. //! authors : Espen Hovlandsdal : https://github.com/rexxars
  23041. //! Sigurd Gartmann : https://github.com/sigurdga
  23042. //! Stephen Ramthun : https://github.com/stephenramthun
  23043. ;
  23044. (function (global, factory) {
  23045. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23046. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23047. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23048. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23049. })(this, function (moment) {
  23050. 'use strict';
  23051. //! moment.js locale configuration
  23052. var nb = moment.defineLocale('nb', {
  23053. months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  23054. monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
  23055. monthsParseExact: true,
  23056. weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  23057. weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),
  23058. weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
  23059. weekdaysParseExact: true,
  23060. longDateFormat: {
  23061. LT: 'HH:mm',
  23062. LTS: 'HH:mm:ss',
  23063. L: 'DD.MM.YYYY',
  23064. LL: 'D. MMMM YYYY',
  23065. LLL: 'D. MMMM YYYY [kl.] HH:mm',
  23066. LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm'
  23067. },
  23068. calendar: {
  23069. sameDay: '[i dag kl.] LT',
  23070. nextDay: '[i morgen kl.] LT',
  23071. nextWeek: 'dddd [kl.] LT',
  23072. lastDay: '[i går kl.] LT',
  23073. lastWeek: '[forrige] dddd [kl.] LT',
  23074. sameElse: 'L'
  23075. },
  23076. relativeTime: {
  23077. future: 'om %s',
  23078. past: '%s siden',
  23079. s: 'noen sekunder',
  23080. ss: '%d sekunder',
  23081. m: 'ett minutt',
  23082. mm: '%d minutter',
  23083. h: 'en time',
  23084. hh: '%d timer',
  23085. d: 'en dag',
  23086. dd: '%d dager',
  23087. w: 'en uke',
  23088. ww: '%d uker',
  23089. M: 'en måned',
  23090. MM: '%d måneder',
  23091. y: 'ett år',
  23092. yy: '%d år'
  23093. },
  23094. dayOfMonthOrdinalParse: /\d{1,2}\./,
  23095. ordinal: '%d.',
  23096. week: {
  23097. dow: 1,
  23098. // Monday is the first day of the week.
  23099. doy: 4 // The week that contains Jan 4th is the first week of the year.
  23100. }
  23101. });
  23102. return nb;
  23103. });
  23104. /***/ }),
  23105. /* 131 */
  23106. /*!***************************************************************!*\
  23107. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ne.js ***!
  23108. \***************************************************************/
  23109. /*! no static exports found */
  23110. /***/ (function(module, exports, __webpack_require__) {
  23111. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23112. //! moment.js locale configuration
  23113. //! locale : Nepalese [ne]
  23114. //! author : suvash : https://github.com/suvash
  23115. ;
  23116. (function (global, factory) {
  23117. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23118. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23119. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23120. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23121. })(this, function (moment) {
  23122. 'use strict';
  23123. //! moment.js locale configuration
  23124. var symbolMap = {
  23125. 1: '१',
  23126. 2: '२',
  23127. 3: '३',
  23128. 4: '४',
  23129. 5: '५',
  23130. 6: '६',
  23131. 7: '७',
  23132. 8: '८',
  23133. 9: '९',
  23134. 0: '०'
  23135. },
  23136. numberMap = {
  23137. '१': '1',
  23138. '२': '2',
  23139. '३': '3',
  23140. '४': '4',
  23141. '५': '5',
  23142. '६': '6',
  23143. '७': '7',
  23144. '८': '8',
  23145. '९': '9',
  23146. '०': '0'
  23147. };
  23148. var ne = moment.defineLocale('ne', {
  23149. months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'),
  23150. monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'),
  23151. monthsParseExact: true,
  23152. weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'),
  23153. weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
  23154. weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
  23155. weekdaysParseExact: true,
  23156. longDateFormat: {
  23157. LT: 'Aको h:mm बजे',
  23158. LTS: 'Aको h:mm:ss बजे',
  23159. L: 'DD/MM/YYYY',
  23160. LL: 'D MMMM YYYY',
  23161. LLL: 'D MMMM YYYY, Aको h:mm बजे',
  23162. LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे'
  23163. },
  23164. preparse: function preparse(string) {
  23165. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  23166. return numberMap[match];
  23167. });
  23168. },
  23169. postformat: function postformat(string) {
  23170. return string.replace(/\d/g, function (match) {
  23171. return symbolMap[match];
  23172. });
  23173. },
  23174. meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
  23175. meridiemHour: function meridiemHour(hour, meridiem) {
  23176. if (hour === 12) {
  23177. hour = 0;
  23178. }
  23179. if (meridiem === 'राति') {
  23180. return hour < 4 ? hour : hour + 12;
  23181. } else if (meridiem === 'बिहान') {
  23182. return hour;
  23183. } else if (meridiem === 'दिउँसो') {
  23184. return hour >= 10 ? hour : hour + 12;
  23185. } else if (meridiem === 'साँझ') {
  23186. return hour + 12;
  23187. }
  23188. },
  23189. meridiem: function meridiem(hour, minute, isLower) {
  23190. if (hour < 3) {
  23191. return 'राति';
  23192. } else if (hour < 12) {
  23193. return 'बिहान';
  23194. } else if (hour < 16) {
  23195. return 'दिउँसो';
  23196. } else if (hour < 20) {
  23197. return 'साँझ';
  23198. } else {
  23199. return 'राति';
  23200. }
  23201. },
  23202. calendar: {
  23203. sameDay: '[आज] LT',
  23204. nextDay: '[भोलि] LT',
  23205. nextWeek: '[आउँदो] dddd[,] LT',
  23206. lastDay: '[हिजो] LT',
  23207. lastWeek: '[गएको] dddd[,] LT',
  23208. sameElse: 'L'
  23209. },
  23210. relativeTime: {
  23211. future: '%sमा',
  23212. past: '%s अगाडि',
  23213. s: 'केही क्षण',
  23214. ss: '%d सेकेण्ड',
  23215. m: 'एक मिनेट',
  23216. mm: '%d मिनेट',
  23217. h: 'एक घण्टा',
  23218. hh: '%d घण्टा',
  23219. d: 'एक दिन',
  23220. dd: '%d दिन',
  23221. M: 'एक महिना',
  23222. MM: '%d महिना',
  23223. y: 'एक बर्ष',
  23224. yy: '%d बर्ष'
  23225. },
  23226. week: {
  23227. dow: 0,
  23228. // Sunday is the first day of the week.
  23229. doy: 6 // The week that contains Jan 6th is the first week of the year.
  23230. }
  23231. });
  23232. return ne;
  23233. });
  23234. /***/ }),
  23235. /* 132 */
  23236. /*!***************************************************************!*\
  23237. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/nl.js ***!
  23238. \***************************************************************/
  23239. /*! no static exports found */
  23240. /***/ (function(module, exports, __webpack_require__) {
  23241. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23242. //! moment.js locale configuration
  23243. //! locale : Dutch [nl]
  23244. //! author : Joris Röling : https://github.com/jorisroling
  23245. //! author : Jacob Middag : https://github.com/middagj
  23246. ;
  23247. (function (global, factory) {
  23248. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23249. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23250. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23251. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23252. })(this, function (moment) {
  23253. 'use strict';
  23254. //! moment.js locale configuration
  23255. var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  23256. monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  23257. monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i],
  23258. monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
  23259. var nl = moment.defineLocale('nl', {
  23260. months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
  23261. monthsShort: function monthsShort(m, format) {
  23262. if (!m) {
  23263. return monthsShortWithDots;
  23264. } else if (/-MMM-/.test(format)) {
  23265. return monthsShortWithoutDots[m.month()];
  23266. } else {
  23267. return monthsShortWithDots[m.month()];
  23268. }
  23269. },
  23270. monthsRegex: monthsRegex,
  23271. monthsShortRegex: monthsRegex,
  23272. monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
  23273. monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  23274. monthsParse: monthsParse,
  23275. longMonthsParse: monthsParse,
  23276. shortMonthsParse: monthsParse,
  23277. weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
  23278. weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
  23279. weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
  23280. weekdaysParseExact: true,
  23281. longDateFormat: {
  23282. LT: 'HH:mm',
  23283. LTS: 'HH:mm:ss',
  23284. L: 'DD-MM-YYYY',
  23285. LL: 'D MMMM YYYY',
  23286. LLL: 'D MMMM YYYY HH:mm',
  23287. LLLL: 'dddd D MMMM YYYY HH:mm'
  23288. },
  23289. calendar: {
  23290. sameDay: '[vandaag om] LT',
  23291. nextDay: '[morgen om] LT',
  23292. nextWeek: 'dddd [om] LT',
  23293. lastDay: '[gisteren om] LT',
  23294. lastWeek: '[afgelopen] dddd [om] LT',
  23295. sameElse: 'L'
  23296. },
  23297. relativeTime: {
  23298. future: 'over %s',
  23299. past: '%s geleden',
  23300. s: 'een paar seconden',
  23301. ss: '%d seconden',
  23302. m: 'één minuut',
  23303. mm: '%d minuten',
  23304. h: 'één uur',
  23305. hh: '%d uur',
  23306. d: 'één dag',
  23307. dd: '%d dagen',
  23308. w: 'één week',
  23309. ww: '%d weken',
  23310. M: 'één maand',
  23311. MM: '%d maanden',
  23312. y: 'één jaar',
  23313. yy: '%d jaar'
  23314. },
  23315. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  23316. ordinal: function ordinal(number) {
  23317. return number + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de');
  23318. },
  23319. week: {
  23320. dow: 1,
  23321. // Monday is the first day of the week.
  23322. doy: 4 // The week that contains Jan 4th is the first week of the year.
  23323. }
  23324. });
  23325. return nl;
  23326. });
  23327. /***/ }),
  23328. /* 133 */
  23329. /*!******************************************************************!*\
  23330. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/nl-be.js ***!
  23331. \******************************************************************/
  23332. /*! no static exports found */
  23333. /***/ (function(module, exports, __webpack_require__) {
  23334. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23335. //! moment.js locale configuration
  23336. //! locale : Dutch (Belgium) [nl-be]
  23337. //! author : Joris Röling : https://github.com/jorisroling
  23338. //! author : Jacob Middag : https://github.com/middagj
  23339. ;
  23340. (function (global, factory) {
  23341. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23342. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23343. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23344. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23345. })(this, function (moment) {
  23346. 'use strict';
  23347. //! moment.js locale configuration
  23348. var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  23349. monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  23350. monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i],
  23351. monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
  23352. var nlBe = moment.defineLocale('nl-be', {
  23353. months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
  23354. monthsShort: function monthsShort(m, format) {
  23355. if (!m) {
  23356. return monthsShortWithDots;
  23357. } else if (/-MMM-/.test(format)) {
  23358. return monthsShortWithoutDots[m.month()];
  23359. } else {
  23360. return monthsShortWithDots[m.month()];
  23361. }
  23362. },
  23363. monthsRegex: monthsRegex,
  23364. monthsShortRegex: monthsRegex,
  23365. monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
  23366. monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  23367. monthsParse: monthsParse,
  23368. longMonthsParse: monthsParse,
  23369. shortMonthsParse: monthsParse,
  23370. weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
  23371. weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
  23372. weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
  23373. weekdaysParseExact: true,
  23374. longDateFormat: {
  23375. LT: 'HH:mm',
  23376. LTS: 'HH:mm:ss',
  23377. L: 'DD/MM/YYYY',
  23378. LL: 'D MMMM YYYY',
  23379. LLL: 'D MMMM YYYY HH:mm',
  23380. LLLL: 'dddd D MMMM YYYY HH:mm'
  23381. },
  23382. calendar: {
  23383. sameDay: '[vandaag om] LT',
  23384. nextDay: '[morgen om] LT',
  23385. nextWeek: 'dddd [om] LT',
  23386. lastDay: '[gisteren om] LT',
  23387. lastWeek: '[afgelopen] dddd [om] LT',
  23388. sameElse: 'L'
  23389. },
  23390. relativeTime: {
  23391. future: 'over %s',
  23392. past: '%s geleden',
  23393. s: 'een paar seconden',
  23394. ss: '%d seconden',
  23395. m: 'één minuut',
  23396. mm: '%d minuten',
  23397. h: 'één uur',
  23398. hh: '%d uur',
  23399. d: 'één dag',
  23400. dd: '%d dagen',
  23401. M: 'één maand',
  23402. MM: '%d maanden',
  23403. y: 'één jaar',
  23404. yy: '%d jaar'
  23405. },
  23406. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  23407. ordinal: function ordinal(number) {
  23408. return number + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de');
  23409. },
  23410. week: {
  23411. dow: 1,
  23412. // Monday is the first day of the week.
  23413. doy: 4 // The week that contains Jan 4th is the first week of the year.
  23414. }
  23415. });
  23416. return nlBe;
  23417. });
  23418. /***/ }),
  23419. /* 134 */
  23420. /*!***************************************************************!*\
  23421. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/nn.js ***!
  23422. \***************************************************************/
  23423. /*! no static exports found */
  23424. /***/ (function(module, exports, __webpack_require__) {
  23425. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23426. //! moment.js locale configuration
  23427. //! locale : Nynorsk [nn]
  23428. //! authors : https://github.com/mechuwind
  23429. //! Stephen Ramthun : https://github.com/stephenramthun
  23430. ;
  23431. (function (global, factory) {
  23432. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23433. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23434. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23435. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23436. })(this, function (moment) {
  23437. 'use strict';
  23438. //! moment.js locale configuration
  23439. var nn = moment.defineLocale('nn', {
  23440. months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  23441. monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
  23442. monthsParseExact: true,
  23443. weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
  23444. weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'),
  23445. weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'),
  23446. weekdaysParseExact: true,
  23447. longDateFormat: {
  23448. LT: 'HH:mm',
  23449. LTS: 'HH:mm:ss',
  23450. L: 'DD.MM.YYYY',
  23451. LL: 'D. MMMM YYYY',
  23452. LLL: 'D. MMMM YYYY [kl.] H:mm',
  23453. LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm'
  23454. },
  23455. calendar: {
  23456. sameDay: '[I dag klokka] LT',
  23457. nextDay: '[I morgon klokka] LT',
  23458. nextWeek: 'dddd [klokka] LT',
  23459. lastDay: '[I går klokka] LT',
  23460. lastWeek: '[Føregåande] dddd [klokka] LT',
  23461. sameElse: 'L'
  23462. },
  23463. relativeTime: {
  23464. future: 'om %s',
  23465. past: '%s sidan',
  23466. s: 'nokre sekund',
  23467. ss: '%d sekund',
  23468. m: 'eit minutt',
  23469. mm: '%d minutt',
  23470. h: 'ein time',
  23471. hh: '%d timar',
  23472. d: 'ein dag',
  23473. dd: '%d dagar',
  23474. w: 'ei veke',
  23475. ww: '%d veker',
  23476. M: 'ein månad',
  23477. MM: '%d månader',
  23478. y: 'eit år',
  23479. yy: '%d år'
  23480. },
  23481. dayOfMonthOrdinalParse: /\d{1,2}\./,
  23482. ordinal: '%d.',
  23483. week: {
  23484. dow: 1,
  23485. // Monday is the first day of the week.
  23486. doy: 4 // The week that contains Jan 4th is the first week of the year.
  23487. }
  23488. });
  23489. return nn;
  23490. });
  23491. /***/ }),
  23492. /* 135 */
  23493. /*!*******************************************************************!*\
  23494. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/oc-lnc.js ***!
  23495. \*******************************************************************/
  23496. /*! no static exports found */
  23497. /***/ (function(module, exports, __webpack_require__) {
  23498. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23499. //! moment.js locale configuration
  23500. //! locale : Occitan, lengadocian dialecte [oc-lnc]
  23501. //! author : Quentin PAGÈS : https://github.com/Quenty31
  23502. ;
  23503. (function (global, factory) {
  23504. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23505. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23506. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23507. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23508. })(this, function (moment) {
  23509. 'use strict';
  23510. //! moment.js locale configuration
  23511. var ocLnc = moment.defineLocale('oc-lnc', {
  23512. months: {
  23513. standalone: 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split('_'),
  23514. format: "de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split('_'),
  23515. isFormat: /D[oD]?(\s)+MMMM/
  23516. },
  23517. monthsShort: 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split('_'),
  23518. monthsParseExact: true,
  23519. weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split('_'),
  23520. weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),
  23521. weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),
  23522. weekdaysParseExact: true,
  23523. longDateFormat: {
  23524. LT: 'H:mm',
  23525. LTS: 'H:mm:ss',
  23526. L: 'DD/MM/YYYY',
  23527. LL: 'D MMMM [de] YYYY',
  23528. ll: 'D MMM YYYY',
  23529. LLL: 'D MMMM [de] YYYY [a] H:mm',
  23530. lll: 'D MMM YYYY, H:mm',
  23531. LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',
  23532. llll: 'ddd D MMM YYYY, H:mm'
  23533. },
  23534. calendar: {
  23535. sameDay: '[uèi a] LT',
  23536. nextDay: '[deman a] LT',
  23537. nextWeek: 'dddd [a] LT',
  23538. lastDay: '[ièr a] LT',
  23539. lastWeek: 'dddd [passat a] LT',
  23540. sameElse: 'L'
  23541. },
  23542. relativeTime: {
  23543. future: "d'aquí %s",
  23544. past: 'fa %s',
  23545. s: 'unas segondas',
  23546. ss: '%d segondas',
  23547. m: 'una minuta',
  23548. mm: '%d minutas',
  23549. h: 'una ora',
  23550. hh: '%d oras',
  23551. d: 'un jorn',
  23552. dd: '%d jorns',
  23553. M: 'un mes',
  23554. MM: '%d meses',
  23555. y: 'un an',
  23556. yy: '%d ans'
  23557. },
  23558. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  23559. ordinal: function ordinal(number, period) {
  23560. var output = number === 1 ? 'r' : number === 2 ? 'n' : number === 3 ? 'r' : number === 4 ? 't' : 'è';
  23561. if (period === 'w' || period === 'W') {
  23562. output = 'a';
  23563. }
  23564. return number + output;
  23565. },
  23566. week: {
  23567. dow: 1,
  23568. // Monday is the first day of the week.
  23569. doy: 4
  23570. }
  23571. });
  23572. return ocLnc;
  23573. });
  23574. /***/ }),
  23575. /* 136 */
  23576. /*!******************************************************************!*\
  23577. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/pa-in.js ***!
  23578. \******************************************************************/
  23579. /*! no static exports found */
  23580. /***/ (function(module, exports, __webpack_require__) {
  23581. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23582. //! moment.js locale configuration
  23583. //! locale : Punjabi (India) [pa-in]
  23584. //! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit
  23585. ;
  23586. (function (global, factory) {
  23587. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23588. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23589. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23590. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23591. })(this, function (moment) {
  23592. 'use strict';
  23593. //! moment.js locale configuration
  23594. var symbolMap = {
  23595. 1: '੧',
  23596. 2: '੨',
  23597. 3: '੩',
  23598. 4: '੪',
  23599. 5: '੫',
  23600. 6: '੬',
  23601. 7: '੭',
  23602. 8: '੮',
  23603. 9: '੯',
  23604. 0: '੦'
  23605. },
  23606. numberMap = {
  23607. '੧': '1',
  23608. '੨': '2',
  23609. '੩': '3',
  23610. '੪': '4',
  23611. '੫': '5',
  23612. '੬': '6',
  23613. '੭': '7',
  23614. '੮': '8',
  23615. '੯': '9',
  23616. '੦': '0'
  23617. };
  23618. var paIn = moment.defineLocale('pa-in', {
  23619. // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi.
  23620. months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
  23621. monthsShort: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
  23622. weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split('_'),
  23623. weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  23624. weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  23625. longDateFormat: {
  23626. LT: 'A h:mm ਵਜੇ',
  23627. LTS: 'A h:mm:ss ਵਜੇ',
  23628. L: 'DD/MM/YYYY',
  23629. LL: 'D MMMM YYYY',
  23630. LLL: 'D MMMM YYYY, A h:mm ਵਜੇ',
  23631. LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ'
  23632. },
  23633. calendar: {
  23634. sameDay: '[ਅਜ] LT',
  23635. nextDay: '[ਕਲ] LT',
  23636. nextWeek: '[ਅਗਲਾ] dddd, LT',
  23637. lastDay: '[ਕਲ] LT',
  23638. lastWeek: '[ਪਿਛਲੇ] dddd, LT',
  23639. sameElse: 'L'
  23640. },
  23641. relativeTime: {
  23642. future: '%s ਵਿੱਚ',
  23643. past: '%s ਪਿਛਲੇ',
  23644. s: 'ਕੁਝ ਸਕਿੰਟ',
  23645. ss: '%d ਸਕਿੰਟ',
  23646. m: 'ਇਕ ਮਿੰਟ',
  23647. mm: '%d ਮਿੰਟ',
  23648. h: 'ਇੱਕ ਘੰਟਾ',
  23649. hh: '%d ਘੰਟੇ',
  23650. d: 'ਇੱਕ ਦਿਨ',
  23651. dd: '%d ਦਿਨ',
  23652. M: 'ਇੱਕ ਮਹੀਨਾ',
  23653. MM: '%d ਮਹੀਨੇ',
  23654. y: 'ਇੱਕ ਸਾਲ',
  23655. yy: '%d ਸਾਲ'
  23656. },
  23657. preparse: function preparse(string) {
  23658. return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {
  23659. return numberMap[match];
  23660. });
  23661. },
  23662. postformat: function postformat(string) {
  23663. return string.replace(/\d/g, function (match) {
  23664. return symbolMap[match];
  23665. });
  23666. },
  23667. // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
  23668. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
  23669. meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
  23670. meridiemHour: function meridiemHour(hour, meridiem) {
  23671. if (hour === 12) {
  23672. hour = 0;
  23673. }
  23674. if (meridiem === 'ਰਾਤ') {
  23675. return hour < 4 ? hour : hour + 12;
  23676. } else if (meridiem === 'ਸਵੇਰ') {
  23677. return hour;
  23678. } else if (meridiem === 'ਦੁਪਹਿਰ') {
  23679. return hour >= 10 ? hour : hour + 12;
  23680. } else if (meridiem === 'ਸ਼ਾਮ') {
  23681. return hour + 12;
  23682. }
  23683. },
  23684. meridiem: function meridiem(hour, minute, isLower) {
  23685. if (hour < 4) {
  23686. return 'ਰਾਤ';
  23687. } else if (hour < 10) {
  23688. return 'ਸਵੇਰ';
  23689. } else if (hour < 17) {
  23690. return 'ਦੁਪਹਿਰ';
  23691. } else if (hour < 20) {
  23692. return 'ਸ਼ਾਮ';
  23693. } else {
  23694. return 'ਰਾਤ';
  23695. }
  23696. },
  23697. week: {
  23698. dow: 0,
  23699. // Sunday is the first day of the week.
  23700. doy: 6 // The week that contains Jan 6th is the first week of the year.
  23701. }
  23702. });
  23703. return paIn;
  23704. });
  23705. /***/ }),
  23706. /* 137 */
  23707. /*!***************************************************************!*\
  23708. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/pl.js ***!
  23709. \***************************************************************/
  23710. /*! no static exports found */
  23711. /***/ (function(module, exports, __webpack_require__) {
  23712. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23713. //! moment.js locale configuration
  23714. //! locale : Polish [pl]
  23715. //! author : Rafal Hirsz : https://github.com/evoL
  23716. ;
  23717. (function (global, factory) {
  23718. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23719. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23720. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23721. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23722. })(this, function (moment) {
  23723. 'use strict';
  23724. //! moment.js locale configuration
  23725. var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_'),
  23726. monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_'),
  23727. monthsParse = [/^sty/i, /^lut/i, /^mar/i, /^kwi/i, /^maj/i, /^cze/i, /^lip/i, /^sie/i, /^wrz/i, /^paź/i, /^lis/i, /^gru/i];
  23728. function plural(n) {
  23729. return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1;
  23730. }
  23731. function translate(number, withoutSuffix, key) {
  23732. var result = number + ' ';
  23733. switch (key) {
  23734. case 'ss':
  23735. return result + (plural(number) ? 'sekundy' : 'sekund');
  23736. case 'm':
  23737. return withoutSuffix ? 'minuta' : 'minutę';
  23738. case 'mm':
  23739. return result + (plural(number) ? 'minuty' : 'minut');
  23740. case 'h':
  23741. return withoutSuffix ? 'godzina' : 'godzinę';
  23742. case 'hh':
  23743. return result + (plural(number) ? 'godziny' : 'godzin');
  23744. case 'ww':
  23745. return result + (plural(number) ? 'tygodnie' : 'tygodni');
  23746. case 'MM':
  23747. return result + (plural(number) ? 'miesiące' : 'miesięcy');
  23748. case 'yy':
  23749. return result + (plural(number) ? 'lata' : 'lat');
  23750. }
  23751. }
  23752. var pl = moment.defineLocale('pl', {
  23753. months: function months(momentToFormat, format) {
  23754. if (!momentToFormat) {
  23755. return monthsNominative;
  23756. } else if (/D MMMM/.test(format)) {
  23757. return monthsSubjective[momentToFormat.month()];
  23758. } else {
  23759. return monthsNominative[momentToFormat.month()];
  23760. }
  23761. },
  23762. monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
  23763. monthsParse: monthsParse,
  23764. longMonthsParse: monthsParse,
  23765. shortMonthsParse: monthsParse,
  23766. weekdays: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
  23767. weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
  23768. weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
  23769. longDateFormat: {
  23770. LT: 'HH:mm',
  23771. LTS: 'HH:mm:ss',
  23772. L: 'DD.MM.YYYY',
  23773. LL: 'D MMMM YYYY',
  23774. LLL: 'D MMMM YYYY HH:mm',
  23775. LLLL: 'dddd, D MMMM YYYY HH:mm'
  23776. },
  23777. calendar: {
  23778. sameDay: '[Dziś o] LT',
  23779. nextDay: '[Jutro o] LT',
  23780. nextWeek: function nextWeek() {
  23781. switch (this.day()) {
  23782. case 0:
  23783. return '[W niedzielę o] LT';
  23784. case 2:
  23785. return '[We wtorek o] LT';
  23786. case 3:
  23787. return '[W środę o] LT';
  23788. case 6:
  23789. return '[W sobotę o] LT';
  23790. default:
  23791. return '[W] dddd [o] LT';
  23792. }
  23793. },
  23794. lastDay: '[Wczoraj o] LT',
  23795. lastWeek: function lastWeek() {
  23796. switch (this.day()) {
  23797. case 0:
  23798. return '[W zeszłą niedzielę o] LT';
  23799. case 3:
  23800. return '[W zeszłą środę o] LT';
  23801. case 6:
  23802. return '[W zeszłą sobotę o] LT';
  23803. default:
  23804. return '[W zeszły] dddd [o] LT';
  23805. }
  23806. },
  23807. sameElse: 'L'
  23808. },
  23809. relativeTime: {
  23810. future: 'za %s',
  23811. past: '%s temu',
  23812. s: 'kilka sekund',
  23813. ss: translate,
  23814. m: translate,
  23815. mm: translate,
  23816. h: translate,
  23817. hh: translate,
  23818. d: '1 dzień',
  23819. dd: '%d dni',
  23820. w: 'tydzień',
  23821. ww: translate,
  23822. M: 'miesiąc',
  23823. MM: translate,
  23824. y: 'rok',
  23825. yy: translate
  23826. },
  23827. dayOfMonthOrdinalParse: /\d{1,2}\./,
  23828. ordinal: '%d.',
  23829. week: {
  23830. dow: 1,
  23831. // Monday is the first day of the week.
  23832. doy: 4 // The week that contains Jan 4th is the first week of the year.
  23833. }
  23834. });
  23835. return pl;
  23836. });
  23837. /***/ }),
  23838. /* 138 */
  23839. /*!***************************************************************!*\
  23840. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/pt.js ***!
  23841. \***************************************************************/
  23842. /*! no static exports found */
  23843. /***/ (function(module, exports, __webpack_require__) {
  23844. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23845. //! moment.js locale configuration
  23846. //! locale : Portuguese [pt]
  23847. //! author : Jefferson : https://github.com/jalex79
  23848. ;
  23849. (function (global, factory) {
  23850. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23851. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23852. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23853. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23854. })(this, function (moment) {
  23855. 'use strict';
  23856. //! moment.js locale configuration
  23857. var pt = moment.defineLocale('pt', {
  23858. months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
  23859. monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
  23860. weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
  23861. weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
  23862. weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
  23863. weekdaysParseExact: true,
  23864. longDateFormat: {
  23865. LT: 'HH:mm',
  23866. LTS: 'HH:mm:ss',
  23867. L: 'DD/MM/YYYY',
  23868. LL: 'D [de] MMMM [de] YYYY',
  23869. LLL: 'D [de] MMMM [de] YYYY HH:mm',
  23870. LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm'
  23871. },
  23872. calendar: {
  23873. sameDay: '[Hoje às] LT',
  23874. nextDay: '[Amanhã às] LT',
  23875. nextWeek: 'dddd [às] LT',
  23876. lastDay: '[Ontem às] LT',
  23877. lastWeek: function lastWeek() {
  23878. return this.day() === 0 || this.day() === 6 ? '[Último] dddd [às] LT' // Saturday + Sunday
  23879. : '[Última] dddd [às] LT'; // Monday - Friday
  23880. },
  23881. sameElse: 'L'
  23882. },
  23883. relativeTime: {
  23884. future: 'em %s',
  23885. past: 'há %s',
  23886. s: 'segundos',
  23887. ss: '%d segundos',
  23888. m: 'um minuto',
  23889. mm: '%d minutos',
  23890. h: 'uma hora',
  23891. hh: '%d horas',
  23892. d: 'um dia',
  23893. dd: '%d dias',
  23894. w: 'uma semana',
  23895. ww: '%d semanas',
  23896. M: 'um mês',
  23897. MM: '%d meses',
  23898. y: 'um ano',
  23899. yy: '%d anos'
  23900. },
  23901. dayOfMonthOrdinalParse: /\d{1,2}º/,
  23902. ordinal: '%dº',
  23903. week: {
  23904. dow: 1,
  23905. // Monday is the first day of the week.
  23906. doy: 4 // The week that contains Jan 4th is the first week of the year.
  23907. }
  23908. });
  23909. return pt;
  23910. });
  23911. /***/ }),
  23912. /* 139 */
  23913. /*!******************************************************************!*\
  23914. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/pt-br.js ***!
  23915. \******************************************************************/
  23916. /*! no static exports found */
  23917. /***/ (function(module, exports, __webpack_require__) {
  23918. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23919. //! moment.js locale configuration
  23920. //! locale : Portuguese (Brazil) [pt-br]
  23921. //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
  23922. ;
  23923. (function (global, factory) {
  23924. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23925. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23926. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23927. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23928. })(this, function (moment) {
  23929. 'use strict';
  23930. //! moment.js locale configuration
  23931. var ptBr = moment.defineLocale('pt-br', {
  23932. months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
  23933. monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
  23934. weekdays: 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split('_'),
  23935. weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),
  23936. weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'),
  23937. weekdaysParseExact: true,
  23938. longDateFormat: {
  23939. LT: 'HH:mm',
  23940. LTS: 'HH:mm:ss',
  23941. L: 'DD/MM/YYYY',
  23942. LL: 'D [de] MMMM [de] YYYY',
  23943. LLL: 'D [de] MMMM [de] YYYY [às] HH:mm',
  23944. LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm'
  23945. },
  23946. calendar: {
  23947. sameDay: '[Hoje às] LT',
  23948. nextDay: '[Amanhã às] LT',
  23949. nextWeek: 'dddd [às] LT',
  23950. lastDay: '[Ontem às] LT',
  23951. lastWeek: function lastWeek() {
  23952. return this.day() === 0 || this.day() === 6 ? '[Último] dddd [às] LT' // Saturday + Sunday
  23953. : '[Última] dddd [às] LT'; // Monday - Friday
  23954. },
  23955. sameElse: 'L'
  23956. },
  23957. relativeTime: {
  23958. future: 'em %s',
  23959. past: 'há %s',
  23960. s: 'poucos segundos',
  23961. ss: '%d segundos',
  23962. m: 'um minuto',
  23963. mm: '%d minutos',
  23964. h: 'uma hora',
  23965. hh: '%d horas',
  23966. d: 'um dia',
  23967. dd: '%d dias',
  23968. M: 'um mês',
  23969. MM: '%d meses',
  23970. y: 'um ano',
  23971. yy: '%d anos'
  23972. },
  23973. dayOfMonthOrdinalParse: /\d{1,2}º/,
  23974. ordinal: '%dº',
  23975. invalidDate: 'Data inválida'
  23976. });
  23977. return ptBr;
  23978. });
  23979. /***/ }),
  23980. /* 140 */
  23981. /*!***************************************************************!*\
  23982. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ro.js ***!
  23983. \***************************************************************/
  23984. /*! no static exports found */
  23985. /***/ (function(module, exports, __webpack_require__) {
  23986. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23987. //! moment.js locale configuration
  23988. //! locale : Romanian [ro]
  23989. //! author : Vlad Gurdiga : https://github.com/gurdiga
  23990. //! author : Valentin Agachi : https://github.com/avaly
  23991. //! author : Emanuel Cepoi : https://github.com/cepem
  23992. ;
  23993. (function (global, factory) {
  23994. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23995. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23996. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23997. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23998. })(this, function (moment) {
  23999. 'use strict';
  24000. //! moment.js locale configuration
  24001. function relativeTimeWithPlural(number, withoutSuffix, key) {
  24002. var format = {
  24003. ss: 'secunde',
  24004. mm: 'minute',
  24005. hh: 'ore',
  24006. dd: 'zile',
  24007. ww: 'săptămâni',
  24008. MM: 'luni',
  24009. yy: 'ani'
  24010. },
  24011. separator = ' ';
  24012. if (number % 100 >= 20 || number >= 100 && number % 100 === 0) {
  24013. separator = ' de ';
  24014. }
  24015. return number + separator + format[key];
  24016. }
  24017. var ro = moment.defineLocale('ro', {
  24018. months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),
  24019. monthsShort: 'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),
  24020. monthsParseExact: true,
  24021. weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
  24022. weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
  24023. weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
  24024. longDateFormat: {
  24025. LT: 'H:mm',
  24026. LTS: 'H:mm:ss',
  24027. L: 'DD.MM.YYYY',
  24028. LL: 'D MMMM YYYY',
  24029. LLL: 'D MMMM YYYY H:mm',
  24030. LLLL: 'dddd, D MMMM YYYY H:mm'
  24031. },
  24032. calendar: {
  24033. sameDay: '[azi la] LT',
  24034. nextDay: '[mâine la] LT',
  24035. nextWeek: 'dddd [la] LT',
  24036. lastDay: '[ieri la] LT',
  24037. lastWeek: '[fosta] dddd [la] LT',
  24038. sameElse: 'L'
  24039. },
  24040. relativeTime: {
  24041. future: 'peste %s',
  24042. past: '%s în urmă',
  24043. s: 'câteva secunde',
  24044. ss: relativeTimeWithPlural,
  24045. m: 'un minut',
  24046. mm: relativeTimeWithPlural,
  24047. h: 'o oră',
  24048. hh: relativeTimeWithPlural,
  24049. d: 'o zi',
  24050. dd: relativeTimeWithPlural,
  24051. w: 'o săptămână',
  24052. ww: relativeTimeWithPlural,
  24053. M: 'o lună',
  24054. MM: relativeTimeWithPlural,
  24055. y: 'un an',
  24056. yy: relativeTimeWithPlural
  24057. },
  24058. week: {
  24059. dow: 1,
  24060. // Monday is the first day of the week.
  24061. doy: 7 // The week that contains Jan 7th is the first week of the year.
  24062. }
  24063. });
  24064. return ro;
  24065. });
  24066. /***/ }),
  24067. /* 141 */
  24068. /*!***************************************************************!*\
  24069. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ru.js ***!
  24070. \***************************************************************/
  24071. /*! no static exports found */
  24072. /***/ (function(module, exports, __webpack_require__) {
  24073. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  24074. //! moment.js locale configuration
  24075. //! locale : Russian [ru]
  24076. //! author : Viktorminator : https://github.com/Viktorminator
  24077. //! author : Menelion Elensúle : https://github.com/Oire
  24078. //! author : Коренберг Марк : https://github.com/socketpair
  24079. ;
  24080. (function (global, factory) {
  24081. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  24082. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  24083. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  24084. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  24085. })(this, function (moment) {
  24086. 'use strict';
  24087. //! moment.js locale configuration
  24088. function plural(word, num) {
  24089. var forms = word.split('_');
  24090. return num % 10 === 1 && num % 100 !== 11 ? forms[0] : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2];
  24091. }
  24092. function relativeTimeWithPlural(number, withoutSuffix, key) {
  24093. var format = {
  24094. ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
  24095. mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
  24096. hh: 'час_часа_часов',
  24097. dd: 'день_дня_дней',
  24098. ww: 'неделя_недели_недель',
  24099. MM: 'месяц_месяца_месяцев',
  24100. yy: 'год_года_лет'
  24101. };
  24102. if (key === 'm') {
  24103. return withoutSuffix ? 'минута' : 'минуту';
  24104. } else {
  24105. return number + ' ' + plural(format[key], +number);
  24106. }
  24107. }
  24108. var monthsParse = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i];
  24109. // http://new.gramota.ru/spravka/rules/139-prop : § 103
  24110. // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
  24111. // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
  24112. var ru = moment.defineLocale('ru', {
  24113. months: {
  24114. format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_'),
  24115. standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_')
  24116. },
  24117. monthsShort: {
  24118. // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку?
  24119. format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split('_'),
  24120. standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split('_')
  24121. },
  24122. weekdays: {
  24123. standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
  24124. format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_'),
  24125. isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/
  24126. },
  24127. weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  24128. weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  24129. monthsParse: monthsParse,
  24130. longMonthsParse: monthsParse,
  24131. shortMonthsParse: monthsParse,
  24132. // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
  24133. monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  24134. // копия предыдущего
  24135. monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  24136. // полные названия с падежами
  24137. monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
  24138. // Выражение, которое соответствует только сокращённым формам
  24139. monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
  24140. longDateFormat: {
  24141. LT: 'H:mm',
  24142. LTS: 'H:mm:ss',
  24143. L: 'DD.MM.YYYY',
  24144. LL: 'D MMMM YYYY г.',
  24145. LLL: 'D MMMM YYYY г., H:mm',
  24146. LLLL: 'dddd, D MMMM YYYY г., H:mm'
  24147. },
  24148. calendar: {
  24149. sameDay: '[Сегодня, в] LT',
  24150. nextDay: '[Завтра, в] LT',
  24151. lastDay: '[Вчера, в] LT',
  24152. nextWeek: function nextWeek(now) {
  24153. if (now.week() !== this.week()) {
  24154. switch (this.day()) {
  24155. case 0:
  24156. return '[В следующее] dddd, [в] LT';
  24157. case 1:
  24158. case 2:
  24159. case 4:
  24160. return '[В следующий] dddd, [в] LT';
  24161. case 3:
  24162. case 5:
  24163. case 6:
  24164. return '[В следующую] dddd, [в] LT';
  24165. }
  24166. } else {
  24167. if (this.day() === 2) {
  24168. return '[Во] dddd, [в] LT';
  24169. } else {
  24170. return '[В] dddd, [в] LT';
  24171. }
  24172. }
  24173. },
  24174. lastWeek: function lastWeek(now) {
  24175. if (now.week() !== this.week()) {
  24176. switch (this.day()) {
  24177. case 0:
  24178. return '[В прошлое] dddd, [в] LT';
  24179. case 1:
  24180. case 2:
  24181. case 4:
  24182. return '[В прошлый] dddd, [в] LT';
  24183. case 3:
  24184. case 5:
  24185. case 6:
  24186. return '[В прошлую] dddd, [в] LT';
  24187. }
  24188. } else {
  24189. if (this.day() === 2) {
  24190. return '[Во] dddd, [в] LT';
  24191. } else {
  24192. return '[В] dddd, [в] LT';
  24193. }
  24194. }
  24195. },
  24196. sameElse: 'L'
  24197. },
  24198. relativeTime: {
  24199. future: 'через %s',
  24200. past: '%s назад',
  24201. s: 'несколько секунд',
  24202. ss: relativeTimeWithPlural,
  24203. m: relativeTimeWithPlural,
  24204. mm: relativeTimeWithPlural,
  24205. h: 'час',
  24206. hh: relativeTimeWithPlural,
  24207. d: 'день',
  24208. dd: relativeTimeWithPlural,
  24209. w: 'неделя',
  24210. ww: relativeTimeWithPlural,
  24211. M: 'месяц',
  24212. MM: relativeTimeWithPlural,
  24213. y: 'год',
  24214. yy: relativeTimeWithPlural
  24215. },
  24216. meridiemParse: /ночи|утра|дня|вечера/i,
  24217. isPM: function isPM(input) {
  24218. return /^(дня|вечера)$/.test(input);
  24219. },
  24220. meridiem: function meridiem(hour, minute, isLower) {
  24221. if (hour < 4) {
  24222. return 'ночи';
  24223. } else if (hour < 12) {
  24224. return 'утра';
  24225. } else if (hour < 17) {
  24226. return 'дня';
  24227. } else {
  24228. return 'вечера';
  24229. }
  24230. },
  24231. dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/,
  24232. ordinal: function ordinal(number, period) {
  24233. switch (period) {
  24234. case 'M':
  24235. case 'd':
  24236. case 'DDD':
  24237. return number + '-й';
  24238. case 'D':
  24239. return number + '-го';
  24240. case 'w':
  24241. case 'W':
  24242. return number + '-я';
  24243. default:
  24244. return number;
  24245. }
  24246. },
  24247. week: {
  24248. dow: 1,
  24249. // Monday is the first day of the week.
  24250. doy: 4 // The week that contains Jan 4th is the first week of the year.
  24251. }
  24252. });
  24253. return ru;
  24254. });
  24255. /***/ }),
  24256. /* 142 */
  24257. /*!***************************************************************!*\
  24258. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/sd.js ***!
  24259. \***************************************************************/
  24260. /*! no static exports found */
  24261. /***/ (function(module, exports, __webpack_require__) {
  24262. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  24263. //! moment.js locale configuration
  24264. //! locale : Sindhi [sd]
  24265. //! author : Narain Sagar : https://github.com/narainsagar
  24266. ;
  24267. (function (global, factory) {
  24268. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  24269. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  24270. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  24271. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  24272. })(this, function (moment) {
  24273. 'use strict';
  24274. //! moment.js locale configuration
  24275. var months = ['جنوري', 'فيبروري', 'مارچ', 'اپريل', 'مئي', 'جون', 'جولاءِ', 'آگسٽ', 'سيپٽمبر', 'آڪٽوبر', 'نومبر', 'ڊسمبر'],
  24276. days = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر'];
  24277. var sd = moment.defineLocale('sd', {
  24278. months: months,
  24279. monthsShort: months,
  24280. weekdays: days,
  24281. weekdaysShort: days,
  24282. weekdaysMin: days,
  24283. longDateFormat: {
  24284. LT: 'HH:mm',
  24285. LTS: 'HH:mm:ss',
  24286. L: 'DD/MM/YYYY',
  24287. LL: 'D MMMM YYYY',
  24288. LLL: 'D MMMM YYYY HH:mm',
  24289. LLLL: 'dddd، D MMMM YYYY HH:mm'
  24290. },
  24291. meridiemParse: /صبح|شام/,
  24292. isPM: function isPM(input) {
  24293. return 'شام' === input;
  24294. },
  24295. meridiem: function meridiem(hour, minute, isLower) {
  24296. if (hour < 12) {
  24297. return 'صبح';
  24298. }
  24299. return 'شام';
  24300. },
  24301. calendar: {
  24302. sameDay: '[اڄ] LT',
  24303. nextDay: '[سڀاڻي] LT',
  24304. nextWeek: 'dddd [اڳين هفتي تي] LT',
  24305. lastDay: '[ڪالهه] LT',
  24306. lastWeek: '[گزريل هفتي] dddd [تي] LT',
  24307. sameElse: 'L'
  24308. },
  24309. relativeTime: {
  24310. future: '%s پوء',
  24311. past: '%s اڳ',
  24312. s: 'چند سيڪنڊ',
  24313. ss: '%d سيڪنڊ',
  24314. m: 'هڪ منٽ',
  24315. mm: '%d منٽ',
  24316. h: 'هڪ ڪلاڪ',
  24317. hh: '%d ڪلاڪ',
  24318. d: 'هڪ ڏينهن',
  24319. dd: '%d ڏينهن',
  24320. M: 'هڪ مهينو',
  24321. MM: '%d مهينا',
  24322. y: 'هڪ سال',
  24323. yy: '%d سال'
  24324. },
  24325. preparse: function preparse(string) {
  24326. return string.replace(/،/g, ',');
  24327. },
  24328. postformat: function postformat(string) {
  24329. return string.replace(/,/g, '،');
  24330. },
  24331. week: {
  24332. dow: 1,
  24333. // Monday is the first day of the week.
  24334. doy: 4 // The week that contains Jan 4th is the first week of the year.
  24335. }
  24336. });
  24337. return sd;
  24338. });
  24339. /***/ }),
  24340. /* 143 */
  24341. /*!***************************************************************!*\
  24342. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/se.js ***!
  24343. \***************************************************************/
  24344. /*! no static exports found */
  24345. /***/ (function(module, exports, __webpack_require__) {
  24346. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  24347. //! moment.js locale configuration
  24348. //! locale : Northern Sami [se]
  24349. //! authors : Bård Rolstad Henriksen : https://github.com/karamell
  24350. ;
  24351. (function (global, factory) {
  24352. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  24353. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  24354. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  24355. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  24356. })(this, function (moment) {
  24357. 'use strict';
  24358. //! moment.js locale configuration
  24359. var se = moment.defineLocale('se', {
  24360. months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split('_'),
  24361. monthsShort: 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
  24362. weekdays: 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'),
  24363. weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
  24364. weekdaysMin: 's_v_m_g_d_b_L'.split('_'),
  24365. longDateFormat: {
  24366. LT: 'HH:mm',
  24367. LTS: 'HH:mm:ss',
  24368. L: 'DD.MM.YYYY',
  24369. LL: 'MMMM D. [b.] YYYY',
  24370. LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm',
  24371. LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm'
  24372. },
  24373. calendar: {
  24374. sameDay: '[otne ti] LT',
  24375. nextDay: '[ihttin ti] LT',
  24376. nextWeek: 'dddd [ti] LT',
  24377. lastDay: '[ikte ti] LT',
  24378. lastWeek: '[ovddit] dddd [ti] LT',
  24379. sameElse: 'L'
  24380. },
  24381. relativeTime: {
  24382. future: '%s geažes',
  24383. past: 'maŋit %s',
  24384. s: 'moadde sekunddat',
  24385. ss: '%d sekunddat',
  24386. m: 'okta minuhta',
  24387. mm: '%d minuhtat',
  24388. h: 'okta diimmu',
  24389. hh: '%d diimmut',
  24390. d: 'okta beaivi',
  24391. dd: '%d beaivvit',
  24392. M: 'okta mánnu',
  24393. MM: '%d mánut',
  24394. y: 'okta jahki',
  24395. yy: '%d jagit'
  24396. },
  24397. dayOfMonthOrdinalParse: /\d{1,2}\./,
  24398. ordinal: '%d.',
  24399. week: {
  24400. dow: 1,
  24401. // Monday is the first day of the week.
  24402. doy: 4 // The week that contains Jan 4th is the first week of the year.
  24403. }
  24404. });
  24405. return se;
  24406. });
  24407. /***/ }),
  24408. /* 144 */
  24409. /*!***************************************************************!*\
  24410. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/si.js ***!
  24411. \***************************************************************/
  24412. /*! no static exports found */
  24413. /***/ (function(module, exports, __webpack_require__) {
  24414. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  24415. //! moment.js locale configuration
  24416. //! locale : Sinhalese [si]
  24417. //! author : Sampath Sitinamaluwa : https://github.com/sampathsris
  24418. ;
  24419. (function (global, factory) {
  24420. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  24421. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  24422. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  24423. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  24424. })(this, function (moment) {
  24425. 'use strict';
  24426. //! moment.js locale configuration
  24427. /*jshint -W100*/
  24428. var si = moment.defineLocale('si', {
  24429. months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),
  24430. monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),
  24431. weekdays: 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),
  24432. weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
  24433. weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
  24434. weekdaysParseExact: true,
  24435. longDateFormat: {
  24436. LT: 'a h:mm',
  24437. LTS: 'a h:mm:ss',
  24438. L: 'YYYY/MM/DD',
  24439. LL: 'YYYY MMMM D',
  24440. LLL: 'YYYY MMMM D, a h:mm',
  24441. LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss'
  24442. },
  24443. calendar: {
  24444. sameDay: '[අද] LT[ට]',
  24445. nextDay: '[හෙට] LT[ට]',
  24446. nextWeek: 'dddd LT[ට]',
  24447. lastDay: '[ඊයේ] LT[ට]',
  24448. lastWeek: '[පසුගිය] dddd LT[ට]',
  24449. sameElse: 'L'
  24450. },
  24451. relativeTime: {
  24452. future: '%sකින්',
  24453. past: '%sකට පෙර',
  24454. s: 'තත්පර කිහිපය',
  24455. ss: 'තත්පර %d',
  24456. m: 'මිනිත්තුව',
  24457. mm: 'මිනිත්තු %d',
  24458. h: 'පැය',
  24459. hh: 'පැය %d',
  24460. d: 'දිනය',
  24461. dd: 'දින %d',
  24462. M: 'මාසය',
  24463. MM: 'මාස %d',
  24464. y: 'වසර',
  24465. yy: 'වසර %d'
  24466. },
  24467. dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
  24468. ordinal: function ordinal(number) {
  24469. return number + ' වැනි';
  24470. },
  24471. meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
  24472. isPM: function isPM(input) {
  24473. return input === 'ප.ව.' || input === 'පස් වරු';
  24474. },
  24475. meridiem: function meridiem(hours, minutes, isLower) {
  24476. if (hours > 11) {
  24477. return isLower ? 'ප.ව.' : 'පස් වරු';
  24478. } else {
  24479. return isLower ? 'පෙ.ව.' : 'පෙර වරු';
  24480. }
  24481. }
  24482. });
  24483. return si;
  24484. });
  24485. /***/ }),
  24486. /* 145 */
  24487. /*!***************************************************************!*\
  24488. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/sk.js ***!
  24489. \***************************************************************/
  24490. /*! no static exports found */
  24491. /***/ (function(module, exports, __webpack_require__) {
  24492. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  24493. //! moment.js locale configuration
  24494. //! locale : Slovak [sk]
  24495. //! author : Martin Minka : https://github.com/k2s
  24496. //! based on work of petrbela : https://github.com/petrbela
  24497. ;
  24498. (function (global, factory) {
  24499. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  24500. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  24501. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  24502. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  24503. })(this, function (moment) {
  24504. 'use strict';
  24505. //! moment.js locale configuration
  24506. var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_'),
  24507. monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
  24508. function plural(n) {
  24509. return n > 1 && n < 5;
  24510. }
  24511. function translate(number, withoutSuffix, key, isFuture) {
  24512. var result = number + ' ';
  24513. switch (key) {
  24514. case 's':
  24515. // a few seconds / in a few seconds / a few seconds ago
  24516. return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami';
  24517. case 'ss':
  24518. // 9 seconds / in 9 seconds / 9 seconds ago
  24519. if (withoutSuffix || isFuture) {
  24520. return result + (plural(number) ? 'sekundy' : 'sekúnd');
  24521. } else {
  24522. return result + 'sekundami';
  24523. }
  24524. case 'm':
  24525. // a minute / in a minute / a minute ago
  24526. return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou';
  24527. case 'mm':
  24528. // 9 minutes / in 9 minutes / 9 minutes ago
  24529. if (withoutSuffix || isFuture) {
  24530. return result + (plural(number) ? 'minúty' : 'minút');
  24531. } else {
  24532. return result + 'minútami';
  24533. }
  24534. case 'h':
  24535. // an hour / in an hour / an hour ago
  24536. return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
  24537. case 'hh':
  24538. // 9 hours / in 9 hours / 9 hours ago
  24539. if (withoutSuffix || isFuture) {
  24540. return result + (plural(number) ? 'hodiny' : 'hodín');
  24541. } else {
  24542. return result + 'hodinami';
  24543. }
  24544. case 'd':
  24545. // a day / in a day / a day ago
  24546. return withoutSuffix || isFuture ? 'deň' : 'dňom';
  24547. case 'dd':
  24548. // 9 days / in 9 days / 9 days ago
  24549. if (withoutSuffix || isFuture) {
  24550. return result + (plural(number) ? 'dni' : 'dní');
  24551. } else {
  24552. return result + 'dňami';
  24553. }
  24554. case 'M':
  24555. // a month / in a month / a month ago
  24556. return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom';
  24557. case 'MM':
  24558. // 9 months / in 9 months / 9 months ago
  24559. if (withoutSuffix || isFuture) {
  24560. return result + (plural(number) ? 'mesiace' : 'mesiacov');
  24561. } else {
  24562. return result + 'mesiacmi';
  24563. }
  24564. case 'y':
  24565. // a year / in a year / a year ago
  24566. return withoutSuffix || isFuture ? 'rok' : 'rokom';
  24567. case 'yy':
  24568. // 9 years / in 9 years / 9 years ago
  24569. if (withoutSuffix || isFuture) {
  24570. return result + (plural(number) ? 'roky' : 'rokov');
  24571. } else {
  24572. return result + 'rokmi';
  24573. }
  24574. }
  24575. }
  24576. var sk = moment.defineLocale('sk', {
  24577. months: months,
  24578. monthsShort: monthsShort,
  24579. weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
  24580. weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'),
  24581. weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'),
  24582. longDateFormat: {
  24583. LT: 'H:mm',
  24584. LTS: 'H:mm:ss',
  24585. L: 'DD.MM.YYYY',
  24586. LL: 'D. MMMM YYYY',
  24587. LLL: 'D. MMMM YYYY H:mm',
  24588. LLLL: 'dddd D. MMMM YYYY H:mm'
  24589. },
  24590. calendar: {
  24591. sameDay: '[dnes o] LT',
  24592. nextDay: '[zajtra o] LT',
  24593. nextWeek: function nextWeek() {
  24594. switch (this.day()) {
  24595. case 0:
  24596. return '[v nedeľu o] LT';
  24597. case 1:
  24598. case 2:
  24599. return '[v] dddd [o] LT';
  24600. case 3:
  24601. return '[v stredu o] LT';
  24602. case 4:
  24603. return '[vo štvrtok o] LT';
  24604. case 5:
  24605. return '[v piatok o] LT';
  24606. case 6:
  24607. return '[v sobotu o] LT';
  24608. }
  24609. },
  24610. lastDay: '[včera o] LT',
  24611. lastWeek: function lastWeek() {
  24612. switch (this.day()) {
  24613. case 0:
  24614. return '[minulú nedeľu o] LT';
  24615. case 1:
  24616. case 2:
  24617. return '[minulý] dddd [o] LT';
  24618. case 3:
  24619. return '[minulú stredu o] LT';
  24620. case 4:
  24621. case 5:
  24622. return '[minulý] dddd [o] LT';
  24623. case 6:
  24624. return '[minulú sobotu o] LT';
  24625. }
  24626. },
  24627. sameElse: 'L'
  24628. },
  24629. relativeTime: {
  24630. future: 'za %s',
  24631. past: 'pred %s',
  24632. s: translate,
  24633. ss: translate,
  24634. m: translate,
  24635. mm: translate,
  24636. h: translate,
  24637. hh: translate,
  24638. d: translate,
  24639. dd: translate,
  24640. M: translate,
  24641. MM: translate,
  24642. y: translate,
  24643. yy: translate
  24644. },
  24645. dayOfMonthOrdinalParse: /\d{1,2}\./,
  24646. ordinal: '%d.',
  24647. week: {
  24648. dow: 1,
  24649. // Monday is the first day of the week.
  24650. doy: 4 // The week that contains Jan 4th is the first week of the year.
  24651. }
  24652. });
  24653. return sk;
  24654. });
  24655. /***/ }),
  24656. /* 146 */
  24657. /*!***************************************************************!*\
  24658. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/sl.js ***!
  24659. \***************************************************************/
  24660. /*! no static exports found */
  24661. /***/ (function(module, exports, __webpack_require__) {
  24662. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  24663. //! moment.js locale configuration
  24664. //! locale : Slovenian [sl]
  24665. //! author : Robert Sedovšek : https://github.com/sedovsek
  24666. ;
  24667. (function (global, factory) {
  24668. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  24669. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  24670. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  24671. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  24672. })(this, function (moment) {
  24673. 'use strict';
  24674. //! moment.js locale configuration
  24675. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  24676. var result = number + ' ';
  24677. switch (key) {
  24678. case 's':
  24679. return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
  24680. case 'ss':
  24681. if (number === 1) {
  24682. result += withoutSuffix ? 'sekundo' : 'sekundi';
  24683. } else if (number === 2) {
  24684. result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';
  24685. } else if (number < 5) {
  24686. result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';
  24687. } else {
  24688. result += 'sekund';
  24689. }
  24690. return result;
  24691. case 'm':
  24692. return withoutSuffix ? 'ena minuta' : 'eno minuto';
  24693. case 'mm':
  24694. if (number === 1) {
  24695. result += withoutSuffix ? 'minuta' : 'minuto';
  24696. } else if (number === 2) {
  24697. result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
  24698. } else if (number < 5) {
  24699. result += withoutSuffix || isFuture ? 'minute' : 'minutami';
  24700. } else {
  24701. result += withoutSuffix || isFuture ? 'minut' : 'minutami';
  24702. }
  24703. return result;
  24704. case 'h':
  24705. return withoutSuffix ? 'ena ura' : 'eno uro';
  24706. case 'hh':
  24707. if (number === 1) {
  24708. result += withoutSuffix ? 'ura' : 'uro';
  24709. } else if (number === 2) {
  24710. result += withoutSuffix || isFuture ? 'uri' : 'urama';
  24711. } else if (number < 5) {
  24712. result += withoutSuffix || isFuture ? 'ure' : 'urami';
  24713. } else {
  24714. result += withoutSuffix || isFuture ? 'ur' : 'urami';
  24715. }
  24716. return result;
  24717. case 'd':
  24718. return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
  24719. case 'dd':
  24720. if (number === 1) {
  24721. result += withoutSuffix || isFuture ? 'dan' : 'dnem';
  24722. } else if (number === 2) {
  24723. result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
  24724. } else {
  24725. result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
  24726. }
  24727. return result;
  24728. case 'M':
  24729. return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
  24730. case 'MM':
  24731. if (number === 1) {
  24732. result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
  24733. } else if (number === 2) {
  24734. result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
  24735. } else if (number < 5) {
  24736. result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
  24737. } else {
  24738. result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
  24739. }
  24740. return result;
  24741. case 'y':
  24742. return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
  24743. case 'yy':
  24744. if (number === 1) {
  24745. result += withoutSuffix || isFuture ? 'leto' : 'letom';
  24746. } else if (number === 2) {
  24747. result += withoutSuffix || isFuture ? 'leti' : 'letoma';
  24748. } else if (number < 5) {
  24749. result += withoutSuffix || isFuture ? 'leta' : 'leti';
  24750. } else {
  24751. result += withoutSuffix || isFuture ? 'let' : 'leti';
  24752. }
  24753. return result;
  24754. }
  24755. }
  24756. var sl = moment.defineLocale('sl', {
  24757. months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
  24758. monthsShort: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
  24759. monthsParseExact: true,
  24760. weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
  24761. weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
  24762. weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'),
  24763. weekdaysParseExact: true,
  24764. longDateFormat: {
  24765. LT: 'H:mm',
  24766. LTS: 'H:mm:ss',
  24767. L: 'DD. MM. YYYY',
  24768. LL: 'D. MMMM YYYY',
  24769. LLL: 'D. MMMM YYYY H:mm',
  24770. LLLL: 'dddd, D. MMMM YYYY H:mm'
  24771. },
  24772. calendar: {
  24773. sameDay: '[danes ob] LT',
  24774. nextDay: '[jutri ob] LT',
  24775. nextWeek: function nextWeek() {
  24776. switch (this.day()) {
  24777. case 0:
  24778. return '[v] [nedeljo] [ob] LT';
  24779. case 3:
  24780. return '[v] [sredo] [ob] LT';
  24781. case 6:
  24782. return '[v] [soboto] [ob] LT';
  24783. case 1:
  24784. case 2:
  24785. case 4:
  24786. case 5:
  24787. return '[v] dddd [ob] LT';
  24788. }
  24789. },
  24790. lastDay: '[včeraj ob] LT',
  24791. lastWeek: function lastWeek() {
  24792. switch (this.day()) {
  24793. case 0:
  24794. return '[prejšnjo] [nedeljo] [ob] LT';
  24795. case 3:
  24796. return '[prejšnjo] [sredo] [ob] LT';
  24797. case 6:
  24798. return '[prejšnjo] [soboto] [ob] LT';
  24799. case 1:
  24800. case 2:
  24801. case 4:
  24802. case 5:
  24803. return '[prejšnji] dddd [ob] LT';
  24804. }
  24805. },
  24806. sameElse: 'L'
  24807. },
  24808. relativeTime: {
  24809. future: 'čez %s',
  24810. past: 'pred %s',
  24811. s: processRelativeTime,
  24812. ss: processRelativeTime,
  24813. m: processRelativeTime,
  24814. mm: processRelativeTime,
  24815. h: processRelativeTime,
  24816. hh: processRelativeTime,
  24817. d: processRelativeTime,
  24818. dd: processRelativeTime,
  24819. M: processRelativeTime,
  24820. MM: processRelativeTime,
  24821. y: processRelativeTime,
  24822. yy: processRelativeTime
  24823. },
  24824. dayOfMonthOrdinalParse: /\d{1,2}\./,
  24825. ordinal: '%d.',
  24826. week: {
  24827. dow: 1,
  24828. // Monday is the first day of the week.
  24829. doy: 7 // The week that contains Jan 7th is the first week of the year.
  24830. }
  24831. });
  24832. return sl;
  24833. });
  24834. /***/ }),
  24835. /* 147 */
  24836. /*!***************************************************************!*\
  24837. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/sq.js ***!
  24838. \***************************************************************/
  24839. /*! no static exports found */
  24840. /***/ (function(module, exports, __webpack_require__) {
  24841. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  24842. //! moment.js locale configuration
  24843. //! locale : Albanian [sq]
  24844. //! author : Flakërim Ismani : https://github.com/flakerimi
  24845. //! author : Menelion Elensúle : https://github.com/Oire
  24846. //! author : Oerd Cukalla : https://github.com/oerd
  24847. ;
  24848. (function (global, factory) {
  24849. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  24850. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  24851. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  24852. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  24853. })(this, function (moment) {
  24854. 'use strict';
  24855. //! moment.js locale configuration
  24856. var sq = moment.defineLocale('sq', {
  24857. months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),
  24858. monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
  24859. weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),
  24860. weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
  24861. weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'),
  24862. weekdaysParseExact: true,
  24863. meridiemParse: /PD|MD/,
  24864. isPM: function isPM(input) {
  24865. return input.charAt(0) === 'M';
  24866. },
  24867. meridiem: function meridiem(hours, minutes, isLower) {
  24868. return hours < 12 ? 'PD' : 'MD';
  24869. },
  24870. longDateFormat: {
  24871. LT: 'HH:mm',
  24872. LTS: 'HH:mm:ss',
  24873. L: 'DD/MM/YYYY',
  24874. LL: 'D MMMM YYYY',
  24875. LLL: 'D MMMM YYYY HH:mm',
  24876. LLLL: 'dddd, D MMMM YYYY HH:mm'
  24877. },
  24878. calendar: {
  24879. sameDay: '[Sot në] LT',
  24880. nextDay: '[Nesër në] LT',
  24881. nextWeek: 'dddd [në] LT',
  24882. lastDay: '[Dje në] LT',
  24883. lastWeek: 'dddd [e kaluar në] LT',
  24884. sameElse: 'L'
  24885. },
  24886. relativeTime: {
  24887. future: 'në %s',
  24888. past: '%s më parë',
  24889. s: 'disa sekonda',
  24890. ss: '%d sekonda',
  24891. m: 'një minutë',
  24892. mm: '%d minuta',
  24893. h: 'një orë',
  24894. hh: '%d orë',
  24895. d: 'një ditë',
  24896. dd: '%d ditë',
  24897. M: 'një muaj',
  24898. MM: '%d muaj',
  24899. y: 'një vit',
  24900. yy: '%d vite'
  24901. },
  24902. dayOfMonthOrdinalParse: /\d{1,2}\./,
  24903. ordinal: '%d.',
  24904. week: {
  24905. dow: 1,
  24906. // Monday is the first day of the week.
  24907. doy: 4 // The week that contains Jan 4th is the first week of the year.
  24908. }
  24909. });
  24910. return sq;
  24911. });
  24912. /***/ }),
  24913. /* 148 */
  24914. /*!***************************************************************!*\
  24915. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/sr.js ***!
  24916. \***************************************************************/
  24917. /*! no static exports found */
  24918. /***/ (function(module, exports, __webpack_require__) {
  24919. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  24920. //! moment.js locale configuration
  24921. //! locale : Serbian [sr]
  24922. //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
  24923. //! author : Stefan Crnjaković <stefan@hotmail.rs> : https://github.com/crnjakovic
  24924. ;
  24925. (function (global, factory) {
  24926. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  24927. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  24928. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  24929. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  24930. })(this, function (moment) {
  24931. 'use strict';
  24932. //! moment.js locale configuration
  24933. var translator = {
  24934. words: {
  24935. //Different grammatical cases
  24936. ss: ['sekunda', 'sekunde', 'sekundi'],
  24937. m: ['jedan minut', 'jednog minuta'],
  24938. mm: ['minut', 'minuta', 'minuta'],
  24939. h: ['jedan sat', 'jednog sata'],
  24940. hh: ['sat', 'sata', 'sati'],
  24941. d: ['jedan dan', 'jednog dana'],
  24942. dd: ['dan', 'dana', 'dana'],
  24943. M: ['jedan mesec', 'jednog meseca'],
  24944. MM: ['mesec', 'meseca', 'meseci'],
  24945. y: ['jednu godinu', 'jedne godine'],
  24946. yy: ['godinu', 'godine', 'godina']
  24947. },
  24948. correctGrammaticalCase: function correctGrammaticalCase(number, wordKey) {
  24949. if (number % 10 >= 1 && number % 10 <= 4 && (number % 100 < 10 || number % 100 >= 20)) {
  24950. return number % 10 === 1 ? wordKey[0] : wordKey[1];
  24951. }
  24952. return wordKey[2];
  24953. },
  24954. translate: function translate(number, withoutSuffix, key, isFuture) {
  24955. var wordKey = translator.words[key],
  24956. word;
  24957. if (key.length === 1) {
  24958. // Nominativ
  24959. if (key === 'y' && withoutSuffix) return 'jedna godina';
  24960. return isFuture || withoutSuffix ? wordKey[0] : wordKey[1];
  24961. }
  24962. word = translator.correctGrammaticalCase(number, wordKey);
  24963. // Nominativ
  24964. if (key === 'yy' && withoutSuffix && word === 'godinu') {
  24965. return number + ' godina';
  24966. }
  24967. return number + ' ' + word;
  24968. }
  24969. };
  24970. var sr = moment.defineLocale('sr', {
  24971. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
  24972. monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
  24973. monthsParseExact: true,
  24974. weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split('_'),
  24975. weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
  24976. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  24977. weekdaysParseExact: true,
  24978. longDateFormat: {
  24979. LT: 'H:mm',
  24980. LTS: 'H:mm:ss',
  24981. L: 'D. M. YYYY.',
  24982. LL: 'D. MMMM YYYY.',
  24983. LLL: 'D. MMMM YYYY. H:mm',
  24984. LLLL: 'dddd, D. MMMM YYYY. H:mm'
  24985. },
  24986. calendar: {
  24987. sameDay: '[danas u] LT',
  24988. nextDay: '[sutra u] LT',
  24989. nextWeek: function nextWeek() {
  24990. switch (this.day()) {
  24991. case 0:
  24992. return '[u] [nedelju] [u] LT';
  24993. case 3:
  24994. return '[u] [sredu] [u] LT';
  24995. case 6:
  24996. return '[u] [subotu] [u] LT';
  24997. case 1:
  24998. case 2:
  24999. case 4:
  25000. case 5:
  25001. return '[u] dddd [u] LT';
  25002. }
  25003. },
  25004. lastDay: '[juče u] LT',
  25005. lastWeek: function lastWeek() {
  25006. var lastWeekDays = ['[prošle] [nedelje] [u] LT', '[prošlog] [ponedeljka] [u] LT', '[prošlog] [utorka] [u] LT', '[prošle] [srede] [u] LT', '[prošlog] [četvrtka] [u] LT', '[prošlog] [petka] [u] LT', '[prošle] [subote] [u] LT'];
  25007. return lastWeekDays[this.day()];
  25008. },
  25009. sameElse: 'L'
  25010. },
  25011. relativeTime: {
  25012. future: 'za %s',
  25013. past: 'pre %s',
  25014. s: 'nekoliko sekundi',
  25015. ss: translator.translate,
  25016. m: translator.translate,
  25017. mm: translator.translate,
  25018. h: translator.translate,
  25019. hh: translator.translate,
  25020. d: translator.translate,
  25021. dd: translator.translate,
  25022. M: translator.translate,
  25023. MM: translator.translate,
  25024. y: translator.translate,
  25025. yy: translator.translate
  25026. },
  25027. dayOfMonthOrdinalParse: /\d{1,2}\./,
  25028. ordinal: '%d.',
  25029. week: {
  25030. dow: 1,
  25031. // Monday is the first day of the week.
  25032. doy: 7 // The week that contains Jan 7th is the first week of the year.
  25033. }
  25034. });
  25035. return sr;
  25036. });
  25037. /***/ }),
  25038. /* 149 */
  25039. /*!********************************************************************!*\
  25040. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/sr-cyrl.js ***!
  25041. \********************************************************************/
  25042. /*! no static exports found */
  25043. /***/ (function(module, exports, __webpack_require__) {
  25044. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  25045. //! moment.js locale configuration
  25046. //! locale : Serbian Cyrillic [sr-cyrl]
  25047. //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
  25048. //! author : Stefan Crnjaković <stefan@hotmail.rs> : https://github.com/crnjakovic
  25049. ;
  25050. (function (global, factory) {
  25051. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25052. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25053. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  25054. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  25055. })(this, function (moment) {
  25056. 'use strict';
  25057. //! moment.js locale configuration
  25058. var translator = {
  25059. words: {
  25060. //Different grammatical cases
  25061. ss: ['секунда', 'секунде', 'секунди'],
  25062. m: ['један минут', 'једног минута'],
  25063. mm: ['минут', 'минута', 'минута'],
  25064. h: ['један сат', 'једног сата'],
  25065. hh: ['сат', 'сата', 'сати'],
  25066. d: ['један дан', 'једног дана'],
  25067. dd: ['дан', 'дана', 'дана'],
  25068. M: ['један месец', 'једног месеца'],
  25069. MM: ['месец', 'месеца', 'месеци'],
  25070. y: ['једну годину', 'једне године'],
  25071. yy: ['годину', 'године', 'година']
  25072. },
  25073. correctGrammaticalCase: function correctGrammaticalCase(number, wordKey) {
  25074. if (number % 10 >= 1 && number % 10 <= 4 && (number % 100 < 10 || number % 100 >= 20)) {
  25075. return number % 10 === 1 ? wordKey[0] : wordKey[1];
  25076. }
  25077. return wordKey[2];
  25078. },
  25079. translate: function translate(number, withoutSuffix, key, isFuture) {
  25080. var wordKey = translator.words[key],
  25081. word;
  25082. if (key.length === 1) {
  25083. // Nominativ
  25084. if (key === 'y' && withoutSuffix) return 'једна година';
  25085. return isFuture || withoutSuffix ? wordKey[0] : wordKey[1];
  25086. }
  25087. word = translator.correctGrammaticalCase(number, wordKey);
  25088. // Nominativ
  25089. if (key === 'yy' && withoutSuffix && word === 'годину') {
  25090. return number + ' година';
  25091. }
  25092. return number + ' ' + word;
  25093. }
  25094. };
  25095. var srCyrl = moment.defineLocale('sr-cyrl', {
  25096. months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split('_'),
  25097. monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),
  25098. monthsParseExact: true,
  25099. weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
  25100. weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
  25101. weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
  25102. weekdaysParseExact: true,
  25103. longDateFormat: {
  25104. LT: 'H:mm',
  25105. LTS: 'H:mm:ss',
  25106. L: 'D. M. YYYY.',
  25107. LL: 'D. MMMM YYYY.',
  25108. LLL: 'D. MMMM YYYY. H:mm',
  25109. LLLL: 'dddd, D. MMMM YYYY. H:mm'
  25110. },
  25111. calendar: {
  25112. sameDay: '[данас у] LT',
  25113. nextDay: '[сутра у] LT',
  25114. nextWeek: function nextWeek() {
  25115. switch (this.day()) {
  25116. case 0:
  25117. return '[у] [недељу] [у] LT';
  25118. case 3:
  25119. return '[у] [среду] [у] LT';
  25120. case 6:
  25121. return '[у] [суботу] [у] LT';
  25122. case 1:
  25123. case 2:
  25124. case 4:
  25125. case 5:
  25126. return '[у] dddd [у] LT';
  25127. }
  25128. },
  25129. lastDay: '[јуче у] LT',
  25130. lastWeek: function lastWeek() {
  25131. var lastWeekDays = ['[прошле] [недеље] [у] LT', '[прошлог] [понедељка] [у] LT', '[прошлог] [уторка] [у] LT', '[прошле] [среде] [у] LT', '[прошлог] [четвртка] [у] LT', '[прошлог] [петка] [у] LT', '[прошле] [суботе] [у] LT'];
  25132. return lastWeekDays[this.day()];
  25133. },
  25134. sameElse: 'L'
  25135. },
  25136. relativeTime: {
  25137. future: 'за %s',
  25138. past: 'пре %s',
  25139. s: 'неколико секунди',
  25140. ss: translator.translate,
  25141. m: translator.translate,
  25142. mm: translator.translate,
  25143. h: translator.translate,
  25144. hh: translator.translate,
  25145. d: translator.translate,
  25146. dd: translator.translate,
  25147. M: translator.translate,
  25148. MM: translator.translate,
  25149. y: translator.translate,
  25150. yy: translator.translate
  25151. },
  25152. dayOfMonthOrdinalParse: /\d{1,2}\./,
  25153. ordinal: '%d.',
  25154. week: {
  25155. dow: 1,
  25156. // Monday is the first day of the week.
  25157. doy: 7 // The week that contains Jan 1st is the first week of the year.
  25158. }
  25159. });
  25160. return srCyrl;
  25161. });
  25162. /***/ }),
  25163. /* 150 */
  25164. /*!***************************************************************!*\
  25165. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ss.js ***!
  25166. \***************************************************************/
  25167. /*! no static exports found */
  25168. /***/ (function(module, exports, __webpack_require__) {
  25169. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  25170. //! moment.js locale configuration
  25171. //! locale : siSwati [ss]
  25172. //! author : Nicolai Davies<mail@nicolai.io> : https://github.com/nicolaidavies
  25173. ;
  25174. (function (global, factory) {
  25175. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25176. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25177. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  25178. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  25179. })(this, function (moment) {
  25180. 'use strict';
  25181. //! moment.js locale configuration
  25182. var ss = moment.defineLocale('ss', {
  25183. months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split('_'),
  25184. monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
  25185. weekdays: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split('_'),
  25186. weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
  25187. weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
  25188. weekdaysParseExact: true,
  25189. longDateFormat: {
  25190. LT: 'h:mm A',
  25191. LTS: 'h:mm:ss A',
  25192. L: 'DD/MM/YYYY',
  25193. LL: 'D MMMM YYYY',
  25194. LLL: 'D MMMM YYYY h:mm A',
  25195. LLLL: 'dddd, D MMMM YYYY h:mm A'
  25196. },
  25197. calendar: {
  25198. sameDay: '[Namuhla nga] LT',
  25199. nextDay: '[Kusasa nga] LT',
  25200. nextWeek: 'dddd [nga] LT',
  25201. lastDay: '[Itolo nga] LT',
  25202. lastWeek: 'dddd [leliphelile] [nga] LT',
  25203. sameElse: 'L'
  25204. },
  25205. relativeTime: {
  25206. future: 'nga %s',
  25207. past: 'wenteka nga %s',
  25208. s: 'emizuzwana lomcane',
  25209. ss: '%d mzuzwana',
  25210. m: 'umzuzu',
  25211. mm: '%d emizuzu',
  25212. h: 'lihora',
  25213. hh: '%d emahora',
  25214. d: 'lilanga',
  25215. dd: '%d emalanga',
  25216. M: 'inyanga',
  25217. MM: '%d tinyanga',
  25218. y: 'umnyaka',
  25219. yy: '%d iminyaka'
  25220. },
  25221. meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
  25222. meridiem: function meridiem(hours, minutes, isLower) {
  25223. if (hours < 11) {
  25224. return 'ekuseni';
  25225. } else if (hours < 15) {
  25226. return 'emini';
  25227. } else if (hours < 19) {
  25228. return 'entsambama';
  25229. } else {
  25230. return 'ebusuku';
  25231. }
  25232. },
  25233. meridiemHour: function meridiemHour(hour, meridiem) {
  25234. if (hour === 12) {
  25235. hour = 0;
  25236. }
  25237. if (meridiem === 'ekuseni') {
  25238. return hour;
  25239. } else if (meridiem === 'emini') {
  25240. return hour >= 11 ? hour : hour + 12;
  25241. } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
  25242. if (hour === 0) {
  25243. return 0;
  25244. }
  25245. return hour + 12;
  25246. }
  25247. },
  25248. dayOfMonthOrdinalParse: /\d{1,2}/,
  25249. ordinal: '%d',
  25250. week: {
  25251. dow: 1,
  25252. // Monday is the first day of the week.
  25253. doy: 4 // The week that contains Jan 4th is the first week of the year.
  25254. }
  25255. });
  25256. return ss;
  25257. });
  25258. /***/ }),
  25259. /* 151 */
  25260. /*!***************************************************************!*\
  25261. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/sv.js ***!
  25262. \***************************************************************/
  25263. /*! no static exports found */
  25264. /***/ (function(module, exports, __webpack_require__) {
  25265. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  25266. //! moment.js locale configuration
  25267. //! locale : Swedish [sv]
  25268. //! author : Jens Alm : https://github.com/ulmus
  25269. ;
  25270. (function (global, factory) {
  25271. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25272. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25273. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  25274. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  25275. })(this, function (moment) {
  25276. 'use strict';
  25277. //! moment.js locale configuration
  25278. var sv = moment.defineLocale('sv', {
  25279. months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
  25280. monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  25281. weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
  25282. weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
  25283. weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),
  25284. longDateFormat: {
  25285. LT: 'HH:mm',
  25286. LTS: 'HH:mm:ss',
  25287. L: 'YYYY-MM-DD',
  25288. LL: 'D MMMM YYYY',
  25289. LLL: 'D MMMM YYYY [kl.] HH:mm',
  25290. LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',
  25291. lll: 'D MMM YYYY HH:mm',
  25292. llll: 'ddd D MMM YYYY HH:mm'
  25293. },
  25294. calendar: {
  25295. sameDay: '[Idag] LT',
  25296. nextDay: '[Imorgon] LT',
  25297. lastDay: '[Igår] LT',
  25298. nextWeek: '[På] dddd LT',
  25299. lastWeek: '[I] dddd[s] LT',
  25300. sameElse: 'L'
  25301. },
  25302. relativeTime: {
  25303. future: 'om %s',
  25304. past: 'för %s sedan',
  25305. s: 'några sekunder',
  25306. ss: '%d sekunder',
  25307. m: 'en minut',
  25308. mm: '%d minuter',
  25309. h: 'en timme',
  25310. hh: '%d timmar',
  25311. d: 'en dag',
  25312. dd: '%d dagar',
  25313. M: 'en månad',
  25314. MM: '%d månader',
  25315. y: 'ett år',
  25316. yy: '%d år'
  25317. },
  25318. dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/,
  25319. ordinal: function ordinal(number) {
  25320. var b = number % 10,
  25321. output = ~~(number % 100 / 10) === 1 ? ':e' : b === 1 ? ':a' : b === 2 ? ':a' : b === 3 ? ':e' : ':e';
  25322. return number + output;
  25323. },
  25324. week: {
  25325. dow: 1,
  25326. // Monday is the first day of the week.
  25327. doy: 4 // The week that contains Jan 4th is the first week of the year.
  25328. }
  25329. });
  25330. return sv;
  25331. });
  25332. /***/ }),
  25333. /* 152 */
  25334. /*!***************************************************************!*\
  25335. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/sw.js ***!
  25336. \***************************************************************/
  25337. /*! no static exports found */
  25338. /***/ (function(module, exports, __webpack_require__) {
  25339. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  25340. //! moment.js locale configuration
  25341. //! locale : Swahili [sw]
  25342. //! author : Fahad Kassim : https://github.com/fadsel
  25343. ;
  25344. (function (global, factory) {
  25345. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25346. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25347. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  25348. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  25349. })(this, function (moment) {
  25350. 'use strict';
  25351. //! moment.js locale configuration
  25352. var sw = moment.defineLocale('sw', {
  25353. months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),
  25354. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
  25355. weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),
  25356. weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
  25357. weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
  25358. weekdaysParseExact: true,
  25359. longDateFormat: {
  25360. LT: 'hh:mm A',
  25361. LTS: 'HH:mm:ss',
  25362. L: 'DD.MM.YYYY',
  25363. LL: 'D MMMM YYYY',
  25364. LLL: 'D MMMM YYYY HH:mm',
  25365. LLLL: 'dddd, D MMMM YYYY HH:mm'
  25366. },
  25367. calendar: {
  25368. sameDay: '[leo saa] LT',
  25369. nextDay: '[kesho saa] LT',
  25370. nextWeek: '[wiki ijayo] dddd [saat] LT',
  25371. lastDay: '[jana] LT',
  25372. lastWeek: '[wiki iliyopita] dddd [saat] LT',
  25373. sameElse: 'L'
  25374. },
  25375. relativeTime: {
  25376. future: '%s baadaye',
  25377. past: 'tokea %s',
  25378. s: 'hivi punde',
  25379. ss: 'sekunde %d',
  25380. m: 'dakika moja',
  25381. mm: 'dakika %d',
  25382. h: 'saa limoja',
  25383. hh: 'masaa %d',
  25384. d: 'siku moja',
  25385. dd: 'siku %d',
  25386. M: 'mwezi mmoja',
  25387. MM: 'miezi %d',
  25388. y: 'mwaka mmoja',
  25389. yy: 'miaka %d'
  25390. },
  25391. week: {
  25392. dow: 1,
  25393. // Monday is the first day of the week.
  25394. doy: 7 // The week that contains Jan 7th is the first week of the year.
  25395. }
  25396. });
  25397. return sw;
  25398. });
  25399. /***/ }),
  25400. /* 153 */
  25401. /*!***************************************************************!*\
  25402. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ta.js ***!
  25403. \***************************************************************/
  25404. /*! no static exports found */
  25405. /***/ (function(module, exports, __webpack_require__) {
  25406. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  25407. //! moment.js locale configuration
  25408. //! locale : Tamil [ta]
  25409. //! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404
  25410. ;
  25411. (function (global, factory) {
  25412. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25413. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25414. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  25415. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  25416. })(this, function (moment) {
  25417. 'use strict';
  25418. //! moment.js locale configuration
  25419. var symbolMap = {
  25420. 1: '௧',
  25421. 2: '௨',
  25422. 3: '௩',
  25423. 4: '௪',
  25424. 5: '௫',
  25425. 6: '௬',
  25426. 7: '௭',
  25427. 8: '௮',
  25428. 9: '௯',
  25429. 0: '௦'
  25430. },
  25431. numberMap = {
  25432. '௧': '1',
  25433. '௨': '2',
  25434. '௩': '3',
  25435. '௪': '4',
  25436. '௫': '5',
  25437. '௬': '6',
  25438. '௭': '7',
  25439. '௮': '8',
  25440. '௯': '9',
  25441. '௦': '0'
  25442. };
  25443. var ta = moment.defineLocale('ta', {
  25444. months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
  25445. monthsShort: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
  25446. weekdays: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'),
  25447. weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'),
  25448. weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
  25449. longDateFormat: {
  25450. LT: 'HH:mm',
  25451. LTS: 'HH:mm:ss',
  25452. L: 'DD/MM/YYYY',
  25453. LL: 'D MMMM YYYY',
  25454. LLL: 'D MMMM YYYY, HH:mm',
  25455. LLLL: 'dddd, D MMMM YYYY, HH:mm'
  25456. },
  25457. calendar: {
  25458. sameDay: '[இன்று] LT',
  25459. nextDay: '[நாளை] LT',
  25460. nextWeek: 'dddd, LT',
  25461. lastDay: '[நேற்று] LT',
  25462. lastWeek: '[கடந்த வாரம்] dddd, LT',
  25463. sameElse: 'L'
  25464. },
  25465. relativeTime: {
  25466. future: '%s இல்',
  25467. past: '%s முன்',
  25468. s: 'ஒரு சில விநாடிகள்',
  25469. ss: '%d விநாடிகள்',
  25470. m: 'ஒரு நிமிடம்',
  25471. mm: '%d நிமிடங்கள்',
  25472. h: 'ஒரு மணி நேரம்',
  25473. hh: '%d மணி நேரம்',
  25474. d: 'ஒரு நாள்',
  25475. dd: '%d நாட்கள்',
  25476. M: 'ஒரு மாதம்',
  25477. MM: '%d மாதங்கள்',
  25478. y: 'ஒரு வருடம்',
  25479. yy: '%d ஆண்டுகள்'
  25480. },
  25481. dayOfMonthOrdinalParse: /\d{1,2}வது/,
  25482. ordinal: function ordinal(number) {
  25483. return number + 'வது';
  25484. },
  25485. preparse: function preparse(string) {
  25486. return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
  25487. return numberMap[match];
  25488. });
  25489. },
  25490. postformat: function postformat(string) {
  25491. return string.replace(/\d/g, function (match) {
  25492. return symbolMap[match];
  25493. });
  25494. },
  25495. // refer http://ta.wikipedia.org/s/1er1
  25496. meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
  25497. meridiem: function meridiem(hour, minute, isLower) {
  25498. if (hour < 2) {
  25499. return ' யாமம்';
  25500. } else if (hour < 6) {
  25501. return ' வைகறை'; // வைகறை
  25502. } else if (hour < 10) {
  25503. return ' காலை'; // காலை
  25504. } else if (hour < 14) {
  25505. return ' நண்பகல்'; // நண்பகல்
  25506. } else if (hour < 18) {
  25507. return ' எற்பாடு'; // எற்பாடு
  25508. } else if (hour < 22) {
  25509. return ' மாலை'; // மாலை
  25510. } else {
  25511. return ' யாமம்';
  25512. }
  25513. },
  25514. meridiemHour: function meridiemHour(hour, meridiem) {
  25515. if (hour === 12) {
  25516. hour = 0;
  25517. }
  25518. if (meridiem === 'யாமம்') {
  25519. return hour < 2 ? hour : hour + 12;
  25520. } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
  25521. return hour;
  25522. } else if (meridiem === 'நண்பகல்') {
  25523. return hour >= 10 ? hour : hour + 12;
  25524. } else {
  25525. return hour + 12;
  25526. }
  25527. },
  25528. week: {
  25529. dow: 0,
  25530. // Sunday is the first day of the week.
  25531. doy: 6 // The week that contains Jan 6th is the first week of the year.
  25532. }
  25533. });
  25534. return ta;
  25535. });
  25536. /***/ }),
  25537. /* 154 */
  25538. /*!***************************************************************!*\
  25539. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/te.js ***!
  25540. \***************************************************************/
  25541. /*! no static exports found */
  25542. /***/ (function(module, exports, __webpack_require__) {
  25543. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  25544. //! moment.js locale configuration
  25545. //! locale : Telugu [te]
  25546. //! author : Krishna Chaitanya Thota : https://github.com/kcthota
  25547. ;
  25548. (function (global, factory) {
  25549. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25550. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25551. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  25552. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  25553. })(this, function (moment) {
  25554. 'use strict';
  25555. //! moment.js locale configuration
  25556. var te = moment.defineLocale('te', {
  25557. months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split('_'),
  25558. monthsShort: 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split('_'),
  25559. monthsParseExact: true,
  25560. weekdays: 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split('_'),
  25561. weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
  25562. weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
  25563. longDateFormat: {
  25564. LT: 'A h:mm',
  25565. LTS: 'A h:mm:ss',
  25566. L: 'DD/MM/YYYY',
  25567. LL: 'D MMMM YYYY',
  25568. LLL: 'D MMMM YYYY, A h:mm',
  25569. LLLL: 'dddd, D MMMM YYYY, A h:mm'
  25570. },
  25571. calendar: {
  25572. sameDay: '[నేడు] LT',
  25573. nextDay: '[రేపు] LT',
  25574. nextWeek: 'dddd, LT',
  25575. lastDay: '[నిన్న] LT',
  25576. lastWeek: '[గత] dddd, LT',
  25577. sameElse: 'L'
  25578. },
  25579. relativeTime: {
  25580. future: '%s లో',
  25581. past: '%s క్రితం',
  25582. s: 'కొన్ని క్షణాలు',
  25583. ss: '%d సెకన్లు',
  25584. m: 'ఒక నిమిషం',
  25585. mm: '%d నిమిషాలు',
  25586. h: 'ఒక గంట',
  25587. hh: '%d గంటలు',
  25588. d: 'ఒక రోజు',
  25589. dd: '%d రోజులు',
  25590. M: 'ఒక నెల',
  25591. MM: '%d నెలలు',
  25592. y: 'ఒక సంవత్సరం',
  25593. yy: '%d సంవత్సరాలు'
  25594. },
  25595. dayOfMonthOrdinalParse: /\d{1,2}వ/,
  25596. ordinal: '%dవ',
  25597. meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
  25598. meridiemHour: function meridiemHour(hour, meridiem) {
  25599. if (hour === 12) {
  25600. hour = 0;
  25601. }
  25602. if (meridiem === 'రాత్రి') {
  25603. return hour < 4 ? hour : hour + 12;
  25604. } else if (meridiem === 'ఉదయం') {
  25605. return hour;
  25606. } else if (meridiem === 'మధ్యాహ్నం') {
  25607. return hour >= 10 ? hour : hour + 12;
  25608. } else if (meridiem === 'సాయంత్రం') {
  25609. return hour + 12;
  25610. }
  25611. },
  25612. meridiem: function meridiem(hour, minute, isLower) {
  25613. if (hour < 4) {
  25614. return 'రాత్రి';
  25615. } else if (hour < 10) {
  25616. return 'ఉదయం';
  25617. } else if (hour < 17) {
  25618. return 'మధ్యాహ్నం';
  25619. } else if (hour < 20) {
  25620. return 'సాయంత్రం';
  25621. } else {
  25622. return 'రాత్రి';
  25623. }
  25624. },
  25625. week: {
  25626. dow: 0,
  25627. // Sunday is the first day of the week.
  25628. doy: 6 // The week that contains Jan 6th is the first week of the year.
  25629. }
  25630. });
  25631. return te;
  25632. });
  25633. /***/ }),
  25634. /* 155 */
  25635. /*!****************************************************************!*\
  25636. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/tet.js ***!
  25637. \****************************************************************/
  25638. /*! no static exports found */
  25639. /***/ (function(module, exports, __webpack_require__) {
  25640. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  25641. //! moment.js locale configuration
  25642. //! locale : Tetun Dili (East Timor) [tet]
  25643. //! author : Joshua Brooks : https://github.com/joshbrooks
  25644. //! author : Onorio De J. Afonso : https://github.com/marobo
  25645. //! author : Sonia Simoes : https://github.com/soniasimoes
  25646. ;
  25647. (function (global, factory) {
  25648. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25649. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25650. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  25651. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  25652. })(this, function (moment) {
  25653. 'use strict';
  25654. //! moment.js locale configuration
  25655. var tet = moment.defineLocale('tet', {
  25656. months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split('_'),
  25657. monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
  25658. weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'),
  25659. weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'),
  25660. weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'),
  25661. longDateFormat: {
  25662. LT: 'HH:mm',
  25663. LTS: 'HH:mm:ss',
  25664. L: 'DD/MM/YYYY',
  25665. LL: 'D MMMM YYYY',
  25666. LLL: 'D MMMM YYYY HH:mm',
  25667. LLLL: 'dddd, D MMMM YYYY HH:mm'
  25668. },
  25669. calendar: {
  25670. sameDay: '[Ohin iha] LT',
  25671. nextDay: '[Aban iha] LT',
  25672. nextWeek: 'dddd [iha] LT',
  25673. lastDay: '[Horiseik iha] LT',
  25674. lastWeek: 'dddd [semana kotuk] [iha] LT',
  25675. sameElse: 'L'
  25676. },
  25677. relativeTime: {
  25678. future: 'iha %s',
  25679. past: '%s liuba',
  25680. s: 'segundu balun',
  25681. ss: 'segundu %d',
  25682. m: 'minutu ida',
  25683. mm: 'minutu %d',
  25684. h: 'oras ida',
  25685. hh: 'oras %d',
  25686. d: 'loron ida',
  25687. dd: 'loron %d',
  25688. M: 'fulan ida',
  25689. MM: 'fulan %d',
  25690. y: 'tinan ida',
  25691. yy: 'tinan %d'
  25692. },
  25693. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  25694. ordinal: function ordinal(number) {
  25695. var b = number % 10,
  25696. output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  25697. return number + output;
  25698. },
  25699. week: {
  25700. dow: 1,
  25701. // Monday is the first day of the week.
  25702. doy: 4 // The week that contains Jan 4th is the first week of the year.
  25703. }
  25704. });
  25705. return tet;
  25706. });
  25707. /***/ }),
  25708. /* 156 */
  25709. /*!***************************************************************!*\
  25710. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/tg.js ***!
  25711. \***************************************************************/
  25712. /*! no static exports found */
  25713. /***/ (function(module, exports, __webpack_require__) {
  25714. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  25715. //! moment.js locale configuration
  25716. //! locale : Tajik [tg]
  25717. //! author : Orif N. Jr. : https://github.com/orif-jr
  25718. ;
  25719. (function (global, factory) {
  25720. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25721. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25722. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  25723. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  25724. })(this, function (moment) {
  25725. 'use strict';
  25726. //! moment.js locale configuration
  25727. var suffixes = {
  25728. 0: '-ум',
  25729. 1: '-ум',
  25730. 2: '-юм',
  25731. 3: '-юм',
  25732. 4: '-ум',
  25733. 5: '-ум',
  25734. 6: '-ум',
  25735. 7: '-ум',
  25736. 8: '-ум',
  25737. 9: '-ум',
  25738. 10: '-ум',
  25739. 12: '-ум',
  25740. 13: '-ум',
  25741. 20: '-ум',
  25742. 30: '-юм',
  25743. 40: '-ум',
  25744. 50: '-ум',
  25745. 60: '-ум',
  25746. 70: '-ум',
  25747. 80: '-ум',
  25748. 90: '-ум',
  25749. 100: '-ум'
  25750. };
  25751. var tg = moment.defineLocale('tg', {
  25752. months: {
  25753. format: 'январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри'.split('_'),
  25754. standalone: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_')
  25755. },
  25756. monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  25757. weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split('_'),
  25758. weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'),
  25759. weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'),
  25760. longDateFormat: {
  25761. LT: 'HH:mm',
  25762. LTS: 'HH:mm:ss',
  25763. L: 'DD.MM.YYYY',
  25764. LL: 'D MMMM YYYY',
  25765. LLL: 'D MMMM YYYY HH:mm',
  25766. LLLL: 'dddd, D MMMM YYYY HH:mm'
  25767. },
  25768. calendar: {
  25769. sameDay: '[Имрӯз соати] LT',
  25770. nextDay: '[Фардо соати] LT',
  25771. lastDay: '[Дирӯз соати] LT',
  25772. nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT',
  25773. lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT',
  25774. sameElse: 'L'
  25775. },
  25776. relativeTime: {
  25777. future: 'баъди %s',
  25778. past: '%s пеш',
  25779. s: 'якчанд сония',
  25780. m: 'як дақиқа',
  25781. mm: '%d дақиқа',
  25782. h: 'як соат',
  25783. hh: '%d соат',
  25784. d: 'як рӯз',
  25785. dd: '%d рӯз',
  25786. M: 'як моҳ',
  25787. MM: '%d моҳ',
  25788. y: 'як сол',
  25789. yy: '%d сол'
  25790. },
  25791. meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,
  25792. meridiemHour: function meridiemHour(hour, meridiem) {
  25793. if (hour === 12) {
  25794. hour = 0;
  25795. }
  25796. if (meridiem === 'шаб') {
  25797. return hour < 4 ? hour : hour + 12;
  25798. } else if (meridiem === 'субҳ') {
  25799. return hour;
  25800. } else if (meridiem === 'рӯз') {
  25801. return hour >= 11 ? hour : hour + 12;
  25802. } else if (meridiem === 'бегоҳ') {
  25803. return hour + 12;
  25804. }
  25805. },
  25806. meridiem: function meridiem(hour, minute, isLower) {
  25807. if (hour < 4) {
  25808. return 'шаб';
  25809. } else if (hour < 11) {
  25810. return 'субҳ';
  25811. } else if (hour < 16) {
  25812. return 'рӯз';
  25813. } else if (hour < 19) {
  25814. return 'бегоҳ';
  25815. } else {
  25816. return 'шаб';
  25817. }
  25818. },
  25819. dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/,
  25820. ordinal: function ordinal(number) {
  25821. var a = number % 10,
  25822. b = number >= 100 ? 100 : null;
  25823. return number + (suffixes[number] || suffixes[a] || suffixes[b]);
  25824. },
  25825. week: {
  25826. dow: 1,
  25827. // Monday is the first day of the week.
  25828. doy: 7 // The week that contains Jan 1th is the first week of the year.
  25829. }
  25830. });
  25831. return tg;
  25832. });
  25833. /***/ }),
  25834. /* 157 */
  25835. /*!***************************************************************!*\
  25836. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/th.js ***!
  25837. \***************************************************************/
  25838. /*! no static exports found */
  25839. /***/ (function(module, exports, __webpack_require__) {
  25840. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  25841. //! moment.js locale configuration
  25842. //! locale : Thai [th]
  25843. //! author : Kridsada Thanabulpong : https://github.com/sirn
  25844. ;
  25845. (function (global, factory) {
  25846. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25847. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25848. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  25849. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  25850. })(this, function (moment) {
  25851. 'use strict';
  25852. //! moment.js locale configuration
  25853. var th = moment.defineLocale('th', {
  25854. months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'),
  25855. monthsShort: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split('_'),
  25856. monthsParseExact: true,
  25857. weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
  25858. weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'),
  25859. // yes, three characters difference
  25860. weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
  25861. weekdaysParseExact: true,
  25862. longDateFormat: {
  25863. LT: 'H:mm',
  25864. LTS: 'H:mm:ss',
  25865. L: 'DD/MM/YYYY',
  25866. LL: 'D MMMM YYYY',
  25867. LLL: 'D MMMM YYYY เวลา H:mm',
  25868. LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm'
  25869. },
  25870. meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
  25871. isPM: function isPM(input) {
  25872. return input === 'หลังเที่ยง';
  25873. },
  25874. meridiem: function meridiem(hour, minute, isLower) {
  25875. if (hour < 12) {
  25876. return 'ก่อนเที่ยง';
  25877. } else {
  25878. return 'หลังเที่ยง';
  25879. }
  25880. },
  25881. calendar: {
  25882. sameDay: '[วันนี้ เวลา] LT',
  25883. nextDay: '[พรุ่งนี้ เวลา] LT',
  25884. nextWeek: 'dddd[หน้า เวลา] LT',
  25885. lastDay: '[เมื่อวานนี้ เวลา] LT',
  25886. lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT',
  25887. sameElse: 'L'
  25888. },
  25889. relativeTime: {
  25890. future: 'อีก %s',
  25891. past: '%sที่แล้ว',
  25892. s: 'ไม่กี่วินาที',
  25893. ss: '%d วินาที',
  25894. m: '1 นาที',
  25895. mm: '%d นาที',
  25896. h: '1 ชั่วโมง',
  25897. hh: '%d ชั่วโมง',
  25898. d: '1 วัน',
  25899. dd: '%d วัน',
  25900. w: '1 สัปดาห์',
  25901. ww: '%d สัปดาห์',
  25902. M: '1 เดือน',
  25903. MM: '%d เดือน',
  25904. y: '1 ปี',
  25905. yy: '%d ปี'
  25906. }
  25907. });
  25908. return th;
  25909. });
  25910. /***/ }),
  25911. /* 158 */
  25912. /*!***************************************************************!*\
  25913. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/tk.js ***!
  25914. \***************************************************************/
  25915. /*! no static exports found */
  25916. /***/ (function(module, exports, __webpack_require__) {
  25917. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  25918. //! moment.js locale configuration
  25919. //! locale : Turkmen [tk]
  25920. //! author : Atamyrat Abdyrahmanov : https://github.com/atamyratabdy
  25921. ;
  25922. (function (global, factory) {
  25923. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25924. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25925. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  25926. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  25927. })(this, function (moment) {
  25928. 'use strict';
  25929. //! moment.js locale configuration
  25930. var suffixes = {
  25931. 1: "'inji",
  25932. 5: "'inji",
  25933. 8: "'inji",
  25934. 70: "'inji",
  25935. 80: "'inji",
  25936. 2: "'nji",
  25937. 7: "'nji",
  25938. 20: "'nji",
  25939. 50: "'nji",
  25940. 3: "'ünji",
  25941. 4: "'ünji",
  25942. 100: "'ünji",
  25943. 6: "'njy",
  25944. 9: "'unjy",
  25945. 10: "'unjy",
  25946. 30: "'unjy",
  25947. 60: "'ynjy",
  25948. 90: "'ynjy"
  25949. };
  25950. var tk = moment.defineLocale('tk', {
  25951. months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split('_'),
  25952. monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'),
  25953. weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split('_'),
  25954. weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'),
  25955. weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'),
  25956. longDateFormat: {
  25957. LT: 'HH:mm',
  25958. LTS: 'HH:mm:ss',
  25959. L: 'DD.MM.YYYY',
  25960. LL: 'D MMMM YYYY',
  25961. LLL: 'D MMMM YYYY HH:mm',
  25962. LLLL: 'dddd, D MMMM YYYY HH:mm'
  25963. },
  25964. calendar: {
  25965. sameDay: '[bugün sagat] LT',
  25966. nextDay: '[ertir sagat] LT',
  25967. nextWeek: '[indiki] dddd [sagat] LT',
  25968. lastDay: '[düýn] LT',
  25969. lastWeek: '[geçen] dddd [sagat] LT',
  25970. sameElse: 'L'
  25971. },
  25972. relativeTime: {
  25973. future: '%s soň',
  25974. past: '%s öň',
  25975. s: 'birnäçe sekunt',
  25976. m: 'bir minut',
  25977. mm: '%d minut',
  25978. h: 'bir sagat',
  25979. hh: '%d sagat',
  25980. d: 'bir gün',
  25981. dd: '%d gün',
  25982. M: 'bir aý',
  25983. MM: '%d aý',
  25984. y: 'bir ýyl',
  25985. yy: '%d ýyl'
  25986. },
  25987. ordinal: function ordinal(number, period) {
  25988. switch (period) {
  25989. case 'd':
  25990. case 'D':
  25991. case 'Do':
  25992. case 'DD':
  25993. return number;
  25994. default:
  25995. if (number === 0) {
  25996. // special case for zero
  25997. return number + "'unjy";
  25998. }
  25999. var a = number % 10,
  26000. b = number % 100 - a,
  26001. c = number >= 100 ? 100 : null;
  26002. return number + (suffixes[a] || suffixes[b] || suffixes[c]);
  26003. }
  26004. },
  26005. week: {
  26006. dow: 1,
  26007. // Monday is the first day of the week.
  26008. doy: 7 // The week that contains Jan 7th is the first week of the year.
  26009. }
  26010. });
  26011. return tk;
  26012. });
  26013. /***/ }),
  26014. /* 159 */
  26015. /*!******************************************************************!*\
  26016. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/tl-ph.js ***!
  26017. \******************************************************************/
  26018. /*! no static exports found */
  26019. /***/ (function(module, exports, __webpack_require__) {
  26020. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  26021. //! moment.js locale configuration
  26022. //! locale : Tagalog (Philippines) [tl-ph]
  26023. //! author : Dan Hagman : https://github.com/hagmandan
  26024. ;
  26025. (function (global, factory) {
  26026. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  26027. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  26028. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  26029. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  26030. })(this, function (moment) {
  26031. 'use strict';
  26032. //! moment.js locale configuration
  26033. var tlPh = moment.defineLocale('tl-ph', {
  26034. months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),
  26035. monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  26036. weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),
  26037. weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  26038. weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  26039. longDateFormat: {
  26040. LT: 'HH:mm',
  26041. LTS: 'HH:mm:ss',
  26042. L: 'MM/D/YYYY',
  26043. LL: 'MMMM D, YYYY',
  26044. LLL: 'MMMM D, YYYY HH:mm',
  26045. LLLL: 'dddd, MMMM DD, YYYY HH:mm'
  26046. },
  26047. calendar: {
  26048. sameDay: 'LT [ngayong araw]',
  26049. nextDay: '[Bukas ng] LT',
  26050. nextWeek: 'LT [sa susunod na] dddd',
  26051. lastDay: 'LT [kahapon]',
  26052. lastWeek: 'LT [noong nakaraang] dddd',
  26053. sameElse: 'L'
  26054. },
  26055. relativeTime: {
  26056. future: 'sa loob ng %s',
  26057. past: '%s ang nakalipas',
  26058. s: 'ilang segundo',
  26059. ss: '%d segundo',
  26060. m: 'isang minuto',
  26061. mm: '%d minuto',
  26062. h: 'isang oras',
  26063. hh: '%d oras',
  26064. d: 'isang araw',
  26065. dd: '%d araw',
  26066. M: 'isang buwan',
  26067. MM: '%d buwan',
  26068. y: 'isang taon',
  26069. yy: '%d taon'
  26070. },
  26071. dayOfMonthOrdinalParse: /\d{1,2}/,
  26072. ordinal: function ordinal(number) {
  26073. return number;
  26074. },
  26075. week: {
  26076. dow: 1,
  26077. // Monday is the first day of the week.
  26078. doy: 4 // The week that contains Jan 4th is the first week of the year.
  26079. }
  26080. });
  26081. return tlPh;
  26082. });
  26083. /***/ }),
  26084. /* 160 */
  26085. /*!****************************************************************!*\
  26086. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/tlh.js ***!
  26087. \****************************************************************/
  26088. /*! no static exports found */
  26089. /***/ (function(module, exports, __webpack_require__) {
  26090. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  26091. //! moment.js locale configuration
  26092. //! locale : Klingon [tlh]
  26093. //! author : Dominika Kruk : https://github.com/amaranthrose
  26094. ;
  26095. (function (global, factory) {
  26096. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  26097. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  26098. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  26099. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  26100. })(this, function (moment) {
  26101. 'use strict';
  26102. //! moment.js locale configuration
  26103. var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');
  26104. function translateFuture(output) {
  26105. var time = output;
  26106. time = output.indexOf('jaj') !== -1 ? time.slice(0, -3) + 'leS' : output.indexOf('jar') !== -1 ? time.slice(0, -3) + 'waQ' : output.indexOf('DIS') !== -1 ? time.slice(0, -3) + 'nem' : time + ' pIq';
  26107. return time;
  26108. }
  26109. function translatePast(output) {
  26110. var time = output;
  26111. time = output.indexOf('jaj') !== -1 ? time.slice(0, -3) + 'Hu’' : output.indexOf('jar') !== -1 ? time.slice(0, -3) + 'wen' : output.indexOf('DIS') !== -1 ? time.slice(0, -3) + 'ben' : time + ' ret';
  26112. return time;
  26113. }
  26114. function translate(number, withoutSuffix, string, isFuture) {
  26115. var numberNoun = numberAsNoun(number);
  26116. switch (string) {
  26117. case 'ss':
  26118. return numberNoun + ' lup';
  26119. case 'mm':
  26120. return numberNoun + ' tup';
  26121. case 'hh':
  26122. return numberNoun + ' rep';
  26123. case 'dd':
  26124. return numberNoun + ' jaj';
  26125. case 'MM':
  26126. return numberNoun + ' jar';
  26127. case 'yy':
  26128. return numberNoun + ' DIS';
  26129. }
  26130. }
  26131. function numberAsNoun(number) {
  26132. var hundred = Math.floor(number % 1000 / 100),
  26133. ten = Math.floor(number % 100 / 10),
  26134. one = number % 10,
  26135. word = '';
  26136. if (hundred > 0) {
  26137. word += numbersNouns[hundred] + 'vatlh';
  26138. }
  26139. if (ten > 0) {
  26140. word += (word !== '' ? ' ' : '') + numbersNouns[ten] + 'maH';
  26141. }
  26142. if (one > 0) {
  26143. word += (word !== '' ? ' ' : '') + numbersNouns[one];
  26144. }
  26145. return word === '' ? 'pagh' : word;
  26146. }
  26147. var tlh = moment.defineLocale('tlh', {
  26148. months: 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split('_'),
  26149. monthsShort: 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split('_'),
  26150. monthsParseExact: true,
  26151. weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  26152. weekdaysShort: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  26153. weekdaysMin: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  26154. longDateFormat: {
  26155. LT: 'HH:mm',
  26156. LTS: 'HH:mm:ss',
  26157. L: 'DD.MM.YYYY',
  26158. LL: 'D MMMM YYYY',
  26159. LLL: 'D MMMM YYYY HH:mm',
  26160. LLLL: 'dddd, D MMMM YYYY HH:mm'
  26161. },
  26162. calendar: {
  26163. sameDay: '[DaHjaj] LT',
  26164. nextDay: '[wa’leS] LT',
  26165. nextWeek: 'LLL',
  26166. lastDay: '[wa’Hu’] LT',
  26167. lastWeek: 'LLL',
  26168. sameElse: 'L'
  26169. },
  26170. relativeTime: {
  26171. future: translateFuture,
  26172. past: translatePast,
  26173. s: 'puS lup',
  26174. ss: translate,
  26175. m: 'wa’ tup',
  26176. mm: translate,
  26177. h: 'wa’ rep',
  26178. hh: translate,
  26179. d: 'wa’ jaj',
  26180. dd: translate,
  26181. M: 'wa’ jar',
  26182. MM: translate,
  26183. y: 'wa’ DIS',
  26184. yy: translate
  26185. },
  26186. dayOfMonthOrdinalParse: /\d{1,2}\./,
  26187. ordinal: '%d.',
  26188. week: {
  26189. dow: 1,
  26190. // Monday is the first day of the week.
  26191. doy: 4 // The week that contains Jan 4th is the first week of the year.
  26192. }
  26193. });
  26194. return tlh;
  26195. });
  26196. /***/ }),
  26197. /* 161 */
  26198. /*!***************************************************************!*\
  26199. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/tr.js ***!
  26200. \***************************************************************/
  26201. /*! no static exports found */
  26202. /***/ (function(module, exports, __webpack_require__) {
  26203. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  26204. //! moment.js locale configuration
  26205. //! locale : Turkish [tr]
  26206. //! authors : Erhan Gundogan : https://github.com/erhangundogan,
  26207. //! Burak Yiğit Kaya: https://github.com/BYK
  26208. ;
  26209. (function (global, factory) {
  26210. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  26211. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  26212. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  26213. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  26214. })(this, function (moment) {
  26215. 'use strict';
  26216. //! moment.js locale configuration
  26217. var suffixes = {
  26218. 1: "'inci",
  26219. 5: "'inci",
  26220. 8: "'inci",
  26221. 70: "'inci",
  26222. 80: "'inci",
  26223. 2: "'nci",
  26224. 7: "'nci",
  26225. 20: "'nci",
  26226. 50: "'nci",
  26227. 3: "'üncü",
  26228. 4: "'üncü",
  26229. 100: "'üncü",
  26230. 6: "'ncı",
  26231. 9: "'uncu",
  26232. 10: "'uncu",
  26233. 30: "'uncu",
  26234. 60: "'ıncı",
  26235. 90: "'ıncı"
  26236. };
  26237. var tr = moment.defineLocale('tr', {
  26238. months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'),
  26239. monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
  26240. weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),
  26241. weekdaysShort: 'Paz_Pzt_Sal_Çar_Per_Cum_Cmt'.split('_'),
  26242. weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
  26243. meridiem: function meridiem(hours, minutes, isLower) {
  26244. if (hours < 12) {
  26245. return isLower ? 'öö' : 'ÖÖ';
  26246. } else {
  26247. return isLower ? 'ös' : 'ÖS';
  26248. }
  26249. },
  26250. meridiemParse: /öö|ÖÖ|ös|ÖS/,
  26251. isPM: function isPM(input) {
  26252. return input === 'ös' || input === 'ÖS';
  26253. },
  26254. longDateFormat: {
  26255. LT: 'HH:mm',
  26256. LTS: 'HH:mm:ss',
  26257. L: 'DD.MM.YYYY',
  26258. LL: 'D MMMM YYYY',
  26259. LLL: 'D MMMM YYYY HH:mm',
  26260. LLLL: 'dddd, D MMMM YYYY HH:mm'
  26261. },
  26262. calendar: {
  26263. sameDay: '[bugün saat] LT',
  26264. nextDay: '[yarın saat] LT',
  26265. nextWeek: '[gelecek] dddd [saat] LT',
  26266. lastDay: '[dün] LT',
  26267. lastWeek: '[geçen] dddd [saat] LT',
  26268. sameElse: 'L'
  26269. },
  26270. relativeTime: {
  26271. future: '%s sonra',
  26272. past: '%s önce',
  26273. s: 'birkaç saniye',
  26274. ss: '%d saniye',
  26275. m: 'bir dakika',
  26276. mm: '%d dakika',
  26277. h: 'bir saat',
  26278. hh: '%d saat',
  26279. d: 'bir gün',
  26280. dd: '%d gün',
  26281. w: 'bir hafta',
  26282. ww: '%d hafta',
  26283. M: 'bir ay',
  26284. MM: '%d ay',
  26285. y: 'bir yıl',
  26286. yy: '%d yıl'
  26287. },
  26288. ordinal: function ordinal(number, period) {
  26289. switch (period) {
  26290. case 'd':
  26291. case 'D':
  26292. case 'Do':
  26293. case 'DD':
  26294. return number;
  26295. default:
  26296. if (number === 0) {
  26297. // special case for zero
  26298. return number + "'ıncı";
  26299. }
  26300. var a = number % 10,
  26301. b = number % 100 - a,
  26302. c = number >= 100 ? 100 : null;
  26303. return number + (suffixes[a] || suffixes[b] || suffixes[c]);
  26304. }
  26305. },
  26306. week: {
  26307. dow: 1,
  26308. // Monday is the first day of the week.
  26309. doy: 7 // The week that contains Jan 7th is the first week of the year.
  26310. }
  26311. });
  26312. return tr;
  26313. });
  26314. /***/ }),
  26315. /* 162 */
  26316. /*!****************************************************************!*\
  26317. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/tzl.js ***!
  26318. \****************************************************************/
  26319. /*! no static exports found */
  26320. /***/ (function(module, exports, __webpack_require__) {
  26321. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  26322. //! moment.js locale configuration
  26323. //! locale : Talossan [tzl]
  26324. //! author : Robin van der Vliet : https://github.com/robin0van0der0v
  26325. //! author : Iustì Canun
  26326. ;
  26327. (function (global, factory) {
  26328. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  26329. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  26330. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  26331. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  26332. })(this, function (moment) {
  26333. 'use strict';
  26334. //! moment.js locale configuration
  26335. // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
  26336. // This is currently too difficult (maybe even impossible) to add.
  26337. var tzl = moment.defineLocale('tzl', {
  26338. months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'),
  26339. monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
  26340. weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
  26341. weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
  26342. weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
  26343. longDateFormat: {
  26344. LT: 'HH.mm',
  26345. LTS: 'HH.mm.ss',
  26346. L: 'DD.MM.YYYY',
  26347. LL: 'D. MMMM [dallas] YYYY',
  26348. LLL: 'D. MMMM [dallas] YYYY HH.mm',
  26349. LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm'
  26350. },
  26351. meridiemParse: /d\'o|d\'a/i,
  26352. isPM: function isPM(input) {
  26353. return "d'o" === input.toLowerCase();
  26354. },
  26355. meridiem: function meridiem(hours, minutes, isLower) {
  26356. if (hours > 11) {
  26357. return isLower ? "d'o" : "D'O";
  26358. } else {
  26359. return isLower ? "d'a" : "D'A";
  26360. }
  26361. },
  26362. calendar: {
  26363. sameDay: '[oxhi à] LT',
  26364. nextDay: '[demà à] LT',
  26365. nextWeek: 'dddd [à] LT',
  26366. lastDay: '[ieiri à] LT',
  26367. lastWeek: '[sür el] dddd [lasteu à] LT',
  26368. sameElse: 'L'
  26369. },
  26370. relativeTime: {
  26371. future: 'osprei %s',
  26372. past: 'ja%s',
  26373. s: processRelativeTime,
  26374. ss: processRelativeTime,
  26375. m: processRelativeTime,
  26376. mm: processRelativeTime,
  26377. h: processRelativeTime,
  26378. hh: processRelativeTime,
  26379. d: processRelativeTime,
  26380. dd: processRelativeTime,
  26381. M: processRelativeTime,
  26382. MM: processRelativeTime,
  26383. y: processRelativeTime,
  26384. yy: processRelativeTime
  26385. },
  26386. dayOfMonthOrdinalParse: /\d{1,2}\./,
  26387. ordinal: '%d.',
  26388. week: {
  26389. dow: 1,
  26390. // Monday is the first day of the week.
  26391. doy: 4 // The week that contains Jan 4th is the first week of the year.
  26392. }
  26393. });
  26394. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  26395. var format = {
  26396. s: ['viensas secunds', "'iensas secunds"],
  26397. ss: [number + ' secunds', '' + number + ' secunds'],
  26398. m: ["'n míut", "'iens míut"],
  26399. mm: [number + ' míuts', '' + number + ' míuts'],
  26400. h: ["'n þora", "'iensa þora"],
  26401. hh: [number + ' þoras', '' + number + ' þoras'],
  26402. d: ["'n ziua", "'iensa ziua"],
  26403. dd: [number + ' ziuas', '' + number + ' ziuas'],
  26404. M: ["'n mes", "'iens mes"],
  26405. MM: [number + ' mesen', '' + number + ' mesen'],
  26406. y: ["'n ar", "'iens ar"],
  26407. yy: [number + ' ars', '' + number + ' ars']
  26408. };
  26409. return isFuture ? format[key][0] : withoutSuffix ? format[key][0] : format[key][1];
  26410. }
  26411. return tzl;
  26412. });
  26413. /***/ }),
  26414. /* 163 */
  26415. /*!****************************************************************!*\
  26416. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/tzm.js ***!
  26417. \****************************************************************/
  26418. /*! no static exports found */
  26419. /***/ (function(module, exports, __webpack_require__) {
  26420. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  26421. //! moment.js locale configuration
  26422. //! locale : Central Atlas Tamazight [tzm]
  26423. //! author : Abdel Said : https://github.com/abdelsaid
  26424. ;
  26425. (function (global, factory) {
  26426. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  26427. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  26428. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  26429. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  26430. })(this, function (moment) {
  26431. 'use strict';
  26432. //! moment.js locale configuration
  26433. var tzm = moment.defineLocale('tzm', {
  26434. months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
  26435. monthsShort: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
  26436. weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  26437. weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  26438. weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  26439. longDateFormat: {
  26440. LT: 'HH:mm',
  26441. LTS: 'HH:mm:ss',
  26442. L: 'DD/MM/YYYY',
  26443. LL: 'D MMMM YYYY',
  26444. LLL: 'D MMMM YYYY HH:mm',
  26445. LLLL: 'dddd D MMMM YYYY HH:mm'
  26446. },
  26447. calendar: {
  26448. sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
  26449. nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
  26450. nextWeek: 'dddd [ⴴ] LT',
  26451. lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
  26452. lastWeek: 'dddd [ⴴ] LT',
  26453. sameElse: 'L'
  26454. },
  26455. relativeTime: {
  26456. future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
  26457. past: 'ⵢⴰⵏ %s',
  26458. s: 'ⵉⵎⵉⴽ',
  26459. ss: '%d ⵉⵎⵉⴽ',
  26460. m: 'ⵎⵉⵏⵓⴺ',
  26461. mm: '%d ⵎⵉⵏⵓⴺ',
  26462. h: 'ⵙⴰⵄⴰ',
  26463. hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
  26464. d: 'ⴰⵙⵙ',
  26465. dd: '%d oⵙⵙⴰⵏ',
  26466. M: 'ⴰⵢoⵓⵔ',
  26467. MM: '%d ⵉⵢⵢⵉⵔⵏ',
  26468. y: 'ⴰⵙⴳⴰⵙ',
  26469. yy: '%d ⵉⵙⴳⴰⵙⵏ'
  26470. },
  26471. week: {
  26472. dow: 6,
  26473. // Saturday is the first day of the week.
  26474. doy: 12 // The week that contains Jan 12th is the first week of the year.
  26475. }
  26476. });
  26477. return tzm;
  26478. });
  26479. /***/ }),
  26480. /* 164 */
  26481. /*!*********************************************************************!*\
  26482. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/tzm-latn.js ***!
  26483. \*********************************************************************/
  26484. /*! no static exports found */
  26485. /***/ (function(module, exports, __webpack_require__) {
  26486. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  26487. //! moment.js locale configuration
  26488. //! locale : Central Atlas Tamazight Latin [tzm-latn]
  26489. //! author : Abdel Said : https://github.com/abdelsaid
  26490. ;
  26491. (function (global, factory) {
  26492. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  26493. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  26494. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  26495. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  26496. })(this, function (moment) {
  26497. 'use strict';
  26498. //! moment.js locale configuration
  26499. var tzmLatn = moment.defineLocale('tzm-latn', {
  26500. months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
  26501. monthsShort: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
  26502. weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  26503. weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  26504. weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  26505. longDateFormat: {
  26506. LT: 'HH:mm',
  26507. LTS: 'HH:mm:ss',
  26508. L: 'DD/MM/YYYY',
  26509. LL: 'D MMMM YYYY',
  26510. LLL: 'D MMMM YYYY HH:mm',
  26511. LLLL: 'dddd D MMMM YYYY HH:mm'
  26512. },
  26513. calendar: {
  26514. sameDay: '[asdkh g] LT',
  26515. nextDay: '[aska g] LT',
  26516. nextWeek: 'dddd [g] LT',
  26517. lastDay: '[assant g] LT',
  26518. lastWeek: 'dddd [g] LT',
  26519. sameElse: 'L'
  26520. },
  26521. relativeTime: {
  26522. future: 'dadkh s yan %s',
  26523. past: 'yan %s',
  26524. s: 'imik',
  26525. ss: '%d imik',
  26526. m: 'minuḍ',
  26527. mm: '%d minuḍ',
  26528. h: 'saɛa',
  26529. hh: '%d tassaɛin',
  26530. d: 'ass',
  26531. dd: '%d ossan',
  26532. M: 'ayowr',
  26533. MM: '%d iyyirn',
  26534. y: 'asgas',
  26535. yy: '%d isgasn'
  26536. },
  26537. week: {
  26538. dow: 6,
  26539. // Saturday is the first day of the week.
  26540. doy: 12 // The week that contains Jan 12th is the first week of the year.
  26541. }
  26542. });
  26543. return tzmLatn;
  26544. });
  26545. /***/ }),
  26546. /* 165 */
  26547. /*!******************************************************************!*\
  26548. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ug-cn.js ***!
  26549. \******************************************************************/
  26550. /*! no static exports found */
  26551. /***/ (function(module, exports, __webpack_require__) {
  26552. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  26553. //! moment.js locale configuration
  26554. //! locale : Uyghur (China) [ug-cn]
  26555. //! author: boyaq : https://github.com/boyaq
  26556. ;
  26557. (function (global, factory) {
  26558. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  26559. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  26560. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  26561. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  26562. })(this, function (moment) {
  26563. 'use strict';
  26564. //! moment.js locale configuration
  26565. var ugCn = moment.defineLocale('ug-cn', {
  26566. months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split('_'),
  26567. monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split('_'),
  26568. weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split('_'),
  26569. weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
  26570. weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
  26571. longDateFormat: {
  26572. LT: 'HH:mm',
  26573. LTS: 'HH:mm:ss',
  26574. L: 'YYYY-MM-DD',
  26575. LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',
  26576. LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
  26577. LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm'
  26578. },
  26579. meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,
  26580. meridiemHour: function meridiemHour(hour, meridiem) {
  26581. if (hour === 12) {
  26582. hour = 0;
  26583. }
  26584. if (meridiem === 'يېرىم كېچە' || meridiem === 'سەھەر' || meridiem === 'چۈشتىن بۇرۇن') {
  26585. return hour;
  26586. } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') {
  26587. return hour + 12;
  26588. } else {
  26589. return hour >= 11 ? hour : hour + 12;
  26590. }
  26591. },
  26592. meridiem: function meridiem(hour, minute, isLower) {
  26593. var hm = hour * 100 + minute;
  26594. if (hm < 600) {
  26595. return 'يېرىم كېچە';
  26596. } else if (hm < 900) {
  26597. return 'سەھەر';
  26598. } else if (hm < 1130) {
  26599. return 'چۈشتىن بۇرۇن';
  26600. } else if (hm < 1230) {
  26601. return 'چۈش';
  26602. } else if (hm < 1800) {
  26603. return 'چۈشتىن كېيىن';
  26604. } else {
  26605. return 'كەچ';
  26606. }
  26607. },
  26608. calendar: {
  26609. sameDay: '[بۈگۈن سائەت] LT',
  26610. nextDay: '[ئەتە سائەت] LT',
  26611. nextWeek: '[كېلەركى] dddd [سائەت] LT',
  26612. lastDay: '[تۆنۈگۈن] LT',
  26613. lastWeek: '[ئالدىنقى] dddd [سائەت] LT',
  26614. sameElse: 'L'
  26615. },
  26616. relativeTime: {
  26617. future: '%s كېيىن',
  26618. past: '%s بۇرۇن',
  26619. s: 'نەچچە سېكونت',
  26620. ss: '%d سېكونت',
  26621. m: 'بىر مىنۇت',
  26622. mm: '%d مىنۇت',
  26623. h: 'بىر سائەت',
  26624. hh: '%d سائەت',
  26625. d: 'بىر كۈن',
  26626. dd: '%d كۈن',
  26627. M: 'بىر ئاي',
  26628. MM: '%d ئاي',
  26629. y: 'بىر يىل',
  26630. yy: '%d يىل'
  26631. },
  26632. dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,
  26633. ordinal: function ordinal(number, period) {
  26634. switch (period) {
  26635. case 'd':
  26636. case 'D':
  26637. case 'DDD':
  26638. return number + '-كۈنى';
  26639. case 'w':
  26640. case 'W':
  26641. return number + '-ھەپتە';
  26642. default:
  26643. return number;
  26644. }
  26645. },
  26646. preparse: function preparse(string) {
  26647. return string.replace(/،/g, ',');
  26648. },
  26649. postformat: function postformat(string) {
  26650. return string.replace(/,/g, '،');
  26651. },
  26652. week: {
  26653. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  26654. dow: 1,
  26655. // Monday is the first day of the week.
  26656. doy: 7 // The week that contains Jan 1st is the first week of the year.
  26657. }
  26658. });
  26659. return ugCn;
  26660. });
  26661. /***/ }),
  26662. /* 166 */
  26663. /*!***************************************************************!*\
  26664. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/uk.js ***!
  26665. \***************************************************************/
  26666. /*! no static exports found */
  26667. /***/ (function(module, exports, __webpack_require__) {
  26668. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  26669. //! moment.js locale configuration
  26670. //! locale : Ukrainian [uk]
  26671. //! author : zemlanin : https://github.com/zemlanin
  26672. //! Author : Menelion Elensúle : https://github.com/Oire
  26673. ;
  26674. (function (global, factory) {
  26675. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  26676. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  26677. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  26678. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  26679. })(this, function (moment) {
  26680. 'use strict';
  26681. //! moment.js locale configuration
  26682. function plural(word, num) {
  26683. var forms = word.split('_');
  26684. return num % 10 === 1 && num % 100 !== 11 ? forms[0] : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2];
  26685. }
  26686. function relativeTimeWithPlural(number, withoutSuffix, key) {
  26687. var format = {
  26688. ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',
  26689. mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
  26690. hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
  26691. dd: 'день_дні_днів',
  26692. MM: 'місяць_місяці_місяців',
  26693. yy: 'рік_роки_років'
  26694. };
  26695. if (key === 'm') {
  26696. return withoutSuffix ? 'хвилина' : 'хвилину';
  26697. } else if (key === 'h') {
  26698. return withoutSuffix ? 'година' : 'годину';
  26699. } else {
  26700. return number + ' ' + plural(format[key], +number);
  26701. }
  26702. }
  26703. function weekdaysCaseReplace(m, format) {
  26704. var weekdays = {
  26705. nominative: 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),
  26706. accusative: 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),
  26707. genitive: 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')
  26708. },
  26709. nounCase;
  26710. if (m === true) {
  26711. return weekdays['nominative'].slice(1, 7).concat(weekdays['nominative'].slice(0, 1));
  26712. }
  26713. if (!m) {
  26714. return weekdays['nominative'];
  26715. }
  26716. nounCase = /(\[[ВвУу]\]) ?dddd/.test(format) ? 'accusative' : /\[?(?:минулої|наступної)? ?\] ?dddd/.test(format) ? 'genitive' : 'nominative';
  26717. return weekdays[nounCase][m.day()];
  26718. }
  26719. function processHoursFunction(str) {
  26720. return function () {
  26721. return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
  26722. };
  26723. }
  26724. var uk = moment.defineLocale('uk', {
  26725. months: {
  26726. format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_'),
  26727. standalone: 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_')
  26728. },
  26729. monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),
  26730. weekdays: weekdaysCaseReplace,
  26731. weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  26732. weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  26733. longDateFormat: {
  26734. LT: 'HH:mm',
  26735. LTS: 'HH:mm:ss',
  26736. L: 'DD.MM.YYYY',
  26737. LL: 'D MMMM YYYY р.',
  26738. LLL: 'D MMMM YYYY р., HH:mm',
  26739. LLLL: 'dddd, D MMMM YYYY р., HH:mm'
  26740. },
  26741. calendar: {
  26742. sameDay: processHoursFunction('[Сьогодні '),
  26743. nextDay: processHoursFunction('[Завтра '),
  26744. lastDay: processHoursFunction('[Вчора '),
  26745. nextWeek: processHoursFunction('[У] dddd ['),
  26746. lastWeek: function lastWeek() {
  26747. switch (this.day()) {
  26748. case 0:
  26749. case 3:
  26750. case 5:
  26751. case 6:
  26752. return processHoursFunction('[Минулої] dddd [').call(this);
  26753. case 1:
  26754. case 2:
  26755. case 4:
  26756. return processHoursFunction('[Минулого] dddd [').call(this);
  26757. }
  26758. },
  26759. sameElse: 'L'
  26760. },
  26761. relativeTime: {
  26762. future: 'за %s',
  26763. past: '%s тому',
  26764. s: 'декілька секунд',
  26765. ss: relativeTimeWithPlural,
  26766. m: relativeTimeWithPlural,
  26767. mm: relativeTimeWithPlural,
  26768. h: 'годину',
  26769. hh: relativeTimeWithPlural,
  26770. d: 'день',
  26771. dd: relativeTimeWithPlural,
  26772. M: 'місяць',
  26773. MM: relativeTimeWithPlural,
  26774. y: 'рік',
  26775. yy: relativeTimeWithPlural
  26776. },
  26777. // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
  26778. meridiemParse: /ночі|ранку|дня|вечора/,
  26779. isPM: function isPM(input) {
  26780. return /^(дня|вечора)$/.test(input);
  26781. },
  26782. meridiem: function meridiem(hour, minute, isLower) {
  26783. if (hour < 4) {
  26784. return 'ночі';
  26785. } else if (hour < 12) {
  26786. return 'ранку';
  26787. } else if (hour < 17) {
  26788. return 'дня';
  26789. } else {
  26790. return 'вечора';
  26791. }
  26792. },
  26793. dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
  26794. ordinal: function ordinal(number, period) {
  26795. switch (period) {
  26796. case 'M':
  26797. case 'd':
  26798. case 'DDD':
  26799. case 'w':
  26800. case 'W':
  26801. return number + '-й';
  26802. case 'D':
  26803. return number + '-го';
  26804. default:
  26805. return number;
  26806. }
  26807. },
  26808. week: {
  26809. dow: 1,
  26810. // Monday is the first day of the week.
  26811. doy: 7 // The week that contains Jan 7th is the first week of the year.
  26812. }
  26813. });
  26814. return uk;
  26815. });
  26816. /***/ }),
  26817. /* 167 */
  26818. /*!***************************************************************!*\
  26819. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ur.js ***!
  26820. \***************************************************************/
  26821. /*! no static exports found */
  26822. /***/ (function(module, exports, __webpack_require__) {
  26823. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  26824. //! moment.js locale configuration
  26825. //! locale : Urdu [ur]
  26826. //! author : Sawood Alam : https://github.com/ibnesayeed
  26827. //! author : Zack : https://github.com/ZackVision
  26828. ;
  26829. (function (global, factory) {
  26830. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  26831. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  26832. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  26833. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  26834. })(this, function (moment) {
  26835. 'use strict';
  26836. //! moment.js locale configuration
  26837. var months = ['جنوری', 'فروری', 'مارچ', 'اپریل', 'مئی', 'جون', 'جولائی', 'اگست', 'ستمبر', 'اکتوبر', 'نومبر', 'دسمبر'],
  26838. days = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'];
  26839. var ur = moment.defineLocale('ur', {
  26840. months: months,
  26841. monthsShort: months,
  26842. weekdays: days,
  26843. weekdaysShort: days,
  26844. weekdaysMin: days,
  26845. longDateFormat: {
  26846. LT: 'HH:mm',
  26847. LTS: 'HH:mm:ss',
  26848. L: 'DD/MM/YYYY',
  26849. LL: 'D MMMM YYYY',
  26850. LLL: 'D MMMM YYYY HH:mm',
  26851. LLLL: 'dddd، D MMMM YYYY HH:mm'
  26852. },
  26853. meridiemParse: /صبح|شام/,
  26854. isPM: function isPM(input) {
  26855. return 'شام' === input;
  26856. },
  26857. meridiem: function meridiem(hour, minute, isLower) {
  26858. if (hour < 12) {
  26859. return 'صبح';
  26860. }
  26861. return 'شام';
  26862. },
  26863. calendar: {
  26864. sameDay: '[آج بوقت] LT',
  26865. nextDay: '[کل بوقت] LT',
  26866. nextWeek: 'dddd [بوقت] LT',
  26867. lastDay: '[گذشتہ روز بوقت] LT',
  26868. lastWeek: '[گذشتہ] dddd [بوقت] LT',
  26869. sameElse: 'L'
  26870. },
  26871. relativeTime: {
  26872. future: '%s بعد',
  26873. past: '%s قبل',
  26874. s: 'چند سیکنڈ',
  26875. ss: '%d سیکنڈ',
  26876. m: 'ایک منٹ',
  26877. mm: '%d منٹ',
  26878. h: 'ایک گھنٹہ',
  26879. hh: '%d گھنٹے',
  26880. d: 'ایک دن',
  26881. dd: '%d دن',
  26882. M: 'ایک ماہ',
  26883. MM: '%d ماہ',
  26884. y: 'ایک سال',
  26885. yy: '%d سال'
  26886. },
  26887. preparse: function preparse(string) {
  26888. return string.replace(/،/g, ',');
  26889. },
  26890. postformat: function postformat(string) {
  26891. return string.replace(/,/g, '،');
  26892. },
  26893. week: {
  26894. dow: 1,
  26895. // Monday is the first day of the week.
  26896. doy: 4 // The week that contains Jan 4th is the first week of the year.
  26897. }
  26898. });
  26899. return ur;
  26900. });
  26901. /***/ }),
  26902. /* 168 */
  26903. /*!***************************************************************!*\
  26904. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/uz.js ***!
  26905. \***************************************************************/
  26906. /*! no static exports found */
  26907. /***/ (function(module, exports, __webpack_require__) {
  26908. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  26909. //! moment.js locale configuration
  26910. //! locale : Uzbek [uz]
  26911. //! author : Sardor Muminov : https://github.com/muminoff
  26912. ;
  26913. (function (global, factory) {
  26914. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  26915. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  26916. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  26917. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  26918. })(this, function (moment) {
  26919. 'use strict';
  26920. //! moment.js locale configuration
  26921. var uz = moment.defineLocale('uz', {
  26922. months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),
  26923. monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  26924. weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
  26925. weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
  26926. weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
  26927. longDateFormat: {
  26928. LT: 'HH:mm',
  26929. LTS: 'HH:mm:ss',
  26930. L: 'DD/MM/YYYY',
  26931. LL: 'D MMMM YYYY',
  26932. LLL: 'D MMMM YYYY HH:mm',
  26933. LLLL: 'D MMMM YYYY, dddd HH:mm'
  26934. },
  26935. calendar: {
  26936. sameDay: '[Бугун соат] LT [да]',
  26937. nextDay: '[Эртага] LT [да]',
  26938. nextWeek: 'dddd [куни соат] LT [да]',
  26939. lastDay: '[Кеча соат] LT [да]',
  26940. lastWeek: '[Утган] dddd [куни соат] LT [да]',
  26941. sameElse: 'L'
  26942. },
  26943. relativeTime: {
  26944. future: 'Якин %s ичида',
  26945. past: 'Бир неча %s олдин',
  26946. s: 'фурсат',
  26947. ss: '%d фурсат',
  26948. m: 'бир дакика',
  26949. mm: '%d дакика',
  26950. h: 'бир соат',
  26951. hh: '%d соат',
  26952. d: 'бир кун',
  26953. dd: '%d кун',
  26954. M: 'бир ой',
  26955. MM: '%d ой',
  26956. y: 'бир йил',
  26957. yy: '%d йил'
  26958. },
  26959. week: {
  26960. dow: 1,
  26961. // Monday is the first day of the week.
  26962. doy: 7 // The week that contains Jan 4th is the first week of the year.
  26963. }
  26964. });
  26965. return uz;
  26966. });
  26967. /***/ }),
  26968. /* 169 */
  26969. /*!********************************************************************!*\
  26970. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/uz-latn.js ***!
  26971. \********************************************************************/
  26972. /*! no static exports found */
  26973. /***/ (function(module, exports, __webpack_require__) {
  26974. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  26975. //! moment.js locale configuration
  26976. //! locale : Uzbek Latin [uz-latn]
  26977. //! author : Rasulbek Mirzayev : github.com/Rasulbeeek
  26978. ;
  26979. (function (global, factory) {
  26980. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  26981. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  26982. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  26983. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  26984. })(this, function (moment) {
  26985. 'use strict';
  26986. //! moment.js locale configuration
  26987. var uzLatn = moment.defineLocale('uz-latn', {
  26988. months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split('_'),
  26989. monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
  26990. weekdays: 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split('_'),
  26991. weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
  26992. weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
  26993. longDateFormat: {
  26994. LT: 'HH:mm',
  26995. LTS: 'HH:mm:ss',
  26996. L: 'DD/MM/YYYY',
  26997. LL: 'D MMMM YYYY',
  26998. LLL: 'D MMMM YYYY HH:mm',
  26999. LLLL: 'D MMMM YYYY, dddd HH:mm'
  27000. },
  27001. calendar: {
  27002. sameDay: '[Bugun soat] LT [da]',
  27003. nextDay: '[Ertaga] LT [da]',
  27004. nextWeek: 'dddd [kuni soat] LT [da]',
  27005. lastDay: '[Kecha soat] LT [da]',
  27006. lastWeek: "[O'tgan] dddd [kuni soat] LT [da]",
  27007. sameElse: 'L'
  27008. },
  27009. relativeTime: {
  27010. future: 'Yaqin %s ichida',
  27011. past: 'Bir necha %s oldin',
  27012. s: 'soniya',
  27013. ss: '%d soniya',
  27014. m: 'bir daqiqa',
  27015. mm: '%d daqiqa',
  27016. h: 'bir soat',
  27017. hh: '%d soat',
  27018. d: 'bir kun',
  27019. dd: '%d kun',
  27020. M: 'bir oy',
  27021. MM: '%d oy',
  27022. y: 'bir yil',
  27023. yy: '%d yil'
  27024. },
  27025. week: {
  27026. dow: 1,
  27027. // Monday is the first day of the week.
  27028. doy: 7 // The week that contains Jan 7th is the first week of the year.
  27029. }
  27030. });
  27031. return uzLatn;
  27032. });
  27033. /***/ }),
  27034. /* 170 */
  27035. /*!***************************************************************!*\
  27036. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/vi.js ***!
  27037. \***************************************************************/
  27038. /*! no static exports found */
  27039. /***/ (function(module, exports, __webpack_require__) {
  27040. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  27041. //! moment.js locale configuration
  27042. //! locale : Vietnamese [vi]
  27043. //! author : Bang Nguyen : https://github.com/bangnk
  27044. //! author : Chien Kira : https://github.com/chienkira
  27045. ;
  27046. (function (global, factory) {
  27047. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  27048. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  27049. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  27050. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  27051. })(this, function (moment) {
  27052. 'use strict';
  27053. //! moment.js locale configuration
  27054. var vi = moment.defineLocale('vi', {
  27055. months: 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split('_'),
  27056. monthsShort: 'Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12'.split('_'),
  27057. monthsParseExact: true,
  27058. weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),
  27059. weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  27060. weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  27061. weekdaysParseExact: true,
  27062. meridiemParse: /sa|ch/i,
  27063. isPM: function isPM(input) {
  27064. return /^ch$/i.test(input);
  27065. },
  27066. meridiem: function meridiem(hours, minutes, isLower) {
  27067. if (hours < 12) {
  27068. return isLower ? 'sa' : 'SA';
  27069. } else {
  27070. return isLower ? 'ch' : 'CH';
  27071. }
  27072. },
  27073. longDateFormat: {
  27074. LT: 'HH:mm',
  27075. LTS: 'HH:mm:ss',
  27076. L: 'DD/MM/YYYY',
  27077. LL: 'D MMMM [năm] YYYY',
  27078. LLL: 'D MMMM [năm] YYYY HH:mm',
  27079. LLLL: 'dddd, D MMMM [năm] YYYY HH:mm',
  27080. l: 'DD/M/YYYY',
  27081. ll: 'D MMM YYYY',
  27082. lll: 'D MMM YYYY HH:mm',
  27083. llll: 'ddd, D MMM YYYY HH:mm'
  27084. },
  27085. calendar: {
  27086. sameDay: '[Hôm nay lúc] LT',
  27087. nextDay: '[Ngày mai lúc] LT',
  27088. nextWeek: 'dddd [tuần tới lúc] LT',
  27089. lastDay: '[Hôm qua lúc] LT',
  27090. lastWeek: 'dddd [tuần trước lúc] LT',
  27091. sameElse: 'L'
  27092. },
  27093. relativeTime: {
  27094. future: '%s tới',
  27095. past: '%s trước',
  27096. s: 'vài giây',
  27097. ss: '%d giây',
  27098. m: 'một phút',
  27099. mm: '%d phút',
  27100. h: 'một giờ',
  27101. hh: '%d giờ',
  27102. d: 'một ngày',
  27103. dd: '%d ngày',
  27104. w: 'một tuần',
  27105. ww: '%d tuần',
  27106. M: 'một tháng',
  27107. MM: '%d tháng',
  27108. y: 'một năm',
  27109. yy: '%d năm'
  27110. },
  27111. dayOfMonthOrdinalParse: /\d{1,2}/,
  27112. ordinal: function ordinal(number) {
  27113. return number;
  27114. },
  27115. week: {
  27116. dow: 1,
  27117. // Monday is the first day of the week.
  27118. doy: 4 // The week that contains Jan 4th is the first week of the year.
  27119. }
  27120. });
  27121. return vi;
  27122. });
  27123. /***/ }),
  27124. /* 171 */
  27125. /*!*********************************************************************!*\
  27126. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/x-pseudo.js ***!
  27127. \*********************************************************************/
  27128. /*! no static exports found */
  27129. /***/ (function(module, exports, __webpack_require__) {
  27130. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  27131. //! moment.js locale configuration
  27132. //! locale : Pseudo [x-pseudo]
  27133. //! author : Andrew Hood : https://github.com/andrewhood125
  27134. ;
  27135. (function (global, factory) {
  27136. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  27137. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  27138. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  27139. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  27140. })(this, function (moment) {
  27141. 'use strict';
  27142. //! moment.js locale configuration
  27143. var xPseudo = moment.defineLocale('x-pseudo', {
  27144. months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split('_'),
  27145. monthsShort: 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split('_'),
  27146. monthsParseExact: true,
  27147. weekdays: 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split('_'),
  27148. weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
  27149. weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
  27150. weekdaysParseExact: true,
  27151. longDateFormat: {
  27152. LT: 'HH:mm',
  27153. L: 'DD/MM/YYYY',
  27154. LL: 'D MMMM YYYY',
  27155. LLL: 'D MMMM YYYY HH:mm',
  27156. LLLL: 'dddd, D MMMM YYYY HH:mm'
  27157. },
  27158. calendar: {
  27159. sameDay: '[T~ódá~ý át] LT',
  27160. nextDay: '[T~ómó~rró~w át] LT',
  27161. nextWeek: 'dddd [át] LT',
  27162. lastDay: '[Ý~ést~érdá~ý át] LT',
  27163. lastWeek: '[L~ást] dddd [át] LT',
  27164. sameElse: 'L'
  27165. },
  27166. relativeTime: {
  27167. future: 'í~ñ %s',
  27168. past: '%s á~gó',
  27169. s: 'á ~féw ~sécó~ñds',
  27170. ss: '%d s~écóñ~ds',
  27171. m: 'á ~míñ~úté',
  27172. mm: '%d m~íñú~tés',
  27173. h: 'á~ñ hó~úr',
  27174. hh: '%d h~óúrs',
  27175. d: 'á ~dáý',
  27176. dd: '%d d~áýs',
  27177. M: 'á ~móñ~th',
  27178. MM: '%d m~óñt~hs',
  27179. y: 'á ~ýéár',
  27180. yy: '%d ý~éárs'
  27181. },
  27182. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  27183. ordinal: function ordinal(number) {
  27184. var b = number % 10,
  27185. output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  27186. return number + output;
  27187. },
  27188. week: {
  27189. dow: 1,
  27190. // Monday is the first day of the week.
  27191. doy: 4 // The week that contains Jan 4th is the first week of the year.
  27192. }
  27193. });
  27194. return xPseudo;
  27195. });
  27196. /***/ }),
  27197. /* 172 */
  27198. /*!***************************************************************!*\
  27199. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/yo.js ***!
  27200. \***************************************************************/
  27201. /*! no static exports found */
  27202. /***/ (function(module, exports, __webpack_require__) {
  27203. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  27204. //! moment.js locale configuration
  27205. //! locale : Yoruba Nigeria [yo]
  27206. //! author : Atolagbe Abisoye : https://github.com/andela-batolagbe
  27207. ;
  27208. (function (global, factory) {
  27209. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  27210. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  27211. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  27212. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  27213. })(this, function (moment) {
  27214. 'use strict';
  27215. //! moment.js locale configuration
  27216. var yo = moment.defineLocale('yo', {
  27217. months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split('_'),
  27218. monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),
  27219. weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
  27220. weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
  27221. weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
  27222. longDateFormat: {
  27223. LT: 'h:mm A',
  27224. LTS: 'h:mm:ss A',
  27225. L: 'DD/MM/YYYY',
  27226. LL: 'D MMMM YYYY',
  27227. LLL: 'D MMMM YYYY h:mm A',
  27228. LLLL: 'dddd, D MMMM YYYY h:mm A'
  27229. },
  27230. calendar: {
  27231. sameDay: '[Ònì ni] LT',
  27232. nextDay: '[Ọ̀la ni] LT',
  27233. nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT",
  27234. lastDay: '[Àna ni] LT',
  27235. lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
  27236. sameElse: 'L'
  27237. },
  27238. relativeTime: {
  27239. future: 'ní %s',
  27240. past: '%s kọjá',
  27241. s: 'ìsẹjú aayá die',
  27242. ss: 'aayá %d',
  27243. m: 'ìsẹjú kan',
  27244. mm: 'ìsẹjú %d',
  27245. h: 'wákati kan',
  27246. hh: 'wákati %d',
  27247. d: 'ọjọ́ kan',
  27248. dd: 'ọjọ́ %d',
  27249. M: 'osù kan',
  27250. MM: 'osù %d',
  27251. y: 'ọdún kan',
  27252. yy: 'ọdún %d'
  27253. },
  27254. dayOfMonthOrdinalParse: /ọjọ́\s\d{1,2}/,
  27255. ordinal: 'ọjọ́ %d',
  27256. week: {
  27257. dow: 1,
  27258. // Monday is the first day of the week.
  27259. doy: 4 // The week that contains Jan 4th is the first week of the year.
  27260. }
  27261. });
  27262. return yo;
  27263. });
  27264. /***/ }),
  27265. /* 173 */
  27266. /*!******************************************************************!*\
  27267. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/zh-cn.js ***!
  27268. \******************************************************************/
  27269. /*! no static exports found */
  27270. /***/ (function(module, exports, __webpack_require__) {
  27271. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  27272. //! moment.js locale configuration
  27273. //! locale : Chinese (China) [zh-cn]
  27274. //! author : suupic : https://github.com/suupic
  27275. //! author : Zeno Zeng : https://github.com/zenozeng
  27276. //! author : uu109 : https://github.com/uu109
  27277. ;
  27278. (function (global, factory) {
  27279. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  27280. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  27281. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  27282. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  27283. })(this, function (moment) {
  27284. 'use strict';
  27285. //! moment.js locale configuration
  27286. var zhCn = moment.defineLocale('zh-cn', {
  27287. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  27288. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  27289. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  27290. weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
  27291. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  27292. longDateFormat: {
  27293. LT: 'HH:mm',
  27294. LTS: 'HH:mm:ss',
  27295. L: 'YYYY/MM/DD',
  27296. LL: 'YYYY年M月D日',
  27297. LLL: 'YYYY年M月D日Ah点mm分',
  27298. LLLL: 'YYYY年M月D日ddddAh点mm分',
  27299. l: 'YYYY/M/D',
  27300. ll: 'YYYY年M月D日',
  27301. lll: 'YYYY年M月D日 HH:mm',
  27302. llll: 'YYYY年M月D日dddd HH:mm'
  27303. },
  27304. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  27305. meridiemHour: function meridiemHour(hour, meridiem) {
  27306. if (hour === 12) {
  27307. hour = 0;
  27308. }
  27309. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  27310. return hour;
  27311. } else if (meridiem === '下午' || meridiem === '晚上') {
  27312. return hour + 12;
  27313. } else {
  27314. // '中午'
  27315. return hour >= 11 ? hour : hour + 12;
  27316. }
  27317. },
  27318. meridiem: function meridiem(hour, minute, isLower) {
  27319. var hm = hour * 100 + minute;
  27320. if (hm < 600) {
  27321. return '凌晨';
  27322. } else if (hm < 900) {
  27323. return '早上';
  27324. } else if (hm < 1130) {
  27325. return '上午';
  27326. } else if (hm < 1230) {
  27327. return '中午';
  27328. } else if (hm < 1800) {
  27329. return '下午';
  27330. } else {
  27331. return '晚上';
  27332. }
  27333. },
  27334. calendar: {
  27335. sameDay: '[今天]LT',
  27336. nextDay: '[明天]LT',
  27337. nextWeek: function nextWeek(now) {
  27338. if (now.week() !== this.week()) {
  27339. return '[下]dddLT';
  27340. } else {
  27341. return '[本]dddLT';
  27342. }
  27343. },
  27344. lastDay: '[昨天]LT',
  27345. lastWeek: function lastWeek(now) {
  27346. if (this.week() !== now.week()) {
  27347. return '[上]dddLT';
  27348. } else {
  27349. return '[本]dddLT';
  27350. }
  27351. },
  27352. sameElse: 'L'
  27353. },
  27354. dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
  27355. ordinal: function ordinal(number, period) {
  27356. switch (period) {
  27357. case 'd':
  27358. case 'D':
  27359. case 'DDD':
  27360. return number + '日';
  27361. case 'M':
  27362. return number + '月';
  27363. case 'w':
  27364. case 'W':
  27365. return number + '周';
  27366. default:
  27367. return number;
  27368. }
  27369. },
  27370. relativeTime: {
  27371. future: '%s后',
  27372. past: '%s前',
  27373. s: '几秒',
  27374. ss: '%d 秒',
  27375. m: '1 分钟',
  27376. mm: '%d 分钟',
  27377. h: '1 小时',
  27378. hh: '%d 小时',
  27379. d: '1 天',
  27380. dd: '%d 天',
  27381. w: '1 周',
  27382. ww: '%d 周',
  27383. M: '1 个月',
  27384. MM: '%d 个月',
  27385. y: '1 年',
  27386. yy: '%d 年'
  27387. },
  27388. week: {
  27389. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  27390. dow: 1,
  27391. // Monday is the first day of the week.
  27392. doy: 4 // The week that contains Jan 4th is the first week of the year.
  27393. }
  27394. });
  27395. return zhCn;
  27396. });
  27397. /***/ }),
  27398. /* 174 */
  27399. /*!******************************************************************!*\
  27400. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/zh-hk.js ***!
  27401. \******************************************************************/
  27402. /*! no static exports found */
  27403. /***/ (function(module, exports, __webpack_require__) {
  27404. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  27405. //! moment.js locale configuration
  27406. //! locale : Chinese (Hong Kong) [zh-hk]
  27407. //! author : Ben : https://github.com/ben-lin
  27408. //! author : Chris Lam : https://github.com/hehachris
  27409. //! author : Konstantin : https://github.com/skfd
  27410. //! author : Anthony : https://github.com/anthonylau
  27411. ;
  27412. (function (global, factory) {
  27413. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  27414. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  27415. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  27416. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  27417. })(this, function (moment) {
  27418. 'use strict';
  27419. //! moment.js locale configuration
  27420. var zhHk = moment.defineLocale('zh-hk', {
  27421. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  27422. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  27423. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  27424. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  27425. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  27426. longDateFormat: {
  27427. LT: 'HH:mm',
  27428. LTS: 'HH:mm:ss',
  27429. L: 'YYYY/MM/DD',
  27430. LL: 'YYYY年M月D日',
  27431. LLL: 'YYYY年M月D日 HH:mm',
  27432. LLLL: 'YYYY年M月D日dddd HH:mm',
  27433. l: 'YYYY/M/D',
  27434. ll: 'YYYY年M月D日',
  27435. lll: 'YYYY年M月D日 HH:mm',
  27436. llll: 'YYYY年M月D日dddd HH:mm'
  27437. },
  27438. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  27439. meridiemHour: function meridiemHour(hour, meridiem) {
  27440. if (hour === 12) {
  27441. hour = 0;
  27442. }
  27443. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  27444. return hour;
  27445. } else if (meridiem === '中午') {
  27446. return hour >= 11 ? hour : hour + 12;
  27447. } else if (meridiem === '下午' || meridiem === '晚上') {
  27448. return hour + 12;
  27449. }
  27450. },
  27451. meridiem: function meridiem(hour, minute, isLower) {
  27452. var hm = hour * 100 + minute;
  27453. if (hm < 600) {
  27454. return '凌晨';
  27455. } else if (hm < 900) {
  27456. return '早上';
  27457. } else if (hm < 1200) {
  27458. return '上午';
  27459. } else if (hm === 1200) {
  27460. return '中午';
  27461. } else if (hm < 1800) {
  27462. return '下午';
  27463. } else {
  27464. return '晚上';
  27465. }
  27466. },
  27467. calendar: {
  27468. sameDay: '[今天]LT',
  27469. nextDay: '[明天]LT',
  27470. nextWeek: '[下]ddddLT',
  27471. lastDay: '[昨天]LT',
  27472. lastWeek: '[上]ddddLT',
  27473. sameElse: 'L'
  27474. },
  27475. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  27476. ordinal: function ordinal(number, period) {
  27477. switch (period) {
  27478. case 'd':
  27479. case 'D':
  27480. case 'DDD':
  27481. return number + '日';
  27482. case 'M':
  27483. return number + '月';
  27484. case 'w':
  27485. case 'W':
  27486. return number + '週';
  27487. default:
  27488. return number;
  27489. }
  27490. },
  27491. relativeTime: {
  27492. future: '%s後',
  27493. past: '%s前',
  27494. s: '幾秒',
  27495. ss: '%d 秒',
  27496. m: '1 分鐘',
  27497. mm: '%d 分鐘',
  27498. h: '1 小時',
  27499. hh: '%d 小時',
  27500. d: '1 天',
  27501. dd: '%d 天',
  27502. M: '1 個月',
  27503. MM: '%d 個月',
  27504. y: '1 年',
  27505. yy: '%d 年'
  27506. }
  27507. });
  27508. return zhHk;
  27509. });
  27510. /***/ }),
  27511. /* 175 */
  27512. /*!******************************************************************!*\
  27513. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/zh-mo.js ***!
  27514. \******************************************************************/
  27515. /*! no static exports found */
  27516. /***/ (function(module, exports, __webpack_require__) {
  27517. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  27518. //! moment.js locale configuration
  27519. //! locale : Chinese (Macau) [zh-mo]
  27520. //! author : Ben : https://github.com/ben-lin
  27521. //! author : Chris Lam : https://github.com/hehachris
  27522. //! author : Tan Yuanhong : https://github.com/le0tan
  27523. ;
  27524. (function (global, factory) {
  27525. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  27526. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  27527. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  27528. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  27529. })(this, function (moment) {
  27530. 'use strict';
  27531. //! moment.js locale configuration
  27532. var zhMo = moment.defineLocale('zh-mo', {
  27533. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  27534. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  27535. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  27536. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  27537. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  27538. longDateFormat: {
  27539. LT: 'HH:mm',
  27540. LTS: 'HH:mm:ss',
  27541. L: 'DD/MM/YYYY',
  27542. LL: 'YYYY年M月D日',
  27543. LLL: 'YYYY年M月D日 HH:mm',
  27544. LLLL: 'YYYY年M月D日dddd HH:mm',
  27545. l: 'D/M/YYYY',
  27546. ll: 'YYYY年M月D日',
  27547. lll: 'YYYY年M月D日 HH:mm',
  27548. llll: 'YYYY年M月D日dddd HH:mm'
  27549. },
  27550. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  27551. meridiemHour: function meridiemHour(hour, meridiem) {
  27552. if (hour === 12) {
  27553. hour = 0;
  27554. }
  27555. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  27556. return hour;
  27557. } else if (meridiem === '中午') {
  27558. return hour >= 11 ? hour : hour + 12;
  27559. } else if (meridiem === '下午' || meridiem === '晚上') {
  27560. return hour + 12;
  27561. }
  27562. },
  27563. meridiem: function meridiem(hour, minute, isLower) {
  27564. var hm = hour * 100 + minute;
  27565. if (hm < 600) {
  27566. return '凌晨';
  27567. } else if (hm < 900) {
  27568. return '早上';
  27569. } else if (hm < 1130) {
  27570. return '上午';
  27571. } else if (hm < 1230) {
  27572. return '中午';
  27573. } else if (hm < 1800) {
  27574. return '下午';
  27575. } else {
  27576. return '晚上';
  27577. }
  27578. },
  27579. calendar: {
  27580. sameDay: '[今天] LT',
  27581. nextDay: '[明天] LT',
  27582. nextWeek: '[下]dddd LT',
  27583. lastDay: '[昨天] LT',
  27584. lastWeek: '[上]dddd LT',
  27585. sameElse: 'L'
  27586. },
  27587. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  27588. ordinal: function ordinal(number, period) {
  27589. switch (period) {
  27590. case 'd':
  27591. case 'D':
  27592. case 'DDD':
  27593. return number + '日';
  27594. case 'M':
  27595. return number + '月';
  27596. case 'w':
  27597. case 'W':
  27598. return number + '週';
  27599. default:
  27600. return number;
  27601. }
  27602. },
  27603. relativeTime: {
  27604. future: '%s內',
  27605. past: '%s前',
  27606. s: '幾秒',
  27607. ss: '%d 秒',
  27608. m: '1 分鐘',
  27609. mm: '%d 分鐘',
  27610. h: '1 小時',
  27611. hh: '%d 小時',
  27612. d: '1 天',
  27613. dd: '%d 天',
  27614. M: '1 個月',
  27615. MM: '%d 個月',
  27616. y: '1 年',
  27617. yy: '%d 年'
  27618. }
  27619. });
  27620. return zhMo;
  27621. });
  27622. /***/ }),
  27623. /* 176 */
  27624. /*!******************************************************************!*\
  27625. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/zh-tw.js ***!
  27626. \******************************************************************/
  27627. /*! no static exports found */
  27628. /***/ (function(module, exports, __webpack_require__) {
  27629. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  27630. //! moment.js locale configuration
  27631. //! locale : Chinese (Taiwan) [zh-tw]
  27632. //! author : Ben : https://github.com/ben-lin
  27633. //! author : Chris Lam : https://github.com/hehachris
  27634. ;
  27635. (function (global, factory) {
  27636. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  27637. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  27638. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  27639. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  27640. })(this, function (moment) {
  27641. 'use strict';
  27642. //! moment.js locale configuration
  27643. var zhTw = moment.defineLocale('zh-tw', {
  27644. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  27645. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  27646. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  27647. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  27648. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  27649. longDateFormat: {
  27650. LT: 'HH:mm',
  27651. LTS: 'HH:mm:ss',
  27652. L: 'YYYY/MM/DD',
  27653. LL: 'YYYY年M月D日',
  27654. LLL: 'YYYY年M月D日 HH:mm',
  27655. LLLL: 'YYYY年M月D日dddd HH:mm',
  27656. l: 'YYYY/M/D',
  27657. ll: 'YYYY年M月D日',
  27658. lll: 'YYYY年M月D日 HH:mm',
  27659. llll: 'YYYY年M月D日dddd HH:mm'
  27660. },
  27661. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  27662. meridiemHour: function meridiemHour(hour, meridiem) {
  27663. if (hour === 12) {
  27664. hour = 0;
  27665. }
  27666. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  27667. return hour;
  27668. } else if (meridiem === '中午') {
  27669. return hour >= 11 ? hour : hour + 12;
  27670. } else if (meridiem === '下午' || meridiem === '晚上') {
  27671. return hour + 12;
  27672. }
  27673. },
  27674. meridiem: function meridiem(hour, minute, isLower) {
  27675. var hm = hour * 100 + minute;
  27676. if (hm < 600) {
  27677. return '凌晨';
  27678. } else if (hm < 900) {
  27679. return '早上';
  27680. } else if (hm < 1130) {
  27681. return '上午';
  27682. } else if (hm < 1230) {
  27683. return '中午';
  27684. } else if (hm < 1800) {
  27685. return '下午';
  27686. } else {
  27687. return '晚上';
  27688. }
  27689. },
  27690. calendar: {
  27691. sameDay: '[今天] LT',
  27692. nextDay: '[明天] LT',
  27693. nextWeek: '[下]dddd LT',
  27694. lastDay: '[昨天] LT',
  27695. lastWeek: '[上]dddd LT',
  27696. sameElse: 'L'
  27697. },
  27698. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  27699. ordinal: function ordinal(number, period) {
  27700. switch (period) {
  27701. case 'd':
  27702. case 'D':
  27703. case 'DDD':
  27704. return number + '日';
  27705. case 'M':
  27706. return number + '月';
  27707. case 'w':
  27708. case 'W':
  27709. return number + '週';
  27710. default:
  27711. return number;
  27712. }
  27713. },
  27714. relativeTime: {
  27715. future: '%s後',
  27716. past: '%s前',
  27717. s: '幾秒',
  27718. ss: '%d 秒',
  27719. m: '1 分鐘',
  27720. mm: '%d 分鐘',
  27721. h: '1 小時',
  27722. hh: '%d 小時',
  27723. d: '1 天',
  27724. dd: '%d 天',
  27725. M: '1 個月',
  27726. MM: '%d 個月',
  27727. y: '1 年',
  27728. yy: '%d 年'
  27729. }
  27730. });
  27731. return zhTw;
  27732. });
  27733. /***/ }),
  27734. /* 177 */,
  27735. /* 178 */,
  27736. /* 179 */,
  27737. /* 180 */,
  27738. /* 181 */,
  27739. /* 182 */,
  27740. /* 183 */,
  27741. /* 184 */,
  27742. /* 185 */,
  27743. /* 186 */,
  27744. /* 187 */,
  27745. /* 188 */,
  27746. /* 189 */,
  27747. /* 190 */,
  27748. /* 191 */,
  27749. /* 192 */,
  27750. /* 193 */,
  27751. /* 194 */,
  27752. /* 195 */,
  27753. /* 196 */,
  27754. /* 197 */,
  27755. /* 198 */,
  27756. /* 199 */,
  27757. /* 200 */,
  27758. /* 201 */,
  27759. /* 202 */,
  27760. /* 203 */,
  27761. /* 204 */,
  27762. /* 205 */,
  27763. /* 206 */,
  27764. /* 207 */,
  27765. /* 208 */,
  27766. /* 209 */,
  27767. /* 210 */,
  27768. /* 211 */,
  27769. /* 212 */,
  27770. /* 213 */,
  27771. /* 214 */,
  27772. /* 215 */,
  27773. /* 216 */,
  27774. /* 217 */,
  27775. /* 218 */,
  27776. /* 219 */,
  27777. /* 220 */,
  27778. /* 221 */,
  27779. /* 222 */,
  27780. /* 223 */,
  27781. /* 224 */,
  27782. /* 225 */,
  27783. /* 226 */,
  27784. /* 227 */,
  27785. /* 228 */,
  27786. /* 229 */,
  27787. /* 230 */,
  27788. /* 231 */,
  27789. /* 232 */,
  27790. /* 233 */,
  27791. /* 234 */,
  27792. /* 235 */,
  27793. /* 236 */,
  27794. /* 237 */,
  27795. /* 238 */,
  27796. /* 239 */,
  27797. /* 240 */,
  27798. /* 241 */,
  27799. /* 242 */,
  27800. /* 243 */,
  27801. /* 244 */,
  27802. /* 245 */,
  27803. /* 246 */,
  27804. /* 247 */,
  27805. /* 248 */,
  27806. /* 249 */,
  27807. /* 250 */,
  27808. /* 251 */,
  27809. /* 252 */,
  27810. /* 253 */,
  27811. /* 254 */,
  27812. /* 255 */,
  27813. /* 256 */,
  27814. /* 257 */,
  27815. /* 258 */,
  27816. /* 259 */,
  27817. /* 260 */,
  27818. /* 261 */,
  27819. /* 262 */,
  27820. /* 263 */,
  27821. /* 264 */,
  27822. /* 265 */,
  27823. /* 266 */,
  27824. /* 267 */,
  27825. /* 268 */,
  27826. /* 269 */,
  27827. /* 270 */,
  27828. /* 271 */,
  27829. /* 272 */,
  27830. /* 273 */,
  27831. /* 274 */,
  27832. /* 275 */,
  27833. /* 276 */,
  27834. /* 277 */,
  27835. /* 278 */,
  27836. /* 279 */,
  27837. /* 280 */,
  27838. /* 281 */,
  27839. /* 282 */,
  27840. /* 283 */,
  27841. /* 284 */,
  27842. /* 285 */,
  27843. /* 286 */,
  27844. /* 287 */,
  27845. /* 288 */,
  27846. /* 289 */,
  27847. /* 290 */,
  27848. /* 291 */,
  27849. /* 292 */,
  27850. /* 293 */,
  27851. /* 294 */,
  27852. /* 295 */,
  27853. /* 296 */,
  27854. /* 297 */,
  27855. /* 298 */,
  27856. /* 299 */,
  27857. /* 300 */,
  27858. /* 301 */,
  27859. /* 302 */,
  27860. /* 303 */,
  27861. /* 304 */,
  27862. /* 305 */,
  27863. /* 306 */,
  27864. /* 307 */,
  27865. /* 308 */,
  27866. /* 309 */,
  27867. /* 310 */,
  27868. /* 311 */,
  27869. /* 312 */,
  27870. /* 313 */,
  27871. /* 314 */,
  27872. /* 315 */,
  27873. /* 316 */,
  27874. /* 317 */,
  27875. /* 318 */,
  27876. /* 319 */,
  27877. /* 320 */,
  27878. /* 321 */,
  27879. /* 322 */,
  27880. /* 323 */,
  27881. /* 324 */,
  27882. /* 325 */,
  27883. /* 326 */,
  27884. /* 327 */,
  27885. /* 328 */,
  27886. /* 329 */,
  27887. /* 330 */,
  27888. /* 331 */
  27889. /*!**********************************************************************************!*\
  27890. !*** D:/project/项目模板/uniapp/uni_modules/uni-icons/components/uni-icons/icons.js ***!
  27891. \**********************************************************************************/
  27892. /*! no static exports found */
  27893. /***/ (function(module, exports, __webpack_require__) {
  27894. "use strict";
  27895. Object.defineProperty(exports, "__esModule", {
  27896. value: true
  27897. });
  27898. exports.default = void 0;
  27899. var _default = {
  27900. "id": "2852637",
  27901. "name": "uniui图标库",
  27902. "font_family": "uniicons",
  27903. "css_prefix_text": "uniui-",
  27904. "description": "",
  27905. "glyphs": [{
  27906. "icon_id": "25027049",
  27907. "name": "yanse",
  27908. "font_class": "color",
  27909. "unicode": "e6cf",
  27910. "unicode_decimal": 59087
  27911. }, {
  27912. "icon_id": "25027048",
  27913. "name": "wallet",
  27914. "font_class": "wallet",
  27915. "unicode": "e6b1",
  27916. "unicode_decimal": 59057
  27917. }, {
  27918. "icon_id": "25015720",
  27919. "name": "settings-filled",
  27920. "font_class": "settings-filled",
  27921. "unicode": "e6ce",
  27922. "unicode_decimal": 59086
  27923. }, {
  27924. "icon_id": "25015434",
  27925. "name": "shimingrenzheng-filled",
  27926. "font_class": "auth-filled",
  27927. "unicode": "e6cc",
  27928. "unicode_decimal": 59084
  27929. }, {
  27930. "icon_id": "24934246",
  27931. "name": "shop-filled",
  27932. "font_class": "shop-filled",
  27933. "unicode": "e6cd",
  27934. "unicode_decimal": 59085
  27935. }, {
  27936. "icon_id": "24934159",
  27937. "name": "staff-filled-01",
  27938. "font_class": "staff-filled",
  27939. "unicode": "e6cb",
  27940. "unicode_decimal": 59083
  27941. }, {
  27942. "icon_id": "24932461",
  27943. "name": "VIP-filled",
  27944. "font_class": "vip-filled",
  27945. "unicode": "e6c6",
  27946. "unicode_decimal": 59078
  27947. }, {
  27948. "icon_id": "24932462",
  27949. "name": "plus_circle_fill",
  27950. "font_class": "plus-filled",
  27951. "unicode": "e6c7",
  27952. "unicode_decimal": 59079
  27953. }, {
  27954. "icon_id": "24932463",
  27955. "name": "folder_add-filled",
  27956. "font_class": "folder-add-filled",
  27957. "unicode": "e6c8",
  27958. "unicode_decimal": 59080
  27959. }, {
  27960. "icon_id": "24932464",
  27961. "name": "yanse-filled",
  27962. "font_class": "color-filled",
  27963. "unicode": "e6c9",
  27964. "unicode_decimal": 59081
  27965. }, {
  27966. "icon_id": "24932465",
  27967. "name": "tune-filled",
  27968. "font_class": "tune-filled",
  27969. "unicode": "e6ca",
  27970. "unicode_decimal": 59082
  27971. }, {
  27972. "icon_id": "24932455",
  27973. "name": "a-rilidaka-filled",
  27974. "font_class": "calendar-filled",
  27975. "unicode": "e6c0",
  27976. "unicode_decimal": 59072
  27977. }, {
  27978. "icon_id": "24932456",
  27979. "name": "notification-filled",
  27980. "font_class": "notification-filled",
  27981. "unicode": "e6c1",
  27982. "unicode_decimal": 59073
  27983. }, {
  27984. "icon_id": "24932457",
  27985. "name": "wallet-filled",
  27986. "font_class": "wallet-filled",
  27987. "unicode": "e6c2",
  27988. "unicode_decimal": 59074
  27989. }, {
  27990. "icon_id": "24932458",
  27991. "name": "paihangbang-filled",
  27992. "font_class": "medal-filled",
  27993. "unicode": "e6c3",
  27994. "unicode_decimal": 59075
  27995. }, {
  27996. "icon_id": "24932459",
  27997. "name": "gift-filled",
  27998. "font_class": "gift-filled",
  27999. "unicode": "e6c4",
  28000. "unicode_decimal": 59076
  28001. }, {
  28002. "icon_id": "24932460",
  28003. "name": "fire-filled",
  28004. "font_class": "fire-filled",
  28005. "unicode": "e6c5",
  28006. "unicode_decimal": 59077
  28007. }, {
  28008. "icon_id": "24928001",
  28009. "name": "refreshempty",
  28010. "font_class": "refreshempty",
  28011. "unicode": "e6bf",
  28012. "unicode_decimal": 59071
  28013. }, {
  28014. "icon_id": "24926853",
  28015. "name": "location-ellipse",
  28016. "font_class": "location-filled",
  28017. "unicode": "e6af",
  28018. "unicode_decimal": 59055
  28019. }, {
  28020. "icon_id": "24926735",
  28021. "name": "person-filled",
  28022. "font_class": "person-filled",
  28023. "unicode": "e69d",
  28024. "unicode_decimal": 59037
  28025. }, {
  28026. "icon_id": "24926703",
  28027. "name": "personadd-filled",
  28028. "font_class": "personadd-filled",
  28029. "unicode": "e698",
  28030. "unicode_decimal": 59032
  28031. }, {
  28032. "icon_id": "24923351",
  28033. "name": "back",
  28034. "font_class": "back",
  28035. "unicode": "e6b9",
  28036. "unicode_decimal": 59065
  28037. }, {
  28038. "icon_id": "24923352",
  28039. "name": "forward",
  28040. "font_class": "forward",
  28041. "unicode": "e6ba",
  28042. "unicode_decimal": 59066
  28043. }, {
  28044. "icon_id": "24923353",
  28045. "name": "arrowthinright",
  28046. "font_class": "arrow-right",
  28047. "unicode": "e6bb",
  28048. "unicode_decimal": 59067
  28049. }, {
  28050. "icon_id": "24923353",
  28051. "name": "arrowthinright",
  28052. "font_class": "arrowthinright",
  28053. "unicode": "e6bb",
  28054. "unicode_decimal": 59067
  28055. }, {
  28056. "icon_id": "24923354",
  28057. "name": "arrowthinleft",
  28058. "font_class": "arrow-left",
  28059. "unicode": "e6bc",
  28060. "unicode_decimal": 59068
  28061. }, {
  28062. "icon_id": "24923354",
  28063. "name": "arrowthinleft",
  28064. "font_class": "arrowthinleft",
  28065. "unicode": "e6bc",
  28066. "unicode_decimal": 59068
  28067. }, {
  28068. "icon_id": "24923355",
  28069. "name": "arrowthinup",
  28070. "font_class": "arrow-up",
  28071. "unicode": "e6bd",
  28072. "unicode_decimal": 59069
  28073. }, {
  28074. "icon_id": "24923355",
  28075. "name": "arrowthinup",
  28076. "font_class": "arrowthinup",
  28077. "unicode": "e6bd",
  28078. "unicode_decimal": 59069
  28079. }, {
  28080. "icon_id": "24923356",
  28081. "name": "arrowthindown",
  28082. "font_class": "arrow-down",
  28083. "unicode": "e6be",
  28084. "unicode_decimal": 59070
  28085. }, {
  28086. "icon_id": "24923356",
  28087. "name": "arrowthindown",
  28088. "font_class": "arrowthindown",
  28089. "unicode": "e6be",
  28090. "unicode_decimal": 59070
  28091. }, {
  28092. "icon_id": "24923349",
  28093. "name": "arrowdown",
  28094. "font_class": "bottom",
  28095. "unicode": "e6b8",
  28096. "unicode_decimal": 59064
  28097. }, {
  28098. "icon_id": "24923349",
  28099. "name": "arrowdown",
  28100. "font_class": "arrowdown",
  28101. "unicode": "e6b8",
  28102. "unicode_decimal": 59064
  28103. }, {
  28104. "icon_id": "24923346",
  28105. "name": "arrowright",
  28106. "font_class": "right",
  28107. "unicode": "e6b5",
  28108. "unicode_decimal": 59061
  28109. }, {
  28110. "icon_id": "24923346",
  28111. "name": "arrowright",
  28112. "font_class": "arrowright",
  28113. "unicode": "e6b5",
  28114. "unicode_decimal": 59061
  28115. }, {
  28116. "icon_id": "24923347",
  28117. "name": "arrowup",
  28118. "font_class": "top",
  28119. "unicode": "e6b6",
  28120. "unicode_decimal": 59062
  28121. }, {
  28122. "icon_id": "24923347",
  28123. "name": "arrowup",
  28124. "font_class": "arrowup",
  28125. "unicode": "e6b6",
  28126. "unicode_decimal": 59062
  28127. }, {
  28128. "icon_id": "24923348",
  28129. "name": "arrowleft",
  28130. "font_class": "left",
  28131. "unicode": "e6b7",
  28132. "unicode_decimal": 59063
  28133. }, {
  28134. "icon_id": "24923348",
  28135. "name": "arrowleft",
  28136. "font_class": "arrowleft",
  28137. "unicode": "e6b7",
  28138. "unicode_decimal": 59063
  28139. }, {
  28140. "icon_id": "24923334",
  28141. "name": "eye",
  28142. "font_class": "eye",
  28143. "unicode": "e651",
  28144. "unicode_decimal": 58961
  28145. }, {
  28146. "icon_id": "24923335",
  28147. "name": "eye-filled",
  28148. "font_class": "eye-filled",
  28149. "unicode": "e66a",
  28150. "unicode_decimal": 58986
  28151. }, {
  28152. "icon_id": "24923336",
  28153. "name": "eye-slash",
  28154. "font_class": "eye-slash",
  28155. "unicode": "e6b3",
  28156. "unicode_decimal": 59059
  28157. }, {
  28158. "icon_id": "24923337",
  28159. "name": "eye-slash-filled",
  28160. "font_class": "eye-slash-filled",
  28161. "unicode": "e6b4",
  28162. "unicode_decimal": 59060
  28163. }, {
  28164. "icon_id": "24923305",
  28165. "name": "info-filled",
  28166. "font_class": "info-filled",
  28167. "unicode": "e649",
  28168. "unicode_decimal": 58953
  28169. }, {
  28170. "icon_id": "24923299",
  28171. "name": "reload-01",
  28172. "font_class": "reload",
  28173. "unicode": "e6b2",
  28174. "unicode_decimal": 59058
  28175. }, {
  28176. "icon_id": "24923195",
  28177. "name": "mic_slash_fill",
  28178. "font_class": "micoff-filled",
  28179. "unicode": "e6b0",
  28180. "unicode_decimal": 59056
  28181. }, {
  28182. "icon_id": "24923165",
  28183. "name": "map-pin-ellipse",
  28184. "font_class": "map-pin-ellipse",
  28185. "unicode": "e6ac",
  28186. "unicode_decimal": 59052
  28187. }, {
  28188. "icon_id": "24923166",
  28189. "name": "map-pin",
  28190. "font_class": "map-pin",
  28191. "unicode": "e6ad",
  28192. "unicode_decimal": 59053
  28193. }, {
  28194. "icon_id": "24923167",
  28195. "name": "location",
  28196. "font_class": "location",
  28197. "unicode": "e6ae",
  28198. "unicode_decimal": 59054
  28199. }, {
  28200. "icon_id": "24923064",
  28201. "name": "starhalf",
  28202. "font_class": "starhalf",
  28203. "unicode": "e683",
  28204. "unicode_decimal": 59011
  28205. }, {
  28206. "icon_id": "24923065",
  28207. "name": "star",
  28208. "font_class": "star",
  28209. "unicode": "e688",
  28210. "unicode_decimal": 59016
  28211. }, {
  28212. "icon_id": "24923066",
  28213. "name": "star-filled",
  28214. "font_class": "star-filled",
  28215. "unicode": "e68f",
  28216. "unicode_decimal": 59023
  28217. }, {
  28218. "icon_id": "24899646",
  28219. "name": "a-rilidaka",
  28220. "font_class": "calendar",
  28221. "unicode": "e6a0",
  28222. "unicode_decimal": 59040
  28223. }, {
  28224. "icon_id": "24899647",
  28225. "name": "fire",
  28226. "font_class": "fire",
  28227. "unicode": "e6a1",
  28228. "unicode_decimal": 59041
  28229. }, {
  28230. "icon_id": "24899648",
  28231. "name": "paihangbang",
  28232. "font_class": "medal",
  28233. "unicode": "e6a2",
  28234. "unicode_decimal": 59042
  28235. }, {
  28236. "icon_id": "24899649",
  28237. "name": "font",
  28238. "font_class": "font",
  28239. "unicode": "e6a3",
  28240. "unicode_decimal": 59043
  28241. }, {
  28242. "icon_id": "24899650",
  28243. "name": "gift",
  28244. "font_class": "gift",
  28245. "unicode": "e6a4",
  28246. "unicode_decimal": 59044
  28247. }, {
  28248. "icon_id": "24899651",
  28249. "name": "link",
  28250. "font_class": "link",
  28251. "unicode": "e6a5",
  28252. "unicode_decimal": 59045
  28253. }, {
  28254. "icon_id": "24899652",
  28255. "name": "notification",
  28256. "font_class": "notification",
  28257. "unicode": "e6a6",
  28258. "unicode_decimal": 59046
  28259. }, {
  28260. "icon_id": "24899653",
  28261. "name": "staff",
  28262. "font_class": "staff",
  28263. "unicode": "e6a7",
  28264. "unicode_decimal": 59047
  28265. }, {
  28266. "icon_id": "24899654",
  28267. "name": "VIP",
  28268. "font_class": "vip",
  28269. "unicode": "e6a8",
  28270. "unicode_decimal": 59048
  28271. }, {
  28272. "icon_id": "24899655",
  28273. "name": "folder_add",
  28274. "font_class": "folder-add",
  28275. "unicode": "e6a9",
  28276. "unicode_decimal": 59049
  28277. }, {
  28278. "icon_id": "24899656",
  28279. "name": "tune",
  28280. "font_class": "tune",
  28281. "unicode": "e6aa",
  28282. "unicode_decimal": 59050
  28283. }, {
  28284. "icon_id": "24899657",
  28285. "name": "shimingrenzheng",
  28286. "font_class": "auth",
  28287. "unicode": "e6ab",
  28288. "unicode_decimal": 59051
  28289. }, {
  28290. "icon_id": "24899565",
  28291. "name": "person",
  28292. "font_class": "person",
  28293. "unicode": "e699",
  28294. "unicode_decimal": 59033
  28295. }, {
  28296. "icon_id": "24899566",
  28297. "name": "email-filled",
  28298. "font_class": "email-filled",
  28299. "unicode": "e69a",
  28300. "unicode_decimal": 59034
  28301. }, {
  28302. "icon_id": "24899567",
  28303. "name": "phone-filled",
  28304. "font_class": "phone-filled",
  28305. "unicode": "e69b",
  28306. "unicode_decimal": 59035
  28307. }, {
  28308. "icon_id": "24899568",
  28309. "name": "phone",
  28310. "font_class": "phone",
  28311. "unicode": "e69c",
  28312. "unicode_decimal": 59036
  28313. }, {
  28314. "icon_id": "24899570",
  28315. "name": "email",
  28316. "font_class": "email",
  28317. "unicode": "e69e",
  28318. "unicode_decimal": 59038
  28319. }, {
  28320. "icon_id": "24899571",
  28321. "name": "personadd",
  28322. "font_class": "personadd",
  28323. "unicode": "e69f",
  28324. "unicode_decimal": 59039
  28325. }, {
  28326. "icon_id": "24899558",
  28327. "name": "chatboxes-filled",
  28328. "font_class": "chatboxes-filled",
  28329. "unicode": "e692",
  28330. "unicode_decimal": 59026
  28331. }, {
  28332. "icon_id": "24899559",
  28333. "name": "contact",
  28334. "font_class": "contact",
  28335. "unicode": "e693",
  28336. "unicode_decimal": 59027
  28337. }, {
  28338. "icon_id": "24899560",
  28339. "name": "chatbubble-filled",
  28340. "font_class": "chatbubble-filled",
  28341. "unicode": "e694",
  28342. "unicode_decimal": 59028
  28343. }, {
  28344. "icon_id": "24899561",
  28345. "name": "contact-filled",
  28346. "font_class": "contact-filled",
  28347. "unicode": "e695",
  28348. "unicode_decimal": 59029
  28349. }, {
  28350. "icon_id": "24899562",
  28351. "name": "chatboxes",
  28352. "font_class": "chatboxes",
  28353. "unicode": "e696",
  28354. "unicode_decimal": 59030
  28355. }, {
  28356. "icon_id": "24899563",
  28357. "name": "chatbubble",
  28358. "font_class": "chatbubble",
  28359. "unicode": "e697",
  28360. "unicode_decimal": 59031
  28361. }, {
  28362. "icon_id": "24881290",
  28363. "name": "upload-filled",
  28364. "font_class": "upload-filled",
  28365. "unicode": "e68e",
  28366. "unicode_decimal": 59022
  28367. }, {
  28368. "icon_id": "24881292",
  28369. "name": "upload",
  28370. "font_class": "upload",
  28371. "unicode": "e690",
  28372. "unicode_decimal": 59024
  28373. }, {
  28374. "icon_id": "24881293",
  28375. "name": "weixin",
  28376. "font_class": "weixin",
  28377. "unicode": "e691",
  28378. "unicode_decimal": 59025
  28379. }, {
  28380. "icon_id": "24881274",
  28381. "name": "compose",
  28382. "font_class": "compose",
  28383. "unicode": "e67f",
  28384. "unicode_decimal": 59007
  28385. }, {
  28386. "icon_id": "24881275",
  28387. "name": "qq",
  28388. "font_class": "qq",
  28389. "unicode": "e680",
  28390. "unicode_decimal": 59008
  28391. }, {
  28392. "icon_id": "24881276",
  28393. "name": "download-filled",
  28394. "font_class": "download-filled",
  28395. "unicode": "e681",
  28396. "unicode_decimal": 59009
  28397. }, {
  28398. "icon_id": "24881277",
  28399. "name": "pengyouquan",
  28400. "font_class": "pyq",
  28401. "unicode": "e682",
  28402. "unicode_decimal": 59010
  28403. }, {
  28404. "icon_id": "24881279",
  28405. "name": "sound",
  28406. "font_class": "sound",
  28407. "unicode": "e684",
  28408. "unicode_decimal": 59012
  28409. }, {
  28410. "icon_id": "24881280",
  28411. "name": "trash-filled",
  28412. "font_class": "trash-filled",
  28413. "unicode": "e685",
  28414. "unicode_decimal": 59013
  28415. }, {
  28416. "icon_id": "24881281",
  28417. "name": "sound-filled",
  28418. "font_class": "sound-filled",
  28419. "unicode": "e686",
  28420. "unicode_decimal": 59014
  28421. }, {
  28422. "icon_id": "24881282",
  28423. "name": "trash",
  28424. "font_class": "trash",
  28425. "unicode": "e687",
  28426. "unicode_decimal": 59015
  28427. }, {
  28428. "icon_id": "24881284",
  28429. "name": "videocam-filled",
  28430. "font_class": "videocam-filled",
  28431. "unicode": "e689",
  28432. "unicode_decimal": 59017
  28433. }, {
  28434. "icon_id": "24881285",
  28435. "name": "spinner-cycle",
  28436. "font_class": "spinner-cycle",
  28437. "unicode": "e68a",
  28438. "unicode_decimal": 59018
  28439. }, {
  28440. "icon_id": "24881286",
  28441. "name": "weibo",
  28442. "font_class": "weibo",
  28443. "unicode": "e68b",
  28444. "unicode_decimal": 59019
  28445. }, {
  28446. "icon_id": "24881288",
  28447. "name": "videocam",
  28448. "font_class": "videocam",
  28449. "unicode": "e68c",
  28450. "unicode_decimal": 59020
  28451. }, {
  28452. "icon_id": "24881289",
  28453. "name": "download",
  28454. "font_class": "download",
  28455. "unicode": "e68d",
  28456. "unicode_decimal": 59021
  28457. }, {
  28458. "icon_id": "24879601",
  28459. "name": "help",
  28460. "font_class": "help",
  28461. "unicode": "e679",
  28462. "unicode_decimal": 59001
  28463. }, {
  28464. "icon_id": "24879602",
  28465. "name": "navigate-filled",
  28466. "font_class": "navigate-filled",
  28467. "unicode": "e67a",
  28468. "unicode_decimal": 59002
  28469. }, {
  28470. "icon_id": "24879603",
  28471. "name": "plusempty",
  28472. "font_class": "plusempty",
  28473. "unicode": "e67b",
  28474. "unicode_decimal": 59003
  28475. }, {
  28476. "icon_id": "24879604",
  28477. "name": "smallcircle",
  28478. "font_class": "smallcircle",
  28479. "unicode": "e67c",
  28480. "unicode_decimal": 59004
  28481. }, {
  28482. "icon_id": "24879605",
  28483. "name": "minus-filled",
  28484. "font_class": "minus-filled",
  28485. "unicode": "e67d",
  28486. "unicode_decimal": 59005
  28487. }, {
  28488. "icon_id": "24879606",
  28489. "name": "micoff",
  28490. "font_class": "micoff",
  28491. "unicode": "e67e",
  28492. "unicode_decimal": 59006
  28493. }, {
  28494. "icon_id": "24879588",
  28495. "name": "closeempty",
  28496. "font_class": "closeempty",
  28497. "unicode": "e66c",
  28498. "unicode_decimal": 58988
  28499. }, {
  28500. "icon_id": "24879589",
  28501. "name": "clear",
  28502. "font_class": "clear",
  28503. "unicode": "e66d",
  28504. "unicode_decimal": 58989
  28505. }, {
  28506. "icon_id": "24879590",
  28507. "name": "navigate",
  28508. "font_class": "navigate",
  28509. "unicode": "e66e",
  28510. "unicode_decimal": 58990
  28511. }, {
  28512. "icon_id": "24879591",
  28513. "name": "minus",
  28514. "font_class": "minus",
  28515. "unicode": "e66f",
  28516. "unicode_decimal": 58991
  28517. }, {
  28518. "icon_id": "24879592",
  28519. "name": "image",
  28520. "font_class": "image",
  28521. "unicode": "e670",
  28522. "unicode_decimal": 58992
  28523. }, {
  28524. "icon_id": "24879593",
  28525. "name": "mic",
  28526. "font_class": "mic",
  28527. "unicode": "e671",
  28528. "unicode_decimal": 58993
  28529. }, {
  28530. "icon_id": "24879594",
  28531. "name": "paperplane",
  28532. "font_class": "paperplane",
  28533. "unicode": "e672",
  28534. "unicode_decimal": 58994
  28535. }, {
  28536. "icon_id": "24879595",
  28537. "name": "close",
  28538. "font_class": "close",
  28539. "unicode": "e673",
  28540. "unicode_decimal": 58995
  28541. }, {
  28542. "icon_id": "24879596",
  28543. "name": "help-filled",
  28544. "font_class": "help-filled",
  28545. "unicode": "e674",
  28546. "unicode_decimal": 58996
  28547. }, {
  28548. "icon_id": "24879597",
  28549. "name": "plus-filled",
  28550. "font_class": "paperplane-filled",
  28551. "unicode": "e675",
  28552. "unicode_decimal": 58997
  28553. }, {
  28554. "icon_id": "24879598",
  28555. "name": "plus",
  28556. "font_class": "plus",
  28557. "unicode": "e676",
  28558. "unicode_decimal": 58998
  28559. }, {
  28560. "icon_id": "24879599",
  28561. "name": "mic-filled",
  28562. "font_class": "mic-filled",
  28563. "unicode": "e677",
  28564. "unicode_decimal": 58999
  28565. }, {
  28566. "icon_id": "24879600",
  28567. "name": "image-filled",
  28568. "font_class": "image-filled",
  28569. "unicode": "e678",
  28570. "unicode_decimal": 59000
  28571. }, {
  28572. "icon_id": "24855900",
  28573. "name": "locked-filled",
  28574. "font_class": "locked-filled",
  28575. "unicode": "e668",
  28576. "unicode_decimal": 58984
  28577. }, {
  28578. "icon_id": "24855901",
  28579. "name": "info",
  28580. "font_class": "info",
  28581. "unicode": "e669",
  28582. "unicode_decimal": 58985
  28583. }, {
  28584. "icon_id": "24855903",
  28585. "name": "locked",
  28586. "font_class": "locked",
  28587. "unicode": "e66b",
  28588. "unicode_decimal": 58987
  28589. }, {
  28590. "icon_id": "24855884",
  28591. "name": "camera-filled",
  28592. "font_class": "camera-filled",
  28593. "unicode": "e658",
  28594. "unicode_decimal": 58968
  28595. }, {
  28596. "icon_id": "24855885",
  28597. "name": "chat-filled",
  28598. "font_class": "chat-filled",
  28599. "unicode": "e659",
  28600. "unicode_decimal": 58969
  28601. }, {
  28602. "icon_id": "24855886",
  28603. "name": "camera",
  28604. "font_class": "camera",
  28605. "unicode": "e65a",
  28606. "unicode_decimal": 58970
  28607. }, {
  28608. "icon_id": "24855887",
  28609. "name": "circle",
  28610. "font_class": "circle",
  28611. "unicode": "e65b",
  28612. "unicode_decimal": 58971
  28613. }, {
  28614. "icon_id": "24855888",
  28615. "name": "checkmarkempty",
  28616. "font_class": "checkmarkempty",
  28617. "unicode": "e65c",
  28618. "unicode_decimal": 58972
  28619. }, {
  28620. "icon_id": "24855889",
  28621. "name": "chat",
  28622. "font_class": "chat",
  28623. "unicode": "e65d",
  28624. "unicode_decimal": 58973
  28625. }, {
  28626. "icon_id": "24855890",
  28627. "name": "circle-filled",
  28628. "font_class": "circle-filled",
  28629. "unicode": "e65e",
  28630. "unicode_decimal": 58974
  28631. }, {
  28632. "icon_id": "24855891",
  28633. "name": "flag",
  28634. "font_class": "flag",
  28635. "unicode": "e65f",
  28636. "unicode_decimal": 58975
  28637. }, {
  28638. "icon_id": "24855892",
  28639. "name": "flag-filled",
  28640. "font_class": "flag-filled",
  28641. "unicode": "e660",
  28642. "unicode_decimal": 58976
  28643. }, {
  28644. "icon_id": "24855893",
  28645. "name": "gear-filled",
  28646. "font_class": "gear-filled",
  28647. "unicode": "e661",
  28648. "unicode_decimal": 58977
  28649. }, {
  28650. "icon_id": "24855894",
  28651. "name": "home",
  28652. "font_class": "home",
  28653. "unicode": "e662",
  28654. "unicode_decimal": 58978
  28655. }, {
  28656. "icon_id": "24855895",
  28657. "name": "home-filled",
  28658. "font_class": "home-filled",
  28659. "unicode": "e663",
  28660. "unicode_decimal": 58979
  28661. }, {
  28662. "icon_id": "24855896",
  28663. "name": "gear",
  28664. "font_class": "gear",
  28665. "unicode": "e664",
  28666. "unicode_decimal": 58980
  28667. }, {
  28668. "icon_id": "24855897",
  28669. "name": "smallcircle-filled",
  28670. "font_class": "smallcircle-filled",
  28671. "unicode": "e665",
  28672. "unicode_decimal": 58981
  28673. }, {
  28674. "icon_id": "24855898",
  28675. "name": "map-filled",
  28676. "font_class": "map-filled",
  28677. "unicode": "e666",
  28678. "unicode_decimal": 58982
  28679. }, {
  28680. "icon_id": "24855899",
  28681. "name": "map",
  28682. "font_class": "map",
  28683. "unicode": "e667",
  28684. "unicode_decimal": 58983
  28685. }, {
  28686. "icon_id": "24855825",
  28687. "name": "refresh-filled",
  28688. "font_class": "refresh-filled",
  28689. "unicode": "e656",
  28690. "unicode_decimal": 58966
  28691. }, {
  28692. "icon_id": "24855826",
  28693. "name": "refresh",
  28694. "font_class": "refresh",
  28695. "unicode": "e657",
  28696. "unicode_decimal": 58967
  28697. }, {
  28698. "icon_id": "24855808",
  28699. "name": "cloud-upload",
  28700. "font_class": "cloud-upload",
  28701. "unicode": "e645",
  28702. "unicode_decimal": 58949
  28703. }, {
  28704. "icon_id": "24855809",
  28705. "name": "cloud-download-filled",
  28706. "font_class": "cloud-download-filled",
  28707. "unicode": "e646",
  28708. "unicode_decimal": 58950
  28709. }, {
  28710. "icon_id": "24855810",
  28711. "name": "cloud-download",
  28712. "font_class": "cloud-download",
  28713. "unicode": "e647",
  28714. "unicode_decimal": 58951
  28715. }, {
  28716. "icon_id": "24855811",
  28717. "name": "cloud-upload-filled",
  28718. "font_class": "cloud-upload-filled",
  28719. "unicode": "e648",
  28720. "unicode_decimal": 58952
  28721. }, {
  28722. "icon_id": "24855813",
  28723. "name": "redo",
  28724. "font_class": "redo",
  28725. "unicode": "e64a",
  28726. "unicode_decimal": 58954
  28727. }, {
  28728. "icon_id": "24855814",
  28729. "name": "images-filled",
  28730. "font_class": "images-filled",
  28731. "unicode": "e64b",
  28732. "unicode_decimal": 58955
  28733. }, {
  28734. "icon_id": "24855815",
  28735. "name": "undo-filled",
  28736. "font_class": "undo-filled",
  28737. "unicode": "e64c",
  28738. "unicode_decimal": 58956
  28739. }, {
  28740. "icon_id": "24855816",
  28741. "name": "more",
  28742. "font_class": "more",
  28743. "unicode": "e64d",
  28744. "unicode_decimal": 58957
  28745. }, {
  28746. "icon_id": "24855817",
  28747. "name": "more-filled",
  28748. "font_class": "more-filled",
  28749. "unicode": "e64e",
  28750. "unicode_decimal": 58958
  28751. }, {
  28752. "icon_id": "24855818",
  28753. "name": "undo",
  28754. "font_class": "undo",
  28755. "unicode": "e64f",
  28756. "unicode_decimal": 58959
  28757. }, {
  28758. "icon_id": "24855819",
  28759. "name": "images",
  28760. "font_class": "images",
  28761. "unicode": "e650",
  28762. "unicode_decimal": 58960
  28763. }, {
  28764. "icon_id": "24855821",
  28765. "name": "paperclip",
  28766. "font_class": "paperclip",
  28767. "unicode": "e652",
  28768. "unicode_decimal": 58962
  28769. }, {
  28770. "icon_id": "24855822",
  28771. "name": "settings",
  28772. "font_class": "settings",
  28773. "unicode": "e653",
  28774. "unicode_decimal": 58963
  28775. }, {
  28776. "icon_id": "24855823",
  28777. "name": "search",
  28778. "font_class": "search",
  28779. "unicode": "e654",
  28780. "unicode_decimal": 58964
  28781. }, {
  28782. "icon_id": "24855824",
  28783. "name": "redo-filled",
  28784. "font_class": "redo-filled",
  28785. "unicode": "e655",
  28786. "unicode_decimal": 58965
  28787. }, {
  28788. "icon_id": "24841702",
  28789. "name": "list",
  28790. "font_class": "list",
  28791. "unicode": "e644",
  28792. "unicode_decimal": 58948
  28793. }, {
  28794. "icon_id": "24841489",
  28795. "name": "mail-open-filled",
  28796. "font_class": "mail-open-filled",
  28797. "unicode": "e63a",
  28798. "unicode_decimal": 58938
  28799. }, {
  28800. "icon_id": "24841491",
  28801. "name": "hand-thumbsdown-filled",
  28802. "font_class": "hand-down-filled",
  28803. "unicode": "e63c",
  28804. "unicode_decimal": 58940
  28805. }, {
  28806. "icon_id": "24841492",
  28807. "name": "hand-thumbsdown",
  28808. "font_class": "hand-down",
  28809. "unicode": "e63d",
  28810. "unicode_decimal": 58941
  28811. }, {
  28812. "icon_id": "24841493",
  28813. "name": "hand-thumbsup-filled",
  28814. "font_class": "hand-up-filled",
  28815. "unicode": "e63e",
  28816. "unicode_decimal": 58942
  28817. }, {
  28818. "icon_id": "24841494",
  28819. "name": "hand-thumbsup",
  28820. "font_class": "hand-up",
  28821. "unicode": "e63f",
  28822. "unicode_decimal": 58943
  28823. }, {
  28824. "icon_id": "24841496",
  28825. "name": "heart-filled",
  28826. "font_class": "heart-filled",
  28827. "unicode": "e641",
  28828. "unicode_decimal": 58945
  28829. }, {
  28830. "icon_id": "24841498",
  28831. "name": "mail-open",
  28832. "font_class": "mail-open",
  28833. "unicode": "e643",
  28834. "unicode_decimal": 58947
  28835. }, {
  28836. "icon_id": "24841488",
  28837. "name": "heart",
  28838. "font_class": "heart",
  28839. "unicode": "e639",
  28840. "unicode_decimal": 58937
  28841. }, {
  28842. "icon_id": "24839963",
  28843. "name": "loop",
  28844. "font_class": "loop",
  28845. "unicode": "e633",
  28846. "unicode_decimal": 58931
  28847. }, {
  28848. "icon_id": "24839866",
  28849. "name": "pulldown",
  28850. "font_class": "pulldown",
  28851. "unicode": "e632",
  28852. "unicode_decimal": 58930
  28853. }, {
  28854. "icon_id": "24813798",
  28855. "name": "scan",
  28856. "font_class": "scan",
  28857. "unicode": "e62a",
  28858. "unicode_decimal": 58922
  28859. }, {
  28860. "icon_id": "24813786",
  28861. "name": "bars",
  28862. "font_class": "bars",
  28863. "unicode": "e627",
  28864. "unicode_decimal": 58919
  28865. }, {
  28866. "icon_id": "24813788",
  28867. "name": "cart-filled",
  28868. "font_class": "cart-filled",
  28869. "unicode": "e629",
  28870. "unicode_decimal": 58921
  28871. }, {
  28872. "icon_id": "24813790",
  28873. "name": "checkbox",
  28874. "font_class": "checkbox",
  28875. "unicode": "e62b",
  28876. "unicode_decimal": 58923
  28877. }, {
  28878. "icon_id": "24813791",
  28879. "name": "checkbox-filled",
  28880. "font_class": "checkbox-filled",
  28881. "unicode": "e62c",
  28882. "unicode_decimal": 58924
  28883. }, {
  28884. "icon_id": "24813794",
  28885. "name": "shop",
  28886. "font_class": "shop",
  28887. "unicode": "e62f",
  28888. "unicode_decimal": 58927
  28889. }, {
  28890. "icon_id": "24813795",
  28891. "name": "headphones",
  28892. "font_class": "headphones",
  28893. "unicode": "e630",
  28894. "unicode_decimal": 58928
  28895. }, {
  28896. "icon_id": "24813796",
  28897. "name": "cart",
  28898. "font_class": "cart",
  28899. "unicode": "e631",
  28900. "unicode_decimal": 58929
  28901. }]
  28902. };
  28903. exports.default = _default;
  28904. /***/ }),
  28905. /* 332 */,
  28906. /* 333 */,
  28907. /* 334 */,
  28908. /* 335 */,
  28909. /* 336 */,
  28910. /* 337 */,
  28911. /* 338 */,
  28912. /* 339 */,
  28913. /* 340 */,
  28914. /* 341 */,
  28915. /* 342 */,
  28916. /* 343 */,
  28917. /* 344 */,
  28918. /* 345 */,
  28919. /* 346 */
  28920. /*!*************************************************************************************!*\
  28921. !*** D:/project/项目模板/uniapp/uni_modules/uni-forms/components/uni-forms/validate.js ***!
  28922. \*************************************************************************************/
  28923. /*! no static exports found */
  28924. /***/ (function(module, exports, __webpack_require__) {
  28925. "use strict";
  28926. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  28927. Object.defineProperty(exports, "__esModule", {
  28928. value: true
  28929. });
  28930. exports.default = void 0;
  28931. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 35));
  28932. var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ 347));
  28933. var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ 348));
  28934. var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ 350));
  28935. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 37));
  28936. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  28937. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  28938. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  28939. function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
  28940. function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
  28941. var pattern = {
  28942. email: /^\S+?@\S+?\.\S+?$/,
  28943. idcard: /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,
  28944. url: new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$", 'i')
  28945. };
  28946. var FORMAT_MAPPING = {
  28947. "int": 'integer',
  28948. "bool": 'boolean',
  28949. "double": 'number',
  28950. "long": 'number',
  28951. "password": 'string'
  28952. // "fileurls": 'array'
  28953. };
  28954. function formatMessage(args) {
  28955. var resources = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
  28956. var defaultMessage = ['label'];
  28957. defaultMessage.forEach(function (item) {
  28958. if (args[item] === undefined) {
  28959. args[item] = '';
  28960. }
  28961. });
  28962. var str = resources;
  28963. for (var key in args) {
  28964. var reg = new RegExp('{' + key + '}');
  28965. str = str.replace(reg, args[key]);
  28966. }
  28967. return str;
  28968. }
  28969. function isEmptyValue(value, type) {
  28970. if (value === undefined || value === null) {
  28971. return true;
  28972. }
  28973. if (typeof value === 'string' && !value) {
  28974. return true;
  28975. }
  28976. if (Array.isArray(value) && !value.length) {
  28977. return true;
  28978. }
  28979. if (type === 'object' && !Object.keys(value).length) {
  28980. return true;
  28981. }
  28982. return false;
  28983. }
  28984. var types = {
  28985. integer: function integer(value) {
  28986. return types.number(value) && parseInt(value, 10) === value;
  28987. },
  28988. string: function string(value) {
  28989. return typeof value === 'string';
  28990. },
  28991. number: function number(value) {
  28992. if (isNaN(value)) {
  28993. return false;
  28994. }
  28995. return typeof value === 'number';
  28996. },
  28997. "boolean": function boolean(value) {
  28998. return typeof value === 'boolean';
  28999. },
  29000. "float": function float(value) {
  29001. return types.number(value) && !types.integer(value);
  29002. },
  29003. array: function array(value) {
  29004. return Array.isArray(value);
  29005. },
  29006. object: function object(value) {
  29007. return (0, _typeof2.default)(value) === 'object' && !types.array(value);
  29008. },
  29009. date: function date(value) {
  29010. return value instanceof Date;
  29011. },
  29012. timestamp: function timestamp(value) {
  29013. if (!this.integer(value) || Math.abs(value).toString().length > 16) {
  29014. return false;
  29015. }
  29016. return true;
  29017. },
  29018. file: function file(value) {
  29019. return typeof value.url === 'string';
  29020. },
  29021. email: function email(value) {
  29022. return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
  29023. },
  29024. url: function url(value) {
  29025. return typeof value === 'string' && !!value.match(pattern.url);
  29026. },
  29027. pattern: function pattern(reg, value) {
  29028. try {
  29029. return new RegExp(reg).test(value);
  29030. } catch (e) {
  29031. return false;
  29032. }
  29033. },
  29034. method: function method(value) {
  29035. return typeof value === 'function';
  29036. },
  29037. idcard: function idcard(value) {
  29038. return typeof value === 'string' && !!value.match(pattern.idcard);
  29039. },
  29040. 'url-https': function urlHttps(value) {
  29041. return this.url(value) && value.startsWith('https://');
  29042. },
  29043. 'url-scheme': function urlScheme(value) {
  29044. return value.startsWith('://');
  29045. },
  29046. 'url-web': function urlWeb(value) {
  29047. return false;
  29048. }
  29049. };
  29050. var RuleValidator = /*#__PURE__*/function () {
  29051. function RuleValidator(message) {
  29052. (0, _classCallCheck2.default)(this, RuleValidator);
  29053. this._message = message;
  29054. }
  29055. (0, _createClass2.default)(RuleValidator, [{
  29056. key: "validateRule",
  29057. value: function () {
  29058. var _validateRule = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(fieldKey, fieldValue, value, data, allData) {
  29059. var result, rules, hasRequired, message, i, rule, vt, now, resultExpr;
  29060. return _regenerator.default.wrap(function _callee$(_context) {
  29061. while (1) {
  29062. switch (_context.prev = _context.next) {
  29063. case 0:
  29064. result = null;
  29065. rules = fieldValue.rules;
  29066. hasRequired = rules.findIndex(function (item) {
  29067. return item.required;
  29068. });
  29069. if (!(hasRequired < 0)) {
  29070. _context.next = 8;
  29071. break;
  29072. }
  29073. if (!(value === null || value === undefined)) {
  29074. _context.next = 6;
  29075. break;
  29076. }
  29077. return _context.abrupt("return", result);
  29078. case 6:
  29079. if (!(typeof value === 'string' && !value.length)) {
  29080. _context.next = 8;
  29081. break;
  29082. }
  29083. return _context.abrupt("return", result);
  29084. case 8:
  29085. message = this._message;
  29086. if (!(rules === undefined)) {
  29087. _context.next = 11;
  29088. break;
  29089. }
  29090. return _context.abrupt("return", message['default']);
  29091. case 11:
  29092. i = 0;
  29093. case 12:
  29094. if (!(i < rules.length)) {
  29095. _context.next = 35;
  29096. break;
  29097. }
  29098. rule = rules[i];
  29099. vt = this._getValidateType(rule);
  29100. Object.assign(rule, {
  29101. label: fieldValue.label || "[\"".concat(fieldKey, "\"]")
  29102. });
  29103. if (!RuleValidatorHelper[vt]) {
  29104. _context.next = 20;
  29105. break;
  29106. }
  29107. result = RuleValidatorHelper[vt](rule, value, message);
  29108. if (!(result != null)) {
  29109. _context.next = 20;
  29110. break;
  29111. }
  29112. return _context.abrupt("break", 35);
  29113. case 20:
  29114. if (!rule.validateExpr) {
  29115. _context.next = 26;
  29116. break;
  29117. }
  29118. now = Date.now();
  29119. resultExpr = rule.validateExpr(value, allData, now);
  29120. if (!(resultExpr === false)) {
  29121. _context.next = 26;
  29122. break;
  29123. }
  29124. result = this._getMessage(rule, rule.errorMessage || this._message['default']);
  29125. return _context.abrupt("break", 35);
  29126. case 26:
  29127. if (!rule.validateFunction) {
  29128. _context.next = 32;
  29129. break;
  29130. }
  29131. _context.next = 29;
  29132. return this.validateFunction(rule, value, data, allData, vt);
  29133. case 29:
  29134. result = _context.sent;
  29135. if (!(result !== null)) {
  29136. _context.next = 32;
  29137. break;
  29138. }
  29139. return _context.abrupt("break", 35);
  29140. case 32:
  29141. i++;
  29142. _context.next = 12;
  29143. break;
  29144. case 35:
  29145. if (result !== null) {
  29146. result = message.TAG + result;
  29147. }
  29148. return _context.abrupt("return", result);
  29149. case 37:
  29150. case "end":
  29151. return _context.stop();
  29152. }
  29153. }
  29154. }, _callee, this);
  29155. }));
  29156. function validateRule(_x, _x2, _x3, _x4, _x5) {
  29157. return _validateRule.apply(this, arguments);
  29158. }
  29159. return validateRule;
  29160. }()
  29161. }, {
  29162. key: "validateFunction",
  29163. value: function () {
  29164. var _validateFunction = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(rule, value, data, allData, vt) {
  29165. var result, callbackMessage, res;
  29166. return _regenerator.default.wrap(function _callee2$(_context2) {
  29167. while (1) {
  29168. switch (_context2.prev = _context2.next) {
  29169. case 0:
  29170. result = null;
  29171. _context2.prev = 1;
  29172. callbackMessage = null;
  29173. _context2.next = 5;
  29174. return rule.validateFunction(rule, value, allData || data, function (message) {
  29175. callbackMessage = message;
  29176. });
  29177. case 5:
  29178. res = _context2.sent;
  29179. if (callbackMessage || typeof res === 'string' && res || res === false) {
  29180. result = this._getMessage(rule, callbackMessage || res, vt);
  29181. }
  29182. _context2.next = 12;
  29183. break;
  29184. case 9:
  29185. _context2.prev = 9;
  29186. _context2.t0 = _context2["catch"](1);
  29187. result = this._getMessage(rule, _context2.t0.message, vt);
  29188. case 12:
  29189. return _context2.abrupt("return", result);
  29190. case 13:
  29191. case "end":
  29192. return _context2.stop();
  29193. }
  29194. }
  29195. }, _callee2, this, [[1, 9]]);
  29196. }));
  29197. function validateFunction(_x6, _x7, _x8, _x9, _x10) {
  29198. return _validateFunction.apply(this, arguments);
  29199. }
  29200. return validateFunction;
  29201. }()
  29202. }, {
  29203. key: "_getMessage",
  29204. value: function _getMessage(rule, message, vt) {
  29205. return formatMessage(rule, message || rule.errorMessage || this._message[vt] || message['default']);
  29206. }
  29207. }, {
  29208. key: "_getValidateType",
  29209. value: function _getValidateType(rule) {
  29210. var result = '';
  29211. if (rule.required) {
  29212. result = 'required';
  29213. } else if (rule.format) {
  29214. result = 'format';
  29215. } else if (rule.arrayType) {
  29216. result = 'arrayTypeFormat';
  29217. } else if (rule.range) {
  29218. result = 'range';
  29219. } else if (rule.maximum !== undefined || rule.minimum !== undefined) {
  29220. result = 'rangeNumber';
  29221. } else if (rule.maxLength !== undefined || rule.minLength !== undefined) {
  29222. result = 'rangeLength';
  29223. } else if (rule.pattern) {
  29224. result = 'pattern';
  29225. } else if (rule.validateFunction) {
  29226. result = 'validateFunction';
  29227. }
  29228. return result;
  29229. }
  29230. }]);
  29231. return RuleValidator;
  29232. }();
  29233. var RuleValidatorHelper = {
  29234. required: function required(rule, value, message) {
  29235. if (rule.required && isEmptyValue(value, rule.format || (0, _typeof2.default)(value))) {
  29236. return formatMessage(rule, rule.errorMessage || message.required);
  29237. }
  29238. return null;
  29239. },
  29240. range: function range(rule, value, message) {
  29241. var range = rule.range,
  29242. errorMessage = rule.errorMessage;
  29243. var list = new Array(range.length);
  29244. for (var i = 0; i < range.length; i++) {
  29245. var item = range[i];
  29246. if (types.object(item) && item.value !== undefined) {
  29247. list[i] = item.value;
  29248. } else {
  29249. list[i] = item;
  29250. }
  29251. }
  29252. var result = false;
  29253. if (Array.isArray(value)) {
  29254. result = new Set(value.concat(list)).size === list.length;
  29255. } else {
  29256. if (list.indexOf(value) > -1) {
  29257. result = true;
  29258. }
  29259. }
  29260. if (!result) {
  29261. return formatMessage(rule, errorMessage || message['enum']);
  29262. }
  29263. return null;
  29264. },
  29265. rangeNumber: function rangeNumber(rule, value, message) {
  29266. if (!types.number(value)) {
  29267. return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
  29268. }
  29269. var minimum = rule.minimum,
  29270. maximum = rule.maximum,
  29271. exclusiveMinimum = rule.exclusiveMinimum,
  29272. exclusiveMaximum = rule.exclusiveMaximum;
  29273. var min = exclusiveMinimum ? value <= minimum : value < minimum;
  29274. var max = exclusiveMaximum ? value >= maximum : value > maximum;
  29275. if (minimum !== undefined && min) {
  29276. return formatMessage(rule, rule.errorMessage || message['number'][exclusiveMinimum ? 'exclusiveMinimum' : 'minimum']);
  29277. } else if (maximum !== undefined && max) {
  29278. return formatMessage(rule, rule.errorMessage || message['number'][exclusiveMaximum ? 'exclusiveMaximum' : 'maximum']);
  29279. } else if (minimum !== undefined && maximum !== undefined && (min || max)) {
  29280. return formatMessage(rule, rule.errorMessage || message['number'].range);
  29281. }
  29282. return null;
  29283. },
  29284. rangeLength: function rangeLength(rule, value, message) {
  29285. if (!types.string(value) && !types.array(value)) {
  29286. return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
  29287. }
  29288. var min = rule.minLength;
  29289. var max = rule.maxLength;
  29290. var val = value.length;
  29291. if (min !== undefined && val < min) {
  29292. return formatMessage(rule, rule.errorMessage || message['length'].minLength);
  29293. } else if (max !== undefined && val > max) {
  29294. return formatMessage(rule, rule.errorMessage || message['length'].maxLength);
  29295. } else if (min !== undefined && max !== undefined && (val < min || val > max)) {
  29296. return formatMessage(rule, rule.errorMessage || message['length'].range);
  29297. }
  29298. return null;
  29299. },
  29300. pattern: function pattern(rule, value, message) {
  29301. if (!types['pattern'](rule.pattern, value)) {
  29302. return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
  29303. }
  29304. return null;
  29305. },
  29306. format: function format(rule, value, message) {
  29307. var customTypes = Object.keys(types);
  29308. var format = FORMAT_MAPPING[rule.format] ? FORMAT_MAPPING[rule.format] : rule.format || rule.arrayType;
  29309. if (customTypes.indexOf(format) > -1) {
  29310. if (!types[format](value)) {
  29311. return formatMessage(rule, rule.errorMessage || message.typeError);
  29312. }
  29313. }
  29314. return null;
  29315. },
  29316. arrayTypeFormat: function arrayTypeFormat(rule, value, message) {
  29317. if (!Array.isArray(value)) {
  29318. return formatMessage(rule, rule.errorMessage || message.typeError);
  29319. }
  29320. for (var i = 0; i < value.length; i++) {
  29321. var element = value[i];
  29322. var formatResult = this.format(rule, element, message);
  29323. if (formatResult !== null) {
  29324. return formatResult;
  29325. }
  29326. }
  29327. return null;
  29328. }
  29329. };
  29330. var SchemaValidator = /*#__PURE__*/function (_RuleValidator) {
  29331. (0, _inherits2.default)(SchemaValidator, _RuleValidator);
  29332. var _super = _createSuper(SchemaValidator);
  29333. function SchemaValidator(schema, options) {
  29334. var _this;
  29335. (0, _classCallCheck2.default)(this, SchemaValidator);
  29336. _this = _super.call(this, SchemaValidator.message);
  29337. _this._schema = schema;
  29338. _this._options = options || null;
  29339. return _this;
  29340. }
  29341. (0, _createClass2.default)(SchemaValidator, [{
  29342. key: "updateSchema",
  29343. value: function updateSchema(schema) {
  29344. this._schema = schema;
  29345. }
  29346. }, {
  29347. key: "validate",
  29348. value: function () {
  29349. var _validate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(data, allData) {
  29350. var result;
  29351. return _regenerator.default.wrap(function _callee3$(_context3) {
  29352. while (1) {
  29353. switch (_context3.prev = _context3.next) {
  29354. case 0:
  29355. result = this._checkFieldInSchema(data);
  29356. if (result) {
  29357. _context3.next = 5;
  29358. break;
  29359. }
  29360. _context3.next = 4;
  29361. return this.invokeValidate(data, false, allData);
  29362. case 4:
  29363. result = _context3.sent;
  29364. case 5:
  29365. return _context3.abrupt("return", result.length ? result[0] : null);
  29366. case 6:
  29367. case "end":
  29368. return _context3.stop();
  29369. }
  29370. }
  29371. }, _callee3, this);
  29372. }));
  29373. function validate(_x11, _x12) {
  29374. return _validate.apply(this, arguments);
  29375. }
  29376. return validate;
  29377. }()
  29378. }, {
  29379. key: "validateAll",
  29380. value: function () {
  29381. var _validateAll = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(data, allData) {
  29382. var result;
  29383. return _regenerator.default.wrap(function _callee4$(_context4) {
  29384. while (1) {
  29385. switch (_context4.prev = _context4.next) {
  29386. case 0:
  29387. result = this._checkFieldInSchema(data);
  29388. if (result) {
  29389. _context4.next = 5;
  29390. break;
  29391. }
  29392. _context4.next = 4;
  29393. return this.invokeValidate(data, true, allData);
  29394. case 4:
  29395. result = _context4.sent;
  29396. case 5:
  29397. return _context4.abrupt("return", result);
  29398. case 6:
  29399. case "end":
  29400. return _context4.stop();
  29401. }
  29402. }
  29403. }, _callee4, this);
  29404. }));
  29405. function validateAll(_x13, _x14) {
  29406. return _validateAll.apply(this, arguments);
  29407. }
  29408. return validateAll;
  29409. }()
  29410. }, {
  29411. key: "validateUpdate",
  29412. value: function () {
  29413. var _validateUpdate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(data, allData) {
  29414. var result;
  29415. return _regenerator.default.wrap(function _callee5$(_context5) {
  29416. while (1) {
  29417. switch (_context5.prev = _context5.next) {
  29418. case 0:
  29419. result = this._checkFieldInSchema(data);
  29420. if (result) {
  29421. _context5.next = 5;
  29422. break;
  29423. }
  29424. _context5.next = 4;
  29425. return this.invokeValidateUpdate(data, false, allData);
  29426. case 4:
  29427. result = _context5.sent;
  29428. case 5:
  29429. return _context5.abrupt("return", result.length ? result[0] : null);
  29430. case 6:
  29431. case "end":
  29432. return _context5.stop();
  29433. }
  29434. }
  29435. }, _callee5, this);
  29436. }));
  29437. function validateUpdate(_x15, _x16) {
  29438. return _validateUpdate.apply(this, arguments);
  29439. }
  29440. return validateUpdate;
  29441. }()
  29442. }, {
  29443. key: "invokeValidate",
  29444. value: function () {
  29445. var _invokeValidate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(data, all, allData) {
  29446. var result, schema, key, value, errorMessage;
  29447. return _regenerator.default.wrap(function _callee6$(_context6) {
  29448. while (1) {
  29449. switch (_context6.prev = _context6.next) {
  29450. case 0:
  29451. result = [];
  29452. schema = this._schema;
  29453. _context6.t0 = _regenerator.default.keys(schema);
  29454. case 3:
  29455. if ((_context6.t1 = _context6.t0()).done) {
  29456. _context6.next = 15;
  29457. break;
  29458. }
  29459. key = _context6.t1.value;
  29460. value = schema[key];
  29461. _context6.next = 8;
  29462. return this.validateRule(key, value, data[key], data, allData);
  29463. case 8:
  29464. errorMessage = _context6.sent;
  29465. if (!(errorMessage != null)) {
  29466. _context6.next = 13;
  29467. break;
  29468. }
  29469. result.push({
  29470. key: key,
  29471. errorMessage: errorMessage
  29472. });
  29473. if (all) {
  29474. _context6.next = 13;
  29475. break;
  29476. }
  29477. return _context6.abrupt("break", 15);
  29478. case 13:
  29479. _context6.next = 3;
  29480. break;
  29481. case 15:
  29482. return _context6.abrupt("return", result);
  29483. case 16:
  29484. case "end":
  29485. return _context6.stop();
  29486. }
  29487. }
  29488. }, _callee6, this);
  29489. }));
  29490. function invokeValidate(_x17, _x18, _x19) {
  29491. return _invokeValidate.apply(this, arguments);
  29492. }
  29493. return invokeValidate;
  29494. }()
  29495. }, {
  29496. key: "invokeValidateUpdate",
  29497. value: function () {
  29498. var _invokeValidateUpdate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7(data, all, allData) {
  29499. var result, key, errorMessage;
  29500. return _regenerator.default.wrap(function _callee7$(_context7) {
  29501. while (1) {
  29502. switch (_context7.prev = _context7.next) {
  29503. case 0:
  29504. result = [];
  29505. _context7.t0 = _regenerator.default.keys(data);
  29506. case 2:
  29507. if ((_context7.t1 = _context7.t0()).done) {
  29508. _context7.next = 13;
  29509. break;
  29510. }
  29511. key = _context7.t1.value;
  29512. _context7.next = 6;
  29513. return this.validateRule(key, this._schema[key], data[key], data, allData);
  29514. case 6:
  29515. errorMessage = _context7.sent;
  29516. if (!(errorMessage != null)) {
  29517. _context7.next = 11;
  29518. break;
  29519. }
  29520. result.push({
  29521. key: key,
  29522. errorMessage: errorMessage
  29523. });
  29524. if (all) {
  29525. _context7.next = 11;
  29526. break;
  29527. }
  29528. return _context7.abrupt("break", 13);
  29529. case 11:
  29530. _context7.next = 2;
  29531. break;
  29532. case 13:
  29533. return _context7.abrupt("return", result);
  29534. case 14:
  29535. case "end":
  29536. return _context7.stop();
  29537. }
  29538. }
  29539. }, _callee7, this);
  29540. }));
  29541. function invokeValidateUpdate(_x20, _x21, _x22) {
  29542. return _invokeValidateUpdate.apply(this, arguments);
  29543. }
  29544. return invokeValidateUpdate;
  29545. }()
  29546. }, {
  29547. key: "_checkFieldInSchema",
  29548. value: function _checkFieldInSchema(data) {
  29549. var keys = Object.keys(data);
  29550. var keys2 = Object.keys(this._schema);
  29551. if (new Set(keys.concat(keys2)).size === keys2.length) {
  29552. return '';
  29553. }
  29554. var noExistFields = keys.filter(function (key) {
  29555. return keys2.indexOf(key) < 0;
  29556. });
  29557. var errorMessage = formatMessage({
  29558. field: JSON.stringify(noExistFields)
  29559. }, SchemaValidator.message.TAG + SchemaValidator.message['defaultInvalid']);
  29560. return [{
  29561. key: 'invalid',
  29562. errorMessage: errorMessage
  29563. }];
  29564. }
  29565. }]);
  29566. return SchemaValidator;
  29567. }(RuleValidator);
  29568. function Message() {
  29569. return {
  29570. TAG: "",
  29571. default: '验证错误',
  29572. defaultInvalid: '提交的字段{field}在数据库中并不存在',
  29573. validateFunction: '验证无效',
  29574. required: '{label}必填',
  29575. 'enum': '{label}超出范围',
  29576. timestamp: '{label}格式无效',
  29577. whitespace: '{label}不能为空',
  29578. typeError: '{label}类型无效',
  29579. date: {
  29580. format: '{label}日期{value}格式无效',
  29581. parse: '{label}日期无法解析,{value}无效',
  29582. invalid: '{label}日期{value}无效'
  29583. },
  29584. length: {
  29585. minLength: '{label}长度不能少于{minLength}',
  29586. maxLength: '{label}长度不能超过{maxLength}',
  29587. range: '{label}必须介于{minLength}和{maxLength}之间'
  29588. },
  29589. number: {
  29590. minimum: '{label}不能小于{minimum}',
  29591. maximum: '{label}不能大于{maximum}',
  29592. exclusiveMinimum: '{label}不能小于等于{minimum}',
  29593. exclusiveMaximum: '{label}不能大于等于{maximum}',
  29594. range: '{label}必须介于{minimum}and{maximum}之间'
  29595. },
  29596. pattern: {
  29597. mismatch: '{label}格式不匹配'
  29598. }
  29599. };
  29600. }
  29601. SchemaValidator.message = new Message();
  29602. var _default = SchemaValidator;
  29603. exports.default = _default;
  29604. /***/ }),
  29605. /* 347 */
  29606. /*!*********************************************************!*\
  29607. !*** ./node_modules/@babel/runtime/helpers/inherits.js ***!
  29608. \*********************************************************/
  29609. /*! no static exports found */
  29610. /***/ (function(module, exports, __webpack_require__) {
  29611. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  29612. function _inherits(subClass, superClass) {
  29613. if (typeof superClass !== "function" && superClass !== null) {
  29614. throw new TypeError("Super expression must either be null or a function");
  29615. }
  29616. subClass.prototype = Object.create(superClass && superClass.prototype, {
  29617. constructor: {
  29618. value: subClass,
  29619. writable: true,
  29620. configurable: true
  29621. }
  29622. });
  29623. Object.defineProperty(subClass, "prototype", {
  29624. writable: false
  29625. });
  29626. if (superClass) setPrototypeOf(subClass, superClass);
  29627. }
  29628. module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
  29629. /***/ }),
  29630. /* 348 */
  29631. /*!**************************************************************************!*\
  29632. !*** ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
  29633. \**************************************************************************/
  29634. /*! no static exports found */
  29635. /***/ (function(module, exports, __webpack_require__) {
  29636. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  29637. var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ 349);
  29638. function _possibleConstructorReturn(self, call) {
  29639. if (call && (_typeof(call) === "object" || typeof call === "function")) {
  29640. return call;
  29641. } else if (call !== void 0) {
  29642. throw new TypeError("Derived constructors may only return object or undefined");
  29643. }
  29644. return assertThisInitialized(self);
  29645. }
  29646. module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
  29647. /***/ }),
  29648. /* 349 */
  29649. /*!**********************************************************************!*\
  29650. !*** ./node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
  29651. \**********************************************************************/
  29652. /*! no static exports found */
  29653. /***/ (function(module, exports) {
  29654. function _assertThisInitialized(self) {
  29655. if (self === void 0) {
  29656. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  29657. }
  29658. return self;
  29659. }
  29660. module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
  29661. /***/ }),
  29662. /* 350 */
  29663. /*!***************************************************************!*\
  29664. !*** ./node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
  29665. \***************************************************************/
  29666. /*! no static exports found */
  29667. /***/ (function(module, exports) {
  29668. function _getPrototypeOf(o) {
  29669. module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
  29670. return o.__proto__ || Object.getPrototypeOf(o);
  29671. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  29672. return _getPrototypeOf(o);
  29673. }
  29674. module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  29675. /***/ }),
  29676. /* 351 */
  29677. /*!**********************************************************************************!*\
  29678. !*** D:/project/项目模板/uniapp/uni_modules/uni-forms/components/uni-forms/utils.js ***!
  29679. \**********************************************************************************/
  29680. /*! no static exports found */
  29681. /***/ (function(module, exports, __webpack_require__) {
  29682. "use strict";
  29683. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  29684. Object.defineProperty(exports, "__esModule", {
  29685. value: true
  29686. });
  29687. exports.typeFilter = exports.type = exports.setDataValue = exports.realName = exports.rawData = exports.objSet = exports.objGet = exports.name2arr = exports.isRequiredField = exports.isRealName = exports.isNumber = exports.isEqual = exports.isBoolean = exports.getValue = exports.getDataValueType = exports.getDataValue = exports.deepCopy = void 0;
  29688. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  29689. /**
  29690. * 简单处理对象拷贝
  29691. * @param {Obejct} 被拷贝对象
  29692. * @@return {Object} 拷贝对象
  29693. */
  29694. var deepCopy = function deepCopy(val) {
  29695. return JSON.parse(JSON.stringify(val));
  29696. };
  29697. /**
  29698. * 过滤数字类型
  29699. * @param {String} format 数字类型
  29700. * @@return {Boolean} 返回是否为数字类型
  29701. */
  29702. exports.deepCopy = deepCopy;
  29703. var typeFilter = function typeFilter(format) {
  29704. return format === 'int' || format === 'double' || format === 'number' || format === 'timestamp';
  29705. };
  29706. /**
  29707. * 把 value 转换成指定的类型,用于处理初始值,原因是初始值需要入库不能为 undefined
  29708. * @param {String} key 字段名
  29709. * @param {any} value 字段值
  29710. * @param {Object} rules 表单校验规则
  29711. */
  29712. exports.typeFilter = typeFilter;
  29713. var getValue = function getValue(key, value, rules) {
  29714. var isRuleNumType = rules.find(function (val) {
  29715. return val.format && typeFilter(val.format);
  29716. });
  29717. var isRuleBoolType = rules.find(function (val) {
  29718. return val.format && val.format === 'boolean' || val.format === 'bool';
  29719. });
  29720. // 输入类型为 number
  29721. if (!!isRuleNumType) {
  29722. if (!value && value !== 0) {
  29723. value = null;
  29724. } else {
  29725. value = isNumber(Number(value)) ? Number(value) : value;
  29726. }
  29727. }
  29728. // 输入类型为 boolean
  29729. if (!!isRuleBoolType) {
  29730. value = isBoolean(value) ? value : false;
  29731. }
  29732. return value;
  29733. };
  29734. /**
  29735. * 获取表单数据
  29736. * @param {String|Array} name 真实名称,需要使用 realName 获取
  29737. * @param {Object} data 原始数据
  29738. * @param {any} value 需要设置的值
  29739. */
  29740. exports.getValue = getValue;
  29741. var setDataValue = function setDataValue(field, formdata, value) {
  29742. formdata[field] = value;
  29743. return value || '';
  29744. };
  29745. /**
  29746. * 获取表单数据
  29747. * @param {String|Array} field 真实名称,需要使用 realName 获取
  29748. * @param {Object} data 原始数据
  29749. */
  29750. exports.setDataValue = setDataValue;
  29751. var getDataValue = function getDataValue(field, data) {
  29752. return objGet(data, field);
  29753. };
  29754. /**
  29755. * 获取表单类型
  29756. * @param {String|Array} field 真实名称,需要使用 realName 获取
  29757. */
  29758. exports.getDataValue = getDataValue;
  29759. var getDataValueType = function getDataValueType(field, data) {
  29760. var value = getDataValue(field, data);
  29761. return {
  29762. type: type(value),
  29763. value: value
  29764. };
  29765. };
  29766. /**
  29767. * 获取表单可用的真实name
  29768. * @param {String|Array} name 表单name
  29769. * @@return {String} 表单可用的真实name
  29770. */
  29771. exports.getDataValueType = getDataValueType;
  29772. var realName = function realName(name) {
  29773. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  29774. var base_name = _basePath(name);
  29775. if ((0, _typeof2.default)(base_name) === 'object' && Array.isArray(base_name) && base_name.length > 1) {
  29776. var realname = base_name.reduce(function (a, b) {
  29777. return a += "#".concat(b);
  29778. }, '_formdata_');
  29779. return realname;
  29780. }
  29781. return base_name[0] || name;
  29782. };
  29783. /**
  29784. * 判断是否表单可用的真实name
  29785. * @param {String|Array} name 表单name
  29786. * @@return {String} 表单可用的真实name
  29787. */
  29788. exports.realName = realName;
  29789. var isRealName = function isRealName(name) {
  29790. var reg = /^_formdata_#*/;
  29791. return reg.test(name);
  29792. };
  29793. /**
  29794. * 获取表单数据的原始格式
  29795. * @@return {Object|Array} object 需要解析的数据
  29796. */
  29797. exports.isRealName = isRealName;
  29798. var rawData = function rawData() {
  29799. var object = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  29800. var name = arguments.length > 1 ? arguments[1] : undefined;
  29801. var newData = JSON.parse(JSON.stringify(object));
  29802. var formData = {};
  29803. for (var i in newData) {
  29804. var path = name2arr(i);
  29805. objSet(formData, path, newData[i]);
  29806. }
  29807. return formData;
  29808. };
  29809. /**
  29810. * 真实name还原为 array
  29811. * @param {*} name
  29812. */
  29813. exports.rawData = rawData;
  29814. var name2arr = function name2arr(name) {
  29815. var field = name.replace('_formdata_#', '');
  29816. field = field.split('#').map(function (v) {
  29817. return isNumber(v) ? Number(v) : v;
  29818. });
  29819. return field;
  29820. };
  29821. /**
  29822. * 对象中设置值
  29823. * @param {Object|Array} object 源数据
  29824. * @param {String| Array} path 'a.b.c' 或 ['a',0,'b','c']
  29825. * @param {String} value 需要设置的值
  29826. */
  29827. exports.name2arr = name2arr;
  29828. var objSet = function objSet(object, path, value) {
  29829. if ((0, _typeof2.default)(object) !== 'object') return object;
  29830. _basePath(path).reduce(function (o, k, i, _) {
  29831. if (i === _.length - 1) {
  29832. // 若遍历结束直接赋值
  29833. o[k] = value;
  29834. return null;
  29835. } else if (k in o) {
  29836. // 若存在对应路径,则返回找到的对象,进行下一次遍历
  29837. return o[k];
  29838. } else {
  29839. // 若不存在对应路径,则创建对应对象,若下一路径是数字,新对象赋值为空数组,否则赋值为空对象
  29840. o[k] = /^[0-9]{1,}$/.test(_[i + 1]) ? [] : {};
  29841. return o[k];
  29842. }
  29843. }, object);
  29844. // 返回object
  29845. return object;
  29846. };
  29847. // 处理 path, path有三种形式:'a[0].b.c'、'a.0.b.c' 和 ['a','0','b','c'],需要统一处理成数组,便于后续使用
  29848. exports.objSet = objSet;
  29849. function _basePath(path) {
  29850. // 若是数组,则直接返回
  29851. if (Array.isArray(path)) return path;
  29852. // 若有 '[',']',则替换成将 '[' 替换成 '.',去掉 ']'
  29853. return path.replace(/\[/g, '.').replace(/\]/g, '').split('.');
  29854. }
  29855. /**
  29856. * 从对象中获取值
  29857. * @param {Object|Array} object 源数据
  29858. * @param {String| Array} path 'a.b.c' 或 ['a',0,'b','c']
  29859. * @param {String} defaultVal 如果无法从调用链中获取值的默认值
  29860. */
  29861. var objGet = function objGet(object, path) {
  29862. var defaultVal = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'undefined';
  29863. // 先将path处理成统一格式
  29864. var newPath = _basePath(path);
  29865. // 递归处理,返回最后结果
  29866. var val = newPath.reduce(function (o, k) {
  29867. return (o || {})[k];
  29868. }, object);
  29869. return !val || val !== undefined ? val : defaultVal;
  29870. };
  29871. /**
  29872. * 是否为 number 类型
  29873. * @param {any} num 需要判断的值
  29874. * @return {Boolean} 是否为 number
  29875. */
  29876. exports.objGet = objGet;
  29877. var isNumber = function isNumber(num) {
  29878. return !isNaN(Number(num));
  29879. };
  29880. /**
  29881. * 是否为 boolean 类型
  29882. * @param {any} bool 需要判断的值
  29883. * @return {Boolean} 是否为 boolean
  29884. */
  29885. exports.isNumber = isNumber;
  29886. var isBoolean = function isBoolean(bool) {
  29887. return typeof bool === 'boolean';
  29888. };
  29889. /**
  29890. * 是否有必填字段
  29891. * @param {Object} rules 规则
  29892. * @return {Boolean} 是否有必填字段
  29893. */
  29894. exports.isBoolean = isBoolean;
  29895. var isRequiredField = function isRequiredField(rules) {
  29896. var isNoField = false;
  29897. for (var i = 0; i < rules.length; i++) {
  29898. var ruleData = rules[i];
  29899. if (ruleData.required) {
  29900. isNoField = true;
  29901. break;
  29902. }
  29903. }
  29904. return isNoField;
  29905. };
  29906. /**
  29907. * 获取数据类型
  29908. * @param {Any} obj 需要获取数据类型的值
  29909. */
  29910. exports.isRequiredField = isRequiredField;
  29911. var type = function type(obj) {
  29912. var class2type = {};
  29913. // 生成class2type映射
  29914. "Boolean Number String Function Array Date RegExp Object Error".split(" ").map(function (item, index) {
  29915. class2type["[object " + item + "]"] = item.toLowerCase();
  29916. });
  29917. if (obj == null) {
  29918. return obj + "";
  29919. }
  29920. return (0, _typeof2.default)(obj) === "object" || typeof obj === "function" ? class2type[Object.prototype.toString.call(obj)] || "object" : (0, _typeof2.default)(obj);
  29921. };
  29922. /**
  29923. * 判断两个值是否相等
  29924. * @param {any} a 值
  29925. * @param {any} b 值
  29926. * @return {Boolean} 是否相等
  29927. */
  29928. exports.type = type;
  29929. var isEqual = function isEqual(a, b) {
  29930. //如果a和b本来就全等
  29931. if (a === b) {
  29932. //判断是否为0和-0
  29933. return a !== 0 || 1 / a === 1 / b;
  29934. }
  29935. //判断是否为null和undefined
  29936. if (a == null || b == null) {
  29937. return a === b;
  29938. }
  29939. //接下来判断a和b的数据类型
  29940. var classNameA = toString.call(a),
  29941. classNameB = toString.call(b);
  29942. //如果数据类型不相等,则返回false
  29943. if (classNameA !== classNameB) {
  29944. return false;
  29945. }
  29946. //如果数据类型相等,再根据不同数据类型分别判断
  29947. switch (classNameA) {
  29948. case '[object RegExp]':
  29949. case '[object String]':
  29950. //进行字符串转换比较
  29951. return '' + a === '' + b;
  29952. case '[object Number]':
  29953. //进行数字转换比较,判断是否为NaN
  29954. if (+a !== +a) {
  29955. return +b !== +b;
  29956. }
  29957. //判断是否为0或-0
  29958. return +a === 0 ? 1 / +a === 1 / b : +a === +b;
  29959. case '[object Date]':
  29960. case '[object Boolean]':
  29961. return +a === +b;
  29962. }
  29963. //如果是对象类型
  29964. if (classNameA == '[object Object]') {
  29965. //获取a和b的属性长度
  29966. var propsA = Object.getOwnPropertyNames(a),
  29967. propsB = Object.getOwnPropertyNames(b);
  29968. if (propsA.length != propsB.length) {
  29969. return false;
  29970. }
  29971. for (var i = 0; i < propsA.length; i++) {
  29972. var propName = propsA[i];
  29973. //如果对应属性对应值不相等,则返回false
  29974. if (a[propName] !== b[propName]) {
  29975. return false;
  29976. }
  29977. }
  29978. return true;
  29979. }
  29980. //如果是数组类型
  29981. if (classNameA == '[object Array]') {
  29982. if (a.toString() == b.toString()) {
  29983. return true;
  29984. }
  29985. return false;
  29986. }
  29987. };
  29988. exports.isEqual = isEqual;
  29989. /***/ }),
  29990. /* 352 */,
  29991. /* 353 */,
  29992. /* 354 */,
  29993. /* 355 */,
  29994. /* 356 */,
  29995. /* 357 */,
  29996. /* 358 */,
  29997. /* 359 */,
  29998. /* 360 */,
  29999. /* 361 */,
  30000. /* 362 */,
  30001. /* 363 */,
  30002. /* 364 */,
  30003. /* 365 */,
  30004. /* 366 */,
  30005. /* 367 */,
  30006. /* 368 */,
  30007. /* 369 */,
  30008. /* 370 */,
  30009. /* 371 */,
  30010. /* 372 */,
  30011. /* 373 */
  30012. /*!************************************************************************************!*\
  30013. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/uni-cloud/dist/index.js ***!
  30014. \************************************************************************************/
  30015. /*! no static exports found */
  30016. /***/ (function(module, exports, __webpack_require__) {
  30017. "use strict";
  30018. /* WEBPACK VAR INJECTION */(function(global, uni, wx) {
  30019. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  30020. Object.defineProperty(exports, "__esModule", {
  30021. value: true
  30022. });
  30023. exports.default = void 0;
  30024. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 35));
  30025. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  30026. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  30027. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  30028. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 37));
  30029. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  30030. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  30031. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  30032. var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ 347));
  30033. var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ 348));
  30034. var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ 350));
  30035. var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ 374));
  30036. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 22);
  30037. var _pages = _interopRequireDefault(__webpack_require__(/*! @/pages.json */ 376));
  30038. function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e33) { throw _e33; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e34) { didErr = true; err = _e34; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
  30039. function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
  30040. function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
  30041. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  30042. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  30043. function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
  30044. function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
  30045. "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self && self;
  30046. function n(e) {
  30047. return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
  30048. }
  30049. function s(e, t, n) {
  30050. return e(n = {
  30051. path: t,
  30052. exports: {},
  30053. require: function require(e, t) {
  30054. return function () {
  30055. throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
  30056. }(null == t && n.path);
  30057. }
  30058. }, n.exports), n.exports;
  30059. }
  30060. var r = s(function (e, t) {
  30061. var n;
  30062. e.exports = (n = n || function (e, t) {
  30063. var n = Object.create || function () {
  30064. function e() {}
  30065. return function (t) {
  30066. var n;
  30067. return e.prototype = t, n = new e(), e.prototype = null, n;
  30068. };
  30069. }(),
  30070. s = {},
  30071. r = s.lib = {},
  30072. i = r.Base = {
  30073. extend: function extend(e) {
  30074. var t = n(this);
  30075. return e && t.mixIn(e), t.hasOwnProperty("init") && this.init !== t.init || (t.init = function () {
  30076. t.$super.init.apply(this, arguments);
  30077. }), t.init.prototype = t, t.$super = this, t;
  30078. },
  30079. create: function create() {
  30080. var e = this.extend();
  30081. return e.init.apply(e, arguments), e;
  30082. },
  30083. init: function init() {},
  30084. mixIn: function mixIn(e) {
  30085. for (var t in e) {
  30086. e.hasOwnProperty(t) && (this[t] = e[t]);
  30087. }
  30088. e.hasOwnProperty("toString") && (this.toString = e.toString);
  30089. },
  30090. clone: function clone() {
  30091. return this.init.prototype.extend(this);
  30092. }
  30093. },
  30094. o = r.WordArray = i.extend({
  30095. init: function init(e, n) {
  30096. e = this.words = e || [], this.sigBytes = n != t ? n : 4 * e.length;
  30097. },
  30098. toString: function toString(e) {
  30099. return (e || c).stringify(this);
  30100. },
  30101. concat: function concat(e) {
  30102. var t = this.words,
  30103. n = e.words,
  30104. s = this.sigBytes,
  30105. r = e.sigBytes;
  30106. if (this.clamp(), s % 4) for (var i = 0; i < r; i++) {
  30107. var o = n[i >>> 2] >>> 24 - i % 4 * 8 & 255;
  30108. t[s + i >>> 2] |= o << 24 - (s + i) % 4 * 8;
  30109. } else for (i = 0; i < r; i += 4) {
  30110. t[s + i >>> 2] = n[i >>> 2];
  30111. }
  30112. return this.sigBytes += r, this;
  30113. },
  30114. clamp: function clamp() {
  30115. var t = this.words,
  30116. n = this.sigBytes;
  30117. t[n >>> 2] &= 4294967295 << 32 - n % 4 * 8, t.length = e.ceil(n / 4);
  30118. },
  30119. clone: function clone() {
  30120. var e = i.clone.call(this);
  30121. return e.words = this.words.slice(0), e;
  30122. },
  30123. random: function random(t) {
  30124. for (var n, s = [], r = function r(t) {
  30125. t = t;
  30126. var n = 987654321,
  30127. s = 4294967295;
  30128. return function () {
  30129. var r = ((n = 36969 * (65535 & n) + (n >> 16) & s) << 16) + (t = 18e3 * (65535 & t) + (t >> 16) & s) & s;
  30130. return r /= 4294967296, (r += .5) * (e.random() > .5 ? 1 : -1);
  30131. };
  30132. }, i = 0; i < t; i += 4) {
  30133. var a = r(4294967296 * (n || e.random()));
  30134. n = 987654071 * a(), s.push(4294967296 * a() | 0);
  30135. }
  30136. return new o.init(s, t);
  30137. }
  30138. }),
  30139. a = s.enc = {},
  30140. c = a.Hex = {
  30141. stringify: function stringify(e) {
  30142. for (var t = e.words, n = e.sigBytes, s = [], r = 0; r < n; r++) {
  30143. var i = t[r >>> 2] >>> 24 - r % 4 * 8 & 255;
  30144. s.push((i >>> 4).toString(16)), s.push((15 & i).toString(16));
  30145. }
  30146. return s.join("");
  30147. },
  30148. parse: function parse(e) {
  30149. for (var t = e.length, n = [], s = 0; s < t; s += 2) {
  30150. n[s >>> 3] |= parseInt(e.substr(s, 2), 16) << 24 - s % 8 * 4;
  30151. }
  30152. return new o.init(n, t / 2);
  30153. }
  30154. },
  30155. u = a.Latin1 = {
  30156. stringify: function stringify(e) {
  30157. for (var t = e.words, n = e.sigBytes, s = [], r = 0; r < n; r++) {
  30158. var i = t[r >>> 2] >>> 24 - r % 4 * 8 & 255;
  30159. s.push(String.fromCharCode(i));
  30160. }
  30161. return s.join("");
  30162. },
  30163. parse: function parse(e) {
  30164. for (var t = e.length, n = [], s = 0; s < t; s++) {
  30165. n[s >>> 2] |= (255 & e.charCodeAt(s)) << 24 - s % 4 * 8;
  30166. }
  30167. return new o.init(n, t);
  30168. }
  30169. },
  30170. l = a.Utf8 = {
  30171. stringify: function stringify(e) {
  30172. try {
  30173. return decodeURIComponent(escape(u.stringify(e)));
  30174. } catch (e) {
  30175. throw new Error("Malformed UTF-8 data");
  30176. }
  30177. },
  30178. parse: function parse(e) {
  30179. return u.parse(unescape(encodeURIComponent(e)));
  30180. }
  30181. },
  30182. h = r.BufferedBlockAlgorithm = i.extend({
  30183. reset: function reset() {
  30184. this._data = new o.init(), this._nDataBytes = 0;
  30185. },
  30186. _append: function _append(e) {
  30187. "string" == typeof e && (e = l.parse(e)), this._data.concat(e), this._nDataBytes += e.sigBytes;
  30188. },
  30189. _process: function _process(t) {
  30190. var n = this._data,
  30191. s = n.words,
  30192. r = n.sigBytes,
  30193. i = this.blockSize,
  30194. a = r / (4 * i),
  30195. c = (a = t ? e.ceil(a) : e.max((0 | a) - this._minBufferSize, 0)) * i,
  30196. u = e.min(4 * c, r);
  30197. if (c) {
  30198. for (var l = 0; l < c; l += i) {
  30199. this._doProcessBlock(s, l);
  30200. }
  30201. var h = s.splice(0, c);
  30202. n.sigBytes -= u;
  30203. }
  30204. return new o.init(h, u);
  30205. },
  30206. clone: function clone() {
  30207. var e = i.clone.call(this);
  30208. return e._data = this._data.clone(), e;
  30209. },
  30210. _minBufferSize: 0
  30211. });
  30212. r.Hasher = h.extend({
  30213. cfg: i.extend(),
  30214. init: function init(e) {
  30215. this.cfg = this.cfg.extend(e), this.reset();
  30216. },
  30217. reset: function reset() {
  30218. h.reset.call(this), this._doReset();
  30219. },
  30220. update: function update(e) {
  30221. return this._append(e), this._process(), this;
  30222. },
  30223. finalize: function finalize(e) {
  30224. return e && this._append(e), this._doFinalize();
  30225. },
  30226. blockSize: 16,
  30227. _createHelper: function _createHelper(e) {
  30228. return function (t, n) {
  30229. return new e.init(n).finalize(t);
  30230. };
  30231. },
  30232. _createHmacHelper: function _createHmacHelper(e) {
  30233. return function (t, n) {
  30234. return new d.HMAC.init(e, n).finalize(t);
  30235. };
  30236. }
  30237. });
  30238. var d = s.algo = {};
  30239. return s;
  30240. }(Math), n);
  30241. }),
  30242. i = r,
  30243. o = (s(function (e, t) {
  30244. var n;
  30245. e.exports = (n = i, function (e) {
  30246. var t = n,
  30247. s = t.lib,
  30248. r = s.WordArray,
  30249. i = s.Hasher,
  30250. o = t.algo,
  30251. a = [];
  30252. !function () {
  30253. for (var t = 0; t < 64; t++) {
  30254. a[t] = 4294967296 * e.abs(e.sin(t + 1)) | 0;
  30255. }
  30256. }();
  30257. var c = o.MD5 = i.extend({
  30258. _doReset: function _doReset() {
  30259. this._hash = new r.init([1732584193, 4023233417, 2562383102, 271733878]);
  30260. },
  30261. _doProcessBlock: function _doProcessBlock(e, t) {
  30262. for (var n = 0; n < 16; n++) {
  30263. var s = t + n,
  30264. r = e[s];
  30265. e[s] = 16711935 & (r << 8 | r >>> 24) | 4278255360 & (r << 24 | r >>> 8);
  30266. }
  30267. var i = this._hash.words,
  30268. o = e[t + 0],
  30269. c = e[t + 1],
  30270. f = e[t + 2],
  30271. p = e[t + 3],
  30272. g = e[t + 4],
  30273. m = e[t + 5],
  30274. y = e[t + 6],
  30275. _ = e[t + 7],
  30276. w = e[t + 8],
  30277. v = e[t + 9],
  30278. S = e[t + 10],
  30279. k = e[t + 11],
  30280. I = e[t + 12],
  30281. b = e[t + 13],
  30282. T = e[t + 14],
  30283. A = e[t + 15],
  30284. C = i[0],
  30285. P = i[1],
  30286. E = i[2],
  30287. O = i[3];
  30288. C = u(C, P, E, O, o, 7, a[0]), O = u(O, C, P, E, c, 12, a[1]), E = u(E, O, C, P, f, 17, a[2]), P = u(P, E, O, C, p, 22, a[3]), C = u(C, P, E, O, g, 7, a[4]), O = u(O, C, P, E, m, 12, a[5]), E = u(E, O, C, P, y, 17, a[6]), P = u(P, E, O, C, _, 22, a[7]), C = u(C, P, E, O, w, 7, a[8]), O = u(O, C, P, E, v, 12, a[9]), E = u(E, O, C, P, S, 17, a[10]), P = u(P, E, O, C, k, 22, a[11]), C = u(C, P, E, O, I, 7, a[12]), O = u(O, C, P, E, b, 12, a[13]), E = u(E, O, C, P, T, 17, a[14]), C = l(C, P = u(P, E, O, C, A, 22, a[15]), E, O, c, 5, a[16]), O = l(O, C, P, E, y, 9, a[17]), E = l(E, O, C, P, k, 14, a[18]), P = l(P, E, O, C, o, 20, a[19]), C = l(C, P, E, O, m, 5, a[20]), O = l(O, C, P, E, S, 9, a[21]), E = l(E, O, C, P, A, 14, a[22]), P = l(P, E, O, C, g, 20, a[23]), C = l(C, P, E, O, v, 5, a[24]), O = l(O, C, P, E, T, 9, a[25]), E = l(E, O, C, P, p, 14, a[26]), P = l(P, E, O, C, w, 20, a[27]), C = l(C, P, E, O, b, 5, a[28]), O = l(O, C, P, E, f, 9, a[29]), E = l(E, O, C, P, _, 14, a[30]), C = h(C, P = l(P, E, O, C, I, 20, a[31]), E, O, m, 4, a[32]), O = h(O, C, P, E, w, 11, a[33]), E = h(E, O, C, P, k, 16, a[34]), P = h(P, E, O, C, T, 23, a[35]), C = h(C, P, E, O, c, 4, a[36]), O = h(O, C, P, E, g, 11, a[37]), E = h(E, O, C, P, _, 16, a[38]), P = h(P, E, O, C, S, 23, a[39]), C = h(C, P, E, O, b, 4, a[40]), O = h(O, C, P, E, o, 11, a[41]), E = h(E, O, C, P, p, 16, a[42]), P = h(P, E, O, C, y, 23, a[43]), C = h(C, P, E, O, v, 4, a[44]), O = h(O, C, P, E, I, 11, a[45]), E = h(E, O, C, P, A, 16, a[46]), C = d(C, P = h(P, E, O, C, f, 23, a[47]), E, O, o, 6, a[48]), O = d(O, C, P, E, _, 10, a[49]), E = d(E, O, C, P, T, 15, a[50]), P = d(P, E, O, C, m, 21, a[51]), C = d(C, P, E, O, I, 6, a[52]), O = d(O, C, P, E, p, 10, a[53]), E = d(E, O, C, P, S, 15, a[54]), P = d(P, E, O, C, c, 21, a[55]), C = d(C, P, E, O, w, 6, a[56]), O = d(O, C, P, E, A, 10, a[57]), E = d(E, O, C, P, y, 15, a[58]), P = d(P, E, O, C, b, 21, a[59]), C = d(C, P, E, O, g, 6, a[60]), O = d(O, C, P, E, k, 10, a[61]), E = d(E, O, C, P, f, 15, a[62]), P = d(P, E, O, C, v, 21, a[63]), i[0] = i[0] + C | 0, i[1] = i[1] + P | 0, i[2] = i[2] + E | 0, i[3] = i[3] + O | 0;
  30289. },
  30290. _doFinalize: function _doFinalize() {
  30291. var t = this._data,
  30292. n = t.words,
  30293. s = 8 * this._nDataBytes,
  30294. r = 8 * t.sigBytes;
  30295. n[r >>> 5] |= 128 << 24 - r % 32;
  30296. var i = e.floor(s / 4294967296),
  30297. o = s;
  30298. n[15 + (r + 64 >>> 9 << 4)] = 16711935 & (i << 8 | i >>> 24) | 4278255360 & (i << 24 | i >>> 8), n[14 + (r + 64 >>> 9 << 4)] = 16711935 & (o << 8 | o >>> 24) | 4278255360 & (o << 24 | o >>> 8), t.sigBytes = 4 * (n.length + 1), this._process();
  30299. for (var a = this._hash, c = a.words, u = 0; u < 4; u++) {
  30300. var l = c[u];
  30301. c[u] = 16711935 & (l << 8 | l >>> 24) | 4278255360 & (l << 24 | l >>> 8);
  30302. }
  30303. return a;
  30304. },
  30305. clone: function clone() {
  30306. var e = i.clone.call(this);
  30307. return e._hash = this._hash.clone(), e;
  30308. }
  30309. });
  30310. function u(e, t, n, s, r, i, o) {
  30311. var a = e + (t & n | ~t & s) + r + o;
  30312. return (a << i | a >>> 32 - i) + t;
  30313. }
  30314. function l(e, t, n, s, r, i, o) {
  30315. var a = e + (t & s | n & ~s) + r + o;
  30316. return (a << i | a >>> 32 - i) + t;
  30317. }
  30318. function h(e, t, n, s, r, i, o) {
  30319. var a = e + (t ^ n ^ s) + r + o;
  30320. return (a << i | a >>> 32 - i) + t;
  30321. }
  30322. function d(e, t, n, s, r, i, o) {
  30323. var a = e + (n ^ (t | ~s)) + r + o;
  30324. return (a << i | a >>> 32 - i) + t;
  30325. }
  30326. t.MD5 = i._createHelper(c), t.HmacMD5 = i._createHmacHelper(c);
  30327. }(Math), n.MD5);
  30328. }), s(function (e, t) {
  30329. var n;
  30330. e.exports = (n = i, void function () {
  30331. var e = n,
  30332. t = e.lib.Base,
  30333. s = e.enc.Utf8;
  30334. e.algo.HMAC = t.extend({
  30335. init: function init(e, t) {
  30336. e = this._hasher = new e.init(), "string" == typeof t && (t = s.parse(t));
  30337. var n = e.blockSize,
  30338. r = 4 * n;
  30339. t.sigBytes > r && (t = e.finalize(t)), t.clamp();
  30340. for (var i = this._oKey = t.clone(), o = this._iKey = t.clone(), a = i.words, c = o.words, u = 0; u < n; u++) {
  30341. a[u] ^= 1549556828, c[u] ^= 909522486;
  30342. }
  30343. i.sigBytes = o.sigBytes = r, this.reset();
  30344. },
  30345. reset: function reset() {
  30346. var e = this._hasher;
  30347. e.reset(), e.update(this._iKey);
  30348. },
  30349. update: function update(e) {
  30350. return this._hasher.update(e), this;
  30351. },
  30352. finalize: function finalize(e) {
  30353. var t = this._hasher,
  30354. n = t.finalize(e);
  30355. return t.reset(), t.finalize(this._oKey.clone().concat(n));
  30356. }
  30357. });
  30358. }());
  30359. }), s(function (e, t) {
  30360. e.exports = i.HmacMD5;
  30361. })),
  30362. a = s(function (e, t) {
  30363. e.exports = i.enc.Utf8;
  30364. }),
  30365. c = s(function (e, t) {
  30366. var n;
  30367. e.exports = (n = i, function () {
  30368. var e = n,
  30369. t = e.lib.WordArray;
  30370. function s(e, n, s) {
  30371. for (var r = [], i = 0, o = 0; o < n; o++) {
  30372. if (o % 4) {
  30373. var a = s[e.charCodeAt(o - 1)] << o % 4 * 2,
  30374. c = s[e.charCodeAt(o)] >>> 6 - o % 4 * 2;
  30375. r[i >>> 2] |= (a | c) << 24 - i % 4 * 8, i++;
  30376. }
  30377. }
  30378. return t.create(r, i);
  30379. }
  30380. e.enc.Base64 = {
  30381. stringify: function stringify(e) {
  30382. var t = e.words,
  30383. n = e.sigBytes,
  30384. s = this._map;
  30385. e.clamp();
  30386. for (var r = [], i = 0; i < n; i += 3) {
  30387. for (var o = (t[i >>> 2] >>> 24 - i % 4 * 8 & 255) << 16 | (t[i + 1 >>> 2] >>> 24 - (i + 1) % 4 * 8 & 255) << 8 | t[i + 2 >>> 2] >>> 24 - (i + 2) % 4 * 8 & 255, a = 0; a < 4 && i + .75 * a < n; a++) {
  30388. r.push(s.charAt(o >>> 6 * (3 - a) & 63));
  30389. }
  30390. }
  30391. var c = s.charAt(64);
  30392. if (c) for (; r.length % 4;) {
  30393. r.push(c);
  30394. }
  30395. return r.join("");
  30396. },
  30397. parse: function parse(e) {
  30398. var t = e.length,
  30399. n = this._map,
  30400. r = this._reverseMap;
  30401. if (!r) {
  30402. r = this._reverseMap = [];
  30403. for (var i = 0; i < n.length; i++) {
  30404. r[n.charCodeAt(i)] = i;
  30405. }
  30406. }
  30407. var o = n.charAt(64);
  30408. if (o) {
  30409. var a = e.indexOf(o);
  30410. -1 !== a && (t = a);
  30411. }
  30412. return s(e, t, r);
  30413. },
  30414. _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
  30415. };
  30416. }(), n.enc.Base64);
  30417. });
  30418. var u = "FUNCTION",
  30419. l = "OBJECT",
  30420. h = "CLIENT_DB";
  30421. function d(e) {
  30422. return Object.prototype.toString.call(e).slice(8, -1).toLowerCase();
  30423. }
  30424. function f(e) {
  30425. return "object" === d(e);
  30426. }
  30427. function p(e) {
  30428. return "function" == typeof e;
  30429. }
  30430. function g(e) {
  30431. return function () {
  30432. try {
  30433. return e.apply(e, arguments);
  30434. } catch (e) {
  30435. console.error(e);
  30436. }
  30437. };
  30438. }
  30439. function m(e) {
  30440. return e && "string" == typeof e ? JSON.parse(e) : e;
  30441. }
  30442. var y = "development" === "development",
  30443. _ = "mp-weixin",
  30444. w = "true" === undefined || !0 === undefined,
  30445. v = m([]),
  30446. S = "h5" === _ ? "web" : "app-plus" === _ ? "app" : _,
  30447. k = m(undefined),
  30448. I = m([]) || [],
  30449. b = true;
  30450. var T = "";
  30451. try {
  30452. {
  30453. var _e2 = __webpack_require__(/*! uni-stat-config */ 377).default || __webpack_require__(/*! uni-stat-config */ 377);
  30454. T = _e2.appid;
  30455. }
  30456. } catch (e) {}
  30457. var A = {};
  30458. function C(e) {
  30459. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  30460. var n, s;
  30461. return n = A, s = e, Object.prototype.hasOwnProperty.call(n, s) || (A[e] = t), A[e];
  30462. }
  30463. "app" === S && (A = uni._globalUniCloudObj ? uni._globalUniCloudObj : uni._globalUniCloudObj = {});
  30464. var P = ["invoke", "success", "fail", "complete"],
  30465. E = C("_globalUniCloudInterceptor");
  30466. function O(e, t) {
  30467. E[e] || (E[e] = {}), f(t) && Object.keys(t).forEach(function (n) {
  30468. P.indexOf(n) > -1 && function (e, t, n) {
  30469. var s = E[e][t];
  30470. s || (s = E[e][t] = []), -1 === s.indexOf(n) && p(n) && s.push(n);
  30471. }(e, n, t[n]);
  30472. });
  30473. }
  30474. function x(e, t) {
  30475. E[e] || (E[e] = {}), f(t) ? Object.keys(t).forEach(function (n) {
  30476. P.indexOf(n) > -1 && function (e, t, n) {
  30477. var s = E[e][t];
  30478. if (!s) return;
  30479. var r = s.indexOf(n);
  30480. r > -1 && s.splice(r, 1);
  30481. }(e, n, t[n]);
  30482. }) : delete E[e];
  30483. }
  30484. function U(e, t) {
  30485. return e && 0 !== e.length ? e.reduce(function (e, n) {
  30486. return e.then(function () {
  30487. return n(t);
  30488. });
  30489. }, Promise.resolve()) : Promise.resolve();
  30490. }
  30491. function R(e, t) {
  30492. return E[e] && E[e][t] || [];
  30493. }
  30494. function L(e) {
  30495. O("callObject", e);
  30496. }
  30497. var N = C("_globalUniCloudListener"),
  30498. D = "response",
  30499. F = "needLogin",
  30500. q = "refreshToken",
  30501. K = "clientdb",
  30502. j = "cloudfunction",
  30503. M = "cloudobject";
  30504. function B(e) {
  30505. return N[e] || (N[e] = []), N[e];
  30506. }
  30507. function $(e, t) {
  30508. var n = B(e);
  30509. n.includes(t) || n.push(t);
  30510. }
  30511. function W(e, t) {
  30512. var n = B(e),
  30513. s = n.indexOf(t);
  30514. -1 !== s && n.splice(s, 1);
  30515. }
  30516. function z(e, t) {
  30517. var n = B(e);
  30518. for (var _e3 = 0; _e3 < n.length; _e3++) {
  30519. (0, n[_e3])(t);
  30520. }
  30521. }
  30522. var J,
  30523. H = !1;
  30524. function G() {
  30525. return J || (J = new Promise(function (e) {
  30526. H && e(), function t() {
  30527. if ("function" == typeof getCurrentPages) {
  30528. var _t2 = getCurrentPages();
  30529. _t2 && _t2[0] && (H = !0, e());
  30530. }
  30531. H || setTimeout(function () {
  30532. t();
  30533. }, 30);
  30534. }();
  30535. }), J);
  30536. }
  30537. function V(e) {
  30538. var t = {};
  30539. for (var _n2 in e) {
  30540. var _s2 = e[_n2];
  30541. p(_s2) && (t[_n2] = g(_s2));
  30542. }
  30543. return t;
  30544. }
  30545. function Y(e, t) {
  30546. return t ? function (n) {
  30547. var _this = this;
  30548. var s = !1;
  30549. if ("callFunction" === t) {
  30550. var _e4 = n && n.type || u;
  30551. s = _e4 !== u;
  30552. }
  30553. var r = "callFunction" === t && !s;
  30554. var i;
  30555. i = this.isReady ? Promise.resolve() : this.initUniCloud, n = n || {};
  30556. var _V = V(n),
  30557. o = _V.success,
  30558. a = _V.fail,
  30559. c = _V.complete,
  30560. l = i.then(function () {
  30561. return s ? Promise.resolve() : U(R(t, "invoke"), n);
  30562. }).then(function () {
  30563. return e.call(_this, n);
  30564. }).then(function (e) {
  30565. return s ? Promise.resolve(e) : U(R(t, "success"), e).then(function () {
  30566. return U(R(t, "complete"), e);
  30567. }).then(function () {
  30568. return r && z(D, {
  30569. type: j,
  30570. content: e
  30571. }), Promise.resolve(e);
  30572. });
  30573. }, function (e) {
  30574. return s ? Promise.reject(e) : U(R(t, "fail"), e).then(function () {
  30575. return U(R(t, "complete"), e);
  30576. }).then(function () {
  30577. return z(D, {
  30578. type: j,
  30579. content: e
  30580. }), Promise.reject(e);
  30581. });
  30582. });
  30583. if (!(o || a || c)) return l;
  30584. l.then(function (e) {
  30585. o && o(e), c && c(e), r && z(D, {
  30586. type: j,
  30587. content: e
  30588. });
  30589. }, function (e) {
  30590. a && a(e), c && c(e), r && z(D, {
  30591. type: j,
  30592. content: e
  30593. });
  30594. });
  30595. } : function (t) {
  30596. t = t || {};
  30597. var _V2 = V(t),
  30598. n = _V2.success,
  30599. s = _V2.fail,
  30600. r = _V2.complete;
  30601. if (!(n || s || r)) return e.call(this, t);
  30602. e.call(this, t).then(function (e) {
  30603. n && n(e), r && r(e);
  30604. }, function (e) {
  30605. s && s(e), r && r(e);
  30606. });
  30607. };
  30608. }
  30609. var Q = /*#__PURE__*/function (_Error) {
  30610. (0, _inherits2.default)(Q, _Error);
  30611. var _super = _createSuper(Q);
  30612. function Q(e) {
  30613. var _this2;
  30614. (0, _classCallCheck2.default)(this, Q);
  30615. _this2 = _super.call(this, e.message), _this2.errMsg = e.message || e.errMsg || "unknown system error", _this2.code = _this2.errCode = e.code || e.errCode || "SYSTEM_ERROR", _this2.errSubject = _this2.subject = e.subject || e.errSubject, _this2.cause = e.cause, _this2.requestId = e.requestId;
  30616. return _this2;
  30617. }
  30618. (0, _createClass2.default)(Q, [{
  30619. key: "toJson",
  30620. value: function toJson() {
  30621. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  30622. if (!(e >= 10)) return e++, {
  30623. errCode: this.errCode,
  30624. errMsg: this.errMsg,
  30625. errSubject: this.errSubject,
  30626. cause: this.cause && this.cause.toJson ? this.cause.toJson(e) : this.cause
  30627. };
  30628. }
  30629. }]);
  30630. return Q;
  30631. }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
  30632. var X = {
  30633. request: function request(e) {
  30634. return uni.request(e);
  30635. },
  30636. uploadFile: function uploadFile(e) {
  30637. return uni.uploadFile(e);
  30638. },
  30639. setStorageSync: function setStorageSync(e, t) {
  30640. return uni.setStorageSync(e, t);
  30641. },
  30642. getStorageSync: function getStorageSync(e) {
  30643. return uni.getStorageSync(e);
  30644. },
  30645. removeStorageSync: function removeStorageSync(e) {
  30646. return uni.removeStorageSync(e);
  30647. },
  30648. clearStorageSync: function clearStorageSync() {
  30649. return uni.clearStorageSync();
  30650. }
  30651. };
  30652. function Z() {
  30653. return {
  30654. token: X.getStorageSync("uni_id_token") || X.getStorageSync("uniIdToken"),
  30655. tokenExpired: X.getStorageSync("uni_id_token_expired")
  30656. };
  30657. }
  30658. function ee() {
  30659. var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  30660. e = _ref.token,
  30661. t = _ref.tokenExpired;
  30662. e && X.setStorageSync("uni_id_token", e), t && X.setStorageSync("uni_id_token_expired", t);
  30663. }
  30664. function te() {
  30665. if (!y || "web" !== S) return;
  30666. uni.getStorageSync("__LAST_DCLOUD_APPID") !== T && (uni.setStorageSync("__LAST_DCLOUD_APPID", T), console.warn("检测到当前项目与上次运行到此端口的项目不一致,自动清理uni-id保存的token信息(仅开发调试时生效)"), X.removeStorageSync("uni_id_token"), X.removeStorageSync("uniIdToken"), X.removeStorageSync("uni_id_token_expired"));
  30667. }
  30668. var ne, se;
  30669. function re() {
  30670. return ne || (ne = uni.getSystemInfoSync()), ne;
  30671. }
  30672. function ie() {
  30673. var e, t;
  30674. try {
  30675. if (uni.getLaunchOptionsSync) {
  30676. if (uni.getLaunchOptionsSync.toString().indexOf("not yet implemented") > -1) return;
  30677. var _uni$getLaunchOptions = uni.getLaunchOptionsSync(),
  30678. _n3 = _uni$getLaunchOptions.scene,
  30679. _s3 = _uni$getLaunchOptions.channel;
  30680. e = _s3, t = _n3;
  30681. }
  30682. } catch (e) {}
  30683. return {
  30684. channel: e,
  30685. scene: t
  30686. };
  30687. }
  30688. function oe() {
  30689. var e = uni.getLocale && uni.getLocale() || "en";
  30690. if (se) return _objectSpread(_objectSpread({}, se), {}, {
  30691. locale: e,
  30692. LOCALE: e
  30693. });
  30694. var t = re(),
  30695. n = t.deviceId,
  30696. s = t.osName,
  30697. r = t.uniPlatform,
  30698. i = t.appId,
  30699. o = ["pixelRatio", "brand", "model", "system", "language", "version", "platform", "host", "SDKVersion", "swanNativeVersion", "app", "AppPlatform", "fontSizeSetting"];
  30700. for (var _e5 = 0; _e5 < o.length; _e5++) {
  30701. delete t[o[_e5]];
  30702. }
  30703. return se = _objectSpread(_objectSpread({
  30704. PLATFORM: r,
  30705. OS: s,
  30706. APPID: i,
  30707. DEVICEID: n
  30708. }, ie()), t), _objectSpread(_objectSpread({}, se), {}, {
  30709. locale: e,
  30710. LOCALE: e
  30711. });
  30712. }
  30713. var ae = {
  30714. sign: function sign(e, t) {
  30715. var n = "";
  30716. return Object.keys(e).sort().forEach(function (t) {
  30717. e[t] && (n = n + "&" + t + "=" + e[t]);
  30718. }), n = n.slice(1), o(n, t).toString();
  30719. },
  30720. wrappedRequest: function wrappedRequest(e, t) {
  30721. return new Promise(function (n, s) {
  30722. t(Object.assign(e, {
  30723. complete: function complete(e) {
  30724. e || (e = {}), y && "web" === S && e.errMsg && 0 === e.errMsg.indexOf("request:fail") && console.warn("发布H5,需要在uniCloud后台操作,绑定安全域名,否则会因为跨域问题而无法访问。教程参考:https://uniapp.dcloud.io/uniCloud/quickstart?id=useinh5");
  30725. var t = e.data && e.data.header && e.data.header["x-serverless-request-id"] || e.header && e.header["request-id"];
  30726. if (!e.statusCode || e.statusCode >= 400) return s(new Q({
  30727. code: "SYS_ERR",
  30728. message: e.errMsg || "request:fail",
  30729. requestId: t
  30730. }));
  30731. var r = e.data;
  30732. if (r.error) return s(new Q({
  30733. code: r.error.code,
  30734. message: r.error.message,
  30735. requestId: t
  30736. }));
  30737. r.result = r.data, r.requestId = t, delete r.data, n(r);
  30738. }
  30739. }));
  30740. });
  30741. },
  30742. toBase64: function toBase64(e) {
  30743. return c.stringify(a.parse(e));
  30744. }
  30745. },
  30746. ce = {
  30747. "uniCloud.init.paramRequired": "{param} required",
  30748. "uniCloud.uploadFile.fileError": "filePath should be instance of File"
  30749. };
  30750. var _e6 = (0, _uniI18n.initVueI18n)({
  30751. "zh-Hans": {
  30752. "uniCloud.init.paramRequired": "缺少参数:{param}",
  30753. "uniCloud.uploadFile.fileError": "filePath应为File对象"
  30754. },
  30755. "zh-Hant": {
  30756. "uniCloud.init.paramRequired": "缺少参数:{param}",
  30757. "uniCloud.uploadFile.fileError": "filePath应为File对象"
  30758. },
  30759. en: ce,
  30760. fr: {
  30761. "uniCloud.init.paramRequired": "{param} required",
  30762. "uniCloud.uploadFile.fileError": "filePath should be instance of File"
  30763. },
  30764. es: {
  30765. "uniCloud.init.paramRequired": "{param} required",
  30766. "uniCloud.uploadFile.fileError": "filePath should be instance of File"
  30767. },
  30768. ja: ce
  30769. }, "zh-Hans"),
  30770. ue = _e6.t;
  30771. var le = /*#__PURE__*/function () {
  30772. function le(e) {
  30773. (0, _classCallCheck2.default)(this, le);
  30774. ["spaceId", "clientSecret"].forEach(function (t) {
  30775. if (!Object.prototype.hasOwnProperty.call(e, t)) throw new Error(ue("uniCloud.init.paramRequired", {
  30776. param: t
  30777. }));
  30778. }), this.config = Object.assign({}, {
  30779. endpoint: "https://api.bspapp.com"
  30780. }, e), this.config.provider = "aliyun", this.config.requestUrl = this.config.endpoint + "/client", this.config.envType = this.config.envType || "public", this.config.accessTokenKey = "access_token_" + this.config.spaceId, this.adapter = X, this._getAccessTokenPromise = null, this._getAccessTokenPromiseStatus = null;
  30781. }
  30782. (0, _createClass2.default)(le, [{
  30783. key: "hasAccessToken",
  30784. get: function get() {
  30785. return !!this.accessToken;
  30786. }
  30787. }, {
  30788. key: "setAccessToken",
  30789. value: function setAccessToken(e) {
  30790. this.accessToken = e;
  30791. }
  30792. }, {
  30793. key: "requestWrapped",
  30794. value: function requestWrapped(e) {
  30795. return ae.wrappedRequest(e, this.adapter.request);
  30796. }
  30797. }, {
  30798. key: "requestAuth",
  30799. value: function requestAuth(e) {
  30800. return this.requestWrapped(e);
  30801. }
  30802. }, {
  30803. key: "request",
  30804. value: function request(e, t) {
  30805. var _this3 = this;
  30806. return Promise.resolve().then(function () {
  30807. return _this3.hasAccessToken ? t ? _this3.requestWrapped(e) : _this3.requestWrapped(e).catch(function (t) {
  30808. return new Promise(function (e, n) {
  30809. !t || "GATEWAY_INVALID_TOKEN" !== t.code && "InvalidParameter.InvalidToken" !== t.code ? n(t) : e();
  30810. }).then(function () {
  30811. return _this3.getAccessToken();
  30812. }).then(function () {
  30813. var t = _this3.rebuildRequest(e);
  30814. return _this3.request(t, !0);
  30815. });
  30816. }) : _this3.getAccessToken().then(function () {
  30817. var t = _this3.rebuildRequest(e);
  30818. return _this3.request(t, !0);
  30819. });
  30820. });
  30821. }
  30822. }, {
  30823. key: "rebuildRequest",
  30824. value: function rebuildRequest(e) {
  30825. var t = Object.assign({}, e);
  30826. return t.data.token = this.accessToken, t.header["x-basement-token"] = this.accessToken, t.header["x-serverless-sign"] = ae.sign(t.data, this.config.clientSecret), t;
  30827. }
  30828. }, {
  30829. key: "setupRequest",
  30830. value: function setupRequest(e, t) {
  30831. var n = Object.assign({}, e, {
  30832. spaceId: this.config.spaceId,
  30833. timestamp: Date.now()
  30834. }),
  30835. s = {
  30836. "Content-Type": "application/json"
  30837. };
  30838. return "auth" !== t && (n.token = this.accessToken, s["x-basement-token"] = this.accessToken), s["x-serverless-sign"] = ae.sign(n, this.config.clientSecret), {
  30839. url: this.config.requestUrl,
  30840. method: "POST",
  30841. data: n,
  30842. dataType: "json",
  30843. header: s
  30844. };
  30845. }
  30846. }, {
  30847. key: "getAccessToken",
  30848. value: function getAccessToken() {
  30849. var _this4 = this;
  30850. if ("pending" === this._getAccessTokenPromiseStatus) return this._getAccessTokenPromise;
  30851. this._getAccessTokenPromiseStatus = "pending";
  30852. return this._getAccessTokenPromise = this.requestAuth(this.setupRequest({
  30853. method: "serverless.auth.user.anonymousAuthorize",
  30854. params: "{}"
  30855. }, "auth")).then(function (e) {
  30856. return new Promise(function (t, n) {
  30857. e.result && e.result.accessToken ? (_this4.setAccessToken(e.result.accessToken), _this4._getAccessTokenPromiseStatus = "fulfilled", t(_this4.accessToken)) : (_this4._getAccessTokenPromiseStatus = "rejected", n(new Q({
  30858. code: "AUTH_FAILED",
  30859. message: "获取accessToken失败"
  30860. })));
  30861. });
  30862. }, function (e) {
  30863. return _this4._getAccessTokenPromiseStatus = "rejected", Promise.reject(e);
  30864. }), this._getAccessTokenPromise;
  30865. }
  30866. }, {
  30867. key: "authorize",
  30868. value: function authorize() {
  30869. this.getAccessToken();
  30870. }
  30871. }, {
  30872. key: "callFunction",
  30873. value: function callFunction(e) {
  30874. var t = {
  30875. method: "serverless.function.runtime.invoke",
  30876. params: JSON.stringify({
  30877. functionTarget: e.name,
  30878. functionArgs: e.data || {}
  30879. })
  30880. };
  30881. return this.request(this.setupRequest(t));
  30882. }
  30883. }, {
  30884. key: "getOSSUploadOptionsFromPath",
  30885. value: function getOSSUploadOptionsFromPath(e) {
  30886. var t = {
  30887. method: "serverless.file.resource.generateProximalSign",
  30888. params: JSON.stringify(e)
  30889. };
  30890. return this.request(this.setupRequest(t));
  30891. }
  30892. }, {
  30893. key: "uploadFileToOSS",
  30894. value: function uploadFileToOSS(_ref2) {
  30895. var _this5 = this;
  30896. var e = _ref2.url,
  30897. t = _ref2.formData,
  30898. n = _ref2.name,
  30899. s = _ref2.filePath,
  30900. r = _ref2.fileType,
  30901. i = _ref2.onUploadProgress;
  30902. return new Promise(function (o, a) {
  30903. var c = _this5.adapter.uploadFile({
  30904. url: e,
  30905. formData: t,
  30906. name: n,
  30907. filePath: s,
  30908. fileType: r,
  30909. header: {
  30910. "X-OSS-server-side-encrpytion": "AES256"
  30911. },
  30912. success: function success(e) {
  30913. e && e.statusCode < 400 ? o(e) : a(new Q({
  30914. code: "UPLOAD_FAILED",
  30915. message: "文件上传失败"
  30916. }));
  30917. },
  30918. fail: function fail(e) {
  30919. a(new Q({
  30920. code: e.code || "UPLOAD_FAILED",
  30921. message: e.message || e.errMsg || "文件上传失败"
  30922. }));
  30923. }
  30924. });
  30925. "function" == typeof i && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (e) {
  30926. i({
  30927. loaded: e.totalBytesSent,
  30928. total: e.totalBytesExpectedToSend
  30929. });
  30930. });
  30931. });
  30932. }
  30933. }, {
  30934. key: "reportOSSUpload",
  30935. value: function reportOSSUpload(e) {
  30936. var t = {
  30937. method: "serverless.file.resource.report",
  30938. params: JSON.stringify(e)
  30939. };
  30940. return this.request(this.setupRequest(t));
  30941. }
  30942. }, {
  30943. key: "uploadFile",
  30944. value: function () {
  30945. var _uploadFile = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(_ref3) {
  30946. var e, t, _ref3$fileType, n, s, r, i, o, a, c, u, l, h, f, p, g, m, y, _e7, _;
  30947. return _regenerator.default.wrap(function _callee$(_context) {
  30948. while (1) {
  30949. switch (_context.prev = _context.next) {
  30950. case 0:
  30951. e = _ref3.filePath, t = _ref3.cloudPath, _ref3$fileType = _ref3.fileType, n = _ref3$fileType === void 0 ? "image" : _ref3$fileType, s = _ref3.onUploadProgress, r = _ref3.config;
  30952. if (!("string" !== d(t))) {
  30953. _context.next = 3;
  30954. break;
  30955. }
  30956. throw new Q({
  30957. code: "INVALID_PARAM",
  30958. message: "cloudPath必须为字符串类型"
  30959. });
  30960. case 3:
  30961. if (t = t.trim()) {
  30962. _context.next = 5;
  30963. break;
  30964. }
  30965. throw new Q({
  30966. code: "CLOUDPATH_REQUIRED",
  30967. message: "cloudPath不可为空"
  30968. });
  30969. case 5:
  30970. if (!/:\/\//.test(t)) {
  30971. _context.next = 7;
  30972. break;
  30973. }
  30974. throw new Q({
  30975. code: "INVALID_PARAM",
  30976. message: "cloudPath不合法"
  30977. });
  30978. case 7:
  30979. i = r && r.envType || this.config.envType;
  30980. _context.next = 10;
  30981. return this.getOSSUploadOptionsFromPath({
  30982. env: i,
  30983. filename: t
  30984. });
  30985. case 10:
  30986. o = _context.sent.result;
  30987. a = "https://" + o.cdnDomain + "/" + o.ossPath;
  30988. c = o.securityToken;
  30989. u = o.accessKeyId;
  30990. l = o.signature;
  30991. h = o.host;
  30992. f = o.ossPath;
  30993. p = o.id;
  30994. g = o.policy;
  30995. m = o.ossCallbackUrl;
  30996. y = {
  30997. "Cache-Control": "max-age=2592000",
  30998. "Content-Disposition": "attachment",
  30999. OSSAccessKeyId: u,
  31000. Signature: l,
  31001. host: h,
  31002. id: p,
  31003. key: f,
  31004. policy: g,
  31005. success_action_status: 200
  31006. };
  31007. if (c && (y["x-oss-security-token"] = c), m) {
  31008. _e7 = JSON.stringify({
  31009. callbackUrl: m,
  31010. callbackBody: JSON.stringify({
  31011. fileId: p,
  31012. spaceId: this.config.spaceId
  31013. }),
  31014. callbackBodyType: "application/json"
  31015. });
  31016. y.callback = ae.toBase64(_e7);
  31017. }
  31018. _ = {
  31019. url: "https://" + o.host,
  31020. formData: y,
  31021. fileName: "file",
  31022. name: "file",
  31023. filePath: e,
  31024. fileType: n
  31025. };
  31026. _context.next = 25;
  31027. return this.uploadFileToOSS(Object.assign({}, _, {
  31028. onUploadProgress: s
  31029. }));
  31030. case 25:
  31031. if (!m) {
  31032. _context.next = 27;
  31033. break;
  31034. }
  31035. return _context.abrupt("return", {
  31036. success: !0,
  31037. filePath: e,
  31038. fileID: a
  31039. });
  31040. case 27:
  31041. _context.next = 29;
  31042. return this.reportOSSUpload({
  31043. id: p
  31044. });
  31045. case 29:
  31046. if (!_context.sent.success) {
  31047. _context.next = 31;
  31048. break;
  31049. }
  31050. return _context.abrupt("return", {
  31051. success: !0,
  31052. filePath: e,
  31053. fileID: a
  31054. });
  31055. case 31:
  31056. throw new Q({
  31057. code: "UPLOAD_FAILED",
  31058. message: "文件上传失败"
  31059. });
  31060. case 32:
  31061. case "end":
  31062. return _context.stop();
  31063. }
  31064. }
  31065. }, _callee, this);
  31066. }));
  31067. function uploadFile(_x) {
  31068. return _uploadFile.apply(this, arguments);
  31069. }
  31070. return uploadFile;
  31071. }()
  31072. }, {
  31073. key: "getTempFileURL",
  31074. value: function getTempFileURL() {
  31075. var _ref4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  31076. e = _ref4.fileList;
  31077. return new Promise(function (t, n) {
  31078. Array.isArray(e) && 0 !== e.length || n(new Q({
  31079. code: "INVALID_PARAM",
  31080. message: "fileList的元素必须是非空的字符串"
  31081. })), t({
  31082. fileList: e.map(function (e) {
  31083. return {
  31084. fileID: e,
  31085. tempFileURL: e
  31086. };
  31087. })
  31088. });
  31089. });
  31090. }
  31091. }, {
  31092. key: "getFileInfo",
  31093. value: function () {
  31094. var _getFileInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
  31095. var _ref5,
  31096. e,
  31097. t,
  31098. _args2 = arguments;
  31099. return _regenerator.default.wrap(function _callee2$(_context2) {
  31100. while (1) {
  31101. switch (_context2.prev = _context2.next) {
  31102. case 0:
  31103. _ref5 = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {}, e = _ref5.fileList;
  31104. if (!(!Array.isArray(e) || 0 === e.length)) {
  31105. _context2.next = 3;
  31106. break;
  31107. }
  31108. throw new Q({
  31109. code: "INVALID_PARAM",
  31110. message: "fileList的元素必须是非空的字符串"
  31111. });
  31112. case 3:
  31113. t = {
  31114. method: "serverless.file.resource.info",
  31115. params: JSON.stringify({
  31116. id: e.map(function (e) {
  31117. return e.split("?")[0];
  31118. }).join(",")
  31119. })
  31120. };
  31121. _context2.next = 6;
  31122. return this.request(this.setupRequest(t));
  31123. case 6:
  31124. _context2.t0 = _context2.sent.result;
  31125. return _context2.abrupt("return", {
  31126. fileList: _context2.t0
  31127. });
  31128. case 8:
  31129. case "end":
  31130. return _context2.stop();
  31131. }
  31132. }
  31133. }, _callee2, this);
  31134. }));
  31135. function getFileInfo() {
  31136. return _getFileInfo.apply(this, arguments);
  31137. }
  31138. return getFileInfo;
  31139. }()
  31140. }]);
  31141. return le;
  31142. }();
  31143. var he = {
  31144. init: function init(e) {
  31145. var t = new le(e),
  31146. n = {
  31147. signInAnonymously: function signInAnonymously() {
  31148. return t.authorize();
  31149. },
  31150. getLoginState: function getLoginState() {
  31151. return Promise.resolve(!1);
  31152. }
  31153. };
  31154. return t.auth = function () {
  31155. return n;
  31156. }, t.customAuth = t.auth, t;
  31157. }
  31158. };
  31159. var de = "undefined" != typeof location && "http:" === location.protocol ? "http:" : "https:";
  31160. var fe;
  31161. !function (e) {
  31162. e.local = "local", e.none = "none", e.session = "session";
  31163. }(fe || (fe = {}));
  31164. var pe = function pe() {};
  31165. var ge = function ge() {
  31166. var e;
  31167. if (!Promise) {
  31168. e = function e() {}, e.promise = {};
  31169. var _t3 = function _t3() {
  31170. throw new Q({
  31171. message: 'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'
  31172. });
  31173. };
  31174. return Object.defineProperty(e.promise, "then", {
  31175. get: _t3
  31176. }), Object.defineProperty(e.promise, "catch", {
  31177. get: _t3
  31178. }), e;
  31179. }
  31180. var t = new Promise(function (t, n) {
  31181. e = function e(_e8, s) {
  31182. return _e8 ? n(_e8) : t(s);
  31183. };
  31184. });
  31185. return e.promise = t, e;
  31186. };
  31187. function me(e) {
  31188. return void 0 === e;
  31189. }
  31190. function ye(e) {
  31191. return "[object Null]" === Object.prototype.toString.call(e);
  31192. }
  31193. var _e;
  31194. function we(e) {
  31195. var t = (n = e, "[object Array]" === Object.prototype.toString.call(n) ? e : [e]);
  31196. var n;
  31197. var _iterator = _createForOfIteratorHelper(t),
  31198. _step;
  31199. try {
  31200. for (_iterator.s(); !(_step = _iterator.n()).done;) {
  31201. var _e9 = _step.value;
  31202. var _t4 = _e9.isMatch,
  31203. _n4 = _e9.genAdapter,
  31204. _s4 = _e9.runtime;
  31205. if (_t4()) return {
  31206. adapter: _n4(),
  31207. runtime: _s4
  31208. };
  31209. }
  31210. } catch (err) {
  31211. _iterator.e(err);
  31212. } finally {
  31213. _iterator.f();
  31214. }
  31215. }
  31216. !function (e) {
  31217. e.WEB = "web", e.WX_MP = "wx_mp";
  31218. }(_e || (_e = {}));
  31219. var ve = {
  31220. adapter: null,
  31221. runtime: void 0
  31222. },
  31223. Se = ["anonymousUuidKey"];
  31224. var ke = /*#__PURE__*/function (_pe) {
  31225. (0, _inherits2.default)(ke, _pe);
  31226. var _super2 = _createSuper(ke);
  31227. function ke() {
  31228. var _this6;
  31229. (0, _classCallCheck2.default)(this, ke);
  31230. _this6 = _super2.call(this), ve.adapter.root.tcbObject || (ve.adapter.root.tcbObject = {});
  31231. return _this6;
  31232. }
  31233. (0, _createClass2.default)(ke, [{
  31234. key: "setItem",
  31235. value: function setItem(e, t) {
  31236. ve.adapter.root.tcbObject[e] = t;
  31237. }
  31238. }, {
  31239. key: "getItem",
  31240. value: function getItem(e) {
  31241. return ve.adapter.root.tcbObject[e];
  31242. }
  31243. }, {
  31244. key: "removeItem",
  31245. value: function removeItem(e) {
  31246. delete ve.adapter.root.tcbObject[e];
  31247. }
  31248. }, {
  31249. key: "clear",
  31250. value: function clear() {
  31251. delete ve.adapter.root.tcbObject;
  31252. }
  31253. }]);
  31254. return ke;
  31255. }(pe);
  31256. function Ie(e, t) {
  31257. switch (e) {
  31258. case "local":
  31259. return t.localStorage || new ke();
  31260. case "none":
  31261. return new ke();
  31262. default:
  31263. return t.sessionStorage || new ke();
  31264. }
  31265. }
  31266. var be = /*#__PURE__*/function () {
  31267. function be(e) {
  31268. (0, _classCallCheck2.default)(this, be);
  31269. if (!this._storage) {
  31270. this._persistence = ve.adapter.primaryStorage || e.persistence, this._storage = Ie(this._persistence, ve.adapter);
  31271. var _t5 = "access_token_".concat(e.env),
  31272. _n5 = "access_token_expire_".concat(e.env),
  31273. _s5 = "refresh_token_".concat(e.env),
  31274. _r = "anonymous_uuid_".concat(e.env),
  31275. _i = "login_type_".concat(e.env),
  31276. _o = "user_info_".concat(e.env);
  31277. this.keys = {
  31278. accessTokenKey: _t5,
  31279. accessTokenExpireKey: _n5,
  31280. refreshTokenKey: _s5,
  31281. anonymousUuidKey: _r,
  31282. loginTypeKey: _i,
  31283. userInfoKey: _o
  31284. };
  31285. }
  31286. }
  31287. (0, _createClass2.default)(be, [{
  31288. key: "updatePersistence",
  31289. value: function updatePersistence(e) {
  31290. if (e === this._persistence) return;
  31291. var t = "local" === this._persistence;
  31292. this._persistence = e;
  31293. var n = Ie(e, ve.adapter);
  31294. for (var _e10 in this.keys) {
  31295. var _s6 = this.keys[_e10];
  31296. if (t && Se.includes(_e10)) continue;
  31297. var _r2 = this._storage.getItem(_s6);
  31298. me(_r2) || ye(_r2) || (n.setItem(_s6, _r2), this._storage.removeItem(_s6));
  31299. }
  31300. this._storage = n;
  31301. }
  31302. }, {
  31303. key: "setStore",
  31304. value: function setStore(e, t, n) {
  31305. if (!this._storage) return;
  31306. var s = {
  31307. version: n || "localCachev1",
  31308. content: t
  31309. },
  31310. r = JSON.stringify(s);
  31311. try {
  31312. this._storage.setItem(e, r);
  31313. } catch (e) {
  31314. throw e;
  31315. }
  31316. }
  31317. }, {
  31318. key: "getStore",
  31319. value: function getStore(e, t) {
  31320. try {
  31321. if (!this._storage) return;
  31322. } catch (e) {
  31323. return "";
  31324. }
  31325. t = t || "localCachev1";
  31326. var n = this._storage.getItem(e);
  31327. if (!n) return "";
  31328. if (n.indexOf(t) >= 0) {
  31329. return JSON.parse(n).content;
  31330. }
  31331. return "";
  31332. }
  31333. }, {
  31334. key: "removeStore",
  31335. value: function removeStore(e) {
  31336. this._storage.removeItem(e);
  31337. }
  31338. }]);
  31339. return be;
  31340. }();
  31341. var Te = {},
  31342. Ae = {};
  31343. function Ce(e) {
  31344. return Te[e];
  31345. }
  31346. var Pe = /*#__PURE__*/(0, _createClass2.default)(function Pe(e, t) {
  31347. (0, _classCallCheck2.default)(this, Pe);
  31348. this.data = t || null, this.name = e;
  31349. });
  31350. var Ee = /*#__PURE__*/function (_Pe) {
  31351. (0, _inherits2.default)(Ee, _Pe);
  31352. var _super3 = _createSuper(Ee);
  31353. function Ee(e, t) {
  31354. var _this7;
  31355. (0, _classCallCheck2.default)(this, Ee);
  31356. _this7 = _super3.call(this, "error", {
  31357. error: e,
  31358. data: t
  31359. }), _this7.error = e;
  31360. return _this7;
  31361. }
  31362. return (0, _createClass2.default)(Ee);
  31363. }(Pe);
  31364. var Oe = new ( /*#__PURE__*/function () {
  31365. function _class() {
  31366. (0, _classCallCheck2.default)(this, _class);
  31367. this._listeners = {};
  31368. }
  31369. (0, _createClass2.default)(_class, [{
  31370. key: "on",
  31371. value: function on(e, t) {
  31372. return function (e, t, n) {
  31373. n[e] = n[e] || [], n[e].push(t);
  31374. }(e, t, this._listeners), this;
  31375. }
  31376. }, {
  31377. key: "off",
  31378. value: function off(e, t) {
  31379. return function (e, t, n) {
  31380. if (n && n[e]) {
  31381. var _s7 = n[e].indexOf(t);
  31382. -1 !== _s7 && n[e].splice(_s7, 1);
  31383. }
  31384. }(e, t, this._listeners), this;
  31385. }
  31386. }, {
  31387. key: "fire",
  31388. value: function fire(e, t) {
  31389. if (e instanceof Ee) return console.error(e.error), this;
  31390. var n = "string" == typeof e ? new Pe(e, t || {}) : e;
  31391. var s = n.name;
  31392. if (this._listens(s)) {
  31393. n.target = this;
  31394. var _e11 = this._listeners[s] ? (0, _toConsumableArray2.default)(this._listeners[s]) : [];
  31395. var _iterator2 = _createForOfIteratorHelper(_e11),
  31396. _step2;
  31397. try {
  31398. for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
  31399. var _t6 = _step2.value;
  31400. _t6.call(this, n);
  31401. }
  31402. } catch (err) {
  31403. _iterator2.e(err);
  31404. } finally {
  31405. _iterator2.f();
  31406. }
  31407. }
  31408. return this;
  31409. }
  31410. }, {
  31411. key: "_listens",
  31412. value: function _listens(e) {
  31413. return this._listeners[e] && this._listeners[e].length > 0;
  31414. }
  31415. }]);
  31416. return _class;
  31417. }())();
  31418. function xe(e, t) {
  31419. Oe.on(e, t);
  31420. }
  31421. function Ue(e) {
  31422. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  31423. Oe.fire(e, t);
  31424. }
  31425. function Re(e, t) {
  31426. Oe.off(e, t);
  31427. }
  31428. var Le = "loginStateChanged",
  31429. Ne = "loginStateExpire",
  31430. De = "loginTypeChanged",
  31431. Fe = "anonymousConverted",
  31432. qe = "refreshAccessToken";
  31433. var Ke;
  31434. !function (e) {
  31435. e.ANONYMOUS = "ANONYMOUS", e.WECHAT = "WECHAT", e.WECHAT_PUBLIC = "WECHAT-PUBLIC", e.WECHAT_OPEN = "WECHAT-OPEN", e.CUSTOM = "CUSTOM", e.EMAIL = "EMAIL", e.USERNAME = "USERNAME", e.NULL = "NULL";
  31436. }(Ke || (Ke = {}));
  31437. var je = ["auth.getJwt", "auth.logout", "auth.signInWithTicket", "auth.signInAnonymously", "auth.signIn", "auth.fetchAccessTokenWithRefreshToken", "auth.signUpWithEmailAndPassword", "auth.activateEndUserMail", "auth.sendPasswordResetEmail", "auth.resetPasswordWithToken", "auth.isUsernameRegistered"],
  31438. Me = {
  31439. "X-SDK-Version": "1.3.5"
  31440. };
  31441. function Be(e, t, n) {
  31442. var s = e[t];
  31443. e[t] = function (t) {
  31444. var r = {},
  31445. i = {};
  31446. n.forEach(function (n) {
  31447. var _n$call = n.call(e, t),
  31448. s = _n$call.data,
  31449. o = _n$call.headers;
  31450. Object.assign(r, s), Object.assign(i, o);
  31451. });
  31452. var o = t.data;
  31453. return o && function () {
  31454. var e;
  31455. if (e = o, "[object FormData]" !== Object.prototype.toString.call(e)) t.data = _objectSpread(_objectSpread({}, o), r);else for (var _e12 in r) {
  31456. o.append(_e12, r[_e12]);
  31457. }
  31458. }(), t.headers = _objectSpread(_objectSpread({}, t.headers || {}), i), s.call(e, t);
  31459. };
  31460. }
  31461. function $e() {
  31462. var e = Math.random().toString(16).slice(2);
  31463. return {
  31464. data: {
  31465. seqId: e
  31466. },
  31467. headers: _objectSpread(_objectSpread({}, Me), {}, {
  31468. "x-seqid": e
  31469. })
  31470. };
  31471. }
  31472. var We = /*#__PURE__*/function () {
  31473. function We() {
  31474. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  31475. (0, _classCallCheck2.default)(this, We);
  31476. var t;
  31477. this.config = e, this._reqClass = new ve.adapter.reqClass({
  31478. timeout: this.config.timeout,
  31479. timeoutMsg: "\u8BF7\u6C42\u5728".concat(this.config.timeout / 1e3, "s\u5185\u672A\u5B8C\u6210\uFF0C\u5DF2\u4E2D\u65AD"),
  31480. restrictedMethods: ["post"]
  31481. }), this._cache = Ce(this.config.env), this._localCache = (t = this.config.env, Ae[t]), Be(this._reqClass, "post", [$e]), Be(this._reqClass, "upload", [$e]), Be(this._reqClass, "download", [$e]);
  31482. }
  31483. (0, _createClass2.default)(We, [{
  31484. key: "post",
  31485. value: function () {
  31486. var _post = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(e) {
  31487. return _regenerator.default.wrap(function _callee3$(_context3) {
  31488. while (1) {
  31489. switch (_context3.prev = _context3.next) {
  31490. case 0:
  31491. _context3.next = 2;
  31492. return this._reqClass.post(e);
  31493. case 2:
  31494. return _context3.abrupt("return", _context3.sent);
  31495. case 3:
  31496. case "end":
  31497. return _context3.stop();
  31498. }
  31499. }
  31500. }, _callee3, this);
  31501. }));
  31502. function post(_x2) {
  31503. return _post.apply(this, arguments);
  31504. }
  31505. return post;
  31506. }()
  31507. }, {
  31508. key: "upload",
  31509. value: function () {
  31510. var _upload = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(e) {
  31511. return _regenerator.default.wrap(function _callee4$(_context4) {
  31512. while (1) {
  31513. switch (_context4.prev = _context4.next) {
  31514. case 0:
  31515. _context4.next = 2;
  31516. return this._reqClass.upload(e);
  31517. case 2:
  31518. return _context4.abrupt("return", _context4.sent);
  31519. case 3:
  31520. case "end":
  31521. return _context4.stop();
  31522. }
  31523. }
  31524. }, _callee4, this);
  31525. }));
  31526. function upload(_x3) {
  31527. return _upload.apply(this, arguments);
  31528. }
  31529. return upload;
  31530. }()
  31531. }, {
  31532. key: "download",
  31533. value: function () {
  31534. var _download = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(e) {
  31535. return _regenerator.default.wrap(function _callee5$(_context5) {
  31536. while (1) {
  31537. switch (_context5.prev = _context5.next) {
  31538. case 0:
  31539. _context5.next = 2;
  31540. return this._reqClass.download(e);
  31541. case 2:
  31542. return _context5.abrupt("return", _context5.sent);
  31543. case 3:
  31544. case "end":
  31545. return _context5.stop();
  31546. }
  31547. }
  31548. }, _callee5, this);
  31549. }));
  31550. function download(_x4) {
  31551. return _download.apply(this, arguments);
  31552. }
  31553. return download;
  31554. }()
  31555. }, {
  31556. key: "refreshAccessToken",
  31557. value: function () {
  31558. var _refreshAccessToken2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6() {
  31559. var e, t;
  31560. return _regenerator.default.wrap(function _callee6$(_context6) {
  31561. while (1) {
  31562. switch (_context6.prev = _context6.next) {
  31563. case 0:
  31564. this._refreshAccessTokenPromise || (this._refreshAccessTokenPromise = this._refreshAccessToken());
  31565. _context6.prev = 1;
  31566. _context6.next = 4;
  31567. return this._refreshAccessTokenPromise;
  31568. case 4:
  31569. e = _context6.sent;
  31570. _context6.next = 10;
  31571. break;
  31572. case 7:
  31573. _context6.prev = 7;
  31574. _context6.t0 = _context6["catch"](1);
  31575. t = _context6.t0;
  31576. case 10:
  31577. if (!(this._refreshAccessTokenPromise = null, this._shouldRefreshAccessTokenHook = null, t)) {
  31578. _context6.next = 12;
  31579. break;
  31580. }
  31581. throw t;
  31582. case 12:
  31583. return _context6.abrupt("return", e);
  31584. case 13:
  31585. case "end":
  31586. return _context6.stop();
  31587. }
  31588. }
  31589. }, _callee6, this, [[1, 7]]);
  31590. }));
  31591. function refreshAccessToken() {
  31592. return _refreshAccessToken2.apply(this, arguments);
  31593. }
  31594. return refreshAccessToken;
  31595. }()
  31596. }, {
  31597. key: "_refreshAccessToken",
  31598. value: function () {
  31599. var _refreshAccessToken3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
  31600. var _this$_cache$keys, e, t, n, s, r, i, o, a, _e13, _e14, _t7, _s8;
  31601. return _regenerator.default.wrap(function _callee7$(_context7) {
  31602. while (1) {
  31603. switch (_context7.prev = _context7.next) {
  31604. case 0:
  31605. _this$_cache$keys = this._cache.keys, e = _this$_cache$keys.accessTokenKey, t = _this$_cache$keys.accessTokenExpireKey, n = _this$_cache$keys.refreshTokenKey, s = _this$_cache$keys.loginTypeKey, r = _this$_cache$keys.anonymousUuidKey;
  31606. this._cache.removeStore(e), this._cache.removeStore(t);
  31607. i = this._cache.getStore(n);
  31608. if (i) {
  31609. _context7.next = 5;
  31610. break;
  31611. }
  31612. throw new Q({
  31613. message: "未登录CloudBase"
  31614. });
  31615. case 5:
  31616. o = {
  31617. refresh_token: i
  31618. };
  31619. _context7.next = 8;
  31620. return this.request("auth.fetchAccessTokenWithRefreshToken", o);
  31621. case 8:
  31622. a = _context7.sent;
  31623. if (!a.data.code) {
  31624. _context7.next = 21;
  31625. break;
  31626. }
  31627. _e13 = a.data.code;
  31628. if (!("SIGN_PARAM_INVALID" === _e13 || "REFRESH_TOKEN_EXPIRED" === _e13 || "INVALID_REFRESH_TOKEN" === _e13)) {
  31629. _context7.next = 20;
  31630. break;
  31631. }
  31632. if (!(this._cache.getStore(s) === Ke.ANONYMOUS && "INVALID_REFRESH_TOKEN" === _e13)) {
  31633. _context7.next = 19;
  31634. break;
  31635. }
  31636. _e14 = this._cache.getStore(r);
  31637. _t7 = this._cache.getStore(n);
  31638. _context7.next = 17;
  31639. return this.send("auth.signInAnonymously", {
  31640. anonymous_uuid: _e14,
  31641. refresh_token: _t7
  31642. });
  31643. case 17:
  31644. _s8 = _context7.sent;
  31645. return _context7.abrupt("return", (this.setRefreshToken(_s8.refresh_token), this._refreshAccessToken()));
  31646. case 19:
  31647. Ue(Ne), this._cache.removeStore(n);
  31648. case 20:
  31649. throw new Q({
  31650. code: a.data.code,
  31651. message: "\u5237\u65B0access token\u5931\u8D25\uFF1A".concat(a.data.code)
  31652. });
  31653. case 21:
  31654. if (!a.data.access_token) {
  31655. _context7.next = 23;
  31656. break;
  31657. }
  31658. return _context7.abrupt("return", (Ue(qe), this._cache.setStore(e, a.data.access_token), this._cache.setStore(t, a.data.access_token_expire + Date.now()), {
  31659. accessToken: a.data.access_token,
  31660. accessTokenExpire: a.data.access_token_expire
  31661. }));
  31662. case 23:
  31663. a.data.refresh_token && (this._cache.removeStore(n), this._cache.setStore(n, a.data.refresh_token), this._refreshAccessToken());
  31664. case 24:
  31665. case "end":
  31666. return _context7.stop();
  31667. }
  31668. }
  31669. }, _callee7, this);
  31670. }));
  31671. function _refreshAccessToken() {
  31672. return _refreshAccessToken3.apply(this, arguments);
  31673. }
  31674. return _refreshAccessToken;
  31675. }()
  31676. }, {
  31677. key: "getAccessToken",
  31678. value: function () {
  31679. var _getAccessToken = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
  31680. var _this$_cache$keys2, e, t, n, s, r, i;
  31681. return _regenerator.default.wrap(function _callee8$(_context8) {
  31682. while (1) {
  31683. switch (_context8.prev = _context8.next) {
  31684. case 0:
  31685. _this$_cache$keys2 = this._cache.keys, e = _this$_cache$keys2.accessTokenKey, t = _this$_cache$keys2.accessTokenExpireKey, n = _this$_cache$keys2.refreshTokenKey;
  31686. if (this._cache.getStore(n)) {
  31687. _context8.next = 3;
  31688. break;
  31689. }
  31690. throw new Q({
  31691. message: "refresh token不存在,登录状态异常"
  31692. });
  31693. case 3:
  31694. s = this._cache.getStore(e), r = this._cache.getStore(t), i = !0;
  31695. _context8.t0 = this._shouldRefreshAccessTokenHook;
  31696. if (!_context8.t0) {
  31697. _context8.next = 9;
  31698. break;
  31699. }
  31700. _context8.next = 8;
  31701. return this._shouldRefreshAccessTokenHook(s, r);
  31702. case 8:
  31703. _context8.t0 = !_context8.sent;
  31704. case 9:
  31705. _context8.t1 = _context8.t0;
  31706. if (!_context8.t1) {
  31707. _context8.next = 12;
  31708. break;
  31709. }
  31710. i = !1;
  31711. case 12:
  31712. return _context8.abrupt("return", (!s || !r || r < Date.now()) && i ? this.refreshAccessToken() : {
  31713. accessToken: s,
  31714. accessTokenExpire: r
  31715. });
  31716. case 13:
  31717. case "end":
  31718. return _context8.stop();
  31719. }
  31720. }
  31721. }, _callee8, this);
  31722. }));
  31723. function getAccessToken() {
  31724. return _getAccessToken.apply(this, arguments);
  31725. }
  31726. return getAccessToken;
  31727. }()
  31728. }, {
  31729. key: "request",
  31730. value: function () {
  31731. var _request = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9(e, t, n) {
  31732. var s, r, i, _e15, o, _e16, _e17, a, c, u, l, h, d, f, p, g;
  31733. return _regenerator.default.wrap(function _callee9$(_context9) {
  31734. while (1) {
  31735. switch (_context9.prev = _context9.next) {
  31736. case 0:
  31737. s = "x-tcb-trace_".concat(this.config.env);
  31738. r = "application/x-www-form-urlencoded";
  31739. i = _objectSpread({
  31740. action: e,
  31741. env: this.config.env,
  31742. dataVersion: "2019-08-16"
  31743. }, t);
  31744. if (!(-1 === je.indexOf(e))) {
  31745. _context9.next = 10;
  31746. break;
  31747. }
  31748. _e15 = this._cache.keys.refreshTokenKey;
  31749. _context9.t0 = this._cache.getStore(_e15);
  31750. if (!_context9.t0) {
  31751. _context9.next = 10;
  31752. break;
  31753. }
  31754. _context9.next = 9;
  31755. return this.getAccessToken();
  31756. case 9:
  31757. i.access_token = _context9.sent.accessToken;
  31758. case 10:
  31759. if ("storage.uploadFile" === e) {
  31760. o = new FormData();
  31761. for (_e16 in o) {
  31762. o.hasOwnProperty(_e16) && void 0 !== o[_e16] && o.append(_e16, i[_e16]);
  31763. }
  31764. r = "multipart/form-data";
  31765. } else {
  31766. r = "application/json", o = {};
  31767. for (_e17 in i) {
  31768. void 0 !== i[_e17] && (o[_e17] = i[_e17]);
  31769. }
  31770. }
  31771. a = {
  31772. headers: {
  31773. "content-type": r
  31774. }
  31775. };
  31776. n && n.onUploadProgress && (a.onUploadProgress = n.onUploadProgress);
  31777. c = this._localCache.getStore(s);
  31778. c && (a.headers["X-TCB-Trace"] = c);
  31779. u = t.parse, l = t.inQuery, h = t.search;
  31780. d = {
  31781. env: this.config.env
  31782. };
  31783. u && (d.parse = !0), l && (d = _objectSpread(_objectSpread({}, l), d));
  31784. f = function (e, t) {
  31785. var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  31786. var s = /\?/.test(t);
  31787. var r = "";
  31788. for (var _e18 in n) {
  31789. "" === r ? !s && (t += "?") : r += "&", r += "".concat(_e18, "=").concat(encodeURIComponent(n[_e18]));
  31790. }
  31791. return /^http(s)?\:\/\//.test(t += r) ? t : "".concat(e).concat(t);
  31792. }(de, "//tcb-api.tencentcloudapi.com/web", d);
  31793. h && (f += h);
  31794. _context9.next = 22;
  31795. return this.post(_objectSpread({
  31796. url: f,
  31797. data: o
  31798. }, a));
  31799. case 22:
  31800. p = _context9.sent;
  31801. g = p.header && p.header["x-tcb-trace"];
  31802. if (!(g && this._localCache.setStore(s, g), 200 !== Number(p.status) && 200 !== Number(p.statusCode) || !p.data)) {
  31803. _context9.next = 26;
  31804. break;
  31805. }
  31806. throw new Q({
  31807. code: "NETWORK_ERROR",
  31808. message: "network request error"
  31809. });
  31810. case 26:
  31811. return _context9.abrupt("return", p);
  31812. case 27:
  31813. case "end":
  31814. return _context9.stop();
  31815. }
  31816. }
  31817. }, _callee9, this);
  31818. }));
  31819. function request(_x5, _x6, _x7) {
  31820. return _request.apply(this, arguments);
  31821. }
  31822. return request;
  31823. }()
  31824. }, {
  31825. key: "send",
  31826. value: function () {
  31827. var _send = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10(e) {
  31828. var t,
  31829. n,
  31830. _n6,
  31831. _args10 = arguments;
  31832. return _regenerator.default.wrap(function _callee10$(_context10) {
  31833. while (1) {
  31834. switch (_context10.prev = _context10.next) {
  31835. case 0:
  31836. t = _args10.length > 1 && _args10[1] !== undefined ? _args10[1] : {};
  31837. _context10.next = 3;
  31838. return this.request(e, t, {
  31839. onUploadProgress: t.onUploadProgress
  31840. });
  31841. case 3:
  31842. n = _context10.sent;
  31843. if (!("ACCESS_TOKEN_EXPIRED" === n.data.code && -1 === je.indexOf(e))) {
  31844. _context10.next = 13;
  31845. break;
  31846. }
  31847. _context10.next = 7;
  31848. return this.refreshAccessToken();
  31849. case 7:
  31850. _context10.next = 9;
  31851. return this.request(e, t, {
  31852. onUploadProgress: t.onUploadProgress
  31853. });
  31854. case 9:
  31855. _n6 = _context10.sent;
  31856. if (!_n6.data.code) {
  31857. _context10.next = 12;
  31858. break;
  31859. }
  31860. throw new Q({
  31861. code: _n6.data.code,
  31862. message: _n6.data.message
  31863. });
  31864. case 12:
  31865. return _context10.abrupt("return", _n6.data);
  31866. case 13:
  31867. if (!n.data.code) {
  31868. _context10.next = 15;
  31869. break;
  31870. }
  31871. throw new Q({
  31872. code: n.data.code,
  31873. message: n.data.message
  31874. });
  31875. case 15:
  31876. return _context10.abrupt("return", n.data);
  31877. case 16:
  31878. case "end":
  31879. return _context10.stop();
  31880. }
  31881. }
  31882. }, _callee10, this);
  31883. }));
  31884. function send(_x8) {
  31885. return _send.apply(this, arguments);
  31886. }
  31887. return send;
  31888. }()
  31889. }, {
  31890. key: "setRefreshToken",
  31891. value: function setRefreshToken(e) {
  31892. var _this$_cache$keys3 = this._cache.keys,
  31893. t = _this$_cache$keys3.accessTokenKey,
  31894. n = _this$_cache$keys3.accessTokenExpireKey,
  31895. s = _this$_cache$keys3.refreshTokenKey;
  31896. this._cache.removeStore(t), this._cache.removeStore(n), this._cache.setStore(s, e);
  31897. }
  31898. }]);
  31899. return We;
  31900. }();
  31901. var ze = {};
  31902. function Je(e) {
  31903. return ze[e];
  31904. }
  31905. var He = /*#__PURE__*/function () {
  31906. function He(e) {
  31907. (0, _classCallCheck2.default)(this, He);
  31908. this.config = e, this._cache = Ce(e.env), this._request = Je(e.env);
  31909. }
  31910. (0, _createClass2.default)(He, [{
  31911. key: "setRefreshToken",
  31912. value: function setRefreshToken(e) {
  31913. var _this$_cache$keys4 = this._cache.keys,
  31914. t = _this$_cache$keys4.accessTokenKey,
  31915. n = _this$_cache$keys4.accessTokenExpireKey,
  31916. s = _this$_cache$keys4.refreshTokenKey;
  31917. this._cache.removeStore(t), this._cache.removeStore(n), this._cache.setStore(s, e);
  31918. }
  31919. }, {
  31920. key: "setAccessToken",
  31921. value: function setAccessToken(e, t) {
  31922. var _this$_cache$keys5 = this._cache.keys,
  31923. n = _this$_cache$keys5.accessTokenKey,
  31924. s = _this$_cache$keys5.accessTokenExpireKey;
  31925. this._cache.setStore(n, e), this._cache.setStore(s, t);
  31926. }
  31927. }, {
  31928. key: "refreshUserInfo",
  31929. value: function () {
  31930. var _refreshUserInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee11() {
  31931. var _yield$this$_request$, e;
  31932. return _regenerator.default.wrap(function _callee11$(_context11) {
  31933. while (1) {
  31934. switch (_context11.prev = _context11.next) {
  31935. case 0:
  31936. _context11.next = 2;
  31937. return this._request.send("auth.getUserInfo", {});
  31938. case 2:
  31939. _yield$this$_request$ = _context11.sent;
  31940. e = _yield$this$_request$.data;
  31941. return _context11.abrupt("return", (this.setLocalUserInfo(e), e));
  31942. case 5:
  31943. case "end":
  31944. return _context11.stop();
  31945. }
  31946. }
  31947. }, _callee11, this);
  31948. }));
  31949. function refreshUserInfo() {
  31950. return _refreshUserInfo.apply(this, arguments);
  31951. }
  31952. return refreshUserInfo;
  31953. }()
  31954. }, {
  31955. key: "setLocalUserInfo",
  31956. value: function setLocalUserInfo(e) {
  31957. var t = this._cache.keys.userInfoKey;
  31958. this._cache.setStore(t, e);
  31959. }
  31960. }]);
  31961. return He;
  31962. }();
  31963. var Ge = /*#__PURE__*/function () {
  31964. function Ge(e) {
  31965. (0, _classCallCheck2.default)(this, Ge);
  31966. if (!e) throw new Q({
  31967. code: "PARAM_ERROR",
  31968. message: "envId is not defined"
  31969. });
  31970. this._envId = e, this._cache = Ce(this._envId), this._request = Je(this._envId), this.setUserInfo();
  31971. }
  31972. (0, _createClass2.default)(Ge, [{
  31973. key: "linkWithTicket",
  31974. value: function linkWithTicket(e) {
  31975. if ("string" != typeof e) throw new Q({
  31976. code: "PARAM_ERROR",
  31977. message: "ticket must be string"
  31978. });
  31979. return this._request.send("auth.linkWithTicket", {
  31980. ticket: e
  31981. });
  31982. }
  31983. }, {
  31984. key: "linkWithRedirect",
  31985. value: function linkWithRedirect(e) {
  31986. e.signInWithRedirect();
  31987. }
  31988. }, {
  31989. key: "updatePassword",
  31990. value: function updatePassword(e, t) {
  31991. return this._request.send("auth.updatePassword", {
  31992. oldPassword: t,
  31993. newPassword: e
  31994. });
  31995. }
  31996. }, {
  31997. key: "updateEmail",
  31998. value: function updateEmail(e) {
  31999. return this._request.send("auth.updateEmail", {
  32000. newEmail: e
  32001. });
  32002. }
  32003. }, {
  32004. key: "updateUsername",
  32005. value: function updateUsername(e) {
  32006. if ("string" != typeof e) throw new Q({
  32007. code: "PARAM_ERROR",
  32008. message: "username must be a string"
  32009. });
  32010. return this._request.send("auth.updateUsername", {
  32011. username: e
  32012. });
  32013. }
  32014. }, {
  32015. key: "getLinkedUidList",
  32016. value: function () {
  32017. var _getLinkedUidList = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee12() {
  32018. var _yield$this$_request$2, e, t, n;
  32019. return _regenerator.default.wrap(function _callee12$(_context12) {
  32020. while (1) {
  32021. switch (_context12.prev = _context12.next) {
  32022. case 0:
  32023. _context12.next = 2;
  32024. return this._request.send("auth.getLinkedUidList", {});
  32025. case 2:
  32026. _yield$this$_request$2 = _context12.sent;
  32027. e = _yield$this$_request$2.data;
  32028. t = !1;
  32029. n = e.users;
  32030. return _context12.abrupt("return", (n.forEach(function (e) {
  32031. e.wxOpenId && e.wxPublicId && (t = !0);
  32032. }), {
  32033. users: n,
  32034. hasPrimaryUid: t
  32035. }));
  32036. case 7:
  32037. case "end":
  32038. return _context12.stop();
  32039. }
  32040. }
  32041. }, _callee12, this);
  32042. }));
  32043. function getLinkedUidList() {
  32044. return _getLinkedUidList.apply(this, arguments);
  32045. }
  32046. return getLinkedUidList;
  32047. }()
  32048. }, {
  32049. key: "setPrimaryUid",
  32050. value: function setPrimaryUid(e) {
  32051. return this._request.send("auth.setPrimaryUid", {
  32052. uid: e
  32053. });
  32054. }
  32055. }, {
  32056. key: "unlink",
  32057. value: function unlink(e) {
  32058. return this._request.send("auth.unlink", {
  32059. platform: e
  32060. });
  32061. }
  32062. }, {
  32063. key: "update",
  32064. value: function () {
  32065. var _update = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13(e) {
  32066. var t, n, s, r, i, o, _yield$this$_request$3, a;
  32067. return _regenerator.default.wrap(function _callee13$(_context13) {
  32068. while (1) {
  32069. switch (_context13.prev = _context13.next) {
  32070. case 0:
  32071. t = e.nickName;
  32072. n = e.gender;
  32073. s = e.avatarUrl;
  32074. r = e.province;
  32075. i = e.country;
  32076. o = e.city;
  32077. _context13.next = 8;
  32078. return this._request.send("auth.updateUserInfo", {
  32079. nickName: t,
  32080. gender: n,
  32081. avatarUrl: s,
  32082. province: r,
  32083. country: i,
  32084. city: o
  32085. });
  32086. case 8:
  32087. _yield$this$_request$3 = _context13.sent;
  32088. a = _yield$this$_request$3.data;
  32089. this.setLocalUserInfo(a);
  32090. case 11:
  32091. case "end":
  32092. return _context13.stop();
  32093. }
  32094. }
  32095. }, _callee13, this);
  32096. }));
  32097. function update(_x9) {
  32098. return _update.apply(this, arguments);
  32099. }
  32100. return update;
  32101. }()
  32102. }, {
  32103. key: "refresh",
  32104. value: function () {
  32105. var _refresh = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee14() {
  32106. var _yield$this$_request$4, e;
  32107. return _regenerator.default.wrap(function _callee14$(_context14) {
  32108. while (1) {
  32109. switch (_context14.prev = _context14.next) {
  32110. case 0:
  32111. _context14.next = 2;
  32112. return this._request.send("auth.getUserInfo", {});
  32113. case 2:
  32114. _yield$this$_request$4 = _context14.sent;
  32115. e = _yield$this$_request$4.data;
  32116. return _context14.abrupt("return", (this.setLocalUserInfo(e), e));
  32117. case 5:
  32118. case "end":
  32119. return _context14.stop();
  32120. }
  32121. }
  32122. }, _callee14, this);
  32123. }));
  32124. function refresh() {
  32125. return _refresh.apply(this, arguments);
  32126. }
  32127. return refresh;
  32128. }()
  32129. }, {
  32130. key: "setUserInfo",
  32131. value: function setUserInfo() {
  32132. var _this8 = this;
  32133. var e = this._cache.keys.userInfoKey,
  32134. t = this._cache.getStore(e);
  32135. ["uid", "loginType", "openid", "wxOpenId", "wxPublicId", "unionId", "qqMiniOpenId", "email", "hasPassword", "customUserId", "nickName", "gender", "avatarUrl"].forEach(function (e) {
  32136. _this8[e] = t[e];
  32137. }), this.location = {
  32138. country: t.country,
  32139. province: t.province,
  32140. city: t.city
  32141. };
  32142. }
  32143. }, {
  32144. key: "setLocalUserInfo",
  32145. value: function setLocalUserInfo(e) {
  32146. var t = this._cache.keys.userInfoKey;
  32147. this._cache.setStore(t, e), this.setUserInfo();
  32148. }
  32149. }]);
  32150. return Ge;
  32151. }();
  32152. var Ve = /*#__PURE__*/function () {
  32153. function Ve(e) {
  32154. (0, _classCallCheck2.default)(this, Ve);
  32155. if (!e) throw new Q({
  32156. code: "PARAM_ERROR",
  32157. message: "envId is not defined"
  32158. });
  32159. this._cache = Ce(e);
  32160. var _this$_cache$keys6 = this._cache.keys,
  32161. t = _this$_cache$keys6.refreshTokenKey,
  32162. n = _this$_cache$keys6.accessTokenKey,
  32163. s = _this$_cache$keys6.accessTokenExpireKey,
  32164. r = this._cache.getStore(t),
  32165. i = this._cache.getStore(n),
  32166. o = this._cache.getStore(s);
  32167. this.credential = {
  32168. refreshToken: r,
  32169. accessToken: i,
  32170. accessTokenExpire: o
  32171. }, this.user = new Ge(e);
  32172. }
  32173. (0, _createClass2.default)(Ve, [{
  32174. key: "isAnonymousAuth",
  32175. get: function get() {
  32176. return this.loginType === Ke.ANONYMOUS;
  32177. }
  32178. }, {
  32179. key: "isCustomAuth",
  32180. get: function get() {
  32181. return this.loginType === Ke.CUSTOM;
  32182. }
  32183. }, {
  32184. key: "isWeixinAuth",
  32185. get: function get() {
  32186. return this.loginType === Ke.WECHAT || this.loginType === Ke.WECHAT_OPEN || this.loginType === Ke.WECHAT_PUBLIC;
  32187. }
  32188. }, {
  32189. key: "loginType",
  32190. get: function get() {
  32191. return this._cache.getStore(this._cache.keys.loginTypeKey);
  32192. }
  32193. }]);
  32194. return Ve;
  32195. }();
  32196. var Ye = /*#__PURE__*/function (_He) {
  32197. (0, _inherits2.default)(Ye, _He);
  32198. var _super4 = _createSuper(Ye);
  32199. function Ye() {
  32200. (0, _classCallCheck2.default)(this, Ye);
  32201. return _super4.apply(this, arguments);
  32202. }
  32203. (0, _createClass2.default)(Ye, [{
  32204. key: "signIn",
  32205. value: function () {
  32206. var _signIn = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee15() {
  32207. var _this$_cache$keys7, e, t, n, s, r, _e19;
  32208. return _regenerator.default.wrap(function _callee15$(_context15) {
  32209. while (1) {
  32210. switch (_context15.prev = _context15.next) {
  32211. case 0:
  32212. this._cache.updatePersistence("local");
  32213. _this$_cache$keys7 = this._cache.keys;
  32214. e = _this$_cache$keys7.anonymousUuidKey;
  32215. t = _this$_cache$keys7.refreshTokenKey;
  32216. n = this._cache.getStore(e) || void 0;
  32217. s = this._cache.getStore(t) || void 0;
  32218. _context15.next = 8;
  32219. return this._request.send("auth.signInAnonymously", {
  32220. anonymous_uuid: n,
  32221. refresh_token: s
  32222. });
  32223. case 8:
  32224. r = _context15.sent;
  32225. if (!(r.uuid && r.refresh_token)) {
  32226. _context15.next = 20;
  32227. break;
  32228. }
  32229. this._setAnonymousUUID(r.uuid);
  32230. this.setRefreshToken(r.refresh_token);
  32231. _context15.next = 14;
  32232. return this._request.refreshAccessToken();
  32233. case 14:
  32234. Ue(Le);
  32235. Ue(De, {
  32236. env: this.config.env,
  32237. loginType: Ke.ANONYMOUS,
  32238. persistence: "local"
  32239. });
  32240. _e19 = new Ve(this.config.env);
  32241. _context15.next = 19;
  32242. return _e19.user.refresh();
  32243. case 19:
  32244. return _context15.abrupt("return", _e19);
  32245. case 20:
  32246. throw new Q({
  32247. message: "匿名登录失败"
  32248. });
  32249. case 21:
  32250. case "end":
  32251. return _context15.stop();
  32252. }
  32253. }
  32254. }, _callee15, this);
  32255. }));
  32256. function signIn() {
  32257. return _signIn.apply(this, arguments);
  32258. }
  32259. return signIn;
  32260. }()
  32261. }, {
  32262. key: "linkAndRetrieveDataWithTicket",
  32263. value: function () {
  32264. var _linkAndRetrieveDataWithTicket = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee16(e) {
  32265. var _this$_cache$keys8, t, n, s, r, i;
  32266. return _regenerator.default.wrap(function _callee16$(_context16) {
  32267. while (1) {
  32268. switch (_context16.prev = _context16.next) {
  32269. case 0:
  32270. _this$_cache$keys8 = this._cache.keys;
  32271. t = _this$_cache$keys8.anonymousUuidKey;
  32272. n = _this$_cache$keys8.refreshTokenKey;
  32273. s = this._cache.getStore(t);
  32274. r = this._cache.getStore(n);
  32275. _context16.next = 7;
  32276. return this._request.send("auth.linkAndRetrieveDataWithTicket", {
  32277. anonymous_uuid: s,
  32278. refresh_token: r,
  32279. ticket: e
  32280. });
  32281. case 7:
  32282. i = _context16.sent;
  32283. if (!i.refresh_token) {
  32284. _context16.next = 16;
  32285. break;
  32286. }
  32287. this._clearAnonymousUUID();
  32288. this.setRefreshToken(i.refresh_token);
  32289. _context16.next = 13;
  32290. return this._request.refreshAccessToken();
  32291. case 13:
  32292. Ue(Fe, {
  32293. env: this.config.env
  32294. });
  32295. Ue(De, {
  32296. loginType: Ke.CUSTOM,
  32297. persistence: "local"
  32298. });
  32299. return _context16.abrupt("return", {
  32300. credential: {
  32301. refreshToken: i.refresh_token
  32302. }
  32303. });
  32304. case 16:
  32305. throw new Q({
  32306. message: "匿名转化失败"
  32307. });
  32308. case 17:
  32309. case "end":
  32310. return _context16.stop();
  32311. }
  32312. }
  32313. }, _callee16, this);
  32314. }));
  32315. function linkAndRetrieveDataWithTicket(_x10) {
  32316. return _linkAndRetrieveDataWithTicket.apply(this, arguments);
  32317. }
  32318. return linkAndRetrieveDataWithTicket;
  32319. }()
  32320. }, {
  32321. key: "_setAnonymousUUID",
  32322. value: function _setAnonymousUUID(e) {
  32323. var _this$_cache$keys9 = this._cache.keys,
  32324. t = _this$_cache$keys9.anonymousUuidKey,
  32325. n = _this$_cache$keys9.loginTypeKey;
  32326. this._cache.removeStore(t), this._cache.setStore(t, e), this._cache.setStore(n, Ke.ANONYMOUS);
  32327. }
  32328. }, {
  32329. key: "_clearAnonymousUUID",
  32330. value: function _clearAnonymousUUID() {
  32331. this._cache.removeStore(this._cache.keys.anonymousUuidKey);
  32332. }
  32333. }]);
  32334. return Ye;
  32335. }(He);
  32336. var Qe = /*#__PURE__*/function (_He2) {
  32337. (0, _inherits2.default)(Qe, _He2);
  32338. var _super5 = _createSuper(Qe);
  32339. function Qe() {
  32340. (0, _classCallCheck2.default)(this, Qe);
  32341. return _super5.apply(this, arguments);
  32342. }
  32343. (0, _createClass2.default)(Qe, [{
  32344. key: "signIn",
  32345. value: function () {
  32346. var _signIn2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee17(e) {
  32347. var t, n;
  32348. return _regenerator.default.wrap(function _callee17$(_context17) {
  32349. while (1) {
  32350. switch (_context17.prev = _context17.next) {
  32351. case 0:
  32352. if (!("string" != typeof e)) {
  32353. _context17.next = 2;
  32354. break;
  32355. }
  32356. throw new Q({
  32357. code: "PARAM_ERROR",
  32358. message: "ticket must be a string"
  32359. });
  32360. case 2:
  32361. t = this._cache.keys.refreshTokenKey;
  32362. _context17.next = 5;
  32363. return this._request.send("auth.signInWithTicket", {
  32364. ticket: e,
  32365. refresh_token: this._cache.getStore(t) || ""
  32366. });
  32367. case 5:
  32368. n = _context17.sent;
  32369. if (!n.refresh_token) {
  32370. _context17.next = 15;
  32371. break;
  32372. }
  32373. this.setRefreshToken(n.refresh_token);
  32374. _context17.next = 10;
  32375. return this._request.refreshAccessToken();
  32376. case 10:
  32377. Ue(Le);
  32378. Ue(De, {
  32379. env: this.config.env,
  32380. loginType: Ke.CUSTOM,
  32381. persistence: this.config.persistence
  32382. });
  32383. _context17.next = 14;
  32384. return this.refreshUserInfo();
  32385. case 14:
  32386. return _context17.abrupt("return", new Ve(this.config.env));
  32387. case 15:
  32388. throw new Q({
  32389. message: "自定义登录失败"
  32390. });
  32391. case 16:
  32392. case "end":
  32393. return _context17.stop();
  32394. }
  32395. }
  32396. }, _callee17, this);
  32397. }));
  32398. function signIn(_x11) {
  32399. return _signIn2.apply(this, arguments);
  32400. }
  32401. return signIn;
  32402. }()
  32403. }]);
  32404. return Qe;
  32405. }(He);
  32406. var Xe = /*#__PURE__*/function (_He3) {
  32407. (0, _inherits2.default)(Xe, _He3);
  32408. var _super6 = _createSuper(Xe);
  32409. function Xe() {
  32410. (0, _classCallCheck2.default)(this, Xe);
  32411. return _super6.apply(this, arguments);
  32412. }
  32413. (0, _createClass2.default)(Xe, [{
  32414. key: "signIn",
  32415. value: function () {
  32416. var _signIn3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee18(e, t) {
  32417. var n, s, r, i, o;
  32418. return _regenerator.default.wrap(function _callee18$(_context18) {
  32419. while (1) {
  32420. switch (_context18.prev = _context18.next) {
  32421. case 0:
  32422. if (!("string" != typeof e)) {
  32423. _context18.next = 2;
  32424. break;
  32425. }
  32426. throw new Q({
  32427. code: "PARAM_ERROR",
  32428. message: "email must be a string"
  32429. });
  32430. case 2:
  32431. n = this._cache.keys.refreshTokenKey;
  32432. _context18.next = 5;
  32433. return this._request.send("auth.signIn", {
  32434. loginType: "EMAIL",
  32435. email: e,
  32436. password: t,
  32437. refresh_token: this._cache.getStore(n) || ""
  32438. });
  32439. case 5:
  32440. s = _context18.sent;
  32441. r = s.refresh_token;
  32442. i = s.access_token;
  32443. o = s.access_token_expire;
  32444. if (!r) {
  32445. _context18.next = 22;
  32446. break;
  32447. }
  32448. this.setRefreshToken(r);
  32449. if (!(i && o)) {
  32450. _context18.next = 15;
  32451. break;
  32452. }
  32453. this.setAccessToken(i, o);
  32454. _context18.next = 17;
  32455. break;
  32456. case 15:
  32457. _context18.next = 17;
  32458. return this._request.refreshAccessToken();
  32459. case 17:
  32460. _context18.next = 19;
  32461. return this.refreshUserInfo();
  32462. case 19:
  32463. Ue(Le);
  32464. Ue(De, {
  32465. env: this.config.env,
  32466. loginType: Ke.EMAIL,
  32467. persistence: this.config.persistence
  32468. });
  32469. return _context18.abrupt("return", new Ve(this.config.env));
  32470. case 22:
  32471. throw s.code ? new Q({
  32472. code: s.code,
  32473. message: "\u90AE\u7BB1\u767B\u5F55\u5931\u8D25: ".concat(s.message)
  32474. }) : new Q({
  32475. message: "邮箱登录失败"
  32476. });
  32477. case 23:
  32478. case "end":
  32479. return _context18.stop();
  32480. }
  32481. }
  32482. }, _callee18, this);
  32483. }));
  32484. function signIn(_x12, _x13) {
  32485. return _signIn3.apply(this, arguments);
  32486. }
  32487. return signIn;
  32488. }()
  32489. }, {
  32490. key: "activate",
  32491. value: function () {
  32492. var _activate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee19(e) {
  32493. return _regenerator.default.wrap(function _callee19$(_context19) {
  32494. while (1) {
  32495. switch (_context19.prev = _context19.next) {
  32496. case 0:
  32497. return _context19.abrupt("return", this._request.send("auth.activateEndUserMail", {
  32498. token: e
  32499. }));
  32500. case 1:
  32501. case "end":
  32502. return _context19.stop();
  32503. }
  32504. }
  32505. }, _callee19, this);
  32506. }));
  32507. function activate(_x14) {
  32508. return _activate.apply(this, arguments);
  32509. }
  32510. return activate;
  32511. }()
  32512. }, {
  32513. key: "resetPasswordWithToken",
  32514. value: function () {
  32515. var _resetPasswordWithToken = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee20(e, t) {
  32516. return _regenerator.default.wrap(function _callee20$(_context20) {
  32517. while (1) {
  32518. switch (_context20.prev = _context20.next) {
  32519. case 0:
  32520. return _context20.abrupt("return", this._request.send("auth.resetPasswordWithToken", {
  32521. token: e,
  32522. newPassword: t
  32523. }));
  32524. case 1:
  32525. case "end":
  32526. return _context20.stop();
  32527. }
  32528. }
  32529. }, _callee20, this);
  32530. }));
  32531. function resetPasswordWithToken(_x15, _x16) {
  32532. return _resetPasswordWithToken.apply(this, arguments);
  32533. }
  32534. return resetPasswordWithToken;
  32535. }()
  32536. }]);
  32537. return Xe;
  32538. }(He);
  32539. var Ze = /*#__PURE__*/function (_He4) {
  32540. (0, _inherits2.default)(Ze, _He4);
  32541. var _super7 = _createSuper(Ze);
  32542. function Ze() {
  32543. (0, _classCallCheck2.default)(this, Ze);
  32544. return _super7.apply(this, arguments);
  32545. }
  32546. (0, _createClass2.default)(Ze, [{
  32547. key: "signIn",
  32548. value: function () {
  32549. var _signIn4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee21(e, t) {
  32550. var n, s, r, i, o;
  32551. return _regenerator.default.wrap(function _callee21$(_context21) {
  32552. while (1) {
  32553. switch (_context21.prev = _context21.next) {
  32554. case 0:
  32555. if (!("string" != typeof e)) {
  32556. _context21.next = 2;
  32557. break;
  32558. }
  32559. throw new Q({
  32560. code: "PARAM_ERROR",
  32561. message: "username must be a string"
  32562. });
  32563. case 2:
  32564. "string" != typeof t && (t = "", console.warn("password is empty"));
  32565. n = this._cache.keys.refreshTokenKey;
  32566. _context21.next = 6;
  32567. return this._request.send("auth.signIn", {
  32568. loginType: Ke.USERNAME,
  32569. username: e,
  32570. password: t,
  32571. refresh_token: this._cache.getStore(n) || ""
  32572. });
  32573. case 6:
  32574. s = _context21.sent;
  32575. r = s.refresh_token;
  32576. i = s.access_token_expire;
  32577. o = s.access_token;
  32578. if (!r) {
  32579. _context21.next = 23;
  32580. break;
  32581. }
  32582. this.setRefreshToken(r);
  32583. if (!(o && i)) {
  32584. _context21.next = 16;
  32585. break;
  32586. }
  32587. this.setAccessToken(o, i);
  32588. _context21.next = 18;
  32589. break;
  32590. case 16:
  32591. _context21.next = 18;
  32592. return this._request.refreshAccessToken();
  32593. case 18:
  32594. _context21.next = 20;
  32595. return this.refreshUserInfo();
  32596. case 20:
  32597. Ue(Le);
  32598. Ue(De, {
  32599. env: this.config.env,
  32600. loginType: Ke.USERNAME,
  32601. persistence: this.config.persistence
  32602. });
  32603. return _context21.abrupt("return", new Ve(this.config.env));
  32604. case 23:
  32605. throw s.code ? new Q({
  32606. code: s.code,
  32607. message: "\u7528\u6237\u540D\u5BC6\u7801\u767B\u5F55\u5931\u8D25: ".concat(s.message)
  32608. }) : new Q({
  32609. message: "用户名密码登录失败"
  32610. });
  32611. case 24:
  32612. case "end":
  32613. return _context21.stop();
  32614. }
  32615. }
  32616. }, _callee21, this);
  32617. }));
  32618. function signIn(_x17, _x18) {
  32619. return _signIn4.apply(this, arguments);
  32620. }
  32621. return signIn;
  32622. }()
  32623. }]);
  32624. return Ze;
  32625. }(He);
  32626. var et = /*#__PURE__*/function () {
  32627. function et(e) {
  32628. (0, _classCallCheck2.default)(this, et);
  32629. this.config = e, this._cache = Ce(e.env), this._request = Je(e.env), this._onAnonymousConverted = this._onAnonymousConverted.bind(this), this._onLoginTypeChanged = this._onLoginTypeChanged.bind(this), xe(De, this._onLoginTypeChanged);
  32630. }
  32631. (0, _createClass2.default)(et, [{
  32632. key: "currentUser",
  32633. get: function get() {
  32634. var e = this.hasLoginState();
  32635. return e && e.user || null;
  32636. }
  32637. }, {
  32638. key: "loginType",
  32639. get: function get() {
  32640. return this._cache.getStore(this._cache.keys.loginTypeKey);
  32641. }
  32642. }, {
  32643. key: "anonymousAuthProvider",
  32644. value: function anonymousAuthProvider() {
  32645. return new Ye(this.config);
  32646. }
  32647. }, {
  32648. key: "customAuthProvider",
  32649. value: function customAuthProvider() {
  32650. return new Qe(this.config);
  32651. }
  32652. }, {
  32653. key: "emailAuthProvider",
  32654. value: function emailAuthProvider() {
  32655. return new Xe(this.config);
  32656. }
  32657. }, {
  32658. key: "usernameAuthProvider",
  32659. value: function usernameAuthProvider() {
  32660. return new Ze(this.config);
  32661. }
  32662. }, {
  32663. key: "signInAnonymously",
  32664. value: function () {
  32665. var _signInAnonymously = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee22() {
  32666. return _regenerator.default.wrap(function _callee22$(_context22) {
  32667. while (1) {
  32668. switch (_context22.prev = _context22.next) {
  32669. case 0:
  32670. return _context22.abrupt("return", new Ye(this.config).signIn());
  32671. case 1:
  32672. case "end":
  32673. return _context22.stop();
  32674. }
  32675. }
  32676. }, _callee22, this);
  32677. }));
  32678. function signInAnonymously() {
  32679. return _signInAnonymously.apply(this, arguments);
  32680. }
  32681. return signInAnonymously;
  32682. }()
  32683. }, {
  32684. key: "signInWithEmailAndPassword",
  32685. value: function () {
  32686. var _signInWithEmailAndPassword = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee23(e, t) {
  32687. return _regenerator.default.wrap(function _callee23$(_context23) {
  32688. while (1) {
  32689. switch (_context23.prev = _context23.next) {
  32690. case 0:
  32691. return _context23.abrupt("return", new Xe(this.config).signIn(e, t));
  32692. case 1:
  32693. case "end":
  32694. return _context23.stop();
  32695. }
  32696. }
  32697. }, _callee23, this);
  32698. }));
  32699. function signInWithEmailAndPassword(_x19, _x20) {
  32700. return _signInWithEmailAndPassword.apply(this, arguments);
  32701. }
  32702. return signInWithEmailAndPassword;
  32703. }()
  32704. }, {
  32705. key: "signInWithUsernameAndPassword",
  32706. value: function signInWithUsernameAndPassword(e, t) {
  32707. return new Ze(this.config).signIn(e, t);
  32708. }
  32709. }, {
  32710. key: "linkAndRetrieveDataWithTicket",
  32711. value: function () {
  32712. var _linkAndRetrieveDataWithTicket2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee24(e) {
  32713. return _regenerator.default.wrap(function _callee24$(_context24) {
  32714. while (1) {
  32715. switch (_context24.prev = _context24.next) {
  32716. case 0:
  32717. this._anonymousAuthProvider || (this._anonymousAuthProvider = new Ye(this.config)), xe(Fe, this._onAnonymousConverted);
  32718. _context24.next = 3;
  32719. return this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e);
  32720. case 3:
  32721. return _context24.abrupt("return", _context24.sent);
  32722. case 4:
  32723. case "end":
  32724. return _context24.stop();
  32725. }
  32726. }
  32727. }, _callee24, this);
  32728. }));
  32729. function linkAndRetrieveDataWithTicket(_x21) {
  32730. return _linkAndRetrieveDataWithTicket2.apply(this, arguments);
  32731. }
  32732. return linkAndRetrieveDataWithTicket;
  32733. }()
  32734. }, {
  32735. key: "signOut",
  32736. value: function () {
  32737. var _signOut = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee25() {
  32738. var _this$_cache$keys10, e, t, n, s, r;
  32739. return _regenerator.default.wrap(function _callee25$(_context25) {
  32740. while (1) {
  32741. switch (_context25.prev = _context25.next) {
  32742. case 0:
  32743. if (!(this.loginType === Ke.ANONYMOUS)) {
  32744. _context25.next = 2;
  32745. break;
  32746. }
  32747. throw new Q({
  32748. message: "匿名用户不支持登出操作"
  32749. });
  32750. case 2:
  32751. _this$_cache$keys10 = this._cache.keys, e = _this$_cache$keys10.refreshTokenKey, t = _this$_cache$keys10.accessTokenKey, n = _this$_cache$keys10.accessTokenExpireKey, s = this._cache.getStore(e);
  32752. if (s) {
  32753. _context25.next = 5;
  32754. break;
  32755. }
  32756. return _context25.abrupt("return");
  32757. case 5:
  32758. _context25.next = 7;
  32759. return this._request.send("auth.logout", {
  32760. refresh_token: s
  32761. });
  32762. case 7:
  32763. r = _context25.sent;
  32764. return _context25.abrupt("return", (this._cache.removeStore(e), this._cache.removeStore(t), this._cache.removeStore(n), Ue(Le), Ue(De, {
  32765. env: this.config.env,
  32766. loginType: Ke.NULL,
  32767. persistence: this.config.persistence
  32768. }), r));
  32769. case 9:
  32770. case "end":
  32771. return _context25.stop();
  32772. }
  32773. }
  32774. }, _callee25, this);
  32775. }));
  32776. function signOut() {
  32777. return _signOut.apply(this, arguments);
  32778. }
  32779. return signOut;
  32780. }()
  32781. }, {
  32782. key: "signUpWithEmailAndPassword",
  32783. value: function () {
  32784. var _signUpWithEmailAndPassword = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee26(e, t) {
  32785. return _regenerator.default.wrap(function _callee26$(_context26) {
  32786. while (1) {
  32787. switch (_context26.prev = _context26.next) {
  32788. case 0:
  32789. return _context26.abrupt("return", this._request.send("auth.signUpWithEmailAndPassword", {
  32790. email: e,
  32791. password: t
  32792. }));
  32793. case 1:
  32794. case "end":
  32795. return _context26.stop();
  32796. }
  32797. }
  32798. }, _callee26, this);
  32799. }));
  32800. function signUpWithEmailAndPassword(_x22, _x23) {
  32801. return _signUpWithEmailAndPassword.apply(this, arguments);
  32802. }
  32803. return signUpWithEmailAndPassword;
  32804. }()
  32805. }, {
  32806. key: "sendPasswordResetEmail",
  32807. value: function () {
  32808. var _sendPasswordResetEmail = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee27(e) {
  32809. return _regenerator.default.wrap(function _callee27$(_context27) {
  32810. while (1) {
  32811. switch (_context27.prev = _context27.next) {
  32812. case 0:
  32813. return _context27.abrupt("return", this._request.send("auth.sendPasswordResetEmail", {
  32814. email: e
  32815. }));
  32816. case 1:
  32817. case "end":
  32818. return _context27.stop();
  32819. }
  32820. }
  32821. }, _callee27, this);
  32822. }));
  32823. function sendPasswordResetEmail(_x24) {
  32824. return _sendPasswordResetEmail.apply(this, arguments);
  32825. }
  32826. return sendPasswordResetEmail;
  32827. }()
  32828. }, {
  32829. key: "onLoginStateChanged",
  32830. value: function onLoginStateChanged(e) {
  32831. var _this9 = this;
  32832. xe(Le, function () {
  32833. var t = _this9.hasLoginState();
  32834. e.call(_this9, t);
  32835. });
  32836. var t = this.hasLoginState();
  32837. e.call(this, t);
  32838. }
  32839. }, {
  32840. key: "onLoginStateExpired",
  32841. value: function onLoginStateExpired(e) {
  32842. xe(Ne, e.bind(this));
  32843. }
  32844. }, {
  32845. key: "onAccessTokenRefreshed",
  32846. value: function onAccessTokenRefreshed(e) {
  32847. xe(qe, e.bind(this));
  32848. }
  32849. }, {
  32850. key: "onAnonymousConverted",
  32851. value: function onAnonymousConverted(e) {
  32852. xe(Fe, e.bind(this));
  32853. }
  32854. }, {
  32855. key: "onLoginTypeChanged",
  32856. value: function onLoginTypeChanged(e) {
  32857. var _this10 = this;
  32858. xe(De, function () {
  32859. var t = _this10.hasLoginState();
  32860. e.call(_this10, t);
  32861. });
  32862. }
  32863. }, {
  32864. key: "getAccessToken",
  32865. value: function () {
  32866. var _getAccessToken2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee28() {
  32867. return _regenerator.default.wrap(function _callee28$(_context28) {
  32868. while (1) {
  32869. switch (_context28.prev = _context28.next) {
  32870. case 0:
  32871. _context28.next = 2;
  32872. return this._request.getAccessToken();
  32873. case 2:
  32874. _context28.t0 = _context28.sent.accessToken;
  32875. _context28.t1 = this.config.env;
  32876. return _context28.abrupt("return", {
  32877. accessToken: _context28.t0,
  32878. env: _context28.t1
  32879. });
  32880. case 5:
  32881. case "end":
  32882. return _context28.stop();
  32883. }
  32884. }
  32885. }, _callee28, this);
  32886. }));
  32887. function getAccessToken() {
  32888. return _getAccessToken2.apply(this, arguments);
  32889. }
  32890. return getAccessToken;
  32891. }()
  32892. }, {
  32893. key: "hasLoginState",
  32894. value: function hasLoginState() {
  32895. var e = this._cache.keys.refreshTokenKey;
  32896. return this._cache.getStore(e) ? new Ve(this.config.env) : null;
  32897. }
  32898. }, {
  32899. key: "isUsernameRegistered",
  32900. value: function () {
  32901. var _isUsernameRegistered = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee29(e) {
  32902. var _yield$this$_request$5, t;
  32903. return _regenerator.default.wrap(function _callee29$(_context29) {
  32904. while (1) {
  32905. switch (_context29.prev = _context29.next) {
  32906. case 0:
  32907. if (!("string" != typeof e)) {
  32908. _context29.next = 2;
  32909. break;
  32910. }
  32911. throw new Q({
  32912. code: "PARAM_ERROR",
  32913. message: "username must be a string"
  32914. });
  32915. case 2:
  32916. _context29.next = 4;
  32917. return this._request.send("auth.isUsernameRegistered", {
  32918. username: e
  32919. });
  32920. case 4:
  32921. _yield$this$_request$5 = _context29.sent;
  32922. t = _yield$this$_request$5.data;
  32923. return _context29.abrupt("return", t && t.isRegistered);
  32924. case 7:
  32925. case "end":
  32926. return _context29.stop();
  32927. }
  32928. }
  32929. }, _callee29, this);
  32930. }));
  32931. function isUsernameRegistered(_x25) {
  32932. return _isUsernameRegistered.apply(this, arguments);
  32933. }
  32934. return isUsernameRegistered;
  32935. }()
  32936. }, {
  32937. key: "getLoginState",
  32938. value: function getLoginState() {
  32939. return Promise.resolve(this.hasLoginState());
  32940. }
  32941. }, {
  32942. key: "signInWithTicket",
  32943. value: function () {
  32944. var _signInWithTicket = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee30(e) {
  32945. return _regenerator.default.wrap(function _callee30$(_context30) {
  32946. while (1) {
  32947. switch (_context30.prev = _context30.next) {
  32948. case 0:
  32949. return _context30.abrupt("return", new Qe(this.config).signIn(e));
  32950. case 1:
  32951. case "end":
  32952. return _context30.stop();
  32953. }
  32954. }
  32955. }, _callee30, this);
  32956. }));
  32957. function signInWithTicket(_x26) {
  32958. return _signInWithTicket.apply(this, arguments);
  32959. }
  32960. return signInWithTicket;
  32961. }()
  32962. }, {
  32963. key: "shouldRefreshAccessToken",
  32964. value: function shouldRefreshAccessToken(e) {
  32965. this._request._shouldRefreshAccessTokenHook = e.bind(this);
  32966. }
  32967. }, {
  32968. key: "getUserInfo",
  32969. value: function getUserInfo() {
  32970. return this._request.send("auth.getUserInfo", {}).then(function (e) {
  32971. return e.code ? e : _objectSpread(_objectSpread({}, e.data), {}, {
  32972. requestId: e.seqId
  32973. });
  32974. });
  32975. }
  32976. }, {
  32977. key: "getAuthHeader",
  32978. value: function getAuthHeader() {
  32979. var _this$_cache$keys11 = this._cache.keys,
  32980. e = _this$_cache$keys11.refreshTokenKey,
  32981. t = _this$_cache$keys11.accessTokenKey,
  32982. n = this._cache.getStore(e);
  32983. return {
  32984. "x-cloudbase-credentials": this._cache.getStore(t) + "/@@/" + n
  32985. };
  32986. }
  32987. }, {
  32988. key: "_onAnonymousConverted",
  32989. value: function _onAnonymousConverted(e) {
  32990. var t = e.data.env;
  32991. t === this.config.env && this._cache.updatePersistence(this.config.persistence);
  32992. }
  32993. }, {
  32994. key: "_onLoginTypeChanged",
  32995. value: function _onLoginTypeChanged(e) {
  32996. var _e$data = e.data,
  32997. t = _e$data.loginType,
  32998. n = _e$data.persistence,
  32999. s = _e$data.env;
  33000. s === this.config.env && (this._cache.updatePersistence(n), this._cache.setStore(this._cache.keys.loginTypeKey, t));
  33001. }
  33002. }]);
  33003. return et;
  33004. }();
  33005. var tt = function tt(e, t) {
  33006. t = t || ge();
  33007. var n = Je(this.config.env),
  33008. s = e.cloudPath,
  33009. r = e.filePath,
  33010. i = e.onUploadProgress,
  33011. _e$fileType = e.fileType,
  33012. o = _e$fileType === void 0 ? "image" : _e$fileType;
  33013. return n.send("storage.getUploadMetadata", {
  33014. path: s
  33015. }).then(function (e) {
  33016. var _e$data2 = e.data,
  33017. a = _e$data2.url,
  33018. c = _e$data2.authorization,
  33019. u = _e$data2.token,
  33020. l = _e$data2.fileId,
  33021. h = _e$data2.cosFileId,
  33022. d = e.requestId,
  33023. f = {
  33024. key: s,
  33025. signature: c,
  33026. "x-cos-meta-fileid": h,
  33027. success_action_status: "201",
  33028. "x-cos-security-token": u
  33029. };
  33030. n.upload({
  33031. url: a,
  33032. data: f,
  33033. file: r,
  33034. name: s,
  33035. fileType: o,
  33036. onUploadProgress: i
  33037. }).then(function (e) {
  33038. 201 === e.statusCode ? t(null, {
  33039. fileID: l,
  33040. requestId: d
  33041. }) : t(new Q({
  33042. code: "STORAGE_REQUEST_FAIL",
  33043. message: "STORAGE_REQUEST_FAIL: ".concat(e.data)
  33044. }));
  33045. }).catch(function (e) {
  33046. t(e);
  33047. });
  33048. }).catch(function (e) {
  33049. t(e);
  33050. }), t.promise;
  33051. },
  33052. nt = function nt(e, t) {
  33053. t = t || ge();
  33054. var n = Je(this.config.env),
  33055. s = e.cloudPath;
  33056. return n.send("storage.getUploadMetadata", {
  33057. path: s
  33058. }).then(function (e) {
  33059. t(null, e);
  33060. }).catch(function (e) {
  33061. t(e);
  33062. }), t.promise;
  33063. },
  33064. st = function st(_ref6, t) {
  33065. var e = _ref6.fileList;
  33066. if (t = t || ge(), !e || !Array.isArray(e)) return {
  33067. code: "INVALID_PARAM",
  33068. message: "fileList必须是非空的数组"
  33069. };
  33070. var _iterator3 = _createForOfIteratorHelper(e),
  33071. _step3;
  33072. try {
  33073. for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
  33074. var _t8 = _step3.value;
  33075. if (!_t8 || "string" != typeof _t8) return {
  33076. code: "INVALID_PARAM",
  33077. message: "fileList的元素必须是非空的字符串"
  33078. };
  33079. }
  33080. } catch (err) {
  33081. _iterator3.e(err);
  33082. } finally {
  33083. _iterator3.f();
  33084. }
  33085. var n = {
  33086. fileid_list: e
  33087. };
  33088. return Je(this.config.env).send("storage.batchDeleteFile", n).then(function (e) {
  33089. e.code ? t(null, e) : t(null, {
  33090. fileList: e.data.delete_list,
  33091. requestId: e.requestId
  33092. });
  33093. }).catch(function (e) {
  33094. t(e);
  33095. }), t.promise;
  33096. },
  33097. rt = function rt(_ref7, t) {
  33098. var e = _ref7.fileList;
  33099. t = t || ge(), e && Array.isArray(e) || t(null, {
  33100. code: "INVALID_PARAM",
  33101. message: "fileList必须是非空的数组"
  33102. });
  33103. var n = [];
  33104. var _iterator4 = _createForOfIteratorHelper(e),
  33105. _step4;
  33106. try {
  33107. for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
  33108. var _s9 = _step4.value;
  33109. "object" == (0, _typeof2.default)(_s9) ? (_s9.hasOwnProperty("fileID") && _s9.hasOwnProperty("maxAge") || t(null, {
  33110. code: "INVALID_PARAM",
  33111. message: "fileList的元素必须是包含fileID和maxAge的对象"
  33112. }), n.push({
  33113. fileid: _s9.fileID,
  33114. max_age: _s9.maxAge
  33115. })) : "string" == typeof _s9 ? n.push({
  33116. fileid: _s9
  33117. }) : t(null, {
  33118. code: "INVALID_PARAM",
  33119. message: "fileList的元素必须是字符串"
  33120. });
  33121. }
  33122. } catch (err) {
  33123. _iterator4.e(err);
  33124. } finally {
  33125. _iterator4.f();
  33126. }
  33127. var s = {
  33128. file_list: n
  33129. };
  33130. return Je(this.config.env).send("storage.batchGetDownloadUrl", s).then(function (e) {
  33131. e.code ? t(null, e) : t(null, {
  33132. fileList: e.data.download_list,
  33133. requestId: e.requestId
  33134. });
  33135. }).catch(function (e) {
  33136. t(e);
  33137. }), t.promise;
  33138. },
  33139. it = /*#__PURE__*/function () {
  33140. var _ref9 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee31(_ref8, t) {
  33141. var e, n, s, r;
  33142. return _regenerator.default.wrap(function _callee31$(_context31) {
  33143. while (1) {
  33144. switch (_context31.prev = _context31.next) {
  33145. case 0:
  33146. e = _ref8.fileID;
  33147. _context31.next = 3;
  33148. return rt.call(this, {
  33149. fileList: [{
  33150. fileID: e,
  33151. maxAge: 600
  33152. }]
  33153. });
  33154. case 3:
  33155. n = _context31.sent.fileList[0];
  33156. if (!("SUCCESS" !== n.code)) {
  33157. _context31.next = 6;
  33158. break;
  33159. }
  33160. return _context31.abrupt("return", t ? t(n) : new Promise(function (e) {
  33161. e(n);
  33162. }));
  33163. case 6:
  33164. s = Je(this.config.env);
  33165. r = n.download_url;
  33166. if (!(r = encodeURI(r), !t)) {
  33167. _context31.next = 10;
  33168. break;
  33169. }
  33170. return _context31.abrupt("return", s.download({
  33171. url: r
  33172. }));
  33173. case 10:
  33174. _context31.t0 = t;
  33175. _context31.next = 13;
  33176. return s.download({
  33177. url: r
  33178. });
  33179. case 13:
  33180. _context31.t1 = _context31.sent;
  33181. (0, _context31.t0)(_context31.t1);
  33182. case 15:
  33183. case "end":
  33184. return _context31.stop();
  33185. }
  33186. }
  33187. }, _callee31, this);
  33188. }));
  33189. return function it(_x27, _x28) {
  33190. return _ref9.apply(this, arguments);
  33191. };
  33192. }(),
  33193. ot = function ot(_ref10, i) {
  33194. var e = _ref10.name,
  33195. t = _ref10.data,
  33196. n = _ref10.query,
  33197. s = _ref10.parse,
  33198. r = _ref10.search;
  33199. var o = i || ge();
  33200. var a;
  33201. try {
  33202. a = t ? JSON.stringify(t) : "";
  33203. } catch (e) {
  33204. return Promise.reject(e);
  33205. }
  33206. if (!e) return Promise.reject(new Q({
  33207. code: "PARAM_ERROR",
  33208. message: "函数名不能为空"
  33209. }));
  33210. var c = {
  33211. inQuery: n,
  33212. parse: s,
  33213. search: r,
  33214. function_name: e,
  33215. request_data: a
  33216. };
  33217. return Je(this.config.env).send("functions.invokeFunction", c).then(function (e) {
  33218. if (e.code) o(null, e);else {
  33219. var _t9 = e.data.response_data;
  33220. if (s) o(null, {
  33221. result: _t9,
  33222. requestId: e.requestId
  33223. });else try {
  33224. _t9 = JSON.parse(e.data.response_data), o(null, {
  33225. result: _t9,
  33226. requestId: e.requestId
  33227. });
  33228. } catch (e) {
  33229. o(new Q({
  33230. message: "response data must be json"
  33231. }));
  33232. }
  33233. }
  33234. return o.promise;
  33235. }).catch(function (e) {
  33236. o(e);
  33237. }), o.promise;
  33238. },
  33239. at = {
  33240. timeout: 15e3,
  33241. persistence: "session"
  33242. },
  33243. ct = {};
  33244. var ut = /*#__PURE__*/function () {
  33245. function ut(e) {
  33246. (0, _classCallCheck2.default)(this, ut);
  33247. this.config = e || this.config, this.authObj = void 0;
  33248. }
  33249. (0, _createClass2.default)(ut, [{
  33250. key: "init",
  33251. value: function init(e) {
  33252. switch (ve.adapter || (this.requestClient = new ve.adapter.reqClass({
  33253. timeout: e.timeout || 5e3,
  33254. timeoutMsg: "\u8BF7\u6C42\u5728".concat((e.timeout || 5e3) / 1e3, "s\u5185\u672A\u5B8C\u6210\uFF0C\u5DF2\u4E2D\u65AD")
  33255. })), this.config = _objectSpread(_objectSpread({}, at), e), !0) {
  33256. case this.config.timeout > 6e5:
  33257. console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"), this.config.timeout = 6e5;
  33258. break;
  33259. case this.config.timeout < 100:
  33260. console.warn("timeout小于可配置下限[100ms],已重置为下限数值"), this.config.timeout = 100;
  33261. }
  33262. return new ut(this.config);
  33263. }
  33264. }, {
  33265. key: "auth",
  33266. value: function auth() {
  33267. var _ref11 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  33268. e = _ref11.persistence;
  33269. if (this.authObj) return this.authObj;
  33270. var t = e || ve.adapter.primaryStorage || at.persistence;
  33271. var n;
  33272. return t !== this.config.persistence && (this.config.persistence = t), function (e) {
  33273. var t = e.env;
  33274. Te[t] = new be(e), Ae[t] = new be(_objectSpread(_objectSpread({}, e), {}, {
  33275. persistence: "local"
  33276. }));
  33277. }(this.config), n = this.config, ze[n.env] = new We(n), this.authObj = new et(this.config), this.authObj;
  33278. }
  33279. }, {
  33280. key: "on",
  33281. value: function on(e, t) {
  33282. return xe.apply(this, [e, t]);
  33283. }
  33284. }, {
  33285. key: "off",
  33286. value: function off(e, t) {
  33287. return Re.apply(this, [e, t]);
  33288. }
  33289. }, {
  33290. key: "callFunction",
  33291. value: function callFunction(e, t) {
  33292. return ot.apply(this, [e, t]);
  33293. }
  33294. }, {
  33295. key: "deleteFile",
  33296. value: function deleteFile(e, t) {
  33297. return st.apply(this, [e, t]);
  33298. }
  33299. }, {
  33300. key: "getTempFileURL",
  33301. value: function getTempFileURL(e, t) {
  33302. return rt.apply(this, [e, t]);
  33303. }
  33304. }, {
  33305. key: "downloadFile",
  33306. value: function downloadFile(e, t) {
  33307. return it.apply(this, [e, t]);
  33308. }
  33309. }, {
  33310. key: "uploadFile",
  33311. value: function uploadFile(e, t) {
  33312. return tt.apply(this, [e, t]);
  33313. }
  33314. }, {
  33315. key: "getUploadMetadata",
  33316. value: function getUploadMetadata(e, t) {
  33317. return nt.apply(this, [e, t]);
  33318. }
  33319. }, {
  33320. key: "registerExtension",
  33321. value: function registerExtension(e) {
  33322. ct[e.name] = e;
  33323. }
  33324. }, {
  33325. key: "invokeExtension",
  33326. value: function () {
  33327. var _invokeExtension = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee32(e, t) {
  33328. var n;
  33329. return _regenerator.default.wrap(function _callee32$(_context32) {
  33330. while (1) {
  33331. switch (_context32.prev = _context32.next) {
  33332. case 0:
  33333. n = ct[e];
  33334. if (n) {
  33335. _context32.next = 3;
  33336. break;
  33337. }
  33338. throw new Q({
  33339. message: "\u6269\u5C55".concat(e, " \u5FC5\u987B\u5148\u6CE8\u518C")
  33340. });
  33341. case 3:
  33342. _context32.next = 5;
  33343. return n.invoke(t, this);
  33344. case 5:
  33345. return _context32.abrupt("return", _context32.sent);
  33346. case 6:
  33347. case "end":
  33348. return _context32.stop();
  33349. }
  33350. }
  33351. }, _callee32, this);
  33352. }));
  33353. function invokeExtension(_x29, _x30) {
  33354. return _invokeExtension.apply(this, arguments);
  33355. }
  33356. return invokeExtension;
  33357. }()
  33358. }, {
  33359. key: "useAdapters",
  33360. value: function useAdapters(e) {
  33361. var _ref12 = we(e) || {},
  33362. t = _ref12.adapter,
  33363. n = _ref12.runtime;
  33364. t && (ve.adapter = t), n && (ve.runtime = n);
  33365. }
  33366. }]);
  33367. return ut;
  33368. }();
  33369. var lt = new ut();
  33370. function ht(e, t, n) {
  33371. void 0 === n && (n = {});
  33372. var s = /\?/.test(t),
  33373. r = "";
  33374. for (var i in n) {
  33375. "" === r ? !s && (t += "?") : r += "&", r += i + "=" + encodeURIComponent(n[i]);
  33376. }
  33377. return /^http(s)?:\/\//.test(t += r) ? t : "" + e + t;
  33378. }
  33379. var dt = /*#__PURE__*/function () {
  33380. function dt() {
  33381. (0, _classCallCheck2.default)(this, dt);
  33382. }
  33383. (0, _createClass2.default)(dt, [{
  33384. key: "post",
  33385. value: function post(e) {
  33386. var t = e.url,
  33387. n = e.data,
  33388. s = e.headers;
  33389. return new Promise(function (e, r) {
  33390. X.request({
  33391. url: ht("https:", t),
  33392. data: n,
  33393. method: "POST",
  33394. header: s,
  33395. success: function success(t) {
  33396. e(t);
  33397. },
  33398. fail: function fail(e) {
  33399. r(e);
  33400. }
  33401. });
  33402. });
  33403. }
  33404. }, {
  33405. key: "upload",
  33406. value: function upload(e) {
  33407. return new Promise(function (t, n) {
  33408. var s = e.url,
  33409. r = e.file,
  33410. i = e.data,
  33411. o = e.headers,
  33412. a = e.fileType,
  33413. c = X.uploadFile({
  33414. url: ht("https:", s),
  33415. name: "file",
  33416. formData: Object.assign({}, i),
  33417. filePath: r,
  33418. fileType: a,
  33419. header: o,
  33420. success: function success(e) {
  33421. var n = {
  33422. statusCode: e.statusCode,
  33423. data: e.data || {}
  33424. };
  33425. 200 === e.statusCode && i.success_action_status && (n.statusCode = parseInt(i.success_action_status, 10)), t(n);
  33426. },
  33427. fail: function fail(e) {
  33428. n(new Error(e.errMsg || "uploadFile:fail"));
  33429. }
  33430. });
  33431. "function" == typeof e.onUploadProgress && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (t) {
  33432. e.onUploadProgress({
  33433. loaded: t.totalBytesSent,
  33434. total: t.totalBytesExpectedToSend
  33435. });
  33436. });
  33437. });
  33438. }
  33439. }]);
  33440. return dt;
  33441. }();
  33442. var ft = {
  33443. setItem: function setItem(e, t) {
  33444. X.setStorageSync(e, t);
  33445. },
  33446. getItem: function getItem(e) {
  33447. return X.getStorageSync(e);
  33448. },
  33449. removeItem: function removeItem(e) {
  33450. X.removeStorageSync(e);
  33451. },
  33452. clear: function clear() {
  33453. X.clearStorageSync();
  33454. }
  33455. };
  33456. var pt = {
  33457. genAdapter: function genAdapter() {
  33458. return {
  33459. root: {},
  33460. reqClass: dt,
  33461. localStorage: ft,
  33462. primaryStorage: "local"
  33463. };
  33464. },
  33465. isMatch: function isMatch() {
  33466. return !0;
  33467. },
  33468. runtime: "uni_app"
  33469. };
  33470. lt.useAdapters(pt);
  33471. var gt = lt,
  33472. mt = gt.init;
  33473. gt.init = function (e) {
  33474. e.env = e.spaceId;
  33475. var t = mt.call(this, e);
  33476. t.config.provider = "tencent", t.config.spaceId = e.spaceId;
  33477. var n = t.auth;
  33478. return t.auth = function (e) {
  33479. var t = n.call(this, e);
  33480. return ["linkAndRetrieveDataWithTicket", "signInAnonymously", "signOut", "getAccessToken", "getLoginState", "signInWithTicket", "getUserInfo"].forEach(function (e) {
  33481. t[e] = Y(t[e]).bind(t);
  33482. }), t;
  33483. }, t.customAuth = t.auth, t;
  33484. };
  33485. var yt = gt;
  33486. var _t = /*#__PURE__*/function (_le) {
  33487. (0, _inherits2.default)(_t, _le);
  33488. var _super8 = _createSuper(_t);
  33489. function _t() {
  33490. (0, _classCallCheck2.default)(this, _t);
  33491. return _super8.apply(this, arguments);
  33492. }
  33493. (0, _createClass2.default)(_t, [{
  33494. key: "getAccessToken",
  33495. value: function getAccessToken() {
  33496. var _this11 = this;
  33497. return new Promise(function (e, t) {
  33498. var n = "Anonymous_Access_token";
  33499. _this11.setAccessToken(n), e(n);
  33500. });
  33501. }
  33502. }, {
  33503. key: "setupRequest",
  33504. value: function setupRequest(e, t) {
  33505. var n = Object.assign({}, e, {
  33506. spaceId: this.config.spaceId,
  33507. timestamp: Date.now()
  33508. }),
  33509. s = {
  33510. "Content-Type": "application/json"
  33511. };
  33512. "auth" !== t && (n.token = this.accessToken, s["x-basement-token"] = this.accessToken), s["x-serverless-sign"] = ae.sign(n, this.config.clientSecret);
  33513. var r = oe();
  33514. s["x-client-info"] = encodeURIComponent(JSON.stringify(r));
  33515. var _Z = Z(),
  33516. i = _Z.token;
  33517. return s["x-client-token"] = i, {
  33518. url: this.config.requestUrl,
  33519. method: "POST",
  33520. data: n,
  33521. dataType: "json",
  33522. header: JSON.parse(JSON.stringify(s))
  33523. };
  33524. }
  33525. }, {
  33526. key: "uploadFileToOSS",
  33527. value: function uploadFileToOSS(_ref13) {
  33528. var _this12 = this;
  33529. var e = _ref13.url,
  33530. t = _ref13.formData,
  33531. n = _ref13.name,
  33532. s = _ref13.filePath,
  33533. r = _ref13.fileType,
  33534. i = _ref13.onUploadProgress;
  33535. return new Promise(function (o, a) {
  33536. var c = _this12.adapter.uploadFile({
  33537. url: e,
  33538. formData: t,
  33539. name: n,
  33540. filePath: s,
  33541. fileType: r,
  33542. success: function success(e) {
  33543. e && e.statusCode < 400 ? o(e) : a(new Q({
  33544. code: "UPLOAD_FAILED",
  33545. message: "文件上传失败"
  33546. }));
  33547. },
  33548. fail: function fail(e) {
  33549. a(new Q({
  33550. code: e.code || "UPLOAD_FAILED",
  33551. message: e.message || e.errMsg || "文件上传失败"
  33552. }));
  33553. }
  33554. });
  33555. "function" == typeof i && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (e) {
  33556. i({
  33557. loaded: e.totalBytesSent,
  33558. total: e.totalBytesExpectedToSend
  33559. });
  33560. });
  33561. });
  33562. }
  33563. }, {
  33564. key: "uploadFile",
  33565. value: function uploadFile(_ref14) {
  33566. var _this13 = this;
  33567. var e = _ref14.filePath,
  33568. t = _ref14.cloudPath,
  33569. _ref14$fileType = _ref14.fileType,
  33570. n = _ref14$fileType === void 0 ? "image" : _ref14$fileType,
  33571. s = _ref14.onUploadProgress;
  33572. if (!t) throw new Q({
  33573. code: "CLOUDPATH_REQUIRED",
  33574. message: "cloudPath不可为空"
  33575. });
  33576. var r;
  33577. return this.getOSSUploadOptionsFromPath({
  33578. cloudPath: t
  33579. }).then(function (t) {
  33580. var _t$result = t.result,
  33581. i = _t$result.url,
  33582. o = _t$result.formData,
  33583. a = _t$result.name;
  33584. r = t.result.fileUrl;
  33585. var c = {
  33586. url: i,
  33587. formData: o,
  33588. name: a,
  33589. filePath: e,
  33590. fileType: n
  33591. };
  33592. return _this13.uploadFileToOSS(Object.assign({}, c, {
  33593. onUploadProgress: s
  33594. }));
  33595. }).then(function () {
  33596. return _this13.reportOSSUpload({
  33597. cloudPath: t
  33598. });
  33599. }).then(function (t) {
  33600. return new Promise(function (n, s) {
  33601. t.success ? n({
  33602. success: !0,
  33603. filePath: e,
  33604. fileID: r
  33605. }) : s(new Q({
  33606. code: "UPLOAD_FAILED",
  33607. message: "文件上传失败"
  33608. }));
  33609. });
  33610. });
  33611. }
  33612. }, {
  33613. key: "deleteFile",
  33614. value: function deleteFile(_ref15) {
  33615. var e = _ref15.fileList;
  33616. var t = {
  33617. method: "serverless.file.resource.delete",
  33618. params: JSON.stringify({
  33619. fileList: e
  33620. })
  33621. };
  33622. return this.request(this.setupRequest(t)).then(function (e) {
  33623. if (e.success) return e.result;
  33624. throw new Q({
  33625. code: "DELETE_FILE_FAILED",
  33626. message: "删除文件失败"
  33627. });
  33628. });
  33629. }
  33630. }, {
  33631. key: "getTempFileURL",
  33632. value: function getTempFileURL() {
  33633. var _ref16 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  33634. e = _ref16.fileList;
  33635. if (!Array.isArray(e) || 0 === e.length) throw new Q({
  33636. code: "INVALID_PARAM",
  33637. message: "fileList的元素必须是非空的字符串"
  33638. });
  33639. var t = {
  33640. method: "serverless.file.resource.getTempFileURL",
  33641. params: JSON.stringify({
  33642. fileList: e
  33643. })
  33644. };
  33645. return this.request(this.setupRequest(t)).then(function (e) {
  33646. if (e.success) return {
  33647. fileList: e.result.fileList.map(function (e) {
  33648. return {
  33649. fileID: e.fileID,
  33650. tempFileURL: e.tempFileURL
  33651. };
  33652. })
  33653. };
  33654. throw new Q({
  33655. code: "GET_TEMP_FILE_URL_FAILED",
  33656. message: "获取临时文件链接失败"
  33657. });
  33658. });
  33659. }
  33660. }]);
  33661. return _t;
  33662. }(le);
  33663. var wt = {
  33664. init: function init(e) {
  33665. var t = new _t(e),
  33666. n = {
  33667. signInAnonymously: function signInAnonymously() {
  33668. return t.authorize();
  33669. },
  33670. getLoginState: function getLoginState() {
  33671. return Promise.resolve(!1);
  33672. }
  33673. };
  33674. return t.auth = function () {
  33675. return n;
  33676. }, t.customAuth = t.auth, t;
  33677. }
  33678. };
  33679. function vt(_ref17) {
  33680. var e = _ref17.data;
  33681. var t;
  33682. t = oe();
  33683. var n = JSON.parse(JSON.stringify(e || {}));
  33684. if (Object.assign(n, {
  33685. clientInfo: t
  33686. }), !n.uniIdToken) {
  33687. var _Z2 = Z(),
  33688. _e20 = _Z2.token;
  33689. _e20 && (n.uniIdToken = _e20);
  33690. }
  33691. return n;
  33692. }
  33693. function St() {
  33694. var _this14 = this;
  33695. var _ref18 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  33696. e = _ref18.name,
  33697. t = _ref18.data;
  33698. var _this$__dev__ = this.__dev__,
  33699. n = _this$__dev__.localAddress,
  33700. s = _this$__dev__.localPort,
  33701. r = {
  33702. aliyun: "aliyun",
  33703. tencent: "tcb"
  33704. }[this.config.provider],
  33705. i = this.config.spaceId,
  33706. o = "http://".concat(n, ":").concat(s, "/system/check-function"),
  33707. a = "http://".concat(n, ":").concat(s, "/cloudfunctions/").concat(e);
  33708. return new Promise(function (t, n) {
  33709. X.request({
  33710. method: "POST",
  33711. url: o,
  33712. data: {
  33713. name: e,
  33714. platform: S,
  33715. provider: r,
  33716. spaceId: i
  33717. },
  33718. timeout: 3e3,
  33719. success: function success(e) {
  33720. t(e);
  33721. },
  33722. fail: function fail() {
  33723. t({
  33724. data: {
  33725. code: "NETWORK_ERROR",
  33726. message: "连接本地调试服务失败,请检查客户端是否和主机在同一局域网下,自动切换为已部署的云函数。"
  33727. }
  33728. });
  33729. }
  33730. });
  33731. }).then(function () {
  33732. var _ref19 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  33733. e = _ref19.data;
  33734. var _ref20 = e || {},
  33735. t = _ref20.code,
  33736. n = _ref20.message;
  33737. return {
  33738. code: 0 === t ? 0 : t || "SYS_ERR",
  33739. message: n || "SYS_ERR"
  33740. };
  33741. }).then(function (_ref21) {
  33742. var n = _ref21.code,
  33743. s = _ref21.message;
  33744. if (0 !== n) {
  33745. switch (n) {
  33746. case "MODULE_ENCRYPTED":
  33747. console.error("\u6B64\u4E91\u51FD\u6570\uFF08".concat(e, "\uFF09\u4F9D\u8D56\u52A0\u5BC6\u516C\u5171\u6A21\u5757\u4E0D\u53EF\u672C\u5730\u8C03\u8BD5\uFF0C\u81EA\u52A8\u5207\u6362\u4E3A\u4E91\u7AEF\u5DF2\u90E8\u7F72\u7684\u4E91\u51FD\u6570"));
  33748. break;
  33749. case "FUNCTION_ENCRYPTED":
  33750. console.error("\u6B64\u4E91\u51FD\u6570\uFF08".concat(e, "\uFF09\u5DF2\u52A0\u5BC6\u4E0D\u53EF\u672C\u5730\u8C03\u8BD5\uFF0C\u81EA\u52A8\u5207\u6362\u4E3A\u4E91\u7AEF\u5DF2\u90E8\u7F72\u7684\u4E91\u51FD\u6570"));
  33751. break;
  33752. case "ACTION_ENCRYPTED":
  33753. console.error(s || "需要访问加密的uni-clientDB-action,自动切换为云端环境");
  33754. break;
  33755. case "NETWORK_ERROR":
  33756. {
  33757. var _e21 = "连接本地调试服务失败,请检查客户端是否和主机在同一局域网下";
  33758. throw console.error(_e21), new Error(_e21);
  33759. }
  33760. case "SWITCH_TO_CLOUD":
  33761. break;
  33762. default:
  33763. {
  33764. var _e22 = "\u68C0\u6D4B\u672C\u5730\u8C03\u8BD5\u670D\u52A1\u51FA\u73B0\u9519\u8BEF\uFF1A".concat(s, "\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u73AF\u5883\u6216\u91CD\u542F\u5BA2\u6237\u7AEF\u518D\u8BD5");
  33765. throw console.error(_e22), new Error(_e22);
  33766. }
  33767. }
  33768. return _this14._callCloudFunction({
  33769. name: e,
  33770. data: t
  33771. });
  33772. }
  33773. return new Promise(function (e, n) {
  33774. var s = vt.call(_this14, {
  33775. data: t
  33776. });
  33777. X.request({
  33778. method: "POST",
  33779. url: a,
  33780. data: {
  33781. provider: r,
  33782. platform: S,
  33783. param: s
  33784. },
  33785. success: function success() {
  33786. var _ref22 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  33787. t = _ref22.statusCode,
  33788. s = _ref22.data;
  33789. return !t || t >= 400 ? n(new Q({
  33790. code: s.code || "SYS_ERR",
  33791. message: s.message || "request:fail"
  33792. })) : e({
  33793. result: s
  33794. });
  33795. },
  33796. fail: function fail(e) {
  33797. n(new Q({
  33798. code: e.code || e.errCode || "SYS_ERR",
  33799. message: e.message || e.errMsg || "request:fail"
  33800. }));
  33801. }
  33802. });
  33803. });
  33804. });
  33805. }
  33806. var kt = [{
  33807. rule: /fc_function_not_found|FUNCTION_NOT_FOUND/,
  33808. content: ",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",
  33809. mode: "append"
  33810. }];
  33811. var It = /[\\^$.*+?()[\]{}|]/g,
  33812. bt = RegExp(It.source);
  33813. function Tt(e, t, n) {
  33814. return e.replace(new RegExp((s = t) && bt.test(s) ? s.replace(It, "\\$&") : s, "g"), n);
  33815. var s;
  33816. }
  33817. var At = "none",
  33818. Ct = "request",
  33819. Pt = "response",
  33820. Et = "both";
  33821. var Ot = /*#__PURE__*/function () {
  33822. function Ot() {
  33823. var _ref23 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  33824. e = _ref23.secretType,
  33825. t = _ref23.uniCloudIns;
  33826. (0, _classCallCheck2.default)(this, Ot);
  33827. this.secretType = e || At, this.uniCloudIns = t;
  33828. var _this$uniCloudIns$con = this.uniCloudIns.config,
  33829. n = _this$uniCloudIns$con.provider,
  33830. s = _this$uniCloudIns$con.spaceId;
  33831. var r;
  33832. this.provider = n, this.spaceId = s, this.scopedGlobalCache = (r = this.uniCloudIns, C("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}", r.config.spaceId)));
  33833. }
  33834. (0, _createClass2.default)(Ot, [{
  33835. key: "getSystemInfo",
  33836. value: function getSystemInfo() {
  33837. return this._systemInfo || (this._systemInfo = re()), this._systemInfo;
  33838. }
  33839. }, {
  33840. key: "appId",
  33841. get: function get() {
  33842. return this.getSystemInfo().appId;
  33843. }
  33844. }, {
  33845. key: "deviceId",
  33846. get: function get() {
  33847. return this.getSystemInfo().deviceId;
  33848. }
  33849. }, {
  33850. key: "encryptData",
  33851. value: function () {
  33852. var _encryptData = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee33(e) {
  33853. return _regenerator.default.wrap(function _callee33$(_context33) {
  33854. while (1) {
  33855. switch (_context33.prev = _context33.next) {
  33856. case 0:
  33857. return _context33.abrupt("return", this.secretType === At || this.secretType === At ? e : this.platformEncryptData(e));
  33858. case 1:
  33859. case "end":
  33860. return _context33.stop();
  33861. }
  33862. }
  33863. }, _callee33, this);
  33864. }));
  33865. function encryptData(_x31) {
  33866. return _encryptData.apply(this, arguments);
  33867. }
  33868. return encryptData;
  33869. }()
  33870. }, {
  33871. key: "decryptResult",
  33872. value: function () {
  33873. var _decryptResult = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee34(e) {
  33874. var t;
  33875. return _regenerator.default.wrap(function _callee34$(_context34) {
  33876. while (1) {
  33877. switch (_context34.prev = _context34.next) {
  33878. case 0:
  33879. if (!(this.secretType === At)) {
  33880. _context34.next = 2;
  33881. break;
  33882. }
  33883. return _context34.abrupt("return", e);
  33884. case 2:
  33885. t = e.content;
  33886. return _context34.abrupt("return", t ? this.secretType === Ct ? t : this.platformDecryptResult(e) : e);
  33887. case 4:
  33888. case "end":
  33889. return _context34.stop();
  33890. }
  33891. }
  33892. }, _callee34, this);
  33893. }));
  33894. function decryptResult(_x32) {
  33895. return _decryptResult.apply(this, arguments);
  33896. }
  33897. return decryptResult;
  33898. }()
  33899. }, {
  33900. key: "wrapVerifyClientCallFunction",
  33901. value: function wrapVerifyClientCallFunction(e) {
  33902. var t = this;
  33903. return /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee35() {
  33904. var _ref25,
  33905. n,
  33906. _ref25$data,
  33907. s,
  33908. _args35 = arguments;
  33909. return _regenerator.default.wrap(function _callee35$(_context35) {
  33910. while (1) {
  33911. switch (_context35.prev = _context35.next) {
  33912. case 0:
  33913. _ref25 = _args35.length > 0 && _args35[0] !== undefined ? _args35[0] : {}, n = _ref25.name, _ref25$data = _ref25.data, s = _ref25$data === void 0 ? {} : _ref25$data;
  33914. _context35.next = 3;
  33915. return t.prepare();
  33916. case 3:
  33917. _context35.next = 5;
  33918. return t.platformGetSignOption();
  33919. case 5:
  33920. (s = JSON.parse(JSON.stringify(s)))._uniCloudOptions = _context35.sent;
  33921. _context35.next = 8;
  33922. return e({
  33923. name: n,
  33924. data: s
  33925. });
  33926. case 8:
  33927. return _context35.abrupt("return", _context35.sent);
  33928. case 9:
  33929. case "end":
  33930. return _context35.stop();
  33931. }
  33932. }
  33933. }, _callee35);
  33934. }));
  33935. }
  33936. }, {
  33937. key: "wrapEncryptDataCallFunction",
  33938. value: function wrapEncryptDataCallFunction(e) {
  33939. var t = this;
  33940. return /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee36() {
  33941. var _ref27,
  33942. n,
  33943. _ref27$data,
  33944. s,
  33945. r,
  33946. i,
  33947. _args36 = arguments;
  33948. return _regenerator.default.wrap(function _callee36$(_context36) {
  33949. while (1) {
  33950. switch (_context36.prev = _context36.next) {
  33951. case 0:
  33952. _ref27 = _args36.length > 0 && _args36[0] !== undefined ? _args36[0] : {}, n = _ref27.name, _ref27$data = _ref27.data, s = _ref27$data === void 0 ? {} : _ref27$data;
  33953. _context36.next = 3;
  33954. return t.prepare();
  33955. case 3:
  33956. _context36.next = 5;
  33957. return t.encryptData(s);
  33958. case 5:
  33959. r = _context36.sent;
  33960. _context36.next = 8;
  33961. return e({
  33962. name: n,
  33963. data: r
  33964. });
  33965. case 8:
  33966. i = _context36.sent;
  33967. _context36.next = 11;
  33968. return t.decryptResult(i.result);
  33969. case 11:
  33970. i.result = _context36.sent;
  33971. return _context36.abrupt("return", i);
  33972. case 13:
  33973. case "end":
  33974. return _context36.stop();
  33975. }
  33976. }
  33977. }, _callee36);
  33978. }));
  33979. }
  33980. }]);
  33981. return Ot;
  33982. }();
  33983. /*! MIT License. Copyright 2015-2018 Richard Moore <me@ricmoo.com>. See LICENSE.txt. */
  33984. function xt(e) {
  33985. return parseInt(e) === e;
  33986. }
  33987. function Ut(e) {
  33988. if (!xt(e.length)) return !1;
  33989. for (var t = 0; t < e.length; t++) {
  33990. if (!xt(e[t]) || e[t] < 0 || e[t] > 255) return !1;
  33991. }
  33992. return !0;
  33993. }
  33994. function Rt(e, t) {
  33995. if (e.buffer && "Uint8Array" === e.name) return t && (e = e.slice ? e.slice() : Array.prototype.slice.call(e)), e;
  33996. if (Array.isArray(e)) {
  33997. if (!Ut(e)) throw new Error("Array contains invalid value: " + e);
  33998. return new Uint8Array(e);
  33999. }
  34000. if (xt(e.length) && Ut(e)) return new Uint8Array(e);
  34001. throw new Error("unsupported array-like object");
  34002. }
  34003. function Lt(e) {
  34004. return new Uint8Array(e);
  34005. }
  34006. function Nt(e, t, n, s, r) {
  34007. null == s && null == r || (e = e.slice ? e.slice(s, r) : Array.prototype.slice.call(e, s, r)), t.set(e, n);
  34008. }
  34009. var Dt,
  34010. Ft = {
  34011. toBytes: function toBytes(e) {
  34012. var t = [],
  34013. n = 0;
  34014. for (e = encodeURI(e); n < e.length;) {
  34015. var s = e.charCodeAt(n++);
  34016. 37 === s ? (t.push(parseInt(e.substr(n, 2), 16)), n += 2) : t.push(s);
  34017. }
  34018. return Rt(t);
  34019. },
  34020. fromBytes: function fromBytes(e) {
  34021. for (var t = [], n = 0; n < e.length;) {
  34022. var s = e[n];
  34023. s < 128 ? (t.push(String.fromCharCode(s)), n++) : s > 191 && s < 224 ? (t.push(String.fromCharCode((31 & s) << 6 | 63 & e[n + 1])), n += 2) : (t.push(String.fromCharCode((15 & s) << 12 | (63 & e[n + 1]) << 6 | 63 & e[n + 2])), n += 3);
  34024. }
  34025. return t.join("");
  34026. }
  34027. },
  34028. qt = (Dt = "0123456789abcdef", {
  34029. toBytes: function toBytes(e) {
  34030. for (var t = [], n = 0; n < e.length; n += 2) {
  34031. t.push(parseInt(e.substr(n, 2), 16));
  34032. }
  34033. return t;
  34034. },
  34035. fromBytes: function fromBytes(e) {
  34036. for (var t = [], n = 0; n < e.length; n++) {
  34037. var s = e[n];
  34038. t.push(Dt[(240 & s) >> 4] + Dt[15 & s]);
  34039. }
  34040. return t.join("");
  34041. }
  34042. }),
  34043. Kt = {
  34044. 16: 10,
  34045. 24: 12,
  34046. 32: 14
  34047. },
  34048. jt = [1, 2, 4, 8, 16, 32, 64, 128, 27, 54, 108, 216, 171, 77, 154, 47, 94, 188, 99, 198, 151, 53, 106, 212, 179, 125, 250, 239, 197, 145],
  34049. Mt = [99, 124, 119, 123, 242, 107, 111, 197, 48, 1, 103, 43, 254, 215, 171, 118, 202, 130, 201, 125, 250, 89, 71, 240, 173, 212, 162, 175, 156, 164, 114, 192, 183, 253, 147, 38, 54, 63, 247, 204, 52, 165, 229, 241, 113, 216, 49, 21, 4, 199, 35, 195, 24, 150, 5, 154, 7, 18, 128, 226, 235, 39, 178, 117, 9, 131, 44, 26, 27, 110, 90, 160, 82, 59, 214, 179, 41, 227, 47, 132, 83, 209, 0, 237, 32, 252, 177, 91, 106, 203, 190, 57, 74, 76, 88, 207, 208, 239, 170, 251, 67, 77, 51, 133, 69, 249, 2, 127, 80, 60, 159, 168, 81, 163, 64, 143, 146, 157, 56, 245, 188, 182, 218, 33, 16, 255, 243, 210, 205, 12, 19, 236, 95, 151, 68, 23, 196, 167, 126, 61, 100, 93, 25, 115, 96, 129, 79, 220, 34, 42, 144, 136, 70, 238, 184, 20, 222, 94, 11, 219, 224, 50, 58, 10, 73, 6, 36, 92, 194, 211, 172, 98, 145, 149, 228, 121, 231, 200, 55, 109, 141, 213, 78, 169, 108, 86, 244, 234, 101, 122, 174, 8, 186, 120, 37, 46, 28, 166, 180, 198, 232, 221, 116, 31, 75, 189, 139, 138, 112, 62, 181, 102, 72, 3, 246, 14, 97, 53, 87, 185, 134, 193, 29, 158, 225, 248, 152, 17, 105, 217, 142, 148, 155, 30, 135, 233, 206, 85, 40, 223, 140, 161, 137, 13, 191, 230, 66, 104, 65, 153, 45, 15, 176, 84, 187, 22],
  34050. Bt = [82, 9, 106, 213, 48, 54, 165, 56, 191, 64, 163, 158, 129, 243, 215, 251, 124, 227, 57, 130, 155, 47, 255, 135, 52, 142, 67, 68, 196, 222, 233, 203, 84, 123, 148, 50, 166, 194, 35, 61, 238, 76, 149, 11, 66, 250, 195, 78, 8, 46, 161, 102, 40, 217, 36, 178, 118, 91, 162, 73, 109, 139, 209, 37, 114, 248, 246, 100, 134, 104, 152, 22, 212, 164, 92, 204, 93, 101, 182, 146, 108, 112, 72, 80, 253, 237, 185, 218, 94, 21, 70, 87, 167, 141, 157, 132, 144, 216, 171, 0, 140, 188, 211, 10, 247, 228, 88, 5, 184, 179, 69, 6, 208, 44, 30, 143, 202, 63, 15, 2, 193, 175, 189, 3, 1, 19, 138, 107, 58, 145, 17, 65, 79, 103, 220, 234, 151, 242, 207, 206, 240, 180, 230, 115, 150, 172, 116, 34, 231, 173, 53, 133, 226, 249, 55, 232, 28, 117, 223, 110, 71, 241, 26, 113, 29, 41, 197, 137, 111, 183, 98, 14, 170, 24, 190, 27, 252, 86, 62, 75, 198, 210, 121, 32, 154, 219, 192, 254, 120, 205, 90, 244, 31, 221, 168, 51, 136, 7, 199, 49, 177, 18, 16, 89, 39, 128, 236, 95, 96, 81, 127, 169, 25, 181, 74, 13, 45, 229, 122, 159, 147, 201, 156, 239, 160, 224, 59, 77, 174, 42, 245, 176, 200, 235, 187, 60, 131, 83, 153, 97, 23, 43, 4, 126, 186, 119, 214, 38, 225, 105, 20, 99, 85, 33, 12, 125],
  34051. $t = [3328402341, 4168907908, 4000806809, 4135287693, 4294111757, 3597364157, 3731845041, 2445657428, 1613770832, 33620227, 3462883241, 1445669757, 3892248089, 3050821474, 1303096294, 3967186586, 2412431941, 528646813, 2311702848, 4202528135, 4026202645, 2992200171, 2387036105, 4226871307, 1101901292, 3017069671, 1604494077, 1169141738, 597466303, 1403299063, 3832705686, 2613100635, 1974974402, 3791519004, 1033081774, 1277568618, 1815492186, 2118074177, 4126668546, 2211236943, 1748251740, 1369810420, 3521504564, 4193382664, 3799085459, 2883115123, 1647391059, 706024767, 134480908, 2512897874, 1176707941, 2646852446, 806885416, 932615841, 168101135, 798661301, 235341577, 605164086, 461406363, 3756188221, 3454790438, 1311188841, 2142417613, 3933566367, 302582043, 495158174, 1479289972, 874125870, 907746093, 3698224818, 3025820398, 1537253627, 2756858614, 1983593293, 3084310113, 2108928974, 1378429307, 3722699582, 1580150641, 327451799, 2790478837, 3117535592, 0, 3253595436, 1075847264, 3825007647, 2041688520, 3059440621, 3563743934, 2378943302, 1740553945, 1916352843, 2487896798, 2555137236, 2958579944, 2244988746, 3151024235, 3320835882, 1336584933, 3992714006, 2252555205, 2588757463, 1714631509, 293963156, 2319795663, 3925473552, 67240454, 4269768577, 2689618160, 2017213508, 631218106, 1269344483, 2723238387, 1571005438, 2151694528, 93294474, 1066570413, 563977660, 1882732616, 4059428100, 1673313503, 2008463041, 2950355573, 1109467491, 537923632, 3858759450, 4260623118, 3218264685, 2177748300, 403442708, 638784309, 3287084079, 3193921505, 899127202, 2286175436, 773265209, 2479146071, 1437050866, 4236148354, 2050833735, 3362022572, 3126681063, 840505643, 3866325909, 3227541664, 427917720, 2655997905, 2749160575, 1143087718, 1412049534, 999329963, 193497219, 2353415882, 3354324521, 1807268051, 672404540, 2816401017, 3160301282, 369822493, 2916866934, 3688947771, 1681011286, 1949973070, 336202270, 2454276571, 201721354, 1210328172, 3093060836, 2680341085, 3184776046, 1135389935, 3294782118, 965841320, 831886756, 3554993207, 4068047243, 3588745010, 2345191491, 1849112409, 3664604599, 26054028, 2983581028, 2622377682, 1235855840, 3630984372, 2891339514, 4092916743, 3488279077, 3395642799, 4101667470, 1202630377, 268961816, 1874508501, 4034427016, 1243948399, 1546530418, 941366308, 1470539505, 1941222599, 2546386513, 3421038627, 2715671932, 3899946140, 1042226977, 2521517021, 1639824860, 227249030, 260737669, 3765465232, 2084453954, 1907733956, 3429263018, 2420656344, 100860677, 4160157185, 470683154, 3261161891, 1781871967, 2924959737, 1773779408, 394692241, 2579611992, 974986535, 664706745, 3655459128, 3958962195, 731420851, 571543859, 3530123707, 2849626480, 126783113, 865375399, 765172662, 1008606754, 361203602, 3387549984, 2278477385, 2857719295, 1344809080, 2782912378, 59542671, 1503764984, 160008576, 437062935, 1707065306, 3622233649, 2218934982, 3496503480, 2185314755, 697932208, 1512910199, 504303377, 2075177163, 2824099068, 1841019862, 739644986],
  34052. Wt = [2781242211, 2230877308, 2582542199, 2381740923, 234877682, 3184946027, 2984144751, 1418839493, 1348481072, 50462977, 2848876391, 2102799147, 434634494, 1656084439, 3863849899, 2599188086, 1167051466, 2636087938, 1082771913, 2281340285, 368048890, 3954334041, 3381544775, 201060592, 3963727277, 1739838676, 4250903202, 3930435503, 3206782108, 4149453988, 2531553906, 1536934080, 3262494647, 484572669, 2923271059, 1783375398, 1517041206, 1098792767, 49674231, 1334037708, 1550332980, 4098991525, 886171109, 150598129, 2481090929, 1940642008, 1398944049, 1059722517, 201851908, 1385547719, 1699095331, 1587397571, 674240536, 2704774806, 252314885, 3039795866, 151914247, 908333586, 2602270848, 1038082786, 651029483, 1766729511, 3447698098, 2682942837, 454166793, 2652734339, 1951935532, 775166490, 758520603, 3000790638, 4004797018, 4217086112, 4137964114, 1299594043, 1639438038, 3464344499, 2068982057, 1054729187, 1901997871, 2534638724, 4121318227, 1757008337, 0, 750906861, 1614815264, 535035132, 3363418545, 3988151131, 3201591914, 1183697867, 3647454910, 1265776953, 3734260298, 3566750796, 3903871064, 1250283471, 1807470800, 717615087, 3847203498, 384695291, 3313910595, 3617213773, 1432761139, 2484176261, 3481945413, 283769337, 100925954, 2180939647, 4037038160, 1148730428, 3123027871, 3813386408, 4087501137, 4267549603, 3229630528, 2315620239, 2906624658, 3156319645, 1215313976, 82966005, 3747855548, 3245848246, 1974459098, 1665278241, 807407632, 451280895, 251524083, 1841287890, 1283575245, 337120268, 891687699, 801369324, 3787349855, 2721421207, 3431482436, 959321879, 1469301956, 4065699751, 2197585534, 1199193405, 2898814052, 3887750493, 724703513, 2514908019, 2696962144, 2551808385, 3516813135, 2141445340, 1715741218, 2119445034, 2872807568, 2198571144, 3398190662, 700968686, 3547052216, 1009259540, 2041044702, 3803995742, 487983883, 1991105499, 1004265696, 1449407026, 1316239930, 504629770, 3683797321, 168560134, 1816667172, 3837287516, 1570751170, 1857934291, 4014189740, 2797888098, 2822345105, 2754712981, 936633572, 2347923833, 852879335, 1133234376, 1500395319, 3084545389, 2348912013, 1689376213, 3533459022, 3762923945, 3034082412, 4205598294, 133428468, 634383082, 2949277029, 2398386810, 3913789102, 403703816, 3580869306, 2297460856, 1867130149, 1918643758, 607656988, 4049053350, 3346248884, 1368901318, 600565992, 2090982877, 2632479860, 557719327, 3717614411, 3697393085, 2249034635, 2232388234, 2430627952, 1115438654, 3295786421, 2865522278, 3633334344, 84280067, 33027830, 303828494, 2747425121, 1600795957, 4188952407, 3496589753, 2434238086, 1486471617, 658119965, 3106381470, 953803233, 334231800, 3005978776, 857870609, 3151128937, 1890179545, 2298973838, 2805175444, 3056442267, 574365214, 2450884487, 550103529, 1233637070, 4289353045, 2018519080, 2057691103, 2399374476, 4166623649, 2148108681, 387583245, 3664101311, 836232934, 3330556482, 3100665960, 3280093505, 2955516313, 2002398509, 287182607, 3413881008, 4238890068, 3597515707, 975967766],
  34053. zt = [1671808611, 2089089148, 2006576759, 2072901243, 4061003762, 1807603307, 1873927791, 3310653893, 810573872, 16974337, 1739181671, 729634347, 4263110654, 3613570519, 2883997099, 1989864566, 3393556426, 2191335298, 3376449993, 2106063485, 4195741690, 1508618841, 1204391495, 4027317232, 2917941677, 3563566036, 2734514082, 2951366063, 2629772188, 2767672228, 1922491506, 3227229120, 3082974647, 4246528509, 2477669779, 644500518, 911895606, 1061256767, 4144166391, 3427763148, 878471220, 2784252325, 3845444069, 4043897329, 1905517169, 3631459288, 827548209, 356461077, 67897348, 3344078279, 593839651, 3277757891, 405286936, 2527147926, 84871685, 2595565466, 118033927, 305538066, 2157648768, 3795705826, 3945188843, 661212711, 2999812018, 1973414517, 152769033, 2208177539, 745822252, 439235610, 455947803, 1857215598, 1525593178, 2700827552, 1391895634, 994932283, 3596728278, 3016654259, 695947817, 3812548067, 795958831, 2224493444, 1408607827, 3513301457, 0, 3979133421, 543178784, 4229948412, 2982705585, 1542305371, 1790891114, 3410398667, 3201918910, 961245753, 1256100938, 1289001036, 1491644504, 3477767631, 3496721360, 4012557807, 2867154858, 4212583931, 1137018435, 1305975373, 861234739, 2241073541, 1171229253, 4178635257, 33948674, 2139225727, 1357946960, 1011120188, 2679776671, 2833468328, 1374921297, 2751356323, 1086357568, 2408187279, 2460827538, 2646352285, 944271416, 4110742005, 3168756668, 3066132406, 3665145818, 560153121, 271589392, 4279952895, 4077846003, 3530407890, 3444343245, 202643468, 322250259, 3962553324, 1608629855, 2543990167, 1154254916, 389623319, 3294073796, 2817676711, 2122513534, 1028094525, 1689045092, 1575467613, 422261273, 1939203699, 1621147744, 2174228865, 1339137615, 3699352540, 577127458, 712922154, 2427141008, 2290289544, 1187679302, 3995715566, 3100863416, 339486740, 3732514782, 1591917662, 186455563, 3681988059, 3762019296, 844522546, 978220090, 169743370, 1239126601, 101321734, 611076132, 1558493276, 3260915650, 3547250131, 2901361580, 1655096418, 2443721105, 2510565781, 3828863972, 2039214713, 3878868455, 3359869896, 928607799, 1840765549, 2374762893, 3580146133, 1322425422, 2850048425, 1823791212, 1459268694, 4094161908, 3928346602, 1706019429, 2056189050, 2934523822, 135794696, 3134549946, 2022240376, 628050469, 779246638, 472135708, 2800834470, 3032970164, 3327236038, 3894660072, 3715932637, 1956440180, 522272287, 1272813131, 3185336765, 2340818315, 2323976074, 1888542832, 1044544574, 3049550261, 1722469478, 1222152264, 50660867, 4127324150, 236067854, 1638122081, 895445557, 1475980887, 3117443513, 2257655686, 3243809217, 489110045, 2662934430, 3778599393, 4162055160, 2561878936, 288563729, 1773916777, 3648039385, 2391345038, 2493985684, 2612407707, 505560094, 2274497927, 3911240169, 3460925390, 1442818645, 678973480, 3749357023, 2358182796, 2717407649, 2306869641, 219617805, 3218761151, 3862026214, 1120306242, 1756942440, 1103331905, 2578459033, 762796589, 252780047, 2966125488, 1425844308, 3151392187, 372911126],
  34054. Jt = [1667474886, 2088535288, 2004326894, 2071694838, 4075949567, 1802223062, 1869591006, 3318043793, 808472672, 16843522, 1734846926, 724270422, 4278065639, 3621216949, 2880169549, 1987484396, 3402253711, 2189597983, 3385409673, 2105378810, 4210693615, 1499065266, 1195886990, 4042263547, 2913856577, 3570689971, 2728590687, 2947541573, 2627518243, 2762274643, 1920112356, 3233831835, 3082273397, 4261223649, 2475929149, 640051788, 909531756, 1061110142, 4160160501, 3435941763, 875846760, 2779116625, 3857003729, 4059105529, 1903268834, 3638064043, 825316194, 353713962, 67374088, 3351728789, 589522246, 3284360861, 404236336, 2526454071, 84217610, 2593830191, 117901582, 303183396, 2155911963, 3806477791, 3958056653, 656894286, 2998062463, 1970642922, 151591698, 2206440989, 741110872, 437923380, 454765878, 1852748508, 1515908788, 2694904667, 1381168804, 993742198, 3604373943, 3014905469, 690584402, 3823320797, 791638366, 2223281939, 1398011302, 3520161977, 0, 3991743681, 538992704, 4244381667, 2981218425, 1532751286, 1785380564, 3419096717, 3200178535, 960056178, 1246420628, 1280103576, 1482221744, 3486468741, 3503319995, 4025428677, 2863326543, 4227536621, 1128514950, 1296947098, 859002214, 2240123921, 1162203018, 4193849577, 33687044, 2139062782, 1347481760, 1010582648, 2678045221, 2829640523, 1364325282, 2745433693, 1077985408, 2408548869, 2459086143, 2644360225, 943212656, 4126475505, 3166494563, 3065430391, 3671750063, 555836226, 269496352, 4294908645, 4092792573, 3537006015, 3452783745, 202118168, 320025894, 3974901699, 1600119230, 2543297077, 1145359496, 387397934, 3301201811, 2812801621, 2122220284, 1027426170, 1684319432, 1566435258, 421079858, 1936954854, 1616945344, 2172753945, 1330631070, 3705438115, 572679748, 707427924, 2425400123, 2290647819, 1179044492, 4008585671, 3099120491, 336870440, 3739122087, 1583276732, 185277718, 3688593069, 3772791771, 842159716, 976899700, 168435220, 1229577106, 101059084, 606366792, 1549591736, 3267517855, 3553849021, 2897014595, 1650632388, 2442242105, 2509612081, 3840161747, 2038008818, 3890688725, 3368567691, 926374254, 1835907034, 2374863873, 3587531953, 1313788572, 2846482505, 1819063512, 1448540844, 4109633523, 3941213647, 1701162954, 2054852340, 2930698567, 134748176, 3132806511, 2021165296, 623210314, 774795868, 471606328, 2795958615, 3031746419, 3334885783, 3907527627, 3722280097, 1953799400, 522133822, 1263263126, 3183336545, 2341176845, 2324333839, 1886425312, 1044267644, 3048588401, 1718004428, 1212733584, 50529542, 4143317495, 235803164, 1633788866, 892690282, 1465383342, 3115962473, 2256965911, 3250673817, 488449850, 2661202215, 3789633753, 4177007595, 2560144171, 286339874, 1768537042, 3654906025, 2391705863, 2492770099, 2610673197, 505291324, 2273808917, 3924369609, 3469625735, 1431699370, 673740880, 3755965093, 2358021891, 2711746649, 2307489801, 218961690, 3217021541, 3873845719, 1111672452, 1751693520, 1094828930, 2576986153, 757954394, 252645662, 2964376443, 1414855848, 3149649517, 370555436],
  34055. Ht = [1374988112, 2118214995, 437757123, 975658646, 1001089995, 530400753, 2902087851, 1273168787, 540080725, 2910219766, 2295101073, 4110568485, 1340463100, 3307916247, 641025152, 3043140495, 3736164937, 632953703, 1172967064, 1576976609, 3274667266, 2169303058, 2370213795, 1809054150, 59727847, 361929877, 3211623147, 2505202138, 3569255213, 1484005843, 1239443753, 2395588676, 1975683434, 4102977912, 2572697195, 666464733, 3202437046, 4035489047, 3374361702, 2110667444, 1675577880, 3843699074, 2538681184, 1649639237, 2976151520, 3144396420, 4269907996, 4178062228, 1883793496, 2403728665, 2497604743, 1383856311, 2876494627, 1917518562, 3810496343, 1716890410, 3001755655, 800440835, 2261089178, 3543599269, 807962610, 599762354, 33778362, 3977675356, 2328828971, 2809771154, 4077384432, 1315562145, 1708848333, 101039829, 3509871135, 3299278474, 875451293, 2733856160, 92987698, 2767645557, 193195065, 1080094634, 1584504582, 3178106961, 1042385657, 2531067453, 3711829422, 1306967366, 2438237621, 1908694277, 67556463, 1615861247, 429456164, 3602770327, 2302690252, 1742315127, 2968011453, 126454664, 3877198648, 2043211483, 2709260871, 2084704233, 4169408201, 0, 159417987, 841739592, 504459436, 1817866830, 4245618683, 260388950, 1034867998, 908933415, 168810852, 1750902305, 2606453969, 607530554, 202008497, 2472011535, 3035535058, 463180190, 2160117071, 1641816226, 1517767529, 470948374, 3801332234, 3231722213, 1008918595, 303765277, 235474187, 4069246893, 766945465, 337553864, 1475418501, 2943682380, 4003061179, 2743034109, 4144047775, 1551037884, 1147550661, 1543208500, 2336434550, 3408119516, 3069049960, 3102011747, 3610369226, 1113818384, 328671808, 2227573024, 2236228733, 3535486456, 2935566865, 3341394285, 496906059, 3702665459, 226906860, 2009195472, 733156972, 2842737049, 294930682, 1206477858, 2835123396, 2700099354, 1451044056, 573804783, 2269728455, 3644379585, 2362090238, 2564033334, 2801107407, 2776292904, 3669462566, 1068351396, 742039012, 1350078989, 1784663195, 1417561698, 4136440770, 2430122216, 775550814, 2193862645, 2673705150, 1775276924, 1876241833, 3475313331, 3366754619, 270040487, 3902563182, 3678124923, 3441850377, 1851332852, 3969562369, 2203032232, 3868552805, 2868897406, 566021896, 4011190502, 3135740889, 1248802510, 3936291284, 699432150, 832877231, 708780849, 3332740144, 899835584, 1951317047, 4236429990, 3767586992, 866637845, 4043610186, 1106041591, 2144161806, 395441711, 1984812685, 1139781709, 3433712980, 3835036895, 2664543715, 1282050075, 3240894392, 1181045119, 2640243204, 25965917, 4203181171, 4211818798, 3009879386, 2463879762, 3910161971, 1842759443, 2597806476, 933301370, 1509430414, 3943906441, 3467192302, 3076639029, 3776767469, 2051518780, 2631065433, 1441952575, 404016761, 1942435775, 1408749034, 1610459739, 3745345300, 2017778566, 3400528769, 3110650942, 941896748, 3265478751, 371049330, 3168937228, 675039627, 4279080257, 967311729, 135050206, 3635733660, 1683407248, 2076935265, 3576870512, 1215061108, 3501741890],
  34056. Gt = [1347548327, 1400783205, 3273267108, 2520393566, 3409685355, 4045380933, 2880240216, 2471224067, 1428173050, 4138563181, 2441661558, 636813900, 4233094615, 3620022987, 2149987652, 2411029155, 1239331162, 1730525723, 2554718734, 3781033664, 46346101, 310463728, 2743944855, 3328955385, 3875770207, 2501218972, 3955191162, 3667219033, 768917123, 3545789473, 692707433, 1150208456, 1786102409, 2029293177, 1805211710, 3710368113, 3065962831, 401639597, 1724457132, 3028143674, 409198410, 2196052529, 1620529459, 1164071807, 3769721975, 2226875310, 486441376, 2499348523, 1483753576, 428819965, 2274680428, 3075636216, 598438867, 3799141122, 1474502543, 711349675, 129166120, 53458370, 2592523643, 2782082824, 4063242375, 2988687269, 3120694122, 1559041666, 730517276, 2460449204, 4042459122, 2706270690, 3446004468, 3573941694, 533804130, 2328143614, 2637442643, 2695033685, 839224033, 1973745387, 957055980, 2856345839, 106852767, 1371368976, 4181598602, 1033297158, 2933734917, 1179510461, 3046200461, 91341917, 1862534868, 4284502037, 605657339, 2547432937, 3431546947, 2003294622, 3182487618, 2282195339, 954669403, 3682191598, 1201765386, 3917234703, 3388507166, 0, 2198438022, 1211247597, 2887651696, 1315723890, 4227665663, 1443857720, 507358933, 657861945, 1678381017, 560487590, 3516619604, 975451694, 2970356327, 261314535, 3535072918, 2652609425, 1333838021, 2724322336, 1767536459, 370938394, 182621114, 3854606378, 1128014560, 487725847, 185469197, 2918353863, 3106780840, 3356761769, 2237133081, 1286567175, 3152976349, 4255350624, 2683765030, 3160175349, 3309594171, 878443390, 1988838185, 3704300486, 1756818940, 1673061617, 3403100636, 272786309, 1075025698, 545572369, 2105887268, 4174560061, 296679730, 1841768865, 1260232239, 4091327024, 3960309330, 3497509347, 1814803222, 2578018489, 4195456072, 575138148, 3299409036, 446754879, 3629546796, 4011996048, 3347532110, 3252238545, 4270639778, 915985419, 3483825537, 681933534, 651868046, 2755636671, 3828103837, 223377554, 2607439820, 1649704518, 3270937875, 3901806776, 1580087799, 4118987695, 3198115200, 2087309459, 2842678573, 3016697106, 1003007129, 2802849917, 1860738147, 2077965243, 164439672, 4100872472, 32283319, 2827177882, 1709610350, 2125135846, 136428751, 3874428392, 3652904859, 3460984630, 3572145929, 3593056380, 2939266226, 824852259, 818324884, 3224740454, 930369212, 2801566410, 2967507152, 355706840, 1257309336, 4148292826, 243256656, 790073846, 2373340630, 1296297904, 1422699085, 3756299780, 3818836405, 457992840, 3099667487, 2135319889, 77422314, 1560382517, 1945798516, 788204353, 1521706781, 1385356242, 870912086, 325965383, 2358957921, 2050466060, 2388260884, 2313884476, 4006521127, 901210569, 3990953189, 1014646705, 1503449823, 1062597235, 2031621326, 3212035895, 3931371469, 1533017514, 350174575, 2256028891, 2177544179, 1052338372, 741876788, 1606591296, 1914052035, 213705253, 2334669897, 1107234197, 1899603969, 3725069491, 2631447780, 2422494913, 1635502980, 1893020342, 1950903388, 1120974935],
  34057. Vt = [2807058932, 1699970625, 2764249623, 1586903591, 1808481195, 1173430173, 1487645946, 59984867, 4199882800, 1844882806, 1989249228, 1277555970, 3623636965, 3419915562, 1149249077, 2744104290, 1514790577, 459744698, 244860394, 3235995134, 1963115311, 4027744588, 2544078150, 4190530515, 1608975247, 2627016082, 2062270317, 1507497298, 2200818878, 567498868, 1764313568, 3359936201, 2305455554, 2037970062, 1047239e3, 1910319033, 1337376481, 2904027272, 2892417312, 984907214, 1243112415, 830661914, 861968209, 2135253587, 2011214180, 2927934315, 2686254721, 731183368, 1750626376, 4246310725, 1820824798, 4172763771, 3542330227, 48394827, 2404901663, 2871682645, 671593195, 3254988725, 2073724613, 145085239, 2280796200, 2779915199, 1790575107, 2187128086, 472615631, 3029510009, 4075877127, 3802222185, 4107101658, 3201631749, 1646252340, 4270507174, 1402811438, 1436590835, 3778151818, 3950355702, 3963161475, 4020912224, 2667994737, 273792366, 2331590177, 104699613, 95345982, 3175501286, 2377486676, 1560637892, 3564045318, 369057872, 4213447064, 3919042237, 1137477952, 2658625497, 1119727848, 2340947849, 1530455833, 4007360968, 172466556, 266959938, 516552836, 0, 2256734592, 3980931627, 1890328081, 1917742170, 4294704398, 945164165, 3575528878, 958871085, 3647212047, 2787207260, 1423022939, 775562294, 1739656202, 3876557655, 2530391278, 2443058075, 3310321856, 547512796, 1265195639, 437656594, 3121275539, 719700128, 3762502690, 387781147, 218828297, 3350065803, 2830708150, 2848461854, 428169201, 122466165, 3720081049, 1627235199, 648017665, 4122762354, 1002783846, 2117360635, 695634755, 3336358691, 4234721005, 4049844452, 3704280881, 2232435299, 574624663, 287343814, 612205898, 1039717051, 840019705, 2708326185, 793451934, 821288114, 1391201670, 3822090177, 376187827, 3113855344, 1224348052, 1679968233, 2361698556, 1058709744, 752375421, 2431590963, 1321699145, 3519142200, 2734591178, 188127444, 2177869557, 3727205754, 2384911031, 3215212461, 2648976442, 2450346104, 3432737375, 1180849278, 331544205, 3102249176, 4150144569, 2952102595, 2159976285, 2474404304, 766078933, 313773861, 2570832044, 2108100632, 1668212892, 3145456443, 2013908262, 418672217, 3070356634, 2594734927, 1852171925, 3867060991, 3473416636, 3907448597, 2614737639, 919489135, 164948639, 2094410160, 2997825956, 590424639, 2486224549, 1723872674, 3157750862, 3399941250, 3501252752, 3625268135, 2555048196, 3673637356, 1343127501, 4130281361, 3599595085, 2957853679, 1297403050, 81781910, 3051593425, 2283490410, 532201772, 1367295589, 3926170974, 895287692, 1953757831, 1093597963, 492483431, 3528626907, 1446242576, 1192455638, 1636604631, 209336225, 344873464, 1015671571, 669961897, 3375740769, 3857572124, 2973530695, 3747192018, 1933530610, 3464042516, 935293895, 3454686199, 2858115069, 1863638845, 3683022916, 4085369519, 3292445032, 875313188, 1080017571, 3279033885, 621591778, 1233856572, 2504130317, 24197544, 3017672716, 3835484340, 3247465558, 2220981195, 3060847922, 1551124588, 1463996600],
  34058. Yt = [4104605777, 1097159550, 396673818, 660510266, 2875968315, 2638606623, 4200115116, 3808662347, 821712160, 1986918061, 3430322568, 38544885, 3856137295, 718002117, 893681702, 1654886325, 2975484382, 3122358053, 3926825029, 4274053469, 796197571, 1290801793, 1184342925, 3556361835, 2405426947, 2459735317, 1836772287, 1381620373, 3196267988, 1948373848, 3764988233, 3385345166, 3263785589, 2390325492, 1480485785, 3111247143, 3780097726, 2293045232, 548169417, 3459953789, 3746175075, 439452389, 1362321559, 1400849762, 1685577905, 1806599355, 2174754046, 137073913, 1214797936, 1174215055, 3731654548, 2079897426, 1943217067, 1258480242, 529487843, 1437280870, 3945269170, 3049390895, 3313212038, 923313619, 679998e3, 3215307299, 57326082, 377642221, 3474729866, 2041877159, 133361907, 1776460110, 3673476453, 96392454, 878845905, 2801699524, 777231668, 4082475170, 2330014213, 4142626212, 2213296395, 1626319424, 1906247262, 1846563261, 562755902, 3708173718, 1040559837, 3871163981, 1418573201, 3294430577, 114585348, 1343618912, 2566595609, 3186202582, 1078185097, 3651041127, 3896688048, 2307622919, 425408743, 3371096953, 2081048481, 1108339068, 2216610296, 0, 2156299017, 736970802, 292596766, 1517440620, 251657213, 2235061775, 2933202493, 758720310, 265905162, 1554391400, 1532285339, 908999204, 174567692, 1474760595, 4002861748, 2610011675, 3234156416, 3693126241, 2001430874, 303699484, 2478443234, 2687165888, 585122620, 454499602, 151849742, 2345119218, 3064510765, 514443284, 4044981591, 1963412655, 2581445614, 2137062819, 19308535, 1928707164, 1715193156, 4219352155, 1126790795, 600235211, 3992742070, 3841024952, 836553431, 1669664834, 2535604243, 3323011204, 1243905413, 3141400786, 4180808110, 698445255, 2653899549, 2989552604, 2253581325, 3252932727, 3004591147, 1891211689, 2487810577, 3915653703, 4237083816, 4030667424, 2100090966, 865136418, 1229899655, 953270745, 3399679628, 3557504664, 4118925222, 2061379749, 3079546586, 2915017791, 983426092, 2022837584, 1607244650, 2118541908, 2366882550, 3635996816, 972512814, 3283088770, 1568718495, 3499326569, 3576539503, 621982671, 2895723464, 410887952, 2623762152, 1002142683, 645401037, 1494807662, 2595684844, 1335535747, 2507040230, 4293295786, 3167684641, 367585007, 3885750714, 1865862730, 2668221674, 2960971305, 2763173681, 1059270954, 2777952454, 2724642869, 1320957812, 2194319100, 2429595872, 2815956275, 77089521, 3973773121, 3444575871, 2448830231, 1305906550, 4021308739, 2857194700, 2516901860, 3518358430, 1787304780, 740276417, 1699839814, 1592394909, 2352307457, 2272556026, 188821243, 1729977011, 3687994002, 274084841, 3594982253, 3613494426, 2701949495, 4162096729, 322734571, 2837966542, 1640576439, 484830689, 1202797690, 3537852828, 4067639125, 349075736, 3342319475, 4157467219, 4255800159, 1030690015, 1155237496, 2951971274, 1757691577, 607398968, 2738905026, 499347990, 3794078908, 1011452712, 227885567, 2818666809, 213114376, 3034881240, 1455525988, 3414450555, 850817237, 1817998408, 3092726480],
  34059. Qt = [0, 235474187, 470948374, 303765277, 941896748, 908933415, 607530554, 708780849, 1883793496, 2118214995, 1817866830, 1649639237, 1215061108, 1181045119, 1417561698, 1517767529, 3767586992, 4003061179, 4236429990, 4069246893, 3635733660, 3602770327, 3299278474, 3400528769, 2430122216, 2664543715, 2362090238, 2193862645, 2835123396, 2801107407, 3035535058, 3135740889, 3678124923, 3576870512, 3341394285, 3374361702, 3810496343, 3977675356, 4279080257, 4043610186, 2876494627, 2776292904, 3076639029, 3110650942, 2472011535, 2640243204, 2403728665, 2169303058, 1001089995, 899835584, 666464733, 699432150, 59727847, 226906860, 530400753, 294930682, 1273168787, 1172967064, 1475418501, 1509430414, 1942435775, 2110667444, 1876241833, 1641816226, 2910219766, 2743034109, 2976151520, 3211623147, 2505202138, 2606453969, 2302690252, 2269728455, 3711829422, 3543599269, 3240894392, 3475313331, 3843699074, 3943906441, 4178062228, 4144047775, 1306967366, 1139781709, 1374988112, 1610459739, 1975683434, 2076935265, 1775276924, 1742315127, 1034867998, 866637845, 566021896, 800440835, 92987698, 193195065, 429456164, 395441711, 1984812685, 2017778566, 1784663195, 1683407248, 1315562145, 1080094634, 1383856311, 1551037884, 101039829, 135050206, 437757123, 337553864, 1042385657, 807962610, 573804783, 742039012, 2531067453, 2564033334, 2328828971, 2227573024, 2935566865, 2700099354, 3001755655, 3168937228, 3868552805, 3902563182, 4203181171, 4102977912, 3736164937, 3501741890, 3265478751, 3433712980, 1106041591, 1340463100, 1576976609, 1408749034, 2043211483, 2009195472, 1708848333, 1809054150, 832877231, 1068351396, 766945465, 599762354, 159417987, 126454664, 361929877, 463180190, 2709260871, 2943682380, 3178106961, 3009879386, 2572697195, 2538681184, 2236228733, 2336434550, 3509871135, 3745345300, 3441850377, 3274667266, 3910161971, 3877198648, 4110568485, 4211818798, 2597806476, 2497604743, 2261089178, 2295101073, 2733856160, 2902087851, 3202437046, 2968011453, 3936291284, 3835036895, 4136440770, 4169408201, 3535486456, 3702665459, 3467192302, 3231722213, 2051518780, 1951317047, 1716890410, 1750902305, 1113818384, 1282050075, 1584504582, 1350078989, 168810852, 67556463, 371049330, 404016761, 841739592, 1008918595, 775550814, 540080725, 3969562369, 3801332234, 4035489047, 4269907996, 3569255213, 3669462566, 3366754619, 3332740144, 2631065433, 2463879762, 2160117071, 2395588676, 2767645557, 2868897406, 3102011747, 3069049960, 202008497, 33778362, 270040487, 504459436, 875451293, 975658646, 675039627, 641025152, 2084704233, 1917518562, 1615861247, 1851332852, 1147550661, 1248802510, 1484005843, 1451044056, 933301370, 967311729, 733156972, 632953703, 260388950, 25965917, 328671808, 496906059, 1206477858, 1239443753, 1543208500, 1441952575, 2144161806, 1908694277, 1675577880, 1842759443, 3610369226, 3644379585, 3408119516, 3307916247, 4011190502, 3776767469, 4077384432, 4245618683, 2809771154, 2842737049, 3144396420, 3043140495, 2673705150, 2438237621, 2203032232, 2370213795],
  34060. Xt = [0, 185469197, 370938394, 487725847, 741876788, 657861945, 975451694, 824852259, 1483753576, 1400783205, 1315723890, 1164071807, 1950903388, 2135319889, 1649704518, 1767536459, 2967507152, 3152976349, 2801566410, 2918353863, 2631447780, 2547432937, 2328143614, 2177544179, 3901806776, 3818836405, 4270639778, 4118987695, 3299409036, 3483825537, 3535072918, 3652904859, 2077965243, 1893020342, 1841768865, 1724457132, 1474502543, 1559041666, 1107234197, 1257309336, 598438867, 681933534, 901210569, 1052338372, 261314535, 77422314, 428819965, 310463728, 3409685355, 3224740454, 3710368113, 3593056380, 3875770207, 3960309330, 4045380933, 4195456072, 2471224067, 2554718734, 2237133081, 2388260884, 3212035895, 3028143674, 2842678573, 2724322336, 4138563181, 4255350624, 3769721975, 3955191162, 3667219033, 3516619604, 3431546947, 3347532110, 2933734917, 2782082824, 3099667487, 3016697106, 2196052529, 2313884476, 2499348523, 2683765030, 1179510461, 1296297904, 1347548327, 1533017514, 1786102409, 1635502980, 2087309459, 2003294622, 507358933, 355706840, 136428751, 53458370, 839224033, 957055980, 605657339, 790073846, 2373340630, 2256028891, 2607439820, 2422494913, 2706270690, 2856345839, 3075636216, 3160175349, 3573941694, 3725069491, 3273267108, 3356761769, 4181598602, 4063242375, 4011996048, 3828103837, 1033297158, 915985419, 730517276, 545572369, 296679730, 446754879, 129166120, 213705253, 1709610350, 1860738147, 1945798516, 2029293177, 1239331162, 1120974935, 1606591296, 1422699085, 4148292826, 4233094615, 3781033664, 3931371469, 3682191598, 3497509347, 3446004468, 3328955385, 2939266226, 2755636671, 3106780840, 2988687269, 2198438022, 2282195339, 2501218972, 2652609425, 1201765386, 1286567175, 1371368976, 1521706781, 1805211710, 1620529459, 2105887268, 1988838185, 533804130, 350174575, 164439672, 46346101, 870912086, 954669403, 636813900, 788204353, 2358957921, 2274680428, 2592523643, 2441661558, 2695033685, 2880240216, 3065962831, 3182487618, 3572145929, 3756299780, 3270937875, 3388507166, 4174560061, 4091327024, 4006521127, 3854606378, 1014646705, 930369212, 711349675, 560487590, 272786309, 457992840, 106852767, 223377554, 1678381017, 1862534868, 1914052035, 2031621326, 1211247597, 1128014560, 1580087799, 1428173050, 32283319, 182621114, 401639597, 486441376, 768917123, 651868046, 1003007129, 818324884, 1503449823, 1385356242, 1333838021, 1150208456, 1973745387, 2125135846, 1673061617, 1756818940, 2970356327, 3120694122, 2802849917, 2887651696, 2637442643, 2520393566, 2334669897, 2149987652, 3917234703, 3799141122, 4284502037, 4100872472, 3309594171, 3460984630, 3545789473, 3629546796, 2050466060, 1899603969, 1814803222, 1730525723, 1443857720, 1560382517, 1075025698, 1260232239, 575138148, 692707433, 878443390, 1062597235, 243256656, 91341917, 409198410, 325965383, 3403100636, 3252238545, 3704300486, 3620022987, 3874428392, 3990953189, 4042459122, 4227665663, 2460449204, 2578018489, 2226875310, 2411029155, 3198115200, 3046200461, 2827177882, 2743944855],
  34061. Zt = [0, 218828297, 437656594, 387781147, 875313188, 958871085, 775562294, 590424639, 1750626376, 1699970625, 1917742170, 2135253587, 1551124588, 1367295589, 1180849278, 1265195639, 3501252752, 3720081049, 3399941250, 3350065803, 3835484340, 3919042237, 4270507174, 4085369519, 3102249176, 3051593425, 2734591178, 2952102595, 2361698556, 2177869557, 2530391278, 2614737639, 3145456443, 3060847922, 2708326185, 2892417312, 2404901663, 2187128086, 2504130317, 2555048196, 3542330227, 3727205754, 3375740769, 3292445032, 3876557655, 3926170974, 4246310725, 4027744588, 1808481195, 1723872674, 1910319033, 2094410160, 1608975247, 1391201670, 1173430173, 1224348052, 59984867, 244860394, 428169201, 344873464, 935293895, 984907214, 766078933, 547512796, 1844882806, 1627235199, 2011214180, 2062270317, 1507497298, 1423022939, 1137477952, 1321699145, 95345982, 145085239, 532201772, 313773861, 830661914, 1015671571, 731183368, 648017665, 3175501286, 2957853679, 2807058932, 2858115069, 2305455554, 2220981195, 2474404304, 2658625497, 3575528878, 3625268135, 3473416636, 3254988725, 3778151818, 3963161475, 4213447064, 4130281361, 3599595085, 3683022916, 3432737375, 3247465558, 3802222185, 4020912224, 4172763771, 4122762354, 3201631749, 3017672716, 2764249623, 2848461854, 2331590177, 2280796200, 2431590963, 2648976442, 104699613, 188127444, 472615631, 287343814, 840019705, 1058709744, 671593195, 621591778, 1852171925, 1668212892, 1953757831, 2037970062, 1514790577, 1463996600, 1080017571, 1297403050, 3673637356, 3623636965, 3235995134, 3454686199, 4007360968, 3822090177, 4107101658, 4190530515, 2997825956, 3215212461, 2830708150, 2779915199, 2256734592, 2340947849, 2627016082, 2443058075, 172466556, 122466165, 273792366, 492483431, 1047239e3, 861968209, 612205898, 695634755, 1646252340, 1863638845, 2013908262, 1963115311, 1446242576, 1530455833, 1277555970, 1093597963, 1636604631, 1820824798, 2073724613, 1989249228, 1436590835, 1487645946, 1337376481, 1119727848, 164948639, 81781910, 331544205, 516552836, 1039717051, 821288114, 669961897, 719700128, 2973530695, 3157750862, 2871682645, 2787207260, 2232435299, 2283490410, 2667994737, 2450346104, 3647212047, 3564045318, 3279033885, 3464042516, 3980931627, 3762502690, 4150144569, 4199882800, 3070356634, 3121275539, 2904027272, 2686254721, 2200818878, 2384911031, 2570832044, 2486224549, 3747192018, 3528626907, 3310321856, 3359936201, 3950355702, 3867060991, 4049844452, 4234721005, 1739656202, 1790575107, 2108100632, 1890328081, 1402811438, 1586903591, 1233856572, 1149249077, 266959938, 48394827, 369057872, 418672217, 1002783846, 919489135, 567498868, 752375421, 209336225, 24197544, 376187827, 459744698, 945164165, 895287692, 574624663, 793451934, 1679968233, 1764313568, 2117360635, 1933530610, 1343127501, 1560637892, 1243112415, 1192455638, 3704280881, 3519142200, 3336358691, 3419915562, 3907448597, 3857572124, 4075877127, 4294704398, 3029510009, 3113855344, 2927934315, 2744104290, 2159976285, 2377486676, 2594734927, 2544078150],
  34062. en = [0, 151849742, 303699484, 454499602, 607398968, 758720310, 908999204, 1059270954, 1214797936, 1097159550, 1517440620, 1400849762, 1817998408, 1699839814, 2118541908, 2001430874, 2429595872, 2581445614, 2194319100, 2345119218, 3034881240, 3186202582, 2801699524, 2951971274, 3635996816, 3518358430, 3399679628, 3283088770, 4237083816, 4118925222, 4002861748, 3885750714, 1002142683, 850817237, 698445255, 548169417, 529487843, 377642221, 227885567, 77089521, 1943217067, 2061379749, 1640576439, 1757691577, 1474760595, 1592394909, 1174215055, 1290801793, 2875968315, 2724642869, 3111247143, 2960971305, 2405426947, 2253581325, 2638606623, 2487810577, 3808662347, 3926825029, 4044981591, 4162096729, 3342319475, 3459953789, 3576539503, 3693126241, 1986918061, 2137062819, 1685577905, 1836772287, 1381620373, 1532285339, 1078185097, 1229899655, 1040559837, 923313619, 740276417, 621982671, 439452389, 322734571, 137073913, 19308535, 3871163981, 4021308739, 4104605777, 4255800159, 3263785589, 3414450555, 3499326569, 3651041127, 2933202493, 2815956275, 3167684641, 3049390895, 2330014213, 2213296395, 2566595609, 2448830231, 1305906550, 1155237496, 1607244650, 1455525988, 1776460110, 1626319424, 2079897426, 1928707164, 96392454, 213114376, 396673818, 514443284, 562755902, 679998e3, 865136418, 983426092, 3708173718, 3557504664, 3474729866, 3323011204, 4180808110, 4030667424, 3945269170, 3794078908, 2507040230, 2623762152, 2272556026, 2390325492, 2975484382, 3092726480, 2738905026, 2857194700, 3973773121, 3856137295, 4274053469, 4157467219, 3371096953, 3252932727, 3673476453, 3556361835, 2763173681, 2915017791, 3064510765, 3215307299, 2156299017, 2307622919, 2459735317, 2610011675, 2081048481, 1963412655, 1846563261, 1729977011, 1480485785, 1362321559, 1243905413, 1126790795, 878845905, 1030690015, 645401037, 796197571, 274084841, 425408743, 38544885, 188821243, 3613494426, 3731654548, 3313212038, 3430322568, 4082475170, 4200115116, 3780097726, 3896688048, 2668221674, 2516901860, 2366882550, 2216610296, 3141400786, 2989552604, 2837966542, 2687165888, 1202797690, 1320957812, 1437280870, 1554391400, 1669664834, 1787304780, 1906247262, 2022837584, 265905162, 114585348, 499347990, 349075736, 736970802, 585122620, 972512814, 821712160, 2595684844, 2478443234, 2293045232, 2174754046, 3196267988, 3079546586, 2895723464, 2777952454, 3537852828, 3687994002, 3234156416, 3385345166, 4142626212, 4293295786, 3841024952, 3992742070, 174567692, 57326082, 410887952, 292596766, 777231668, 660510266, 1011452712, 893681702, 1108339068, 1258480242, 1343618912, 1494807662, 1715193156, 1865862730, 1948373848, 2100090966, 2701949495, 2818666809, 3004591147, 3122358053, 2235061775, 2352307457, 2535604243, 2653899549, 3915653703, 3764988233, 4219352155, 4067639125, 3444575871, 3294430577, 3746175075, 3594982253, 836553431, 953270745, 600235211, 718002117, 367585007, 484830689, 133361907, 251657213, 2041877159, 1891211689, 1806599355, 1654886325, 1568718495, 1418573201, 1335535747, 1184342925];
  34063. function tn(e) {
  34064. for (var t = [], n = 0; n < e.length; n += 4) {
  34065. t.push(e[n] << 24 | e[n + 1] << 16 | e[n + 2] << 8 | e[n + 3]);
  34066. }
  34067. return t;
  34068. }
  34069. var nn = /*#__PURE__*/function () {
  34070. function nn(e) {
  34071. (0, _classCallCheck2.default)(this, nn);
  34072. if (!(this instanceof nn)) throw Error("AES must be instanitated with `new`");
  34073. Object.defineProperty(this, "key", {
  34074. value: Rt(e, !0)
  34075. }), this._prepare();
  34076. }
  34077. (0, _createClass2.default)(nn, [{
  34078. key: "_prepare",
  34079. value: function _prepare() {
  34080. var e = Kt[this.key.length];
  34081. if (null == e) throw new Error("invalid key size (must be 16, 24 or 32 bytes)");
  34082. this._Ke = [], this._Kd = [];
  34083. for (var t = 0; t <= e; t++) {
  34084. this._Ke.push([0, 0, 0, 0]), this._Kd.push([0, 0, 0, 0]);
  34085. }
  34086. var n,
  34087. s = 4 * (e + 1),
  34088. r = this.key.length / 4,
  34089. i = tn(this.key);
  34090. for (t = 0; t < r; t++) {
  34091. n = t >> 2, this._Ke[n][t % 4] = i[t], this._Kd[e - n][t % 4] = i[t];
  34092. }
  34093. for (var o, a = 0, c = r; c < s;) {
  34094. if (o = i[r - 1], i[0] ^= Mt[o >> 16 & 255] << 24 ^ Mt[o >> 8 & 255] << 16 ^ Mt[255 & o] << 8 ^ Mt[o >> 24 & 255] ^ jt[a] << 24, a += 1, 8 != r) for (t = 1; t < r; t++) {
  34095. i[t] ^= i[t - 1];
  34096. } else {
  34097. for (t = 1; t < r / 2; t++) {
  34098. i[t] ^= i[t - 1];
  34099. }
  34100. o = i[r / 2 - 1], i[r / 2] ^= Mt[255 & o] ^ Mt[o >> 8 & 255] << 8 ^ Mt[o >> 16 & 255] << 16 ^ Mt[o >> 24 & 255] << 24;
  34101. for (t = r / 2 + 1; t < r; t++) {
  34102. i[t] ^= i[t - 1];
  34103. }
  34104. }
  34105. for (t = 0; t < r && c < s;) {
  34106. u = c >> 2, l = c % 4, this._Ke[u][l] = i[t], this._Kd[e - u][l] = i[t++], c++;
  34107. }
  34108. }
  34109. for (var u = 1; u < e; u++) {
  34110. for (var l = 0; l < 4; l++) {
  34111. o = this._Kd[u][l], this._Kd[u][l] = Qt[o >> 24 & 255] ^ Xt[o >> 16 & 255] ^ Zt[o >> 8 & 255] ^ en[255 & o];
  34112. }
  34113. }
  34114. }
  34115. }, {
  34116. key: "encrypt",
  34117. value: function encrypt(e) {
  34118. if (16 != e.length) throw new Error("invalid plaintext size (must be 16 bytes)");
  34119. for (var t = this._Ke.length - 1, n = [0, 0, 0, 0], s = tn(e), r = 0; r < 4; r++) {
  34120. s[r] ^= this._Ke[0][r];
  34121. }
  34122. for (var i = 1; i < t; i++) {
  34123. for (r = 0; r < 4; r++) {
  34124. n[r] = $t[s[r] >> 24 & 255] ^ Wt[s[(r + 1) % 4] >> 16 & 255] ^ zt[s[(r + 2) % 4] >> 8 & 255] ^ Jt[255 & s[(r + 3) % 4]] ^ this._Ke[i][r];
  34125. }
  34126. s = n.slice();
  34127. }
  34128. var o,
  34129. a = Lt(16);
  34130. for (r = 0; r < 4; r++) {
  34131. o = this._Ke[t][r], a[4 * r] = 255 & (Mt[s[r] >> 24 & 255] ^ o >> 24), a[4 * r + 1] = 255 & (Mt[s[(r + 1) % 4] >> 16 & 255] ^ o >> 16), a[4 * r + 2] = 255 & (Mt[s[(r + 2) % 4] >> 8 & 255] ^ o >> 8), a[4 * r + 3] = 255 & (Mt[255 & s[(r + 3) % 4]] ^ o);
  34132. }
  34133. return a;
  34134. }
  34135. }, {
  34136. key: "decrypt",
  34137. value: function decrypt(e) {
  34138. if (16 != e.length) throw new Error("invalid ciphertext size (must be 16 bytes)");
  34139. for (var t = this._Kd.length - 1, n = [0, 0, 0, 0], s = tn(e), r = 0; r < 4; r++) {
  34140. s[r] ^= this._Kd[0][r];
  34141. }
  34142. for (var i = 1; i < t; i++) {
  34143. for (r = 0; r < 4; r++) {
  34144. n[r] = Ht[s[r] >> 24 & 255] ^ Gt[s[(r + 3) % 4] >> 16 & 255] ^ Vt[s[(r + 2) % 4] >> 8 & 255] ^ Yt[255 & s[(r + 1) % 4]] ^ this._Kd[i][r];
  34145. }
  34146. s = n.slice();
  34147. }
  34148. var o,
  34149. a = Lt(16);
  34150. for (r = 0; r < 4; r++) {
  34151. o = this._Kd[t][r], a[4 * r] = 255 & (Bt[s[r] >> 24 & 255] ^ o >> 24), a[4 * r + 1] = 255 & (Bt[s[(r + 3) % 4] >> 16 & 255] ^ o >> 16), a[4 * r + 2] = 255 & (Bt[s[(r + 2) % 4] >> 8 & 255] ^ o >> 8), a[4 * r + 3] = 255 & (Bt[255 & s[(r + 1) % 4]] ^ o);
  34152. }
  34153. return a;
  34154. }
  34155. }]);
  34156. return nn;
  34157. }();
  34158. var sn = /*#__PURE__*/function () {
  34159. function sn(e) {
  34160. (0, _classCallCheck2.default)(this, sn);
  34161. if (!(this instanceof sn)) throw Error("AES must be instanitated with `new`");
  34162. this.description = "Electronic Code Block", this.name = "ecb", this._aes = new nn(e);
  34163. }
  34164. (0, _createClass2.default)(sn, [{
  34165. key: "encrypt",
  34166. value: function encrypt(e) {
  34167. if ((e = Rt(e)).length % 16 != 0) throw new Error("invalid plaintext size (must be multiple of 16 bytes)");
  34168. for (var t = Lt(e.length), n = Lt(16), s = 0; s < e.length; s += 16) {
  34169. Nt(e, n, 0, s, s + 16), Nt(n = this._aes.encrypt(n), t, s);
  34170. }
  34171. return t;
  34172. }
  34173. }, {
  34174. key: "decrypt",
  34175. value: function decrypt(e) {
  34176. if ((e = Rt(e)).length % 16 != 0) throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");
  34177. for (var t = Lt(e.length), n = Lt(16), s = 0; s < e.length; s += 16) {
  34178. Nt(e, n, 0, s, s + 16), Nt(n = this._aes.decrypt(n), t, s);
  34179. }
  34180. return t;
  34181. }
  34182. }]);
  34183. return sn;
  34184. }();
  34185. var rn = /*#__PURE__*/function () {
  34186. function rn(e, t) {
  34187. (0, _classCallCheck2.default)(this, rn);
  34188. if (!(this instanceof rn)) throw Error("AES must be instanitated with `new`");
  34189. if (this.description = "Cipher Block Chaining", this.name = "cbc", t) {
  34190. if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 bytes)");
  34191. } else t = Lt(16);
  34192. this._lastCipherblock = Rt(t, !0), this._aes = new nn(e);
  34193. }
  34194. (0, _createClass2.default)(rn, [{
  34195. key: "encrypt",
  34196. value: function encrypt(e) {
  34197. if ((e = Rt(e)).length % 16 != 0) throw new Error("invalid plaintext size (must be multiple of 16 bytes)");
  34198. for (var t = Lt(e.length), n = Lt(16), s = 0; s < e.length; s += 16) {
  34199. Nt(e, n, 0, s, s + 16);
  34200. for (var r = 0; r < 16; r++) {
  34201. n[r] ^= this._lastCipherblock[r];
  34202. }
  34203. this._lastCipherblock = this._aes.encrypt(n), Nt(this._lastCipherblock, t, s);
  34204. }
  34205. return t;
  34206. }
  34207. }, {
  34208. key: "decrypt",
  34209. value: function decrypt(e) {
  34210. if ((e = Rt(e)).length % 16 != 0) throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");
  34211. for (var t = Lt(e.length), n = Lt(16), s = 0; s < e.length; s += 16) {
  34212. Nt(e, n, 0, s, s + 16), n = this._aes.decrypt(n);
  34213. for (var r = 0; r < 16; r++) {
  34214. t[s + r] = n[r] ^ this._lastCipherblock[r];
  34215. }
  34216. Nt(e, this._lastCipherblock, 0, s, s + 16);
  34217. }
  34218. return t;
  34219. }
  34220. }]);
  34221. return rn;
  34222. }();
  34223. var on = /*#__PURE__*/function () {
  34224. function on(e, t, n) {
  34225. (0, _classCallCheck2.default)(this, on);
  34226. if (!(this instanceof on)) throw Error("AES must be instanitated with `new`");
  34227. if (this.description = "Cipher Feedback", this.name = "cfb", t) {
  34228. if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 size)");
  34229. } else t = Lt(16);
  34230. n || (n = 1), this.segmentSize = n, this._shiftRegister = Rt(t, !0), this._aes = new nn(e);
  34231. }
  34232. (0, _createClass2.default)(on, [{
  34233. key: "encrypt",
  34234. value: function encrypt(e) {
  34235. if (e.length % this.segmentSize != 0) throw new Error("invalid plaintext size (must be segmentSize bytes)");
  34236. for (var t, n = Rt(e, !0), s = 0; s < n.length; s += this.segmentSize) {
  34237. t = this._aes.encrypt(this._shiftRegister);
  34238. for (var r = 0; r < this.segmentSize; r++) {
  34239. n[s + r] ^= t[r];
  34240. }
  34241. Nt(this._shiftRegister, this._shiftRegister, 0, this.segmentSize), Nt(n, this._shiftRegister, 16 - this.segmentSize, s, s + this.segmentSize);
  34242. }
  34243. return n;
  34244. }
  34245. }, {
  34246. key: "decrypt",
  34247. value: function decrypt(e) {
  34248. if (e.length % this.segmentSize != 0) throw new Error("invalid ciphertext size (must be segmentSize bytes)");
  34249. for (var t, n = Rt(e, !0), s = 0; s < n.length; s += this.segmentSize) {
  34250. t = this._aes.encrypt(this._shiftRegister);
  34251. for (var r = 0; r < this.segmentSize; r++) {
  34252. n[s + r] ^= t[r];
  34253. }
  34254. Nt(this._shiftRegister, this._shiftRegister, 0, this.segmentSize), Nt(e, this._shiftRegister, 16 - this.segmentSize, s, s + this.segmentSize);
  34255. }
  34256. return n;
  34257. }
  34258. }]);
  34259. return on;
  34260. }();
  34261. var an = /*#__PURE__*/function () {
  34262. function an(e, t) {
  34263. (0, _classCallCheck2.default)(this, an);
  34264. if (!(this instanceof an)) throw Error("AES must be instanitated with `new`");
  34265. if (this.description = "Output Feedback", this.name = "ofb", t) {
  34266. if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 bytes)");
  34267. } else t = Lt(16);
  34268. this._lastPrecipher = Rt(t, !0), this._lastPrecipherIndex = 16, this._aes = new nn(e);
  34269. }
  34270. (0, _createClass2.default)(an, [{
  34271. key: "encrypt",
  34272. value: function encrypt(e) {
  34273. for (var t = Rt(e, !0), n = 0; n < t.length; n++) {
  34274. 16 === this._lastPrecipherIndex && (this._lastPrecipher = this._aes.encrypt(this._lastPrecipher), this._lastPrecipherIndex = 0), t[n] ^= this._lastPrecipher[this._lastPrecipherIndex++];
  34275. }
  34276. return t;
  34277. }
  34278. }, {
  34279. key: "decrypt",
  34280. value: function decrypt(e) {
  34281. return this.encrypt(e);
  34282. }
  34283. }]);
  34284. return an;
  34285. }();
  34286. var cn = /*#__PURE__*/function () {
  34287. function cn(e) {
  34288. (0, _classCallCheck2.default)(this, cn);
  34289. if (!(this instanceof cn)) throw Error("Counter must be instanitated with `new`");
  34290. 0 === e || e || (e = 1), "number" == typeof e ? (this._counter = Lt(16), this.setValue(e)) : this.setBytes(e);
  34291. }
  34292. (0, _createClass2.default)(cn, [{
  34293. key: "setValue",
  34294. value: function setValue(e) {
  34295. if ("number" != typeof e || parseInt(e) != e) throw new Error("invalid counter value (must be an integer)");
  34296. if (e > Number.MAX_SAFE_INTEGER) throw new Error("integer value out of safe range");
  34297. for (var t = 15; t >= 0; --t) {
  34298. this._counter[t] = e % 256, e = parseInt(e / 256);
  34299. }
  34300. }
  34301. }, {
  34302. key: "setBytes",
  34303. value: function setBytes(e) {
  34304. if (16 != (e = Rt(e, !0)).length) throw new Error("invalid counter bytes size (must be 16 bytes)");
  34305. this._counter = e;
  34306. }
  34307. }, {
  34308. key: "increment",
  34309. value: function increment() {
  34310. for (var e = 15; e >= 0; e--) {
  34311. if (255 !== this._counter[e]) {
  34312. this._counter[e]++;
  34313. break;
  34314. }
  34315. this._counter[e] = 0;
  34316. }
  34317. }
  34318. }]);
  34319. return cn;
  34320. }();
  34321. var un = /*#__PURE__*/function () {
  34322. function un(e, t) {
  34323. (0, _classCallCheck2.default)(this, un);
  34324. if (!(this instanceof un)) throw Error("AES must be instanitated with `new`");
  34325. this.description = "Counter", this.name = "ctr", t instanceof cn || (t = new cn(t)), this._counter = t, this._remainingCounter = null, this._remainingCounterIndex = 16, this._aes = new nn(e);
  34326. }
  34327. (0, _createClass2.default)(un, [{
  34328. key: "encrypt",
  34329. value: function encrypt(e) {
  34330. for (var t = Rt(e, !0), n = 0; n < t.length; n++) {
  34331. 16 === this._remainingCounterIndex && (this._remainingCounter = this._aes.encrypt(this._counter._counter), this._remainingCounterIndex = 0, this._counter.increment()), t[n] ^= this._remainingCounter[this._remainingCounterIndex++];
  34332. }
  34333. return t;
  34334. }
  34335. }, {
  34336. key: "decrypt",
  34337. value: function decrypt(e) {
  34338. return this.encrypt(e);
  34339. }
  34340. }]);
  34341. return un;
  34342. }();
  34343. var ln = {
  34344. AES: nn,
  34345. Counter: cn,
  34346. ModeOfOperation: {
  34347. ecb: sn,
  34348. cbc: rn,
  34349. cfb: on,
  34350. ofb: an,
  34351. ctr: un
  34352. },
  34353. utils: {
  34354. hex: qt,
  34355. utf8: Ft
  34356. },
  34357. padding: {
  34358. pkcs7: {
  34359. pad: function pad(e) {
  34360. var t = 16 - (e = Rt(e, !0)).length % 16,
  34361. n = Lt(e.length + t);
  34362. Nt(e, n);
  34363. for (var s = e.length; s < n.length; s++) {
  34364. n[s] = t;
  34365. }
  34366. return n;
  34367. },
  34368. strip: function strip(e) {
  34369. if ((e = Rt(e, !0)).length < 16) throw new Error("PKCS#7 invalid length");
  34370. var t = e[e.length - 1];
  34371. if (t > 16) throw new Error("PKCS#7 padding byte out of range");
  34372. for (var n = e.length - t, s = 0; s < t; s++) {
  34373. if (e[n + s] !== t) throw new Error("PKCS#7 invalid padding byte");
  34374. }
  34375. var r = Lt(n);
  34376. return Nt(e, r, 0, 0, n), r;
  34377. }
  34378. }
  34379. },
  34380. _arrayTest: {
  34381. coerceArray: Rt,
  34382. createArray: Lt,
  34383. copyArray: Nt
  34384. }
  34385. };
  34386. function hn(e, t, n) {
  34387. var s = new Uint8Array(uni.base64ToArrayBuffer(t)),
  34388. r = ln.utils.utf8.toBytes(n),
  34389. i = ln.utils.utf8.toBytes(e),
  34390. o = new ln.ModeOfOperation.cbc(s, r),
  34391. a = ln.padding.pkcs7.pad(i),
  34392. c = o.encrypt(a);
  34393. return uni.arrayBufferToBase64(c);
  34394. }
  34395. var dn = {
  34396. code: 2e4,
  34397. message: "System error"
  34398. },
  34399. fn = {
  34400. code: 20101,
  34401. message: "Invalid client"
  34402. },
  34403. pn = {
  34404. code: 20102,
  34405. message: "Get encrypt key failed"
  34406. },
  34407. gn = {
  34408. 10001: "Secure network is not supported on current playground or unimpsdk",
  34409. 10003: "Config missing in current app. If the problem pesist, please contact DCloud.",
  34410. 10009: "Encrypt payload failed",
  34411. 10010: "Decrypt response failed"
  34412. };
  34413. function mn(e) {
  34414. var _ref28 = e || {},
  34415. t = _ref28.errSubject,
  34416. n = _ref28.subject,
  34417. s = _ref28.errCode,
  34418. r = _ref28.errMsg,
  34419. i = _ref28.code,
  34420. o = _ref28.message,
  34421. a = _ref28.cause;
  34422. return new Q({
  34423. subject: t || n || "uni-secure-network",
  34424. code: s || i || dn.code,
  34425. message: r || o,
  34426. cause: a
  34427. });
  34428. }
  34429. var yn,
  34430. _n,
  34431. wn = null;
  34432. var vn = /*#__PURE__*/function (_Ot) {
  34433. (0, _inherits2.default)(vn, _Ot);
  34434. var _super9 = _createSuper(vn);
  34435. function vn(e) {
  34436. var _this15;
  34437. (0, _classCallCheck2.default)(this, vn);
  34438. _this15 = _super9.call(this, e), _this15.userEncryptKey = null;
  34439. return _this15;
  34440. }
  34441. (0, _createClass2.default)(vn, [{
  34442. key: "isLogin",
  34443. value: function isLogin() {
  34444. return !!this.scopedGlobalCache.mpWeixinCode;
  34445. }
  34446. }, {
  34447. key: "prepare",
  34448. value: function () {
  34449. var _prepare2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee37() {
  34450. return _regenerator.default.wrap(function _callee37$(_context37) {
  34451. while (1) {
  34452. switch (_context37.prev = _context37.next) {
  34453. case 0:
  34454. if (this.isLogin()) {
  34455. _context37.next = 7;
  34456. break;
  34457. }
  34458. if (this.scopedGlobalCache.initPromise) {
  34459. _context37.next = 3;
  34460. break;
  34461. }
  34462. throw new Error("`uniCloud.initSecureNetworkByWeixin` has not yet been called");
  34463. case 3:
  34464. _context37.next = 5;
  34465. return this.scopedGlobalCache.initPromise;
  34466. case 5:
  34467. if (this.scopedGlobalCache.mpWeixinCode) {
  34468. _context37.next = 7;
  34469. break;
  34470. }
  34471. throw new Error("uniCloud.initSecureNetworkByWeixin` has not yet been called or successfully excuted");
  34472. case 7:
  34473. case "end":
  34474. return _context37.stop();
  34475. }
  34476. }
  34477. }, _callee37, this);
  34478. }));
  34479. function prepare() {
  34480. return _prepare2.apply(this, arguments);
  34481. }
  34482. return prepare;
  34483. }()
  34484. }, {
  34485. key: "getUserEncryptKey",
  34486. value: function () {
  34487. var _getUserEncryptKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee38() {
  34488. var _this16 = this;
  34489. var e;
  34490. return _regenerator.default.wrap(function _callee38$(_context38) {
  34491. while (1) {
  34492. switch (_context38.prev = _context38.next) {
  34493. case 0:
  34494. if (!this.userEncryptKey) {
  34495. _context38.next = 2;
  34496. break;
  34497. }
  34498. return _context38.abrupt("return", this.userEncryptKey);
  34499. case 2:
  34500. if (!(wn && wn.expireTime)) {
  34501. _context38.next = 6;
  34502. break;
  34503. }
  34504. e = Date.now();
  34505. if (!(wn.expireTime - e > 0)) {
  34506. _context38.next = 6;
  34507. break;
  34508. }
  34509. return _context38.abrupt("return", (this.userEncryptKey = wn, this.userEncryptKey));
  34510. case 6:
  34511. return _context38.abrupt("return", new Promise(function (e, t) {
  34512. uni.getUserCryptoManager().getLatestUserKey({
  34513. success: function success(t) {
  34514. wn = t, _this16.userEncryptKey = t, e(_this16.userEncryptKey);
  34515. },
  34516. fail: function fail(e) {
  34517. t(mn(_objectSpread(_objectSpread({}, pn), {}, {
  34518. cause: e
  34519. })));
  34520. }
  34521. });
  34522. }));
  34523. case 7:
  34524. case "end":
  34525. return _context38.stop();
  34526. }
  34527. }
  34528. }, _callee38, this);
  34529. }));
  34530. function getUserEncryptKey() {
  34531. return _getUserEncryptKey.apply(this, arguments);
  34532. }
  34533. return getUserEncryptKey;
  34534. }()
  34535. }, {
  34536. key: "getWxAppId",
  34537. value: function getWxAppId() {
  34538. return wx.getAccountInfoSync().miniProgram.appId;
  34539. }
  34540. }, {
  34541. key: "platformGetSignOption",
  34542. value: function () {
  34543. var _platformGetSignOption = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee39() {
  34544. var _yield$this$getUserEn, e, t, n;
  34545. return _regenerator.default.wrap(function _callee39$(_context39) {
  34546. while (1) {
  34547. switch (_context39.prev = _context39.next) {
  34548. case 0:
  34549. _context39.next = 2;
  34550. return this.getUserEncryptKey();
  34551. case 2:
  34552. _yield$this$getUserEn = _context39.sent;
  34553. e = _yield$this$getUserEn.encryptKey;
  34554. t = _yield$this$getUserEn.iv;
  34555. n = _yield$this$getUserEn.version;
  34556. return _context39.abrupt("return", {
  34557. verifyClientSign: hn(JSON.stringify({
  34558. data: JSON.stringify({}),
  34559. appId: this.appId,
  34560. deviceId: this.deviceId,
  34561. wxAppId: this.getWxAppId(),
  34562. simulator: "devtools" === re().platform,
  34563. timestamp: Date.now()
  34564. }), e, t),
  34565. encryptKeyId: n,
  34566. mpWeixinCode: this.scopedGlobalCache.mpWeixinCode
  34567. });
  34568. case 7:
  34569. case "end":
  34570. return _context39.stop();
  34571. }
  34572. }
  34573. }, _callee39, this);
  34574. }));
  34575. function platformGetSignOption() {
  34576. return _platformGetSignOption.apply(this, arguments);
  34577. }
  34578. return platformGetSignOption;
  34579. }()
  34580. }, {
  34581. key: "platformEncryptData",
  34582. value: function () {
  34583. var _platformEncryptData = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee40(e) {
  34584. var _yield$this$getUserEn2, t, n, s, r;
  34585. return _regenerator.default.wrap(function _callee40$(_context40) {
  34586. while (1) {
  34587. switch (_context40.prev = _context40.next) {
  34588. case 0:
  34589. _context40.next = 2;
  34590. return this.getUserEncryptKey();
  34591. case 2:
  34592. _yield$this$getUserEn2 = _context40.sent;
  34593. t = _yield$this$getUserEn2.encryptKey;
  34594. n = _yield$this$getUserEn2.iv;
  34595. s = _yield$this$getUserEn2.version;
  34596. r = {
  34597. secretType: this.secretType,
  34598. encryptKeyId: s,
  34599. mpWeixinCode: this.scopedGlobalCache.mpWeixinCode
  34600. };
  34601. return _context40.abrupt("return", this.secretType === Pt ? {
  34602. content: e,
  34603. _uniCloudOptions: r
  34604. } : {
  34605. content: hn(JSON.stringify({
  34606. data: JSON.stringify(e),
  34607. appId: this.appId,
  34608. deviceId: this.deviceId,
  34609. wxAppId: this.getWxAppId(),
  34610. simulator: "devtools" === re().platform,
  34611. timestamp: Date.now()
  34612. }), t, n),
  34613. _uniCloudOptions: r
  34614. });
  34615. case 8:
  34616. case "end":
  34617. return _context40.stop();
  34618. }
  34619. }
  34620. }, _callee40, this);
  34621. }));
  34622. function platformEncryptData(_x33) {
  34623. return _platformEncryptData.apply(this, arguments);
  34624. }
  34625. return platformEncryptData;
  34626. }()
  34627. }, {
  34628. key: "platformDecryptResult",
  34629. value: function () {
  34630. var _platformDecryptResult = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee41(e) {
  34631. var t, _yield$this$getUserEn3, n, s;
  34632. return _regenerator.default.wrap(function _callee41$(_context41) {
  34633. while (1) {
  34634. switch (_context41.prev = _context41.next) {
  34635. case 0:
  34636. t = e.content;
  34637. _context41.next = 3;
  34638. return this.getUserEncryptKey();
  34639. case 3:
  34640. _yield$this$getUserEn3 = _context41.sent;
  34641. n = _yield$this$getUserEn3.encryptKey;
  34642. s = _yield$this$getUserEn3.iv;
  34643. return _context41.abrupt("return", JSON.parse(function (e, t, n) {
  34644. var s = new Uint8Array(uni.base64ToArrayBuffer(e)),
  34645. r = new Uint8Array(uni.base64ToArrayBuffer(t)),
  34646. i = ln.utils.utf8.toBytes(n),
  34647. o = new ln.ModeOfOperation.cbc(r, i),
  34648. a = ln.padding.pkcs7.strip(o.decrypt(s));
  34649. return ln.utils.utf8.fromBytes(a);
  34650. }(t, n, s)));
  34651. case 7:
  34652. case "end":
  34653. return _context41.stop();
  34654. }
  34655. }
  34656. }, _callee41, this);
  34657. }));
  34658. function platformDecryptResult(_x34) {
  34659. return _platformDecryptResult.apply(this, arguments);
  34660. }
  34661. return platformDecryptResult;
  34662. }()
  34663. }]);
  34664. return vn;
  34665. }(Ot);
  34666. function Sn(e) {
  34667. var t = ["hasClientKey", "encryptGetClientKeyPayload", "setClientKey", "encrypt", "decrypt"],
  34668. n = {};
  34669. var _loop = function _loop(_s10) {
  34670. var r = t[_s10];
  34671. n[r] = function () {
  34672. for (var _len = arguments.length, t = new Array(_len), _key = 0; _key < _len; _key++) {
  34673. t[_key] = arguments[_key];
  34674. }
  34675. return new Promise(function (n, s) {
  34676. "function" == typeof e[r] ? e[r].apply(e, t.concat([function () {
  34677. var _ref29 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  34678. e = _ref29.type,
  34679. t = _ref29.data,
  34680. r = _ref29.errCode,
  34681. i = _ref29.errMsg,
  34682. o = _ref29.errSubject,
  34683. a = _ref29.message;
  34684. "success" === e ? n(t) : s(mn({
  34685. errCode: r,
  34686. errMsg: gn[r] || i || a,
  34687. errSubject: o
  34688. }));
  34689. }])) : s(mn({
  34690. message: "请检查manifest.json内是否开启安全网络模块,另外注意标准基座不支持安全网络模块"
  34691. }));
  34692. });
  34693. };
  34694. };
  34695. for (var _s10 = 0; _s10 < t.length; _s10++) {
  34696. _loop(_s10);
  34697. }
  34698. return n;
  34699. }
  34700. var kn = /*#__PURE__*/function (_Ot2) {
  34701. (0, _inherits2.default)(kn, _Ot2);
  34702. var _super10 = _createSuper(kn);
  34703. function kn(e) {
  34704. var _this17;
  34705. (0, _classCallCheck2.default)(this, kn);
  34706. _this17 = _super10.call(this, e), _this17.appUtils = _objectSpread({}, Sn(uni.requireNativePlugin("plus"))), _this17.systemInfo = yn || (yn = re());
  34707. return _this17;
  34708. }
  34709. (0, _createClass2.default)(kn, [{
  34710. key: "hasClientKey",
  34711. value: function () {
  34712. var _hasClientKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee42() {
  34713. return _regenerator.default.wrap(function _callee42$(_context42) {
  34714. while (1) {
  34715. switch (_context42.prev = _context42.next) {
  34716. case 0:
  34717. _context42.next = 2;
  34718. return this.appUtils.hasClientKey({
  34719. provider: this.provider,
  34720. spaceId: this.spaceId
  34721. });
  34722. case 2:
  34723. this._hasClientKey = _context42.sent;
  34724. return _context42.abrupt("return", this._hasClientKey);
  34725. case 4:
  34726. case "end":
  34727. return _context42.stop();
  34728. }
  34729. }
  34730. }, _callee42, this);
  34731. }));
  34732. function hasClientKey() {
  34733. return _hasClientKey.apply(this, arguments);
  34734. }
  34735. return hasClientKey;
  34736. }()
  34737. }, {
  34738. key: "getAppClientKey",
  34739. value: function () {
  34740. var _getAppClientKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee43() {
  34741. var _yield$this$appUtils$, e, t, n, s, r;
  34742. return _regenerator.default.wrap(function _callee43$(_context43) {
  34743. while (1) {
  34744. switch (_context43.prev = _context43.next) {
  34745. case 0:
  34746. _context43.next = 2;
  34747. return this.appUtils.encryptGetClientKeyPayload({
  34748. data: JSON.stringify({})
  34749. });
  34750. case 2:
  34751. _yield$this$appUtils$ = _context43.sent;
  34752. e = _yield$this$appUtils$.data;
  34753. t = _yield$this$appUtils$.key;
  34754. _context43.next = 7;
  34755. return this.uniCloudIns.callFunction({
  34756. name: "DCloud-clientDB",
  34757. data: {
  34758. redirectTo: "encryption",
  34759. action: "getAppClientKey",
  34760. data: e,
  34761. key: t
  34762. }
  34763. });
  34764. case 7:
  34765. _context43.t0 = _context43.sent.result;
  34766. if (_context43.t0) {
  34767. _context43.next = 10;
  34768. break;
  34769. }
  34770. _context43.t0 = {};
  34771. case 10:
  34772. n = _context43.t0;
  34773. if (!(0 !== n.errCode)) {
  34774. _context43.next = 13;
  34775. break;
  34776. }
  34777. throw function (e) {
  34778. return new Q({
  34779. subject: e.errSubject || "uni-secure-network",
  34780. code: e.errCode || e.code || dn.code,
  34781. message: e.errMsg || e.message
  34782. });
  34783. }(n);
  34784. case 13:
  34785. s = n.clientKey, r = n.key;
  34786. _context43.next = 16;
  34787. return this.appUtils.setClientKey({
  34788. provider: this.provider,
  34789. spaceId: this.spaceId,
  34790. clientKey: s,
  34791. key: r
  34792. });
  34793. case 16:
  34794. case "end":
  34795. return _context43.stop();
  34796. }
  34797. }
  34798. }, _callee43, this);
  34799. }));
  34800. function getAppClientKey() {
  34801. return _getAppClientKey.apply(this, arguments);
  34802. }
  34803. return getAppClientKey;
  34804. }()
  34805. }, {
  34806. key: "ensureClientKey",
  34807. value: function () {
  34808. var _ensureClientKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee44() {
  34809. var _this18 = this;
  34810. return _regenerator.default.wrap(function _callee44$(_context44) {
  34811. while (1) {
  34812. switch (_context44.prev = _context44.next) {
  34813. case 0:
  34814. _context44.t0 = !0;
  34815. _context44.next = 3;
  34816. return this.hasClientKey();
  34817. case 3:
  34818. _context44.t1 = _context44.sent;
  34819. if (!(_context44.t0 !== _context44.t1)) {
  34820. _context44.next = 6;
  34821. break;
  34822. }
  34823. return _context44.abrupt("return", (this.scopedGlobalCache.initPromise && "rejected" !== this.scopedGlobalCache.initStatus || (this.scopedGlobalCache.initPromise = this.getAppClientKey(), this.scopedGlobalCache.initPromise.then(function (e) {
  34824. _this18.scopedGlobalCache.initStatus = "fullfilled";
  34825. }).catch(function (e) {
  34826. throw _this18.scopedGlobalCache.initStatus = "rejected", e;
  34827. })), this.scopedGlobalCache.initPromise));
  34828. case 6:
  34829. case "end":
  34830. return _context44.stop();
  34831. }
  34832. }
  34833. }, _callee44, this);
  34834. }));
  34835. function ensureClientKey() {
  34836. return _ensureClientKey.apply(this, arguments);
  34837. }
  34838. return ensureClientKey;
  34839. }()
  34840. }, {
  34841. key: "prepare",
  34842. value: function () {
  34843. var _prepare3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee45() {
  34844. return _regenerator.default.wrap(function _callee45$(_context45) {
  34845. while (1) {
  34846. switch (_context45.prev = _context45.next) {
  34847. case 0:
  34848. _context45.next = 2;
  34849. return this.ensureClientKey();
  34850. case 2:
  34851. case "end":
  34852. return _context45.stop();
  34853. }
  34854. }
  34855. }, _callee45, this);
  34856. }));
  34857. function prepare() {
  34858. return _prepare3.apply(this, arguments);
  34859. }
  34860. return prepare;
  34861. }()
  34862. }, {
  34863. key: "platformGetSignOption",
  34864. value: function () {
  34865. var _platformGetSignOption2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee46() {
  34866. var _yield$this$appUtils$2, e, t;
  34867. return _regenerator.default.wrap(function _callee46$(_context46) {
  34868. while (1) {
  34869. switch (_context46.prev = _context46.next) {
  34870. case 0:
  34871. _context46.next = 2;
  34872. return this.appUtils.encrypt({
  34873. provider: this.provider,
  34874. spaceId: this.spaceId,
  34875. data: JSON.stringify({})
  34876. });
  34877. case 2:
  34878. _yield$this$appUtils$2 = _context46.sent;
  34879. e = _yield$this$appUtils$2.data;
  34880. t = _yield$this$appUtils$2.key;
  34881. return _context46.abrupt("return", {
  34882. verifyClientSign: e,
  34883. encryptKeyId: t
  34884. });
  34885. case 6:
  34886. case "end":
  34887. return _context46.stop();
  34888. }
  34889. }
  34890. }, _callee46, this);
  34891. }));
  34892. function platformGetSignOption() {
  34893. return _platformGetSignOption2.apply(this, arguments);
  34894. }
  34895. return platformGetSignOption;
  34896. }()
  34897. }, {
  34898. key: "platformEncryptData",
  34899. value: function () {
  34900. var _platformEncryptData2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee47(e) {
  34901. var _yield$this$appUtils$3, t, n, s;
  34902. return _regenerator.default.wrap(function _callee47$(_context47) {
  34903. while (1) {
  34904. switch (_context47.prev = _context47.next) {
  34905. case 0:
  34906. _context47.next = 2;
  34907. return this.appUtils.encrypt({
  34908. provider: this.provider,
  34909. spaceId: this.spaceId,
  34910. data: JSON.stringify(e)
  34911. });
  34912. case 2:
  34913. _yield$this$appUtils$3 = _context47.sent;
  34914. t = _yield$this$appUtils$3.data;
  34915. n = _yield$this$appUtils$3.key;
  34916. s = {
  34917. secretType: this.secretType,
  34918. encryptKeyId: n
  34919. };
  34920. return _context47.abrupt("return", this.secretType === Pt ? {
  34921. content: e,
  34922. _uniCloudOptions: s
  34923. } : {
  34924. content: t,
  34925. _uniCloudOptions: s
  34926. });
  34927. case 7:
  34928. case "end":
  34929. return _context47.stop();
  34930. }
  34931. }
  34932. }, _callee47, this);
  34933. }));
  34934. function platformEncryptData(_x35) {
  34935. return _platformEncryptData2.apply(this, arguments);
  34936. }
  34937. return platformEncryptData;
  34938. }()
  34939. }, {
  34940. key: "platformDecryptResult",
  34941. value: function () {
  34942. var _platformDecryptResult2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee48(e) {
  34943. var t, _e$_uniCloudOptions, n, s, r;
  34944. return _regenerator.default.wrap(function _callee48$(_context48) {
  34945. while (1) {
  34946. switch (_context48.prev = _context48.next) {
  34947. case 0:
  34948. t = e.content;
  34949. _e$_uniCloudOptions = e._uniCloudOptions;
  34950. n = _e$_uniCloudOptions === void 0 ? {} : _e$_uniCloudOptions;
  34951. s = n.encryptKeyId;
  34952. _context48.next = 6;
  34953. return this.appUtils.decrypt({
  34954. provider: this.provider,
  34955. spaceId: this.spaceId,
  34956. data: t,
  34957. key: s
  34958. });
  34959. case 6:
  34960. r = _context48.sent;
  34961. return _context48.abrupt("return", JSON.parse(r.data));
  34962. case 8:
  34963. case "end":
  34964. return _context48.stop();
  34965. }
  34966. }
  34967. }, _callee48, this);
  34968. }));
  34969. function platformDecryptResult(_x36) {
  34970. return _platformDecryptResult2.apply(this, arguments);
  34971. }
  34972. return platformDecryptResult;
  34973. }()
  34974. }]);
  34975. return kn;
  34976. }(Ot);
  34977. function In() {
  34978. var _ref30 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  34979. e = _ref30.secretType;
  34980. return e === Ct || e === Pt || e === Et;
  34981. }
  34982. function bn() {
  34983. var _ref31 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  34984. e = _ref31.name,
  34985. _ref31$data = _ref31.data,
  34986. t = _ref31$data === void 0 ? {} : _ref31$data;
  34987. return "app" === S && "DCloud-clientDB" === e && "encryption" === t.redirectTo && "getAppClientKey" === t.action;
  34988. }
  34989. function Tn() {
  34990. var _ref32 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  34991. e = _ref32.provider,
  34992. t = _ref32.spaceId,
  34993. n = _ref32.functionName;
  34994. var _re = re(),
  34995. s = _re.appId,
  34996. r = _re.uniPlatform,
  34997. i = _re.osName;
  34998. var o = r;
  34999. "app" === r && (o = i);
  35000. var a = function () {
  35001. var _ref33 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  35002. e = _ref33.provider,
  35003. t = _ref33.spaceId;
  35004. var n = v;
  35005. if (!n) return {};
  35006. e = function (e) {
  35007. return "tencent" === e ? "tcb" : e;
  35008. }(e);
  35009. var s = n.find(function (n) {
  35010. return n.provider === e && n.spaceId === t;
  35011. });
  35012. return s && s.config;
  35013. }({
  35014. provider: e,
  35015. spaceId: t
  35016. });
  35017. if (!a || !a.accessControl || !a.accessControl.enable) return !1;
  35018. var c = a.accessControl.function || {},
  35019. u = Object.keys(c);
  35020. if (0 === u.length) return !0;
  35021. var l = function (e, t) {
  35022. var n, s, r;
  35023. for (var _i2 = 0; _i2 < e.length; _i2++) {
  35024. var _o2 = e[_i2];
  35025. _o2 !== t ? "*" !== _o2 ? _o2.split(",").map(function (e) {
  35026. return e.trim();
  35027. }).indexOf(t) > -1 && (s = _o2) : r = _o2 : n = _o2;
  35028. }
  35029. return n || s || r;
  35030. }(u, n);
  35031. if (!l) return !1;
  35032. if ((c[l] || []).find(function () {
  35033. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  35034. return e.appId === s && (e.platform || "").toLowerCase() === o.toLowerCase();
  35035. })) return !0;
  35036. throw console.error("\u6B64\u5E94\u7528[appId: ".concat(s, ", platform: ").concat(o, "]\u4E0D\u5728\u4E91\u7AEF\u914D\u7F6E\u7684\u5141\u8BB8\u8BBF\u95EE\u7684\u5E94\u7528\u5217\u8868\u5185\uFF0C\u53C2\u8003\uFF1Ahttps://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client")), mn(fn);
  35037. }
  35038. function An(_ref34) {
  35039. var e = _ref34.functionName,
  35040. t = _ref34.result,
  35041. n = _ref34.logPvd;
  35042. if (this.__dev__.debugLog && t && t.requestId) {
  35043. var _s11 = JSON.stringify({
  35044. spaceId: this.config.spaceId,
  35045. functionName: e,
  35046. requestId: t.requestId
  35047. });
  35048. console.log("[".concat(n, "-request]").concat(_s11, "[/").concat(n, "-request]"));
  35049. }
  35050. }
  35051. function Cn(e) {
  35052. var t = e.callFunction,
  35053. n = function n(_n7) {
  35054. var _this19 = this;
  35055. var s = _n7.name;
  35056. _n7.data = vt.call(e, {
  35057. data: _n7.data
  35058. });
  35059. var r = {
  35060. aliyun: "aliyun",
  35061. tencent: "tcb",
  35062. tcb: "tcb"
  35063. }[this.config.provider],
  35064. i = In(_n7),
  35065. o = bn(_n7),
  35066. a = i || o;
  35067. return t.call(this, _n7).then(function (e) {
  35068. return e.errCode = 0, !a && An.call(_this19, {
  35069. functionName: s,
  35070. result: e,
  35071. logPvd: r
  35072. }), Promise.resolve(e);
  35073. }, function (e) {
  35074. return !a && An.call(_this19, {
  35075. functionName: s,
  35076. result: e,
  35077. logPvd: r
  35078. }), e && e.message && (e.message = function () {
  35079. var _ref35 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  35080. _ref35$message = _ref35.message,
  35081. e = _ref35$message === void 0 ? "" : _ref35$message,
  35082. _ref35$extraInfo = _ref35.extraInfo,
  35083. t = _ref35$extraInfo === void 0 ? {} : _ref35$extraInfo,
  35084. _ref35$formatter = _ref35.formatter,
  35085. n = _ref35$formatter === void 0 ? [] : _ref35$formatter;
  35086. for (var _s12 = 0; _s12 < n.length; _s12++) {
  35087. var _n$_s = n[_s12],
  35088. _r3 = _n$_s.rule,
  35089. _i3 = _n$_s.content,
  35090. _o3 = _n$_s.mode,
  35091. _a = e.match(_r3);
  35092. if (!_a) continue;
  35093. var _c = _i3;
  35094. for (var _e23 = 1; _e23 < _a.length; _e23++) {
  35095. _c = Tt(_c, "{$".concat(_e23, "}"), _a[_e23]);
  35096. }
  35097. for (var _e24 in t) {
  35098. _c = Tt(_c, "{".concat(_e24, "}"), t[_e24]);
  35099. }
  35100. return "replace" === _o3 ? _c : e + _c;
  35101. }
  35102. return e;
  35103. }({
  35104. message: "[".concat(_n7.name, "]: ").concat(e.message),
  35105. formatter: kt,
  35106. extraInfo: {
  35107. functionName: s
  35108. }
  35109. })), Promise.reject(e);
  35110. });
  35111. };
  35112. e.callFunction = function (t) {
  35113. var _e$config = e.config,
  35114. s = _e$config.provider,
  35115. r = _e$config.spaceId,
  35116. i = t.name;
  35117. var o, a;
  35118. if (t.data = t.data || {}, y && e.__dev__.debugInfo && !e.__dev__.debugInfo.forceRemote && I ? (e._callCloudFunction || (e._callCloudFunction = n, e._callLocalFunction = St), o = St) : o = n, o = o.bind(e), bn(t)) a = n.call(e, t);else if (function (_ref36) {
  35119. var e = _ref36.name,
  35120. _ref36$data = _ref36.data,
  35121. t = _ref36$data === void 0 ? {} : _ref36$data;
  35122. return "mp-weixin" === S && "uni-id-co" === e && "secureNetworkHandshakeByWeixin" === t.method;
  35123. }(t)) a = o.call(e, t);else if (In(t)) {
  35124. a = new _n({
  35125. secretType: t.secretType,
  35126. uniCloudIns: e
  35127. }).wrapEncryptDataCallFunction(n.bind(e))(t);
  35128. } else if (Tn({
  35129. provider: s,
  35130. spaceId: r,
  35131. functionName: i
  35132. })) {
  35133. a = new _n({
  35134. secretType: t.secretType,
  35135. uniCloudIns: e
  35136. }).wrapVerifyClientCallFunction(n.bind(e))(t);
  35137. } else a = o(t);
  35138. return Object.defineProperty(a, "result", {
  35139. get: function get() {
  35140. return console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"), {};
  35141. }
  35142. }), a;
  35143. };
  35144. }
  35145. _n = "mp-weixin" !== S && "app" !== S ? /*#__PURE__*/function () {
  35146. function _class2() {
  35147. (0, _classCallCheck2.default)(this, _class2);
  35148. throw mn({
  35149. message: "Platform ".concat(S, " is not supported by secure network")
  35150. });
  35151. }
  35152. return (0, _createClass2.default)(_class2);
  35153. }() : w ? "mp-weixin" === S ? vn : kn : /*#__PURE__*/function () {
  35154. function _class3() {
  35155. (0, _classCallCheck2.default)(this, _class3);
  35156. throw mn({
  35157. message: "Platform ".concat(S, " is not enabled, please check whether secure network module is enabled in your manifest.json")
  35158. });
  35159. }
  35160. return (0, _createClass2.default)(_class3);
  35161. }();
  35162. var Pn = Symbol("CLIENT_DB_INTERNAL");
  35163. function En(e, t) {
  35164. return e.then = "DoNotReturnProxyWithAFunctionNamedThen", e._internalType = Pn, e.inspect = null, e.__ob__ = void 0, new Proxy(e, {
  35165. get: function get(e, n, s) {
  35166. if ("_uniClient" === n) return null;
  35167. if ("symbol" == (0, _typeof2.default)(n)) return e[n];
  35168. if (n in e || "string" != typeof n) {
  35169. var _t10 = e[n];
  35170. return "function" == typeof _t10 ? _t10.bind(e) : _t10;
  35171. }
  35172. return t.get(e, n, s);
  35173. }
  35174. });
  35175. }
  35176. function On(e) {
  35177. return {
  35178. on: function on(t, n) {
  35179. e[t] = e[t] || [], e[t].indexOf(n) > -1 || e[t].push(n);
  35180. },
  35181. off: function off(t, n) {
  35182. e[t] = e[t] || [];
  35183. var s = e[t].indexOf(n);
  35184. -1 !== s && e[t].splice(s, 1);
  35185. }
  35186. };
  35187. }
  35188. var xn = ["db.Geo", "db.command", "command.aggregate"];
  35189. function Un(e, t) {
  35190. return xn.indexOf("".concat(e, ".").concat(t)) > -1;
  35191. }
  35192. function Rn(e) {
  35193. switch (d(e)) {
  35194. case "array":
  35195. return e.map(function (e) {
  35196. return Rn(e);
  35197. });
  35198. case "object":
  35199. return e._internalType === Pn || Object.keys(e).forEach(function (t) {
  35200. e[t] = Rn(e[t]);
  35201. }), e;
  35202. case "regexp":
  35203. return {
  35204. $regexp: {
  35205. source: e.source,
  35206. flags: e.flags
  35207. }
  35208. };
  35209. case "date":
  35210. return {
  35211. $date: e.toISOString()
  35212. };
  35213. default:
  35214. return e;
  35215. }
  35216. }
  35217. function Ln(e) {
  35218. return e && e.content && e.content.$method;
  35219. }
  35220. var Nn = /*#__PURE__*/function () {
  35221. function Nn(e, t, n) {
  35222. (0, _classCallCheck2.default)(this, Nn);
  35223. this.content = e, this.prevStage = t || null, this.udb = null, this._database = n;
  35224. }
  35225. (0, _createClass2.default)(Nn, [{
  35226. key: "toJSON",
  35227. value: function toJSON() {
  35228. var e = this;
  35229. var t = [e.content];
  35230. for (; e.prevStage;) {
  35231. e = e.prevStage, t.push(e.content);
  35232. }
  35233. return {
  35234. $db: t.reverse().map(function (e) {
  35235. return {
  35236. $method: e.$method,
  35237. $param: Rn(e.$param)
  35238. };
  35239. })
  35240. };
  35241. }
  35242. }, {
  35243. key: "getAction",
  35244. value: function getAction() {
  35245. var e = this.toJSON().$db.find(function (e) {
  35246. return "action" === e.$method;
  35247. });
  35248. return e && e.$param && e.$param[0];
  35249. }
  35250. }, {
  35251. key: "getCommand",
  35252. value: function getCommand() {
  35253. return {
  35254. $db: this.toJSON().$db.filter(function (e) {
  35255. return "action" !== e.$method;
  35256. })
  35257. };
  35258. }
  35259. }, {
  35260. key: "isAggregate",
  35261. get: function get() {
  35262. var e = this;
  35263. for (; e;) {
  35264. var t = Ln(e),
  35265. _n8 = Ln(e.prevStage);
  35266. if ("aggregate" === t && "collection" === _n8 || "pipeline" === t) return !0;
  35267. e = e.prevStage;
  35268. }
  35269. return !1;
  35270. }
  35271. }, {
  35272. key: "isCommand",
  35273. get: function get() {
  35274. var e = this;
  35275. for (; e;) {
  35276. if ("command" === Ln(e)) return !0;
  35277. e = e.prevStage;
  35278. }
  35279. return !1;
  35280. }
  35281. }, {
  35282. key: "isAggregateCommand",
  35283. get: function get() {
  35284. var e = this;
  35285. for (; e;) {
  35286. var t = Ln(e),
  35287. _n9 = Ln(e.prevStage);
  35288. if ("aggregate" === t && "command" === _n9) return !0;
  35289. e = e.prevStage;
  35290. }
  35291. return !1;
  35292. }
  35293. }, {
  35294. key: "getNextStageFn",
  35295. value: function getNextStageFn(e) {
  35296. var t = this;
  35297. return function () {
  35298. return Dn({
  35299. $method: e,
  35300. $param: Rn(Array.from(arguments))
  35301. }, t, t._database);
  35302. };
  35303. }
  35304. }, {
  35305. key: "count",
  35306. get: function get() {
  35307. return this.isAggregate ? this.getNextStageFn("count") : function () {
  35308. return this._send("count", Array.from(arguments));
  35309. };
  35310. }
  35311. }, {
  35312. key: "remove",
  35313. get: function get() {
  35314. return this.isCommand ? this.getNextStageFn("remove") : function () {
  35315. return this._send("remove", Array.from(arguments));
  35316. };
  35317. }
  35318. }, {
  35319. key: "get",
  35320. value: function get() {
  35321. return this._send("get", Array.from(arguments));
  35322. }
  35323. }, {
  35324. key: "add",
  35325. get: function get() {
  35326. return this.isCommand ? this.getNextStageFn("add") : function () {
  35327. return this._send("add", Array.from(arguments));
  35328. };
  35329. }
  35330. }, {
  35331. key: "update",
  35332. value: function update() {
  35333. return this._send("update", Array.from(arguments));
  35334. }
  35335. }, {
  35336. key: "end",
  35337. value: function end() {
  35338. return this._send("end", Array.from(arguments));
  35339. }
  35340. }, {
  35341. key: "set",
  35342. get: function get() {
  35343. return this.isCommand ? this.getNextStageFn("set") : function () {
  35344. throw new Error("JQL禁止使用set方法");
  35345. };
  35346. }
  35347. }, {
  35348. key: "_send",
  35349. value: function _send(e, t) {
  35350. var n = this.getAction(),
  35351. s = this.getCommand();
  35352. if (s.$db.push({
  35353. $method: e,
  35354. $param: Rn(t)
  35355. }), y) {
  35356. var _e25 = s.$db.find(function (e) {
  35357. return "collection" === e.$method;
  35358. }),
  35359. _t11 = _e25 && _e25.$param;
  35360. _t11 && 1 === _t11.length && "string" == typeof _e25.$param[0] && _e25.$param[0].indexOf(",") > -1 && console.warn("检测到使用JQL语法联表查询时,未使用getTemp先过滤主表数据,在主表数据量大的情况下可能会查询缓慢。\n- 如何优化请参考此文档:https://uniapp.dcloud.net.cn/uniCloud/jql?id=lookup-with-temp \n- 如果主表数据量很小请忽略此信息,项目发行时不会出现此提示。");
  35361. }
  35362. return this._database._callCloudFunction({
  35363. action: n,
  35364. command: s
  35365. });
  35366. }
  35367. }]);
  35368. return Nn;
  35369. }();
  35370. function Dn(e, t, n) {
  35371. return En(new Nn(e, t, n), {
  35372. get: function get(e, t) {
  35373. var s = "db";
  35374. return e && e.content && (s = e.content.$method), Un(s, t) ? Dn({
  35375. $method: t
  35376. }, e, n) : function () {
  35377. return Dn({
  35378. $method: t,
  35379. $param: Rn(Array.from(arguments))
  35380. }, e, n);
  35381. };
  35382. }
  35383. });
  35384. }
  35385. function Fn(_ref37) {
  35386. var e = _ref37.path,
  35387. t = _ref37.method;
  35388. return /*#__PURE__*/function () {
  35389. function _class4() {
  35390. (0, _classCallCheck2.default)(this, _class4);
  35391. this.param = Array.from(arguments);
  35392. }
  35393. (0, _createClass2.default)(_class4, [{
  35394. key: "toJSON",
  35395. value: function toJSON() {
  35396. return {
  35397. $newDb: [].concat((0, _toConsumableArray2.default)(e.map(function (e) {
  35398. return {
  35399. $method: e
  35400. };
  35401. })), [{
  35402. $method: t,
  35403. $param: this.param
  35404. }])
  35405. };
  35406. }
  35407. }]);
  35408. return _class4;
  35409. }();
  35410. }
  35411. function qn(e) {
  35412. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  35413. return En(new e(t), {
  35414. get: function get(e, t) {
  35415. return Un("db", t) ? Dn({
  35416. $method: t
  35417. }, null, e) : function () {
  35418. return Dn({
  35419. $method: t,
  35420. $param: Rn(Array.from(arguments))
  35421. }, null, e);
  35422. };
  35423. }
  35424. });
  35425. }
  35426. var Kn = /*#__PURE__*/function (_ref38) {
  35427. (0, _inherits2.default)(Kn, _ref38);
  35428. var _super11 = _createSuper(Kn);
  35429. function Kn() {
  35430. (0, _classCallCheck2.default)(this, Kn);
  35431. return _super11.apply(this, arguments);
  35432. }
  35433. (0, _createClass2.default)(Kn, [{
  35434. key: "_parseResult",
  35435. value: function _parseResult(e) {
  35436. return this._isJQL ? e.result : e;
  35437. }
  35438. }, {
  35439. key: "_callCloudFunction",
  35440. value: function _callCloudFunction(_ref39) {
  35441. var _this20 = this;
  35442. var e = _ref39.action,
  35443. t = _ref39.command,
  35444. n = _ref39.multiCommand,
  35445. s = _ref39.queryList;
  35446. function r(e, t) {
  35447. if (n && s) for (var _n10 = 0; _n10 < s.length; _n10++) {
  35448. var _r4 = s[_n10];
  35449. _r4.udb && "function" == typeof _r4.udb.setResult && (t ? _r4.udb.setResult(t) : _r4.udb.setResult(e.result.dataList[_n10]));
  35450. }
  35451. }
  35452. var i = this,
  35453. o = this._isJQL ? "databaseForJQL" : "database";
  35454. function a(e) {
  35455. return i._callback("error", [e]), U(R(o, "fail"), e).then(function () {
  35456. return U(R(o, "complete"), e);
  35457. }).then(function () {
  35458. return r(null, e), z(D, {
  35459. type: K,
  35460. content: e
  35461. }), Promise.reject(e);
  35462. });
  35463. }
  35464. var c = U(R(o, "invoke")),
  35465. u = this._uniClient;
  35466. return c.then(function () {
  35467. return u.callFunction({
  35468. name: "DCloud-clientDB",
  35469. type: h,
  35470. data: {
  35471. action: e,
  35472. command: t,
  35473. multiCommand: n
  35474. }
  35475. });
  35476. }).then(function (e) {
  35477. var _e$result = e.result,
  35478. t = _e$result.code,
  35479. n = _e$result.message,
  35480. s = _e$result.token,
  35481. c = _e$result.tokenExpired,
  35482. _e$result$systemInfo = _e$result.systemInfo,
  35483. u = _e$result$systemInfo === void 0 ? [] : _e$result$systemInfo;
  35484. if (u) for (var _e26 = 0; _e26 < u.length; _e26++) {
  35485. var _u$_e = u[_e26],
  35486. _t12 = _u$_e.level,
  35487. _n11 = _u$_e.message,
  35488. _s13 = _u$_e.detail,
  35489. _r5 = console["app" === S && "warn" === _t12 ? "error" : _t12] || console.log;
  35490. var _i4 = "[System Info]" + _n11;
  35491. _s13 && (_i4 = "".concat(_i4, "\n\u8BE6\u7EC6\u4FE1\u606F\uFF1A").concat(_s13)), _r5(_i4);
  35492. }
  35493. if (t) {
  35494. return a(new Q({
  35495. code: t,
  35496. message: n,
  35497. requestId: e.requestId
  35498. }));
  35499. }
  35500. e.result.errCode = e.result.errCode || e.result.code, e.result.errMsg = e.result.errMsg || e.result.message, s && c && (ee({
  35501. token: s,
  35502. tokenExpired: c
  35503. }), _this20._callbackAuth("refreshToken", [{
  35504. token: s,
  35505. tokenExpired: c
  35506. }]), _this20._callback("refreshToken", [{
  35507. token: s,
  35508. tokenExpired: c
  35509. }]), z(q, {
  35510. token: s,
  35511. tokenExpired: c
  35512. }));
  35513. var l = [{
  35514. prop: "affectedDocs",
  35515. tips: "affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代"
  35516. }, {
  35517. prop: "code",
  35518. tips: "code不再推荐使用,请使用errCode替代"
  35519. }, {
  35520. prop: "message",
  35521. tips: "message不再推荐使用,请使用errMsg替代"
  35522. }];
  35523. var _loop2 = function _loop2(_t13) {
  35524. var _l$_t = l[_t13],
  35525. n = _l$_t.prop,
  35526. s = _l$_t.tips;
  35527. if (n in e.result) {
  35528. var _t14 = e.result[n];
  35529. Object.defineProperty(e.result, n, {
  35530. get: function get() {
  35531. return console.warn(s), _t14;
  35532. }
  35533. });
  35534. }
  35535. };
  35536. for (var _t13 = 0; _t13 < l.length; _t13++) {
  35537. _loop2(_t13);
  35538. }
  35539. return function (e) {
  35540. return U(R(o, "success"), e).then(function () {
  35541. return U(R(o, "complete"), e);
  35542. }).then(function () {
  35543. r(e, null);
  35544. var t = i._parseResult(e);
  35545. return z(D, {
  35546. type: K,
  35547. content: t
  35548. }), Promise.resolve(t);
  35549. });
  35550. }(e);
  35551. }, function (e) {
  35552. /fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message) && console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB");
  35553. return a(new Q({
  35554. code: e.code || "SYSTEM_ERROR",
  35555. message: e.message,
  35556. requestId: e.requestId
  35557. }));
  35558. });
  35559. }
  35560. }]);
  35561. return Kn;
  35562. }( /*#__PURE__*/function () {
  35563. function _class5() {
  35564. var _ref40 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  35565. _ref40$uniClient = _ref40.uniClient,
  35566. e = _ref40$uniClient === void 0 ? {} : _ref40$uniClient,
  35567. _ref40$isJQL = _ref40.isJQL,
  35568. t = _ref40$isJQL === void 0 ? !1 : _ref40$isJQL;
  35569. (0, _classCallCheck2.default)(this, _class5);
  35570. this._uniClient = e, this._authCallBacks = {}, this._dbCallBacks = {}, e.isDefault && (this._dbCallBacks = C("_globalUniCloudDatabaseCallback")), t || (this.auth = On(this._authCallBacks)), this._isJQL = t, Object.assign(this, On(this._dbCallBacks)), this.env = En({}, {
  35571. get: function get(e, t) {
  35572. return {
  35573. $env: t
  35574. };
  35575. }
  35576. }), this.Geo = En({}, {
  35577. get: function get(e, t) {
  35578. return Fn({
  35579. path: ["Geo"],
  35580. method: t
  35581. });
  35582. }
  35583. }), this.serverDate = Fn({
  35584. path: [],
  35585. method: "serverDate"
  35586. }), this.RegExp = Fn({
  35587. path: [],
  35588. method: "RegExp"
  35589. });
  35590. }
  35591. (0, _createClass2.default)(_class5, [{
  35592. key: "getCloudEnv",
  35593. value: function getCloudEnv(e) {
  35594. if ("string" != typeof e || !e.trim()) throw new Error("getCloudEnv参数错误");
  35595. return {
  35596. $env: e.replace("$cloudEnv_", "")
  35597. };
  35598. }
  35599. }, {
  35600. key: "_callback",
  35601. value: function _callback(e, t) {
  35602. var n = this._dbCallBacks;
  35603. n[e] && n[e].forEach(function (e) {
  35604. e.apply(void 0, (0, _toConsumableArray2.default)(t));
  35605. });
  35606. }
  35607. }, {
  35608. key: "_callbackAuth",
  35609. value: function _callbackAuth(e, t) {
  35610. var n = this._authCallBacks;
  35611. n[e] && n[e].forEach(function (e) {
  35612. e.apply(void 0, (0, _toConsumableArray2.default)(t));
  35613. });
  35614. }
  35615. }, {
  35616. key: "multiSend",
  35617. value: function multiSend() {
  35618. var e = Array.from(arguments),
  35619. t = e.map(function (e) {
  35620. var t = e.getAction(),
  35621. n = e.getCommand();
  35622. if ("getTemp" !== n.$db[n.$db.length - 1].$method) throw new Error("multiSend只支持子命令内使用getTemp");
  35623. return {
  35624. action: t,
  35625. command: n
  35626. };
  35627. });
  35628. return this._callCloudFunction({
  35629. multiCommand: t,
  35630. queryList: e
  35631. });
  35632. }
  35633. }]);
  35634. return _class5;
  35635. }());
  35636. var jn = "token无效,跳转登录页面",
  35637. Mn = "token过期,跳转登录页面",
  35638. Bn = {
  35639. TOKEN_INVALID_TOKEN_EXPIRED: Mn,
  35640. TOKEN_INVALID_INVALID_CLIENTID: jn,
  35641. TOKEN_INVALID: jn,
  35642. TOKEN_INVALID_WRONG_TOKEN: jn,
  35643. TOKEN_INVALID_ANONYMOUS_USER: jn
  35644. },
  35645. $n = {
  35646. "uni-id-token-expired": Mn,
  35647. "uni-id-check-token-failed": jn,
  35648. "uni-id-token-not-exist": jn,
  35649. "uni-id-check-device-feature-failed": jn
  35650. };
  35651. function Wn(e, t) {
  35652. var n = "";
  35653. return n = e ? "".concat(e, "/").concat(t) : t, n.replace(/^\//, "");
  35654. }
  35655. function zn() {
  35656. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  35657. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
  35658. var n = [],
  35659. s = [];
  35660. return e.forEach(function (e) {
  35661. !0 === e.needLogin ? n.push(Wn(t, e.path)) : !1 === e.needLogin && s.push(Wn(t, e.path));
  35662. }), {
  35663. needLoginPage: n,
  35664. notNeedLoginPage: s
  35665. };
  35666. }
  35667. function Jn(e) {
  35668. return e.split("?")[0].replace(/^\//, "");
  35669. }
  35670. function Hn() {
  35671. return function (e) {
  35672. var t = e && e.$page && e.$page.fullPath || "";
  35673. return t ? ("/" !== t.charAt(0) && (t = "/" + t), t) : t;
  35674. }(function () {
  35675. var e = getCurrentPages();
  35676. return e[e.length - 1];
  35677. }());
  35678. }
  35679. function Gn() {
  35680. return Jn(Hn());
  35681. }
  35682. function Vn() {
  35683. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  35684. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  35685. if (!e) return !1;
  35686. if (!(t && t.list && t.list.length)) return !1;
  35687. var n = t.list,
  35688. s = Jn(e);
  35689. return n.some(function (e) {
  35690. return e.pagePath === s;
  35691. });
  35692. }
  35693. var Yn = !!_pages.default.uniIdRouter;
  35694. var _ref41 = function () {
  35695. var _ref24 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _pages.default,
  35696. _ref24$pages = _ref24.pages,
  35697. e = _ref24$pages === void 0 ? [] : _ref24$pages,
  35698. _ref24$subPackages = _ref24.subPackages,
  35699. n = _ref24$subPackages === void 0 ? [] : _ref24$subPackages,
  35700. _ref24$uniIdRouter = _ref24.uniIdRouter,
  35701. s = _ref24$uniIdRouter === void 0 ? {} : _ref24$uniIdRouter,
  35702. _ref24$tabBar = _ref24.tabBar,
  35703. r = _ref24$tabBar === void 0 ? {} : _ref24$tabBar;
  35704. var i = s.loginPage,
  35705. _s$needLogin = s.needLogin,
  35706. o = _s$needLogin === void 0 ? [] : _s$needLogin,
  35707. _s$resToLogin = s.resToLogin,
  35708. a = _s$resToLogin === void 0 ? !0 : _s$resToLogin,
  35709. _zn = zn(e),
  35710. c = _zn.needLoginPage,
  35711. u = _zn.notNeedLoginPage,
  35712. _ref26 = function () {
  35713. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  35714. var t = [],
  35715. n = [];
  35716. return e.forEach(function (e) {
  35717. var s = e.root,
  35718. _e$pages = e.pages,
  35719. r = _e$pages === void 0 ? [] : _e$pages,
  35720. _zn2 = zn(r, s),
  35721. i = _zn2.needLoginPage,
  35722. o = _zn2.notNeedLoginPage;
  35723. t.push.apply(t, (0, _toConsumableArray2.default)(i)), n.push.apply(n, (0, _toConsumableArray2.default)(o));
  35724. }), {
  35725. needLoginPage: t,
  35726. notNeedLoginPage: n
  35727. };
  35728. }(n),
  35729. l = _ref26.needLoginPage,
  35730. h = _ref26.notNeedLoginPage;
  35731. return {
  35732. loginPage: i,
  35733. routerNeedLogin: o,
  35734. resToLogin: a,
  35735. needLoginPage: [].concat((0, _toConsumableArray2.default)(c), (0, _toConsumableArray2.default)(l)),
  35736. notNeedLoginPage: [].concat((0, _toConsumableArray2.default)(u), (0, _toConsumableArray2.default)(h)),
  35737. loginPageInTabBar: Vn(i, r)
  35738. };
  35739. }(),
  35740. Qn = _ref41.loginPage,
  35741. Xn = _ref41.routerNeedLogin,
  35742. Zn = _ref41.resToLogin,
  35743. es = _ref41.needLoginPage,
  35744. ts = _ref41.notNeedLoginPage,
  35745. ns = _ref41.loginPageInTabBar;
  35746. if (es.indexOf(Qn) > -1) throw new Error("Login page [".concat(Qn, "] should not be \"needLogin\", please check your pages.json"));
  35747. function ss(e) {
  35748. var t = Gn();
  35749. if ("/" === e.charAt(0)) return e;
  35750. var _e$split = e.split("?"),
  35751. _e$split2 = (0, _slicedToArray2.default)(_e$split, 2),
  35752. n = _e$split2[0],
  35753. s = _e$split2[1],
  35754. r = n.replace(/^\//, "").split("/"),
  35755. i = t.split("/");
  35756. i.pop();
  35757. for (var _e27 = 0; _e27 < r.length; _e27++) {
  35758. var _t15 = r[_e27];
  35759. ".." === _t15 ? i.pop() : "." !== _t15 && i.push(_t15);
  35760. }
  35761. return "" === i[0] && i.shift(), "/" + i.join("/") + (s ? "?" + s : "");
  35762. }
  35763. function rs(e) {
  35764. var t = Jn(ss(e));
  35765. return !(ts.indexOf(t) > -1) && (es.indexOf(t) > -1 || Xn.some(function (t) {
  35766. return function (e, t) {
  35767. return new RegExp(t).test(e);
  35768. }(e, t);
  35769. }));
  35770. }
  35771. function is(_ref42) {
  35772. var e = _ref42.redirect;
  35773. var t = Jn(e),
  35774. n = Jn(Qn);
  35775. return Gn() !== n && t !== n;
  35776. }
  35777. function os() {
  35778. var _ref43 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  35779. e = _ref43.api,
  35780. t = _ref43.redirect;
  35781. if (!t || !is({
  35782. redirect: t
  35783. })) return;
  35784. var n = function (e, t) {
  35785. return "/" !== e.charAt(0) && (e = "/" + e), t ? e.indexOf("?") > -1 ? e + "&uniIdRedirectUrl=".concat(encodeURIComponent(t)) : e + "?uniIdRedirectUrl=".concat(encodeURIComponent(t)) : e;
  35786. }(Qn, t);
  35787. ns ? "navigateTo" !== e && "redirectTo" !== e || (e = "switchTab") : "switchTab" === e && (e = "navigateTo");
  35788. var s = {
  35789. navigateTo: uni.navigateTo,
  35790. redirectTo: uni.redirectTo,
  35791. switchTab: uni.switchTab,
  35792. reLaunch: uni.reLaunch
  35793. };
  35794. setTimeout(function () {
  35795. s[e]({
  35796. url: n
  35797. });
  35798. });
  35799. }
  35800. function as() {
  35801. var _ref44 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  35802. e = _ref44.url;
  35803. var t = {
  35804. abortLoginPageJump: !1,
  35805. autoToLoginPage: !1
  35806. },
  35807. n = function () {
  35808. var _Z3 = Z(),
  35809. e = _Z3.token,
  35810. t = _Z3.tokenExpired;
  35811. var n;
  35812. if (e) {
  35813. if (t < Date.now()) {
  35814. var _e28 = "uni-id-token-expired";
  35815. n = {
  35816. errCode: _e28,
  35817. errMsg: $n[_e28]
  35818. };
  35819. }
  35820. } else {
  35821. var _e29 = "uni-id-check-token-failed";
  35822. n = {
  35823. errCode: _e29,
  35824. errMsg: $n[_e29]
  35825. };
  35826. }
  35827. return n;
  35828. }();
  35829. if (rs(e) && n) {
  35830. n.uniIdRedirectUrl = e;
  35831. if (B(F).length > 0) return setTimeout(function () {
  35832. z(F, n);
  35833. }, 0), t.abortLoginPageJump = !0, t;
  35834. t.autoToLoginPage = !0;
  35835. }
  35836. return t;
  35837. }
  35838. function cs() {
  35839. !function () {
  35840. var e = Hn(),
  35841. _as = as({
  35842. url: e
  35843. }),
  35844. t = _as.abortLoginPageJump,
  35845. n = _as.autoToLoginPage;
  35846. t || n && os({
  35847. api: "redirectTo",
  35848. redirect: e
  35849. });
  35850. }();
  35851. var e = ["navigateTo", "redirectTo", "reLaunch", "switchTab"];
  35852. var _loop3 = function _loop3(_t16) {
  35853. var n = e[_t16];
  35854. uni.addInterceptor(n, {
  35855. invoke: function invoke(e) {
  35856. var _as2 = as({
  35857. url: e.url
  35858. }),
  35859. t = _as2.abortLoginPageJump,
  35860. s = _as2.autoToLoginPage;
  35861. return t ? e : s ? (os({
  35862. api: n,
  35863. redirect: ss(e.url)
  35864. }), !1) : e;
  35865. }
  35866. });
  35867. };
  35868. for (var _t16 = 0; _t16 < e.length; _t16++) {
  35869. _loop3(_t16);
  35870. }
  35871. }
  35872. function us() {
  35873. this.onResponse(function (e) {
  35874. var t = e.type,
  35875. n = e.content;
  35876. var s = !1;
  35877. switch (t) {
  35878. case "cloudobject":
  35879. s = function (e) {
  35880. if ("object" != (0, _typeof2.default)(e)) return !1;
  35881. var _ref45 = e || {},
  35882. t = _ref45.errCode;
  35883. return t in $n;
  35884. }(n);
  35885. break;
  35886. case "clientdb":
  35887. s = function (e) {
  35888. if ("object" != (0, _typeof2.default)(e)) return !1;
  35889. var _ref46 = e || {},
  35890. t = _ref46.errCode;
  35891. return t in Bn;
  35892. }(n);
  35893. }
  35894. s && function () {
  35895. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  35896. var t = B(F);
  35897. G().then(function () {
  35898. var n = Hn();
  35899. if (n && is({
  35900. redirect: n
  35901. })) return t.length > 0 ? z(F, Object.assign({
  35902. uniIdRedirectUrl: n
  35903. }, e)) : void (Qn && os({
  35904. api: "navigateTo",
  35905. redirect: n
  35906. }));
  35907. });
  35908. }(n);
  35909. });
  35910. }
  35911. function ls(e) {
  35912. !function (e) {
  35913. e.onResponse = function (e) {
  35914. $(D, e);
  35915. }, e.offResponse = function (e) {
  35916. W(D, e);
  35917. };
  35918. }(e), function (e) {
  35919. e.onNeedLogin = function (e) {
  35920. $(F, e);
  35921. }, e.offNeedLogin = function (e) {
  35922. W(F, e);
  35923. }, Yn && (C("_globalUniCloudStatus").needLoginInit || (C("_globalUniCloudStatus").needLoginInit = !0, G().then(function () {
  35924. cs.call(e);
  35925. }), Zn && us.call(e)));
  35926. }(e), function (e) {
  35927. e.onRefreshToken = function (e) {
  35928. $(q, e);
  35929. }, e.offRefreshToken = function (e) {
  35930. W(q, e);
  35931. };
  35932. }(e);
  35933. }
  35934. var hs;
  35935. var ds = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
  35936. fs = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  35937. function ps() {
  35938. var e = Z().token || "",
  35939. t = e.split(".");
  35940. if (!e || 3 !== t.length) return {
  35941. uid: null,
  35942. role: [],
  35943. permission: [],
  35944. tokenExpired: 0
  35945. };
  35946. var n;
  35947. try {
  35948. n = JSON.parse((s = t[1], decodeURIComponent(hs(s).split("").map(function (e) {
  35949. return "%" + ("00" + e.charCodeAt(0).toString(16)).slice(-2);
  35950. }).join(""))));
  35951. } catch (e) {
  35952. throw new Error("获取当前用户信息出错,详细错误信息为:" + e.message);
  35953. }
  35954. var s;
  35955. return n.tokenExpired = 1e3 * n.exp, delete n.exp, delete n.iat, n;
  35956. }
  35957. hs = "function" != typeof atob ? function (e) {
  35958. if (e = String(e).replace(/[\t\n\f\r ]+/g, ""), !fs.test(e)) throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  35959. var t;
  35960. e += "==".slice(2 - (3 & e.length));
  35961. for (var n, s, r = "", i = 0; i < e.length;) {
  35962. t = ds.indexOf(e.charAt(i++)) << 18 | ds.indexOf(e.charAt(i++)) << 12 | (n = ds.indexOf(e.charAt(i++))) << 6 | (s = ds.indexOf(e.charAt(i++))), r += 64 === n ? String.fromCharCode(t >> 16 & 255) : 64 === s ? String.fromCharCode(t >> 16 & 255, t >> 8 & 255) : String.fromCharCode(t >> 16 & 255, t >> 8 & 255, 255 & t);
  35963. }
  35964. return r;
  35965. } : atob;
  35966. var gs = s(function (e, t) {
  35967. Object.defineProperty(t, "__esModule", {
  35968. value: !0
  35969. });
  35970. var n = "chooseAndUploadFile:ok",
  35971. s = "chooseAndUploadFile:fail";
  35972. function r(e, t) {
  35973. return e.tempFiles.forEach(function (e, n) {
  35974. e.name || (e.name = e.path.substring(e.path.lastIndexOf("/") + 1)), t && (e.fileType = t), e.cloudPath = Date.now() + "_" + n + e.name.substring(e.name.lastIndexOf("."));
  35975. }), e.tempFilePaths || (e.tempFilePaths = e.tempFiles.map(function (e) {
  35976. return e.path;
  35977. })), e;
  35978. }
  35979. function i(e, t, _ref47) {
  35980. var s = _ref47.onChooseFile,
  35981. r = _ref47.onUploadProgress;
  35982. return t.then(function (e) {
  35983. if (s) {
  35984. var _t17 = s(e);
  35985. if (void 0 !== _t17) return Promise.resolve(_t17).then(function (t) {
  35986. return void 0 === t ? e : t;
  35987. });
  35988. }
  35989. return e;
  35990. }).then(function (t) {
  35991. return !1 === t ? {
  35992. errMsg: n,
  35993. tempFilePaths: [],
  35994. tempFiles: []
  35995. } : function (e, t) {
  35996. var s = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 5;
  35997. var r = arguments.length > 3 ? arguments[3] : undefined;
  35998. (t = Object.assign({}, t)).errMsg = n;
  35999. var i = t.tempFiles,
  36000. o = i.length;
  36001. var a = 0;
  36002. return new Promise(function (n) {
  36003. for (; a < s;) {
  36004. c();
  36005. }
  36006. function c() {
  36007. var s = a++;
  36008. if (s >= o) return void (!i.find(function (e) {
  36009. return !e.url && !e.errMsg;
  36010. }) && n(t));
  36011. var u = i[s];
  36012. e.uploadFile({
  36013. filePath: u.path,
  36014. cloudPath: u.cloudPath,
  36015. fileType: u.fileType,
  36016. onUploadProgress: function onUploadProgress(e) {
  36017. e.index = s, e.tempFile = u, e.tempFilePath = u.path, r && r(e);
  36018. }
  36019. }).then(function (e) {
  36020. u.url = e.fileID, s < o && c();
  36021. }).catch(function (e) {
  36022. u.errMsg = e.errMsg || e.message, s < o && c();
  36023. });
  36024. }
  36025. });
  36026. }(e, t, 5, r);
  36027. });
  36028. }
  36029. t.initChooseAndUploadFile = function (e) {
  36030. return function () {
  36031. var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
  36032. type: "all"
  36033. };
  36034. return "image" === t.type ? i(e, function (e) {
  36035. var t = e.count,
  36036. n = e.sizeType,
  36037. _e$sourceType = e.sourceType,
  36038. i = _e$sourceType === void 0 ? ["album", "camera"] : _e$sourceType,
  36039. o = e.extension;
  36040. return new Promise(function (e, a) {
  36041. uni.chooseImage({
  36042. count: t,
  36043. sizeType: n,
  36044. sourceType: i,
  36045. extension: o,
  36046. success: function success(t) {
  36047. e(r(t, "image"));
  36048. },
  36049. fail: function fail(e) {
  36050. a({
  36051. errMsg: e.errMsg.replace("chooseImage:fail", s)
  36052. });
  36053. }
  36054. });
  36055. });
  36056. }(t), t) : "video" === t.type ? i(e, function (e) {
  36057. var t = e.camera,
  36058. n = e.compressed,
  36059. i = e.maxDuration,
  36060. _e$sourceType2 = e.sourceType,
  36061. o = _e$sourceType2 === void 0 ? ["album", "camera"] : _e$sourceType2,
  36062. a = e.extension;
  36063. return new Promise(function (e, c) {
  36064. uni.chooseVideo({
  36065. camera: t,
  36066. compressed: n,
  36067. maxDuration: i,
  36068. sourceType: o,
  36069. extension: a,
  36070. success: function success(t) {
  36071. var n = t.tempFilePath,
  36072. s = t.duration,
  36073. i = t.size,
  36074. o = t.height,
  36075. a = t.width;
  36076. e(r({
  36077. errMsg: "chooseVideo:ok",
  36078. tempFilePaths: [n],
  36079. tempFiles: [{
  36080. name: t.tempFile && t.tempFile.name || "",
  36081. path: n,
  36082. size: i,
  36083. type: t.tempFile && t.tempFile.type || "",
  36084. width: a,
  36085. height: o,
  36086. duration: s,
  36087. fileType: "video",
  36088. cloudPath: ""
  36089. }]
  36090. }, "video"));
  36091. },
  36092. fail: function fail(e) {
  36093. c({
  36094. errMsg: e.errMsg.replace("chooseVideo:fail", s)
  36095. });
  36096. }
  36097. });
  36098. });
  36099. }(t), t) : i(e, function (e) {
  36100. var t = e.count,
  36101. n = e.extension;
  36102. return new Promise(function (e, i) {
  36103. var o = uni.chooseFile;
  36104. if ("undefined" != typeof wx && "function" == typeof wx.chooseMessageFile && (o = wx.chooseMessageFile), "function" != typeof o) return i({
  36105. errMsg: s + " 请指定 type 类型,该平台仅支持选择 image 或 video。"
  36106. });
  36107. o({
  36108. type: "all",
  36109. count: t,
  36110. extension: n,
  36111. success: function success(t) {
  36112. e(r(t));
  36113. },
  36114. fail: function fail(e) {
  36115. i({
  36116. errMsg: e.errMsg.replace("chooseFile:fail", s)
  36117. });
  36118. }
  36119. });
  36120. });
  36121. }(t), t);
  36122. };
  36123. };
  36124. }),
  36125. ms = n(gs);
  36126. var ys = "manual";
  36127. function _s(e) {
  36128. return {
  36129. props: {
  36130. localdata: {
  36131. type: Array,
  36132. default: function _default() {
  36133. return [];
  36134. }
  36135. },
  36136. options: {
  36137. type: [Object, Array],
  36138. default: function _default() {
  36139. return {};
  36140. }
  36141. },
  36142. spaceInfo: {
  36143. type: Object,
  36144. default: function _default() {
  36145. return {};
  36146. }
  36147. },
  36148. collection: {
  36149. type: [String, Array],
  36150. default: ""
  36151. },
  36152. action: {
  36153. type: String,
  36154. default: ""
  36155. },
  36156. field: {
  36157. type: String,
  36158. default: ""
  36159. },
  36160. orderby: {
  36161. type: String,
  36162. default: ""
  36163. },
  36164. where: {
  36165. type: [String, Object],
  36166. default: ""
  36167. },
  36168. pageData: {
  36169. type: String,
  36170. default: "add"
  36171. },
  36172. pageCurrent: {
  36173. type: Number,
  36174. default: 1
  36175. },
  36176. pageSize: {
  36177. type: Number,
  36178. default: 20
  36179. },
  36180. getcount: {
  36181. type: [Boolean, String],
  36182. default: !1
  36183. },
  36184. gettree: {
  36185. type: [Boolean, String],
  36186. default: !1
  36187. },
  36188. gettreepath: {
  36189. type: [Boolean, String],
  36190. default: !1
  36191. },
  36192. startwith: {
  36193. type: String,
  36194. default: ""
  36195. },
  36196. limitlevel: {
  36197. type: Number,
  36198. default: 10
  36199. },
  36200. groupby: {
  36201. type: String,
  36202. default: ""
  36203. },
  36204. groupField: {
  36205. type: String,
  36206. default: ""
  36207. },
  36208. distinct: {
  36209. type: [Boolean, String],
  36210. default: !1
  36211. },
  36212. foreignKey: {
  36213. type: String,
  36214. default: ""
  36215. },
  36216. loadtime: {
  36217. type: String,
  36218. default: "auto"
  36219. },
  36220. manual: {
  36221. type: Boolean,
  36222. default: !1
  36223. }
  36224. },
  36225. data: function data() {
  36226. return {
  36227. mixinDatacomLoading: !1,
  36228. mixinDatacomHasMore: !1,
  36229. mixinDatacomResData: [],
  36230. mixinDatacomErrorMessage: "",
  36231. mixinDatacomPage: {}
  36232. };
  36233. },
  36234. created: function created() {
  36235. var _this21 = this;
  36236. this.mixinDatacomPage = {
  36237. current: this.pageCurrent,
  36238. size: this.pageSize,
  36239. count: 0
  36240. }, this.$watch(function () {
  36241. var e = [];
  36242. return ["pageCurrent", "pageSize", "localdata", "collection", "action", "field", "orderby", "where", "getont", "getcount", "gettree", "groupby", "groupField", "distinct"].forEach(function (t) {
  36243. e.push(_this21[t]);
  36244. }), e;
  36245. }, function (e, t) {
  36246. if (_this21.loadtime === ys) return;
  36247. var n = !1;
  36248. var s = [];
  36249. for (var _r6 = 2; _r6 < e.length; _r6++) {
  36250. e[_r6] !== t[_r6] && (s.push(e[_r6]), n = !0);
  36251. }
  36252. e[0] !== t[0] && (_this21.mixinDatacomPage.current = _this21.pageCurrent), _this21.mixinDatacomPage.size = _this21.pageSize, _this21.onMixinDatacomPropsChange(n, s);
  36253. });
  36254. },
  36255. methods: {
  36256. onMixinDatacomPropsChange: function onMixinDatacomPropsChange(e, t) {},
  36257. mixinDatacomEasyGet: function mixinDatacomEasyGet() {
  36258. var _this22 = this;
  36259. var _ref48 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  36260. _ref48$getone = _ref48.getone,
  36261. e = _ref48$getone === void 0 ? !1 : _ref48$getone,
  36262. t = _ref48.success,
  36263. n = _ref48.fail;
  36264. this.mixinDatacomLoading || (this.mixinDatacomLoading = !0, this.mixinDatacomErrorMessage = "", this.mixinDatacomGet().then(function (n) {
  36265. _this22.mixinDatacomLoading = !1;
  36266. var _n$result = n.result,
  36267. s = _n$result.data,
  36268. r = _n$result.count;
  36269. _this22.getcount && (_this22.mixinDatacomPage.count = r), _this22.mixinDatacomHasMore = s.length < _this22.pageSize;
  36270. var i = e ? s.length ? s[0] : void 0 : s;
  36271. _this22.mixinDatacomResData = i, t && t(i);
  36272. }).catch(function (e) {
  36273. _this22.mixinDatacomLoading = !1, _this22.mixinDatacomErrorMessage = e, n && n(e);
  36274. }));
  36275. },
  36276. mixinDatacomGet: function mixinDatacomGet() {
  36277. var _n12;
  36278. var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  36279. var n = e.database(this.spaceInfo);
  36280. var s = t.action || this.action;
  36281. s && (n = n.action(s));
  36282. var r = t.collection || this.collection;
  36283. n = Array.isArray(r) ? (_n12 = n).collection.apply(_n12, (0, _toConsumableArray2.default)(r)) : n.collection(r);
  36284. var i = t.where || this.where;
  36285. i && Object.keys(i).length && (n = n.where(i));
  36286. var o = t.field || this.field;
  36287. o && (n = n.field(o));
  36288. var a = t.foreignKey || this.foreignKey;
  36289. a && (n = n.foreignKey(a));
  36290. var c = t.groupby || this.groupby;
  36291. c && (n = n.groupBy(c));
  36292. var u = t.groupField || this.groupField;
  36293. u && (n = n.groupField(u));
  36294. !0 === (void 0 !== t.distinct ? t.distinct : this.distinct) && (n = n.distinct());
  36295. var l = t.orderby || this.orderby;
  36296. l && (n = n.orderBy(l));
  36297. var h = void 0 !== t.pageCurrent ? t.pageCurrent : this.mixinDatacomPage.current,
  36298. d = void 0 !== t.pageSize ? t.pageSize : this.mixinDatacomPage.size,
  36299. f = void 0 !== t.getcount ? t.getcount : this.getcount,
  36300. p = void 0 !== t.gettree ? t.gettree : this.gettree,
  36301. g = void 0 !== t.gettreepath ? t.gettreepath : this.gettreepath,
  36302. m = {
  36303. getCount: f
  36304. },
  36305. y = {
  36306. limitLevel: void 0 !== t.limitlevel ? t.limitlevel : this.limitlevel,
  36307. startWith: void 0 !== t.startwith ? t.startwith : this.startwith
  36308. };
  36309. return p && (m.getTree = y), g && (m.getTreePath = y), n = n.skip(d * (h - 1)).limit(d).get(m), n;
  36310. }
  36311. }
  36312. };
  36313. }
  36314. function ws(e) {
  36315. return function (t) {
  36316. var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  36317. n = function (e) {
  36318. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  36319. return e.customUI = t.customUI || e.customUI, e.parseSystemError = t.parseSystemError || e.parseSystemError, Object.assign(e.loadingOptions, t.loadingOptions), Object.assign(e.errorOptions, t.errorOptions), "object" == (0, _typeof2.default)(t.secretMethods) && (e.secretMethods = t.secretMethods), e;
  36320. }({
  36321. customUI: !1,
  36322. loadingOptions: {
  36323. title: "加载中...",
  36324. mask: !0
  36325. },
  36326. errorOptions: {
  36327. type: "modal",
  36328. retry: !1
  36329. }
  36330. }, n);
  36331. var _n13 = n,
  36332. s = _n13.customUI,
  36333. r = _n13.loadingOptions,
  36334. i = _n13.errorOptions,
  36335. o = _n13.parseSystemError,
  36336. a = !s;
  36337. return new Proxy({}, {
  36338. get: function get(s, c) {
  36339. return function () {
  36340. var _ref49 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  36341. e = _ref49.fn,
  36342. t = _ref49.interceptorName,
  36343. n = _ref49.getCallbackArgs;
  36344. return /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee49() {
  36345. var _len2,
  36346. s,
  36347. _key2,
  36348. r,
  36349. i,
  36350. o,
  36351. _args = arguments;
  36352. return _regenerator.default.wrap(function _callee49$(_context49) {
  36353. while (1) {
  36354. switch (_context49.prev = _context49.next) {
  36355. case 0:
  36356. for (_len2 = _args.length, s = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  36357. s[_key2] = _args[_key2];
  36358. }
  36359. r = n ? n({
  36360. params: s
  36361. }) : {};
  36362. _context49.prev = 2;
  36363. _context49.next = 5;
  36364. return U(R(t, "invoke"), _objectSpread({}, r));
  36365. case 5:
  36366. _context49.next = 7;
  36367. return e.apply(void 0, s);
  36368. case 7:
  36369. i = _context49.sent;
  36370. _context49.next = 10;
  36371. return U(R(t, "success"), _objectSpread(_objectSpread({}, r), {}, {
  36372. result: i
  36373. }));
  36374. case 10:
  36375. return _context49.abrupt("return", i);
  36376. case 13:
  36377. _context49.prev = 13;
  36378. _context49.t0 = _context49["catch"](2);
  36379. o = _context49.t0;
  36380. _context49.next = 18;
  36381. return U(R(t, "fail"), _objectSpread(_objectSpread({}, r), {}, {
  36382. error: o
  36383. }));
  36384. case 18:
  36385. throw o;
  36386. case 19:
  36387. _context49.prev = 19;
  36388. _context49.next = 22;
  36389. return U(R(t, "complete"), o ? _objectSpread(_objectSpread({}, r), {}, {
  36390. error: o
  36391. }) : _objectSpread(_objectSpread({}, r), {}, {
  36392. result: i
  36393. }));
  36394. case 22:
  36395. return _context49.finish(19);
  36396. case 23:
  36397. case "end":
  36398. return _context49.stop();
  36399. }
  36400. }
  36401. }, _callee49, null, [[2, 13, 19, 23]]);
  36402. }));
  36403. }({
  36404. fn: function () {
  36405. var _s14 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee51() {
  36406. var h,
  36407. _len3,
  36408. u,
  36409. _key3,
  36410. d,
  36411. f,
  36412. _ref51,
  36413. p,
  36414. g,
  36415. m,
  36416. y,
  36417. _e30,
  36418. _yield,
  36419. _t18,
  36420. _n14,
  36421. _args4 = arguments;
  36422. return _regenerator.default.wrap(function _callee51$(_context51) {
  36423. while (1) {
  36424. switch (_context51.prev = _context51.next) {
  36425. case 0:
  36426. a && uni.showLoading({
  36427. title: r.title,
  36428. mask: r.mask
  36429. });
  36430. for (_len3 = _args4.length, u = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  36431. u[_key3] = _args4[_key3];
  36432. }
  36433. d = {
  36434. name: t,
  36435. type: l,
  36436. data: {
  36437. method: c,
  36438. params: u
  36439. }
  36440. };
  36441. "object" == (0, _typeof2.default)(n.secretMethods) && function (e, t) {
  36442. var n = t.data.method,
  36443. s = e.secretMethods || {},
  36444. r = s[n] || s["*"];
  36445. r && (t.secretType = r);
  36446. }(n, d);
  36447. f = !1;
  36448. _context51.prev = 5;
  36449. _context51.next = 8;
  36450. return e.callFunction(d);
  36451. case 8:
  36452. h = _context51.sent;
  36453. _context51.next = 14;
  36454. break;
  36455. case 11:
  36456. _context51.prev = 11;
  36457. _context51.t0 = _context51["catch"](5);
  36458. f = !0, h = {
  36459. result: new Q(_context51.t0)
  36460. };
  36461. case 14:
  36462. _ref51 = h.result || {}, p = _ref51.errSubject, g = _ref51.errCode, m = _ref51.errMsg, y = _ref51.newToken;
  36463. if (!(a && uni.hideLoading(), y && y.token && y.tokenExpired && (ee(y), z(q, _objectSpread({}, y))), g)) {
  36464. _context51.next = 39;
  36465. break;
  36466. }
  36467. _e30 = m;
  36468. if (!(f && o)) {
  36469. _context51.next = 24;
  36470. break;
  36471. }
  36472. _context51.next = 20;
  36473. return o({
  36474. objectName: t,
  36475. methodName: c,
  36476. params: u,
  36477. errSubject: p,
  36478. errCode: g,
  36479. errMsg: m
  36480. });
  36481. case 20:
  36482. _context51.t1 = _context51.sent.errMsg;
  36483. if (_context51.t1) {
  36484. _context51.next = 23;
  36485. break;
  36486. }
  36487. _context51.t1 = m;
  36488. case 23:
  36489. _e30 = _context51.t1;
  36490. case 24:
  36491. if (!a) {
  36492. _context51.next = 37;
  36493. break;
  36494. }
  36495. if (!("toast" === i.type)) {
  36496. _context51.next = 29;
  36497. break;
  36498. }
  36499. uni.showToast({
  36500. title: _e30,
  36501. icon: "none"
  36502. });
  36503. _context51.next = 37;
  36504. break;
  36505. case 29:
  36506. if (!("modal" !== i.type)) {
  36507. _context51.next = 31;
  36508. break;
  36509. }
  36510. throw new Error("Invalid errorOptions.type: ".concat(i.type));
  36511. case 31:
  36512. _context51.next = 33;
  36513. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee50() {
  36514. var _ref53,
  36515. e,
  36516. t,
  36517. n,
  36518. s,
  36519. r,
  36520. _args3 = arguments;
  36521. return _regenerator.default.wrap(function _callee50$(_context50) {
  36522. while (1) {
  36523. switch (_context50.prev = _context50.next) {
  36524. case 0:
  36525. _ref53 = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {}, e = _ref53.title, t = _ref53.content, n = _ref53.showCancel, s = _ref53.cancelText, r = _ref53.confirmText;
  36526. return _context50.abrupt("return", new Promise(function (i, o) {
  36527. uni.showModal({
  36528. title: e,
  36529. content: t,
  36530. showCancel: n,
  36531. cancelText: s,
  36532. confirmText: r,
  36533. success: function success(e) {
  36534. i(e);
  36535. },
  36536. fail: function fail() {
  36537. i({
  36538. confirm: !1,
  36539. cancel: !0
  36540. });
  36541. }
  36542. });
  36543. }));
  36544. case 2:
  36545. case "end":
  36546. return _context50.stop();
  36547. }
  36548. }
  36549. }, _callee50);
  36550. }))({
  36551. title: "提示",
  36552. content: _e30,
  36553. showCancel: i.retry,
  36554. cancelText: "取消",
  36555. confirmText: i.retry ? "重试" : "确定"
  36556. });
  36557. case 33:
  36558. _yield = _context51.sent;
  36559. _t18 = _yield.confirm;
  36560. if (!(i.retry && _t18)) {
  36561. _context51.next = 37;
  36562. break;
  36563. }
  36564. return _context51.abrupt("return", s.apply(void 0, u));
  36565. case 37:
  36566. _n14 = new Q({
  36567. subject: p,
  36568. code: g,
  36569. message: m,
  36570. requestId: h.requestId
  36571. });
  36572. throw _n14.detail = h.result, z(D, {
  36573. type: M,
  36574. content: _n14
  36575. }), _n14;
  36576. case 39:
  36577. return _context51.abrupt("return", (z(D, {
  36578. type: M,
  36579. content: h.result
  36580. }), h.result));
  36581. case 40:
  36582. case "end":
  36583. return _context51.stop();
  36584. }
  36585. }
  36586. }, _callee51, null, [[5, 11]]);
  36587. }));
  36588. function s() {
  36589. return _s14.apply(this, arguments);
  36590. }
  36591. return s;
  36592. }(),
  36593. interceptorName: "callObject",
  36594. getCallbackArgs: function getCallbackArgs() {
  36595. var _ref54 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  36596. e = _ref54.params;
  36597. return {
  36598. objectName: t,
  36599. methodName: c,
  36600. params: e
  36601. };
  36602. }
  36603. });
  36604. }
  36605. });
  36606. };
  36607. }
  36608. function vs(e) {
  36609. return C("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}", e.config.spaceId));
  36610. }
  36611. function Ss() {
  36612. return _Ss.apply(this, arguments);
  36613. }
  36614. function _Ss() {
  36615. _Ss = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee53() {
  36616. var _ref58,
  36617. _ref58$callLoginByWei,
  36618. e,
  36619. t,
  36620. n,
  36621. s,
  36622. _args6 = arguments;
  36623. return _regenerator.default.wrap(function _callee53$(_context53) {
  36624. while (1) {
  36625. switch (_context53.prev = _context53.next) {
  36626. case 0:
  36627. _ref58 = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {}, _ref58$callLoginByWei = _ref58.callLoginByWeixin, e = _ref58$callLoginByWei === void 0 ? !1 : _ref58$callLoginByWei;
  36628. t = vs(this);
  36629. if (!("mp-weixin" !== S)) {
  36630. _context53.next = 4;
  36631. break;
  36632. }
  36633. throw new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `".concat(S, "`"));
  36634. case 4:
  36635. _context53.next = 6;
  36636. return new Promise(function (e, t) {
  36637. uni.login({
  36638. success: function success(t) {
  36639. e(t.code);
  36640. },
  36641. fail: function fail(e) {
  36642. t(new Error(e.errMsg));
  36643. }
  36644. });
  36645. });
  36646. case 6:
  36647. n = _context53.sent;
  36648. s = this.importObject("uni-id-co", {
  36649. customUI: !0
  36650. });
  36651. _context53.next = 10;
  36652. return s.secureNetworkHandshakeByWeixin({
  36653. code: n,
  36654. callLoginByWeixin: e
  36655. });
  36656. case 10:
  36657. t.mpWeixinCode = n;
  36658. return _context53.abrupt("return", {
  36659. code: n
  36660. });
  36661. case 12:
  36662. case "end":
  36663. return _context53.stop();
  36664. }
  36665. }
  36666. }, _callee53, this);
  36667. }));
  36668. return _Ss.apply(this, arguments);
  36669. }
  36670. function ks(_x37) {
  36671. return _ks.apply(this, arguments);
  36672. }
  36673. function _ks() {
  36674. _ks = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee54(e) {
  36675. var t;
  36676. return _regenerator.default.wrap(function _callee54$(_context54) {
  36677. while (1) {
  36678. switch (_context54.prev = _context54.next) {
  36679. case 0:
  36680. t = vs(this);
  36681. return _context54.abrupt("return", (t.initPromise || (t.initPromise = Ss.call(this, e)), t.initPromise));
  36682. case 2:
  36683. case "end":
  36684. return _context54.stop();
  36685. }
  36686. }
  36687. }, _callee54, this);
  36688. }));
  36689. return _ks.apply(this, arguments);
  36690. }
  36691. function Is(e) {
  36692. return function () {
  36693. var _ref55 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  36694. _ref55$callLoginByWei = _ref55.callLoginByWeixin,
  36695. t = _ref55$callLoginByWei === void 0 ? !1 : _ref55$callLoginByWei;
  36696. return ks.call(e, {
  36697. callLoginByWeixin: t
  36698. });
  36699. };
  36700. }
  36701. function bs(_x38, _x39) {
  36702. return _bs.apply(this, arguments);
  36703. }
  36704. function _bs() {
  36705. _bs = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee55(e, t) {
  36706. var n, _e32, s;
  36707. return _regenerator.default.wrap(function _callee55$(_context55) {
  36708. while (1) {
  36709. switch (_context55.prev = _context55.next) {
  36710. case 0:
  36711. n = "http://".concat(e, ":").concat(t, "/system/ping");
  36712. _context55.prev = 1;
  36713. _context55.next = 4;
  36714. return s = {
  36715. url: n,
  36716. timeout: 500
  36717. }, new Promise(function (e, t) {
  36718. X.request(_objectSpread(_objectSpread({}, s), {}, {
  36719. success: function success(t) {
  36720. e(t);
  36721. },
  36722. fail: function fail(e) {
  36723. t(e);
  36724. }
  36725. }));
  36726. });
  36727. case 4:
  36728. _e32 = _context55.sent;
  36729. return _context55.abrupt("return", !(!_e32.data || 0 !== _e32.data.code));
  36730. case 8:
  36731. _context55.prev = 8;
  36732. _context55.t0 = _context55["catch"](1);
  36733. return _context55.abrupt("return", !1);
  36734. case 11:
  36735. case "end":
  36736. return _context55.stop();
  36737. }
  36738. }
  36739. }, _callee55, null, [[1, 8]]);
  36740. }));
  36741. return _bs.apply(this, arguments);
  36742. }
  36743. function Ts(e) {
  36744. if (e.initUniCloudStatus && "rejected" !== e.initUniCloudStatus) return;
  36745. var t = Promise.resolve();
  36746. var n;
  36747. n = 1, t = new Promise(function (e) {
  36748. setTimeout(function () {
  36749. e();
  36750. }, n);
  36751. }), e.isReady = !1, e.isDefault = !1;
  36752. var s = e.auth();
  36753. e.initUniCloudStatus = "pending", e.initUniCloud = t.then(function () {
  36754. return s.getLoginState();
  36755. }).then(function (e) {
  36756. return e ? Promise.resolve() : s.signInAnonymously();
  36757. }).then(function () {
  36758. if (!y) return Promise.resolve();
  36759. if ("app" === S) {
  36760. var _re2 = re(),
  36761. _e31 = _re2.osName,
  36762. _t19 = _re2.osVersion;
  36763. "ios" === _e31 && function (e) {
  36764. if (!e || "string" != typeof e) return 0;
  36765. var t = e.match(/^(\d+)./);
  36766. return t && t[1] ? parseInt(t[1]) : 0;
  36767. }(_t19) >= 14 && console.warn("iOS 14及以上版本连接uniCloud本地调试服务需要允许客户端查找并连接到本地网络上的设备(仅开发模式生效,发行模式会连接uniCloud云端服务)");
  36768. }
  36769. if (y && e.__dev__.debugInfo) {
  36770. var _e$__dev__$debugInfo = e.__dev__.debugInfo,
  36771. _t20 = _e$__dev__$debugInfo.address,
  36772. _n15 = _e$__dev__$debugInfo.servePort;
  36773. return function () {
  36774. var _ref56 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee52(e, t) {
  36775. var n, _s15, _r7;
  36776. return _regenerator.default.wrap(function _callee52$(_context52) {
  36777. while (1) {
  36778. switch (_context52.prev = _context52.next) {
  36779. case 0:
  36780. _s15 = 0;
  36781. case 1:
  36782. if (!(_s15 < e.length)) {
  36783. _context52.next = 11;
  36784. break;
  36785. }
  36786. _r7 = e[_s15];
  36787. _context52.next = 5;
  36788. return bs(_r7, t);
  36789. case 5:
  36790. if (!_context52.sent) {
  36791. _context52.next = 8;
  36792. break;
  36793. }
  36794. n = _r7;
  36795. return _context52.abrupt("break", 11);
  36796. case 8:
  36797. _s15++;
  36798. _context52.next = 1;
  36799. break;
  36800. case 11:
  36801. return _context52.abrupt("return", {
  36802. address: n,
  36803. port: t
  36804. });
  36805. case 12:
  36806. case "end":
  36807. return _context52.stop();
  36808. }
  36809. }
  36810. }, _callee52);
  36811. }));
  36812. return function (_x40, _x41) {
  36813. return _ref56.apply(this, arguments);
  36814. };
  36815. }()(_t20, _n15);
  36816. }
  36817. }).then(function () {
  36818. var _ref57 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  36819. t = _ref57.address,
  36820. n = _ref57.port;
  36821. if (!y) return Promise.resolve();
  36822. var s = console["app" === S ? "error" : "warn"];
  36823. if (t) e.__dev__.localAddress = t, e.__dev__.localPort = n;else if (e.__dev__.debugInfo) {
  36824. var _t21 = "";
  36825. "remote" === e.__dev__.debugInfo.initialLaunchType ? (e.__dev__.debugInfo.forceRemote = !0, _t21 = "当前客户端和HBuilderX不在同一局域网下(或其他网络原因无法连接HBuilderX),uniCloud本地调试服务不对当前客户端生效。\n- 如果不使用uniCloud本地调试服务,请直接忽略此信息。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。") : _t21 = "无法连接uniCloud本地调试服务,请检查当前客户端是否与主机在同一局域网下。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。", _t21 += "\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs\n- 检查是否错误的使用拦截器修改uni.request方法的参数", "web" === S && (_t21 += "\n- 部分浏览器开启节流模式之后访问本地地址受限,请检查是否启用了节流模式"), 0 === S.indexOf("mp-") && (_t21 += "\n- 小程序中如何使用uniCloud,请参考:https://uniapp.dcloud.net.cn/uniCloud/publish.html#useinmp"), s(_t21);
  36826. }
  36827. }).then(function () {
  36828. te(), e.isReady = !0, e.initUniCloudStatus = "fulfilled";
  36829. }).catch(function (t) {
  36830. console.error(t), e.initUniCloudStatus = "rejected";
  36831. });
  36832. }
  36833. var As = {
  36834. tcb: yt,
  36835. tencent: yt,
  36836. aliyun: he,
  36837. private: wt
  36838. };
  36839. var Cs = new ( /*#__PURE__*/function () {
  36840. function _class6() {
  36841. (0, _classCallCheck2.default)(this, _class6);
  36842. }
  36843. (0, _createClass2.default)(_class6, [{
  36844. key: "init",
  36845. value: function init(e) {
  36846. var t = {};
  36847. var n = As[e.provider];
  36848. if (!n) throw new Error("未提供正确的provider参数");
  36849. t = n.init(e), t.__dev__ = {}, t.__dev__.debugLog = y && ("web" === S && navigator.userAgent.indexOf("HBuilderX") > 0 || "app" === S);
  36850. var s = k;
  36851. y && s && !s.code && (t.__dev__.debugInfo = s), Ts(t), t.reInit = function () {
  36852. Ts(this);
  36853. }, Cn(t), function (e) {
  36854. var t = e.uploadFile;
  36855. e.uploadFile = function (e) {
  36856. return t.call(this, e);
  36857. };
  36858. }(t), function (e) {
  36859. e.database = function (t) {
  36860. if (t && Object.keys(t).length > 0) return e.init(t).database();
  36861. if (this._database) return this._database;
  36862. var n = qn(Kn, {
  36863. uniClient: e
  36864. });
  36865. return this._database = n, n;
  36866. }, e.databaseForJQL = function (t) {
  36867. if (t && Object.keys(t).length > 0) return e.init(t).databaseForJQL();
  36868. if (this._databaseForJQL) return this._databaseForJQL;
  36869. var n = qn(Kn, {
  36870. uniClient: e,
  36871. isJQL: !0
  36872. });
  36873. return this._databaseForJQL = n, n;
  36874. };
  36875. }(t), function (e) {
  36876. e.getCurrentUserInfo = ps, e.chooseAndUploadFile = ms.initChooseAndUploadFile(e), Object.assign(e, {
  36877. get mixinDatacom() {
  36878. return _s(e);
  36879. }
  36880. }), e.importObject = ws(e), e.initSecureNetworkByWeixin = Is(e);
  36881. }(t);
  36882. return ["callFunction", "uploadFile", "deleteFile", "getTempFileURL", "downloadFile", "chooseAndUploadFile"].forEach(function (e) {
  36883. if (!t[e]) return;
  36884. var n = t[e];
  36885. t[e] = function () {
  36886. return t.reInit(), n.apply(t, Array.from(arguments));
  36887. }, t[e] = Y(t[e], e).bind(t);
  36888. }), t.init = this.init, t;
  36889. }
  36890. }]);
  36891. return _class6;
  36892. }())();
  36893. (function () {
  36894. var e = I;
  36895. var t = {};
  36896. if (e && 1 === e.length) t = e[0], Cs = Cs.init(t), Cs.isDefault = !0;else {
  36897. var _t22 = ["auth", "callFunction", "uploadFile", "deleteFile", "getTempFileURL", "downloadFile", "database", "getCurrentUSerInfo", "importObject"];
  36898. var _n16;
  36899. _n16 = e && e.length > 0 ? "应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间" : b ? "应用未关联服务空间,请在uniCloud目录右键关联服务空间" : "uni-app cli项目内使用uniCloud需要使用HBuilderX的运行菜单运行项目,且需要在uniCloud目录关联服务空间", _t22.forEach(function (e) {
  36900. Cs[e] = function () {
  36901. return console.error(_n16), Promise.reject(new Q({
  36902. code: "SYS_ERR",
  36903. message: _n16
  36904. }));
  36905. };
  36906. });
  36907. }
  36908. Object.assign(Cs, {
  36909. get mixinDatacom() {
  36910. return _s(Cs);
  36911. }
  36912. }), ls(Cs), Cs.addInterceptor = O, Cs.removeInterceptor = x, Cs.interceptObject = L, y && "web" === S && (window.uniCloud = Cs);
  36913. })();
  36914. var Ps = Cs;
  36915. exports.default = Ps;
  36916. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3), __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  36917. /***/ }),
  36918. /* 374 */
  36919. /*!****************************************************************!*\
  36920. !*** ./node_modules/@babel/runtime/helpers/wrapNativeSuper.js ***!
  36921. \****************************************************************/
  36922. /*! no static exports found */
  36923. /***/ (function(module, exports, __webpack_require__) {
  36924. var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ 350);
  36925. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  36926. var isNativeFunction = __webpack_require__(/*! ./isNativeFunction.js */ 375);
  36927. var construct = __webpack_require__(/*! ./construct.js */ 15);
  36928. function _wrapNativeSuper(Class) {
  36929. var _cache = typeof Map === "function" ? new Map() : undefined;
  36930. module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {
  36931. if (Class === null || !isNativeFunction(Class)) return Class;
  36932. if (typeof Class !== "function") {
  36933. throw new TypeError("Super expression must either be null or a function");
  36934. }
  36935. if (typeof _cache !== "undefined") {
  36936. if (_cache.has(Class)) return _cache.get(Class);
  36937. _cache.set(Class, Wrapper);
  36938. }
  36939. function Wrapper() {
  36940. return construct(Class, arguments, getPrototypeOf(this).constructor);
  36941. }
  36942. Wrapper.prototype = Object.create(Class.prototype, {
  36943. constructor: {
  36944. value: Wrapper,
  36945. enumerable: false,
  36946. writable: true,
  36947. configurable: true
  36948. }
  36949. });
  36950. return setPrototypeOf(Wrapper, Class);
  36951. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  36952. return _wrapNativeSuper(Class);
  36953. }
  36954. module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
  36955. /***/ }),
  36956. /* 375 */
  36957. /*!*****************************************************************!*\
  36958. !*** ./node_modules/@babel/runtime/helpers/isNativeFunction.js ***!
  36959. \*****************************************************************/
  36960. /*! no static exports found */
  36961. /***/ (function(module, exports) {
  36962. function _isNativeFunction(fn) {
  36963. return Function.toString.call(fn).indexOf("[native code]") !== -1;
  36964. }
  36965. module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;
  36966. /***/ }),
  36967. /* 376 */
  36968. /*!**********************************************************************!*\
  36969. !*** D:/project/项目模板/uniapp/pages.json?{"type":"origin-pages-json"} ***!
  36970. \**********************************************************************/
  36971. /*! no static exports found */
  36972. /***/ (function(module, exports, __webpack_require__) {
  36973. "use strict";
  36974. Object.defineProperty(exports, "__esModule", {
  36975. value: true
  36976. });
  36977. exports.default = void 0;
  36978. var _default = {
  36979. "pages": [{
  36980. "path": "pages/index/index",
  36981. "style": {
  36982. "navigationBarTitleText": "首页"
  36983. }
  36984. }],
  36985. "subPackages": [{
  36986. "root": "pagesCommon",
  36987. "pages": [{
  36988. "path": "test/index",
  36989. "style": {
  36990. "navigationBarTitleText": "测试一",
  36991. "enablePullDownRefresh": true
  36992. }
  36993. }]
  36994. }, {
  36995. "root": "pagesHome",
  36996. "pages": [{
  36997. "path": "home/index",
  36998. "style": {
  36999. "navigationBarTitleText": "首页",
  37000. "enablePullDownRefresh": false
  37001. }
  37002. }, {
  37003. "path": "hot/index",
  37004. "style": {
  37005. "navigationBarTitleText": "热播",
  37006. "enablePullDownRefresh": false
  37007. }
  37008. }, {
  37009. "path": "app/index",
  37010. "style": {
  37011. "navigationBarTitleText": "应用",
  37012. "enablePullDownRefresh": false
  37013. }
  37014. }, {
  37015. "path": "find/index",
  37016. "style": {
  37017. "navigationBarTitleText": "发现",
  37018. "enablePullDownRefresh": false
  37019. }
  37020. }, {
  37021. "path": "account/index",
  37022. "style": {
  37023. "navigationBarTitleText": "账户",
  37024. "enablePullDownRefresh": false
  37025. }
  37026. }]
  37027. }, {
  37028. "root": "pagesAccount",
  37029. "pages": [{
  37030. "path": "login/index",
  37031. "style": {
  37032. "navigationBarTitleText": "账号登录",
  37033. "enablePullDownRefresh": false
  37034. }
  37035. }, {
  37036. "path": "register/index",
  37037. "style": {
  37038. "navigationBarTitleText": "账号注册",
  37039. "enablePullDownRefresh": false
  37040. }
  37041. }, {
  37042. "path": "other/agree",
  37043. "style": {
  37044. "navigationBarTitleText": "用户协议",
  37045. "enablePullDownRefresh": false
  37046. }
  37047. }, {
  37048. "path": "other/vipagree",
  37049. "style": {
  37050. "navigationBarTitleText": "会员服务协议",
  37051. "enablePullDownRefresh": false
  37052. }
  37053. }, {
  37054. "path": "like/index",
  37055. "style": {
  37056. "navigationBarTitleText": "我的喜欢",
  37057. "enablePullDownRefresh": true
  37058. }
  37059. }, {
  37060. "path": "collect/index",
  37061. "style": {
  37062. "navigationBarTitleText": "我的收藏",
  37063. "enablePullDownRefresh": true
  37064. }
  37065. }, {
  37066. "path": "basic/index",
  37067. "style": {
  37068. "navigationBarTitleText": "账号信息",
  37069. "enablePullDownRefresh": false
  37070. }
  37071. }, {
  37072. "path": "vip/index",
  37073. "style": {
  37074. "navigationBarTitleText": "vip",
  37075. "enablePullDownRefresh": false
  37076. }
  37077. }]
  37078. }, {
  37079. "root": "pagesVideo",
  37080. "pages": [{
  37081. "path": "video/index",
  37082. "style": {
  37083. "navigationBarTitleText": "详细信息",
  37084. "enablePullDownRefresh": false
  37085. }
  37086. }, {
  37087. "path": "search/index",
  37088. "style": {
  37089. "navigationBarTitleText": "视频筛选",
  37090. "enablePullDownRefresh": true
  37091. }
  37092. }, {
  37093. "path": "more/index",
  37094. "style": {
  37095. "navigationBarTitleText": "更多",
  37096. "enablePullDownRefresh": true
  37097. }
  37098. }]
  37099. }],
  37100. "globalStyle": {
  37101. "navigationBarTextStyle": "white",
  37102. "navigationBarTitleText": "益智游戏",
  37103. "navigationBarBackgroundColor": "#111111",
  37104. "backgroundColor": "#000000"
  37105. },
  37106. "uniIdRouter": {}
  37107. };
  37108. exports.default = _default;
  37109. /***/ }),
  37110. /* 377 */
  37111. /*!*********************************************************!*\
  37112. !*** D:/project/项目模板/uniapp/pages.json?{"type":"stat"} ***!
  37113. \*********************************************************/
  37114. /*! no static exports found */
  37115. /***/ (function(module, exports, __webpack_require__) {
  37116. "use strict";
  37117. Object.defineProperty(exports, "__esModule", {
  37118. value: true
  37119. });
  37120. exports.default = void 0;
  37121. var _default = {
  37122. "appid": "__UNI__2080341"
  37123. };
  37124. exports.default = _default;
  37125. /***/ }),
  37126. /* 378 */,
  37127. /* 379 */,
  37128. /* 380 */,
  37129. /* 381 */,
  37130. /* 382 */,
  37131. /* 383 */,
  37132. /* 384 */,
  37133. /* 385 */,
  37134. /* 386 */,
  37135. /* 387 */,
  37136. /* 388 */,
  37137. /* 389 */,
  37138. /* 390 */,
  37139. /* 391 */,
  37140. /* 392 */
  37141. /*!**********************************************************************************!*\
  37142. !*** D:/project/项目模板/uniapp/uni_modules/uni-popup/components/uni-popup/popup.js ***!
  37143. \**********************************************************************************/
  37144. /*! no static exports found */
  37145. /***/ (function(module, exports, __webpack_require__) {
  37146. "use strict";
  37147. Object.defineProperty(exports, "__esModule", {
  37148. value: true
  37149. });
  37150. exports.default = void 0;
  37151. var _default = {
  37152. data: function data() {
  37153. return {};
  37154. },
  37155. created: function created() {
  37156. this.popup = this.getParent();
  37157. },
  37158. methods: {
  37159. /**
  37160. * 获取父元素实例
  37161. */
  37162. getParent: function getParent() {
  37163. var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'uniPopup';
  37164. var parent = this.$parent;
  37165. var parentName = parent.$options.name;
  37166. while (parentName !== name) {
  37167. parent = parent.$parent;
  37168. if (!parent) return false;
  37169. parentName = parent.$options.name;
  37170. }
  37171. return parent;
  37172. }
  37173. }
  37174. };
  37175. exports.default = _default;
  37176. /***/ }),
  37177. /* 393 */
  37178. /*!***************************************************************************************!*\
  37179. !*** D:/project/项目模板/uniapp/uni_modules/uni-popup/components/uni-popup/i18n/index.js ***!
  37180. \***************************************************************************************/
  37181. /*! no static exports found */
  37182. /***/ (function(module, exports, __webpack_require__) {
  37183. "use strict";
  37184. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  37185. Object.defineProperty(exports, "__esModule", {
  37186. value: true
  37187. });
  37188. exports.default = void 0;
  37189. var _en = _interopRequireDefault(__webpack_require__(/*! ./en.json */ 394));
  37190. var _zhHans = _interopRequireDefault(__webpack_require__(/*! ./zh-Hans.json */ 395));
  37191. var _zhHant = _interopRequireDefault(__webpack_require__(/*! ./zh-Hant.json */ 396));
  37192. var _default = {
  37193. en: _en.default,
  37194. 'zh-Hans': _zhHans.default,
  37195. 'zh-Hant': _zhHant.default
  37196. };
  37197. exports.default = _default;
  37198. /***/ }),
  37199. /* 394 */
  37200. /*!**************************************************************************************!*\
  37201. !*** D:/project/项目模板/uniapp/uni_modules/uni-popup/components/uni-popup/i18n/en.json ***!
  37202. \**************************************************************************************/
  37203. /*! exports provided: uni-popup.cancel, uni-popup.ok, uni-popup.placeholder, uni-popup.title, uni-popup.shareTitle, default */
  37204. /***/ (function(module) {
  37205. module.exports = JSON.parse("{\"uni-popup.cancel\":\"cancel\",\"uni-popup.ok\":\"ok\",\"uni-popup.placeholder\":\"pleace enter\",\"uni-popup.title\":\"Hint\",\"uni-popup.shareTitle\":\"Share to\"}");
  37206. /***/ }),
  37207. /* 395 */
  37208. /*!*******************************************************************************************!*\
  37209. !*** D:/project/项目模板/uniapp/uni_modules/uni-popup/components/uni-popup/i18n/zh-Hans.json ***!
  37210. \*******************************************************************************************/
  37211. /*! exports provided: uni-popup.cancel, uni-popup.ok, uni-popup.placeholder, uni-popup.title, uni-popup.shareTitle, default */
  37212. /***/ (function(module) {
  37213. module.exports = JSON.parse("{\"uni-popup.cancel\":\"取消\",\"uni-popup.ok\":\"确定\",\"uni-popup.placeholder\":\"请输入\",\"uni-popup.title\":\"提示\",\"uni-popup.shareTitle\":\"分享到\"}");
  37214. /***/ }),
  37215. /* 396 */
  37216. /*!*******************************************************************************************!*\
  37217. !*** D:/project/项目模板/uniapp/uni_modules/uni-popup/components/uni-popup/i18n/zh-Hant.json ***!
  37218. \*******************************************************************************************/
  37219. /*! exports provided: uni-popup.cancel, uni-popup.ok, uni-popup.placeholder, uni-popup.title, uni-popup.shareTitle, default */
  37220. /***/ (function(module) {
  37221. module.exports = JSON.parse("{\"uni-popup.cancel\":\"取消\",\"uni-popup.ok\":\"確定\",\"uni-popup.placeholder\":\"請輸入\",\"uni-popup.title\":\"提示\",\"uni-popup.shareTitle\":\"分享到\"}");
  37222. /***/ }),
  37223. /* 397 */,
  37224. /* 398 */,
  37225. /* 399 */,
  37226. /* 400 */,
  37227. /* 401 */,
  37228. /* 402 */,
  37229. /* 403 */,
  37230. /* 404 */,
  37231. /* 405 */,
  37232. /* 406 */,
  37233. /* 407 */,
  37234. /* 408 */,
  37235. /* 409 */,
  37236. /* 410 */,
  37237. /* 411 */
  37238. /*!***********************************************************************************************!*\
  37239. !*** D:/project/项目模板/uniapp/uni_modules/uni-load-more/components/uni-load-more/i18n/index.js ***!
  37240. \***********************************************************************************************/
  37241. /*! no static exports found */
  37242. /***/ (function(module, exports, __webpack_require__) {
  37243. "use strict";
  37244. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  37245. Object.defineProperty(exports, "__esModule", {
  37246. value: true
  37247. });
  37248. exports.default = void 0;
  37249. var _en = _interopRequireDefault(__webpack_require__(/*! ./en.json */ 412));
  37250. var _zhHans = _interopRequireDefault(__webpack_require__(/*! ./zh-Hans.json */ 413));
  37251. var _zhHant = _interopRequireDefault(__webpack_require__(/*! ./zh-Hant.json */ 414));
  37252. var _default = {
  37253. en: _en.default,
  37254. 'zh-Hans': _zhHans.default,
  37255. 'zh-Hant': _zhHant.default
  37256. };
  37257. exports.default = _default;
  37258. /***/ }),
  37259. /* 412 */
  37260. /*!**********************************************************************************************!*\
  37261. !*** D:/project/项目模板/uniapp/uni_modules/uni-load-more/components/uni-load-more/i18n/en.json ***!
  37262. \**********************************************************************************************/
  37263. /*! exports provided: uni-load-more.contentdown, uni-load-more.contentrefresh, uni-load-more.contentnomore, default */
  37264. /***/ (function(module) {
  37265. module.exports = JSON.parse("{\"uni-load-more.contentdown\":\"Pull up to show more\",\"uni-load-more.contentrefresh\":\"loading...\",\"uni-load-more.contentnomore\":\"No more data\"}");
  37266. /***/ }),
  37267. /* 413 */
  37268. /*!***************************************************************************************************!*\
  37269. !*** D:/project/项目模板/uniapp/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hans.json ***!
  37270. \***************************************************************************************************/
  37271. /*! exports provided: uni-load-more.contentdown, uni-load-more.contentrefresh, uni-load-more.contentnomore, default */
  37272. /***/ (function(module) {
  37273. module.exports = JSON.parse("{\"uni-load-more.contentdown\":\"上拉显示更多\",\"uni-load-more.contentrefresh\":\"正在加载...\",\"uni-load-more.contentnomore\":\"没有更多数据了\"}");
  37274. /***/ }),
  37275. /* 414 */
  37276. /*!***************************************************************************************************!*\
  37277. !*** D:/project/项目模板/uniapp/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hant.json ***!
  37278. \***************************************************************************************************/
  37279. /*! exports provided: uni-load-more.contentdown, uni-load-more.contentrefresh, uni-load-more.contentnomore, default */
  37280. /***/ (function(module) {
  37281. module.exports = JSON.parse("{\"uni-load-more.contentdown\":\"上拉顯示更多\",\"uni-load-more.contentrefresh\":\"正在加載...\",\"uni-load-more.contentnomore\":\"沒有更多數據了\"}");
  37282. /***/ }),
  37283. /* 415 */,
  37284. /* 416 */,
  37285. /* 417 */,
  37286. /* 418 */,
  37287. /* 419 */,
  37288. /* 420 */,
  37289. /* 421 */,
  37290. /* 422 */
  37291. /*!******************************************************************************************************!*\
  37292. !*** D:/project/项目模板/uniapp/uni_modules/uni-transition/components/uni-transition/createAnimation.js ***!
  37293. \******************************************************************************************************/
  37294. /*! no static exports found */
  37295. /***/ (function(module, exports, __webpack_require__) {
  37296. "use strict";
  37297. /* WEBPACK VAR INJECTION */(function(uni) {
  37298. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  37299. Object.defineProperty(exports, "__esModule", {
  37300. value: true
  37301. });
  37302. exports.createAnimation = createAnimation;
  37303. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  37304. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  37305. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  37306. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  37307. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  37308. // const defaultOption = {
  37309. // duration: 300,
  37310. // timingFunction: 'linear',
  37311. // delay: 0,
  37312. // transformOrigin: '50% 50% 0'
  37313. // }
  37314. var MPAnimation = /*#__PURE__*/function () {
  37315. function MPAnimation(options, _this) {
  37316. (0, _classCallCheck2.default)(this, MPAnimation);
  37317. this.options = options;
  37318. this.animation = uni.createAnimation(options);
  37319. this.currentStepAnimates = {};
  37320. this.next = 0;
  37321. this.$ = _this;
  37322. }
  37323. (0, _createClass2.default)(MPAnimation, [{
  37324. key: "_nvuePushAnimates",
  37325. value: function _nvuePushAnimates(type, args) {
  37326. var aniObj = this.currentStepAnimates[this.next];
  37327. var styles = {};
  37328. if (!aniObj) {
  37329. styles = {
  37330. styles: {},
  37331. config: {}
  37332. };
  37333. } else {
  37334. styles = aniObj;
  37335. }
  37336. if (animateTypes1.includes(type)) {
  37337. if (!styles.styles.transform) {
  37338. styles.styles.transform = '';
  37339. }
  37340. var unit = '';
  37341. if (type === 'rotate') {
  37342. unit = 'deg';
  37343. }
  37344. styles.styles.transform += "".concat(type, "(").concat(args + unit, ") ");
  37345. } else {
  37346. styles.styles[type] = "".concat(args);
  37347. }
  37348. this.currentStepAnimates[this.next] = styles;
  37349. }
  37350. }, {
  37351. key: "_animateRun",
  37352. value: function _animateRun() {
  37353. var styles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  37354. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  37355. var ref = this.$.$refs['ani'].ref;
  37356. if (!ref) return;
  37357. return new Promise(function (resolve, reject) {
  37358. nvueAnimation.transition(ref, _objectSpread({
  37359. styles: styles
  37360. }, config), function (res) {
  37361. resolve();
  37362. });
  37363. });
  37364. }
  37365. }, {
  37366. key: "_nvueNextAnimate",
  37367. value: function _nvueNextAnimate(animates) {
  37368. var _this2 = this;
  37369. var step = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  37370. var fn = arguments.length > 2 ? arguments[2] : undefined;
  37371. var obj = animates[step];
  37372. if (obj) {
  37373. var styles = obj.styles,
  37374. config = obj.config;
  37375. this._animateRun(styles, config).then(function () {
  37376. step += 1;
  37377. _this2._nvueNextAnimate(animates, step, fn);
  37378. });
  37379. } else {
  37380. this.currentStepAnimates = {};
  37381. typeof fn === 'function' && fn();
  37382. this.isEnd = true;
  37383. }
  37384. }
  37385. }, {
  37386. key: "step",
  37387. value: function step() {
  37388. var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  37389. this.animation.step(config);
  37390. return this;
  37391. }
  37392. }, {
  37393. key: "run",
  37394. value: function run(fn) {
  37395. this.$.animationData = this.animation.export();
  37396. this.$.timer = setTimeout(function () {
  37397. typeof fn === 'function' && fn();
  37398. }, this.$.durationTime);
  37399. }
  37400. }]);
  37401. return MPAnimation;
  37402. }();
  37403. var animateTypes1 = ['matrix', 'matrix3d', 'rotate', 'rotate3d', 'rotateX', 'rotateY', 'rotateZ', 'scale', 'scale3d', 'scaleX', 'scaleY', 'scaleZ', 'skew', 'skewX', 'skewY', 'translate', 'translate3d', 'translateX', 'translateY', 'translateZ'];
  37404. var animateTypes2 = ['opacity', 'backgroundColor'];
  37405. var animateTypes3 = ['width', 'height', 'left', 'right', 'top', 'bottom'];
  37406. animateTypes1.concat(animateTypes2, animateTypes3).forEach(function (type) {
  37407. MPAnimation.prototype[type] = function () {
  37408. var _this$animation;
  37409. (_this$animation = this.animation)[type].apply(_this$animation, arguments);
  37410. return this;
  37411. };
  37412. });
  37413. function createAnimation(option, _this) {
  37414. if (!_this) return;
  37415. clearTimeout(_this.timer);
  37416. return new MPAnimation(option, _this);
  37417. }
  37418. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  37419. /***/ })
  37420. ]]);
  37421. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map