vendor.js 638 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],[
  2. /* 0 */,
  3. /* 1 */
  4. /*!*************************************************************!*\
  5. !*** ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js ***!
  6. \*************************************************************/
  7. /*! no static exports found */
  8. /***/ (function(module, exports, __webpack_require__) {
  9. "use strict";
  10. /* WEBPACK VAR INJECTION */(function(global) {
  11. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  12. Object.defineProperty(exports, "__esModule", {
  13. value: true
  14. });
  15. exports.createApp = createApp;
  16. exports.createComponent = createComponent;
  17. exports.createPage = createPage;
  18. exports.createPlugin = createPlugin;
  19. exports.createSubpackageApp = createSubpackageApp;
  20. exports.default = void 0;
  21. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 4));
  22. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 10));
  23. var _construct2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/construct */ 14));
  24. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 17));
  25. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 18));
  26. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 19));
  27. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 12));
  28. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 23);
  29. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 24));
  30. 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; }
  31. 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; }
  32. var realAtob;
  33. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  34. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  35. if (typeof atob !== 'function') {
  36. realAtob = function realAtob(str) {
  37. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  38. if (!b64re.test(str)) {
  39. throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  40. }
  41. // Adding the padding if missing, for semplicity
  42. str += '=='.slice(2 - (str.length & 3));
  43. var bitmap;
  44. var result = '';
  45. var r1;
  46. var r2;
  47. var i = 0;
  48. for (; i < str.length;) {
  49. 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++)));
  50. 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);
  51. }
  52. return result;
  53. };
  54. } else {
  55. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  56. realAtob = atob;
  57. }
  58. function b64DecodeUnicode(str) {
  59. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  60. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  61. }).join(''));
  62. }
  63. function getCurrentUserInfo() {
  64. var token = tt.getStorageSync('uni_id_token') || '';
  65. var tokenArr = token.split('.');
  66. if (!token || tokenArr.length !== 3) {
  67. return {
  68. uid: null,
  69. role: [],
  70. permission: [],
  71. tokenExpired: 0
  72. };
  73. }
  74. var userInfo;
  75. try {
  76. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  77. } catch (error) {
  78. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  79. }
  80. userInfo.tokenExpired = userInfo.exp * 1000;
  81. delete userInfo.exp;
  82. delete userInfo.iat;
  83. return userInfo;
  84. }
  85. function uniIdMixin(Vue) {
  86. Vue.prototype.uniIDHasRole = function (roleId) {
  87. var _getCurrentUserInfo = getCurrentUserInfo(),
  88. role = _getCurrentUserInfo.role;
  89. return role.indexOf(roleId) > -1;
  90. };
  91. Vue.prototype.uniIDHasPermission = function (permissionId) {
  92. var _getCurrentUserInfo2 = getCurrentUserInfo(),
  93. permission = _getCurrentUserInfo2.permission;
  94. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  95. };
  96. Vue.prototype.uniIDTokenValid = function () {
  97. var _getCurrentUserInfo3 = getCurrentUserInfo(),
  98. tokenExpired = _getCurrentUserInfo3.tokenExpired;
  99. return tokenExpired > Date.now();
  100. };
  101. }
  102. var _toString = Object.prototype.toString;
  103. var hasOwnProperty = Object.prototype.hasOwnProperty;
  104. function isFn(fn) {
  105. return typeof fn === 'function';
  106. }
  107. function isStr(str) {
  108. return typeof str === 'string';
  109. }
  110. function isObject(obj) {
  111. return obj !== null && (0, _typeof2.default)(obj) === 'object';
  112. }
  113. function isPlainObject(obj) {
  114. return _toString.call(obj) === '[object Object]';
  115. }
  116. function hasOwn(obj, key) {
  117. return hasOwnProperty.call(obj, key);
  118. }
  119. function noop() {}
  120. /**
  121. * Create a cached version of a pure function.
  122. */
  123. function cached(fn) {
  124. var cache = Object.create(null);
  125. return function cachedFn(str) {
  126. var hit = cache[str];
  127. return hit || (cache[str] = fn(str));
  128. };
  129. }
  130. /**
  131. * Camelize a hyphen-delimited string.
  132. */
  133. var camelizeRE = /-(\w)/g;
  134. var camelize = cached(function (str) {
  135. return str.replace(camelizeRE, function (_, c) {
  136. return c ? c.toUpperCase() : '';
  137. });
  138. });
  139. var HOOKS = ['invoke', 'success', 'fail', 'complete', 'returnValue'];
  140. var globalInterceptors = {};
  141. var scopedInterceptors = {};
  142. function mergeHook(parentVal, childVal) {
  143. var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal;
  144. return res ? dedupeHooks(res) : res;
  145. }
  146. function dedupeHooks(hooks) {
  147. var res = [];
  148. for (var i = 0; i < hooks.length; i++) {
  149. if (res.indexOf(hooks[i]) === -1) {
  150. res.push(hooks[i]);
  151. }
  152. }
  153. return res;
  154. }
  155. function removeHook(hooks, hook) {
  156. var index = hooks.indexOf(hook);
  157. if (index !== -1) {
  158. hooks.splice(index, 1);
  159. }
  160. }
  161. function mergeInterceptorHook(interceptor, option) {
  162. Object.keys(option).forEach(function (hook) {
  163. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  164. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  165. }
  166. });
  167. }
  168. function removeInterceptorHook(interceptor, option) {
  169. if (!interceptor || !option) {
  170. return;
  171. }
  172. Object.keys(option).forEach(function (hook) {
  173. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  174. removeHook(interceptor[hook], option[hook]);
  175. }
  176. });
  177. }
  178. function addInterceptor(method, option) {
  179. if (typeof method === 'string' && isPlainObject(option)) {
  180. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  181. } else if (isPlainObject(method)) {
  182. mergeInterceptorHook(globalInterceptors, method);
  183. }
  184. }
  185. function removeInterceptor(method, option) {
  186. if (typeof method === 'string') {
  187. if (isPlainObject(option)) {
  188. removeInterceptorHook(scopedInterceptors[method], option);
  189. } else {
  190. delete scopedInterceptors[method];
  191. }
  192. } else if (isPlainObject(method)) {
  193. removeInterceptorHook(globalInterceptors, method);
  194. }
  195. }
  196. function wrapperHook(hook, params) {
  197. return function (data) {
  198. return hook(data, params) || data;
  199. };
  200. }
  201. function isPromise(obj) {
  202. return !!obj && ((0, _typeof2.default)(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  203. }
  204. function queue(hooks, data, params) {
  205. var promise = false;
  206. for (var i = 0; i < hooks.length; i++) {
  207. var hook = hooks[i];
  208. if (promise) {
  209. promise = Promise.resolve(wrapperHook(hook, params));
  210. } else {
  211. var res = hook(data, params);
  212. if (isPromise(res)) {
  213. promise = Promise.resolve(res);
  214. }
  215. if (res === false) {
  216. return {
  217. then: function then() {}
  218. };
  219. }
  220. }
  221. }
  222. return promise || {
  223. then: function then(callback) {
  224. return callback(data);
  225. }
  226. };
  227. }
  228. function wrapperOptions(interceptor) {
  229. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  230. ['success', 'fail', 'complete'].forEach(function (name) {
  231. if (Array.isArray(interceptor[name])) {
  232. var oldCallback = options[name];
  233. options[name] = function callbackInterceptor(res) {
  234. queue(interceptor[name], res, options).then(function (res) {
  235. /* eslint-disable no-mixed-operators */
  236. return isFn(oldCallback) && oldCallback(res) || res;
  237. });
  238. };
  239. }
  240. });
  241. return options;
  242. }
  243. function wrapperReturnValue(method, returnValue) {
  244. var returnValueHooks = [];
  245. if (Array.isArray(globalInterceptors.returnValue)) {
  246. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(globalInterceptors.returnValue));
  247. }
  248. var interceptor = scopedInterceptors[method];
  249. if (interceptor && Array.isArray(interceptor.returnValue)) {
  250. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(interceptor.returnValue));
  251. }
  252. returnValueHooks.forEach(function (hook) {
  253. returnValue = hook(returnValue) || returnValue;
  254. });
  255. return returnValue;
  256. }
  257. function getApiInterceptorHooks(method) {
  258. var interceptor = Object.create(null);
  259. Object.keys(globalInterceptors).forEach(function (hook) {
  260. if (hook !== 'returnValue') {
  261. interceptor[hook] = globalInterceptors[hook].slice();
  262. }
  263. });
  264. var scopedInterceptor = scopedInterceptors[method];
  265. if (scopedInterceptor) {
  266. Object.keys(scopedInterceptor).forEach(function (hook) {
  267. if (hook !== 'returnValue') {
  268. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  269. }
  270. });
  271. }
  272. return interceptor;
  273. }
  274. function invokeApi(method, api, options) {
  275. for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
  276. params[_key - 3] = arguments[_key];
  277. }
  278. var interceptor = getApiInterceptorHooks(method);
  279. if (interceptor && Object.keys(interceptor).length) {
  280. if (Array.isArray(interceptor.invoke)) {
  281. var res = queue(interceptor.invoke, options);
  282. return res.then(function (options) {
  283. // 重新访问 getApiInterceptorHooks, 允许 invoke 中再次调用 addInterceptor,removeInterceptor
  284. return api.apply(void 0, [wrapperOptions(getApiInterceptorHooks(method), options)].concat(params));
  285. });
  286. } else {
  287. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  288. }
  289. }
  290. return api.apply(void 0, [options].concat(params));
  291. }
  292. var promiseInterceptor = {
  293. returnValue: function returnValue(res) {
  294. if (!isPromise(res)) {
  295. return res;
  296. }
  297. return new Promise(function (resolve, reject) {
  298. res.then(function (res) {
  299. if (res[0]) {
  300. reject(res[0]);
  301. } else {
  302. resolve(res[1]);
  303. }
  304. });
  305. });
  306. }
  307. };
  308. 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/;
  309. var CONTEXT_API_RE = /^create|Manager$/;
  310. // Context例外情况
  311. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  312. // 同步例外情况
  313. var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
  314. var CALLBACK_API_RE = /^on|^off/;
  315. function isContextApi(name) {
  316. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  317. }
  318. function isSyncApi(name) {
  319. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  320. }
  321. function isCallbackApi(name) {
  322. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  323. }
  324. function handlePromise(promise) {
  325. return promise.then(function (data) {
  326. return [null, data];
  327. }).catch(function (err) {
  328. return [err];
  329. });
  330. }
  331. function shouldPromise(name) {
  332. if (isContextApi(name) || isSyncApi(name) || isCallbackApi(name)) {
  333. return false;
  334. }
  335. return true;
  336. }
  337. /* eslint-disable no-extend-native */
  338. if (!Promise.prototype.finally) {
  339. Promise.prototype.finally = function (callback) {
  340. var promise = this.constructor;
  341. return this.then(function (value) {
  342. return promise.resolve(callback()).then(function () {
  343. return value;
  344. });
  345. }, function (reason) {
  346. return promise.resolve(callback()).then(function () {
  347. throw reason;
  348. });
  349. });
  350. };
  351. }
  352. function promisify(name, api) {
  353. if (!shouldPromise(name) || !isFn(api)) {
  354. return api;
  355. }
  356. return function promiseApi() {
  357. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  358. for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  359. params[_key2 - 1] = arguments[_key2];
  360. }
  361. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  362. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  363. }
  364. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  365. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  366. success: resolve,
  367. fail: reject
  368. })].concat(params));
  369. })));
  370. };
  371. }
  372. var EPS = 1e-4;
  373. var BASE_DEVICE_WIDTH = 750;
  374. var isIOS = false;
  375. var deviceWidth = 0;
  376. var deviceDPR = 0;
  377. function checkDeviceWidth() {
  378. var _tt$getSystemInfoSync = tt.getSystemInfoSync(),
  379. platform = _tt$getSystemInfoSync.platform,
  380. pixelRatio = _tt$getSystemInfoSync.pixelRatio,
  381. windowWidth = _tt$getSystemInfoSync.windowWidth; // uni=>tt runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  382. deviceWidth = windowWidth;
  383. deviceDPR = pixelRatio;
  384. isIOS = platform === 'ios';
  385. }
  386. function upx2px(number, newDeviceWidth) {
  387. if (deviceWidth === 0) {
  388. checkDeviceWidth();
  389. }
  390. number = Number(number);
  391. if (number === 0) {
  392. return 0;
  393. }
  394. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  395. if (result < 0) {
  396. result = -result;
  397. }
  398. result = Math.floor(result + EPS);
  399. if (result === 0) {
  400. if (deviceDPR === 1 || !isIOS) {
  401. result = 1;
  402. } else {
  403. result = 0.5;
  404. }
  405. }
  406. return number < 0 ? -result : result;
  407. }
  408. var LOCALE_ZH_HANS = 'zh-Hans';
  409. var LOCALE_ZH_HANT = 'zh-Hant';
  410. var LOCALE_EN = 'en';
  411. var LOCALE_FR = 'fr';
  412. var LOCALE_ES = 'es';
  413. var messages = {};
  414. var locale;
  415. {
  416. locale = normalizeLocale(tt.getSystemInfoSync().language) || LOCALE_EN;
  417. }
  418. function initI18nMessages() {
  419. if (!isEnableLocale()) {
  420. return;
  421. }
  422. var localeKeys = Object.keys(__uniConfig.locales);
  423. if (localeKeys.length) {
  424. localeKeys.forEach(function (locale) {
  425. var curMessages = messages[locale];
  426. var userMessages = __uniConfig.locales[locale];
  427. if (curMessages) {
  428. Object.assign(curMessages, userMessages);
  429. } else {
  430. messages[locale] = userMessages;
  431. }
  432. });
  433. }
  434. }
  435. initI18nMessages();
  436. var i18n = (0, _uniI18n.initVueI18n)(locale, {});
  437. var t = i18n.t;
  438. var i18nMixin = i18n.mixin = {
  439. beforeCreate: function beforeCreate() {
  440. var _this = this;
  441. var unwatch = i18n.i18n.watchLocale(function () {
  442. _this.$forceUpdate();
  443. });
  444. this.$once('hook:beforeDestroy', function () {
  445. unwatch();
  446. });
  447. },
  448. methods: {
  449. $$t: function $$t(key, values) {
  450. return t(key, values);
  451. }
  452. }
  453. };
  454. var setLocale = i18n.setLocale;
  455. var getLocale = i18n.getLocale;
  456. function initAppLocale(Vue, appVm, locale) {
  457. var state = Vue.observable({
  458. locale: locale || i18n.getLocale()
  459. });
  460. var localeWatchers = [];
  461. appVm.$watchLocale = function (fn) {
  462. localeWatchers.push(fn);
  463. };
  464. Object.defineProperty(appVm, '$locale', {
  465. get: function get() {
  466. return state.locale;
  467. },
  468. set: function set(v) {
  469. state.locale = v;
  470. localeWatchers.forEach(function (watch) {
  471. return watch(v);
  472. });
  473. }
  474. });
  475. }
  476. function isEnableLocale() {
  477. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  478. }
  479. function include(str, parts) {
  480. return !!parts.find(function (part) {
  481. return str.indexOf(part) !== -1;
  482. });
  483. }
  484. function startsWith(str, parts) {
  485. return parts.find(function (part) {
  486. return str.indexOf(part) === 0;
  487. });
  488. }
  489. function normalizeLocale(locale, messages) {
  490. if (!locale) {
  491. return;
  492. }
  493. locale = locale.trim().replace(/_/g, '-');
  494. if (messages && messages[locale]) {
  495. return locale;
  496. }
  497. locale = locale.toLowerCase();
  498. if (locale === 'chinese') {
  499. // 支付宝
  500. return LOCALE_ZH_HANS;
  501. }
  502. if (locale.indexOf('zh') === 0) {
  503. if (locale.indexOf('-hans') > -1) {
  504. return LOCALE_ZH_HANS;
  505. }
  506. if (locale.indexOf('-hant') > -1) {
  507. return LOCALE_ZH_HANT;
  508. }
  509. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  510. return LOCALE_ZH_HANT;
  511. }
  512. return LOCALE_ZH_HANS;
  513. }
  514. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  515. if (lang) {
  516. return lang;
  517. }
  518. }
  519. // export function initI18n() {
  520. // const localeKeys = Object.keys(__uniConfig.locales || {})
  521. // if (localeKeys.length) {
  522. // localeKeys.forEach((locale) =>
  523. // i18n.add(locale, __uniConfig.locales[locale])
  524. // )
  525. // }
  526. // }
  527. function getLocale$1() {
  528. // 优先使用 $locale
  529. if (isFn(getApp)) {
  530. var app = getApp({
  531. allowDefault: true
  532. });
  533. if (app && app.$vm) {
  534. return app.$vm.$locale;
  535. }
  536. }
  537. return normalizeLocale(tt.getSystemInfoSync().language) || LOCALE_EN;
  538. }
  539. function setLocale$1(locale) {
  540. var app = isFn(getApp) ? getApp() : false;
  541. if (!app) {
  542. return false;
  543. }
  544. var oldLocale = app.$vm.$locale;
  545. if (oldLocale !== locale) {
  546. app.$vm.$locale = locale;
  547. onLocaleChangeCallbacks.forEach(function (fn) {
  548. return fn({
  549. locale: locale
  550. });
  551. });
  552. return true;
  553. }
  554. return false;
  555. }
  556. var onLocaleChangeCallbacks = [];
  557. function onLocaleChange(fn) {
  558. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  559. onLocaleChangeCallbacks.push(fn);
  560. }
  561. }
  562. if (typeof global !== 'undefined') {
  563. global.getLocale = getLocale$1;
  564. }
  565. var interceptors = {
  566. promiseInterceptor: promiseInterceptor
  567. };
  568. var baseApi = /*#__PURE__*/Object.freeze({
  569. __proto__: null,
  570. upx2px: upx2px,
  571. getLocale: getLocale$1,
  572. setLocale: setLocale$1,
  573. onLocaleChange: onLocaleChange,
  574. addInterceptor: addInterceptor,
  575. removeInterceptor: removeInterceptor,
  576. interceptors: interceptors
  577. });
  578. var EventChannel = /*#__PURE__*/function () {
  579. function EventChannel(id, events) {
  580. var _this2 = this;
  581. (0, _classCallCheck2.default)(this, EventChannel);
  582. this.id = id;
  583. this.listener = {};
  584. this.emitCache = {};
  585. if (events) {
  586. Object.keys(events).forEach(function (name) {
  587. _this2.on(name, events[name]);
  588. });
  589. }
  590. }
  591. (0, _createClass2.default)(EventChannel, [{
  592. key: "emit",
  593. value: function emit(eventName) {
  594. for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
  595. args[_key3 - 1] = arguments[_key3];
  596. }
  597. var fns = this.listener[eventName];
  598. if (!fns) {
  599. return (this.emitCache[eventName] || (this.emitCache[eventName] = [])).push(args);
  600. }
  601. fns.forEach(function (opt) {
  602. opt.fn.apply(opt.fn, args);
  603. });
  604. this.listener[eventName] = fns.filter(function (opt) {
  605. return opt.type !== 'once';
  606. });
  607. }
  608. }, {
  609. key: "on",
  610. value: function on(eventName, fn) {
  611. this._addListener(eventName, 'on', fn);
  612. this._clearCache(eventName);
  613. }
  614. }, {
  615. key: "once",
  616. value: function once(eventName, fn) {
  617. this._addListener(eventName, 'once', fn);
  618. this._clearCache(eventName);
  619. }
  620. }, {
  621. key: "off",
  622. value: function off(eventName, fn) {
  623. var fns = this.listener[eventName];
  624. if (!fns) {
  625. return;
  626. }
  627. if (fn) {
  628. for (var i = 0; i < fns.length;) {
  629. if (fns[i].fn === fn) {
  630. fns.splice(i, 1);
  631. i--;
  632. }
  633. i++;
  634. }
  635. } else {
  636. delete this.listener[eventName];
  637. }
  638. }
  639. }, {
  640. key: "_clearCache",
  641. value: function _clearCache(eventName) {
  642. var cacheArgs = this.emitCache[eventName];
  643. if (cacheArgs) {
  644. for (; cacheArgs.length > 0;) {
  645. this.emit.apply(this, [eventName].concat(cacheArgs.shift()));
  646. }
  647. }
  648. }
  649. }, {
  650. key: "_addListener",
  651. value: function _addListener(eventName, type, fn) {
  652. (this.listener[eventName] || (this.listener[eventName] = [])).push({
  653. fn: fn,
  654. type: type
  655. });
  656. }
  657. }]);
  658. return EventChannel;
  659. }();
  660. var eventChannels = {};
  661. var id = 0;
  662. function initEventChannel(events) {
  663. var cache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  664. id++;
  665. var eventChannel = new EventChannel(id, events);
  666. if (cache) {
  667. eventChannels[id] = eventChannel;
  668. }
  669. return eventChannel;
  670. }
  671. function getEventChannel(id) {
  672. var eventChannel = eventChannels[id];
  673. delete eventChannels[id];
  674. return eventChannel;
  675. }
  676. function navigateTo() {
  677. var eventChannel;
  678. return {
  679. args: function args(fromArgs, toArgs) {
  680. eventChannel = initEventChannel(fromArgs.events);
  681. if (fromArgs.url) {
  682. fromArgs.url = fromArgs.url + (fromArgs.url.indexOf('?') === -1 ? '?' : '&') + '__id__=' + eventChannel.id;
  683. }
  684. },
  685. returnValue: function returnValue(fromRes, toRes) {
  686. fromRes.eventChannel = eventChannel;
  687. }
  688. };
  689. }
  690. function findExistsPageIndex(url) {
  691. var pages = getCurrentPages();
  692. var len = pages.length;
  693. while (len--) {
  694. var page = pages[len];
  695. if (page.$page && page.$page.fullPath === url) {
  696. return len;
  697. }
  698. }
  699. return -1;
  700. }
  701. var redirectTo = {
  702. name: function name(fromArgs) {
  703. if (fromArgs.exists === 'back' && fromArgs.delta) {
  704. return 'navigateBack';
  705. }
  706. return 'redirectTo';
  707. },
  708. args: function args(fromArgs) {
  709. if (fromArgs.exists === 'back' && fromArgs.url) {
  710. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  711. if (existsPageIndex !== -1) {
  712. var delta = getCurrentPages().length - 1 - existsPageIndex;
  713. if (delta > 0) {
  714. fromArgs.delta = delta;
  715. }
  716. }
  717. }
  718. }
  719. };
  720. var previewImage = {
  721. args: function args(fromArgs) {
  722. var currentIndex = parseInt(fromArgs.current);
  723. if (isNaN(currentIndex)) {
  724. return;
  725. }
  726. var urls = fromArgs.urls;
  727. if (!Array.isArray(urls)) {
  728. return;
  729. }
  730. var len = urls.length;
  731. if (!len) {
  732. return;
  733. }
  734. if (currentIndex < 0) {
  735. currentIndex = 0;
  736. } else if (currentIndex >= len) {
  737. currentIndex = len - 1;
  738. }
  739. if (currentIndex > 0) {
  740. fromArgs.current = urls[currentIndex];
  741. fromArgs.urls = urls.filter(function (item, index) {
  742. return index < currentIndex ? item !== urls[currentIndex] : true;
  743. });
  744. } else {
  745. fromArgs.current = urls[0];
  746. }
  747. return {
  748. indicator: false,
  749. loop: false
  750. };
  751. }
  752. };
  753. var UUID_KEY = '__DC_STAT_UUID';
  754. var deviceId;
  755. function useDeviceId(result) {
  756. deviceId = deviceId || tt.getStorageSync(UUID_KEY);
  757. if (!deviceId) {
  758. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  759. tt.setStorage({
  760. key: UUID_KEY,
  761. data: deviceId
  762. });
  763. }
  764. result.deviceId = deviceId;
  765. }
  766. function addSafeAreaInsets(result) {
  767. if (result.safeArea) {
  768. var safeArea = result.safeArea;
  769. result.safeAreaInsets = {
  770. top: safeArea.top,
  771. left: safeArea.left,
  772. right: result.windowWidth - safeArea.right,
  773. bottom: result.screenHeight - safeArea.bottom
  774. };
  775. }
  776. }
  777. function populateParameters(result) {
  778. var _result$brand = result.brand,
  779. brand = _result$brand === void 0 ? '' : _result$brand,
  780. _result$model = result.model,
  781. model = _result$model === void 0 ? '' : _result$model,
  782. _result$system = result.system,
  783. system = _result$system === void 0 ? '' : _result$system,
  784. _result$language = result.language,
  785. language = _result$language === void 0 ? '' : _result$language,
  786. theme = result.theme,
  787. version = result.version,
  788. platform = result.platform,
  789. fontSizeSetting = result.fontSizeSetting,
  790. SDKVersion = result.SDKVersion,
  791. pixelRatio = result.pixelRatio,
  792. deviceOrientation = result.deviceOrientation;
  793. // const isQuickApp = "mp-toutiao".indexOf('quickapp-webview') !== -1
  794. var extraParam = {};
  795. // osName osVersion
  796. var osName = '';
  797. var osVersion = '';
  798. {
  799. osName = system.split(' ')[0] || '';
  800. osVersion = system.split(' ')[1] || '';
  801. }
  802. var hostVersion = version;
  803. // deviceType
  804. var deviceType = getGetDeviceType(result, model);
  805. // deviceModel
  806. var deviceBrand = getDeviceBrand(brand);
  807. // hostName
  808. var _hostName = getHostName(result);
  809. // deviceOrientation
  810. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  811. // devicePixelRatio
  812. var _devicePixelRatio = pixelRatio;
  813. // SDKVersion
  814. var _SDKVersion = SDKVersion;
  815. // hostLanguage
  816. var hostLanguage = language.replace(/_/g, '-');
  817. // wx.getAccountInfoSync
  818. var parameters = {
  819. appId: "__UNI__EEB3904",
  820. appName: "shoppingTemplate",
  821. appVersion: "1.0.0",
  822. appVersionCode: "100",
  823. appLanguage: getAppLanguage(hostLanguage),
  824. uniCompileVersion: "3.8.7",
  825. uniRuntimeVersion: "3.8.7",
  826. uniPlatform: undefined || "mp-toutiao",
  827. deviceBrand: deviceBrand,
  828. deviceModel: model,
  829. deviceType: deviceType,
  830. devicePixelRatio: _devicePixelRatio,
  831. deviceOrientation: _deviceOrientation,
  832. osName: osName.toLocaleLowerCase(),
  833. osVersion: osVersion,
  834. hostTheme: theme,
  835. hostVersion: hostVersion,
  836. hostLanguage: hostLanguage,
  837. hostName: _hostName,
  838. hostSDKVersion: _SDKVersion,
  839. hostFontSizeSetting: fontSizeSetting,
  840. windowTop: 0,
  841. windowBottom: 0,
  842. // TODO
  843. osLanguage: undefined,
  844. osTheme: undefined,
  845. ua: undefined,
  846. hostPackageName: undefined,
  847. browserName: undefined,
  848. browserVersion: undefined
  849. };
  850. Object.assign(result, parameters, extraParam);
  851. }
  852. function getGetDeviceType(result, model) {
  853. var deviceType = result.deviceType || 'phone';
  854. {
  855. var deviceTypeMaps = {
  856. ipad: 'pad',
  857. windows: 'pc',
  858. mac: 'pc'
  859. };
  860. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  861. var _model = model.toLocaleLowerCase();
  862. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  863. var _m = deviceTypeMapsKeys[index];
  864. if (_model.indexOf(_m) !== -1) {
  865. deviceType = deviceTypeMaps[_m];
  866. break;
  867. }
  868. }
  869. }
  870. return deviceType;
  871. }
  872. function getDeviceBrand(brand) {
  873. var deviceBrand = brand;
  874. if (deviceBrand) {
  875. deviceBrand = brand.toLocaleLowerCase();
  876. }
  877. return deviceBrand;
  878. }
  879. function getAppLanguage(defaultLanguage) {
  880. return getLocale$1 ? getLocale$1() : defaultLanguage;
  881. }
  882. function getHostName(result) {
  883. var _platform = "mp-toutiao".split('-')[1];
  884. var _hostName = result.hostName || _platform; // mp-jd
  885. {
  886. _hostName = result.appName;
  887. }
  888. return _hostName;
  889. }
  890. var getSystemInfo = {
  891. returnValue: function returnValue(result) {
  892. useDeviceId(result);
  893. addSafeAreaInsets(result);
  894. populateParameters(result);
  895. }
  896. };
  897. var oName = 'getUserInfo';
  898. var nName = 'getUserProfile';
  899. var getUserProfile = {
  900. name: tt.canIUse(nName) ? nName : oName
  901. };
  902. // 不支持的 API 列表
  903. var todos = ['preloadPage', 'unPreloadPage', 'loadSubPackage'
  904. // 'createCameraContext',
  905. // 'createLivePlayerContext',
  906. // 'getSavedFileInfo',
  907. // 'createMapContext',
  908. // 'onMemoryWarning',
  909. // 'onGyroscopeChange',
  910. // 'startGyroscope',
  911. // 'stopGyroscope',
  912. // 'setScreenBrightness',
  913. // 'getScreenBrightness',
  914. // 'addPhoneContact',
  915. // 'openBluetoothAdapter',
  916. // 'startBluetoothDevicesDiscovery',
  917. // 'onBluetoothDeviceFound',
  918. // 'stopBluetoothDevicesDiscovery',
  919. // 'onBluetoothAdapterStateChange',
  920. // 'getConnectedBluetoothDevices',
  921. // 'getBluetoothDevices',
  922. // 'getBluetoothAdapterState',
  923. // 'closeBluetoothAdapter',
  924. // 'writeBLECharacteristicValue',
  925. // 'readBLECharacteristicValue',
  926. // 'onBLEConnectionStateChange',
  927. // 'onBLECharacteristicValueChange',
  928. // 'notifyBLECharacteristicValueChange',
  929. // 'getBLEDeviceServices',
  930. // 'getBLEDeviceCharacteristics',
  931. // 'createBLEConnection',
  932. // 'closeBLEConnection',
  933. // 'onBeaconServiceChange',
  934. // 'onBeaconUpdate',
  935. // 'getBeacons',
  936. // 'startBeaconDiscovery',
  937. // 'stopBeaconDiscovery',
  938. // 'showNavigationBarLoading',
  939. // 'hideNavigationBarLoading',
  940. // 'setTabBarItem',
  941. // 'setTabBarStyle',
  942. // 'hideTabBar',
  943. // 'showTabBar',
  944. // 'setTabBarBadge',
  945. // 'removeTabBarBadge',
  946. // 'showTabBarRedDot',
  947. // 'hideTabBarRedDot',
  948. // 'setBackgroundColor',
  949. // 'setBackgroundTextStyle',
  950. // 'chooseInvoiceTitle',
  951. // 'addTemplate',
  952. // 'deleteTemplate',
  953. // 'getTemplateLibraryById',
  954. // 'getTemplateLibraryList',
  955. // 'getTemplateList',
  956. // 'sendTemplateMessage',
  957. // 'setEnableDebug',
  958. // 'onWindowResize',
  959. // 'offWindowResize',
  960. // 'createOffscreenCanvas',
  961. // 'vibrate'
  962. ];
  963. // 存在兼容性的 API 列表
  964. // 头条小程序自1.35.0+支持canIUses
  965. var canIUses = [
  966. // 'createIntersectionObserver',
  967. // 'getSavedFileList',
  968. // 'removeSavedFile',
  969. // 'hideKeyboard',
  970. // 'getImageInfo',
  971. // 'createVideoContext',
  972. // 'onSocketOpen',
  973. // 'onSocketError',
  974. // 'sendSocketMessage',
  975. // 'onSocketMessage',
  976. // 'closeSocket',
  977. // 'onSocketClose',
  978. // 'getExtConfig',
  979. // 'getExtConfigSync',
  980. // 'navigateToMiniProgram',
  981. // 'navigateBackMiniProgram',
  982. // 'compressImage',
  983. // 'chooseLocation',
  984. // 'openDocument',
  985. // 'onUserCaptureScreen',
  986. // 'getBackgroundAudioManager',
  987. // 'setNavigationBarColor',
  988. ];
  989. // 需要做转换的 API 列表
  990. var protocols = {
  991. navigateTo: navigateTo(),
  992. redirectTo: redirectTo,
  993. previewImage: previewImage,
  994. getSystemInfo: getSystemInfo,
  995. getSystemInfoSync: getSystemInfo,
  996. getUserProfile: getUserProfile,
  997. connectSocket: {
  998. args: {
  999. method: false
  1000. }
  1001. },
  1002. chooseVideo: {
  1003. args: {
  1004. camera: false
  1005. }
  1006. },
  1007. scanCode: {
  1008. args: {
  1009. onlyFromCamera: false,
  1010. scanType: false
  1011. }
  1012. },
  1013. startAccelerometer: {
  1014. args: {
  1015. interval: false
  1016. }
  1017. },
  1018. login: {
  1019. args: {
  1020. scopes: false,
  1021. timeout: false
  1022. }
  1023. },
  1024. getUserInfo: {
  1025. args: {
  1026. lang: false,
  1027. timeout: false
  1028. }
  1029. },
  1030. requestPayment: {
  1031. name: tt.pay ? 'pay' : 'requestPayment',
  1032. args: {
  1033. orderInfo: tt.pay ? 'orderInfo' : 'data'
  1034. }
  1035. },
  1036. getFileInfo: {
  1037. args: {
  1038. digestAlgorithm: false
  1039. }
  1040. }
  1041. };
  1042. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  1043. function processCallback(methodName, method, returnValue) {
  1044. return function (res) {
  1045. return method(processReturnValue(methodName, res, returnValue));
  1046. };
  1047. }
  1048. function processArgs(methodName, fromArgs) {
  1049. var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  1050. var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  1051. var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  1052. if (isPlainObject(fromArgs)) {
  1053. // 一般 api 的参数解析
  1054. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  1055. if (isFn(argsOption)) {
  1056. argsOption = argsOption(fromArgs, toArgs) || {};
  1057. }
  1058. for (var key in fromArgs) {
  1059. if (hasOwn(argsOption, key)) {
  1060. var keyOption = argsOption[key];
  1061. if (isFn(keyOption)) {
  1062. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  1063. }
  1064. if (!keyOption) {
  1065. // 不支持的参数
  1066. console.warn("The '".concat(methodName, "' method of platform '\u5934\u6761\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  1067. } else if (isStr(keyOption)) {
  1068. // 重写参数 key
  1069. toArgs[keyOption] = fromArgs[key];
  1070. } else if (isPlainObject(keyOption)) {
  1071. // {name:newName,value:value}可重新指定参数 key:value
  1072. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  1073. }
  1074. } else if (CALLBACKS.indexOf(key) !== -1) {
  1075. if (isFn(fromArgs[key])) {
  1076. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  1077. }
  1078. } else {
  1079. if (!keepFromArgs) {
  1080. toArgs[key] = fromArgs[key];
  1081. }
  1082. }
  1083. }
  1084. return toArgs;
  1085. } else if (isFn(fromArgs)) {
  1086. fromArgs = processCallback(methodName, fromArgs, returnValue);
  1087. }
  1088. return fromArgs;
  1089. }
  1090. function processReturnValue(methodName, res, returnValue) {
  1091. var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  1092. if (isFn(protocols.returnValue)) {
  1093. // 处理通用 returnValue
  1094. res = protocols.returnValue(methodName, res);
  1095. }
  1096. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  1097. }
  1098. function wrapper(methodName, method) {
  1099. if (hasOwn(protocols, methodName)) {
  1100. var protocol = protocols[methodName];
  1101. if (!protocol) {
  1102. // 暂不支持的 api
  1103. return function () {
  1104. console.error("Platform '\u5934\u6761\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  1105. };
  1106. }
  1107. return function (arg1, arg2) {
  1108. // 目前 api 最多两个参数
  1109. var options = protocol;
  1110. if (isFn(protocol)) {
  1111. options = protocol(arg1);
  1112. }
  1113. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  1114. var args = [arg1];
  1115. if (typeof arg2 !== 'undefined') {
  1116. args.push(arg2);
  1117. }
  1118. if (isFn(options.name)) {
  1119. methodName = options.name(arg1);
  1120. } else if (isStr(options.name)) {
  1121. methodName = options.name;
  1122. }
  1123. var returnValue = tt[methodName].apply(tt, args);
  1124. if (isSyncApi(methodName)) {
  1125. // 同步 api
  1126. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  1127. }
  1128. return returnValue;
  1129. };
  1130. }
  1131. return method;
  1132. }
  1133. var todoApis = Object.create(null);
  1134. var TODOS = ['onTabBarMidButtonTap', 'subscribePush', 'unsubscribePush', 'onPush', 'offPush', 'share'];
  1135. function createTodoApi(name) {
  1136. return function todoApi(_ref) {
  1137. var fail = _ref.fail,
  1138. complete = _ref.complete;
  1139. var res = {
  1140. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported")
  1141. };
  1142. isFn(fail) && fail(res);
  1143. isFn(complete) && complete(res);
  1144. };
  1145. }
  1146. TODOS.forEach(function (name) {
  1147. todoApis[name] = createTodoApi(name);
  1148. });
  1149. var providers = {
  1150. oauth: ['toutiao'],
  1151. share: ['toutiao'],
  1152. payment: ['toutiao'],
  1153. push: ['toutiao']
  1154. };
  1155. function getProvider(_ref2) {
  1156. var service = _ref2.service,
  1157. success = _ref2.success,
  1158. fail = _ref2.fail,
  1159. complete = _ref2.complete;
  1160. var res = false;
  1161. if (providers[service]) {
  1162. res = {
  1163. errMsg: 'getProvider:ok',
  1164. service: service,
  1165. provider: providers[service]
  1166. };
  1167. isFn(success) && success(res);
  1168. } else {
  1169. res = {
  1170. errMsg: 'getProvider:fail service not found'
  1171. };
  1172. isFn(fail) && fail(res);
  1173. }
  1174. isFn(complete) && complete(res);
  1175. }
  1176. var extraApi = /*#__PURE__*/Object.freeze({
  1177. __proto__: null,
  1178. getProvider: getProvider
  1179. });
  1180. var getEmitter = function () {
  1181. var Emitter;
  1182. return function getUniEmitter() {
  1183. if (!Emitter) {
  1184. Emitter = new _vue.default();
  1185. }
  1186. return Emitter;
  1187. };
  1188. }();
  1189. function apply(ctx, method, args) {
  1190. return ctx[method].apply(ctx, args);
  1191. }
  1192. function $on() {
  1193. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  1194. }
  1195. function $off() {
  1196. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  1197. }
  1198. function $once() {
  1199. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  1200. }
  1201. function $emit() {
  1202. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  1203. }
  1204. var eventApi = /*#__PURE__*/Object.freeze({
  1205. __proto__: null,
  1206. $on: $on,
  1207. $off: $off,
  1208. $once: $once,
  1209. $emit: $emit
  1210. });
  1211. function createMediaQueryObserver() {
  1212. var mediaQueryObserver = {};
  1213. var _tt$getSystemInfoSync2 = tt.getSystemInfoSync(),
  1214. windowWidth = _tt$getSystemInfoSync2.windowWidth,
  1215. windowHeight = _tt$getSystemInfoSync2.windowHeight;
  1216. var orientation = windowWidth < windowHeight ? 'portrait' : 'landscape';
  1217. mediaQueryObserver.observe = function (options, callback) {
  1218. var matches = true;
  1219. for (var item in options) {
  1220. var itemValue = item === 'orientation' ? options[item] : Number(options[item]);
  1221. if (options[item] !== '') {
  1222. if (item === 'width') {
  1223. if (itemValue === windowWidth) {
  1224. matches = true;
  1225. } else {
  1226. matches = false;
  1227. callback(matches);
  1228. return matches;
  1229. }
  1230. }
  1231. if (item === 'minWidth') {
  1232. if (windowWidth >= itemValue) {
  1233. matches = true;
  1234. } else {
  1235. matches = false;
  1236. callback(matches);
  1237. return matches;
  1238. }
  1239. }
  1240. if (item === 'maxWidth') {
  1241. if (windowWidth <= itemValue) {
  1242. matches = true;
  1243. } else {
  1244. matches = false;
  1245. callback(matches);
  1246. return matches;
  1247. }
  1248. }
  1249. if (item === 'height') {
  1250. if (itemValue === windowHeight) {
  1251. matches = true;
  1252. } else {
  1253. matches = false;
  1254. callback(matches);
  1255. return matches;
  1256. }
  1257. }
  1258. if (item === 'minHeight') {
  1259. if (windowHeight >= itemValue) {
  1260. matches = true;
  1261. } else {
  1262. matches = false;
  1263. callback(matches);
  1264. return matches;
  1265. }
  1266. }
  1267. if (item === 'maxHeight') {
  1268. if (windowHeight <= itemValue) {
  1269. matches = true;
  1270. } else {
  1271. matches = false;
  1272. callback(matches);
  1273. return matches;
  1274. }
  1275. }
  1276. if (item === 'orientation') {
  1277. if (options[item] === orientation) {
  1278. matches = true;
  1279. } else {
  1280. matches = false;
  1281. callback(matches);
  1282. return matches;
  1283. }
  1284. }
  1285. }
  1286. }
  1287. callback(matches);
  1288. return matches;
  1289. };
  1290. mediaQueryObserver.disconnect = function () {};
  1291. return mediaQueryObserver;
  1292. }
  1293. /**
  1294. * 框架内 try-catch
  1295. */
  1296. /**
  1297. * 开发者 try-catch
  1298. */
  1299. function tryCatch(fn) {
  1300. return function () {
  1301. try {
  1302. return fn.apply(fn, arguments);
  1303. } catch (e) {
  1304. // TODO
  1305. console.error(e);
  1306. }
  1307. };
  1308. }
  1309. function getApiCallbacks(params) {
  1310. var apiCallbacks = {};
  1311. for (var name in params) {
  1312. var param = params[name];
  1313. if (isFn(param)) {
  1314. apiCallbacks[name] = tryCatch(param);
  1315. delete params[name];
  1316. }
  1317. }
  1318. return apiCallbacks;
  1319. }
  1320. var cid;
  1321. var cidErrMsg;
  1322. var enabled;
  1323. function normalizePushMessage(message) {
  1324. try {
  1325. return JSON.parse(message);
  1326. } catch (e) {}
  1327. return message;
  1328. }
  1329. function invokePushCallback(args) {
  1330. if (args.type === 'enabled') {
  1331. enabled = true;
  1332. } else if (args.type === 'clientId') {
  1333. cid = args.cid;
  1334. cidErrMsg = args.errMsg;
  1335. invokeGetPushCidCallbacks(cid, args.errMsg);
  1336. } else if (args.type === 'pushMsg') {
  1337. var message = {
  1338. type: 'receive',
  1339. data: normalizePushMessage(args.message)
  1340. };
  1341. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  1342. var callback = onPushMessageCallbacks[i];
  1343. callback(message);
  1344. // 该消息已被阻止
  1345. if (message.stopped) {
  1346. break;
  1347. }
  1348. }
  1349. } else if (args.type === 'click') {
  1350. onPushMessageCallbacks.forEach(function (callback) {
  1351. callback({
  1352. type: 'click',
  1353. data: normalizePushMessage(args.message)
  1354. });
  1355. });
  1356. }
  1357. }
  1358. var getPushCidCallbacks = [];
  1359. function invokeGetPushCidCallbacks(cid, errMsg) {
  1360. getPushCidCallbacks.forEach(function (callback) {
  1361. callback(cid, errMsg);
  1362. });
  1363. getPushCidCallbacks.length = 0;
  1364. }
  1365. function getPushClientId(args) {
  1366. if (!isPlainObject(args)) {
  1367. args = {};
  1368. }
  1369. var _getApiCallbacks = getApiCallbacks(args),
  1370. success = _getApiCallbacks.success,
  1371. fail = _getApiCallbacks.fail,
  1372. complete = _getApiCallbacks.complete;
  1373. var hasSuccess = isFn(success);
  1374. var hasFail = isFn(fail);
  1375. var hasComplete = isFn(complete);
  1376. Promise.resolve().then(function () {
  1377. if (typeof enabled === 'undefined') {
  1378. enabled = false;
  1379. cid = '';
  1380. cidErrMsg = 'uniPush is not enabled';
  1381. }
  1382. getPushCidCallbacks.push(function (cid, errMsg) {
  1383. var res;
  1384. if (cid) {
  1385. res = {
  1386. errMsg: 'getPushClientId:ok',
  1387. cid: cid
  1388. };
  1389. hasSuccess && success(res);
  1390. } else {
  1391. res = {
  1392. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
  1393. };
  1394. hasFail && fail(res);
  1395. }
  1396. hasComplete && complete(res);
  1397. });
  1398. if (typeof cid !== 'undefined') {
  1399. invokeGetPushCidCallbacks(cid, cidErrMsg);
  1400. }
  1401. });
  1402. }
  1403. var onPushMessageCallbacks = [];
  1404. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  1405. var onPushMessage = function onPushMessage(fn) {
  1406. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  1407. onPushMessageCallbacks.push(fn);
  1408. }
  1409. };
  1410. var offPushMessage = function offPushMessage(fn) {
  1411. if (!fn) {
  1412. onPushMessageCallbacks.length = 0;
  1413. } else {
  1414. var index = onPushMessageCallbacks.indexOf(fn);
  1415. if (index > -1) {
  1416. onPushMessageCallbacks.splice(index, 1);
  1417. }
  1418. }
  1419. };
  1420. var api = /*#__PURE__*/Object.freeze({
  1421. __proto__: null,
  1422. createMediaQueryObserver: createMediaQueryObserver,
  1423. getPushClientId: getPushClientId,
  1424. onPushMessage: onPushMessage,
  1425. offPushMessage: offPushMessage,
  1426. invokePushCallback: invokePushCallback
  1427. });
  1428. function findVmByVueId(vm, vuePid) {
  1429. var $children = vm.$children;
  1430. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1431. for (var i = $children.length - 1; i >= 0; i--) {
  1432. var childVm = $children[i];
  1433. if (childVm.$scope._$vueId === vuePid) {
  1434. return childVm;
  1435. }
  1436. }
  1437. // 反向递归查找
  1438. var parentVm;
  1439. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1440. parentVm = findVmByVueId($children[_i], vuePid);
  1441. if (parentVm) {
  1442. return parentVm;
  1443. }
  1444. }
  1445. }
  1446. function initBehavior(options) {
  1447. return Behavior(options);
  1448. }
  1449. function selectAllComponents(mpInstance, selector, $refs) {
  1450. var components = mpInstance.selectAllComponents(selector) || [];
  1451. components.forEach(function (component) {
  1452. var ref = component.dataset.ref;
  1453. $refs[ref] = component.$vm || toSkip(component);
  1454. });
  1455. }
  1456. function syncRefs(refs, newRefs) {
  1457. var oldKeys = (0, _construct2.default)(Set, (0, _toConsumableArray2.default)(Object.keys(refs)));
  1458. var newKeys = Object.keys(newRefs);
  1459. newKeys.forEach(function (key) {
  1460. var oldValue = refs[key];
  1461. var newValue = newRefs[key];
  1462. if (Array.isArray(oldValue) && Array.isArray(newValue) && oldValue.length === newValue.length && newValue.every(function (value) {
  1463. return oldValue.includes(value);
  1464. })) {
  1465. return;
  1466. }
  1467. refs[key] = newValue;
  1468. oldKeys.delete(key);
  1469. });
  1470. oldKeys.forEach(function (key) {
  1471. delete refs[key];
  1472. });
  1473. return refs;
  1474. }
  1475. function initRefs(vm) {
  1476. var mpInstance = vm.$scope;
  1477. var refs = {};
  1478. Object.defineProperty(vm, '$refs', {
  1479. get: function get() {
  1480. var $refs = {};
  1481. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1482. // TODO 暂不考虑 for 中的 scoped
  1483. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for') || [];
  1484. forComponents.forEach(function (component) {
  1485. var ref = component.dataset.ref;
  1486. if (!$refs[ref]) {
  1487. $refs[ref] = [];
  1488. }
  1489. $refs[ref].push(component.$vm || toSkip(component));
  1490. });
  1491. return syncRefs(refs, $refs);
  1492. }
  1493. });
  1494. }
  1495. function handleLink(event) {
  1496. var _ref3 = event.detail || event.value,
  1497. vuePid = _ref3.vuePid,
  1498. vueOptions = _ref3.vueOptions; // detail 是微信,value 是百度(dipatch)
  1499. var parentVm;
  1500. if (vuePid) {
  1501. parentVm = findVmByVueId(this.$vm, vuePid);
  1502. }
  1503. if (!parentVm) {
  1504. parentVm = this.$vm;
  1505. }
  1506. vueOptions.parent = parentVm;
  1507. }
  1508. function markMPComponent(component) {
  1509. // 在 Vue 中标记为小程序组件
  1510. var IS_MP = '__v_isMPComponent';
  1511. Object.defineProperty(component, IS_MP, {
  1512. configurable: true,
  1513. enumerable: false,
  1514. value: true
  1515. });
  1516. return component;
  1517. }
  1518. function toSkip(obj) {
  1519. var OB = '__ob__';
  1520. var SKIP = '__v_skip';
  1521. if (isObject(obj) && Object.isExtensible(obj)) {
  1522. // 避免被 @vue/composition-api 观测
  1523. Object.defineProperty(obj, OB, {
  1524. configurable: true,
  1525. enumerable: false,
  1526. value: (0, _defineProperty2.default)({}, SKIP, true)
  1527. });
  1528. }
  1529. return obj;
  1530. }
  1531. var MPPage = Page;
  1532. var MPComponent = Component;
  1533. var customizeRE = /:/g;
  1534. var customize = cached(function (str) {
  1535. return camelize(str.replace(customizeRE, '-'));
  1536. });
  1537. function initTriggerEvent(mpInstance) {
  1538. var oldTriggerEvent = mpInstance.triggerEvent;
  1539. var newTriggerEvent = function newTriggerEvent(event) {
  1540. // 事件名统一转驼峰格式,仅处理:当前组件为 vue 组件、当前组件为 vue 组件子组件
  1541. if (this.$vm || this.dataset && this.dataset.comType) {
  1542. event = customize(event);
  1543. }
  1544. for (var _len4 = arguments.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
  1545. args[_key4 - 1] = arguments[_key4];
  1546. }
  1547. return oldTriggerEvent.apply(this, [event].concat(args));
  1548. };
  1549. try {
  1550. // 京东小程序 triggerEvent 为只读
  1551. mpInstance.triggerEvent = newTriggerEvent;
  1552. } catch (error) {
  1553. mpInstance._triggerEvent = newTriggerEvent;
  1554. }
  1555. }
  1556. function initHook(name, options, isComponent) {
  1557. {
  1558. // fix by Lxh 字节自定义组件Component构造器文档上写有created,但是实测只触发了lifetimes上的created
  1559. isComponent && options.lifetimes && options.lifetimes[name] && (options = options.lifetimes);
  1560. }
  1561. var oldHook = options[name];
  1562. options[name] = function () {
  1563. markMPComponent(this);
  1564. initTriggerEvent(this);
  1565. if (oldHook) {
  1566. for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
  1567. args[_key5] = arguments[_key5];
  1568. }
  1569. return oldHook.apply(this, args);
  1570. }
  1571. };
  1572. }
  1573. if (!MPPage.__$wrappered) {
  1574. MPPage.__$wrappered = true;
  1575. Page = function Page() {
  1576. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1577. initHook('onLoad', options);
  1578. return MPPage(options);
  1579. };
  1580. Page.after = MPPage.after;
  1581. Component = function Component() {
  1582. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1583. initHook('created', options, true);
  1584. return MPComponent(options);
  1585. };
  1586. }
  1587. var PAGE_EVENT_HOOKS = ['onPullDownRefresh', 'onReachBottom', 'onAddToFavorites', 'onShareTimeline', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
  1588. function initMocks(vm, mocks) {
  1589. var mpInstance = vm.$mp[vm.mpType];
  1590. mocks.forEach(function (mock) {
  1591. if (hasOwn(mpInstance, mock)) {
  1592. vm[mock] = mpInstance[mock];
  1593. }
  1594. });
  1595. }
  1596. function hasHook(hook, vueOptions) {
  1597. if (!vueOptions) {
  1598. return true;
  1599. }
  1600. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  1601. return true;
  1602. }
  1603. vueOptions = vueOptions.default || vueOptions;
  1604. if (isFn(vueOptions)) {
  1605. if (isFn(vueOptions.extendOptions[hook])) {
  1606. return true;
  1607. }
  1608. if (vueOptions.super && vueOptions.super.options && Array.isArray(vueOptions.super.options[hook])) {
  1609. return true;
  1610. }
  1611. return false;
  1612. }
  1613. if (isFn(vueOptions[hook]) || Array.isArray(vueOptions[hook])) {
  1614. return true;
  1615. }
  1616. var mixins = vueOptions.mixins;
  1617. if (Array.isArray(mixins)) {
  1618. return !!mixins.find(function (mixin) {
  1619. return hasHook(hook, mixin);
  1620. });
  1621. }
  1622. }
  1623. function initHooks(mpOptions, hooks, vueOptions) {
  1624. hooks.forEach(function (hook) {
  1625. if (hasHook(hook, vueOptions)) {
  1626. mpOptions[hook] = function (args) {
  1627. return this.$vm && this.$vm.__call_hook(hook, args);
  1628. };
  1629. }
  1630. });
  1631. }
  1632. function initUnknownHooks(mpOptions, vueOptions) {
  1633. var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1634. findHooks(vueOptions).forEach(function (hook) {
  1635. return initHook$1(mpOptions, hook, excludes);
  1636. });
  1637. }
  1638. function findHooks(vueOptions) {
  1639. var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  1640. if (vueOptions) {
  1641. Object.keys(vueOptions).forEach(function (name) {
  1642. if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
  1643. hooks.push(name);
  1644. }
  1645. });
  1646. }
  1647. return hooks;
  1648. }
  1649. function initHook$1(mpOptions, hook, excludes) {
  1650. if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
  1651. mpOptions[hook] = function (args) {
  1652. return this.$vm && this.$vm.__call_hook(hook, args);
  1653. };
  1654. }
  1655. }
  1656. function initVueComponent(Vue, vueOptions) {
  1657. vueOptions = vueOptions.default || vueOptions;
  1658. var VueComponent;
  1659. if (isFn(vueOptions)) {
  1660. VueComponent = vueOptions;
  1661. } else {
  1662. VueComponent = Vue.extend(vueOptions);
  1663. }
  1664. vueOptions = VueComponent.options;
  1665. return [VueComponent, vueOptions];
  1666. }
  1667. function initSlots(vm, vueSlots) {
  1668. if (Array.isArray(vueSlots) && vueSlots.length) {
  1669. var $slots = Object.create(null);
  1670. vueSlots.forEach(function (slotName) {
  1671. $slots[slotName] = true;
  1672. });
  1673. vm.$scopedSlots = vm.$slots = $slots;
  1674. }
  1675. }
  1676. function initVueIds(vueIds, mpInstance) {
  1677. vueIds = (vueIds || '').split(',');
  1678. var len = vueIds.length;
  1679. if (len === 1) {
  1680. mpInstance._$vueId = vueIds[0];
  1681. } else if (len === 2) {
  1682. mpInstance._$vueId = vueIds[0];
  1683. mpInstance._$vuePid = vueIds[1];
  1684. }
  1685. }
  1686. function initData(vueOptions, context) {
  1687. var data = vueOptions.data || {};
  1688. var methods = vueOptions.methods || {};
  1689. if (typeof data === 'function') {
  1690. try {
  1691. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  1692. } catch (e) {
  1693. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"shoppingTemplate","VUE_APP_PLATFORM":"mp-toutiao","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  1694. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  1695. }
  1696. }
  1697. } else {
  1698. try {
  1699. // 对 data 格式化
  1700. data = JSON.parse(JSON.stringify(data));
  1701. } catch (e) {}
  1702. }
  1703. if (!isPlainObject(data)) {
  1704. data = {};
  1705. }
  1706. Object.keys(methods).forEach(function (methodName) {
  1707. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  1708. data[methodName] = methods[methodName];
  1709. }
  1710. });
  1711. return data;
  1712. }
  1713. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  1714. function createObserver(name) {
  1715. return function observer(newVal, oldVal) {
  1716. if (this.$vm) {
  1717. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  1718. }
  1719. };
  1720. }
  1721. function initBehaviors(vueOptions, initBehavior) {
  1722. var vueBehaviors = vueOptions.behaviors;
  1723. var vueExtends = vueOptions.extends;
  1724. var vueMixins = vueOptions.mixins;
  1725. var vueProps = vueOptions.props;
  1726. if (!vueProps) {
  1727. vueOptions.props = vueProps = [];
  1728. }
  1729. var behaviors = [];
  1730. if (Array.isArray(vueBehaviors)) {
  1731. vueBehaviors.forEach(function (behavior) {
  1732. behaviors.push(behavior.replace('uni://', "tt".concat("://")));
  1733. if (behavior === 'uni://form-field') {
  1734. if (Array.isArray(vueProps)) {
  1735. vueProps.push('name');
  1736. vueProps.push('value');
  1737. } else {
  1738. vueProps.name = {
  1739. type: String,
  1740. default: ''
  1741. };
  1742. vueProps.value = {
  1743. type: [String, Number, Boolean, Array, Object, Date],
  1744. default: ''
  1745. };
  1746. }
  1747. }
  1748. });
  1749. }
  1750. if (isPlainObject(vueExtends) && vueExtends.props) {
  1751. behaviors.push(initBehavior({
  1752. properties: initProperties(vueExtends.props, true)
  1753. }));
  1754. }
  1755. if (Array.isArray(vueMixins)) {
  1756. vueMixins.forEach(function (vueMixin) {
  1757. if (isPlainObject(vueMixin) && vueMixin.props) {
  1758. behaviors.push(initBehavior({
  1759. properties: initProperties(vueMixin.props, true)
  1760. }));
  1761. }
  1762. });
  1763. }
  1764. return behaviors;
  1765. }
  1766. function parsePropType(key, type, defaultValue, file) {
  1767. // [String]=>String
  1768. if (Array.isArray(type) && type.length === 1) {
  1769. return type[0];
  1770. }
  1771. return type;
  1772. }
  1773. function initProperties(props) {
  1774. var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  1775. var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  1776. var options = arguments.length > 3 ? arguments[3] : undefined;
  1777. var properties = {};
  1778. if (!isBehavior) {
  1779. properties.vueId = {
  1780. type: String,
  1781. value: ''
  1782. };
  1783. {
  1784. // 用于字节跳动小程序模拟抽象节点
  1785. properties.generic = {
  1786. type: Object,
  1787. value: null
  1788. };
  1789. }
  1790. // scopedSlotsCompiler auto
  1791. properties.scopedSlotsCompiler = {
  1792. type: String,
  1793. value: ''
  1794. };
  1795. properties.vueSlots = {
  1796. // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  1797. type: null,
  1798. value: [],
  1799. observer: function observer(newVal, oldVal) {
  1800. var $slots = Object.create(null);
  1801. newVal.forEach(function (slotName) {
  1802. $slots[slotName] = true;
  1803. });
  1804. this.setData({
  1805. $slots: $slots
  1806. });
  1807. }
  1808. };
  1809. }
  1810. if (Array.isArray(props)) {
  1811. // ['title']
  1812. props.forEach(function (key) {
  1813. properties[key] = {
  1814. type: null,
  1815. observer: createObserver(key)
  1816. };
  1817. });
  1818. } else if (isPlainObject(props)) {
  1819. // {title:{type:String,default:''},content:String}
  1820. Object.keys(props).forEach(function (key) {
  1821. var opts = props[key];
  1822. if (isPlainObject(opts)) {
  1823. // title:{type:String,default:''}
  1824. var value = opts.default;
  1825. if (isFn(value)) {
  1826. value = value();
  1827. }
  1828. opts.type = parsePropType(key, opts.type);
  1829. properties[key] = {
  1830. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  1831. value: value,
  1832. observer: createObserver(key)
  1833. };
  1834. } else {
  1835. // content:String
  1836. var type = parsePropType(key, opts);
  1837. properties[key] = {
  1838. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  1839. observer: createObserver(key)
  1840. };
  1841. }
  1842. });
  1843. }
  1844. return properties;
  1845. }
  1846. function wrapper$1(event) {
  1847. // TODO 又得兼容 mpvue 的 mp 对象
  1848. try {
  1849. event.mp = JSON.parse(JSON.stringify(event));
  1850. } catch (e) {}
  1851. event.stopPropagation = noop;
  1852. event.preventDefault = noop;
  1853. event.target = event.target || {};
  1854. if (!hasOwn(event, 'detail')) {
  1855. event.detail = {};
  1856. }
  1857. if (hasOwn(event, 'markerId')) {
  1858. event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
  1859. event.detail.markerId = event.markerId;
  1860. }
  1861. if (isPlainObject(event.detail)) {
  1862. event.target = Object.assign({}, event.target, event.detail);
  1863. }
  1864. return event;
  1865. }
  1866. function getExtraValue(vm, dataPathsArray) {
  1867. var context = vm;
  1868. dataPathsArray.forEach(function (dataPathArray) {
  1869. var dataPath = dataPathArray[0];
  1870. var value = dataPathArray[2];
  1871. if (dataPath || typeof value !== 'undefined') {
  1872. // ['','',index,'disable']
  1873. var propPath = dataPathArray[1];
  1874. var valuePath = dataPathArray[3];
  1875. var vFor;
  1876. if (Number.isInteger(dataPath)) {
  1877. vFor = dataPath;
  1878. } else if (!dataPath) {
  1879. vFor = context;
  1880. } else if (typeof dataPath === 'string' && dataPath) {
  1881. if (dataPath.indexOf('#s#') === 0) {
  1882. vFor = dataPath.substr(3);
  1883. } else {
  1884. vFor = vm.__get_value(dataPath, context);
  1885. }
  1886. }
  1887. if (Number.isInteger(vFor)) {
  1888. context = value;
  1889. } else if (!propPath) {
  1890. context = vFor[value];
  1891. } else {
  1892. if (Array.isArray(vFor)) {
  1893. context = vFor.find(function (vForItem) {
  1894. return vm.__get_value(propPath, vForItem) === value;
  1895. });
  1896. } else if (isPlainObject(vFor)) {
  1897. context = Object.keys(vFor).find(function (vForKey) {
  1898. return vm.__get_value(propPath, vFor[vForKey]) === value;
  1899. });
  1900. } else {
  1901. console.error('v-for 暂不支持循环数据:', vFor);
  1902. }
  1903. }
  1904. if (valuePath) {
  1905. context = vm.__get_value(valuePath, context);
  1906. }
  1907. }
  1908. });
  1909. return context;
  1910. }
  1911. function processEventExtra(vm, extra, event, __args__) {
  1912. var extraObj = {};
  1913. if (Array.isArray(extra) && extra.length) {
  1914. /**
  1915. *[
  1916. * ['data.items', 'data.id', item.data.id],
  1917. * ['metas', 'id', meta.id]
  1918. *],
  1919. *[
  1920. * ['data.items', 'data.id', item.data.id],
  1921. * ['metas', 'id', meta.id]
  1922. *],
  1923. *'test'
  1924. */
  1925. extra.forEach(function (dataPath, index) {
  1926. if (typeof dataPath === 'string') {
  1927. if (!dataPath) {
  1928. // model,prop.sync
  1929. extraObj['$' + index] = vm;
  1930. } else {
  1931. if (dataPath === '$event') {
  1932. // $event
  1933. extraObj['$' + index] = event;
  1934. } else if (dataPath === 'arguments') {
  1935. extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
  1936. } else if (dataPath.indexOf('$event.') === 0) {
  1937. // $event.target.value
  1938. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1939. } else {
  1940. extraObj['$' + index] = vm.__get_value(dataPath);
  1941. }
  1942. }
  1943. } else {
  1944. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1945. }
  1946. });
  1947. }
  1948. return extraObj;
  1949. }
  1950. function getObjByArray(arr) {
  1951. var obj = {};
  1952. for (var i = 1; i < arr.length; i++) {
  1953. var element = arr[i];
  1954. obj[element[0]] = element[1];
  1955. }
  1956. return obj;
  1957. }
  1958. function processEventArgs(vm, event) {
  1959. var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1960. var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  1961. var isCustom = arguments.length > 4 ? arguments[4] : undefined;
  1962. var methodName = arguments.length > 5 ? arguments[5] : undefined;
  1963. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  1964. // fixed 用户直接触发 mpInstance.triggerEvent
  1965. var __args__ = isPlainObject(event.detail) ? event.detail.__args__ || [event.detail] : [event.detail];
  1966. if (isCustom) {
  1967. // 自定义事件
  1968. isCustomMPEvent = event.currentTarget && event.currentTarget.dataset && event.currentTarget.dataset.comType === 'wx';
  1969. if (!args.length) {
  1970. // 无参数,直接传入 event 或 detail 数组
  1971. if (isCustomMPEvent) {
  1972. return [event];
  1973. }
  1974. return __args__;
  1975. }
  1976. }
  1977. var extraObj = processEventExtra(vm, extra, event, __args__);
  1978. var ret = [];
  1979. args.forEach(function (arg) {
  1980. if (arg === '$event') {
  1981. if (methodName === '__set_model' && !isCustom) {
  1982. // input v-model value
  1983. ret.push(event.target.value);
  1984. } else {
  1985. if (isCustom && !isCustomMPEvent) {
  1986. ret.push(__args__[0]);
  1987. } else {
  1988. // wxcomponent 组件或内置组件
  1989. ret.push(event);
  1990. }
  1991. }
  1992. } else {
  1993. if (Array.isArray(arg) && arg[0] === 'o') {
  1994. ret.push(getObjByArray(arg));
  1995. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  1996. ret.push(extraObj[arg]);
  1997. } else {
  1998. ret.push(arg);
  1999. }
  2000. }
  2001. });
  2002. return ret;
  2003. }
  2004. var ONCE = '~';
  2005. var CUSTOM = '^';
  2006. function isMatchEventType(eventType, optType) {
  2007. return eventType === optType || optType === 'regionchange' && (eventType === 'begin' || eventType === 'end');
  2008. }
  2009. function getContextVm(vm) {
  2010. var $parent = vm.$parent;
  2011. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  2012. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  2013. $parent = $parent.$parent;
  2014. }
  2015. return $parent && $parent.$parent;
  2016. }
  2017. function handleEvent(event) {
  2018. var _this3 = this;
  2019. event = wrapper$1(event);
  2020. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  2021. var dataset = (event.currentTarget || event.target).dataset;
  2022. if (!dataset) {
  2023. return console.warn('事件信息不存在');
  2024. }
  2025. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  2026. if (!eventOpts) {
  2027. return console.warn('事件信息不存在');
  2028. }
  2029. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  2030. var eventType = event.type;
  2031. var ret = [];
  2032. eventOpts.forEach(function (eventOpt) {
  2033. var type = eventOpt[0];
  2034. var eventsArray = eventOpt[1];
  2035. var isCustom = type.charAt(0) === CUSTOM;
  2036. type = isCustom ? type.slice(1) : type;
  2037. var isOnce = type.charAt(0) === ONCE;
  2038. type = isOnce ? type.slice(1) : type;
  2039. if (eventsArray && isMatchEventType(eventType, type)) {
  2040. eventsArray.forEach(function (eventArray) {
  2041. var methodName = eventArray[0];
  2042. if (methodName) {
  2043. var handlerCtx = _this3.$vm;
  2044. if (handlerCtx.$options.generic) {
  2045. // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  2046. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  2047. }
  2048. if (methodName === '$emit') {
  2049. handlerCtx.$emit.apply(handlerCtx, processEventArgs(_this3.$vm, event, eventArray[1], eventArray[2], isCustom, methodName));
  2050. return;
  2051. }
  2052. var handler = handlerCtx[methodName];
  2053. if (!isFn(handler)) {
  2054. var _type = _this3.$vm.mpType === 'page' ? 'Page' : 'Component';
  2055. var path = _this3.route || _this3.is;
  2056. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  2057. }
  2058. if (isOnce) {
  2059. if (handler.once) {
  2060. return;
  2061. }
  2062. handler.once = true;
  2063. }
  2064. var params = processEventArgs(_this3.$vm, event, eventArray[1], eventArray[2], isCustom, methodName);
  2065. params = Array.isArray(params) ? params : [];
  2066. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  2067. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  2068. // eslint-disable-next-line no-sparse-arrays
  2069. params = params.concat([,,,,,,,,,, event]);
  2070. }
  2071. ret.push(handler.apply(handlerCtx, params));
  2072. }
  2073. });
  2074. }
  2075. });
  2076. if (eventType === 'input' && ret.length === 1 && typeof ret[0] !== 'undefined') {
  2077. return ret[0];
  2078. }
  2079. }
  2080. var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
  2081. function initEventChannel$1() {
  2082. _vue.default.prototype.getOpenerEventChannel = function () {
  2083. if (!this.__eventChannel__) {
  2084. this.__eventChannel__ = new EventChannel();
  2085. }
  2086. return this.__eventChannel__;
  2087. };
  2088. var callHook = _vue.default.prototype.__call_hook;
  2089. _vue.default.prototype.__call_hook = function (hook, args) {
  2090. if (hook === 'onLoad' && args && args.__id__) {
  2091. this.__eventChannel__ = getEventChannel(args.__id__);
  2092. delete args.__id__;
  2093. }
  2094. return callHook.call(this, hook, args);
  2095. };
  2096. }
  2097. function initScopedSlotsParams() {
  2098. var center = {};
  2099. var parents = {};
  2100. function currentId(fn) {
  2101. var vueIds = this.$options.propsData.vueId;
  2102. if (vueIds) {
  2103. var vueId = vueIds.split(',')[0];
  2104. fn(vueId);
  2105. }
  2106. }
  2107. _vue.default.prototype.$hasSSP = function (vueId) {
  2108. var slot = center[vueId];
  2109. if (!slot) {
  2110. parents[vueId] = this;
  2111. this.$on('hook:destroyed', function () {
  2112. delete parents[vueId];
  2113. });
  2114. }
  2115. return slot;
  2116. };
  2117. _vue.default.prototype.$getSSP = function (vueId, name, needAll) {
  2118. var slot = center[vueId];
  2119. if (slot) {
  2120. var params = slot[name] || [];
  2121. if (needAll) {
  2122. return params;
  2123. }
  2124. return params[0];
  2125. }
  2126. };
  2127. _vue.default.prototype.$setSSP = function (name, value) {
  2128. var index = 0;
  2129. currentId.call(this, function (vueId) {
  2130. var slot = center[vueId];
  2131. var params = slot[name] = slot[name] || [];
  2132. params.push(value);
  2133. index = params.length - 1;
  2134. });
  2135. return index;
  2136. };
  2137. _vue.default.prototype.$initSSP = function () {
  2138. currentId.call(this, function (vueId) {
  2139. center[vueId] = {};
  2140. });
  2141. };
  2142. _vue.default.prototype.$callSSP = function () {
  2143. currentId.call(this, function (vueId) {
  2144. if (parents[vueId]) {
  2145. parents[vueId].$forceUpdate();
  2146. }
  2147. });
  2148. };
  2149. _vue.default.mixin({
  2150. destroyed: function destroyed() {
  2151. var propsData = this.$options.propsData;
  2152. var vueId = propsData && propsData.vueId;
  2153. if (vueId) {
  2154. delete center[vueId];
  2155. delete parents[vueId];
  2156. }
  2157. }
  2158. });
  2159. }
  2160. function parseBaseApp(vm, _ref4) {
  2161. var mocks = _ref4.mocks,
  2162. initRefs = _ref4.initRefs;
  2163. initEventChannel$1();
  2164. {
  2165. initScopedSlotsParams();
  2166. }
  2167. if (vm.$options.store) {
  2168. _vue.default.prototype.$store = vm.$options.store;
  2169. }
  2170. uniIdMixin(_vue.default);
  2171. _vue.default.prototype.mpHost = "mp-toutiao";
  2172. _vue.default.mixin({
  2173. beforeCreate: function beforeCreate() {
  2174. if (!this.$options.mpType) {
  2175. return;
  2176. }
  2177. this.mpType = this.$options.mpType;
  2178. this.$mp = (0, _defineProperty2.default)({
  2179. data: {}
  2180. }, this.mpType, this.$options.mpInstance);
  2181. this.$scope = this.$options.mpInstance;
  2182. delete this.$options.mpType;
  2183. delete this.$options.mpInstance;
  2184. if (this.mpType === 'page' && typeof getApp === 'function') {
  2185. // hack vue-i18n
  2186. var app = getApp();
  2187. if (app.$vm && app.$vm.$i18n) {
  2188. this._i18n = app.$vm.$i18n;
  2189. }
  2190. }
  2191. if (this.mpType !== 'app') {
  2192. initRefs(this);
  2193. initMocks(this, mocks);
  2194. }
  2195. }
  2196. });
  2197. var appOptions = {
  2198. onLaunch: function onLaunch(args) {
  2199. if (this.$vm) {
  2200. // 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  2201. return;
  2202. }
  2203. this.$vm = vm;
  2204. this.$vm.$mp = {
  2205. app: this
  2206. };
  2207. this.$vm.$scope = this;
  2208. // vm 上也挂载 globalData
  2209. this.$vm.globalData = this.globalData;
  2210. this.$vm._isMounted = true;
  2211. this.$vm.__call_hook('mounted', args);
  2212. this.$vm.__call_hook('onLaunch', args);
  2213. }
  2214. };
  2215. // 兼容旧版本 globalData
  2216. appOptions.globalData = vm.$options.globalData || {};
  2217. // 将 methods 中的方法挂在 getApp() 中
  2218. var methods = vm.$options.methods;
  2219. if (methods) {
  2220. Object.keys(methods).forEach(function (name) {
  2221. appOptions[name] = methods[name];
  2222. });
  2223. }
  2224. initAppLocale(_vue.default, vm, normalizeLocale(tt.getSystemInfoSync().language) || LOCALE_EN);
  2225. initHooks(appOptions, hooks);
  2226. initUnknownHooks(appOptions, vm.$options);
  2227. return appOptions;
  2228. }
  2229. var mocks = ['__route__', '__webviewId__', '__nodeid__', '__nodeId__'];
  2230. function isPage() {
  2231. return this.__nodeid__ === 0 || this.__nodeId__ === 0;
  2232. }
  2233. function initRefs$1(vm) {
  2234. var mpInstance = vm.$scope;
  2235. /* eslint-disable no-undef */
  2236. var minorVersion = parseInt(tt.getSystemInfoSync().SDKVersion.split('.')[1]);
  2237. if (minorVersion > 16) {
  2238. initRefs(vm);
  2239. } else {
  2240. mpInstance.selectAllComponents('.vue-ref', function (components) {
  2241. components.forEach(function (component) {
  2242. var ref = component.dataset.ref;
  2243. vm.$refs[ref] = component.$vm || toSkip(component);
  2244. });
  2245. });
  2246. mpInstance.selectAllComponents('.vue-ref-in-for', function (forComponents) {
  2247. forComponents.forEach(function (component) {
  2248. var ref = component.dataset.ref;
  2249. if (!vm.$refs[ref]) {
  2250. vm.$refs[ref] = [];
  2251. }
  2252. vm.$refs[ref].push(component.$vm || toSkip(component));
  2253. });
  2254. });
  2255. }
  2256. }
  2257. var instances = Object.create(null);
  2258. var components = Object.create(null);
  2259. function initRelation(_ref5) {
  2260. var vuePid = _ref5.vuePid,
  2261. mpInstance = _ref5.mpInstance;
  2262. // 头条 triggerEvent 后,接收事件时机特别晚,已经到了 ready 之后
  2263. var nodeId = (mpInstance.__nodeId__ || mpInstance.__nodeid__) + '';
  2264. var webviewId = mpInstance.__webviewId__ + '';
  2265. instances[webviewId + '_' + nodeId] = mpInstance.$vm;
  2266. this.triggerEvent('__l', {
  2267. vuePid: vuePid,
  2268. nodeId: nodeId,
  2269. webviewId: webviewId
  2270. });
  2271. }
  2272. function handleLink$1(_ref6) {
  2273. var _ref6$detail = _ref6.detail,
  2274. vuePid = _ref6$detail.vuePid,
  2275. nodeId = _ref6$detail.nodeId,
  2276. webviewId = _ref6$detail.webviewId;
  2277. var vm = instances[webviewId + '_' + nodeId];
  2278. if (!vm) {
  2279. return;
  2280. }
  2281. var parentVm;
  2282. if (vuePid) {
  2283. parentVm = findVmByVueId(this.$vm, vuePid);
  2284. }
  2285. if (!parentVm) {
  2286. parentVm = this.$vm;
  2287. }
  2288. vm.$parent = parentVm;
  2289. vm.$root = parentVm.$root;
  2290. parentVm.$children.push(vm);
  2291. vm.__call_hook('created');
  2292. vm.__call_hook('beforeMount');
  2293. vm._isMounted = true;
  2294. vm.__call_hook('mounted');
  2295. vm.__call_hook('onReady');
  2296. }
  2297. function parseApp(vm) {
  2298. _vue.default.prototype._$fallback = true; // 降级(调整原 vue 的部分生命周期,如 created,beforeMount,inject,provide)
  2299. _vue.default.mixin({
  2300. created: function created() {
  2301. // 处理 injections,头条 triggerEvent 是异步,且触发时机很慢,故延迟 relation 设置
  2302. if (this.mpType !== 'app') {
  2303. if (this.mpType === 'page' && !this.$scope.route && this.$scope.__route__) {
  2304. this.$scope.route = this.$scope.__route__;
  2305. }
  2306. initRefs$1(this);
  2307. this.__init_injections(this);
  2308. this.__init_provide(this);
  2309. }
  2310. }
  2311. });
  2312. return parseBaseApp(vm, {
  2313. mocks: mocks,
  2314. initRefs: function initRefs() {} // attached 时,可能查询不到
  2315. });
  2316. }
  2317. function createApp(vm) {
  2318. App(parseApp(vm));
  2319. return vm;
  2320. }
  2321. var encodeReserveRE = /[!'()*]/g;
  2322. var encodeReserveReplacer = function encodeReserveReplacer(c) {
  2323. return '%' + c.charCodeAt(0).toString(16);
  2324. };
  2325. var commaRE = /%2C/g;
  2326. // fixed encodeURIComponent which is more conformant to RFC3986:
  2327. // - escapes [!'()*]
  2328. // - preserve commas
  2329. var encode = function encode(str) {
  2330. return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
  2331. };
  2332. function stringifyQuery(obj) {
  2333. var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  2334. var res = obj ? Object.keys(obj).map(function (key) {
  2335. var val = obj[key];
  2336. if (val === undefined) {
  2337. return '';
  2338. }
  2339. if (val === null) {
  2340. return encodeStr(key);
  2341. }
  2342. if (Array.isArray(val)) {
  2343. var result = [];
  2344. val.forEach(function (val2) {
  2345. if (val2 === undefined) {
  2346. return;
  2347. }
  2348. if (val2 === null) {
  2349. result.push(encodeStr(key));
  2350. } else {
  2351. result.push(encodeStr(key) + '=' + encodeStr(val2));
  2352. }
  2353. });
  2354. return result.join('&');
  2355. }
  2356. return encodeStr(key) + '=' + encodeStr(val);
  2357. }).filter(function (x) {
  2358. return x.length > 0;
  2359. }).join('&') : null;
  2360. return res ? "?".concat(res) : '';
  2361. }
  2362. function parseBaseComponent(vueComponentOptions) {
  2363. var _ref7 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  2364. isPage = _ref7.isPage,
  2365. initRelation = _ref7.initRelation;
  2366. var needVueOptions = arguments.length > 2 ? arguments[2] : undefined;
  2367. var _initVueComponent = initVueComponent(_vue.default, vueComponentOptions),
  2368. _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
  2369. VueComponent = _initVueComponent2[0],
  2370. vueOptions = _initVueComponent2[1];
  2371. var options = _objectSpread({
  2372. multipleSlots: true,
  2373. // styleIsolation: 'apply-shared',
  2374. addGlobalClass: true
  2375. }, vueOptions.options || {});
  2376. var componentOptions = {
  2377. options: options,
  2378. data: initData(vueOptions, _vue.default.prototype),
  2379. behaviors: initBehaviors(vueOptions, initBehavior),
  2380. properties: initProperties(vueOptions.props, false, vueOptions.__file),
  2381. lifetimes: {
  2382. attached: function attached() {
  2383. var properties = this.properties;
  2384. var options = {
  2385. mpType: isPage.call(this) ? 'page' : 'component',
  2386. mpInstance: this,
  2387. propsData: properties
  2388. };
  2389. initVueIds(properties.vueId, this);
  2390. // 处理父子关系
  2391. initRelation.call(this, {
  2392. vuePid: this._$vuePid,
  2393. vueOptions: options
  2394. });
  2395. // 初始化 vue 实例
  2396. this.$vm = new VueComponent(options);
  2397. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  2398. initSlots(this.$vm, properties.vueSlots);
  2399. // 触发首次 setData
  2400. this.$vm.$mount();
  2401. },
  2402. ready: function ready() {
  2403. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  2404. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  2405. if (this.$vm) {
  2406. this.$vm._isMounted = true;
  2407. this.$vm.__call_hook('mounted');
  2408. this.$vm.__call_hook('onReady');
  2409. }
  2410. },
  2411. detached: function detached() {
  2412. this.$vm && this.$vm.$destroy();
  2413. }
  2414. },
  2415. pageLifetimes: {
  2416. show: function show(args) {
  2417. this.$vm && this.$vm.__call_hook('onPageShow', args);
  2418. },
  2419. hide: function hide() {
  2420. this.$vm && this.$vm.__call_hook('onPageHide');
  2421. },
  2422. resize: function resize(size) {
  2423. this.$vm && this.$vm.__call_hook('onPageResize', size);
  2424. }
  2425. },
  2426. methods: {
  2427. __l: handleLink,
  2428. __e: handleEvent
  2429. }
  2430. };
  2431. // externalClasses
  2432. if (vueOptions.externalClasses) {
  2433. componentOptions.externalClasses = vueOptions.externalClasses;
  2434. }
  2435. if (Array.isArray(vueOptions.wxsCallMethods)) {
  2436. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  2437. componentOptions.methods[callMethod] = function (args) {
  2438. return this.$vm[callMethod](args);
  2439. };
  2440. });
  2441. }
  2442. if (needVueOptions) {
  2443. return [componentOptions, vueOptions, VueComponent];
  2444. }
  2445. if (isPage) {
  2446. return componentOptions;
  2447. }
  2448. return [componentOptions, VueComponent];
  2449. }
  2450. function currentComponents(mpInstance, callback) {
  2451. var webviewId = mpInstance.__webviewId__;
  2452. var currentComponents = components[webviewId];
  2453. if (currentComponents) {
  2454. callback(currentComponents);
  2455. }
  2456. }
  2457. function parseComponent(vueComponentOptions, needVueOptions) {
  2458. var _parseBaseComponent = parseBaseComponent(vueComponentOptions, {
  2459. isPage: isPage,
  2460. initRelation: initRelation
  2461. }, true),
  2462. _parseBaseComponent2 = (0, _slicedToArray2.default)(_parseBaseComponent, 3),
  2463. componentOptions = _parseBaseComponent2[0],
  2464. vueOptions = _parseBaseComponent2[1],
  2465. VueComponent = _parseBaseComponent2[2];
  2466. var lifetimes = componentOptions.lifetimes;
  2467. // 基础库 2.0 以上 attached 顺序错乱,按照 created 顺序强制纠正
  2468. lifetimes.created = function created() {
  2469. var _this4 = this;
  2470. currentComponents(this, function (components) {
  2471. components.push(_this4);
  2472. });
  2473. };
  2474. lifetimes.attached = function attached() {
  2475. var _this5 = this;
  2476. this.__lifetimes_attached = function () {
  2477. var properties = this.properties;
  2478. var options = {
  2479. mpType: isPage.call(this) ? 'page' : 'component',
  2480. mpInstance: this,
  2481. propsData: properties
  2482. };
  2483. initVueIds(properties.vueId, this);
  2484. // 初始化 vue 实例
  2485. this.$vm = new VueComponent(options);
  2486. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  2487. initSlots(this.$vm, properties.vueSlots);
  2488. // 处理父子关系
  2489. initRelation.call(this, {
  2490. vuePid: this._$vuePid,
  2491. mpInstance: this
  2492. });
  2493. // 触发首次 setData
  2494. this.$vm.$mount();
  2495. };
  2496. currentComponents(this, function (components) {
  2497. var component = _this5;
  2498. while (component && component.__lifetimes_attached && components[0] && component === components[0]) {
  2499. components.shift();
  2500. component.__lifetimes_attached();
  2501. delete component.__lifetimes_attached;
  2502. component = components[0];
  2503. }
  2504. });
  2505. };
  2506. var oldDetached = lifetimes.detached;
  2507. lifetimes.detached = function detached() {
  2508. var _this6 = this;
  2509. if (typeof oldDetached === 'function') {
  2510. oldDetached.call(this);
  2511. }
  2512. currentComponents(this, function (components) {
  2513. var index = components.indexOf(_this6);
  2514. if (index >= 0) {
  2515. components.splice(index, 1);
  2516. }
  2517. });
  2518. };
  2519. // ready 比 handleLink 还早,初始化逻辑放到 handleLink 中
  2520. delete lifetimes.ready;
  2521. componentOptions.methods.__l = handleLink$1;
  2522. return needVueOptions ? [componentOptions, vueOptions] : componentOptions;
  2523. }
  2524. var hooks$1 = ['onShow', 'onHide', 'onUnload'];
  2525. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  2526. function parseBasePage(vuePageOptions) {
  2527. var _parseComponent = parseComponent(vuePageOptions, true),
  2528. _parseComponent2 = (0, _slicedToArray2.default)(_parseComponent, 2),
  2529. pageOptions = _parseComponent2[0],
  2530. vueOptions = _parseComponent2[1];
  2531. initHooks(pageOptions.methods, hooks$1, vueOptions);
  2532. pageOptions.methods.onLoad = function (query) {
  2533. this.options = query;
  2534. var copyQuery = Object.assign({}, query);
  2535. delete copyQuery.__id__;
  2536. this.$page = {
  2537. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery)
  2538. };
  2539. this.$vm.$mp.query = query; // 兼容 mpvue
  2540. this.$vm.__call_hook('onLoad', query);
  2541. };
  2542. {
  2543. initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  2544. }
  2545. return pageOptions;
  2546. }
  2547. function parsePage(vuePageOptions) {
  2548. var pageOptions = parseBasePage(vuePageOptions);
  2549. var lifetimes = pageOptions.lifetimes;
  2550. var oldCreated = lifetimes.created;
  2551. lifetimes.created = function created() {
  2552. var webviewId = this.__webviewId__;
  2553. components[webviewId] = [];
  2554. if (typeof oldCreated === 'function') {
  2555. oldCreated.call(this);
  2556. }
  2557. };
  2558. // 页面需要在 ready 中触发,其他组件是在 handleLink 中触发
  2559. lifetimes.ready = function ready() {
  2560. if (this.$vm && this.$vm.mpType === 'page') {
  2561. this.$vm.__call_hook('created');
  2562. this.$vm.__call_hook('beforeMount');
  2563. this.$vm._isMounted = true;
  2564. this.$vm.__call_hook('mounted');
  2565. this.$vm.__call_hook('onReady');
  2566. } else {
  2567. this.is && console.warn(this.is + ' is not ready');
  2568. }
  2569. };
  2570. var oldDetached = lifetimes.detached;
  2571. lifetimes.detached = function detached() {
  2572. if (typeof oldDetached === 'function') {
  2573. oldDetached.call(this);
  2574. }
  2575. // 清理
  2576. var webviewId = this.__webviewId__;
  2577. webviewId && Object.keys(instances).forEach(function (key) {
  2578. if (key.indexOf(webviewId + '_') === 0) {
  2579. delete instances[key];
  2580. }
  2581. });
  2582. delete components[webviewId];
  2583. };
  2584. return pageOptions;
  2585. }
  2586. function createPage(vuePageOptions) {
  2587. {
  2588. return Component(parsePage(vuePageOptions));
  2589. }
  2590. }
  2591. function createComponent(vueOptions) {
  2592. {
  2593. return Component(parseComponent(vueOptions));
  2594. }
  2595. }
  2596. function createSubpackageApp(vm) {
  2597. var appOptions = parseApp(vm);
  2598. var app = getApp({
  2599. allowDefault: true
  2600. });
  2601. vm.$scope = app;
  2602. var globalData = app.globalData;
  2603. if (globalData) {
  2604. Object.keys(appOptions.globalData).forEach(function (name) {
  2605. if (!hasOwn(globalData, name)) {
  2606. globalData[name] = appOptions.globalData[name];
  2607. }
  2608. });
  2609. }
  2610. Object.keys(appOptions).forEach(function (name) {
  2611. if (!hasOwn(app, name)) {
  2612. app[name] = appOptions[name];
  2613. }
  2614. });
  2615. if (isFn(appOptions.onShow) && tt.onAppShow) {
  2616. tt.onAppShow(function () {
  2617. for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
  2618. args[_key6] = arguments[_key6];
  2619. }
  2620. vm.__call_hook('onShow', args);
  2621. });
  2622. }
  2623. if (isFn(appOptions.onHide) && tt.onAppHide) {
  2624. tt.onAppHide(function () {
  2625. for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
  2626. args[_key7] = arguments[_key7];
  2627. }
  2628. vm.__call_hook('onHide', args);
  2629. });
  2630. }
  2631. if (isFn(appOptions.onLaunch)) {
  2632. var args = tt.getLaunchOptionsSync && tt.getLaunchOptionsSync();
  2633. vm.__call_hook('onLaunch', args);
  2634. }
  2635. return vm;
  2636. }
  2637. function createPlugin(vm) {
  2638. var appOptions = parseApp(vm);
  2639. if (isFn(appOptions.onShow) && tt.onAppShow) {
  2640. tt.onAppShow(function () {
  2641. for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
  2642. args[_key8] = arguments[_key8];
  2643. }
  2644. vm.__call_hook('onShow', args);
  2645. });
  2646. }
  2647. if (isFn(appOptions.onHide) && tt.onAppHide) {
  2648. tt.onAppHide(function () {
  2649. for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
  2650. args[_key9] = arguments[_key9];
  2651. }
  2652. vm.__call_hook('onHide', args);
  2653. });
  2654. }
  2655. if (isFn(appOptions.onLaunch)) {
  2656. var args = tt.getLaunchOptionsSync && tt.getLaunchOptionsSync();
  2657. vm.__call_hook('onLaunch', args);
  2658. }
  2659. return vm;
  2660. }
  2661. todos.forEach(function (todoApi) {
  2662. protocols[todoApi] = false;
  2663. });
  2664. canIUses.forEach(function (canIUseApi) {
  2665. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
  2666. if (!tt.canIUse(apiName)) {
  2667. protocols[canIUseApi] = false;
  2668. }
  2669. });
  2670. var uni = {};
  2671. if (typeof Proxy !== 'undefined' && "mp-toutiao" !== 'app-plus') {
  2672. uni = new Proxy({}, {
  2673. get: function get(target, name) {
  2674. if (hasOwn(target, name)) {
  2675. return target[name];
  2676. }
  2677. if (baseApi[name]) {
  2678. return baseApi[name];
  2679. }
  2680. if (api[name]) {
  2681. return promisify(name, api[name]);
  2682. }
  2683. {
  2684. if (extraApi[name]) {
  2685. return promisify(name, extraApi[name]);
  2686. }
  2687. if (todoApis[name]) {
  2688. return promisify(name, todoApis[name]);
  2689. }
  2690. }
  2691. if (eventApi[name]) {
  2692. return eventApi[name];
  2693. }
  2694. return promisify(name, wrapper(name, tt[name]));
  2695. },
  2696. set: function set(target, name, value) {
  2697. target[name] = value;
  2698. return true;
  2699. }
  2700. });
  2701. } else {
  2702. Object.keys(baseApi).forEach(function (name) {
  2703. uni[name] = baseApi[name];
  2704. });
  2705. {
  2706. Object.keys(todoApis).forEach(function (name) {
  2707. uni[name] = promisify(name, todoApis[name]);
  2708. });
  2709. Object.keys(extraApi).forEach(function (name) {
  2710. uni[name] = promisify(name, extraApi[name]);
  2711. });
  2712. }
  2713. Object.keys(eventApi).forEach(function (name) {
  2714. uni[name] = eventApi[name];
  2715. });
  2716. Object.keys(api).forEach(function (name) {
  2717. uni[name] = promisify(name, api[name]);
  2718. });
  2719. Object.keys(tt).forEach(function (name) {
  2720. if (hasOwn(tt, name) || hasOwn(protocols, name)) {
  2721. uni[name] = promisify(name, wrapper(name, tt[name]));
  2722. }
  2723. });
  2724. }
  2725. tt.createApp = createApp;
  2726. tt.createPage = createPage;
  2727. tt.createComponent = createComponent;
  2728. tt.createSubpackageApp = createSubpackageApp;
  2729. tt.createPlugin = createPlugin;
  2730. var uni$1 = uni;
  2731. var _default = uni$1;
  2732. exports.default = _default;
  2733. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 2)))
  2734. /***/ }),
  2735. /* 2 */
  2736. /*!***********************************!*\
  2737. !*** (webpack)/buildin/global.js ***!
  2738. \***********************************/
  2739. /*! no static exports found */
  2740. /***/ (function(module, exports) {
  2741. var g;
  2742. // This works in non-strict mode
  2743. g = (function() {
  2744. return this;
  2745. })();
  2746. try {
  2747. // This works if eval is allowed (see CSP)
  2748. g = g || new Function("return this")();
  2749. } catch (e) {
  2750. // This works if the window reference is available
  2751. if (typeof window === "object") g = window;
  2752. }
  2753. // g can still be undefined, but nothing to do about it...
  2754. // We return undefined, instead of nothing here, so it's
  2755. // easier to handle this case. if(!global) { ...}
  2756. module.exports = g;
  2757. /***/ }),
  2758. /* 3 */
  2759. /*!**********************************************************************!*\
  2760. !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  2761. \**********************************************************************/
  2762. /*! no static exports found */
  2763. /***/ (function(module, exports) {
  2764. function _interopRequireDefault(obj) {
  2765. return obj && obj.__esModule ? obj : {
  2766. "default": obj
  2767. };
  2768. }
  2769. module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2770. /***/ }),
  2771. /* 4 */
  2772. /*!**************************************************************!*\
  2773. !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  2774. \**************************************************************/
  2775. /*! no static exports found */
  2776. /***/ (function(module, exports, __webpack_require__) {
  2777. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 5);
  2778. var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 6);
  2779. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 7);
  2780. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 9);
  2781. function _slicedToArray(arr, i) {
  2782. return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
  2783. }
  2784. module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2785. /***/ }),
  2786. /* 5 */
  2787. /*!***************************************************************!*\
  2788. !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  2789. \***************************************************************/
  2790. /*! no static exports found */
  2791. /***/ (function(module, exports) {
  2792. function _arrayWithHoles(arr) {
  2793. if (Array.isArray(arr)) return arr;
  2794. }
  2795. module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2796. /***/ }),
  2797. /* 6 */
  2798. /*!*********************************************************************!*\
  2799. !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  2800. \*********************************************************************/
  2801. /*! no static exports found */
  2802. /***/ (function(module, exports) {
  2803. function _iterableToArrayLimit(arr, i) {
  2804. var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
  2805. if (null != _i) {
  2806. var _s,
  2807. _e,
  2808. _x,
  2809. _r,
  2810. _arr = [],
  2811. _n = !0,
  2812. _d = !1;
  2813. try {
  2814. if (_x = (_i = _i.call(arr)).next, 0 === i) {
  2815. if (Object(_i) !== _i) return;
  2816. _n = !1;
  2817. } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
  2818. ;
  2819. }
  2820. } catch (err) {
  2821. _d = !0, _e = err;
  2822. } finally {
  2823. try {
  2824. if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
  2825. } finally {
  2826. if (_d) throw _e;
  2827. }
  2828. }
  2829. return _arr;
  2830. }
  2831. }
  2832. module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2833. /***/ }),
  2834. /* 7 */
  2835. /*!***************************************************************************!*\
  2836. !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  2837. \***************************************************************************/
  2838. /*! no static exports found */
  2839. /***/ (function(module, exports, __webpack_require__) {
  2840. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 8);
  2841. function _unsupportedIterableToArray(o, minLen) {
  2842. if (!o) return;
  2843. if (typeof o === "string") return arrayLikeToArray(o, minLen);
  2844. var n = Object.prototype.toString.call(o).slice(8, -1);
  2845. if (n === "Object" && o.constructor) n = o.constructor.name;
  2846. if (n === "Map" || n === "Set") return Array.from(o);
  2847. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
  2848. }
  2849. module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2850. /***/ }),
  2851. /* 8 */
  2852. /*!*****************************************************************!*\
  2853. !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  2854. \*****************************************************************/
  2855. /*! no static exports found */
  2856. /***/ (function(module, exports) {
  2857. function _arrayLikeToArray(arr, len) {
  2858. if (len == null || len > arr.length) len = arr.length;
  2859. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  2860. arr2[i] = arr[i];
  2861. }
  2862. return arr2;
  2863. }
  2864. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2865. /***/ }),
  2866. /* 9 */
  2867. /*!****************************************************************!*\
  2868. !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
  2869. \****************************************************************/
  2870. /*! no static exports found */
  2871. /***/ (function(module, exports) {
  2872. function _nonIterableRest() {
  2873. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2874. }
  2875. module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2876. /***/ }),
  2877. /* 10 */
  2878. /*!***************************************************************!*\
  2879. !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  2880. \***************************************************************/
  2881. /*! no static exports found */
  2882. /***/ (function(module, exports, __webpack_require__) {
  2883. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 11);
  2884. function _defineProperty(obj, key, value) {
  2885. key = toPropertyKey(key);
  2886. if (key in obj) {
  2887. Object.defineProperty(obj, key, {
  2888. value: value,
  2889. enumerable: true,
  2890. configurable: true,
  2891. writable: true
  2892. });
  2893. } else {
  2894. obj[key] = value;
  2895. }
  2896. return obj;
  2897. }
  2898. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2899. /***/ }),
  2900. /* 11 */
  2901. /*!**************************************************************!*\
  2902. !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  2903. \**************************************************************/
  2904. /*! no static exports found */
  2905. /***/ (function(module, exports, __webpack_require__) {
  2906. var _typeof = __webpack_require__(/*! ./typeof.js */ 12)["default"];
  2907. var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 13);
  2908. function _toPropertyKey(arg) {
  2909. var key = toPrimitive(arg, "string");
  2910. return _typeof(key) === "symbol" ? key : String(key);
  2911. }
  2912. module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2913. /***/ }),
  2914. /* 12 */
  2915. /*!*******************************************************!*\
  2916. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  2917. \*******************************************************/
  2918. /*! no static exports found */
  2919. /***/ (function(module, exports) {
  2920. function _typeof(obj) {
  2921. "@babel/helpers - typeof";
  2922. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
  2923. return typeof obj;
  2924. } : function (obj) {
  2925. return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  2926. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
  2927. }
  2928. module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2929. /***/ }),
  2930. /* 13 */
  2931. /*!************************************************************!*\
  2932. !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  2933. \************************************************************/
  2934. /*! no static exports found */
  2935. /***/ (function(module, exports, __webpack_require__) {
  2936. var _typeof = __webpack_require__(/*! ./typeof.js */ 12)["default"];
  2937. function _toPrimitive(input, hint) {
  2938. if (_typeof(input) !== "object" || input === null) return input;
  2939. var prim = input[Symbol.toPrimitive];
  2940. if (prim !== undefined) {
  2941. var res = prim.call(input, hint || "default");
  2942. if (_typeof(res) !== "object") return res;
  2943. throw new TypeError("@@toPrimitive must return a primitive value.");
  2944. }
  2945. return (hint === "string" ? String : Number)(input);
  2946. }
  2947. module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2948. /***/ }),
  2949. /* 14 */
  2950. /*!**********************************************************!*\
  2951. !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
  2952. \**********************************************************/
  2953. /*! no static exports found */
  2954. /***/ (function(module, exports, __webpack_require__) {
  2955. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 15);
  2956. var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 16);
  2957. function _construct(Parent, args, Class) {
  2958. if (isNativeReflectConstruct()) {
  2959. module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports;
  2960. } else {
  2961. module.exports = _construct = function _construct(Parent, args, Class) {
  2962. var a = [null];
  2963. a.push.apply(a, args);
  2964. var Constructor = Function.bind.apply(Parent, a);
  2965. var instance = new Constructor();
  2966. if (Class) setPrototypeOf(instance, Class.prototype);
  2967. return instance;
  2968. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2969. }
  2970. return _construct.apply(null, arguments);
  2971. }
  2972. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2973. /***/ }),
  2974. /* 15 */
  2975. /*!***************************************************************!*\
  2976. !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  2977. \***************************************************************/
  2978. /*! no static exports found */
  2979. /***/ (function(module, exports) {
  2980. function _setPrototypeOf(o, p) {
  2981. module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  2982. o.__proto__ = p;
  2983. return o;
  2984. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2985. return _setPrototypeOf(o, p);
  2986. }
  2987. module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2988. /***/ }),
  2989. /* 16 */
  2990. /*!*************************************************************************!*\
  2991. !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  2992. \*************************************************************************/
  2993. /*! no static exports found */
  2994. /***/ (function(module, exports) {
  2995. function _isNativeReflectConstruct() {
  2996. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  2997. if (Reflect.construct.sham) return false;
  2998. if (typeof Proxy === "function") return true;
  2999. try {
  3000. Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  3001. return true;
  3002. } catch (e) {
  3003. return false;
  3004. }
  3005. }
  3006. module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3007. /***/ }),
  3008. /* 17 */
  3009. /*!***************************************************************!*\
  3010. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  3011. \***************************************************************/
  3012. /*! no static exports found */
  3013. /***/ (function(module, exports) {
  3014. function _classCallCheck(instance, Constructor) {
  3015. if (!(instance instanceof Constructor)) {
  3016. throw new TypeError("Cannot call a class as a function");
  3017. }
  3018. }
  3019. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3020. /***/ }),
  3021. /* 18 */
  3022. /*!************************************************************!*\
  3023. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  3024. \************************************************************/
  3025. /*! no static exports found */
  3026. /***/ (function(module, exports, __webpack_require__) {
  3027. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 11);
  3028. function _defineProperties(target, props) {
  3029. for (var i = 0; i < props.length; i++) {
  3030. var descriptor = props[i];
  3031. descriptor.enumerable = descriptor.enumerable || false;
  3032. descriptor.configurable = true;
  3033. if ("value" in descriptor) descriptor.writable = true;
  3034. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  3035. }
  3036. }
  3037. function _createClass(Constructor, protoProps, staticProps) {
  3038. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  3039. if (staticProps) _defineProperties(Constructor, staticProps);
  3040. Object.defineProperty(Constructor, "prototype", {
  3041. writable: false
  3042. });
  3043. return Constructor;
  3044. }
  3045. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3046. /***/ }),
  3047. /* 19 */
  3048. /*!******************************************************************!*\
  3049. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  3050. \******************************************************************/
  3051. /*! no static exports found */
  3052. /***/ (function(module, exports, __webpack_require__) {
  3053. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 20);
  3054. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 21);
  3055. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 7);
  3056. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 22);
  3057. function _toConsumableArray(arr) {
  3058. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  3059. }
  3060. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3061. /***/ }),
  3062. /* 20 */
  3063. /*!******************************************************************!*\
  3064. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  3065. \******************************************************************/
  3066. /*! no static exports found */
  3067. /***/ (function(module, exports, __webpack_require__) {
  3068. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 8);
  3069. function _arrayWithoutHoles(arr) {
  3070. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  3071. }
  3072. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3073. /***/ }),
  3074. /* 21 */
  3075. /*!****************************************************************!*\
  3076. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  3077. \****************************************************************/
  3078. /*! no static exports found */
  3079. /***/ (function(module, exports) {
  3080. function _iterableToArray(iter) {
  3081. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  3082. }
  3083. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3084. /***/ }),
  3085. /* 22 */
  3086. /*!******************************************************************!*\
  3087. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  3088. \******************************************************************/
  3089. /*! no static exports found */
  3090. /***/ (function(module, exports) {
  3091. function _nonIterableSpread() {
  3092. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  3093. }
  3094. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3095. /***/ }),
  3096. /* 23 */
  3097. /*!*************************************************************!*\
  3098. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  3099. \*************************************************************/
  3100. /*! no static exports found */
  3101. /***/ (function(module, exports, __webpack_require__) {
  3102. "use strict";
  3103. /* WEBPACK VAR INJECTION */(function(uni, global) {
  3104. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  3105. Object.defineProperty(exports, "__esModule", {
  3106. value: true
  3107. });
  3108. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  3109. exports.compileI18nJsonStr = compileI18nJsonStr;
  3110. exports.hasI18nJson = hasI18nJson;
  3111. exports.initVueI18n = initVueI18n;
  3112. exports.isI18nStr = isI18nStr;
  3113. exports.isString = void 0;
  3114. exports.normalizeLocale = normalizeLocale;
  3115. exports.parseI18nJson = parseI18nJson;
  3116. exports.resolveLocale = resolveLocale;
  3117. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 4));
  3118. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 17));
  3119. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 18));
  3120. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 12));
  3121. var isObject = function isObject(val) {
  3122. return val !== null && (0, _typeof2.default)(val) === 'object';
  3123. };
  3124. var defaultDelimiters = ['{', '}'];
  3125. var BaseFormatter = /*#__PURE__*/function () {
  3126. function BaseFormatter() {
  3127. (0, _classCallCheck2.default)(this, BaseFormatter);
  3128. this._caches = Object.create(null);
  3129. }
  3130. (0, _createClass2.default)(BaseFormatter, [{
  3131. key: "interpolate",
  3132. value: function interpolate(message, values) {
  3133. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  3134. if (!values) {
  3135. return [message];
  3136. }
  3137. var tokens = this._caches[message];
  3138. if (!tokens) {
  3139. tokens = parse(message, delimiters);
  3140. this._caches[message] = tokens;
  3141. }
  3142. return compile(tokens, values);
  3143. }
  3144. }]);
  3145. return BaseFormatter;
  3146. }();
  3147. exports.Formatter = BaseFormatter;
  3148. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  3149. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  3150. function parse(format, _ref) {
  3151. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  3152. startDelimiter = _ref2[0],
  3153. endDelimiter = _ref2[1];
  3154. var tokens = [];
  3155. var position = 0;
  3156. var text = '';
  3157. while (position < format.length) {
  3158. var char = format[position++];
  3159. if (char === startDelimiter) {
  3160. if (text) {
  3161. tokens.push({
  3162. type: 'text',
  3163. value: text
  3164. });
  3165. }
  3166. text = '';
  3167. var sub = '';
  3168. char = format[position++];
  3169. while (char !== undefined && char !== endDelimiter) {
  3170. sub += char;
  3171. char = format[position++];
  3172. }
  3173. var isClosed = char === endDelimiter;
  3174. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  3175. tokens.push({
  3176. value: sub,
  3177. type: type
  3178. });
  3179. }
  3180. // else if (char === '%') {
  3181. // // when found rails i18n syntax, skip text capture
  3182. // if (format[position] !== '{') {
  3183. // text += char
  3184. // }
  3185. // }
  3186. else {
  3187. text += char;
  3188. }
  3189. }
  3190. text && tokens.push({
  3191. type: 'text',
  3192. value: text
  3193. });
  3194. return tokens;
  3195. }
  3196. function compile(tokens, values) {
  3197. var compiled = [];
  3198. var index = 0;
  3199. var mode = Array.isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  3200. if (mode === 'unknown') {
  3201. return compiled;
  3202. }
  3203. while (index < tokens.length) {
  3204. var token = tokens[index];
  3205. switch (token.type) {
  3206. case 'text':
  3207. compiled.push(token.value);
  3208. break;
  3209. case 'list':
  3210. compiled.push(values[parseInt(token.value, 10)]);
  3211. break;
  3212. case 'named':
  3213. if (mode === 'named') {
  3214. compiled.push(values[token.value]);
  3215. } else {
  3216. if (true) {
  3217. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  3218. }
  3219. }
  3220. break;
  3221. case 'unknown':
  3222. if (true) {
  3223. console.warn("Detect 'unknown' type of token!");
  3224. }
  3225. break;
  3226. }
  3227. index++;
  3228. }
  3229. return compiled;
  3230. }
  3231. var LOCALE_ZH_HANS = 'zh-Hans';
  3232. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  3233. var LOCALE_ZH_HANT = 'zh-Hant';
  3234. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  3235. var LOCALE_EN = 'en';
  3236. exports.LOCALE_EN = LOCALE_EN;
  3237. var LOCALE_FR = 'fr';
  3238. exports.LOCALE_FR = LOCALE_FR;
  3239. var LOCALE_ES = 'es';
  3240. exports.LOCALE_ES = LOCALE_ES;
  3241. var hasOwnProperty = Object.prototype.hasOwnProperty;
  3242. var hasOwn = function hasOwn(val, key) {
  3243. return hasOwnProperty.call(val, key);
  3244. };
  3245. var defaultFormatter = new BaseFormatter();
  3246. function include(str, parts) {
  3247. return !!parts.find(function (part) {
  3248. return str.indexOf(part) !== -1;
  3249. });
  3250. }
  3251. function startsWith(str, parts) {
  3252. return parts.find(function (part) {
  3253. return str.indexOf(part) === 0;
  3254. });
  3255. }
  3256. function normalizeLocale(locale, messages) {
  3257. if (!locale) {
  3258. return;
  3259. }
  3260. locale = locale.trim().replace(/_/g, '-');
  3261. if (messages && messages[locale]) {
  3262. return locale;
  3263. }
  3264. locale = locale.toLowerCase();
  3265. if (locale === 'chinese') {
  3266. // 支付宝
  3267. return LOCALE_ZH_HANS;
  3268. }
  3269. if (locale.indexOf('zh') === 0) {
  3270. if (locale.indexOf('-hans') > -1) {
  3271. return LOCALE_ZH_HANS;
  3272. }
  3273. if (locale.indexOf('-hant') > -1) {
  3274. return LOCALE_ZH_HANT;
  3275. }
  3276. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  3277. return LOCALE_ZH_HANT;
  3278. }
  3279. return LOCALE_ZH_HANS;
  3280. }
  3281. var locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES];
  3282. if (messages && Object.keys(messages).length > 0) {
  3283. locales = Object.keys(messages);
  3284. }
  3285. var lang = startsWith(locale, locales);
  3286. if (lang) {
  3287. return lang;
  3288. }
  3289. }
  3290. var I18n = /*#__PURE__*/function () {
  3291. function I18n(_ref3) {
  3292. var locale = _ref3.locale,
  3293. fallbackLocale = _ref3.fallbackLocale,
  3294. messages = _ref3.messages,
  3295. watcher = _ref3.watcher,
  3296. formater = _ref3.formater;
  3297. (0, _classCallCheck2.default)(this, I18n);
  3298. this.locale = LOCALE_EN;
  3299. this.fallbackLocale = LOCALE_EN;
  3300. this.message = {};
  3301. this.messages = {};
  3302. this.watchers = [];
  3303. if (fallbackLocale) {
  3304. this.fallbackLocale = fallbackLocale;
  3305. }
  3306. this.formater = formater || defaultFormatter;
  3307. this.messages = messages || {};
  3308. this.setLocale(locale || LOCALE_EN);
  3309. if (watcher) {
  3310. this.watchLocale(watcher);
  3311. }
  3312. }
  3313. (0, _createClass2.default)(I18n, [{
  3314. key: "setLocale",
  3315. value: function setLocale(locale) {
  3316. var _this = this;
  3317. var oldLocale = this.locale;
  3318. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  3319. if (!this.messages[this.locale]) {
  3320. // 可能初始化时不存在
  3321. this.messages[this.locale] = {};
  3322. }
  3323. this.message = this.messages[this.locale];
  3324. // 仅发生变化时,通知
  3325. if (oldLocale !== this.locale) {
  3326. this.watchers.forEach(function (watcher) {
  3327. watcher(_this.locale, oldLocale);
  3328. });
  3329. }
  3330. }
  3331. }, {
  3332. key: "getLocale",
  3333. value: function getLocale() {
  3334. return this.locale;
  3335. }
  3336. }, {
  3337. key: "watchLocale",
  3338. value: function watchLocale(fn) {
  3339. var _this2 = this;
  3340. var index = this.watchers.push(fn) - 1;
  3341. return function () {
  3342. _this2.watchers.splice(index, 1);
  3343. };
  3344. }
  3345. }, {
  3346. key: "add",
  3347. value: function add(locale, message) {
  3348. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3349. var curMessages = this.messages[locale];
  3350. if (curMessages) {
  3351. if (override) {
  3352. Object.assign(curMessages, message);
  3353. } else {
  3354. Object.keys(message).forEach(function (key) {
  3355. if (!hasOwn(curMessages, key)) {
  3356. curMessages[key] = message[key];
  3357. }
  3358. });
  3359. }
  3360. } else {
  3361. this.messages[locale] = message;
  3362. }
  3363. }
  3364. }, {
  3365. key: "f",
  3366. value: function f(message, values, delimiters) {
  3367. return this.formater.interpolate(message, values, delimiters).join('');
  3368. }
  3369. }, {
  3370. key: "t",
  3371. value: function t(key, locale, values) {
  3372. var message = this.message;
  3373. if (typeof locale === 'string') {
  3374. locale = normalizeLocale(locale, this.messages);
  3375. locale && (message = this.messages[locale]);
  3376. } else {
  3377. values = locale;
  3378. }
  3379. if (!hasOwn(message, key)) {
  3380. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  3381. return key;
  3382. }
  3383. return this.formater.interpolate(message[key], values).join('');
  3384. }
  3385. }]);
  3386. return I18n;
  3387. }();
  3388. exports.I18n = I18n;
  3389. function watchAppLocale(appVm, i18n) {
  3390. // 需要保证 watch 的触发在组件渲染之前
  3391. if (appVm.$watchLocale) {
  3392. // vue2
  3393. appVm.$watchLocale(function (newLocale) {
  3394. i18n.setLocale(newLocale);
  3395. });
  3396. } else {
  3397. appVm.$watch(function () {
  3398. return appVm.$locale;
  3399. }, function (newLocale) {
  3400. i18n.setLocale(newLocale);
  3401. });
  3402. }
  3403. }
  3404. function getDefaultLocale() {
  3405. if (typeof uni !== 'undefined' && uni.getLocale) {
  3406. return uni.getLocale();
  3407. }
  3408. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  3409. if (typeof global !== 'undefined' && global.getLocale) {
  3410. return global.getLocale();
  3411. }
  3412. return LOCALE_EN;
  3413. }
  3414. function initVueI18n(locale) {
  3415. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3416. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  3417. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  3418. // 兼容旧版本入参
  3419. if (typeof locale !== 'string') {
  3420. var _ref4 = [messages, locale];
  3421. locale = _ref4[0];
  3422. messages = _ref4[1];
  3423. }
  3424. if (typeof locale !== 'string') {
  3425. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  3426. locale = getDefaultLocale();
  3427. }
  3428. if (typeof fallbackLocale !== 'string') {
  3429. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  3430. }
  3431. var i18n = new I18n({
  3432. locale: locale,
  3433. fallbackLocale: fallbackLocale,
  3434. messages: messages,
  3435. watcher: watcher
  3436. });
  3437. var _t = function t(key, values) {
  3438. if (typeof getApp !== 'function') {
  3439. // app view
  3440. /* eslint-disable no-func-assign */
  3441. _t = function t(key, values) {
  3442. return i18n.t(key, values);
  3443. };
  3444. } else {
  3445. var isWatchedAppLocale = false;
  3446. _t = function t(key, values) {
  3447. var appVm = getApp().$vm;
  3448. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  3449. // options: {
  3450. // type: Array,
  3451. // default () {
  3452. // return [{
  3453. // icon: 'shop',
  3454. // text: t("uni-goods-nav.options.shop"),
  3455. // }, {
  3456. // icon: 'cart',
  3457. // text: t("uni-goods-nav.options.cart")
  3458. // }]
  3459. // }
  3460. // },
  3461. if (appVm) {
  3462. // 触发响应式
  3463. appVm.$locale;
  3464. if (!isWatchedAppLocale) {
  3465. isWatchedAppLocale = true;
  3466. watchAppLocale(appVm, i18n);
  3467. }
  3468. }
  3469. return i18n.t(key, values);
  3470. };
  3471. }
  3472. return _t(key, values);
  3473. };
  3474. return {
  3475. i18n: i18n,
  3476. f: function f(message, values, delimiters) {
  3477. return i18n.f(message, values, delimiters);
  3478. },
  3479. t: function t(key, values) {
  3480. return _t(key, values);
  3481. },
  3482. add: function add(locale, message) {
  3483. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3484. return i18n.add(locale, message, override);
  3485. },
  3486. watch: function watch(fn) {
  3487. return i18n.watchLocale(fn);
  3488. },
  3489. getLocale: function getLocale() {
  3490. return i18n.getLocale();
  3491. },
  3492. setLocale: function setLocale(newLocale) {
  3493. return i18n.setLocale(newLocale);
  3494. }
  3495. };
  3496. }
  3497. var isString = function isString(val) {
  3498. return typeof val === 'string';
  3499. };
  3500. exports.isString = isString;
  3501. var formater;
  3502. function hasI18nJson(jsonObj, delimiters) {
  3503. if (!formater) {
  3504. formater = new BaseFormatter();
  3505. }
  3506. return walkJsonObj(jsonObj, function (jsonObj, key) {
  3507. var value = jsonObj[key];
  3508. if (isString(value)) {
  3509. if (isI18nStr(value, delimiters)) {
  3510. return true;
  3511. }
  3512. } else {
  3513. return hasI18nJson(value, delimiters);
  3514. }
  3515. });
  3516. }
  3517. function parseI18nJson(jsonObj, values, delimiters) {
  3518. if (!formater) {
  3519. formater = new BaseFormatter();
  3520. }
  3521. walkJsonObj(jsonObj, function (jsonObj, key) {
  3522. var value = jsonObj[key];
  3523. if (isString(value)) {
  3524. if (isI18nStr(value, delimiters)) {
  3525. jsonObj[key] = compileStr(value, values, delimiters);
  3526. }
  3527. } else {
  3528. parseI18nJson(value, values, delimiters);
  3529. }
  3530. });
  3531. return jsonObj;
  3532. }
  3533. function compileI18nJsonStr(jsonStr, _ref5) {
  3534. var locale = _ref5.locale,
  3535. locales = _ref5.locales,
  3536. delimiters = _ref5.delimiters;
  3537. if (!isI18nStr(jsonStr, delimiters)) {
  3538. return jsonStr;
  3539. }
  3540. if (!formater) {
  3541. formater = new BaseFormatter();
  3542. }
  3543. var localeValues = [];
  3544. Object.keys(locales).forEach(function (name) {
  3545. if (name !== locale) {
  3546. localeValues.push({
  3547. locale: name,
  3548. values: locales[name]
  3549. });
  3550. }
  3551. });
  3552. localeValues.unshift({
  3553. locale: locale,
  3554. values: locales[locale]
  3555. });
  3556. try {
  3557. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  3558. } catch (e) {}
  3559. return jsonStr;
  3560. }
  3561. function isI18nStr(value, delimiters) {
  3562. return value.indexOf(delimiters[0]) > -1;
  3563. }
  3564. function compileStr(value, values, delimiters) {
  3565. return formater.interpolate(value, values, delimiters).join('');
  3566. }
  3567. function compileValue(jsonObj, key, localeValues, delimiters) {
  3568. var value = jsonObj[key];
  3569. if (isString(value)) {
  3570. // 存在国际化
  3571. if (isI18nStr(value, delimiters)) {
  3572. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  3573. if (localeValues.length > 1) {
  3574. // 格式化国际化语言
  3575. var valueLocales = jsonObj[key + 'Locales'] = {};
  3576. localeValues.forEach(function (localValue) {
  3577. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  3578. });
  3579. }
  3580. }
  3581. } else {
  3582. compileJsonObj(value, localeValues, delimiters);
  3583. }
  3584. }
  3585. function compileJsonObj(jsonObj, localeValues, delimiters) {
  3586. walkJsonObj(jsonObj, function (jsonObj, key) {
  3587. compileValue(jsonObj, key, localeValues, delimiters);
  3588. });
  3589. return jsonObj;
  3590. }
  3591. function walkJsonObj(jsonObj, walk) {
  3592. if (Array.isArray(jsonObj)) {
  3593. for (var i = 0; i < jsonObj.length; i++) {
  3594. if (walk(jsonObj, i)) {
  3595. return true;
  3596. }
  3597. }
  3598. } else if (isObject(jsonObj)) {
  3599. for (var key in jsonObj) {
  3600. if (walk(jsonObj, key)) {
  3601. return true;
  3602. }
  3603. }
  3604. }
  3605. return false;
  3606. }
  3607. function resolveLocale(locales) {
  3608. return function (locale) {
  3609. if (!locale) {
  3610. return locale;
  3611. }
  3612. locale = normalizeLocale(locale) || locale;
  3613. return resolveLocaleChain(locale).find(function (locale) {
  3614. return locales.indexOf(locale) > -1;
  3615. });
  3616. };
  3617. }
  3618. function resolveLocaleChain(locale) {
  3619. var chain = [];
  3620. var tokens = locale.split('-');
  3621. while (tokens.length) {
  3622. chain.push(tokens.join('-'));
  3623. tokens.pop();
  3624. }
  3625. return chain;
  3626. }
  3627. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 2)))
  3628. /***/ }),
  3629. /* 24 */
  3630. /*!******************************************************************************************!*\
  3631. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  3632. \******************************************************************************************/
  3633. /*! exports provided: default */
  3634. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3635. "use strict";
  3636. __webpack_require__.r(__webpack_exports__);
  3637. /* WEBPACK VAR INJECTION */(function(global) {/*!
  3638. * Vue.js v2.6.11
  3639. * (c) 2014-2023 Evan You
  3640. * Released under the MIT License.
  3641. */
  3642. /* */
  3643. var emptyObject = Object.freeze({});
  3644. // These helpers produce better VM code in JS engines due to their
  3645. // explicitness and function inlining.
  3646. function isUndef (v) {
  3647. return v === undefined || v === null
  3648. }
  3649. function isDef (v) {
  3650. return v !== undefined && v !== null
  3651. }
  3652. function isTrue (v) {
  3653. return v === true
  3654. }
  3655. function isFalse (v) {
  3656. return v === false
  3657. }
  3658. /**
  3659. * Check if value is primitive.
  3660. */
  3661. function isPrimitive (value) {
  3662. return (
  3663. typeof value === 'string' ||
  3664. typeof value === 'number' ||
  3665. // $flow-disable-line
  3666. typeof value === 'symbol' ||
  3667. typeof value === 'boolean'
  3668. )
  3669. }
  3670. /**
  3671. * Quick object check - this is primarily used to tell
  3672. * Objects from primitive values when we know the value
  3673. * is a JSON-compliant type.
  3674. */
  3675. function isObject (obj) {
  3676. return obj !== null && typeof obj === 'object'
  3677. }
  3678. /**
  3679. * Get the raw type string of a value, e.g., [object Object].
  3680. */
  3681. var _toString = Object.prototype.toString;
  3682. function toRawType (value) {
  3683. return _toString.call(value).slice(8, -1)
  3684. }
  3685. /**
  3686. * Strict object type check. Only returns true
  3687. * for plain JavaScript objects.
  3688. */
  3689. function isPlainObject (obj) {
  3690. return _toString.call(obj) === '[object Object]'
  3691. }
  3692. function isRegExp (v) {
  3693. return _toString.call(v) === '[object RegExp]'
  3694. }
  3695. /**
  3696. * Check if val is a valid array index.
  3697. */
  3698. function isValidArrayIndex (val) {
  3699. var n = parseFloat(String(val));
  3700. return n >= 0 && Math.floor(n) === n && isFinite(val)
  3701. }
  3702. function isPromise (val) {
  3703. return (
  3704. isDef(val) &&
  3705. typeof val.then === 'function' &&
  3706. typeof val.catch === 'function'
  3707. )
  3708. }
  3709. /**
  3710. * Convert a value to a string that is actually rendered.
  3711. */
  3712. function toString (val) {
  3713. return val == null
  3714. ? ''
  3715. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  3716. ? JSON.stringify(val, null, 2)
  3717. : String(val)
  3718. }
  3719. /**
  3720. * Convert an input value to a number for persistence.
  3721. * If the conversion fails, return original string.
  3722. */
  3723. function toNumber (val) {
  3724. var n = parseFloat(val);
  3725. return isNaN(n) ? val : n
  3726. }
  3727. /**
  3728. * Make a map and return a function for checking if a key
  3729. * is in that map.
  3730. */
  3731. function makeMap (
  3732. str,
  3733. expectsLowerCase
  3734. ) {
  3735. var map = Object.create(null);
  3736. var list = str.split(',');
  3737. for (var i = 0; i < list.length; i++) {
  3738. map[list[i]] = true;
  3739. }
  3740. return expectsLowerCase
  3741. ? function (val) { return map[val.toLowerCase()]; }
  3742. : function (val) { return map[val]; }
  3743. }
  3744. /**
  3745. * Check if a tag is a built-in tag.
  3746. */
  3747. var isBuiltInTag = makeMap('slot,component', true);
  3748. /**
  3749. * Check if an attribute is a reserved attribute.
  3750. */
  3751. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  3752. /**
  3753. * Remove an item from an array.
  3754. */
  3755. function remove (arr, item) {
  3756. if (arr.length) {
  3757. var index = arr.indexOf(item);
  3758. if (index > -1) {
  3759. return arr.splice(index, 1)
  3760. }
  3761. }
  3762. }
  3763. /**
  3764. * Check whether an object has the property.
  3765. */
  3766. var hasOwnProperty = Object.prototype.hasOwnProperty;
  3767. function hasOwn (obj, key) {
  3768. return hasOwnProperty.call(obj, key)
  3769. }
  3770. /**
  3771. * Create a cached version of a pure function.
  3772. */
  3773. function cached (fn) {
  3774. var cache = Object.create(null);
  3775. return (function cachedFn (str) {
  3776. var hit = cache[str];
  3777. return hit || (cache[str] = fn(str))
  3778. })
  3779. }
  3780. /**
  3781. * Camelize a hyphen-delimited string.
  3782. */
  3783. var camelizeRE = /-(\w)/g;
  3784. var camelize = cached(function (str) {
  3785. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  3786. });
  3787. /**
  3788. * Capitalize a string.
  3789. */
  3790. var capitalize = cached(function (str) {
  3791. return str.charAt(0).toUpperCase() + str.slice(1)
  3792. });
  3793. /**
  3794. * Hyphenate a camelCase string.
  3795. */
  3796. var hyphenateRE = /\B([A-Z])/g;
  3797. var hyphenate = cached(function (str) {
  3798. return str.replace(hyphenateRE, '-$1').toLowerCase()
  3799. });
  3800. /**
  3801. * Simple bind polyfill for environments that do not support it,
  3802. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  3803. * since native bind is now performant enough in most browsers.
  3804. * But removing it would mean breaking code that was able to run in
  3805. * PhantomJS 1.x, so this must be kept for backward compatibility.
  3806. */
  3807. /* istanbul ignore next */
  3808. function polyfillBind (fn, ctx) {
  3809. function boundFn (a) {
  3810. var l = arguments.length;
  3811. return l
  3812. ? l > 1
  3813. ? fn.apply(ctx, arguments)
  3814. : fn.call(ctx, a)
  3815. : fn.call(ctx)
  3816. }
  3817. boundFn._length = fn.length;
  3818. return boundFn
  3819. }
  3820. function nativeBind (fn, ctx) {
  3821. return fn.bind(ctx)
  3822. }
  3823. var bind = Function.prototype.bind
  3824. ? nativeBind
  3825. : polyfillBind;
  3826. /**
  3827. * Convert an Array-like object to a real Array.
  3828. */
  3829. function toArray (list, start) {
  3830. start = start || 0;
  3831. var i = list.length - start;
  3832. var ret = new Array(i);
  3833. while (i--) {
  3834. ret[i] = list[i + start];
  3835. }
  3836. return ret
  3837. }
  3838. /**
  3839. * Mix properties into target object.
  3840. */
  3841. function extend (to, _from) {
  3842. for (var key in _from) {
  3843. to[key] = _from[key];
  3844. }
  3845. return to
  3846. }
  3847. /**
  3848. * Merge an Array of Objects into a single Object.
  3849. */
  3850. function toObject (arr) {
  3851. var res = {};
  3852. for (var i = 0; i < arr.length; i++) {
  3853. if (arr[i]) {
  3854. extend(res, arr[i]);
  3855. }
  3856. }
  3857. return res
  3858. }
  3859. /* eslint-disable no-unused-vars */
  3860. /**
  3861. * Perform no operation.
  3862. * Stubbing args to make Flow happy without leaving useless transpiled code
  3863. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  3864. */
  3865. function noop (a, b, c) {}
  3866. /**
  3867. * Always return false.
  3868. */
  3869. var no = function (a, b, c) { return false; };
  3870. /* eslint-enable no-unused-vars */
  3871. /**
  3872. * Return the same value.
  3873. */
  3874. var identity = function (_) { return _; };
  3875. /**
  3876. * Check if two values are loosely equal - that is,
  3877. * if they are plain objects, do they have the same shape?
  3878. */
  3879. function looseEqual (a, b) {
  3880. if (a === b) { return true }
  3881. var isObjectA = isObject(a);
  3882. var isObjectB = isObject(b);
  3883. if (isObjectA && isObjectB) {
  3884. try {
  3885. var isArrayA = Array.isArray(a);
  3886. var isArrayB = Array.isArray(b);
  3887. if (isArrayA && isArrayB) {
  3888. return a.length === b.length && a.every(function (e, i) {
  3889. return looseEqual(e, b[i])
  3890. })
  3891. } else if (a instanceof Date && b instanceof Date) {
  3892. return a.getTime() === b.getTime()
  3893. } else if (!isArrayA && !isArrayB) {
  3894. var keysA = Object.keys(a);
  3895. var keysB = Object.keys(b);
  3896. return keysA.length === keysB.length && keysA.every(function (key) {
  3897. return looseEqual(a[key], b[key])
  3898. })
  3899. } else {
  3900. /* istanbul ignore next */
  3901. return false
  3902. }
  3903. } catch (e) {
  3904. /* istanbul ignore next */
  3905. return false
  3906. }
  3907. } else if (!isObjectA && !isObjectB) {
  3908. return String(a) === String(b)
  3909. } else {
  3910. return false
  3911. }
  3912. }
  3913. /**
  3914. * Return the first index at which a loosely equal value can be
  3915. * found in the array (if value is a plain object, the array must
  3916. * contain an object of the same shape), or -1 if it is not present.
  3917. */
  3918. function looseIndexOf (arr, val) {
  3919. for (var i = 0; i < arr.length; i++) {
  3920. if (looseEqual(arr[i], val)) { return i }
  3921. }
  3922. return -1
  3923. }
  3924. /**
  3925. * Ensure a function is called only once.
  3926. */
  3927. function once (fn) {
  3928. var called = false;
  3929. return function () {
  3930. if (!called) {
  3931. called = true;
  3932. fn.apply(this, arguments);
  3933. }
  3934. }
  3935. }
  3936. var ASSET_TYPES = [
  3937. 'component',
  3938. 'directive',
  3939. 'filter'
  3940. ];
  3941. var LIFECYCLE_HOOKS = [
  3942. 'beforeCreate',
  3943. 'created',
  3944. 'beforeMount',
  3945. 'mounted',
  3946. 'beforeUpdate',
  3947. 'updated',
  3948. 'beforeDestroy',
  3949. 'destroyed',
  3950. 'activated',
  3951. 'deactivated',
  3952. 'errorCaptured',
  3953. 'serverPrefetch'
  3954. ];
  3955. /* */
  3956. var config = ({
  3957. /**
  3958. * Option merge strategies (used in core/util/options)
  3959. */
  3960. // $flow-disable-line
  3961. optionMergeStrategies: Object.create(null),
  3962. /**
  3963. * Whether to suppress warnings.
  3964. */
  3965. silent: false,
  3966. /**
  3967. * Show production mode tip message on boot?
  3968. */
  3969. productionTip: "development" !== 'production',
  3970. /**
  3971. * Whether to enable devtools
  3972. */
  3973. devtools: "development" !== 'production',
  3974. /**
  3975. * Whether to record perf
  3976. */
  3977. performance: false,
  3978. /**
  3979. * Error handler for watcher errors
  3980. */
  3981. errorHandler: null,
  3982. /**
  3983. * Warn handler for watcher warns
  3984. */
  3985. warnHandler: null,
  3986. /**
  3987. * Ignore certain custom elements
  3988. */
  3989. ignoredElements: [],
  3990. /**
  3991. * Custom user key aliases for v-on
  3992. */
  3993. // $flow-disable-line
  3994. keyCodes: Object.create(null),
  3995. /**
  3996. * Check if a tag is reserved so that it cannot be registered as a
  3997. * component. This is platform-dependent and may be overwritten.
  3998. */
  3999. isReservedTag: no,
  4000. /**
  4001. * Check if an attribute is reserved so that it cannot be used as a component
  4002. * prop. This is platform-dependent and may be overwritten.
  4003. */
  4004. isReservedAttr: no,
  4005. /**
  4006. * Check if a tag is an unknown element.
  4007. * Platform-dependent.
  4008. */
  4009. isUnknownElement: no,
  4010. /**
  4011. * Get the namespace of an element
  4012. */
  4013. getTagNamespace: noop,
  4014. /**
  4015. * Parse the real tag name for the specific platform.
  4016. */
  4017. parsePlatformTagName: identity,
  4018. /**
  4019. * Check if an attribute must be bound using property, e.g. value
  4020. * Platform-dependent.
  4021. */
  4022. mustUseProp: no,
  4023. /**
  4024. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  4025. * This will significantly reduce performance if set to false.
  4026. */
  4027. async: true,
  4028. /**
  4029. * Exposed for legacy reasons
  4030. */
  4031. _lifecycleHooks: LIFECYCLE_HOOKS
  4032. });
  4033. /* */
  4034. /**
  4035. * unicode letters used for parsing html tags, component names and property paths.
  4036. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  4037. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  4038. */
  4039. 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/;
  4040. /**
  4041. * Check if a string starts with $ or _
  4042. */
  4043. function isReserved (str) {
  4044. var c = (str + '').charCodeAt(0);
  4045. return c === 0x24 || c === 0x5F
  4046. }
  4047. /**
  4048. * Define a property.
  4049. */
  4050. function def (obj, key, val, enumerable) {
  4051. Object.defineProperty(obj, key, {
  4052. value: val,
  4053. enumerable: !!enumerable,
  4054. writable: true,
  4055. configurable: true
  4056. });
  4057. }
  4058. /**
  4059. * Parse simple path.
  4060. */
  4061. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  4062. function parsePath (path) {
  4063. if (bailRE.test(path)) {
  4064. return
  4065. }
  4066. var segments = path.split('.');
  4067. return function (obj) {
  4068. for (var i = 0; i < segments.length; i++) {
  4069. if (!obj) { return }
  4070. obj = obj[segments[i]];
  4071. }
  4072. return obj
  4073. }
  4074. }
  4075. /* */
  4076. // can we use __proto__?
  4077. var hasProto = '__proto__' in {};
  4078. // Browser environment sniffing
  4079. var inBrowser = typeof window !== 'undefined';
  4080. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  4081. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  4082. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  4083. var isIE = UA && /msie|trident/.test(UA);
  4084. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  4085. var isEdge = UA && UA.indexOf('edge/') > 0;
  4086. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  4087. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  4088. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  4089. var isPhantomJS = UA && /phantomjs/.test(UA);
  4090. var isFF = UA && UA.match(/firefox\/(\d+)/);
  4091. // Firefox has a "watch" function on Object.prototype...
  4092. var nativeWatch = ({}).watch;
  4093. if (inBrowser) {
  4094. try {
  4095. var opts = {};
  4096. Object.defineProperty(opts, 'passive', ({
  4097. get: function get () {
  4098. }
  4099. })); // https://github.com/facebook/flow/issues/285
  4100. window.addEventListener('test-passive', null, opts);
  4101. } catch (e) {}
  4102. }
  4103. // this needs to be lazy-evaled because vue may be required before
  4104. // vue-server-renderer can set VUE_ENV
  4105. var _isServer;
  4106. var isServerRendering = function () {
  4107. if (_isServer === undefined) {
  4108. /* istanbul ignore if */
  4109. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  4110. // detect presence of vue-server-renderer and avoid
  4111. // Webpack shimming the process
  4112. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  4113. } else {
  4114. _isServer = false;
  4115. }
  4116. }
  4117. return _isServer
  4118. };
  4119. // detect devtools
  4120. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  4121. /* istanbul ignore next */
  4122. function isNative (Ctor) {
  4123. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  4124. }
  4125. var hasSymbol =
  4126. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  4127. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  4128. var _Set;
  4129. /* istanbul ignore if */ // $flow-disable-line
  4130. if (typeof Set !== 'undefined' && isNative(Set)) {
  4131. // use native Set when available.
  4132. _Set = Set;
  4133. } else {
  4134. // a non-standard Set polyfill that only works with primitive keys.
  4135. _Set = /*@__PURE__*/(function () {
  4136. function Set () {
  4137. this.set = Object.create(null);
  4138. }
  4139. Set.prototype.has = function has (key) {
  4140. return this.set[key] === true
  4141. };
  4142. Set.prototype.add = function add (key) {
  4143. this.set[key] = true;
  4144. };
  4145. Set.prototype.clear = function clear () {
  4146. this.set = Object.create(null);
  4147. };
  4148. return Set;
  4149. }());
  4150. }
  4151. /* */
  4152. var warn = noop;
  4153. var tip = noop;
  4154. var generateComponentTrace = (noop); // work around flow check
  4155. var formatComponentName = (noop);
  4156. if (true) {
  4157. var hasConsole = typeof console !== 'undefined';
  4158. var classifyRE = /(?:^|[-_])(\w)/g;
  4159. var classify = function (str) { return str
  4160. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  4161. .replace(/[-_]/g, ''); };
  4162. warn = function (msg, vm) {
  4163. var trace = vm ? generateComponentTrace(vm) : '';
  4164. if (config.warnHandler) {
  4165. config.warnHandler.call(null, msg, vm, trace);
  4166. } else if (hasConsole && (!config.silent)) {
  4167. console.error(("[Vue warn]: " + msg + trace));
  4168. }
  4169. };
  4170. tip = function (msg, vm) {
  4171. if (hasConsole && (!config.silent)) {
  4172. console.warn("[Vue tip]: " + msg + (
  4173. vm ? generateComponentTrace(vm) : ''
  4174. ));
  4175. }
  4176. };
  4177. formatComponentName = function (vm, includeFile) {
  4178. if (vm.$root === vm) {
  4179. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  4180. return ('') + vm.$options.__file
  4181. }
  4182. return '<Root>'
  4183. }
  4184. var options = typeof vm === 'function' && vm.cid != null
  4185. ? vm.options
  4186. : vm._isVue
  4187. ? vm.$options || vm.constructor.options
  4188. : vm;
  4189. var name = options.name || options._componentTag;
  4190. var file = options.__file;
  4191. if (!name && file) {
  4192. var match = file.match(/([^/\\]+)\.vue$/);
  4193. name = match && match[1];
  4194. }
  4195. return (
  4196. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  4197. (file && includeFile !== false ? (" at " + file) : '')
  4198. )
  4199. };
  4200. var repeat = function (str, n) {
  4201. var res = '';
  4202. while (n) {
  4203. if (n % 2 === 1) { res += str; }
  4204. if (n > 1) { str += str; }
  4205. n >>= 1;
  4206. }
  4207. return res
  4208. };
  4209. generateComponentTrace = function (vm) {
  4210. if (vm._isVue && vm.$parent) {
  4211. var tree = [];
  4212. var currentRecursiveSequence = 0;
  4213. while (vm && vm.$options.name !== 'PageBody') {
  4214. if (tree.length > 0) {
  4215. var last = tree[tree.length - 1];
  4216. if (last.constructor === vm.constructor) {
  4217. currentRecursiveSequence++;
  4218. vm = vm.$parent;
  4219. continue
  4220. } else if (currentRecursiveSequence > 0) {
  4221. tree[tree.length - 1] = [last, currentRecursiveSequence];
  4222. currentRecursiveSequence = 0;
  4223. }
  4224. }
  4225. !vm.$options.isReserved && tree.push(vm);
  4226. vm = vm.$parent;
  4227. }
  4228. return '\n\nfound in\n\n' + tree
  4229. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  4230. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  4231. : formatComponentName(vm))); })
  4232. .join('\n')
  4233. } else {
  4234. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  4235. }
  4236. };
  4237. }
  4238. /* */
  4239. var uid = 0;
  4240. /**
  4241. * A dep is an observable that can have multiple
  4242. * directives subscribing to it.
  4243. */
  4244. var Dep = function Dep () {
  4245. this.id = uid++;
  4246. this.subs = [];
  4247. };
  4248. Dep.prototype.addSub = function addSub (sub) {
  4249. this.subs.push(sub);
  4250. };
  4251. Dep.prototype.removeSub = function removeSub (sub) {
  4252. remove(this.subs, sub);
  4253. };
  4254. Dep.prototype.depend = function depend () {
  4255. if (Dep.SharedObject.target) {
  4256. Dep.SharedObject.target.addDep(this);
  4257. }
  4258. };
  4259. Dep.prototype.notify = function notify () {
  4260. // stabilize the subscriber list first
  4261. var subs = this.subs.slice();
  4262. if ( true && !config.async) {
  4263. // subs aren't sorted in scheduler if not running async
  4264. // we need to sort them now to make sure they fire in correct
  4265. // order
  4266. subs.sort(function (a, b) { return a.id - b.id; });
  4267. }
  4268. for (var i = 0, l = subs.length; i < l; i++) {
  4269. subs[i].update();
  4270. }
  4271. };
  4272. // The current target watcher being evaluated.
  4273. // This is globally unique because only one watcher
  4274. // can be evaluated at a time.
  4275. // fixed by xxxxxx (nvue shared vuex)
  4276. /* eslint-disable no-undef */
  4277. Dep.SharedObject = {};
  4278. Dep.SharedObject.target = null;
  4279. Dep.SharedObject.targetStack = [];
  4280. function pushTarget (target) {
  4281. Dep.SharedObject.targetStack.push(target);
  4282. Dep.SharedObject.target = target;
  4283. Dep.target = target;
  4284. }
  4285. function popTarget () {
  4286. Dep.SharedObject.targetStack.pop();
  4287. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  4288. Dep.target = Dep.SharedObject.target;
  4289. }
  4290. /* */
  4291. var VNode = function VNode (
  4292. tag,
  4293. data,
  4294. children,
  4295. text,
  4296. elm,
  4297. context,
  4298. componentOptions,
  4299. asyncFactory
  4300. ) {
  4301. this.tag = tag;
  4302. this.data = data;
  4303. this.children = children;
  4304. this.text = text;
  4305. this.elm = elm;
  4306. this.ns = undefined;
  4307. this.context = context;
  4308. this.fnContext = undefined;
  4309. this.fnOptions = undefined;
  4310. this.fnScopeId = undefined;
  4311. this.key = data && data.key;
  4312. this.componentOptions = componentOptions;
  4313. this.componentInstance = undefined;
  4314. this.parent = undefined;
  4315. this.raw = false;
  4316. this.isStatic = false;
  4317. this.isRootInsert = true;
  4318. this.isComment = false;
  4319. this.isCloned = false;
  4320. this.isOnce = false;
  4321. this.asyncFactory = asyncFactory;
  4322. this.asyncMeta = undefined;
  4323. this.isAsyncPlaceholder = false;
  4324. };
  4325. var prototypeAccessors = { child: { configurable: true } };
  4326. // DEPRECATED: alias for componentInstance for backwards compat.
  4327. /* istanbul ignore next */
  4328. prototypeAccessors.child.get = function () {
  4329. return this.componentInstance
  4330. };
  4331. Object.defineProperties( VNode.prototype, prototypeAccessors );
  4332. var createEmptyVNode = function (text) {
  4333. if ( text === void 0 ) text = '';
  4334. var node = new VNode();
  4335. node.text = text;
  4336. node.isComment = true;
  4337. return node
  4338. };
  4339. function createTextVNode (val) {
  4340. return new VNode(undefined, undefined, undefined, String(val))
  4341. }
  4342. // optimized shallow clone
  4343. // used for static nodes and slot nodes because they may be reused across
  4344. // multiple renders, cloning them avoids errors when DOM manipulations rely
  4345. // on their elm reference.
  4346. function cloneVNode (vnode) {
  4347. var cloned = new VNode(
  4348. vnode.tag,
  4349. vnode.data,
  4350. // #7975
  4351. // clone children array to avoid mutating original in case of cloning
  4352. // a child.
  4353. vnode.children && vnode.children.slice(),
  4354. vnode.text,
  4355. vnode.elm,
  4356. vnode.context,
  4357. vnode.componentOptions,
  4358. vnode.asyncFactory
  4359. );
  4360. cloned.ns = vnode.ns;
  4361. cloned.isStatic = vnode.isStatic;
  4362. cloned.key = vnode.key;
  4363. cloned.isComment = vnode.isComment;
  4364. cloned.fnContext = vnode.fnContext;
  4365. cloned.fnOptions = vnode.fnOptions;
  4366. cloned.fnScopeId = vnode.fnScopeId;
  4367. cloned.asyncMeta = vnode.asyncMeta;
  4368. cloned.isCloned = true;
  4369. return cloned
  4370. }
  4371. /*
  4372. * not type checking this file because flow doesn't play well with
  4373. * dynamically accessing methods on Array prototype
  4374. */
  4375. var arrayProto = Array.prototype;
  4376. var arrayMethods = Object.create(arrayProto);
  4377. var methodsToPatch = [
  4378. 'push',
  4379. 'pop',
  4380. 'shift',
  4381. 'unshift',
  4382. 'splice',
  4383. 'sort',
  4384. 'reverse'
  4385. ];
  4386. /**
  4387. * Intercept mutating methods and emit events
  4388. */
  4389. methodsToPatch.forEach(function (method) {
  4390. // cache original method
  4391. var original = arrayProto[method];
  4392. def(arrayMethods, method, function mutator () {
  4393. var args = [], len = arguments.length;
  4394. while ( len-- ) args[ len ] = arguments[ len ];
  4395. var result = original.apply(this, args);
  4396. var ob = this.__ob__;
  4397. var inserted;
  4398. switch (method) {
  4399. case 'push':
  4400. case 'unshift':
  4401. inserted = args;
  4402. break
  4403. case 'splice':
  4404. inserted = args.slice(2);
  4405. break
  4406. }
  4407. if (inserted) { ob.observeArray(inserted); }
  4408. // notify change
  4409. ob.dep.notify();
  4410. return result
  4411. });
  4412. });
  4413. /* */
  4414. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  4415. /**
  4416. * In some cases we may want to disable observation inside a component's
  4417. * update computation.
  4418. */
  4419. var shouldObserve = true;
  4420. function toggleObserving (value) {
  4421. shouldObserve = value;
  4422. }
  4423. /**
  4424. * Observer class that is attached to each observed
  4425. * object. Once attached, the observer converts the target
  4426. * object's property keys into getter/setters that
  4427. * collect dependencies and dispatch updates.
  4428. */
  4429. var Observer = function Observer (value) {
  4430. this.value = value;
  4431. this.dep = new Dep();
  4432. this.vmCount = 0;
  4433. def(value, '__ob__', this);
  4434. if (Array.isArray(value)) {
  4435. if (hasProto) {
  4436. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  4437. if(value.push !== value.__proto__.push){
  4438. copyAugment(value, arrayMethods, arrayKeys);
  4439. } else {
  4440. protoAugment(value, arrayMethods);
  4441. }
  4442. }
  4443. } else {
  4444. copyAugment(value, arrayMethods, arrayKeys);
  4445. }
  4446. this.observeArray(value);
  4447. } else {
  4448. this.walk(value);
  4449. }
  4450. };
  4451. /**
  4452. * Walk through all properties and convert them into
  4453. * getter/setters. This method should only be called when
  4454. * value type is Object.
  4455. */
  4456. Observer.prototype.walk = function walk (obj) {
  4457. var keys = Object.keys(obj);
  4458. for (var i = 0; i < keys.length; i++) {
  4459. defineReactive$$1(obj, keys[i]);
  4460. }
  4461. };
  4462. /**
  4463. * Observe a list of Array items.
  4464. */
  4465. Observer.prototype.observeArray = function observeArray (items) {
  4466. for (var i = 0, l = items.length; i < l; i++) {
  4467. observe(items[i]);
  4468. }
  4469. };
  4470. // helpers
  4471. /**
  4472. * Augment a target Object or Array by intercepting
  4473. * the prototype chain using __proto__
  4474. */
  4475. function protoAugment (target, src) {
  4476. /* eslint-disable no-proto */
  4477. target.__proto__ = src;
  4478. /* eslint-enable no-proto */
  4479. }
  4480. /**
  4481. * Augment a target Object or Array by defining
  4482. * hidden properties.
  4483. */
  4484. /* istanbul ignore next */
  4485. function copyAugment (target, src, keys) {
  4486. for (var i = 0, l = keys.length; i < l; i++) {
  4487. var key = keys[i];
  4488. def(target, key, src[key]);
  4489. }
  4490. }
  4491. /**
  4492. * Attempt to create an observer instance for a value,
  4493. * returns the new observer if successfully observed,
  4494. * or the existing observer if the value already has one.
  4495. */
  4496. function observe (value, asRootData) {
  4497. if (!isObject(value) || value instanceof VNode) {
  4498. return
  4499. }
  4500. var ob;
  4501. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  4502. ob = value.__ob__;
  4503. } else if (
  4504. shouldObserve &&
  4505. !isServerRendering() &&
  4506. (Array.isArray(value) || isPlainObject(value)) &&
  4507. Object.isExtensible(value) &&
  4508. !value._isVue &&
  4509. !value.__v_isMPComponent
  4510. ) {
  4511. ob = new Observer(value);
  4512. }
  4513. if (asRootData && ob) {
  4514. ob.vmCount++;
  4515. }
  4516. return ob
  4517. }
  4518. /**
  4519. * Define a reactive property on an Object.
  4520. */
  4521. function defineReactive$$1 (
  4522. obj,
  4523. key,
  4524. val,
  4525. customSetter,
  4526. shallow
  4527. ) {
  4528. var dep = new Dep();
  4529. var property = Object.getOwnPropertyDescriptor(obj, key);
  4530. if (property && property.configurable === false) {
  4531. return
  4532. }
  4533. // cater for pre-defined getter/setters
  4534. var getter = property && property.get;
  4535. var setter = property && property.set;
  4536. if ((!getter || setter) && arguments.length === 2) {
  4537. val = obj[key];
  4538. }
  4539. var childOb = !shallow && observe(val);
  4540. Object.defineProperty(obj, key, {
  4541. enumerable: true,
  4542. configurable: true,
  4543. get: function reactiveGetter () {
  4544. var value = getter ? getter.call(obj) : val;
  4545. if (Dep.SharedObject.target) { // fixed by xxxxxx
  4546. dep.depend();
  4547. if (childOb) {
  4548. childOb.dep.depend();
  4549. if (Array.isArray(value)) {
  4550. dependArray(value);
  4551. }
  4552. }
  4553. }
  4554. return value
  4555. },
  4556. set: function reactiveSetter (newVal) {
  4557. var value = getter ? getter.call(obj) : val;
  4558. /* eslint-disable no-self-compare */
  4559. if (newVal === value || (newVal !== newVal && value !== value)) {
  4560. return
  4561. }
  4562. /* eslint-enable no-self-compare */
  4563. if ( true && customSetter) {
  4564. customSetter();
  4565. }
  4566. // #7981: for accessor properties without setter
  4567. if (getter && !setter) { return }
  4568. if (setter) {
  4569. setter.call(obj, newVal);
  4570. } else {
  4571. val = newVal;
  4572. }
  4573. childOb = !shallow && observe(newVal);
  4574. dep.notify();
  4575. }
  4576. });
  4577. }
  4578. /**
  4579. * Set a property on an object. Adds the new property and
  4580. * triggers change notification if the property doesn't
  4581. * already exist.
  4582. */
  4583. function set (target, key, val) {
  4584. if ( true &&
  4585. (isUndef(target) || isPrimitive(target))
  4586. ) {
  4587. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  4588. }
  4589. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4590. target.length = Math.max(target.length, key);
  4591. target.splice(key, 1, val);
  4592. return val
  4593. }
  4594. if (key in target && !(key in Object.prototype)) {
  4595. target[key] = val;
  4596. return val
  4597. }
  4598. var ob = (target).__ob__;
  4599. if (target._isVue || (ob && ob.vmCount)) {
  4600. true && warn(
  4601. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  4602. 'at runtime - declare it upfront in the data option.'
  4603. );
  4604. return val
  4605. }
  4606. if (!ob) {
  4607. target[key] = val;
  4608. return val
  4609. }
  4610. defineReactive$$1(ob.value, key, val);
  4611. ob.dep.notify();
  4612. return val
  4613. }
  4614. /**
  4615. * Delete a property and trigger change if necessary.
  4616. */
  4617. function del (target, key) {
  4618. if ( true &&
  4619. (isUndef(target) || isPrimitive(target))
  4620. ) {
  4621. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  4622. }
  4623. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4624. target.splice(key, 1);
  4625. return
  4626. }
  4627. var ob = (target).__ob__;
  4628. if (target._isVue || (ob && ob.vmCount)) {
  4629. true && warn(
  4630. 'Avoid deleting properties on a Vue instance or its root $data ' +
  4631. '- just set it to null.'
  4632. );
  4633. return
  4634. }
  4635. if (!hasOwn(target, key)) {
  4636. return
  4637. }
  4638. delete target[key];
  4639. if (!ob) {
  4640. return
  4641. }
  4642. ob.dep.notify();
  4643. }
  4644. /**
  4645. * Collect dependencies on array elements when the array is touched, since
  4646. * we cannot intercept array element access like property getters.
  4647. */
  4648. function dependArray (value) {
  4649. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  4650. e = value[i];
  4651. e && e.__ob__ && e.__ob__.dep.depend();
  4652. if (Array.isArray(e)) {
  4653. dependArray(e);
  4654. }
  4655. }
  4656. }
  4657. /* */
  4658. /**
  4659. * Option overwriting strategies are functions that handle
  4660. * how to merge a parent option value and a child option
  4661. * value into the final value.
  4662. */
  4663. var strats = config.optionMergeStrategies;
  4664. /**
  4665. * Options with restrictions
  4666. */
  4667. if (true) {
  4668. strats.el = strats.propsData = function (parent, child, vm, key) {
  4669. if (!vm) {
  4670. warn(
  4671. "option \"" + key + "\" can only be used during instance " +
  4672. 'creation with the `new` keyword.'
  4673. );
  4674. }
  4675. return defaultStrat(parent, child)
  4676. };
  4677. }
  4678. /**
  4679. * Helper that recursively merges two data objects together.
  4680. */
  4681. function mergeData (to, from) {
  4682. if (!from) { return to }
  4683. var key, toVal, fromVal;
  4684. var keys = hasSymbol
  4685. ? Reflect.ownKeys(from)
  4686. : Object.keys(from);
  4687. for (var i = 0; i < keys.length; i++) {
  4688. key = keys[i];
  4689. // in case the object is already observed...
  4690. if (key === '__ob__') { continue }
  4691. toVal = to[key];
  4692. fromVal = from[key];
  4693. if (!hasOwn(to, key)) {
  4694. set(to, key, fromVal);
  4695. } else if (
  4696. toVal !== fromVal &&
  4697. isPlainObject(toVal) &&
  4698. isPlainObject(fromVal)
  4699. ) {
  4700. mergeData(toVal, fromVal);
  4701. }
  4702. }
  4703. return to
  4704. }
  4705. /**
  4706. * Data
  4707. */
  4708. function mergeDataOrFn (
  4709. parentVal,
  4710. childVal,
  4711. vm
  4712. ) {
  4713. if (!vm) {
  4714. // in a Vue.extend merge, both should be functions
  4715. if (!childVal) {
  4716. return parentVal
  4717. }
  4718. if (!parentVal) {
  4719. return childVal
  4720. }
  4721. // when parentVal & childVal are both present,
  4722. // we need to return a function that returns the
  4723. // merged result of both functions... no need to
  4724. // check if parentVal is a function here because
  4725. // it has to be a function to pass previous merges.
  4726. return function mergedDataFn () {
  4727. return mergeData(
  4728. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  4729. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  4730. )
  4731. }
  4732. } else {
  4733. return function mergedInstanceDataFn () {
  4734. // instance merge
  4735. var instanceData = typeof childVal === 'function'
  4736. ? childVal.call(vm, vm)
  4737. : childVal;
  4738. var defaultData = typeof parentVal === 'function'
  4739. ? parentVal.call(vm, vm)
  4740. : parentVal;
  4741. if (instanceData) {
  4742. return mergeData(instanceData, defaultData)
  4743. } else {
  4744. return defaultData
  4745. }
  4746. }
  4747. }
  4748. }
  4749. strats.data = function (
  4750. parentVal,
  4751. childVal,
  4752. vm
  4753. ) {
  4754. if (!vm) {
  4755. if (childVal && typeof childVal !== 'function') {
  4756. true && warn(
  4757. 'The "data" option should be a function ' +
  4758. 'that returns a per-instance value in component ' +
  4759. 'definitions.',
  4760. vm
  4761. );
  4762. return parentVal
  4763. }
  4764. return mergeDataOrFn(parentVal, childVal)
  4765. }
  4766. return mergeDataOrFn(parentVal, childVal, vm)
  4767. };
  4768. /**
  4769. * Hooks and props are merged as arrays.
  4770. */
  4771. function mergeHook (
  4772. parentVal,
  4773. childVal
  4774. ) {
  4775. var res = childVal
  4776. ? parentVal
  4777. ? parentVal.concat(childVal)
  4778. : Array.isArray(childVal)
  4779. ? childVal
  4780. : [childVal]
  4781. : parentVal;
  4782. return res
  4783. ? dedupeHooks(res)
  4784. : res
  4785. }
  4786. function dedupeHooks (hooks) {
  4787. var res = [];
  4788. for (var i = 0; i < hooks.length; i++) {
  4789. if (res.indexOf(hooks[i]) === -1) {
  4790. res.push(hooks[i]);
  4791. }
  4792. }
  4793. return res
  4794. }
  4795. LIFECYCLE_HOOKS.forEach(function (hook) {
  4796. strats[hook] = mergeHook;
  4797. });
  4798. /**
  4799. * Assets
  4800. *
  4801. * When a vm is present (instance creation), we need to do
  4802. * a three-way merge between constructor options, instance
  4803. * options and parent options.
  4804. */
  4805. function mergeAssets (
  4806. parentVal,
  4807. childVal,
  4808. vm,
  4809. key
  4810. ) {
  4811. var res = Object.create(parentVal || null);
  4812. if (childVal) {
  4813. true && assertObjectType(key, childVal, vm);
  4814. return extend(res, childVal)
  4815. } else {
  4816. return res
  4817. }
  4818. }
  4819. ASSET_TYPES.forEach(function (type) {
  4820. strats[type + 's'] = mergeAssets;
  4821. });
  4822. /**
  4823. * Watchers.
  4824. *
  4825. * Watchers hashes should not overwrite one
  4826. * another, so we merge them as arrays.
  4827. */
  4828. strats.watch = function (
  4829. parentVal,
  4830. childVal,
  4831. vm,
  4832. key
  4833. ) {
  4834. // work around Firefox's Object.prototype.watch...
  4835. if (parentVal === nativeWatch) { parentVal = undefined; }
  4836. if (childVal === nativeWatch) { childVal = undefined; }
  4837. /* istanbul ignore if */
  4838. if (!childVal) { return Object.create(parentVal || null) }
  4839. if (true) {
  4840. assertObjectType(key, childVal, vm);
  4841. }
  4842. if (!parentVal) { return childVal }
  4843. var ret = {};
  4844. extend(ret, parentVal);
  4845. for (var key$1 in childVal) {
  4846. var parent = ret[key$1];
  4847. var child = childVal[key$1];
  4848. if (parent && !Array.isArray(parent)) {
  4849. parent = [parent];
  4850. }
  4851. ret[key$1] = parent
  4852. ? parent.concat(child)
  4853. : Array.isArray(child) ? child : [child];
  4854. }
  4855. return ret
  4856. };
  4857. /**
  4858. * Other object hashes.
  4859. */
  4860. strats.props =
  4861. strats.methods =
  4862. strats.inject =
  4863. strats.computed = function (
  4864. parentVal,
  4865. childVal,
  4866. vm,
  4867. key
  4868. ) {
  4869. if (childVal && "development" !== 'production') {
  4870. assertObjectType(key, childVal, vm);
  4871. }
  4872. if (!parentVal) { return childVal }
  4873. var ret = Object.create(null);
  4874. extend(ret, parentVal);
  4875. if (childVal) { extend(ret, childVal); }
  4876. return ret
  4877. };
  4878. strats.provide = mergeDataOrFn;
  4879. /**
  4880. * Default strategy.
  4881. */
  4882. var defaultStrat = function (parentVal, childVal) {
  4883. return childVal === undefined
  4884. ? parentVal
  4885. : childVal
  4886. };
  4887. /**
  4888. * Validate component names
  4889. */
  4890. function checkComponents (options) {
  4891. for (var key in options.components) {
  4892. validateComponentName(key);
  4893. }
  4894. }
  4895. function validateComponentName (name) {
  4896. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  4897. warn(
  4898. 'Invalid component name: "' + name + '". Component names ' +
  4899. 'should conform to valid custom element name in html5 specification.'
  4900. );
  4901. }
  4902. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  4903. warn(
  4904. 'Do not use built-in or reserved HTML elements as component ' +
  4905. 'id: ' + name
  4906. );
  4907. }
  4908. }
  4909. /**
  4910. * Ensure all props option syntax are normalized into the
  4911. * Object-based format.
  4912. */
  4913. function normalizeProps (options, vm) {
  4914. var props = options.props;
  4915. if (!props) { return }
  4916. var res = {};
  4917. var i, val, name;
  4918. if (Array.isArray(props)) {
  4919. i = props.length;
  4920. while (i--) {
  4921. val = props[i];
  4922. if (typeof val === 'string') {
  4923. name = camelize(val);
  4924. res[name] = { type: null };
  4925. } else if (true) {
  4926. warn('props must be strings when using array syntax.');
  4927. }
  4928. }
  4929. } else if (isPlainObject(props)) {
  4930. for (var key in props) {
  4931. val = props[key];
  4932. name = camelize(key);
  4933. res[name] = isPlainObject(val)
  4934. ? val
  4935. : { type: val };
  4936. }
  4937. } else if (true) {
  4938. warn(
  4939. "Invalid value for option \"props\": expected an Array or an Object, " +
  4940. "but got " + (toRawType(props)) + ".",
  4941. vm
  4942. );
  4943. }
  4944. options.props = res;
  4945. }
  4946. /**
  4947. * Normalize all injections into Object-based format
  4948. */
  4949. function normalizeInject (options, vm) {
  4950. var inject = options.inject;
  4951. if (!inject) { return }
  4952. var normalized = options.inject = {};
  4953. if (Array.isArray(inject)) {
  4954. for (var i = 0; i < inject.length; i++) {
  4955. normalized[inject[i]] = { from: inject[i] };
  4956. }
  4957. } else if (isPlainObject(inject)) {
  4958. for (var key in inject) {
  4959. var val = inject[key];
  4960. normalized[key] = isPlainObject(val)
  4961. ? extend({ from: key }, val)
  4962. : { from: val };
  4963. }
  4964. } else if (true) {
  4965. warn(
  4966. "Invalid value for option \"inject\": expected an Array or an Object, " +
  4967. "but got " + (toRawType(inject)) + ".",
  4968. vm
  4969. );
  4970. }
  4971. }
  4972. /**
  4973. * Normalize raw function directives into object format.
  4974. */
  4975. function normalizeDirectives (options) {
  4976. var dirs = options.directives;
  4977. if (dirs) {
  4978. for (var key in dirs) {
  4979. var def$$1 = dirs[key];
  4980. if (typeof def$$1 === 'function') {
  4981. dirs[key] = { bind: def$$1, update: def$$1 };
  4982. }
  4983. }
  4984. }
  4985. }
  4986. function assertObjectType (name, value, vm) {
  4987. if (!isPlainObject(value)) {
  4988. warn(
  4989. "Invalid value for option \"" + name + "\": expected an Object, " +
  4990. "but got " + (toRawType(value)) + ".",
  4991. vm
  4992. );
  4993. }
  4994. }
  4995. /**
  4996. * Merge two option objects into a new one.
  4997. * Core utility used in both instantiation and inheritance.
  4998. */
  4999. function mergeOptions (
  5000. parent,
  5001. child,
  5002. vm
  5003. ) {
  5004. if (true) {
  5005. checkComponents(child);
  5006. }
  5007. if (typeof child === 'function') {
  5008. child = child.options;
  5009. }
  5010. normalizeProps(child, vm);
  5011. normalizeInject(child, vm);
  5012. normalizeDirectives(child);
  5013. // Apply extends and mixins on the child options,
  5014. // but only if it is a raw options object that isn't
  5015. // the result of another mergeOptions call.
  5016. // Only merged options has the _base property.
  5017. if (!child._base) {
  5018. if (child.extends) {
  5019. parent = mergeOptions(parent, child.extends, vm);
  5020. }
  5021. if (child.mixins) {
  5022. for (var i = 0, l = child.mixins.length; i < l; i++) {
  5023. parent = mergeOptions(parent, child.mixins[i], vm);
  5024. }
  5025. }
  5026. }
  5027. var options = {};
  5028. var key;
  5029. for (key in parent) {
  5030. mergeField(key);
  5031. }
  5032. for (key in child) {
  5033. if (!hasOwn(parent, key)) {
  5034. mergeField(key);
  5035. }
  5036. }
  5037. function mergeField (key) {
  5038. var strat = strats[key] || defaultStrat;
  5039. options[key] = strat(parent[key], child[key], vm, key);
  5040. }
  5041. return options
  5042. }
  5043. /**
  5044. * Resolve an asset.
  5045. * This function is used because child instances need access
  5046. * to assets defined in its ancestor chain.
  5047. */
  5048. function resolveAsset (
  5049. options,
  5050. type,
  5051. id,
  5052. warnMissing
  5053. ) {
  5054. /* istanbul ignore if */
  5055. if (typeof id !== 'string') {
  5056. return
  5057. }
  5058. var assets = options[type];
  5059. // check local registration variations first
  5060. if (hasOwn(assets, id)) { return assets[id] }
  5061. var camelizedId = camelize(id);
  5062. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  5063. var PascalCaseId = capitalize(camelizedId);
  5064. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  5065. // fallback to prototype chain
  5066. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  5067. if ( true && warnMissing && !res) {
  5068. warn(
  5069. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  5070. options
  5071. );
  5072. }
  5073. return res
  5074. }
  5075. /* */
  5076. function validateProp (
  5077. key,
  5078. propOptions,
  5079. propsData,
  5080. vm
  5081. ) {
  5082. var prop = propOptions[key];
  5083. var absent = !hasOwn(propsData, key);
  5084. var value = propsData[key];
  5085. // boolean casting
  5086. var booleanIndex = getTypeIndex(Boolean, prop.type);
  5087. if (booleanIndex > -1) {
  5088. if (absent && !hasOwn(prop, 'default')) {
  5089. value = false;
  5090. } else if (value === '' || value === hyphenate(key)) {
  5091. // only cast empty string / same name to boolean if
  5092. // boolean has higher priority
  5093. var stringIndex = getTypeIndex(String, prop.type);
  5094. if (stringIndex < 0 || booleanIndex < stringIndex) {
  5095. value = true;
  5096. }
  5097. }
  5098. }
  5099. // check default value
  5100. if (value === undefined) {
  5101. value = getPropDefaultValue(vm, prop, key);
  5102. // since the default value is a fresh copy,
  5103. // make sure to observe it.
  5104. var prevShouldObserve = shouldObserve;
  5105. toggleObserving(true);
  5106. observe(value);
  5107. toggleObserving(prevShouldObserve);
  5108. }
  5109. if (
  5110. true
  5111. ) {
  5112. assertProp(prop, key, value, vm, absent);
  5113. }
  5114. return value
  5115. }
  5116. /**
  5117. * Get the default value of a prop.
  5118. */
  5119. function getPropDefaultValue (vm, prop, key) {
  5120. // no default, return undefined
  5121. if (!hasOwn(prop, 'default')) {
  5122. return undefined
  5123. }
  5124. var def = prop.default;
  5125. // warn against non-factory defaults for Object & Array
  5126. if ( true && isObject(def)) {
  5127. warn(
  5128. 'Invalid default value for prop "' + key + '": ' +
  5129. 'Props with type Object/Array must use a factory function ' +
  5130. 'to return the default value.',
  5131. vm
  5132. );
  5133. }
  5134. // the raw prop value was also undefined from previous render,
  5135. // return previous default value to avoid unnecessary watcher trigger
  5136. if (vm && vm.$options.propsData &&
  5137. vm.$options.propsData[key] === undefined &&
  5138. vm._props[key] !== undefined
  5139. ) {
  5140. return vm._props[key]
  5141. }
  5142. // call factory function for non-Function types
  5143. // a value is Function if its prototype is function even across different execution context
  5144. return typeof def === 'function' && getType(prop.type) !== 'Function'
  5145. ? def.call(vm)
  5146. : def
  5147. }
  5148. /**
  5149. * Assert whether a prop is valid.
  5150. */
  5151. function assertProp (
  5152. prop,
  5153. name,
  5154. value,
  5155. vm,
  5156. absent
  5157. ) {
  5158. if (prop.required && absent) {
  5159. warn(
  5160. 'Missing required prop: "' + name + '"',
  5161. vm
  5162. );
  5163. return
  5164. }
  5165. if (value == null && !prop.required) {
  5166. return
  5167. }
  5168. var type = prop.type;
  5169. var valid = !type || type === true;
  5170. var expectedTypes = [];
  5171. if (type) {
  5172. if (!Array.isArray(type)) {
  5173. type = [type];
  5174. }
  5175. for (var i = 0; i < type.length && !valid; i++) {
  5176. var assertedType = assertType(value, type[i]);
  5177. expectedTypes.push(assertedType.expectedType || '');
  5178. valid = assertedType.valid;
  5179. }
  5180. }
  5181. if (!valid) {
  5182. warn(
  5183. getInvalidTypeMessage(name, value, expectedTypes),
  5184. vm
  5185. );
  5186. return
  5187. }
  5188. var validator = prop.validator;
  5189. if (validator) {
  5190. if (!validator(value)) {
  5191. warn(
  5192. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  5193. vm
  5194. );
  5195. }
  5196. }
  5197. }
  5198. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  5199. function assertType (value, type) {
  5200. var valid;
  5201. var expectedType = getType(type);
  5202. if (simpleCheckRE.test(expectedType)) {
  5203. var t = typeof value;
  5204. valid = t === expectedType.toLowerCase();
  5205. // for primitive wrapper objects
  5206. if (!valid && t === 'object') {
  5207. valid = value instanceof type;
  5208. }
  5209. } else if (expectedType === 'Object') {
  5210. valid = isPlainObject(value);
  5211. } else if (expectedType === 'Array') {
  5212. valid = Array.isArray(value);
  5213. } else {
  5214. valid = value instanceof type;
  5215. }
  5216. return {
  5217. valid: valid,
  5218. expectedType: expectedType
  5219. }
  5220. }
  5221. /**
  5222. * Use function string name to check built-in types,
  5223. * because a simple equality check will fail when running
  5224. * across different vms / iframes.
  5225. */
  5226. function getType (fn) {
  5227. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  5228. return match ? match[1] : ''
  5229. }
  5230. function isSameType (a, b) {
  5231. return getType(a) === getType(b)
  5232. }
  5233. function getTypeIndex (type, expectedTypes) {
  5234. if (!Array.isArray(expectedTypes)) {
  5235. return isSameType(expectedTypes, type) ? 0 : -1
  5236. }
  5237. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  5238. if (isSameType(expectedTypes[i], type)) {
  5239. return i
  5240. }
  5241. }
  5242. return -1
  5243. }
  5244. function getInvalidTypeMessage (name, value, expectedTypes) {
  5245. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  5246. " Expected " + (expectedTypes.map(capitalize).join(', '));
  5247. var expectedType = expectedTypes[0];
  5248. var receivedType = toRawType(value);
  5249. var expectedValue = styleValue(value, expectedType);
  5250. var receivedValue = styleValue(value, receivedType);
  5251. // check if we need to specify expected value
  5252. if (expectedTypes.length === 1 &&
  5253. isExplicable(expectedType) &&
  5254. !isBoolean(expectedType, receivedType)) {
  5255. message += " with value " + expectedValue;
  5256. }
  5257. message += ", got " + receivedType + " ";
  5258. // check if we need to specify received value
  5259. if (isExplicable(receivedType)) {
  5260. message += "with value " + receivedValue + ".";
  5261. }
  5262. return message
  5263. }
  5264. function styleValue (value, type) {
  5265. if (type === 'String') {
  5266. return ("\"" + value + "\"")
  5267. } else if (type === 'Number') {
  5268. return ("" + (Number(value)))
  5269. } else {
  5270. return ("" + value)
  5271. }
  5272. }
  5273. function isExplicable (value) {
  5274. var explicitTypes = ['string', 'number', 'boolean'];
  5275. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  5276. }
  5277. function isBoolean () {
  5278. var args = [], len = arguments.length;
  5279. while ( len-- ) args[ len ] = arguments[ len ];
  5280. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  5281. }
  5282. /* */
  5283. function handleError (err, vm, info) {
  5284. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  5285. // See: https://github.com/vuejs/vuex/issues/1505
  5286. pushTarget();
  5287. try {
  5288. if (vm) {
  5289. var cur = vm;
  5290. while ((cur = cur.$parent)) {
  5291. var hooks = cur.$options.errorCaptured;
  5292. if (hooks) {
  5293. for (var i = 0; i < hooks.length; i++) {
  5294. try {
  5295. var capture = hooks[i].call(cur, err, vm, info) === false;
  5296. if (capture) { return }
  5297. } catch (e) {
  5298. globalHandleError(e, cur, 'errorCaptured hook');
  5299. }
  5300. }
  5301. }
  5302. }
  5303. }
  5304. globalHandleError(err, vm, info);
  5305. } finally {
  5306. popTarget();
  5307. }
  5308. }
  5309. function invokeWithErrorHandling (
  5310. handler,
  5311. context,
  5312. args,
  5313. vm,
  5314. info
  5315. ) {
  5316. var res;
  5317. try {
  5318. res = args ? handler.apply(context, args) : handler.call(context);
  5319. if (res && !res._isVue && isPromise(res) && !res._handled) {
  5320. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  5321. // issue #9511
  5322. // avoid catch triggering multiple times when nested calls
  5323. res._handled = true;
  5324. }
  5325. } catch (e) {
  5326. handleError(e, vm, info);
  5327. }
  5328. return res
  5329. }
  5330. function globalHandleError (err, vm, info) {
  5331. if (config.errorHandler) {
  5332. try {
  5333. return config.errorHandler.call(null, err, vm, info)
  5334. } catch (e) {
  5335. // if the user intentionally throws the original error in the handler,
  5336. // do not log it twice
  5337. if (e !== err) {
  5338. logError(e, null, 'config.errorHandler');
  5339. }
  5340. }
  5341. }
  5342. logError(err, vm, info);
  5343. }
  5344. function logError (err, vm, info) {
  5345. if (true) {
  5346. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  5347. }
  5348. /* istanbul ignore else */
  5349. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  5350. console.error(err);
  5351. } else {
  5352. throw err
  5353. }
  5354. }
  5355. /* */
  5356. var callbacks = [];
  5357. var pending = false;
  5358. function flushCallbacks () {
  5359. pending = false;
  5360. var copies = callbacks.slice(0);
  5361. callbacks.length = 0;
  5362. for (var i = 0; i < copies.length; i++) {
  5363. copies[i]();
  5364. }
  5365. }
  5366. // Here we have async deferring wrappers using microtasks.
  5367. // In 2.5 we used (macro) tasks (in combination with microtasks).
  5368. // However, it has subtle problems when state is changed right before repaint
  5369. // (e.g. #6813, out-in transitions).
  5370. // Also, using (macro) tasks in event handler would cause some weird behaviors
  5371. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  5372. // So we now use microtasks everywhere, again.
  5373. // A major drawback of this tradeoff is that there are some scenarios
  5374. // where microtasks have too high a priority and fire in between supposedly
  5375. // sequential events (e.g. #4521, #6690, which have workarounds)
  5376. // or even between bubbling of the same event (#6566).
  5377. var timerFunc;
  5378. // The nextTick behavior leverages the microtask queue, which can be accessed
  5379. // via either native Promise.then or MutationObserver.
  5380. // MutationObserver has wider support, however it is seriously bugged in
  5381. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  5382. // completely stops working after triggering a few times... so, if native
  5383. // Promise is available, we will use it:
  5384. /* istanbul ignore next, $flow-disable-line */
  5385. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  5386. var p = Promise.resolve();
  5387. timerFunc = function () {
  5388. p.then(flushCallbacks);
  5389. // In problematic UIWebViews, Promise.then doesn't completely break, but
  5390. // it can get stuck in a weird state where callbacks are pushed into the
  5391. // microtask queue but the queue isn't being flushed, until the browser
  5392. // needs to do some other work, e.g. handle a timer. Therefore we can
  5393. // "force" the microtask queue to be flushed by adding an empty timer.
  5394. if (isIOS) { setTimeout(noop); }
  5395. };
  5396. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  5397. isNative(MutationObserver) ||
  5398. // PhantomJS and iOS 7.x
  5399. MutationObserver.toString() === '[object MutationObserverConstructor]'
  5400. )) {
  5401. // Use MutationObserver where native Promise is not available,
  5402. // e.g. PhantomJS, iOS7, Android 4.4
  5403. // (#6466 MutationObserver is unreliable in IE11)
  5404. var counter = 1;
  5405. var observer = new MutationObserver(flushCallbacks);
  5406. var textNode = document.createTextNode(String(counter));
  5407. observer.observe(textNode, {
  5408. characterData: true
  5409. });
  5410. timerFunc = function () {
  5411. counter = (counter + 1) % 2;
  5412. textNode.data = String(counter);
  5413. };
  5414. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  5415. // Fallback to setImmediate.
  5416. // Technically it leverages the (macro) task queue,
  5417. // but it is still a better choice than setTimeout.
  5418. timerFunc = function () {
  5419. setImmediate(flushCallbacks);
  5420. };
  5421. } else {
  5422. // Fallback to setTimeout.
  5423. timerFunc = function () {
  5424. setTimeout(flushCallbacks, 0);
  5425. };
  5426. }
  5427. function nextTick (cb, ctx) {
  5428. var _resolve;
  5429. callbacks.push(function () {
  5430. if (cb) {
  5431. try {
  5432. cb.call(ctx);
  5433. } catch (e) {
  5434. handleError(e, ctx, 'nextTick');
  5435. }
  5436. } else if (_resolve) {
  5437. _resolve(ctx);
  5438. }
  5439. });
  5440. if (!pending) {
  5441. pending = true;
  5442. timerFunc();
  5443. }
  5444. // $flow-disable-line
  5445. if (!cb && typeof Promise !== 'undefined') {
  5446. return new Promise(function (resolve) {
  5447. _resolve = resolve;
  5448. })
  5449. }
  5450. }
  5451. /* */
  5452. /* not type checking this file because flow doesn't play well with Proxy */
  5453. var initProxy;
  5454. if (true) {
  5455. var allowedGlobals = makeMap(
  5456. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  5457. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  5458. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  5459. 'require' // for Webpack/Browserify
  5460. );
  5461. var warnNonPresent = function (target, key) {
  5462. warn(
  5463. "Property or method \"" + key + "\" is not defined on the instance but " +
  5464. 'referenced during render. Make sure that this property is reactive, ' +
  5465. 'either in the data option, or for class-based components, by ' +
  5466. 'initializing the property. ' +
  5467. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  5468. target
  5469. );
  5470. };
  5471. var warnReservedPrefix = function (target, key) {
  5472. warn(
  5473. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  5474. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  5475. 'prevent conflicts with Vue internals. ' +
  5476. 'See: https://vuejs.org/v2/api/#data',
  5477. target
  5478. );
  5479. };
  5480. var hasProxy =
  5481. typeof Proxy !== 'undefined' && isNative(Proxy);
  5482. if (hasProxy) {
  5483. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  5484. config.keyCodes = new Proxy(config.keyCodes, {
  5485. set: function set (target, key, value) {
  5486. if (isBuiltInModifier(key)) {
  5487. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  5488. return false
  5489. } else {
  5490. target[key] = value;
  5491. return true
  5492. }
  5493. }
  5494. });
  5495. }
  5496. var hasHandler = {
  5497. has: function has (target, key) {
  5498. var has = key in target;
  5499. var isAllowed = allowedGlobals(key) ||
  5500. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  5501. if (!has && !isAllowed) {
  5502. if (key in target.$data) { warnReservedPrefix(target, key); }
  5503. else { warnNonPresent(target, key); }
  5504. }
  5505. return has || !isAllowed
  5506. }
  5507. };
  5508. var getHandler = {
  5509. get: function get (target, key) {
  5510. if (typeof key === 'string' && !(key in target)) {
  5511. if (key in target.$data) { warnReservedPrefix(target, key); }
  5512. else { warnNonPresent(target, key); }
  5513. }
  5514. return target[key]
  5515. }
  5516. };
  5517. initProxy = function initProxy (vm) {
  5518. if (hasProxy) {
  5519. // determine which proxy handler to use
  5520. var options = vm.$options;
  5521. var handlers = options.render && options.render._withStripped
  5522. ? getHandler
  5523. : hasHandler;
  5524. vm._renderProxy = new Proxy(vm, handlers);
  5525. } else {
  5526. vm._renderProxy = vm;
  5527. }
  5528. };
  5529. }
  5530. /* */
  5531. var seenObjects = new _Set();
  5532. /**
  5533. * Recursively traverse an object to evoke all converted
  5534. * getters, so that every nested property inside the object
  5535. * is collected as a "deep" dependency.
  5536. */
  5537. function traverse (val) {
  5538. _traverse(val, seenObjects);
  5539. seenObjects.clear();
  5540. }
  5541. function _traverse (val, seen) {
  5542. var i, keys;
  5543. var isA = Array.isArray(val);
  5544. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  5545. return
  5546. }
  5547. if (val.__ob__) {
  5548. var depId = val.__ob__.dep.id;
  5549. if (seen.has(depId)) {
  5550. return
  5551. }
  5552. seen.add(depId);
  5553. }
  5554. if (isA) {
  5555. i = val.length;
  5556. while (i--) { _traverse(val[i], seen); }
  5557. } else {
  5558. keys = Object.keys(val);
  5559. i = keys.length;
  5560. while (i--) { _traverse(val[keys[i]], seen); }
  5561. }
  5562. }
  5563. var mark;
  5564. var measure;
  5565. if (true) {
  5566. var perf = inBrowser && window.performance;
  5567. /* istanbul ignore if */
  5568. if (
  5569. perf &&
  5570. perf.mark &&
  5571. perf.measure &&
  5572. perf.clearMarks &&
  5573. perf.clearMeasures
  5574. ) {
  5575. mark = function (tag) { return perf.mark(tag); };
  5576. measure = function (name, startTag, endTag) {
  5577. perf.measure(name, startTag, endTag);
  5578. perf.clearMarks(startTag);
  5579. perf.clearMarks(endTag);
  5580. // perf.clearMeasures(name)
  5581. };
  5582. }
  5583. }
  5584. /* */
  5585. var normalizeEvent = cached(function (name) {
  5586. var passive = name.charAt(0) === '&';
  5587. name = passive ? name.slice(1) : name;
  5588. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  5589. name = once$$1 ? name.slice(1) : name;
  5590. var capture = name.charAt(0) === '!';
  5591. name = capture ? name.slice(1) : name;
  5592. return {
  5593. name: name,
  5594. once: once$$1,
  5595. capture: capture,
  5596. passive: passive
  5597. }
  5598. });
  5599. function createFnInvoker (fns, vm) {
  5600. function invoker () {
  5601. var arguments$1 = arguments;
  5602. var fns = invoker.fns;
  5603. if (Array.isArray(fns)) {
  5604. var cloned = fns.slice();
  5605. for (var i = 0; i < cloned.length; i++) {
  5606. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  5607. }
  5608. } else {
  5609. // return handler return value for single handlers
  5610. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  5611. }
  5612. }
  5613. invoker.fns = fns;
  5614. return invoker
  5615. }
  5616. function updateListeners (
  5617. on,
  5618. oldOn,
  5619. add,
  5620. remove$$1,
  5621. createOnceHandler,
  5622. vm
  5623. ) {
  5624. var name, def$$1, cur, old, event;
  5625. for (name in on) {
  5626. def$$1 = cur = on[name];
  5627. old = oldOn[name];
  5628. event = normalizeEvent(name);
  5629. if (isUndef(cur)) {
  5630. true && warn(
  5631. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  5632. vm
  5633. );
  5634. } else if (isUndef(old)) {
  5635. if (isUndef(cur.fns)) {
  5636. cur = on[name] = createFnInvoker(cur, vm);
  5637. }
  5638. if (isTrue(event.once)) {
  5639. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  5640. }
  5641. add(event.name, cur, event.capture, event.passive, event.params);
  5642. } else if (cur !== old) {
  5643. old.fns = cur;
  5644. on[name] = old;
  5645. }
  5646. }
  5647. for (name in oldOn) {
  5648. if (isUndef(on[name])) {
  5649. event = normalizeEvent(name);
  5650. remove$$1(event.name, oldOn[name], event.capture);
  5651. }
  5652. }
  5653. }
  5654. /* */
  5655. /* */
  5656. // fixed by xxxxxx (mp properties)
  5657. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  5658. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  5659. if (isUndef(propOptions)) {
  5660. return res
  5661. }
  5662. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  5663. var attrs = data.attrs;
  5664. var props = data.props;
  5665. if (isDef(attrs) || isDef(props)) {
  5666. for (var key in propOptions) {
  5667. var altKey = hyphenate(key);
  5668. var result = checkProp(res, props, key, altKey, true) ||
  5669. checkProp(res, attrs, key, altKey, false);
  5670. // externalClass
  5671. if (
  5672. result &&
  5673. res[key] &&
  5674. externalClasses.indexOf(altKey) !== -1 &&
  5675. context[camelize(res[key])]
  5676. ) {
  5677. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  5678. res[key] = context[camelize(res[key])];
  5679. }
  5680. }
  5681. }
  5682. return res
  5683. }
  5684. function extractPropsFromVNodeData (
  5685. data,
  5686. Ctor,
  5687. tag,
  5688. context// fixed by xxxxxx
  5689. ) {
  5690. // we are only extracting raw values here.
  5691. // validation and default values are handled in the child
  5692. // component itself.
  5693. var propOptions = Ctor.options.props;
  5694. if (isUndef(propOptions)) {
  5695. // fixed by xxxxxx
  5696. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  5697. }
  5698. var res = {};
  5699. var attrs = data.attrs;
  5700. var props = data.props;
  5701. if (isDef(attrs) || isDef(props)) {
  5702. for (var key in propOptions) {
  5703. var altKey = hyphenate(key);
  5704. if (true) {
  5705. var keyInLowerCase = key.toLowerCase();
  5706. if (
  5707. key !== keyInLowerCase &&
  5708. attrs && hasOwn(attrs, keyInLowerCase)
  5709. ) {
  5710. tip(
  5711. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  5712. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  5713. " \"" + key + "\". " +
  5714. "Note that HTML attributes are case-insensitive and camelCased " +
  5715. "props need to use their kebab-case equivalents when using in-DOM " +
  5716. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  5717. );
  5718. }
  5719. }
  5720. checkProp(res, props, key, altKey, true) ||
  5721. checkProp(res, attrs, key, altKey, false);
  5722. }
  5723. }
  5724. // fixed by xxxxxx
  5725. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  5726. }
  5727. function checkProp (
  5728. res,
  5729. hash,
  5730. key,
  5731. altKey,
  5732. preserve
  5733. ) {
  5734. if (isDef(hash)) {
  5735. if (hasOwn(hash, key)) {
  5736. res[key] = hash[key];
  5737. if (!preserve) {
  5738. delete hash[key];
  5739. }
  5740. return true
  5741. } else if (hasOwn(hash, altKey)) {
  5742. res[key] = hash[altKey];
  5743. if (!preserve) {
  5744. delete hash[altKey];
  5745. }
  5746. return true
  5747. }
  5748. }
  5749. return false
  5750. }
  5751. /* */
  5752. // The template compiler attempts to minimize the need for normalization by
  5753. // statically analyzing the template at compile time.
  5754. //
  5755. // For plain HTML markup, normalization can be completely skipped because the
  5756. // generated render function is guaranteed to return Array<VNode>. There are
  5757. // two cases where extra normalization is needed:
  5758. // 1. When the children contains components - because a functional component
  5759. // may return an Array instead of a single root. In this case, just a simple
  5760. // normalization is needed - if any child is an Array, we flatten the whole
  5761. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  5762. // because functional components already normalize their own children.
  5763. function simpleNormalizeChildren (children) {
  5764. for (var i = 0; i < children.length; i++) {
  5765. if (Array.isArray(children[i])) {
  5766. return Array.prototype.concat.apply([], children)
  5767. }
  5768. }
  5769. return children
  5770. }
  5771. // 2. When the children contains constructs that always generated nested Arrays,
  5772. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  5773. // with hand-written render functions / JSX. In such cases a full normalization
  5774. // is needed to cater to all possible types of children values.
  5775. function normalizeChildren (children) {
  5776. return isPrimitive(children)
  5777. ? [createTextVNode(children)]
  5778. : Array.isArray(children)
  5779. ? normalizeArrayChildren(children)
  5780. : undefined
  5781. }
  5782. function isTextNode (node) {
  5783. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  5784. }
  5785. function normalizeArrayChildren (children, nestedIndex) {
  5786. var res = [];
  5787. var i, c, lastIndex, last;
  5788. for (i = 0; i < children.length; i++) {
  5789. c = children[i];
  5790. if (isUndef(c) || typeof c === 'boolean') { continue }
  5791. lastIndex = res.length - 1;
  5792. last = res[lastIndex];
  5793. // nested
  5794. if (Array.isArray(c)) {
  5795. if (c.length > 0) {
  5796. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  5797. // merge adjacent text nodes
  5798. if (isTextNode(c[0]) && isTextNode(last)) {
  5799. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  5800. c.shift();
  5801. }
  5802. res.push.apply(res, c);
  5803. }
  5804. } else if (isPrimitive(c)) {
  5805. if (isTextNode(last)) {
  5806. // merge adjacent text nodes
  5807. // this is necessary for SSR hydration because text nodes are
  5808. // essentially merged when rendered to HTML strings
  5809. res[lastIndex] = createTextVNode(last.text + c);
  5810. } else if (c !== '') {
  5811. // convert primitive to vnode
  5812. res.push(createTextVNode(c));
  5813. }
  5814. } else {
  5815. if (isTextNode(c) && isTextNode(last)) {
  5816. // merge adjacent text nodes
  5817. res[lastIndex] = createTextVNode(last.text + c.text);
  5818. } else {
  5819. // default key for nested array children (likely generated by v-for)
  5820. if (isTrue(children._isVList) &&
  5821. isDef(c.tag) &&
  5822. isUndef(c.key) &&
  5823. isDef(nestedIndex)) {
  5824. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  5825. }
  5826. res.push(c);
  5827. }
  5828. }
  5829. }
  5830. return res
  5831. }
  5832. /* */
  5833. function initProvide (vm) {
  5834. var provide = vm.$options.provide;
  5835. if (provide) {
  5836. vm._provided = typeof provide === 'function'
  5837. ? provide.call(vm)
  5838. : provide;
  5839. }
  5840. }
  5841. function initInjections (vm) {
  5842. var result = resolveInject(vm.$options.inject, vm);
  5843. if (result) {
  5844. toggleObserving(false);
  5845. Object.keys(result).forEach(function (key) {
  5846. /* istanbul ignore else */
  5847. if (true) {
  5848. defineReactive$$1(vm, key, result[key], function () {
  5849. warn(
  5850. "Avoid mutating an injected value directly since the changes will be " +
  5851. "overwritten whenever the provided component re-renders. " +
  5852. "injection being mutated: \"" + key + "\"",
  5853. vm
  5854. );
  5855. });
  5856. } else {}
  5857. });
  5858. toggleObserving(true);
  5859. }
  5860. }
  5861. function resolveInject (inject, vm) {
  5862. if (inject) {
  5863. // inject is :any because flow is not smart enough to figure out cached
  5864. var result = Object.create(null);
  5865. var keys = hasSymbol
  5866. ? Reflect.ownKeys(inject)
  5867. : Object.keys(inject);
  5868. for (var i = 0; i < keys.length; i++) {
  5869. var key = keys[i];
  5870. // #6574 in case the inject object is observed...
  5871. if (key === '__ob__') { continue }
  5872. var provideKey = inject[key].from;
  5873. var source = vm;
  5874. while (source) {
  5875. if (source._provided && hasOwn(source._provided, provideKey)) {
  5876. result[key] = source._provided[provideKey];
  5877. break
  5878. }
  5879. source = source.$parent;
  5880. }
  5881. if (!source) {
  5882. if ('default' in inject[key]) {
  5883. var provideDefault = inject[key].default;
  5884. result[key] = typeof provideDefault === 'function'
  5885. ? provideDefault.call(vm)
  5886. : provideDefault;
  5887. } else if (true) {
  5888. warn(("Injection \"" + key + "\" not found"), vm);
  5889. }
  5890. }
  5891. }
  5892. return result
  5893. }
  5894. }
  5895. /* */
  5896. /**
  5897. * Runtime helper for resolving raw children VNodes into a slot object.
  5898. */
  5899. function resolveSlots (
  5900. children,
  5901. context
  5902. ) {
  5903. if (!children || !children.length) {
  5904. return {}
  5905. }
  5906. var slots = {};
  5907. for (var i = 0, l = children.length; i < l; i++) {
  5908. var child = children[i];
  5909. var data = child.data;
  5910. // remove slot attribute if the node is resolved as a Vue slot node
  5911. if (data && data.attrs && data.attrs.slot) {
  5912. delete data.attrs.slot;
  5913. }
  5914. // named slots should only be respected if the vnode was rendered in the
  5915. // same context.
  5916. if ((child.context === context || child.fnContext === context) &&
  5917. data && data.slot != null
  5918. ) {
  5919. var name = data.slot;
  5920. var slot = (slots[name] || (slots[name] = []));
  5921. if (child.tag === 'template') {
  5922. slot.push.apply(slot, child.children || []);
  5923. } else {
  5924. slot.push(child);
  5925. }
  5926. } else {
  5927. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  5928. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  5929. (slots['page'] || (slots['page'] = [])).push(child);
  5930. }else{
  5931. (slots.default || (slots.default = [])).push(child);
  5932. }
  5933. }
  5934. }
  5935. // ignore slots that contains only whitespace
  5936. for (var name$1 in slots) {
  5937. if (slots[name$1].every(isWhitespace)) {
  5938. delete slots[name$1];
  5939. }
  5940. }
  5941. return slots
  5942. }
  5943. function isWhitespace (node) {
  5944. return (node.isComment && !node.asyncFactory) || node.text === ' '
  5945. }
  5946. /* */
  5947. function normalizeScopedSlots (
  5948. slots,
  5949. normalSlots,
  5950. prevSlots
  5951. ) {
  5952. var res;
  5953. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  5954. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  5955. var key = slots && slots.$key;
  5956. if (!slots) {
  5957. res = {};
  5958. } else if (slots._normalized) {
  5959. // fast path 1: child component re-render only, parent did not change
  5960. return slots._normalized
  5961. } else if (
  5962. isStable &&
  5963. prevSlots &&
  5964. prevSlots !== emptyObject &&
  5965. key === prevSlots.$key &&
  5966. !hasNormalSlots &&
  5967. !prevSlots.$hasNormal
  5968. ) {
  5969. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  5970. // only need to normalize once
  5971. return prevSlots
  5972. } else {
  5973. res = {};
  5974. for (var key$1 in slots) {
  5975. if (slots[key$1] && key$1[0] !== '$') {
  5976. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  5977. }
  5978. }
  5979. }
  5980. // expose normal slots on scopedSlots
  5981. for (var key$2 in normalSlots) {
  5982. if (!(key$2 in res)) {
  5983. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  5984. }
  5985. }
  5986. // avoriaz seems to mock a non-extensible $scopedSlots object
  5987. // and when that is passed down this would cause an error
  5988. if (slots && Object.isExtensible(slots)) {
  5989. (slots)._normalized = res;
  5990. }
  5991. def(res, '$stable', isStable);
  5992. def(res, '$key', key);
  5993. def(res, '$hasNormal', hasNormalSlots);
  5994. return res
  5995. }
  5996. function normalizeScopedSlot(normalSlots, key, fn) {
  5997. var normalized = function () {
  5998. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  5999. res = res && typeof res === 'object' && !Array.isArray(res)
  6000. ? [res] // single vnode
  6001. : normalizeChildren(res);
  6002. return res && (
  6003. res.length === 0 ||
  6004. (res.length === 1 && res[0].isComment) // #9658
  6005. ) ? undefined
  6006. : res
  6007. };
  6008. // this is a slot using the new v-slot syntax without scope. although it is
  6009. // compiled as a scoped slot, render fn users would expect it to be present
  6010. // on this.$slots because the usage is semantically a normal slot.
  6011. if (fn.proxy) {
  6012. Object.defineProperty(normalSlots, key, {
  6013. get: normalized,
  6014. enumerable: true,
  6015. configurable: true
  6016. });
  6017. }
  6018. return normalized
  6019. }
  6020. function proxyNormalSlot(slots, key) {
  6021. return function () { return slots[key]; }
  6022. }
  6023. /* */
  6024. /**
  6025. * Runtime helper for rendering v-for lists.
  6026. */
  6027. function renderList (
  6028. val,
  6029. render
  6030. ) {
  6031. var ret, i, l, keys, key;
  6032. if (Array.isArray(val) || typeof val === 'string') {
  6033. ret = new Array(val.length);
  6034. for (i = 0, l = val.length; i < l; i++) {
  6035. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  6036. }
  6037. } else if (typeof val === 'number') {
  6038. ret = new Array(val);
  6039. for (i = 0; i < val; i++) {
  6040. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  6041. }
  6042. } else if (isObject(val)) {
  6043. if (hasSymbol && val[Symbol.iterator]) {
  6044. ret = [];
  6045. var iterator = val[Symbol.iterator]();
  6046. var result = iterator.next();
  6047. while (!result.done) {
  6048. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  6049. result = iterator.next();
  6050. }
  6051. } else {
  6052. keys = Object.keys(val);
  6053. ret = new Array(keys.length);
  6054. for (i = 0, l = keys.length; i < l; i++) {
  6055. key = keys[i];
  6056. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  6057. }
  6058. }
  6059. }
  6060. if (!isDef(ret)) {
  6061. ret = [];
  6062. }
  6063. (ret)._isVList = true;
  6064. return ret
  6065. }
  6066. /* */
  6067. /**
  6068. * Runtime helper for rendering <slot>
  6069. */
  6070. function renderSlot (
  6071. name,
  6072. fallback,
  6073. props,
  6074. bindObject
  6075. ) {
  6076. var scopedSlotFn = this.$scopedSlots[name];
  6077. var nodes;
  6078. if (scopedSlotFn) { // scoped slot
  6079. props = props || {};
  6080. if (bindObject) {
  6081. if ( true && !isObject(bindObject)) {
  6082. warn(
  6083. 'slot v-bind without argument expects an Object',
  6084. this
  6085. );
  6086. }
  6087. props = extend(extend({}, bindObject), props);
  6088. }
  6089. // fixed by xxxxxx app-plus scopedSlot
  6090. nodes = scopedSlotFn(props, this, props._i) || fallback;
  6091. } else {
  6092. nodes = this.$slots[name] || fallback;
  6093. }
  6094. var target = props && props.slot;
  6095. if (target) {
  6096. return this.$createElement('template', { slot: target }, nodes)
  6097. } else {
  6098. return nodes
  6099. }
  6100. }
  6101. /* */
  6102. /**
  6103. * Runtime helper for resolving filters
  6104. */
  6105. function resolveFilter (id) {
  6106. return resolveAsset(this.$options, 'filters', id, true) || identity
  6107. }
  6108. /* */
  6109. function isKeyNotMatch (expect, actual) {
  6110. if (Array.isArray(expect)) {
  6111. return expect.indexOf(actual) === -1
  6112. } else {
  6113. return expect !== actual
  6114. }
  6115. }
  6116. /**
  6117. * Runtime helper for checking keyCodes from config.
  6118. * exposed as Vue.prototype._k
  6119. * passing in eventKeyName as last argument separately for backwards compat
  6120. */
  6121. function checkKeyCodes (
  6122. eventKeyCode,
  6123. key,
  6124. builtInKeyCode,
  6125. eventKeyName,
  6126. builtInKeyName
  6127. ) {
  6128. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  6129. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  6130. return isKeyNotMatch(builtInKeyName, eventKeyName)
  6131. } else if (mappedKeyCode) {
  6132. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  6133. } else if (eventKeyName) {
  6134. return hyphenate(eventKeyName) !== key
  6135. }
  6136. }
  6137. /* */
  6138. /**
  6139. * Runtime helper for merging v-bind="object" into a VNode's data.
  6140. */
  6141. function bindObjectProps (
  6142. data,
  6143. tag,
  6144. value,
  6145. asProp,
  6146. isSync
  6147. ) {
  6148. if (value) {
  6149. if (!isObject(value)) {
  6150. true && warn(
  6151. 'v-bind without argument expects an Object or Array value',
  6152. this
  6153. );
  6154. } else {
  6155. if (Array.isArray(value)) {
  6156. value = toObject(value);
  6157. }
  6158. var hash;
  6159. var loop = function ( key ) {
  6160. if (
  6161. key === 'class' ||
  6162. key === 'style' ||
  6163. isReservedAttribute(key)
  6164. ) {
  6165. hash = data;
  6166. } else {
  6167. var type = data.attrs && data.attrs.type;
  6168. hash = asProp || config.mustUseProp(tag, type, key)
  6169. ? data.domProps || (data.domProps = {})
  6170. : data.attrs || (data.attrs = {});
  6171. }
  6172. var camelizedKey = camelize(key);
  6173. var hyphenatedKey = hyphenate(key);
  6174. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  6175. hash[key] = value[key];
  6176. if (isSync) {
  6177. var on = data.on || (data.on = {});
  6178. on[("update:" + key)] = function ($event) {
  6179. value[key] = $event;
  6180. };
  6181. }
  6182. }
  6183. };
  6184. for (var key in value) loop( key );
  6185. }
  6186. }
  6187. return data
  6188. }
  6189. /* */
  6190. /**
  6191. * Runtime helper for rendering static trees.
  6192. */
  6193. function renderStatic (
  6194. index,
  6195. isInFor
  6196. ) {
  6197. var cached = this._staticTrees || (this._staticTrees = []);
  6198. var tree = cached[index];
  6199. // if has already-rendered static tree and not inside v-for,
  6200. // we can reuse the same tree.
  6201. if (tree && !isInFor) {
  6202. return tree
  6203. }
  6204. // otherwise, render a fresh tree.
  6205. tree = cached[index] = this.$options.staticRenderFns[index].call(
  6206. this._renderProxy,
  6207. null,
  6208. this // for render fns generated for functional component templates
  6209. );
  6210. markStatic(tree, ("__static__" + index), false);
  6211. return tree
  6212. }
  6213. /**
  6214. * Runtime helper for v-once.
  6215. * Effectively it means marking the node as static with a unique key.
  6216. */
  6217. function markOnce (
  6218. tree,
  6219. index,
  6220. key
  6221. ) {
  6222. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  6223. return tree
  6224. }
  6225. function markStatic (
  6226. tree,
  6227. key,
  6228. isOnce
  6229. ) {
  6230. if (Array.isArray(tree)) {
  6231. for (var i = 0; i < tree.length; i++) {
  6232. if (tree[i] && typeof tree[i] !== 'string') {
  6233. markStaticNode(tree[i], (key + "_" + i), isOnce);
  6234. }
  6235. }
  6236. } else {
  6237. markStaticNode(tree, key, isOnce);
  6238. }
  6239. }
  6240. function markStaticNode (node, key, isOnce) {
  6241. node.isStatic = true;
  6242. node.key = key;
  6243. node.isOnce = isOnce;
  6244. }
  6245. /* */
  6246. function bindObjectListeners (data, value) {
  6247. if (value) {
  6248. if (!isPlainObject(value)) {
  6249. true && warn(
  6250. 'v-on without argument expects an Object value',
  6251. this
  6252. );
  6253. } else {
  6254. var on = data.on = data.on ? extend({}, data.on) : {};
  6255. for (var key in value) {
  6256. var existing = on[key];
  6257. var ours = value[key];
  6258. on[key] = existing ? [].concat(existing, ours) : ours;
  6259. }
  6260. }
  6261. }
  6262. return data
  6263. }
  6264. /* */
  6265. function resolveScopedSlots (
  6266. fns, // see flow/vnode
  6267. res,
  6268. // the following are added in 2.6
  6269. hasDynamicKeys,
  6270. contentHashKey
  6271. ) {
  6272. res = res || { $stable: !hasDynamicKeys };
  6273. for (var i = 0; i < fns.length; i++) {
  6274. var slot = fns[i];
  6275. if (Array.isArray(slot)) {
  6276. resolveScopedSlots(slot, res, hasDynamicKeys);
  6277. } else if (slot) {
  6278. // marker for reverse proxying v-slot without scope on this.$slots
  6279. if (slot.proxy) {
  6280. slot.fn.proxy = true;
  6281. }
  6282. res[slot.key] = slot.fn;
  6283. }
  6284. }
  6285. if (contentHashKey) {
  6286. (res).$key = contentHashKey;
  6287. }
  6288. return res
  6289. }
  6290. /* */
  6291. function bindDynamicKeys (baseObj, values) {
  6292. for (var i = 0; i < values.length; i += 2) {
  6293. var key = values[i];
  6294. if (typeof key === 'string' && key) {
  6295. baseObj[values[i]] = values[i + 1];
  6296. } else if ( true && key !== '' && key !== null) {
  6297. // null is a special value for explicitly removing a binding
  6298. warn(
  6299. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  6300. this
  6301. );
  6302. }
  6303. }
  6304. return baseObj
  6305. }
  6306. // helper to dynamically append modifier runtime markers to event names.
  6307. // ensure only append when value is already string, otherwise it will be cast
  6308. // to string and cause the type check to miss.
  6309. function prependModifier (value, symbol) {
  6310. return typeof value === 'string' ? symbol + value : value
  6311. }
  6312. /* */
  6313. function installRenderHelpers (target) {
  6314. target._o = markOnce;
  6315. target._n = toNumber;
  6316. target._s = toString;
  6317. target._l = renderList;
  6318. target._t = renderSlot;
  6319. target._q = looseEqual;
  6320. target._i = looseIndexOf;
  6321. target._m = renderStatic;
  6322. target._f = resolveFilter;
  6323. target._k = checkKeyCodes;
  6324. target._b = bindObjectProps;
  6325. target._v = createTextVNode;
  6326. target._e = createEmptyVNode;
  6327. target._u = resolveScopedSlots;
  6328. target._g = bindObjectListeners;
  6329. target._d = bindDynamicKeys;
  6330. target._p = prependModifier;
  6331. }
  6332. /* */
  6333. function FunctionalRenderContext (
  6334. data,
  6335. props,
  6336. children,
  6337. parent,
  6338. Ctor
  6339. ) {
  6340. var this$1 = this;
  6341. var options = Ctor.options;
  6342. // ensure the createElement function in functional components
  6343. // gets a unique context - this is necessary for correct named slot check
  6344. var contextVm;
  6345. if (hasOwn(parent, '_uid')) {
  6346. contextVm = Object.create(parent);
  6347. // $flow-disable-line
  6348. contextVm._original = parent;
  6349. } else {
  6350. // the context vm passed in is a functional context as well.
  6351. // in this case we want to make sure we are able to get a hold to the
  6352. // real context instance.
  6353. contextVm = parent;
  6354. // $flow-disable-line
  6355. parent = parent._original;
  6356. }
  6357. var isCompiled = isTrue(options._compiled);
  6358. var needNormalization = !isCompiled;
  6359. this.data = data;
  6360. this.props = props;
  6361. this.children = children;
  6362. this.parent = parent;
  6363. this.listeners = data.on || emptyObject;
  6364. this.injections = resolveInject(options.inject, parent);
  6365. this.slots = function () {
  6366. if (!this$1.$slots) {
  6367. normalizeScopedSlots(
  6368. data.scopedSlots,
  6369. this$1.$slots = resolveSlots(children, parent)
  6370. );
  6371. }
  6372. return this$1.$slots
  6373. };
  6374. Object.defineProperty(this, 'scopedSlots', ({
  6375. enumerable: true,
  6376. get: function get () {
  6377. return normalizeScopedSlots(data.scopedSlots, this.slots())
  6378. }
  6379. }));
  6380. // support for compiled functional template
  6381. if (isCompiled) {
  6382. // exposing $options for renderStatic()
  6383. this.$options = options;
  6384. // pre-resolve slots for renderSlot()
  6385. this.$slots = this.slots();
  6386. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  6387. }
  6388. if (options._scopeId) {
  6389. this._c = function (a, b, c, d) {
  6390. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  6391. if (vnode && !Array.isArray(vnode)) {
  6392. vnode.fnScopeId = options._scopeId;
  6393. vnode.fnContext = parent;
  6394. }
  6395. return vnode
  6396. };
  6397. } else {
  6398. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  6399. }
  6400. }
  6401. installRenderHelpers(FunctionalRenderContext.prototype);
  6402. function createFunctionalComponent (
  6403. Ctor,
  6404. propsData,
  6405. data,
  6406. contextVm,
  6407. children
  6408. ) {
  6409. var options = Ctor.options;
  6410. var props = {};
  6411. var propOptions = options.props;
  6412. if (isDef(propOptions)) {
  6413. for (var key in propOptions) {
  6414. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  6415. }
  6416. } else {
  6417. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  6418. if (isDef(data.props)) { mergeProps(props, data.props); }
  6419. }
  6420. var renderContext = new FunctionalRenderContext(
  6421. data,
  6422. props,
  6423. children,
  6424. contextVm,
  6425. Ctor
  6426. );
  6427. var vnode = options.render.call(null, renderContext._c, renderContext);
  6428. if (vnode instanceof VNode) {
  6429. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  6430. } else if (Array.isArray(vnode)) {
  6431. var vnodes = normalizeChildren(vnode) || [];
  6432. var res = new Array(vnodes.length);
  6433. for (var i = 0; i < vnodes.length; i++) {
  6434. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  6435. }
  6436. return res
  6437. }
  6438. }
  6439. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  6440. // #7817 clone node before setting fnContext, otherwise if the node is reused
  6441. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  6442. // that should not be matched to match.
  6443. var clone = cloneVNode(vnode);
  6444. clone.fnContext = contextVm;
  6445. clone.fnOptions = options;
  6446. if (true) {
  6447. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  6448. }
  6449. if (data.slot) {
  6450. (clone.data || (clone.data = {})).slot = data.slot;
  6451. }
  6452. return clone
  6453. }
  6454. function mergeProps (to, from) {
  6455. for (var key in from) {
  6456. to[camelize(key)] = from[key];
  6457. }
  6458. }
  6459. /* */
  6460. /* */
  6461. /* */
  6462. /* */
  6463. // inline hooks to be invoked on component VNodes during patch
  6464. var componentVNodeHooks = {
  6465. init: function init (vnode, hydrating) {
  6466. if (
  6467. vnode.componentInstance &&
  6468. !vnode.componentInstance._isDestroyed &&
  6469. vnode.data.keepAlive
  6470. ) {
  6471. // kept-alive components, treat as a patch
  6472. var mountedNode = vnode; // work around flow
  6473. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  6474. } else {
  6475. var child = vnode.componentInstance = createComponentInstanceForVnode(
  6476. vnode,
  6477. activeInstance
  6478. );
  6479. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  6480. }
  6481. },
  6482. prepatch: function prepatch (oldVnode, vnode) {
  6483. var options = vnode.componentOptions;
  6484. var child = vnode.componentInstance = oldVnode.componentInstance;
  6485. updateChildComponent(
  6486. child,
  6487. options.propsData, // updated props
  6488. options.listeners, // updated listeners
  6489. vnode, // new parent vnode
  6490. options.children // new children
  6491. );
  6492. },
  6493. insert: function insert (vnode) {
  6494. var context = vnode.context;
  6495. var componentInstance = vnode.componentInstance;
  6496. if (!componentInstance._isMounted) {
  6497. callHook(componentInstance, 'onServiceCreated');
  6498. callHook(componentInstance, 'onServiceAttached');
  6499. componentInstance._isMounted = true;
  6500. callHook(componentInstance, 'mounted');
  6501. }
  6502. if (vnode.data.keepAlive) {
  6503. if (context._isMounted) {
  6504. // vue-router#1212
  6505. // During updates, a kept-alive component's child components may
  6506. // change, so directly walking the tree here may call activated hooks
  6507. // on incorrect children. Instead we push them into a queue which will
  6508. // be processed after the whole patch process ended.
  6509. queueActivatedComponent(componentInstance);
  6510. } else {
  6511. activateChildComponent(componentInstance, true /* direct */);
  6512. }
  6513. }
  6514. },
  6515. destroy: function destroy (vnode) {
  6516. var componentInstance = vnode.componentInstance;
  6517. if (!componentInstance._isDestroyed) {
  6518. if (!vnode.data.keepAlive) {
  6519. componentInstance.$destroy();
  6520. } else {
  6521. deactivateChildComponent(componentInstance, true /* direct */);
  6522. }
  6523. }
  6524. }
  6525. };
  6526. var hooksToMerge = Object.keys(componentVNodeHooks);
  6527. function createComponent (
  6528. Ctor,
  6529. data,
  6530. context,
  6531. children,
  6532. tag
  6533. ) {
  6534. if (isUndef(Ctor)) {
  6535. return
  6536. }
  6537. var baseCtor = context.$options._base;
  6538. // plain options object: turn it into a constructor
  6539. if (isObject(Ctor)) {
  6540. Ctor = baseCtor.extend(Ctor);
  6541. }
  6542. // if at this stage it's not a constructor or an async component factory,
  6543. // reject.
  6544. if (typeof Ctor !== 'function') {
  6545. if (true) {
  6546. warn(("Invalid Component definition: " + (String(Ctor))), context);
  6547. }
  6548. return
  6549. }
  6550. // async component
  6551. var asyncFactory;
  6552. if (isUndef(Ctor.cid)) {
  6553. asyncFactory = Ctor;
  6554. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  6555. if (Ctor === undefined) {
  6556. // return a placeholder node for async component, which is rendered
  6557. // as a comment node but preserves all the raw information for the node.
  6558. // the information will be used for async server-rendering and hydration.
  6559. return createAsyncPlaceholder(
  6560. asyncFactory,
  6561. data,
  6562. context,
  6563. children,
  6564. tag
  6565. )
  6566. }
  6567. }
  6568. data = data || {};
  6569. // resolve constructor options in case global mixins are applied after
  6570. // component constructor creation
  6571. resolveConstructorOptions(Ctor);
  6572. // transform component v-model data into props & events
  6573. if (isDef(data.model)) {
  6574. transformModel(Ctor.options, data);
  6575. }
  6576. // extract props
  6577. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  6578. // functional component
  6579. if (isTrue(Ctor.options.functional)) {
  6580. return createFunctionalComponent(Ctor, propsData, data, context, children)
  6581. }
  6582. // extract listeners, since these needs to be treated as
  6583. // child component listeners instead of DOM listeners
  6584. var listeners = data.on;
  6585. // replace with listeners with .native modifier
  6586. // so it gets processed during parent component patch.
  6587. data.on = data.nativeOn;
  6588. if (isTrue(Ctor.options.abstract)) {
  6589. // abstract components do not keep anything
  6590. // other than props & listeners & slot
  6591. // work around flow
  6592. var slot = data.slot;
  6593. data = {};
  6594. if (slot) {
  6595. data.slot = slot;
  6596. }
  6597. }
  6598. // install component management hooks onto the placeholder node
  6599. installComponentHooks(data);
  6600. // return a placeholder vnode
  6601. var name = Ctor.options.name || tag;
  6602. var vnode = new VNode(
  6603. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  6604. data, undefined, undefined, undefined, context,
  6605. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  6606. asyncFactory
  6607. );
  6608. return vnode
  6609. }
  6610. function createComponentInstanceForVnode (
  6611. vnode, // we know it's MountedComponentVNode but flow doesn't
  6612. parent // activeInstance in lifecycle state
  6613. ) {
  6614. var options = {
  6615. _isComponent: true,
  6616. _parentVnode: vnode,
  6617. parent: parent
  6618. };
  6619. // check inline-template render functions
  6620. var inlineTemplate = vnode.data.inlineTemplate;
  6621. if (isDef(inlineTemplate)) {
  6622. options.render = inlineTemplate.render;
  6623. options.staticRenderFns = inlineTemplate.staticRenderFns;
  6624. }
  6625. return new vnode.componentOptions.Ctor(options)
  6626. }
  6627. function installComponentHooks (data) {
  6628. var hooks = data.hook || (data.hook = {});
  6629. for (var i = 0; i < hooksToMerge.length; i++) {
  6630. var key = hooksToMerge[i];
  6631. var existing = hooks[key];
  6632. var toMerge = componentVNodeHooks[key];
  6633. if (existing !== toMerge && !(existing && existing._merged)) {
  6634. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  6635. }
  6636. }
  6637. }
  6638. function mergeHook$1 (f1, f2) {
  6639. var merged = function (a, b) {
  6640. // flow complains about extra args which is why we use any
  6641. f1(a, b);
  6642. f2(a, b);
  6643. };
  6644. merged._merged = true;
  6645. return merged
  6646. }
  6647. // transform component v-model info (value and callback) into
  6648. // prop and event handler respectively.
  6649. function transformModel (options, data) {
  6650. var prop = (options.model && options.model.prop) || 'value';
  6651. var event = (options.model && options.model.event) || 'input'
  6652. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  6653. var on = data.on || (data.on = {});
  6654. var existing = on[event];
  6655. var callback = data.model.callback;
  6656. if (isDef(existing)) {
  6657. if (
  6658. Array.isArray(existing)
  6659. ? existing.indexOf(callback) === -1
  6660. : existing !== callback
  6661. ) {
  6662. on[event] = [callback].concat(existing);
  6663. }
  6664. } else {
  6665. on[event] = callback;
  6666. }
  6667. }
  6668. /* */
  6669. var SIMPLE_NORMALIZE = 1;
  6670. var ALWAYS_NORMALIZE = 2;
  6671. // wrapper function for providing a more flexible interface
  6672. // without getting yelled at by flow
  6673. function createElement (
  6674. context,
  6675. tag,
  6676. data,
  6677. children,
  6678. normalizationType,
  6679. alwaysNormalize
  6680. ) {
  6681. if (Array.isArray(data) || isPrimitive(data)) {
  6682. normalizationType = children;
  6683. children = data;
  6684. data = undefined;
  6685. }
  6686. if (isTrue(alwaysNormalize)) {
  6687. normalizationType = ALWAYS_NORMALIZE;
  6688. }
  6689. return _createElement(context, tag, data, children, normalizationType)
  6690. }
  6691. function _createElement (
  6692. context,
  6693. tag,
  6694. data,
  6695. children,
  6696. normalizationType
  6697. ) {
  6698. if (isDef(data) && isDef((data).__ob__)) {
  6699. true && warn(
  6700. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  6701. 'Always create fresh vnode data objects in each render!',
  6702. context
  6703. );
  6704. return createEmptyVNode()
  6705. }
  6706. // object syntax in v-bind
  6707. if (isDef(data) && isDef(data.is)) {
  6708. tag = data.is;
  6709. }
  6710. if (!tag) {
  6711. // in case of component :is set to falsy value
  6712. return createEmptyVNode()
  6713. }
  6714. // warn against non-primitive key
  6715. if ( true &&
  6716. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  6717. ) {
  6718. {
  6719. warn(
  6720. 'Avoid using non-primitive value as key, ' +
  6721. 'use string/number value instead.',
  6722. context
  6723. );
  6724. }
  6725. }
  6726. // support single function children as default scoped slot
  6727. if (Array.isArray(children) &&
  6728. typeof children[0] === 'function'
  6729. ) {
  6730. data = data || {};
  6731. data.scopedSlots = { default: children[0] };
  6732. children.length = 0;
  6733. }
  6734. if (normalizationType === ALWAYS_NORMALIZE) {
  6735. children = normalizeChildren(children);
  6736. } else if (normalizationType === SIMPLE_NORMALIZE) {
  6737. children = simpleNormalizeChildren(children);
  6738. }
  6739. var vnode, ns;
  6740. if (typeof tag === 'string') {
  6741. var Ctor;
  6742. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  6743. if (config.isReservedTag(tag)) {
  6744. // platform built-in elements
  6745. if ( true && isDef(data) && isDef(data.nativeOn)) {
  6746. warn(
  6747. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  6748. context
  6749. );
  6750. }
  6751. vnode = new VNode(
  6752. config.parsePlatformTagName(tag), data, children,
  6753. undefined, undefined, context
  6754. );
  6755. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  6756. // component
  6757. vnode = createComponent(Ctor, data, context, children, tag);
  6758. } else {
  6759. // unknown or unlisted namespaced elements
  6760. // check at runtime because it may get assigned a namespace when its
  6761. // parent normalizes children
  6762. vnode = new VNode(
  6763. tag, data, children,
  6764. undefined, undefined, context
  6765. );
  6766. }
  6767. } else {
  6768. // direct component options / constructor
  6769. vnode = createComponent(tag, data, context, children);
  6770. }
  6771. if (Array.isArray(vnode)) {
  6772. return vnode
  6773. } else if (isDef(vnode)) {
  6774. if (isDef(ns)) { applyNS(vnode, ns); }
  6775. if (isDef(data)) { registerDeepBindings(data); }
  6776. return vnode
  6777. } else {
  6778. return createEmptyVNode()
  6779. }
  6780. }
  6781. function applyNS (vnode, ns, force) {
  6782. vnode.ns = ns;
  6783. if (vnode.tag === 'foreignObject') {
  6784. // use default namespace inside foreignObject
  6785. ns = undefined;
  6786. force = true;
  6787. }
  6788. if (isDef(vnode.children)) {
  6789. for (var i = 0, l = vnode.children.length; i < l; i++) {
  6790. var child = vnode.children[i];
  6791. if (isDef(child.tag) && (
  6792. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  6793. applyNS(child, ns, force);
  6794. }
  6795. }
  6796. }
  6797. }
  6798. // ref #5318
  6799. // necessary to ensure parent re-render when deep bindings like :style and
  6800. // :class are used on slot nodes
  6801. function registerDeepBindings (data) {
  6802. if (isObject(data.style)) {
  6803. traverse(data.style);
  6804. }
  6805. if (isObject(data.class)) {
  6806. traverse(data.class);
  6807. }
  6808. }
  6809. /* */
  6810. function initRender (vm) {
  6811. vm._vnode = null; // the root of the child tree
  6812. vm._staticTrees = null; // v-once cached trees
  6813. var options = vm.$options;
  6814. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  6815. var renderContext = parentVnode && parentVnode.context;
  6816. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  6817. vm.$scopedSlots = emptyObject;
  6818. // bind the createElement fn to this instance
  6819. // so that we get proper render context inside it.
  6820. // args order: tag, data, children, normalizationType, alwaysNormalize
  6821. // internal version is used by render functions compiled from templates
  6822. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  6823. // normalization is always applied for the public version, used in
  6824. // user-written render functions.
  6825. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  6826. // $attrs & $listeners are exposed for easier HOC creation.
  6827. // they need to be reactive so that HOCs using them are always updated
  6828. var parentData = parentVnode && parentVnode.data;
  6829. /* istanbul ignore else */
  6830. if (true) {
  6831. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  6832. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  6833. }, true);
  6834. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  6835. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  6836. }, true);
  6837. } else {}
  6838. }
  6839. var currentRenderingInstance = null;
  6840. function renderMixin (Vue) {
  6841. // install runtime convenience helpers
  6842. installRenderHelpers(Vue.prototype);
  6843. Vue.prototype.$nextTick = function (fn) {
  6844. return nextTick(fn, this)
  6845. };
  6846. Vue.prototype._render = function () {
  6847. var vm = this;
  6848. var ref = vm.$options;
  6849. var render = ref.render;
  6850. var _parentVnode = ref._parentVnode;
  6851. if (_parentVnode) {
  6852. vm.$scopedSlots = normalizeScopedSlots(
  6853. _parentVnode.data.scopedSlots,
  6854. vm.$slots,
  6855. vm.$scopedSlots
  6856. );
  6857. }
  6858. // set parent vnode. this allows render functions to have access
  6859. // to the data on the placeholder node.
  6860. vm.$vnode = _parentVnode;
  6861. // render self
  6862. var vnode;
  6863. try {
  6864. // There's no need to maintain a stack because all render fns are called
  6865. // separately from one another. Nested component's render fns are called
  6866. // when parent component is patched.
  6867. currentRenderingInstance = vm;
  6868. vnode = render.call(vm._renderProxy, vm.$createElement);
  6869. } catch (e) {
  6870. handleError(e, vm, "render");
  6871. // return error render result,
  6872. // or previous vnode to prevent render error causing blank component
  6873. /* istanbul ignore else */
  6874. if ( true && vm.$options.renderError) {
  6875. try {
  6876. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  6877. } catch (e) {
  6878. handleError(e, vm, "renderError");
  6879. vnode = vm._vnode;
  6880. }
  6881. } else {
  6882. vnode = vm._vnode;
  6883. }
  6884. } finally {
  6885. currentRenderingInstance = null;
  6886. }
  6887. // if the returned array contains only a single node, allow it
  6888. if (Array.isArray(vnode) && vnode.length === 1) {
  6889. vnode = vnode[0];
  6890. }
  6891. // return empty vnode in case the render function errored out
  6892. if (!(vnode instanceof VNode)) {
  6893. if ( true && Array.isArray(vnode)) {
  6894. warn(
  6895. 'Multiple root nodes returned from render function. Render function ' +
  6896. 'should return a single root node.',
  6897. vm
  6898. );
  6899. }
  6900. vnode = createEmptyVNode();
  6901. }
  6902. // set parent
  6903. vnode.parent = _parentVnode;
  6904. return vnode
  6905. };
  6906. }
  6907. /* */
  6908. function ensureCtor (comp, base) {
  6909. if (
  6910. comp.__esModule ||
  6911. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  6912. ) {
  6913. comp = comp.default;
  6914. }
  6915. return isObject(comp)
  6916. ? base.extend(comp)
  6917. : comp
  6918. }
  6919. function createAsyncPlaceholder (
  6920. factory,
  6921. data,
  6922. context,
  6923. children,
  6924. tag
  6925. ) {
  6926. var node = createEmptyVNode();
  6927. node.asyncFactory = factory;
  6928. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  6929. return node
  6930. }
  6931. function resolveAsyncComponent (
  6932. factory,
  6933. baseCtor
  6934. ) {
  6935. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  6936. return factory.errorComp
  6937. }
  6938. if (isDef(factory.resolved)) {
  6939. return factory.resolved
  6940. }
  6941. var owner = currentRenderingInstance;
  6942. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  6943. // already pending
  6944. factory.owners.push(owner);
  6945. }
  6946. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  6947. return factory.loadingComp
  6948. }
  6949. if (owner && !isDef(factory.owners)) {
  6950. var owners = factory.owners = [owner];
  6951. var sync = true;
  6952. var timerLoading = null;
  6953. var timerTimeout = null
  6954. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  6955. var forceRender = function (renderCompleted) {
  6956. for (var i = 0, l = owners.length; i < l; i++) {
  6957. (owners[i]).$forceUpdate();
  6958. }
  6959. if (renderCompleted) {
  6960. owners.length = 0;
  6961. if (timerLoading !== null) {
  6962. clearTimeout(timerLoading);
  6963. timerLoading = null;
  6964. }
  6965. if (timerTimeout !== null) {
  6966. clearTimeout(timerTimeout);
  6967. timerTimeout = null;
  6968. }
  6969. }
  6970. };
  6971. var resolve = once(function (res) {
  6972. // cache resolved
  6973. factory.resolved = ensureCtor(res, baseCtor);
  6974. // invoke callbacks only if this is not a synchronous resolve
  6975. // (async resolves are shimmed as synchronous during SSR)
  6976. if (!sync) {
  6977. forceRender(true);
  6978. } else {
  6979. owners.length = 0;
  6980. }
  6981. });
  6982. var reject = once(function (reason) {
  6983. true && warn(
  6984. "Failed to resolve async component: " + (String(factory)) +
  6985. (reason ? ("\nReason: " + reason) : '')
  6986. );
  6987. if (isDef(factory.errorComp)) {
  6988. factory.error = true;
  6989. forceRender(true);
  6990. }
  6991. });
  6992. var res = factory(resolve, reject);
  6993. if (isObject(res)) {
  6994. if (isPromise(res)) {
  6995. // () => Promise
  6996. if (isUndef(factory.resolved)) {
  6997. res.then(resolve, reject);
  6998. }
  6999. } else if (isPromise(res.component)) {
  7000. res.component.then(resolve, reject);
  7001. if (isDef(res.error)) {
  7002. factory.errorComp = ensureCtor(res.error, baseCtor);
  7003. }
  7004. if (isDef(res.loading)) {
  7005. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  7006. if (res.delay === 0) {
  7007. factory.loading = true;
  7008. } else {
  7009. timerLoading = setTimeout(function () {
  7010. timerLoading = null;
  7011. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  7012. factory.loading = true;
  7013. forceRender(false);
  7014. }
  7015. }, res.delay || 200);
  7016. }
  7017. }
  7018. if (isDef(res.timeout)) {
  7019. timerTimeout = setTimeout(function () {
  7020. timerTimeout = null;
  7021. if (isUndef(factory.resolved)) {
  7022. reject(
  7023. true
  7024. ? ("timeout (" + (res.timeout) + "ms)")
  7025. : undefined
  7026. );
  7027. }
  7028. }, res.timeout);
  7029. }
  7030. }
  7031. }
  7032. sync = false;
  7033. // return in case resolved synchronously
  7034. return factory.loading
  7035. ? factory.loadingComp
  7036. : factory.resolved
  7037. }
  7038. }
  7039. /* */
  7040. function isAsyncPlaceholder (node) {
  7041. return node.isComment && node.asyncFactory
  7042. }
  7043. /* */
  7044. function getFirstComponentChild (children) {
  7045. if (Array.isArray(children)) {
  7046. for (var i = 0; i < children.length; i++) {
  7047. var c = children[i];
  7048. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  7049. return c
  7050. }
  7051. }
  7052. }
  7053. }
  7054. /* */
  7055. /* */
  7056. function initEvents (vm) {
  7057. vm._events = Object.create(null);
  7058. vm._hasHookEvent = false;
  7059. // init parent attached events
  7060. var listeners = vm.$options._parentListeners;
  7061. if (listeners) {
  7062. updateComponentListeners(vm, listeners);
  7063. }
  7064. }
  7065. var target;
  7066. function add (event, fn) {
  7067. target.$on(event, fn);
  7068. }
  7069. function remove$1 (event, fn) {
  7070. target.$off(event, fn);
  7071. }
  7072. function createOnceHandler (event, fn) {
  7073. var _target = target;
  7074. return function onceHandler () {
  7075. var res = fn.apply(null, arguments);
  7076. if (res !== null) {
  7077. _target.$off(event, onceHandler);
  7078. }
  7079. }
  7080. }
  7081. function updateComponentListeners (
  7082. vm,
  7083. listeners,
  7084. oldListeners
  7085. ) {
  7086. target = vm;
  7087. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  7088. target = undefined;
  7089. }
  7090. function eventsMixin (Vue) {
  7091. var hookRE = /^hook:/;
  7092. Vue.prototype.$on = function (event, fn) {
  7093. var vm = this;
  7094. if (Array.isArray(event)) {
  7095. for (var i = 0, l = event.length; i < l; i++) {
  7096. vm.$on(event[i], fn);
  7097. }
  7098. } else {
  7099. (vm._events[event] || (vm._events[event] = [])).push(fn);
  7100. // optimize hook:event cost by using a boolean flag marked at registration
  7101. // instead of a hash lookup
  7102. if (hookRE.test(event)) {
  7103. vm._hasHookEvent = true;
  7104. }
  7105. }
  7106. return vm
  7107. };
  7108. Vue.prototype.$once = function (event, fn) {
  7109. var vm = this;
  7110. function on () {
  7111. vm.$off(event, on);
  7112. fn.apply(vm, arguments);
  7113. }
  7114. on.fn = fn;
  7115. vm.$on(event, on);
  7116. return vm
  7117. };
  7118. Vue.prototype.$off = function (event, fn) {
  7119. var vm = this;
  7120. // all
  7121. if (!arguments.length) {
  7122. vm._events = Object.create(null);
  7123. return vm
  7124. }
  7125. // array of events
  7126. if (Array.isArray(event)) {
  7127. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  7128. vm.$off(event[i$1], fn);
  7129. }
  7130. return vm
  7131. }
  7132. // specific event
  7133. var cbs = vm._events[event];
  7134. if (!cbs) {
  7135. return vm
  7136. }
  7137. if (!fn) {
  7138. vm._events[event] = null;
  7139. return vm
  7140. }
  7141. // specific handler
  7142. var cb;
  7143. var i = cbs.length;
  7144. while (i--) {
  7145. cb = cbs[i];
  7146. if (cb === fn || cb.fn === fn) {
  7147. cbs.splice(i, 1);
  7148. break
  7149. }
  7150. }
  7151. return vm
  7152. };
  7153. Vue.prototype.$emit = function (event) {
  7154. var vm = this;
  7155. if (true) {
  7156. var lowerCaseEvent = event.toLowerCase();
  7157. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  7158. tip(
  7159. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  7160. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  7161. "Note that HTML attributes are case-insensitive and you cannot use " +
  7162. "v-on to listen to camelCase events when using in-DOM templates. " +
  7163. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  7164. );
  7165. }
  7166. }
  7167. var cbs = vm._events[event];
  7168. if (cbs) {
  7169. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  7170. var args = toArray(arguments, 1);
  7171. var info = "event handler for \"" + event + "\"";
  7172. for (var i = 0, l = cbs.length; i < l; i++) {
  7173. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  7174. }
  7175. }
  7176. return vm
  7177. };
  7178. }
  7179. /* */
  7180. var activeInstance = null;
  7181. var isUpdatingChildComponent = false;
  7182. function setActiveInstance(vm) {
  7183. var prevActiveInstance = activeInstance;
  7184. activeInstance = vm;
  7185. return function () {
  7186. activeInstance = prevActiveInstance;
  7187. }
  7188. }
  7189. function initLifecycle (vm) {
  7190. var options = vm.$options;
  7191. // locate first non-abstract parent
  7192. var parent = options.parent;
  7193. if (parent && !options.abstract) {
  7194. while (parent.$options.abstract && parent.$parent) {
  7195. parent = parent.$parent;
  7196. }
  7197. parent.$children.push(vm);
  7198. }
  7199. vm.$parent = parent;
  7200. vm.$root = parent ? parent.$root : vm;
  7201. vm.$children = [];
  7202. vm.$refs = {};
  7203. vm._watcher = null;
  7204. vm._inactive = null;
  7205. vm._directInactive = false;
  7206. vm._isMounted = false;
  7207. vm._isDestroyed = false;
  7208. vm._isBeingDestroyed = false;
  7209. }
  7210. function lifecycleMixin (Vue) {
  7211. Vue.prototype._update = function (vnode, hydrating) {
  7212. var vm = this;
  7213. var prevEl = vm.$el;
  7214. var prevVnode = vm._vnode;
  7215. var restoreActiveInstance = setActiveInstance(vm);
  7216. vm._vnode = vnode;
  7217. // Vue.prototype.__patch__ is injected in entry points
  7218. // based on the rendering backend used.
  7219. if (!prevVnode) {
  7220. // initial render
  7221. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  7222. } else {
  7223. // updates
  7224. vm.$el = vm.__patch__(prevVnode, vnode);
  7225. }
  7226. restoreActiveInstance();
  7227. // update __vue__ reference
  7228. if (prevEl) {
  7229. prevEl.__vue__ = null;
  7230. }
  7231. if (vm.$el) {
  7232. vm.$el.__vue__ = vm;
  7233. }
  7234. // if parent is an HOC, update its $el as well
  7235. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  7236. vm.$parent.$el = vm.$el;
  7237. }
  7238. // updated hook is called by the scheduler to ensure that children are
  7239. // updated in a parent's updated hook.
  7240. };
  7241. Vue.prototype.$forceUpdate = function () {
  7242. var vm = this;
  7243. if (vm._watcher) {
  7244. vm._watcher.update();
  7245. }
  7246. };
  7247. Vue.prototype.$destroy = function () {
  7248. var vm = this;
  7249. if (vm._isBeingDestroyed) {
  7250. return
  7251. }
  7252. callHook(vm, 'beforeDestroy');
  7253. vm._isBeingDestroyed = true;
  7254. // remove self from parent
  7255. var parent = vm.$parent;
  7256. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  7257. remove(parent.$children, vm);
  7258. }
  7259. // teardown watchers
  7260. if (vm._watcher) {
  7261. vm._watcher.teardown();
  7262. }
  7263. var i = vm._watchers.length;
  7264. while (i--) {
  7265. vm._watchers[i].teardown();
  7266. }
  7267. // remove reference from data ob
  7268. // frozen object may not have observer.
  7269. if (vm._data.__ob__) {
  7270. vm._data.__ob__.vmCount--;
  7271. }
  7272. // call the last hook...
  7273. vm._isDestroyed = true;
  7274. // invoke destroy hooks on current rendered tree
  7275. vm.__patch__(vm._vnode, null);
  7276. // fire destroyed hook
  7277. callHook(vm, 'destroyed');
  7278. // turn off all instance listeners.
  7279. vm.$off();
  7280. // remove __vue__ reference
  7281. if (vm.$el) {
  7282. vm.$el.__vue__ = null;
  7283. }
  7284. // release circular reference (#6759)
  7285. if (vm.$vnode) {
  7286. vm.$vnode.parent = null;
  7287. }
  7288. };
  7289. }
  7290. function updateChildComponent (
  7291. vm,
  7292. propsData,
  7293. listeners,
  7294. parentVnode,
  7295. renderChildren
  7296. ) {
  7297. if (true) {
  7298. isUpdatingChildComponent = true;
  7299. }
  7300. // determine whether component has slot children
  7301. // we need to do this before overwriting $options._renderChildren.
  7302. // check if there are dynamic scopedSlots (hand-written or compiled but with
  7303. // dynamic slot names). Static scoped slots compiled from template has the
  7304. // "$stable" marker.
  7305. var newScopedSlots = parentVnode.data.scopedSlots;
  7306. var oldScopedSlots = vm.$scopedSlots;
  7307. var hasDynamicScopedSlot = !!(
  7308. (newScopedSlots && !newScopedSlots.$stable) ||
  7309. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  7310. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  7311. );
  7312. // Any static slot children from the parent may have changed during parent's
  7313. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  7314. // update is necessary to ensure correctness.
  7315. var needsForceUpdate = !!(
  7316. renderChildren || // has new static slots
  7317. vm.$options._renderChildren || // has old static slots
  7318. hasDynamicScopedSlot
  7319. );
  7320. vm.$options._parentVnode = parentVnode;
  7321. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  7322. if (vm._vnode) { // update child tree's parent
  7323. vm._vnode.parent = parentVnode;
  7324. }
  7325. vm.$options._renderChildren = renderChildren;
  7326. // update $attrs and $listeners hash
  7327. // these are also reactive so they may trigger child update if the child
  7328. // used them during render
  7329. vm.$attrs = parentVnode.data.attrs || emptyObject;
  7330. vm.$listeners = listeners || emptyObject;
  7331. // update props
  7332. if (propsData && vm.$options.props) {
  7333. toggleObserving(false);
  7334. var props = vm._props;
  7335. var propKeys = vm.$options._propKeys || [];
  7336. for (var i = 0; i < propKeys.length; i++) {
  7337. var key = propKeys[i];
  7338. var propOptions = vm.$options.props; // wtf flow?
  7339. props[key] = validateProp(key, propOptions, propsData, vm);
  7340. }
  7341. toggleObserving(true);
  7342. // keep a copy of raw propsData
  7343. vm.$options.propsData = propsData;
  7344. }
  7345. // fixed by xxxxxx update properties(mp runtime)
  7346. vm._$updateProperties && vm._$updateProperties(vm);
  7347. // update listeners
  7348. listeners = listeners || emptyObject;
  7349. var oldListeners = vm.$options._parentListeners;
  7350. vm.$options._parentListeners = listeners;
  7351. updateComponentListeners(vm, listeners, oldListeners);
  7352. // resolve slots + force update if has children
  7353. if (needsForceUpdate) {
  7354. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  7355. vm.$forceUpdate();
  7356. }
  7357. if (true) {
  7358. isUpdatingChildComponent = false;
  7359. }
  7360. }
  7361. function isInInactiveTree (vm) {
  7362. while (vm && (vm = vm.$parent)) {
  7363. if (vm._inactive) { return true }
  7364. }
  7365. return false
  7366. }
  7367. function activateChildComponent (vm, direct) {
  7368. if (direct) {
  7369. vm._directInactive = false;
  7370. if (isInInactiveTree(vm)) {
  7371. return
  7372. }
  7373. } else if (vm._directInactive) {
  7374. return
  7375. }
  7376. if (vm._inactive || vm._inactive === null) {
  7377. vm._inactive = false;
  7378. for (var i = 0; i < vm.$children.length; i++) {
  7379. activateChildComponent(vm.$children[i]);
  7380. }
  7381. callHook(vm, 'activated');
  7382. }
  7383. }
  7384. function deactivateChildComponent (vm, direct) {
  7385. if (direct) {
  7386. vm._directInactive = true;
  7387. if (isInInactiveTree(vm)) {
  7388. return
  7389. }
  7390. }
  7391. if (!vm._inactive) {
  7392. vm._inactive = true;
  7393. for (var i = 0; i < vm.$children.length; i++) {
  7394. deactivateChildComponent(vm.$children[i]);
  7395. }
  7396. callHook(vm, 'deactivated');
  7397. }
  7398. }
  7399. function callHook (vm, hook) {
  7400. // #7573 disable dep collection when invoking lifecycle hooks
  7401. pushTarget();
  7402. var handlers = vm.$options[hook];
  7403. var info = hook + " hook";
  7404. if (handlers) {
  7405. for (var i = 0, j = handlers.length; i < j; i++) {
  7406. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  7407. }
  7408. }
  7409. if (vm._hasHookEvent) {
  7410. vm.$emit('hook:' + hook);
  7411. }
  7412. popTarget();
  7413. }
  7414. /* */
  7415. var MAX_UPDATE_COUNT = 100;
  7416. var queue = [];
  7417. var activatedChildren = [];
  7418. var has = {};
  7419. var circular = {};
  7420. var waiting = false;
  7421. var flushing = false;
  7422. var index = 0;
  7423. /**
  7424. * Reset the scheduler's state.
  7425. */
  7426. function resetSchedulerState () {
  7427. index = queue.length = activatedChildren.length = 0;
  7428. has = {};
  7429. if (true) {
  7430. circular = {};
  7431. }
  7432. waiting = flushing = false;
  7433. }
  7434. // Async edge case #6566 requires saving the timestamp when event listeners are
  7435. // attached. However, calling performance.now() has a perf overhead especially
  7436. // if the page has thousands of event listeners. Instead, we take a timestamp
  7437. // every time the scheduler flushes and use that for all event listeners
  7438. // attached during that flush.
  7439. var currentFlushTimestamp = 0;
  7440. // Async edge case fix requires storing an event listener's attach timestamp.
  7441. var getNow = Date.now;
  7442. // Determine what event timestamp the browser is using. Annoyingly, the
  7443. // timestamp can either be hi-res (relative to page load) or low-res
  7444. // (relative to UNIX epoch), so in order to compare time we have to use the
  7445. // same timestamp type when saving the flush timestamp.
  7446. // All IE versions use low-res event timestamps, and have problematic clock
  7447. // implementations (#9632)
  7448. if (inBrowser && !isIE) {
  7449. var performance = window.performance;
  7450. if (
  7451. performance &&
  7452. typeof performance.now === 'function' &&
  7453. getNow() > document.createEvent('Event').timeStamp
  7454. ) {
  7455. // if the event timestamp, although evaluated AFTER the Date.now(), is
  7456. // smaller than it, it means the event is using a hi-res timestamp,
  7457. // and we need to use the hi-res version for event listener timestamps as
  7458. // well.
  7459. getNow = function () { return performance.now(); };
  7460. }
  7461. }
  7462. /**
  7463. * Flush both queues and run the watchers.
  7464. */
  7465. function flushSchedulerQueue () {
  7466. currentFlushTimestamp = getNow();
  7467. flushing = true;
  7468. var watcher, id;
  7469. // Sort queue before flush.
  7470. // This ensures that:
  7471. // 1. Components are updated from parent to child. (because parent is always
  7472. // created before the child)
  7473. // 2. A component's user watchers are run before its render watcher (because
  7474. // user watchers are created before the render watcher)
  7475. // 3. If a component is destroyed during a parent component's watcher run,
  7476. // its watchers can be skipped.
  7477. queue.sort(function (a, b) { return a.id - b.id; });
  7478. // do not cache length because more watchers might be pushed
  7479. // as we run existing watchers
  7480. for (index = 0; index < queue.length; index++) {
  7481. watcher = queue[index];
  7482. if (watcher.before) {
  7483. watcher.before();
  7484. }
  7485. id = watcher.id;
  7486. has[id] = null;
  7487. watcher.run();
  7488. // in dev build, check and stop circular updates.
  7489. if ( true && has[id] != null) {
  7490. circular[id] = (circular[id] || 0) + 1;
  7491. if (circular[id] > MAX_UPDATE_COUNT) {
  7492. warn(
  7493. 'You may have an infinite update loop ' + (
  7494. watcher.user
  7495. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  7496. : "in a component render function."
  7497. ),
  7498. watcher.vm
  7499. );
  7500. break
  7501. }
  7502. }
  7503. }
  7504. // keep copies of post queues before resetting state
  7505. var activatedQueue = activatedChildren.slice();
  7506. var updatedQueue = queue.slice();
  7507. resetSchedulerState();
  7508. // call component updated and activated hooks
  7509. callActivatedHooks(activatedQueue);
  7510. callUpdatedHooks(updatedQueue);
  7511. // devtool hook
  7512. /* istanbul ignore if */
  7513. if (devtools && config.devtools) {
  7514. devtools.emit('flush');
  7515. }
  7516. }
  7517. function callUpdatedHooks (queue) {
  7518. var i = queue.length;
  7519. while (i--) {
  7520. var watcher = queue[i];
  7521. var vm = watcher.vm;
  7522. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  7523. callHook(vm, 'updated');
  7524. }
  7525. }
  7526. }
  7527. /**
  7528. * Queue a kept-alive component that was activated during patch.
  7529. * The queue will be processed after the entire tree has been patched.
  7530. */
  7531. function queueActivatedComponent (vm) {
  7532. // setting _inactive to false here so that a render function can
  7533. // rely on checking whether it's in an inactive tree (e.g. router-view)
  7534. vm._inactive = false;
  7535. activatedChildren.push(vm);
  7536. }
  7537. function callActivatedHooks (queue) {
  7538. for (var i = 0; i < queue.length; i++) {
  7539. queue[i]._inactive = true;
  7540. activateChildComponent(queue[i], true /* true */);
  7541. }
  7542. }
  7543. /**
  7544. * Push a watcher into the watcher queue.
  7545. * Jobs with duplicate IDs will be skipped unless it's
  7546. * pushed when the queue is being flushed.
  7547. */
  7548. function queueWatcher (watcher) {
  7549. var id = watcher.id;
  7550. if (has[id] == null) {
  7551. has[id] = true;
  7552. if (!flushing) {
  7553. queue.push(watcher);
  7554. } else {
  7555. // if already flushing, splice the watcher based on its id
  7556. // if already past its id, it will be run next immediately.
  7557. var i = queue.length - 1;
  7558. while (i > index && queue[i].id > watcher.id) {
  7559. i--;
  7560. }
  7561. queue.splice(i + 1, 0, watcher);
  7562. }
  7563. // queue the flush
  7564. if (!waiting) {
  7565. waiting = true;
  7566. if ( true && !config.async) {
  7567. flushSchedulerQueue();
  7568. return
  7569. }
  7570. nextTick(flushSchedulerQueue);
  7571. }
  7572. }
  7573. }
  7574. /* */
  7575. var uid$2 = 0;
  7576. /**
  7577. * A watcher parses an expression, collects dependencies,
  7578. * and fires callback when the expression value changes.
  7579. * This is used for both the $watch() api and directives.
  7580. */
  7581. var Watcher = function Watcher (
  7582. vm,
  7583. expOrFn,
  7584. cb,
  7585. options,
  7586. isRenderWatcher
  7587. ) {
  7588. this.vm = vm;
  7589. if (isRenderWatcher) {
  7590. vm._watcher = this;
  7591. }
  7592. vm._watchers.push(this);
  7593. // options
  7594. if (options) {
  7595. this.deep = !!options.deep;
  7596. this.user = !!options.user;
  7597. this.lazy = !!options.lazy;
  7598. this.sync = !!options.sync;
  7599. this.before = options.before;
  7600. } else {
  7601. this.deep = this.user = this.lazy = this.sync = false;
  7602. }
  7603. this.cb = cb;
  7604. this.id = ++uid$2; // uid for batching
  7605. this.active = true;
  7606. this.dirty = this.lazy; // for lazy watchers
  7607. this.deps = [];
  7608. this.newDeps = [];
  7609. this.depIds = new _Set();
  7610. this.newDepIds = new _Set();
  7611. this.expression = true
  7612. ? expOrFn.toString()
  7613. : undefined;
  7614. // parse expression for getter
  7615. if (typeof expOrFn === 'function') {
  7616. this.getter = expOrFn;
  7617. } else {
  7618. this.getter = parsePath(expOrFn);
  7619. if (!this.getter) {
  7620. this.getter = noop;
  7621. true && warn(
  7622. "Failed watching path: \"" + expOrFn + "\" " +
  7623. 'Watcher only accepts simple dot-delimited paths. ' +
  7624. 'For full control, use a function instead.',
  7625. vm
  7626. );
  7627. }
  7628. }
  7629. this.value = this.lazy
  7630. ? undefined
  7631. : this.get();
  7632. };
  7633. /**
  7634. * Evaluate the getter, and re-collect dependencies.
  7635. */
  7636. Watcher.prototype.get = function get () {
  7637. pushTarget(this);
  7638. var value;
  7639. var vm = this.vm;
  7640. try {
  7641. value = this.getter.call(vm, vm);
  7642. } catch (e) {
  7643. if (this.user) {
  7644. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  7645. } else {
  7646. throw e
  7647. }
  7648. } finally {
  7649. // "touch" every property so they are all tracked as
  7650. // dependencies for deep watching
  7651. if (this.deep) {
  7652. traverse(value);
  7653. }
  7654. popTarget();
  7655. this.cleanupDeps();
  7656. }
  7657. return value
  7658. };
  7659. /**
  7660. * Add a dependency to this directive.
  7661. */
  7662. Watcher.prototype.addDep = function addDep (dep) {
  7663. var id = dep.id;
  7664. if (!this.newDepIds.has(id)) {
  7665. this.newDepIds.add(id);
  7666. this.newDeps.push(dep);
  7667. if (!this.depIds.has(id)) {
  7668. dep.addSub(this);
  7669. }
  7670. }
  7671. };
  7672. /**
  7673. * Clean up for dependency collection.
  7674. */
  7675. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  7676. var i = this.deps.length;
  7677. while (i--) {
  7678. var dep = this.deps[i];
  7679. if (!this.newDepIds.has(dep.id)) {
  7680. dep.removeSub(this);
  7681. }
  7682. }
  7683. var tmp = this.depIds;
  7684. this.depIds = this.newDepIds;
  7685. this.newDepIds = tmp;
  7686. this.newDepIds.clear();
  7687. tmp = this.deps;
  7688. this.deps = this.newDeps;
  7689. this.newDeps = tmp;
  7690. this.newDeps.length = 0;
  7691. };
  7692. /**
  7693. * Subscriber interface.
  7694. * Will be called when a dependency changes.
  7695. */
  7696. Watcher.prototype.update = function update () {
  7697. /* istanbul ignore else */
  7698. if (this.lazy) {
  7699. this.dirty = true;
  7700. } else if (this.sync) {
  7701. this.run();
  7702. } else {
  7703. queueWatcher(this);
  7704. }
  7705. };
  7706. /**
  7707. * Scheduler job interface.
  7708. * Will be called by the scheduler.
  7709. */
  7710. Watcher.prototype.run = function run () {
  7711. if (this.active) {
  7712. var value = this.get();
  7713. if (
  7714. value !== this.value ||
  7715. // Deep watchers and watchers on Object/Arrays should fire even
  7716. // when the value is the same, because the value may
  7717. // have mutated.
  7718. isObject(value) ||
  7719. this.deep
  7720. ) {
  7721. // set new value
  7722. var oldValue = this.value;
  7723. this.value = value;
  7724. if (this.user) {
  7725. try {
  7726. this.cb.call(this.vm, value, oldValue);
  7727. } catch (e) {
  7728. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  7729. }
  7730. } else {
  7731. this.cb.call(this.vm, value, oldValue);
  7732. }
  7733. }
  7734. }
  7735. };
  7736. /**
  7737. * Evaluate the value of the watcher.
  7738. * This only gets called for lazy watchers.
  7739. */
  7740. Watcher.prototype.evaluate = function evaluate () {
  7741. this.value = this.get();
  7742. this.dirty = false;
  7743. };
  7744. /**
  7745. * Depend on all deps collected by this watcher.
  7746. */
  7747. Watcher.prototype.depend = function depend () {
  7748. var i = this.deps.length;
  7749. while (i--) {
  7750. this.deps[i].depend();
  7751. }
  7752. };
  7753. /**
  7754. * Remove self from all dependencies' subscriber list.
  7755. */
  7756. Watcher.prototype.teardown = function teardown () {
  7757. if (this.active) {
  7758. // remove self from vm's watcher list
  7759. // this is a somewhat expensive operation so we skip it
  7760. // if the vm is being destroyed.
  7761. if (!this.vm._isBeingDestroyed) {
  7762. remove(this.vm._watchers, this);
  7763. }
  7764. var i = this.deps.length;
  7765. while (i--) {
  7766. this.deps[i].removeSub(this);
  7767. }
  7768. this.active = false;
  7769. }
  7770. };
  7771. /* */
  7772. var sharedPropertyDefinition = {
  7773. enumerable: true,
  7774. configurable: true,
  7775. get: noop,
  7776. set: noop
  7777. };
  7778. function proxy (target, sourceKey, key) {
  7779. sharedPropertyDefinition.get = function proxyGetter () {
  7780. return this[sourceKey][key]
  7781. };
  7782. sharedPropertyDefinition.set = function proxySetter (val) {
  7783. this[sourceKey][key] = val;
  7784. };
  7785. Object.defineProperty(target, key, sharedPropertyDefinition);
  7786. }
  7787. function initState (vm) {
  7788. vm._watchers = [];
  7789. var opts = vm.$options;
  7790. if (opts.props) { initProps(vm, opts.props); }
  7791. if (opts.methods) { initMethods(vm, opts.methods); }
  7792. if (opts.data) {
  7793. initData(vm);
  7794. } else {
  7795. observe(vm._data = {}, true /* asRootData */);
  7796. }
  7797. if (opts.computed) { initComputed(vm, opts.computed); }
  7798. if (opts.watch && opts.watch !== nativeWatch) {
  7799. initWatch(vm, opts.watch);
  7800. }
  7801. }
  7802. function initProps (vm, propsOptions) {
  7803. var propsData = vm.$options.propsData || {};
  7804. var props = vm._props = {};
  7805. // cache prop keys so that future props updates can iterate using Array
  7806. // instead of dynamic object key enumeration.
  7807. var keys = vm.$options._propKeys = [];
  7808. var isRoot = !vm.$parent;
  7809. // root instance props should be converted
  7810. if (!isRoot) {
  7811. toggleObserving(false);
  7812. }
  7813. var loop = function ( key ) {
  7814. keys.push(key);
  7815. var value = validateProp(key, propsOptions, propsData, vm);
  7816. /* istanbul ignore else */
  7817. if (true) {
  7818. var hyphenatedKey = hyphenate(key);
  7819. if (isReservedAttribute(hyphenatedKey) ||
  7820. config.isReservedAttr(hyphenatedKey)) {
  7821. warn(
  7822. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  7823. vm
  7824. );
  7825. }
  7826. defineReactive$$1(props, key, value, function () {
  7827. if (!isRoot && !isUpdatingChildComponent) {
  7828. {
  7829. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  7830. return
  7831. }
  7832. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  7833. if(
  7834. key === 'value' &&
  7835. Array.isArray(vm.$options.behaviors) &&
  7836. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  7837. ){
  7838. return
  7839. }
  7840. if(vm._getFormData){
  7841. return
  7842. }
  7843. var $parent = vm.$parent;
  7844. while($parent){
  7845. if($parent.__next_tick_pending){
  7846. return
  7847. }
  7848. $parent = $parent.$parent;
  7849. }
  7850. }
  7851. warn(
  7852. "Avoid mutating a prop directly since the value will be " +
  7853. "overwritten whenever the parent component re-renders. " +
  7854. "Instead, use a data or computed property based on the prop's " +
  7855. "value. Prop being mutated: \"" + key + "\"",
  7856. vm
  7857. );
  7858. }
  7859. });
  7860. } else {}
  7861. // static props are already proxied on the component's prototype
  7862. // during Vue.extend(). We only need to proxy props defined at
  7863. // instantiation here.
  7864. if (!(key in vm)) {
  7865. proxy(vm, "_props", key);
  7866. }
  7867. };
  7868. for (var key in propsOptions) loop( key );
  7869. toggleObserving(true);
  7870. }
  7871. function initData (vm) {
  7872. var data = vm.$options.data;
  7873. data = vm._data = typeof data === 'function'
  7874. ? getData(data, vm)
  7875. : data || {};
  7876. if (!isPlainObject(data)) {
  7877. data = {};
  7878. true && warn(
  7879. 'data functions should return an object:\n' +
  7880. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  7881. vm
  7882. );
  7883. }
  7884. // proxy data on instance
  7885. var keys = Object.keys(data);
  7886. var props = vm.$options.props;
  7887. var methods = vm.$options.methods;
  7888. var i = keys.length;
  7889. while (i--) {
  7890. var key = keys[i];
  7891. if (true) {
  7892. if (methods && hasOwn(methods, key)) {
  7893. warn(
  7894. ("Method \"" + key + "\" has already been defined as a data property."),
  7895. vm
  7896. );
  7897. }
  7898. }
  7899. if (props && hasOwn(props, key)) {
  7900. true && warn(
  7901. "The data property \"" + key + "\" is already declared as a prop. " +
  7902. "Use prop default value instead.",
  7903. vm
  7904. );
  7905. } else if (!isReserved(key)) {
  7906. proxy(vm, "_data", key);
  7907. }
  7908. }
  7909. // observe data
  7910. observe(data, true /* asRootData */);
  7911. }
  7912. function getData (data, vm) {
  7913. // #7573 disable dep collection when invoking data getters
  7914. pushTarget();
  7915. try {
  7916. return data.call(vm, vm)
  7917. } catch (e) {
  7918. handleError(e, vm, "data()");
  7919. return {}
  7920. } finally {
  7921. popTarget();
  7922. }
  7923. }
  7924. var computedWatcherOptions = { lazy: true };
  7925. function initComputed (vm, computed) {
  7926. // $flow-disable-line
  7927. var watchers = vm._computedWatchers = Object.create(null);
  7928. // computed properties are just getters during SSR
  7929. var isSSR = isServerRendering();
  7930. for (var key in computed) {
  7931. var userDef = computed[key];
  7932. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  7933. if ( true && getter == null) {
  7934. warn(
  7935. ("Getter is missing for computed property \"" + key + "\"."),
  7936. vm
  7937. );
  7938. }
  7939. if (!isSSR) {
  7940. // create internal watcher for the computed property.
  7941. watchers[key] = new Watcher(
  7942. vm,
  7943. getter || noop,
  7944. noop,
  7945. computedWatcherOptions
  7946. );
  7947. }
  7948. // component-defined computed properties are already defined on the
  7949. // component prototype. We only need to define computed properties defined
  7950. // at instantiation here.
  7951. if (!(key in vm)) {
  7952. defineComputed(vm, key, userDef);
  7953. } else if (true) {
  7954. if (key in vm.$data) {
  7955. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  7956. } else if (vm.$options.props && key in vm.$options.props) {
  7957. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  7958. }
  7959. }
  7960. }
  7961. }
  7962. function defineComputed (
  7963. target,
  7964. key,
  7965. userDef
  7966. ) {
  7967. var shouldCache = !isServerRendering();
  7968. if (typeof userDef === 'function') {
  7969. sharedPropertyDefinition.get = shouldCache
  7970. ? createComputedGetter(key)
  7971. : createGetterInvoker(userDef);
  7972. sharedPropertyDefinition.set = noop;
  7973. } else {
  7974. sharedPropertyDefinition.get = userDef.get
  7975. ? shouldCache && userDef.cache !== false
  7976. ? createComputedGetter(key)
  7977. : createGetterInvoker(userDef.get)
  7978. : noop;
  7979. sharedPropertyDefinition.set = userDef.set || noop;
  7980. }
  7981. if ( true &&
  7982. sharedPropertyDefinition.set === noop) {
  7983. sharedPropertyDefinition.set = function () {
  7984. warn(
  7985. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  7986. this
  7987. );
  7988. };
  7989. }
  7990. Object.defineProperty(target, key, sharedPropertyDefinition);
  7991. }
  7992. function createComputedGetter (key) {
  7993. return function computedGetter () {
  7994. var watcher = this._computedWatchers && this._computedWatchers[key];
  7995. if (watcher) {
  7996. if (watcher.dirty) {
  7997. watcher.evaluate();
  7998. }
  7999. if (Dep.SharedObject.target) {// fixed by xxxxxx
  8000. watcher.depend();
  8001. }
  8002. return watcher.value
  8003. }
  8004. }
  8005. }
  8006. function createGetterInvoker(fn) {
  8007. return function computedGetter () {
  8008. return fn.call(this, this)
  8009. }
  8010. }
  8011. function initMethods (vm, methods) {
  8012. var props = vm.$options.props;
  8013. for (var key in methods) {
  8014. if (true) {
  8015. if (typeof methods[key] !== 'function') {
  8016. warn(
  8017. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  8018. "Did you reference the function correctly?",
  8019. vm
  8020. );
  8021. }
  8022. if (props && hasOwn(props, key)) {
  8023. warn(
  8024. ("Method \"" + key + "\" has already been defined as a prop."),
  8025. vm
  8026. );
  8027. }
  8028. if ((key in vm) && isReserved(key)) {
  8029. warn(
  8030. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  8031. "Avoid defining component methods that start with _ or $."
  8032. );
  8033. }
  8034. }
  8035. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  8036. }
  8037. }
  8038. function initWatch (vm, watch) {
  8039. for (var key in watch) {
  8040. var handler = watch[key];
  8041. if (Array.isArray(handler)) {
  8042. for (var i = 0; i < handler.length; i++) {
  8043. createWatcher(vm, key, handler[i]);
  8044. }
  8045. } else {
  8046. createWatcher(vm, key, handler);
  8047. }
  8048. }
  8049. }
  8050. function createWatcher (
  8051. vm,
  8052. expOrFn,
  8053. handler,
  8054. options
  8055. ) {
  8056. if (isPlainObject(handler)) {
  8057. options = handler;
  8058. handler = handler.handler;
  8059. }
  8060. if (typeof handler === 'string') {
  8061. handler = vm[handler];
  8062. }
  8063. return vm.$watch(expOrFn, handler, options)
  8064. }
  8065. function stateMixin (Vue) {
  8066. // flow somehow has problems with directly declared definition object
  8067. // when using Object.defineProperty, so we have to procedurally build up
  8068. // the object here.
  8069. var dataDef = {};
  8070. dataDef.get = function () { return this._data };
  8071. var propsDef = {};
  8072. propsDef.get = function () { return this._props };
  8073. if (true) {
  8074. dataDef.set = function () {
  8075. warn(
  8076. 'Avoid replacing instance root $data. ' +
  8077. 'Use nested data properties instead.',
  8078. this
  8079. );
  8080. };
  8081. propsDef.set = function () {
  8082. warn("$props is readonly.", this);
  8083. };
  8084. }
  8085. Object.defineProperty(Vue.prototype, '$data', dataDef);
  8086. Object.defineProperty(Vue.prototype, '$props', propsDef);
  8087. Vue.prototype.$set = set;
  8088. Vue.prototype.$delete = del;
  8089. Vue.prototype.$watch = function (
  8090. expOrFn,
  8091. cb,
  8092. options
  8093. ) {
  8094. var vm = this;
  8095. if (isPlainObject(cb)) {
  8096. return createWatcher(vm, expOrFn, cb, options)
  8097. }
  8098. options = options || {};
  8099. options.user = true;
  8100. var watcher = new Watcher(vm, expOrFn, cb, options);
  8101. if (options.immediate) {
  8102. try {
  8103. cb.call(vm, watcher.value);
  8104. } catch (error) {
  8105. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  8106. }
  8107. }
  8108. return function unwatchFn () {
  8109. watcher.teardown();
  8110. }
  8111. };
  8112. }
  8113. /* */
  8114. var uid$3 = 0;
  8115. function initMixin (Vue) {
  8116. Vue.prototype._init = function (options) {
  8117. var vm = this;
  8118. // a uid
  8119. vm._uid = uid$3++;
  8120. var startTag, endTag;
  8121. /* istanbul ignore if */
  8122. if ( true && config.performance && mark) {
  8123. startTag = "vue-perf-start:" + (vm._uid);
  8124. endTag = "vue-perf-end:" + (vm._uid);
  8125. mark(startTag);
  8126. }
  8127. // a flag to avoid this being observed
  8128. vm._isVue = true;
  8129. // merge options
  8130. if (options && options._isComponent) {
  8131. // optimize internal component instantiation
  8132. // since dynamic options merging is pretty slow, and none of the
  8133. // internal component options needs special treatment.
  8134. initInternalComponent(vm, options);
  8135. } else {
  8136. vm.$options = mergeOptions(
  8137. resolveConstructorOptions(vm.constructor),
  8138. options || {},
  8139. vm
  8140. );
  8141. }
  8142. /* istanbul ignore else */
  8143. if (true) {
  8144. initProxy(vm);
  8145. } else {}
  8146. // expose real self
  8147. vm._self = vm;
  8148. initLifecycle(vm);
  8149. initEvents(vm);
  8150. initRender(vm);
  8151. callHook(vm, 'beforeCreate');
  8152. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  8153. initState(vm);
  8154. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  8155. !vm._$fallback && callHook(vm, 'created');
  8156. /* istanbul ignore if */
  8157. if ( true && config.performance && mark) {
  8158. vm._name = formatComponentName(vm, false);
  8159. mark(endTag);
  8160. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  8161. }
  8162. if (vm.$options.el) {
  8163. vm.$mount(vm.$options.el);
  8164. }
  8165. };
  8166. }
  8167. function initInternalComponent (vm, options) {
  8168. var opts = vm.$options = Object.create(vm.constructor.options);
  8169. // doing this because it's faster than dynamic enumeration.
  8170. var parentVnode = options._parentVnode;
  8171. opts.parent = options.parent;
  8172. opts._parentVnode = parentVnode;
  8173. var vnodeComponentOptions = parentVnode.componentOptions;
  8174. opts.propsData = vnodeComponentOptions.propsData;
  8175. opts._parentListeners = vnodeComponentOptions.listeners;
  8176. opts._renderChildren = vnodeComponentOptions.children;
  8177. opts._componentTag = vnodeComponentOptions.tag;
  8178. if (options.render) {
  8179. opts.render = options.render;
  8180. opts.staticRenderFns = options.staticRenderFns;
  8181. }
  8182. }
  8183. function resolveConstructorOptions (Ctor) {
  8184. var options = Ctor.options;
  8185. if (Ctor.super) {
  8186. var superOptions = resolveConstructorOptions(Ctor.super);
  8187. var cachedSuperOptions = Ctor.superOptions;
  8188. if (superOptions !== cachedSuperOptions) {
  8189. // super option changed,
  8190. // need to resolve new options.
  8191. Ctor.superOptions = superOptions;
  8192. // check if there are any late-modified/attached options (#4976)
  8193. var modifiedOptions = resolveModifiedOptions(Ctor);
  8194. // update base extend options
  8195. if (modifiedOptions) {
  8196. extend(Ctor.extendOptions, modifiedOptions);
  8197. }
  8198. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  8199. if (options.name) {
  8200. options.components[options.name] = Ctor;
  8201. }
  8202. }
  8203. }
  8204. return options
  8205. }
  8206. function resolveModifiedOptions (Ctor) {
  8207. var modified;
  8208. var latest = Ctor.options;
  8209. var sealed = Ctor.sealedOptions;
  8210. for (var key in latest) {
  8211. if (latest[key] !== sealed[key]) {
  8212. if (!modified) { modified = {}; }
  8213. modified[key] = latest[key];
  8214. }
  8215. }
  8216. return modified
  8217. }
  8218. function Vue (options) {
  8219. if ( true &&
  8220. !(this instanceof Vue)
  8221. ) {
  8222. warn('Vue is a constructor and should be called with the `new` keyword');
  8223. }
  8224. this._init(options);
  8225. }
  8226. initMixin(Vue);
  8227. stateMixin(Vue);
  8228. eventsMixin(Vue);
  8229. lifecycleMixin(Vue);
  8230. renderMixin(Vue);
  8231. /* */
  8232. function initUse (Vue) {
  8233. Vue.use = function (plugin) {
  8234. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  8235. if (installedPlugins.indexOf(plugin) > -1) {
  8236. return this
  8237. }
  8238. // additional parameters
  8239. var args = toArray(arguments, 1);
  8240. args.unshift(this);
  8241. if (typeof plugin.install === 'function') {
  8242. plugin.install.apply(plugin, args);
  8243. } else if (typeof plugin === 'function') {
  8244. plugin.apply(null, args);
  8245. }
  8246. installedPlugins.push(plugin);
  8247. return this
  8248. };
  8249. }
  8250. /* */
  8251. function initMixin$1 (Vue) {
  8252. Vue.mixin = function (mixin) {
  8253. this.options = mergeOptions(this.options, mixin);
  8254. return this
  8255. };
  8256. }
  8257. /* */
  8258. function initExtend (Vue) {
  8259. /**
  8260. * Each instance constructor, including Vue, has a unique
  8261. * cid. This enables us to create wrapped "child
  8262. * constructors" for prototypal inheritance and cache them.
  8263. */
  8264. Vue.cid = 0;
  8265. var cid = 1;
  8266. /**
  8267. * Class inheritance
  8268. */
  8269. Vue.extend = function (extendOptions) {
  8270. extendOptions = extendOptions || {};
  8271. var Super = this;
  8272. var SuperId = Super.cid;
  8273. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  8274. if (cachedCtors[SuperId]) {
  8275. return cachedCtors[SuperId]
  8276. }
  8277. var name = extendOptions.name || Super.options.name;
  8278. if ( true && name) {
  8279. validateComponentName(name);
  8280. }
  8281. var Sub = function VueComponent (options) {
  8282. this._init(options);
  8283. };
  8284. Sub.prototype = Object.create(Super.prototype);
  8285. Sub.prototype.constructor = Sub;
  8286. Sub.cid = cid++;
  8287. Sub.options = mergeOptions(
  8288. Super.options,
  8289. extendOptions
  8290. );
  8291. Sub['super'] = Super;
  8292. // For props and computed properties, we define the proxy getters on
  8293. // the Vue instances at extension time, on the extended prototype. This
  8294. // avoids Object.defineProperty calls for each instance created.
  8295. if (Sub.options.props) {
  8296. initProps$1(Sub);
  8297. }
  8298. if (Sub.options.computed) {
  8299. initComputed$1(Sub);
  8300. }
  8301. // allow further extension/mixin/plugin usage
  8302. Sub.extend = Super.extend;
  8303. Sub.mixin = Super.mixin;
  8304. Sub.use = Super.use;
  8305. // create asset registers, so extended classes
  8306. // can have their private assets too.
  8307. ASSET_TYPES.forEach(function (type) {
  8308. Sub[type] = Super[type];
  8309. });
  8310. // enable recursive self-lookup
  8311. if (name) {
  8312. Sub.options.components[name] = Sub;
  8313. }
  8314. // keep a reference to the super options at extension time.
  8315. // later at instantiation we can check if Super's options have
  8316. // been updated.
  8317. Sub.superOptions = Super.options;
  8318. Sub.extendOptions = extendOptions;
  8319. Sub.sealedOptions = extend({}, Sub.options);
  8320. // cache constructor
  8321. cachedCtors[SuperId] = Sub;
  8322. return Sub
  8323. };
  8324. }
  8325. function initProps$1 (Comp) {
  8326. var props = Comp.options.props;
  8327. for (var key in props) {
  8328. proxy(Comp.prototype, "_props", key);
  8329. }
  8330. }
  8331. function initComputed$1 (Comp) {
  8332. var computed = Comp.options.computed;
  8333. for (var key in computed) {
  8334. defineComputed(Comp.prototype, key, computed[key]);
  8335. }
  8336. }
  8337. /* */
  8338. function initAssetRegisters (Vue) {
  8339. /**
  8340. * Create asset registration methods.
  8341. */
  8342. ASSET_TYPES.forEach(function (type) {
  8343. Vue[type] = function (
  8344. id,
  8345. definition
  8346. ) {
  8347. if (!definition) {
  8348. return this.options[type + 's'][id]
  8349. } else {
  8350. /* istanbul ignore if */
  8351. if ( true && type === 'component') {
  8352. validateComponentName(id);
  8353. }
  8354. if (type === 'component' && isPlainObject(definition)) {
  8355. definition.name = definition.name || id;
  8356. definition = this.options._base.extend(definition);
  8357. }
  8358. if (type === 'directive' && typeof definition === 'function') {
  8359. definition = { bind: definition, update: definition };
  8360. }
  8361. this.options[type + 's'][id] = definition;
  8362. return definition
  8363. }
  8364. };
  8365. });
  8366. }
  8367. /* */
  8368. function getComponentName (opts) {
  8369. return opts && (opts.Ctor.options.name || opts.tag)
  8370. }
  8371. function matches (pattern, name) {
  8372. if (Array.isArray(pattern)) {
  8373. return pattern.indexOf(name) > -1
  8374. } else if (typeof pattern === 'string') {
  8375. return pattern.split(',').indexOf(name) > -1
  8376. } else if (isRegExp(pattern)) {
  8377. return pattern.test(name)
  8378. }
  8379. /* istanbul ignore next */
  8380. return false
  8381. }
  8382. function pruneCache (keepAliveInstance, filter) {
  8383. var cache = keepAliveInstance.cache;
  8384. var keys = keepAliveInstance.keys;
  8385. var _vnode = keepAliveInstance._vnode;
  8386. for (var key in cache) {
  8387. var cachedNode = cache[key];
  8388. if (cachedNode) {
  8389. var name = getComponentName(cachedNode.componentOptions);
  8390. if (name && !filter(name)) {
  8391. pruneCacheEntry(cache, key, keys, _vnode);
  8392. }
  8393. }
  8394. }
  8395. }
  8396. function pruneCacheEntry (
  8397. cache,
  8398. key,
  8399. keys,
  8400. current
  8401. ) {
  8402. var cached$$1 = cache[key];
  8403. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  8404. cached$$1.componentInstance.$destroy();
  8405. }
  8406. cache[key] = null;
  8407. remove(keys, key);
  8408. }
  8409. var patternTypes = [String, RegExp, Array];
  8410. var KeepAlive = {
  8411. name: 'keep-alive',
  8412. abstract: true,
  8413. props: {
  8414. include: patternTypes,
  8415. exclude: patternTypes,
  8416. max: [String, Number]
  8417. },
  8418. created: function created () {
  8419. this.cache = Object.create(null);
  8420. this.keys = [];
  8421. },
  8422. destroyed: function destroyed () {
  8423. for (var key in this.cache) {
  8424. pruneCacheEntry(this.cache, key, this.keys);
  8425. }
  8426. },
  8427. mounted: function mounted () {
  8428. var this$1 = this;
  8429. this.$watch('include', function (val) {
  8430. pruneCache(this$1, function (name) { return matches(val, name); });
  8431. });
  8432. this.$watch('exclude', function (val) {
  8433. pruneCache(this$1, function (name) { return !matches(val, name); });
  8434. });
  8435. },
  8436. render: function render () {
  8437. var slot = this.$slots.default;
  8438. var vnode = getFirstComponentChild(slot);
  8439. var componentOptions = vnode && vnode.componentOptions;
  8440. if (componentOptions) {
  8441. // check pattern
  8442. var name = getComponentName(componentOptions);
  8443. var ref = this;
  8444. var include = ref.include;
  8445. var exclude = ref.exclude;
  8446. if (
  8447. // not included
  8448. (include && (!name || !matches(include, name))) ||
  8449. // excluded
  8450. (exclude && name && matches(exclude, name))
  8451. ) {
  8452. return vnode
  8453. }
  8454. var ref$1 = this;
  8455. var cache = ref$1.cache;
  8456. var keys = ref$1.keys;
  8457. var key = vnode.key == null
  8458. // same constructor may get registered as different local components
  8459. // so cid alone is not enough (#3269)
  8460. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  8461. : vnode.key;
  8462. if (cache[key]) {
  8463. vnode.componentInstance = cache[key].componentInstance;
  8464. // make current key freshest
  8465. remove(keys, key);
  8466. keys.push(key);
  8467. } else {
  8468. cache[key] = vnode;
  8469. keys.push(key);
  8470. // prune oldest entry
  8471. if (this.max && keys.length > parseInt(this.max)) {
  8472. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  8473. }
  8474. }
  8475. vnode.data.keepAlive = true;
  8476. }
  8477. return vnode || (slot && slot[0])
  8478. }
  8479. };
  8480. var builtInComponents = {
  8481. KeepAlive: KeepAlive
  8482. };
  8483. /* */
  8484. function initGlobalAPI (Vue) {
  8485. // config
  8486. var configDef = {};
  8487. configDef.get = function () { return config; };
  8488. if (true) {
  8489. configDef.set = function () {
  8490. warn(
  8491. 'Do not replace the Vue.config object, set individual fields instead.'
  8492. );
  8493. };
  8494. }
  8495. Object.defineProperty(Vue, 'config', configDef);
  8496. // exposed util methods.
  8497. // NOTE: these are not considered part of the public API - avoid relying on
  8498. // them unless you are aware of the risk.
  8499. Vue.util = {
  8500. warn: warn,
  8501. extend: extend,
  8502. mergeOptions: mergeOptions,
  8503. defineReactive: defineReactive$$1
  8504. };
  8505. Vue.set = set;
  8506. Vue.delete = del;
  8507. Vue.nextTick = nextTick;
  8508. // 2.6 explicit observable API
  8509. Vue.observable = function (obj) {
  8510. observe(obj);
  8511. return obj
  8512. };
  8513. Vue.options = Object.create(null);
  8514. ASSET_TYPES.forEach(function (type) {
  8515. Vue.options[type + 's'] = Object.create(null);
  8516. });
  8517. // this is used to identify the "base" constructor to extend all plain-object
  8518. // components with in Weex's multi-instance scenarios.
  8519. Vue.options._base = Vue;
  8520. extend(Vue.options.components, builtInComponents);
  8521. initUse(Vue);
  8522. initMixin$1(Vue);
  8523. initExtend(Vue);
  8524. initAssetRegisters(Vue);
  8525. }
  8526. initGlobalAPI(Vue);
  8527. Object.defineProperty(Vue.prototype, '$isServer', {
  8528. get: isServerRendering
  8529. });
  8530. Object.defineProperty(Vue.prototype, '$ssrContext', {
  8531. get: function get () {
  8532. /* istanbul ignore next */
  8533. return this.$vnode && this.$vnode.ssrContext
  8534. }
  8535. });
  8536. // expose FunctionalRenderContext for ssr runtime helper installation
  8537. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  8538. value: FunctionalRenderContext
  8539. });
  8540. Vue.version = '2.6.11';
  8541. /**
  8542. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  8543. */
  8544. var ARRAYTYPE = '[object Array]';
  8545. var OBJECTTYPE = '[object Object]';
  8546. var NULLTYPE = '[object Null]';
  8547. var UNDEFINEDTYPE = '[object Undefined]';
  8548. // const FUNCTIONTYPE = '[object Function]'
  8549. function diff(current, pre) {
  8550. var result = {};
  8551. syncKeys(current, pre);
  8552. _diff(current, pre, '', result);
  8553. return result
  8554. }
  8555. function syncKeys(current, pre) {
  8556. if (current === pre) { return }
  8557. var rootCurrentType = type(current);
  8558. var rootPreType = type(pre);
  8559. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  8560. if(Object.keys(current).length >= Object.keys(pre).length){
  8561. for (var key in pre) {
  8562. var currentValue = current[key];
  8563. if (currentValue === undefined) {
  8564. current[key] = null;
  8565. } else {
  8566. syncKeys(currentValue, pre[key]);
  8567. }
  8568. }
  8569. }
  8570. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  8571. if (current.length >= pre.length) {
  8572. pre.forEach(function (item, index) {
  8573. syncKeys(current[index], item);
  8574. });
  8575. }
  8576. }
  8577. }
  8578. function nullOrUndefined(currentType, preType) {
  8579. if(
  8580. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  8581. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  8582. ) {
  8583. return false
  8584. }
  8585. return true
  8586. }
  8587. function _diff(current, pre, path, result) {
  8588. if (current === pre) { return }
  8589. var rootCurrentType = type(current);
  8590. var rootPreType = type(pre);
  8591. if (rootCurrentType == OBJECTTYPE) {
  8592. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  8593. setResult(result, path, current);
  8594. } else {
  8595. var loop = function ( key ) {
  8596. var currentValue = current[key];
  8597. var preValue = pre[key];
  8598. var currentType = type(currentValue);
  8599. var preType = type(preValue);
  8600. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  8601. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  8602. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8603. }
  8604. } else if (currentType == ARRAYTYPE) {
  8605. if (preType != ARRAYTYPE) {
  8606. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8607. } else {
  8608. if (currentValue.length < preValue.length) {
  8609. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8610. } else {
  8611. currentValue.forEach(function (item, index) {
  8612. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  8613. });
  8614. }
  8615. }
  8616. } else if (currentType == OBJECTTYPE) {
  8617. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  8618. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8619. } else {
  8620. for (var subKey in currentValue) {
  8621. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  8622. }
  8623. }
  8624. }
  8625. };
  8626. for (var key in current) loop( key );
  8627. }
  8628. } else if (rootCurrentType == ARRAYTYPE) {
  8629. if (rootPreType != ARRAYTYPE) {
  8630. setResult(result, path, current);
  8631. } else {
  8632. if (current.length < pre.length) {
  8633. setResult(result, path, current);
  8634. } else {
  8635. current.forEach(function (item, index) {
  8636. _diff(item, pre[index], path + '[' + index + ']', result);
  8637. });
  8638. }
  8639. }
  8640. } else {
  8641. setResult(result, path, current);
  8642. }
  8643. }
  8644. function setResult(result, k, v) {
  8645. // if (type(v) != FUNCTIONTYPE) {
  8646. result[k] = v;
  8647. // }
  8648. }
  8649. function type(obj) {
  8650. return Object.prototype.toString.call(obj)
  8651. }
  8652. /* */
  8653. function flushCallbacks$1(vm) {
  8654. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  8655. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"shoppingTemplate","VUE_APP_PLATFORM":"mp-toutiao","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8656. var mpInstance = vm.$scope;
  8657. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8658. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  8659. }
  8660. var copies = vm.__next_tick_callbacks.slice(0);
  8661. vm.__next_tick_callbacks.length = 0;
  8662. for (var i = 0; i < copies.length; i++) {
  8663. copies[i]();
  8664. }
  8665. }
  8666. }
  8667. function hasRenderWatcher(vm) {
  8668. return queue.find(function (watcher) { return vm._watcher === watcher; })
  8669. }
  8670. function nextTick$1(vm, cb) {
  8671. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  8672. //2.nextTick 之前存在 render watcher
  8673. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  8674. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"shoppingTemplate","VUE_APP_PLATFORM":"mp-toutiao","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8675. var mpInstance = vm.$scope;
  8676. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8677. ']:nextVueTick');
  8678. }
  8679. return nextTick(cb, vm)
  8680. }else{
  8681. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"shoppingTemplate","VUE_APP_PLATFORM":"mp-toutiao","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8682. var mpInstance$1 = vm.$scope;
  8683. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  8684. ']:nextMPTick');
  8685. }
  8686. }
  8687. var _resolve;
  8688. if (!vm.__next_tick_callbacks) {
  8689. vm.__next_tick_callbacks = [];
  8690. }
  8691. vm.__next_tick_callbacks.push(function () {
  8692. if (cb) {
  8693. try {
  8694. cb.call(vm);
  8695. } catch (e) {
  8696. handleError(e, vm, 'nextTick');
  8697. }
  8698. } else if (_resolve) {
  8699. _resolve(vm);
  8700. }
  8701. });
  8702. // $flow-disable-line
  8703. if (!cb && typeof Promise !== 'undefined') {
  8704. return new Promise(function (resolve) {
  8705. _resolve = resolve;
  8706. })
  8707. }
  8708. }
  8709. /* */
  8710. function clearInstance(key, value) {
  8711. // 简易去除 Vue 和小程序组件实例
  8712. if (value) {
  8713. if (value._isVue || value.__v_isMPComponent) {
  8714. return {}
  8715. }
  8716. }
  8717. return value
  8718. }
  8719. function cloneWithData(vm) {
  8720. // 确保当前 vm 所有数据被同步
  8721. var ret = Object.create(null);
  8722. var dataKeys = [].concat(
  8723. Object.keys(vm._data || {}),
  8724. Object.keys(vm._computedWatchers || {}));
  8725. dataKeys.reduce(function(ret, key) {
  8726. ret[key] = vm[key];
  8727. return ret
  8728. }, ret);
  8729. // vue-composition-api
  8730. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  8731. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  8732. if (rawBindings) {
  8733. Object.keys(rawBindings).forEach(function (key) {
  8734. ret[key] = vm[key];
  8735. });
  8736. }
  8737. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  8738. Object.assign(ret, vm.$mp.data || {});
  8739. if (
  8740. Array.isArray(vm.$options.behaviors) &&
  8741. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  8742. ) { //form-field
  8743. ret['name'] = vm.name;
  8744. ret['value'] = vm.value;
  8745. }
  8746. return JSON.parse(JSON.stringify(ret, clearInstance))
  8747. }
  8748. var patch = function(oldVnode, vnode) {
  8749. var this$1 = this;
  8750. if (vnode === null) { //destroy
  8751. return
  8752. }
  8753. if (this.mpType === 'page' || this.mpType === 'component') {
  8754. var mpInstance = this.$scope;
  8755. var data = Object.create(null);
  8756. try {
  8757. data = cloneWithData(this);
  8758. } catch (err) {
  8759. console.error(err);
  8760. }
  8761. data.__webviewId__ = mpInstance.data.__webviewId__;
  8762. var mpData = Object.create(null);
  8763. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  8764. mpData[key] = mpInstance.data[key];
  8765. });
  8766. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  8767. if (Object.keys(diffData).length) {
  8768. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"shoppingTemplate","VUE_APP_PLATFORM":"mp-toutiao","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8769. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  8770. ']差量更新',
  8771. JSON.stringify(diffData));
  8772. }
  8773. this.__next_tick_pending = true;
  8774. mpInstance.setData(diffData, function () {
  8775. this$1.__next_tick_pending = false;
  8776. flushCallbacks$1(this$1);
  8777. });
  8778. } else {
  8779. flushCallbacks$1(this);
  8780. }
  8781. }
  8782. };
  8783. /* */
  8784. function createEmptyRender() {
  8785. }
  8786. function mountComponent$1(
  8787. vm,
  8788. el,
  8789. hydrating
  8790. ) {
  8791. if (!vm.mpType) {//main.js 中的 new Vue
  8792. return vm
  8793. }
  8794. if (vm.mpType === 'app') {
  8795. vm.$options.render = createEmptyRender;
  8796. }
  8797. if (!vm.$options.render) {
  8798. vm.$options.render = createEmptyRender;
  8799. if (true) {
  8800. /* istanbul ignore if */
  8801. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  8802. vm.$options.el || el) {
  8803. warn(
  8804. 'You are using the runtime-only build of Vue where the template ' +
  8805. 'compiler is not available. Either pre-compile the templates into ' +
  8806. 'render functions, or use the compiler-included build.',
  8807. vm
  8808. );
  8809. } else {
  8810. warn(
  8811. 'Failed to mount component: template or render function not defined.',
  8812. vm
  8813. );
  8814. }
  8815. }
  8816. }
  8817. !vm._$fallback && callHook(vm, 'beforeMount');
  8818. var updateComponent = function () {
  8819. vm._update(vm._render(), hydrating);
  8820. };
  8821. // we set this to vm._watcher inside the watcher's constructor
  8822. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  8823. // component's mounted hook), which relies on vm._watcher being already defined
  8824. new Watcher(vm, updateComponent, noop, {
  8825. before: function before() {
  8826. if (vm._isMounted && !vm._isDestroyed) {
  8827. callHook(vm, 'beforeUpdate');
  8828. }
  8829. }
  8830. }, true /* isRenderWatcher */);
  8831. hydrating = false;
  8832. return vm
  8833. }
  8834. /* */
  8835. function renderClass (
  8836. staticClass,
  8837. dynamicClass
  8838. ) {
  8839. if (isDef(staticClass) || isDef(dynamicClass)) {
  8840. return concat(staticClass, stringifyClass(dynamicClass))
  8841. }
  8842. /* istanbul ignore next */
  8843. return ''
  8844. }
  8845. function concat (a, b) {
  8846. return a ? b ? (a + ' ' + b) : a : (b || '')
  8847. }
  8848. function stringifyClass (value) {
  8849. if (Array.isArray(value)) {
  8850. return stringifyArray(value)
  8851. }
  8852. if (isObject(value)) {
  8853. return stringifyObject(value)
  8854. }
  8855. if (typeof value === 'string') {
  8856. return value
  8857. }
  8858. /* istanbul ignore next */
  8859. return ''
  8860. }
  8861. function stringifyArray (value) {
  8862. var res = '';
  8863. var stringified;
  8864. for (var i = 0, l = value.length; i < l; i++) {
  8865. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  8866. if (res) { res += ' '; }
  8867. res += stringified;
  8868. }
  8869. }
  8870. return res
  8871. }
  8872. function stringifyObject (value) {
  8873. var res = '';
  8874. for (var key in value) {
  8875. if (value[key]) {
  8876. if (res) { res += ' '; }
  8877. res += key;
  8878. }
  8879. }
  8880. return res
  8881. }
  8882. /* */
  8883. var parseStyleText = cached(function (cssText) {
  8884. var res = {};
  8885. var listDelimiter = /;(?![^(]*\))/g;
  8886. var propertyDelimiter = /:(.+)/;
  8887. cssText.split(listDelimiter).forEach(function (item) {
  8888. if (item) {
  8889. var tmp = item.split(propertyDelimiter);
  8890. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  8891. }
  8892. });
  8893. return res
  8894. });
  8895. // normalize possible array / string values into Object
  8896. function normalizeStyleBinding (bindingStyle) {
  8897. if (Array.isArray(bindingStyle)) {
  8898. return toObject(bindingStyle)
  8899. }
  8900. if (typeof bindingStyle === 'string') {
  8901. return parseStyleText(bindingStyle)
  8902. }
  8903. return bindingStyle
  8904. }
  8905. /* */
  8906. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  8907. function getTarget(obj, path) {
  8908. var parts = path.split('.');
  8909. var key = parts[0];
  8910. if (key.indexOf('__$n') === 0) { //number index
  8911. key = parseInt(key.replace('__$n', ''));
  8912. }
  8913. if (parts.length === 1) {
  8914. return obj[key]
  8915. }
  8916. return getTarget(obj[key], parts.slice(1).join('.'))
  8917. }
  8918. function internalMixin(Vue) {
  8919. Vue.config.errorHandler = function(err, vm, info) {
  8920. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  8921. console.error(err);
  8922. /* eslint-disable no-undef */
  8923. var app = typeof getApp === 'function' && getApp();
  8924. if (app && app.onError) {
  8925. app.onError(err);
  8926. }
  8927. };
  8928. var oldEmit = Vue.prototype.$emit;
  8929. Vue.prototype.$emit = function(event) {
  8930. if (this.$scope && event) {
  8931. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  8932. if (triggerEvent) {
  8933. try {
  8934. triggerEvent.call(this.$scope, event, {
  8935. __args__: toArray(arguments, 1)
  8936. });
  8937. } catch (error) {
  8938. }
  8939. }
  8940. }
  8941. return oldEmit.apply(this, arguments)
  8942. };
  8943. Vue.prototype.$nextTick = function(fn) {
  8944. return nextTick$1(this, fn)
  8945. };
  8946. MP_METHODS.forEach(function (method) {
  8947. Vue.prototype[method] = function(args) {
  8948. if (this.$scope && this.$scope[method]) {
  8949. return this.$scope[method](args)
  8950. }
  8951. // mp-alipay
  8952. if (typeof my === 'undefined') {
  8953. return
  8954. }
  8955. if (method === 'createSelectorQuery') {
  8956. /* eslint-disable no-undef */
  8957. return my.createSelectorQuery(args)
  8958. } else if (method === 'createIntersectionObserver') {
  8959. /* eslint-disable no-undef */
  8960. return my.createIntersectionObserver(args)
  8961. }
  8962. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  8963. };
  8964. });
  8965. Vue.prototype.__init_provide = initProvide;
  8966. Vue.prototype.__init_injections = initInjections;
  8967. Vue.prototype.__call_hook = function(hook, args) {
  8968. var vm = this;
  8969. // #7573 disable dep collection when invoking lifecycle hooks
  8970. pushTarget();
  8971. var handlers = vm.$options[hook];
  8972. var info = hook + " hook";
  8973. var ret;
  8974. if (handlers) {
  8975. for (var i = 0, j = handlers.length; i < j; i++) {
  8976. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  8977. }
  8978. }
  8979. if (vm._hasHookEvent) {
  8980. vm.$emit('hook:' + hook, args);
  8981. }
  8982. popTarget();
  8983. return ret
  8984. };
  8985. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  8986. if (Array.isArray(modifiers)) {
  8987. if (modifiers.indexOf('trim') !== -1) {
  8988. value = value.trim();
  8989. }
  8990. if (modifiers.indexOf('number') !== -1) {
  8991. value = this._n(value);
  8992. }
  8993. }
  8994. if (!target) {
  8995. target = this;
  8996. }
  8997. // 解决动态属性添加
  8998. Vue.set(target, key, value);
  8999. };
  9000. Vue.prototype.__set_sync = function(target, key, value) {
  9001. if (!target) {
  9002. target = this;
  9003. }
  9004. // 解决动态属性添加
  9005. Vue.set(target, key, value);
  9006. };
  9007. Vue.prototype.__get_orig = function(item) {
  9008. if (isPlainObject(item)) {
  9009. return item['$orig'] || item
  9010. }
  9011. return item
  9012. };
  9013. Vue.prototype.__get_value = function(dataPath, target) {
  9014. return getTarget(target || this, dataPath)
  9015. };
  9016. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  9017. return renderClass(staticClass, dynamicClass)
  9018. };
  9019. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  9020. if (!dynamicStyle && !staticStyle) {
  9021. return ''
  9022. }
  9023. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  9024. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  9025. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  9026. };
  9027. Vue.prototype.__map = function(val, iteratee) {
  9028. //TODO 暂不考虑 string
  9029. var ret, i, l, keys, key;
  9030. if (Array.isArray(val)) {
  9031. ret = new Array(val.length);
  9032. for (i = 0, l = val.length; i < l; i++) {
  9033. ret[i] = iteratee(val[i], i);
  9034. }
  9035. return ret
  9036. } else if (isObject(val)) {
  9037. keys = Object.keys(val);
  9038. ret = Object.create(null);
  9039. for (i = 0, l = keys.length; i < l; i++) {
  9040. key = keys[i];
  9041. ret[key] = iteratee(val[key], key, i);
  9042. }
  9043. return ret
  9044. } else if (typeof val === 'number') {
  9045. ret = new Array(val);
  9046. for (i = 0, l = val; i < l; i++) {
  9047. // 第一个参数暂时仍和小程序一致
  9048. ret[i] = iteratee(i, i);
  9049. }
  9050. return ret
  9051. }
  9052. return []
  9053. };
  9054. }
  9055. /* */
  9056. var LIFECYCLE_HOOKS$1 = [
  9057. //App
  9058. 'onLaunch',
  9059. 'onShow',
  9060. 'onHide',
  9061. 'onUniNViewMessage',
  9062. 'onPageNotFound',
  9063. 'onThemeChange',
  9064. 'onError',
  9065. 'onUnhandledRejection',
  9066. //Page
  9067. 'onInit',
  9068. 'onLoad',
  9069. // 'onShow',
  9070. 'onReady',
  9071. // 'onHide',
  9072. 'onUnload',
  9073. 'onPullDownRefresh',
  9074. 'onReachBottom',
  9075. 'onTabItemTap',
  9076. 'onAddToFavorites',
  9077. 'onShareTimeline',
  9078. 'onShareAppMessage',
  9079. 'onResize',
  9080. 'onPageScroll',
  9081. 'onNavigationBarButtonTap',
  9082. 'onBackPress',
  9083. 'onNavigationBarSearchInputChanged',
  9084. 'onNavigationBarSearchInputConfirmed',
  9085. 'onNavigationBarSearchInputClicked',
  9086. 'onUploadDouyinVideo',
  9087. 'onNFCReadMessage',
  9088. //Component
  9089. // 'onReady', // 兼容旧版本,应该移除该事件
  9090. 'onPageShow',
  9091. 'onPageHide',
  9092. 'onPageResize'
  9093. ];
  9094. function lifecycleMixin$1(Vue) {
  9095. //fixed vue-class-component
  9096. var oldExtend = Vue.extend;
  9097. Vue.extend = function(extendOptions) {
  9098. extendOptions = extendOptions || {};
  9099. var methods = extendOptions.methods;
  9100. if (methods) {
  9101. Object.keys(methods).forEach(function (methodName) {
  9102. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  9103. extendOptions[methodName] = methods[methodName];
  9104. delete methods[methodName];
  9105. }
  9106. });
  9107. }
  9108. return oldExtend.call(this, extendOptions)
  9109. };
  9110. var strategies = Vue.config.optionMergeStrategies;
  9111. var mergeHook = strategies.created;
  9112. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  9113. strategies[hook] = mergeHook;
  9114. });
  9115. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  9116. }
  9117. /* */
  9118. // install platform patch function
  9119. Vue.prototype.__patch__ = patch;
  9120. // public mount method
  9121. Vue.prototype.$mount = function(
  9122. el ,
  9123. hydrating
  9124. ) {
  9125. return mountComponent$1(this, el, hydrating)
  9126. };
  9127. lifecycleMixin$1(Vue);
  9128. internalMixin(Vue);
  9129. /* */
  9130. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  9131. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 2)))
  9132. /***/ }),
  9133. /* 25 */
  9134. /*!**************************************!*\
  9135. !*** E:/shoppingTemplate/pages.json ***!
  9136. \**************************************/
  9137. /*! no static exports found */
  9138. /***/ (function(module, exports) {
  9139. /***/ }),
  9140. /* 26 */,
  9141. /* 27 */,
  9142. /* 28 */,
  9143. /* 29 */,
  9144. /* 30 */,
  9145. /* 31 */
  9146. /*!**********************************************************************************************************!*\
  9147. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  9148. \**********************************************************************************************************/
  9149. /*! exports provided: default */
  9150. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9151. "use strict";
  9152. __webpack_require__.r(__webpack_exports__);
  9153. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  9154. /* globals __VUE_SSR_CONTEXT__ */
  9155. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  9156. // This module is a runtime utility for cleaner component module output and will
  9157. // be included in the final webpack user bundle.
  9158. function normalizeComponent (
  9159. scriptExports,
  9160. render,
  9161. staticRenderFns,
  9162. functionalTemplate,
  9163. injectStyles,
  9164. scopeId,
  9165. moduleIdentifier, /* server only */
  9166. shadowMode, /* vue-cli only */
  9167. components, // fixed by xxxxxx auto components
  9168. renderjs // fixed by xxxxxx renderjs
  9169. ) {
  9170. // Vue.extend constructor export interop
  9171. var options = typeof scriptExports === 'function'
  9172. ? scriptExports.options
  9173. : scriptExports
  9174. // fixed by xxxxxx auto components
  9175. if (components) {
  9176. if (!options.components) {
  9177. options.components = {}
  9178. }
  9179. var hasOwn = Object.prototype.hasOwnProperty
  9180. for (var name in components) {
  9181. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  9182. options.components[name] = components[name]
  9183. }
  9184. }
  9185. }
  9186. // fixed by xxxxxx renderjs
  9187. if (renderjs) {
  9188. if(typeof renderjs.beforeCreate === 'function'){
  9189. renderjs.beforeCreate = [renderjs.beforeCreate]
  9190. }
  9191. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  9192. this[renderjs.__module] = this
  9193. });
  9194. (options.mixins || (options.mixins = [])).push(renderjs)
  9195. }
  9196. // render functions
  9197. if (render) {
  9198. options.render = render
  9199. options.staticRenderFns = staticRenderFns
  9200. options._compiled = true
  9201. }
  9202. // functional template
  9203. if (functionalTemplate) {
  9204. options.functional = true
  9205. }
  9206. // scopedId
  9207. if (scopeId) {
  9208. options._scopeId = 'data-v-' + scopeId
  9209. }
  9210. var hook
  9211. if (moduleIdentifier) { // server build
  9212. hook = function (context) {
  9213. // 2.3 injection
  9214. context =
  9215. context || // cached call
  9216. (this.$vnode && this.$vnode.ssrContext) || // stateful
  9217. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  9218. // 2.2 with runInNewContext: true
  9219. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  9220. context = __VUE_SSR_CONTEXT__
  9221. }
  9222. // inject component styles
  9223. if (injectStyles) {
  9224. injectStyles.call(this, context)
  9225. }
  9226. // register component module identifier for async chunk inferrence
  9227. if (context && context._registeredComponents) {
  9228. context._registeredComponents.add(moduleIdentifier)
  9229. }
  9230. }
  9231. // used by ssr in case component is cached and beforeCreate
  9232. // never gets called
  9233. options._ssrRegister = hook
  9234. } else if (injectStyles) {
  9235. hook = shadowMode
  9236. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  9237. : injectStyles
  9238. }
  9239. if (hook) {
  9240. if (options.functional) {
  9241. // for template-only hot-reload because in that case the render fn doesn't
  9242. // go through the normalizer
  9243. options._injectStyles = hook
  9244. // register for functioal component in vue file
  9245. var originalRender = options.render
  9246. options.render = function renderWithStyleInjection (h, context) {
  9247. hook.call(context)
  9248. return originalRender(h, context)
  9249. }
  9250. } else {
  9251. // inject component registration as beforeCreate hook
  9252. var existing = options.beforeCreate
  9253. options.beforeCreate = existing
  9254. ? [].concat(existing, hook)
  9255. : [hook]
  9256. }
  9257. }
  9258. return {
  9259. exports: scriptExports,
  9260. options: options
  9261. }
  9262. }
  9263. /***/ }),
  9264. /* 32 */
  9265. /*!****************************************************!*\
  9266. !*** E:/shoppingTemplate/uni.promisify.adaptor.js ***!
  9267. \****************************************************/
  9268. /*! no static exports found */
  9269. /***/ (function(module, exports, __webpack_require__) {
  9270. /* WEBPACK VAR INJECTION */(function(uni) {var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 12);
  9271. uni.addInterceptor({
  9272. returnValue: function returnValue(res) {
  9273. if (!(!!res && (_typeof(res) === "object" || typeof res === "function") && typeof res.then === "function")) {
  9274. return res;
  9275. }
  9276. return new Promise(function (resolve, reject) {
  9277. res.then(function (res) {
  9278. return res[0] ? reject(res[0]) : resolve(res[1]);
  9279. });
  9280. });
  9281. }
  9282. });
  9283. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  9284. /***/ }),
  9285. /* 33 */
  9286. /*!********************************************!*\
  9287. !*** E:/shoppingTemplate/common/js/api.js ***!
  9288. \********************************************/
  9289. /*! no static exports found */
  9290. /***/ (function(module, exports, __webpack_require__) {
  9291. "use strict";
  9292. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  9293. Object.defineProperty(exports, "__esModule", {
  9294. value: true
  9295. });
  9296. exports.default = void 0;
  9297. var _request = _interopRequireDefault(__webpack_require__(/*! ../js/request.js */ 34));
  9298. // 引用网络请求中间件
  9299. var _default = {
  9300. payTheBill: function payTheBill(data) {
  9301. return (0, _request.default)({
  9302. url: '/recruit/recruitmsg/payTheBill',
  9303. method: 'POST',
  9304. data: data
  9305. });
  9306. },
  9307. /**
  9308. * 福利补贴
  9309. */
  9310. welfareMoney: function welfareMoney(data) {
  9311. return (0, _request.default)({
  9312. url: '/recruit/recruitmsg/welfareMoney',
  9313. method: 'POST',
  9314. data: data
  9315. });
  9316. }
  9317. };
  9318. exports.default = _default;
  9319. /***/ }),
  9320. /* 34 */
  9321. /*!************************************************!*\
  9322. !*** E:/shoppingTemplate/common/js/request.js ***!
  9323. \************************************************/
  9324. /*! no static exports found */
  9325. /***/ (function(module, exports, __webpack_require__) {
  9326. "use strict";
  9327. /* WEBPACK VAR INJECTION */(function(uni) {
  9328. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  9329. Object.defineProperty(exports, "__esModule", {
  9330. value: true
  9331. });
  9332. exports.default = void 0;
  9333. var _env = _interopRequireDefault(__webpack_require__(/*! ../js/env.js */ 35));
  9334. function service() {
  9335. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9336. options.url = "".concat(_env.default.baseUrl).concat(options.url);
  9337. // 判断本地是否存在token,如果存在则带上请求头
  9338. var access_token = uni.getStorageSync('access_token');
  9339. var refresh_token = uni.getStorageSync('refresh_token');
  9340. options.header = {
  9341. 'Tenant-Id': '000000',
  9342. 'Authorization': 'Basic c3dvcmQ6c3dvcmRfc2VjcmV0',
  9343. 'content-type': 'application/json',
  9344. 'Blade-Auth': access_token,
  9345. 'refresh_token': refresh_token
  9346. };
  9347. // resolved是返回成功数据,rejected返回错误数据
  9348. return new Promise(function (resolved, rejected) {
  9349. options.success = function (res) {
  9350. // 如果请求回来的状态码不是200则执行以下操作
  9351. if (res.data.code !== 200) {
  9352. // 非成功状态码弹窗
  9353. uni.showToast({
  9354. icon: 'none',
  9355. duration: 3000,
  9356. title: "".concat(res.data.msg)
  9357. });
  9358. // 这里可以做一些状态码判断以及操作
  9359. // 返回错误信息
  9360. rejected(res);
  9361. if (res.data.code === 401) {
  9362. uni.navigateTo({
  9363. url: '/pages/welcome/index'
  9364. });
  9365. }
  9366. } else {
  9367. // 请求回来的状态码为200则返回内容
  9368. resolved(res);
  9369. }
  9370. };
  9371. options.fail = function (err) {
  9372. // 请求失败弹窗
  9373. uni.showToast({
  9374. icon: 'none',
  9375. duration: 3000,
  9376. title: '系统繁忙,请稍后再试'
  9377. });
  9378. rejected(err);
  9379. };
  9380. uni.request(options);
  9381. });
  9382. }
  9383. var _default = service;
  9384. exports.default = _default;
  9385. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  9386. /***/ }),
  9387. /* 35 */
  9388. /*!********************************************!*\
  9389. !*** E:/shoppingTemplate/common/js/env.js ***!
  9390. \********************************************/
  9391. /*! no static exports found */
  9392. /***/ (function(module, exports, __webpack_require__) {
  9393. "use strict";
  9394. // 变量可自行添加修改
  9395. Object.defineProperty(exports, "__esModule", {
  9396. value: true
  9397. });
  9398. exports.default = void 0;
  9399. var _default = {
  9400. //存放变量的容器
  9401. appid: '__UNI__1EEA945',
  9402. // baseUrl: 'https://recruit.gzzzyd.com/api'
  9403. // baseUrl: 'http://127.0.0.1:8888',
  9404. baseUrl: 'http://192.168.0.108:8888',
  9405. uploadUrl: '/v1/file/put-file'
  9406. };
  9407. exports.default = _default;
  9408. /***/ }),
  9409. /* 36 */
  9410. /*!**********************************************************!*\
  9411. !*** E:/shoppingTemplate/node_modules/uview-ui/index.js ***!
  9412. \**********************************************************/
  9413. /*! no static exports found */
  9414. /***/ (function(module, exports, __webpack_require__) {
  9415. "use strict";
  9416. /* WEBPACK VAR INJECTION */(function(uni) {
  9417. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  9418. Object.defineProperty(exports, "__esModule", {
  9419. value: true
  9420. });
  9421. exports.default = void 0;
  9422. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 10));
  9423. var _mixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mixin.js */ 37));
  9424. var _mpMixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mpMixin.js */ 38));
  9425. var _luchRequest = _interopRequireDefault(__webpack_require__(/*! ./libs/luch-request */ 39));
  9426. var _route = _interopRequireDefault(__webpack_require__(/*! ./libs/util/route.js */ 57));
  9427. var _colorGradient = _interopRequireDefault(__webpack_require__(/*! ./libs/function/colorGradient.js */ 61));
  9428. var _test = _interopRequireDefault(__webpack_require__(/*! ./libs/function/test.js */ 62));
  9429. var _debounce = _interopRequireDefault(__webpack_require__(/*! ./libs/function/debounce.js */ 63));
  9430. var _throttle = _interopRequireDefault(__webpack_require__(/*! ./libs/function/throttle.js */ 64));
  9431. var _index = _interopRequireDefault(__webpack_require__(/*! ./libs/function/index.js */ 65));
  9432. var _config = _interopRequireDefault(__webpack_require__(/*! ./libs/config/config.js */ 68));
  9433. var _props = _interopRequireDefault(__webpack_require__(/*! ./libs/config/props.js */ 69));
  9434. var _zIndex = _interopRequireDefault(__webpack_require__(/*! ./libs/config/zIndex.js */ 159));
  9435. var _color = _interopRequireDefault(__webpack_require__(/*! ./libs/config/color.js */ 117));
  9436. var _platform = _interopRequireDefault(__webpack_require__(/*! ./libs/function/platform */ 160));
  9437. 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; }
  9438. 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; }
  9439. // 看到此报错,是因为没有配置vue.config.js的【transpileDependencies】,详见:https://www.uviewui.com/components/npmSetting.html#_5-cli模式额外配置
  9440. var pleaseSetTranspileDependencies = {},
  9441. babelTest = pleaseSetTranspileDependencies === null || pleaseSetTranspileDependencies === void 0 ? void 0 : pleaseSetTranspileDependencies.test;
  9442. // 引入全局mixin
  9443. var $u = _objectSpread(_objectSpread({
  9444. route: _route.default,
  9445. date: _index.default.timeFormat,
  9446. // 另名date
  9447. colorGradient: _colorGradient.default.colorGradient,
  9448. hexToRgb: _colorGradient.default.hexToRgb,
  9449. rgbToHex: _colorGradient.default.rgbToHex,
  9450. colorToRgba: _colorGradient.default.colorToRgba,
  9451. test: _test.default,
  9452. type: ['primary', 'success', 'error', 'warning', 'info'],
  9453. http: new _luchRequest.default(),
  9454. config: _config.default,
  9455. // uView配置信息相关,比如版本号
  9456. zIndex: _zIndex.default,
  9457. debounce: _debounce.default,
  9458. throttle: _throttle.default,
  9459. mixin: _mixin.default,
  9460. mpMixin: _mpMixin.default,
  9461. props: _props.default
  9462. }, _index.default), {}, {
  9463. color: _color.default,
  9464. platform: _platform.default
  9465. });
  9466. // $u挂载到uni对象上
  9467. uni.$u = $u;
  9468. var install = function install(Vue) {
  9469. // 时间格式化,同时两个名称,date和timeFormat
  9470. Vue.filter('timeFormat', function (timestamp, format) {
  9471. return uni.$u.timeFormat(timestamp, format);
  9472. });
  9473. Vue.filter('date', function (timestamp, format) {
  9474. return uni.$u.timeFormat(timestamp, format);
  9475. });
  9476. // 将多久以前的方法,注入到全局过滤器
  9477. Vue.filter('timeFrom', function (timestamp, format) {
  9478. return uni.$u.timeFrom(timestamp, format);
  9479. });
  9480. // 同时挂载到uni和Vue.prototype中
  9481. // 只有vue,挂载到Vue.prototype才有意义,因为nvue中全局Vue.prototype和Vue.mixin是无效的
  9482. Vue.prototype.$u = $u;
  9483. Vue.mixin(_mixin.default);
  9484. };
  9485. var _default = {
  9486. install: install
  9487. };
  9488. exports.default = _default;
  9489. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  9490. /***/ }),
  9491. /* 37 */
  9492. /*!*********************************************************************!*\
  9493. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/mixin/mixin.js ***!
  9494. \*********************************************************************/
  9495. /*! no static exports found */
  9496. /***/ (function(module, exports, __webpack_require__) {
  9497. /* WEBPACK VAR INJECTION */(function(uni) {module.exports = {
  9498. // 定义每个组件都可能需要用到的外部样式以及类名
  9499. props: {
  9500. // 每个组件都有的父组件传递的样式,可以为字符串或者对象形式
  9501. customStyle: {
  9502. type: [Object, String],
  9503. default: function _default() {
  9504. return {};
  9505. }
  9506. },
  9507. customClass: {
  9508. type: String,
  9509. default: ''
  9510. },
  9511. // 跳转的页面路径
  9512. url: {
  9513. type: String,
  9514. default: ''
  9515. },
  9516. // 页面跳转的类型
  9517. linkType: {
  9518. type: String,
  9519. default: 'navigateTo'
  9520. }
  9521. },
  9522. data: function data() {
  9523. return {};
  9524. },
  9525. onLoad: function onLoad() {
  9526. // getRect挂载到$u上,因为这方法需要使用in(this),所以无法把它独立成一个单独的文件导出
  9527. this.$u.getRect = this.$uGetRect;
  9528. },
  9529. created: function created() {
  9530. // 组件当中,只有created声明周期,为了能在组件使用,故也在created中将方法挂载到$u
  9531. this.$u.getRect = this.$uGetRect;
  9532. },
  9533. computed: {
  9534. // 在2.x版本中,将会把$u挂载到uni对象下,导致在模板中无法使用uni.$u.xxx形式
  9535. // 所以这里通过computed计算属性将其附加到this.$u上,就可以在模板或者js中使用uni.$u.xxx
  9536. // 只在nvue环境通过此方式引入完整的$u,其他平台会出现性能问题,非nvue则按需引入(主要原因是props过大)
  9537. $u: function $u() {
  9538. // 在非nvue端,移除props,http,mixin等对象,避免在小程序setData时数据过大影响性能
  9539. return uni.$u.deepMerge(uni.$u, {
  9540. props: undefined,
  9541. http: undefined,
  9542. mixin: undefined
  9543. });
  9544. },
  9545. /**
  9546. * 生成bem规则类名
  9547. * 由于微信小程序,H5,nvue之间绑定class的差异,无法通过:class="[bem()]"的形式进行同用
  9548. * 故采用如下折中做法,最后返回的是数组(一般平台)或字符串(支付宝和字节跳动平台),类似['a', 'b', 'c']或'a b c'的形式
  9549. * @param {String} name 组件名称
  9550. * @param {Array} fixed 一直会存在的类名
  9551. * @param {Array} change 会根据变量值为true或者false而出现或者隐藏的类名
  9552. * @returns {Array|string}
  9553. */
  9554. bem: function bem() {
  9555. return function (name, fixed, change) {
  9556. var _this = this;
  9557. // 类名前缀
  9558. var prefix = "u-".concat(name, "--");
  9559. var classes = {};
  9560. if (fixed) {
  9561. fixed.map(function (item) {
  9562. // 这里的类名,会一直存在
  9563. classes[prefix + _this[item]] = true;
  9564. });
  9565. }
  9566. if (change) {
  9567. change.map(function (item) {
  9568. // 这里的类名,会根据this[item]的值为true或者false,而进行添加或者移除某一个类
  9569. _this[item] ? classes[prefix + item] = _this[item] : delete classes[prefix + item];
  9570. });
  9571. }
  9572. return Object.keys(classes)
  9573. // 支付宝,头条小程序无法动态绑定一个数组类名,否则解析出来的结果会带有",",而导致失效
  9574. .join(' ');
  9575. };
  9576. }
  9577. },
  9578. methods: {
  9579. // 跳转某一个页面
  9580. openPage: function openPage() {
  9581. var urlKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'url';
  9582. var url = this[urlKey];
  9583. if (url) {
  9584. // 执行类似uni.navigateTo的方法
  9585. uni[this.linkType]({
  9586. url: url
  9587. });
  9588. }
  9589. },
  9590. // 查询节点信息
  9591. // 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
  9592. // 解决办法为在组件根部再套一个没有任何作用的view元素
  9593. $uGetRect: function $uGetRect(selector, all) {
  9594. var _this2 = this;
  9595. return new Promise(function (resolve) {
  9596. uni.createSelectorQuery().in(_this2)[all ? 'selectAll' : 'select'](selector).boundingClientRect(function (rect) {
  9597. if (all && Array.isArray(rect) && rect.length) {
  9598. resolve(rect);
  9599. }
  9600. if (!all && rect) {
  9601. resolve(rect);
  9602. }
  9603. }).exec();
  9604. });
  9605. },
  9606. getParentData: function getParentData() {
  9607. var _this3 = this;
  9608. var parentName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  9609. // 避免在created中去定义parent变量
  9610. if (!this.parent) this.parent = {};
  9611. // 这里的本质原理是,通过获取父组件实例(也即类似u-radio的父组件u-radio-group的this)
  9612. // 将父组件this中对应的参数,赋值给本组件(u-radio的this)的parentData对象中对应的属性
  9613. // 之所以需要这么做,是因为所有端中,头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
  9614. // 此处并不会自动更新子组件的数据,而是依赖父组件u-radio-group去监听data的变化,手动调用更新子组件的方法去重新获取
  9615. this.parent = uni.$u.$parent.call(this, parentName);
  9616. if (this.parent.children) {
  9617. // 如果父组件的children不存在本组件的实例,才将本实例添加到父组件的children中
  9618. this.parent.children.indexOf(this) === -1 && this.parent.children.push(this);
  9619. }
  9620. if (this.parent && this.parentData) {
  9621. // 历遍parentData中的属性,将parent中的同名属性赋值给parentData
  9622. Object.keys(this.parentData).map(function (key) {
  9623. _this3.parentData[key] = _this3.parent[key];
  9624. });
  9625. }
  9626. },
  9627. // 阻止事件冒泡
  9628. preventEvent: function preventEvent(e) {
  9629. e && typeof e.stopPropagation === 'function' && e.stopPropagation();
  9630. },
  9631. // 空操作
  9632. noop: function noop(e) {
  9633. this.preventEvent(e);
  9634. }
  9635. },
  9636. onReachBottom: function onReachBottom() {
  9637. uni.$emit('uOnReachBottom');
  9638. },
  9639. beforeDestroy: function beforeDestroy() {
  9640. var _this4 = this;
  9641. // 判断当前页面是否存在parent和chldren,一般在checkbox和checkbox-group父子联动的场景会有此情况
  9642. // 组件销毁时,移除子组件在父组件children数组中的实例,释放资源,避免数据混乱
  9643. if (this.parent && uni.$u.test.array(this.parent.children)) {
  9644. // 组件销毁时,移除父组件中的children数组中对应的实例
  9645. var childrenList = this.parent.children;
  9646. childrenList.map(function (child, index) {
  9647. // 如果相等,则移除
  9648. if (child === _this4) {
  9649. childrenList.splice(index, 1);
  9650. }
  9651. });
  9652. }
  9653. }
  9654. };
  9655. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  9656. /***/ }),
  9657. /* 38 */
  9658. /*!***********************************************************************!*\
  9659. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/mixin/mpMixin.js ***!
  9660. \***********************************************************************/
  9661. /*! no static exports found */
  9662. /***/ (function(module, exports, __webpack_require__) {
  9663. "use strict";
  9664. Object.defineProperty(exports, "__esModule", {
  9665. value: true
  9666. });
  9667. exports.default = void 0;
  9668. var _default = {};
  9669. exports.default = _default;
  9670. /***/ }),
  9671. /* 39 */
  9672. /*!****************************************************************************!*\
  9673. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/luch-request/index.js ***!
  9674. \****************************************************************************/
  9675. /*! no static exports found */
  9676. /***/ (function(module, exports, __webpack_require__) {
  9677. "use strict";
  9678. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  9679. Object.defineProperty(exports, "__esModule", {
  9680. value: true
  9681. });
  9682. exports.default = void 0;
  9683. var _Request = _interopRequireDefault(__webpack_require__(/*! ./core/Request */ 40));
  9684. var _default = _Request.default;
  9685. exports.default = _default;
  9686. /***/ }),
  9687. /* 40 */
  9688. /*!***********************************************************************************!*\
  9689. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/luch-request/core/Request.js ***!
  9690. \***********************************************************************************/
  9691. /*! no static exports found */
  9692. /***/ (function(module, exports, __webpack_require__) {
  9693. "use strict";
  9694. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  9695. Object.defineProperty(exports, "__esModule", {
  9696. value: true
  9697. });
  9698. exports.default = void 0;
  9699. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 10));
  9700. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 17));
  9701. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 18));
  9702. var _dispatchRequest = _interopRequireDefault(__webpack_require__(/*! ./dispatchRequest */ 41));
  9703. var _InterceptorManager = _interopRequireDefault(__webpack_require__(/*! ./InterceptorManager */ 49));
  9704. var _mergeConfig = _interopRequireDefault(__webpack_require__(/*! ./mergeConfig */ 50));
  9705. var _defaults = _interopRequireDefault(__webpack_require__(/*! ./defaults */ 51));
  9706. var _utils = __webpack_require__(/*! ../utils */ 44);
  9707. var _clone = _interopRequireDefault(__webpack_require__(/*! ../utils/clone */ 52));
  9708. 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; }
  9709. 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; }
  9710. var Request = /*#__PURE__*/function () {
  9711. /**
  9712. * @param {Object} arg - 全局配置
  9713. * @param {String} arg.baseURL - 全局根路径
  9714. * @param {Object} arg.header - 全局header
  9715. * @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 全局默认请求方式
  9716. * @param {String} arg.dataType = [json] - 全局默认的dataType
  9717. * @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。支付宝小程序不支持
  9718. * @param {Object} arg.custom - 全局默认的自定义参数
  9719. * @param {Number} arg.timeout - 全局默认的超时时间,单位 ms。默认60000。H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序(2.10.0)、支付宝小程序
  9720. * @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持(HBuilderX 2.3.3+)
  9721. * @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证(cookies)。默认false。仅H5支持(HBuilderX 2.6.15+)
  9722. * @param {Boolean} arg.firstIpv4 - 全DNS解析时优先使用ipv4。默认false。仅 App-Android 支持 (HBuilderX 2.8.0+)
  9723. * @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
  9724. */
  9725. function Request() {
  9726. var arg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9727. (0, _classCallCheck2.default)(this, Request);
  9728. if (!(0, _utils.isPlainObject)(arg)) {
  9729. arg = {};
  9730. console.warn('设置全局参数必须接收一个Object');
  9731. }
  9732. this.config = (0, _clone.default)(_objectSpread(_objectSpread({}, _defaults.default), arg));
  9733. this.interceptors = {
  9734. request: new _InterceptorManager.default(),
  9735. response: new _InterceptorManager.default()
  9736. };
  9737. }
  9738. /**
  9739. * @Function
  9740. * @param {Request~setConfigCallback} f - 设置全局默认配置
  9741. */
  9742. (0, _createClass2.default)(Request, [{
  9743. key: "setConfig",
  9744. value: function setConfig(f) {
  9745. this.config = f(this.config);
  9746. }
  9747. }, {
  9748. key: "middleware",
  9749. value: function middleware(config) {
  9750. config = (0, _mergeConfig.default)(this.config, config);
  9751. var chain = [_dispatchRequest.default, undefined];
  9752. var promise = Promise.resolve(config);
  9753. this.interceptors.request.forEach(function (interceptor) {
  9754. chain.unshift(interceptor.fulfilled, interceptor.rejected);
  9755. });
  9756. this.interceptors.response.forEach(function (interceptor) {
  9757. chain.push(interceptor.fulfilled, interceptor.rejected);
  9758. });
  9759. while (chain.length) {
  9760. promise = promise.then(chain.shift(), chain.shift());
  9761. }
  9762. return promise;
  9763. }
  9764. /**
  9765. * @Function
  9766. * @param {Object} config - 请求配置项
  9767. * @prop {String} options.url - 请求路径
  9768. * @prop {Object} options.data - 请求参数
  9769. * @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 响应的数据类型
  9770. * @prop {Object} [options.dataType = config.dataType] - 如果设为 json,会尝试对返回的数据做一次 JSON.parse
  9771. * @prop {Object} [options.header = config.header] - 请求header
  9772. * @prop {Object} [options.method = config.method] - 请求方法
  9773. * @returns {Promise<unknown>}
  9774. */
  9775. }, {
  9776. key: "request",
  9777. value: function request() {
  9778. var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9779. return this.middleware(config);
  9780. }
  9781. }, {
  9782. key: "get",
  9783. value: function get(url) {
  9784. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9785. return this.middleware(_objectSpread({
  9786. url: url,
  9787. method: 'GET'
  9788. }, options));
  9789. }
  9790. }, {
  9791. key: "post",
  9792. value: function post(url, data) {
  9793. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9794. return this.middleware(_objectSpread({
  9795. url: url,
  9796. data: data,
  9797. method: 'POST'
  9798. }, options));
  9799. }
  9800. }, {
  9801. key: "put",
  9802. value: function put(url, data) {
  9803. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9804. return this.middleware(_objectSpread({
  9805. url: url,
  9806. data: data,
  9807. method: 'PUT'
  9808. }, options));
  9809. }
  9810. }, {
  9811. key: "upload",
  9812. value: function upload(url) {
  9813. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9814. config.url = url;
  9815. config.method = 'UPLOAD';
  9816. return this.middleware(config);
  9817. }
  9818. }, {
  9819. key: "download",
  9820. value: function download(url) {
  9821. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9822. config.url = url;
  9823. config.method = 'DOWNLOAD';
  9824. return this.middleware(config);
  9825. }
  9826. }]);
  9827. return Request;
  9828. }();
  9829. /**
  9830. * setConfig回调
  9831. * @return {Object} - 返回操作后的config
  9832. * @callback Request~setConfigCallback
  9833. * @param {Object} config - 全局默认config
  9834. */
  9835. exports.default = Request;
  9836. /***/ }),
  9837. /* 41 */
  9838. /*!*******************************************************************************************!*\
  9839. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/luch-request/core/dispatchRequest.js ***!
  9840. \*******************************************************************************************/
  9841. /*! no static exports found */
  9842. /***/ (function(module, exports, __webpack_require__) {
  9843. "use strict";
  9844. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  9845. Object.defineProperty(exports, "__esModule", {
  9846. value: true
  9847. });
  9848. exports.default = void 0;
  9849. var _index = _interopRequireDefault(__webpack_require__(/*! ../adapters/index */ 42));
  9850. var _default = function _default(config) {
  9851. return (0, _index.default)(config);
  9852. };
  9853. exports.default = _default;
  9854. /***/ }),
  9855. /* 42 */
  9856. /*!*************************************************************************************!*\
  9857. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/luch-request/adapters/index.js ***!
  9858. \*************************************************************************************/
  9859. /*! no static exports found */
  9860. /***/ (function(module, exports, __webpack_require__) {
  9861. "use strict";
  9862. /* WEBPACK VAR INJECTION */(function(uni) {
  9863. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  9864. Object.defineProperty(exports, "__esModule", {
  9865. value: true
  9866. });
  9867. exports.default = void 0;
  9868. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 10));
  9869. var _buildURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/buildURL */ 43));
  9870. var _buildFullPath = _interopRequireDefault(__webpack_require__(/*! ../core/buildFullPath */ 45));
  9871. var _settle = _interopRequireDefault(__webpack_require__(/*! ../core/settle */ 48));
  9872. var _utils = __webpack_require__(/*! ../utils */ 44);
  9873. 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; }
  9874. 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; }
  9875. /**
  9876. * 返回可选值存在的配置
  9877. * @param {Array} keys - 可选值数组
  9878. * @param {Object} config2 - 配置
  9879. * @return {{}} - 存在的配置项
  9880. */
  9881. var mergeKeys = function mergeKeys(keys, config2) {
  9882. var config = {};
  9883. keys.forEach(function (prop) {
  9884. if (!(0, _utils.isUndefined)(config2[prop])) {
  9885. config[prop] = config2[prop];
  9886. }
  9887. });
  9888. return config;
  9889. };
  9890. var _default = function _default(config) {
  9891. return new Promise(function (resolve, reject) {
  9892. var fullPath = (0, _buildURL.default)((0, _buildFullPath.default)(config.baseURL, config.url), config.params);
  9893. var _config = {
  9894. url: fullPath,
  9895. header: config.header,
  9896. complete: function complete(response) {
  9897. config.fullPath = fullPath;
  9898. response.config = config;
  9899. try {
  9900. // 对可能字符串不是json 的情况容错
  9901. if (typeof response.data === 'string') {
  9902. response.data = JSON.parse(response.data);
  9903. }
  9904. // eslint-disable-next-line no-empty
  9905. } catch (e) {}
  9906. (0, _settle.default)(resolve, reject, response);
  9907. }
  9908. };
  9909. var requestTask;
  9910. if (config.method === 'UPLOAD') {
  9911. delete _config.header['content-type'];
  9912. delete _config.header['Content-Type'];
  9913. var otherConfig = {
  9914. filePath: config.filePath,
  9915. name: config.name
  9916. };
  9917. var optionalKeys = ['formData'];
  9918. requestTask = uni.uploadFile(_objectSpread(_objectSpread(_objectSpread({}, _config), otherConfig), mergeKeys(optionalKeys, config)));
  9919. } else if (config.method === 'DOWNLOAD') {
  9920. requestTask = uni.downloadFile(_config);
  9921. } else {
  9922. var _optionalKeys = ['data', 'method', 'dataType', 'responseType'];
  9923. requestTask = uni.request(_objectSpread(_objectSpread({}, _config), mergeKeys(_optionalKeys, config)));
  9924. }
  9925. if (config.getTask) {
  9926. config.getTask(requestTask, config);
  9927. }
  9928. });
  9929. };
  9930. exports.default = _default;
  9931. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  9932. /***/ }),
  9933. /* 43 */
  9934. /*!***************************************************************************************!*\
  9935. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/luch-request/helpers/buildURL.js ***!
  9936. \***************************************************************************************/
  9937. /*! no static exports found */
  9938. /***/ (function(module, exports, __webpack_require__) {
  9939. "use strict";
  9940. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 12);
  9941. Object.defineProperty(exports, "__esModule", {
  9942. value: true
  9943. });
  9944. exports.default = buildURL;
  9945. var utils = _interopRequireWildcard(__webpack_require__(/*! ../utils */ 44));
  9946. function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
  9947. function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
  9948. function encode(val) {
  9949. return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
  9950. }
  9951. /**
  9952. * Build a URL by appending params to the end
  9953. *
  9954. * @param {string} url The base of the url (e.g., http://www.google.com)
  9955. * @param {object} [params] The params to be appended
  9956. * @returns {string} The formatted url
  9957. */
  9958. function buildURL(url, params) {
  9959. /* eslint no-param-reassign:0 */
  9960. if (!params) {
  9961. return url;
  9962. }
  9963. var serializedParams;
  9964. if (utils.isURLSearchParams(params)) {
  9965. serializedParams = params.toString();
  9966. } else {
  9967. var parts = [];
  9968. utils.forEach(params, function (val, key) {
  9969. if (val === null || typeof val === 'undefined') {
  9970. return;
  9971. }
  9972. if (utils.isArray(val)) {
  9973. key = "".concat(key, "[]");
  9974. } else {
  9975. val = [val];
  9976. }
  9977. utils.forEach(val, function (v) {
  9978. if (utils.isDate(v)) {
  9979. v = v.toISOString();
  9980. } else if (utils.isObject(v)) {
  9981. v = JSON.stringify(v);
  9982. }
  9983. parts.push("".concat(encode(key), "=").concat(encode(v)));
  9984. });
  9985. });
  9986. serializedParams = parts.join('&');
  9987. }
  9988. if (serializedParams) {
  9989. var hashmarkIndex = url.indexOf('#');
  9990. if (hashmarkIndex !== -1) {
  9991. url = url.slice(0, hashmarkIndex);
  9992. }
  9993. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  9994. }
  9995. return url;
  9996. }
  9997. /***/ }),
  9998. /* 44 */
  9999. /*!****************************************************************************!*\
  10000. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/luch-request/utils.js ***!
  10001. \****************************************************************************/
  10002. /*! no static exports found */
  10003. /***/ (function(module, exports, __webpack_require__) {
  10004. "use strict";
  10005. // utils is a library of generic helper functions non-specific to axios
  10006. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  10007. Object.defineProperty(exports, "__esModule", {
  10008. value: true
  10009. });
  10010. exports.deepMerge = deepMerge;
  10011. exports.forEach = forEach;
  10012. exports.isArray = isArray;
  10013. exports.isBoolean = isBoolean;
  10014. exports.isDate = isDate;
  10015. exports.isObject = isObject;
  10016. exports.isPlainObject = isPlainObject;
  10017. exports.isURLSearchParams = isURLSearchParams;
  10018. exports.isUndefined = isUndefined;
  10019. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 12));
  10020. var toString = Object.prototype.toString;
  10021. /**
  10022. * Determine if a value is an Array
  10023. *
  10024. * @param {Object} val The value to test
  10025. * @returns {boolean} True if value is an Array, otherwise false
  10026. */
  10027. function isArray(val) {
  10028. return toString.call(val) === '[object Array]';
  10029. }
  10030. /**
  10031. * Determine if a value is an Object
  10032. *
  10033. * @param {Object} val The value to test
  10034. * @returns {boolean} True if value is an Object, otherwise false
  10035. */
  10036. function isObject(val) {
  10037. return val !== null && (0, _typeof2.default)(val) === 'object';
  10038. }
  10039. /**
  10040. * Determine if a value is a Date
  10041. *
  10042. * @param {Object} val The value to test
  10043. * @returns {boolean} True if value is a Date, otherwise false
  10044. */
  10045. function isDate(val) {
  10046. return toString.call(val) === '[object Date]';
  10047. }
  10048. /**
  10049. * Determine if a value is a URLSearchParams object
  10050. *
  10051. * @param {Object} val The value to test
  10052. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  10053. */
  10054. function isURLSearchParams(val) {
  10055. return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
  10056. }
  10057. /**
  10058. * Iterate over an Array or an Object invoking a function for each item.
  10059. *
  10060. * If `obj` is an Array callback will be called passing
  10061. * the value, index, and complete array for each item.
  10062. *
  10063. * If 'obj' is an Object callback will be called passing
  10064. * the value, key, and complete object for each property.
  10065. *
  10066. * @param {Object|Array} obj The object to iterate
  10067. * @param {Function} fn The callback to invoke for each item
  10068. */
  10069. function forEach(obj, fn) {
  10070. // Don't bother if no value provided
  10071. if (obj === null || typeof obj === 'undefined') {
  10072. return;
  10073. }
  10074. // Force an array if not already something iterable
  10075. if ((0, _typeof2.default)(obj) !== 'object') {
  10076. /* eslint no-param-reassign:0 */
  10077. obj = [obj];
  10078. }
  10079. if (isArray(obj)) {
  10080. // Iterate over array values
  10081. for (var i = 0, l = obj.length; i < l; i++) {
  10082. fn.call(null, obj[i], i, obj);
  10083. }
  10084. } else {
  10085. // Iterate over object keys
  10086. for (var key in obj) {
  10087. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  10088. fn.call(null, obj[key], key, obj);
  10089. }
  10090. }
  10091. }
  10092. }
  10093. /**
  10094. * 是否为boolean 值
  10095. * @param val
  10096. * @returns {boolean}
  10097. */
  10098. function isBoolean(val) {
  10099. return typeof val === 'boolean';
  10100. }
  10101. /**
  10102. * 是否为真正的对象{} new Object
  10103. * @param {any} obj - 检测的对象
  10104. * @returns {boolean}
  10105. */
  10106. function isPlainObject(obj) {
  10107. return Object.prototype.toString.call(obj) === '[object Object]';
  10108. }
  10109. /**
  10110. * Function equal to merge with the difference being that no reference
  10111. * to original objects is kept.
  10112. *
  10113. * @see merge
  10114. * @param {Object} obj1 Object to merge
  10115. * @returns {Object} Result of all merge properties
  10116. */
  10117. function deepMerge( /* obj1, obj2, obj3, ... */
  10118. ) {
  10119. var result = {};
  10120. function assignValue(val, key) {
  10121. if ((0, _typeof2.default)(result[key]) === 'object' && (0, _typeof2.default)(val) === 'object') {
  10122. result[key] = deepMerge(result[key], val);
  10123. } else if ((0, _typeof2.default)(val) === 'object') {
  10124. result[key] = deepMerge({}, val);
  10125. } else {
  10126. result[key] = val;
  10127. }
  10128. }
  10129. for (var i = 0, l = arguments.length; i < l; i++) {
  10130. forEach(arguments[i], assignValue);
  10131. }
  10132. return result;
  10133. }
  10134. function isUndefined(val) {
  10135. return typeof val === 'undefined';
  10136. }
  10137. /***/ }),
  10138. /* 45 */
  10139. /*!*****************************************************************************************!*\
  10140. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/luch-request/core/buildFullPath.js ***!
  10141. \*****************************************************************************************/
  10142. /*! no static exports found */
  10143. /***/ (function(module, exports, __webpack_require__) {
  10144. "use strict";
  10145. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  10146. Object.defineProperty(exports, "__esModule", {
  10147. value: true
  10148. });
  10149. exports.default = buildFullPath;
  10150. var _isAbsoluteURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/isAbsoluteURL */ 46));
  10151. var _combineURLs = _interopRequireDefault(__webpack_require__(/*! ../helpers/combineURLs */ 47));
  10152. /**
  10153. * Creates a new URL by combining the baseURL with the requestedURL,
  10154. * only when the requestedURL is not already an absolute URL.
  10155. * If the requestURL is absolute, this function returns the requestedURL untouched.
  10156. *
  10157. * @param {string} baseURL The base URL
  10158. * @param {string} requestedURL Absolute or relative URL to combine
  10159. * @returns {string} The combined full path
  10160. */
  10161. function buildFullPath(baseURL, requestedURL) {
  10162. if (baseURL && !(0, _isAbsoluteURL.default)(requestedURL)) {
  10163. return (0, _combineURLs.default)(baseURL, requestedURL);
  10164. }
  10165. return requestedURL;
  10166. }
  10167. /***/ }),
  10168. /* 46 */
  10169. /*!********************************************************************************************!*\
  10170. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js ***!
  10171. \********************************************************************************************/
  10172. /*! no static exports found */
  10173. /***/ (function(module, exports, __webpack_require__) {
  10174. "use strict";
  10175. /**
  10176. * Determines whether the specified URL is absolute
  10177. *
  10178. * @param {string} url The URL to test
  10179. * @returns {boolean} True if the specified URL is absolute, otherwise false
  10180. */
  10181. Object.defineProperty(exports, "__esModule", {
  10182. value: true
  10183. });
  10184. exports.default = isAbsoluteURL;
  10185. function isAbsoluteURL(url) {
  10186. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  10187. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  10188. // by any combination of letters, digits, plus, period, or hyphen.
  10189. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
  10190. }
  10191. /***/ }),
  10192. /* 47 */
  10193. /*!******************************************************************************************!*\
  10194. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/luch-request/helpers/combineURLs.js ***!
  10195. \******************************************************************************************/
  10196. /*! no static exports found */
  10197. /***/ (function(module, exports, __webpack_require__) {
  10198. "use strict";
  10199. /**
  10200. * Creates a new URL by combining the specified URLs
  10201. *
  10202. * @param {string} baseURL The base URL
  10203. * @param {string} relativeURL The relative URL
  10204. * @returns {string} The combined URL
  10205. */
  10206. Object.defineProperty(exports, "__esModule", {
  10207. value: true
  10208. });
  10209. exports.default = combineURLs;
  10210. function combineURLs(baseURL, relativeURL) {
  10211. return relativeURL ? "".concat(baseURL.replace(/\/+$/, ''), "/").concat(relativeURL.replace(/^\/+/, '')) : baseURL;
  10212. }
  10213. /***/ }),
  10214. /* 48 */
  10215. /*!**********************************************************************************!*\
  10216. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/luch-request/core/settle.js ***!
  10217. \**********************************************************************************/
  10218. /*! no static exports found */
  10219. /***/ (function(module, exports, __webpack_require__) {
  10220. "use strict";
  10221. Object.defineProperty(exports, "__esModule", {
  10222. value: true
  10223. });
  10224. exports.default = settle;
  10225. /**
  10226. * Resolve or reject a Promise based on response status.
  10227. *
  10228. * @param {Function} resolve A function that resolves the promise.
  10229. * @param {Function} reject A function that rejects the promise.
  10230. * @param {object} response The response.
  10231. */
  10232. function settle(resolve, reject, response) {
  10233. var validateStatus = response.config.validateStatus;
  10234. var status = response.statusCode;
  10235. if (status && (!validateStatus || validateStatus(status))) {
  10236. resolve(response);
  10237. } else {
  10238. reject(response);
  10239. }
  10240. }
  10241. /***/ }),
  10242. /* 49 */
  10243. /*!**********************************************************************************************!*\
  10244. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/luch-request/core/InterceptorManager.js ***!
  10245. \**********************************************************************************************/
  10246. /*! no static exports found */
  10247. /***/ (function(module, exports, __webpack_require__) {
  10248. "use strict";
  10249. Object.defineProperty(exports, "__esModule", {
  10250. value: true
  10251. });
  10252. exports.default = void 0;
  10253. function InterceptorManager() {
  10254. this.handlers = [];
  10255. }
  10256. /**
  10257. * Add a new interceptor to the stack
  10258. *
  10259. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  10260. * @param {Function} rejected The function to handle `reject` for a `Promise`
  10261. *
  10262. * @return {Number} An ID used to remove interceptor later
  10263. */
  10264. InterceptorManager.prototype.use = function use(fulfilled, rejected) {
  10265. this.handlers.push({
  10266. fulfilled: fulfilled,
  10267. rejected: rejected
  10268. });
  10269. return this.handlers.length - 1;
  10270. };
  10271. /**
  10272. * Remove an interceptor from the stack
  10273. *
  10274. * @param {Number} id The ID that was returned by `use`
  10275. */
  10276. InterceptorManager.prototype.eject = function eject(id) {
  10277. if (this.handlers[id]) {
  10278. this.handlers[id] = null;
  10279. }
  10280. };
  10281. /**
  10282. * Iterate over all the registered interceptors
  10283. *
  10284. * This method is particularly useful for skipping over any
  10285. * interceptors that may have become `null` calling `eject`.
  10286. *
  10287. * @param {Function} fn The function to call for each interceptor
  10288. */
  10289. InterceptorManager.prototype.forEach = function forEach(fn) {
  10290. this.handlers.forEach(function (h) {
  10291. if (h !== null) {
  10292. fn(h);
  10293. }
  10294. });
  10295. };
  10296. var _default = InterceptorManager;
  10297. exports.default = _default;
  10298. /***/ }),
  10299. /* 50 */
  10300. /*!***************************************************************************************!*\
  10301. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/luch-request/core/mergeConfig.js ***!
  10302. \***************************************************************************************/
  10303. /*! no static exports found */
  10304. /***/ (function(module, exports, __webpack_require__) {
  10305. "use strict";
  10306. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  10307. Object.defineProperty(exports, "__esModule", {
  10308. value: true
  10309. });
  10310. exports.default = void 0;
  10311. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 10));
  10312. var _utils = __webpack_require__(/*! ../utils */ 44);
  10313. 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; }
  10314. 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; }
  10315. /**
  10316. * 合并局部配置优先的配置,如果局部有该配置项则用局部,如果全局有该配置项则用全局
  10317. * @param {Array} keys - 配置项
  10318. * @param {Object} globalsConfig - 当前的全局配置
  10319. * @param {Object} config2 - 局部配置
  10320. * @return {{}}
  10321. */
  10322. var mergeKeys = function mergeKeys(keys, globalsConfig, config2) {
  10323. var config = {};
  10324. keys.forEach(function (prop) {
  10325. if (!(0, _utils.isUndefined)(config2[prop])) {
  10326. config[prop] = config2[prop];
  10327. } else if (!(0, _utils.isUndefined)(globalsConfig[prop])) {
  10328. config[prop] = globalsConfig[prop];
  10329. }
  10330. });
  10331. return config;
  10332. };
  10333. /**
  10334. *
  10335. * @param globalsConfig - 当前实例的全局配置
  10336. * @param config2 - 当前的局部配置
  10337. * @return - 合并后的配置
  10338. */
  10339. var _default = function _default(globalsConfig) {
  10340. var config2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  10341. var method = config2.method || globalsConfig.method || 'GET';
  10342. var config = {
  10343. baseURL: globalsConfig.baseURL || '',
  10344. method: method,
  10345. url: config2.url || '',
  10346. params: config2.params || {},
  10347. custom: _objectSpread(_objectSpread({}, globalsConfig.custom || {}), config2.custom || {}),
  10348. header: (0, _utils.deepMerge)(globalsConfig.header || {}, config2.header || {})
  10349. };
  10350. var defaultToConfig2Keys = ['getTask', 'validateStatus'];
  10351. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultToConfig2Keys, globalsConfig, config2));
  10352. // eslint-disable-next-line no-empty
  10353. if (method === 'DOWNLOAD') {} else if (method === 'UPLOAD') {
  10354. delete config.header['content-type'];
  10355. delete config.header['Content-Type'];
  10356. var uploadKeys = ['filePath', 'name', 'formData'];
  10357. uploadKeys.forEach(function (prop) {
  10358. if (!(0, _utils.isUndefined)(config2[prop])) {
  10359. config[prop] = config2[prop];
  10360. }
  10361. });
  10362. } else {
  10363. var defaultsKeys = ['data', 'dataType', 'responseType'];
  10364. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultsKeys, globalsConfig, config2));
  10365. }
  10366. return config;
  10367. };
  10368. exports.default = _default;
  10369. /***/ }),
  10370. /* 51 */
  10371. /*!************************************************************************************!*\
  10372. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/luch-request/core/defaults.js ***!
  10373. \************************************************************************************/
  10374. /*! no static exports found */
  10375. /***/ (function(module, exports, __webpack_require__) {
  10376. "use strict";
  10377. Object.defineProperty(exports, "__esModule", {
  10378. value: true
  10379. });
  10380. exports.default = void 0;
  10381. /**
  10382. * 默认的全局配置
  10383. */
  10384. var _default = {
  10385. baseURL: '',
  10386. header: {},
  10387. method: 'GET',
  10388. dataType: 'json',
  10389. responseType: 'text',
  10390. custom: {},
  10391. validateStatus: function validateStatus(status) {
  10392. return status >= 200 && status < 300;
  10393. }
  10394. };
  10395. exports.default = _default;
  10396. /***/ }),
  10397. /* 52 */
  10398. /*!**********************************************************************************!*\
  10399. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/luch-request/utils/clone.js ***!
  10400. \**********************************************************************************/
  10401. /*! no static exports found */
  10402. /***/ (function(module, exports, __webpack_require__) {
  10403. "use strict";
  10404. /* WEBPACK VAR INJECTION */(function(Buffer) {
  10405. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  10406. Object.defineProperty(exports, "__esModule", {
  10407. value: true
  10408. });
  10409. exports.default = void 0;
  10410. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 12));
  10411. /* eslint-disable */
  10412. var clone = function () {
  10413. 'use strict';
  10414. function _instanceof(obj, type) {
  10415. return type != null && obj instanceof type;
  10416. }
  10417. var nativeMap;
  10418. try {
  10419. nativeMap = Map;
  10420. } catch (_) {
  10421. // maybe a reference error because no `Map`. Give it a dummy value that no
  10422. // value will ever be an instanceof.
  10423. nativeMap = function nativeMap() {};
  10424. }
  10425. var nativeSet;
  10426. try {
  10427. nativeSet = Set;
  10428. } catch (_) {
  10429. nativeSet = function nativeSet() {};
  10430. }
  10431. var nativePromise;
  10432. try {
  10433. nativePromise = Promise;
  10434. } catch (_) {
  10435. nativePromise = function nativePromise() {};
  10436. }
  10437. /**
  10438. * Clones (copies) an Object using deep copying.
  10439. *
  10440. * This function supports circular references by default, but if you are certain
  10441. * there are no circular references in your object, you can save some CPU time
  10442. * by calling clone(obj, false).
  10443. *
  10444. * Caution: if `circular` is false and `parent` contains circular references,
  10445. * your program may enter an infinite loop and crash.
  10446. *
  10447. * @param `parent` - the object to be cloned
  10448. * @param `circular` - set to true if the object to be cloned may contain
  10449. * circular references. (optional - true by default)
  10450. * @param `depth` - set to a number if the object is only to be cloned to
  10451. * a particular depth. (optional - defaults to Infinity)
  10452. * @param `prototype` - sets the prototype to be used when cloning an object.
  10453. * (optional - defaults to parent prototype).
  10454. * @param `includeNonEnumerable` - set to true if the non-enumerable properties
  10455. * should be cloned as well. Non-enumerable properties on the prototype
  10456. * chain will be ignored. (optional - false by default)
  10457. */
  10458. function clone(parent, circular, depth, prototype, includeNonEnumerable) {
  10459. if ((0, _typeof2.default)(circular) === 'object') {
  10460. depth = circular.depth;
  10461. prototype = circular.prototype;
  10462. includeNonEnumerable = circular.includeNonEnumerable;
  10463. circular = circular.circular;
  10464. }
  10465. // maintain two arrays for circular references, where corresponding parents
  10466. // and children have the same index
  10467. var allParents = [];
  10468. var allChildren = [];
  10469. var useBuffer = typeof Buffer != 'undefined';
  10470. if (typeof circular == 'undefined') circular = true;
  10471. if (typeof depth == 'undefined') depth = Infinity;
  10472. // recurse this function so we don't reset allParents and allChildren
  10473. function _clone(parent, depth) {
  10474. // cloning null always returns null
  10475. if (parent === null) return null;
  10476. if (depth === 0) return parent;
  10477. var child;
  10478. var proto;
  10479. if ((0, _typeof2.default)(parent) != 'object') {
  10480. return parent;
  10481. }
  10482. if (_instanceof(parent, nativeMap)) {
  10483. child = new nativeMap();
  10484. } else if (_instanceof(parent, nativeSet)) {
  10485. child = new nativeSet();
  10486. } else if (_instanceof(parent, nativePromise)) {
  10487. child = new nativePromise(function (resolve, reject) {
  10488. parent.then(function (value) {
  10489. resolve(_clone(value, depth - 1));
  10490. }, function (err) {
  10491. reject(_clone(err, depth - 1));
  10492. });
  10493. });
  10494. } else if (clone.__isArray(parent)) {
  10495. child = [];
  10496. } else if (clone.__isRegExp(parent)) {
  10497. child = new RegExp(parent.source, __getRegExpFlags(parent));
  10498. if (parent.lastIndex) child.lastIndex = parent.lastIndex;
  10499. } else if (clone.__isDate(parent)) {
  10500. child = new Date(parent.getTime());
  10501. } else if (useBuffer && Buffer.isBuffer(parent)) {
  10502. if (Buffer.from) {
  10503. // Node.js >= 5.10.0
  10504. child = Buffer.from(parent);
  10505. } else {
  10506. // Older Node.js versions
  10507. child = new Buffer(parent.length);
  10508. parent.copy(child);
  10509. }
  10510. return child;
  10511. } else if (_instanceof(parent, Error)) {
  10512. child = Object.create(parent);
  10513. } else {
  10514. if (typeof prototype == 'undefined') {
  10515. proto = Object.getPrototypeOf(parent);
  10516. child = Object.create(proto);
  10517. } else {
  10518. child = Object.create(prototype);
  10519. proto = prototype;
  10520. }
  10521. }
  10522. if (circular) {
  10523. var index = allParents.indexOf(parent);
  10524. if (index != -1) {
  10525. return allChildren[index];
  10526. }
  10527. allParents.push(parent);
  10528. allChildren.push(child);
  10529. }
  10530. if (_instanceof(parent, nativeMap)) {
  10531. parent.forEach(function (value, key) {
  10532. var keyChild = _clone(key, depth - 1);
  10533. var valueChild = _clone(value, depth - 1);
  10534. child.set(keyChild, valueChild);
  10535. });
  10536. }
  10537. if (_instanceof(parent, nativeSet)) {
  10538. parent.forEach(function (value) {
  10539. var entryChild = _clone(value, depth - 1);
  10540. child.add(entryChild);
  10541. });
  10542. }
  10543. for (var i in parent) {
  10544. var attrs = Object.getOwnPropertyDescriptor(parent, i);
  10545. if (attrs) {
  10546. child[i] = _clone(parent[i], depth - 1);
  10547. }
  10548. try {
  10549. var objProperty = Object.getOwnPropertyDescriptor(parent, i);
  10550. if (objProperty.set === 'undefined') {
  10551. // no setter defined. Skip cloning this property
  10552. continue;
  10553. }
  10554. child[i] = _clone(parent[i], depth - 1);
  10555. } catch (e) {
  10556. if (e instanceof TypeError) {
  10557. // when in strict mode, TypeError will be thrown if child[i] property only has a getter
  10558. // we can't do anything about this, other than inform the user that this property cannot be set.
  10559. continue;
  10560. } else if (e instanceof ReferenceError) {
  10561. //this may happen in non strict mode
  10562. continue;
  10563. }
  10564. }
  10565. }
  10566. if (Object.getOwnPropertySymbols) {
  10567. var symbols = Object.getOwnPropertySymbols(parent);
  10568. for (var i = 0; i < symbols.length; i++) {
  10569. // Don't need to worry about cloning a symbol because it is a primitive,
  10570. // like a number or string.
  10571. var symbol = symbols[i];
  10572. var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);
  10573. if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
  10574. continue;
  10575. }
  10576. child[symbol] = _clone(parent[symbol], depth - 1);
  10577. Object.defineProperty(child, symbol, descriptor);
  10578. }
  10579. }
  10580. if (includeNonEnumerable) {
  10581. var allPropertyNames = Object.getOwnPropertyNames(parent);
  10582. for (var i = 0; i < allPropertyNames.length; i++) {
  10583. var propertyName = allPropertyNames[i];
  10584. var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);
  10585. if (descriptor && descriptor.enumerable) {
  10586. continue;
  10587. }
  10588. child[propertyName] = _clone(parent[propertyName], depth - 1);
  10589. Object.defineProperty(child, propertyName, descriptor);
  10590. }
  10591. }
  10592. return child;
  10593. }
  10594. return _clone(parent, depth);
  10595. }
  10596. /**
  10597. * Simple flat clone using prototype, accepts only objects, usefull for property
  10598. * override on FLAT configuration object (no nested props).
  10599. *
  10600. * USE WITH CAUTION! This may not behave as you wish if you do not know how this
  10601. * works.
  10602. */
  10603. clone.clonePrototype = function clonePrototype(parent) {
  10604. if (parent === null) return null;
  10605. var c = function c() {};
  10606. c.prototype = parent;
  10607. return new c();
  10608. };
  10609. // private utility functions
  10610. function __objToStr(o) {
  10611. return Object.prototype.toString.call(o);
  10612. }
  10613. clone.__objToStr = __objToStr;
  10614. function __isDate(o) {
  10615. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Date]';
  10616. }
  10617. clone.__isDate = __isDate;
  10618. function __isArray(o) {
  10619. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Array]';
  10620. }
  10621. clone.__isArray = __isArray;
  10622. function __isRegExp(o) {
  10623. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object RegExp]';
  10624. }
  10625. clone.__isRegExp = __isRegExp;
  10626. function __getRegExpFlags(re) {
  10627. var flags = '';
  10628. if (re.global) flags += 'g';
  10629. if (re.ignoreCase) flags += 'i';
  10630. if (re.multiline) flags += 'm';
  10631. return flags;
  10632. }
  10633. clone.__getRegExpFlags = __getRegExpFlags;
  10634. return clone;
  10635. }();
  10636. var _default = clone;
  10637. exports.default = _default;
  10638. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/buffer/index.js */ 53).Buffer))
  10639. /***/ }),
  10640. /* 53 */
  10641. /*!**************************************!*\
  10642. !*** ./node_modules/buffer/index.js ***!
  10643. \**************************************/
  10644. /*! no static exports found */
  10645. /***/ (function(module, exports, __webpack_require__) {
  10646. "use strict";
  10647. /* WEBPACK VAR INJECTION */(function(global) {/*!
  10648. * The buffer module from node.js, for the browser.
  10649. *
  10650. * @author Feross Aboukhadijeh <http://feross.org>
  10651. * @license MIT
  10652. */
  10653. /* eslint-disable no-proto */
  10654. var base64 = __webpack_require__(/*! base64-js */ 54)
  10655. var ieee754 = __webpack_require__(/*! ieee754 */ 55)
  10656. var isArray = __webpack_require__(/*! isarray */ 56)
  10657. exports.Buffer = Buffer
  10658. exports.SlowBuffer = SlowBuffer
  10659. exports.INSPECT_MAX_BYTES = 50
  10660. /**
  10661. * If `Buffer.TYPED_ARRAY_SUPPORT`:
  10662. * === true Use Uint8Array implementation (fastest)
  10663. * === false Use Object implementation (most compatible, even IE6)
  10664. *
  10665. * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
  10666. * Opera 11.6+, iOS 4.2+.
  10667. *
  10668. * Due to various browser bugs, sometimes the Object implementation will be used even
  10669. * when the browser supports typed arrays.
  10670. *
  10671. * Note:
  10672. *
  10673. * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
  10674. * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
  10675. *
  10676. * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
  10677. *
  10678. * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
  10679. * incorrect length in some situations.
  10680. * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
  10681. * get the Object implementation, which is slower but behaves correctly.
  10682. */
  10683. Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
  10684. ? global.TYPED_ARRAY_SUPPORT
  10685. : typedArraySupport()
  10686. /*
  10687. * Export kMaxLength after typed array support is determined.
  10688. */
  10689. exports.kMaxLength = kMaxLength()
  10690. function typedArraySupport () {
  10691. try {
  10692. var arr = new Uint8Array(1)
  10693. arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
  10694. return arr.foo() === 42 && // typed array instances can be augmented
  10695. typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
  10696. arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
  10697. } catch (e) {
  10698. return false
  10699. }
  10700. }
  10701. function kMaxLength () {
  10702. return Buffer.TYPED_ARRAY_SUPPORT
  10703. ? 0x7fffffff
  10704. : 0x3fffffff
  10705. }
  10706. function createBuffer (that, length) {
  10707. if (kMaxLength() < length) {
  10708. throw new RangeError('Invalid typed array length')
  10709. }
  10710. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10711. // Return an augmented `Uint8Array` instance, for best performance
  10712. that = new Uint8Array(length)
  10713. that.__proto__ = Buffer.prototype
  10714. } else {
  10715. // Fallback: Return an object instance of the Buffer class
  10716. if (that === null) {
  10717. that = new Buffer(length)
  10718. }
  10719. that.length = length
  10720. }
  10721. return that
  10722. }
  10723. /**
  10724. * The Buffer constructor returns instances of `Uint8Array` that have their
  10725. * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
  10726. * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
  10727. * and the `Uint8Array` methods. Square bracket notation works as expected -- it
  10728. * returns a single octet.
  10729. *
  10730. * The `Uint8Array` prototype remains unmodified.
  10731. */
  10732. function Buffer (arg, encodingOrOffset, length) {
  10733. if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
  10734. return new Buffer(arg, encodingOrOffset, length)
  10735. }
  10736. // Common case.
  10737. if (typeof arg === 'number') {
  10738. if (typeof encodingOrOffset === 'string') {
  10739. throw new Error(
  10740. 'If encoding is specified then the first argument must be a string'
  10741. )
  10742. }
  10743. return allocUnsafe(this, arg)
  10744. }
  10745. return from(this, arg, encodingOrOffset, length)
  10746. }
  10747. Buffer.poolSize = 8192 // not used by this implementation
  10748. // TODO: Legacy, not needed anymore. Remove in next major version.
  10749. Buffer._augment = function (arr) {
  10750. arr.__proto__ = Buffer.prototype
  10751. return arr
  10752. }
  10753. function from (that, value, encodingOrOffset, length) {
  10754. if (typeof value === 'number') {
  10755. throw new TypeError('"value" argument must not be a number')
  10756. }
  10757. if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
  10758. return fromArrayBuffer(that, value, encodingOrOffset, length)
  10759. }
  10760. if (typeof value === 'string') {
  10761. return fromString(that, value, encodingOrOffset)
  10762. }
  10763. return fromObject(that, value)
  10764. }
  10765. /**
  10766. * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
  10767. * if value is a number.
  10768. * Buffer.from(str[, encoding])
  10769. * Buffer.from(array)
  10770. * Buffer.from(buffer)
  10771. * Buffer.from(arrayBuffer[, byteOffset[, length]])
  10772. **/
  10773. Buffer.from = function (value, encodingOrOffset, length) {
  10774. return from(null, value, encodingOrOffset, length)
  10775. }
  10776. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10777. Buffer.prototype.__proto__ = Uint8Array.prototype
  10778. Buffer.__proto__ = Uint8Array
  10779. if (typeof Symbol !== 'undefined' && Symbol.species &&
  10780. Buffer[Symbol.species] === Buffer) {
  10781. // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
  10782. Object.defineProperty(Buffer, Symbol.species, {
  10783. value: null,
  10784. configurable: true
  10785. })
  10786. }
  10787. }
  10788. function assertSize (size) {
  10789. if (typeof size !== 'number') {
  10790. throw new TypeError('"size" argument must be a number')
  10791. } else if (size < 0) {
  10792. throw new RangeError('"size" argument must not be negative')
  10793. }
  10794. }
  10795. function alloc (that, size, fill, encoding) {
  10796. assertSize(size)
  10797. if (size <= 0) {
  10798. return createBuffer(that, size)
  10799. }
  10800. if (fill !== undefined) {
  10801. // Only pay attention to encoding if it's a string. This
  10802. // prevents accidentally sending in a number that would
  10803. // be interpretted as a start offset.
  10804. return typeof encoding === 'string'
  10805. ? createBuffer(that, size).fill(fill, encoding)
  10806. : createBuffer(that, size).fill(fill)
  10807. }
  10808. return createBuffer(that, size)
  10809. }
  10810. /**
  10811. * Creates a new filled Buffer instance.
  10812. * alloc(size[, fill[, encoding]])
  10813. **/
  10814. Buffer.alloc = function (size, fill, encoding) {
  10815. return alloc(null, size, fill, encoding)
  10816. }
  10817. function allocUnsafe (that, size) {
  10818. assertSize(size)
  10819. that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
  10820. if (!Buffer.TYPED_ARRAY_SUPPORT) {
  10821. for (var i = 0; i < size; ++i) {
  10822. that[i] = 0
  10823. }
  10824. }
  10825. return that
  10826. }
  10827. /**
  10828. * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
  10829. * */
  10830. Buffer.allocUnsafe = function (size) {
  10831. return allocUnsafe(null, size)
  10832. }
  10833. /**
  10834. * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
  10835. */
  10836. Buffer.allocUnsafeSlow = function (size) {
  10837. return allocUnsafe(null, size)
  10838. }
  10839. function fromString (that, string, encoding) {
  10840. if (typeof encoding !== 'string' || encoding === '') {
  10841. encoding = 'utf8'
  10842. }
  10843. if (!Buffer.isEncoding(encoding)) {
  10844. throw new TypeError('"encoding" must be a valid string encoding')
  10845. }
  10846. var length = byteLength(string, encoding) | 0
  10847. that = createBuffer(that, length)
  10848. var actual = that.write(string, encoding)
  10849. if (actual !== length) {
  10850. // Writing a hex string, for example, that contains invalid characters will
  10851. // cause everything after the first invalid character to be ignored. (e.g.
  10852. // 'abxxcd' will be treated as 'ab')
  10853. that = that.slice(0, actual)
  10854. }
  10855. return that
  10856. }
  10857. function fromArrayLike (that, array) {
  10858. var length = array.length < 0 ? 0 : checked(array.length) | 0
  10859. that = createBuffer(that, length)
  10860. for (var i = 0; i < length; i += 1) {
  10861. that[i] = array[i] & 255
  10862. }
  10863. return that
  10864. }
  10865. function fromArrayBuffer (that, array, byteOffset, length) {
  10866. array.byteLength // this throws if `array` is not a valid ArrayBuffer
  10867. if (byteOffset < 0 || array.byteLength < byteOffset) {
  10868. throw new RangeError('\'offset\' is out of bounds')
  10869. }
  10870. if (array.byteLength < byteOffset + (length || 0)) {
  10871. throw new RangeError('\'length\' is out of bounds')
  10872. }
  10873. if (byteOffset === undefined && length === undefined) {
  10874. array = new Uint8Array(array)
  10875. } else if (length === undefined) {
  10876. array = new Uint8Array(array, byteOffset)
  10877. } else {
  10878. array = new Uint8Array(array, byteOffset, length)
  10879. }
  10880. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10881. // Return an augmented `Uint8Array` instance, for best performance
  10882. that = array
  10883. that.__proto__ = Buffer.prototype
  10884. } else {
  10885. // Fallback: Return an object instance of the Buffer class
  10886. that = fromArrayLike(that, array)
  10887. }
  10888. return that
  10889. }
  10890. function fromObject (that, obj) {
  10891. if (Buffer.isBuffer(obj)) {
  10892. var len = checked(obj.length) | 0
  10893. that = createBuffer(that, len)
  10894. if (that.length === 0) {
  10895. return that
  10896. }
  10897. obj.copy(that, 0, 0, len)
  10898. return that
  10899. }
  10900. if (obj) {
  10901. if ((typeof ArrayBuffer !== 'undefined' &&
  10902. obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
  10903. if (typeof obj.length !== 'number' || isnan(obj.length)) {
  10904. return createBuffer(that, 0)
  10905. }
  10906. return fromArrayLike(that, obj)
  10907. }
  10908. if (obj.type === 'Buffer' && isArray(obj.data)) {
  10909. return fromArrayLike(that, obj.data)
  10910. }
  10911. }
  10912. throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
  10913. }
  10914. function checked (length) {
  10915. // Note: cannot use `length < kMaxLength()` here because that fails when
  10916. // length is NaN (which is otherwise coerced to zero.)
  10917. if (length >= kMaxLength()) {
  10918. throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
  10919. 'size: 0x' + kMaxLength().toString(16) + ' bytes')
  10920. }
  10921. return length | 0
  10922. }
  10923. function SlowBuffer (length) {
  10924. if (+length != length) { // eslint-disable-line eqeqeq
  10925. length = 0
  10926. }
  10927. return Buffer.alloc(+length)
  10928. }
  10929. Buffer.isBuffer = function isBuffer (b) {
  10930. return !!(b != null && b._isBuffer)
  10931. }
  10932. Buffer.compare = function compare (a, b) {
  10933. if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
  10934. throw new TypeError('Arguments must be Buffers')
  10935. }
  10936. if (a === b) return 0
  10937. var x = a.length
  10938. var y = b.length
  10939. for (var i = 0, len = Math.min(x, y); i < len; ++i) {
  10940. if (a[i] !== b[i]) {
  10941. x = a[i]
  10942. y = b[i]
  10943. break
  10944. }
  10945. }
  10946. if (x < y) return -1
  10947. if (y < x) return 1
  10948. return 0
  10949. }
  10950. Buffer.isEncoding = function isEncoding (encoding) {
  10951. switch (String(encoding).toLowerCase()) {
  10952. case 'hex':
  10953. case 'utf8':
  10954. case 'utf-8':
  10955. case 'ascii':
  10956. case 'latin1':
  10957. case 'binary':
  10958. case 'base64':
  10959. case 'ucs2':
  10960. case 'ucs-2':
  10961. case 'utf16le':
  10962. case 'utf-16le':
  10963. return true
  10964. default:
  10965. return false
  10966. }
  10967. }
  10968. Buffer.concat = function concat (list, length) {
  10969. if (!isArray(list)) {
  10970. throw new TypeError('"list" argument must be an Array of Buffers')
  10971. }
  10972. if (list.length === 0) {
  10973. return Buffer.alloc(0)
  10974. }
  10975. var i
  10976. if (length === undefined) {
  10977. length = 0
  10978. for (i = 0; i < list.length; ++i) {
  10979. length += list[i].length
  10980. }
  10981. }
  10982. var buffer = Buffer.allocUnsafe(length)
  10983. var pos = 0
  10984. for (i = 0; i < list.length; ++i) {
  10985. var buf = list[i]
  10986. if (!Buffer.isBuffer(buf)) {
  10987. throw new TypeError('"list" argument must be an Array of Buffers')
  10988. }
  10989. buf.copy(buffer, pos)
  10990. pos += buf.length
  10991. }
  10992. return buffer
  10993. }
  10994. function byteLength (string, encoding) {
  10995. if (Buffer.isBuffer(string)) {
  10996. return string.length
  10997. }
  10998. if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
  10999. (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
  11000. return string.byteLength
  11001. }
  11002. if (typeof string !== 'string') {
  11003. string = '' + string
  11004. }
  11005. var len = string.length
  11006. if (len === 0) return 0
  11007. // Use a for loop to avoid recursion
  11008. var loweredCase = false
  11009. for (;;) {
  11010. switch (encoding) {
  11011. case 'ascii':
  11012. case 'latin1':
  11013. case 'binary':
  11014. return len
  11015. case 'utf8':
  11016. case 'utf-8':
  11017. case undefined:
  11018. return utf8ToBytes(string).length
  11019. case 'ucs2':
  11020. case 'ucs-2':
  11021. case 'utf16le':
  11022. case 'utf-16le':
  11023. return len * 2
  11024. case 'hex':
  11025. return len >>> 1
  11026. case 'base64':
  11027. return base64ToBytes(string).length
  11028. default:
  11029. if (loweredCase) return utf8ToBytes(string).length // assume utf8
  11030. encoding = ('' + encoding).toLowerCase()
  11031. loweredCase = true
  11032. }
  11033. }
  11034. }
  11035. Buffer.byteLength = byteLength
  11036. function slowToString (encoding, start, end) {
  11037. var loweredCase = false
  11038. // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
  11039. // property of a typed array.
  11040. // This behaves neither like String nor Uint8Array in that we set start/end
  11041. // to their upper/lower bounds if the value passed is out of range.
  11042. // undefined is handled specially as per ECMA-262 6th Edition,
  11043. // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
  11044. if (start === undefined || start < 0) {
  11045. start = 0
  11046. }
  11047. // Return early if start > this.length. Done here to prevent potential uint32
  11048. // coercion fail below.
  11049. if (start > this.length) {
  11050. return ''
  11051. }
  11052. if (end === undefined || end > this.length) {
  11053. end = this.length
  11054. }
  11055. if (end <= 0) {
  11056. return ''
  11057. }
  11058. // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
  11059. end >>>= 0
  11060. start >>>= 0
  11061. if (end <= start) {
  11062. return ''
  11063. }
  11064. if (!encoding) encoding = 'utf8'
  11065. while (true) {
  11066. switch (encoding) {
  11067. case 'hex':
  11068. return hexSlice(this, start, end)
  11069. case 'utf8':
  11070. case 'utf-8':
  11071. return utf8Slice(this, start, end)
  11072. case 'ascii':
  11073. return asciiSlice(this, start, end)
  11074. case 'latin1':
  11075. case 'binary':
  11076. return latin1Slice(this, start, end)
  11077. case 'base64':
  11078. return base64Slice(this, start, end)
  11079. case 'ucs2':
  11080. case 'ucs-2':
  11081. case 'utf16le':
  11082. case 'utf-16le':
  11083. return utf16leSlice(this, start, end)
  11084. default:
  11085. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  11086. encoding = (encoding + '').toLowerCase()
  11087. loweredCase = true
  11088. }
  11089. }
  11090. }
  11091. // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
  11092. // Buffer instances.
  11093. Buffer.prototype._isBuffer = true
  11094. function swap (b, n, m) {
  11095. var i = b[n]
  11096. b[n] = b[m]
  11097. b[m] = i
  11098. }
  11099. Buffer.prototype.swap16 = function swap16 () {
  11100. var len = this.length
  11101. if (len % 2 !== 0) {
  11102. throw new RangeError('Buffer size must be a multiple of 16-bits')
  11103. }
  11104. for (var i = 0; i < len; i += 2) {
  11105. swap(this, i, i + 1)
  11106. }
  11107. return this
  11108. }
  11109. Buffer.prototype.swap32 = function swap32 () {
  11110. var len = this.length
  11111. if (len % 4 !== 0) {
  11112. throw new RangeError('Buffer size must be a multiple of 32-bits')
  11113. }
  11114. for (var i = 0; i < len; i += 4) {
  11115. swap(this, i, i + 3)
  11116. swap(this, i + 1, i + 2)
  11117. }
  11118. return this
  11119. }
  11120. Buffer.prototype.swap64 = function swap64 () {
  11121. var len = this.length
  11122. if (len % 8 !== 0) {
  11123. throw new RangeError('Buffer size must be a multiple of 64-bits')
  11124. }
  11125. for (var i = 0; i < len; i += 8) {
  11126. swap(this, i, i + 7)
  11127. swap(this, i + 1, i + 6)
  11128. swap(this, i + 2, i + 5)
  11129. swap(this, i + 3, i + 4)
  11130. }
  11131. return this
  11132. }
  11133. Buffer.prototype.toString = function toString () {
  11134. var length = this.length | 0
  11135. if (length === 0) return ''
  11136. if (arguments.length === 0) return utf8Slice(this, 0, length)
  11137. return slowToString.apply(this, arguments)
  11138. }
  11139. Buffer.prototype.equals = function equals (b) {
  11140. if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  11141. if (this === b) return true
  11142. return Buffer.compare(this, b) === 0
  11143. }
  11144. Buffer.prototype.inspect = function inspect () {
  11145. var str = ''
  11146. var max = exports.INSPECT_MAX_BYTES
  11147. if (this.length > 0) {
  11148. str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
  11149. if (this.length > max) str += ' ... '
  11150. }
  11151. return '<Buffer ' + str + '>'
  11152. }
  11153. Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
  11154. if (!Buffer.isBuffer(target)) {
  11155. throw new TypeError('Argument must be a Buffer')
  11156. }
  11157. if (start === undefined) {
  11158. start = 0
  11159. }
  11160. if (end === undefined) {
  11161. end = target ? target.length : 0
  11162. }
  11163. if (thisStart === undefined) {
  11164. thisStart = 0
  11165. }
  11166. if (thisEnd === undefined) {
  11167. thisEnd = this.length
  11168. }
  11169. if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
  11170. throw new RangeError('out of range index')
  11171. }
  11172. if (thisStart >= thisEnd && start >= end) {
  11173. return 0
  11174. }
  11175. if (thisStart >= thisEnd) {
  11176. return -1
  11177. }
  11178. if (start >= end) {
  11179. return 1
  11180. }
  11181. start >>>= 0
  11182. end >>>= 0
  11183. thisStart >>>= 0
  11184. thisEnd >>>= 0
  11185. if (this === target) return 0
  11186. var x = thisEnd - thisStart
  11187. var y = end - start
  11188. var len = Math.min(x, y)
  11189. var thisCopy = this.slice(thisStart, thisEnd)
  11190. var targetCopy = target.slice(start, end)
  11191. for (var i = 0; i < len; ++i) {
  11192. if (thisCopy[i] !== targetCopy[i]) {
  11193. x = thisCopy[i]
  11194. y = targetCopy[i]
  11195. break
  11196. }
  11197. }
  11198. if (x < y) return -1
  11199. if (y < x) return 1
  11200. return 0
  11201. }
  11202. // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
  11203. // OR the last index of `val` in `buffer` at offset <= `byteOffset`.
  11204. //
  11205. // Arguments:
  11206. // - buffer - a Buffer to search
  11207. // - val - a string, Buffer, or number
  11208. // - byteOffset - an index into `buffer`; will be clamped to an int32
  11209. // - encoding - an optional encoding, relevant is val is a string
  11210. // - dir - true for indexOf, false for lastIndexOf
  11211. function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
  11212. // Empty buffer means no match
  11213. if (buffer.length === 0) return -1
  11214. // Normalize byteOffset
  11215. if (typeof byteOffset === 'string') {
  11216. encoding = byteOffset
  11217. byteOffset = 0
  11218. } else if (byteOffset > 0x7fffffff) {
  11219. byteOffset = 0x7fffffff
  11220. } else if (byteOffset < -0x80000000) {
  11221. byteOffset = -0x80000000
  11222. }
  11223. byteOffset = +byteOffset // Coerce to Number.
  11224. if (isNaN(byteOffset)) {
  11225. // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
  11226. byteOffset = dir ? 0 : (buffer.length - 1)
  11227. }
  11228. // Normalize byteOffset: negative offsets start from the end of the buffer
  11229. if (byteOffset < 0) byteOffset = buffer.length + byteOffset
  11230. if (byteOffset >= buffer.length) {
  11231. if (dir) return -1
  11232. else byteOffset = buffer.length - 1
  11233. } else if (byteOffset < 0) {
  11234. if (dir) byteOffset = 0
  11235. else return -1
  11236. }
  11237. // Normalize val
  11238. if (typeof val === 'string') {
  11239. val = Buffer.from(val, encoding)
  11240. }
  11241. // Finally, search either indexOf (if dir is true) or lastIndexOf
  11242. if (Buffer.isBuffer(val)) {
  11243. // Special case: looking for empty string/buffer always fails
  11244. if (val.length === 0) {
  11245. return -1
  11246. }
  11247. return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
  11248. } else if (typeof val === 'number') {
  11249. val = val & 0xFF // Search for a byte value [0-255]
  11250. if (Buffer.TYPED_ARRAY_SUPPORT &&
  11251. typeof Uint8Array.prototype.indexOf === 'function') {
  11252. if (dir) {
  11253. return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
  11254. } else {
  11255. return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
  11256. }
  11257. }
  11258. return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
  11259. }
  11260. throw new TypeError('val must be string, number or Buffer')
  11261. }
  11262. function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
  11263. var indexSize = 1
  11264. var arrLength = arr.length
  11265. var valLength = val.length
  11266. if (encoding !== undefined) {
  11267. encoding = String(encoding).toLowerCase()
  11268. if (encoding === 'ucs2' || encoding === 'ucs-2' ||
  11269. encoding === 'utf16le' || encoding === 'utf-16le') {
  11270. if (arr.length < 2 || val.length < 2) {
  11271. return -1
  11272. }
  11273. indexSize = 2
  11274. arrLength /= 2
  11275. valLength /= 2
  11276. byteOffset /= 2
  11277. }
  11278. }
  11279. function read (buf, i) {
  11280. if (indexSize === 1) {
  11281. return buf[i]
  11282. } else {
  11283. return buf.readUInt16BE(i * indexSize)
  11284. }
  11285. }
  11286. var i
  11287. if (dir) {
  11288. var foundIndex = -1
  11289. for (i = byteOffset; i < arrLength; i++) {
  11290. if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
  11291. if (foundIndex === -1) foundIndex = i
  11292. if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
  11293. } else {
  11294. if (foundIndex !== -1) i -= i - foundIndex
  11295. foundIndex = -1
  11296. }
  11297. }
  11298. } else {
  11299. if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
  11300. for (i = byteOffset; i >= 0; i--) {
  11301. var found = true
  11302. for (var j = 0; j < valLength; j++) {
  11303. if (read(arr, i + j) !== read(val, j)) {
  11304. found = false
  11305. break
  11306. }
  11307. }
  11308. if (found) return i
  11309. }
  11310. }
  11311. return -1
  11312. }
  11313. Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
  11314. return this.indexOf(val, byteOffset, encoding) !== -1
  11315. }
  11316. Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
  11317. return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
  11318. }
  11319. Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
  11320. return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
  11321. }
  11322. function hexWrite (buf, string, offset, length) {
  11323. offset = Number(offset) || 0
  11324. var remaining = buf.length - offset
  11325. if (!length) {
  11326. length = remaining
  11327. } else {
  11328. length = Number(length)
  11329. if (length > remaining) {
  11330. length = remaining
  11331. }
  11332. }
  11333. // must be an even number of digits
  11334. var strLen = string.length
  11335. if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
  11336. if (length > strLen / 2) {
  11337. length = strLen / 2
  11338. }
  11339. for (var i = 0; i < length; ++i) {
  11340. var parsed = parseInt(string.substr(i * 2, 2), 16)
  11341. if (isNaN(parsed)) return i
  11342. buf[offset + i] = parsed
  11343. }
  11344. return i
  11345. }
  11346. function utf8Write (buf, string, offset, length) {
  11347. return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
  11348. }
  11349. function asciiWrite (buf, string, offset, length) {
  11350. return blitBuffer(asciiToBytes(string), buf, offset, length)
  11351. }
  11352. function latin1Write (buf, string, offset, length) {
  11353. return asciiWrite(buf, string, offset, length)
  11354. }
  11355. function base64Write (buf, string, offset, length) {
  11356. return blitBuffer(base64ToBytes(string), buf, offset, length)
  11357. }
  11358. function ucs2Write (buf, string, offset, length) {
  11359. return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
  11360. }
  11361. Buffer.prototype.write = function write (string, offset, length, encoding) {
  11362. // Buffer#write(string)
  11363. if (offset === undefined) {
  11364. encoding = 'utf8'
  11365. length = this.length
  11366. offset = 0
  11367. // Buffer#write(string, encoding)
  11368. } else if (length === undefined && typeof offset === 'string') {
  11369. encoding = offset
  11370. length = this.length
  11371. offset = 0
  11372. // Buffer#write(string, offset[, length][, encoding])
  11373. } else if (isFinite(offset)) {
  11374. offset = offset | 0
  11375. if (isFinite(length)) {
  11376. length = length | 0
  11377. if (encoding === undefined) encoding = 'utf8'
  11378. } else {
  11379. encoding = length
  11380. length = undefined
  11381. }
  11382. // legacy write(string, encoding, offset, length) - remove in v0.13
  11383. } else {
  11384. throw new Error(
  11385. 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
  11386. )
  11387. }
  11388. var remaining = this.length - offset
  11389. if (length === undefined || length > remaining) length = remaining
  11390. if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
  11391. throw new RangeError('Attempt to write outside buffer bounds')
  11392. }
  11393. if (!encoding) encoding = 'utf8'
  11394. var loweredCase = false
  11395. for (;;) {
  11396. switch (encoding) {
  11397. case 'hex':
  11398. return hexWrite(this, string, offset, length)
  11399. case 'utf8':
  11400. case 'utf-8':
  11401. return utf8Write(this, string, offset, length)
  11402. case 'ascii':
  11403. return asciiWrite(this, string, offset, length)
  11404. case 'latin1':
  11405. case 'binary':
  11406. return latin1Write(this, string, offset, length)
  11407. case 'base64':
  11408. // Warning: maxLength not taken into account in base64Write
  11409. return base64Write(this, string, offset, length)
  11410. case 'ucs2':
  11411. case 'ucs-2':
  11412. case 'utf16le':
  11413. case 'utf-16le':
  11414. return ucs2Write(this, string, offset, length)
  11415. default:
  11416. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  11417. encoding = ('' + encoding).toLowerCase()
  11418. loweredCase = true
  11419. }
  11420. }
  11421. }
  11422. Buffer.prototype.toJSON = function toJSON () {
  11423. return {
  11424. type: 'Buffer',
  11425. data: Array.prototype.slice.call(this._arr || this, 0)
  11426. }
  11427. }
  11428. function base64Slice (buf, start, end) {
  11429. if (start === 0 && end === buf.length) {
  11430. return base64.fromByteArray(buf)
  11431. } else {
  11432. return base64.fromByteArray(buf.slice(start, end))
  11433. }
  11434. }
  11435. function utf8Slice (buf, start, end) {
  11436. end = Math.min(buf.length, end)
  11437. var res = []
  11438. var i = start
  11439. while (i < end) {
  11440. var firstByte = buf[i]
  11441. var codePoint = null
  11442. var bytesPerSequence = (firstByte > 0xEF) ? 4
  11443. : (firstByte > 0xDF) ? 3
  11444. : (firstByte > 0xBF) ? 2
  11445. : 1
  11446. if (i + bytesPerSequence <= end) {
  11447. var secondByte, thirdByte, fourthByte, tempCodePoint
  11448. switch (bytesPerSequence) {
  11449. case 1:
  11450. if (firstByte < 0x80) {
  11451. codePoint = firstByte
  11452. }
  11453. break
  11454. case 2:
  11455. secondByte = buf[i + 1]
  11456. if ((secondByte & 0xC0) === 0x80) {
  11457. tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
  11458. if (tempCodePoint > 0x7F) {
  11459. codePoint = tempCodePoint
  11460. }
  11461. }
  11462. break
  11463. case 3:
  11464. secondByte = buf[i + 1]
  11465. thirdByte = buf[i + 2]
  11466. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
  11467. tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
  11468. if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
  11469. codePoint = tempCodePoint
  11470. }
  11471. }
  11472. break
  11473. case 4:
  11474. secondByte = buf[i + 1]
  11475. thirdByte = buf[i + 2]
  11476. fourthByte = buf[i + 3]
  11477. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
  11478. tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
  11479. if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
  11480. codePoint = tempCodePoint
  11481. }
  11482. }
  11483. }
  11484. }
  11485. if (codePoint === null) {
  11486. // we did not generate a valid codePoint so insert a
  11487. // replacement char (U+FFFD) and advance only 1 byte
  11488. codePoint = 0xFFFD
  11489. bytesPerSequence = 1
  11490. } else if (codePoint > 0xFFFF) {
  11491. // encode to utf16 (surrogate pair dance)
  11492. codePoint -= 0x10000
  11493. res.push(codePoint >>> 10 & 0x3FF | 0xD800)
  11494. codePoint = 0xDC00 | codePoint & 0x3FF
  11495. }
  11496. res.push(codePoint)
  11497. i += bytesPerSequence
  11498. }
  11499. return decodeCodePointsArray(res)
  11500. }
  11501. // Based on http://stackoverflow.com/a/22747272/680742, the browser with
  11502. // the lowest limit is Chrome, with 0x10000 args.
  11503. // We go 1 magnitude less, for safety
  11504. var MAX_ARGUMENTS_LENGTH = 0x1000
  11505. function decodeCodePointsArray (codePoints) {
  11506. var len = codePoints.length
  11507. if (len <= MAX_ARGUMENTS_LENGTH) {
  11508. return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
  11509. }
  11510. // Decode in chunks to avoid "call stack size exceeded".
  11511. var res = ''
  11512. var i = 0
  11513. while (i < len) {
  11514. res += String.fromCharCode.apply(
  11515. String,
  11516. codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
  11517. )
  11518. }
  11519. return res
  11520. }
  11521. function asciiSlice (buf, start, end) {
  11522. var ret = ''
  11523. end = Math.min(buf.length, end)
  11524. for (var i = start; i < end; ++i) {
  11525. ret += String.fromCharCode(buf[i] & 0x7F)
  11526. }
  11527. return ret
  11528. }
  11529. function latin1Slice (buf, start, end) {
  11530. var ret = ''
  11531. end = Math.min(buf.length, end)
  11532. for (var i = start; i < end; ++i) {
  11533. ret += String.fromCharCode(buf[i])
  11534. }
  11535. return ret
  11536. }
  11537. function hexSlice (buf, start, end) {
  11538. var len = buf.length
  11539. if (!start || start < 0) start = 0
  11540. if (!end || end < 0 || end > len) end = len
  11541. var out = ''
  11542. for (var i = start; i < end; ++i) {
  11543. out += toHex(buf[i])
  11544. }
  11545. return out
  11546. }
  11547. function utf16leSlice (buf, start, end) {
  11548. var bytes = buf.slice(start, end)
  11549. var res = ''
  11550. for (var i = 0; i < bytes.length; i += 2) {
  11551. res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
  11552. }
  11553. return res
  11554. }
  11555. Buffer.prototype.slice = function slice (start, end) {
  11556. var len = this.length
  11557. start = ~~start
  11558. end = end === undefined ? len : ~~end
  11559. if (start < 0) {
  11560. start += len
  11561. if (start < 0) start = 0
  11562. } else if (start > len) {
  11563. start = len
  11564. }
  11565. if (end < 0) {
  11566. end += len
  11567. if (end < 0) end = 0
  11568. } else if (end > len) {
  11569. end = len
  11570. }
  11571. if (end < start) end = start
  11572. var newBuf
  11573. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11574. newBuf = this.subarray(start, end)
  11575. newBuf.__proto__ = Buffer.prototype
  11576. } else {
  11577. var sliceLen = end - start
  11578. newBuf = new Buffer(sliceLen, undefined)
  11579. for (var i = 0; i < sliceLen; ++i) {
  11580. newBuf[i] = this[i + start]
  11581. }
  11582. }
  11583. return newBuf
  11584. }
  11585. /*
  11586. * Need to make sure that buffer isn't trying to write out of bounds.
  11587. */
  11588. function checkOffset (offset, ext, length) {
  11589. if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
  11590. if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
  11591. }
  11592. Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
  11593. offset = offset | 0
  11594. byteLength = byteLength | 0
  11595. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11596. var val = this[offset]
  11597. var mul = 1
  11598. var i = 0
  11599. while (++i < byteLength && (mul *= 0x100)) {
  11600. val += this[offset + i] * mul
  11601. }
  11602. return val
  11603. }
  11604. Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
  11605. offset = offset | 0
  11606. byteLength = byteLength | 0
  11607. if (!noAssert) {
  11608. checkOffset(offset, byteLength, this.length)
  11609. }
  11610. var val = this[offset + --byteLength]
  11611. var mul = 1
  11612. while (byteLength > 0 && (mul *= 0x100)) {
  11613. val += this[offset + --byteLength] * mul
  11614. }
  11615. return val
  11616. }
  11617. Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
  11618. if (!noAssert) checkOffset(offset, 1, this.length)
  11619. return this[offset]
  11620. }
  11621. Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  11622. if (!noAssert) checkOffset(offset, 2, this.length)
  11623. return this[offset] | (this[offset + 1] << 8)
  11624. }
  11625. Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  11626. if (!noAssert) checkOffset(offset, 2, this.length)
  11627. return (this[offset] << 8) | this[offset + 1]
  11628. }
  11629. Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  11630. if (!noAssert) checkOffset(offset, 4, this.length)
  11631. return ((this[offset]) |
  11632. (this[offset + 1] << 8) |
  11633. (this[offset + 2] << 16)) +
  11634. (this[offset + 3] * 0x1000000)
  11635. }
  11636. Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
  11637. if (!noAssert) checkOffset(offset, 4, this.length)
  11638. return (this[offset] * 0x1000000) +
  11639. ((this[offset + 1] << 16) |
  11640. (this[offset + 2] << 8) |
  11641. this[offset + 3])
  11642. }
  11643. Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
  11644. offset = offset | 0
  11645. byteLength = byteLength | 0
  11646. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11647. var val = this[offset]
  11648. var mul = 1
  11649. var i = 0
  11650. while (++i < byteLength && (mul *= 0x100)) {
  11651. val += this[offset + i] * mul
  11652. }
  11653. mul *= 0x80
  11654. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11655. return val
  11656. }
  11657. Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
  11658. offset = offset | 0
  11659. byteLength = byteLength | 0
  11660. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11661. var i = byteLength
  11662. var mul = 1
  11663. var val = this[offset + --i]
  11664. while (i > 0 && (mul *= 0x100)) {
  11665. val += this[offset + --i] * mul
  11666. }
  11667. mul *= 0x80
  11668. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11669. return val
  11670. }
  11671. Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
  11672. if (!noAssert) checkOffset(offset, 1, this.length)
  11673. if (!(this[offset] & 0x80)) return (this[offset])
  11674. return ((0xff - this[offset] + 1) * -1)
  11675. }
  11676. Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
  11677. if (!noAssert) checkOffset(offset, 2, this.length)
  11678. var val = this[offset] | (this[offset + 1] << 8)
  11679. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11680. }
  11681. Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
  11682. if (!noAssert) checkOffset(offset, 2, this.length)
  11683. var val = this[offset + 1] | (this[offset] << 8)
  11684. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11685. }
  11686. Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
  11687. if (!noAssert) checkOffset(offset, 4, this.length)
  11688. return (this[offset]) |
  11689. (this[offset + 1] << 8) |
  11690. (this[offset + 2] << 16) |
  11691. (this[offset + 3] << 24)
  11692. }
  11693. Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
  11694. if (!noAssert) checkOffset(offset, 4, this.length)
  11695. return (this[offset] << 24) |
  11696. (this[offset + 1] << 16) |
  11697. (this[offset + 2] << 8) |
  11698. (this[offset + 3])
  11699. }
  11700. Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  11701. if (!noAssert) checkOffset(offset, 4, this.length)
  11702. return ieee754.read(this, offset, true, 23, 4)
  11703. }
  11704. Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  11705. if (!noAssert) checkOffset(offset, 4, this.length)
  11706. return ieee754.read(this, offset, false, 23, 4)
  11707. }
  11708. Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  11709. if (!noAssert) checkOffset(offset, 8, this.length)
  11710. return ieee754.read(this, offset, true, 52, 8)
  11711. }
  11712. Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  11713. if (!noAssert) checkOffset(offset, 8, this.length)
  11714. return ieee754.read(this, offset, false, 52, 8)
  11715. }
  11716. function checkInt (buf, value, offset, ext, max, min) {
  11717. if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
  11718. if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
  11719. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  11720. }
  11721. Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
  11722. value = +value
  11723. offset = offset | 0
  11724. byteLength = byteLength | 0
  11725. if (!noAssert) {
  11726. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11727. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11728. }
  11729. var mul = 1
  11730. var i = 0
  11731. this[offset] = value & 0xFF
  11732. while (++i < byteLength && (mul *= 0x100)) {
  11733. this[offset + i] = (value / mul) & 0xFF
  11734. }
  11735. return offset + byteLength
  11736. }
  11737. Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
  11738. value = +value
  11739. offset = offset | 0
  11740. byteLength = byteLength | 0
  11741. if (!noAssert) {
  11742. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11743. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11744. }
  11745. var i = byteLength - 1
  11746. var mul = 1
  11747. this[offset + i] = value & 0xFF
  11748. while (--i >= 0 && (mul *= 0x100)) {
  11749. this[offset + i] = (value / mul) & 0xFF
  11750. }
  11751. return offset + byteLength
  11752. }
  11753. Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
  11754. value = +value
  11755. offset = offset | 0
  11756. if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
  11757. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  11758. this[offset] = (value & 0xff)
  11759. return offset + 1
  11760. }
  11761. function objectWriteUInt16 (buf, value, offset, littleEndian) {
  11762. if (value < 0) value = 0xffff + value + 1
  11763. for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
  11764. buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
  11765. (littleEndian ? i : 1 - i) * 8
  11766. }
  11767. }
  11768. Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  11769. value = +value
  11770. offset = offset | 0
  11771. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  11772. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11773. this[offset] = (value & 0xff)
  11774. this[offset + 1] = (value >>> 8)
  11775. } else {
  11776. objectWriteUInt16(this, value, offset, true)
  11777. }
  11778. return offset + 2
  11779. }
  11780. Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
  11781. value = +value
  11782. offset = offset | 0
  11783. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  11784. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11785. this[offset] = (value >>> 8)
  11786. this[offset + 1] = (value & 0xff)
  11787. } else {
  11788. objectWriteUInt16(this, value, offset, false)
  11789. }
  11790. return offset + 2
  11791. }
  11792. function objectWriteUInt32 (buf, value, offset, littleEndian) {
  11793. if (value < 0) value = 0xffffffff + value + 1
  11794. for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
  11795. buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  11796. }
  11797. }
  11798. Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  11799. value = +value
  11800. offset = offset | 0
  11801. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  11802. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11803. this[offset + 3] = (value >>> 24)
  11804. this[offset + 2] = (value >>> 16)
  11805. this[offset + 1] = (value >>> 8)
  11806. this[offset] = (value & 0xff)
  11807. } else {
  11808. objectWriteUInt32(this, value, offset, true)
  11809. }
  11810. return offset + 4
  11811. }
  11812. Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
  11813. value = +value
  11814. offset = offset | 0
  11815. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  11816. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11817. this[offset] = (value >>> 24)
  11818. this[offset + 1] = (value >>> 16)
  11819. this[offset + 2] = (value >>> 8)
  11820. this[offset + 3] = (value & 0xff)
  11821. } else {
  11822. objectWriteUInt32(this, value, offset, false)
  11823. }
  11824. return offset + 4
  11825. }
  11826. Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
  11827. value = +value
  11828. offset = offset | 0
  11829. if (!noAssert) {
  11830. var limit = Math.pow(2, 8 * byteLength - 1)
  11831. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  11832. }
  11833. var i = 0
  11834. var mul = 1
  11835. var sub = 0
  11836. this[offset] = value & 0xFF
  11837. while (++i < byteLength && (mul *= 0x100)) {
  11838. if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
  11839. sub = 1
  11840. }
  11841. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  11842. }
  11843. return offset + byteLength
  11844. }
  11845. Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
  11846. value = +value
  11847. offset = offset | 0
  11848. if (!noAssert) {
  11849. var limit = Math.pow(2, 8 * byteLength - 1)
  11850. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  11851. }
  11852. var i = byteLength - 1
  11853. var mul = 1
  11854. var sub = 0
  11855. this[offset + i] = value & 0xFF
  11856. while (--i >= 0 && (mul *= 0x100)) {
  11857. if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
  11858. sub = 1
  11859. }
  11860. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  11861. }
  11862. return offset + byteLength
  11863. }
  11864. Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
  11865. value = +value
  11866. offset = offset | 0
  11867. if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
  11868. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  11869. if (value < 0) value = 0xff + value + 1
  11870. this[offset] = (value & 0xff)
  11871. return offset + 1
  11872. }
  11873. Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
  11874. value = +value
  11875. offset = offset | 0
  11876. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  11877. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11878. this[offset] = (value & 0xff)
  11879. this[offset + 1] = (value >>> 8)
  11880. } else {
  11881. objectWriteUInt16(this, value, offset, true)
  11882. }
  11883. return offset + 2
  11884. }
  11885. Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
  11886. value = +value
  11887. offset = offset | 0
  11888. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  11889. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11890. this[offset] = (value >>> 8)
  11891. this[offset + 1] = (value & 0xff)
  11892. } else {
  11893. objectWriteUInt16(this, value, offset, false)
  11894. }
  11895. return offset + 2
  11896. }
  11897. Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
  11898. value = +value
  11899. offset = offset | 0
  11900. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  11901. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11902. this[offset] = (value & 0xff)
  11903. this[offset + 1] = (value >>> 8)
  11904. this[offset + 2] = (value >>> 16)
  11905. this[offset + 3] = (value >>> 24)
  11906. } else {
  11907. objectWriteUInt32(this, value, offset, true)
  11908. }
  11909. return offset + 4
  11910. }
  11911. Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
  11912. value = +value
  11913. offset = offset | 0
  11914. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  11915. if (value < 0) value = 0xffffffff + value + 1
  11916. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11917. this[offset] = (value >>> 24)
  11918. this[offset + 1] = (value >>> 16)
  11919. this[offset + 2] = (value >>> 8)
  11920. this[offset + 3] = (value & 0xff)
  11921. } else {
  11922. objectWriteUInt32(this, value, offset, false)
  11923. }
  11924. return offset + 4
  11925. }
  11926. function checkIEEE754 (buf, value, offset, ext, max, min) {
  11927. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  11928. if (offset < 0) throw new RangeError('Index out of range')
  11929. }
  11930. function writeFloat (buf, value, offset, littleEndian, noAssert) {
  11931. if (!noAssert) {
  11932. checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
  11933. }
  11934. ieee754.write(buf, value, offset, littleEndian, 23, 4)
  11935. return offset + 4
  11936. }
  11937. Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
  11938. return writeFloat(this, value, offset, true, noAssert)
  11939. }
  11940. Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
  11941. return writeFloat(this, value, offset, false, noAssert)
  11942. }
  11943. function writeDouble (buf, value, offset, littleEndian, noAssert) {
  11944. if (!noAssert) {
  11945. checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
  11946. }
  11947. ieee754.write(buf, value, offset, littleEndian, 52, 8)
  11948. return offset + 8
  11949. }
  11950. Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
  11951. return writeDouble(this, value, offset, true, noAssert)
  11952. }
  11953. Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
  11954. return writeDouble(this, value, offset, false, noAssert)
  11955. }
  11956. // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
  11957. Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  11958. if (!start) start = 0
  11959. if (!end && end !== 0) end = this.length
  11960. if (targetStart >= target.length) targetStart = target.length
  11961. if (!targetStart) targetStart = 0
  11962. if (end > 0 && end < start) end = start
  11963. // Copy 0 bytes; we're done
  11964. if (end === start) return 0
  11965. if (target.length === 0 || this.length === 0) return 0
  11966. // Fatal error conditions
  11967. if (targetStart < 0) {
  11968. throw new RangeError('targetStart out of bounds')
  11969. }
  11970. if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
  11971. if (end < 0) throw new RangeError('sourceEnd out of bounds')
  11972. // Are we oob?
  11973. if (end > this.length) end = this.length
  11974. if (target.length - targetStart < end - start) {
  11975. end = target.length - targetStart + start
  11976. }
  11977. var len = end - start
  11978. var i
  11979. if (this === target && start < targetStart && targetStart < end) {
  11980. // descending copy from end
  11981. for (i = len - 1; i >= 0; --i) {
  11982. target[i + targetStart] = this[i + start]
  11983. }
  11984. } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
  11985. // ascending copy from start
  11986. for (i = 0; i < len; ++i) {
  11987. target[i + targetStart] = this[i + start]
  11988. }
  11989. } else {
  11990. Uint8Array.prototype.set.call(
  11991. target,
  11992. this.subarray(start, start + len),
  11993. targetStart
  11994. )
  11995. }
  11996. return len
  11997. }
  11998. // Usage:
  11999. // buffer.fill(number[, offset[, end]])
  12000. // buffer.fill(buffer[, offset[, end]])
  12001. // buffer.fill(string[, offset[, end]][, encoding])
  12002. Buffer.prototype.fill = function fill (val, start, end, encoding) {
  12003. // Handle string cases:
  12004. if (typeof val === 'string') {
  12005. if (typeof start === 'string') {
  12006. encoding = start
  12007. start = 0
  12008. end = this.length
  12009. } else if (typeof end === 'string') {
  12010. encoding = end
  12011. end = this.length
  12012. }
  12013. if (val.length === 1) {
  12014. var code = val.charCodeAt(0)
  12015. if (code < 256) {
  12016. val = code
  12017. }
  12018. }
  12019. if (encoding !== undefined && typeof encoding !== 'string') {
  12020. throw new TypeError('encoding must be a string')
  12021. }
  12022. if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
  12023. throw new TypeError('Unknown encoding: ' + encoding)
  12024. }
  12025. } else if (typeof val === 'number') {
  12026. val = val & 255
  12027. }
  12028. // Invalid ranges are not set to a default, so can range check early.
  12029. if (start < 0 || this.length < start || this.length < end) {
  12030. throw new RangeError('Out of range index')
  12031. }
  12032. if (end <= start) {
  12033. return this
  12034. }
  12035. start = start >>> 0
  12036. end = end === undefined ? this.length : end >>> 0
  12037. if (!val) val = 0
  12038. var i
  12039. if (typeof val === 'number') {
  12040. for (i = start; i < end; ++i) {
  12041. this[i] = val
  12042. }
  12043. } else {
  12044. var bytes = Buffer.isBuffer(val)
  12045. ? val
  12046. : utf8ToBytes(new Buffer(val, encoding).toString())
  12047. var len = bytes.length
  12048. for (i = 0; i < end - start; ++i) {
  12049. this[i + start] = bytes[i % len]
  12050. }
  12051. }
  12052. return this
  12053. }
  12054. // HELPER FUNCTIONS
  12055. // ================
  12056. var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
  12057. function base64clean (str) {
  12058. // Node strips out invalid characters like \n and \t from the string, base64-js does not
  12059. str = stringtrim(str).replace(INVALID_BASE64_RE, '')
  12060. // Node converts strings with length < 2 to ''
  12061. if (str.length < 2) return ''
  12062. // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
  12063. while (str.length % 4 !== 0) {
  12064. str = str + '='
  12065. }
  12066. return str
  12067. }
  12068. function stringtrim (str) {
  12069. if (str.trim) return str.trim()
  12070. return str.replace(/^\s+|\s+$/g, '')
  12071. }
  12072. function toHex (n) {
  12073. if (n < 16) return '0' + n.toString(16)
  12074. return n.toString(16)
  12075. }
  12076. function utf8ToBytes (string, units) {
  12077. units = units || Infinity
  12078. var codePoint
  12079. var length = string.length
  12080. var leadSurrogate = null
  12081. var bytes = []
  12082. for (var i = 0; i < length; ++i) {
  12083. codePoint = string.charCodeAt(i)
  12084. // is surrogate component
  12085. if (codePoint > 0xD7FF && codePoint < 0xE000) {
  12086. // last char was a lead
  12087. if (!leadSurrogate) {
  12088. // no lead yet
  12089. if (codePoint > 0xDBFF) {
  12090. // unexpected trail
  12091. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  12092. continue
  12093. } else if (i + 1 === length) {
  12094. // unpaired lead
  12095. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  12096. continue
  12097. }
  12098. // valid lead
  12099. leadSurrogate = codePoint
  12100. continue
  12101. }
  12102. // 2 leads in a row
  12103. if (codePoint < 0xDC00) {
  12104. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  12105. leadSurrogate = codePoint
  12106. continue
  12107. }
  12108. // valid surrogate pair
  12109. codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
  12110. } else if (leadSurrogate) {
  12111. // valid bmp char, but last char was a lead
  12112. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  12113. }
  12114. leadSurrogate = null
  12115. // encode utf8
  12116. if (codePoint < 0x80) {
  12117. if ((units -= 1) < 0) break
  12118. bytes.push(codePoint)
  12119. } else if (codePoint < 0x800) {
  12120. if ((units -= 2) < 0) break
  12121. bytes.push(
  12122. codePoint >> 0x6 | 0xC0,
  12123. codePoint & 0x3F | 0x80
  12124. )
  12125. } else if (codePoint < 0x10000) {
  12126. if ((units -= 3) < 0) break
  12127. bytes.push(
  12128. codePoint >> 0xC | 0xE0,
  12129. codePoint >> 0x6 & 0x3F | 0x80,
  12130. codePoint & 0x3F | 0x80
  12131. )
  12132. } else if (codePoint < 0x110000) {
  12133. if ((units -= 4) < 0) break
  12134. bytes.push(
  12135. codePoint >> 0x12 | 0xF0,
  12136. codePoint >> 0xC & 0x3F | 0x80,
  12137. codePoint >> 0x6 & 0x3F | 0x80,
  12138. codePoint & 0x3F | 0x80
  12139. )
  12140. } else {
  12141. throw new Error('Invalid code point')
  12142. }
  12143. }
  12144. return bytes
  12145. }
  12146. function asciiToBytes (str) {
  12147. var byteArray = []
  12148. for (var i = 0; i < str.length; ++i) {
  12149. // Node's code seems to be doing this and not & 0x7F..
  12150. byteArray.push(str.charCodeAt(i) & 0xFF)
  12151. }
  12152. return byteArray
  12153. }
  12154. function utf16leToBytes (str, units) {
  12155. var c, hi, lo
  12156. var byteArray = []
  12157. for (var i = 0; i < str.length; ++i) {
  12158. if ((units -= 2) < 0) break
  12159. c = str.charCodeAt(i)
  12160. hi = c >> 8
  12161. lo = c % 256
  12162. byteArray.push(lo)
  12163. byteArray.push(hi)
  12164. }
  12165. return byteArray
  12166. }
  12167. function base64ToBytes (str) {
  12168. return base64.toByteArray(base64clean(str))
  12169. }
  12170. function blitBuffer (src, dst, offset, length) {
  12171. for (var i = 0; i < length; ++i) {
  12172. if ((i + offset >= dst.length) || (i >= src.length)) break
  12173. dst[i + offset] = src[i]
  12174. }
  12175. return i
  12176. }
  12177. function isnan (val) {
  12178. return val !== val // eslint-disable-line no-self-compare
  12179. }
  12180. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 2)))
  12181. /***/ }),
  12182. /* 54 */
  12183. /*!*****************************************!*\
  12184. !*** ./node_modules/base64-js/index.js ***!
  12185. \*****************************************/
  12186. /*! no static exports found */
  12187. /***/ (function(module, exports, __webpack_require__) {
  12188. "use strict";
  12189. exports.byteLength = byteLength
  12190. exports.toByteArray = toByteArray
  12191. exports.fromByteArray = fromByteArray
  12192. var lookup = []
  12193. var revLookup = []
  12194. var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
  12195. var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  12196. for (var i = 0, len = code.length; i < len; ++i) {
  12197. lookup[i] = code[i]
  12198. revLookup[code.charCodeAt(i)] = i
  12199. }
  12200. // Support decoding URL-safe base64 strings, as Node.js does.
  12201. // See: https://en.wikipedia.org/wiki/Base64#URL_applications
  12202. revLookup['-'.charCodeAt(0)] = 62
  12203. revLookup['_'.charCodeAt(0)] = 63
  12204. function getLens (b64) {
  12205. var len = b64.length
  12206. if (len % 4 > 0) {
  12207. throw new Error('Invalid string. Length must be a multiple of 4')
  12208. }
  12209. // Trim off extra bytes after placeholder bytes are found
  12210. // See: https://github.com/beatgammit/base64-js/issues/42
  12211. var validLen = b64.indexOf('=')
  12212. if (validLen === -1) validLen = len
  12213. var placeHoldersLen = validLen === len
  12214. ? 0
  12215. : 4 - (validLen % 4)
  12216. return [validLen, placeHoldersLen]
  12217. }
  12218. // base64 is 4/3 + up to two characters of the original data
  12219. function byteLength (b64) {
  12220. var lens = getLens(b64)
  12221. var validLen = lens[0]
  12222. var placeHoldersLen = lens[1]
  12223. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  12224. }
  12225. function _byteLength (b64, validLen, placeHoldersLen) {
  12226. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  12227. }
  12228. function toByteArray (b64) {
  12229. var tmp
  12230. var lens = getLens(b64)
  12231. var validLen = lens[0]
  12232. var placeHoldersLen = lens[1]
  12233. var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
  12234. var curByte = 0
  12235. // if there are placeholders, only get up to the last complete 4 chars
  12236. var len = placeHoldersLen > 0
  12237. ? validLen - 4
  12238. : validLen
  12239. var i
  12240. for (i = 0; i < len; i += 4) {
  12241. tmp =
  12242. (revLookup[b64.charCodeAt(i)] << 18) |
  12243. (revLookup[b64.charCodeAt(i + 1)] << 12) |
  12244. (revLookup[b64.charCodeAt(i + 2)] << 6) |
  12245. revLookup[b64.charCodeAt(i + 3)]
  12246. arr[curByte++] = (tmp >> 16) & 0xFF
  12247. arr[curByte++] = (tmp >> 8) & 0xFF
  12248. arr[curByte++] = tmp & 0xFF
  12249. }
  12250. if (placeHoldersLen === 2) {
  12251. tmp =
  12252. (revLookup[b64.charCodeAt(i)] << 2) |
  12253. (revLookup[b64.charCodeAt(i + 1)] >> 4)
  12254. arr[curByte++] = tmp & 0xFF
  12255. }
  12256. if (placeHoldersLen === 1) {
  12257. tmp =
  12258. (revLookup[b64.charCodeAt(i)] << 10) |
  12259. (revLookup[b64.charCodeAt(i + 1)] << 4) |
  12260. (revLookup[b64.charCodeAt(i + 2)] >> 2)
  12261. arr[curByte++] = (tmp >> 8) & 0xFF
  12262. arr[curByte++] = tmp & 0xFF
  12263. }
  12264. return arr
  12265. }
  12266. function tripletToBase64 (num) {
  12267. return lookup[num >> 18 & 0x3F] +
  12268. lookup[num >> 12 & 0x3F] +
  12269. lookup[num >> 6 & 0x3F] +
  12270. lookup[num & 0x3F]
  12271. }
  12272. function encodeChunk (uint8, start, end) {
  12273. var tmp
  12274. var output = []
  12275. for (var i = start; i < end; i += 3) {
  12276. tmp =
  12277. ((uint8[i] << 16) & 0xFF0000) +
  12278. ((uint8[i + 1] << 8) & 0xFF00) +
  12279. (uint8[i + 2] & 0xFF)
  12280. output.push(tripletToBase64(tmp))
  12281. }
  12282. return output.join('')
  12283. }
  12284. function fromByteArray (uint8) {
  12285. var tmp
  12286. var len = uint8.length
  12287. var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
  12288. var parts = []
  12289. var maxChunkLength = 16383 // must be multiple of 3
  12290. // go through the array every three bytes, we'll deal with trailing stuff later
  12291. for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
  12292. parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
  12293. }
  12294. // pad the end with zeros, but make sure to not forget the extra bytes
  12295. if (extraBytes === 1) {
  12296. tmp = uint8[len - 1]
  12297. parts.push(
  12298. lookup[tmp >> 2] +
  12299. lookup[(tmp << 4) & 0x3F] +
  12300. '=='
  12301. )
  12302. } else if (extraBytes === 2) {
  12303. tmp = (uint8[len - 2] << 8) + uint8[len - 1]
  12304. parts.push(
  12305. lookup[tmp >> 10] +
  12306. lookup[(tmp >> 4) & 0x3F] +
  12307. lookup[(tmp << 2) & 0x3F] +
  12308. '='
  12309. )
  12310. }
  12311. return parts.join('')
  12312. }
  12313. /***/ }),
  12314. /* 55 */
  12315. /*!***************************************!*\
  12316. !*** ./node_modules/ieee754/index.js ***!
  12317. \***************************************/
  12318. /*! no static exports found */
  12319. /***/ (function(module, exports) {
  12320. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  12321. exports.read = function (buffer, offset, isLE, mLen, nBytes) {
  12322. var e, m
  12323. var eLen = (nBytes * 8) - mLen - 1
  12324. var eMax = (1 << eLen) - 1
  12325. var eBias = eMax >> 1
  12326. var nBits = -7
  12327. var i = isLE ? (nBytes - 1) : 0
  12328. var d = isLE ? -1 : 1
  12329. var s = buffer[offset + i]
  12330. i += d
  12331. e = s & ((1 << (-nBits)) - 1)
  12332. s >>= (-nBits)
  12333. nBits += eLen
  12334. for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  12335. m = e & ((1 << (-nBits)) - 1)
  12336. e >>= (-nBits)
  12337. nBits += mLen
  12338. for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  12339. if (e === 0) {
  12340. e = 1 - eBias
  12341. } else if (e === eMax) {
  12342. return m ? NaN : ((s ? -1 : 1) * Infinity)
  12343. } else {
  12344. m = m + Math.pow(2, mLen)
  12345. e = e - eBias
  12346. }
  12347. return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
  12348. }
  12349. exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
  12350. var e, m, c
  12351. var eLen = (nBytes * 8) - mLen - 1
  12352. var eMax = (1 << eLen) - 1
  12353. var eBias = eMax >> 1
  12354. var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
  12355. var i = isLE ? 0 : (nBytes - 1)
  12356. var d = isLE ? 1 : -1
  12357. var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
  12358. value = Math.abs(value)
  12359. if (isNaN(value) || value === Infinity) {
  12360. m = isNaN(value) ? 1 : 0
  12361. e = eMax
  12362. } else {
  12363. e = Math.floor(Math.log(value) / Math.LN2)
  12364. if (value * (c = Math.pow(2, -e)) < 1) {
  12365. e--
  12366. c *= 2
  12367. }
  12368. if (e + eBias >= 1) {
  12369. value += rt / c
  12370. } else {
  12371. value += rt * Math.pow(2, 1 - eBias)
  12372. }
  12373. if (value * c >= 2) {
  12374. e++
  12375. c /= 2
  12376. }
  12377. if (e + eBias >= eMax) {
  12378. m = 0
  12379. e = eMax
  12380. } else if (e + eBias >= 1) {
  12381. m = ((value * c) - 1) * Math.pow(2, mLen)
  12382. e = e + eBias
  12383. } else {
  12384. m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
  12385. e = 0
  12386. }
  12387. }
  12388. for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
  12389. e = (e << mLen) | m
  12390. eLen += mLen
  12391. for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
  12392. buffer[offset + i - d] |= s * 128
  12393. }
  12394. /***/ }),
  12395. /* 56 */
  12396. /*!***************************************!*\
  12397. !*** ./node_modules/isarray/index.js ***!
  12398. \***************************************/
  12399. /*! no static exports found */
  12400. /***/ (function(module, exports) {
  12401. var toString = {}.toString;
  12402. module.exports = Array.isArray || function (arr) {
  12403. return toString.call(arr) == '[object Array]';
  12404. };
  12405. /***/ }),
  12406. /* 57 */
  12407. /*!********************************************************************!*\
  12408. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/util/route.js ***!
  12409. \********************************************************************/
  12410. /*! no static exports found */
  12411. /***/ (function(module, exports, __webpack_require__) {
  12412. "use strict";
  12413. /* WEBPACK VAR INJECTION */(function(uni) {
  12414. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  12415. Object.defineProperty(exports, "__esModule", {
  12416. value: true
  12417. });
  12418. exports.default = void 0;
  12419. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 58));
  12420. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 60));
  12421. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 17));
  12422. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 18));
  12423. /**
  12424. * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
  12425. * 并且带有路由拦截功能
  12426. */
  12427. var Router = /*#__PURE__*/function () {
  12428. function Router() {
  12429. (0, _classCallCheck2.default)(this, Router);
  12430. // 原始属性定义
  12431. this.config = {
  12432. type: 'navigateTo',
  12433. url: '',
  12434. delta: 1,
  12435. // navigateBack页面后退时,回退的层数
  12436. params: {},
  12437. // 传递的参数
  12438. animationType: 'pop-in',
  12439. // 窗口动画,只在APP有效
  12440. animationDuration: 300,
  12441. // 窗口动画持续时间,单位毫秒,只在APP有效
  12442. intercept: false // 是否需要拦截
  12443. };
  12444. // 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
  12445. // 这里在构造函数中进行this绑定
  12446. this.route = this.route.bind(this);
  12447. }
  12448. // 判断url前面是否有"/",如果没有则加上,否则无法跳转
  12449. (0, _createClass2.default)(Router, [{
  12450. key: "addRootPath",
  12451. value: function addRootPath(url) {
  12452. return url[0] === '/' ? url : "/".concat(url);
  12453. }
  12454. // 整合路由参数
  12455. }, {
  12456. key: "mixinParam",
  12457. value: function mixinParam(url, params) {
  12458. url = url && this.addRootPath(url);
  12459. // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
  12460. // 如果有url中有get参数,转换后无需带上"?"
  12461. var query = '';
  12462. if (/.*\/.*\?.*=.*/.test(url)) {
  12463. // object对象转为get类型的参数
  12464. query = uni.$u.queryParams(params, false);
  12465. // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
  12466. return url += "&".concat(query);
  12467. }
  12468. // 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
  12469. query = uni.$u.queryParams(params);
  12470. return url += query;
  12471. }
  12472. // 对外的方法名称
  12473. }, {
  12474. key: "route",
  12475. value: function () {
  12476. var _route = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  12477. var options,
  12478. params,
  12479. mergeConfig,
  12480. isNext,
  12481. _args = arguments;
  12482. return _regenerator.default.wrap(function _callee$(_context) {
  12483. while (1) {
  12484. switch (_context.prev = _context.next) {
  12485. case 0:
  12486. options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
  12487. params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
  12488. // 合并用户的配置和内部的默认配置
  12489. mergeConfig = {};
  12490. if (typeof options === 'string') {
  12491. // 如果options为字符串,则为route(url, params)的形式
  12492. mergeConfig.url = this.mixinParam(options, params);
  12493. mergeConfig.type = 'navigateTo';
  12494. } else {
  12495. mergeConfig = uni.$u.deepMerge(this.config, options);
  12496. // 否则正常使用mergeConfig中的url和params进行拼接
  12497. mergeConfig.url = this.mixinParam(options.url, options.params);
  12498. }
  12499. // 如果本次跳转的路径和本页面路径一致,不执行跳转,防止用户快速点击跳转按钮,造成多次跳转同一个页面的问题
  12500. if (!(mergeConfig.url === uni.$u.page())) {
  12501. _context.next = 6;
  12502. break;
  12503. }
  12504. return _context.abrupt("return");
  12505. case 6:
  12506. if (params.intercept) {
  12507. this.config.intercept = params.intercept;
  12508. }
  12509. // params参数也带给拦截器
  12510. mergeConfig.params = params;
  12511. // 合并内外部参数
  12512. mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
  12513. // 判断用户是否定义了拦截器
  12514. if (!(typeof uni.$u.routeIntercept === 'function')) {
  12515. _context.next = 16;
  12516. break;
  12517. }
  12518. _context.next = 12;
  12519. return new Promise(function (resolve, reject) {
  12520. uni.$u.routeIntercept(mergeConfig, resolve);
  12521. });
  12522. case 12:
  12523. isNext = _context.sent;
  12524. // 如果isNext为true,则执行路由跳转
  12525. isNext && this.openPage(mergeConfig);
  12526. _context.next = 17;
  12527. break;
  12528. case 16:
  12529. this.openPage(mergeConfig);
  12530. case 17:
  12531. case "end":
  12532. return _context.stop();
  12533. }
  12534. }
  12535. }, _callee, this);
  12536. }));
  12537. function route() {
  12538. return _route.apply(this, arguments);
  12539. }
  12540. return route;
  12541. }() // 执行路由跳转
  12542. }, {
  12543. key: "openPage",
  12544. value: function openPage(config) {
  12545. // 解构参数
  12546. var url = config.url,
  12547. type = config.type,
  12548. delta = config.delta,
  12549. animationType = config.animationType,
  12550. animationDuration = config.animationDuration;
  12551. if (config.type == 'navigateTo' || config.type == 'to') {
  12552. uni.navigateTo({
  12553. url: url,
  12554. animationType: animationType,
  12555. animationDuration: animationDuration
  12556. });
  12557. }
  12558. if (config.type == 'redirectTo' || config.type == 'redirect') {
  12559. uni.redirectTo({
  12560. url: url
  12561. });
  12562. }
  12563. if (config.type == 'switchTab' || config.type == 'tab') {
  12564. uni.switchTab({
  12565. url: url
  12566. });
  12567. }
  12568. if (config.type == 'reLaunch' || config.type == 'launch') {
  12569. uni.reLaunch({
  12570. url: url
  12571. });
  12572. }
  12573. if (config.type == 'navigateBack' || config.type == 'back') {
  12574. uni.navigateBack({
  12575. delta: delta
  12576. });
  12577. }
  12578. }
  12579. }]);
  12580. return Router;
  12581. }();
  12582. var _default = new Router().route;
  12583. exports.default = _default;
  12584. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  12585. /***/ }),
  12586. /* 58 */
  12587. /*!************************************************************************************************!*\
  12588. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  12589. \************************************************************************************************/
  12590. /*! no static exports found */
  12591. /***/ (function(module, exports, __webpack_require__) {
  12592. // TODO(Babel 8): Remove this file.
  12593. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 59)();
  12594. module.exports = runtime;
  12595. /***/ }),
  12596. /* 59 */
  12597. /*!*******************************************************************!*\
  12598. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  12599. \*******************************************************************/
  12600. /*! no static exports found */
  12601. /***/ (function(module, exports, __webpack_require__) {
  12602. var _typeof = __webpack_require__(/*! ./typeof.js */ 12)["default"];
  12603. function _regeneratorRuntime() {
  12604. "use strict";
  12605. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  12606. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  12607. return exports;
  12608. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12609. var exports = {},
  12610. Op = Object.prototype,
  12611. hasOwn = Op.hasOwnProperty,
  12612. defineProperty = Object.defineProperty || function (obj, key, desc) {
  12613. obj[key] = desc.value;
  12614. },
  12615. $Symbol = "function" == typeof Symbol ? Symbol : {},
  12616. iteratorSymbol = $Symbol.iterator || "@@iterator",
  12617. asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
  12618. toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  12619. function define(obj, key, value) {
  12620. return Object.defineProperty(obj, key, {
  12621. value: value,
  12622. enumerable: !0,
  12623. configurable: !0,
  12624. writable: !0
  12625. }), obj[key];
  12626. }
  12627. try {
  12628. define({}, "");
  12629. } catch (err) {
  12630. define = function define(obj, key, value) {
  12631. return obj[key] = value;
  12632. };
  12633. }
  12634. function wrap(innerFn, outerFn, self, tryLocsList) {
  12635. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
  12636. generator = Object.create(protoGenerator.prototype),
  12637. context = new Context(tryLocsList || []);
  12638. return defineProperty(generator, "_invoke", {
  12639. value: makeInvokeMethod(innerFn, self, context)
  12640. }), generator;
  12641. }
  12642. function tryCatch(fn, obj, arg) {
  12643. try {
  12644. return {
  12645. type: "normal",
  12646. arg: fn.call(obj, arg)
  12647. };
  12648. } catch (err) {
  12649. return {
  12650. type: "throw",
  12651. arg: err
  12652. };
  12653. }
  12654. }
  12655. exports.wrap = wrap;
  12656. var ContinueSentinel = {};
  12657. function Generator() {}
  12658. function GeneratorFunction() {}
  12659. function GeneratorFunctionPrototype() {}
  12660. var IteratorPrototype = {};
  12661. define(IteratorPrototype, iteratorSymbol, function () {
  12662. return this;
  12663. });
  12664. var getProto = Object.getPrototypeOf,
  12665. NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  12666. NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
  12667. var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
  12668. function defineIteratorMethods(prototype) {
  12669. ["next", "throw", "return"].forEach(function (method) {
  12670. define(prototype, method, function (arg) {
  12671. return this._invoke(method, arg);
  12672. });
  12673. });
  12674. }
  12675. function AsyncIterator(generator, PromiseImpl) {
  12676. function invoke(method, arg, resolve, reject) {
  12677. var record = tryCatch(generator[method], generator, arg);
  12678. if ("throw" !== record.type) {
  12679. var result = record.arg,
  12680. value = result.value;
  12681. return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
  12682. invoke("next", value, resolve, reject);
  12683. }, function (err) {
  12684. invoke("throw", err, resolve, reject);
  12685. }) : PromiseImpl.resolve(value).then(function (unwrapped) {
  12686. result.value = unwrapped, resolve(result);
  12687. }, function (error) {
  12688. return invoke("throw", error, resolve, reject);
  12689. });
  12690. }
  12691. reject(record.arg);
  12692. }
  12693. var previousPromise;
  12694. defineProperty(this, "_invoke", {
  12695. value: function value(method, arg) {
  12696. function callInvokeWithMethodAndArg() {
  12697. return new PromiseImpl(function (resolve, reject) {
  12698. invoke(method, arg, resolve, reject);
  12699. });
  12700. }
  12701. return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  12702. }
  12703. });
  12704. }
  12705. function makeInvokeMethod(innerFn, self, context) {
  12706. var state = "suspendedStart";
  12707. return function (method, arg) {
  12708. if ("executing" === state) throw new Error("Generator is already running");
  12709. if ("completed" === state) {
  12710. if ("throw" === method) throw arg;
  12711. return doneResult();
  12712. }
  12713. for (context.method = method, context.arg = arg;;) {
  12714. var delegate = context.delegate;
  12715. if (delegate) {
  12716. var delegateResult = maybeInvokeDelegate(delegate, context);
  12717. if (delegateResult) {
  12718. if (delegateResult === ContinueSentinel) continue;
  12719. return delegateResult;
  12720. }
  12721. }
  12722. if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
  12723. if ("suspendedStart" === state) throw state = "completed", context.arg;
  12724. context.dispatchException(context.arg);
  12725. } else "return" === context.method && context.abrupt("return", context.arg);
  12726. state = "executing";
  12727. var record = tryCatch(innerFn, self, context);
  12728. if ("normal" === record.type) {
  12729. if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
  12730. return {
  12731. value: record.arg,
  12732. done: context.done
  12733. };
  12734. }
  12735. "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
  12736. }
  12737. };
  12738. }
  12739. function maybeInvokeDelegate(delegate, context) {
  12740. var methodName = context.method,
  12741. method = delegate.iterator[methodName];
  12742. 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;
  12743. var record = tryCatch(method, delegate.iterator, context.arg);
  12744. if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
  12745. var info = record.arg;
  12746. 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);
  12747. }
  12748. function pushTryEntry(locs) {
  12749. var entry = {
  12750. tryLoc: locs[0]
  12751. };
  12752. 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
  12753. }
  12754. function resetTryEntry(entry) {
  12755. var record = entry.completion || {};
  12756. record.type = "normal", delete record.arg, entry.completion = record;
  12757. }
  12758. function Context(tryLocsList) {
  12759. this.tryEntries = [{
  12760. tryLoc: "root"
  12761. }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
  12762. }
  12763. function values(iterable) {
  12764. if (iterable) {
  12765. var iteratorMethod = iterable[iteratorSymbol];
  12766. if (iteratorMethod) return iteratorMethod.call(iterable);
  12767. if ("function" == typeof iterable.next) return iterable;
  12768. if (!isNaN(iterable.length)) {
  12769. var i = -1,
  12770. next = function next() {
  12771. for (; ++i < iterable.length;) {
  12772. if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
  12773. }
  12774. return next.value = undefined, next.done = !0, next;
  12775. };
  12776. return next.next = next;
  12777. }
  12778. }
  12779. return {
  12780. next: doneResult
  12781. };
  12782. }
  12783. function doneResult() {
  12784. return {
  12785. value: undefined,
  12786. done: !0
  12787. };
  12788. }
  12789. return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
  12790. value: GeneratorFunctionPrototype,
  12791. configurable: !0
  12792. }), defineProperty(GeneratorFunctionPrototype, "constructor", {
  12793. value: GeneratorFunction,
  12794. configurable: !0
  12795. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
  12796. var ctor = "function" == typeof genFun && genFun.constructor;
  12797. return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
  12798. }, exports.mark = function (genFun) {
  12799. return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
  12800. }, exports.awrap = function (arg) {
  12801. return {
  12802. __await: arg
  12803. };
  12804. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
  12805. return this;
  12806. }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
  12807. void 0 === PromiseImpl && (PromiseImpl = Promise);
  12808. var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
  12809. return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
  12810. return result.done ? result.value : iter.next();
  12811. });
  12812. }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
  12813. return this;
  12814. }), define(Gp, "toString", function () {
  12815. return "[object Generator]";
  12816. }), exports.keys = function (val) {
  12817. var object = Object(val),
  12818. keys = [];
  12819. for (var key in object) {
  12820. keys.push(key);
  12821. }
  12822. return keys.reverse(), function next() {
  12823. for (; keys.length;) {
  12824. var key = keys.pop();
  12825. if (key in object) return next.value = key, next.done = !1, next;
  12826. }
  12827. return next.done = !0, next;
  12828. };
  12829. }, exports.values = values, Context.prototype = {
  12830. constructor: Context,
  12831. reset: function reset(skipTempReset) {
  12832. 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) {
  12833. "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
  12834. }
  12835. },
  12836. stop: function stop() {
  12837. this.done = !0;
  12838. var rootRecord = this.tryEntries[0].completion;
  12839. if ("throw" === rootRecord.type) throw rootRecord.arg;
  12840. return this.rval;
  12841. },
  12842. dispatchException: function dispatchException(exception) {
  12843. if (this.done) throw exception;
  12844. var context = this;
  12845. function handle(loc, caught) {
  12846. return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
  12847. }
  12848. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  12849. var entry = this.tryEntries[i],
  12850. record = entry.completion;
  12851. if ("root" === entry.tryLoc) return handle("end");
  12852. if (entry.tryLoc <= this.prev) {
  12853. var hasCatch = hasOwn.call(entry, "catchLoc"),
  12854. hasFinally = hasOwn.call(entry, "finallyLoc");
  12855. if (hasCatch && hasFinally) {
  12856. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  12857. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  12858. } else if (hasCatch) {
  12859. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  12860. } else {
  12861. if (!hasFinally) throw new Error("try statement without catch or finally");
  12862. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  12863. }
  12864. }
  12865. }
  12866. },
  12867. abrupt: function abrupt(type, arg) {
  12868. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  12869. var entry = this.tryEntries[i];
  12870. if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
  12871. var finallyEntry = entry;
  12872. break;
  12873. }
  12874. }
  12875. finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
  12876. var record = finallyEntry ? finallyEntry.completion : {};
  12877. return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
  12878. },
  12879. complete: function complete(record, afterLoc) {
  12880. if ("throw" === record.type) throw record.arg;
  12881. 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;
  12882. },
  12883. finish: function finish(finallyLoc) {
  12884. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  12885. var entry = this.tryEntries[i];
  12886. if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
  12887. }
  12888. },
  12889. "catch": function _catch(tryLoc) {
  12890. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  12891. var entry = this.tryEntries[i];
  12892. if (entry.tryLoc === tryLoc) {
  12893. var record = entry.completion;
  12894. if ("throw" === record.type) {
  12895. var thrown = record.arg;
  12896. resetTryEntry(entry);
  12897. }
  12898. return thrown;
  12899. }
  12900. }
  12901. throw new Error("illegal catch attempt");
  12902. },
  12903. delegateYield: function delegateYield(iterable, resultName, nextLoc) {
  12904. return this.delegate = {
  12905. iterator: values(iterable),
  12906. resultName: resultName,
  12907. nextLoc: nextLoc
  12908. }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
  12909. }
  12910. }, exports;
  12911. }
  12912. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12913. /***/ }),
  12914. /* 60 */
  12915. /*!*****************************************************************!*\
  12916. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  12917. \*****************************************************************/
  12918. /*! no static exports found */
  12919. /***/ (function(module, exports) {
  12920. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  12921. try {
  12922. var info = gen[key](arg);
  12923. var value = info.value;
  12924. } catch (error) {
  12925. reject(error);
  12926. return;
  12927. }
  12928. if (info.done) {
  12929. resolve(value);
  12930. } else {
  12931. Promise.resolve(value).then(_next, _throw);
  12932. }
  12933. }
  12934. function _asyncToGenerator(fn) {
  12935. return function () {
  12936. var self = this,
  12937. args = arguments;
  12938. return new Promise(function (resolve, reject) {
  12939. var gen = fn.apply(self, args);
  12940. function _next(value) {
  12941. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  12942. }
  12943. function _throw(err) {
  12944. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  12945. }
  12946. _next(undefined);
  12947. });
  12948. };
  12949. }
  12950. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12951. /***/ }),
  12952. /* 61 */
  12953. /*!********************************************************************************!*\
  12954. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/function/colorGradient.js ***!
  12955. \********************************************************************************/
  12956. /*! no static exports found */
  12957. /***/ (function(module, exports, __webpack_require__) {
  12958. "use strict";
  12959. Object.defineProperty(exports, "__esModule", {
  12960. value: true
  12961. });
  12962. exports.default = void 0;
  12963. /**
  12964. * 求两个颜色之间的渐变值
  12965. * @param {string} startColor 开始的颜色
  12966. * @param {string} endColor 结束的颜色
  12967. * @param {number} step 颜色等分的份额
  12968. * */
  12969. function colorGradient() {
  12970. var startColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'rgb(0, 0, 0)';
  12971. var endColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rgb(255, 255, 255)';
  12972. var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
  12973. var startRGB = hexToRgb(startColor, false); // 转换为rgb数组模式
  12974. var startR = startRGB[0];
  12975. var startG = startRGB[1];
  12976. var startB = startRGB[2];
  12977. var endRGB = hexToRgb(endColor, false);
  12978. var endR = endRGB[0];
  12979. var endG = endRGB[1];
  12980. var endB = endRGB[2];
  12981. var sR = (endR - startR) / step; // 总差值
  12982. var sG = (endG - startG) / step;
  12983. var sB = (endB - startB) / step;
  12984. var colorArr = [];
  12985. for (var i = 0; i < step; i++) {
  12986. // 计算每一步的hex值
  12987. var hex = rgbToHex("rgb(".concat(Math.round(sR * i + startR), ",").concat(Math.round(sG * i + startG), ",").concat(Math.round(sB * i + startB), ")"));
  12988. // 确保第一个颜色值为startColor的值
  12989. if (i === 0) hex = rgbToHex(startColor);
  12990. // 确保最后一个颜色值为endColor的值
  12991. if (i === step - 1) hex = rgbToHex(endColor);
  12992. colorArr.push(hex);
  12993. }
  12994. return colorArr;
  12995. }
  12996. // 将hex表示方式转换为rgb表示方式(这里返回rgb数组模式)
  12997. function hexToRgb(sColor) {
  12998. var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  12999. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  13000. sColor = String(sColor).toLowerCase();
  13001. if (sColor && reg.test(sColor)) {
  13002. if (sColor.length === 4) {
  13003. var sColorNew = '#';
  13004. for (var i = 1; i < 4; i += 1) {
  13005. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  13006. }
  13007. sColor = sColorNew;
  13008. }
  13009. // 处理六位的颜色值
  13010. var sColorChange = [];
  13011. for (var _i = 1; _i < 7; _i += 2) {
  13012. sColorChange.push(parseInt("0x".concat(sColor.slice(_i, _i + 2))));
  13013. }
  13014. if (!str) {
  13015. return sColorChange;
  13016. }
  13017. return "rgb(".concat(sColorChange[0], ",").concat(sColorChange[1], ",").concat(sColorChange[2], ")");
  13018. }
  13019. if (/^(rgb|RGB)/.test(sColor)) {
  13020. var arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  13021. return arr.map(function (val) {
  13022. return Number(val);
  13023. });
  13024. }
  13025. return sColor;
  13026. }
  13027. // 将rgb表示方式转换为hex表示方式
  13028. function rgbToHex(rgb) {
  13029. var _this = rgb;
  13030. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  13031. if (/^(rgb|RGB)/.test(_this)) {
  13032. var aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  13033. var strHex = '#';
  13034. for (var i = 0; i < aColor.length; i++) {
  13035. var hex = Number(aColor[i]).toString(16);
  13036. hex = String(hex).length == 1 ? "".concat(0, hex) : hex; // 保证每个rgb的值为2位
  13037. if (hex === '0') {
  13038. hex += hex;
  13039. }
  13040. strHex += hex;
  13041. }
  13042. if (strHex.length !== 7) {
  13043. strHex = _this;
  13044. }
  13045. return strHex;
  13046. }
  13047. if (reg.test(_this)) {
  13048. var aNum = _this.replace(/#/, '').split('');
  13049. if (aNum.length === 6) {
  13050. return _this;
  13051. }
  13052. if (aNum.length === 3) {
  13053. var numHex = '#';
  13054. for (var _i2 = 0; _i2 < aNum.length; _i2 += 1) {
  13055. numHex += aNum[_i2] + aNum[_i2];
  13056. }
  13057. return numHex;
  13058. }
  13059. } else {
  13060. return _this;
  13061. }
  13062. }
  13063. /**
  13064. * JS颜色十六进制转换为rgb或rgba,返回的格式为 rgba(255,255,255,0.5)字符串
  13065. * sHex为传入的十六进制的色值
  13066. * alpha为rgba的透明度
  13067. */
  13068. function colorToRgba(color, alpha) {
  13069. color = rgbToHex(color);
  13070. // 十六进制颜色值的正则表达式
  13071. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  13072. /* 16进制颜色转为RGB格式 */
  13073. var sColor = String(color).toLowerCase();
  13074. if (sColor && reg.test(sColor)) {
  13075. if (sColor.length === 4) {
  13076. var sColorNew = '#';
  13077. for (var i = 1; i < 4; i += 1) {
  13078. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  13079. }
  13080. sColor = sColorNew;
  13081. }
  13082. // 处理六位的颜色值
  13083. var sColorChange = [];
  13084. for (var _i3 = 1; _i3 < 7; _i3 += 2) {
  13085. sColorChange.push(parseInt("0x".concat(sColor.slice(_i3, _i3 + 2))));
  13086. }
  13087. // return sColorChange.join(',')
  13088. return "rgba(".concat(sColorChange.join(','), ",").concat(alpha, ")");
  13089. }
  13090. return sColor;
  13091. }
  13092. var _default = {
  13093. colorGradient: colorGradient,
  13094. hexToRgb: hexToRgb,
  13095. rgbToHex: rgbToHex,
  13096. colorToRgba: colorToRgba
  13097. };
  13098. exports.default = _default;
  13099. /***/ }),
  13100. /* 62 */
  13101. /*!***********************************************************************!*\
  13102. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/function/test.js ***!
  13103. \***********************************************************************/
  13104. /*! no static exports found */
  13105. /***/ (function(module, exports, __webpack_require__) {
  13106. "use strict";
  13107. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  13108. Object.defineProperty(exports, "__esModule", {
  13109. value: true
  13110. });
  13111. exports.default = void 0;
  13112. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 12));
  13113. /**
  13114. * 验证电子邮箱格式
  13115. */
  13116. function email(value) {
  13117. return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
  13118. }
  13119. /**
  13120. * 验证手机格式
  13121. */
  13122. function mobile(value) {
  13123. return /^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/.test(value);
  13124. }
  13125. /**
  13126. * 验证URL格式
  13127. */
  13128. function url(value) {
  13129. return /^((https|http|ftp|rtsp|mms):\/\/)(([0-9a-zA-Z_!~*'().&=+$%-]+: )?[0-9a-zA-Z_!~*'().&=+$%-]+@)?(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-zA-Z_!~*'()-]+.)*([0-9a-zA-Z][0-9a-zA-Z-]{0,61})?[0-9a-zA-Z].[a-zA-Z]{2,6})(:[0-9]{1,4})?((\/?)|(\/[0-9a-zA-Z_!~*'().;?:@&=+$,%#-]+)+\/?)$/.test(value);
  13130. }
  13131. /**
  13132. * 验证日期格式
  13133. */
  13134. function date(value) {
  13135. if (!value) return false;
  13136. // 判断是否数值或者字符串数值(意味着为时间戳),转为数值,否则new Date无法识别字符串时间戳
  13137. if (number(value)) value = +value;
  13138. return !/Invalid|NaN/.test(new Date(value).toString());
  13139. }
  13140. /**
  13141. * 验证ISO类型的日期格式
  13142. */
  13143. function dateISO(value) {
  13144. return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);
  13145. }
  13146. /**
  13147. * 验证十进制数字
  13148. */
  13149. function number(value) {
  13150. return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value);
  13151. }
  13152. /**
  13153. * 验证字符串
  13154. */
  13155. function string(value) {
  13156. return typeof value === 'string';
  13157. }
  13158. /**
  13159. * 验证整数
  13160. */
  13161. function digits(value) {
  13162. return /^\d+$/.test(value);
  13163. }
  13164. /**
  13165. * 验证身份证号码
  13166. */
  13167. function idCard(value) {
  13168. return /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(value);
  13169. }
  13170. /**
  13171. * 是否车牌号
  13172. */
  13173. function carNo(value) {
  13174. // 新能源车牌
  13175. var xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
  13176. // 旧车牌
  13177. var creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
  13178. if (value.length === 7) {
  13179. return creg.test(value);
  13180. }
  13181. if (value.length === 8) {
  13182. return xreg.test(value);
  13183. }
  13184. return false;
  13185. }
  13186. /**
  13187. * 金额,只允许2位小数
  13188. */
  13189. function amount(value) {
  13190. // 金额,只允许保留两位小数
  13191. return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value);
  13192. }
  13193. /**
  13194. * 中文
  13195. */
  13196. function chinese(value) {
  13197. var reg = /^[\u4e00-\u9fa5]+$/gi;
  13198. return reg.test(value);
  13199. }
  13200. /**
  13201. * 只能输入字母
  13202. */
  13203. function letter(value) {
  13204. return /^[a-zA-Z]*$/.test(value);
  13205. }
  13206. /**
  13207. * 只能是字母或者数字
  13208. */
  13209. function enOrNum(value) {
  13210. // 英文或者数字
  13211. var reg = /^[0-9a-zA-Z]*$/g;
  13212. return reg.test(value);
  13213. }
  13214. /**
  13215. * 验证是否包含某个值
  13216. */
  13217. function contains(value, param) {
  13218. return value.indexOf(param) >= 0;
  13219. }
  13220. /**
  13221. * 验证一个值范围[min, max]
  13222. */
  13223. function range(value, param) {
  13224. return value >= param[0] && value <= param[1];
  13225. }
  13226. /**
  13227. * 验证一个长度范围[min, max]
  13228. */
  13229. function rangeLength(value, param) {
  13230. return value.length >= param[0] && value.length <= param[1];
  13231. }
  13232. /**
  13233. * 是否固定电话
  13234. */
  13235. function landline(value) {
  13236. var reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;
  13237. return reg.test(value);
  13238. }
  13239. /**
  13240. * 判断是否为空
  13241. */
  13242. function empty(value) {
  13243. switch ((0, _typeof2.default)(value)) {
  13244. case 'undefined':
  13245. return true;
  13246. case 'string':
  13247. if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) return true;
  13248. break;
  13249. case 'boolean':
  13250. if (!value) return true;
  13251. break;
  13252. case 'number':
  13253. if (value === 0 || isNaN(value)) return true;
  13254. break;
  13255. case 'object':
  13256. if (value === null || value.length === 0) return true;
  13257. for (var i in value) {
  13258. return false;
  13259. }
  13260. return true;
  13261. }
  13262. return false;
  13263. }
  13264. /**
  13265. * 是否json字符串
  13266. */
  13267. function jsonString(value) {
  13268. if (typeof value === 'string') {
  13269. try {
  13270. var obj = JSON.parse(value);
  13271. if ((0, _typeof2.default)(obj) === 'object' && obj) {
  13272. return true;
  13273. }
  13274. return false;
  13275. } catch (e) {
  13276. return false;
  13277. }
  13278. }
  13279. return false;
  13280. }
  13281. /**
  13282. * 是否数组
  13283. */
  13284. function array(value) {
  13285. if (typeof Array.isArray === 'function') {
  13286. return Array.isArray(value);
  13287. }
  13288. return Object.prototype.toString.call(value) === '[object Array]';
  13289. }
  13290. /**
  13291. * 是否对象
  13292. */
  13293. function object(value) {
  13294. return Object.prototype.toString.call(value) === '[object Object]';
  13295. }
  13296. /**
  13297. * 是否短信验证码
  13298. */
  13299. function code(value) {
  13300. var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
  13301. return new RegExp("^\\d{".concat(len, "}$")).test(value);
  13302. }
  13303. /**
  13304. * 是否函数方法
  13305. * @param {Object} value
  13306. */
  13307. function func(value) {
  13308. return typeof value === 'function';
  13309. }
  13310. /**
  13311. * 是否promise对象
  13312. * @param {Object} value
  13313. */
  13314. function promise(value) {
  13315. return object(value) && func(value.then) && func(value.catch);
  13316. }
  13317. /** 是否图片格式
  13318. * @param {Object} value
  13319. */
  13320. function image(value) {
  13321. var newValue = value.split('?')[0];
  13322. var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  13323. return IMAGE_REGEXP.test(newValue);
  13324. }
  13325. /**
  13326. * 是否视频格式
  13327. * @param {Object} value
  13328. */
  13329. function video(value) {
  13330. var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;
  13331. return VIDEO_REGEXP.test(value);
  13332. }
  13333. /**
  13334. * 是否为正则对象
  13335. * @param {Object}
  13336. * @return {Boolean}
  13337. */
  13338. function regExp(o) {
  13339. return o && Object.prototype.toString.call(o) === '[object RegExp]';
  13340. }
  13341. var _default = {
  13342. email: email,
  13343. mobile: mobile,
  13344. url: url,
  13345. date: date,
  13346. dateISO: dateISO,
  13347. number: number,
  13348. digits: digits,
  13349. idCard: idCard,
  13350. carNo: carNo,
  13351. amount: amount,
  13352. chinese: chinese,
  13353. letter: letter,
  13354. enOrNum: enOrNum,
  13355. contains: contains,
  13356. range: range,
  13357. rangeLength: rangeLength,
  13358. empty: empty,
  13359. isEmpty: empty,
  13360. jsonString: jsonString,
  13361. landline: landline,
  13362. object: object,
  13363. array: array,
  13364. code: code,
  13365. func: func,
  13366. promise: promise,
  13367. video: video,
  13368. image: image,
  13369. regExp: regExp,
  13370. string: string
  13371. };
  13372. exports.default = _default;
  13373. /***/ }),
  13374. /* 63 */
  13375. /*!***************************************************************************!*\
  13376. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/function/debounce.js ***!
  13377. \***************************************************************************/
  13378. /*! no static exports found */
  13379. /***/ (function(module, exports, __webpack_require__) {
  13380. "use strict";
  13381. Object.defineProperty(exports, "__esModule", {
  13382. value: true
  13383. });
  13384. exports.default = void 0;
  13385. var timeout = null;
  13386. /**
  13387. * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数
  13388. *
  13389. * @param {Function} func 要执行的回调函数
  13390. * @param {Number} wait 延时的时间
  13391. * @param {Boolean} immediate 是否立即执行
  13392. * @return null
  13393. */
  13394. function debounce(func) {
  13395. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  13396. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  13397. // 清除定时器
  13398. if (timeout !== null) clearTimeout(timeout);
  13399. // 立即执行,此类情况一般用不到
  13400. if (immediate) {
  13401. var callNow = !timeout;
  13402. timeout = setTimeout(function () {
  13403. timeout = null;
  13404. }, wait);
  13405. if (callNow) typeof func === 'function' && func();
  13406. } else {
  13407. // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法
  13408. timeout = setTimeout(function () {
  13409. typeof func === 'function' && func();
  13410. }, wait);
  13411. }
  13412. }
  13413. var _default = debounce;
  13414. exports.default = _default;
  13415. /***/ }),
  13416. /* 64 */
  13417. /*!***************************************************************************!*\
  13418. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/function/throttle.js ***!
  13419. \***************************************************************************/
  13420. /*! no static exports found */
  13421. /***/ (function(module, exports, __webpack_require__) {
  13422. "use strict";
  13423. Object.defineProperty(exports, "__esModule", {
  13424. value: true
  13425. });
  13426. exports.default = void 0;
  13427. var timer;
  13428. var flag;
  13429. /**
  13430. * 节流原理:在一定时间内,只能触发一次
  13431. *
  13432. * @param {Function} func 要执行的回调函数
  13433. * @param {Number} wait 延时的时间
  13434. * @param {Boolean} immediate 是否立即执行
  13435. * @return null
  13436. */
  13437. function throttle(func) {
  13438. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  13439. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  13440. if (immediate) {
  13441. if (!flag) {
  13442. flag = true;
  13443. // 如果是立即执行,则在wait毫秒内开始时执行
  13444. typeof func === 'function' && func();
  13445. timer = setTimeout(function () {
  13446. flag = false;
  13447. }, wait);
  13448. }
  13449. } else if (!flag) {
  13450. flag = true;
  13451. // 如果是非立即执行,则在wait毫秒内的结束处执行
  13452. timer = setTimeout(function () {
  13453. flag = false;
  13454. typeof func === 'function' && func();
  13455. }, wait);
  13456. }
  13457. }
  13458. var _default = throttle;
  13459. exports.default = _default;
  13460. /***/ }),
  13461. /* 65 */
  13462. /*!************************************************************************!*\
  13463. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/function/index.js ***!
  13464. \************************************************************************/
  13465. /*! no static exports found */
  13466. /***/ (function(module, exports, __webpack_require__) {
  13467. "use strict";
  13468. /* WEBPACK VAR INJECTION */(function(uni) {
  13469. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  13470. Object.defineProperty(exports, "__esModule", {
  13471. value: true
  13472. });
  13473. exports.default = void 0;
  13474. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 4));
  13475. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 12));
  13476. var _test = _interopRequireDefault(__webpack_require__(/*! ./test.js */ 62));
  13477. var _digit = __webpack_require__(/*! ./digit.js */ 66);
  13478. /**
  13479. * @description 如果value小于min,取min;如果value大于max,取max
  13480. * @param {number} min
  13481. * @param {number} max
  13482. * @param {number} value
  13483. */
  13484. function range() {
  13485. var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  13486. var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  13487. var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
  13488. return Math.max(min, Math.min(max, Number(value)));
  13489. }
  13490. /**
  13491. * @description 用于获取用户传递值的px值 如果用户传递了"xxpx"或者"xxrpx",取出其数值部分,如果是"xxxrpx"还需要用过uni.upx2px进行转换
  13492. * @param {number|string} value 用户传递值的px值
  13493. * @param {boolean} unit
  13494. * @returns {number|string}
  13495. */
  13496. function getPx(value) {
  13497. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13498. if (_test.default.number(value)) {
  13499. return unit ? "".concat(value, "px") : Number(value);
  13500. }
  13501. // 如果带有rpx,先取出其数值部分,再转为px值
  13502. if (/(rpx|upx)$/.test(value)) {
  13503. return unit ? "".concat(uni.upx2px(parseInt(value)), "px") : Number(uni.upx2px(parseInt(value)));
  13504. }
  13505. return unit ? "".concat(parseInt(value), "px") : parseInt(value);
  13506. }
  13507. /**
  13508. * @description 进行延时,以达到可以简写代码的目的 比如: await uni.$u.sleep(20)将会阻塞20ms
  13509. * @param {number} value 堵塞时间 单位ms 毫秒
  13510. * @returns {Promise} 返回promise
  13511. */
  13512. function sleep() {
  13513. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 30;
  13514. return new Promise(function (resolve) {
  13515. setTimeout(function () {
  13516. resolve();
  13517. }, value);
  13518. });
  13519. }
  13520. /**
  13521. * @description 运行期判断平台
  13522. * @returns {string} 返回所在平台(小写)
  13523. * @link 运行期判断平台 https://uniapp.dcloud.io/frame?id=判断平台
  13524. */
  13525. function os() {
  13526. return uni.getSystemInfoSync().platform.toLowerCase();
  13527. }
  13528. /**
  13529. * @description 获取系统信息同步接口
  13530. * @link 获取系统信息同步接口 https://uniapp.dcloud.io/api/system/info?id=getsysteminfosync
  13531. */
  13532. function sys() {
  13533. return uni.getSystemInfoSync();
  13534. }
  13535. /**
  13536. * @description 取一个区间数
  13537. * @param {Number} min 最小值
  13538. * @param {Number} max 最大值
  13539. */
  13540. function random(min, max) {
  13541. if (min >= 0 && max > 0 && max >= min) {
  13542. var gab = max - min + 1;
  13543. return Math.floor(Math.random() * gab + min);
  13544. }
  13545. return 0;
  13546. }
  13547. /**
  13548. * @param {Number} len uuid的长度
  13549. * @param {Boolean} firstU 将返回的首字母置为"u"
  13550. * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
  13551. */
  13552. function guid() {
  13553. var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
  13554. var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13555. var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  13556. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  13557. var uuid = [];
  13558. radix = radix || chars.length;
  13559. if (len) {
  13560. // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
  13561. for (var i = 0; i < len; i++) {
  13562. uuid[i] = chars[0 | Math.random() * radix];
  13563. }
  13564. } else {
  13565. var r;
  13566. // rfc4122标准要求返回的uuid中,某些位为固定的字符
  13567. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  13568. uuid[14] = '4';
  13569. for (var _i = 0; _i < 36; _i++) {
  13570. if (!uuid[_i]) {
  13571. r = 0 | Math.random() * 16;
  13572. uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
  13573. }
  13574. }
  13575. }
  13576. // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  13577. if (firstU) {
  13578. uuid.shift();
  13579. return "u".concat(uuid.join(''));
  13580. }
  13581. return uuid.join('');
  13582. }
  13583. /**
  13584. * @description 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  13585. this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  13586. 这里默认值等于undefined有它的含义,因为最顶层元素(组件)的$parent就是undefined,意味着不传name
  13587. 值(默认为undefined),就是查找最顶层的$parent
  13588. * @param {string|undefined} name 父组件的参数名
  13589. */
  13590. function $parent() {
  13591. var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  13592. var parent = this.$parent;
  13593. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  13594. while (parent) {
  13595. // 父组件
  13596. if (parent.$options && parent.$options.name !== name) {
  13597. // 如果组件的name不相等,继续上一级寻找
  13598. parent = parent.$parent;
  13599. } else {
  13600. return parent;
  13601. }
  13602. }
  13603. return false;
  13604. }
  13605. /**
  13606. * @description 样式转换
  13607. * 对象转字符串,或者字符串转对象
  13608. * @param {object | string} customStyle 需要转换的目标
  13609. * @param {String} target 转换的目的,object-转为对象,string-转为字符串
  13610. * @returns {object|string}
  13611. */
  13612. function addStyle(customStyle) {
  13613. var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'object';
  13614. // 字符串转字符串,对象转对象情形,直接返回
  13615. if (_test.default.empty(customStyle) || (0, _typeof2.default)(customStyle) === 'object' && target === 'object' || target === 'string' && typeof customStyle === 'string') {
  13616. return customStyle;
  13617. }
  13618. // 字符串转对象
  13619. if (target === 'object') {
  13620. // 去除字符串样式中的两端空格(中间的空格不能去掉,比如padding: 20px 0如果去掉了就错了),空格是无用的
  13621. customStyle = trim(customStyle);
  13622. // 根据";"将字符串转为数组形式
  13623. var styleArray = customStyle.split(';');
  13624. var style = {};
  13625. // 历遍数组,拼接成对象
  13626. for (var i = 0; i < styleArray.length; i++) {
  13627. // 'font-size:20px;color:red;',如此最后字符串有";"的话,会导致styleArray最后一个元素为空字符串,这里需要过滤
  13628. if (styleArray[i]) {
  13629. var item = styleArray[i].split(':');
  13630. style[trim(item[0])] = trim(item[1]);
  13631. }
  13632. }
  13633. return style;
  13634. }
  13635. // 这里为对象转字符串形式
  13636. var string = '';
  13637. for (var _i2 in customStyle) {
  13638. // 驼峰转为中划线的形式,否则css内联样式,无法识别驼峰样式属性名
  13639. var key = _i2.replace(/([A-Z])/g, '-$1').toLowerCase();
  13640. string += "".concat(key, ":").concat(customStyle[_i2], ";");
  13641. }
  13642. // 去除两端空格
  13643. return trim(string);
  13644. }
  13645. /**
  13646. * @description 添加单位,如果有rpx,upx,%,px等单位结尾或者值为auto,直接返回,否则加上px单位结尾
  13647. * @param {string|number} value 需要添加单位的值
  13648. * @param {string} unit 添加的单位名 比如px
  13649. */
  13650. function addUnit() {
  13651. var _uni$$u$config$unit, _uni, _uni$$u, _uni$$u$config;
  13652. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'auto';
  13653. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (_uni$$u$config$unit = (_uni = uni) === null || _uni === void 0 ? void 0 : (_uni$$u = _uni.$u) === null || _uni$$u === void 0 ? void 0 : (_uni$$u$config = _uni$$u.config) === null || _uni$$u$config === void 0 ? void 0 : _uni$$u$config.unit) !== null && _uni$$u$config$unit !== void 0 ? _uni$$u$config$unit : 'px';
  13654. value = String(value);
  13655. // 用uView内置验证规则中的number判断是否为数值
  13656. return _test.default.number(value) ? "".concat(value).concat(unit) : value;
  13657. }
  13658. /**
  13659. * @description 深度克隆
  13660. * @param {object} obj 需要深度克隆的对象
  13661. * @param cache 缓存
  13662. * @returns {*} 克隆后的对象或者原值(不是对象)
  13663. */
  13664. function deepClone(obj) {
  13665. var cache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new WeakMap();
  13666. if (obj === null || (0, _typeof2.default)(obj) !== 'object') return obj;
  13667. if (cache.has(obj)) return cache.get(obj);
  13668. var clone;
  13669. if (obj instanceof Date) {
  13670. clone = new Date(obj.getTime());
  13671. } else if (obj instanceof RegExp) {
  13672. clone = new RegExp(obj);
  13673. } else if (obj instanceof Map) {
  13674. clone = new Map(Array.from(obj, function (_ref) {
  13675. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  13676. key = _ref2[0],
  13677. value = _ref2[1];
  13678. return [key, deepClone(value, cache)];
  13679. }));
  13680. } else if (obj instanceof Set) {
  13681. clone = new Set(Array.from(obj, function (value) {
  13682. return deepClone(value, cache);
  13683. }));
  13684. } else if (Array.isArray(obj)) {
  13685. clone = obj.map(function (value) {
  13686. return deepClone(value, cache);
  13687. });
  13688. } else if (Object.prototype.toString.call(obj) === '[object Object]') {
  13689. clone = Object.create(Object.getPrototypeOf(obj));
  13690. cache.set(obj, clone);
  13691. for (var _i3 = 0, _Object$entries = Object.entries(obj); _i3 < _Object$entries.length; _i3++) {
  13692. var _Object$entries$_i = (0, _slicedToArray2.default)(_Object$entries[_i3], 2),
  13693. key = _Object$entries$_i[0],
  13694. value = _Object$entries$_i[1];
  13695. clone[key] = deepClone(value, cache);
  13696. }
  13697. } else {
  13698. clone = Object.assign({}, obj);
  13699. }
  13700. cache.set(obj, clone);
  13701. return clone;
  13702. }
  13703. /**
  13704. * @description JS对象深度合并
  13705. * @param {object} target 需要拷贝的对象
  13706. * @param {object} source 拷贝的来源对象
  13707. * @returns {object|boolean} 深度合并后的对象或者false(入参有不是对象)
  13708. */
  13709. function deepMerge() {
  13710. var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13711. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  13712. target = deepClone(target);
  13713. if ((0, _typeof2.default)(target) !== 'object' || target === null || (0, _typeof2.default)(source) !== 'object' || source === null) return target;
  13714. var merged = Array.isArray(target) ? target.slice() : Object.assign({}, target);
  13715. for (var prop in source) {
  13716. if (!source.hasOwnProperty(prop)) continue;
  13717. var sourceValue = source[prop];
  13718. var targetValue = merged[prop];
  13719. if (sourceValue instanceof Date) {
  13720. merged[prop] = new Date(sourceValue);
  13721. } else if (sourceValue instanceof RegExp) {
  13722. merged[prop] = new RegExp(sourceValue);
  13723. } else if (sourceValue instanceof Map) {
  13724. merged[prop] = new Map(sourceValue);
  13725. } else if (sourceValue instanceof Set) {
  13726. merged[prop] = new Set(sourceValue);
  13727. } else if ((0, _typeof2.default)(sourceValue) === 'object' && sourceValue !== null) {
  13728. merged[prop] = deepMerge(targetValue, sourceValue);
  13729. } else {
  13730. merged[prop] = sourceValue;
  13731. }
  13732. }
  13733. return merged;
  13734. }
  13735. /**
  13736. * @description error提示
  13737. * @param {*} err 错误内容
  13738. */
  13739. function error(err) {
  13740. // 开发环境才提示,生产环境不会提示
  13741. if (true) {
  13742. console.error("uView\u63D0\u793A\uFF1A".concat(err));
  13743. }
  13744. }
  13745. /**
  13746. * @description 打乱数组
  13747. * @param {array} array 需要打乱的数组
  13748. * @returns {array} 打乱后的数组
  13749. */
  13750. function randomArray() {
  13751. var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  13752. // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.05大于或者小于0
  13753. return array.sort(function () {
  13754. return Math.random() - 0.5;
  13755. });
  13756. }
  13757. // padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序
  13758. // 所以这里做一个兼容polyfill的兼容处理
  13759. if (!String.prototype.padStart) {
  13760. // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解
  13761. String.prototype.padStart = function (maxLength) {
  13762. var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
  13763. if (Object.prototype.toString.call(fillString) !== '[object String]') {
  13764. throw new TypeError('fillString must be String');
  13765. }
  13766. var str = this;
  13767. // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉
  13768. if (str.length >= maxLength) return String(str);
  13769. var fillLength = maxLength - str.length;
  13770. var times = Math.ceil(fillLength / fillString.length);
  13771. while (times >>= 1) {
  13772. fillString += fillString;
  13773. if (times === 1) {
  13774. fillString += fillString;
  13775. }
  13776. }
  13777. return fillString.slice(0, fillLength) + str;
  13778. };
  13779. }
  13780. /**
  13781. * @description 格式化时间
  13782. * @param {String|Number} dateTime 需要格式化的时间戳
  13783. * @param {String} fmt 格式化规则 yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合 默认yyyy-mm-dd
  13784. * @returns {string} 返回格式化后的字符串
  13785. */
  13786. function timeFormat() {
  13787. var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  13788. var formatStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  13789. var date;
  13790. // 若传入时间为假值,则取当前时间
  13791. if (!dateTime) {
  13792. date = new Date();
  13793. }
  13794. // 若为unix秒时间戳,则转为毫秒时间戳(逻辑有点奇怪,但不敢改,以保证历史兼容)
  13795. else if (/^\d{10}$/.test(dateTime === null || dateTime === void 0 ? void 0 : dateTime.toString().trim())) {
  13796. date = new Date(dateTime * 1000);
  13797. }
  13798. // 若用户传入字符串格式时间戳,new Date无法解析,需做兼容
  13799. else if (typeof dateTime === 'string' && /^\d+$/.test(dateTime.trim())) {
  13800. date = new Date(Number(dateTime));
  13801. }
  13802. // 处理平台性差异,在Safari/Webkit中,new Date仅支持/作为分割符的字符串时间
  13803. // 处理 '2022-07-10 01:02:03',跳过 '2022-07-10T01:02:03'
  13804. else if (typeof dateTime === 'string' && dateTime.includes('-') && !dateTime.includes('T')) {
  13805. date = new Date(dateTime.replace(/-/g, '/'));
  13806. }
  13807. // 其他都认为符合 RFC 2822 规范
  13808. else {
  13809. date = new Date(dateTime);
  13810. }
  13811. var timeSource = {
  13812. 'y': date.getFullYear().toString(),
  13813. // 年
  13814. 'm': (date.getMonth() + 1).toString().padStart(2, '0'),
  13815. // 月
  13816. 'd': date.getDate().toString().padStart(2, '0'),
  13817. // 日
  13818. 'h': date.getHours().toString().padStart(2, '0'),
  13819. // 时
  13820. 'M': date.getMinutes().toString().padStart(2, '0'),
  13821. // 分
  13822. 's': date.getSeconds().toString().padStart(2, '0') // 秒
  13823. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  13824. };
  13825. for (var key in timeSource) {
  13826. var _ref3 = new RegExp("".concat(key, "+")).exec(formatStr) || [],
  13827. _ref4 = (0, _slicedToArray2.default)(_ref3, 1),
  13828. ret = _ref4[0];
  13829. if (ret) {
  13830. // 年可能只需展示两位
  13831. var beginIndex = key === 'y' && ret.length === 2 ? 2 : 0;
  13832. formatStr = formatStr.replace(ret, timeSource[key].slice(beginIndex));
  13833. }
  13834. }
  13835. return formatStr;
  13836. }
  13837. /**
  13838. * @description 时间戳转为多久之前
  13839. * @param {String|Number} timestamp 时间戳
  13840. * @param {String|Boolean} format
  13841. * 格式化规则如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;
  13842. * 如果为布尔值false,无论什么时间,都返回多久以前的格式
  13843. * @returns {string} 转化后的内容
  13844. */
  13845. function timeFrom() {
  13846. var timestamp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  13847. var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  13848. if (timestamp == null) timestamp = Number(new Date());
  13849. timestamp = parseInt(timestamp);
  13850. // 判断用户输入的时间戳是秒还是毫秒,一般前端js获取的时间戳是毫秒(13位),后端传过来的为秒(10位)
  13851. if (timestamp.toString().length == 10) timestamp *= 1000;
  13852. var timer = new Date().getTime() - timestamp;
  13853. timer = parseInt(timer / 1000);
  13854. // 如果小于5分钟,则返回"刚刚",其他以此类推
  13855. var tips = '';
  13856. switch (true) {
  13857. case timer < 300:
  13858. tips = '刚刚';
  13859. break;
  13860. case timer >= 300 && timer < 3600:
  13861. tips = "".concat(parseInt(timer / 60), "\u5206\u949F\u524D");
  13862. break;
  13863. case timer >= 3600 && timer < 86400:
  13864. tips = "".concat(parseInt(timer / 3600), "\u5C0F\u65F6\u524D");
  13865. break;
  13866. case timer >= 86400 && timer < 2592000:
  13867. tips = "".concat(parseInt(timer / 86400), "\u5929\u524D");
  13868. break;
  13869. default:
  13870. // 如果format为false,则无论什么时间戳,都显示xx之前
  13871. if (format === false) {
  13872. if (timer >= 2592000 && timer < 365 * 86400) {
  13873. tips = "".concat(parseInt(timer / (86400 * 30)), "\u4E2A\u6708\u524D");
  13874. } else {
  13875. tips = "".concat(parseInt(timer / (86400 * 365)), "\u5E74\u524D");
  13876. }
  13877. } else {
  13878. tips = timeFormat(timestamp, format);
  13879. }
  13880. }
  13881. return tips;
  13882. }
  13883. /**
  13884. * @description 去除空格
  13885. * @param String str 需要去除空格的字符串
  13886. * @param String pos both(左右)|left|right|all 默认both
  13887. */
  13888. function trim(str) {
  13889. var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'both';
  13890. str = String(str);
  13891. if (pos == 'both') {
  13892. return str.replace(/^\s+|\s+$/g, '');
  13893. }
  13894. if (pos == 'left') {
  13895. return str.replace(/^\s*/, '');
  13896. }
  13897. if (pos == 'right') {
  13898. return str.replace(/(\s*$)/g, '');
  13899. }
  13900. if (pos == 'all') {
  13901. return str.replace(/\s+/g, '');
  13902. }
  13903. return str;
  13904. }
  13905. /**
  13906. * @description 对象转url参数
  13907. * @param {object} data,对象
  13908. * @param {Boolean} isPrefix,是否自动加上"?"
  13909. * @param {string} arrayFormat 规则 indices|brackets|repeat|comma
  13910. */
  13911. function queryParams() {
  13912. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13913. var isPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13914. var arrayFormat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'brackets';
  13915. var prefix = isPrefix ? '?' : '';
  13916. var _result = [];
  13917. if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets';
  13918. var _loop = function _loop(key) {
  13919. var value = data[key];
  13920. // 去掉为空的参数
  13921. if (['', undefined, null].indexOf(value) >= 0) {
  13922. return "continue";
  13923. }
  13924. // 如果值为数组,另行处理
  13925. if (value.constructor === Array) {
  13926. // e.g. {ids: [1, 2, 3]}
  13927. switch (arrayFormat) {
  13928. case 'indices':
  13929. // 结果: ids[0]=1&ids[1]=2&ids[2]=3
  13930. for (var i = 0; i < value.length; i++) {
  13931. _result.push("".concat(key, "[").concat(i, "]=").concat(value[i]));
  13932. }
  13933. break;
  13934. case 'brackets':
  13935. // 结果: ids[]=1&ids[]=2&ids[]=3
  13936. value.forEach(function (_value) {
  13937. _result.push("".concat(key, "[]=").concat(_value));
  13938. });
  13939. break;
  13940. case 'repeat':
  13941. // 结果: ids=1&ids=2&ids=3
  13942. value.forEach(function (_value) {
  13943. _result.push("".concat(key, "=").concat(_value));
  13944. });
  13945. break;
  13946. case 'comma':
  13947. // 结果: ids=1,2,3
  13948. var commaStr = '';
  13949. value.forEach(function (_value) {
  13950. commaStr += (commaStr ? ',' : '') + _value;
  13951. });
  13952. _result.push("".concat(key, "=").concat(commaStr));
  13953. break;
  13954. default:
  13955. value.forEach(function (_value) {
  13956. _result.push("".concat(key, "[]=").concat(_value));
  13957. });
  13958. }
  13959. } else {
  13960. _result.push("".concat(key, "=").concat(value));
  13961. }
  13962. };
  13963. for (var key in data) {
  13964. var _ret = _loop(key);
  13965. if (_ret === "continue") continue;
  13966. }
  13967. return _result.length ? prefix + _result.join('&') : '';
  13968. }
  13969. /**
  13970. * 显示消息提示框
  13971. * @param {String} title 提示的内容,长度与 icon 取值有关。
  13972. * @param {Number} duration 提示的延迟时间,单位毫秒,默认:2000
  13973. */
  13974. function toast(title) {
  13975. var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
  13976. uni.showToast({
  13977. title: String(title),
  13978. icon: 'none',
  13979. duration: duration
  13980. });
  13981. }
  13982. /**
  13983. * @description 根据主题type值,获取对应的图标
  13984. * @param {String} type 主题名称,primary|info|error|warning|success
  13985. * @param {boolean} fill 是否使用fill填充实体的图标
  13986. */
  13987. function type2icon() {
  13988. var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'success';
  13989. var fill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13990. // 如果非预置值,默认为success
  13991. if (['primary', 'info', 'error', 'warning', 'success'].indexOf(type) == -1) type = 'success';
  13992. var iconName = '';
  13993. // 目前(2019-12-12),info和primary使用同一个图标
  13994. switch (type) {
  13995. case 'primary':
  13996. iconName = 'info-circle';
  13997. break;
  13998. case 'info':
  13999. iconName = 'info-circle';
  14000. break;
  14001. case 'error':
  14002. iconName = 'close-circle';
  14003. break;
  14004. case 'warning':
  14005. iconName = 'error-circle';
  14006. break;
  14007. case 'success':
  14008. iconName = 'checkmark-circle';
  14009. break;
  14010. default:
  14011. iconName = 'checkmark-circle';
  14012. }
  14013. // 是否是实体类型,加上-fill,在icon组件库中,实体的类名是后面加-fill的
  14014. if (fill) iconName += '-fill';
  14015. return iconName;
  14016. }
  14017. /**
  14018. * @description 数字格式化
  14019. * @param {number|string} number 要格式化的数字
  14020. * @param {number} decimals 保留几位小数
  14021. * @param {string} decimalPoint 小数点符号
  14022. * @param {string} thousandsSeparator 千分位符号
  14023. * @returns {string} 格式化后的数字
  14024. */
  14025. function priceFormat(number) {
  14026. var decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  14027. var decimalPoint = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.';
  14028. var thousandsSeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ',';
  14029. number = "".concat(number).replace(/[^0-9+-Ee.]/g, '');
  14030. var n = !isFinite(+number) ? 0 : +number;
  14031. var prec = !isFinite(+decimals) ? 0 : Math.abs(decimals);
  14032. var sep = typeof thousandsSeparator === 'undefined' ? ',' : thousandsSeparator;
  14033. var dec = typeof decimalPoint === 'undefined' ? '.' : decimalPoint;
  14034. var s = '';
  14035. s = (prec ? (0, _digit.round)(n, prec) + '' : "".concat(Math.round(n))).split('.');
  14036. var re = /(-?\d+)(\d{3})/;
  14037. while (re.test(s[0])) {
  14038. s[0] = s[0].replace(re, "$1".concat(sep, "$2"));
  14039. }
  14040. if ((s[1] || '').length < prec) {
  14041. s[1] = s[1] || '';
  14042. s[1] += new Array(prec - s[1].length + 1).join('0');
  14043. }
  14044. return s.join(dec);
  14045. }
  14046. /**
  14047. * @description 获取duration值
  14048. * 如果带有ms或者s直接返回,如果大于一定值,认为是ms单位,小于一定值,认为是s单位
  14049. * 比如以30位阈值,那么300大于30,可以理解为用户想要的是300ms,而不是想花300s去执行一个动画
  14050. * @param {String|number} value 比如: "1s"|"100ms"|1|100
  14051. * @param {boolean} unit 提示: 如果是false 默认返回number
  14052. * @return {string|number}
  14053. */
  14054. function getDuration(value) {
  14055. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  14056. var valueNum = parseInt(value);
  14057. if (unit) {
  14058. if (/s$/.test(value)) return value;
  14059. return value > 30 ? "".concat(value, "ms") : "".concat(value, "s");
  14060. }
  14061. if (/ms$/.test(value)) return valueNum;
  14062. if (/s$/.test(value)) return valueNum > 30 ? valueNum : valueNum * 1000;
  14063. return valueNum;
  14064. }
  14065. /**
  14066. * @description 日期的月或日补零操作
  14067. * @param {String} value 需要补零的值
  14068. */
  14069. function padZero(value) {
  14070. return "00".concat(value).slice(-2);
  14071. }
  14072. /**
  14073. * @description 在u-form的子组件内容发生变化,或者失去焦点时,尝试通知u-form执行校验方法
  14074. * @param {*} instance
  14075. * @param {*} event
  14076. */
  14077. function formValidate(instance, event) {
  14078. var formItem = uni.$u.$parent.call(instance, 'u-form-item');
  14079. var form = uni.$u.$parent.call(instance, 'u-form');
  14080. // 如果发生变化的input或者textarea等,其父组件中有u-form-item或者u-form等,就执行form的validate方法
  14081. // 同时将form-item的pros传递给form,让其进行精确对象验证
  14082. if (formItem && form) {
  14083. form.validateField(formItem.prop, function () {}, event);
  14084. }
  14085. }
  14086. /**
  14087. * @description 获取某个对象下的属性,用于通过类似'a.b.c'的形式去获取一个对象的的属性的形式
  14088. * @param {object} obj 对象
  14089. * @param {string} key 需要获取的属性字段
  14090. * @returns {*}
  14091. */
  14092. function getProperty(obj, key) {
  14093. if (!obj) {
  14094. return;
  14095. }
  14096. if (typeof key !== 'string' || key === '') {
  14097. return '';
  14098. }
  14099. if (key.indexOf('.') !== -1) {
  14100. var keys = key.split('.');
  14101. var firstObj = obj[keys[0]] || {};
  14102. for (var i = 1; i < keys.length; i++) {
  14103. if (firstObj) {
  14104. firstObj = firstObj[keys[i]];
  14105. }
  14106. }
  14107. return firstObj;
  14108. }
  14109. return obj[key];
  14110. }
  14111. /**
  14112. * @description 设置对象的属性值,如果'a.b.c'的形式进行设置
  14113. * @param {object} obj 对象
  14114. * @param {string} key 需要设置的属性
  14115. * @param {string} value 设置的值
  14116. */
  14117. function setProperty(obj, key, value) {
  14118. if (!obj) {
  14119. return;
  14120. }
  14121. // 递归赋值
  14122. var inFn = function inFn(_obj, keys, v) {
  14123. // 最后一个属性key
  14124. if (keys.length === 1) {
  14125. _obj[keys[0]] = v;
  14126. return;
  14127. }
  14128. // 0~length-1个key
  14129. while (keys.length > 1) {
  14130. var k = keys[0];
  14131. if (!_obj[k] || (0, _typeof2.default)(_obj[k]) !== 'object') {
  14132. _obj[k] = {};
  14133. }
  14134. var _key = keys.shift();
  14135. // 自调用判断是否存在属性,不存在则自动创建对象
  14136. inFn(_obj[k], keys, v);
  14137. }
  14138. };
  14139. if (typeof key !== 'string' || key === '') {} else if (key.indexOf('.') !== -1) {
  14140. // 支持多层级赋值操作
  14141. var keys = key.split('.');
  14142. inFn(obj, keys, value);
  14143. } else {
  14144. obj[key] = value;
  14145. }
  14146. }
  14147. /**
  14148. * @description 获取当前页面路径
  14149. */
  14150. function page() {
  14151. var _pages$route, _pages;
  14152. var pages = getCurrentPages();
  14153. // 某些特殊情况下(比如页面进行redirectTo时的一些时机),pages可能为空数组
  14154. return "/".concat((_pages$route = (_pages = pages[pages.length - 1]) === null || _pages === void 0 ? void 0 : _pages.route) !== null && _pages$route !== void 0 ? _pages$route : '');
  14155. }
  14156. /**
  14157. * @description 获取当前路由栈实例数组
  14158. */
  14159. function pages() {
  14160. var pages = getCurrentPages();
  14161. return pages;
  14162. }
  14163. /**
  14164. * 获取页面历史栈指定层实例
  14165. * @param back {number} [0] - 0或者负数,表示获取历史栈的哪一层,0表示获取当前页面实例,-1 表示获取上一个页面实例。默认0。
  14166. */
  14167. function getHistoryPage() {
  14168. var back = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  14169. var pages = getCurrentPages();
  14170. var len = pages.length;
  14171. return pages[len - 1 + back];
  14172. }
  14173. /**
  14174. * @description 修改uView内置属性值
  14175. * @param {object} props 修改内置props属性
  14176. * @param {object} config 修改内置config属性
  14177. * @param {object} color 修改内置color属性
  14178. * @param {object} zIndex 修改内置zIndex属性
  14179. */
  14180. function setConfig(_ref5) {
  14181. var _ref5$props = _ref5.props,
  14182. props = _ref5$props === void 0 ? {} : _ref5$props,
  14183. _ref5$config = _ref5.config,
  14184. config = _ref5$config === void 0 ? {} : _ref5$config,
  14185. _ref5$color = _ref5.color,
  14186. color = _ref5$color === void 0 ? {} : _ref5$color,
  14187. _ref5$zIndex = _ref5.zIndex,
  14188. zIndex = _ref5$zIndex === void 0 ? {} : _ref5$zIndex;
  14189. var deepMerge = uni.$u.deepMerge;
  14190. uni.$u.config = deepMerge(uni.$u.config, config);
  14191. uni.$u.props = deepMerge(uni.$u.props, props);
  14192. uni.$u.color = deepMerge(uni.$u.color, color);
  14193. uni.$u.zIndex = deepMerge(uni.$u.zIndex, zIndex);
  14194. }
  14195. var _default = {
  14196. range: range,
  14197. getPx: getPx,
  14198. sleep: sleep,
  14199. os: os,
  14200. sys: sys,
  14201. random: random,
  14202. guid: guid,
  14203. $parent: $parent,
  14204. addStyle: addStyle,
  14205. addUnit: addUnit,
  14206. deepClone: deepClone,
  14207. deepMerge: deepMerge,
  14208. error: error,
  14209. randomArray: randomArray,
  14210. timeFormat: timeFormat,
  14211. timeFrom: timeFrom,
  14212. trim: trim,
  14213. queryParams: queryParams,
  14214. toast: toast,
  14215. type2icon: type2icon,
  14216. priceFormat: priceFormat,
  14217. getDuration: getDuration,
  14218. padZero: padZero,
  14219. formValidate: formValidate,
  14220. getProperty: getProperty,
  14221. setProperty: setProperty,
  14222. page: page,
  14223. pages: pages,
  14224. getHistoryPage: getHistoryPage,
  14225. setConfig: setConfig
  14226. };
  14227. exports.default = _default;
  14228. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  14229. /***/ }),
  14230. /* 66 */
  14231. /*!************************************************************************!*\
  14232. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/function/digit.js ***!
  14233. \************************************************************************/
  14234. /*! no static exports found */
  14235. /***/ (function(module, exports, __webpack_require__) {
  14236. "use strict";
  14237. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  14238. Object.defineProperty(exports, "__esModule", {
  14239. value: true
  14240. });
  14241. exports.default = void 0;
  14242. exports.divide = divide;
  14243. exports.enableBoundaryChecking = enableBoundaryChecking;
  14244. exports.minus = minus;
  14245. exports.plus = plus;
  14246. exports.round = round;
  14247. exports.times = times;
  14248. var _toArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toArray */ 67));
  14249. var _boundaryCheckingState = true; // 是否进行越界检查的全局开关
  14250. /**
  14251. * 把错误的数据转正
  14252. * @private
  14253. * @example strip(0.09999999999999998)=0.1
  14254. */
  14255. function strip(num) {
  14256. var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 15;
  14257. return +parseFloat(Number(num).toPrecision(precision));
  14258. }
  14259. /**
  14260. * Return digits length of a number
  14261. * @private
  14262. * @param {*number} num Input number
  14263. */
  14264. function digitLength(num) {
  14265. // Get digit length of e
  14266. var eSplit = num.toString().split(/[eE]/);
  14267. var len = (eSplit[0].split('.')[1] || '').length - +(eSplit[1] || 0);
  14268. return len > 0 ? len : 0;
  14269. }
  14270. /**
  14271. * 把小数转成整数,如果是小数则放大成整数
  14272. * @private
  14273. * @param {*number} num 输入数
  14274. */
  14275. function float2Fixed(num) {
  14276. if (num.toString().indexOf('e') === -1) {
  14277. return Number(num.toString().replace('.', ''));
  14278. }
  14279. var dLen = digitLength(num);
  14280. return dLen > 0 ? strip(Number(num) * Math.pow(10, dLen)) : Number(num);
  14281. }
  14282. /**
  14283. * 检测数字是否越界,如果越界给出提示
  14284. * @private
  14285. * @param {*number} num 输入数
  14286. */
  14287. function checkBoundary(num) {
  14288. if (_boundaryCheckingState) {
  14289. if (num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) {
  14290. console.warn("".concat(num, " \u8D85\u51FA\u4E86\u7CBE\u5EA6\u9650\u5236\uFF0C\u7ED3\u679C\u53EF\u80FD\u4E0D\u6B63\u786E"));
  14291. }
  14292. }
  14293. }
  14294. /**
  14295. * 把递归操作扁平迭代化
  14296. * @param {number[]} arr 要操作的数字数组
  14297. * @param {function} operation 迭代操作
  14298. * @private
  14299. */
  14300. function iteratorOperation(arr, operation) {
  14301. var _arr = (0, _toArray2.default)(arr),
  14302. num1 = _arr[0],
  14303. num2 = _arr[1],
  14304. others = _arr.slice(2);
  14305. var res = operation(num1, num2);
  14306. others.forEach(function (num) {
  14307. res = operation(res, num);
  14308. });
  14309. return res;
  14310. }
  14311. /**
  14312. * 高精度乘法
  14313. * @export
  14314. */
  14315. function times() {
  14316. for (var _len = arguments.length, nums = new Array(_len), _key = 0; _key < _len; _key++) {
  14317. nums[_key] = arguments[_key];
  14318. }
  14319. if (nums.length > 2) {
  14320. return iteratorOperation(nums, times);
  14321. }
  14322. var num1 = nums[0],
  14323. num2 = nums[1];
  14324. var num1Changed = float2Fixed(num1);
  14325. var num2Changed = float2Fixed(num2);
  14326. var baseNum = digitLength(num1) + digitLength(num2);
  14327. var leftValue = num1Changed * num2Changed;
  14328. checkBoundary(leftValue);
  14329. return leftValue / Math.pow(10, baseNum);
  14330. }
  14331. /**
  14332. * 高精度加法
  14333. * @export
  14334. */
  14335. function plus() {
  14336. for (var _len2 = arguments.length, nums = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  14337. nums[_key2] = arguments[_key2];
  14338. }
  14339. if (nums.length > 2) {
  14340. return iteratorOperation(nums, plus);
  14341. }
  14342. var num1 = nums[0],
  14343. num2 = nums[1];
  14344. // 取最大的小数位
  14345. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  14346. // 把小数都转为整数然后再计算
  14347. return (times(num1, baseNum) + times(num2, baseNum)) / baseNum;
  14348. }
  14349. /**
  14350. * 高精度减法
  14351. * @export
  14352. */
  14353. function minus() {
  14354. for (var _len3 = arguments.length, nums = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  14355. nums[_key3] = arguments[_key3];
  14356. }
  14357. if (nums.length > 2) {
  14358. return iteratorOperation(nums, minus);
  14359. }
  14360. var num1 = nums[0],
  14361. num2 = nums[1];
  14362. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  14363. return (times(num1, baseNum) - times(num2, baseNum)) / baseNum;
  14364. }
  14365. /**
  14366. * 高精度除法
  14367. * @export
  14368. */
  14369. function divide() {
  14370. for (var _len4 = arguments.length, nums = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  14371. nums[_key4] = arguments[_key4];
  14372. }
  14373. if (nums.length > 2) {
  14374. return iteratorOperation(nums, divide);
  14375. }
  14376. var num1 = nums[0],
  14377. num2 = nums[1];
  14378. var num1Changed = float2Fixed(num1);
  14379. var num2Changed = float2Fixed(num2);
  14380. checkBoundary(num1Changed);
  14381. checkBoundary(num2Changed);
  14382. // 重要,这里必须用strip进行修正
  14383. return times(num1Changed / num2Changed, strip(Math.pow(10, digitLength(num2) - digitLength(num1))));
  14384. }
  14385. /**
  14386. * 四舍五入
  14387. * @export
  14388. */
  14389. function round(num, ratio) {
  14390. var base = Math.pow(10, ratio);
  14391. var result = divide(Math.round(Math.abs(times(num, base))), base);
  14392. if (num < 0 && result !== 0) {
  14393. result = times(result, -1);
  14394. }
  14395. // 位数不足则补0
  14396. return result;
  14397. }
  14398. /**
  14399. * 是否进行边界检查,默认开启
  14400. * @param flag 标记开关,true 为开启,false 为关闭,默认为 true
  14401. * @export
  14402. */
  14403. function enableBoundaryChecking() {
  14404. var flag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  14405. _boundaryCheckingState = flag;
  14406. }
  14407. var _default = {
  14408. times: times,
  14409. plus: plus,
  14410. minus: minus,
  14411. divide: divide,
  14412. round: round,
  14413. enableBoundaryChecking: enableBoundaryChecking
  14414. };
  14415. exports.default = _default;
  14416. /***/ }),
  14417. /* 67 */
  14418. /*!********************************************************!*\
  14419. !*** ./node_modules/@babel/runtime/helpers/toArray.js ***!
  14420. \********************************************************/
  14421. /*! no static exports found */
  14422. /***/ (function(module, exports, __webpack_require__) {
  14423. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 5);
  14424. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 21);
  14425. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 7);
  14426. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 9);
  14427. function _toArray(arr) {
  14428. return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
  14429. }
  14430. module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  14431. /***/ }),
  14432. /* 68 */
  14433. /*!***********************************************************************!*\
  14434. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/config.js ***!
  14435. \***********************************************************************/
  14436. /*! no static exports found */
  14437. /***/ (function(module, exports, __webpack_require__) {
  14438. "use strict";
  14439. Object.defineProperty(exports, "__esModule", {
  14440. value: true
  14441. });
  14442. exports.default = void 0;
  14443. // 此版本发布于2023-03-27
  14444. var version = '2.0.36';
  14445. // 开发环境才提示,生产环境不会提示
  14446. if (true) {
  14447. console.log("\n %c uView V".concat(version, " %c https://uviewui.com/ \n\n"), 'color: #ffffff; background: #3c9cff; padding:5px 0; border-radius: 5px;');
  14448. }
  14449. var _default = {
  14450. v: version,
  14451. version: version,
  14452. // 主题名称
  14453. type: ['primary', 'success', 'info', 'error', 'warning'],
  14454. // 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持
  14455. color: {
  14456. 'u-primary': '#2979ff',
  14457. 'u-warning': '#ff9900',
  14458. 'u-success': '#19be6b',
  14459. 'u-error': '#fa3534',
  14460. 'u-info': '#909399',
  14461. 'u-main-color': '#303133',
  14462. 'u-content-color': '#606266',
  14463. 'u-tips-color': '#909399',
  14464. 'u-light-color': '#c0c4cc'
  14465. },
  14466. // 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx
  14467. unit: 'px'
  14468. };
  14469. exports.default = _default;
  14470. /***/ }),
  14471. /* 69 */
  14472. /*!**********************************************************************!*\
  14473. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props.js ***!
  14474. \**********************************************************************/
  14475. /*! no static exports found */
  14476. /***/ (function(module, exports, __webpack_require__) {
  14477. "use strict";
  14478. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  14479. Object.defineProperty(exports, "__esModule", {
  14480. value: true
  14481. });
  14482. exports.default = void 0;
  14483. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 10));
  14484. var _config = _interopRequireDefault(__webpack_require__(/*! ./config */ 68));
  14485. var _actionSheet = _interopRequireDefault(__webpack_require__(/*! ./props/actionSheet.js */ 70));
  14486. var _album = _interopRequireDefault(__webpack_require__(/*! ./props/album.js */ 71));
  14487. var _alert = _interopRequireDefault(__webpack_require__(/*! ./props/alert.js */ 72));
  14488. var _avatar = _interopRequireDefault(__webpack_require__(/*! ./props/avatar */ 73));
  14489. var _avatarGroup = _interopRequireDefault(__webpack_require__(/*! ./props/avatarGroup */ 74));
  14490. var _backtop = _interopRequireDefault(__webpack_require__(/*! ./props/backtop */ 75));
  14491. var _badge = _interopRequireDefault(__webpack_require__(/*! ./props/badge */ 76));
  14492. var _button = _interopRequireDefault(__webpack_require__(/*! ./props/button */ 77));
  14493. var _calendar = _interopRequireDefault(__webpack_require__(/*! ./props/calendar */ 78));
  14494. var _carKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/carKeyboard */ 79));
  14495. var _cell = _interopRequireDefault(__webpack_require__(/*! ./props/cell */ 80));
  14496. var _cellGroup = _interopRequireDefault(__webpack_require__(/*! ./props/cellGroup */ 81));
  14497. var _checkbox = _interopRequireDefault(__webpack_require__(/*! ./props/checkbox */ 82));
  14498. var _checkboxGroup = _interopRequireDefault(__webpack_require__(/*! ./props/checkboxGroup */ 83));
  14499. var _circleProgress = _interopRequireDefault(__webpack_require__(/*! ./props/circleProgress */ 84));
  14500. var _code = _interopRequireDefault(__webpack_require__(/*! ./props/code */ 85));
  14501. var _codeInput = _interopRequireDefault(__webpack_require__(/*! ./props/codeInput */ 86));
  14502. var _col = _interopRequireDefault(__webpack_require__(/*! ./props/col */ 87));
  14503. var _collapse = _interopRequireDefault(__webpack_require__(/*! ./props/collapse */ 88));
  14504. var _collapseItem = _interopRequireDefault(__webpack_require__(/*! ./props/collapseItem */ 89));
  14505. var _columnNotice = _interopRequireDefault(__webpack_require__(/*! ./props/columnNotice */ 90));
  14506. var _countDown = _interopRequireDefault(__webpack_require__(/*! ./props/countDown */ 91));
  14507. var _countTo = _interopRequireDefault(__webpack_require__(/*! ./props/countTo */ 92));
  14508. var _datetimePicker = _interopRequireDefault(__webpack_require__(/*! ./props/datetimePicker */ 93));
  14509. var _divider = _interopRequireDefault(__webpack_require__(/*! ./props/divider */ 94));
  14510. var _empty = _interopRequireDefault(__webpack_require__(/*! ./props/empty */ 95));
  14511. var _form = _interopRequireDefault(__webpack_require__(/*! ./props/form */ 96));
  14512. var _formItem = _interopRequireDefault(__webpack_require__(/*! ./props/formItem */ 97));
  14513. var _gap = _interopRequireDefault(__webpack_require__(/*! ./props/gap */ 98));
  14514. var _grid = _interopRequireDefault(__webpack_require__(/*! ./props/grid */ 99));
  14515. var _gridItem = _interopRequireDefault(__webpack_require__(/*! ./props/gridItem */ 100));
  14516. var _icon = _interopRequireDefault(__webpack_require__(/*! ./props/icon */ 101));
  14517. var _image = _interopRequireDefault(__webpack_require__(/*! ./props/image */ 102));
  14518. var _indexAnchor = _interopRequireDefault(__webpack_require__(/*! ./props/indexAnchor */ 103));
  14519. var _indexList = _interopRequireDefault(__webpack_require__(/*! ./props/indexList */ 104));
  14520. var _input = _interopRequireDefault(__webpack_require__(/*! ./props/input */ 105));
  14521. var _keyboard = _interopRequireDefault(__webpack_require__(/*! ./props/keyboard */ 106));
  14522. var _line = _interopRequireDefault(__webpack_require__(/*! ./props/line */ 107));
  14523. var _lineProgress = _interopRequireDefault(__webpack_require__(/*! ./props/lineProgress */ 108));
  14524. var _link = _interopRequireDefault(__webpack_require__(/*! ./props/link */ 109));
  14525. var _list = _interopRequireDefault(__webpack_require__(/*! ./props/list */ 110));
  14526. var _listItem = _interopRequireDefault(__webpack_require__(/*! ./props/listItem */ 111));
  14527. var _loadingIcon = _interopRequireDefault(__webpack_require__(/*! ./props/loadingIcon */ 112));
  14528. var _loadingPage = _interopRequireDefault(__webpack_require__(/*! ./props/loadingPage */ 113));
  14529. var _loadmore = _interopRequireDefault(__webpack_require__(/*! ./props/loadmore */ 114));
  14530. var _modal = _interopRequireDefault(__webpack_require__(/*! ./props/modal */ 115));
  14531. var _navbar = _interopRequireDefault(__webpack_require__(/*! ./props/navbar */ 116));
  14532. var _noNetwork = _interopRequireDefault(__webpack_require__(/*! ./props/noNetwork */ 118));
  14533. var _noticeBar = _interopRequireDefault(__webpack_require__(/*! ./props/noticeBar */ 119));
  14534. var _notify = _interopRequireDefault(__webpack_require__(/*! ./props/notify */ 120));
  14535. var _numberBox = _interopRequireDefault(__webpack_require__(/*! ./props/numberBox */ 121));
  14536. var _numberKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/numberKeyboard */ 122));
  14537. var _overlay = _interopRequireDefault(__webpack_require__(/*! ./props/overlay */ 123));
  14538. var _parse = _interopRequireDefault(__webpack_require__(/*! ./props/parse */ 124));
  14539. var _picker = _interopRequireDefault(__webpack_require__(/*! ./props/picker */ 125));
  14540. var _popup = _interopRequireDefault(__webpack_require__(/*! ./props/popup */ 126));
  14541. var _radio = _interopRequireDefault(__webpack_require__(/*! ./props/radio */ 127));
  14542. var _radioGroup = _interopRequireDefault(__webpack_require__(/*! ./props/radioGroup */ 128));
  14543. var _rate = _interopRequireDefault(__webpack_require__(/*! ./props/rate */ 129));
  14544. var _readMore = _interopRequireDefault(__webpack_require__(/*! ./props/readMore */ 130));
  14545. var _row = _interopRequireDefault(__webpack_require__(/*! ./props/row */ 131));
  14546. var _rowNotice = _interopRequireDefault(__webpack_require__(/*! ./props/rowNotice */ 132));
  14547. var _scrollList = _interopRequireDefault(__webpack_require__(/*! ./props/scrollList */ 133));
  14548. var _search = _interopRequireDefault(__webpack_require__(/*! ./props/search */ 134));
  14549. var _section = _interopRequireDefault(__webpack_require__(/*! ./props/section */ 135));
  14550. var _skeleton = _interopRequireDefault(__webpack_require__(/*! ./props/skeleton */ 136));
  14551. var _slider = _interopRequireDefault(__webpack_require__(/*! ./props/slider */ 137));
  14552. var _statusBar = _interopRequireDefault(__webpack_require__(/*! ./props/statusBar */ 138));
  14553. var _steps = _interopRequireDefault(__webpack_require__(/*! ./props/steps */ 139));
  14554. var _stepsItem = _interopRequireDefault(__webpack_require__(/*! ./props/stepsItem */ 140));
  14555. var _sticky = _interopRequireDefault(__webpack_require__(/*! ./props/sticky */ 141));
  14556. var _subsection = _interopRequireDefault(__webpack_require__(/*! ./props/subsection */ 142));
  14557. var _swipeAction = _interopRequireDefault(__webpack_require__(/*! ./props/swipeAction */ 143));
  14558. var _swipeActionItem = _interopRequireDefault(__webpack_require__(/*! ./props/swipeActionItem */ 144));
  14559. var _swiper = _interopRequireDefault(__webpack_require__(/*! ./props/swiper */ 145));
  14560. var _swipterIndicator = _interopRequireDefault(__webpack_require__(/*! ./props/swipterIndicator */ 146));
  14561. var _switch2 = _interopRequireDefault(__webpack_require__(/*! ./props/switch */ 147));
  14562. var _tabbar = _interopRequireDefault(__webpack_require__(/*! ./props/tabbar */ 148));
  14563. var _tabbarItem = _interopRequireDefault(__webpack_require__(/*! ./props/tabbarItem */ 149));
  14564. var _tabs = _interopRequireDefault(__webpack_require__(/*! ./props/tabs */ 150));
  14565. var _tag = _interopRequireDefault(__webpack_require__(/*! ./props/tag */ 151));
  14566. var _text = _interopRequireDefault(__webpack_require__(/*! ./props/text */ 152));
  14567. var _textarea = _interopRequireDefault(__webpack_require__(/*! ./props/textarea */ 153));
  14568. var _toast = _interopRequireDefault(__webpack_require__(/*! ./props/toast */ 154));
  14569. var _toolbar = _interopRequireDefault(__webpack_require__(/*! ./props/toolbar */ 155));
  14570. var _tooltip = _interopRequireDefault(__webpack_require__(/*! ./props/tooltip */ 156));
  14571. var _transition = _interopRequireDefault(__webpack_require__(/*! ./props/transition */ 157));
  14572. var _upload = _interopRequireDefault(__webpack_require__(/*! ./props/upload */ 158));
  14573. 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; }
  14574. 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; }
  14575. var color = _config.default.color;
  14576. var _default = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _actionSheet.default), _album.default), _alert.default), _avatar.default), _avatarGroup.default), _backtop.default), _badge.default), _button.default), _calendar.default), _carKeyboard.default), _cell.default), _cellGroup.default), _checkbox.default), _checkboxGroup.default), _circleProgress.default), _code.default), _codeInput.default), _col.default), _collapse.default), _collapseItem.default), _columnNotice.default), _countDown.default), _countTo.default), _datetimePicker.default), _divider.default), _empty.default), _form.default), _formItem.default), _gap.default), _grid.default), _gridItem.default), _icon.default), _image.default), _indexAnchor.default), _indexList.default), _input.default), _keyboard.default), _line.default), _lineProgress.default), _link.default), _list.default), _listItem.default), _loadingIcon.default), _loadingPage.default), _loadmore.default), _modal.default), _navbar.default), _noNetwork.default), _noticeBar.default), _notify.default), _numberBox.default), _numberKeyboard.default), _overlay.default), _parse.default), _picker.default), _popup.default), _radio.default), _radioGroup.default), _rate.default), _readMore.default), _row.default), _rowNotice.default), _scrollList.default), _search.default), _section.default), _skeleton.default), _slider.default), _statusBar.default), _steps.default), _stepsItem.default), _sticky.default), _subsection.default), _swipeAction.default), _swipeActionItem.default), _swiper.default), _swipterIndicator.default), _switch2.default), _tabbar.default), _tabbarItem.default), _tabs.default), _tag.default), _text.default), _textarea.default), _toast.default), _toolbar.default), _tooltip.default), _transition.default), _upload.default);
  14577. exports.default = _default;
  14578. /***/ }),
  14579. /* 70 */
  14580. /*!**********************************************************************************!*\
  14581. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/actionSheet.js ***!
  14582. \**********************************************************************************/
  14583. /*! no static exports found */
  14584. /***/ (function(module, exports, __webpack_require__) {
  14585. "use strict";
  14586. Object.defineProperty(exports, "__esModule", {
  14587. value: true
  14588. });
  14589. exports.default = void 0;
  14590. /*
  14591. * @Author : LQ
  14592. * @Description :
  14593. * @version : 1.0
  14594. * @Date : 2021-08-20 16:44:21
  14595. * @LastAuthor : LQ
  14596. * @lastTime : 2021-08-20 16:44:35
  14597. * @FilePath : /u-view2.0/uview-ui/libs/config/props/actionSheet.js
  14598. */
  14599. var _default = {
  14600. // action-sheet组件
  14601. actionSheet: {
  14602. show: false,
  14603. title: '',
  14604. description: '',
  14605. actions: function actions() {
  14606. return [];
  14607. },
  14608. index: '',
  14609. cancelText: '',
  14610. closeOnClickAction: true,
  14611. safeAreaInsetBottom: true,
  14612. openType: '',
  14613. closeOnClickOverlay: true,
  14614. round: 0
  14615. }
  14616. };
  14617. exports.default = _default;
  14618. /***/ }),
  14619. /* 71 */
  14620. /*!****************************************************************************!*\
  14621. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/album.js ***!
  14622. \****************************************************************************/
  14623. /*! no static exports found */
  14624. /***/ (function(module, exports, __webpack_require__) {
  14625. "use strict";
  14626. Object.defineProperty(exports, "__esModule", {
  14627. value: true
  14628. });
  14629. exports.default = void 0;
  14630. /*
  14631. * @Author : LQ
  14632. * @Description :
  14633. * @version : 1.0
  14634. * @Date : 2021-08-20 16:44:21
  14635. * @LastAuthor : LQ
  14636. * @lastTime : 2021-08-20 16:47:24
  14637. * @FilePath : /u-view2.0/uview-ui/libs/config/props/album.js
  14638. */
  14639. var _default = {
  14640. // album 组件
  14641. album: {
  14642. urls: function urls() {
  14643. return [];
  14644. },
  14645. keyName: '',
  14646. singleSize: 180,
  14647. multipleSize: 70,
  14648. space: 6,
  14649. singleMode: 'scaleToFill',
  14650. multipleMode: 'aspectFill',
  14651. maxCount: 9,
  14652. previewFullImage: true,
  14653. rowCount: 3,
  14654. showMore: true
  14655. }
  14656. };
  14657. exports.default = _default;
  14658. /***/ }),
  14659. /* 72 */
  14660. /*!****************************************************************************!*\
  14661. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/alert.js ***!
  14662. \****************************************************************************/
  14663. /*! no static exports found */
  14664. /***/ (function(module, exports, __webpack_require__) {
  14665. "use strict";
  14666. Object.defineProperty(exports, "__esModule", {
  14667. value: true
  14668. });
  14669. exports.default = void 0;
  14670. /*
  14671. * @Author : LQ
  14672. * @Description :
  14673. * @version : 1.0
  14674. * @Date : 2021-08-20 16:44:21
  14675. * @LastAuthor : LQ
  14676. * @lastTime : 2021-08-20 16:48:53
  14677. * @FilePath : /u-view2.0/uview-ui/libs/config/props/alert.js
  14678. */
  14679. var _default = {
  14680. // alert警告组件
  14681. alert: {
  14682. title: '',
  14683. type: 'warning',
  14684. description: '',
  14685. closable: false,
  14686. showIcon: false,
  14687. effect: 'light',
  14688. center: false,
  14689. fontSize: 14
  14690. }
  14691. };
  14692. exports.default = _default;
  14693. /***/ }),
  14694. /* 73 */
  14695. /*!*****************************************************************************!*\
  14696. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/avatar.js ***!
  14697. \*****************************************************************************/
  14698. /*! no static exports found */
  14699. /***/ (function(module, exports, __webpack_require__) {
  14700. "use strict";
  14701. Object.defineProperty(exports, "__esModule", {
  14702. value: true
  14703. });
  14704. exports.default = void 0;
  14705. /*
  14706. * @Author : LQ
  14707. * @Description :
  14708. * @version : 1.0
  14709. * @Date : 2021-08-20 16:44:21
  14710. * @LastAuthor : LQ
  14711. * @lastTime : 2021-08-20 16:49:22
  14712. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatar.js
  14713. */
  14714. var _default = {
  14715. // avatar 组件
  14716. avatar: {
  14717. src: '',
  14718. shape: 'circle',
  14719. size: 40,
  14720. mode: 'scaleToFill',
  14721. text: '',
  14722. bgColor: '#c0c4cc',
  14723. color: '#ffffff',
  14724. fontSize: 18,
  14725. icon: '',
  14726. mpAvatar: false,
  14727. randomBgColor: false,
  14728. defaultUrl: '',
  14729. colorIndex: '',
  14730. name: ''
  14731. }
  14732. };
  14733. exports.default = _default;
  14734. /***/ }),
  14735. /* 74 */
  14736. /*!**********************************************************************************!*\
  14737. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/avatarGroup.js ***!
  14738. \**********************************************************************************/
  14739. /*! no static exports found */
  14740. /***/ (function(module, exports, __webpack_require__) {
  14741. "use strict";
  14742. Object.defineProperty(exports, "__esModule", {
  14743. value: true
  14744. });
  14745. exports.default = void 0;
  14746. /*
  14747. * @Author : LQ
  14748. * @Description :
  14749. * @version : 1.0
  14750. * @Date : 2021-08-20 16:44:21
  14751. * @LastAuthor : LQ
  14752. * @lastTime : 2021-08-20 16:49:55
  14753. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatarGroup.js
  14754. */
  14755. var _default = {
  14756. // avatarGroup 组件
  14757. avatarGroup: {
  14758. urls: function urls() {
  14759. return [];
  14760. },
  14761. maxCount: 5,
  14762. shape: 'circle',
  14763. mode: 'scaleToFill',
  14764. showMore: true,
  14765. size: 40,
  14766. keyName: '',
  14767. gap: 0.5,
  14768. extraValue: 0
  14769. }
  14770. };
  14771. exports.default = _default;
  14772. /***/ }),
  14773. /* 75 */
  14774. /*!******************************************************************************!*\
  14775. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/backtop.js ***!
  14776. \******************************************************************************/
  14777. /*! no static exports found */
  14778. /***/ (function(module, exports, __webpack_require__) {
  14779. "use strict";
  14780. Object.defineProperty(exports, "__esModule", {
  14781. value: true
  14782. });
  14783. exports.default = void 0;
  14784. /*
  14785. * @Author : LQ
  14786. * @Description :
  14787. * @version : 1.0
  14788. * @Date : 2021-08-20 16:44:21
  14789. * @LastAuthor : LQ
  14790. * @lastTime : 2021-08-20 16:50:18
  14791. * @FilePath : /u-view2.0/uview-ui/libs/config/props/backtop.js
  14792. */
  14793. var _default = {
  14794. // backtop组件
  14795. backtop: {
  14796. mode: 'circle',
  14797. icon: 'arrow-upward',
  14798. text: '',
  14799. duration: 100,
  14800. scrollTop: 0,
  14801. top: 400,
  14802. bottom: 100,
  14803. right: 20,
  14804. zIndex: 9,
  14805. iconStyle: function iconStyle() {
  14806. return {
  14807. color: '#909399',
  14808. fontSize: '19px'
  14809. };
  14810. }
  14811. }
  14812. };
  14813. exports.default = _default;
  14814. /***/ }),
  14815. /* 76 */
  14816. /*!****************************************************************************!*\
  14817. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/badge.js ***!
  14818. \****************************************************************************/
  14819. /*! no static exports found */
  14820. /***/ (function(module, exports, __webpack_require__) {
  14821. "use strict";
  14822. Object.defineProperty(exports, "__esModule", {
  14823. value: true
  14824. });
  14825. exports.default = void 0;
  14826. /*
  14827. * @Author : LQ
  14828. * @Description :
  14829. * @version : 1.0
  14830. * @Date : 2021-08-20 16:44:21
  14831. * @LastAuthor : LQ
  14832. * @lastTime : 2021-08-23 19:51:50
  14833. * @FilePath : /u-view2.0/uview-ui/libs/config/props/badge.js
  14834. */
  14835. var _default = {
  14836. // 徽标数组件
  14837. badge: {
  14838. isDot: false,
  14839. value: '',
  14840. show: true,
  14841. max: 999,
  14842. type: 'error',
  14843. showZero: false,
  14844. bgColor: null,
  14845. color: null,
  14846. shape: 'circle',
  14847. numberType: 'overflow',
  14848. offset: function offset() {
  14849. return [];
  14850. },
  14851. inverted: false,
  14852. absolute: false
  14853. }
  14854. };
  14855. exports.default = _default;
  14856. /***/ }),
  14857. /* 77 */
  14858. /*!*****************************************************************************!*\
  14859. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/button.js ***!
  14860. \*****************************************************************************/
  14861. /*! no static exports found */
  14862. /***/ (function(module, exports, __webpack_require__) {
  14863. "use strict";
  14864. Object.defineProperty(exports, "__esModule", {
  14865. value: true
  14866. });
  14867. exports.default = void 0;
  14868. /*
  14869. * @Author : LQ
  14870. * @Description :
  14871. * @version : 1.0
  14872. * @Date : 2021-08-20 16:44:21
  14873. * @LastAuthor : LQ
  14874. * @lastTime : 2021-08-20 16:51:27
  14875. * @FilePath : /u-view2.0/uview-ui/libs/config/props/button.js
  14876. */
  14877. var _default = {
  14878. // button组件
  14879. button: {
  14880. hairline: false,
  14881. type: 'info',
  14882. size: 'normal',
  14883. shape: 'square',
  14884. plain: false,
  14885. disabled: false,
  14886. loading: false,
  14887. loadingText: '',
  14888. loadingMode: 'spinner',
  14889. loadingSize: 15,
  14890. openType: '',
  14891. formType: '',
  14892. appParameter: '',
  14893. hoverStopPropagation: true,
  14894. lang: 'en',
  14895. sessionFrom: '',
  14896. sendMessageTitle: '',
  14897. sendMessagePath: '',
  14898. sendMessageImg: '',
  14899. showMessageCard: false,
  14900. dataName: '',
  14901. throttleTime: 0,
  14902. hoverStartTime: 0,
  14903. hoverStayTime: 200,
  14904. text: '',
  14905. icon: '',
  14906. iconColor: '',
  14907. color: ''
  14908. }
  14909. };
  14910. exports.default = _default;
  14911. /***/ }),
  14912. /* 78 */
  14913. /*!*******************************************************************************!*\
  14914. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/calendar.js ***!
  14915. \*******************************************************************************/
  14916. /*! no static exports found */
  14917. /***/ (function(module, exports, __webpack_require__) {
  14918. "use strict";
  14919. Object.defineProperty(exports, "__esModule", {
  14920. value: true
  14921. });
  14922. exports.default = void 0;
  14923. /*
  14924. * @Author : LQ
  14925. * @Description :
  14926. * @version : 1.0
  14927. * @Date : 2021-08-20 16:44:21
  14928. * @LastAuthor : LQ
  14929. * @lastTime : 2021-08-20 16:52:43
  14930. * @FilePath : /u-view2.0/uview-ui/libs/config/props/calendar.js
  14931. */
  14932. var _default = {
  14933. // calendar 组件
  14934. calendar: {
  14935. title: '日期选择',
  14936. showTitle: true,
  14937. showSubtitle: true,
  14938. mode: 'single',
  14939. startText: '开始',
  14940. endText: '结束',
  14941. customList: function customList() {
  14942. return [];
  14943. },
  14944. color: '#3c9cff',
  14945. minDate: 0,
  14946. maxDate: 0,
  14947. defaultDate: null,
  14948. maxCount: Number.MAX_SAFE_INTEGER,
  14949. // Infinity
  14950. rowHeight: 56,
  14951. formatter: null,
  14952. showLunar: false,
  14953. showMark: true,
  14954. confirmText: '确定',
  14955. confirmDisabledText: '确定',
  14956. show: false,
  14957. closeOnClickOverlay: false,
  14958. readonly: false,
  14959. showConfirm: true,
  14960. maxRange: Number.MAX_SAFE_INTEGER,
  14961. // Infinity
  14962. rangePrompt: '',
  14963. showRangePrompt: true,
  14964. allowSameDay: false,
  14965. round: 0,
  14966. monthNum: 3
  14967. }
  14968. };
  14969. exports.default = _default;
  14970. /***/ }),
  14971. /* 79 */
  14972. /*!**********************************************************************************!*\
  14973. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/carKeyboard.js ***!
  14974. \**********************************************************************************/
  14975. /*! no static exports found */
  14976. /***/ (function(module, exports, __webpack_require__) {
  14977. "use strict";
  14978. Object.defineProperty(exports, "__esModule", {
  14979. value: true
  14980. });
  14981. exports.default = void 0;
  14982. /*
  14983. * @Author : LQ
  14984. * @Description :
  14985. * @version : 1.0
  14986. * @Date : 2021-08-20 16:44:21
  14987. * @LastAuthor : LQ
  14988. * @lastTime : 2021-08-20 16:53:20
  14989. * @FilePath : /u-view2.0/uview-ui/libs/config/props/carKeyboard.js
  14990. */
  14991. var _default = {
  14992. // 车牌号键盘
  14993. carKeyboard: {
  14994. random: false
  14995. }
  14996. };
  14997. exports.default = _default;
  14998. /***/ }),
  14999. /* 80 */
  15000. /*!***************************************************************************!*\
  15001. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/cell.js ***!
  15002. \***************************************************************************/
  15003. /*! no static exports found */
  15004. /***/ (function(module, exports, __webpack_require__) {
  15005. "use strict";
  15006. Object.defineProperty(exports, "__esModule", {
  15007. value: true
  15008. });
  15009. exports.default = void 0;
  15010. /*
  15011. * @Author : LQ
  15012. * @Description :
  15013. * @version : 1.0
  15014. * @Date : 2021-08-20 16:44:21
  15015. * @LastAuthor : LQ
  15016. * @lastTime : 2021-08-23 20:53:09
  15017. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cell.js
  15018. */
  15019. var _default = {
  15020. // cell组件的props
  15021. cell: {
  15022. customClass: '',
  15023. title: '',
  15024. label: '',
  15025. value: '',
  15026. icon: '',
  15027. disabled: false,
  15028. border: true,
  15029. center: false,
  15030. url: '',
  15031. linkType: 'navigateTo',
  15032. clickable: false,
  15033. isLink: false,
  15034. required: false,
  15035. arrowDirection: '',
  15036. iconStyle: {},
  15037. rightIconStyle: {},
  15038. rightIcon: 'arrow-right',
  15039. titleStyle: {},
  15040. size: '',
  15041. stop: true,
  15042. name: ''
  15043. }
  15044. };
  15045. exports.default = _default;
  15046. /***/ }),
  15047. /* 81 */
  15048. /*!********************************************************************************!*\
  15049. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/cellGroup.js ***!
  15050. \********************************************************************************/
  15051. /*! no static exports found */
  15052. /***/ (function(module, exports, __webpack_require__) {
  15053. "use strict";
  15054. Object.defineProperty(exports, "__esModule", {
  15055. value: true
  15056. });
  15057. exports.default = void 0;
  15058. /*
  15059. * @Author : LQ
  15060. * @Description :
  15061. * @version : 1.0
  15062. * @Date : 2021-08-20 16:44:21
  15063. * @LastAuthor : LQ
  15064. * @lastTime : 2021-08-20 16:54:16
  15065. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cellGroup.js
  15066. */
  15067. var _default = {
  15068. // cell-group组件的props
  15069. cellGroup: {
  15070. title: '',
  15071. border: true,
  15072. customStyle: {}
  15073. }
  15074. };
  15075. exports.default = _default;
  15076. /***/ }),
  15077. /* 82 */
  15078. /*!*******************************************************************************!*\
  15079. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/checkbox.js ***!
  15080. \*******************************************************************************/
  15081. /*! no static exports found */
  15082. /***/ (function(module, exports, __webpack_require__) {
  15083. "use strict";
  15084. Object.defineProperty(exports, "__esModule", {
  15085. value: true
  15086. });
  15087. exports.default = void 0;
  15088. /*
  15089. * @Author : LQ
  15090. * @Description :
  15091. * @version : 1.0
  15092. * @Date : 2021-08-20 16:44:21
  15093. * @LastAuthor : LQ
  15094. * @lastTime : 2021-08-23 21:06:59
  15095. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkbox.js
  15096. */
  15097. var _default = {
  15098. // checkbox组件
  15099. checkbox: {
  15100. name: '',
  15101. shape: '',
  15102. size: '',
  15103. checkbox: false,
  15104. disabled: '',
  15105. activeColor: '',
  15106. inactiveColor: '',
  15107. iconSize: '',
  15108. iconColor: '',
  15109. label: '',
  15110. labelSize: '',
  15111. labelColor: '',
  15112. labelDisabled: ''
  15113. }
  15114. };
  15115. exports.default = _default;
  15116. /***/ }),
  15117. /* 83 */
  15118. /*!************************************************************************************!*\
  15119. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/checkboxGroup.js ***!
  15120. \************************************************************************************/
  15121. /*! no static exports found */
  15122. /***/ (function(module, exports, __webpack_require__) {
  15123. "use strict";
  15124. Object.defineProperty(exports, "__esModule", {
  15125. value: true
  15126. });
  15127. exports.default = void 0;
  15128. /*
  15129. * @Author : LQ
  15130. * @Description :
  15131. * @version : 1.0
  15132. * @Date : 2021-08-20 16:44:21
  15133. * @LastAuthor : LQ
  15134. * @lastTime : 2021-08-20 16:54:47
  15135. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkboxGroup.js
  15136. */
  15137. var _default = {
  15138. // checkbox-group组件
  15139. checkboxGroup: {
  15140. name: '',
  15141. value: function value() {
  15142. return [];
  15143. },
  15144. shape: 'square',
  15145. disabled: false,
  15146. activeColor: '#2979ff',
  15147. inactiveColor: '#c8c9cc',
  15148. size: 18,
  15149. placement: 'row',
  15150. labelSize: 14,
  15151. labelColor: '#303133',
  15152. labelDisabled: false,
  15153. iconColor: '#ffffff',
  15154. iconSize: 12,
  15155. iconPlacement: 'left',
  15156. borderBottom: false
  15157. }
  15158. };
  15159. exports.default = _default;
  15160. /***/ }),
  15161. /* 84 */
  15162. /*!*************************************************************************************!*\
  15163. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/circleProgress.js ***!
  15164. \*************************************************************************************/
  15165. /*! no static exports found */
  15166. /***/ (function(module, exports, __webpack_require__) {
  15167. "use strict";
  15168. Object.defineProperty(exports, "__esModule", {
  15169. value: true
  15170. });
  15171. exports.default = void 0;
  15172. /*
  15173. * @Author : LQ
  15174. * @Description :
  15175. * @version : 1.0
  15176. * @Date : 2021-08-20 16:44:21
  15177. * @LastAuthor : LQ
  15178. * @lastTime : 2021-08-20 16:55:02
  15179. * @FilePath : /u-view2.0/uview-ui/libs/config/props/circleProgress.js
  15180. */
  15181. var _default = {
  15182. // circleProgress 组件
  15183. circleProgress: {
  15184. percentage: 30
  15185. }
  15186. };
  15187. exports.default = _default;
  15188. /***/ }),
  15189. /* 85 */
  15190. /*!***************************************************************************!*\
  15191. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/code.js ***!
  15192. \***************************************************************************/
  15193. /*! no static exports found */
  15194. /***/ (function(module, exports, __webpack_require__) {
  15195. "use strict";
  15196. Object.defineProperty(exports, "__esModule", {
  15197. value: true
  15198. });
  15199. exports.default = void 0;
  15200. /*
  15201. * @Author : LQ
  15202. * @Description :
  15203. * @version : 1.0
  15204. * @Date : 2021-08-20 16:44:21
  15205. * @LastAuthor : LQ
  15206. * @lastTime : 2021-08-20 16:55:27
  15207. * @FilePath : /u-view2.0/uview-ui/libs/config/props/code.js
  15208. */
  15209. var _default = {
  15210. // code 组件
  15211. code: {
  15212. seconds: 60,
  15213. startText: '获取验证码',
  15214. changeText: 'X秒重新获取',
  15215. endText: '重新获取',
  15216. keepRunning: false,
  15217. uniqueKey: ''
  15218. }
  15219. };
  15220. exports.default = _default;
  15221. /***/ }),
  15222. /* 86 */
  15223. /*!********************************************************************************!*\
  15224. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/codeInput.js ***!
  15225. \********************************************************************************/
  15226. /*! no static exports found */
  15227. /***/ (function(module, exports, __webpack_require__) {
  15228. "use strict";
  15229. Object.defineProperty(exports, "__esModule", {
  15230. value: true
  15231. });
  15232. exports.default = void 0;
  15233. /*
  15234. * @Author : LQ
  15235. * @Description :
  15236. * @version : 1.0
  15237. * @Date : 2021-08-20 16:44:21
  15238. * @LastAuthor : LQ
  15239. * @lastTime : 2021-08-20 16:55:58
  15240. * @FilePath : /u-view2.0/uview-ui/libs/config/props/codeInput.js
  15241. */
  15242. var _default = {
  15243. // codeInput 组件
  15244. codeInput: {
  15245. adjustPosition: true,
  15246. maxlength: 6,
  15247. dot: false,
  15248. mode: 'box',
  15249. hairline: false,
  15250. space: 10,
  15251. value: '',
  15252. focus: false,
  15253. bold: false,
  15254. color: '#606266',
  15255. fontSize: 18,
  15256. size: 35,
  15257. disabledKeyboard: false,
  15258. borderColor: '#c9cacc',
  15259. disabledDot: true
  15260. }
  15261. };
  15262. exports.default = _default;
  15263. /***/ }),
  15264. /* 87 */
  15265. /*!**************************************************************************!*\
  15266. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/col.js ***!
  15267. \**************************************************************************/
  15268. /*! no static exports found */
  15269. /***/ (function(module, exports, __webpack_require__) {
  15270. "use strict";
  15271. Object.defineProperty(exports, "__esModule", {
  15272. value: true
  15273. });
  15274. exports.default = void 0;
  15275. /*
  15276. * @Author : LQ
  15277. * @Description :
  15278. * @version : 1.0
  15279. * @Date : 2021-08-20 16:44:21
  15280. * @LastAuthor : LQ
  15281. * @lastTime : 2021-08-20 16:56:12
  15282. * @FilePath : /u-view2.0/uview-ui/libs/config/props/col.js
  15283. */
  15284. var _default = {
  15285. // col 组件
  15286. col: {
  15287. span: 12,
  15288. offset: 0,
  15289. justify: 'start',
  15290. align: 'stretch',
  15291. textAlign: 'left'
  15292. }
  15293. };
  15294. exports.default = _default;
  15295. /***/ }),
  15296. /* 88 */
  15297. /*!*******************************************************************************!*\
  15298. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/collapse.js ***!
  15299. \*******************************************************************************/
  15300. /*! no static exports found */
  15301. /***/ (function(module, exports, __webpack_require__) {
  15302. "use strict";
  15303. Object.defineProperty(exports, "__esModule", {
  15304. value: true
  15305. });
  15306. exports.default = void 0;
  15307. /*
  15308. * @Author : LQ
  15309. * @Description :
  15310. * @version : 1.0
  15311. * @Date : 2021-08-20 16:44:21
  15312. * @LastAuthor : LQ
  15313. * @lastTime : 2021-08-20 16:56:30
  15314. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapse.js
  15315. */
  15316. var _default = {
  15317. // collapse 组件
  15318. collapse: {
  15319. value: null,
  15320. accordion: false,
  15321. border: true
  15322. }
  15323. };
  15324. exports.default = _default;
  15325. /***/ }),
  15326. /* 89 */
  15327. /*!***********************************************************************************!*\
  15328. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/collapseItem.js ***!
  15329. \***********************************************************************************/
  15330. /*! no static exports found */
  15331. /***/ (function(module, exports, __webpack_require__) {
  15332. "use strict";
  15333. Object.defineProperty(exports, "__esModule", {
  15334. value: true
  15335. });
  15336. exports.default = void 0;
  15337. /*
  15338. * @Author : LQ
  15339. * @Description :
  15340. * @version : 1.0
  15341. * @Date : 2021-08-20 16:44:21
  15342. * @LastAuthor : LQ
  15343. * @lastTime : 2021-08-20 16:56:42
  15344. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapseItem.js
  15345. */
  15346. var _default = {
  15347. // collapseItem 组件
  15348. collapseItem: {
  15349. title: '',
  15350. value: '',
  15351. label: '',
  15352. disabled: false,
  15353. isLink: true,
  15354. clickable: true,
  15355. border: true,
  15356. align: 'left',
  15357. name: '',
  15358. icon: '',
  15359. duration: 300
  15360. }
  15361. };
  15362. exports.default = _default;
  15363. /***/ }),
  15364. /* 90 */
  15365. /*!***********************************************************************************!*\
  15366. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/columnNotice.js ***!
  15367. \***********************************************************************************/
  15368. /*! no static exports found */
  15369. /***/ (function(module, exports, __webpack_require__) {
  15370. "use strict";
  15371. Object.defineProperty(exports, "__esModule", {
  15372. value: true
  15373. });
  15374. exports.default = void 0;
  15375. /*
  15376. * @Author : LQ
  15377. * @Description :
  15378. * @version : 1.0
  15379. * @Date : 2021-08-20 16:44:21
  15380. * @LastAuthor : LQ
  15381. * @lastTime : 2021-08-20 16:57:16
  15382. * @FilePath : /u-view2.0/uview-ui/libs/config/props/columnNotice.js
  15383. */
  15384. var _default = {
  15385. // columnNotice 组件
  15386. columnNotice: {
  15387. text: '',
  15388. icon: 'volume',
  15389. mode: '',
  15390. color: '#f9ae3d',
  15391. bgColor: '#fdf6ec',
  15392. fontSize: 14,
  15393. speed: 80,
  15394. step: false,
  15395. duration: 1500,
  15396. disableTouch: true
  15397. }
  15398. };
  15399. exports.default = _default;
  15400. /***/ }),
  15401. /* 91 */
  15402. /*!********************************************************************************!*\
  15403. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/countDown.js ***!
  15404. \********************************************************************************/
  15405. /*! no static exports found */
  15406. /***/ (function(module, exports, __webpack_require__) {
  15407. "use strict";
  15408. Object.defineProperty(exports, "__esModule", {
  15409. value: true
  15410. });
  15411. exports.default = void 0;
  15412. /*
  15413. * @Author : LQ
  15414. * @Description :
  15415. * @version : 1.0
  15416. * @Date : 2021-08-20 16:44:21
  15417. * @LastAuthor : LQ
  15418. * @lastTime : 2021-08-20 17:11:29
  15419. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countDown.js
  15420. */
  15421. var _default = {
  15422. // u-count-down 计时器组件
  15423. countDown: {
  15424. time: 0,
  15425. format: 'HH:mm:ss',
  15426. autoStart: true,
  15427. millisecond: false
  15428. }
  15429. };
  15430. exports.default = _default;
  15431. /***/ }),
  15432. /* 92 */
  15433. /*!******************************************************************************!*\
  15434. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/countTo.js ***!
  15435. \******************************************************************************/
  15436. /*! no static exports found */
  15437. /***/ (function(module, exports, __webpack_require__) {
  15438. "use strict";
  15439. Object.defineProperty(exports, "__esModule", {
  15440. value: true
  15441. });
  15442. exports.default = void 0;
  15443. /*
  15444. * @Author : LQ
  15445. * @Description :
  15446. * @version : 1.0
  15447. * @Date : 2021-08-20 16:44:21
  15448. * @LastAuthor : LQ
  15449. * @lastTime : 2021-08-20 16:57:32
  15450. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countTo.js
  15451. */
  15452. var _default = {
  15453. // countTo 组件
  15454. countTo: {
  15455. startVal: 0,
  15456. endVal: 0,
  15457. duration: 2000,
  15458. autoplay: true,
  15459. decimals: 0,
  15460. useEasing: true,
  15461. decimal: '.',
  15462. color: '#606266',
  15463. fontSize: 22,
  15464. bold: false,
  15465. separator: ''
  15466. }
  15467. };
  15468. exports.default = _default;
  15469. /***/ }),
  15470. /* 93 */
  15471. /*!*************************************************************************************!*\
  15472. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/datetimePicker.js ***!
  15473. \*************************************************************************************/
  15474. /*! no static exports found */
  15475. /***/ (function(module, exports, __webpack_require__) {
  15476. "use strict";
  15477. Object.defineProperty(exports, "__esModule", {
  15478. value: true
  15479. });
  15480. exports.default = void 0;
  15481. /*
  15482. * @Author : LQ
  15483. * @Description :
  15484. * @version : 1.0
  15485. * @Date : 2021-08-20 16:44:21
  15486. * @LastAuthor : LQ
  15487. * @lastTime : 2021-08-20 16:57:48
  15488. * @FilePath : /u-view2.0/uview-ui/libs/config/props/datetimePicker.js
  15489. */
  15490. var _default = {
  15491. // datetimePicker 组件
  15492. datetimePicker: {
  15493. show: false,
  15494. showToolbar: true,
  15495. value: '',
  15496. title: '',
  15497. mode: 'datetime',
  15498. maxDate: new Date(new Date().getFullYear() + 10, 0, 1).getTime(),
  15499. minDate: new Date(new Date().getFullYear() - 10, 0, 1).getTime(),
  15500. minHour: 0,
  15501. maxHour: 23,
  15502. minMinute: 0,
  15503. maxMinute: 59,
  15504. filter: null,
  15505. formatter: null,
  15506. loading: false,
  15507. itemHeight: 44,
  15508. cancelText: '取消',
  15509. confirmText: '确认',
  15510. cancelColor: '#909193',
  15511. confirmColor: '#3c9cff',
  15512. visibleItemCount: 5,
  15513. closeOnClickOverlay: false,
  15514. defaultIndex: function defaultIndex() {
  15515. return [];
  15516. }
  15517. }
  15518. };
  15519. exports.default = _default;
  15520. /***/ }),
  15521. /* 94 */
  15522. /*!******************************************************************************!*\
  15523. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/divider.js ***!
  15524. \******************************************************************************/
  15525. /*! no static exports found */
  15526. /***/ (function(module, exports, __webpack_require__) {
  15527. "use strict";
  15528. Object.defineProperty(exports, "__esModule", {
  15529. value: true
  15530. });
  15531. exports.default = void 0;
  15532. /*
  15533. * @Author : LQ
  15534. * @Description :
  15535. * @version : 1.0
  15536. * @Date : 2021-08-20 16:44:21
  15537. * @LastAuthor : LQ
  15538. * @lastTime : 2021-08-20 16:58:03
  15539. * @FilePath : /u-view2.0/uview-ui/libs/config/props/divider.js
  15540. */
  15541. var _default = {
  15542. // divider组件
  15543. divider: {
  15544. dashed: false,
  15545. hairline: true,
  15546. dot: false,
  15547. textPosition: 'center',
  15548. text: '',
  15549. textSize: 14,
  15550. textColor: '#909399',
  15551. lineColor: '#dcdfe6'
  15552. }
  15553. };
  15554. exports.default = _default;
  15555. /***/ }),
  15556. /* 95 */
  15557. /*!****************************************************************************!*\
  15558. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/empty.js ***!
  15559. \****************************************************************************/
  15560. /*! no static exports found */
  15561. /***/ (function(module, exports, __webpack_require__) {
  15562. "use strict";
  15563. Object.defineProperty(exports, "__esModule", {
  15564. value: true
  15565. });
  15566. exports.default = void 0;
  15567. /*
  15568. * @Author : LQ
  15569. * @Description :
  15570. * @version : 1.0
  15571. * @Date : 2021-08-20 16:44:21
  15572. * @LastAuthor : LQ
  15573. * @lastTime : 2021-08-20 17:03:27
  15574. * @FilePath : /u-view2.0/uview-ui/libs/config/props/empty.js
  15575. */
  15576. var _default = {
  15577. // empty组件
  15578. empty: {
  15579. icon: '',
  15580. text: '',
  15581. textColor: '#c0c4cc',
  15582. textSize: 14,
  15583. iconColor: '#c0c4cc',
  15584. iconSize: 90,
  15585. mode: 'data',
  15586. width: 160,
  15587. height: 160,
  15588. show: true,
  15589. marginTop: 0
  15590. }
  15591. };
  15592. exports.default = _default;
  15593. /***/ }),
  15594. /* 96 */
  15595. /*!***************************************************************************!*\
  15596. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/form.js ***!
  15597. \***************************************************************************/
  15598. /*! no static exports found */
  15599. /***/ (function(module, exports, __webpack_require__) {
  15600. "use strict";
  15601. Object.defineProperty(exports, "__esModule", {
  15602. value: true
  15603. });
  15604. exports.default = void 0;
  15605. /*
  15606. * @Author : LQ
  15607. * @Description :
  15608. * @version : 1.0
  15609. * @Date : 2021-08-20 16:44:21
  15610. * @LastAuthor : LQ
  15611. * @lastTime : 2021-08-20 17:03:49
  15612. * @FilePath : /u-view2.0/uview-ui/libs/config/props/form.js
  15613. */
  15614. var _default = {
  15615. // form 组件
  15616. form: {
  15617. model: function model() {
  15618. return {};
  15619. },
  15620. rules: function rules() {
  15621. return {};
  15622. },
  15623. errorType: 'message',
  15624. borderBottom: true,
  15625. labelPosition: 'left',
  15626. labelWidth: 45,
  15627. labelAlign: 'left',
  15628. labelStyle: function labelStyle() {
  15629. return {};
  15630. }
  15631. }
  15632. };
  15633. exports.default = _default;
  15634. /***/ }),
  15635. /* 97 */
  15636. /*!*******************************************************************************!*\
  15637. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/formItem.js ***!
  15638. \*******************************************************************************/
  15639. /*! no static exports found */
  15640. /***/ (function(module, exports, __webpack_require__) {
  15641. "use strict";
  15642. Object.defineProperty(exports, "__esModule", {
  15643. value: true
  15644. });
  15645. exports.default = void 0;
  15646. /*
  15647. * @Author : LQ
  15648. * @Description :
  15649. * @version : 1.0
  15650. * @Date : 2021-08-20 16:44:21
  15651. * @LastAuthor : LQ
  15652. * @lastTime : 2021-08-20 17:04:32
  15653. * @FilePath : /u-view2.0/uview-ui/libs/config/props/formItem.js
  15654. */
  15655. var _default = {
  15656. // formItem 组件
  15657. formItem: {
  15658. label: '',
  15659. prop: '',
  15660. borderBottom: '',
  15661. labelPosition: '',
  15662. labelWidth: '',
  15663. rightIcon: '',
  15664. leftIcon: '',
  15665. required: false,
  15666. leftIconStyle: ''
  15667. }
  15668. };
  15669. exports.default = _default;
  15670. /***/ }),
  15671. /* 98 */
  15672. /*!**************************************************************************!*\
  15673. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/gap.js ***!
  15674. \**************************************************************************/
  15675. /*! no static exports found */
  15676. /***/ (function(module, exports, __webpack_require__) {
  15677. "use strict";
  15678. Object.defineProperty(exports, "__esModule", {
  15679. value: true
  15680. });
  15681. exports.default = void 0;
  15682. /*
  15683. * @Author : LQ
  15684. * @Description :
  15685. * @version : 1.0
  15686. * @Date : 2021-08-20 16:44:21
  15687. * @LastAuthor : LQ
  15688. * @lastTime : 2021-08-20 17:05:25
  15689. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gap.js
  15690. */
  15691. var _default = {
  15692. // gap组件
  15693. gap: {
  15694. bgColor: 'transparent',
  15695. height: 20,
  15696. marginTop: 0,
  15697. marginBottom: 0,
  15698. customStyle: {}
  15699. }
  15700. };
  15701. exports.default = _default;
  15702. /***/ }),
  15703. /* 99 */
  15704. /*!***************************************************************************!*\
  15705. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/grid.js ***!
  15706. \***************************************************************************/
  15707. /*! no static exports found */
  15708. /***/ (function(module, exports, __webpack_require__) {
  15709. "use strict";
  15710. Object.defineProperty(exports, "__esModule", {
  15711. value: true
  15712. });
  15713. exports.default = void 0;
  15714. /*
  15715. * @Author : LQ
  15716. * @Description :
  15717. * @version : 1.0
  15718. * @Date : 2021-08-20 16:44:21
  15719. * @LastAuthor : LQ
  15720. * @lastTime : 2021-08-20 17:05:57
  15721. * @FilePath : /u-view2.0/uview-ui/libs/config/props/grid.js
  15722. */
  15723. var _default = {
  15724. // grid组件
  15725. grid: {
  15726. col: 3,
  15727. border: false,
  15728. align: 'left'
  15729. }
  15730. };
  15731. exports.default = _default;
  15732. /***/ }),
  15733. /* 100 */
  15734. /*!*******************************************************************************!*\
  15735. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/gridItem.js ***!
  15736. \*******************************************************************************/
  15737. /*! no static exports found */
  15738. /***/ (function(module, exports, __webpack_require__) {
  15739. "use strict";
  15740. Object.defineProperty(exports, "__esModule", {
  15741. value: true
  15742. });
  15743. exports.default = void 0;
  15744. /*
  15745. * @Author : LQ
  15746. * @Description :
  15747. * @version : 1.0
  15748. * @Date : 2021-08-20 16:44:21
  15749. * @LastAuthor : LQ
  15750. * @lastTime : 2021-08-20 17:06:13
  15751. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gridItem.js
  15752. */
  15753. var _default = {
  15754. // grid-item组件
  15755. gridItem: {
  15756. name: null,
  15757. bgColor: 'transparent'
  15758. }
  15759. };
  15760. exports.default = _default;
  15761. /***/ }),
  15762. /* 101 */
  15763. /*!***************************************************************************!*\
  15764. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/icon.js ***!
  15765. \***************************************************************************/
  15766. /*! no static exports found */
  15767. /***/ (function(module, exports, __webpack_require__) {
  15768. "use strict";
  15769. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  15770. Object.defineProperty(exports, "__esModule", {
  15771. value: true
  15772. });
  15773. exports.default = void 0;
  15774. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 68));
  15775. /*
  15776. * @Author : LQ
  15777. * @Description :
  15778. * @version : 1.0
  15779. * @Date : 2021-08-20 16:44:21
  15780. * @LastAuthor : LQ
  15781. * @lastTime : 2021-08-20 18:00:14
  15782. * @FilePath : /u-view2.0/uview-ui/libs/config/props/icon.js
  15783. */
  15784. var color = _config.default.color;
  15785. var _default = {
  15786. // icon组件
  15787. icon: {
  15788. name: '',
  15789. color: color['u-content-color'],
  15790. size: '16px',
  15791. bold: false,
  15792. index: '',
  15793. hoverClass: '',
  15794. customPrefix: 'uicon',
  15795. label: '',
  15796. labelPos: 'right',
  15797. labelSize: '15px',
  15798. labelColor: color['u-content-color'],
  15799. space: '3px',
  15800. imgMode: '',
  15801. width: '',
  15802. height: '',
  15803. top: 0,
  15804. stop: false
  15805. }
  15806. };
  15807. exports.default = _default;
  15808. /***/ }),
  15809. /* 102 */
  15810. /*!****************************************************************************!*\
  15811. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/image.js ***!
  15812. \****************************************************************************/
  15813. /*! no static exports found */
  15814. /***/ (function(module, exports, __webpack_require__) {
  15815. "use strict";
  15816. Object.defineProperty(exports, "__esModule", {
  15817. value: true
  15818. });
  15819. exports.default = void 0;
  15820. /*
  15821. * @Author : LQ
  15822. * @Description :
  15823. * @version : 1.0
  15824. * @Date : 2021-08-20 16:44:21
  15825. * @LastAuthor : LQ
  15826. * @lastTime : 2021-08-20 17:01:51
  15827. * @FilePath : /u-view2.0/uview-ui/libs/config/props/image.js
  15828. */
  15829. var _default = {
  15830. // image组件
  15831. image: {
  15832. src: '',
  15833. mode: 'aspectFill',
  15834. width: '300',
  15835. height: '225',
  15836. shape: 'square',
  15837. radius: 0,
  15838. lazyLoad: true,
  15839. showMenuByLongpress: true,
  15840. loadingIcon: 'photo',
  15841. errorIcon: 'error-circle',
  15842. showLoading: true,
  15843. showError: true,
  15844. fade: true,
  15845. webp: false,
  15846. duration: 500,
  15847. bgColor: '#f3f4f6'
  15848. }
  15849. };
  15850. exports.default = _default;
  15851. /***/ }),
  15852. /* 103 */
  15853. /*!**********************************************************************************!*\
  15854. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/indexAnchor.js ***!
  15855. \**********************************************************************************/
  15856. /*! no static exports found */
  15857. /***/ (function(module, exports, __webpack_require__) {
  15858. "use strict";
  15859. Object.defineProperty(exports, "__esModule", {
  15860. value: true
  15861. });
  15862. exports.default = void 0;
  15863. /*
  15864. * @Author : LQ
  15865. * @Description :
  15866. * @version : 1.0
  15867. * @Date : 2021-08-20 16:44:21
  15868. * @LastAuthor : LQ
  15869. * @lastTime : 2021-08-20 17:13:15
  15870. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexAnchor.js
  15871. */
  15872. var _default = {
  15873. // indexAnchor 组件
  15874. indexAnchor: {
  15875. text: '',
  15876. color: '#606266',
  15877. size: 14,
  15878. bgColor: '#dedede',
  15879. height: 32
  15880. }
  15881. };
  15882. exports.default = _default;
  15883. /***/ }),
  15884. /* 104 */
  15885. /*!********************************************************************************!*\
  15886. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/indexList.js ***!
  15887. \********************************************************************************/
  15888. /*! no static exports found */
  15889. /***/ (function(module, exports, __webpack_require__) {
  15890. "use strict";
  15891. Object.defineProperty(exports, "__esModule", {
  15892. value: true
  15893. });
  15894. exports.default = void 0;
  15895. /*
  15896. * @Author : LQ
  15897. * @Description :
  15898. * @version : 1.0
  15899. * @Date : 2021-08-20 16:44:21
  15900. * @LastAuthor : LQ
  15901. * @lastTime : 2021-08-20 17:13:35
  15902. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexList.js
  15903. */
  15904. var _default = {
  15905. // indexList 组件
  15906. indexList: {
  15907. inactiveColor: '#606266',
  15908. activeColor: '#5677fc',
  15909. indexList: function indexList() {
  15910. return [];
  15911. },
  15912. sticky: true,
  15913. customNavHeight: 0
  15914. }
  15915. };
  15916. exports.default = _default;
  15917. /***/ }),
  15918. /* 105 */
  15919. /*!****************************************************************************!*\
  15920. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/input.js ***!
  15921. \****************************************************************************/
  15922. /*! no static exports found */
  15923. /***/ (function(module, exports, __webpack_require__) {
  15924. "use strict";
  15925. Object.defineProperty(exports, "__esModule", {
  15926. value: true
  15927. });
  15928. exports.default = void 0;
  15929. /*
  15930. * @Author : LQ
  15931. * @Description :
  15932. * @version : 1.0
  15933. * @Date : 2021-08-20 16:44:21
  15934. * @LastAuthor : LQ
  15935. * @lastTime : 2021-08-20 17:13:55
  15936. * @FilePath : /u-view2.0/uview-ui/libs/config/props/input.js
  15937. */
  15938. var _default = {
  15939. // index 组件
  15940. input: {
  15941. value: '',
  15942. type: 'text',
  15943. fixed: false,
  15944. disabled: false,
  15945. disabledColor: '#f5f7fa',
  15946. clearable: false,
  15947. password: false,
  15948. maxlength: -1,
  15949. placeholder: null,
  15950. placeholderClass: 'input-placeholder',
  15951. placeholderStyle: 'color: #c0c4cc',
  15952. showWordLimit: false,
  15953. confirmType: 'done',
  15954. confirmHold: false,
  15955. holdKeyboard: false,
  15956. focus: false,
  15957. autoBlur: false,
  15958. disableDefaultPadding: false,
  15959. cursor: -1,
  15960. cursorSpacing: 30,
  15961. selectionStart: -1,
  15962. selectionEnd: -1,
  15963. adjustPosition: true,
  15964. inputAlign: 'left',
  15965. fontSize: '15px',
  15966. color: '#303133',
  15967. prefixIcon: '',
  15968. prefixIconStyle: '',
  15969. suffixIcon: '',
  15970. suffixIconStyle: '',
  15971. border: 'surround',
  15972. readonly: false,
  15973. shape: 'square',
  15974. formatter: null
  15975. }
  15976. };
  15977. exports.default = _default;
  15978. /***/ }),
  15979. /* 106 */
  15980. /*!*******************************************************************************!*\
  15981. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/keyboard.js ***!
  15982. \*******************************************************************************/
  15983. /*! no static exports found */
  15984. /***/ (function(module, exports, __webpack_require__) {
  15985. "use strict";
  15986. Object.defineProperty(exports, "__esModule", {
  15987. value: true
  15988. });
  15989. exports.default = void 0;
  15990. /*
  15991. * @Author : LQ
  15992. * @Description :
  15993. * @version : 1.0
  15994. * @Date : 2021-08-20 16:44:21
  15995. * @LastAuthor : LQ
  15996. * @lastTime : 2021-08-20 17:07:49
  15997. * @FilePath : /u-view2.0/uview-ui/libs/config/props/keyboard.js
  15998. */
  15999. var _default = {
  16000. // 键盘组件
  16001. keyboard: {
  16002. mode: 'number',
  16003. dotDisabled: false,
  16004. tooltip: true,
  16005. showTips: true,
  16006. tips: '',
  16007. showCancel: true,
  16008. showConfirm: true,
  16009. random: false,
  16010. safeAreaInsetBottom: true,
  16011. closeOnClickOverlay: true,
  16012. show: false,
  16013. overlay: true,
  16014. zIndex: 10075,
  16015. cancelText: '取消',
  16016. confirmText: '确定',
  16017. autoChange: false
  16018. }
  16019. };
  16020. exports.default = _default;
  16021. /***/ }),
  16022. /* 107 */
  16023. /*!***************************************************************************!*\
  16024. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/line.js ***!
  16025. \***************************************************************************/
  16026. /*! no static exports found */
  16027. /***/ (function(module, exports, __webpack_require__) {
  16028. "use strict";
  16029. Object.defineProperty(exports, "__esModule", {
  16030. value: true
  16031. });
  16032. exports.default = void 0;
  16033. /*
  16034. * @Author : LQ
  16035. * @Description :
  16036. * @version : 1.0
  16037. * @Date : 2021-08-20 16:44:21
  16038. * @LastAuthor : LQ
  16039. * @lastTime : 2021-08-20 17:04:49
  16040. * @FilePath : /u-view2.0/uview-ui/libs/config/props/line.js
  16041. */
  16042. var _default = {
  16043. // line组件
  16044. line: {
  16045. color: '#d6d7d9',
  16046. length: '100%',
  16047. direction: 'row',
  16048. hairline: true,
  16049. margin: 0,
  16050. dashed: false
  16051. }
  16052. };
  16053. exports.default = _default;
  16054. /***/ }),
  16055. /* 108 */
  16056. /*!***********************************************************************************!*\
  16057. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/lineProgress.js ***!
  16058. \***********************************************************************************/
  16059. /*! no static exports found */
  16060. /***/ (function(module, exports, __webpack_require__) {
  16061. "use strict";
  16062. Object.defineProperty(exports, "__esModule", {
  16063. value: true
  16064. });
  16065. exports.default = void 0;
  16066. /*
  16067. * @Author : LQ
  16068. * @Description :
  16069. * @version : 1.0
  16070. * @Date : 2021-08-20 16:44:21
  16071. * @LastAuthor : LQ
  16072. * @lastTime : 2021-08-20 17:14:11
  16073. * @FilePath : /u-view2.0/uview-ui/libs/config/props/lineProgress.js
  16074. */
  16075. var _default = {
  16076. // lineProgress 组件
  16077. lineProgress: {
  16078. activeColor: '#19be6b',
  16079. inactiveColor: '#ececec',
  16080. percentage: 0,
  16081. showText: true,
  16082. height: 12
  16083. }
  16084. };
  16085. exports.default = _default;
  16086. /***/ }),
  16087. /* 109 */
  16088. /*!***************************************************************************!*\
  16089. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/link.js ***!
  16090. \***************************************************************************/
  16091. /*! no static exports found */
  16092. /***/ (function(module, exports, __webpack_require__) {
  16093. "use strict";
  16094. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  16095. Object.defineProperty(exports, "__esModule", {
  16096. value: true
  16097. });
  16098. exports.default = void 0;
  16099. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 68));
  16100. /*
  16101. * @Author : LQ
  16102. * @Description :
  16103. * @version : 1.0
  16104. * @Date : 2021-08-20 16:44:21
  16105. * @LastAuthor : LQ
  16106. * @lastTime : 2021-08-20 17:45:36
  16107. * @FilePath : /u-view2.0/uview-ui/libs/config/props/link.js
  16108. */
  16109. var color = _config.default.color;
  16110. var _default = {
  16111. // link超链接组件props参数
  16112. link: {
  16113. color: color['u-primary'],
  16114. fontSize: 15,
  16115. underLine: false,
  16116. href: '',
  16117. mpTips: '链接已复制,请在浏览器打开',
  16118. lineColor: '',
  16119. text: ''
  16120. }
  16121. };
  16122. exports.default = _default;
  16123. /***/ }),
  16124. /* 110 */
  16125. /*!***************************************************************************!*\
  16126. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/list.js ***!
  16127. \***************************************************************************/
  16128. /*! no static exports found */
  16129. /***/ (function(module, exports, __webpack_require__) {
  16130. "use strict";
  16131. Object.defineProperty(exports, "__esModule", {
  16132. value: true
  16133. });
  16134. exports.default = void 0;
  16135. /*
  16136. * @Author : LQ
  16137. * @Description :
  16138. * @version : 1.0
  16139. * @Date : 2021-08-20 16:44:21
  16140. * @LastAuthor : LQ
  16141. * @lastTime : 2021-08-20 17:14:53
  16142. * @FilePath : /u-view2.0/uview-ui/libs/config/props/list.js
  16143. */
  16144. var _default = {
  16145. // list 组件
  16146. list: {
  16147. showScrollbar: false,
  16148. lowerThreshold: 50,
  16149. upperThreshold: 0,
  16150. scrollTop: 0,
  16151. offsetAccuracy: 10,
  16152. enableFlex: false,
  16153. pagingEnabled: false,
  16154. scrollable: true,
  16155. scrollIntoView: '',
  16156. scrollWithAnimation: false,
  16157. enableBackToTop: false,
  16158. height: 0,
  16159. width: 0,
  16160. preLoadScreen: 1
  16161. }
  16162. };
  16163. exports.default = _default;
  16164. /***/ }),
  16165. /* 111 */
  16166. /*!*******************************************************************************!*\
  16167. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/listItem.js ***!
  16168. \*******************************************************************************/
  16169. /*! no static exports found */
  16170. /***/ (function(module, exports, __webpack_require__) {
  16171. "use strict";
  16172. Object.defineProperty(exports, "__esModule", {
  16173. value: true
  16174. });
  16175. exports.default = void 0;
  16176. /*
  16177. * @Author : LQ
  16178. * @Description :
  16179. * @version : 1.0
  16180. * @Date : 2021-08-20 16:44:21
  16181. * @LastAuthor : LQ
  16182. * @lastTime : 2021-08-20 17:15:40
  16183. * @FilePath : /u-view2.0/uview-ui/libs/config/props/listItem.js
  16184. */
  16185. var _default = {
  16186. // listItem 组件
  16187. listItem: {
  16188. anchor: ''
  16189. }
  16190. };
  16191. exports.default = _default;
  16192. /***/ }),
  16193. /* 112 */
  16194. /*!**********************************************************************************!*\
  16195. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/loadingIcon.js ***!
  16196. \**********************************************************************************/
  16197. /*! no static exports found */
  16198. /***/ (function(module, exports, __webpack_require__) {
  16199. "use strict";
  16200. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  16201. Object.defineProperty(exports, "__esModule", {
  16202. value: true
  16203. });
  16204. exports.default = void 0;
  16205. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 68));
  16206. /*
  16207. * @Author : LQ
  16208. * @Description :
  16209. * @version : 1.0
  16210. * @Date : 2021-08-20 16:44:21
  16211. * @LastAuthor : LQ
  16212. * @lastTime : 2021-08-20 17:45:47
  16213. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingIcon.js
  16214. */
  16215. var color = _config.default.color;
  16216. var _default = {
  16217. // loading-icon加载中图标组件
  16218. loadingIcon: {
  16219. show: true,
  16220. color: color['u-tips-color'],
  16221. textColor: color['u-tips-color'],
  16222. vertical: false,
  16223. mode: 'spinner',
  16224. size: 24,
  16225. textSize: 15,
  16226. text: '',
  16227. timingFunction: 'ease-in-out',
  16228. duration: 1200,
  16229. inactiveColor: ''
  16230. }
  16231. };
  16232. exports.default = _default;
  16233. /***/ }),
  16234. /* 113 */
  16235. /*!**********************************************************************************!*\
  16236. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/loadingPage.js ***!
  16237. \**********************************************************************************/
  16238. /*! no static exports found */
  16239. /***/ (function(module, exports, __webpack_require__) {
  16240. "use strict";
  16241. Object.defineProperty(exports, "__esModule", {
  16242. value: true
  16243. });
  16244. exports.default = void 0;
  16245. /*
  16246. * @Author : LQ
  16247. * @Description :
  16248. * @version : 1.0
  16249. * @Date : 2021-08-20 16:44:21
  16250. * @LastAuthor : LQ
  16251. * @lastTime : 2021-08-20 17:00:23
  16252. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingPage.js
  16253. */
  16254. var _default = {
  16255. // loading-page组件
  16256. loadingPage: {
  16257. loadingText: '正在加载',
  16258. image: '',
  16259. loadingMode: 'circle',
  16260. loading: false,
  16261. bgColor: '#ffffff',
  16262. color: '#C8C8C8',
  16263. fontSize: 19,
  16264. iconSize: 28,
  16265. loadingColor: '#C8C8C8'
  16266. }
  16267. };
  16268. exports.default = _default;
  16269. /***/ }),
  16270. /* 114 */
  16271. /*!*******************************************************************************!*\
  16272. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/loadmore.js ***!
  16273. \*******************************************************************************/
  16274. /*! no static exports found */
  16275. /***/ (function(module, exports, __webpack_require__) {
  16276. "use strict";
  16277. Object.defineProperty(exports, "__esModule", {
  16278. value: true
  16279. });
  16280. exports.default = void 0;
  16281. /*
  16282. * @Author : LQ
  16283. * @Description :
  16284. * @version : 1.0
  16285. * @Date : 2021-08-20 16:44:21
  16286. * @LastAuthor : LQ
  16287. * @lastTime : 2021-08-20 17:15:26
  16288. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadmore.js
  16289. */
  16290. var _default = {
  16291. // loadmore 组件
  16292. loadmore: {
  16293. status: 'loadmore',
  16294. bgColor: 'transparent',
  16295. icon: true,
  16296. fontSize: 14,
  16297. iconSize: 17,
  16298. color: '#606266',
  16299. loadingIcon: 'spinner',
  16300. loadmoreText: '加载更多',
  16301. loadingText: '正在加载...',
  16302. nomoreText: '没有更多了',
  16303. isDot: false,
  16304. iconColor: '#b7b7b7',
  16305. marginTop: 10,
  16306. marginBottom: 10,
  16307. height: 'auto',
  16308. line: false,
  16309. lineColor: '#E6E8EB',
  16310. dashed: false
  16311. }
  16312. };
  16313. exports.default = _default;
  16314. /***/ }),
  16315. /* 115 */
  16316. /*!****************************************************************************!*\
  16317. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/modal.js ***!
  16318. \****************************************************************************/
  16319. /*! no static exports found */
  16320. /***/ (function(module, exports, __webpack_require__) {
  16321. "use strict";
  16322. Object.defineProperty(exports, "__esModule", {
  16323. value: true
  16324. });
  16325. exports.default = void 0;
  16326. /*
  16327. * @Author : LQ
  16328. * @Description :
  16329. * @version : 1.0
  16330. * @Date : 2021-08-20 16:44:21
  16331. * @LastAuthor : LQ
  16332. * @lastTime : 2021-08-20 17:15:59
  16333. * @FilePath : /u-view2.0/uview-ui/libs/config/props/modal.js
  16334. */
  16335. var _default = {
  16336. // modal 组件
  16337. modal: {
  16338. show: false,
  16339. title: '',
  16340. content: '',
  16341. confirmText: '确认',
  16342. cancelText: '取消',
  16343. showConfirmButton: true,
  16344. showCancelButton: false,
  16345. confirmColor: '#2979ff',
  16346. cancelColor: '#606266',
  16347. buttonReverse: false,
  16348. zoom: true,
  16349. asyncClose: false,
  16350. closeOnClickOverlay: false,
  16351. negativeTop: 0,
  16352. width: '650rpx',
  16353. confirmButtonShape: ''
  16354. }
  16355. };
  16356. exports.default = _default;
  16357. /***/ }),
  16358. /* 116 */
  16359. /*!*****************************************************************************!*\
  16360. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/navbar.js ***!
  16361. \*****************************************************************************/
  16362. /*! no static exports found */
  16363. /***/ (function(module, exports, __webpack_require__) {
  16364. "use strict";
  16365. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  16366. Object.defineProperty(exports, "__esModule", {
  16367. value: true
  16368. });
  16369. exports.default = void 0;
  16370. var _color = _interopRequireDefault(__webpack_require__(/*! ../color */ 117));
  16371. /*
  16372. * @Author : LQ
  16373. * @Description :
  16374. * @version : 1.0
  16375. * @Date : 2021-08-20 16:44:21
  16376. * @LastAuthor : LQ
  16377. * @lastTime : 2021-08-20 17:16:18
  16378. * @FilePath : /u-view2.0/uview-ui/libs/config/props/navbar.js
  16379. */
  16380. var _default = {
  16381. // navbar 组件
  16382. navbar: {
  16383. safeAreaInsetTop: true,
  16384. placeholder: false,
  16385. fixed: true,
  16386. border: false,
  16387. leftIcon: 'arrow-left',
  16388. leftText: '',
  16389. rightText: '',
  16390. rightIcon: '',
  16391. title: '',
  16392. bgColor: '#ffffff',
  16393. titleWidth: '400rpx',
  16394. height: '44px',
  16395. leftIconSize: 20,
  16396. leftIconColor: _color.default.mainColor,
  16397. autoBack: false,
  16398. titleStyle: ''
  16399. }
  16400. };
  16401. exports.default = _default;
  16402. /***/ }),
  16403. /* 117 */
  16404. /*!**********************************************************************!*\
  16405. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/color.js ***!
  16406. \**********************************************************************/
  16407. /*! no static exports found */
  16408. /***/ (function(module, exports, __webpack_require__) {
  16409. "use strict";
  16410. Object.defineProperty(exports, "__esModule", {
  16411. value: true
  16412. });
  16413. exports.default = void 0;
  16414. // 为了让用户能够自定义主题,会逐步弃用此文件,各颜色通过css提供
  16415. // 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)
  16416. var color = {
  16417. primary: '#3c9cff',
  16418. info: '#909399',
  16419. default: '#909399',
  16420. warning: '#f9ae3d',
  16421. error: '#f56c6c',
  16422. success: '#5ac725',
  16423. mainColor: '#303133',
  16424. contentColor: '#606266',
  16425. tipsColor: '#909399',
  16426. lightColor: '#c0c4cc',
  16427. borderColor: '#e4e7ed'
  16428. };
  16429. var _default = color;
  16430. exports.default = _default;
  16431. /***/ }),
  16432. /* 118 */
  16433. /*!********************************************************************************!*\
  16434. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/noNetwork.js ***!
  16435. \********************************************************************************/
  16436. /*! no static exports found */
  16437. /***/ (function(module, exports, __webpack_require__) {
  16438. "use strict";
  16439. Object.defineProperty(exports, "__esModule", {
  16440. value: true
  16441. });
  16442. exports.default = void 0;
  16443. /*
  16444. * @Author : LQ
  16445. * @Description :
  16446. * @version : 1.0
  16447. * @Date : 2021-08-20 16:44:21
  16448. * @LastAuthor : LQ
  16449. * @lastTime : 2021-08-20 17:16:39
  16450. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noNetwork.js
  16451. */
  16452. var _default = {
  16453. // noNetwork
  16454. noNetwork: {
  16455. tips: '哎呀,网络信号丢失',
  16456. zIndex: '',
  16457. image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABLKADAAQAAAABAAABLAAAAADYYILnAABAAElEQVR4Ae29CZhkV3kefNeq6m2W7tn3nl0aCbHIAgmQPGB+sLCNzSID9g9PYrAf57d/+4+DiW0cy8QBJ06c2In/PLFDHJ78+MGCGNsYgyxwIwktwEijAc1ohtmnZ+2Z7p5eq6vu9r/vuXWrq25VdVV1V3dXVX9Hmj73nv285963vvOd75yraeIEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQaD8E9PbrkvRopSMwMBBYRs+5O/yJS68cPnzYXel4tFP/jXbqjPRFEAiCQNe6Bw/6gdFn9Oy9Q90LLG2DgBBW2wyldIQIPPPCte2a5q3jtR+4ff/4wuBuXotrDwSEsNpjHKUXQODppy+udYJMEUEZgbd94DvnNwlA7YGAEFZ7jOOK78Xp06eTTkq7sxwQhmXuf/754VXl4iSstRAQwmqt8ZLWlkHg0UcD49qYfUjXfLtMtOZ7npExJu4iqZWLl7DWQUAIq3XGSlpaAYHD77q8xwuCOSUoXw8Sl0eMux977DGzQjES3AIICGG1wCBJEysj8PXnz230XXdr5RQFMYbRvWnv6w8UhMhliyGwYghr4Pjg3oEXL34ey9zyC9tiD2ml5h47dr1LN7S6CMjz/A3PvHh1Z6UyJby5EVgRhKUe7Kz/JU0LfvrJo5f+Y3MPibSuFgQGBgasYSd9l6GDsup0WS/T/9RTp9fXmU2SNwECdQ92E7S57iaMeJnPQLK6ixkDLfjlb7546RfrLkQyNBcC3dsP6oHWMd9G+V3JgwPHh7rnm1/yLQ8CbU9Y33zp0j+nZFUMb/DHmB7+SHGY3LUKAk8cObtD00xlHDrfNge+Z2ozU3c9dvx4Yr5lSL6lR6CtCWvg6OAPw9z538ZhhZRl6XrwhW8du1KX/iNejtwvPQIDR8+vSRqJ/obU7GupjdNdh2gW0ZDypJBFR6BtB2rg2OVtuub9JcmpHIpBoK1xfffLzx4f7C0XL2HNiYDp6bs9z23Ypn1fC1Y/9PCFDc3ZW2lVHIG2JKzTp4Ok7nv/G6Q054MIvda+bNb74pEgKGtwGAdL7pcfAa8vOKEZ2kyjWuLr7uDh+/qvN6o8KWdxEWhLwroyeek/g4zuqwU6kNrhyZcu/UktaSXN8iNwuL9/RuvVXtJ9PbPQ1vhmcP6t9+47u9ByJP/SIdB2hDVw9MJHQFYfrQdCph84evFX68kjaZcPAZJWwjMXRFpJ2zr91tfuvrh8vZCa54NA2xGWrunvmg8QWCJ/N4ir7fCYDxatkOeBB7an501agXbygVdvv9IK/ZQ2FiPQdi9osGbH+zRNf7y4m9Xu9Me7N9nv0HXdr5ZS4psHgXpJC9P/wDRTx0Vn1TxjWG9LGrbaUm/Fi5meSvcrkxf/Cg/ow9XqAUk91v3qHT97r6471dJKfHMi8Oyzgx1Z03t1YAQVT2MwgsC3u+yXHzi0faQ5eyGtqgWBtpOw2Ol9+/TM+sTOn8L08MtzgQCy+tOHXr3jA0JWc6HU/HF5Scssr4jXcYqfP6V/T8iq+ceyWgvbUsKKOn38eJAYyl56TAuCEr2WYei//9Crd/5GlFb81kdASVopSFrerKRlaoZj9HR+700H10+0fg+lB21NWBxe2lhNHsUpDZr27mi4dV379R9+za4/iO7Fbx8ECknLCPTsTDJ17O33bJpqnx6u7J60PWFxeAcCbMV56dJfQKf1bkMLfuGh1+76zMoe9vbuPUnLsb2DtmOe5HSxvXsrvWtLBEhaTx29+Ma27Jx0ShAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQaEsEVoQdVluO3BJ06ptHL34b1XRjp4Ch6Rq24+kmjG4Nwwg+9uA9u/73EjRBqhAEihAoe3xwUQq5WTYEzp0b3ZnV/Ncf6O/9AvY9wlh/6dy3X7ncN512Zw9BVLXjuAP4np44vnQtkZoEgVkEhLBmsWiKqwsXpjbPBOn3gRfenwnc+7GBe+zsjclvonFDS9nA9Iy/u3x9+vAP3735VPk4CRUEFhcBIazFxbfm0k9fHD7k+v4nQFaPQIrx8Gmyx/GJ0J/t7ez7mw0b9MmaC2pQQgh0/ZSm4g5TwueWWtqLt0HuVy4CQljLPPYnB0depTn+b3t+8B4t0AdBUv93h2H9xc6da0aXs2m+r1WQsLRnl7NdUvfKRkAIa5nG//r1oGtsZvjTgev/kqYHF/TA+AXoqv4npJemOEiQU1Eo2l+G0movBK1UBBPU7s9E1+ILAkuNgKwSLjXiqO/khVtvARH8dxDBRkMzPrF/V+9/BlG5y9CUqlXinHv9mRPXtvuus88L9H3JPv2zD2yXExCqAicJBIFWRwAvv3Xqwq0/Pnn+lv/K+ZvfPH3p9p5W75O0fxaBp793ce3AwIDMWmYhafiVgNtwSMsXeHp4eNXJC8Nf0PAdRCiuf/XgrnWUqsqotcvnl9DmRkCdweX4b9N7+m/ih+mbMraLM14yJVwcXItKpT1VRve+ArC3Qqn+3gM7132jKEGZm6tXg86J7OhDfuA/iHwPUpfUZSfu2L59tXxEoQxeyxkEgjKeOnLxHb4RqC+NY5H3+2953d4XlrNN7Vq3ENYij+yZwbG9jpt9GkBPQ5H9zgP9607OVeWp87cOQtn9zwJf+xDMNFfj+jryPqXpxj8c2Nn7P+SXey70lidu4IXzb0DNB4tr9751+HV7zxSHyd1CERDCWiiCc+QPjUCnsaqmZ62O5IN7N/VUNP48ee7mAZDTf4Tt049iUG4Guv4ZfNLos9UIbo7qJWoJEHjy+bP7fNsoOcnW0A0/aacef8PdG28sQTNWTBVCWIs01OfPj66BpfqTmq732UnjgT1bei+Vq4pTv7HM8Ceg2/o1qLQug7T+FaaM3IqTLZdewpoHgYEjV9fphvOj+OShWa5V+CxvZtpzv/LwG/aNl4uXsPoRwI+4uEYjAJ2GmdG8L0FK2mYa+tsrkdXZy+P7x2ZuHdW14P+BLdank9q6Qwd3rf+ckFWjR6Tx5Q2cP58K9Jm3VCIr1ogt48lO237r3//96YofeG18y9q7RFklXITxPXV+5DchKb3ZDMy37Nu5tuxG4R9cHH6b42QfAzlds+3EPXu2rfrBIjRFilwkBIIR7SHoJDurFU89ZOd680Gke6JaWomvjoBIWNUxqivFD87fej0e0n8Fwvr0/t1rnyqX+QfnRz7g+8FX8Rv8vL3auF/IqhxKzR2WCPxXqKeq3krDTdj2ierpJEUtCIgOqxaUakwzNBR0D09yiqePHOjveyOkpxLr9VMXb73V97S/h3nDXx7Y2fdPkAYbncW1IgIDxy5vM7LZt/hgrnLtxyaBrJNxv/72N+6tuNhSLp+EVUZACKsyNnXHvHL+1qcgNf2KbSXu2bt9dcmS9qlzo/fARgcmCtpzB3b1/Vg5QiuslLowENyDWDn8cSjl98PgdBviu03N+rl9/WufLEwr18uDwLdevLTF1YK3xnVZ2HI1bUxrT7z5zTuXdRP78qCyeLUKYTUI25OXbm4JPO00TBj+6I7+db8ZL3ZwMOiYdG4dA1lN9HWte2iuI2NAVPapC8O/CGPR34Ip/AZIbIMo7yX8G9QMbcS09P+2b1vf5XgdrXaPfiYns9oeLLEd8D1/B7Dp0E1jGP042pXQj7RKf546cmGzp+tv1TRf6YQD35/QO3seP3xow5IfC9QqmM23naJ0ny9ysXwgq98BWc0kVhv/Nhalbqe8kd/Fr8MOSEr3zEVWrwyO3I29hl+E9LUHGf+nAXI6sGPdd8uV2YphIKnE5IyL6bLxk7cn3bdkHHefrpvJAExMZ1uBZmqeNzXtfzUzk/m/ens7LjV7Px+8d9e1579/44l0duZtge+Np5zEEw8c2pBu9na3YvtEwmrAqNE8IZvNHsep5//yjl3r/0O8yFOXbv0QCO05gP0JGIL+fjw+uj91YeRh/Dp/PtCDM7Zpfmjvjt6Xo7hW9ycmJjaYduf7Hdf/8HTGfa3rG9rYxLSWnsloPg7fijZV8oFM2Ja2a9t6EJd7bCztvHP7us4rrdD/r3/7ct9I99jEI4cOiQ3dIg2YEFYDgOUJDFj1e8TqX7cT4kImXuQr5279A4DeBEX8ayvprU4N3rovcALot/TH13T0fXDTJn0qXk4r3k9OTm4y7a6PzjjORzOOvn1kbEqbnEprPhRzwAKzwFLHk05hv6Yd6N+o3R6beG50aPSdr3qV6IJKkVp5ITIlXOCYn4Yexr0w/DO6YXymHFlR0e5r7tsM3fxgJbI6fW1ivTeT+SsYmr54cFff+5Cu5X+hb94Merp6/J/PusGvTE6724eGJ7RpSFOkKPCUZvBPBccoHBet3Rwe13rX9tw/PjXzZ5hKvr8SfhWKkeA2REAIa4GD6p0feRdWBnvxjv2PckVhVfBf4A29uG/X2i+Ui2eYn8n8NryuDr3jPfWSFV5k44UT137eshIP2K7/64cObbheqZ6lCp+Ydt8TBO7vTM5od1+/NR4SFVhoLpKKt410lnE8LTMzo3V2dLznxLkhYgQ9obiVjEDln7mVjEodfYcpw+MAsftg/7qSDbAnb97sCSb0Yei2fqOcbovVqKNnNO8HmAE9Cv3Wp+uoWjt27HpXNqH9WTKR+kBHKqEFbvo5y3N/avfu4g23R45f3WGa1k9ZicTd0zPTf/f6O7f8dT311Jp2fHzmgJlI/N70jPPe4bEZ6Kg4qw0lqlrLiNKBiLWerpTW25PUbkPXZViW62ecHz+4d8PXojTirzwEyhq8rTwYFtRjvpX/rlwJ+iSXugPbMuyKBOHo3geRJtuT7PujcmVUCuPJlhnL/9NUqvMD2eyM5sxMaIlE4n7XML907tyNjcxHQjty4sZv66Z1xEok/xNW5n4uZSf+8sT5m++vVO58wkEu5sR09pd9w/rWyET2vReujiqygrSopn/zKZN5qMeirotKeTyolm7p/+X06Wvr51ue5Gt9BISwFjiGsLl6N6SrvylXDNTK70D4mX071pwtF88w6Jd/DG/1E1u26NOV0pQL71y3/8PJVOcHMzPTWkcCH2YGOaTTaS2RTN6f1fQvvvDK1bdnbO2JZCr1SeRfn05Pa1PTU0gXJBKW+ecnzlxvCGndhFQ1NRP8bcY1/vjS9bF1V26MwHwsVKiXa3etYVw1TNhYJ3TDjQCO42jJVMcez7J+t9YyJF37ISCEtahjGjxkGDr2DJZ31D8h5vUQJL5RPkXlUMM07u3qSGidICvkzzuSlmlZb0olrK9hD9v9JCrPC196JoPMAolFg6CV+PPj54YeyWecx8Vk2v1Q0rSfhFT18LnBmzBRyNalp5qrSuq7kiAsh4SFa7oZ9M0wzI+cPHOjZPo9V1kS1z4ICGEt4lhiCvZrSa2jol7qzPXJPk6nIGbVbWfUvcr7hO9MP97ZVXpggOu6ajplYStj7l1XvbRMXbPAbp6HzSSBlkraNknrvfVCcPt2sHYi7f3pTDb47KUbYxuvKqkKpYBXKBnV869c3WgbDEixAck0FGFFfEzJzbIsO9C1TyrcymWWsLZGIHoW2rqTzdo5dXyykz0NC8l779i5vu4zwM+eHVntGP5jqVTq/6AkVc5NZ3wNH2lVxNWZNIukMSjiNd9z0+CHp5DXAdX4SAg203w8GB5IATtODHzdK8C15kEjhXvNS9rWA11dnfcMDY9prscss48RySakrOLWqODCoIKAgkuVgsS0urtD60haeV1YYVbbtjUn6/74HXvW/11huFy3PwKzT1r797Upe3jq4sib9u9Y+wxe+vh7W1N7jx49v6ZzbffnQD4/Cj1Pfjx54XiBls6GVuTUc9mQsOIO9mPQFdkIRlz4fy5JLm2ZMOqTcJaXIqpcqnixVe+rdbZ3dbc2OT0D0wZIibHSksmklslknvx+//q3PiKnXcTQae/b+LPQ3r1t0969cOL6G7o6E09qgZegdMJBpVQ1DbKCpyUt6oPKz/4NEJalCAuZFIuEVBJd+jgLh4rvAiFqUVGkhJZMWFp3Z0obGSu/d5gSnWmavuO6h+/cvYHSobgVgoAYjrb4QPMUiGtj1/79jBMkLBwiTlMASlYzTkhWCJyTrGAyMOFkst/BoYMmuIIyGJYcMXMMdNwHPhYN1qWS1t6ZLGaKZL8yzFXTr15BooLLMugHMBRNKgW+It8y9TEcJGt4rvcRFCCEVQbFdg0Swmrxkb0+cf2XOzq73kgdFieEXF2jdEUJKQH6SVWQrNjtZDKlpTPp38U58iUbthk/Ph7sN6zg/xudSGvD4xkq6otcnnjyF0XRRTflkyC0IIJE1JG0QbqGNpMNp5xFhRTcZDNoj66988SFm5vv3LX+WkGUXLYxAuXnCW3c4XbqGs9hwjv+a9lsuN+ahOJSCoLjNDAFvVUll0p1aNPp6adTweSflEszPO48oFn+4yOTmR+6enOshKyYhzWpf/jDuuf6x2aV/qNRaPG/1d0gUXWCA0uu7GhMmkqmerEc8KOVU0lMuyFQ+Ylut562YX9Sncmf7Ojo3BDZWbGLtMkiUVXSWTFNuMqWuYG530f7+/tnGFboxsfdd9mm8XdDo9O7rg6NFq0CFqZr5DWlK9qV0fZqGvZchSuPlevB2VmG/hOV4yWm3RAQwmrhEcW64qu4ykfJho52Vp3J8quBYQooqWDKADftBd6HD+5efyoKj/zR8ew/hWXY56/cnFh7a3RCTTGjuMX0SVB9qzu1qfQM+jO3dBW1g6uVSHv/qVNX10Vh4rc3AkJYLTy+WA/8ou9kJjo7bOh+DLVFZ64TEbCyBktxI5PJZj56R//Gx+NdH5vM4vuI+p8NXh9LjU1iw3EZhXc8TyPuuV9wDaaCfBjTM06N0hVWQmHBDzvSDZ5tvqYR7ZAymh8BIazmH6OKLbzv0KZvJEz3ZzEFnEolaEtV2XEaCLKadrIz//TQnk1/EU85NuH8th8Yf4j9gMZUOrNkZEVZCnsbtTU9KW18GqcKFyjh420sd2+j33pg3F8uTsLaDwEhrBYf04O7N/2t7/o/C2FoGnsIy/YGlvAwSfCvZzLOe+8oR1ZT3u/5uvHJC9dGtJlMrfqjslXVHwjpat2aLi2rjFFLjUSrFUjlO0juddXSSXx7ICCE1QbjiHO0/hofbPgwpnDTOR2V6hWNQqGUx34890noet5yaO+Gko3Y45PO7/uB/lvnrwxrWdha1absbgxo1FWtwplXqYSJY5Nn5lU3bLHQmGA/yko0plVSSjMjIITVzKNTR9sO7dv8RSeb/T9BWmMkKv4D+YzBXuljV7yxd+zfte6VeHGKrHTz4+cv38JWmyUmKzSGG5z7VndoE7kz3uPtq+Welvhwm39weVjOyaoFsBZPI4TV4gNY2Pw79mz8KyebeRIH+VEZTaX0sf27+v794TKmCxNTzr/2NOPj5wZBVjjdYSklq6jN69dyKuhqmWztivYob+RTSkPbe/xMdlMUJn77IiCE1W5jq+s4dYEO6mzsYAmvi/+CrH7LDYxPcBq4HGTFVcG1ULLT5orS1ULIkoSFI2cMHKG8obiXcteOCAhhtdmo6gaOh4EWWlkyYU9gvHswXfgV19d/7+LVkSWfBrItJJhObL/p7elQR8fUZnEV70XxPc01sM+xrzhU7toRgZIHuh07uZL6xA3LBaYB+Ar8rBsfz34YX1j+D5eu317QNGy2xPquSE4mDuXb2IujY2AgytNE67RiKFshzuwCR5s9ZSMlsK0QEMJqq+GkBKOF5yFzRoidK5BoFCeMjM/8mG+a//Xy0Li55KYLBRiTrGjwOQ1br4VMBQuKVJeQKVPxMLlvPwSEsNpsTEECmBLSgbHUpwD1YGwse59l2p+9fmuig4fiNZIowrqq/6Xeqm9Vh9JbjcOKvqFtACX7gV8kTVZvkaRoRQSEsFpx1OZoM2iKxxuHLtDcsZlgLzYZfv7m7XSv+r7fIm234XSP/8o5ktWqzqSyZr89PoXPYDTYkZvziw0NLluKayoEyq4iNVULpTF1IaDjHHZmoAW4aep9geN8fiLt998cGYdtVp7K6iqzXGJFUCAi7jdkuapsBJKcPBwgyP8YRyV7B04Q3dDbpY3jg6gupoMNla5U41BbUN9n0sr1ScKaHwEhrOYfo7paCAW0WiWknihhW/0Tabf/6tDtxpIVSIhGnz1dSXUkDL8fSHKi4/lWPId9Kp3Vxqegp8J/m9f14D6DQ/nmb281FwgkZ1Dj7bnSSFx7ICCE1R7jmO8FJJr8jCvjeNrIxFjDJBpKVaSlXhwDw384MyucBoLAGEfHI5ptO6n1YAq4FjorH9IWjUOnFlF3pj62aui3whbI33ZGQAir/UY3XCVEvzgdw/8NcSyGUhSlpVWQrFg2p39xp0JYLyIohaXxdZ2FGofG6yi85/QS32F0Asu8URgu1+2JgCjd22xcsVElPC85169Gaa1YTkRWJKpSqooBiQQzONvq9sRULKKxtzzAEJw1api2EFZjoW3K0oSwmnJY5tcoSD09HanEDztubnfO/IopyUWC6sUmZUpW5aSqkgwgK04DxxaZrFivacCaIdAuH9zaM1rSDgloOwSEsNpoSMenvU93dXb+EE5taFivKElRqd67qrNmsqIF+yjMF/i56MV2JqadYKxXMDXM6+4Wu04pf/kQEMJaPuwbWvPticwj4Il/NnTrdl7JrqaDC5wTUle1GmdWWVCw1+JotjA6PgnThsIdQrXknF8arkJi/+R355dbcrUaArU9ha3WqxXW3tHR9C5dN//T9eEJ3aGdUwP7T0V7F86Mr0VW4mF6o2NTS/ilaB2HDmb8wA2+08AuS1FNjIAQVhMPTi1NgwRkGKbxRxMz3uaJSRzVUkumOtLwo6Zc7aOkVdEhynN9NQ1cyuNqeEqD67mX9TXGyxXbJhFthYAQVosP58S0909czfqJqzdGODVqaG/IUbCWr2p0yukfp4FUtDfeir1yl8IPUGjPHFy/fqJyKolpJwSEsFp4NEfT6Z3YBvOp8MvMc0hAi9hHNQ1cBrJil5TUZxhfXsTuSdFNhoAQVpMNSD3NMTzzU1PZYAM/ProYkg3UV5rHT8lXmA7SwnwEq4FLLVkRI04HM+n0LdvzvlEPZpK2tREQwmrR8ZucCd7hePr7rw2N5PfxLUZXON1zHKz4kb0KnIttP6Njk8tyaimbwXPrsW/yq3v3bhoqaJZctjkCQlgtOMCYCnU4GedTI+NpQ32XbxH7QOmKG5nzdIWZJz8HNkKygqI9TmSL2JSiovGVn0A39c8WBcpN2yMghNWCQ4zPc0HRbr6GEs6chJFnmfl3knZO4/hmII1B6fiFG9br0s6qAeXPp2WUrhzHeXH/jr6n5pNf8rQuAkJYLTZ2kK7Wul7w6zeGx9DyUsZovOodOizosTg1TM9k1Wogpa7lIisOF+w48E/7E5B1Y/cgtdizsBKbK6c1tNioT6X9n3MDcyePOo7OoJqrC6S0+ZIYV+GSOHxvc18PJCxXG4ed13I727axqTp9yk9rX1jutkj9S4+ASFhLj/m8axwdDdbgELxfGsLpoZyqVXPVU1QugVJUV0dC27p+FaaBWWxknq6ceAljTNMiAf/BoUMbJpewWqmqSRAQCatJBqKWZpgJ731Zx9pJM4aK0hXe5vlKVFEbKFlxs3PvqpSSqpbzKztRm+gnEkktnU6/2GFMfa4wXK5XDgJCWC0y1iAR6/Z49iOjY7C5qkG6mk+3SFQGlEP8FFdnygrNFqBsn1OxP5+K5pGHbcBhqhT8fqu/v39mHkVIljZAQAirRQYx7Wj3Zj3tddQjVVJ4l50CMjHe8mqOTJCCvmoTyIrENXx7Uinbm4Gs2PZUqkObnp76i0N7N36tWl8kvn0RaGnCGhgILKPn3B3+xKVXDh8+nPseX3sOlpt13+P4uonv71WeDqLr1ampFB8S1JrulNaHc9rTMxltcpofOeWns0rTLkeIZUHRnpm5YibMf7kc9UudzYNAyyrd8ZLpWvfgQT8w+oyevXeo++bBtaEtQd9s1/ffRsV3I6eDJCp+nourgH04UZQnhIYfWm1o8xdUGCU8/E/bil89sH3dlQUVJplbHoGWJaxnXri2HTvd1nEEcCBS3z++MLi75UejQgcmJjL92ax/gNJPo6QekhVXAbdvXI3D+XQ1Bcxiu02zTAEjKFIdHTQS/S8Hd2/4YhQm/spFoCUJ6+mnL651gkwRQRmBt33gO+c3teNQYin/oG6aKX5rcKEukqqoWN+Ij5vy81v8UATDG0WGC21jlJ96K6wKPpWd8H8jChN/ZSPQcoR1+vTppJPS7iw3bIZl7n/++eFV5eJaOczX9Z2YvM1LPxWpocBHKv8qHHdMqSphGUqqahaThfj40ITBcbLnsDj6oXvu2bS4n96JVy73TYtASxHWo48GxrUx+5Cu+XY5RH3PMzLGxF0ktXLxrRoGNVPPfNtOolIrgElLGYH2wbZqcipdIFVFlDbfGhqfj9bskCaHHS/7gTt3r73Y+BqkxFZFoKUI6/C7Lu/Bl1jmlKB8PUhcHjHufuyxx/g5lbZw+BL7bX4EoiZqyS0T0uM0j1+82QSl+ua+bhxj7GjD2LicwWkLzaarigbKsmDJ7gcTmezMBw/t3ixntUfAiK8QaBmzhq8/f26j77pbaxo3w+jetPf1B5D2RE3pmzyR4/nH+Mti4Wx1dUrCHO0lSVGqskFUnakkpn6mhu086jgYHkWTW3Wbo4Tli6L5gqYHE47vfeDufVv+YflaIjU3KwItIWEdO3a9Szc0ElDNDqcLbHjmxas7a87QxAnX9ljfxcr+Mzs29ykpi1O8iJjoR/cm5o7dnUl89LRLW93dyWmVIip+Kp7pmlWqIvQ8Mga9Gslm3Efu3LX+K008HNK0ZUSgplnGMrZPGxgYsIKeXa/TA61jPu0w0+7xBx/cd3M+eZspD0wbDgWm+RXP13cODY/jWGKuGAb48jG+agNpilbqlKZoWDqDY2AyjtNUlupzYZlKpXgaxIVMNv0zd+/d+uxcaSVuZSPQ/IT13TN34QRvZW81n6HSDdMLUqmjh9tgd//Fi8OHEl3JL3Z2dh3MzGA7XU664llVWRz/QhLjNYmsmaWp/DjCjqIDdlaZTOZZ1/A+fGj7hjP5OLkQBMog0NSE9cSRszuswNhdpt31BRnazM3U9IuPHDrUuG+419eChqU+cvzqjp7u5P9KJpMPpqc51Zv9QntLkFQBEqZluVCw/7nhaP9i376+8YIouRQEyiLQtIQ1cPT8GjOw7vE8tyFtxBrb2MBXdh579FF99g0vC0nzB548ebNHT2l/aFmJj1BPBYyav9EFLaQ+jdPAVNL8/pZ13a8qiJLLOhAAjvrTRy/d0enbF+69d0tzHFhWR/vnk7Rple6mp+9uFFkRGF8LVj/08IUN8wGp2fIcPLh+4sCu9R+F3ucj0MLf4vaVVnChqYWmdaQS2jpY2vd0djh86Vqh7c3Yxm8dudTPxaW0lrn7yJEjZW0Tm7HdC2lT0xKW1xecgHE3FDWNcb7uDh6+r/96Y0prjlIO7ur7TOD5b3ayzt9ylY0Gl83qKFXZsCXrXdOlrV3djf2LBr556JOshLDmMWhPPXV6vav5O5jVxYLUhNl3iIbV8yiqpbI0bQcP85C2Xu0l3dczC0XUN4Pzb71339mFltOM+Q/0rzu5f2fvu1zH+QDOt3uZ0pbVRMRFouJK5qqeTkhVqyBdtdUmhGV5JI4cudrpd5kHiyp3tTU/8s6r+4rC2vCmaQmLWJO0Ep65INJK2tbpt75298U2HLuiLh3oX/95L+0/kHUyvwTieiUJHVEimVzy1UKeWMqv2pCoKEVFRNXT1aHawnBx80eAZj7TwcxdAc5Gi5fiaNnNT37nCk4xaV/X1IRF2B94YHt63qQVaCcfePX2K+07fMU9U7qtHev+xE/7r3cc70O+6w1gxuV0dHZiusgvJS/O7IskRXLs6KCxqj+B26t9a3uUREWi4plbQlTFYzXvu+7tB3EIUGel/L6e3TNw5NS8zYAqldss4YvzBC9C7559drAja3qvDoyg6pwCP+KBZaVOPPjazS1vMLpQKE9fuPnawDB+EqehPwzWuAuSl8LPg90WVxhJJPWQCUmPBAWTBEz1TFUGpqO3wYYvIPgr2az35a2b1/50V6f1e1NTlVcvEzB0xRekj67usu5FmS2/crvQcaol/zeeObfTSOj91dIq28PxiaOHDx9quy8LtQxhcZBqIS0Dhkl2l/3yA4e2j1Qb2JUUD1Iyz1waOQib0vsxKXsAFvH3wMB0JySwtZC+DBPTN5BOCEnhrI1BuKe9l6tIzsVCiD6E0DOabrwI2elZ09aP7N3aNxjheXvK+a1OENa0EFYEyYL9rz072Ju03ZpNQKj7Xd899cKhNrA9LASvZTY/s9GcHoK0XsrakLS8UklLxyl+/rj+/Qfu2367sJNyTS7SuZfneO7ffweBGScu3NwAqWgrTvTc5jjBZmw87tMCfRXYKQWOgula4OiBOQUZ7DZuhrAGdQXxV0zPuCaGnkv3VPGHOpPw7+QPR62OM5HhdNddGOeX2kmCbSnC4mDlSStVTFr4eLljdHV+702vWz9R66Cu5HS5h5hmHvz3QiOxwJTRo2BGgY06dm7OVhewYGAY6s75oD+ZDs4JPY9JyqSCQ7ABqftd5VFM3/j2Ja4mtsWpJQSq6ZXu5UZTKeJnsHpohiYPRqBn04nkS2+CQWW59BK2dAjwS0Y4IHDz2ERWG8Gnwm7iK9W3sFmbvrqGPzw6gW8eTmvTM07XmTPX28KYd7EQ3rjnvv1QFHbPt3zT9DcMPHd+13zzN1s+/hC2rKOo7NjeQdsxT5LEWrYjbdLw05eHtwWe9jl0542u62HZHZIVpalY/yIlP5X3MHYddLLZfy4fmYiBhNuB509vw+rG3tKY+kOwGHLi7W/cS91jS7v4s9TSnZHGLx8CICH9lXNDX+zpWfXuycnaBV2e3e567nAm4973qv0bzy1fD5qr5oEB7KXt0u7B3Loh7yhWVfypbOalh9+wr6U3mbfklLC5Hi1pDRE4ef7Wj+EEiZ+amqpvJT2bzWjJRLIPR3n9riA5i4DZg720DSIrlsrvHXSZ9p7ZGlrzSgirNcetqVp9/vz5FJTqj6JRejTdq6eBMzNpHP9s//QrF4bvrydfO6f1JrCX1mvcXlo98Kembjotr3wXwmrnp36J+pYNeh5JdqRem83O77gxkpxtW3bgOZ/g1HKJmt3U1Rw+3D+zrc89aunagnWzpq6PdxujLz388L4F78tdbtCEsJZ7BFq8/sHBoMPX/I9hyrGgnuDUUZzrnnz7yQu3HlxQQW2Ued++fZmJ1e5LoPB5k5ZpWCPXz+08du+99zrtAI0QVjuM4jL2YcIZeh+2+9wF49MFtYJSlgmHE0g/JlLWLJQPg7RmhtyXsJ18eja0tivsXhj6xy9ve/mRR5TRcG2ZmjyViN9NPkDN3Dz1FW5z9XM4i+s1ME1YcFNpUIrVLHzJzHnwjl0bn1twgW1UwPHjxxPXpztejR0HFTc+F3YXRwxdfdM9W08D0zrs4wtLaM5rkbCac1xaolWOvurhZIPIih0OdVm2haNTfqUlAFjCRnJP4HBn+iUqz6tVa2nGpTe/etsP2o2s2G8hrGqjL/FlEQC5GHghfplSUSMdvwaEA/9+4vjpa3c2stx2KIsfUek2dr+EuXNF2xEjSJx98w/tbFt7NiGsdniSl6EPp84O3W/Z1oPzXRms1GRKWdCJdeCIlJ+vlGYlh997r+70+EPH8NHJEtLCauCph+7bmj81ox1xEsJqx1Fdij4Zxi9AT2KSYBrtslgxhOD2gWOyz7AstFzx6zFHj1mGobYUYAgC9cHge3ddK5uhjQKFsNpoMJeqK6+8cm0X6noXiWUxHA8WxAdWNyQM45HFKL8dyiRpueM7jllmMGpnjO+1w9fNaxmXxiogaqlR0jQdAkeOBPjczrnOiQ6jw88ESSOA6KT7iQzOHEvavu1pZsLQg4QPP/DdZG9Xx/vWrOr+mfR03SvtNffdxleAQIgvTzjBT0w409Mpu2faufZy+vDhw5WPMa25dEnYqggIYbXqyNXY7i/jCyvdfmaVb5hdVsLp9LJGp43j1/1A7/RdvdMwPRzEboRnLVHe9vEvL3eXBOB4ZMta22H+TiqV2LJQ26u5u6Bju44Z3J7O/Lvp6cwPmBanOwQ4uNHRTWMK21bSvh1Mm642nTWCtKkH07rnTE72aOO0XZq7bIltVQSEsFp15HLthg5J/+aJE12m3tVjOPYq1/dW4cTjHnwMYhXOce8xDd3y/PJW6OpMdsTRVy4iK/rKMR/jwvz825VIHFzT3fkx13UW/dnhRy3GJyeeHEs7n1XNibUPFvY6vtGDw5vV9w0Vofn81qGhZfDhi3HX8SfQ/3HPMse9CWcCX0gel2OIFJIt+2fRH7qWRaYJG85NxldGzV4tGayFSLQ24+q9ULyu9gJfMU5ELTn6wUISTl03NHz1KzyiJLqmX657OLLdSJgoXTO7cBxyN172blier4YCvBsFdSNXV2dC35tKJrbzfPfFdjwvC/qs9MSMxxNRsSqmT6LhUDQHE+jUBE7UnATXTuLsrRn01K2l/x6+qItiR3TNG8V59KNB0DGSfNXGUXwJY2Gm+osNhpSvEBDCasIHgVLTt75/aQ0MnXpBNb2QgNYEntfr4wu/nBYpKQLtxtdwAh0SBX3VDe7nM/Ha5vf1Fb/CURS2bCTAWWuxR229qRsbQQQbUed61LfW14JVKKsTJ5sk8WUcHbtlNANyTOhgcmAGKH7p3m1FWpqtuZCu+LByVdKHVMjpKEQrBwIW9tnpXOIH+QTDSH/D9f0bmCLewDn1I4HmwtAypPDZ/oe9oXKf/aMPsWxSs/RR13FHrURiZE1gDR86tKHEdCDMKX+XCwEhrOVCvqBeHNaW6ui11/mWDtLQ1kEiWodXE4rwYgepAPssTPCMOjIdAk94TZ8pMZjch8HjDorGFUTUAwlkh64be0A9/ZCatiDZWtOyE7ClQmIdJICJFYhA+TRV4Fo5/QIHiUvrTEbkVRCxiJfsSBbfYk87OTExXxdazY5yUgiRKfpHQ1YSkONmAZY+gV4NIeVFfCXoLNA5h/Plb5LzWAyzF+IVXdNnvO/6GcsyhjC1vmWZ7s2pO3fdOqzriy9asnJxZREoerDLppDAhiIAEtCfO3F5rW0a6z1PX4/nf53nG5RqqrpieSnULEVh8cx4E7ugH78H8tG9eP/24oVezY+pkpA8b/abhPF8le75BqdsXUtaFeaTlTI2IByEoU1l8oq1mkokcZHElIRoWmpejMMCMyCvQXyy7JjjuUcgOl4tLCzCMpTHgFpcgkViX/dH/ax2Szf8m2Yqc/MN+1r7BM/C/rfCtRDWEozSkbMjq7NTY5t13dqE6dhG3wsSqlp+C9DDi0ifLrqmT1f6BgUaPjiHN0lJAGAfvpWcI4XjiHIMF6ocO/EjmMa9HeelQ1LT1PRpoce/sJwOTCQtc+kfGQp6Uxl+9JWtmL+jNEaJ0gKBgbsygR58B4sHfwV5aliVWg3vCHv6ymHcdG868IzrVsK6pnd71+/dsmXxbD3m3/W2ybn0T1/bQFe5I8euX+9ybuqbXMPbDA7ZCKV4uMOecyz+9OfmWvj9x9zEw6JW+JuOX298WhE6qtwLEV3TL1tb/AWj7sqwfqaro/sdmcyM+vBp2XzzDEzaBiQsNH+e+eeTjQ+ohwqnG0BYhfVzNYKrkOmpyauYYH8KvD8G6RPBszrC6Jq+ystl0ghzXEZjR5+O4+iZwTh+eG7Yqa5rq/3hGzzTSkXKn4YgIITVABjBP+ZzP7i8ydasrZCetuCHvIvFRs92SEdlpnCYE2LOQi12OA7RNf1yjrphHIyE9yOXPnfNMDg70DpdTf8DWDKs5rRvMVwChAWrUgh21HzllD0NrigqlxKVC7bKQuOOWeGiuI7OTkhb6T8C/Xw3xkel9cXxj6eIxiY3Hhx3X9dHsWJwDaa3l1+zd9Mt/F4tUk/ijWnP+/DBb8++LWqvnh0c7NDGta0pO7kl6zpb8AJzEUr91kYEFdeBRCt69Nm4+AsSl6jwjVGckY6VwPwUpLhLURx9xliWvxFHi/w+zB0SWCnLsVpxnoXesSI2ngp4zmRJXPgf/0IleGH51R6uwjeX5MR76qtITh7+8N9Cp4GF7Sm8Zl1s35pVXVomm/5c1vG+Wm284njHJeJq44/FjixUAld8w7uijW6+xo3MhW2S6+oIVHumqpewglJ87+LFtcFUcqur+1vxwPcZJqYPMOyhXw6GKI4+4/GwQpjCBhe+6XDIpFb06PM+np5hhS5eXzw9bLJ2pBLGv4Fe36BU4kA6IQGw8MUY6MJywVeqDs54Z69zrWdY7jI3G1ZtUiSV6zzDI3IqLLew/wu9jspl+yywrA1pEed5QceXPT3jBb/DLrA5ua5UHZ/4eMTbFx+fwvE3DJO8fANrjlctL7giJhRx9MrfR89R+VgJ1Y6currONuwd0FNsxwtV02mPlWGLy1TxlPHf6Hh8PH9xesvw9yRM+5PIRT2ZIgVKKZxWUY/PT8aTFPji0i3m4Ed1hDWV/7uY9bNGtiGqAyorJRWSqCgdkrQiR5KddrwPlsq8xfhG6efvx8dvtiQczDdmmPaldDBxSVYeZ3GJXxUMWzxq5d4fPz7Ym7X1HTAL2A7NqtJHEQ3qtCPjw3LoxB/v+OMZ5VVzR5aHWRuErYA+y4uu6fM+Xl9J/lh7bFvbY+vmv0bWos9tsXAWSLIiaSnyApHxJz6SbFSFuXTw8i86r5vVRW1m+6IHmUREAuI0lcREP5q2ztWPrO9/YK54xsXHI56+cePvj3qBfimZNS+J5FWMcrjptThsRd4dPX9+DcwEd5iQphwozfkCwJKaLv9ewHYKeicfSudwShcnJDBBOD3MTwGRO0cqLIj73jQTaejDBYaPHTBgJ/i5+HyYijd95sFhRzkzB7yL2IrCtGwezj9nOQVTUlfPwiicifnu5J0qHHd8mXHIG6ZD7JQqIk9kJK6QwAokMWRUhMaSeJ0vcfaiXNhs7PyuwpYV51Vh+EM/Pu2M9GckpyiOuZm2Wvtom+Y4me8xPbvIIujzPu6Wbvyt1ejL3U7Sv/v754ZHsORwaX3KGdwiJhO5pzY+Mivk/urVq52jTnIXlEc78LKu8qAMx/G8kHhyOicosz0ovM3IrIDKb15HSvDoOoqv+hMLYCOWI8ash0vmufryZVcqLz4u8fym3ov1xT/EVp4UDUTn4/iS0xW+sZTMojASmLqGp64iH4FRXJQ2TKj+lv7JVRTVxwQkm9APyaboGnGMzSVR6VR87ipsVT645ovOzi5tamb6zzB1/nqzjz+s9YetwLioZW5C8jq08K9+1IxS8yQsfF6ap1WL2BK8VOaJc6NbPcPrx7wJ++hmHQUPvOaQgMJ3ETtVlERDP0wVsQ19uPgcLQyt/Dc+p4jlL6k/1xa2qVyh5ApEzEoErm/DsPOTXV3de6anq36roFyRdYWVbVSshHJEMt98saIXfIu9koplYZL6m/hUz7kS/Jt0/PE8+Jj6X/Y6k+fv2tA1BKIvB/OC8WnGAmp5dpqx3XW36fjgYK/upXbhFd+BrRlqn16MfkrspkoC4hnirYjbUVWzs4rHx8uL3cerjwt0TA4RcBcsuX8Rn97q54okVsCKJJ9YkSvy1gJR4aOtnAr6OJP+L13d+BKBKMEzHhAfgDh6yzD+vqHjTDDvYpAxLqwEfVdbE9bpIEi6V27tdLP+LnzPrWS/XrRTnz5d4e79+LNY7r4kP+Z7Jv7z1LyPL0B4Tb+ci9cXLy+eJ54e8Rw//rqqcUR+HOrgYVprJbBl5E2w63oI64J7k8mUDZLGhmAXs19ucVkxP8gKQu4ptCxbMy2TW3KAGI4u1P207ztH3CDx/7bL+Cdse8h1Zy5ev7Dp8uHD7blJuy0J69TV8XW6l92Dl3cbLG6g98idbhDgdANcY1ZY9o2N4mpNr96GRf1Da3Wui0RW69F1bWslvp81LD2xDTOGu9DhQzBc7AcYfYlkAqo6A6ozqHNBYJTESGitTGShsp0qQSxT4AcoPJQw0LBlEPhBFakHDjoLvY+XgVIyg7WK77tG8n9pvpHXBbXL+OMBd7FN6KLu+uf27esbX9RHdIkLbxvCGhgYsDb3v2a7obt7YHakpKmYiqgE2ioqJbzIOszXcSov/DAzRRNehyJKvPx4+igv/ZLKEaCkoZxUFMYXE1I8f7Xyq/UHp9CkAlfbCF3NdlhS7IQguA0N2wiJYy1ktC5IISb1Okr5jSYruy2SGlYkIkKLSC3yy/WrUWGzSnjaTUX/QEhYQuNewLCdwBFKRkpOuAfr4sBnwwfDg6B0MHagORhBHNqHw5WxTwYav6lAt/42MBLfrYZXHO9w3Ftr/B0Hp0pY+tkD29ddAz5ln8NGjddSlNPyhHV8aKjbzAS7Dd3egRcvgRHJWyrHASw9Pyp+vlSxEluH0jWAGQF9VVZMpxHVRZ/xSKQU4PR5Xy0+/sLQZCFS9DN/XKtSeh5WrL2x+sMyZv+W67+vwz5eC7oDx12rm9pakNg639B68XL3Qh+2Bm94DySxHhg0daBHSQhiCbyyyMS9SDi8RhEHyYP1qD9qak0S4VGn5VYrSTRKEkKHWYYiHuQmCYb/YKYLqS+3H5LYckxJmz6qhSYJ5yNgzgtuclESpncBfN8Fj3lgJdCSGpHcGECoxrouMoHjzO+4evLLMB1VKxJV8Wyj8Q80Ix043jnTu32hlTdkh08Yn7UWcnio9Qs3pzZm0lN7LCOxIdIZxbuQ1+lAVFFxJB7aMeUIiPkiPRPjo2v6dPF4FVjHnxi/oQK0Az/bymf5uI7ayGLj6eM63nrbF5VNXzV7nv3HViQL3JAEaSV1z0iBNJIgJBCYkSKJYbdjEiSHw7a0BI5s6QBBbINUswMUsQ6E11UojZGccA9dcZDBdQY+TgyFTgkiEKYyIBvstAQzIRk8cBJ+A2j4gZFDFWAqjAp3V5IhQYYwwUJ57ByS0QINzMYK8FyrRxt3KNbXb2qG/UVNT5wDyCt6/A0boGbdqzPA4tD21SPquWihPy1FWHjQzYs3xnZkM95ePIZd8RccBx1xez/UPowp46I4+uVcLD9/8Plq0Gfy6Jp+uez5uqPyY+UtNN5DuVQc06drpv4bIDXsjtsMpdkOSC79QK4Xog3PzwF4IBNCBiIhpBSpoE8jioqWaM2KCRuOqwLXgIQItKIe0lCYD/lZjoqgGIo0+J++SsmMKA8eqQ21qHuUh2PfzQHN6vgG6vVK8GfmQhcbr3Yff+AEi3rtdCtNF8u/eIWD2ATXx4Mg0XH1Vr/hm7sDQw8PvyvTrriKWocEE0C6oM/kJRJHrAykgj6WGlq+JUifu6YfS6pu4/UVa6AgQcXKi78ApekhcWFBwMstEkTX9MvVHw+Lt2ex+4+Pg62CxgsHEwZbAdgWIJfA+ICkfDRYtyAwWWB7Ay8F8VT/KB0bOJ4Gx/CQfUKSwZGrJJs8iZHYgB0zMB+zk8hopQ8hEcEog2ERASIBAOL5fIrVIKLxXKtzKPZLgZUckvGf+/nH5HsK0+Uz3316zeAjj3D23Lwu90w0ZwNpiZ72UnvwfO/AXIFnXfLBxLOsHn6yiLqmr3oQ04LHX9hq6TFHI6txrlYWkHj98UT1lh8vryR/rIKq6aO204drdP8hRWF3itmLUw42QnW1CSTSA2IAIXkWOBYKLWw8wjVqNkEaFqjFwLQNJhWI4ZiFoiq6QX0SbsEo6HMoWVFCYprwjw6FP65BXCSoXJwiOwpnFK9A6yiWkQhRDwA9XAfpwLS/AqnqSKP7jwapquiznXFXMn6x8Yg/X/HySvLHKqiaPlZfvf0H6BloAM/v3tpzHkJwUx59Uxb4GE5Lfnt2ZGS16SX3+F5mq4llfegtwnaSR6J5EC8hPUV6IDaS6aDnoZ5DpYe6AtdgOr4pyhXLNPH0KKCo/DDP7N+S+mI6qHzbQr7AbdgW+iylWn0l5cf6E29ftfSN6L9lGl04x30tOtMHklmLhxpClW9BL4S1T+i2uNPRp+0FflD0AN9A9LHnmHGBBfJCE3QL9ALiguoJqiu+64gDzWGIIAlhzhaSDsMV/yjJi3BxyY9khP9BXBSzEMY/AFORGMmM1yyKZfmm+ZKuJf4uMHV1THEj+o+S864E7zYd/8Dliqp2MamvPbt9uw4dY/M4DnXTuMuXx/scK9iHLcbryzfKwvOJBSGNPl10Tb8WV0xYyMFymDdXXv46Kq+ueChJQI4WlSUqf8StOf5CNdXqr9afxe8/Gm6AoLAqGKyCGLSG350ACFzKM2FvaeOseEhFOsjItdQ2S6wYYmkOdl2+CfLBvmpIV55vYY2Qn6uAxAWC40zbhxSmWArcQj0TSIiSU37mx0kgVesgLereOSz8E5EWJa6Qzyh1hZEcO7xY4Ct9WLfNvwa+5xA2h6uGP6vMPxMsZ8WNf0Gf+cOCw9usq51a5+kNG9Sn1IjJsjoO0LI7EpVra/vxhPdFs7JyjYriohlbTAKGxO1C6oJEljseOLqmTxfPX66OucJK66OUNzuDjK7p05UIbGwX25I/vrj4BYrnD0uZ/Rtvfzz9fPsPIkgkbL0DZNMFRVEHFEY2ZCBTcwMLdfCsCCVN4SwpE9YG+ARNgD24IDHYSYB1yNCYDkLRFoC8oOUG40AKQx5IYyAmlQ6SF7dDoSof0hbJiApzqLs43aPc5UG+AvVQ/4T7nGQFQiJ5kdbAkmgH2Sz0FaWB4gLrad22v4nmuvPt/yzCc1+V4t0e4z93r8PYwDCvNANxLSthkai0jmCf5+jq6y6Y4SkjTfoKprgWufj9Dg3AozBmiK7pl3H8WDH3u0YfLY6u6c/HVS2vSvsxoygyTF2q/qNenEyjJ5NJPYGPRidME1M1/JYqwyoNq32Ihu4J0z5M+WA2DoqwEI9wfmEaEhQJzPNsKNOh0jJwrfRVJqbnNOrC6IGwQFzgHiKrpCuq2kE+FizrMXWE7IWCEKemg7hSiimOQchNIC3EchqpHlBO95TshQThkwF5TL9k+Mm/MZLGzVo3AlQdLzagDle1vCYd/wU9/5Z5ZcyZPnNow/J8ZHZZCGtsbKw3rdn7nIzTx42o0WfP1cPKuYJ6XPFs5q7p8zmKx5v8cdcxDeMPOR1fj+gh4X10TV/dukiC+nJPeLy8eH1hrtm/UVvpKxcrP2oL/dlcs1eQ9PCeo73wGcp+R2Xyvlp74vH19B9EkoA2CYKUlcQqJCQj6vkoyBjh/IurcJiy4Zxy2FMptRBO7sK3kClR0UYUZAX+wMqfC1ICiYHMYBsKSQsSFKaAUEqZLoiK00ASFsgpN0UEUWE6yOkiiArE6NmUb91OWwAAEuNJREFUszCNxA0c/uBoF04W86YOarWQAYjGmHBBEIkUiXEqib025hNmInWknv6zKo77Sh3/RvcfSx5Xl4O4yr5Y7NxiuEEQFT4uvs8yrF5VvosX28LLS185vsiRHkc9YPiJtrCbJIzHyx3gJdfpl80flZWPR6qIxJghus7xjSqj4E9UNn2VvN76Csqq6XIR+48OYEeGlcAaXhLfQwxNQcgQEI9IErOOxBUuCuDLz9Arm5iyOTaYy7Jty8hAb2VCm43ZmwnwQTbgFpAWyA4SGEKhaMdgYNpngKAcpeMCAfFjYGE4yAqco3RZ0LorUqOkxVkf6AgzvFBPFbISSsOUD+WRrWijpcwbmI4Gomj4yxAIv4bPVU+q9sfxk/EP36UlfP49N3vNWr/m9CZdX/zzjDDofAoW3XHVr9NPHdB8p2+uORl/mjFLUktMbBTtkSJbpLCRxYyD5OpJps/4+DJuvq5IIgoLqfi3pLzcRuloM7QSzKImsBSWG80LVKkxkSvOkFHaCjL5QvrPN9rwvaSVtEg2ICmQCNRQkGjwnlOpNktMxdds+GxcRFrIyCmhTQMEUJjl4qwtzPbAOVC8o0DUZroGiMmBpEUfRBZ4DvRUJC4/1GOpij1ML9XU0PJdFxIZGsOpJkkOQ0YdFh5CPodKl0WfRqQkVUhTIEf1iN4GkdJU4Rx/xsJfHkpfMv4cd+IAUJb1+YdkfSU7NXp6+/bti7qquKiEdfVq0Gl2TO2DonYzAcUTCv0slCB8FuGia/q8j7iAPl30aNIPHVKq55w+00MvjFLo05WmV8H5P9XLzydVF/H0xbGl9UGfjm226B98po2u6fO+0f3H9M7SbT1h+FoS00ybSmm+5/RZHxzbwWvVHtSvNuLRR4BKl0vPtHRhWh1SESUsNBkH0qjvNiAx4MA1JDBc4yBmTPmwJArJCFM+dA1SE5XsmFIqRTzKUrZYkMio78IUkauFoW6Mcbin1GWrOR8nqOEUEUQFmuK3ZdEw6NFg92s9j3XLp0CIsAuS8VdPkcKhCZ9/KAc81x/c3NdzFjy6KHZc0YPNh7VhDg9jYnh4co9n2dvx1nLalys7Rimx2xLGigfEJBQ0Xr149FkBVb04BQiTlPAFbTiDxRGKM1pJf5AgarPKG0sQu413N07hkCANO5m0fSebtCwziW5DqMISHTRMJCDF23inYbmsauNCHq+Vn1ta5dErzKN8psP/RiIXVpAegKJQ30Y06AQSEXdAIpdL0wbTNsLpoSIeCwRJHZYBpTusIFAIlPC0iqL5AxoCcmLPQkkLdITRCc0dSFqQD1A51g4pLOXmhZCwDMO2BpH9q6ZtDoU4oKQIy5yEynFnv+mzw+0+/q3Sf5yT4aYs89zq1alLIK7wYeQANcCpgW5AOaqIARzxcudrXrMTz+cuFAxBI1Rw06eLKz3xsnDikt+Mmr9mWBlXrbySeJAlTt8MXJImXHRNv0zx2GpWZ3r0KKqzXHlRHH26+fQf+mkbg56ADjppUuihMJl7BEhGtmnj+4Phj1lEUAzjaQcgJkzcqPPmlI/yjdJV8Trf/+hbeYyP0uMS0zSVF8SEaSELxkhR6a7IC1IVHkNMBWEkCljxYQ7YXgWKrDCHw2ohJDDKSkr5Tst3TANBp7DdgkTFKSOpxYMtV2i3hXQoJjwbBo3L4oibAajdXmSbCl01PEvi6x3PetMvwfi3cv+xHpPRk8GZvo6Oq5y5FvZlvtfqQZ5v5igfH7iRdHqrn/H24McyEb6ejCUxkCwqEATi8JDNKtWRIxI6wrLj+aOyQgIqLT/KTZ+OLYnCFGHE60PdSgzIgVmcfrbt5evjYkB97VeNyv8plx/UYoChElhYgB7KtD3PAUWRpejIVNzNAjNzyDuYRqnrMF5dIx4CkTrlAJQRps2FhZIX5lqYwfFLOygTBeSmkUhDEgNvIC7MR5ML6JhozoCpn+858G1utbH4j7BRT0Z9VlZzbTyOKJCKeCjkqYbkFBJh+DXCPVcKuXKIFURlm8WBoZSFOBCYmk6i33ioT+Kw1CegEMspcFfe+M8+rRySNum/YUwm9I7TPT04NWOBDg/nwtz16xMbEp3mPswIOuI6G7wBSlynz1pQWZEIP0smIcEEWN3QsfJDn+nj9FFSPh73wilgdE2f+eOumo4pPqWI2kI/LKu4RVXLq7H/kJopRUFhnkj4joNT9KC/BlZgAIVD1I+cwASVUBgCIsF1KEQxJLpGPKHGP5LYrAs5ikREnmJ61KF4K5cG1+REVS6HC1JauGroYYcOrLWUEp6MSF0UpoZgK5hV2dgEzeNLYbMBnRQZEUPnOwGMT6GOp57Kg/0WTCMYjnsQHpDmlJFTR5IcNt/alvV1PdF5NsKcLSpGG03L6QcjnWDpeIXqgFYb//A9wGi1+fMPDeqY7nae6uvT530KKp+JebkhHJyX6Fqz33X83tCgRr1d6gXBH+XnFtEwDmEVMBfAtbK7UvHxVTb1gGLQokbFVBZMDtUJHmT+dsPxmqSRU2nkrxkWxhfbOfEVwLov4sIaonSRr1qZy6vy8xliPbn+qPjYHxSm6mJwdB357DfaVtJ/BMLeW0/ayVQSR6TA5AB7h8kwmFeRrFBUSFYkJk7GsM+F5SuiCQmFBEriCskHYcxfEM9ozBjBS/yaKD//rBzndjD3BHswAcmqwFdhOWGugCw5owwpEt9sxMlVGWQEK4GlcAOi1XAcL6eLICfdcMFmNDnH7xdO/YTCHTkxM2B6EiSPbuXmHrZO5eJy4Iu6lfo2Gu8orFfA+PM9UMjnHpBIx9v+/Q9Wm8nMfcMTE1d7u7vP4Ec6fzy1wqOGP3xI63JHjgT2/rsy/boTbMP0pe78dVUWS5wjK0VUjIqNN3kA62ZYeIcfxofXDFNFUZBTT4W6m71mWBlXrb4yWSoEYWh0jVIUdJEmzA6o18mRDN7dCplCEkK8IiP4WRAU9OO8j5wimZB3SAhKYlJEphLkJCaSEP7PEdxsfVG5UWFxP6qPPngTlvBED6IWLN8dTPmg8ocFPPRXWBdlFWqqCEmLlhAgLRtKdLaAkpQNfRUM6DUQGOUiTimNEaT7FvRVw/F6K91XG4/mHf9KPaovvJ36jzfSS1mpc6mUdhnvhZL4a0GjZsKBKK+n0+kt0AHvztCAsIzjeeAeUKVPF1l101cBWCICxcGmcPalUeHRnyguIsJYej79fFnpKxdjrKhu+spVK69Ke+OW6SXlh7Xk/8b7D5umJKY6nUiQAEmp5ZKoD5Ay8kTFzcAsJIrL+ZREYCWAaU4ubXRNP8wfpuSuGubHMwCJhSuGPCiYJIMw5GV6xkfY0Wd+WoPiBAlEhvnzNluw3SKZYTkQHIQ5J1RQDg7Lw/QQGUIdFp4wcC9KgQ/7KkxjucEHROVmc3ZaCFfEjMxUvlPvBZ0WhT1Q1zG06hQKyGPA9qEh4bPRJuO/0p//WvoPyXpa77BPr9L1mn64QiJRT0vlP3jg1oyn0/th1dnN6VOkQyh8wVRuPpLUH9GHi+sckD4vLaj43NSHLwfv8cKjbGxdgc97JUpFpIRbpovKYHTUltkpHYkyEqNYf1gWfZU+Vn+JiMZERS4qKyTAMv1hmwoItLT/aL6OL9cn8A4mknhDkR5CUuh43ExhAXjnIQVxRQ9UwnU1JM73meHISINzlY/1Ir3jwNQBtui5IpU3K2mFZbEUEhgJiHlZhkqI8rws7hPFxBHlZ5romu1CGRSv2HyQEQiLPkwefJcSk2o0mU+F8Z46KswbKd8qvRUWiq7BsuoYlF/q+Jd839p4/KNnFHhw+Fbc819r/y3dHO7qsk9D2lLPBvEq59SLXC6CYSCq1OTk5F48g+FxLyQSvvyzhFK8taaYL1ACiYdkkSOg/HVO4irmAySLlR8+yHy5wnaWysTF7YmnRxdyecMXFDcxx3KjNCUEGUtb2r4Iixwh5qebxEG58v2Hkh0ERqlLp5kClNLkngLSyF8XExrZi089SYbFm9DRg1FCbEKyoxQE8sqFkTOgTwrDVIPCP/k8qpRcGrxMEXmxnpwjUeXbhjpgA2bBNsp0HPQWOiwNOnddw5YcNIdSFyzTlUKehEbrLDxDNn7osjCXPw5FO22qgPfKHn/pf8XxxxetvSvYlX8BxBVKCdGDmPPDhz0W+Oijjxof//jHt+Hh2oko/qKqFx4l0BJQmQIwS3RNn/fxZXqGFbq4nQzimI9tKFs+S1S1KJ9XoQkEfUQwtKg98fSzefMMwmx5F28/IqK2RLjM2b54/gX0H0v6+IiDZSVgHJogfYWNzDMUpCtsUkKg4pKIUJAsnNTlkjNWzfBCPMOhi8JAiCSqPBmyMFVQ1OdctQwLywNZ5cPCpDl80D6IhjzBASQF0sUeREpSJCyE4ceSpJXbEO2612AHepaTSRn/YrtEAD3n8xV/ntv4+S96nyGRO9gccQZmEPiBK3bRi5kPHcG+v2T32n2+53bxNY8oQyWIB0SR9OmqxMeTh5lm/8azx8srEbCQNSqTpUTX+eagwCiPqiWeQAXO/olHV2tPaYUFjWCxsQJjt7MV564K6iOB2Xj1adNGa3PqDMFl4XwSSnAQCUIibqFPlwtTwbiOkoSR+JvLx3KYv9BXaSrlLyifSegQBNMFTAWhiIeFArRZnoX+8Y2EzKhbnuNlYO9wFpZXkwoH5Kmj/6qOFTz+0n8+Y4Y/2pVIcJqY35+YJ6wjEN33ZzL9kPY3hWjx6Sv+RcByLIQAZZYQJSn2C944FRF/QkvjQ31XZDcV04GVPOGl+WdJEhVGbaNPV3d7Va7ZP83U/1ACgzTjkg4gjUFvHhGWkrPAPnnBLNeFSEKKfAbzOu9yBAUdVj6cZURpZuU3XOUILioD93x2IEnxxFGc9c6M+M93cHSNZVzHquBQDeMn4x898wQ2us7pgGvAbyU8/z5e5EupVEqtJirCgp4KHxVI7sbrQIYKHyKF3+yvIvEEX8FsQNk9qXwgBpgQwNo7p9OKrukzfdzF08+WTmYrV35YF+tU8bEpYImInGtLVH+8PkzZ8iQcVpjrawXCLOHH5uo/9JmWjbXHJMQcNhVW8bOklbsumnJw7Q+cgtVK2mJxAUNNKKncp54KHuzAwnjCE01B1UIHA1A80ik/IkdIfTj6mE8MXh2sSKZhdHUd+IcDykwFLj4eMv7Fv+il75c8/xEmeHaojD+jZ4LgbsPVVvO5iutg4oSAFCCiAqVp/jrUKRU8mzVexsube05ff3tiD0Q1wkP/ojrYgeiaftiheHsjLKL4GrudTxYvb0H9h94bpzeAwCD4cAqJf5SmlBjFH5D8ChVC1Q8KyIkrjtgbE64y4lqtINJHel5Hq4q4ZdsYzsWBWaU+rkFWtFzQbiNNnWciNbT/qD4+Hitq/FdE/3mWzmvQU+W4hZZPenQuRHRNfylcvfVjpUqz0Tj6dNE1/fm4euufTx1z5am3/hr6z6lj9A9ElneKwPJ3IYEVEpqKys0YFeUhoDBP4TV/+bjVIkfqKuu8/ixC/+tqR73111V4DYnrrb+G8a+h1tkk9dY/m7MxV7XUzwdP3ApBgCYG6Co+L6/+kcB4X0g0ERFFzwXjojBc5q8ZhqOKtWEoROmLEwSWBIHowVySyqSS5kIABEYhisRFEov8SgRWGD6K9OMgq8IwBIkTBBYXASGsxcW3pUoHgfF5iIiLPv9x+03kuLxMqaqsUj1KJL4gsFgICGEtFrJtUG6OwDhtJHHhqLOl+dBAG0AnXRAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBIGVhMD/D0fV/fpMMM+gAAAAAElFTkSuQmCC'
  16458. }
  16459. };
  16460. exports.default = _default;
  16461. /***/ }),
  16462. /* 119 */
  16463. /*!********************************************************************************!*\
  16464. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/noticeBar.js ***!
  16465. \********************************************************************************/
  16466. /*! no static exports found */
  16467. /***/ (function(module, exports, __webpack_require__) {
  16468. "use strict";
  16469. Object.defineProperty(exports, "__esModule", {
  16470. value: true
  16471. });
  16472. exports.default = void 0;
  16473. /*
  16474. * @Author : LQ
  16475. * @Description :
  16476. * @version : 1.0
  16477. * @Date : 2021-08-20 16:44:21
  16478. * @LastAuthor : LQ
  16479. * @lastTime : 2021-08-20 17:17:13
  16480. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noticeBar.js
  16481. */
  16482. var _default = {
  16483. // noticeBar
  16484. noticeBar: {
  16485. text: function text() {
  16486. return [];
  16487. },
  16488. direction: 'row',
  16489. step: false,
  16490. icon: 'volume',
  16491. mode: '',
  16492. color: '#f9ae3d',
  16493. bgColor: '#fdf6ec',
  16494. speed: 80,
  16495. fontSize: 14,
  16496. duration: 2000,
  16497. disableTouch: true,
  16498. url: '',
  16499. linkType: 'navigateTo'
  16500. }
  16501. };
  16502. exports.default = _default;
  16503. /***/ }),
  16504. /* 120 */
  16505. /*!*****************************************************************************!*\
  16506. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/notify.js ***!
  16507. \*****************************************************************************/
  16508. /*! no static exports found */
  16509. /***/ (function(module, exports, __webpack_require__) {
  16510. "use strict";
  16511. Object.defineProperty(exports, "__esModule", {
  16512. value: true
  16513. });
  16514. exports.default = void 0;
  16515. /*
  16516. * @Author : LQ
  16517. * @Description :
  16518. * @version : 1.0
  16519. * @Date : 2021-08-20 16:44:21
  16520. * @LastAuthor : LQ
  16521. * @lastTime : 2021-08-20 17:10:21
  16522. * @FilePath : /u-view2.0/uview-ui/libs/config/props/notify.js
  16523. */
  16524. var _default = {
  16525. // notify组件
  16526. notify: {
  16527. top: 0,
  16528. type: 'primary',
  16529. color: '#ffffff',
  16530. bgColor: '',
  16531. message: '',
  16532. duration: 3000,
  16533. fontSize: 15,
  16534. safeAreaInsetTop: false
  16535. }
  16536. };
  16537. exports.default = _default;
  16538. /***/ }),
  16539. /* 121 */
  16540. /*!********************************************************************************!*\
  16541. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/numberBox.js ***!
  16542. \********************************************************************************/
  16543. /*! no static exports found */
  16544. /***/ (function(module, exports, __webpack_require__) {
  16545. "use strict";
  16546. Object.defineProperty(exports, "__esModule", {
  16547. value: true
  16548. });
  16549. exports.default = void 0;
  16550. /*
  16551. * @Author : LQ
  16552. * @Description :
  16553. * @version : 1.0
  16554. * @Date : 2021-08-20 16:44:21
  16555. * @LastAuthor : LQ
  16556. * @lastTime : 2021-08-20 17:11:46
  16557. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberBox.js
  16558. */
  16559. var _default = {
  16560. // 步进器组件
  16561. numberBox: {
  16562. name: '',
  16563. value: 0,
  16564. min: 1,
  16565. max: Number.MAX_SAFE_INTEGER,
  16566. step: 1,
  16567. integer: false,
  16568. disabled: false,
  16569. disabledInput: false,
  16570. asyncChange: false,
  16571. inputWidth: 35,
  16572. showMinus: true,
  16573. showPlus: true,
  16574. decimalLength: null,
  16575. longPress: true,
  16576. color: '#323233',
  16577. buttonSize: 30,
  16578. bgColor: '#EBECEE',
  16579. cursorSpacing: 100,
  16580. disableMinus: false,
  16581. disablePlus: false,
  16582. iconStyle: ''
  16583. }
  16584. };
  16585. exports.default = _default;
  16586. /***/ }),
  16587. /* 122 */
  16588. /*!*************************************************************************************!*\
  16589. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/numberKeyboard.js ***!
  16590. \*************************************************************************************/
  16591. /*! no static exports found */
  16592. /***/ (function(module, exports, __webpack_require__) {
  16593. "use strict";
  16594. Object.defineProperty(exports, "__esModule", {
  16595. value: true
  16596. });
  16597. exports.default = void 0;
  16598. /*
  16599. * @Author : LQ
  16600. * @Description :
  16601. * @version : 1.0
  16602. * @Date : 2021-08-20 16:44:21
  16603. * @LastAuthor : LQ
  16604. * @lastTime : 2021-08-20 17:08:05
  16605. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberKeyboard.js
  16606. */
  16607. var _default = {
  16608. // 数字键盘
  16609. numberKeyboard: {
  16610. mode: 'number',
  16611. dotDisabled: false,
  16612. random: false
  16613. }
  16614. };
  16615. exports.default = _default;
  16616. /***/ }),
  16617. /* 123 */
  16618. /*!******************************************************************************!*\
  16619. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/overlay.js ***!
  16620. \******************************************************************************/
  16621. /*! no static exports found */
  16622. /***/ (function(module, exports, __webpack_require__) {
  16623. "use strict";
  16624. Object.defineProperty(exports, "__esModule", {
  16625. value: true
  16626. });
  16627. exports.default = void 0;
  16628. /*
  16629. * @Author : LQ
  16630. * @Description :
  16631. * @version : 1.0
  16632. * @Date : 2021-08-20 16:44:21
  16633. * @LastAuthor : LQ
  16634. * @lastTime : 2021-08-20 17:06:50
  16635. * @FilePath : /u-view2.0/uview-ui/libs/config/props/overlay.js
  16636. */
  16637. var _default = {
  16638. // overlay组件
  16639. overlay: {
  16640. show: false,
  16641. zIndex: 10070,
  16642. duration: 300,
  16643. opacity: 0.5
  16644. }
  16645. };
  16646. exports.default = _default;
  16647. /***/ }),
  16648. /* 124 */
  16649. /*!****************************************************************************!*\
  16650. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/parse.js ***!
  16651. \****************************************************************************/
  16652. /*! no static exports found */
  16653. /***/ (function(module, exports, __webpack_require__) {
  16654. "use strict";
  16655. Object.defineProperty(exports, "__esModule", {
  16656. value: true
  16657. });
  16658. exports.default = void 0;
  16659. /*
  16660. * @Author : LQ
  16661. * @Description :
  16662. * @version : 1.0
  16663. * @Date : 2021-08-20 16:44:21
  16664. * @LastAuthor : LQ
  16665. * @lastTime : 2021-08-20 17:17:33
  16666. * @FilePath : /u-view2.0/uview-ui/libs/config/props/parse.js
  16667. */
  16668. var _default = {
  16669. // parse
  16670. parse: {
  16671. copyLink: true,
  16672. errorImg: '',
  16673. lazyLoad: false,
  16674. loadingImg: '',
  16675. pauseVideo: true,
  16676. previewImg: true,
  16677. setTitle: true,
  16678. showImgMenu: true
  16679. }
  16680. };
  16681. exports.default = _default;
  16682. /***/ }),
  16683. /* 125 */
  16684. /*!*****************************************************************************!*\
  16685. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/picker.js ***!
  16686. \*****************************************************************************/
  16687. /*! no static exports found */
  16688. /***/ (function(module, exports, __webpack_require__) {
  16689. "use strict";
  16690. Object.defineProperty(exports, "__esModule", {
  16691. value: true
  16692. });
  16693. exports.default = void 0;
  16694. /*
  16695. * @Author : LQ
  16696. * @Description :
  16697. * @version : 1.0
  16698. * @Date : 2021-08-20 16:44:21
  16699. * @LastAuthor : LQ
  16700. * @lastTime : 2021-08-20 17:18:20
  16701. * @FilePath : /u-view2.0/uview-ui/libs/config/props/picker.js
  16702. */
  16703. var _default = {
  16704. // picker
  16705. picker: {
  16706. show: false,
  16707. showToolbar: true,
  16708. title: '',
  16709. columns: function columns() {
  16710. return [];
  16711. },
  16712. loading: false,
  16713. itemHeight: 44,
  16714. cancelText: '取消',
  16715. confirmText: '确定',
  16716. cancelColor: '#909193',
  16717. confirmColor: '#3c9cff',
  16718. visibleItemCount: 5,
  16719. keyName: 'text',
  16720. closeOnClickOverlay: false,
  16721. defaultIndex: function defaultIndex() {
  16722. return [];
  16723. },
  16724. immediateChange: false
  16725. }
  16726. };
  16727. exports.default = _default;
  16728. /***/ }),
  16729. /* 126 */
  16730. /*!****************************************************************************!*\
  16731. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/popup.js ***!
  16732. \****************************************************************************/
  16733. /*! no static exports found */
  16734. /***/ (function(module, exports, __webpack_require__) {
  16735. "use strict";
  16736. Object.defineProperty(exports, "__esModule", {
  16737. value: true
  16738. });
  16739. exports.default = void 0;
  16740. /*
  16741. * @Author : LQ
  16742. * @Description :
  16743. * @version : 1.0
  16744. * @Date : 2021-08-20 16:44:21
  16745. * @LastAuthor : LQ
  16746. * @lastTime : 2021-08-20 17:06:33
  16747. * @FilePath : /u-view2.0/uview-ui/libs/config/props/popup.js
  16748. */
  16749. var _default = {
  16750. // popup组件
  16751. popup: {
  16752. show: false,
  16753. overlay: true,
  16754. mode: 'bottom',
  16755. duration: 300,
  16756. closeable: false,
  16757. overlayStyle: function overlayStyle() {},
  16758. closeOnClickOverlay: true,
  16759. zIndex: 10075,
  16760. safeAreaInsetBottom: true,
  16761. safeAreaInsetTop: false,
  16762. closeIconPos: 'top-right',
  16763. round: 0,
  16764. zoom: true,
  16765. bgColor: '',
  16766. overlayOpacity: 0.5
  16767. }
  16768. };
  16769. exports.default = _default;
  16770. /***/ }),
  16771. /* 127 */
  16772. /*!****************************************************************************!*\
  16773. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/radio.js ***!
  16774. \****************************************************************************/
  16775. /*! no static exports found */
  16776. /***/ (function(module, exports, __webpack_require__) {
  16777. "use strict";
  16778. Object.defineProperty(exports, "__esModule", {
  16779. value: true
  16780. });
  16781. exports.default = void 0;
  16782. /*
  16783. * @Author : LQ
  16784. * @Description :
  16785. * @version : 1.0
  16786. * @Date : 2021-08-20 16:44:21
  16787. * @LastAuthor : LQ
  16788. * @lastTime : 2021-08-20 17:02:34
  16789. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radio.js
  16790. */
  16791. var _default = {
  16792. // radio组件
  16793. radio: {
  16794. name: '',
  16795. shape: '',
  16796. disabled: '',
  16797. labelDisabled: '',
  16798. activeColor: '',
  16799. inactiveColor: '',
  16800. iconSize: '',
  16801. labelSize: '',
  16802. label: '',
  16803. labelColor: '',
  16804. size: '',
  16805. iconColor: '',
  16806. placement: ''
  16807. }
  16808. };
  16809. exports.default = _default;
  16810. /***/ }),
  16811. /* 128 */
  16812. /*!*********************************************************************************!*\
  16813. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/radioGroup.js ***!
  16814. \*********************************************************************************/
  16815. /*! no static exports found */
  16816. /***/ (function(module, exports, __webpack_require__) {
  16817. "use strict";
  16818. Object.defineProperty(exports, "__esModule", {
  16819. value: true
  16820. });
  16821. exports.default = void 0;
  16822. /*
  16823. * @Author : LQ
  16824. * @Description :
  16825. * @version : 1.0
  16826. * @Date : 2021-08-20 16:44:21
  16827. * @LastAuthor : LQ
  16828. * @lastTime : 2021-08-20 17:03:12
  16829. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radioGroup.js
  16830. */
  16831. var _default = {
  16832. // radio-group组件
  16833. radioGroup: {
  16834. value: '',
  16835. disabled: false,
  16836. shape: 'circle',
  16837. activeColor: '#2979ff',
  16838. inactiveColor: '#c8c9cc',
  16839. name: '',
  16840. size: 18,
  16841. placement: 'row',
  16842. label: '',
  16843. labelColor: '#303133',
  16844. labelSize: 14,
  16845. labelDisabled: false,
  16846. iconColor: '#ffffff',
  16847. iconSize: 12,
  16848. borderBottom: false,
  16849. iconPlacement: 'left'
  16850. }
  16851. };
  16852. exports.default = _default;
  16853. /***/ }),
  16854. /* 129 */
  16855. /*!***************************************************************************!*\
  16856. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/rate.js ***!
  16857. \***************************************************************************/
  16858. /*! no static exports found */
  16859. /***/ (function(module, exports, __webpack_require__) {
  16860. "use strict";
  16861. Object.defineProperty(exports, "__esModule", {
  16862. value: true
  16863. });
  16864. exports.default = void 0;
  16865. /*
  16866. * @Author : LQ
  16867. * @Description :
  16868. * @version : 1.0
  16869. * @Date : 2021-08-20 16:44:21
  16870. * @LastAuthor : LQ
  16871. * @lastTime : 2021-08-20 17:05:09
  16872. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rate.js
  16873. */
  16874. var _default = {
  16875. // rate组件
  16876. rate: {
  16877. value: 1,
  16878. count: 5,
  16879. disabled: false,
  16880. size: 18,
  16881. inactiveColor: '#b2b2b2',
  16882. activeColor: '#FA3534',
  16883. gutter: 4,
  16884. minCount: 1,
  16885. allowHalf: false,
  16886. activeIcon: 'star-fill',
  16887. inactiveIcon: 'star',
  16888. touchable: true
  16889. }
  16890. };
  16891. exports.default = _default;
  16892. /***/ }),
  16893. /* 130 */
  16894. /*!*******************************************************************************!*\
  16895. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/readMore.js ***!
  16896. \*******************************************************************************/
  16897. /*! no static exports found */
  16898. /***/ (function(module, exports, __webpack_require__) {
  16899. "use strict";
  16900. Object.defineProperty(exports, "__esModule", {
  16901. value: true
  16902. });
  16903. exports.default = void 0;
  16904. /*
  16905. * @Author : LQ
  16906. * @Description :
  16907. * @version : 1.0
  16908. * @Date : 2021-08-20 16:44:21
  16909. * @LastAuthor : LQ
  16910. * @lastTime : 2021-08-20 17:18:41
  16911. * @FilePath : /u-view2.0/uview-ui/libs/config/props/readMore.js
  16912. */
  16913. var _default = {
  16914. // readMore
  16915. readMore: {
  16916. showHeight: 400,
  16917. toggle: false,
  16918. closeText: '展开阅读全文',
  16919. openText: '收起',
  16920. color: '#2979ff',
  16921. fontSize: 14,
  16922. textIndent: '2em',
  16923. name: ''
  16924. }
  16925. };
  16926. exports.default = _default;
  16927. /***/ }),
  16928. /* 131 */
  16929. /*!**************************************************************************!*\
  16930. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/row.js ***!
  16931. \**************************************************************************/
  16932. /*! no static exports found */
  16933. /***/ (function(module, exports, __webpack_require__) {
  16934. "use strict";
  16935. Object.defineProperty(exports, "__esModule", {
  16936. value: true
  16937. });
  16938. exports.default = void 0;
  16939. /*
  16940. * @Author : LQ
  16941. * @Description :
  16942. * @version : 1.0
  16943. * @Date : 2021-08-20 16:44:21
  16944. * @LastAuthor : LQ
  16945. * @lastTime : 2021-08-20 17:18:58
  16946. * @FilePath : /u-view2.0/uview-ui/libs/config/props/row.js
  16947. */
  16948. var _default = {
  16949. // row
  16950. row: {
  16951. gutter: 0,
  16952. justify: 'start',
  16953. align: 'center'
  16954. }
  16955. };
  16956. exports.default = _default;
  16957. /***/ }),
  16958. /* 132 */
  16959. /*!********************************************************************************!*\
  16960. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/rowNotice.js ***!
  16961. \********************************************************************************/
  16962. /*! no static exports found */
  16963. /***/ (function(module, exports, __webpack_require__) {
  16964. "use strict";
  16965. Object.defineProperty(exports, "__esModule", {
  16966. value: true
  16967. });
  16968. exports.default = void 0;
  16969. /*
  16970. * @Author : LQ
  16971. * @Description :
  16972. * @version : 1.0
  16973. * @Date : 2021-08-20 16:44:21
  16974. * @LastAuthor : LQ
  16975. * @lastTime : 2021-08-20 17:19:13
  16976. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rowNotice.js
  16977. */
  16978. var _default = {
  16979. // rowNotice
  16980. rowNotice: {
  16981. text: '',
  16982. icon: 'volume',
  16983. mode: '',
  16984. color: '#f9ae3d',
  16985. bgColor: '#fdf6ec',
  16986. fontSize: 14,
  16987. speed: 80
  16988. }
  16989. };
  16990. exports.default = _default;
  16991. /***/ }),
  16992. /* 133 */
  16993. /*!*********************************************************************************!*\
  16994. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/scrollList.js ***!
  16995. \*********************************************************************************/
  16996. /*! no static exports found */
  16997. /***/ (function(module, exports, __webpack_require__) {
  16998. "use strict";
  16999. Object.defineProperty(exports, "__esModule", {
  17000. value: true
  17001. });
  17002. exports.default = void 0;
  17003. /*
  17004. * @Author : LQ
  17005. * @Description :
  17006. * @version : 1.0
  17007. * @Date : 2021-08-20 16:44:21
  17008. * @LastAuthor : LQ
  17009. * @lastTime : 2021-08-20 17:19:28
  17010. * @FilePath : /u-view2.0/uview-ui/libs/config/props/scrollList.js
  17011. */
  17012. var _default = {
  17013. // scrollList
  17014. scrollList: {
  17015. indicatorWidth: 50,
  17016. indicatorBarWidth: 20,
  17017. indicator: true,
  17018. indicatorColor: '#f2f2f2',
  17019. indicatorActiveColor: '#3c9cff',
  17020. indicatorStyle: ''
  17021. }
  17022. };
  17023. exports.default = _default;
  17024. /***/ }),
  17025. /* 134 */
  17026. /*!*****************************************************************************!*\
  17027. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/search.js ***!
  17028. \*****************************************************************************/
  17029. /*! no static exports found */
  17030. /***/ (function(module, exports, __webpack_require__) {
  17031. "use strict";
  17032. Object.defineProperty(exports, "__esModule", {
  17033. value: true
  17034. });
  17035. exports.default = void 0;
  17036. /*
  17037. * @Author : LQ
  17038. * @Description :
  17039. * @version : 1.0
  17040. * @Date : 2021-08-20 16:44:21
  17041. * @LastAuthor : LQ
  17042. * @lastTime : 2021-08-20 17:19:45
  17043. * @FilePath : /u-view2.0/uview-ui/libs/config/props/search.js
  17044. */
  17045. var _default = {
  17046. // search
  17047. search: {
  17048. shape: 'round',
  17049. bgColor: '#f2f2f2',
  17050. placeholder: '请输入关键字',
  17051. clearabled: true,
  17052. focus: false,
  17053. showAction: true,
  17054. actionStyle: function actionStyle() {
  17055. return {};
  17056. },
  17057. actionText: '搜索',
  17058. inputAlign: 'left',
  17059. inputStyle: function inputStyle() {
  17060. return {};
  17061. },
  17062. disabled: false,
  17063. borderColor: 'transparent',
  17064. searchIconColor: '#909399',
  17065. searchIconSize: 22,
  17066. color: '#606266',
  17067. placeholderColor: '#909399',
  17068. searchIcon: 'search',
  17069. margin: '0',
  17070. animation: false,
  17071. value: '',
  17072. maxlength: '-1',
  17073. height: 32,
  17074. label: null
  17075. }
  17076. };
  17077. exports.default = _default;
  17078. /***/ }),
  17079. /* 135 */
  17080. /*!******************************************************************************!*\
  17081. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/section.js ***!
  17082. \******************************************************************************/
  17083. /*! no static exports found */
  17084. /***/ (function(module, exports, __webpack_require__) {
  17085. "use strict";
  17086. Object.defineProperty(exports, "__esModule", {
  17087. value: true
  17088. });
  17089. exports.default = void 0;
  17090. /*
  17091. * @Author : LQ
  17092. * @Description :
  17093. * @version : 1.0
  17094. * @Date : 2021-08-20 16:44:21
  17095. * @LastAuthor : LQ
  17096. * @lastTime : 2021-08-20 17:07:33
  17097. * @FilePath : /u-view2.0/uview-ui/libs/config/props/section.js
  17098. */
  17099. var _default = {
  17100. // u-section组件
  17101. section: {
  17102. title: '',
  17103. subTitle: '更多',
  17104. right: true,
  17105. fontSize: 15,
  17106. bold: true,
  17107. color: '#303133',
  17108. subColor: '#909399',
  17109. showLine: true,
  17110. lineColor: '',
  17111. arrow: true
  17112. }
  17113. };
  17114. exports.default = _default;
  17115. /***/ }),
  17116. /* 136 */
  17117. /*!*******************************************************************************!*\
  17118. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/skeleton.js ***!
  17119. \*******************************************************************************/
  17120. /*! no static exports found */
  17121. /***/ (function(module, exports, __webpack_require__) {
  17122. "use strict";
  17123. Object.defineProperty(exports, "__esModule", {
  17124. value: true
  17125. });
  17126. exports.default = void 0;
  17127. /*
  17128. * @Author : LQ
  17129. * @Description :
  17130. * @version : 1.0
  17131. * @Date : 2021-08-20 16:44:21
  17132. * @LastAuthor : LQ
  17133. * @lastTime : 2021-08-20 17:20:14
  17134. * @FilePath : /u-view2.0/uview-ui/libs/config/props/skeleton.js
  17135. */
  17136. var _default = {
  17137. // skeleton
  17138. skeleton: {
  17139. loading: true,
  17140. animate: true,
  17141. rows: 0,
  17142. rowsWidth: '100%',
  17143. rowsHeight: 18,
  17144. title: true,
  17145. titleWidth: '50%',
  17146. titleHeight: 18,
  17147. avatar: false,
  17148. avatarSize: 32,
  17149. avatarShape: 'circle'
  17150. }
  17151. };
  17152. exports.default = _default;
  17153. /***/ }),
  17154. /* 137 */
  17155. /*!*****************************************************************************!*\
  17156. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/slider.js ***!
  17157. \*****************************************************************************/
  17158. /*! no static exports found */
  17159. /***/ (function(module, exports, __webpack_require__) {
  17160. "use strict";
  17161. Object.defineProperty(exports, "__esModule", {
  17162. value: true
  17163. });
  17164. exports.default = void 0;
  17165. /*
  17166. * @Author : LQ
  17167. * @Description :
  17168. * @version : 1.0
  17169. * @Date : 2021-08-20 16:44:21
  17170. * @LastAuthor : LQ
  17171. * @lastTime : 2021-08-20 17:08:25
  17172. * @FilePath : /u-view2.0/uview-ui/libs/config/props/slider.js
  17173. */
  17174. var _default = {
  17175. // slider组件
  17176. slider: {
  17177. value: 0,
  17178. blockSize: 18,
  17179. min: 0,
  17180. max: 100,
  17181. step: 1,
  17182. activeColor: '#2979ff',
  17183. inactiveColor: '#c0c4cc',
  17184. blockColor: '#ffffff',
  17185. showValue: false,
  17186. disabled: false,
  17187. blockStyle: function blockStyle() {}
  17188. }
  17189. };
  17190. exports.default = _default;
  17191. /***/ }),
  17192. /* 138 */
  17193. /*!********************************************************************************!*\
  17194. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/statusBar.js ***!
  17195. \********************************************************************************/
  17196. /*! no static exports found */
  17197. /***/ (function(module, exports, __webpack_require__) {
  17198. "use strict";
  17199. Object.defineProperty(exports, "__esModule", {
  17200. value: true
  17201. });
  17202. exports.default = void 0;
  17203. /*
  17204. * @Author : LQ
  17205. * @Description :
  17206. * @version : 1.0
  17207. * @Date : 2021-08-20 16:44:21
  17208. * @LastAuthor : LQ
  17209. * @lastTime : 2021-08-20 17:20:39
  17210. * @FilePath : /u-view2.0/uview-ui/libs/config/props/statusBar.js
  17211. */
  17212. var _default = {
  17213. // statusBar
  17214. statusBar: {
  17215. bgColor: 'transparent'
  17216. }
  17217. };
  17218. exports.default = _default;
  17219. /***/ }),
  17220. /* 139 */
  17221. /*!****************************************************************************!*\
  17222. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/steps.js ***!
  17223. \****************************************************************************/
  17224. /*! no static exports found */
  17225. /***/ (function(module, exports, __webpack_require__) {
  17226. "use strict";
  17227. Object.defineProperty(exports, "__esModule", {
  17228. value: true
  17229. });
  17230. exports.default = void 0;
  17231. /*
  17232. * @Author : LQ
  17233. * @Description :
  17234. * @version : 1.0
  17235. * @Date : 2021-08-20 16:44:21
  17236. * @LastAuthor : LQ
  17237. * @lastTime : 2021-08-20 17:12:37
  17238. * @FilePath : /u-view2.0/uview-ui/libs/config/props/steps.js
  17239. */
  17240. var _default = {
  17241. // steps组件
  17242. steps: {
  17243. direction: 'row',
  17244. current: 0,
  17245. activeColor: '#3c9cff',
  17246. inactiveColor: '#969799',
  17247. activeIcon: '',
  17248. inactiveIcon: '',
  17249. dot: false
  17250. }
  17251. };
  17252. exports.default = _default;
  17253. /***/ }),
  17254. /* 140 */
  17255. /*!********************************************************************************!*\
  17256. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/stepsItem.js ***!
  17257. \********************************************************************************/
  17258. /*! no static exports found */
  17259. /***/ (function(module, exports, __webpack_require__) {
  17260. "use strict";
  17261. Object.defineProperty(exports, "__esModule", {
  17262. value: true
  17263. });
  17264. exports.default = void 0;
  17265. /*
  17266. * @Author : LQ
  17267. * @Description :
  17268. * @version : 1.0
  17269. * @Date : 2021-08-20 16:44:21
  17270. * @LastAuthor : LQ
  17271. * @lastTime : 2021-08-20 17:12:55
  17272. * @FilePath : /u-view2.0/uview-ui/libs/config/props/stepsItem.js
  17273. */
  17274. var _default = {
  17275. // steps-item组件
  17276. stepsItem: {
  17277. title: '',
  17278. desc: '',
  17279. iconSize: 17,
  17280. error: false
  17281. }
  17282. };
  17283. exports.default = _default;
  17284. /***/ }),
  17285. /* 141 */
  17286. /*!*****************************************************************************!*\
  17287. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/sticky.js ***!
  17288. \*****************************************************************************/
  17289. /*! no static exports found */
  17290. /***/ (function(module, exports, __webpack_require__) {
  17291. "use strict";
  17292. Object.defineProperty(exports, "__esModule", {
  17293. value: true
  17294. });
  17295. exports.default = void 0;
  17296. /*
  17297. * @Author : LQ
  17298. * @Description :
  17299. * @version : 1.0
  17300. * @Date : 2021-08-20 16:44:21
  17301. * @LastAuthor : LQ
  17302. * @lastTime : 2021-08-20 17:01:30
  17303. * @FilePath : /u-view2.0/uview-ui/libs/config/props/sticky.js
  17304. */
  17305. var _default = {
  17306. // sticky组件
  17307. sticky: {
  17308. offsetTop: 0,
  17309. customNavHeight: 0,
  17310. disabled: false,
  17311. bgColor: 'transparent',
  17312. zIndex: '',
  17313. index: ''
  17314. }
  17315. };
  17316. exports.default = _default;
  17317. /***/ }),
  17318. /* 142 */
  17319. /*!*********************************************************************************!*\
  17320. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/subsection.js ***!
  17321. \*********************************************************************************/
  17322. /*! no static exports found */
  17323. /***/ (function(module, exports, __webpack_require__) {
  17324. "use strict";
  17325. Object.defineProperty(exports, "__esModule", {
  17326. value: true
  17327. });
  17328. exports.default = void 0;
  17329. /*
  17330. * @Author : LQ
  17331. * @Description :
  17332. * @version : 1.0
  17333. * @Date : 2021-08-20 16:44:21
  17334. * @LastAuthor : LQ
  17335. * @lastTime : 2021-08-20 17:12:20
  17336. * @FilePath : /u-view2.0/uview-ui/libs/config/props/subsection.js
  17337. */
  17338. var _default = {
  17339. // subsection组件
  17340. subsection: {
  17341. list: [],
  17342. current: 0,
  17343. activeColor: '#3c9cff',
  17344. inactiveColor: '#303133',
  17345. mode: 'button',
  17346. fontSize: 12,
  17347. bold: true,
  17348. bgColor: '#eeeeef',
  17349. keyName: 'name'
  17350. }
  17351. };
  17352. exports.default = _default;
  17353. /***/ }),
  17354. /* 143 */
  17355. /*!**********************************************************************************!*\
  17356. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/swipeAction.js ***!
  17357. \**********************************************************************************/
  17358. /*! no static exports found */
  17359. /***/ (function(module, exports, __webpack_require__) {
  17360. "use strict";
  17361. Object.defineProperty(exports, "__esModule", {
  17362. value: true
  17363. });
  17364. exports.default = void 0;
  17365. /*
  17366. * @Author : LQ
  17367. * @Description :
  17368. * @version : 1.0
  17369. * @Date : 2021-08-20 16:44:21
  17370. * @LastAuthor : LQ
  17371. * @lastTime : 2021-08-20 17:00:42
  17372. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeAction.js
  17373. */
  17374. var _default = {
  17375. // swipe-action组件
  17376. swipeAction: {
  17377. autoClose: true
  17378. }
  17379. };
  17380. exports.default = _default;
  17381. /***/ }),
  17382. /* 144 */
  17383. /*!**************************************************************************************!*\
  17384. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/swipeActionItem.js ***!
  17385. \**************************************************************************************/
  17386. /*! no static exports found */
  17387. /***/ (function(module, exports, __webpack_require__) {
  17388. "use strict";
  17389. Object.defineProperty(exports, "__esModule", {
  17390. value: true
  17391. });
  17392. exports.default = void 0;
  17393. /*
  17394. * @Author : LQ
  17395. * @Description :
  17396. * @version : 1.0
  17397. * @Date : 2021-08-20 16:44:21
  17398. * @LastAuthor : LQ
  17399. * @lastTime : 2021-08-20 17:01:13
  17400. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeActionItem.js
  17401. */
  17402. var _default = {
  17403. // swipeActionItem 组件
  17404. swipeActionItem: {
  17405. show: false,
  17406. name: '',
  17407. disabled: false,
  17408. threshold: 20,
  17409. autoClose: true,
  17410. options: [],
  17411. duration: 300
  17412. }
  17413. };
  17414. exports.default = _default;
  17415. /***/ }),
  17416. /* 145 */
  17417. /*!*****************************************************************************!*\
  17418. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/swiper.js ***!
  17419. \*****************************************************************************/
  17420. /*! no static exports found */
  17421. /***/ (function(module, exports, __webpack_require__) {
  17422. "use strict";
  17423. Object.defineProperty(exports, "__esModule", {
  17424. value: true
  17425. });
  17426. exports.default = void 0;
  17427. /*
  17428. * @Author : LQ
  17429. * @Description :
  17430. * @version : 1.0
  17431. * @Date : 2021-08-20 16:44:21
  17432. * @LastAuthor : LQ
  17433. * @lastTime : 2021-08-20 17:21:38
  17434. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiper.js
  17435. */
  17436. var _default = {
  17437. // swiper 组件
  17438. swiper: {
  17439. list: function list() {
  17440. return [];
  17441. },
  17442. indicator: false,
  17443. indicatorActiveColor: '#FFFFFF',
  17444. indicatorInactiveColor: 'rgba(255, 255, 255, 0.35)',
  17445. indicatorStyle: '',
  17446. indicatorMode: 'line',
  17447. autoplay: true,
  17448. current: 0,
  17449. currentItemId: '',
  17450. interval: 3000,
  17451. duration: 300,
  17452. circular: false,
  17453. previousMargin: 0,
  17454. nextMargin: 0,
  17455. acceleration: false,
  17456. displayMultipleItems: 1,
  17457. easingFunction: 'default',
  17458. keyName: 'url',
  17459. imgMode: 'aspectFill',
  17460. height: 130,
  17461. bgColor: '#f3f4f6',
  17462. radius: 4,
  17463. loading: false,
  17464. showTitle: false
  17465. }
  17466. };
  17467. exports.default = _default;
  17468. /***/ }),
  17469. /* 146 */
  17470. /*!***************************************************************************************!*\
  17471. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/swipterIndicator.js ***!
  17472. \***************************************************************************************/
  17473. /*! no static exports found */
  17474. /***/ (function(module, exports, __webpack_require__) {
  17475. "use strict";
  17476. Object.defineProperty(exports, "__esModule", {
  17477. value: true
  17478. });
  17479. exports.default = void 0;
  17480. /*
  17481. * @Author : LQ
  17482. * @Description :
  17483. * @version : 1.0
  17484. * @Date : 2021-08-20 16:44:21
  17485. * @LastAuthor : LQ
  17486. * @lastTime : 2021-08-20 17:22:07
  17487. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiperIndicator.js
  17488. */
  17489. var _default = {
  17490. // swiperIndicator 组件
  17491. swiperIndicator: {
  17492. length: 0,
  17493. current: 0,
  17494. indicatorActiveColor: '',
  17495. indicatorInactiveColor: '',
  17496. indicatorMode: 'line'
  17497. }
  17498. };
  17499. exports.default = _default;
  17500. /***/ }),
  17501. /* 147 */
  17502. /*!*****************************************************************************!*\
  17503. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/switch.js ***!
  17504. \*****************************************************************************/
  17505. /*! no static exports found */
  17506. /***/ (function(module, exports, __webpack_require__) {
  17507. "use strict";
  17508. Object.defineProperty(exports, "__esModule", {
  17509. value: true
  17510. });
  17511. exports.default = void 0;
  17512. /*
  17513. * @Author : LQ
  17514. * @Description :
  17515. * @version : 1.0
  17516. * @Date : 2021-08-20 16:44:21
  17517. * @LastAuthor : LQ
  17518. * @lastTime : 2021-08-20 17:22:24
  17519. * @FilePath : /u-view2.0/uview-ui/libs/config/props/switch.js
  17520. */
  17521. var _default = {
  17522. // switch
  17523. switch: {
  17524. loading: false,
  17525. disabled: false,
  17526. size: 25,
  17527. activeColor: '#2979ff',
  17528. inactiveColor: '#ffffff',
  17529. value: false,
  17530. activeValue: true,
  17531. inactiveValue: false,
  17532. asyncChange: false,
  17533. space: 0
  17534. }
  17535. };
  17536. exports.default = _default;
  17537. /***/ }),
  17538. /* 148 */
  17539. /*!*****************************************************************************!*\
  17540. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/tabbar.js ***!
  17541. \*****************************************************************************/
  17542. /*! no static exports found */
  17543. /***/ (function(module, exports, __webpack_require__) {
  17544. "use strict";
  17545. Object.defineProperty(exports, "__esModule", {
  17546. value: true
  17547. });
  17548. exports.default = void 0;
  17549. /*
  17550. * @Author : LQ
  17551. * @Description :
  17552. * @version : 1.0
  17553. * @Date : 2021-08-20 16:44:21
  17554. * @LastAuthor : LQ
  17555. * @lastTime : 2021-08-20 17:22:40
  17556. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbar.js
  17557. */
  17558. var _default = {
  17559. // tabbar
  17560. tabbar: {
  17561. value: null,
  17562. safeAreaInsetBottom: true,
  17563. border: true,
  17564. zIndex: 1,
  17565. activeColor: '#1989fa',
  17566. inactiveColor: '#7d7e80',
  17567. fixed: true,
  17568. placeholder: true
  17569. }
  17570. };
  17571. exports.default = _default;
  17572. /***/ }),
  17573. /* 149 */
  17574. /*!*********************************************************************************!*\
  17575. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/tabbarItem.js ***!
  17576. \*********************************************************************************/
  17577. /*! no static exports found */
  17578. /***/ (function(module, exports, __webpack_require__) {
  17579. "use strict";
  17580. Object.defineProperty(exports, "__esModule", {
  17581. value: true
  17582. });
  17583. exports.default = void 0;
  17584. /*
  17585. * @Author : LQ
  17586. * @Description :
  17587. * @version : 1.0
  17588. * @Date : 2021-08-20 16:44:21
  17589. * @LastAuthor : LQ
  17590. * @lastTime : 2021-08-20 17:22:55
  17591. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbarItem.js
  17592. */
  17593. var _default = {
  17594. //
  17595. tabbarItem: {
  17596. name: null,
  17597. icon: '',
  17598. badge: null,
  17599. dot: false,
  17600. text: '',
  17601. badgeStyle: 'top: 6px;right:2px;'
  17602. }
  17603. };
  17604. exports.default = _default;
  17605. /***/ }),
  17606. /* 150 */
  17607. /*!***************************************************************************!*\
  17608. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/tabs.js ***!
  17609. \***************************************************************************/
  17610. /*! no static exports found */
  17611. /***/ (function(module, exports, __webpack_require__) {
  17612. "use strict";
  17613. Object.defineProperty(exports, "__esModule", {
  17614. value: true
  17615. });
  17616. exports.default = void 0;
  17617. /*
  17618. * @Author : LQ
  17619. * @Description :
  17620. * @version : 1.0
  17621. * @Date : 2021-08-20 16:44:21
  17622. * @LastAuthor : LQ
  17623. * @lastTime : 2021-08-20 17:23:14
  17624. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabs.js
  17625. */
  17626. var _default = {
  17627. //
  17628. tabs: {
  17629. duration: 300,
  17630. list: function list() {
  17631. return [];
  17632. },
  17633. lineColor: '#3c9cff',
  17634. activeStyle: function activeStyle() {
  17635. return {
  17636. color: '#303133'
  17637. };
  17638. },
  17639. inactiveStyle: function inactiveStyle() {
  17640. return {
  17641. color: '#606266'
  17642. };
  17643. },
  17644. lineWidth: 20,
  17645. lineHeight: 3,
  17646. lineBgSize: 'cover',
  17647. itemStyle: function itemStyle() {
  17648. return {
  17649. height: '44px'
  17650. };
  17651. },
  17652. scrollable: true,
  17653. current: 0,
  17654. keyName: 'name'
  17655. }
  17656. };
  17657. exports.default = _default;
  17658. /***/ }),
  17659. /* 151 */
  17660. /*!**************************************************************************!*\
  17661. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/tag.js ***!
  17662. \**************************************************************************/
  17663. /*! no static exports found */
  17664. /***/ (function(module, exports, __webpack_require__) {
  17665. "use strict";
  17666. Object.defineProperty(exports, "__esModule", {
  17667. value: true
  17668. });
  17669. exports.default = void 0;
  17670. /*
  17671. * @Author : LQ
  17672. * @Description :
  17673. * @version : 1.0
  17674. * @Date : 2021-08-20 16:44:21
  17675. * @LastAuthor : LQ
  17676. * @lastTime : 2021-08-20 17:23:37
  17677. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tag.js
  17678. */
  17679. var _default = {
  17680. // tag 组件
  17681. tag: {
  17682. type: 'primary',
  17683. disabled: false,
  17684. size: 'medium',
  17685. shape: 'square',
  17686. text: '',
  17687. bgColor: '',
  17688. color: '',
  17689. borderColor: '',
  17690. closeColor: '#C6C7CB',
  17691. name: '',
  17692. plainFill: false,
  17693. plain: false,
  17694. closable: false,
  17695. show: true,
  17696. icon: ''
  17697. }
  17698. };
  17699. exports.default = _default;
  17700. /***/ }),
  17701. /* 152 */
  17702. /*!***************************************************************************!*\
  17703. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/text.js ***!
  17704. \***************************************************************************/
  17705. /*! no static exports found */
  17706. /***/ (function(module, exports, __webpack_require__) {
  17707. "use strict";
  17708. Object.defineProperty(exports, "__esModule", {
  17709. value: true
  17710. });
  17711. exports.default = void 0;
  17712. /*
  17713. * @Author : LQ
  17714. * @Description :
  17715. * @version : 1.0
  17716. * @Date : 2021-08-20 16:44:21
  17717. * @LastAuthor : LQ
  17718. * @lastTime : 2021-08-20 17:23:58
  17719. * @FilePath : /u-view2.0/uview-ui/libs/config/props/text.js
  17720. */
  17721. var _default = {
  17722. // text 组件
  17723. text: {
  17724. type: '',
  17725. show: true,
  17726. text: '',
  17727. prefixIcon: '',
  17728. suffixIcon: '',
  17729. mode: '',
  17730. href: '',
  17731. format: '',
  17732. call: false,
  17733. openType: '',
  17734. bold: false,
  17735. block: false,
  17736. lines: '',
  17737. color: '#303133',
  17738. size: 15,
  17739. iconStyle: function iconStyle() {
  17740. return {
  17741. fontSize: '15px'
  17742. };
  17743. },
  17744. decoration: 'none',
  17745. margin: 0,
  17746. lineHeight: '',
  17747. align: 'left',
  17748. wordWrap: 'normal'
  17749. }
  17750. };
  17751. exports.default = _default;
  17752. /***/ }),
  17753. /* 153 */
  17754. /*!*******************************************************************************!*\
  17755. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/textarea.js ***!
  17756. \*******************************************************************************/
  17757. /*! no static exports found */
  17758. /***/ (function(module, exports, __webpack_require__) {
  17759. "use strict";
  17760. Object.defineProperty(exports, "__esModule", {
  17761. value: true
  17762. });
  17763. exports.default = void 0;
  17764. /*
  17765. * @Author : LQ
  17766. * @Description :
  17767. * @version : 1.0
  17768. * @Date : 2021-08-20 16:44:21
  17769. * @LastAuthor : LQ
  17770. * @lastTime : 2021-08-20 17:24:32
  17771. * @FilePath : /u-view2.0/uview-ui/libs/config/props/textarea.js
  17772. */
  17773. var _default = {
  17774. // textarea 组件
  17775. textarea: {
  17776. value: '',
  17777. placeholder: '',
  17778. placeholderClass: 'textarea-placeholder',
  17779. placeholderStyle: 'color: #c0c4cc',
  17780. height: 70,
  17781. confirmType: 'done',
  17782. disabled: false,
  17783. count: false,
  17784. focus: false,
  17785. autoHeight: false,
  17786. fixed: false,
  17787. cursorSpacing: 0,
  17788. cursor: '',
  17789. showConfirmBar: true,
  17790. selectionStart: -1,
  17791. selectionEnd: -1,
  17792. adjustPosition: true,
  17793. disableDefaultPadding: false,
  17794. holdKeyboard: false,
  17795. maxlength: 140,
  17796. border: 'surround',
  17797. formatter: null
  17798. }
  17799. };
  17800. exports.default = _default;
  17801. /***/ }),
  17802. /* 154 */
  17803. /*!****************************************************************************!*\
  17804. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/toast.js ***!
  17805. \****************************************************************************/
  17806. /*! no static exports found */
  17807. /***/ (function(module, exports, __webpack_require__) {
  17808. "use strict";
  17809. Object.defineProperty(exports, "__esModule", {
  17810. value: true
  17811. });
  17812. exports.default = void 0;
  17813. /*
  17814. * @Author : LQ
  17815. * @Description :
  17816. * @version : 1.0
  17817. * @Date : 2021-08-20 16:44:21
  17818. * @LastAuthor : LQ
  17819. * @lastTime : 2021-08-20 17:07:07
  17820. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toast.js
  17821. */
  17822. var _default = {
  17823. // toast组件
  17824. toast: {
  17825. zIndex: 10090,
  17826. loading: false,
  17827. text: '',
  17828. icon: '',
  17829. type: '',
  17830. loadingMode: '',
  17831. show: '',
  17832. overlay: false,
  17833. position: 'center',
  17834. params: function params() {},
  17835. duration: 2000,
  17836. isTab: false,
  17837. url: '',
  17838. callback: null,
  17839. back: false
  17840. }
  17841. };
  17842. exports.default = _default;
  17843. /***/ }),
  17844. /* 155 */
  17845. /*!******************************************************************************!*\
  17846. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/toolbar.js ***!
  17847. \******************************************************************************/
  17848. /*! no static exports found */
  17849. /***/ (function(module, exports, __webpack_require__) {
  17850. "use strict";
  17851. Object.defineProperty(exports, "__esModule", {
  17852. value: true
  17853. });
  17854. exports.default = void 0;
  17855. /*
  17856. * @Author : LQ
  17857. * @Description :
  17858. * @version : 1.0
  17859. * @Date : 2021-08-20 16:44:21
  17860. * @LastAuthor : LQ
  17861. * @lastTime : 2021-08-20 17:24:55
  17862. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toolbar.js
  17863. */
  17864. var _default = {
  17865. // toolbar 组件
  17866. toolbar: {
  17867. show: true,
  17868. cancelText: '取消',
  17869. confirmText: '确认',
  17870. cancelColor: '#909193',
  17871. confirmColor: '#3c9cff',
  17872. title: ''
  17873. }
  17874. };
  17875. exports.default = _default;
  17876. /***/ }),
  17877. /* 156 */
  17878. /*!******************************************************************************!*\
  17879. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/tooltip.js ***!
  17880. \******************************************************************************/
  17881. /*! no static exports found */
  17882. /***/ (function(module, exports, __webpack_require__) {
  17883. "use strict";
  17884. Object.defineProperty(exports, "__esModule", {
  17885. value: true
  17886. });
  17887. exports.default = void 0;
  17888. /*
  17889. * @Author : LQ
  17890. * @Description :
  17891. * @version : 1.0
  17892. * @Date : 2021-08-20 16:44:21
  17893. * @LastAuthor : LQ
  17894. * @lastTime : 2021-08-20 17:25:14
  17895. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tooltip.js
  17896. */
  17897. var _default = {
  17898. // tooltip 组件
  17899. tooltip: {
  17900. text: '',
  17901. copyText: '',
  17902. size: 14,
  17903. color: '#606266',
  17904. bgColor: 'transparent',
  17905. direction: 'top',
  17906. zIndex: 10071,
  17907. showCopy: true,
  17908. buttons: function buttons() {
  17909. return [];
  17910. },
  17911. overlay: true,
  17912. showToast: true
  17913. }
  17914. };
  17915. exports.default = _default;
  17916. /***/ }),
  17917. /* 157 */
  17918. /*!*********************************************************************************!*\
  17919. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/transition.js ***!
  17920. \*********************************************************************************/
  17921. /*! no static exports found */
  17922. /***/ (function(module, exports, __webpack_require__) {
  17923. "use strict";
  17924. Object.defineProperty(exports, "__esModule", {
  17925. value: true
  17926. });
  17927. exports.default = void 0;
  17928. /*
  17929. * @Author : LQ
  17930. * @Description :
  17931. * @version : 1.0
  17932. * @Date : 2021-08-20 16:44:21
  17933. * @LastAuthor : LQ
  17934. * @lastTime : 2021-08-20 16:59:00
  17935. * @FilePath : /u-view2.0/uview-ui/libs/config/props/transition.js
  17936. */
  17937. var _default = {
  17938. // transition动画组件的props
  17939. transition: {
  17940. show: false,
  17941. mode: 'fade',
  17942. duration: '300',
  17943. timingFunction: 'ease-out'
  17944. }
  17945. };
  17946. exports.default = _default;
  17947. /***/ }),
  17948. /* 158 */
  17949. /*!*****************************************************************************!*\
  17950. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/props/upload.js ***!
  17951. \*****************************************************************************/
  17952. /*! no static exports found */
  17953. /***/ (function(module, exports, __webpack_require__) {
  17954. "use strict";
  17955. Object.defineProperty(exports, "__esModule", {
  17956. value: true
  17957. });
  17958. exports.default = void 0;
  17959. /*
  17960. * @Author : LQ
  17961. * @Description :
  17962. * @version : 1.0
  17963. * @Date : 2021-08-20 16:44:21
  17964. * @LastAuthor : LQ
  17965. * @lastTime : 2021-08-20 17:09:50
  17966. * @FilePath : /u-view2.0/uview-ui/libs/config/props/upload.js
  17967. */
  17968. var _default = {
  17969. // upload组件
  17970. upload: {
  17971. accept: 'image',
  17972. capture: function capture() {
  17973. return ['album', 'camera'];
  17974. },
  17975. compressed: true,
  17976. camera: 'back',
  17977. maxDuration: 60,
  17978. uploadIcon: 'camera-fill',
  17979. uploadIconColor: '#D3D4D6',
  17980. useBeforeRead: false,
  17981. previewFullImage: true,
  17982. maxCount: 52,
  17983. disabled: false,
  17984. imageMode: 'aspectFill',
  17985. name: '',
  17986. sizeType: function sizeType() {
  17987. return ['original', 'compressed'];
  17988. },
  17989. multiple: false,
  17990. deletable: true,
  17991. maxSize: Number.MAX_VALUE,
  17992. fileList: function fileList() {
  17993. return [];
  17994. },
  17995. uploadText: '',
  17996. width: 80,
  17997. height: 80,
  17998. previewImage: true
  17999. }
  18000. };
  18001. exports.default = _default;
  18002. /***/ }),
  18003. /* 159 */
  18004. /*!***********************************************************************!*\
  18005. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/config/zIndex.js ***!
  18006. \***********************************************************************/
  18007. /*! no static exports found */
  18008. /***/ (function(module, exports, __webpack_require__) {
  18009. "use strict";
  18010. Object.defineProperty(exports, "__esModule", {
  18011. value: true
  18012. });
  18013. exports.default = void 0;
  18014. // uniapp在H5中各API的z-index值如下:
  18015. /**
  18016. * actionsheet: 999
  18017. * modal: 999
  18018. * navigate: 998
  18019. * tabbar: 998
  18020. * toast: 999
  18021. */
  18022. var _default = {
  18023. toast: 10090,
  18024. noNetwork: 10080,
  18025. // popup包含popup,actionsheet,keyboard,picker的值
  18026. popup: 10075,
  18027. mask: 10070,
  18028. navbar: 980,
  18029. topTips: 975,
  18030. sticky: 970,
  18031. indexListSticky: 965
  18032. };
  18033. exports.default = _default;
  18034. /***/ }),
  18035. /* 160 */
  18036. /*!***************************************************************************!*\
  18037. !*** E:/shoppingTemplate/node_modules/uview-ui/libs/function/platform.js ***!
  18038. \***************************************************************************/
  18039. /*! no static exports found */
  18040. /***/ (function(module, exports, __webpack_require__) {
  18041. "use strict";
  18042. Object.defineProperty(exports, "__esModule", {
  18043. value: true
  18044. });
  18045. exports.default = void 0;
  18046. /**
  18047. * 注意:
  18048. * 此部分内容,在vue-cli模式下,需要在vue.config.js加入如下内容才有效:
  18049. * module.exports = {
  18050. * transpileDependencies: ['uview-v2']
  18051. * }
  18052. */
  18053. var platform = 'none';
  18054. platform = 'vue2';
  18055. platform = 'toutiao';
  18056. platform = 'mp';
  18057. var _default = platform;
  18058. exports.default = _default;
  18059. /***/ }),
  18060. /* 161 */,
  18061. /* 162 */,
  18062. /* 163 */,
  18063. /* 164 */,
  18064. /* 165 */,
  18065. /* 166 */,
  18066. /* 167 */,
  18067. /* 168 */,
  18068. /* 169 */,
  18069. /* 170 */,
  18070. /* 171 */,
  18071. /* 172 */,
  18072. /* 173 */,
  18073. /* 174 */,
  18074. /* 175 */,
  18075. /* 176 */,
  18076. /* 177 */,
  18077. /* 178 */,
  18078. /* 179 */,
  18079. /* 180 */,
  18080. /* 181 */,
  18081. /* 182 */,
  18082. /* 183 */,
  18083. /* 184 */,
  18084. /* 185 */,
  18085. /* 186 */,
  18086. /* 187 */,
  18087. /* 188 */,
  18088. /* 189 */,
  18089. /* 190 */,
  18090. /* 191 */,
  18091. /* 192 */,
  18092. /* 193 */,
  18093. /* 194 */,
  18094. /* 195 */,
  18095. /* 196 */,
  18096. /* 197 */,
  18097. /* 198 */,
  18098. /* 199 */,
  18099. /* 200 */,
  18100. /* 201 */,
  18101. /* 202 */,
  18102. /* 203 */,
  18103. /* 204 */,
  18104. /* 205 */,
  18105. /* 206 */,
  18106. /* 207 */,
  18107. /* 208 */,
  18108. /* 209 */,
  18109. /* 210 */,
  18110. /* 211 */,
  18111. /* 212 */,
  18112. /* 213 */,
  18113. /* 214 */,
  18114. /* 215 */,
  18115. /* 216 */
  18116. /*!******************************************************************************!*\
  18117. !*** E:/shoppingTemplate/node_modules/uview-ui/components/u-search/props.js ***!
  18118. \******************************************************************************/
  18119. /*! no static exports found */
  18120. /***/ (function(module, exports, __webpack_require__) {
  18121. "use strict";
  18122. /* WEBPACK VAR INJECTION */(function(uni) {
  18123. Object.defineProperty(exports, "__esModule", {
  18124. value: true
  18125. });
  18126. exports.default = void 0;
  18127. var _default = {
  18128. props: {
  18129. // 搜索框形状,round-圆形,square-方形
  18130. shape: {
  18131. type: String,
  18132. default: uni.$u.props.search.shape
  18133. },
  18134. // 搜索框背景色,默认值#f2f2f2
  18135. bgColor: {
  18136. type: String,
  18137. default: uni.$u.props.search.bgColor
  18138. },
  18139. // 占位提示文字
  18140. placeholder: {
  18141. type: String,
  18142. default: uni.$u.props.search.placeholder
  18143. },
  18144. // 是否启用清除控件
  18145. clearabled: {
  18146. type: Boolean,
  18147. default: uni.$u.props.search.clearabled
  18148. },
  18149. // 是否自动聚焦
  18150. focus: {
  18151. type: Boolean,
  18152. default: uni.$u.props.search.focus
  18153. },
  18154. // 是否在搜索框右侧显示取消按钮
  18155. showAction: {
  18156. type: Boolean,
  18157. default: uni.$u.props.search.showAction
  18158. },
  18159. // 右边控件的样式
  18160. actionStyle: {
  18161. type: Object,
  18162. default: uni.$u.props.search.actionStyle
  18163. },
  18164. // 取消按钮文字
  18165. actionText: {
  18166. type: String,
  18167. default: uni.$u.props.search.actionText
  18168. },
  18169. // 输入框内容对齐方式,可选值为 left|center|right
  18170. inputAlign: {
  18171. type: String,
  18172. default: uni.$u.props.search.inputAlign
  18173. },
  18174. // input输入框的样式,可以定义文字颜色,大小等,对象形式
  18175. inputStyle: {
  18176. type: Object,
  18177. default: uni.$u.props.search.inputStyle
  18178. },
  18179. // 是否启用输入框
  18180. disabled: {
  18181. type: Boolean,
  18182. default: uni.$u.props.search.disabled
  18183. },
  18184. // 边框颜色
  18185. borderColor: {
  18186. type: String,
  18187. default: uni.$u.props.search.borderColor
  18188. },
  18189. // 搜索图标的颜色,默认同输入框字体颜色
  18190. searchIconColor: {
  18191. type: String,
  18192. default: uni.$u.props.search.searchIconColor
  18193. },
  18194. // 输入框字体颜色
  18195. color: {
  18196. type: String,
  18197. default: uni.$u.props.search.color
  18198. },
  18199. // placeholder的颜色
  18200. placeholderColor: {
  18201. type: String,
  18202. default: uni.$u.props.search.placeholderColor
  18203. },
  18204. // 左边输入框的图标,可以为uView图标名称或图片路径
  18205. searchIcon: {
  18206. type: String,
  18207. default: uni.$u.props.search.searchIcon
  18208. },
  18209. searchIconSize: {
  18210. type: [Number, String],
  18211. default: uni.$u.props.search.searchIconSize
  18212. },
  18213. // 组件与其他上下左右元素之间的距离,带单位的字符串形式,如"30px"、"30px 20px"等写法
  18214. margin: {
  18215. type: String,
  18216. default: uni.$u.props.search.margin
  18217. },
  18218. // 开启showAction时,是否在input获取焦点时才显示
  18219. animation: {
  18220. type: Boolean,
  18221. default: uni.$u.props.search.animation
  18222. },
  18223. // 输入框的初始化内容
  18224. value: {
  18225. type: String,
  18226. default: uni.$u.props.search.value
  18227. },
  18228. // 输入框最大能输入的长度,-1为不限制长度(来自uniapp文档)
  18229. maxlength: {
  18230. type: [String, Number],
  18231. default: uni.$u.props.search.maxlength
  18232. },
  18233. // 搜索框高度,单位px
  18234. height: {
  18235. type: [String, Number],
  18236. default: uni.$u.props.search.height
  18237. },
  18238. // 搜索框左侧文本
  18239. label: {
  18240. type: [String, Number, null],
  18241. default: uni.$u.props.search.label
  18242. }
  18243. }
  18244. };
  18245. exports.default = _default;
  18246. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  18247. /***/ }),
  18248. /* 217 */,
  18249. /* 218 */,
  18250. /* 219 */,
  18251. /* 220 */,
  18252. /* 221 */,
  18253. /* 222 */,
  18254. /* 223 */,
  18255. /* 224 */
  18256. /*!******************************************************************************!*\
  18257. !*** E:/shoppingTemplate/node_modules/uview-ui/components/u-sticky/props.js ***!
  18258. \******************************************************************************/
  18259. /*! no static exports found */
  18260. /***/ (function(module, exports, __webpack_require__) {
  18261. "use strict";
  18262. /* WEBPACK VAR INJECTION */(function(uni) {
  18263. Object.defineProperty(exports, "__esModule", {
  18264. value: true
  18265. });
  18266. exports.default = void 0;
  18267. var _default = {
  18268. props: {
  18269. // 吸顶容器到顶部某个距离的时候,进行吸顶,在H5平台,NavigationBar为44px
  18270. offsetTop: {
  18271. type: [String, Number],
  18272. default: uni.$u.props.sticky.offsetTop
  18273. },
  18274. // 自定义导航栏的高度
  18275. customNavHeight: {
  18276. type: [String, Number],
  18277. default: uni.$u.props.sticky.customNavHeight
  18278. },
  18279. // 是否开启吸顶功能
  18280. disabled: {
  18281. type: Boolean,
  18282. default: uni.$u.props.sticky.disabled
  18283. },
  18284. // 吸顶区域的背景颜色
  18285. bgColor: {
  18286. type: String,
  18287. default: uni.$u.props.sticky.bgColor
  18288. },
  18289. // z-index值
  18290. zIndex: {
  18291. type: [String, Number],
  18292. default: uni.$u.props.sticky.zIndex
  18293. },
  18294. // 列表中的索引值
  18295. index: {
  18296. type: [String, Number],
  18297. default: uni.$u.props.sticky.index
  18298. }
  18299. }
  18300. };
  18301. exports.default = _default;
  18302. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  18303. /***/ }),
  18304. /* 225 */,
  18305. /* 226 */,
  18306. /* 227 */,
  18307. /* 228 */,
  18308. /* 229 */,
  18309. /* 230 */,
  18310. /* 231 */,
  18311. /* 232 */
  18312. /*!****************************************************************************!*\
  18313. !*** E:/shoppingTemplate/node_modules/uview-ui/components/u-tabs/props.js ***!
  18314. \****************************************************************************/
  18315. /*! no static exports found */
  18316. /***/ (function(module, exports, __webpack_require__) {
  18317. "use strict";
  18318. /* WEBPACK VAR INJECTION */(function(uni) {
  18319. Object.defineProperty(exports, "__esModule", {
  18320. value: true
  18321. });
  18322. exports.default = void 0;
  18323. var _default = {
  18324. props: {
  18325. // 滑块的移动过渡时间,单位ms
  18326. duration: {
  18327. type: Number,
  18328. default: uni.$u.props.tabs.duration
  18329. },
  18330. // tabs标签数组
  18331. list: {
  18332. type: Array,
  18333. default: uni.$u.props.tabs.list
  18334. },
  18335. // 滑块颜色
  18336. lineColor: {
  18337. type: String,
  18338. default: uni.$u.props.tabs.lineColor
  18339. },
  18340. // 菜单选择中时的样式
  18341. activeStyle: {
  18342. type: [String, Object],
  18343. default: uni.$u.props.tabs.activeStyle
  18344. },
  18345. // 菜单非选中时的样式
  18346. inactiveStyle: {
  18347. type: [String, Object],
  18348. default: uni.$u.props.tabs.inactiveStyle
  18349. },
  18350. // 滑块长度
  18351. lineWidth: {
  18352. type: [String, Number],
  18353. default: uni.$u.props.tabs.lineWidth
  18354. },
  18355. // 滑块高度
  18356. lineHeight: {
  18357. type: [String, Number],
  18358. default: uni.$u.props.tabs.lineHeight
  18359. },
  18360. // 滑块背景显示大小,当滑块背景设置为图片时使用
  18361. lineBgSize: {
  18362. type: String,
  18363. default: uni.$u.props.tabs.lineBgSize
  18364. },
  18365. // 菜单item的样式
  18366. itemStyle: {
  18367. type: [String, Object],
  18368. default: uni.$u.props.tabs.itemStyle
  18369. },
  18370. // 菜单是否可滚动
  18371. scrollable: {
  18372. type: Boolean,
  18373. default: uni.$u.props.tabs.scrollable
  18374. },
  18375. // 当前选中标签的索引
  18376. current: {
  18377. type: [Number, String],
  18378. default: uni.$u.props.tabs.current
  18379. },
  18380. // 默认读取的键名
  18381. keyName: {
  18382. type: String,
  18383. default: uni.$u.props.tabs.keyName
  18384. }
  18385. }
  18386. };
  18387. exports.default = _default;
  18388. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  18389. /***/ }),
  18390. /* 233 */,
  18391. /* 234 */,
  18392. /* 235 */,
  18393. /* 236 */,
  18394. /* 237 */,
  18395. /* 238 */,
  18396. /* 239 */,
  18397. /* 240 */,
  18398. /* 241 */,
  18399. /* 242 */,
  18400. /* 243 */,
  18401. /* 244 */,
  18402. /* 245 */,
  18403. /* 246 */,
  18404. /* 247 */,
  18405. /* 248 */,
  18406. /* 249 */,
  18407. /* 250 */,
  18408. /* 251 */,
  18409. /* 252 */,
  18410. /* 253 */,
  18411. /* 254 */,
  18412. /* 255 */,
  18413. /* 256 */,
  18414. /* 257 */,
  18415. /* 258 */,
  18416. /* 259 */,
  18417. /* 260 */,
  18418. /* 261 */,
  18419. /* 262 */,
  18420. /* 263 */,
  18421. /* 264 */,
  18422. /* 265 */
  18423. /*!****************************************************************************!*\
  18424. !*** E:/shoppingTemplate/node_modules/uview-ui/components/u-icon/icons.js ***!
  18425. \****************************************************************************/
  18426. /*! no static exports found */
  18427. /***/ (function(module, exports, __webpack_require__) {
  18428. "use strict";
  18429. Object.defineProperty(exports, "__esModule", {
  18430. value: true
  18431. });
  18432. exports.default = void 0;
  18433. var _default = {
  18434. 'uicon-level': "\uE693",
  18435. 'uicon-column-line': "\uE68E",
  18436. 'uicon-checkbox-mark': "\uE807",
  18437. 'uicon-folder': "\uE7F5",
  18438. 'uicon-movie': "\uE7F6",
  18439. 'uicon-star-fill': "\uE669",
  18440. 'uicon-star': "\uE65F",
  18441. 'uicon-phone-fill': "\uE64F",
  18442. 'uicon-phone': "\uE622",
  18443. 'uicon-apple-fill': "\uE881",
  18444. 'uicon-chrome-circle-fill': "\uE885",
  18445. 'uicon-backspace': "\uE67B",
  18446. 'uicon-attach': "\uE632",
  18447. 'uicon-cut': "\uE948",
  18448. 'uicon-empty-car': "\uE602",
  18449. 'uicon-empty-coupon': "\uE682",
  18450. 'uicon-empty-address': "\uE646",
  18451. 'uicon-empty-favor': "\uE67C",
  18452. 'uicon-empty-permission': "\uE686",
  18453. 'uicon-empty-news': "\uE687",
  18454. 'uicon-empty-search': "\uE664",
  18455. 'uicon-github-circle-fill': "\uE887",
  18456. 'uicon-rmb': "\uE608",
  18457. 'uicon-person-delete-fill': "\uE66A",
  18458. 'uicon-reload': "\uE788",
  18459. 'uicon-order': "\uE68F",
  18460. 'uicon-server-man': "\uE6BC",
  18461. 'uicon-search': "\uE62A",
  18462. 'uicon-fingerprint': "\uE955",
  18463. 'uicon-more-dot-fill': "\uE630",
  18464. 'uicon-scan': "\uE662",
  18465. 'uicon-share-square': "\uE60B",
  18466. 'uicon-map': "\uE61D",
  18467. 'uicon-map-fill': "\uE64E",
  18468. 'uicon-tags': "\uE629",
  18469. 'uicon-tags-fill': "\uE651",
  18470. 'uicon-bookmark-fill': "\uE63B",
  18471. 'uicon-bookmark': "\uE60A",
  18472. 'uicon-eye': "\uE613",
  18473. 'uicon-eye-fill': "\uE641",
  18474. 'uicon-mic': "\uE64A",
  18475. 'uicon-mic-off': "\uE649",
  18476. 'uicon-calendar': "\uE66E",
  18477. 'uicon-calendar-fill': "\uE634",
  18478. 'uicon-trash': "\uE623",
  18479. 'uicon-trash-fill': "\uE658",
  18480. 'uicon-play-left': "\uE66D",
  18481. 'uicon-play-right': "\uE610",
  18482. 'uicon-minus': "\uE618",
  18483. 'uicon-plus': "\uE62D",
  18484. 'uicon-info': "\uE653",
  18485. 'uicon-info-circle': "\uE7D2",
  18486. 'uicon-info-circle-fill': "\uE64B",
  18487. 'uicon-question': "\uE715",
  18488. 'uicon-error': "\uE6D3",
  18489. 'uicon-close': "\uE685",
  18490. 'uicon-checkmark': "\uE6A8",
  18491. 'uicon-android-circle-fill': "\uE67E",
  18492. 'uicon-android-fill': "\uE67D",
  18493. 'uicon-ie': "\uE87B",
  18494. 'uicon-IE-circle-fill': "\uE889",
  18495. 'uicon-google': "\uE87A",
  18496. 'uicon-google-circle-fill': "\uE88A",
  18497. 'uicon-setting-fill': "\uE872",
  18498. 'uicon-setting': "\uE61F",
  18499. 'uicon-minus-square-fill': "\uE855",
  18500. 'uicon-plus-square-fill': "\uE856",
  18501. 'uicon-heart': "\uE7DF",
  18502. 'uicon-heart-fill': "\uE851",
  18503. 'uicon-camera': "\uE7D7",
  18504. 'uicon-camera-fill': "\uE870",
  18505. 'uicon-more-circle': "\uE63E",
  18506. 'uicon-more-circle-fill': "\uE645",
  18507. 'uicon-chat': "\uE620",
  18508. 'uicon-chat-fill': "\uE61E",
  18509. 'uicon-bag-fill': "\uE617",
  18510. 'uicon-bag': "\uE619",
  18511. 'uicon-error-circle-fill': "\uE62C",
  18512. 'uicon-error-circle': "\uE624",
  18513. 'uicon-close-circle': "\uE63F",
  18514. 'uicon-close-circle-fill': "\uE637",
  18515. 'uicon-checkmark-circle': "\uE63D",
  18516. 'uicon-checkmark-circle-fill': "\uE635",
  18517. 'uicon-question-circle-fill': "\uE666",
  18518. 'uicon-question-circle': "\uE625",
  18519. 'uicon-share': "\uE631",
  18520. 'uicon-share-fill': "\uE65E",
  18521. 'uicon-shopping-cart': "\uE621",
  18522. 'uicon-shopping-cart-fill': "\uE65D",
  18523. 'uicon-bell': "\uE609",
  18524. 'uicon-bell-fill': "\uE640",
  18525. 'uicon-list': "\uE650",
  18526. 'uicon-list-dot': "\uE616",
  18527. 'uicon-zhihu': "\uE6BA",
  18528. 'uicon-zhihu-circle-fill': "\uE709",
  18529. 'uicon-zhifubao': "\uE6B9",
  18530. 'uicon-zhifubao-circle-fill': "\uE6B8",
  18531. 'uicon-weixin-circle-fill': "\uE6B1",
  18532. 'uicon-weixin-fill': "\uE6B2",
  18533. 'uicon-twitter-circle-fill': "\uE6AB",
  18534. 'uicon-twitter': "\uE6AA",
  18535. 'uicon-taobao-circle-fill': "\uE6A7",
  18536. 'uicon-taobao': "\uE6A6",
  18537. 'uicon-weibo-circle-fill': "\uE6A5",
  18538. 'uicon-weibo': "\uE6A4",
  18539. 'uicon-qq-fill': "\uE6A1",
  18540. 'uicon-qq-circle-fill': "\uE6A0",
  18541. 'uicon-moments-circel-fill': "\uE69A",
  18542. 'uicon-moments': "\uE69B",
  18543. 'uicon-qzone': "\uE695",
  18544. 'uicon-qzone-circle-fill': "\uE696",
  18545. 'uicon-baidu-circle-fill': "\uE680",
  18546. 'uicon-baidu': "\uE681",
  18547. 'uicon-facebook-circle-fill': "\uE68A",
  18548. 'uicon-facebook': "\uE689",
  18549. 'uicon-car': "\uE60C",
  18550. 'uicon-car-fill': "\uE636",
  18551. 'uicon-warning-fill': "\uE64D",
  18552. 'uicon-warning': "\uE694",
  18553. 'uicon-clock-fill': "\uE638",
  18554. 'uicon-clock': "\uE60F",
  18555. 'uicon-edit-pen': "\uE612",
  18556. 'uicon-edit-pen-fill': "\uE66B",
  18557. 'uicon-email': "\uE611",
  18558. 'uicon-email-fill': "\uE642",
  18559. 'uicon-minus-circle': "\uE61B",
  18560. 'uicon-minus-circle-fill': "\uE652",
  18561. 'uicon-plus-circle': "\uE62E",
  18562. 'uicon-plus-circle-fill': "\uE661",
  18563. 'uicon-file-text': "\uE663",
  18564. 'uicon-file-text-fill': "\uE665",
  18565. 'uicon-pushpin': "\uE7E3",
  18566. 'uicon-pushpin-fill': "\uE86E",
  18567. 'uicon-grid': "\uE673",
  18568. 'uicon-grid-fill': "\uE678",
  18569. 'uicon-play-circle': "\uE647",
  18570. 'uicon-play-circle-fill': "\uE655",
  18571. 'uicon-pause-circle-fill': "\uE654",
  18572. 'uicon-pause': "\uE8FA",
  18573. 'uicon-pause-circle': "\uE643",
  18574. 'uicon-eye-off': "\uE648",
  18575. 'uicon-eye-off-outline': "\uE62B",
  18576. 'uicon-gift-fill': "\uE65C",
  18577. 'uicon-gift': "\uE65B",
  18578. 'uicon-rmb-circle-fill': "\uE657",
  18579. 'uicon-rmb-circle': "\uE677",
  18580. 'uicon-kefu-ermai': "\uE656",
  18581. 'uicon-server-fill': "\uE751",
  18582. 'uicon-coupon-fill': "\uE8C4",
  18583. 'uicon-coupon': "\uE8AE",
  18584. 'uicon-integral': "\uE704",
  18585. 'uicon-integral-fill': "\uE703",
  18586. 'uicon-home-fill': "\uE964",
  18587. 'uicon-home': "\uE965",
  18588. 'uicon-hourglass-half-fill': "\uE966",
  18589. 'uicon-hourglass': "\uE967",
  18590. 'uicon-account': "\uE628",
  18591. 'uicon-plus-people-fill': "\uE626",
  18592. 'uicon-minus-people-fill': "\uE615",
  18593. 'uicon-account-fill': "\uE614",
  18594. 'uicon-thumb-down-fill': "\uE726",
  18595. 'uicon-thumb-down': "\uE727",
  18596. 'uicon-thumb-up': "\uE733",
  18597. 'uicon-thumb-up-fill': "\uE72F",
  18598. 'uicon-lock-fill': "\uE979",
  18599. 'uicon-lock-open': "\uE973",
  18600. 'uicon-lock-opened-fill': "\uE974",
  18601. 'uicon-lock': "\uE97A",
  18602. 'uicon-red-packet-fill': "\uE690",
  18603. 'uicon-photo-fill': "\uE98B",
  18604. 'uicon-photo': "\uE98D",
  18605. 'uicon-volume-off-fill': "\uE659",
  18606. 'uicon-volume-off': "\uE644",
  18607. 'uicon-volume-fill': "\uE670",
  18608. 'uicon-volume': "\uE633",
  18609. 'uicon-red-packet': "\uE691",
  18610. 'uicon-download': "\uE63C",
  18611. 'uicon-arrow-up-fill': "\uE6B0",
  18612. 'uicon-arrow-down-fill': "\uE600",
  18613. 'uicon-play-left-fill': "\uE675",
  18614. 'uicon-play-right-fill': "\uE676",
  18615. 'uicon-rewind-left-fill': "\uE679",
  18616. 'uicon-rewind-right-fill': "\uE67A",
  18617. 'uicon-arrow-downward': "\uE604",
  18618. 'uicon-arrow-leftward': "\uE601",
  18619. 'uicon-arrow-rightward': "\uE603",
  18620. 'uicon-arrow-upward': "\uE607",
  18621. 'uicon-arrow-down': "\uE60D",
  18622. 'uicon-arrow-right': "\uE605",
  18623. 'uicon-arrow-left': "\uE60E",
  18624. 'uicon-arrow-up': "\uE606",
  18625. 'uicon-skip-back-left': "\uE674",
  18626. 'uicon-skip-forward-right': "\uE672",
  18627. 'uicon-rewind-right': "\uE66F",
  18628. 'uicon-rewind-left': "\uE671",
  18629. 'uicon-arrow-right-double': "\uE68D",
  18630. 'uicon-arrow-left-double': "\uE68C",
  18631. 'uicon-wifi-off': "\uE668",
  18632. 'uicon-wifi': "\uE667",
  18633. 'uicon-empty-data': "\uE62F",
  18634. 'uicon-empty-history': "\uE684",
  18635. 'uicon-empty-list': "\uE68B",
  18636. 'uicon-empty-page': "\uE627",
  18637. 'uicon-empty-order': "\uE639",
  18638. 'uicon-man': "\uE697",
  18639. 'uicon-woman': "\uE69C",
  18640. 'uicon-man-add': "\uE61C",
  18641. 'uicon-man-add-fill': "\uE64C",
  18642. 'uicon-man-delete': "\uE61A",
  18643. 'uicon-man-delete-fill': "\uE66A",
  18644. 'uicon-zh': "\uE70A",
  18645. 'uicon-en': "\uE692"
  18646. };
  18647. exports.default = _default;
  18648. /***/ }),
  18649. /* 266 */
  18650. /*!****************************************************************************!*\
  18651. !*** E:/shoppingTemplate/node_modules/uview-ui/components/u-icon/props.js ***!
  18652. \****************************************************************************/
  18653. /*! no static exports found */
  18654. /***/ (function(module, exports, __webpack_require__) {
  18655. "use strict";
  18656. /* WEBPACK VAR INJECTION */(function(uni) {
  18657. Object.defineProperty(exports, "__esModule", {
  18658. value: true
  18659. });
  18660. exports.default = void 0;
  18661. var _default = {
  18662. props: {
  18663. // 图标类名
  18664. name: {
  18665. type: String,
  18666. default: uni.$u.props.icon.name
  18667. },
  18668. // 图标颜色,可接受主题色
  18669. color: {
  18670. type: String,
  18671. default: uni.$u.props.icon.color
  18672. },
  18673. // 字体大小,单位px
  18674. size: {
  18675. type: [String, Number],
  18676. default: uni.$u.props.icon.size
  18677. },
  18678. // 是否显示粗体
  18679. bold: {
  18680. type: Boolean,
  18681. default: uni.$u.props.icon.bold
  18682. },
  18683. // 点击图标的时候传递事件出去的index(用于区分点击了哪一个)
  18684. index: {
  18685. type: [String, Number],
  18686. default: uni.$u.props.icon.index
  18687. },
  18688. // 触摸图标时的类名
  18689. hoverClass: {
  18690. type: String,
  18691. default: uni.$u.props.icon.hoverClass
  18692. },
  18693. // 自定义扩展前缀,方便用户扩展自己的图标库
  18694. customPrefix: {
  18695. type: String,
  18696. default: uni.$u.props.icon.customPrefix
  18697. },
  18698. // 图标右边或者下面的文字
  18699. label: {
  18700. type: [String, Number],
  18701. default: uni.$u.props.icon.label
  18702. },
  18703. // label的位置,只能右边或者下边
  18704. labelPos: {
  18705. type: String,
  18706. default: uni.$u.props.icon.labelPos
  18707. },
  18708. // label的大小
  18709. labelSize: {
  18710. type: [String, Number],
  18711. default: uni.$u.props.icon.labelSize
  18712. },
  18713. // label的颜色
  18714. labelColor: {
  18715. type: String,
  18716. default: uni.$u.props.icon.labelColor
  18717. },
  18718. // label与图标的距离
  18719. space: {
  18720. type: [String, Number],
  18721. default: uni.$u.props.icon.space
  18722. },
  18723. // 图片的mode
  18724. imgMode: {
  18725. type: String,
  18726. default: uni.$u.props.icon.imgMode
  18727. },
  18728. // 用于显示图片小图标时,图片的宽度
  18729. width: {
  18730. type: [String, Number],
  18731. default: uni.$u.props.icon.width
  18732. },
  18733. // 用于显示图片小图标时,图片的高度
  18734. height: {
  18735. type: [String, Number],
  18736. default: uni.$u.props.icon.height
  18737. },
  18738. // 用于解决某些情况下,让图标垂直居中的用途
  18739. top: {
  18740. type: [String, Number],
  18741. default: uni.$u.props.icon.top
  18742. },
  18743. // 是否阻止事件传播
  18744. stop: {
  18745. type: Boolean,
  18746. default: uni.$u.props.icon.stop
  18747. }
  18748. }
  18749. };
  18750. exports.default = _default;
  18751. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  18752. /***/ }),
  18753. /* 267 */,
  18754. /* 268 */,
  18755. /* 269 */,
  18756. /* 270 */,
  18757. /* 271 */,
  18758. /* 272 */,
  18759. /* 273 */,
  18760. /* 274 */
  18761. /*!*****************************************************************************!*\
  18762. !*** E:/shoppingTemplate/node_modules/uview-ui/components/u-badge/props.js ***!
  18763. \*****************************************************************************/
  18764. /*! no static exports found */
  18765. /***/ (function(module, exports, __webpack_require__) {
  18766. "use strict";
  18767. /* WEBPACK VAR INJECTION */(function(uni) {
  18768. Object.defineProperty(exports, "__esModule", {
  18769. value: true
  18770. });
  18771. exports.default = void 0;
  18772. var _default = {
  18773. props: {
  18774. // 是否显示圆点
  18775. isDot: {
  18776. type: Boolean,
  18777. default: uni.$u.props.badge.isDot
  18778. },
  18779. // 显示的内容
  18780. value: {
  18781. type: [Number, String],
  18782. default: uni.$u.props.badge.value
  18783. },
  18784. // 是否显示
  18785. show: {
  18786. type: Boolean,
  18787. default: uni.$u.props.badge.show
  18788. },
  18789. // 最大值,超过最大值会显示 '{max}+'
  18790. max: {
  18791. type: [Number, String],
  18792. default: uni.$u.props.badge.max
  18793. },
  18794. // 主题类型,error|warning|success|primary
  18795. type: {
  18796. type: String,
  18797. default: uni.$u.props.badge.type
  18798. },
  18799. // 当数值为 0 时,是否展示 Badge
  18800. showZero: {
  18801. type: Boolean,
  18802. default: uni.$u.props.badge.showZero
  18803. },
  18804. // 背景颜色,优先级比type高,如设置,type参数会失效
  18805. bgColor: {
  18806. type: [String, null],
  18807. default: uni.$u.props.badge.bgColor
  18808. },
  18809. // 字体颜色
  18810. color: {
  18811. type: [String, null],
  18812. default: uni.$u.props.badge.color
  18813. },
  18814. // 徽标形状,circle-四角均为圆角,horn-左下角为直角
  18815. shape: {
  18816. type: String,
  18817. default: uni.$u.props.badge.shape
  18818. },
  18819. // 设置数字的显示方式,overflow|ellipsis|limit
  18820. // overflow会根据max字段判断,超出显示`${max}+`
  18821. // ellipsis会根据max判断,超出显示`${max}...`
  18822. // limit会依据1000作为判断条件,超出1000,显示`${value/1000}K`,比如2.2k、3.34w,最多保留2位小数
  18823. numberType: {
  18824. type: String,
  18825. default: uni.$u.props.badge.numberType
  18826. },
  18827. // 设置badge的位置偏移,格式为 [x, y],也即设置的为top和right的值,absolute为true时有效
  18828. offset: {
  18829. type: Array,
  18830. default: uni.$u.props.badge.offset
  18831. },
  18832. // 是否反转背景和字体颜色
  18833. inverted: {
  18834. type: Boolean,
  18835. default: uni.$u.props.badge.inverted
  18836. },
  18837. // 是否绝对定位
  18838. absolute: {
  18839. type: Boolean,
  18840. default: uni.$u.props.badge.absolute
  18841. }
  18842. }
  18843. };
  18844. exports.default = _default;
  18845. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  18846. /***/ }),
  18847. /* 275 */,
  18848. /* 276 */,
  18849. /* 277 */,
  18850. /* 278 */,
  18851. /* 279 */,
  18852. /* 280 */,
  18853. /* 281 */,
  18854. /* 282 */,
  18855. /* 283 */,
  18856. /* 284 */,
  18857. /* 285 */,
  18858. /* 286 */,
  18859. /* 287 */,
  18860. /* 288 */,
  18861. /* 289 */,
  18862. /* 290 */,
  18863. /* 291 */,
  18864. /* 292 */,
  18865. /* 293 */,
  18866. /* 294 */,
  18867. /* 295 */,
  18868. /* 296 */,
  18869. /* 297 */,
  18870. /* 298 */,
  18871. /* 299 */,
  18872. /* 300 */,
  18873. /* 301 */,
  18874. /* 302 */,
  18875. /* 303 */,
  18876. /* 304 */,
  18877. /* 305 */,
  18878. /* 306 */,
  18879. /* 307 */,
  18880. /* 308 */,
  18881. /* 309 */,
  18882. /* 310 */,
  18883. /* 311 */,
  18884. /* 312 */,
  18885. /* 313 */
  18886. /*!********************************************************************************************!*\
  18887. !*** E:/shoppingTemplate/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/index.js ***!
  18888. \********************************************************************************************/
  18889. /*! no static exports found */
  18890. /***/ (function(module, exports, __webpack_require__) {
  18891. "use strict";
  18892. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  18893. Object.defineProperty(exports, "__esModule", {
  18894. value: true
  18895. });
  18896. exports.default = void 0;
  18897. var _en = _interopRequireDefault(__webpack_require__(/*! ./en.json */ 314));
  18898. var _zhHans = _interopRequireDefault(__webpack_require__(/*! ./zh-Hans.json */ 315));
  18899. var _zhHant = _interopRequireDefault(__webpack_require__(/*! ./zh-Hant.json */ 316));
  18900. var _default = {
  18901. en: _en.default,
  18902. 'zh-Hans': _zhHans.default,
  18903. 'zh-Hant': _zhHant.default
  18904. };
  18905. exports.default = _default;
  18906. /***/ }),
  18907. /* 314 */
  18908. /*!*******************************************************************************************!*\
  18909. !*** E:/shoppingTemplate/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/en.json ***!
  18910. \*******************************************************************************************/
  18911. /*! exports provided: uni-goods-nav.options.shop, uni-goods-nav.options.cart, uni-goods-nav.buttonGroup.addToCart, uni-goods-nav.buttonGroup.buyNow, default */
  18912. /***/ (function(module) {
  18913. module.exports = JSON.parse("{\"uni-goods-nav.options.shop\":\"shop\",\"uni-goods-nav.options.cart\":\"cart\",\"uni-goods-nav.buttonGroup.addToCart\":\"add to cart\",\"uni-goods-nav.buttonGroup.buyNow\":\"buy now\"}");
  18914. /***/ }),
  18915. /* 315 */
  18916. /*!************************************************************************************************!*\
  18917. !*** E:/shoppingTemplate/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/zh-Hans.json ***!
  18918. \************************************************************************************************/
  18919. /*! exports provided: uni-goods-nav.options.shop, uni-goods-nav.options.cart, uni-goods-nav.buttonGroup.addToCart, uni-goods-nav.buttonGroup.buyNow, default */
  18920. /***/ (function(module) {
  18921. module.exports = JSON.parse("{\"uni-goods-nav.options.shop\":\"店铺\",\"uni-goods-nav.options.cart\":\"购物车\",\"uni-goods-nav.buttonGroup.addToCart\":\"加入购物车\",\"uni-goods-nav.buttonGroup.buyNow\":\"立即购买\"}");
  18922. /***/ }),
  18923. /* 316 */
  18924. /*!************************************************************************************************!*\
  18925. !*** E:/shoppingTemplate/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/zh-Hant.json ***!
  18926. \************************************************************************************************/
  18927. /*! exports provided: uni-goods-nav.options.shop, uni-goods-nav.options.cart, uni-goods-nav.buttonGroup.addToCart, uni-goods-nav.buttonGroup.buyNow, default */
  18928. /***/ (function(module) {
  18929. module.exports = JSON.parse("{\"uni-goods-nav.options.shop\":\"店鋪\",\"uni-goods-nav.options.cart\":\"購物車\",\"uni-goods-nav.buttonGroup.addToCart\":\"加入購物車\",\"uni-goods-nav.buttonGroup.buyNow\":\"立即購買\"}");
  18930. /***/ }),
  18931. /* 317 */,
  18932. /* 318 */,
  18933. /* 319 */,
  18934. /* 320 */,
  18935. /* 321 */,
  18936. /* 322 */,
  18937. /* 323 */,
  18938. /* 324 */
  18939. /*!*******************************************************************************!*\
  18940. !*** E:/shoppingTemplate/uni_modules/uni-icons/components/uni-icons/icons.js ***!
  18941. \*******************************************************************************/
  18942. /*! no static exports found */
  18943. /***/ (function(module, exports, __webpack_require__) {
  18944. "use strict";
  18945. Object.defineProperty(exports, "__esModule", {
  18946. value: true
  18947. });
  18948. exports.default = void 0;
  18949. var _default = {
  18950. "id": "2852637",
  18951. "name": "uniui图标库",
  18952. "font_family": "uniicons",
  18953. "css_prefix_text": "uniui-",
  18954. "description": "",
  18955. "glyphs": [{
  18956. "icon_id": "25027049",
  18957. "name": "yanse",
  18958. "font_class": "color",
  18959. "unicode": "e6cf",
  18960. "unicode_decimal": 59087
  18961. }, {
  18962. "icon_id": "25027048",
  18963. "name": "wallet",
  18964. "font_class": "wallet",
  18965. "unicode": "e6b1",
  18966. "unicode_decimal": 59057
  18967. }, {
  18968. "icon_id": "25015720",
  18969. "name": "settings-filled",
  18970. "font_class": "settings-filled",
  18971. "unicode": "e6ce",
  18972. "unicode_decimal": 59086
  18973. }, {
  18974. "icon_id": "25015434",
  18975. "name": "shimingrenzheng-filled",
  18976. "font_class": "auth-filled",
  18977. "unicode": "e6cc",
  18978. "unicode_decimal": 59084
  18979. }, {
  18980. "icon_id": "24934246",
  18981. "name": "shop-filled",
  18982. "font_class": "shop-filled",
  18983. "unicode": "e6cd",
  18984. "unicode_decimal": 59085
  18985. }, {
  18986. "icon_id": "24934159",
  18987. "name": "staff-filled-01",
  18988. "font_class": "staff-filled",
  18989. "unicode": "e6cb",
  18990. "unicode_decimal": 59083
  18991. }, {
  18992. "icon_id": "24932461",
  18993. "name": "VIP-filled",
  18994. "font_class": "vip-filled",
  18995. "unicode": "e6c6",
  18996. "unicode_decimal": 59078
  18997. }, {
  18998. "icon_id": "24932462",
  18999. "name": "plus_circle_fill",
  19000. "font_class": "plus-filled",
  19001. "unicode": "e6c7",
  19002. "unicode_decimal": 59079
  19003. }, {
  19004. "icon_id": "24932463",
  19005. "name": "folder_add-filled",
  19006. "font_class": "folder-add-filled",
  19007. "unicode": "e6c8",
  19008. "unicode_decimal": 59080
  19009. }, {
  19010. "icon_id": "24932464",
  19011. "name": "yanse-filled",
  19012. "font_class": "color-filled",
  19013. "unicode": "e6c9",
  19014. "unicode_decimal": 59081
  19015. }, {
  19016. "icon_id": "24932465",
  19017. "name": "tune-filled",
  19018. "font_class": "tune-filled",
  19019. "unicode": "e6ca",
  19020. "unicode_decimal": 59082
  19021. }, {
  19022. "icon_id": "24932455",
  19023. "name": "a-rilidaka-filled",
  19024. "font_class": "calendar-filled",
  19025. "unicode": "e6c0",
  19026. "unicode_decimal": 59072
  19027. }, {
  19028. "icon_id": "24932456",
  19029. "name": "notification-filled",
  19030. "font_class": "notification-filled",
  19031. "unicode": "e6c1",
  19032. "unicode_decimal": 59073
  19033. }, {
  19034. "icon_id": "24932457",
  19035. "name": "wallet-filled",
  19036. "font_class": "wallet-filled",
  19037. "unicode": "e6c2",
  19038. "unicode_decimal": 59074
  19039. }, {
  19040. "icon_id": "24932458",
  19041. "name": "paihangbang-filled",
  19042. "font_class": "medal-filled",
  19043. "unicode": "e6c3",
  19044. "unicode_decimal": 59075
  19045. }, {
  19046. "icon_id": "24932459",
  19047. "name": "gift-filled",
  19048. "font_class": "gift-filled",
  19049. "unicode": "e6c4",
  19050. "unicode_decimal": 59076
  19051. }, {
  19052. "icon_id": "24932460",
  19053. "name": "fire-filled",
  19054. "font_class": "fire-filled",
  19055. "unicode": "e6c5",
  19056. "unicode_decimal": 59077
  19057. }, {
  19058. "icon_id": "24928001",
  19059. "name": "refreshempty",
  19060. "font_class": "refreshempty",
  19061. "unicode": "e6bf",
  19062. "unicode_decimal": 59071
  19063. }, {
  19064. "icon_id": "24926853",
  19065. "name": "location-ellipse",
  19066. "font_class": "location-filled",
  19067. "unicode": "e6af",
  19068. "unicode_decimal": 59055
  19069. }, {
  19070. "icon_id": "24926735",
  19071. "name": "person-filled",
  19072. "font_class": "person-filled",
  19073. "unicode": "e69d",
  19074. "unicode_decimal": 59037
  19075. }, {
  19076. "icon_id": "24926703",
  19077. "name": "personadd-filled",
  19078. "font_class": "personadd-filled",
  19079. "unicode": "e698",
  19080. "unicode_decimal": 59032
  19081. }, {
  19082. "icon_id": "24923351",
  19083. "name": "back",
  19084. "font_class": "back",
  19085. "unicode": "e6b9",
  19086. "unicode_decimal": 59065
  19087. }, {
  19088. "icon_id": "24923352",
  19089. "name": "forward",
  19090. "font_class": "forward",
  19091. "unicode": "e6ba",
  19092. "unicode_decimal": 59066
  19093. }, {
  19094. "icon_id": "24923353",
  19095. "name": "arrowthinright",
  19096. "font_class": "arrow-right",
  19097. "unicode": "e6bb",
  19098. "unicode_decimal": 59067
  19099. }, {
  19100. "icon_id": "24923353",
  19101. "name": "arrowthinright",
  19102. "font_class": "arrowthinright",
  19103. "unicode": "e6bb",
  19104. "unicode_decimal": 59067
  19105. }, {
  19106. "icon_id": "24923354",
  19107. "name": "arrowthinleft",
  19108. "font_class": "arrow-left",
  19109. "unicode": "e6bc",
  19110. "unicode_decimal": 59068
  19111. }, {
  19112. "icon_id": "24923354",
  19113. "name": "arrowthinleft",
  19114. "font_class": "arrowthinleft",
  19115. "unicode": "e6bc",
  19116. "unicode_decimal": 59068
  19117. }, {
  19118. "icon_id": "24923355",
  19119. "name": "arrowthinup",
  19120. "font_class": "arrow-up",
  19121. "unicode": "e6bd",
  19122. "unicode_decimal": 59069
  19123. }, {
  19124. "icon_id": "24923355",
  19125. "name": "arrowthinup",
  19126. "font_class": "arrowthinup",
  19127. "unicode": "e6bd",
  19128. "unicode_decimal": 59069
  19129. }, {
  19130. "icon_id": "24923356",
  19131. "name": "arrowthindown",
  19132. "font_class": "arrow-down",
  19133. "unicode": "e6be",
  19134. "unicode_decimal": 59070
  19135. }, {
  19136. "icon_id": "24923356",
  19137. "name": "arrowthindown",
  19138. "font_class": "arrowthindown",
  19139. "unicode": "e6be",
  19140. "unicode_decimal": 59070
  19141. }, {
  19142. "icon_id": "24923349",
  19143. "name": "arrowdown",
  19144. "font_class": "bottom",
  19145. "unicode": "e6b8",
  19146. "unicode_decimal": 59064
  19147. }, {
  19148. "icon_id": "24923349",
  19149. "name": "arrowdown",
  19150. "font_class": "arrowdown",
  19151. "unicode": "e6b8",
  19152. "unicode_decimal": 59064
  19153. }, {
  19154. "icon_id": "24923346",
  19155. "name": "arrowright",
  19156. "font_class": "right",
  19157. "unicode": "e6b5",
  19158. "unicode_decimal": 59061
  19159. }, {
  19160. "icon_id": "24923346",
  19161. "name": "arrowright",
  19162. "font_class": "arrowright",
  19163. "unicode": "e6b5",
  19164. "unicode_decimal": 59061
  19165. }, {
  19166. "icon_id": "24923347",
  19167. "name": "arrowup",
  19168. "font_class": "top",
  19169. "unicode": "e6b6",
  19170. "unicode_decimal": 59062
  19171. }, {
  19172. "icon_id": "24923347",
  19173. "name": "arrowup",
  19174. "font_class": "arrowup",
  19175. "unicode": "e6b6",
  19176. "unicode_decimal": 59062
  19177. }, {
  19178. "icon_id": "24923348",
  19179. "name": "arrowleft",
  19180. "font_class": "left",
  19181. "unicode": "e6b7",
  19182. "unicode_decimal": 59063
  19183. }, {
  19184. "icon_id": "24923348",
  19185. "name": "arrowleft",
  19186. "font_class": "arrowleft",
  19187. "unicode": "e6b7",
  19188. "unicode_decimal": 59063
  19189. }, {
  19190. "icon_id": "24923334",
  19191. "name": "eye",
  19192. "font_class": "eye",
  19193. "unicode": "e651",
  19194. "unicode_decimal": 58961
  19195. }, {
  19196. "icon_id": "24923335",
  19197. "name": "eye-filled",
  19198. "font_class": "eye-filled",
  19199. "unicode": "e66a",
  19200. "unicode_decimal": 58986
  19201. }, {
  19202. "icon_id": "24923336",
  19203. "name": "eye-slash",
  19204. "font_class": "eye-slash",
  19205. "unicode": "e6b3",
  19206. "unicode_decimal": 59059
  19207. }, {
  19208. "icon_id": "24923337",
  19209. "name": "eye-slash-filled",
  19210. "font_class": "eye-slash-filled",
  19211. "unicode": "e6b4",
  19212. "unicode_decimal": 59060
  19213. }, {
  19214. "icon_id": "24923305",
  19215. "name": "info-filled",
  19216. "font_class": "info-filled",
  19217. "unicode": "e649",
  19218. "unicode_decimal": 58953
  19219. }, {
  19220. "icon_id": "24923299",
  19221. "name": "reload-01",
  19222. "font_class": "reload",
  19223. "unicode": "e6b2",
  19224. "unicode_decimal": 59058
  19225. }, {
  19226. "icon_id": "24923195",
  19227. "name": "mic_slash_fill",
  19228. "font_class": "micoff-filled",
  19229. "unicode": "e6b0",
  19230. "unicode_decimal": 59056
  19231. }, {
  19232. "icon_id": "24923165",
  19233. "name": "map-pin-ellipse",
  19234. "font_class": "map-pin-ellipse",
  19235. "unicode": "e6ac",
  19236. "unicode_decimal": 59052
  19237. }, {
  19238. "icon_id": "24923166",
  19239. "name": "map-pin",
  19240. "font_class": "map-pin",
  19241. "unicode": "e6ad",
  19242. "unicode_decimal": 59053
  19243. }, {
  19244. "icon_id": "24923167",
  19245. "name": "location",
  19246. "font_class": "location",
  19247. "unicode": "e6ae",
  19248. "unicode_decimal": 59054
  19249. }, {
  19250. "icon_id": "24923064",
  19251. "name": "starhalf",
  19252. "font_class": "starhalf",
  19253. "unicode": "e683",
  19254. "unicode_decimal": 59011
  19255. }, {
  19256. "icon_id": "24923065",
  19257. "name": "star",
  19258. "font_class": "star",
  19259. "unicode": "e688",
  19260. "unicode_decimal": 59016
  19261. }, {
  19262. "icon_id": "24923066",
  19263. "name": "star-filled",
  19264. "font_class": "star-filled",
  19265. "unicode": "e68f",
  19266. "unicode_decimal": 59023
  19267. }, {
  19268. "icon_id": "24899646",
  19269. "name": "a-rilidaka",
  19270. "font_class": "calendar",
  19271. "unicode": "e6a0",
  19272. "unicode_decimal": 59040
  19273. }, {
  19274. "icon_id": "24899647",
  19275. "name": "fire",
  19276. "font_class": "fire",
  19277. "unicode": "e6a1",
  19278. "unicode_decimal": 59041
  19279. }, {
  19280. "icon_id": "24899648",
  19281. "name": "paihangbang",
  19282. "font_class": "medal",
  19283. "unicode": "e6a2",
  19284. "unicode_decimal": 59042
  19285. }, {
  19286. "icon_id": "24899649",
  19287. "name": "font",
  19288. "font_class": "font",
  19289. "unicode": "e6a3",
  19290. "unicode_decimal": 59043
  19291. }, {
  19292. "icon_id": "24899650",
  19293. "name": "gift",
  19294. "font_class": "gift",
  19295. "unicode": "e6a4",
  19296. "unicode_decimal": 59044
  19297. }, {
  19298. "icon_id": "24899651",
  19299. "name": "link",
  19300. "font_class": "link",
  19301. "unicode": "e6a5",
  19302. "unicode_decimal": 59045
  19303. }, {
  19304. "icon_id": "24899652",
  19305. "name": "notification",
  19306. "font_class": "notification",
  19307. "unicode": "e6a6",
  19308. "unicode_decimal": 59046
  19309. }, {
  19310. "icon_id": "24899653",
  19311. "name": "staff",
  19312. "font_class": "staff",
  19313. "unicode": "e6a7",
  19314. "unicode_decimal": 59047
  19315. }, {
  19316. "icon_id": "24899654",
  19317. "name": "VIP",
  19318. "font_class": "vip",
  19319. "unicode": "e6a8",
  19320. "unicode_decimal": 59048
  19321. }, {
  19322. "icon_id": "24899655",
  19323. "name": "folder_add",
  19324. "font_class": "folder-add",
  19325. "unicode": "e6a9",
  19326. "unicode_decimal": 59049
  19327. }, {
  19328. "icon_id": "24899656",
  19329. "name": "tune",
  19330. "font_class": "tune",
  19331. "unicode": "e6aa",
  19332. "unicode_decimal": 59050
  19333. }, {
  19334. "icon_id": "24899657",
  19335. "name": "shimingrenzheng",
  19336. "font_class": "auth",
  19337. "unicode": "e6ab",
  19338. "unicode_decimal": 59051
  19339. }, {
  19340. "icon_id": "24899565",
  19341. "name": "person",
  19342. "font_class": "person",
  19343. "unicode": "e699",
  19344. "unicode_decimal": 59033
  19345. }, {
  19346. "icon_id": "24899566",
  19347. "name": "email-filled",
  19348. "font_class": "email-filled",
  19349. "unicode": "e69a",
  19350. "unicode_decimal": 59034
  19351. }, {
  19352. "icon_id": "24899567",
  19353. "name": "phone-filled",
  19354. "font_class": "phone-filled",
  19355. "unicode": "e69b",
  19356. "unicode_decimal": 59035
  19357. }, {
  19358. "icon_id": "24899568",
  19359. "name": "phone",
  19360. "font_class": "phone",
  19361. "unicode": "e69c",
  19362. "unicode_decimal": 59036
  19363. }, {
  19364. "icon_id": "24899570",
  19365. "name": "email",
  19366. "font_class": "email",
  19367. "unicode": "e69e",
  19368. "unicode_decimal": 59038
  19369. }, {
  19370. "icon_id": "24899571",
  19371. "name": "personadd",
  19372. "font_class": "personadd",
  19373. "unicode": "e69f",
  19374. "unicode_decimal": 59039
  19375. }, {
  19376. "icon_id": "24899558",
  19377. "name": "chatboxes-filled",
  19378. "font_class": "chatboxes-filled",
  19379. "unicode": "e692",
  19380. "unicode_decimal": 59026
  19381. }, {
  19382. "icon_id": "24899559",
  19383. "name": "contact",
  19384. "font_class": "contact",
  19385. "unicode": "e693",
  19386. "unicode_decimal": 59027
  19387. }, {
  19388. "icon_id": "24899560",
  19389. "name": "chatbubble-filled",
  19390. "font_class": "chatbubble-filled",
  19391. "unicode": "e694",
  19392. "unicode_decimal": 59028
  19393. }, {
  19394. "icon_id": "24899561",
  19395. "name": "contact-filled",
  19396. "font_class": "contact-filled",
  19397. "unicode": "e695",
  19398. "unicode_decimal": 59029
  19399. }, {
  19400. "icon_id": "24899562",
  19401. "name": "chatboxes",
  19402. "font_class": "chatboxes",
  19403. "unicode": "e696",
  19404. "unicode_decimal": 59030
  19405. }, {
  19406. "icon_id": "24899563",
  19407. "name": "chatbubble",
  19408. "font_class": "chatbubble",
  19409. "unicode": "e697",
  19410. "unicode_decimal": 59031
  19411. }, {
  19412. "icon_id": "24881290",
  19413. "name": "upload-filled",
  19414. "font_class": "upload-filled",
  19415. "unicode": "e68e",
  19416. "unicode_decimal": 59022
  19417. }, {
  19418. "icon_id": "24881292",
  19419. "name": "upload",
  19420. "font_class": "upload",
  19421. "unicode": "e690",
  19422. "unicode_decimal": 59024
  19423. }, {
  19424. "icon_id": "24881293",
  19425. "name": "weixin",
  19426. "font_class": "weixin",
  19427. "unicode": "e691",
  19428. "unicode_decimal": 59025
  19429. }, {
  19430. "icon_id": "24881274",
  19431. "name": "compose",
  19432. "font_class": "compose",
  19433. "unicode": "e67f",
  19434. "unicode_decimal": 59007
  19435. }, {
  19436. "icon_id": "24881275",
  19437. "name": "qq",
  19438. "font_class": "qq",
  19439. "unicode": "e680",
  19440. "unicode_decimal": 59008
  19441. }, {
  19442. "icon_id": "24881276",
  19443. "name": "download-filled",
  19444. "font_class": "download-filled",
  19445. "unicode": "e681",
  19446. "unicode_decimal": 59009
  19447. }, {
  19448. "icon_id": "24881277",
  19449. "name": "pengyouquan",
  19450. "font_class": "pyq",
  19451. "unicode": "e682",
  19452. "unicode_decimal": 59010
  19453. }, {
  19454. "icon_id": "24881279",
  19455. "name": "sound",
  19456. "font_class": "sound",
  19457. "unicode": "e684",
  19458. "unicode_decimal": 59012
  19459. }, {
  19460. "icon_id": "24881280",
  19461. "name": "trash-filled",
  19462. "font_class": "trash-filled",
  19463. "unicode": "e685",
  19464. "unicode_decimal": 59013
  19465. }, {
  19466. "icon_id": "24881281",
  19467. "name": "sound-filled",
  19468. "font_class": "sound-filled",
  19469. "unicode": "e686",
  19470. "unicode_decimal": 59014
  19471. }, {
  19472. "icon_id": "24881282",
  19473. "name": "trash",
  19474. "font_class": "trash",
  19475. "unicode": "e687",
  19476. "unicode_decimal": 59015
  19477. }, {
  19478. "icon_id": "24881284",
  19479. "name": "videocam-filled",
  19480. "font_class": "videocam-filled",
  19481. "unicode": "e689",
  19482. "unicode_decimal": 59017
  19483. }, {
  19484. "icon_id": "24881285",
  19485. "name": "spinner-cycle",
  19486. "font_class": "spinner-cycle",
  19487. "unicode": "e68a",
  19488. "unicode_decimal": 59018
  19489. }, {
  19490. "icon_id": "24881286",
  19491. "name": "weibo",
  19492. "font_class": "weibo",
  19493. "unicode": "e68b",
  19494. "unicode_decimal": 59019
  19495. }, {
  19496. "icon_id": "24881288",
  19497. "name": "videocam",
  19498. "font_class": "videocam",
  19499. "unicode": "e68c",
  19500. "unicode_decimal": 59020
  19501. }, {
  19502. "icon_id": "24881289",
  19503. "name": "download",
  19504. "font_class": "download",
  19505. "unicode": "e68d",
  19506. "unicode_decimal": 59021
  19507. }, {
  19508. "icon_id": "24879601",
  19509. "name": "help",
  19510. "font_class": "help",
  19511. "unicode": "e679",
  19512. "unicode_decimal": 59001
  19513. }, {
  19514. "icon_id": "24879602",
  19515. "name": "navigate-filled",
  19516. "font_class": "navigate-filled",
  19517. "unicode": "e67a",
  19518. "unicode_decimal": 59002
  19519. }, {
  19520. "icon_id": "24879603",
  19521. "name": "plusempty",
  19522. "font_class": "plusempty",
  19523. "unicode": "e67b",
  19524. "unicode_decimal": 59003
  19525. }, {
  19526. "icon_id": "24879604",
  19527. "name": "smallcircle",
  19528. "font_class": "smallcircle",
  19529. "unicode": "e67c",
  19530. "unicode_decimal": 59004
  19531. }, {
  19532. "icon_id": "24879605",
  19533. "name": "minus-filled",
  19534. "font_class": "minus-filled",
  19535. "unicode": "e67d",
  19536. "unicode_decimal": 59005
  19537. }, {
  19538. "icon_id": "24879606",
  19539. "name": "micoff",
  19540. "font_class": "micoff",
  19541. "unicode": "e67e",
  19542. "unicode_decimal": 59006
  19543. }, {
  19544. "icon_id": "24879588",
  19545. "name": "closeempty",
  19546. "font_class": "closeempty",
  19547. "unicode": "e66c",
  19548. "unicode_decimal": 58988
  19549. }, {
  19550. "icon_id": "24879589",
  19551. "name": "clear",
  19552. "font_class": "clear",
  19553. "unicode": "e66d",
  19554. "unicode_decimal": 58989
  19555. }, {
  19556. "icon_id": "24879590",
  19557. "name": "navigate",
  19558. "font_class": "navigate",
  19559. "unicode": "e66e",
  19560. "unicode_decimal": 58990
  19561. }, {
  19562. "icon_id": "24879591",
  19563. "name": "minus",
  19564. "font_class": "minus",
  19565. "unicode": "e66f",
  19566. "unicode_decimal": 58991
  19567. }, {
  19568. "icon_id": "24879592",
  19569. "name": "image",
  19570. "font_class": "image",
  19571. "unicode": "e670",
  19572. "unicode_decimal": 58992
  19573. }, {
  19574. "icon_id": "24879593",
  19575. "name": "mic",
  19576. "font_class": "mic",
  19577. "unicode": "e671",
  19578. "unicode_decimal": 58993
  19579. }, {
  19580. "icon_id": "24879594",
  19581. "name": "paperplane",
  19582. "font_class": "paperplane",
  19583. "unicode": "e672",
  19584. "unicode_decimal": 58994
  19585. }, {
  19586. "icon_id": "24879595",
  19587. "name": "close",
  19588. "font_class": "close",
  19589. "unicode": "e673",
  19590. "unicode_decimal": 58995
  19591. }, {
  19592. "icon_id": "24879596",
  19593. "name": "help-filled",
  19594. "font_class": "help-filled",
  19595. "unicode": "e674",
  19596. "unicode_decimal": 58996
  19597. }, {
  19598. "icon_id": "24879597",
  19599. "name": "plus-filled",
  19600. "font_class": "paperplane-filled",
  19601. "unicode": "e675",
  19602. "unicode_decimal": 58997
  19603. }, {
  19604. "icon_id": "24879598",
  19605. "name": "plus",
  19606. "font_class": "plus",
  19607. "unicode": "e676",
  19608. "unicode_decimal": 58998
  19609. }, {
  19610. "icon_id": "24879599",
  19611. "name": "mic-filled",
  19612. "font_class": "mic-filled",
  19613. "unicode": "e677",
  19614. "unicode_decimal": 58999
  19615. }, {
  19616. "icon_id": "24879600",
  19617. "name": "image-filled",
  19618. "font_class": "image-filled",
  19619. "unicode": "e678",
  19620. "unicode_decimal": 59000
  19621. }, {
  19622. "icon_id": "24855900",
  19623. "name": "locked-filled",
  19624. "font_class": "locked-filled",
  19625. "unicode": "e668",
  19626. "unicode_decimal": 58984
  19627. }, {
  19628. "icon_id": "24855901",
  19629. "name": "info",
  19630. "font_class": "info",
  19631. "unicode": "e669",
  19632. "unicode_decimal": 58985
  19633. }, {
  19634. "icon_id": "24855903",
  19635. "name": "locked",
  19636. "font_class": "locked",
  19637. "unicode": "e66b",
  19638. "unicode_decimal": 58987
  19639. }, {
  19640. "icon_id": "24855884",
  19641. "name": "camera-filled",
  19642. "font_class": "camera-filled",
  19643. "unicode": "e658",
  19644. "unicode_decimal": 58968
  19645. }, {
  19646. "icon_id": "24855885",
  19647. "name": "chat-filled",
  19648. "font_class": "chat-filled",
  19649. "unicode": "e659",
  19650. "unicode_decimal": 58969
  19651. }, {
  19652. "icon_id": "24855886",
  19653. "name": "camera",
  19654. "font_class": "camera",
  19655. "unicode": "e65a",
  19656. "unicode_decimal": 58970
  19657. }, {
  19658. "icon_id": "24855887",
  19659. "name": "circle",
  19660. "font_class": "circle",
  19661. "unicode": "e65b",
  19662. "unicode_decimal": 58971
  19663. }, {
  19664. "icon_id": "24855888",
  19665. "name": "checkmarkempty",
  19666. "font_class": "checkmarkempty",
  19667. "unicode": "e65c",
  19668. "unicode_decimal": 58972
  19669. }, {
  19670. "icon_id": "24855889",
  19671. "name": "chat",
  19672. "font_class": "chat",
  19673. "unicode": "e65d",
  19674. "unicode_decimal": 58973
  19675. }, {
  19676. "icon_id": "24855890",
  19677. "name": "circle-filled",
  19678. "font_class": "circle-filled",
  19679. "unicode": "e65e",
  19680. "unicode_decimal": 58974
  19681. }, {
  19682. "icon_id": "24855891",
  19683. "name": "flag",
  19684. "font_class": "flag",
  19685. "unicode": "e65f",
  19686. "unicode_decimal": 58975
  19687. }, {
  19688. "icon_id": "24855892",
  19689. "name": "flag-filled",
  19690. "font_class": "flag-filled",
  19691. "unicode": "e660",
  19692. "unicode_decimal": 58976
  19693. }, {
  19694. "icon_id": "24855893",
  19695. "name": "gear-filled",
  19696. "font_class": "gear-filled",
  19697. "unicode": "e661",
  19698. "unicode_decimal": 58977
  19699. }, {
  19700. "icon_id": "24855894",
  19701. "name": "home",
  19702. "font_class": "home",
  19703. "unicode": "e662",
  19704. "unicode_decimal": 58978
  19705. }, {
  19706. "icon_id": "24855895",
  19707. "name": "home-filled",
  19708. "font_class": "home-filled",
  19709. "unicode": "e663",
  19710. "unicode_decimal": 58979
  19711. }, {
  19712. "icon_id": "24855896",
  19713. "name": "gear",
  19714. "font_class": "gear",
  19715. "unicode": "e664",
  19716. "unicode_decimal": 58980
  19717. }, {
  19718. "icon_id": "24855897",
  19719. "name": "smallcircle-filled",
  19720. "font_class": "smallcircle-filled",
  19721. "unicode": "e665",
  19722. "unicode_decimal": 58981
  19723. }, {
  19724. "icon_id": "24855898",
  19725. "name": "map-filled",
  19726. "font_class": "map-filled",
  19727. "unicode": "e666",
  19728. "unicode_decimal": 58982
  19729. }, {
  19730. "icon_id": "24855899",
  19731. "name": "map",
  19732. "font_class": "map",
  19733. "unicode": "e667",
  19734. "unicode_decimal": 58983
  19735. }, {
  19736. "icon_id": "24855825",
  19737. "name": "refresh-filled",
  19738. "font_class": "refresh-filled",
  19739. "unicode": "e656",
  19740. "unicode_decimal": 58966
  19741. }, {
  19742. "icon_id": "24855826",
  19743. "name": "refresh",
  19744. "font_class": "refresh",
  19745. "unicode": "e657",
  19746. "unicode_decimal": 58967
  19747. }, {
  19748. "icon_id": "24855808",
  19749. "name": "cloud-upload",
  19750. "font_class": "cloud-upload",
  19751. "unicode": "e645",
  19752. "unicode_decimal": 58949
  19753. }, {
  19754. "icon_id": "24855809",
  19755. "name": "cloud-download-filled",
  19756. "font_class": "cloud-download-filled",
  19757. "unicode": "e646",
  19758. "unicode_decimal": 58950
  19759. }, {
  19760. "icon_id": "24855810",
  19761. "name": "cloud-download",
  19762. "font_class": "cloud-download",
  19763. "unicode": "e647",
  19764. "unicode_decimal": 58951
  19765. }, {
  19766. "icon_id": "24855811",
  19767. "name": "cloud-upload-filled",
  19768. "font_class": "cloud-upload-filled",
  19769. "unicode": "e648",
  19770. "unicode_decimal": 58952
  19771. }, {
  19772. "icon_id": "24855813",
  19773. "name": "redo",
  19774. "font_class": "redo",
  19775. "unicode": "e64a",
  19776. "unicode_decimal": 58954
  19777. }, {
  19778. "icon_id": "24855814",
  19779. "name": "images-filled",
  19780. "font_class": "images-filled",
  19781. "unicode": "e64b",
  19782. "unicode_decimal": 58955
  19783. }, {
  19784. "icon_id": "24855815",
  19785. "name": "undo-filled",
  19786. "font_class": "undo-filled",
  19787. "unicode": "e64c",
  19788. "unicode_decimal": 58956
  19789. }, {
  19790. "icon_id": "24855816",
  19791. "name": "more",
  19792. "font_class": "more",
  19793. "unicode": "e64d",
  19794. "unicode_decimal": 58957
  19795. }, {
  19796. "icon_id": "24855817",
  19797. "name": "more-filled",
  19798. "font_class": "more-filled",
  19799. "unicode": "e64e",
  19800. "unicode_decimal": 58958
  19801. }, {
  19802. "icon_id": "24855818",
  19803. "name": "undo",
  19804. "font_class": "undo",
  19805. "unicode": "e64f",
  19806. "unicode_decimal": 58959
  19807. }, {
  19808. "icon_id": "24855819",
  19809. "name": "images",
  19810. "font_class": "images",
  19811. "unicode": "e650",
  19812. "unicode_decimal": 58960
  19813. }, {
  19814. "icon_id": "24855821",
  19815. "name": "paperclip",
  19816. "font_class": "paperclip",
  19817. "unicode": "e652",
  19818. "unicode_decimal": 58962
  19819. }, {
  19820. "icon_id": "24855822",
  19821. "name": "settings",
  19822. "font_class": "settings",
  19823. "unicode": "e653",
  19824. "unicode_decimal": 58963
  19825. }, {
  19826. "icon_id": "24855823",
  19827. "name": "search",
  19828. "font_class": "search",
  19829. "unicode": "e654",
  19830. "unicode_decimal": 58964
  19831. }, {
  19832. "icon_id": "24855824",
  19833. "name": "redo-filled",
  19834. "font_class": "redo-filled",
  19835. "unicode": "e655",
  19836. "unicode_decimal": 58965
  19837. }, {
  19838. "icon_id": "24841702",
  19839. "name": "list",
  19840. "font_class": "list",
  19841. "unicode": "e644",
  19842. "unicode_decimal": 58948
  19843. }, {
  19844. "icon_id": "24841489",
  19845. "name": "mail-open-filled",
  19846. "font_class": "mail-open-filled",
  19847. "unicode": "e63a",
  19848. "unicode_decimal": 58938
  19849. }, {
  19850. "icon_id": "24841491",
  19851. "name": "hand-thumbsdown-filled",
  19852. "font_class": "hand-down-filled",
  19853. "unicode": "e63c",
  19854. "unicode_decimal": 58940
  19855. }, {
  19856. "icon_id": "24841492",
  19857. "name": "hand-thumbsdown",
  19858. "font_class": "hand-down",
  19859. "unicode": "e63d",
  19860. "unicode_decimal": 58941
  19861. }, {
  19862. "icon_id": "24841493",
  19863. "name": "hand-thumbsup-filled",
  19864. "font_class": "hand-up-filled",
  19865. "unicode": "e63e",
  19866. "unicode_decimal": 58942
  19867. }, {
  19868. "icon_id": "24841494",
  19869. "name": "hand-thumbsup",
  19870. "font_class": "hand-up",
  19871. "unicode": "e63f",
  19872. "unicode_decimal": 58943
  19873. }, {
  19874. "icon_id": "24841496",
  19875. "name": "heart-filled",
  19876. "font_class": "heart-filled",
  19877. "unicode": "e641",
  19878. "unicode_decimal": 58945
  19879. }, {
  19880. "icon_id": "24841498",
  19881. "name": "mail-open",
  19882. "font_class": "mail-open",
  19883. "unicode": "e643",
  19884. "unicode_decimal": 58947
  19885. }, {
  19886. "icon_id": "24841488",
  19887. "name": "heart",
  19888. "font_class": "heart",
  19889. "unicode": "e639",
  19890. "unicode_decimal": 58937
  19891. }, {
  19892. "icon_id": "24839963",
  19893. "name": "loop",
  19894. "font_class": "loop",
  19895. "unicode": "e633",
  19896. "unicode_decimal": 58931
  19897. }, {
  19898. "icon_id": "24839866",
  19899. "name": "pulldown",
  19900. "font_class": "pulldown",
  19901. "unicode": "e632",
  19902. "unicode_decimal": 58930
  19903. }, {
  19904. "icon_id": "24813798",
  19905. "name": "scan",
  19906. "font_class": "scan",
  19907. "unicode": "e62a",
  19908. "unicode_decimal": 58922
  19909. }, {
  19910. "icon_id": "24813786",
  19911. "name": "bars",
  19912. "font_class": "bars",
  19913. "unicode": "e627",
  19914. "unicode_decimal": 58919
  19915. }, {
  19916. "icon_id": "24813788",
  19917. "name": "cart-filled",
  19918. "font_class": "cart-filled",
  19919. "unicode": "e629",
  19920. "unicode_decimal": 58921
  19921. }, {
  19922. "icon_id": "24813790",
  19923. "name": "checkbox",
  19924. "font_class": "checkbox",
  19925. "unicode": "e62b",
  19926. "unicode_decimal": 58923
  19927. }, {
  19928. "icon_id": "24813791",
  19929. "name": "checkbox-filled",
  19930. "font_class": "checkbox-filled",
  19931. "unicode": "e62c",
  19932. "unicode_decimal": 58924
  19933. }, {
  19934. "icon_id": "24813794",
  19935. "name": "shop",
  19936. "font_class": "shop",
  19937. "unicode": "e62f",
  19938. "unicode_decimal": 58927
  19939. }, {
  19940. "icon_id": "24813795",
  19941. "name": "headphones",
  19942. "font_class": "headphones",
  19943. "unicode": "e630",
  19944. "unicode_decimal": 58928
  19945. }, {
  19946. "icon_id": "24813796",
  19947. "name": "cart",
  19948. "font_class": "cart",
  19949. "unicode": "e631",
  19950. "unicode_decimal": 58929
  19951. }]
  19952. };
  19953. exports.default = _default;
  19954. /***/ })
  19955. ]]);
  19956. //# sourceMappingURL=../../.sourcemap/mp-toutiao/common/vendor.js.map