vendor.js 695 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],[
  2. /* 0 */,
  3. /* 1 */
  4. /*!*********************************************************!*\
  5. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js ***!
  6. \*********************************************************/
  7. /*! no static exports found */
  8. /***/ (function(module, exports, __webpack_require__) {
  9. "use strict";
  10. Object.defineProperty(exports, "__esModule", {
  11. value: true
  12. });
  13. exports.default = void 0;
  14. var objectKeys = ['qy', 'env', 'error', 'version', 'lanDebug', 'cloud', 'serviceMarket', 'router', 'worklet', '__webpack_require_UNI_MP_PLUGIN__'];
  15. var singlePageDisableKey = ['lanDebug', 'router', 'worklet'];
  16. var target = typeof globalThis !== 'undefined' ? globalThis : function () {
  17. return this;
  18. }();
  19. var key = ['w', 'x'].join('');
  20. var oldWx = target[key];
  21. var launchOption = oldWx.getLaunchOptionsSync ? oldWx.getLaunchOptionsSync() : null;
  22. function isWxKey(key) {
  23. if (launchOption && launchOption.scene === 1154 && singlePageDisableKey.includes(key)) {
  24. return false;
  25. }
  26. return objectKeys.indexOf(key) > -1 || typeof oldWx[key] === 'function';
  27. }
  28. function initWx() {
  29. var newWx = {};
  30. for (var _key in oldWx) {
  31. if (isWxKey(_key)) {
  32. // TODO wrapper function
  33. newWx[_key] = oldWx[_key];
  34. }
  35. }
  36. return newWx;
  37. }
  38. target[key] = initWx();
  39. var _default = target[key];
  40. exports.default = _default;
  41. /***/ }),
  42. /* 2 */
  43. /*!************************************************************!*\
  44. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  45. \************************************************************/
  46. /*! no static exports found */
  47. /***/ (function(module, exports, __webpack_require__) {
  48. "use strict";
  49. /* WEBPACK VAR INJECTION */(function(wx, global) {
  50. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  51. Object.defineProperty(exports, "__esModule", {
  52. value: true
  53. });
  54. exports.createApp = createApp;
  55. exports.createComponent = createComponent;
  56. exports.createPage = createPage;
  57. exports.createPlugin = createPlugin;
  58. exports.createSubpackageApp = createSubpackageApp;
  59. exports.default = void 0;
  60. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  61. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  62. var _construct2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/construct */ 15));
  63. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  64. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  65. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 22);
  66. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  67. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  68. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  69. var realAtob;
  70. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  71. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  72. if (typeof atob !== 'function') {
  73. realAtob = function realAtob(str) {
  74. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  75. if (!b64re.test(str)) {
  76. throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  77. }
  78. // Adding the padding if missing, for semplicity
  79. str += '=='.slice(2 - (str.length & 3));
  80. var bitmap;
  81. var result = '';
  82. var r1;
  83. var r2;
  84. var i = 0;
  85. for (; i < str.length;) {
  86. bitmap = b64.indexOf(str.charAt(i++)) << 18 | b64.indexOf(str.charAt(i++)) << 12 | (r1 = b64.indexOf(str.charAt(i++))) << 6 | (r2 = b64.indexOf(str.charAt(i++)));
  87. result += r1 === 64 ? String.fromCharCode(bitmap >> 16 & 255) : r2 === 64 ? String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255) : String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255, bitmap & 255);
  88. }
  89. return result;
  90. };
  91. } else {
  92. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  93. realAtob = atob;
  94. }
  95. function b64DecodeUnicode(str) {
  96. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  97. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  98. }).join(''));
  99. }
  100. function getCurrentUserInfo() {
  101. var token = wx.getStorageSync('uni_id_token') || '';
  102. var tokenArr = token.split('.');
  103. if (!token || tokenArr.length !== 3) {
  104. return {
  105. uid: null,
  106. role: [],
  107. permission: [],
  108. tokenExpired: 0
  109. };
  110. }
  111. var userInfo;
  112. try {
  113. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  114. } catch (error) {
  115. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  116. }
  117. userInfo.tokenExpired = userInfo.exp * 1000;
  118. delete userInfo.exp;
  119. delete userInfo.iat;
  120. return userInfo;
  121. }
  122. function uniIdMixin(Vue) {
  123. Vue.prototype.uniIDHasRole = function (roleId) {
  124. var _getCurrentUserInfo = getCurrentUserInfo(),
  125. role = _getCurrentUserInfo.role;
  126. return role.indexOf(roleId) > -1;
  127. };
  128. Vue.prototype.uniIDHasPermission = function (permissionId) {
  129. var _getCurrentUserInfo2 = getCurrentUserInfo(),
  130. permission = _getCurrentUserInfo2.permission;
  131. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  132. };
  133. Vue.prototype.uniIDTokenValid = function () {
  134. var _getCurrentUserInfo3 = getCurrentUserInfo(),
  135. tokenExpired = _getCurrentUserInfo3.tokenExpired;
  136. return tokenExpired > Date.now();
  137. };
  138. }
  139. var _toString = Object.prototype.toString;
  140. var hasOwnProperty = Object.prototype.hasOwnProperty;
  141. function isFn(fn) {
  142. return typeof fn === 'function';
  143. }
  144. function isStr(str) {
  145. return typeof str === 'string';
  146. }
  147. function isObject(obj) {
  148. return obj !== null && (0, _typeof2.default)(obj) === 'object';
  149. }
  150. function isPlainObject(obj) {
  151. return _toString.call(obj) === '[object Object]';
  152. }
  153. function hasOwn(obj, key) {
  154. return hasOwnProperty.call(obj, key);
  155. }
  156. function noop() {}
  157. /**
  158. * Create a cached version of a pure function.
  159. */
  160. function cached(fn) {
  161. var cache = Object.create(null);
  162. return function cachedFn(str) {
  163. var hit = cache[str];
  164. return hit || (cache[str] = fn(str));
  165. };
  166. }
  167. /**
  168. * Camelize a hyphen-delimited string.
  169. */
  170. var camelizeRE = /-(\w)/g;
  171. var camelize = cached(function (str) {
  172. return str.replace(camelizeRE, function (_, c) {
  173. return c ? c.toUpperCase() : '';
  174. });
  175. });
  176. function sortObject(obj) {
  177. var sortObj = {};
  178. if (isPlainObject(obj)) {
  179. Object.keys(obj).sort().forEach(function (key) {
  180. sortObj[key] = obj[key];
  181. });
  182. }
  183. return !Object.keys(sortObj) ? obj : sortObj;
  184. }
  185. var HOOKS = ['invoke', 'success', 'fail', 'complete', 'returnValue'];
  186. var globalInterceptors = {};
  187. var scopedInterceptors = {};
  188. function mergeHook(parentVal, childVal) {
  189. var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal;
  190. return res ? dedupeHooks(res) : res;
  191. }
  192. function dedupeHooks(hooks) {
  193. var res = [];
  194. for (var i = 0; i < hooks.length; i++) {
  195. if (res.indexOf(hooks[i]) === -1) {
  196. res.push(hooks[i]);
  197. }
  198. }
  199. return res;
  200. }
  201. function removeHook(hooks, hook) {
  202. var index = hooks.indexOf(hook);
  203. if (index !== -1) {
  204. hooks.splice(index, 1);
  205. }
  206. }
  207. function mergeInterceptorHook(interceptor, option) {
  208. Object.keys(option).forEach(function (hook) {
  209. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  210. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  211. }
  212. });
  213. }
  214. function removeInterceptorHook(interceptor, option) {
  215. if (!interceptor || !option) {
  216. return;
  217. }
  218. Object.keys(option).forEach(function (hook) {
  219. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  220. removeHook(interceptor[hook], option[hook]);
  221. }
  222. });
  223. }
  224. function addInterceptor(method, option) {
  225. if (typeof method === 'string' && isPlainObject(option)) {
  226. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  227. } else if (isPlainObject(method)) {
  228. mergeInterceptorHook(globalInterceptors, method);
  229. }
  230. }
  231. function removeInterceptor(method, option) {
  232. if (typeof method === 'string') {
  233. if (isPlainObject(option)) {
  234. removeInterceptorHook(scopedInterceptors[method], option);
  235. } else {
  236. delete scopedInterceptors[method];
  237. }
  238. } else if (isPlainObject(method)) {
  239. removeInterceptorHook(globalInterceptors, method);
  240. }
  241. }
  242. function wrapperHook(hook, params) {
  243. return function (data) {
  244. return hook(data, params) || data;
  245. };
  246. }
  247. function isPromise(obj) {
  248. return !!obj && ((0, _typeof2.default)(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  249. }
  250. function queue(hooks, data, params) {
  251. var promise = false;
  252. for (var i = 0; i < hooks.length; i++) {
  253. var hook = hooks[i];
  254. if (promise) {
  255. promise = Promise.resolve(wrapperHook(hook, params));
  256. } else {
  257. var res = hook(data, params);
  258. if (isPromise(res)) {
  259. promise = Promise.resolve(res);
  260. }
  261. if (res === false) {
  262. return {
  263. then: function then() {}
  264. };
  265. }
  266. }
  267. }
  268. return promise || {
  269. then: function then(callback) {
  270. return callback(data);
  271. }
  272. };
  273. }
  274. function wrapperOptions(interceptor) {
  275. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  276. ['success', 'fail', 'complete'].forEach(function (name) {
  277. if (Array.isArray(interceptor[name])) {
  278. var oldCallback = options[name];
  279. options[name] = function callbackInterceptor(res) {
  280. queue(interceptor[name], res, options).then(function (res) {
  281. /* eslint-disable no-mixed-operators */
  282. return isFn(oldCallback) && oldCallback(res) || res;
  283. });
  284. };
  285. }
  286. });
  287. return options;
  288. }
  289. function wrapperReturnValue(method, returnValue) {
  290. var returnValueHooks = [];
  291. if (Array.isArray(globalInterceptors.returnValue)) {
  292. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(globalInterceptors.returnValue));
  293. }
  294. var interceptor = scopedInterceptors[method];
  295. if (interceptor && Array.isArray(interceptor.returnValue)) {
  296. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(interceptor.returnValue));
  297. }
  298. returnValueHooks.forEach(function (hook) {
  299. returnValue = hook(returnValue) || returnValue;
  300. });
  301. return returnValue;
  302. }
  303. function getApiInterceptorHooks(method) {
  304. var interceptor = Object.create(null);
  305. Object.keys(globalInterceptors).forEach(function (hook) {
  306. if (hook !== 'returnValue') {
  307. interceptor[hook] = globalInterceptors[hook].slice();
  308. }
  309. });
  310. var scopedInterceptor = scopedInterceptors[method];
  311. if (scopedInterceptor) {
  312. Object.keys(scopedInterceptor).forEach(function (hook) {
  313. if (hook !== 'returnValue') {
  314. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  315. }
  316. });
  317. }
  318. return interceptor;
  319. }
  320. function invokeApi(method, api, options) {
  321. for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
  322. params[_key - 3] = arguments[_key];
  323. }
  324. var interceptor = getApiInterceptorHooks(method);
  325. if (interceptor && Object.keys(interceptor).length) {
  326. if (Array.isArray(interceptor.invoke)) {
  327. var res = queue(interceptor.invoke, options);
  328. return res.then(function (options) {
  329. // 重新访问 getApiInterceptorHooks, 允许 invoke 中再次调用 addInterceptor,removeInterceptor
  330. return api.apply(void 0, [wrapperOptions(getApiInterceptorHooks(method), options)].concat(params));
  331. });
  332. } else {
  333. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  334. }
  335. }
  336. return api.apply(void 0, [options].concat(params));
  337. }
  338. var promiseInterceptor = {
  339. returnValue: function returnValue(res) {
  340. if (!isPromise(res)) {
  341. return res;
  342. }
  343. return new Promise(function (resolve, reject) {
  344. res.then(function (res) {
  345. if (res[0]) {
  346. reject(res[0]);
  347. } else {
  348. resolve(res[1]);
  349. }
  350. });
  351. });
  352. }
  353. };
  354. 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/;
  355. var CONTEXT_API_RE = /^create|Manager$/;
  356. // Context例外情况
  357. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  358. // 同步例外情况
  359. var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
  360. var CALLBACK_API_RE = /^on|^off/;
  361. function isContextApi(name) {
  362. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  363. }
  364. function isSyncApi(name) {
  365. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  366. }
  367. function isCallbackApi(name) {
  368. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  369. }
  370. function handlePromise(promise) {
  371. return promise.then(function (data) {
  372. return [null, data];
  373. }).catch(function (err) {
  374. return [err];
  375. });
  376. }
  377. function shouldPromise(name) {
  378. if (isContextApi(name) || isSyncApi(name) || isCallbackApi(name)) {
  379. return false;
  380. }
  381. return true;
  382. }
  383. /* eslint-disable no-extend-native */
  384. if (!Promise.prototype.finally) {
  385. Promise.prototype.finally = function (callback) {
  386. var promise = this.constructor;
  387. return this.then(function (value) {
  388. return promise.resolve(callback()).then(function () {
  389. return value;
  390. });
  391. }, function (reason) {
  392. return promise.resolve(callback()).then(function () {
  393. throw reason;
  394. });
  395. });
  396. };
  397. }
  398. function promisify(name, api) {
  399. if (!shouldPromise(name) || !isFn(api)) {
  400. return api;
  401. }
  402. return function promiseApi() {
  403. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  404. for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  405. params[_key2 - 1] = arguments[_key2];
  406. }
  407. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  408. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  409. }
  410. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  411. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  412. success: resolve,
  413. fail: reject
  414. })].concat(params));
  415. })));
  416. };
  417. }
  418. var EPS = 1e-4;
  419. var BASE_DEVICE_WIDTH = 750;
  420. var isIOS = false;
  421. var deviceWidth = 0;
  422. var deviceDPR = 0;
  423. function checkDeviceWidth() {
  424. var _wx$getSystemInfoSync = wx.getSystemInfoSync(),
  425. platform = _wx$getSystemInfoSync.platform,
  426. pixelRatio = _wx$getSystemInfoSync.pixelRatio,
  427. windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  428. deviceWidth = windowWidth;
  429. deviceDPR = pixelRatio;
  430. isIOS = platform === 'ios';
  431. }
  432. function upx2px(number, newDeviceWidth) {
  433. if (deviceWidth === 0) {
  434. checkDeviceWidth();
  435. }
  436. number = Number(number);
  437. if (number === 0) {
  438. return 0;
  439. }
  440. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  441. if (result < 0) {
  442. result = -result;
  443. }
  444. result = Math.floor(result + EPS);
  445. if (result === 0) {
  446. if (deviceDPR === 1 || !isIOS) {
  447. result = 1;
  448. } else {
  449. result = 0.5;
  450. }
  451. }
  452. return number < 0 ? -result : result;
  453. }
  454. var LOCALE_ZH_HANS = 'zh-Hans';
  455. var LOCALE_ZH_HANT = 'zh-Hant';
  456. var LOCALE_EN = 'en';
  457. var LOCALE_FR = 'fr';
  458. var LOCALE_ES = 'es';
  459. var messages = {};
  460. var locale;
  461. {
  462. locale = normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  463. }
  464. function initI18nMessages() {
  465. if (!isEnableLocale()) {
  466. return;
  467. }
  468. var localeKeys = Object.keys(__uniConfig.locales);
  469. if (localeKeys.length) {
  470. localeKeys.forEach(function (locale) {
  471. var curMessages = messages[locale];
  472. var userMessages = __uniConfig.locales[locale];
  473. if (curMessages) {
  474. Object.assign(curMessages, userMessages);
  475. } else {
  476. messages[locale] = userMessages;
  477. }
  478. });
  479. }
  480. }
  481. initI18nMessages();
  482. var i18n = (0, _uniI18n.initVueI18n)(locale, {});
  483. var t = i18n.t;
  484. var i18nMixin = i18n.mixin = {
  485. beforeCreate: function beforeCreate() {
  486. var _this = this;
  487. var unwatch = i18n.i18n.watchLocale(function () {
  488. _this.$forceUpdate();
  489. });
  490. this.$once('hook:beforeDestroy', function () {
  491. unwatch();
  492. });
  493. },
  494. methods: {
  495. $$t: function $$t(key, values) {
  496. return t(key, values);
  497. }
  498. }
  499. };
  500. var setLocale = i18n.setLocale;
  501. var getLocale = i18n.getLocale;
  502. function initAppLocale(Vue, appVm, locale) {
  503. var state = Vue.observable({
  504. locale: locale || i18n.getLocale()
  505. });
  506. var localeWatchers = [];
  507. appVm.$watchLocale = function (fn) {
  508. localeWatchers.push(fn);
  509. };
  510. Object.defineProperty(appVm, '$locale', {
  511. get: function get() {
  512. return state.locale;
  513. },
  514. set: function set(v) {
  515. state.locale = v;
  516. localeWatchers.forEach(function (watch) {
  517. return watch(v);
  518. });
  519. }
  520. });
  521. }
  522. function isEnableLocale() {
  523. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  524. }
  525. function include(str, parts) {
  526. return !!parts.find(function (part) {
  527. return str.indexOf(part) !== -1;
  528. });
  529. }
  530. function startsWith(str, parts) {
  531. return parts.find(function (part) {
  532. return str.indexOf(part) === 0;
  533. });
  534. }
  535. function normalizeLocale(locale, messages) {
  536. if (!locale) {
  537. return;
  538. }
  539. locale = locale.trim().replace(/_/g, '-');
  540. if (messages && messages[locale]) {
  541. return locale;
  542. }
  543. locale = locale.toLowerCase();
  544. if (locale === 'chinese') {
  545. // 支付宝
  546. return LOCALE_ZH_HANS;
  547. }
  548. if (locale.indexOf('zh') === 0) {
  549. if (locale.indexOf('-hans') > -1) {
  550. return LOCALE_ZH_HANS;
  551. }
  552. if (locale.indexOf('-hant') > -1) {
  553. return LOCALE_ZH_HANT;
  554. }
  555. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  556. return LOCALE_ZH_HANT;
  557. }
  558. return LOCALE_ZH_HANS;
  559. }
  560. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  561. if (lang) {
  562. return lang;
  563. }
  564. }
  565. // export function initI18n() {
  566. // const localeKeys = Object.keys(__uniConfig.locales || {})
  567. // if (localeKeys.length) {
  568. // localeKeys.forEach((locale) =>
  569. // i18n.add(locale, __uniConfig.locales[locale])
  570. // )
  571. // }
  572. // }
  573. function getLocale$1() {
  574. // 优先使用 $locale
  575. if (isFn(getApp)) {
  576. var app = getApp({
  577. allowDefault: true
  578. });
  579. if (app && app.$vm) {
  580. return app.$vm.$locale;
  581. }
  582. }
  583. return normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  584. }
  585. function setLocale$1(locale) {
  586. var app = isFn(getApp) ? getApp() : false;
  587. if (!app) {
  588. return false;
  589. }
  590. var oldLocale = app.$vm.$locale;
  591. if (oldLocale !== locale) {
  592. app.$vm.$locale = locale;
  593. onLocaleChangeCallbacks.forEach(function (fn) {
  594. return fn({
  595. locale: locale
  596. });
  597. });
  598. return true;
  599. }
  600. return false;
  601. }
  602. var onLocaleChangeCallbacks = [];
  603. function onLocaleChange(fn) {
  604. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  605. onLocaleChangeCallbacks.push(fn);
  606. }
  607. }
  608. if (typeof global !== 'undefined') {
  609. global.getLocale = getLocale$1;
  610. }
  611. var interceptors = {
  612. promiseInterceptor: promiseInterceptor
  613. };
  614. var baseApi = /*#__PURE__*/Object.freeze({
  615. __proto__: null,
  616. upx2px: upx2px,
  617. getLocale: getLocale$1,
  618. setLocale: setLocale$1,
  619. onLocaleChange: onLocaleChange,
  620. addInterceptor: addInterceptor,
  621. removeInterceptor: removeInterceptor,
  622. interceptors: interceptors
  623. });
  624. function findExistsPageIndex(url) {
  625. var pages = getCurrentPages();
  626. var len = pages.length;
  627. while (len--) {
  628. var page = pages[len];
  629. if (page.$page && page.$page.fullPath === url) {
  630. return len;
  631. }
  632. }
  633. return -1;
  634. }
  635. var redirectTo = {
  636. name: function name(fromArgs) {
  637. if (fromArgs.exists === 'back' && fromArgs.delta) {
  638. return 'navigateBack';
  639. }
  640. return 'redirectTo';
  641. },
  642. args: function args(fromArgs) {
  643. if (fromArgs.exists === 'back' && fromArgs.url) {
  644. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  645. if (existsPageIndex !== -1) {
  646. var delta = getCurrentPages().length - 1 - existsPageIndex;
  647. if (delta > 0) {
  648. fromArgs.delta = delta;
  649. }
  650. }
  651. }
  652. }
  653. };
  654. var previewImage = {
  655. args: function args(fromArgs) {
  656. var currentIndex = parseInt(fromArgs.current);
  657. if (isNaN(currentIndex)) {
  658. return;
  659. }
  660. var urls = fromArgs.urls;
  661. if (!Array.isArray(urls)) {
  662. return;
  663. }
  664. var len = urls.length;
  665. if (!len) {
  666. return;
  667. }
  668. if (currentIndex < 0) {
  669. currentIndex = 0;
  670. } else if (currentIndex >= len) {
  671. currentIndex = len - 1;
  672. }
  673. if (currentIndex > 0) {
  674. fromArgs.current = urls[currentIndex];
  675. fromArgs.urls = urls.filter(function (item, index) {
  676. return index < currentIndex ? item !== urls[currentIndex] : true;
  677. });
  678. } else {
  679. fromArgs.current = urls[0];
  680. }
  681. return {
  682. indicator: false,
  683. loop: false
  684. };
  685. }
  686. };
  687. var UUID_KEY = '__DC_STAT_UUID';
  688. var deviceId;
  689. function useDeviceId(result) {
  690. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  691. if (!deviceId) {
  692. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  693. wx.setStorage({
  694. key: UUID_KEY,
  695. data: deviceId
  696. });
  697. }
  698. result.deviceId = deviceId;
  699. }
  700. function addSafeAreaInsets(result) {
  701. if (result.safeArea) {
  702. var safeArea = result.safeArea;
  703. result.safeAreaInsets = {
  704. top: safeArea.top,
  705. left: safeArea.left,
  706. right: result.windowWidth - safeArea.right,
  707. bottom: result.screenHeight - safeArea.bottom
  708. };
  709. }
  710. }
  711. function populateParameters(result) {
  712. var _result$brand = result.brand,
  713. brand = _result$brand === void 0 ? '' : _result$brand,
  714. _result$model = result.model,
  715. model = _result$model === void 0 ? '' : _result$model,
  716. _result$system = result.system,
  717. system = _result$system === void 0 ? '' : _result$system,
  718. _result$language = result.language,
  719. language = _result$language === void 0 ? '' : _result$language,
  720. theme = result.theme,
  721. version = result.version,
  722. platform = result.platform,
  723. fontSizeSetting = result.fontSizeSetting,
  724. SDKVersion = result.SDKVersion,
  725. pixelRatio = result.pixelRatio,
  726. deviceOrientation = result.deviceOrientation;
  727. // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
  728. var extraParam = {};
  729. // osName osVersion
  730. var osName = '';
  731. var osVersion = '';
  732. {
  733. osName = system.split(' ')[0] || '';
  734. osVersion = system.split(' ')[1] || '';
  735. }
  736. var hostVersion = version;
  737. // deviceType
  738. var deviceType = getGetDeviceType(result, model);
  739. // deviceModel
  740. var deviceBrand = getDeviceBrand(brand);
  741. // hostName
  742. var _hostName = getHostName(result);
  743. // deviceOrientation
  744. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  745. // devicePixelRatio
  746. var _devicePixelRatio = pixelRatio;
  747. // SDKVersion
  748. var _SDKVersion = SDKVersion;
  749. // hostLanguage
  750. var hostLanguage = language.replace(/_/g, '-');
  751. // wx.getAccountInfoSync
  752. var parameters = {
  753. appId: "__UNI__EEB3904",
  754. appName: "shoppingTemplate",
  755. appVersion: "1.0.0",
  756. appVersionCode: "100",
  757. appLanguage: getAppLanguage(hostLanguage),
  758. uniCompileVersion: "3.8.7",
  759. uniRuntimeVersion: "3.8.7",
  760. uniPlatform: undefined || "mp-weixin",
  761. deviceBrand: deviceBrand,
  762. deviceModel: model,
  763. deviceType: deviceType,
  764. devicePixelRatio: _devicePixelRatio,
  765. deviceOrientation: _deviceOrientation,
  766. osName: osName.toLocaleLowerCase(),
  767. osVersion: osVersion,
  768. hostTheme: theme,
  769. hostVersion: hostVersion,
  770. hostLanguage: hostLanguage,
  771. hostName: _hostName,
  772. hostSDKVersion: _SDKVersion,
  773. hostFontSizeSetting: fontSizeSetting,
  774. windowTop: 0,
  775. windowBottom: 0,
  776. // TODO
  777. osLanguage: undefined,
  778. osTheme: undefined,
  779. ua: undefined,
  780. hostPackageName: undefined,
  781. browserName: undefined,
  782. browserVersion: undefined
  783. };
  784. Object.assign(result, parameters, extraParam);
  785. }
  786. function getGetDeviceType(result, model) {
  787. var deviceType = result.deviceType || 'phone';
  788. {
  789. var deviceTypeMaps = {
  790. ipad: 'pad',
  791. windows: 'pc',
  792. mac: 'pc'
  793. };
  794. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  795. var _model = model.toLocaleLowerCase();
  796. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  797. var _m = deviceTypeMapsKeys[index];
  798. if (_model.indexOf(_m) !== -1) {
  799. deviceType = deviceTypeMaps[_m];
  800. break;
  801. }
  802. }
  803. }
  804. return deviceType;
  805. }
  806. function getDeviceBrand(brand) {
  807. var deviceBrand = brand;
  808. if (deviceBrand) {
  809. deviceBrand = brand.toLocaleLowerCase();
  810. }
  811. return deviceBrand;
  812. }
  813. function getAppLanguage(defaultLanguage) {
  814. return getLocale$1 ? getLocale$1() : defaultLanguage;
  815. }
  816. function getHostName(result) {
  817. var _platform = 'WeChat';
  818. var _hostName = result.hostName || _platform; // mp-jd
  819. {
  820. if (result.environment) {
  821. _hostName = result.environment;
  822. } else if (result.host && result.host.env) {
  823. _hostName = result.host.env;
  824. }
  825. }
  826. return _hostName;
  827. }
  828. var getSystemInfo = {
  829. returnValue: function returnValue(result) {
  830. useDeviceId(result);
  831. addSafeAreaInsets(result);
  832. populateParameters(result);
  833. }
  834. };
  835. var showActionSheet = {
  836. args: function args(fromArgs) {
  837. if ((0, _typeof2.default)(fromArgs) === 'object') {
  838. fromArgs.alertText = fromArgs.title;
  839. }
  840. }
  841. };
  842. var getAppBaseInfo = {
  843. returnValue: function returnValue(result) {
  844. var _result = result,
  845. version = _result.version,
  846. language = _result.language,
  847. SDKVersion = _result.SDKVersion,
  848. theme = _result.theme;
  849. var _hostName = getHostName(result);
  850. var hostLanguage = language.replace('_', '-');
  851. result = sortObject(Object.assign(result, {
  852. appId: "__UNI__EEB3904",
  853. appName: "shoppingTemplate",
  854. appVersion: "1.0.0",
  855. appVersionCode: "100",
  856. appLanguage: getAppLanguage(hostLanguage),
  857. hostVersion: version,
  858. hostLanguage: hostLanguage,
  859. hostName: _hostName,
  860. hostSDKVersion: SDKVersion,
  861. hostTheme: theme
  862. }));
  863. }
  864. };
  865. var getDeviceInfo = {
  866. returnValue: function returnValue(result) {
  867. var _result2 = result,
  868. brand = _result2.brand,
  869. model = _result2.model;
  870. var deviceType = getGetDeviceType(result, model);
  871. var deviceBrand = getDeviceBrand(brand);
  872. useDeviceId(result);
  873. result = sortObject(Object.assign(result, {
  874. deviceType: deviceType,
  875. deviceBrand: deviceBrand,
  876. deviceModel: model
  877. }));
  878. }
  879. };
  880. var getWindowInfo = {
  881. returnValue: function returnValue(result) {
  882. addSafeAreaInsets(result);
  883. result = sortObject(Object.assign(result, {
  884. windowTop: 0,
  885. windowBottom: 0
  886. }));
  887. }
  888. };
  889. var getAppAuthorizeSetting = {
  890. returnValue: function returnValue(result) {
  891. var locationReducedAccuracy = result.locationReducedAccuracy;
  892. result.locationAccuracy = 'unsupported';
  893. if (locationReducedAccuracy === true) {
  894. result.locationAccuracy = 'reduced';
  895. } else if (locationReducedAccuracy === false) {
  896. result.locationAccuracy = 'full';
  897. }
  898. }
  899. };
  900. // import navigateTo from 'uni-helpers/navigate-to'
  901. var compressImage = {
  902. args: function args(fromArgs) {
  903. // https://developers.weixin.qq.com/community/develop/doc/000c08940c865011298e0a43256800?highLine=compressHeight
  904. if (fromArgs.compressedHeight && !fromArgs.compressHeight) {
  905. fromArgs.compressHeight = fromArgs.compressedHeight;
  906. }
  907. if (fromArgs.compressedWidth && !fromArgs.compressWidth) {
  908. fromArgs.compressWidth = fromArgs.compressedWidth;
  909. }
  910. }
  911. };
  912. var protocols = {
  913. redirectTo: redirectTo,
  914. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  915. previewImage: previewImage,
  916. getSystemInfo: getSystemInfo,
  917. getSystemInfoSync: getSystemInfo,
  918. showActionSheet: showActionSheet,
  919. getAppBaseInfo: getAppBaseInfo,
  920. getDeviceInfo: getDeviceInfo,
  921. getWindowInfo: getWindowInfo,
  922. getAppAuthorizeSetting: getAppAuthorizeSetting,
  923. compressImage: compressImage
  924. };
  925. var todos = ['vibrate', 'preloadPage', 'unPreloadPage', 'loadSubPackage'];
  926. var canIUses = [];
  927. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  928. function processCallback(methodName, method, returnValue) {
  929. return function (res) {
  930. return method(processReturnValue(methodName, res, returnValue));
  931. };
  932. }
  933. function processArgs(methodName, fromArgs) {
  934. var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  935. var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  936. var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  937. if (isPlainObject(fromArgs)) {
  938. // 一般 api 的参数解析
  939. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  940. if (isFn(argsOption)) {
  941. argsOption = argsOption(fromArgs, toArgs) || {};
  942. }
  943. for (var key in fromArgs) {
  944. if (hasOwn(argsOption, key)) {
  945. var keyOption = argsOption[key];
  946. if (isFn(keyOption)) {
  947. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  948. }
  949. if (!keyOption) {
  950. // 不支持的参数
  951. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  952. } else if (isStr(keyOption)) {
  953. // 重写参数 key
  954. toArgs[keyOption] = fromArgs[key];
  955. } else if (isPlainObject(keyOption)) {
  956. // {name:newName,value:value}可重新指定参数 key:value
  957. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  958. }
  959. } else if (CALLBACKS.indexOf(key) !== -1) {
  960. if (isFn(fromArgs[key])) {
  961. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  962. }
  963. } else {
  964. if (!keepFromArgs) {
  965. toArgs[key] = fromArgs[key];
  966. }
  967. }
  968. }
  969. return toArgs;
  970. } else if (isFn(fromArgs)) {
  971. fromArgs = processCallback(methodName, fromArgs, returnValue);
  972. }
  973. return fromArgs;
  974. }
  975. function processReturnValue(methodName, res, returnValue) {
  976. var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  977. if (isFn(protocols.returnValue)) {
  978. // 处理通用 returnValue
  979. res = protocols.returnValue(methodName, res);
  980. }
  981. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  982. }
  983. function wrapper(methodName, method) {
  984. if (hasOwn(protocols, methodName)) {
  985. var protocol = protocols[methodName];
  986. if (!protocol) {
  987. // 暂不支持的 api
  988. return function () {
  989. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  990. };
  991. }
  992. return function (arg1, arg2) {
  993. // 目前 api 最多两个参数
  994. var options = protocol;
  995. if (isFn(protocol)) {
  996. options = protocol(arg1);
  997. }
  998. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  999. var args = [arg1];
  1000. if (typeof arg2 !== 'undefined') {
  1001. args.push(arg2);
  1002. }
  1003. if (isFn(options.name)) {
  1004. methodName = options.name(arg1);
  1005. } else if (isStr(options.name)) {
  1006. methodName = options.name;
  1007. }
  1008. var returnValue = wx[methodName].apply(wx, args);
  1009. if (isSyncApi(methodName)) {
  1010. // 同步 api
  1011. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  1012. }
  1013. return returnValue;
  1014. };
  1015. }
  1016. return method;
  1017. }
  1018. var todoApis = Object.create(null);
  1019. var TODOS = ['onTabBarMidButtonTap', 'subscribePush', 'unsubscribePush', 'onPush', 'offPush', 'share'];
  1020. function createTodoApi(name) {
  1021. return function todoApi(_ref) {
  1022. var fail = _ref.fail,
  1023. complete = _ref.complete;
  1024. var res = {
  1025. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported")
  1026. };
  1027. isFn(fail) && fail(res);
  1028. isFn(complete) && complete(res);
  1029. };
  1030. }
  1031. TODOS.forEach(function (name) {
  1032. todoApis[name] = createTodoApi(name);
  1033. });
  1034. var providers = {
  1035. oauth: ['weixin'],
  1036. share: ['weixin'],
  1037. payment: ['wxpay'],
  1038. push: ['weixin']
  1039. };
  1040. function getProvider(_ref2) {
  1041. var service = _ref2.service,
  1042. success = _ref2.success,
  1043. fail = _ref2.fail,
  1044. complete = _ref2.complete;
  1045. var res = false;
  1046. if (providers[service]) {
  1047. res = {
  1048. errMsg: 'getProvider:ok',
  1049. service: service,
  1050. provider: providers[service]
  1051. };
  1052. isFn(success) && success(res);
  1053. } else {
  1054. res = {
  1055. errMsg: 'getProvider:fail service not found'
  1056. };
  1057. isFn(fail) && fail(res);
  1058. }
  1059. isFn(complete) && complete(res);
  1060. }
  1061. var extraApi = /*#__PURE__*/Object.freeze({
  1062. __proto__: null,
  1063. getProvider: getProvider
  1064. });
  1065. var getEmitter = function () {
  1066. var Emitter;
  1067. return function getUniEmitter() {
  1068. if (!Emitter) {
  1069. Emitter = new _vue.default();
  1070. }
  1071. return Emitter;
  1072. };
  1073. }();
  1074. function apply(ctx, method, args) {
  1075. return ctx[method].apply(ctx, args);
  1076. }
  1077. function $on() {
  1078. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  1079. }
  1080. function $off() {
  1081. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  1082. }
  1083. function $once() {
  1084. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  1085. }
  1086. function $emit() {
  1087. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  1088. }
  1089. var eventApi = /*#__PURE__*/Object.freeze({
  1090. __proto__: null,
  1091. $on: $on,
  1092. $off: $off,
  1093. $once: $once,
  1094. $emit: $emit
  1095. });
  1096. /**
  1097. * 框架内 try-catch
  1098. */
  1099. /**
  1100. * 开发者 try-catch
  1101. */
  1102. function tryCatch(fn) {
  1103. return function () {
  1104. try {
  1105. return fn.apply(fn, arguments);
  1106. } catch (e) {
  1107. // TODO
  1108. console.error(e);
  1109. }
  1110. };
  1111. }
  1112. function getApiCallbacks(params) {
  1113. var apiCallbacks = {};
  1114. for (var name in params) {
  1115. var param = params[name];
  1116. if (isFn(param)) {
  1117. apiCallbacks[name] = tryCatch(param);
  1118. delete params[name];
  1119. }
  1120. }
  1121. return apiCallbacks;
  1122. }
  1123. var cid;
  1124. var cidErrMsg;
  1125. var enabled;
  1126. function normalizePushMessage(message) {
  1127. try {
  1128. return JSON.parse(message);
  1129. } catch (e) {}
  1130. return message;
  1131. }
  1132. function invokePushCallback(args) {
  1133. if (args.type === 'enabled') {
  1134. enabled = true;
  1135. } else if (args.type === 'clientId') {
  1136. cid = args.cid;
  1137. cidErrMsg = args.errMsg;
  1138. invokeGetPushCidCallbacks(cid, args.errMsg);
  1139. } else if (args.type === 'pushMsg') {
  1140. var message = {
  1141. type: 'receive',
  1142. data: normalizePushMessage(args.message)
  1143. };
  1144. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  1145. var callback = onPushMessageCallbacks[i];
  1146. callback(message);
  1147. // 该消息已被阻止
  1148. if (message.stopped) {
  1149. break;
  1150. }
  1151. }
  1152. } else if (args.type === 'click') {
  1153. onPushMessageCallbacks.forEach(function (callback) {
  1154. callback({
  1155. type: 'click',
  1156. data: normalizePushMessage(args.message)
  1157. });
  1158. });
  1159. }
  1160. }
  1161. var getPushCidCallbacks = [];
  1162. function invokeGetPushCidCallbacks(cid, errMsg) {
  1163. getPushCidCallbacks.forEach(function (callback) {
  1164. callback(cid, errMsg);
  1165. });
  1166. getPushCidCallbacks.length = 0;
  1167. }
  1168. function getPushClientId(args) {
  1169. if (!isPlainObject(args)) {
  1170. args = {};
  1171. }
  1172. var _getApiCallbacks = getApiCallbacks(args),
  1173. success = _getApiCallbacks.success,
  1174. fail = _getApiCallbacks.fail,
  1175. complete = _getApiCallbacks.complete;
  1176. var hasSuccess = isFn(success);
  1177. var hasFail = isFn(fail);
  1178. var hasComplete = isFn(complete);
  1179. Promise.resolve().then(function () {
  1180. if (typeof enabled === 'undefined') {
  1181. enabled = false;
  1182. cid = '';
  1183. cidErrMsg = 'uniPush is not enabled';
  1184. }
  1185. getPushCidCallbacks.push(function (cid, errMsg) {
  1186. var res;
  1187. if (cid) {
  1188. res = {
  1189. errMsg: 'getPushClientId:ok',
  1190. cid: cid
  1191. };
  1192. hasSuccess && success(res);
  1193. } else {
  1194. res = {
  1195. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
  1196. };
  1197. hasFail && fail(res);
  1198. }
  1199. hasComplete && complete(res);
  1200. });
  1201. if (typeof cid !== 'undefined') {
  1202. invokeGetPushCidCallbacks(cid, cidErrMsg);
  1203. }
  1204. });
  1205. }
  1206. var onPushMessageCallbacks = [];
  1207. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  1208. var onPushMessage = function onPushMessage(fn) {
  1209. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  1210. onPushMessageCallbacks.push(fn);
  1211. }
  1212. };
  1213. var offPushMessage = function offPushMessage(fn) {
  1214. if (!fn) {
  1215. onPushMessageCallbacks.length = 0;
  1216. } else {
  1217. var index = onPushMessageCallbacks.indexOf(fn);
  1218. if (index > -1) {
  1219. onPushMessageCallbacks.splice(index, 1);
  1220. }
  1221. }
  1222. };
  1223. var baseInfo = wx.getAppBaseInfo && wx.getAppBaseInfo();
  1224. if (!baseInfo) {
  1225. baseInfo = wx.getSystemInfoSync();
  1226. }
  1227. var host = baseInfo ? baseInfo.host : null;
  1228. var shareVideoMessage = host && host.env === 'SAAASDK' ? wx.miniapp.shareVideoMessage : wx.shareVideoMessage;
  1229. var api = /*#__PURE__*/Object.freeze({
  1230. __proto__: null,
  1231. shareVideoMessage: shareVideoMessage,
  1232. getPushClientId: getPushClientId,
  1233. onPushMessage: onPushMessage,
  1234. offPushMessage: offPushMessage,
  1235. invokePushCallback: invokePushCallback
  1236. });
  1237. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1238. function findVmByVueId(vm, vuePid) {
  1239. var $children = vm.$children;
  1240. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1241. for (var i = $children.length - 1; i >= 0; i--) {
  1242. var childVm = $children[i];
  1243. if (childVm.$scope._$vueId === vuePid) {
  1244. return childVm;
  1245. }
  1246. }
  1247. // 反向递归查找
  1248. var parentVm;
  1249. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1250. parentVm = findVmByVueId($children[_i], vuePid);
  1251. if (parentVm) {
  1252. return parentVm;
  1253. }
  1254. }
  1255. }
  1256. function initBehavior(options) {
  1257. return Behavior(options);
  1258. }
  1259. function isPage() {
  1260. return !!this.route;
  1261. }
  1262. function initRelation(detail) {
  1263. this.triggerEvent('__l', detail);
  1264. }
  1265. function selectAllComponents(mpInstance, selector, $refs) {
  1266. var components = mpInstance.selectAllComponents(selector) || [];
  1267. components.forEach(function (component) {
  1268. var ref = component.dataset.ref;
  1269. $refs[ref] = component.$vm || toSkip(component);
  1270. {
  1271. if (component.dataset.vueGeneric === 'scoped') {
  1272. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1273. selectAllComponents(scopedComponent, selector, $refs);
  1274. });
  1275. }
  1276. }
  1277. });
  1278. }
  1279. function syncRefs(refs, newRefs) {
  1280. var oldKeys = (0, _construct2.default)(Set, (0, _toConsumableArray2.default)(Object.keys(refs)));
  1281. var newKeys = Object.keys(newRefs);
  1282. newKeys.forEach(function (key) {
  1283. var oldValue = refs[key];
  1284. var newValue = newRefs[key];
  1285. if (Array.isArray(oldValue) && Array.isArray(newValue) && oldValue.length === newValue.length && newValue.every(function (value) {
  1286. return oldValue.includes(value);
  1287. })) {
  1288. return;
  1289. }
  1290. refs[key] = newValue;
  1291. oldKeys.delete(key);
  1292. });
  1293. oldKeys.forEach(function (key) {
  1294. delete refs[key];
  1295. });
  1296. return refs;
  1297. }
  1298. function initRefs(vm) {
  1299. var mpInstance = vm.$scope;
  1300. var refs = {};
  1301. Object.defineProperty(vm, '$refs', {
  1302. get: function get() {
  1303. var $refs = {};
  1304. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1305. // TODO 暂不考虑 for 中的 scoped
  1306. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for') || [];
  1307. forComponents.forEach(function (component) {
  1308. var ref = component.dataset.ref;
  1309. if (!$refs[ref]) {
  1310. $refs[ref] = [];
  1311. }
  1312. $refs[ref].push(component.$vm || toSkip(component));
  1313. });
  1314. return syncRefs(refs, $refs);
  1315. }
  1316. });
  1317. }
  1318. function handleLink(event) {
  1319. var _ref3 = event.detail || event.value,
  1320. vuePid = _ref3.vuePid,
  1321. vueOptions = _ref3.vueOptions; // detail 是微信,value 是百度(dipatch)
  1322. var parentVm;
  1323. if (vuePid) {
  1324. parentVm = findVmByVueId(this.$vm, vuePid);
  1325. }
  1326. if (!parentVm) {
  1327. parentVm = this.$vm;
  1328. }
  1329. vueOptions.parent = parentVm;
  1330. }
  1331. function markMPComponent(component) {
  1332. // 在 Vue 中标记为小程序组件
  1333. var IS_MP = '__v_isMPComponent';
  1334. Object.defineProperty(component, IS_MP, {
  1335. configurable: true,
  1336. enumerable: false,
  1337. value: true
  1338. });
  1339. return component;
  1340. }
  1341. function toSkip(obj) {
  1342. var OB = '__ob__';
  1343. var SKIP = '__v_skip';
  1344. if (isObject(obj) && Object.isExtensible(obj)) {
  1345. // 避免被 @vue/composition-api 观测
  1346. Object.defineProperty(obj, OB, {
  1347. configurable: true,
  1348. enumerable: false,
  1349. value: (0, _defineProperty2.default)({}, SKIP, true)
  1350. });
  1351. }
  1352. return obj;
  1353. }
  1354. var WORKLET_RE = /_(.*)_worklet_factory_/;
  1355. function initWorkletMethods(mpMethods, vueMethods) {
  1356. if (vueMethods) {
  1357. Object.keys(vueMethods).forEach(function (name) {
  1358. var matches = name.match(WORKLET_RE);
  1359. if (matches) {
  1360. var workletName = matches[1];
  1361. mpMethods[name] = vueMethods[name];
  1362. mpMethods[workletName] = vueMethods[workletName];
  1363. }
  1364. });
  1365. }
  1366. }
  1367. var MPPage = Page;
  1368. var MPComponent = Component;
  1369. var customizeRE = /:/g;
  1370. var customize = cached(function (str) {
  1371. return camelize(str.replace(customizeRE, '-'));
  1372. });
  1373. function initTriggerEvent(mpInstance) {
  1374. var oldTriggerEvent = mpInstance.triggerEvent;
  1375. var newTriggerEvent = function newTriggerEvent(event) {
  1376. for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
  1377. args[_key3 - 1] = arguments[_key3];
  1378. }
  1379. // 事件名统一转驼峰格式,仅处理:当前组件为 vue 组件、当前组件为 vue 组件子组件
  1380. if (this.$vm || this.dataset && this.dataset.comType) {
  1381. event = customize(event);
  1382. } else {
  1383. // 针对微信/QQ小程序单独补充驼峰格式事件,以兼容历史项目
  1384. var newEvent = customize(event);
  1385. if (newEvent !== event) {
  1386. oldTriggerEvent.apply(this, [newEvent].concat(args));
  1387. }
  1388. }
  1389. return oldTriggerEvent.apply(this, [event].concat(args));
  1390. };
  1391. try {
  1392. // 京东小程序 triggerEvent 为只读
  1393. mpInstance.triggerEvent = newTriggerEvent;
  1394. } catch (error) {
  1395. mpInstance._triggerEvent = newTriggerEvent;
  1396. }
  1397. }
  1398. function initHook(name, options, isComponent) {
  1399. var oldHook = options[name];
  1400. options[name] = function () {
  1401. markMPComponent(this);
  1402. initTriggerEvent(this);
  1403. if (oldHook) {
  1404. for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  1405. args[_key4] = arguments[_key4];
  1406. }
  1407. return oldHook.apply(this, args);
  1408. }
  1409. };
  1410. }
  1411. if (!MPPage.__$wrappered) {
  1412. MPPage.__$wrappered = true;
  1413. Page = function Page() {
  1414. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1415. initHook('onLoad', options);
  1416. return MPPage(options);
  1417. };
  1418. Page.after = MPPage.after;
  1419. Component = function Component() {
  1420. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1421. initHook('created', options);
  1422. return MPComponent(options);
  1423. };
  1424. }
  1425. var PAGE_EVENT_HOOKS = ['onPullDownRefresh', 'onReachBottom', 'onAddToFavorites', 'onShareTimeline', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
  1426. function initMocks(vm, mocks) {
  1427. var mpInstance = vm.$mp[vm.mpType];
  1428. mocks.forEach(function (mock) {
  1429. if (hasOwn(mpInstance, mock)) {
  1430. vm[mock] = mpInstance[mock];
  1431. }
  1432. });
  1433. }
  1434. function hasHook(hook, vueOptions) {
  1435. if (!vueOptions) {
  1436. return true;
  1437. }
  1438. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  1439. return true;
  1440. }
  1441. vueOptions = vueOptions.default || vueOptions;
  1442. if (isFn(vueOptions)) {
  1443. if (isFn(vueOptions.extendOptions[hook])) {
  1444. return true;
  1445. }
  1446. if (vueOptions.super && vueOptions.super.options && Array.isArray(vueOptions.super.options[hook])) {
  1447. return true;
  1448. }
  1449. return false;
  1450. }
  1451. if (isFn(vueOptions[hook]) || Array.isArray(vueOptions[hook])) {
  1452. return true;
  1453. }
  1454. var mixins = vueOptions.mixins;
  1455. if (Array.isArray(mixins)) {
  1456. return !!mixins.find(function (mixin) {
  1457. return hasHook(hook, mixin);
  1458. });
  1459. }
  1460. }
  1461. function initHooks(mpOptions, hooks, vueOptions) {
  1462. hooks.forEach(function (hook) {
  1463. if (hasHook(hook, vueOptions)) {
  1464. mpOptions[hook] = function (args) {
  1465. return this.$vm && this.$vm.__call_hook(hook, args);
  1466. };
  1467. }
  1468. });
  1469. }
  1470. function initUnknownHooks(mpOptions, vueOptions) {
  1471. var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1472. findHooks(vueOptions).forEach(function (hook) {
  1473. return initHook$1(mpOptions, hook, excludes);
  1474. });
  1475. }
  1476. function findHooks(vueOptions) {
  1477. var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  1478. if (vueOptions) {
  1479. Object.keys(vueOptions).forEach(function (name) {
  1480. if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
  1481. hooks.push(name);
  1482. }
  1483. });
  1484. }
  1485. return hooks;
  1486. }
  1487. function initHook$1(mpOptions, hook, excludes) {
  1488. if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
  1489. mpOptions[hook] = function (args) {
  1490. return this.$vm && this.$vm.__call_hook(hook, args);
  1491. };
  1492. }
  1493. }
  1494. function initVueComponent(Vue, vueOptions) {
  1495. vueOptions = vueOptions.default || vueOptions;
  1496. var VueComponent;
  1497. if (isFn(vueOptions)) {
  1498. VueComponent = vueOptions;
  1499. } else {
  1500. VueComponent = Vue.extend(vueOptions);
  1501. }
  1502. vueOptions = VueComponent.options;
  1503. return [VueComponent, vueOptions];
  1504. }
  1505. function initSlots(vm, vueSlots) {
  1506. if (Array.isArray(vueSlots) && vueSlots.length) {
  1507. var $slots = Object.create(null);
  1508. vueSlots.forEach(function (slotName) {
  1509. $slots[slotName] = true;
  1510. });
  1511. vm.$scopedSlots = vm.$slots = $slots;
  1512. }
  1513. }
  1514. function initVueIds(vueIds, mpInstance) {
  1515. vueIds = (vueIds || '').split(',');
  1516. var len = vueIds.length;
  1517. if (len === 1) {
  1518. mpInstance._$vueId = vueIds[0];
  1519. } else if (len === 2) {
  1520. mpInstance._$vueId = vueIds[0];
  1521. mpInstance._$vuePid = vueIds[1];
  1522. }
  1523. }
  1524. function initData(vueOptions, context) {
  1525. var data = vueOptions.data || {};
  1526. var methods = vueOptions.methods || {};
  1527. if (typeof data === 'function') {
  1528. try {
  1529. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  1530. } catch (e) {
  1531. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"shoppingTemplate","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  1532. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  1533. }
  1534. }
  1535. } else {
  1536. try {
  1537. // 对 data 格式化
  1538. data = JSON.parse(JSON.stringify(data));
  1539. } catch (e) {}
  1540. }
  1541. if (!isPlainObject(data)) {
  1542. data = {};
  1543. }
  1544. Object.keys(methods).forEach(function (methodName) {
  1545. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  1546. data[methodName] = methods[methodName];
  1547. }
  1548. });
  1549. return data;
  1550. }
  1551. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  1552. function createObserver(name) {
  1553. return function observer(newVal, oldVal) {
  1554. if (this.$vm) {
  1555. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  1556. }
  1557. };
  1558. }
  1559. function initBehaviors(vueOptions, initBehavior) {
  1560. var vueBehaviors = vueOptions.behaviors;
  1561. var vueExtends = vueOptions.extends;
  1562. var vueMixins = vueOptions.mixins;
  1563. var vueProps = vueOptions.props;
  1564. if (!vueProps) {
  1565. vueOptions.props = vueProps = [];
  1566. }
  1567. var behaviors = [];
  1568. if (Array.isArray(vueBehaviors)) {
  1569. vueBehaviors.forEach(function (behavior) {
  1570. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  1571. if (behavior === 'uni://form-field') {
  1572. if (Array.isArray(vueProps)) {
  1573. vueProps.push('name');
  1574. vueProps.push('value');
  1575. } else {
  1576. vueProps.name = {
  1577. type: String,
  1578. default: ''
  1579. };
  1580. vueProps.value = {
  1581. type: [String, Number, Boolean, Array, Object, Date],
  1582. default: ''
  1583. };
  1584. }
  1585. }
  1586. });
  1587. }
  1588. if (isPlainObject(vueExtends) && vueExtends.props) {
  1589. behaviors.push(initBehavior({
  1590. properties: initProperties(vueExtends.props, true)
  1591. }));
  1592. }
  1593. if (Array.isArray(vueMixins)) {
  1594. vueMixins.forEach(function (vueMixin) {
  1595. if (isPlainObject(vueMixin) && vueMixin.props) {
  1596. behaviors.push(initBehavior({
  1597. properties: initProperties(vueMixin.props, true)
  1598. }));
  1599. }
  1600. });
  1601. }
  1602. return behaviors;
  1603. }
  1604. function parsePropType(key, type, defaultValue, file) {
  1605. // [String]=>String
  1606. if (Array.isArray(type) && type.length === 1) {
  1607. return type[0];
  1608. }
  1609. return type;
  1610. }
  1611. function initProperties(props) {
  1612. var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  1613. var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  1614. var options = arguments.length > 3 ? arguments[3] : undefined;
  1615. var properties = {};
  1616. if (!isBehavior) {
  1617. properties.vueId = {
  1618. type: String,
  1619. value: ''
  1620. };
  1621. {
  1622. if (options.virtualHost) {
  1623. properties.virtualHostStyle = {
  1624. type: null,
  1625. value: ''
  1626. };
  1627. properties.virtualHostClass = {
  1628. type: null,
  1629. value: ''
  1630. };
  1631. }
  1632. }
  1633. // scopedSlotsCompiler auto
  1634. properties.scopedSlotsCompiler = {
  1635. type: String,
  1636. value: ''
  1637. };
  1638. properties.vueSlots = {
  1639. // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  1640. type: null,
  1641. value: [],
  1642. observer: function observer(newVal, oldVal) {
  1643. var $slots = Object.create(null);
  1644. newVal.forEach(function (slotName) {
  1645. $slots[slotName] = true;
  1646. });
  1647. this.setData({
  1648. $slots: $slots
  1649. });
  1650. }
  1651. };
  1652. }
  1653. if (Array.isArray(props)) {
  1654. // ['title']
  1655. props.forEach(function (key) {
  1656. properties[key] = {
  1657. type: null,
  1658. observer: createObserver(key)
  1659. };
  1660. });
  1661. } else if (isPlainObject(props)) {
  1662. // {title:{type:String,default:''},content:String}
  1663. Object.keys(props).forEach(function (key) {
  1664. var opts = props[key];
  1665. if (isPlainObject(opts)) {
  1666. // title:{type:String,default:''}
  1667. var value = opts.default;
  1668. if (isFn(value)) {
  1669. value = value();
  1670. }
  1671. opts.type = parsePropType(key, opts.type);
  1672. properties[key] = {
  1673. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  1674. value: value,
  1675. observer: createObserver(key)
  1676. };
  1677. } else {
  1678. // content:String
  1679. var type = parsePropType(key, opts);
  1680. properties[key] = {
  1681. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  1682. observer: createObserver(key)
  1683. };
  1684. }
  1685. });
  1686. }
  1687. return properties;
  1688. }
  1689. function wrapper$1(event) {
  1690. // TODO 又得兼容 mpvue 的 mp 对象
  1691. try {
  1692. event.mp = JSON.parse(JSON.stringify(event));
  1693. } catch (e) {}
  1694. event.stopPropagation = noop;
  1695. event.preventDefault = noop;
  1696. event.target = event.target || {};
  1697. if (!hasOwn(event, 'detail')) {
  1698. event.detail = {};
  1699. }
  1700. if (hasOwn(event, 'markerId')) {
  1701. event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
  1702. event.detail.markerId = event.markerId;
  1703. }
  1704. if (isPlainObject(event.detail)) {
  1705. event.target = Object.assign({}, event.target, event.detail);
  1706. }
  1707. return event;
  1708. }
  1709. function getExtraValue(vm, dataPathsArray) {
  1710. var context = vm;
  1711. dataPathsArray.forEach(function (dataPathArray) {
  1712. var dataPath = dataPathArray[0];
  1713. var value = dataPathArray[2];
  1714. if (dataPath || typeof value !== 'undefined') {
  1715. // ['','',index,'disable']
  1716. var propPath = dataPathArray[1];
  1717. var valuePath = dataPathArray[3];
  1718. var vFor;
  1719. if (Number.isInteger(dataPath)) {
  1720. vFor = dataPath;
  1721. } else if (!dataPath) {
  1722. vFor = context;
  1723. } else if (typeof dataPath === 'string' && dataPath) {
  1724. if (dataPath.indexOf('#s#') === 0) {
  1725. vFor = dataPath.substr(3);
  1726. } else {
  1727. vFor = vm.__get_value(dataPath, context);
  1728. }
  1729. }
  1730. if (Number.isInteger(vFor)) {
  1731. context = value;
  1732. } else if (!propPath) {
  1733. context = vFor[value];
  1734. } else {
  1735. if (Array.isArray(vFor)) {
  1736. context = vFor.find(function (vForItem) {
  1737. return vm.__get_value(propPath, vForItem) === value;
  1738. });
  1739. } else if (isPlainObject(vFor)) {
  1740. context = Object.keys(vFor).find(function (vForKey) {
  1741. return vm.__get_value(propPath, vFor[vForKey]) === value;
  1742. });
  1743. } else {
  1744. console.error('v-for 暂不支持循环数据:', vFor);
  1745. }
  1746. }
  1747. if (valuePath) {
  1748. context = vm.__get_value(valuePath, context);
  1749. }
  1750. }
  1751. });
  1752. return context;
  1753. }
  1754. function processEventExtra(vm, extra, event, __args__) {
  1755. var extraObj = {};
  1756. if (Array.isArray(extra) && extra.length) {
  1757. /**
  1758. *[
  1759. * ['data.items', 'data.id', item.data.id],
  1760. * ['metas', 'id', meta.id]
  1761. *],
  1762. *[
  1763. * ['data.items', 'data.id', item.data.id],
  1764. * ['metas', 'id', meta.id]
  1765. *],
  1766. *'test'
  1767. */
  1768. extra.forEach(function (dataPath, index) {
  1769. if (typeof dataPath === 'string') {
  1770. if (!dataPath) {
  1771. // model,prop.sync
  1772. extraObj['$' + index] = vm;
  1773. } else {
  1774. if (dataPath === '$event') {
  1775. // $event
  1776. extraObj['$' + index] = event;
  1777. } else if (dataPath === 'arguments') {
  1778. extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
  1779. } else if (dataPath.indexOf('$event.') === 0) {
  1780. // $event.target.value
  1781. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1782. } else {
  1783. extraObj['$' + index] = vm.__get_value(dataPath);
  1784. }
  1785. }
  1786. } else {
  1787. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1788. }
  1789. });
  1790. }
  1791. return extraObj;
  1792. }
  1793. function getObjByArray(arr) {
  1794. var obj = {};
  1795. for (var i = 1; i < arr.length; i++) {
  1796. var element = arr[i];
  1797. obj[element[0]] = element[1];
  1798. }
  1799. return obj;
  1800. }
  1801. function processEventArgs(vm, event) {
  1802. var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1803. var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  1804. var isCustom = arguments.length > 4 ? arguments[4] : undefined;
  1805. var methodName = arguments.length > 5 ? arguments[5] : undefined;
  1806. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  1807. // fixed 用户直接触发 mpInstance.triggerEvent
  1808. var __args__ = isPlainObject(event.detail) ? event.detail.__args__ || [event.detail] : [event.detail];
  1809. if (isCustom) {
  1810. // 自定义事件
  1811. isCustomMPEvent = event.currentTarget && event.currentTarget.dataset && event.currentTarget.dataset.comType === 'wx';
  1812. if (!args.length) {
  1813. // 无参数,直接传入 event 或 detail 数组
  1814. if (isCustomMPEvent) {
  1815. return [event];
  1816. }
  1817. return __args__;
  1818. }
  1819. }
  1820. var extraObj = processEventExtra(vm, extra, event, __args__);
  1821. var ret = [];
  1822. args.forEach(function (arg) {
  1823. if (arg === '$event') {
  1824. if (methodName === '__set_model' && !isCustom) {
  1825. // input v-model value
  1826. ret.push(event.target.value);
  1827. } else {
  1828. if (isCustom && !isCustomMPEvent) {
  1829. ret.push(__args__[0]);
  1830. } else {
  1831. // wxcomponent 组件或内置组件
  1832. ret.push(event);
  1833. }
  1834. }
  1835. } else {
  1836. if (Array.isArray(arg) && arg[0] === 'o') {
  1837. ret.push(getObjByArray(arg));
  1838. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  1839. ret.push(extraObj[arg]);
  1840. } else {
  1841. ret.push(arg);
  1842. }
  1843. }
  1844. });
  1845. return ret;
  1846. }
  1847. var ONCE = '~';
  1848. var CUSTOM = '^';
  1849. function isMatchEventType(eventType, optType) {
  1850. return eventType === optType || optType === 'regionchange' && (eventType === 'begin' || eventType === 'end');
  1851. }
  1852. function getContextVm(vm) {
  1853. var $parent = vm.$parent;
  1854. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  1855. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  1856. $parent = $parent.$parent;
  1857. }
  1858. return $parent && $parent.$parent;
  1859. }
  1860. function handleEvent(event) {
  1861. var _this2 = this;
  1862. event = wrapper$1(event);
  1863. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  1864. var dataset = (event.currentTarget || event.target).dataset;
  1865. if (!dataset) {
  1866. return console.warn('事件信息不存在');
  1867. }
  1868. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  1869. if (!eventOpts) {
  1870. return console.warn('事件信息不存在');
  1871. }
  1872. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  1873. var eventType = event.type;
  1874. var ret = [];
  1875. eventOpts.forEach(function (eventOpt) {
  1876. var type = eventOpt[0];
  1877. var eventsArray = eventOpt[1];
  1878. var isCustom = type.charAt(0) === CUSTOM;
  1879. type = isCustom ? type.slice(1) : type;
  1880. var isOnce = type.charAt(0) === ONCE;
  1881. type = isOnce ? type.slice(1) : type;
  1882. if (eventsArray && isMatchEventType(eventType, type)) {
  1883. eventsArray.forEach(function (eventArray) {
  1884. var methodName = eventArray[0];
  1885. if (methodName) {
  1886. var handlerCtx = _this2.$vm;
  1887. if (handlerCtx.$options.generic) {
  1888. // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  1889. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  1890. }
  1891. if (methodName === '$emit') {
  1892. handlerCtx.$emit.apply(handlerCtx, processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName));
  1893. return;
  1894. }
  1895. var handler = handlerCtx[methodName];
  1896. if (!isFn(handler)) {
  1897. var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
  1898. var path = _this2.route || _this2.is;
  1899. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  1900. }
  1901. if (isOnce) {
  1902. if (handler.once) {
  1903. return;
  1904. }
  1905. handler.once = true;
  1906. }
  1907. var params = processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName);
  1908. params = Array.isArray(params) ? params : [];
  1909. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  1910. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  1911. // eslint-disable-next-line no-sparse-arrays
  1912. params = params.concat([,,,,,,,,,, event]);
  1913. }
  1914. ret.push(handler.apply(handlerCtx, params));
  1915. }
  1916. });
  1917. }
  1918. });
  1919. if (eventType === 'input' && ret.length === 1 && typeof ret[0] !== 'undefined') {
  1920. return ret[0];
  1921. }
  1922. }
  1923. var eventChannels = {};
  1924. function getEventChannel(id) {
  1925. var eventChannel = eventChannels[id];
  1926. delete eventChannels[id];
  1927. return eventChannel;
  1928. }
  1929. var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
  1930. function initEventChannel() {
  1931. _vue.default.prototype.getOpenerEventChannel = function () {
  1932. // 微信小程序使用自身getOpenerEventChannel
  1933. {
  1934. return this.$scope.getOpenerEventChannel();
  1935. }
  1936. };
  1937. var callHook = _vue.default.prototype.__call_hook;
  1938. _vue.default.prototype.__call_hook = function (hook, args) {
  1939. if (hook === 'onLoad' && args && args.__id__) {
  1940. this.__eventChannel__ = getEventChannel(args.__id__);
  1941. delete args.__id__;
  1942. }
  1943. return callHook.call(this, hook, args);
  1944. };
  1945. }
  1946. function initScopedSlotsParams() {
  1947. var center = {};
  1948. var parents = {};
  1949. function currentId(fn) {
  1950. var vueIds = this.$options.propsData.vueId;
  1951. if (vueIds) {
  1952. var vueId = vueIds.split(',')[0];
  1953. fn(vueId);
  1954. }
  1955. }
  1956. _vue.default.prototype.$hasSSP = function (vueId) {
  1957. var slot = center[vueId];
  1958. if (!slot) {
  1959. parents[vueId] = this;
  1960. this.$on('hook:destroyed', function () {
  1961. delete parents[vueId];
  1962. });
  1963. }
  1964. return slot;
  1965. };
  1966. _vue.default.prototype.$getSSP = function (vueId, name, needAll) {
  1967. var slot = center[vueId];
  1968. if (slot) {
  1969. var params = slot[name] || [];
  1970. if (needAll) {
  1971. return params;
  1972. }
  1973. return params[0];
  1974. }
  1975. };
  1976. _vue.default.prototype.$setSSP = function (name, value) {
  1977. var index = 0;
  1978. currentId.call(this, function (vueId) {
  1979. var slot = center[vueId];
  1980. var params = slot[name] = slot[name] || [];
  1981. params.push(value);
  1982. index = params.length - 1;
  1983. });
  1984. return index;
  1985. };
  1986. _vue.default.prototype.$initSSP = function () {
  1987. currentId.call(this, function (vueId) {
  1988. center[vueId] = {};
  1989. });
  1990. };
  1991. _vue.default.prototype.$callSSP = function () {
  1992. currentId.call(this, function (vueId) {
  1993. if (parents[vueId]) {
  1994. parents[vueId].$forceUpdate();
  1995. }
  1996. });
  1997. };
  1998. _vue.default.mixin({
  1999. destroyed: function destroyed() {
  2000. var propsData = this.$options.propsData;
  2001. var vueId = propsData && propsData.vueId;
  2002. if (vueId) {
  2003. delete center[vueId];
  2004. delete parents[vueId];
  2005. }
  2006. }
  2007. });
  2008. }
  2009. function parseBaseApp(vm, _ref4) {
  2010. var mocks = _ref4.mocks,
  2011. initRefs = _ref4.initRefs;
  2012. initEventChannel();
  2013. {
  2014. initScopedSlotsParams();
  2015. }
  2016. if (vm.$options.store) {
  2017. _vue.default.prototype.$store = vm.$options.store;
  2018. }
  2019. uniIdMixin(_vue.default);
  2020. _vue.default.prototype.mpHost = "mp-weixin";
  2021. _vue.default.mixin({
  2022. beforeCreate: function beforeCreate() {
  2023. if (!this.$options.mpType) {
  2024. return;
  2025. }
  2026. this.mpType = this.$options.mpType;
  2027. this.$mp = (0, _defineProperty2.default)({
  2028. data: {}
  2029. }, this.mpType, this.$options.mpInstance);
  2030. this.$scope = this.$options.mpInstance;
  2031. delete this.$options.mpType;
  2032. delete this.$options.mpInstance;
  2033. if (this.mpType === 'page' && typeof getApp === 'function') {
  2034. // hack vue-i18n
  2035. var app = getApp();
  2036. if (app.$vm && app.$vm.$i18n) {
  2037. this._i18n = app.$vm.$i18n;
  2038. }
  2039. }
  2040. if (this.mpType !== 'app') {
  2041. initRefs(this);
  2042. initMocks(this, mocks);
  2043. }
  2044. }
  2045. });
  2046. var appOptions = {
  2047. onLaunch: function onLaunch(args) {
  2048. if (this.$vm) {
  2049. // 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  2050. return;
  2051. }
  2052. {
  2053. if (wx.canIUse && !wx.canIUse('nextTick')) {
  2054. // 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  2055. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  2056. }
  2057. }
  2058. this.$vm = vm;
  2059. this.$vm.$mp = {
  2060. app: this
  2061. };
  2062. this.$vm.$scope = this;
  2063. // vm 上也挂载 globalData
  2064. this.$vm.globalData = this.globalData;
  2065. this.$vm._isMounted = true;
  2066. this.$vm.__call_hook('mounted', args);
  2067. this.$vm.__call_hook('onLaunch', args);
  2068. }
  2069. };
  2070. // 兼容旧版本 globalData
  2071. appOptions.globalData = vm.$options.globalData || {};
  2072. // 将 methods 中的方法挂在 getApp() 中
  2073. var methods = vm.$options.methods;
  2074. if (methods) {
  2075. Object.keys(methods).forEach(function (name) {
  2076. appOptions[name] = methods[name];
  2077. });
  2078. }
  2079. initAppLocale(_vue.default, vm, normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN);
  2080. initHooks(appOptions, hooks);
  2081. initUnknownHooks(appOptions, vm.$options);
  2082. return appOptions;
  2083. }
  2084. function parseApp(vm) {
  2085. return parseBaseApp(vm, {
  2086. mocks: mocks,
  2087. initRefs: initRefs
  2088. });
  2089. }
  2090. function createApp(vm) {
  2091. App(parseApp(vm));
  2092. return vm;
  2093. }
  2094. var encodeReserveRE = /[!'()*]/g;
  2095. var encodeReserveReplacer = function encodeReserveReplacer(c) {
  2096. return '%' + c.charCodeAt(0).toString(16);
  2097. };
  2098. var commaRE = /%2C/g;
  2099. // fixed encodeURIComponent which is more conformant to RFC3986:
  2100. // - escapes [!'()*]
  2101. // - preserve commas
  2102. var encode = function encode(str) {
  2103. return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
  2104. };
  2105. function stringifyQuery(obj) {
  2106. var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  2107. var res = obj ? Object.keys(obj).map(function (key) {
  2108. var val = obj[key];
  2109. if (val === undefined) {
  2110. return '';
  2111. }
  2112. if (val === null) {
  2113. return encodeStr(key);
  2114. }
  2115. if (Array.isArray(val)) {
  2116. var result = [];
  2117. val.forEach(function (val2) {
  2118. if (val2 === undefined) {
  2119. return;
  2120. }
  2121. if (val2 === null) {
  2122. result.push(encodeStr(key));
  2123. } else {
  2124. result.push(encodeStr(key) + '=' + encodeStr(val2));
  2125. }
  2126. });
  2127. return result.join('&');
  2128. }
  2129. return encodeStr(key) + '=' + encodeStr(val);
  2130. }).filter(function (x) {
  2131. return x.length > 0;
  2132. }).join('&') : null;
  2133. return res ? "?".concat(res) : '';
  2134. }
  2135. function parseBaseComponent(vueComponentOptions) {
  2136. var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  2137. isPage = _ref5.isPage,
  2138. initRelation = _ref5.initRelation;
  2139. var needVueOptions = arguments.length > 2 ? arguments[2] : undefined;
  2140. var _initVueComponent = initVueComponent(_vue.default, vueComponentOptions),
  2141. _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
  2142. VueComponent = _initVueComponent2[0],
  2143. vueOptions = _initVueComponent2[1];
  2144. var options = _objectSpread({
  2145. multipleSlots: true,
  2146. // styleIsolation: 'apply-shared',
  2147. addGlobalClass: true
  2148. }, vueOptions.options || {});
  2149. {
  2150. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  2151. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  2152. Object.assign(options, vueOptions['mp-weixin'].options);
  2153. }
  2154. }
  2155. var componentOptions = {
  2156. options: options,
  2157. data: initData(vueOptions, _vue.default.prototype),
  2158. behaviors: initBehaviors(vueOptions, initBehavior),
  2159. properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
  2160. lifetimes: {
  2161. attached: function attached() {
  2162. var properties = this.properties;
  2163. var options = {
  2164. mpType: isPage.call(this) ? 'page' : 'component',
  2165. mpInstance: this,
  2166. propsData: properties
  2167. };
  2168. initVueIds(properties.vueId, this);
  2169. // 处理父子关系
  2170. initRelation.call(this, {
  2171. vuePid: this._$vuePid,
  2172. vueOptions: options
  2173. });
  2174. // 初始化 vue 实例
  2175. this.$vm = new VueComponent(options);
  2176. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  2177. initSlots(this.$vm, properties.vueSlots);
  2178. // 触发首次 setData
  2179. this.$vm.$mount();
  2180. },
  2181. ready: function ready() {
  2182. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  2183. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  2184. if (this.$vm) {
  2185. this.$vm._isMounted = true;
  2186. this.$vm.__call_hook('mounted');
  2187. this.$vm.__call_hook('onReady');
  2188. }
  2189. },
  2190. detached: function detached() {
  2191. this.$vm && this.$vm.$destroy();
  2192. }
  2193. },
  2194. pageLifetimes: {
  2195. show: function show(args) {
  2196. this.$vm && this.$vm.__call_hook('onPageShow', args);
  2197. },
  2198. hide: function hide() {
  2199. this.$vm && this.$vm.__call_hook('onPageHide');
  2200. },
  2201. resize: function resize(size) {
  2202. this.$vm && this.$vm.__call_hook('onPageResize', size);
  2203. }
  2204. },
  2205. methods: {
  2206. __l: handleLink,
  2207. __e: handleEvent
  2208. }
  2209. };
  2210. // externalClasses
  2211. if (vueOptions.externalClasses) {
  2212. componentOptions.externalClasses = vueOptions.externalClasses;
  2213. }
  2214. if (Array.isArray(vueOptions.wxsCallMethods)) {
  2215. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  2216. componentOptions.methods[callMethod] = function (args) {
  2217. return this.$vm[callMethod](args);
  2218. };
  2219. });
  2220. }
  2221. if (needVueOptions) {
  2222. return [componentOptions, vueOptions, VueComponent];
  2223. }
  2224. if (isPage) {
  2225. return componentOptions;
  2226. }
  2227. return [componentOptions, VueComponent];
  2228. }
  2229. function parseComponent(vueComponentOptions, needVueOptions) {
  2230. return parseBaseComponent(vueComponentOptions, {
  2231. isPage: isPage,
  2232. initRelation: initRelation
  2233. }, needVueOptions);
  2234. }
  2235. var hooks$1 = ['onShow', 'onHide', 'onUnload'];
  2236. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  2237. function parseBasePage(vuePageOptions) {
  2238. var _parseComponent = parseComponent(vuePageOptions, true),
  2239. _parseComponent2 = (0, _slicedToArray2.default)(_parseComponent, 2),
  2240. pageOptions = _parseComponent2[0],
  2241. vueOptions = _parseComponent2[1];
  2242. initHooks(pageOptions.methods, hooks$1, vueOptions);
  2243. pageOptions.methods.onLoad = function (query) {
  2244. this.options = query;
  2245. var copyQuery = Object.assign({}, query);
  2246. delete copyQuery.__id__;
  2247. this.$page = {
  2248. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery)
  2249. };
  2250. this.$vm.$mp.query = query; // 兼容 mpvue
  2251. this.$vm.__call_hook('onLoad', query);
  2252. };
  2253. {
  2254. initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  2255. }
  2256. {
  2257. initWorkletMethods(pageOptions.methods, vueOptions.methods);
  2258. }
  2259. return pageOptions;
  2260. }
  2261. function parsePage(vuePageOptions) {
  2262. return parseBasePage(vuePageOptions);
  2263. }
  2264. function createPage(vuePageOptions) {
  2265. {
  2266. return Component(parsePage(vuePageOptions));
  2267. }
  2268. }
  2269. function createComponent(vueOptions) {
  2270. {
  2271. return Component(parseComponent(vueOptions));
  2272. }
  2273. }
  2274. function createSubpackageApp(vm) {
  2275. var appOptions = parseApp(vm);
  2276. var app = getApp({
  2277. allowDefault: true
  2278. });
  2279. vm.$scope = app;
  2280. var globalData = app.globalData;
  2281. if (globalData) {
  2282. Object.keys(appOptions.globalData).forEach(function (name) {
  2283. if (!hasOwn(globalData, name)) {
  2284. globalData[name] = appOptions.globalData[name];
  2285. }
  2286. });
  2287. }
  2288. Object.keys(appOptions).forEach(function (name) {
  2289. if (!hasOwn(app, name)) {
  2290. app[name] = appOptions[name];
  2291. }
  2292. });
  2293. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2294. wx.onAppShow(function () {
  2295. for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
  2296. args[_key5] = arguments[_key5];
  2297. }
  2298. vm.__call_hook('onShow', args);
  2299. });
  2300. }
  2301. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2302. wx.onAppHide(function () {
  2303. for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
  2304. args[_key6] = arguments[_key6];
  2305. }
  2306. vm.__call_hook('onHide', args);
  2307. });
  2308. }
  2309. if (isFn(appOptions.onLaunch)) {
  2310. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2311. vm.__call_hook('onLaunch', args);
  2312. }
  2313. return vm;
  2314. }
  2315. function createPlugin(vm) {
  2316. var appOptions = parseApp(vm);
  2317. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2318. wx.onAppShow(function () {
  2319. for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
  2320. args[_key7] = arguments[_key7];
  2321. }
  2322. vm.__call_hook('onShow', args);
  2323. });
  2324. }
  2325. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2326. wx.onAppHide(function () {
  2327. for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
  2328. args[_key8] = arguments[_key8];
  2329. }
  2330. vm.__call_hook('onHide', args);
  2331. });
  2332. }
  2333. if (isFn(appOptions.onLaunch)) {
  2334. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2335. vm.__call_hook('onLaunch', args);
  2336. }
  2337. return vm;
  2338. }
  2339. todos.forEach(function (todoApi) {
  2340. protocols[todoApi] = false;
  2341. });
  2342. canIUses.forEach(function (canIUseApi) {
  2343. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
  2344. if (!wx.canIUse(apiName)) {
  2345. protocols[canIUseApi] = false;
  2346. }
  2347. });
  2348. var uni = {};
  2349. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  2350. uni = new Proxy({}, {
  2351. get: function get(target, name) {
  2352. if (hasOwn(target, name)) {
  2353. return target[name];
  2354. }
  2355. if (baseApi[name]) {
  2356. return baseApi[name];
  2357. }
  2358. if (api[name]) {
  2359. return promisify(name, api[name]);
  2360. }
  2361. {
  2362. if (extraApi[name]) {
  2363. return promisify(name, extraApi[name]);
  2364. }
  2365. if (todoApis[name]) {
  2366. return promisify(name, todoApis[name]);
  2367. }
  2368. }
  2369. if (eventApi[name]) {
  2370. return eventApi[name];
  2371. }
  2372. return promisify(name, wrapper(name, wx[name]));
  2373. },
  2374. set: function set(target, name, value) {
  2375. target[name] = value;
  2376. return true;
  2377. }
  2378. });
  2379. } else {
  2380. Object.keys(baseApi).forEach(function (name) {
  2381. uni[name] = baseApi[name];
  2382. });
  2383. {
  2384. Object.keys(todoApis).forEach(function (name) {
  2385. uni[name] = promisify(name, todoApis[name]);
  2386. });
  2387. Object.keys(extraApi).forEach(function (name) {
  2388. uni[name] = promisify(name, extraApi[name]);
  2389. });
  2390. }
  2391. Object.keys(eventApi).forEach(function (name) {
  2392. uni[name] = eventApi[name];
  2393. });
  2394. Object.keys(api).forEach(function (name) {
  2395. uni[name] = promisify(name, api[name]);
  2396. });
  2397. Object.keys(wx).forEach(function (name) {
  2398. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  2399. uni[name] = promisify(name, wrapper(name, wx[name]));
  2400. }
  2401. });
  2402. }
  2403. wx.createApp = createApp;
  2404. wx.createPage = createPage;
  2405. wx.createComponent = createComponent;
  2406. wx.createSubpackageApp = createSubpackageApp;
  2407. wx.createPlugin = createPlugin;
  2408. var uni$1 = uni;
  2409. var _default = uni$1;
  2410. exports.default = _default;
  2411. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 3)))
  2412. /***/ }),
  2413. /* 3 */
  2414. /*!***********************************!*\
  2415. !*** (webpack)/buildin/global.js ***!
  2416. \***********************************/
  2417. /*! no static exports found */
  2418. /***/ (function(module, exports) {
  2419. var g;
  2420. // This works in non-strict mode
  2421. g = (function() {
  2422. return this;
  2423. })();
  2424. try {
  2425. // This works if eval is allowed (see CSP)
  2426. g = g || new Function("return this")();
  2427. } catch (e) {
  2428. // This works if the window reference is available
  2429. if (typeof window === "object") g = window;
  2430. }
  2431. // g can still be undefined, but nothing to do about it...
  2432. // We return undefined, instead of nothing here, so it's
  2433. // easier to handle this case. if(!global) { ...}
  2434. module.exports = g;
  2435. /***/ }),
  2436. /* 4 */
  2437. /*!**********************************************************************!*\
  2438. !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  2439. \**********************************************************************/
  2440. /*! no static exports found */
  2441. /***/ (function(module, exports) {
  2442. function _interopRequireDefault(obj) {
  2443. return obj && obj.__esModule ? obj : {
  2444. "default": obj
  2445. };
  2446. }
  2447. module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2448. /***/ }),
  2449. /* 5 */
  2450. /*!**************************************************************!*\
  2451. !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  2452. \**************************************************************/
  2453. /*! no static exports found */
  2454. /***/ (function(module, exports, __webpack_require__) {
  2455. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  2456. var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 7);
  2457. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2458. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  2459. function _slicedToArray(arr, i) {
  2460. return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
  2461. }
  2462. module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2463. /***/ }),
  2464. /* 6 */
  2465. /*!***************************************************************!*\
  2466. !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  2467. \***************************************************************/
  2468. /*! no static exports found */
  2469. /***/ (function(module, exports) {
  2470. function _arrayWithHoles(arr) {
  2471. if (Array.isArray(arr)) return arr;
  2472. }
  2473. module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2474. /***/ }),
  2475. /* 7 */
  2476. /*!*********************************************************************!*\
  2477. !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  2478. \*********************************************************************/
  2479. /*! no static exports found */
  2480. /***/ (function(module, exports) {
  2481. function _iterableToArrayLimit(arr, i) {
  2482. var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
  2483. if (null != _i) {
  2484. var _s,
  2485. _e,
  2486. _x,
  2487. _r,
  2488. _arr = [],
  2489. _n = !0,
  2490. _d = !1;
  2491. try {
  2492. if (_x = (_i = _i.call(arr)).next, 0 === i) {
  2493. if (Object(_i) !== _i) return;
  2494. _n = !1;
  2495. } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
  2496. ;
  2497. }
  2498. } catch (err) {
  2499. _d = !0, _e = err;
  2500. } finally {
  2501. try {
  2502. if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
  2503. } finally {
  2504. if (_d) throw _e;
  2505. }
  2506. }
  2507. return _arr;
  2508. }
  2509. }
  2510. module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2511. /***/ }),
  2512. /* 8 */
  2513. /*!***************************************************************************!*\
  2514. !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  2515. \***************************************************************************/
  2516. /*! no static exports found */
  2517. /***/ (function(module, exports, __webpack_require__) {
  2518. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2519. function _unsupportedIterableToArray(o, minLen) {
  2520. if (!o) return;
  2521. if (typeof o === "string") return arrayLikeToArray(o, minLen);
  2522. var n = Object.prototype.toString.call(o).slice(8, -1);
  2523. if (n === "Object" && o.constructor) n = o.constructor.name;
  2524. if (n === "Map" || n === "Set") return Array.from(o);
  2525. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
  2526. }
  2527. module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2528. /***/ }),
  2529. /* 9 */
  2530. /*!*****************************************************************!*\
  2531. !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  2532. \*****************************************************************/
  2533. /*! no static exports found */
  2534. /***/ (function(module, exports) {
  2535. function _arrayLikeToArray(arr, len) {
  2536. if (len == null || len > arr.length) len = arr.length;
  2537. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  2538. arr2[i] = arr[i];
  2539. }
  2540. return arr2;
  2541. }
  2542. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2543. /***/ }),
  2544. /* 10 */
  2545. /*!****************************************************************!*\
  2546. !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
  2547. \****************************************************************/
  2548. /*! no static exports found */
  2549. /***/ (function(module, exports) {
  2550. function _nonIterableRest() {
  2551. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2552. }
  2553. module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2554. /***/ }),
  2555. /* 11 */
  2556. /*!***************************************************************!*\
  2557. !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  2558. \***************************************************************/
  2559. /*! no static exports found */
  2560. /***/ (function(module, exports, __webpack_require__) {
  2561. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  2562. function _defineProperty(obj, key, value) {
  2563. key = toPropertyKey(key);
  2564. if (key in obj) {
  2565. Object.defineProperty(obj, key, {
  2566. value: value,
  2567. enumerable: true,
  2568. configurable: true,
  2569. writable: true
  2570. });
  2571. } else {
  2572. obj[key] = value;
  2573. }
  2574. return obj;
  2575. }
  2576. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2577. /***/ }),
  2578. /* 12 */
  2579. /*!**************************************************************!*\
  2580. !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  2581. \**************************************************************/
  2582. /*! no static exports found */
  2583. /***/ (function(module, exports, __webpack_require__) {
  2584. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2585. var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
  2586. function _toPropertyKey(arg) {
  2587. var key = toPrimitive(arg, "string");
  2588. return _typeof(key) === "symbol" ? key : String(key);
  2589. }
  2590. module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2591. /***/ }),
  2592. /* 13 */
  2593. /*!*******************************************************!*\
  2594. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  2595. \*******************************************************/
  2596. /*! no static exports found */
  2597. /***/ (function(module, exports) {
  2598. function _typeof(obj) {
  2599. "@babel/helpers - typeof";
  2600. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
  2601. return typeof obj;
  2602. } : function (obj) {
  2603. return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  2604. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
  2605. }
  2606. module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2607. /***/ }),
  2608. /* 14 */
  2609. /*!************************************************************!*\
  2610. !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  2611. \************************************************************/
  2612. /*! no static exports found */
  2613. /***/ (function(module, exports, __webpack_require__) {
  2614. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2615. function _toPrimitive(input, hint) {
  2616. if (_typeof(input) !== "object" || input === null) return input;
  2617. var prim = input[Symbol.toPrimitive];
  2618. if (prim !== undefined) {
  2619. var res = prim.call(input, hint || "default");
  2620. if (_typeof(res) !== "object") return res;
  2621. throw new TypeError("@@toPrimitive must return a primitive value.");
  2622. }
  2623. return (hint === "string" ? String : Number)(input);
  2624. }
  2625. module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2626. /***/ }),
  2627. /* 15 */
  2628. /*!**********************************************************!*\
  2629. !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
  2630. \**********************************************************/
  2631. /*! no static exports found */
  2632. /***/ (function(module, exports, __webpack_require__) {
  2633. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  2634. var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 17);
  2635. function _construct(Parent, args, Class) {
  2636. if (isNativeReflectConstruct()) {
  2637. module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports;
  2638. } else {
  2639. module.exports = _construct = function _construct(Parent, args, Class) {
  2640. var a = [null];
  2641. a.push.apply(a, args);
  2642. var Constructor = Function.bind.apply(Parent, a);
  2643. var instance = new Constructor();
  2644. if (Class) setPrototypeOf(instance, Class.prototype);
  2645. return instance;
  2646. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2647. }
  2648. return _construct.apply(null, arguments);
  2649. }
  2650. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2651. /***/ }),
  2652. /* 16 */
  2653. /*!***************************************************************!*\
  2654. !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  2655. \***************************************************************/
  2656. /*! no static exports found */
  2657. /***/ (function(module, exports) {
  2658. function _setPrototypeOf(o, p) {
  2659. module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  2660. o.__proto__ = p;
  2661. return o;
  2662. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2663. return _setPrototypeOf(o, p);
  2664. }
  2665. module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2666. /***/ }),
  2667. /* 17 */
  2668. /*!*************************************************************************!*\
  2669. !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  2670. \*************************************************************************/
  2671. /*! no static exports found */
  2672. /***/ (function(module, exports) {
  2673. function _isNativeReflectConstruct() {
  2674. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  2675. if (Reflect.construct.sham) return false;
  2676. if (typeof Proxy === "function") return true;
  2677. try {
  2678. Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  2679. return true;
  2680. } catch (e) {
  2681. return false;
  2682. }
  2683. }
  2684. module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2685. /***/ }),
  2686. /* 18 */
  2687. /*!******************************************************************!*\
  2688. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  2689. \******************************************************************/
  2690. /*! no static exports found */
  2691. /***/ (function(module, exports, __webpack_require__) {
  2692. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 19);
  2693. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  2694. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2695. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 21);
  2696. function _toConsumableArray(arr) {
  2697. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  2698. }
  2699. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2700. /***/ }),
  2701. /* 19 */
  2702. /*!******************************************************************!*\
  2703. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  2704. \******************************************************************/
  2705. /*! no static exports found */
  2706. /***/ (function(module, exports, __webpack_require__) {
  2707. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2708. function _arrayWithoutHoles(arr) {
  2709. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  2710. }
  2711. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2712. /***/ }),
  2713. /* 20 */
  2714. /*!****************************************************************!*\
  2715. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  2716. \****************************************************************/
  2717. /*! no static exports found */
  2718. /***/ (function(module, exports) {
  2719. function _iterableToArray(iter) {
  2720. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  2721. }
  2722. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2723. /***/ }),
  2724. /* 21 */
  2725. /*!******************************************************************!*\
  2726. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  2727. \******************************************************************/
  2728. /*! no static exports found */
  2729. /***/ (function(module, exports) {
  2730. function _nonIterableSpread() {
  2731. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2732. }
  2733. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2734. /***/ }),
  2735. /* 22 */
  2736. /*!*************************************************************!*\
  2737. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  2738. \*************************************************************/
  2739. /*! no static exports found */
  2740. /***/ (function(module, exports, __webpack_require__) {
  2741. "use strict";
  2742. /* WEBPACK VAR INJECTION */(function(uni, global) {
  2743. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  2744. Object.defineProperty(exports, "__esModule", {
  2745. value: true
  2746. });
  2747. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  2748. exports.compileI18nJsonStr = compileI18nJsonStr;
  2749. exports.hasI18nJson = hasI18nJson;
  2750. exports.initVueI18n = initVueI18n;
  2751. exports.isI18nStr = isI18nStr;
  2752. exports.isString = void 0;
  2753. exports.normalizeLocale = normalizeLocale;
  2754. exports.parseI18nJson = parseI18nJson;
  2755. exports.resolveLocale = resolveLocale;
  2756. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  2757. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  2758. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  2759. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  2760. var isObject = function isObject(val) {
  2761. return val !== null && (0, _typeof2.default)(val) === 'object';
  2762. };
  2763. var defaultDelimiters = ['{', '}'];
  2764. var BaseFormatter = /*#__PURE__*/function () {
  2765. function BaseFormatter() {
  2766. (0, _classCallCheck2.default)(this, BaseFormatter);
  2767. this._caches = Object.create(null);
  2768. }
  2769. (0, _createClass2.default)(BaseFormatter, [{
  2770. key: "interpolate",
  2771. value: function interpolate(message, values) {
  2772. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  2773. if (!values) {
  2774. return [message];
  2775. }
  2776. var tokens = this._caches[message];
  2777. if (!tokens) {
  2778. tokens = parse(message, delimiters);
  2779. this._caches[message] = tokens;
  2780. }
  2781. return compile(tokens, values);
  2782. }
  2783. }]);
  2784. return BaseFormatter;
  2785. }();
  2786. exports.Formatter = BaseFormatter;
  2787. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  2788. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  2789. function parse(format, _ref) {
  2790. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  2791. startDelimiter = _ref2[0],
  2792. endDelimiter = _ref2[1];
  2793. var tokens = [];
  2794. var position = 0;
  2795. var text = '';
  2796. while (position < format.length) {
  2797. var char = format[position++];
  2798. if (char === startDelimiter) {
  2799. if (text) {
  2800. tokens.push({
  2801. type: 'text',
  2802. value: text
  2803. });
  2804. }
  2805. text = '';
  2806. var sub = '';
  2807. char = format[position++];
  2808. while (char !== undefined && char !== endDelimiter) {
  2809. sub += char;
  2810. char = format[position++];
  2811. }
  2812. var isClosed = char === endDelimiter;
  2813. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  2814. tokens.push({
  2815. value: sub,
  2816. type: type
  2817. });
  2818. }
  2819. // else if (char === '%') {
  2820. // // when found rails i18n syntax, skip text capture
  2821. // if (format[position] !== '{') {
  2822. // text += char
  2823. // }
  2824. // }
  2825. else {
  2826. text += char;
  2827. }
  2828. }
  2829. text && tokens.push({
  2830. type: 'text',
  2831. value: text
  2832. });
  2833. return tokens;
  2834. }
  2835. function compile(tokens, values) {
  2836. var compiled = [];
  2837. var index = 0;
  2838. var mode = Array.isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  2839. if (mode === 'unknown') {
  2840. return compiled;
  2841. }
  2842. while (index < tokens.length) {
  2843. var token = tokens[index];
  2844. switch (token.type) {
  2845. case 'text':
  2846. compiled.push(token.value);
  2847. break;
  2848. case 'list':
  2849. compiled.push(values[parseInt(token.value, 10)]);
  2850. break;
  2851. case 'named':
  2852. if (mode === 'named') {
  2853. compiled.push(values[token.value]);
  2854. } else {
  2855. if (true) {
  2856. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  2857. }
  2858. }
  2859. break;
  2860. case 'unknown':
  2861. if (true) {
  2862. console.warn("Detect 'unknown' type of token!");
  2863. }
  2864. break;
  2865. }
  2866. index++;
  2867. }
  2868. return compiled;
  2869. }
  2870. var LOCALE_ZH_HANS = 'zh-Hans';
  2871. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  2872. var LOCALE_ZH_HANT = 'zh-Hant';
  2873. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  2874. var LOCALE_EN = 'en';
  2875. exports.LOCALE_EN = LOCALE_EN;
  2876. var LOCALE_FR = 'fr';
  2877. exports.LOCALE_FR = LOCALE_FR;
  2878. var LOCALE_ES = 'es';
  2879. exports.LOCALE_ES = LOCALE_ES;
  2880. var hasOwnProperty = Object.prototype.hasOwnProperty;
  2881. var hasOwn = function hasOwn(val, key) {
  2882. return hasOwnProperty.call(val, key);
  2883. };
  2884. var defaultFormatter = new BaseFormatter();
  2885. function include(str, parts) {
  2886. return !!parts.find(function (part) {
  2887. return str.indexOf(part) !== -1;
  2888. });
  2889. }
  2890. function startsWith(str, parts) {
  2891. return parts.find(function (part) {
  2892. return str.indexOf(part) === 0;
  2893. });
  2894. }
  2895. function normalizeLocale(locale, messages) {
  2896. if (!locale) {
  2897. return;
  2898. }
  2899. locale = locale.trim().replace(/_/g, '-');
  2900. if (messages && messages[locale]) {
  2901. return locale;
  2902. }
  2903. locale = locale.toLowerCase();
  2904. if (locale === 'chinese') {
  2905. // 支付宝
  2906. return LOCALE_ZH_HANS;
  2907. }
  2908. if (locale.indexOf('zh') === 0) {
  2909. if (locale.indexOf('-hans') > -1) {
  2910. return LOCALE_ZH_HANS;
  2911. }
  2912. if (locale.indexOf('-hant') > -1) {
  2913. return LOCALE_ZH_HANT;
  2914. }
  2915. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  2916. return LOCALE_ZH_HANT;
  2917. }
  2918. return LOCALE_ZH_HANS;
  2919. }
  2920. var locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES];
  2921. if (messages && Object.keys(messages).length > 0) {
  2922. locales = Object.keys(messages);
  2923. }
  2924. var lang = startsWith(locale, locales);
  2925. if (lang) {
  2926. return lang;
  2927. }
  2928. }
  2929. var I18n = /*#__PURE__*/function () {
  2930. function I18n(_ref3) {
  2931. var locale = _ref3.locale,
  2932. fallbackLocale = _ref3.fallbackLocale,
  2933. messages = _ref3.messages,
  2934. watcher = _ref3.watcher,
  2935. formater = _ref3.formater;
  2936. (0, _classCallCheck2.default)(this, I18n);
  2937. this.locale = LOCALE_EN;
  2938. this.fallbackLocale = LOCALE_EN;
  2939. this.message = {};
  2940. this.messages = {};
  2941. this.watchers = [];
  2942. if (fallbackLocale) {
  2943. this.fallbackLocale = fallbackLocale;
  2944. }
  2945. this.formater = formater || defaultFormatter;
  2946. this.messages = messages || {};
  2947. this.setLocale(locale || LOCALE_EN);
  2948. if (watcher) {
  2949. this.watchLocale(watcher);
  2950. }
  2951. }
  2952. (0, _createClass2.default)(I18n, [{
  2953. key: "setLocale",
  2954. value: function setLocale(locale) {
  2955. var _this = this;
  2956. var oldLocale = this.locale;
  2957. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  2958. if (!this.messages[this.locale]) {
  2959. // 可能初始化时不存在
  2960. this.messages[this.locale] = {};
  2961. }
  2962. this.message = this.messages[this.locale];
  2963. // 仅发生变化时,通知
  2964. if (oldLocale !== this.locale) {
  2965. this.watchers.forEach(function (watcher) {
  2966. watcher(_this.locale, oldLocale);
  2967. });
  2968. }
  2969. }
  2970. }, {
  2971. key: "getLocale",
  2972. value: function getLocale() {
  2973. return this.locale;
  2974. }
  2975. }, {
  2976. key: "watchLocale",
  2977. value: function watchLocale(fn) {
  2978. var _this2 = this;
  2979. var index = this.watchers.push(fn) - 1;
  2980. return function () {
  2981. _this2.watchers.splice(index, 1);
  2982. };
  2983. }
  2984. }, {
  2985. key: "add",
  2986. value: function add(locale, message) {
  2987. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  2988. var curMessages = this.messages[locale];
  2989. if (curMessages) {
  2990. if (override) {
  2991. Object.assign(curMessages, message);
  2992. } else {
  2993. Object.keys(message).forEach(function (key) {
  2994. if (!hasOwn(curMessages, key)) {
  2995. curMessages[key] = message[key];
  2996. }
  2997. });
  2998. }
  2999. } else {
  3000. this.messages[locale] = message;
  3001. }
  3002. }
  3003. }, {
  3004. key: "f",
  3005. value: function f(message, values, delimiters) {
  3006. return this.formater.interpolate(message, values, delimiters).join('');
  3007. }
  3008. }, {
  3009. key: "t",
  3010. value: function t(key, locale, values) {
  3011. var message = this.message;
  3012. if (typeof locale === 'string') {
  3013. locale = normalizeLocale(locale, this.messages);
  3014. locale && (message = this.messages[locale]);
  3015. } else {
  3016. values = locale;
  3017. }
  3018. if (!hasOwn(message, key)) {
  3019. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  3020. return key;
  3021. }
  3022. return this.formater.interpolate(message[key], values).join('');
  3023. }
  3024. }]);
  3025. return I18n;
  3026. }();
  3027. exports.I18n = I18n;
  3028. function watchAppLocale(appVm, i18n) {
  3029. // 需要保证 watch 的触发在组件渲染之前
  3030. if (appVm.$watchLocale) {
  3031. // vue2
  3032. appVm.$watchLocale(function (newLocale) {
  3033. i18n.setLocale(newLocale);
  3034. });
  3035. } else {
  3036. appVm.$watch(function () {
  3037. return appVm.$locale;
  3038. }, function (newLocale) {
  3039. i18n.setLocale(newLocale);
  3040. });
  3041. }
  3042. }
  3043. function getDefaultLocale() {
  3044. if (typeof uni !== 'undefined' && uni.getLocale) {
  3045. return uni.getLocale();
  3046. }
  3047. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  3048. if (typeof global !== 'undefined' && global.getLocale) {
  3049. return global.getLocale();
  3050. }
  3051. return LOCALE_EN;
  3052. }
  3053. function initVueI18n(locale) {
  3054. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3055. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  3056. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  3057. // 兼容旧版本入参
  3058. if (typeof locale !== 'string') {
  3059. var _ref4 = [messages, locale];
  3060. locale = _ref4[0];
  3061. messages = _ref4[1];
  3062. }
  3063. if (typeof locale !== 'string') {
  3064. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  3065. locale = getDefaultLocale();
  3066. }
  3067. if (typeof fallbackLocale !== 'string') {
  3068. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  3069. }
  3070. var i18n = new I18n({
  3071. locale: locale,
  3072. fallbackLocale: fallbackLocale,
  3073. messages: messages,
  3074. watcher: watcher
  3075. });
  3076. var _t = function t(key, values) {
  3077. if (typeof getApp !== 'function') {
  3078. // app view
  3079. /* eslint-disable no-func-assign */
  3080. _t = function t(key, values) {
  3081. return i18n.t(key, values);
  3082. };
  3083. } else {
  3084. var isWatchedAppLocale = false;
  3085. _t = function t(key, values) {
  3086. var appVm = getApp().$vm;
  3087. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  3088. // options: {
  3089. // type: Array,
  3090. // default () {
  3091. // return [{
  3092. // icon: 'shop',
  3093. // text: t("uni-goods-nav.options.shop"),
  3094. // }, {
  3095. // icon: 'cart',
  3096. // text: t("uni-goods-nav.options.cart")
  3097. // }]
  3098. // }
  3099. // },
  3100. if (appVm) {
  3101. // 触发响应式
  3102. appVm.$locale;
  3103. if (!isWatchedAppLocale) {
  3104. isWatchedAppLocale = true;
  3105. watchAppLocale(appVm, i18n);
  3106. }
  3107. }
  3108. return i18n.t(key, values);
  3109. };
  3110. }
  3111. return _t(key, values);
  3112. };
  3113. return {
  3114. i18n: i18n,
  3115. f: function f(message, values, delimiters) {
  3116. return i18n.f(message, values, delimiters);
  3117. },
  3118. t: function t(key, values) {
  3119. return _t(key, values);
  3120. },
  3121. add: function add(locale, message) {
  3122. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3123. return i18n.add(locale, message, override);
  3124. },
  3125. watch: function watch(fn) {
  3126. return i18n.watchLocale(fn);
  3127. },
  3128. getLocale: function getLocale() {
  3129. return i18n.getLocale();
  3130. },
  3131. setLocale: function setLocale(newLocale) {
  3132. return i18n.setLocale(newLocale);
  3133. }
  3134. };
  3135. }
  3136. var isString = function isString(val) {
  3137. return typeof val === 'string';
  3138. };
  3139. exports.isString = isString;
  3140. var formater;
  3141. function hasI18nJson(jsonObj, delimiters) {
  3142. if (!formater) {
  3143. formater = new BaseFormatter();
  3144. }
  3145. return walkJsonObj(jsonObj, function (jsonObj, key) {
  3146. var value = jsonObj[key];
  3147. if (isString(value)) {
  3148. if (isI18nStr(value, delimiters)) {
  3149. return true;
  3150. }
  3151. } else {
  3152. return hasI18nJson(value, delimiters);
  3153. }
  3154. });
  3155. }
  3156. function parseI18nJson(jsonObj, values, delimiters) {
  3157. if (!formater) {
  3158. formater = new BaseFormatter();
  3159. }
  3160. walkJsonObj(jsonObj, function (jsonObj, key) {
  3161. var value = jsonObj[key];
  3162. if (isString(value)) {
  3163. if (isI18nStr(value, delimiters)) {
  3164. jsonObj[key] = compileStr(value, values, delimiters);
  3165. }
  3166. } else {
  3167. parseI18nJson(value, values, delimiters);
  3168. }
  3169. });
  3170. return jsonObj;
  3171. }
  3172. function compileI18nJsonStr(jsonStr, _ref5) {
  3173. var locale = _ref5.locale,
  3174. locales = _ref5.locales,
  3175. delimiters = _ref5.delimiters;
  3176. if (!isI18nStr(jsonStr, delimiters)) {
  3177. return jsonStr;
  3178. }
  3179. if (!formater) {
  3180. formater = new BaseFormatter();
  3181. }
  3182. var localeValues = [];
  3183. Object.keys(locales).forEach(function (name) {
  3184. if (name !== locale) {
  3185. localeValues.push({
  3186. locale: name,
  3187. values: locales[name]
  3188. });
  3189. }
  3190. });
  3191. localeValues.unshift({
  3192. locale: locale,
  3193. values: locales[locale]
  3194. });
  3195. try {
  3196. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  3197. } catch (e) {}
  3198. return jsonStr;
  3199. }
  3200. function isI18nStr(value, delimiters) {
  3201. return value.indexOf(delimiters[0]) > -1;
  3202. }
  3203. function compileStr(value, values, delimiters) {
  3204. return formater.interpolate(value, values, delimiters).join('');
  3205. }
  3206. function compileValue(jsonObj, key, localeValues, delimiters) {
  3207. var value = jsonObj[key];
  3208. if (isString(value)) {
  3209. // 存在国际化
  3210. if (isI18nStr(value, delimiters)) {
  3211. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  3212. if (localeValues.length > 1) {
  3213. // 格式化国际化语言
  3214. var valueLocales = jsonObj[key + 'Locales'] = {};
  3215. localeValues.forEach(function (localValue) {
  3216. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  3217. });
  3218. }
  3219. }
  3220. } else {
  3221. compileJsonObj(value, localeValues, delimiters);
  3222. }
  3223. }
  3224. function compileJsonObj(jsonObj, localeValues, delimiters) {
  3225. walkJsonObj(jsonObj, function (jsonObj, key) {
  3226. compileValue(jsonObj, key, localeValues, delimiters);
  3227. });
  3228. return jsonObj;
  3229. }
  3230. function walkJsonObj(jsonObj, walk) {
  3231. if (Array.isArray(jsonObj)) {
  3232. for (var i = 0; i < jsonObj.length; i++) {
  3233. if (walk(jsonObj, i)) {
  3234. return true;
  3235. }
  3236. }
  3237. } else if (isObject(jsonObj)) {
  3238. for (var key in jsonObj) {
  3239. if (walk(jsonObj, key)) {
  3240. return true;
  3241. }
  3242. }
  3243. }
  3244. return false;
  3245. }
  3246. function resolveLocale(locales) {
  3247. return function (locale) {
  3248. if (!locale) {
  3249. return locale;
  3250. }
  3251. locale = normalizeLocale(locale) || locale;
  3252. return resolveLocaleChain(locale).find(function (locale) {
  3253. return locales.indexOf(locale) > -1;
  3254. });
  3255. };
  3256. }
  3257. function resolveLocaleChain(locale) {
  3258. var chain = [];
  3259. var tokens = locale.split('-');
  3260. while (tokens.length) {
  3261. chain.push(tokens.join('-'));
  3262. tokens.pop();
  3263. }
  3264. return chain;
  3265. }
  3266. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 3)))
  3267. /***/ }),
  3268. /* 23 */
  3269. /*!***************************************************************!*\
  3270. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  3271. \***************************************************************/
  3272. /*! no static exports found */
  3273. /***/ (function(module, exports) {
  3274. function _classCallCheck(instance, Constructor) {
  3275. if (!(instance instanceof Constructor)) {
  3276. throw new TypeError("Cannot call a class as a function");
  3277. }
  3278. }
  3279. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3280. /***/ }),
  3281. /* 24 */
  3282. /*!************************************************************!*\
  3283. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  3284. \************************************************************/
  3285. /*! no static exports found */
  3286. /***/ (function(module, exports, __webpack_require__) {
  3287. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  3288. function _defineProperties(target, props) {
  3289. for (var i = 0; i < props.length; i++) {
  3290. var descriptor = props[i];
  3291. descriptor.enumerable = descriptor.enumerable || false;
  3292. descriptor.configurable = true;
  3293. if ("value" in descriptor) descriptor.writable = true;
  3294. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  3295. }
  3296. }
  3297. function _createClass(Constructor, protoProps, staticProps) {
  3298. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  3299. if (staticProps) _defineProperties(Constructor, staticProps);
  3300. Object.defineProperty(Constructor, "prototype", {
  3301. writable: false
  3302. });
  3303. return Constructor;
  3304. }
  3305. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3306. /***/ }),
  3307. /* 25 */
  3308. /*!******************************************************************************************!*\
  3309. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  3310. \******************************************************************************************/
  3311. /*! exports provided: default */
  3312. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3313. "use strict";
  3314. __webpack_require__.r(__webpack_exports__);
  3315. /* WEBPACK VAR INJECTION */(function(global) {/*!
  3316. * Vue.js v2.6.11
  3317. * (c) 2014-2023 Evan You
  3318. * Released under the MIT License.
  3319. */
  3320. /* */
  3321. var emptyObject = Object.freeze({});
  3322. // These helpers produce better VM code in JS engines due to their
  3323. // explicitness and function inlining.
  3324. function isUndef (v) {
  3325. return v === undefined || v === null
  3326. }
  3327. function isDef (v) {
  3328. return v !== undefined && v !== null
  3329. }
  3330. function isTrue (v) {
  3331. return v === true
  3332. }
  3333. function isFalse (v) {
  3334. return v === false
  3335. }
  3336. /**
  3337. * Check if value is primitive.
  3338. */
  3339. function isPrimitive (value) {
  3340. return (
  3341. typeof value === 'string' ||
  3342. typeof value === 'number' ||
  3343. // $flow-disable-line
  3344. typeof value === 'symbol' ||
  3345. typeof value === 'boolean'
  3346. )
  3347. }
  3348. /**
  3349. * Quick object check - this is primarily used to tell
  3350. * Objects from primitive values when we know the value
  3351. * is a JSON-compliant type.
  3352. */
  3353. function isObject (obj) {
  3354. return obj !== null && typeof obj === 'object'
  3355. }
  3356. /**
  3357. * Get the raw type string of a value, e.g., [object Object].
  3358. */
  3359. var _toString = Object.prototype.toString;
  3360. function toRawType (value) {
  3361. return _toString.call(value).slice(8, -1)
  3362. }
  3363. /**
  3364. * Strict object type check. Only returns true
  3365. * for plain JavaScript objects.
  3366. */
  3367. function isPlainObject (obj) {
  3368. return _toString.call(obj) === '[object Object]'
  3369. }
  3370. function isRegExp (v) {
  3371. return _toString.call(v) === '[object RegExp]'
  3372. }
  3373. /**
  3374. * Check if val is a valid array index.
  3375. */
  3376. function isValidArrayIndex (val) {
  3377. var n = parseFloat(String(val));
  3378. return n >= 0 && Math.floor(n) === n && isFinite(val)
  3379. }
  3380. function isPromise (val) {
  3381. return (
  3382. isDef(val) &&
  3383. typeof val.then === 'function' &&
  3384. typeof val.catch === 'function'
  3385. )
  3386. }
  3387. /**
  3388. * Convert a value to a string that is actually rendered.
  3389. */
  3390. function toString (val) {
  3391. return val == null
  3392. ? ''
  3393. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  3394. ? JSON.stringify(val, null, 2)
  3395. : String(val)
  3396. }
  3397. /**
  3398. * Convert an input value to a number for persistence.
  3399. * If the conversion fails, return original string.
  3400. */
  3401. function toNumber (val) {
  3402. var n = parseFloat(val);
  3403. return isNaN(n) ? val : n
  3404. }
  3405. /**
  3406. * Make a map and return a function for checking if a key
  3407. * is in that map.
  3408. */
  3409. function makeMap (
  3410. str,
  3411. expectsLowerCase
  3412. ) {
  3413. var map = Object.create(null);
  3414. var list = str.split(',');
  3415. for (var i = 0; i < list.length; i++) {
  3416. map[list[i]] = true;
  3417. }
  3418. return expectsLowerCase
  3419. ? function (val) { return map[val.toLowerCase()]; }
  3420. : function (val) { return map[val]; }
  3421. }
  3422. /**
  3423. * Check if a tag is a built-in tag.
  3424. */
  3425. var isBuiltInTag = makeMap('slot,component', true);
  3426. /**
  3427. * Check if an attribute is a reserved attribute.
  3428. */
  3429. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  3430. /**
  3431. * Remove an item from an array.
  3432. */
  3433. function remove (arr, item) {
  3434. if (arr.length) {
  3435. var index = arr.indexOf(item);
  3436. if (index > -1) {
  3437. return arr.splice(index, 1)
  3438. }
  3439. }
  3440. }
  3441. /**
  3442. * Check whether an object has the property.
  3443. */
  3444. var hasOwnProperty = Object.prototype.hasOwnProperty;
  3445. function hasOwn (obj, key) {
  3446. return hasOwnProperty.call(obj, key)
  3447. }
  3448. /**
  3449. * Create a cached version of a pure function.
  3450. */
  3451. function cached (fn) {
  3452. var cache = Object.create(null);
  3453. return (function cachedFn (str) {
  3454. var hit = cache[str];
  3455. return hit || (cache[str] = fn(str))
  3456. })
  3457. }
  3458. /**
  3459. * Camelize a hyphen-delimited string.
  3460. */
  3461. var camelizeRE = /-(\w)/g;
  3462. var camelize = cached(function (str) {
  3463. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  3464. });
  3465. /**
  3466. * Capitalize a string.
  3467. */
  3468. var capitalize = cached(function (str) {
  3469. return str.charAt(0).toUpperCase() + str.slice(1)
  3470. });
  3471. /**
  3472. * Hyphenate a camelCase string.
  3473. */
  3474. var hyphenateRE = /\B([A-Z])/g;
  3475. var hyphenate = cached(function (str) {
  3476. return str.replace(hyphenateRE, '-$1').toLowerCase()
  3477. });
  3478. /**
  3479. * Simple bind polyfill for environments that do not support it,
  3480. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  3481. * since native bind is now performant enough in most browsers.
  3482. * But removing it would mean breaking code that was able to run in
  3483. * PhantomJS 1.x, so this must be kept for backward compatibility.
  3484. */
  3485. /* istanbul ignore next */
  3486. function polyfillBind (fn, ctx) {
  3487. function boundFn (a) {
  3488. var l = arguments.length;
  3489. return l
  3490. ? l > 1
  3491. ? fn.apply(ctx, arguments)
  3492. : fn.call(ctx, a)
  3493. : fn.call(ctx)
  3494. }
  3495. boundFn._length = fn.length;
  3496. return boundFn
  3497. }
  3498. function nativeBind (fn, ctx) {
  3499. return fn.bind(ctx)
  3500. }
  3501. var bind = Function.prototype.bind
  3502. ? nativeBind
  3503. : polyfillBind;
  3504. /**
  3505. * Convert an Array-like object to a real Array.
  3506. */
  3507. function toArray (list, start) {
  3508. start = start || 0;
  3509. var i = list.length - start;
  3510. var ret = new Array(i);
  3511. while (i--) {
  3512. ret[i] = list[i + start];
  3513. }
  3514. return ret
  3515. }
  3516. /**
  3517. * Mix properties into target object.
  3518. */
  3519. function extend (to, _from) {
  3520. for (var key in _from) {
  3521. to[key] = _from[key];
  3522. }
  3523. return to
  3524. }
  3525. /**
  3526. * Merge an Array of Objects into a single Object.
  3527. */
  3528. function toObject (arr) {
  3529. var res = {};
  3530. for (var i = 0; i < arr.length; i++) {
  3531. if (arr[i]) {
  3532. extend(res, arr[i]);
  3533. }
  3534. }
  3535. return res
  3536. }
  3537. /* eslint-disable no-unused-vars */
  3538. /**
  3539. * Perform no operation.
  3540. * Stubbing args to make Flow happy without leaving useless transpiled code
  3541. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  3542. */
  3543. function noop (a, b, c) {}
  3544. /**
  3545. * Always return false.
  3546. */
  3547. var no = function (a, b, c) { return false; };
  3548. /* eslint-enable no-unused-vars */
  3549. /**
  3550. * Return the same value.
  3551. */
  3552. var identity = function (_) { return _; };
  3553. /**
  3554. * Check if two values are loosely equal - that is,
  3555. * if they are plain objects, do they have the same shape?
  3556. */
  3557. function looseEqual (a, b) {
  3558. if (a === b) { return true }
  3559. var isObjectA = isObject(a);
  3560. var isObjectB = isObject(b);
  3561. if (isObjectA && isObjectB) {
  3562. try {
  3563. var isArrayA = Array.isArray(a);
  3564. var isArrayB = Array.isArray(b);
  3565. if (isArrayA && isArrayB) {
  3566. return a.length === b.length && a.every(function (e, i) {
  3567. return looseEqual(e, b[i])
  3568. })
  3569. } else if (a instanceof Date && b instanceof Date) {
  3570. return a.getTime() === b.getTime()
  3571. } else if (!isArrayA && !isArrayB) {
  3572. var keysA = Object.keys(a);
  3573. var keysB = Object.keys(b);
  3574. return keysA.length === keysB.length && keysA.every(function (key) {
  3575. return looseEqual(a[key], b[key])
  3576. })
  3577. } else {
  3578. /* istanbul ignore next */
  3579. return false
  3580. }
  3581. } catch (e) {
  3582. /* istanbul ignore next */
  3583. return false
  3584. }
  3585. } else if (!isObjectA && !isObjectB) {
  3586. return String(a) === String(b)
  3587. } else {
  3588. return false
  3589. }
  3590. }
  3591. /**
  3592. * Return the first index at which a loosely equal value can be
  3593. * found in the array (if value is a plain object, the array must
  3594. * contain an object of the same shape), or -1 if it is not present.
  3595. */
  3596. function looseIndexOf (arr, val) {
  3597. for (var i = 0; i < arr.length; i++) {
  3598. if (looseEqual(arr[i], val)) { return i }
  3599. }
  3600. return -1
  3601. }
  3602. /**
  3603. * Ensure a function is called only once.
  3604. */
  3605. function once (fn) {
  3606. var called = false;
  3607. return function () {
  3608. if (!called) {
  3609. called = true;
  3610. fn.apply(this, arguments);
  3611. }
  3612. }
  3613. }
  3614. var ASSET_TYPES = [
  3615. 'component',
  3616. 'directive',
  3617. 'filter'
  3618. ];
  3619. var LIFECYCLE_HOOKS = [
  3620. 'beforeCreate',
  3621. 'created',
  3622. 'beforeMount',
  3623. 'mounted',
  3624. 'beforeUpdate',
  3625. 'updated',
  3626. 'beforeDestroy',
  3627. 'destroyed',
  3628. 'activated',
  3629. 'deactivated',
  3630. 'errorCaptured',
  3631. 'serverPrefetch'
  3632. ];
  3633. /* */
  3634. var config = ({
  3635. /**
  3636. * Option merge strategies (used in core/util/options)
  3637. */
  3638. // $flow-disable-line
  3639. optionMergeStrategies: Object.create(null),
  3640. /**
  3641. * Whether to suppress warnings.
  3642. */
  3643. silent: false,
  3644. /**
  3645. * Show production mode tip message on boot?
  3646. */
  3647. productionTip: "development" !== 'production',
  3648. /**
  3649. * Whether to enable devtools
  3650. */
  3651. devtools: "development" !== 'production',
  3652. /**
  3653. * Whether to record perf
  3654. */
  3655. performance: false,
  3656. /**
  3657. * Error handler for watcher errors
  3658. */
  3659. errorHandler: null,
  3660. /**
  3661. * Warn handler for watcher warns
  3662. */
  3663. warnHandler: null,
  3664. /**
  3665. * Ignore certain custom elements
  3666. */
  3667. ignoredElements: [],
  3668. /**
  3669. * Custom user key aliases for v-on
  3670. */
  3671. // $flow-disable-line
  3672. keyCodes: Object.create(null),
  3673. /**
  3674. * Check if a tag is reserved so that it cannot be registered as a
  3675. * component. This is platform-dependent and may be overwritten.
  3676. */
  3677. isReservedTag: no,
  3678. /**
  3679. * Check if an attribute is reserved so that it cannot be used as a component
  3680. * prop. This is platform-dependent and may be overwritten.
  3681. */
  3682. isReservedAttr: no,
  3683. /**
  3684. * Check if a tag is an unknown element.
  3685. * Platform-dependent.
  3686. */
  3687. isUnknownElement: no,
  3688. /**
  3689. * Get the namespace of an element
  3690. */
  3691. getTagNamespace: noop,
  3692. /**
  3693. * Parse the real tag name for the specific platform.
  3694. */
  3695. parsePlatformTagName: identity,
  3696. /**
  3697. * Check if an attribute must be bound using property, e.g. value
  3698. * Platform-dependent.
  3699. */
  3700. mustUseProp: no,
  3701. /**
  3702. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  3703. * This will significantly reduce performance if set to false.
  3704. */
  3705. async: true,
  3706. /**
  3707. * Exposed for legacy reasons
  3708. */
  3709. _lifecycleHooks: LIFECYCLE_HOOKS
  3710. });
  3711. /* */
  3712. /**
  3713. * unicode letters used for parsing html tags, component names and property paths.
  3714. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  3715. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  3716. */
  3717. 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/;
  3718. /**
  3719. * Check if a string starts with $ or _
  3720. */
  3721. function isReserved (str) {
  3722. var c = (str + '').charCodeAt(0);
  3723. return c === 0x24 || c === 0x5F
  3724. }
  3725. /**
  3726. * Define a property.
  3727. */
  3728. function def (obj, key, val, enumerable) {
  3729. Object.defineProperty(obj, key, {
  3730. value: val,
  3731. enumerable: !!enumerable,
  3732. writable: true,
  3733. configurable: true
  3734. });
  3735. }
  3736. /**
  3737. * Parse simple path.
  3738. */
  3739. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  3740. function parsePath (path) {
  3741. if (bailRE.test(path)) {
  3742. return
  3743. }
  3744. var segments = path.split('.');
  3745. return function (obj) {
  3746. for (var i = 0; i < segments.length; i++) {
  3747. if (!obj) { return }
  3748. obj = obj[segments[i]];
  3749. }
  3750. return obj
  3751. }
  3752. }
  3753. /* */
  3754. // can we use __proto__?
  3755. var hasProto = '__proto__' in {};
  3756. // Browser environment sniffing
  3757. var inBrowser = typeof window !== 'undefined';
  3758. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  3759. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  3760. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  3761. var isIE = UA && /msie|trident/.test(UA);
  3762. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  3763. var isEdge = UA && UA.indexOf('edge/') > 0;
  3764. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  3765. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  3766. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  3767. var isPhantomJS = UA && /phantomjs/.test(UA);
  3768. var isFF = UA && UA.match(/firefox\/(\d+)/);
  3769. // Firefox has a "watch" function on Object.prototype...
  3770. var nativeWatch = ({}).watch;
  3771. if (inBrowser) {
  3772. try {
  3773. var opts = {};
  3774. Object.defineProperty(opts, 'passive', ({
  3775. get: function get () {
  3776. }
  3777. })); // https://github.com/facebook/flow/issues/285
  3778. window.addEventListener('test-passive', null, opts);
  3779. } catch (e) {}
  3780. }
  3781. // this needs to be lazy-evaled because vue may be required before
  3782. // vue-server-renderer can set VUE_ENV
  3783. var _isServer;
  3784. var isServerRendering = function () {
  3785. if (_isServer === undefined) {
  3786. /* istanbul ignore if */
  3787. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  3788. // detect presence of vue-server-renderer and avoid
  3789. // Webpack shimming the process
  3790. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  3791. } else {
  3792. _isServer = false;
  3793. }
  3794. }
  3795. return _isServer
  3796. };
  3797. // detect devtools
  3798. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  3799. /* istanbul ignore next */
  3800. function isNative (Ctor) {
  3801. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  3802. }
  3803. var hasSymbol =
  3804. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  3805. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  3806. var _Set;
  3807. /* istanbul ignore if */ // $flow-disable-line
  3808. if (typeof Set !== 'undefined' && isNative(Set)) {
  3809. // use native Set when available.
  3810. _Set = Set;
  3811. } else {
  3812. // a non-standard Set polyfill that only works with primitive keys.
  3813. _Set = /*@__PURE__*/(function () {
  3814. function Set () {
  3815. this.set = Object.create(null);
  3816. }
  3817. Set.prototype.has = function has (key) {
  3818. return this.set[key] === true
  3819. };
  3820. Set.prototype.add = function add (key) {
  3821. this.set[key] = true;
  3822. };
  3823. Set.prototype.clear = function clear () {
  3824. this.set = Object.create(null);
  3825. };
  3826. return Set;
  3827. }());
  3828. }
  3829. /* */
  3830. var warn = noop;
  3831. var tip = noop;
  3832. var generateComponentTrace = (noop); // work around flow check
  3833. var formatComponentName = (noop);
  3834. if (true) {
  3835. var hasConsole = typeof console !== 'undefined';
  3836. var classifyRE = /(?:^|[-_])(\w)/g;
  3837. var classify = function (str) { return str
  3838. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  3839. .replace(/[-_]/g, ''); };
  3840. warn = function (msg, vm) {
  3841. var trace = vm ? generateComponentTrace(vm) : '';
  3842. if (config.warnHandler) {
  3843. config.warnHandler.call(null, msg, vm, trace);
  3844. } else if (hasConsole && (!config.silent)) {
  3845. console.error(("[Vue warn]: " + msg + trace));
  3846. }
  3847. };
  3848. tip = function (msg, vm) {
  3849. if (hasConsole && (!config.silent)) {
  3850. console.warn("[Vue tip]: " + msg + (
  3851. vm ? generateComponentTrace(vm) : ''
  3852. ));
  3853. }
  3854. };
  3855. formatComponentName = function (vm, includeFile) {
  3856. if (vm.$root === vm) {
  3857. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  3858. return ('') + vm.$options.__file
  3859. }
  3860. return '<Root>'
  3861. }
  3862. var options = typeof vm === 'function' && vm.cid != null
  3863. ? vm.options
  3864. : vm._isVue
  3865. ? vm.$options || vm.constructor.options
  3866. : vm;
  3867. var name = options.name || options._componentTag;
  3868. var file = options.__file;
  3869. if (!name && file) {
  3870. var match = file.match(/([^/\\]+)\.vue$/);
  3871. name = match && match[1];
  3872. }
  3873. return (
  3874. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  3875. (file && includeFile !== false ? (" at " + file) : '')
  3876. )
  3877. };
  3878. var repeat = function (str, n) {
  3879. var res = '';
  3880. while (n) {
  3881. if (n % 2 === 1) { res += str; }
  3882. if (n > 1) { str += str; }
  3883. n >>= 1;
  3884. }
  3885. return res
  3886. };
  3887. generateComponentTrace = function (vm) {
  3888. if (vm._isVue && vm.$parent) {
  3889. var tree = [];
  3890. var currentRecursiveSequence = 0;
  3891. while (vm && vm.$options.name !== 'PageBody') {
  3892. if (tree.length > 0) {
  3893. var last = tree[tree.length - 1];
  3894. if (last.constructor === vm.constructor) {
  3895. currentRecursiveSequence++;
  3896. vm = vm.$parent;
  3897. continue
  3898. } else if (currentRecursiveSequence > 0) {
  3899. tree[tree.length - 1] = [last, currentRecursiveSequence];
  3900. currentRecursiveSequence = 0;
  3901. }
  3902. }
  3903. !vm.$options.isReserved && tree.push(vm);
  3904. vm = vm.$parent;
  3905. }
  3906. return '\n\nfound in\n\n' + tree
  3907. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  3908. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  3909. : formatComponentName(vm))); })
  3910. .join('\n')
  3911. } else {
  3912. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  3913. }
  3914. };
  3915. }
  3916. /* */
  3917. var uid = 0;
  3918. /**
  3919. * A dep is an observable that can have multiple
  3920. * directives subscribing to it.
  3921. */
  3922. var Dep = function Dep () {
  3923. this.id = uid++;
  3924. this.subs = [];
  3925. };
  3926. Dep.prototype.addSub = function addSub (sub) {
  3927. this.subs.push(sub);
  3928. };
  3929. Dep.prototype.removeSub = function removeSub (sub) {
  3930. remove(this.subs, sub);
  3931. };
  3932. Dep.prototype.depend = function depend () {
  3933. if (Dep.SharedObject.target) {
  3934. Dep.SharedObject.target.addDep(this);
  3935. }
  3936. };
  3937. Dep.prototype.notify = function notify () {
  3938. // stabilize the subscriber list first
  3939. var subs = this.subs.slice();
  3940. if ( true && !config.async) {
  3941. // subs aren't sorted in scheduler if not running async
  3942. // we need to sort them now to make sure they fire in correct
  3943. // order
  3944. subs.sort(function (a, b) { return a.id - b.id; });
  3945. }
  3946. for (var i = 0, l = subs.length; i < l; i++) {
  3947. subs[i].update();
  3948. }
  3949. };
  3950. // The current target watcher being evaluated.
  3951. // This is globally unique because only one watcher
  3952. // can be evaluated at a time.
  3953. // fixed by xxxxxx (nvue shared vuex)
  3954. /* eslint-disable no-undef */
  3955. Dep.SharedObject = {};
  3956. Dep.SharedObject.target = null;
  3957. Dep.SharedObject.targetStack = [];
  3958. function pushTarget (target) {
  3959. Dep.SharedObject.targetStack.push(target);
  3960. Dep.SharedObject.target = target;
  3961. Dep.target = target;
  3962. }
  3963. function popTarget () {
  3964. Dep.SharedObject.targetStack.pop();
  3965. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  3966. Dep.target = Dep.SharedObject.target;
  3967. }
  3968. /* */
  3969. var VNode = function VNode (
  3970. tag,
  3971. data,
  3972. children,
  3973. text,
  3974. elm,
  3975. context,
  3976. componentOptions,
  3977. asyncFactory
  3978. ) {
  3979. this.tag = tag;
  3980. this.data = data;
  3981. this.children = children;
  3982. this.text = text;
  3983. this.elm = elm;
  3984. this.ns = undefined;
  3985. this.context = context;
  3986. this.fnContext = undefined;
  3987. this.fnOptions = undefined;
  3988. this.fnScopeId = undefined;
  3989. this.key = data && data.key;
  3990. this.componentOptions = componentOptions;
  3991. this.componentInstance = undefined;
  3992. this.parent = undefined;
  3993. this.raw = false;
  3994. this.isStatic = false;
  3995. this.isRootInsert = true;
  3996. this.isComment = false;
  3997. this.isCloned = false;
  3998. this.isOnce = false;
  3999. this.asyncFactory = asyncFactory;
  4000. this.asyncMeta = undefined;
  4001. this.isAsyncPlaceholder = false;
  4002. };
  4003. var prototypeAccessors = { child: { configurable: true } };
  4004. // DEPRECATED: alias for componentInstance for backwards compat.
  4005. /* istanbul ignore next */
  4006. prototypeAccessors.child.get = function () {
  4007. return this.componentInstance
  4008. };
  4009. Object.defineProperties( VNode.prototype, prototypeAccessors );
  4010. var createEmptyVNode = function (text) {
  4011. if ( text === void 0 ) text = '';
  4012. var node = new VNode();
  4013. node.text = text;
  4014. node.isComment = true;
  4015. return node
  4016. };
  4017. function createTextVNode (val) {
  4018. return new VNode(undefined, undefined, undefined, String(val))
  4019. }
  4020. // optimized shallow clone
  4021. // used for static nodes and slot nodes because they may be reused across
  4022. // multiple renders, cloning them avoids errors when DOM manipulations rely
  4023. // on their elm reference.
  4024. function cloneVNode (vnode) {
  4025. var cloned = new VNode(
  4026. vnode.tag,
  4027. vnode.data,
  4028. // #7975
  4029. // clone children array to avoid mutating original in case of cloning
  4030. // a child.
  4031. vnode.children && vnode.children.slice(),
  4032. vnode.text,
  4033. vnode.elm,
  4034. vnode.context,
  4035. vnode.componentOptions,
  4036. vnode.asyncFactory
  4037. );
  4038. cloned.ns = vnode.ns;
  4039. cloned.isStatic = vnode.isStatic;
  4040. cloned.key = vnode.key;
  4041. cloned.isComment = vnode.isComment;
  4042. cloned.fnContext = vnode.fnContext;
  4043. cloned.fnOptions = vnode.fnOptions;
  4044. cloned.fnScopeId = vnode.fnScopeId;
  4045. cloned.asyncMeta = vnode.asyncMeta;
  4046. cloned.isCloned = true;
  4047. return cloned
  4048. }
  4049. /*
  4050. * not type checking this file because flow doesn't play well with
  4051. * dynamically accessing methods on Array prototype
  4052. */
  4053. var arrayProto = Array.prototype;
  4054. var arrayMethods = Object.create(arrayProto);
  4055. var methodsToPatch = [
  4056. 'push',
  4057. 'pop',
  4058. 'shift',
  4059. 'unshift',
  4060. 'splice',
  4061. 'sort',
  4062. 'reverse'
  4063. ];
  4064. /**
  4065. * Intercept mutating methods and emit events
  4066. */
  4067. methodsToPatch.forEach(function (method) {
  4068. // cache original method
  4069. var original = arrayProto[method];
  4070. def(arrayMethods, method, function mutator () {
  4071. var args = [], len = arguments.length;
  4072. while ( len-- ) args[ len ] = arguments[ len ];
  4073. var result = original.apply(this, args);
  4074. var ob = this.__ob__;
  4075. var inserted;
  4076. switch (method) {
  4077. case 'push':
  4078. case 'unshift':
  4079. inserted = args;
  4080. break
  4081. case 'splice':
  4082. inserted = args.slice(2);
  4083. break
  4084. }
  4085. if (inserted) { ob.observeArray(inserted); }
  4086. // notify change
  4087. ob.dep.notify();
  4088. return result
  4089. });
  4090. });
  4091. /* */
  4092. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  4093. /**
  4094. * In some cases we may want to disable observation inside a component's
  4095. * update computation.
  4096. */
  4097. var shouldObserve = true;
  4098. function toggleObserving (value) {
  4099. shouldObserve = value;
  4100. }
  4101. /**
  4102. * Observer class that is attached to each observed
  4103. * object. Once attached, the observer converts the target
  4104. * object's property keys into getter/setters that
  4105. * collect dependencies and dispatch updates.
  4106. */
  4107. var Observer = function Observer (value) {
  4108. this.value = value;
  4109. this.dep = new Dep();
  4110. this.vmCount = 0;
  4111. def(value, '__ob__', this);
  4112. if (Array.isArray(value)) {
  4113. if (hasProto) {
  4114. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  4115. if(value.push !== value.__proto__.push){
  4116. copyAugment(value, arrayMethods, arrayKeys);
  4117. } else {
  4118. protoAugment(value, arrayMethods);
  4119. }
  4120. }
  4121. } else {
  4122. copyAugment(value, arrayMethods, arrayKeys);
  4123. }
  4124. this.observeArray(value);
  4125. } else {
  4126. this.walk(value);
  4127. }
  4128. };
  4129. /**
  4130. * Walk through all properties and convert them into
  4131. * getter/setters. This method should only be called when
  4132. * value type is Object.
  4133. */
  4134. Observer.prototype.walk = function walk (obj) {
  4135. var keys = Object.keys(obj);
  4136. for (var i = 0; i < keys.length; i++) {
  4137. defineReactive$$1(obj, keys[i]);
  4138. }
  4139. };
  4140. /**
  4141. * Observe a list of Array items.
  4142. */
  4143. Observer.prototype.observeArray = function observeArray (items) {
  4144. for (var i = 0, l = items.length; i < l; i++) {
  4145. observe(items[i]);
  4146. }
  4147. };
  4148. // helpers
  4149. /**
  4150. * Augment a target Object or Array by intercepting
  4151. * the prototype chain using __proto__
  4152. */
  4153. function protoAugment (target, src) {
  4154. /* eslint-disable no-proto */
  4155. target.__proto__ = src;
  4156. /* eslint-enable no-proto */
  4157. }
  4158. /**
  4159. * Augment a target Object or Array by defining
  4160. * hidden properties.
  4161. */
  4162. /* istanbul ignore next */
  4163. function copyAugment (target, src, keys) {
  4164. for (var i = 0, l = keys.length; i < l; i++) {
  4165. var key = keys[i];
  4166. def(target, key, src[key]);
  4167. }
  4168. }
  4169. /**
  4170. * Attempt to create an observer instance for a value,
  4171. * returns the new observer if successfully observed,
  4172. * or the existing observer if the value already has one.
  4173. */
  4174. function observe (value, asRootData) {
  4175. if (!isObject(value) || value instanceof VNode) {
  4176. return
  4177. }
  4178. var ob;
  4179. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  4180. ob = value.__ob__;
  4181. } else if (
  4182. shouldObserve &&
  4183. !isServerRendering() &&
  4184. (Array.isArray(value) || isPlainObject(value)) &&
  4185. Object.isExtensible(value) &&
  4186. !value._isVue &&
  4187. !value.__v_isMPComponent
  4188. ) {
  4189. ob = new Observer(value);
  4190. }
  4191. if (asRootData && ob) {
  4192. ob.vmCount++;
  4193. }
  4194. return ob
  4195. }
  4196. /**
  4197. * Define a reactive property on an Object.
  4198. */
  4199. function defineReactive$$1 (
  4200. obj,
  4201. key,
  4202. val,
  4203. customSetter,
  4204. shallow
  4205. ) {
  4206. var dep = new Dep();
  4207. var property = Object.getOwnPropertyDescriptor(obj, key);
  4208. if (property && property.configurable === false) {
  4209. return
  4210. }
  4211. // cater for pre-defined getter/setters
  4212. var getter = property && property.get;
  4213. var setter = property && property.set;
  4214. if ((!getter || setter) && arguments.length === 2) {
  4215. val = obj[key];
  4216. }
  4217. var childOb = !shallow && observe(val);
  4218. Object.defineProperty(obj, key, {
  4219. enumerable: true,
  4220. configurable: true,
  4221. get: function reactiveGetter () {
  4222. var value = getter ? getter.call(obj) : val;
  4223. if (Dep.SharedObject.target) { // fixed by xxxxxx
  4224. dep.depend();
  4225. if (childOb) {
  4226. childOb.dep.depend();
  4227. if (Array.isArray(value)) {
  4228. dependArray(value);
  4229. }
  4230. }
  4231. }
  4232. return value
  4233. },
  4234. set: function reactiveSetter (newVal) {
  4235. var value = getter ? getter.call(obj) : val;
  4236. /* eslint-disable no-self-compare */
  4237. if (newVal === value || (newVal !== newVal && value !== value)) {
  4238. return
  4239. }
  4240. /* eslint-enable no-self-compare */
  4241. if ( true && customSetter) {
  4242. customSetter();
  4243. }
  4244. // #7981: for accessor properties without setter
  4245. if (getter && !setter) { return }
  4246. if (setter) {
  4247. setter.call(obj, newVal);
  4248. } else {
  4249. val = newVal;
  4250. }
  4251. childOb = !shallow && observe(newVal);
  4252. dep.notify();
  4253. }
  4254. });
  4255. }
  4256. /**
  4257. * Set a property on an object. Adds the new property and
  4258. * triggers change notification if the property doesn't
  4259. * already exist.
  4260. */
  4261. function set (target, key, val) {
  4262. if ( true &&
  4263. (isUndef(target) || isPrimitive(target))
  4264. ) {
  4265. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  4266. }
  4267. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4268. target.length = Math.max(target.length, key);
  4269. target.splice(key, 1, val);
  4270. return val
  4271. }
  4272. if (key in target && !(key in Object.prototype)) {
  4273. target[key] = val;
  4274. return val
  4275. }
  4276. var ob = (target).__ob__;
  4277. if (target._isVue || (ob && ob.vmCount)) {
  4278. true && warn(
  4279. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  4280. 'at runtime - declare it upfront in the data option.'
  4281. );
  4282. return val
  4283. }
  4284. if (!ob) {
  4285. target[key] = val;
  4286. return val
  4287. }
  4288. defineReactive$$1(ob.value, key, val);
  4289. ob.dep.notify();
  4290. return val
  4291. }
  4292. /**
  4293. * Delete a property and trigger change if necessary.
  4294. */
  4295. function del (target, key) {
  4296. if ( true &&
  4297. (isUndef(target) || isPrimitive(target))
  4298. ) {
  4299. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  4300. }
  4301. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4302. target.splice(key, 1);
  4303. return
  4304. }
  4305. var ob = (target).__ob__;
  4306. if (target._isVue || (ob && ob.vmCount)) {
  4307. true && warn(
  4308. 'Avoid deleting properties on a Vue instance or its root $data ' +
  4309. '- just set it to null.'
  4310. );
  4311. return
  4312. }
  4313. if (!hasOwn(target, key)) {
  4314. return
  4315. }
  4316. delete target[key];
  4317. if (!ob) {
  4318. return
  4319. }
  4320. ob.dep.notify();
  4321. }
  4322. /**
  4323. * Collect dependencies on array elements when the array is touched, since
  4324. * we cannot intercept array element access like property getters.
  4325. */
  4326. function dependArray (value) {
  4327. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  4328. e = value[i];
  4329. e && e.__ob__ && e.__ob__.dep.depend();
  4330. if (Array.isArray(e)) {
  4331. dependArray(e);
  4332. }
  4333. }
  4334. }
  4335. /* */
  4336. /**
  4337. * Option overwriting strategies are functions that handle
  4338. * how to merge a parent option value and a child option
  4339. * value into the final value.
  4340. */
  4341. var strats = config.optionMergeStrategies;
  4342. /**
  4343. * Options with restrictions
  4344. */
  4345. if (true) {
  4346. strats.el = strats.propsData = function (parent, child, vm, key) {
  4347. if (!vm) {
  4348. warn(
  4349. "option \"" + key + "\" can only be used during instance " +
  4350. 'creation with the `new` keyword.'
  4351. );
  4352. }
  4353. return defaultStrat(parent, child)
  4354. };
  4355. }
  4356. /**
  4357. * Helper that recursively merges two data objects together.
  4358. */
  4359. function mergeData (to, from) {
  4360. if (!from) { return to }
  4361. var key, toVal, fromVal;
  4362. var keys = hasSymbol
  4363. ? Reflect.ownKeys(from)
  4364. : Object.keys(from);
  4365. for (var i = 0; i < keys.length; i++) {
  4366. key = keys[i];
  4367. // in case the object is already observed...
  4368. if (key === '__ob__') { continue }
  4369. toVal = to[key];
  4370. fromVal = from[key];
  4371. if (!hasOwn(to, key)) {
  4372. set(to, key, fromVal);
  4373. } else if (
  4374. toVal !== fromVal &&
  4375. isPlainObject(toVal) &&
  4376. isPlainObject(fromVal)
  4377. ) {
  4378. mergeData(toVal, fromVal);
  4379. }
  4380. }
  4381. return to
  4382. }
  4383. /**
  4384. * Data
  4385. */
  4386. function mergeDataOrFn (
  4387. parentVal,
  4388. childVal,
  4389. vm
  4390. ) {
  4391. if (!vm) {
  4392. // in a Vue.extend merge, both should be functions
  4393. if (!childVal) {
  4394. return parentVal
  4395. }
  4396. if (!parentVal) {
  4397. return childVal
  4398. }
  4399. // when parentVal & childVal are both present,
  4400. // we need to return a function that returns the
  4401. // merged result of both functions... no need to
  4402. // check if parentVal is a function here because
  4403. // it has to be a function to pass previous merges.
  4404. return function mergedDataFn () {
  4405. return mergeData(
  4406. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  4407. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  4408. )
  4409. }
  4410. } else {
  4411. return function mergedInstanceDataFn () {
  4412. // instance merge
  4413. var instanceData = typeof childVal === 'function'
  4414. ? childVal.call(vm, vm)
  4415. : childVal;
  4416. var defaultData = typeof parentVal === 'function'
  4417. ? parentVal.call(vm, vm)
  4418. : parentVal;
  4419. if (instanceData) {
  4420. return mergeData(instanceData, defaultData)
  4421. } else {
  4422. return defaultData
  4423. }
  4424. }
  4425. }
  4426. }
  4427. strats.data = function (
  4428. parentVal,
  4429. childVal,
  4430. vm
  4431. ) {
  4432. if (!vm) {
  4433. if (childVal && typeof childVal !== 'function') {
  4434. true && warn(
  4435. 'The "data" option should be a function ' +
  4436. 'that returns a per-instance value in component ' +
  4437. 'definitions.',
  4438. vm
  4439. );
  4440. return parentVal
  4441. }
  4442. return mergeDataOrFn(parentVal, childVal)
  4443. }
  4444. return mergeDataOrFn(parentVal, childVal, vm)
  4445. };
  4446. /**
  4447. * Hooks and props are merged as arrays.
  4448. */
  4449. function mergeHook (
  4450. parentVal,
  4451. childVal
  4452. ) {
  4453. var res = childVal
  4454. ? parentVal
  4455. ? parentVal.concat(childVal)
  4456. : Array.isArray(childVal)
  4457. ? childVal
  4458. : [childVal]
  4459. : parentVal;
  4460. return res
  4461. ? dedupeHooks(res)
  4462. : res
  4463. }
  4464. function dedupeHooks (hooks) {
  4465. var res = [];
  4466. for (var i = 0; i < hooks.length; i++) {
  4467. if (res.indexOf(hooks[i]) === -1) {
  4468. res.push(hooks[i]);
  4469. }
  4470. }
  4471. return res
  4472. }
  4473. LIFECYCLE_HOOKS.forEach(function (hook) {
  4474. strats[hook] = mergeHook;
  4475. });
  4476. /**
  4477. * Assets
  4478. *
  4479. * When a vm is present (instance creation), we need to do
  4480. * a three-way merge between constructor options, instance
  4481. * options and parent options.
  4482. */
  4483. function mergeAssets (
  4484. parentVal,
  4485. childVal,
  4486. vm,
  4487. key
  4488. ) {
  4489. var res = Object.create(parentVal || null);
  4490. if (childVal) {
  4491. true && assertObjectType(key, childVal, vm);
  4492. return extend(res, childVal)
  4493. } else {
  4494. return res
  4495. }
  4496. }
  4497. ASSET_TYPES.forEach(function (type) {
  4498. strats[type + 's'] = mergeAssets;
  4499. });
  4500. /**
  4501. * Watchers.
  4502. *
  4503. * Watchers hashes should not overwrite one
  4504. * another, so we merge them as arrays.
  4505. */
  4506. strats.watch = function (
  4507. parentVal,
  4508. childVal,
  4509. vm,
  4510. key
  4511. ) {
  4512. // work around Firefox's Object.prototype.watch...
  4513. if (parentVal === nativeWatch) { parentVal = undefined; }
  4514. if (childVal === nativeWatch) { childVal = undefined; }
  4515. /* istanbul ignore if */
  4516. if (!childVal) { return Object.create(parentVal || null) }
  4517. if (true) {
  4518. assertObjectType(key, childVal, vm);
  4519. }
  4520. if (!parentVal) { return childVal }
  4521. var ret = {};
  4522. extend(ret, parentVal);
  4523. for (var key$1 in childVal) {
  4524. var parent = ret[key$1];
  4525. var child = childVal[key$1];
  4526. if (parent && !Array.isArray(parent)) {
  4527. parent = [parent];
  4528. }
  4529. ret[key$1] = parent
  4530. ? parent.concat(child)
  4531. : Array.isArray(child) ? child : [child];
  4532. }
  4533. return ret
  4534. };
  4535. /**
  4536. * Other object hashes.
  4537. */
  4538. strats.props =
  4539. strats.methods =
  4540. strats.inject =
  4541. strats.computed = function (
  4542. parentVal,
  4543. childVal,
  4544. vm,
  4545. key
  4546. ) {
  4547. if (childVal && "development" !== 'production') {
  4548. assertObjectType(key, childVal, vm);
  4549. }
  4550. if (!parentVal) { return childVal }
  4551. var ret = Object.create(null);
  4552. extend(ret, parentVal);
  4553. if (childVal) { extend(ret, childVal); }
  4554. return ret
  4555. };
  4556. strats.provide = mergeDataOrFn;
  4557. /**
  4558. * Default strategy.
  4559. */
  4560. var defaultStrat = function (parentVal, childVal) {
  4561. return childVal === undefined
  4562. ? parentVal
  4563. : childVal
  4564. };
  4565. /**
  4566. * Validate component names
  4567. */
  4568. function checkComponents (options) {
  4569. for (var key in options.components) {
  4570. validateComponentName(key);
  4571. }
  4572. }
  4573. function validateComponentName (name) {
  4574. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  4575. warn(
  4576. 'Invalid component name: "' + name + '". Component names ' +
  4577. 'should conform to valid custom element name in html5 specification.'
  4578. );
  4579. }
  4580. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  4581. warn(
  4582. 'Do not use built-in or reserved HTML elements as component ' +
  4583. 'id: ' + name
  4584. );
  4585. }
  4586. }
  4587. /**
  4588. * Ensure all props option syntax are normalized into the
  4589. * Object-based format.
  4590. */
  4591. function normalizeProps (options, vm) {
  4592. var props = options.props;
  4593. if (!props) { return }
  4594. var res = {};
  4595. var i, val, name;
  4596. if (Array.isArray(props)) {
  4597. i = props.length;
  4598. while (i--) {
  4599. val = props[i];
  4600. if (typeof val === 'string') {
  4601. name = camelize(val);
  4602. res[name] = { type: null };
  4603. } else if (true) {
  4604. warn('props must be strings when using array syntax.');
  4605. }
  4606. }
  4607. } else if (isPlainObject(props)) {
  4608. for (var key in props) {
  4609. val = props[key];
  4610. name = camelize(key);
  4611. res[name] = isPlainObject(val)
  4612. ? val
  4613. : { type: val };
  4614. }
  4615. } else if (true) {
  4616. warn(
  4617. "Invalid value for option \"props\": expected an Array or an Object, " +
  4618. "but got " + (toRawType(props)) + ".",
  4619. vm
  4620. );
  4621. }
  4622. options.props = res;
  4623. }
  4624. /**
  4625. * Normalize all injections into Object-based format
  4626. */
  4627. function normalizeInject (options, vm) {
  4628. var inject = options.inject;
  4629. if (!inject) { return }
  4630. var normalized = options.inject = {};
  4631. if (Array.isArray(inject)) {
  4632. for (var i = 0; i < inject.length; i++) {
  4633. normalized[inject[i]] = { from: inject[i] };
  4634. }
  4635. } else if (isPlainObject(inject)) {
  4636. for (var key in inject) {
  4637. var val = inject[key];
  4638. normalized[key] = isPlainObject(val)
  4639. ? extend({ from: key }, val)
  4640. : { from: val };
  4641. }
  4642. } else if (true) {
  4643. warn(
  4644. "Invalid value for option \"inject\": expected an Array or an Object, " +
  4645. "but got " + (toRawType(inject)) + ".",
  4646. vm
  4647. );
  4648. }
  4649. }
  4650. /**
  4651. * Normalize raw function directives into object format.
  4652. */
  4653. function normalizeDirectives (options) {
  4654. var dirs = options.directives;
  4655. if (dirs) {
  4656. for (var key in dirs) {
  4657. var def$$1 = dirs[key];
  4658. if (typeof def$$1 === 'function') {
  4659. dirs[key] = { bind: def$$1, update: def$$1 };
  4660. }
  4661. }
  4662. }
  4663. }
  4664. function assertObjectType (name, value, vm) {
  4665. if (!isPlainObject(value)) {
  4666. warn(
  4667. "Invalid value for option \"" + name + "\": expected an Object, " +
  4668. "but got " + (toRawType(value)) + ".",
  4669. vm
  4670. );
  4671. }
  4672. }
  4673. /**
  4674. * Merge two option objects into a new one.
  4675. * Core utility used in both instantiation and inheritance.
  4676. */
  4677. function mergeOptions (
  4678. parent,
  4679. child,
  4680. vm
  4681. ) {
  4682. if (true) {
  4683. checkComponents(child);
  4684. }
  4685. if (typeof child === 'function') {
  4686. child = child.options;
  4687. }
  4688. normalizeProps(child, vm);
  4689. normalizeInject(child, vm);
  4690. normalizeDirectives(child);
  4691. // Apply extends and mixins on the child options,
  4692. // but only if it is a raw options object that isn't
  4693. // the result of another mergeOptions call.
  4694. // Only merged options has the _base property.
  4695. if (!child._base) {
  4696. if (child.extends) {
  4697. parent = mergeOptions(parent, child.extends, vm);
  4698. }
  4699. if (child.mixins) {
  4700. for (var i = 0, l = child.mixins.length; i < l; i++) {
  4701. parent = mergeOptions(parent, child.mixins[i], vm);
  4702. }
  4703. }
  4704. }
  4705. var options = {};
  4706. var key;
  4707. for (key in parent) {
  4708. mergeField(key);
  4709. }
  4710. for (key in child) {
  4711. if (!hasOwn(parent, key)) {
  4712. mergeField(key);
  4713. }
  4714. }
  4715. function mergeField (key) {
  4716. var strat = strats[key] || defaultStrat;
  4717. options[key] = strat(parent[key], child[key], vm, key);
  4718. }
  4719. return options
  4720. }
  4721. /**
  4722. * Resolve an asset.
  4723. * This function is used because child instances need access
  4724. * to assets defined in its ancestor chain.
  4725. */
  4726. function resolveAsset (
  4727. options,
  4728. type,
  4729. id,
  4730. warnMissing
  4731. ) {
  4732. /* istanbul ignore if */
  4733. if (typeof id !== 'string') {
  4734. return
  4735. }
  4736. var assets = options[type];
  4737. // check local registration variations first
  4738. if (hasOwn(assets, id)) { return assets[id] }
  4739. var camelizedId = camelize(id);
  4740. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  4741. var PascalCaseId = capitalize(camelizedId);
  4742. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  4743. // fallback to prototype chain
  4744. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  4745. if ( true && warnMissing && !res) {
  4746. warn(
  4747. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  4748. options
  4749. );
  4750. }
  4751. return res
  4752. }
  4753. /* */
  4754. function validateProp (
  4755. key,
  4756. propOptions,
  4757. propsData,
  4758. vm
  4759. ) {
  4760. var prop = propOptions[key];
  4761. var absent = !hasOwn(propsData, key);
  4762. var value = propsData[key];
  4763. // boolean casting
  4764. var booleanIndex = getTypeIndex(Boolean, prop.type);
  4765. if (booleanIndex > -1) {
  4766. if (absent && !hasOwn(prop, 'default')) {
  4767. value = false;
  4768. } else if (value === '' || value === hyphenate(key)) {
  4769. // only cast empty string / same name to boolean if
  4770. // boolean has higher priority
  4771. var stringIndex = getTypeIndex(String, prop.type);
  4772. if (stringIndex < 0 || booleanIndex < stringIndex) {
  4773. value = true;
  4774. }
  4775. }
  4776. }
  4777. // check default value
  4778. if (value === undefined) {
  4779. value = getPropDefaultValue(vm, prop, key);
  4780. // since the default value is a fresh copy,
  4781. // make sure to observe it.
  4782. var prevShouldObserve = shouldObserve;
  4783. toggleObserving(true);
  4784. observe(value);
  4785. toggleObserving(prevShouldObserve);
  4786. }
  4787. if (
  4788. true
  4789. ) {
  4790. assertProp(prop, key, value, vm, absent);
  4791. }
  4792. return value
  4793. }
  4794. /**
  4795. * Get the default value of a prop.
  4796. */
  4797. function getPropDefaultValue (vm, prop, key) {
  4798. // no default, return undefined
  4799. if (!hasOwn(prop, 'default')) {
  4800. return undefined
  4801. }
  4802. var def = prop.default;
  4803. // warn against non-factory defaults for Object & Array
  4804. if ( true && isObject(def)) {
  4805. warn(
  4806. 'Invalid default value for prop "' + key + '": ' +
  4807. 'Props with type Object/Array must use a factory function ' +
  4808. 'to return the default value.',
  4809. vm
  4810. );
  4811. }
  4812. // the raw prop value was also undefined from previous render,
  4813. // return previous default value to avoid unnecessary watcher trigger
  4814. if (vm && vm.$options.propsData &&
  4815. vm.$options.propsData[key] === undefined &&
  4816. vm._props[key] !== undefined
  4817. ) {
  4818. return vm._props[key]
  4819. }
  4820. // call factory function for non-Function types
  4821. // a value is Function if its prototype is function even across different execution context
  4822. return typeof def === 'function' && getType(prop.type) !== 'Function'
  4823. ? def.call(vm)
  4824. : def
  4825. }
  4826. /**
  4827. * Assert whether a prop is valid.
  4828. */
  4829. function assertProp (
  4830. prop,
  4831. name,
  4832. value,
  4833. vm,
  4834. absent
  4835. ) {
  4836. if (prop.required && absent) {
  4837. warn(
  4838. 'Missing required prop: "' + name + '"',
  4839. vm
  4840. );
  4841. return
  4842. }
  4843. if (value == null && !prop.required) {
  4844. return
  4845. }
  4846. var type = prop.type;
  4847. var valid = !type || type === true;
  4848. var expectedTypes = [];
  4849. if (type) {
  4850. if (!Array.isArray(type)) {
  4851. type = [type];
  4852. }
  4853. for (var i = 0; i < type.length && !valid; i++) {
  4854. var assertedType = assertType(value, type[i]);
  4855. expectedTypes.push(assertedType.expectedType || '');
  4856. valid = assertedType.valid;
  4857. }
  4858. }
  4859. if (!valid) {
  4860. warn(
  4861. getInvalidTypeMessage(name, value, expectedTypes),
  4862. vm
  4863. );
  4864. return
  4865. }
  4866. var validator = prop.validator;
  4867. if (validator) {
  4868. if (!validator(value)) {
  4869. warn(
  4870. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  4871. vm
  4872. );
  4873. }
  4874. }
  4875. }
  4876. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  4877. function assertType (value, type) {
  4878. var valid;
  4879. var expectedType = getType(type);
  4880. if (simpleCheckRE.test(expectedType)) {
  4881. var t = typeof value;
  4882. valid = t === expectedType.toLowerCase();
  4883. // for primitive wrapper objects
  4884. if (!valid && t === 'object') {
  4885. valid = value instanceof type;
  4886. }
  4887. } else if (expectedType === 'Object') {
  4888. valid = isPlainObject(value);
  4889. } else if (expectedType === 'Array') {
  4890. valid = Array.isArray(value);
  4891. } else {
  4892. valid = value instanceof type;
  4893. }
  4894. return {
  4895. valid: valid,
  4896. expectedType: expectedType
  4897. }
  4898. }
  4899. /**
  4900. * Use function string name to check built-in types,
  4901. * because a simple equality check will fail when running
  4902. * across different vms / iframes.
  4903. */
  4904. function getType (fn) {
  4905. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  4906. return match ? match[1] : ''
  4907. }
  4908. function isSameType (a, b) {
  4909. return getType(a) === getType(b)
  4910. }
  4911. function getTypeIndex (type, expectedTypes) {
  4912. if (!Array.isArray(expectedTypes)) {
  4913. return isSameType(expectedTypes, type) ? 0 : -1
  4914. }
  4915. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  4916. if (isSameType(expectedTypes[i], type)) {
  4917. return i
  4918. }
  4919. }
  4920. return -1
  4921. }
  4922. function getInvalidTypeMessage (name, value, expectedTypes) {
  4923. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  4924. " Expected " + (expectedTypes.map(capitalize).join(', '));
  4925. var expectedType = expectedTypes[0];
  4926. var receivedType = toRawType(value);
  4927. var expectedValue = styleValue(value, expectedType);
  4928. var receivedValue = styleValue(value, receivedType);
  4929. // check if we need to specify expected value
  4930. if (expectedTypes.length === 1 &&
  4931. isExplicable(expectedType) &&
  4932. !isBoolean(expectedType, receivedType)) {
  4933. message += " with value " + expectedValue;
  4934. }
  4935. message += ", got " + receivedType + " ";
  4936. // check if we need to specify received value
  4937. if (isExplicable(receivedType)) {
  4938. message += "with value " + receivedValue + ".";
  4939. }
  4940. return message
  4941. }
  4942. function styleValue (value, type) {
  4943. if (type === 'String') {
  4944. return ("\"" + value + "\"")
  4945. } else if (type === 'Number') {
  4946. return ("" + (Number(value)))
  4947. } else {
  4948. return ("" + value)
  4949. }
  4950. }
  4951. function isExplicable (value) {
  4952. var explicitTypes = ['string', 'number', 'boolean'];
  4953. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  4954. }
  4955. function isBoolean () {
  4956. var args = [], len = arguments.length;
  4957. while ( len-- ) args[ len ] = arguments[ len ];
  4958. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  4959. }
  4960. /* */
  4961. function handleError (err, vm, info) {
  4962. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  4963. // See: https://github.com/vuejs/vuex/issues/1505
  4964. pushTarget();
  4965. try {
  4966. if (vm) {
  4967. var cur = vm;
  4968. while ((cur = cur.$parent)) {
  4969. var hooks = cur.$options.errorCaptured;
  4970. if (hooks) {
  4971. for (var i = 0; i < hooks.length; i++) {
  4972. try {
  4973. var capture = hooks[i].call(cur, err, vm, info) === false;
  4974. if (capture) { return }
  4975. } catch (e) {
  4976. globalHandleError(e, cur, 'errorCaptured hook');
  4977. }
  4978. }
  4979. }
  4980. }
  4981. }
  4982. globalHandleError(err, vm, info);
  4983. } finally {
  4984. popTarget();
  4985. }
  4986. }
  4987. function invokeWithErrorHandling (
  4988. handler,
  4989. context,
  4990. args,
  4991. vm,
  4992. info
  4993. ) {
  4994. var res;
  4995. try {
  4996. res = args ? handler.apply(context, args) : handler.call(context);
  4997. if (res && !res._isVue && isPromise(res) && !res._handled) {
  4998. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  4999. // issue #9511
  5000. // avoid catch triggering multiple times when nested calls
  5001. res._handled = true;
  5002. }
  5003. } catch (e) {
  5004. handleError(e, vm, info);
  5005. }
  5006. return res
  5007. }
  5008. function globalHandleError (err, vm, info) {
  5009. if (config.errorHandler) {
  5010. try {
  5011. return config.errorHandler.call(null, err, vm, info)
  5012. } catch (e) {
  5013. // if the user intentionally throws the original error in the handler,
  5014. // do not log it twice
  5015. if (e !== err) {
  5016. logError(e, null, 'config.errorHandler');
  5017. }
  5018. }
  5019. }
  5020. logError(err, vm, info);
  5021. }
  5022. function logError (err, vm, info) {
  5023. if (true) {
  5024. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  5025. }
  5026. /* istanbul ignore else */
  5027. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  5028. console.error(err);
  5029. } else {
  5030. throw err
  5031. }
  5032. }
  5033. /* */
  5034. var callbacks = [];
  5035. var pending = false;
  5036. function flushCallbacks () {
  5037. pending = false;
  5038. var copies = callbacks.slice(0);
  5039. callbacks.length = 0;
  5040. for (var i = 0; i < copies.length; i++) {
  5041. copies[i]();
  5042. }
  5043. }
  5044. // Here we have async deferring wrappers using microtasks.
  5045. // In 2.5 we used (macro) tasks (in combination with microtasks).
  5046. // However, it has subtle problems when state is changed right before repaint
  5047. // (e.g. #6813, out-in transitions).
  5048. // Also, using (macro) tasks in event handler would cause some weird behaviors
  5049. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  5050. // So we now use microtasks everywhere, again.
  5051. // A major drawback of this tradeoff is that there are some scenarios
  5052. // where microtasks have too high a priority and fire in between supposedly
  5053. // sequential events (e.g. #4521, #6690, which have workarounds)
  5054. // or even between bubbling of the same event (#6566).
  5055. var timerFunc;
  5056. // The nextTick behavior leverages the microtask queue, which can be accessed
  5057. // via either native Promise.then or MutationObserver.
  5058. // MutationObserver has wider support, however it is seriously bugged in
  5059. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  5060. // completely stops working after triggering a few times... so, if native
  5061. // Promise is available, we will use it:
  5062. /* istanbul ignore next, $flow-disable-line */
  5063. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  5064. var p = Promise.resolve();
  5065. timerFunc = function () {
  5066. p.then(flushCallbacks);
  5067. // In problematic UIWebViews, Promise.then doesn't completely break, but
  5068. // it can get stuck in a weird state where callbacks are pushed into the
  5069. // microtask queue but the queue isn't being flushed, until the browser
  5070. // needs to do some other work, e.g. handle a timer. Therefore we can
  5071. // "force" the microtask queue to be flushed by adding an empty timer.
  5072. if (isIOS) { setTimeout(noop); }
  5073. };
  5074. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  5075. isNative(MutationObserver) ||
  5076. // PhantomJS and iOS 7.x
  5077. MutationObserver.toString() === '[object MutationObserverConstructor]'
  5078. )) {
  5079. // Use MutationObserver where native Promise is not available,
  5080. // e.g. PhantomJS, iOS7, Android 4.4
  5081. // (#6466 MutationObserver is unreliable in IE11)
  5082. var counter = 1;
  5083. var observer = new MutationObserver(flushCallbacks);
  5084. var textNode = document.createTextNode(String(counter));
  5085. observer.observe(textNode, {
  5086. characterData: true
  5087. });
  5088. timerFunc = function () {
  5089. counter = (counter + 1) % 2;
  5090. textNode.data = String(counter);
  5091. };
  5092. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  5093. // Fallback to setImmediate.
  5094. // Technically it leverages the (macro) task queue,
  5095. // but it is still a better choice than setTimeout.
  5096. timerFunc = function () {
  5097. setImmediate(flushCallbacks);
  5098. };
  5099. } else {
  5100. // Fallback to setTimeout.
  5101. timerFunc = function () {
  5102. setTimeout(flushCallbacks, 0);
  5103. };
  5104. }
  5105. function nextTick (cb, ctx) {
  5106. var _resolve;
  5107. callbacks.push(function () {
  5108. if (cb) {
  5109. try {
  5110. cb.call(ctx);
  5111. } catch (e) {
  5112. handleError(e, ctx, 'nextTick');
  5113. }
  5114. } else if (_resolve) {
  5115. _resolve(ctx);
  5116. }
  5117. });
  5118. if (!pending) {
  5119. pending = true;
  5120. timerFunc();
  5121. }
  5122. // $flow-disable-line
  5123. if (!cb && typeof Promise !== 'undefined') {
  5124. return new Promise(function (resolve) {
  5125. _resolve = resolve;
  5126. })
  5127. }
  5128. }
  5129. /* */
  5130. /* not type checking this file because flow doesn't play well with Proxy */
  5131. var initProxy;
  5132. if (true) {
  5133. var allowedGlobals = makeMap(
  5134. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  5135. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  5136. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  5137. 'require' // for Webpack/Browserify
  5138. );
  5139. var warnNonPresent = function (target, key) {
  5140. warn(
  5141. "Property or method \"" + key + "\" is not defined on the instance but " +
  5142. 'referenced during render. Make sure that this property is reactive, ' +
  5143. 'either in the data option, or for class-based components, by ' +
  5144. 'initializing the property. ' +
  5145. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  5146. target
  5147. );
  5148. };
  5149. var warnReservedPrefix = function (target, key) {
  5150. warn(
  5151. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  5152. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  5153. 'prevent conflicts with Vue internals. ' +
  5154. 'See: https://vuejs.org/v2/api/#data',
  5155. target
  5156. );
  5157. };
  5158. var hasProxy =
  5159. typeof Proxy !== 'undefined' && isNative(Proxy);
  5160. if (hasProxy) {
  5161. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  5162. config.keyCodes = new Proxy(config.keyCodes, {
  5163. set: function set (target, key, value) {
  5164. if (isBuiltInModifier(key)) {
  5165. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  5166. return false
  5167. } else {
  5168. target[key] = value;
  5169. return true
  5170. }
  5171. }
  5172. });
  5173. }
  5174. var hasHandler = {
  5175. has: function has (target, key) {
  5176. var has = key in target;
  5177. var isAllowed = allowedGlobals(key) ||
  5178. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  5179. if (!has && !isAllowed) {
  5180. if (key in target.$data) { warnReservedPrefix(target, key); }
  5181. else { warnNonPresent(target, key); }
  5182. }
  5183. return has || !isAllowed
  5184. }
  5185. };
  5186. var getHandler = {
  5187. get: function get (target, key) {
  5188. if (typeof key === 'string' && !(key in target)) {
  5189. if (key in target.$data) { warnReservedPrefix(target, key); }
  5190. else { warnNonPresent(target, key); }
  5191. }
  5192. return target[key]
  5193. }
  5194. };
  5195. initProxy = function initProxy (vm) {
  5196. if (hasProxy) {
  5197. // determine which proxy handler to use
  5198. var options = vm.$options;
  5199. var handlers = options.render && options.render._withStripped
  5200. ? getHandler
  5201. : hasHandler;
  5202. vm._renderProxy = new Proxy(vm, handlers);
  5203. } else {
  5204. vm._renderProxy = vm;
  5205. }
  5206. };
  5207. }
  5208. /* */
  5209. var seenObjects = new _Set();
  5210. /**
  5211. * Recursively traverse an object to evoke all converted
  5212. * getters, so that every nested property inside the object
  5213. * is collected as a "deep" dependency.
  5214. */
  5215. function traverse (val) {
  5216. _traverse(val, seenObjects);
  5217. seenObjects.clear();
  5218. }
  5219. function _traverse (val, seen) {
  5220. var i, keys;
  5221. var isA = Array.isArray(val);
  5222. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  5223. return
  5224. }
  5225. if (val.__ob__) {
  5226. var depId = val.__ob__.dep.id;
  5227. if (seen.has(depId)) {
  5228. return
  5229. }
  5230. seen.add(depId);
  5231. }
  5232. if (isA) {
  5233. i = val.length;
  5234. while (i--) { _traverse(val[i], seen); }
  5235. } else {
  5236. keys = Object.keys(val);
  5237. i = keys.length;
  5238. while (i--) { _traverse(val[keys[i]], seen); }
  5239. }
  5240. }
  5241. var mark;
  5242. var measure;
  5243. if (true) {
  5244. var perf = inBrowser && window.performance;
  5245. /* istanbul ignore if */
  5246. if (
  5247. perf &&
  5248. perf.mark &&
  5249. perf.measure &&
  5250. perf.clearMarks &&
  5251. perf.clearMeasures
  5252. ) {
  5253. mark = function (tag) { return perf.mark(tag); };
  5254. measure = function (name, startTag, endTag) {
  5255. perf.measure(name, startTag, endTag);
  5256. perf.clearMarks(startTag);
  5257. perf.clearMarks(endTag);
  5258. // perf.clearMeasures(name)
  5259. };
  5260. }
  5261. }
  5262. /* */
  5263. var normalizeEvent = cached(function (name) {
  5264. var passive = name.charAt(0) === '&';
  5265. name = passive ? name.slice(1) : name;
  5266. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  5267. name = once$$1 ? name.slice(1) : name;
  5268. var capture = name.charAt(0) === '!';
  5269. name = capture ? name.slice(1) : name;
  5270. return {
  5271. name: name,
  5272. once: once$$1,
  5273. capture: capture,
  5274. passive: passive
  5275. }
  5276. });
  5277. function createFnInvoker (fns, vm) {
  5278. function invoker () {
  5279. var arguments$1 = arguments;
  5280. var fns = invoker.fns;
  5281. if (Array.isArray(fns)) {
  5282. var cloned = fns.slice();
  5283. for (var i = 0; i < cloned.length; i++) {
  5284. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  5285. }
  5286. } else {
  5287. // return handler return value for single handlers
  5288. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  5289. }
  5290. }
  5291. invoker.fns = fns;
  5292. return invoker
  5293. }
  5294. function updateListeners (
  5295. on,
  5296. oldOn,
  5297. add,
  5298. remove$$1,
  5299. createOnceHandler,
  5300. vm
  5301. ) {
  5302. var name, def$$1, cur, old, event;
  5303. for (name in on) {
  5304. def$$1 = cur = on[name];
  5305. old = oldOn[name];
  5306. event = normalizeEvent(name);
  5307. if (isUndef(cur)) {
  5308. true && warn(
  5309. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  5310. vm
  5311. );
  5312. } else if (isUndef(old)) {
  5313. if (isUndef(cur.fns)) {
  5314. cur = on[name] = createFnInvoker(cur, vm);
  5315. }
  5316. if (isTrue(event.once)) {
  5317. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  5318. }
  5319. add(event.name, cur, event.capture, event.passive, event.params);
  5320. } else if (cur !== old) {
  5321. old.fns = cur;
  5322. on[name] = old;
  5323. }
  5324. }
  5325. for (name in oldOn) {
  5326. if (isUndef(on[name])) {
  5327. event = normalizeEvent(name);
  5328. remove$$1(event.name, oldOn[name], event.capture);
  5329. }
  5330. }
  5331. }
  5332. /* */
  5333. /* */
  5334. // fixed by xxxxxx (mp properties)
  5335. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  5336. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  5337. if (isUndef(propOptions)) {
  5338. return res
  5339. }
  5340. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  5341. var attrs = data.attrs;
  5342. var props = data.props;
  5343. if (isDef(attrs) || isDef(props)) {
  5344. for (var key in propOptions) {
  5345. var altKey = hyphenate(key);
  5346. var result = checkProp(res, props, key, altKey, true) ||
  5347. checkProp(res, attrs, key, altKey, false);
  5348. // externalClass
  5349. if (
  5350. result &&
  5351. res[key] &&
  5352. externalClasses.indexOf(altKey) !== -1 &&
  5353. context[camelize(res[key])]
  5354. ) {
  5355. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  5356. res[key] = context[camelize(res[key])];
  5357. }
  5358. }
  5359. }
  5360. return res
  5361. }
  5362. function extractPropsFromVNodeData (
  5363. data,
  5364. Ctor,
  5365. tag,
  5366. context// fixed by xxxxxx
  5367. ) {
  5368. // we are only extracting raw values here.
  5369. // validation and default values are handled in the child
  5370. // component itself.
  5371. var propOptions = Ctor.options.props;
  5372. if (isUndef(propOptions)) {
  5373. // fixed by xxxxxx
  5374. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  5375. }
  5376. var res = {};
  5377. var attrs = data.attrs;
  5378. var props = data.props;
  5379. if (isDef(attrs) || isDef(props)) {
  5380. for (var key in propOptions) {
  5381. var altKey = hyphenate(key);
  5382. if (true) {
  5383. var keyInLowerCase = key.toLowerCase();
  5384. if (
  5385. key !== keyInLowerCase &&
  5386. attrs && hasOwn(attrs, keyInLowerCase)
  5387. ) {
  5388. tip(
  5389. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  5390. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  5391. " \"" + key + "\". " +
  5392. "Note that HTML attributes are case-insensitive and camelCased " +
  5393. "props need to use their kebab-case equivalents when using in-DOM " +
  5394. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  5395. );
  5396. }
  5397. }
  5398. checkProp(res, props, key, altKey, true) ||
  5399. checkProp(res, attrs, key, altKey, false);
  5400. }
  5401. }
  5402. // fixed by xxxxxx
  5403. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  5404. }
  5405. function checkProp (
  5406. res,
  5407. hash,
  5408. key,
  5409. altKey,
  5410. preserve
  5411. ) {
  5412. if (isDef(hash)) {
  5413. if (hasOwn(hash, key)) {
  5414. res[key] = hash[key];
  5415. if (!preserve) {
  5416. delete hash[key];
  5417. }
  5418. return true
  5419. } else if (hasOwn(hash, altKey)) {
  5420. res[key] = hash[altKey];
  5421. if (!preserve) {
  5422. delete hash[altKey];
  5423. }
  5424. return true
  5425. }
  5426. }
  5427. return false
  5428. }
  5429. /* */
  5430. // The template compiler attempts to minimize the need for normalization by
  5431. // statically analyzing the template at compile time.
  5432. //
  5433. // For plain HTML markup, normalization can be completely skipped because the
  5434. // generated render function is guaranteed to return Array<VNode>. There are
  5435. // two cases where extra normalization is needed:
  5436. // 1. When the children contains components - because a functional component
  5437. // may return an Array instead of a single root. In this case, just a simple
  5438. // normalization is needed - if any child is an Array, we flatten the whole
  5439. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  5440. // because functional components already normalize their own children.
  5441. function simpleNormalizeChildren (children) {
  5442. for (var i = 0; i < children.length; i++) {
  5443. if (Array.isArray(children[i])) {
  5444. return Array.prototype.concat.apply([], children)
  5445. }
  5446. }
  5447. return children
  5448. }
  5449. // 2. When the children contains constructs that always generated nested Arrays,
  5450. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  5451. // with hand-written render functions / JSX. In such cases a full normalization
  5452. // is needed to cater to all possible types of children values.
  5453. function normalizeChildren (children) {
  5454. return isPrimitive(children)
  5455. ? [createTextVNode(children)]
  5456. : Array.isArray(children)
  5457. ? normalizeArrayChildren(children)
  5458. : undefined
  5459. }
  5460. function isTextNode (node) {
  5461. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  5462. }
  5463. function normalizeArrayChildren (children, nestedIndex) {
  5464. var res = [];
  5465. var i, c, lastIndex, last;
  5466. for (i = 0; i < children.length; i++) {
  5467. c = children[i];
  5468. if (isUndef(c) || typeof c === 'boolean') { continue }
  5469. lastIndex = res.length - 1;
  5470. last = res[lastIndex];
  5471. // nested
  5472. if (Array.isArray(c)) {
  5473. if (c.length > 0) {
  5474. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  5475. // merge adjacent text nodes
  5476. if (isTextNode(c[0]) && isTextNode(last)) {
  5477. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  5478. c.shift();
  5479. }
  5480. res.push.apply(res, c);
  5481. }
  5482. } else if (isPrimitive(c)) {
  5483. if (isTextNode(last)) {
  5484. // merge adjacent text nodes
  5485. // this is necessary for SSR hydration because text nodes are
  5486. // essentially merged when rendered to HTML strings
  5487. res[lastIndex] = createTextVNode(last.text + c);
  5488. } else if (c !== '') {
  5489. // convert primitive to vnode
  5490. res.push(createTextVNode(c));
  5491. }
  5492. } else {
  5493. if (isTextNode(c) && isTextNode(last)) {
  5494. // merge adjacent text nodes
  5495. res[lastIndex] = createTextVNode(last.text + c.text);
  5496. } else {
  5497. // default key for nested array children (likely generated by v-for)
  5498. if (isTrue(children._isVList) &&
  5499. isDef(c.tag) &&
  5500. isUndef(c.key) &&
  5501. isDef(nestedIndex)) {
  5502. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  5503. }
  5504. res.push(c);
  5505. }
  5506. }
  5507. }
  5508. return res
  5509. }
  5510. /* */
  5511. function initProvide (vm) {
  5512. var provide = vm.$options.provide;
  5513. if (provide) {
  5514. vm._provided = typeof provide === 'function'
  5515. ? provide.call(vm)
  5516. : provide;
  5517. }
  5518. }
  5519. function initInjections (vm) {
  5520. var result = resolveInject(vm.$options.inject, vm);
  5521. if (result) {
  5522. toggleObserving(false);
  5523. Object.keys(result).forEach(function (key) {
  5524. /* istanbul ignore else */
  5525. if (true) {
  5526. defineReactive$$1(vm, key, result[key], function () {
  5527. warn(
  5528. "Avoid mutating an injected value directly since the changes will be " +
  5529. "overwritten whenever the provided component re-renders. " +
  5530. "injection being mutated: \"" + key + "\"",
  5531. vm
  5532. );
  5533. });
  5534. } else {}
  5535. });
  5536. toggleObserving(true);
  5537. }
  5538. }
  5539. function resolveInject (inject, vm) {
  5540. if (inject) {
  5541. // inject is :any because flow is not smart enough to figure out cached
  5542. var result = Object.create(null);
  5543. var keys = hasSymbol
  5544. ? Reflect.ownKeys(inject)
  5545. : Object.keys(inject);
  5546. for (var i = 0; i < keys.length; i++) {
  5547. var key = keys[i];
  5548. // #6574 in case the inject object is observed...
  5549. if (key === '__ob__') { continue }
  5550. var provideKey = inject[key].from;
  5551. var source = vm;
  5552. while (source) {
  5553. if (source._provided && hasOwn(source._provided, provideKey)) {
  5554. result[key] = source._provided[provideKey];
  5555. break
  5556. }
  5557. source = source.$parent;
  5558. }
  5559. if (!source) {
  5560. if ('default' in inject[key]) {
  5561. var provideDefault = inject[key].default;
  5562. result[key] = typeof provideDefault === 'function'
  5563. ? provideDefault.call(vm)
  5564. : provideDefault;
  5565. } else if (true) {
  5566. warn(("Injection \"" + key + "\" not found"), vm);
  5567. }
  5568. }
  5569. }
  5570. return result
  5571. }
  5572. }
  5573. /* */
  5574. /**
  5575. * Runtime helper for resolving raw children VNodes into a slot object.
  5576. */
  5577. function resolveSlots (
  5578. children,
  5579. context
  5580. ) {
  5581. if (!children || !children.length) {
  5582. return {}
  5583. }
  5584. var slots = {};
  5585. for (var i = 0, l = children.length; i < l; i++) {
  5586. var child = children[i];
  5587. var data = child.data;
  5588. // remove slot attribute if the node is resolved as a Vue slot node
  5589. if (data && data.attrs && data.attrs.slot) {
  5590. delete data.attrs.slot;
  5591. }
  5592. // named slots should only be respected if the vnode was rendered in the
  5593. // same context.
  5594. if ((child.context === context || child.fnContext === context) &&
  5595. data && data.slot != null
  5596. ) {
  5597. var name = data.slot;
  5598. var slot = (slots[name] || (slots[name] = []));
  5599. if (child.tag === 'template') {
  5600. slot.push.apply(slot, child.children || []);
  5601. } else {
  5602. slot.push(child);
  5603. }
  5604. } else {
  5605. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  5606. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  5607. (slots['page'] || (slots['page'] = [])).push(child);
  5608. }else{
  5609. (slots.default || (slots.default = [])).push(child);
  5610. }
  5611. }
  5612. }
  5613. // ignore slots that contains only whitespace
  5614. for (var name$1 in slots) {
  5615. if (slots[name$1].every(isWhitespace)) {
  5616. delete slots[name$1];
  5617. }
  5618. }
  5619. return slots
  5620. }
  5621. function isWhitespace (node) {
  5622. return (node.isComment && !node.asyncFactory) || node.text === ' '
  5623. }
  5624. /* */
  5625. function normalizeScopedSlots (
  5626. slots,
  5627. normalSlots,
  5628. prevSlots
  5629. ) {
  5630. var res;
  5631. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  5632. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  5633. var key = slots && slots.$key;
  5634. if (!slots) {
  5635. res = {};
  5636. } else if (slots._normalized) {
  5637. // fast path 1: child component re-render only, parent did not change
  5638. return slots._normalized
  5639. } else if (
  5640. isStable &&
  5641. prevSlots &&
  5642. prevSlots !== emptyObject &&
  5643. key === prevSlots.$key &&
  5644. !hasNormalSlots &&
  5645. !prevSlots.$hasNormal
  5646. ) {
  5647. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  5648. // only need to normalize once
  5649. return prevSlots
  5650. } else {
  5651. res = {};
  5652. for (var key$1 in slots) {
  5653. if (slots[key$1] && key$1[0] !== '$') {
  5654. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  5655. }
  5656. }
  5657. }
  5658. // expose normal slots on scopedSlots
  5659. for (var key$2 in normalSlots) {
  5660. if (!(key$2 in res)) {
  5661. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  5662. }
  5663. }
  5664. // avoriaz seems to mock a non-extensible $scopedSlots object
  5665. // and when that is passed down this would cause an error
  5666. if (slots && Object.isExtensible(slots)) {
  5667. (slots)._normalized = res;
  5668. }
  5669. def(res, '$stable', isStable);
  5670. def(res, '$key', key);
  5671. def(res, '$hasNormal', hasNormalSlots);
  5672. return res
  5673. }
  5674. function normalizeScopedSlot(normalSlots, key, fn) {
  5675. var normalized = function () {
  5676. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  5677. res = res && typeof res === 'object' && !Array.isArray(res)
  5678. ? [res] // single vnode
  5679. : normalizeChildren(res);
  5680. return res && (
  5681. res.length === 0 ||
  5682. (res.length === 1 && res[0].isComment) // #9658
  5683. ) ? undefined
  5684. : res
  5685. };
  5686. // this is a slot using the new v-slot syntax without scope. although it is
  5687. // compiled as a scoped slot, render fn users would expect it to be present
  5688. // on this.$slots because the usage is semantically a normal slot.
  5689. if (fn.proxy) {
  5690. Object.defineProperty(normalSlots, key, {
  5691. get: normalized,
  5692. enumerable: true,
  5693. configurable: true
  5694. });
  5695. }
  5696. return normalized
  5697. }
  5698. function proxyNormalSlot(slots, key) {
  5699. return function () { return slots[key]; }
  5700. }
  5701. /* */
  5702. /**
  5703. * Runtime helper for rendering v-for lists.
  5704. */
  5705. function renderList (
  5706. val,
  5707. render
  5708. ) {
  5709. var ret, i, l, keys, key;
  5710. if (Array.isArray(val) || typeof val === 'string') {
  5711. ret = new Array(val.length);
  5712. for (i = 0, l = val.length; i < l; i++) {
  5713. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  5714. }
  5715. } else if (typeof val === 'number') {
  5716. ret = new Array(val);
  5717. for (i = 0; i < val; i++) {
  5718. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  5719. }
  5720. } else if (isObject(val)) {
  5721. if (hasSymbol && val[Symbol.iterator]) {
  5722. ret = [];
  5723. var iterator = val[Symbol.iterator]();
  5724. var result = iterator.next();
  5725. while (!result.done) {
  5726. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  5727. result = iterator.next();
  5728. }
  5729. } else {
  5730. keys = Object.keys(val);
  5731. ret = new Array(keys.length);
  5732. for (i = 0, l = keys.length; i < l; i++) {
  5733. key = keys[i];
  5734. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  5735. }
  5736. }
  5737. }
  5738. if (!isDef(ret)) {
  5739. ret = [];
  5740. }
  5741. (ret)._isVList = true;
  5742. return ret
  5743. }
  5744. /* */
  5745. /**
  5746. * Runtime helper for rendering <slot>
  5747. */
  5748. function renderSlot (
  5749. name,
  5750. fallback,
  5751. props,
  5752. bindObject
  5753. ) {
  5754. var scopedSlotFn = this.$scopedSlots[name];
  5755. var nodes;
  5756. if (scopedSlotFn) { // scoped slot
  5757. props = props || {};
  5758. if (bindObject) {
  5759. if ( true && !isObject(bindObject)) {
  5760. warn(
  5761. 'slot v-bind without argument expects an Object',
  5762. this
  5763. );
  5764. }
  5765. props = extend(extend({}, bindObject), props);
  5766. }
  5767. // fixed by xxxxxx app-plus scopedSlot
  5768. nodes = scopedSlotFn(props, this, props._i) || fallback;
  5769. } else {
  5770. nodes = this.$slots[name] || fallback;
  5771. }
  5772. var target = props && props.slot;
  5773. if (target) {
  5774. return this.$createElement('template', { slot: target }, nodes)
  5775. } else {
  5776. return nodes
  5777. }
  5778. }
  5779. /* */
  5780. /**
  5781. * Runtime helper for resolving filters
  5782. */
  5783. function resolveFilter (id) {
  5784. return resolveAsset(this.$options, 'filters', id, true) || identity
  5785. }
  5786. /* */
  5787. function isKeyNotMatch (expect, actual) {
  5788. if (Array.isArray(expect)) {
  5789. return expect.indexOf(actual) === -1
  5790. } else {
  5791. return expect !== actual
  5792. }
  5793. }
  5794. /**
  5795. * Runtime helper for checking keyCodes from config.
  5796. * exposed as Vue.prototype._k
  5797. * passing in eventKeyName as last argument separately for backwards compat
  5798. */
  5799. function checkKeyCodes (
  5800. eventKeyCode,
  5801. key,
  5802. builtInKeyCode,
  5803. eventKeyName,
  5804. builtInKeyName
  5805. ) {
  5806. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  5807. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  5808. return isKeyNotMatch(builtInKeyName, eventKeyName)
  5809. } else if (mappedKeyCode) {
  5810. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  5811. } else if (eventKeyName) {
  5812. return hyphenate(eventKeyName) !== key
  5813. }
  5814. }
  5815. /* */
  5816. /**
  5817. * Runtime helper for merging v-bind="object" into a VNode's data.
  5818. */
  5819. function bindObjectProps (
  5820. data,
  5821. tag,
  5822. value,
  5823. asProp,
  5824. isSync
  5825. ) {
  5826. if (value) {
  5827. if (!isObject(value)) {
  5828. true && warn(
  5829. 'v-bind without argument expects an Object or Array value',
  5830. this
  5831. );
  5832. } else {
  5833. if (Array.isArray(value)) {
  5834. value = toObject(value);
  5835. }
  5836. var hash;
  5837. var loop = function ( key ) {
  5838. if (
  5839. key === 'class' ||
  5840. key === 'style' ||
  5841. isReservedAttribute(key)
  5842. ) {
  5843. hash = data;
  5844. } else {
  5845. var type = data.attrs && data.attrs.type;
  5846. hash = asProp || config.mustUseProp(tag, type, key)
  5847. ? data.domProps || (data.domProps = {})
  5848. : data.attrs || (data.attrs = {});
  5849. }
  5850. var camelizedKey = camelize(key);
  5851. var hyphenatedKey = hyphenate(key);
  5852. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  5853. hash[key] = value[key];
  5854. if (isSync) {
  5855. var on = data.on || (data.on = {});
  5856. on[("update:" + key)] = function ($event) {
  5857. value[key] = $event;
  5858. };
  5859. }
  5860. }
  5861. };
  5862. for (var key in value) loop( key );
  5863. }
  5864. }
  5865. return data
  5866. }
  5867. /* */
  5868. /**
  5869. * Runtime helper for rendering static trees.
  5870. */
  5871. function renderStatic (
  5872. index,
  5873. isInFor
  5874. ) {
  5875. var cached = this._staticTrees || (this._staticTrees = []);
  5876. var tree = cached[index];
  5877. // if has already-rendered static tree and not inside v-for,
  5878. // we can reuse the same tree.
  5879. if (tree && !isInFor) {
  5880. return tree
  5881. }
  5882. // otherwise, render a fresh tree.
  5883. tree = cached[index] = this.$options.staticRenderFns[index].call(
  5884. this._renderProxy,
  5885. null,
  5886. this // for render fns generated for functional component templates
  5887. );
  5888. markStatic(tree, ("__static__" + index), false);
  5889. return tree
  5890. }
  5891. /**
  5892. * Runtime helper for v-once.
  5893. * Effectively it means marking the node as static with a unique key.
  5894. */
  5895. function markOnce (
  5896. tree,
  5897. index,
  5898. key
  5899. ) {
  5900. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  5901. return tree
  5902. }
  5903. function markStatic (
  5904. tree,
  5905. key,
  5906. isOnce
  5907. ) {
  5908. if (Array.isArray(tree)) {
  5909. for (var i = 0; i < tree.length; i++) {
  5910. if (tree[i] && typeof tree[i] !== 'string') {
  5911. markStaticNode(tree[i], (key + "_" + i), isOnce);
  5912. }
  5913. }
  5914. } else {
  5915. markStaticNode(tree, key, isOnce);
  5916. }
  5917. }
  5918. function markStaticNode (node, key, isOnce) {
  5919. node.isStatic = true;
  5920. node.key = key;
  5921. node.isOnce = isOnce;
  5922. }
  5923. /* */
  5924. function bindObjectListeners (data, value) {
  5925. if (value) {
  5926. if (!isPlainObject(value)) {
  5927. true && warn(
  5928. 'v-on without argument expects an Object value',
  5929. this
  5930. );
  5931. } else {
  5932. var on = data.on = data.on ? extend({}, data.on) : {};
  5933. for (var key in value) {
  5934. var existing = on[key];
  5935. var ours = value[key];
  5936. on[key] = existing ? [].concat(existing, ours) : ours;
  5937. }
  5938. }
  5939. }
  5940. return data
  5941. }
  5942. /* */
  5943. function resolveScopedSlots (
  5944. fns, // see flow/vnode
  5945. res,
  5946. // the following are added in 2.6
  5947. hasDynamicKeys,
  5948. contentHashKey
  5949. ) {
  5950. res = res || { $stable: !hasDynamicKeys };
  5951. for (var i = 0; i < fns.length; i++) {
  5952. var slot = fns[i];
  5953. if (Array.isArray(slot)) {
  5954. resolveScopedSlots(slot, res, hasDynamicKeys);
  5955. } else if (slot) {
  5956. // marker for reverse proxying v-slot without scope on this.$slots
  5957. if (slot.proxy) {
  5958. slot.fn.proxy = true;
  5959. }
  5960. res[slot.key] = slot.fn;
  5961. }
  5962. }
  5963. if (contentHashKey) {
  5964. (res).$key = contentHashKey;
  5965. }
  5966. return res
  5967. }
  5968. /* */
  5969. function bindDynamicKeys (baseObj, values) {
  5970. for (var i = 0; i < values.length; i += 2) {
  5971. var key = values[i];
  5972. if (typeof key === 'string' && key) {
  5973. baseObj[values[i]] = values[i + 1];
  5974. } else if ( true && key !== '' && key !== null) {
  5975. // null is a special value for explicitly removing a binding
  5976. warn(
  5977. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  5978. this
  5979. );
  5980. }
  5981. }
  5982. return baseObj
  5983. }
  5984. // helper to dynamically append modifier runtime markers to event names.
  5985. // ensure only append when value is already string, otherwise it will be cast
  5986. // to string and cause the type check to miss.
  5987. function prependModifier (value, symbol) {
  5988. return typeof value === 'string' ? symbol + value : value
  5989. }
  5990. /* */
  5991. function installRenderHelpers (target) {
  5992. target._o = markOnce;
  5993. target._n = toNumber;
  5994. target._s = toString;
  5995. target._l = renderList;
  5996. target._t = renderSlot;
  5997. target._q = looseEqual;
  5998. target._i = looseIndexOf;
  5999. target._m = renderStatic;
  6000. target._f = resolveFilter;
  6001. target._k = checkKeyCodes;
  6002. target._b = bindObjectProps;
  6003. target._v = createTextVNode;
  6004. target._e = createEmptyVNode;
  6005. target._u = resolveScopedSlots;
  6006. target._g = bindObjectListeners;
  6007. target._d = bindDynamicKeys;
  6008. target._p = prependModifier;
  6009. }
  6010. /* */
  6011. function FunctionalRenderContext (
  6012. data,
  6013. props,
  6014. children,
  6015. parent,
  6016. Ctor
  6017. ) {
  6018. var this$1 = this;
  6019. var options = Ctor.options;
  6020. // ensure the createElement function in functional components
  6021. // gets a unique context - this is necessary for correct named slot check
  6022. var contextVm;
  6023. if (hasOwn(parent, '_uid')) {
  6024. contextVm = Object.create(parent);
  6025. // $flow-disable-line
  6026. contextVm._original = parent;
  6027. } else {
  6028. // the context vm passed in is a functional context as well.
  6029. // in this case we want to make sure we are able to get a hold to the
  6030. // real context instance.
  6031. contextVm = parent;
  6032. // $flow-disable-line
  6033. parent = parent._original;
  6034. }
  6035. var isCompiled = isTrue(options._compiled);
  6036. var needNormalization = !isCompiled;
  6037. this.data = data;
  6038. this.props = props;
  6039. this.children = children;
  6040. this.parent = parent;
  6041. this.listeners = data.on || emptyObject;
  6042. this.injections = resolveInject(options.inject, parent);
  6043. this.slots = function () {
  6044. if (!this$1.$slots) {
  6045. normalizeScopedSlots(
  6046. data.scopedSlots,
  6047. this$1.$slots = resolveSlots(children, parent)
  6048. );
  6049. }
  6050. return this$1.$slots
  6051. };
  6052. Object.defineProperty(this, 'scopedSlots', ({
  6053. enumerable: true,
  6054. get: function get () {
  6055. return normalizeScopedSlots(data.scopedSlots, this.slots())
  6056. }
  6057. }));
  6058. // support for compiled functional template
  6059. if (isCompiled) {
  6060. // exposing $options for renderStatic()
  6061. this.$options = options;
  6062. // pre-resolve slots for renderSlot()
  6063. this.$slots = this.slots();
  6064. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  6065. }
  6066. if (options._scopeId) {
  6067. this._c = function (a, b, c, d) {
  6068. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  6069. if (vnode && !Array.isArray(vnode)) {
  6070. vnode.fnScopeId = options._scopeId;
  6071. vnode.fnContext = parent;
  6072. }
  6073. return vnode
  6074. };
  6075. } else {
  6076. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  6077. }
  6078. }
  6079. installRenderHelpers(FunctionalRenderContext.prototype);
  6080. function createFunctionalComponent (
  6081. Ctor,
  6082. propsData,
  6083. data,
  6084. contextVm,
  6085. children
  6086. ) {
  6087. var options = Ctor.options;
  6088. var props = {};
  6089. var propOptions = options.props;
  6090. if (isDef(propOptions)) {
  6091. for (var key in propOptions) {
  6092. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  6093. }
  6094. } else {
  6095. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  6096. if (isDef(data.props)) { mergeProps(props, data.props); }
  6097. }
  6098. var renderContext = new FunctionalRenderContext(
  6099. data,
  6100. props,
  6101. children,
  6102. contextVm,
  6103. Ctor
  6104. );
  6105. var vnode = options.render.call(null, renderContext._c, renderContext);
  6106. if (vnode instanceof VNode) {
  6107. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  6108. } else if (Array.isArray(vnode)) {
  6109. var vnodes = normalizeChildren(vnode) || [];
  6110. var res = new Array(vnodes.length);
  6111. for (var i = 0; i < vnodes.length; i++) {
  6112. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  6113. }
  6114. return res
  6115. }
  6116. }
  6117. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  6118. // #7817 clone node before setting fnContext, otherwise if the node is reused
  6119. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  6120. // that should not be matched to match.
  6121. var clone = cloneVNode(vnode);
  6122. clone.fnContext = contextVm;
  6123. clone.fnOptions = options;
  6124. if (true) {
  6125. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  6126. }
  6127. if (data.slot) {
  6128. (clone.data || (clone.data = {})).slot = data.slot;
  6129. }
  6130. return clone
  6131. }
  6132. function mergeProps (to, from) {
  6133. for (var key in from) {
  6134. to[camelize(key)] = from[key];
  6135. }
  6136. }
  6137. /* */
  6138. /* */
  6139. /* */
  6140. /* */
  6141. // inline hooks to be invoked on component VNodes during patch
  6142. var componentVNodeHooks = {
  6143. init: function init (vnode, hydrating) {
  6144. if (
  6145. vnode.componentInstance &&
  6146. !vnode.componentInstance._isDestroyed &&
  6147. vnode.data.keepAlive
  6148. ) {
  6149. // kept-alive components, treat as a patch
  6150. var mountedNode = vnode; // work around flow
  6151. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  6152. } else {
  6153. var child = vnode.componentInstance = createComponentInstanceForVnode(
  6154. vnode,
  6155. activeInstance
  6156. );
  6157. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  6158. }
  6159. },
  6160. prepatch: function prepatch (oldVnode, vnode) {
  6161. var options = vnode.componentOptions;
  6162. var child = vnode.componentInstance = oldVnode.componentInstance;
  6163. updateChildComponent(
  6164. child,
  6165. options.propsData, // updated props
  6166. options.listeners, // updated listeners
  6167. vnode, // new parent vnode
  6168. options.children // new children
  6169. );
  6170. },
  6171. insert: function insert (vnode) {
  6172. var context = vnode.context;
  6173. var componentInstance = vnode.componentInstance;
  6174. if (!componentInstance._isMounted) {
  6175. callHook(componentInstance, 'onServiceCreated');
  6176. callHook(componentInstance, 'onServiceAttached');
  6177. componentInstance._isMounted = true;
  6178. callHook(componentInstance, 'mounted');
  6179. }
  6180. if (vnode.data.keepAlive) {
  6181. if (context._isMounted) {
  6182. // vue-router#1212
  6183. // During updates, a kept-alive component's child components may
  6184. // change, so directly walking the tree here may call activated hooks
  6185. // on incorrect children. Instead we push them into a queue which will
  6186. // be processed after the whole patch process ended.
  6187. queueActivatedComponent(componentInstance);
  6188. } else {
  6189. activateChildComponent(componentInstance, true /* direct */);
  6190. }
  6191. }
  6192. },
  6193. destroy: function destroy (vnode) {
  6194. var componentInstance = vnode.componentInstance;
  6195. if (!componentInstance._isDestroyed) {
  6196. if (!vnode.data.keepAlive) {
  6197. componentInstance.$destroy();
  6198. } else {
  6199. deactivateChildComponent(componentInstance, true /* direct */);
  6200. }
  6201. }
  6202. }
  6203. };
  6204. var hooksToMerge = Object.keys(componentVNodeHooks);
  6205. function createComponent (
  6206. Ctor,
  6207. data,
  6208. context,
  6209. children,
  6210. tag
  6211. ) {
  6212. if (isUndef(Ctor)) {
  6213. return
  6214. }
  6215. var baseCtor = context.$options._base;
  6216. // plain options object: turn it into a constructor
  6217. if (isObject(Ctor)) {
  6218. Ctor = baseCtor.extend(Ctor);
  6219. }
  6220. // if at this stage it's not a constructor or an async component factory,
  6221. // reject.
  6222. if (typeof Ctor !== 'function') {
  6223. if (true) {
  6224. warn(("Invalid Component definition: " + (String(Ctor))), context);
  6225. }
  6226. return
  6227. }
  6228. // async component
  6229. var asyncFactory;
  6230. if (isUndef(Ctor.cid)) {
  6231. asyncFactory = Ctor;
  6232. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  6233. if (Ctor === undefined) {
  6234. // return a placeholder node for async component, which is rendered
  6235. // as a comment node but preserves all the raw information for the node.
  6236. // the information will be used for async server-rendering and hydration.
  6237. return createAsyncPlaceholder(
  6238. asyncFactory,
  6239. data,
  6240. context,
  6241. children,
  6242. tag
  6243. )
  6244. }
  6245. }
  6246. data = data || {};
  6247. // resolve constructor options in case global mixins are applied after
  6248. // component constructor creation
  6249. resolveConstructorOptions(Ctor);
  6250. // transform component v-model data into props & events
  6251. if (isDef(data.model)) {
  6252. transformModel(Ctor.options, data);
  6253. }
  6254. // extract props
  6255. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  6256. // functional component
  6257. if (isTrue(Ctor.options.functional)) {
  6258. return createFunctionalComponent(Ctor, propsData, data, context, children)
  6259. }
  6260. // extract listeners, since these needs to be treated as
  6261. // child component listeners instead of DOM listeners
  6262. var listeners = data.on;
  6263. // replace with listeners with .native modifier
  6264. // so it gets processed during parent component patch.
  6265. data.on = data.nativeOn;
  6266. if (isTrue(Ctor.options.abstract)) {
  6267. // abstract components do not keep anything
  6268. // other than props & listeners & slot
  6269. // work around flow
  6270. var slot = data.slot;
  6271. data = {};
  6272. if (slot) {
  6273. data.slot = slot;
  6274. }
  6275. }
  6276. // install component management hooks onto the placeholder node
  6277. installComponentHooks(data);
  6278. // return a placeholder vnode
  6279. var name = Ctor.options.name || tag;
  6280. var vnode = new VNode(
  6281. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  6282. data, undefined, undefined, undefined, context,
  6283. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  6284. asyncFactory
  6285. );
  6286. return vnode
  6287. }
  6288. function createComponentInstanceForVnode (
  6289. vnode, // we know it's MountedComponentVNode but flow doesn't
  6290. parent // activeInstance in lifecycle state
  6291. ) {
  6292. var options = {
  6293. _isComponent: true,
  6294. _parentVnode: vnode,
  6295. parent: parent
  6296. };
  6297. // check inline-template render functions
  6298. var inlineTemplate = vnode.data.inlineTemplate;
  6299. if (isDef(inlineTemplate)) {
  6300. options.render = inlineTemplate.render;
  6301. options.staticRenderFns = inlineTemplate.staticRenderFns;
  6302. }
  6303. return new vnode.componentOptions.Ctor(options)
  6304. }
  6305. function installComponentHooks (data) {
  6306. var hooks = data.hook || (data.hook = {});
  6307. for (var i = 0; i < hooksToMerge.length; i++) {
  6308. var key = hooksToMerge[i];
  6309. var existing = hooks[key];
  6310. var toMerge = componentVNodeHooks[key];
  6311. if (existing !== toMerge && !(existing && existing._merged)) {
  6312. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  6313. }
  6314. }
  6315. }
  6316. function mergeHook$1 (f1, f2) {
  6317. var merged = function (a, b) {
  6318. // flow complains about extra args which is why we use any
  6319. f1(a, b);
  6320. f2(a, b);
  6321. };
  6322. merged._merged = true;
  6323. return merged
  6324. }
  6325. // transform component v-model info (value and callback) into
  6326. // prop and event handler respectively.
  6327. function transformModel (options, data) {
  6328. var prop = (options.model && options.model.prop) || 'value';
  6329. var event = (options.model && options.model.event) || 'input'
  6330. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  6331. var on = data.on || (data.on = {});
  6332. var existing = on[event];
  6333. var callback = data.model.callback;
  6334. if (isDef(existing)) {
  6335. if (
  6336. Array.isArray(existing)
  6337. ? existing.indexOf(callback) === -1
  6338. : existing !== callback
  6339. ) {
  6340. on[event] = [callback].concat(existing);
  6341. }
  6342. } else {
  6343. on[event] = callback;
  6344. }
  6345. }
  6346. /* */
  6347. var SIMPLE_NORMALIZE = 1;
  6348. var ALWAYS_NORMALIZE = 2;
  6349. // wrapper function for providing a more flexible interface
  6350. // without getting yelled at by flow
  6351. function createElement (
  6352. context,
  6353. tag,
  6354. data,
  6355. children,
  6356. normalizationType,
  6357. alwaysNormalize
  6358. ) {
  6359. if (Array.isArray(data) || isPrimitive(data)) {
  6360. normalizationType = children;
  6361. children = data;
  6362. data = undefined;
  6363. }
  6364. if (isTrue(alwaysNormalize)) {
  6365. normalizationType = ALWAYS_NORMALIZE;
  6366. }
  6367. return _createElement(context, tag, data, children, normalizationType)
  6368. }
  6369. function _createElement (
  6370. context,
  6371. tag,
  6372. data,
  6373. children,
  6374. normalizationType
  6375. ) {
  6376. if (isDef(data) && isDef((data).__ob__)) {
  6377. true && warn(
  6378. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  6379. 'Always create fresh vnode data objects in each render!',
  6380. context
  6381. );
  6382. return createEmptyVNode()
  6383. }
  6384. // object syntax in v-bind
  6385. if (isDef(data) && isDef(data.is)) {
  6386. tag = data.is;
  6387. }
  6388. if (!tag) {
  6389. // in case of component :is set to falsy value
  6390. return createEmptyVNode()
  6391. }
  6392. // warn against non-primitive key
  6393. if ( true &&
  6394. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  6395. ) {
  6396. {
  6397. warn(
  6398. 'Avoid using non-primitive value as key, ' +
  6399. 'use string/number value instead.',
  6400. context
  6401. );
  6402. }
  6403. }
  6404. // support single function children as default scoped slot
  6405. if (Array.isArray(children) &&
  6406. typeof children[0] === 'function'
  6407. ) {
  6408. data = data || {};
  6409. data.scopedSlots = { default: children[0] };
  6410. children.length = 0;
  6411. }
  6412. if (normalizationType === ALWAYS_NORMALIZE) {
  6413. children = normalizeChildren(children);
  6414. } else if (normalizationType === SIMPLE_NORMALIZE) {
  6415. children = simpleNormalizeChildren(children);
  6416. }
  6417. var vnode, ns;
  6418. if (typeof tag === 'string') {
  6419. var Ctor;
  6420. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  6421. if (config.isReservedTag(tag)) {
  6422. // platform built-in elements
  6423. if ( true && isDef(data) && isDef(data.nativeOn)) {
  6424. warn(
  6425. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  6426. context
  6427. );
  6428. }
  6429. vnode = new VNode(
  6430. config.parsePlatformTagName(tag), data, children,
  6431. undefined, undefined, context
  6432. );
  6433. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  6434. // component
  6435. vnode = createComponent(Ctor, data, context, children, tag);
  6436. } else {
  6437. // unknown or unlisted namespaced elements
  6438. // check at runtime because it may get assigned a namespace when its
  6439. // parent normalizes children
  6440. vnode = new VNode(
  6441. tag, data, children,
  6442. undefined, undefined, context
  6443. );
  6444. }
  6445. } else {
  6446. // direct component options / constructor
  6447. vnode = createComponent(tag, data, context, children);
  6448. }
  6449. if (Array.isArray(vnode)) {
  6450. return vnode
  6451. } else if (isDef(vnode)) {
  6452. if (isDef(ns)) { applyNS(vnode, ns); }
  6453. if (isDef(data)) { registerDeepBindings(data); }
  6454. return vnode
  6455. } else {
  6456. return createEmptyVNode()
  6457. }
  6458. }
  6459. function applyNS (vnode, ns, force) {
  6460. vnode.ns = ns;
  6461. if (vnode.tag === 'foreignObject') {
  6462. // use default namespace inside foreignObject
  6463. ns = undefined;
  6464. force = true;
  6465. }
  6466. if (isDef(vnode.children)) {
  6467. for (var i = 0, l = vnode.children.length; i < l; i++) {
  6468. var child = vnode.children[i];
  6469. if (isDef(child.tag) && (
  6470. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  6471. applyNS(child, ns, force);
  6472. }
  6473. }
  6474. }
  6475. }
  6476. // ref #5318
  6477. // necessary to ensure parent re-render when deep bindings like :style and
  6478. // :class are used on slot nodes
  6479. function registerDeepBindings (data) {
  6480. if (isObject(data.style)) {
  6481. traverse(data.style);
  6482. }
  6483. if (isObject(data.class)) {
  6484. traverse(data.class);
  6485. }
  6486. }
  6487. /* */
  6488. function initRender (vm) {
  6489. vm._vnode = null; // the root of the child tree
  6490. vm._staticTrees = null; // v-once cached trees
  6491. var options = vm.$options;
  6492. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  6493. var renderContext = parentVnode && parentVnode.context;
  6494. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  6495. vm.$scopedSlots = emptyObject;
  6496. // bind the createElement fn to this instance
  6497. // so that we get proper render context inside it.
  6498. // args order: tag, data, children, normalizationType, alwaysNormalize
  6499. // internal version is used by render functions compiled from templates
  6500. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  6501. // normalization is always applied for the public version, used in
  6502. // user-written render functions.
  6503. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  6504. // $attrs & $listeners are exposed for easier HOC creation.
  6505. // they need to be reactive so that HOCs using them are always updated
  6506. var parentData = parentVnode && parentVnode.data;
  6507. /* istanbul ignore else */
  6508. if (true) {
  6509. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  6510. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  6511. }, true);
  6512. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  6513. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  6514. }, true);
  6515. } else {}
  6516. }
  6517. var currentRenderingInstance = null;
  6518. function renderMixin (Vue) {
  6519. // install runtime convenience helpers
  6520. installRenderHelpers(Vue.prototype);
  6521. Vue.prototype.$nextTick = function (fn) {
  6522. return nextTick(fn, this)
  6523. };
  6524. Vue.prototype._render = function () {
  6525. var vm = this;
  6526. var ref = vm.$options;
  6527. var render = ref.render;
  6528. var _parentVnode = ref._parentVnode;
  6529. if (_parentVnode) {
  6530. vm.$scopedSlots = normalizeScopedSlots(
  6531. _parentVnode.data.scopedSlots,
  6532. vm.$slots,
  6533. vm.$scopedSlots
  6534. );
  6535. }
  6536. // set parent vnode. this allows render functions to have access
  6537. // to the data on the placeholder node.
  6538. vm.$vnode = _parentVnode;
  6539. // render self
  6540. var vnode;
  6541. try {
  6542. // There's no need to maintain a stack because all render fns are called
  6543. // separately from one another. Nested component's render fns are called
  6544. // when parent component is patched.
  6545. currentRenderingInstance = vm;
  6546. vnode = render.call(vm._renderProxy, vm.$createElement);
  6547. } catch (e) {
  6548. handleError(e, vm, "render");
  6549. // return error render result,
  6550. // or previous vnode to prevent render error causing blank component
  6551. /* istanbul ignore else */
  6552. if ( true && vm.$options.renderError) {
  6553. try {
  6554. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  6555. } catch (e) {
  6556. handleError(e, vm, "renderError");
  6557. vnode = vm._vnode;
  6558. }
  6559. } else {
  6560. vnode = vm._vnode;
  6561. }
  6562. } finally {
  6563. currentRenderingInstance = null;
  6564. }
  6565. // if the returned array contains only a single node, allow it
  6566. if (Array.isArray(vnode) && vnode.length === 1) {
  6567. vnode = vnode[0];
  6568. }
  6569. // return empty vnode in case the render function errored out
  6570. if (!(vnode instanceof VNode)) {
  6571. if ( true && Array.isArray(vnode)) {
  6572. warn(
  6573. 'Multiple root nodes returned from render function. Render function ' +
  6574. 'should return a single root node.',
  6575. vm
  6576. );
  6577. }
  6578. vnode = createEmptyVNode();
  6579. }
  6580. // set parent
  6581. vnode.parent = _parentVnode;
  6582. return vnode
  6583. };
  6584. }
  6585. /* */
  6586. function ensureCtor (comp, base) {
  6587. if (
  6588. comp.__esModule ||
  6589. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  6590. ) {
  6591. comp = comp.default;
  6592. }
  6593. return isObject(comp)
  6594. ? base.extend(comp)
  6595. : comp
  6596. }
  6597. function createAsyncPlaceholder (
  6598. factory,
  6599. data,
  6600. context,
  6601. children,
  6602. tag
  6603. ) {
  6604. var node = createEmptyVNode();
  6605. node.asyncFactory = factory;
  6606. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  6607. return node
  6608. }
  6609. function resolveAsyncComponent (
  6610. factory,
  6611. baseCtor
  6612. ) {
  6613. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  6614. return factory.errorComp
  6615. }
  6616. if (isDef(factory.resolved)) {
  6617. return factory.resolved
  6618. }
  6619. var owner = currentRenderingInstance;
  6620. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  6621. // already pending
  6622. factory.owners.push(owner);
  6623. }
  6624. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  6625. return factory.loadingComp
  6626. }
  6627. if (owner && !isDef(factory.owners)) {
  6628. var owners = factory.owners = [owner];
  6629. var sync = true;
  6630. var timerLoading = null;
  6631. var timerTimeout = null
  6632. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  6633. var forceRender = function (renderCompleted) {
  6634. for (var i = 0, l = owners.length; i < l; i++) {
  6635. (owners[i]).$forceUpdate();
  6636. }
  6637. if (renderCompleted) {
  6638. owners.length = 0;
  6639. if (timerLoading !== null) {
  6640. clearTimeout(timerLoading);
  6641. timerLoading = null;
  6642. }
  6643. if (timerTimeout !== null) {
  6644. clearTimeout(timerTimeout);
  6645. timerTimeout = null;
  6646. }
  6647. }
  6648. };
  6649. var resolve = once(function (res) {
  6650. // cache resolved
  6651. factory.resolved = ensureCtor(res, baseCtor);
  6652. // invoke callbacks only if this is not a synchronous resolve
  6653. // (async resolves are shimmed as synchronous during SSR)
  6654. if (!sync) {
  6655. forceRender(true);
  6656. } else {
  6657. owners.length = 0;
  6658. }
  6659. });
  6660. var reject = once(function (reason) {
  6661. true && warn(
  6662. "Failed to resolve async component: " + (String(factory)) +
  6663. (reason ? ("\nReason: " + reason) : '')
  6664. );
  6665. if (isDef(factory.errorComp)) {
  6666. factory.error = true;
  6667. forceRender(true);
  6668. }
  6669. });
  6670. var res = factory(resolve, reject);
  6671. if (isObject(res)) {
  6672. if (isPromise(res)) {
  6673. // () => Promise
  6674. if (isUndef(factory.resolved)) {
  6675. res.then(resolve, reject);
  6676. }
  6677. } else if (isPromise(res.component)) {
  6678. res.component.then(resolve, reject);
  6679. if (isDef(res.error)) {
  6680. factory.errorComp = ensureCtor(res.error, baseCtor);
  6681. }
  6682. if (isDef(res.loading)) {
  6683. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  6684. if (res.delay === 0) {
  6685. factory.loading = true;
  6686. } else {
  6687. timerLoading = setTimeout(function () {
  6688. timerLoading = null;
  6689. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  6690. factory.loading = true;
  6691. forceRender(false);
  6692. }
  6693. }, res.delay || 200);
  6694. }
  6695. }
  6696. if (isDef(res.timeout)) {
  6697. timerTimeout = setTimeout(function () {
  6698. timerTimeout = null;
  6699. if (isUndef(factory.resolved)) {
  6700. reject(
  6701. true
  6702. ? ("timeout (" + (res.timeout) + "ms)")
  6703. : undefined
  6704. );
  6705. }
  6706. }, res.timeout);
  6707. }
  6708. }
  6709. }
  6710. sync = false;
  6711. // return in case resolved synchronously
  6712. return factory.loading
  6713. ? factory.loadingComp
  6714. : factory.resolved
  6715. }
  6716. }
  6717. /* */
  6718. function isAsyncPlaceholder (node) {
  6719. return node.isComment && node.asyncFactory
  6720. }
  6721. /* */
  6722. function getFirstComponentChild (children) {
  6723. if (Array.isArray(children)) {
  6724. for (var i = 0; i < children.length; i++) {
  6725. var c = children[i];
  6726. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  6727. return c
  6728. }
  6729. }
  6730. }
  6731. }
  6732. /* */
  6733. /* */
  6734. function initEvents (vm) {
  6735. vm._events = Object.create(null);
  6736. vm._hasHookEvent = false;
  6737. // init parent attached events
  6738. var listeners = vm.$options._parentListeners;
  6739. if (listeners) {
  6740. updateComponentListeners(vm, listeners);
  6741. }
  6742. }
  6743. var target;
  6744. function add (event, fn) {
  6745. target.$on(event, fn);
  6746. }
  6747. function remove$1 (event, fn) {
  6748. target.$off(event, fn);
  6749. }
  6750. function createOnceHandler (event, fn) {
  6751. var _target = target;
  6752. return function onceHandler () {
  6753. var res = fn.apply(null, arguments);
  6754. if (res !== null) {
  6755. _target.$off(event, onceHandler);
  6756. }
  6757. }
  6758. }
  6759. function updateComponentListeners (
  6760. vm,
  6761. listeners,
  6762. oldListeners
  6763. ) {
  6764. target = vm;
  6765. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  6766. target = undefined;
  6767. }
  6768. function eventsMixin (Vue) {
  6769. var hookRE = /^hook:/;
  6770. Vue.prototype.$on = function (event, fn) {
  6771. var vm = this;
  6772. if (Array.isArray(event)) {
  6773. for (var i = 0, l = event.length; i < l; i++) {
  6774. vm.$on(event[i], fn);
  6775. }
  6776. } else {
  6777. (vm._events[event] || (vm._events[event] = [])).push(fn);
  6778. // optimize hook:event cost by using a boolean flag marked at registration
  6779. // instead of a hash lookup
  6780. if (hookRE.test(event)) {
  6781. vm._hasHookEvent = true;
  6782. }
  6783. }
  6784. return vm
  6785. };
  6786. Vue.prototype.$once = function (event, fn) {
  6787. var vm = this;
  6788. function on () {
  6789. vm.$off(event, on);
  6790. fn.apply(vm, arguments);
  6791. }
  6792. on.fn = fn;
  6793. vm.$on(event, on);
  6794. return vm
  6795. };
  6796. Vue.prototype.$off = function (event, fn) {
  6797. var vm = this;
  6798. // all
  6799. if (!arguments.length) {
  6800. vm._events = Object.create(null);
  6801. return vm
  6802. }
  6803. // array of events
  6804. if (Array.isArray(event)) {
  6805. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  6806. vm.$off(event[i$1], fn);
  6807. }
  6808. return vm
  6809. }
  6810. // specific event
  6811. var cbs = vm._events[event];
  6812. if (!cbs) {
  6813. return vm
  6814. }
  6815. if (!fn) {
  6816. vm._events[event] = null;
  6817. return vm
  6818. }
  6819. // specific handler
  6820. var cb;
  6821. var i = cbs.length;
  6822. while (i--) {
  6823. cb = cbs[i];
  6824. if (cb === fn || cb.fn === fn) {
  6825. cbs.splice(i, 1);
  6826. break
  6827. }
  6828. }
  6829. return vm
  6830. };
  6831. Vue.prototype.$emit = function (event) {
  6832. var vm = this;
  6833. if (true) {
  6834. var lowerCaseEvent = event.toLowerCase();
  6835. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  6836. tip(
  6837. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  6838. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  6839. "Note that HTML attributes are case-insensitive and you cannot use " +
  6840. "v-on to listen to camelCase events when using in-DOM templates. " +
  6841. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  6842. );
  6843. }
  6844. }
  6845. var cbs = vm._events[event];
  6846. if (cbs) {
  6847. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  6848. var args = toArray(arguments, 1);
  6849. var info = "event handler for \"" + event + "\"";
  6850. for (var i = 0, l = cbs.length; i < l; i++) {
  6851. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  6852. }
  6853. }
  6854. return vm
  6855. };
  6856. }
  6857. /* */
  6858. var activeInstance = null;
  6859. var isUpdatingChildComponent = false;
  6860. function setActiveInstance(vm) {
  6861. var prevActiveInstance = activeInstance;
  6862. activeInstance = vm;
  6863. return function () {
  6864. activeInstance = prevActiveInstance;
  6865. }
  6866. }
  6867. function initLifecycle (vm) {
  6868. var options = vm.$options;
  6869. // locate first non-abstract parent
  6870. var parent = options.parent;
  6871. if (parent && !options.abstract) {
  6872. while (parent.$options.abstract && parent.$parent) {
  6873. parent = parent.$parent;
  6874. }
  6875. parent.$children.push(vm);
  6876. }
  6877. vm.$parent = parent;
  6878. vm.$root = parent ? parent.$root : vm;
  6879. vm.$children = [];
  6880. vm.$refs = {};
  6881. vm._watcher = null;
  6882. vm._inactive = null;
  6883. vm._directInactive = false;
  6884. vm._isMounted = false;
  6885. vm._isDestroyed = false;
  6886. vm._isBeingDestroyed = false;
  6887. }
  6888. function lifecycleMixin (Vue) {
  6889. Vue.prototype._update = function (vnode, hydrating) {
  6890. var vm = this;
  6891. var prevEl = vm.$el;
  6892. var prevVnode = vm._vnode;
  6893. var restoreActiveInstance = setActiveInstance(vm);
  6894. vm._vnode = vnode;
  6895. // Vue.prototype.__patch__ is injected in entry points
  6896. // based on the rendering backend used.
  6897. if (!prevVnode) {
  6898. // initial render
  6899. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  6900. } else {
  6901. // updates
  6902. vm.$el = vm.__patch__(prevVnode, vnode);
  6903. }
  6904. restoreActiveInstance();
  6905. // update __vue__ reference
  6906. if (prevEl) {
  6907. prevEl.__vue__ = null;
  6908. }
  6909. if (vm.$el) {
  6910. vm.$el.__vue__ = vm;
  6911. }
  6912. // if parent is an HOC, update its $el as well
  6913. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  6914. vm.$parent.$el = vm.$el;
  6915. }
  6916. // updated hook is called by the scheduler to ensure that children are
  6917. // updated in a parent's updated hook.
  6918. };
  6919. Vue.prototype.$forceUpdate = function () {
  6920. var vm = this;
  6921. if (vm._watcher) {
  6922. vm._watcher.update();
  6923. }
  6924. };
  6925. Vue.prototype.$destroy = function () {
  6926. var vm = this;
  6927. if (vm._isBeingDestroyed) {
  6928. return
  6929. }
  6930. callHook(vm, 'beforeDestroy');
  6931. vm._isBeingDestroyed = true;
  6932. // remove self from parent
  6933. var parent = vm.$parent;
  6934. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  6935. remove(parent.$children, vm);
  6936. }
  6937. // teardown watchers
  6938. if (vm._watcher) {
  6939. vm._watcher.teardown();
  6940. }
  6941. var i = vm._watchers.length;
  6942. while (i--) {
  6943. vm._watchers[i].teardown();
  6944. }
  6945. // remove reference from data ob
  6946. // frozen object may not have observer.
  6947. if (vm._data.__ob__) {
  6948. vm._data.__ob__.vmCount--;
  6949. }
  6950. // call the last hook...
  6951. vm._isDestroyed = true;
  6952. // invoke destroy hooks on current rendered tree
  6953. vm.__patch__(vm._vnode, null);
  6954. // fire destroyed hook
  6955. callHook(vm, 'destroyed');
  6956. // turn off all instance listeners.
  6957. vm.$off();
  6958. // remove __vue__ reference
  6959. if (vm.$el) {
  6960. vm.$el.__vue__ = null;
  6961. }
  6962. // release circular reference (#6759)
  6963. if (vm.$vnode) {
  6964. vm.$vnode.parent = null;
  6965. }
  6966. };
  6967. }
  6968. function updateChildComponent (
  6969. vm,
  6970. propsData,
  6971. listeners,
  6972. parentVnode,
  6973. renderChildren
  6974. ) {
  6975. if (true) {
  6976. isUpdatingChildComponent = true;
  6977. }
  6978. // determine whether component has slot children
  6979. // we need to do this before overwriting $options._renderChildren.
  6980. // check if there are dynamic scopedSlots (hand-written or compiled but with
  6981. // dynamic slot names). Static scoped slots compiled from template has the
  6982. // "$stable" marker.
  6983. var newScopedSlots = parentVnode.data.scopedSlots;
  6984. var oldScopedSlots = vm.$scopedSlots;
  6985. var hasDynamicScopedSlot = !!(
  6986. (newScopedSlots && !newScopedSlots.$stable) ||
  6987. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  6988. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  6989. );
  6990. // Any static slot children from the parent may have changed during parent's
  6991. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  6992. // update is necessary to ensure correctness.
  6993. var needsForceUpdate = !!(
  6994. renderChildren || // has new static slots
  6995. vm.$options._renderChildren || // has old static slots
  6996. hasDynamicScopedSlot
  6997. );
  6998. vm.$options._parentVnode = parentVnode;
  6999. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  7000. if (vm._vnode) { // update child tree's parent
  7001. vm._vnode.parent = parentVnode;
  7002. }
  7003. vm.$options._renderChildren = renderChildren;
  7004. // update $attrs and $listeners hash
  7005. // these are also reactive so they may trigger child update if the child
  7006. // used them during render
  7007. vm.$attrs = parentVnode.data.attrs || emptyObject;
  7008. vm.$listeners = listeners || emptyObject;
  7009. // update props
  7010. if (propsData && vm.$options.props) {
  7011. toggleObserving(false);
  7012. var props = vm._props;
  7013. var propKeys = vm.$options._propKeys || [];
  7014. for (var i = 0; i < propKeys.length; i++) {
  7015. var key = propKeys[i];
  7016. var propOptions = vm.$options.props; // wtf flow?
  7017. props[key] = validateProp(key, propOptions, propsData, vm);
  7018. }
  7019. toggleObserving(true);
  7020. // keep a copy of raw propsData
  7021. vm.$options.propsData = propsData;
  7022. }
  7023. // fixed by xxxxxx update properties(mp runtime)
  7024. vm._$updateProperties && vm._$updateProperties(vm);
  7025. // update listeners
  7026. listeners = listeners || emptyObject;
  7027. var oldListeners = vm.$options._parentListeners;
  7028. vm.$options._parentListeners = listeners;
  7029. updateComponentListeners(vm, listeners, oldListeners);
  7030. // resolve slots + force update if has children
  7031. if (needsForceUpdate) {
  7032. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  7033. vm.$forceUpdate();
  7034. }
  7035. if (true) {
  7036. isUpdatingChildComponent = false;
  7037. }
  7038. }
  7039. function isInInactiveTree (vm) {
  7040. while (vm && (vm = vm.$parent)) {
  7041. if (vm._inactive) { return true }
  7042. }
  7043. return false
  7044. }
  7045. function activateChildComponent (vm, direct) {
  7046. if (direct) {
  7047. vm._directInactive = false;
  7048. if (isInInactiveTree(vm)) {
  7049. return
  7050. }
  7051. } else if (vm._directInactive) {
  7052. return
  7053. }
  7054. if (vm._inactive || vm._inactive === null) {
  7055. vm._inactive = false;
  7056. for (var i = 0; i < vm.$children.length; i++) {
  7057. activateChildComponent(vm.$children[i]);
  7058. }
  7059. callHook(vm, 'activated');
  7060. }
  7061. }
  7062. function deactivateChildComponent (vm, direct) {
  7063. if (direct) {
  7064. vm._directInactive = true;
  7065. if (isInInactiveTree(vm)) {
  7066. return
  7067. }
  7068. }
  7069. if (!vm._inactive) {
  7070. vm._inactive = true;
  7071. for (var i = 0; i < vm.$children.length; i++) {
  7072. deactivateChildComponent(vm.$children[i]);
  7073. }
  7074. callHook(vm, 'deactivated');
  7075. }
  7076. }
  7077. function callHook (vm, hook) {
  7078. // #7573 disable dep collection when invoking lifecycle hooks
  7079. pushTarget();
  7080. var handlers = vm.$options[hook];
  7081. var info = hook + " hook";
  7082. if (handlers) {
  7083. for (var i = 0, j = handlers.length; i < j; i++) {
  7084. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  7085. }
  7086. }
  7087. if (vm._hasHookEvent) {
  7088. vm.$emit('hook:' + hook);
  7089. }
  7090. popTarget();
  7091. }
  7092. /* */
  7093. var MAX_UPDATE_COUNT = 100;
  7094. var queue = [];
  7095. var activatedChildren = [];
  7096. var has = {};
  7097. var circular = {};
  7098. var waiting = false;
  7099. var flushing = false;
  7100. var index = 0;
  7101. /**
  7102. * Reset the scheduler's state.
  7103. */
  7104. function resetSchedulerState () {
  7105. index = queue.length = activatedChildren.length = 0;
  7106. has = {};
  7107. if (true) {
  7108. circular = {};
  7109. }
  7110. waiting = flushing = false;
  7111. }
  7112. // Async edge case #6566 requires saving the timestamp when event listeners are
  7113. // attached. However, calling performance.now() has a perf overhead especially
  7114. // if the page has thousands of event listeners. Instead, we take a timestamp
  7115. // every time the scheduler flushes and use that for all event listeners
  7116. // attached during that flush.
  7117. var currentFlushTimestamp = 0;
  7118. // Async edge case fix requires storing an event listener's attach timestamp.
  7119. var getNow = Date.now;
  7120. // Determine what event timestamp the browser is using. Annoyingly, the
  7121. // timestamp can either be hi-res (relative to page load) or low-res
  7122. // (relative to UNIX epoch), so in order to compare time we have to use the
  7123. // same timestamp type when saving the flush timestamp.
  7124. // All IE versions use low-res event timestamps, and have problematic clock
  7125. // implementations (#9632)
  7126. if (inBrowser && !isIE) {
  7127. var performance = window.performance;
  7128. if (
  7129. performance &&
  7130. typeof performance.now === 'function' &&
  7131. getNow() > document.createEvent('Event').timeStamp
  7132. ) {
  7133. // if the event timestamp, although evaluated AFTER the Date.now(), is
  7134. // smaller than it, it means the event is using a hi-res timestamp,
  7135. // and we need to use the hi-res version for event listener timestamps as
  7136. // well.
  7137. getNow = function () { return performance.now(); };
  7138. }
  7139. }
  7140. /**
  7141. * Flush both queues and run the watchers.
  7142. */
  7143. function flushSchedulerQueue () {
  7144. currentFlushTimestamp = getNow();
  7145. flushing = true;
  7146. var watcher, id;
  7147. // Sort queue before flush.
  7148. // This ensures that:
  7149. // 1. Components are updated from parent to child. (because parent is always
  7150. // created before the child)
  7151. // 2. A component's user watchers are run before its render watcher (because
  7152. // user watchers are created before the render watcher)
  7153. // 3. If a component is destroyed during a parent component's watcher run,
  7154. // its watchers can be skipped.
  7155. queue.sort(function (a, b) { return a.id - b.id; });
  7156. // do not cache length because more watchers might be pushed
  7157. // as we run existing watchers
  7158. for (index = 0; index < queue.length; index++) {
  7159. watcher = queue[index];
  7160. if (watcher.before) {
  7161. watcher.before();
  7162. }
  7163. id = watcher.id;
  7164. has[id] = null;
  7165. watcher.run();
  7166. // in dev build, check and stop circular updates.
  7167. if ( true && has[id] != null) {
  7168. circular[id] = (circular[id] || 0) + 1;
  7169. if (circular[id] > MAX_UPDATE_COUNT) {
  7170. warn(
  7171. 'You may have an infinite update loop ' + (
  7172. watcher.user
  7173. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  7174. : "in a component render function."
  7175. ),
  7176. watcher.vm
  7177. );
  7178. break
  7179. }
  7180. }
  7181. }
  7182. // keep copies of post queues before resetting state
  7183. var activatedQueue = activatedChildren.slice();
  7184. var updatedQueue = queue.slice();
  7185. resetSchedulerState();
  7186. // call component updated and activated hooks
  7187. callActivatedHooks(activatedQueue);
  7188. callUpdatedHooks(updatedQueue);
  7189. // devtool hook
  7190. /* istanbul ignore if */
  7191. if (devtools && config.devtools) {
  7192. devtools.emit('flush');
  7193. }
  7194. }
  7195. function callUpdatedHooks (queue) {
  7196. var i = queue.length;
  7197. while (i--) {
  7198. var watcher = queue[i];
  7199. var vm = watcher.vm;
  7200. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  7201. callHook(vm, 'updated');
  7202. }
  7203. }
  7204. }
  7205. /**
  7206. * Queue a kept-alive component that was activated during patch.
  7207. * The queue will be processed after the entire tree has been patched.
  7208. */
  7209. function queueActivatedComponent (vm) {
  7210. // setting _inactive to false here so that a render function can
  7211. // rely on checking whether it's in an inactive tree (e.g. router-view)
  7212. vm._inactive = false;
  7213. activatedChildren.push(vm);
  7214. }
  7215. function callActivatedHooks (queue) {
  7216. for (var i = 0; i < queue.length; i++) {
  7217. queue[i]._inactive = true;
  7218. activateChildComponent(queue[i], true /* true */);
  7219. }
  7220. }
  7221. /**
  7222. * Push a watcher into the watcher queue.
  7223. * Jobs with duplicate IDs will be skipped unless it's
  7224. * pushed when the queue is being flushed.
  7225. */
  7226. function queueWatcher (watcher) {
  7227. var id = watcher.id;
  7228. if (has[id] == null) {
  7229. has[id] = true;
  7230. if (!flushing) {
  7231. queue.push(watcher);
  7232. } else {
  7233. // if already flushing, splice the watcher based on its id
  7234. // if already past its id, it will be run next immediately.
  7235. var i = queue.length - 1;
  7236. while (i > index && queue[i].id > watcher.id) {
  7237. i--;
  7238. }
  7239. queue.splice(i + 1, 0, watcher);
  7240. }
  7241. // queue the flush
  7242. if (!waiting) {
  7243. waiting = true;
  7244. if ( true && !config.async) {
  7245. flushSchedulerQueue();
  7246. return
  7247. }
  7248. nextTick(flushSchedulerQueue);
  7249. }
  7250. }
  7251. }
  7252. /* */
  7253. var uid$2 = 0;
  7254. /**
  7255. * A watcher parses an expression, collects dependencies,
  7256. * and fires callback when the expression value changes.
  7257. * This is used for both the $watch() api and directives.
  7258. */
  7259. var Watcher = function Watcher (
  7260. vm,
  7261. expOrFn,
  7262. cb,
  7263. options,
  7264. isRenderWatcher
  7265. ) {
  7266. this.vm = vm;
  7267. if (isRenderWatcher) {
  7268. vm._watcher = this;
  7269. }
  7270. vm._watchers.push(this);
  7271. // options
  7272. if (options) {
  7273. this.deep = !!options.deep;
  7274. this.user = !!options.user;
  7275. this.lazy = !!options.lazy;
  7276. this.sync = !!options.sync;
  7277. this.before = options.before;
  7278. } else {
  7279. this.deep = this.user = this.lazy = this.sync = false;
  7280. }
  7281. this.cb = cb;
  7282. this.id = ++uid$2; // uid for batching
  7283. this.active = true;
  7284. this.dirty = this.lazy; // for lazy watchers
  7285. this.deps = [];
  7286. this.newDeps = [];
  7287. this.depIds = new _Set();
  7288. this.newDepIds = new _Set();
  7289. this.expression = true
  7290. ? expOrFn.toString()
  7291. : undefined;
  7292. // parse expression for getter
  7293. if (typeof expOrFn === 'function') {
  7294. this.getter = expOrFn;
  7295. } else {
  7296. this.getter = parsePath(expOrFn);
  7297. if (!this.getter) {
  7298. this.getter = noop;
  7299. true && warn(
  7300. "Failed watching path: \"" + expOrFn + "\" " +
  7301. 'Watcher only accepts simple dot-delimited paths. ' +
  7302. 'For full control, use a function instead.',
  7303. vm
  7304. );
  7305. }
  7306. }
  7307. this.value = this.lazy
  7308. ? undefined
  7309. : this.get();
  7310. };
  7311. /**
  7312. * Evaluate the getter, and re-collect dependencies.
  7313. */
  7314. Watcher.prototype.get = function get () {
  7315. pushTarget(this);
  7316. var value;
  7317. var vm = this.vm;
  7318. try {
  7319. value = this.getter.call(vm, vm);
  7320. } catch (e) {
  7321. if (this.user) {
  7322. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  7323. } else {
  7324. throw e
  7325. }
  7326. } finally {
  7327. // "touch" every property so they are all tracked as
  7328. // dependencies for deep watching
  7329. if (this.deep) {
  7330. traverse(value);
  7331. }
  7332. popTarget();
  7333. this.cleanupDeps();
  7334. }
  7335. return value
  7336. };
  7337. /**
  7338. * Add a dependency to this directive.
  7339. */
  7340. Watcher.prototype.addDep = function addDep (dep) {
  7341. var id = dep.id;
  7342. if (!this.newDepIds.has(id)) {
  7343. this.newDepIds.add(id);
  7344. this.newDeps.push(dep);
  7345. if (!this.depIds.has(id)) {
  7346. dep.addSub(this);
  7347. }
  7348. }
  7349. };
  7350. /**
  7351. * Clean up for dependency collection.
  7352. */
  7353. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  7354. var i = this.deps.length;
  7355. while (i--) {
  7356. var dep = this.deps[i];
  7357. if (!this.newDepIds.has(dep.id)) {
  7358. dep.removeSub(this);
  7359. }
  7360. }
  7361. var tmp = this.depIds;
  7362. this.depIds = this.newDepIds;
  7363. this.newDepIds = tmp;
  7364. this.newDepIds.clear();
  7365. tmp = this.deps;
  7366. this.deps = this.newDeps;
  7367. this.newDeps = tmp;
  7368. this.newDeps.length = 0;
  7369. };
  7370. /**
  7371. * Subscriber interface.
  7372. * Will be called when a dependency changes.
  7373. */
  7374. Watcher.prototype.update = function update () {
  7375. /* istanbul ignore else */
  7376. if (this.lazy) {
  7377. this.dirty = true;
  7378. } else if (this.sync) {
  7379. this.run();
  7380. } else {
  7381. queueWatcher(this);
  7382. }
  7383. };
  7384. /**
  7385. * Scheduler job interface.
  7386. * Will be called by the scheduler.
  7387. */
  7388. Watcher.prototype.run = function run () {
  7389. if (this.active) {
  7390. var value = this.get();
  7391. if (
  7392. value !== this.value ||
  7393. // Deep watchers and watchers on Object/Arrays should fire even
  7394. // when the value is the same, because the value may
  7395. // have mutated.
  7396. isObject(value) ||
  7397. this.deep
  7398. ) {
  7399. // set new value
  7400. var oldValue = this.value;
  7401. this.value = value;
  7402. if (this.user) {
  7403. try {
  7404. this.cb.call(this.vm, value, oldValue);
  7405. } catch (e) {
  7406. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  7407. }
  7408. } else {
  7409. this.cb.call(this.vm, value, oldValue);
  7410. }
  7411. }
  7412. }
  7413. };
  7414. /**
  7415. * Evaluate the value of the watcher.
  7416. * This only gets called for lazy watchers.
  7417. */
  7418. Watcher.prototype.evaluate = function evaluate () {
  7419. this.value = this.get();
  7420. this.dirty = false;
  7421. };
  7422. /**
  7423. * Depend on all deps collected by this watcher.
  7424. */
  7425. Watcher.prototype.depend = function depend () {
  7426. var i = this.deps.length;
  7427. while (i--) {
  7428. this.deps[i].depend();
  7429. }
  7430. };
  7431. /**
  7432. * Remove self from all dependencies' subscriber list.
  7433. */
  7434. Watcher.prototype.teardown = function teardown () {
  7435. if (this.active) {
  7436. // remove self from vm's watcher list
  7437. // this is a somewhat expensive operation so we skip it
  7438. // if the vm is being destroyed.
  7439. if (!this.vm._isBeingDestroyed) {
  7440. remove(this.vm._watchers, this);
  7441. }
  7442. var i = this.deps.length;
  7443. while (i--) {
  7444. this.deps[i].removeSub(this);
  7445. }
  7446. this.active = false;
  7447. }
  7448. };
  7449. /* */
  7450. var sharedPropertyDefinition = {
  7451. enumerable: true,
  7452. configurable: true,
  7453. get: noop,
  7454. set: noop
  7455. };
  7456. function proxy (target, sourceKey, key) {
  7457. sharedPropertyDefinition.get = function proxyGetter () {
  7458. return this[sourceKey][key]
  7459. };
  7460. sharedPropertyDefinition.set = function proxySetter (val) {
  7461. this[sourceKey][key] = val;
  7462. };
  7463. Object.defineProperty(target, key, sharedPropertyDefinition);
  7464. }
  7465. function initState (vm) {
  7466. vm._watchers = [];
  7467. var opts = vm.$options;
  7468. if (opts.props) { initProps(vm, opts.props); }
  7469. if (opts.methods) { initMethods(vm, opts.methods); }
  7470. if (opts.data) {
  7471. initData(vm);
  7472. } else {
  7473. observe(vm._data = {}, true /* asRootData */);
  7474. }
  7475. if (opts.computed) { initComputed(vm, opts.computed); }
  7476. if (opts.watch && opts.watch !== nativeWatch) {
  7477. initWatch(vm, opts.watch);
  7478. }
  7479. }
  7480. function initProps (vm, propsOptions) {
  7481. var propsData = vm.$options.propsData || {};
  7482. var props = vm._props = {};
  7483. // cache prop keys so that future props updates can iterate using Array
  7484. // instead of dynamic object key enumeration.
  7485. var keys = vm.$options._propKeys = [];
  7486. var isRoot = !vm.$parent;
  7487. // root instance props should be converted
  7488. if (!isRoot) {
  7489. toggleObserving(false);
  7490. }
  7491. var loop = function ( key ) {
  7492. keys.push(key);
  7493. var value = validateProp(key, propsOptions, propsData, vm);
  7494. /* istanbul ignore else */
  7495. if (true) {
  7496. var hyphenatedKey = hyphenate(key);
  7497. if (isReservedAttribute(hyphenatedKey) ||
  7498. config.isReservedAttr(hyphenatedKey)) {
  7499. warn(
  7500. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  7501. vm
  7502. );
  7503. }
  7504. defineReactive$$1(props, key, value, function () {
  7505. if (!isRoot && !isUpdatingChildComponent) {
  7506. {
  7507. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  7508. return
  7509. }
  7510. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  7511. if(
  7512. key === 'value' &&
  7513. Array.isArray(vm.$options.behaviors) &&
  7514. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  7515. ){
  7516. return
  7517. }
  7518. if(vm._getFormData){
  7519. return
  7520. }
  7521. var $parent = vm.$parent;
  7522. while($parent){
  7523. if($parent.__next_tick_pending){
  7524. return
  7525. }
  7526. $parent = $parent.$parent;
  7527. }
  7528. }
  7529. warn(
  7530. "Avoid mutating a prop directly since the value will be " +
  7531. "overwritten whenever the parent component re-renders. " +
  7532. "Instead, use a data or computed property based on the prop's " +
  7533. "value. Prop being mutated: \"" + key + "\"",
  7534. vm
  7535. );
  7536. }
  7537. });
  7538. } else {}
  7539. // static props are already proxied on the component's prototype
  7540. // during Vue.extend(). We only need to proxy props defined at
  7541. // instantiation here.
  7542. if (!(key in vm)) {
  7543. proxy(vm, "_props", key);
  7544. }
  7545. };
  7546. for (var key in propsOptions) loop( key );
  7547. toggleObserving(true);
  7548. }
  7549. function initData (vm) {
  7550. var data = vm.$options.data;
  7551. data = vm._data = typeof data === 'function'
  7552. ? getData(data, vm)
  7553. : data || {};
  7554. if (!isPlainObject(data)) {
  7555. data = {};
  7556. true && warn(
  7557. 'data functions should return an object:\n' +
  7558. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  7559. vm
  7560. );
  7561. }
  7562. // proxy data on instance
  7563. var keys = Object.keys(data);
  7564. var props = vm.$options.props;
  7565. var methods = vm.$options.methods;
  7566. var i = keys.length;
  7567. while (i--) {
  7568. var key = keys[i];
  7569. if (true) {
  7570. if (methods && hasOwn(methods, key)) {
  7571. warn(
  7572. ("Method \"" + key + "\" has already been defined as a data property."),
  7573. vm
  7574. );
  7575. }
  7576. }
  7577. if (props && hasOwn(props, key)) {
  7578. true && warn(
  7579. "The data property \"" + key + "\" is already declared as a prop. " +
  7580. "Use prop default value instead.",
  7581. vm
  7582. );
  7583. } else if (!isReserved(key)) {
  7584. proxy(vm, "_data", key);
  7585. }
  7586. }
  7587. // observe data
  7588. observe(data, true /* asRootData */);
  7589. }
  7590. function getData (data, vm) {
  7591. // #7573 disable dep collection when invoking data getters
  7592. pushTarget();
  7593. try {
  7594. return data.call(vm, vm)
  7595. } catch (e) {
  7596. handleError(e, vm, "data()");
  7597. return {}
  7598. } finally {
  7599. popTarget();
  7600. }
  7601. }
  7602. var computedWatcherOptions = { lazy: true };
  7603. function initComputed (vm, computed) {
  7604. // $flow-disable-line
  7605. var watchers = vm._computedWatchers = Object.create(null);
  7606. // computed properties are just getters during SSR
  7607. var isSSR = isServerRendering();
  7608. for (var key in computed) {
  7609. var userDef = computed[key];
  7610. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  7611. if ( true && getter == null) {
  7612. warn(
  7613. ("Getter is missing for computed property \"" + key + "\"."),
  7614. vm
  7615. );
  7616. }
  7617. if (!isSSR) {
  7618. // create internal watcher for the computed property.
  7619. watchers[key] = new Watcher(
  7620. vm,
  7621. getter || noop,
  7622. noop,
  7623. computedWatcherOptions
  7624. );
  7625. }
  7626. // component-defined computed properties are already defined on the
  7627. // component prototype. We only need to define computed properties defined
  7628. // at instantiation here.
  7629. if (!(key in vm)) {
  7630. defineComputed(vm, key, userDef);
  7631. } else if (true) {
  7632. if (key in vm.$data) {
  7633. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  7634. } else if (vm.$options.props && key in vm.$options.props) {
  7635. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  7636. }
  7637. }
  7638. }
  7639. }
  7640. function defineComputed (
  7641. target,
  7642. key,
  7643. userDef
  7644. ) {
  7645. var shouldCache = !isServerRendering();
  7646. if (typeof userDef === 'function') {
  7647. sharedPropertyDefinition.get = shouldCache
  7648. ? createComputedGetter(key)
  7649. : createGetterInvoker(userDef);
  7650. sharedPropertyDefinition.set = noop;
  7651. } else {
  7652. sharedPropertyDefinition.get = userDef.get
  7653. ? shouldCache && userDef.cache !== false
  7654. ? createComputedGetter(key)
  7655. : createGetterInvoker(userDef.get)
  7656. : noop;
  7657. sharedPropertyDefinition.set = userDef.set || noop;
  7658. }
  7659. if ( true &&
  7660. sharedPropertyDefinition.set === noop) {
  7661. sharedPropertyDefinition.set = function () {
  7662. warn(
  7663. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  7664. this
  7665. );
  7666. };
  7667. }
  7668. Object.defineProperty(target, key, sharedPropertyDefinition);
  7669. }
  7670. function createComputedGetter (key) {
  7671. return function computedGetter () {
  7672. var watcher = this._computedWatchers && this._computedWatchers[key];
  7673. if (watcher) {
  7674. if (watcher.dirty) {
  7675. watcher.evaluate();
  7676. }
  7677. if (Dep.SharedObject.target) {// fixed by xxxxxx
  7678. watcher.depend();
  7679. }
  7680. return watcher.value
  7681. }
  7682. }
  7683. }
  7684. function createGetterInvoker(fn) {
  7685. return function computedGetter () {
  7686. return fn.call(this, this)
  7687. }
  7688. }
  7689. function initMethods (vm, methods) {
  7690. var props = vm.$options.props;
  7691. for (var key in methods) {
  7692. if (true) {
  7693. if (typeof methods[key] !== 'function') {
  7694. warn(
  7695. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  7696. "Did you reference the function correctly?",
  7697. vm
  7698. );
  7699. }
  7700. if (props && hasOwn(props, key)) {
  7701. warn(
  7702. ("Method \"" + key + "\" has already been defined as a prop."),
  7703. vm
  7704. );
  7705. }
  7706. if ((key in vm) && isReserved(key)) {
  7707. warn(
  7708. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  7709. "Avoid defining component methods that start with _ or $."
  7710. );
  7711. }
  7712. }
  7713. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  7714. }
  7715. }
  7716. function initWatch (vm, watch) {
  7717. for (var key in watch) {
  7718. var handler = watch[key];
  7719. if (Array.isArray(handler)) {
  7720. for (var i = 0; i < handler.length; i++) {
  7721. createWatcher(vm, key, handler[i]);
  7722. }
  7723. } else {
  7724. createWatcher(vm, key, handler);
  7725. }
  7726. }
  7727. }
  7728. function createWatcher (
  7729. vm,
  7730. expOrFn,
  7731. handler,
  7732. options
  7733. ) {
  7734. if (isPlainObject(handler)) {
  7735. options = handler;
  7736. handler = handler.handler;
  7737. }
  7738. if (typeof handler === 'string') {
  7739. handler = vm[handler];
  7740. }
  7741. return vm.$watch(expOrFn, handler, options)
  7742. }
  7743. function stateMixin (Vue) {
  7744. // flow somehow has problems with directly declared definition object
  7745. // when using Object.defineProperty, so we have to procedurally build up
  7746. // the object here.
  7747. var dataDef = {};
  7748. dataDef.get = function () { return this._data };
  7749. var propsDef = {};
  7750. propsDef.get = function () { return this._props };
  7751. if (true) {
  7752. dataDef.set = function () {
  7753. warn(
  7754. 'Avoid replacing instance root $data. ' +
  7755. 'Use nested data properties instead.',
  7756. this
  7757. );
  7758. };
  7759. propsDef.set = function () {
  7760. warn("$props is readonly.", this);
  7761. };
  7762. }
  7763. Object.defineProperty(Vue.prototype, '$data', dataDef);
  7764. Object.defineProperty(Vue.prototype, '$props', propsDef);
  7765. Vue.prototype.$set = set;
  7766. Vue.prototype.$delete = del;
  7767. Vue.prototype.$watch = function (
  7768. expOrFn,
  7769. cb,
  7770. options
  7771. ) {
  7772. var vm = this;
  7773. if (isPlainObject(cb)) {
  7774. return createWatcher(vm, expOrFn, cb, options)
  7775. }
  7776. options = options || {};
  7777. options.user = true;
  7778. var watcher = new Watcher(vm, expOrFn, cb, options);
  7779. if (options.immediate) {
  7780. try {
  7781. cb.call(vm, watcher.value);
  7782. } catch (error) {
  7783. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  7784. }
  7785. }
  7786. return function unwatchFn () {
  7787. watcher.teardown();
  7788. }
  7789. };
  7790. }
  7791. /* */
  7792. var uid$3 = 0;
  7793. function initMixin (Vue) {
  7794. Vue.prototype._init = function (options) {
  7795. var vm = this;
  7796. // a uid
  7797. vm._uid = uid$3++;
  7798. var startTag, endTag;
  7799. /* istanbul ignore if */
  7800. if ( true && config.performance && mark) {
  7801. startTag = "vue-perf-start:" + (vm._uid);
  7802. endTag = "vue-perf-end:" + (vm._uid);
  7803. mark(startTag);
  7804. }
  7805. // a flag to avoid this being observed
  7806. vm._isVue = true;
  7807. // merge options
  7808. if (options && options._isComponent) {
  7809. // optimize internal component instantiation
  7810. // since dynamic options merging is pretty slow, and none of the
  7811. // internal component options needs special treatment.
  7812. initInternalComponent(vm, options);
  7813. } else {
  7814. vm.$options = mergeOptions(
  7815. resolveConstructorOptions(vm.constructor),
  7816. options || {},
  7817. vm
  7818. );
  7819. }
  7820. /* istanbul ignore else */
  7821. if (true) {
  7822. initProxy(vm);
  7823. } else {}
  7824. // expose real self
  7825. vm._self = vm;
  7826. initLifecycle(vm);
  7827. initEvents(vm);
  7828. initRender(vm);
  7829. callHook(vm, 'beforeCreate');
  7830. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  7831. initState(vm);
  7832. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  7833. !vm._$fallback && callHook(vm, 'created');
  7834. /* istanbul ignore if */
  7835. if ( true && config.performance && mark) {
  7836. vm._name = formatComponentName(vm, false);
  7837. mark(endTag);
  7838. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  7839. }
  7840. if (vm.$options.el) {
  7841. vm.$mount(vm.$options.el);
  7842. }
  7843. };
  7844. }
  7845. function initInternalComponent (vm, options) {
  7846. var opts = vm.$options = Object.create(vm.constructor.options);
  7847. // doing this because it's faster than dynamic enumeration.
  7848. var parentVnode = options._parentVnode;
  7849. opts.parent = options.parent;
  7850. opts._parentVnode = parentVnode;
  7851. var vnodeComponentOptions = parentVnode.componentOptions;
  7852. opts.propsData = vnodeComponentOptions.propsData;
  7853. opts._parentListeners = vnodeComponentOptions.listeners;
  7854. opts._renderChildren = vnodeComponentOptions.children;
  7855. opts._componentTag = vnodeComponentOptions.tag;
  7856. if (options.render) {
  7857. opts.render = options.render;
  7858. opts.staticRenderFns = options.staticRenderFns;
  7859. }
  7860. }
  7861. function resolveConstructorOptions (Ctor) {
  7862. var options = Ctor.options;
  7863. if (Ctor.super) {
  7864. var superOptions = resolveConstructorOptions(Ctor.super);
  7865. var cachedSuperOptions = Ctor.superOptions;
  7866. if (superOptions !== cachedSuperOptions) {
  7867. // super option changed,
  7868. // need to resolve new options.
  7869. Ctor.superOptions = superOptions;
  7870. // check if there are any late-modified/attached options (#4976)
  7871. var modifiedOptions = resolveModifiedOptions(Ctor);
  7872. // update base extend options
  7873. if (modifiedOptions) {
  7874. extend(Ctor.extendOptions, modifiedOptions);
  7875. }
  7876. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  7877. if (options.name) {
  7878. options.components[options.name] = Ctor;
  7879. }
  7880. }
  7881. }
  7882. return options
  7883. }
  7884. function resolveModifiedOptions (Ctor) {
  7885. var modified;
  7886. var latest = Ctor.options;
  7887. var sealed = Ctor.sealedOptions;
  7888. for (var key in latest) {
  7889. if (latest[key] !== sealed[key]) {
  7890. if (!modified) { modified = {}; }
  7891. modified[key] = latest[key];
  7892. }
  7893. }
  7894. return modified
  7895. }
  7896. function Vue (options) {
  7897. if ( true &&
  7898. !(this instanceof Vue)
  7899. ) {
  7900. warn('Vue is a constructor and should be called with the `new` keyword');
  7901. }
  7902. this._init(options);
  7903. }
  7904. initMixin(Vue);
  7905. stateMixin(Vue);
  7906. eventsMixin(Vue);
  7907. lifecycleMixin(Vue);
  7908. renderMixin(Vue);
  7909. /* */
  7910. function initUse (Vue) {
  7911. Vue.use = function (plugin) {
  7912. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  7913. if (installedPlugins.indexOf(plugin) > -1) {
  7914. return this
  7915. }
  7916. // additional parameters
  7917. var args = toArray(arguments, 1);
  7918. args.unshift(this);
  7919. if (typeof plugin.install === 'function') {
  7920. plugin.install.apply(plugin, args);
  7921. } else if (typeof plugin === 'function') {
  7922. plugin.apply(null, args);
  7923. }
  7924. installedPlugins.push(plugin);
  7925. return this
  7926. };
  7927. }
  7928. /* */
  7929. function initMixin$1 (Vue) {
  7930. Vue.mixin = function (mixin) {
  7931. this.options = mergeOptions(this.options, mixin);
  7932. return this
  7933. };
  7934. }
  7935. /* */
  7936. function initExtend (Vue) {
  7937. /**
  7938. * Each instance constructor, including Vue, has a unique
  7939. * cid. This enables us to create wrapped "child
  7940. * constructors" for prototypal inheritance and cache them.
  7941. */
  7942. Vue.cid = 0;
  7943. var cid = 1;
  7944. /**
  7945. * Class inheritance
  7946. */
  7947. Vue.extend = function (extendOptions) {
  7948. extendOptions = extendOptions || {};
  7949. var Super = this;
  7950. var SuperId = Super.cid;
  7951. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  7952. if (cachedCtors[SuperId]) {
  7953. return cachedCtors[SuperId]
  7954. }
  7955. var name = extendOptions.name || Super.options.name;
  7956. if ( true && name) {
  7957. validateComponentName(name);
  7958. }
  7959. var Sub = function VueComponent (options) {
  7960. this._init(options);
  7961. };
  7962. Sub.prototype = Object.create(Super.prototype);
  7963. Sub.prototype.constructor = Sub;
  7964. Sub.cid = cid++;
  7965. Sub.options = mergeOptions(
  7966. Super.options,
  7967. extendOptions
  7968. );
  7969. Sub['super'] = Super;
  7970. // For props and computed properties, we define the proxy getters on
  7971. // the Vue instances at extension time, on the extended prototype. This
  7972. // avoids Object.defineProperty calls for each instance created.
  7973. if (Sub.options.props) {
  7974. initProps$1(Sub);
  7975. }
  7976. if (Sub.options.computed) {
  7977. initComputed$1(Sub);
  7978. }
  7979. // allow further extension/mixin/plugin usage
  7980. Sub.extend = Super.extend;
  7981. Sub.mixin = Super.mixin;
  7982. Sub.use = Super.use;
  7983. // create asset registers, so extended classes
  7984. // can have their private assets too.
  7985. ASSET_TYPES.forEach(function (type) {
  7986. Sub[type] = Super[type];
  7987. });
  7988. // enable recursive self-lookup
  7989. if (name) {
  7990. Sub.options.components[name] = Sub;
  7991. }
  7992. // keep a reference to the super options at extension time.
  7993. // later at instantiation we can check if Super's options have
  7994. // been updated.
  7995. Sub.superOptions = Super.options;
  7996. Sub.extendOptions = extendOptions;
  7997. Sub.sealedOptions = extend({}, Sub.options);
  7998. // cache constructor
  7999. cachedCtors[SuperId] = Sub;
  8000. return Sub
  8001. };
  8002. }
  8003. function initProps$1 (Comp) {
  8004. var props = Comp.options.props;
  8005. for (var key in props) {
  8006. proxy(Comp.prototype, "_props", key);
  8007. }
  8008. }
  8009. function initComputed$1 (Comp) {
  8010. var computed = Comp.options.computed;
  8011. for (var key in computed) {
  8012. defineComputed(Comp.prototype, key, computed[key]);
  8013. }
  8014. }
  8015. /* */
  8016. function initAssetRegisters (Vue) {
  8017. /**
  8018. * Create asset registration methods.
  8019. */
  8020. ASSET_TYPES.forEach(function (type) {
  8021. Vue[type] = function (
  8022. id,
  8023. definition
  8024. ) {
  8025. if (!definition) {
  8026. return this.options[type + 's'][id]
  8027. } else {
  8028. /* istanbul ignore if */
  8029. if ( true && type === 'component') {
  8030. validateComponentName(id);
  8031. }
  8032. if (type === 'component' && isPlainObject(definition)) {
  8033. definition.name = definition.name || id;
  8034. definition = this.options._base.extend(definition);
  8035. }
  8036. if (type === 'directive' && typeof definition === 'function') {
  8037. definition = { bind: definition, update: definition };
  8038. }
  8039. this.options[type + 's'][id] = definition;
  8040. return definition
  8041. }
  8042. };
  8043. });
  8044. }
  8045. /* */
  8046. function getComponentName (opts) {
  8047. return opts && (opts.Ctor.options.name || opts.tag)
  8048. }
  8049. function matches (pattern, name) {
  8050. if (Array.isArray(pattern)) {
  8051. return pattern.indexOf(name) > -1
  8052. } else if (typeof pattern === 'string') {
  8053. return pattern.split(',').indexOf(name) > -1
  8054. } else if (isRegExp(pattern)) {
  8055. return pattern.test(name)
  8056. }
  8057. /* istanbul ignore next */
  8058. return false
  8059. }
  8060. function pruneCache (keepAliveInstance, filter) {
  8061. var cache = keepAliveInstance.cache;
  8062. var keys = keepAliveInstance.keys;
  8063. var _vnode = keepAliveInstance._vnode;
  8064. for (var key in cache) {
  8065. var cachedNode = cache[key];
  8066. if (cachedNode) {
  8067. var name = getComponentName(cachedNode.componentOptions);
  8068. if (name && !filter(name)) {
  8069. pruneCacheEntry(cache, key, keys, _vnode);
  8070. }
  8071. }
  8072. }
  8073. }
  8074. function pruneCacheEntry (
  8075. cache,
  8076. key,
  8077. keys,
  8078. current
  8079. ) {
  8080. var cached$$1 = cache[key];
  8081. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  8082. cached$$1.componentInstance.$destroy();
  8083. }
  8084. cache[key] = null;
  8085. remove(keys, key);
  8086. }
  8087. var patternTypes = [String, RegExp, Array];
  8088. var KeepAlive = {
  8089. name: 'keep-alive',
  8090. abstract: true,
  8091. props: {
  8092. include: patternTypes,
  8093. exclude: patternTypes,
  8094. max: [String, Number]
  8095. },
  8096. created: function created () {
  8097. this.cache = Object.create(null);
  8098. this.keys = [];
  8099. },
  8100. destroyed: function destroyed () {
  8101. for (var key in this.cache) {
  8102. pruneCacheEntry(this.cache, key, this.keys);
  8103. }
  8104. },
  8105. mounted: function mounted () {
  8106. var this$1 = this;
  8107. this.$watch('include', function (val) {
  8108. pruneCache(this$1, function (name) { return matches(val, name); });
  8109. });
  8110. this.$watch('exclude', function (val) {
  8111. pruneCache(this$1, function (name) { return !matches(val, name); });
  8112. });
  8113. },
  8114. render: function render () {
  8115. var slot = this.$slots.default;
  8116. var vnode = getFirstComponentChild(slot);
  8117. var componentOptions = vnode && vnode.componentOptions;
  8118. if (componentOptions) {
  8119. // check pattern
  8120. var name = getComponentName(componentOptions);
  8121. var ref = this;
  8122. var include = ref.include;
  8123. var exclude = ref.exclude;
  8124. if (
  8125. // not included
  8126. (include && (!name || !matches(include, name))) ||
  8127. // excluded
  8128. (exclude && name && matches(exclude, name))
  8129. ) {
  8130. return vnode
  8131. }
  8132. var ref$1 = this;
  8133. var cache = ref$1.cache;
  8134. var keys = ref$1.keys;
  8135. var key = vnode.key == null
  8136. // same constructor may get registered as different local components
  8137. // so cid alone is not enough (#3269)
  8138. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  8139. : vnode.key;
  8140. if (cache[key]) {
  8141. vnode.componentInstance = cache[key].componentInstance;
  8142. // make current key freshest
  8143. remove(keys, key);
  8144. keys.push(key);
  8145. } else {
  8146. cache[key] = vnode;
  8147. keys.push(key);
  8148. // prune oldest entry
  8149. if (this.max && keys.length > parseInt(this.max)) {
  8150. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  8151. }
  8152. }
  8153. vnode.data.keepAlive = true;
  8154. }
  8155. return vnode || (slot && slot[0])
  8156. }
  8157. };
  8158. var builtInComponents = {
  8159. KeepAlive: KeepAlive
  8160. };
  8161. /* */
  8162. function initGlobalAPI (Vue) {
  8163. // config
  8164. var configDef = {};
  8165. configDef.get = function () { return config; };
  8166. if (true) {
  8167. configDef.set = function () {
  8168. warn(
  8169. 'Do not replace the Vue.config object, set individual fields instead.'
  8170. );
  8171. };
  8172. }
  8173. Object.defineProperty(Vue, 'config', configDef);
  8174. // exposed util methods.
  8175. // NOTE: these are not considered part of the public API - avoid relying on
  8176. // them unless you are aware of the risk.
  8177. Vue.util = {
  8178. warn: warn,
  8179. extend: extend,
  8180. mergeOptions: mergeOptions,
  8181. defineReactive: defineReactive$$1
  8182. };
  8183. Vue.set = set;
  8184. Vue.delete = del;
  8185. Vue.nextTick = nextTick;
  8186. // 2.6 explicit observable API
  8187. Vue.observable = function (obj) {
  8188. observe(obj);
  8189. return obj
  8190. };
  8191. Vue.options = Object.create(null);
  8192. ASSET_TYPES.forEach(function (type) {
  8193. Vue.options[type + 's'] = Object.create(null);
  8194. });
  8195. // this is used to identify the "base" constructor to extend all plain-object
  8196. // components with in Weex's multi-instance scenarios.
  8197. Vue.options._base = Vue;
  8198. extend(Vue.options.components, builtInComponents);
  8199. initUse(Vue);
  8200. initMixin$1(Vue);
  8201. initExtend(Vue);
  8202. initAssetRegisters(Vue);
  8203. }
  8204. initGlobalAPI(Vue);
  8205. Object.defineProperty(Vue.prototype, '$isServer', {
  8206. get: isServerRendering
  8207. });
  8208. Object.defineProperty(Vue.prototype, '$ssrContext', {
  8209. get: function get () {
  8210. /* istanbul ignore next */
  8211. return this.$vnode && this.$vnode.ssrContext
  8212. }
  8213. });
  8214. // expose FunctionalRenderContext for ssr runtime helper installation
  8215. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  8216. value: FunctionalRenderContext
  8217. });
  8218. Vue.version = '2.6.11';
  8219. /**
  8220. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  8221. */
  8222. var ARRAYTYPE = '[object Array]';
  8223. var OBJECTTYPE = '[object Object]';
  8224. var NULLTYPE = '[object Null]';
  8225. var UNDEFINEDTYPE = '[object Undefined]';
  8226. // const FUNCTIONTYPE = '[object Function]'
  8227. function diff(current, pre) {
  8228. var result = {};
  8229. syncKeys(current, pre);
  8230. _diff(current, pre, '', result);
  8231. return result
  8232. }
  8233. function syncKeys(current, pre) {
  8234. if (current === pre) { return }
  8235. var rootCurrentType = type(current);
  8236. var rootPreType = type(pre);
  8237. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  8238. if(Object.keys(current).length >= Object.keys(pre).length){
  8239. for (var key in pre) {
  8240. var currentValue = current[key];
  8241. if (currentValue === undefined) {
  8242. current[key] = null;
  8243. } else {
  8244. syncKeys(currentValue, pre[key]);
  8245. }
  8246. }
  8247. }
  8248. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  8249. if (current.length >= pre.length) {
  8250. pre.forEach(function (item, index) {
  8251. syncKeys(current[index], item);
  8252. });
  8253. }
  8254. }
  8255. }
  8256. function nullOrUndefined(currentType, preType) {
  8257. if(
  8258. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  8259. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  8260. ) {
  8261. return false
  8262. }
  8263. return true
  8264. }
  8265. function _diff(current, pre, path, result) {
  8266. if (current === pre) { return }
  8267. var rootCurrentType = type(current);
  8268. var rootPreType = type(pre);
  8269. if (rootCurrentType == OBJECTTYPE) {
  8270. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  8271. setResult(result, path, current);
  8272. } else {
  8273. var loop = function ( key ) {
  8274. var currentValue = current[key];
  8275. var preValue = pre[key];
  8276. var currentType = type(currentValue);
  8277. var preType = type(preValue);
  8278. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  8279. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  8280. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8281. }
  8282. } else if (currentType == ARRAYTYPE) {
  8283. if (preType != ARRAYTYPE) {
  8284. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8285. } else {
  8286. if (currentValue.length < preValue.length) {
  8287. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8288. } else {
  8289. currentValue.forEach(function (item, index) {
  8290. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  8291. });
  8292. }
  8293. }
  8294. } else if (currentType == OBJECTTYPE) {
  8295. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  8296. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8297. } else {
  8298. for (var subKey in currentValue) {
  8299. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  8300. }
  8301. }
  8302. }
  8303. };
  8304. for (var key in current) loop( key );
  8305. }
  8306. } else if (rootCurrentType == ARRAYTYPE) {
  8307. if (rootPreType != ARRAYTYPE) {
  8308. setResult(result, path, current);
  8309. } else {
  8310. if (current.length < pre.length) {
  8311. setResult(result, path, current);
  8312. } else {
  8313. current.forEach(function (item, index) {
  8314. _diff(item, pre[index], path + '[' + index + ']', result);
  8315. });
  8316. }
  8317. }
  8318. } else {
  8319. setResult(result, path, current);
  8320. }
  8321. }
  8322. function setResult(result, k, v) {
  8323. // if (type(v) != FUNCTIONTYPE) {
  8324. result[k] = v;
  8325. // }
  8326. }
  8327. function type(obj) {
  8328. return Object.prototype.toString.call(obj)
  8329. }
  8330. /* */
  8331. function flushCallbacks$1(vm) {
  8332. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  8333. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"shoppingTemplate","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8334. var mpInstance = vm.$scope;
  8335. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8336. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  8337. }
  8338. var copies = vm.__next_tick_callbacks.slice(0);
  8339. vm.__next_tick_callbacks.length = 0;
  8340. for (var i = 0; i < copies.length; i++) {
  8341. copies[i]();
  8342. }
  8343. }
  8344. }
  8345. function hasRenderWatcher(vm) {
  8346. return queue.find(function (watcher) { return vm._watcher === watcher; })
  8347. }
  8348. function nextTick$1(vm, cb) {
  8349. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  8350. //2.nextTick 之前存在 render watcher
  8351. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  8352. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"shoppingTemplate","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8353. var mpInstance = vm.$scope;
  8354. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8355. ']:nextVueTick');
  8356. }
  8357. return nextTick(cb, vm)
  8358. }else{
  8359. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"shoppingTemplate","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8360. var mpInstance$1 = vm.$scope;
  8361. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  8362. ']:nextMPTick');
  8363. }
  8364. }
  8365. var _resolve;
  8366. if (!vm.__next_tick_callbacks) {
  8367. vm.__next_tick_callbacks = [];
  8368. }
  8369. vm.__next_tick_callbacks.push(function () {
  8370. if (cb) {
  8371. try {
  8372. cb.call(vm);
  8373. } catch (e) {
  8374. handleError(e, vm, 'nextTick');
  8375. }
  8376. } else if (_resolve) {
  8377. _resolve(vm);
  8378. }
  8379. });
  8380. // $flow-disable-line
  8381. if (!cb && typeof Promise !== 'undefined') {
  8382. return new Promise(function (resolve) {
  8383. _resolve = resolve;
  8384. })
  8385. }
  8386. }
  8387. /* */
  8388. function clearInstance(key, value) {
  8389. // 简易去除 Vue 和小程序组件实例
  8390. if (value) {
  8391. if (value._isVue || value.__v_isMPComponent) {
  8392. return {}
  8393. }
  8394. }
  8395. return value
  8396. }
  8397. function cloneWithData(vm) {
  8398. // 确保当前 vm 所有数据被同步
  8399. var ret = Object.create(null);
  8400. var dataKeys = [].concat(
  8401. Object.keys(vm._data || {}),
  8402. Object.keys(vm._computedWatchers || {}));
  8403. dataKeys.reduce(function(ret, key) {
  8404. ret[key] = vm[key];
  8405. return ret
  8406. }, ret);
  8407. // vue-composition-api
  8408. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  8409. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  8410. if (rawBindings) {
  8411. Object.keys(rawBindings).forEach(function (key) {
  8412. ret[key] = vm[key];
  8413. });
  8414. }
  8415. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  8416. Object.assign(ret, vm.$mp.data || {});
  8417. if (
  8418. Array.isArray(vm.$options.behaviors) &&
  8419. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  8420. ) { //form-field
  8421. ret['name'] = vm.name;
  8422. ret['value'] = vm.value;
  8423. }
  8424. return JSON.parse(JSON.stringify(ret, clearInstance))
  8425. }
  8426. var patch = function(oldVnode, vnode) {
  8427. var this$1 = this;
  8428. if (vnode === null) { //destroy
  8429. return
  8430. }
  8431. if (this.mpType === 'page' || this.mpType === 'component') {
  8432. var mpInstance = this.$scope;
  8433. var data = Object.create(null);
  8434. try {
  8435. data = cloneWithData(this);
  8436. } catch (err) {
  8437. console.error(err);
  8438. }
  8439. data.__webviewId__ = mpInstance.data.__webviewId__;
  8440. var mpData = Object.create(null);
  8441. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  8442. mpData[key] = mpInstance.data[key];
  8443. });
  8444. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  8445. if (Object.keys(diffData).length) {
  8446. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"shoppingTemplate","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8447. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  8448. ']差量更新',
  8449. JSON.stringify(diffData));
  8450. }
  8451. this.__next_tick_pending = true;
  8452. mpInstance.setData(diffData, function () {
  8453. this$1.__next_tick_pending = false;
  8454. flushCallbacks$1(this$1);
  8455. });
  8456. } else {
  8457. flushCallbacks$1(this);
  8458. }
  8459. }
  8460. };
  8461. /* */
  8462. function createEmptyRender() {
  8463. }
  8464. function mountComponent$1(
  8465. vm,
  8466. el,
  8467. hydrating
  8468. ) {
  8469. if (!vm.mpType) {//main.js 中的 new Vue
  8470. return vm
  8471. }
  8472. if (vm.mpType === 'app') {
  8473. vm.$options.render = createEmptyRender;
  8474. }
  8475. if (!vm.$options.render) {
  8476. vm.$options.render = createEmptyRender;
  8477. if (true) {
  8478. /* istanbul ignore if */
  8479. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  8480. vm.$options.el || el) {
  8481. warn(
  8482. 'You are using the runtime-only build of Vue where the template ' +
  8483. 'compiler is not available. Either pre-compile the templates into ' +
  8484. 'render functions, or use the compiler-included build.',
  8485. vm
  8486. );
  8487. } else {
  8488. warn(
  8489. 'Failed to mount component: template or render function not defined.',
  8490. vm
  8491. );
  8492. }
  8493. }
  8494. }
  8495. !vm._$fallback && callHook(vm, 'beforeMount');
  8496. var updateComponent = function () {
  8497. vm._update(vm._render(), hydrating);
  8498. };
  8499. // we set this to vm._watcher inside the watcher's constructor
  8500. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  8501. // component's mounted hook), which relies on vm._watcher being already defined
  8502. new Watcher(vm, updateComponent, noop, {
  8503. before: function before() {
  8504. if (vm._isMounted && !vm._isDestroyed) {
  8505. callHook(vm, 'beforeUpdate');
  8506. }
  8507. }
  8508. }, true /* isRenderWatcher */);
  8509. hydrating = false;
  8510. return vm
  8511. }
  8512. /* */
  8513. function renderClass (
  8514. staticClass,
  8515. dynamicClass
  8516. ) {
  8517. if (isDef(staticClass) || isDef(dynamicClass)) {
  8518. return concat(staticClass, stringifyClass(dynamicClass))
  8519. }
  8520. /* istanbul ignore next */
  8521. return ''
  8522. }
  8523. function concat (a, b) {
  8524. return a ? b ? (a + ' ' + b) : a : (b || '')
  8525. }
  8526. function stringifyClass (value) {
  8527. if (Array.isArray(value)) {
  8528. return stringifyArray(value)
  8529. }
  8530. if (isObject(value)) {
  8531. return stringifyObject(value)
  8532. }
  8533. if (typeof value === 'string') {
  8534. return value
  8535. }
  8536. /* istanbul ignore next */
  8537. return ''
  8538. }
  8539. function stringifyArray (value) {
  8540. var res = '';
  8541. var stringified;
  8542. for (var i = 0, l = value.length; i < l; i++) {
  8543. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  8544. if (res) { res += ' '; }
  8545. res += stringified;
  8546. }
  8547. }
  8548. return res
  8549. }
  8550. function stringifyObject (value) {
  8551. var res = '';
  8552. for (var key in value) {
  8553. if (value[key]) {
  8554. if (res) { res += ' '; }
  8555. res += key;
  8556. }
  8557. }
  8558. return res
  8559. }
  8560. /* */
  8561. var parseStyleText = cached(function (cssText) {
  8562. var res = {};
  8563. var listDelimiter = /;(?![^(]*\))/g;
  8564. var propertyDelimiter = /:(.+)/;
  8565. cssText.split(listDelimiter).forEach(function (item) {
  8566. if (item) {
  8567. var tmp = item.split(propertyDelimiter);
  8568. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  8569. }
  8570. });
  8571. return res
  8572. });
  8573. // normalize possible array / string values into Object
  8574. function normalizeStyleBinding (bindingStyle) {
  8575. if (Array.isArray(bindingStyle)) {
  8576. return toObject(bindingStyle)
  8577. }
  8578. if (typeof bindingStyle === 'string') {
  8579. return parseStyleText(bindingStyle)
  8580. }
  8581. return bindingStyle
  8582. }
  8583. /* */
  8584. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  8585. function getTarget(obj, path) {
  8586. var parts = path.split('.');
  8587. var key = parts[0];
  8588. if (key.indexOf('__$n') === 0) { //number index
  8589. key = parseInt(key.replace('__$n', ''));
  8590. }
  8591. if (parts.length === 1) {
  8592. return obj[key]
  8593. }
  8594. return getTarget(obj[key], parts.slice(1).join('.'))
  8595. }
  8596. function internalMixin(Vue) {
  8597. Vue.config.errorHandler = function(err, vm, info) {
  8598. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  8599. console.error(err);
  8600. /* eslint-disable no-undef */
  8601. var app = typeof getApp === 'function' && getApp();
  8602. if (app && app.onError) {
  8603. app.onError(err);
  8604. }
  8605. };
  8606. var oldEmit = Vue.prototype.$emit;
  8607. Vue.prototype.$emit = function(event) {
  8608. if (this.$scope && event) {
  8609. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  8610. if (triggerEvent) {
  8611. try {
  8612. triggerEvent.call(this.$scope, event, {
  8613. __args__: toArray(arguments, 1)
  8614. });
  8615. } catch (error) {
  8616. }
  8617. }
  8618. }
  8619. return oldEmit.apply(this, arguments)
  8620. };
  8621. Vue.prototype.$nextTick = function(fn) {
  8622. return nextTick$1(this, fn)
  8623. };
  8624. MP_METHODS.forEach(function (method) {
  8625. Vue.prototype[method] = function(args) {
  8626. if (this.$scope && this.$scope[method]) {
  8627. return this.$scope[method](args)
  8628. }
  8629. // mp-alipay
  8630. if (typeof my === 'undefined') {
  8631. return
  8632. }
  8633. if (method === 'createSelectorQuery') {
  8634. /* eslint-disable no-undef */
  8635. return my.createSelectorQuery(args)
  8636. } else if (method === 'createIntersectionObserver') {
  8637. /* eslint-disable no-undef */
  8638. return my.createIntersectionObserver(args)
  8639. }
  8640. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  8641. };
  8642. });
  8643. Vue.prototype.__init_provide = initProvide;
  8644. Vue.prototype.__init_injections = initInjections;
  8645. Vue.prototype.__call_hook = function(hook, args) {
  8646. var vm = this;
  8647. // #7573 disable dep collection when invoking lifecycle hooks
  8648. pushTarget();
  8649. var handlers = vm.$options[hook];
  8650. var info = hook + " hook";
  8651. var ret;
  8652. if (handlers) {
  8653. for (var i = 0, j = handlers.length; i < j; i++) {
  8654. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  8655. }
  8656. }
  8657. if (vm._hasHookEvent) {
  8658. vm.$emit('hook:' + hook, args);
  8659. }
  8660. popTarget();
  8661. return ret
  8662. };
  8663. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  8664. if (Array.isArray(modifiers)) {
  8665. if (modifiers.indexOf('trim') !== -1) {
  8666. value = value.trim();
  8667. }
  8668. if (modifiers.indexOf('number') !== -1) {
  8669. value = this._n(value);
  8670. }
  8671. }
  8672. if (!target) {
  8673. target = this;
  8674. }
  8675. // 解决动态属性添加
  8676. Vue.set(target, key, value);
  8677. };
  8678. Vue.prototype.__set_sync = function(target, key, value) {
  8679. if (!target) {
  8680. target = this;
  8681. }
  8682. // 解决动态属性添加
  8683. Vue.set(target, key, value);
  8684. };
  8685. Vue.prototype.__get_orig = function(item) {
  8686. if (isPlainObject(item)) {
  8687. return item['$orig'] || item
  8688. }
  8689. return item
  8690. };
  8691. Vue.prototype.__get_value = function(dataPath, target) {
  8692. return getTarget(target || this, dataPath)
  8693. };
  8694. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  8695. return renderClass(staticClass, dynamicClass)
  8696. };
  8697. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  8698. if (!dynamicStyle && !staticStyle) {
  8699. return ''
  8700. }
  8701. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  8702. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  8703. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  8704. };
  8705. Vue.prototype.__map = function(val, iteratee) {
  8706. //TODO 暂不考虑 string
  8707. var ret, i, l, keys, key;
  8708. if (Array.isArray(val)) {
  8709. ret = new Array(val.length);
  8710. for (i = 0, l = val.length; i < l; i++) {
  8711. ret[i] = iteratee(val[i], i);
  8712. }
  8713. return ret
  8714. } else if (isObject(val)) {
  8715. keys = Object.keys(val);
  8716. ret = Object.create(null);
  8717. for (i = 0, l = keys.length; i < l; i++) {
  8718. key = keys[i];
  8719. ret[key] = iteratee(val[key], key, i);
  8720. }
  8721. return ret
  8722. } else if (typeof val === 'number') {
  8723. ret = new Array(val);
  8724. for (i = 0, l = val; i < l; i++) {
  8725. // 第一个参数暂时仍和小程序一致
  8726. ret[i] = iteratee(i, i);
  8727. }
  8728. return ret
  8729. }
  8730. return []
  8731. };
  8732. }
  8733. /* */
  8734. var LIFECYCLE_HOOKS$1 = [
  8735. //App
  8736. 'onLaunch',
  8737. 'onShow',
  8738. 'onHide',
  8739. 'onUniNViewMessage',
  8740. 'onPageNotFound',
  8741. 'onThemeChange',
  8742. 'onError',
  8743. 'onUnhandledRejection',
  8744. //Page
  8745. 'onInit',
  8746. 'onLoad',
  8747. // 'onShow',
  8748. 'onReady',
  8749. // 'onHide',
  8750. 'onUnload',
  8751. 'onPullDownRefresh',
  8752. 'onReachBottom',
  8753. 'onTabItemTap',
  8754. 'onAddToFavorites',
  8755. 'onShareTimeline',
  8756. 'onShareAppMessage',
  8757. 'onResize',
  8758. 'onPageScroll',
  8759. 'onNavigationBarButtonTap',
  8760. 'onBackPress',
  8761. 'onNavigationBarSearchInputChanged',
  8762. 'onNavigationBarSearchInputConfirmed',
  8763. 'onNavigationBarSearchInputClicked',
  8764. 'onUploadDouyinVideo',
  8765. 'onNFCReadMessage',
  8766. //Component
  8767. // 'onReady', // 兼容旧版本,应该移除该事件
  8768. 'onPageShow',
  8769. 'onPageHide',
  8770. 'onPageResize'
  8771. ];
  8772. function lifecycleMixin$1(Vue) {
  8773. //fixed vue-class-component
  8774. var oldExtend = Vue.extend;
  8775. Vue.extend = function(extendOptions) {
  8776. extendOptions = extendOptions || {};
  8777. var methods = extendOptions.methods;
  8778. if (methods) {
  8779. Object.keys(methods).forEach(function (methodName) {
  8780. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  8781. extendOptions[methodName] = methods[methodName];
  8782. delete methods[methodName];
  8783. }
  8784. });
  8785. }
  8786. return oldExtend.call(this, extendOptions)
  8787. };
  8788. var strategies = Vue.config.optionMergeStrategies;
  8789. var mergeHook = strategies.created;
  8790. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  8791. strategies[hook] = mergeHook;
  8792. });
  8793. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  8794. }
  8795. /* */
  8796. // install platform patch function
  8797. Vue.prototype.__patch__ = patch;
  8798. // public mount method
  8799. Vue.prototype.$mount = function(
  8800. el ,
  8801. hydrating
  8802. ) {
  8803. return mountComponent$1(this, el, hydrating)
  8804. };
  8805. lifecycleMixin$1(Vue);
  8806. internalMixin(Vue);
  8807. /* */
  8808. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  8809. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  8810. /***/ }),
  8811. /* 26 */
  8812. /*!***********************************************************************!*\
  8813. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/pages.json ***!
  8814. \***********************************************************************/
  8815. /*! no static exports found */
  8816. /***/ (function(module, exports) {
  8817. /***/ }),
  8818. /* 27 */,
  8819. /* 28 */,
  8820. /* 29 */,
  8821. /* 30 */,
  8822. /* 31 */,
  8823. /* 32 */
  8824. /*!**********************************************************************************************************!*\
  8825. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  8826. \**********************************************************************************************************/
  8827. /*! exports provided: default */
  8828. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8829. "use strict";
  8830. __webpack_require__.r(__webpack_exports__);
  8831. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  8832. /* globals __VUE_SSR_CONTEXT__ */
  8833. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  8834. // This module is a runtime utility for cleaner component module output and will
  8835. // be included in the final webpack user bundle.
  8836. function normalizeComponent (
  8837. scriptExports,
  8838. render,
  8839. staticRenderFns,
  8840. functionalTemplate,
  8841. injectStyles,
  8842. scopeId,
  8843. moduleIdentifier, /* server only */
  8844. shadowMode, /* vue-cli only */
  8845. components, // fixed by xxxxxx auto components
  8846. renderjs // fixed by xxxxxx renderjs
  8847. ) {
  8848. // Vue.extend constructor export interop
  8849. var options = typeof scriptExports === 'function'
  8850. ? scriptExports.options
  8851. : scriptExports
  8852. // fixed by xxxxxx auto components
  8853. if (components) {
  8854. if (!options.components) {
  8855. options.components = {}
  8856. }
  8857. var hasOwn = Object.prototype.hasOwnProperty
  8858. for (var name in components) {
  8859. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  8860. options.components[name] = components[name]
  8861. }
  8862. }
  8863. }
  8864. // fixed by xxxxxx renderjs
  8865. if (renderjs) {
  8866. if(typeof renderjs.beforeCreate === 'function'){
  8867. renderjs.beforeCreate = [renderjs.beforeCreate]
  8868. }
  8869. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  8870. this[renderjs.__module] = this
  8871. });
  8872. (options.mixins || (options.mixins = [])).push(renderjs)
  8873. }
  8874. // render functions
  8875. if (render) {
  8876. options.render = render
  8877. options.staticRenderFns = staticRenderFns
  8878. options._compiled = true
  8879. }
  8880. // functional template
  8881. if (functionalTemplate) {
  8882. options.functional = true
  8883. }
  8884. // scopedId
  8885. if (scopeId) {
  8886. options._scopeId = 'data-v-' + scopeId
  8887. }
  8888. var hook
  8889. if (moduleIdentifier) { // server build
  8890. hook = function (context) {
  8891. // 2.3 injection
  8892. context =
  8893. context || // cached call
  8894. (this.$vnode && this.$vnode.ssrContext) || // stateful
  8895. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  8896. // 2.2 with runInNewContext: true
  8897. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  8898. context = __VUE_SSR_CONTEXT__
  8899. }
  8900. // inject component styles
  8901. if (injectStyles) {
  8902. injectStyles.call(this, context)
  8903. }
  8904. // register component module identifier for async chunk inferrence
  8905. if (context && context._registeredComponents) {
  8906. context._registeredComponents.add(moduleIdentifier)
  8907. }
  8908. }
  8909. // used by ssr in case component is cached and beforeCreate
  8910. // never gets called
  8911. options._ssrRegister = hook
  8912. } else if (injectStyles) {
  8913. hook = shadowMode
  8914. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  8915. : injectStyles
  8916. }
  8917. if (hook) {
  8918. if (options.functional) {
  8919. // for template-only hot-reload because in that case the render fn doesn't
  8920. // go through the normalizer
  8921. options._injectStyles = hook
  8922. // register for functioal component in vue file
  8923. var originalRender = options.render
  8924. options.render = function renderWithStyleInjection (h, context) {
  8925. hook.call(context)
  8926. return originalRender(h, context)
  8927. }
  8928. } else {
  8929. // inject component registration as beforeCreate hook
  8930. var existing = options.beforeCreate
  8931. options.beforeCreate = existing
  8932. ? [].concat(existing, hook)
  8933. : [hook]
  8934. }
  8935. }
  8936. return {
  8937. exports: scriptExports,
  8938. options: options
  8939. }
  8940. }
  8941. /***/ }),
  8942. /* 33 */
  8943. /*!*************************************************************************************!*\
  8944. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/uni.promisify.adaptor.js ***!
  8945. \*************************************************************************************/
  8946. /*! no static exports found */
  8947. /***/ (function(module, exports, __webpack_require__) {
  8948. /* WEBPACK VAR INJECTION */(function(uni) {var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  8949. uni.addInterceptor({
  8950. returnValue: function returnValue(res) {
  8951. if (!(!!res && (_typeof(res) === "object" || typeof res === "function") && typeof res.then === "function")) {
  8952. return res;
  8953. }
  8954. return new Promise(function (resolve, reject) {
  8955. res.then(function (res) {
  8956. return res[0] ? reject(res[0]) : resolve(res[1]);
  8957. });
  8958. });
  8959. }
  8960. });
  8961. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  8962. /***/ }),
  8963. /* 34 */
  8964. /*!*****************************************************************************!*\
  8965. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/common/js/api.js ***!
  8966. \*****************************************************************************/
  8967. /*! no static exports found */
  8968. /***/ (function(module, exports, __webpack_require__) {
  8969. "use strict";
  8970. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  8971. Object.defineProperty(exports, "__esModule", {
  8972. value: true
  8973. });
  8974. exports.default = void 0;
  8975. var _request = _interopRequireDefault(__webpack_require__(/*! ../js/request.js */ 35));
  8976. // 引用网络请求中间件
  8977. var _default = {
  8978. /**
  8979. * 微信静默登录
  8980. */
  8981. wxAuthLogin: function wxAuthLogin(data) {
  8982. return (0, _request.default)({
  8983. url: '/auth/xcxLogin',
  8984. method: 'POST',
  8985. data: data
  8986. });
  8987. },
  8988. /**
  8989. * 查询电话是否存在
  8990. */
  8991. phoneIsExist: function phoneIsExist(data) {
  8992. return (0, _request.default)({
  8993. url: '/member/wechat/phoneIsExist',
  8994. method: 'POST',
  8995. data: data
  8996. });
  8997. },
  8998. payTheBill: function payTheBill(data) {
  8999. return (0, _request.default)({
  9000. url: '/recruit/recruitmsg/payTheBill',
  9001. method: 'POST',
  9002. data: data
  9003. });
  9004. },
  9005. /**
  9006. * 福利补贴
  9007. */
  9008. welfareMoney: function welfareMoney(data) {
  9009. return (0, _request.default)({
  9010. url: '/recruit/recruitmsg/welfareMoney',
  9011. method: 'POST',
  9012. data: data
  9013. });
  9014. },
  9015. /**
  9016. * get请求 通过电话及名称获取老系统会员信息
  9017. */
  9018. getOldMember: function getOldMember(data) {
  9019. return (0, _request.default)({
  9020. url: '/member/wechat/getOldMember',
  9021. method: 'GET',
  9022. params: data
  9023. });
  9024. },
  9025. /**
  9026. * get请求 通过会员编号获取老系统充值记录
  9027. * @param data
  9028. * @returns {Promise<unknown>}
  9029. */
  9030. getOrderRechargeOldList: function getOrderRechargeOldList(data) {
  9031. return (0, _request.default)({
  9032. url: '/member/wechat/getOrderRechargeOldList',
  9033. method: 'GET',
  9034. params: data
  9035. });
  9036. }
  9037. };
  9038. exports.default = _default;
  9039. /***/ }),
  9040. /* 35 */
  9041. /*!*********************************************************************************!*\
  9042. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/common/js/request.js ***!
  9043. \*********************************************************************************/
  9044. /*! no static exports found */
  9045. /***/ (function(module, exports, __webpack_require__) {
  9046. "use strict";
  9047. /* WEBPACK VAR INJECTION */(function(uni) {
  9048. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9049. Object.defineProperty(exports, "__esModule", {
  9050. value: true
  9051. });
  9052. exports.default = void 0;
  9053. var _env = _interopRequireDefault(__webpack_require__(/*! ../js/env.js */ 36));
  9054. function service() {
  9055. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9056. options.url = "".concat(_env.default.baseUrl).concat(options.url);
  9057. // 判断本地是否存在token,如果存在则带上请求头
  9058. var access_token = uni.getStorageSync('access_token');
  9059. var refresh_token = uni.getStorageSync('refresh_token');
  9060. options.header = {
  9061. 'Tenant-Id': '000000',
  9062. 'Authorization': 'Basic c3dvcmQ6c3dvcmRfc2VjcmV0',
  9063. 'content-type': 'application/json',
  9064. 'Blade-Auth': access_token,
  9065. 'refresh_token': refresh_token
  9066. };
  9067. // resolved是返回成功数据,rejected返回错误数据
  9068. return new Promise(function (resolved, rejected) {
  9069. options.success = function (res) {
  9070. // 如果请求回来的状态码不是200则执行以下操作
  9071. if (res.data.code !== 200) {
  9072. // 非成功状态码弹窗
  9073. uni.showToast({
  9074. icon: 'none',
  9075. duration: 3000,
  9076. title: "".concat(res.data.msg)
  9077. });
  9078. // 这里可以做一些状态码判断以及操作
  9079. // 返回错误信息
  9080. rejected(res);
  9081. } else {
  9082. // 请求回来的状态码为200则返回内容
  9083. resolved(res);
  9084. }
  9085. };
  9086. options.fail = function (err) {
  9087. // 请求失败弹窗
  9088. uni.showToast({
  9089. icon: 'none',
  9090. duration: 3000,
  9091. title: '系统繁忙,请稍后再试'
  9092. });
  9093. rejected(err);
  9094. };
  9095. uni.request(options);
  9096. });
  9097. }
  9098. var _default = service;
  9099. exports.default = _default;
  9100. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9101. /***/ }),
  9102. /* 36 */
  9103. /*!*****************************************************************************!*\
  9104. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/common/js/env.js ***!
  9105. \*****************************************************************************/
  9106. /*! no static exports found */
  9107. /***/ (function(module, exports, __webpack_require__) {
  9108. "use strict";
  9109. // 变量可自行添加修改
  9110. Object.defineProperty(exports, "__esModule", {
  9111. value: true
  9112. });
  9113. exports.default = void 0;
  9114. var _default = {
  9115. //存放变量的容器
  9116. appid: '__UNI__1EEA945',
  9117. // baseUrl: 'https://recruit.gzzzyd.com/api'
  9118. // baseUrl: 'http://127.0.0.1:8888',
  9119. baseUrl: 'https://jje.admin.xinyuekj.com.cn',
  9120. uploadUrl: '/v1/file/put-file'
  9121. };
  9122. exports.default = _default;
  9123. /***/ }),
  9124. /* 37 */
  9125. /*!*******************************************************************************************!*\
  9126. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/index.js ***!
  9127. \*******************************************************************************************/
  9128. /*! no static exports found */
  9129. /***/ (function(module, exports, __webpack_require__) {
  9130. "use strict";
  9131. /* WEBPACK VAR INJECTION */(function(uni) {
  9132. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9133. Object.defineProperty(exports, "__esModule", {
  9134. value: true
  9135. });
  9136. exports.default = void 0;
  9137. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9138. var _mixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mixin.js */ 38));
  9139. var _mpMixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mpMixin.js */ 39));
  9140. var _luchRequest = _interopRequireDefault(__webpack_require__(/*! ./libs/luch-request */ 40));
  9141. var _route = _interopRequireDefault(__webpack_require__(/*! ./libs/util/route.js */ 58));
  9142. var _colorGradient = _interopRequireDefault(__webpack_require__(/*! ./libs/function/colorGradient.js */ 62));
  9143. var _test = _interopRequireDefault(__webpack_require__(/*! ./libs/function/test.js */ 63));
  9144. var _debounce = _interopRequireDefault(__webpack_require__(/*! ./libs/function/debounce.js */ 64));
  9145. var _throttle = _interopRequireDefault(__webpack_require__(/*! ./libs/function/throttle.js */ 65));
  9146. var _index = _interopRequireDefault(__webpack_require__(/*! ./libs/function/index.js */ 66));
  9147. var _config = _interopRequireDefault(__webpack_require__(/*! ./libs/config/config.js */ 69));
  9148. var _props = _interopRequireDefault(__webpack_require__(/*! ./libs/config/props.js */ 70));
  9149. var _zIndex = _interopRequireDefault(__webpack_require__(/*! ./libs/config/zIndex.js */ 160));
  9150. var _color = _interopRequireDefault(__webpack_require__(/*! ./libs/config/color.js */ 118));
  9151. var _platform = _interopRequireDefault(__webpack_require__(/*! ./libs/function/platform */ 161));
  9152. 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; }
  9153. 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; }
  9154. // 看到此报错,是因为没有配置vue.config.js的【transpileDependencies】,详见:https://www.uviewui.com/components/npmSetting.html#_5-cli模式额外配置
  9155. var pleaseSetTranspileDependencies = {},
  9156. babelTest = pleaseSetTranspileDependencies === null || pleaseSetTranspileDependencies === void 0 ? void 0 : pleaseSetTranspileDependencies.test;
  9157. // 引入全局mixin
  9158. var $u = _objectSpread(_objectSpread({
  9159. route: _route.default,
  9160. date: _index.default.timeFormat,
  9161. // 另名date
  9162. colorGradient: _colorGradient.default.colorGradient,
  9163. hexToRgb: _colorGradient.default.hexToRgb,
  9164. rgbToHex: _colorGradient.default.rgbToHex,
  9165. colorToRgba: _colorGradient.default.colorToRgba,
  9166. test: _test.default,
  9167. type: ['primary', 'success', 'error', 'warning', 'info'],
  9168. http: new _luchRequest.default(),
  9169. config: _config.default,
  9170. // uView配置信息相关,比如版本号
  9171. zIndex: _zIndex.default,
  9172. debounce: _debounce.default,
  9173. throttle: _throttle.default,
  9174. mixin: _mixin.default,
  9175. mpMixin: _mpMixin.default,
  9176. props: _props.default
  9177. }, _index.default), {}, {
  9178. color: _color.default,
  9179. platform: _platform.default
  9180. });
  9181. // $u挂载到uni对象上
  9182. uni.$u = $u;
  9183. var install = function install(Vue) {
  9184. // 时间格式化,同时两个名称,date和timeFormat
  9185. Vue.filter('timeFormat', function (timestamp, format) {
  9186. return uni.$u.timeFormat(timestamp, format);
  9187. });
  9188. Vue.filter('date', function (timestamp, format) {
  9189. return uni.$u.timeFormat(timestamp, format);
  9190. });
  9191. // 将多久以前的方法,注入到全局过滤器
  9192. Vue.filter('timeFrom', function (timestamp, format) {
  9193. return uni.$u.timeFrom(timestamp, format);
  9194. });
  9195. // 同时挂载到uni和Vue.prototype中
  9196. // 只有vue,挂载到Vue.prototype才有意义,因为nvue中全局Vue.prototype和Vue.mixin是无效的
  9197. Vue.prototype.$u = $u;
  9198. Vue.mixin(_mixin.default);
  9199. };
  9200. var _default = {
  9201. install: install
  9202. };
  9203. exports.default = _default;
  9204. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9205. /***/ }),
  9206. /* 38 */
  9207. /*!******************************************************************************************************!*\
  9208. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/mixin/mixin.js ***!
  9209. \******************************************************************************************************/
  9210. /*! no static exports found */
  9211. /***/ (function(module, exports, __webpack_require__) {
  9212. /* WEBPACK VAR INJECTION */(function(uni) {module.exports = {
  9213. // 定义每个组件都可能需要用到的外部样式以及类名
  9214. props: {
  9215. // 每个组件都有的父组件传递的样式,可以为字符串或者对象形式
  9216. customStyle: {
  9217. type: [Object, String],
  9218. default: function _default() {
  9219. return {};
  9220. }
  9221. },
  9222. customClass: {
  9223. type: String,
  9224. default: ''
  9225. },
  9226. // 跳转的页面路径
  9227. url: {
  9228. type: String,
  9229. default: ''
  9230. },
  9231. // 页面跳转的类型
  9232. linkType: {
  9233. type: String,
  9234. default: 'navigateTo'
  9235. }
  9236. },
  9237. data: function data() {
  9238. return {};
  9239. },
  9240. onLoad: function onLoad() {
  9241. // getRect挂载到$u上,因为这方法需要使用in(this),所以无法把它独立成一个单独的文件导出
  9242. this.$u.getRect = this.$uGetRect;
  9243. },
  9244. created: function created() {
  9245. // 组件当中,只有created声明周期,为了能在组件使用,故也在created中将方法挂载到$u
  9246. this.$u.getRect = this.$uGetRect;
  9247. },
  9248. computed: {
  9249. // 在2.x版本中,将会把$u挂载到uni对象下,导致在模板中无法使用uni.$u.xxx形式
  9250. // 所以这里通过computed计算属性将其附加到this.$u上,就可以在模板或者js中使用uni.$u.xxx
  9251. // 只在nvue环境通过此方式引入完整的$u,其他平台会出现性能问题,非nvue则按需引入(主要原因是props过大)
  9252. $u: function $u() {
  9253. // 在非nvue端,移除props,http,mixin等对象,避免在小程序setData时数据过大影响性能
  9254. return uni.$u.deepMerge(uni.$u, {
  9255. props: undefined,
  9256. http: undefined,
  9257. mixin: undefined
  9258. });
  9259. },
  9260. /**
  9261. * 生成bem规则类名
  9262. * 由于微信小程序,H5,nvue之间绑定class的差异,无法通过:class="[bem()]"的形式进行同用
  9263. * 故采用如下折中做法,最后返回的是数组(一般平台)或字符串(支付宝和字节跳动平台),类似['a', 'b', 'c']或'a b c'的形式
  9264. * @param {String} name 组件名称
  9265. * @param {Array} fixed 一直会存在的类名
  9266. * @param {Array} change 会根据变量值为true或者false而出现或者隐藏的类名
  9267. * @returns {Array|string}
  9268. */
  9269. bem: function bem() {
  9270. return function (name, fixed, change) {
  9271. var _this = this;
  9272. // 类名前缀
  9273. var prefix = "u-".concat(name, "--");
  9274. var classes = {};
  9275. if (fixed) {
  9276. fixed.map(function (item) {
  9277. // 这里的类名,会一直存在
  9278. classes[prefix + _this[item]] = true;
  9279. });
  9280. }
  9281. if (change) {
  9282. change.map(function (item) {
  9283. // 这里的类名,会根据this[item]的值为true或者false,而进行添加或者移除某一个类
  9284. _this[item] ? classes[prefix + item] = _this[item] : delete classes[prefix + item];
  9285. });
  9286. }
  9287. return Object.keys(classes);
  9288. // 支付宝,头条小程序无法动态绑定一个数组类名,否则解析出来的结果会带有",",而导致失效
  9289. };
  9290. }
  9291. },
  9292. methods: {
  9293. // 跳转某一个页面
  9294. openPage: function openPage() {
  9295. var urlKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'url';
  9296. var url = this[urlKey];
  9297. if (url) {
  9298. // 执行类似uni.navigateTo的方法
  9299. uni[this.linkType]({
  9300. url: url
  9301. });
  9302. }
  9303. },
  9304. // 查询节点信息
  9305. // 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
  9306. // 解决办法为在组件根部再套一个没有任何作用的view元素
  9307. $uGetRect: function $uGetRect(selector, all) {
  9308. var _this2 = this;
  9309. return new Promise(function (resolve) {
  9310. uni.createSelectorQuery().in(_this2)[all ? 'selectAll' : 'select'](selector).boundingClientRect(function (rect) {
  9311. if (all && Array.isArray(rect) && rect.length) {
  9312. resolve(rect);
  9313. }
  9314. if (!all && rect) {
  9315. resolve(rect);
  9316. }
  9317. }).exec();
  9318. });
  9319. },
  9320. getParentData: function getParentData() {
  9321. var _this3 = this;
  9322. var parentName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  9323. // 避免在created中去定义parent变量
  9324. if (!this.parent) this.parent = {};
  9325. // 这里的本质原理是,通过获取父组件实例(也即类似u-radio的父组件u-radio-group的this)
  9326. // 将父组件this中对应的参数,赋值给本组件(u-radio的this)的parentData对象中对应的属性
  9327. // 之所以需要这么做,是因为所有端中,头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
  9328. // 此处并不会自动更新子组件的数据,而是依赖父组件u-radio-group去监听data的变化,手动调用更新子组件的方法去重新获取
  9329. this.parent = uni.$u.$parent.call(this, parentName);
  9330. if (this.parent.children) {
  9331. // 如果父组件的children不存在本组件的实例,才将本实例添加到父组件的children中
  9332. this.parent.children.indexOf(this) === -1 && this.parent.children.push(this);
  9333. }
  9334. if (this.parent && this.parentData) {
  9335. // 历遍parentData中的属性,将parent中的同名属性赋值给parentData
  9336. Object.keys(this.parentData).map(function (key) {
  9337. _this3.parentData[key] = _this3.parent[key];
  9338. });
  9339. }
  9340. },
  9341. // 阻止事件冒泡
  9342. preventEvent: function preventEvent(e) {
  9343. e && typeof e.stopPropagation === 'function' && e.stopPropagation();
  9344. },
  9345. // 空操作
  9346. noop: function noop(e) {
  9347. this.preventEvent(e);
  9348. }
  9349. },
  9350. onReachBottom: function onReachBottom() {
  9351. uni.$emit('uOnReachBottom');
  9352. },
  9353. beforeDestroy: function beforeDestroy() {
  9354. var _this4 = this;
  9355. // 判断当前页面是否存在parent和chldren,一般在checkbox和checkbox-group父子联动的场景会有此情况
  9356. // 组件销毁时,移除子组件在父组件children数组中的实例,释放资源,避免数据混乱
  9357. if (this.parent && uni.$u.test.array(this.parent.children)) {
  9358. // 组件销毁时,移除父组件中的children数组中对应的实例
  9359. var childrenList = this.parent.children;
  9360. childrenList.map(function (child, index) {
  9361. // 如果相等,则移除
  9362. if (child === _this4) {
  9363. childrenList.splice(index, 1);
  9364. }
  9365. });
  9366. }
  9367. }
  9368. };
  9369. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9370. /***/ }),
  9371. /* 39 */
  9372. /*!********************************************************************************************************!*\
  9373. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/mixin/mpMixin.js ***!
  9374. \********************************************************************************************************/
  9375. /*! no static exports found */
  9376. /***/ (function(module, exports, __webpack_require__) {
  9377. "use strict";
  9378. Object.defineProperty(exports, "__esModule", {
  9379. value: true
  9380. });
  9381. exports.default = void 0;
  9382. var _default = {
  9383. // 将自定义节点设置成虚拟的,更加接近Vue组件的表现,能更好的使用flex属性
  9384. options: {
  9385. virtualHost: true
  9386. }
  9387. };
  9388. exports.default = _default;
  9389. /***/ }),
  9390. /* 40 */
  9391. /*!*************************************************************************************************************!*\
  9392. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/luch-request/index.js ***!
  9393. \*************************************************************************************************************/
  9394. /*! no static exports found */
  9395. /***/ (function(module, exports, __webpack_require__) {
  9396. "use strict";
  9397. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9398. Object.defineProperty(exports, "__esModule", {
  9399. value: true
  9400. });
  9401. exports.default = void 0;
  9402. var _Request = _interopRequireDefault(__webpack_require__(/*! ./core/Request */ 41));
  9403. var _default = _Request.default;
  9404. exports.default = _default;
  9405. /***/ }),
  9406. /* 41 */
  9407. /*!********************************************************************************************************************!*\
  9408. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/luch-request/core/Request.js ***!
  9409. \********************************************************************************************************************/
  9410. /*! no static exports found */
  9411. /***/ (function(module, exports, __webpack_require__) {
  9412. "use strict";
  9413. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9414. Object.defineProperty(exports, "__esModule", {
  9415. value: true
  9416. });
  9417. exports.default = void 0;
  9418. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9419. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  9420. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  9421. var _dispatchRequest = _interopRequireDefault(__webpack_require__(/*! ./dispatchRequest */ 42));
  9422. var _InterceptorManager = _interopRequireDefault(__webpack_require__(/*! ./InterceptorManager */ 50));
  9423. var _mergeConfig = _interopRequireDefault(__webpack_require__(/*! ./mergeConfig */ 51));
  9424. var _defaults = _interopRequireDefault(__webpack_require__(/*! ./defaults */ 52));
  9425. var _utils = __webpack_require__(/*! ../utils */ 45);
  9426. var _clone = _interopRequireDefault(__webpack_require__(/*! ../utils/clone */ 53));
  9427. 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; }
  9428. 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; }
  9429. var Request = /*#__PURE__*/function () {
  9430. /**
  9431. * @param {Object} arg - 全局配置
  9432. * @param {String} arg.baseURL - 全局根路径
  9433. * @param {Object} arg.header - 全局header
  9434. * @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 全局默认请求方式
  9435. * @param {String} arg.dataType = [json] - 全局默认的dataType
  9436. * @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。支付宝小程序不支持
  9437. * @param {Object} arg.custom - 全局默认的自定义参数
  9438. * @param {Number} arg.timeout - 全局默认的超时时间,单位 ms。默认60000。H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序(2.10.0)、支付宝小程序
  9439. * @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持(HBuilderX 2.3.3+)
  9440. * @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证(cookies)。默认false。仅H5支持(HBuilderX 2.6.15+)
  9441. * @param {Boolean} arg.firstIpv4 - 全DNS解析时优先使用ipv4。默认false。仅 App-Android 支持 (HBuilderX 2.8.0+)
  9442. * @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
  9443. */
  9444. function Request() {
  9445. var arg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9446. (0, _classCallCheck2.default)(this, Request);
  9447. if (!(0, _utils.isPlainObject)(arg)) {
  9448. arg = {};
  9449. console.warn('设置全局参数必须接收一个Object');
  9450. }
  9451. this.config = (0, _clone.default)(_objectSpread(_objectSpread({}, _defaults.default), arg));
  9452. this.interceptors = {
  9453. request: new _InterceptorManager.default(),
  9454. response: new _InterceptorManager.default()
  9455. };
  9456. }
  9457. /**
  9458. * @Function
  9459. * @param {Request~setConfigCallback} f - 设置全局默认配置
  9460. */
  9461. (0, _createClass2.default)(Request, [{
  9462. key: "setConfig",
  9463. value: function setConfig(f) {
  9464. this.config = f(this.config);
  9465. }
  9466. }, {
  9467. key: "middleware",
  9468. value: function middleware(config) {
  9469. config = (0, _mergeConfig.default)(this.config, config);
  9470. var chain = [_dispatchRequest.default, undefined];
  9471. var promise = Promise.resolve(config);
  9472. this.interceptors.request.forEach(function (interceptor) {
  9473. chain.unshift(interceptor.fulfilled, interceptor.rejected);
  9474. });
  9475. this.interceptors.response.forEach(function (interceptor) {
  9476. chain.push(interceptor.fulfilled, interceptor.rejected);
  9477. });
  9478. while (chain.length) {
  9479. promise = promise.then(chain.shift(), chain.shift());
  9480. }
  9481. return promise;
  9482. }
  9483. /**
  9484. * @Function
  9485. * @param {Object} config - 请求配置项
  9486. * @prop {String} options.url - 请求路径
  9487. * @prop {Object} options.data - 请求参数
  9488. * @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 响应的数据类型
  9489. * @prop {Object} [options.dataType = config.dataType] - 如果设为 json,会尝试对返回的数据做一次 JSON.parse
  9490. * @prop {Object} [options.header = config.header] - 请求header
  9491. * @prop {Object} [options.method = config.method] - 请求方法
  9492. * @returns {Promise<unknown>}
  9493. */
  9494. }, {
  9495. key: "request",
  9496. value: function request() {
  9497. var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9498. return this.middleware(config);
  9499. }
  9500. }, {
  9501. key: "get",
  9502. value: function get(url) {
  9503. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9504. return this.middleware(_objectSpread({
  9505. url: url,
  9506. method: 'GET'
  9507. }, options));
  9508. }
  9509. }, {
  9510. key: "post",
  9511. value: function post(url, data) {
  9512. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9513. return this.middleware(_objectSpread({
  9514. url: url,
  9515. data: data,
  9516. method: 'POST'
  9517. }, options));
  9518. }
  9519. }, {
  9520. key: "put",
  9521. value: function put(url, data) {
  9522. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9523. return this.middleware(_objectSpread({
  9524. url: url,
  9525. data: data,
  9526. method: 'PUT'
  9527. }, options));
  9528. }
  9529. }, {
  9530. key: "delete",
  9531. value: function _delete(url, data) {
  9532. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9533. return this.middleware(_objectSpread({
  9534. url: url,
  9535. data: data,
  9536. method: 'DELETE'
  9537. }, options));
  9538. }
  9539. }, {
  9540. key: "connect",
  9541. value: function connect(url, data) {
  9542. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9543. return this.middleware(_objectSpread({
  9544. url: url,
  9545. data: data,
  9546. method: 'CONNECT'
  9547. }, options));
  9548. }
  9549. }, {
  9550. key: "head",
  9551. value: function head(url, data) {
  9552. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9553. return this.middleware(_objectSpread({
  9554. url: url,
  9555. data: data,
  9556. method: 'HEAD'
  9557. }, options));
  9558. }
  9559. }, {
  9560. key: "options",
  9561. value: function options(url, data) {
  9562. var _options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9563. return this.middleware(_objectSpread({
  9564. url: url,
  9565. data: data,
  9566. method: 'OPTIONS'
  9567. }, _options));
  9568. }
  9569. }, {
  9570. key: "trace",
  9571. value: function trace(url, data) {
  9572. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9573. return this.middleware(_objectSpread({
  9574. url: url,
  9575. data: data,
  9576. method: 'TRACE'
  9577. }, options));
  9578. }
  9579. }, {
  9580. key: "upload",
  9581. value: function upload(url) {
  9582. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9583. config.url = url;
  9584. config.method = 'UPLOAD';
  9585. return this.middleware(config);
  9586. }
  9587. }, {
  9588. key: "download",
  9589. value: function download(url) {
  9590. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9591. config.url = url;
  9592. config.method = 'DOWNLOAD';
  9593. return this.middleware(config);
  9594. }
  9595. }]);
  9596. return Request;
  9597. }();
  9598. /**
  9599. * setConfig回调
  9600. * @return {Object} - 返回操作后的config
  9601. * @callback Request~setConfigCallback
  9602. * @param {Object} config - 全局默认config
  9603. */
  9604. exports.default = Request;
  9605. /***/ }),
  9606. /* 42 */
  9607. /*!****************************************************************************************************************************!*\
  9608. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/luch-request/core/dispatchRequest.js ***!
  9609. \****************************************************************************************************************************/
  9610. /*! no static exports found */
  9611. /***/ (function(module, exports, __webpack_require__) {
  9612. "use strict";
  9613. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9614. Object.defineProperty(exports, "__esModule", {
  9615. value: true
  9616. });
  9617. exports.default = void 0;
  9618. var _index = _interopRequireDefault(__webpack_require__(/*! ../adapters/index */ 43));
  9619. var _default = function _default(config) {
  9620. return (0, _index.default)(config);
  9621. };
  9622. exports.default = _default;
  9623. /***/ }),
  9624. /* 43 */
  9625. /*!**********************************************************************************************************************!*\
  9626. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/luch-request/adapters/index.js ***!
  9627. \**********************************************************************************************************************/
  9628. /*! no static exports found */
  9629. /***/ (function(module, exports, __webpack_require__) {
  9630. "use strict";
  9631. /* WEBPACK VAR INJECTION */(function(uni) {
  9632. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9633. Object.defineProperty(exports, "__esModule", {
  9634. value: true
  9635. });
  9636. exports.default = void 0;
  9637. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9638. var _buildURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/buildURL */ 44));
  9639. var _buildFullPath = _interopRequireDefault(__webpack_require__(/*! ../core/buildFullPath */ 46));
  9640. var _settle = _interopRequireDefault(__webpack_require__(/*! ../core/settle */ 49));
  9641. var _utils = __webpack_require__(/*! ../utils */ 45);
  9642. 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; }
  9643. 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; }
  9644. /**
  9645. * 返回可选值存在的配置
  9646. * @param {Array} keys - 可选值数组
  9647. * @param {Object} config2 - 配置
  9648. * @return {{}} - 存在的配置项
  9649. */
  9650. var mergeKeys = function mergeKeys(keys, config2) {
  9651. var config = {};
  9652. keys.forEach(function (prop) {
  9653. if (!(0, _utils.isUndefined)(config2[prop])) {
  9654. config[prop] = config2[prop];
  9655. }
  9656. });
  9657. return config;
  9658. };
  9659. var _default = function _default(config) {
  9660. return new Promise(function (resolve, reject) {
  9661. var fullPath = (0, _buildURL.default)((0, _buildFullPath.default)(config.baseURL, config.url), config.params);
  9662. var _config = {
  9663. url: fullPath,
  9664. header: config.header,
  9665. complete: function complete(response) {
  9666. config.fullPath = fullPath;
  9667. response.config = config;
  9668. try {
  9669. // 对可能字符串不是json 的情况容错
  9670. if (typeof response.data === 'string') {
  9671. response.data = JSON.parse(response.data);
  9672. }
  9673. // eslint-disable-next-line no-empty
  9674. } catch (e) {}
  9675. (0, _settle.default)(resolve, reject, response);
  9676. }
  9677. };
  9678. var requestTask;
  9679. if (config.method === 'UPLOAD') {
  9680. delete _config.header['content-type'];
  9681. delete _config.header['Content-Type'];
  9682. var otherConfig = {
  9683. filePath: config.filePath,
  9684. name: config.name
  9685. };
  9686. var optionalKeys = ['formData'];
  9687. requestTask = uni.uploadFile(_objectSpread(_objectSpread(_objectSpread({}, _config), otherConfig), mergeKeys(optionalKeys, config)));
  9688. } else if (config.method === 'DOWNLOAD') {
  9689. requestTask = uni.downloadFile(_config);
  9690. } else {
  9691. var _optionalKeys = ['data', 'method', 'timeout', 'dataType', 'responseType'];
  9692. requestTask = uni.request(_objectSpread(_objectSpread({}, _config), mergeKeys(_optionalKeys, config)));
  9693. }
  9694. if (config.getTask) {
  9695. config.getTask(requestTask, config);
  9696. }
  9697. });
  9698. };
  9699. exports.default = _default;
  9700. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9701. /***/ }),
  9702. /* 44 */
  9703. /*!************************************************************************************************************************!*\
  9704. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/luch-request/helpers/buildURL.js ***!
  9705. \************************************************************************************************************************/
  9706. /*! no static exports found */
  9707. /***/ (function(module, exports, __webpack_require__) {
  9708. "use strict";
  9709. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  9710. Object.defineProperty(exports, "__esModule", {
  9711. value: true
  9712. });
  9713. exports.default = buildURL;
  9714. var utils = _interopRequireWildcard(__webpack_require__(/*! ../utils */ 45));
  9715. 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); }
  9716. 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; }
  9717. function encode(val) {
  9718. return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
  9719. }
  9720. /**
  9721. * Build a URL by appending params to the end
  9722. *
  9723. * @param {string} url The base of the url (e.g., http://www.google.com)
  9724. * @param {object} [params] The params to be appended
  9725. * @returns {string} The formatted url
  9726. */
  9727. function buildURL(url, params) {
  9728. /* eslint no-param-reassign:0 */
  9729. if (!params) {
  9730. return url;
  9731. }
  9732. var serializedParams;
  9733. if (utils.isURLSearchParams(params)) {
  9734. serializedParams = params.toString();
  9735. } else {
  9736. var parts = [];
  9737. utils.forEach(params, function (val, key) {
  9738. if (val === null || typeof val === 'undefined') {
  9739. return;
  9740. }
  9741. if (utils.isArray(val)) {
  9742. key = "".concat(key, "[]");
  9743. } else {
  9744. val = [val];
  9745. }
  9746. utils.forEach(val, function (v) {
  9747. if (utils.isDate(v)) {
  9748. v = v.toISOString();
  9749. } else if (utils.isObject(v)) {
  9750. v = JSON.stringify(v);
  9751. }
  9752. parts.push("".concat(encode(key), "=").concat(encode(v)));
  9753. });
  9754. });
  9755. serializedParams = parts.join('&');
  9756. }
  9757. if (serializedParams) {
  9758. var hashmarkIndex = url.indexOf('#');
  9759. if (hashmarkIndex !== -1) {
  9760. url = url.slice(0, hashmarkIndex);
  9761. }
  9762. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  9763. }
  9764. return url;
  9765. }
  9766. /***/ }),
  9767. /* 45 */
  9768. /*!*************************************************************************************************************!*\
  9769. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/luch-request/utils.js ***!
  9770. \*************************************************************************************************************/
  9771. /*! no static exports found */
  9772. /***/ (function(module, exports, __webpack_require__) {
  9773. "use strict";
  9774. // utils is a library of generic helper functions non-specific to axios
  9775. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9776. Object.defineProperty(exports, "__esModule", {
  9777. value: true
  9778. });
  9779. exports.deepMerge = deepMerge;
  9780. exports.forEach = forEach;
  9781. exports.isArray = isArray;
  9782. exports.isBoolean = isBoolean;
  9783. exports.isDate = isDate;
  9784. exports.isObject = isObject;
  9785. exports.isPlainObject = isPlainObject;
  9786. exports.isURLSearchParams = isURLSearchParams;
  9787. exports.isUndefined = isUndefined;
  9788. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  9789. var toString = Object.prototype.toString;
  9790. /**
  9791. * Determine if a value is an Array
  9792. *
  9793. * @param {Object} val The value to test
  9794. * @returns {boolean} True if value is an Array, otherwise false
  9795. */
  9796. function isArray(val) {
  9797. return toString.call(val) === '[object Array]';
  9798. }
  9799. /**
  9800. * Determine if a value is an Object
  9801. *
  9802. * @param {Object} val The value to test
  9803. * @returns {boolean} True if value is an Object, otherwise false
  9804. */
  9805. function isObject(val) {
  9806. return val !== null && (0, _typeof2.default)(val) === 'object';
  9807. }
  9808. /**
  9809. * Determine if a value is a Date
  9810. *
  9811. * @param {Object} val The value to test
  9812. * @returns {boolean} True if value is a Date, otherwise false
  9813. */
  9814. function isDate(val) {
  9815. return toString.call(val) === '[object Date]';
  9816. }
  9817. /**
  9818. * Determine if a value is a URLSearchParams object
  9819. *
  9820. * @param {Object} val The value to test
  9821. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  9822. */
  9823. function isURLSearchParams(val) {
  9824. return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
  9825. }
  9826. /**
  9827. * Iterate over an Array or an Object invoking a function for each item.
  9828. *
  9829. * If `obj` is an Array callback will be called passing
  9830. * the value, index, and complete array for each item.
  9831. *
  9832. * If 'obj' is an Object callback will be called passing
  9833. * the value, key, and complete object for each property.
  9834. *
  9835. * @param {Object|Array} obj The object to iterate
  9836. * @param {Function} fn The callback to invoke for each item
  9837. */
  9838. function forEach(obj, fn) {
  9839. // Don't bother if no value provided
  9840. if (obj === null || typeof obj === 'undefined') {
  9841. return;
  9842. }
  9843. // Force an array if not already something iterable
  9844. if ((0, _typeof2.default)(obj) !== 'object') {
  9845. /* eslint no-param-reassign:0 */
  9846. obj = [obj];
  9847. }
  9848. if (isArray(obj)) {
  9849. // Iterate over array values
  9850. for (var i = 0, l = obj.length; i < l; i++) {
  9851. fn.call(null, obj[i], i, obj);
  9852. }
  9853. } else {
  9854. // Iterate over object keys
  9855. for (var key in obj) {
  9856. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  9857. fn.call(null, obj[key], key, obj);
  9858. }
  9859. }
  9860. }
  9861. }
  9862. /**
  9863. * 是否为boolean 值
  9864. * @param val
  9865. * @returns {boolean}
  9866. */
  9867. function isBoolean(val) {
  9868. return typeof val === 'boolean';
  9869. }
  9870. /**
  9871. * 是否为真正的对象{} new Object
  9872. * @param {any} obj - 检测的对象
  9873. * @returns {boolean}
  9874. */
  9875. function isPlainObject(obj) {
  9876. return Object.prototype.toString.call(obj) === '[object Object]';
  9877. }
  9878. /**
  9879. * Function equal to merge with the difference being that no reference
  9880. * to original objects is kept.
  9881. *
  9882. * @see merge
  9883. * @param {Object} obj1 Object to merge
  9884. * @returns {Object} Result of all merge properties
  9885. */
  9886. function deepMerge( /* obj1, obj2, obj3, ... */
  9887. ) {
  9888. var result = {};
  9889. function assignValue(val, key) {
  9890. if ((0, _typeof2.default)(result[key]) === 'object' && (0, _typeof2.default)(val) === 'object') {
  9891. result[key] = deepMerge(result[key], val);
  9892. } else if ((0, _typeof2.default)(val) === 'object') {
  9893. result[key] = deepMerge({}, val);
  9894. } else {
  9895. result[key] = val;
  9896. }
  9897. }
  9898. for (var i = 0, l = arguments.length; i < l; i++) {
  9899. forEach(arguments[i], assignValue);
  9900. }
  9901. return result;
  9902. }
  9903. function isUndefined(val) {
  9904. return typeof val === 'undefined';
  9905. }
  9906. /***/ }),
  9907. /* 46 */
  9908. /*!**************************************************************************************************************************!*\
  9909. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/luch-request/core/buildFullPath.js ***!
  9910. \**************************************************************************************************************************/
  9911. /*! no static exports found */
  9912. /***/ (function(module, exports, __webpack_require__) {
  9913. "use strict";
  9914. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9915. Object.defineProperty(exports, "__esModule", {
  9916. value: true
  9917. });
  9918. exports.default = buildFullPath;
  9919. var _isAbsoluteURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/isAbsoluteURL */ 47));
  9920. var _combineURLs = _interopRequireDefault(__webpack_require__(/*! ../helpers/combineURLs */ 48));
  9921. /**
  9922. * Creates a new URL by combining the baseURL with the requestedURL,
  9923. * only when the requestedURL is not already an absolute URL.
  9924. * If the requestURL is absolute, this function returns the requestedURL untouched.
  9925. *
  9926. * @param {string} baseURL The base URL
  9927. * @param {string} requestedURL Absolute or relative URL to combine
  9928. * @returns {string} The combined full path
  9929. */
  9930. function buildFullPath(baseURL, requestedURL) {
  9931. if (baseURL && !(0, _isAbsoluteURL.default)(requestedURL)) {
  9932. return (0, _combineURLs.default)(baseURL, requestedURL);
  9933. }
  9934. return requestedURL;
  9935. }
  9936. /***/ }),
  9937. /* 47 */
  9938. /*!*****************************************************************************************************************************!*\
  9939. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js ***!
  9940. \*****************************************************************************************************************************/
  9941. /*! no static exports found */
  9942. /***/ (function(module, exports, __webpack_require__) {
  9943. "use strict";
  9944. /**
  9945. * Determines whether the specified URL is absolute
  9946. *
  9947. * @param {string} url The URL to test
  9948. * @returns {boolean} True if the specified URL is absolute, otherwise false
  9949. */
  9950. Object.defineProperty(exports, "__esModule", {
  9951. value: true
  9952. });
  9953. exports.default = isAbsoluteURL;
  9954. function isAbsoluteURL(url) {
  9955. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  9956. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  9957. // by any combination of letters, digits, plus, period, or hyphen.
  9958. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
  9959. }
  9960. /***/ }),
  9961. /* 48 */
  9962. /*!***************************************************************************************************************************!*\
  9963. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/luch-request/helpers/combineURLs.js ***!
  9964. \***************************************************************************************************************************/
  9965. /*! no static exports found */
  9966. /***/ (function(module, exports, __webpack_require__) {
  9967. "use strict";
  9968. /**
  9969. * Creates a new URL by combining the specified URLs
  9970. *
  9971. * @param {string} baseURL The base URL
  9972. * @param {string} relativeURL The relative URL
  9973. * @returns {string} The combined URL
  9974. */
  9975. Object.defineProperty(exports, "__esModule", {
  9976. value: true
  9977. });
  9978. exports.default = combineURLs;
  9979. function combineURLs(baseURL, relativeURL) {
  9980. return relativeURL ? "".concat(baseURL.replace(/\/+$/, ''), "/").concat(relativeURL.replace(/^\/+/, '')) : baseURL;
  9981. }
  9982. /***/ }),
  9983. /* 49 */
  9984. /*!*******************************************************************************************************************!*\
  9985. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/luch-request/core/settle.js ***!
  9986. \*******************************************************************************************************************/
  9987. /*! no static exports found */
  9988. /***/ (function(module, exports, __webpack_require__) {
  9989. "use strict";
  9990. Object.defineProperty(exports, "__esModule", {
  9991. value: true
  9992. });
  9993. exports.default = settle;
  9994. /**
  9995. * Resolve or reject a Promise based on response status.
  9996. *
  9997. * @param {Function} resolve A function that resolves the promise.
  9998. * @param {Function} reject A function that rejects the promise.
  9999. * @param {object} response The response.
  10000. */
  10001. function settle(resolve, reject, response) {
  10002. var validateStatus = response.config.validateStatus;
  10003. var status = response.statusCode;
  10004. if (status && (!validateStatus || validateStatus(status))) {
  10005. resolve(response);
  10006. } else {
  10007. reject(response);
  10008. }
  10009. }
  10010. /***/ }),
  10011. /* 50 */
  10012. /*!*******************************************************************************************************************************!*\
  10013. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/luch-request/core/InterceptorManager.js ***!
  10014. \*******************************************************************************************************************************/
  10015. /*! no static exports found */
  10016. /***/ (function(module, exports, __webpack_require__) {
  10017. "use strict";
  10018. Object.defineProperty(exports, "__esModule", {
  10019. value: true
  10020. });
  10021. exports.default = void 0;
  10022. function InterceptorManager() {
  10023. this.handlers = [];
  10024. }
  10025. /**
  10026. * Add a new interceptor to the stack
  10027. *
  10028. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  10029. * @param {Function} rejected The function to handle `reject` for a `Promise`
  10030. *
  10031. * @return {Number} An ID used to remove interceptor later
  10032. */
  10033. InterceptorManager.prototype.use = function use(fulfilled, rejected) {
  10034. this.handlers.push({
  10035. fulfilled: fulfilled,
  10036. rejected: rejected
  10037. });
  10038. return this.handlers.length - 1;
  10039. };
  10040. /**
  10041. * Remove an interceptor from the stack
  10042. *
  10043. * @param {Number} id The ID that was returned by `use`
  10044. */
  10045. InterceptorManager.prototype.eject = function eject(id) {
  10046. if (this.handlers[id]) {
  10047. this.handlers[id] = null;
  10048. }
  10049. };
  10050. /**
  10051. * Iterate over all the registered interceptors
  10052. *
  10053. * This method is particularly useful for skipping over any
  10054. * interceptors that may have become `null` calling `eject`.
  10055. *
  10056. * @param {Function} fn The function to call for each interceptor
  10057. */
  10058. InterceptorManager.prototype.forEach = function forEach(fn) {
  10059. this.handlers.forEach(function (h) {
  10060. if (h !== null) {
  10061. fn(h);
  10062. }
  10063. });
  10064. };
  10065. var _default = InterceptorManager;
  10066. exports.default = _default;
  10067. /***/ }),
  10068. /* 51 */
  10069. /*!************************************************************************************************************************!*\
  10070. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/luch-request/core/mergeConfig.js ***!
  10071. \************************************************************************************************************************/
  10072. /*! no static exports found */
  10073. /***/ (function(module, exports, __webpack_require__) {
  10074. "use strict";
  10075. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10076. Object.defineProperty(exports, "__esModule", {
  10077. value: true
  10078. });
  10079. exports.default = void 0;
  10080. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  10081. var _utils = __webpack_require__(/*! ../utils */ 45);
  10082. 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; }
  10083. 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; }
  10084. /**
  10085. * 合并局部配置优先的配置,如果局部有该配置项则用局部,如果全局有该配置项则用全局
  10086. * @param {Array} keys - 配置项
  10087. * @param {Object} globalsConfig - 当前的全局配置
  10088. * @param {Object} config2 - 局部配置
  10089. * @return {{}}
  10090. */
  10091. var mergeKeys = function mergeKeys(keys, globalsConfig, config2) {
  10092. var config = {};
  10093. keys.forEach(function (prop) {
  10094. if (!(0, _utils.isUndefined)(config2[prop])) {
  10095. config[prop] = config2[prop];
  10096. } else if (!(0, _utils.isUndefined)(globalsConfig[prop])) {
  10097. config[prop] = globalsConfig[prop];
  10098. }
  10099. });
  10100. return config;
  10101. };
  10102. /**
  10103. *
  10104. * @param globalsConfig - 当前实例的全局配置
  10105. * @param config2 - 当前的局部配置
  10106. * @return - 合并后的配置
  10107. */
  10108. var _default = function _default(globalsConfig) {
  10109. var config2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  10110. var method = config2.method || globalsConfig.method || 'GET';
  10111. var config = {
  10112. baseURL: globalsConfig.baseURL || '',
  10113. method: method,
  10114. url: config2.url || '',
  10115. params: config2.params || {},
  10116. custom: _objectSpread(_objectSpread({}, globalsConfig.custom || {}), config2.custom || {}),
  10117. header: (0, _utils.deepMerge)(globalsConfig.header || {}, config2.header || {})
  10118. };
  10119. var defaultToConfig2Keys = ['getTask', 'validateStatus'];
  10120. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultToConfig2Keys, globalsConfig, config2));
  10121. // eslint-disable-next-line no-empty
  10122. if (method === 'DOWNLOAD') {} else if (method === 'UPLOAD') {
  10123. delete config.header['content-type'];
  10124. delete config.header['Content-Type'];
  10125. var uploadKeys = ['filePath', 'name', 'formData'];
  10126. uploadKeys.forEach(function (prop) {
  10127. if (!(0, _utils.isUndefined)(config2[prop])) {
  10128. config[prop] = config2[prop];
  10129. }
  10130. });
  10131. } else {
  10132. var defaultsKeys = ['data', 'timeout', 'dataType', 'responseType'];
  10133. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultsKeys, globalsConfig, config2));
  10134. }
  10135. return config;
  10136. };
  10137. exports.default = _default;
  10138. /***/ }),
  10139. /* 52 */
  10140. /*!*********************************************************************************************************************!*\
  10141. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/luch-request/core/defaults.js ***!
  10142. \*********************************************************************************************************************/
  10143. /*! no static exports found */
  10144. /***/ (function(module, exports, __webpack_require__) {
  10145. "use strict";
  10146. Object.defineProperty(exports, "__esModule", {
  10147. value: true
  10148. });
  10149. exports.default = void 0;
  10150. /**
  10151. * 默认的全局配置
  10152. */
  10153. var _default = {
  10154. baseURL: '',
  10155. header: {},
  10156. method: 'GET',
  10157. dataType: 'json',
  10158. responseType: 'text',
  10159. custom: {},
  10160. timeout: 60000,
  10161. validateStatus: function validateStatus(status) {
  10162. return status >= 200 && status < 300;
  10163. }
  10164. };
  10165. exports.default = _default;
  10166. /***/ }),
  10167. /* 53 */
  10168. /*!*******************************************************************************************************************!*\
  10169. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/luch-request/utils/clone.js ***!
  10170. \*******************************************************************************************************************/
  10171. /*! no static exports found */
  10172. /***/ (function(module, exports, __webpack_require__) {
  10173. "use strict";
  10174. /* WEBPACK VAR INJECTION */(function(Buffer) {
  10175. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10176. Object.defineProperty(exports, "__esModule", {
  10177. value: true
  10178. });
  10179. exports.default = void 0;
  10180. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  10181. /* eslint-disable */
  10182. var clone = function () {
  10183. 'use strict';
  10184. function _instanceof(obj, type) {
  10185. return type != null && obj instanceof type;
  10186. }
  10187. var nativeMap;
  10188. try {
  10189. nativeMap = Map;
  10190. } catch (_) {
  10191. // maybe a reference error because no `Map`. Give it a dummy value that no
  10192. // value will ever be an instanceof.
  10193. nativeMap = function nativeMap() {};
  10194. }
  10195. var nativeSet;
  10196. try {
  10197. nativeSet = Set;
  10198. } catch (_) {
  10199. nativeSet = function nativeSet() {};
  10200. }
  10201. var nativePromise;
  10202. try {
  10203. nativePromise = Promise;
  10204. } catch (_) {
  10205. nativePromise = function nativePromise() {};
  10206. }
  10207. /**
  10208. * Clones (copies) an Object using deep copying.
  10209. *
  10210. * This function supports circular references by default, but if you are certain
  10211. * there are no circular references in your object, you can save some CPU time
  10212. * by calling clone(obj, false).
  10213. *
  10214. * Caution: if `circular` is false and `parent` contains circular references,
  10215. * your program may enter an infinite loop and crash.
  10216. *
  10217. * @param `parent` - the object to be cloned
  10218. * @param `circular` - set to true if the object to be cloned may contain
  10219. * circular references. (optional - true by default)
  10220. * @param `depth` - set to a number if the object is only to be cloned to
  10221. * a particular depth. (optional - defaults to Infinity)
  10222. * @param `prototype` - sets the prototype to be used when cloning an object.
  10223. * (optional - defaults to parent prototype).
  10224. * @param `includeNonEnumerable` - set to true if the non-enumerable properties
  10225. * should be cloned as well. Non-enumerable properties on the prototype
  10226. * chain will be ignored. (optional - false by default)
  10227. */
  10228. function clone(parent, circular, depth, prototype, includeNonEnumerable) {
  10229. if ((0, _typeof2.default)(circular) === 'object') {
  10230. depth = circular.depth;
  10231. prototype = circular.prototype;
  10232. includeNonEnumerable = circular.includeNonEnumerable;
  10233. circular = circular.circular;
  10234. }
  10235. // maintain two arrays for circular references, where corresponding parents
  10236. // and children have the same index
  10237. var allParents = [];
  10238. var allChildren = [];
  10239. var useBuffer = typeof Buffer != 'undefined';
  10240. if (typeof circular == 'undefined') circular = true;
  10241. if (typeof depth == 'undefined') depth = Infinity;
  10242. // recurse this function so we don't reset allParents and allChildren
  10243. function _clone(parent, depth) {
  10244. // cloning null always returns null
  10245. if (parent === null) return null;
  10246. if (depth === 0) return parent;
  10247. var child;
  10248. var proto;
  10249. if ((0, _typeof2.default)(parent) != 'object') {
  10250. return parent;
  10251. }
  10252. if (_instanceof(parent, nativeMap)) {
  10253. child = new nativeMap();
  10254. } else if (_instanceof(parent, nativeSet)) {
  10255. child = new nativeSet();
  10256. } else if (_instanceof(parent, nativePromise)) {
  10257. child = new nativePromise(function (resolve, reject) {
  10258. parent.then(function (value) {
  10259. resolve(_clone(value, depth - 1));
  10260. }, function (err) {
  10261. reject(_clone(err, depth - 1));
  10262. });
  10263. });
  10264. } else if (clone.__isArray(parent)) {
  10265. child = [];
  10266. } else if (clone.__isRegExp(parent)) {
  10267. child = new RegExp(parent.source, __getRegExpFlags(parent));
  10268. if (parent.lastIndex) child.lastIndex = parent.lastIndex;
  10269. } else if (clone.__isDate(parent)) {
  10270. child = new Date(parent.getTime());
  10271. } else if (useBuffer && Buffer.isBuffer(parent)) {
  10272. if (Buffer.from) {
  10273. // Node.js >= 5.10.0
  10274. child = Buffer.from(parent);
  10275. } else {
  10276. // Older Node.js versions
  10277. child = new Buffer(parent.length);
  10278. parent.copy(child);
  10279. }
  10280. return child;
  10281. } else if (_instanceof(parent, Error)) {
  10282. child = Object.create(parent);
  10283. } else {
  10284. if (typeof prototype == 'undefined') {
  10285. proto = Object.getPrototypeOf(parent);
  10286. child = Object.create(proto);
  10287. } else {
  10288. child = Object.create(prototype);
  10289. proto = prototype;
  10290. }
  10291. }
  10292. if (circular) {
  10293. var index = allParents.indexOf(parent);
  10294. if (index != -1) {
  10295. return allChildren[index];
  10296. }
  10297. allParents.push(parent);
  10298. allChildren.push(child);
  10299. }
  10300. if (_instanceof(parent, nativeMap)) {
  10301. parent.forEach(function (value, key) {
  10302. var keyChild = _clone(key, depth - 1);
  10303. var valueChild = _clone(value, depth - 1);
  10304. child.set(keyChild, valueChild);
  10305. });
  10306. }
  10307. if (_instanceof(parent, nativeSet)) {
  10308. parent.forEach(function (value) {
  10309. var entryChild = _clone(value, depth - 1);
  10310. child.add(entryChild);
  10311. });
  10312. }
  10313. for (var i in parent) {
  10314. var attrs = Object.getOwnPropertyDescriptor(parent, i);
  10315. if (attrs) {
  10316. child[i] = _clone(parent[i], depth - 1);
  10317. }
  10318. try {
  10319. var objProperty = Object.getOwnPropertyDescriptor(parent, i);
  10320. if (objProperty.set === 'undefined') {
  10321. // no setter defined. Skip cloning this property
  10322. continue;
  10323. }
  10324. child[i] = _clone(parent[i], depth - 1);
  10325. } catch (e) {
  10326. if (e instanceof TypeError) {
  10327. // when in strict mode, TypeError will be thrown if child[i] property only has a getter
  10328. // we can't do anything about this, other than inform the user that this property cannot be set.
  10329. continue;
  10330. } else if (e instanceof ReferenceError) {
  10331. //this may happen in non strict mode
  10332. continue;
  10333. }
  10334. }
  10335. }
  10336. if (Object.getOwnPropertySymbols) {
  10337. var symbols = Object.getOwnPropertySymbols(parent);
  10338. for (var i = 0; i < symbols.length; i++) {
  10339. // Don't need to worry about cloning a symbol because it is a primitive,
  10340. // like a number or string.
  10341. var symbol = symbols[i];
  10342. var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);
  10343. if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
  10344. continue;
  10345. }
  10346. child[symbol] = _clone(parent[symbol], depth - 1);
  10347. Object.defineProperty(child, symbol, descriptor);
  10348. }
  10349. }
  10350. if (includeNonEnumerable) {
  10351. var allPropertyNames = Object.getOwnPropertyNames(parent);
  10352. for (var i = 0; i < allPropertyNames.length; i++) {
  10353. var propertyName = allPropertyNames[i];
  10354. var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);
  10355. if (descriptor && descriptor.enumerable) {
  10356. continue;
  10357. }
  10358. child[propertyName] = _clone(parent[propertyName], depth - 1);
  10359. Object.defineProperty(child, propertyName, descriptor);
  10360. }
  10361. }
  10362. return child;
  10363. }
  10364. return _clone(parent, depth);
  10365. }
  10366. /**
  10367. * Simple flat clone using prototype, accepts only objects, usefull for property
  10368. * override on FLAT configuration object (no nested props).
  10369. *
  10370. * USE WITH CAUTION! This may not behave as you wish if you do not know how this
  10371. * works.
  10372. */
  10373. clone.clonePrototype = function clonePrototype(parent) {
  10374. if (parent === null) return null;
  10375. var c = function c() {};
  10376. c.prototype = parent;
  10377. return new c();
  10378. };
  10379. // private utility functions
  10380. function __objToStr(o) {
  10381. return Object.prototype.toString.call(o);
  10382. }
  10383. clone.__objToStr = __objToStr;
  10384. function __isDate(o) {
  10385. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Date]';
  10386. }
  10387. clone.__isDate = __isDate;
  10388. function __isArray(o) {
  10389. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Array]';
  10390. }
  10391. clone.__isArray = __isArray;
  10392. function __isRegExp(o) {
  10393. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object RegExp]';
  10394. }
  10395. clone.__isRegExp = __isRegExp;
  10396. function __getRegExpFlags(re) {
  10397. var flags = '';
  10398. if (re.global) flags += 'g';
  10399. if (re.ignoreCase) flags += 'i';
  10400. if (re.multiline) flags += 'm';
  10401. return flags;
  10402. }
  10403. clone.__getRegExpFlags = __getRegExpFlags;
  10404. return clone;
  10405. }();
  10406. var _default = clone;
  10407. exports.default = _default;
  10408. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../../../Downloads/HBuilderX.3.8.7.20230703/HBuilderX/plugins/uniapp-cli/node_modules/buffer/index.js */ 54).Buffer))
  10409. /***/ }),
  10410. /* 54 */
  10411. /*!**************************************!*\
  10412. !*** ./node_modules/buffer/index.js ***!
  10413. \**************************************/
  10414. /*! no static exports found */
  10415. /***/ (function(module, exports, __webpack_require__) {
  10416. "use strict";
  10417. /* WEBPACK VAR INJECTION */(function(global) {/*!
  10418. * The buffer module from node.js, for the browser.
  10419. *
  10420. * @author Feross Aboukhadijeh <http://feross.org>
  10421. * @license MIT
  10422. */
  10423. /* eslint-disable no-proto */
  10424. var base64 = __webpack_require__(/*! base64-js */ 55)
  10425. var ieee754 = __webpack_require__(/*! ieee754 */ 56)
  10426. var isArray = __webpack_require__(/*! isarray */ 57)
  10427. exports.Buffer = Buffer
  10428. exports.SlowBuffer = SlowBuffer
  10429. exports.INSPECT_MAX_BYTES = 50
  10430. /**
  10431. * If `Buffer.TYPED_ARRAY_SUPPORT`:
  10432. * === true Use Uint8Array implementation (fastest)
  10433. * === false Use Object implementation (most compatible, even IE6)
  10434. *
  10435. * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
  10436. * Opera 11.6+, iOS 4.2+.
  10437. *
  10438. * Due to various browser bugs, sometimes the Object implementation will be used even
  10439. * when the browser supports typed arrays.
  10440. *
  10441. * Note:
  10442. *
  10443. * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
  10444. * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
  10445. *
  10446. * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
  10447. *
  10448. * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
  10449. * incorrect length in some situations.
  10450. * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
  10451. * get the Object implementation, which is slower but behaves correctly.
  10452. */
  10453. Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
  10454. ? global.TYPED_ARRAY_SUPPORT
  10455. : typedArraySupport()
  10456. /*
  10457. * Export kMaxLength after typed array support is determined.
  10458. */
  10459. exports.kMaxLength = kMaxLength()
  10460. function typedArraySupport () {
  10461. try {
  10462. var arr = new Uint8Array(1)
  10463. arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
  10464. return arr.foo() === 42 && // typed array instances can be augmented
  10465. typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
  10466. arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
  10467. } catch (e) {
  10468. return false
  10469. }
  10470. }
  10471. function kMaxLength () {
  10472. return Buffer.TYPED_ARRAY_SUPPORT
  10473. ? 0x7fffffff
  10474. : 0x3fffffff
  10475. }
  10476. function createBuffer (that, length) {
  10477. if (kMaxLength() < length) {
  10478. throw new RangeError('Invalid typed array length')
  10479. }
  10480. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10481. // Return an augmented `Uint8Array` instance, for best performance
  10482. that = new Uint8Array(length)
  10483. that.__proto__ = Buffer.prototype
  10484. } else {
  10485. // Fallback: Return an object instance of the Buffer class
  10486. if (that === null) {
  10487. that = new Buffer(length)
  10488. }
  10489. that.length = length
  10490. }
  10491. return that
  10492. }
  10493. /**
  10494. * The Buffer constructor returns instances of `Uint8Array` that have their
  10495. * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
  10496. * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
  10497. * and the `Uint8Array` methods. Square bracket notation works as expected -- it
  10498. * returns a single octet.
  10499. *
  10500. * The `Uint8Array` prototype remains unmodified.
  10501. */
  10502. function Buffer (arg, encodingOrOffset, length) {
  10503. if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
  10504. return new Buffer(arg, encodingOrOffset, length)
  10505. }
  10506. // Common case.
  10507. if (typeof arg === 'number') {
  10508. if (typeof encodingOrOffset === 'string') {
  10509. throw new Error(
  10510. 'If encoding is specified then the first argument must be a string'
  10511. )
  10512. }
  10513. return allocUnsafe(this, arg)
  10514. }
  10515. return from(this, arg, encodingOrOffset, length)
  10516. }
  10517. Buffer.poolSize = 8192 // not used by this implementation
  10518. // TODO: Legacy, not needed anymore. Remove in next major version.
  10519. Buffer._augment = function (arr) {
  10520. arr.__proto__ = Buffer.prototype
  10521. return arr
  10522. }
  10523. function from (that, value, encodingOrOffset, length) {
  10524. if (typeof value === 'number') {
  10525. throw new TypeError('"value" argument must not be a number')
  10526. }
  10527. if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
  10528. return fromArrayBuffer(that, value, encodingOrOffset, length)
  10529. }
  10530. if (typeof value === 'string') {
  10531. return fromString(that, value, encodingOrOffset)
  10532. }
  10533. return fromObject(that, value)
  10534. }
  10535. /**
  10536. * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
  10537. * if value is a number.
  10538. * Buffer.from(str[, encoding])
  10539. * Buffer.from(array)
  10540. * Buffer.from(buffer)
  10541. * Buffer.from(arrayBuffer[, byteOffset[, length]])
  10542. **/
  10543. Buffer.from = function (value, encodingOrOffset, length) {
  10544. return from(null, value, encodingOrOffset, length)
  10545. }
  10546. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10547. Buffer.prototype.__proto__ = Uint8Array.prototype
  10548. Buffer.__proto__ = Uint8Array
  10549. if (typeof Symbol !== 'undefined' && Symbol.species &&
  10550. Buffer[Symbol.species] === Buffer) {
  10551. // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
  10552. Object.defineProperty(Buffer, Symbol.species, {
  10553. value: null,
  10554. configurable: true
  10555. })
  10556. }
  10557. }
  10558. function assertSize (size) {
  10559. if (typeof size !== 'number') {
  10560. throw new TypeError('"size" argument must be a number')
  10561. } else if (size < 0) {
  10562. throw new RangeError('"size" argument must not be negative')
  10563. }
  10564. }
  10565. function alloc (that, size, fill, encoding) {
  10566. assertSize(size)
  10567. if (size <= 0) {
  10568. return createBuffer(that, size)
  10569. }
  10570. if (fill !== undefined) {
  10571. // Only pay attention to encoding if it's a string. This
  10572. // prevents accidentally sending in a number that would
  10573. // be interpretted as a start offset.
  10574. return typeof encoding === 'string'
  10575. ? createBuffer(that, size).fill(fill, encoding)
  10576. : createBuffer(that, size).fill(fill)
  10577. }
  10578. return createBuffer(that, size)
  10579. }
  10580. /**
  10581. * Creates a new filled Buffer instance.
  10582. * alloc(size[, fill[, encoding]])
  10583. **/
  10584. Buffer.alloc = function (size, fill, encoding) {
  10585. return alloc(null, size, fill, encoding)
  10586. }
  10587. function allocUnsafe (that, size) {
  10588. assertSize(size)
  10589. that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
  10590. if (!Buffer.TYPED_ARRAY_SUPPORT) {
  10591. for (var i = 0; i < size; ++i) {
  10592. that[i] = 0
  10593. }
  10594. }
  10595. return that
  10596. }
  10597. /**
  10598. * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
  10599. * */
  10600. Buffer.allocUnsafe = function (size) {
  10601. return allocUnsafe(null, size)
  10602. }
  10603. /**
  10604. * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
  10605. */
  10606. Buffer.allocUnsafeSlow = function (size) {
  10607. return allocUnsafe(null, size)
  10608. }
  10609. function fromString (that, string, encoding) {
  10610. if (typeof encoding !== 'string' || encoding === '') {
  10611. encoding = 'utf8'
  10612. }
  10613. if (!Buffer.isEncoding(encoding)) {
  10614. throw new TypeError('"encoding" must be a valid string encoding')
  10615. }
  10616. var length = byteLength(string, encoding) | 0
  10617. that = createBuffer(that, length)
  10618. var actual = that.write(string, encoding)
  10619. if (actual !== length) {
  10620. // Writing a hex string, for example, that contains invalid characters will
  10621. // cause everything after the first invalid character to be ignored. (e.g.
  10622. // 'abxxcd' will be treated as 'ab')
  10623. that = that.slice(0, actual)
  10624. }
  10625. return that
  10626. }
  10627. function fromArrayLike (that, array) {
  10628. var length = array.length < 0 ? 0 : checked(array.length) | 0
  10629. that = createBuffer(that, length)
  10630. for (var i = 0; i < length; i += 1) {
  10631. that[i] = array[i] & 255
  10632. }
  10633. return that
  10634. }
  10635. function fromArrayBuffer (that, array, byteOffset, length) {
  10636. array.byteLength // this throws if `array` is not a valid ArrayBuffer
  10637. if (byteOffset < 0 || array.byteLength < byteOffset) {
  10638. throw new RangeError('\'offset\' is out of bounds')
  10639. }
  10640. if (array.byteLength < byteOffset + (length || 0)) {
  10641. throw new RangeError('\'length\' is out of bounds')
  10642. }
  10643. if (byteOffset === undefined && length === undefined) {
  10644. array = new Uint8Array(array)
  10645. } else if (length === undefined) {
  10646. array = new Uint8Array(array, byteOffset)
  10647. } else {
  10648. array = new Uint8Array(array, byteOffset, length)
  10649. }
  10650. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10651. // Return an augmented `Uint8Array` instance, for best performance
  10652. that = array
  10653. that.__proto__ = Buffer.prototype
  10654. } else {
  10655. // Fallback: Return an object instance of the Buffer class
  10656. that = fromArrayLike(that, array)
  10657. }
  10658. return that
  10659. }
  10660. function fromObject (that, obj) {
  10661. if (Buffer.isBuffer(obj)) {
  10662. var len = checked(obj.length) | 0
  10663. that = createBuffer(that, len)
  10664. if (that.length === 0) {
  10665. return that
  10666. }
  10667. obj.copy(that, 0, 0, len)
  10668. return that
  10669. }
  10670. if (obj) {
  10671. if ((typeof ArrayBuffer !== 'undefined' &&
  10672. obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
  10673. if (typeof obj.length !== 'number' || isnan(obj.length)) {
  10674. return createBuffer(that, 0)
  10675. }
  10676. return fromArrayLike(that, obj)
  10677. }
  10678. if (obj.type === 'Buffer' && isArray(obj.data)) {
  10679. return fromArrayLike(that, obj.data)
  10680. }
  10681. }
  10682. throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
  10683. }
  10684. function checked (length) {
  10685. // Note: cannot use `length < kMaxLength()` here because that fails when
  10686. // length is NaN (which is otherwise coerced to zero.)
  10687. if (length >= kMaxLength()) {
  10688. throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
  10689. 'size: 0x' + kMaxLength().toString(16) + ' bytes')
  10690. }
  10691. return length | 0
  10692. }
  10693. function SlowBuffer (length) {
  10694. if (+length != length) { // eslint-disable-line eqeqeq
  10695. length = 0
  10696. }
  10697. return Buffer.alloc(+length)
  10698. }
  10699. Buffer.isBuffer = function isBuffer (b) {
  10700. return !!(b != null && b._isBuffer)
  10701. }
  10702. Buffer.compare = function compare (a, b) {
  10703. if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
  10704. throw new TypeError('Arguments must be Buffers')
  10705. }
  10706. if (a === b) return 0
  10707. var x = a.length
  10708. var y = b.length
  10709. for (var i = 0, len = Math.min(x, y); i < len; ++i) {
  10710. if (a[i] !== b[i]) {
  10711. x = a[i]
  10712. y = b[i]
  10713. break
  10714. }
  10715. }
  10716. if (x < y) return -1
  10717. if (y < x) return 1
  10718. return 0
  10719. }
  10720. Buffer.isEncoding = function isEncoding (encoding) {
  10721. switch (String(encoding).toLowerCase()) {
  10722. case 'hex':
  10723. case 'utf8':
  10724. case 'utf-8':
  10725. case 'ascii':
  10726. case 'latin1':
  10727. case 'binary':
  10728. case 'base64':
  10729. case 'ucs2':
  10730. case 'ucs-2':
  10731. case 'utf16le':
  10732. case 'utf-16le':
  10733. return true
  10734. default:
  10735. return false
  10736. }
  10737. }
  10738. Buffer.concat = function concat (list, length) {
  10739. if (!isArray(list)) {
  10740. throw new TypeError('"list" argument must be an Array of Buffers')
  10741. }
  10742. if (list.length === 0) {
  10743. return Buffer.alloc(0)
  10744. }
  10745. var i
  10746. if (length === undefined) {
  10747. length = 0
  10748. for (i = 0; i < list.length; ++i) {
  10749. length += list[i].length
  10750. }
  10751. }
  10752. var buffer = Buffer.allocUnsafe(length)
  10753. var pos = 0
  10754. for (i = 0; i < list.length; ++i) {
  10755. var buf = list[i]
  10756. if (!Buffer.isBuffer(buf)) {
  10757. throw new TypeError('"list" argument must be an Array of Buffers')
  10758. }
  10759. buf.copy(buffer, pos)
  10760. pos += buf.length
  10761. }
  10762. return buffer
  10763. }
  10764. function byteLength (string, encoding) {
  10765. if (Buffer.isBuffer(string)) {
  10766. return string.length
  10767. }
  10768. if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
  10769. (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
  10770. return string.byteLength
  10771. }
  10772. if (typeof string !== 'string') {
  10773. string = '' + string
  10774. }
  10775. var len = string.length
  10776. if (len === 0) return 0
  10777. // Use a for loop to avoid recursion
  10778. var loweredCase = false
  10779. for (;;) {
  10780. switch (encoding) {
  10781. case 'ascii':
  10782. case 'latin1':
  10783. case 'binary':
  10784. return len
  10785. case 'utf8':
  10786. case 'utf-8':
  10787. case undefined:
  10788. return utf8ToBytes(string).length
  10789. case 'ucs2':
  10790. case 'ucs-2':
  10791. case 'utf16le':
  10792. case 'utf-16le':
  10793. return len * 2
  10794. case 'hex':
  10795. return len >>> 1
  10796. case 'base64':
  10797. return base64ToBytes(string).length
  10798. default:
  10799. if (loweredCase) return utf8ToBytes(string).length // assume utf8
  10800. encoding = ('' + encoding).toLowerCase()
  10801. loweredCase = true
  10802. }
  10803. }
  10804. }
  10805. Buffer.byteLength = byteLength
  10806. function slowToString (encoding, start, end) {
  10807. var loweredCase = false
  10808. // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
  10809. // property of a typed array.
  10810. // This behaves neither like String nor Uint8Array in that we set start/end
  10811. // to their upper/lower bounds if the value passed is out of range.
  10812. // undefined is handled specially as per ECMA-262 6th Edition,
  10813. // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
  10814. if (start === undefined || start < 0) {
  10815. start = 0
  10816. }
  10817. // Return early if start > this.length. Done here to prevent potential uint32
  10818. // coercion fail below.
  10819. if (start > this.length) {
  10820. return ''
  10821. }
  10822. if (end === undefined || end > this.length) {
  10823. end = this.length
  10824. }
  10825. if (end <= 0) {
  10826. return ''
  10827. }
  10828. // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
  10829. end >>>= 0
  10830. start >>>= 0
  10831. if (end <= start) {
  10832. return ''
  10833. }
  10834. if (!encoding) encoding = 'utf8'
  10835. while (true) {
  10836. switch (encoding) {
  10837. case 'hex':
  10838. return hexSlice(this, start, end)
  10839. case 'utf8':
  10840. case 'utf-8':
  10841. return utf8Slice(this, start, end)
  10842. case 'ascii':
  10843. return asciiSlice(this, start, end)
  10844. case 'latin1':
  10845. case 'binary':
  10846. return latin1Slice(this, start, end)
  10847. case 'base64':
  10848. return base64Slice(this, start, end)
  10849. case 'ucs2':
  10850. case 'ucs-2':
  10851. case 'utf16le':
  10852. case 'utf-16le':
  10853. return utf16leSlice(this, start, end)
  10854. default:
  10855. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  10856. encoding = (encoding + '').toLowerCase()
  10857. loweredCase = true
  10858. }
  10859. }
  10860. }
  10861. // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
  10862. // Buffer instances.
  10863. Buffer.prototype._isBuffer = true
  10864. function swap (b, n, m) {
  10865. var i = b[n]
  10866. b[n] = b[m]
  10867. b[m] = i
  10868. }
  10869. Buffer.prototype.swap16 = function swap16 () {
  10870. var len = this.length
  10871. if (len % 2 !== 0) {
  10872. throw new RangeError('Buffer size must be a multiple of 16-bits')
  10873. }
  10874. for (var i = 0; i < len; i += 2) {
  10875. swap(this, i, i + 1)
  10876. }
  10877. return this
  10878. }
  10879. Buffer.prototype.swap32 = function swap32 () {
  10880. var len = this.length
  10881. if (len % 4 !== 0) {
  10882. throw new RangeError('Buffer size must be a multiple of 32-bits')
  10883. }
  10884. for (var i = 0; i < len; i += 4) {
  10885. swap(this, i, i + 3)
  10886. swap(this, i + 1, i + 2)
  10887. }
  10888. return this
  10889. }
  10890. Buffer.prototype.swap64 = function swap64 () {
  10891. var len = this.length
  10892. if (len % 8 !== 0) {
  10893. throw new RangeError('Buffer size must be a multiple of 64-bits')
  10894. }
  10895. for (var i = 0; i < len; i += 8) {
  10896. swap(this, i, i + 7)
  10897. swap(this, i + 1, i + 6)
  10898. swap(this, i + 2, i + 5)
  10899. swap(this, i + 3, i + 4)
  10900. }
  10901. return this
  10902. }
  10903. Buffer.prototype.toString = function toString () {
  10904. var length = this.length | 0
  10905. if (length === 0) return ''
  10906. if (arguments.length === 0) return utf8Slice(this, 0, length)
  10907. return slowToString.apply(this, arguments)
  10908. }
  10909. Buffer.prototype.equals = function equals (b) {
  10910. if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  10911. if (this === b) return true
  10912. return Buffer.compare(this, b) === 0
  10913. }
  10914. Buffer.prototype.inspect = function inspect () {
  10915. var str = ''
  10916. var max = exports.INSPECT_MAX_BYTES
  10917. if (this.length > 0) {
  10918. str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
  10919. if (this.length > max) str += ' ... '
  10920. }
  10921. return '<Buffer ' + str + '>'
  10922. }
  10923. Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
  10924. if (!Buffer.isBuffer(target)) {
  10925. throw new TypeError('Argument must be a Buffer')
  10926. }
  10927. if (start === undefined) {
  10928. start = 0
  10929. }
  10930. if (end === undefined) {
  10931. end = target ? target.length : 0
  10932. }
  10933. if (thisStart === undefined) {
  10934. thisStart = 0
  10935. }
  10936. if (thisEnd === undefined) {
  10937. thisEnd = this.length
  10938. }
  10939. if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
  10940. throw new RangeError('out of range index')
  10941. }
  10942. if (thisStart >= thisEnd && start >= end) {
  10943. return 0
  10944. }
  10945. if (thisStart >= thisEnd) {
  10946. return -1
  10947. }
  10948. if (start >= end) {
  10949. return 1
  10950. }
  10951. start >>>= 0
  10952. end >>>= 0
  10953. thisStart >>>= 0
  10954. thisEnd >>>= 0
  10955. if (this === target) return 0
  10956. var x = thisEnd - thisStart
  10957. var y = end - start
  10958. var len = Math.min(x, y)
  10959. var thisCopy = this.slice(thisStart, thisEnd)
  10960. var targetCopy = target.slice(start, end)
  10961. for (var i = 0; i < len; ++i) {
  10962. if (thisCopy[i] !== targetCopy[i]) {
  10963. x = thisCopy[i]
  10964. y = targetCopy[i]
  10965. break
  10966. }
  10967. }
  10968. if (x < y) return -1
  10969. if (y < x) return 1
  10970. return 0
  10971. }
  10972. // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
  10973. // OR the last index of `val` in `buffer` at offset <= `byteOffset`.
  10974. //
  10975. // Arguments:
  10976. // - buffer - a Buffer to search
  10977. // - val - a string, Buffer, or number
  10978. // - byteOffset - an index into `buffer`; will be clamped to an int32
  10979. // - encoding - an optional encoding, relevant is val is a string
  10980. // - dir - true for indexOf, false for lastIndexOf
  10981. function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
  10982. // Empty buffer means no match
  10983. if (buffer.length === 0) return -1
  10984. // Normalize byteOffset
  10985. if (typeof byteOffset === 'string') {
  10986. encoding = byteOffset
  10987. byteOffset = 0
  10988. } else if (byteOffset > 0x7fffffff) {
  10989. byteOffset = 0x7fffffff
  10990. } else if (byteOffset < -0x80000000) {
  10991. byteOffset = -0x80000000
  10992. }
  10993. byteOffset = +byteOffset // Coerce to Number.
  10994. if (isNaN(byteOffset)) {
  10995. // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
  10996. byteOffset = dir ? 0 : (buffer.length - 1)
  10997. }
  10998. // Normalize byteOffset: negative offsets start from the end of the buffer
  10999. if (byteOffset < 0) byteOffset = buffer.length + byteOffset
  11000. if (byteOffset >= buffer.length) {
  11001. if (dir) return -1
  11002. else byteOffset = buffer.length - 1
  11003. } else if (byteOffset < 0) {
  11004. if (dir) byteOffset = 0
  11005. else return -1
  11006. }
  11007. // Normalize val
  11008. if (typeof val === 'string') {
  11009. val = Buffer.from(val, encoding)
  11010. }
  11011. // Finally, search either indexOf (if dir is true) or lastIndexOf
  11012. if (Buffer.isBuffer(val)) {
  11013. // Special case: looking for empty string/buffer always fails
  11014. if (val.length === 0) {
  11015. return -1
  11016. }
  11017. return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
  11018. } else if (typeof val === 'number') {
  11019. val = val & 0xFF // Search for a byte value [0-255]
  11020. if (Buffer.TYPED_ARRAY_SUPPORT &&
  11021. typeof Uint8Array.prototype.indexOf === 'function') {
  11022. if (dir) {
  11023. return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
  11024. } else {
  11025. return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
  11026. }
  11027. }
  11028. return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
  11029. }
  11030. throw new TypeError('val must be string, number or Buffer')
  11031. }
  11032. function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
  11033. var indexSize = 1
  11034. var arrLength = arr.length
  11035. var valLength = val.length
  11036. if (encoding !== undefined) {
  11037. encoding = String(encoding).toLowerCase()
  11038. if (encoding === 'ucs2' || encoding === 'ucs-2' ||
  11039. encoding === 'utf16le' || encoding === 'utf-16le') {
  11040. if (arr.length < 2 || val.length < 2) {
  11041. return -1
  11042. }
  11043. indexSize = 2
  11044. arrLength /= 2
  11045. valLength /= 2
  11046. byteOffset /= 2
  11047. }
  11048. }
  11049. function read (buf, i) {
  11050. if (indexSize === 1) {
  11051. return buf[i]
  11052. } else {
  11053. return buf.readUInt16BE(i * indexSize)
  11054. }
  11055. }
  11056. var i
  11057. if (dir) {
  11058. var foundIndex = -1
  11059. for (i = byteOffset; i < arrLength; i++) {
  11060. if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
  11061. if (foundIndex === -1) foundIndex = i
  11062. if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
  11063. } else {
  11064. if (foundIndex !== -1) i -= i - foundIndex
  11065. foundIndex = -1
  11066. }
  11067. }
  11068. } else {
  11069. if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
  11070. for (i = byteOffset; i >= 0; i--) {
  11071. var found = true
  11072. for (var j = 0; j < valLength; j++) {
  11073. if (read(arr, i + j) !== read(val, j)) {
  11074. found = false
  11075. break
  11076. }
  11077. }
  11078. if (found) return i
  11079. }
  11080. }
  11081. return -1
  11082. }
  11083. Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
  11084. return this.indexOf(val, byteOffset, encoding) !== -1
  11085. }
  11086. Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
  11087. return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
  11088. }
  11089. Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
  11090. return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
  11091. }
  11092. function hexWrite (buf, string, offset, length) {
  11093. offset = Number(offset) || 0
  11094. var remaining = buf.length - offset
  11095. if (!length) {
  11096. length = remaining
  11097. } else {
  11098. length = Number(length)
  11099. if (length > remaining) {
  11100. length = remaining
  11101. }
  11102. }
  11103. // must be an even number of digits
  11104. var strLen = string.length
  11105. if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
  11106. if (length > strLen / 2) {
  11107. length = strLen / 2
  11108. }
  11109. for (var i = 0; i < length; ++i) {
  11110. var parsed = parseInt(string.substr(i * 2, 2), 16)
  11111. if (isNaN(parsed)) return i
  11112. buf[offset + i] = parsed
  11113. }
  11114. return i
  11115. }
  11116. function utf8Write (buf, string, offset, length) {
  11117. return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
  11118. }
  11119. function asciiWrite (buf, string, offset, length) {
  11120. return blitBuffer(asciiToBytes(string), buf, offset, length)
  11121. }
  11122. function latin1Write (buf, string, offset, length) {
  11123. return asciiWrite(buf, string, offset, length)
  11124. }
  11125. function base64Write (buf, string, offset, length) {
  11126. return blitBuffer(base64ToBytes(string), buf, offset, length)
  11127. }
  11128. function ucs2Write (buf, string, offset, length) {
  11129. return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
  11130. }
  11131. Buffer.prototype.write = function write (string, offset, length, encoding) {
  11132. // Buffer#write(string)
  11133. if (offset === undefined) {
  11134. encoding = 'utf8'
  11135. length = this.length
  11136. offset = 0
  11137. // Buffer#write(string, encoding)
  11138. } else if (length === undefined && typeof offset === 'string') {
  11139. encoding = offset
  11140. length = this.length
  11141. offset = 0
  11142. // Buffer#write(string, offset[, length][, encoding])
  11143. } else if (isFinite(offset)) {
  11144. offset = offset | 0
  11145. if (isFinite(length)) {
  11146. length = length | 0
  11147. if (encoding === undefined) encoding = 'utf8'
  11148. } else {
  11149. encoding = length
  11150. length = undefined
  11151. }
  11152. // legacy write(string, encoding, offset, length) - remove in v0.13
  11153. } else {
  11154. throw new Error(
  11155. 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
  11156. )
  11157. }
  11158. var remaining = this.length - offset
  11159. if (length === undefined || length > remaining) length = remaining
  11160. if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
  11161. throw new RangeError('Attempt to write outside buffer bounds')
  11162. }
  11163. if (!encoding) encoding = 'utf8'
  11164. var loweredCase = false
  11165. for (;;) {
  11166. switch (encoding) {
  11167. case 'hex':
  11168. return hexWrite(this, string, offset, length)
  11169. case 'utf8':
  11170. case 'utf-8':
  11171. return utf8Write(this, string, offset, length)
  11172. case 'ascii':
  11173. return asciiWrite(this, string, offset, length)
  11174. case 'latin1':
  11175. case 'binary':
  11176. return latin1Write(this, string, offset, length)
  11177. case 'base64':
  11178. // Warning: maxLength not taken into account in base64Write
  11179. return base64Write(this, string, offset, length)
  11180. case 'ucs2':
  11181. case 'ucs-2':
  11182. case 'utf16le':
  11183. case 'utf-16le':
  11184. return ucs2Write(this, string, offset, length)
  11185. default:
  11186. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  11187. encoding = ('' + encoding).toLowerCase()
  11188. loweredCase = true
  11189. }
  11190. }
  11191. }
  11192. Buffer.prototype.toJSON = function toJSON () {
  11193. return {
  11194. type: 'Buffer',
  11195. data: Array.prototype.slice.call(this._arr || this, 0)
  11196. }
  11197. }
  11198. function base64Slice (buf, start, end) {
  11199. if (start === 0 && end === buf.length) {
  11200. return base64.fromByteArray(buf)
  11201. } else {
  11202. return base64.fromByteArray(buf.slice(start, end))
  11203. }
  11204. }
  11205. function utf8Slice (buf, start, end) {
  11206. end = Math.min(buf.length, end)
  11207. var res = []
  11208. var i = start
  11209. while (i < end) {
  11210. var firstByte = buf[i]
  11211. var codePoint = null
  11212. var bytesPerSequence = (firstByte > 0xEF) ? 4
  11213. : (firstByte > 0xDF) ? 3
  11214. : (firstByte > 0xBF) ? 2
  11215. : 1
  11216. if (i + bytesPerSequence <= end) {
  11217. var secondByte, thirdByte, fourthByte, tempCodePoint
  11218. switch (bytesPerSequence) {
  11219. case 1:
  11220. if (firstByte < 0x80) {
  11221. codePoint = firstByte
  11222. }
  11223. break
  11224. case 2:
  11225. secondByte = buf[i + 1]
  11226. if ((secondByte & 0xC0) === 0x80) {
  11227. tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
  11228. if (tempCodePoint > 0x7F) {
  11229. codePoint = tempCodePoint
  11230. }
  11231. }
  11232. break
  11233. case 3:
  11234. secondByte = buf[i + 1]
  11235. thirdByte = buf[i + 2]
  11236. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
  11237. tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
  11238. if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
  11239. codePoint = tempCodePoint
  11240. }
  11241. }
  11242. break
  11243. case 4:
  11244. secondByte = buf[i + 1]
  11245. thirdByte = buf[i + 2]
  11246. fourthByte = buf[i + 3]
  11247. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
  11248. tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
  11249. if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
  11250. codePoint = tempCodePoint
  11251. }
  11252. }
  11253. }
  11254. }
  11255. if (codePoint === null) {
  11256. // we did not generate a valid codePoint so insert a
  11257. // replacement char (U+FFFD) and advance only 1 byte
  11258. codePoint = 0xFFFD
  11259. bytesPerSequence = 1
  11260. } else if (codePoint > 0xFFFF) {
  11261. // encode to utf16 (surrogate pair dance)
  11262. codePoint -= 0x10000
  11263. res.push(codePoint >>> 10 & 0x3FF | 0xD800)
  11264. codePoint = 0xDC00 | codePoint & 0x3FF
  11265. }
  11266. res.push(codePoint)
  11267. i += bytesPerSequence
  11268. }
  11269. return decodeCodePointsArray(res)
  11270. }
  11271. // Based on http://stackoverflow.com/a/22747272/680742, the browser with
  11272. // the lowest limit is Chrome, with 0x10000 args.
  11273. // We go 1 magnitude less, for safety
  11274. var MAX_ARGUMENTS_LENGTH = 0x1000
  11275. function decodeCodePointsArray (codePoints) {
  11276. var len = codePoints.length
  11277. if (len <= MAX_ARGUMENTS_LENGTH) {
  11278. return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
  11279. }
  11280. // Decode in chunks to avoid "call stack size exceeded".
  11281. var res = ''
  11282. var i = 0
  11283. while (i < len) {
  11284. res += String.fromCharCode.apply(
  11285. String,
  11286. codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
  11287. )
  11288. }
  11289. return res
  11290. }
  11291. function asciiSlice (buf, start, end) {
  11292. var ret = ''
  11293. end = Math.min(buf.length, end)
  11294. for (var i = start; i < end; ++i) {
  11295. ret += String.fromCharCode(buf[i] & 0x7F)
  11296. }
  11297. return ret
  11298. }
  11299. function latin1Slice (buf, start, end) {
  11300. var ret = ''
  11301. end = Math.min(buf.length, end)
  11302. for (var i = start; i < end; ++i) {
  11303. ret += String.fromCharCode(buf[i])
  11304. }
  11305. return ret
  11306. }
  11307. function hexSlice (buf, start, end) {
  11308. var len = buf.length
  11309. if (!start || start < 0) start = 0
  11310. if (!end || end < 0 || end > len) end = len
  11311. var out = ''
  11312. for (var i = start; i < end; ++i) {
  11313. out += toHex(buf[i])
  11314. }
  11315. return out
  11316. }
  11317. function utf16leSlice (buf, start, end) {
  11318. var bytes = buf.slice(start, end)
  11319. var res = ''
  11320. for (var i = 0; i < bytes.length; i += 2) {
  11321. res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
  11322. }
  11323. return res
  11324. }
  11325. Buffer.prototype.slice = function slice (start, end) {
  11326. var len = this.length
  11327. start = ~~start
  11328. end = end === undefined ? len : ~~end
  11329. if (start < 0) {
  11330. start += len
  11331. if (start < 0) start = 0
  11332. } else if (start > len) {
  11333. start = len
  11334. }
  11335. if (end < 0) {
  11336. end += len
  11337. if (end < 0) end = 0
  11338. } else if (end > len) {
  11339. end = len
  11340. }
  11341. if (end < start) end = start
  11342. var newBuf
  11343. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11344. newBuf = this.subarray(start, end)
  11345. newBuf.__proto__ = Buffer.prototype
  11346. } else {
  11347. var sliceLen = end - start
  11348. newBuf = new Buffer(sliceLen, undefined)
  11349. for (var i = 0; i < sliceLen; ++i) {
  11350. newBuf[i] = this[i + start]
  11351. }
  11352. }
  11353. return newBuf
  11354. }
  11355. /*
  11356. * Need to make sure that buffer isn't trying to write out of bounds.
  11357. */
  11358. function checkOffset (offset, ext, length) {
  11359. if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
  11360. if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
  11361. }
  11362. Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
  11363. offset = offset | 0
  11364. byteLength = byteLength | 0
  11365. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11366. var val = this[offset]
  11367. var mul = 1
  11368. var i = 0
  11369. while (++i < byteLength && (mul *= 0x100)) {
  11370. val += this[offset + i] * mul
  11371. }
  11372. return val
  11373. }
  11374. Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
  11375. offset = offset | 0
  11376. byteLength = byteLength | 0
  11377. if (!noAssert) {
  11378. checkOffset(offset, byteLength, this.length)
  11379. }
  11380. var val = this[offset + --byteLength]
  11381. var mul = 1
  11382. while (byteLength > 0 && (mul *= 0x100)) {
  11383. val += this[offset + --byteLength] * mul
  11384. }
  11385. return val
  11386. }
  11387. Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
  11388. if (!noAssert) checkOffset(offset, 1, this.length)
  11389. return this[offset]
  11390. }
  11391. Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  11392. if (!noAssert) checkOffset(offset, 2, this.length)
  11393. return this[offset] | (this[offset + 1] << 8)
  11394. }
  11395. Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  11396. if (!noAssert) checkOffset(offset, 2, this.length)
  11397. return (this[offset] << 8) | this[offset + 1]
  11398. }
  11399. Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  11400. if (!noAssert) checkOffset(offset, 4, this.length)
  11401. return ((this[offset]) |
  11402. (this[offset + 1] << 8) |
  11403. (this[offset + 2] << 16)) +
  11404. (this[offset + 3] * 0x1000000)
  11405. }
  11406. Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
  11407. if (!noAssert) checkOffset(offset, 4, this.length)
  11408. return (this[offset] * 0x1000000) +
  11409. ((this[offset + 1] << 16) |
  11410. (this[offset + 2] << 8) |
  11411. this[offset + 3])
  11412. }
  11413. Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
  11414. offset = offset | 0
  11415. byteLength = byteLength | 0
  11416. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11417. var val = this[offset]
  11418. var mul = 1
  11419. var i = 0
  11420. while (++i < byteLength && (mul *= 0x100)) {
  11421. val += this[offset + i] * mul
  11422. }
  11423. mul *= 0x80
  11424. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11425. return val
  11426. }
  11427. Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
  11428. offset = offset | 0
  11429. byteLength = byteLength | 0
  11430. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11431. var i = byteLength
  11432. var mul = 1
  11433. var val = this[offset + --i]
  11434. while (i > 0 && (mul *= 0x100)) {
  11435. val += this[offset + --i] * mul
  11436. }
  11437. mul *= 0x80
  11438. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11439. return val
  11440. }
  11441. Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
  11442. if (!noAssert) checkOffset(offset, 1, this.length)
  11443. if (!(this[offset] & 0x80)) return (this[offset])
  11444. return ((0xff - this[offset] + 1) * -1)
  11445. }
  11446. Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
  11447. if (!noAssert) checkOffset(offset, 2, this.length)
  11448. var val = this[offset] | (this[offset + 1] << 8)
  11449. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11450. }
  11451. Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
  11452. if (!noAssert) checkOffset(offset, 2, this.length)
  11453. var val = this[offset + 1] | (this[offset] << 8)
  11454. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11455. }
  11456. Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
  11457. if (!noAssert) checkOffset(offset, 4, this.length)
  11458. return (this[offset]) |
  11459. (this[offset + 1] << 8) |
  11460. (this[offset + 2] << 16) |
  11461. (this[offset + 3] << 24)
  11462. }
  11463. Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
  11464. if (!noAssert) checkOffset(offset, 4, this.length)
  11465. return (this[offset] << 24) |
  11466. (this[offset + 1] << 16) |
  11467. (this[offset + 2] << 8) |
  11468. (this[offset + 3])
  11469. }
  11470. Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  11471. if (!noAssert) checkOffset(offset, 4, this.length)
  11472. return ieee754.read(this, offset, true, 23, 4)
  11473. }
  11474. Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  11475. if (!noAssert) checkOffset(offset, 4, this.length)
  11476. return ieee754.read(this, offset, false, 23, 4)
  11477. }
  11478. Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  11479. if (!noAssert) checkOffset(offset, 8, this.length)
  11480. return ieee754.read(this, offset, true, 52, 8)
  11481. }
  11482. Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  11483. if (!noAssert) checkOffset(offset, 8, this.length)
  11484. return ieee754.read(this, offset, false, 52, 8)
  11485. }
  11486. function checkInt (buf, value, offset, ext, max, min) {
  11487. if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
  11488. if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
  11489. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  11490. }
  11491. Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
  11492. value = +value
  11493. offset = offset | 0
  11494. byteLength = byteLength | 0
  11495. if (!noAssert) {
  11496. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11497. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11498. }
  11499. var mul = 1
  11500. var i = 0
  11501. this[offset] = value & 0xFF
  11502. while (++i < byteLength && (mul *= 0x100)) {
  11503. this[offset + i] = (value / mul) & 0xFF
  11504. }
  11505. return offset + byteLength
  11506. }
  11507. Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
  11508. value = +value
  11509. offset = offset | 0
  11510. byteLength = byteLength | 0
  11511. if (!noAssert) {
  11512. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11513. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11514. }
  11515. var i = byteLength - 1
  11516. var mul = 1
  11517. this[offset + i] = value & 0xFF
  11518. while (--i >= 0 && (mul *= 0x100)) {
  11519. this[offset + i] = (value / mul) & 0xFF
  11520. }
  11521. return offset + byteLength
  11522. }
  11523. Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
  11524. value = +value
  11525. offset = offset | 0
  11526. if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
  11527. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  11528. this[offset] = (value & 0xff)
  11529. return offset + 1
  11530. }
  11531. function objectWriteUInt16 (buf, value, offset, littleEndian) {
  11532. if (value < 0) value = 0xffff + value + 1
  11533. for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
  11534. buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
  11535. (littleEndian ? i : 1 - i) * 8
  11536. }
  11537. }
  11538. Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  11539. value = +value
  11540. offset = offset | 0
  11541. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  11542. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11543. this[offset] = (value & 0xff)
  11544. this[offset + 1] = (value >>> 8)
  11545. } else {
  11546. objectWriteUInt16(this, value, offset, true)
  11547. }
  11548. return offset + 2
  11549. }
  11550. Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
  11551. value = +value
  11552. offset = offset | 0
  11553. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  11554. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11555. this[offset] = (value >>> 8)
  11556. this[offset + 1] = (value & 0xff)
  11557. } else {
  11558. objectWriteUInt16(this, value, offset, false)
  11559. }
  11560. return offset + 2
  11561. }
  11562. function objectWriteUInt32 (buf, value, offset, littleEndian) {
  11563. if (value < 0) value = 0xffffffff + value + 1
  11564. for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
  11565. buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  11566. }
  11567. }
  11568. Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  11569. value = +value
  11570. offset = offset | 0
  11571. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  11572. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11573. this[offset + 3] = (value >>> 24)
  11574. this[offset + 2] = (value >>> 16)
  11575. this[offset + 1] = (value >>> 8)
  11576. this[offset] = (value & 0xff)
  11577. } else {
  11578. objectWriteUInt32(this, value, offset, true)
  11579. }
  11580. return offset + 4
  11581. }
  11582. Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
  11583. value = +value
  11584. offset = offset | 0
  11585. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  11586. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11587. this[offset] = (value >>> 24)
  11588. this[offset + 1] = (value >>> 16)
  11589. this[offset + 2] = (value >>> 8)
  11590. this[offset + 3] = (value & 0xff)
  11591. } else {
  11592. objectWriteUInt32(this, value, offset, false)
  11593. }
  11594. return offset + 4
  11595. }
  11596. Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
  11597. value = +value
  11598. offset = offset | 0
  11599. if (!noAssert) {
  11600. var limit = Math.pow(2, 8 * byteLength - 1)
  11601. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  11602. }
  11603. var i = 0
  11604. var mul = 1
  11605. var sub = 0
  11606. this[offset] = value & 0xFF
  11607. while (++i < byteLength && (mul *= 0x100)) {
  11608. if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
  11609. sub = 1
  11610. }
  11611. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  11612. }
  11613. return offset + byteLength
  11614. }
  11615. Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
  11616. value = +value
  11617. offset = offset | 0
  11618. if (!noAssert) {
  11619. var limit = Math.pow(2, 8 * byteLength - 1)
  11620. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  11621. }
  11622. var i = byteLength - 1
  11623. var mul = 1
  11624. var sub = 0
  11625. this[offset + i] = value & 0xFF
  11626. while (--i >= 0 && (mul *= 0x100)) {
  11627. if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
  11628. sub = 1
  11629. }
  11630. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  11631. }
  11632. return offset + byteLength
  11633. }
  11634. Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
  11635. value = +value
  11636. offset = offset | 0
  11637. if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
  11638. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  11639. if (value < 0) value = 0xff + value + 1
  11640. this[offset] = (value & 0xff)
  11641. return offset + 1
  11642. }
  11643. Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
  11644. value = +value
  11645. offset = offset | 0
  11646. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  11647. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11648. this[offset] = (value & 0xff)
  11649. this[offset + 1] = (value >>> 8)
  11650. } else {
  11651. objectWriteUInt16(this, value, offset, true)
  11652. }
  11653. return offset + 2
  11654. }
  11655. Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
  11656. value = +value
  11657. offset = offset | 0
  11658. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  11659. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11660. this[offset] = (value >>> 8)
  11661. this[offset + 1] = (value & 0xff)
  11662. } else {
  11663. objectWriteUInt16(this, value, offset, false)
  11664. }
  11665. return offset + 2
  11666. }
  11667. Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
  11668. value = +value
  11669. offset = offset | 0
  11670. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  11671. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11672. this[offset] = (value & 0xff)
  11673. this[offset + 1] = (value >>> 8)
  11674. this[offset + 2] = (value >>> 16)
  11675. this[offset + 3] = (value >>> 24)
  11676. } else {
  11677. objectWriteUInt32(this, value, offset, true)
  11678. }
  11679. return offset + 4
  11680. }
  11681. Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
  11682. value = +value
  11683. offset = offset | 0
  11684. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  11685. if (value < 0) value = 0xffffffff + value + 1
  11686. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11687. this[offset] = (value >>> 24)
  11688. this[offset + 1] = (value >>> 16)
  11689. this[offset + 2] = (value >>> 8)
  11690. this[offset + 3] = (value & 0xff)
  11691. } else {
  11692. objectWriteUInt32(this, value, offset, false)
  11693. }
  11694. return offset + 4
  11695. }
  11696. function checkIEEE754 (buf, value, offset, ext, max, min) {
  11697. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  11698. if (offset < 0) throw new RangeError('Index out of range')
  11699. }
  11700. function writeFloat (buf, value, offset, littleEndian, noAssert) {
  11701. if (!noAssert) {
  11702. checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
  11703. }
  11704. ieee754.write(buf, value, offset, littleEndian, 23, 4)
  11705. return offset + 4
  11706. }
  11707. Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
  11708. return writeFloat(this, value, offset, true, noAssert)
  11709. }
  11710. Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
  11711. return writeFloat(this, value, offset, false, noAssert)
  11712. }
  11713. function writeDouble (buf, value, offset, littleEndian, noAssert) {
  11714. if (!noAssert) {
  11715. checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
  11716. }
  11717. ieee754.write(buf, value, offset, littleEndian, 52, 8)
  11718. return offset + 8
  11719. }
  11720. Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
  11721. return writeDouble(this, value, offset, true, noAssert)
  11722. }
  11723. Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
  11724. return writeDouble(this, value, offset, false, noAssert)
  11725. }
  11726. // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
  11727. Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  11728. if (!start) start = 0
  11729. if (!end && end !== 0) end = this.length
  11730. if (targetStart >= target.length) targetStart = target.length
  11731. if (!targetStart) targetStart = 0
  11732. if (end > 0 && end < start) end = start
  11733. // Copy 0 bytes; we're done
  11734. if (end === start) return 0
  11735. if (target.length === 0 || this.length === 0) return 0
  11736. // Fatal error conditions
  11737. if (targetStart < 0) {
  11738. throw new RangeError('targetStart out of bounds')
  11739. }
  11740. if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
  11741. if (end < 0) throw new RangeError('sourceEnd out of bounds')
  11742. // Are we oob?
  11743. if (end > this.length) end = this.length
  11744. if (target.length - targetStart < end - start) {
  11745. end = target.length - targetStart + start
  11746. }
  11747. var len = end - start
  11748. var i
  11749. if (this === target && start < targetStart && targetStart < end) {
  11750. // descending copy from end
  11751. for (i = len - 1; i >= 0; --i) {
  11752. target[i + targetStart] = this[i + start]
  11753. }
  11754. } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
  11755. // ascending copy from start
  11756. for (i = 0; i < len; ++i) {
  11757. target[i + targetStart] = this[i + start]
  11758. }
  11759. } else {
  11760. Uint8Array.prototype.set.call(
  11761. target,
  11762. this.subarray(start, start + len),
  11763. targetStart
  11764. )
  11765. }
  11766. return len
  11767. }
  11768. // Usage:
  11769. // buffer.fill(number[, offset[, end]])
  11770. // buffer.fill(buffer[, offset[, end]])
  11771. // buffer.fill(string[, offset[, end]][, encoding])
  11772. Buffer.prototype.fill = function fill (val, start, end, encoding) {
  11773. // Handle string cases:
  11774. if (typeof val === 'string') {
  11775. if (typeof start === 'string') {
  11776. encoding = start
  11777. start = 0
  11778. end = this.length
  11779. } else if (typeof end === 'string') {
  11780. encoding = end
  11781. end = this.length
  11782. }
  11783. if (val.length === 1) {
  11784. var code = val.charCodeAt(0)
  11785. if (code < 256) {
  11786. val = code
  11787. }
  11788. }
  11789. if (encoding !== undefined && typeof encoding !== 'string') {
  11790. throw new TypeError('encoding must be a string')
  11791. }
  11792. if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
  11793. throw new TypeError('Unknown encoding: ' + encoding)
  11794. }
  11795. } else if (typeof val === 'number') {
  11796. val = val & 255
  11797. }
  11798. // Invalid ranges are not set to a default, so can range check early.
  11799. if (start < 0 || this.length < start || this.length < end) {
  11800. throw new RangeError('Out of range index')
  11801. }
  11802. if (end <= start) {
  11803. return this
  11804. }
  11805. start = start >>> 0
  11806. end = end === undefined ? this.length : end >>> 0
  11807. if (!val) val = 0
  11808. var i
  11809. if (typeof val === 'number') {
  11810. for (i = start; i < end; ++i) {
  11811. this[i] = val
  11812. }
  11813. } else {
  11814. var bytes = Buffer.isBuffer(val)
  11815. ? val
  11816. : utf8ToBytes(new Buffer(val, encoding).toString())
  11817. var len = bytes.length
  11818. for (i = 0; i < end - start; ++i) {
  11819. this[i + start] = bytes[i % len]
  11820. }
  11821. }
  11822. return this
  11823. }
  11824. // HELPER FUNCTIONS
  11825. // ================
  11826. var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
  11827. function base64clean (str) {
  11828. // Node strips out invalid characters like \n and \t from the string, base64-js does not
  11829. str = stringtrim(str).replace(INVALID_BASE64_RE, '')
  11830. // Node converts strings with length < 2 to ''
  11831. if (str.length < 2) return ''
  11832. // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
  11833. while (str.length % 4 !== 0) {
  11834. str = str + '='
  11835. }
  11836. return str
  11837. }
  11838. function stringtrim (str) {
  11839. if (str.trim) return str.trim()
  11840. return str.replace(/^\s+|\s+$/g, '')
  11841. }
  11842. function toHex (n) {
  11843. if (n < 16) return '0' + n.toString(16)
  11844. return n.toString(16)
  11845. }
  11846. function utf8ToBytes (string, units) {
  11847. units = units || Infinity
  11848. var codePoint
  11849. var length = string.length
  11850. var leadSurrogate = null
  11851. var bytes = []
  11852. for (var i = 0; i < length; ++i) {
  11853. codePoint = string.charCodeAt(i)
  11854. // is surrogate component
  11855. if (codePoint > 0xD7FF && codePoint < 0xE000) {
  11856. // last char was a lead
  11857. if (!leadSurrogate) {
  11858. // no lead yet
  11859. if (codePoint > 0xDBFF) {
  11860. // unexpected trail
  11861. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11862. continue
  11863. } else if (i + 1 === length) {
  11864. // unpaired lead
  11865. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11866. continue
  11867. }
  11868. // valid lead
  11869. leadSurrogate = codePoint
  11870. continue
  11871. }
  11872. // 2 leads in a row
  11873. if (codePoint < 0xDC00) {
  11874. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11875. leadSurrogate = codePoint
  11876. continue
  11877. }
  11878. // valid surrogate pair
  11879. codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
  11880. } else if (leadSurrogate) {
  11881. // valid bmp char, but last char was a lead
  11882. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11883. }
  11884. leadSurrogate = null
  11885. // encode utf8
  11886. if (codePoint < 0x80) {
  11887. if ((units -= 1) < 0) break
  11888. bytes.push(codePoint)
  11889. } else if (codePoint < 0x800) {
  11890. if ((units -= 2) < 0) break
  11891. bytes.push(
  11892. codePoint >> 0x6 | 0xC0,
  11893. codePoint & 0x3F | 0x80
  11894. )
  11895. } else if (codePoint < 0x10000) {
  11896. if ((units -= 3) < 0) break
  11897. bytes.push(
  11898. codePoint >> 0xC | 0xE0,
  11899. codePoint >> 0x6 & 0x3F | 0x80,
  11900. codePoint & 0x3F | 0x80
  11901. )
  11902. } else if (codePoint < 0x110000) {
  11903. if ((units -= 4) < 0) break
  11904. bytes.push(
  11905. codePoint >> 0x12 | 0xF0,
  11906. codePoint >> 0xC & 0x3F | 0x80,
  11907. codePoint >> 0x6 & 0x3F | 0x80,
  11908. codePoint & 0x3F | 0x80
  11909. )
  11910. } else {
  11911. throw new Error('Invalid code point')
  11912. }
  11913. }
  11914. return bytes
  11915. }
  11916. function asciiToBytes (str) {
  11917. var byteArray = []
  11918. for (var i = 0; i < str.length; ++i) {
  11919. // Node's code seems to be doing this and not & 0x7F..
  11920. byteArray.push(str.charCodeAt(i) & 0xFF)
  11921. }
  11922. return byteArray
  11923. }
  11924. function utf16leToBytes (str, units) {
  11925. var c, hi, lo
  11926. var byteArray = []
  11927. for (var i = 0; i < str.length; ++i) {
  11928. if ((units -= 2) < 0) break
  11929. c = str.charCodeAt(i)
  11930. hi = c >> 8
  11931. lo = c % 256
  11932. byteArray.push(lo)
  11933. byteArray.push(hi)
  11934. }
  11935. return byteArray
  11936. }
  11937. function base64ToBytes (str) {
  11938. return base64.toByteArray(base64clean(str))
  11939. }
  11940. function blitBuffer (src, dst, offset, length) {
  11941. for (var i = 0; i < length; ++i) {
  11942. if ((i + offset >= dst.length) || (i >= src.length)) break
  11943. dst[i + offset] = src[i]
  11944. }
  11945. return i
  11946. }
  11947. function isnan (val) {
  11948. return val !== val // eslint-disable-line no-self-compare
  11949. }
  11950. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 3)))
  11951. /***/ }),
  11952. /* 55 */
  11953. /*!*****************************************!*\
  11954. !*** ./node_modules/base64-js/index.js ***!
  11955. \*****************************************/
  11956. /*! no static exports found */
  11957. /***/ (function(module, exports, __webpack_require__) {
  11958. "use strict";
  11959. exports.byteLength = byteLength
  11960. exports.toByteArray = toByteArray
  11961. exports.fromByteArray = fromByteArray
  11962. var lookup = []
  11963. var revLookup = []
  11964. var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
  11965. var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  11966. for (var i = 0, len = code.length; i < len; ++i) {
  11967. lookup[i] = code[i]
  11968. revLookup[code.charCodeAt(i)] = i
  11969. }
  11970. // Support decoding URL-safe base64 strings, as Node.js does.
  11971. // See: https://en.wikipedia.org/wiki/Base64#URL_applications
  11972. revLookup['-'.charCodeAt(0)] = 62
  11973. revLookup['_'.charCodeAt(0)] = 63
  11974. function getLens (b64) {
  11975. var len = b64.length
  11976. if (len % 4 > 0) {
  11977. throw new Error('Invalid string. Length must be a multiple of 4')
  11978. }
  11979. // Trim off extra bytes after placeholder bytes are found
  11980. // See: https://github.com/beatgammit/base64-js/issues/42
  11981. var validLen = b64.indexOf('=')
  11982. if (validLen === -1) validLen = len
  11983. var placeHoldersLen = validLen === len
  11984. ? 0
  11985. : 4 - (validLen % 4)
  11986. return [validLen, placeHoldersLen]
  11987. }
  11988. // base64 is 4/3 + up to two characters of the original data
  11989. function byteLength (b64) {
  11990. var lens = getLens(b64)
  11991. var validLen = lens[0]
  11992. var placeHoldersLen = lens[1]
  11993. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  11994. }
  11995. function _byteLength (b64, validLen, placeHoldersLen) {
  11996. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  11997. }
  11998. function toByteArray (b64) {
  11999. var tmp
  12000. var lens = getLens(b64)
  12001. var validLen = lens[0]
  12002. var placeHoldersLen = lens[1]
  12003. var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
  12004. var curByte = 0
  12005. // if there are placeholders, only get up to the last complete 4 chars
  12006. var len = placeHoldersLen > 0
  12007. ? validLen - 4
  12008. : validLen
  12009. var i
  12010. for (i = 0; i < len; i += 4) {
  12011. tmp =
  12012. (revLookup[b64.charCodeAt(i)] << 18) |
  12013. (revLookup[b64.charCodeAt(i + 1)] << 12) |
  12014. (revLookup[b64.charCodeAt(i + 2)] << 6) |
  12015. revLookup[b64.charCodeAt(i + 3)]
  12016. arr[curByte++] = (tmp >> 16) & 0xFF
  12017. arr[curByte++] = (tmp >> 8) & 0xFF
  12018. arr[curByte++] = tmp & 0xFF
  12019. }
  12020. if (placeHoldersLen === 2) {
  12021. tmp =
  12022. (revLookup[b64.charCodeAt(i)] << 2) |
  12023. (revLookup[b64.charCodeAt(i + 1)] >> 4)
  12024. arr[curByte++] = tmp & 0xFF
  12025. }
  12026. if (placeHoldersLen === 1) {
  12027. tmp =
  12028. (revLookup[b64.charCodeAt(i)] << 10) |
  12029. (revLookup[b64.charCodeAt(i + 1)] << 4) |
  12030. (revLookup[b64.charCodeAt(i + 2)] >> 2)
  12031. arr[curByte++] = (tmp >> 8) & 0xFF
  12032. arr[curByte++] = tmp & 0xFF
  12033. }
  12034. return arr
  12035. }
  12036. function tripletToBase64 (num) {
  12037. return lookup[num >> 18 & 0x3F] +
  12038. lookup[num >> 12 & 0x3F] +
  12039. lookup[num >> 6 & 0x3F] +
  12040. lookup[num & 0x3F]
  12041. }
  12042. function encodeChunk (uint8, start, end) {
  12043. var tmp
  12044. var output = []
  12045. for (var i = start; i < end; i += 3) {
  12046. tmp =
  12047. ((uint8[i] << 16) & 0xFF0000) +
  12048. ((uint8[i + 1] << 8) & 0xFF00) +
  12049. (uint8[i + 2] & 0xFF)
  12050. output.push(tripletToBase64(tmp))
  12051. }
  12052. return output.join('')
  12053. }
  12054. function fromByteArray (uint8) {
  12055. var tmp
  12056. var len = uint8.length
  12057. var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
  12058. var parts = []
  12059. var maxChunkLength = 16383 // must be multiple of 3
  12060. // go through the array every three bytes, we'll deal with trailing stuff later
  12061. for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
  12062. parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
  12063. }
  12064. // pad the end with zeros, but make sure to not forget the extra bytes
  12065. if (extraBytes === 1) {
  12066. tmp = uint8[len - 1]
  12067. parts.push(
  12068. lookup[tmp >> 2] +
  12069. lookup[(tmp << 4) & 0x3F] +
  12070. '=='
  12071. )
  12072. } else if (extraBytes === 2) {
  12073. tmp = (uint8[len - 2] << 8) + uint8[len - 1]
  12074. parts.push(
  12075. lookup[tmp >> 10] +
  12076. lookup[(tmp >> 4) & 0x3F] +
  12077. lookup[(tmp << 2) & 0x3F] +
  12078. '='
  12079. )
  12080. }
  12081. return parts.join('')
  12082. }
  12083. /***/ }),
  12084. /* 56 */
  12085. /*!***************************************!*\
  12086. !*** ./node_modules/ieee754/index.js ***!
  12087. \***************************************/
  12088. /*! no static exports found */
  12089. /***/ (function(module, exports) {
  12090. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  12091. exports.read = function (buffer, offset, isLE, mLen, nBytes) {
  12092. var e, m
  12093. var eLen = (nBytes * 8) - mLen - 1
  12094. var eMax = (1 << eLen) - 1
  12095. var eBias = eMax >> 1
  12096. var nBits = -7
  12097. var i = isLE ? (nBytes - 1) : 0
  12098. var d = isLE ? -1 : 1
  12099. var s = buffer[offset + i]
  12100. i += d
  12101. e = s & ((1 << (-nBits)) - 1)
  12102. s >>= (-nBits)
  12103. nBits += eLen
  12104. for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  12105. m = e & ((1 << (-nBits)) - 1)
  12106. e >>= (-nBits)
  12107. nBits += mLen
  12108. for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  12109. if (e === 0) {
  12110. e = 1 - eBias
  12111. } else if (e === eMax) {
  12112. return m ? NaN : ((s ? -1 : 1) * Infinity)
  12113. } else {
  12114. m = m + Math.pow(2, mLen)
  12115. e = e - eBias
  12116. }
  12117. return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
  12118. }
  12119. exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
  12120. var e, m, c
  12121. var eLen = (nBytes * 8) - mLen - 1
  12122. var eMax = (1 << eLen) - 1
  12123. var eBias = eMax >> 1
  12124. var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
  12125. var i = isLE ? 0 : (nBytes - 1)
  12126. var d = isLE ? 1 : -1
  12127. var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
  12128. value = Math.abs(value)
  12129. if (isNaN(value) || value === Infinity) {
  12130. m = isNaN(value) ? 1 : 0
  12131. e = eMax
  12132. } else {
  12133. e = Math.floor(Math.log(value) / Math.LN2)
  12134. if (value * (c = Math.pow(2, -e)) < 1) {
  12135. e--
  12136. c *= 2
  12137. }
  12138. if (e + eBias >= 1) {
  12139. value += rt / c
  12140. } else {
  12141. value += rt * Math.pow(2, 1 - eBias)
  12142. }
  12143. if (value * c >= 2) {
  12144. e++
  12145. c /= 2
  12146. }
  12147. if (e + eBias >= eMax) {
  12148. m = 0
  12149. e = eMax
  12150. } else if (e + eBias >= 1) {
  12151. m = ((value * c) - 1) * Math.pow(2, mLen)
  12152. e = e + eBias
  12153. } else {
  12154. m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
  12155. e = 0
  12156. }
  12157. }
  12158. for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
  12159. e = (e << mLen) | m
  12160. eLen += mLen
  12161. for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
  12162. buffer[offset + i - d] |= s * 128
  12163. }
  12164. /***/ }),
  12165. /* 57 */
  12166. /*!***************************************!*\
  12167. !*** ./node_modules/isarray/index.js ***!
  12168. \***************************************/
  12169. /*! no static exports found */
  12170. /***/ (function(module, exports) {
  12171. var toString = {}.toString;
  12172. module.exports = Array.isArray || function (arr) {
  12173. return toString.call(arr) == '[object Array]';
  12174. };
  12175. /***/ }),
  12176. /* 58 */
  12177. /*!*****************************************************************************************************!*\
  12178. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/util/route.js ***!
  12179. \*****************************************************************************************************/
  12180. /*! no static exports found */
  12181. /***/ (function(module, exports, __webpack_require__) {
  12182. "use strict";
  12183. /* WEBPACK VAR INJECTION */(function(uni) {
  12184. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12185. Object.defineProperty(exports, "__esModule", {
  12186. value: true
  12187. });
  12188. exports.default = void 0;
  12189. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 59));
  12190. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 61));
  12191. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  12192. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  12193. /**
  12194. * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
  12195. * 并且带有路由拦截功能
  12196. */
  12197. var Router = /*#__PURE__*/function () {
  12198. function Router() {
  12199. (0, _classCallCheck2.default)(this, Router);
  12200. // 原始属性定义
  12201. this.config = {
  12202. type: 'navigateTo',
  12203. url: '',
  12204. delta: 1,
  12205. // navigateBack页面后退时,回退的层数
  12206. params: {},
  12207. // 传递的参数
  12208. animationType: 'pop-in',
  12209. // 窗口动画,只在APP有效
  12210. animationDuration: 300,
  12211. // 窗口动画持续时间,单位毫秒,只在APP有效
  12212. intercept: false // 是否需要拦截
  12213. };
  12214. // 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
  12215. // 这里在构造函数中进行this绑定
  12216. this.route = this.route.bind(this);
  12217. }
  12218. // 判断url前面是否有"/",如果没有则加上,否则无法跳转
  12219. (0, _createClass2.default)(Router, [{
  12220. key: "addRootPath",
  12221. value: function addRootPath(url) {
  12222. return url[0] === '/' ? url : "/".concat(url);
  12223. }
  12224. // 整合路由参数
  12225. }, {
  12226. key: "mixinParam",
  12227. value: function mixinParam(url, params) {
  12228. url = url && this.addRootPath(url);
  12229. // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
  12230. // 如果有url中有get参数,转换后无需带上"?"
  12231. var query = '';
  12232. if (/.*\/.*\?.*=.*/.test(url)) {
  12233. // object对象转为get类型的参数
  12234. query = uni.$u.queryParams(params, false);
  12235. // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
  12236. return url += "&".concat(query);
  12237. }
  12238. // 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
  12239. query = uni.$u.queryParams(params);
  12240. return url += query;
  12241. }
  12242. // 对外的方法名称
  12243. }, {
  12244. key: "route",
  12245. value: function () {
  12246. var _route = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  12247. var options,
  12248. params,
  12249. mergeConfig,
  12250. isNext,
  12251. _args = arguments;
  12252. return _regenerator.default.wrap(function _callee$(_context) {
  12253. while (1) {
  12254. switch (_context.prev = _context.next) {
  12255. case 0:
  12256. options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
  12257. params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
  12258. // 合并用户的配置和内部的默认配置
  12259. mergeConfig = {};
  12260. if (typeof options === 'string') {
  12261. // 如果options为字符串,则为route(url, params)的形式
  12262. mergeConfig.url = this.mixinParam(options, params);
  12263. mergeConfig.type = 'navigateTo';
  12264. } else {
  12265. mergeConfig = uni.$u.deepMerge(this.config, options);
  12266. // 否则正常使用mergeConfig中的url和params进行拼接
  12267. mergeConfig.url = this.mixinParam(options.url, options.params);
  12268. }
  12269. // 如果本次跳转的路径和本页面路径一致,不执行跳转,防止用户快速点击跳转按钮,造成多次跳转同一个页面的问题
  12270. if (!(mergeConfig.url === uni.$u.page())) {
  12271. _context.next = 6;
  12272. break;
  12273. }
  12274. return _context.abrupt("return");
  12275. case 6:
  12276. if (params.intercept) {
  12277. this.config.intercept = params.intercept;
  12278. }
  12279. // params参数也带给拦截器
  12280. mergeConfig.params = params;
  12281. // 合并内外部参数
  12282. mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
  12283. // 判断用户是否定义了拦截器
  12284. if (!(typeof uni.$u.routeIntercept === 'function')) {
  12285. _context.next = 16;
  12286. break;
  12287. }
  12288. _context.next = 12;
  12289. return new Promise(function (resolve, reject) {
  12290. uni.$u.routeIntercept(mergeConfig, resolve);
  12291. });
  12292. case 12:
  12293. isNext = _context.sent;
  12294. // 如果isNext为true,则执行路由跳转
  12295. isNext && this.openPage(mergeConfig);
  12296. _context.next = 17;
  12297. break;
  12298. case 16:
  12299. this.openPage(mergeConfig);
  12300. case 17:
  12301. case "end":
  12302. return _context.stop();
  12303. }
  12304. }
  12305. }, _callee, this);
  12306. }));
  12307. function route() {
  12308. return _route.apply(this, arguments);
  12309. }
  12310. return route;
  12311. }() // 执行路由跳转
  12312. }, {
  12313. key: "openPage",
  12314. value: function openPage(config) {
  12315. // 解构参数
  12316. var url = config.url,
  12317. type = config.type,
  12318. delta = config.delta,
  12319. animationType = config.animationType,
  12320. animationDuration = config.animationDuration;
  12321. if (config.type == 'navigateTo' || config.type == 'to') {
  12322. uni.navigateTo({
  12323. url: url,
  12324. animationType: animationType,
  12325. animationDuration: animationDuration
  12326. });
  12327. }
  12328. if (config.type == 'redirectTo' || config.type == 'redirect') {
  12329. uni.redirectTo({
  12330. url: url
  12331. });
  12332. }
  12333. if (config.type == 'switchTab' || config.type == 'tab') {
  12334. uni.switchTab({
  12335. url: url
  12336. });
  12337. }
  12338. if (config.type == 'reLaunch' || config.type == 'launch') {
  12339. uni.reLaunch({
  12340. url: url
  12341. });
  12342. }
  12343. if (config.type == 'navigateBack' || config.type == 'back') {
  12344. uni.navigateBack({
  12345. delta: delta
  12346. });
  12347. }
  12348. }
  12349. }]);
  12350. return Router;
  12351. }();
  12352. var _default = new Router().route;
  12353. exports.default = _default;
  12354. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  12355. /***/ }),
  12356. /* 59 */
  12357. /*!************************************************************************************************!*\
  12358. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  12359. \************************************************************************************************/
  12360. /*! no static exports found */
  12361. /***/ (function(module, exports, __webpack_require__) {
  12362. // TODO(Babel 8): Remove this file.
  12363. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 60)();
  12364. module.exports = runtime;
  12365. /***/ }),
  12366. /* 60 */
  12367. /*!*******************************************************************!*\
  12368. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  12369. \*******************************************************************/
  12370. /*! no static exports found */
  12371. /***/ (function(module, exports, __webpack_require__) {
  12372. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  12373. function _regeneratorRuntime() {
  12374. "use strict";
  12375. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  12376. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  12377. return exports;
  12378. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12379. var exports = {},
  12380. Op = Object.prototype,
  12381. hasOwn = Op.hasOwnProperty,
  12382. defineProperty = Object.defineProperty || function (obj, key, desc) {
  12383. obj[key] = desc.value;
  12384. },
  12385. $Symbol = "function" == typeof Symbol ? Symbol : {},
  12386. iteratorSymbol = $Symbol.iterator || "@@iterator",
  12387. asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
  12388. toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  12389. function define(obj, key, value) {
  12390. return Object.defineProperty(obj, key, {
  12391. value: value,
  12392. enumerable: !0,
  12393. configurable: !0,
  12394. writable: !0
  12395. }), obj[key];
  12396. }
  12397. try {
  12398. define({}, "");
  12399. } catch (err) {
  12400. define = function define(obj, key, value) {
  12401. return obj[key] = value;
  12402. };
  12403. }
  12404. function wrap(innerFn, outerFn, self, tryLocsList) {
  12405. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
  12406. generator = Object.create(protoGenerator.prototype),
  12407. context = new Context(tryLocsList || []);
  12408. return defineProperty(generator, "_invoke", {
  12409. value: makeInvokeMethod(innerFn, self, context)
  12410. }), generator;
  12411. }
  12412. function tryCatch(fn, obj, arg) {
  12413. try {
  12414. return {
  12415. type: "normal",
  12416. arg: fn.call(obj, arg)
  12417. };
  12418. } catch (err) {
  12419. return {
  12420. type: "throw",
  12421. arg: err
  12422. };
  12423. }
  12424. }
  12425. exports.wrap = wrap;
  12426. var ContinueSentinel = {};
  12427. function Generator() {}
  12428. function GeneratorFunction() {}
  12429. function GeneratorFunctionPrototype() {}
  12430. var IteratorPrototype = {};
  12431. define(IteratorPrototype, iteratorSymbol, function () {
  12432. return this;
  12433. });
  12434. var getProto = Object.getPrototypeOf,
  12435. NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  12436. NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
  12437. var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
  12438. function defineIteratorMethods(prototype) {
  12439. ["next", "throw", "return"].forEach(function (method) {
  12440. define(prototype, method, function (arg) {
  12441. return this._invoke(method, arg);
  12442. });
  12443. });
  12444. }
  12445. function AsyncIterator(generator, PromiseImpl) {
  12446. function invoke(method, arg, resolve, reject) {
  12447. var record = tryCatch(generator[method], generator, arg);
  12448. if ("throw" !== record.type) {
  12449. var result = record.arg,
  12450. value = result.value;
  12451. return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
  12452. invoke("next", value, resolve, reject);
  12453. }, function (err) {
  12454. invoke("throw", err, resolve, reject);
  12455. }) : PromiseImpl.resolve(value).then(function (unwrapped) {
  12456. result.value = unwrapped, resolve(result);
  12457. }, function (error) {
  12458. return invoke("throw", error, resolve, reject);
  12459. });
  12460. }
  12461. reject(record.arg);
  12462. }
  12463. var previousPromise;
  12464. defineProperty(this, "_invoke", {
  12465. value: function value(method, arg) {
  12466. function callInvokeWithMethodAndArg() {
  12467. return new PromiseImpl(function (resolve, reject) {
  12468. invoke(method, arg, resolve, reject);
  12469. });
  12470. }
  12471. return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  12472. }
  12473. });
  12474. }
  12475. function makeInvokeMethod(innerFn, self, context) {
  12476. var state = "suspendedStart";
  12477. return function (method, arg) {
  12478. if ("executing" === state) throw new Error("Generator is already running");
  12479. if ("completed" === state) {
  12480. if ("throw" === method) throw arg;
  12481. return doneResult();
  12482. }
  12483. for (context.method = method, context.arg = arg;;) {
  12484. var delegate = context.delegate;
  12485. if (delegate) {
  12486. var delegateResult = maybeInvokeDelegate(delegate, context);
  12487. if (delegateResult) {
  12488. if (delegateResult === ContinueSentinel) continue;
  12489. return delegateResult;
  12490. }
  12491. }
  12492. if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
  12493. if ("suspendedStart" === state) throw state = "completed", context.arg;
  12494. context.dispatchException(context.arg);
  12495. } else "return" === context.method && context.abrupt("return", context.arg);
  12496. state = "executing";
  12497. var record = tryCatch(innerFn, self, context);
  12498. if ("normal" === record.type) {
  12499. if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
  12500. return {
  12501. value: record.arg,
  12502. done: context.done
  12503. };
  12504. }
  12505. "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
  12506. }
  12507. };
  12508. }
  12509. function maybeInvokeDelegate(delegate, context) {
  12510. var methodName = context.method,
  12511. method = delegate.iterator[methodName];
  12512. 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;
  12513. var record = tryCatch(method, delegate.iterator, context.arg);
  12514. if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
  12515. var info = record.arg;
  12516. 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);
  12517. }
  12518. function pushTryEntry(locs) {
  12519. var entry = {
  12520. tryLoc: locs[0]
  12521. };
  12522. 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
  12523. }
  12524. function resetTryEntry(entry) {
  12525. var record = entry.completion || {};
  12526. record.type = "normal", delete record.arg, entry.completion = record;
  12527. }
  12528. function Context(tryLocsList) {
  12529. this.tryEntries = [{
  12530. tryLoc: "root"
  12531. }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
  12532. }
  12533. function values(iterable) {
  12534. if (iterable) {
  12535. var iteratorMethod = iterable[iteratorSymbol];
  12536. if (iteratorMethod) return iteratorMethod.call(iterable);
  12537. if ("function" == typeof iterable.next) return iterable;
  12538. if (!isNaN(iterable.length)) {
  12539. var i = -1,
  12540. next = function next() {
  12541. for (; ++i < iterable.length;) {
  12542. if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
  12543. }
  12544. return next.value = undefined, next.done = !0, next;
  12545. };
  12546. return next.next = next;
  12547. }
  12548. }
  12549. return {
  12550. next: doneResult
  12551. };
  12552. }
  12553. function doneResult() {
  12554. return {
  12555. value: undefined,
  12556. done: !0
  12557. };
  12558. }
  12559. return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
  12560. value: GeneratorFunctionPrototype,
  12561. configurable: !0
  12562. }), defineProperty(GeneratorFunctionPrototype, "constructor", {
  12563. value: GeneratorFunction,
  12564. configurable: !0
  12565. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
  12566. var ctor = "function" == typeof genFun && genFun.constructor;
  12567. return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
  12568. }, exports.mark = function (genFun) {
  12569. return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
  12570. }, exports.awrap = function (arg) {
  12571. return {
  12572. __await: arg
  12573. };
  12574. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
  12575. return this;
  12576. }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
  12577. void 0 === PromiseImpl && (PromiseImpl = Promise);
  12578. var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
  12579. return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
  12580. return result.done ? result.value : iter.next();
  12581. });
  12582. }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
  12583. return this;
  12584. }), define(Gp, "toString", function () {
  12585. return "[object Generator]";
  12586. }), exports.keys = function (val) {
  12587. var object = Object(val),
  12588. keys = [];
  12589. for (var key in object) {
  12590. keys.push(key);
  12591. }
  12592. return keys.reverse(), function next() {
  12593. for (; keys.length;) {
  12594. var key = keys.pop();
  12595. if (key in object) return next.value = key, next.done = !1, next;
  12596. }
  12597. return next.done = !0, next;
  12598. };
  12599. }, exports.values = values, Context.prototype = {
  12600. constructor: Context,
  12601. reset: function reset(skipTempReset) {
  12602. 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) {
  12603. "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
  12604. }
  12605. },
  12606. stop: function stop() {
  12607. this.done = !0;
  12608. var rootRecord = this.tryEntries[0].completion;
  12609. if ("throw" === rootRecord.type) throw rootRecord.arg;
  12610. return this.rval;
  12611. },
  12612. dispatchException: function dispatchException(exception) {
  12613. if (this.done) throw exception;
  12614. var context = this;
  12615. function handle(loc, caught) {
  12616. return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
  12617. }
  12618. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  12619. var entry = this.tryEntries[i],
  12620. record = entry.completion;
  12621. if ("root" === entry.tryLoc) return handle("end");
  12622. if (entry.tryLoc <= this.prev) {
  12623. var hasCatch = hasOwn.call(entry, "catchLoc"),
  12624. hasFinally = hasOwn.call(entry, "finallyLoc");
  12625. if (hasCatch && hasFinally) {
  12626. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  12627. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  12628. } else if (hasCatch) {
  12629. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  12630. } else {
  12631. if (!hasFinally) throw new Error("try statement without catch or finally");
  12632. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  12633. }
  12634. }
  12635. }
  12636. },
  12637. abrupt: function abrupt(type, arg) {
  12638. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  12639. var entry = this.tryEntries[i];
  12640. if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
  12641. var finallyEntry = entry;
  12642. break;
  12643. }
  12644. }
  12645. finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
  12646. var record = finallyEntry ? finallyEntry.completion : {};
  12647. return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
  12648. },
  12649. complete: function complete(record, afterLoc) {
  12650. if ("throw" === record.type) throw record.arg;
  12651. 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;
  12652. },
  12653. finish: function finish(finallyLoc) {
  12654. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  12655. var entry = this.tryEntries[i];
  12656. if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
  12657. }
  12658. },
  12659. "catch": function _catch(tryLoc) {
  12660. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  12661. var entry = this.tryEntries[i];
  12662. if (entry.tryLoc === tryLoc) {
  12663. var record = entry.completion;
  12664. if ("throw" === record.type) {
  12665. var thrown = record.arg;
  12666. resetTryEntry(entry);
  12667. }
  12668. return thrown;
  12669. }
  12670. }
  12671. throw new Error("illegal catch attempt");
  12672. },
  12673. delegateYield: function delegateYield(iterable, resultName, nextLoc) {
  12674. return this.delegate = {
  12675. iterator: values(iterable),
  12676. resultName: resultName,
  12677. nextLoc: nextLoc
  12678. }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
  12679. }
  12680. }, exports;
  12681. }
  12682. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12683. /***/ }),
  12684. /* 61 */
  12685. /*!*****************************************************************!*\
  12686. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  12687. \*****************************************************************/
  12688. /*! no static exports found */
  12689. /***/ (function(module, exports) {
  12690. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  12691. try {
  12692. var info = gen[key](arg);
  12693. var value = info.value;
  12694. } catch (error) {
  12695. reject(error);
  12696. return;
  12697. }
  12698. if (info.done) {
  12699. resolve(value);
  12700. } else {
  12701. Promise.resolve(value).then(_next, _throw);
  12702. }
  12703. }
  12704. function _asyncToGenerator(fn) {
  12705. return function () {
  12706. var self = this,
  12707. args = arguments;
  12708. return new Promise(function (resolve, reject) {
  12709. var gen = fn.apply(self, args);
  12710. function _next(value) {
  12711. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  12712. }
  12713. function _throw(err) {
  12714. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  12715. }
  12716. _next(undefined);
  12717. });
  12718. };
  12719. }
  12720. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12721. /***/ }),
  12722. /* 62 */
  12723. /*!*****************************************************************************************************************!*\
  12724. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/function/colorGradient.js ***!
  12725. \*****************************************************************************************************************/
  12726. /*! no static exports found */
  12727. /***/ (function(module, exports, __webpack_require__) {
  12728. "use strict";
  12729. Object.defineProperty(exports, "__esModule", {
  12730. value: true
  12731. });
  12732. exports.default = void 0;
  12733. /**
  12734. * 求两个颜色之间的渐变值
  12735. * @param {string} startColor 开始的颜色
  12736. * @param {string} endColor 结束的颜色
  12737. * @param {number} step 颜色等分的份额
  12738. * */
  12739. function colorGradient() {
  12740. var startColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'rgb(0, 0, 0)';
  12741. var endColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rgb(255, 255, 255)';
  12742. var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
  12743. var startRGB = hexToRgb(startColor, false); // 转换为rgb数组模式
  12744. var startR = startRGB[0];
  12745. var startG = startRGB[1];
  12746. var startB = startRGB[2];
  12747. var endRGB = hexToRgb(endColor, false);
  12748. var endR = endRGB[0];
  12749. var endG = endRGB[1];
  12750. var endB = endRGB[2];
  12751. var sR = (endR - startR) / step; // 总差值
  12752. var sG = (endG - startG) / step;
  12753. var sB = (endB - startB) / step;
  12754. var colorArr = [];
  12755. for (var i = 0; i < step; i++) {
  12756. // 计算每一步的hex值
  12757. var hex = rgbToHex("rgb(".concat(Math.round(sR * i + startR), ",").concat(Math.round(sG * i + startG), ",").concat(Math.round(sB * i + startB), ")"));
  12758. // 确保第一个颜色值为startColor的值
  12759. if (i === 0) hex = rgbToHex(startColor);
  12760. // 确保最后一个颜色值为endColor的值
  12761. if (i === step - 1) hex = rgbToHex(endColor);
  12762. colorArr.push(hex);
  12763. }
  12764. return colorArr;
  12765. }
  12766. // 将hex表示方式转换为rgb表示方式(这里返回rgb数组模式)
  12767. function hexToRgb(sColor) {
  12768. var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  12769. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12770. sColor = String(sColor).toLowerCase();
  12771. if (sColor && reg.test(sColor)) {
  12772. if (sColor.length === 4) {
  12773. var sColorNew = '#';
  12774. for (var i = 1; i < 4; i += 1) {
  12775. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  12776. }
  12777. sColor = sColorNew;
  12778. }
  12779. // 处理六位的颜色值
  12780. var sColorChange = [];
  12781. for (var _i = 1; _i < 7; _i += 2) {
  12782. sColorChange.push(parseInt("0x".concat(sColor.slice(_i, _i + 2))));
  12783. }
  12784. if (!str) {
  12785. return sColorChange;
  12786. }
  12787. return "rgb(".concat(sColorChange[0], ",").concat(sColorChange[1], ",").concat(sColorChange[2], ")");
  12788. }
  12789. if (/^(rgb|RGB)/.test(sColor)) {
  12790. var arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  12791. return arr.map(function (val) {
  12792. return Number(val);
  12793. });
  12794. }
  12795. return sColor;
  12796. }
  12797. // 将rgb表示方式转换为hex表示方式
  12798. function rgbToHex(rgb) {
  12799. var _this = rgb;
  12800. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12801. if (/^(rgb|RGB)/.test(_this)) {
  12802. var aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  12803. var strHex = '#';
  12804. for (var i = 0; i < aColor.length; i++) {
  12805. var hex = Number(aColor[i]).toString(16);
  12806. hex = String(hex).length == 1 ? "".concat(0, hex) : hex; // 保证每个rgb的值为2位
  12807. if (hex === '0') {
  12808. hex += hex;
  12809. }
  12810. strHex += hex;
  12811. }
  12812. if (strHex.length !== 7) {
  12813. strHex = _this;
  12814. }
  12815. return strHex;
  12816. }
  12817. if (reg.test(_this)) {
  12818. var aNum = _this.replace(/#/, '').split('');
  12819. if (aNum.length === 6) {
  12820. return _this;
  12821. }
  12822. if (aNum.length === 3) {
  12823. var numHex = '#';
  12824. for (var _i2 = 0; _i2 < aNum.length; _i2 += 1) {
  12825. numHex += aNum[_i2] + aNum[_i2];
  12826. }
  12827. return numHex;
  12828. }
  12829. } else {
  12830. return _this;
  12831. }
  12832. }
  12833. /**
  12834. * JS颜色十六进制转换为rgb或rgba,返回的格式为 rgba(255,255,255,0.5)字符串
  12835. * sHex为传入的十六进制的色值
  12836. * alpha为rgba的透明度
  12837. */
  12838. function colorToRgba(color, alpha) {
  12839. color = rgbToHex(color);
  12840. // 十六进制颜色值的正则表达式
  12841. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12842. /* 16进制颜色转为RGB格式 */
  12843. var sColor = String(color).toLowerCase();
  12844. if (sColor && reg.test(sColor)) {
  12845. if (sColor.length === 4) {
  12846. var sColorNew = '#';
  12847. for (var i = 1; i < 4; i += 1) {
  12848. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  12849. }
  12850. sColor = sColorNew;
  12851. }
  12852. // 处理六位的颜色值
  12853. var sColorChange = [];
  12854. for (var _i3 = 1; _i3 < 7; _i3 += 2) {
  12855. sColorChange.push(parseInt("0x".concat(sColor.slice(_i3, _i3 + 2))));
  12856. }
  12857. // return sColorChange.join(',')
  12858. return "rgba(".concat(sColorChange.join(','), ",").concat(alpha, ")");
  12859. }
  12860. return sColor;
  12861. }
  12862. var _default = {
  12863. colorGradient: colorGradient,
  12864. hexToRgb: hexToRgb,
  12865. rgbToHex: rgbToHex,
  12866. colorToRgba: colorToRgba
  12867. };
  12868. exports.default = _default;
  12869. /***/ }),
  12870. /* 63 */
  12871. /*!********************************************************************************************************!*\
  12872. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/function/test.js ***!
  12873. \********************************************************************************************************/
  12874. /*! no static exports found */
  12875. /***/ (function(module, exports, __webpack_require__) {
  12876. "use strict";
  12877. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12878. Object.defineProperty(exports, "__esModule", {
  12879. value: true
  12880. });
  12881. exports.default = void 0;
  12882. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  12883. /**
  12884. * 验证电子邮箱格式
  12885. */
  12886. function email(value) {
  12887. return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
  12888. }
  12889. /**
  12890. * 验证手机格式
  12891. */
  12892. function mobile(value) {
  12893. return /^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/.test(value);
  12894. }
  12895. /**
  12896. * 验证URL格式
  12897. */
  12898. function url(value) {
  12899. 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);
  12900. }
  12901. /**
  12902. * 验证日期格式
  12903. */
  12904. function date(value) {
  12905. if (!value) return false;
  12906. // 判断是否数值或者字符串数值(意味着为时间戳),转为数值,否则new Date无法识别字符串时间戳
  12907. if (number(value)) value = +value;
  12908. return !/Invalid|NaN/.test(new Date(value).toString());
  12909. }
  12910. /**
  12911. * 验证ISO类型的日期格式
  12912. */
  12913. function dateISO(value) {
  12914. return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);
  12915. }
  12916. /**
  12917. * 验证十进制数字
  12918. */
  12919. function number(value) {
  12920. return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value);
  12921. }
  12922. /**
  12923. * 验证字符串
  12924. */
  12925. function string(value) {
  12926. return typeof value === 'string';
  12927. }
  12928. /**
  12929. * 验证整数
  12930. */
  12931. function digits(value) {
  12932. return /^\d+$/.test(value);
  12933. }
  12934. /**
  12935. * 验证身份证号码
  12936. */
  12937. function idCard(value) {
  12938. 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);
  12939. }
  12940. /**
  12941. * 是否车牌号
  12942. */
  12943. function carNo(value) {
  12944. // 新能源车牌
  12945. var xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
  12946. // 旧车牌
  12947. var creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
  12948. if (value.length === 7) {
  12949. return creg.test(value);
  12950. }
  12951. if (value.length === 8) {
  12952. return xreg.test(value);
  12953. }
  12954. return false;
  12955. }
  12956. /**
  12957. * 金额,只允许2位小数
  12958. */
  12959. function amount(value) {
  12960. // 金额,只允许保留两位小数
  12961. return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value);
  12962. }
  12963. /**
  12964. * 中文
  12965. */
  12966. function chinese(value) {
  12967. var reg = /^[\u4e00-\u9fa5]+$/gi;
  12968. return reg.test(value);
  12969. }
  12970. /**
  12971. * 只能输入字母
  12972. */
  12973. function letter(value) {
  12974. return /^[a-zA-Z]*$/.test(value);
  12975. }
  12976. /**
  12977. * 只能是字母或者数字
  12978. */
  12979. function enOrNum(value) {
  12980. // 英文或者数字
  12981. var reg = /^[0-9a-zA-Z]*$/g;
  12982. return reg.test(value);
  12983. }
  12984. /**
  12985. * 验证是否包含某个值
  12986. */
  12987. function contains(value, param) {
  12988. return value.indexOf(param) >= 0;
  12989. }
  12990. /**
  12991. * 验证一个值范围[min, max]
  12992. */
  12993. function range(value, param) {
  12994. return value >= param[0] && value <= param[1];
  12995. }
  12996. /**
  12997. * 验证一个长度范围[min, max]
  12998. */
  12999. function rangeLength(value, param) {
  13000. return value.length >= param[0] && value.length <= param[1];
  13001. }
  13002. /**
  13003. * 是否固定电话
  13004. */
  13005. function landline(value) {
  13006. var reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;
  13007. return reg.test(value);
  13008. }
  13009. /**
  13010. * 判断是否为空
  13011. */
  13012. function empty(value) {
  13013. switch ((0, _typeof2.default)(value)) {
  13014. case 'undefined':
  13015. return true;
  13016. case 'string':
  13017. if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) return true;
  13018. break;
  13019. case 'boolean':
  13020. if (!value) return true;
  13021. break;
  13022. case 'number':
  13023. if (value === 0 || isNaN(value)) return true;
  13024. break;
  13025. case 'object':
  13026. if (value === null || value.length === 0) return true;
  13027. for (var i in value) {
  13028. return false;
  13029. }
  13030. return true;
  13031. }
  13032. return false;
  13033. }
  13034. /**
  13035. * 是否json字符串
  13036. */
  13037. function jsonString(value) {
  13038. if (typeof value === 'string') {
  13039. try {
  13040. var obj = JSON.parse(value);
  13041. if ((0, _typeof2.default)(obj) === 'object' && obj) {
  13042. return true;
  13043. }
  13044. return false;
  13045. } catch (e) {
  13046. return false;
  13047. }
  13048. }
  13049. return false;
  13050. }
  13051. /**
  13052. * 是否数组
  13053. */
  13054. function array(value) {
  13055. if (typeof Array.isArray === 'function') {
  13056. return Array.isArray(value);
  13057. }
  13058. return Object.prototype.toString.call(value) === '[object Array]';
  13059. }
  13060. /**
  13061. * 是否对象
  13062. */
  13063. function object(value) {
  13064. return Object.prototype.toString.call(value) === '[object Object]';
  13065. }
  13066. /**
  13067. * 是否短信验证码
  13068. */
  13069. function code(value) {
  13070. var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
  13071. return new RegExp("^\\d{".concat(len, "}$")).test(value);
  13072. }
  13073. /**
  13074. * 是否函数方法
  13075. * @param {Object} value
  13076. */
  13077. function func(value) {
  13078. return typeof value === 'function';
  13079. }
  13080. /**
  13081. * 是否promise对象
  13082. * @param {Object} value
  13083. */
  13084. function promise(value) {
  13085. return object(value) && func(value.then) && func(value.catch);
  13086. }
  13087. /** 是否图片格式
  13088. * @param {Object} value
  13089. */
  13090. function image(value) {
  13091. var newValue = value.split('?')[0];
  13092. var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  13093. return IMAGE_REGEXP.test(newValue);
  13094. }
  13095. /**
  13096. * 是否视频格式
  13097. * @param {Object} value
  13098. */
  13099. function video(value) {
  13100. var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;
  13101. return VIDEO_REGEXP.test(value);
  13102. }
  13103. /**
  13104. * 是否为正则对象
  13105. * @param {Object}
  13106. * @return {Boolean}
  13107. */
  13108. function regExp(o) {
  13109. return o && Object.prototype.toString.call(o) === '[object RegExp]';
  13110. }
  13111. var _default = {
  13112. email: email,
  13113. mobile: mobile,
  13114. url: url,
  13115. date: date,
  13116. dateISO: dateISO,
  13117. number: number,
  13118. digits: digits,
  13119. idCard: idCard,
  13120. carNo: carNo,
  13121. amount: amount,
  13122. chinese: chinese,
  13123. letter: letter,
  13124. enOrNum: enOrNum,
  13125. contains: contains,
  13126. range: range,
  13127. rangeLength: rangeLength,
  13128. empty: empty,
  13129. isEmpty: empty,
  13130. jsonString: jsonString,
  13131. landline: landline,
  13132. object: object,
  13133. array: array,
  13134. code: code,
  13135. func: func,
  13136. promise: promise,
  13137. video: video,
  13138. image: image,
  13139. regExp: regExp,
  13140. string: string
  13141. };
  13142. exports.default = _default;
  13143. /***/ }),
  13144. /* 64 */
  13145. /*!************************************************************************************************************!*\
  13146. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/function/debounce.js ***!
  13147. \************************************************************************************************************/
  13148. /*! no static exports found */
  13149. /***/ (function(module, exports, __webpack_require__) {
  13150. "use strict";
  13151. Object.defineProperty(exports, "__esModule", {
  13152. value: true
  13153. });
  13154. exports.default = void 0;
  13155. var timeout = null;
  13156. /**
  13157. * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数
  13158. *
  13159. * @param {Function} func 要执行的回调函数
  13160. * @param {Number} wait 延时的时间
  13161. * @param {Boolean} immediate 是否立即执行
  13162. * @return null
  13163. */
  13164. function debounce(func) {
  13165. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  13166. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  13167. // 清除定时器
  13168. if (timeout !== null) clearTimeout(timeout);
  13169. // 立即执行,此类情况一般用不到
  13170. if (immediate) {
  13171. var callNow = !timeout;
  13172. timeout = setTimeout(function () {
  13173. timeout = null;
  13174. }, wait);
  13175. if (callNow) typeof func === 'function' && func();
  13176. } else {
  13177. // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法
  13178. timeout = setTimeout(function () {
  13179. typeof func === 'function' && func();
  13180. }, wait);
  13181. }
  13182. }
  13183. var _default = debounce;
  13184. exports.default = _default;
  13185. /***/ }),
  13186. /* 65 */
  13187. /*!************************************************************************************************************!*\
  13188. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/function/throttle.js ***!
  13189. \************************************************************************************************************/
  13190. /*! no static exports found */
  13191. /***/ (function(module, exports, __webpack_require__) {
  13192. "use strict";
  13193. Object.defineProperty(exports, "__esModule", {
  13194. value: true
  13195. });
  13196. exports.default = void 0;
  13197. var timer;
  13198. var flag;
  13199. /**
  13200. * 节流原理:在一定时间内,只能触发一次
  13201. *
  13202. * @param {Function} func 要执行的回调函数
  13203. * @param {Number} wait 延时的时间
  13204. * @param {Boolean} immediate 是否立即执行
  13205. * @return null
  13206. */
  13207. function throttle(func) {
  13208. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  13209. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  13210. if (immediate) {
  13211. if (!flag) {
  13212. flag = true;
  13213. // 如果是立即执行,则在wait毫秒内开始时执行
  13214. typeof func === 'function' && func();
  13215. timer = setTimeout(function () {
  13216. flag = false;
  13217. }, wait);
  13218. }
  13219. } else if (!flag) {
  13220. flag = true;
  13221. // 如果是非立即执行,则在wait毫秒内的结束处执行
  13222. timer = setTimeout(function () {
  13223. flag = false;
  13224. typeof func === 'function' && func();
  13225. }, wait);
  13226. }
  13227. }
  13228. var _default = throttle;
  13229. exports.default = _default;
  13230. /***/ }),
  13231. /* 66 */
  13232. /*!*********************************************************************************************************!*\
  13233. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/function/index.js ***!
  13234. \*********************************************************************************************************/
  13235. /*! no static exports found */
  13236. /***/ (function(module, exports, __webpack_require__) {
  13237. "use strict";
  13238. /* WEBPACK VAR INJECTION */(function(uni) {
  13239. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  13240. Object.defineProperty(exports, "__esModule", {
  13241. value: true
  13242. });
  13243. exports.default = void 0;
  13244. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  13245. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  13246. var _test = _interopRequireDefault(__webpack_require__(/*! ./test.js */ 63));
  13247. var _digit = __webpack_require__(/*! ./digit.js */ 67);
  13248. /**
  13249. * @description 如果value小于min,取min;如果value大于max,取max
  13250. * @param {number} min
  13251. * @param {number} max
  13252. * @param {number} value
  13253. */
  13254. function range() {
  13255. var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  13256. var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  13257. var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
  13258. return Math.max(min, Math.min(max, Number(value)));
  13259. }
  13260. /**
  13261. * @description 用于获取用户传递值的px值 如果用户传递了"xxpx"或者"xxrpx",取出其数值部分,如果是"xxxrpx"还需要用过uni.upx2px进行转换
  13262. * @param {number|string} value 用户传递值的px值
  13263. * @param {boolean} unit
  13264. * @returns {number|string}
  13265. */
  13266. function getPx(value) {
  13267. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13268. if (_test.default.number(value)) {
  13269. return unit ? "".concat(value, "px") : Number(value);
  13270. }
  13271. // 如果带有rpx,先取出其数值部分,再转为px值
  13272. if (/(rpx|upx)$/.test(value)) {
  13273. return unit ? "".concat(uni.upx2px(parseInt(value)), "px") : Number(uni.upx2px(parseInt(value)));
  13274. }
  13275. return unit ? "".concat(parseInt(value), "px") : parseInt(value);
  13276. }
  13277. /**
  13278. * @description 进行延时,以达到可以简写代码的目的 比如: await uni.$u.sleep(20)将会阻塞20ms
  13279. * @param {number} value 堵塞时间 单位ms 毫秒
  13280. * @returns {Promise} 返回promise
  13281. */
  13282. function sleep() {
  13283. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 30;
  13284. return new Promise(function (resolve) {
  13285. setTimeout(function () {
  13286. resolve();
  13287. }, value);
  13288. });
  13289. }
  13290. /**
  13291. * @description 运行期判断平台
  13292. * @returns {string} 返回所在平台(小写)
  13293. * @link 运行期判断平台 https://uniapp.dcloud.io/frame?id=判断平台
  13294. */
  13295. function os() {
  13296. return uni.getSystemInfoSync().platform.toLowerCase();
  13297. }
  13298. /**
  13299. * @description 获取系统信息同步接口
  13300. * @link 获取系统信息同步接口 https://uniapp.dcloud.io/api/system/info?id=getsysteminfosync
  13301. */
  13302. function sys() {
  13303. return uni.getSystemInfoSync();
  13304. }
  13305. /**
  13306. * @description 取一个区间数
  13307. * @param {Number} min 最小值
  13308. * @param {Number} max 最大值
  13309. */
  13310. function random(min, max) {
  13311. if (min >= 0 && max > 0 && max >= min) {
  13312. var gab = max - min + 1;
  13313. return Math.floor(Math.random() * gab + min);
  13314. }
  13315. return 0;
  13316. }
  13317. /**
  13318. * @param {Number} len uuid的长度
  13319. * @param {Boolean} firstU 将返回的首字母置为"u"
  13320. * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
  13321. */
  13322. function guid() {
  13323. var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
  13324. var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13325. var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  13326. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  13327. var uuid = [];
  13328. radix = radix || chars.length;
  13329. if (len) {
  13330. // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
  13331. for (var i = 0; i < len; i++) {
  13332. uuid[i] = chars[0 | Math.random() * radix];
  13333. }
  13334. } else {
  13335. var r;
  13336. // rfc4122标准要求返回的uuid中,某些位为固定的字符
  13337. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  13338. uuid[14] = '4';
  13339. for (var _i = 0; _i < 36; _i++) {
  13340. if (!uuid[_i]) {
  13341. r = 0 | Math.random() * 16;
  13342. uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
  13343. }
  13344. }
  13345. }
  13346. // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  13347. if (firstU) {
  13348. uuid.shift();
  13349. return "u".concat(uuid.join(''));
  13350. }
  13351. return uuid.join('');
  13352. }
  13353. /**
  13354. * @description 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  13355. this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  13356. 这里默认值等于undefined有它的含义,因为最顶层元素(组件)的$parent就是undefined,意味着不传name
  13357. 值(默认为undefined),就是查找最顶层的$parent
  13358. * @param {string|undefined} name 父组件的参数名
  13359. */
  13360. function $parent() {
  13361. var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  13362. var parent = this.$parent;
  13363. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  13364. while (parent) {
  13365. // 父组件
  13366. if (parent.$options && parent.$options.name !== name) {
  13367. // 如果组件的name不相等,继续上一级寻找
  13368. parent = parent.$parent;
  13369. } else {
  13370. return parent;
  13371. }
  13372. }
  13373. return false;
  13374. }
  13375. /**
  13376. * @description 样式转换
  13377. * 对象转字符串,或者字符串转对象
  13378. * @param {object | string} customStyle 需要转换的目标
  13379. * @param {String} target 转换的目的,object-转为对象,string-转为字符串
  13380. * @returns {object|string}
  13381. */
  13382. function addStyle(customStyle) {
  13383. var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'object';
  13384. // 字符串转字符串,对象转对象情形,直接返回
  13385. if (_test.default.empty(customStyle) || (0, _typeof2.default)(customStyle) === 'object' && target === 'object' || target === 'string' && typeof customStyle === 'string') {
  13386. return customStyle;
  13387. }
  13388. // 字符串转对象
  13389. if (target === 'object') {
  13390. // 去除字符串样式中的两端空格(中间的空格不能去掉,比如padding: 20px 0如果去掉了就错了),空格是无用的
  13391. customStyle = trim(customStyle);
  13392. // 根据";"将字符串转为数组形式
  13393. var styleArray = customStyle.split(';');
  13394. var style = {};
  13395. // 历遍数组,拼接成对象
  13396. for (var i = 0; i < styleArray.length; i++) {
  13397. // 'font-size:20px;color:red;',如此最后字符串有";"的话,会导致styleArray最后一个元素为空字符串,这里需要过滤
  13398. if (styleArray[i]) {
  13399. var item = styleArray[i].split(':');
  13400. style[trim(item[0])] = trim(item[1]);
  13401. }
  13402. }
  13403. return style;
  13404. }
  13405. // 这里为对象转字符串形式
  13406. var string = '';
  13407. for (var _i2 in customStyle) {
  13408. // 驼峰转为中划线的形式,否则css内联样式,无法识别驼峰样式属性名
  13409. var key = _i2.replace(/([A-Z])/g, '-$1').toLowerCase();
  13410. string += "".concat(key, ":").concat(customStyle[_i2], ";");
  13411. }
  13412. // 去除两端空格
  13413. return trim(string);
  13414. }
  13415. /**
  13416. * @description 添加单位,如果有rpx,upx,%,px等单位结尾或者值为auto,直接返回,否则加上px单位结尾
  13417. * @param {string|number} value 需要添加单位的值
  13418. * @param {string} unit 添加的单位名 比如px
  13419. */
  13420. function addUnit() {
  13421. var _uni$$u$config$unit, _uni, _uni$$u, _uni$$u$config;
  13422. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'auto';
  13423. 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';
  13424. value = String(value);
  13425. // 用uView内置验证规则中的number判断是否为数值
  13426. return _test.default.number(value) ? "".concat(value).concat(unit) : value;
  13427. }
  13428. /**
  13429. * @description 深度克隆
  13430. * @param {object} obj 需要深度克隆的对象
  13431. * @param cache 缓存
  13432. * @returns {*} 克隆后的对象或者原值(不是对象)
  13433. */
  13434. function deepClone(obj) {
  13435. var cache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new WeakMap();
  13436. if (obj === null || (0, _typeof2.default)(obj) !== 'object') return obj;
  13437. if (cache.has(obj)) return cache.get(obj);
  13438. var clone;
  13439. if (obj instanceof Date) {
  13440. clone = new Date(obj.getTime());
  13441. } else if (obj instanceof RegExp) {
  13442. clone = new RegExp(obj);
  13443. } else if (obj instanceof Map) {
  13444. clone = new Map(Array.from(obj, function (_ref) {
  13445. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  13446. key = _ref2[0],
  13447. value = _ref2[1];
  13448. return [key, deepClone(value, cache)];
  13449. }));
  13450. } else if (obj instanceof Set) {
  13451. clone = new Set(Array.from(obj, function (value) {
  13452. return deepClone(value, cache);
  13453. }));
  13454. } else if (Array.isArray(obj)) {
  13455. clone = obj.map(function (value) {
  13456. return deepClone(value, cache);
  13457. });
  13458. } else if (Object.prototype.toString.call(obj) === '[object Object]') {
  13459. clone = Object.create(Object.getPrototypeOf(obj));
  13460. cache.set(obj, clone);
  13461. for (var _i3 = 0, _Object$entries = Object.entries(obj); _i3 < _Object$entries.length; _i3++) {
  13462. var _Object$entries$_i = (0, _slicedToArray2.default)(_Object$entries[_i3], 2),
  13463. key = _Object$entries$_i[0],
  13464. value = _Object$entries$_i[1];
  13465. clone[key] = deepClone(value, cache);
  13466. }
  13467. } else {
  13468. clone = Object.assign({}, obj);
  13469. }
  13470. cache.set(obj, clone);
  13471. return clone;
  13472. }
  13473. /**
  13474. * @description JS对象深度合并
  13475. * @param {object} target 需要拷贝的对象
  13476. * @param {object} source 拷贝的来源对象
  13477. * @returns {object|boolean} 深度合并后的对象或者false(入参有不是对象)
  13478. */
  13479. function deepMerge() {
  13480. var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13481. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  13482. target = deepClone(target);
  13483. if ((0, _typeof2.default)(target) !== 'object' || target === null || (0, _typeof2.default)(source) !== 'object' || source === null) return target;
  13484. var merged = Array.isArray(target) ? target.slice() : Object.assign({}, target);
  13485. for (var prop in source) {
  13486. if (!source.hasOwnProperty(prop)) continue;
  13487. var sourceValue = source[prop];
  13488. var targetValue = merged[prop];
  13489. if (sourceValue instanceof Date) {
  13490. merged[prop] = new Date(sourceValue);
  13491. } else if (sourceValue instanceof RegExp) {
  13492. merged[prop] = new RegExp(sourceValue);
  13493. } else if (sourceValue instanceof Map) {
  13494. merged[prop] = new Map(sourceValue);
  13495. } else if (sourceValue instanceof Set) {
  13496. merged[prop] = new Set(sourceValue);
  13497. } else if ((0, _typeof2.default)(sourceValue) === 'object' && sourceValue !== null) {
  13498. merged[prop] = deepMerge(targetValue, sourceValue);
  13499. } else {
  13500. merged[prop] = sourceValue;
  13501. }
  13502. }
  13503. return merged;
  13504. }
  13505. /**
  13506. * @description error提示
  13507. * @param {*} err 错误内容
  13508. */
  13509. function error(err) {
  13510. // 开发环境才提示,生产环境不会提示
  13511. if (true) {
  13512. console.error("uView\u63D0\u793A\uFF1A".concat(err));
  13513. }
  13514. }
  13515. /**
  13516. * @description 打乱数组
  13517. * @param {array} array 需要打乱的数组
  13518. * @returns {array} 打乱后的数组
  13519. */
  13520. function randomArray() {
  13521. var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  13522. // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.05大于或者小于0
  13523. return array.sort(function () {
  13524. return Math.random() - 0.5;
  13525. });
  13526. }
  13527. // padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序
  13528. // 所以这里做一个兼容polyfill的兼容处理
  13529. if (!String.prototype.padStart) {
  13530. // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解
  13531. String.prototype.padStart = function (maxLength) {
  13532. var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
  13533. if (Object.prototype.toString.call(fillString) !== '[object String]') {
  13534. throw new TypeError('fillString must be String');
  13535. }
  13536. var str = this;
  13537. // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉
  13538. if (str.length >= maxLength) return String(str);
  13539. var fillLength = maxLength - str.length;
  13540. var times = Math.ceil(fillLength / fillString.length);
  13541. while (times >>= 1) {
  13542. fillString += fillString;
  13543. if (times === 1) {
  13544. fillString += fillString;
  13545. }
  13546. }
  13547. return fillString.slice(0, fillLength) + str;
  13548. };
  13549. }
  13550. /**
  13551. * @description 格式化时间
  13552. * @param {String|Number} dateTime 需要格式化的时间戳
  13553. * @param {String} fmt 格式化规则 yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合 默认yyyy-mm-dd
  13554. * @returns {string} 返回格式化后的字符串
  13555. */
  13556. function timeFormat() {
  13557. var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  13558. var formatStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  13559. var date;
  13560. // 若传入时间为假值,则取当前时间
  13561. if (!dateTime) {
  13562. date = new Date();
  13563. }
  13564. // 若为unix秒时间戳,则转为毫秒时间戳(逻辑有点奇怪,但不敢改,以保证历史兼容)
  13565. else if (/^\d{10}$/.test(dateTime === null || dateTime === void 0 ? void 0 : dateTime.toString().trim())) {
  13566. date = new Date(dateTime * 1000);
  13567. }
  13568. // 若用户传入字符串格式时间戳,new Date无法解析,需做兼容
  13569. else if (typeof dateTime === 'string' && /^\d+$/.test(dateTime.trim())) {
  13570. date = new Date(Number(dateTime));
  13571. }
  13572. // 处理平台性差异,在Safari/Webkit中,new Date仅支持/作为分割符的字符串时间
  13573. // 处理 '2022-07-10 01:02:03',跳过 '2022-07-10T01:02:03'
  13574. else if (typeof dateTime === 'string' && dateTime.includes('-') && !dateTime.includes('T')) {
  13575. date = new Date(dateTime.replace(/-/g, '/'));
  13576. }
  13577. // 其他都认为符合 RFC 2822 规范
  13578. else {
  13579. date = new Date(dateTime);
  13580. }
  13581. var timeSource = {
  13582. 'y': date.getFullYear().toString(),
  13583. // 年
  13584. 'm': (date.getMonth() + 1).toString().padStart(2, '0'),
  13585. // 月
  13586. 'd': date.getDate().toString().padStart(2, '0'),
  13587. // 日
  13588. 'h': date.getHours().toString().padStart(2, '0'),
  13589. // 时
  13590. 'M': date.getMinutes().toString().padStart(2, '0'),
  13591. // 分
  13592. 's': date.getSeconds().toString().padStart(2, '0') // 秒
  13593. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  13594. };
  13595. for (var key in timeSource) {
  13596. var _ref3 = new RegExp("".concat(key, "+")).exec(formatStr) || [],
  13597. _ref4 = (0, _slicedToArray2.default)(_ref3, 1),
  13598. ret = _ref4[0];
  13599. if (ret) {
  13600. // 年可能只需展示两位
  13601. var beginIndex = key === 'y' && ret.length === 2 ? 2 : 0;
  13602. formatStr = formatStr.replace(ret, timeSource[key].slice(beginIndex));
  13603. }
  13604. }
  13605. return formatStr;
  13606. }
  13607. /**
  13608. * @description 时间戳转为多久之前
  13609. * @param {String|Number} timestamp 时间戳
  13610. * @param {String|Boolean} format
  13611. * 格式化规则如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;
  13612. * 如果为布尔值false,无论什么时间,都返回多久以前的格式
  13613. * @returns {string} 转化后的内容
  13614. */
  13615. function timeFrom() {
  13616. var timestamp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  13617. var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  13618. if (timestamp == null) timestamp = Number(new Date());
  13619. timestamp = parseInt(timestamp);
  13620. // 判断用户输入的时间戳是秒还是毫秒,一般前端js获取的时间戳是毫秒(13位),后端传过来的为秒(10位)
  13621. if (timestamp.toString().length == 10) timestamp *= 1000;
  13622. var timer = new Date().getTime() - timestamp;
  13623. timer = parseInt(timer / 1000);
  13624. // 如果小于5分钟,则返回"刚刚",其他以此类推
  13625. var tips = '';
  13626. switch (true) {
  13627. case timer < 300:
  13628. tips = '刚刚';
  13629. break;
  13630. case timer >= 300 && timer < 3600:
  13631. tips = "".concat(parseInt(timer / 60), "\u5206\u949F\u524D");
  13632. break;
  13633. case timer >= 3600 && timer < 86400:
  13634. tips = "".concat(parseInt(timer / 3600), "\u5C0F\u65F6\u524D");
  13635. break;
  13636. case timer >= 86400 && timer < 2592000:
  13637. tips = "".concat(parseInt(timer / 86400), "\u5929\u524D");
  13638. break;
  13639. default:
  13640. // 如果format为false,则无论什么时间戳,都显示xx之前
  13641. if (format === false) {
  13642. if (timer >= 2592000 && timer < 365 * 86400) {
  13643. tips = "".concat(parseInt(timer / (86400 * 30)), "\u4E2A\u6708\u524D");
  13644. } else {
  13645. tips = "".concat(parseInt(timer / (86400 * 365)), "\u5E74\u524D");
  13646. }
  13647. } else {
  13648. tips = timeFormat(timestamp, format);
  13649. }
  13650. }
  13651. return tips;
  13652. }
  13653. /**
  13654. * @description 去除空格
  13655. * @param String str 需要去除空格的字符串
  13656. * @param String pos both(左右)|left|right|all 默认both
  13657. */
  13658. function trim(str) {
  13659. var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'both';
  13660. str = String(str);
  13661. if (pos == 'both') {
  13662. return str.replace(/^\s+|\s+$/g, '');
  13663. }
  13664. if (pos == 'left') {
  13665. return str.replace(/^\s*/, '');
  13666. }
  13667. if (pos == 'right') {
  13668. return str.replace(/(\s*$)/g, '');
  13669. }
  13670. if (pos == 'all') {
  13671. return str.replace(/\s+/g, '');
  13672. }
  13673. return str;
  13674. }
  13675. /**
  13676. * @description 对象转url参数
  13677. * @param {object} data,对象
  13678. * @param {Boolean} isPrefix,是否自动加上"?"
  13679. * @param {string} arrayFormat 规则 indices|brackets|repeat|comma
  13680. */
  13681. function queryParams() {
  13682. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13683. var isPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13684. var arrayFormat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'brackets';
  13685. var prefix = isPrefix ? '?' : '';
  13686. var _result = [];
  13687. if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets';
  13688. var _loop = function _loop(key) {
  13689. var value = data[key];
  13690. // 去掉为空的参数
  13691. if (['', undefined, null].indexOf(value) >= 0) {
  13692. return "continue";
  13693. }
  13694. // 如果值为数组,另行处理
  13695. if (value.constructor === Array) {
  13696. // e.g. {ids: [1, 2, 3]}
  13697. switch (arrayFormat) {
  13698. case 'indices':
  13699. // 结果: ids[0]=1&ids[1]=2&ids[2]=3
  13700. for (var i = 0; i < value.length; i++) {
  13701. _result.push("".concat(key, "[").concat(i, "]=").concat(value[i]));
  13702. }
  13703. break;
  13704. case 'brackets':
  13705. // 结果: ids[]=1&ids[]=2&ids[]=3
  13706. value.forEach(function (_value) {
  13707. _result.push("".concat(key, "[]=").concat(_value));
  13708. });
  13709. break;
  13710. case 'repeat':
  13711. // 结果: ids=1&ids=2&ids=3
  13712. value.forEach(function (_value) {
  13713. _result.push("".concat(key, "=").concat(_value));
  13714. });
  13715. break;
  13716. case 'comma':
  13717. // 结果: ids=1,2,3
  13718. var commaStr = '';
  13719. value.forEach(function (_value) {
  13720. commaStr += (commaStr ? ',' : '') + _value;
  13721. });
  13722. _result.push("".concat(key, "=").concat(commaStr));
  13723. break;
  13724. default:
  13725. value.forEach(function (_value) {
  13726. _result.push("".concat(key, "[]=").concat(_value));
  13727. });
  13728. }
  13729. } else {
  13730. _result.push("".concat(key, "=").concat(value));
  13731. }
  13732. };
  13733. for (var key in data) {
  13734. var _ret = _loop(key);
  13735. if (_ret === "continue") continue;
  13736. }
  13737. return _result.length ? prefix + _result.join('&') : '';
  13738. }
  13739. /**
  13740. * 显示消息提示框
  13741. * @param {String} title 提示的内容,长度与 icon 取值有关。
  13742. * @param {Number} duration 提示的延迟时间,单位毫秒,默认:2000
  13743. */
  13744. function toast(title) {
  13745. var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
  13746. uni.showToast({
  13747. title: String(title),
  13748. icon: 'none',
  13749. duration: duration
  13750. });
  13751. }
  13752. /**
  13753. * @description 根据主题type值,获取对应的图标
  13754. * @param {String} type 主题名称,primary|info|error|warning|success
  13755. * @param {boolean} fill 是否使用fill填充实体的图标
  13756. */
  13757. function type2icon() {
  13758. var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'success';
  13759. var fill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13760. // 如果非预置值,默认为success
  13761. if (['primary', 'info', 'error', 'warning', 'success'].indexOf(type) == -1) type = 'success';
  13762. var iconName = '';
  13763. // 目前(2019-12-12),info和primary使用同一个图标
  13764. switch (type) {
  13765. case 'primary':
  13766. iconName = 'info-circle';
  13767. break;
  13768. case 'info':
  13769. iconName = 'info-circle';
  13770. break;
  13771. case 'error':
  13772. iconName = 'close-circle';
  13773. break;
  13774. case 'warning':
  13775. iconName = 'error-circle';
  13776. break;
  13777. case 'success':
  13778. iconName = 'checkmark-circle';
  13779. break;
  13780. default:
  13781. iconName = 'checkmark-circle';
  13782. }
  13783. // 是否是实体类型,加上-fill,在icon组件库中,实体的类名是后面加-fill的
  13784. if (fill) iconName += '-fill';
  13785. return iconName;
  13786. }
  13787. /**
  13788. * @description 数字格式化
  13789. * @param {number|string} number 要格式化的数字
  13790. * @param {number} decimals 保留几位小数
  13791. * @param {string} decimalPoint 小数点符号
  13792. * @param {string} thousandsSeparator 千分位符号
  13793. * @returns {string} 格式化后的数字
  13794. */
  13795. function priceFormat(number) {
  13796. var decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  13797. var decimalPoint = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.';
  13798. var thousandsSeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ',';
  13799. number = "".concat(number).replace(/[^0-9+-Ee.]/g, '');
  13800. var n = !isFinite(+number) ? 0 : +number;
  13801. var prec = !isFinite(+decimals) ? 0 : Math.abs(decimals);
  13802. var sep = typeof thousandsSeparator === 'undefined' ? ',' : thousandsSeparator;
  13803. var dec = typeof decimalPoint === 'undefined' ? '.' : decimalPoint;
  13804. var s = '';
  13805. s = (prec ? (0, _digit.round)(n, prec) + '' : "".concat(Math.round(n))).split('.');
  13806. var re = /(-?\d+)(\d{3})/;
  13807. while (re.test(s[0])) {
  13808. s[0] = s[0].replace(re, "$1".concat(sep, "$2"));
  13809. }
  13810. if ((s[1] || '').length < prec) {
  13811. s[1] = s[1] || '';
  13812. s[1] += new Array(prec - s[1].length + 1).join('0');
  13813. }
  13814. return s.join(dec);
  13815. }
  13816. /**
  13817. * @description 获取duration值
  13818. * 如果带有ms或者s直接返回,如果大于一定值,认为是ms单位,小于一定值,认为是s单位
  13819. * 比如以30位阈值,那么300大于30,可以理解为用户想要的是300ms,而不是想花300s去执行一个动画
  13820. * @param {String|number} value 比如: "1s"|"100ms"|1|100
  13821. * @param {boolean} unit 提示: 如果是false 默认返回number
  13822. * @return {string|number}
  13823. */
  13824. function getDuration(value) {
  13825. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13826. var valueNum = parseInt(value);
  13827. if (unit) {
  13828. if (/s$/.test(value)) return value;
  13829. return value > 30 ? "".concat(value, "ms") : "".concat(value, "s");
  13830. }
  13831. if (/ms$/.test(value)) return valueNum;
  13832. if (/s$/.test(value)) return valueNum > 30 ? valueNum : valueNum * 1000;
  13833. return valueNum;
  13834. }
  13835. /**
  13836. * @description 日期的月或日补零操作
  13837. * @param {String} value 需要补零的值
  13838. */
  13839. function padZero(value) {
  13840. return "00".concat(value).slice(-2);
  13841. }
  13842. /**
  13843. * @description 在u-form的子组件内容发生变化,或者失去焦点时,尝试通知u-form执行校验方法
  13844. * @param {*} instance
  13845. * @param {*} event
  13846. */
  13847. function formValidate(instance, event) {
  13848. var formItem = uni.$u.$parent.call(instance, 'u-form-item');
  13849. var form = uni.$u.$parent.call(instance, 'u-form');
  13850. // 如果发生变化的input或者textarea等,其父组件中有u-form-item或者u-form等,就执行form的validate方法
  13851. // 同时将form-item的pros传递给form,让其进行精确对象验证
  13852. if (formItem && form) {
  13853. form.validateField(formItem.prop, function () {}, event);
  13854. }
  13855. }
  13856. /**
  13857. * @description 获取某个对象下的属性,用于通过类似'a.b.c'的形式去获取一个对象的的属性的形式
  13858. * @param {object} obj 对象
  13859. * @param {string} key 需要获取的属性字段
  13860. * @returns {*}
  13861. */
  13862. function getProperty(obj, key) {
  13863. if (!obj) {
  13864. return;
  13865. }
  13866. if (typeof key !== 'string' || key === '') {
  13867. return '';
  13868. }
  13869. if (key.indexOf('.') !== -1) {
  13870. var keys = key.split('.');
  13871. var firstObj = obj[keys[0]] || {};
  13872. for (var i = 1; i < keys.length; i++) {
  13873. if (firstObj) {
  13874. firstObj = firstObj[keys[i]];
  13875. }
  13876. }
  13877. return firstObj;
  13878. }
  13879. return obj[key];
  13880. }
  13881. /**
  13882. * @description 设置对象的属性值,如果'a.b.c'的形式进行设置
  13883. * @param {object} obj 对象
  13884. * @param {string} key 需要设置的属性
  13885. * @param {string} value 设置的值
  13886. */
  13887. function setProperty(obj, key, value) {
  13888. if (!obj) {
  13889. return;
  13890. }
  13891. // 递归赋值
  13892. var inFn = function inFn(_obj, keys, v) {
  13893. // 最后一个属性key
  13894. if (keys.length === 1) {
  13895. _obj[keys[0]] = v;
  13896. return;
  13897. }
  13898. // 0~length-1个key
  13899. while (keys.length > 1) {
  13900. var k = keys[0];
  13901. if (!_obj[k] || (0, _typeof2.default)(_obj[k]) !== 'object') {
  13902. _obj[k] = {};
  13903. }
  13904. var _key = keys.shift();
  13905. // 自调用判断是否存在属性,不存在则自动创建对象
  13906. inFn(_obj[k], keys, v);
  13907. }
  13908. };
  13909. if (typeof key !== 'string' || key === '') {} else if (key.indexOf('.') !== -1) {
  13910. // 支持多层级赋值操作
  13911. var keys = key.split('.');
  13912. inFn(obj, keys, value);
  13913. } else {
  13914. obj[key] = value;
  13915. }
  13916. }
  13917. /**
  13918. * @description 获取当前页面路径
  13919. */
  13920. function page() {
  13921. var _pages$route, _pages;
  13922. var pages = getCurrentPages();
  13923. // 某些特殊情况下(比如页面进行redirectTo时的一些时机),pages可能为空数组
  13924. return "/".concat((_pages$route = (_pages = pages[pages.length - 1]) === null || _pages === void 0 ? void 0 : _pages.route) !== null && _pages$route !== void 0 ? _pages$route : '');
  13925. }
  13926. /**
  13927. * @description 获取当前路由栈实例数组
  13928. */
  13929. function pages() {
  13930. var pages = getCurrentPages();
  13931. return pages;
  13932. }
  13933. /**
  13934. * 获取页面历史栈指定层实例
  13935. * @param back {number} [0] - 0或者负数,表示获取历史栈的哪一层,0表示获取当前页面实例,-1 表示获取上一个页面实例。默认0。
  13936. */
  13937. function getHistoryPage() {
  13938. var back = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  13939. var pages = getCurrentPages();
  13940. var len = pages.length;
  13941. return pages[len - 1 + back];
  13942. }
  13943. /**
  13944. * @description 修改uView内置属性值
  13945. * @param {object} props 修改内置props属性
  13946. * @param {object} config 修改内置config属性
  13947. * @param {object} color 修改内置color属性
  13948. * @param {object} zIndex 修改内置zIndex属性
  13949. */
  13950. function setConfig(_ref5) {
  13951. var _ref5$props = _ref5.props,
  13952. props = _ref5$props === void 0 ? {} : _ref5$props,
  13953. _ref5$config = _ref5.config,
  13954. config = _ref5$config === void 0 ? {} : _ref5$config,
  13955. _ref5$color = _ref5.color,
  13956. color = _ref5$color === void 0 ? {} : _ref5$color,
  13957. _ref5$zIndex = _ref5.zIndex,
  13958. zIndex = _ref5$zIndex === void 0 ? {} : _ref5$zIndex;
  13959. var deepMerge = uni.$u.deepMerge;
  13960. uni.$u.config = deepMerge(uni.$u.config, config);
  13961. uni.$u.props = deepMerge(uni.$u.props, props);
  13962. uni.$u.color = deepMerge(uni.$u.color, color);
  13963. uni.$u.zIndex = deepMerge(uni.$u.zIndex, zIndex);
  13964. }
  13965. var _default = {
  13966. range: range,
  13967. getPx: getPx,
  13968. sleep: sleep,
  13969. os: os,
  13970. sys: sys,
  13971. random: random,
  13972. guid: guid,
  13973. $parent: $parent,
  13974. addStyle: addStyle,
  13975. addUnit: addUnit,
  13976. deepClone: deepClone,
  13977. deepMerge: deepMerge,
  13978. error: error,
  13979. randomArray: randomArray,
  13980. timeFormat: timeFormat,
  13981. timeFrom: timeFrom,
  13982. trim: trim,
  13983. queryParams: queryParams,
  13984. toast: toast,
  13985. type2icon: type2icon,
  13986. priceFormat: priceFormat,
  13987. getDuration: getDuration,
  13988. padZero: padZero,
  13989. formValidate: formValidate,
  13990. getProperty: getProperty,
  13991. setProperty: setProperty,
  13992. page: page,
  13993. pages: pages,
  13994. getHistoryPage: getHistoryPage,
  13995. setConfig: setConfig
  13996. };
  13997. exports.default = _default;
  13998. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  13999. /***/ }),
  14000. /* 67 */
  14001. /*!*********************************************************************************************************!*\
  14002. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/function/digit.js ***!
  14003. \*********************************************************************************************************/
  14004. /*! no static exports found */
  14005. /***/ (function(module, exports, __webpack_require__) {
  14006. "use strict";
  14007. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  14008. Object.defineProperty(exports, "__esModule", {
  14009. value: true
  14010. });
  14011. exports.default = void 0;
  14012. exports.divide = divide;
  14013. exports.enableBoundaryChecking = enableBoundaryChecking;
  14014. exports.minus = minus;
  14015. exports.plus = plus;
  14016. exports.round = round;
  14017. exports.times = times;
  14018. var _toArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toArray */ 68));
  14019. var _boundaryCheckingState = true; // 是否进行越界检查的全局开关
  14020. /**
  14021. * 把错误的数据转正
  14022. * @private
  14023. * @example strip(0.09999999999999998)=0.1
  14024. */
  14025. function strip(num) {
  14026. var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 15;
  14027. return +parseFloat(Number(num).toPrecision(precision));
  14028. }
  14029. /**
  14030. * Return digits length of a number
  14031. * @private
  14032. * @param {*number} num Input number
  14033. */
  14034. function digitLength(num) {
  14035. // Get digit length of e
  14036. var eSplit = num.toString().split(/[eE]/);
  14037. var len = (eSplit[0].split('.')[1] || '').length - +(eSplit[1] || 0);
  14038. return len > 0 ? len : 0;
  14039. }
  14040. /**
  14041. * 把小数转成整数,如果是小数则放大成整数
  14042. * @private
  14043. * @param {*number} num 输入数
  14044. */
  14045. function float2Fixed(num) {
  14046. if (num.toString().indexOf('e') === -1) {
  14047. return Number(num.toString().replace('.', ''));
  14048. }
  14049. var dLen = digitLength(num);
  14050. return dLen > 0 ? strip(Number(num) * Math.pow(10, dLen)) : Number(num);
  14051. }
  14052. /**
  14053. * 检测数字是否越界,如果越界给出提示
  14054. * @private
  14055. * @param {*number} num 输入数
  14056. */
  14057. function checkBoundary(num) {
  14058. if (_boundaryCheckingState) {
  14059. if (num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) {
  14060. console.warn("".concat(num, " \u8D85\u51FA\u4E86\u7CBE\u5EA6\u9650\u5236\uFF0C\u7ED3\u679C\u53EF\u80FD\u4E0D\u6B63\u786E"));
  14061. }
  14062. }
  14063. }
  14064. /**
  14065. * 把递归操作扁平迭代化
  14066. * @param {number[]} arr 要操作的数字数组
  14067. * @param {function} operation 迭代操作
  14068. * @private
  14069. */
  14070. function iteratorOperation(arr, operation) {
  14071. var _arr = (0, _toArray2.default)(arr),
  14072. num1 = _arr[0],
  14073. num2 = _arr[1],
  14074. others = _arr.slice(2);
  14075. var res = operation(num1, num2);
  14076. others.forEach(function (num) {
  14077. res = operation(res, num);
  14078. });
  14079. return res;
  14080. }
  14081. /**
  14082. * 高精度乘法
  14083. * @export
  14084. */
  14085. function times() {
  14086. for (var _len = arguments.length, nums = new Array(_len), _key = 0; _key < _len; _key++) {
  14087. nums[_key] = arguments[_key];
  14088. }
  14089. if (nums.length > 2) {
  14090. return iteratorOperation(nums, times);
  14091. }
  14092. var num1 = nums[0],
  14093. num2 = nums[1];
  14094. var num1Changed = float2Fixed(num1);
  14095. var num2Changed = float2Fixed(num2);
  14096. var baseNum = digitLength(num1) + digitLength(num2);
  14097. var leftValue = num1Changed * num2Changed;
  14098. checkBoundary(leftValue);
  14099. return leftValue / Math.pow(10, baseNum);
  14100. }
  14101. /**
  14102. * 高精度加法
  14103. * @export
  14104. */
  14105. function plus() {
  14106. for (var _len2 = arguments.length, nums = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  14107. nums[_key2] = arguments[_key2];
  14108. }
  14109. if (nums.length > 2) {
  14110. return iteratorOperation(nums, plus);
  14111. }
  14112. var num1 = nums[0],
  14113. num2 = nums[1];
  14114. // 取最大的小数位
  14115. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  14116. // 把小数都转为整数然后再计算
  14117. return (times(num1, baseNum) + times(num2, baseNum)) / baseNum;
  14118. }
  14119. /**
  14120. * 高精度减法
  14121. * @export
  14122. */
  14123. function minus() {
  14124. for (var _len3 = arguments.length, nums = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  14125. nums[_key3] = arguments[_key3];
  14126. }
  14127. if (nums.length > 2) {
  14128. return iteratorOperation(nums, minus);
  14129. }
  14130. var num1 = nums[0],
  14131. num2 = nums[1];
  14132. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  14133. return (times(num1, baseNum) - times(num2, baseNum)) / baseNum;
  14134. }
  14135. /**
  14136. * 高精度除法
  14137. * @export
  14138. */
  14139. function divide() {
  14140. for (var _len4 = arguments.length, nums = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  14141. nums[_key4] = arguments[_key4];
  14142. }
  14143. if (nums.length > 2) {
  14144. return iteratorOperation(nums, divide);
  14145. }
  14146. var num1 = nums[0],
  14147. num2 = nums[1];
  14148. var num1Changed = float2Fixed(num1);
  14149. var num2Changed = float2Fixed(num2);
  14150. checkBoundary(num1Changed);
  14151. checkBoundary(num2Changed);
  14152. // 重要,这里必须用strip进行修正
  14153. return times(num1Changed / num2Changed, strip(Math.pow(10, digitLength(num2) - digitLength(num1))));
  14154. }
  14155. /**
  14156. * 四舍五入
  14157. * @export
  14158. */
  14159. function round(num, ratio) {
  14160. var base = Math.pow(10, ratio);
  14161. var result = divide(Math.round(Math.abs(times(num, base))), base);
  14162. if (num < 0 && result !== 0) {
  14163. result = times(result, -1);
  14164. }
  14165. // 位数不足则补0
  14166. return result;
  14167. }
  14168. /**
  14169. * 是否进行边界检查,默认开启
  14170. * @param flag 标记开关,true 为开启,false 为关闭,默认为 true
  14171. * @export
  14172. */
  14173. function enableBoundaryChecking() {
  14174. var flag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  14175. _boundaryCheckingState = flag;
  14176. }
  14177. var _default = {
  14178. times: times,
  14179. plus: plus,
  14180. minus: minus,
  14181. divide: divide,
  14182. round: round,
  14183. enableBoundaryChecking: enableBoundaryChecking
  14184. };
  14185. exports.default = _default;
  14186. /***/ }),
  14187. /* 68 */
  14188. /*!********************************************************!*\
  14189. !*** ./node_modules/@babel/runtime/helpers/toArray.js ***!
  14190. \********************************************************/
  14191. /*! no static exports found */
  14192. /***/ (function(module, exports, __webpack_require__) {
  14193. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  14194. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  14195. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  14196. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  14197. function _toArray(arr) {
  14198. return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
  14199. }
  14200. module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  14201. /***/ }),
  14202. /* 69 */
  14203. /*!********************************************************************************************************!*\
  14204. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/config.js ***!
  14205. \********************************************************************************************************/
  14206. /*! no static exports found */
  14207. /***/ (function(module, exports, __webpack_require__) {
  14208. "use strict";
  14209. Object.defineProperty(exports, "__esModule", {
  14210. value: true
  14211. });
  14212. exports.default = void 0;
  14213. // 此版本发布于2023-03-27
  14214. var version = '2.0.36';
  14215. // 开发环境才提示,生产环境不会提示
  14216. if (true) {
  14217. console.log("\n %c uView V".concat(version, " %c https://uviewui.com/ \n\n"), 'color: #ffffff; background: #3c9cff; padding:5px 0; border-radius: 5px;');
  14218. }
  14219. var _default = {
  14220. v: version,
  14221. version: version,
  14222. // 主题名称
  14223. type: ['primary', 'success', 'info', 'error', 'warning'],
  14224. // 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持
  14225. color: {
  14226. 'u-primary': '#2979ff',
  14227. 'u-warning': '#ff9900',
  14228. 'u-success': '#19be6b',
  14229. 'u-error': '#fa3534',
  14230. 'u-info': '#909399',
  14231. 'u-main-color': '#303133',
  14232. 'u-content-color': '#606266',
  14233. 'u-tips-color': '#909399',
  14234. 'u-light-color': '#c0c4cc'
  14235. },
  14236. // 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx
  14237. unit: 'px'
  14238. };
  14239. exports.default = _default;
  14240. /***/ }),
  14241. /* 70 */
  14242. /*!*******************************************************************************************************!*\
  14243. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props.js ***!
  14244. \*******************************************************************************************************/
  14245. /*! no static exports found */
  14246. /***/ (function(module, exports, __webpack_require__) {
  14247. "use strict";
  14248. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  14249. Object.defineProperty(exports, "__esModule", {
  14250. value: true
  14251. });
  14252. exports.default = void 0;
  14253. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  14254. var _config = _interopRequireDefault(__webpack_require__(/*! ./config */ 69));
  14255. var _actionSheet = _interopRequireDefault(__webpack_require__(/*! ./props/actionSheet.js */ 71));
  14256. var _album = _interopRequireDefault(__webpack_require__(/*! ./props/album.js */ 72));
  14257. var _alert = _interopRequireDefault(__webpack_require__(/*! ./props/alert.js */ 73));
  14258. var _avatar = _interopRequireDefault(__webpack_require__(/*! ./props/avatar */ 74));
  14259. var _avatarGroup = _interopRequireDefault(__webpack_require__(/*! ./props/avatarGroup */ 75));
  14260. var _backtop = _interopRequireDefault(__webpack_require__(/*! ./props/backtop */ 76));
  14261. var _badge = _interopRequireDefault(__webpack_require__(/*! ./props/badge */ 77));
  14262. var _button = _interopRequireDefault(__webpack_require__(/*! ./props/button */ 78));
  14263. var _calendar = _interopRequireDefault(__webpack_require__(/*! ./props/calendar */ 79));
  14264. var _carKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/carKeyboard */ 80));
  14265. var _cell = _interopRequireDefault(__webpack_require__(/*! ./props/cell */ 81));
  14266. var _cellGroup = _interopRequireDefault(__webpack_require__(/*! ./props/cellGroup */ 82));
  14267. var _checkbox = _interopRequireDefault(__webpack_require__(/*! ./props/checkbox */ 83));
  14268. var _checkboxGroup = _interopRequireDefault(__webpack_require__(/*! ./props/checkboxGroup */ 84));
  14269. var _circleProgress = _interopRequireDefault(__webpack_require__(/*! ./props/circleProgress */ 85));
  14270. var _code = _interopRequireDefault(__webpack_require__(/*! ./props/code */ 86));
  14271. var _codeInput = _interopRequireDefault(__webpack_require__(/*! ./props/codeInput */ 87));
  14272. var _col = _interopRequireDefault(__webpack_require__(/*! ./props/col */ 88));
  14273. var _collapse = _interopRequireDefault(__webpack_require__(/*! ./props/collapse */ 89));
  14274. var _collapseItem = _interopRequireDefault(__webpack_require__(/*! ./props/collapseItem */ 90));
  14275. var _columnNotice = _interopRequireDefault(__webpack_require__(/*! ./props/columnNotice */ 91));
  14276. var _countDown = _interopRequireDefault(__webpack_require__(/*! ./props/countDown */ 92));
  14277. var _countTo = _interopRequireDefault(__webpack_require__(/*! ./props/countTo */ 93));
  14278. var _datetimePicker = _interopRequireDefault(__webpack_require__(/*! ./props/datetimePicker */ 94));
  14279. var _divider = _interopRequireDefault(__webpack_require__(/*! ./props/divider */ 95));
  14280. var _empty = _interopRequireDefault(__webpack_require__(/*! ./props/empty */ 96));
  14281. var _form = _interopRequireDefault(__webpack_require__(/*! ./props/form */ 97));
  14282. var _formItem = _interopRequireDefault(__webpack_require__(/*! ./props/formItem */ 98));
  14283. var _gap = _interopRequireDefault(__webpack_require__(/*! ./props/gap */ 99));
  14284. var _grid = _interopRequireDefault(__webpack_require__(/*! ./props/grid */ 100));
  14285. var _gridItem = _interopRequireDefault(__webpack_require__(/*! ./props/gridItem */ 101));
  14286. var _icon = _interopRequireDefault(__webpack_require__(/*! ./props/icon */ 102));
  14287. var _image = _interopRequireDefault(__webpack_require__(/*! ./props/image */ 103));
  14288. var _indexAnchor = _interopRequireDefault(__webpack_require__(/*! ./props/indexAnchor */ 104));
  14289. var _indexList = _interopRequireDefault(__webpack_require__(/*! ./props/indexList */ 105));
  14290. var _input = _interopRequireDefault(__webpack_require__(/*! ./props/input */ 106));
  14291. var _keyboard = _interopRequireDefault(__webpack_require__(/*! ./props/keyboard */ 107));
  14292. var _line = _interopRequireDefault(__webpack_require__(/*! ./props/line */ 108));
  14293. var _lineProgress = _interopRequireDefault(__webpack_require__(/*! ./props/lineProgress */ 109));
  14294. var _link = _interopRequireDefault(__webpack_require__(/*! ./props/link */ 110));
  14295. var _list = _interopRequireDefault(__webpack_require__(/*! ./props/list */ 111));
  14296. var _listItem = _interopRequireDefault(__webpack_require__(/*! ./props/listItem */ 112));
  14297. var _loadingIcon = _interopRequireDefault(__webpack_require__(/*! ./props/loadingIcon */ 113));
  14298. var _loadingPage = _interopRequireDefault(__webpack_require__(/*! ./props/loadingPage */ 114));
  14299. var _loadmore = _interopRequireDefault(__webpack_require__(/*! ./props/loadmore */ 115));
  14300. var _modal = _interopRequireDefault(__webpack_require__(/*! ./props/modal */ 116));
  14301. var _navbar = _interopRequireDefault(__webpack_require__(/*! ./props/navbar */ 117));
  14302. var _noNetwork = _interopRequireDefault(__webpack_require__(/*! ./props/noNetwork */ 119));
  14303. var _noticeBar = _interopRequireDefault(__webpack_require__(/*! ./props/noticeBar */ 120));
  14304. var _notify = _interopRequireDefault(__webpack_require__(/*! ./props/notify */ 121));
  14305. var _numberBox = _interopRequireDefault(__webpack_require__(/*! ./props/numberBox */ 122));
  14306. var _numberKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/numberKeyboard */ 123));
  14307. var _overlay = _interopRequireDefault(__webpack_require__(/*! ./props/overlay */ 124));
  14308. var _parse = _interopRequireDefault(__webpack_require__(/*! ./props/parse */ 125));
  14309. var _picker = _interopRequireDefault(__webpack_require__(/*! ./props/picker */ 126));
  14310. var _popup = _interopRequireDefault(__webpack_require__(/*! ./props/popup */ 127));
  14311. var _radio = _interopRequireDefault(__webpack_require__(/*! ./props/radio */ 128));
  14312. var _radioGroup = _interopRequireDefault(__webpack_require__(/*! ./props/radioGroup */ 129));
  14313. var _rate = _interopRequireDefault(__webpack_require__(/*! ./props/rate */ 130));
  14314. var _readMore = _interopRequireDefault(__webpack_require__(/*! ./props/readMore */ 131));
  14315. var _row = _interopRequireDefault(__webpack_require__(/*! ./props/row */ 132));
  14316. var _rowNotice = _interopRequireDefault(__webpack_require__(/*! ./props/rowNotice */ 133));
  14317. var _scrollList = _interopRequireDefault(__webpack_require__(/*! ./props/scrollList */ 134));
  14318. var _search = _interopRequireDefault(__webpack_require__(/*! ./props/search */ 135));
  14319. var _section = _interopRequireDefault(__webpack_require__(/*! ./props/section */ 136));
  14320. var _skeleton = _interopRequireDefault(__webpack_require__(/*! ./props/skeleton */ 137));
  14321. var _slider = _interopRequireDefault(__webpack_require__(/*! ./props/slider */ 138));
  14322. var _statusBar = _interopRequireDefault(__webpack_require__(/*! ./props/statusBar */ 139));
  14323. var _steps = _interopRequireDefault(__webpack_require__(/*! ./props/steps */ 140));
  14324. var _stepsItem = _interopRequireDefault(__webpack_require__(/*! ./props/stepsItem */ 141));
  14325. var _sticky = _interopRequireDefault(__webpack_require__(/*! ./props/sticky */ 142));
  14326. var _subsection = _interopRequireDefault(__webpack_require__(/*! ./props/subsection */ 143));
  14327. var _swipeAction = _interopRequireDefault(__webpack_require__(/*! ./props/swipeAction */ 144));
  14328. var _swipeActionItem = _interopRequireDefault(__webpack_require__(/*! ./props/swipeActionItem */ 145));
  14329. var _swiper = _interopRequireDefault(__webpack_require__(/*! ./props/swiper */ 146));
  14330. var _swipterIndicator = _interopRequireDefault(__webpack_require__(/*! ./props/swipterIndicator */ 147));
  14331. var _switch2 = _interopRequireDefault(__webpack_require__(/*! ./props/switch */ 148));
  14332. var _tabbar = _interopRequireDefault(__webpack_require__(/*! ./props/tabbar */ 149));
  14333. var _tabbarItem = _interopRequireDefault(__webpack_require__(/*! ./props/tabbarItem */ 150));
  14334. var _tabs = _interopRequireDefault(__webpack_require__(/*! ./props/tabs */ 151));
  14335. var _tag = _interopRequireDefault(__webpack_require__(/*! ./props/tag */ 152));
  14336. var _text = _interopRequireDefault(__webpack_require__(/*! ./props/text */ 153));
  14337. var _textarea = _interopRequireDefault(__webpack_require__(/*! ./props/textarea */ 154));
  14338. var _toast = _interopRequireDefault(__webpack_require__(/*! ./props/toast */ 155));
  14339. var _toolbar = _interopRequireDefault(__webpack_require__(/*! ./props/toolbar */ 156));
  14340. var _tooltip = _interopRequireDefault(__webpack_require__(/*! ./props/tooltip */ 157));
  14341. var _transition = _interopRequireDefault(__webpack_require__(/*! ./props/transition */ 158));
  14342. var _upload = _interopRequireDefault(__webpack_require__(/*! ./props/upload */ 159));
  14343. 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; }
  14344. 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; }
  14345. var color = _config.default.color;
  14346. 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);
  14347. exports.default = _default;
  14348. /***/ }),
  14349. /* 71 */
  14350. /*!*******************************************************************************************************************!*\
  14351. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/actionSheet.js ***!
  14352. \*******************************************************************************************************************/
  14353. /*! no static exports found */
  14354. /***/ (function(module, exports, __webpack_require__) {
  14355. "use strict";
  14356. Object.defineProperty(exports, "__esModule", {
  14357. value: true
  14358. });
  14359. exports.default = void 0;
  14360. /*
  14361. * @Author : LQ
  14362. * @Description :
  14363. * @version : 1.0
  14364. * @Date : 2021-08-20 16:44:21
  14365. * @LastAuthor : LQ
  14366. * @lastTime : 2021-08-20 16:44:35
  14367. * @FilePath : /u-view2.0/uview-ui/libs/config/props/actionSheet.js
  14368. */
  14369. var _default = {
  14370. // action-sheet组件
  14371. actionSheet: {
  14372. show: false,
  14373. title: '',
  14374. description: '',
  14375. actions: function actions() {
  14376. return [];
  14377. },
  14378. index: '',
  14379. cancelText: '',
  14380. closeOnClickAction: true,
  14381. safeAreaInsetBottom: true,
  14382. openType: '',
  14383. closeOnClickOverlay: true,
  14384. round: 0
  14385. }
  14386. };
  14387. exports.default = _default;
  14388. /***/ }),
  14389. /* 72 */
  14390. /*!*************************************************************************************************************!*\
  14391. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/album.js ***!
  14392. \*************************************************************************************************************/
  14393. /*! no static exports found */
  14394. /***/ (function(module, exports, __webpack_require__) {
  14395. "use strict";
  14396. Object.defineProperty(exports, "__esModule", {
  14397. value: true
  14398. });
  14399. exports.default = void 0;
  14400. /*
  14401. * @Author : LQ
  14402. * @Description :
  14403. * @version : 1.0
  14404. * @Date : 2021-08-20 16:44:21
  14405. * @LastAuthor : LQ
  14406. * @lastTime : 2021-08-20 16:47:24
  14407. * @FilePath : /u-view2.0/uview-ui/libs/config/props/album.js
  14408. */
  14409. var _default = {
  14410. // album 组件
  14411. album: {
  14412. urls: function urls() {
  14413. return [];
  14414. },
  14415. keyName: '',
  14416. singleSize: 180,
  14417. multipleSize: 70,
  14418. space: 6,
  14419. singleMode: 'scaleToFill',
  14420. multipleMode: 'aspectFill',
  14421. maxCount: 9,
  14422. previewFullImage: true,
  14423. rowCount: 3,
  14424. showMore: true
  14425. }
  14426. };
  14427. exports.default = _default;
  14428. /***/ }),
  14429. /* 73 */
  14430. /*!*************************************************************************************************************!*\
  14431. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/alert.js ***!
  14432. \*************************************************************************************************************/
  14433. /*! no static exports found */
  14434. /***/ (function(module, exports, __webpack_require__) {
  14435. "use strict";
  14436. Object.defineProperty(exports, "__esModule", {
  14437. value: true
  14438. });
  14439. exports.default = void 0;
  14440. /*
  14441. * @Author : LQ
  14442. * @Description :
  14443. * @version : 1.0
  14444. * @Date : 2021-08-20 16:44:21
  14445. * @LastAuthor : LQ
  14446. * @lastTime : 2021-08-20 16:48:53
  14447. * @FilePath : /u-view2.0/uview-ui/libs/config/props/alert.js
  14448. */
  14449. var _default = {
  14450. // alert警告组件
  14451. alert: {
  14452. title: '',
  14453. type: 'warning',
  14454. description: '',
  14455. closable: false,
  14456. showIcon: false,
  14457. effect: 'light',
  14458. center: false,
  14459. fontSize: 14
  14460. }
  14461. };
  14462. exports.default = _default;
  14463. /***/ }),
  14464. /* 74 */
  14465. /*!**************************************************************************************************************!*\
  14466. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/avatar.js ***!
  14467. \**************************************************************************************************************/
  14468. /*! no static exports found */
  14469. /***/ (function(module, exports, __webpack_require__) {
  14470. "use strict";
  14471. Object.defineProperty(exports, "__esModule", {
  14472. value: true
  14473. });
  14474. exports.default = void 0;
  14475. /*
  14476. * @Author : LQ
  14477. * @Description :
  14478. * @version : 1.0
  14479. * @Date : 2021-08-20 16:44:21
  14480. * @LastAuthor : LQ
  14481. * @lastTime : 2021-08-20 16:49:22
  14482. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatar.js
  14483. */
  14484. var _default = {
  14485. // avatar 组件
  14486. avatar: {
  14487. src: '',
  14488. shape: 'circle',
  14489. size: 40,
  14490. mode: 'scaleToFill',
  14491. text: '',
  14492. bgColor: '#c0c4cc',
  14493. color: '#ffffff',
  14494. fontSize: 18,
  14495. icon: '',
  14496. mpAvatar: false,
  14497. randomBgColor: false,
  14498. defaultUrl: '',
  14499. colorIndex: '',
  14500. name: ''
  14501. }
  14502. };
  14503. exports.default = _default;
  14504. /***/ }),
  14505. /* 75 */
  14506. /*!*******************************************************************************************************************!*\
  14507. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/avatarGroup.js ***!
  14508. \*******************************************************************************************************************/
  14509. /*! no static exports found */
  14510. /***/ (function(module, exports, __webpack_require__) {
  14511. "use strict";
  14512. Object.defineProperty(exports, "__esModule", {
  14513. value: true
  14514. });
  14515. exports.default = void 0;
  14516. /*
  14517. * @Author : LQ
  14518. * @Description :
  14519. * @version : 1.0
  14520. * @Date : 2021-08-20 16:44:21
  14521. * @LastAuthor : LQ
  14522. * @lastTime : 2021-08-20 16:49:55
  14523. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatarGroup.js
  14524. */
  14525. var _default = {
  14526. // avatarGroup 组件
  14527. avatarGroup: {
  14528. urls: function urls() {
  14529. return [];
  14530. },
  14531. maxCount: 5,
  14532. shape: 'circle',
  14533. mode: 'scaleToFill',
  14534. showMore: true,
  14535. size: 40,
  14536. keyName: '',
  14537. gap: 0.5,
  14538. extraValue: 0
  14539. }
  14540. };
  14541. exports.default = _default;
  14542. /***/ }),
  14543. /* 76 */
  14544. /*!***************************************************************************************************************!*\
  14545. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/backtop.js ***!
  14546. \***************************************************************************************************************/
  14547. /*! no static exports found */
  14548. /***/ (function(module, exports, __webpack_require__) {
  14549. "use strict";
  14550. Object.defineProperty(exports, "__esModule", {
  14551. value: true
  14552. });
  14553. exports.default = void 0;
  14554. /*
  14555. * @Author : LQ
  14556. * @Description :
  14557. * @version : 1.0
  14558. * @Date : 2021-08-20 16:44:21
  14559. * @LastAuthor : LQ
  14560. * @lastTime : 2021-08-20 16:50:18
  14561. * @FilePath : /u-view2.0/uview-ui/libs/config/props/backtop.js
  14562. */
  14563. var _default = {
  14564. // backtop组件
  14565. backtop: {
  14566. mode: 'circle',
  14567. icon: 'arrow-upward',
  14568. text: '',
  14569. duration: 100,
  14570. scrollTop: 0,
  14571. top: 400,
  14572. bottom: 100,
  14573. right: 20,
  14574. zIndex: 9,
  14575. iconStyle: function iconStyle() {
  14576. return {
  14577. color: '#909399',
  14578. fontSize: '19px'
  14579. };
  14580. }
  14581. }
  14582. };
  14583. exports.default = _default;
  14584. /***/ }),
  14585. /* 77 */
  14586. /*!*************************************************************************************************************!*\
  14587. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/badge.js ***!
  14588. \*************************************************************************************************************/
  14589. /*! no static exports found */
  14590. /***/ (function(module, exports, __webpack_require__) {
  14591. "use strict";
  14592. Object.defineProperty(exports, "__esModule", {
  14593. value: true
  14594. });
  14595. exports.default = void 0;
  14596. /*
  14597. * @Author : LQ
  14598. * @Description :
  14599. * @version : 1.0
  14600. * @Date : 2021-08-20 16:44:21
  14601. * @LastAuthor : LQ
  14602. * @lastTime : 2021-08-23 19:51:50
  14603. * @FilePath : /u-view2.0/uview-ui/libs/config/props/badge.js
  14604. */
  14605. var _default = {
  14606. // 徽标数组件
  14607. badge: {
  14608. isDot: false,
  14609. value: '',
  14610. show: true,
  14611. max: 999,
  14612. type: 'error',
  14613. showZero: false,
  14614. bgColor: null,
  14615. color: null,
  14616. shape: 'circle',
  14617. numberType: 'overflow',
  14618. offset: function offset() {
  14619. return [];
  14620. },
  14621. inverted: false,
  14622. absolute: false
  14623. }
  14624. };
  14625. exports.default = _default;
  14626. /***/ }),
  14627. /* 78 */
  14628. /*!**************************************************************************************************************!*\
  14629. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/button.js ***!
  14630. \**************************************************************************************************************/
  14631. /*! no static exports found */
  14632. /***/ (function(module, exports, __webpack_require__) {
  14633. "use strict";
  14634. Object.defineProperty(exports, "__esModule", {
  14635. value: true
  14636. });
  14637. exports.default = void 0;
  14638. /*
  14639. * @Author : LQ
  14640. * @Description :
  14641. * @version : 1.0
  14642. * @Date : 2021-08-20 16:44:21
  14643. * @LastAuthor : LQ
  14644. * @lastTime : 2021-08-20 16:51:27
  14645. * @FilePath : /u-view2.0/uview-ui/libs/config/props/button.js
  14646. */
  14647. var _default = {
  14648. // button组件
  14649. button: {
  14650. hairline: false,
  14651. type: 'info',
  14652. size: 'normal',
  14653. shape: 'square',
  14654. plain: false,
  14655. disabled: false,
  14656. loading: false,
  14657. loadingText: '',
  14658. loadingMode: 'spinner',
  14659. loadingSize: 15,
  14660. openType: '',
  14661. formType: '',
  14662. appParameter: '',
  14663. hoverStopPropagation: true,
  14664. lang: 'en',
  14665. sessionFrom: '',
  14666. sendMessageTitle: '',
  14667. sendMessagePath: '',
  14668. sendMessageImg: '',
  14669. showMessageCard: false,
  14670. dataName: '',
  14671. throttleTime: 0,
  14672. hoverStartTime: 0,
  14673. hoverStayTime: 200,
  14674. text: '',
  14675. icon: '',
  14676. iconColor: '',
  14677. color: ''
  14678. }
  14679. };
  14680. exports.default = _default;
  14681. /***/ }),
  14682. /* 79 */
  14683. /*!****************************************************************************************************************!*\
  14684. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/calendar.js ***!
  14685. \****************************************************************************************************************/
  14686. /*! no static exports found */
  14687. /***/ (function(module, exports, __webpack_require__) {
  14688. "use strict";
  14689. Object.defineProperty(exports, "__esModule", {
  14690. value: true
  14691. });
  14692. exports.default = void 0;
  14693. /*
  14694. * @Author : LQ
  14695. * @Description :
  14696. * @version : 1.0
  14697. * @Date : 2021-08-20 16:44:21
  14698. * @LastAuthor : LQ
  14699. * @lastTime : 2021-08-20 16:52:43
  14700. * @FilePath : /u-view2.0/uview-ui/libs/config/props/calendar.js
  14701. */
  14702. var _default = {
  14703. // calendar 组件
  14704. calendar: {
  14705. title: '日期选择',
  14706. showTitle: true,
  14707. showSubtitle: true,
  14708. mode: 'single',
  14709. startText: '开始',
  14710. endText: '结束',
  14711. customList: function customList() {
  14712. return [];
  14713. },
  14714. color: '#3c9cff',
  14715. minDate: 0,
  14716. maxDate: 0,
  14717. defaultDate: null,
  14718. maxCount: Number.MAX_SAFE_INTEGER,
  14719. // Infinity
  14720. rowHeight: 56,
  14721. formatter: null,
  14722. showLunar: false,
  14723. showMark: true,
  14724. confirmText: '确定',
  14725. confirmDisabledText: '确定',
  14726. show: false,
  14727. closeOnClickOverlay: false,
  14728. readonly: false,
  14729. showConfirm: true,
  14730. maxRange: Number.MAX_SAFE_INTEGER,
  14731. // Infinity
  14732. rangePrompt: '',
  14733. showRangePrompt: true,
  14734. allowSameDay: false,
  14735. round: 0,
  14736. monthNum: 3
  14737. }
  14738. };
  14739. exports.default = _default;
  14740. /***/ }),
  14741. /* 80 */
  14742. /*!*******************************************************************************************************************!*\
  14743. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/carKeyboard.js ***!
  14744. \*******************************************************************************************************************/
  14745. /*! no static exports found */
  14746. /***/ (function(module, exports, __webpack_require__) {
  14747. "use strict";
  14748. Object.defineProperty(exports, "__esModule", {
  14749. value: true
  14750. });
  14751. exports.default = void 0;
  14752. /*
  14753. * @Author : LQ
  14754. * @Description :
  14755. * @version : 1.0
  14756. * @Date : 2021-08-20 16:44:21
  14757. * @LastAuthor : LQ
  14758. * @lastTime : 2021-08-20 16:53:20
  14759. * @FilePath : /u-view2.0/uview-ui/libs/config/props/carKeyboard.js
  14760. */
  14761. var _default = {
  14762. // 车牌号键盘
  14763. carKeyboard: {
  14764. random: false
  14765. }
  14766. };
  14767. exports.default = _default;
  14768. /***/ }),
  14769. /* 81 */
  14770. /*!************************************************************************************************************!*\
  14771. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/cell.js ***!
  14772. \************************************************************************************************************/
  14773. /*! no static exports found */
  14774. /***/ (function(module, exports, __webpack_require__) {
  14775. "use strict";
  14776. Object.defineProperty(exports, "__esModule", {
  14777. value: true
  14778. });
  14779. exports.default = void 0;
  14780. /*
  14781. * @Author : LQ
  14782. * @Description :
  14783. * @version : 1.0
  14784. * @Date : 2021-08-20 16:44:21
  14785. * @LastAuthor : LQ
  14786. * @lastTime : 2021-08-23 20:53:09
  14787. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cell.js
  14788. */
  14789. var _default = {
  14790. // cell组件的props
  14791. cell: {
  14792. customClass: '',
  14793. title: '',
  14794. label: '',
  14795. value: '',
  14796. icon: '',
  14797. disabled: false,
  14798. border: true,
  14799. center: false,
  14800. url: '',
  14801. linkType: 'navigateTo',
  14802. clickable: false,
  14803. isLink: false,
  14804. required: false,
  14805. arrowDirection: '',
  14806. iconStyle: {},
  14807. rightIconStyle: {},
  14808. rightIcon: 'arrow-right',
  14809. titleStyle: {},
  14810. size: '',
  14811. stop: true,
  14812. name: ''
  14813. }
  14814. };
  14815. exports.default = _default;
  14816. /***/ }),
  14817. /* 82 */
  14818. /*!*****************************************************************************************************************!*\
  14819. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/cellGroup.js ***!
  14820. \*****************************************************************************************************************/
  14821. /*! no static exports found */
  14822. /***/ (function(module, exports, __webpack_require__) {
  14823. "use strict";
  14824. Object.defineProperty(exports, "__esModule", {
  14825. value: true
  14826. });
  14827. exports.default = void 0;
  14828. /*
  14829. * @Author : LQ
  14830. * @Description :
  14831. * @version : 1.0
  14832. * @Date : 2021-08-20 16:44:21
  14833. * @LastAuthor : LQ
  14834. * @lastTime : 2021-08-20 16:54:16
  14835. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cellGroup.js
  14836. */
  14837. var _default = {
  14838. // cell-group组件的props
  14839. cellGroup: {
  14840. title: '',
  14841. border: true,
  14842. customStyle: {}
  14843. }
  14844. };
  14845. exports.default = _default;
  14846. /***/ }),
  14847. /* 83 */
  14848. /*!****************************************************************************************************************!*\
  14849. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/checkbox.js ***!
  14850. \****************************************************************************************************************/
  14851. /*! no static exports found */
  14852. /***/ (function(module, exports, __webpack_require__) {
  14853. "use strict";
  14854. Object.defineProperty(exports, "__esModule", {
  14855. value: true
  14856. });
  14857. exports.default = void 0;
  14858. /*
  14859. * @Author : LQ
  14860. * @Description :
  14861. * @version : 1.0
  14862. * @Date : 2021-08-20 16:44:21
  14863. * @LastAuthor : LQ
  14864. * @lastTime : 2021-08-23 21:06:59
  14865. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkbox.js
  14866. */
  14867. var _default = {
  14868. // checkbox组件
  14869. checkbox: {
  14870. name: '',
  14871. shape: '',
  14872. size: '',
  14873. checkbox: false,
  14874. disabled: '',
  14875. activeColor: '',
  14876. inactiveColor: '',
  14877. iconSize: '',
  14878. iconColor: '',
  14879. label: '',
  14880. labelSize: '',
  14881. labelColor: '',
  14882. labelDisabled: ''
  14883. }
  14884. };
  14885. exports.default = _default;
  14886. /***/ }),
  14887. /* 84 */
  14888. /*!*********************************************************************************************************************!*\
  14889. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/checkboxGroup.js ***!
  14890. \*********************************************************************************************************************/
  14891. /*! no static exports found */
  14892. /***/ (function(module, exports, __webpack_require__) {
  14893. "use strict";
  14894. Object.defineProperty(exports, "__esModule", {
  14895. value: true
  14896. });
  14897. exports.default = void 0;
  14898. /*
  14899. * @Author : LQ
  14900. * @Description :
  14901. * @version : 1.0
  14902. * @Date : 2021-08-20 16:44:21
  14903. * @LastAuthor : LQ
  14904. * @lastTime : 2021-08-20 16:54:47
  14905. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkboxGroup.js
  14906. */
  14907. var _default = {
  14908. // checkbox-group组件
  14909. checkboxGroup: {
  14910. name: '',
  14911. value: function value() {
  14912. return [];
  14913. },
  14914. shape: 'square',
  14915. disabled: false,
  14916. activeColor: '#2979ff',
  14917. inactiveColor: '#c8c9cc',
  14918. size: 18,
  14919. placement: 'row',
  14920. labelSize: 14,
  14921. labelColor: '#303133',
  14922. labelDisabled: false,
  14923. iconColor: '#ffffff',
  14924. iconSize: 12,
  14925. iconPlacement: 'left',
  14926. borderBottom: false
  14927. }
  14928. };
  14929. exports.default = _default;
  14930. /***/ }),
  14931. /* 85 */
  14932. /*!**********************************************************************************************************************!*\
  14933. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/circleProgress.js ***!
  14934. \**********************************************************************************************************************/
  14935. /*! no static exports found */
  14936. /***/ (function(module, exports, __webpack_require__) {
  14937. "use strict";
  14938. Object.defineProperty(exports, "__esModule", {
  14939. value: true
  14940. });
  14941. exports.default = void 0;
  14942. /*
  14943. * @Author : LQ
  14944. * @Description :
  14945. * @version : 1.0
  14946. * @Date : 2021-08-20 16:44:21
  14947. * @LastAuthor : LQ
  14948. * @lastTime : 2021-08-20 16:55:02
  14949. * @FilePath : /u-view2.0/uview-ui/libs/config/props/circleProgress.js
  14950. */
  14951. var _default = {
  14952. // circleProgress 组件
  14953. circleProgress: {
  14954. percentage: 30
  14955. }
  14956. };
  14957. exports.default = _default;
  14958. /***/ }),
  14959. /* 86 */
  14960. /*!************************************************************************************************************!*\
  14961. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/code.js ***!
  14962. \************************************************************************************************************/
  14963. /*! no static exports found */
  14964. /***/ (function(module, exports, __webpack_require__) {
  14965. "use strict";
  14966. Object.defineProperty(exports, "__esModule", {
  14967. value: true
  14968. });
  14969. exports.default = void 0;
  14970. /*
  14971. * @Author : LQ
  14972. * @Description :
  14973. * @version : 1.0
  14974. * @Date : 2021-08-20 16:44:21
  14975. * @LastAuthor : LQ
  14976. * @lastTime : 2021-08-20 16:55:27
  14977. * @FilePath : /u-view2.0/uview-ui/libs/config/props/code.js
  14978. */
  14979. var _default = {
  14980. // code 组件
  14981. code: {
  14982. seconds: 60,
  14983. startText: '获取验证码',
  14984. changeText: 'X秒重新获取',
  14985. endText: '重新获取',
  14986. keepRunning: false,
  14987. uniqueKey: ''
  14988. }
  14989. };
  14990. exports.default = _default;
  14991. /***/ }),
  14992. /* 87 */
  14993. /*!*****************************************************************************************************************!*\
  14994. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/codeInput.js ***!
  14995. \*****************************************************************************************************************/
  14996. /*! no static exports found */
  14997. /***/ (function(module, exports, __webpack_require__) {
  14998. "use strict";
  14999. Object.defineProperty(exports, "__esModule", {
  15000. value: true
  15001. });
  15002. exports.default = void 0;
  15003. /*
  15004. * @Author : LQ
  15005. * @Description :
  15006. * @version : 1.0
  15007. * @Date : 2021-08-20 16:44:21
  15008. * @LastAuthor : LQ
  15009. * @lastTime : 2021-08-20 16:55:58
  15010. * @FilePath : /u-view2.0/uview-ui/libs/config/props/codeInput.js
  15011. */
  15012. var _default = {
  15013. // codeInput 组件
  15014. codeInput: {
  15015. adjustPosition: true,
  15016. maxlength: 6,
  15017. dot: false,
  15018. mode: 'box',
  15019. hairline: false,
  15020. space: 10,
  15021. value: '',
  15022. focus: false,
  15023. bold: false,
  15024. color: '#606266',
  15025. fontSize: 18,
  15026. size: 35,
  15027. disabledKeyboard: false,
  15028. borderColor: '#c9cacc',
  15029. disabledDot: true
  15030. }
  15031. };
  15032. exports.default = _default;
  15033. /***/ }),
  15034. /* 88 */
  15035. /*!***********************************************************************************************************!*\
  15036. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/col.js ***!
  15037. \***********************************************************************************************************/
  15038. /*! no static exports found */
  15039. /***/ (function(module, exports, __webpack_require__) {
  15040. "use strict";
  15041. Object.defineProperty(exports, "__esModule", {
  15042. value: true
  15043. });
  15044. exports.default = void 0;
  15045. /*
  15046. * @Author : LQ
  15047. * @Description :
  15048. * @version : 1.0
  15049. * @Date : 2021-08-20 16:44:21
  15050. * @LastAuthor : LQ
  15051. * @lastTime : 2021-08-20 16:56:12
  15052. * @FilePath : /u-view2.0/uview-ui/libs/config/props/col.js
  15053. */
  15054. var _default = {
  15055. // col 组件
  15056. col: {
  15057. span: 12,
  15058. offset: 0,
  15059. justify: 'start',
  15060. align: 'stretch',
  15061. textAlign: 'left'
  15062. }
  15063. };
  15064. exports.default = _default;
  15065. /***/ }),
  15066. /* 89 */
  15067. /*!****************************************************************************************************************!*\
  15068. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/collapse.js ***!
  15069. \****************************************************************************************************************/
  15070. /*! no static exports found */
  15071. /***/ (function(module, exports, __webpack_require__) {
  15072. "use strict";
  15073. Object.defineProperty(exports, "__esModule", {
  15074. value: true
  15075. });
  15076. exports.default = void 0;
  15077. /*
  15078. * @Author : LQ
  15079. * @Description :
  15080. * @version : 1.0
  15081. * @Date : 2021-08-20 16:44:21
  15082. * @LastAuthor : LQ
  15083. * @lastTime : 2021-08-20 16:56:30
  15084. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapse.js
  15085. */
  15086. var _default = {
  15087. // collapse 组件
  15088. collapse: {
  15089. value: null,
  15090. accordion: false,
  15091. border: true
  15092. }
  15093. };
  15094. exports.default = _default;
  15095. /***/ }),
  15096. /* 90 */
  15097. /*!********************************************************************************************************************!*\
  15098. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/collapseItem.js ***!
  15099. \********************************************************************************************************************/
  15100. /*! no static exports found */
  15101. /***/ (function(module, exports, __webpack_require__) {
  15102. "use strict";
  15103. Object.defineProperty(exports, "__esModule", {
  15104. value: true
  15105. });
  15106. exports.default = void 0;
  15107. /*
  15108. * @Author : LQ
  15109. * @Description :
  15110. * @version : 1.0
  15111. * @Date : 2021-08-20 16:44:21
  15112. * @LastAuthor : LQ
  15113. * @lastTime : 2021-08-20 16:56:42
  15114. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapseItem.js
  15115. */
  15116. var _default = {
  15117. // collapseItem 组件
  15118. collapseItem: {
  15119. title: '',
  15120. value: '',
  15121. label: '',
  15122. disabled: false,
  15123. isLink: true,
  15124. clickable: true,
  15125. border: true,
  15126. align: 'left',
  15127. name: '',
  15128. icon: '',
  15129. duration: 300
  15130. }
  15131. };
  15132. exports.default = _default;
  15133. /***/ }),
  15134. /* 91 */
  15135. /*!********************************************************************************************************************!*\
  15136. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/columnNotice.js ***!
  15137. \********************************************************************************************************************/
  15138. /*! no static exports found */
  15139. /***/ (function(module, exports, __webpack_require__) {
  15140. "use strict";
  15141. Object.defineProperty(exports, "__esModule", {
  15142. value: true
  15143. });
  15144. exports.default = void 0;
  15145. /*
  15146. * @Author : LQ
  15147. * @Description :
  15148. * @version : 1.0
  15149. * @Date : 2021-08-20 16:44:21
  15150. * @LastAuthor : LQ
  15151. * @lastTime : 2021-08-20 16:57:16
  15152. * @FilePath : /u-view2.0/uview-ui/libs/config/props/columnNotice.js
  15153. */
  15154. var _default = {
  15155. // columnNotice 组件
  15156. columnNotice: {
  15157. text: '',
  15158. icon: 'volume',
  15159. mode: '',
  15160. color: '#f9ae3d',
  15161. bgColor: '#fdf6ec',
  15162. fontSize: 14,
  15163. speed: 80,
  15164. step: false,
  15165. duration: 1500,
  15166. disableTouch: true
  15167. }
  15168. };
  15169. exports.default = _default;
  15170. /***/ }),
  15171. /* 92 */
  15172. /*!*****************************************************************************************************************!*\
  15173. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/countDown.js ***!
  15174. \*****************************************************************************************************************/
  15175. /*! no static exports found */
  15176. /***/ (function(module, exports, __webpack_require__) {
  15177. "use strict";
  15178. Object.defineProperty(exports, "__esModule", {
  15179. value: true
  15180. });
  15181. exports.default = void 0;
  15182. /*
  15183. * @Author : LQ
  15184. * @Description :
  15185. * @version : 1.0
  15186. * @Date : 2021-08-20 16:44:21
  15187. * @LastAuthor : LQ
  15188. * @lastTime : 2021-08-20 17:11:29
  15189. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countDown.js
  15190. */
  15191. var _default = {
  15192. // u-count-down 计时器组件
  15193. countDown: {
  15194. time: 0,
  15195. format: 'HH:mm:ss',
  15196. autoStart: true,
  15197. millisecond: false
  15198. }
  15199. };
  15200. exports.default = _default;
  15201. /***/ }),
  15202. /* 93 */
  15203. /*!***************************************************************************************************************!*\
  15204. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/countTo.js ***!
  15205. \***************************************************************************************************************/
  15206. /*! no static exports found */
  15207. /***/ (function(module, exports, __webpack_require__) {
  15208. "use strict";
  15209. Object.defineProperty(exports, "__esModule", {
  15210. value: true
  15211. });
  15212. exports.default = void 0;
  15213. /*
  15214. * @Author : LQ
  15215. * @Description :
  15216. * @version : 1.0
  15217. * @Date : 2021-08-20 16:44:21
  15218. * @LastAuthor : LQ
  15219. * @lastTime : 2021-08-20 16:57:32
  15220. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countTo.js
  15221. */
  15222. var _default = {
  15223. // countTo 组件
  15224. countTo: {
  15225. startVal: 0,
  15226. endVal: 0,
  15227. duration: 2000,
  15228. autoplay: true,
  15229. decimals: 0,
  15230. useEasing: true,
  15231. decimal: '.',
  15232. color: '#606266',
  15233. fontSize: 22,
  15234. bold: false,
  15235. separator: ''
  15236. }
  15237. };
  15238. exports.default = _default;
  15239. /***/ }),
  15240. /* 94 */
  15241. /*!**********************************************************************************************************************!*\
  15242. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/datetimePicker.js ***!
  15243. \**********************************************************************************************************************/
  15244. /*! no static exports found */
  15245. /***/ (function(module, exports, __webpack_require__) {
  15246. "use strict";
  15247. Object.defineProperty(exports, "__esModule", {
  15248. value: true
  15249. });
  15250. exports.default = void 0;
  15251. /*
  15252. * @Author : LQ
  15253. * @Description :
  15254. * @version : 1.0
  15255. * @Date : 2021-08-20 16:44:21
  15256. * @LastAuthor : LQ
  15257. * @lastTime : 2021-08-20 16:57:48
  15258. * @FilePath : /u-view2.0/uview-ui/libs/config/props/datetimePicker.js
  15259. */
  15260. var _default = {
  15261. // datetimePicker 组件
  15262. datetimePicker: {
  15263. show: false,
  15264. showToolbar: true,
  15265. value: '',
  15266. title: '',
  15267. mode: 'datetime',
  15268. maxDate: new Date(new Date().getFullYear() + 10, 0, 1).getTime(),
  15269. minDate: new Date(new Date().getFullYear() - 10, 0, 1).getTime(),
  15270. minHour: 0,
  15271. maxHour: 23,
  15272. minMinute: 0,
  15273. maxMinute: 59,
  15274. filter: null,
  15275. formatter: null,
  15276. loading: false,
  15277. itemHeight: 44,
  15278. cancelText: '取消',
  15279. confirmText: '确认',
  15280. cancelColor: '#909193',
  15281. confirmColor: '#3c9cff',
  15282. visibleItemCount: 5,
  15283. closeOnClickOverlay: false,
  15284. defaultIndex: function defaultIndex() {
  15285. return [];
  15286. }
  15287. }
  15288. };
  15289. exports.default = _default;
  15290. /***/ }),
  15291. /* 95 */
  15292. /*!***************************************************************************************************************!*\
  15293. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/divider.js ***!
  15294. \***************************************************************************************************************/
  15295. /*! no static exports found */
  15296. /***/ (function(module, exports, __webpack_require__) {
  15297. "use strict";
  15298. Object.defineProperty(exports, "__esModule", {
  15299. value: true
  15300. });
  15301. exports.default = void 0;
  15302. /*
  15303. * @Author : LQ
  15304. * @Description :
  15305. * @version : 1.0
  15306. * @Date : 2021-08-20 16:44:21
  15307. * @LastAuthor : LQ
  15308. * @lastTime : 2021-08-20 16:58:03
  15309. * @FilePath : /u-view2.0/uview-ui/libs/config/props/divider.js
  15310. */
  15311. var _default = {
  15312. // divider组件
  15313. divider: {
  15314. dashed: false,
  15315. hairline: true,
  15316. dot: false,
  15317. textPosition: 'center',
  15318. text: '',
  15319. textSize: 14,
  15320. textColor: '#909399',
  15321. lineColor: '#dcdfe6'
  15322. }
  15323. };
  15324. exports.default = _default;
  15325. /***/ }),
  15326. /* 96 */
  15327. /*!*************************************************************************************************************!*\
  15328. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/empty.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 17:03:27
  15344. * @FilePath : /u-view2.0/uview-ui/libs/config/props/empty.js
  15345. */
  15346. var _default = {
  15347. // empty组件
  15348. empty: {
  15349. icon: '',
  15350. text: '',
  15351. textColor: '#c0c4cc',
  15352. textSize: 14,
  15353. iconColor: '#c0c4cc',
  15354. iconSize: 90,
  15355. mode: 'data',
  15356. width: 160,
  15357. height: 160,
  15358. show: true,
  15359. marginTop: 0
  15360. }
  15361. };
  15362. exports.default = _default;
  15363. /***/ }),
  15364. /* 97 */
  15365. /*!************************************************************************************************************!*\
  15366. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/form.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 17:03:49
  15382. * @FilePath : /u-view2.0/uview-ui/libs/config/props/form.js
  15383. */
  15384. var _default = {
  15385. // form 组件
  15386. form: {
  15387. model: function model() {
  15388. return {};
  15389. },
  15390. rules: function rules() {
  15391. return {};
  15392. },
  15393. errorType: 'message',
  15394. borderBottom: true,
  15395. labelPosition: 'left',
  15396. labelWidth: 45,
  15397. labelAlign: 'left',
  15398. labelStyle: function labelStyle() {
  15399. return {};
  15400. }
  15401. }
  15402. };
  15403. exports.default = _default;
  15404. /***/ }),
  15405. /* 98 */
  15406. /*!****************************************************************************************************************!*\
  15407. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/formItem.js ***!
  15408. \****************************************************************************************************************/
  15409. /*! no static exports found */
  15410. /***/ (function(module, exports, __webpack_require__) {
  15411. "use strict";
  15412. Object.defineProperty(exports, "__esModule", {
  15413. value: true
  15414. });
  15415. exports.default = void 0;
  15416. /*
  15417. * @Author : LQ
  15418. * @Description :
  15419. * @version : 1.0
  15420. * @Date : 2021-08-20 16:44:21
  15421. * @LastAuthor : LQ
  15422. * @lastTime : 2021-08-20 17:04:32
  15423. * @FilePath : /u-view2.0/uview-ui/libs/config/props/formItem.js
  15424. */
  15425. var _default = {
  15426. // formItem 组件
  15427. formItem: {
  15428. label: '',
  15429. prop: '',
  15430. borderBottom: '',
  15431. labelPosition: '',
  15432. labelWidth: '',
  15433. rightIcon: '',
  15434. leftIcon: '',
  15435. required: false,
  15436. leftIconStyle: ''
  15437. }
  15438. };
  15439. exports.default = _default;
  15440. /***/ }),
  15441. /* 99 */
  15442. /*!***********************************************************************************************************!*\
  15443. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/gap.js ***!
  15444. \***********************************************************************************************************/
  15445. /*! no static exports found */
  15446. /***/ (function(module, exports, __webpack_require__) {
  15447. "use strict";
  15448. Object.defineProperty(exports, "__esModule", {
  15449. value: true
  15450. });
  15451. exports.default = void 0;
  15452. /*
  15453. * @Author : LQ
  15454. * @Description :
  15455. * @version : 1.0
  15456. * @Date : 2021-08-20 16:44:21
  15457. * @LastAuthor : LQ
  15458. * @lastTime : 2021-08-20 17:05:25
  15459. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gap.js
  15460. */
  15461. var _default = {
  15462. // gap组件
  15463. gap: {
  15464. bgColor: 'transparent',
  15465. height: 20,
  15466. marginTop: 0,
  15467. marginBottom: 0,
  15468. customStyle: {}
  15469. }
  15470. };
  15471. exports.default = _default;
  15472. /***/ }),
  15473. /* 100 */
  15474. /*!************************************************************************************************************!*\
  15475. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/grid.js ***!
  15476. \************************************************************************************************************/
  15477. /*! no static exports found */
  15478. /***/ (function(module, exports, __webpack_require__) {
  15479. "use strict";
  15480. Object.defineProperty(exports, "__esModule", {
  15481. value: true
  15482. });
  15483. exports.default = void 0;
  15484. /*
  15485. * @Author : LQ
  15486. * @Description :
  15487. * @version : 1.0
  15488. * @Date : 2021-08-20 16:44:21
  15489. * @LastAuthor : LQ
  15490. * @lastTime : 2021-08-20 17:05:57
  15491. * @FilePath : /u-view2.0/uview-ui/libs/config/props/grid.js
  15492. */
  15493. var _default = {
  15494. // grid组件
  15495. grid: {
  15496. col: 3,
  15497. border: false,
  15498. align: 'left'
  15499. }
  15500. };
  15501. exports.default = _default;
  15502. /***/ }),
  15503. /* 101 */
  15504. /*!****************************************************************************************************************!*\
  15505. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/gridItem.js ***!
  15506. \****************************************************************************************************************/
  15507. /*! no static exports found */
  15508. /***/ (function(module, exports, __webpack_require__) {
  15509. "use strict";
  15510. Object.defineProperty(exports, "__esModule", {
  15511. value: true
  15512. });
  15513. exports.default = void 0;
  15514. /*
  15515. * @Author : LQ
  15516. * @Description :
  15517. * @version : 1.0
  15518. * @Date : 2021-08-20 16:44:21
  15519. * @LastAuthor : LQ
  15520. * @lastTime : 2021-08-20 17:06:13
  15521. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gridItem.js
  15522. */
  15523. var _default = {
  15524. // grid-item组件
  15525. gridItem: {
  15526. name: null,
  15527. bgColor: 'transparent'
  15528. }
  15529. };
  15530. exports.default = _default;
  15531. /***/ }),
  15532. /* 102 */
  15533. /*!************************************************************************************************************!*\
  15534. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/icon.js ***!
  15535. \************************************************************************************************************/
  15536. /*! no static exports found */
  15537. /***/ (function(module, exports, __webpack_require__) {
  15538. "use strict";
  15539. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15540. Object.defineProperty(exports, "__esModule", {
  15541. value: true
  15542. });
  15543. exports.default = void 0;
  15544. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 69));
  15545. /*
  15546. * @Author : LQ
  15547. * @Description :
  15548. * @version : 1.0
  15549. * @Date : 2021-08-20 16:44:21
  15550. * @LastAuthor : LQ
  15551. * @lastTime : 2021-08-20 18:00:14
  15552. * @FilePath : /u-view2.0/uview-ui/libs/config/props/icon.js
  15553. */
  15554. var color = _config.default.color;
  15555. var _default = {
  15556. // icon组件
  15557. icon: {
  15558. name: '',
  15559. color: color['u-content-color'],
  15560. size: '16px',
  15561. bold: false,
  15562. index: '',
  15563. hoverClass: '',
  15564. customPrefix: 'uicon',
  15565. label: '',
  15566. labelPos: 'right',
  15567. labelSize: '15px',
  15568. labelColor: color['u-content-color'],
  15569. space: '3px',
  15570. imgMode: '',
  15571. width: '',
  15572. height: '',
  15573. top: 0,
  15574. stop: false
  15575. }
  15576. };
  15577. exports.default = _default;
  15578. /***/ }),
  15579. /* 103 */
  15580. /*!*************************************************************************************************************!*\
  15581. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/image.js ***!
  15582. \*************************************************************************************************************/
  15583. /*! no static exports found */
  15584. /***/ (function(module, exports, __webpack_require__) {
  15585. "use strict";
  15586. Object.defineProperty(exports, "__esModule", {
  15587. value: true
  15588. });
  15589. exports.default = void 0;
  15590. /*
  15591. * @Author : LQ
  15592. * @Description :
  15593. * @version : 1.0
  15594. * @Date : 2021-08-20 16:44:21
  15595. * @LastAuthor : LQ
  15596. * @lastTime : 2021-08-20 17:01:51
  15597. * @FilePath : /u-view2.0/uview-ui/libs/config/props/image.js
  15598. */
  15599. var _default = {
  15600. // image组件
  15601. image: {
  15602. src: '',
  15603. mode: 'aspectFill',
  15604. width: '300',
  15605. height: '225',
  15606. shape: 'square',
  15607. radius: 0,
  15608. lazyLoad: true,
  15609. showMenuByLongpress: true,
  15610. loadingIcon: 'photo',
  15611. errorIcon: 'error-circle',
  15612. showLoading: true,
  15613. showError: true,
  15614. fade: true,
  15615. webp: false,
  15616. duration: 500,
  15617. bgColor: '#f3f4f6'
  15618. }
  15619. };
  15620. exports.default = _default;
  15621. /***/ }),
  15622. /* 104 */
  15623. /*!*******************************************************************************************************************!*\
  15624. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/indexAnchor.js ***!
  15625. \*******************************************************************************************************************/
  15626. /*! no static exports found */
  15627. /***/ (function(module, exports, __webpack_require__) {
  15628. "use strict";
  15629. Object.defineProperty(exports, "__esModule", {
  15630. value: true
  15631. });
  15632. exports.default = void 0;
  15633. /*
  15634. * @Author : LQ
  15635. * @Description :
  15636. * @version : 1.0
  15637. * @Date : 2021-08-20 16:44:21
  15638. * @LastAuthor : LQ
  15639. * @lastTime : 2021-08-20 17:13:15
  15640. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexAnchor.js
  15641. */
  15642. var _default = {
  15643. // indexAnchor 组件
  15644. indexAnchor: {
  15645. text: '',
  15646. color: '#606266',
  15647. size: 14,
  15648. bgColor: '#dedede',
  15649. height: 32
  15650. }
  15651. };
  15652. exports.default = _default;
  15653. /***/ }),
  15654. /* 105 */
  15655. /*!*****************************************************************************************************************!*\
  15656. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/indexList.js ***!
  15657. \*****************************************************************************************************************/
  15658. /*! no static exports found */
  15659. /***/ (function(module, exports, __webpack_require__) {
  15660. "use strict";
  15661. Object.defineProperty(exports, "__esModule", {
  15662. value: true
  15663. });
  15664. exports.default = void 0;
  15665. /*
  15666. * @Author : LQ
  15667. * @Description :
  15668. * @version : 1.0
  15669. * @Date : 2021-08-20 16:44:21
  15670. * @LastAuthor : LQ
  15671. * @lastTime : 2021-08-20 17:13:35
  15672. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexList.js
  15673. */
  15674. var _default = {
  15675. // indexList 组件
  15676. indexList: {
  15677. inactiveColor: '#606266',
  15678. activeColor: '#5677fc',
  15679. indexList: function indexList() {
  15680. return [];
  15681. },
  15682. sticky: true,
  15683. customNavHeight: 0
  15684. }
  15685. };
  15686. exports.default = _default;
  15687. /***/ }),
  15688. /* 106 */
  15689. /*!*************************************************************************************************************!*\
  15690. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/input.js ***!
  15691. \*************************************************************************************************************/
  15692. /*! no static exports found */
  15693. /***/ (function(module, exports, __webpack_require__) {
  15694. "use strict";
  15695. Object.defineProperty(exports, "__esModule", {
  15696. value: true
  15697. });
  15698. exports.default = void 0;
  15699. /*
  15700. * @Author : LQ
  15701. * @Description :
  15702. * @version : 1.0
  15703. * @Date : 2021-08-20 16:44:21
  15704. * @LastAuthor : LQ
  15705. * @lastTime : 2021-08-20 17:13:55
  15706. * @FilePath : /u-view2.0/uview-ui/libs/config/props/input.js
  15707. */
  15708. var _default = {
  15709. // index 组件
  15710. input: {
  15711. value: '',
  15712. type: 'text',
  15713. fixed: false,
  15714. disabled: false,
  15715. disabledColor: '#f5f7fa',
  15716. clearable: false,
  15717. password: false,
  15718. maxlength: -1,
  15719. placeholder: null,
  15720. placeholderClass: 'input-placeholder',
  15721. placeholderStyle: 'color: #c0c4cc',
  15722. showWordLimit: false,
  15723. confirmType: 'done',
  15724. confirmHold: false,
  15725. holdKeyboard: false,
  15726. focus: false,
  15727. autoBlur: false,
  15728. disableDefaultPadding: false,
  15729. cursor: -1,
  15730. cursorSpacing: 30,
  15731. selectionStart: -1,
  15732. selectionEnd: -1,
  15733. adjustPosition: true,
  15734. inputAlign: 'left',
  15735. fontSize: '15px',
  15736. color: '#303133',
  15737. prefixIcon: '',
  15738. prefixIconStyle: '',
  15739. suffixIcon: '',
  15740. suffixIconStyle: '',
  15741. border: 'surround',
  15742. readonly: false,
  15743. shape: 'square',
  15744. formatter: null
  15745. }
  15746. };
  15747. exports.default = _default;
  15748. /***/ }),
  15749. /* 107 */
  15750. /*!****************************************************************************************************************!*\
  15751. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/keyboard.js ***!
  15752. \****************************************************************************************************************/
  15753. /*! no static exports found */
  15754. /***/ (function(module, exports, __webpack_require__) {
  15755. "use strict";
  15756. Object.defineProperty(exports, "__esModule", {
  15757. value: true
  15758. });
  15759. exports.default = void 0;
  15760. /*
  15761. * @Author : LQ
  15762. * @Description :
  15763. * @version : 1.0
  15764. * @Date : 2021-08-20 16:44:21
  15765. * @LastAuthor : LQ
  15766. * @lastTime : 2021-08-20 17:07:49
  15767. * @FilePath : /u-view2.0/uview-ui/libs/config/props/keyboard.js
  15768. */
  15769. var _default = {
  15770. // 键盘组件
  15771. keyboard: {
  15772. mode: 'number',
  15773. dotDisabled: false,
  15774. tooltip: true,
  15775. showTips: true,
  15776. tips: '',
  15777. showCancel: true,
  15778. showConfirm: true,
  15779. random: false,
  15780. safeAreaInsetBottom: true,
  15781. closeOnClickOverlay: true,
  15782. show: false,
  15783. overlay: true,
  15784. zIndex: 10075,
  15785. cancelText: '取消',
  15786. confirmText: '确定',
  15787. autoChange: false
  15788. }
  15789. };
  15790. exports.default = _default;
  15791. /***/ }),
  15792. /* 108 */
  15793. /*!************************************************************************************************************!*\
  15794. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/line.js ***!
  15795. \************************************************************************************************************/
  15796. /*! no static exports found */
  15797. /***/ (function(module, exports, __webpack_require__) {
  15798. "use strict";
  15799. Object.defineProperty(exports, "__esModule", {
  15800. value: true
  15801. });
  15802. exports.default = void 0;
  15803. /*
  15804. * @Author : LQ
  15805. * @Description :
  15806. * @version : 1.0
  15807. * @Date : 2021-08-20 16:44:21
  15808. * @LastAuthor : LQ
  15809. * @lastTime : 2021-08-20 17:04:49
  15810. * @FilePath : /u-view2.0/uview-ui/libs/config/props/line.js
  15811. */
  15812. var _default = {
  15813. // line组件
  15814. line: {
  15815. color: '#d6d7d9',
  15816. length: '100%',
  15817. direction: 'row',
  15818. hairline: true,
  15819. margin: 0,
  15820. dashed: false
  15821. }
  15822. };
  15823. exports.default = _default;
  15824. /***/ }),
  15825. /* 109 */
  15826. /*!********************************************************************************************************************!*\
  15827. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/lineProgress.js ***!
  15828. \********************************************************************************************************************/
  15829. /*! no static exports found */
  15830. /***/ (function(module, exports, __webpack_require__) {
  15831. "use strict";
  15832. Object.defineProperty(exports, "__esModule", {
  15833. value: true
  15834. });
  15835. exports.default = void 0;
  15836. /*
  15837. * @Author : LQ
  15838. * @Description :
  15839. * @version : 1.0
  15840. * @Date : 2021-08-20 16:44:21
  15841. * @LastAuthor : LQ
  15842. * @lastTime : 2021-08-20 17:14:11
  15843. * @FilePath : /u-view2.0/uview-ui/libs/config/props/lineProgress.js
  15844. */
  15845. var _default = {
  15846. // lineProgress 组件
  15847. lineProgress: {
  15848. activeColor: '#19be6b',
  15849. inactiveColor: '#ececec',
  15850. percentage: 0,
  15851. showText: true,
  15852. height: 12
  15853. }
  15854. };
  15855. exports.default = _default;
  15856. /***/ }),
  15857. /* 110 */
  15858. /*!************************************************************************************************************!*\
  15859. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/link.js ***!
  15860. \************************************************************************************************************/
  15861. /*! no static exports found */
  15862. /***/ (function(module, exports, __webpack_require__) {
  15863. "use strict";
  15864. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15865. Object.defineProperty(exports, "__esModule", {
  15866. value: true
  15867. });
  15868. exports.default = void 0;
  15869. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 69));
  15870. /*
  15871. * @Author : LQ
  15872. * @Description :
  15873. * @version : 1.0
  15874. * @Date : 2021-08-20 16:44:21
  15875. * @LastAuthor : LQ
  15876. * @lastTime : 2021-08-20 17:45:36
  15877. * @FilePath : /u-view2.0/uview-ui/libs/config/props/link.js
  15878. */
  15879. var color = _config.default.color;
  15880. var _default = {
  15881. // link超链接组件props参数
  15882. link: {
  15883. color: color['u-primary'],
  15884. fontSize: 15,
  15885. underLine: false,
  15886. href: '',
  15887. mpTips: '链接已复制,请在浏览器打开',
  15888. lineColor: '',
  15889. text: ''
  15890. }
  15891. };
  15892. exports.default = _default;
  15893. /***/ }),
  15894. /* 111 */
  15895. /*!************************************************************************************************************!*\
  15896. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/list.js ***!
  15897. \************************************************************************************************************/
  15898. /*! no static exports found */
  15899. /***/ (function(module, exports, __webpack_require__) {
  15900. "use strict";
  15901. Object.defineProperty(exports, "__esModule", {
  15902. value: true
  15903. });
  15904. exports.default = void 0;
  15905. /*
  15906. * @Author : LQ
  15907. * @Description :
  15908. * @version : 1.0
  15909. * @Date : 2021-08-20 16:44:21
  15910. * @LastAuthor : LQ
  15911. * @lastTime : 2021-08-20 17:14:53
  15912. * @FilePath : /u-view2.0/uview-ui/libs/config/props/list.js
  15913. */
  15914. var _default = {
  15915. // list 组件
  15916. list: {
  15917. showScrollbar: false,
  15918. lowerThreshold: 50,
  15919. upperThreshold: 0,
  15920. scrollTop: 0,
  15921. offsetAccuracy: 10,
  15922. enableFlex: false,
  15923. pagingEnabled: false,
  15924. scrollable: true,
  15925. scrollIntoView: '',
  15926. scrollWithAnimation: false,
  15927. enableBackToTop: false,
  15928. height: 0,
  15929. width: 0,
  15930. preLoadScreen: 1
  15931. }
  15932. };
  15933. exports.default = _default;
  15934. /***/ }),
  15935. /* 112 */
  15936. /*!****************************************************************************************************************!*\
  15937. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/listItem.js ***!
  15938. \****************************************************************************************************************/
  15939. /*! no static exports found */
  15940. /***/ (function(module, exports, __webpack_require__) {
  15941. "use strict";
  15942. Object.defineProperty(exports, "__esModule", {
  15943. value: true
  15944. });
  15945. exports.default = void 0;
  15946. /*
  15947. * @Author : LQ
  15948. * @Description :
  15949. * @version : 1.0
  15950. * @Date : 2021-08-20 16:44:21
  15951. * @LastAuthor : LQ
  15952. * @lastTime : 2021-08-20 17:15:40
  15953. * @FilePath : /u-view2.0/uview-ui/libs/config/props/listItem.js
  15954. */
  15955. var _default = {
  15956. // listItem 组件
  15957. listItem: {
  15958. anchor: ''
  15959. }
  15960. };
  15961. exports.default = _default;
  15962. /***/ }),
  15963. /* 113 */
  15964. /*!*******************************************************************************************************************!*\
  15965. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/loadingIcon.js ***!
  15966. \*******************************************************************************************************************/
  15967. /*! no static exports found */
  15968. /***/ (function(module, exports, __webpack_require__) {
  15969. "use strict";
  15970. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15971. Object.defineProperty(exports, "__esModule", {
  15972. value: true
  15973. });
  15974. exports.default = void 0;
  15975. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 69));
  15976. /*
  15977. * @Author : LQ
  15978. * @Description :
  15979. * @version : 1.0
  15980. * @Date : 2021-08-20 16:44:21
  15981. * @LastAuthor : LQ
  15982. * @lastTime : 2021-08-20 17:45:47
  15983. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingIcon.js
  15984. */
  15985. var color = _config.default.color;
  15986. var _default = {
  15987. // loading-icon加载中图标组件
  15988. loadingIcon: {
  15989. show: true,
  15990. color: color['u-tips-color'],
  15991. textColor: color['u-tips-color'],
  15992. vertical: false,
  15993. mode: 'spinner',
  15994. size: 24,
  15995. textSize: 15,
  15996. text: '',
  15997. timingFunction: 'ease-in-out',
  15998. duration: 1200,
  15999. inactiveColor: ''
  16000. }
  16001. };
  16002. exports.default = _default;
  16003. /***/ }),
  16004. /* 114 */
  16005. /*!*******************************************************************************************************************!*\
  16006. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/loadingPage.js ***!
  16007. \*******************************************************************************************************************/
  16008. /*! no static exports found */
  16009. /***/ (function(module, exports, __webpack_require__) {
  16010. "use strict";
  16011. Object.defineProperty(exports, "__esModule", {
  16012. value: true
  16013. });
  16014. exports.default = void 0;
  16015. /*
  16016. * @Author : LQ
  16017. * @Description :
  16018. * @version : 1.0
  16019. * @Date : 2021-08-20 16:44:21
  16020. * @LastAuthor : LQ
  16021. * @lastTime : 2021-08-20 17:00:23
  16022. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingPage.js
  16023. */
  16024. var _default = {
  16025. // loading-page组件
  16026. loadingPage: {
  16027. loadingText: '正在加载',
  16028. image: '',
  16029. loadingMode: 'circle',
  16030. loading: false,
  16031. bgColor: '#ffffff',
  16032. color: '#C8C8C8',
  16033. fontSize: 19,
  16034. iconSize: 28,
  16035. loadingColor: '#C8C8C8'
  16036. }
  16037. };
  16038. exports.default = _default;
  16039. /***/ }),
  16040. /* 115 */
  16041. /*!****************************************************************************************************************!*\
  16042. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/loadmore.js ***!
  16043. \****************************************************************************************************************/
  16044. /*! no static exports found */
  16045. /***/ (function(module, exports, __webpack_require__) {
  16046. "use strict";
  16047. Object.defineProperty(exports, "__esModule", {
  16048. value: true
  16049. });
  16050. exports.default = void 0;
  16051. /*
  16052. * @Author : LQ
  16053. * @Description :
  16054. * @version : 1.0
  16055. * @Date : 2021-08-20 16:44:21
  16056. * @LastAuthor : LQ
  16057. * @lastTime : 2021-08-20 17:15:26
  16058. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadmore.js
  16059. */
  16060. var _default = {
  16061. // loadmore 组件
  16062. loadmore: {
  16063. status: 'loadmore',
  16064. bgColor: 'transparent',
  16065. icon: true,
  16066. fontSize: 14,
  16067. iconSize: 17,
  16068. color: '#606266',
  16069. loadingIcon: 'spinner',
  16070. loadmoreText: '加载更多',
  16071. loadingText: '正在加载...',
  16072. nomoreText: '没有更多了',
  16073. isDot: false,
  16074. iconColor: '#b7b7b7',
  16075. marginTop: 10,
  16076. marginBottom: 10,
  16077. height: 'auto',
  16078. line: false,
  16079. lineColor: '#E6E8EB',
  16080. dashed: false
  16081. }
  16082. };
  16083. exports.default = _default;
  16084. /***/ }),
  16085. /* 116 */
  16086. /*!*************************************************************************************************************!*\
  16087. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/modal.js ***!
  16088. \*************************************************************************************************************/
  16089. /*! no static exports found */
  16090. /***/ (function(module, exports, __webpack_require__) {
  16091. "use strict";
  16092. Object.defineProperty(exports, "__esModule", {
  16093. value: true
  16094. });
  16095. exports.default = void 0;
  16096. /*
  16097. * @Author : LQ
  16098. * @Description :
  16099. * @version : 1.0
  16100. * @Date : 2021-08-20 16:44:21
  16101. * @LastAuthor : LQ
  16102. * @lastTime : 2021-08-20 17:15:59
  16103. * @FilePath : /u-view2.0/uview-ui/libs/config/props/modal.js
  16104. */
  16105. var _default = {
  16106. // modal 组件
  16107. modal: {
  16108. show: false,
  16109. title: '',
  16110. content: '',
  16111. confirmText: '确认',
  16112. cancelText: '取消',
  16113. showConfirmButton: true,
  16114. showCancelButton: false,
  16115. confirmColor: '#2979ff',
  16116. cancelColor: '#606266',
  16117. buttonReverse: false,
  16118. zoom: true,
  16119. asyncClose: false,
  16120. closeOnClickOverlay: false,
  16121. negativeTop: 0,
  16122. width: '650rpx',
  16123. confirmButtonShape: ''
  16124. }
  16125. };
  16126. exports.default = _default;
  16127. /***/ }),
  16128. /* 117 */
  16129. /*!**************************************************************************************************************!*\
  16130. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/navbar.js ***!
  16131. \**************************************************************************************************************/
  16132. /*! no static exports found */
  16133. /***/ (function(module, exports, __webpack_require__) {
  16134. "use strict";
  16135. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  16136. Object.defineProperty(exports, "__esModule", {
  16137. value: true
  16138. });
  16139. exports.default = void 0;
  16140. var _color = _interopRequireDefault(__webpack_require__(/*! ../color */ 118));
  16141. /*
  16142. * @Author : LQ
  16143. * @Description :
  16144. * @version : 1.0
  16145. * @Date : 2021-08-20 16:44:21
  16146. * @LastAuthor : LQ
  16147. * @lastTime : 2021-08-20 17:16:18
  16148. * @FilePath : /u-view2.0/uview-ui/libs/config/props/navbar.js
  16149. */
  16150. var _default = {
  16151. // navbar 组件
  16152. navbar: {
  16153. safeAreaInsetTop: true,
  16154. placeholder: false,
  16155. fixed: true,
  16156. border: false,
  16157. leftIcon: 'arrow-left',
  16158. leftText: '',
  16159. rightText: '',
  16160. rightIcon: '',
  16161. title: '',
  16162. bgColor: '#ffffff',
  16163. titleWidth: '400rpx',
  16164. height: '44px',
  16165. leftIconSize: 20,
  16166. leftIconColor: _color.default.mainColor,
  16167. autoBack: false,
  16168. titleStyle: ''
  16169. }
  16170. };
  16171. exports.default = _default;
  16172. /***/ }),
  16173. /* 118 */
  16174. /*!*******************************************************************************************************!*\
  16175. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/color.js ***!
  16176. \*******************************************************************************************************/
  16177. /*! no static exports found */
  16178. /***/ (function(module, exports, __webpack_require__) {
  16179. "use strict";
  16180. Object.defineProperty(exports, "__esModule", {
  16181. value: true
  16182. });
  16183. exports.default = void 0;
  16184. // 为了让用户能够自定义主题,会逐步弃用此文件,各颜色通过css提供
  16185. // 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)
  16186. var color = {
  16187. primary: '#3c9cff',
  16188. info: '#909399',
  16189. default: '#909399',
  16190. warning: '#f9ae3d',
  16191. error: '#f56c6c',
  16192. success: '#5ac725',
  16193. mainColor: '#303133',
  16194. contentColor: '#606266',
  16195. tipsColor: '#909399',
  16196. lightColor: '#c0c4cc',
  16197. borderColor: '#e4e7ed'
  16198. };
  16199. var _default = color;
  16200. exports.default = _default;
  16201. /***/ }),
  16202. /* 119 */
  16203. /*!*****************************************************************************************************************!*\
  16204. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/noNetwork.js ***!
  16205. \*****************************************************************************************************************/
  16206. /*! no static exports found */
  16207. /***/ (function(module, exports, __webpack_require__) {
  16208. "use strict";
  16209. Object.defineProperty(exports, "__esModule", {
  16210. value: true
  16211. });
  16212. exports.default = void 0;
  16213. /*
  16214. * @Author : LQ
  16215. * @Description :
  16216. * @version : 1.0
  16217. * @Date : 2021-08-20 16:44:21
  16218. * @LastAuthor : LQ
  16219. * @lastTime : 2021-08-20 17:16:39
  16220. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noNetwork.js
  16221. */
  16222. var _default = {
  16223. // noNetwork
  16224. noNetwork: {
  16225. tips: '哎呀,网络信号丢失',
  16226. zIndex: '',
  16227. 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'
  16228. }
  16229. };
  16230. exports.default = _default;
  16231. /***/ }),
  16232. /* 120 */
  16233. /*!*****************************************************************************************************************!*\
  16234. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/noticeBar.js ***!
  16235. \*****************************************************************************************************************/
  16236. /*! no static exports found */
  16237. /***/ (function(module, exports, __webpack_require__) {
  16238. "use strict";
  16239. Object.defineProperty(exports, "__esModule", {
  16240. value: true
  16241. });
  16242. exports.default = void 0;
  16243. /*
  16244. * @Author : LQ
  16245. * @Description :
  16246. * @version : 1.0
  16247. * @Date : 2021-08-20 16:44:21
  16248. * @LastAuthor : LQ
  16249. * @lastTime : 2021-08-20 17:17:13
  16250. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noticeBar.js
  16251. */
  16252. var _default = {
  16253. // noticeBar
  16254. noticeBar: {
  16255. text: function text() {
  16256. return [];
  16257. },
  16258. direction: 'row',
  16259. step: false,
  16260. icon: 'volume',
  16261. mode: '',
  16262. color: '#f9ae3d',
  16263. bgColor: '#fdf6ec',
  16264. speed: 80,
  16265. fontSize: 14,
  16266. duration: 2000,
  16267. disableTouch: true,
  16268. url: '',
  16269. linkType: 'navigateTo'
  16270. }
  16271. };
  16272. exports.default = _default;
  16273. /***/ }),
  16274. /* 121 */
  16275. /*!**************************************************************************************************************!*\
  16276. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/notify.js ***!
  16277. \**************************************************************************************************************/
  16278. /*! no static exports found */
  16279. /***/ (function(module, exports, __webpack_require__) {
  16280. "use strict";
  16281. Object.defineProperty(exports, "__esModule", {
  16282. value: true
  16283. });
  16284. exports.default = void 0;
  16285. /*
  16286. * @Author : LQ
  16287. * @Description :
  16288. * @version : 1.0
  16289. * @Date : 2021-08-20 16:44:21
  16290. * @LastAuthor : LQ
  16291. * @lastTime : 2021-08-20 17:10:21
  16292. * @FilePath : /u-view2.0/uview-ui/libs/config/props/notify.js
  16293. */
  16294. var _default = {
  16295. // notify组件
  16296. notify: {
  16297. top: 0,
  16298. type: 'primary',
  16299. color: '#ffffff',
  16300. bgColor: '',
  16301. message: '',
  16302. duration: 3000,
  16303. fontSize: 15,
  16304. safeAreaInsetTop: false
  16305. }
  16306. };
  16307. exports.default = _default;
  16308. /***/ }),
  16309. /* 122 */
  16310. /*!*****************************************************************************************************************!*\
  16311. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/numberBox.js ***!
  16312. \*****************************************************************************************************************/
  16313. /*! no static exports found */
  16314. /***/ (function(module, exports, __webpack_require__) {
  16315. "use strict";
  16316. Object.defineProperty(exports, "__esModule", {
  16317. value: true
  16318. });
  16319. exports.default = void 0;
  16320. /*
  16321. * @Author : LQ
  16322. * @Description :
  16323. * @version : 1.0
  16324. * @Date : 2021-08-20 16:44:21
  16325. * @LastAuthor : LQ
  16326. * @lastTime : 2021-08-20 17:11:46
  16327. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberBox.js
  16328. */
  16329. var _default = {
  16330. // 步进器组件
  16331. numberBox: {
  16332. name: '',
  16333. value: 0,
  16334. min: 1,
  16335. max: Number.MAX_SAFE_INTEGER,
  16336. step: 1,
  16337. integer: false,
  16338. disabled: false,
  16339. disabledInput: false,
  16340. asyncChange: false,
  16341. inputWidth: 35,
  16342. showMinus: true,
  16343. showPlus: true,
  16344. decimalLength: null,
  16345. longPress: true,
  16346. color: '#323233',
  16347. buttonSize: 30,
  16348. bgColor: '#EBECEE',
  16349. cursorSpacing: 100,
  16350. disableMinus: false,
  16351. disablePlus: false,
  16352. iconStyle: ''
  16353. }
  16354. };
  16355. exports.default = _default;
  16356. /***/ }),
  16357. /* 123 */
  16358. /*!**********************************************************************************************************************!*\
  16359. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/numberKeyboard.js ***!
  16360. \**********************************************************************************************************************/
  16361. /*! no static exports found */
  16362. /***/ (function(module, exports, __webpack_require__) {
  16363. "use strict";
  16364. Object.defineProperty(exports, "__esModule", {
  16365. value: true
  16366. });
  16367. exports.default = void 0;
  16368. /*
  16369. * @Author : LQ
  16370. * @Description :
  16371. * @version : 1.0
  16372. * @Date : 2021-08-20 16:44:21
  16373. * @LastAuthor : LQ
  16374. * @lastTime : 2021-08-20 17:08:05
  16375. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberKeyboard.js
  16376. */
  16377. var _default = {
  16378. // 数字键盘
  16379. numberKeyboard: {
  16380. mode: 'number',
  16381. dotDisabled: false,
  16382. random: false
  16383. }
  16384. };
  16385. exports.default = _default;
  16386. /***/ }),
  16387. /* 124 */
  16388. /*!***************************************************************************************************************!*\
  16389. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/overlay.js ***!
  16390. \***************************************************************************************************************/
  16391. /*! no static exports found */
  16392. /***/ (function(module, exports, __webpack_require__) {
  16393. "use strict";
  16394. Object.defineProperty(exports, "__esModule", {
  16395. value: true
  16396. });
  16397. exports.default = void 0;
  16398. /*
  16399. * @Author : LQ
  16400. * @Description :
  16401. * @version : 1.0
  16402. * @Date : 2021-08-20 16:44:21
  16403. * @LastAuthor : LQ
  16404. * @lastTime : 2021-08-20 17:06:50
  16405. * @FilePath : /u-view2.0/uview-ui/libs/config/props/overlay.js
  16406. */
  16407. var _default = {
  16408. // overlay组件
  16409. overlay: {
  16410. show: false,
  16411. zIndex: 10070,
  16412. duration: 300,
  16413. opacity: 0.5
  16414. }
  16415. };
  16416. exports.default = _default;
  16417. /***/ }),
  16418. /* 125 */
  16419. /*!*************************************************************************************************************!*\
  16420. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/parse.js ***!
  16421. \*************************************************************************************************************/
  16422. /*! no static exports found */
  16423. /***/ (function(module, exports, __webpack_require__) {
  16424. "use strict";
  16425. Object.defineProperty(exports, "__esModule", {
  16426. value: true
  16427. });
  16428. exports.default = void 0;
  16429. /*
  16430. * @Author : LQ
  16431. * @Description :
  16432. * @version : 1.0
  16433. * @Date : 2021-08-20 16:44:21
  16434. * @LastAuthor : LQ
  16435. * @lastTime : 2021-08-20 17:17:33
  16436. * @FilePath : /u-view2.0/uview-ui/libs/config/props/parse.js
  16437. */
  16438. var _default = {
  16439. // parse
  16440. parse: {
  16441. copyLink: true,
  16442. errorImg: '',
  16443. lazyLoad: false,
  16444. loadingImg: '',
  16445. pauseVideo: true,
  16446. previewImg: true,
  16447. setTitle: true,
  16448. showImgMenu: true
  16449. }
  16450. };
  16451. exports.default = _default;
  16452. /***/ }),
  16453. /* 126 */
  16454. /*!**************************************************************************************************************!*\
  16455. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/picker.js ***!
  16456. \**************************************************************************************************************/
  16457. /*! no static exports found */
  16458. /***/ (function(module, exports, __webpack_require__) {
  16459. "use strict";
  16460. Object.defineProperty(exports, "__esModule", {
  16461. value: true
  16462. });
  16463. exports.default = void 0;
  16464. /*
  16465. * @Author : LQ
  16466. * @Description :
  16467. * @version : 1.0
  16468. * @Date : 2021-08-20 16:44:21
  16469. * @LastAuthor : LQ
  16470. * @lastTime : 2021-08-20 17:18:20
  16471. * @FilePath : /u-view2.0/uview-ui/libs/config/props/picker.js
  16472. */
  16473. var _default = {
  16474. // picker
  16475. picker: {
  16476. show: false,
  16477. showToolbar: true,
  16478. title: '',
  16479. columns: function columns() {
  16480. return [];
  16481. },
  16482. loading: false,
  16483. itemHeight: 44,
  16484. cancelText: '取消',
  16485. confirmText: '确定',
  16486. cancelColor: '#909193',
  16487. confirmColor: '#3c9cff',
  16488. visibleItemCount: 5,
  16489. keyName: 'text',
  16490. closeOnClickOverlay: false,
  16491. defaultIndex: function defaultIndex() {
  16492. return [];
  16493. },
  16494. immediateChange: false
  16495. }
  16496. };
  16497. exports.default = _default;
  16498. /***/ }),
  16499. /* 127 */
  16500. /*!*************************************************************************************************************!*\
  16501. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/popup.js ***!
  16502. \*************************************************************************************************************/
  16503. /*! no static exports found */
  16504. /***/ (function(module, exports, __webpack_require__) {
  16505. "use strict";
  16506. Object.defineProperty(exports, "__esModule", {
  16507. value: true
  16508. });
  16509. exports.default = void 0;
  16510. /*
  16511. * @Author : LQ
  16512. * @Description :
  16513. * @version : 1.0
  16514. * @Date : 2021-08-20 16:44:21
  16515. * @LastAuthor : LQ
  16516. * @lastTime : 2021-08-20 17:06:33
  16517. * @FilePath : /u-view2.0/uview-ui/libs/config/props/popup.js
  16518. */
  16519. var _default = {
  16520. // popup组件
  16521. popup: {
  16522. show: false,
  16523. overlay: true,
  16524. mode: 'bottom',
  16525. duration: 300,
  16526. closeable: false,
  16527. overlayStyle: function overlayStyle() {},
  16528. closeOnClickOverlay: true,
  16529. zIndex: 10075,
  16530. safeAreaInsetBottom: true,
  16531. safeAreaInsetTop: false,
  16532. closeIconPos: 'top-right',
  16533. round: 0,
  16534. zoom: true,
  16535. bgColor: '',
  16536. overlayOpacity: 0.5
  16537. }
  16538. };
  16539. exports.default = _default;
  16540. /***/ }),
  16541. /* 128 */
  16542. /*!*************************************************************************************************************!*\
  16543. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/radio.js ***!
  16544. \*************************************************************************************************************/
  16545. /*! no static exports found */
  16546. /***/ (function(module, exports, __webpack_require__) {
  16547. "use strict";
  16548. Object.defineProperty(exports, "__esModule", {
  16549. value: true
  16550. });
  16551. exports.default = void 0;
  16552. /*
  16553. * @Author : LQ
  16554. * @Description :
  16555. * @version : 1.0
  16556. * @Date : 2021-08-20 16:44:21
  16557. * @LastAuthor : LQ
  16558. * @lastTime : 2021-08-20 17:02:34
  16559. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radio.js
  16560. */
  16561. var _default = {
  16562. // radio组件
  16563. radio: {
  16564. name: '',
  16565. shape: '',
  16566. disabled: '',
  16567. labelDisabled: '',
  16568. activeColor: '',
  16569. inactiveColor: '',
  16570. iconSize: '',
  16571. labelSize: '',
  16572. label: '',
  16573. labelColor: '',
  16574. size: '',
  16575. iconColor: '',
  16576. placement: ''
  16577. }
  16578. };
  16579. exports.default = _default;
  16580. /***/ }),
  16581. /* 129 */
  16582. /*!******************************************************************************************************************!*\
  16583. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/radioGroup.js ***!
  16584. \******************************************************************************************************************/
  16585. /*! no static exports found */
  16586. /***/ (function(module, exports, __webpack_require__) {
  16587. "use strict";
  16588. Object.defineProperty(exports, "__esModule", {
  16589. value: true
  16590. });
  16591. exports.default = void 0;
  16592. /*
  16593. * @Author : LQ
  16594. * @Description :
  16595. * @version : 1.0
  16596. * @Date : 2021-08-20 16:44:21
  16597. * @LastAuthor : LQ
  16598. * @lastTime : 2021-08-20 17:03:12
  16599. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radioGroup.js
  16600. */
  16601. var _default = {
  16602. // radio-group组件
  16603. radioGroup: {
  16604. value: '',
  16605. disabled: false,
  16606. shape: 'circle',
  16607. activeColor: '#2979ff',
  16608. inactiveColor: '#c8c9cc',
  16609. name: '',
  16610. size: 18,
  16611. placement: 'row',
  16612. label: '',
  16613. labelColor: '#303133',
  16614. labelSize: 14,
  16615. labelDisabled: false,
  16616. iconColor: '#ffffff',
  16617. iconSize: 12,
  16618. borderBottom: false,
  16619. iconPlacement: 'left'
  16620. }
  16621. };
  16622. exports.default = _default;
  16623. /***/ }),
  16624. /* 130 */
  16625. /*!************************************************************************************************************!*\
  16626. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/rate.js ***!
  16627. \************************************************************************************************************/
  16628. /*! no static exports found */
  16629. /***/ (function(module, exports, __webpack_require__) {
  16630. "use strict";
  16631. Object.defineProperty(exports, "__esModule", {
  16632. value: true
  16633. });
  16634. exports.default = void 0;
  16635. /*
  16636. * @Author : LQ
  16637. * @Description :
  16638. * @version : 1.0
  16639. * @Date : 2021-08-20 16:44:21
  16640. * @LastAuthor : LQ
  16641. * @lastTime : 2021-08-20 17:05:09
  16642. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rate.js
  16643. */
  16644. var _default = {
  16645. // rate组件
  16646. rate: {
  16647. value: 1,
  16648. count: 5,
  16649. disabled: false,
  16650. size: 18,
  16651. inactiveColor: '#b2b2b2',
  16652. activeColor: '#FA3534',
  16653. gutter: 4,
  16654. minCount: 1,
  16655. allowHalf: false,
  16656. activeIcon: 'star-fill',
  16657. inactiveIcon: 'star',
  16658. touchable: true
  16659. }
  16660. };
  16661. exports.default = _default;
  16662. /***/ }),
  16663. /* 131 */
  16664. /*!****************************************************************************************************************!*\
  16665. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/readMore.js ***!
  16666. \****************************************************************************************************************/
  16667. /*! no static exports found */
  16668. /***/ (function(module, exports, __webpack_require__) {
  16669. "use strict";
  16670. Object.defineProperty(exports, "__esModule", {
  16671. value: true
  16672. });
  16673. exports.default = void 0;
  16674. /*
  16675. * @Author : LQ
  16676. * @Description :
  16677. * @version : 1.0
  16678. * @Date : 2021-08-20 16:44:21
  16679. * @LastAuthor : LQ
  16680. * @lastTime : 2021-08-20 17:18:41
  16681. * @FilePath : /u-view2.0/uview-ui/libs/config/props/readMore.js
  16682. */
  16683. var _default = {
  16684. // readMore
  16685. readMore: {
  16686. showHeight: 400,
  16687. toggle: false,
  16688. closeText: '展开阅读全文',
  16689. openText: '收起',
  16690. color: '#2979ff',
  16691. fontSize: 14,
  16692. textIndent: '2em',
  16693. name: ''
  16694. }
  16695. };
  16696. exports.default = _default;
  16697. /***/ }),
  16698. /* 132 */
  16699. /*!***********************************************************************************************************!*\
  16700. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/row.js ***!
  16701. \***********************************************************************************************************/
  16702. /*! no static exports found */
  16703. /***/ (function(module, exports, __webpack_require__) {
  16704. "use strict";
  16705. Object.defineProperty(exports, "__esModule", {
  16706. value: true
  16707. });
  16708. exports.default = void 0;
  16709. /*
  16710. * @Author : LQ
  16711. * @Description :
  16712. * @version : 1.0
  16713. * @Date : 2021-08-20 16:44:21
  16714. * @LastAuthor : LQ
  16715. * @lastTime : 2021-08-20 17:18:58
  16716. * @FilePath : /u-view2.0/uview-ui/libs/config/props/row.js
  16717. */
  16718. var _default = {
  16719. // row
  16720. row: {
  16721. gutter: 0,
  16722. justify: 'start',
  16723. align: 'center'
  16724. }
  16725. };
  16726. exports.default = _default;
  16727. /***/ }),
  16728. /* 133 */
  16729. /*!*****************************************************************************************************************!*\
  16730. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/rowNotice.js ***!
  16731. \*****************************************************************************************************************/
  16732. /*! no static exports found */
  16733. /***/ (function(module, exports, __webpack_require__) {
  16734. "use strict";
  16735. Object.defineProperty(exports, "__esModule", {
  16736. value: true
  16737. });
  16738. exports.default = void 0;
  16739. /*
  16740. * @Author : LQ
  16741. * @Description :
  16742. * @version : 1.0
  16743. * @Date : 2021-08-20 16:44:21
  16744. * @LastAuthor : LQ
  16745. * @lastTime : 2021-08-20 17:19:13
  16746. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rowNotice.js
  16747. */
  16748. var _default = {
  16749. // rowNotice
  16750. rowNotice: {
  16751. text: '',
  16752. icon: 'volume',
  16753. mode: '',
  16754. color: '#f9ae3d',
  16755. bgColor: '#fdf6ec',
  16756. fontSize: 14,
  16757. speed: 80
  16758. }
  16759. };
  16760. exports.default = _default;
  16761. /***/ }),
  16762. /* 134 */
  16763. /*!******************************************************************************************************************!*\
  16764. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/scrollList.js ***!
  16765. \******************************************************************************************************************/
  16766. /*! no static exports found */
  16767. /***/ (function(module, exports, __webpack_require__) {
  16768. "use strict";
  16769. Object.defineProperty(exports, "__esModule", {
  16770. value: true
  16771. });
  16772. exports.default = void 0;
  16773. /*
  16774. * @Author : LQ
  16775. * @Description :
  16776. * @version : 1.0
  16777. * @Date : 2021-08-20 16:44:21
  16778. * @LastAuthor : LQ
  16779. * @lastTime : 2021-08-20 17:19:28
  16780. * @FilePath : /u-view2.0/uview-ui/libs/config/props/scrollList.js
  16781. */
  16782. var _default = {
  16783. // scrollList
  16784. scrollList: {
  16785. indicatorWidth: 50,
  16786. indicatorBarWidth: 20,
  16787. indicator: true,
  16788. indicatorColor: '#f2f2f2',
  16789. indicatorActiveColor: '#3c9cff',
  16790. indicatorStyle: ''
  16791. }
  16792. };
  16793. exports.default = _default;
  16794. /***/ }),
  16795. /* 135 */
  16796. /*!**************************************************************************************************************!*\
  16797. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/search.js ***!
  16798. \**************************************************************************************************************/
  16799. /*! no static exports found */
  16800. /***/ (function(module, exports, __webpack_require__) {
  16801. "use strict";
  16802. Object.defineProperty(exports, "__esModule", {
  16803. value: true
  16804. });
  16805. exports.default = void 0;
  16806. /*
  16807. * @Author : LQ
  16808. * @Description :
  16809. * @version : 1.0
  16810. * @Date : 2021-08-20 16:44:21
  16811. * @LastAuthor : LQ
  16812. * @lastTime : 2021-08-20 17:19:45
  16813. * @FilePath : /u-view2.0/uview-ui/libs/config/props/search.js
  16814. */
  16815. var _default = {
  16816. // search
  16817. search: {
  16818. shape: 'round',
  16819. bgColor: '#f2f2f2',
  16820. placeholder: '请输入关键字',
  16821. clearabled: true,
  16822. focus: false,
  16823. showAction: true,
  16824. actionStyle: function actionStyle() {
  16825. return {};
  16826. },
  16827. actionText: '搜索',
  16828. inputAlign: 'left',
  16829. inputStyle: function inputStyle() {
  16830. return {};
  16831. },
  16832. disabled: false,
  16833. borderColor: 'transparent',
  16834. searchIconColor: '#909399',
  16835. searchIconSize: 22,
  16836. color: '#606266',
  16837. placeholderColor: '#909399',
  16838. searchIcon: 'search',
  16839. margin: '0',
  16840. animation: false,
  16841. value: '',
  16842. maxlength: '-1',
  16843. height: 32,
  16844. label: null
  16845. }
  16846. };
  16847. exports.default = _default;
  16848. /***/ }),
  16849. /* 136 */
  16850. /*!***************************************************************************************************************!*\
  16851. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/section.js ***!
  16852. \***************************************************************************************************************/
  16853. /*! no static exports found */
  16854. /***/ (function(module, exports, __webpack_require__) {
  16855. "use strict";
  16856. Object.defineProperty(exports, "__esModule", {
  16857. value: true
  16858. });
  16859. exports.default = void 0;
  16860. /*
  16861. * @Author : LQ
  16862. * @Description :
  16863. * @version : 1.0
  16864. * @Date : 2021-08-20 16:44:21
  16865. * @LastAuthor : LQ
  16866. * @lastTime : 2021-08-20 17:07:33
  16867. * @FilePath : /u-view2.0/uview-ui/libs/config/props/section.js
  16868. */
  16869. var _default = {
  16870. // u-section组件
  16871. section: {
  16872. title: '',
  16873. subTitle: '更多',
  16874. right: true,
  16875. fontSize: 15,
  16876. bold: true,
  16877. color: '#303133',
  16878. subColor: '#909399',
  16879. showLine: true,
  16880. lineColor: '',
  16881. arrow: true
  16882. }
  16883. };
  16884. exports.default = _default;
  16885. /***/ }),
  16886. /* 137 */
  16887. /*!****************************************************************************************************************!*\
  16888. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/skeleton.js ***!
  16889. \****************************************************************************************************************/
  16890. /*! no static exports found */
  16891. /***/ (function(module, exports, __webpack_require__) {
  16892. "use strict";
  16893. Object.defineProperty(exports, "__esModule", {
  16894. value: true
  16895. });
  16896. exports.default = void 0;
  16897. /*
  16898. * @Author : LQ
  16899. * @Description :
  16900. * @version : 1.0
  16901. * @Date : 2021-08-20 16:44:21
  16902. * @LastAuthor : LQ
  16903. * @lastTime : 2021-08-20 17:20:14
  16904. * @FilePath : /u-view2.0/uview-ui/libs/config/props/skeleton.js
  16905. */
  16906. var _default = {
  16907. // skeleton
  16908. skeleton: {
  16909. loading: true,
  16910. animate: true,
  16911. rows: 0,
  16912. rowsWidth: '100%',
  16913. rowsHeight: 18,
  16914. title: true,
  16915. titleWidth: '50%',
  16916. titleHeight: 18,
  16917. avatar: false,
  16918. avatarSize: 32,
  16919. avatarShape: 'circle'
  16920. }
  16921. };
  16922. exports.default = _default;
  16923. /***/ }),
  16924. /* 138 */
  16925. /*!**************************************************************************************************************!*\
  16926. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/slider.js ***!
  16927. \**************************************************************************************************************/
  16928. /*! no static exports found */
  16929. /***/ (function(module, exports, __webpack_require__) {
  16930. "use strict";
  16931. Object.defineProperty(exports, "__esModule", {
  16932. value: true
  16933. });
  16934. exports.default = void 0;
  16935. /*
  16936. * @Author : LQ
  16937. * @Description :
  16938. * @version : 1.0
  16939. * @Date : 2021-08-20 16:44:21
  16940. * @LastAuthor : LQ
  16941. * @lastTime : 2021-08-20 17:08:25
  16942. * @FilePath : /u-view2.0/uview-ui/libs/config/props/slider.js
  16943. */
  16944. var _default = {
  16945. // slider组件
  16946. slider: {
  16947. value: 0,
  16948. blockSize: 18,
  16949. min: 0,
  16950. max: 100,
  16951. step: 1,
  16952. activeColor: '#2979ff',
  16953. inactiveColor: '#c0c4cc',
  16954. blockColor: '#ffffff',
  16955. showValue: false,
  16956. disabled: false,
  16957. blockStyle: function blockStyle() {}
  16958. }
  16959. };
  16960. exports.default = _default;
  16961. /***/ }),
  16962. /* 139 */
  16963. /*!*****************************************************************************************************************!*\
  16964. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/statusBar.js ***!
  16965. \*****************************************************************************************************************/
  16966. /*! no static exports found */
  16967. /***/ (function(module, exports, __webpack_require__) {
  16968. "use strict";
  16969. Object.defineProperty(exports, "__esModule", {
  16970. value: true
  16971. });
  16972. exports.default = void 0;
  16973. /*
  16974. * @Author : LQ
  16975. * @Description :
  16976. * @version : 1.0
  16977. * @Date : 2021-08-20 16:44:21
  16978. * @LastAuthor : LQ
  16979. * @lastTime : 2021-08-20 17:20:39
  16980. * @FilePath : /u-view2.0/uview-ui/libs/config/props/statusBar.js
  16981. */
  16982. var _default = {
  16983. // statusBar
  16984. statusBar: {
  16985. bgColor: 'transparent'
  16986. }
  16987. };
  16988. exports.default = _default;
  16989. /***/ }),
  16990. /* 140 */
  16991. /*!*************************************************************************************************************!*\
  16992. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/steps.js ***!
  16993. \*************************************************************************************************************/
  16994. /*! no static exports found */
  16995. /***/ (function(module, exports, __webpack_require__) {
  16996. "use strict";
  16997. Object.defineProperty(exports, "__esModule", {
  16998. value: true
  16999. });
  17000. exports.default = void 0;
  17001. /*
  17002. * @Author : LQ
  17003. * @Description :
  17004. * @version : 1.0
  17005. * @Date : 2021-08-20 16:44:21
  17006. * @LastAuthor : LQ
  17007. * @lastTime : 2021-08-20 17:12:37
  17008. * @FilePath : /u-view2.0/uview-ui/libs/config/props/steps.js
  17009. */
  17010. var _default = {
  17011. // steps组件
  17012. steps: {
  17013. direction: 'row',
  17014. current: 0,
  17015. activeColor: '#3c9cff',
  17016. inactiveColor: '#969799',
  17017. activeIcon: '',
  17018. inactiveIcon: '',
  17019. dot: false
  17020. }
  17021. };
  17022. exports.default = _default;
  17023. /***/ }),
  17024. /* 141 */
  17025. /*!*****************************************************************************************************************!*\
  17026. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/stepsItem.js ***!
  17027. \*****************************************************************************************************************/
  17028. /*! no static exports found */
  17029. /***/ (function(module, exports, __webpack_require__) {
  17030. "use strict";
  17031. Object.defineProperty(exports, "__esModule", {
  17032. value: true
  17033. });
  17034. exports.default = void 0;
  17035. /*
  17036. * @Author : LQ
  17037. * @Description :
  17038. * @version : 1.0
  17039. * @Date : 2021-08-20 16:44:21
  17040. * @LastAuthor : LQ
  17041. * @lastTime : 2021-08-20 17:12:55
  17042. * @FilePath : /u-view2.0/uview-ui/libs/config/props/stepsItem.js
  17043. */
  17044. var _default = {
  17045. // steps-item组件
  17046. stepsItem: {
  17047. title: '',
  17048. desc: '',
  17049. iconSize: 17,
  17050. error: false
  17051. }
  17052. };
  17053. exports.default = _default;
  17054. /***/ }),
  17055. /* 142 */
  17056. /*!**************************************************************************************************************!*\
  17057. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/sticky.js ***!
  17058. \**************************************************************************************************************/
  17059. /*! no static exports found */
  17060. /***/ (function(module, exports, __webpack_require__) {
  17061. "use strict";
  17062. Object.defineProperty(exports, "__esModule", {
  17063. value: true
  17064. });
  17065. exports.default = void 0;
  17066. /*
  17067. * @Author : LQ
  17068. * @Description :
  17069. * @version : 1.0
  17070. * @Date : 2021-08-20 16:44:21
  17071. * @LastAuthor : LQ
  17072. * @lastTime : 2021-08-20 17:01:30
  17073. * @FilePath : /u-view2.0/uview-ui/libs/config/props/sticky.js
  17074. */
  17075. var _default = {
  17076. // sticky组件
  17077. sticky: {
  17078. offsetTop: 0,
  17079. customNavHeight: 0,
  17080. disabled: false,
  17081. bgColor: 'transparent',
  17082. zIndex: '',
  17083. index: ''
  17084. }
  17085. };
  17086. exports.default = _default;
  17087. /***/ }),
  17088. /* 143 */
  17089. /*!******************************************************************************************************************!*\
  17090. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/subsection.js ***!
  17091. \******************************************************************************************************************/
  17092. /*! no static exports found */
  17093. /***/ (function(module, exports, __webpack_require__) {
  17094. "use strict";
  17095. Object.defineProperty(exports, "__esModule", {
  17096. value: true
  17097. });
  17098. exports.default = void 0;
  17099. /*
  17100. * @Author : LQ
  17101. * @Description :
  17102. * @version : 1.0
  17103. * @Date : 2021-08-20 16:44:21
  17104. * @LastAuthor : LQ
  17105. * @lastTime : 2021-08-20 17:12:20
  17106. * @FilePath : /u-view2.0/uview-ui/libs/config/props/subsection.js
  17107. */
  17108. var _default = {
  17109. // subsection组件
  17110. subsection: {
  17111. list: [],
  17112. current: 0,
  17113. activeColor: '#3c9cff',
  17114. inactiveColor: '#303133',
  17115. mode: 'button',
  17116. fontSize: 12,
  17117. bold: true,
  17118. bgColor: '#eeeeef',
  17119. keyName: 'name'
  17120. }
  17121. };
  17122. exports.default = _default;
  17123. /***/ }),
  17124. /* 144 */
  17125. /*!*******************************************************************************************************************!*\
  17126. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/swipeAction.js ***!
  17127. \*******************************************************************************************************************/
  17128. /*! no static exports found */
  17129. /***/ (function(module, exports, __webpack_require__) {
  17130. "use strict";
  17131. Object.defineProperty(exports, "__esModule", {
  17132. value: true
  17133. });
  17134. exports.default = void 0;
  17135. /*
  17136. * @Author : LQ
  17137. * @Description :
  17138. * @version : 1.0
  17139. * @Date : 2021-08-20 16:44:21
  17140. * @LastAuthor : LQ
  17141. * @lastTime : 2021-08-20 17:00:42
  17142. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeAction.js
  17143. */
  17144. var _default = {
  17145. // swipe-action组件
  17146. swipeAction: {
  17147. autoClose: true
  17148. }
  17149. };
  17150. exports.default = _default;
  17151. /***/ }),
  17152. /* 145 */
  17153. /*!***********************************************************************************************************************!*\
  17154. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/swipeActionItem.js ***!
  17155. \***********************************************************************************************************************/
  17156. /*! no static exports found */
  17157. /***/ (function(module, exports, __webpack_require__) {
  17158. "use strict";
  17159. Object.defineProperty(exports, "__esModule", {
  17160. value: true
  17161. });
  17162. exports.default = void 0;
  17163. /*
  17164. * @Author : LQ
  17165. * @Description :
  17166. * @version : 1.0
  17167. * @Date : 2021-08-20 16:44:21
  17168. * @LastAuthor : LQ
  17169. * @lastTime : 2021-08-20 17:01:13
  17170. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeActionItem.js
  17171. */
  17172. var _default = {
  17173. // swipeActionItem 组件
  17174. swipeActionItem: {
  17175. show: false,
  17176. name: '',
  17177. disabled: false,
  17178. threshold: 20,
  17179. autoClose: true,
  17180. options: [],
  17181. duration: 300
  17182. }
  17183. };
  17184. exports.default = _default;
  17185. /***/ }),
  17186. /* 146 */
  17187. /*!**************************************************************************************************************!*\
  17188. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/swiper.js ***!
  17189. \**************************************************************************************************************/
  17190. /*! no static exports found */
  17191. /***/ (function(module, exports, __webpack_require__) {
  17192. "use strict";
  17193. Object.defineProperty(exports, "__esModule", {
  17194. value: true
  17195. });
  17196. exports.default = void 0;
  17197. /*
  17198. * @Author : LQ
  17199. * @Description :
  17200. * @version : 1.0
  17201. * @Date : 2021-08-20 16:44:21
  17202. * @LastAuthor : LQ
  17203. * @lastTime : 2021-08-20 17:21:38
  17204. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiper.js
  17205. */
  17206. var _default = {
  17207. // swiper 组件
  17208. swiper: {
  17209. list: function list() {
  17210. return [];
  17211. },
  17212. indicator: false,
  17213. indicatorActiveColor: '#FFFFFF',
  17214. indicatorInactiveColor: 'rgba(255, 255, 255, 0.35)',
  17215. indicatorStyle: '',
  17216. indicatorMode: 'line',
  17217. autoplay: true,
  17218. current: 0,
  17219. currentItemId: '',
  17220. interval: 3000,
  17221. duration: 300,
  17222. circular: false,
  17223. previousMargin: 0,
  17224. nextMargin: 0,
  17225. acceleration: false,
  17226. displayMultipleItems: 1,
  17227. easingFunction: 'default',
  17228. keyName: 'url',
  17229. imgMode: 'aspectFill',
  17230. height: 130,
  17231. bgColor: '#f3f4f6',
  17232. radius: 4,
  17233. loading: false,
  17234. showTitle: false
  17235. }
  17236. };
  17237. exports.default = _default;
  17238. /***/ }),
  17239. /* 147 */
  17240. /*!************************************************************************************************************************!*\
  17241. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/swipterIndicator.js ***!
  17242. \************************************************************************************************************************/
  17243. /*! no static exports found */
  17244. /***/ (function(module, exports, __webpack_require__) {
  17245. "use strict";
  17246. Object.defineProperty(exports, "__esModule", {
  17247. value: true
  17248. });
  17249. exports.default = void 0;
  17250. /*
  17251. * @Author : LQ
  17252. * @Description :
  17253. * @version : 1.0
  17254. * @Date : 2021-08-20 16:44:21
  17255. * @LastAuthor : LQ
  17256. * @lastTime : 2021-08-20 17:22:07
  17257. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiperIndicator.js
  17258. */
  17259. var _default = {
  17260. // swiperIndicator 组件
  17261. swiperIndicator: {
  17262. length: 0,
  17263. current: 0,
  17264. indicatorActiveColor: '',
  17265. indicatorInactiveColor: '',
  17266. indicatorMode: 'line'
  17267. }
  17268. };
  17269. exports.default = _default;
  17270. /***/ }),
  17271. /* 148 */
  17272. /*!**************************************************************************************************************!*\
  17273. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/switch.js ***!
  17274. \**************************************************************************************************************/
  17275. /*! no static exports found */
  17276. /***/ (function(module, exports, __webpack_require__) {
  17277. "use strict";
  17278. Object.defineProperty(exports, "__esModule", {
  17279. value: true
  17280. });
  17281. exports.default = void 0;
  17282. /*
  17283. * @Author : LQ
  17284. * @Description :
  17285. * @version : 1.0
  17286. * @Date : 2021-08-20 16:44:21
  17287. * @LastAuthor : LQ
  17288. * @lastTime : 2021-08-20 17:22:24
  17289. * @FilePath : /u-view2.0/uview-ui/libs/config/props/switch.js
  17290. */
  17291. var _default = {
  17292. // switch
  17293. switch: {
  17294. loading: false,
  17295. disabled: false,
  17296. size: 25,
  17297. activeColor: '#2979ff',
  17298. inactiveColor: '#ffffff',
  17299. value: false,
  17300. activeValue: true,
  17301. inactiveValue: false,
  17302. asyncChange: false,
  17303. space: 0
  17304. }
  17305. };
  17306. exports.default = _default;
  17307. /***/ }),
  17308. /* 149 */
  17309. /*!**************************************************************************************************************!*\
  17310. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/tabbar.js ***!
  17311. \**************************************************************************************************************/
  17312. /*! no static exports found */
  17313. /***/ (function(module, exports, __webpack_require__) {
  17314. "use strict";
  17315. Object.defineProperty(exports, "__esModule", {
  17316. value: true
  17317. });
  17318. exports.default = void 0;
  17319. /*
  17320. * @Author : LQ
  17321. * @Description :
  17322. * @version : 1.0
  17323. * @Date : 2021-08-20 16:44:21
  17324. * @LastAuthor : LQ
  17325. * @lastTime : 2021-08-20 17:22:40
  17326. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbar.js
  17327. */
  17328. var _default = {
  17329. // tabbar
  17330. tabbar: {
  17331. value: null,
  17332. safeAreaInsetBottom: true,
  17333. border: true,
  17334. zIndex: 1,
  17335. activeColor: '#1989fa',
  17336. inactiveColor: '#7d7e80',
  17337. fixed: true,
  17338. placeholder: true
  17339. }
  17340. };
  17341. exports.default = _default;
  17342. /***/ }),
  17343. /* 150 */
  17344. /*!******************************************************************************************************************!*\
  17345. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/tabbarItem.js ***!
  17346. \******************************************************************************************************************/
  17347. /*! no static exports found */
  17348. /***/ (function(module, exports, __webpack_require__) {
  17349. "use strict";
  17350. Object.defineProperty(exports, "__esModule", {
  17351. value: true
  17352. });
  17353. exports.default = void 0;
  17354. /*
  17355. * @Author : LQ
  17356. * @Description :
  17357. * @version : 1.0
  17358. * @Date : 2021-08-20 16:44:21
  17359. * @LastAuthor : LQ
  17360. * @lastTime : 2021-08-20 17:22:55
  17361. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbarItem.js
  17362. */
  17363. var _default = {
  17364. //
  17365. tabbarItem: {
  17366. name: null,
  17367. icon: '',
  17368. badge: null,
  17369. dot: false,
  17370. text: '',
  17371. badgeStyle: 'top: 6px;right:2px;'
  17372. }
  17373. };
  17374. exports.default = _default;
  17375. /***/ }),
  17376. /* 151 */
  17377. /*!************************************************************************************************************!*\
  17378. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/tabs.js ***!
  17379. \************************************************************************************************************/
  17380. /*! no static exports found */
  17381. /***/ (function(module, exports, __webpack_require__) {
  17382. "use strict";
  17383. Object.defineProperty(exports, "__esModule", {
  17384. value: true
  17385. });
  17386. exports.default = void 0;
  17387. /*
  17388. * @Author : LQ
  17389. * @Description :
  17390. * @version : 1.0
  17391. * @Date : 2021-08-20 16:44:21
  17392. * @LastAuthor : LQ
  17393. * @lastTime : 2021-08-20 17:23:14
  17394. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabs.js
  17395. */
  17396. var _default = {
  17397. //
  17398. tabs: {
  17399. duration: 300,
  17400. list: function list() {
  17401. return [];
  17402. },
  17403. lineColor: '#3c9cff',
  17404. activeStyle: function activeStyle() {
  17405. return {
  17406. color: '#303133'
  17407. };
  17408. },
  17409. inactiveStyle: function inactiveStyle() {
  17410. return {
  17411. color: '#606266'
  17412. };
  17413. },
  17414. lineWidth: 20,
  17415. lineHeight: 3,
  17416. lineBgSize: 'cover',
  17417. itemStyle: function itemStyle() {
  17418. return {
  17419. height: '44px'
  17420. };
  17421. },
  17422. scrollable: true,
  17423. current: 0,
  17424. keyName: 'name'
  17425. }
  17426. };
  17427. exports.default = _default;
  17428. /***/ }),
  17429. /* 152 */
  17430. /*!***********************************************************************************************************!*\
  17431. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/tag.js ***!
  17432. \***********************************************************************************************************/
  17433. /*! no static exports found */
  17434. /***/ (function(module, exports, __webpack_require__) {
  17435. "use strict";
  17436. Object.defineProperty(exports, "__esModule", {
  17437. value: true
  17438. });
  17439. exports.default = void 0;
  17440. /*
  17441. * @Author : LQ
  17442. * @Description :
  17443. * @version : 1.0
  17444. * @Date : 2021-08-20 16:44:21
  17445. * @LastAuthor : LQ
  17446. * @lastTime : 2021-08-20 17:23:37
  17447. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tag.js
  17448. */
  17449. var _default = {
  17450. // tag 组件
  17451. tag: {
  17452. type: 'primary',
  17453. disabled: false,
  17454. size: 'medium',
  17455. shape: 'square',
  17456. text: '',
  17457. bgColor: '',
  17458. color: '',
  17459. borderColor: '',
  17460. closeColor: '#C6C7CB',
  17461. name: '',
  17462. plainFill: false,
  17463. plain: false,
  17464. closable: false,
  17465. show: true,
  17466. icon: ''
  17467. }
  17468. };
  17469. exports.default = _default;
  17470. /***/ }),
  17471. /* 153 */
  17472. /*!************************************************************************************************************!*\
  17473. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/text.js ***!
  17474. \************************************************************************************************************/
  17475. /*! no static exports found */
  17476. /***/ (function(module, exports, __webpack_require__) {
  17477. "use strict";
  17478. Object.defineProperty(exports, "__esModule", {
  17479. value: true
  17480. });
  17481. exports.default = void 0;
  17482. /*
  17483. * @Author : LQ
  17484. * @Description :
  17485. * @version : 1.0
  17486. * @Date : 2021-08-20 16:44:21
  17487. * @LastAuthor : LQ
  17488. * @lastTime : 2021-08-20 17:23:58
  17489. * @FilePath : /u-view2.0/uview-ui/libs/config/props/text.js
  17490. */
  17491. var _default = {
  17492. // text 组件
  17493. text: {
  17494. type: '',
  17495. show: true,
  17496. text: '',
  17497. prefixIcon: '',
  17498. suffixIcon: '',
  17499. mode: '',
  17500. href: '',
  17501. format: '',
  17502. call: false,
  17503. openType: '',
  17504. bold: false,
  17505. block: false,
  17506. lines: '',
  17507. color: '#303133',
  17508. size: 15,
  17509. iconStyle: function iconStyle() {
  17510. return {
  17511. fontSize: '15px'
  17512. };
  17513. },
  17514. decoration: 'none',
  17515. margin: 0,
  17516. lineHeight: '',
  17517. align: 'left',
  17518. wordWrap: 'normal'
  17519. }
  17520. };
  17521. exports.default = _default;
  17522. /***/ }),
  17523. /* 154 */
  17524. /*!****************************************************************************************************************!*\
  17525. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/textarea.js ***!
  17526. \****************************************************************************************************************/
  17527. /*! no static exports found */
  17528. /***/ (function(module, exports, __webpack_require__) {
  17529. "use strict";
  17530. Object.defineProperty(exports, "__esModule", {
  17531. value: true
  17532. });
  17533. exports.default = void 0;
  17534. /*
  17535. * @Author : LQ
  17536. * @Description :
  17537. * @version : 1.0
  17538. * @Date : 2021-08-20 16:44:21
  17539. * @LastAuthor : LQ
  17540. * @lastTime : 2021-08-20 17:24:32
  17541. * @FilePath : /u-view2.0/uview-ui/libs/config/props/textarea.js
  17542. */
  17543. var _default = {
  17544. // textarea 组件
  17545. textarea: {
  17546. value: '',
  17547. placeholder: '',
  17548. placeholderClass: 'textarea-placeholder',
  17549. placeholderStyle: 'color: #c0c4cc',
  17550. height: 70,
  17551. confirmType: 'done',
  17552. disabled: false,
  17553. count: false,
  17554. focus: false,
  17555. autoHeight: false,
  17556. fixed: false,
  17557. cursorSpacing: 0,
  17558. cursor: '',
  17559. showConfirmBar: true,
  17560. selectionStart: -1,
  17561. selectionEnd: -1,
  17562. adjustPosition: true,
  17563. disableDefaultPadding: false,
  17564. holdKeyboard: false,
  17565. maxlength: 140,
  17566. border: 'surround',
  17567. formatter: null
  17568. }
  17569. };
  17570. exports.default = _default;
  17571. /***/ }),
  17572. /* 155 */
  17573. /*!*************************************************************************************************************!*\
  17574. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/toast.js ***!
  17575. \*************************************************************************************************************/
  17576. /*! no static exports found */
  17577. /***/ (function(module, exports, __webpack_require__) {
  17578. "use strict";
  17579. Object.defineProperty(exports, "__esModule", {
  17580. value: true
  17581. });
  17582. exports.default = void 0;
  17583. /*
  17584. * @Author : LQ
  17585. * @Description :
  17586. * @version : 1.0
  17587. * @Date : 2021-08-20 16:44:21
  17588. * @LastAuthor : LQ
  17589. * @lastTime : 2021-08-20 17:07:07
  17590. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toast.js
  17591. */
  17592. var _default = {
  17593. // toast组件
  17594. toast: {
  17595. zIndex: 10090,
  17596. loading: false,
  17597. text: '',
  17598. icon: '',
  17599. type: '',
  17600. loadingMode: '',
  17601. show: '',
  17602. overlay: false,
  17603. position: 'center',
  17604. params: function params() {},
  17605. duration: 2000,
  17606. isTab: false,
  17607. url: '',
  17608. callback: null,
  17609. back: false
  17610. }
  17611. };
  17612. exports.default = _default;
  17613. /***/ }),
  17614. /* 156 */
  17615. /*!***************************************************************************************************************!*\
  17616. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/toolbar.js ***!
  17617. \***************************************************************************************************************/
  17618. /*! no static exports found */
  17619. /***/ (function(module, exports, __webpack_require__) {
  17620. "use strict";
  17621. Object.defineProperty(exports, "__esModule", {
  17622. value: true
  17623. });
  17624. exports.default = void 0;
  17625. /*
  17626. * @Author : LQ
  17627. * @Description :
  17628. * @version : 1.0
  17629. * @Date : 2021-08-20 16:44:21
  17630. * @LastAuthor : LQ
  17631. * @lastTime : 2021-08-20 17:24:55
  17632. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toolbar.js
  17633. */
  17634. var _default = {
  17635. // toolbar 组件
  17636. toolbar: {
  17637. show: true,
  17638. cancelText: '取消',
  17639. confirmText: '确认',
  17640. cancelColor: '#909193',
  17641. confirmColor: '#3c9cff',
  17642. title: ''
  17643. }
  17644. };
  17645. exports.default = _default;
  17646. /***/ }),
  17647. /* 157 */
  17648. /*!***************************************************************************************************************!*\
  17649. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/tooltip.js ***!
  17650. \***************************************************************************************************************/
  17651. /*! no static exports found */
  17652. /***/ (function(module, exports, __webpack_require__) {
  17653. "use strict";
  17654. Object.defineProperty(exports, "__esModule", {
  17655. value: true
  17656. });
  17657. exports.default = void 0;
  17658. /*
  17659. * @Author : LQ
  17660. * @Description :
  17661. * @version : 1.0
  17662. * @Date : 2021-08-20 16:44:21
  17663. * @LastAuthor : LQ
  17664. * @lastTime : 2021-08-20 17:25:14
  17665. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tooltip.js
  17666. */
  17667. var _default = {
  17668. // tooltip 组件
  17669. tooltip: {
  17670. text: '',
  17671. copyText: '',
  17672. size: 14,
  17673. color: '#606266',
  17674. bgColor: 'transparent',
  17675. direction: 'top',
  17676. zIndex: 10071,
  17677. showCopy: true,
  17678. buttons: function buttons() {
  17679. return [];
  17680. },
  17681. overlay: true,
  17682. showToast: true
  17683. }
  17684. };
  17685. exports.default = _default;
  17686. /***/ }),
  17687. /* 158 */
  17688. /*!******************************************************************************************************************!*\
  17689. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/transition.js ***!
  17690. \******************************************************************************************************************/
  17691. /*! no static exports found */
  17692. /***/ (function(module, exports, __webpack_require__) {
  17693. "use strict";
  17694. Object.defineProperty(exports, "__esModule", {
  17695. value: true
  17696. });
  17697. exports.default = void 0;
  17698. /*
  17699. * @Author : LQ
  17700. * @Description :
  17701. * @version : 1.0
  17702. * @Date : 2021-08-20 16:44:21
  17703. * @LastAuthor : LQ
  17704. * @lastTime : 2021-08-20 16:59:00
  17705. * @FilePath : /u-view2.0/uview-ui/libs/config/props/transition.js
  17706. */
  17707. var _default = {
  17708. // transition动画组件的props
  17709. transition: {
  17710. show: false,
  17711. mode: 'fade',
  17712. duration: '300',
  17713. timingFunction: 'ease-out'
  17714. }
  17715. };
  17716. exports.default = _default;
  17717. /***/ }),
  17718. /* 159 */
  17719. /*!**************************************************************************************************************!*\
  17720. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/props/upload.js ***!
  17721. \**************************************************************************************************************/
  17722. /*! no static exports found */
  17723. /***/ (function(module, exports, __webpack_require__) {
  17724. "use strict";
  17725. Object.defineProperty(exports, "__esModule", {
  17726. value: true
  17727. });
  17728. exports.default = void 0;
  17729. /*
  17730. * @Author : LQ
  17731. * @Description :
  17732. * @version : 1.0
  17733. * @Date : 2021-08-20 16:44:21
  17734. * @LastAuthor : LQ
  17735. * @lastTime : 2021-08-20 17:09:50
  17736. * @FilePath : /u-view2.0/uview-ui/libs/config/props/upload.js
  17737. */
  17738. var _default = {
  17739. // upload组件
  17740. upload: {
  17741. accept: 'image',
  17742. capture: function capture() {
  17743. return ['album', 'camera'];
  17744. },
  17745. compressed: true,
  17746. camera: 'back',
  17747. maxDuration: 60,
  17748. uploadIcon: 'camera-fill',
  17749. uploadIconColor: '#D3D4D6',
  17750. useBeforeRead: false,
  17751. previewFullImage: true,
  17752. maxCount: 52,
  17753. disabled: false,
  17754. imageMode: 'aspectFill',
  17755. name: '',
  17756. sizeType: function sizeType() {
  17757. return ['original', 'compressed'];
  17758. },
  17759. multiple: false,
  17760. deletable: true,
  17761. maxSize: Number.MAX_VALUE,
  17762. fileList: function fileList() {
  17763. return [];
  17764. },
  17765. uploadText: '',
  17766. width: 80,
  17767. height: 80,
  17768. previewImage: true
  17769. }
  17770. };
  17771. exports.default = _default;
  17772. /***/ }),
  17773. /* 160 */
  17774. /*!********************************************************************************************************!*\
  17775. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/config/zIndex.js ***!
  17776. \********************************************************************************************************/
  17777. /*! no static exports found */
  17778. /***/ (function(module, exports, __webpack_require__) {
  17779. "use strict";
  17780. Object.defineProperty(exports, "__esModule", {
  17781. value: true
  17782. });
  17783. exports.default = void 0;
  17784. // uniapp在H5中各API的z-index值如下:
  17785. /**
  17786. * actionsheet: 999
  17787. * modal: 999
  17788. * navigate: 998
  17789. * tabbar: 998
  17790. * toast: 999
  17791. */
  17792. var _default = {
  17793. toast: 10090,
  17794. noNetwork: 10080,
  17795. // popup包含popup,actionsheet,keyboard,picker的值
  17796. popup: 10075,
  17797. mask: 10070,
  17798. navbar: 980,
  17799. topTips: 975,
  17800. sticky: 970,
  17801. indexListSticky: 965
  17802. };
  17803. exports.default = _default;
  17804. /***/ }),
  17805. /* 161 */
  17806. /*!************************************************************************************************************!*\
  17807. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/function/platform.js ***!
  17808. \************************************************************************************************************/
  17809. /*! no static exports found */
  17810. /***/ (function(module, exports, __webpack_require__) {
  17811. "use strict";
  17812. Object.defineProperty(exports, "__esModule", {
  17813. value: true
  17814. });
  17815. exports.default = void 0;
  17816. /**
  17817. * 注意:
  17818. * 此部分内容,在vue-cli模式下,需要在vue.config.js加入如下内容才有效:
  17819. * module.exports = {
  17820. * transpileDependencies: ['uview-v2']
  17821. * }
  17822. */
  17823. var platform = 'none';
  17824. platform = 'vue2';
  17825. platform = 'weixin';
  17826. platform = 'mp';
  17827. var _default = platform;
  17828. exports.default = _default;
  17829. /***/ }),
  17830. /* 162 */,
  17831. /* 163 */,
  17832. /* 164 */,
  17833. /* 165 */,
  17834. /* 166 */,
  17835. /* 167 */,
  17836. /* 168 */,
  17837. /* 169 */,
  17838. /* 170 */,
  17839. /* 171 */,
  17840. /* 172 */,
  17841. /* 173 */,
  17842. /* 174 */,
  17843. /* 175 */,
  17844. /* 176 */,
  17845. /* 177 */,
  17846. /* 178 */,
  17847. /* 179 */,
  17848. /* 180 */,
  17849. /* 181 */,
  17850. /* 182 */,
  17851. /* 183 */,
  17852. /* 184 */,
  17853. /* 185 */,
  17854. /* 186 */,
  17855. /* 187 */,
  17856. /* 188 */,
  17857. /* 189 */,
  17858. /* 190 */,
  17859. /* 191 */,
  17860. /* 192 */,
  17861. /* 193 */,
  17862. /* 194 */,
  17863. /* 195 */,
  17864. /* 196 */,
  17865. /* 197 */,
  17866. /* 198 */,
  17867. /* 199 */,
  17868. /* 200 */,
  17869. /* 201 */,
  17870. /* 202 */,
  17871. /* 203 */,
  17872. /* 204 */,
  17873. /* 205 */,
  17874. /* 206 */,
  17875. /* 207 */,
  17876. /* 208 */,
  17877. /* 209 */,
  17878. /* 210 */,
  17879. /* 211 */,
  17880. /* 212 */,
  17881. /* 213 */,
  17882. /* 214 */,
  17883. /* 215 */,
  17884. /* 216 */,
  17885. /* 217 */,
  17886. /* 218 */,
  17887. /* 219 */,
  17888. /* 220 */,
  17889. /* 221 */,
  17890. /* 222 */,
  17891. /* 223 */,
  17892. /* 224 */,
  17893. /* 225 */,
  17894. /* 226 */,
  17895. /* 227 */,
  17896. /* 228 */,
  17897. /* 229 */,
  17898. /* 230 */,
  17899. /* 231 */,
  17900. /* 232 */,
  17901. /* 233 */,
  17902. /* 234 */,
  17903. /* 235 */,
  17904. /* 236 */,
  17905. /* 237 */,
  17906. /* 238 */,
  17907. /* 239 */
  17908. /*!*************************************************************************************************************!*\
  17909. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-icon/icons.js ***!
  17910. \*************************************************************************************************************/
  17911. /*! no static exports found */
  17912. /***/ (function(module, exports, __webpack_require__) {
  17913. "use strict";
  17914. Object.defineProperty(exports, "__esModule", {
  17915. value: true
  17916. });
  17917. exports.default = void 0;
  17918. var _default = {
  17919. 'uicon-level': "\uE693",
  17920. 'uicon-column-line': "\uE68E",
  17921. 'uicon-checkbox-mark': "\uE807",
  17922. 'uicon-folder': "\uE7F5",
  17923. 'uicon-movie': "\uE7F6",
  17924. 'uicon-star-fill': "\uE669",
  17925. 'uicon-star': "\uE65F",
  17926. 'uicon-phone-fill': "\uE64F",
  17927. 'uicon-phone': "\uE622",
  17928. 'uicon-apple-fill': "\uE881",
  17929. 'uicon-chrome-circle-fill': "\uE885",
  17930. 'uicon-backspace': "\uE67B",
  17931. 'uicon-attach': "\uE632",
  17932. 'uicon-cut': "\uE948",
  17933. 'uicon-empty-car': "\uE602",
  17934. 'uicon-empty-coupon': "\uE682",
  17935. 'uicon-empty-address': "\uE646",
  17936. 'uicon-empty-favor': "\uE67C",
  17937. 'uicon-empty-permission': "\uE686",
  17938. 'uicon-empty-news': "\uE687",
  17939. 'uicon-empty-search': "\uE664",
  17940. 'uicon-github-circle-fill': "\uE887",
  17941. 'uicon-rmb': "\uE608",
  17942. 'uicon-person-delete-fill': "\uE66A",
  17943. 'uicon-reload': "\uE788",
  17944. 'uicon-order': "\uE68F",
  17945. 'uicon-server-man': "\uE6BC",
  17946. 'uicon-search': "\uE62A",
  17947. 'uicon-fingerprint': "\uE955",
  17948. 'uicon-more-dot-fill': "\uE630",
  17949. 'uicon-scan': "\uE662",
  17950. 'uicon-share-square': "\uE60B",
  17951. 'uicon-map': "\uE61D",
  17952. 'uicon-map-fill': "\uE64E",
  17953. 'uicon-tags': "\uE629",
  17954. 'uicon-tags-fill': "\uE651",
  17955. 'uicon-bookmark-fill': "\uE63B",
  17956. 'uicon-bookmark': "\uE60A",
  17957. 'uicon-eye': "\uE613",
  17958. 'uicon-eye-fill': "\uE641",
  17959. 'uicon-mic': "\uE64A",
  17960. 'uicon-mic-off': "\uE649",
  17961. 'uicon-calendar': "\uE66E",
  17962. 'uicon-calendar-fill': "\uE634",
  17963. 'uicon-trash': "\uE623",
  17964. 'uicon-trash-fill': "\uE658",
  17965. 'uicon-play-left': "\uE66D",
  17966. 'uicon-play-right': "\uE610",
  17967. 'uicon-minus': "\uE618",
  17968. 'uicon-plus': "\uE62D",
  17969. 'uicon-info': "\uE653",
  17970. 'uicon-info-circle': "\uE7D2",
  17971. 'uicon-info-circle-fill': "\uE64B",
  17972. 'uicon-question': "\uE715",
  17973. 'uicon-error': "\uE6D3",
  17974. 'uicon-close': "\uE685",
  17975. 'uicon-checkmark': "\uE6A8",
  17976. 'uicon-android-circle-fill': "\uE67E",
  17977. 'uicon-android-fill': "\uE67D",
  17978. 'uicon-ie': "\uE87B",
  17979. 'uicon-IE-circle-fill': "\uE889",
  17980. 'uicon-google': "\uE87A",
  17981. 'uicon-google-circle-fill': "\uE88A",
  17982. 'uicon-setting-fill': "\uE872",
  17983. 'uicon-setting': "\uE61F",
  17984. 'uicon-minus-square-fill': "\uE855",
  17985. 'uicon-plus-square-fill': "\uE856",
  17986. 'uicon-heart': "\uE7DF",
  17987. 'uicon-heart-fill': "\uE851",
  17988. 'uicon-camera': "\uE7D7",
  17989. 'uicon-camera-fill': "\uE870",
  17990. 'uicon-more-circle': "\uE63E",
  17991. 'uicon-more-circle-fill': "\uE645",
  17992. 'uicon-chat': "\uE620",
  17993. 'uicon-chat-fill': "\uE61E",
  17994. 'uicon-bag-fill': "\uE617",
  17995. 'uicon-bag': "\uE619",
  17996. 'uicon-error-circle-fill': "\uE62C",
  17997. 'uicon-error-circle': "\uE624",
  17998. 'uicon-close-circle': "\uE63F",
  17999. 'uicon-close-circle-fill': "\uE637",
  18000. 'uicon-checkmark-circle': "\uE63D",
  18001. 'uicon-checkmark-circle-fill': "\uE635",
  18002. 'uicon-question-circle-fill': "\uE666",
  18003. 'uicon-question-circle': "\uE625",
  18004. 'uicon-share': "\uE631",
  18005. 'uicon-share-fill': "\uE65E",
  18006. 'uicon-shopping-cart': "\uE621",
  18007. 'uicon-shopping-cart-fill': "\uE65D",
  18008. 'uicon-bell': "\uE609",
  18009. 'uicon-bell-fill': "\uE640",
  18010. 'uicon-list': "\uE650",
  18011. 'uicon-list-dot': "\uE616",
  18012. 'uicon-zhihu': "\uE6BA",
  18013. 'uicon-zhihu-circle-fill': "\uE709",
  18014. 'uicon-zhifubao': "\uE6B9",
  18015. 'uicon-zhifubao-circle-fill': "\uE6B8",
  18016. 'uicon-weixin-circle-fill': "\uE6B1",
  18017. 'uicon-weixin-fill': "\uE6B2",
  18018. 'uicon-twitter-circle-fill': "\uE6AB",
  18019. 'uicon-twitter': "\uE6AA",
  18020. 'uicon-taobao-circle-fill': "\uE6A7",
  18021. 'uicon-taobao': "\uE6A6",
  18022. 'uicon-weibo-circle-fill': "\uE6A5",
  18023. 'uicon-weibo': "\uE6A4",
  18024. 'uicon-qq-fill': "\uE6A1",
  18025. 'uicon-qq-circle-fill': "\uE6A0",
  18026. 'uicon-moments-circel-fill': "\uE69A",
  18027. 'uicon-moments': "\uE69B",
  18028. 'uicon-qzone': "\uE695",
  18029. 'uicon-qzone-circle-fill': "\uE696",
  18030. 'uicon-baidu-circle-fill': "\uE680",
  18031. 'uicon-baidu': "\uE681",
  18032. 'uicon-facebook-circle-fill': "\uE68A",
  18033. 'uicon-facebook': "\uE689",
  18034. 'uicon-car': "\uE60C",
  18035. 'uicon-car-fill': "\uE636",
  18036. 'uicon-warning-fill': "\uE64D",
  18037. 'uicon-warning': "\uE694",
  18038. 'uicon-clock-fill': "\uE638",
  18039. 'uicon-clock': "\uE60F",
  18040. 'uicon-edit-pen': "\uE612",
  18041. 'uicon-edit-pen-fill': "\uE66B",
  18042. 'uicon-email': "\uE611",
  18043. 'uicon-email-fill': "\uE642",
  18044. 'uicon-minus-circle': "\uE61B",
  18045. 'uicon-minus-circle-fill': "\uE652",
  18046. 'uicon-plus-circle': "\uE62E",
  18047. 'uicon-plus-circle-fill': "\uE661",
  18048. 'uicon-file-text': "\uE663",
  18049. 'uicon-file-text-fill': "\uE665",
  18050. 'uicon-pushpin': "\uE7E3",
  18051. 'uicon-pushpin-fill': "\uE86E",
  18052. 'uicon-grid': "\uE673",
  18053. 'uicon-grid-fill': "\uE678",
  18054. 'uicon-play-circle': "\uE647",
  18055. 'uicon-play-circle-fill': "\uE655",
  18056. 'uicon-pause-circle-fill': "\uE654",
  18057. 'uicon-pause': "\uE8FA",
  18058. 'uicon-pause-circle': "\uE643",
  18059. 'uicon-eye-off': "\uE648",
  18060. 'uicon-eye-off-outline': "\uE62B",
  18061. 'uicon-gift-fill': "\uE65C",
  18062. 'uicon-gift': "\uE65B",
  18063. 'uicon-rmb-circle-fill': "\uE657",
  18064. 'uicon-rmb-circle': "\uE677",
  18065. 'uicon-kefu-ermai': "\uE656",
  18066. 'uicon-server-fill': "\uE751",
  18067. 'uicon-coupon-fill': "\uE8C4",
  18068. 'uicon-coupon': "\uE8AE",
  18069. 'uicon-integral': "\uE704",
  18070. 'uicon-integral-fill': "\uE703",
  18071. 'uicon-home-fill': "\uE964",
  18072. 'uicon-home': "\uE965",
  18073. 'uicon-hourglass-half-fill': "\uE966",
  18074. 'uicon-hourglass': "\uE967",
  18075. 'uicon-account': "\uE628",
  18076. 'uicon-plus-people-fill': "\uE626",
  18077. 'uicon-minus-people-fill': "\uE615",
  18078. 'uicon-account-fill': "\uE614",
  18079. 'uicon-thumb-down-fill': "\uE726",
  18080. 'uicon-thumb-down': "\uE727",
  18081. 'uicon-thumb-up': "\uE733",
  18082. 'uicon-thumb-up-fill': "\uE72F",
  18083. 'uicon-lock-fill': "\uE979",
  18084. 'uicon-lock-open': "\uE973",
  18085. 'uicon-lock-opened-fill': "\uE974",
  18086. 'uicon-lock': "\uE97A",
  18087. 'uicon-red-packet-fill': "\uE690",
  18088. 'uicon-photo-fill': "\uE98B",
  18089. 'uicon-photo': "\uE98D",
  18090. 'uicon-volume-off-fill': "\uE659",
  18091. 'uicon-volume-off': "\uE644",
  18092. 'uicon-volume-fill': "\uE670",
  18093. 'uicon-volume': "\uE633",
  18094. 'uicon-red-packet': "\uE691",
  18095. 'uicon-download': "\uE63C",
  18096. 'uicon-arrow-up-fill': "\uE6B0",
  18097. 'uicon-arrow-down-fill': "\uE600",
  18098. 'uicon-play-left-fill': "\uE675",
  18099. 'uicon-play-right-fill': "\uE676",
  18100. 'uicon-rewind-left-fill': "\uE679",
  18101. 'uicon-rewind-right-fill': "\uE67A",
  18102. 'uicon-arrow-downward': "\uE604",
  18103. 'uicon-arrow-leftward': "\uE601",
  18104. 'uicon-arrow-rightward': "\uE603",
  18105. 'uicon-arrow-upward': "\uE607",
  18106. 'uicon-arrow-down': "\uE60D",
  18107. 'uicon-arrow-right': "\uE605",
  18108. 'uicon-arrow-left': "\uE60E",
  18109. 'uicon-arrow-up': "\uE606",
  18110. 'uicon-skip-back-left': "\uE674",
  18111. 'uicon-skip-forward-right': "\uE672",
  18112. 'uicon-rewind-right': "\uE66F",
  18113. 'uicon-rewind-left': "\uE671",
  18114. 'uicon-arrow-right-double': "\uE68D",
  18115. 'uicon-arrow-left-double': "\uE68C",
  18116. 'uicon-wifi-off': "\uE668",
  18117. 'uicon-wifi': "\uE667",
  18118. 'uicon-empty-data': "\uE62F",
  18119. 'uicon-empty-history': "\uE684",
  18120. 'uicon-empty-list': "\uE68B",
  18121. 'uicon-empty-page': "\uE627",
  18122. 'uicon-empty-order': "\uE639",
  18123. 'uicon-man': "\uE697",
  18124. 'uicon-woman': "\uE69C",
  18125. 'uicon-man-add': "\uE61C",
  18126. 'uicon-man-add-fill': "\uE64C",
  18127. 'uicon-man-delete': "\uE61A",
  18128. 'uicon-man-delete-fill': "\uE66A",
  18129. 'uicon-zh': "\uE70A",
  18130. 'uicon-en': "\uE692"
  18131. };
  18132. exports.default = _default;
  18133. /***/ }),
  18134. /* 240 */
  18135. /*!*************************************************************************************************************!*\
  18136. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-icon/props.js ***!
  18137. \*************************************************************************************************************/
  18138. /*! no static exports found */
  18139. /***/ (function(module, exports, __webpack_require__) {
  18140. "use strict";
  18141. /* WEBPACK VAR INJECTION */(function(uni) {
  18142. Object.defineProperty(exports, "__esModule", {
  18143. value: true
  18144. });
  18145. exports.default = void 0;
  18146. var _default = {
  18147. props: {
  18148. // 图标类名
  18149. name: {
  18150. type: String,
  18151. default: uni.$u.props.icon.name
  18152. },
  18153. // 图标颜色,可接受主题色
  18154. color: {
  18155. type: String,
  18156. default: uni.$u.props.icon.color
  18157. },
  18158. // 字体大小,单位px
  18159. size: {
  18160. type: [String, Number],
  18161. default: uni.$u.props.icon.size
  18162. },
  18163. // 是否显示粗体
  18164. bold: {
  18165. type: Boolean,
  18166. default: uni.$u.props.icon.bold
  18167. },
  18168. // 点击图标的时候传递事件出去的index(用于区分点击了哪一个)
  18169. index: {
  18170. type: [String, Number],
  18171. default: uni.$u.props.icon.index
  18172. },
  18173. // 触摸图标时的类名
  18174. hoverClass: {
  18175. type: String,
  18176. default: uni.$u.props.icon.hoverClass
  18177. },
  18178. // 自定义扩展前缀,方便用户扩展自己的图标库
  18179. customPrefix: {
  18180. type: String,
  18181. default: uni.$u.props.icon.customPrefix
  18182. },
  18183. // 图标右边或者下面的文字
  18184. label: {
  18185. type: [String, Number],
  18186. default: uni.$u.props.icon.label
  18187. },
  18188. // label的位置,只能右边或者下边
  18189. labelPos: {
  18190. type: String,
  18191. default: uni.$u.props.icon.labelPos
  18192. },
  18193. // label的大小
  18194. labelSize: {
  18195. type: [String, Number],
  18196. default: uni.$u.props.icon.labelSize
  18197. },
  18198. // label的颜色
  18199. labelColor: {
  18200. type: String,
  18201. default: uni.$u.props.icon.labelColor
  18202. },
  18203. // label与图标的距离
  18204. space: {
  18205. type: [String, Number],
  18206. default: uni.$u.props.icon.space
  18207. },
  18208. // 图片的mode
  18209. imgMode: {
  18210. type: String,
  18211. default: uni.$u.props.icon.imgMode
  18212. },
  18213. // 用于显示图片小图标时,图片的宽度
  18214. width: {
  18215. type: [String, Number],
  18216. default: uni.$u.props.icon.width
  18217. },
  18218. // 用于显示图片小图标时,图片的高度
  18219. height: {
  18220. type: [String, Number],
  18221. default: uni.$u.props.icon.height
  18222. },
  18223. // 用于解决某些情况下,让图标垂直居中的用途
  18224. top: {
  18225. type: [String, Number],
  18226. default: uni.$u.props.icon.top
  18227. },
  18228. // 是否阻止事件传播
  18229. stop: {
  18230. type: Boolean,
  18231. default: uni.$u.props.icon.stop
  18232. }
  18233. }
  18234. };
  18235. exports.default = _default;
  18236. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18237. /***/ }),
  18238. /* 241 */,
  18239. /* 242 */,
  18240. /* 243 */,
  18241. /* 244 */,
  18242. /* 245 */,
  18243. /* 246 */,
  18244. /* 247 */,
  18245. /* 248 */,
  18246. /* 249 */,
  18247. /* 250 */,
  18248. /* 251 */,
  18249. /* 252 */,
  18250. /* 253 */,
  18251. /* 254 */,
  18252. /* 255 */
  18253. /*!***************************************************************************************************************!*\
  18254. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-swiper/props.js ***!
  18255. \***************************************************************************************************************/
  18256. /*! no static exports found */
  18257. /***/ (function(module, exports, __webpack_require__) {
  18258. "use strict";
  18259. /* WEBPACK VAR INJECTION */(function(uni) {
  18260. Object.defineProperty(exports, "__esModule", {
  18261. value: true
  18262. });
  18263. exports.default = void 0;
  18264. var _default = {
  18265. props: {
  18266. // 列表数组,元素可为字符串,如为对象可通过keyName指定目标属性名
  18267. list: {
  18268. type: Array,
  18269. default: uni.$u.props.swiper.list
  18270. },
  18271. // 是否显示面板指示器
  18272. indicator: {
  18273. type: Boolean,
  18274. default: uni.$u.props.swiper.indicator
  18275. },
  18276. // 指示器非激活颜色
  18277. indicatorActiveColor: {
  18278. type: String,
  18279. default: uni.$u.props.swiper.indicatorActiveColor
  18280. },
  18281. // 指示器的激活颜色
  18282. indicatorInactiveColor: {
  18283. type: String,
  18284. default: uni.$u.props.swiper.indicatorInactiveColor
  18285. },
  18286. // 指示器样式,可通过bottom,left,right进行定位
  18287. indicatorStyle: {
  18288. type: [String, Object],
  18289. default: uni.$u.props.swiper.indicatorStyle
  18290. },
  18291. // 指示器模式,line-线型,dot-点型
  18292. indicatorMode: {
  18293. type: String,
  18294. default: uni.$u.props.swiper.indicatorMode
  18295. },
  18296. // 是否自动切换
  18297. autoplay: {
  18298. type: Boolean,
  18299. default: uni.$u.props.swiper.autoplay
  18300. },
  18301. // 当前所在滑块的 index
  18302. current: {
  18303. type: [String, Number],
  18304. default: uni.$u.props.swiper.current
  18305. },
  18306. // 当前所在滑块的 item-id ,不能与 current 被同时指定
  18307. currentItemId: {
  18308. type: String,
  18309. default: uni.$u.props.swiper.currentItemId
  18310. },
  18311. // 滑块自动切换时间间隔
  18312. interval: {
  18313. type: [String, Number],
  18314. default: uni.$u.props.swiper.interval
  18315. },
  18316. // 滑块切换过程所需时间
  18317. duration: {
  18318. type: [String, Number],
  18319. default: uni.$u.props.swiper.duration
  18320. },
  18321. // 播放到末尾后是否重新回到开头
  18322. circular: {
  18323. type: Boolean,
  18324. default: uni.$u.props.swiper.circular
  18325. },
  18326. // 前边距,可用于露出前一项的一小部分,nvue和支付宝不支持
  18327. previousMargin: {
  18328. type: [String, Number],
  18329. default: uni.$u.props.swiper.previousMargin
  18330. },
  18331. // 后边距,可用于露出后一项的一小部分,nvue和支付宝不支持
  18332. nextMargin: {
  18333. type: [String, Number],
  18334. default: uni.$u.props.swiper.nextMargin
  18335. },
  18336. // 当开启时,会根据滑动速度,连续滑动多屏,支付宝不支持
  18337. acceleration: {
  18338. type: Boolean,
  18339. default: uni.$u.props.swiper.acceleration
  18340. },
  18341. // 同时显示的滑块数量,nvue、支付宝小程序不支持
  18342. displayMultipleItems: {
  18343. type: Number,
  18344. default: uni.$u.props.swiper.displayMultipleItems
  18345. },
  18346. // 指定swiper切换缓动动画类型,有效值:default、linear、easeInCubic、easeOutCubic、easeInOutCubic
  18347. // 只对微信小程序有效
  18348. easingFunction: {
  18349. type: String,
  18350. default: uni.$u.props.swiper.easingFunction
  18351. },
  18352. // list数组中指定对象的目标属性名
  18353. keyName: {
  18354. type: String,
  18355. default: uni.$u.props.swiper.keyName
  18356. },
  18357. // 图片的裁剪模式
  18358. imgMode: {
  18359. type: String,
  18360. default: uni.$u.props.swiper.imgMode
  18361. },
  18362. // 组件高度
  18363. height: {
  18364. type: [String, Number],
  18365. default: uni.$u.props.swiper.height
  18366. },
  18367. // 背景颜色
  18368. bgColor: {
  18369. type: String,
  18370. default: uni.$u.props.swiper.bgColor
  18371. },
  18372. // 组件圆角,数值或带单位的字符串
  18373. radius: {
  18374. type: [String, Number],
  18375. default: uni.$u.props.swiper.radius
  18376. },
  18377. // 是否加载中
  18378. loading: {
  18379. type: Boolean,
  18380. default: uni.$u.props.swiper.loading
  18381. },
  18382. // 是否显示标题,要求数组对象中有title属性
  18383. showTitle: {
  18384. type: Boolean,
  18385. default: uni.$u.props.swiper.showTitle
  18386. }
  18387. }
  18388. };
  18389. exports.default = _default;
  18390. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18391. /***/ }),
  18392. /* 256 */,
  18393. /* 257 */,
  18394. /* 258 */,
  18395. /* 259 */,
  18396. /* 260 */,
  18397. /* 261 */,
  18398. /* 262 */,
  18399. /* 263 */
  18400. /*!*************************************************************************************************************!*\
  18401. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-form/props.js ***!
  18402. \*************************************************************************************************************/
  18403. /*! no static exports found */
  18404. /***/ (function(module, exports, __webpack_require__) {
  18405. "use strict";
  18406. /* WEBPACK VAR INJECTION */(function(uni) {
  18407. Object.defineProperty(exports, "__esModule", {
  18408. value: true
  18409. });
  18410. exports.default = void 0;
  18411. var _default = {
  18412. props: {
  18413. // 当前form的需要验证字段的集合
  18414. model: {
  18415. type: Object,
  18416. default: uni.$u.props.form.model
  18417. },
  18418. // 验证规则
  18419. rules: {
  18420. type: [Object, Function, Array],
  18421. default: uni.$u.props.form.rules
  18422. },
  18423. // 有错误时的提示方式,message-提示信息,toast-进行toast提示
  18424. // border-bottom-下边框呈现红色,none-无提示
  18425. errorType: {
  18426. type: String,
  18427. default: uni.$u.props.form.errorType
  18428. },
  18429. // 是否显示表单域的下划线边框
  18430. borderBottom: {
  18431. type: Boolean,
  18432. default: uni.$u.props.form.borderBottom
  18433. },
  18434. // label的位置,left-左边,top-上边
  18435. labelPosition: {
  18436. type: String,
  18437. default: uni.$u.props.form.labelPosition
  18438. },
  18439. // label的宽度,单位px
  18440. labelWidth: {
  18441. type: [String, Number],
  18442. default: uni.$u.props.form.labelWidth
  18443. },
  18444. // lable字体的对齐方式
  18445. labelAlign: {
  18446. type: String,
  18447. default: uni.$u.props.form.labelAlign
  18448. },
  18449. // lable的样式,对象形式
  18450. labelStyle: {
  18451. type: Object,
  18452. default: uni.$u.props.form.labelStyle
  18453. }
  18454. }
  18455. };
  18456. exports.default = _default;
  18457. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18458. /***/ }),
  18459. /* 264 */,
  18460. /* 265 */,
  18461. /* 266 */,
  18462. /* 267 */,
  18463. /* 268 */,
  18464. /* 269 */
  18465. /*!******************************************************************************************************************!*\
  18466. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-form-item/props.js ***!
  18467. \******************************************************************************************************************/
  18468. /*! no static exports found */
  18469. /***/ (function(module, exports, __webpack_require__) {
  18470. "use strict";
  18471. /* WEBPACK VAR INJECTION */(function(uni) {
  18472. Object.defineProperty(exports, "__esModule", {
  18473. value: true
  18474. });
  18475. exports.default = void 0;
  18476. var _default = {
  18477. props: {
  18478. // input的label提示语
  18479. label: {
  18480. type: String,
  18481. default: uni.$u.props.formItem.label
  18482. },
  18483. // 绑定的值
  18484. prop: {
  18485. type: String,
  18486. default: uni.$u.props.formItem.prop
  18487. },
  18488. // 是否显示表单域的下划线边框
  18489. borderBottom: {
  18490. type: [String, Boolean],
  18491. default: uni.$u.props.formItem.borderBottom
  18492. },
  18493. // label的位置,left-左边,top-上边
  18494. labelPosition: {
  18495. type: String,
  18496. default: uni.$u.props.formItem.labelPosition
  18497. },
  18498. // label的宽度,单位px
  18499. labelWidth: {
  18500. type: [String, Number],
  18501. default: uni.$u.props.formItem.labelWidth
  18502. },
  18503. // 右侧图标
  18504. rightIcon: {
  18505. type: String,
  18506. default: uni.$u.props.formItem.rightIcon
  18507. },
  18508. // 左侧图标
  18509. leftIcon: {
  18510. type: String,
  18511. default: uni.$u.props.formItem.leftIcon
  18512. },
  18513. // 是否显示左边的必填星号,只作显示用,具体校验必填的逻辑,请在rules中配置
  18514. required: {
  18515. type: Boolean,
  18516. default: uni.$u.props.formItem.required
  18517. },
  18518. leftIconStyle: {
  18519. type: [String, Object],
  18520. default: uni.$u.props.formItem.leftIconStyle
  18521. }
  18522. }
  18523. };
  18524. exports.default = _default;
  18525. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18526. /***/ }),
  18527. /* 270 */,
  18528. /* 271 */,
  18529. /* 272 */,
  18530. /* 273 */,
  18531. /* 274 */,
  18532. /* 275 */,
  18533. /* 276 */,
  18534. /* 277 */
  18535. /*!**************************************************************************************************************!*\
  18536. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-input/props.js ***!
  18537. \**************************************************************************************************************/
  18538. /*! no static exports found */
  18539. /***/ (function(module, exports, __webpack_require__) {
  18540. "use strict";
  18541. /* WEBPACK VAR INJECTION */(function(uni) {
  18542. Object.defineProperty(exports, "__esModule", {
  18543. value: true
  18544. });
  18545. exports.default = void 0;
  18546. var _default = {
  18547. props: {
  18548. // 输入的值
  18549. value: {
  18550. type: [String, Number],
  18551. default: uni.$u.props.input.value
  18552. },
  18553. // 输入框类型
  18554. // number-数字输入键盘,app-vue下可以输入浮点数,app-nvue和小程序平台下只能输入整数
  18555. // idcard-身份证输入键盘,微信、支付宝、百度、QQ小程序
  18556. // digit-带小数点的数字键盘,App的nvue页面、微信、支付宝、百度、头条、QQ小程序
  18557. // text-文本输入键盘
  18558. type: {
  18559. type: String,
  18560. default: uni.$u.props.input.type
  18561. },
  18562. // 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true,
  18563. // 兼容性:微信小程序、百度小程序、字节跳动小程序、QQ小程序
  18564. fixed: {
  18565. type: Boolean,
  18566. default: uni.$u.props.input.fixed
  18567. },
  18568. // 是否禁用输入框
  18569. disabled: {
  18570. type: Boolean,
  18571. default: uni.$u.props.input.disabled
  18572. },
  18573. // 禁用状态时的背景色
  18574. disabledColor: {
  18575. type: String,
  18576. default: uni.$u.props.input.disabledColor
  18577. },
  18578. // 是否显示清除控件
  18579. clearable: {
  18580. type: Boolean,
  18581. default: uni.$u.props.input.clearable
  18582. },
  18583. // 是否密码类型
  18584. password: {
  18585. type: Boolean,
  18586. default: uni.$u.props.input.password
  18587. },
  18588. // 最大输入长度,设置为 -1 的时候不限制最大长度
  18589. maxlength: {
  18590. type: [String, Number],
  18591. default: uni.$u.props.input.maxlength
  18592. },
  18593. // 输入框为空时的占位符
  18594. placeholder: {
  18595. type: String,
  18596. default: uni.$u.props.input.placeholder
  18597. },
  18598. // 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
  18599. placeholderClass: {
  18600. type: String,
  18601. default: uni.$u.props.input.placeholderClass
  18602. },
  18603. // 指定placeholder的样式
  18604. placeholderStyle: {
  18605. type: [String, Object],
  18606. default: uni.$u.props.input.placeholderStyle
  18607. },
  18608. // 是否显示输入字数统计,只在 type ="text"或type ="textarea"时有效
  18609. showWordLimit: {
  18610. type: Boolean,
  18611. default: uni.$u.props.input.showWordLimit
  18612. },
  18613. // 设置右下角按钮的文字,有效值:send|search|next|go|done,兼容性详见uni-app文档
  18614. // https://uniapp.dcloud.io/component/input
  18615. // https://uniapp.dcloud.io/component/textarea
  18616. confirmType: {
  18617. type: String,
  18618. default: uni.$u.props.input.confirmType
  18619. },
  18620. // 点击键盘右下角按钮时是否保持键盘不收起,H5无效
  18621. confirmHold: {
  18622. type: Boolean,
  18623. default: uni.$u.props.input.confirmHold
  18624. },
  18625. // focus时,点击页面的时候不收起键盘,微信小程序有效
  18626. holdKeyboard: {
  18627. type: Boolean,
  18628. default: uni.$u.props.input.holdKeyboard
  18629. },
  18630. // 自动获取焦点
  18631. // 在 H5 平台能否聚焦以及软键盘是否跟随弹出,取决于当前浏览器本身的实现。nvue 页面不支持,需使用组件的 focus()、blur() 方法控制焦点
  18632. focus: {
  18633. type: Boolean,
  18634. default: uni.$u.props.input.focus
  18635. },
  18636. // 键盘收起时,是否自动失去焦点,目前仅App3.0.0+有效
  18637. autoBlur: {
  18638. type: Boolean,
  18639. default: uni.$u.props.input.autoBlur
  18640. },
  18641. // 是否去掉 iOS 下的默认内边距,仅微信小程序,且type=textarea时有效
  18642. disableDefaultPadding: {
  18643. type: Boolean,
  18644. default: uni.$u.props.input.disableDefaultPadding
  18645. },
  18646. // 指定focus时光标的位置
  18647. cursor: {
  18648. type: [String, Number],
  18649. default: uni.$u.props.input.cursor
  18650. },
  18651. // 输入框聚焦时底部与键盘的距离
  18652. cursorSpacing: {
  18653. type: [String, Number],
  18654. default: uni.$u.props.input.cursorSpacing
  18655. },
  18656. // 光标起始位置,自动聚集时有效,需与selection-end搭配使用
  18657. selectionStart: {
  18658. type: [String, Number],
  18659. default: uni.$u.props.input.selectionStart
  18660. },
  18661. // 光标结束位置,自动聚集时有效,需与selection-start搭配使用
  18662. selectionEnd: {
  18663. type: [String, Number],
  18664. default: uni.$u.props.input.selectionEnd
  18665. },
  18666. // 键盘弹起时,是否自动上推页面
  18667. adjustPosition: {
  18668. type: Boolean,
  18669. default: uni.$u.props.input.adjustPosition
  18670. },
  18671. // 输入框内容对齐方式,可选值为:left|center|right
  18672. inputAlign: {
  18673. type: String,
  18674. default: uni.$u.props.input.inputAlign
  18675. },
  18676. // 输入框字体的大小
  18677. fontSize: {
  18678. type: [String, Number],
  18679. default: uni.$u.props.input.fontSize
  18680. },
  18681. // 输入框字体颜色
  18682. color: {
  18683. type: String,
  18684. default: uni.$u.props.input.color
  18685. },
  18686. // 输入框前置图标
  18687. prefixIcon: {
  18688. type: String,
  18689. default: uni.$u.props.input.prefixIcon
  18690. },
  18691. // 前置图标样式,对象或字符串
  18692. prefixIconStyle: {
  18693. type: [String, Object],
  18694. default: uni.$u.props.input.prefixIconStyle
  18695. },
  18696. // 输入框后置图标
  18697. suffixIcon: {
  18698. type: String,
  18699. default: uni.$u.props.input.suffixIcon
  18700. },
  18701. // 后置图标样式,对象或字符串
  18702. suffixIconStyle: {
  18703. type: [String, Object],
  18704. default: uni.$u.props.input.suffixIconStyle
  18705. },
  18706. // 边框类型,surround-四周边框,bottom-底部边框,none-无边框
  18707. border: {
  18708. type: String,
  18709. default: uni.$u.props.input.border
  18710. },
  18711. // 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会
  18712. readonly: {
  18713. type: Boolean,
  18714. default: uni.$u.props.input.readonly
  18715. },
  18716. // 输入框形状,circle-圆形,square-方形
  18717. shape: {
  18718. type: String,
  18719. default: uni.$u.props.input.shape
  18720. },
  18721. // 用于处理或者过滤输入框内容的方法
  18722. formatter: {
  18723. type: [Function, null],
  18724. default: uni.$u.props.input.formatter
  18725. },
  18726. // 是否忽略组件内对文本合成系统事件的处理
  18727. ignoreCompositionEvent: {
  18728. type: Boolean,
  18729. default: true
  18730. }
  18731. }
  18732. };
  18733. exports.default = _default;
  18734. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18735. /***/ }),
  18736. /* 278 */,
  18737. /* 279 */,
  18738. /* 280 */,
  18739. /* 281 */,
  18740. /* 282 */,
  18741. /* 283 */
  18742. /*!*************************************************************************************************************!*\
  18743. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-code/props.js ***!
  18744. \*************************************************************************************************************/
  18745. /*! no static exports found */
  18746. /***/ (function(module, exports, __webpack_require__) {
  18747. "use strict";
  18748. /* WEBPACK VAR INJECTION */(function(uni) {
  18749. Object.defineProperty(exports, "__esModule", {
  18750. value: true
  18751. });
  18752. exports.default = void 0;
  18753. var _default = {
  18754. props: {
  18755. // 倒计时总秒数
  18756. seconds: {
  18757. type: [String, Number],
  18758. default: uni.$u.props.code.seconds
  18759. },
  18760. // 尚未开始时提示
  18761. startText: {
  18762. type: String,
  18763. default: uni.$u.props.code.startText
  18764. },
  18765. // 正在倒计时中的提示
  18766. changeText: {
  18767. type: String,
  18768. default: uni.$u.props.code.changeText
  18769. },
  18770. // 倒计时结束时的提示
  18771. endText: {
  18772. type: String,
  18773. default: uni.$u.props.code.endText
  18774. },
  18775. // 是否在H5刷新或各端返回再进入时继续倒计时
  18776. keepRunning: {
  18777. type: Boolean,
  18778. default: uni.$u.props.code.keepRunning
  18779. },
  18780. // 为了区分多个页面,或者一个页面多个倒计时组件本地存储的继续倒计时变了
  18781. uniqueKey: {
  18782. type: String,
  18783. default: uni.$u.props.code.uniqueKey
  18784. }
  18785. }
  18786. };
  18787. exports.default = _default;
  18788. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18789. /***/ }),
  18790. /* 284 */,
  18791. /* 285 */,
  18792. /* 286 */,
  18793. /* 287 */,
  18794. /* 288 */,
  18795. /* 289 */,
  18796. /* 290 */,
  18797. /* 291 */
  18798. /*!**************************************************************************************************************!*\
  18799. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-popup/props.js ***!
  18800. \**************************************************************************************************************/
  18801. /*! no static exports found */
  18802. /***/ (function(module, exports, __webpack_require__) {
  18803. "use strict";
  18804. /* WEBPACK VAR INJECTION */(function(uni) {
  18805. Object.defineProperty(exports, "__esModule", {
  18806. value: true
  18807. });
  18808. exports.default = void 0;
  18809. var _default = {
  18810. props: {
  18811. // 是否展示弹窗
  18812. show: {
  18813. type: Boolean,
  18814. default: uni.$u.props.popup.show
  18815. },
  18816. // 是否显示遮罩
  18817. overlay: {
  18818. type: Boolean,
  18819. default: uni.$u.props.popup.overlay
  18820. },
  18821. // 弹出的方向,可选值为 top bottom right left center
  18822. mode: {
  18823. type: String,
  18824. default: uni.$u.props.popup.mode
  18825. },
  18826. // 动画时长,单位ms
  18827. duration: {
  18828. type: [String, Number],
  18829. default: uni.$u.props.popup.duration
  18830. },
  18831. // 是否显示关闭图标
  18832. closeable: {
  18833. type: Boolean,
  18834. default: uni.$u.props.popup.closeable
  18835. },
  18836. // 自定义遮罩的样式
  18837. overlayStyle: {
  18838. type: [Object, String],
  18839. default: uni.$u.props.popup.overlayStyle
  18840. },
  18841. // 点击遮罩是否关闭弹窗
  18842. closeOnClickOverlay: {
  18843. type: Boolean,
  18844. default: uni.$u.props.popup.closeOnClickOverlay
  18845. },
  18846. // 层级
  18847. zIndex: {
  18848. type: [String, Number],
  18849. default: uni.$u.props.popup.zIndex
  18850. },
  18851. // 是否为iPhoneX留出底部安全距离
  18852. safeAreaInsetBottom: {
  18853. type: Boolean,
  18854. default: uni.$u.props.popup.safeAreaInsetBottom
  18855. },
  18856. // 是否留出顶部安全距离(状态栏高度)
  18857. safeAreaInsetTop: {
  18858. type: Boolean,
  18859. default: uni.$u.props.popup.safeAreaInsetTop
  18860. },
  18861. // 自定义关闭图标位置,top-left为左上角,top-right为右上角,bottom-left为左下角,bottom-right为右下角
  18862. closeIconPos: {
  18863. type: String,
  18864. default: uni.$u.props.popup.closeIconPos
  18865. },
  18866. // 是否显示圆角
  18867. round: {
  18868. type: [Boolean, String, Number],
  18869. default: uni.$u.props.popup.round
  18870. },
  18871. // mode=center,也即中部弹出时,是否使用缩放模式
  18872. zoom: {
  18873. type: Boolean,
  18874. default: uni.$u.props.popup.zoom
  18875. },
  18876. // 弹窗背景色,设置为transparent可去除白色背景
  18877. bgColor: {
  18878. type: String,
  18879. default: uni.$u.props.popup.bgColor
  18880. },
  18881. // 遮罩的透明度,0-1之间
  18882. overlayOpacity: {
  18883. type: [Number, String],
  18884. default: uni.$u.props.popup.overlayOpacity
  18885. }
  18886. }
  18887. };
  18888. exports.default = _default;
  18889. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18890. /***/ }),
  18891. /* 292 */,
  18892. /* 293 */,
  18893. /* 294 */,
  18894. /* 295 */,
  18895. /* 296 */,
  18896. /* 297 */,
  18897. /* 298 */,
  18898. /* 299 */
  18899. /*!***************************************************************************************************************!*\
  18900. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/libs/util/async-validator.js ***!
  18901. \***************************************************************************************************************/
  18902. /*! no static exports found */
  18903. /***/ (function(module, exports, __webpack_require__) {
  18904. "use strict";
  18905. /* WEBPACK VAR INJECTION */(function(process) {
  18906. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  18907. Object.defineProperty(exports, "__esModule", {
  18908. value: true
  18909. });
  18910. exports.default = void 0;
  18911. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  18912. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  18913. 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; }
  18914. 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; }
  18915. function _extends() {
  18916. _extends = Object.assign || function (target) {
  18917. for (var i = 1; i < arguments.length; i++) {
  18918. var source = arguments[i];
  18919. for (var key in source) {
  18920. if (Object.prototype.hasOwnProperty.call(source, key)) {
  18921. target[key] = source[key];
  18922. }
  18923. }
  18924. }
  18925. return target;
  18926. };
  18927. return _extends.apply(this, arguments);
  18928. }
  18929. /* eslint no-console:0 */
  18930. var formatRegExp = /%[sdj%]/g;
  18931. var warning = function warning() {}; // don't print warning message when in production env or node runtime
  18932. if (typeof process !== 'undefined' && Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"shoppingTemplate","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}) && "development" !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {
  18933. warning = function warning(type, errors) {
  18934. if (typeof console !== 'undefined' && console.warn) {
  18935. if (errors.every(function (e) {
  18936. return typeof e === 'string';
  18937. })) {
  18938. console.warn(type, errors);
  18939. }
  18940. }
  18941. };
  18942. }
  18943. function convertFieldsError(errors) {
  18944. if (!errors || !errors.length) return null;
  18945. var fields = {};
  18946. errors.forEach(function (error) {
  18947. var field = error.field;
  18948. fields[field] = fields[field] || [];
  18949. fields[field].push(error);
  18950. });
  18951. return fields;
  18952. }
  18953. function format() {
  18954. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  18955. args[_key] = arguments[_key];
  18956. }
  18957. var i = 1;
  18958. var f = args[0];
  18959. var len = args.length;
  18960. if (typeof f === 'function') {
  18961. return f.apply(null, args.slice(1));
  18962. }
  18963. if (typeof f === 'string') {
  18964. var str = String(f).replace(formatRegExp, function (x) {
  18965. if (x === '%%') {
  18966. return '%';
  18967. }
  18968. if (i >= len) {
  18969. return x;
  18970. }
  18971. switch (x) {
  18972. case '%s':
  18973. return String(args[i++]);
  18974. case '%d':
  18975. return Number(args[i++]);
  18976. case '%j':
  18977. try {
  18978. return JSON.stringify(args[i++]);
  18979. } catch (_) {
  18980. return '[Circular]';
  18981. }
  18982. break;
  18983. default:
  18984. return x;
  18985. }
  18986. });
  18987. for (var arg = args[i]; i < len; arg = args[++i]) {
  18988. str += " ".concat(arg);
  18989. }
  18990. return str;
  18991. }
  18992. return f;
  18993. }
  18994. function isNativeStringType(type) {
  18995. return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern';
  18996. }
  18997. function isEmptyValue(value, type) {
  18998. if (value === undefined || value === null) {
  18999. return true;
  19000. }
  19001. if (type === 'array' && Array.isArray(value) && !value.length) {
  19002. return true;
  19003. }
  19004. if (isNativeStringType(type) && typeof value === 'string' && !value) {
  19005. return true;
  19006. }
  19007. return false;
  19008. }
  19009. function asyncParallelArray(arr, func, callback) {
  19010. var results = [];
  19011. var total = 0;
  19012. var arrLength = arr.length;
  19013. function count(errors) {
  19014. results.push.apply(results, errors);
  19015. total++;
  19016. if (total === arrLength) {
  19017. callback(results);
  19018. }
  19019. }
  19020. arr.forEach(function (a) {
  19021. func(a, count);
  19022. });
  19023. }
  19024. function asyncSerialArray(arr, func, callback) {
  19025. var index = 0;
  19026. var arrLength = arr.length;
  19027. function next(errors) {
  19028. if (errors && errors.length) {
  19029. callback(errors);
  19030. return;
  19031. }
  19032. var original = index;
  19033. index += 1;
  19034. if (original < arrLength) {
  19035. func(arr[original], next);
  19036. } else {
  19037. callback([]);
  19038. }
  19039. }
  19040. next([]);
  19041. }
  19042. function flattenObjArr(objArr) {
  19043. var ret = [];
  19044. Object.keys(objArr).forEach(function (k) {
  19045. ret.push.apply(ret, objArr[k]);
  19046. });
  19047. return ret;
  19048. }
  19049. function asyncMap(objArr, option, func, callback) {
  19050. if (option.first) {
  19051. var _pending = new Promise(function (resolve, reject) {
  19052. var next = function next(errors) {
  19053. callback(errors);
  19054. return errors.length ? reject({
  19055. errors: errors,
  19056. fields: convertFieldsError(errors)
  19057. }) : resolve();
  19058. };
  19059. var flattenArr = flattenObjArr(objArr);
  19060. asyncSerialArray(flattenArr, func, next);
  19061. });
  19062. _pending.catch(function (e) {
  19063. return e;
  19064. });
  19065. return _pending;
  19066. }
  19067. var firstFields = option.firstFields || [];
  19068. if (firstFields === true) {
  19069. firstFields = Object.keys(objArr);
  19070. }
  19071. var objArrKeys = Object.keys(objArr);
  19072. var objArrLength = objArrKeys.length;
  19073. var total = 0;
  19074. var results = [];
  19075. var pending = new Promise(function (resolve, reject) {
  19076. var next = function next(errors) {
  19077. results.push.apply(results, errors);
  19078. total++;
  19079. if (total === objArrLength) {
  19080. callback(results);
  19081. return results.length ? reject({
  19082. errors: results,
  19083. fields: convertFieldsError(results)
  19084. }) : resolve();
  19085. }
  19086. };
  19087. if (!objArrKeys.length) {
  19088. callback(results);
  19089. resolve();
  19090. }
  19091. objArrKeys.forEach(function (key) {
  19092. var arr = objArr[key];
  19093. if (firstFields.indexOf(key) !== -1) {
  19094. asyncSerialArray(arr, func, next);
  19095. } else {
  19096. asyncParallelArray(arr, func, next);
  19097. }
  19098. });
  19099. });
  19100. pending.catch(function (e) {
  19101. return e;
  19102. });
  19103. return pending;
  19104. }
  19105. function complementError(rule) {
  19106. return function (oe) {
  19107. if (oe && oe.message) {
  19108. oe.field = oe.field || rule.fullField;
  19109. return oe;
  19110. }
  19111. return {
  19112. message: typeof oe === 'function' ? oe() : oe,
  19113. field: oe.field || rule.fullField
  19114. };
  19115. };
  19116. }
  19117. function deepMerge(target, source) {
  19118. if (source) {
  19119. for (var s in source) {
  19120. if (source.hasOwnProperty(s)) {
  19121. var value = source[s];
  19122. if ((0, _typeof2.default)(value) === 'object' && (0, _typeof2.default)(target[s]) === 'object') {
  19123. target[s] = _objectSpread(_objectSpread({}, target[s]), value);
  19124. } else {
  19125. target[s] = value;
  19126. }
  19127. }
  19128. }
  19129. }
  19130. return target;
  19131. }
  19132. /**
  19133. * Rule for validating required fields.
  19134. *
  19135. * @param rule The validation rule.
  19136. * @param value The value of the field on the source object.
  19137. * @param source The source object being validated.
  19138. * @param errors An array of errors that this rule may add
  19139. * validation errors to.
  19140. * @param options The validation options.
  19141. * @param options.messages The validation messages.
  19142. */
  19143. function required(rule, value, source, errors, options, type) {
  19144. if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) {
  19145. errors.push(format(options.messages.required, rule.fullField));
  19146. }
  19147. }
  19148. /**
  19149. * Rule for validating whitespace.
  19150. *
  19151. * @param rule The validation rule.
  19152. * @param value The value of the field on the source object.
  19153. * @param source The source object being validated.
  19154. * @param errors An array of errors that this rule may add
  19155. * validation errors to.
  19156. * @param options The validation options.
  19157. * @param options.messages The validation messages.
  19158. */
  19159. function whitespace(rule, value, source, errors, options) {
  19160. if (/^\s+$/.test(value) || value === '') {
  19161. errors.push(format(options.messages.whitespace, rule.fullField));
  19162. }
  19163. }
  19164. /* eslint max-len:0 */
  19165. var pattern = {
  19166. // http://emailregex.com/
  19167. email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
  19168. url: new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$", 'i'),
  19169. hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
  19170. };
  19171. var types = {
  19172. integer: function integer(value) {
  19173. return /^(-)?\d+$/.test(value);
  19174. },
  19175. float: function float(value) {
  19176. return /^(-)?\d+(\.\d+)?$/.test(value);
  19177. },
  19178. array: function array(value) {
  19179. return Array.isArray(value);
  19180. },
  19181. regexp: function regexp(value) {
  19182. if (value instanceof RegExp) {
  19183. return true;
  19184. }
  19185. try {
  19186. return !!new RegExp(value);
  19187. } catch (e) {
  19188. return false;
  19189. }
  19190. },
  19191. date: function date(value) {
  19192. return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function';
  19193. },
  19194. number: function number(value) {
  19195. if (isNaN(value)) {
  19196. return false;
  19197. }
  19198. // 修改源码,将字符串数值先转为数值
  19199. return typeof +value === 'number';
  19200. },
  19201. object: function object(value) {
  19202. return (0, _typeof2.default)(value) === 'object' && !types.array(value);
  19203. },
  19204. method: function method(value) {
  19205. return typeof value === 'function';
  19206. },
  19207. email: function email(value) {
  19208. return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
  19209. },
  19210. url: function url(value) {
  19211. return typeof value === 'string' && !!value.match(pattern.url);
  19212. },
  19213. hex: function hex(value) {
  19214. return typeof value === 'string' && !!value.match(pattern.hex);
  19215. }
  19216. };
  19217. /**
  19218. * Rule for validating the type of a value.
  19219. *
  19220. * @param rule The validation rule.
  19221. * @param value The value of the field on the source object.
  19222. * @param source The source object being validated.
  19223. * @param errors An array of errors that this rule may add
  19224. * validation errors to.
  19225. * @param options The validation options.
  19226. * @param options.messages The validation messages.
  19227. */
  19228. function type(rule, value, source, errors, options) {
  19229. if (rule.required && value === undefined) {
  19230. required(rule, value, source, errors, options);
  19231. return;
  19232. }
  19233. var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'];
  19234. var ruleType = rule.type;
  19235. if (custom.indexOf(ruleType) > -1) {
  19236. if (!types[ruleType](value)) {
  19237. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  19238. } // straight typeof check
  19239. } else if (ruleType && (0, _typeof2.default)(value) !== rule.type) {
  19240. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  19241. }
  19242. }
  19243. /**
  19244. * Rule for validating minimum and maximum allowed values.
  19245. *
  19246. * @param rule The validation rule.
  19247. * @param value The value of the field on the source object.
  19248. * @param source The source object being validated.
  19249. * @param errors An array of errors that this rule may add
  19250. * validation errors to.
  19251. * @param options The validation options.
  19252. * @param options.messages The validation messages.
  19253. */
  19254. function range(rule, value, source, errors, options) {
  19255. var len = typeof rule.len === 'number';
  19256. var min = typeof rule.min === 'number';
  19257. var max = typeof rule.max === 'number'; // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane)
  19258. var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
  19259. var val = value;
  19260. var key = null;
  19261. var num = typeof value === 'number';
  19262. var str = typeof value === 'string';
  19263. var arr = Array.isArray(value);
  19264. if (num) {
  19265. key = 'number';
  19266. } else if (str) {
  19267. key = 'string';
  19268. } else if (arr) {
  19269. key = 'array';
  19270. } // if the value is not of a supported type for range validation
  19271. // the validation rule rule should use the
  19272. // type property to also test for a particular type
  19273. if (!key) {
  19274. return false;
  19275. }
  19276. if (arr) {
  19277. val = value.length;
  19278. }
  19279. if (str) {
  19280. // 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3
  19281. val = value.replace(spRegexp, '_').length;
  19282. }
  19283. if (len) {
  19284. if (val !== rule.len) {
  19285. errors.push(format(options.messages[key].len, rule.fullField, rule.len));
  19286. }
  19287. } else if (min && !max && val < rule.min) {
  19288. errors.push(format(options.messages[key].min, rule.fullField, rule.min));
  19289. } else if (max && !min && val > rule.max) {
  19290. errors.push(format(options.messages[key].max, rule.fullField, rule.max));
  19291. } else if (min && max && (val < rule.min || val > rule.max)) {
  19292. errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max));
  19293. }
  19294. }
  19295. var ENUM = 'enum';
  19296. /**
  19297. * Rule for validating a value exists in an enumerable list.
  19298. *
  19299. * @param rule The validation rule.
  19300. * @param value The value of the field on the source object.
  19301. * @param source The source object being validated.
  19302. * @param errors An array of errors that this rule may add
  19303. * validation errors to.
  19304. * @param options The validation options.
  19305. * @param options.messages The validation messages.
  19306. */
  19307. function enumerable(rule, value, source, errors, options) {
  19308. rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : [];
  19309. if (rule[ENUM].indexOf(value) === -1) {
  19310. errors.push(format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', ')));
  19311. }
  19312. }
  19313. /**
  19314. * Rule for validating a regular expression pattern.
  19315. *
  19316. * @param rule The validation rule.
  19317. * @param value The value of the field on the source object.
  19318. * @param source The source object being validated.
  19319. * @param errors An array of errors that this rule may add
  19320. * validation errors to.
  19321. * @param options The validation options.
  19322. * @param options.messages The validation messages.
  19323. */
  19324. function pattern$1(rule, value, source, errors, options) {
  19325. if (rule.pattern) {
  19326. if (rule.pattern instanceof RegExp) {
  19327. // if a RegExp instance is passed, reset `lastIndex` in case its `global`
  19328. // flag is accidentally set to `true`, which in a validation scenario
  19329. // is not necessary and the result might be misleading
  19330. rule.pattern.lastIndex = 0;
  19331. if (!rule.pattern.test(value)) {
  19332. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  19333. }
  19334. } else if (typeof rule.pattern === 'string') {
  19335. var _pattern = new RegExp(rule.pattern);
  19336. if (!_pattern.test(value)) {
  19337. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  19338. }
  19339. }
  19340. }
  19341. }
  19342. var rules = {
  19343. required: required,
  19344. whitespace: whitespace,
  19345. type: type,
  19346. range: range,
  19347. enum: enumerable,
  19348. pattern: pattern$1
  19349. };
  19350. /**
  19351. * Performs validation for string types.
  19352. *
  19353. * @param rule The validation rule.
  19354. * @param value The value of the field on the source object.
  19355. * @param callback The callback function.
  19356. * @param source The source object being validated.
  19357. * @param options The validation options.
  19358. * @param options.messages The validation messages.
  19359. */
  19360. function string(rule, value, callback, source, options) {
  19361. var errors = [];
  19362. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19363. if (validate) {
  19364. if (isEmptyValue(value, 'string') && !rule.required) {
  19365. return callback();
  19366. }
  19367. rules.required(rule, value, source, errors, options, 'string');
  19368. if (!isEmptyValue(value, 'string')) {
  19369. rules.type(rule, value, source, errors, options);
  19370. rules.range(rule, value, source, errors, options);
  19371. rules.pattern(rule, value, source, errors, options);
  19372. if (rule.whitespace === true) {
  19373. rules.whitespace(rule, value, source, errors, options);
  19374. }
  19375. }
  19376. }
  19377. callback(errors);
  19378. }
  19379. /**
  19380. * Validates a function.
  19381. *
  19382. * @param rule The validation rule.
  19383. * @param value The value of the field on the source object.
  19384. * @param callback The callback function.
  19385. * @param source The source object being validated.
  19386. * @param options The validation options.
  19387. * @param options.messages The validation messages.
  19388. */
  19389. function method(rule, value, callback, source, options) {
  19390. var errors = [];
  19391. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19392. if (validate) {
  19393. if (isEmptyValue(value) && !rule.required) {
  19394. return callback();
  19395. }
  19396. rules.required(rule, value, source, errors, options);
  19397. if (value !== undefined) {
  19398. rules.type(rule, value, source, errors, options);
  19399. }
  19400. }
  19401. callback(errors);
  19402. }
  19403. /**
  19404. * Validates a number.
  19405. *
  19406. * @param rule The validation rule.
  19407. * @param value The value of the field on the source object.
  19408. * @param callback The callback function.
  19409. * @param source The source object being validated.
  19410. * @param options The validation options.
  19411. * @param options.messages The validation messages.
  19412. */
  19413. function number(rule, value, callback, source, options) {
  19414. var errors = [];
  19415. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19416. if (validate) {
  19417. if (value === '') {
  19418. value = undefined;
  19419. }
  19420. if (isEmptyValue(value) && !rule.required) {
  19421. return callback();
  19422. }
  19423. rules.required(rule, value, source, errors, options);
  19424. if (value !== undefined) {
  19425. rules.type(rule, value, source, errors, options);
  19426. rules.range(rule, value, source, errors, options);
  19427. }
  19428. }
  19429. callback(errors);
  19430. }
  19431. /**
  19432. * Validates a boolean.
  19433. *
  19434. * @param rule The validation rule.
  19435. * @param value The value of the field on the source object.
  19436. * @param callback The callback function.
  19437. * @param source The source object being validated.
  19438. * @param options The validation options.
  19439. * @param options.messages The validation messages.
  19440. */
  19441. function _boolean(rule, value, callback, source, options) {
  19442. var errors = [];
  19443. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19444. if (validate) {
  19445. if (isEmptyValue(value) && !rule.required) {
  19446. return callback();
  19447. }
  19448. rules.required(rule, value, source, errors, options);
  19449. if (value !== undefined) {
  19450. rules.type(rule, value, source, errors, options);
  19451. }
  19452. }
  19453. callback(errors);
  19454. }
  19455. /**
  19456. * Validates the regular expression type.
  19457. *
  19458. * @param rule The validation rule.
  19459. * @param value The value of the field on the source object.
  19460. * @param callback The callback function.
  19461. * @param source The source object being validated.
  19462. * @param options The validation options.
  19463. * @param options.messages The validation messages.
  19464. */
  19465. function regexp(rule, value, callback, source, options) {
  19466. var errors = [];
  19467. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19468. if (validate) {
  19469. if (isEmptyValue(value) && !rule.required) {
  19470. return callback();
  19471. }
  19472. rules.required(rule, value, source, errors, options);
  19473. if (!isEmptyValue(value)) {
  19474. rules.type(rule, value, source, errors, options);
  19475. }
  19476. }
  19477. callback(errors);
  19478. }
  19479. /**
  19480. * Validates a number is an integer.
  19481. *
  19482. * @param rule The validation rule.
  19483. * @param value The value of the field on the source object.
  19484. * @param callback The callback function.
  19485. * @param source The source object being validated.
  19486. * @param options The validation options.
  19487. * @param options.messages The validation messages.
  19488. */
  19489. function integer(rule, value, callback, source, options) {
  19490. var errors = [];
  19491. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19492. if (validate) {
  19493. if (isEmptyValue(value) && !rule.required) {
  19494. return callback();
  19495. }
  19496. rules.required(rule, value, source, errors, options);
  19497. if (value !== undefined) {
  19498. rules.type(rule, value, source, errors, options);
  19499. rules.range(rule, value, source, errors, options);
  19500. }
  19501. }
  19502. callback(errors);
  19503. }
  19504. /**
  19505. * Validates a number is a floating point number.
  19506. *
  19507. * @param rule The validation rule.
  19508. * @param value The value of the field on the source object.
  19509. * @param callback The callback function.
  19510. * @param source The source object being validated.
  19511. * @param options The validation options.
  19512. * @param options.messages The validation messages.
  19513. */
  19514. function floatFn(rule, value, callback, source, options) {
  19515. var errors = [];
  19516. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19517. if (validate) {
  19518. if (isEmptyValue(value) && !rule.required) {
  19519. return callback();
  19520. }
  19521. rules.required(rule, value, source, errors, options);
  19522. if (value !== undefined) {
  19523. rules.type(rule, value, source, errors, options);
  19524. rules.range(rule, value, source, errors, options);
  19525. }
  19526. }
  19527. callback(errors);
  19528. }
  19529. /**
  19530. * Validates an array.
  19531. *
  19532. * @param rule The validation rule.
  19533. * @param value The value of the field on the source object.
  19534. * @param callback The callback function.
  19535. * @param source The source object being validated.
  19536. * @param options The validation options.
  19537. * @param options.messages The validation messages.
  19538. */
  19539. function array(rule, value, callback, source, options) {
  19540. var errors = [];
  19541. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19542. if (validate) {
  19543. if (isEmptyValue(value, 'array') && !rule.required) {
  19544. return callback();
  19545. }
  19546. rules.required(rule, value, source, errors, options, 'array');
  19547. if (!isEmptyValue(value, 'array')) {
  19548. rules.type(rule, value, source, errors, options);
  19549. rules.range(rule, value, source, errors, options);
  19550. }
  19551. }
  19552. callback(errors);
  19553. }
  19554. /**
  19555. * Validates an object.
  19556. *
  19557. * @param rule The validation rule.
  19558. * @param value The value of the field on the source object.
  19559. * @param callback The callback function.
  19560. * @param source The source object being validated.
  19561. * @param options The validation options.
  19562. * @param options.messages The validation messages.
  19563. */
  19564. function object(rule, value, callback, source, options) {
  19565. var errors = [];
  19566. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19567. if (validate) {
  19568. if (isEmptyValue(value) && !rule.required) {
  19569. return callback();
  19570. }
  19571. rules.required(rule, value, source, errors, options);
  19572. if (value !== undefined) {
  19573. rules.type(rule, value, source, errors, options);
  19574. }
  19575. }
  19576. callback(errors);
  19577. }
  19578. var ENUM$1 = 'enum';
  19579. /**
  19580. * Validates an enumerable list.
  19581. *
  19582. * @param rule The validation rule.
  19583. * @param value The value of the field on the source object.
  19584. * @param callback The callback function.
  19585. * @param source The source object being validated.
  19586. * @param options The validation options.
  19587. * @param options.messages The validation messages.
  19588. */
  19589. function enumerable$1(rule, value, callback, source, options) {
  19590. var errors = [];
  19591. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19592. if (validate) {
  19593. if (isEmptyValue(value) && !rule.required) {
  19594. return callback();
  19595. }
  19596. rules.required(rule, value, source, errors, options);
  19597. if (value !== undefined) {
  19598. rules[ENUM$1](rule, value, source, errors, options);
  19599. }
  19600. }
  19601. callback(errors);
  19602. }
  19603. /**
  19604. * Validates a regular expression pattern.
  19605. *
  19606. * Performs validation when a rule only contains
  19607. * a pattern property but is not declared as a string type.
  19608. *
  19609. * @param rule The validation rule.
  19610. * @param value The value of the field on the source object.
  19611. * @param callback The callback function.
  19612. * @param source The source object being validated.
  19613. * @param options The validation options.
  19614. * @param options.messages The validation messages.
  19615. */
  19616. function pattern$2(rule, value, callback, source, options) {
  19617. var errors = [];
  19618. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19619. if (validate) {
  19620. if (isEmptyValue(value, 'string') && !rule.required) {
  19621. return callback();
  19622. }
  19623. rules.required(rule, value, source, errors, options);
  19624. if (!isEmptyValue(value, 'string')) {
  19625. rules.pattern(rule, value, source, errors, options);
  19626. }
  19627. }
  19628. callback(errors);
  19629. }
  19630. function date(rule, value, callback, source, options) {
  19631. var errors = [];
  19632. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19633. if (validate) {
  19634. if (isEmptyValue(value) && !rule.required) {
  19635. return callback();
  19636. }
  19637. rules.required(rule, value, source, errors, options);
  19638. if (!isEmptyValue(value)) {
  19639. var dateObject;
  19640. if (typeof value === 'number') {
  19641. dateObject = new Date(value);
  19642. } else {
  19643. dateObject = value;
  19644. }
  19645. rules.type(rule, dateObject, source, errors, options);
  19646. if (dateObject) {
  19647. rules.range(rule, dateObject.getTime(), source, errors, options);
  19648. }
  19649. }
  19650. }
  19651. callback(errors);
  19652. }
  19653. function required$1(rule, value, callback, source, options) {
  19654. var errors = [];
  19655. var type = Array.isArray(value) ? 'array' : (0, _typeof2.default)(value);
  19656. rules.required(rule, value, source, errors, options, type);
  19657. callback(errors);
  19658. }
  19659. function type$1(rule, value, callback, source, options) {
  19660. var ruleType = rule.type;
  19661. var errors = [];
  19662. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19663. if (validate) {
  19664. if (isEmptyValue(value, ruleType) && !rule.required) {
  19665. return callback();
  19666. }
  19667. rules.required(rule, value, source, errors, options, ruleType);
  19668. if (!isEmptyValue(value, ruleType)) {
  19669. rules.type(rule, value, source, errors, options);
  19670. }
  19671. }
  19672. callback(errors);
  19673. }
  19674. /**
  19675. * Performs validation for any type.
  19676. *
  19677. * @param rule The validation rule.
  19678. * @param value The value of the field on the source object.
  19679. * @param callback The callback function.
  19680. * @param source The source object being validated.
  19681. * @param options The validation options.
  19682. * @param options.messages The validation messages.
  19683. */
  19684. function any(rule, value, callback, source, options) {
  19685. var errors = [];
  19686. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19687. if (validate) {
  19688. if (isEmptyValue(value) && !rule.required) {
  19689. return callback();
  19690. }
  19691. rules.required(rule, value, source, errors, options);
  19692. }
  19693. callback(errors);
  19694. }
  19695. var validators = {
  19696. string: string,
  19697. method: method,
  19698. number: number,
  19699. boolean: _boolean,
  19700. regexp: regexp,
  19701. integer: integer,
  19702. float: floatFn,
  19703. array: array,
  19704. object: object,
  19705. enum: enumerable$1,
  19706. pattern: pattern$2,
  19707. date: date,
  19708. url: type$1,
  19709. hex: type$1,
  19710. email: type$1,
  19711. required: required$1,
  19712. any: any
  19713. };
  19714. function newMessages() {
  19715. return {
  19716. default: 'Validation error on field %s',
  19717. required: '%s is required',
  19718. enum: '%s must be one of %s',
  19719. whitespace: '%s cannot be empty',
  19720. date: {
  19721. format: '%s date %s is invalid for format %s',
  19722. parse: '%s date could not be parsed, %s is invalid ',
  19723. invalid: '%s date %s is invalid'
  19724. },
  19725. types: {
  19726. string: '%s is not a %s',
  19727. method: '%s is not a %s (function)',
  19728. array: '%s is not an %s',
  19729. object: '%s is not an %s',
  19730. number: '%s is not a %s',
  19731. date: '%s is not a %s',
  19732. boolean: '%s is not a %s',
  19733. integer: '%s is not an %s',
  19734. float: '%s is not a %s',
  19735. regexp: '%s is not a valid %s',
  19736. email: '%s is not a valid %s',
  19737. url: '%s is not a valid %s',
  19738. hex: '%s is not a valid %s'
  19739. },
  19740. string: {
  19741. len: '%s must be exactly %s characters',
  19742. min: '%s must be at least %s characters',
  19743. max: '%s cannot be longer than %s characters',
  19744. range: '%s must be between %s and %s characters'
  19745. },
  19746. number: {
  19747. len: '%s must equal %s',
  19748. min: '%s cannot be less than %s',
  19749. max: '%s cannot be greater than %s',
  19750. range: '%s must be between %s and %s'
  19751. },
  19752. array: {
  19753. len: '%s must be exactly %s in length',
  19754. min: '%s cannot be less than %s in length',
  19755. max: '%s cannot be greater than %s in length',
  19756. range: '%s must be between %s and %s in length'
  19757. },
  19758. pattern: {
  19759. mismatch: '%s value %s does not match pattern %s'
  19760. },
  19761. clone: function clone() {
  19762. var cloned = JSON.parse(JSON.stringify(this));
  19763. cloned.clone = this.clone;
  19764. return cloned;
  19765. }
  19766. };
  19767. }
  19768. var messages = newMessages();
  19769. /**
  19770. * Encapsulates a validation schema.
  19771. *
  19772. * @param descriptor An object declaring validation rules
  19773. * for this schema.
  19774. */
  19775. function Schema(descriptor) {
  19776. this.rules = null;
  19777. this._messages = messages;
  19778. this.define(descriptor);
  19779. }
  19780. Schema.prototype = {
  19781. messages: function messages(_messages) {
  19782. if (_messages) {
  19783. this._messages = deepMerge(newMessages(), _messages);
  19784. }
  19785. return this._messages;
  19786. },
  19787. define: function define(rules) {
  19788. if (!rules) {
  19789. throw new Error('Cannot configure a schema with no rules');
  19790. }
  19791. if ((0, _typeof2.default)(rules) !== 'object' || Array.isArray(rules)) {
  19792. throw new Error('Rules must be an object');
  19793. }
  19794. this.rules = {};
  19795. var z;
  19796. var item;
  19797. for (z in rules) {
  19798. if (rules.hasOwnProperty(z)) {
  19799. item = rules[z];
  19800. this.rules[z] = Array.isArray(item) ? item : [item];
  19801. }
  19802. }
  19803. },
  19804. validate: function validate(source_, o, oc) {
  19805. var _this = this;
  19806. if (o === void 0) {
  19807. o = {};
  19808. }
  19809. if (oc === void 0) {
  19810. oc = function oc() {};
  19811. }
  19812. var source = source_;
  19813. var options = o;
  19814. var callback = oc;
  19815. if (typeof options === 'function') {
  19816. callback = options;
  19817. options = {};
  19818. }
  19819. if (!this.rules || Object.keys(this.rules).length === 0) {
  19820. if (callback) {
  19821. callback();
  19822. }
  19823. return Promise.resolve();
  19824. }
  19825. function complete(results) {
  19826. var i;
  19827. var errors = [];
  19828. var fields = {};
  19829. function add(e) {
  19830. if (Array.isArray(e)) {
  19831. var _errors;
  19832. errors = (_errors = errors).concat.apply(_errors, e);
  19833. } else {
  19834. errors.push(e);
  19835. }
  19836. }
  19837. for (i = 0; i < results.length; i++) {
  19838. add(results[i]);
  19839. }
  19840. if (!errors.length) {
  19841. errors = null;
  19842. fields = null;
  19843. } else {
  19844. fields = convertFieldsError(errors);
  19845. }
  19846. callback(errors, fields);
  19847. }
  19848. if (options.messages) {
  19849. var messages$1 = this.messages();
  19850. if (messages$1 === messages) {
  19851. messages$1 = newMessages();
  19852. }
  19853. deepMerge(messages$1, options.messages);
  19854. options.messages = messages$1;
  19855. } else {
  19856. options.messages = this.messages();
  19857. }
  19858. var arr;
  19859. var value;
  19860. var series = {};
  19861. var keys = options.keys || Object.keys(this.rules);
  19862. keys.forEach(function (z) {
  19863. arr = _this.rules[z];
  19864. value = source[z];
  19865. arr.forEach(function (r) {
  19866. var rule = r;
  19867. if (typeof rule.transform === 'function') {
  19868. if (source === source_) {
  19869. source = _objectSpread({}, source);
  19870. }
  19871. value = source[z] = rule.transform(value);
  19872. }
  19873. if (typeof rule === 'function') {
  19874. rule = {
  19875. validator: rule
  19876. };
  19877. } else {
  19878. rule = _objectSpread({}, rule);
  19879. }
  19880. rule.validator = _this.getValidationMethod(rule);
  19881. rule.field = z;
  19882. rule.fullField = rule.fullField || z;
  19883. rule.type = _this.getType(rule);
  19884. if (!rule.validator) {
  19885. return;
  19886. }
  19887. series[z] = series[z] || [];
  19888. series[z].push({
  19889. rule: rule,
  19890. value: value,
  19891. source: source,
  19892. field: z
  19893. });
  19894. });
  19895. });
  19896. var errorFields = {};
  19897. return asyncMap(series, options, function (data, doIt) {
  19898. var rule = data.rule;
  19899. var deep = (rule.type === 'object' || rule.type === 'array') && ((0, _typeof2.default)(rule.fields) === 'object' || (0, _typeof2.default)(rule.defaultField) === 'object');
  19900. deep = deep && (rule.required || !rule.required && data.value);
  19901. rule.field = data.field;
  19902. function addFullfield(key, schema) {
  19903. return _objectSpread(_objectSpread({}, schema), {}, {
  19904. fullField: "".concat(rule.fullField, ".").concat(key)
  19905. });
  19906. }
  19907. function cb(e) {
  19908. if (e === void 0) {
  19909. e = [];
  19910. }
  19911. var errors = e;
  19912. if (!Array.isArray(errors)) {
  19913. errors = [errors];
  19914. }
  19915. if (!options.suppressWarning && errors.length) {
  19916. Schema.warning('async-validator:', errors);
  19917. }
  19918. if (errors.length && rule.message) {
  19919. errors = [].concat(rule.message);
  19920. }
  19921. errors = errors.map(complementError(rule));
  19922. if (options.first && errors.length) {
  19923. errorFields[rule.field] = 1;
  19924. return doIt(errors);
  19925. }
  19926. if (!deep) {
  19927. doIt(errors);
  19928. } else {
  19929. // if rule is required but the target object
  19930. // does not exist fail at the rule level and don't
  19931. // go deeper
  19932. if (rule.required && !data.value) {
  19933. if (rule.message) {
  19934. errors = [].concat(rule.message).map(complementError(rule));
  19935. } else if (options.error) {
  19936. errors = [options.error(rule, format(options.messages.required, rule.field))];
  19937. } else {
  19938. errors = [];
  19939. }
  19940. return doIt(errors);
  19941. }
  19942. var fieldsSchema = {};
  19943. if (rule.defaultField) {
  19944. for (var k in data.value) {
  19945. if (data.value.hasOwnProperty(k)) {
  19946. fieldsSchema[k] = rule.defaultField;
  19947. }
  19948. }
  19949. }
  19950. fieldsSchema = _objectSpread(_objectSpread({}, fieldsSchema), data.rule.fields);
  19951. for (var f in fieldsSchema) {
  19952. if (fieldsSchema.hasOwnProperty(f)) {
  19953. var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]];
  19954. fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f));
  19955. }
  19956. }
  19957. var schema = new Schema(fieldsSchema);
  19958. schema.messages(options.messages);
  19959. if (data.rule.options) {
  19960. data.rule.options.messages = options.messages;
  19961. data.rule.options.error = options.error;
  19962. }
  19963. schema.validate(data.value, data.rule.options || options, function (errs) {
  19964. var finalErrors = [];
  19965. if (errors && errors.length) {
  19966. finalErrors.push.apply(finalErrors, errors);
  19967. }
  19968. if (errs && errs.length) {
  19969. finalErrors.push.apply(finalErrors, errs);
  19970. }
  19971. doIt(finalErrors.length ? finalErrors : null);
  19972. });
  19973. }
  19974. }
  19975. var res;
  19976. if (rule.asyncValidator) {
  19977. res = rule.asyncValidator(rule, data.value, cb, data.source, options);
  19978. } else if (rule.validator) {
  19979. res = rule.validator(rule, data.value, cb, data.source, options);
  19980. if (res === true) {
  19981. cb();
  19982. } else if (res === false) {
  19983. cb(rule.message || "".concat(rule.field, " fails"));
  19984. } else if (res instanceof Array) {
  19985. cb(res);
  19986. } else if (res instanceof Error) {
  19987. cb(res.message);
  19988. }
  19989. }
  19990. if (res && res.then) {
  19991. res.then(function () {
  19992. return cb();
  19993. }, function (e) {
  19994. return cb(e);
  19995. });
  19996. }
  19997. }, function (results) {
  19998. complete(results);
  19999. });
  20000. },
  20001. getType: function getType(rule) {
  20002. if (rule.type === undefined && rule.pattern instanceof RegExp) {
  20003. rule.type = 'pattern';
  20004. }
  20005. if (typeof rule.validator !== 'function' && rule.type && !validators.hasOwnProperty(rule.type)) {
  20006. throw new Error(format('Unknown rule type %s', rule.type));
  20007. }
  20008. return rule.type || 'string';
  20009. },
  20010. getValidationMethod: function getValidationMethod(rule) {
  20011. if (typeof rule.validator === 'function') {
  20012. return rule.validator;
  20013. }
  20014. var keys = Object.keys(rule);
  20015. var messageIndex = keys.indexOf('message');
  20016. if (messageIndex !== -1) {
  20017. keys.splice(messageIndex, 1);
  20018. }
  20019. if (keys.length === 1 && keys[0] === 'required') {
  20020. return validators.required;
  20021. }
  20022. return validators[this.getType(rule)] || false;
  20023. }
  20024. };
  20025. Schema.register = function register(type, validator) {
  20026. if (typeof validator !== 'function') {
  20027. throw new Error('Cannot register a validator by type, validator is not a function');
  20028. }
  20029. validators[type] = validator;
  20030. };
  20031. Schema.warning = warning;
  20032. Schema.messages = messages;
  20033. var _default = Schema; // # sourceMappingURL=index.js.map
  20034. exports.default = _default;
  20035. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../../Downloads/HBuilderX.3.8.7.20230703/HBuilderX/plugins/uniapp-cli/node_modules/node-libs-browser/mock/process.js */ 300)))
  20036. /***/ }),
  20037. /* 300 */
  20038. /*!********************************************************!*\
  20039. !*** ./node_modules/node-libs-browser/mock/process.js ***!
  20040. \********************************************************/
  20041. /*! no static exports found */
  20042. /***/ (function(module, exports, __webpack_require__) {
  20043. exports.nextTick = function nextTick(fn) {
  20044. var args = Array.prototype.slice.call(arguments);
  20045. args.shift();
  20046. setTimeout(function () {
  20047. fn.apply(null, args);
  20048. }, 0);
  20049. };
  20050. exports.platform = exports.arch =
  20051. exports.execPath = exports.title = 'browser';
  20052. exports.pid = 1;
  20053. exports.browser = true;
  20054. exports.env = {};
  20055. exports.argv = [];
  20056. exports.binding = function (name) {
  20057. throw new Error('No such module. (Possibly not yet loaded)')
  20058. };
  20059. (function () {
  20060. var cwd = '/';
  20061. var path;
  20062. exports.cwd = function () { return cwd };
  20063. exports.chdir = function (dir) {
  20064. if (!path) path = __webpack_require__(/*! path */ 301);
  20065. cwd = path.resolve(dir, cwd);
  20066. };
  20067. })();
  20068. exports.exit = exports.kill =
  20069. exports.umask = exports.dlopen =
  20070. exports.uptime = exports.memoryUsage =
  20071. exports.uvCounters = function() {};
  20072. exports.features = {};
  20073. /***/ }),
  20074. /* 301 */
  20075. /*!***********************************************!*\
  20076. !*** ./node_modules/path-browserify/index.js ***!
  20077. \***********************************************/
  20078. /*! no static exports found */
  20079. /***/ (function(module, exports, __webpack_require__) {
  20080. /* WEBPACK VAR INJECTION */(function(process) {// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
  20081. // backported and transplited with Babel, with backwards-compat fixes
  20082. // Copyright Joyent, Inc. and other Node contributors.
  20083. //
  20084. // Permission is hereby granted, free of charge, to any person obtaining a
  20085. // copy of this software and associated documentation files (the
  20086. // "Software"), to deal in the Software without restriction, including
  20087. // without limitation the rights to use, copy, modify, merge, publish,
  20088. // distribute, sublicense, and/or sell copies of the Software, and to permit
  20089. // persons to whom the Software is furnished to do so, subject to the
  20090. // following conditions:
  20091. //
  20092. // The above copyright notice and this permission notice shall be included
  20093. // in all copies or substantial portions of the Software.
  20094. //
  20095. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  20096. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  20097. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  20098. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  20099. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  20100. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  20101. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  20102. // resolves . and .. elements in a path array with directory names there
  20103. // must be no slashes, empty elements, or device names (c:\) in the array
  20104. // (so also no leading and trailing slashes - it does not distinguish
  20105. // relative and absolute paths)
  20106. function normalizeArray(parts, allowAboveRoot) {
  20107. // if the path tries to go above the root, `up` ends up > 0
  20108. var up = 0;
  20109. for (var i = parts.length - 1; i >= 0; i--) {
  20110. var last = parts[i];
  20111. if (last === '.') {
  20112. parts.splice(i, 1);
  20113. } else if (last === '..') {
  20114. parts.splice(i, 1);
  20115. up++;
  20116. } else if (up) {
  20117. parts.splice(i, 1);
  20118. up--;
  20119. }
  20120. }
  20121. // if the path is allowed to go above the root, restore leading ..s
  20122. if (allowAboveRoot) {
  20123. for (; up--; up) {
  20124. parts.unshift('..');
  20125. }
  20126. }
  20127. return parts;
  20128. }
  20129. // path.resolve([from ...], to)
  20130. // posix version
  20131. exports.resolve = function() {
  20132. var resolvedPath = '',
  20133. resolvedAbsolute = false;
  20134. for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
  20135. var path = (i >= 0) ? arguments[i] : process.cwd();
  20136. // Skip empty and invalid entries
  20137. if (typeof path !== 'string') {
  20138. throw new TypeError('Arguments to path.resolve must be strings');
  20139. } else if (!path) {
  20140. continue;
  20141. }
  20142. resolvedPath = path + '/' + resolvedPath;
  20143. resolvedAbsolute = path.charAt(0) === '/';
  20144. }
  20145. // At this point the path should be resolved to a full absolute path, but
  20146. // handle relative paths to be safe (might happen when process.cwd() fails)
  20147. // Normalize the path
  20148. resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
  20149. return !!p;
  20150. }), !resolvedAbsolute).join('/');
  20151. return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
  20152. };
  20153. // path.normalize(path)
  20154. // posix version
  20155. exports.normalize = function(path) {
  20156. var isAbsolute = exports.isAbsolute(path),
  20157. trailingSlash = substr(path, -1) === '/';
  20158. // Normalize the path
  20159. path = normalizeArray(filter(path.split('/'), function(p) {
  20160. return !!p;
  20161. }), !isAbsolute).join('/');
  20162. if (!path && !isAbsolute) {
  20163. path = '.';
  20164. }
  20165. if (path && trailingSlash) {
  20166. path += '/';
  20167. }
  20168. return (isAbsolute ? '/' : '') + path;
  20169. };
  20170. // posix version
  20171. exports.isAbsolute = function(path) {
  20172. return path.charAt(0) === '/';
  20173. };
  20174. // posix version
  20175. exports.join = function() {
  20176. var paths = Array.prototype.slice.call(arguments, 0);
  20177. return exports.normalize(filter(paths, function(p, index) {
  20178. if (typeof p !== 'string') {
  20179. throw new TypeError('Arguments to path.join must be strings');
  20180. }
  20181. return p;
  20182. }).join('/'));
  20183. };
  20184. // path.relative(from, to)
  20185. // posix version
  20186. exports.relative = function(from, to) {
  20187. from = exports.resolve(from).substr(1);
  20188. to = exports.resolve(to).substr(1);
  20189. function trim(arr) {
  20190. var start = 0;
  20191. for (; start < arr.length; start++) {
  20192. if (arr[start] !== '') break;
  20193. }
  20194. var end = arr.length - 1;
  20195. for (; end >= 0; end--) {
  20196. if (arr[end] !== '') break;
  20197. }
  20198. if (start > end) return [];
  20199. return arr.slice(start, end - start + 1);
  20200. }
  20201. var fromParts = trim(from.split('/'));
  20202. var toParts = trim(to.split('/'));
  20203. var length = Math.min(fromParts.length, toParts.length);
  20204. var samePartsLength = length;
  20205. for (var i = 0; i < length; i++) {
  20206. if (fromParts[i] !== toParts[i]) {
  20207. samePartsLength = i;
  20208. break;
  20209. }
  20210. }
  20211. var outputParts = [];
  20212. for (var i = samePartsLength; i < fromParts.length; i++) {
  20213. outputParts.push('..');
  20214. }
  20215. outputParts = outputParts.concat(toParts.slice(samePartsLength));
  20216. return outputParts.join('/');
  20217. };
  20218. exports.sep = '/';
  20219. exports.delimiter = ':';
  20220. exports.dirname = function (path) {
  20221. if (typeof path !== 'string') path = path + '';
  20222. if (path.length === 0) return '.';
  20223. var code = path.charCodeAt(0);
  20224. var hasRoot = code === 47 /*/*/;
  20225. var end = -1;
  20226. var matchedSlash = true;
  20227. for (var i = path.length - 1; i >= 1; --i) {
  20228. code = path.charCodeAt(i);
  20229. if (code === 47 /*/*/) {
  20230. if (!matchedSlash) {
  20231. end = i;
  20232. break;
  20233. }
  20234. } else {
  20235. // We saw the first non-path separator
  20236. matchedSlash = false;
  20237. }
  20238. }
  20239. if (end === -1) return hasRoot ? '/' : '.';
  20240. if (hasRoot && end === 1) {
  20241. // return '//';
  20242. // Backwards-compat fix:
  20243. return '/';
  20244. }
  20245. return path.slice(0, end);
  20246. };
  20247. function basename(path) {
  20248. if (typeof path !== 'string') path = path + '';
  20249. var start = 0;
  20250. var end = -1;
  20251. var matchedSlash = true;
  20252. var i;
  20253. for (i = path.length - 1; i >= 0; --i) {
  20254. if (path.charCodeAt(i) === 47 /*/*/) {
  20255. // If we reached a path separator that was not part of a set of path
  20256. // separators at the end of the string, stop now
  20257. if (!matchedSlash) {
  20258. start = i + 1;
  20259. break;
  20260. }
  20261. } else if (end === -1) {
  20262. // We saw the first non-path separator, mark this as the end of our
  20263. // path component
  20264. matchedSlash = false;
  20265. end = i + 1;
  20266. }
  20267. }
  20268. if (end === -1) return '';
  20269. return path.slice(start, end);
  20270. }
  20271. // Uses a mixed approach for backwards-compatibility, as ext behavior changed
  20272. // in new Node.js versions, so only basename() above is backported here
  20273. exports.basename = function (path, ext) {
  20274. var f = basename(path);
  20275. if (ext && f.substr(-1 * ext.length) === ext) {
  20276. f = f.substr(0, f.length - ext.length);
  20277. }
  20278. return f;
  20279. };
  20280. exports.extname = function (path) {
  20281. if (typeof path !== 'string') path = path + '';
  20282. var startDot = -1;
  20283. var startPart = 0;
  20284. var end = -1;
  20285. var matchedSlash = true;
  20286. // Track the state of characters (if any) we see before our first dot and
  20287. // after any path separator we find
  20288. var preDotState = 0;
  20289. for (var i = path.length - 1; i >= 0; --i) {
  20290. var code = path.charCodeAt(i);
  20291. if (code === 47 /*/*/) {
  20292. // If we reached a path separator that was not part of a set of path
  20293. // separators at the end of the string, stop now
  20294. if (!matchedSlash) {
  20295. startPart = i + 1;
  20296. break;
  20297. }
  20298. continue;
  20299. }
  20300. if (end === -1) {
  20301. // We saw the first non-path separator, mark this as the end of our
  20302. // extension
  20303. matchedSlash = false;
  20304. end = i + 1;
  20305. }
  20306. if (code === 46 /*.*/) {
  20307. // If this is our first dot, mark it as the start of our extension
  20308. if (startDot === -1)
  20309. startDot = i;
  20310. else if (preDotState !== 1)
  20311. preDotState = 1;
  20312. } else if (startDot !== -1) {
  20313. // We saw a non-dot and non-path separator before our dot, so we should
  20314. // have a good chance at having a non-empty extension
  20315. preDotState = -1;
  20316. }
  20317. }
  20318. if (startDot === -1 || end === -1 ||
  20319. // We saw a non-dot character immediately before the dot
  20320. preDotState === 0 ||
  20321. // The (right-most) trimmed path component is exactly '..'
  20322. preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
  20323. return '';
  20324. }
  20325. return path.slice(startDot, end);
  20326. };
  20327. function filter (xs, f) {
  20328. if (xs.filter) return xs.filter(f);
  20329. var res = [];
  20330. for (var i = 0; i < xs.length; i++) {
  20331. if (f(xs[i], i, xs)) res.push(xs[i]);
  20332. }
  20333. return res;
  20334. }
  20335. // String.prototype.substr - negative index don't work in IE8
  20336. var substr = 'ab'.substr(-1) === 'b'
  20337. ? function (str, start, len) { return str.substr(start, len) }
  20338. : function (str, start, len) {
  20339. if (start < 0) start = str.length + start;
  20340. return str.substr(start, len);
  20341. }
  20342. ;
  20343. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ 300)))
  20344. /***/ }),
  20345. /* 302 */,
  20346. /* 303 */,
  20347. /* 304 */,
  20348. /* 305 */,
  20349. /* 306 */,
  20350. /* 307 */
  20351. /*!*************************************************************************************************************!*\
  20352. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-line/props.js ***!
  20353. \*************************************************************************************************************/
  20354. /*! no static exports found */
  20355. /***/ (function(module, exports, __webpack_require__) {
  20356. "use strict";
  20357. /* WEBPACK VAR INJECTION */(function(uni) {
  20358. Object.defineProperty(exports, "__esModule", {
  20359. value: true
  20360. });
  20361. exports.default = void 0;
  20362. var _default = {
  20363. props: {
  20364. color: {
  20365. type: String,
  20366. default: uni.$u.props.line.color
  20367. },
  20368. // 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等
  20369. length: {
  20370. type: [String, Number],
  20371. default: uni.$u.props.line.length
  20372. },
  20373. // 线条方向,col-竖向,row-横向
  20374. direction: {
  20375. type: String,
  20376. default: uni.$u.props.line.direction
  20377. },
  20378. // 是否显示细边框
  20379. hairline: {
  20380. type: Boolean,
  20381. default: uni.$u.props.line.hairline
  20382. },
  20383. // 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px"
  20384. margin: {
  20385. type: [String, Number],
  20386. default: uni.$u.props.line.margin
  20387. },
  20388. // 是否虚线,true-虚线,false-实线
  20389. dashed: {
  20390. type: Boolean,
  20391. default: uni.$u.props.line.dashed
  20392. }
  20393. }
  20394. };
  20395. exports.default = _default;
  20396. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20397. /***/ }),
  20398. /* 308 */,
  20399. /* 309 */,
  20400. /* 310 */,
  20401. /* 311 */,
  20402. /* 312 */,
  20403. /* 313 */,
  20404. /* 314 */,
  20405. /* 315 */,
  20406. /* 316 */,
  20407. /* 317 */,
  20408. /* 318 */,
  20409. /* 319 */,
  20410. /* 320 */,
  20411. /* 321 */,
  20412. /* 322 */
  20413. /*!****************************************************************************************************************!*\
  20414. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-overlay/props.js ***!
  20415. \****************************************************************************************************************/
  20416. /*! no static exports found */
  20417. /***/ (function(module, exports, __webpack_require__) {
  20418. "use strict";
  20419. /* WEBPACK VAR INJECTION */(function(uni) {
  20420. Object.defineProperty(exports, "__esModule", {
  20421. value: true
  20422. });
  20423. exports.default = void 0;
  20424. var _default = {
  20425. props: {
  20426. // 是否显示遮罩
  20427. show: {
  20428. type: Boolean,
  20429. default: uni.$u.props.overlay.show
  20430. },
  20431. // 层级z-index
  20432. zIndex: {
  20433. type: [String, Number],
  20434. default: uni.$u.props.overlay.zIndex
  20435. },
  20436. // 遮罩的过渡时间,单位为ms
  20437. duration: {
  20438. type: [String, Number],
  20439. default: uni.$u.props.overlay.duration
  20440. },
  20441. // 不透明度值,当做rgba的第四个参数
  20442. opacity: {
  20443. type: [String, Number],
  20444. default: uni.$u.props.overlay.opacity
  20445. }
  20446. }
  20447. };
  20448. exports.default = _default;
  20449. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20450. /***/ }),
  20451. /* 323 */,
  20452. /* 324 */,
  20453. /* 325 */,
  20454. /* 326 */,
  20455. /* 327 */,
  20456. /* 328 */,
  20457. /* 329 */,
  20458. /* 330 */
  20459. /*!*******************************************************************************************************************!*\
  20460. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-transition/props.js ***!
  20461. \*******************************************************************************************************************/
  20462. /*! no static exports found */
  20463. /***/ (function(module, exports, __webpack_require__) {
  20464. "use strict";
  20465. /* WEBPACK VAR INJECTION */(function(uni) {
  20466. Object.defineProperty(exports, "__esModule", {
  20467. value: true
  20468. });
  20469. exports.default = void 0;
  20470. var _default = {
  20471. props: {
  20472. // 是否展示组件
  20473. show: {
  20474. type: Boolean,
  20475. default: uni.$u.props.transition.show
  20476. },
  20477. // 使用的动画模式
  20478. mode: {
  20479. type: String,
  20480. default: uni.$u.props.transition.mode
  20481. },
  20482. // 动画的执行时间,单位ms
  20483. duration: {
  20484. type: [String, Number],
  20485. default: uni.$u.props.transition.duration
  20486. },
  20487. // 使用的动画过渡函数
  20488. timingFunction: {
  20489. type: String,
  20490. default: uni.$u.props.transition.timingFunction
  20491. }
  20492. }
  20493. };
  20494. exports.default = _default;
  20495. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20496. /***/ }),
  20497. /* 331 */
  20498. /*!************************************************************************************************************************!*\
  20499. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-transition/transition.js ***!
  20500. \************************************************************************************************************************/
  20501. /*! no static exports found */
  20502. /***/ (function(module, exports, __webpack_require__) {
  20503. "use strict";
  20504. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20505. Object.defineProperty(exports, "__esModule", {
  20506. value: true
  20507. });
  20508. exports.default = void 0;
  20509. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 59));
  20510. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 61));
  20511. var _nvueAniMap = _interopRequireDefault(__webpack_require__(/*! ./nvue.ani-map.js */ 332));
  20512. // 定义一个一定时间后自动成功的promise,让调用nextTick方法处,进入下一个then方法
  20513. var nextTick = function nextTick() {
  20514. return new Promise(function (resolve) {
  20515. return setTimeout(resolve, 1000 / 50);
  20516. });
  20517. };
  20518. // nvue动画模块实现细节抽离在外部文件
  20519. // 定义类名,通过给元素动态切换类名,赋予元素一定的css动画样式
  20520. var getClassNames = function getClassNames(name) {
  20521. return {
  20522. enter: "u-".concat(name, "-enter u-").concat(name, "-enter-active"),
  20523. 'enter-to': "u-".concat(name, "-enter-to u-").concat(name, "-enter-active"),
  20524. leave: "u-".concat(name, "-leave u-").concat(name, "-leave-active"),
  20525. 'leave-to': "u-".concat(name, "-leave-to u-").concat(name, "-leave-active")
  20526. };
  20527. };
  20528. var _default = {
  20529. methods: {
  20530. // 组件被点击发出事件
  20531. clickHandler: function clickHandler() {
  20532. this.$emit('click');
  20533. },
  20534. // vue版本的组件进场处理
  20535. vueEnter: function vueEnter() {
  20536. var _this = this;
  20537. // 动画进入时的类名
  20538. var classNames = getClassNames(this.mode);
  20539. // 定义状态和发出动画进入前事件
  20540. this.status = 'enter';
  20541. this.$emit('beforeEnter');
  20542. this.inited = true;
  20543. this.display = true;
  20544. this.classes = classNames.enter;
  20545. this.$nextTick( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  20546. return _regenerator.default.wrap(function _callee$(_context) {
  20547. while (1) {
  20548. switch (_context.prev = _context.next) {
  20549. case 0:
  20550. // 标识动画尚未结束
  20551. _this.$emit('enter');
  20552. _this.transitionEnded = false;
  20553. // 组件动画进入后触发的事件
  20554. _this.$emit('afterEnter');
  20555. // 赋予组件enter-to类名
  20556. _this.classes = classNames['enter-to'];
  20557. case 4:
  20558. case "end":
  20559. return _context.stop();
  20560. }
  20561. }
  20562. }, _callee);
  20563. })));
  20564. },
  20565. // 动画离场处理
  20566. vueLeave: function vueLeave() {
  20567. var _this2 = this;
  20568. // 如果不是展示状态,无需执行逻辑
  20569. if (!this.display) return;
  20570. var classNames = getClassNames(this.mode);
  20571. // 标记离开状态和发出事件
  20572. this.status = 'leave';
  20573. this.$emit('beforeLeave');
  20574. // 获得类名
  20575. this.classes = classNames.leave;
  20576. this.$nextTick(function () {
  20577. // 动画正在离场的状态
  20578. _this2.transitionEnded = false;
  20579. _this2.$emit('leave');
  20580. // 组件执行动画,到了执行的执行时间后,执行一些额外处理
  20581. setTimeout(_this2.onTransitionEnd, _this2.duration);
  20582. _this2.classes = classNames['leave-to'];
  20583. });
  20584. },
  20585. // 完成过渡后触发
  20586. onTransitionEnd: function onTransitionEnd() {
  20587. // 如果已经是结束的状态,无需再处理
  20588. if (this.transitionEnded) return;
  20589. this.transitionEnded = true;
  20590. // 发出组件动画执行后的事件
  20591. this.$emit(this.status === 'leave' ? 'afterLeave' : 'afterEnter');
  20592. if (!this.show && this.display) {
  20593. this.display = false;
  20594. this.inited = false;
  20595. }
  20596. }
  20597. }
  20598. };
  20599. exports.default = _default;
  20600. /***/ }),
  20601. /* 332 */
  20602. /*!**************************************************************************************************************************!*\
  20603. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-transition/nvue.ani-map.js ***!
  20604. \**************************************************************************************************************************/
  20605. /*! no static exports found */
  20606. /***/ (function(module, exports, __webpack_require__) {
  20607. "use strict";
  20608. Object.defineProperty(exports, "__esModule", {
  20609. value: true
  20610. });
  20611. exports.default = void 0;
  20612. var _default = {
  20613. fade: {
  20614. enter: {
  20615. opacity: 0
  20616. },
  20617. 'enter-to': {
  20618. opacity: 1
  20619. },
  20620. leave: {
  20621. opacity: 1
  20622. },
  20623. 'leave-to': {
  20624. opacity: 0
  20625. }
  20626. },
  20627. 'fade-up': {
  20628. enter: {
  20629. opacity: 0,
  20630. transform: 'translateY(100%)'
  20631. },
  20632. 'enter-to': {
  20633. opacity: 1,
  20634. transform: 'translateY(0)'
  20635. },
  20636. leave: {
  20637. opacity: 1,
  20638. transform: 'translateY(0)'
  20639. },
  20640. 'leave-to': {
  20641. opacity: 0,
  20642. transform: 'translateY(100%)'
  20643. }
  20644. },
  20645. 'fade-down': {
  20646. enter: {
  20647. opacity: 0,
  20648. transform: 'translateY(-100%)'
  20649. },
  20650. 'enter-to': {
  20651. opacity: 1,
  20652. transform: 'translateY(0)'
  20653. },
  20654. leave: {
  20655. opacity: 1,
  20656. transform: 'translateY(0)'
  20657. },
  20658. 'leave-to': {
  20659. opacity: 0,
  20660. transform: 'translateY(-100%)'
  20661. }
  20662. },
  20663. 'fade-left': {
  20664. enter: {
  20665. opacity: 0,
  20666. transform: 'translateX(-100%)'
  20667. },
  20668. 'enter-to': {
  20669. opacity: 1,
  20670. transform: 'translateY(0)'
  20671. },
  20672. leave: {
  20673. opacity: 1,
  20674. transform: 'translateY(0)'
  20675. },
  20676. 'leave-to': {
  20677. opacity: 0,
  20678. transform: 'translateX(-100%)'
  20679. }
  20680. },
  20681. 'fade-right': {
  20682. enter: {
  20683. opacity: 0,
  20684. transform: 'translateX(100%)'
  20685. },
  20686. 'enter-to': {
  20687. opacity: 1,
  20688. transform: 'translateY(0)'
  20689. },
  20690. leave: {
  20691. opacity: 1,
  20692. transform: 'translateY(0)'
  20693. },
  20694. 'leave-to': {
  20695. opacity: 0,
  20696. transform: 'translateX(100%)'
  20697. }
  20698. },
  20699. 'slide-up': {
  20700. enter: {
  20701. transform: 'translateY(100%)'
  20702. },
  20703. 'enter-to': {
  20704. transform: 'translateY(0)'
  20705. },
  20706. leave: {
  20707. transform: 'translateY(0)'
  20708. },
  20709. 'leave-to': {
  20710. transform: 'translateY(100%)'
  20711. }
  20712. },
  20713. 'slide-down': {
  20714. enter: {
  20715. transform: 'translateY(-100%)'
  20716. },
  20717. 'enter-to': {
  20718. transform: 'translateY(0)'
  20719. },
  20720. leave: {
  20721. transform: 'translateY(0)'
  20722. },
  20723. 'leave-to': {
  20724. transform: 'translateY(-100%)'
  20725. }
  20726. },
  20727. 'slide-left': {
  20728. enter: {
  20729. transform: 'translateX(-100%)'
  20730. },
  20731. 'enter-to': {
  20732. transform: 'translateY(0)'
  20733. },
  20734. leave: {
  20735. transform: 'translateY(0)'
  20736. },
  20737. 'leave-to': {
  20738. transform: 'translateX(-100%)'
  20739. }
  20740. },
  20741. 'slide-right': {
  20742. enter: {
  20743. transform: 'translateX(100%)'
  20744. },
  20745. 'enter-to': {
  20746. transform: 'translateY(0)'
  20747. },
  20748. leave: {
  20749. transform: 'translateY(0)'
  20750. },
  20751. 'leave-to': {
  20752. transform: 'translateX(100%)'
  20753. }
  20754. },
  20755. zoom: {
  20756. enter: {
  20757. transform: 'scale(0.95)'
  20758. },
  20759. 'enter-to': {
  20760. transform: 'scale(1)'
  20761. },
  20762. leave: {
  20763. transform: 'scale(1)'
  20764. },
  20765. 'leave-to': {
  20766. transform: 'scale(0.95)'
  20767. }
  20768. },
  20769. 'fade-zoom': {
  20770. enter: {
  20771. opacity: 0,
  20772. transform: 'scale(0.95)'
  20773. },
  20774. 'enter-to': {
  20775. opacity: 1,
  20776. transform: 'scale(1)'
  20777. },
  20778. leave: {
  20779. opacity: 1,
  20780. transform: 'scale(1)'
  20781. },
  20782. 'leave-to': {
  20783. opacity: 0,
  20784. transform: 'scale(0.95)'
  20785. }
  20786. }
  20787. };
  20788. exports.default = _default;
  20789. /***/ }),
  20790. /* 333 */,
  20791. /* 334 */,
  20792. /* 335 */,
  20793. /* 336 */,
  20794. /* 337 */,
  20795. /* 338 */,
  20796. /* 339 */,
  20797. /* 340 */
  20798. /*!*******************************************************************************************************************!*\
  20799. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-status-bar/props.js ***!
  20800. \*******************************************************************************************************************/
  20801. /*! no static exports found */
  20802. /***/ (function(module, exports, __webpack_require__) {
  20803. "use strict";
  20804. /* WEBPACK VAR INJECTION */(function(uni) {
  20805. Object.defineProperty(exports, "__esModule", {
  20806. value: true
  20807. });
  20808. exports.default = void 0;
  20809. var _default = {
  20810. props: {
  20811. bgColor: {
  20812. type: String,
  20813. default: uni.$u.props.statusBar.bgColor
  20814. }
  20815. }
  20816. };
  20817. exports.default = _default;
  20818. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20819. /***/ }),
  20820. /* 341 */,
  20821. /* 342 */,
  20822. /* 343 */,
  20823. /* 344 */,
  20824. /* 345 */,
  20825. /* 346 */,
  20826. /* 347 */,
  20827. /* 348 */
  20828. /*!********************************************************************************************************************!*\
  20829. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-safe-bottom/props.js ***!
  20830. \********************************************************************************************************************/
  20831. /*! no static exports found */
  20832. /***/ (function(module, exports, __webpack_require__) {
  20833. "use strict";
  20834. Object.defineProperty(exports, "__esModule", {
  20835. value: true
  20836. });
  20837. exports.default = void 0;
  20838. var _default = {
  20839. props: {}
  20840. };
  20841. exports.default = _default;
  20842. /***/ }),
  20843. /* 349 */,
  20844. /* 350 */,
  20845. /* 351 */,
  20846. /* 352 */,
  20847. /* 353 */,
  20848. /* 354 */,
  20849. /* 355 */,
  20850. /* 356 */,
  20851. /* 357 */,
  20852. /* 358 */,
  20853. /* 359 */,
  20854. /* 360 */,
  20855. /* 361 */,
  20856. /* 362 */,
  20857. /* 363 */,
  20858. /* 364 */,
  20859. /* 365 */,
  20860. /* 366 */,
  20861. /* 367 */,
  20862. /* 368 */,
  20863. /* 369 */,
  20864. /* 370 */,
  20865. /* 371 */,
  20866. /* 372 */,
  20867. /* 373 */,
  20868. /* 374 */,
  20869. /* 375 */,
  20870. /* 376 */,
  20871. /* 377 */
  20872. /*!*********************************************************************************************************************!*\
  20873. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-loading-icon/props.js ***!
  20874. \*********************************************************************************************************************/
  20875. /*! no static exports found */
  20876. /***/ (function(module, exports, __webpack_require__) {
  20877. "use strict";
  20878. /* WEBPACK VAR INJECTION */(function(uni) {
  20879. Object.defineProperty(exports, "__esModule", {
  20880. value: true
  20881. });
  20882. exports.default = void 0;
  20883. var _default = {
  20884. props: {
  20885. // 是否显示组件
  20886. show: {
  20887. type: Boolean,
  20888. default: uni.$u.props.loadingIcon.show
  20889. },
  20890. // 颜色
  20891. color: {
  20892. type: String,
  20893. default: uni.$u.props.loadingIcon.color
  20894. },
  20895. // 提示文字颜色
  20896. textColor: {
  20897. type: String,
  20898. default: uni.$u.props.loadingIcon.textColor
  20899. },
  20900. // 文字和图标是否垂直排列
  20901. vertical: {
  20902. type: Boolean,
  20903. default: uni.$u.props.loadingIcon.vertical
  20904. },
  20905. // 模式选择,circle-圆形,spinner-花朵形,semicircle-半圆形
  20906. mode: {
  20907. type: String,
  20908. default: uni.$u.props.loadingIcon.mode
  20909. },
  20910. // 图标大小,单位默认px
  20911. size: {
  20912. type: [String, Number],
  20913. default: uni.$u.props.loadingIcon.size
  20914. },
  20915. // 文字大小
  20916. textSize: {
  20917. type: [String, Number],
  20918. default: uni.$u.props.loadingIcon.textSize
  20919. },
  20920. // 文字内容
  20921. text: {
  20922. type: [String, Number],
  20923. default: uni.$u.props.loadingIcon.text
  20924. },
  20925. // 动画模式
  20926. timingFunction: {
  20927. type: String,
  20928. default: uni.$u.props.loadingIcon.timingFunction
  20929. },
  20930. // 动画执行周期时间
  20931. duration: {
  20932. type: [String, Number],
  20933. default: uni.$u.props.loadingIcon.duration
  20934. },
  20935. // mode=circle时的暗边颜色
  20936. inactiveColor: {
  20937. type: String,
  20938. default: uni.$u.props.loadingIcon.inactiveColor
  20939. }
  20940. }
  20941. };
  20942. exports.default = _default;
  20943. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20944. /***/ }),
  20945. /* 378 */,
  20946. /* 379 */,
  20947. /* 380 */,
  20948. /* 381 */,
  20949. /* 382 */,
  20950. /* 383 */,
  20951. /* 384 */,
  20952. /* 385 */
  20953. /*!*************************************************************************************************************************!*\
  20954. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/node_modules/uview-ui/components/u-swiper-indicator/props.js ***!
  20955. \*************************************************************************************************************************/
  20956. /*! no static exports found */
  20957. /***/ (function(module, exports, __webpack_require__) {
  20958. "use strict";
  20959. /* WEBPACK VAR INJECTION */(function(uni) {
  20960. Object.defineProperty(exports, "__esModule", {
  20961. value: true
  20962. });
  20963. exports.default = void 0;
  20964. var _default = {
  20965. props: {
  20966. // 轮播的长度
  20967. length: {
  20968. type: [String, Number],
  20969. default: uni.$u.props.swiperIndicator.length
  20970. },
  20971. // 当前处于活动状态的轮播的索引
  20972. current: {
  20973. type: [String, Number],
  20974. default: uni.$u.props.swiperIndicator.current
  20975. },
  20976. // 指示器非激活颜色
  20977. indicatorActiveColor: {
  20978. type: String,
  20979. default: uni.$u.props.swiperIndicator.indicatorActiveColor
  20980. },
  20981. // 指示器的激活颜色
  20982. indicatorInactiveColor: {
  20983. type: String,
  20984. default: uni.$u.props.swiperIndicator.indicatorInactiveColor
  20985. },
  20986. // 指示器模式,line-线型,dot-点型
  20987. indicatorMode: {
  20988. type: String,
  20989. default: uni.$u.props.swiperIndicator.indicatorMode
  20990. }
  20991. }
  20992. };
  20993. exports.default = _default;
  20994. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20995. /***/ }),
  20996. /* 386 */,
  20997. /* 387 */,
  20998. /* 388 */,
  20999. /* 389 */,
  21000. /* 390 */,
  21001. /* 391 */
  21002. /*!*******************************************************************************!*\
  21003. !*** C:/Users/lenovo/Desktop/chain-store/chain_jje_uniapp/api/login/login.js ***!
  21004. \*******************************************************************************/
  21005. /*! no static exports found */
  21006. /***/ (function(module, exports, __webpack_require__) {
  21007. "use strict";
  21008. /* WEBPACK VAR INJECTION */(function(uni) {
  21009. Object.defineProperty(exports, "__esModule", {
  21010. value: true
  21011. });
  21012. exports.wechatRetrieveAccountPwdLogin = exports.wechatRegister = exports.validateSmsCode = exports.saveWechatUser = exports.realNameAuthLogin = exports.phoneIsExist = exports.passwordByPhone = exports.idCardIsExist = exports.getWechatUserPhoneNumber = exports.getSmsCode = void 0;
  21013. var http = uni.$u.http;
  21014. // post请求,保存用户信息
  21015. var saveWechatUser = function saveWechatUser(params) {
  21016. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  21017. return http.post('/auth/wechat/saveWeChatUserInfo', params, config);
  21018. };
  21019. // post请求,获取微信电话号码
  21020. exports.saveWechatUser = saveWechatUser;
  21021. var getWechatUserPhoneNumber = function getWechatUserPhoneNumber(params) {
  21022. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  21023. return http.post('/auth/wechat/getWechatUserPhoneNumber', params, config);
  21024. };
  21025. // post请求,验证手机号码是否被注册
  21026. exports.getWechatUserPhoneNumber = getWechatUserPhoneNumber;
  21027. var phoneIsExist = function phoneIsExist(params) {
  21028. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  21029. return http.post('/member/wechat/phoneIsExist', params, config);
  21030. };
  21031. // post请求,新微新手机绑定
  21032. exports.phoneIsExist = phoneIsExist;
  21033. var wechatRegister = function wechatRegister(params) {
  21034. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  21035. return http.post('/auth/xcxRegister', params, config);
  21036. };
  21037. // get请求,获取手机验证码
  21038. exports.wechatRegister = wechatRegister;
  21039. var getSmsCode = function getSmsCode(params) {
  21040. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  21041. return http.get('/resource/sms/code', params, config);
  21042. };
  21043. // post请求,验证手机验证码
  21044. exports.getSmsCode = getSmsCode;
  21045. var validateSmsCode = function validateSmsCode(params) {
  21046. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  21047. return http.post('/member/wechat/validateSmsCode', params, config);
  21048. };
  21049. // post请求,找回账号密码登录
  21050. exports.validateSmsCode = validateSmsCode;
  21051. var wechatRetrieveAccountPwdLogin = function wechatRetrieveAccountPwdLogin(params) {
  21052. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  21053. return http.post('/auth/xcxRetrieveMemberByPwd', params, config);
  21054. };
  21055. // post请求,实名认证登录(新微信老手机)
  21056. exports.wechatRetrieveAccountPwdLogin = wechatRetrieveAccountPwdLogin;
  21057. var realNameAuthLogin = function realNameAuthLogin(params) {
  21058. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  21059. return http.post('/auth/xcxRetrieveMember', params, config);
  21060. };
  21061. // post请求,验证身份证是滞存在
  21062. exports.realNameAuthLogin = realNameAuthLogin;
  21063. var idCardIsExist = function idCardIsExist(params) {
  21064. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  21065. return http.post('/member/wechat/idCardIsExist', params, config);
  21066. };
  21067. // post请求验证手机找回密码
  21068. exports.idCardIsExist = idCardIsExist;
  21069. var passwordByPhone = function passwordByPhone(params) {
  21070. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  21071. return http.post('/member/wechat/passwordByPhone', params, config);
  21072. };
  21073. exports.passwordByPhone = passwordByPhone;
  21074. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21075. /***/ })
  21076. ]]);
  21077. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map