vendor.js 882 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],[
  2. /* 0 */,
  3. /* 1 */
  4. /*!*********************************************************!*\
  5. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js ***!
  6. \*********************************************************/
  7. /*! no static exports found */
  8. /***/ (function(module, exports, __webpack_require__) {
  9. "use strict";
  10. Object.defineProperty(exports, "__esModule", {
  11. value: true
  12. });
  13. exports.default = void 0;
  14. var objectKeys = ['qy', 'env', 'error', 'version', 'lanDebug', 'cloud', 'serviceMarket', 'router', 'worklet'];
  15. var singlePageDisableKey = ['lanDebug', 'router', 'worklet'];
  16. var target = typeof globalThis !== 'undefined' ? globalThis : function () {
  17. return this;
  18. }();
  19. var key = ['w', 'x'].join('');
  20. var oldWx = target[key];
  21. var launchOption = oldWx.getLaunchOptionsSync ? oldWx.getLaunchOptionsSync() : null;
  22. function isWxKey(key) {
  23. if (launchOption && launchOption.scene === 1154 && singlePageDisableKey.includes(key)) {
  24. return false;
  25. }
  26. return objectKeys.indexOf(key) > -1 || typeof oldWx[key] === 'function';
  27. }
  28. function initWx() {
  29. var newWx = {};
  30. for (var _key in oldWx) {
  31. if (isWxKey(_key)) {
  32. // TODO wrapper function
  33. newWx[_key] = oldWx[_key];
  34. }
  35. }
  36. return newWx;
  37. }
  38. target[key] = initWx();
  39. var _default = target[key];
  40. exports.default = _default;
  41. /***/ }),
  42. /* 2 */
  43. /*!************************************************************!*\
  44. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  45. \************************************************************/
  46. /*! no static exports found */
  47. /***/ (function(module, exports, __webpack_require__) {
  48. "use strict";
  49. /* WEBPACK VAR INJECTION */(function(wx, global) {
  50. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  51. Object.defineProperty(exports, "__esModule", {
  52. value: true
  53. });
  54. exports.createApp = createApp;
  55. exports.createComponent = createComponent;
  56. exports.createPage = createPage;
  57. exports.createPlugin = createPlugin;
  58. exports.createSubpackageApp = createSubpackageApp;
  59. exports.default = void 0;
  60. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  61. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  62. var _construct2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/construct */ 15));
  63. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  64. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  65. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 22);
  66. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  67. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  68. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  69. var realAtob;
  70. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  71. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  72. if (typeof atob !== 'function') {
  73. realAtob = function realAtob(str) {
  74. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  75. if (!b64re.test(str)) {
  76. throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  77. }
  78. // Adding the padding if missing, for semplicity
  79. str += '=='.slice(2 - (str.length & 3));
  80. var bitmap;
  81. var result = '';
  82. var r1;
  83. var r2;
  84. var i = 0;
  85. for (; i < str.length;) {
  86. bitmap = b64.indexOf(str.charAt(i++)) << 18 | b64.indexOf(str.charAt(i++)) << 12 | (r1 = b64.indexOf(str.charAt(i++))) << 6 | (r2 = b64.indexOf(str.charAt(i++)));
  87. result += r1 === 64 ? String.fromCharCode(bitmap >> 16 & 255) : r2 === 64 ? String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255) : String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255, bitmap & 255);
  88. }
  89. return result;
  90. };
  91. } else {
  92. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  93. realAtob = atob;
  94. }
  95. function b64DecodeUnicode(str) {
  96. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  97. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  98. }).join(''));
  99. }
  100. function getCurrentUserInfo() {
  101. var token = wx.getStorageSync('uni_id_token') || '';
  102. var tokenArr = token.split('.');
  103. if (!token || tokenArr.length !== 3) {
  104. return {
  105. uid: null,
  106. role: [],
  107. permission: [],
  108. tokenExpired: 0
  109. };
  110. }
  111. var userInfo;
  112. try {
  113. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  114. } catch (error) {
  115. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  116. }
  117. userInfo.tokenExpired = userInfo.exp * 1000;
  118. delete userInfo.exp;
  119. delete userInfo.iat;
  120. return userInfo;
  121. }
  122. function uniIdMixin(Vue) {
  123. Vue.prototype.uniIDHasRole = function (roleId) {
  124. var _getCurrentUserInfo = getCurrentUserInfo(),
  125. role = _getCurrentUserInfo.role;
  126. return role.indexOf(roleId) > -1;
  127. };
  128. Vue.prototype.uniIDHasPermission = function (permissionId) {
  129. var _getCurrentUserInfo2 = getCurrentUserInfo(),
  130. permission = _getCurrentUserInfo2.permission;
  131. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  132. };
  133. Vue.prototype.uniIDTokenValid = function () {
  134. var _getCurrentUserInfo3 = getCurrentUserInfo(),
  135. tokenExpired = _getCurrentUserInfo3.tokenExpired;
  136. return tokenExpired > Date.now();
  137. };
  138. }
  139. var _toString = Object.prototype.toString;
  140. var hasOwnProperty = Object.prototype.hasOwnProperty;
  141. function isFn(fn) {
  142. return typeof fn === 'function';
  143. }
  144. function isStr(str) {
  145. return typeof str === 'string';
  146. }
  147. function isObject(obj) {
  148. return obj !== null && (0, _typeof2.default)(obj) === 'object';
  149. }
  150. function isPlainObject(obj) {
  151. return _toString.call(obj) === '[object Object]';
  152. }
  153. function hasOwn(obj, key) {
  154. return hasOwnProperty.call(obj, key);
  155. }
  156. function noop() {}
  157. /**
  158. * Create a cached version of a pure function.
  159. */
  160. function cached(fn) {
  161. var cache = Object.create(null);
  162. return function cachedFn(str) {
  163. var hit = cache[str];
  164. return hit || (cache[str] = fn(str));
  165. };
  166. }
  167. /**
  168. * Camelize a hyphen-delimited string.
  169. */
  170. var camelizeRE = /-(\w)/g;
  171. var camelize = cached(function (str) {
  172. return str.replace(camelizeRE, function (_, c) {
  173. return c ? c.toUpperCase() : '';
  174. });
  175. });
  176. function sortObject(obj) {
  177. var sortObj = {};
  178. if (isPlainObject(obj)) {
  179. Object.keys(obj).sort().forEach(function (key) {
  180. sortObj[key] = obj[key];
  181. });
  182. }
  183. return !Object.keys(sortObj) ? obj : sortObj;
  184. }
  185. var HOOKS = ['invoke', 'success', 'fail', 'complete', 'returnValue'];
  186. var globalInterceptors = {};
  187. var scopedInterceptors = {};
  188. function mergeHook(parentVal, childVal) {
  189. var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal;
  190. return res ? dedupeHooks(res) : res;
  191. }
  192. function dedupeHooks(hooks) {
  193. var res = [];
  194. for (var i = 0; i < hooks.length; i++) {
  195. if (res.indexOf(hooks[i]) === -1) {
  196. res.push(hooks[i]);
  197. }
  198. }
  199. return res;
  200. }
  201. function removeHook(hooks, hook) {
  202. var index = hooks.indexOf(hook);
  203. if (index !== -1) {
  204. hooks.splice(index, 1);
  205. }
  206. }
  207. function mergeInterceptorHook(interceptor, option) {
  208. Object.keys(option).forEach(function (hook) {
  209. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  210. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  211. }
  212. });
  213. }
  214. function removeInterceptorHook(interceptor, option) {
  215. if (!interceptor || !option) {
  216. return;
  217. }
  218. Object.keys(option).forEach(function (hook) {
  219. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  220. removeHook(interceptor[hook], option[hook]);
  221. }
  222. });
  223. }
  224. function addInterceptor(method, option) {
  225. if (typeof method === 'string' && isPlainObject(option)) {
  226. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  227. } else if (isPlainObject(method)) {
  228. mergeInterceptorHook(globalInterceptors, method);
  229. }
  230. }
  231. function removeInterceptor(method, option) {
  232. if (typeof method === 'string') {
  233. if (isPlainObject(option)) {
  234. removeInterceptorHook(scopedInterceptors[method], option);
  235. } else {
  236. delete scopedInterceptors[method];
  237. }
  238. } else if (isPlainObject(method)) {
  239. removeInterceptorHook(globalInterceptors, method);
  240. }
  241. }
  242. function wrapperHook(hook) {
  243. return function (data) {
  244. return hook(data) || data;
  245. };
  246. }
  247. function isPromise(obj) {
  248. return !!obj && ((0, _typeof2.default)(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  249. }
  250. function queue(hooks, data) {
  251. var promise = false;
  252. for (var i = 0; i < hooks.length; i++) {
  253. var hook = hooks[i];
  254. if (promise) {
  255. promise = Promise.resolve(wrapperHook(hook));
  256. } else {
  257. var res = hook(data);
  258. if (isPromise(res)) {
  259. promise = Promise.resolve(res);
  260. }
  261. if (res === false) {
  262. return {
  263. then: function then() {}
  264. };
  265. }
  266. }
  267. }
  268. return promise || {
  269. then: function then(callback) {
  270. return callback(data);
  271. }
  272. };
  273. }
  274. function wrapperOptions(interceptor) {
  275. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  276. ['success', 'fail', 'complete'].forEach(function (name) {
  277. if (Array.isArray(interceptor[name])) {
  278. var oldCallback = options[name];
  279. options[name] = function callbackInterceptor(res) {
  280. queue(interceptor[name], res).then(function (res) {
  281. /* eslint-disable no-mixed-operators */
  282. return isFn(oldCallback) && oldCallback(res) || res;
  283. });
  284. };
  285. }
  286. });
  287. return options;
  288. }
  289. function wrapperReturnValue(method, returnValue) {
  290. var returnValueHooks = [];
  291. if (Array.isArray(globalInterceptors.returnValue)) {
  292. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(globalInterceptors.returnValue));
  293. }
  294. var interceptor = scopedInterceptors[method];
  295. if (interceptor && Array.isArray(interceptor.returnValue)) {
  296. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(interceptor.returnValue));
  297. }
  298. returnValueHooks.forEach(function (hook) {
  299. returnValue = hook(returnValue) || returnValue;
  300. });
  301. return returnValue;
  302. }
  303. function getApiInterceptorHooks(method) {
  304. var interceptor = Object.create(null);
  305. Object.keys(globalInterceptors).forEach(function (hook) {
  306. if (hook !== 'returnValue') {
  307. interceptor[hook] = globalInterceptors[hook].slice();
  308. }
  309. });
  310. var scopedInterceptor = scopedInterceptors[method];
  311. if (scopedInterceptor) {
  312. Object.keys(scopedInterceptor).forEach(function (hook) {
  313. if (hook !== 'returnValue') {
  314. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  315. }
  316. });
  317. }
  318. return interceptor;
  319. }
  320. function invokeApi(method, api, options) {
  321. for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
  322. params[_key - 3] = arguments[_key];
  323. }
  324. var interceptor = getApiInterceptorHooks(method);
  325. if (interceptor && Object.keys(interceptor).length) {
  326. if (Array.isArray(interceptor.invoke)) {
  327. var res = queue(interceptor.invoke, options);
  328. return res.then(function (options) {
  329. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  330. });
  331. } else {
  332. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  333. }
  334. }
  335. return api.apply(void 0, [options].concat(params));
  336. }
  337. var promiseInterceptor = {
  338. returnValue: function returnValue(res) {
  339. if (!isPromise(res)) {
  340. return res;
  341. }
  342. return new Promise(function (resolve, reject) {
  343. res.then(function (res) {
  344. if (res[0]) {
  345. reject(res[0]);
  346. } else {
  347. resolve(res[1]);
  348. }
  349. });
  350. });
  351. }
  352. };
  353. var SYNC_API_RE = /^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting|initUTS|requireUTS|registerUTS/;
  354. var CONTEXT_API_RE = /^create|Manager$/;
  355. // Context例外情况
  356. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  357. // 同步例外情况
  358. var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
  359. var CALLBACK_API_RE = /^on|^off/;
  360. function isContextApi(name) {
  361. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  362. }
  363. function isSyncApi(name) {
  364. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  365. }
  366. function isCallbackApi(name) {
  367. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  368. }
  369. function handlePromise(promise) {
  370. return promise.then(function (data) {
  371. return [null, data];
  372. }).catch(function (err) {
  373. return [err];
  374. });
  375. }
  376. function shouldPromise(name) {
  377. if (isContextApi(name) || isSyncApi(name) || isCallbackApi(name)) {
  378. return false;
  379. }
  380. return true;
  381. }
  382. /* eslint-disable no-extend-native */
  383. if (!Promise.prototype.finally) {
  384. Promise.prototype.finally = function (callback) {
  385. var promise = this.constructor;
  386. return this.then(function (value) {
  387. return promise.resolve(callback()).then(function () {
  388. return value;
  389. });
  390. }, function (reason) {
  391. return promise.resolve(callback()).then(function () {
  392. throw reason;
  393. });
  394. });
  395. };
  396. }
  397. function promisify(name, api) {
  398. if (!shouldPromise(name) || !isFn(api)) {
  399. return api;
  400. }
  401. return function promiseApi() {
  402. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  403. for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  404. params[_key2 - 1] = arguments[_key2];
  405. }
  406. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  407. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  408. }
  409. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  410. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  411. success: resolve,
  412. fail: reject
  413. })].concat(params));
  414. })));
  415. };
  416. }
  417. var EPS = 1e-4;
  418. var BASE_DEVICE_WIDTH = 750;
  419. var isIOS = false;
  420. var deviceWidth = 0;
  421. var deviceDPR = 0;
  422. function checkDeviceWidth() {
  423. var _wx$getSystemInfoSync = wx.getSystemInfoSync(),
  424. platform = _wx$getSystemInfoSync.platform,
  425. pixelRatio = _wx$getSystemInfoSync.pixelRatio,
  426. windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  427. deviceWidth = windowWidth;
  428. deviceDPR = pixelRatio;
  429. isIOS = platform === 'ios';
  430. }
  431. function upx2px(number, newDeviceWidth) {
  432. if (deviceWidth === 0) {
  433. checkDeviceWidth();
  434. }
  435. number = Number(number);
  436. if (number === 0) {
  437. return 0;
  438. }
  439. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  440. if (result < 0) {
  441. result = -result;
  442. }
  443. result = Math.floor(result + EPS);
  444. if (result === 0) {
  445. if (deviceDPR === 1 || !isIOS) {
  446. result = 1;
  447. } else {
  448. result = 0.5;
  449. }
  450. }
  451. return number < 0 ? -result : result;
  452. }
  453. var LOCALE_ZH_HANS = 'zh-Hans';
  454. var LOCALE_ZH_HANT = 'zh-Hant';
  455. var LOCALE_EN = 'en';
  456. var LOCALE_FR = 'fr';
  457. var LOCALE_ES = 'es';
  458. var messages = {};
  459. var locale;
  460. {
  461. locale = normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  462. }
  463. function initI18nMessages() {
  464. if (!isEnableLocale()) {
  465. return;
  466. }
  467. var localeKeys = Object.keys(__uniConfig.locales);
  468. if (localeKeys.length) {
  469. localeKeys.forEach(function (locale) {
  470. var curMessages = messages[locale];
  471. var userMessages = __uniConfig.locales[locale];
  472. if (curMessages) {
  473. Object.assign(curMessages, userMessages);
  474. } else {
  475. messages[locale] = userMessages;
  476. }
  477. });
  478. }
  479. }
  480. initI18nMessages();
  481. var i18n = (0, _uniI18n.initVueI18n)(locale, {});
  482. var t = i18n.t;
  483. var i18nMixin = i18n.mixin = {
  484. beforeCreate: function beforeCreate() {
  485. var _this = this;
  486. var unwatch = i18n.i18n.watchLocale(function () {
  487. _this.$forceUpdate();
  488. });
  489. this.$once('hook:beforeDestroy', function () {
  490. unwatch();
  491. });
  492. },
  493. methods: {
  494. $$t: function $$t(key, values) {
  495. return t(key, values);
  496. }
  497. }
  498. };
  499. var setLocale = i18n.setLocale;
  500. var getLocale = i18n.getLocale;
  501. function initAppLocale(Vue, appVm, locale) {
  502. var state = Vue.observable({
  503. locale: locale || i18n.getLocale()
  504. });
  505. var localeWatchers = [];
  506. appVm.$watchLocale = function (fn) {
  507. localeWatchers.push(fn);
  508. };
  509. Object.defineProperty(appVm, '$locale', {
  510. get: function get() {
  511. return state.locale;
  512. },
  513. set: function set(v) {
  514. state.locale = v;
  515. localeWatchers.forEach(function (watch) {
  516. return watch(v);
  517. });
  518. }
  519. });
  520. }
  521. function isEnableLocale() {
  522. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  523. }
  524. function include(str, parts) {
  525. return !!parts.find(function (part) {
  526. return str.indexOf(part) !== -1;
  527. });
  528. }
  529. function startsWith(str, parts) {
  530. return parts.find(function (part) {
  531. return str.indexOf(part) === 0;
  532. });
  533. }
  534. function normalizeLocale(locale, messages) {
  535. if (!locale) {
  536. return;
  537. }
  538. locale = locale.trim().replace(/_/g, '-');
  539. if (messages && messages[locale]) {
  540. return locale;
  541. }
  542. locale = locale.toLowerCase();
  543. if (locale === 'chinese') {
  544. // 支付宝
  545. return LOCALE_ZH_HANS;
  546. }
  547. if (locale.indexOf('zh') === 0) {
  548. if (locale.indexOf('-hans') > -1) {
  549. return LOCALE_ZH_HANS;
  550. }
  551. if (locale.indexOf('-hant') > -1) {
  552. return LOCALE_ZH_HANT;
  553. }
  554. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  555. return LOCALE_ZH_HANT;
  556. }
  557. return LOCALE_ZH_HANS;
  558. }
  559. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  560. if (lang) {
  561. return lang;
  562. }
  563. }
  564. // export function initI18n() {
  565. // const localeKeys = Object.keys(__uniConfig.locales || {})
  566. // if (localeKeys.length) {
  567. // localeKeys.forEach((locale) =>
  568. // i18n.add(locale, __uniConfig.locales[locale])
  569. // )
  570. // }
  571. // }
  572. function getLocale$1() {
  573. // 优先使用 $locale
  574. if (isFn(getApp)) {
  575. var app = getApp({
  576. allowDefault: true
  577. });
  578. if (app && app.$vm) {
  579. return app.$vm.$locale;
  580. }
  581. }
  582. return normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  583. }
  584. function setLocale$1(locale) {
  585. var app = isFn(getApp) ? getApp() : false;
  586. if (!app) {
  587. return false;
  588. }
  589. var oldLocale = app.$vm.$locale;
  590. if (oldLocale !== locale) {
  591. app.$vm.$locale = locale;
  592. onLocaleChangeCallbacks.forEach(function (fn) {
  593. return fn({
  594. locale: locale
  595. });
  596. });
  597. return true;
  598. }
  599. return false;
  600. }
  601. var onLocaleChangeCallbacks = [];
  602. function onLocaleChange(fn) {
  603. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  604. onLocaleChangeCallbacks.push(fn);
  605. }
  606. }
  607. if (typeof global !== 'undefined') {
  608. global.getLocale = getLocale$1;
  609. }
  610. var interceptors = {
  611. promiseInterceptor: promiseInterceptor
  612. };
  613. var baseApi = /*#__PURE__*/Object.freeze({
  614. __proto__: null,
  615. upx2px: upx2px,
  616. getLocale: getLocale$1,
  617. setLocale: setLocale$1,
  618. onLocaleChange: onLocaleChange,
  619. addInterceptor: addInterceptor,
  620. removeInterceptor: removeInterceptor,
  621. interceptors: interceptors
  622. });
  623. function findExistsPageIndex(url) {
  624. var pages = getCurrentPages();
  625. var len = pages.length;
  626. while (len--) {
  627. var page = pages[len];
  628. if (page.$page && page.$page.fullPath === url) {
  629. return len;
  630. }
  631. }
  632. return -1;
  633. }
  634. var redirectTo = {
  635. name: function name(fromArgs) {
  636. if (fromArgs.exists === 'back' && fromArgs.delta) {
  637. return 'navigateBack';
  638. }
  639. return 'redirectTo';
  640. },
  641. args: function args(fromArgs) {
  642. if (fromArgs.exists === 'back' && fromArgs.url) {
  643. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  644. if (existsPageIndex !== -1) {
  645. var delta = getCurrentPages().length - 1 - existsPageIndex;
  646. if (delta > 0) {
  647. fromArgs.delta = delta;
  648. }
  649. }
  650. }
  651. }
  652. };
  653. var previewImage = {
  654. args: function args(fromArgs) {
  655. var currentIndex = parseInt(fromArgs.current);
  656. if (isNaN(currentIndex)) {
  657. return;
  658. }
  659. var urls = fromArgs.urls;
  660. if (!Array.isArray(urls)) {
  661. return;
  662. }
  663. var len = urls.length;
  664. if (!len) {
  665. return;
  666. }
  667. if (currentIndex < 0) {
  668. currentIndex = 0;
  669. } else if (currentIndex >= len) {
  670. currentIndex = len - 1;
  671. }
  672. if (currentIndex > 0) {
  673. fromArgs.current = urls[currentIndex];
  674. fromArgs.urls = urls.filter(function (item, index) {
  675. return index < currentIndex ? item !== urls[currentIndex] : true;
  676. });
  677. } else {
  678. fromArgs.current = urls[0];
  679. }
  680. return {
  681. indicator: false,
  682. loop: false
  683. };
  684. }
  685. };
  686. var UUID_KEY = '__DC_STAT_UUID';
  687. var deviceId;
  688. function useDeviceId(result) {
  689. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  690. if (!deviceId) {
  691. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  692. wx.setStorage({
  693. key: UUID_KEY,
  694. data: deviceId
  695. });
  696. }
  697. result.deviceId = deviceId;
  698. }
  699. function addSafeAreaInsets(result) {
  700. if (result.safeArea) {
  701. var safeArea = result.safeArea;
  702. result.safeAreaInsets = {
  703. top: safeArea.top,
  704. left: safeArea.left,
  705. right: result.windowWidth - safeArea.right,
  706. bottom: result.screenHeight - safeArea.bottom
  707. };
  708. }
  709. }
  710. function populateParameters(result) {
  711. var _result$brand = result.brand,
  712. brand = _result$brand === void 0 ? '' : _result$brand,
  713. _result$model = result.model,
  714. model = _result$model === void 0 ? '' : _result$model,
  715. _result$system = result.system,
  716. system = _result$system === void 0 ? '' : _result$system,
  717. _result$language = result.language,
  718. language = _result$language === void 0 ? '' : _result$language,
  719. theme = result.theme,
  720. version = result.version,
  721. platform = result.platform,
  722. fontSizeSetting = result.fontSizeSetting,
  723. SDKVersion = result.SDKVersion,
  724. pixelRatio = result.pixelRatio,
  725. deviceOrientation = result.deviceOrientation;
  726. // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
  727. var extraParam = {};
  728. // osName osVersion
  729. var osName = '';
  730. var osVersion = '';
  731. {
  732. osName = system.split(' ')[0] || '';
  733. osVersion = system.split(' ')[1] || '';
  734. }
  735. var hostVersion = version;
  736. // deviceType
  737. var deviceType = getGetDeviceType(result, model);
  738. // deviceModel
  739. var deviceBrand = getDeviceBrand(brand);
  740. // hostName
  741. var _hostName = getHostName(result);
  742. // deviceOrientation
  743. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  744. // devicePixelRatio
  745. var _devicePixelRatio = pixelRatio;
  746. // SDKVersion
  747. var _SDKVersion = SDKVersion;
  748. // hostLanguage
  749. var hostLanguage = language.replace(/_/g, '-');
  750. // wx.getAccountInfoSync
  751. var parameters = {
  752. appId: "__UNI__D90E79B",
  753. appName: "xusfood_client",
  754. appVersion: "1.0.0",
  755. appVersionCode: "100",
  756. appLanguage: getAppLanguage(hostLanguage),
  757. uniCompileVersion: "3.7.9",
  758. uniRuntimeVersion: "3.7.9",
  759. uniPlatform: undefined || "mp-weixin",
  760. deviceBrand: deviceBrand,
  761. deviceModel: model,
  762. deviceType: deviceType,
  763. devicePixelRatio: _devicePixelRatio,
  764. deviceOrientation: _deviceOrientation,
  765. osName: osName.toLocaleLowerCase(),
  766. osVersion: osVersion,
  767. hostTheme: theme,
  768. hostVersion: hostVersion,
  769. hostLanguage: hostLanguage,
  770. hostName: _hostName,
  771. hostSDKVersion: _SDKVersion,
  772. hostFontSizeSetting: fontSizeSetting,
  773. windowTop: 0,
  774. windowBottom: 0,
  775. // TODO
  776. osLanguage: undefined,
  777. osTheme: undefined,
  778. ua: undefined,
  779. hostPackageName: undefined,
  780. browserName: undefined,
  781. browserVersion: undefined
  782. };
  783. Object.assign(result, parameters, extraParam);
  784. }
  785. function getGetDeviceType(result, model) {
  786. var deviceType = result.deviceType || 'phone';
  787. {
  788. var deviceTypeMaps = {
  789. ipad: 'pad',
  790. windows: 'pc',
  791. mac: 'pc'
  792. };
  793. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  794. var _model = model.toLocaleLowerCase();
  795. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  796. var _m = deviceTypeMapsKeys[index];
  797. if (_model.indexOf(_m) !== -1) {
  798. deviceType = deviceTypeMaps[_m];
  799. break;
  800. }
  801. }
  802. }
  803. return deviceType;
  804. }
  805. function getDeviceBrand(brand) {
  806. var deviceBrand = brand;
  807. if (deviceBrand) {
  808. deviceBrand = brand.toLocaleLowerCase();
  809. }
  810. return deviceBrand;
  811. }
  812. function getAppLanguage(defaultLanguage) {
  813. return getLocale$1 ? getLocale$1() : defaultLanguage;
  814. }
  815. function getHostName(result) {
  816. var _platform = 'WeChat';
  817. var _hostName = result.hostName || _platform; // mp-jd
  818. {
  819. if (result.environment) {
  820. _hostName = result.environment;
  821. } else if (result.host && result.host.env) {
  822. _hostName = result.host.env;
  823. }
  824. }
  825. return _hostName;
  826. }
  827. var getSystemInfo = {
  828. returnValue: function returnValue(result) {
  829. useDeviceId(result);
  830. addSafeAreaInsets(result);
  831. populateParameters(result);
  832. }
  833. };
  834. var showActionSheet = {
  835. args: function args(fromArgs) {
  836. if ((0, _typeof2.default)(fromArgs) === 'object') {
  837. fromArgs.alertText = fromArgs.title;
  838. }
  839. }
  840. };
  841. var getAppBaseInfo = {
  842. returnValue: function returnValue(result) {
  843. var _result = result,
  844. version = _result.version,
  845. language = _result.language,
  846. SDKVersion = _result.SDKVersion,
  847. theme = _result.theme;
  848. var _hostName = getHostName(result);
  849. var hostLanguage = language.replace('_', '-');
  850. result = sortObject(Object.assign(result, {
  851. appId: "__UNI__D90E79B",
  852. appName: "xusfood_client",
  853. appVersion: "1.0.0",
  854. appVersionCode: "100",
  855. appLanguage: getAppLanguage(hostLanguage),
  856. hostVersion: version,
  857. hostLanguage: hostLanguage,
  858. hostName: _hostName,
  859. hostSDKVersion: SDKVersion,
  860. hostTheme: theme
  861. }));
  862. }
  863. };
  864. var getDeviceInfo = {
  865. returnValue: function returnValue(result) {
  866. var _result2 = result,
  867. brand = _result2.brand,
  868. model = _result2.model;
  869. var deviceType = getGetDeviceType(result, model);
  870. var deviceBrand = getDeviceBrand(brand);
  871. useDeviceId(result);
  872. result = sortObject(Object.assign(result, {
  873. deviceType: deviceType,
  874. deviceBrand: deviceBrand,
  875. deviceModel: model
  876. }));
  877. }
  878. };
  879. var getWindowInfo = {
  880. returnValue: function returnValue(result) {
  881. addSafeAreaInsets(result);
  882. result = sortObject(Object.assign(result, {
  883. windowTop: 0,
  884. windowBottom: 0
  885. }));
  886. }
  887. };
  888. var getAppAuthorizeSetting = {
  889. returnValue: function returnValue(result) {
  890. var locationReducedAccuracy = result.locationReducedAccuracy;
  891. result.locationAccuracy = 'unsupported';
  892. if (locationReducedAccuracy === true) {
  893. result.locationAccuracy = 'reduced';
  894. } else if (locationReducedAccuracy === false) {
  895. result.locationAccuracy = 'full';
  896. }
  897. }
  898. };
  899. // import navigateTo from 'uni-helpers/navigate-to'
  900. var compressImage = {
  901. args: function args(fromArgs) {
  902. // https://developers.weixin.qq.com/community/develop/doc/000c08940c865011298e0a43256800?highLine=compressHeight
  903. if (fromArgs.compressedHeight && !fromArgs.compressHeight) {
  904. fromArgs.compressHeight = fromArgs.compressedHeight;
  905. }
  906. if (fromArgs.compressedWidth && !fromArgs.compressWidth) {
  907. fromArgs.compressWidth = fromArgs.compressedWidth;
  908. }
  909. }
  910. };
  911. var protocols = {
  912. redirectTo: redirectTo,
  913. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  914. previewImage: previewImage,
  915. getSystemInfo: getSystemInfo,
  916. getSystemInfoSync: getSystemInfo,
  917. showActionSheet: showActionSheet,
  918. getAppBaseInfo: getAppBaseInfo,
  919. getDeviceInfo: getDeviceInfo,
  920. getWindowInfo: getWindowInfo,
  921. getAppAuthorizeSetting: getAppAuthorizeSetting,
  922. compressImage: compressImage
  923. };
  924. var todos = ['vibrate', 'preloadPage', 'unPreloadPage', 'loadSubPackage'];
  925. var canIUses = [];
  926. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  927. function processCallback(methodName, method, returnValue) {
  928. return function (res) {
  929. return method(processReturnValue(methodName, res, returnValue));
  930. };
  931. }
  932. function processArgs(methodName, fromArgs) {
  933. var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  934. var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  935. var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  936. if (isPlainObject(fromArgs)) {
  937. // 一般 api 的参数解析
  938. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  939. if (isFn(argsOption)) {
  940. argsOption = argsOption(fromArgs, toArgs) || {};
  941. }
  942. for (var key in fromArgs) {
  943. if (hasOwn(argsOption, key)) {
  944. var keyOption = argsOption[key];
  945. if (isFn(keyOption)) {
  946. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  947. }
  948. if (!keyOption) {
  949. // 不支持的参数
  950. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  951. } else if (isStr(keyOption)) {
  952. // 重写参数 key
  953. toArgs[keyOption] = fromArgs[key];
  954. } else if (isPlainObject(keyOption)) {
  955. // {name:newName,value:value}可重新指定参数 key:value
  956. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  957. }
  958. } else if (CALLBACKS.indexOf(key) !== -1) {
  959. if (isFn(fromArgs[key])) {
  960. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  961. }
  962. } else {
  963. if (!keepFromArgs) {
  964. toArgs[key] = fromArgs[key];
  965. }
  966. }
  967. }
  968. return toArgs;
  969. } else if (isFn(fromArgs)) {
  970. fromArgs = processCallback(methodName, fromArgs, returnValue);
  971. }
  972. return fromArgs;
  973. }
  974. function processReturnValue(methodName, res, returnValue) {
  975. var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  976. if (isFn(protocols.returnValue)) {
  977. // 处理通用 returnValue
  978. res = protocols.returnValue(methodName, res);
  979. }
  980. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  981. }
  982. function wrapper(methodName, method) {
  983. if (hasOwn(protocols, methodName)) {
  984. var protocol = protocols[methodName];
  985. if (!protocol) {
  986. // 暂不支持的 api
  987. return function () {
  988. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  989. };
  990. }
  991. return function (arg1, arg2) {
  992. // 目前 api 最多两个参数
  993. var options = protocol;
  994. if (isFn(protocol)) {
  995. options = protocol(arg1);
  996. }
  997. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  998. var args = [arg1];
  999. if (typeof arg2 !== 'undefined') {
  1000. args.push(arg2);
  1001. }
  1002. if (isFn(options.name)) {
  1003. methodName = options.name(arg1);
  1004. } else if (isStr(options.name)) {
  1005. methodName = options.name;
  1006. }
  1007. var returnValue = wx[methodName].apply(wx, args);
  1008. if (isSyncApi(methodName)) {
  1009. // 同步 api
  1010. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  1011. }
  1012. return returnValue;
  1013. };
  1014. }
  1015. return method;
  1016. }
  1017. var todoApis = Object.create(null);
  1018. var TODOS = ['onTabBarMidButtonTap', 'subscribePush', 'unsubscribePush', 'onPush', 'offPush', 'share'];
  1019. function createTodoApi(name) {
  1020. return function todoApi(_ref) {
  1021. var fail = _ref.fail,
  1022. complete = _ref.complete;
  1023. var res = {
  1024. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported")
  1025. };
  1026. isFn(fail) && fail(res);
  1027. isFn(complete) && complete(res);
  1028. };
  1029. }
  1030. TODOS.forEach(function (name) {
  1031. todoApis[name] = createTodoApi(name);
  1032. });
  1033. var providers = {
  1034. oauth: ['weixin'],
  1035. share: ['weixin'],
  1036. payment: ['wxpay'],
  1037. push: ['weixin']
  1038. };
  1039. function getProvider(_ref2) {
  1040. var service = _ref2.service,
  1041. success = _ref2.success,
  1042. fail = _ref2.fail,
  1043. complete = _ref2.complete;
  1044. var res = false;
  1045. if (providers[service]) {
  1046. res = {
  1047. errMsg: 'getProvider:ok',
  1048. service: service,
  1049. provider: providers[service]
  1050. };
  1051. isFn(success) && success(res);
  1052. } else {
  1053. res = {
  1054. errMsg: 'getProvider:fail service not found'
  1055. };
  1056. isFn(fail) && fail(res);
  1057. }
  1058. isFn(complete) && complete(res);
  1059. }
  1060. var extraApi = /*#__PURE__*/Object.freeze({
  1061. __proto__: null,
  1062. getProvider: getProvider
  1063. });
  1064. var getEmitter = function () {
  1065. var Emitter;
  1066. return function getUniEmitter() {
  1067. if (!Emitter) {
  1068. Emitter = new _vue.default();
  1069. }
  1070. return Emitter;
  1071. };
  1072. }();
  1073. function apply(ctx, method, args) {
  1074. return ctx[method].apply(ctx, args);
  1075. }
  1076. function $on() {
  1077. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  1078. }
  1079. function $off() {
  1080. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  1081. }
  1082. function $once() {
  1083. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  1084. }
  1085. function $emit() {
  1086. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  1087. }
  1088. var eventApi = /*#__PURE__*/Object.freeze({
  1089. __proto__: null,
  1090. $on: $on,
  1091. $off: $off,
  1092. $once: $once,
  1093. $emit: $emit
  1094. });
  1095. /**
  1096. * 框架内 try-catch
  1097. */
  1098. /**
  1099. * 开发者 try-catch
  1100. */
  1101. function tryCatch(fn) {
  1102. return function () {
  1103. try {
  1104. return fn.apply(fn, arguments);
  1105. } catch (e) {
  1106. // TODO
  1107. console.error(e);
  1108. }
  1109. };
  1110. }
  1111. function getApiCallbacks(params) {
  1112. var apiCallbacks = {};
  1113. for (var name in params) {
  1114. var param = params[name];
  1115. if (isFn(param)) {
  1116. apiCallbacks[name] = tryCatch(param);
  1117. delete params[name];
  1118. }
  1119. }
  1120. return apiCallbacks;
  1121. }
  1122. var cid;
  1123. var cidErrMsg;
  1124. var enabled;
  1125. function normalizePushMessage(message) {
  1126. try {
  1127. return JSON.parse(message);
  1128. } catch (e) {}
  1129. return message;
  1130. }
  1131. function invokePushCallback(args) {
  1132. if (args.type === 'enabled') {
  1133. enabled = true;
  1134. } else if (args.type === 'clientId') {
  1135. cid = args.cid;
  1136. cidErrMsg = args.errMsg;
  1137. invokeGetPushCidCallbacks(cid, args.errMsg);
  1138. } else if (args.type === 'pushMsg') {
  1139. var message = {
  1140. type: 'receive',
  1141. data: normalizePushMessage(args.message)
  1142. };
  1143. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  1144. var callback = onPushMessageCallbacks[i];
  1145. callback(message);
  1146. // 该消息已被阻止
  1147. if (message.stopped) {
  1148. break;
  1149. }
  1150. }
  1151. } else if (args.type === 'click') {
  1152. onPushMessageCallbacks.forEach(function (callback) {
  1153. callback({
  1154. type: 'click',
  1155. data: normalizePushMessage(args.message)
  1156. });
  1157. });
  1158. }
  1159. }
  1160. var getPushCidCallbacks = [];
  1161. function invokeGetPushCidCallbacks(cid, errMsg) {
  1162. getPushCidCallbacks.forEach(function (callback) {
  1163. callback(cid, errMsg);
  1164. });
  1165. getPushCidCallbacks.length = 0;
  1166. }
  1167. function getPushClientId(args) {
  1168. if (!isPlainObject(args)) {
  1169. args = {};
  1170. }
  1171. var _getApiCallbacks = getApiCallbacks(args),
  1172. success = _getApiCallbacks.success,
  1173. fail = _getApiCallbacks.fail,
  1174. complete = _getApiCallbacks.complete;
  1175. var hasSuccess = isFn(success);
  1176. var hasFail = isFn(fail);
  1177. var hasComplete = isFn(complete);
  1178. Promise.resolve().then(function () {
  1179. if (typeof enabled === 'undefined') {
  1180. enabled = false;
  1181. cid = '';
  1182. cidErrMsg = 'uniPush is not enabled';
  1183. }
  1184. getPushCidCallbacks.push(function (cid, errMsg) {
  1185. var res;
  1186. if (cid) {
  1187. res = {
  1188. errMsg: 'getPushClientId:ok',
  1189. cid: cid
  1190. };
  1191. hasSuccess && success(res);
  1192. } else {
  1193. res = {
  1194. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
  1195. };
  1196. hasFail && fail(res);
  1197. }
  1198. hasComplete && complete(res);
  1199. });
  1200. if (typeof cid !== 'undefined') {
  1201. invokeGetPushCidCallbacks(cid, cidErrMsg);
  1202. }
  1203. });
  1204. }
  1205. var onPushMessageCallbacks = [];
  1206. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  1207. var onPushMessage = function onPushMessage(fn) {
  1208. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  1209. onPushMessageCallbacks.push(fn);
  1210. }
  1211. };
  1212. var offPushMessage = function offPushMessage(fn) {
  1213. if (!fn) {
  1214. onPushMessageCallbacks.length = 0;
  1215. } else {
  1216. var index = onPushMessageCallbacks.indexOf(fn);
  1217. if (index > -1) {
  1218. onPushMessageCallbacks.splice(index, 1);
  1219. }
  1220. }
  1221. };
  1222. var baseInfo = wx.getAppBaseInfo && wx.getAppBaseInfo();
  1223. if (!baseInfo) {
  1224. baseInfo = wx.getSystemInfoSync();
  1225. }
  1226. var host = baseInfo ? baseInfo.host : null;
  1227. var shareVideoMessage = host && host.env === 'SAAASDK' ? wx.miniapp.shareVideoMessage : wx.shareVideoMessage;
  1228. var api = /*#__PURE__*/Object.freeze({
  1229. __proto__: null,
  1230. shareVideoMessage: shareVideoMessage,
  1231. getPushClientId: getPushClientId,
  1232. onPushMessage: onPushMessage,
  1233. offPushMessage: offPushMessage,
  1234. invokePushCallback: invokePushCallback
  1235. });
  1236. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1237. function findVmByVueId(vm, vuePid) {
  1238. var $children = vm.$children;
  1239. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1240. for (var i = $children.length - 1; i >= 0; i--) {
  1241. var childVm = $children[i];
  1242. if (childVm.$scope._$vueId === vuePid) {
  1243. return childVm;
  1244. }
  1245. }
  1246. // 反向递归查找
  1247. var parentVm;
  1248. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1249. parentVm = findVmByVueId($children[_i], vuePid);
  1250. if (parentVm) {
  1251. return parentVm;
  1252. }
  1253. }
  1254. }
  1255. function initBehavior(options) {
  1256. return Behavior(options);
  1257. }
  1258. function isPage() {
  1259. return !!this.route;
  1260. }
  1261. function initRelation(detail) {
  1262. this.triggerEvent('__l', detail);
  1263. }
  1264. function selectAllComponents(mpInstance, selector, $refs) {
  1265. var components = mpInstance.selectAllComponents(selector) || [];
  1266. components.forEach(function (component) {
  1267. var ref = component.dataset.ref;
  1268. $refs[ref] = component.$vm || toSkip(component);
  1269. {
  1270. if (component.dataset.vueGeneric === 'scoped') {
  1271. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1272. selectAllComponents(scopedComponent, selector, $refs);
  1273. });
  1274. }
  1275. }
  1276. });
  1277. }
  1278. function syncRefs(refs, newRefs) {
  1279. var oldKeys = (0, _construct2.default)(Set, (0, _toConsumableArray2.default)(Object.keys(refs)));
  1280. var newKeys = Object.keys(newRefs);
  1281. newKeys.forEach(function (key) {
  1282. var oldValue = refs[key];
  1283. var newValue = newRefs[key];
  1284. if (Array.isArray(oldValue) && Array.isArray(newValue) && oldValue.length === newValue.length && newValue.every(function (value) {
  1285. return oldValue.includes(value);
  1286. })) {
  1287. return;
  1288. }
  1289. refs[key] = newValue;
  1290. oldKeys.delete(key);
  1291. });
  1292. oldKeys.forEach(function (key) {
  1293. delete refs[key];
  1294. });
  1295. return refs;
  1296. }
  1297. function initRefs(vm) {
  1298. var mpInstance = vm.$scope;
  1299. var refs = {};
  1300. Object.defineProperty(vm, '$refs', {
  1301. get: function get() {
  1302. var $refs = {};
  1303. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1304. // TODO 暂不考虑 for 中的 scoped
  1305. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for') || [];
  1306. forComponents.forEach(function (component) {
  1307. var ref = component.dataset.ref;
  1308. if (!$refs[ref]) {
  1309. $refs[ref] = [];
  1310. }
  1311. $refs[ref].push(component.$vm || toSkip(component));
  1312. });
  1313. return syncRefs(refs, $refs);
  1314. }
  1315. });
  1316. }
  1317. function handleLink(event) {
  1318. var _ref3 = event.detail || event.value,
  1319. vuePid = _ref3.vuePid,
  1320. vueOptions = _ref3.vueOptions; // detail 是微信,value 是百度(dipatch)
  1321. var parentVm;
  1322. if (vuePid) {
  1323. parentVm = findVmByVueId(this.$vm, vuePid);
  1324. }
  1325. if (!parentVm) {
  1326. parentVm = this.$vm;
  1327. }
  1328. vueOptions.parent = parentVm;
  1329. }
  1330. function markMPComponent(component) {
  1331. // 在 Vue 中标记为小程序组件
  1332. var IS_MP = '__v_isMPComponent';
  1333. Object.defineProperty(component, IS_MP, {
  1334. configurable: true,
  1335. enumerable: false,
  1336. value: true
  1337. });
  1338. return component;
  1339. }
  1340. function toSkip(obj) {
  1341. var OB = '__ob__';
  1342. var SKIP = '__v_skip';
  1343. if (isObject(obj) && Object.isExtensible(obj)) {
  1344. // 避免被 @vue/composition-api 观测
  1345. Object.defineProperty(obj, OB, {
  1346. configurable: true,
  1347. enumerable: false,
  1348. value: (0, _defineProperty2.default)({}, SKIP, true)
  1349. });
  1350. }
  1351. return obj;
  1352. }
  1353. var WORKLET_RE = /_(.*)_worklet_factory_/;
  1354. function initWorkletMethods(mpMethods, vueMethods) {
  1355. if (vueMethods) {
  1356. Object.keys(vueMethods).forEach(function (name) {
  1357. var matches = name.match(WORKLET_RE);
  1358. if (matches) {
  1359. var workletName = matches[1];
  1360. mpMethods[name] = vueMethods[name];
  1361. mpMethods[workletName] = vueMethods[workletName];
  1362. }
  1363. });
  1364. }
  1365. }
  1366. var MPPage = Page;
  1367. var MPComponent = Component;
  1368. var customizeRE = /:/g;
  1369. var customize = cached(function (str) {
  1370. return camelize(str.replace(customizeRE, '-'));
  1371. });
  1372. function initTriggerEvent(mpInstance) {
  1373. var oldTriggerEvent = mpInstance.triggerEvent;
  1374. var newTriggerEvent = function newTriggerEvent(event) {
  1375. for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
  1376. args[_key3 - 1] = arguments[_key3];
  1377. }
  1378. // 事件名统一转驼峰格式,仅处理:当前组件为 vue 组件、当前组件为 vue 组件子组件
  1379. if (this.$vm || this.dataset && this.dataset.comType) {
  1380. event = customize(event);
  1381. } else {
  1382. // 针对微信/QQ小程序单独补充驼峰格式事件,以兼容历史项目
  1383. var newEvent = customize(event);
  1384. if (newEvent !== event) {
  1385. oldTriggerEvent.apply(this, [newEvent].concat(args));
  1386. }
  1387. }
  1388. return oldTriggerEvent.apply(this, [event].concat(args));
  1389. };
  1390. try {
  1391. // 京东小程序 triggerEvent 为只读
  1392. mpInstance.triggerEvent = newTriggerEvent;
  1393. } catch (error) {
  1394. mpInstance._triggerEvent = newTriggerEvent;
  1395. }
  1396. }
  1397. function initHook(name, options, isComponent) {
  1398. var oldHook = options[name];
  1399. options[name] = function () {
  1400. markMPComponent(this);
  1401. initTriggerEvent(this);
  1402. if (oldHook) {
  1403. for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  1404. args[_key4] = arguments[_key4];
  1405. }
  1406. return oldHook.apply(this, args);
  1407. }
  1408. };
  1409. }
  1410. if (!MPPage.__$wrappered) {
  1411. MPPage.__$wrappered = true;
  1412. Page = function Page() {
  1413. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1414. initHook('onLoad', options);
  1415. return MPPage(options);
  1416. };
  1417. Page.after = MPPage.after;
  1418. Component = function Component() {
  1419. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1420. initHook('created', options);
  1421. return MPComponent(options);
  1422. };
  1423. }
  1424. var PAGE_EVENT_HOOKS = ['onPullDownRefresh', 'onReachBottom', 'onAddToFavorites', 'onShareTimeline', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
  1425. function initMocks(vm, mocks) {
  1426. var mpInstance = vm.$mp[vm.mpType];
  1427. mocks.forEach(function (mock) {
  1428. if (hasOwn(mpInstance, mock)) {
  1429. vm[mock] = mpInstance[mock];
  1430. }
  1431. });
  1432. }
  1433. function hasHook(hook, vueOptions) {
  1434. if (!vueOptions) {
  1435. return true;
  1436. }
  1437. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  1438. return true;
  1439. }
  1440. vueOptions = vueOptions.default || vueOptions;
  1441. if (isFn(vueOptions)) {
  1442. if (isFn(vueOptions.extendOptions[hook])) {
  1443. return true;
  1444. }
  1445. if (vueOptions.super && vueOptions.super.options && Array.isArray(vueOptions.super.options[hook])) {
  1446. return true;
  1447. }
  1448. return false;
  1449. }
  1450. if (isFn(vueOptions[hook]) || Array.isArray(vueOptions[hook])) {
  1451. return true;
  1452. }
  1453. var mixins = vueOptions.mixins;
  1454. if (Array.isArray(mixins)) {
  1455. return !!mixins.find(function (mixin) {
  1456. return hasHook(hook, mixin);
  1457. });
  1458. }
  1459. }
  1460. function initHooks(mpOptions, hooks, vueOptions) {
  1461. hooks.forEach(function (hook) {
  1462. if (hasHook(hook, vueOptions)) {
  1463. mpOptions[hook] = function (args) {
  1464. return this.$vm && this.$vm.__call_hook(hook, args);
  1465. };
  1466. }
  1467. });
  1468. }
  1469. function initUnknownHooks(mpOptions, vueOptions) {
  1470. var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1471. findHooks(vueOptions).forEach(function (hook) {
  1472. return initHook$1(mpOptions, hook, excludes);
  1473. });
  1474. }
  1475. function findHooks(vueOptions) {
  1476. var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  1477. if (vueOptions) {
  1478. Object.keys(vueOptions).forEach(function (name) {
  1479. if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
  1480. hooks.push(name);
  1481. }
  1482. });
  1483. }
  1484. return hooks;
  1485. }
  1486. function initHook$1(mpOptions, hook, excludes) {
  1487. if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
  1488. mpOptions[hook] = function (args) {
  1489. return this.$vm && this.$vm.__call_hook(hook, args);
  1490. };
  1491. }
  1492. }
  1493. function initVueComponent(Vue, vueOptions) {
  1494. vueOptions = vueOptions.default || vueOptions;
  1495. var VueComponent;
  1496. if (isFn(vueOptions)) {
  1497. VueComponent = vueOptions;
  1498. } else {
  1499. VueComponent = Vue.extend(vueOptions);
  1500. }
  1501. vueOptions = VueComponent.options;
  1502. return [VueComponent, vueOptions];
  1503. }
  1504. function initSlots(vm, vueSlots) {
  1505. if (Array.isArray(vueSlots) && vueSlots.length) {
  1506. var $slots = Object.create(null);
  1507. vueSlots.forEach(function (slotName) {
  1508. $slots[slotName] = true;
  1509. });
  1510. vm.$scopedSlots = vm.$slots = $slots;
  1511. }
  1512. }
  1513. function initVueIds(vueIds, mpInstance) {
  1514. vueIds = (vueIds || '').split(',');
  1515. var len = vueIds.length;
  1516. if (len === 1) {
  1517. mpInstance._$vueId = vueIds[0];
  1518. } else if (len === 2) {
  1519. mpInstance._$vueId = vueIds[0];
  1520. mpInstance._$vuePid = vueIds[1];
  1521. }
  1522. }
  1523. function initData(vueOptions, context) {
  1524. var data = vueOptions.data || {};
  1525. var methods = vueOptions.methods || {};
  1526. if (typeof data === 'function') {
  1527. try {
  1528. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  1529. } catch (e) {
  1530. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"xusfood_client","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  1531. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  1532. }
  1533. }
  1534. } else {
  1535. try {
  1536. // 对 data 格式化
  1537. data = JSON.parse(JSON.stringify(data));
  1538. } catch (e) {}
  1539. }
  1540. if (!isPlainObject(data)) {
  1541. data = {};
  1542. }
  1543. Object.keys(methods).forEach(function (methodName) {
  1544. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  1545. data[methodName] = methods[methodName];
  1546. }
  1547. });
  1548. return data;
  1549. }
  1550. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  1551. function createObserver(name) {
  1552. return function observer(newVal, oldVal) {
  1553. if (this.$vm) {
  1554. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  1555. }
  1556. };
  1557. }
  1558. function initBehaviors(vueOptions, initBehavior) {
  1559. var vueBehaviors = vueOptions.behaviors;
  1560. var vueExtends = vueOptions.extends;
  1561. var vueMixins = vueOptions.mixins;
  1562. var vueProps = vueOptions.props;
  1563. if (!vueProps) {
  1564. vueOptions.props = vueProps = [];
  1565. }
  1566. var behaviors = [];
  1567. if (Array.isArray(vueBehaviors)) {
  1568. vueBehaviors.forEach(function (behavior) {
  1569. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  1570. if (behavior === 'uni://form-field') {
  1571. if (Array.isArray(vueProps)) {
  1572. vueProps.push('name');
  1573. vueProps.push('value');
  1574. } else {
  1575. vueProps.name = {
  1576. type: String,
  1577. default: ''
  1578. };
  1579. vueProps.value = {
  1580. type: [String, Number, Boolean, Array, Object, Date],
  1581. default: ''
  1582. };
  1583. }
  1584. }
  1585. });
  1586. }
  1587. if (isPlainObject(vueExtends) && vueExtends.props) {
  1588. behaviors.push(initBehavior({
  1589. properties: initProperties(vueExtends.props, true)
  1590. }));
  1591. }
  1592. if (Array.isArray(vueMixins)) {
  1593. vueMixins.forEach(function (vueMixin) {
  1594. if (isPlainObject(vueMixin) && vueMixin.props) {
  1595. behaviors.push(initBehavior({
  1596. properties: initProperties(vueMixin.props, true)
  1597. }));
  1598. }
  1599. });
  1600. }
  1601. return behaviors;
  1602. }
  1603. function parsePropType(key, type, defaultValue, file) {
  1604. // [String]=>String
  1605. if (Array.isArray(type) && type.length === 1) {
  1606. return type[0];
  1607. }
  1608. return type;
  1609. }
  1610. function initProperties(props) {
  1611. var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  1612. var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  1613. var options = arguments.length > 3 ? arguments[3] : undefined;
  1614. var properties = {};
  1615. if (!isBehavior) {
  1616. properties.vueId = {
  1617. type: String,
  1618. value: ''
  1619. };
  1620. {
  1621. if (options.virtualHost) {
  1622. properties.virtualHostStyle = {
  1623. type: null,
  1624. value: ''
  1625. };
  1626. properties.virtualHostClass = {
  1627. type: null,
  1628. value: ''
  1629. };
  1630. }
  1631. }
  1632. // scopedSlotsCompiler auto
  1633. properties.scopedSlotsCompiler = {
  1634. type: String,
  1635. value: ''
  1636. };
  1637. properties.vueSlots = {
  1638. // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  1639. type: null,
  1640. value: [],
  1641. observer: function observer(newVal, oldVal) {
  1642. var $slots = Object.create(null);
  1643. newVal.forEach(function (slotName) {
  1644. $slots[slotName] = true;
  1645. });
  1646. this.setData({
  1647. $slots: $slots
  1648. });
  1649. }
  1650. };
  1651. }
  1652. if (Array.isArray(props)) {
  1653. // ['title']
  1654. props.forEach(function (key) {
  1655. properties[key] = {
  1656. type: null,
  1657. observer: createObserver(key)
  1658. };
  1659. });
  1660. } else if (isPlainObject(props)) {
  1661. // {title:{type:String,default:''},content:String}
  1662. Object.keys(props).forEach(function (key) {
  1663. var opts = props[key];
  1664. if (isPlainObject(opts)) {
  1665. // title:{type:String,default:''}
  1666. var value = opts.default;
  1667. if (isFn(value)) {
  1668. value = value();
  1669. }
  1670. opts.type = parsePropType(key, opts.type);
  1671. properties[key] = {
  1672. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  1673. value: value,
  1674. observer: createObserver(key)
  1675. };
  1676. } else {
  1677. // content:String
  1678. var type = parsePropType(key, opts);
  1679. properties[key] = {
  1680. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  1681. observer: createObserver(key)
  1682. };
  1683. }
  1684. });
  1685. }
  1686. return properties;
  1687. }
  1688. function wrapper$1(event) {
  1689. // TODO 又得兼容 mpvue 的 mp 对象
  1690. try {
  1691. event.mp = JSON.parse(JSON.stringify(event));
  1692. } catch (e) {}
  1693. event.stopPropagation = noop;
  1694. event.preventDefault = noop;
  1695. event.target = event.target || {};
  1696. if (!hasOwn(event, 'detail')) {
  1697. event.detail = {};
  1698. }
  1699. if (hasOwn(event, 'markerId')) {
  1700. event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
  1701. event.detail.markerId = event.markerId;
  1702. }
  1703. if (isPlainObject(event.detail)) {
  1704. event.target = Object.assign({}, event.target, event.detail);
  1705. }
  1706. return event;
  1707. }
  1708. function getExtraValue(vm, dataPathsArray) {
  1709. var context = vm;
  1710. dataPathsArray.forEach(function (dataPathArray) {
  1711. var dataPath = dataPathArray[0];
  1712. var value = dataPathArray[2];
  1713. if (dataPath || typeof value !== 'undefined') {
  1714. // ['','',index,'disable']
  1715. var propPath = dataPathArray[1];
  1716. var valuePath = dataPathArray[3];
  1717. var vFor;
  1718. if (Number.isInteger(dataPath)) {
  1719. vFor = dataPath;
  1720. } else if (!dataPath) {
  1721. vFor = context;
  1722. } else if (typeof dataPath === 'string' && dataPath) {
  1723. if (dataPath.indexOf('#s#') === 0) {
  1724. vFor = dataPath.substr(3);
  1725. } else {
  1726. vFor = vm.__get_value(dataPath, context);
  1727. }
  1728. }
  1729. if (Number.isInteger(vFor)) {
  1730. context = value;
  1731. } else if (!propPath) {
  1732. context = vFor[value];
  1733. } else {
  1734. if (Array.isArray(vFor)) {
  1735. context = vFor.find(function (vForItem) {
  1736. return vm.__get_value(propPath, vForItem) === value;
  1737. });
  1738. } else if (isPlainObject(vFor)) {
  1739. context = Object.keys(vFor).find(function (vForKey) {
  1740. return vm.__get_value(propPath, vFor[vForKey]) === value;
  1741. });
  1742. } else {
  1743. console.error('v-for 暂不支持循环数据:', vFor);
  1744. }
  1745. }
  1746. if (valuePath) {
  1747. context = vm.__get_value(valuePath, context);
  1748. }
  1749. }
  1750. });
  1751. return context;
  1752. }
  1753. function processEventExtra(vm, extra, event, __args__) {
  1754. var extraObj = {};
  1755. if (Array.isArray(extra) && extra.length) {
  1756. /**
  1757. *[
  1758. * ['data.items', 'data.id', item.data.id],
  1759. * ['metas', 'id', meta.id]
  1760. *],
  1761. *[
  1762. * ['data.items', 'data.id', item.data.id],
  1763. * ['metas', 'id', meta.id]
  1764. *],
  1765. *'test'
  1766. */
  1767. extra.forEach(function (dataPath, index) {
  1768. if (typeof dataPath === 'string') {
  1769. if (!dataPath) {
  1770. // model,prop.sync
  1771. extraObj['$' + index] = vm;
  1772. } else {
  1773. if (dataPath === '$event') {
  1774. // $event
  1775. extraObj['$' + index] = event;
  1776. } else if (dataPath === 'arguments') {
  1777. extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
  1778. } else if (dataPath.indexOf('$event.') === 0) {
  1779. // $event.target.value
  1780. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1781. } else {
  1782. extraObj['$' + index] = vm.__get_value(dataPath);
  1783. }
  1784. }
  1785. } else {
  1786. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1787. }
  1788. });
  1789. }
  1790. return extraObj;
  1791. }
  1792. function getObjByArray(arr) {
  1793. var obj = {};
  1794. for (var i = 1; i < arr.length; i++) {
  1795. var element = arr[i];
  1796. obj[element[0]] = element[1];
  1797. }
  1798. return obj;
  1799. }
  1800. function processEventArgs(vm, event) {
  1801. var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1802. var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  1803. var isCustom = arguments.length > 4 ? arguments[4] : undefined;
  1804. var methodName = arguments.length > 5 ? arguments[5] : undefined;
  1805. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  1806. // fixed 用户直接触发 mpInstance.triggerEvent
  1807. var __args__ = isPlainObject(event.detail) ? event.detail.__args__ || [event.detail] : [event.detail];
  1808. if (isCustom) {
  1809. // 自定义事件
  1810. isCustomMPEvent = event.currentTarget && event.currentTarget.dataset && event.currentTarget.dataset.comType === 'wx';
  1811. if (!args.length) {
  1812. // 无参数,直接传入 event 或 detail 数组
  1813. if (isCustomMPEvent) {
  1814. return [event];
  1815. }
  1816. return __args__;
  1817. }
  1818. }
  1819. var extraObj = processEventExtra(vm, extra, event, __args__);
  1820. var ret = [];
  1821. args.forEach(function (arg) {
  1822. if (arg === '$event') {
  1823. if (methodName === '__set_model' && !isCustom) {
  1824. // input v-model value
  1825. ret.push(event.target.value);
  1826. } else {
  1827. if (isCustom && !isCustomMPEvent) {
  1828. ret.push(__args__[0]);
  1829. } else {
  1830. // wxcomponent 组件或内置组件
  1831. ret.push(event);
  1832. }
  1833. }
  1834. } else {
  1835. if (Array.isArray(arg) && arg[0] === 'o') {
  1836. ret.push(getObjByArray(arg));
  1837. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  1838. ret.push(extraObj[arg]);
  1839. } else {
  1840. ret.push(arg);
  1841. }
  1842. }
  1843. });
  1844. return ret;
  1845. }
  1846. var ONCE = '~';
  1847. var CUSTOM = '^';
  1848. function isMatchEventType(eventType, optType) {
  1849. return eventType === optType || optType === 'regionchange' && (eventType === 'begin' || eventType === 'end');
  1850. }
  1851. function getContextVm(vm) {
  1852. var $parent = vm.$parent;
  1853. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  1854. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  1855. $parent = $parent.$parent;
  1856. }
  1857. return $parent && $parent.$parent;
  1858. }
  1859. function handleEvent(event) {
  1860. var _this2 = this;
  1861. event = wrapper$1(event);
  1862. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  1863. var dataset = (event.currentTarget || event.target).dataset;
  1864. if (!dataset) {
  1865. return console.warn('事件信息不存在');
  1866. }
  1867. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  1868. if (!eventOpts) {
  1869. return console.warn('事件信息不存在');
  1870. }
  1871. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  1872. var eventType = event.type;
  1873. var ret = [];
  1874. eventOpts.forEach(function (eventOpt) {
  1875. var type = eventOpt[0];
  1876. var eventsArray = eventOpt[1];
  1877. var isCustom = type.charAt(0) === CUSTOM;
  1878. type = isCustom ? type.slice(1) : type;
  1879. var isOnce = type.charAt(0) === ONCE;
  1880. type = isOnce ? type.slice(1) : type;
  1881. if (eventsArray && isMatchEventType(eventType, type)) {
  1882. eventsArray.forEach(function (eventArray) {
  1883. var methodName = eventArray[0];
  1884. if (methodName) {
  1885. var handlerCtx = _this2.$vm;
  1886. if (handlerCtx.$options.generic) {
  1887. // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  1888. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  1889. }
  1890. if (methodName === '$emit') {
  1891. handlerCtx.$emit.apply(handlerCtx, processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName));
  1892. return;
  1893. }
  1894. var handler = handlerCtx[methodName];
  1895. if (!isFn(handler)) {
  1896. var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
  1897. var path = _this2.route || _this2.is;
  1898. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  1899. }
  1900. if (isOnce) {
  1901. if (handler.once) {
  1902. return;
  1903. }
  1904. handler.once = true;
  1905. }
  1906. var params = processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName);
  1907. params = Array.isArray(params) ? params : [];
  1908. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  1909. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  1910. // eslint-disable-next-line no-sparse-arrays
  1911. params = params.concat([,,,,,,,,,, event]);
  1912. }
  1913. ret.push(handler.apply(handlerCtx, params));
  1914. }
  1915. });
  1916. }
  1917. });
  1918. if (eventType === 'input' && ret.length === 1 && typeof ret[0] !== 'undefined') {
  1919. return ret[0];
  1920. }
  1921. }
  1922. var eventChannels = {};
  1923. var eventChannelStack = [];
  1924. function getEventChannel(id) {
  1925. if (id) {
  1926. var eventChannel = eventChannels[id];
  1927. delete eventChannels[id];
  1928. return eventChannel;
  1929. }
  1930. return eventChannelStack.shift();
  1931. }
  1932. var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
  1933. function initEventChannel() {
  1934. _vue.default.prototype.getOpenerEventChannel = function () {
  1935. // 微信小程序使用自身getOpenerEventChannel
  1936. {
  1937. return this.$scope.getOpenerEventChannel();
  1938. }
  1939. };
  1940. var callHook = _vue.default.prototype.__call_hook;
  1941. _vue.default.prototype.__call_hook = function (hook, args) {
  1942. if (hook === 'onLoad' && args && args.__id__) {
  1943. this.__eventChannel__ = getEventChannel(args.__id__);
  1944. delete args.__id__;
  1945. }
  1946. return callHook.call(this, hook, args);
  1947. };
  1948. }
  1949. function initScopedSlotsParams() {
  1950. var center = {};
  1951. var parents = {};
  1952. _vue.default.prototype.$hasScopedSlotsParams = function (vueId) {
  1953. var has = center[vueId];
  1954. if (!has) {
  1955. parents[vueId] = this;
  1956. this.$on('hook:destroyed', function () {
  1957. delete parents[vueId];
  1958. });
  1959. }
  1960. return has;
  1961. };
  1962. _vue.default.prototype.$getScopedSlotsParams = function (vueId, name, key) {
  1963. var data = center[vueId];
  1964. if (data) {
  1965. var object = data[name] || {};
  1966. return key ? object[key] : object;
  1967. } else {
  1968. parents[vueId] = this;
  1969. this.$on('hook:destroyed', function () {
  1970. delete parents[vueId];
  1971. });
  1972. }
  1973. };
  1974. _vue.default.prototype.$setScopedSlotsParams = function (name, value) {
  1975. var vueIds = this.$options.propsData.vueId;
  1976. if (vueIds) {
  1977. var vueId = vueIds.split(',')[0];
  1978. var object = center[vueId] = center[vueId] || {};
  1979. object[name] = value;
  1980. if (parents[vueId]) {
  1981. parents[vueId].$forceUpdate();
  1982. }
  1983. }
  1984. };
  1985. _vue.default.mixin({
  1986. destroyed: function destroyed() {
  1987. var propsData = this.$options.propsData;
  1988. var vueId = propsData && propsData.vueId;
  1989. if (vueId) {
  1990. delete center[vueId];
  1991. delete parents[vueId];
  1992. }
  1993. }
  1994. });
  1995. }
  1996. function parseBaseApp(vm, _ref4) {
  1997. var mocks = _ref4.mocks,
  1998. initRefs = _ref4.initRefs;
  1999. initEventChannel();
  2000. {
  2001. initScopedSlotsParams();
  2002. }
  2003. if (vm.$options.store) {
  2004. _vue.default.prototype.$store = vm.$options.store;
  2005. }
  2006. uniIdMixin(_vue.default);
  2007. _vue.default.prototype.mpHost = "mp-weixin";
  2008. _vue.default.mixin({
  2009. beforeCreate: function beforeCreate() {
  2010. if (!this.$options.mpType) {
  2011. return;
  2012. }
  2013. this.mpType = this.$options.mpType;
  2014. this.$mp = (0, _defineProperty2.default)({
  2015. data: {}
  2016. }, this.mpType, this.$options.mpInstance);
  2017. this.$scope = this.$options.mpInstance;
  2018. delete this.$options.mpType;
  2019. delete this.$options.mpInstance;
  2020. if (this.mpType === 'page' && typeof getApp === 'function') {
  2021. // hack vue-i18n
  2022. var app = getApp();
  2023. if (app.$vm && app.$vm.$i18n) {
  2024. this._i18n = app.$vm.$i18n;
  2025. }
  2026. }
  2027. if (this.mpType !== 'app') {
  2028. initRefs(this);
  2029. initMocks(this, mocks);
  2030. }
  2031. }
  2032. });
  2033. var appOptions = {
  2034. onLaunch: function onLaunch(args) {
  2035. if (this.$vm) {
  2036. // 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  2037. return;
  2038. }
  2039. {
  2040. if (wx.canIUse && !wx.canIUse('nextTick')) {
  2041. // 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  2042. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  2043. }
  2044. }
  2045. this.$vm = vm;
  2046. this.$vm.$mp = {
  2047. app: this
  2048. };
  2049. this.$vm.$scope = this;
  2050. // vm 上也挂载 globalData
  2051. this.$vm.globalData = this.globalData;
  2052. this.$vm._isMounted = true;
  2053. this.$vm.__call_hook('mounted', args);
  2054. this.$vm.__call_hook('onLaunch', args);
  2055. }
  2056. };
  2057. // 兼容旧版本 globalData
  2058. appOptions.globalData = vm.$options.globalData || {};
  2059. // 将 methods 中的方法挂在 getApp() 中
  2060. var methods = vm.$options.methods;
  2061. if (methods) {
  2062. Object.keys(methods).forEach(function (name) {
  2063. appOptions[name] = methods[name];
  2064. });
  2065. }
  2066. initAppLocale(_vue.default, vm, normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN);
  2067. initHooks(appOptions, hooks);
  2068. initUnknownHooks(appOptions, vm.$options);
  2069. return appOptions;
  2070. }
  2071. function parseApp(vm) {
  2072. return parseBaseApp(vm, {
  2073. mocks: mocks,
  2074. initRefs: initRefs
  2075. });
  2076. }
  2077. function createApp(vm) {
  2078. App(parseApp(vm));
  2079. return vm;
  2080. }
  2081. var encodeReserveRE = /[!'()*]/g;
  2082. var encodeReserveReplacer = function encodeReserveReplacer(c) {
  2083. return '%' + c.charCodeAt(0).toString(16);
  2084. };
  2085. var commaRE = /%2C/g;
  2086. // fixed encodeURIComponent which is more conformant to RFC3986:
  2087. // - escapes [!'()*]
  2088. // - preserve commas
  2089. var encode = function encode(str) {
  2090. return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
  2091. };
  2092. function stringifyQuery(obj) {
  2093. var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  2094. var res = obj ? Object.keys(obj).map(function (key) {
  2095. var val = obj[key];
  2096. if (val === undefined) {
  2097. return '';
  2098. }
  2099. if (val === null) {
  2100. return encodeStr(key);
  2101. }
  2102. if (Array.isArray(val)) {
  2103. var result = [];
  2104. val.forEach(function (val2) {
  2105. if (val2 === undefined) {
  2106. return;
  2107. }
  2108. if (val2 === null) {
  2109. result.push(encodeStr(key));
  2110. } else {
  2111. result.push(encodeStr(key) + '=' + encodeStr(val2));
  2112. }
  2113. });
  2114. return result.join('&');
  2115. }
  2116. return encodeStr(key) + '=' + encodeStr(val);
  2117. }).filter(function (x) {
  2118. return x.length > 0;
  2119. }).join('&') : null;
  2120. return res ? "?".concat(res) : '';
  2121. }
  2122. function parseBaseComponent(vueComponentOptions) {
  2123. var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  2124. isPage = _ref5.isPage,
  2125. initRelation = _ref5.initRelation;
  2126. var needVueOptions = arguments.length > 2 ? arguments[2] : undefined;
  2127. var _initVueComponent = initVueComponent(_vue.default, vueComponentOptions),
  2128. _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
  2129. VueComponent = _initVueComponent2[0],
  2130. vueOptions = _initVueComponent2[1];
  2131. var options = _objectSpread({
  2132. multipleSlots: true,
  2133. addGlobalClass: true
  2134. }, vueOptions.options || {});
  2135. {
  2136. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  2137. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  2138. Object.assign(options, vueOptions['mp-weixin'].options);
  2139. }
  2140. }
  2141. var componentOptions = {
  2142. options: options,
  2143. data: initData(vueOptions, _vue.default.prototype),
  2144. behaviors: initBehaviors(vueOptions, initBehavior),
  2145. properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
  2146. lifetimes: {
  2147. attached: function attached() {
  2148. var properties = this.properties;
  2149. var options = {
  2150. mpType: isPage.call(this) ? 'page' : 'component',
  2151. mpInstance: this,
  2152. propsData: properties
  2153. };
  2154. initVueIds(properties.vueId, this);
  2155. // 处理父子关系
  2156. initRelation.call(this, {
  2157. vuePid: this._$vuePid,
  2158. vueOptions: options
  2159. });
  2160. // 初始化 vue 实例
  2161. this.$vm = new VueComponent(options);
  2162. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  2163. initSlots(this.$vm, properties.vueSlots);
  2164. // 触发首次 setData
  2165. this.$vm.$mount();
  2166. },
  2167. ready: function ready() {
  2168. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  2169. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  2170. if (this.$vm) {
  2171. this.$vm._isMounted = true;
  2172. this.$vm.__call_hook('mounted');
  2173. this.$vm.__call_hook('onReady');
  2174. }
  2175. },
  2176. detached: function detached() {
  2177. this.$vm && this.$vm.$destroy();
  2178. }
  2179. },
  2180. pageLifetimes: {
  2181. show: function show(args) {
  2182. this.$vm && this.$vm.__call_hook('onPageShow', args);
  2183. },
  2184. hide: function hide() {
  2185. this.$vm && this.$vm.__call_hook('onPageHide');
  2186. },
  2187. resize: function resize(size) {
  2188. this.$vm && this.$vm.__call_hook('onPageResize', size);
  2189. }
  2190. },
  2191. methods: {
  2192. __l: handleLink,
  2193. __e: handleEvent
  2194. }
  2195. };
  2196. // externalClasses
  2197. if (vueOptions.externalClasses) {
  2198. componentOptions.externalClasses = vueOptions.externalClasses;
  2199. }
  2200. if (Array.isArray(vueOptions.wxsCallMethods)) {
  2201. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  2202. componentOptions.methods[callMethod] = function (args) {
  2203. return this.$vm[callMethod](args);
  2204. };
  2205. });
  2206. }
  2207. if (needVueOptions) {
  2208. return [componentOptions, vueOptions, VueComponent];
  2209. }
  2210. if (isPage) {
  2211. return componentOptions;
  2212. }
  2213. return [componentOptions, VueComponent];
  2214. }
  2215. function parseComponent(vueComponentOptions, needVueOptions) {
  2216. return parseBaseComponent(vueComponentOptions, {
  2217. isPage: isPage,
  2218. initRelation: initRelation
  2219. }, needVueOptions);
  2220. }
  2221. var hooks$1 = ['onShow', 'onHide', 'onUnload'];
  2222. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  2223. function parseBasePage(vuePageOptions) {
  2224. var _parseComponent = parseComponent(vuePageOptions, true),
  2225. _parseComponent2 = (0, _slicedToArray2.default)(_parseComponent, 2),
  2226. pageOptions = _parseComponent2[0],
  2227. vueOptions = _parseComponent2[1];
  2228. initHooks(pageOptions.methods, hooks$1, vueOptions);
  2229. pageOptions.methods.onLoad = function (query) {
  2230. this.options = query;
  2231. var copyQuery = Object.assign({}, query);
  2232. delete copyQuery.__id__;
  2233. this.$page = {
  2234. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery)
  2235. };
  2236. this.$vm.$mp.query = query; // 兼容 mpvue
  2237. this.$vm.__call_hook('onLoad', query);
  2238. };
  2239. {
  2240. initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  2241. }
  2242. {
  2243. initWorkletMethods(pageOptions.methods, vueOptions.methods);
  2244. }
  2245. return pageOptions;
  2246. }
  2247. function parsePage(vuePageOptions) {
  2248. return parseBasePage(vuePageOptions);
  2249. }
  2250. function createPage(vuePageOptions) {
  2251. {
  2252. return Component(parsePage(vuePageOptions));
  2253. }
  2254. }
  2255. function createComponent(vueOptions) {
  2256. {
  2257. return Component(parseComponent(vueOptions));
  2258. }
  2259. }
  2260. function createSubpackageApp(vm) {
  2261. var appOptions = parseApp(vm);
  2262. var app = getApp({
  2263. allowDefault: true
  2264. });
  2265. vm.$scope = app;
  2266. var globalData = app.globalData;
  2267. if (globalData) {
  2268. Object.keys(appOptions.globalData).forEach(function (name) {
  2269. if (!hasOwn(globalData, name)) {
  2270. globalData[name] = appOptions.globalData[name];
  2271. }
  2272. });
  2273. }
  2274. Object.keys(appOptions).forEach(function (name) {
  2275. if (!hasOwn(app, name)) {
  2276. app[name] = appOptions[name];
  2277. }
  2278. });
  2279. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2280. wx.onAppShow(function () {
  2281. for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
  2282. args[_key5] = arguments[_key5];
  2283. }
  2284. vm.__call_hook('onShow', args);
  2285. });
  2286. }
  2287. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2288. wx.onAppHide(function () {
  2289. for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
  2290. args[_key6] = arguments[_key6];
  2291. }
  2292. vm.__call_hook('onHide', args);
  2293. });
  2294. }
  2295. if (isFn(appOptions.onLaunch)) {
  2296. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2297. vm.__call_hook('onLaunch', args);
  2298. }
  2299. return vm;
  2300. }
  2301. function createPlugin(vm) {
  2302. var appOptions = parseApp(vm);
  2303. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2304. wx.onAppShow(function () {
  2305. for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
  2306. args[_key7] = arguments[_key7];
  2307. }
  2308. vm.__call_hook('onShow', args);
  2309. });
  2310. }
  2311. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2312. wx.onAppHide(function () {
  2313. for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
  2314. args[_key8] = arguments[_key8];
  2315. }
  2316. vm.__call_hook('onHide', args);
  2317. });
  2318. }
  2319. if (isFn(appOptions.onLaunch)) {
  2320. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2321. vm.__call_hook('onLaunch', args);
  2322. }
  2323. return vm;
  2324. }
  2325. todos.forEach(function (todoApi) {
  2326. protocols[todoApi] = false;
  2327. });
  2328. canIUses.forEach(function (canIUseApi) {
  2329. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
  2330. if (!wx.canIUse(apiName)) {
  2331. protocols[canIUseApi] = false;
  2332. }
  2333. });
  2334. var uni = {};
  2335. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  2336. uni = new Proxy({}, {
  2337. get: function get(target, name) {
  2338. if (hasOwn(target, name)) {
  2339. return target[name];
  2340. }
  2341. if (baseApi[name]) {
  2342. return baseApi[name];
  2343. }
  2344. if (api[name]) {
  2345. return promisify(name, api[name]);
  2346. }
  2347. {
  2348. if (extraApi[name]) {
  2349. return promisify(name, extraApi[name]);
  2350. }
  2351. if (todoApis[name]) {
  2352. return promisify(name, todoApis[name]);
  2353. }
  2354. }
  2355. if (eventApi[name]) {
  2356. return eventApi[name];
  2357. }
  2358. return promisify(name, wrapper(name, wx[name]));
  2359. },
  2360. set: function set(target, name, value) {
  2361. target[name] = value;
  2362. return true;
  2363. }
  2364. });
  2365. } else {
  2366. Object.keys(baseApi).forEach(function (name) {
  2367. uni[name] = baseApi[name];
  2368. });
  2369. {
  2370. Object.keys(todoApis).forEach(function (name) {
  2371. uni[name] = promisify(name, todoApis[name]);
  2372. });
  2373. Object.keys(extraApi).forEach(function (name) {
  2374. uni[name] = promisify(name, todoApis[name]);
  2375. });
  2376. }
  2377. Object.keys(eventApi).forEach(function (name) {
  2378. uni[name] = eventApi[name];
  2379. });
  2380. Object.keys(api).forEach(function (name) {
  2381. uni[name] = promisify(name, api[name]);
  2382. });
  2383. Object.keys(wx).forEach(function (name) {
  2384. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  2385. uni[name] = promisify(name, wrapper(name, wx[name]));
  2386. }
  2387. });
  2388. }
  2389. wx.createApp = createApp;
  2390. wx.createPage = createPage;
  2391. wx.createComponent = createComponent;
  2392. wx.createSubpackageApp = createSubpackageApp;
  2393. wx.createPlugin = createPlugin;
  2394. var uni$1 = uni;
  2395. var _default = uni$1;
  2396. exports.default = _default;
  2397. /* 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)))
  2398. /***/ }),
  2399. /* 3 */
  2400. /*!***********************************!*\
  2401. !*** (webpack)/buildin/global.js ***!
  2402. \***********************************/
  2403. /*! no static exports found */
  2404. /***/ (function(module, exports) {
  2405. var g;
  2406. // This works in non-strict mode
  2407. g = (function() {
  2408. return this;
  2409. })();
  2410. try {
  2411. // This works if eval is allowed (see CSP)
  2412. g = g || new Function("return this")();
  2413. } catch (e) {
  2414. // This works if the window reference is available
  2415. if (typeof window === "object") g = window;
  2416. }
  2417. // g can still be undefined, but nothing to do about it...
  2418. // We return undefined, instead of nothing here, so it's
  2419. // easier to handle this case. if(!global) { ...}
  2420. module.exports = g;
  2421. /***/ }),
  2422. /* 4 */
  2423. /*!**********************************************************************!*\
  2424. !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  2425. \**********************************************************************/
  2426. /*! no static exports found */
  2427. /***/ (function(module, exports) {
  2428. function _interopRequireDefault(obj) {
  2429. return obj && obj.__esModule ? obj : {
  2430. "default": obj
  2431. };
  2432. }
  2433. module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2434. /***/ }),
  2435. /* 5 */
  2436. /*!**************************************************************!*\
  2437. !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  2438. \**************************************************************/
  2439. /*! no static exports found */
  2440. /***/ (function(module, exports, __webpack_require__) {
  2441. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  2442. var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 7);
  2443. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2444. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  2445. function _slicedToArray(arr, i) {
  2446. return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
  2447. }
  2448. module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2449. /***/ }),
  2450. /* 6 */
  2451. /*!***************************************************************!*\
  2452. !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  2453. \***************************************************************/
  2454. /*! no static exports found */
  2455. /***/ (function(module, exports) {
  2456. function _arrayWithHoles(arr) {
  2457. if (Array.isArray(arr)) return arr;
  2458. }
  2459. module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2460. /***/ }),
  2461. /* 7 */
  2462. /*!*********************************************************************!*\
  2463. !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  2464. \*********************************************************************/
  2465. /*! no static exports found */
  2466. /***/ (function(module, exports) {
  2467. function _iterableToArrayLimit(arr, i) {
  2468. var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
  2469. if (null != _i) {
  2470. var _s,
  2471. _e,
  2472. _x,
  2473. _r,
  2474. _arr = [],
  2475. _n = !0,
  2476. _d = !1;
  2477. try {
  2478. if (_x = (_i = _i.call(arr)).next, 0 === i) {
  2479. if (Object(_i) !== _i) return;
  2480. _n = !1;
  2481. } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
  2482. ;
  2483. }
  2484. } catch (err) {
  2485. _d = !0, _e = err;
  2486. } finally {
  2487. try {
  2488. if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
  2489. } finally {
  2490. if (_d) throw _e;
  2491. }
  2492. }
  2493. return _arr;
  2494. }
  2495. }
  2496. module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2497. /***/ }),
  2498. /* 8 */
  2499. /*!***************************************************************************!*\
  2500. !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  2501. \***************************************************************************/
  2502. /*! no static exports found */
  2503. /***/ (function(module, exports, __webpack_require__) {
  2504. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2505. function _unsupportedIterableToArray(o, minLen) {
  2506. if (!o) return;
  2507. if (typeof o === "string") return arrayLikeToArray(o, minLen);
  2508. var n = Object.prototype.toString.call(o).slice(8, -1);
  2509. if (n === "Object" && o.constructor) n = o.constructor.name;
  2510. if (n === "Map" || n === "Set") return Array.from(o);
  2511. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
  2512. }
  2513. module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2514. /***/ }),
  2515. /* 9 */
  2516. /*!*****************************************************************!*\
  2517. !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  2518. \*****************************************************************/
  2519. /*! no static exports found */
  2520. /***/ (function(module, exports) {
  2521. function _arrayLikeToArray(arr, len) {
  2522. if (len == null || len > arr.length) len = arr.length;
  2523. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  2524. arr2[i] = arr[i];
  2525. }
  2526. return arr2;
  2527. }
  2528. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2529. /***/ }),
  2530. /* 10 */
  2531. /*!****************************************************************!*\
  2532. !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
  2533. \****************************************************************/
  2534. /*! no static exports found */
  2535. /***/ (function(module, exports) {
  2536. function _nonIterableRest() {
  2537. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2538. }
  2539. module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2540. /***/ }),
  2541. /* 11 */
  2542. /*!***************************************************************!*\
  2543. !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  2544. \***************************************************************/
  2545. /*! no static exports found */
  2546. /***/ (function(module, exports, __webpack_require__) {
  2547. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  2548. function _defineProperty(obj, key, value) {
  2549. key = toPropertyKey(key);
  2550. if (key in obj) {
  2551. Object.defineProperty(obj, key, {
  2552. value: value,
  2553. enumerable: true,
  2554. configurable: true,
  2555. writable: true
  2556. });
  2557. } else {
  2558. obj[key] = value;
  2559. }
  2560. return obj;
  2561. }
  2562. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2563. /***/ }),
  2564. /* 12 */
  2565. /*!**************************************************************!*\
  2566. !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  2567. \**************************************************************/
  2568. /*! no static exports found */
  2569. /***/ (function(module, exports, __webpack_require__) {
  2570. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2571. var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
  2572. function _toPropertyKey(arg) {
  2573. var key = toPrimitive(arg, "string");
  2574. return _typeof(key) === "symbol" ? key : String(key);
  2575. }
  2576. module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2577. /***/ }),
  2578. /* 13 */
  2579. /*!*******************************************************!*\
  2580. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  2581. \*******************************************************/
  2582. /*! no static exports found */
  2583. /***/ (function(module, exports) {
  2584. function _typeof(obj) {
  2585. "@babel/helpers - typeof";
  2586. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
  2587. return typeof obj;
  2588. } : function (obj) {
  2589. return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  2590. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
  2591. }
  2592. module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2593. /***/ }),
  2594. /* 14 */
  2595. /*!************************************************************!*\
  2596. !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  2597. \************************************************************/
  2598. /*! no static exports found */
  2599. /***/ (function(module, exports, __webpack_require__) {
  2600. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2601. function _toPrimitive(input, hint) {
  2602. if (_typeof(input) !== "object" || input === null) return input;
  2603. var prim = input[Symbol.toPrimitive];
  2604. if (prim !== undefined) {
  2605. var res = prim.call(input, hint || "default");
  2606. if (_typeof(res) !== "object") return res;
  2607. throw new TypeError("@@toPrimitive must return a primitive value.");
  2608. }
  2609. return (hint === "string" ? String : Number)(input);
  2610. }
  2611. module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2612. /***/ }),
  2613. /* 15 */
  2614. /*!**********************************************************!*\
  2615. !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
  2616. \**********************************************************/
  2617. /*! no static exports found */
  2618. /***/ (function(module, exports, __webpack_require__) {
  2619. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  2620. var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 17);
  2621. function _construct(Parent, args, Class) {
  2622. if (isNativeReflectConstruct()) {
  2623. module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports;
  2624. } else {
  2625. module.exports = _construct = function _construct(Parent, args, Class) {
  2626. var a = [null];
  2627. a.push.apply(a, args);
  2628. var Constructor = Function.bind.apply(Parent, a);
  2629. var instance = new Constructor();
  2630. if (Class) setPrototypeOf(instance, Class.prototype);
  2631. return instance;
  2632. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2633. }
  2634. return _construct.apply(null, arguments);
  2635. }
  2636. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2637. /***/ }),
  2638. /* 16 */
  2639. /*!***************************************************************!*\
  2640. !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  2641. \***************************************************************/
  2642. /*! no static exports found */
  2643. /***/ (function(module, exports) {
  2644. function _setPrototypeOf(o, p) {
  2645. module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  2646. o.__proto__ = p;
  2647. return o;
  2648. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2649. return _setPrototypeOf(o, p);
  2650. }
  2651. module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2652. /***/ }),
  2653. /* 17 */
  2654. /*!*************************************************************************!*\
  2655. !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  2656. \*************************************************************************/
  2657. /*! no static exports found */
  2658. /***/ (function(module, exports) {
  2659. function _isNativeReflectConstruct() {
  2660. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  2661. if (Reflect.construct.sham) return false;
  2662. if (typeof Proxy === "function") return true;
  2663. try {
  2664. Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  2665. return true;
  2666. } catch (e) {
  2667. return false;
  2668. }
  2669. }
  2670. module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2671. /***/ }),
  2672. /* 18 */
  2673. /*!******************************************************************!*\
  2674. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  2675. \******************************************************************/
  2676. /*! no static exports found */
  2677. /***/ (function(module, exports, __webpack_require__) {
  2678. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 19);
  2679. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  2680. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2681. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 21);
  2682. function _toConsumableArray(arr) {
  2683. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  2684. }
  2685. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2686. /***/ }),
  2687. /* 19 */
  2688. /*!******************************************************************!*\
  2689. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  2690. \******************************************************************/
  2691. /*! no static exports found */
  2692. /***/ (function(module, exports, __webpack_require__) {
  2693. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2694. function _arrayWithoutHoles(arr) {
  2695. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  2696. }
  2697. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2698. /***/ }),
  2699. /* 20 */
  2700. /*!****************************************************************!*\
  2701. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  2702. \****************************************************************/
  2703. /*! no static exports found */
  2704. /***/ (function(module, exports) {
  2705. function _iterableToArray(iter) {
  2706. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  2707. }
  2708. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2709. /***/ }),
  2710. /* 21 */
  2711. /*!******************************************************************!*\
  2712. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  2713. \******************************************************************/
  2714. /*! no static exports found */
  2715. /***/ (function(module, exports) {
  2716. function _nonIterableSpread() {
  2717. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2718. }
  2719. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2720. /***/ }),
  2721. /* 22 */
  2722. /*!*************************************************************!*\
  2723. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  2724. \*************************************************************/
  2725. /*! no static exports found */
  2726. /***/ (function(module, exports, __webpack_require__) {
  2727. "use strict";
  2728. /* WEBPACK VAR INJECTION */(function(uni, global) {
  2729. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  2730. Object.defineProperty(exports, "__esModule", {
  2731. value: true
  2732. });
  2733. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  2734. exports.compileI18nJsonStr = compileI18nJsonStr;
  2735. exports.hasI18nJson = hasI18nJson;
  2736. exports.initVueI18n = initVueI18n;
  2737. exports.isI18nStr = isI18nStr;
  2738. exports.isString = void 0;
  2739. exports.normalizeLocale = normalizeLocale;
  2740. exports.parseI18nJson = parseI18nJson;
  2741. exports.resolveLocale = resolveLocale;
  2742. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  2743. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  2744. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  2745. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  2746. var isArray = Array.isArray;
  2747. var isObject = function isObject(val) {
  2748. return val !== null && (0, _typeof2.default)(val) === 'object';
  2749. };
  2750. var defaultDelimiters = ['{', '}'];
  2751. var BaseFormatter = /*#__PURE__*/function () {
  2752. function BaseFormatter() {
  2753. (0, _classCallCheck2.default)(this, BaseFormatter);
  2754. this._caches = Object.create(null);
  2755. }
  2756. (0, _createClass2.default)(BaseFormatter, [{
  2757. key: "interpolate",
  2758. value: function interpolate(message, values) {
  2759. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  2760. if (!values) {
  2761. return [message];
  2762. }
  2763. var tokens = this._caches[message];
  2764. if (!tokens) {
  2765. tokens = parse(message, delimiters);
  2766. this._caches[message] = tokens;
  2767. }
  2768. return compile(tokens, values);
  2769. }
  2770. }]);
  2771. return BaseFormatter;
  2772. }();
  2773. exports.Formatter = BaseFormatter;
  2774. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  2775. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  2776. function parse(format, _ref) {
  2777. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  2778. startDelimiter = _ref2[0],
  2779. endDelimiter = _ref2[1];
  2780. var tokens = [];
  2781. var position = 0;
  2782. var text = '';
  2783. while (position < format.length) {
  2784. var char = format[position++];
  2785. if (char === startDelimiter) {
  2786. if (text) {
  2787. tokens.push({
  2788. type: 'text',
  2789. value: text
  2790. });
  2791. }
  2792. text = '';
  2793. var sub = '';
  2794. char = format[position++];
  2795. while (char !== undefined && char !== endDelimiter) {
  2796. sub += char;
  2797. char = format[position++];
  2798. }
  2799. var isClosed = char === endDelimiter;
  2800. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  2801. tokens.push({
  2802. value: sub,
  2803. type: type
  2804. });
  2805. }
  2806. // else if (char === '%') {
  2807. // // when found rails i18n syntax, skip text capture
  2808. // if (format[position] !== '{') {
  2809. // text += char
  2810. // }
  2811. // }
  2812. else {
  2813. text += char;
  2814. }
  2815. }
  2816. text && tokens.push({
  2817. type: 'text',
  2818. value: text
  2819. });
  2820. return tokens;
  2821. }
  2822. function compile(tokens, values) {
  2823. var compiled = [];
  2824. var index = 0;
  2825. var mode = isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  2826. if (mode === 'unknown') {
  2827. return compiled;
  2828. }
  2829. while (index < tokens.length) {
  2830. var token = tokens[index];
  2831. switch (token.type) {
  2832. case 'text':
  2833. compiled.push(token.value);
  2834. break;
  2835. case 'list':
  2836. compiled.push(values[parseInt(token.value, 10)]);
  2837. break;
  2838. case 'named':
  2839. if (mode === 'named') {
  2840. compiled.push(values[token.value]);
  2841. } else {
  2842. if (true) {
  2843. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  2844. }
  2845. }
  2846. break;
  2847. case 'unknown':
  2848. if (true) {
  2849. console.warn("Detect 'unknown' type of token!");
  2850. }
  2851. break;
  2852. }
  2853. index++;
  2854. }
  2855. return compiled;
  2856. }
  2857. var LOCALE_ZH_HANS = 'zh-Hans';
  2858. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  2859. var LOCALE_ZH_HANT = 'zh-Hant';
  2860. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  2861. var LOCALE_EN = 'en';
  2862. exports.LOCALE_EN = LOCALE_EN;
  2863. var LOCALE_FR = 'fr';
  2864. exports.LOCALE_FR = LOCALE_FR;
  2865. var LOCALE_ES = 'es';
  2866. exports.LOCALE_ES = LOCALE_ES;
  2867. var hasOwnProperty = Object.prototype.hasOwnProperty;
  2868. var hasOwn = function hasOwn(val, key) {
  2869. return hasOwnProperty.call(val, key);
  2870. };
  2871. var defaultFormatter = new BaseFormatter();
  2872. function include(str, parts) {
  2873. return !!parts.find(function (part) {
  2874. return str.indexOf(part) !== -1;
  2875. });
  2876. }
  2877. function startsWith(str, parts) {
  2878. return parts.find(function (part) {
  2879. return str.indexOf(part) === 0;
  2880. });
  2881. }
  2882. function normalizeLocale(locale, messages) {
  2883. if (!locale) {
  2884. return;
  2885. }
  2886. locale = locale.trim().replace(/_/g, '-');
  2887. if (messages && messages[locale]) {
  2888. return locale;
  2889. }
  2890. locale = locale.toLowerCase();
  2891. if (locale.indexOf('zh') === 0) {
  2892. if (locale.indexOf('-hans') > -1) {
  2893. return LOCALE_ZH_HANS;
  2894. }
  2895. if (locale.indexOf('-hant') > -1) {
  2896. return LOCALE_ZH_HANT;
  2897. }
  2898. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  2899. return LOCALE_ZH_HANT;
  2900. }
  2901. return LOCALE_ZH_HANS;
  2902. }
  2903. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  2904. if (lang) {
  2905. return lang;
  2906. }
  2907. }
  2908. var I18n = /*#__PURE__*/function () {
  2909. function I18n(_ref3) {
  2910. var locale = _ref3.locale,
  2911. fallbackLocale = _ref3.fallbackLocale,
  2912. messages = _ref3.messages,
  2913. watcher = _ref3.watcher,
  2914. formater = _ref3.formater;
  2915. (0, _classCallCheck2.default)(this, I18n);
  2916. this.locale = LOCALE_EN;
  2917. this.fallbackLocale = LOCALE_EN;
  2918. this.message = {};
  2919. this.messages = {};
  2920. this.watchers = [];
  2921. if (fallbackLocale) {
  2922. this.fallbackLocale = fallbackLocale;
  2923. }
  2924. this.formater = formater || defaultFormatter;
  2925. this.messages = messages || {};
  2926. this.setLocale(locale || LOCALE_EN);
  2927. if (watcher) {
  2928. this.watchLocale(watcher);
  2929. }
  2930. }
  2931. (0, _createClass2.default)(I18n, [{
  2932. key: "setLocale",
  2933. value: function setLocale(locale) {
  2934. var _this = this;
  2935. var oldLocale = this.locale;
  2936. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  2937. if (!this.messages[this.locale]) {
  2938. // 可能初始化时不存在
  2939. this.messages[this.locale] = {};
  2940. }
  2941. this.message = this.messages[this.locale];
  2942. // 仅发生变化时,通知
  2943. if (oldLocale !== this.locale) {
  2944. this.watchers.forEach(function (watcher) {
  2945. watcher(_this.locale, oldLocale);
  2946. });
  2947. }
  2948. }
  2949. }, {
  2950. key: "getLocale",
  2951. value: function getLocale() {
  2952. return this.locale;
  2953. }
  2954. }, {
  2955. key: "watchLocale",
  2956. value: function watchLocale(fn) {
  2957. var _this2 = this;
  2958. var index = this.watchers.push(fn) - 1;
  2959. return function () {
  2960. _this2.watchers.splice(index, 1);
  2961. };
  2962. }
  2963. }, {
  2964. key: "add",
  2965. value: function add(locale, message) {
  2966. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  2967. var curMessages = this.messages[locale];
  2968. if (curMessages) {
  2969. if (override) {
  2970. Object.assign(curMessages, message);
  2971. } else {
  2972. Object.keys(message).forEach(function (key) {
  2973. if (!hasOwn(curMessages, key)) {
  2974. curMessages[key] = message[key];
  2975. }
  2976. });
  2977. }
  2978. } else {
  2979. this.messages[locale] = message;
  2980. }
  2981. }
  2982. }, {
  2983. key: "f",
  2984. value: function f(message, values, delimiters) {
  2985. return this.formater.interpolate(message, values, delimiters).join('');
  2986. }
  2987. }, {
  2988. key: "t",
  2989. value: function t(key, locale, values) {
  2990. var message = this.message;
  2991. if (typeof locale === 'string') {
  2992. locale = normalizeLocale(locale, this.messages);
  2993. locale && (message = this.messages[locale]);
  2994. } else {
  2995. values = locale;
  2996. }
  2997. if (!hasOwn(message, key)) {
  2998. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  2999. return key;
  3000. }
  3001. return this.formater.interpolate(message[key], values).join('');
  3002. }
  3003. }]);
  3004. return I18n;
  3005. }();
  3006. exports.I18n = I18n;
  3007. function watchAppLocale(appVm, i18n) {
  3008. // 需要保证 watch 的触发在组件渲染之前
  3009. if (appVm.$watchLocale) {
  3010. // vue2
  3011. appVm.$watchLocale(function (newLocale) {
  3012. i18n.setLocale(newLocale);
  3013. });
  3014. } else {
  3015. appVm.$watch(function () {
  3016. return appVm.$locale;
  3017. }, function (newLocale) {
  3018. i18n.setLocale(newLocale);
  3019. });
  3020. }
  3021. }
  3022. function getDefaultLocale() {
  3023. if (typeof uni !== 'undefined' && uni.getLocale) {
  3024. return uni.getLocale();
  3025. }
  3026. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  3027. if (typeof global !== 'undefined' && global.getLocale) {
  3028. return global.getLocale();
  3029. }
  3030. return LOCALE_EN;
  3031. }
  3032. function initVueI18n(locale) {
  3033. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3034. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  3035. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  3036. // 兼容旧版本入参
  3037. if (typeof locale !== 'string') {
  3038. var _ref4 = [messages, locale];
  3039. locale = _ref4[0];
  3040. messages = _ref4[1];
  3041. }
  3042. if (typeof locale !== 'string') {
  3043. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  3044. locale = getDefaultLocale();
  3045. }
  3046. if (typeof fallbackLocale !== 'string') {
  3047. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  3048. }
  3049. var i18n = new I18n({
  3050. locale: locale,
  3051. fallbackLocale: fallbackLocale,
  3052. messages: messages,
  3053. watcher: watcher
  3054. });
  3055. var _t = function t(key, values) {
  3056. if (typeof getApp !== 'function') {
  3057. // app view
  3058. /* eslint-disable no-func-assign */
  3059. _t = function t(key, values) {
  3060. return i18n.t(key, values);
  3061. };
  3062. } else {
  3063. var isWatchedAppLocale = false;
  3064. _t = function t(key, values) {
  3065. var appVm = getApp().$vm;
  3066. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  3067. // options: {
  3068. // type: Array,
  3069. // default () {
  3070. // return [{
  3071. // icon: 'shop',
  3072. // text: t("uni-goods-nav.options.shop"),
  3073. // }, {
  3074. // icon: 'cart',
  3075. // text: t("uni-goods-nav.options.cart")
  3076. // }]
  3077. // }
  3078. // },
  3079. if (appVm) {
  3080. // 触发响应式
  3081. appVm.$locale;
  3082. if (!isWatchedAppLocale) {
  3083. isWatchedAppLocale = true;
  3084. watchAppLocale(appVm, i18n);
  3085. }
  3086. }
  3087. return i18n.t(key, values);
  3088. };
  3089. }
  3090. return _t(key, values);
  3091. };
  3092. return {
  3093. i18n: i18n,
  3094. f: function f(message, values, delimiters) {
  3095. return i18n.f(message, values, delimiters);
  3096. },
  3097. t: function t(key, values) {
  3098. return _t(key, values);
  3099. },
  3100. add: function add(locale, message) {
  3101. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3102. return i18n.add(locale, message, override);
  3103. },
  3104. watch: function watch(fn) {
  3105. return i18n.watchLocale(fn);
  3106. },
  3107. getLocale: function getLocale() {
  3108. return i18n.getLocale();
  3109. },
  3110. setLocale: function setLocale(newLocale) {
  3111. return i18n.setLocale(newLocale);
  3112. }
  3113. };
  3114. }
  3115. var isString = function isString(val) {
  3116. return typeof val === 'string';
  3117. };
  3118. exports.isString = isString;
  3119. var formater;
  3120. function hasI18nJson(jsonObj, delimiters) {
  3121. if (!formater) {
  3122. formater = new BaseFormatter();
  3123. }
  3124. return walkJsonObj(jsonObj, function (jsonObj, key) {
  3125. var value = jsonObj[key];
  3126. if (isString(value)) {
  3127. if (isI18nStr(value, delimiters)) {
  3128. return true;
  3129. }
  3130. } else {
  3131. return hasI18nJson(value, delimiters);
  3132. }
  3133. });
  3134. }
  3135. function parseI18nJson(jsonObj, values, delimiters) {
  3136. if (!formater) {
  3137. formater = new BaseFormatter();
  3138. }
  3139. walkJsonObj(jsonObj, function (jsonObj, key) {
  3140. var value = jsonObj[key];
  3141. if (isString(value)) {
  3142. if (isI18nStr(value, delimiters)) {
  3143. jsonObj[key] = compileStr(value, values, delimiters);
  3144. }
  3145. } else {
  3146. parseI18nJson(value, values, delimiters);
  3147. }
  3148. });
  3149. return jsonObj;
  3150. }
  3151. function compileI18nJsonStr(jsonStr, _ref5) {
  3152. var locale = _ref5.locale,
  3153. locales = _ref5.locales,
  3154. delimiters = _ref5.delimiters;
  3155. if (!isI18nStr(jsonStr, delimiters)) {
  3156. return jsonStr;
  3157. }
  3158. if (!formater) {
  3159. formater = new BaseFormatter();
  3160. }
  3161. var localeValues = [];
  3162. Object.keys(locales).forEach(function (name) {
  3163. if (name !== locale) {
  3164. localeValues.push({
  3165. locale: name,
  3166. values: locales[name]
  3167. });
  3168. }
  3169. });
  3170. localeValues.unshift({
  3171. locale: locale,
  3172. values: locales[locale]
  3173. });
  3174. try {
  3175. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  3176. } catch (e) {}
  3177. return jsonStr;
  3178. }
  3179. function isI18nStr(value, delimiters) {
  3180. return value.indexOf(delimiters[0]) > -1;
  3181. }
  3182. function compileStr(value, values, delimiters) {
  3183. return formater.interpolate(value, values, delimiters).join('');
  3184. }
  3185. function compileValue(jsonObj, key, localeValues, delimiters) {
  3186. var value = jsonObj[key];
  3187. if (isString(value)) {
  3188. // 存在国际化
  3189. if (isI18nStr(value, delimiters)) {
  3190. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  3191. if (localeValues.length > 1) {
  3192. // 格式化国际化语言
  3193. var valueLocales = jsonObj[key + 'Locales'] = {};
  3194. localeValues.forEach(function (localValue) {
  3195. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  3196. });
  3197. }
  3198. }
  3199. } else {
  3200. compileJsonObj(value, localeValues, delimiters);
  3201. }
  3202. }
  3203. function compileJsonObj(jsonObj, localeValues, delimiters) {
  3204. walkJsonObj(jsonObj, function (jsonObj, key) {
  3205. compileValue(jsonObj, key, localeValues, delimiters);
  3206. });
  3207. return jsonObj;
  3208. }
  3209. function walkJsonObj(jsonObj, walk) {
  3210. if (isArray(jsonObj)) {
  3211. for (var i = 0; i < jsonObj.length; i++) {
  3212. if (walk(jsonObj, i)) {
  3213. return true;
  3214. }
  3215. }
  3216. } else if (isObject(jsonObj)) {
  3217. for (var key in jsonObj) {
  3218. if (walk(jsonObj, key)) {
  3219. return true;
  3220. }
  3221. }
  3222. }
  3223. return false;
  3224. }
  3225. function resolveLocale(locales) {
  3226. return function (locale) {
  3227. if (!locale) {
  3228. return locale;
  3229. }
  3230. locale = normalizeLocale(locale) || locale;
  3231. return resolveLocaleChain(locale).find(function (locale) {
  3232. return locales.indexOf(locale) > -1;
  3233. });
  3234. };
  3235. }
  3236. function resolveLocaleChain(locale) {
  3237. var chain = [];
  3238. var tokens = locale.split('-');
  3239. while (tokens.length) {
  3240. chain.push(tokens.join('-'));
  3241. tokens.pop();
  3242. }
  3243. return chain;
  3244. }
  3245. /* 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)))
  3246. /***/ }),
  3247. /* 23 */
  3248. /*!***************************************************************!*\
  3249. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  3250. \***************************************************************/
  3251. /*! no static exports found */
  3252. /***/ (function(module, exports) {
  3253. function _classCallCheck(instance, Constructor) {
  3254. if (!(instance instanceof Constructor)) {
  3255. throw new TypeError("Cannot call a class as a function");
  3256. }
  3257. }
  3258. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3259. /***/ }),
  3260. /* 24 */
  3261. /*!************************************************************!*\
  3262. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  3263. \************************************************************/
  3264. /*! no static exports found */
  3265. /***/ (function(module, exports, __webpack_require__) {
  3266. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  3267. function _defineProperties(target, props) {
  3268. for (var i = 0; i < props.length; i++) {
  3269. var descriptor = props[i];
  3270. descriptor.enumerable = descriptor.enumerable || false;
  3271. descriptor.configurable = true;
  3272. if ("value" in descriptor) descriptor.writable = true;
  3273. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  3274. }
  3275. }
  3276. function _createClass(Constructor, protoProps, staticProps) {
  3277. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  3278. if (staticProps) _defineProperties(Constructor, staticProps);
  3279. Object.defineProperty(Constructor, "prototype", {
  3280. writable: false
  3281. });
  3282. return Constructor;
  3283. }
  3284. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3285. /***/ }),
  3286. /* 25 */
  3287. /*!******************************************************************************************!*\
  3288. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  3289. \******************************************************************************************/
  3290. /*! exports provided: default */
  3291. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3292. "use strict";
  3293. __webpack_require__.r(__webpack_exports__);
  3294. /* WEBPACK VAR INJECTION */(function(global) {/*!
  3295. * Vue.js v2.6.11
  3296. * (c) 2014-2022 Evan You
  3297. * Released under the MIT License.
  3298. */
  3299. /* */
  3300. var emptyObject = Object.freeze({});
  3301. // These helpers produce better VM code in JS engines due to their
  3302. // explicitness and function inlining.
  3303. function isUndef (v) {
  3304. return v === undefined || v === null
  3305. }
  3306. function isDef (v) {
  3307. return v !== undefined && v !== null
  3308. }
  3309. function isTrue (v) {
  3310. return v === true
  3311. }
  3312. function isFalse (v) {
  3313. return v === false
  3314. }
  3315. /**
  3316. * Check if value is primitive.
  3317. */
  3318. function isPrimitive (value) {
  3319. return (
  3320. typeof value === 'string' ||
  3321. typeof value === 'number' ||
  3322. // $flow-disable-line
  3323. typeof value === 'symbol' ||
  3324. typeof value === 'boolean'
  3325. )
  3326. }
  3327. /**
  3328. * Quick object check - this is primarily used to tell
  3329. * Objects from primitive values when we know the value
  3330. * is a JSON-compliant type.
  3331. */
  3332. function isObject (obj) {
  3333. return obj !== null && typeof obj === 'object'
  3334. }
  3335. /**
  3336. * Get the raw type string of a value, e.g., [object Object].
  3337. */
  3338. var _toString = Object.prototype.toString;
  3339. function toRawType (value) {
  3340. return _toString.call(value).slice(8, -1)
  3341. }
  3342. /**
  3343. * Strict object type check. Only returns true
  3344. * for plain JavaScript objects.
  3345. */
  3346. function isPlainObject (obj) {
  3347. return _toString.call(obj) === '[object Object]'
  3348. }
  3349. function isRegExp (v) {
  3350. return _toString.call(v) === '[object RegExp]'
  3351. }
  3352. /**
  3353. * Check if val is a valid array index.
  3354. */
  3355. function isValidArrayIndex (val) {
  3356. var n = parseFloat(String(val));
  3357. return n >= 0 && Math.floor(n) === n && isFinite(val)
  3358. }
  3359. function isPromise (val) {
  3360. return (
  3361. isDef(val) &&
  3362. typeof val.then === 'function' &&
  3363. typeof val.catch === 'function'
  3364. )
  3365. }
  3366. /**
  3367. * Convert a value to a string that is actually rendered.
  3368. */
  3369. function toString (val) {
  3370. return val == null
  3371. ? ''
  3372. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  3373. ? JSON.stringify(val, null, 2)
  3374. : String(val)
  3375. }
  3376. /**
  3377. * Convert an input value to a number for persistence.
  3378. * If the conversion fails, return original string.
  3379. */
  3380. function toNumber (val) {
  3381. var n = parseFloat(val);
  3382. return isNaN(n) ? val : n
  3383. }
  3384. /**
  3385. * Make a map and return a function for checking if a key
  3386. * is in that map.
  3387. */
  3388. function makeMap (
  3389. str,
  3390. expectsLowerCase
  3391. ) {
  3392. var map = Object.create(null);
  3393. var list = str.split(',');
  3394. for (var i = 0; i < list.length; i++) {
  3395. map[list[i]] = true;
  3396. }
  3397. return expectsLowerCase
  3398. ? function (val) { return map[val.toLowerCase()]; }
  3399. : function (val) { return map[val]; }
  3400. }
  3401. /**
  3402. * Check if a tag is a built-in tag.
  3403. */
  3404. var isBuiltInTag = makeMap('slot,component', true);
  3405. /**
  3406. * Check if an attribute is a reserved attribute.
  3407. */
  3408. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  3409. /**
  3410. * Remove an item from an array.
  3411. */
  3412. function remove (arr, item) {
  3413. if (arr.length) {
  3414. var index = arr.indexOf(item);
  3415. if (index > -1) {
  3416. return arr.splice(index, 1)
  3417. }
  3418. }
  3419. }
  3420. /**
  3421. * Check whether an object has the property.
  3422. */
  3423. var hasOwnProperty = Object.prototype.hasOwnProperty;
  3424. function hasOwn (obj, key) {
  3425. return hasOwnProperty.call(obj, key)
  3426. }
  3427. /**
  3428. * Create a cached version of a pure function.
  3429. */
  3430. function cached (fn) {
  3431. var cache = Object.create(null);
  3432. return (function cachedFn (str) {
  3433. var hit = cache[str];
  3434. return hit || (cache[str] = fn(str))
  3435. })
  3436. }
  3437. /**
  3438. * Camelize a hyphen-delimited string.
  3439. */
  3440. var camelizeRE = /-(\w)/g;
  3441. var camelize = cached(function (str) {
  3442. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  3443. });
  3444. /**
  3445. * Capitalize a string.
  3446. */
  3447. var capitalize = cached(function (str) {
  3448. return str.charAt(0).toUpperCase() + str.slice(1)
  3449. });
  3450. /**
  3451. * Hyphenate a camelCase string.
  3452. */
  3453. var hyphenateRE = /\B([A-Z])/g;
  3454. var hyphenate = cached(function (str) {
  3455. return str.replace(hyphenateRE, '-$1').toLowerCase()
  3456. });
  3457. /**
  3458. * Simple bind polyfill for environments that do not support it,
  3459. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  3460. * since native bind is now performant enough in most browsers.
  3461. * But removing it would mean breaking code that was able to run in
  3462. * PhantomJS 1.x, so this must be kept for backward compatibility.
  3463. */
  3464. /* istanbul ignore next */
  3465. function polyfillBind (fn, ctx) {
  3466. function boundFn (a) {
  3467. var l = arguments.length;
  3468. return l
  3469. ? l > 1
  3470. ? fn.apply(ctx, arguments)
  3471. : fn.call(ctx, a)
  3472. : fn.call(ctx)
  3473. }
  3474. boundFn._length = fn.length;
  3475. return boundFn
  3476. }
  3477. function nativeBind (fn, ctx) {
  3478. return fn.bind(ctx)
  3479. }
  3480. var bind = Function.prototype.bind
  3481. ? nativeBind
  3482. : polyfillBind;
  3483. /**
  3484. * Convert an Array-like object to a real Array.
  3485. */
  3486. function toArray (list, start) {
  3487. start = start || 0;
  3488. var i = list.length - start;
  3489. var ret = new Array(i);
  3490. while (i--) {
  3491. ret[i] = list[i + start];
  3492. }
  3493. return ret
  3494. }
  3495. /**
  3496. * Mix properties into target object.
  3497. */
  3498. function extend (to, _from) {
  3499. for (var key in _from) {
  3500. to[key] = _from[key];
  3501. }
  3502. return to
  3503. }
  3504. /**
  3505. * Merge an Array of Objects into a single Object.
  3506. */
  3507. function toObject (arr) {
  3508. var res = {};
  3509. for (var i = 0; i < arr.length; i++) {
  3510. if (arr[i]) {
  3511. extend(res, arr[i]);
  3512. }
  3513. }
  3514. return res
  3515. }
  3516. /* eslint-disable no-unused-vars */
  3517. /**
  3518. * Perform no operation.
  3519. * Stubbing args to make Flow happy without leaving useless transpiled code
  3520. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  3521. */
  3522. function noop (a, b, c) {}
  3523. /**
  3524. * Always return false.
  3525. */
  3526. var no = function (a, b, c) { return false; };
  3527. /* eslint-enable no-unused-vars */
  3528. /**
  3529. * Return the same value.
  3530. */
  3531. var identity = function (_) { return _; };
  3532. /**
  3533. * Check if two values are loosely equal - that is,
  3534. * if they are plain objects, do they have the same shape?
  3535. */
  3536. function looseEqual (a, b) {
  3537. if (a === b) { return true }
  3538. var isObjectA = isObject(a);
  3539. var isObjectB = isObject(b);
  3540. if (isObjectA && isObjectB) {
  3541. try {
  3542. var isArrayA = Array.isArray(a);
  3543. var isArrayB = Array.isArray(b);
  3544. if (isArrayA && isArrayB) {
  3545. return a.length === b.length && a.every(function (e, i) {
  3546. return looseEqual(e, b[i])
  3547. })
  3548. } else if (a instanceof Date && b instanceof Date) {
  3549. return a.getTime() === b.getTime()
  3550. } else if (!isArrayA && !isArrayB) {
  3551. var keysA = Object.keys(a);
  3552. var keysB = Object.keys(b);
  3553. return keysA.length === keysB.length && keysA.every(function (key) {
  3554. return looseEqual(a[key], b[key])
  3555. })
  3556. } else {
  3557. /* istanbul ignore next */
  3558. return false
  3559. }
  3560. } catch (e) {
  3561. /* istanbul ignore next */
  3562. return false
  3563. }
  3564. } else if (!isObjectA && !isObjectB) {
  3565. return String(a) === String(b)
  3566. } else {
  3567. return false
  3568. }
  3569. }
  3570. /**
  3571. * Return the first index at which a loosely equal value can be
  3572. * found in the array (if value is a plain object, the array must
  3573. * contain an object of the same shape), or -1 if it is not present.
  3574. */
  3575. function looseIndexOf (arr, val) {
  3576. for (var i = 0; i < arr.length; i++) {
  3577. if (looseEqual(arr[i], val)) { return i }
  3578. }
  3579. return -1
  3580. }
  3581. /**
  3582. * Ensure a function is called only once.
  3583. */
  3584. function once (fn) {
  3585. var called = false;
  3586. return function () {
  3587. if (!called) {
  3588. called = true;
  3589. fn.apply(this, arguments);
  3590. }
  3591. }
  3592. }
  3593. var ASSET_TYPES = [
  3594. 'component',
  3595. 'directive',
  3596. 'filter'
  3597. ];
  3598. var LIFECYCLE_HOOKS = [
  3599. 'beforeCreate',
  3600. 'created',
  3601. 'beforeMount',
  3602. 'mounted',
  3603. 'beforeUpdate',
  3604. 'updated',
  3605. 'beforeDestroy',
  3606. 'destroyed',
  3607. 'activated',
  3608. 'deactivated',
  3609. 'errorCaptured',
  3610. 'serverPrefetch'
  3611. ];
  3612. /* */
  3613. var config = ({
  3614. /**
  3615. * Option merge strategies (used in core/util/options)
  3616. */
  3617. // $flow-disable-line
  3618. optionMergeStrategies: Object.create(null),
  3619. /**
  3620. * Whether to suppress warnings.
  3621. */
  3622. silent: false,
  3623. /**
  3624. * Show production mode tip message on boot?
  3625. */
  3626. productionTip: "development" !== 'production',
  3627. /**
  3628. * Whether to enable devtools
  3629. */
  3630. devtools: "development" !== 'production',
  3631. /**
  3632. * Whether to record perf
  3633. */
  3634. performance: false,
  3635. /**
  3636. * Error handler for watcher errors
  3637. */
  3638. errorHandler: null,
  3639. /**
  3640. * Warn handler for watcher warns
  3641. */
  3642. warnHandler: null,
  3643. /**
  3644. * Ignore certain custom elements
  3645. */
  3646. ignoredElements: [],
  3647. /**
  3648. * Custom user key aliases for v-on
  3649. */
  3650. // $flow-disable-line
  3651. keyCodes: Object.create(null),
  3652. /**
  3653. * Check if a tag is reserved so that it cannot be registered as a
  3654. * component. This is platform-dependent and may be overwritten.
  3655. */
  3656. isReservedTag: no,
  3657. /**
  3658. * Check if an attribute is reserved so that it cannot be used as a component
  3659. * prop. This is platform-dependent and may be overwritten.
  3660. */
  3661. isReservedAttr: no,
  3662. /**
  3663. * Check if a tag is an unknown element.
  3664. * Platform-dependent.
  3665. */
  3666. isUnknownElement: no,
  3667. /**
  3668. * Get the namespace of an element
  3669. */
  3670. getTagNamespace: noop,
  3671. /**
  3672. * Parse the real tag name for the specific platform.
  3673. */
  3674. parsePlatformTagName: identity,
  3675. /**
  3676. * Check if an attribute must be bound using property, e.g. value
  3677. * Platform-dependent.
  3678. */
  3679. mustUseProp: no,
  3680. /**
  3681. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  3682. * This will significantly reduce performance if set to false.
  3683. */
  3684. async: true,
  3685. /**
  3686. * Exposed for legacy reasons
  3687. */
  3688. _lifecycleHooks: LIFECYCLE_HOOKS
  3689. });
  3690. /* */
  3691. /**
  3692. * unicode letters used for parsing html tags, component names and property paths.
  3693. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  3694. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  3695. */
  3696. 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/;
  3697. /**
  3698. * Check if a string starts with $ or _
  3699. */
  3700. function isReserved (str) {
  3701. var c = (str + '').charCodeAt(0);
  3702. return c === 0x24 || c === 0x5F
  3703. }
  3704. /**
  3705. * Define a property.
  3706. */
  3707. function def (obj, key, val, enumerable) {
  3708. Object.defineProperty(obj, key, {
  3709. value: val,
  3710. enumerable: !!enumerable,
  3711. writable: true,
  3712. configurable: true
  3713. });
  3714. }
  3715. /**
  3716. * Parse simple path.
  3717. */
  3718. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  3719. function parsePath (path) {
  3720. if (bailRE.test(path)) {
  3721. return
  3722. }
  3723. var segments = path.split('.');
  3724. return function (obj) {
  3725. for (var i = 0; i < segments.length; i++) {
  3726. if (!obj) { return }
  3727. obj = obj[segments[i]];
  3728. }
  3729. return obj
  3730. }
  3731. }
  3732. /* */
  3733. // can we use __proto__?
  3734. var hasProto = '__proto__' in {};
  3735. // Browser environment sniffing
  3736. var inBrowser = typeof window !== 'undefined';
  3737. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  3738. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  3739. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  3740. var isIE = UA && /msie|trident/.test(UA);
  3741. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  3742. var isEdge = UA && UA.indexOf('edge/') > 0;
  3743. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  3744. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  3745. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  3746. var isPhantomJS = UA && /phantomjs/.test(UA);
  3747. var isFF = UA && UA.match(/firefox\/(\d+)/);
  3748. // Firefox has a "watch" function on Object.prototype...
  3749. var nativeWatch = ({}).watch;
  3750. if (inBrowser) {
  3751. try {
  3752. var opts = {};
  3753. Object.defineProperty(opts, 'passive', ({
  3754. get: function get () {
  3755. }
  3756. })); // https://github.com/facebook/flow/issues/285
  3757. window.addEventListener('test-passive', null, opts);
  3758. } catch (e) {}
  3759. }
  3760. // this needs to be lazy-evaled because vue may be required before
  3761. // vue-server-renderer can set VUE_ENV
  3762. var _isServer;
  3763. var isServerRendering = function () {
  3764. if (_isServer === undefined) {
  3765. /* istanbul ignore if */
  3766. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  3767. // detect presence of vue-server-renderer and avoid
  3768. // Webpack shimming the process
  3769. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  3770. } else {
  3771. _isServer = false;
  3772. }
  3773. }
  3774. return _isServer
  3775. };
  3776. // detect devtools
  3777. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  3778. /* istanbul ignore next */
  3779. function isNative (Ctor) {
  3780. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  3781. }
  3782. var hasSymbol =
  3783. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  3784. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  3785. var _Set;
  3786. /* istanbul ignore if */ // $flow-disable-line
  3787. if (typeof Set !== 'undefined' && isNative(Set)) {
  3788. // use native Set when available.
  3789. _Set = Set;
  3790. } else {
  3791. // a non-standard Set polyfill that only works with primitive keys.
  3792. _Set = /*@__PURE__*/(function () {
  3793. function Set () {
  3794. this.set = Object.create(null);
  3795. }
  3796. Set.prototype.has = function has (key) {
  3797. return this.set[key] === true
  3798. };
  3799. Set.prototype.add = function add (key) {
  3800. this.set[key] = true;
  3801. };
  3802. Set.prototype.clear = function clear () {
  3803. this.set = Object.create(null);
  3804. };
  3805. return Set;
  3806. }());
  3807. }
  3808. /* */
  3809. var warn = noop;
  3810. var tip = noop;
  3811. var generateComponentTrace = (noop); // work around flow check
  3812. var formatComponentName = (noop);
  3813. if (true) {
  3814. var hasConsole = typeof console !== 'undefined';
  3815. var classifyRE = /(?:^|[-_])(\w)/g;
  3816. var classify = function (str) { return str
  3817. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  3818. .replace(/[-_]/g, ''); };
  3819. warn = function (msg, vm) {
  3820. var trace = vm ? generateComponentTrace(vm) : '';
  3821. if (config.warnHandler) {
  3822. config.warnHandler.call(null, msg, vm, trace);
  3823. } else if (hasConsole && (!config.silent)) {
  3824. console.error(("[Vue warn]: " + msg + trace));
  3825. }
  3826. };
  3827. tip = function (msg, vm) {
  3828. if (hasConsole && (!config.silent)) {
  3829. console.warn("[Vue tip]: " + msg + (
  3830. vm ? generateComponentTrace(vm) : ''
  3831. ));
  3832. }
  3833. };
  3834. formatComponentName = function (vm, includeFile) {
  3835. if (vm.$root === vm) {
  3836. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  3837. return ('') + vm.$options.__file
  3838. }
  3839. return '<Root>'
  3840. }
  3841. var options = typeof vm === 'function' && vm.cid != null
  3842. ? vm.options
  3843. : vm._isVue
  3844. ? vm.$options || vm.constructor.options
  3845. : vm;
  3846. var name = options.name || options._componentTag;
  3847. var file = options.__file;
  3848. if (!name && file) {
  3849. var match = file.match(/([^/\\]+)\.vue$/);
  3850. name = match && match[1];
  3851. }
  3852. return (
  3853. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  3854. (file && includeFile !== false ? (" at " + file) : '')
  3855. )
  3856. };
  3857. var repeat = function (str, n) {
  3858. var res = '';
  3859. while (n) {
  3860. if (n % 2 === 1) { res += str; }
  3861. if (n > 1) { str += str; }
  3862. n >>= 1;
  3863. }
  3864. return res
  3865. };
  3866. generateComponentTrace = function (vm) {
  3867. if (vm._isVue && vm.$parent) {
  3868. var tree = [];
  3869. var currentRecursiveSequence = 0;
  3870. while (vm && vm.$options.name !== 'PageBody') {
  3871. if (tree.length > 0) {
  3872. var last = tree[tree.length - 1];
  3873. if (last.constructor === vm.constructor) {
  3874. currentRecursiveSequence++;
  3875. vm = vm.$parent;
  3876. continue
  3877. } else if (currentRecursiveSequence > 0) {
  3878. tree[tree.length - 1] = [last, currentRecursiveSequence];
  3879. currentRecursiveSequence = 0;
  3880. }
  3881. }
  3882. !vm.$options.isReserved && tree.push(vm);
  3883. vm = vm.$parent;
  3884. }
  3885. return '\n\nfound in\n\n' + tree
  3886. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  3887. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  3888. : formatComponentName(vm))); })
  3889. .join('\n')
  3890. } else {
  3891. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  3892. }
  3893. };
  3894. }
  3895. /* */
  3896. var uid = 0;
  3897. /**
  3898. * A dep is an observable that can have multiple
  3899. * directives subscribing to it.
  3900. */
  3901. var Dep = function Dep () {
  3902. this.id = uid++;
  3903. this.subs = [];
  3904. };
  3905. Dep.prototype.addSub = function addSub (sub) {
  3906. this.subs.push(sub);
  3907. };
  3908. Dep.prototype.removeSub = function removeSub (sub) {
  3909. remove(this.subs, sub);
  3910. };
  3911. Dep.prototype.depend = function depend () {
  3912. if (Dep.SharedObject.target) {
  3913. Dep.SharedObject.target.addDep(this);
  3914. }
  3915. };
  3916. Dep.prototype.notify = function notify () {
  3917. // stabilize the subscriber list first
  3918. var subs = this.subs.slice();
  3919. if ( true && !config.async) {
  3920. // subs aren't sorted in scheduler if not running async
  3921. // we need to sort them now to make sure they fire in correct
  3922. // order
  3923. subs.sort(function (a, b) { return a.id - b.id; });
  3924. }
  3925. for (var i = 0, l = subs.length; i < l; i++) {
  3926. subs[i].update();
  3927. }
  3928. };
  3929. // The current target watcher being evaluated.
  3930. // This is globally unique because only one watcher
  3931. // can be evaluated at a time.
  3932. // fixed by xxxxxx (nvue shared vuex)
  3933. /* eslint-disable no-undef */
  3934. Dep.SharedObject = {};
  3935. Dep.SharedObject.target = null;
  3936. Dep.SharedObject.targetStack = [];
  3937. function pushTarget (target) {
  3938. Dep.SharedObject.targetStack.push(target);
  3939. Dep.SharedObject.target = target;
  3940. Dep.target = target;
  3941. }
  3942. function popTarget () {
  3943. Dep.SharedObject.targetStack.pop();
  3944. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  3945. Dep.target = Dep.SharedObject.target;
  3946. }
  3947. /* */
  3948. var VNode = function VNode (
  3949. tag,
  3950. data,
  3951. children,
  3952. text,
  3953. elm,
  3954. context,
  3955. componentOptions,
  3956. asyncFactory
  3957. ) {
  3958. this.tag = tag;
  3959. this.data = data;
  3960. this.children = children;
  3961. this.text = text;
  3962. this.elm = elm;
  3963. this.ns = undefined;
  3964. this.context = context;
  3965. this.fnContext = undefined;
  3966. this.fnOptions = undefined;
  3967. this.fnScopeId = undefined;
  3968. this.key = data && data.key;
  3969. this.componentOptions = componentOptions;
  3970. this.componentInstance = undefined;
  3971. this.parent = undefined;
  3972. this.raw = false;
  3973. this.isStatic = false;
  3974. this.isRootInsert = true;
  3975. this.isComment = false;
  3976. this.isCloned = false;
  3977. this.isOnce = false;
  3978. this.asyncFactory = asyncFactory;
  3979. this.asyncMeta = undefined;
  3980. this.isAsyncPlaceholder = false;
  3981. };
  3982. var prototypeAccessors = { child: { configurable: true } };
  3983. // DEPRECATED: alias for componentInstance for backwards compat.
  3984. /* istanbul ignore next */
  3985. prototypeAccessors.child.get = function () {
  3986. return this.componentInstance
  3987. };
  3988. Object.defineProperties( VNode.prototype, prototypeAccessors );
  3989. var createEmptyVNode = function (text) {
  3990. if ( text === void 0 ) text = '';
  3991. var node = new VNode();
  3992. node.text = text;
  3993. node.isComment = true;
  3994. return node
  3995. };
  3996. function createTextVNode (val) {
  3997. return new VNode(undefined, undefined, undefined, String(val))
  3998. }
  3999. // optimized shallow clone
  4000. // used for static nodes and slot nodes because they may be reused across
  4001. // multiple renders, cloning them avoids errors when DOM manipulations rely
  4002. // on their elm reference.
  4003. function cloneVNode (vnode) {
  4004. var cloned = new VNode(
  4005. vnode.tag,
  4006. vnode.data,
  4007. // #7975
  4008. // clone children array to avoid mutating original in case of cloning
  4009. // a child.
  4010. vnode.children && vnode.children.slice(),
  4011. vnode.text,
  4012. vnode.elm,
  4013. vnode.context,
  4014. vnode.componentOptions,
  4015. vnode.asyncFactory
  4016. );
  4017. cloned.ns = vnode.ns;
  4018. cloned.isStatic = vnode.isStatic;
  4019. cloned.key = vnode.key;
  4020. cloned.isComment = vnode.isComment;
  4021. cloned.fnContext = vnode.fnContext;
  4022. cloned.fnOptions = vnode.fnOptions;
  4023. cloned.fnScopeId = vnode.fnScopeId;
  4024. cloned.asyncMeta = vnode.asyncMeta;
  4025. cloned.isCloned = true;
  4026. return cloned
  4027. }
  4028. /*
  4029. * not type checking this file because flow doesn't play well with
  4030. * dynamically accessing methods on Array prototype
  4031. */
  4032. var arrayProto = Array.prototype;
  4033. var arrayMethods = Object.create(arrayProto);
  4034. var methodsToPatch = [
  4035. 'push',
  4036. 'pop',
  4037. 'shift',
  4038. 'unshift',
  4039. 'splice',
  4040. 'sort',
  4041. 'reverse'
  4042. ];
  4043. /**
  4044. * Intercept mutating methods and emit events
  4045. */
  4046. methodsToPatch.forEach(function (method) {
  4047. // cache original method
  4048. var original = arrayProto[method];
  4049. def(arrayMethods, method, function mutator () {
  4050. var args = [], len = arguments.length;
  4051. while ( len-- ) args[ len ] = arguments[ len ];
  4052. var result = original.apply(this, args);
  4053. var ob = this.__ob__;
  4054. var inserted;
  4055. switch (method) {
  4056. case 'push':
  4057. case 'unshift':
  4058. inserted = args;
  4059. break
  4060. case 'splice':
  4061. inserted = args.slice(2);
  4062. break
  4063. }
  4064. if (inserted) { ob.observeArray(inserted); }
  4065. // notify change
  4066. ob.dep.notify();
  4067. return result
  4068. });
  4069. });
  4070. /* */
  4071. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  4072. /**
  4073. * In some cases we may want to disable observation inside a component's
  4074. * update computation.
  4075. */
  4076. var shouldObserve = true;
  4077. function toggleObserving (value) {
  4078. shouldObserve = value;
  4079. }
  4080. /**
  4081. * Observer class that is attached to each observed
  4082. * object. Once attached, the observer converts the target
  4083. * object's property keys into getter/setters that
  4084. * collect dependencies and dispatch updates.
  4085. */
  4086. var Observer = function Observer (value) {
  4087. this.value = value;
  4088. this.dep = new Dep();
  4089. this.vmCount = 0;
  4090. def(value, '__ob__', this);
  4091. if (Array.isArray(value)) {
  4092. if (hasProto) {
  4093. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  4094. if(value.push !== value.__proto__.push){
  4095. copyAugment(value, arrayMethods, arrayKeys);
  4096. } else {
  4097. protoAugment(value, arrayMethods);
  4098. }
  4099. }
  4100. } else {
  4101. copyAugment(value, arrayMethods, arrayKeys);
  4102. }
  4103. this.observeArray(value);
  4104. } else {
  4105. this.walk(value);
  4106. }
  4107. };
  4108. /**
  4109. * Walk through all properties and convert them into
  4110. * getter/setters. This method should only be called when
  4111. * value type is Object.
  4112. */
  4113. Observer.prototype.walk = function walk (obj) {
  4114. var keys = Object.keys(obj);
  4115. for (var i = 0; i < keys.length; i++) {
  4116. defineReactive$$1(obj, keys[i]);
  4117. }
  4118. };
  4119. /**
  4120. * Observe a list of Array items.
  4121. */
  4122. Observer.prototype.observeArray = function observeArray (items) {
  4123. for (var i = 0, l = items.length; i < l; i++) {
  4124. observe(items[i]);
  4125. }
  4126. };
  4127. // helpers
  4128. /**
  4129. * Augment a target Object or Array by intercepting
  4130. * the prototype chain using __proto__
  4131. */
  4132. function protoAugment (target, src) {
  4133. /* eslint-disable no-proto */
  4134. target.__proto__ = src;
  4135. /* eslint-enable no-proto */
  4136. }
  4137. /**
  4138. * Augment a target Object or Array by defining
  4139. * hidden properties.
  4140. */
  4141. /* istanbul ignore next */
  4142. function copyAugment (target, src, keys) {
  4143. for (var i = 0, l = keys.length; i < l; i++) {
  4144. var key = keys[i];
  4145. def(target, key, src[key]);
  4146. }
  4147. }
  4148. /**
  4149. * Attempt to create an observer instance for a value,
  4150. * returns the new observer if successfully observed,
  4151. * or the existing observer if the value already has one.
  4152. */
  4153. function observe (value, asRootData) {
  4154. if (!isObject(value) || value instanceof VNode) {
  4155. return
  4156. }
  4157. var ob;
  4158. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  4159. ob = value.__ob__;
  4160. } else if (
  4161. shouldObserve &&
  4162. !isServerRendering() &&
  4163. (Array.isArray(value) || isPlainObject(value)) &&
  4164. Object.isExtensible(value) &&
  4165. !value._isVue &&
  4166. !value.__v_isMPComponent
  4167. ) {
  4168. ob = new Observer(value);
  4169. }
  4170. if (asRootData && ob) {
  4171. ob.vmCount++;
  4172. }
  4173. return ob
  4174. }
  4175. /**
  4176. * Define a reactive property on an Object.
  4177. */
  4178. function defineReactive$$1 (
  4179. obj,
  4180. key,
  4181. val,
  4182. customSetter,
  4183. shallow
  4184. ) {
  4185. var dep = new Dep();
  4186. var property = Object.getOwnPropertyDescriptor(obj, key);
  4187. if (property && property.configurable === false) {
  4188. return
  4189. }
  4190. // cater for pre-defined getter/setters
  4191. var getter = property && property.get;
  4192. var setter = property && property.set;
  4193. if ((!getter || setter) && arguments.length === 2) {
  4194. val = obj[key];
  4195. }
  4196. var childOb = !shallow && observe(val);
  4197. Object.defineProperty(obj, key, {
  4198. enumerable: true,
  4199. configurable: true,
  4200. get: function reactiveGetter () {
  4201. var value = getter ? getter.call(obj) : val;
  4202. if (Dep.SharedObject.target) { // fixed by xxxxxx
  4203. dep.depend();
  4204. if (childOb) {
  4205. childOb.dep.depend();
  4206. if (Array.isArray(value)) {
  4207. dependArray(value);
  4208. }
  4209. }
  4210. }
  4211. return value
  4212. },
  4213. set: function reactiveSetter (newVal) {
  4214. var value = getter ? getter.call(obj) : val;
  4215. /* eslint-disable no-self-compare */
  4216. if (newVal === value || (newVal !== newVal && value !== value)) {
  4217. return
  4218. }
  4219. /* eslint-enable no-self-compare */
  4220. if ( true && customSetter) {
  4221. customSetter();
  4222. }
  4223. // #7981: for accessor properties without setter
  4224. if (getter && !setter) { return }
  4225. if (setter) {
  4226. setter.call(obj, newVal);
  4227. } else {
  4228. val = newVal;
  4229. }
  4230. childOb = !shallow && observe(newVal);
  4231. dep.notify();
  4232. }
  4233. });
  4234. }
  4235. /**
  4236. * Set a property on an object. Adds the new property and
  4237. * triggers change notification if the property doesn't
  4238. * already exist.
  4239. */
  4240. function set (target, key, val) {
  4241. if ( true &&
  4242. (isUndef(target) || isPrimitive(target))
  4243. ) {
  4244. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  4245. }
  4246. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4247. target.length = Math.max(target.length, key);
  4248. target.splice(key, 1, val);
  4249. return val
  4250. }
  4251. if (key in target && !(key in Object.prototype)) {
  4252. target[key] = val;
  4253. return val
  4254. }
  4255. var ob = (target).__ob__;
  4256. if (target._isVue || (ob && ob.vmCount)) {
  4257. true && warn(
  4258. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  4259. 'at runtime - declare it upfront in the data option.'
  4260. );
  4261. return val
  4262. }
  4263. if (!ob) {
  4264. target[key] = val;
  4265. return val
  4266. }
  4267. defineReactive$$1(ob.value, key, val);
  4268. ob.dep.notify();
  4269. return val
  4270. }
  4271. /**
  4272. * Delete a property and trigger change if necessary.
  4273. */
  4274. function del (target, key) {
  4275. if ( true &&
  4276. (isUndef(target) || isPrimitive(target))
  4277. ) {
  4278. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  4279. }
  4280. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4281. target.splice(key, 1);
  4282. return
  4283. }
  4284. var ob = (target).__ob__;
  4285. if (target._isVue || (ob && ob.vmCount)) {
  4286. true && warn(
  4287. 'Avoid deleting properties on a Vue instance or its root $data ' +
  4288. '- just set it to null.'
  4289. );
  4290. return
  4291. }
  4292. if (!hasOwn(target, key)) {
  4293. return
  4294. }
  4295. delete target[key];
  4296. if (!ob) {
  4297. return
  4298. }
  4299. ob.dep.notify();
  4300. }
  4301. /**
  4302. * Collect dependencies on array elements when the array is touched, since
  4303. * we cannot intercept array element access like property getters.
  4304. */
  4305. function dependArray (value) {
  4306. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  4307. e = value[i];
  4308. e && e.__ob__ && e.__ob__.dep.depend();
  4309. if (Array.isArray(e)) {
  4310. dependArray(e);
  4311. }
  4312. }
  4313. }
  4314. /* */
  4315. /**
  4316. * Option overwriting strategies are functions that handle
  4317. * how to merge a parent option value and a child option
  4318. * value into the final value.
  4319. */
  4320. var strats = config.optionMergeStrategies;
  4321. /**
  4322. * Options with restrictions
  4323. */
  4324. if (true) {
  4325. strats.el = strats.propsData = function (parent, child, vm, key) {
  4326. if (!vm) {
  4327. warn(
  4328. "option \"" + key + "\" can only be used during instance " +
  4329. 'creation with the `new` keyword.'
  4330. );
  4331. }
  4332. return defaultStrat(parent, child)
  4333. };
  4334. }
  4335. /**
  4336. * Helper that recursively merges two data objects together.
  4337. */
  4338. function mergeData (to, from) {
  4339. if (!from) { return to }
  4340. var key, toVal, fromVal;
  4341. var keys = hasSymbol
  4342. ? Reflect.ownKeys(from)
  4343. : Object.keys(from);
  4344. for (var i = 0; i < keys.length; i++) {
  4345. key = keys[i];
  4346. // in case the object is already observed...
  4347. if (key === '__ob__') { continue }
  4348. toVal = to[key];
  4349. fromVal = from[key];
  4350. if (!hasOwn(to, key)) {
  4351. set(to, key, fromVal);
  4352. } else if (
  4353. toVal !== fromVal &&
  4354. isPlainObject(toVal) &&
  4355. isPlainObject(fromVal)
  4356. ) {
  4357. mergeData(toVal, fromVal);
  4358. }
  4359. }
  4360. return to
  4361. }
  4362. /**
  4363. * Data
  4364. */
  4365. function mergeDataOrFn (
  4366. parentVal,
  4367. childVal,
  4368. vm
  4369. ) {
  4370. if (!vm) {
  4371. // in a Vue.extend merge, both should be functions
  4372. if (!childVal) {
  4373. return parentVal
  4374. }
  4375. if (!parentVal) {
  4376. return childVal
  4377. }
  4378. // when parentVal & childVal are both present,
  4379. // we need to return a function that returns the
  4380. // merged result of both functions... no need to
  4381. // check if parentVal is a function here because
  4382. // it has to be a function to pass previous merges.
  4383. return function mergedDataFn () {
  4384. return mergeData(
  4385. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  4386. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  4387. )
  4388. }
  4389. } else {
  4390. return function mergedInstanceDataFn () {
  4391. // instance merge
  4392. var instanceData = typeof childVal === 'function'
  4393. ? childVal.call(vm, vm)
  4394. : childVal;
  4395. var defaultData = typeof parentVal === 'function'
  4396. ? parentVal.call(vm, vm)
  4397. : parentVal;
  4398. if (instanceData) {
  4399. return mergeData(instanceData, defaultData)
  4400. } else {
  4401. return defaultData
  4402. }
  4403. }
  4404. }
  4405. }
  4406. strats.data = function (
  4407. parentVal,
  4408. childVal,
  4409. vm
  4410. ) {
  4411. if (!vm) {
  4412. if (childVal && typeof childVal !== 'function') {
  4413. true && warn(
  4414. 'The "data" option should be a function ' +
  4415. 'that returns a per-instance value in component ' +
  4416. 'definitions.',
  4417. vm
  4418. );
  4419. return parentVal
  4420. }
  4421. return mergeDataOrFn(parentVal, childVal)
  4422. }
  4423. return mergeDataOrFn(parentVal, childVal, vm)
  4424. };
  4425. /**
  4426. * Hooks and props are merged as arrays.
  4427. */
  4428. function mergeHook (
  4429. parentVal,
  4430. childVal
  4431. ) {
  4432. var res = childVal
  4433. ? parentVal
  4434. ? parentVal.concat(childVal)
  4435. : Array.isArray(childVal)
  4436. ? childVal
  4437. : [childVal]
  4438. : parentVal;
  4439. return res
  4440. ? dedupeHooks(res)
  4441. : res
  4442. }
  4443. function dedupeHooks (hooks) {
  4444. var res = [];
  4445. for (var i = 0; i < hooks.length; i++) {
  4446. if (res.indexOf(hooks[i]) === -1) {
  4447. res.push(hooks[i]);
  4448. }
  4449. }
  4450. return res
  4451. }
  4452. LIFECYCLE_HOOKS.forEach(function (hook) {
  4453. strats[hook] = mergeHook;
  4454. });
  4455. /**
  4456. * Assets
  4457. *
  4458. * When a vm is present (instance creation), we need to do
  4459. * a three-way merge between constructor options, instance
  4460. * options and parent options.
  4461. */
  4462. function mergeAssets (
  4463. parentVal,
  4464. childVal,
  4465. vm,
  4466. key
  4467. ) {
  4468. var res = Object.create(parentVal || null);
  4469. if (childVal) {
  4470. true && assertObjectType(key, childVal, vm);
  4471. return extend(res, childVal)
  4472. } else {
  4473. return res
  4474. }
  4475. }
  4476. ASSET_TYPES.forEach(function (type) {
  4477. strats[type + 's'] = mergeAssets;
  4478. });
  4479. /**
  4480. * Watchers.
  4481. *
  4482. * Watchers hashes should not overwrite one
  4483. * another, so we merge them as arrays.
  4484. */
  4485. strats.watch = function (
  4486. parentVal,
  4487. childVal,
  4488. vm,
  4489. key
  4490. ) {
  4491. // work around Firefox's Object.prototype.watch...
  4492. if (parentVal === nativeWatch) { parentVal = undefined; }
  4493. if (childVal === nativeWatch) { childVal = undefined; }
  4494. /* istanbul ignore if */
  4495. if (!childVal) { return Object.create(parentVal || null) }
  4496. if (true) {
  4497. assertObjectType(key, childVal, vm);
  4498. }
  4499. if (!parentVal) { return childVal }
  4500. var ret = {};
  4501. extend(ret, parentVal);
  4502. for (var key$1 in childVal) {
  4503. var parent = ret[key$1];
  4504. var child = childVal[key$1];
  4505. if (parent && !Array.isArray(parent)) {
  4506. parent = [parent];
  4507. }
  4508. ret[key$1] = parent
  4509. ? parent.concat(child)
  4510. : Array.isArray(child) ? child : [child];
  4511. }
  4512. return ret
  4513. };
  4514. /**
  4515. * Other object hashes.
  4516. */
  4517. strats.props =
  4518. strats.methods =
  4519. strats.inject =
  4520. strats.computed = function (
  4521. parentVal,
  4522. childVal,
  4523. vm,
  4524. key
  4525. ) {
  4526. if (childVal && "development" !== 'production') {
  4527. assertObjectType(key, childVal, vm);
  4528. }
  4529. if (!parentVal) { return childVal }
  4530. var ret = Object.create(null);
  4531. extend(ret, parentVal);
  4532. if (childVal) { extend(ret, childVal); }
  4533. return ret
  4534. };
  4535. strats.provide = mergeDataOrFn;
  4536. /**
  4537. * Default strategy.
  4538. */
  4539. var defaultStrat = function (parentVal, childVal) {
  4540. return childVal === undefined
  4541. ? parentVal
  4542. : childVal
  4543. };
  4544. /**
  4545. * Validate component names
  4546. */
  4547. function checkComponents (options) {
  4548. for (var key in options.components) {
  4549. validateComponentName(key);
  4550. }
  4551. }
  4552. function validateComponentName (name) {
  4553. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  4554. warn(
  4555. 'Invalid component name: "' + name + '". Component names ' +
  4556. 'should conform to valid custom element name in html5 specification.'
  4557. );
  4558. }
  4559. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  4560. warn(
  4561. 'Do not use built-in or reserved HTML elements as component ' +
  4562. 'id: ' + name
  4563. );
  4564. }
  4565. }
  4566. /**
  4567. * Ensure all props option syntax are normalized into the
  4568. * Object-based format.
  4569. */
  4570. function normalizeProps (options, vm) {
  4571. var props = options.props;
  4572. if (!props) { return }
  4573. var res = {};
  4574. var i, val, name;
  4575. if (Array.isArray(props)) {
  4576. i = props.length;
  4577. while (i--) {
  4578. val = props[i];
  4579. if (typeof val === 'string') {
  4580. name = camelize(val);
  4581. res[name] = { type: null };
  4582. } else if (true) {
  4583. warn('props must be strings when using array syntax.');
  4584. }
  4585. }
  4586. } else if (isPlainObject(props)) {
  4587. for (var key in props) {
  4588. val = props[key];
  4589. name = camelize(key);
  4590. res[name] = isPlainObject(val)
  4591. ? val
  4592. : { type: val };
  4593. }
  4594. } else if (true) {
  4595. warn(
  4596. "Invalid value for option \"props\": expected an Array or an Object, " +
  4597. "but got " + (toRawType(props)) + ".",
  4598. vm
  4599. );
  4600. }
  4601. options.props = res;
  4602. }
  4603. /**
  4604. * Normalize all injections into Object-based format
  4605. */
  4606. function normalizeInject (options, vm) {
  4607. var inject = options.inject;
  4608. if (!inject) { return }
  4609. var normalized = options.inject = {};
  4610. if (Array.isArray(inject)) {
  4611. for (var i = 0; i < inject.length; i++) {
  4612. normalized[inject[i]] = { from: inject[i] };
  4613. }
  4614. } else if (isPlainObject(inject)) {
  4615. for (var key in inject) {
  4616. var val = inject[key];
  4617. normalized[key] = isPlainObject(val)
  4618. ? extend({ from: key }, val)
  4619. : { from: val };
  4620. }
  4621. } else if (true) {
  4622. warn(
  4623. "Invalid value for option \"inject\": expected an Array or an Object, " +
  4624. "but got " + (toRawType(inject)) + ".",
  4625. vm
  4626. );
  4627. }
  4628. }
  4629. /**
  4630. * Normalize raw function directives into object format.
  4631. */
  4632. function normalizeDirectives (options) {
  4633. var dirs = options.directives;
  4634. if (dirs) {
  4635. for (var key in dirs) {
  4636. var def$$1 = dirs[key];
  4637. if (typeof def$$1 === 'function') {
  4638. dirs[key] = { bind: def$$1, update: def$$1 };
  4639. }
  4640. }
  4641. }
  4642. }
  4643. function assertObjectType (name, value, vm) {
  4644. if (!isPlainObject(value)) {
  4645. warn(
  4646. "Invalid value for option \"" + name + "\": expected an Object, " +
  4647. "but got " + (toRawType(value)) + ".",
  4648. vm
  4649. );
  4650. }
  4651. }
  4652. /**
  4653. * Merge two option objects into a new one.
  4654. * Core utility used in both instantiation and inheritance.
  4655. */
  4656. function mergeOptions (
  4657. parent,
  4658. child,
  4659. vm
  4660. ) {
  4661. if (true) {
  4662. checkComponents(child);
  4663. }
  4664. if (typeof child === 'function') {
  4665. child = child.options;
  4666. }
  4667. normalizeProps(child, vm);
  4668. normalizeInject(child, vm);
  4669. normalizeDirectives(child);
  4670. // Apply extends and mixins on the child options,
  4671. // but only if it is a raw options object that isn't
  4672. // the result of another mergeOptions call.
  4673. // Only merged options has the _base property.
  4674. if (!child._base) {
  4675. if (child.extends) {
  4676. parent = mergeOptions(parent, child.extends, vm);
  4677. }
  4678. if (child.mixins) {
  4679. for (var i = 0, l = child.mixins.length; i < l; i++) {
  4680. parent = mergeOptions(parent, child.mixins[i], vm);
  4681. }
  4682. }
  4683. }
  4684. var options = {};
  4685. var key;
  4686. for (key in parent) {
  4687. mergeField(key);
  4688. }
  4689. for (key in child) {
  4690. if (!hasOwn(parent, key)) {
  4691. mergeField(key);
  4692. }
  4693. }
  4694. function mergeField (key) {
  4695. var strat = strats[key] || defaultStrat;
  4696. options[key] = strat(parent[key], child[key], vm, key);
  4697. }
  4698. return options
  4699. }
  4700. /**
  4701. * Resolve an asset.
  4702. * This function is used because child instances need access
  4703. * to assets defined in its ancestor chain.
  4704. */
  4705. function resolveAsset (
  4706. options,
  4707. type,
  4708. id,
  4709. warnMissing
  4710. ) {
  4711. /* istanbul ignore if */
  4712. if (typeof id !== 'string') {
  4713. return
  4714. }
  4715. var assets = options[type];
  4716. // check local registration variations first
  4717. if (hasOwn(assets, id)) { return assets[id] }
  4718. var camelizedId = camelize(id);
  4719. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  4720. var PascalCaseId = capitalize(camelizedId);
  4721. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  4722. // fallback to prototype chain
  4723. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  4724. if ( true && warnMissing && !res) {
  4725. warn(
  4726. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  4727. options
  4728. );
  4729. }
  4730. return res
  4731. }
  4732. /* */
  4733. function validateProp (
  4734. key,
  4735. propOptions,
  4736. propsData,
  4737. vm
  4738. ) {
  4739. var prop = propOptions[key];
  4740. var absent = !hasOwn(propsData, key);
  4741. var value = propsData[key];
  4742. // boolean casting
  4743. var booleanIndex = getTypeIndex(Boolean, prop.type);
  4744. if (booleanIndex > -1) {
  4745. if (absent && !hasOwn(prop, 'default')) {
  4746. value = false;
  4747. } else if (value === '' || value === hyphenate(key)) {
  4748. // only cast empty string / same name to boolean if
  4749. // boolean has higher priority
  4750. var stringIndex = getTypeIndex(String, prop.type);
  4751. if (stringIndex < 0 || booleanIndex < stringIndex) {
  4752. value = true;
  4753. }
  4754. }
  4755. }
  4756. // check default value
  4757. if (value === undefined) {
  4758. value = getPropDefaultValue(vm, prop, key);
  4759. // since the default value is a fresh copy,
  4760. // make sure to observe it.
  4761. var prevShouldObserve = shouldObserve;
  4762. toggleObserving(true);
  4763. observe(value);
  4764. toggleObserving(prevShouldObserve);
  4765. }
  4766. if (
  4767. true
  4768. ) {
  4769. assertProp(prop, key, value, vm, absent);
  4770. }
  4771. return value
  4772. }
  4773. /**
  4774. * Get the default value of a prop.
  4775. */
  4776. function getPropDefaultValue (vm, prop, key) {
  4777. // no default, return undefined
  4778. if (!hasOwn(prop, 'default')) {
  4779. return undefined
  4780. }
  4781. var def = prop.default;
  4782. // warn against non-factory defaults for Object & Array
  4783. if ( true && isObject(def)) {
  4784. warn(
  4785. 'Invalid default value for prop "' + key + '": ' +
  4786. 'Props with type Object/Array must use a factory function ' +
  4787. 'to return the default value.',
  4788. vm
  4789. );
  4790. }
  4791. // the raw prop value was also undefined from previous render,
  4792. // return previous default value to avoid unnecessary watcher trigger
  4793. if (vm && vm.$options.propsData &&
  4794. vm.$options.propsData[key] === undefined &&
  4795. vm._props[key] !== undefined
  4796. ) {
  4797. return vm._props[key]
  4798. }
  4799. // call factory function for non-Function types
  4800. // a value is Function if its prototype is function even across different execution context
  4801. return typeof def === 'function' && getType(prop.type) !== 'Function'
  4802. ? def.call(vm)
  4803. : def
  4804. }
  4805. /**
  4806. * Assert whether a prop is valid.
  4807. */
  4808. function assertProp (
  4809. prop,
  4810. name,
  4811. value,
  4812. vm,
  4813. absent
  4814. ) {
  4815. if (prop.required && absent) {
  4816. warn(
  4817. 'Missing required prop: "' + name + '"',
  4818. vm
  4819. );
  4820. return
  4821. }
  4822. if (value == null && !prop.required) {
  4823. return
  4824. }
  4825. var type = prop.type;
  4826. var valid = !type || type === true;
  4827. var expectedTypes = [];
  4828. if (type) {
  4829. if (!Array.isArray(type)) {
  4830. type = [type];
  4831. }
  4832. for (var i = 0; i < type.length && !valid; i++) {
  4833. var assertedType = assertType(value, type[i]);
  4834. expectedTypes.push(assertedType.expectedType || '');
  4835. valid = assertedType.valid;
  4836. }
  4837. }
  4838. if (!valid) {
  4839. warn(
  4840. getInvalidTypeMessage(name, value, expectedTypes),
  4841. vm
  4842. );
  4843. return
  4844. }
  4845. var validator = prop.validator;
  4846. if (validator) {
  4847. if (!validator(value)) {
  4848. warn(
  4849. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  4850. vm
  4851. );
  4852. }
  4853. }
  4854. }
  4855. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  4856. function assertType (value, type) {
  4857. var valid;
  4858. var expectedType = getType(type);
  4859. if (simpleCheckRE.test(expectedType)) {
  4860. var t = typeof value;
  4861. valid = t === expectedType.toLowerCase();
  4862. // for primitive wrapper objects
  4863. if (!valid && t === 'object') {
  4864. valid = value instanceof type;
  4865. }
  4866. } else if (expectedType === 'Object') {
  4867. valid = isPlainObject(value);
  4868. } else if (expectedType === 'Array') {
  4869. valid = Array.isArray(value);
  4870. } else {
  4871. valid = value instanceof type;
  4872. }
  4873. return {
  4874. valid: valid,
  4875. expectedType: expectedType
  4876. }
  4877. }
  4878. /**
  4879. * Use function string name to check built-in types,
  4880. * because a simple equality check will fail when running
  4881. * across different vms / iframes.
  4882. */
  4883. function getType (fn) {
  4884. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  4885. return match ? match[1] : ''
  4886. }
  4887. function isSameType (a, b) {
  4888. return getType(a) === getType(b)
  4889. }
  4890. function getTypeIndex (type, expectedTypes) {
  4891. if (!Array.isArray(expectedTypes)) {
  4892. return isSameType(expectedTypes, type) ? 0 : -1
  4893. }
  4894. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  4895. if (isSameType(expectedTypes[i], type)) {
  4896. return i
  4897. }
  4898. }
  4899. return -1
  4900. }
  4901. function getInvalidTypeMessage (name, value, expectedTypes) {
  4902. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  4903. " Expected " + (expectedTypes.map(capitalize).join(', '));
  4904. var expectedType = expectedTypes[0];
  4905. var receivedType = toRawType(value);
  4906. var expectedValue = styleValue(value, expectedType);
  4907. var receivedValue = styleValue(value, receivedType);
  4908. // check if we need to specify expected value
  4909. if (expectedTypes.length === 1 &&
  4910. isExplicable(expectedType) &&
  4911. !isBoolean(expectedType, receivedType)) {
  4912. message += " with value " + expectedValue;
  4913. }
  4914. message += ", got " + receivedType + " ";
  4915. // check if we need to specify received value
  4916. if (isExplicable(receivedType)) {
  4917. message += "with value " + receivedValue + ".";
  4918. }
  4919. return message
  4920. }
  4921. function styleValue (value, type) {
  4922. if (type === 'String') {
  4923. return ("\"" + value + "\"")
  4924. } else if (type === 'Number') {
  4925. return ("" + (Number(value)))
  4926. } else {
  4927. return ("" + value)
  4928. }
  4929. }
  4930. function isExplicable (value) {
  4931. var explicitTypes = ['string', 'number', 'boolean'];
  4932. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  4933. }
  4934. function isBoolean () {
  4935. var args = [], len = arguments.length;
  4936. while ( len-- ) args[ len ] = arguments[ len ];
  4937. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  4938. }
  4939. /* */
  4940. function handleError (err, vm, info) {
  4941. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  4942. // See: https://github.com/vuejs/vuex/issues/1505
  4943. pushTarget();
  4944. try {
  4945. if (vm) {
  4946. var cur = vm;
  4947. while ((cur = cur.$parent)) {
  4948. var hooks = cur.$options.errorCaptured;
  4949. if (hooks) {
  4950. for (var i = 0; i < hooks.length; i++) {
  4951. try {
  4952. var capture = hooks[i].call(cur, err, vm, info) === false;
  4953. if (capture) { return }
  4954. } catch (e) {
  4955. globalHandleError(e, cur, 'errorCaptured hook');
  4956. }
  4957. }
  4958. }
  4959. }
  4960. }
  4961. globalHandleError(err, vm, info);
  4962. } finally {
  4963. popTarget();
  4964. }
  4965. }
  4966. function invokeWithErrorHandling (
  4967. handler,
  4968. context,
  4969. args,
  4970. vm,
  4971. info
  4972. ) {
  4973. var res;
  4974. try {
  4975. res = args ? handler.apply(context, args) : handler.call(context);
  4976. if (res && !res._isVue && isPromise(res) && !res._handled) {
  4977. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  4978. // issue #9511
  4979. // avoid catch triggering multiple times when nested calls
  4980. res._handled = true;
  4981. }
  4982. } catch (e) {
  4983. handleError(e, vm, info);
  4984. }
  4985. return res
  4986. }
  4987. function globalHandleError (err, vm, info) {
  4988. if (config.errorHandler) {
  4989. try {
  4990. return config.errorHandler.call(null, err, vm, info)
  4991. } catch (e) {
  4992. // if the user intentionally throws the original error in the handler,
  4993. // do not log it twice
  4994. if (e !== err) {
  4995. logError(e, null, 'config.errorHandler');
  4996. }
  4997. }
  4998. }
  4999. logError(err, vm, info);
  5000. }
  5001. function logError (err, vm, info) {
  5002. if (true) {
  5003. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  5004. }
  5005. /* istanbul ignore else */
  5006. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  5007. console.error(err);
  5008. } else {
  5009. throw err
  5010. }
  5011. }
  5012. /* */
  5013. var callbacks = [];
  5014. var pending = false;
  5015. function flushCallbacks () {
  5016. pending = false;
  5017. var copies = callbacks.slice(0);
  5018. callbacks.length = 0;
  5019. for (var i = 0; i < copies.length; i++) {
  5020. copies[i]();
  5021. }
  5022. }
  5023. // Here we have async deferring wrappers using microtasks.
  5024. // In 2.5 we used (macro) tasks (in combination with microtasks).
  5025. // However, it has subtle problems when state is changed right before repaint
  5026. // (e.g. #6813, out-in transitions).
  5027. // Also, using (macro) tasks in event handler would cause some weird behaviors
  5028. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  5029. // So we now use microtasks everywhere, again.
  5030. // A major drawback of this tradeoff is that there are some scenarios
  5031. // where microtasks have too high a priority and fire in between supposedly
  5032. // sequential events (e.g. #4521, #6690, which have workarounds)
  5033. // or even between bubbling of the same event (#6566).
  5034. var timerFunc;
  5035. // The nextTick behavior leverages the microtask queue, which can be accessed
  5036. // via either native Promise.then or MutationObserver.
  5037. // MutationObserver has wider support, however it is seriously bugged in
  5038. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  5039. // completely stops working after triggering a few times... so, if native
  5040. // Promise is available, we will use it:
  5041. /* istanbul ignore next, $flow-disable-line */
  5042. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  5043. var p = Promise.resolve();
  5044. timerFunc = function () {
  5045. p.then(flushCallbacks);
  5046. // In problematic UIWebViews, Promise.then doesn't completely break, but
  5047. // it can get stuck in a weird state where callbacks are pushed into the
  5048. // microtask queue but the queue isn't being flushed, until the browser
  5049. // needs to do some other work, e.g. handle a timer. Therefore we can
  5050. // "force" the microtask queue to be flushed by adding an empty timer.
  5051. if (isIOS) { setTimeout(noop); }
  5052. };
  5053. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  5054. isNative(MutationObserver) ||
  5055. // PhantomJS and iOS 7.x
  5056. MutationObserver.toString() === '[object MutationObserverConstructor]'
  5057. )) {
  5058. // Use MutationObserver where native Promise is not available,
  5059. // e.g. PhantomJS, iOS7, Android 4.4
  5060. // (#6466 MutationObserver is unreliable in IE11)
  5061. var counter = 1;
  5062. var observer = new MutationObserver(flushCallbacks);
  5063. var textNode = document.createTextNode(String(counter));
  5064. observer.observe(textNode, {
  5065. characterData: true
  5066. });
  5067. timerFunc = function () {
  5068. counter = (counter + 1) % 2;
  5069. textNode.data = String(counter);
  5070. };
  5071. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  5072. // Fallback to setImmediate.
  5073. // Technically it leverages the (macro) task queue,
  5074. // but it is still a better choice than setTimeout.
  5075. timerFunc = function () {
  5076. setImmediate(flushCallbacks);
  5077. };
  5078. } else {
  5079. // Fallback to setTimeout.
  5080. timerFunc = function () {
  5081. setTimeout(flushCallbacks, 0);
  5082. };
  5083. }
  5084. function nextTick (cb, ctx) {
  5085. var _resolve;
  5086. callbacks.push(function () {
  5087. if (cb) {
  5088. try {
  5089. cb.call(ctx);
  5090. } catch (e) {
  5091. handleError(e, ctx, 'nextTick');
  5092. }
  5093. } else if (_resolve) {
  5094. _resolve(ctx);
  5095. }
  5096. });
  5097. if (!pending) {
  5098. pending = true;
  5099. timerFunc();
  5100. }
  5101. // $flow-disable-line
  5102. if (!cb && typeof Promise !== 'undefined') {
  5103. return new Promise(function (resolve) {
  5104. _resolve = resolve;
  5105. })
  5106. }
  5107. }
  5108. /* */
  5109. /* not type checking this file because flow doesn't play well with Proxy */
  5110. var initProxy;
  5111. if (true) {
  5112. var allowedGlobals = makeMap(
  5113. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  5114. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  5115. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  5116. 'require' // for Webpack/Browserify
  5117. );
  5118. var warnNonPresent = function (target, key) {
  5119. warn(
  5120. "Property or method \"" + key + "\" is not defined on the instance but " +
  5121. 'referenced during render. Make sure that this property is reactive, ' +
  5122. 'either in the data option, or for class-based components, by ' +
  5123. 'initializing the property. ' +
  5124. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  5125. target
  5126. );
  5127. };
  5128. var warnReservedPrefix = function (target, key) {
  5129. warn(
  5130. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  5131. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  5132. 'prevent conflicts with Vue internals. ' +
  5133. 'See: https://vuejs.org/v2/api/#data',
  5134. target
  5135. );
  5136. };
  5137. var hasProxy =
  5138. typeof Proxy !== 'undefined' && isNative(Proxy);
  5139. if (hasProxy) {
  5140. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  5141. config.keyCodes = new Proxy(config.keyCodes, {
  5142. set: function set (target, key, value) {
  5143. if (isBuiltInModifier(key)) {
  5144. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  5145. return false
  5146. } else {
  5147. target[key] = value;
  5148. return true
  5149. }
  5150. }
  5151. });
  5152. }
  5153. var hasHandler = {
  5154. has: function has (target, key) {
  5155. var has = key in target;
  5156. var isAllowed = allowedGlobals(key) ||
  5157. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  5158. if (!has && !isAllowed) {
  5159. if (key in target.$data) { warnReservedPrefix(target, key); }
  5160. else { warnNonPresent(target, key); }
  5161. }
  5162. return has || !isAllowed
  5163. }
  5164. };
  5165. var getHandler = {
  5166. get: function get (target, key) {
  5167. if (typeof key === 'string' && !(key in target)) {
  5168. if (key in target.$data) { warnReservedPrefix(target, key); }
  5169. else { warnNonPresent(target, key); }
  5170. }
  5171. return target[key]
  5172. }
  5173. };
  5174. initProxy = function initProxy (vm) {
  5175. if (hasProxy) {
  5176. // determine which proxy handler to use
  5177. var options = vm.$options;
  5178. var handlers = options.render && options.render._withStripped
  5179. ? getHandler
  5180. : hasHandler;
  5181. vm._renderProxy = new Proxy(vm, handlers);
  5182. } else {
  5183. vm._renderProxy = vm;
  5184. }
  5185. };
  5186. }
  5187. /* */
  5188. var seenObjects = new _Set();
  5189. /**
  5190. * Recursively traverse an object to evoke all converted
  5191. * getters, so that every nested property inside the object
  5192. * is collected as a "deep" dependency.
  5193. */
  5194. function traverse (val) {
  5195. _traverse(val, seenObjects);
  5196. seenObjects.clear();
  5197. }
  5198. function _traverse (val, seen) {
  5199. var i, keys;
  5200. var isA = Array.isArray(val);
  5201. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  5202. return
  5203. }
  5204. if (val.__ob__) {
  5205. var depId = val.__ob__.dep.id;
  5206. if (seen.has(depId)) {
  5207. return
  5208. }
  5209. seen.add(depId);
  5210. }
  5211. if (isA) {
  5212. i = val.length;
  5213. while (i--) { _traverse(val[i], seen); }
  5214. } else {
  5215. keys = Object.keys(val);
  5216. i = keys.length;
  5217. while (i--) { _traverse(val[keys[i]], seen); }
  5218. }
  5219. }
  5220. var mark;
  5221. var measure;
  5222. if (true) {
  5223. var perf = inBrowser && window.performance;
  5224. /* istanbul ignore if */
  5225. if (
  5226. perf &&
  5227. perf.mark &&
  5228. perf.measure &&
  5229. perf.clearMarks &&
  5230. perf.clearMeasures
  5231. ) {
  5232. mark = function (tag) { return perf.mark(tag); };
  5233. measure = function (name, startTag, endTag) {
  5234. perf.measure(name, startTag, endTag);
  5235. perf.clearMarks(startTag);
  5236. perf.clearMarks(endTag);
  5237. // perf.clearMeasures(name)
  5238. };
  5239. }
  5240. }
  5241. /* */
  5242. var normalizeEvent = cached(function (name) {
  5243. var passive = name.charAt(0) === '&';
  5244. name = passive ? name.slice(1) : name;
  5245. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  5246. name = once$$1 ? name.slice(1) : name;
  5247. var capture = name.charAt(0) === '!';
  5248. name = capture ? name.slice(1) : name;
  5249. return {
  5250. name: name,
  5251. once: once$$1,
  5252. capture: capture,
  5253. passive: passive
  5254. }
  5255. });
  5256. function createFnInvoker (fns, vm) {
  5257. function invoker () {
  5258. var arguments$1 = arguments;
  5259. var fns = invoker.fns;
  5260. if (Array.isArray(fns)) {
  5261. var cloned = fns.slice();
  5262. for (var i = 0; i < cloned.length; i++) {
  5263. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  5264. }
  5265. } else {
  5266. // return handler return value for single handlers
  5267. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  5268. }
  5269. }
  5270. invoker.fns = fns;
  5271. return invoker
  5272. }
  5273. function updateListeners (
  5274. on,
  5275. oldOn,
  5276. add,
  5277. remove$$1,
  5278. createOnceHandler,
  5279. vm
  5280. ) {
  5281. var name, def$$1, cur, old, event;
  5282. for (name in on) {
  5283. def$$1 = cur = on[name];
  5284. old = oldOn[name];
  5285. event = normalizeEvent(name);
  5286. if (isUndef(cur)) {
  5287. true && warn(
  5288. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  5289. vm
  5290. );
  5291. } else if (isUndef(old)) {
  5292. if (isUndef(cur.fns)) {
  5293. cur = on[name] = createFnInvoker(cur, vm);
  5294. }
  5295. if (isTrue(event.once)) {
  5296. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  5297. }
  5298. add(event.name, cur, event.capture, event.passive, event.params);
  5299. } else if (cur !== old) {
  5300. old.fns = cur;
  5301. on[name] = old;
  5302. }
  5303. }
  5304. for (name in oldOn) {
  5305. if (isUndef(on[name])) {
  5306. event = normalizeEvent(name);
  5307. remove$$1(event.name, oldOn[name], event.capture);
  5308. }
  5309. }
  5310. }
  5311. /* */
  5312. /* */
  5313. // fixed by xxxxxx (mp properties)
  5314. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  5315. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  5316. if (isUndef(propOptions)) {
  5317. return res
  5318. }
  5319. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  5320. var attrs = data.attrs;
  5321. var props = data.props;
  5322. if (isDef(attrs) || isDef(props)) {
  5323. for (var key in propOptions) {
  5324. var altKey = hyphenate(key);
  5325. var result = checkProp(res, props, key, altKey, true) ||
  5326. checkProp(res, attrs, key, altKey, false);
  5327. // externalClass
  5328. if (
  5329. result &&
  5330. res[key] &&
  5331. externalClasses.indexOf(altKey) !== -1 &&
  5332. context[camelize(res[key])]
  5333. ) {
  5334. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  5335. res[key] = context[camelize(res[key])];
  5336. }
  5337. }
  5338. }
  5339. return res
  5340. }
  5341. function extractPropsFromVNodeData (
  5342. data,
  5343. Ctor,
  5344. tag,
  5345. context// fixed by xxxxxx
  5346. ) {
  5347. // we are only extracting raw values here.
  5348. // validation and default values are handled in the child
  5349. // component itself.
  5350. var propOptions = Ctor.options.props;
  5351. if (isUndef(propOptions)) {
  5352. // fixed by xxxxxx
  5353. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  5354. }
  5355. var res = {};
  5356. var attrs = data.attrs;
  5357. var props = data.props;
  5358. if (isDef(attrs) || isDef(props)) {
  5359. for (var key in propOptions) {
  5360. var altKey = hyphenate(key);
  5361. if (true) {
  5362. var keyInLowerCase = key.toLowerCase();
  5363. if (
  5364. key !== keyInLowerCase &&
  5365. attrs && hasOwn(attrs, keyInLowerCase)
  5366. ) {
  5367. tip(
  5368. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  5369. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  5370. " \"" + key + "\". " +
  5371. "Note that HTML attributes are case-insensitive and camelCased " +
  5372. "props need to use their kebab-case equivalents when using in-DOM " +
  5373. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  5374. );
  5375. }
  5376. }
  5377. checkProp(res, props, key, altKey, true) ||
  5378. checkProp(res, attrs, key, altKey, false);
  5379. }
  5380. }
  5381. // fixed by xxxxxx
  5382. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  5383. }
  5384. function checkProp (
  5385. res,
  5386. hash,
  5387. key,
  5388. altKey,
  5389. preserve
  5390. ) {
  5391. if (isDef(hash)) {
  5392. if (hasOwn(hash, key)) {
  5393. res[key] = hash[key];
  5394. if (!preserve) {
  5395. delete hash[key];
  5396. }
  5397. return true
  5398. } else if (hasOwn(hash, altKey)) {
  5399. res[key] = hash[altKey];
  5400. if (!preserve) {
  5401. delete hash[altKey];
  5402. }
  5403. return true
  5404. }
  5405. }
  5406. return false
  5407. }
  5408. /* */
  5409. // The template compiler attempts to minimize the need for normalization by
  5410. // statically analyzing the template at compile time.
  5411. //
  5412. // For plain HTML markup, normalization can be completely skipped because the
  5413. // generated render function is guaranteed to return Array<VNode>. There are
  5414. // two cases where extra normalization is needed:
  5415. // 1. When the children contains components - because a functional component
  5416. // may return an Array instead of a single root. In this case, just a simple
  5417. // normalization is needed - if any child is an Array, we flatten the whole
  5418. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  5419. // because functional components already normalize their own children.
  5420. function simpleNormalizeChildren (children) {
  5421. for (var i = 0; i < children.length; i++) {
  5422. if (Array.isArray(children[i])) {
  5423. return Array.prototype.concat.apply([], children)
  5424. }
  5425. }
  5426. return children
  5427. }
  5428. // 2. When the children contains constructs that always generated nested Arrays,
  5429. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  5430. // with hand-written render functions / JSX. In such cases a full normalization
  5431. // is needed to cater to all possible types of children values.
  5432. function normalizeChildren (children) {
  5433. return isPrimitive(children)
  5434. ? [createTextVNode(children)]
  5435. : Array.isArray(children)
  5436. ? normalizeArrayChildren(children)
  5437. : undefined
  5438. }
  5439. function isTextNode (node) {
  5440. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  5441. }
  5442. function normalizeArrayChildren (children, nestedIndex) {
  5443. var res = [];
  5444. var i, c, lastIndex, last;
  5445. for (i = 0; i < children.length; i++) {
  5446. c = children[i];
  5447. if (isUndef(c) || typeof c === 'boolean') { continue }
  5448. lastIndex = res.length - 1;
  5449. last = res[lastIndex];
  5450. // nested
  5451. if (Array.isArray(c)) {
  5452. if (c.length > 0) {
  5453. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  5454. // merge adjacent text nodes
  5455. if (isTextNode(c[0]) && isTextNode(last)) {
  5456. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  5457. c.shift();
  5458. }
  5459. res.push.apply(res, c);
  5460. }
  5461. } else if (isPrimitive(c)) {
  5462. if (isTextNode(last)) {
  5463. // merge adjacent text nodes
  5464. // this is necessary for SSR hydration because text nodes are
  5465. // essentially merged when rendered to HTML strings
  5466. res[lastIndex] = createTextVNode(last.text + c);
  5467. } else if (c !== '') {
  5468. // convert primitive to vnode
  5469. res.push(createTextVNode(c));
  5470. }
  5471. } else {
  5472. if (isTextNode(c) && isTextNode(last)) {
  5473. // merge adjacent text nodes
  5474. res[lastIndex] = createTextVNode(last.text + c.text);
  5475. } else {
  5476. // default key for nested array children (likely generated by v-for)
  5477. if (isTrue(children._isVList) &&
  5478. isDef(c.tag) &&
  5479. isUndef(c.key) &&
  5480. isDef(nestedIndex)) {
  5481. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  5482. }
  5483. res.push(c);
  5484. }
  5485. }
  5486. }
  5487. return res
  5488. }
  5489. /* */
  5490. function initProvide (vm) {
  5491. var provide = vm.$options.provide;
  5492. if (provide) {
  5493. vm._provided = typeof provide === 'function'
  5494. ? provide.call(vm)
  5495. : provide;
  5496. }
  5497. }
  5498. function initInjections (vm) {
  5499. var result = resolveInject(vm.$options.inject, vm);
  5500. if (result) {
  5501. toggleObserving(false);
  5502. Object.keys(result).forEach(function (key) {
  5503. /* istanbul ignore else */
  5504. if (true) {
  5505. defineReactive$$1(vm, key, result[key], function () {
  5506. warn(
  5507. "Avoid mutating an injected value directly since the changes will be " +
  5508. "overwritten whenever the provided component re-renders. " +
  5509. "injection being mutated: \"" + key + "\"",
  5510. vm
  5511. );
  5512. });
  5513. } else {}
  5514. });
  5515. toggleObserving(true);
  5516. }
  5517. }
  5518. function resolveInject (inject, vm) {
  5519. if (inject) {
  5520. // inject is :any because flow is not smart enough to figure out cached
  5521. var result = Object.create(null);
  5522. var keys = hasSymbol
  5523. ? Reflect.ownKeys(inject)
  5524. : Object.keys(inject);
  5525. for (var i = 0; i < keys.length; i++) {
  5526. var key = keys[i];
  5527. // #6574 in case the inject object is observed...
  5528. if (key === '__ob__') { continue }
  5529. var provideKey = inject[key].from;
  5530. var source = vm;
  5531. while (source) {
  5532. if (source._provided && hasOwn(source._provided, provideKey)) {
  5533. result[key] = source._provided[provideKey];
  5534. break
  5535. }
  5536. source = source.$parent;
  5537. }
  5538. if (!source) {
  5539. if ('default' in inject[key]) {
  5540. var provideDefault = inject[key].default;
  5541. result[key] = typeof provideDefault === 'function'
  5542. ? provideDefault.call(vm)
  5543. : provideDefault;
  5544. } else if (true) {
  5545. warn(("Injection \"" + key + "\" not found"), vm);
  5546. }
  5547. }
  5548. }
  5549. return result
  5550. }
  5551. }
  5552. /* */
  5553. /**
  5554. * Runtime helper for resolving raw children VNodes into a slot object.
  5555. */
  5556. function resolveSlots (
  5557. children,
  5558. context
  5559. ) {
  5560. if (!children || !children.length) {
  5561. return {}
  5562. }
  5563. var slots = {};
  5564. for (var i = 0, l = children.length; i < l; i++) {
  5565. var child = children[i];
  5566. var data = child.data;
  5567. // remove slot attribute if the node is resolved as a Vue slot node
  5568. if (data && data.attrs && data.attrs.slot) {
  5569. delete data.attrs.slot;
  5570. }
  5571. // named slots should only be respected if the vnode was rendered in the
  5572. // same context.
  5573. if ((child.context === context || child.fnContext === context) &&
  5574. data && data.slot != null
  5575. ) {
  5576. var name = data.slot;
  5577. var slot = (slots[name] || (slots[name] = []));
  5578. if (child.tag === 'template') {
  5579. slot.push.apply(slot, child.children || []);
  5580. } else {
  5581. slot.push(child);
  5582. }
  5583. } else {
  5584. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  5585. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  5586. (slots['page'] || (slots['page'] = [])).push(child);
  5587. }else{
  5588. (slots.default || (slots.default = [])).push(child);
  5589. }
  5590. }
  5591. }
  5592. // ignore slots that contains only whitespace
  5593. for (var name$1 in slots) {
  5594. if (slots[name$1].every(isWhitespace)) {
  5595. delete slots[name$1];
  5596. }
  5597. }
  5598. return slots
  5599. }
  5600. function isWhitespace (node) {
  5601. return (node.isComment && !node.asyncFactory) || node.text === ' '
  5602. }
  5603. /* */
  5604. function normalizeScopedSlots (
  5605. slots,
  5606. normalSlots,
  5607. prevSlots
  5608. ) {
  5609. var res;
  5610. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  5611. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  5612. var key = slots && slots.$key;
  5613. if (!slots) {
  5614. res = {};
  5615. } else if (slots._normalized) {
  5616. // fast path 1: child component re-render only, parent did not change
  5617. return slots._normalized
  5618. } else if (
  5619. isStable &&
  5620. prevSlots &&
  5621. prevSlots !== emptyObject &&
  5622. key === prevSlots.$key &&
  5623. !hasNormalSlots &&
  5624. !prevSlots.$hasNormal
  5625. ) {
  5626. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  5627. // only need to normalize once
  5628. return prevSlots
  5629. } else {
  5630. res = {};
  5631. for (var key$1 in slots) {
  5632. if (slots[key$1] && key$1[0] !== '$') {
  5633. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  5634. }
  5635. }
  5636. }
  5637. // expose normal slots on scopedSlots
  5638. for (var key$2 in normalSlots) {
  5639. if (!(key$2 in res)) {
  5640. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  5641. }
  5642. }
  5643. // avoriaz seems to mock a non-extensible $scopedSlots object
  5644. // and when that is passed down this would cause an error
  5645. if (slots && Object.isExtensible(slots)) {
  5646. (slots)._normalized = res;
  5647. }
  5648. def(res, '$stable', isStable);
  5649. def(res, '$key', key);
  5650. def(res, '$hasNormal', hasNormalSlots);
  5651. return res
  5652. }
  5653. function normalizeScopedSlot(normalSlots, key, fn) {
  5654. var normalized = function () {
  5655. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  5656. res = res && typeof res === 'object' && !Array.isArray(res)
  5657. ? [res] // single vnode
  5658. : normalizeChildren(res);
  5659. return res && (
  5660. res.length === 0 ||
  5661. (res.length === 1 && res[0].isComment) // #9658
  5662. ) ? undefined
  5663. : res
  5664. };
  5665. // this is a slot using the new v-slot syntax without scope. although it is
  5666. // compiled as a scoped slot, render fn users would expect it to be present
  5667. // on this.$slots because the usage is semantically a normal slot.
  5668. if (fn.proxy) {
  5669. Object.defineProperty(normalSlots, key, {
  5670. get: normalized,
  5671. enumerable: true,
  5672. configurable: true
  5673. });
  5674. }
  5675. return normalized
  5676. }
  5677. function proxyNormalSlot(slots, key) {
  5678. return function () { return slots[key]; }
  5679. }
  5680. /* */
  5681. /**
  5682. * Runtime helper for rendering v-for lists.
  5683. */
  5684. function renderList (
  5685. val,
  5686. render
  5687. ) {
  5688. var ret, i, l, keys, key;
  5689. if (Array.isArray(val) || typeof val === 'string') {
  5690. ret = new Array(val.length);
  5691. for (i = 0, l = val.length; i < l; i++) {
  5692. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  5693. }
  5694. } else if (typeof val === 'number') {
  5695. ret = new Array(val);
  5696. for (i = 0; i < val; i++) {
  5697. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  5698. }
  5699. } else if (isObject(val)) {
  5700. if (hasSymbol && val[Symbol.iterator]) {
  5701. ret = [];
  5702. var iterator = val[Symbol.iterator]();
  5703. var result = iterator.next();
  5704. while (!result.done) {
  5705. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  5706. result = iterator.next();
  5707. }
  5708. } else {
  5709. keys = Object.keys(val);
  5710. ret = new Array(keys.length);
  5711. for (i = 0, l = keys.length; i < l; i++) {
  5712. key = keys[i];
  5713. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  5714. }
  5715. }
  5716. }
  5717. if (!isDef(ret)) {
  5718. ret = [];
  5719. }
  5720. (ret)._isVList = true;
  5721. return ret
  5722. }
  5723. /* */
  5724. /**
  5725. * Runtime helper for rendering <slot>
  5726. */
  5727. function renderSlot (
  5728. name,
  5729. fallback,
  5730. props,
  5731. bindObject
  5732. ) {
  5733. var scopedSlotFn = this.$scopedSlots[name];
  5734. var nodes;
  5735. if (scopedSlotFn) { // scoped slot
  5736. props = props || {};
  5737. if (bindObject) {
  5738. if ( true && !isObject(bindObject)) {
  5739. warn(
  5740. 'slot v-bind without argument expects an Object',
  5741. this
  5742. );
  5743. }
  5744. props = extend(extend({}, bindObject), props);
  5745. }
  5746. // fixed by xxxxxx app-plus scopedSlot
  5747. nodes = scopedSlotFn(props, this, props._i) || fallback;
  5748. } else {
  5749. nodes = this.$slots[name] || fallback;
  5750. }
  5751. var target = props && props.slot;
  5752. if (target) {
  5753. return this.$createElement('template', { slot: target }, nodes)
  5754. } else {
  5755. return nodes
  5756. }
  5757. }
  5758. /* */
  5759. /**
  5760. * Runtime helper for resolving filters
  5761. */
  5762. function resolveFilter (id) {
  5763. return resolveAsset(this.$options, 'filters', id, true) || identity
  5764. }
  5765. /* */
  5766. function isKeyNotMatch (expect, actual) {
  5767. if (Array.isArray(expect)) {
  5768. return expect.indexOf(actual) === -1
  5769. } else {
  5770. return expect !== actual
  5771. }
  5772. }
  5773. /**
  5774. * Runtime helper for checking keyCodes from config.
  5775. * exposed as Vue.prototype._k
  5776. * passing in eventKeyName as last argument separately for backwards compat
  5777. */
  5778. function checkKeyCodes (
  5779. eventKeyCode,
  5780. key,
  5781. builtInKeyCode,
  5782. eventKeyName,
  5783. builtInKeyName
  5784. ) {
  5785. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  5786. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  5787. return isKeyNotMatch(builtInKeyName, eventKeyName)
  5788. } else if (mappedKeyCode) {
  5789. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  5790. } else if (eventKeyName) {
  5791. return hyphenate(eventKeyName) !== key
  5792. }
  5793. }
  5794. /* */
  5795. /**
  5796. * Runtime helper for merging v-bind="object" into a VNode's data.
  5797. */
  5798. function bindObjectProps (
  5799. data,
  5800. tag,
  5801. value,
  5802. asProp,
  5803. isSync
  5804. ) {
  5805. if (value) {
  5806. if (!isObject(value)) {
  5807. true && warn(
  5808. 'v-bind without argument expects an Object or Array value',
  5809. this
  5810. );
  5811. } else {
  5812. if (Array.isArray(value)) {
  5813. value = toObject(value);
  5814. }
  5815. var hash;
  5816. var loop = function ( key ) {
  5817. if (
  5818. key === 'class' ||
  5819. key === 'style' ||
  5820. isReservedAttribute(key)
  5821. ) {
  5822. hash = data;
  5823. } else {
  5824. var type = data.attrs && data.attrs.type;
  5825. hash = asProp || config.mustUseProp(tag, type, key)
  5826. ? data.domProps || (data.domProps = {})
  5827. : data.attrs || (data.attrs = {});
  5828. }
  5829. var camelizedKey = camelize(key);
  5830. var hyphenatedKey = hyphenate(key);
  5831. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  5832. hash[key] = value[key];
  5833. if (isSync) {
  5834. var on = data.on || (data.on = {});
  5835. on[("update:" + key)] = function ($event) {
  5836. value[key] = $event;
  5837. };
  5838. }
  5839. }
  5840. };
  5841. for (var key in value) loop( key );
  5842. }
  5843. }
  5844. return data
  5845. }
  5846. /* */
  5847. /**
  5848. * Runtime helper for rendering static trees.
  5849. */
  5850. function renderStatic (
  5851. index,
  5852. isInFor
  5853. ) {
  5854. var cached = this._staticTrees || (this._staticTrees = []);
  5855. var tree = cached[index];
  5856. // if has already-rendered static tree and not inside v-for,
  5857. // we can reuse the same tree.
  5858. if (tree && !isInFor) {
  5859. return tree
  5860. }
  5861. // otherwise, render a fresh tree.
  5862. tree = cached[index] = this.$options.staticRenderFns[index].call(
  5863. this._renderProxy,
  5864. null,
  5865. this // for render fns generated for functional component templates
  5866. );
  5867. markStatic(tree, ("__static__" + index), false);
  5868. return tree
  5869. }
  5870. /**
  5871. * Runtime helper for v-once.
  5872. * Effectively it means marking the node as static with a unique key.
  5873. */
  5874. function markOnce (
  5875. tree,
  5876. index,
  5877. key
  5878. ) {
  5879. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  5880. return tree
  5881. }
  5882. function markStatic (
  5883. tree,
  5884. key,
  5885. isOnce
  5886. ) {
  5887. if (Array.isArray(tree)) {
  5888. for (var i = 0; i < tree.length; i++) {
  5889. if (tree[i] && typeof tree[i] !== 'string') {
  5890. markStaticNode(tree[i], (key + "_" + i), isOnce);
  5891. }
  5892. }
  5893. } else {
  5894. markStaticNode(tree, key, isOnce);
  5895. }
  5896. }
  5897. function markStaticNode (node, key, isOnce) {
  5898. node.isStatic = true;
  5899. node.key = key;
  5900. node.isOnce = isOnce;
  5901. }
  5902. /* */
  5903. function bindObjectListeners (data, value) {
  5904. if (value) {
  5905. if (!isPlainObject(value)) {
  5906. true && warn(
  5907. 'v-on without argument expects an Object value',
  5908. this
  5909. );
  5910. } else {
  5911. var on = data.on = data.on ? extend({}, data.on) : {};
  5912. for (var key in value) {
  5913. var existing = on[key];
  5914. var ours = value[key];
  5915. on[key] = existing ? [].concat(existing, ours) : ours;
  5916. }
  5917. }
  5918. }
  5919. return data
  5920. }
  5921. /* */
  5922. function resolveScopedSlots (
  5923. fns, // see flow/vnode
  5924. res,
  5925. // the following are added in 2.6
  5926. hasDynamicKeys,
  5927. contentHashKey
  5928. ) {
  5929. res = res || { $stable: !hasDynamicKeys };
  5930. for (var i = 0; i < fns.length; i++) {
  5931. var slot = fns[i];
  5932. if (Array.isArray(slot)) {
  5933. resolveScopedSlots(slot, res, hasDynamicKeys);
  5934. } else if (slot) {
  5935. // marker for reverse proxying v-slot without scope on this.$slots
  5936. if (slot.proxy) {
  5937. slot.fn.proxy = true;
  5938. }
  5939. res[slot.key] = slot.fn;
  5940. }
  5941. }
  5942. if (contentHashKey) {
  5943. (res).$key = contentHashKey;
  5944. }
  5945. return res
  5946. }
  5947. /* */
  5948. function bindDynamicKeys (baseObj, values) {
  5949. for (var i = 0; i < values.length; i += 2) {
  5950. var key = values[i];
  5951. if (typeof key === 'string' && key) {
  5952. baseObj[values[i]] = values[i + 1];
  5953. } else if ( true && key !== '' && key !== null) {
  5954. // null is a special value for explicitly removing a binding
  5955. warn(
  5956. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  5957. this
  5958. );
  5959. }
  5960. }
  5961. return baseObj
  5962. }
  5963. // helper to dynamically append modifier runtime markers to event names.
  5964. // ensure only append when value is already string, otherwise it will be cast
  5965. // to string and cause the type check to miss.
  5966. function prependModifier (value, symbol) {
  5967. return typeof value === 'string' ? symbol + value : value
  5968. }
  5969. /* */
  5970. function installRenderHelpers (target) {
  5971. target._o = markOnce;
  5972. target._n = toNumber;
  5973. target._s = toString;
  5974. target._l = renderList;
  5975. target._t = renderSlot;
  5976. target._q = looseEqual;
  5977. target._i = looseIndexOf;
  5978. target._m = renderStatic;
  5979. target._f = resolveFilter;
  5980. target._k = checkKeyCodes;
  5981. target._b = bindObjectProps;
  5982. target._v = createTextVNode;
  5983. target._e = createEmptyVNode;
  5984. target._u = resolveScopedSlots;
  5985. target._g = bindObjectListeners;
  5986. target._d = bindDynamicKeys;
  5987. target._p = prependModifier;
  5988. }
  5989. /* */
  5990. function FunctionalRenderContext (
  5991. data,
  5992. props,
  5993. children,
  5994. parent,
  5995. Ctor
  5996. ) {
  5997. var this$1 = this;
  5998. var options = Ctor.options;
  5999. // ensure the createElement function in functional components
  6000. // gets a unique context - this is necessary for correct named slot check
  6001. var contextVm;
  6002. if (hasOwn(parent, '_uid')) {
  6003. contextVm = Object.create(parent);
  6004. // $flow-disable-line
  6005. contextVm._original = parent;
  6006. } else {
  6007. // the context vm passed in is a functional context as well.
  6008. // in this case we want to make sure we are able to get a hold to the
  6009. // real context instance.
  6010. contextVm = parent;
  6011. // $flow-disable-line
  6012. parent = parent._original;
  6013. }
  6014. var isCompiled = isTrue(options._compiled);
  6015. var needNormalization = !isCompiled;
  6016. this.data = data;
  6017. this.props = props;
  6018. this.children = children;
  6019. this.parent = parent;
  6020. this.listeners = data.on || emptyObject;
  6021. this.injections = resolveInject(options.inject, parent);
  6022. this.slots = function () {
  6023. if (!this$1.$slots) {
  6024. normalizeScopedSlots(
  6025. data.scopedSlots,
  6026. this$1.$slots = resolveSlots(children, parent)
  6027. );
  6028. }
  6029. return this$1.$slots
  6030. };
  6031. Object.defineProperty(this, 'scopedSlots', ({
  6032. enumerable: true,
  6033. get: function get () {
  6034. return normalizeScopedSlots(data.scopedSlots, this.slots())
  6035. }
  6036. }));
  6037. // support for compiled functional template
  6038. if (isCompiled) {
  6039. // exposing $options for renderStatic()
  6040. this.$options = options;
  6041. // pre-resolve slots for renderSlot()
  6042. this.$slots = this.slots();
  6043. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  6044. }
  6045. if (options._scopeId) {
  6046. this._c = function (a, b, c, d) {
  6047. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  6048. if (vnode && !Array.isArray(vnode)) {
  6049. vnode.fnScopeId = options._scopeId;
  6050. vnode.fnContext = parent;
  6051. }
  6052. return vnode
  6053. };
  6054. } else {
  6055. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  6056. }
  6057. }
  6058. installRenderHelpers(FunctionalRenderContext.prototype);
  6059. function createFunctionalComponent (
  6060. Ctor,
  6061. propsData,
  6062. data,
  6063. contextVm,
  6064. children
  6065. ) {
  6066. var options = Ctor.options;
  6067. var props = {};
  6068. var propOptions = options.props;
  6069. if (isDef(propOptions)) {
  6070. for (var key in propOptions) {
  6071. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  6072. }
  6073. } else {
  6074. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  6075. if (isDef(data.props)) { mergeProps(props, data.props); }
  6076. }
  6077. var renderContext = new FunctionalRenderContext(
  6078. data,
  6079. props,
  6080. children,
  6081. contextVm,
  6082. Ctor
  6083. );
  6084. var vnode = options.render.call(null, renderContext._c, renderContext);
  6085. if (vnode instanceof VNode) {
  6086. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  6087. } else if (Array.isArray(vnode)) {
  6088. var vnodes = normalizeChildren(vnode) || [];
  6089. var res = new Array(vnodes.length);
  6090. for (var i = 0; i < vnodes.length; i++) {
  6091. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  6092. }
  6093. return res
  6094. }
  6095. }
  6096. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  6097. // #7817 clone node before setting fnContext, otherwise if the node is reused
  6098. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  6099. // that should not be matched to match.
  6100. var clone = cloneVNode(vnode);
  6101. clone.fnContext = contextVm;
  6102. clone.fnOptions = options;
  6103. if (true) {
  6104. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  6105. }
  6106. if (data.slot) {
  6107. (clone.data || (clone.data = {})).slot = data.slot;
  6108. }
  6109. return clone
  6110. }
  6111. function mergeProps (to, from) {
  6112. for (var key in from) {
  6113. to[camelize(key)] = from[key];
  6114. }
  6115. }
  6116. /* */
  6117. /* */
  6118. /* */
  6119. /* */
  6120. // inline hooks to be invoked on component VNodes during patch
  6121. var componentVNodeHooks = {
  6122. init: function init (vnode, hydrating) {
  6123. if (
  6124. vnode.componentInstance &&
  6125. !vnode.componentInstance._isDestroyed &&
  6126. vnode.data.keepAlive
  6127. ) {
  6128. // kept-alive components, treat as a patch
  6129. var mountedNode = vnode; // work around flow
  6130. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  6131. } else {
  6132. var child = vnode.componentInstance = createComponentInstanceForVnode(
  6133. vnode,
  6134. activeInstance
  6135. );
  6136. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  6137. }
  6138. },
  6139. prepatch: function prepatch (oldVnode, vnode) {
  6140. var options = vnode.componentOptions;
  6141. var child = vnode.componentInstance = oldVnode.componentInstance;
  6142. updateChildComponent(
  6143. child,
  6144. options.propsData, // updated props
  6145. options.listeners, // updated listeners
  6146. vnode, // new parent vnode
  6147. options.children // new children
  6148. );
  6149. },
  6150. insert: function insert (vnode) {
  6151. var context = vnode.context;
  6152. var componentInstance = vnode.componentInstance;
  6153. if (!componentInstance._isMounted) {
  6154. callHook(componentInstance, 'onServiceCreated');
  6155. callHook(componentInstance, 'onServiceAttached');
  6156. componentInstance._isMounted = true;
  6157. callHook(componentInstance, 'mounted');
  6158. }
  6159. if (vnode.data.keepAlive) {
  6160. if (context._isMounted) {
  6161. // vue-router#1212
  6162. // During updates, a kept-alive component's child components may
  6163. // change, so directly walking the tree here may call activated hooks
  6164. // on incorrect children. Instead we push them into a queue which will
  6165. // be processed after the whole patch process ended.
  6166. queueActivatedComponent(componentInstance);
  6167. } else {
  6168. activateChildComponent(componentInstance, true /* direct */);
  6169. }
  6170. }
  6171. },
  6172. destroy: function destroy (vnode) {
  6173. var componentInstance = vnode.componentInstance;
  6174. if (!componentInstance._isDestroyed) {
  6175. if (!vnode.data.keepAlive) {
  6176. componentInstance.$destroy();
  6177. } else {
  6178. deactivateChildComponent(componentInstance, true /* direct */);
  6179. }
  6180. }
  6181. }
  6182. };
  6183. var hooksToMerge = Object.keys(componentVNodeHooks);
  6184. function createComponent (
  6185. Ctor,
  6186. data,
  6187. context,
  6188. children,
  6189. tag
  6190. ) {
  6191. if (isUndef(Ctor)) {
  6192. return
  6193. }
  6194. var baseCtor = context.$options._base;
  6195. // plain options object: turn it into a constructor
  6196. if (isObject(Ctor)) {
  6197. Ctor = baseCtor.extend(Ctor);
  6198. }
  6199. // if at this stage it's not a constructor or an async component factory,
  6200. // reject.
  6201. if (typeof Ctor !== 'function') {
  6202. if (true) {
  6203. warn(("Invalid Component definition: " + (String(Ctor))), context);
  6204. }
  6205. return
  6206. }
  6207. // async component
  6208. var asyncFactory;
  6209. if (isUndef(Ctor.cid)) {
  6210. asyncFactory = Ctor;
  6211. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  6212. if (Ctor === undefined) {
  6213. // return a placeholder node for async component, which is rendered
  6214. // as a comment node but preserves all the raw information for the node.
  6215. // the information will be used for async server-rendering and hydration.
  6216. return createAsyncPlaceholder(
  6217. asyncFactory,
  6218. data,
  6219. context,
  6220. children,
  6221. tag
  6222. )
  6223. }
  6224. }
  6225. data = data || {};
  6226. // resolve constructor options in case global mixins are applied after
  6227. // component constructor creation
  6228. resolveConstructorOptions(Ctor);
  6229. // transform component v-model data into props & events
  6230. if (isDef(data.model)) {
  6231. transformModel(Ctor.options, data);
  6232. }
  6233. // extract props
  6234. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  6235. // functional component
  6236. if (isTrue(Ctor.options.functional)) {
  6237. return createFunctionalComponent(Ctor, propsData, data, context, children)
  6238. }
  6239. // extract listeners, since these needs to be treated as
  6240. // child component listeners instead of DOM listeners
  6241. var listeners = data.on;
  6242. // replace with listeners with .native modifier
  6243. // so it gets processed during parent component patch.
  6244. data.on = data.nativeOn;
  6245. if (isTrue(Ctor.options.abstract)) {
  6246. // abstract components do not keep anything
  6247. // other than props & listeners & slot
  6248. // work around flow
  6249. var slot = data.slot;
  6250. data = {};
  6251. if (slot) {
  6252. data.slot = slot;
  6253. }
  6254. }
  6255. // install component management hooks onto the placeholder node
  6256. installComponentHooks(data);
  6257. // return a placeholder vnode
  6258. var name = Ctor.options.name || tag;
  6259. var vnode = new VNode(
  6260. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  6261. data, undefined, undefined, undefined, context,
  6262. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  6263. asyncFactory
  6264. );
  6265. return vnode
  6266. }
  6267. function createComponentInstanceForVnode (
  6268. vnode, // we know it's MountedComponentVNode but flow doesn't
  6269. parent // activeInstance in lifecycle state
  6270. ) {
  6271. var options = {
  6272. _isComponent: true,
  6273. _parentVnode: vnode,
  6274. parent: parent
  6275. };
  6276. // check inline-template render functions
  6277. var inlineTemplate = vnode.data.inlineTemplate;
  6278. if (isDef(inlineTemplate)) {
  6279. options.render = inlineTemplate.render;
  6280. options.staticRenderFns = inlineTemplate.staticRenderFns;
  6281. }
  6282. return new vnode.componentOptions.Ctor(options)
  6283. }
  6284. function installComponentHooks (data) {
  6285. var hooks = data.hook || (data.hook = {});
  6286. for (var i = 0; i < hooksToMerge.length; i++) {
  6287. var key = hooksToMerge[i];
  6288. var existing = hooks[key];
  6289. var toMerge = componentVNodeHooks[key];
  6290. if (existing !== toMerge && !(existing && existing._merged)) {
  6291. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  6292. }
  6293. }
  6294. }
  6295. function mergeHook$1 (f1, f2) {
  6296. var merged = function (a, b) {
  6297. // flow complains about extra args which is why we use any
  6298. f1(a, b);
  6299. f2(a, b);
  6300. };
  6301. merged._merged = true;
  6302. return merged
  6303. }
  6304. // transform component v-model info (value and callback) into
  6305. // prop and event handler respectively.
  6306. function transformModel (options, data) {
  6307. var prop = (options.model && options.model.prop) || 'value';
  6308. var event = (options.model && options.model.event) || 'input'
  6309. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  6310. var on = data.on || (data.on = {});
  6311. var existing = on[event];
  6312. var callback = data.model.callback;
  6313. if (isDef(existing)) {
  6314. if (
  6315. Array.isArray(existing)
  6316. ? existing.indexOf(callback) === -1
  6317. : existing !== callback
  6318. ) {
  6319. on[event] = [callback].concat(existing);
  6320. }
  6321. } else {
  6322. on[event] = callback;
  6323. }
  6324. }
  6325. /* */
  6326. var SIMPLE_NORMALIZE = 1;
  6327. var ALWAYS_NORMALIZE = 2;
  6328. // wrapper function for providing a more flexible interface
  6329. // without getting yelled at by flow
  6330. function createElement (
  6331. context,
  6332. tag,
  6333. data,
  6334. children,
  6335. normalizationType,
  6336. alwaysNormalize
  6337. ) {
  6338. if (Array.isArray(data) || isPrimitive(data)) {
  6339. normalizationType = children;
  6340. children = data;
  6341. data = undefined;
  6342. }
  6343. if (isTrue(alwaysNormalize)) {
  6344. normalizationType = ALWAYS_NORMALIZE;
  6345. }
  6346. return _createElement(context, tag, data, children, normalizationType)
  6347. }
  6348. function _createElement (
  6349. context,
  6350. tag,
  6351. data,
  6352. children,
  6353. normalizationType
  6354. ) {
  6355. if (isDef(data) && isDef((data).__ob__)) {
  6356. true && warn(
  6357. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  6358. 'Always create fresh vnode data objects in each render!',
  6359. context
  6360. );
  6361. return createEmptyVNode()
  6362. }
  6363. // object syntax in v-bind
  6364. if (isDef(data) && isDef(data.is)) {
  6365. tag = data.is;
  6366. }
  6367. if (!tag) {
  6368. // in case of component :is set to falsy value
  6369. return createEmptyVNode()
  6370. }
  6371. // warn against non-primitive key
  6372. if ( true &&
  6373. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  6374. ) {
  6375. {
  6376. warn(
  6377. 'Avoid using non-primitive value as key, ' +
  6378. 'use string/number value instead.',
  6379. context
  6380. );
  6381. }
  6382. }
  6383. // support single function children as default scoped slot
  6384. if (Array.isArray(children) &&
  6385. typeof children[0] === 'function'
  6386. ) {
  6387. data = data || {};
  6388. data.scopedSlots = { default: children[0] };
  6389. children.length = 0;
  6390. }
  6391. if (normalizationType === ALWAYS_NORMALIZE) {
  6392. children = normalizeChildren(children);
  6393. } else if (normalizationType === SIMPLE_NORMALIZE) {
  6394. children = simpleNormalizeChildren(children);
  6395. }
  6396. var vnode, ns;
  6397. if (typeof tag === 'string') {
  6398. var Ctor;
  6399. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  6400. if (config.isReservedTag(tag)) {
  6401. // platform built-in elements
  6402. if ( true && isDef(data) && isDef(data.nativeOn)) {
  6403. warn(
  6404. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  6405. context
  6406. );
  6407. }
  6408. vnode = new VNode(
  6409. config.parsePlatformTagName(tag), data, children,
  6410. undefined, undefined, context
  6411. );
  6412. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  6413. // component
  6414. vnode = createComponent(Ctor, data, context, children, tag);
  6415. } else {
  6416. // unknown or unlisted namespaced elements
  6417. // check at runtime because it may get assigned a namespace when its
  6418. // parent normalizes children
  6419. vnode = new VNode(
  6420. tag, data, children,
  6421. undefined, undefined, context
  6422. );
  6423. }
  6424. } else {
  6425. // direct component options / constructor
  6426. vnode = createComponent(tag, data, context, children);
  6427. }
  6428. if (Array.isArray(vnode)) {
  6429. return vnode
  6430. } else if (isDef(vnode)) {
  6431. if (isDef(ns)) { applyNS(vnode, ns); }
  6432. if (isDef(data)) { registerDeepBindings(data); }
  6433. return vnode
  6434. } else {
  6435. return createEmptyVNode()
  6436. }
  6437. }
  6438. function applyNS (vnode, ns, force) {
  6439. vnode.ns = ns;
  6440. if (vnode.tag === 'foreignObject') {
  6441. // use default namespace inside foreignObject
  6442. ns = undefined;
  6443. force = true;
  6444. }
  6445. if (isDef(vnode.children)) {
  6446. for (var i = 0, l = vnode.children.length; i < l; i++) {
  6447. var child = vnode.children[i];
  6448. if (isDef(child.tag) && (
  6449. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  6450. applyNS(child, ns, force);
  6451. }
  6452. }
  6453. }
  6454. }
  6455. // ref #5318
  6456. // necessary to ensure parent re-render when deep bindings like :style and
  6457. // :class are used on slot nodes
  6458. function registerDeepBindings (data) {
  6459. if (isObject(data.style)) {
  6460. traverse(data.style);
  6461. }
  6462. if (isObject(data.class)) {
  6463. traverse(data.class);
  6464. }
  6465. }
  6466. /* */
  6467. function initRender (vm) {
  6468. vm._vnode = null; // the root of the child tree
  6469. vm._staticTrees = null; // v-once cached trees
  6470. var options = vm.$options;
  6471. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  6472. var renderContext = parentVnode && parentVnode.context;
  6473. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  6474. vm.$scopedSlots = emptyObject;
  6475. // bind the createElement fn to this instance
  6476. // so that we get proper render context inside it.
  6477. // args order: tag, data, children, normalizationType, alwaysNormalize
  6478. // internal version is used by render functions compiled from templates
  6479. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  6480. // normalization is always applied for the public version, used in
  6481. // user-written render functions.
  6482. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  6483. // $attrs & $listeners are exposed for easier HOC creation.
  6484. // they need to be reactive so that HOCs using them are always updated
  6485. var parentData = parentVnode && parentVnode.data;
  6486. /* istanbul ignore else */
  6487. if (true) {
  6488. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  6489. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  6490. }, true);
  6491. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  6492. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  6493. }, true);
  6494. } else {}
  6495. }
  6496. var currentRenderingInstance = null;
  6497. function renderMixin (Vue) {
  6498. // install runtime convenience helpers
  6499. installRenderHelpers(Vue.prototype);
  6500. Vue.prototype.$nextTick = function (fn) {
  6501. return nextTick(fn, this)
  6502. };
  6503. Vue.prototype._render = function () {
  6504. var vm = this;
  6505. var ref = vm.$options;
  6506. var render = ref.render;
  6507. var _parentVnode = ref._parentVnode;
  6508. if (_parentVnode) {
  6509. vm.$scopedSlots = normalizeScopedSlots(
  6510. _parentVnode.data.scopedSlots,
  6511. vm.$slots,
  6512. vm.$scopedSlots
  6513. );
  6514. }
  6515. // set parent vnode. this allows render functions to have access
  6516. // to the data on the placeholder node.
  6517. vm.$vnode = _parentVnode;
  6518. // render self
  6519. var vnode;
  6520. try {
  6521. // There's no need to maintain a stack because all render fns are called
  6522. // separately from one another. Nested component's render fns are called
  6523. // when parent component is patched.
  6524. currentRenderingInstance = vm;
  6525. vnode = render.call(vm._renderProxy, vm.$createElement);
  6526. } catch (e) {
  6527. handleError(e, vm, "render");
  6528. // return error render result,
  6529. // or previous vnode to prevent render error causing blank component
  6530. /* istanbul ignore else */
  6531. if ( true && vm.$options.renderError) {
  6532. try {
  6533. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  6534. } catch (e) {
  6535. handleError(e, vm, "renderError");
  6536. vnode = vm._vnode;
  6537. }
  6538. } else {
  6539. vnode = vm._vnode;
  6540. }
  6541. } finally {
  6542. currentRenderingInstance = null;
  6543. }
  6544. // if the returned array contains only a single node, allow it
  6545. if (Array.isArray(vnode) && vnode.length === 1) {
  6546. vnode = vnode[0];
  6547. }
  6548. // return empty vnode in case the render function errored out
  6549. if (!(vnode instanceof VNode)) {
  6550. if ( true && Array.isArray(vnode)) {
  6551. warn(
  6552. 'Multiple root nodes returned from render function. Render function ' +
  6553. 'should return a single root node.',
  6554. vm
  6555. );
  6556. }
  6557. vnode = createEmptyVNode();
  6558. }
  6559. // set parent
  6560. vnode.parent = _parentVnode;
  6561. return vnode
  6562. };
  6563. }
  6564. /* */
  6565. function ensureCtor (comp, base) {
  6566. if (
  6567. comp.__esModule ||
  6568. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  6569. ) {
  6570. comp = comp.default;
  6571. }
  6572. return isObject(comp)
  6573. ? base.extend(comp)
  6574. : comp
  6575. }
  6576. function createAsyncPlaceholder (
  6577. factory,
  6578. data,
  6579. context,
  6580. children,
  6581. tag
  6582. ) {
  6583. var node = createEmptyVNode();
  6584. node.asyncFactory = factory;
  6585. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  6586. return node
  6587. }
  6588. function resolveAsyncComponent (
  6589. factory,
  6590. baseCtor
  6591. ) {
  6592. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  6593. return factory.errorComp
  6594. }
  6595. if (isDef(factory.resolved)) {
  6596. return factory.resolved
  6597. }
  6598. var owner = currentRenderingInstance;
  6599. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  6600. // already pending
  6601. factory.owners.push(owner);
  6602. }
  6603. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  6604. return factory.loadingComp
  6605. }
  6606. if (owner && !isDef(factory.owners)) {
  6607. var owners = factory.owners = [owner];
  6608. var sync = true;
  6609. var timerLoading = null;
  6610. var timerTimeout = null
  6611. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  6612. var forceRender = function (renderCompleted) {
  6613. for (var i = 0, l = owners.length; i < l; i++) {
  6614. (owners[i]).$forceUpdate();
  6615. }
  6616. if (renderCompleted) {
  6617. owners.length = 0;
  6618. if (timerLoading !== null) {
  6619. clearTimeout(timerLoading);
  6620. timerLoading = null;
  6621. }
  6622. if (timerTimeout !== null) {
  6623. clearTimeout(timerTimeout);
  6624. timerTimeout = null;
  6625. }
  6626. }
  6627. };
  6628. var resolve = once(function (res) {
  6629. // cache resolved
  6630. factory.resolved = ensureCtor(res, baseCtor);
  6631. // invoke callbacks only if this is not a synchronous resolve
  6632. // (async resolves are shimmed as synchronous during SSR)
  6633. if (!sync) {
  6634. forceRender(true);
  6635. } else {
  6636. owners.length = 0;
  6637. }
  6638. });
  6639. var reject = once(function (reason) {
  6640. true && warn(
  6641. "Failed to resolve async component: " + (String(factory)) +
  6642. (reason ? ("\nReason: " + reason) : '')
  6643. );
  6644. if (isDef(factory.errorComp)) {
  6645. factory.error = true;
  6646. forceRender(true);
  6647. }
  6648. });
  6649. var res = factory(resolve, reject);
  6650. if (isObject(res)) {
  6651. if (isPromise(res)) {
  6652. // () => Promise
  6653. if (isUndef(factory.resolved)) {
  6654. res.then(resolve, reject);
  6655. }
  6656. } else if (isPromise(res.component)) {
  6657. res.component.then(resolve, reject);
  6658. if (isDef(res.error)) {
  6659. factory.errorComp = ensureCtor(res.error, baseCtor);
  6660. }
  6661. if (isDef(res.loading)) {
  6662. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  6663. if (res.delay === 0) {
  6664. factory.loading = true;
  6665. } else {
  6666. timerLoading = setTimeout(function () {
  6667. timerLoading = null;
  6668. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  6669. factory.loading = true;
  6670. forceRender(false);
  6671. }
  6672. }, res.delay || 200);
  6673. }
  6674. }
  6675. if (isDef(res.timeout)) {
  6676. timerTimeout = setTimeout(function () {
  6677. timerTimeout = null;
  6678. if (isUndef(factory.resolved)) {
  6679. reject(
  6680. true
  6681. ? ("timeout (" + (res.timeout) + "ms)")
  6682. : undefined
  6683. );
  6684. }
  6685. }, res.timeout);
  6686. }
  6687. }
  6688. }
  6689. sync = false;
  6690. // return in case resolved synchronously
  6691. return factory.loading
  6692. ? factory.loadingComp
  6693. : factory.resolved
  6694. }
  6695. }
  6696. /* */
  6697. function isAsyncPlaceholder (node) {
  6698. return node.isComment && node.asyncFactory
  6699. }
  6700. /* */
  6701. function getFirstComponentChild (children) {
  6702. if (Array.isArray(children)) {
  6703. for (var i = 0; i < children.length; i++) {
  6704. var c = children[i];
  6705. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  6706. return c
  6707. }
  6708. }
  6709. }
  6710. }
  6711. /* */
  6712. /* */
  6713. function initEvents (vm) {
  6714. vm._events = Object.create(null);
  6715. vm._hasHookEvent = false;
  6716. // init parent attached events
  6717. var listeners = vm.$options._parentListeners;
  6718. if (listeners) {
  6719. updateComponentListeners(vm, listeners);
  6720. }
  6721. }
  6722. var target;
  6723. function add (event, fn) {
  6724. target.$on(event, fn);
  6725. }
  6726. function remove$1 (event, fn) {
  6727. target.$off(event, fn);
  6728. }
  6729. function createOnceHandler (event, fn) {
  6730. var _target = target;
  6731. return function onceHandler () {
  6732. var res = fn.apply(null, arguments);
  6733. if (res !== null) {
  6734. _target.$off(event, onceHandler);
  6735. }
  6736. }
  6737. }
  6738. function updateComponentListeners (
  6739. vm,
  6740. listeners,
  6741. oldListeners
  6742. ) {
  6743. target = vm;
  6744. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  6745. target = undefined;
  6746. }
  6747. function eventsMixin (Vue) {
  6748. var hookRE = /^hook:/;
  6749. Vue.prototype.$on = function (event, fn) {
  6750. var vm = this;
  6751. if (Array.isArray(event)) {
  6752. for (var i = 0, l = event.length; i < l; i++) {
  6753. vm.$on(event[i], fn);
  6754. }
  6755. } else {
  6756. (vm._events[event] || (vm._events[event] = [])).push(fn);
  6757. // optimize hook:event cost by using a boolean flag marked at registration
  6758. // instead of a hash lookup
  6759. if (hookRE.test(event)) {
  6760. vm._hasHookEvent = true;
  6761. }
  6762. }
  6763. return vm
  6764. };
  6765. Vue.prototype.$once = function (event, fn) {
  6766. var vm = this;
  6767. function on () {
  6768. vm.$off(event, on);
  6769. fn.apply(vm, arguments);
  6770. }
  6771. on.fn = fn;
  6772. vm.$on(event, on);
  6773. return vm
  6774. };
  6775. Vue.prototype.$off = function (event, fn) {
  6776. var vm = this;
  6777. // all
  6778. if (!arguments.length) {
  6779. vm._events = Object.create(null);
  6780. return vm
  6781. }
  6782. // array of events
  6783. if (Array.isArray(event)) {
  6784. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  6785. vm.$off(event[i$1], fn);
  6786. }
  6787. return vm
  6788. }
  6789. // specific event
  6790. var cbs = vm._events[event];
  6791. if (!cbs) {
  6792. return vm
  6793. }
  6794. if (!fn) {
  6795. vm._events[event] = null;
  6796. return vm
  6797. }
  6798. // specific handler
  6799. var cb;
  6800. var i = cbs.length;
  6801. while (i--) {
  6802. cb = cbs[i];
  6803. if (cb === fn || cb.fn === fn) {
  6804. cbs.splice(i, 1);
  6805. break
  6806. }
  6807. }
  6808. return vm
  6809. };
  6810. Vue.prototype.$emit = function (event) {
  6811. var vm = this;
  6812. if (true) {
  6813. var lowerCaseEvent = event.toLowerCase();
  6814. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  6815. tip(
  6816. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  6817. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  6818. "Note that HTML attributes are case-insensitive and you cannot use " +
  6819. "v-on to listen to camelCase events when using in-DOM templates. " +
  6820. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  6821. );
  6822. }
  6823. }
  6824. var cbs = vm._events[event];
  6825. if (cbs) {
  6826. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  6827. var args = toArray(arguments, 1);
  6828. var info = "event handler for \"" + event + "\"";
  6829. for (var i = 0, l = cbs.length; i < l; i++) {
  6830. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  6831. }
  6832. }
  6833. return vm
  6834. };
  6835. }
  6836. /* */
  6837. var activeInstance = null;
  6838. var isUpdatingChildComponent = false;
  6839. function setActiveInstance(vm) {
  6840. var prevActiveInstance = activeInstance;
  6841. activeInstance = vm;
  6842. return function () {
  6843. activeInstance = prevActiveInstance;
  6844. }
  6845. }
  6846. function initLifecycle (vm) {
  6847. var options = vm.$options;
  6848. // locate first non-abstract parent
  6849. var parent = options.parent;
  6850. if (parent && !options.abstract) {
  6851. while (parent.$options.abstract && parent.$parent) {
  6852. parent = parent.$parent;
  6853. }
  6854. parent.$children.push(vm);
  6855. }
  6856. vm.$parent = parent;
  6857. vm.$root = parent ? parent.$root : vm;
  6858. vm.$children = [];
  6859. vm.$refs = {};
  6860. vm._watcher = null;
  6861. vm._inactive = null;
  6862. vm._directInactive = false;
  6863. vm._isMounted = false;
  6864. vm._isDestroyed = false;
  6865. vm._isBeingDestroyed = false;
  6866. }
  6867. function lifecycleMixin (Vue) {
  6868. Vue.prototype._update = function (vnode, hydrating) {
  6869. var vm = this;
  6870. var prevEl = vm.$el;
  6871. var prevVnode = vm._vnode;
  6872. var restoreActiveInstance = setActiveInstance(vm);
  6873. vm._vnode = vnode;
  6874. // Vue.prototype.__patch__ is injected in entry points
  6875. // based on the rendering backend used.
  6876. if (!prevVnode) {
  6877. // initial render
  6878. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  6879. } else {
  6880. // updates
  6881. vm.$el = vm.__patch__(prevVnode, vnode);
  6882. }
  6883. restoreActiveInstance();
  6884. // update __vue__ reference
  6885. if (prevEl) {
  6886. prevEl.__vue__ = null;
  6887. }
  6888. if (vm.$el) {
  6889. vm.$el.__vue__ = vm;
  6890. }
  6891. // if parent is an HOC, update its $el as well
  6892. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  6893. vm.$parent.$el = vm.$el;
  6894. }
  6895. // updated hook is called by the scheduler to ensure that children are
  6896. // updated in a parent's updated hook.
  6897. };
  6898. Vue.prototype.$forceUpdate = function () {
  6899. var vm = this;
  6900. if (vm._watcher) {
  6901. vm._watcher.update();
  6902. }
  6903. };
  6904. Vue.prototype.$destroy = function () {
  6905. var vm = this;
  6906. if (vm._isBeingDestroyed) {
  6907. return
  6908. }
  6909. callHook(vm, 'beforeDestroy');
  6910. vm._isBeingDestroyed = true;
  6911. // remove self from parent
  6912. var parent = vm.$parent;
  6913. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  6914. remove(parent.$children, vm);
  6915. }
  6916. // teardown watchers
  6917. if (vm._watcher) {
  6918. vm._watcher.teardown();
  6919. }
  6920. var i = vm._watchers.length;
  6921. while (i--) {
  6922. vm._watchers[i].teardown();
  6923. }
  6924. // remove reference from data ob
  6925. // frozen object may not have observer.
  6926. if (vm._data.__ob__) {
  6927. vm._data.__ob__.vmCount--;
  6928. }
  6929. // call the last hook...
  6930. vm._isDestroyed = true;
  6931. // invoke destroy hooks on current rendered tree
  6932. vm.__patch__(vm._vnode, null);
  6933. // fire destroyed hook
  6934. callHook(vm, 'destroyed');
  6935. // turn off all instance listeners.
  6936. vm.$off();
  6937. // remove __vue__ reference
  6938. if (vm.$el) {
  6939. vm.$el.__vue__ = null;
  6940. }
  6941. // release circular reference (#6759)
  6942. if (vm.$vnode) {
  6943. vm.$vnode.parent = null;
  6944. }
  6945. };
  6946. }
  6947. function updateChildComponent (
  6948. vm,
  6949. propsData,
  6950. listeners,
  6951. parentVnode,
  6952. renderChildren
  6953. ) {
  6954. if (true) {
  6955. isUpdatingChildComponent = true;
  6956. }
  6957. // determine whether component has slot children
  6958. // we need to do this before overwriting $options._renderChildren.
  6959. // check if there are dynamic scopedSlots (hand-written or compiled but with
  6960. // dynamic slot names). Static scoped slots compiled from template has the
  6961. // "$stable" marker.
  6962. var newScopedSlots = parentVnode.data.scopedSlots;
  6963. var oldScopedSlots = vm.$scopedSlots;
  6964. var hasDynamicScopedSlot = !!(
  6965. (newScopedSlots && !newScopedSlots.$stable) ||
  6966. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  6967. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  6968. );
  6969. // Any static slot children from the parent may have changed during parent's
  6970. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  6971. // update is necessary to ensure correctness.
  6972. var needsForceUpdate = !!(
  6973. renderChildren || // has new static slots
  6974. vm.$options._renderChildren || // has old static slots
  6975. hasDynamicScopedSlot
  6976. );
  6977. vm.$options._parentVnode = parentVnode;
  6978. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  6979. if (vm._vnode) { // update child tree's parent
  6980. vm._vnode.parent = parentVnode;
  6981. }
  6982. vm.$options._renderChildren = renderChildren;
  6983. // update $attrs and $listeners hash
  6984. // these are also reactive so they may trigger child update if the child
  6985. // used them during render
  6986. vm.$attrs = parentVnode.data.attrs || emptyObject;
  6987. vm.$listeners = listeners || emptyObject;
  6988. // update props
  6989. if (propsData && vm.$options.props) {
  6990. toggleObserving(false);
  6991. var props = vm._props;
  6992. var propKeys = vm.$options._propKeys || [];
  6993. for (var i = 0; i < propKeys.length; i++) {
  6994. var key = propKeys[i];
  6995. var propOptions = vm.$options.props; // wtf flow?
  6996. props[key] = validateProp(key, propOptions, propsData, vm);
  6997. }
  6998. toggleObserving(true);
  6999. // keep a copy of raw propsData
  7000. vm.$options.propsData = propsData;
  7001. }
  7002. // fixed by xxxxxx update properties(mp runtime)
  7003. vm._$updateProperties && vm._$updateProperties(vm);
  7004. // update listeners
  7005. listeners = listeners || emptyObject;
  7006. var oldListeners = vm.$options._parentListeners;
  7007. vm.$options._parentListeners = listeners;
  7008. updateComponentListeners(vm, listeners, oldListeners);
  7009. // resolve slots + force update if has children
  7010. if (needsForceUpdate) {
  7011. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  7012. vm.$forceUpdate();
  7013. }
  7014. if (true) {
  7015. isUpdatingChildComponent = false;
  7016. }
  7017. }
  7018. function isInInactiveTree (vm) {
  7019. while (vm && (vm = vm.$parent)) {
  7020. if (vm._inactive) { return true }
  7021. }
  7022. return false
  7023. }
  7024. function activateChildComponent (vm, direct) {
  7025. if (direct) {
  7026. vm._directInactive = false;
  7027. if (isInInactiveTree(vm)) {
  7028. return
  7029. }
  7030. } else if (vm._directInactive) {
  7031. return
  7032. }
  7033. if (vm._inactive || vm._inactive === null) {
  7034. vm._inactive = false;
  7035. for (var i = 0; i < vm.$children.length; i++) {
  7036. activateChildComponent(vm.$children[i]);
  7037. }
  7038. callHook(vm, 'activated');
  7039. }
  7040. }
  7041. function deactivateChildComponent (vm, direct) {
  7042. if (direct) {
  7043. vm._directInactive = true;
  7044. if (isInInactiveTree(vm)) {
  7045. return
  7046. }
  7047. }
  7048. if (!vm._inactive) {
  7049. vm._inactive = true;
  7050. for (var i = 0; i < vm.$children.length; i++) {
  7051. deactivateChildComponent(vm.$children[i]);
  7052. }
  7053. callHook(vm, 'deactivated');
  7054. }
  7055. }
  7056. function callHook (vm, hook) {
  7057. // #7573 disable dep collection when invoking lifecycle hooks
  7058. pushTarget();
  7059. var handlers = vm.$options[hook];
  7060. var info = hook + " hook";
  7061. if (handlers) {
  7062. for (var i = 0, j = handlers.length; i < j; i++) {
  7063. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  7064. }
  7065. }
  7066. if (vm._hasHookEvent) {
  7067. vm.$emit('hook:' + hook);
  7068. }
  7069. popTarget();
  7070. }
  7071. /* */
  7072. var MAX_UPDATE_COUNT = 100;
  7073. var queue = [];
  7074. var activatedChildren = [];
  7075. var has = {};
  7076. var circular = {};
  7077. var waiting = false;
  7078. var flushing = false;
  7079. var index = 0;
  7080. /**
  7081. * Reset the scheduler's state.
  7082. */
  7083. function resetSchedulerState () {
  7084. index = queue.length = activatedChildren.length = 0;
  7085. has = {};
  7086. if (true) {
  7087. circular = {};
  7088. }
  7089. waiting = flushing = false;
  7090. }
  7091. // Async edge case #6566 requires saving the timestamp when event listeners are
  7092. // attached. However, calling performance.now() has a perf overhead especially
  7093. // if the page has thousands of event listeners. Instead, we take a timestamp
  7094. // every time the scheduler flushes and use that for all event listeners
  7095. // attached during that flush.
  7096. var currentFlushTimestamp = 0;
  7097. // Async edge case fix requires storing an event listener's attach timestamp.
  7098. var getNow = Date.now;
  7099. // Determine what event timestamp the browser is using. Annoyingly, the
  7100. // timestamp can either be hi-res (relative to page load) or low-res
  7101. // (relative to UNIX epoch), so in order to compare time we have to use the
  7102. // same timestamp type when saving the flush timestamp.
  7103. // All IE versions use low-res event timestamps, and have problematic clock
  7104. // implementations (#9632)
  7105. if (inBrowser && !isIE) {
  7106. var performance = window.performance;
  7107. if (
  7108. performance &&
  7109. typeof performance.now === 'function' &&
  7110. getNow() > document.createEvent('Event').timeStamp
  7111. ) {
  7112. // if the event timestamp, although evaluated AFTER the Date.now(), is
  7113. // smaller than it, it means the event is using a hi-res timestamp,
  7114. // and we need to use the hi-res version for event listener timestamps as
  7115. // well.
  7116. getNow = function () { return performance.now(); };
  7117. }
  7118. }
  7119. /**
  7120. * Flush both queues and run the watchers.
  7121. */
  7122. function flushSchedulerQueue () {
  7123. currentFlushTimestamp = getNow();
  7124. flushing = true;
  7125. var watcher, id;
  7126. // Sort queue before flush.
  7127. // This ensures that:
  7128. // 1. Components are updated from parent to child. (because parent is always
  7129. // created before the child)
  7130. // 2. A component's user watchers are run before its render watcher (because
  7131. // user watchers are created before the render watcher)
  7132. // 3. If a component is destroyed during a parent component's watcher run,
  7133. // its watchers can be skipped.
  7134. queue.sort(function (a, b) { return a.id - b.id; });
  7135. // do not cache length because more watchers might be pushed
  7136. // as we run existing watchers
  7137. for (index = 0; index < queue.length; index++) {
  7138. watcher = queue[index];
  7139. if (watcher.before) {
  7140. watcher.before();
  7141. }
  7142. id = watcher.id;
  7143. has[id] = null;
  7144. watcher.run();
  7145. // in dev build, check and stop circular updates.
  7146. if ( true && has[id] != null) {
  7147. circular[id] = (circular[id] || 0) + 1;
  7148. if (circular[id] > MAX_UPDATE_COUNT) {
  7149. warn(
  7150. 'You may have an infinite update loop ' + (
  7151. watcher.user
  7152. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  7153. : "in a component render function."
  7154. ),
  7155. watcher.vm
  7156. );
  7157. break
  7158. }
  7159. }
  7160. }
  7161. // keep copies of post queues before resetting state
  7162. var activatedQueue = activatedChildren.slice();
  7163. var updatedQueue = queue.slice();
  7164. resetSchedulerState();
  7165. // call component updated and activated hooks
  7166. callActivatedHooks(activatedQueue);
  7167. callUpdatedHooks(updatedQueue);
  7168. // devtool hook
  7169. /* istanbul ignore if */
  7170. if (devtools && config.devtools) {
  7171. devtools.emit('flush');
  7172. }
  7173. }
  7174. function callUpdatedHooks (queue) {
  7175. var i = queue.length;
  7176. while (i--) {
  7177. var watcher = queue[i];
  7178. var vm = watcher.vm;
  7179. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  7180. callHook(vm, 'updated');
  7181. }
  7182. }
  7183. }
  7184. /**
  7185. * Queue a kept-alive component that was activated during patch.
  7186. * The queue will be processed after the entire tree has been patched.
  7187. */
  7188. function queueActivatedComponent (vm) {
  7189. // setting _inactive to false here so that a render function can
  7190. // rely on checking whether it's in an inactive tree (e.g. router-view)
  7191. vm._inactive = false;
  7192. activatedChildren.push(vm);
  7193. }
  7194. function callActivatedHooks (queue) {
  7195. for (var i = 0; i < queue.length; i++) {
  7196. queue[i]._inactive = true;
  7197. activateChildComponent(queue[i], true /* true */);
  7198. }
  7199. }
  7200. /**
  7201. * Push a watcher into the watcher queue.
  7202. * Jobs with duplicate IDs will be skipped unless it's
  7203. * pushed when the queue is being flushed.
  7204. */
  7205. function queueWatcher (watcher) {
  7206. var id = watcher.id;
  7207. if (has[id] == null) {
  7208. has[id] = true;
  7209. if (!flushing) {
  7210. queue.push(watcher);
  7211. } else {
  7212. // if already flushing, splice the watcher based on its id
  7213. // if already past its id, it will be run next immediately.
  7214. var i = queue.length - 1;
  7215. while (i > index && queue[i].id > watcher.id) {
  7216. i--;
  7217. }
  7218. queue.splice(i + 1, 0, watcher);
  7219. }
  7220. // queue the flush
  7221. if (!waiting) {
  7222. waiting = true;
  7223. if ( true && !config.async) {
  7224. flushSchedulerQueue();
  7225. return
  7226. }
  7227. nextTick(flushSchedulerQueue);
  7228. }
  7229. }
  7230. }
  7231. /* */
  7232. var uid$2 = 0;
  7233. /**
  7234. * A watcher parses an expression, collects dependencies,
  7235. * and fires callback when the expression value changes.
  7236. * This is used for both the $watch() api and directives.
  7237. */
  7238. var Watcher = function Watcher (
  7239. vm,
  7240. expOrFn,
  7241. cb,
  7242. options,
  7243. isRenderWatcher
  7244. ) {
  7245. this.vm = vm;
  7246. if (isRenderWatcher) {
  7247. vm._watcher = this;
  7248. }
  7249. vm._watchers.push(this);
  7250. // options
  7251. if (options) {
  7252. this.deep = !!options.deep;
  7253. this.user = !!options.user;
  7254. this.lazy = !!options.lazy;
  7255. this.sync = !!options.sync;
  7256. this.before = options.before;
  7257. } else {
  7258. this.deep = this.user = this.lazy = this.sync = false;
  7259. }
  7260. this.cb = cb;
  7261. this.id = ++uid$2; // uid for batching
  7262. this.active = true;
  7263. this.dirty = this.lazy; // for lazy watchers
  7264. this.deps = [];
  7265. this.newDeps = [];
  7266. this.depIds = new _Set();
  7267. this.newDepIds = new _Set();
  7268. this.expression = true
  7269. ? expOrFn.toString()
  7270. : undefined;
  7271. // parse expression for getter
  7272. if (typeof expOrFn === 'function') {
  7273. this.getter = expOrFn;
  7274. } else {
  7275. this.getter = parsePath(expOrFn);
  7276. if (!this.getter) {
  7277. this.getter = noop;
  7278. true && warn(
  7279. "Failed watching path: \"" + expOrFn + "\" " +
  7280. 'Watcher only accepts simple dot-delimited paths. ' +
  7281. 'For full control, use a function instead.',
  7282. vm
  7283. );
  7284. }
  7285. }
  7286. this.value = this.lazy
  7287. ? undefined
  7288. : this.get();
  7289. };
  7290. /**
  7291. * Evaluate the getter, and re-collect dependencies.
  7292. */
  7293. Watcher.prototype.get = function get () {
  7294. pushTarget(this);
  7295. var value;
  7296. var vm = this.vm;
  7297. try {
  7298. value = this.getter.call(vm, vm);
  7299. } catch (e) {
  7300. if (this.user) {
  7301. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  7302. } else {
  7303. throw e
  7304. }
  7305. } finally {
  7306. // "touch" every property so they are all tracked as
  7307. // dependencies for deep watching
  7308. if (this.deep) {
  7309. traverse(value);
  7310. }
  7311. popTarget();
  7312. this.cleanupDeps();
  7313. }
  7314. return value
  7315. };
  7316. /**
  7317. * Add a dependency to this directive.
  7318. */
  7319. Watcher.prototype.addDep = function addDep (dep) {
  7320. var id = dep.id;
  7321. if (!this.newDepIds.has(id)) {
  7322. this.newDepIds.add(id);
  7323. this.newDeps.push(dep);
  7324. if (!this.depIds.has(id)) {
  7325. dep.addSub(this);
  7326. }
  7327. }
  7328. };
  7329. /**
  7330. * Clean up for dependency collection.
  7331. */
  7332. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  7333. var i = this.deps.length;
  7334. while (i--) {
  7335. var dep = this.deps[i];
  7336. if (!this.newDepIds.has(dep.id)) {
  7337. dep.removeSub(this);
  7338. }
  7339. }
  7340. var tmp = this.depIds;
  7341. this.depIds = this.newDepIds;
  7342. this.newDepIds = tmp;
  7343. this.newDepIds.clear();
  7344. tmp = this.deps;
  7345. this.deps = this.newDeps;
  7346. this.newDeps = tmp;
  7347. this.newDeps.length = 0;
  7348. };
  7349. /**
  7350. * Subscriber interface.
  7351. * Will be called when a dependency changes.
  7352. */
  7353. Watcher.prototype.update = function update () {
  7354. /* istanbul ignore else */
  7355. if (this.lazy) {
  7356. this.dirty = true;
  7357. } else if (this.sync) {
  7358. this.run();
  7359. } else {
  7360. queueWatcher(this);
  7361. }
  7362. };
  7363. /**
  7364. * Scheduler job interface.
  7365. * Will be called by the scheduler.
  7366. */
  7367. Watcher.prototype.run = function run () {
  7368. if (this.active) {
  7369. var value = this.get();
  7370. if (
  7371. value !== this.value ||
  7372. // Deep watchers and watchers on Object/Arrays should fire even
  7373. // when the value is the same, because the value may
  7374. // have mutated.
  7375. isObject(value) ||
  7376. this.deep
  7377. ) {
  7378. // set new value
  7379. var oldValue = this.value;
  7380. this.value = value;
  7381. if (this.user) {
  7382. try {
  7383. this.cb.call(this.vm, value, oldValue);
  7384. } catch (e) {
  7385. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  7386. }
  7387. } else {
  7388. this.cb.call(this.vm, value, oldValue);
  7389. }
  7390. }
  7391. }
  7392. };
  7393. /**
  7394. * Evaluate the value of the watcher.
  7395. * This only gets called for lazy watchers.
  7396. */
  7397. Watcher.prototype.evaluate = function evaluate () {
  7398. this.value = this.get();
  7399. this.dirty = false;
  7400. };
  7401. /**
  7402. * Depend on all deps collected by this watcher.
  7403. */
  7404. Watcher.prototype.depend = function depend () {
  7405. var i = this.deps.length;
  7406. while (i--) {
  7407. this.deps[i].depend();
  7408. }
  7409. };
  7410. /**
  7411. * Remove self from all dependencies' subscriber list.
  7412. */
  7413. Watcher.prototype.teardown = function teardown () {
  7414. if (this.active) {
  7415. // remove self from vm's watcher list
  7416. // this is a somewhat expensive operation so we skip it
  7417. // if the vm is being destroyed.
  7418. if (!this.vm._isBeingDestroyed) {
  7419. remove(this.vm._watchers, this);
  7420. }
  7421. var i = this.deps.length;
  7422. while (i--) {
  7423. this.deps[i].removeSub(this);
  7424. }
  7425. this.active = false;
  7426. }
  7427. };
  7428. /* */
  7429. var sharedPropertyDefinition = {
  7430. enumerable: true,
  7431. configurable: true,
  7432. get: noop,
  7433. set: noop
  7434. };
  7435. function proxy (target, sourceKey, key) {
  7436. sharedPropertyDefinition.get = function proxyGetter () {
  7437. return this[sourceKey][key]
  7438. };
  7439. sharedPropertyDefinition.set = function proxySetter (val) {
  7440. this[sourceKey][key] = val;
  7441. };
  7442. Object.defineProperty(target, key, sharedPropertyDefinition);
  7443. }
  7444. function initState (vm) {
  7445. vm._watchers = [];
  7446. var opts = vm.$options;
  7447. if (opts.props) { initProps(vm, opts.props); }
  7448. if (opts.methods) { initMethods(vm, opts.methods); }
  7449. if (opts.data) {
  7450. initData(vm);
  7451. } else {
  7452. observe(vm._data = {}, true /* asRootData */);
  7453. }
  7454. if (opts.computed) { initComputed(vm, opts.computed); }
  7455. if (opts.watch && opts.watch !== nativeWatch) {
  7456. initWatch(vm, opts.watch);
  7457. }
  7458. }
  7459. function initProps (vm, propsOptions) {
  7460. var propsData = vm.$options.propsData || {};
  7461. var props = vm._props = {};
  7462. // cache prop keys so that future props updates can iterate using Array
  7463. // instead of dynamic object key enumeration.
  7464. var keys = vm.$options._propKeys = [];
  7465. var isRoot = !vm.$parent;
  7466. // root instance props should be converted
  7467. if (!isRoot) {
  7468. toggleObserving(false);
  7469. }
  7470. var loop = function ( key ) {
  7471. keys.push(key);
  7472. var value = validateProp(key, propsOptions, propsData, vm);
  7473. /* istanbul ignore else */
  7474. if (true) {
  7475. var hyphenatedKey = hyphenate(key);
  7476. if (isReservedAttribute(hyphenatedKey) ||
  7477. config.isReservedAttr(hyphenatedKey)) {
  7478. warn(
  7479. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  7480. vm
  7481. );
  7482. }
  7483. defineReactive$$1(props, key, value, function () {
  7484. if (!isRoot && !isUpdatingChildComponent) {
  7485. {
  7486. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  7487. return
  7488. }
  7489. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  7490. if(
  7491. key === 'value' &&
  7492. Array.isArray(vm.$options.behaviors) &&
  7493. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  7494. ){
  7495. return
  7496. }
  7497. if(vm._getFormData){
  7498. return
  7499. }
  7500. var $parent = vm.$parent;
  7501. while($parent){
  7502. if($parent.__next_tick_pending){
  7503. return
  7504. }
  7505. $parent = $parent.$parent;
  7506. }
  7507. }
  7508. warn(
  7509. "Avoid mutating a prop directly since the value will be " +
  7510. "overwritten whenever the parent component re-renders. " +
  7511. "Instead, use a data or computed property based on the prop's " +
  7512. "value. Prop being mutated: \"" + key + "\"",
  7513. vm
  7514. );
  7515. }
  7516. });
  7517. } else {}
  7518. // static props are already proxied on the component's prototype
  7519. // during Vue.extend(). We only need to proxy props defined at
  7520. // instantiation here.
  7521. if (!(key in vm)) {
  7522. proxy(vm, "_props", key);
  7523. }
  7524. };
  7525. for (var key in propsOptions) loop( key );
  7526. toggleObserving(true);
  7527. }
  7528. function initData (vm) {
  7529. var data = vm.$options.data;
  7530. data = vm._data = typeof data === 'function'
  7531. ? getData(data, vm)
  7532. : data || {};
  7533. if (!isPlainObject(data)) {
  7534. data = {};
  7535. true && warn(
  7536. 'data functions should return an object:\n' +
  7537. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  7538. vm
  7539. );
  7540. }
  7541. // proxy data on instance
  7542. var keys = Object.keys(data);
  7543. var props = vm.$options.props;
  7544. var methods = vm.$options.methods;
  7545. var i = keys.length;
  7546. while (i--) {
  7547. var key = keys[i];
  7548. if (true) {
  7549. if (methods && hasOwn(methods, key)) {
  7550. warn(
  7551. ("Method \"" + key + "\" has already been defined as a data property."),
  7552. vm
  7553. );
  7554. }
  7555. }
  7556. if (props && hasOwn(props, key)) {
  7557. true && warn(
  7558. "The data property \"" + key + "\" is already declared as a prop. " +
  7559. "Use prop default value instead.",
  7560. vm
  7561. );
  7562. } else if (!isReserved(key)) {
  7563. proxy(vm, "_data", key);
  7564. }
  7565. }
  7566. // observe data
  7567. observe(data, true /* asRootData */);
  7568. }
  7569. function getData (data, vm) {
  7570. // #7573 disable dep collection when invoking data getters
  7571. pushTarget();
  7572. try {
  7573. return data.call(vm, vm)
  7574. } catch (e) {
  7575. handleError(e, vm, "data()");
  7576. return {}
  7577. } finally {
  7578. popTarget();
  7579. }
  7580. }
  7581. var computedWatcherOptions = { lazy: true };
  7582. function initComputed (vm, computed) {
  7583. // $flow-disable-line
  7584. var watchers = vm._computedWatchers = Object.create(null);
  7585. // computed properties are just getters during SSR
  7586. var isSSR = isServerRendering();
  7587. for (var key in computed) {
  7588. var userDef = computed[key];
  7589. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  7590. if ( true && getter == null) {
  7591. warn(
  7592. ("Getter is missing for computed property \"" + key + "\"."),
  7593. vm
  7594. );
  7595. }
  7596. if (!isSSR) {
  7597. // create internal watcher for the computed property.
  7598. watchers[key] = new Watcher(
  7599. vm,
  7600. getter || noop,
  7601. noop,
  7602. computedWatcherOptions
  7603. );
  7604. }
  7605. // component-defined computed properties are already defined on the
  7606. // component prototype. We only need to define computed properties defined
  7607. // at instantiation here.
  7608. if (!(key in vm)) {
  7609. defineComputed(vm, key, userDef);
  7610. } else if (true) {
  7611. if (key in vm.$data) {
  7612. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  7613. } else if (vm.$options.props && key in vm.$options.props) {
  7614. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  7615. }
  7616. }
  7617. }
  7618. }
  7619. function defineComputed (
  7620. target,
  7621. key,
  7622. userDef
  7623. ) {
  7624. var shouldCache = !isServerRendering();
  7625. if (typeof userDef === 'function') {
  7626. sharedPropertyDefinition.get = shouldCache
  7627. ? createComputedGetter(key)
  7628. : createGetterInvoker(userDef);
  7629. sharedPropertyDefinition.set = noop;
  7630. } else {
  7631. sharedPropertyDefinition.get = userDef.get
  7632. ? shouldCache && userDef.cache !== false
  7633. ? createComputedGetter(key)
  7634. : createGetterInvoker(userDef.get)
  7635. : noop;
  7636. sharedPropertyDefinition.set = userDef.set || noop;
  7637. }
  7638. if ( true &&
  7639. sharedPropertyDefinition.set === noop) {
  7640. sharedPropertyDefinition.set = function () {
  7641. warn(
  7642. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  7643. this
  7644. );
  7645. };
  7646. }
  7647. Object.defineProperty(target, key, sharedPropertyDefinition);
  7648. }
  7649. function createComputedGetter (key) {
  7650. return function computedGetter () {
  7651. var watcher = this._computedWatchers && this._computedWatchers[key];
  7652. if (watcher) {
  7653. if (watcher.dirty) {
  7654. watcher.evaluate();
  7655. }
  7656. if (Dep.SharedObject.target) {// fixed by xxxxxx
  7657. watcher.depend();
  7658. }
  7659. return watcher.value
  7660. }
  7661. }
  7662. }
  7663. function createGetterInvoker(fn) {
  7664. return function computedGetter () {
  7665. return fn.call(this, this)
  7666. }
  7667. }
  7668. function initMethods (vm, methods) {
  7669. var props = vm.$options.props;
  7670. for (var key in methods) {
  7671. if (true) {
  7672. if (typeof methods[key] !== 'function') {
  7673. warn(
  7674. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  7675. "Did you reference the function correctly?",
  7676. vm
  7677. );
  7678. }
  7679. if (props && hasOwn(props, key)) {
  7680. warn(
  7681. ("Method \"" + key + "\" has already been defined as a prop."),
  7682. vm
  7683. );
  7684. }
  7685. if ((key in vm) && isReserved(key)) {
  7686. warn(
  7687. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  7688. "Avoid defining component methods that start with _ or $."
  7689. );
  7690. }
  7691. }
  7692. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  7693. }
  7694. }
  7695. function initWatch (vm, watch) {
  7696. for (var key in watch) {
  7697. var handler = watch[key];
  7698. if (Array.isArray(handler)) {
  7699. for (var i = 0; i < handler.length; i++) {
  7700. createWatcher(vm, key, handler[i]);
  7701. }
  7702. } else {
  7703. createWatcher(vm, key, handler);
  7704. }
  7705. }
  7706. }
  7707. function createWatcher (
  7708. vm,
  7709. expOrFn,
  7710. handler,
  7711. options
  7712. ) {
  7713. if (isPlainObject(handler)) {
  7714. options = handler;
  7715. handler = handler.handler;
  7716. }
  7717. if (typeof handler === 'string') {
  7718. handler = vm[handler];
  7719. }
  7720. return vm.$watch(expOrFn, handler, options)
  7721. }
  7722. function stateMixin (Vue) {
  7723. // flow somehow has problems with directly declared definition object
  7724. // when using Object.defineProperty, so we have to procedurally build up
  7725. // the object here.
  7726. var dataDef = {};
  7727. dataDef.get = function () { return this._data };
  7728. var propsDef = {};
  7729. propsDef.get = function () { return this._props };
  7730. if (true) {
  7731. dataDef.set = function () {
  7732. warn(
  7733. 'Avoid replacing instance root $data. ' +
  7734. 'Use nested data properties instead.',
  7735. this
  7736. );
  7737. };
  7738. propsDef.set = function () {
  7739. warn("$props is readonly.", this);
  7740. };
  7741. }
  7742. Object.defineProperty(Vue.prototype, '$data', dataDef);
  7743. Object.defineProperty(Vue.prototype, '$props', propsDef);
  7744. Vue.prototype.$set = set;
  7745. Vue.prototype.$delete = del;
  7746. Vue.prototype.$watch = function (
  7747. expOrFn,
  7748. cb,
  7749. options
  7750. ) {
  7751. var vm = this;
  7752. if (isPlainObject(cb)) {
  7753. return createWatcher(vm, expOrFn, cb, options)
  7754. }
  7755. options = options || {};
  7756. options.user = true;
  7757. var watcher = new Watcher(vm, expOrFn, cb, options);
  7758. if (options.immediate) {
  7759. try {
  7760. cb.call(vm, watcher.value);
  7761. } catch (error) {
  7762. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  7763. }
  7764. }
  7765. return function unwatchFn () {
  7766. watcher.teardown();
  7767. }
  7768. };
  7769. }
  7770. /* */
  7771. var uid$3 = 0;
  7772. function initMixin (Vue) {
  7773. Vue.prototype._init = function (options) {
  7774. var vm = this;
  7775. // a uid
  7776. vm._uid = uid$3++;
  7777. var startTag, endTag;
  7778. /* istanbul ignore if */
  7779. if ( true && config.performance && mark) {
  7780. startTag = "vue-perf-start:" + (vm._uid);
  7781. endTag = "vue-perf-end:" + (vm._uid);
  7782. mark(startTag);
  7783. }
  7784. // a flag to avoid this being observed
  7785. vm._isVue = true;
  7786. // merge options
  7787. if (options && options._isComponent) {
  7788. // optimize internal component instantiation
  7789. // since dynamic options merging is pretty slow, and none of the
  7790. // internal component options needs special treatment.
  7791. initInternalComponent(vm, options);
  7792. } else {
  7793. vm.$options = mergeOptions(
  7794. resolveConstructorOptions(vm.constructor),
  7795. options || {},
  7796. vm
  7797. );
  7798. }
  7799. /* istanbul ignore else */
  7800. if (true) {
  7801. initProxy(vm);
  7802. } else {}
  7803. // expose real self
  7804. vm._self = vm;
  7805. initLifecycle(vm);
  7806. initEvents(vm);
  7807. initRender(vm);
  7808. callHook(vm, 'beforeCreate');
  7809. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  7810. initState(vm);
  7811. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  7812. !vm._$fallback && callHook(vm, 'created');
  7813. /* istanbul ignore if */
  7814. if ( true && config.performance && mark) {
  7815. vm._name = formatComponentName(vm, false);
  7816. mark(endTag);
  7817. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  7818. }
  7819. if (vm.$options.el) {
  7820. vm.$mount(vm.$options.el);
  7821. }
  7822. };
  7823. }
  7824. function initInternalComponent (vm, options) {
  7825. var opts = vm.$options = Object.create(vm.constructor.options);
  7826. // doing this because it's faster than dynamic enumeration.
  7827. var parentVnode = options._parentVnode;
  7828. opts.parent = options.parent;
  7829. opts._parentVnode = parentVnode;
  7830. var vnodeComponentOptions = parentVnode.componentOptions;
  7831. opts.propsData = vnodeComponentOptions.propsData;
  7832. opts._parentListeners = vnodeComponentOptions.listeners;
  7833. opts._renderChildren = vnodeComponentOptions.children;
  7834. opts._componentTag = vnodeComponentOptions.tag;
  7835. if (options.render) {
  7836. opts.render = options.render;
  7837. opts.staticRenderFns = options.staticRenderFns;
  7838. }
  7839. }
  7840. function resolveConstructorOptions (Ctor) {
  7841. var options = Ctor.options;
  7842. if (Ctor.super) {
  7843. var superOptions = resolveConstructorOptions(Ctor.super);
  7844. var cachedSuperOptions = Ctor.superOptions;
  7845. if (superOptions !== cachedSuperOptions) {
  7846. // super option changed,
  7847. // need to resolve new options.
  7848. Ctor.superOptions = superOptions;
  7849. // check if there are any late-modified/attached options (#4976)
  7850. var modifiedOptions = resolveModifiedOptions(Ctor);
  7851. // update base extend options
  7852. if (modifiedOptions) {
  7853. extend(Ctor.extendOptions, modifiedOptions);
  7854. }
  7855. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  7856. if (options.name) {
  7857. options.components[options.name] = Ctor;
  7858. }
  7859. }
  7860. }
  7861. return options
  7862. }
  7863. function resolveModifiedOptions (Ctor) {
  7864. var modified;
  7865. var latest = Ctor.options;
  7866. var sealed = Ctor.sealedOptions;
  7867. for (var key in latest) {
  7868. if (latest[key] !== sealed[key]) {
  7869. if (!modified) { modified = {}; }
  7870. modified[key] = latest[key];
  7871. }
  7872. }
  7873. return modified
  7874. }
  7875. function Vue (options) {
  7876. if ( true &&
  7877. !(this instanceof Vue)
  7878. ) {
  7879. warn('Vue is a constructor and should be called with the `new` keyword');
  7880. }
  7881. this._init(options);
  7882. }
  7883. initMixin(Vue);
  7884. stateMixin(Vue);
  7885. eventsMixin(Vue);
  7886. lifecycleMixin(Vue);
  7887. renderMixin(Vue);
  7888. /* */
  7889. function initUse (Vue) {
  7890. Vue.use = function (plugin) {
  7891. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  7892. if (installedPlugins.indexOf(plugin) > -1) {
  7893. return this
  7894. }
  7895. // additional parameters
  7896. var args = toArray(arguments, 1);
  7897. args.unshift(this);
  7898. if (typeof plugin.install === 'function') {
  7899. plugin.install.apply(plugin, args);
  7900. } else if (typeof plugin === 'function') {
  7901. plugin.apply(null, args);
  7902. }
  7903. installedPlugins.push(plugin);
  7904. return this
  7905. };
  7906. }
  7907. /* */
  7908. function initMixin$1 (Vue) {
  7909. Vue.mixin = function (mixin) {
  7910. this.options = mergeOptions(this.options, mixin);
  7911. return this
  7912. };
  7913. }
  7914. /* */
  7915. function initExtend (Vue) {
  7916. /**
  7917. * Each instance constructor, including Vue, has a unique
  7918. * cid. This enables us to create wrapped "child
  7919. * constructors" for prototypal inheritance and cache them.
  7920. */
  7921. Vue.cid = 0;
  7922. var cid = 1;
  7923. /**
  7924. * Class inheritance
  7925. */
  7926. Vue.extend = function (extendOptions) {
  7927. extendOptions = extendOptions || {};
  7928. var Super = this;
  7929. var SuperId = Super.cid;
  7930. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  7931. if (cachedCtors[SuperId]) {
  7932. return cachedCtors[SuperId]
  7933. }
  7934. var name = extendOptions.name || Super.options.name;
  7935. if ( true && name) {
  7936. validateComponentName(name);
  7937. }
  7938. var Sub = function VueComponent (options) {
  7939. this._init(options);
  7940. };
  7941. Sub.prototype = Object.create(Super.prototype);
  7942. Sub.prototype.constructor = Sub;
  7943. Sub.cid = cid++;
  7944. Sub.options = mergeOptions(
  7945. Super.options,
  7946. extendOptions
  7947. );
  7948. Sub['super'] = Super;
  7949. // For props and computed properties, we define the proxy getters on
  7950. // the Vue instances at extension time, on the extended prototype. This
  7951. // avoids Object.defineProperty calls for each instance created.
  7952. if (Sub.options.props) {
  7953. initProps$1(Sub);
  7954. }
  7955. if (Sub.options.computed) {
  7956. initComputed$1(Sub);
  7957. }
  7958. // allow further extension/mixin/plugin usage
  7959. Sub.extend = Super.extend;
  7960. Sub.mixin = Super.mixin;
  7961. Sub.use = Super.use;
  7962. // create asset registers, so extended classes
  7963. // can have their private assets too.
  7964. ASSET_TYPES.forEach(function (type) {
  7965. Sub[type] = Super[type];
  7966. });
  7967. // enable recursive self-lookup
  7968. if (name) {
  7969. Sub.options.components[name] = Sub;
  7970. }
  7971. // keep a reference to the super options at extension time.
  7972. // later at instantiation we can check if Super's options have
  7973. // been updated.
  7974. Sub.superOptions = Super.options;
  7975. Sub.extendOptions = extendOptions;
  7976. Sub.sealedOptions = extend({}, Sub.options);
  7977. // cache constructor
  7978. cachedCtors[SuperId] = Sub;
  7979. return Sub
  7980. };
  7981. }
  7982. function initProps$1 (Comp) {
  7983. var props = Comp.options.props;
  7984. for (var key in props) {
  7985. proxy(Comp.prototype, "_props", key);
  7986. }
  7987. }
  7988. function initComputed$1 (Comp) {
  7989. var computed = Comp.options.computed;
  7990. for (var key in computed) {
  7991. defineComputed(Comp.prototype, key, computed[key]);
  7992. }
  7993. }
  7994. /* */
  7995. function initAssetRegisters (Vue) {
  7996. /**
  7997. * Create asset registration methods.
  7998. */
  7999. ASSET_TYPES.forEach(function (type) {
  8000. Vue[type] = function (
  8001. id,
  8002. definition
  8003. ) {
  8004. if (!definition) {
  8005. return this.options[type + 's'][id]
  8006. } else {
  8007. /* istanbul ignore if */
  8008. if ( true && type === 'component') {
  8009. validateComponentName(id);
  8010. }
  8011. if (type === 'component' && isPlainObject(definition)) {
  8012. definition.name = definition.name || id;
  8013. definition = this.options._base.extend(definition);
  8014. }
  8015. if (type === 'directive' && typeof definition === 'function') {
  8016. definition = { bind: definition, update: definition };
  8017. }
  8018. this.options[type + 's'][id] = definition;
  8019. return definition
  8020. }
  8021. };
  8022. });
  8023. }
  8024. /* */
  8025. function getComponentName (opts) {
  8026. return opts && (opts.Ctor.options.name || opts.tag)
  8027. }
  8028. function matches (pattern, name) {
  8029. if (Array.isArray(pattern)) {
  8030. return pattern.indexOf(name) > -1
  8031. } else if (typeof pattern === 'string') {
  8032. return pattern.split(',').indexOf(name) > -1
  8033. } else if (isRegExp(pattern)) {
  8034. return pattern.test(name)
  8035. }
  8036. /* istanbul ignore next */
  8037. return false
  8038. }
  8039. function pruneCache (keepAliveInstance, filter) {
  8040. var cache = keepAliveInstance.cache;
  8041. var keys = keepAliveInstance.keys;
  8042. var _vnode = keepAliveInstance._vnode;
  8043. for (var key in cache) {
  8044. var cachedNode = cache[key];
  8045. if (cachedNode) {
  8046. var name = getComponentName(cachedNode.componentOptions);
  8047. if (name && !filter(name)) {
  8048. pruneCacheEntry(cache, key, keys, _vnode);
  8049. }
  8050. }
  8051. }
  8052. }
  8053. function pruneCacheEntry (
  8054. cache,
  8055. key,
  8056. keys,
  8057. current
  8058. ) {
  8059. var cached$$1 = cache[key];
  8060. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  8061. cached$$1.componentInstance.$destroy();
  8062. }
  8063. cache[key] = null;
  8064. remove(keys, key);
  8065. }
  8066. var patternTypes = [String, RegExp, Array];
  8067. var KeepAlive = {
  8068. name: 'keep-alive',
  8069. abstract: true,
  8070. props: {
  8071. include: patternTypes,
  8072. exclude: patternTypes,
  8073. max: [String, Number]
  8074. },
  8075. created: function created () {
  8076. this.cache = Object.create(null);
  8077. this.keys = [];
  8078. },
  8079. destroyed: function destroyed () {
  8080. for (var key in this.cache) {
  8081. pruneCacheEntry(this.cache, key, this.keys);
  8082. }
  8083. },
  8084. mounted: function mounted () {
  8085. var this$1 = this;
  8086. this.$watch('include', function (val) {
  8087. pruneCache(this$1, function (name) { return matches(val, name); });
  8088. });
  8089. this.$watch('exclude', function (val) {
  8090. pruneCache(this$1, function (name) { return !matches(val, name); });
  8091. });
  8092. },
  8093. render: function render () {
  8094. var slot = this.$slots.default;
  8095. var vnode = getFirstComponentChild(slot);
  8096. var componentOptions = vnode && vnode.componentOptions;
  8097. if (componentOptions) {
  8098. // check pattern
  8099. var name = getComponentName(componentOptions);
  8100. var ref = this;
  8101. var include = ref.include;
  8102. var exclude = ref.exclude;
  8103. if (
  8104. // not included
  8105. (include && (!name || !matches(include, name))) ||
  8106. // excluded
  8107. (exclude && name && matches(exclude, name))
  8108. ) {
  8109. return vnode
  8110. }
  8111. var ref$1 = this;
  8112. var cache = ref$1.cache;
  8113. var keys = ref$1.keys;
  8114. var key = vnode.key == null
  8115. // same constructor may get registered as different local components
  8116. // so cid alone is not enough (#3269)
  8117. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  8118. : vnode.key;
  8119. if (cache[key]) {
  8120. vnode.componentInstance = cache[key].componentInstance;
  8121. // make current key freshest
  8122. remove(keys, key);
  8123. keys.push(key);
  8124. } else {
  8125. cache[key] = vnode;
  8126. keys.push(key);
  8127. // prune oldest entry
  8128. if (this.max && keys.length > parseInt(this.max)) {
  8129. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  8130. }
  8131. }
  8132. vnode.data.keepAlive = true;
  8133. }
  8134. return vnode || (slot && slot[0])
  8135. }
  8136. };
  8137. var builtInComponents = {
  8138. KeepAlive: KeepAlive
  8139. };
  8140. /* */
  8141. function initGlobalAPI (Vue) {
  8142. // config
  8143. var configDef = {};
  8144. configDef.get = function () { return config; };
  8145. if (true) {
  8146. configDef.set = function () {
  8147. warn(
  8148. 'Do not replace the Vue.config object, set individual fields instead.'
  8149. );
  8150. };
  8151. }
  8152. Object.defineProperty(Vue, 'config', configDef);
  8153. // exposed util methods.
  8154. // NOTE: these are not considered part of the public API - avoid relying on
  8155. // them unless you are aware of the risk.
  8156. Vue.util = {
  8157. warn: warn,
  8158. extend: extend,
  8159. mergeOptions: mergeOptions,
  8160. defineReactive: defineReactive$$1
  8161. };
  8162. Vue.set = set;
  8163. Vue.delete = del;
  8164. Vue.nextTick = nextTick;
  8165. // 2.6 explicit observable API
  8166. Vue.observable = function (obj) {
  8167. observe(obj);
  8168. return obj
  8169. };
  8170. Vue.options = Object.create(null);
  8171. ASSET_TYPES.forEach(function (type) {
  8172. Vue.options[type + 's'] = Object.create(null);
  8173. });
  8174. // this is used to identify the "base" constructor to extend all plain-object
  8175. // components with in Weex's multi-instance scenarios.
  8176. Vue.options._base = Vue;
  8177. extend(Vue.options.components, builtInComponents);
  8178. initUse(Vue);
  8179. initMixin$1(Vue);
  8180. initExtend(Vue);
  8181. initAssetRegisters(Vue);
  8182. }
  8183. initGlobalAPI(Vue);
  8184. Object.defineProperty(Vue.prototype, '$isServer', {
  8185. get: isServerRendering
  8186. });
  8187. Object.defineProperty(Vue.prototype, '$ssrContext', {
  8188. get: function get () {
  8189. /* istanbul ignore next */
  8190. return this.$vnode && this.$vnode.ssrContext
  8191. }
  8192. });
  8193. // expose FunctionalRenderContext for ssr runtime helper installation
  8194. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  8195. value: FunctionalRenderContext
  8196. });
  8197. Vue.version = '2.6.11';
  8198. /**
  8199. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  8200. */
  8201. var ARRAYTYPE = '[object Array]';
  8202. var OBJECTTYPE = '[object Object]';
  8203. var NULLTYPE = '[object Null]';
  8204. var UNDEFINEDTYPE = '[object Undefined]';
  8205. // const FUNCTIONTYPE = '[object Function]'
  8206. function diff(current, pre) {
  8207. var result = {};
  8208. syncKeys(current, pre);
  8209. _diff(current, pre, '', result);
  8210. return result
  8211. }
  8212. function syncKeys(current, pre) {
  8213. if (current === pre) { return }
  8214. var rootCurrentType = type(current);
  8215. var rootPreType = type(pre);
  8216. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  8217. if(Object.keys(current).length >= Object.keys(pre).length){
  8218. for (var key in pre) {
  8219. var currentValue = current[key];
  8220. if (currentValue === undefined) {
  8221. current[key] = null;
  8222. } else {
  8223. syncKeys(currentValue, pre[key]);
  8224. }
  8225. }
  8226. }
  8227. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  8228. if (current.length >= pre.length) {
  8229. pre.forEach(function (item, index) {
  8230. syncKeys(current[index], item);
  8231. });
  8232. }
  8233. }
  8234. }
  8235. function nullOrUndefined(currentType, preType) {
  8236. if(
  8237. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  8238. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  8239. ) {
  8240. return false
  8241. }
  8242. return true
  8243. }
  8244. function _diff(current, pre, path, result) {
  8245. if (current === pre) { return }
  8246. var rootCurrentType = type(current);
  8247. var rootPreType = type(pre);
  8248. if (rootCurrentType == OBJECTTYPE) {
  8249. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  8250. setResult(result, path, current);
  8251. } else {
  8252. var loop = function ( key ) {
  8253. var currentValue = current[key];
  8254. var preValue = pre[key];
  8255. var currentType = type(currentValue);
  8256. var preType = type(preValue);
  8257. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  8258. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  8259. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8260. }
  8261. } else if (currentType == ARRAYTYPE) {
  8262. if (preType != ARRAYTYPE) {
  8263. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8264. } else {
  8265. if (currentValue.length < preValue.length) {
  8266. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8267. } else {
  8268. currentValue.forEach(function (item, index) {
  8269. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  8270. });
  8271. }
  8272. }
  8273. } else if (currentType == OBJECTTYPE) {
  8274. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  8275. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8276. } else {
  8277. for (var subKey in currentValue) {
  8278. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  8279. }
  8280. }
  8281. }
  8282. };
  8283. for (var key in current) loop( key );
  8284. }
  8285. } else if (rootCurrentType == ARRAYTYPE) {
  8286. if (rootPreType != ARRAYTYPE) {
  8287. setResult(result, path, current);
  8288. } else {
  8289. if (current.length < pre.length) {
  8290. setResult(result, path, current);
  8291. } else {
  8292. current.forEach(function (item, index) {
  8293. _diff(item, pre[index], path + '[' + index + ']', result);
  8294. });
  8295. }
  8296. }
  8297. } else {
  8298. setResult(result, path, current);
  8299. }
  8300. }
  8301. function setResult(result, k, v) {
  8302. // if (type(v) != FUNCTIONTYPE) {
  8303. result[k] = v;
  8304. // }
  8305. }
  8306. function type(obj) {
  8307. return Object.prototype.toString.call(obj)
  8308. }
  8309. /* */
  8310. function flushCallbacks$1(vm) {
  8311. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  8312. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"xusfood_client","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8313. var mpInstance = vm.$scope;
  8314. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8315. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  8316. }
  8317. var copies = vm.__next_tick_callbacks.slice(0);
  8318. vm.__next_tick_callbacks.length = 0;
  8319. for (var i = 0; i < copies.length; i++) {
  8320. copies[i]();
  8321. }
  8322. }
  8323. }
  8324. function hasRenderWatcher(vm) {
  8325. return queue.find(function (watcher) { return vm._watcher === watcher; })
  8326. }
  8327. function nextTick$1(vm, cb) {
  8328. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  8329. //2.nextTick 之前存在 render watcher
  8330. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  8331. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"xusfood_client","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8332. var mpInstance = vm.$scope;
  8333. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8334. ']:nextVueTick');
  8335. }
  8336. return nextTick(cb, vm)
  8337. }else{
  8338. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"xusfood_client","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8339. var mpInstance$1 = vm.$scope;
  8340. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  8341. ']:nextMPTick');
  8342. }
  8343. }
  8344. var _resolve;
  8345. if (!vm.__next_tick_callbacks) {
  8346. vm.__next_tick_callbacks = [];
  8347. }
  8348. vm.__next_tick_callbacks.push(function () {
  8349. if (cb) {
  8350. try {
  8351. cb.call(vm);
  8352. } catch (e) {
  8353. handleError(e, vm, 'nextTick');
  8354. }
  8355. } else if (_resolve) {
  8356. _resolve(vm);
  8357. }
  8358. });
  8359. // $flow-disable-line
  8360. if (!cb && typeof Promise !== 'undefined') {
  8361. return new Promise(function (resolve) {
  8362. _resolve = resolve;
  8363. })
  8364. }
  8365. }
  8366. /* */
  8367. function clearInstance(key, value) {
  8368. // 简易去除 Vue 和小程序组件实例
  8369. if (value) {
  8370. if (value._isVue || value.__v_isMPComponent) {
  8371. return {}
  8372. }
  8373. }
  8374. return value
  8375. }
  8376. function cloneWithData(vm) {
  8377. // 确保当前 vm 所有数据被同步
  8378. var ret = Object.create(null);
  8379. var dataKeys = [].concat(
  8380. Object.keys(vm._data || {}),
  8381. Object.keys(vm._computedWatchers || {}));
  8382. dataKeys.reduce(function(ret, key) {
  8383. ret[key] = vm[key];
  8384. return ret
  8385. }, ret);
  8386. // vue-composition-api
  8387. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  8388. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  8389. if (rawBindings) {
  8390. Object.keys(rawBindings).forEach(function (key) {
  8391. ret[key] = vm[key];
  8392. });
  8393. }
  8394. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  8395. Object.assign(ret, vm.$mp.data || {});
  8396. if (
  8397. Array.isArray(vm.$options.behaviors) &&
  8398. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  8399. ) { //form-field
  8400. ret['name'] = vm.name;
  8401. ret['value'] = vm.value;
  8402. }
  8403. return JSON.parse(JSON.stringify(ret, clearInstance))
  8404. }
  8405. var patch = function(oldVnode, vnode) {
  8406. var this$1 = this;
  8407. if (vnode === null) { //destroy
  8408. return
  8409. }
  8410. if (this.mpType === 'page' || this.mpType === 'component') {
  8411. var mpInstance = this.$scope;
  8412. var data = Object.create(null);
  8413. try {
  8414. data = cloneWithData(this);
  8415. } catch (err) {
  8416. console.error(err);
  8417. }
  8418. data.__webviewId__ = mpInstance.data.__webviewId__;
  8419. var mpData = Object.create(null);
  8420. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  8421. mpData[key] = mpInstance.data[key];
  8422. });
  8423. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  8424. if (Object.keys(diffData).length) {
  8425. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"xusfood_client","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8426. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  8427. ']差量更新',
  8428. JSON.stringify(diffData));
  8429. }
  8430. this.__next_tick_pending = true;
  8431. mpInstance.setData(diffData, function () {
  8432. this$1.__next_tick_pending = false;
  8433. flushCallbacks$1(this$1);
  8434. });
  8435. } else {
  8436. flushCallbacks$1(this);
  8437. }
  8438. }
  8439. };
  8440. /* */
  8441. function createEmptyRender() {
  8442. }
  8443. function mountComponent$1(
  8444. vm,
  8445. el,
  8446. hydrating
  8447. ) {
  8448. if (!vm.mpType) {//main.js 中的 new Vue
  8449. return vm
  8450. }
  8451. if (vm.mpType === 'app') {
  8452. vm.$options.render = createEmptyRender;
  8453. }
  8454. if (!vm.$options.render) {
  8455. vm.$options.render = createEmptyRender;
  8456. if (true) {
  8457. /* istanbul ignore if */
  8458. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  8459. vm.$options.el || el) {
  8460. warn(
  8461. 'You are using the runtime-only build of Vue where the template ' +
  8462. 'compiler is not available. Either pre-compile the templates into ' +
  8463. 'render functions, or use the compiler-included build.',
  8464. vm
  8465. );
  8466. } else {
  8467. warn(
  8468. 'Failed to mount component: template or render function not defined.',
  8469. vm
  8470. );
  8471. }
  8472. }
  8473. }
  8474. !vm._$fallback && callHook(vm, 'beforeMount');
  8475. var updateComponent = function () {
  8476. vm._update(vm._render(), hydrating);
  8477. };
  8478. // we set this to vm._watcher inside the watcher's constructor
  8479. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  8480. // component's mounted hook), which relies on vm._watcher being already defined
  8481. new Watcher(vm, updateComponent, noop, {
  8482. before: function before() {
  8483. if (vm._isMounted && !vm._isDestroyed) {
  8484. callHook(vm, 'beforeUpdate');
  8485. }
  8486. }
  8487. }, true /* isRenderWatcher */);
  8488. hydrating = false;
  8489. return vm
  8490. }
  8491. /* */
  8492. function renderClass (
  8493. staticClass,
  8494. dynamicClass
  8495. ) {
  8496. if (isDef(staticClass) || isDef(dynamicClass)) {
  8497. return concat(staticClass, stringifyClass(dynamicClass))
  8498. }
  8499. /* istanbul ignore next */
  8500. return ''
  8501. }
  8502. function concat (a, b) {
  8503. return a ? b ? (a + ' ' + b) : a : (b || '')
  8504. }
  8505. function stringifyClass (value) {
  8506. if (Array.isArray(value)) {
  8507. return stringifyArray(value)
  8508. }
  8509. if (isObject(value)) {
  8510. return stringifyObject(value)
  8511. }
  8512. if (typeof value === 'string') {
  8513. return value
  8514. }
  8515. /* istanbul ignore next */
  8516. return ''
  8517. }
  8518. function stringifyArray (value) {
  8519. var res = '';
  8520. var stringified;
  8521. for (var i = 0, l = value.length; i < l; i++) {
  8522. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  8523. if (res) { res += ' '; }
  8524. res += stringified;
  8525. }
  8526. }
  8527. return res
  8528. }
  8529. function stringifyObject (value) {
  8530. var res = '';
  8531. for (var key in value) {
  8532. if (value[key]) {
  8533. if (res) { res += ' '; }
  8534. res += key;
  8535. }
  8536. }
  8537. return res
  8538. }
  8539. /* */
  8540. var parseStyleText = cached(function (cssText) {
  8541. var res = {};
  8542. var listDelimiter = /;(?![^(]*\))/g;
  8543. var propertyDelimiter = /:(.+)/;
  8544. cssText.split(listDelimiter).forEach(function (item) {
  8545. if (item) {
  8546. var tmp = item.split(propertyDelimiter);
  8547. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  8548. }
  8549. });
  8550. return res
  8551. });
  8552. // normalize possible array / string values into Object
  8553. function normalizeStyleBinding (bindingStyle) {
  8554. if (Array.isArray(bindingStyle)) {
  8555. return toObject(bindingStyle)
  8556. }
  8557. if (typeof bindingStyle === 'string') {
  8558. return parseStyleText(bindingStyle)
  8559. }
  8560. return bindingStyle
  8561. }
  8562. /* */
  8563. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  8564. function getTarget(obj, path) {
  8565. var parts = path.split('.');
  8566. var key = parts[0];
  8567. if (key.indexOf('__$n') === 0) { //number index
  8568. key = parseInt(key.replace('__$n', ''));
  8569. }
  8570. if (parts.length === 1) {
  8571. return obj[key]
  8572. }
  8573. return getTarget(obj[key], parts.slice(1).join('.'))
  8574. }
  8575. function internalMixin(Vue) {
  8576. Vue.config.errorHandler = function(err, vm, info) {
  8577. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  8578. console.error(err);
  8579. /* eslint-disable no-undef */
  8580. var app = typeof getApp === 'function' && getApp();
  8581. if (app && app.onError) {
  8582. app.onError(err);
  8583. }
  8584. };
  8585. var oldEmit = Vue.prototype.$emit;
  8586. Vue.prototype.$emit = function(event) {
  8587. if (this.$scope && event) {
  8588. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  8589. if (triggerEvent) {
  8590. try {
  8591. triggerEvent.call(this.$scope, event, {
  8592. __args__: toArray(arguments, 1)
  8593. });
  8594. } catch (error) {
  8595. }
  8596. }
  8597. }
  8598. return oldEmit.apply(this, arguments)
  8599. };
  8600. Vue.prototype.$nextTick = function(fn) {
  8601. return nextTick$1(this, fn)
  8602. };
  8603. MP_METHODS.forEach(function (method) {
  8604. Vue.prototype[method] = function(args) {
  8605. if (this.$scope && this.$scope[method]) {
  8606. return this.$scope[method](args)
  8607. }
  8608. // mp-alipay
  8609. if (typeof my === 'undefined') {
  8610. return
  8611. }
  8612. if (method === 'createSelectorQuery') {
  8613. /* eslint-disable no-undef */
  8614. return my.createSelectorQuery(args)
  8615. } else if (method === 'createIntersectionObserver') {
  8616. /* eslint-disable no-undef */
  8617. return my.createIntersectionObserver(args)
  8618. }
  8619. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  8620. };
  8621. });
  8622. Vue.prototype.__init_provide = initProvide;
  8623. Vue.prototype.__init_injections = initInjections;
  8624. Vue.prototype.__call_hook = function(hook, args) {
  8625. var vm = this;
  8626. // #7573 disable dep collection when invoking lifecycle hooks
  8627. pushTarget();
  8628. var handlers = vm.$options[hook];
  8629. var info = hook + " hook";
  8630. var ret;
  8631. if (handlers) {
  8632. for (var i = 0, j = handlers.length; i < j; i++) {
  8633. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  8634. }
  8635. }
  8636. if (vm._hasHookEvent) {
  8637. vm.$emit('hook:' + hook, args);
  8638. }
  8639. popTarget();
  8640. return ret
  8641. };
  8642. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  8643. if (Array.isArray(modifiers)) {
  8644. if (modifiers.indexOf('trim') !== -1) {
  8645. value = value.trim();
  8646. }
  8647. if (modifiers.indexOf('number') !== -1) {
  8648. value = this._n(value);
  8649. }
  8650. }
  8651. if (!target) {
  8652. target = this;
  8653. }
  8654. // 解决动态属性添加
  8655. Vue.set(target, key, value);
  8656. };
  8657. Vue.prototype.__set_sync = function(target, key, value) {
  8658. if (!target) {
  8659. target = this;
  8660. }
  8661. // 解决动态属性添加
  8662. Vue.set(target, key, value);
  8663. };
  8664. Vue.prototype.__get_orig = function(item) {
  8665. if (isPlainObject(item)) {
  8666. return item['$orig'] || item
  8667. }
  8668. return item
  8669. };
  8670. Vue.prototype.__get_value = function(dataPath, target) {
  8671. return getTarget(target || this, dataPath)
  8672. };
  8673. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  8674. return renderClass(staticClass, dynamicClass)
  8675. };
  8676. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  8677. if (!dynamicStyle && !staticStyle) {
  8678. return ''
  8679. }
  8680. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  8681. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  8682. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  8683. };
  8684. Vue.prototype.__map = function(val, iteratee) {
  8685. //TODO 暂不考虑 string
  8686. var ret, i, l, keys, key;
  8687. if (Array.isArray(val)) {
  8688. ret = new Array(val.length);
  8689. for (i = 0, l = val.length; i < l; i++) {
  8690. ret[i] = iteratee(val[i], i);
  8691. }
  8692. return ret
  8693. } else if (isObject(val)) {
  8694. keys = Object.keys(val);
  8695. ret = Object.create(null);
  8696. for (i = 0, l = keys.length; i < l; i++) {
  8697. key = keys[i];
  8698. ret[key] = iteratee(val[key], key, i);
  8699. }
  8700. return ret
  8701. } else if (typeof val === 'number') {
  8702. ret = new Array(val);
  8703. for (i = 0, l = val; i < l; i++) {
  8704. // 第一个参数暂时仍和小程序一致
  8705. ret[i] = iteratee(i, i);
  8706. }
  8707. return ret
  8708. }
  8709. return []
  8710. };
  8711. }
  8712. /* */
  8713. var LIFECYCLE_HOOKS$1 = [
  8714. //App
  8715. 'onLaunch',
  8716. 'onShow',
  8717. 'onHide',
  8718. 'onUniNViewMessage',
  8719. 'onPageNotFound',
  8720. 'onThemeChange',
  8721. 'onError',
  8722. 'onUnhandledRejection',
  8723. //Page
  8724. 'onInit',
  8725. 'onLoad',
  8726. // 'onShow',
  8727. 'onReady',
  8728. // 'onHide',
  8729. 'onUnload',
  8730. 'onPullDownRefresh',
  8731. 'onReachBottom',
  8732. 'onTabItemTap',
  8733. 'onAddToFavorites',
  8734. 'onShareTimeline',
  8735. 'onShareAppMessage',
  8736. 'onResize',
  8737. 'onPageScroll',
  8738. 'onNavigationBarButtonTap',
  8739. 'onBackPress',
  8740. 'onNavigationBarSearchInputChanged',
  8741. 'onNavigationBarSearchInputConfirmed',
  8742. 'onNavigationBarSearchInputClicked',
  8743. //Component
  8744. // 'onReady', // 兼容旧版本,应该移除该事件
  8745. 'onPageShow',
  8746. 'onPageHide',
  8747. 'onPageResize',
  8748. 'onUploadDouyinVideo'
  8749. ];
  8750. function lifecycleMixin$1(Vue) {
  8751. //fixed vue-class-component
  8752. var oldExtend = Vue.extend;
  8753. Vue.extend = function(extendOptions) {
  8754. extendOptions = extendOptions || {};
  8755. var methods = extendOptions.methods;
  8756. if (methods) {
  8757. Object.keys(methods).forEach(function (methodName) {
  8758. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  8759. extendOptions[methodName] = methods[methodName];
  8760. delete methods[methodName];
  8761. }
  8762. });
  8763. }
  8764. return oldExtend.call(this, extendOptions)
  8765. };
  8766. var strategies = Vue.config.optionMergeStrategies;
  8767. var mergeHook = strategies.created;
  8768. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  8769. strategies[hook] = mergeHook;
  8770. });
  8771. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  8772. }
  8773. /* */
  8774. // install platform patch function
  8775. Vue.prototype.__patch__ = patch;
  8776. // public mount method
  8777. Vue.prototype.$mount = function(
  8778. el ,
  8779. hydrating
  8780. ) {
  8781. return mountComponent$1(this, el, hydrating)
  8782. };
  8783. lifecycleMixin$1(Vue);
  8784. internalMixin(Vue);
  8785. /* */
  8786. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  8787. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  8788. /***/ }),
  8789. /* 26 */
  8790. /*!****************************************************!*\
  8791. !*** D:/wwwroot/xusfood/xusfood_client/pages.json ***!
  8792. \****************************************************/
  8793. /*! no static exports found */
  8794. /***/ (function(module, exports) {
  8795. /***/ }),
  8796. /* 27 */,
  8797. /* 28 */,
  8798. /* 29 */,
  8799. /* 30 */,
  8800. /* 31 */,
  8801. /* 32 */
  8802. /*!**********************************************************************************************************!*\
  8803. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  8804. \**********************************************************************************************************/
  8805. /*! exports provided: default */
  8806. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8807. "use strict";
  8808. __webpack_require__.r(__webpack_exports__);
  8809. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  8810. /* globals __VUE_SSR_CONTEXT__ */
  8811. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  8812. // This module is a runtime utility for cleaner component module output and will
  8813. // be included in the final webpack user bundle.
  8814. function normalizeComponent (
  8815. scriptExports,
  8816. render,
  8817. staticRenderFns,
  8818. functionalTemplate,
  8819. injectStyles,
  8820. scopeId,
  8821. moduleIdentifier, /* server only */
  8822. shadowMode, /* vue-cli only */
  8823. components, // fixed by xxxxxx auto components
  8824. renderjs // fixed by xxxxxx renderjs
  8825. ) {
  8826. // Vue.extend constructor export interop
  8827. var options = typeof scriptExports === 'function'
  8828. ? scriptExports.options
  8829. : scriptExports
  8830. // fixed by xxxxxx auto components
  8831. if (components) {
  8832. if (!options.components) {
  8833. options.components = {}
  8834. }
  8835. var hasOwn = Object.prototype.hasOwnProperty
  8836. for (var name in components) {
  8837. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  8838. options.components[name] = components[name]
  8839. }
  8840. }
  8841. }
  8842. // fixed by xxxxxx renderjs
  8843. if (renderjs) {
  8844. if(typeof renderjs.beforeCreate === 'function'){
  8845. renderjs.beforeCreate = [renderjs.beforeCreate]
  8846. }
  8847. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  8848. this[renderjs.__module] = this
  8849. });
  8850. (options.mixins || (options.mixins = [])).push(renderjs)
  8851. }
  8852. // render functions
  8853. if (render) {
  8854. options.render = render
  8855. options.staticRenderFns = staticRenderFns
  8856. options._compiled = true
  8857. }
  8858. // functional template
  8859. if (functionalTemplate) {
  8860. options.functional = true
  8861. }
  8862. // scopedId
  8863. if (scopeId) {
  8864. options._scopeId = 'data-v-' + scopeId
  8865. }
  8866. var hook
  8867. if (moduleIdentifier) { // server build
  8868. hook = function (context) {
  8869. // 2.3 injection
  8870. context =
  8871. context || // cached call
  8872. (this.$vnode && this.$vnode.ssrContext) || // stateful
  8873. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  8874. // 2.2 with runInNewContext: true
  8875. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  8876. context = __VUE_SSR_CONTEXT__
  8877. }
  8878. // inject component styles
  8879. if (injectStyles) {
  8880. injectStyles.call(this, context)
  8881. }
  8882. // register component module identifier for async chunk inferrence
  8883. if (context && context._registeredComponents) {
  8884. context._registeredComponents.add(moduleIdentifier)
  8885. }
  8886. }
  8887. // used by ssr in case component is cached and beforeCreate
  8888. // never gets called
  8889. options._ssrRegister = hook
  8890. } else if (injectStyles) {
  8891. hook = shadowMode
  8892. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  8893. : injectStyles
  8894. }
  8895. if (hook) {
  8896. if (options.functional) {
  8897. // for template-only hot-reload because in that case the render fn doesn't
  8898. // go through the normalizer
  8899. options._injectStyles = hook
  8900. // register for functioal component in vue file
  8901. var originalRender = options.render
  8902. options.render = function renderWithStyleInjection (h, context) {
  8903. hook.call(context)
  8904. return originalRender(h, context)
  8905. }
  8906. } else {
  8907. // inject component registration as beforeCreate hook
  8908. var existing = options.beforeCreate
  8909. options.beforeCreate = existing
  8910. ? [].concat(existing, hook)
  8911. : [hook]
  8912. }
  8913. }
  8914. return {
  8915. exports: scriptExports,
  8916. options: options
  8917. }
  8918. }
  8919. /***/ }),
  8920. /* 33 */
  8921. /*!***********************************************************************!*\
  8922. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/index.js ***!
  8923. \***********************************************************************/
  8924. /*! no static exports found */
  8925. /***/ (function(module, exports, __webpack_require__) {
  8926. "use strict";
  8927. /* WEBPACK VAR INJECTION */(function(uni) {
  8928. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  8929. Object.defineProperty(exports, "__esModule", {
  8930. value: true
  8931. });
  8932. exports.default = void 0;
  8933. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  8934. var _mixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mixin.js */ 34));
  8935. var _mpMixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mpMixin.js */ 35));
  8936. var _luchRequest = _interopRequireDefault(__webpack_require__(/*! ./libs/luch-request */ 36));
  8937. var _route = _interopRequireDefault(__webpack_require__(/*! ./libs/util/route.js */ 54));
  8938. var _colorGradient = _interopRequireDefault(__webpack_require__(/*! ./libs/function/colorGradient.js */ 58));
  8939. var _test = _interopRequireDefault(__webpack_require__(/*! ./libs/function/test.js */ 59));
  8940. var _debounce = _interopRequireDefault(__webpack_require__(/*! ./libs/function/debounce.js */ 60));
  8941. var _throttle = _interopRequireDefault(__webpack_require__(/*! ./libs/function/throttle.js */ 61));
  8942. var _index = _interopRequireDefault(__webpack_require__(/*! ./libs/function/index.js */ 62));
  8943. var _config = _interopRequireDefault(__webpack_require__(/*! ./libs/config/config.js */ 65));
  8944. var _props = _interopRequireDefault(__webpack_require__(/*! ./libs/config/props.js */ 66));
  8945. var _zIndex = _interopRequireDefault(__webpack_require__(/*! ./libs/config/zIndex.js */ 156));
  8946. var _color = _interopRequireDefault(__webpack_require__(/*! ./libs/config/color.js */ 114));
  8947. var _platform = _interopRequireDefault(__webpack_require__(/*! ./libs/function/platform */ 157));
  8948. 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; }
  8949. 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; }
  8950. // 看到此报错,是因为没有配置vue.config.js的【transpileDependencies】,详见:https://www.uviewui.com/components/npmSetting.html#_5-cli模式额外配置
  8951. var pleaseSetTranspileDependencies = {},
  8952. babelTest = pleaseSetTranspileDependencies === null || pleaseSetTranspileDependencies === void 0 ? void 0 : pleaseSetTranspileDependencies.test;
  8953. // 引入全局mixin
  8954. var $u = _objectSpread(_objectSpread({
  8955. route: _route.default,
  8956. date: _index.default.timeFormat,
  8957. // 另名date
  8958. colorGradient: _colorGradient.default.colorGradient,
  8959. hexToRgb: _colorGradient.default.hexToRgb,
  8960. rgbToHex: _colorGradient.default.rgbToHex,
  8961. colorToRgba: _colorGradient.default.colorToRgba,
  8962. test: _test.default,
  8963. type: ['primary', 'success', 'error', 'warning', 'info'],
  8964. http: new _luchRequest.default(),
  8965. config: _config.default,
  8966. // uView配置信息相关,比如版本号
  8967. zIndex: _zIndex.default,
  8968. debounce: _debounce.default,
  8969. throttle: _throttle.default,
  8970. mixin: _mixin.default,
  8971. mpMixin: _mpMixin.default,
  8972. props: _props.default
  8973. }, _index.default), {}, {
  8974. color: _color.default,
  8975. platform: _platform.default
  8976. });
  8977. // $u挂载到uni对象上
  8978. uni.$u = $u;
  8979. var install = function install(Vue) {
  8980. // 时间格式化,同时两个名称,date和timeFormat
  8981. Vue.filter('timeFormat', function (timestamp, format) {
  8982. return uni.$u.timeFormat(timestamp, format);
  8983. });
  8984. Vue.filter('date', function (timestamp, format) {
  8985. return uni.$u.timeFormat(timestamp, format);
  8986. });
  8987. // 将多久以前的方法,注入到全局过滤器
  8988. Vue.filter('timeFrom', function (timestamp, format) {
  8989. return uni.$u.timeFrom(timestamp, format);
  8990. });
  8991. // 同时挂载到uni和Vue.prototype中
  8992. // 只有vue,挂载到Vue.prototype才有意义,因为nvue中全局Vue.prototype和Vue.mixin是无效的
  8993. Vue.prototype.$u = $u;
  8994. Vue.mixin(_mixin.default);
  8995. };
  8996. var _default = {
  8997. install: install
  8998. };
  8999. exports.default = _default;
  9000. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9001. /***/ }),
  9002. /* 34 */
  9003. /*!**********************************************************************************!*\
  9004. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/mixin/mixin.js ***!
  9005. \**********************************************************************************/
  9006. /*! no static exports found */
  9007. /***/ (function(module, exports, __webpack_require__) {
  9008. /* WEBPACK VAR INJECTION */(function(uni) {module.exports = {
  9009. // 定义每个组件都可能需要用到的外部样式以及类名
  9010. props: {
  9011. // 每个组件都有的父组件传递的样式,可以为字符串或者对象形式
  9012. customStyle: {
  9013. type: [Object, String],
  9014. default: function _default() {
  9015. return {};
  9016. }
  9017. },
  9018. customClass: {
  9019. type: String,
  9020. default: ''
  9021. },
  9022. // 跳转的页面路径
  9023. url: {
  9024. type: String,
  9025. default: ''
  9026. },
  9027. // 页面跳转的类型
  9028. linkType: {
  9029. type: String,
  9030. default: 'navigateTo'
  9031. }
  9032. },
  9033. data: function data() {
  9034. return {};
  9035. },
  9036. onLoad: function onLoad() {
  9037. // getRect挂载到$u上,因为这方法需要使用in(this),所以无法把它独立成一个单独的文件导出
  9038. this.$u.getRect = this.$uGetRect;
  9039. },
  9040. created: function created() {
  9041. // 组件当中,只有created声明周期,为了能在组件使用,故也在created中将方法挂载到$u
  9042. this.$u.getRect = this.$uGetRect;
  9043. },
  9044. computed: {
  9045. // 在2.x版本中,将会把$u挂载到uni对象下,导致在模板中无法使用uni.$u.xxx形式
  9046. // 所以这里通过computed计算属性将其附加到this.$u上,就可以在模板或者js中使用uni.$u.xxx
  9047. // 只在nvue环境通过此方式引入完整的$u,其他平台会出现性能问题,非nvue则按需引入(主要原因是props过大)
  9048. $u: function $u() {
  9049. // 在非nvue端,移除props,http,mixin等对象,避免在小程序setData时数据过大影响性能
  9050. return uni.$u.deepMerge(uni.$u, {
  9051. props: undefined,
  9052. http: undefined,
  9053. mixin: undefined
  9054. });
  9055. },
  9056. /**
  9057. * 生成bem规则类名
  9058. * 由于微信小程序,H5,nvue之间绑定class的差异,无法通过:class="[bem()]"的形式进行同用
  9059. * 故采用如下折中做法,最后返回的是数组(一般平台)或字符串(支付宝和字节跳动平台),类似['a', 'b', 'c']或'a b c'的形式
  9060. * @param {String} name 组件名称
  9061. * @param {Array} fixed 一直会存在的类名
  9062. * @param {Array} change 会根据变量值为true或者false而出现或者隐藏的类名
  9063. * @returns {Array|string}
  9064. */
  9065. bem: function bem() {
  9066. return function (name, fixed, change) {
  9067. var _this = this;
  9068. // 类名前缀
  9069. var prefix = "u-".concat(name, "--");
  9070. var classes = {};
  9071. if (fixed) {
  9072. fixed.map(function (item) {
  9073. // 这里的类名,会一直存在
  9074. classes[prefix + _this[item]] = true;
  9075. });
  9076. }
  9077. if (change) {
  9078. change.map(function (item) {
  9079. // 这里的类名,会根据this[item]的值为true或者false,而进行添加或者移除某一个类
  9080. _this[item] ? classes[prefix + item] = _this[item] : delete classes[prefix + item];
  9081. });
  9082. }
  9083. return Object.keys(classes);
  9084. // 支付宝,头条小程序无法动态绑定一个数组类名,否则解析出来的结果会带有",",而导致失效
  9085. };
  9086. }
  9087. },
  9088. methods: {
  9089. // 跳转某一个页面
  9090. openPage: function openPage() {
  9091. var urlKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'url';
  9092. var url = this[urlKey];
  9093. if (url) {
  9094. // 执行类似uni.navigateTo的方法
  9095. uni[this.linkType]({
  9096. url: url
  9097. });
  9098. }
  9099. },
  9100. // 查询节点信息
  9101. // 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
  9102. // 解决办法为在组件根部再套一个没有任何作用的view元素
  9103. $uGetRect: function $uGetRect(selector, all) {
  9104. var _this2 = this;
  9105. return new Promise(function (resolve) {
  9106. uni.createSelectorQuery().in(_this2)[all ? 'selectAll' : 'select'](selector).boundingClientRect(function (rect) {
  9107. if (all && Array.isArray(rect) && rect.length) {
  9108. resolve(rect);
  9109. }
  9110. if (!all && rect) {
  9111. resolve(rect);
  9112. }
  9113. }).exec();
  9114. });
  9115. },
  9116. getParentData: function getParentData() {
  9117. var _this3 = this;
  9118. var parentName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  9119. // 避免在created中去定义parent变量
  9120. if (!this.parent) this.parent = {};
  9121. // 这里的本质原理是,通过获取父组件实例(也即类似u-radio的父组件u-radio-group的this)
  9122. // 将父组件this中对应的参数,赋值给本组件(u-radio的this)的parentData对象中对应的属性
  9123. // 之所以需要这么做,是因为所有端中,头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
  9124. // 此处并不会自动更新子组件的数据,而是依赖父组件u-radio-group去监听data的变化,手动调用更新子组件的方法去重新获取
  9125. this.parent = uni.$u.$parent.call(this, parentName);
  9126. if (this.parent.children) {
  9127. // 如果父组件的children不存在本组件的实例,才将本实例添加到父组件的children中
  9128. this.parent.children.indexOf(this) === -1 && this.parent.children.push(this);
  9129. }
  9130. if (this.parent && this.parentData) {
  9131. // 历遍parentData中的属性,将parent中的同名属性赋值给parentData
  9132. Object.keys(this.parentData).map(function (key) {
  9133. _this3.parentData[key] = _this3.parent[key];
  9134. });
  9135. }
  9136. },
  9137. // 阻止事件冒泡
  9138. preventEvent: function preventEvent(e) {
  9139. e && typeof e.stopPropagation === 'function' && e.stopPropagation();
  9140. },
  9141. // 空操作
  9142. noop: function noop(e) {
  9143. this.preventEvent(e);
  9144. }
  9145. },
  9146. onReachBottom: function onReachBottom() {
  9147. uni.$emit('uOnReachBottom');
  9148. },
  9149. beforeDestroy: function beforeDestroy() {
  9150. var _this4 = this;
  9151. // 判断当前页面是否存在parent和chldren,一般在checkbox和checkbox-group父子联动的场景会有此情况
  9152. // 组件销毁时,移除子组件在父组件children数组中的实例,释放资源,避免数据混乱
  9153. if (this.parent && uni.$u.test.array(this.parent.children)) {
  9154. // 组件销毁时,移除父组件中的children数组中对应的实例
  9155. var childrenList = this.parent.children;
  9156. childrenList.map(function (child, index) {
  9157. // 如果相等,则移除
  9158. if (child === _this4) {
  9159. childrenList.splice(index, 1);
  9160. }
  9161. });
  9162. }
  9163. }
  9164. };
  9165. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9166. /***/ }),
  9167. /* 35 */
  9168. /*!************************************************************************************!*\
  9169. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/mixin/mpMixin.js ***!
  9170. \************************************************************************************/
  9171. /*! no static exports found */
  9172. /***/ (function(module, exports, __webpack_require__) {
  9173. "use strict";
  9174. Object.defineProperty(exports, "__esModule", {
  9175. value: true
  9176. });
  9177. exports.default = void 0;
  9178. var _default = {
  9179. // 将自定义节点设置成虚拟的,更加接近Vue组件的表现,能更好的使用flex属性
  9180. options: {
  9181. virtualHost: true
  9182. }
  9183. };
  9184. exports.default = _default;
  9185. /***/ }),
  9186. /* 36 */
  9187. /*!*****************************************************************************************!*\
  9188. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/luch-request/index.js ***!
  9189. \*****************************************************************************************/
  9190. /*! no static exports found */
  9191. /***/ (function(module, exports, __webpack_require__) {
  9192. "use strict";
  9193. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9194. Object.defineProperty(exports, "__esModule", {
  9195. value: true
  9196. });
  9197. exports.default = void 0;
  9198. var _Request = _interopRequireDefault(__webpack_require__(/*! ./core/Request */ 37));
  9199. var _default = _Request.default;
  9200. exports.default = _default;
  9201. /***/ }),
  9202. /* 37 */
  9203. /*!************************************************************************************************!*\
  9204. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/luch-request/core/Request.js ***!
  9205. \************************************************************************************************/
  9206. /*! no static exports found */
  9207. /***/ (function(module, exports, __webpack_require__) {
  9208. "use strict";
  9209. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9210. Object.defineProperty(exports, "__esModule", {
  9211. value: true
  9212. });
  9213. exports.default = void 0;
  9214. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9215. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  9216. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  9217. var _dispatchRequest = _interopRequireDefault(__webpack_require__(/*! ./dispatchRequest */ 38));
  9218. var _InterceptorManager = _interopRequireDefault(__webpack_require__(/*! ./InterceptorManager */ 46));
  9219. var _mergeConfig = _interopRequireDefault(__webpack_require__(/*! ./mergeConfig */ 47));
  9220. var _defaults = _interopRequireDefault(__webpack_require__(/*! ./defaults */ 48));
  9221. var _utils = __webpack_require__(/*! ../utils */ 41);
  9222. var _clone = _interopRequireDefault(__webpack_require__(/*! ../utils/clone */ 49));
  9223. 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; }
  9224. 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; }
  9225. var Request = /*#__PURE__*/function () {
  9226. /**
  9227. * @param {Object} arg - 全局配置
  9228. * @param {String} arg.baseURL - 全局根路径
  9229. * @param {Object} arg.header - 全局header
  9230. * @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 全局默认请求方式
  9231. * @param {String} arg.dataType = [json] - 全局默认的dataType
  9232. * @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。支付宝小程序不支持
  9233. * @param {Object} arg.custom - 全局默认的自定义参数
  9234. * @param {Number} arg.timeout - 全局默认的超时时间,单位 ms。默认60000。H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序(2.10.0)、支付宝小程序
  9235. * @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持(HBuilderX 2.3.3+)
  9236. * @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证(cookies)。默认false。仅H5支持(HBuilderX 2.6.15+)
  9237. * @param {Boolean} arg.firstIpv4 - 全DNS解析时优先使用ipv4。默认false。仅 App-Android 支持 (HBuilderX 2.8.0+)
  9238. * @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
  9239. */
  9240. function Request() {
  9241. var arg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9242. (0, _classCallCheck2.default)(this, Request);
  9243. if (!(0, _utils.isPlainObject)(arg)) {
  9244. arg = {};
  9245. console.warn('设置全局参数必须接收一个Object');
  9246. }
  9247. this.config = (0, _clone.default)(_objectSpread(_objectSpread({}, _defaults.default), arg));
  9248. this.interceptors = {
  9249. request: new _InterceptorManager.default(),
  9250. response: new _InterceptorManager.default()
  9251. };
  9252. }
  9253. /**
  9254. * @Function
  9255. * @param {Request~setConfigCallback} f - 设置全局默认配置
  9256. */
  9257. (0, _createClass2.default)(Request, [{
  9258. key: "setConfig",
  9259. value: function setConfig(f) {
  9260. this.config = f(this.config);
  9261. }
  9262. }, {
  9263. key: "middleware",
  9264. value: function middleware(config) {
  9265. config = (0, _mergeConfig.default)(this.config, config);
  9266. var chain = [_dispatchRequest.default, undefined];
  9267. var promise = Promise.resolve(config);
  9268. this.interceptors.request.forEach(function (interceptor) {
  9269. chain.unshift(interceptor.fulfilled, interceptor.rejected);
  9270. });
  9271. this.interceptors.response.forEach(function (interceptor) {
  9272. chain.push(interceptor.fulfilled, interceptor.rejected);
  9273. });
  9274. while (chain.length) {
  9275. promise = promise.then(chain.shift(), chain.shift());
  9276. }
  9277. return promise;
  9278. }
  9279. /**
  9280. * @Function
  9281. * @param {Object} config - 请求配置项
  9282. * @prop {String} options.url - 请求路径
  9283. * @prop {Object} options.data - 请求参数
  9284. * @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 响应的数据类型
  9285. * @prop {Object} [options.dataType = config.dataType] - 如果设为 json,会尝试对返回的数据做一次 JSON.parse
  9286. * @prop {Object} [options.header = config.header] - 请求header
  9287. * @prop {Object} [options.method = config.method] - 请求方法
  9288. * @returns {Promise<unknown>}
  9289. */
  9290. }, {
  9291. key: "request",
  9292. value: function request() {
  9293. var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9294. return this.middleware(config);
  9295. }
  9296. }, {
  9297. key: "get",
  9298. value: function get(url) {
  9299. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9300. return this.middleware(_objectSpread({
  9301. url: url,
  9302. method: 'GET'
  9303. }, options));
  9304. }
  9305. }, {
  9306. key: "post",
  9307. value: function post(url, data) {
  9308. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9309. return this.middleware(_objectSpread({
  9310. url: url,
  9311. data: data,
  9312. method: 'POST'
  9313. }, options));
  9314. }
  9315. }, {
  9316. key: "put",
  9317. value: function put(url, data) {
  9318. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9319. return this.middleware(_objectSpread({
  9320. url: url,
  9321. data: data,
  9322. method: 'PUT'
  9323. }, options));
  9324. }
  9325. }, {
  9326. key: "delete",
  9327. value: function _delete(url, data) {
  9328. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9329. return this.middleware(_objectSpread({
  9330. url: url,
  9331. data: data,
  9332. method: 'DELETE'
  9333. }, options));
  9334. }
  9335. }, {
  9336. key: "connect",
  9337. value: function connect(url, data) {
  9338. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9339. return this.middleware(_objectSpread({
  9340. url: url,
  9341. data: data,
  9342. method: 'CONNECT'
  9343. }, options));
  9344. }
  9345. }, {
  9346. key: "head",
  9347. value: function head(url, data) {
  9348. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9349. return this.middleware(_objectSpread({
  9350. url: url,
  9351. data: data,
  9352. method: 'HEAD'
  9353. }, options));
  9354. }
  9355. }, {
  9356. key: "options",
  9357. value: function options(url, data) {
  9358. var _options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9359. return this.middleware(_objectSpread({
  9360. url: url,
  9361. data: data,
  9362. method: 'OPTIONS'
  9363. }, _options));
  9364. }
  9365. }, {
  9366. key: "trace",
  9367. value: function trace(url, data) {
  9368. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9369. return this.middleware(_objectSpread({
  9370. url: url,
  9371. data: data,
  9372. method: 'TRACE'
  9373. }, options));
  9374. }
  9375. }, {
  9376. key: "upload",
  9377. value: function upload(url) {
  9378. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9379. config.url = url;
  9380. config.method = 'UPLOAD';
  9381. return this.middleware(config);
  9382. }
  9383. }, {
  9384. key: "download",
  9385. value: function download(url) {
  9386. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9387. config.url = url;
  9388. config.method = 'DOWNLOAD';
  9389. return this.middleware(config);
  9390. }
  9391. }]);
  9392. return Request;
  9393. }();
  9394. /**
  9395. * setConfig回调
  9396. * @return {Object} - 返回操作后的config
  9397. * @callback Request~setConfigCallback
  9398. * @param {Object} config - 全局默认config
  9399. */
  9400. exports.default = Request;
  9401. /***/ }),
  9402. /* 38 */
  9403. /*!********************************************************************************************************!*\
  9404. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/luch-request/core/dispatchRequest.js ***!
  9405. \********************************************************************************************************/
  9406. /*! no static exports found */
  9407. /***/ (function(module, exports, __webpack_require__) {
  9408. "use strict";
  9409. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9410. Object.defineProperty(exports, "__esModule", {
  9411. value: true
  9412. });
  9413. exports.default = void 0;
  9414. var _index = _interopRequireDefault(__webpack_require__(/*! ../adapters/index */ 39));
  9415. var _default = function _default(config) {
  9416. return (0, _index.default)(config);
  9417. };
  9418. exports.default = _default;
  9419. /***/ }),
  9420. /* 39 */
  9421. /*!**************************************************************************************************!*\
  9422. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/luch-request/adapters/index.js ***!
  9423. \**************************************************************************************************/
  9424. /*! no static exports found */
  9425. /***/ (function(module, exports, __webpack_require__) {
  9426. "use strict";
  9427. /* WEBPACK VAR INJECTION */(function(uni) {
  9428. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9429. Object.defineProperty(exports, "__esModule", {
  9430. value: true
  9431. });
  9432. exports.default = void 0;
  9433. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9434. var _buildURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/buildURL */ 40));
  9435. var _buildFullPath = _interopRequireDefault(__webpack_require__(/*! ../core/buildFullPath */ 42));
  9436. var _settle = _interopRequireDefault(__webpack_require__(/*! ../core/settle */ 45));
  9437. var _utils = __webpack_require__(/*! ../utils */ 41);
  9438. 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; }
  9439. 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; }
  9440. /**
  9441. * 返回可选值存在的配置
  9442. * @param {Array} keys - 可选值数组
  9443. * @param {Object} config2 - 配置
  9444. * @return {{}} - 存在的配置项
  9445. */
  9446. var mergeKeys = function mergeKeys(keys, config2) {
  9447. var config = {};
  9448. keys.forEach(function (prop) {
  9449. if (!(0, _utils.isUndefined)(config2[prop])) {
  9450. config[prop] = config2[prop];
  9451. }
  9452. });
  9453. return config;
  9454. };
  9455. var _default = function _default(config) {
  9456. return new Promise(function (resolve, reject) {
  9457. var fullPath = (0, _buildURL.default)((0, _buildFullPath.default)(config.baseURL, config.url), config.params);
  9458. var _config = {
  9459. url: fullPath,
  9460. header: config.header,
  9461. complete: function complete(response) {
  9462. config.fullPath = fullPath;
  9463. response.config = config;
  9464. try {
  9465. // 对可能字符串不是json 的情况容错
  9466. if (typeof response.data === 'string') {
  9467. response.data = JSON.parse(response.data);
  9468. }
  9469. // eslint-disable-next-line no-empty
  9470. } catch (e) {}
  9471. (0, _settle.default)(resolve, reject, response);
  9472. }
  9473. };
  9474. var requestTask;
  9475. if (config.method === 'UPLOAD') {
  9476. delete _config.header['content-type'];
  9477. delete _config.header['Content-Type'];
  9478. var otherConfig = {
  9479. filePath: config.filePath,
  9480. name: config.name
  9481. };
  9482. var optionalKeys = ['formData'];
  9483. requestTask = uni.uploadFile(_objectSpread(_objectSpread(_objectSpread({}, _config), otherConfig), mergeKeys(optionalKeys, config)));
  9484. } else if (config.method === 'DOWNLOAD') {
  9485. requestTask = uni.downloadFile(_config);
  9486. } else {
  9487. var _optionalKeys = ['data', 'method', 'timeout', 'dataType', 'responseType'];
  9488. requestTask = uni.request(_objectSpread(_objectSpread({}, _config), mergeKeys(_optionalKeys, config)));
  9489. }
  9490. if (config.getTask) {
  9491. config.getTask(requestTask, config);
  9492. }
  9493. });
  9494. };
  9495. exports.default = _default;
  9496. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9497. /***/ }),
  9498. /* 40 */
  9499. /*!****************************************************************************************************!*\
  9500. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/luch-request/helpers/buildURL.js ***!
  9501. \****************************************************************************************************/
  9502. /*! no static exports found */
  9503. /***/ (function(module, exports, __webpack_require__) {
  9504. "use strict";
  9505. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  9506. Object.defineProperty(exports, "__esModule", {
  9507. value: true
  9508. });
  9509. exports.default = buildURL;
  9510. var utils = _interopRequireWildcard(__webpack_require__(/*! ../utils */ 41));
  9511. 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); }
  9512. 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; }
  9513. function encode(val) {
  9514. return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
  9515. }
  9516. /**
  9517. * Build a URL by appending params to the end
  9518. *
  9519. * @param {string} url The base of the url (e.g., http://www.google.com)
  9520. * @param {object} [params] The params to be appended
  9521. * @returns {string} The formatted url
  9522. */
  9523. function buildURL(url, params) {
  9524. /* eslint no-param-reassign:0 */
  9525. if (!params) {
  9526. return url;
  9527. }
  9528. var serializedParams;
  9529. if (utils.isURLSearchParams(params)) {
  9530. serializedParams = params.toString();
  9531. } else {
  9532. var parts = [];
  9533. utils.forEach(params, function (val, key) {
  9534. if (val === null || typeof val === 'undefined') {
  9535. return;
  9536. }
  9537. if (utils.isArray(val)) {
  9538. key = "".concat(key, "[]");
  9539. } else {
  9540. val = [val];
  9541. }
  9542. utils.forEach(val, function (v) {
  9543. if (utils.isDate(v)) {
  9544. v = v.toISOString();
  9545. } else if (utils.isObject(v)) {
  9546. v = JSON.stringify(v);
  9547. }
  9548. parts.push("".concat(encode(key), "=").concat(encode(v)));
  9549. });
  9550. });
  9551. serializedParams = parts.join('&');
  9552. }
  9553. if (serializedParams) {
  9554. var hashmarkIndex = url.indexOf('#');
  9555. if (hashmarkIndex !== -1) {
  9556. url = url.slice(0, hashmarkIndex);
  9557. }
  9558. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  9559. }
  9560. return url;
  9561. }
  9562. /***/ }),
  9563. /* 41 */
  9564. /*!*****************************************************************************************!*\
  9565. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/luch-request/utils.js ***!
  9566. \*****************************************************************************************/
  9567. /*! no static exports found */
  9568. /***/ (function(module, exports, __webpack_require__) {
  9569. "use strict";
  9570. // utils is a library of generic helper functions non-specific to axios
  9571. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9572. Object.defineProperty(exports, "__esModule", {
  9573. value: true
  9574. });
  9575. exports.deepMerge = deepMerge;
  9576. exports.forEach = forEach;
  9577. exports.isArray = isArray;
  9578. exports.isBoolean = isBoolean;
  9579. exports.isDate = isDate;
  9580. exports.isObject = isObject;
  9581. exports.isPlainObject = isPlainObject;
  9582. exports.isURLSearchParams = isURLSearchParams;
  9583. exports.isUndefined = isUndefined;
  9584. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  9585. var toString = Object.prototype.toString;
  9586. /**
  9587. * Determine if a value is an Array
  9588. *
  9589. * @param {Object} val The value to test
  9590. * @returns {boolean} True if value is an Array, otherwise false
  9591. */
  9592. function isArray(val) {
  9593. return toString.call(val) === '[object Array]';
  9594. }
  9595. /**
  9596. * Determine if a value is an Object
  9597. *
  9598. * @param {Object} val The value to test
  9599. * @returns {boolean} True if value is an Object, otherwise false
  9600. */
  9601. function isObject(val) {
  9602. return val !== null && (0, _typeof2.default)(val) === 'object';
  9603. }
  9604. /**
  9605. * Determine if a value is a Date
  9606. *
  9607. * @param {Object} val The value to test
  9608. * @returns {boolean} True if value is a Date, otherwise false
  9609. */
  9610. function isDate(val) {
  9611. return toString.call(val) === '[object Date]';
  9612. }
  9613. /**
  9614. * Determine if a value is a URLSearchParams object
  9615. *
  9616. * @param {Object} val The value to test
  9617. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  9618. */
  9619. function isURLSearchParams(val) {
  9620. return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
  9621. }
  9622. /**
  9623. * Iterate over an Array or an Object invoking a function for each item.
  9624. *
  9625. * If `obj` is an Array callback will be called passing
  9626. * the value, index, and complete array for each item.
  9627. *
  9628. * If 'obj' is an Object callback will be called passing
  9629. * the value, key, and complete object for each property.
  9630. *
  9631. * @param {Object|Array} obj The object to iterate
  9632. * @param {Function} fn The callback to invoke for each item
  9633. */
  9634. function forEach(obj, fn) {
  9635. // Don't bother if no value provided
  9636. if (obj === null || typeof obj === 'undefined') {
  9637. return;
  9638. }
  9639. // Force an array if not already something iterable
  9640. if ((0, _typeof2.default)(obj) !== 'object') {
  9641. /* eslint no-param-reassign:0 */
  9642. obj = [obj];
  9643. }
  9644. if (isArray(obj)) {
  9645. // Iterate over array values
  9646. for (var i = 0, l = obj.length; i < l; i++) {
  9647. fn.call(null, obj[i], i, obj);
  9648. }
  9649. } else {
  9650. // Iterate over object keys
  9651. for (var key in obj) {
  9652. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  9653. fn.call(null, obj[key], key, obj);
  9654. }
  9655. }
  9656. }
  9657. }
  9658. /**
  9659. * 是否为boolean 值
  9660. * @param val
  9661. * @returns {boolean}
  9662. */
  9663. function isBoolean(val) {
  9664. return typeof val === 'boolean';
  9665. }
  9666. /**
  9667. * 是否为真正的对象{} new Object
  9668. * @param {any} obj - 检测的对象
  9669. * @returns {boolean}
  9670. */
  9671. function isPlainObject(obj) {
  9672. return Object.prototype.toString.call(obj) === '[object Object]';
  9673. }
  9674. /**
  9675. * Function equal to merge with the difference being that no reference
  9676. * to original objects is kept.
  9677. *
  9678. * @see merge
  9679. * @param {Object} obj1 Object to merge
  9680. * @returns {Object} Result of all merge properties
  9681. */
  9682. function deepMerge( /* obj1, obj2, obj3, ... */
  9683. ) {
  9684. var result = {};
  9685. function assignValue(val, key) {
  9686. if ((0, _typeof2.default)(result[key]) === 'object' && (0, _typeof2.default)(val) === 'object') {
  9687. result[key] = deepMerge(result[key], val);
  9688. } else if ((0, _typeof2.default)(val) === 'object') {
  9689. result[key] = deepMerge({}, val);
  9690. } else {
  9691. result[key] = val;
  9692. }
  9693. }
  9694. for (var i = 0, l = arguments.length; i < l; i++) {
  9695. forEach(arguments[i], assignValue);
  9696. }
  9697. return result;
  9698. }
  9699. function isUndefined(val) {
  9700. return typeof val === 'undefined';
  9701. }
  9702. /***/ }),
  9703. /* 42 */
  9704. /*!******************************************************************************************************!*\
  9705. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/luch-request/core/buildFullPath.js ***!
  9706. \******************************************************************************************************/
  9707. /*! no static exports found */
  9708. /***/ (function(module, exports, __webpack_require__) {
  9709. "use strict";
  9710. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9711. Object.defineProperty(exports, "__esModule", {
  9712. value: true
  9713. });
  9714. exports.default = buildFullPath;
  9715. var _isAbsoluteURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/isAbsoluteURL */ 43));
  9716. var _combineURLs = _interopRequireDefault(__webpack_require__(/*! ../helpers/combineURLs */ 44));
  9717. /**
  9718. * Creates a new URL by combining the baseURL with the requestedURL,
  9719. * only when the requestedURL is not already an absolute URL.
  9720. * If the requestURL is absolute, this function returns the requestedURL untouched.
  9721. *
  9722. * @param {string} baseURL The base URL
  9723. * @param {string} requestedURL Absolute or relative URL to combine
  9724. * @returns {string} The combined full path
  9725. */
  9726. function buildFullPath(baseURL, requestedURL) {
  9727. if (baseURL && !(0, _isAbsoluteURL.default)(requestedURL)) {
  9728. return (0, _combineURLs.default)(baseURL, requestedURL);
  9729. }
  9730. return requestedURL;
  9731. }
  9732. /***/ }),
  9733. /* 43 */
  9734. /*!*********************************************************************************************************!*\
  9735. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js ***!
  9736. \*********************************************************************************************************/
  9737. /*! no static exports found */
  9738. /***/ (function(module, exports, __webpack_require__) {
  9739. "use strict";
  9740. /**
  9741. * Determines whether the specified URL is absolute
  9742. *
  9743. * @param {string} url The URL to test
  9744. * @returns {boolean} True if the specified URL is absolute, otherwise false
  9745. */
  9746. Object.defineProperty(exports, "__esModule", {
  9747. value: true
  9748. });
  9749. exports.default = isAbsoluteURL;
  9750. function isAbsoluteURL(url) {
  9751. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  9752. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  9753. // by any combination of letters, digits, plus, period, or hyphen.
  9754. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
  9755. }
  9756. /***/ }),
  9757. /* 44 */
  9758. /*!*******************************************************************************************************!*\
  9759. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/luch-request/helpers/combineURLs.js ***!
  9760. \*******************************************************************************************************/
  9761. /*! no static exports found */
  9762. /***/ (function(module, exports, __webpack_require__) {
  9763. "use strict";
  9764. /**
  9765. * Creates a new URL by combining the specified URLs
  9766. *
  9767. * @param {string} baseURL The base URL
  9768. * @param {string} relativeURL The relative URL
  9769. * @returns {string} The combined URL
  9770. */
  9771. Object.defineProperty(exports, "__esModule", {
  9772. value: true
  9773. });
  9774. exports.default = combineURLs;
  9775. function combineURLs(baseURL, relativeURL) {
  9776. return relativeURL ? "".concat(baseURL.replace(/\/+$/, ''), "/").concat(relativeURL.replace(/^\/+/, '')) : baseURL;
  9777. }
  9778. /***/ }),
  9779. /* 45 */
  9780. /*!***********************************************************************************************!*\
  9781. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/luch-request/core/settle.js ***!
  9782. \***********************************************************************************************/
  9783. /*! no static exports found */
  9784. /***/ (function(module, exports, __webpack_require__) {
  9785. "use strict";
  9786. Object.defineProperty(exports, "__esModule", {
  9787. value: true
  9788. });
  9789. exports.default = settle;
  9790. /**
  9791. * Resolve or reject a Promise based on response status.
  9792. *
  9793. * @param {Function} resolve A function that resolves the promise.
  9794. * @param {Function} reject A function that rejects the promise.
  9795. * @param {object} response The response.
  9796. */
  9797. function settle(resolve, reject, response) {
  9798. var validateStatus = response.config.validateStatus;
  9799. var status = response.statusCode;
  9800. if (status && (!validateStatus || validateStatus(status))) {
  9801. resolve(response);
  9802. } else {
  9803. reject(response);
  9804. }
  9805. }
  9806. /***/ }),
  9807. /* 46 */
  9808. /*!***********************************************************************************************************!*\
  9809. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/luch-request/core/InterceptorManager.js ***!
  9810. \***********************************************************************************************************/
  9811. /*! no static exports found */
  9812. /***/ (function(module, exports, __webpack_require__) {
  9813. "use strict";
  9814. Object.defineProperty(exports, "__esModule", {
  9815. value: true
  9816. });
  9817. exports.default = void 0;
  9818. function InterceptorManager() {
  9819. this.handlers = [];
  9820. }
  9821. /**
  9822. * Add a new interceptor to the stack
  9823. *
  9824. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  9825. * @param {Function} rejected The function to handle `reject` for a `Promise`
  9826. *
  9827. * @return {Number} An ID used to remove interceptor later
  9828. */
  9829. InterceptorManager.prototype.use = function use(fulfilled, rejected) {
  9830. this.handlers.push({
  9831. fulfilled: fulfilled,
  9832. rejected: rejected
  9833. });
  9834. return this.handlers.length - 1;
  9835. };
  9836. /**
  9837. * Remove an interceptor from the stack
  9838. *
  9839. * @param {Number} id The ID that was returned by `use`
  9840. */
  9841. InterceptorManager.prototype.eject = function eject(id) {
  9842. if (this.handlers[id]) {
  9843. this.handlers[id] = null;
  9844. }
  9845. };
  9846. /**
  9847. * Iterate over all the registered interceptors
  9848. *
  9849. * This method is particularly useful for skipping over any
  9850. * interceptors that may have become `null` calling `eject`.
  9851. *
  9852. * @param {Function} fn The function to call for each interceptor
  9853. */
  9854. InterceptorManager.prototype.forEach = function forEach(fn) {
  9855. this.handlers.forEach(function (h) {
  9856. if (h !== null) {
  9857. fn(h);
  9858. }
  9859. });
  9860. };
  9861. var _default = InterceptorManager;
  9862. exports.default = _default;
  9863. /***/ }),
  9864. /* 47 */
  9865. /*!****************************************************************************************************!*\
  9866. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/luch-request/core/mergeConfig.js ***!
  9867. \****************************************************************************************************/
  9868. /*! no static exports found */
  9869. /***/ (function(module, exports, __webpack_require__) {
  9870. "use strict";
  9871. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9872. Object.defineProperty(exports, "__esModule", {
  9873. value: true
  9874. });
  9875. exports.default = void 0;
  9876. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9877. var _utils = __webpack_require__(/*! ../utils */ 41);
  9878. 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; }
  9879. 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; }
  9880. /**
  9881. * 合并局部配置优先的配置,如果局部有该配置项则用局部,如果全局有该配置项则用全局
  9882. * @param {Array} keys - 配置项
  9883. * @param {Object} globalsConfig - 当前的全局配置
  9884. * @param {Object} config2 - 局部配置
  9885. * @return {{}}
  9886. */
  9887. var mergeKeys = function mergeKeys(keys, globalsConfig, config2) {
  9888. var config = {};
  9889. keys.forEach(function (prop) {
  9890. if (!(0, _utils.isUndefined)(config2[prop])) {
  9891. config[prop] = config2[prop];
  9892. } else if (!(0, _utils.isUndefined)(globalsConfig[prop])) {
  9893. config[prop] = globalsConfig[prop];
  9894. }
  9895. });
  9896. return config;
  9897. };
  9898. /**
  9899. *
  9900. * @param globalsConfig - 当前实例的全局配置
  9901. * @param config2 - 当前的局部配置
  9902. * @return - 合并后的配置
  9903. */
  9904. var _default = function _default(globalsConfig) {
  9905. var config2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9906. var method = config2.method || globalsConfig.method || 'GET';
  9907. var config = {
  9908. baseURL: globalsConfig.baseURL || '',
  9909. method: method,
  9910. url: config2.url || '',
  9911. params: config2.params || {},
  9912. custom: _objectSpread(_objectSpread({}, globalsConfig.custom || {}), config2.custom || {}),
  9913. header: (0, _utils.deepMerge)(globalsConfig.header || {}, config2.header || {})
  9914. };
  9915. var defaultToConfig2Keys = ['getTask', 'validateStatus'];
  9916. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultToConfig2Keys, globalsConfig, config2));
  9917. // eslint-disable-next-line no-empty
  9918. if (method === 'DOWNLOAD') {} else if (method === 'UPLOAD') {
  9919. delete config.header['content-type'];
  9920. delete config.header['Content-Type'];
  9921. var uploadKeys = ['filePath', 'name', 'formData'];
  9922. uploadKeys.forEach(function (prop) {
  9923. if (!(0, _utils.isUndefined)(config2[prop])) {
  9924. config[prop] = config2[prop];
  9925. }
  9926. });
  9927. } else {
  9928. var defaultsKeys = ['data', 'timeout', 'dataType', 'responseType'];
  9929. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultsKeys, globalsConfig, config2));
  9930. }
  9931. return config;
  9932. };
  9933. exports.default = _default;
  9934. /***/ }),
  9935. /* 48 */
  9936. /*!*************************************************************************************************!*\
  9937. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/luch-request/core/defaults.js ***!
  9938. \*************************************************************************************************/
  9939. /*! no static exports found */
  9940. /***/ (function(module, exports, __webpack_require__) {
  9941. "use strict";
  9942. Object.defineProperty(exports, "__esModule", {
  9943. value: true
  9944. });
  9945. exports.default = void 0;
  9946. /**
  9947. * 默认的全局配置
  9948. */
  9949. var _default = {
  9950. baseURL: '',
  9951. header: {},
  9952. method: 'GET',
  9953. dataType: 'json',
  9954. responseType: 'text',
  9955. custom: {},
  9956. timeout: 60000,
  9957. validateStatus: function validateStatus(status) {
  9958. return status >= 200 && status < 300;
  9959. }
  9960. };
  9961. exports.default = _default;
  9962. /***/ }),
  9963. /* 49 */
  9964. /*!***********************************************************************************************!*\
  9965. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/luch-request/utils/clone.js ***!
  9966. \***********************************************************************************************/
  9967. /*! no static exports found */
  9968. /***/ (function(module, exports, __webpack_require__) {
  9969. "use strict";
  9970. /* WEBPACK VAR INJECTION */(function(Buffer) {
  9971. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9972. Object.defineProperty(exports, "__esModule", {
  9973. value: true
  9974. });
  9975. exports.default = void 0;
  9976. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  9977. /* eslint-disable */
  9978. var clone = function () {
  9979. 'use strict';
  9980. function _instanceof(obj, type) {
  9981. return type != null && obj instanceof type;
  9982. }
  9983. var nativeMap;
  9984. try {
  9985. nativeMap = Map;
  9986. } catch (_) {
  9987. // maybe a reference error because no `Map`. Give it a dummy value that no
  9988. // value will ever be an instanceof.
  9989. nativeMap = function nativeMap() {};
  9990. }
  9991. var nativeSet;
  9992. try {
  9993. nativeSet = Set;
  9994. } catch (_) {
  9995. nativeSet = function nativeSet() {};
  9996. }
  9997. var nativePromise;
  9998. try {
  9999. nativePromise = Promise;
  10000. } catch (_) {
  10001. nativePromise = function nativePromise() {};
  10002. }
  10003. /**
  10004. * Clones (copies) an Object using deep copying.
  10005. *
  10006. * This function supports circular references by default, but if you are certain
  10007. * there are no circular references in your object, you can save some CPU time
  10008. * by calling clone(obj, false).
  10009. *
  10010. * Caution: if `circular` is false and `parent` contains circular references,
  10011. * your program may enter an infinite loop and crash.
  10012. *
  10013. * @param `parent` - the object to be cloned
  10014. * @param `circular` - set to true if the object to be cloned may contain
  10015. * circular references. (optional - true by default)
  10016. * @param `depth` - set to a number if the object is only to be cloned to
  10017. * a particular depth. (optional - defaults to Infinity)
  10018. * @param `prototype` - sets the prototype to be used when cloning an object.
  10019. * (optional - defaults to parent prototype).
  10020. * @param `includeNonEnumerable` - set to true if the non-enumerable properties
  10021. * should be cloned as well. Non-enumerable properties on the prototype
  10022. * chain will be ignored. (optional - false by default)
  10023. */
  10024. function clone(parent, circular, depth, prototype, includeNonEnumerable) {
  10025. if ((0, _typeof2.default)(circular) === 'object') {
  10026. depth = circular.depth;
  10027. prototype = circular.prototype;
  10028. includeNonEnumerable = circular.includeNonEnumerable;
  10029. circular = circular.circular;
  10030. }
  10031. // maintain two arrays for circular references, where corresponding parents
  10032. // and children have the same index
  10033. var allParents = [];
  10034. var allChildren = [];
  10035. var useBuffer = typeof Buffer != 'undefined';
  10036. if (typeof circular == 'undefined') circular = true;
  10037. if (typeof depth == 'undefined') depth = Infinity;
  10038. // recurse this function so we don't reset allParents and allChildren
  10039. function _clone(parent, depth) {
  10040. // cloning null always returns null
  10041. if (parent === null) return null;
  10042. if (depth === 0) return parent;
  10043. var child;
  10044. var proto;
  10045. if ((0, _typeof2.default)(parent) != 'object') {
  10046. return parent;
  10047. }
  10048. if (_instanceof(parent, nativeMap)) {
  10049. child = new nativeMap();
  10050. } else if (_instanceof(parent, nativeSet)) {
  10051. child = new nativeSet();
  10052. } else if (_instanceof(parent, nativePromise)) {
  10053. child = new nativePromise(function (resolve, reject) {
  10054. parent.then(function (value) {
  10055. resolve(_clone(value, depth - 1));
  10056. }, function (err) {
  10057. reject(_clone(err, depth - 1));
  10058. });
  10059. });
  10060. } else if (clone.__isArray(parent)) {
  10061. child = [];
  10062. } else if (clone.__isRegExp(parent)) {
  10063. child = new RegExp(parent.source, __getRegExpFlags(parent));
  10064. if (parent.lastIndex) child.lastIndex = parent.lastIndex;
  10065. } else if (clone.__isDate(parent)) {
  10066. child = new Date(parent.getTime());
  10067. } else if (useBuffer && Buffer.isBuffer(parent)) {
  10068. if (Buffer.from) {
  10069. // Node.js >= 5.10.0
  10070. child = Buffer.from(parent);
  10071. } else {
  10072. // Older Node.js versions
  10073. child = new Buffer(parent.length);
  10074. parent.copy(child);
  10075. }
  10076. return child;
  10077. } else if (_instanceof(parent, Error)) {
  10078. child = Object.create(parent);
  10079. } else {
  10080. if (typeof prototype == 'undefined') {
  10081. proto = Object.getPrototypeOf(parent);
  10082. child = Object.create(proto);
  10083. } else {
  10084. child = Object.create(prototype);
  10085. proto = prototype;
  10086. }
  10087. }
  10088. if (circular) {
  10089. var index = allParents.indexOf(parent);
  10090. if (index != -1) {
  10091. return allChildren[index];
  10092. }
  10093. allParents.push(parent);
  10094. allChildren.push(child);
  10095. }
  10096. if (_instanceof(parent, nativeMap)) {
  10097. parent.forEach(function (value, key) {
  10098. var keyChild = _clone(key, depth - 1);
  10099. var valueChild = _clone(value, depth - 1);
  10100. child.set(keyChild, valueChild);
  10101. });
  10102. }
  10103. if (_instanceof(parent, nativeSet)) {
  10104. parent.forEach(function (value) {
  10105. var entryChild = _clone(value, depth - 1);
  10106. child.add(entryChild);
  10107. });
  10108. }
  10109. for (var i in parent) {
  10110. var attrs = Object.getOwnPropertyDescriptor(parent, i);
  10111. if (attrs) {
  10112. child[i] = _clone(parent[i], depth - 1);
  10113. }
  10114. try {
  10115. var objProperty = Object.getOwnPropertyDescriptor(parent, i);
  10116. if (objProperty.set === 'undefined') {
  10117. // no setter defined. Skip cloning this property
  10118. continue;
  10119. }
  10120. child[i] = _clone(parent[i], depth - 1);
  10121. } catch (e) {
  10122. if (e instanceof TypeError) {
  10123. // when in strict mode, TypeError will be thrown if child[i] property only has a getter
  10124. // we can't do anything about this, other than inform the user that this property cannot be set.
  10125. continue;
  10126. } else if (e instanceof ReferenceError) {
  10127. //this may happen in non strict mode
  10128. continue;
  10129. }
  10130. }
  10131. }
  10132. if (Object.getOwnPropertySymbols) {
  10133. var symbols = Object.getOwnPropertySymbols(parent);
  10134. for (var i = 0; i < symbols.length; i++) {
  10135. // Don't need to worry about cloning a symbol because it is a primitive,
  10136. // like a number or string.
  10137. var symbol = symbols[i];
  10138. var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);
  10139. if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
  10140. continue;
  10141. }
  10142. child[symbol] = _clone(parent[symbol], depth - 1);
  10143. Object.defineProperty(child, symbol, descriptor);
  10144. }
  10145. }
  10146. if (includeNonEnumerable) {
  10147. var allPropertyNames = Object.getOwnPropertyNames(parent);
  10148. for (var i = 0; i < allPropertyNames.length; i++) {
  10149. var propertyName = allPropertyNames[i];
  10150. var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);
  10151. if (descriptor && descriptor.enumerable) {
  10152. continue;
  10153. }
  10154. child[propertyName] = _clone(parent[propertyName], depth - 1);
  10155. Object.defineProperty(child, propertyName, descriptor);
  10156. }
  10157. }
  10158. return child;
  10159. }
  10160. return _clone(parent, depth);
  10161. }
  10162. /**
  10163. * Simple flat clone using prototype, accepts only objects, usefull for property
  10164. * override on FLAT configuration object (no nested props).
  10165. *
  10166. * USE WITH CAUTION! This may not behave as you wish if you do not know how this
  10167. * works.
  10168. */
  10169. clone.clonePrototype = function clonePrototype(parent) {
  10170. if (parent === null) return null;
  10171. var c = function c() {};
  10172. c.prototype = parent;
  10173. return new c();
  10174. };
  10175. // private utility functions
  10176. function __objToStr(o) {
  10177. return Object.prototype.toString.call(o);
  10178. }
  10179. clone.__objToStr = __objToStr;
  10180. function __isDate(o) {
  10181. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Date]';
  10182. }
  10183. clone.__isDate = __isDate;
  10184. function __isArray(o) {
  10185. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Array]';
  10186. }
  10187. clone.__isArray = __isArray;
  10188. function __isRegExp(o) {
  10189. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object RegExp]';
  10190. }
  10191. clone.__isRegExp = __isRegExp;
  10192. function __getRegExpFlags(re) {
  10193. var flags = '';
  10194. if (re.global) flags += 'g';
  10195. if (re.ignoreCase) flags += 'i';
  10196. if (re.multiline) flags += 'm';
  10197. return flags;
  10198. }
  10199. clone.__getRegExpFlags = __getRegExpFlags;
  10200. return clone;
  10201. }();
  10202. var _default = clone;
  10203. exports.default = _default;
  10204. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/buffer/index.js */ 50).Buffer))
  10205. /***/ }),
  10206. /* 50 */
  10207. /*!**************************************!*\
  10208. !*** ./node_modules/buffer/index.js ***!
  10209. \**************************************/
  10210. /*! no static exports found */
  10211. /***/ (function(module, exports, __webpack_require__) {
  10212. "use strict";
  10213. /* WEBPACK VAR INJECTION */(function(global) {/*!
  10214. * The buffer module from node.js, for the browser.
  10215. *
  10216. * @author Feross Aboukhadijeh <http://feross.org>
  10217. * @license MIT
  10218. */
  10219. /* eslint-disable no-proto */
  10220. var base64 = __webpack_require__(/*! base64-js */ 51)
  10221. var ieee754 = __webpack_require__(/*! ieee754 */ 52)
  10222. var isArray = __webpack_require__(/*! isarray */ 53)
  10223. exports.Buffer = Buffer
  10224. exports.SlowBuffer = SlowBuffer
  10225. exports.INSPECT_MAX_BYTES = 50
  10226. /**
  10227. * If `Buffer.TYPED_ARRAY_SUPPORT`:
  10228. * === true Use Uint8Array implementation (fastest)
  10229. * === false Use Object implementation (most compatible, even IE6)
  10230. *
  10231. * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
  10232. * Opera 11.6+, iOS 4.2+.
  10233. *
  10234. * Due to various browser bugs, sometimes the Object implementation will be used even
  10235. * when the browser supports typed arrays.
  10236. *
  10237. * Note:
  10238. *
  10239. * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
  10240. * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
  10241. *
  10242. * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
  10243. *
  10244. * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
  10245. * incorrect length in some situations.
  10246. * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
  10247. * get the Object implementation, which is slower but behaves correctly.
  10248. */
  10249. Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
  10250. ? global.TYPED_ARRAY_SUPPORT
  10251. : typedArraySupport()
  10252. /*
  10253. * Export kMaxLength after typed array support is determined.
  10254. */
  10255. exports.kMaxLength = kMaxLength()
  10256. function typedArraySupport () {
  10257. try {
  10258. var arr = new Uint8Array(1)
  10259. arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
  10260. return arr.foo() === 42 && // typed array instances can be augmented
  10261. typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
  10262. arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
  10263. } catch (e) {
  10264. return false
  10265. }
  10266. }
  10267. function kMaxLength () {
  10268. return Buffer.TYPED_ARRAY_SUPPORT
  10269. ? 0x7fffffff
  10270. : 0x3fffffff
  10271. }
  10272. function createBuffer (that, length) {
  10273. if (kMaxLength() < length) {
  10274. throw new RangeError('Invalid typed array length')
  10275. }
  10276. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10277. // Return an augmented `Uint8Array` instance, for best performance
  10278. that = new Uint8Array(length)
  10279. that.__proto__ = Buffer.prototype
  10280. } else {
  10281. // Fallback: Return an object instance of the Buffer class
  10282. if (that === null) {
  10283. that = new Buffer(length)
  10284. }
  10285. that.length = length
  10286. }
  10287. return that
  10288. }
  10289. /**
  10290. * The Buffer constructor returns instances of `Uint8Array` that have their
  10291. * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
  10292. * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
  10293. * and the `Uint8Array` methods. Square bracket notation works as expected -- it
  10294. * returns a single octet.
  10295. *
  10296. * The `Uint8Array` prototype remains unmodified.
  10297. */
  10298. function Buffer (arg, encodingOrOffset, length) {
  10299. if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
  10300. return new Buffer(arg, encodingOrOffset, length)
  10301. }
  10302. // Common case.
  10303. if (typeof arg === 'number') {
  10304. if (typeof encodingOrOffset === 'string') {
  10305. throw new Error(
  10306. 'If encoding is specified then the first argument must be a string'
  10307. )
  10308. }
  10309. return allocUnsafe(this, arg)
  10310. }
  10311. return from(this, arg, encodingOrOffset, length)
  10312. }
  10313. Buffer.poolSize = 8192 // not used by this implementation
  10314. // TODO: Legacy, not needed anymore. Remove in next major version.
  10315. Buffer._augment = function (arr) {
  10316. arr.__proto__ = Buffer.prototype
  10317. return arr
  10318. }
  10319. function from (that, value, encodingOrOffset, length) {
  10320. if (typeof value === 'number') {
  10321. throw new TypeError('"value" argument must not be a number')
  10322. }
  10323. if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
  10324. return fromArrayBuffer(that, value, encodingOrOffset, length)
  10325. }
  10326. if (typeof value === 'string') {
  10327. return fromString(that, value, encodingOrOffset)
  10328. }
  10329. return fromObject(that, value)
  10330. }
  10331. /**
  10332. * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
  10333. * if value is a number.
  10334. * Buffer.from(str[, encoding])
  10335. * Buffer.from(array)
  10336. * Buffer.from(buffer)
  10337. * Buffer.from(arrayBuffer[, byteOffset[, length]])
  10338. **/
  10339. Buffer.from = function (value, encodingOrOffset, length) {
  10340. return from(null, value, encodingOrOffset, length)
  10341. }
  10342. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10343. Buffer.prototype.__proto__ = Uint8Array.prototype
  10344. Buffer.__proto__ = Uint8Array
  10345. if (typeof Symbol !== 'undefined' && Symbol.species &&
  10346. Buffer[Symbol.species] === Buffer) {
  10347. // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
  10348. Object.defineProperty(Buffer, Symbol.species, {
  10349. value: null,
  10350. configurable: true
  10351. })
  10352. }
  10353. }
  10354. function assertSize (size) {
  10355. if (typeof size !== 'number') {
  10356. throw new TypeError('"size" argument must be a number')
  10357. } else if (size < 0) {
  10358. throw new RangeError('"size" argument must not be negative')
  10359. }
  10360. }
  10361. function alloc (that, size, fill, encoding) {
  10362. assertSize(size)
  10363. if (size <= 0) {
  10364. return createBuffer(that, size)
  10365. }
  10366. if (fill !== undefined) {
  10367. // Only pay attention to encoding if it's a string. This
  10368. // prevents accidentally sending in a number that would
  10369. // be interpretted as a start offset.
  10370. return typeof encoding === 'string'
  10371. ? createBuffer(that, size).fill(fill, encoding)
  10372. : createBuffer(that, size).fill(fill)
  10373. }
  10374. return createBuffer(that, size)
  10375. }
  10376. /**
  10377. * Creates a new filled Buffer instance.
  10378. * alloc(size[, fill[, encoding]])
  10379. **/
  10380. Buffer.alloc = function (size, fill, encoding) {
  10381. return alloc(null, size, fill, encoding)
  10382. }
  10383. function allocUnsafe (that, size) {
  10384. assertSize(size)
  10385. that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
  10386. if (!Buffer.TYPED_ARRAY_SUPPORT) {
  10387. for (var i = 0; i < size; ++i) {
  10388. that[i] = 0
  10389. }
  10390. }
  10391. return that
  10392. }
  10393. /**
  10394. * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
  10395. * */
  10396. Buffer.allocUnsafe = function (size) {
  10397. return allocUnsafe(null, size)
  10398. }
  10399. /**
  10400. * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
  10401. */
  10402. Buffer.allocUnsafeSlow = function (size) {
  10403. return allocUnsafe(null, size)
  10404. }
  10405. function fromString (that, string, encoding) {
  10406. if (typeof encoding !== 'string' || encoding === '') {
  10407. encoding = 'utf8'
  10408. }
  10409. if (!Buffer.isEncoding(encoding)) {
  10410. throw new TypeError('"encoding" must be a valid string encoding')
  10411. }
  10412. var length = byteLength(string, encoding) | 0
  10413. that = createBuffer(that, length)
  10414. var actual = that.write(string, encoding)
  10415. if (actual !== length) {
  10416. // Writing a hex string, for example, that contains invalid characters will
  10417. // cause everything after the first invalid character to be ignored. (e.g.
  10418. // 'abxxcd' will be treated as 'ab')
  10419. that = that.slice(0, actual)
  10420. }
  10421. return that
  10422. }
  10423. function fromArrayLike (that, array) {
  10424. var length = array.length < 0 ? 0 : checked(array.length) | 0
  10425. that = createBuffer(that, length)
  10426. for (var i = 0; i < length; i += 1) {
  10427. that[i] = array[i] & 255
  10428. }
  10429. return that
  10430. }
  10431. function fromArrayBuffer (that, array, byteOffset, length) {
  10432. array.byteLength // this throws if `array` is not a valid ArrayBuffer
  10433. if (byteOffset < 0 || array.byteLength < byteOffset) {
  10434. throw new RangeError('\'offset\' is out of bounds')
  10435. }
  10436. if (array.byteLength < byteOffset + (length || 0)) {
  10437. throw new RangeError('\'length\' is out of bounds')
  10438. }
  10439. if (byteOffset === undefined && length === undefined) {
  10440. array = new Uint8Array(array)
  10441. } else if (length === undefined) {
  10442. array = new Uint8Array(array, byteOffset)
  10443. } else {
  10444. array = new Uint8Array(array, byteOffset, length)
  10445. }
  10446. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10447. // Return an augmented `Uint8Array` instance, for best performance
  10448. that = array
  10449. that.__proto__ = Buffer.prototype
  10450. } else {
  10451. // Fallback: Return an object instance of the Buffer class
  10452. that = fromArrayLike(that, array)
  10453. }
  10454. return that
  10455. }
  10456. function fromObject (that, obj) {
  10457. if (Buffer.isBuffer(obj)) {
  10458. var len = checked(obj.length) | 0
  10459. that = createBuffer(that, len)
  10460. if (that.length === 0) {
  10461. return that
  10462. }
  10463. obj.copy(that, 0, 0, len)
  10464. return that
  10465. }
  10466. if (obj) {
  10467. if ((typeof ArrayBuffer !== 'undefined' &&
  10468. obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
  10469. if (typeof obj.length !== 'number' || isnan(obj.length)) {
  10470. return createBuffer(that, 0)
  10471. }
  10472. return fromArrayLike(that, obj)
  10473. }
  10474. if (obj.type === 'Buffer' && isArray(obj.data)) {
  10475. return fromArrayLike(that, obj.data)
  10476. }
  10477. }
  10478. throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
  10479. }
  10480. function checked (length) {
  10481. // Note: cannot use `length < kMaxLength()` here because that fails when
  10482. // length is NaN (which is otherwise coerced to zero.)
  10483. if (length >= kMaxLength()) {
  10484. throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
  10485. 'size: 0x' + kMaxLength().toString(16) + ' bytes')
  10486. }
  10487. return length | 0
  10488. }
  10489. function SlowBuffer (length) {
  10490. if (+length != length) { // eslint-disable-line eqeqeq
  10491. length = 0
  10492. }
  10493. return Buffer.alloc(+length)
  10494. }
  10495. Buffer.isBuffer = function isBuffer (b) {
  10496. return !!(b != null && b._isBuffer)
  10497. }
  10498. Buffer.compare = function compare (a, b) {
  10499. if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
  10500. throw new TypeError('Arguments must be Buffers')
  10501. }
  10502. if (a === b) return 0
  10503. var x = a.length
  10504. var y = b.length
  10505. for (var i = 0, len = Math.min(x, y); i < len; ++i) {
  10506. if (a[i] !== b[i]) {
  10507. x = a[i]
  10508. y = b[i]
  10509. break
  10510. }
  10511. }
  10512. if (x < y) return -1
  10513. if (y < x) return 1
  10514. return 0
  10515. }
  10516. Buffer.isEncoding = function isEncoding (encoding) {
  10517. switch (String(encoding).toLowerCase()) {
  10518. case 'hex':
  10519. case 'utf8':
  10520. case 'utf-8':
  10521. case 'ascii':
  10522. case 'latin1':
  10523. case 'binary':
  10524. case 'base64':
  10525. case 'ucs2':
  10526. case 'ucs-2':
  10527. case 'utf16le':
  10528. case 'utf-16le':
  10529. return true
  10530. default:
  10531. return false
  10532. }
  10533. }
  10534. Buffer.concat = function concat (list, length) {
  10535. if (!isArray(list)) {
  10536. throw new TypeError('"list" argument must be an Array of Buffers')
  10537. }
  10538. if (list.length === 0) {
  10539. return Buffer.alloc(0)
  10540. }
  10541. var i
  10542. if (length === undefined) {
  10543. length = 0
  10544. for (i = 0; i < list.length; ++i) {
  10545. length += list[i].length
  10546. }
  10547. }
  10548. var buffer = Buffer.allocUnsafe(length)
  10549. var pos = 0
  10550. for (i = 0; i < list.length; ++i) {
  10551. var buf = list[i]
  10552. if (!Buffer.isBuffer(buf)) {
  10553. throw new TypeError('"list" argument must be an Array of Buffers')
  10554. }
  10555. buf.copy(buffer, pos)
  10556. pos += buf.length
  10557. }
  10558. return buffer
  10559. }
  10560. function byteLength (string, encoding) {
  10561. if (Buffer.isBuffer(string)) {
  10562. return string.length
  10563. }
  10564. if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
  10565. (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
  10566. return string.byteLength
  10567. }
  10568. if (typeof string !== 'string') {
  10569. string = '' + string
  10570. }
  10571. var len = string.length
  10572. if (len === 0) return 0
  10573. // Use a for loop to avoid recursion
  10574. var loweredCase = false
  10575. for (;;) {
  10576. switch (encoding) {
  10577. case 'ascii':
  10578. case 'latin1':
  10579. case 'binary':
  10580. return len
  10581. case 'utf8':
  10582. case 'utf-8':
  10583. case undefined:
  10584. return utf8ToBytes(string).length
  10585. case 'ucs2':
  10586. case 'ucs-2':
  10587. case 'utf16le':
  10588. case 'utf-16le':
  10589. return len * 2
  10590. case 'hex':
  10591. return len >>> 1
  10592. case 'base64':
  10593. return base64ToBytes(string).length
  10594. default:
  10595. if (loweredCase) return utf8ToBytes(string).length // assume utf8
  10596. encoding = ('' + encoding).toLowerCase()
  10597. loweredCase = true
  10598. }
  10599. }
  10600. }
  10601. Buffer.byteLength = byteLength
  10602. function slowToString (encoding, start, end) {
  10603. var loweredCase = false
  10604. // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
  10605. // property of a typed array.
  10606. // This behaves neither like String nor Uint8Array in that we set start/end
  10607. // to their upper/lower bounds if the value passed is out of range.
  10608. // undefined is handled specially as per ECMA-262 6th Edition,
  10609. // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
  10610. if (start === undefined || start < 0) {
  10611. start = 0
  10612. }
  10613. // Return early if start > this.length. Done here to prevent potential uint32
  10614. // coercion fail below.
  10615. if (start > this.length) {
  10616. return ''
  10617. }
  10618. if (end === undefined || end > this.length) {
  10619. end = this.length
  10620. }
  10621. if (end <= 0) {
  10622. return ''
  10623. }
  10624. // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
  10625. end >>>= 0
  10626. start >>>= 0
  10627. if (end <= start) {
  10628. return ''
  10629. }
  10630. if (!encoding) encoding = 'utf8'
  10631. while (true) {
  10632. switch (encoding) {
  10633. case 'hex':
  10634. return hexSlice(this, start, end)
  10635. case 'utf8':
  10636. case 'utf-8':
  10637. return utf8Slice(this, start, end)
  10638. case 'ascii':
  10639. return asciiSlice(this, start, end)
  10640. case 'latin1':
  10641. case 'binary':
  10642. return latin1Slice(this, start, end)
  10643. case 'base64':
  10644. return base64Slice(this, start, end)
  10645. case 'ucs2':
  10646. case 'ucs-2':
  10647. case 'utf16le':
  10648. case 'utf-16le':
  10649. return utf16leSlice(this, start, end)
  10650. default:
  10651. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  10652. encoding = (encoding + '').toLowerCase()
  10653. loweredCase = true
  10654. }
  10655. }
  10656. }
  10657. // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
  10658. // Buffer instances.
  10659. Buffer.prototype._isBuffer = true
  10660. function swap (b, n, m) {
  10661. var i = b[n]
  10662. b[n] = b[m]
  10663. b[m] = i
  10664. }
  10665. Buffer.prototype.swap16 = function swap16 () {
  10666. var len = this.length
  10667. if (len % 2 !== 0) {
  10668. throw new RangeError('Buffer size must be a multiple of 16-bits')
  10669. }
  10670. for (var i = 0; i < len; i += 2) {
  10671. swap(this, i, i + 1)
  10672. }
  10673. return this
  10674. }
  10675. Buffer.prototype.swap32 = function swap32 () {
  10676. var len = this.length
  10677. if (len % 4 !== 0) {
  10678. throw new RangeError('Buffer size must be a multiple of 32-bits')
  10679. }
  10680. for (var i = 0; i < len; i += 4) {
  10681. swap(this, i, i + 3)
  10682. swap(this, i + 1, i + 2)
  10683. }
  10684. return this
  10685. }
  10686. Buffer.prototype.swap64 = function swap64 () {
  10687. var len = this.length
  10688. if (len % 8 !== 0) {
  10689. throw new RangeError('Buffer size must be a multiple of 64-bits')
  10690. }
  10691. for (var i = 0; i < len; i += 8) {
  10692. swap(this, i, i + 7)
  10693. swap(this, i + 1, i + 6)
  10694. swap(this, i + 2, i + 5)
  10695. swap(this, i + 3, i + 4)
  10696. }
  10697. return this
  10698. }
  10699. Buffer.prototype.toString = function toString () {
  10700. var length = this.length | 0
  10701. if (length === 0) return ''
  10702. if (arguments.length === 0) return utf8Slice(this, 0, length)
  10703. return slowToString.apply(this, arguments)
  10704. }
  10705. Buffer.prototype.equals = function equals (b) {
  10706. if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  10707. if (this === b) return true
  10708. return Buffer.compare(this, b) === 0
  10709. }
  10710. Buffer.prototype.inspect = function inspect () {
  10711. var str = ''
  10712. var max = exports.INSPECT_MAX_BYTES
  10713. if (this.length > 0) {
  10714. str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
  10715. if (this.length > max) str += ' ... '
  10716. }
  10717. return '<Buffer ' + str + '>'
  10718. }
  10719. Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
  10720. if (!Buffer.isBuffer(target)) {
  10721. throw new TypeError('Argument must be a Buffer')
  10722. }
  10723. if (start === undefined) {
  10724. start = 0
  10725. }
  10726. if (end === undefined) {
  10727. end = target ? target.length : 0
  10728. }
  10729. if (thisStart === undefined) {
  10730. thisStart = 0
  10731. }
  10732. if (thisEnd === undefined) {
  10733. thisEnd = this.length
  10734. }
  10735. if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
  10736. throw new RangeError('out of range index')
  10737. }
  10738. if (thisStart >= thisEnd && start >= end) {
  10739. return 0
  10740. }
  10741. if (thisStart >= thisEnd) {
  10742. return -1
  10743. }
  10744. if (start >= end) {
  10745. return 1
  10746. }
  10747. start >>>= 0
  10748. end >>>= 0
  10749. thisStart >>>= 0
  10750. thisEnd >>>= 0
  10751. if (this === target) return 0
  10752. var x = thisEnd - thisStart
  10753. var y = end - start
  10754. var len = Math.min(x, y)
  10755. var thisCopy = this.slice(thisStart, thisEnd)
  10756. var targetCopy = target.slice(start, end)
  10757. for (var i = 0; i < len; ++i) {
  10758. if (thisCopy[i] !== targetCopy[i]) {
  10759. x = thisCopy[i]
  10760. y = targetCopy[i]
  10761. break
  10762. }
  10763. }
  10764. if (x < y) return -1
  10765. if (y < x) return 1
  10766. return 0
  10767. }
  10768. // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
  10769. // OR the last index of `val` in `buffer` at offset <= `byteOffset`.
  10770. //
  10771. // Arguments:
  10772. // - buffer - a Buffer to search
  10773. // - val - a string, Buffer, or number
  10774. // - byteOffset - an index into `buffer`; will be clamped to an int32
  10775. // - encoding - an optional encoding, relevant is val is a string
  10776. // - dir - true for indexOf, false for lastIndexOf
  10777. function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
  10778. // Empty buffer means no match
  10779. if (buffer.length === 0) return -1
  10780. // Normalize byteOffset
  10781. if (typeof byteOffset === 'string') {
  10782. encoding = byteOffset
  10783. byteOffset = 0
  10784. } else if (byteOffset > 0x7fffffff) {
  10785. byteOffset = 0x7fffffff
  10786. } else if (byteOffset < -0x80000000) {
  10787. byteOffset = -0x80000000
  10788. }
  10789. byteOffset = +byteOffset // Coerce to Number.
  10790. if (isNaN(byteOffset)) {
  10791. // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
  10792. byteOffset = dir ? 0 : (buffer.length - 1)
  10793. }
  10794. // Normalize byteOffset: negative offsets start from the end of the buffer
  10795. if (byteOffset < 0) byteOffset = buffer.length + byteOffset
  10796. if (byteOffset >= buffer.length) {
  10797. if (dir) return -1
  10798. else byteOffset = buffer.length - 1
  10799. } else if (byteOffset < 0) {
  10800. if (dir) byteOffset = 0
  10801. else return -1
  10802. }
  10803. // Normalize val
  10804. if (typeof val === 'string') {
  10805. val = Buffer.from(val, encoding)
  10806. }
  10807. // Finally, search either indexOf (if dir is true) or lastIndexOf
  10808. if (Buffer.isBuffer(val)) {
  10809. // Special case: looking for empty string/buffer always fails
  10810. if (val.length === 0) {
  10811. return -1
  10812. }
  10813. return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
  10814. } else if (typeof val === 'number') {
  10815. val = val & 0xFF // Search for a byte value [0-255]
  10816. if (Buffer.TYPED_ARRAY_SUPPORT &&
  10817. typeof Uint8Array.prototype.indexOf === 'function') {
  10818. if (dir) {
  10819. return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
  10820. } else {
  10821. return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
  10822. }
  10823. }
  10824. return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
  10825. }
  10826. throw new TypeError('val must be string, number or Buffer')
  10827. }
  10828. function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
  10829. var indexSize = 1
  10830. var arrLength = arr.length
  10831. var valLength = val.length
  10832. if (encoding !== undefined) {
  10833. encoding = String(encoding).toLowerCase()
  10834. if (encoding === 'ucs2' || encoding === 'ucs-2' ||
  10835. encoding === 'utf16le' || encoding === 'utf-16le') {
  10836. if (arr.length < 2 || val.length < 2) {
  10837. return -1
  10838. }
  10839. indexSize = 2
  10840. arrLength /= 2
  10841. valLength /= 2
  10842. byteOffset /= 2
  10843. }
  10844. }
  10845. function read (buf, i) {
  10846. if (indexSize === 1) {
  10847. return buf[i]
  10848. } else {
  10849. return buf.readUInt16BE(i * indexSize)
  10850. }
  10851. }
  10852. var i
  10853. if (dir) {
  10854. var foundIndex = -1
  10855. for (i = byteOffset; i < arrLength; i++) {
  10856. if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
  10857. if (foundIndex === -1) foundIndex = i
  10858. if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
  10859. } else {
  10860. if (foundIndex !== -1) i -= i - foundIndex
  10861. foundIndex = -1
  10862. }
  10863. }
  10864. } else {
  10865. if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
  10866. for (i = byteOffset; i >= 0; i--) {
  10867. var found = true
  10868. for (var j = 0; j < valLength; j++) {
  10869. if (read(arr, i + j) !== read(val, j)) {
  10870. found = false
  10871. break
  10872. }
  10873. }
  10874. if (found) return i
  10875. }
  10876. }
  10877. return -1
  10878. }
  10879. Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
  10880. return this.indexOf(val, byteOffset, encoding) !== -1
  10881. }
  10882. Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
  10883. return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
  10884. }
  10885. Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
  10886. return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
  10887. }
  10888. function hexWrite (buf, string, offset, length) {
  10889. offset = Number(offset) || 0
  10890. var remaining = buf.length - offset
  10891. if (!length) {
  10892. length = remaining
  10893. } else {
  10894. length = Number(length)
  10895. if (length > remaining) {
  10896. length = remaining
  10897. }
  10898. }
  10899. // must be an even number of digits
  10900. var strLen = string.length
  10901. if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
  10902. if (length > strLen / 2) {
  10903. length = strLen / 2
  10904. }
  10905. for (var i = 0; i < length; ++i) {
  10906. var parsed = parseInt(string.substr(i * 2, 2), 16)
  10907. if (isNaN(parsed)) return i
  10908. buf[offset + i] = parsed
  10909. }
  10910. return i
  10911. }
  10912. function utf8Write (buf, string, offset, length) {
  10913. return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
  10914. }
  10915. function asciiWrite (buf, string, offset, length) {
  10916. return blitBuffer(asciiToBytes(string), buf, offset, length)
  10917. }
  10918. function latin1Write (buf, string, offset, length) {
  10919. return asciiWrite(buf, string, offset, length)
  10920. }
  10921. function base64Write (buf, string, offset, length) {
  10922. return blitBuffer(base64ToBytes(string), buf, offset, length)
  10923. }
  10924. function ucs2Write (buf, string, offset, length) {
  10925. return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
  10926. }
  10927. Buffer.prototype.write = function write (string, offset, length, encoding) {
  10928. // Buffer#write(string)
  10929. if (offset === undefined) {
  10930. encoding = 'utf8'
  10931. length = this.length
  10932. offset = 0
  10933. // Buffer#write(string, encoding)
  10934. } else if (length === undefined && typeof offset === 'string') {
  10935. encoding = offset
  10936. length = this.length
  10937. offset = 0
  10938. // Buffer#write(string, offset[, length][, encoding])
  10939. } else if (isFinite(offset)) {
  10940. offset = offset | 0
  10941. if (isFinite(length)) {
  10942. length = length | 0
  10943. if (encoding === undefined) encoding = 'utf8'
  10944. } else {
  10945. encoding = length
  10946. length = undefined
  10947. }
  10948. // legacy write(string, encoding, offset, length) - remove in v0.13
  10949. } else {
  10950. throw new Error(
  10951. 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
  10952. )
  10953. }
  10954. var remaining = this.length - offset
  10955. if (length === undefined || length > remaining) length = remaining
  10956. if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
  10957. throw new RangeError('Attempt to write outside buffer bounds')
  10958. }
  10959. if (!encoding) encoding = 'utf8'
  10960. var loweredCase = false
  10961. for (;;) {
  10962. switch (encoding) {
  10963. case 'hex':
  10964. return hexWrite(this, string, offset, length)
  10965. case 'utf8':
  10966. case 'utf-8':
  10967. return utf8Write(this, string, offset, length)
  10968. case 'ascii':
  10969. return asciiWrite(this, string, offset, length)
  10970. case 'latin1':
  10971. case 'binary':
  10972. return latin1Write(this, string, offset, length)
  10973. case 'base64':
  10974. // Warning: maxLength not taken into account in base64Write
  10975. return base64Write(this, string, offset, length)
  10976. case 'ucs2':
  10977. case 'ucs-2':
  10978. case 'utf16le':
  10979. case 'utf-16le':
  10980. return ucs2Write(this, string, offset, length)
  10981. default:
  10982. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  10983. encoding = ('' + encoding).toLowerCase()
  10984. loweredCase = true
  10985. }
  10986. }
  10987. }
  10988. Buffer.prototype.toJSON = function toJSON () {
  10989. return {
  10990. type: 'Buffer',
  10991. data: Array.prototype.slice.call(this._arr || this, 0)
  10992. }
  10993. }
  10994. function base64Slice (buf, start, end) {
  10995. if (start === 0 && end === buf.length) {
  10996. return base64.fromByteArray(buf)
  10997. } else {
  10998. return base64.fromByteArray(buf.slice(start, end))
  10999. }
  11000. }
  11001. function utf8Slice (buf, start, end) {
  11002. end = Math.min(buf.length, end)
  11003. var res = []
  11004. var i = start
  11005. while (i < end) {
  11006. var firstByte = buf[i]
  11007. var codePoint = null
  11008. var bytesPerSequence = (firstByte > 0xEF) ? 4
  11009. : (firstByte > 0xDF) ? 3
  11010. : (firstByte > 0xBF) ? 2
  11011. : 1
  11012. if (i + bytesPerSequence <= end) {
  11013. var secondByte, thirdByte, fourthByte, tempCodePoint
  11014. switch (bytesPerSequence) {
  11015. case 1:
  11016. if (firstByte < 0x80) {
  11017. codePoint = firstByte
  11018. }
  11019. break
  11020. case 2:
  11021. secondByte = buf[i + 1]
  11022. if ((secondByte & 0xC0) === 0x80) {
  11023. tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
  11024. if (tempCodePoint > 0x7F) {
  11025. codePoint = tempCodePoint
  11026. }
  11027. }
  11028. break
  11029. case 3:
  11030. secondByte = buf[i + 1]
  11031. thirdByte = buf[i + 2]
  11032. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
  11033. tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
  11034. if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
  11035. codePoint = tempCodePoint
  11036. }
  11037. }
  11038. break
  11039. case 4:
  11040. secondByte = buf[i + 1]
  11041. thirdByte = buf[i + 2]
  11042. fourthByte = buf[i + 3]
  11043. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
  11044. tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
  11045. if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
  11046. codePoint = tempCodePoint
  11047. }
  11048. }
  11049. }
  11050. }
  11051. if (codePoint === null) {
  11052. // we did not generate a valid codePoint so insert a
  11053. // replacement char (U+FFFD) and advance only 1 byte
  11054. codePoint = 0xFFFD
  11055. bytesPerSequence = 1
  11056. } else if (codePoint > 0xFFFF) {
  11057. // encode to utf16 (surrogate pair dance)
  11058. codePoint -= 0x10000
  11059. res.push(codePoint >>> 10 & 0x3FF | 0xD800)
  11060. codePoint = 0xDC00 | codePoint & 0x3FF
  11061. }
  11062. res.push(codePoint)
  11063. i += bytesPerSequence
  11064. }
  11065. return decodeCodePointsArray(res)
  11066. }
  11067. // Based on http://stackoverflow.com/a/22747272/680742, the browser with
  11068. // the lowest limit is Chrome, with 0x10000 args.
  11069. // We go 1 magnitude less, for safety
  11070. var MAX_ARGUMENTS_LENGTH = 0x1000
  11071. function decodeCodePointsArray (codePoints) {
  11072. var len = codePoints.length
  11073. if (len <= MAX_ARGUMENTS_LENGTH) {
  11074. return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
  11075. }
  11076. // Decode in chunks to avoid "call stack size exceeded".
  11077. var res = ''
  11078. var i = 0
  11079. while (i < len) {
  11080. res += String.fromCharCode.apply(
  11081. String,
  11082. codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
  11083. )
  11084. }
  11085. return res
  11086. }
  11087. function asciiSlice (buf, start, end) {
  11088. var ret = ''
  11089. end = Math.min(buf.length, end)
  11090. for (var i = start; i < end; ++i) {
  11091. ret += String.fromCharCode(buf[i] & 0x7F)
  11092. }
  11093. return ret
  11094. }
  11095. function latin1Slice (buf, start, end) {
  11096. var ret = ''
  11097. end = Math.min(buf.length, end)
  11098. for (var i = start; i < end; ++i) {
  11099. ret += String.fromCharCode(buf[i])
  11100. }
  11101. return ret
  11102. }
  11103. function hexSlice (buf, start, end) {
  11104. var len = buf.length
  11105. if (!start || start < 0) start = 0
  11106. if (!end || end < 0 || end > len) end = len
  11107. var out = ''
  11108. for (var i = start; i < end; ++i) {
  11109. out += toHex(buf[i])
  11110. }
  11111. return out
  11112. }
  11113. function utf16leSlice (buf, start, end) {
  11114. var bytes = buf.slice(start, end)
  11115. var res = ''
  11116. for (var i = 0; i < bytes.length; i += 2) {
  11117. res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
  11118. }
  11119. return res
  11120. }
  11121. Buffer.prototype.slice = function slice (start, end) {
  11122. var len = this.length
  11123. start = ~~start
  11124. end = end === undefined ? len : ~~end
  11125. if (start < 0) {
  11126. start += len
  11127. if (start < 0) start = 0
  11128. } else if (start > len) {
  11129. start = len
  11130. }
  11131. if (end < 0) {
  11132. end += len
  11133. if (end < 0) end = 0
  11134. } else if (end > len) {
  11135. end = len
  11136. }
  11137. if (end < start) end = start
  11138. var newBuf
  11139. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11140. newBuf = this.subarray(start, end)
  11141. newBuf.__proto__ = Buffer.prototype
  11142. } else {
  11143. var sliceLen = end - start
  11144. newBuf = new Buffer(sliceLen, undefined)
  11145. for (var i = 0; i < sliceLen; ++i) {
  11146. newBuf[i] = this[i + start]
  11147. }
  11148. }
  11149. return newBuf
  11150. }
  11151. /*
  11152. * Need to make sure that buffer isn't trying to write out of bounds.
  11153. */
  11154. function checkOffset (offset, ext, length) {
  11155. if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
  11156. if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
  11157. }
  11158. Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
  11159. offset = offset | 0
  11160. byteLength = byteLength | 0
  11161. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11162. var val = this[offset]
  11163. var mul = 1
  11164. var i = 0
  11165. while (++i < byteLength && (mul *= 0x100)) {
  11166. val += this[offset + i] * mul
  11167. }
  11168. return val
  11169. }
  11170. Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
  11171. offset = offset | 0
  11172. byteLength = byteLength | 0
  11173. if (!noAssert) {
  11174. checkOffset(offset, byteLength, this.length)
  11175. }
  11176. var val = this[offset + --byteLength]
  11177. var mul = 1
  11178. while (byteLength > 0 && (mul *= 0x100)) {
  11179. val += this[offset + --byteLength] * mul
  11180. }
  11181. return val
  11182. }
  11183. Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
  11184. if (!noAssert) checkOffset(offset, 1, this.length)
  11185. return this[offset]
  11186. }
  11187. Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  11188. if (!noAssert) checkOffset(offset, 2, this.length)
  11189. return this[offset] | (this[offset + 1] << 8)
  11190. }
  11191. Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  11192. if (!noAssert) checkOffset(offset, 2, this.length)
  11193. return (this[offset] << 8) | this[offset + 1]
  11194. }
  11195. Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  11196. if (!noAssert) checkOffset(offset, 4, this.length)
  11197. return ((this[offset]) |
  11198. (this[offset + 1] << 8) |
  11199. (this[offset + 2] << 16)) +
  11200. (this[offset + 3] * 0x1000000)
  11201. }
  11202. Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
  11203. if (!noAssert) checkOffset(offset, 4, this.length)
  11204. return (this[offset] * 0x1000000) +
  11205. ((this[offset + 1] << 16) |
  11206. (this[offset + 2] << 8) |
  11207. this[offset + 3])
  11208. }
  11209. Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
  11210. offset = offset | 0
  11211. byteLength = byteLength | 0
  11212. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11213. var val = this[offset]
  11214. var mul = 1
  11215. var i = 0
  11216. while (++i < byteLength && (mul *= 0x100)) {
  11217. val += this[offset + i] * mul
  11218. }
  11219. mul *= 0x80
  11220. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11221. return val
  11222. }
  11223. Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
  11224. offset = offset | 0
  11225. byteLength = byteLength | 0
  11226. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11227. var i = byteLength
  11228. var mul = 1
  11229. var val = this[offset + --i]
  11230. while (i > 0 && (mul *= 0x100)) {
  11231. val += this[offset + --i] * mul
  11232. }
  11233. mul *= 0x80
  11234. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11235. return val
  11236. }
  11237. Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
  11238. if (!noAssert) checkOffset(offset, 1, this.length)
  11239. if (!(this[offset] & 0x80)) return (this[offset])
  11240. return ((0xff - this[offset] + 1) * -1)
  11241. }
  11242. Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
  11243. if (!noAssert) checkOffset(offset, 2, this.length)
  11244. var val = this[offset] | (this[offset + 1] << 8)
  11245. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11246. }
  11247. Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
  11248. if (!noAssert) checkOffset(offset, 2, this.length)
  11249. var val = this[offset + 1] | (this[offset] << 8)
  11250. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11251. }
  11252. Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
  11253. if (!noAssert) checkOffset(offset, 4, this.length)
  11254. return (this[offset]) |
  11255. (this[offset + 1] << 8) |
  11256. (this[offset + 2] << 16) |
  11257. (this[offset + 3] << 24)
  11258. }
  11259. Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
  11260. if (!noAssert) checkOffset(offset, 4, this.length)
  11261. return (this[offset] << 24) |
  11262. (this[offset + 1] << 16) |
  11263. (this[offset + 2] << 8) |
  11264. (this[offset + 3])
  11265. }
  11266. Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  11267. if (!noAssert) checkOffset(offset, 4, this.length)
  11268. return ieee754.read(this, offset, true, 23, 4)
  11269. }
  11270. Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  11271. if (!noAssert) checkOffset(offset, 4, this.length)
  11272. return ieee754.read(this, offset, false, 23, 4)
  11273. }
  11274. Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  11275. if (!noAssert) checkOffset(offset, 8, this.length)
  11276. return ieee754.read(this, offset, true, 52, 8)
  11277. }
  11278. Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  11279. if (!noAssert) checkOffset(offset, 8, this.length)
  11280. return ieee754.read(this, offset, false, 52, 8)
  11281. }
  11282. function checkInt (buf, value, offset, ext, max, min) {
  11283. if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
  11284. if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
  11285. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  11286. }
  11287. Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
  11288. value = +value
  11289. offset = offset | 0
  11290. byteLength = byteLength | 0
  11291. if (!noAssert) {
  11292. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11293. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11294. }
  11295. var mul = 1
  11296. var i = 0
  11297. this[offset] = value & 0xFF
  11298. while (++i < byteLength && (mul *= 0x100)) {
  11299. this[offset + i] = (value / mul) & 0xFF
  11300. }
  11301. return offset + byteLength
  11302. }
  11303. Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
  11304. value = +value
  11305. offset = offset | 0
  11306. byteLength = byteLength | 0
  11307. if (!noAssert) {
  11308. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11309. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11310. }
  11311. var i = byteLength - 1
  11312. var mul = 1
  11313. this[offset + i] = value & 0xFF
  11314. while (--i >= 0 && (mul *= 0x100)) {
  11315. this[offset + i] = (value / mul) & 0xFF
  11316. }
  11317. return offset + byteLength
  11318. }
  11319. Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
  11320. value = +value
  11321. offset = offset | 0
  11322. if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
  11323. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  11324. this[offset] = (value & 0xff)
  11325. return offset + 1
  11326. }
  11327. function objectWriteUInt16 (buf, value, offset, littleEndian) {
  11328. if (value < 0) value = 0xffff + value + 1
  11329. for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
  11330. buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
  11331. (littleEndian ? i : 1 - i) * 8
  11332. }
  11333. }
  11334. Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  11335. value = +value
  11336. offset = offset | 0
  11337. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  11338. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11339. this[offset] = (value & 0xff)
  11340. this[offset + 1] = (value >>> 8)
  11341. } else {
  11342. objectWriteUInt16(this, value, offset, true)
  11343. }
  11344. return offset + 2
  11345. }
  11346. Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
  11347. value = +value
  11348. offset = offset | 0
  11349. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  11350. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11351. this[offset] = (value >>> 8)
  11352. this[offset + 1] = (value & 0xff)
  11353. } else {
  11354. objectWriteUInt16(this, value, offset, false)
  11355. }
  11356. return offset + 2
  11357. }
  11358. function objectWriteUInt32 (buf, value, offset, littleEndian) {
  11359. if (value < 0) value = 0xffffffff + value + 1
  11360. for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
  11361. buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  11362. }
  11363. }
  11364. Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  11365. value = +value
  11366. offset = offset | 0
  11367. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  11368. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11369. this[offset + 3] = (value >>> 24)
  11370. this[offset + 2] = (value >>> 16)
  11371. this[offset + 1] = (value >>> 8)
  11372. this[offset] = (value & 0xff)
  11373. } else {
  11374. objectWriteUInt32(this, value, offset, true)
  11375. }
  11376. return offset + 4
  11377. }
  11378. Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
  11379. value = +value
  11380. offset = offset | 0
  11381. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  11382. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11383. this[offset] = (value >>> 24)
  11384. this[offset + 1] = (value >>> 16)
  11385. this[offset + 2] = (value >>> 8)
  11386. this[offset + 3] = (value & 0xff)
  11387. } else {
  11388. objectWriteUInt32(this, value, offset, false)
  11389. }
  11390. return offset + 4
  11391. }
  11392. Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
  11393. value = +value
  11394. offset = offset | 0
  11395. if (!noAssert) {
  11396. var limit = Math.pow(2, 8 * byteLength - 1)
  11397. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  11398. }
  11399. var i = 0
  11400. var mul = 1
  11401. var sub = 0
  11402. this[offset] = value & 0xFF
  11403. while (++i < byteLength && (mul *= 0x100)) {
  11404. if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
  11405. sub = 1
  11406. }
  11407. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  11408. }
  11409. return offset + byteLength
  11410. }
  11411. Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
  11412. value = +value
  11413. offset = offset | 0
  11414. if (!noAssert) {
  11415. var limit = Math.pow(2, 8 * byteLength - 1)
  11416. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  11417. }
  11418. var i = byteLength - 1
  11419. var mul = 1
  11420. var sub = 0
  11421. this[offset + i] = value & 0xFF
  11422. while (--i >= 0 && (mul *= 0x100)) {
  11423. if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
  11424. sub = 1
  11425. }
  11426. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  11427. }
  11428. return offset + byteLength
  11429. }
  11430. Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
  11431. value = +value
  11432. offset = offset | 0
  11433. if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
  11434. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  11435. if (value < 0) value = 0xff + value + 1
  11436. this[offset] = (value & 0xff)
  11437. return offset + 1
  11438. }
  11439. Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
  11440. value = +value
  11441. offset = offset | 0
  11442. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  11443. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11444. this[offset] = (value & 0xff)
  11445. this[offset + 1] = (value >>> 8)
  11446. } else {
  11447. objectWriteUInt16(this, value, offset, true)
  11448. }
  11449. return offset + 2
  11450. }
  11451. Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
  11452. value = +value
  11453. offset = offset | 0
  11454. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  11455. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11456. this[offset] = (value >>> 8)
  11457. this[offset + 1] = (value & 0xff)
  11458. } else {
  11459. objectWriteUInt16(this, value, offset, false)
  11460. }
  11461. return offset + 2
  11462. }
  11463. Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
  11464. value = +value
  11465. offset = offset | 0
  11466. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  11467. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11468. this[offset] = (value & 0xff)
  11469. this[offset + 1] = (value >>> 8)
  11470. this[offset + 2] = (value >>> 16)
  11471. this[offset + 3] = (value >>> 24)
  11472. } else {
  11473. objectWriteUInt32(this, value, offset, true)
  11474. }
  11475. return offset + 4
  11476. }
  11477. Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
  11478. value = +value
  11479. offset = offset | 0
  11480. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  11481. if (value < 0) value = 0xffffffff + value + 1
  11482. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11483. this[offset] = (value >>> 24)
  11484. this[offset + 1] = (value >>> 16)
  11485. this[offset + 2] = (value >>> 8)
  11486. this[offset + 3] = (value & 0xff)
  11487. } else {
  11488. objectWriteUInt32(this, value, offset, false)
  11489. }
  11490. return offset + 4
  11491. }
  11492. function checkIEEE754 (buf, value, offset, ext, max, min) {
  11493. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  11494. if (offset < 0) throw new RangeError('Index out of range')
  11495. }
  11496. function writeFloat (buf, value, offset, littleEndian, noAssert) {
  11497. if (!noAssert) {
  11498. checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
  11499. }
  11500. ieee754.write(buf, value, offset, littleEndian, 23, 4)
  11501. return offset + 4
  11502. }
  11503. Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
  11504. return writeFloat(this, value, offset, true, noAssert)
  11505. }
  11506. Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
  11507. return writeFloat(this, value, offset, false, noAssert)
  11508. }
  11509. function writeDouble (buf, value, offset, littleEndian, noAssert) {
  11510. if (!noAssert) {
  11511. checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
  11512. }
  11513. ieee754.write(buf, value, offset, littleEndian, 52, 8)
  11514. return offset + 8
  11515. }
  11516. Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
  11517. return writeDouble(this, value, offset, true, noAssert)
  11518. }
  11519. Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
  11520. return writeDouble(this, value, offset, false, noAssert)
  11521. }
  11522. // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
  11523. Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  11524. if (!start) start = 0
  11525. if (!end && end !== 0) end = this.length
  11526. if (targetStart >= target.length) targetStart = target.length
  11527. if (!targetStart) targetStart = 0
  11528. if (end > 0 && end < start) end = start
  11529. // Copy 0 bytes; we're done
  11530. if (end === start) return 0
  11531. if (target.length === 0 || this.length === 0) return 0
  11532. // Fatal error conditions
  11533. if (targetStart < 0) {
  11534. throw new RangeError('targetStart out of bounds')
  11535. }
  11536. if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
  11537. if (end < 0) throw new RangeError('sourceEnd out of bounds')
  11538. // Are we oob?
  11539. if (end > this.length) end = this.length
  11540. if (target.length - targetStart < end - start) {
  11541. end = target.length - targetStart + start
  11542. }
  11543. var len = end - start
  11544. var i
  11545. if (this === target && start < targetStart && targetStart < end) {
  11546. // descending copy from end
  11547. for (i = len - 1; i >= 0; --i) {
  11548. target[i + targetStart] = this[i + start]
  11549. }
  11550. } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
  11551. // ascending copy from start
  11552. for (i = 0; i < len; ++i) {
  11553. target[i + targetStart] = this[i + start]
  11554. }
  11555. } else {
  11556. Uint8Array.prototype.set.call(
  11557. target,
  11558. this.subarray(start, start + len),
  11559. targetStart
  11560. )
  11561. }
  11562. return len
  11563. }
  11564. // Usage:
  11565. // buffer.fill(number[, offset[, end]])
  11566. // buffer.fill(buffer[, offset[, end]])
  11567. // buffer.fill(string[, offset[, end]][, encoding])
  11568. Buffer.prototype.fill = function fill (val, start, end, encoding) {
  11569. // Handle string cases:
  11570. if (typeof val === 'string') {
  11571. if (typeof start === 'string') {
  11572. encoding = start
  11573. start = 0
  11574. end = this.length
  11575. } else if (typeof end === 'string') {
  11576. encoding = end
  11577. end = this.length
  11578. }
  11579. if (val.length === 1) {
  11580. var code = val.charCodeAt(0)
  11581. if (code < 256) {
  11582. val = code
  11583. }
  11584. }
  11585. if (encoding !== undefined && typeof encoding !== 'string') {
  11586. throw new TypeError('encoding must be a string')
  11587. }
  11588. if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
  11589. throw new TypeError('Unknown encoding: ' + encoding)
  11590. }
  11591. } else if (typeof val === 'number') {
  11592. val = val & 255
  11593. }
  11594. // Invalid ranges are not set to a default, so can range check early.
  11595. if (start < 0 || this.length < start || this.length < end) {
  11596. throw new RangeError('Out of range index')
  11597. }
  11598. if (end <= start) {
  11599. return this
  11600. }
  11601. start = start >>> 0
  11602. end = end === undefined ? this.length : end >>> 0
  11603. if (!val) val = 0
  11604. var i
  11605. if (typeof val === 'number') {
  11606. for (i = start; i < end; ++i) {
  11607. this[i] = val
  11608. }
  11609. } else {
  11610. var bytes = Buffer.isBuffer(val)
  11611. ? val
  11612. : utf8ToBytes(new Buffer(val, encoding).toString())
  11613. var len = bytes.length
  11614. for (i = 0; i < end - start; ++i) {
  11615. this[i + start] = bytes[i % len]
  11616. }
  11617. }
  11618. return this
  11619. }
  11620. // HELPER FUNCTIONS
  11621. // ================
  11622. var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
  11623. function base64clean (str) {
  11624. // Node strips out invalid characters like \n and \t from the string, base64-js does not
  11625. str = stringtrim(str).replace(INVALID_BASE64_RE, '')
  11626. // Node converts strings with length < 2 to ''
  11627. if (str.length < 2) return ''
  11628. // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
  11629. while (str.length % 4 !== 0) {
  11630. str = str + '='
  11631. }
  11632. return str
  11633. }
  11634. function stringtrim (str) {
  11635. if (str.trim) return str.trim()
  11636. return str.replace(/^\s+|\s+$/g, '')
  11637. }
  11638. function toHex (n) {
  11639. if (n < 16) return '0' + n.toString(16)
  11640. return n.toString(16)
  11641. }
  11642. function utf8ToBytes (string, units) {
  11643. units = units || Infinity
  11644. var codePoint
  11645. var length = string.length
  11646. var leadSurrogate = null
  11647. var bytes = []
  11648. for (var i = 0; i < length; ++i) {
  11649. codePoint = string.charCodeAt(i)
  11650. // is surrogate component
  11651. if (codePoint > 0xD7FF && codePoint < 0xE000) {
  11652. // last char was a lead
  11653. if (!leadSurrogate) {
  11654. // no lead yet
  11655. if (codePoint > 0xDBFF) {
  11656. // unexpected trail
  11657. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11658. continue
  11659. } else if (i + 1 === length) {
  11660. // unpaired lead
  11661. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11662. continue
  11663. }
  11664. // valid lead
  11665. leadSurrogate = codePoint
  11666. continue
  11667. }
  11668. // 2 leads in a row
  11669. if (codePoint < 0xDC00) {
  11670. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11671. leadSurrogate = codePoint
  11672. continue
  11673. }
  11674. // valid surrogate pair
  11675. codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
  11676. } else if (leadSurrogate) {
  11677. // valid bmp char, but last char was a lead
  11678. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11679. }
  11680. leadSurrogate = null
  11681. // encode utf8
  11682. if (codePoint < 0x80) {
  11683. if ((units -= 1) < 0) break
  11684. bytes.push(codePoint)
  11685. } else if (codePoint < 0x800) {
  11686. if ((units -= 2) < 0) break
  11687. bytes.push(
  11688. codePoint >> 0x6 | 0xC0,
  11689. codePoint & 0x3F | 0x80
  11690. )
  11691. } else if (codePoint < 0x10000) {
  11692. if ((units -= 3) < 0) break
  11693. bytes.push(
  11694. codePoint >> 0xC | 0xE0,
  11695. codePoint >> 0x6 & 0x3F | 0x80,
  11696. codePoint & 0x3F | 0x80
  11697. )
  11698. } else if (codePoint < 0x110000) {
  11699. if ((units -= 4) < 0) break
  11700. bytes.push(
  11701. codePoint >> 0x12 | 0xF0,
  11702. codePoint >> 0xC & 0x3F | 0x80,
  11703. codePoint >> 0x6 & 0x3F | 0x80,
  11704. codePoint & 0x3F | 0x80
  11705. )
  11706. } else {
  11707. throw new Error('Invalid code point')
  11708. }
  11709. }
  11710. return bytes
  11711. }
  11712. function asciiToBytes (str) {
  11713. var byteArray = []
  11714. for (var i = 0; i < str.length; ++i) {
  11715. // Node's code seems to be doing this and not & 0x7F..
  11716. byteArray.push(str.charCodeAt(i) & 0xFF)
  11717. }
  11718. return byteArray
  11719. }
  11720. function utf16leToBytes (str, units) {
  11721. var c, hi, lo
  11722. var byteArray = []
  11723. for (var i = 0; i < str.length; ++i) {
  11724. if ((units -= 2) < 0) break
  11725. c = str.charCodeAt(i)
  11726. hi = c >> 8
  11727. lo = c % 256
  11728. byteArray.push(lo)
  11729. byteArray.push(hi)
  11730. }
  11731. return byteArray
  11732. }
  11733. function base64ToBytes (str) {
  11734. return base64.toByteArray(base64clean(str))
  11735. }
  11736. function blitBuffer (src, dst, offset, length) {
  11737. for (var i = 0; i < length; ++i) {
  11738. if ((i + offset >= dst.length) || (i >= src.length)) break
  11739. dst[i + offset] = src[i]
  11740. }
  11741. return i
  11742. }
  11743. function isnan (val) {
  11744. return val !== val // eslint-disable-line no-self-compare
  11745. }
  11746. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 3)))
  11747. /***/ }),
  11748. /* 51 */
  11749. /*!*****************************************!*\
  11750. !*** ./node_modules/base64-js/index.js ***!
  11751. \*****************************************/
  11752. /*! no static exports found */
  11753. /***/ (function(module, exports, __webpack_require__) {
  11754. "use strict";
  11755. exports.byteLength = byteLength
  11756. exports.toByteArray = toByteArray
  11757. exports.fromByteArray = fromByteArray
  11758. var lookup = []
  11759. var revLookup = []
  11760. var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
  11761. var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  11762. for (var i = 0, len = code.length; i < len; ++i) {
  11763. lookup[i] = code[i]
  11764. revLookup[code.charCodeAt(i)] = i
  11765. }
  11766. // Support decoding URL-safe base64 strings, as Node.js does.
  11767. // See: https://en.wikipedia.org/wiki/Base64#URL_applications
  11768. revLookup['-'.charCodeAt(0)] = 62
  11769. revLookup['_'.charCodeAt(0)] = 63
  11770. function getLens (b64) {
  11771. var len = b64.length
  11772. if (len % 4 > 0) {
  11773. throw new Error('Invalid string. Length must be a multiple of 4')
  11774. }
  11775. // Trim off extra bytes after placeholder bytes are found
  11776. // See: https://github.com/beatgammit/base64-js/issues/42
  11777. var validLen = b64.indexOf('=')
  11778. if (validLen === -1) validLen = len
  11779. var placeHoldersLen = validLen === len
  11780. ? 0
  11781. : 4 - (validLen % 4)
  11782. return [validLen, placeHoldersLen]
  11783. }
  11784. // base64 is 4/3 + up to two characters of the original data
  11785. function byteLength (b64) {
  11786. var lens = getLens(b64)
  11787. var validLen = lens[0]
  11788. var placeHoldersLen = lens[1]
  11789. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  11790. }
  11791. function _byteLength (b64, validLen, placeHoldersLen) {
  11792. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  11793. }
  11794. function toByteArray (b64) {
  11795. var tmp
  11796. var lens = getLens(b64)
  11797. var validLen = lens[0]
  11798. var placeHoldersLen = lens[1]
  11799. var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
  11800. var curByte = 0
  11801. // if there are placeholders, only get up to the last complete 4 chars
  11802. var len = placeHoldersLen > 0
  11803. ? validLen - 4
  11804. : validLen
  11805. var i
  11806. for (i = 0; i < len; i += 4) {
  11807. tmp =
  11808. (revLookup[b64.charCodeAt(i)] << 18) |
  11809. (revLookup[b64.charCodeAt(i + 1)] << 12) |
  11810. (revLookup[b64.charCodeAt(i + 2)] << 6) |
  11811. revLookup[b64.charCodeAt(i + 3)]
  11812. arr[curByte++] = (tmp >> 16) & 0xFF
  11813. arr[curByte++] = (tmp >> 8) & 0xFF
  11814. arr[curByte++] = tmp & 0xFF
  11815. }
  11816. if (placeHoldersLen === 2) {
  11817. tmp =
  11818. (revLookup[b64.charCodeAt(i)] << 2) |
  11819. (revLookup[b64.charCodeAt(i + 1)] >> 4)
  11820. arr[curByte++] = tmp & 0xFF
  11821. }
  11822. if (placeHoldersLen === 1) {
  11823. tmp =
  11824. (revLookup[b64.charCodeAt(i)] << 10) |
  11825. (revLookup[b64.charCodeAt(i + 1)] << 4) |
  11826. (revLookup[b64.charCodeAt(i + 2)] >> 2)
  11827. arr[curByte++] = (tmp >> 8) & 0xFF
  11828. arr[curByte++] = tmp & 0xFF
  11829. }
  11830. return arr
  11831. }
  11832. function tripletToBase64 (num) {
  11833. return lookup[num >> 18 & 0x3F] +
  11834. lookup[num >> 12 & 0x3F] +
  11835. lookup[num >> 6 & 0x3F] +
  11836. lookup[num & 0x3F]
  11837. }
  11838. function encodeChunk (uint8, start, end) {
  11839. var tmp
  11840. var output = []
  11841. for (var i = start; i < end; i += 3) {
  11842. tmp =
  11843. ((uint8[i] << 16) & 0xFF0000) +
  11844. ((uint8[i + 1] << 8) & 0xFF00) +
  11845. (uint8[i + 2] & 0xFF)
  11846. output.push(tripletToBase64(tmp))
  11847. }
  11848. return output.join('')
  11849. }
  11850. function fromByteArray (uint8) {
  11851. var tmp
  11852. var len = uint8.length
  11853. var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
  11854. var parts = []
  11855. var maxChunkLength = 16383 // must be multiple of 3
  11856. // go through the array every three bytes, we'll deal with trailing stuff later
  11857. for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
  11858. parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
  11859. }
  11860. // pad the end with zeros, but make sure to not forget the extra bytes
  11861. if (extraBytes === 1) {
  11862. tmp = uint8[len - 1]
  11863. parts.push(
  11864. lookup[tmp >> 2] +
  11865. lookup[(tmp << 4) & 0x3F] +
  11866. '=='
  11867. )
  11868. } else if (extraBytes === 2) {
  11869. tmp = (uint8[len - 2] << 8) + uint8[len - 1]
  11870. parts.push(
  11871. lookup[tmp >> 10] +
  11872. lookup[(tmp >> 4) & 0x3F] +
  11873. lookup[(tmp << 2) & 0x3F] +
  11874. '='
  11875. )
  11876. }
  11877. return parts.join('')
  11878. }
  11879. /***/ }),
  11880. /* 52 */
  11881. /*!***************************************!*\
  11882. !*** ./node_modules/ieee754/index.js ***!
  11883. \***************************************/
  11884. /*! no static exports found */
  11885. /***/ (function(module, exports) {
  11886. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  11887. exports.read = function (buffer, offset, isLE, mLen, nBytes) {
  11888. var e, m
  11889. var eLen = (nBytes * 8) - mLen - 1
  11890. var eMax = (1 << eLen) - 1
  11891. var eBias = eMax >> 1
  11892. var nBits = -7
  11893. var i = isLE ? (nBytes - 1) : 0
  11894. var d = isLE ? -1 : 1
  11895. var s = buffer[offset + i]
  11896. i += d
  11897. e = s & ((1 << (-nBits)) - 1)
  11898. s >>= (-nBits)
  11899. nBits += eLen
  11900. for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  11901. m = e & ((1 << (-nBits)) - 1)
  11902. e >>= (-nBits)
  11903. nBits += mLen
  11904. for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  11905. if (e === 0) {
  11906. e = 1 - eBias
  11907. } else if (e === eMax) {
  11908. return m ? NaN : ((s ? -1 : 1) * Infinity)
  11909. } else {
  11910. m = m + Math.pow(2, mLen)
  11911. e = e - eBias
  11912. }
  11913. return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
  11914. }
  11915. exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
  11916. var e, m, c
  11917. var eLen = (nBytes * 8) - mLen - 1
  11918. var eMax = (1 << eLen) - 1
  11919. var eBias = eMax >> 1
  11920. var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
  11921. var i = isLE ? 0 : (nBytes - 1)
  11922. var d = isLE ? 1 : -1
  11923. var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
  11924. value = Math.abs(value)
  11925. if (isNaN(value) || value === Infinity) {
  11926. m = isNaN(value) ? 1 : 0
  11927. e = eMax
  11928. } else {
  11929. e = Math.floor(Math.log(value) / Math.LN2)
  11930. if (value * (c = Math.pow(2, -e)) < 1) {
  11931. e--
  11932. c *= 2
  11933. }
  11934. if (e + eBias >= 1) {
  11935. value += rt / c
  11936. } else {
  11937. value += rt * Math.pow(2, 1 - eBias)
  11938. }
  11939. if (value * c >= 2) {
  11940. e++
  11941. c /= 2
  11942. }
  11943. if (e + eBias >= eMax) {
  11944. m = 0
  11945. e = eMax
  11946. } else if (e + eBias >= 1) {
  11947. m = ((value * c) - 1) * Math.pow(2, mLen)
  11948. e = e + eBias
  11949. } else {
  11950. m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
  11951. e = 0
  11952. }
  11953. }
  11954. for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
  11955. e = (e << mLen) | m
  11956. eLen += mLen
  11957. for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
  11958. buffer[offset + i - d] |= s * 128
  11959. }
  11960. /***/ }),
  11961. /* 53 */
  11962. /*!***************************************!*\
  11963. !*** ./node_modules/isarray/index.js ***!
  11964. \***************************************/
  11965. /*! no static exports found */
  11966. /***/ (function(module, exports) {
  11967. var toString = {}.toString;
  11968. module.exports = Array.isArray || function (arr) {
  11969. return toString.call(arr) == '[object Array]';
  11970. };
  11971. /***/ }),
  11972. /* 54 */
  11973. /*!*********************************************************************************!*\
  11974. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/util/route.js ***!
  11975. \*********************************************************************************/
  11976. /*! no static exports found */
  11977. /***/ (function(module, exports, __webpack_require__) {
  11978. "use strict";
  11979. /* WEBPACK VAR INJECTION */(function(uni) {
  11980. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  11981. Object.defineProperty(exports, "__esModule", {
  11982. value: true
  11983. });
  11984. exports.default = void 0;
  11985. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 55));
  11986. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 57));
  11987. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  11988. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  11989. /**
  11990. * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
  11991. * 并且带有路由拦截功能
  11992. */
  11993. var Router = /*#__PURE__*/function () {
  11994. function Router() {
  11995. (0, _classCallCheck2.default)(this, Router);
  11996. // 原始属性定义
  11997. this.config = {
  11998. type: 'navigateTo',
  11999. url: '',
  12000. delta: 1,
  12001. // navigateBack页面后退时,回退的层数
  12002. params: {},
  12003. // 传递的参数
  12004. animationType: 'pop-in',
  12005. // 窗口动画,只在APP有效
  12006. animationDuration: 300,
  12007. // 窗口动画持续时间,单位毫秒,只在APP有效
  12008. intercept: false // 是否需要拦截
  12009. };
  12010. // 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
  12011. // 这里在构造函数中进行this绑定
  12012. this.route = this.route.bind(this);
  12013. }
  12014. // 判断url前面是否有"/",如果没有则加上,否则无法跳转
  12015. (0, _createClass2.default)(Router, [{
  12016. key: "addRootPath",
  12017. value: function addRootPath(url) {
  12018. return url[0] === '/' ? url : "/".concat(url);
  12019. }
  12020. // 整合路由参数
  12021. }, {
  12022. key: "mixinParam",
  12023. value: function mixinParam(url, params) {
  12024. url = url && this.addRootPath(url);
  12025. // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
  12026. // 如果有url中有get参数,转换后无需带上"?"
  12027. var query = '';
  12028. if (/.*\/.*\?.*=.*/.test(url)) {
  12029. // object对象转为get类型的参数
  12030. query = uni.$u.queryParams(params, false);
  12031. // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
  12032. return url += "&".concat(query);
  12033. }
  12034. // 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
  12035. query = uni.$u.queryParams(params);
  12036. return url += query;
  12037. }
  12038. // 对外的方法名称
  12039. }, {
  12040. key: "route",
  12041. value: function () {
  12042. var _route = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  12043. var options,
  12044. params,
  12045. mergeConfig,
  12046. isNext,
  12047. _args = arguments;
  12048. return _regenerator.default.wrap(function _callee$(_context) {
  12049. while (1) {
  12050. switch (_context.prev = _context.next) {
  12051. case 0:
  12052. options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
  12053. params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
  12054. // 合并用户的配置和内部的默认配置
  12055. mergeConfig = {};
  12056. if (typeof options === 'string') {
  12057. // 如果options为字符串,则为route(url, params)的形式
  12058. mergeConfig.url = this.mixinParam(options, params);
  12059. mergeConfig.type = 'navigateTo';
  12060. } else {
  12061. mergeConfig = uni.$u.deepMerge(options, this.config);
  12062. // 否则正常使用mergeConfig中的url和params进行拼接
  12063. mergeConfig.url = this.mixinParam(options.url, options.params);
  12064. }
  12065. // 如果本次跳转的路径和本页面路径一致,不执行跳转,防止用户快速点击跳转按钮,造成多次跳转同一个页面的问题
  12066. if (!(mergeConfig.url === uni.$u.page())) {
  12067. _context.next = 6;
  12068. break;
  12069. }
  12070. return _context.abrupt("return");
  12071. case 6:
  12072. if (params.intercept) {
  12073. this.config.intercept = params.intercept;
  12074. }
  12075. // params参数也带给拦截器
  12076. mergeConfig.params = params;
  12077. // 合并内外部参数
  12078. mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
  12079. // 判断用户是否定义了拦截器
  12080. if (!(typeof uni.$u.routeIntercept === 'function')) {
  12081. _context.next = 16;
  12082. break;
  12083. }
  12084. _context.next = 12;
  12085. return new Promise(function (resolve, reject) {
  12086. uni.$u.routeIntercept(mergeConfig, resolve);
  12087. });
  12088. case 12:
  12089. isNext = _context.sent;
  12090. // 如果isNext为true,则执行路由跳转
  12091. isNext && this.openPage(mergeConfig);
  12092. _context.next = 17;
  12093. break;
  12094. case 16:
  12095. this.openPage(mergeConfig);
  12096. case 17:
  12097. case "end":
  12098. return _context.stop();
  12099. }
  12100. }
  12101. }, _callee, this);
  12102. }));
  12103. function route() {
  12104. return _route.apply(this, arguments);
  12105. }
  12106. return route;
  12107. }() // 执行路由跳转
  12108. }, {
  12109. key: "openPage",
  12110. value: function openPage(config) {
  12111. // 解构参数
  12112. var url = config.url,
  12113. type = config.type,
  12114. delta = config.delta,
  12115. animationType = config.animationType,
  12116. animationDuration = config.animationDuration;
  12117. if (config.type == 'navigateTo' || config.type == 'to') {
  12118. uni.navigateTo({
  12119. url: url,
  12120. animationType: animationType,
  12121. animationDuration: animationDuration
  12122. });
  12123. }
  12124. if (config.type == 'redirectTo' || config.type == 'redirect') {
  12125. uni.redirectTo({
  12126. url: url
  12127. });
  12128. }
  12129. if (config.type == 'switchTab' || config.type == 'tab') {
  12130. uni.switchTab({
  12131. url: url
  12132. });
  12133. }
  12134. if (config.type == 'reLaunch' || config.type == 'launch') {
  12135. uni.reLaunch({
  12136. url: url
  12137. });
  12138. }
  12139. if (config.type == 'navigateBack' || config.type == 'back') {
  12140. uni.navigateBack({
  12141. delta: delta
  12142. });
  12143. }
  12144. }
  12145. }]);
  12146. return Router;
  12147. }();
  12148. var _default = new Router().route;
  12149. exports.default = _default;
  12150. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  12151. /***/ }),
  12152. /* 55 */
  12153. /*!************************************************************************************************!*\
  12154. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  12155. \************************************************************************************************/
  12156. /*! no static exports found */
  12157. /***/ (function(module, exports, __webpack_require__) {
  12158. // TODO(Babel 8): Remove this file.
  12159. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 56)();
  12160. module.exports = runtime;
  12161. /***/ }),
  12162. /* 56 */
  12163. /*!*******************************************************************!*\
  12164. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  12165. \*******************************************************************/
  12166. /*! no static exports found */
  12167. /***/ (function(module, exports, __webpack_require__) {
  12168. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  12169. function _regeneratorRuntime() {
  12170. "use strict";
  12171. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  12172. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  12173. return exports;
  12174. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12175. var exports = {},
  12176. Op = Object.prototype,
  12177. hasOwn = Op.hasOwnProperty,
  12178. defineProperty = Object.defineProperty || function (obj, key, desc) {
  12179. obj[key] = desc.value;
  12180. },
  12181. $Symbol = "function" == typeof Symbol ? Symbol : {},
  12182. iteratorSymbol = $Symbol.iterator || "@@iterator",
  12183. asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
  12184. toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  12185. function define(obj, key, value) {
  12186. return Object.defineProperty(obj, key, {
  12187. value: value,
  12188. enumerable: !0,
  12189. configurable: !0,
  12190. writable: !0
  12191. }), obj[key];
  12192. }
  12193. try {
  12194. define({}, "");
  12195. } catch (err) {
  12196. define = function define(obj, key, value) {
  12197. return obj[key] = value;
  12198. };
  12199. }
  12200. function wrap(innerFn, outerFn, self, tryLocsList) {
  12201. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
  12202. generator = Object.create(protoGenerator.prototype),
  12203. context = new Context(tryLocsList || []);
  12204. return defineProperty(generator, "_invoke", {
  12205. value: makeInvokeMethod(innerFn, self, context)
  12206. }), generator;
  12207. }
  12208. function tryCatch(fn, obj, arg) {
  12209. try {
  12210. return {
  12211. type: "normal",
  12212. arg: fn.call(obj, arg)
  12213. };
  12214. } catch (err) {
  12215. return {
  12216. type: "throw",
  12217. arg: err
  12218. };
  12219. }
  12220. }
  12221. exports.wrap = wrap;
  12222. var ContinueSentinel = {};
  12223. function Generator() {}
  12224. function GeneratorFunction() {}
  12225. function GeneratorFunctionPrototype() {}
  12226. var IteratorPrototype = {};
  12227. define(IteratorPrototype, iteratorSymbol, function () {
  12228. return this;
  12229. });
  12230. var getProto = Object.getPrototypeOf,
  12231. NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  12232. NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
  12233. var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
  12234. function defineIteratorMethods(prototype) {
  12235. ["next", "throw", "return"].forEach(function (method) {
  12236. define(prototype, method, function (arg) {
  12237. return this._invoke(method, arg);
  12238. });
  12239. });
  12240. }
  12241. function AsyncIterator(generator, PromiseImpl) {
  12242. function invoke(method, arg, resolve, reject) {
  12243. var record = tryCatch(generator[method], generator, arg);
  12244. if ("throw" !== record.type) {
  12245. var result = record.arg,
  12246. value = result.value;
  12247. return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
  12248. invoke("next", value, resolve, reject);
  12249. }, function (err) {
  12250. invoke("throw", err, resolve, reject);
  12251. }) : PromiseImpl.resolve(value).then(function (unwrapped) {
  12252. result.value = unwrapped, resolve(result);
  12253. }, function (error) {
  12254. return invoke("throw", error, resolve, reject);
  12255. });
  12256. }
  12257. reject(record.arg);
  12258. }
  12259. var previousPromise;
  12260. defineProperty(this, "_invoke", {
  12261. value: function value(method, arg) {
  12262. function callInvokeWithMethodAndArg() {
  12263. return new PromiseImpl(function (resolve, reject) {
  12264. invoke(method, arg, resolve, reject);
  12265. });
  12266. }
  12267. return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  12268. }
  12269. });
  12270. }
  12271. function makeInvokeMethod(innerFn, self, context) {
  12272. var state = "suspendedStart";
  12273. return function (method, arg) {
  12274. if ("executing" === state) throw new Error("Generator is already running");
  12275. if ("completed" === state) {
  12276. if ("throw" === method) throw arg;
  12277. return doneResult();
  12278. }
  12279. for (context.method = method, context.arg = arg;;) {
  12280. var delegate = context.delegate;
  12281. if (delegate) {
  12282. var delegateResult = maybeInvokeDelegate(delegate, context);
  12283. if (delegateResult) {
  12284. if (delegateResult === ContinueSentinel) continue;
  12285. return delegateResult;
  12286. }
  12287. }
  12288. if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
  12289. if ("suspendedStart" === state) throw state = "completed", context.arg;
  12290. context.dispatchException(context.arg);
  12291. } else "return" === context.method && context.abrupt("return", context.arg);
  12292. state = "executing";
  12293. var record = tryCatch(innerFn, self, context);
  12294. if ("normal" === record.type) {
  12295. if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
  12296. return {
  12297. value: record.arg,
  12298. done: context.done
  12299. };
  12300. }
  12301. "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
  12302. }
  12303. };
  12304. }
  12305. function maybeInvokeDelegate(delegate, context) {
  12306. var methodName = context.method,
  12307. method = delegate.iterator[methodName];
  12308. 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;
  12309. var record = tryCatch(method, delegate.iterator, context.arg);
  12310. if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
  12311. var info = record.arg;
  12312. 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);
  12313. }
  12314. function pushTryEntry(locs) {
  12315. var entry = {
  12316. tryLoc: locs[0]
  12317. };
  12318. 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
  12319. }
  12320. function resetTryEntry(entry) {
  12321. var record = entry.completion || {};
  12322. record.type = "normal", delete record.arg, entry.completion = record;
  12323. }
  12324. function Context(tryLocsList) {
  12325. this.tryEntries = [{
  12326. tryLoc: "root"
  12327. }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
  12328. }
  12329. function values(iterable) {
  12330. if (iterable) {
  12331. var iteratorMethod = iterable[iteratorSymbol];
  12332. if (iteratorMethod) return iteratorMethod.call(iterable);
  12333. if ("function" == typeof iterable.next) return iterable;
  12334. if (!isNaN(iterable.length)) {
  12335. var i = -1,
  12336. next = function next() {
  12337. for (; ++i < iterable.length;) {
  12338. if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
  12339. }
  12340. return next.value = undefined, next.done = !0, next;
  12341. };
  12342. return next.next = next;
  12343. }
  12344. }
  12345. return {
  12346. next: doneResult
  12347. };
  12348. }
  12349. function doneResult() {
  12350. return {
  12351. value: undefined,
  12352. done: !0
  12353. };
  12354. }
  12355. return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
  12356. value: GeneratorFunctionPrototype,
  12357. configurable: !0
  12358. }), defineProperty(GeneratorFunctionPrototype, "constructor", {
  12359. value: GeneratorFunction,
  12360. configurable: !0
  12361. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
  12362. var ctor = "function" == typeof genFun && genFun.constructor;
  12363. return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
  12364. }, exports.mark = function (genFun) {
  12365. return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
  12366. }, exports.awrap = function (arg) {
  12367. return {
  12368. __await: arg
  12369. };
  12370. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
  12371. return this;
  12372. }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
  12373. void 0 === PromiseImpl && (PromiseImpl = Promise);
  12374. var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
  12375. return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
  12376. return result.done ? result.value : iter.next();
  12377. });
  12378. }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
  12379. return this;
  12380. }), define(Gp, "toString", function () {
  12381. return "[object Generator]";
  12382. }), exports.keys = function (val) {
  12383. var object = Object(val),
  12384. keys = [];
  12385. for (var key in object) {
  12386. keys.push(key);
  12387. }
  12388. return keys.reverse(), function next() {
  12389. for (; keys.length;) {
  12390. var key = keys.pop();
  12391. if (key in object) return next.value = key, next.done = !1, next;
  12392. }
  12393. return next.done = !0, next;
  12394. };
  12395. }, exports.values = values, Context.prototype = {
  12396. constructor: Context,
  12397. reset: function reset(skipTempReset) {
  12398. 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) {
  12399. "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
  12400. }
  12401. },
  12402. stop: function stop() {
  12403. this.done = !0;
  12404. var rootRecord = this.tryEntries[0].completion;
  12405. if ("throw" === rootRecord.type) throw rootRecord.arg;
  12406. return this.rval;
  12407. },
  12408. dispatchException: function dispatchException(exception) {
  12409. if (this.done) throw exception;
  12410. var context = this;
  12411. function handle(loc, caught) {
  12412. return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
  12413. }
  12414. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  12415. var entry = this.tryEntries[i],
  12416. record = entry.completion;
  12417. if ("root" === entry.tryLoc) return handle("end");
  12418. if (entry.tryLoc <= this.prev) {
  12419. var hasCatch = hasOwn.call(entry, "catchLoc"),
  12420. hasFinally = hasOwn.call(entry, "finallyLoc");
  12421. if (hasCatch && hasFinally) {
  12422. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  12423. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  12424. } else if (hasCatch) {
  12425. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  12426. } else {
  12427. if (!hasFinally) throw new Error("try statement without catch or finally");
  12428. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  12429. }
  12430. }
  12431. }
  12432. },
  12433. abrupt: function abrupt(type, arg) {
  12434. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  12435. var entry = this.tryEntries[i];
  12436. if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
  12437. var finallyEntry = entry;
  12438. break;
  12439. }
  12440. }
  12441. finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
  12442. var record = finallyEntry ? finallyEntry.completion : {};
  12443. return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
  12444. },
  12445. complete: function complete(record, afterLoc) {
  12446. if ("throw" === record.type) throw record.arg;
  12447. 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;
  12448. },
  12449. finish: function finish(finallyLoc) {
  12450. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  12451. var entry = this.tryEntries[i];
  12452. if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
  12453. }
  12454. },
  12455. "catch": function _catch(tryLoc) {
  12456. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  12457. var entry = this.tryEntries[i];
  12458. if (entry.tryLoc === tryLoc) {
  12459. var record = entry.completion;
  12460. if ("throw" === record.type) {
  12461. var thrown = record.arg;
  12462. resetTryEntry(entry);
  12463. }
  12464. return thrown;
  12465. }
  12466. }
  12467. throw new Error("illegal catch attempt");
  12468. },
  12469. delegateYield: function delegateYield(iterable, resultName, nextLoc) {
  12470. return this.delegate = {
  12471. iterator: values(iterable),
  12472. resultName: resultName,
  12473. nextLoc: nextLoc
  12474. }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
  12475. }
  12476. }, exports;
  12477. }
  12478. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12479. /***/ }),
  12480. /* 57 */
  12481. /*!*****************************************************************!*\
  12482. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  12483. \*****************************************************************/
  12484. /*! no static exports found */
  12485. /***/ (function(module, exports) {
  12486. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  12487. try {
  12488. var info = gen[key](arg);
  12489. var value = info.value;
  12490. } catch (error) {
  12491. reject(error);
  12492. return;
  12493. }
  12494. if (info.done) {
  12495. resolve(value);
  12496. } else {
  12497. Promise.resolve(value).then(_next, _throw);
  12498. }
  12499. }
  12500. function _asyncToGenerator(fn) {
  12501. return function () {
  12502. var self = this,
  12503. args = arguments;
  12504. return new Promise(function (resolve, reject) {
  12505. var gen = fn.apply(self, args);
  12506. function _next(value) {
  12507. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  12508. }
  12509. function _throw(err) {
  12510. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  12511. }
  12512. _next(undefined);
  12513. });
  12514. };
  12515. }
  12516. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12517. /***/ }),
  12518. /* 58 */
  12519. /*!*********************************************************************************************!*\
  12520. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/function/colorGradient.js ***!
  12521. \*********************************************************************************************/
  12522. /*! no static exports found */
  12523. /***/ (function(module, exports, __webpack_require__) {
  12524. "use strict";
  12525. Object.defineProperty(exports, "__esModule", {
  12526. value: true
  12527. });
  12528. exports.default = void 0;
  12529. /**
  12530. * 求两个颜色之间的渐变值
  12531. * @param {string} startColor 开始的颜色
  12532. * @param {string} endColor 结束的颜色
  12533. * @param {number} step 颜色等分的份额
  12534. * */
  12535. function colorGradient() {
  12536. var startColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'rgb(0, 0, 0)';
  12537. var endColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rgb(255, 255, 255)';
  12538. var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
  12539. var startRGB = hexToRgb(startColor, false); // 转换为rgb数组模式
  12540. var startR = startRGB[0];
  12541. var startG = startRGB[1];
  12542. var startB = startRGB[2];
  12543. var endRGB = hexToRgb(endColor, false);
  12544. var endR = endRGB[0];
  12545. var endG = endRGB[1];
  12546. var endB = endRGB[2];
  12547. var sR = (endR - startR) / step; // 总差值
  12548. var sG = (endG - startG) / step;
  12549. var sB = (endB - startB) / step;
  12550. var colorArr = [];
  12551. for (var i = 0; i < step; i++) {
  12552. // 计算每一步的hex值
  12553. var hex = rgbToHex("rgb(".concat(Math.round(sR * i + startR), ",").concat(Math.round(sG * i + startG), ",").concat(Math.round(sB * i + startB), ")"));
  12554. // 确保第一个颜色值为startColor的值
  12555. if (i === 0) hex = rgbToHex(startColor);
  12556. // 确保最后一个颜色值为endColor的值
  12557. if (i === step - 1) hex = rgbToHex(endColor);
  12558. colorArr.push(hex);
  12559. }
  12560. return colorArr;
  12561. }
  12562. // 将hex表示方式转换为rgb表示方式(这里返回rgb数组模式)
  12563. function hexToRgb(sColor) {
  12564. var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  12565. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12566. sColor = String(sColor).toLowerCase();
  12567. if (sColor && reg.test(sColor)) {
  12568. if (sColor.length === 4) {
  12569. var sColorNew = '#';
  12570. for (var i = 1; i < 4; i += 1) {
  12571. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  12572. }
  12573. sColor = sColorNew;
  12574. }
  12575. // 处理六位的颜色值
  12576. var sColorChange = [];
  12577. for (var _i = 1; _i < 7; _i += 2) {
  12578. sColorChange.push(parseInt("0x".concat(sColor.slice(_i, _i + 2))));
  12579. }
  12580. if (!str) {
  12581. return sColorChange;
  12582. }
  12583. return "rgb(".concat(sColorChange[0], ",").concat(sColorChange[1], ",").concat(sColorChange[2], ")");
  12584. }
  12585. if (/^(rgb|RGB)/.test(sColor)) {
  12586. var arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  12587. return arr.map(function (val) {
  12588. return Number(val);
  12589. });
  12590. }
  12591. return sColor;
  12592. }
  12593. // 将rgb表示方式转换为hex表示方式
  12594. function rgbToHex(rgb) {
  12595. var _this = rgb;
  12596. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12597. if (/^(rgb|RGB)/.test(_this)) {
  12598. var aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  12599. var strHex = '#';
  12600. for (var i = 0; i < aColor.length; i++) {
  12601. var hex = Number(aColor[i]).toString(16);
  12602. hex = String(hex).length == 1 ? "".concat(0, hex) : hex; // 保证每个rgb的值为2位
  12603. if (hex === '0') {
  12604. hex += hex;
  12605. }
  12606. strHex += hex;
  12607. }
  12608. if (strHex.length !== 7) {
  12609. strHex = _this;
  12610. }
  12611. return strHex;
  12612. }
  12613. if (reg.test(_this)) {
  12614. var aNum = _this.replace(/#/, '').split('');
  12615. if (aNum.length === 6) {
  12616. return _this;
  12617. }
  12618. if (aNum.length === 3) {
  12619. var numHex = '#';
  12620. for (var _i2 = 0; _i2 < aNum.length; _i2 += 1) {
  12621. numHex += aNum[_i2] + aNum[_i2];
  12622. }
  12623. return numHex;
  12624. }
  12625. } else {
  12626. return _this;
  12627. }
  12628. }
  12629. /**
  12630. * JS颜色十六进制转换为rgb或rgba,返回的格式为 rgba(255,255,255,0.5)字符串
  12631. * sHex为传入的十六进制的色值
  12632. * alpha为rgba的透明度
  12633. */
  12634. function colorToRgba(color, alpha) {
  12635. color = rgbToHex(color);
  12636. // 十六进制颜色值的正则表达式
  12637. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12638. /* 16进制颜色转为RGB格式 */
  12639. var sColor = String(color).toLowerCase();
  12640. if (sColor && reg.test(sColor)) {
  12641. if (sColor.length === 4) {
  12642. var sColorNew = '#';
  12643. for (var i = 1; i < 4; i += 1) {
  12644. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  12645. }
  12646. sColor = sColorNew;
  12647. }
  12648. // 处理六位的颜色值
  12649. var sColorChange = [];
  12650. for (var _i3 = 1; _i3 < 7; _i3 += 2) {
  12651. sColorChange.push(parseInt("0x".concat(sColor.slice(_i3, _i3 + 2))));
  12652. }
  12653. // return sColorChange.join(',')
  12654. return "rgba(".concat(sColorChange.join(','), ",").concat(alpha, ")");
  12655. }
  12656. return sColor;
  12657. }
  12658. var _default = {
  12659. colorGradient: colorGradient,
  12660. hexToRgb: hexToRgb,
  12661. rgbToHex: rgbToHex,
  12662. colorToRgba: colorToRgba
  12663. };
  12664. exports.default = _default;
  12665. /***/ }),
  12666. /* 59 */
  12667. /*!************************************************************************************!*\
  12668. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/function/test.js ***!
  12669. \************************************************************************************/
  12670. /*! no static exports found */
  12671. /***/ (function(module, exports, __webpack_require__) {
  12672. "use strict";
  12673. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12674. Object.defineProperty(exports, "__esModule", {
  12675. value: true
  12676. });
  12677. exports.default = void 0;
  12678. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  12679. /**
  12680. * 验证电子邮箱格式
  12681. */
  12682. function email(value) {
  12683. return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
  12684. }
  12685. /**
  12686. * 验证手机格式
  12687. */
  12688. function mobile(value) {
  12689. return /^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/.test(value);
  12690. }
  12691. /**
  12692. * 验证URL格式
  12693. */
  12694. function url(value) {
  12695. 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);
  12696. }
  12697. /**
  12698. * 验证日期格式
  12699. */
  12700. function date(value) {
  12701. if (!value) return false;
  12702. // 判断是否数值或者字符串数值(意味着为时间戳),转为数值,否则new Date无法识别字符串时间戳
  12703. if (number(value)) value = +value;
  12704. return !/Invalid|NaN/.test(new Date(value).toString());
  12705. }
  12706. /**
  12707. * 验证ISO类型的日期格式
  12708. */
  12709. function dateISO(value) {
  12710. return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);
  12711. }
  12712. /**
  12713. * 验证十进制数字
  12714. */
  12715. function number(value) {
  12716. return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value);
  12717. }
  12718. /**
  12719. * 验证字符串
  12720. */
  12721. function string(value) {
  12722. return typeof value === 'string';
  12723. }
  12724. /**
  12725. * 验证整数
  12726. */
  12727. function digits(value) {
  12728. return /^\d+$/.test(value);
  12729. }
  12730. /**
  12731. * 验证身份证号码
  12732. */
  12733. function idCard(value) {
  12734. 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);
  12735. }
  12736. /**
  12737. * 是否车牌号
  12738. */
  12739. function carNo(value) {
  12740. // 新能源车牌
  12741. var xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
  12742. // 旧车牌
  12743. var creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
  12744. if (value.length === 7) {
  12745. return creg.test(value);
  12746. }
  12747. if (value.length === 8) {
  12748. return xreg.test(value);
  12749. }
  12750. return false;
  12751. }
  12752. /**
  12753. * 金额,只允许2位小数
  12754. */
  12755. function amount(value) {
  12756. // 金额,只允许保留两位小数
  12757. return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value);
  12758. }
  12759. /**
  12760. * 中文
  12761. */
  12762. function chinese(value) {
  12763. var reg = /^[\u4e00-\u9fa5]+$/gi;
  12764. return reg.test(value);
  12765. }
  12766. /**
  12767. * 只能输入字母
  12768. */
  12769. function letter(value) {
  12770. return /^[a-zA-Z]*$/.test(value);
  12771. }
  12772. /**
  12773. * 只能是字母或者数字
  12774. */
  12775. function enOrNum(value) {
  12776. // 英文或者数字
  12777. var reg = /^[0-9a-zA-Z]*$/g;
  12778. return reg.test(value);
  12779. }
  12780. /**
  12781. * 验证是否包含某个值
  12782. */
  12783. function contains(value, param) {
  12784. return value.indexOf(param) >= 0;
  12785. }
  12786. /**
  12787. * 验证一个值范围[min, max]
  12788. */
  12789. function range(value, param) {
  12790. return value >= param[0] && value <= param[1];
  12791. }
  12792. /**
  12793. * 验证一个长度范围[min, max]
  12794. */
  12795. function rangeLength(value, param) {
  12796. return value.length >= param[0] && value.length <= param[1];
  12797. }
  12798. /**
  12799. * 是否固定电话
  12800. */
  12801. function landline(value) {
  12802. var reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;
  12803. return reg.test(value);
  12804. }
  12805. /**
  12806. * 判断是否为空
  12807. */
  12808. function empty(value) {
  12809. switch ((0, _typeof2.default)(value)) {
  12810. case 'undefined':
  12811. return true;
  12812. case 'string':
  12813. if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) return true;
  12814. break;
  12815. case 'boolean':
  12816. if (!value) return true;
  12817. break;
  12818. case 'number':
  12819. if (value === 0 || isNaN(value)) return true;
  12820. break;
  12821. case 'object':
  12822. if (value === null || value.length === 0) return true;
  12823. for (var i in value) {
  12824. return false;
  12825. }
  12826. return true;
  12827. }
  12828. return false;
  12829. }
  12830. /**
  12831. * 是否json字符串
  12832. */
  12833. function jsonString(value) {
  12834. if (typeof value === 'string') {
  12835. try {
  12836. var obj = JSON.parse(value);
  12837. if ((0, _typeof2.default)(obj) === 'object' && obj) {
  12838. return true;
  12839. }
  12840. return false;
  12841. } catch (e) {
  12842. return false;
  12843. }
  12844. }
  12845. return false;
  12846. }
  12847. /**
  12848. * 是否数组
  12849. */
  12850. function array(value) {
  12851. if (typeof Array.isArray === 'function') {
  12852. return Array.isArray(value);
  12853. }
  12854. return Object.prototype.toString.call(value) === '[object Array]';
  12855. }
  12856. /**
  12857. * 是否对象
  12858. */
  12859. function object(value) {
  12860. return Object.prototype.toString.call(value) === '[object Object]';
  12861. }
  12862. /**
  12863. * 是否短信验证码
  12864. */
  12865. function code(value) {
  12866. var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
  12867. return new RegExp("^\\d{".concat(len, "}$")).test(value);
  12868. }
  12869. /**
  12870. * 是否函数方法
  12871. * @param {Object} value
  12872. */
  12873. function func(value) {
  12874. return typeof value === 'function';
  12875. }
  12876. /**
  12877. * 是否promise对象
  12878. * @param {Object} value
  12879. */
  12880. function promise(value) {
  12881. return object(value) && func(value.then) && func(value.catch);
  12882. }
  12883. /** 是否图片格式
  12884. * @param {Object} value
  12885. */
  12886. function image(value) {
  12887. var newValue = value.split('?')[0];
  12888. var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  12889. return IMAGE_REGEXP.test(newValue);
  12890. }
  12891. /**
  12892. * 是否视频格式
  12893. * @param {Object} value
  12894. */
  12895. function video(value) {
  12896. var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;
  12897. return VIDEO_REGEXP.test(value);
  12898. }
  12899. /**
  12900. * 是否为正则对象
  12901. * @param {Object}
  12902. * @return {Boolean}
  12903. */
  12904. function regExp(o) {
  12905. return o && Object.prototype.toString.call(o) === '[object RegExp]';
  12906. }
  12907. var _default = {
  12908. email: email,
  12909. mobile: mobile,
  12910. url: url,
  12911. date: date,
  12912. dateISO: dateISO,
  12913. number: number,
  12914. digits: digits,
  12915. idCard: idCard,
  12916. carNo: carNo,
  12917. amount: amount,
  12918. chinese: chinese,
  12919. letter: letter,
  12920. enOrNum: enOrNum,
  12921. contains: contains,
  12922. range: range,
  12923. rangeLength: rangeLength,
  12924. empty: empty,
  12925. isEmpty: empty,
  12926. jsonString: jsonString,
  12927. landline: landline,
  12928. object: object,
  12929. array: array,
  12930. code: code,
  12931. func: func,
  12932. promise: promise,
  12933. video: video,
  12934. image: image,
  12935. regExp: regExp,
  12936. string: string
  12937. };
  12938. exports.default = _default;
  12939. /***/ }),
  12940. /* 60 */
  12941. /*!****************************************************************************************!*\
  12942. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/function/debounce.js ***!
  12943. \****************************************************************************************/
  12944. /*! no static exports found */
  12945. /***/ (function(module, exports, __webpack_require__) {
  12946. "use strict";
  12947. Object.defineProperty(exports, "__esModule", {
  12948. value: true
  12949. });
  12950. exports.default = void 0;
  12951. var timeout = null;
  12952. /**
  12953. * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数
  12954. *
  12955. * @param {Function} func 要执行的回调函数
  12956. * @param {Number} wait 延时的时间
  12957. * @param {Boolean} immediate 是否立即执行
  12958. * @return null
  12959. */
  12960. function debounce(func) {
  12961. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  12962. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  12963. // 清除定时器
  12964. if (timeout !== null) clearTimeout(timeout);
  12965. // 立即执行,此类情况一般用不到
  12966. if (immediate) {
  12967. var callNow = !timeout;
  12968. timeout = setTimeout(function () {
  12969. timeout = null;
  12970. }, wait);
  12971. if (callNow) typeof func === 'function' && func();
  12972. } else {
  12973. // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法
  12974. timeout = setTimeout(function () {
  12975. typeof func === 'function' && func();
  12976. }, wait);
  12977. }
  12978. }
  12979. var _default = debounce;
  12980. exports.default = _default;
  12981. /***/ }),
  12982. /* 61 */
  12983. /*!****************************************************************************************!*\
  12984. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/function/throttle.js ***!
  12985. \****************************************************************************************/
  12986. /*! no static exports found */
  12987. /***/ (function(module, exports, __webpack_require__) {
  12988. "use strict";
  12989. Object.defineProperty(exports, "__esModule", {
  12990. value: true
  12991. });
  12992. exports.default = void 0;
  12993. var timer;
  12994. var flag;
  12995. /**
  12996. * 节流原理:在一定时间内,只能触发一次
  12997. *
  12998. * @param {Function} func 要执行的回调函数
  12999. * @param {Number} wait 延时的时间
  13000. * @param {Boolean} immediate 是否立即执行
  13001. * @return null
  13002. */
  13003. function throttle(func) {
  13004. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  13005. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  13006. if (immediate) {
  13007. if (!flag) {
  13008. flag = true;
  13009. // 如果是立即执行,则在wait毫秒内开始时执行
  13010. typeof func === 'function' && func();
  13011. timer = setTimeout(function () {
  13012. flag = false;
  13013. }, wait);
  13014. }
  13015. } else if (!flag) {
  13016. flag = true;
  13017. // 如果是非立即执行,则在wait毫秒内的结束处执行
  13018. timer = setTimeout(function () {
  13019. flag = false;
  13020. typeof func === 'function' && func();
  13021. }, wait);
  13022. }
  13023. }
  13024. var _default = throttle;
  13025. exports.default = _default;
  13026. /***/ }),
  13027. /* 62 */
  13028. /*!*************************************************************************************!*\
  13029. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/function/index.js ***!
  13030. \*************************************************************************************/
  13031. /*! no static exports found */
  13032. /***/ (function(module, exports, __webpack_require__) {
  13033. "use strict";
  13034. /* WEBPACK VAR INJECTION */(function(uni) {
  13035. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  13036. Object.defineProperty(exports, "__esModule", {
  13037. value: true
  13038. });
  13039. exports.default = void 0;
  13040. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  13041. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  13042. var _test = _interopRequireDefault(__webpack_require__(/*! ./test.js */ 59));
  13043. var _digit = __webpack_require__(/*! ./digit.js */ 63);
  13044. /**
  13045. * @description 如果value小于min,取min;如果value大于max,取max
  13046. * @param {number} min
  13047. * @param {number} max
  13048. * @param {number} value
  13049. */
  13050. function range() {
  13051. var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  13052. var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  13053. var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
  13054. return Math.max(min, Math.min(max, Number(value)));
  13055. }
  13056. /**
  13057. * @description 用于获取用户传递值的px值 如果用户传递了"xxpx"或者"xxrpx",取出其数值部分,如果是"xxxrpx"还需要用过uni.upx2px进行转换
  13058. * @param {number|string} value 用户传递值的px值
  13059. * @param {boolean} unit
  13060. * @returns {number|string}
  13061. */
  13062. function getPx(value) {
  13063. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13064. if (_test.default.number(value)) {
  13065. return unit ? "".concat(value, "px") : Number(value);
  13066. }
  13067. // 如果带有rpx,先取出其数值部分,再转为px值
  13068. if (/(rpx|upx)$/.test(value)) {
  13069. return unit ? "".concat(uni.upx2px(parseInt(value)), "px") : Number(uni.upx2px(parseInt(value)));
  13070. }
  13071. return unit ? "".concat(parseInt(value), "px") : parseInt(value);
  13072. }
  13073. /**
  13074. * @description 进行延时,以达到可以简写代码的目的 比如: await uni.$u.sleep(20)将会阻塞20ms
  13075. * @param {number} value 堵塞时间 单位ms 毫秒
  13076. * @returns {Promise} 返回promise
  13077. */
  13078. function sleep() {
  13079. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 30;
  13080. return new Promise(function (resolve) {
  13081. setTimeout(function () {
  13082. resolve();
  13083. }, value);
  13084. });
  13085. }
  13086. /**
  13087. * @description 运行期判断平台
  13088. * @returns {string} 返回所在平台(小写)
  13089. * @link 运行期判断平台 https://uniapp.dcloud.io/frame?id=判断平台
  13090. */
  13091. function os() {
  13092. return uni.getSystemInfoSync().platform.toLowerCase();
  13093. }
  13094. /**
  13095. * @description 获取系统信息同步接口
  13096. * @link 获取系统信息同步接口 https://uniapp.dcloud.io/api/system/info?id=getsysteminfosync
  13097. */
  13098. function sys() {
  13099. return uni.getSystemInfoSync();
  13100. }
  13101. /**
  13102. * @description 取一个区间数
  13103. * @param {Number} min 最小值
  13104. * @param {Number} max 最大值
  13105. */
  13106. function random(min, max) {
  13107. if (min >= 0 && max > 0 && max >= min) {
  13108. var gab = max - min + 1;
  13109. return Math.floor(Math.random() * gab + min);
  13110. }
  13111. return 0;
  13112. }
  13113. /**
  13114. * @param {Number} len uuid的长度
  13115. * @param {Boolean} firstU 将返回的首字母置为"u"
  13116. * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
  13117. */
  13118. function guid() {
  13119. var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
  13120. var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13121. var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  13122. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  13123. var uuid = [];
  13124. radix = radix || chars.length;
  13125. if (len) {
  13126. // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
  13127. for (var i = 0; i < len; i++) {
  13128. uuid[i] = chars[0 | Math.random() * radix];
  13129. }
  13130. } else {
  13131. var r;
  13132. // rfc4122标准要求返回的uuid中,某些位为固定的字符
  13133. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  13134. uuid[14] = '4';
  13135. for (var _i = 0; _i < 36; _i++) {
  13136. if (!uuid[_i]) {
  13137. r = 0 | Math.random() * 16;
  13138. uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
  13139. }
  13140. }
  13141. }
  13142. // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  13143. if (firstU) {
  13144. uuid.shift();
  13145. return "u".concat(uuid.join(''));
  13146. }
  13147. return uuid.join('');
  13148. }
  13149. /**
  13150. * @description 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  13151. this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  13152. 这里默认值等于undefined有它的含义,因为最顶层元素(组件)的$parent就是undefined,意味着不传name
  13153. 值(默认为undefined),就是查找最顶层的$parent
  13154. * @param {string|undefined} name 父组件的参数名
  13155. */
  13156. function $parent() {
  13157. var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  13158. var parent = this.$parent;
  13159. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  13160. while (parent) {
  13161. // 父组件
  13162. if (parent.$options && parent.$options.name !== name) {
  13163. // 如果组件的name不相等,继续上一级寻找
  13164. parent = parent.$parent;
  13165. } else {
  13166. return parent;
  13167. }
  13168. }
  13169. return false;
  13170. }
  13171. /**
  13172. * @description 样式转换
  13173. * 对象转字符串,或者字符串转对象
  13174. * @param {object | string} customStyle 需要转换的目标
  13175. * @param {String} target 转换的目的,object-转为对象,string-转为字符串
  13176. * @returns {object|string}
  13177. */
  13178. function addStyle(customStyle) {
  13179. var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'object';
  13180. // 字符串转字符串,对象转对象情形,直接返回
  13181. if (_test.default.empty(customStyle) || (0, _typeof2.default)(customStyle) === 'object' && target === 'object' || target === 'string' && typeof customStyle === 'string') {
  13182. return customStyle;
  13183. }
  13184. // 字符串转对象
  13185. if (target === 'object') {
  13186. // 去除字符串样式中的两端空格(中间的空格不能去掉,比如padding: 20px 0如果去掉了就错了),空格是无用的
  13187. customStyle = trim(customStyle);
  13188. // 根据";"将字符串转为数组形式
  13189. var styleArray = customStyle.split(';');
  13190. var style = {};
  13191. // 历遍数组,拼接成对象
  13192. for (var i = 0; i < styleArray.length; i++) {
  13193. // 'font-size:20px;color:red;',如此最后字符串有";"的话,会导致styleArray最后一个元素为空字符串,这里需要过滤
  13194. if (styleArray[i]) {
  13195. var item = styleArray[i].split(':');
  13196. style[trim(item[0])] = trim(item[1]);
  13197. }
  13198. }
  13199. return style;
  13200. }
  13201. // 这里为对象转字符串形式
  13202. var string = '';
  13203. for (var _i2 in customStyle) {
  13204. // 驼峰转为中划线的形式,否则css内联样式,无法识别驼峰样式属性名
  13205. var key = _i2.replace(/([A-Z])/g, '-$1').toLowerCase();
  13206. string += "".concat(key, ":").concat(customStyle[_i2], ";");
  13207. }
  13208. // 去除两端空格
  13209. return trim(string);
  13210. }
  13211. /**
  13212. * @description 添加单位,如果有rpx,upx,%,px等单位结尾或者值为auto,直接返回,否则加上px单位结尾
  13213. * @param {string|number} value 需要添加单位的值
  13214. * @param {string} unit 添加的单位名 比如px
  13215. */
  13216. function addUnit() {
  13217. var _uni$$u$config$unit, _uni, _uni$$u, _uni$$u$config;
  13218. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'auto';
  13219. 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';
  13220. value = String(value);
  13221. // 用uView内置验证规则中的number判断是否为数值
  13222. return _test.default.number(value) ? "".concat(value).concat(unit) : value;
  13223. }
  13224. /**
  13225. * @description 深度克隆
  13226. * @param {object} obj 需要深度克隆的对象
  13227. * @returns {*} 克隆后的对象或者原值(不是对象)
  13228. */
  13229. function deepClone(obj) {
  13230. // 对常见的“非”值,直接返回原来值
  13231. if ([null, undefined, NaN, false].includes(obj)) return obj;
  13232. if ((0, _typeof2.default)(obj) !== 'object' && typeof obj !== 'function') {
  13233. // 原始类型直接返回
  13234. return obj;
  13235. }
  13236. var o = _test.default.array(obj) ? [] : {};
  13237. for (var i in obj) {
  13238. if (obj.hasOwnProperty(i)) {
  13239. o[i] = (0, _typeof2.default)(obj[i]) === 'object' ? deepClone(obj[i]) : obj[i];
  13240. }
  13241. }
  13242. return o;
  13243. }
  13244. /**
  13245. * @description JS对象深度合并
  13246. * @param {object} target 需要拷贝的对象
  13247. * @param {object} source 拷贝的来源对象
  13248. * @returns {object|boolean} 深度合并后的对象或者false(入参有不是对象)
  13249. */
  13250. function deepMerge() {
  13251. var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13252. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  13253. target = deepClone(target);
  13254. if ((0, _typeof2.default)(target) !== 'object' || (0, _typeof2.default)(source) !== 'object') return false;
  13255. for (var prop in source) {
  13256. if (!source.hasOwnProperty(prop)) continue;
  13257. if (prop in target) {
  13258. if ((0, _typeof2.default)(target[prop]) !== 'object') {
  13259. target[prop] = source[prop];
  13260. } else if ((0, _typeof2.default)(source[prop]) !== 'object') {
  13261. target[prop] = source[prop];
  13262. } else if (target[prop].concat && source[prop].concat) {
  13263. target[prop] = target[prop].concat(source[prop]);
  13264. } else {
  13265. target[prop] = deepMerge(target[prop], source[prop]);
  13266. }
  13267. } else {
  13268. target[prop] = source[prop];
  13269. }
  13270. }
  13271. return target;
  13272. }
  13273. /**
  13274. * @description error提示
  13275. * @param {*} err 错误内容
  13276. */
  13277. function error(err) {
  13278. // 开发环境才提示,生产环境不会提示
  13279. if (true) {
  13280. console.error("uView\u63D0\u793A\uFF1A".concat(err));
  13281. }
  13282. }
  13283. /**
  13284. * @description 打乱数组
  13285. * @param {array} array 需要打乱的数组
  13286. * @returns {array} 打乱后的数组
  13287. */
  13288. function randomArray() {
  13289. var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  13290. // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.05大于或者小于0
  13291. return array.sort(function () {
  13292. return Math.random() - 0.5;
  13293. });
  13294. }
  13295. // padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序
  13296. // 所以这里做一个兼容polyfill的兼容处理
  13297. if (!String.prototype.padStart) {
  13298. // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解
  13299. String.prototype.padStart = function (maxLength) {
  13300. var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
  13301. if (Object.prototype.toString.call(fillString) !== '[object String]') {
  13302. throw new TypeError('fillString must be String');
  13303. }
  13304. var str = this;
  13305. // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉
  13306. if (str.length >= maxLength) return String(str);
  13307. var fillLength = maxLength - str.length;
  13308. var times = Math.ceil(fillLength / fillString.length);
  13309. while (times >>= 1) {
  13310. fillString += fillString;
  13311. if (times === 1) {
  13312. fillString += fillString;
  13313. }
  13314. }
  13315. return fillString.slice(0, fillLength) + str;
  13316. };
  13317. }
  13318. /**
  13319. * @description 格式化时间
  13320. * @param {String|Number} dateTime 需要格式化的时间戳
  13321. * @param {String} fmt 格式化规则 yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合 默认yyyy-mm-dd
  13322. * @returns {string} 返回格式化后的字符串
  13323. */
  13324. function timeFormat() {
  13325. var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  13326. var formatStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  13327. var date;
  13328. // 若传入时间为假值,则取当前时间
  13329. if (!dateTime) {
  13330. date = new Date();
  13331. }
  13332. // 若为unix秒时间戳,则转为毫秒时间戳(逻辑有点奇怪,但不敢改,以保证历史兼容)
  13333. else if (/^\d{10}$/.test(dateTime === null || dateTime === void 0 ? void 0 : dateTime.toString().trim())) {
  13334. date = new Date(dateTime * 1000);
  13335. }
  13336. // 若用户传入字符串格式时间戳,new Date无法解析,需做兼容
  13337. else if (typeof dateTime === 'string' && /^\d+$/.test(dateTime.trim())) {
  13338. date = new Date(Number(dateTime));
  13339. }
  13340. // 处理平台性差异,在Safari/Webkit中,new Date仅支持/作为分割符的字符串时间
  13341. // 处理 '2022-07-10 01:02:03',跳过 '2022-07-10T01:02:03'
  13342. else if (typeof dateTime === 'string' && dateTime.includes('-') && !dateTime.includes('T')) {
  13343. date = new Date(dateTime.replace(/-/g, '/'));
  13344. }
  13345. // 其他都认为符合 RFC 2822 规范
  13346. else {
  13347. date = new Date(dateTime);
  13348. }
  13349. var timeSource = {
  13350. 'y': date.getFullYear().toString(),
  13351. // 年
  13352. 'm': (date.getMonth() + 1).toString().padStart(2, '0'),
  13353. // 月
  13354. 'd': date.getDate().toString().padStart(2, '0'),
  13355. // 日
  13356. 'h': date.getHours().toString().padStart(2, '0'),
  13357. // 时
  13358. 'M': date.getMinutes().toString().padStart(2, '0'),
  13359. // 分
  13360. 's': date.getSeconds().toString().padStart(2, '0') // 秒
  13361. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  13362. };
  13363. for (var key in timeSource) {
  13364. var _ref = new RegExp("".concat(key, "+")).exec(formatStr) || [],
  13365. _ref2 = (0, _slicedToArray2.default)(_ref, 1),
  13366. ret = _ref2[0];
  13367. if (ret) {
  13368. // 年可能只需展示两位
  13369. var beginIndex = key === 'y' && ret.length === 2 ? 2 : 0;
  13370. formatStr = formatStr.replace(ret, timeSource[key].slice(beginIndex));
  13371. }
  13372. }
  13373. return formatStr;
  13374. }
  13375. /**
  13376. * @description 时间戳转为多久之前
  13377. * @param {String|Number} timestamp 时间戳
  13378. * @param {String|Boolean} format
  13379. * 格式化规则如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;
  13380. * 如果为布尔值false,无论什么时间,都返回多久以前的格式
  13381. * @returns {string} 转化后的内容
  13382. */
  13383. function timeFrom() {
  13384. var timestamp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  13385. var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  13386. if (timestamp == null) timestamp = Number(new Date());
  13387. timestamp = parseInt(timestamp);
  13388. // 判断用户输入的时间戳是秒还是毫秒,一般前端js获取的时间戳是毫秒(13位),后端传过来的为秒(10位)
  13389. if (timestamp.toString().length == 10) timestamp *= 1000;
  13390. var timer = new Date().getTime() - timestamp;
  13391. timer = parseInt(timer / 1000);
  13392. // 如果小于5分钟,则返回"刚刚",其他以此类推
  13393. var tips = '';
  13394. switch (true) {
  13395. case timer < 300:
  13396. tips = '刚刚';
  13397. break;
  13398. case timer >= 300 && timer < 3600:
  13399. tips = "".concat(parseInt(timer / 60), "\u5206\u949F\u524D");
  13400. break;
  13401. case timer >= 3600 && timer < 86400:
  13402. tips = "".concat(parseInt(timer / 3600), "\u5C0F\u65F6\u524D");
  13403. break;
  13404. case timer >= 86400 && timer < 2592000:
  13405. tips = "".concat(parseInt(timer / 86400), "\u5929\u524D");
  13406. break;
  13407. default:
  13408. // 如果format为false,则无论什么时间戳,都显示xx之前
  13409. if (format === false) {
  13410. if (timer >= 2592000 && timer < 365 * 86400) {
  13411. tips = "".concat(parseInt(timer / (86400 * 30)), "\u4E2A\u6708\u524D");
  13412. } else {
  13413. tips = "".concat(parseInt(timer / (86400 * 365)), "\u5E74\u524D");
  13414. }
  13415. } else {
  13416. tips = timeFormat(timestamp, format);
  13417. }
  13418. }
  13419. return tips;
  13420. }
  13421. /**
  13422. * @description 去除空格
  13423. * @param String str 需要去除空格的字符串
  13424. * @param String pos both(左右)|left|right|all 默认both
  13425. */
  13426. function trim(str) {
  13427. var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'both';
  13428. str = String(str);
  13429. if (pos == 'both') {
  13430. return str.replace(/^\s+|\s+$/g, '');
  13431. }
  13432. if (pos == 'left') {
  13433. return str.replace(/^\s*/, '');
  13434. }
  13435. if (pos == 'right') {
  13436. return str.replace(/(\s*$)/g, '');
  13437. }
  13438. if (pos == 'all') {
  13439. return str.replace(/\s+/g, '');
  13440. }
  13441. return str;
  13442. }
  13443. /**
  13444. * @description 对象转url参数
  13445. * @param {object} data,对象
  13446. * @param {Boolean} isPrefix,是否自动加上"?"
  13447. * @param {string} arrayFormat 规则 indices|brackets|repeat|comma
  13448. */
  13449. function queryParams() {
  13450. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13451. var isPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13452. var arrayFormat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'brackets';
  13453. var prefix = isPrefix ? '?' : '';
  13454. var _result = [];
  13455. if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets';
  13456. var _loop = function _loop(key) {
  13457. var value = data[key];
  13458. // 去掉为空的参数
  13459. if (['', undefined, null].indexOf(value) >= 0) {
  13460. return "continue";
  13461. }
  13462. // 如果值为数组,另行处理
  13463. if (value.constructor === Array) {
  13464. // e.g. {ids: [1, 2, 3]}
  13465. switch (arrayFormat) {
  13466. case 'indices':
  13467. // 结果: ids[0]=1&ids[1]=2&ids[2]=3
  13468. for (var i = 0; i < value.length; i++) {
  13469. _result.push("".concat(key, "[").concat(i, "]=").concat(value[i]));
  13470. }
  13471. break;
  13472. case 'brackets':
  13473. // 结果: ids[]=1&ids[]=2&ids[]=3
  13474. value.forEach(function (_value) {
  13475. _result.push("".concat(key, "[]=").concat(_value));
  13476. });
  13477. break;
  13478. case 'repeat':
  13479. // 结果: ids=1&ids=2&ids=3
  13480. value.forEach(function (_value) {
  13481. _result.push("".concat(key, "=").concat(_value));
  13482. });
  13483. break;
  13484. case 'comma':
  13485. // 结果: ids=1,2,3
  13486. var commaStr = '';
  13487. value.forEach(function (_value) {
  13488. commaStr += (commaStr ? ',' : '') + _value;
  13489. });
  13490. _result.push("".concat(key, "=").concat(commaStr));
  13491. break;
  13492. default:
  13493. value.forEach(function (_value) {
  13494. _result.push("".concat(key, "[]=").concat(_value));
  13495. });
  13496. }
  13497. } else {
  13498. _result.push("".concat(key, "=").concat(value));
  13499. }
  13500. };
  13501. for (var key in data) {
  13502. var _ret = _loop(key);
  13503. if (_ret === "continue") continue;
  13504. }
  13505. return _result.length ? prefix + _result.join('&') : '';
  13506. }
  13507. /**
  13508. * 显示消息提示框
  13509. * @param {String} title 提示的内容,长度与 icon 取值有关。
  13510. * @param {Number} duration 提示的延迟时间,单位毫秒,默认:2000
  13511. */
  13512. function toast(title) {
  13513. var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
  13514. uni.showToast({
  13515. title: String(title),
  13516. icon: 'none',
  13517. duration: duration
  13518. });
  13519. }
  13520. /**
  13521. * @description 根据主题type值,获取对应的图标
  13522. * @param {String} type 主题名称,primary|info|error|warning|success
  13523. * @param {boolean} fill 是否使用fill填充实体的图标
  13524. */
  13525. function type2icon() {
  13526. var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'success';
  13527. var fill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13528. // 如果非预置值,默认为success
  13529. if (['primary', 'info', 'error', 'warning', 'success'].indexOf(type) == -1) type = 'success';
  13530. var iconName = '';
  13531. // 目前(2019-12-12),info和primary使用同一个图标
  13532. switch (type) {
  13533. case 'primary':
  13534. iconName = 'info-circle';
  13535. break;
  13536. case 'info':
  13537. iconName = 'info-circle';
  13538. break;
  13539. case 'error':
  13540. iconName = 'close-circle';
  13541. break;
  13542. case 'warning':
  13543. iconName = 'error-circle';
  13544. break;
  13545. case 'success':
  13546. iconName = 'checkmark-circle';
  13547. break;
  13548. default:
  13549. iconName = 'checkmark-circle';
  13550. }
  13551. // 是否是实体类型,加上-fill,在icon组件库中,实体的类名是后面加-fill的
  13552. if (fill) iconName += '-fill';
  13553. return iconName;
  13554. }
  13555. /**
  13556. * @description 数字格式化
  13557. * @param {number|string} number 要格式化的数字
  13558. * @param {number} decimals 保留几位小数
  13559. * @param {string} decimalPoint 小数点符号
  13560. * @param {string} thousandsSeparator 千分位符号
  13561. * @returns {string} 格式化后的数字
  13562. */
  13563. function priceFormat(number) {
  13564. var decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  13565. var decimalPoint = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.';
  13566. var thousandsSeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ',';
  13567. number = "".concat(number).replace(/[^0-9+-Ee.]/g, '');
  13568. var n = !isFinite(+number) ? 0 : +number;
  13569. var prec = !isFinite(+decimals) ? 0 : Math.abs(decimals);
  13570. var sep = typeof thousandsSeparator === 'undefined' ? ',' : thousandsSeparator;
  13571. var dec = typeof decimalPoint === 'undefined' ? '.' : decimalPoint;
  13572. var s = '';
  13573. s = (prec ? (0, _digit.round)(n, prec) + '' : "".concat(Math.round(n))).split('.');
  13574. var re = /(-?\d+)(\d{3})/;
  13575. while (re.test(s[0])) {
  13576. s[0] = s[0].replace(re, "$1".concat(sep, "$2"));
  13577. }
  13578. if ((s[1] || '').length < prec) {
  13579. s[1] = s[1] || '';
  13580. s[1] += new Array(prec - s[1].length + 1).join('0');
  13581. }
  13582. return s.join(dec);
  13583. }
  13584. /**
  13585. * @description 获取duration值
  13586. * 如果带有ms或者s直接返回,如果大于一定值,认为是ms单位,小于一定值,认为是s单位
  13587. * 比如以30位阈值,那么300大于30,可以理解为用户想要的是300ms,而不是想花300s去执行一个动画
  13588. * @param {String|number} value 比如: "1s"|"100ms"|1|100
  13589. * @param {boolean} unit 提示: 如果是false 默认返回number
  13590. * @return {string|number}
  13591. */
  13592. function getDuration(value) {
  13593. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13594. var valueNum = parseInt(value);
  13595. if (unit) {
  13596. if (/s$/.test(value)) return value;
  13597. return value > 30 ? "".concat(value, "ms") : "".concat(value, "s");
  13598. }
  13599. if (/ms$/.test(value)) return valueNum;
  13600. if (/s$/.test(value)) return valueNum > 30 ? valueNum : valueNum * 1000;
  13601. return valueNum;
  13602. }
  13603. /**
  13604. * @description 日期的月或日补零操作
  13605. * @param {String} value 需要补零的值
  13606. */
  13607. function padZero(value) {
  13608. return "00".concat(value).slice(-2);
  13609. }
  13610. /**
  13611. * @description 在u-form的子组件内容发生变化,或者失去焦点时,尝试通知u-form执行校验方法
  13612. * @param {*} instance
  13613. * @param {*} event
  13614. */
  13615. function formValidate(instance, event) {
  13616. var formItem = uni.$u.$parent.call(instance, 'u-form-item');
  13617. var form = uni.$u.$parent.call(instance, 'u-form');
  13618. // 如果发生变化的input或者textarea等,其父组件中有u-form-item或者u-form等,就执行form的validate方法
  13619. // 同时将form-item的pros传递给form,让其进行精确对象验证
  13620. if (formItem && form) {
  13621. form.validateField(formItem.prop, function () {}, event);
  13622. }
  13623. }
  13624. /**
  13625. * @description 获取某个对象下的属性,用于通过类似'a.b.c'的形式去获取一个对象的的属性的形式
  13626. * @param {object} obj 对象
  13627. * @param {string} key 需要获取的属性字段
  13628. * @returns {*}
  13629. */
  13630. function getProperty(obj, key) {
  13631. if (!obj) {
  13632. return;
  13633. }
  13634. if (typeof key !== 'string' || key === '') {
  13635. return '';
  13636. }
  13637. if (key.indexOf('.') !== -1) {
  13638. var keys = key.split('.');
  13639. var firstObj = obj[keys[0]] || {};
  13640. for (var i = 1; i < keys.length; i++) {
  13641. if (firstObj) {
  13642. firstObj = firstObj[keys[i]];
  13643. }
  13644. }
  13645. return firstObj;
  13646. }
  13647. return obj[key];
  13648. }
  13649. /**
  13650. * @description 设置对象的属性值,如果'a.b.c'的形式进行设置
  13651. * @param {object} obj 对象
  13652. * @param {string} key 需要设置的属性
  13653. * @param {string} value 设置的值
  13654. */
  13655. function setProperty(obj, key, value) {
  13656. if (!obj) {
  13657. return;
  13658. }
  13659. // 递归赋值
  13660. var inFn = function inFn(_obj, keys, v) {
  13661. // 最后一个属性key
  13662. if (keys.length === 1) {
  13663. _obj[keys[0]] = v;
  13664. return;
  13665. }
  13666. // 0~length-1个key
  13667. while (keys.length > 1) {
  13668. var k = keys[0];
  13669. if (!_obj[k] || (0, _typeof2.default)(_obj[k]) !== 'object') {
  13670. _obj[k] = {};
  13671. }
  13672. var _key = keys.shift();
  13673. // 自调用判断是否存在属性,不存在则自动创建对象
  13674. inFn(_obj[k], keys, v);
  13675. }
  13676. };
  13677. if (typeof key !== 'string' || key === '') {} else if (key.indexOf('.') !== -1) {
  13678. // 支持多层级赋值操作
  13679. var keys = key.split('.');
  13680. inFn(obj, keys, value);
  13681. } else {
  13682. obj[key] = value;
  13683. }
  13684. }
  13685. /**
  13686. * @description 获取当前页面路径
  13687. */
  13688. function page() {
  13689. var _pages$route, _pages;
  13690. var pages = getCurrentPages();
  13691. // 某些特殊情况下(比如页面进行redirectTo时的一些时机),pages可能为空数组
  13692. return "/".concat((_pages$route = (_pages = pages[pages.length - 1]) === null || _pages === void 0 ? void 0 : _pages.route) !== null && _pages$route !== void 0 ? _pages$route : '');
  13693. }
  13694. /**
  13695. * @description 获取当前路由栈实例数组
  13696. */
  13697. function pages() {
  13698. var pages = getCurrentPages();
  13699. return pages;
  13700. }
  13701. /**
  13702. * @description 修改uView内置属性值
  13703. * @param {object} props 修改内置props属性
  13704. * @param {object} config 修改内置config属性
  13705. * @param {object} color 修改内置color属性
  13706. * @param {object} zIndex 修改内置zIndex属性
  13707. */
  13708. function setConfig(_ref3) {
  13709. var _ref3$props = _ref3.props,
  13710. props = _ref3$props === void 0 ? {} : _ref3$props,
  13711. _ref3$config = _ref3.config,
  13712. config = _ref3$config === void 0 ? {} : _ref3$config,
  13713. _ref3$color = _ref3.color,
  13714. color = _ref3$color === void 0 ? {} : _ref3$color,
  13715. _ref3$zIndex = _ref3.zIndex,
  13716. zIndex = _ref3$zIndex === void 0 ? {} : _ref3$zIndex;
  13717. var deepMerge = uni.$u.deepMerge;
  13718. uni.$u.config = deepMerge(uni.$u.config, config);
  13719. uni.$u.props = deepMerge(uni.$u.props, props);
  13720. uni.$u.color = deepMerge(uni.$u.color, color);
  13721. uni.$u.zIndex = deepMerge(uni.$u.zIndex, zIndex);
  13722. }
  13723. var _default = {
  13724. range: range,
  13725. getPx: getPx,
  13726. sleep: sleep,
  13727. os: os,
  13728. sys: sys,
  13729. random: random,
  13730. guid: guid,
  13731. $parent: $parent,
  13732. addStyle: addStyle,
  13733. addUnit: addUnit,
  13734. deepClone: deepClone,
  13735. deepMerge: deepMerge,
  13736. error: error,
  13737. randomArray: randomArray,
  13738. timeFormat: timeFormat,
  13739. timeFrom: timeFrom,
  13740. trim: trim,
  13741. queryParams: queryParams,
  13742. toast: toast,
  13743. type2icon: type2icon,
  13744. priceFormat: priceFormat,
  13745. getDuration: getDuration,
  13746. padZero: padZero,
  13747. formValidate: formValidate,
  13748. getProperty: getProperty,
  13749. setProperty: setProperty,
  13750. page: page,
  13751. pages: pages,
  13752. setConfig: setConfig
  13753. };
  13754. exports.default = _default;
  13755. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  13756. /***/ }),
  13757. /* 63 */
  13758. /*!*************************************************************************************!*\
  13759. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/function/digit.js ***!
  13760. \*************************************************************************************/
  13761. /*! no static exports found */
  13762. /***/ (function(module, exports, __webpack_require__) {
  13763. "use strict";
  13764. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  13765. Object.defineProperty(exports, "__esModule", {
  13766. value: true
  13767. });
  13768. exports.default = void 0;
  13769. exports.divide = divide;
  13770. exports.enableBoundaryChecking = enableBoundaryChecking;
  13771. exports.minus = minus;
  13772. exports.plus = plus;
  13773. exports.round = round;
  13774. exports.times = times;
  13775. var _toArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toArray */ 64));
  13776. var _boundaryCheckingState = true; // 是否进行越界检查的全局开关
  13777. /**
  13778. * 把错误的数据转正
  13779. * @private
  13780. * @example strip(0.09999999999999998)=0.1
  13781. */
  13782. function strip(num) {
  13783. var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 15;
  13784. return +parseFloat(Number(num).toPrecision(precision));
  13785. }
  13786. /**
  13787. * Return digits length of a number
  13788. * @private
  13789. * @param {*number} num Input number
  13790. */
  13791. function digitLength(num) {
  13792. // Get digit length of e
  13793. var eSplit = num.toString().split(/[eE]/);
  13794. var len = (eSplit[0].split('.')[1] || '').length - +(eSplit[1] || 0);
  13795. return len > 0 ? len : 0;
  13796. }
  13797. /**
  13798. * 把小数转成整数,如果是小数则放大成整数
  13799. * @private
  13800. * @param {*number} num 输入数
  13801. */
  13802. function float2Fixed(num) {
  13803. if (num.toString().indexOf('e') === -1) {
  13804. return Number(num.toString().replace('.', ''));
  13805. }
  13806. var dLen = digitLength(num);
  13807. return dLen > 0 ? strip(Number(num) * Math.pow(10, dLen)) : Number(num);
  13808. }
  13809. /**
  13810. * 检测数字是否越界,如果越界给出提示
  13811. * @private
  13812. * @param {*number} num 输入数
  13813. */
  13814. function checkBoundary(num) {
  13815. if (_boundaryCheckingState) {
  13816. if (num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) {
  13817. console.warn("".concat(num, " \u8D85\u51FA\u4E86\u7CBE\u5EA6\u9650\u5236\uFF0C\u7ED3\u679C\u53EF\u80FD\u4E0D\u6B63\u786E"));
  13818. }
  13819. }
  13820. }
  13821. /**
  13822. * 把递归操作扁平迭代化
  13823. * @param {number[]} arr 要操作的数字数组
  13824. * @param {function} operation 迭代操作
  13825. * @private
  13826. */
  13827. function iteratorOperation(arr, operation) {
  13828. var _arr = (0, _toArray2.default)(arr),
  13829. num1 = _arr[0],
  13830. num2 = _arr[1],
  13831. others = _arr.slice(2);
  13832. var res = operation(num1, num2);
  13833. others.forEach(function (num) {
  13834. res = operation(res, num);
  13835. });
  13836. return res;
  13837. }
  13838. /**
  13839. * 高精度乘法
  13840. * @export
  13841. */
  13842. function times() {
  13843. for (var _len = arguments.length, nums = new Array(_len), _key = 0; _key < _len; _key++) {
  13844. nums[_key] = arguments[_key];
  13845. }
  13846. if (nums.length > 2) {
  13847. return iteratorOperation(nums, times);
  13848. }
  13849. var num1 = nums[0],
  13850. num2 = nums[1];
  13851. var num1Changed = float2Fixed(num1);
  13852. var num2Changed = float2Fixed(num2);
  13853. var baseNum = digitLength(num1) + digitLength(num2);
  13854. var leftValue = num1Changed * num2Changed;
  13855. checkBoundary(leftValue);
  13856. return leftValue / Math.pow(10, baseNum);
  13857. }
  13858. /**
  13859. * 高精度加法
  13860. * @export
  13861. */
  13862. function plus() {
  13863. for (var _len2 = arguments.length, nums = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  13864. nums[_key2] = arguments[_key2];
  13865. }
  13866. if (nums.length > 2) {
  13867. return iteratorOperation(nums, plus);
  13868. }
  13869. var num1 = nums[0],
  13870. num2 = nums[1];
  13871. // 取最大的小数位
  13872. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  13873. // 把小数都转为整数然后再计算
  13874. return (times(num1, baseNum) + times(num2, baseNum)) / baseNum;
  13875. }
  13876. /**
  13877. * 高精度减法
  13878. * @export
  13879. */
  13880. function minus() {
  13881. for (var _len3 = arguments.length, nums = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  13882. nums[_key3] = arguments[_key3];
  13883. }
  13884. if (nums.length > 2) {
  13885. return iteratorOperation(nums, minus);
  13886. }
  13887. var num1 = nums[0],
  13888. num2 = nums[1];
  13889. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  13890. return (times(num1, baseNum) - times(num2, baseNum)) / baseNum;
  13891. }
  13892. /**
  13893. * 高精度除法
  13894. * @export
  13895. */
  13896. function divide() {
  13897. for (var _len4 = arguments.length, nums = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  13898. nums[_key4] = arguments[_key4];
  13899. }
  13900. if (nums.length > 2) {
  13901. return iteratorOperation(nums, divide);
  13902. }
  13903. var num1 = nums[0],
  13904. num2 = nums[1];
  13905. var num1Changed = float2Fixed(num1);
  13906. var num2Changed = float2Fixed(num2);
  13907. checkBoundary(num1Changed);
  13908. checkBoundary(num2Changed);
  13909. // 重要,这里必须用strip进行修正
  13910. return times(num1Changed / num2Changed, strip(Math.pow(10, digitLength(num2) - digitLength(num1))));
  13911. }
  13912. /**
  13913. * 四舍五入
  13914. * @export
  13915. */
  13916. function round(num, ratio) {
  13917. var base = Math.pow(10, ratio);
  13918. var result = divide(Math.round(Math.abs(times(num, base))), base);
  13919. if (num < 0 && result !== 0) {
  13920. result = times(result, -1);
  13921. }
  13922. // 位数不足则补0
  13923. return result;
  13924. }
  13925. /**
  13926. * 是否进行边界检查,默认开启
  13927. * @param flag 标记开关,true 为开启,false 为关闭,默认为 true
  13928. * @export
  13929. */
  13930. function enableBoundaryChecking() {
  13931. var flag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  13932. _boundaryCheckingState = flag;
  13933. }
  13934. var _default = {
  13935. times: times,
  13936. plus: plus,
  13937. minus: minus,
  13938. divide: divide,
  13939. round: round,
  13940. enableBoundaryChecking: enableBoundaryChecking
  13941. };
  13942. exports.default = _default;
  13943. /***/ }),
  13944. /* 64 */
  13945. /*!********************************************************!*\
  13946. !*** ./node_modules/@babel/runtime/helpers/toArray.js ***!
  13947. \********************************************************/
  13948. /*! no static exports found */
  13949. /***/ (function(module, exports, __webpack_require__) {
  13950. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  13951. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  13952. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  13953. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  13954. function _toArray(arr) {
  13955. return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
  13956. }
  13957. module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  13958. /***/ }),
  13959. /* 65 */
  13960. /*!************************************************************************************!*\
  13961. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/config.js ***!
  13962. \************************************************************************************/
  13963. /*! no static exports found */
  13964. /***/ (function(module, exports, __webpack_require__) {
  13965. "use strict";
  13966. Object.defineProperty(exports, "__esModule", {
  13967. value: true
  13968. });
  13969. exports.default = void 0;
  13970. // 此版本发布于2022-00-24
  13971. var version = '2.0.34';
  13972. // 开发环境才提示,生产环境不会提示
  13973. if (true) {
  13974. console.log("\n %c uView V".concat(version, " %c https://uviewui.com/ \n\n"), 'color: #ffffff; background: #3c9cff; padding:5px 0; border-radius: 5px;');
  13975. }
  13976. var _default = {
  13977. v: version,
  13978. version: version,
  13979. // 主题名称
  13980. type: ['primary', 'success', 'info', 'error', 'warning'],
  13981. // 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持
  13982. color: {
  13983. 'u-primary': '#2979ff',
  13984. 'u-warning': '#ff9900',
  13985. 'u-success': '#19be6b',
  13986. 'u-error': '#fa3534',
  13987. 'u-info': '#909399',
  13988. 'u-main-color': '#303133',
  13989. 'u-content-color': '#606266',
  13990. 'u-tips-color': '#909399',
  13991. 'u-light-color': '#c0c4cc'
  13992. },
  13993. // 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx
  13994. unit: 'px'
  13995. };
  13996. exports.default = _default;
  13997. /***/ }),
  13998. /* 66 */
  13999. /*!***********************************************************************************!*\
  14000. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props.js ***!
  14001. \***********************************************************************************/
  14002. /*! no static exports found */
  14003. /***/ (function(module, exports, __webpack_require__) {
  14004. "use strict";
  14005. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  14006. Object.defineProperty(exports, "__esModule", {
  14007. value: true
  14008. });
  14009. exports.default = void 0;
  14010. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  14011. var _config = _interopRequireDefault(__webpack_require__(/*! ./config */ 65));
  14012. var _actionSheet = _interopRequireDefault(__webpack_require__(/*! ./props/actionSheet.js */ 67));
  14013. var _album = _interopRequireDefault(__webpack_require__(/*! ./props/album.js */ 68));
  14014. var _alert = _interopRequireDefault(__webpack_require__(/*! ./props/alert.js */ 69));
  14015. var _avatar = _interopRequireDefault(__webpack_require__(/*! ./props/avatar */ 70));
  14016. var _avatarGroup = _interopRequireDefault(__webpack_require__(/*! ./props/avatarGroup */ 71));
  14017. var _backtop = _interopRequireDefault(__webpack_require__(/*! ./props/backtop */ 72));
  14018. var _badge = _interopRequireDefault(__webpack_require__(/*! ./props/badge */ 73));
  14019. var _button = _interopRequireDefault(__webpack_require__(/*! ./props/button */ 74));
  14020. var _calendar = _interopRequireDefault(__webpack_require__(/*! ./props/calendar */ 75));
  14021. var _carKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/carKeyboard */ 76));
  14022. var _cell = _interopRequireDefault(__webpack_require__(/*! ./props/cell */ 77));
  14023. var _cellGroup = _interopRequireDefault(__webpack_require__(/*! ./props/cellGroup */ 78));
  14024. var _checkbox = _interopRequireDefault(__webpack_require__(/*! ./props/checkbox */ 79));
  14025. var _checkboxGroup = _interopRequireDefault(__webpack_require__(/*! ./props/checkboxGroup */ 80));
  14026. var _circleProgress = _interopRequireDefault(__webpack_require__(/*! ./props/circleProgress */ 81));
  14027. var _code = _interopRequireDefault(__webpack_require__(/*! ./props/code */ 82));
  14028. var _codeInput = _interopRequireDefault(__webpack_require__(/*! ./props/codeInput */ 83));
  14029. var _col = _interopRequireDefault(__webpack_require__(/*! ./props/col */ 84));
  14030. var _collapse = _interopRequireDefault(__webpack_require__(/*! ./props/collapse */ 85));
  14031. var _collapseItem = _interopRequireDefault(__webpack_require__(/*! ./props/collapseItem */ 86));
  14032. var _columnNotice = _interopRequireDefault(__webpack_require__(/*! ./props/columnNotice */ 87));
  14033. var _countDown = _interopRequireDefault(__webpack_require__(/*! ./props/countDown */ 88));
  14034. var _countTo = _interopRequireDefault(__webpack_require__(/*! ./props/countTo */ 89));
  14035. var _datetimePicker = _interopRequireDefault(__webpack_require__(/*! ./props/datetimePicker */ 90));
  14036. var _divider = _interopRequireDefault(__webpack_require__(/*! ./props/divider */ 91));
  14037. var _empty = _interopRequireDefault(__webpack_require__(/*! ./props/empty */ 92));
  14038. var _form = _interopRequireDefault(__webpack_require__(/*! ./props/form */ 93));
  14039. var _formItem = _interopRequireDefault(__webpack_require__(/*! ./props/formItem */ 94));
  14040. var _gap = _interopRequireDefault(__webpack_require__(/*! ./props/gap */ 95));
  14041. var _grid = _interopRequireDefault(__webpack_require__(/*! ./props/grid */ 96));
  14042. var _gridItem = _interopRequireDefault(__webpack_require__(/*! ./props/gridItem */ 97));
  14043. var _icon = _interopRequireDefault(__webpack_require__(/*! ./props/icon */ 98));
  14044. var _image = _interopRequireDefault(__webpack_require__(/*! ./props/image */ 99));
  14045. var _indexAnchor = _interopRequireDefault(__webpack_require__(/*! ./props/indexAnchor */ 100));
  14046. var _indexList = _interopRequireDefault(__webpack_require__(/*! ./props/indexList */ 101));
  14047. var _input = _interopRequireDefault(__webpack_require__(/*! ./props/input */ 102));
  14048. var _keyboard = _interopRequireDefault(__webpack_require__(/*! ./props/keyboard */ 103));
  14049. var _line = _interopRequireDefault(__webpack_require__(/*! ./props/line */ 104));
  14050. var _lineProgress = _interopRequireDefault(__webpack_require__(/*! ./props/lineProgress */ 105));
  14051. var _link = _interopRequireDefault(__webpack_require__(/*! ./props/link */ 106));
  14052. var _list = _interopRequireDefault(__webpack_require__(/*! ./props/list */ 107));
  14053. var _listItem = _interopRequireDefault(__webpack_require__(/*! ./props/listItem */ 108));
  14054. var _loadingIcon = _interopRequireDefault(__webpack_require__(/*! ./props/loadingIcon */ 109));
  14055. var _loadingPage = _interopRequireDefault(__webpack_require__(/*! ./props/loadingPage */ 110));
  14056. var _loadmore = _interopRequireDefault(__webpack_require__(/*! ./props/loadmore */ 111));
  14057. var _modal = _interopRequireDefault(__webpack_require__(/*! ./props/modal */ 112));
  14058. var _navbar = _interopRequireDefault(__webpack_require__(/*! ./props/navbar */ 113));
  14059. var _noNetwork = _interopRequireDefault(__webpack_require__(/*! ./props/noNetwork */ 115));
  14060. var _noticeBar = _interopRequireDefault(__webpack_require__(/*! ./props/noticeBar */ 116));
  14061. var _notify = _interopRequireDefault(__webpack_require__(/*! ./props/notify */ 117));
  14062. var _numberBox = _interopRequireDefault(__webpack_require__(/*! ./props/numberBox */ 118));
  14063. var _numberKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/numberKeyboard */ 119));
  14064. var _overlay = _interopRequireDefault(__webpack_require__(/*! ./props/overlay */ 120));
  14065. var _parse = _interopRequireDefault(__webpack_require__(/*! ./props/parse */ 121));
  14066. var _picker = _interopRequireDefault(__webpack_require__(/*! ./props/picker */ 122));
  14067. var _popup = _interopRequireDefault(__webpack_require__(/*! ./props/popup */ 123));
  14068. var _radio = _interopRequireDefault(__webpack_require__(/*! ./props/radio */ 124));
  14069. var _radioGroup = _interopRequireDefault(__webpack_require__(/*! ./props/radioGroup */ 125));
  14070. var _rate = _interopRequireDefault(__webpack_require__(/*! ./props/rate */ 126));
  14071. var _readMore = _interopRequireDefault(__webpack_require__(/*! ./props/readMore */ 127));
  14072. var _row = _interopRequireDefault(__webpack_require__(/*! ./props/row */ 128));
  14073. var _rowNotice = _interopRequireDefault(__webpack_require__(/*! ./props/rowNotice */ 129));
  14074. var _scrollList = _interopRequireDefault(__webpack_require__(/*! ./props/scrollList */ 130));
  14075. var _search = _interopRequireDefault(__webpack_require__(/*! ./props/search */ 131));
  14076. var _section = _interopRequireDefault(__webpack_require__(/*! ./props/section */ 132));
  14077. var _skeleton = _interopRequireDefault(__webpack_require__(/*! ./props/skeleton */ 133));
  14078. var _slider = _interopRequireDefault(__webpack_require__(/*! ./props/slider */ 134));
  14079. var _statusBar = _interopRequireDefault(__webpack_require__(/*! ./props/statusBar */ 135));
  14080. var _steps = _interopRequireDefault(__webpack_require__(/*! ./props/steps */ 136));
  14081. var _stepsItem = _interopRequireDefault(__webpack_require__(/*! ./props/stepsItem */ 137));
  14082. var _sticky = _interopRequireDefault(__webpack_require__(/*! ./props/sticky */ 138));
  14083. var _subsection = _interopRequireDefault(__webpack_require__(/*! ./props/subsection */ 139));
  14084. var _swipeAction = _interopRequireDefault(__webpack_require__(/*! ./props/swipeAction */ 140));
  14085. var _swipeActionItem = _interopRequireDefault(__webpack_require__(/*! ./props/swipeActionItem */ 141));
  14086. var _swiper = _interopRequireDefault(__webpack_require__(/*! ./props/swiper */ 142));
  14087. var _swipterIndicator = _interopRequireDefault(__webpack_require__(/*! ./props/swipterIndicator */ 143));
  14088. var _switch2 = _interopRequireDefault(__webpack_require__(/*! ./props/switch */ 144));
  14089. var _tabbar = _interopRequireDefault(__webpack_require__(/*! ./props/tabbar */ 145));
  14090. var _tabbarItem = _interopRequireDefault(__webpack_require__(/*! ./props/tabbarItem */ 146));
  14091. var _tabs = _interopRequireDefault(__webpack_require__(/*! ./props/tabs */ 147));
  14092. var _tag = _interopRequireDefault(__webpack_require__(/*! ./props/tag */ 148));
  14093. var _text = _interopRequireDefault(__webpack_require__(/*! ./props/text */ 149));
  14094. var _textarea = _interopRequireDefault(__webpack_require__(/*! ./props/textarea */ 150));
  14095. var _toast = _interopRequireDefault(__webpack_require__(/*! ./props/toast */ 151));
  14096. var _toolbar = _interopRequireDefault(__webpack_require__(/*! ./props/toolbar */ 152));
  14097. var _tooltip = _interopRequireDefault(__webpack_require__(/*! ./props/tooltip */ 153));
  14098. var _transition = _interopRequireDefault(__webpack_require__(/*! ./props/transition */ 154));
  14099. var _upload = _interopRequireDefault(__webpack_require__(/*! ./props/upload */ 155));
  14100. 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; }
  14101. 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; }
  14102. var color = _config.default.color;
  14103. 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);
  14104. exports.default = _default;
  14105. /***/ }),
  14106. /* 67 */
  14107. /*!***********************************************************************************************!*\
  14108. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/actionSheet.js ***!
  14109. \***********************************************************************************************/
  14110. /*! no static exports found */
  14111. /***/ (function(module, exports, __webpack_require__) {
  14112. "use strict";
  14113. Object.defineProperty(exports, "__esModule", {
  14114. value: true
  14115. });
  14116. exports.default = void 0;
  14117. /*
  14118. * @Author : LQ
  14119. * @Description :
  14120. * @version : 1.0
  14121. * @Date : 2021-08-20 16:44:21
  14122. * @LastAuthor : LQ
  14123. * @lastTime : 2021-08-20 16:44:35
  14124. * @FilePath : /u-view2.0/uview-ui/libs/config/props/actionSheet.js
  14125. */
  14126. var _default = {
  14127. // action-sheet组件
  14128. actionSheet: {
  14129. show: false,
  14130. title: '',
  14131. description: '',
  14132. actions: function actions() {
  14133. return [];
  14134. },
  14135. index: '',
  14136. cancelText: '',
  14137. closeOnClickAction: true,
  14138. safeAreaInsetBottom: true,
  14139. openType: '',
  14140. closeOnClickOverlay: true,
  14141. round: 0
  14142. }
  14143. };
  14144. exports.default = _default;
  14145. /***/ }),
  14146. /* 68 */
  14147. /*!*****************************************************************************************!*\
  14148. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/album.js ***!
  14149. \*****************************************************************************************/
  14150. /*! no static exports found */
  14151. /***/ (function(module, exports, __webpack_require__) {
  14152. "use strict";
  14153. Object.defineProperty(exports, "__esModule", {
  14154. value: true
  14155. });
  14156. exports.default = void 0;
  14157. /*
  14158. * @Author : LQ
  14159. * @Description :
  14160. * @version : 1.0
  14161. * @Date : 2021-08-20 16:44:21
  14162. * @LastAuthor : LQ
  14163. * @lastTime : 2021-08-20 16:47:24
  14164. * @FilePath : /u-view2.0/uview-ui/libs/config/props/album.js
  14165. */
  14166. var _default = {
  14167. // album 组件
  14168. album: {
  14169. urls: function urls() {
  14170. return [];
  14171. },
  14172. keyName: '',
  14173. singleSize: 180,
  14174. multipleSize: 70,
  14175. space: 6,
  14176. singleMode: 'scaleToFill',
  14177. multipleMode: 'aspectFill',
  14178. maxCount: 9,
  14179. previewFullImage: true,
  14180. rowCount: 3,
  14181. showMore: true
  14182. }
  14183. };
  14184. exports.default = _default;
  14185. /***/ }),
  14186. /* 69 */
  14187. /*!*****************************************************************************************!*\
  14188. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/alert.js ***!
  14189. \*****************************************************************************************/
  14190. /*! no static exports found */
  14191. /***/ (function(module, exports, __webpack_require__) {
  14192. "use strict";
  14193. Object.defineProperty(exports, "__esModule", {
  14194. value: true
  14195. });
  14196. exports.default = void 0;
  14197. /*
  14198. * @Author : LQ
  14199. * @Description :
  14200. * @version : 1.0
  14201. * @Date : 2021-08-20 16:44:21
  14202. * @LastAuthor : LQ
  14203. * @lastTime : 2021-08-20 16:48:53
  14204. * @FilePath : /u-view2.0/uview-ui/libs/config/props/alert.js
  14205. */
  14206. var _default = {
  14207. // alert警告组件
  14208. alert: {
  14209. title: '',
  14210. type: 'warning',
  14211. description: '',
  14212. closable: false,
  14213. showIcon: false,
  14214. effect: 'light',
  14215. center: false,
  14216. fontSize: 14
  14217. }
  14218. };
  14219. exports.default = _default;
  14220. /***/ }),
  14221. /* 70 */
  14222. /*!******************************************************************************************!*\
  14223. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/avatar.js ***!
  14224. \******************************************************************************************/
  14225. /*! no static exports found */
  14226. /***/ (function(module, exports, __webpack_require__) {
  14227. "use strict";
  14228. Object.defineProperty(exports, "__esModule", {
  14229. value: true
  14230. });
  14231. exports.default = void 0;
  14232. /*
  14233. * @Author : LQ
  14234. * @Description :
  14235. * @version : 1.0
  14236. * @Date : 2021-08-20 16:44:21
  14237. * @LastAuthor : LQ
  14238. * @lastTime : 2021-08-20 16:49:22
  14239. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatar.js
  14240. */
  14241. var _default = {
  14242. // avatar 组件
  14243. avatar: {
  14244. src: '',
  14245. shape: 'circle',
  14246. size: 40,
  14247. mode: 'scaleToFill',
  14248. text: '',
  14249. bgColor: '#c0c4cc',
  14250. color: '#ffffff',
  14251. fontSize: 18,
  14252. icon: '',
  14253. mpAvatar: false,
  14254. randomBgColor: false,
  14255. defaultUrl: '',
  14256. colorIndex: '',
  14257. name: ''
  14258. }
  14259. };
  14260. exports.default = _default;
  14261. /***/ }),
  14262. /* 71 */
  14263. /*!***********************************************************************************************!*\
  14264. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/avatarGroup.js ***!
  14265. \***********************************************************************************************/
  14266. /*! no static exports found */
  14267. /***/ (function(module, exports, __webpack_require__) {
  14268. "use strict";
  14269. Object.defineProperty(exports, "__esModule", {
  14270. value: true
  14271. });
  14272. exports.default = void 0;
  14273. /*
  14274. * @Author : LQ
  14275. * @Description :
  14276. * @version : 1.0
  14277. * @Date : 2021-08-20 16:44:21
  14278. * @LastAuthor : LQ
  14279. * @lastTime : 2021-08-20 16:49:55
  14280. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatarGroup.js
  14281. */
  14282. var _default = {
  14283. // avatarGroup 组件
  14284. avatarGroup: {
  14285. urls: function urls() {
  14286. return [];
  14287. },
  14288. maxCount: 5,
  14289. shape: 'circle',
  14290. mode: 'scaleToFill',
  14291. showMore: true,
  14292. size: 40,
  14293. keyName: '',
  14294. gap: 0.5,
  14295. extraValue: 0
  14296. }
  14297. };
  14298. exports.default = _default;
  14299. /***/ }),
  14300. /* 72 */
  14301. /*!*******************************************************************************************!*\
  14302. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/backtop.js ***!
  14303. \*******************************************************************************************/
  14304. /*! no static exports found */
  14305. /***/ (function(module, exports, __webpack_require__) {
  14306. "use strict";
  14307. Object.defineProperty(exports, "__esModule", {
  14308. value: true
  14309. });
  14310. exports.default = void 0;
  14311. /*
  14312. * @Author : LQ
  14313. * @Description :
  14314. * @version : 1.0
  14315. * @Date : 2021-08-20 16:44:21
  14316. * @LastAuthor : LQ
  14317. * @lastTime : 2021-08-20 16:50:18
  14318. * @FilePath : /u-view2.0/uview-ui/libs/config/props/backtop.js
  14319. */
  14320. var _default = {
  14321. // backtop组件
  14322. backtop: {
  14323. mode: 'circle',
  14324. icon: 'arrow-upward',
  14325. text: '',
  14326. duration: 100,
  14327. scrollTop: 0,
  14328. top: 400,
  14329. bottom: 100,
  14330. right: 20,
  14331. zIndex: 9,
  14332. iconStyle: function iconStyle() {
  14333. return {
  14334. color: '#909399',
  14335. fontSize: '19px'
  14336. };
  14337. }
  14338. }
  14339. };
  14340. exports.default = _default;
  14341. /***/ }),
  14342. /* 73 */
  14343. /*!*****************************************************************************************!*\
  14344. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/badge.js ***!
  14345. \*****************************************************************************************/
  14346. /*! no static exports found */
  14347. /***/ (function(module, exports, __webpack_require__) {
  14348. "use strict";
  14349. Object.defineProperty(exports, "__esModule", {
  14350. value: true
  14351. });
  14352. exports.default = void 0;
  14353. /*
  14354. * @Author : LQ
  14355. * @Description :
  14356. * @version : 1.0
  14357. * @Date : 2021-08-20 16:44:21
  14358. * @LastAuthor : LQ
  14359. * @lastTime : 2021-08-23 19:51:50
  14360. * @FilePath : /u-view2.0/uview-ui/libs/config/props/badge.js
  14361. */
  14362. var _default = {
  14363. // 徽标数组件
  14364. badge: {
  14365. isDot: false,
  14366. value: '',
  14367. show: true,
  14368. max: 999,
  14369. type: 'error',
  14370. showZero: false,
  14371. bgColor: null,
  14372. color: null,
  14373. shape: 'circle',
  14374. numberType: 'overflow',
  14375. offset: function offset() {
  14376. return [];
  14377. },
  14378. inverted: false,
  14379. absolute: false
  14380. }
  14381. };
  14382. exports.default = _default;
  14383. /***/ }),
  14384. /* 74 */
  14385. /*!******************************************************************************************!*\
  14386. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/button.js ***!
  14387. \******************************************************************************************/
  14388. /*! no static exports found */
  14389. /***/ (function(module, exports, __webpack_require__) {
  14390. "use strict";
  14391. Object.defineProperty(exports, "__esModule", {
  14392. value: true
  14393. });
  14394. exports.default = void 0;
  14395. /*
  14396. * @Author : LQ
  14397. * @Description :
  14398. * @version : 1.0
  14399. * @Date : 2021-08-20 16:44:21
  14400. * @LastAuthor : LQ
  14401. * @lastTime : 2021-08-20 16:51:27
  14402. * @FilePath : /u-view2.0/uview-ui/libs/config/props/button.js
  14403. */
  14404. var _default = {
  14405. // button组件
  14406. button: {
  14407. hairline: false,
  14408. type: 'info',
  14409. size: 'normal',
  14410. shape: 'square',
  14411. plain: false,
  14412. disabled: false,
  14413. loading: false,
  14414. loadingText: '',
  14415. loadingMode: 'spinner',
  14416. loadingSize: 15,
  14417. openType: '',
  14418. formType: '',
  14419. appParameter: '',
  14420. hoverStopPropagation: true,
  14421. lang: 'en',
  14422. sessionFrom: '',
  14423. sendMessageTitle: '',
  14424. sendMessagePath: '',
  14425. sendMessageImg: '',
  14426. showMessageCard: false,
  14427. dataName: '',
  14428. throttleTime: 0,
  14429. hoverStartTime: 0,
  14430. hoverStayTime: 200,
  14431. text: '',
  14432. icon: '',
  14433. iconColor: '',
  14434. color: ''
  14435. }
  14436. };
  14437. exports.default = _default;
  14438. /***/ }),
  14439. /* 75 */
  14440. /*!********************************************************************************************!*\
  14441. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/calendar.js ***!
  14442. \********************************************************************************************/
  14443. /*! no static exports found */
  14444. /***/ (function(module, exports, __webpack_require__) {
  14445. "use strict";
  14446. Object.defineProperty(exports, "__esModule", {
  14447. value: true
  14448. });
  14449. exports.default = void 0;
  14450. /*
  14451. * @Author : LQ
  14452. * @Description :
  14453. * @version : 1.0
  14454. * @Date : 2021-08-20 16:44:21
  14455. * @LastAuthor : LQ
  14456. * @lastTime : 2021-08-20 16:52:43
  14457. * @FilePath : /u-view2.0/uview-ui/libs/config/props/calendar.js
  14458. */
  14459. var _default = {
  14460. // calendar 组件
  14461. calendar: {
  14462. title: '日期选择',
  14463. showTitle: true,
  14464. showSubtitle: true,
  14465. mode: 'single',
  14466. startText: '开始',
  14467. endText: '结束',
  14468. customList: function customList() {
  14469. return [];
  14470. },
  14471. color: '#3c9cff',
  14472. minDate: 0,
  14473. maxDate: 0,
  14474. defaultDate: null,
  14475. maxCount: Number.MAX_SAFE_INTEGER,
  14476. // Infinity
  14477. rowHeight: 56,
  14478. formatter: null,
  14479. showLunar: false,
  14480. showMark: true,
  14481. confirmText: '确定',
  14482. confirmDisabledText: '确定',
  14483. show: false,
  14484. closeOnClickOverlay: false,
  14485. readonly: false,
  14486. showConfirm: true,
  14487. maxRange: Number.MAX_SAFE_INTEGER,
  14488. // Infinity
  14489. rangePrompt: '',
  14490. showRangePrompt: true,
  14491. allowSameDay: false,
  14492. round: 0,
  14493. monthNum: 3
  14494. }
  14495. };
  14496. exports.default = _default;
  14497. /***/ }),
  14498. /* 76 */
  14499. /*!***********************************************************************************************!*\
  14500. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/carKeyboard.js ***!
  14501. \***********************************************************************************************/
  14502. /*! no static exports found */
  14503. /***/ (function(module, exports, __webpack_require__) {
  14504. "use strict";
  14505. Object.defineProperty(exports, "__esModule", {
  14506. value: true
  14507. });
  14508. exports.default = void 0;
  14509. /*
  14510. * @Author : LQ
  14511. * @Description :
  14512. * @version : 1.0
  14513. * @Date : 2021-08-20 16:44:21
  14514. * @LastAuthor : LQ
  14515. * @lastTime : 2021-08-20 16:53:20
  14516. * @FilePath : /u-view2.0/uview-ui/libs/config/props/carKeyboard.js
  14517. */
  14518. var _default = {
  14519. // 车牌号键盘
  14520. carKeyboard: {
  14521. random: false
  14522. }
  14523. };
  14524. exports.default = _default;
  14525. /***/ }),
  14526. /* 77 */
  14527. /*!****************************************************************************************!*\
  14528. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/cell.js ***!
  14529. \****************************************************************************************/
  14530. /*! no static exports found */
  14531. /***/ (function(module, exports, __webpack_require__) {
  14532. "use strict";
  14533. Object.defineProperty(exports, "__esModule", {
  14534. value: true
  14535. });
  14536. exports.default = void 0;
  14537. /*
  14538. * @Author : LQ
  14539. * @Description :
  14540. * @version : 1.0
  14541. * @Date : 2021-08-20 16:44:21
  14542. * @LastAuthor : LQ
  14543. * @lastTime : 2021-08-23 20:53:09
  14544. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cell.js
  14545. */
  14546. var _default = {
  14547. // cell组件的props
  14548. cell: {
  14549. customClass: '',
  14550. title: '',
  14551. label: '',
  14552. value: '',
  14553. icon: '',
  14554. disabled: false,
  14555. border: true,
  14556. center: false,
  14557. url: '',
  14558. linkType: 'navigateTo',
  14559. clickable: false,
  14560. isLink: false,
  14561. required: false,
  14562. arrowDirection: '',
  14563. iconStyle: {},
  14564. rightIconStyle: {},
  14565. rightIcon: 'arrow-right',
  14566. titleStyle: {},
  14567. size: '',
  14568. stop: true,
  14569. name: ''
  14570. }
  14571. };
  14572. exports.default = _default;
  14573. /***/ }),
  14574. /* 78 */
  14575. /*!*********************************************************************************************!*\
  14576. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/cellGroup.js ***!
  14577. \*********************************************************************************************/
  14578. /*! no static exports found */
  14579. /***/ (function(module, exports, __webpack_require__) {
  14580. "use strict";
  14581. Object.defineProperty(exports, "__esModule", {
  14582. value: true
  14583. });
  14584. exports.default = void 0;
  14585. /*
  14586. * @Author : LQ
  14587. * @Description :
  14588. * @version : 1.0
  14589. * @Date : 2021-08-20 16:44:21
  14590. * @LastAuthor : LQ
  14591. * @lastTime : 2021-08-20 16:54:16
  14592. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cellGroup.js
  14593. */
  14594. var _default = {
  14595. // cell-group组件的props
  14596. cellGroup: {
  14597. title: '',
  14598. border: true,
  14599. customStyle: {}
  14600. }
  14601. };
  14602. exports.default = _default;
  14603. /***/ }),
  14604. /* 79 */
  14605. /*!********************************************************************************************!*\
  14606. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/checkbox.js ***!
  14607. \********************************************************************************************/
  14608. /*! no static exports found */
  14609. /***/ (function(module, exports, __webpack_require__) {
  14610. "use strict";
  14611. Object.defineProperty(exports, "__esModule", {
  14612. value: true
  14613. });
  14614. exports.default = void 0;
  14615. /*
  14616. * @Author : LQ
  14617. * @Description :
  14618. * @version : 1.0
  14619. * @Date : 2021-08-20 16:44:21
  14620. * @LastAuthor : LQ
  14621. * @lastTime : 2021-08-23 21:06:59
  14622. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkbox.js
  14623. */
  14624. var _default = {
  14625. // checkbox组件
  14626. checkbox: {
  14627. name: '',
  14628. shape: '',
  14629. size: '',
  14630. checkbox: false,
  14631. disabled: '',
  14632. activeColor: '',
  14633. inactiveColor: '',
  14634. iconSize: '',
  14635. iconColor: '',
  14636. label: '',
  14637. labelSize: '',
  14638. labelColor: '',
  14639. labelDisabled: ''
  14640. }
  14641. };
  14642. exports.default = _default;
  14643. /***/ }),
  14644. /* 80 */
  14645. /*!*************************************************************************************************!*\
  14646. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/checkboxGroup.js ***!
  14647. \*************************************************************************************************/
  14648. /*! no static exports found */
  14649. /***/ (function(module, exports, __webpack_require__) {
  14650. "use strict";
  14651. Object.defineProperty(exports, "__esModule", {
  14652. value: true
  14653. });
  14654. exports.default = void 0;
  14655. /*
  14656. * @Author : LQ
  14657. * @Description :
  14658. * @version : 1.0
  14659. * @Date : 2021-08-20 16:44:21
  14660. * @LastAuthor : LQ
  14661. * @lastTime : 2021-08-20 16:54:47
  14662. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkboxGroup.js
  14663. */
  14664. var _default = {
  14665. // checkbox-group组件
  14666. checkboxGroup: {
  14667. name: '',
  14668. value: function value() {
  14669. return [];
  14670. },
  14671. shape: 'square',
  14672. disabled: false,
  14673. activeColor: '#2979ff',
  14674. inactiveColor: '#c8c9cc',
  14675. size: 18,
  14676. placement: 'row',
  14677. labelSize: 14,
  14678. labelColor: '#303133',
  14679. labelDisabled: false,
  14680. iconColor: '#ffffff',
  14681. iconSize: 12,
  14682. iconPlacement: 'left',
  14683. borderBottom: false
  14684. }
  14685. };
  14686. exports.default = _default;
  14687. /***/ }),
  14688. /* 81 */
  14689. /*!**************************************************************************************************!*\
  14690. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/circleProgress.js ***!
  14691. \**************************************************************************************************/
  14692. /*! no static exports found */
  14693. /***/ (function(module, exports, __webpack_require__) {
  14694. "use strict";
  14695. Object.defineProperty(exports, "__esModule", {
  14696. value: true
  14697. });
  14698. exports.default = void 0;
  14699. /*
  14700. * @Author : LQ
  14701. * @Description :
  14702. * @version : 1.0
  14703. * @Date : 2021-08-20 16:44:21
  14704. * @LastAuthor : LQ
  14705. * @lastTime : 2021-08-20 16:55:02
  14706. * @FilePath : /u-view2.0/uview-ui/libs/config/props/circleProgress.js
  14707. */
  14708. var _default = {
  14709. // circleProgress 组件
  14710. circleProgress: {
  14711. percentage: 30
  14712. }
  14713. };
  14714. exports.default = _default;
  14715. /***/ }),
  14716. /* 82 */
  14717. /*!****************************************************************************************!*\
  14718. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/code.js ***!
  14719. \****************************************************************************************/
  14720. /*! no static exports found */
  14721. /***/ (function(module, exports, __webpack_require__) {
  14722. "use strict";
  14723. Object.defineProperty(exports, "__esModule", {
  14724. value: true
  14725. });
  14726. exports.default = void 0;
  14727. /*
  14728. * @Author : LQ
  14729. * @Description :
  14730. * @version : 1.0
  14731. * @Date : 2021-08-20 16:44:21
  14732. * @LastAuthor : LQ
  14733. * @lastTime : 2021-08-20 16:55:27
  14734. * @FilePath : /u-view2.0/uview-ui/libs/config/props/code.js
  14735. */
  14736. var _default = {
  14737. // code 组件
  14738. code: {
  14739. seconds: 60,
  14740. startText: '获取验证码',
  14741. changeText: 'X秒重新获取',
  14742. endText: '重新获取',
  14743. keepRunning: false,
  14744. uniqueKey: ''
  14745. }
  14746. };
  14747. exports.default = _default;
  14748. /***/ }),
  14749. /* 83 */
  14750. /*!*********************************************************************************************!*\
  14751. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/codeInput.js ***!
  14752. \*********************************************************************************************/
  14753. /*! no static exports found */
  14754. /***/ (function(module, exports, __webpack_require__) {
  14755. "use strict";
  14756. Object.defineProperty(exports, "__esModule", {
  14757. value: true
  14758. });
  14759. exports.default = void 0;
  14760. /*
  14761. * @Author : LQ
  14762. * @Description :
  14763. * @version : 1.0
  14764. * @Date : 2021-08-20 16:44:21
  14765. * @LastAuthor : LQ
  14766. * @lastTime : 2021-08-20 16:55:58
  14767. * @FilePath : /u-view2.0/uview-ui/libs/config/props/codeInput.js
  14768. */
  14769. var _default = {
  14770. // codeInput 组件
  14771. codeInput: {
  14772. adjustPosition: true,
  14773. maxlength: 6,
  14774. dot: false,
  14775. mode: 'box',
  14776. hairline: false,
  14777. space: 10,
  14778. value: '',
  14779. focus: false,
  14780. bold: false,
  14781. color: '#606266',
  14782. fontSize: 18,
  14783. size: 35,
  14784. disabledKeyboard: false,
  14785. borderColor: '#c9cacc',
  14786. disabledDot: true
  14787. }
  14788. };
  14789. exports.default = _default;
  14790. /***/ }),
  14791. /* 84 */
  14792. /*!***************************************************************************************!*\
  14793. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/col.js ***!
  14794. \***************************************************************************************/
  14795. /*! no static exports found */
  14796. /***/ (function(module, exports, __webpack_require__) {
  14797. "use strict";
  14798. Object.defineProperty(exports, "__esModule", {
  14799. value: true
  14800. });
  14801. exports.default = void 0;
  14802. /*
  14803. * @Author : LQ
  14804. * @Description :
  14805. * @version : 1.0
  14806. * @Date : 2021-08-20 16:44:21
  14807. * @LastAuthor : LQ
  14808. * @lastTime : 2021-08-20 16:56:12
  14809. * @FilePath : /u-view2.0/uview-ui/libs/config/props/col.js
  14810. */
  14811. var _default = {
  14812. // col 组件
  14813. col: {
  14814. span: 12,
  14815. offset: 0,
  14816. justify: 'start',
  14817. align: 'stretch',
  14818. textAlign: 'left'
  14819. }
  14820. };
  14821. exports.default = _default;
  14822. /***/ }),
  14823. /* 85 */
  14824. /*!********************************************************************************************!*\
  14825. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/collapse.js ***!
  14826. \********************************************************************************************/
  14827. /*! no static exports found */
  14828. /***/ (function(module, exports, __webpack_require__) {
  14829. "use strict";
  14830. Object.defineProperty(exports, "__esModule", {
  14831. value: true
  14832. });
  14833. exports.default = void 0;
  14834. /*
  14835. * @Author : LQ
  14836. * @Description :
  14837. * @version : 1.0
  14838. * @Date : 2021-08-20 16:44:21
  14839. * @LastAuthor : LQ
  14840. * @lastTime : 2021-08-20 16:56:30
  14841. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapse.js
  14842. */
  14843. var _default = {
  14844. // collapse 组件
  14845. collapse: {
  14846. value: null,
  14847. accordion: false,
  14848. border: true
  14849. }
  14850. };
  14851. exports.default = _default;
  14852. /***/ }),
  14853. /* 86 */
  14854. /*!************************************************************************************************!*\
  14855. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/collapseItem.js ***!
  14856. \************************************************************************************************/
  14857. /*! no static exports found */
  14858. /***/ (function(module, exports, __webpack_require__) {
  14859. "use strict";
  14860. Object.defineProperty(exports, "__esModule", {
  14861. value: true
  14862. });
  14863. exports.default = void 0;
  14864. /*
  14865. * @Author : LQ
  14866. * @Description :
  14867. * @version : 1.0
  14868. * @Date : 2021-08-20 16:44:21
  14869. * @LastAuthor : LQ
  14870. * @lastTime : 2021-08-20 16:56:42
  14871. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapseItem.js
  14872. */
  14873. var _default = {
  14874. // collapseItem 组件
  14875. collapseItem: {
  14876. title: '',
  14877. value: '',
  14878. label: '',
  14879. disabled: false,
  14880. isLink: true,
  14881. clickable: true,
  14882. border: true,
  14883. align: 'left',
  14884. name: '',
  14885. icon: '',
  14886. duration: 300
  14887. }
  14888. };
  14889. exports.default = _default;
  14890. /***/ }),
  14891. /* 87 */
  14892. /*!************************************************************************************************!*\
  14893. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/columnNotice.js ***!
  14894. \************************************************************************************************/
  14895. /*! no static exports found */
  14896. /***/ (function(module, exports, __webpack_require__) {
  14897. "use strict";
  14898. Object.defineProperty(exports, "__esModule", {
  14899. value: true
  14900. });
  14901. exports.default = void 0;
  14902. /*
  14903. * @Author : LQ
  14904. * @Description :
  14905. * @version : 1.0
  14906. * @Date : 2021-08-20 16:44:21
  14907. * @LastAuthor : LQ
  14908. * @lastTime : 2021-08-20 16:57:16
  14909. * @FilePath : /u-view2.0/uview-ui/libs/config/props/columnNotice.js
  14910. */
  14911. var _default = {
  14912. // columnNotice 组件
  14913. columnNotice: {
  14914. text: '',
  14915. icon: 'volume',
  14916. mode: '',
  14917. color: '#f9ae3d',
  14918. bgColor: '#fdf6ec',
  14919. fontSize: 14,
  14920. speed: 80,
  14921. step: false,
  14922. duration: 1500,
  14923. disableTouch: true
  14924. }
  14925. };
  14926. exports.default = _default;
  14927. /***/ }),
  14928. /* 88 */
  14929. /*!*********************************************************************************************!*\
  14930. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/countDown.js ***!
  14931. \*********************************************************************************************/
  14932. /*! no static exports found */
  14933. /***/ (function(module, exports, __webpack_require__) {
  14934. "use strict";
  14935. Object.defineProperty(exports, "__esModule", {
  14936. value: true
  14937. });
  14938. exports.default = void 0;
  14939. /*
  14940. * @Author : LQ
  14941. * @Description :
  14942. * @version : 1.0
  14943. * @Date : 2021-08-20 16:44:21
  14944. * @LastAuthor : LQ
  14945. * @lastTime : 2021-08-20 17:11:29
  14946. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countDown.js
  14947. */
  14948. var _default = {
  14949. // u-count-down 计时器组件
  14950. countDown: {
  14951. time: 0,
  14952. format: 'HH:mm:ss',
  14953. autoStart: true,
  14954. millisecond: false
  14955. }
  14956. };
  14957. exports.default = _default;
  14958. /***/ }),
  14959. /* 89 */
  14960. /*!*******************************************************************************************!*\
  14961. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/countTo.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:57:32
  14977. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countTo.js
  14978. */
  14979. var _default = {
  14980. // countTo 组件
  14981. countTo: {
  14982. startVal: 0,
  14983. endVal: 0,
  14984. duration: 2000,
  14985. autoplay: true,
  14986. decimals: 0,
  14987. useEasing: true,
  14988. decimal: '.',
  14989. color: '#606266',
  14990. fontSize: 22,
  14991. bold: false,
  14992. separator: ''
  14993. }
  14994. };
  14995. exports.default = _default;
  14996. /***/ }),
  14997. /* 90 */
  14998. /*!**************************************************************************************************!*\
  14999. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/datetimePicker.js ***!
  15000. \**************************************************************************************************/
  15001. /*! no static exports found */
  15002. /***/ (function(module, exports, __webpack_require__) {
  15003. "use strict";
  15004. Object.defineProperty(exports, "__esModule", {
  15005. value: true
  15006. });
  15007. exports.default = void 0;
  15008. /*
  15009. * @Author : LQ
  15010. * @Description :
  15011. * @version : 1.0
  15012. * @Date : 2021-08-20 16:44:21
  15013. * @LastAuthor : LQ
  15014. * @lastTime : 2021-08-20 16:57:48
  15015. * @FilePath : /u-view2.0/uview-ui/libs/config/props/datetimePicker.js
  15016. */
  15017. var _default = {
  15018. // datetimePicker 组件
  15019. datetimePicker: {
  15020. show: false,
  15021. showToolbar: true,
  15022. value: '',
  15023. title: '',
  15024. mode: 'datetime',
  15025. maxDate: new Date(new Date().getFullYear() + 10, 0, 1).getTime(),
  15026. minDate: new Date(new Date().getFullYear() - 10, 0, 1).getTime(),
  15027. minHour: 0,
  15028. maxHour: 23,
  15029. minMinute: 0,
  15030. maxMinute: 59,
  15031. filter: null,
  15032. formatter: null,
  15033. loading: false,
  15034. itemHeight: 44,
  15035. cancelText: '取消',
  15036. confirmText: '确认',
  15037. cancelColor: '#909193',
  15038. confirmColor: '#3c9cff',
  15039. visibleItemCount: 5,
  15040. closeOnClickOverlay: false,
  15041. defaultIndex: function defaultIndex() {
  15042. return [];
  15043. }
  15044. }
  15045. };
  15046. exports.default = _default;
  15047. /***/ }),
  15048. /* 91 */
  15049. /*!*******************************************************************************************!*\
  15050. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/divider.js ***!
  15051. \*******************************************************************************************/
  15052. /*! no static exports found */
  15053. /***/ (function(module, exports, __webpack_require__) {
  15054. "use strict";
  15055. Object.defineProperty(exports, "__esModule", {
  15056. value: true
  15057. });
  15058. exports.default = void 0;
  15059. /*
  15060. * @Author : LQ
  15061. * @Description :
  15062. * @version : 1.0
  15063. * @Date : 2021-08-20 16:44:21
  15064. * @LastAuthor : LQ
  15065. * @lastTime : 2021-08-20 16:58:03
  15066. * @FilePath : /u-view2.0/uview-ui/libs/config/props/divider.js
  15067. */
  15068. var _default = {
  15069. // divider组件
  15070. divider: {
  15071. dashed: false,
  15072. hairline: true,
  15073. dot: false,
  15074. textPosition: 'center',
  15075. text: '',
  15076. textSize: 14,
  15077. textColor: '#909399',
  15078. lineColor: '#dcdfe6'
  15079. }
  15080. };
  15081. exports.default = _default;
  15082. /***/ }),
  15083. /* 92 */
  15084. /*!*****************************************************************************************!*\
  15085. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/empty.js ***!
  15086. \*****************************************************************************************/
  15087. /*! no static exports found */
  15088. /***/ (function(module, exports, __webpack_require__) {
  15089. "use strict";
  15090. Object.defineProperty(exports, "__esModule", {
  15091. value: true
  15092. });
  15093. exports.default = void 0;
  15094. /*
  15095. * @Author : LQ
  15096. * @Description :
  15097. * @version : 1.0
  15098. * @Date : 2021-08-20 16:44:21
  15099. * @LastAuthor : LQ
  15100. * @lastTime : 2021-08-20 17:03:27
  15101. * @FilePath : /u-view2.0/uview-ui/libs/config/props/empty.js
  15102. */
  15103. var _default = {
  15104. // empty组件
  15105. empty: {
  15106. icon: '',
  15107. text: '',
  15108. textColor: '#c0c4cc',
  15109. textSize: 14,
  15110. iconColor: '#c0c4cc',
  15111. iconSize: 90,
  15112. mode: 'data',
  15113. width: 160,
  15114. height: 160,
  15115. show: true,
  15116. marginTop: 0
  15117. }
  15118. };
  15119. exports.default = _default;
  15120. /***/ }),
  15121. /* 93 */
  15122. /*!****************************************************************************************!*\
  15123. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/form.js ***!
  15124. \****************************************************************************************/
  15125. /*! no static exports found */
  15126. /***/ (function(module, exports, __webpack_require__) {
  15127. "use strict";
  15128. Object.defineProperty(exports, "__esModule", {
  15129. value: true
  15130. });
  15131. exports.default = void 0;
  15132. /*
  15133. * @Author : LQ
  15134. * @Description :
  15135. * @version : 1.0
  15136. * @Date : 2021-08-20 16:44:21
  15137. * @LastAuthor : LQ
  15138. * @lastTime : 2021-08-20 17:03:49
  15139. * @FilePath : /u-view2.0/uview-ui/libs/config/props/form.js
  15140. */
  15141. var _default = {
  15142. // form 组件
  15143. form: {
  15144. model: function model() {
  15145. return {};
  15146. },
  15147. rules: function rules() {
  15148. return {};
  15149. },
  15150. errorType: 'message',
  15151. borderBottom: true,
  15152. labelPosition: 'left',
  15153. labelWidth: 45,
  15154. labelAlign: 'left',
  15155. labelStyle: function labelStyle() {
  15156. return {};
  15157. }
  15158. }
  15159. };
  15160. exports.default = _default;
  15161. /***/ }),
  15162. /* 94 */
  15163. /*!********************************************************************************************!*\
  15164. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/formItem.js ***!
  15165. \********************************************************************************************/
  15166. /*! no static exports found */
  15167. /***/ (function(module, exports, __webpack_require__) {
  15168. "use strict";
  15169. Object.defineProperty(exports, "__esModule", {
  15170. value: true
  15171. });
  15172. exports.default = void 0;
  15173. /*
  15174. * @Author : LQ
  15175. * @Description :
  15176. * @version : 1.0
  15177. * @Date : 2021-08-20 16:44:21
  15178. * @LastAuthor : LQ
  15179. * @lastTime : 2021-08-20 17:04:32
  15180. * @FilePath : /u-view2.0/uview-ui/libs/config/props/formItem.js
  15181. */
  15182. var _default = {
  15183. // formItem 组件
  15184. formItem: {
  15185. label: '',
  15186. prop: '',
  15187. borderBottom: '',
  15188. labelPosition: '',
  15189. labelWidth: '',
  15190. rightIcon: '',
  15191. leftIcon: '',
  15192. required: false,
  15193. leftIconStyle: ''
  15194. }
  15195. };
  15196. exports.default = _default;
  15197. /***/ }),
  15198. /* 95 */
  15199. /*!***************************************************************************************!*\
  15200. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/gap.js ***!
  15201. \***************************************************************************************/
  15202. /*! no static exports found */
  15203. /***/ (function(module, exports, __webpack_require__) {
  15204. "use strict";
  15205. Object.defineProperty(exports, "__esModule", {
  15206. value: true
  15207. });
  15208. exports.default = void 0;
  15209. /*
  15210. * @Author : LQ
  15211. * @Description :
  15212. * @version : 1.0
  15213. * @Date : 2021-08-20 16:44:21
  15214. * @LastAuthor : LQ
  15215. * @lastTime : 2021-08-20 17:05:25
  15216. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gap.js
  15217. */
  15218. var _default = {
  15219. // gap组件
  15220. gap: {
  15221. bgColor: 'transparent',
  15222. height: 20,
  15223. marginTop: 0,
  15224. marginBottom: 0,
  15225. customStyle: {}
  15226. }
  15227. };
  15228. exports.default = _default;
  15229. /***/ }),
  15230. /* 96 */
  15231. /*!****************************************************************************************!*\
  15232. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/grid.js ***!
  15233. \****************************************************************************************/
  15234. /*! no static exports found */
  15235. /***/ (function(module, exports, __webpack_require__) {
  15236. "use strict";
  15237. Object.defineProperty(exports, "__esModule", {
  15238. value: true
  15239. });
  15240. exports.default = void 0;
  15241. /*
  15242. * @Author : LQ
  15243. * @Description :
  15244. * @version : 1.0
  15245. * @Date : 2021-08-20 16:44:21
  15246. * @LastAuthor : LQ
  15247. * @lastTime : 2021-08-20 17:05:57
  15248. * @FilePath : /u-view2.0/uview-ui/libs/config/props/grid.js
  15249. */
  15250. var _default = {
  15251. // grid组件
  15252. grid: {
  15253. col: 3,
  15254. border: false,
  15255. align: 'left'
  15256. }
  15257. };
  15258. exports.default = _default;
  15259. /***/ }),
  15260. /* 97 */
  15261. /*!********************************************************************************************!*\
  15262. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/gridItem.js ***!
  15263. \********************************************************************************************/
  15264. /*! no static exports found */
  15265. /***/ (function(module, exports, __webpack_require__) {
  15266. "use strict";
  15267. Object.defineProperty(exports, "__esModule", {
  15268. value: true
  15269. });
  15270. exports.default = void 0;
  15271. /*
  15272. * @Author : LQ
  15273. * @Description :
  15274. * @version : 1.0
  15275. * @Date : 2021-08-20 16:44:21
  15276. * @LastAuthor : LQ
  15277. * @lastTime : 2021-08-20 17:06:13
  15278. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gridItem.js
  15279. */
  15280. var _default = {
  15281. // grid-item组件
  15282. gridItem: {
  15283. name: null,
  15284. bgColor: 'transparent'
  15285. }
  15286. };
  15287. exports.default = _default;
  15288. /***/ }),
  15289. /* 98 */
  15290. /*!****************************************************************************************!*\
  15291. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/icon.js ***!
  15292. \****************************************************************************************/
  15293. /*! no static exports found */
  15294. /***/ (function(module, exports, __webpack_require__) {
  15295. "use strict";
  15296. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15297. Object.defineProperty(exports, "__esModule", {
  15298. value: true
  15299. });
  15300. exports.default = void 0;
  15301. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 65));
  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 18:00:14
  15309. * @FilePath : /u-view2.0/uview-ui/libs/config/props/icon.js
  15310. */
  15311. var color = _config.default.color;
  15312. var _default = {
  15313. // icon组件
  15314. icon: {
  15315. name: '',
  15316. color: color['u-content-color'],
  15317. size: '16px',
  15318. bold: false,
  15319. index: '',
  15320. hoverClass: '',
  15321. customPrefix: 'uicon',
  15322. label: '',
  15323. labelPos: 'right',
  15324. labelSize: '15px',
  15325. labelColor: color['u-content-color'],
  15326. space: '3px',
  15327. imgMode: '',
  15328. width: '',
  15329. height: '',
  15330. top: 0,
  15331. stop: false
  15332. }
  15333. };
  15334. exports.default = _default;
  15335. /***/ }),
  15336. /* 99 */
  15337. /*!*****************************************************************************************!*\
  15338. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/image.js ***!
  15339. \*****************************************************************************************/
  15340. /*! no static exports found */
  15341. /***/ (function(module, exports, __webpack_require__) {
  15342. "use strict";
  15343. Object.defineProperty(exports, "__esModule", {
  15344. value: true
  15345. });
  15346. exports.default = void 0;
  15347. /*
  15348. * @Author : LQ
  15349. * @Description :
  15350. * @version : 1.0
  15351. * @Date : 2021-08-20 16:44:21
  15352. * @LastAuthor : LQ
  15353. * @lastTime : 2021-08-20 17:01:51
  15354. * @FilePath : /u-view2.0/uview-ui/libs/config/props/image.js
  15355. */
  15356. var _default = {
  15357. // image组件
  15358. image: {
  15359. src: '',
  15360. mode: 'aspectFill',
  15361. width: '300',
  15362. height: '225',
  15363. shape: 'square',
  15364. radius: 0,
  15365. lazyLoad: true,
  15366. showMenuByLongpress: true,
  15367. loadingIcon: 'photo',
  15368. errorIcon: 'error-circle',
  15369. showLoading: true,
  15370. showError: true,
  15371. fade: true,
  15372. webp: false,
  15373. duration: 500,
  15374. bgColor: '#f3f4f6'
  15375. }
  15376. };
  15377. exports.default = _default;
  15378. /***/ }),
  15379. /* 100 */
  15380. /*!***********************************************************************************************!*\
  15381. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/indexAnchor.js ***!
  15382. \***********************************************************************************************/
  15383. /*! no static exports found */
  15384. /***/ (function(module, exports, __webpack_require__) {
  15385. "use strict";
  15386. Object.defineProperty(exports, "__esModule", {
  15387. value: true
  15388. });
  15389. exports.default = void 0;
  15390. /*
  15391. * @Author : LQ
  15392. * @Description :
  15393. * @version : 1.0
  15394. * @Date : 2021-08-20 16:44:21
  15395. * @LastAuthor : LQ
  15396. * @lastTime : 2021-08-20 17:13:15
  15397. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexAnchor.js
  15398. */
  15399. var _default = {
  15400. // indexAnchor 组件
  15401. indexAnchor: {
  15402. text: '',
  15403. color: '#606266',
  15404. size: 14,
  15405. bgColor: '#dedede',
  15406. height: 32
  15407. }
  15408. };
  15409. exports.default = _default;
  15410. /***/ }),
  15411. /* 101 */
  15412. /*!*********************************************************************************************!*\
  15413. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/indexList.js ***!
  15414. \*********************************************************************************************/
  15415. /*! no static exports found */
  15416. /***/ (function(module, exports, __webpack_require__) {
  15417. "use strict";
  15418. Object.defineProperty(exports, "__esModule", {
  15419. value: true
  15420. });
  15421. exports.default = void 0;
  15422. /*
  15423. * @Author : LQ
  15424. * @Description :
  15425. * @version : 1.0
  15426. * @Date : 2021-08-20 16:44:21
  15427. * @LastAuthor : LQ
  15428. * @lastTime : 2021-08-20 17:13:35
  15429. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexList.js
  15430. */
  15431. var _default = {
  15432. // indexList 组件
  15433. indexList: {
  15434. inactiveColor: '#606266',
  15435. activeColor: '#5677fc',
  15436. indexList: function indexList() {
  15437. return [];
  15438. },
  15439. sticky: true,
  15440. customNavHeight: 0
  15441. }
  15442. };
  15443. exports.default = _default;
  15444. /***/ }),
  15445. /* 102 */
  15446. /*!*****************************************************************************************!*\
  15447. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/input.js ***!
  15448. \*****************************************************************************************/
  15449. /*! no static exports found */
  15450. /***/ (function(module, exports, __webpack_require__) {
  15451. "use strict";
  15452. Object.defineProperty(exports, "__esModule", {
  15453. value: true
  15454. });
  15455. exports.default = void 0;
  15456. /*
  15457. * @Author : LQ
  15458. * @Description :
  15459. * @version : 1.0
  15460. * @Date : 2021-08-20 16:44:21
  15461. * @LastAuthor : LQ
  15462. * @lastTime : 2021-08-20 17:13:55
  15463. * @FilePath : /u-view2.0/uview-ui/libs/config/props/input.js
  15464. */
  15465. var _default = {
  15466. // index 组件
  15467. input: {
  15468. value: '',
  15469. type: 'text',
  15470. fixed: false,
  15471. disabled: false,
  15472. disabledColor: '#f5f7fa',
  15473. clearable: false,
  15474. password: false,
  15475. maxlength: -1,
  15476. placeholder: null,
  15477. placeholderClass: 'input-placeholder',
  15478. placeholderStyle: 'color: #c0c4cc',
  15479. showWordLimit: false,
  15480. confirmType: 'done',
  15481. confirmHold: false,
  15482. holdKeyboard: false,
  15483. focus: false,
  15484. autoBlur: false,
  15485. disableDefaultPadding: false,
  15486. cursor: -1,
  15487. cursorSpacing: 30,
  15488. selectionStart: -1,
  15489. selectionEnd: -1,
  15490. adjustPosition: true,
  15491. inputAlign: 'left',
  15492. fontSize: '15px',
  15493. color: '#303133',
  15494. prefixIcon: '',
  15495. prefixIconStyle: '',
  15496. suffixIcon: '',
  15497. suffixIconStyle: '',
  15498. border: 'surround',
  15499. readonly: false,
  15500. shape: 'square',
  15501. formatter: null
  15502. }
  15503. };
  15504. exports.default = _default;
  15505. /***/ }),
  15506. /* 103 */
  15507. /*!********************************************************************************************!*\
  15508. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/keyboard.js ***!
  15509. \********************************************************************************************/
  15510. /*! no static exports found */
  15511. /***/ (function(module, exports, __webpack_require__) {
  15512. "use strict";
  15513. Object.defineProperty(exports, "__esModule", {
  15514. value: true
  15515. });
  15516. exports.default = void 0;
  15517. /*
  15518. * @Author : LQ
  15519. * @Description :
  15520. * @version : 1.0
  15521. * @Date : 2021-08-20 16:44:21
  15522. * @LastAuthor : LQ
  15523. * @lastTime : 2021-08-20 17:07:49
  15524. * @FilePath : /u-view2.0/uview-ui/libs/config/props/keyboard.js
  15525. */
  15526. var _default = {
  15527. // 键盘组件
  15528. keyboard: {
  15529. mode: 'number',
  15530. dotDisabled: false,
  15531. tooltip: true,
  15532. showTips: true,
  15533. tips: '',
  15534. showCancel: true,
  15535. showConfirm: true,
  15536. random: false,
  15537. safeAreaInsetBottom: true,
  15538. closeOnClickOverlay: true,
  15539. show: false,
  15540. overlay: true,
  15541. zIndex: 10075,
  15542. cancelText: '取消',
  15543. confirmText: '确定',
  15544. autoChange: false
  15545. }
  15546. };
  15547. exports.default = _default;
  15548. /***/ }),
  15549. /* 104 */
  15550. /*!****************************************************************************************!*\
  15551. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/line.js ***!
  15552. \****************************************************************************************/
  15553. /*! no static exports found */
  15554. /***/ (function(module, exports, __webpack_require__) {
  15555. "use strict";
  15556. Object.defineProperty(exports, "__esModule", {
  15557. value: true
  15558. });
  15559. exports.default = void 0;
  15560. /*
  15561. * @Author : LQ
  15562. * @Description :
  15563. * @version : 1.0
  15564. * @Date : 2021-08-20 16:44:21
  15565. * @LastAuthor : LQ
  15566. * @lastTime : 2021-08-20 17:04:49
  15567. * @FilePath : /u-view2.0/uview-ui/libs/config/props/line.js
  15568. */
  15569. var _default = {
  15570. // line组件
  15571. line: {
  15572. color: '#d6d7d9',
  15573. length: '100%',
  15574. direction: 'row',
  15575. hairline: true,
  15576. margin: 0,
  15577. dashed: false
  15578. }
  15579. };
  15580. exports.default = _default;
  15581. /***/ }),
  15582. /* 105 */
  15583. /*!************************************************************************************************!*\
  15584. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/lineProgress.js ***!
  15585. \************************************************************************************************/
  15586. /*! no static exports found */
  15587. /***/ (function(module, exports, __webpack_require__) {
  15588. "use strict";
  15589. Object.defineProperty(exports, "__esModule", {
  15590. value: true
  15591. });
  15592. exports.default = void 0;
  15593. /*
  15594. * @Author : LQ
  15595. * @Description :
  15596. * @version : 1.0
  15597. * @Date : 2021-08-20 16:44:21
  15598. * @LastAuthor : LQ
  15599. * @lastTime : 2021-08-20 17:14:11
  15600. * @FilePath : /u-view2.0/uview-ui/libs/config/props/lineProgress.js
  15601. */
  15602. var _default = {
  15603. // lineProgress 组件
  15604. lineProgress: {
  15605. activeColor: '#19be6b',
  15606. inactiveColor: '#ececec',
  15607. percentage: 0,
  15608. showText: true,
  15609. height: 12
  15610. }
  15611. };
  15612. exports.default = _default;
  15613. /***/ }),
  15614. /* 106 */
  15615. /*!****************************************************************************************!*\
  15616. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/link.js ***!
  15617. \****************************************************************************************/
  15618. /*! no static exports found */
  15619. /***/ (function(module, exports, __webpack_require__) {
  15620. "use strict";
  15621. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15622. Object.defineProperty(exports, "__esModule", {
  15623. value: true
  15624. });
  15625. exports.default = void 0;
  15626. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 65));
  15627. /*
  15628. * @Author : LQ
  15629. * @Description :
  15630. * @version : 1.0
  15631. * @Date : 2021-08-20 16:44:21
  15632. * @LastAuthor : LQ
  15633. * @lastTime : 2021-08-20 17:45:36
  15634. * @FilePath : /u-view2.0/uview-ui/libs/config/props/link.js
  15635. */
  15636. var color = _config.default.color;
  15637. var _default = {
  15638. // link超链接组件props参数
  15639. link: {
  15640. color: color['u-primary'],
  15641. fontSize: 15,
  15642. underLine: false,
  15643. href: '',
  15644. mpTips: '链接已复制,请在浏览器打开',
  15645. lineColor: '',
  15646. text: ''
  15647. }
  15648. };
  15649. exports.default = _default;
  15650. /***/ }),
  15651. /* 107 */
  15652. /*!****************************************************************************************!*\
  15653. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/list.js ***!
  15654. \****************************************************************************************/
  15655. /*! no static exports found */
  15656. /***/ (function(module, exports, __webpack_require__) {
  15657. "use strict";
  15658. Object.defineProperty(exports, "__esModule", {
  15659. value: true
  15660. });
  15661. exports.default = void 0;
  15662. /*
  15663. * @Author : LQ
  15664. * @Description :
  15665. * @version : 1.0
  15666. * @Date : 2021-08-20 16:44:21
  15667. * @LastAuthor : LQ
  15668. * @lastTime : 2021-08-20 17:14:53
  15669. * @FilePath : /u-view2.0/uview-ui/libs/config/props/list.js
  15670. */
  15671. var _default = {
  15672. // list 组件
  15673. list: {
  15674. showScrollbar: false,
  15675. lowerThreshold: 50,
  15676. upperThreshold: 0,
  15677. scrollTop: 0,
  15678. offsetAccuracy: 10,
  15679. enableFlex: false,
  15680. pagingEnabled: false,
  15681. scrollable: true,
  15682. scrollIntoView: '',
  15683. scrollWithAnimation: false,
  15684. enableBackToTop: false,
  15685. height: 0,
  15686. width: 0,
  15687. preLoadScreen: 1
  15688. }
  15689. };
  15690. exports.default = _default;
  15691. /***/ }),
  15692. /* 108 */
  15693. /*!********************************************************************************************!*\
  15694. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/listItem.js ***!
  15695. \********************************************************************************************/
  15696. /*! no static exports found */
  15697. /***/ (function(module, exports, __webpack_require__) {
  15698. "use strict";
  15699. Object.defineProperty(exports, "__esModule", {
  15700. value: true
  15701. });
  15702. exports.default = void 0;
  15703. /*
  15704. * @Author : LQ
  15705. * @Description :
  15706. * @version : 1.0
  15707. * @Date : 2021-08-20 16:44:21
  15708. * @LastAuthor : LQ
  15709. * @lastTime : 2021-08-20 17:15:40
  15710. * @FilePath : /u-view2.0/uview-ui/libs/config/props/listItem.js
  15711. */
  15712. var _default = {
  15713. // listItem 组件
  15714. listItem: {
  15715. anchor: ''
  15716. }
  15717. };
  15718. exports.default = _default;
  15719. /***/ }),
  15720. /* 109 */
  15721. /*!***********************************************************************************************!*\
  15722. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/loadingIcon.js ***!
  15723. \***********************************************************************************************/
  15724. /*! no static exports found */
  15725. /***/ (function(module, exports, __webpack_require__) {
  15726. "use strict";
  15727. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15728. Object.defineProperty(exports, "__esModule", {
  15729. value: true
  15730. });
  15731. exports.default = void 0;
  15732. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 65));
  15733. /*
  15734. * @Author : LQ
  15735. * @Description :
  15736. * @version : 1.0
  15737. * @Date : 2021-08-20 16:44:21
  15738. * @LastAuthor : LQ
  15739. * @lastTime : 2021-08-20 17:45:47
  15740. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingIcon.js
  15741. */
  15742. var color = _config.default.color;
  15743. var _default = {
  15744. // loading-icon加载中图标组件
  15745. loadingIcon: {
  15746. show: true,
  15747. color: color['u-tips-color'],
  15748. textColor: color['u-tips-color'],
  15749. vertical: false,
  15750. mode: 'spinner',
  15751. size: 24,
  15752. textSize: 15,
  15753. text: '',
  15754. timingFunction: 'ease-in-out',
  15755. duration: 1200,
  15756. inactiveColor: ''
  15757. }
  15758. };
  15759. exports.default = _default;
  15760. /***/ }),
  15761. /* 110 */
  15762. /*!***********************************************************************************************!*\
  15763. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/loadingPage.js ***!
  15764. \***********************************************************************************************/
  15765. /*! no static exports found */
  15766. /***/ (function(module, exports, __webpack_require__) {
  15767. "use strict";
  15768. Object.defineProperty(exports, "__esModule", {
  15769. value: true
  15770. });
  15771. exports.default = void 0;
  15772. /*
  15773. * @Author : LQ
  15774. * @Description :
  15775. * @version : 1.0
  15776. * @Date : 2021-08-20 16:44:21
  15777. * @LastAuthor : LQ
  15778. * @lastTime : 2021-08-20 17:00:23
  15779. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingPage.js
  15780. */
  15781. var _default = {
  15782. // loading-page组件
  15783. loadingPage: {
  15784. loadingText: '正在加载',
  15785. image: '',
  15786. loadingMode: 'circle',
  15787. loading: false,
  15788. bgColor: '#ffffff',
  15789. color: '#C8C8C8',
  15790. fontSize: 19,
  15791. iconSize: 28,
  15792. loadingColor: '#C8C8C8'
  15793. }
  15794. };
  15795. exports.default = _default;
  15796. /***/ }),
  15797. /* 111 */
  15798. /*!********************************************************************************************!*\
  15799. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/loadmore.js ***!
  15800. \********************************************************************************************/
  15801. /*! no static exports found */
  15802. /***/ (function(module, exports, __webpack_require__) {
  15803. "use strict";
  15804. Object.defineProperty(exports, "__esModule", {
  15805. value: true
  15806. });
  15807. exports.default = void 0;
  15808. /*
  15809. * @Author : LQ
  15810. * @Description :
  15811. * @version : 1.0
  15812. * @Date : 2021-08-20 16:44:21
  15813. * @LastAuthor : LQ
  15814. * @lastTime : 2021-08-20 17:15:26
  15815. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadmore.js
  15816. */
  15817. var _default = {
  15818. // loadmore 组件
  15819. loadmore: {
  15820. status: 'loadmore',
  15821. bgColor: 'transparent',
  15822. icon: true,
  15823. fontSize: 14,
  15824. iconSize: 17,
  15825. color: '#606266',
  15826. loadingIcon: 'spinner',
  15827. loadmoreText: '加载更多',
  15828. loadingText: '正在加载...',
  15829. nomoreText: '没有更多了',
  15830. isDot: false,
  15831. iconColor: '#b7b7b7',
  15832. marginTop: 10,
  15833. marginBottom: 10,
  15834. height: 'auto',
  15835. line: false,
  15836. lineColor: '#E6E8EB',
  15837. dashed: false
  15838. }
  15839. };
  15840. exports.default = _default;
  15841. /***/ }),
  15842. /* 112 */
  15843. /*!*****************************************************************************************!*\
  15844. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/modal.js ***!
  15845. \*****************************************************************************************/
  15846. /*! no static exports found */
  15847. /***/ (function(module, exports, __webpack_require__) {
  15848. "use strict";
  15849. Object.defineProperty(exports, "__esModule", {
  15850. value: true
  15851. });
  15852. exports.default = void 0;
  15853. /*
  15854. * @Author : LQ
  15855. * @Description :
  15856. * @version : 1.0
  15857. * @Date : 2021-08-20 16:44:21
  15858. * @LastAuthor : LQ
  15859. * @lastTime : 2021-08-20 17:15:59
  15860. * @FilePath : /u-view2.0/uview-ui/libs/config/props/modal.js
  15861. */
  15862. var _default = {
  15863. // modal 组件
  15864. modal: {
  15865. show: false,
  15866. title: '',
  15867. content: '',
  15868. confirmText: '确认',
  15869. cancelText: '取消',
  15870. showConfirmButton: true,
  15871. showCancelButton: false,
  15872. confirmColor: '#2979ff',
  15873. cancelColor: '#606266',
  15874. buttonReverse: false,
  15875. zoom: true,
  15876. asyncClose: false,
  15877. closeOnClickOverlay: false,
  15878. negativeTop: 0,
  15879. width: '650rpx',
  15880. confirmButtonShape: ''
  15881. }
  15882. };
  15883. exports.default = _default;
  15884. /***/ }),
  15885. /* 113 */
  15886. /*!******************************************************************************************!*\
  15887. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/navbar.js ***!
  15888. \******************************************************************************************/
  15889. /*! no static exports found */
  15890. /***/ (function(module, exports, __webpack_require__) {
  15891. "use strict";
  15892. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15893. Object.defineProperty(exports, "__esModule", {
  15894. value: true
  15895. });
  15896. exports.default = void 0;
  15897. var _color = _interopRequireDefault(__webpack_require__(/*! ../color */ 114));
  15898. /*
  15899. * @Author : LQ
  15900. * @Description :
  15901. * @version : 1.0
  15902. * @Date : 2021-08-20 16:44:21
  15903. * @LastAuthor : LQ
  15904. * @lastTime : 2021-08-20 17:16:18
  15905. * @FilePath : /u-view2.0/uview-ui/libs/config/props/navbar.js
  15906. */
  15907. var _default = {
  15908. // navbar 组件
  15909. navbar: {
  15910. safeAreaInsetTop: true,
  15911. placeholder: false,
  15912. fixed: true,
  15913. border: false,
  15914. leftIcon: 'arrow-left',
  15915. leftText: '',
  15916. rightText: '',
  15917. rightIcon: '',
  15918. title: '',
  15919. bgColor: '#ffffff',
  15920. titleWidth: '400rpx',
  15921. height: '44px',
  15922. leftIconSize: 20,
  15923. leftIconColor: _color.default.mainColor,
  15924. autoBack: false,
  15925. titleStyle: ''
  15926. }
  15927. };
  15928. exports.default = _default;
  15929. /***/ }),
  15930. /* 114 */
  15931. /*!***********************************************************************************!*\
  15932. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/color.js ***!
  15933. \***********************************************************************************/
  15934. /*! no static exports found */
  15935. /***/ (function(module, exports, __webpack_require__) {
  15936. "use strict";
  15937. Object.defineProperty(exports, "__esModule", {
  15938. value: true
  15939. });
  15940. exports.default = void 0;
  15941. // 为了让用户能够自定义主题,会逐步弃用此文件,各颜色通过css提供
  15942. // 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)
  15943. var color = {
  15944. primary: '#3c9cff',
  15945. info: '#909399',
  15946. default: '#909399',
  15947. warning: '#f9ae3d',
  15948. error: '#f56c6c',
  15949. success: '#5ac725',
  15950. mainColor: '#303133',
  15951. contentColor: '#606266',
  15952. tipsColor: '#909399',
  15953. lightColor: '#c0c4cc',
  15954. borderColor: '#e4e7ed'
  15955. };
  15956. var _default = color;
  15957. exports.default = _default;
  15958. /***/ }),
  15959. /* 115 */
  15960. /*!*********************************************************************************************!*\
  15961. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/noNetwork.js ***!
  15962. \*********************************************************************************************/
  15963. /*! no static exports found */
  15964. /***/ (function(module, exports, __webpack_require__) {
  15965. "use strict";
  15966. Object.defineProperty(exports, "__esModule", {
  15967. value: true
  15968. });
  15969. exports.default = void 0;
  15970. /*
  15971. * @Author : LQ
  15972. * @Description :
  15973. * @version : 1.0
  15974. * @Date : 2021-08-20 16:44:21
  15975. * @LastAuthor : LQ
  15976. * @lastTime : 2021-08-20 17:16:39
  15977. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noNetwork.js
  15978. */
  15979. var _default = {
  15980. // noNetwork
  15981. noNetwork: {
  15982. tips: '哎呀,网络信号丢失',
  15983. zIndex: '',
  15984. 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'
  15985. }
  15986. };
  15987. exports.default = _default;
  15988. /***/ }),
  15989. /* 116 */
  15990. /*!*********************************************************************************************!*\
  15991. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/noticeBar.js ***!
  15992. \*********************************************************************************************/
  15993. /*! no static exports found */
  15994. /***/ (function(module, exports, __webpack_require__) {
  15995. "use strict";
  15996. Object.defineProperty(exports, "__esModule", {
  15997. value: true
  15998. });
  15999. exports.default = void 0;
  16000. /*
  16001. * @Author : LQ
  16002. * @Description :
  16003. * @version : 1.0
  16004. * @Date : 2021-08-20 16:44:21
  16005. * @LastAuthor : LQ
  16006. * @lastTime : 2021-08-20 17:17:13
  16007. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noticeBar.js
  16008. */
  16009. var _default = {
  16010. // noticeBar
  16011. noticeBar: {
  16012. text: function text() {
  16013. return [];
  16014. },
  16015. direction: 'row',
  16016. step: false,
  16017. icon: 'volume',
  16018. mode: '',
  16019. color: '#f9ae3d',
  16020. bgColor: '#fdf6ec',
  16021. speed: 80,
  16022. fontSize: 14,
  16023. duration: 2000,
  16024. disableTouch: true,
  16025. url: '',
  16026. linkType: 'navigateTo'
  16027. }
  16028. };
  16029. exports.default = _default;
  16030. /***/ }),
  16031. /* 117 */
  16032. /*!******************************************************************************************!*\
  16033. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/notify.js ***!
  16034. \******************************************************************************************/
  16035. /*! no static exports found */
  16036. /***/ (function(module, exports, __webpack_require__) {
  16037. "use strict";
  16038. Object.defineProperty(exports, "__esModule", {
  16039. value: true
  16040. });
  16041. exports.default = void 0;
  16042. /*
  16043. * @Author : LQ
  16044. * @Description :
  16045. * @version : 1.0
  16046. * @Date : 2021-08-20 16:44:21
  16047. * @LastAuthor : LQ
  16048. * @lastTime : 2021-08-20 17:10:21
  16049. * @FilePath : /u-view2.0/uview-ui/libs/config/props/notify.js
  16050. */
  16051. var _default = {
  16052. // notify组件
  16053. notify: {
  16054. top: 0,
  16055. type: 'primary',
  16056. color: '#ffffff',
  16057. bgColor: '',
  16058. message: '',
  16059. duration: 3000,
  16060. fontSize: 15,
  16061. safeAreaInsetTop: false
  16062. }
  16063. };
  16064. exports.default = _default;
  16065. /***/ }),
  16066. /* 118 */
  16067. /*!*********************************************************************************************!*\
  16068. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/numberBox.js ***!
  16069. \*********************************************************************************************/
  16070. /*! no static exports found */
  16071. /***/ (function(module, exports, __webpack_require__) {
  16072. "use strict";
  16073. Object.defineProperty(exports, "__esModule", {
  16074. value: true
  16075. });
  16076. exports.default = void 0;
  16077. /*
  16078. * @Author : LQ
  16079. * @Description :
  16080. * @version : 1.0
  16081. * @Date : 2021-08-20 16:44:21
  16082. * @LastAuthor : LQ
  16083. * @lastTime : 2021-08-20 17:11:46
  16084. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberBox.js
  16085. */
  16086. var _default = {
  16087. // 步进器组件
  16088. numberBox: {
  16089. name: '',
  16090. value: 0,
  16091. min: 1,
  16092. max: Number.MAX_SAFE_INTEGER,
  16093. step: 1,
  16094. integer: false,
  16095. disabled: false,
  16096. disabledInput: false,
  16097. asyncChange: false,
  16098. inputWidth: 35,
  16099. showMinus: true,
  16100. showPlus: true,
  16101. decimalLength: null,
  16102. longPress: true,
  16103. color: '#323233',
  16104. buttonSize: 30,
  16105. bgColor: '#EBECEE',
  16106. cursorSpacing: 100,
  16107. disableMinus: false,
  16108. disablePlus: false,
  16109. iconStyle: ''
  16110. }
  16111. };
  16112. exports.default = _default;
  16113. /***/ }),
  16114. /* 119 */
  16115. /*!**************************************************************************************************!*\
  16116. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/numberKeyboard.js ***!
  16117. \**************************************************************************************************/
  16118. /*! no static exports found */
  16119. /***/ (function(module, exports, __webpack_require__) {
  16120. "use strict";
  16121. Object.defineProperty(exports, "__esModule", {
  16122. value: true
  16123. });
  16124. exports.default = void 0;
  16125. /*
  16126. * @Author : LQ
  16127. * @Description :
  16128. * @version : 1.0
  16129. * @Date : 2021-08-20 16:44:21
  16130. * @LastAuthor : LQ
  16131. * @lastTime : 2021-08-20 17:08:05
  16132. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberKeyboard.js
  16133. */
  16134. var _default = {
  16135. // 数字键盘
  16136. numberKeyboard: {
  16137. mode: 'number',
  16138. dotDisabled: false,
  16139. random: false
  16140. }
  16141. };
  16142. exports.default = _default;
  16143. /***/ }),
  16144. /* 120 */
  16145. /*!*******************************************************************************************!*\
  16146. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/overlay.js ***!
  16147. \*******************************************************************************************/
  16148. /*! no static exports found */
  16149. /***/ (function(module, exports, __webpack_require__) {
  16150. "use strict";
  16151. Object.defineProperty(exports, "__esModule", {
  16152. value: true
  16153. });
  16154. exports.default = void 0;
  16155. /*
  16156. * @Author : LQ
  16157. * @Description :
  16158. * @version : 1.0
  16159. * @Date : 2021-08-20 16:44:21
  16160. * @LastAuthor : LQ
  16161. * @lastTime : 2021-08-20 17:06:50
  16162. * @FilePath : /u-view2.0/uview-ui/libs/config/props/overlay.js
  16163. */
  16164. var _default = {
  16165. // overlay组件
  16166. overlay: {
  16167. show: false,
  16168. zIndex: 10070,
  16169. duration: 300,
  16170. opacity: 0.5
  16171. }
  16172. };
  16173. exports.default = _default;
  16174. /***/ }),
  16175. /* 121 */
  16176. /*!*****************************************************************************************!*\
  16177. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/parse.js ***!
  16178. \*****************************************************************************************/
  16179. /*! no static exports found */
  16180. /***/ (function(module, exports, __webpack_require__) {
  16181. "use strict";
  16182. Object.defineProperty(exports, "__esModule", {
  16183. value: true
  16184. });
  16185. exports.default = void 0;
  16186. /*
  16187. * @Author : LQ
  16188. * @Description :
  16189. * @version : 1.0
  16190. * @Date : 2021-08-20 16:44:21
  16191. * @LastAuthor : LQ
  16192. * @lastTime : 2021-08-20 17:17:33
  16193. * @FilePath : /u-view2.0/uview-ui/libs/config/props/parse.js
  16194. */
  16195. var _default = {
  16196. // parse
  16197. parse: {
  16198. copyLink: true,
  16199. errorImg: '',
  16200. lazyLoad: false,
  16201. loadingImg: '',
  16202. pauseVideo: true,
  16203. previewImg: true,
  16204. setTitle: true,
  16205. showImgMenu: true
  16206. }
  16207. };
  16208. exports.default = _default;
  16209. /***/ }),
  16210. /* 122 */
  16211. /*!******************************************************************************************!*\
  16212. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/picker.js ***!
  16213. \******************************************************************************************/
  16214. /*! no static exports found */
  16215. /***/ (function(module, exports, __webpack_require__) {
  16216. "use strict";
  16217. Object.defineProperty(exports, "__esModule", {
  16218. value: true
  16219. });
  16220. exports.default = void 0;
  16221. /*
  16222. * @Author : LQ
  16223. * @Description :
  16224. * @version : 1.0
  16225. * @Date : 2021-08-20 16:44:21
  16226. * @LastAuthor : LQ
  16227. * @lastTime : 2021-08-20 17:18:20
  16228. * @FilePath : /u-view2.0/uview-ui/libs/config/props/picker.js
  16229. */
  16230. var _default = {
  16231. // picker
  16232. picker: {
  16233. show: false,
  16234. showToolbar: true,
  16235. title: '',
  16236. columns: function columns() {
  16237. return [];
  16238. },
  16239. loading: false,
  16240. itemHeight: 44,
  16241. cancelText: '取消',
  16242. confirmText: '确定',
  16243. cancelColor: '#909193',
  16244. confirmColor: '#3c9cff',
  16245. visibleItemCount: 5,
  16246. keyName: 'text',
  16247. closeOnClickOverlay: false,
  16248. defaultIndex: function defaultIndex() {
  16249. return [];
  16250. },
  16251. immediateChange: false
  16252. }
  16253. };
  16254. exports.default = _default;
  16255. /***/ }),
  16256. /* 123 */
  16257. /*!*****************************************************************************************!*\
  16258. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/popup.js ***!
  16259. \*****************************************************************************************/
  16260. /*! no static exports found */
  16261. /***/ (function(module, exports, __webpack_require__) {
  16262. "use strict";
  16263. Object.defineProperty(exports, "__esModule", {
  16264. value: true
  16265. });
  16266. exports.default = void 0;
  16267. /*
  16268. * @Author : LQ
  16269. * @Description :
  16270. * @version : 1.0
  16271. * @Date : 2021-08-20 16:44:21
  16272. * @LastAuthor : LQ
  16273. * @lastTime : 2021-08-20 17:06:33
  16274. * @FilePath : /u-view2.0/uview-ui/libs/config/props/popup.js
  16275. */
  16276. var _default = {
  16277. // popup组件
  16278. popup: {
  16279. show: false,
  16280. overlay: true,
  16281. mode: 'bottom',
  16282. duration: 300,
  16283. closeable: false,
  16284. overlayStyle: function overlayStyle() {},
  16285. closeOnClickOverlay: true,
  16286. zIndex: 10075,
  16287. safeAreaInsetBottom: true,
  16288. safeAreaInsetTop: false,
  16289. closeIconPos: 'top-right',
  16290. round: 0,
  16291. zoom: true,
  16292. bgColor: '',
  16293. overlayOpacity: 0.5
  16294. }
  16295. };
  16296. exports.default = _default;
  16297. /***/ }),
  16298. /* 124 */
  16299. /*!*****************************************************************************************!*\
  16300. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/radio.js ***!
  16301. \*****************************************************************************************/
  16302. /*! no static exports found */
  16303. /***/ (function(module, exports, __webpack_require__) {
  16304. "use strict";
  16305. Object.defineProperty(exports, "__esModule", {
  16306. value: true
  16307. });
  16308. exports.default = void 0;
  16309. /*
  16310. * @Author : LQ
  16311. * @Description :
  16312. * @version : 1.0
  16313. * @Date : 2021-08-20 16:44:21
  16314. * @LastAuthor : LQ
  16315. * @lastTime : 2021-08-20 17:02:34
  16316. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radio.js
  16317. */
  16318. var _default = {
  16319. // radio组件
  16320. radio: {
  16321. name: '',
  16322. shape: '',
  16323. disabled: '',
  16324. labelDisabled: '',
  16325. activeColor: '',
  16326. inactiveColor: '',
  16327. iconSize: '',
  16328. labelSize: '',
  16329. label: '',
  16330. labelColor: '',
  16331. size: '',
  16332. iconColor: '',
  16333. placement: ''
  16334. }
  16335. };
  16336. exports.default = _default;
  16337. /***/ }),
  16338. /* 125 */
  16339. /*!**********************************************************************************************!*\
  16340. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/radioGroup.js ***!
  16341. \**********************************************************************************************/
  16342. /*! no static exports found */
  16343. /***/ (function(module, exports, __webpack_require__) {
  16344. "use strict";
  16345. Object.defineProperty(exports, "__esModule", {
  16346. value: true
  16347. });
  16348. exports.default = void 0;
  16349. /*
  16350. * @Author : LQ
  16351. * @Description :
  16352. * @version : 1.0
  16353. * @Date : 2021-08-20 16:44:21
  16354. * @LastAuthor : LQ
  16355. * @lastTime : 2021-08-20 17:03:12
  16356. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radioGroup.js
  16357. */
  16358. var _default = {
  16359. // radio-group组件
  16360. radioGroup: {
  16361. value: '',
  16362. disabled: false,
  16363. shape: 'circle',
  16364. activeColor: '#2979ff',
  16365. inactiveColor: '#c8c9cc',
  16366. name: '',
  16367. size: 18,
  16368. placement: 'row',
  16369. label: '',
  16370. labelColor: '#303133',
  16371. labelSize: 14,
  16372. labelDisabled: false,
  16373. iconColor: '#ffffff',
  16374. iconSize: 12,
  16375. borderBottom: false,
  16376. iconPlacement: 'left'
  16377. }
  16378. };
  16379. exports.default = _default;
  16380. /***/ }),
  16381. /* 126 */
  16382. /*!****************************************************************************************!*\
  16383. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/rate.js ***!
  16384. \****************************************************************************************/
  16385. /*! no static exports found */
  16386. /***/ (function(module, exports, __webpack_require__) {
  16387. "use strict";
  16388. Object.defineProperty(exports, "__esModule", {
  16389. value: true
  16390. });
  16391. exports.default = void 0;
  16392. /*
  16393. * @Author : LQ
  16394. * @Description :
  16395. * @version : 1.0
  16396. * @Date : 2021-08-20 16:44:21
  16397. * @LastAuthor : LQ
  16398. * @lastTime : 2021-08-20 17:05:09
  16399. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rate.js
  16400. */
  16401. var _default = {
  16402. // rate组件
  16403. rate: {
  16404. value: 1,
  16405. count: 5,
  16406. disabled: false,
  16407. size: 18,
  16408. inactiveColor: '#b2b2b2',
  16409. activeColor: '#FA3534',
  16410. gutter: 4,
  16411. minCount: 1,
  16412. allowHalf: false,
  16413. activeIcon: 'star-fill',
  16414. inactiveIcon: 'star',
  16415. touchable: true
  16416. }
  16417. };
  16418. exports.default = _default;
  16419. /***/ }),
  16420. /* 127 */
  16421. /*!********************************************************************************************!*\
  16422. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/readMore.js ***!
  16423. \********************************************************************************************/
  16424. /*! no static exports found */
  16425. /***/ (function(module, exports, __webpack_require__) {
  16426. "use strict";
  16427. Object.defineProperty(exports, "__esModule", {
  16428. value: true
  16429. });
  16430. exports.default = void 0;
  16431. /*
  16432. * @Author : LQ
  16433. * @Description :
  16434. * @version : 1.0
  16435. * @Date : 2021-08-20 16:44:21
  16436. * @LastAuthor : LQ
  16437. * @lastTime : 2021-08-20 17:18:41
  16438. * @FilePath : /u-view2.0/uview-ui/libs/config/props/readMore.js
  16439. */
  16440. var _default = {
  16441. // readMore
  16442. readMore: {
  16443. showHeight: 400,
  16444. toggle: false,
  16445. closeText: '展开阅读全文',
  16446. openText: '收起',
  16447. color: '#2979ff',
  16448. fontSize: 14,
  16449. textIndent: '2em',
  16450. name: ''
  16451. }
  16452. };
  16453. exports.default = _default;
  16454. /***/ }),
  16455. /* 128 */
  16456. /*!***************************************************************************************!*\
  16457. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/row.js ***!
  16458. \***************************************************************************************/
  16459. /*! no static exports found */
  16460. /***/ (function(module, exports, __webpack_require__) {
  16461. "use strict";
  16462. Object.defineProperty(exports, "__esModule", {
  16463. value: true
  16464. });
  16465. exports.default = void 0;
  16466. /*
  16467. * @Author : LQ
  16468. * @Description :
  16469. * @version : 1.0
  16470. * @Date : 2021-08-20 16:44:21
  16471. * @LastAuthor : LQ
  16472. * @lastTime : 2021-08-20 17:18:58
  16473. * @FilePath : /u-view2.0/uview-ui/libs/config/props/row.js
  16474. */
  16475. var _default = {
  16476. // row
  16477. row: {
  16478. gutter: 0,
  16479. justify: 'start',
  16480. align: 'center'
  16481. }
  16482. };
  16483. exports.default = _default;
  16484. /***/ }),
  16485. /* 129 */
  16486. /*!*********************************************************************************************!*\
  16487. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/rowNotice.js ***!
  16488. \*********************************************************************************************/
  16489. /*! no static exports found */
  16490. /***/ (function(module, exports, __webpack_require__) {
  16491. "use strict";
  16492. Object.defineProperty(exports, "__esModule", {
  16493. value: true
  16494. });
  16495. exports.default = void 0;
  16496. /*
  16497. * @Author : LQ
  16498. * @Description :
  16499. * @version : 1.0
  16500. * @Date : 2021-08-20 16:44:21
  16501. * @LastAuthor : LQ
  16502. * @lastTime : 2021-08-20 17:19:13
  16503. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rowNotice.js
  16504. */
  16505. var _default = {
  16506. // rowNotice
  16507. rowNotice: {
  16508. text: '',
  16509. icon: 'volume',
  16510. mode: '',
  16511. color: '#f9ae3d',
  16512. bgColor: '#fdf6ec',
  16513. fontSize: 14,
  16514. speed: 80
  16515. }
  16516. };
  16517. exports.default = _default;
  16518. /***/ }),
  16519. /* 130 */
  16520. /*!**********************************************************************************************!*\
  16521. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/scrollList.js ***!
  16522. \**********************************************************************************************/
  16523. /*! no static exports found */
  16524. /***/ (function(module, exports, __webpack_require__) {
  16525. "use strict";
  16526. Object.defineProperty(exports, "__esModule", {
  16527. value: true
  16528. });
  16529. exports.default = void 0;
  16530. /*
  16531. * @Author : LQ
  16532. * @Description :
  16533. * @version : 1.0
  16534. * @Date : 2021-08-20 16:44:21
  16535. * @LastAuthor : LQ
  16536. * @lastTime : 2021-08-20 17:19:28
  16537. * @FilePath : /u-view2.0/uview-ui/libs/config/props/scrollList.js
  16538. */
  16539. var _default = {
  16540. // scrollList
  16541. scrollList: {
  16542. indicatorWidth: 50,
  16543. indicatorBarWidth: 20,
  16544. indicator: true,
  16545. indicatorColor: '#f2f2f2',
  16546. indicatorActiveColor: '#3c9cff',
  16547. indicatorStyle: ''
  16548. }
  16549. };
  16550. exports.default = _default;
  16551. /***/ }),
  16552. /* 131 */
  16553. /*!******************************************************************************************!*\
  16554. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/search.js ***!
  16555. \******************************************************************************************/
  16556. /*! no static exports found */
  16557. /***/ (function(module, exports, __webpack_require__) {
  16558. "use strict";
  16559. Object.defineProperty(exports, "__esModule", {
  16560. value: true
  16561. });
  16562. exports.default = void 0;
  16563. /*
  16564. * @Author : LQ
  16565. * @Description :
  16566. * @version : 1.0
  16567. * @Date : 2021-08-20 16:44:21
  16568. * @LastAuthor : LQ
  16569. * @lastTime : 2021-08-20 17:19:45
  16570. * @FilePath : /u-view2.0/uview-ui/libs/config/props/search.js
  16571. */
  16572. var _default = {
  16573. // search
  16574. search: {
  16575. shape: 'round',
  16576. bgColor: '#f2f2f2',
  16577. placeholder: '请输入关键字',
  16578. clearabled: true,
  16579. focus: false,
  16580. showAction: true,
  16581. actionStyle: function actionStyle() {
  16582. return {};
  16583. },
  16584. actionText: '搜索',
  16585. inputAlign: 'left',
  16586. inputStyle: function inputStyle() {
  16587. return {};
  16588. },
  16589. disabled: false,
  16590. borderColor: 'transparent',
  16591. searchIconColor: '#909399',
  16592. searchIconSize: 22,
  16593. color: '#606266',
  16594. placeholderColor: '#909399',
  16595. searchIcon: 'search',
  16596. margin: '0',
  16597. animation: false,
  16598. value: '',
  16599. maxlength: '-1',
  16600. height: 32,
  16601. label: null
  16602. }
  16603. };
  16604. exports.default = _default;
  16605. /***/ }),
  16606. /* 132 */
  16607. /*!*******************************************************************************************!*\
  16608. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/section.js ***!
  16609. \*******************************************************************************************/
  16610. /*! no static exports found */
  16611. /***/ (function(module, exports, __webpack_require__) {
  16612. "use strict";
  16613. Object.defineProperty(exports, "__esModule", {
  16614. value: true
  16615. });
  16616. exports.default = void 0;
  16617. /*
  16618. * @Author : LQ
  16619. * @Description :
  16620. * @version : 1.0
  16621. * @Date : 2021-08-20 16:44:21
  16622. * @LastAuthor : LQ
  16623. * @lastTime : 2021-08-20 17:07:33
  16624. * @FilePath : /u-view2.0/uview-ui/libs/config/props/section.js
  16625. */
  16626. var _default = {
  16627. // u-section组件
  16628. section: {
  16629. title: '',
  16630. subTitle: '更多',
  16631. right: true,
  16632. fontSize: 15,
  16633. bold: true,
  16634. color: '#303133',
  16635. subColor: '#909399',
  16636. showLine: true,
  16637. lineColor: '',
  16638. arrow: true
  16639. }
  16640. };
  16641. exports.default = _default;
  16642. /***/ }),
  16643. /* 133 */
  16644. /*!********************************************************************************************!*\
  16645. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/skeleton.js ***!
  16646. \********************************************************************************************/
  16647. /*! no static exports found */
  16648. /***/ (function(module, exports, __webpack_require__) {
  16649. "use strict";
  16650. Object.defineProperty(exports, "__esModule", {
  16651. value: true
  16652. });
  16653. exports.default = void 0;
  16654. /*
  16655. * @Author : LQ
  16656. * @Description :
  16657. * @version : 1.0
  16658. * @Date : 2021-08-20 16:44:21
  16659. * @LastAuthor : LQ
  16660. * @lastTime : 2021-08-20 17:20:14
  16661. * @FilePath : /u-view2.0/uview-ui/libs/config/props/skeleton.js
  16662. */
  16663. var _default = {
  16664. // skeleton
  16665. skeleton: {
  16666. loading: true,
  16667. animate: true,
  16668. rows: 0,
  16669. rowsWidth: '100%',
  16670. rowsHeight: 18,
  16671. title: true,
  16672. titleWidth: '50%',
  16673. titleHeight: 18,
  16674. avatar: false,
  16675. avatarSize: 32,
  16676. avatarShape: 'circle'
  16677. }
  16678. };
  16679. exports.default = _default;
  16680. /***/ }),
  16681. /* 134 */
  16682. /*!******************************************************************************************!*\
  16683. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/slider.js ***!
  16684. \******************************************************************************************/
  16685. /*! no static exports found */
  16686. /***/ (function(module, exports, __webpack_require__) {
  16687. "use strict";
  16688. Object.defineProperty(exports, "__esModule", {
  16689. value: true
  16690. });
  16691. exports.default = void 0;
  16692. /*
  16693. * @Author : LQ
  16694. * @Description :
  16695. * @version : 1.0
  16696. * @Date : 2021-08-20 16:44:21
  16697. * @LastAuthor : LQ
  16698. * @lastTime : 2021-08-20 17:08:25
  16699. * @FilePath : /u-view2.0/uview-ui/libs/config/props/slider.js
  16700. */
  16701. var _default = {
  16702. // slider组件
  16703. slider: {
  16704. value: 0,
  16705. blockSize: 18,
  16706. min: 0,
  16707. max: 100,
  16708. step: 1,
  16709. activeColor: '#2979ff',
  16710. inactiveColor: '#c0c4cc',
  16711. blockColor: '#ffffff',
  16712. showValue: false,
  16713. disabled: false,
  16714. blockStyle: function blockStyle() {}
  16715. }
  16716. };
  16717. exports.default = _default;
  16718. /***/ }),
  16719. /* 135 */
  16720. /*!*********************************************************************************************!*\
  16721. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/statusBar.js ***!
  16722. \*********************************************************************************************/
  16723. /*! no static exports found */
  16724. /***/ (function(module, exports, __webpack_require__) {
  16725. "use strict";
  16726. Object.defineProperty(exports, "__esModule", {
  16727. value: true
  16728. });
  16729. exports.default = void 0;
  16730. /*
  16731. * @Author : LQ
  16732. * @Description :
  16733. * @version : 1.0
  16734. * @Date : 2021-08-20 16:44:21
  16735. * @LastAuthor : LQ
  16736. * @lastTime : 2021-08-20 17:20:39
  16737. * @FilePath : /u-view2.0/uview-ui/libs/config/props/statusBar.js
  16738. */
  16739. var _default = {
  16740. // statusBar
  16741. statusBar: {
  16742. bgColor: 'transparent'
  16743. }
  16744. };
  16745. exports.default = _default;
  16746. /***/ }),
  16747. /* 136 */
  16748. /*!*****************************************************************************************!*\
  16749. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/steps.js ***!
  16750. \*****************************************************************************************/
  16751. /*! no static exports found */
  16752. /***/ (function(module, exports, __webpack_require__) {
  16753. "use strict";
  16754. Object.defineProperty(exports, "__esModule", {
  16755. value: true
  16756. });
  16757. exports.default = void 0;
  16758. /*
  16759. * @Author : LQ
  16760. * @Description :
  16761. * @version : 1.0
  16762. * @Date : 2021-08-20 16:44:21
  16763. * @LastAuthor : LQ
  16764. * @lastTime : 2021-08-20 17:12:37
  16765. * @FilePath : /u-view2.0/uview-ui/libs/config/props/steps.js
  16766. */
  16767. var _default = {
  16768. // steps组件
  16769. steps: {
  16770. direction: 'row',
  16771. current: 0,
  16772. activeColor: '#3c9cff',
  16773. inactiveColor: '#969799',
  16774. activeIcon: '',
  16775. inactiveIcon: '',
  16776. dot: false
  16777. }
  16778. };
  16779. exports.default = _default;
  16780. /***/ }),
  16781. /* 137 */
  16782. /*!*********************************************************************************************!*\
  16783. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/stepsItem.js ***!
  16784. \*********************************************************************************************/
  16785. /*! no static exports found */
  16786. /***/ (function(module, exports, __webpack_require__) {
  16787. "use strict";
  16788. Object.defineProperty(exports, "__esModule", {
  16789. value: true
  16790. });
  16791. exports.default = void 0;
  16792. /*
  16793. * @Author : LQ
  16794. * @Description :
  16795. * @version : 1.0
  16796. * @Date : 2021-08-20 16:44:21
  16797. * @LastAuthor : LQ
  16798. * @lastTime : 2021-08-20 17:12:55
  16799. * @FilePath : /u-view2.0/uview-ui/libs/config/props/stepsItem.js
  16800. */
  16801. var _default = {
  16802. // steps-item组件
  16803. stepsItem: {
  16804. title: '',
  16805. desc: '',
  16806. iconSize: 17,
  16807. error: false
  16808. }
  16809. };
  16810. exports.default = _default;
  16811. /***/ }),
  16812. /* 138 */
  16813. /*!******************************************************************************************!*\
  16814. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/sticky.js ***!
  16815. \******************************************************************************************/
  16816. /*! no static exports found */
  16817. /***/ (function(module, exports, __webpack_require__) {
  16818. "use strict";
  16819. Object.defineProperty(exports, "__esModule", {
  16820. value: true
  16821. });
  16822. exports.default = void 0;
  16823. /*
  16824. * @Author : LQ
  16825. * @Description :
  16826. * @version : 1.0
  16827. * @Date : 2021-08-20 16:44:21
  16828. * @LastAuthor : LQ
  16829. * @lastTime : 2021-08-20 17:01:30
  16830. * @FilePath : /u-view2.0/uview-ui/libs/config/props/sticky.js
  16831. */
  16832. var _default = {
  16833. // sticky组件
  16834. sticky: {
  16835. offsetTop: 0,
  16836. customNavHeight: 0,
  16837. disabled: false,
  16838. bgColor: 'transparent',
  16839. zIndex: '',
  16840. index: ''
  16841. }
  16842. };
  16843. exports.default = _default;
  16844. /***/ }),
  16845. /* 139 */
  16846. /*!**********************************************************************************************!*\
  16847. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/subsection.js ***!
  16848. \**********************************************************************************************/
  16849. /*! no static exports found */
  16850. /***/ (function(module, exports, __webpack_require__) {
  16851. "use strict";
  16852. Object.defineProperty(exports, "__esModule", {
  16853. value: true
  16854. });
  16855. exports.default = void 0;
  16856. /*
  16857. * @Author : LQ
  16858. * @Description :
  16859. * @version : 1.0
  16860. * @Date : 2021-08-20 16:44:21
  16861. * @LastAuthor : LQ
  16862. * @lastTime : 2021-08-20 17:12:20
  16863. * @FilePath : /u-view2.0/uview-ui/libs/config/props/subsection.js
  16864. */
  16865. var _default = {
  16866. // subsection组件
  16867. subsection: {
  16868. list: [],
  16869. current: 0,
  16870. activeColor: '#3c9cff',
  16871. inactiveColor: '#303133',
  16872. mode: 'button',
  16873. fontSize: 12,
  16874. bold: true,
  16875. bgColor: '#eeeeef',
  16876. keyName: 'name'
  16877. }
  16878. };
  16879. exports.default = _default;
  16880. /***/ }),
  16881. /* 140 */
  16882. /*!***********************************************************************************************!*\
  16883. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/swipeAction.js ***!
  16884. \***********************************************************************************************/
  16885. /*! no static exports found */
  16886. /***/ (function(module, exports, __webpack_require__) {
  16887. "use strict";
  16888. Object.defineProperty(exports, "__esModule", {
  16889. value: true
  16890. });
  16891. exports.default = void 0;
  16892. /*
  16893. * @Author : LQ
  16894. * @Description :
  16895. * @version : 1.0
  16896. * @Date : 2021-08-20 16:44:21
  16897. * @LastAuthor : LQ
  16898. * @lastTime : 2021-08-20 17:00:42
  16899. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeAction.js
  16900. */
  16901. var _default = {
  16902. // swipe-action组件
  16903. swipeAction: {
  16904. autoClose: true
  16905. }
  16906. };
  16907. exports.default = _default;
  16908. /***/ }),
  16909. /* 141 */
  16910. /*!***************************************************************************************************!*\
  16911. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/swipeActionItem.js ***!
  16912. \***************************************************************************************************/
  16913. /*! no static exports found */
  16914. /***/ (function(module, exports, __webpack_require__) {
  16915. "use strict";
  16916. Object.defineProperty(exports, "__esModule", {
  16917. value: true
  16918. });
  16919. exports.default = void 0;
  16920. /*
  16921. * @Author : LQ
  16922. * @Description :
  16923. * @version : 1.0
  16924. * @Date : 2021-08-20 16:44:21
  16925. * @LastAuthor : LQ
  16926. * @lastTime : 2021-08-20 17:01:13
  16927. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeActionItem.js
  16928. */
  16929. var _default = {
  16930. // swipeActionItem 组件
  16931. swipeActionItem: {
  16932. show: false,
  16933. name: '',
  16934. disabled: false,
  16935. threshold: 20,
  16936. autoClose: true,
  16937. options: [],
  16938. duration: 300
  16939. }
  16940. };
  16941. exports.default = _default;
  16942. /***/ }),
  16943. /* 142 */
  16944. /*!******************************************************************************************!*\
  16945. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/swiper.js ***!
  16946. \******************************************************************************************/
  16947. /*! no static exports found */
  16948. /***/ (function(module, exports, __webpack_require__) {
  16949. "use strict";
  16950. Object.defineProperty(exports, "__esModule", {
  16951. value: true
  16952. });
  16953. exports.default = void 0;
  16954. /*
  16955. * @Author : LQ
  16956. * @Description :
  16957. * @version : 1.0
  16958. * @Date : 2021-08-20 16:44:21
  16959. * @LastAuthor : LQ
  16960. * @lastTime : 2021-08-20 17:21:38
  16961. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiper.js
  16962. */
  16963. var _default = {
  16964. // swiper 组件
  16965. swiper: {
  16966. list: function list() {
  16967. return [];
  16968. },
  16969. indicator: false,
  16970. indicatorActiveColor: '#FFFFFF',
  16971. indicatorInactiveColor: 'rgba(255, 255, 255, 0.35)',
  16972. indicatorStyle: '',
  16973. indicatorMode: 'line',
  16974. autoplay: true,
  16975. current: 0,
  16976. currentItemId: '',
  16977. interval: 3000,
  16978. duration: 300,
  16979. circular: false,
  16980. previousMargin: 0,
  16981. nextMargin: 0,
  16982. acceleration: false,
  16983. displayMultipleItems: 1,
  16984. easingFunction: 'default',
  16985. keyName: 'url',
  16986. imgMode: 'aspectFill',
  16987. height: 130,
  16988. bgColor: '#f3f4f6',
  16989. radius: 4,
  16990. loading: false,
  16991. showTitle: false
  16992. }
  16993. };
  16994. exports.default = _default;
  16995. /***/ }),
  16996. /* 143 */
  16997. /*!****************************************************************************************************!*\
  16998. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/swipterIndicator.js ***!
  16999. \****************************************************************************************************/
  17000. /*! no static exports found */
  17001. /***/ (function(module, exports, __webpack_require__) {
  17002. "use strict";
  17003. Object.defineProperty(exports, "__esModule", {
  17004. value: true
  17005. });
  17006. exports.default = void 0;
  17007. /*
  17008. * @Author : LQ
  17009. * @Description :
  17010. * @version : 1.0
  17011. * @Date : 2021-08-20 16:44:21
  17012. * @LastAuthor : LQ
  17013. * @lastTime : 2021-08-20 17:22:07
  17014. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiperIndicator.js
  17015. */
  17016. var _default = {
  17017. // swiperIndicator 组件
  17018. swiperIndicator: {
  17019. length: 0,
  17020. current: 0,
  17021. indicatorActiveColor: '',
  17022. indicatorInactiveColor: '',
  17023. indicatorMode: 'line'
  17024. }
  17025. };
  17026. exports.default = _default;
  17027. /***/ }),
  17028. /* 144 */
  17029. /*!******************************************************************************************!*\
  17030. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/switch.js ***!
  17031. \******************************************************************************************/
  17032. /*! no static exports found */
  17033. /***/ (function(module, exports, __webpack_require__) {
  17034. "use strict";
  17035. Object.defineProperty(exports, "__esModule", {
  17036. value: true
  17037. });
  17038. exports.default = void 0;
  17039. /*
  17040. * @Author : LQ
  17041. * @Description :
  17042. * @version : 1.0
  17043. * @Date : 2021-08-20 16:44:21
  17044. * @LastAuthor : LQ
  17045. * @lastTime : 2021-08-20 17:22:24
  17046. * @FilePath : /u-view2.0/uview-ui/libs/config/props/switch.js
  17047. */
  17048. var _default = {
  17049. // switch
  17050. switch: {
  17051. loading: false,
  17052. disabled: false,
  17053. size: 25,
  17054. activeColor: '#2979ff',
  17055. inactiveColor: '#ffffff',
  17056. value: false,
  17057. activeValue: true,
  17058. inactiveValue: false,
  17059. asyncChange: false,
  17060. space: 0
  17061. }
  17062. };
  17063. exports.default = _default;
  17064. /***/ }),
  17065. /* 145 */
  17066. /*!******************************************************************************************!*\
  17067. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/tabbar.js ***!
  17068. \******************************************************************************************/
  17069. /*! no static exports found */
  17070. /***/ (function(module, exports, __webpack_require__) {
  17071. "use strict";
  17072. Object.defineProperty(exports, "__esModule", {
  17073. value: true
  17074. });
  17075. exports.default = void 0;
  17076. /*
  17077. * @Author : LQ
  17078. * @Description :
  17079. * @version : 1.0
  17080. * @Date : 2021-08-20 16:44:21
  17081. * @LastAuthor : LQ
  17082. * @lastTime : 2021-08-20 17:22:40
  17083. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbar.js
  17084. */
  17085. var _default = {
  17086. // tabbar
  17087. tabbar: {
  17088. value: null,
  17089. safeAreaInsetBottom: true,
  17090. border: true,
  17091. zIndex: 1,
  17092. activeColor: '#1989fa',
  17093. inactiveColor: '#7d7e80',
  17094. fixed: true,
  17095. placeholder: true
  17096. }
  17097. };
  17098. exports.default = _default;
  17099. /***/ }),
  17100. /* 146 */
  17101. /*!**********************************************************************************************!*\
  17102. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/tabbarItem.js ***!
  17103. \**********************************************************************************************/
  17104. /*! no static exports found */
  17105. /***/ (function(module, exports, __webpack_require__) {
  17106. "use strict";
  17107. Object.defineProperty(exports, "__esModule", {
  17108. value: true
  17109. });
  17110. exports.default = void 0;
  17111. /*
  17112. * @Author : LQ
  17113. * @Description :
  17114. * @version : 1.0
  17115. * @Date : 2021-08-20 16:44:21
  17116. * @LastAuthor : LQ
  17117. * @lastTime : 2021-08-20 17:22:55
  17118. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbarItem.js
  17119. */
  17120. var _default = {
  17121. //
  17122. tabbarItem: {
  17123. name: null,
  17124. icon: '',
  17125. badge: null,
  17126. dot: false,
  17127. text: '',
  17128. badgeStyle: 'top: 6px;right:2px;'
  17129. }
  17130. };
  17131. exports.default = _default;
  17132. /***/ }),
  17133. /* 147 */
  17134. /*!****************************************************************************************!*\
  17135. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/tabs.js ***!
  17136. \****************************************************************************************/
  17137. /*! no static exports found */
  17138. /***/ (function(module, exports, __webpack_require__) {
  17139. "use strict";
  17140. Object.defineProperty(exports, "__esModule", {
  17141. value: true
  17142. });
  17143. exports.default = void 0;
  17144. /*
  17145. * @Author : LQ
  17146. * @Description :
  17147. * @version : 1.0
  17148. * @Date : 2021-08-20 16:44:21
  17149. * @LastAuthor : LQ
  17150. * @lastTime : 2021-08-20 17:23:14
  17151. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabs.js
  17152. */
  17153. var _default = {
  17154. //
  17155. tabs: {
  17156. duration: 300,
  17157. list: function list() {
  17158. return [];
  17159. },
  17160. lineColor: '#3c9cff',
  17161. activeStyle: function activeStyle() {
  17162. return {
  17163. color: '#303133'
  17164. };
  17165. },
  17166. inactiveStyle: function inactiveStyle() {
  17167. return {
  17168. color: '#606266'
  17169. };
  17170. },
  17171. lineWidth: 20,
  17172. lineHeight: 3,
  17173. lineBgSize: 'cover',
  17174. itemStyle: function itemStyle() {
  17175. return {
  17176. height: '44px'
  17177. };
  17178. },
  17179. scrollable: true,
  17180. current: 0,
  17181. keyName: 'name'
  17182. }
  17183. };
  17184. exports.default = _default;
  17185. /***/ }),
  17186. /* 148 */
  17187. /*!***************************************************************************************!*\
  17188. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/tag.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:23:37
  17204. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tag.js
  17205. */
  17206. var _default = {
  17207. // tag 组件
  17208. tag: {
  17209. type: 'primary',
  17210. disabled: false,
  17211. size: 'medium',
  17212. shape: 'square',
  17213. text: '',
  17214. bgColor: '',
  17215. color: '',
  17216. borderColor: '',
  17217. closeColor: '#C6C7CB',
  17218. name: '',
  17219. plainFill: false,
  17220. plain: false,
  17221. closable: false,
  17222. show: true,
  17223. icon: ''
  17224. }
  17225. };
  17226. exports.default = _default;
  17227. /***/ }),
  17228. /* 149 */
  17229. /*!****************************************************************************************!*\
  17230. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/text.js ***!
  17231. \****************************************************************************************/
  17232. /*! no static exports found */
  17233. /***/ (function(module, exports, __webpack_require__) {
  17234. "use strict";
  17235. Object.defineProperty(exports, "__esModule", {
  17236. value: true
  17237. });
  17238. exports.default = void 0;
  17239. /*
  17240. * @Author : LQ
  17241. * @Description :
  17242. * @version : 1.0
  17243. * @Date : 2021-08-20 16:44:21
  17244. * @LastAuthor : LQ
  17245. * @lastTime : 2021-08-20 17:23:58
  17246. * @FilePath : /u-view2.0/uview-ui/libs/config/props/text.js
  17247. */
  17248. var _default = {
  17249. // text 组件
  17250. text: {
  17251. type: '',
  17252. show: true,
  17253. text: '',
  17254. prefixIcon: '',
  17255. suffixIcon: '',
  17256. mode: '',
  17257. href: '',
  17258. format: '',
  17259. call: false,
  17260. openType: '',
  17261. bold: false,
  17262. block: false,
  17263. lines: '',
  17264. color: '#303133',
  17265. size: 15,
  17266. iconStyle: function iconStyle() {
  17267. return {
  17268. fontSize: '15px'
  17269. };
  17270. },
  17271. decoration: 'none',
  17272. margin: 0,
  17273. lineHeight: '',
  17274. align: 'left',
  17275. wordWrap: 'normal'
  17276. }
  17277. };
  17278. exports.default = _default;
  17279. /***/ }),
  17280. /* 150 */
  17281. /*!********************************************************************************************!*\
  17282. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/textarea.js ***!
  17283. \********************************************************************************************/
  17284. /*! no static exports found */
  17285. /***/ (function(module, exports, __webpack_require__) {
  17286. "use strict";
  17287. Object.defineProperty(exports, "__esModule", {
  17288. value: true
  17289. });
  17290. exports.default = void 0;
  17291. /*
  17292. * @Author : LQ
  17293. * @Description :
  17294. * @version : 1.0
  17295. * @Date : 2021-08-20 16:44:21
  17296. * @LastAuthor : LQ
  17297. * @lastTime : 2021-08-20 17:24:32
  17298. * @FilePath : /u-view2.0/uview-ui/libs/config/props/textarea.js
  17299. */
  17300. var _default = {
  17301. // textarea 组件
  17302. textarea: {
  17303. value: '',
  17304. placeholder: '',
  17305. placeholderClass: 'textarea-placeholder',
  17306. placeholderStyle: 'color: #c0c4cc',
  17307. height: 70,
  17308. confirmType: 'done',
  17309. disabled: false,
  17310. count: false,
  17311. focus: false,
  17312. autoHeight: false,
  17313. fixed: false,
  17314. cursorSpacing: 0,
  17315. cursor: '',
  17316. showConfirmBar: true,
  17317. selectionStart: -1,
  17318. selectionEnd: -1,
  17319. adjustPosition: true,
  17320. disableDefaultPadding: false,
  17321. holdKeyboard: false,
  17322. maxlength: 140,
  17323. border: 'surround',
  17324. formatter: null
  17325. }
  17326. };
  17327. exports.default = _default;
  17328. /***/ }),
  17329. /* 151 */
  17330. /*!*****************************************************************************************!*\
  17331. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/toast.js ***!
  17332. \*****************************************************************************************/
  17333. /*! no static exports found */
  17334. /***/ (function(module, exports, __webpack_require__) {
  17335. "use strict";
  17336. Object.defineProperty(exports, "__esModule", {
  17337. value: true
  17338. });
  17339. exports.default = void 0;
  17340. /*
  17341. * @Author : LQ
  17342. * @Description :
  17343. * @version : 1.0
  17344. * @Date : 2021-08-20 16:44:21
  17345. * @LastAuthor : LQ
  17346. * @lastTime : 2021-08-20 17:07:07
  17347. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toast.js
  17348. */
  17349. var _default = {
  17350. // toast组件
  17351. toast: {
  17352. zIndex: 10090,
  17353. loading: false,
  17354. text: '',
  17355. icon: '',
  17356. type: '',
  17357. loadingMode: '',
  17358. show: '',
  17359. overlay: false,
  17360. position: 'center',
  17361. params: function params() {},
  17362. duration: 2000,
  17363. isTab: false,
  17364. url: '',
  17365. callback: null,
  17366. back: false
  17367. }
  17368. };
  17369. exports.default = _default;
  17370. /***/ }),
  17371. /* 152 */
  17372. /*!*******************************************************************************************!*\
  17373. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/toolbar.js ***!
  17374. \*******************************************************************************************/
  17375. /*! no static exports found */
  17376. /***/ (function(module, exports, __webpack_require__) {
  17377. "use strict";
  17378. Object.defineProperty(exports, "__esModule", {
  17379. value: true
  17380. });
  17381. exports.default = void 0;
  17382. /*
  17383. * @Author : LQ
  17384. * @Description :
  17385. * @version : 1.0
  17386. * @Date : 2021-08-20 16:44:21
  17387. * @LastAuthor : LQ
  17388. * @lastTime : 2021-08-20 17:24:55
  17389. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toolbar.js
  17390. */
  17391. var _default = {
  17392. // toolbar 组件
  17393. toolbar: {
  17394. show: true,
  17395. cancelText: '取消',
  17396. confirmText: '确认',
  17397. cancelColor: '#909193',
  17398. confirmColor: '#3c9cff',
  17399. title: ''
  17400. }
  17401. };
  17402. exports.default = _default;
  17403. /***/ }),
  17404. /* 153 */
  17405. /*!*******************************************************************************************!*\
  17406. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/tooltip.js ***!
  17407. \*******************************************************************************************/
  17408. /*! no static exports found */
  17409. /***/ (function(module, exports, __webpack_require__) {
  17410. "use strict";
  17411. Object.defineProperty(exports, "__esModule", {
  17412. value: true
  17413. });
  17414. exports.default = void 0;
  17415. /*
  17416. * @Author : LQ
  17417. * @Description :
  17418. * @version : 1.0
  17419. * @Date : 2021-08-20 16:44:21
  17420. * @LastAuthor : LQ
  17421. * @lastTime : 2021-08-20 17:25:14
  17422. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tooltip.js
  17423. */
  17424. var _default = {
  17425. // tooltip 组件
  17426. tooltip: {
  17427. text: '',
  17428. copyText: '',
  17429. size: 14,
  17430. color: '#606266',
  17431. bgColor: 'transparent',
  17432. direction: 'top',
  17433. zIndex: 10071,
  17434. showCopy: true,
  17435. buttons: function buttons() {
  17436. return [];
  17437. },
  17438. overlay: true,
  17439. showToast: true
  17440. }
  17441. };
  17442. exports.default = _default;
  17443. /***/ }),
  17444. /* 154 */
  17445. /*!**********************************************************************************************!*\
  17446. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/transition.js ***!
  17447. \**********************************************************************************************/
  17448. /*! no static exports found */
  17449. /***/ (function(module, exports, __webpack_require__) {
  17450. "use strict";
  17451. Object.defineProperty(exports, "__esModule", {
  17452. value: true
  17453. });
  17454. exports.default = void 0;
  17455. /*
  17456. * @Author : LQ
  17457. * @Description :
  17458. * @version : 1.0
  17459. * @Date : 2021-08-20 16:44:21
  17460. * @LastAuthor : LQ
  17461. * @lastTime : 2021-08-20 16:59:00
  17462. * @FilePath : /u-view2.0/uview-ui/libs/config/props/transition.js
  17463. */
  17464. var _default = {
  17465. // transition动画组件的props
  17466. transition: {
  17467. show: false,
  17468. mode: 'fade',
  17469. duration: '300',
  17470. timingFunction: 'ease-out'
  17471. }
  17472. };
  17473. exports.default = _default;
  17474. /***/ }),
  17475. /* 155 */
  17476. /*!******************************************************************************************!*\
  17477. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/props/upload.js ***!
  17478. \******************************************************************************************/
  17479. /*! no static exports found */
  17480. /***/ (function(module, exports, __webpack_require__) {
  17481. "use strict";
  17482. Object.defineProperty(exports, "__esModule", {
  17483. value: true
  17484. });
  17485. exports.default = void 0;
  17486. /*
  17487. * @Author : LQ
  17488. * @Description :
  17489. * @version : 1.0
  17490. * @Date : 2021-08-20 16:44:21
  17491. * @LastAuthor : LQ
  17492. * @lastTime : 2021-08-20 17:09:50
  17493. * @FilePath : /u-view2.0/uview-ui/libs/config/props/upload.js
  17494. */
  17495. var _default = {
  17496. // upload组件
  17497. upload: {
  17498. accept: 'image',
  17499. capture: function capture() {
  17500. return ['album', 'camera'];
  17501. },
  17502. compressed: true,
  17503. camera: 'back',
  17504. maxDuration: 60,
  17505. uploadIcon: 'camera-fill',
  17506. uploadIconColor: '#D3D4D6',
  17507. useBeforeRead: false,
  17508. previewFullImage: true,
  17509. maxCount: 52,
  17510. disabled: false,
  17511. imageMode: 'aspectFill',
  17512. name: '',
  17513. sizeType: function sizeType() {
  17514. return ['original', 'compressed'];
  17515. },
  17516. multiple: false,
  17517. deletable: true,
  17518. maxSize: Number.MAX_VALUE,
  17519. fileList: function fileList() {
  17520. return [];
  17521. },
  17522. uploadText: '',
  17523. width: 80,
  17524. height: 80,
  17525. previewImage: true
  17526. }
  17527. };
  17528. exports.default = _default;
  17529. /***/ }),
  17530. /* 156 */
  17531. /*!************************************************************************************!*\
  17532. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/config/zIndex.js ***!
  17533. \************************************************************************************/
  17534. /*! no static exports found */
  17535. /***/ (function(module, exports, __webpack_require__) {
  17536. "use strict";
  17537. Object.defineProperty(exports, "__esModule", {
  17538. value: true
  17539. });
  17540. exports.default = void 0;
  17541. // uniapp在H5中各API的z-index值如下:
  17542. /**
  17543. * actionsheet: 999
  17544. * modal: 999
  17545. * navigate: 998
  17546. * tabbar: 998
  17547. * toast: 999
  17548. */
  17549. var _default = {
  17550. toast: 10090,
  17551. noNetwork: 10080,
  17552. // popup包含popup,actionsheet,keyboard,picker的值
  17553. popup: 10075,
  17554. mask: 10070,
  17555. navbar: 980,
  17556. topTips: 975,
  17557. sticky: 970,
  17558. indexListSticky: 965
  17559. };
  17560. exports.default = _default;
  17561. /***/ }),
  17562. /* 157 */
  17563. /*!****************************************************************************************!*\
  17564. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/function/platform.js ***!
  17565. \****************************************************************************************/
  17566. /*! no static exports found */
  17567. /***/ (function(module, exports, __webpack_require__) {
  17568. "use strict";
  17569. Object.defineProperty(exports, "__esModule", {
  17570. value: true
  17571. });
  17572. exports.default = void 0;
  17573. /**
  17574. * 注意:
  17575. * 此部分内容,在vue-cli模式下,需要在vue.config.js加入如下内容才有效:
  17576. * module.exports = {
  17577. * transpileDependencies: ['uview-v2']
  17578. * }
  17579. */
  17580. var platform = 'none';
  17581. platform = 'vue2';
  17582. platform = 'weixin';
  17583. platform = 'mp';
  17584. var _default = platform;
  17585. exports.default = _default;
  17586. /***/ }),
  17587. /* 158 */
  17588. /*!**********************************************************!*\
  17589. !*** D:/wwwroot/xusfood/xusfood_client/common/config.js ***!
  17590. \**********************************************************/
  17591. /*! no static exports found */
  17592. /***/ (function(module, exports, __webpack_require__) {
  17593. "use strict";
  17594. Object.defineProperty(exports, "__esModule", {
  17595. value: true
  17596. });
  17597. exports.commonConfig = void 0;
  17598. /**
  17599. * 配置通用
  17600. */
  17601. var node_dev = Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"xusfood_client","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).H_NODE_ENV;
  17602. //运行到浏览器用的
  17603. var baseUrl = '/api';
  17604. var upFileUrl = '/api';
  17605. //打包用的
  17606. if (node_dev) {
  17607. baseUrl = Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"xusfood_client","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).H_BASE_URL;
  17608. upFileUrl = Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"xusfood_client","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).H_UP_FILE_URL;
  17609. }
  17610. var commonConfig = {
  17611. wxAppid: '',
  17612. // 测试wxAppid
  17613. baseUrl: 'https://xusfoodapi.hw.hongweisoft.com/appapi/app',
  17614. // 服务器地址
  17615. uploadFileUrl: 'http://fileupload.hw.hongweisoft.com/upload/single/minio',
  17616. // 上传文件路径
  17617. staticUrl: 'http://res.hw.hongweisoft.com/xushuo/',
  17618. paginationConfig: {
  17619. pageNum: 1,
  17620. pageSize: 10
  17621. },
  17622. //分页参数
  17623. successCode: 200 //接口返回状态
  17624. };
  17625. exports.commonConfig = commonConfig;
  17626. /***/ }),
  17627. /* 159 */
  17628. /*!*********************************************************!*\
  17629. !*** D:/wwwroot/xusfood/xusfood_client/utils/filter.js ***!
  17630. \*********************************************************/
  17631. /*! no static exports found */
  17632. /***/ (function(module, exports, __webpack_require__) {
  17633. "use strict";
  17634. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  17635. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  17636. /**
  17637. * 公共方法的封装
  17638. */
  17639. // 性别
  17640. _vue.default.filter("filterSex", function (val) {
  17641. if (val == 0) {
  17642. return '男';
  17643. } else if (val == 1) {
  17644. return '女';
  17645. } else {
  17646. return '未知';
  17647. }
  17648. });
  17649. // 链接加时间戳
  17650. _vue.default.filter("timestamp", function (link) {
  17651. return link + '?t=' + new Date().getTime();
  17652. });
  17653. // 时间去掉时分秒
  17654. _vue.default.filter("timeSplit", function (time) {
  17655. if (time) {
  17656. return time.indexOf(" ") > -1 ? time.split(" ")[0] : time;
  17657. } else {
  17658. return "";
  17659. }
  17660. });
  17661. // 结账方式
  17662. _vue.default.filter("filterPayWay", function (val) {
  17663. if (val == 0) {
  17664. return '现销';
  17665. } else if (val == 1) {
  17666. return '赊销';
  17667. } else {
  17668. return '未知';
  17669. }
  17670. });
  17671. // 订单类型
  17672. _vue.default.filter("filterOrderType", function (val) {
  17673. if (val == 0) {
  17674. return '普通';
  17675. } else if (val == 1) {
  17676. return '换货销售';
  17677. } else {
  17678. return '未知';
  17679. }
  17680. });
  17681. // 收货方式
  17682. _vue.default.filter("filterReceiveWay", function (val) {
  17683. if (val == 0) {
  17684. return '物流';
  17685. } else if (val == 1) {
  17686. return '自提';
  17687. } else if (val == 2) {
  17688. return '顺丰直发';
  17689. } else {
  17690. return '未知';
  17691. }
  17692. });
  17693. // 保留两位小数,自动补充零
  17694. _vue.default.filter("filterToFixed", function (val) {
  17695. var value = Math.round(parseFloat(val) * 100) / 100;
  17696. if (!value) {
  17697. return '0';
  17698. }
  17699. var xsd = value.toString().split(".");
  17700. if (xsd.length == 1) {
  17701. value = value.toString() + ".00";
  17702. return value;
  17703. }
  17704. if (xsd.length > 1) {
  17705. if (xsd[1].length < 2) {
  17706. value = value.toString() + "0";
  17707. }
  17708. return value;
  17709. }
  17710. });
  17711. // 订单状态
  17712. _vue.default.filter("filterOrderState", function (val) {
  17713. var orderList = ['审核中', '待付款', '待发货', '待收货', '已完成', '售后', '已关闭', '酒业出库', '物流出库'];
  17714. return orderList[val];
  17715. });
  17716. /***/ }),
  17717. /* 160 */
  17718. /*!********************************************************!*\
  17719. !*** D:/wwwroot/xusfood/xusfood_client/store/index.js ***!
  17720. \********************************************************/
  17721. /*! no static exports found */
  17722. /***/ (function(module, exports, __webpack_require__) {
  17723. "use strict";
  17724. /* WEBPACK VAR INJECTION */(function(uni) {
  17725. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  17726. Object.defineProperty(exports, "__esModule", {
  17727. value: true
  17728. });
  17729. exports.default = void 0;
  17730. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  17731. var _vuex = _interopRequireDefault(__webpack_require__(/*! vuex */ 161));
  17732. _vue.default.use(_vuex.default);
  17733. var lifeData = {};
  17734. try {
  17735. // 尝试获取本地是否存在lifeData变量,第一次启动APP时是不存在的
  17736. lifeData = uni.getStorageSync('lifeData');
  17737. } catch (e) {}
  17738. // 需要永久存储,且下次APP启动需要取出的,在state中的变量名
  17739. var saveStateKeys = ['vuex_member_info', 'vuex_user_info', 'vuex_wechatOpenid'];
  17740. // 保存变量到本地存储中
  17741. var saveLifeData = function saveLifeData(key, value) {
  17742. // 判断变量名是否在需要存储的数组中
  17743. if (saveStateKeys.indexOf(key) != -1) {
  17744. // 获取本地存储的lifeData对象,将变量添加到对象中
  17745. var tmp = uni.getStorageSync('lifeData');
  17746. // 第一次打开APP,不存在lifeData变量,故放一个{}空对象
  17747. tmp = tmp ? tmp : {};
  17748. tmp[key] = value;
  17749. // 执行这一步后,所有需要存储的变量,都挂载在本地的lifeData对象中
  17750. uni.setStorageSync('lifeData', tmp);
  17751. }
  17752. };
  17753. var store = new _vuex.default.Store({
  17754. state: {
  17755. // 如果上面从本地获取的lifeData对象下有对应的属性,就赋值给state中对应的变量
  17756. // 加上vuex_前缀,是防止变量名冲突,也让人一目了然
  17757. vuex_member_info: lifeData.vuex_member_info ? lifeData.vuex_member_info : {},
  17758. vuex_user_info: lifeData.vuex_user_info ? lifeData.vuex_user_info : {},
  17759. vuex_wechatOpenid: lifeData.vuex_wechatOpenid ? lifeData.vuex_wechatOpenid : ''
  17760. // vuex_version: '1.0.1',
  17761. },
  17762. mutations: {
  17763. $uStore: function $uStore(state, payload) {
  17764. // 判断是否多层级调用,state中为对象存在的情况,诸如user.info.score = 1
  17765. var nameArr = payload.name.split('.');
  17766. var saveKey = '';
  17767. var len = nameArr.length;
  17768. if (len >= 2) {
  17769. var obj = state[nameArr[0]];
  17770. for (var i = 1; i < len - 1; i++) {
  17771. obj = obj[nameArr[i]];
  17772. }
  17773. obj[nameArr[len - 1]] = payload.value;
  17774. saveKey = nameArr[0];
  17775. } else {
  17776. // 单层级变量,在state就是一个普通变量的情况
  17777. state[payload.name] = payload.value;
  17778. saveKey = payload.name;
  17779. }
  17780. // 保存变量到本地,见顶部函数定义
  17781. saveLifeData(saveKey, state[saveKey]);
  17782. }
  17783. },
  17784. actions: {
  17785. // 获取用户信息
  17786. getUserInfo: function getUserInfo(_ref, backFu) {
  17787. var _this = this;
  17788. var commit = _ref.commit;
  17789. if (this.state.user_info && this.state.user_info.userId) {
  17790. _vue.default.prototype.$u.api.checkToken().then(function (data) {
  17791. if (data && data.code === 200) {
  17792. backFu(_this.state.user_info);
  17793. }
  17794. });
  17795. } else {
  17796. _vue.default.prototype.$u.api.userInfo().then(function (data) {
  17797. console.log(data);
  17798. if (data && data.code === 200) {
  17799. _vue.default.prototype.$u.vuex('user_info', data.data);
  17800. backFu(data.data);
  17801. }
  17802. });
  17803. }
  17804. }
  17805. }
  17806. });
  17807. var _default = store;
  17808. exports.default = _default;
  17809. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  17810. /***/ }),
  17811. /* 161 */
  17812. /*!**************************************************************************************!*\
  17813. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vuex3/dist/vuex.common.js ***!
  17814. \**************************************************************************************/
  17815. /*! no static exports found */
  17816. /***/ (function(module, exports, __webpack_require__) {
  17817. "use strict";
  17818. /* WEBPACK VAR INJECTION */(function(global) {/*!
  17819. * vuex v3.6.2
  17820. * (c) 2021 Evan You
  17821. * @license MIT
  17822. */
  17823. function applyMixin (Vue) {
  17824. var version = Number(Vue.version.split('.')[0]);
  17825. if (version >= 2) {
  17826. Vue.mixin({ beforeCreate: vuexInit });
  17827. } else {
  17828. // override init and inject vuex init procedure
  17829. // for 1.x backwards compatibility.
  17830. var _init = Vue.prototype._init;
  17831. Vue.prototype._init = function (options) {
  17832. if ( options === void 0 ) options = {};
  17833. options.init = options.init
  17834. ? [vuexInit].concat(options.init)
  17835. : vuexInit;
  17836. _init.call(this, options);
  17837. };
  17838. }
  17839. /**
  17840. * Vuex init hook, injected into each instances init hooks list.
  17841. */
  17842. function vuexInit () {
  17843. var options = this.$options;
  17844. // store injection
  17845. if (options.store) {
  17846. this.$store = typeof options.store === 'function'
  17847. ? options.store()
  17848. : options.store;
  17849. } else if (options.parent && options.parent.$store) {
  17850. this.$store = options.parent.$store;
  17851. }
  17852. }
  17853. }
  17854. var target = typeof window !== 'undefined'
  17855. ? window
  17856. : typeof global !== 'undefined'
  17857. ? global
  17858. : {};
  17859. var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  17860. function devtoolPlugin (store) {
  17861. if (!devtoolHook) { return }
  17862. store._devtoolHook = devtoolHook;
  17863. devtoolHook.emit('vuex:init', store);
  17864. devtoolHook.on('vuex:travel-to-state', function (targetState) {
  17865. store.replaceState(targetState);
  17866. });
  17867. store.subscribe(function (mutation, state) {
  17868. devtoolHook.emit('vuex:mutation', mutation, state);
  17869. }, { prepend: true });
  17870. store.subscribeAction(function (action, state) {
  17871. devtoolHook.emit('vuex:action', action, state);
  17872. }, { prepend: true });
  17873. }
  17874. /**
  17875. * Get the first item that pass the test
  17876. * by second argument function
  17877. *
  17878. * @param {Array} list
  17879. * @param {Function} f
  17880. * @return {*}
  17881. */
  17882. function find (list, f) {
  17883. return list.filter(f)[0]
  17884. }
  17885. /**
  17886. * Deep copy the given object considering circular structure.
  17887. * This function caches all nested objects and its copies.
  17888. * If it detects circular structure, use cached copy to avoid infinite loop.
  17889. *
  17890. * @param {*} obj
  17891. * @param {Array<Object>} cache
  17892. * @return {*}
  17893. */
  17894. function deepCopy (obj, cache) {
  17895. if ( cache === void 0 ) cache = [];
  17896. // just return if obj is immutable value
  17897. if (obj === null || typeof obj !== 'object') {
  17898. return obj
  17899. }
  17900. // if obj is hit, it is in circular structure
  17901. var hit = find(cache, function (c) { return c.original === obj; });
  17902. if (hit) {
  17903. return hit.copy
  17904. }
  17905. var copy = Array.isArray(obj) ? [] : {};
  17906. // put the copy into cache at first
  17907. // because we want to refer it in recursive deepCopy
  17908. cache.push({
  17909. original: obj,
  17910. copy: copy
  17911. });
  17912. Object.keys(obj).forEach(function (key) {
  17913. copy[key] = deepCopy(obj[key], cache);
  17914. });
  17915. return copy
  17916. }
  17917. /**
  17918. * forEach for object
  17919. */
  17920. function forEachValue (obj, fn) {
  17921. Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });
  17922. }
  17923. function isObject (obj) {
  17924. return obj !== null && typeof obj === 'object'
  17925. }
  17926. function isPromise (val) {
  17927. return val && typeof val.then === 'function'
  17928. }
  17929. function assert (condition, msg) {
  17930. if (!condition) { throw new Error(("[vuex] " + msg)) }
  17931. }
  17932. function partial (fn, arg) {
  17933. return function () {
  17934. return fn(arg)
  17935. }
  17936. }
  17937. // Base data struct for store's module, package with some attribute and method
  17938. var Module = function Module (rawModule, runtime) {
  17939. this.runtime = runtime;
  17940. // Store some children item
  17941. this._children = Object.create(null);
  17942. // Store the origin module object which passed by programmer
  17943. this._rawModule = rawModule;
  17944. var rawState = rawModule.state;
  17945. // Store the origin module's state
  17946. this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
  17947. };
  17948. var prototypeAccessors = { namespaced: { configurable: true } };
  17949. prototypeAccessors.namespaced.get = function () {
  17950. return !!this._rawModule.namespaced
  17951. };
  17952. Module.prototype.addChild = function addChild (key, module) {
  17953. this._children[key] = module;
  17954. };
  17955. Module.prototype.removeChild = function removeChild (key) {
  17956. delete this._children[key];
  17957. };
  17958. Module.prototype.getChild = function getChild (key) {
  17959. return this._children[key]
  17960. };
  17961. Module.prototype.hasChild = function hasChild (key) {
  17962. return key in this._children
  17963. };
  17964. Module.prototype.update = function update (rawModule) {
  17965. this._rawModule.namespaced = rawModule.namespaced;
  17966. if (rawModule.actions) {
  17967. this._rawModule.actions = rawModule.actions;
  17968. }
  17969. if (rawModule.mutations) {
  17970. this._rawModule.mutations = rawModule.mutations;
  17971. }
  17972. if (rawModule.getters) {
  17973. this._rawModule.getters = rawModule.getters;
  17974. }
  17975. };
  17976. Module.prototype.forEachChild = function forEachChild (fn) {
  17977. forEachValue(this._children, fn);
  17978. };
  17979. Module.prototype.forEachGetter = function forEachGetter (fn) {
  17980. if (this._rawModule.getters) {
  17981. forEachValue(this._rawModule.getters, fn);
  17982. }
  17983. };
  17984. Module.prototype.forEachAction = function forEachAction (fn) {
  17985. if (this._rawModule.actions) {
  17986. forEachValue(this._rawModule.actions, fn);
  17987. }
  17988. };
  17989. Module.prototype.forEachMutation = function forEachMutation (fn) {
  17990. if (this._rawModule.mutations) {
  17991. forEachValue(this._rawModule.mutations, fn);
  17992. }
  17993. };
  17994. Object.defineProperties( Module.prototype, prototypeAccessors );
  17995. var ModuleCollection = function ModuleCollection (rawRootModule) {
  17996. // register root module (Vuex.Store options)
  17997. this.register([], rawRootModule, false);
  17998. };
  17999. ModuleCollection.prototype.get = function get (path) {
  18000. return path.reduce(function (module, key) {
  18001. return module.getChild(key)
  18002. }, this.root)
  18003. };
  18004. ModuleCollection.prototype.getNamespace = function getNamespace (path) {
  18005. var module = this.root;
  18006. return path.reduce(function (namespace, key) {
  18007. module = module.getChild(key);
  18008. return namespace + (module.namespaced ? key + '/' : '')
  18009. }, '')
  18010. };
  18011. ModuleCollection.prototype.update = function update$1 (rawRootModule) {
  18012. update([], this.root, rawRootModule);
  18013. };
  18014. ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
  18015. var this$1 = this;
  18016. if ( runtime === void 0 ) runtime = true;
  18017. if ((true)) {
  18018. assertRawModule(path, rawModule);
  18019. }
  18020. var newModule = new Module(rawModule, runtime);
  18021. if (path.length === 0) {
  18022. this.root = newModule;
  18023. } else {
  18024. var parent = this.get(path.slice(0, -1));
  18025. parent.addChild(path[path.length - 1], newModule);
  18026. }
  18027. // register nested modules
  18028. if (rawModule.modules) {
  18029. forEachValue(rawModule.modules, function (rawChildModule, key) {
  18030. this$1.register(path.concat(key), rawChildModule, runtime);
  18031. });
  18032. }
  18033. };
  18034. ModuleCollection.prototype.unregister = function unregister (path) {
  18035. var parent = this.get(path.slice(0, -1));
  18036. var key = path[path.length - 1];
  18037. var child = parent.getChild(key);
  18038. if (!child) {
  18039. if ((true)) {
  18040. console.warn(
  18041. "[vuex] trying to unregister module '" + key + "', which is " +
  18042. "not registered"
  18043. );
  18044. }
  18045. return
  18046. }
  18047. if (!child.runtime) {
  18048. return
  18049. }
  18050. parent.removeChild(key);
  18051. };
  18052. ModuleCollection.prototype.isRegistered = function isRegistered (path) {
  18053. var parent = this.get(path.slice(0, -1));
  18054. var key = path[path.length - 1];
  18055. if (parent) {
  18056. return parent.hasChild(key)
  18057. }
  18058. return false
  18059. };
  18060. function update (path, targetModule, newModule) {
  18061. if ((true)) {
  18062. assertRawModule(path, newModule);
  18063. }
  18064. // update target module
  18065. targetModule.update(newModule);
  18066. // update nested modules
  18067. if (newModule.modules) {
  18068. for (var key in newModule.modules) {
  18069. if (!targetModule.getChild(key)) {
  18070. if ((true)) {
  18071. console.warn(
  18072. "[vuex] trying to add a new module '" + key + "' on hot reloading, " +
  18073. 'manual reload is needed'
  18074. );
  18075. }
  18076. return
  18077. }
  18078. update(
  18079. path.concat(key),
  18080. targetModule.getChild(key),
  18081. newModule.modules[key]
  18082. );
  18083. }
  18084. }
  18085. }
  18086. var functionAssert = {
  18087. assert: function (value) { return typeof value === 'function'; },
  18088. expected: 'function'
  18089. };
  18090. var objectAssert = {
  18091. assert: function (value) { return typeof value === 'function' ||
  18092. (typeof value === 'object' && typeof value.handler === 'function'); },
  18093. expected: 'function or object with "handler" function'
  18094. };
  18095. var assertTypes = {
  18096. getters: functionAssert,
  18097. mutations: functionAssert,
  18098. actions: objectAssert
  18099. };
  18100. function assertRawModule (path, rawModule) {
  18101. Object.keys(assertTypes).forEach(function (key) {
  18102. if (!rawModule[key]) { return }
  18103. var assertOptions = assertTypes[key];
  18104. forEachValue(rawModule[key], function (value, type) {
  18105. assert(
  18106. assertOptions.assert(value),
  18107. makeAssertionMessage(path, key, type, value, assertOptions.expected)
  18108. );
  18109. });
  18110. });
  18111. }
  18112. function makeAssertionMessage (path, key, type, value, expected) {
  18113. var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
  18114. if (path.length > 0) {
  18115. buf += " in module \"" + (path.join('.')) + "\"";
  18116. }
  18117. buf += " is " + (JSON.stringify(value)) + ".";
  18118. return buf
  18119. }
  18120. var Vue; // bind on install
  18121. var Store = function Store (options) {
  18122. var this$1 = this;
  18123. if ( options === void 0 ) options = {};
  18124. // Auto install if it is not done yet and `window` has `Vue`.
  18125. // To allow users to avoid auto-installation in some cases,
  18126. // this code should be placed here. See #731
  18127. if (!Vue && typeof window !== 'undefined' && window.Vue) {
  18128. install(window.Vue);
  18129. }
  18130. if ((true)) {
  18131. assert(Vue, "must call Vue.use(Vuex) before creating a store instance.");
  18132. assert(typeof Promise !== 'undefined', "vuex requires a Promise polyfill in this browser.");
  18133. assert(this instanceof Store, "store must be called with the new operator.");
  18134. }
  18135. var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
  18136. var strict = options.strict; if ( strict === void 0 ) strict = false;
  18137. // store internal state
  18138. this._committing = false;
  18139. this._actions = Object.create(null);
  18140. this._actionSubscribers = [];
  18141. this._mutations = Object.create(null);
  18142. this._wrappedGetters = Object.create(null);
  18143. this._modules = new ModuleCollection(options);
  18144. this._modulesNamespaceMap = Object.create(null);
  18145. this._subscribers = [];
  18146. this._watcherVM = new Vue();
  18147. this._makeLocalGettersCache = Object.create(null);
  18148. // bind commit and dispatch to self
  18149. var store = this;
  18150. var ref = this;
  18151. var dispatch = ref.dispatch;
  18152. var commit = ref.commit;
  18153. this.dispatch = function boundDispatch (type, payload) {
  18154. return dispatch.call(store, type, payload)
  18155. };
  18156. this.commit = function boundCommit (type, payload, options) {
  18157. return commit.call(store, type, payload, options)
  18158. };
  18159. // strict mode
  18160. this.strict = strict;
  18161. var state = this._modules.root.state;
  18162. // init root module.
  18163. // this also recursively registers all sub-modules
  18164. // and collects all module getters inside this._wrappedGetters
  18165. installModule(this, state, [], this._modules.root);
  18166. // initialize the store vm, which is responsible for the reactivity
  18167. // (also registers _wrappedGetters as computed properties)
  18168. resetStoreVM(this, state);
  18169. // apply plugins
  18170. plugins.forEach(function (plugin) { return plugin(this$1); });
  18171. var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
  18172. if (useDevtools) {
  18173. devtoolPlugin(this);
  18174. }
  18175. };
  18176. var prototypeAccessors$1 = { state: { configurable: true } };
  18177. prototypeAccessors$1.state.get = function () {
  18178. return this._vm._data.$$state
  18179. };
  18180. prototypeAccessors$1.state.set = function (v) {
  18181. if ((true)) {
  18182. assert(false, "use store.replaceState() to explicit replace store state.");
  18183. }
  18184. };
  18185. Store.prototype.commit = function commit (_type, _payload, _options) {
  18186. var this$1 = this;
  18187. // check object-style commit
  18188. var ref = unifyObjectStyle(_type, _payload, _options);
  18189. var type = ref.type;
  18190. var payload = ref.payload;
  18191. var options = ref.options;
  18192. var mutation = { type: type, payload: payload };
  18193. var entry = this._mutations[type];
  18194. if (!entry) {
  18195. if ((true)) {
  18196. console.error(("[vuex] unknown mutation type: " + type));
  18197. }
  18198. return
  18199. }
  18200. this._withCommit(function () {
  18201. entry.forEach(function commitIterator (handler) {
  18202. handler(payload);
  18203. });
  18204. });
  18205. this._subscribers
  18206. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  18207. .forEach(function (sub) { return sub(mutation, this$1.state); });
  18208. if (
  18209. ( true) &&
  18210. options && options.silent
  18211. ) {
  18212. console.warn(
  18213. "[vuex] mutation type: " + type + ". Silent option has been removed. " +
  18214. 'Use the filter functionality in the vue-devtools'
  18215. );
  18216. }
  18217. };
  18218. Store.prototype.dispatch = function dispatch (_type, _payload) {
  18219. var this$1 = this;
  18220. // check object-style dispatch
  18221. var ref = unifyObjectStyle(_type, _payload);
  18222. var type = ref.type;
  18223. var payload = ref.payload;
  18224. var action = { type: type, payload: payload };
  18225. var entry = this._actions[type];
  18226. if (!entry) {
  18227. if ((true)) {
  18228. console.error(("[vuex] unknown action type: " + type));
  18229. }
  18230. return
  18231. }
  18232. try {
  18233. this._actionSubscribers
  18234. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  18235. .filter(function (sub) { return sub.before; })
  18236. .forEach(function (sub) { return sub.before(action, this$1.state); });
  18237. } catch (e) {
  18238. if ((true)) {
  18239. console.warn("[vuex] error in before action subscribers: ");
  18240. console.error(e);
  18241. }
  18242. }
  18243. var result = entry.length > 1
  18244. ? Promise.all(entry.map(function (handler) { return handler(payload); }))
  18245. : entry[0](payload);
  18246. return new Promise(function (resolve, reject) {
  18247. result.then(function (res) {
  18248. try {
  18249. this$1._actionSubscribers
  18250. .filter(function (sub) { return sub.after; })
  18251. .forEach(function (sub) { return sub.after(action, this$1.state); });
  18252. } catch (e) {
  18253. if ((true)) {
  18254. console.warn("[vuex] error in after action subscribers: ");
  18255. console.error(e);
  18256. }
  18257. }
  18258. resolve(res);
  18259. }, function (error) {
  18260. try {
  18261. this$1._actionSubscribers
  18262. .filter(function (sub) { return sub.error; })
  18263. .forEach(function (sub) { return sub.error(action, this$1.state, error); });
  18264. } catch (e) {
  18265. if ((true)) {
  18266. console.warn("[vuex] error in error action subscribers: ");
  18267. console.error(e);
  18268. }
  18269. }
  18270. reject(error);
  18271. });
  18272. })
  18273. };
  18274. Store.prototype.subscribe = function subscribe (fn, options) {
  18275. return genericSubscribe(fn, this._subscribers, options)
  18276. };
  18277. Store.prototype.subscribeAction = function subscribeAction (fn, options) {
  18278. var subs = typeof fn === 'function' ? { before: fn } : fn;
  18279. return genericSubscribe(subs, this._actionSubscribers, options)
  18280. };
  18281. Store.prototype.watch = function watch (getter, cb, options) {
  18282. var this$1 = this;
  18283. if ((true)) {
  18284. assert(typeof getter === 'function', "store.watch only accepts a function.");
  18285. }
  18286. return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
  18287. };
  18288. Store.prototype.replaceState = function replaceState (state) {
  18289. var this$1 = this;
  18290. this._withCommit(function () {
  18291. this$1._vm._data.$$state = state;
  18292. });
  18293. };
  18294. Store.prototype.registerModule = function registerModule (path, rawModule, options) {
  18295. if ( options === void 0 ) options = {};
  18296. if (typeof path === 'string') { path = [path]; }
  18297. if ((true)) {
  18298. assert(Array.isArray(path), "module path must be a string or an Array.");
  18299. assert(path.length > 0, 'cannot register the root module by using registerModule.');
  18300. }
  18301. this._modules.register(path, rawModule);
  18302. installModule(this, this.state, path, this._modules.get(path), options.preserveState);
  18303. // reset store to update getters...
  18304. resetStoreVM(this, this.state);
  18305. };
  18306. Store.prototype.unregisterModule = function unregisterModule (path) {
  18307. var this$1 = this;
  18308. if (typeof path === 'string') { path = [path]; }
  18309. if ((true)) {
  18310. assert(Array.isArray(path), "module path must be a string or an Array.");
  18311. }
  18312. this._modules.unregister(path);
  18313. this._withCommit(function () {
  18314. var parentState = getNestedState(this$1.state, path.slice(0, -1));
  18315. Vue.delete(parentState, path[path.length - 1]);
  18316. });
  18317. resetStore(this);
  18318. };
  18319. Store.prototype.hasModule = function hasModule (path) {
  18320. if (typeof path === 'string') { path = [path]; }
  18321. if ((true)) {
  18322. assert(Array.isArray(path), "module path must be a string or an Array.");
  18323. }
  18324. return this._modules.isRegistered(path)
  18325. };
  18326. Store.prototype[[104,111,116,85,112,100,97,116,101].map(function (item) {return String.fromCharCode(item)}).join('')] = function (newOptions) {
  18327. this._modules.update(newOptions);
  18328. resetStore(this, true);
  18329. };
  18330. Store.prototype._withCommit = function _withCommit (fn) {
  18331. var committing = this._committing;
  18332. this._committing = true;
  18333. fn();
  18334. this._committing = committing;
  18335. };
  18336. Object.defineProperties( Store.prototype, prototypeAccessors$1 );
  18337. function genericSubscribe (fn, subs, options) {
  18338. if (subs.indexOf(fn) < 0) {
  18339. options && options.prepend
  18340. ? subs.unshift(fn)
  18341. : subs.push(fn);
  18342. }
  18343. return function () {
  18344. var i = subs.indexOf(fn);
  18345. if (i > -1) {
  18346. subs.splice(i, 1);
  18347. }
  18348. }
  18349. }
  18350. function resetStore (store, hot) {
  18351. store._actions = Object.create(null);
  18352. store._mutations = Object.create(null);
  18353. store._wrappedGetters = Object.create(null);
  18354. store._modulesNamespaceMap = Object.create(null);
  18355. var state = store.state;
  18356. // init all modules
  18357. installModule(store, state, [], store._modules.root, true);
  18358. // reset vm
  18359. resetStoreVM(store, state, hot);
  18360. }
  18361. function resetStoreVM (store, state, hot) {
  18362. var oldVm = store._vm;
  18363. // bind store public getters
  18364. store.getters = {};
  18365. // reset local getters cache
  18366. store._makeLocalGettersCache = Object.create(null);
  18367. var wrappedGetters = store._wrappedGetters;
  18368. var computed = {};
  18369. forEachValue(wrappedGetters, function (fn, key) {
  18370. // use computed to leverage its lazy-caching mechanism
  18371. // direct inline function use will lead to closure preserving oldVm.
  18372. // using partial to return function with only arguments preserved in closure environment.
  18373. computed[key] = partial(fn, store);
  18374. Object.defineProperty(store.getters, key, {
  18375. get: function () { return store._vm[key]; },
  18376. enumerable: true // for local getters
  18377. });
  18378. });
  18379. // use a Vue instance to store the state tree
  18380. // suppress warnings just in case the user has added
  18381. // some funky global mixins
  18382. var silent = Vue.config.silent;
  18383. Vue.config.silent = true;
  18384. store._vm = new Vue({
  18385. data: {
  18386. $$state: state
  18387. },
  18388. computed: computed
  18389. });
  18390. Vue.config.silent = silent;
  18391. // enable strict mode for new vm
  18392. if (store.strict) {
  18393. enableStrictMode(store);
  18394. }
  18395. if (oldVm) {
  18396. if (hot) {
  18397. // dispatch changes in all subscribed watchers
  18398. // to force getter re-evaluation for hot reloading.
  18399. store._withCommit(function () {
  18400. oldVm._data.$$state = null;
  18401. });
  18402. }
  18403. Vue.nextTick(function () { return oldVm.$destroy(); });
  18404. }
  18405. }
  18406. function installModule (store, rootState, path, module, hot) {
  18407. var isRoot = !path.length;
  18408. var namespace = store._modules.getNamespace(path);
  18409. // register in namespace map
  18410. if (module.namespaced) {
  18411. if (store._modulesNamespaceMap[namespace] && ("development" !== 'production')) {
  18412. console.error(("[vuex] duplicate namespace " + namespace + " for the namespaced module " + (path.join('/'))));
  18413. }
  18414. store._modulesNamespaceMap[namespace] = module;
  18415. }
  18416. // set state
  18417. if (!isRoot && !hot) {
  18418. var parentState = getNestedState(rootState, path.slice(0, -1));
  18419. var moduleName = path[path.length - 1];
  18420. store._withCommit(function () {
  18421. if ((true)) {
  18422. if (moduleName in parentState) {
  18423. console.warn(
  18424. ("[vuex] state field \"" + moduleName + "\" was overridden by a module with the same name at \"" + (path.join('.')) + "\"")
  18425. );
  18426. }
  18427. }
  18428. Vue.set(parentState, moduleName, module.state);
  18429. });
  18430. }
  18431. var local = module.context = makeLocalContext(store, namespace, path);
  18432. module.forEachMutation(function (mutation, key) {
  18433. var namespacedType = namespace + key;
  18434. registerMutation(store, namespacedType, mutation, local);
  18435. });
  18436. module.forEachAction(function (action, key) {
  18437. var type = action.root ? key : namespace + key;
  18438. var handler = action.handler || action;
  18439. registerAction(store, type, handler, local);
  18440. });
  18441. module.forEachGetter(function (getter, key) {
  18442. var namespacedType = namespace + key;
  18443. registerGetter(store, namespacedType, getter, local);
  18444. });
  18445. module.forEachChild(function (child, key) {
  18446. installModule(store, rootState, path.concat(key), child, hot);
  18447. });
  18448. }
  18449. /**
  18450. * make localized dispatch, commit, getters and state
  18451. * if there is no namespace, just use root ones
  18452. */
  18453. function makeLocalContext (store, namespace, path) {
  18454. var noNamespace = namespace === '';
  18455. var local = {
  18456. dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
  18457. var args = unifyObjectStyle(_type, _payload, _options);
  18458. var payload = args.payload;
  18459. var options = args.options;
  18460. var type = args.type;
  18461. if (!options || !options.root) {
  18462. type = namespace + type;
  18463. if (( true) && !store._actions[type]) {
  18464. console.error(("[vuex] unknown local action type: " + (args.type) + ", global type: " + type));
  18465. return
  18466. }
  18467. }
  18468. return store.dispatch(type, payload)
  18469. },
  18470. commit: noNamespace ? store.commit : function (_type, _payload, _options) {
  18471. var args = unifyObjectStyle(_type, _payload, _options);
  18472. var payload = args.payload;
  18473. var options = args.options;
  18474. var type = args.type;
  18475. if (!options || !options.root) {
  18476. type = namespace + type;
  18477. if (( true) && !store._mutations[type]) {
  18478. console.error(("[vuex] unknown local mutation type: " + (args.type) + ", global type: " + type));
  18479. return
  18480. }
  18481. }
  18482. store.commit(type, payload, options);
  18483. }
  18484. };
  18485. // getters and state object must be gotten lazily
  18486. // because they will be changed by vm update
  18487. Object.defineProperties(local, {
  18488. getters: {
  18489. get: noNamespace
  18490. ? function () { return store.getters; }
  18491. : function () { return makeLocalGetters(store, namespace); }
  18492. },
  18493. state: {
  18494. get: function () { return getNestedState(store.state, path); }
  18495. }
  18496. });
  18497. return local
  18498. }
  18499. function makeLocalGetters (store, namespace) {
  18500. if (!store._makeLocalGettersCache[namespace]) {
  18501. var gettersProxy = {};
  18502. var splitPos = namespace.length;
  18503. Object.keys(store.getters).forEach(function (type) {
  18504. // skip if the target getter is not match this namespace
  18505. if (type.slice(0, splitPos) !== namespace) { return }
  18506. // extract local getter type
  18507. var localType = type.slice(splitPos);
  18508. // Add a port to the getters proxy.
  18509. // Define as getter property because
  18510. // we do not want to evaluate the getters in this time.
  18511. Object.defineProperty(gettersProxy, localType, {
  18512. get: function () { return store.getters[type]; },
  18513. enumerable: true
  18514. });
  18515. });
  18516. store._makeLocalGettersCache[namespace] = gettersProxy;
  18517. }
  18518. return store._makeLocalGettersCache[namespace]
  18519. }
  18520. function registerMutation (store, type, handler, local) {
  18521. var entry = store._mutations[type] || (store._mutations[type] = []);
  18522. entry.push(function wrappedMutationHandler (payload) {
  18523. handler.call(store, local.state, payload);
  18524. });
  18525. }
  18526. function registerAction (store, type, handler, local) {
  18527. var entry = store._actions[type] || (store._actions[type] = []);
  18528. entry.push(function wrappedActionHandler (payload) {
  18529. var res = handler.call(store, {
  18530. dispatch: local.dispatch,
  18531. commit: local.commit,
  18532. getters: local.getters,
  18533. state: local.state,
  18534. rootGetters: store.getters,
  18535. rootState: store.state
  18536. }, payload);
  18537. if (!isPromise(res)) {
  18538. res = Promise.resolve(res);
  18539. }
  18540. if (store._devtoolHook) {
  18541. return res.catch(function (err) {
  18542. store._devtoolHook.emit('vuex:error', err);
  18543. throw err
  18544. })
  18545. } else {
  18546. return res
  18547. }
  18548. });
  18549. }
  18550. function registerGetter (store, type, rawGetter, local) {
  18551. if (store._wrappedGetters[type]) {
  18552. if ((true)) {
  18553. console.error(("[vuex] duplicate getter key: " + type));
  18554. }
  18555. return
  18556. }
  18557. store._wrappedGetters[type] = function wrappedGetter (store) {
  18558. return rawGetter(
  18559. local.state, // local state
  18560. local.getters, // local getters
  18561. store.state, // root state
  18562. store.getters // root getters
  18563. )
  18564. };
  18565. }
  18566. function enableStrictMode (store) {
  18567. store._vm.$watch(function () { return this._data.$$state }, function () {
  18568. if ((true)) {
  18569. assert(store._committing, "do not mutate vuex store state outside mutation handlers.");
  18570. }
  18571. }, { deep: true, sync: true });
  18572. }
  18573. function getNestedState (state, path) {
  18574. return path.reduce(function (state, key) { return state[key]; }, state)
  18575. }
  18576. function unifyObjectStyle (type, payload, options) {
  18577. if (isObject(type) && type.type) {
  18578. options = payload;
  18579. payload = type;
  18580. type = type.type;
  18581. }
  18582. if ((true)) {
  18583. assert(typeof type === 'string', ("expects string as the type, but found " + (typeof type) + "."));
  18584. }
  18585. return { type: type, payload: payload, options: options }
  18586. }
  18587. function install (_Vue) {
  18588. if (Vue && _Vue === Vue) {
  18589. if ((true)) {
  18590. console.error(
  18591. '[vuex] already installed. Vue.use(Vuex) should be called only once.'
  18592. );
  18593. }
  18594. return
  18595. }
  18596. Vue = _Vue;
  18597. applyMixin(Vue);
  18598. }
  18599. /**
  18600. * Reduce the code which written in Vue.js for getting the state.
  18601. * @param {String} [namespace] - Module's namespace
  18602. * @param {Object|Array} states # Object's item can be a function which accept state and getters for param, you can do something for state and getters in it.
  18603. * @param {Object}
  18604. */
  18605. var mapState = normalizeNamespace(function (namespace, states) {
  18606. var res = {};
  18607. if (( true) && !isValidMap(states)) {
  18608. console.error('[vuex] mapState: mapper parameter must be either an Array or an Object');
  18609. }
  18610. normalizeMap(states).forEach(function (ref) {
  18611. var key = ref.key;
  18612. var val = ref.val;
  18613. res[key] = function mappedState () {
  18614. var state = this.$store.state;
  18615. var getters = this.$store.getters;
  18616. if (namespace) {
  18617. var module = getModuleByNamespace(this.$store, 'mapState', namespace);
  18618. if (!module) {
  18619. return
  18620. }
  18621. state = module.context.state;
  18622. getters = module.context.getters;
  18623. }
  18624. return typeof val === 'function'
  18625. ? val.call(this, state, getters)
  18626. : state[val]
  18627. };
  18628. // mark vuex getter for devtools
  18629. res[key].vuex = true;
  18630. });
  18631. return res
  18632. });
  18633. /**
  18634. * Reduce the code which written in Vue.js for committing the mutation
  18635. * @param {String} [namespace] - Module's namespace
  18636. * @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept another params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
  18637. * @return {Object}
  18638. */
  18639. var mapMutations = normalizeNamespace(function (namespace, mutations) {
  18640. var res = {};
  18641. if (( true) && !isValidMap(mutations)) {
  18642. console.error('[vuex] mapMutations: mapper parameter must be either an Array or an Object');
  18643. }
  18644. normalizeMap(mutations).forEach(function (ref) {
  18645. var key = ref.key;
  18646. var val = ref.val;
  18647. res[key] = function mappedMutation () {
  18648. var args = [], len = arguments.length;
  18649. while ( len-- ) args[ len ] = arguments[ len ];
  18650. // Get the commit method from store
  18651. var commit = this.$store.commit;
  18652. if (namespace) {
  18653. var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
  18654. if (!module) {
  18655. return
  18656. }
  18657. commit = module.context.commit;
  18658. }
  18659. return typeof val === 'function'
  18660. ? val.apply(this, [commit].concat(args))
  18661. : commit.apply(this.$store, [val].concat(args))
  18662. };
  18663. });
  18664. return res
  18665. });
  18666. /**
  18667. * Reduce the code which written in Vue.js for getting the getters
  18668. * @param {String} [namespace] - Module's namespace
  18669. * @param {Object|Array} getters
  18670. * @return {Object}
  18671. */
  18672. var mapGetters = normalizeNamespace(function (namespace, getters) {
  18673. var res = {};
  18674. if (( true) && !isValidMap(getters)) {
  18675. console.error('[vuex] mapGetters: mapper parameter must be either an Array or an Object');
  18676. }
  18677. normalizeMap(getters).forEach(function (ref) {
  18678. var key = ref.key;
  18679. var val = ref.val;
  18680. // The namespace has been mutated by normalizeNamespace
  18681. val = namespace + val;
  18682. res[key] = function mappedGetter () {
  18683. if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
  18684. return
  18685. }
  18686. if (( true) && !(val in this.$store.getters)) {
  18687. console.error(("[vuex] unknown getter: " + val));
  18688. return
  18689. }
  18690. return this.$store.getters[val]
  18691. };
  18692. // mark vuex getter for devtools
  18693. res[key].vuex = true;
  18694. });
  18695. return res
  18696. });
  18697. /**
  18698. * Reduce the code which written in Vue.js for dispatch the action
  18699. * @param {String} [namespace] - Module's namespace
  18700. * @param {Object|Array} actions # Object's item can be a function which accept `dispatch` function as the first param, it can accept anthor params. You can dispatch action and do any other things in this function. specially, You need to pass anthor params from the mapped function.
  18701. * @return {Object}
  18702. */
  18703. var mapActions = normalizeNamespace(function (namespace, actions) {
  18704. var res = {};
  18705. if (( true) && !isValidMap(actions)) {
  18706. console.error('[vuex] mapActions: mapper parameter must be either an Array or an Object');
  18707. }
  18708. normalizeMap(actions).forEach(function (ref) {
  18709. var key = ref.key;
  18710. var val = ref.val;
  18711. res[key] = function mappedAction () {
  18712. var args = [], len = arguments.length;
  18713. while ( len-- ) args[ len ] = arguments[ len ];
  18714. // get dispatch function from store
  18715. var dispatch = this.$store.dispatch;
  18716. if (namespace) {
  18717. var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
  18718. if (!module) {
  18719. return
  18720. }
  18721. dispatch = module.context.dispatch;
  18722. }
  18723. return typeof val === 'function'
  18724. ? val.apply(this, [dispatch].concat(args))
  18725. : dispatch.apply(this.$store, [val].concat(args))
  18726. };
  18727. });
  18728. return res
  18729. });
  18730. /**
  18731. * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
  18732. * @param {String} namespace
  18733. * @return {Object}
  18734. */
  18735. var createNamespacedHelpers = function (namespace) { return ({
  18736. mapState: mapState.bind(null, namespace),
  18737. mapGetters: mapGetters.bind(null, namespace),
  18738. mapMutations: mapMutations.bind(null, namespace),
  18739. mapActions: mapActions.bind(null, namespace)
  18740. }); };
  18741. /**
  18742. * Normalize the map
  18743. * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
  18744. * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
  18745. * @param {Array|Object} map
  18746. * @return {Object}
  18747. */
  18748. function normalizeMap (map) {
  18749. if (!isValidMap(map)) {
  18750. return []
  18751. }
  18752. return Array.isArray(map)
  18753. ? map.map(function (key) { return ({ key: key, val: key }); })
  18754. : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })
  18755. }
  18756. /**
  18757. * Validate whether given map is valid or not
  18758. * @param {*} map
  18759. * @return {Boolean}
  18760. */
  18761. function isValidMap (map) {
  18762. return Array.isArray(map) || isObject(map)
  18763. }
  18764. /**
  18765. * Return a function expect two param contains namespace and map. it will normalize the namespace and then the param's function will handle the new namespace and the map.
  18766. * @param {Function} fn
  18767. * @return {Function}
  18768. */
  18769. function normalizeNamespace (fn) {
  18770. return function (namespace, map) {
  18771. if (typeof namespace !== 'string') {
  18772. map = namespace;
  18773. namespace = '';
  18774. } else if (namespace.charAt(namespace.length - 1) !== '/') {
  18775. namespace += '/';
  18776. }
  18777. return fn(namespace, map)
  18778. }
  18779. }
  18780. /**
  18781. * Search a special module from store by namespace. if module not exist, print error message.
  18782. * @param {Object} store
  18783. * @param {String} helper
  18784. * @param {String} namespace
  18785. * @return {Object}
  18786. */
  18787. function getModuleByNamespace (store, helper, namespace) {
  18788. var module = store._modulesNamespaceMap[namespace];
  18789. if (( true) && !module) {
  18790. console.error(("[vuex] module namespace not found in " + helper + "(): " + namespace));
  18791. }
  18792. return module
  18793. }
  18794. // Credits: borrowed code from fcomb/redux-logger
  18795. function createLogger (ref) {
  18796. if ( ref === void 0 ) ref = {};
  18797. var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
  18798. var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
  18799. var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
  18800. var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };
  18801. var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };
  18802. var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };
  18803. var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;
  18804. var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;
  18805. var logger = ref.logger; if ( logger === void 0 ) logger = console;
  18806. return function (store) {
  18807. var prevState = deepCopy(store.state);
  18808. if (typeof logger === 'undefined') {
  18809. return
  18810. }
  18811. if (logMutations) {
  18812. store.subscribe(function (mutation, state) {
  18813. var nextState = deepCopy(state);
  18814. if (filter(mutation, prevState, nextState)) {
  18815. var formattedTime = getFormattedTime();
  18816. var formattedMutation = mutationTransformer(mutation);
  18817. var message = "mutation " + (mutation.type) + formattedTime;
  18818. startMessage(logger, message, collapsed);
  18819. logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
  18820. logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
  18821. logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
  18822. endMessage(logger);
  18823. }
  18824. prevState = nextState;
  18825. });
  18826. }
  18827. if (logActions) {
  18828. store.subscribeAction(function (action, state) {
  18829. if (actionFilter(action, state)) {
  18830. var formattedTime = getFormattedTime();
  18831. var formattedAction = actionTransformer(action);
  18832. var message = "action " + (action.type) + formattedTime;
  18833. startMessage(logger, message, collapsed);
  18834. logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
  18835. endMessage(logger);
  18836. }
  18837. });
  18838. }
  18839. }
  18840. }
  18841. function startMessage (logger, message, collapsed) {
  18842. var startMessage = collapsed
  18843. ? logger.groupCollapsed
  18844. : logger.group;
  18845. // render
  18846. try {
  18847. startMessage.call(logger, message);
  18848. } catch (e) {
  18849. logger.log(message);
  18850. }
  18851. }
  18852. function endMessage (logger) {
  18853. try {
  18854. logger.groupEnd();
  18855. } catch (e) {
  18856. logger.log('—— log end ——');
  18857. }
  18858. }
  18859. function getFormattedTime () {
  18860. var time = new Date();
  18861. return (" @ " + (pad(time.getHours(), 2)) + ":" + (pad(time.getMinutes(), 2)) + ":" + (pad(time.getSeconds(), 2)) + "." + (pad(time.getMilliseconds(), 3)))
  18862. }
  18863. function repeat (str, times) {
  18864. return (new Array(times + 1)).join(str)
  18865. }
  18866. function pad (num, maxLength) {
  18867. return repeat('0', maxLength - num.toString().length) + num
  18868. }
  18869. var index_cjs = {
  18870. Store: Store,
  18871. install: install,
  18872. version: '3.6.2',
  18873. mapState: mapState,
  18874. mapMutations: mapMutations,
  18875. mapGetters: mapGetters,
  18876. mapActions: mapActions,
  18877. createNamespacedHelpers: createNamespacedHelpers,
  18878. createLogger: createLogger
  18879. };
  18880. module.exports = index_cjs;
  18881. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  18882. /***/ }),
  18883. /* 162 */
  18884. /*!************************************************************!*\
  18885. !*** D:/wwwroot/xusfood/xusfood_client/common/http.api.js ***!
  18886. \************************************************************/
  18887. /*! no static exports found */
  18888. /***/ (function(module, exports, __webpack_require__) {
  18889. "use strict";
  18890. /* WEBPACK VAR INJECTION */(function(uni) {
  18891. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  18892. Object.defineProperty(exports, "__esModule", {
  18893. value: true
  18894. });
  18895. exports.default = void 0;
  18896. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  18897. var _apiurl = __webpack_require__(/*! ./apiurl.js */ 163);
  18898. 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; }
  18899. 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; }
  18900. // 此处第二个参数vm,就是我们在页面使用的this,你可以通过vm获取vuex等操作,更多内容详见uView对拦截器的介绍部分:
  18901. var install = function install(Vue, vm) {
  18902. var httpMap = {};
  18903. var http = uni.$u.http;
  18904. // 循环请求路径对象生成对应的方式请求
  18905. Object.keys(_apiurl.apiurl).forEach(function (key) {
  18906. var _apiurl$key;
  18907. if (((_apiurl$key = _apiurl.apiurl[key]) === null || _apiurl$key === void 0 ? void 0 : _apiurl$key.type) == 'get') {
  18908. httpMap[key] = function () {
  18909. var _apiurl$key2, _apiurl$key3;
  18910. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  18911. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  18912. return http[(_apiurl$key2 = _apiurl.apiurl[key]) === null || _apiurl$key2 === void 0 ? void 0 : _apiurl$key2.type]((_apiurl$key3 = _apiurl.apiurl[key]) === null || _apiurl$key3 === void 0 ? void 0 : _apiurl$key3.url, {
  18913. params: data
  18914. }, config);
  18915. };
  18916. } else {
  18917. httpMap[key] = function () {
  18918. var _apiurl$key4, _apiurl$key5;
  18919. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  18920. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  18921. return http[(_apiurl$key4 = _apiurl.apiurl[key]) === null || _apiurl$key4 === void 0 ? void 0 : _apiurl$key4.type]((_apiurl$key5 = _apiurl.apiurl[key]) === null || _apiurl$key5 === void 0 ? void 0 : _apiurl$key5.url, params, config);
  18922. };
  18923. }
  18924. });
  18925. // 将各个定义的接口名称,统一放进对象挂载到vm.$u.api(因为vm就是this,也即this.$u.api)下
  18926. vm.$u.api = _objectSpread({}, httpMap);
  18927. };
  18928. var _default = {
  18929. install: install
  18930. };
  18931. exports.default = _default;
  18932. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18933. /***/ }),
  18934. /* 163 */
  18935. /*!**********************************************************!*\
  18936. !*** D:/wwwroot/xusfood/xusfood_client/common/apiurl.js ***!
  18937. \**********************************************************/
  18938. /*! no static exports found */
  18939. /***/ (function(module, exports, __webpack_require__) {
  18940. "use strict";
  18941. Object.defineProperty(exports, "__esModule", {
  18942. value: true
  18943. });
  18944. exports.otherApiUrl = exports.apiurl = void 0;
  18945. /*
  18946. 接口统一管理
  18947. */
  18948. var apiurl = {
  18949. // 获取微信信息
  18950. wxinfo: {
  18951. url: '/auth/miniappLoginInfo',
  18952. type: 'get'
  18953. },
  18954. // 授权获取微信手机号
  18955. getMobile: {
  18956. url: '/auth/getMobile',
  18957. type: 'get'
  18958. },
  18959. // 用户注册登陆
  18960. login: {
  18961. url: '/auth/userRegisterOrLogin',
  18962. type: 'post'
  18963. },
  18964. // 重新登录
  18965. reLogin: {
  18966. url: '/auth/login',
  18967. type: 'post'
  18968. },
  18969. // 查询登录用户信息
  18970. memberInfo: {
  18971. url: '/memberInfo/selectById',
  18972. type: 'get'
  18973. },
  18974. // 修改用户信息
  18975. updateMemberInfo: {
  18976. url: '/memberInfo/update',
  18977. type: 'put'
  18978. },
  18979. // 商品分类信息
  18980. goodsTypeTree: {
  18981. url: '/goodsType/tree',
  18982. type: 'get'
  18983. },
  18984. // 商品分类信息列表
  18985. goodsTypeList: {
  18986. url: '/goodsType/list',
  18987. type: 'get'
  18988. },
  18989. // 商品列表
  18990. memberGoodList: {
  18991. url: '/goods/memberGoodList',
  18992. type: 'get'
  18993. },
  18994. // 商品详情
  18995. memberGoodDetails: {
  18996. url: '/goods/memberGetById',
  18997. type: 'get'
  18998. },
  18999. // 商品评价
  19000. commentList: {
  19001. url: '/goods/commentList',
  19002. type: 'get'
  19003. },
  19004. // 查询类型简介
  19005. xsGetIntro: {
  19006. url: '/shop/getIntro',
  19007. type: 'get'
  19008. },
  19009. // 商行产品类型
  19010. shopGoodsType: {
  19011. url: '/shopGoodsType/list',
  19012. type: 'get'
  19013. },
  19014. // 商行产品列表
  19015. shopGoods: {
  19016. url: '/shopGoods/pageList',
  19017. type: 'get'
  19018. },
  19019. // 动态类型列表
  19020. shopNewsType: {
  19021. url: '/shopNewsType/list',
  19022. type: 'get'
  19023. },
  19024. // 动态列表
  19025. shopNewsList: {
  19026. url: '/shopNews/pageList',
  19027. type: 'get'
  19028. },
  19029. // 动态详情
  19030. shopNews: {
  19031. url: '/shopNews/selectById',
  19032. type: 'get'
  19033. },
  19034. // 动态详情增加浏览量
  19035. addViewCount: {
  19036. url: '/shopNews/addViewCount',
  19037. type: 'put'
  19038. },
  19039. // 购物车
  19040. // 商品加入购物车
  19041. addCart: {
  19042. url: '/goodsCart/insert',
  19043. type: 'post'
  19044. },
  19045. // 购物车列表
  19046. cartList: {
  19047. url: '/goodsCart/pageList',
  19048. type: 'get'
  19049. }
  19050. };
  19051. /*
  19052. * 特殊处理接口
  19053. */
  19054. exports.apiurl = apiurl;
  19055. var otherApiUrl = {
  19056. // 文件上传
  19057. uploadFile: '/file/upload/single/minio'
  19058. };
  19059. exports.otherApiUrl = otherApiUrl;
  19060. /***/ }),
  19061. /* 164 */
  19062. /*!***********************************************************!*\
  19063. !*** D:/wwwroot/xusfood/xusfood_client/store/$u.mixin.js ***!
  19064. \***********************************************************/
  19065. /*! no static exports found */
  19066. /***/ (function(module, exports, __webpack_require__) {
  19067. "use strict";
  19068. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  19069. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  19070. var _vuex = __webpack_require__(/*! vuex */ 161);
  19071. var _store = _interopRequireDefault(__webpack_require__(/*! @/store */ 160));
  19072. 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; }
  19073. 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; }
  19074. // 尝试将用户在根目录中的store/index.js的vuex的state变量,全部加载到全局变量中
  19075. var $uStoreKey = [];
  19076. try {
  19077. $uStoreKey = _store.default.state ? Object.keys(_store.default.state) : [];
  19078. } catch (e) {}
  19079. module.exports = {
  19080. created: function created() {
  19081. var _this = this;
  19082. // 将vuex方法挂在到$u中
  19083. // 使用方法为:如果要修改vuex的state中的user.name变量为"史诗" => this.$u.vuex('user.name', '史诗')
  19084. // 如果要修改vuex的state的version变量为1.0.1 => this.$u.vuex('version', '1.0.1')
  19085. this.$u.vuex = function (name, value) {
  19086. _this.$store.commit('$uStore', {
  19087. name: name,
  19088. value: value
  19089. });
  19090. };
  19091. },
  19092. computed: _objectSpread({}, (0, _vuex.mapState)($uStoreKey))
  19093. };
  19094. /***/ }),
  19095. /* 165 */
  19096. /*!***********************************************************!*\
  19097. !*** D:/wwwroot/xusfood/xusfood_client/common/request.js ***!
  19098. \***********************************************************/
  19099. /*! no static exports found */
  19100. /***/ (function(module, exports, __webpack_require__) {
  19101. "use strict";
  19102. /* WEBPACK VAR INJECTION */(function(uni) {
  19103. var _config = __webpack_require__(/*! @/common/config.js */ 158);
  19104. var _againToken = __webpack_require__(/*! ../utils/againToken.js */ 166);
  19105. var _loading = __webpack_require__(/*! ../utils/loading.js */ 167);
  19106. // 此vm参数为页面的实例,可以通过它引用vuex中的变量
  19107. module.exports = function (vm) {
  19108. // 初始化请求配置
  19109. uni.$u.http.setConfig(function (config) {
  19110. /* config 为默认全局配置*/
  19111. config.baseURL = _config.commonConfig.baseUrl; /* 根域名 */
  19112. return config;
  19113. });
  19114. // 请求拦截
  19115. uni.$u.http.interceptors.request.use(function (config) {
  19116. var _config$custom, _config$custom2;
  19117. // 可使用async await 做异步操作
  19118. // console.log('config========',config);
  19119. // 初始化请求拦截器时,会执行此方法,此时data为undefined,赋予默认{}
  19120. config.data = config.data || {};
  19121. // 根据custom参数中配置的是否需要token,添加对应的请求头
  19122. if (!(config !== null && config !== void 0 && (_config$custom = config.custom) !== null && _config$custom !== void 0 && _config$custom.auth)) {
  19123. // 可以在此通过vm引用vuex中的变量,具体值在vm.$store.state中
  19124. // config.header.token = vm.vuex_user_info.token;
  19125. config.header.Authorization = "Bearer ".concat(vm.vuex_user_info.token);
  19126. }
  19127. if (!(config !== null && config !== void 0 && (_config$custom2 = config.custom) !== null && _config$custom2 !== void 0 && _config$custom2.noload)) {
  19128. (0, _loading.showFullScreenLoading)();
  19129. }
  19130. return config;
  19131. }, function (config) {
  19132. // 可使用async await 做异步操作
  19133. return Promise.reject(config);
  19134. });
  19135. var unlogin = function unlogin() {
  19136. if (vm.vuex_user_info.userid && vm.vuex_wechatOpenid) {
  19137. (0, _againToken.againToken)(vm.$u, vm.vuex_wechatOpenid, vm.vuex_user_info.userid);
  19138. } else {
  19139. var pages = getCurrentPages();
  19140. // console.log('pages',pages);
  19141. var backUrl = pages[pages.length - 1].route;
  19142. var loginUrl = 'login';
  19143. if (backUrl.indexOf(loginUrl) > 0) {
  19144. uni.removeStorage({
  19145. key: 'backUrl',
  19146. success: function success(res) {
  19147. // console.log('success');
  19148. }
  19149. });
  19150. } else {
  19151. // uni.showToast({
  19152. // title: res.msg + "即将跳转到登录页",
  19153. // icon: "none",
  19154. // duration: 2000
  19155. // });
  19156. uni.setStorage({
  19157. key: 'backUrl',
  19158. data: backUrl,
  19159. success: function success() {
  19160. // console.log('setStorage success');
  19161. }
  19162. });
  19163. setTimeout(function () {
  19164. uni.$u.route('/pages/login/login');
  19165. }, 1000);
  19166. }
  19167. }
  19168. };
  19169. // 响应拦截
  19170. uni.$u.http.interceptors.response.use(function (response) {
  19171. var _response$config;
  19172. /* 对响应成功做点什么 可使用async await 做异步操作*/
  19173. // console.log('response====response',response);
  19174. var data = response.data;
  19175. // 自定义参数
  19176. var custom = (_response$config = response.config) === null || _response$config === void 0 ? void 0 : _response$config.custom;
  19177. if (data.code !== 200) {
  19178. // console.log('data====',data);
  19179. // 如果没有显式定义custom的toast参数为false的话,默认对报错进行toast弹出提示
  19180. if (custom.toast !== false) {
  19181. uni.$u.toast(data.msg);
  19182. }
  19183. if (data.msg == "令牌不能为空" || data.code == 401) {
  19184. unlogin();
  19185. }
  19186. return Promise.reject(data);
  19187. // 如果需要catch返回,则进行reject
  19188. // if (custom?.catch) {
  19189. // return Promise.reject(data)
  19190. // } else {
  19191. // // 否则返回一个pending中的promise,请求不会进入catch中
  19192. // return new Promise(() => { })
  19193. // }
  19194. }
  19195. // console.log('data--',data);
  19196. (0, _loading.tryHideFullScreenLoading)();
  19197. return data === undefined ? {} : data;
  19198. }, function (response) {
  19199. (0, _loading.tryHideFullScreenLoading)();
  19200. // console.log('response==',response);
  19201. var data = response.data;
  19202. // console.log('data==',data);
  19203. // 对响应错误做点什么 (statusCode !== 200)
  19204. var errMap = {
  19205. '404': '接口不存在'
  19206. };
  19207. if (response.statusCode in errMap) {
  19208. uni.$u.toast(errMap[response.statusCode]);
  19209. }
  19210. if (data.msg == "令牌不能为空" || data.code == 401) {
  19211. unlogin();
  19212. }
  19213. return Promise.reject(response);
  19214. });
  19215. };
  19216. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19217. /***/ }),
  19218. /* 166 */
  19219. /*!*************************************************************!*\
  19220. !*** D:/wwwroot/xusfood/xusfood_client/utils/againToken.js ***!
  19221. \*************************************************************/
  19222. /*! no static exports found */
  19223. /***/ (function(module, exports, __webpack_require__) {
  19224. "use strict";
  19225. Object.defineProperty(exports, "__esModule", {
  19226. value: true
  19227. });
  19228. exports.againToken = againToken;
  19229. // 获取登录token
  19230. function againToken($u, openid, userId) {
  19231. $u.api.reLogin({
  19232. wechatOpenid: openid
  19233. }).then(function (userData) {
  19234. if (userData && userData.code === 200) {
  19235. if (userData.data && userData.data.token) {
  19236. $u.vuex('vuex_user_info', userData.data);
  19237. } else {
  19238. // 清空用户数据缓存
  19239. $u.vuex('vuex_user_info', {});
  19240. $u.vuex('vuex_member_info', {});
  19241. }
  19242. $u.api.memberInfo({
  19243. id: userId
  19244. }).then(function (_ref) {
  19245. var code = _ref.code,
  19246. data = _ref.data,
  19247. msg = _ref.msg;
  19248. if (code === 200) {
  19249. $u.vuex('vuex_member_info', data);
  19250. if (window && window.location) {
  19251. window.location.reload(false);
  19252. } else {
  19253. $u.route('/pages/index/index', {
  19254. type: 'reLaunch'
  19255. });
  19256. }
  19257. }
  19258. });
  19259. } else {
  19260. // 清空用户数据缓存
  19261. $u.vuex('vuex_user_info', {});
  19262. $u.vuex('vuex_member_info', {});
  19263. }
  19264. });
  19265. }
  19266. /***/ }),
  19267. /* 167 */
  19268. /*!**********************************************************!*\
  19269. !*** D:/wwwroot/xusfood/xusfood_client/utils/loading.js ***!
  19270. \**********************************************************/
  19271. /*! no static exports found */
  19272. /***/ (function(module, exports, __webpack_require__) {
  19273. "use strict";
  19274. /* WEBPACK VAR INJECTION */(function(uni) {
  19275. Object.defineProperty(exports, "__esModule", {
  19276. value: true
  19277. });
  19278. exports.showFullScreenLoading = showFullScreenLoading;
  19279. exports.tryHideFullScreenLoading = tryHideFullScreenLoading;
  19280. function startLoading() {
  19281. uni.showLoading({
  19282. mask: true
  19283. });
  19284. }
  19285. // 关闭loading事件
  19286. function endLoading() {
  19287. uni.hideLoading();
  19288. }
  19289. // 默认状态
  19290. var needLoadingRequestCount = 0;
  19291. // 开启loading
  19292. function showFullScreenLoading() {
  19293. if (needLoadingRequestCount === 0) {
  19294. startLoading();
  19295. }
  19296. needLoadingRequestCount++;
  19297. }
  19298. // 取消loading
  19299. function tryHideFullScreenLoading() {
  19300. if (needLoadingRequestCount <= 0) return;
  19301. needLoadingRequestCount--;
  19302. if (needLoadingRequestCount === 0) {
  19303. endLoading();
  19304. }
  19305. }
  19306. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19307. /***/ }),
  19308. /* 168 */,
  19309. /* 169 */,
  19310. /* 170 */,
  19311. /* 171 */,
  19312. /* 172 */,
  19313. /* 173 */,
  19314. /* 174 */,
  19315. /* 175 */,
  19316. /* 176 */,
  19317. /* 177 */,
  19318. /* 178 */,
  19319. /* 179 */,
  19320. /* 180 */,
  19321. /* 181 */,
  19322. /* 182 */,
  19323. /* 183 */,
  19324. /* 184 */,
  19325. /* 185 */,
  19326. /* 186 */,
  19327. /* 187 */,
  19328. /* 188 */,
  19329. /* 189 */,
  19330. /* 190 */,
  19331. /* 191 */,
  19332. /* 192 */,
  19333. /* 193 */,
  19334. /* 194 */,
  19335. /* 195 */,
  19336. /* 196 */,
  19337. /* 197 */,
  19338. /* 198 */,
  19339. /* 199 */,
  19340. /* 200 */,
  19341. /* 201 */,
  19342. /* 202 */
  19343. /*!************************************************************!*\
  19344. !*** D:/wwwroot/xusfood/xusfood_client/utils/uploadImg.js ***!
  19345. \************************************************************/
  19346. /*! no static exports found */
  19347. /***/ (function(module, exports, __webpack_require__) {
  19348. "use strict";
  19349. /* WEBPACK VAR INJECTION */(function(uni) {
  19350. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  19351. Object.defineProperty(exports, "__esModule", {
  19352. value: true
  19353. });
  19354. exports.uploadImg = uploadImg;
  19355. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  19356. var _config = __webpack_require__(/*! ../common/config */ 158);
  19357. 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; }
  19358. 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; }
  19359. //直接导出这个方法
  19360. function uploadImg(event, fileList) {
  19361. return new Promise(function (resolve, reject) {
  19362. // 当设置 mutiple 为 true 时, file 为数组格式,否则为对象格式
  19363. var lists = [].concat(event.file);
  19364. var fileListLen = fileList.length;
  19365. lists.map(function (item) {
  19366. fileList.push(_objectSpread({}, item));
  19367. });
  19368. // 这块把uview的改了一下 不用单独封装上传功能
  19369. for (var i = 0; i < lists.length; i++) {
  19370. uni.uploadFile({
  19371. url: _config.commonConfig.uploadFileUrl,
  19372. // 测试地址
  19373. filePath: lists[i].url,
  19374. // 文件路径
  19375. name: 'file',
  19376. formData: {
  19377. bucket: 'xusfood'
  19378. },
  19379. success: function success(res) {
  19380. var resolveData = {
  19381. data: res.data,
  19382. fileListLen: fileListLen
  19383. };
  19384. // 成功之后返回resolveData
  19385. resolve(resolveData);
  19386. fileListLen++;
  19387. }
  19388. });
  19389. }
  19390. });
  19391. }
  19392. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19393. /***/ }),
  19394. /* 203 */,
  19395. /* 204 */,
  19396. /* 205 */,
  19397. /* 206 */,
  19398. /* 207 */,
  19399. /* 208 */,
  19400. /* 209 */,
  19401. /* 210 */,
  19402. /* 211 */,
  19403. /* 212 */,
  19404. /* 213 */,
  19405. /* 214 */,
  19406. /* 215 */,
  19407. /* 216 */,
  19408. /* 217 */,
  19409. /* 218 */,
  19410. /* 219 */,
  19411. /* 220 */,
  19412. /* 221 */,
  19413. /* 222 */,
  19414. /* 223 */,
  19415. /* 224 */,
  19416. /* 225 */,
  19417. /* 226 */,
  19418. /* 227 */,
  19419. /* 228 */,
  19420. /* 229 */,
  19421. /* 230 */,
  19422. /* 231 */,
  19423. /* 232 */,
  19424. /* 233 */,
  19425. /* 234 */,
  19426. /* 235 */,
  19427. /* 236 */,
  19428. /* 237 */,
  19429. /* 238 */,
  19430. /* 239 */,
  19431. /* 240 */,
  19432. /* 241 */
  19433. /*!*************************************************************************************************************!*\
  19434. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js ***!
  19435. \*************************************************************************************************************/
  19436. /*! no static exports found */
  19437. /***/ (function(module, exports, __webpack_require__) {
  19438. "use strict";
  19439. Object.defineProperty(exports, "__esModule", {
  19440. value: true
  19441. });
  19442. exports.default = void 0;
  19443. // mescroll-body 和 mescroll-uni 通用
  19444. var MescrollMixin = {
  19445. data: function data() {
  19446. return {
  19447. mescroll: null //mescroll实例对象
  19448. };
  19449. },
  19450. // 注册系统自带的下拉刷新 (配置down.native为true时生效, 还需在pages配置enablePullDownRefresh:true;详请参考mescroll-native的案例)
  19451. onPullDownRefresh: function onPullDownRefresh() {
  19452. this.mescroll && this.mescroll.onPullDownRefresh();
  19453. },
  19454. // 注册列表滚动事件,用于判定在顶部可下拉刷新,在指定位置可显示隐藏回到顶部按钮 (此方法为页面生命周期,无法在子组件中触发, 仅在mescroll-body生效)
  19455. onPageScroll: function onPageScroll(e) {
  19456. this.mescroll && this.mescroll.onPageScroll(e);
  19457. },
  19458. // 注册滚动到底部的事件,用于上拉加载 (此方法为页面生命周期,无法在子组件中触发, 仅在mescroll-body生效)
  19459. onReachBottom: function onReachBottom() {
  19460. this.mescroll && this.mescroll.onReachBottom();
  19461. },
  19462. methods: {
  19463. // mescroll组件初始化的回调,可获取到mescroll对象
  19464. mescrollInit: function mescrollInit(mescroll) {
  19465. this.mescroll = mescroll;
  19466. this.mescrollInitByRef(); // 兼容字节跳动小程序
  19467. },
  19468. // 以ref的方式初始化mescroll对象 (兼容字节跳动小程序)
  19469. mescrollInitByRef: function mescrollInitByRef() {
  19470. if (!this.mescroll || !this.mescroll.resetUpScroll) {
  19471. var mescrollRef = this.$refs.mescrollRef;
  19472. if (mescrollRef) this.mescroll = mescrollRef.mescroll;
  19473. }
  19474. },
  19475. // 下拉刷新的回调 (mixin默认resetUpScroll)
  19476. downCallback: function downCallback() {
  19477. var _this = this;
  19478. if (this.mescroll.optUp.use) {
  19479. this.mescroll.resetUpScroll();
  19480. } else {
  19481. setTimeout(function () {
  19482. _this.mescroll.endSuccess();
  19483. }, 500);
  19484. }
  19485. },
  19486. // 上拉加载的回调
  19487. upCallback: function upCallback() {
  19488. var _this2 = this;
  19489. // mixin默认延时500自动结束加载
  19490. setTimeout(function () {
  19491. _this2.mescroll.endErr();
  19492. }, 500);
  19493. }
  19494. },
  19495. mounted: function mounted() {
  19496. this.mescrollInitByRef(); // 兼容字节跳动小程序, 避免未设置@init或@init此时未能取到ref的情况
  19497. }
  19498. };
  19499. var _default = MescrollMixin;
  19500. exports.default = _default;
  19501. /***/ }),
  19502. /* 242 */,
  19503. /* 243 */,
  19504. /* 244 */,
  19505. /* 245 */,
  19506. /* 246 */,
  19507. /* 247 */,
  19508. /* 248 */,
  19509. /* 249 */,
  19510. /* 250 */,
  19511. /* 251 */,
  19512. /* 252 */,
  19513. /* 253 */,
  19514. /* 254 */,
  19515. /* 255 */,
  19516. /* 256 */,
  19517. /* 257 */,
  19518. /* 258 */,
  19519. /* 259 */,
  19520. /* 260 */,
  19521. /* 261 */,
  19522. /* 262 */,
  19523. /* 263 */,
  19524. /* 264 */,
  19525. /* 265 */,
  19526. /* 266 */,
  19527. /* 267 */,
  19528. /* 268 */,
  19529. /* 269 */,
  19530. /* 270 */,
  19531. /* 271 */,
  19532. /* 272 */,
  19533. /* 273 */,
  19534. /* 274 */,
  19535. /* 275 */,
  19536. /* 276 */,
  19537. /* 277 */,
  19538. /* 278 */,
  19539. /* 279 */,
  19540. /* 280 */,
  19541. /* 281 */,
  19542. /* 282 */,
  19543. /* 283 */,
  19544. /* 284 */,
  19545. /* 285 */,
  19546. /* 286 */,
  19547. /* 287 */,
  19548. /* 288 */,
  19549. /* 289 */,
  19550. /* 290 */,
  19551. /* 291 */,
  19552. /* 292 */,
  19553. /* 293 */,
  19554. /* 294 */,
  19555. /* 295 */,
  19556. /* 296 */,
  19557. /* 297 */,
  19558. /* 298 */,
  19559. /* 299 */,
  19560. /* 300 */,
  19561. /* 301 */,
  19562. /* 302 */,
  19563. /* 303 */,
  19564. /* 304 */,
  19565. /* 305 */,
  19566. /* 306 */,
  19567. /* 307 */,
  19568. /* 308 */,
  19569. /* 309 */,
  19570. /* 310 */,
  19571. /* 311 */,
  19572. /* 312 */,
  19573. /* 313 */,
  19574. /* 314 */,
  19575. /* 315 */,
  19576. /* 316 */,
  19577. /* 317 */,
  19578. /* 318 */,
  19579. /* 319 */,
  19580. /* 320 */,
  19581. /* 321 */,
  19582. /* 322 */,
  19583. /* 323 */,
  19584. /* 324 */,
  19585. /* 325 */,
  19586. /* 326 */,
  19587. /* 327 */,
  19588. /* 328 */,
  19589. /* 329 */,
  19590. /* 330 */,
  19591. /* 331 */,
  19592. /* 332 */,
  19593. /* 333 */,
  19594. /* 334 */,
  19595. /* 335 */,
  19596. /* 336 */,
  19597. /* 337 */,
  19598. /* 338 */,
  19599. /* 339 */,
  19600. /* 340 */,
  19601. /* 341 */,
  19602. /* 342 */,
  19603. /* 343 */,
  19604. /* 344 */,
  19605. /* 345 */,
  19606. /* 346 */,
  19607. /* 347 */,
  19608. /* 348 */,
  19609. /* 349 */,
  19610. /* 350 */,
  19611. /* 351 */,
  19612. /* 352 */,
  19613. /* 353 */,
  19614. /* 354 */,
  19615. /* 355 */,
  19616. /* 356 */,
  19617. /* 357 */,
  19618. /* 358 */,
  19619. /* 359 */,
  19620. /* 360 */,
  19621. /* 361 */,
  19622. /* 362 */,
  19623. /* 363 */,
  19624. /* 364 */,
  19625. /* 365 */,
  19626. /* 366 */,
  19627. /* 367 */,
  19628. /* 368 */,
  19629. /* 369 */,
  19630. /* 370 */,
  19631. /* 371 */
  19632. /*!*******************************************************************************************!*\
  19633. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-swiper/props.js ***!
  19634. \*******************************************************************************************/
  19635. /*! no static exports found */
  19636. /***/ (function(module, exports, __webpack_require__) {
  19637. "use strict";
  19638. /* WEBPACK VAR INJECTION */(function(uni) {
  19639. Object.defineProperty(exports, "__esModule", {
  19640. value: true
  19641. });
  19642. exports.default = void 0;
  19643. var _default = {
  19644. props: {
  19645. // 列表数组,元素可为字符串,如为对象可通过keyName指定目标属性名
  19646. list: {
  19647. type: Array,
  19648. default: uni.$u.props.swiper.list
  19649. },
  19650. // 是否显示面板指示器
  19651. indicator: {
  19652. type: Boolean,
  19653. default: uni.$u.props.swiper.indicator
  19654. },
  19655. // 指示器非激活颜色
  19656. indicatorActiveColor: {
  19657. type: String,
  19658. default: uni.$u.props.swiper.indicatorActiveColor
  19659. },
  19660. // 指示器的激活颜色
  19661. indicatorInactiveColor: {
  19662. type: String,
  19663. default: uni.$u.props.swiper.indicatorInactiveColor
  19664. },
  19665. // 指示器样式,可通过bottom,left,right进行定位
  19666. indicatorStyle: {
  19667. type: [String, Object],
  19668. default: uni.$u.props.swiper.indicatorStyle
  19669. },
  19670. // 指示器模式,line-线型,dot-点型
  19671. indicatorMode: {
  19672. type: String,
  19673. default: uni.$u.props.swiper.indicatorMode
  19674. },
  19675. // 是否自动切换
  19676. autoplay: {
  19677. type: Boolean,
  19678. default: uni.$u.props.swiper.autoplay
  19679. },
  19680. // 当前所在滑块的 index
  19681. current: {
  19682. type: [String, Number],
  19683. default: uni.$u.props.swiper.current
  19684. },
  19685. // 当前所在滑块的 item-id ,不能与 current 被同时指定
  19686. currentItemId: {
  19687. type: String,
  19688. default: uni.$u.props.swiper.currentItemId
  19689. },
  19690. // 滑块自动切换时间间隔
  19691. interval: {
  19692. type: [String, Number],
  19693. default: uni.$u.props.swiper.interval
  19694. },
  19695. // 滑块切换过程所需时间
  19696. duration: {
  19697. type: [String, Number],
  19698. default: uni.$u.props.swiper.duration
  19699. },
  19700. // 播放到末尾后是否重新回到开头
  19701. circular: {
  19702. type: Boolean,
  19703. default: uni.$u.props.swiper.circular
  19704. },
  19705. // 前边距,可用于露出前一项的一小部分,nvue和支付宝不支持
  19706. previousMargin: {
  19707. type: [String, Number],
  19708. default: uni.$u.props.swiper.previousMargin
  19709. },
  19710. // 后边距,可用于露出后一项的一小部分,nvue和支付宝不支持
  19711. nextMargin: {
  19712. type: [String, Number],
  19713. default: uni.$u.props.swiper.nextMargin
  19714. },
  19715. // 当开启时,会根据滑动速度,连续滑动多屏,支付宝不支持
  19716. acceleration: {
  19717. type: Boolean,
  19718. default: uni.$u.props.swiper.acceleration
  19719. },
  19720. // 同时显示的滑块数量,nvue、支付宝小程序不支持
  19721. displayMultipleItems: {
  19722. type: Number,
  19723. default: uni.$u.props.swiper.displayMultipleItems
  19724. },
  19725. // 指定swiper切换缓动动画类型,有效值:default、linear、easeInCubic、easeOutCubic、easeInOutCubic
  19726. // 只对微信小程序有效
  19727. easingFunction: {
  19728. type: String,
  19729. default: uni.$u.props.swiper.easingFunction
  19730. },
  19731. // list数组中指定对象的目标属性名
  19732. keyName: {
  19733. type: String,
  19734. default: uni.$u.props.swiper.keyName
  19735. },
  19736. // 图片的裁剪模式
  19737. imgMode: {
  19738. type: String,
  19739. default: uni.$u.props.swiper.imgMode
  19740. },
  19741. // 组件高度
  19742. height: {
  19743. type: [String, Number],
  19744. default: uni.$u.props.swiper.height
  19745. },
  19746. // 背景颜色
  19747. bgColor: {
  19748. type: String,
  19749. default: uni.$u.props.swiper.bgColor
  19750. },
  19751. // 组件圆角,数值或带单位的字符串
  19752. radius: {
  19753. type: [String, Number],
  19754. default: uni.$u.props.swiper.radius
  19755. },
  19756. // 是否加载中
  19757. loading: {
  19758. type: Boolean,
  19759. default: uni.$u.props.swiper.loading
  19760. },
  19761. // 是否显示标题,要求数组对象中有title属性
  19762. showTitle: {
  19763. type: Boolean,
  19764. default: uni.$u.props.swiper.showTitle
  19765. }
  19766. }
  19767. };
  19768. exports.default = _default;
  19769. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19770. /***/ }),
  19771. /* 372 */,
  19772. /* 373 */,
  19773. /* 374 */,
  19774. /* 375 */,
  19775. /* 376 */,
  19776. /* 377 */,
  19777. /* 378 */,
  19778. /* 379 */
  19779. /*!*****************************************************************************************!*\
  19780. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-icon/icons.js ***!
  19781. \*****************************************************************************************/
  19782. /*! no static exports found */
  19783. /***/ (function(module, exports, __webpack_require__) {
  19784. "use strict";
  19785. Object.defineProperty(exports, "__esModule", {
  19786. value: true
  19787. });
  19788. exports.default = void 0;
  19789. var _default = {
  19790. 'uicon-level': "\uE693",
  19791. 'uicon-column-line': "\uE68E",
  19792. 'uicon-checkbox-mark': "\uE807",
  19793. 'uicon-folder': "\uE7F5",
  19794. 'uicon-movie': "\uE7F6",
  19795. 'uicon-star-fill': "\uE669",
  19796. 'uicon-star': "\uE65F",
  19797. 'uicon-phone-fill': "\uE64F",
  19798. 'uicon-phone': "\uE622",
  19799. 'uicon-apple-fill': "\uE881",
  19800. 'uicon-chrome-circle-fill': "\uE885",
  19801. 'uicon-backspace': "\uE67B",
  19802. 'uicon-attach': "\uE632",
  19803. 'uicon-cut': "\uE948",
  19804. 'uicon-empty-car': "\uE602",
  19805. 'uicon-empty-coupon': "\uE682",
  19806. 'uicon-empty-address': "\uE646",
  19807. 'uicon-empty-favor': "\uE67C",
  19808. 'uicon-empty-permission': "\uE686",
  19809. 'uicon-empty-news': "\uE687",
  19810. 'uicon-empty-search': "\uE664",
  19811. 'uicon-github-circle-fill': "\uE887",
  19812. 'uicon-rmb': "\uE608",
  19813. 'uicon-person-delete-fill': "\uE66A",
  19814. 'uicon-reload': "\uE788",
  19815. 'uicon-order': "\uE68F",
  19816. 'uicon-server-man': "\uE6BC",
  19817. 'uicon-search': "\uE62A",
  19818. 'uicon-fingerprint': "\uE955",
  19819. 'uicon-more-dot-fill': "\uE630",
  19820. 'uicon-scan': "\uE662",
  19821. 'uicon-share-square': "\uE60B",
  19822. 'uicon-map': "\uE61D",
  19823. 'uicon-map-fill': "\uE64E",
  19824. 'uicon-tags': "\uE629",
  19825. 'uicon-tags-fill': "\uE651",
  19826. 'uicon-bookmark-fill': "\uE63B",
  19827. 'uicon-bookmark': "\uE60A",
  19828. 'uicon-eye': "\uE613",
  19829. 'uicon-eye-fill': "\uE641",
  19830. 'uicon-mic': "\uE64A",
  19831. 'uicon-mic-off': "\uE649",
  19832. 'uicon-calendar': "\uE66E",
  19833. 'uicon-calendar-fill': "\uE634",
  19834. 'uicon-trash': "\uE623",
  19835. 'uicon-trash-fill': "\uE658",
  19836. 'uicon-play-left': "\uE66D",
  19837. 'uicon-play-right': "\uE610",
  19838. 'uicon-minus': "\uE618",
  19839. 'uicon-plus': "\uE62D",
  19840. 'uicon-info': "\uE653",
  19841. 'uicon-info-circle': "\uE7D2",
  19842. 'uicon-info-circle-fill': "\uE64B",
  19843. 'uicon-question': "\uE715",
  19844. 'uicon-error': "\uE6D3",
  19845. 'uicon-close': "\uE685",
  19846. 'uicon-checkmark': "\uE6A8",
  19847. 'uicon-android-circle-fill': "\uE67E",
  19848. 'uicon-android-fill': "\uE67D",
  19849. 'uicon-ie': "\uE87B",
  19850. 'uicon-IE-circle-fill': "\uE889",
  19851. 'uicon-google': "\uE87A",
  19852. 'uicon-google-circle-fill': "\uE88A",
  19853. 'uicon-setting-fill': "\uE872",
  19854. 'uicon-setting': "\uE61F",
  19855. 'uicon-minus-square-fill': "\uE855",
  19856. 'uicon-plus-square-fill': "\uE856",
  19857. 'uicon-heart': "\uE7DF",
  19858. 'uicon-heart-fill': "\uE851",
  19859. 'uicon-camera': "\uE7D7",
  19860. 'uicon-camera-fill': "\uE870",
  19861. 'uicon-more-circle': "\uE63E",
  19862. 'uicon-more-circle-fill': "\uE645",
  19863. 'uicon-chat': "\uE620",
  19864. 'uicon-chat-fill': "\uE61E",
  19865. 'uicon-bag-fill': "\uE617",
  19866. 'uicon-bag': "\uE619",
  19867. 'uicon-error-circle-fill': "\uE62C",
  19868. 'uicon-error-circle': "\uE624",
  19869. 'uicon-close-circle': "\uE63F",
  19870. 'uicon-close-circle-fill': "\uE637",
  19871. 'uicon-checkmark-circle': "\uE63D",
  19872. 'uicon-checkmark-circle-fill': "\uE635",
  19873. 'uicon-question-circle-fill': "\uE666",
  19874. 'uicon-question-circle': "\uE625",
  19875. 'uicon-share': "\uE631",
  19876. 'uicon-share-fill': "\uE65E",
  19877. 'uicon-shopping-cart': "\uE621",
  19878. 'uicon-shopping-cart-fill': "\uE65D",
  19879. 'uicon-bell': "\uE609",
  19880. 'uicon-bell-fill': "\uE640",
  19881. 'uicon-list': "\uE650",
  19882. 'uicon-list-dot': "\uE616",
  19883. 'uicon-zhihu': "\uE6BA",
  19884. 'uicon-zhihu-circle-fill': "\uE709",
  19885. 'uicon-zhifubao': "\uE6B9",
  19886. 'uicon-zhifubao-circle-fill': "\uE6B8",
  19887. 'uicon-weixin-circle-fill': "\uE6B1",
  19888. 'uicon-weixin-fill': "\uE6B2",
  19889. 'uicon-twitter-circle-fill': "\uE6AB",
  19890. 'uicon-twitter': "\uE6AA",
  19891. 'uicon-taobao-circle-fill': "\uE6A7",
  19892. 'uicon-taobao': "\uE6A6",
  19893. 'uicon-weibo-circle-fill': "\uE6A5",
  19894. 'uicon-weibo': "\uE6A4",
  19895. 'uicon-qq-fill': "\uE6A1",
  19896. 'uicon-qq-circle-fill': "\uE6A0",
  19897. 'uicon-moments-circel-fill': "\uE69A",
  19898. 'uicon-moments': "\uE69B",
  19899. 'uicon-qzone': "\uE695",
  19900. 'uicon-qzone-circle-fill': "\uE696",
  19901. 'uicon-baidu-circle-fill': "\uE680",
  19902. 'uicon-baidu': "\uE681",
  19903. 'uicon-facebook-circle-fill': "\uE68A",
  19904. 'uicon-facebook': "\uE689",
  19905. 'uicon-car': "\uE60C",
  19906. 'uicon-car-fill': "\uE636",
  19907. 'uicon-warning-fill': "\uE64D",
  19908. 'uicon-warning': "\uE694",
  19909. 'uicon-clock-fill': "\uE638",
  19910. 'uicon-clock': "\uE60F",
  19911. 'uicon-edit-pen': "\uE612",
  19912. 'uicon-edit-pen-fill': "\uE66B",
  19913. 'uicon-email': "\uE611",
  19914. 'uicon-email-fill': "\uE642",
  19915. 'uicon-minus-circle': "\uE61B",
  19916. 'uicon-minus-circle-fill': "\uE652",
  19917. 'uicon-plus-circle': "\uE62E",
  19918. 'uicon-plus-circle-fill': "\uE661",
  19919. 'uicon-file-text': "\uE663",
  19920. 'uicon-file-text-fill': "\uE665",
  19921. 'uicon-pushpin': "\uE7E3",
  19922. 'uicon-pushpin-fill': "\uE86E",
  19923. 'uicon-grid': "\uE673",
  19924. 'uicon-grid-fill': "\uE678",
  19925. 'uicon-play-circle': "\uE647",
  19926. 'uicon-play-circle-fill': "\uE655",
  19927. 'uicon-pause-circle-fill': "\uE654",
  19928. 'uicon-pause': "\uE8FA",
  19929. 'uicon-pause-circle': "\uE643",
  19930. 'uicon-eye-off': "\uE648",
  19931. 'uicon-eye-off-outline': "\uE62B",
  19932. 'uicon-gift-fill': "\uE65C",
  19933. 'uicon-gift': "\uE65B",
  19934. 'uicon-rmb-circle-fill': "\uE657",
  19935. 'uicon-rmb-circle': "\uE677",
  19936. 'uicon-kefu-ermai': "\uE656",
  19937. 'uicon-server-fill': "\uE751",
  19938. 'uicon-coupon-fill': "\uE8C4",
  19939. 'uicon-coupon': "\uE8AE",
  19940. 'uicon-integral': "\uE704",
  19941. 'uicon-integral-fill': "\uE703",
  19942. 'uicon-home-fill': "\uE964",
  19943. 'uicon-home': "\uE965",
  19944. 'uicon-hourglass-half-fill': "\uE966",
  19945. 'uicon-hourglass': "\uE967",
  19946. 'uicon-account': "\uE628",
  19947. 'uicon-plus-people-fill': "\uE626",
  19948. 'uicon-minus-people-fill': "\uE615",
  19949. 'uicon-account-fill': "\uE614",
  19950. 'uicon-thumb-down-fill': "\uE726",
  19951. 'uicon-thumb-down': "\uE727",
  19952. 'uicon-thumb-up': "\uE733",
  19953. 'uicon-thumb-up-fill': "\uE72F",
  19954. 'uicon-lock-fill': "\uE979",
  19955. 'uicon-lock-open': "\uE973",
  19956. 'uicon-lock-opened-fill': "\uE974",
  19957. 'uicon-lock': "\uE97A",
  19958. 'uicon-red-packet-fill': "\uE690",
  19959. 'uicon-photo-fill': "\uE98B",
  19960. 'uicon-photo': "\uE98D",
  19961. 'uicon-volume-off-fill': "\uE659",
  19962. 'uicon-volume-off': "\uE644",
  19963. 'uicon-volume-fill': "\uE670",
  19964. 'uicon-volume': "\uE633",
  19965. 'uicon-red-packet': "\uE691",
  19966. 'uicon-download': "\uE63C",
  19967. 'uicon-arrow-up-fill': "\uE6B0",
  19968. 'uicon-arrow-down-fill': "\uE600",
  19969. 'uicon-play-left-fill': "\uE675",
  19970. 'uicon-play-right-fill': "\uE676",
  19971. 'uicon-rewind-left-fill': "\uE679",
  19972. 'uicon-rewind-right-fill': "\uE67A",
  19973. 'uicon-arrow-downward': "\uE604",
  19974. 'uicon-arrow-leftward': "\uE601",
  19975. 'uicon-arrow-rightward': "\uE603",
  19976. 'uicon-arrow-upward': "\uE607",
  19977. 'uicon-arrow-down': "\uE60D",
  19978. 'uicon-arrow-right': "\uE605",
  19979. 'uicon-arrow-left': "\uE60E",
  19980. 'uicon-arrow-up': "\uE606",
  19981. 'uicon-skip-back-left': "\uE674",
  19982. 'uicon-skip-forward-right': "\uE672",
  19983. 'uicon-rewind-right': "\uE66F",
  19984. 'uicon-rewind-left': "\uE671",
  19985. 'uicon-arrow-right-double': "\uE68D",
  19986. 'uicon-arrow-left-double': "\uE68C",
  19987. 'uicon-wifi-off': "\uE668",
  19988. 'uicon-wifi': "\uE667",
  19989. 'uicon-empty-data': "\uE62F",
  19990. 'uicon-empty-history': "\uE684",
  19991. 'uicon-empty-list': "\uE68B",
  19992. 'uicon-empty-page': "\uE627",
  19993. 'uicon-empty-order': "\uE639",
  19994. 'uicon-man': "\uE697",
  19995. 'uicon-woman': "\uE69C",
  19996. 'uicon-man-add': "\uE61C",
  19997. 'uicon-man-add-fill': "\uE64C",
  19998. 'uicon-man-delete': "\uE61A",
  19999. 'uicon-man-delete-fill': "\uE66A",
  20000. 'uicon-zh': "\uE70A",
  20001. 'uicon-en': "\uE692"
  20002. };
  20003. exports.default = _default;
  20004. /***/ }),
  20005. /* 380 */
  20006. /*!*****************************************************************************************!*\
  20007. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-icon/props.js ***!
  20008. \*****************************************************************************************/
  20009. /*! no static exports found */
  20010. /***/ (function(module, exports, __webpack_require__) {
  20011. "use strict";
  20012. /* WEBPACK VAR INJECTION */(function(uni) {
  20013. Object.defineProperty(exports, "__esModule", {
  20014. value: true
  20015. });
  20016. exports.default = void 0;
  20017. var _default = {
  20018. props: {
  20019. // 图标类名
  20020. name: {
  20021. type: String,
  20022. default: uni.$u.props.icon.name
  20023. },
  20024. // 图标颜色,可接受主题色
  20025. color: {
  20026. type: String,
  20027. default: uni.$u.props.icon.color
  20028. },
  20029. // 字体大小,单位px
  20030. size: {
  20031. type: [String, Number],
  20032. default: uni.$u.props.icon.size
  20033. },
  20034. // 是否显示粗体
  20035. bold: {
  20036. type: Boolean,
  20037. default: uni.$u.props.icon.bold
  20038. },
  20039. // 点击图标的时候传递事件出去的index(用于区分点击了哪一个)
  20040. index: {
  20041. type: [String, Number],
  20042. default: uni.$u.props.icon.index
  20043. },
  20044. // 触摸图标时的类名
  20045. hoverClass: {
  20046. type: String,
  20047. default: uni.$u.props.icon.hoverClass
  20048. },
  20049. // 自定义扩展前缀,方便用户扩展自己的图标库
  20050. customPrefix: {
  20051. type: String,
  20052. default: uni.$u.props.icon.customPrefix
  20053. },
  20054. // 图标右边或者下面的文字
  20055. label: {
  20056. type: [String, Number],
  20057. default: uni.$u.props.icon.label
  20058. },
  20059. // label的位置,只能右边或者下边
  20060. labelPos: {
  20061. type: String,
  20062. default: uni.$u.props.icon.labelPos
  20063. },
  20064. // label的大小
  20065. labelSize: {
  20066. type: [String, Number],
  20067. default: uni.$u.props.icon.labelSize
  20068. },
  20069. // label的颜色
  20070. labelColor: {
  20071. type: String,
  20072. default: uni.$u.props.icon.labelColor
  20073. },
  20074. // label与图标的距离
  20075. space: {
  20076. type: [String, Number],
  20077. default: uni.$u.props.icon.space
  20078. },
  20079. // 图片的mode
  20080. imgMode: {
  20081. type: String,
  20082. default: uni.$u.props.icon.imgMode
  20083. },
  20084. // 用于显示图片小图标时,图片的宽度
  20085. width: {
  20086. type: [String, Number],
  20087. default: uni.$u.props.icon.width
  20088. },
  20089. // 用于显示图片小图标时,图片的高度
  20090. height: {
  20091. type: [String, Number],
  20092. default: uni.$u.props.icon.height
  20093. },
  20094. // 用于解决某些情况下,让图标垂直居中的用途
  20095. top: {
  20096. type: [String, Number],
  20097. default: uni.$u.props.icon.top
  20098. },
  20099. // 是否阻止事件传播
  20100. stop: {
  20101. type: Boolean,
  20102. default: uni.$u.props.icon.stop
  20103. }
  20104. }
  20105. };
  20106. exports.default = _default;
  20107. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20108. /***/ }),
  20109. /* 381 */,
  20110. /* 382 */,
  20111. /* 383 */,
  20112. /* 384 */,
  20113. /* 385 */,
  20114. /* 386 */,
  20115. /* 387 */,
  20116. /* 388 */
  20117. /*!******************************************************************************************!*\
  20118. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-image/props.js ***!
  20119. \******************************************************************************************/
  20120. /*! no static exports found */
  20121. /***/ (function(module, exports, __webpack_require__) {
  20122. "use strict";
  20123. /* WEBPACK VAR INJECTION */(function(uni) {
  20124. Object.defineProperty(exports, "__esModule", {
  20125. value: true
  20126. });
  20127. exports.default = void 0;
  20128. var _default = {
  20129. props: {
  20130. // 图片地址
  20131. src: {
  20132. type: String,
  20133. default: uni.$u.props.image.src
  20134. },
  20135. // 裁剪模式
  20136. mode: {
  20137. type: String,
  20138. default: uni.$u.props.image.mode
  20139. },
  20140. // 宽度,单位任意
  20141. width: {
  20142. type: [String, Number],
  20143. default: uni.$u.props.image.width
  20144. },
  20145. // 高度,单位任意
  20146. height: {
  20147. type: [String, Number],
  20148. default: uni.$u.props.image.height
  20149. },
  20150. // 图片形状,circle-圆形,square-方形
  20151. shape: {
  20152. type: String,
  20153. default: uni.$u.props.image.shape
  20154. },
  20155. // 圆角,单位任意
  20156. radius: {
  20157. type: [String, Number],
  20158. default: uni.$u.props.image.radius
  20159. },
  20160. // 是否懒加载,微信小程序、App、百度小程序、字节跳动小程序
  20161. lazyLoad: {
  20162. type: Boolean,
  20163. default: uni.$u.props.image.lazyLoad
  20164. },
  20165. // 开启长按图片显示识别微信小程序码菜单
  20166. showMenuByLongpress: {
  20167. type: Boolean,
  20168. default: uni.$u.props.image.showMenuByLongpress
  20169. },
  20170. // 加载中的图标,或者小图片
  20171. loadingIcon: {
  20172. type: String,
  20173. default: uni.$u.props.image.loadingIcon
  20174. },
  20175. // 加载失败的图标,或者小图片
  20176. errorIcon: {
  20177. type: String,
  20178. default: uni.$u.props.image.errorIcon
  20179. },
  20180. // 是否显示加载中的图标或者自定义的slot
  20181. showLoading: {
  20182. type: Boolean,
  20183. default: uni.$u.props.image.showLoading
  20184. },
  20185. // 是否显示加载错误的图标或者自定义的slot
  20186. showError: {
  20187. type: Boolean,
  20188. default: uni.$u.props.image.showError
  20189. },
  20190. // 是否需要淡入效果
  20191. fade: {
  20192. type: Boolean,
  20193. default: uni.$u.props.image.fade
  20194. },
  20195. // 只支持网络资源,只对微信小程序有效
  20196. webp: {
  20197. type: Boolean,
  20198. default: uni.$u.props.image.webp
  20199. },
  20200. // 过渡时间,单位ms
  20201. duration: {
  20202. type: [String, Number],
  20203. default: uni.$u.props.image.duration
  20204. },
  20205. // 背景颜色,用于深色页面加载图片时,为了和背景色融合
  20206. bgColor: {
  20207. type: String,
  20208. default: uni.$u.props.image.bgColor
  20209. }
  20210. }
  20211. };
  20212. exports.default = _default;
  20213. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20214. /***/ }),
  20215. /* 389 */,
  20216. /* 390 */,
  20217. /* 391 */,
  20218. /* 392 */,
  20219. /* 393 */,
  20220. /* 394 */,
  20221. /* 395 */,
  20222. /* 396 */,
  20223. /* 397 */,
  20224. /* 398 */,
  20225. /* 399 */,
  20226. /* 400 */,
  20227. /* 401 */,
  20228. /* 402 */,
  20229. /* 403 */,
  20230. /* 404 */,
  20231. /* 405 */,
  20232. /* 406 */,
  20233. /* 407 */,
  20234. /* 408 */,
  20235. /* 409 */,
  20236. /* 410 */,
  20237. /* 411 */,
  20238. /* 412 */,
  20239. /* 413 */,
  20240. /* 414 */,
  20241. /* 415 */
  20242. /*!***********************************************************************************!*\
  20243. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/mixin/button.js ***!
  20244. \***********************************************************************************/
  20245. /*! no static exports found */
  20246. /***/ (function(module, exports, __webpack_require__) {
  20247. "use strict";
  20248. Object.defineProperty(exports, "__esModule", {
  20249. value: true
  20250. });
  20251. exports.default = void 0;
  20252. var _default = {
  20253. props: {
  20254. lang: String,
  20255. sessionFrom: String,
  20256. sendMessageTitle: String,
  20257. sendMessagePath: String,
  20258. sendMessageImg: String,
  20259. showMessageCard: Boolean,
  20260. appParameter: String,
  20261. formType: String,
  20262. openType: String
  20263. }
  20264. };
  20265. exports.default = _default;
  20266. /***/ }),
  20267. /* 416 */
  20268. /*!*************************************************************************************!*\
  20269. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/mixin/openType.js ***!
  20270. \*************************************************************************************/
  20271. /*! no static exports found */
  20272. /***/ (function(module, exports, __webpack_require__) {
  20273. "use strict";
  20274. Object.defineProperty(exports, "__esModule", {
  20275. value: true
  20276. });
  20277. exports.default = void 0;
  20278. var _default = {
  20279. props: {
  20280. openType: String
  20281. },
  20282. methods: {
  20283. onGetUserInfo: function onGetUserInfo(event) {
  20284. this.$emit('getuserinfo', event.detail);
  20285. },
  20286. onContact: function onContact(event) {
  20287. this.$emit('contact', event.detail);
  20288. },
  20289. onGetPhoneNumber: function onGetPhoneNumber(event) {
  20290. this.$emit('getphonenumber', event.detail);
  20291. },
  20292. onError: function onError(event) {
  20293. this.$emit('error', event.detail);
  20294. },
  20295. onLaunchApp: function onLaunchApp(event) {
  20296. this.$emit('launchapp', event.detail);
  20297. },
  20298. onOpenSetting: function onOpenSetting(event) {
  20299. this.$emit('opensetting', event.detail);
  20300. }
  20301. }
  20302. };
  20303. exports.default = _default;
  20304. /***/ }),
  20305. /* 417 */
  20306. /*!*******************************************************************************************!*\
  20307. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-button/props.js ***!
  20308. \*******************************************************************************************/
  20309. /*! no static exports found */
  20310. /***/ (function(module, exports, __webpack_require__) {
  20311. "use strict";
  20312. /* WEBPACK VAR INJECTION */(function(uni) {
  20313. Object.defineProperty(exports, "__esModule", {
  20314. value: true
  20315. });
  20316. exports.default = void 0;
  20317. /*
  20318. * @Author : LQ
  20319. * @Description :
  20320. * @version : 1.0
  20321. * @Date : 2021-08-16 10:04:04
  20322. * @LastAuthor : LQ
  20323. * @lastTime : 2021-08-16 10:04:24
  20324. * @FilePath : /u-view2.0/uview-ui/components/u-button/props.js
  20325. */
  20326. var _default = {
  20327. props: {
  20328. // 是否细边框
  20329. hairline: {
  20330. type: Boolean,
  20331. default: uni.$u.props.button.hairline
  20332. },
  20333. // 按钮的预置样式,info,primary,error,warning,success
  20334. type: {
  20335. type: String,
  20336. default: uni.$u.props.button.type
  20337. },
  20338. // 按钮尺寸,large,normal,small,mini
  20339. size: {
  20340. type: String,
  20341. default: uni.$u.props.button.size
  20342. },
  20343. // 按钮形状,circle(两边为半圆),square(带圆角)
  20344. shape: {
  20345. type: String,
  20346. default: uni.$u.props.button.shape
  20347. },
  20348. // 按钮是否镂空
  20349. plain: {
  20350. type: Boolean,
  20351. default: uni.$u.props.button.plain
  20352. },
  20353. // 是否禁止状态
  20354. disabled: {
  20355. type: Boolean,
  20356. default: uni.$u.props.button.disabled
  20357. },
  20358. // 是否加载中
  20359. loading: {
  20360. type: Boolean,
  20361. default: uni.$u.props.button.loading
  20362. },
  20363. // 加载中提示文字
  20364. loadingText: {
  20365. type: [String, Number],
  20366. default: uni.$u.props.button.loadingText
  20367. },
  20368. // 加载状态图标类型
  20369. loadingMode: {
  20370. type: String,
  20371. default: uni.$u.props.button.loadingMode
  20372. },
  20373. // 加载图标大小
  20374. loadingSize: {
  20375. type: [String, Number],
  20376. default: uni.$u.props.button.loadingSize
  20377. },
  20378. // 开放能力,具体请看uniapp稳定关于button组件部分说明
  20379. // https://uniapp.dcloud.io/component/button
  20380. openType: {
  20381. type: String,
  20382. default: uni.$u.props.button.openType
  20383. },
  20384. // 用于 <form> 组件,点击分别会触发 <form> 组件的 submit/reset 事件
  20385. // 取值为submit(提交表单),reset(重置表单)
  20386. formType: {
  20387. type: String,
  20388. default: uni.$u.props.button.formType
  20389. },
  20390. // 打开 APP 时,向 APP 传递的参数,open-type=launchApp时有效
  20391. // 只微信小程序、QQ小程序有效
  20392. appParameter: {
  20393. type: String,
  20394. default: uni.$u.props.button.appParameter
  20395. },
  20396. // 指定是否阻止本节点的祖先节点出现点击态,微信小程序有效
  20397. hoverStopPropagation: {
  20398. type: Boolean,
  20399. default: uni.$u.props.button.hoverStopPropagation
  20400. },
  20401. // 指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文。只微信小程序有效
  20402. lang: {
  20403. type: String,
  20404. default: uni.$u.props.button.lang
  20405. },
  20406. // 会话来源,open-type="contact"时有效。只微信小程序有效
  20407. sessionFrom: {
  20408. type: String,
  20409. default: uni.$u.props.button.sessionFrom
  20410. },
  20411. // 会话内消息卡片标题,open-type="contact"时有效
  20412. // 默认当前标题,只微信小程序有效
  20413. sendMessageTitle: {
  20414. type: String,
  20415. default: uni.$u.props.button.sendMessageTitle
  20416. },
  20417. // 会话内消息卡片点击跳转小程序路径,open-type="contact"时有效
  20418. // 默认当前分享路径,只微信小程序有效
  20419. sendMessagePath: {
  20420. type: String,
  20421. default: uni.$u.props.button.sendMessagePath
  20422. },
  20423. // 会话内消息卡片图片,open-type="contact"时有效
  20424. // 默认当前页面截图,只微信小程序有效
  20425. sendMessageImg: {
  20426. type: String,
  20427. default: uni.$u.props.button.sendMessageImg
  20428. },
  20429. // 是否显示会话内消息卡片,设置此参数为 true,用户进入客服会话会在右下角显示"可能要发送的小程序"提示,
  20430. // 用户点击后可以快速发送小程序消息,open-type="contact"时有效
  20431. showMessageCard: {
  20432. type: Boolean,
  20433. default: uni.$u.props.button.showMessageCard
  20434. },
  20435. // 额外传参参数,用于小程序的data-xxx属性,通过target.dataset.name获取
  20436. dataName: {
  20437. type: String,
  20438. default: uni.$u.props.button.dataName
  20439. },
  20440. // 节流,一定时间内只能触发一次
  20441. throttleTime: {
  20442. type: [String, Number],
  20443. default: uni.$u.props.button.throttleTime
  20444. },
  20445. // 按住后多久出现点击态,单位毫秒
  20446. hoverStartTime: {
  20447. type: [String, Number],
  20448. default: uni.$u.props.button.hoverStartTime
  20449. },
  20450. // 手指松开后点击态保留时间,单位毫秒
  20451. hoverStayTime: {
  20452. type: [String, Number],
  20453. default: uni.$u.props.button.hoverStayTime
  20454. },
  20455. // 按钮文字,之所以通过props传入,是因为slot传入的话
  20456. // nvue中无法控制文字的样式
  20457. text: {
  20458. type: [String, Number],
  20459. default: uni.$u.props.button.text
  20460. },
  20461. // 按钮图标
  20462. icon: {
  20463. type: String,
  20464. default: uni.$u.props.button.icon
  20465. },
  20466. // 按钮图标
  20467. iconColor: {
  20468. type: String,
  20469. default: uni.$u.props.button.icon
  20470. },
  20471. // 按钮颜色,支持传入linear-gradient渐变色
  20472. color: {
  20473. type: String,
  20474. default: uni.$u.props.button.color
  20475. }
  20476. }
  20477. };
  20478. exports.default = _default;
  20479. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20480. /***/ }),
  20481. /* 418 */,
  20482. /* 419 */,
  20483. /* 420 */,
  20484. /* 421 */,
  20485. /* 422 */,
  20486. /* 423 */,
  20487. /* 424 */,
  20488. /* 425 */
  20489. /*!******************************************************************************************!*\
  20490. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-modal/props.js ***!
  20491. \******************************************************************************************/
  20492. /*! no static exports found */
  20493. /***/ (function(module, exports, __webpack_require__) {
  20494. "use strict";
  20495. /* WEBPACK VAR INJECTION */(function(uni) {
  20496. Object.defineProperty(exports, "__esModule", {
  20497. value: true
  20498. });
  20499. exports.default = void 0;
  20500. var _default = {
  20501. props: {
  20502. // 是否展示modal
  20503. show: {
  20504. type: Boolean,
  20505. default: uni.$u.props.modal.show
  20506. },
  20507. // 标题
  20508. title: {
  20509. type: [String],
  20510. default: uni.$u.props.modal.title
  20511. },
  20512. // 弹窗内容
  20513. content: {
  20514. type: String,
  20515. default: uni.$u.props.modal.content
  20516. },
  20517. // 确认文案
  20518. confirmText: {
  20519. type: String,
  20520. default: uni.$u.props.modal.confirmText
  20521. },
  20522. // 取消文案
  20523. cancelText: {
  20524. type: String,
  20525. default: uni.$u.props.modal.cancelText
  20526. },
  20527. // 是否显示确认按钮
  20528. showConfirmButton: {
  20529. type: Boolean,
  20530. default: uni.$u.props.modal.showConfirmButton
  20531. },
  20532. // 是否显示取消按钮
  20533. showCancelButton: {
  20534. type: Boolean,
  20535. default: uni.$u.props.modal.showCancelButton
  20536. },
  20537. // 确认按钮颜色
  20538. confirmColor: {
  20539. type: String,
  20540. default: uni.$u.props.modal.confirmColor
  20541. },
  20542. // 取消文字颜色
  20543. cancelColor: {
  20544. type: String,
  20545. default: uni.$u.props.modal.cancelColor
  20546. },
  20547. // 对调确认和取消的位置
  20548. buttonReverse: {
  20549. type: Boolean,
  20550. default: uni.$u.props.modal.buttonReverse
  20551. },
  20552. // 是否开启缩放效果
  20553. zoom: {
  20554. type: Boolean,
  20555. default: uni.$u.props.modal.zoom
  20556. },
  20557. // 是否异步关闭,只对确定按钮有效
  20558. asyncClose: {
  20559. type: Boolean,
  20560. default: uni.$u.props.modal.asyncClose
  20561. },
  20562. // 是否允许点击遮罩关闭modal
  20563. closeOnClickOverlay: {
  20564. type: Boolean,
  20565. default: uni.$u.props.modal.closeOnClickOverlay
  20566. },
  20567. // 给一个负的margin-top,往上偏移,避免和键盘重合的情况
  20568. negativeTop: {
  20569. type: [String, Number],
  20570. default: uni.$u.props.modal.negativeTop
  20571. },
  20572. // modal宽度,不支持百分比,可以数值,px,rpx单位
  20573. width: {
  20574. type: [String, Number],
  20575. default: uni.$u.props.modal.width
  20576. },
  20577. // 确认按钮的样式,circle-圆形,square-方形,如设置,将不会显示取消按钮
  20578. confirmButtonShape: {
  20579. type: String,
  20580. default: uni.$u.props.modal.confirmButtonShape
  20581. }
  20582. }
  20583. };
  20584. exports.default = _default;
  20585. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20586. /***/ }),
  20587. /* 426 */,
  20588. /* 427 */,
  20589. /* 428 */,
  20590. /* 429 */,
  20591. /* 430 */,
  20592. /* 431 */,
  20593. /* 432 */,
  20594. /* 433 */
  20595. /*!*****************************************************************************************!*\
  20596. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-form/props.js ***!
  20597. \*****************************************************************************************/
  20598. /*! no static exports found */
  20599. /***/ (function(module, exports, __webpack_require__) {
  20600. "use strict";
  20601. /* WEBPACK VAR INJECTION */(function(uni) {
  20602. Object.defineProperty(exports, "__esModule", {
  20603. value: true
  20604. });
  20605. exports.default = void 0;
  20606. var _default = {
  20607. props: {
  20608. // 当前form的需要验证字段的集合
  20609. model: {
  20610. type: Object,
  20611. default: uni.$u.props.form.model
  20612. },
  20613. // 验证规则
  20614. rules: {
  20615. type: [Object, Function, Array],
  20616. default: uni.$u.props.form.rules
  20617. },
  20618. // 有错误时的提示方式,message-提示信息,toast-进行toast提示
  20619. // border-bottom-下边框呈现红色,none-无提示
  20620. errorType: {
  20621. type: String,
  20622. default: uni.$u.props.form.errorType
  20623. },
  20624. // 是否显示表单域的下划线边框
  20625. borderBottom: {
  20626. type: Boolean,
  20627. default: uni.$u.props.form.borderBottom
  20628. },
  20629. // label的位置,left-左边,top-上边
  20630. labelPosition: {
  20631. type: String,
  20632. default: uni.$u.props.form.labelPosition
  20633. },
  20634. // label的宽度,单位px
  20635. labelWidth: {
  20636. type: [String, Number],
  20637. default: uni.$u.props.form.labelWidth
  20638. },
  20639. // lable字体的对齐方式
  20640. labelAlign: {
  20641. type: String,
  20642. default: uni.$u.props.form.labelAlign
  20643. },
  20644. // lable的样式,对象形式
  20645. labelStyle: {
  20646. type: Object,
  20647. default: uni.$u.props.form.labelStyle
  20648. }
  20649. }
  20650. };
  20651. exports.default = _default;
  20652. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20653. /***/ }),
  20654. /* 434 */
  20655. /*!*******************************************************************************************!*\
  20656. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/util/async-validator.js ***!
  20657. \*******************************************************************************************/
  20658. /*! no static exports found */
  20659. /***/ (function(module, exports, __webpack_require__) {
  20660. "use strict";
  20661. /* WEBPACK VAR INJECTION */(function(process) {
  20662. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20663. Object.defineProperty(exports, "__esModule", {
  20664. value: true
  20665. });
  20666. exports.default = void 0;
  20667. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  20668. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  20669. 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; }
  20670. 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; }
  20671. function _extends() {
  20672. _extends = Object.assign || function (target) {
  20673. for (var i = 1; i < arguments.length; i++) {
  20674. var source = arguments[i];
  20675. for (var key in source) {
  20676. if (Object.prototype.hasOwnProperty.call(source, key)) {
  20677. target[key] = source[key];
  20678. }
  20679. }
  20680. }
  20681. return target;
  20682. };
  20683. return _extends.apply(this, arguments);
  20684. }
  20685. /* eslint no-console:0 */
  20686. var formatRegExp = /%[sdj%]/g;
  20687. var warning = function warning() {}; // don't print warning message when in production env or node runtime
  20688. if (typeof process !== 'undefined' && Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"xusfood_client","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}) && "development" !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {
  20689. warning = function warning(type, errors) {
  20690. if (typeof console !== 'undefined' && console.warn) {
  20691. if (errors.every(function (e) {
  20692. return typeof e === 'string';
  20693. })) {
  20694. console.warn(type, errors);
  20695. }
  20696. }
  20697. };
  20698. }
  20699. function convertFieldsError(errors) {
  20700. if (!errors || !errors.length) return null;
  20701. var fields = {};
  20702. errors.forEach(function (error) {
  20703. var field = error.field;
  20704. fields[field] = fields[field] || [];
  20705. fields[field].push(error);
  20706. });
  20707. return fields;
  20708. }
  20709. function format() {
  20710. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  20711. args[_key] = arguments[_key];
  20712. }
  20713. var i = 1;
  20714. var f = args[0];
  20715. var len = args.length;
  20716. if (typeof f === 'function') {
  20717. return f.apply(null, args.slice(1));
  20718. }
  20719. if (typeof f === 'string') {
  20720. var str = String(f).replace(formatRegExp, function (x) {
  20721. if (x === '%%') {
  20722. return '%';
  20723. }
  20724. if (i >= len) {
  20725. return x;
  20726. }
  20727. switch (x) {
  20728. case '%s':
  20729. return String(args[i++]);
  20730. case '%d':
  20731. return Number(args[i++]);
  20732. case '%j':
  20733. try {
  20734. return JSON.stringify(args[i++]);
  20735. } catch (_) {
  20736. return '[Circular]';
  20737. }
  20738. break;
  20739. default:
  20740. return x;
  20741. }
  20742. });
  20743. for (var arg = args[i]; i < len; arg = args[++i]) {
  20744. str += " ".concat(arg);
  20745. }
  20746. return str;
  20747. }
  20748. return f;
  20749. }
  20750. function isNativeStringType(type) {
  20751. return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern';
  20752. }
  20753. function isEmptyValue(value, type) {
  20754. if (value === undefined || value === null) {
  20755. return true;
  20756. }
  20757. if (type === 'array' && Array.isArray(value) && !value.length) {
  20758. return true;
  20759. }
  20760. if (isNativeStringType(type) && typeof value === 'string' && !value) {
  20761. return true;
  20762. }
  20763. return false;
  20764. }
  20765. function asyncParallelArray(arr, func, callback) {
  20766. var results = [];
  20767. var total = 0;
  20768. var arrLength = arr.length;
  20769. function count(errors) {
  20770. results.push.apply(results, errors);
  20771. total++;
  20772. if (total === arrLength) {
  20773. callback(results);
  20774. }
  20775. }
  20776. arr.forEach(function (a) {
  20777. func(a, count);
  20778. });
  20779. }
  20780. function asyncSerialArray(arr, func, callback) {
  20781. var index = 0;
  20782. var arrLength = arr.length;
  20783. function next(errors) {
  20784. if (errors && errors.length) {
  20785. callback(errors);
  20786. return;
  20787. }
  20788. var original = index;
  20789. index += 1;
  20790. if (original < arrLength) {
  20791. func(arr[original], next);
  20792. } else {
  20793. callback([]);
  20794. }
  20795. }
  20796. next([]);
  20797. }
  20798. function flattenObjArr(objArr) {
  20799. var ret = [];
  20800. Object.keys(objArr).forEach(function (k) {
  20801. ret.push.apply(ret, objArr[k]);
  20802. });
  20803. return ret;
  20804. }
  20805. function asyncMap(objArr, option, func, callback) {
  20806. if (option.first) {
  20807. var _pending = new Promise(function (resolve, reject) {
  20808. var next = function next(errors) {
  20809. callback(errors);
  20810. return errors.length ? reject({
  20811. errors: errors,
  20812. fields: convertFieldsError(errors)
  20813. }) : resolve();
  20814. };
  20815. var flattenArr = flattenObjArr(objArr);
  20816. asyncSerialArray(flattenArr, func, next);
  20817. });
  20818. _pending.catch(function (e) {
  20819. return e;
  20820. });
  20821. return _pending;
  20822. }
  20823. var firstFields = option.firstFields || [];
  20824. if (firstFields === true) {
  20825. firstFields = Object.keys(objArr);
  20826. }
  20827. var objArrKeys = Object.keys(objArr);
  20828. var objArrLength = objArrKeys.length;
  20829. var total = 0;
  20830. var results = [];
  20831. var pending = new Promise(function (resolve, reject) {
  20832. var next = function next(errors) {
  20833. results.push.apply(results, errors);
  20834. total++;
  20835. if (total === objArrLength) {
  20836. callback(results);
  20837. return results.length ? reject({
  20838. errors: results,
  20839. fields: convertFieldsError(results)
  20840. }) : resolve();
  20841. }
  20842. };
  20843. if (!objArrKeys.length) {
  20844. callback(results);
  20845. resolve();
  20846. }
  20847. objArrKeys.forEach(function (key) {
  20848. var arr = objArr[key];
  20849. if (firstFields.indexOf(key) !== -1) {
  20850. asyncSerialArray(arr, func, next);
  20851. } else {
  20852. asyncParallelArray(arr, func, next);
  20853. }
  20854. });
  20855. });
  20856. pending.catch(function (e) {
  20857. return e;
  20858. });
  20859. return pending;
  20860. }
  20861. function complementError(rule) {
  20862. return function (oe) {
  20863. if (oe && oe.message) {
  20864. oe.field = oe.field || rule.fullField;
  20865. return oe;
  20866. }
  20867. return {
  20868. message: typeof oe === 'function' ? oe() : oe,
  20869. field: oe.field || rule.fullField
  20870. };
  20871. };
  20872. }
  20873. function deepMerge(target, source) {
  20874. if (source) {
  20875. for (var s in source) {
  20876. if (source.hasOwnProperty(s)) {
  20877. var value = source[s];
  20878. if ((0, _typeof2.default)(value) === 'object' && (0, _typeof2.default)(target[s]) === 'object') {
  20879. target[s] = _objectSpread(_objectSpread({}, target[s]), value);
  20880. } else {
  20881. target[s] = value;
  20882. }
  20883. }
  20884. }
  20885. }
  20886. return target;
  20887. }
  20888. /**
  20889. * Rule for validating required fields.
  20890. *
  20891. * @param rule The validation rule.
  20892. * @param value The value of the field on the source object.
  20893. * @param source The source object being validated.
  20894. * @param errors An array of errors that this rule may add
  20895. * validation errors to.
  20896. * @param options The validation options.
  20897. * @param options.messages The validation messages.
  20898. */
  20899. function required(rule, value, source, errors, options, type) {
  20900. if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) {
  20901. errors.push(format(options.messages.required, rule.fullField));
  20902. }
  20903. }
  20904. /**
  20905. * Rule for validating whitespace.
  20906. *
  20907. * @param rule The validation rule.
  20908. * @param value The value of the field on the source object.
  20909. * @param source The source object being validated.
  20910. * @param errors An array of errors that this rule may add
  20911. * validation errors to.
  20912. * @param options The validation options.
  20913. * @param options.messages The validation messages.
  20914. */
  20915. function whitespace(rule, value, source, errors, options) {
  20916. if (/^\s+$/.test(value) || value === '') {
  20917. errors.push(format(options.messages.whitespace, rule.fullField));
  20918. }
  20919. }
  20920. /* eslint max-len:0 */
  20921. var pattern = {
  20922. // http://emailregex.com/
  20923. 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,}))$/,
  20924. 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'),
  20925. hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
  20926. };
  20927. var types = {
  20928. integer: function integer(value) {
  20929. return /^(-)?\d+$/.test(value);
  20930. },
  20931. float: function float(value) {
  20932. return /^(-)?\d+(\.\d+)?$/.test(value);
  20933. },
  20934. array: function array(value) {
  20935. return Array.isArray(value);
  20936. },
  20937. regexp: function regexp(value) {
  20938. if (value instanceof RegExp) {
  20939. return true;
  20940. }
  20941. try {
  20942. return !!new RegExp(value);
  20943. } catch (e) {
  20944. return false;
  20945. }
  20946. },
  20947. date: function date(value) {
  20948. return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function';
  20949. },
  20950. number: function number(value) {
  20951. if (isNaN(value)) {
  20952. return false;
  20953. }
  20954. // 修改源码,将字符串数值先转为数值
  20955. return typeof +value === 'number';
  20956. },
  20957. object: function object(value) {
  20958. return (0, _typeof2.default)(value) === 'object' && !types.array(value);
  20959. },
  20960. method: function method(value) {
  20961. return typeof value === 'function';
  20962. },
  20963. email: function email(value) {
  20964. return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
  20965. },
  20966. url: function url(value) {
  20967. return typeof value === 'string' && !!value.match(pattern.url);
  20968. },
  20969. hex: function hex(value) {
  20970. return typeof value === 'string' && !!value.match(pattern.hex);
  20971. }
  20972. };
  20973. /**
  20974. * Rule for validating the type of a value.
  20975. *
  20976. * @param rule The validation rule.
  20977. * @param value The value of the field on the source object.
  20978. * @param source The source object being validated.
  20979. * @param errors An array of errors that this rule may add
  20980. * validation errors to.
  20981. * @param options The validation options.
  20982. * @param options.messages The validation messages.
  20983. */
  20984. function type(rule, value, source, errors, options) {
  20985. if (rule.required && value === undefined) {
  20986. required(rule, value, source, errors, options);
  20987. return;
  20988. }
  20989. var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'];
  20990. var ruleType = rule.type;
  20991. if (custom.indexOf(ruleType) > -1) {
  20992. if (!types[ruleType](value)) {
  20993. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  20994. } // straight typeof check
  20995. } else if (ruleType && (0, _typeof2.default)(value) !== rule.type) {
  20996. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  20997. }
  20998. }
  20999. /**
  21000. * Rule for validating minimum and maximum allowed values.
  21001. *
  21002. * @param rule The validation rule.
  21003. * @param value The value of the field on the source object.
  21004. * @param source The source object being validated.
  21005. * @param errors An array of errors that this rule may add
  21006. * validation errors to.
  21007. * @param options The validation options.
  21008. * @param options.messages The validation messages.
  21009. */
  21010. function range(rule, value, source, errors, options) {
  21011. var len = typeof rule.len === 'number';
  21012. var min = typeof rule.min === 'number';
  21013. var max = typeof rule.max === 'number'; // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane)
  21014. var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
  21015. var val = value;
  21016. var key = null;
  21017. var num = typeof value === 'number';
  21018. var str = typeof value === 'string';
  21019. var arr = Array.isArray(value);
  21020. if (num) {
  21021. key = 'number';
  21022. } else if (str) {
  21023. key = 'string';
  21024. } else if (arr) {
  21025. key = 'array';
  21026. } // if the value is not of a supported type for range validation
  21027. // the validation rule rule should use the
  21028. // type property to also test for a particular type
  21029. if (!key) {
  21030. return false;
  21031. }
  21032. if (arr) {
  21033. val = value.length;
  21034. }
  21035. if (str) {
  21036. // 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3
  21037. val = value.replace(spRegexp, '_').length;
  21038. }
  21039. if (len) {
  21040. if (val !== rule.len) {
  21041. errors.push(format(options.messages[key].len, rule.fullField, rule.len));
  21042. }
  21043. } else if (min && !max && val < rule.min) {
  21044. errors.push(format(options.messages[key].min, rule.fullField, rule.min));
  21045. } else if (max && !min && val > rule.max) {
  21046. errors.push(format(options.messages[key].max, rule.fullField, rule.max));
  21047. } else if (min && max && (val < rule.min || val > rule.max)) {
  21048. errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max));
  21049. }
  21050. }
  21051. var ENUM = 'enum';
  21052. /**
  21053. * Rule for validating a value exists in an enumerable list.
  21054. *
  21055. * @param rule The validation rule.
  21056. * @param value The value of the field on the source object.
  21057. * @param source The source object being validated.
  21058. * @param errors An array of errors that this rule may add
  21059. * validation errors to.
  21060. * @param options The validation options.
  21061. * @param options.messages The validation messages.
  21062. */
  21063. function enumerable(rule, value, source, errors, options) {
  21064. rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : [];
  21065. if (rule[ENUM].indexOf(value) === -1) {
  21066. errors.push(format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', ')));
  21067. }
  21068. }
  21069. /**
  21070. * Rule for validating a regular expression pattern.
  21071. *
  21072. * @param rule The validation rule.
  21073. * @param value The value of the field on the source object.
  21074. * @param source The source object being validated.
  21075. * @param errors An array of errors that this rule may add
  21076. * validation errors to.
  21077. * @param options The validation options.
  21078. * @param options.messages The validation messages.
  21079. */
  21080. function pattern$1(rule, value, source, errors, options) {
  21081. if (rule.pattern) {
  21082. if (rule.pattern instanceof RegExp) {
  21083. // if a RegExp instance is passed, reset `lastIndex` in case its `global`
  21084. // flag is accidentally set to `true`, which in a validation scenario
  21085. // is not necessary and the result might be misleading
  21086. rule.pattern.lastIndex = 0;
  21087. if (!rule.pattern.test(value)) {
  21088. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  21089. }
  21090. } else if (typeof rule.pattern === 'string') {
  21091. var _pattern = new RegExp(rule.pattern);
  21092. if (!_pattern.test(value)) {
  21093. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  21094. }
  21095. }
  21096. }
  21097. }
  21098. var rules = {
  21099. required: required,
  21100. whitespace: whitespace,
  21101. type: type,
  21102. range: range,
  21103. enum: enumerable,
  21104. pattern: pattern$1
  21105. };
  21106. /**
  21107. * Performs validation for string types.
  21108. *
  21109. * @param rule The validation rule.
  21110. * @param value The value of the field on the source object.
  21111. * @param callback The callback function.
  21112. * @param source The source object being validated.
  21113. * @param options The validation options.
  21114. * @param options.messages The validation messages.
  21115. */
  21116. function string(rule, value, callback, source, options) {
  21117. var errors = [];
  21118. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21119. if (validate) {
  21120. if (isEmptyValue(value, 'string') && !rule.required) {
  21121. return callback();
  21122. }
  21123. rules.required(rule, value, source, errors, options, 'string');
  21124. if (!isEmptyValue(value, 'string')) {
  21125. rules.type(rule, value, source, errors, options);
  21126. rules.range(rule, value, source, errors, options);
  21127. rules.pattern(rule, value, source, errors, options);
  21128. if (rule.whitespace === true) {
  21129. rules.whitespace(rule, value, source, errors, options);
  21130. }
  21131. }
  21132. }
  21133. callback(errors);
  21134. }
  21135. /**
  21136. * Validates a function.
  21137. *
  21138. * @param rule The validation rule.
  21139. * @param value The value of the field on the source object.
  21140. * @param callback The callback function.
  21141. * @param source The source object being validated.
  21142. * @param options The validation options.
  21143. * @param options.messages The validation messages.
  21144. */
  21145. function method(rule, value, callback, source, options) {
  21146. var errors = [];
  21147. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21148. if (validate) {
  21149. if (isEmptyValue(value) && !rule.required) {
  21150. return callback();
  21151. }
  21152. rules.required(rule, value, source, errors, options);
  21153. if (value !== undefined) {
  21154. rules.type(rule, value, source, errors, options);
  21155. }
  21156. }
  21157. callback(errors);
  21158. }
  21159. /**
  21160. * Validates a number.
  21161. *
  21162. * @param rule The validation rule.
  21163. * @param value The value of the field on the source object.
  21164. * @param callback The callback function.
  21165. * @param source The source object being validated.
  21166. * @param options The validation options.
  21167. * @param options.messages The validation messages.
  21168. */
  21169. function number(rule, value, callback, source, options) {
  21170. var errors = [];
  21171. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21172. if (validate) {
  21173. if (value === '') {
  21174. value = undefined;
  21175. }
  21176. if (isEmptyValue(value) && !rule.required) {
  21177. return callback();
  21178. }
  21179. rules.required(rule, value, source, errors, options);
  21180. if (value !== undefined) {
  21181. rules.type(rule, value, source, errors, options);
  21182. rules.range(rule, value, source, errors, options);
  21183. }
  21184. }
  21185. callback(errors);
  21186. }
  21187. /**
  21188. * Validates a boolean.
  21189. *
  21190. * @param rule The validation rule.
  21191. * @param value The value of the field on the source object.
  21192. * @param callback The callback function.
  21193. * @param source The source object being validated.
  21194. * @param options The validation options.
  21195. * @param options.messages The validation messages.
  21196. */
  21197. function _boolean(rule, value, callback, source, options) {
  21198. var errors = [];
  21199. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21200. if (validate) {
  21201. if (isEmptyValue(value) && !rule.required) {
  21202. return callback();
  21203. }
  21204. rules.required(rule, value, source, errors, options);
  21205. if (value !== undefined) {
  21206. rules.type(rule, value, source, errors, options);
  21207. }
  21208. }
  21209. callback(errors);
  21210. }
  21211. /**
  21212. * Validates the regular expression type.
  21213. *
  21214. * @param rule The validation rule.
  21215. * @param value The value of the field on the source object.
  21216. * @param callback The callback function.
  21217. * @param source The source object being validated.
  21218. * @param options The validation options.
  21219. * @param options.messages The validation messages.
  21220. */
  21221. function regexp(rule, value, callback, source, options) {
  21222. var errors = [];
  21223. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21224. if (validate) {
  21225. if (isEmptyValue(value) && !rule.required) {
  21226. return callback();
  21227. }
  21228. rules.required(rule, value, source, errors, options);
  21229. if (!isEmptyValue(value)) {
  21230. rules.type(rule, value, source, errors, options);
  21231. }
  21232. }
  21233. callback(errors);
  21234. }
  21235. /**
  21236. * Validates a number is an integer.
  21237. *
  21238. * @param rule The validation rule.
  21239. * @param value The value of the field on the source object.
  21240. * @param callback The callback function.
  21241. * @param source The source object being validated.
  21242. * @param options The validation options.
  21243. * @param options.messages The validation messages.
  21244. */
  21245. function integer(rule, value, callback, source, options) {
  21246. var errors = [];
  21247. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21248. if (validate) {
  21249. if (isEmptyValue(value) && !rule.required) {
  21250. return callback();
  21251. }
  21252. rules.required(rule, value, source, errors, options);
  21253. if (value !== undefined) {
  21254. rules.type(rule, value, source, errors, options);
  21255. rules.range(rule, value, source, errors, options);
  21256. }
  21257. }
  21258. callback(errors);
  21259. }
  21260. /**
  21261. * Validates a number is a floating point number.
  21262. *
  21263. * @param rule The validation rule.
  21264. * @param value The value of the field on the source object.
  21265. * @param callback The callback function.
  21266. * @param source The source object being validated.
  21267. * @param options The validation options.
  21268. * @param options.messages The validation messages.
  21269. */
  21270. function floatFn(rule, value, callback, source, options) {
  21271. var errors = [];
  21272. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21273. if (validate) {
  21274. if (isEmptyValue(value) && !rule.required) {
  21275. return callback();
  21276. }
  21277. rules.required(rule, value, source, errors, options);
  21278. if (value !== undefined) {
  21279. rules.type(rule, value, source, errors, options);
  21280. rules.range(rule, value, source, errors, options);
  21281. }
  21282. }
  21283. callback(errors);
  21284. }
  21285. /**
  21286. * Validates an array.
  21287. *
  21288. * @param rule The validation rule.
  21289. * @param value The value of the field on the source object.
  21290. * @param callback The callback function.
  21291. * @param source The source object being validated.
  21292. * @param options The validation options.
  21293. * @param options.messages The validation messages.
  21294. */
  21295. function array(rule, value, callback, source, options) {
  21296. var errors = [];
  21297. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21298. if (validate) {
  21299. if (isEmptyValue(value, 'array') && !rule.required) {
  21300. return callback();
  21301. }
  21302. rules.required(rule, value, source, errors, options, 'array');
  21303. if (!isEmptyValue(value, 'array')) {
  21304. rules.type(rule, value, source, errors, options);
  21305. rules.range(rule, value, source, errors, options);
  21306. }
  21307. }
  21308. callback(errors);
  21309. }
  21310. /**
  21311. * Validates an object.
  21312. *
  21313. * @param rule The validation rule.
  21314. * @param value The value of the field on the source object.
  21315. * @param callback The callback function.
  21316. * @param source The source object being validated.
  21317. * @param options The validation options.
  21318. * @param options.messages The validation messages.
  21319. */
  21320. function object(rule, value, callback, source, options) {
  21321. var errors = [];
  21322. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21323. if (validate) {
  21324. if (isEmptyValue(value) && !rule.required) {
  21325. return callback();
  21326. }
  21327. rules.required(rule, value, source, errors, options);
  21328. if (value !== undefined) {
  21329. rules.type(rule, value, source, errors, options);
  21330. }
  21331. }
  21332. callback(errors);
  21333. }
  21334. var ENUM$1 = 'enum';
  21335. /**
  21336. * Validates an enumerable list.
  21337. *
  21338. * @param rule The validation rule.
  21339. * @param value The value of the field on the source object.
  21340. * @param callback The callback function.
  21341. * @param source The source object being validated.
  21342. * @param options The validation options.
  21343. * @param options.messages The validation messages.
  21344. */
  21345. function enumerable$1(rule, value, callback, source, options) {
  21346. var errors = [];
  21347. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21348. if (validate) {
  21349. if (isEmptyValue(value) && !rule.required) {
  21350. return callback();
  21351. }
  21352. rules.required(rule, value, source, errors, options);
  21353. if (value !== undefined) {
  21354. rules[ENUM$1](rule, value, source, errors, options);
  21355. }
  21356. }
  21357. callback(errors);
  21358. }
  21359. /**
  21360. * Validates a regular expression pattern.
  21361. *
  21362. * Performs validation when a rule only contains
  21363. * a pattern property but is not declared as a string type.
  21364. *
  21365. * @param rule The validation rule.
  21366. * @param value The value of the field on the source object.
  21367. * @param callback The callback function.
  21368. * @param source The source object being validated.
  21369. * @param options The validation options.
  21370. * @param options.messages The validation messages.
  21371. */
  21372. function pattern$2(rule, value, callback, source, options) {
  21373. var errors = [];
  21374. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21375. if (validate) {
  21376. if (isEmptyValue(value, 'string') && !rule.required) {
  21377. return callback();
  21378. }
  21379. rules.required(rule, value, source, errors, options);
  21380. if (!isEmptyValue(value, 'string')) {
  21381. rules.pattern(rule, value, source, errors, options);
  21382. }
  21383. }
  21384. callback(errors);
  21385. }
  21386. function date(rule, value, callback, source, options) {
  21387. var errors = [];
  21388. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21389. if (validate) {
  21390. if (isEmptyValue(value) && !rule.required) {
  21391. return callback();
  21392. }
  21393. rules.required(rule, value, source, errors, options);
  21394. if (!isEmptyValue(value)) {
  21395. var dateObject;
  21396. if (typeof value === 'number') {
  21397. dateObject = new Date(value);
  21398. } else {
  21399. dateObject = value;
  21400. }
  21401. rules.type(rule, dateObject, source, errors, options);
  21402. if (dateObject) {
  21403. rules.range(rule, dateObject.getTime(), source, errors, options);
  21404. }
  21405. }
  21406. }
  21407. callback(errors);
  21408. }
  21409. function required$1(rule, value, callback, source, options) {
  21410. var errors = [];
  21411. var type = Array.isArray(value) ? 'array' : (0, _typeof2.default)(value);
  21412. rules.required(rule, value, source, errors, options, type);
  21413. callback(errors);
  21414. }
  21415. function type$1(rule, value, callback, source, options) {
  21416. var ruleType = rule.type;
  21417. var errors = [];
  21418. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21419. if (validate) {
  21420. if (isEmptyValue(value, ruleType) && !rule.required) {
  21421. return callback();
  21422. }
  21423. rules.required(rule, value, source, errors, options, ruleType);
  21424. if (!isEmptyValue(value, ruleType)) {
  21425. rules.type(rule, value, source, errors, options);
  21426. }
  21427. }
  21428. callback(errors);
  21429. }
  21430. /**
  21431. * Performs validation for any type.
  21432. *
  21433. * @param rule The validation rule.
  21434. * @param value The value of the field on the source object.
  21435. * @param callback The callback function.
  21436. * @param source The source object being validated.
  21437. * @param options The validation options.
  21438. * @param options.messages The validation messages.
  21439. */
  21440. function any(rule, value, callback, source, options) {
  21441. var errors = [];
  21442. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21443. if (validate) {
  21444. if (isEmptyValue(value) && !rule.required) {
  21445. return callback();
  21446. }
  21447. rules.required(rule, value, source, errors, options);
  21448. }
  21449. callback(errors);
  21450. }
  21451. var validators = {
  21452. string: string,
  21453. method: method,
  21454. number: number,
  21455. boolean: _boolean,
  21456. regexp: regexp,
  21457. integer: integer,
  21458. float: floatFn,
  21459. array: array,
  21460. object: object,
  21461. enum: enumerable$1,
  21462. pattern: pattern$2,
  21463. date: date,
  21464. url: type$1,
  21465. hex: type$1,
  21466. email: type$1,
  21467. required: required$1,
  21468. any: any
  21469. };
  21470. function newMessages() {
  21471. return {
  21472. default: 'Validation error on field %s',
  21473. required: '%s is required',
  21474. enum: '%s must be one of %s',
  21475. whitespace: '%s cannot be empty',
  21476. date: {
  21477. format: '%s date %s is invalid for format %s',
  21478. parse: '%s date could not be parsed, %s is invalid ',
  21479. invalid: '%s date %s is invalid'
  21480. },
  21481. types: {
  21482. string: '%s is not a %s',
  21483. method: '%s is not a %s (function)',
  21484. array: '%s is not an %s',
  21485. object: '%s is not an %s',
  21486. number: '%s is not a %s',
  21487. date: '%s is not a %s',
  21488. boolean: '%s is not a %s',
  21489. integer: '%s is not an %s',
  21490. float: '%s is not a %s',
  21491. regexp: '%s is not a valid %s',
  21492. email: '%s is not a valid %s',
  21493. url: '%s is not a valid %s',
  21494. hex: '%s is not a valid %s'
  21495. },
  21496. string: {
  21497. len: '%s must be exactly %s characters',
  21498. min: '%s must be at least %s characters',
  21499. max: '%s cannot be longer than %s characters',
  21500. range: '%s must be between %s and %s characters'
  21501. },
  21502. number: {
  21503. len: '%s must equal %s',
  21504. min: '%s cannot be less than %s',
  21505. max: '%s cannot be greater than %s',
  21506. range: '%s must be between %s and %s'
  21507. },
  21508. array: {
  21509. len: '%s must be exactly %s in length',
  21510. min: '%s cannot be less than %s in length',
  21511. max: '%s cannot be greater than %s in length',
  21512. range: '%s must be between %s and %s in length'
  21513. },
  21514. pattern: {
  21515. mismatch: '%s value %s does not match pattern %s'
  21516. },
  21517. clone: function clone() {
  21518. var cloned = JSON.parse(JSON.stringify(this));
  21519. cloned.clone = this.clone;
  21520. return cloned;
  21521. }
  21522. };
  21523. }
  21524. var messages = newMessages();
  21525. /**
  21526. * Encapsulates a validation schema.
  21527. *
  21528. * @param descriptor An object declaring validation rules
  21529. * for this schema.
  21530. */
  21531. function Schema(descriptor) {
  21532. this.rules = null;
  21533. this._messages = messages;
  21534. this.define(descriptor);
  21535. }
  21536. Schema.prototype = {
  21537. messages: function messages(_messages) {
  21538. if (_messages) {
  21539. this._messages = deepMerge(newMessages(), _messages);
  21540. }
  21541. return this._messages;
  21542. },
  21543. define: function define(rules) {
  21544. if (!rules) {
  21545. throw new Error('Cannot configure a schema with no rules');
  21546. }
  21547. if ((0, _typeof2.default)(rules) !== 'object' || Array.isArray(rules)) {
  21548. throw new Error('Rules must be an object');
  21549. }
  21550. this.rules = {};
  21551. var z;
  21552. var item;
  21553. for (z in rules) {
  21554. if (rules.hasOwnProperty(z)) {
  21555. item = rules[z];
  21556. this.rules[z] = Array.isArray(item) ? item : [item];
  21557. }
  21558. }
  21559. },
  21560. validate: function validate(source_, o, oc) {
  21561. var _this = this;
  21562. if (o === void 0) {
  21563. o = {};
  21564. }
  21565. if (oc === void 0) {
  21566. oc = function oc() {};
  21567. }
  21568. var source = source_;
  21569. var options = o;
  21570. var callback = oc;
  21571. if (typeof options === 'function') {
  21572. callback = options;
  21573. options = {};
  21574. }
  21575. if (!this.rules || Object.keys(this.rules).length === 0) {
  21576. if (callback) {
  21577. callback();
  21578. }
  21579. return Promise.resolve();
  21580. }
  21581. function complete(results) {
  21582. var i;
  21583. var errors = [];
  21584. var fields = {};
  21585. function add(e) {
  21586. if (Array.isArray(e)) {
  21587. var _errors;
  21588. errors = (_errors = errors).concat.apply(_errors, e);
  21589. } else {
  21590. errors.push(e);
  21591. }
  21592. }
  21593. for (i = 0; i < results.length; i++) {
  21594. add(results[i]);
  21595. }
  21596. if (!errors.length) {
  21597. errors = null;
  21598. fields = null;
  21599. } else {
  21600. fields = convertFieldsError(errors);
  21601. }
  21602. callback(errors, fields);
  21603. }
  21604. if (options.messages) {
  21605. var messages$1 = this.messages();
  21606. if (messages$1 === messages) {
  21607. messages$1 = newMessages();
  21608. }
  21609. deepMerge(messages$1, options.messages);
  21610. options.messages = messages$1;
  21611. } else {
  21612. options.messages = this.messages();
  21613. }
  21614. var arr;
  21615. var value;
  21616. var series = {};
  21617. var keys = options.keys || Object.keys(this.rules);
  21618. keys.forEach(function (z) {
  21619. arr = _this.rules[z];
  21620. value = source[z];
  21621. arr.forEach(function (r) {
  21622. var rule = r;
  21623. if (typeof rule.transform === 'function') {
  21624. if (source === source_) {
  21625. source = _objectSpread({}, source);
  21626. }
  21627. value = source[z] = rule.transform(value);
  21628. }
  21629. if (typeof rule === 'function') {
  21630. rule = {
  21631. validator: rule
  21632. };
  21633. } else {
  21634. rule = _objectSpread({}, rule);
  21635. }
  21636. rule.validator = _this.getValidationMethod(rule);
  21637. rule.field = z;
  21638. rule.fullField = rule.fullField || z;
  21639. rule.type = _this.getType(rule);
  21640. if (!rule.validator) {
  21641. return;
  21642. }
  21643. series[z] = series[z] || [];
  21644. series[z].push({
  21645. rule: rule,
  21646. value: value,
  21647. source: source,
  21648. field: z
  21649. });
  21650. });
  21651. });
  21652. var errorFields = {};
  21653. return asyncMap(series, options, function (data, doIt) {
  21654. var rule = data.rule;
  21655. var deep = (rule.type === 'object' || rule.type === 'array') && ((0, _typeof2.default)(rule.fields) === 'object' || (0, _typeof2.default)(rule.defaultField) === 'object');
  21656. deep = deep && (rule.required || !rule.required && data.value);
  21657. rule.field = data.field;
  21658. function addFullfield(key, schema) {
  21659. return _objectSpread(_objectSpread({}, schema), {}, {
  21660. fullField: "".concat(rule.fullField, ".").concat(key)
  21661. });
  21662. }
  21663. function cb(e) {
  21664. if (e === void 0) {
  21665. e = [];
  21666. }
  21667. var errors = e;
  21668. if (!Array.isArray(errors)) {
  21669. errors = [errors];
  21670. }
  21671. if (!options.suppressWarning && errors.length) {
  21672. Schema.warning('async-validator:', errors);
  21673. }
  21674. if (errors.length && rule.message) {
  21675. errors = [].concat(rule.message);
  21676. }
  21677. errors = errors.map(complementError(rule));
  21678. if (options.first && errors.length) {
  21679. errorFields[rule.field] = 1;
  21680. return doIt(errors);
  21681. }
  21682. if (!deep) {
  21683. doIt(errors);
  21684. } else {
  21685. // if rule is required but the target object
  21686. // does not exist fail at the rule level and don't
  21687. // go deeper
  21688. if (rule.required && !data.value) {
  21689. if (rule.message) {
  21690. errors = [].concat(rule.message).map(complementError(rule));
  21691. } else if (options.error) {
  21692. errors = [options.error(rule, format(options.messages.required, rule.field))];
  21693. } else {
  21694. errors = [];
  21695. }
  21696. return doIt(errors);
  21697. }
  21698. var fieldsSchema = {};
  21699. if (rule.defaultField) {
  21700. for (var k in data.value) {
  21701. if (data.value.hasOwnProperty(k)) {
  21702. fieldsSchema[k] = rule.defaultField;
  21703. }
  21704. }
  21705. }
  21706. fieldsSchema = _objectSpread(_objectSpread({}, fieldsSchema), data.rule.fields);
  21707. for (var f in fieldsSchema) {
  21708. if (fieldsSchema.hasOwnProperty(f)) {
  21709. var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]];
  21710. fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f));
  21711. }
  21712. }
  21713. var schema = new Schema(fieldsSchema);
  21714. schema.messages(options.messages);
  21715. if (data.rule.options) {
  21716. data.rule.options.messages = options.messages;
  21717. data.rule.options.error = options.error;
  21718. }
  21719. schema.validate(data.value, data.rule.options || options, function (errs) {
  21720. var finalErrors = [];
  21721. if (errors && errors.length) {
  21722. finalErrors.push.apply(finalErrors, errors);
  21723. }
  21724. if (errs && errs.length) {
  21725. finalErrors.push.apply(finalErrors, errs);
  21726. }
  21727. doIt(finalErrors.length ? finalErrors : null);
  21728. });
  21729. }
  21730. }
  21731. var res;
  21732. if (rule.asyncValidator) {
  21733. res = rule.asyncValidator(rule, data.value, cb, data.source, options);
  21734. } else if (rule.validator) {
  21735. res = rule.validator(rule, data.value, cb, data.source, options);
  21736. if (res === true) {
  21737. cb();
  21738. } else if (res === false) {
  21739. cb(rule.message || "".concat(rule.field, " fails"));
  21740. } else if (res instanceof Array) {
  21741. cb(res);
  21742. } else if (res instanceof Error) {
  21743. cb(res.message);
  21744. }
  21745. }
  21746. if (res && res.then) {
  21747. res.then(function () {
  21748. return cb();
  21749. }, function (e) {
  21750. return cb(e);
  21751. });
  21752. }
  21753. }, function (results) {
  21754. complete(results);
  21755. });
  21756. },
  21757. getType: function getType(rule) {
  21758. if (rule.type === undefined && rule.pattern instanceof RegExp) {
  21759. rule.type = 'pattern';
  21760. }
  21761. if (typeof rule.validator !== 'function' && rule.type && !validators.hasOwnProperty(rule.type)) {
  21762. throw new Error(format('Unknown rule type %s', rule.type));
  21763. }
  21764. return rule.type || 'string';
  21765. },
  21766. getValidationMethod: function getValidationMethod(rule) {
  21767. if (typeof rule.validator === 'function') {
  21768. return rule.validator;
  21769. }
  21770. var keys = Object.keys(rule);
  21771. var messageIndex = keys.indexOf('message');
  21772. if (messageIndex !== -1) {
  21773. keys.splice(messageIndex, 1);
  21774. }
  21775. if (keys.length === 1 && keys[0] === 'required') {
  21776. return validators.required;
  21777. }
  21778. return validators[this.getType(rule)] || false;
  21779. }
  21780. };
  21781. Schema.register = function register(type, validator) {
  21782. if (typeof validator !== 'function') {
  21783. throw new Error('Cannot register a validator by type, validator is not a function');
  21784. }
  21785. validators[type] = validator;
  21786. };
  21787. Schema.warning = warning;
  21788. Schema.messages = messages;
  21789. var _default = Schema; // # sourceMappingURL=index.js.map
  21790. exports.default = _default;
  21791. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/node-libs-browser/mock/process.js */ 435)))
  21792. /***/ }),
  21793. /* 435 */
  21794. /*!********************************************************!*\
  21795. !*** ./node_modules/node-libs-browser/mock/process.js ***!
  21796. \********************************************************/
  21797. /*! no static exports found */
  21798. /***/ (function(module, exports, __webpack_require__) {
  21799. exports.nextTick = function nextTick(fn) {
  21800. var args = Array.prototype.slice.call(arguments);
  21801. args.shift();
  21802. setTimeout(function () {
  21803. fn.apply(null, args);
  21804. }, 0);
  21805. };
  21806. exports.platform = exports.arch =
  21807. exports.execPath = exports.title = 'browser';
  21808. exports.pid = 1;
  21809. exports.browser = true;
  21810. exports.env = {};
  21811. exports.argv = [];
  21812. exports.binding = function (name) {
  21813. throw new Error('No such module. (Possibly not yet loaded)')
  21814. };
  21815. (function () {
  21816. var cwd = '/';
  21817. var path;
  21818. exports.cwd = function () { return cwd };
  21819. exports.chdir = function (dir) {
  21820. if (!path) path = __webpack_require__(/*! path */ 436);
  21821. cwd = path.resolve(dir, cwd);
  21822. };
  21823. })();
  21824. exports.exit = exports.kill =
  21825. exports.umask = exports.dlopen =
  21826. exports.uptime = exports.memoryUsage =
  21827. exports.uvCounters = function() {};
  21828. exports.features = {};
  21829. /***/ }),
  21830. /* 436 */
  21831. /*!***********************************************!*\
  21832. !*** ./node_modules/path-browserify/index.js ***!
  21833. \***********************************************/
  21834. /*! no static exports found */
  21835. /***/ (function(module, exports, __webpack_require__) {
  21836. /* WEBPACK VAR INJECTION */(function(process) {// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
  21837. // backported and transplited with Babel, with backwards-compat fixes
  21838. // Copyright Joyent, Inc. and other Node contributors.
  21839. //
  21840. // Permission is hereby granted, free of charge, to any person obtaining a
  21841. // copy of this software and associated documentation files (the
  21842. // "Software"), to deal in the Software without restriction, including
  21843. // without limitation the rights to use, copy, modify, merge, publish,
  21844. // distribute, sublicense, and/or sell copies of the Software, and to permit
  21845. // persons to whom the Software is furnished to do so, subject to the
  21846. // following conditions:
  21847. //
  21848. // The above copyright notice and this permission notice shall be included
  21849. // in all copies or substantial portions of the Software.
  21850. //
  21851. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  21852. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  21853. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  21854. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  21855. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  21856. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  21857. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  21858. // resolves . and .. elements in a path array with directory names there
  21859. // must be no slashes, empty elements, or device names (c:\) in the array
  21860. // (so also no leading and trailing slashes - it does not distinguish
  21861. // relative and absolute paths)
  21862. function normalizeArray(parts, allowAboveRoot) {
  21863. // if the path tries to go above the root, `up` ends up > 0
  21864. var up = 0;
  21865. for (var i = parts.length - 1; i >= 0; i--) {
  21866. var last = parts[i];
  21867. if (last === '.') {
  21868. parts.splice(i, 1);
  21869. } else if (last === '..') {
  21870. parts.splice(i, 1);
  21871. up++;
  21872. } else if (up) {
  21873. parts.splice(i, 1);
  21874. up--;
  21875. }
  21876. }
  21877. // if the path is allowed to go above the root, restore leading ..s
  21878. if (allowAboveRoot) {
  21879. for (; up--; up) {
  21880. parts.unshift('..');
  21881. }
  21882. }
  21883. return parts;
  21884. }
  21885. // path.resolve([from ...], to)
  21886. // posix version
  21887. exports.resolve = function() {
  21888. var resolvedPath = '',
  21889. resolvedAbsolute = false;
  21890. for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
  21891. var path = (i >= 0) ? arguments[i] : process.cwd();
  21892. // Skip empty and invalid entries
  21893. if (typeof path !== 'string') {
  21894. throw new TypeError('Arguments to path.resolve must be strings');
  21895. } else if (!path) {
  21896. continue;
  21897. }
  21898. resolvedPath = path + '/' + resolvedPath;
  21899. resolvedAbsolute = path.charAt(0) === '/';
  21900. }
  21901. // At this point the path should be resolved to a full absolute path, but
  21902. // handle relative paths to be safe (might happen when process.cwd() fails)
  21903. // Normalize the path
  21904. resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
  21905. return !!p;
  21906. }), !resolvedAbsolute).join('/');
  21907. return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
  21908. };
  21909. // path.normalize(path)
  21910. // posix version
  21911. exports.normalize = function(path) {
  21912. var isAbsolute = exports.isAbsolute(path),
  21913. trailingSlash = substr(path, -1) === '/';
  21914. // Normalize the path
  21915. path = normalizeArray(filter(path.split('/'), function(p) {
  21916. return !!p;
  21917. }), !isAbsolute).join('/');
  21918. if (!path && !isAbsolute) {
  21919. path = '.';
  21920. }
  21921. if (path && trailingSlash) {
  21922. path += '/';
  21923. }
  21924. return (isAbsolute ? '/' : '') + path;
  21925. };
  21926. // posix version
  21927. exports.isAbsolute = function(path) {
  21928. return path.charAt(0) === '/';
  21929. };
  21930. // posix version
  21931. exports.join = function() {
  21932. var paths = Array.prototype.slice.call(arguments, 0);
  21933. return exports.normalize(filter(paths, function(p, index) {
  21934. if (typeof p !== 'string') {
  21935. throw new TypeError('Arguments to path.join must be strings');
  21936. }
  21937. return p;
  21938. }).join('/'));
  21939. };
  21940. // path.relative(from, to)
  21941. // posix version
  21942. exports.relative = function(from, to) {
  21943. from = exports.resolve(from).substr(1);
  21944. to = exports.resolve(to).substr(1);
  21945. function trim(arr) {
  21946. var start = 0;
  21947. for (; start < arr.length; start++) {
  21948. if (arr[start] !== '') break;
  21949. }
  21950. var end = arr.length - 1;
  21951. for (; end >= 0; end--) {
  21952. if (arr[end] !== '') break;
  21953. }
  21954. if (start > end) return [];
  21955. return arr.slice(start, end - start + 1);
  21956. }
  21957. var fromParts = trim(from.split('/'));
  21958. var toParts = trim(to.split('/'));
  21959. var length = Math.min(fromParts.length, toParts.length);
  21960. var samePartsLength = length;
  21961. for (var i = 0; i < length; i++) {
  21962. if (fromParts[i] !== toParts[i]) {
  21963. samePartsLength = i;
  21964. break;
  21965. }
  21966. }
  21967. var outputParts = [];
  21968. for (var i = samePartsLength; i < fromParts.length; i++) {
  21969. outputParts.push('..');
  21970. }
  21971. outputParts = outputParts.concat(toParts.slice(samePartsLength));
  21972. return outputParts.join('/');
  21973. };
  21974. exports.sep = '/';
  21975. exports.delimiter = ':';
  21976. exports.dirname = function (path) {
  21977. if (typeof path !== 'string') path = path + '';
  21978. if (path.length === 0) return '.';
  21979. var code = path.charCodeAt(0);
  21980. var hasRoot = code === 47 /*/*/;
  21981. var end = -1;
  21982. var matchedSlash = true;
  21983. for (var i = path.length - 1; i >= 1; --i) {
  21984. code = path.charCodeAt(i);
  21985. if (code === 47 /*/*/) {
  21986. if (!matchedSlash) {
  21987. end = i;
  21988. break;
  21989. }
  21990. } else {
  21991. // We saw the first non-path separator
  21992. matchedSlash = false;
  21993. }
  21994. }
  21995. if (end === -1) return hasRoot ? '/' : '.';
  21996. if (hasRoot && end === 1) {
  21997. // return '//';
  21998. // Backwards-compat fix:
  21999. return '/';
  22000. }
  22001. return path.slice(0, end);
  22002. };
  22003. function basename(path) {
  22004. if (typeof path !== 'string') path = path + '';
  22005. var start = 0;
  22006. var end = -1;
  22007. var matchedSlash = true;
  22008. var i;
  22009. for (i = path.length - 1; i >= 0; --i) {
  22010. if (path.charCodeAt(i) === 47 /*/*/) {
  22011. // If we reached a path separator that was not part of a set of path
  22012. // separators at the end of the string, stop now
  22013. if (!matchedSlash) {
  22014. start = i + 1;
  22015. break;
  22016. }
  22017. } else if (end === -1) {
  22018. // We saw the first non-path separator, mark this as the end of our
  22019. // path component
  22020. matchedSlash = false;
  22021. end = i + 1;
  22022. }
  22023. }
  22024. if (end === -1) return '';
  22025. return path.slice(start, end);
  22026. }
  22027. // Uses a mixed approach for backwards-compatibility, as ext behavior changed
  22028. // in new Node.js versions, so only basename() above is backported here
  22029. exports.basename = function (path, ext) {
  22030. var f = basename(path);
  22031. if (ext && f.substr(-1 * ext.length) === ext) {
  22032. f = f.substr(0, f.length - ext.length);
  22033. }
  22034. return f;
  22035. };
  22036. exports.extname = function (path) {
  22037. if (typeof path !== 'string') path = path + '';
  22038. var startDot = -1;
  22039. var startPart = 0;
  22040. var end = -1;
  22041. var matchedSlash = true;
  22042. // Track the state of characters (if any) we see before our first dot and
  22043. // after any path separator we find
  22044. var preDotState = 0;
  22045. for (var i = path.length - 1; i >= 0; --i) {
  22046. var code = path.charCodeAt(i);
  22047. if (code === 47 /*/*/) {
  22048. // If we reached a path separator that was not part of a set of path
  22049. // separators at the end of the string, stop now
  22050. if (!matchedSlash) {
  22051. startPart = i + 1;
  22052. break;
  22053. }
  22054. continue;
  22055. }
  22056. if (end === -1) {
  22057. // We saw the first non-path separator, mark this as the end of our
  22058. // extension
  22059. matchedSlash = false;
  22060. end = i + 1;
  22061. }
  22062. if (code === 46 /*.*/) {
  22063. // If this is our first dot, mark it as the start of our extension
  22064. if (startDot === -1)
  22065. startDot = i;
  22066. else if (preDotState !== 1)
  22067. preDotState = 1;
  22068. } else if (startDot !== -1) {
  22069. // We saw a non-dot and non-path separator before our dot, so we should
  22070. // have a good chance at having a non-empty extension
  22071. preDotState = -1;
  22072. }
  22073. }
  22074. if (startDot === -1 || end === -1 ||
  22075. // We saw a non-dot character immediately before the dot
  22076. preDotState === 0 ||
  22077. // The (right-most) trimmed path component is exactly '..'
  22078. preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
  22079. return '';
  22080. }
  22081. return path.slice(startDot, end);
  22082. };
  22083. function filter (xs, f) {
  22084. if (xs.filter) return xs.filter(f);
  22085. var res = [];
  22086. for (var i = 0; i < xs.length; i++) {
  22087. if (f(xs[i], i, xs)) res.push(xs[i]);
  22088. }
  22089. return res;
  22090. }
  22091. // String.prototype.substr - negative index don't work in IE8
  22092. var substr = 'ab'.substr(-1) === 'b'
  22093. ? function (str, start, len) { return str.substr(start, len) }
  22094. : function (str, start, len) {
  22095. if (start < 0) start = str.length + start;
  22096. return str.substr(start, len);
  22097. }
  22098. ;
  22099. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ 435)))
  22100. /***/ }),
  22101. /* 437 */,
  22102. /* 438 */,
  22103. /* 439 */,
  22104. /* 440 */,
  22105. /* 441 */,
  22106. /* 442 */
  22107. /*!**********************************************************************************************!*\
  22108. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-form-item/props.js ***!
  22109. \**********************************************************************************************/
  22110. /*! no static exports found */
  22111. /***/ (function(module, exports, __webpack_require__) {
  22112. "use strict";
  22113. /* WEBPACK VAR INJECTION */(function(uni) {
  22114. Object.defineProperty(exports, "__esModule", {
  22115. value: true
  22116. });
  22117. exports.default = void 0;
  22118. var _default = {
  22119. props: {
  22120. // input的label提示语
  22121. label: {
  22122. type: String,
  22123. default: uni.$u.props.formItem.label
  22124. },
  22125. // 绑定的值
  22126. prop: {
  22127. type: String,
  22128. default: uni.$u.props.formItem.prop
  22129. },
  22130. // 是否显示表单域的下划线边框
  22131. borderBottom: {
  22132. type: [String, Boolean],
  22133. default: uni.$u.props.formItem.borderBottom
  22134. },
  22135. // label的位置,left-左边,top-上边
  22136. labelPosition: {
  22137. type: String,
  22138. default: uni.$u.props.formItem.labelPosition
  22139. },
  22140. // label的宽度,单位px
  22141. labelWidth: {
  22142. type: [String, Number],
  22143. default: uni.$u.props.formItem.labelWidth
  22144. },
  22145. // 右侧图标
  22146. rightIcon: {
  22147. type: String,
  22148. default: uni.$u.props.formItem.rightIcon
  22149. },
  22150. // 左侧图标
  22151. leftIcon: {
  22152. type: String,
  22153. default: uni.$u.props.formItem.leftIcon
  22154. },
  22155. // 是否显示左边的必填星号,只作显示用,具体校验必填的逻辑,请在rules中配置
  22156. required: {
  22157. type: Boolean,
  22158. default: uni.$u.props.formItem.required
  22159. },
  22160. leftIconStyle: {
  22161. type: [String, Object],
  22162. default: uni.$u.props.formItem.leftIconStyle
  22163. }
  22164. }
  22165. };
  22166. exports.default = _default;
  22167. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22168. /***/ }),
  22169. /* 443 */,
  22170. /* 444 */,
  22171. /* 445 */,
  22172. /* 446 */,
  22173. /* 447 */,
  22174. /* 448 */,
  22175. /* 449 */,
  22176. /* 450 */
  22177. /*!*******************************************************************************************!*\
  22178. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-avatar/props.js ***!
  22179. \*******************************************************************************************/
  22180. /*! no static exports found */
  22181. /***/ (function(module, exports, __webpack_require__) {
  22182. "use strict";
  22183. /* WEBPACK VAR INJECTION */(function(uni) {
  22184. Object.defineProperty(exports, "__esModule", {
  22185. value: true
  22186. });
  22187. exports.default = void 0;
  22188. var _default = {
  22189. props: {
  22190. // 头像图片路径(不能为相对路径)
  22191. src: {
  22192. type: String,
  22193. default: uni.$u.props.avatar.src
  22194. },
  22195. // 头像形状,circle-圆形,square-方形
  22196. shape: {
  22197. type: String,
  22198. default: uni.$u.props.avatar.shape
  22199. },
  22200. // 头像尺寸
  22201. size: {
  22202. type: [String, Number],
  22203. default: uni.$u.props.avatar.size
  22204. },
  22205. // 裁剪模式
  22206. mode: {
  22207. type: String,
  22208. default: uni.$u.props.avatar.mode
  22209. },
  22210. // 显示的文字
  22211. text: {
  22212. type: String,
  22213. default: uni.$u.props.avatar.text
  22214. },
  22215. // 背景色
  22216. bgColor: {
  22217. type: String,
  22218. default: uni.$u.props.avatar.bgColor
  22219. },
  22220. // 文字颜色
  22221. color: {
  22222. type: String,
  22223. default: uni.$u.props.avatar.color
  22224. },
  22225. // 文字大小
  22226. fontSize: {
  22227. type: [String, Number],
  22228. default: uni.$u.props.avatar.fontSize
  22229. },
  22230. // 显示的图标
  22231. icon: {
  22232. type: String,
  22233. default: uni.$u.props.avatar.icon
  22234. },
  22235. // 显示小程序头像,只对百度,微信,QQ小程序有效
  22236. mpAvatar: {
  22237. type: Boolean,
  22238. default: uni.$u.props.avatar.mpAvatar
  22239. },
  22240. // 是否使用随机背景色
  22241. randomBgColor: {
  22242. type: Boolean,
  22243. default: uni.$u.props.avatar.randomBgColor
  22244. },
  22245. // 加载失败的默认头像(组件有内置默认图片)
  22246. defaultUrl: {
  22247. type: String,
  22248. default: uni.$u.props.avatar.defaultUrl
  22249. },
  22250. // 如果配置了randomBgColor为true,且配置了此值,则从默认的背景色数组中取出对应索引的颜色值,取值0-19之间
  22251. colorIndex: {
  22252. type: [String, Number],
  22253. // 校验参数规则,索引在0-19之间
  22254. validator: function validator(n) {
  22255. return uni.$u.test.range(n, [0, 19]) || n === '';
  22256. },
  22257. default: uni.$u.props.avatar.colorIndex
  22258. },
  22259. // 组件标识符
  22260. name: {
  22261. type: String,
  22262. default: uni.$u.props.avatar.name
  22263. }
  22264. }
  22265. };
  22266. exports.default = _default;
  22267. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22268. /***/ }),
  22269. /* 451 */,
  22270. /* 452 */,
  22271. /* 453 */,
  22272. /* 454 */,
  22273. /* 455 */,
  22274. /* 456 */,
  22275. /* 457 */,
  22276. /* 458 */
  22277. /*!******************************************************************************************!*\
  22278. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-badge/props.js ***!
  22279. \******************************************************************************************/
  22280. /*! no static exports found */
  22281. /***/ (function(module, exports, __webpack_require__) {
  22282. "use strict";
  22283. /* WEBPACK VAR INJECTION */(function(uni) {
  22284. Object.defineProperty(exports, "__esModule", {
  22285. value: true
  22286. });
  22287. exports.default = void 0;
  22288. var _default = {
  22289. props: {
  22290. // 是否显示圆点
  22291. isDot: {
  22292. type: Boolean,
  22293. default: uni.$u.props.badge.isDot
  22294. },
  22295. // 显示的内容
  22296. value: {
  22297. type: [Number, String],
  22298. default: uni.$u.props.badge.value
  22299. },
  22300. // 是否显示
  22301. show: {
  22302. type: Boolean,
  22303. default: uni.$u.props.badge.show
  22304. },
  22305. // 最大值,超过最大值会显示 '{max}+'
  22306. max: {
  22307. type: [Number, String],
  22308. default: uni.$u.props.badge.max
  22309. },
  22310. // 主题类型,error|warning|success|primary
  22311. type: {
  22312. type: String,
  22313. default: uni.$u.props.badge.type
  22314. },
  22315. // 当数值为 0 时,是否展示 Badge
  22316. showZero: {
  22317. type: Boolean,
  22318. default: uni.$u.props.badge.showZero
  22319. },
  22320. // 背景颜色,优先级比type高,如设置,type参数会失效
  22321. bgColor: {
  22322. type: [String, null],
  22323. default: uni.$u.props.badge.bgColor
  22324. },
  22325. // 字体颜色
  22326. color: {
  22327. type: [String, null],
  22328. default: uni.$u.props.badge.color
  22329. },
  22330. // 徽标形状,circle-四角均为圆角,horn-左下角为直角
  22331. shape: {
  22332. type: String,
  22333. default: uni.$u.props.badge.shape
  22334. },
  22335. // 设置数字的显示方式,overflow|ellipsis|limit
  22336. // overflow会根据max字段判断,超出显示`${max}+`
  22337. // ellipsis会根据max判断,超出显示`${max}...`
  22338. // limit会依据1000作为判断条件,超出1000,显示`${value/1000}K`,比如2.2k、3.34w,最多保留2位小数
  22339. numberType: {
  22340. type: String,
  22341. default: uni.$u.props.badge.numberType
  22342. },
  22343. // 设置badge的位置偏移,格式为 [x, y],也即设置的为top和right的值,absolute为true时有效
  22344. offset: {
  22345. type: Array,
  22346. default: uni.$u.props.badge.offset
  22347. },
  22348. // 是否反转背景和字体颜色
  22349. inverted: {
  22350. type: Boolean,
  22351. default: uni.$u.props.badge.inverted
  22352. },
  22353. // 是否绝对定位
  22354. absolute: {
  22355. type: Boolean,
  22356. default: uni.$u.props.badge.absolute
  22357. }
  22358. }
  22359. };
  22360. exports.default = _default;
  22361. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22362. /***/ }),
  22363. /* 459 */,
  22364. /* 460 */,
  22365. /* 461 */,
  22366. /* 462 */,
  22367. /* 463 */,
  22368. /* 464 */,
  22369. /* 465 */,
  22370. /* 466 */
  22371. /*!*******************************************************************************************!*\
  22372. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-navbar/props.js ***!
  22373. \*******************************************************************************************/
  22374. /*! no static exports found */
  22375. /***/ (function(module, exports, __webpack_require__) {
  22376. "use strict";
  22377. /* WEBPACK VAR INJECTION */(function(uni) {
  22378. Object.defineProperty(exports, "__esModule", {
  22379. value: true
  22380. });
  22381. exports.default = void 0;
  22382. var _default = {
  22383. props: {
  22384. // 是否开启顶部安全区适配
  22385. safeAreaInsetTop: {
  22386. type: Boolean,
  22387. default: uni.$u.props.navbar.safeAreaInsetTop
  22388. },
  22389. // 固定在顶部时,是否生成一个等高元素,以防止塌陷
  22390. placeholder: {
  22391. type: Boolean,
  22392. default: uni.$u.props.navbar.placeholder
  22393. },
  22394. // 是否固定在顶部
  22395. fixed: {
  22396. type: Boolean,
  22397. default: uni.$u.props.navbar.fixed
  22398. },
  22399. // 是否显示下边框
  22400. border: {
  22401. type: Boolean,
  22402. default: uni.$u.props.navbar.border
  22403. },
  22404. // 左边的图标
  22405. leftIcon: {
  22406. type: String,
  22407. default: uni.$u.props.navbar.leftIcon
  22408. },
  22409. // 左边的提示文字
  22410. leftText: {
  22411. type: String,
  22412. default: uni.$u.props.navbar.leftText
  22413. },
  22414. // 左右的提示文字
  22415. rightText: {
  22416. type: String,
  22417. default: uni.$u.props.navbar.rightText
  22418. },
  22419. // 右边的图标
  22420. rightIcon: {
  22421. type: String,
  22422. default: uni.$u.props.navbar.rightIcon
  22423. },
  22424. // 标题
  22425. title: {
  22426. type: [String, Number],
  22427. default: uni.$u.props.navbar.title
  22428. },
  22429. // 背景颜色
  22430. bgColor: {
  22431. type: String,
  22432. default: uni.$u.props.navbar.bgColor
  22433. },
  22434. // 标题的宽度
  22435. titleWidth: {
  22436. type: [String, Number],
  22437. default: uni.$u.props.navbar.titleWidth
  22438. },
  22439. // 导航栏高度
  22440. height: {
  22441. type: [String, Number],
  22442. default: uni.$u.props.navbar.height
  22443. },
  22444. // 左侧返回图标的大小
  22445. leftIconSize: {
  22446. type: [String, Number],
  22447. default: uni.$u.props.navbar.leftIconSize
  22448. },
  22449. // 左侧返回图标的颜色
  22450. leftIconColor: {
  22451. type: String,
  22452. default: uni.$u.props.navbar.leftIconColor
  22453. },
  22454. // 点击左侧区域(返回图标),是否自动返回上一页
  22455. autoBack: {
  22456. type: Boolean,
  22457. default: uni.$u.props.navbar.autoBack
  22458. },
  22459. // 标题的样式,对象或字符串
  22460. titleStyle: {
  22461. type: [String, Object],
  22462. default: uni.$u.props.navbar.titleStyle
  22463. }
  22464. }
  22465. };
  22466. exports.default = _default;
  22467. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22468. /***/ }),
  22469. /* 467 */,
  22470. /* 468 */,
  22471. /* 469 */,
  22472. /* 470 */,
  22473. /* 471 */,
  22474. /* 472 */,
  22475. /* 473 */,
  22476. /* 474 */
  22477. /*!***********************************************************************************************!*\
  22478. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-cell-group/props.js ***!
  22479. \***********************************************************************************************/
  22480. /*! no static exports found */
  22481. /***/ (function(module, exports, __webpack_require__) {
  22482. "use strict";
  22483. /* WEBPACK VAR INJECTION */(function(uni) {
  22484. Object.defineProperty(exports, "__esModule", {
  22485. value: true
  22486. });
  22487. exports.default = void 0;
  22488. var _default = {
  22489. props: {
  22490. // 分组标题
  22491. title: {
  22492. type: String,
  22493. default: uni.$u.props.cellGroup.title
  22494. },
  22495. // 是否显示外边框
  22496. border: {
  22497. type: Boolean,
  22498. default: uni.$u.props.cellGroup.border
  22499. }
  22500. }
  22501. };
  22502. exports.default = _default;
  22503. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22504. /***/ }),
  22505. /* 475 */,
  22506. /* 476 */,
  22507. /* 477 */,
  22508. /* 478 */,
  22509. /* 479 */,
  22510. /* 480 */,
  22511. /* 481 */,
  22512. /* 482 */
  22513. /*!*******************************************************************************************!*\
  22514. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-upload/utils.js ***!
  22515. \*******************************************************************************************/
  22516. /*! no static exports found */
  22517. /***/ (function(module, exports, __webpack_require__) {
  22518. "use strict";
  22519. /* WEBPACK VAR INJECTION */(function(uni, wx) {
  22520. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  22521. Object.defineProperty(exports, "__esModule", {
  22522. value: true
  22523. });
  22524. exports.chooseFile = chooseFile;
  22525. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  22526. 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; }
  22527. 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; }
  22528. function pickExclude(obj, keys) {
  22529. // 某些情况下,type可能会为
  22530. if (!['[object Object]', '[object File]'].includes(Object.prototype.toString.call(obj))) {
  22531. return {};
  22532. }
  22533. return Object.keys(obj).reduce(function (prev, key) {
  22534. if (!keys.includes(key)) {
  22535. prev[key] = obj[key];
  22536. }
  22537. return prev;
  22538. }, {});
  22539. }
  22540. function formatImage(res) {
  22541. return res.tempFiles.map(function (item) {
  22542. return _objectSpread(_objectSpread({}, pickExclude(item, ['path'])), {}, {
  22543. type: 'image',
  22544. url: item.path,
  22545. thumb: item.path,
  22546. size: item.size
  22547. });
  22548. });
  22549. }
  22550. function formatVideo(res) {
  22551. return [_objectSpread(_objectSpread({}, pickExclude(res, ['tempFilePath', 'thumbTempFilePath', 'errMsg'])), {}, {
  22552. type: 'video',
  22553. url: res.tempFilePath,
  22554. thumb: res.thumbTempFilePath,
  22555. size: res.size
  22556. })];
  22557. }
  22558. function formatMedia(res) {
  22559. return res.tempFiles.map(function (item) {
  22560. return _objectSpread(_objectSpread({}, pickExclude(item, ['fileType', 'thumbTempFilePath', 'tempFilePath'])), {}, {
  22561. type: res.type,
  22562. url: item.tempFilePath,
  22563. thumb: res.type === 'video' ? item.thumbTempFilePath : item.tempFilePath,
  22564. size: item.size
  22565. });
  22566. });
  22567. }
  22568. function formatFile(res) {
  22569. return res.tempFiles.map(function (item) {
  22570. return _objectSpread(_objectSpread({}, pickExclude(item, ['path'])), {}, {
  22571. url: item.path,
  22572. size: item.size
  22573. });
  22574. });
  22575. }
  22576. function chooseFile(_ref) {
  22577. var accept = _ref.accept,
  22578. multiple = _ref.multiple,
  22579. capture = _ref.capture,
  22580. compressed = _ref.compressed,
  22581. maxDuration = _ref.maxDuration,
  22582. sizeType = _ref.sizeType,
  22583. camera = _ref.camera,
  22584. maxCount = _ref.maxCount;
  22585. return new Promise(function (resolve, reject) {
  22586. switch (accept) {
  22587. case 'image':
  22588. uni.chooseImage({
  22589. count: multiple ? Math.min(maxCount, 9) : 1,
  22590. sourceType: capture,
  22591. sizeType: sizeType,
  22592. success: function success(res) {
  22593. return resolve(formatImage(res));
  22594. },
  22595. fail: reject
  22596. });
  22597. break;
  22598. // 只有微信小程序才支持chooseMedia接口
  22599. case 'media':
  22600. wx.chooseMedia({
  22601. count: multiple ? Math.min(maxCount, 9) : 1,
  22602. sourceType: capture,
  22603. maxDuration: maxDuration,
  22604. sizeType: sizeType,
  22605. camera: camera,
  22606. success: function success(res) {
  22607. return resolve(formatMedia(res));
  22608. },
  22609. fail: reject
  22610. });
  22611. break;
  22612. case 'video':
  22613. uni.chooseVideo({
  22614. sourceType: capture,
  22615. compressed: compressed,
  22616. maxDuration: maxDuration,
  22617. camera: camera,
  22618. success: function success(res) {
  22619. return resolve(formatVideo(res));
  22620. },
  22621. fail: reject
  22622. });
  22623. break;
  22624. // 只有微信小程序才支持chooseMessageFile接口
  22625. case 'file':
  22626. wx.chooseMessageFile({
  22627. count: multiple ? maxCount : 1,
  22628. type: accept,
  22629. success: function success(res) {
  22630. return resolve(formatFile(res));
  22631. },
  22632. fail: reject
  22633. });
  22634. break;
  22635. default:
  22636. // 此为保底选项,在accept不为上面任意一项的时候选取全部文件
  22637. wx.chooseMessageFile({
  22638. count: multiple ? maxCount : 1,
  22639. type: 'all',
  22640. success: function success(res) {
  22641. return resolve(formatFile(res));
  22642. },
  22643. fail: reject
  22644. });
  22645. }
  22646. });
  22647. }
  22648. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  22649. /***/ }),
  22650. /* 483 */
  22651. /*!*******************************************************************************************!*\
  22652. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-upload/mixin.js ***!
  22653. \*******************************************************************************************/
  22654. /*! no static exports found */
  22655. /***/ (function(module, exports, __webpack_require__) {
  22656. "use strict";
  22657. Object.defineProperty(exports, "__esModule", {
  22658. value: true
  22659. });
  22660. exports.default = void 0;
  22661. var _default = {
  22662. watch: {
  22663. // 监听accept的变化,判断是否符合个平台要求
  22664. // 只有微信小程序才支持选择媒体,文件类型,所以这里做一个判断提示
  22665. accept: {
  22666. immediate: true,
  22667. handler: function handler(val) {}
  22668. }
  22669. }
  22670. };
  22671. exports.default = _default;
  22672. /***/ }),
  22673. /* 484 */
  22674. /*!*******************************************************************************************!*\
  22675. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-upload/props.js ***!
  22676. \*******************************************************************************************/
  22677. /*! no static exports found */
  22678. /***/ (function(module, exports, __webpack_require__) {
  22679. "use strict";
  22680. /* WEBPACK VAR INJECTION */(function(uni) {
  22681. Object.defineProperty(exports, "__esModule", {
  22682. value: true
  22683. });
  22684. exports.default = void 0;
  22685. var _default = {
  22686. props: {
  22687. // 接受的文件类型, 可选值为all media image file video
  22688. accept: {
  22689. type: String,
  22690. default: uni.$u.props.upload.accept
  22691. },
  22692. // 图片或视频拾取模式,当accept为image类型时设置capture可选额外camera可以直接调起摄像头
  22693. capture: {
  22694. type: [String, Array],
  22695. default: uni.$u.props.upload.capture
  22696. },
  22697. // 当accept为video时生效,是否压缩视频,默认为true
  22698. compressed: {
  22699. type: Boolean,
  22700. default: uni.$u.props.upload.compressed
  22701. },
  22702. // 当accept为video时生效,可选值为back或front
  22703. camera: {
  22704. type: String,
  22705. default: uni.$u.props.upload.camera
  22706. },
  22707. // 当accept为video时生效,拍摄视频最长拍摄时间,单位秒
  22708. maxDuration: {
  22709. type: Number,
  22710. default: uni.$u.props.upload.maxDuration
  22711. },
  22712. // 上传区域的图标,只能内置图标
  22713. uploadIcon: {
  22714. type: String,
  22715. default: uni.$u.props.upload.uploadIcon
  22716. },
  22717. // 上传区域的图标的颜色,默认
  22718. uploadIconColor: {
  22719. type: String,
  22720. default: uni.$u.props.upload.uploadIconColor
  22721. },
  22722. // 是否开启文件读取前事件
  22723. useBeforeRead: {
  22724. type: Boolean,
  22725. default: uni.$u.props.upload.useBeforeRead
  22726. },
  22727. // 读取后的处理函数
  22728. afterRead: {
  22729. type: Function,
  22730. default: null
  22731. },
  22732. // 读取前的处理函数
  22733. beforeRead: {
  22734. type: Function,
  22735. default: null
  22736. },
  22737. // 是否显示组件自带的图片预览功能
  22738. previewFullImage: {
  22739. type: Boolean,
  22740. default: uni.$u.props.upload.previewFullImage
  22741. },
  22742. // 最大上传数量
  22743. maxCount: {
  22744. type: [String, Number],
  22745. default: uni.$u.props.upload.maxCount
  22746. },
  22747. // 是否启用
  22748. disabled: {
  22749. type: Boolean,
  22750. default: uni.$u.props.upload.disabled
  22751. },
  22752. // 预览上传的图片时的裁剪模式,和image组件mode属性一致
  22753. imageMode: {
  22754. type: String,
  22755. default: uni.$u.props.upload.imageMode
  22756. },
  22757. // 标识符,可以在回调函数的第二项参数中获取
  22758. name: {
  22759. type: String,
  22760. default: uni.$u.props.upload.name
  22761. },
  22762. // 所选的图片的尺寸, 可选值为original compressed
  22763. sizeType: {
  22764. type: Array,
  22765. default: uni.$u.props.upload.sizeType
  22766. },
  22767. // 是否开启图片多选,部分安卓机型不支持
  22768. multiple: {
  22769. type: Boolean,
  22770. default: uni.$u.props.upload.multiple
  22771. },
  22772. // 是否展示删除按钮
  22773. deletable: {
  22774. type: Boolean,
  22775. default: uni.$u.props.upload.deletable
  22776. },
  22777. // 文件大小限制,单位为byte
  22778. maxSize: {
  22779. type: [String, Number],
  22780. default: uni.$u.props.upload.maxSize
  22781. },
  22782. // 显示已上传的文件列表
  22783. fileList: {
  22784. type: Array,
  22785. default: uni.$u.props.upload.fileList
  22786. },
  22787. // 上传区域的提示文字
  22788. uploadText: {
  22789. type: String,
  22790. default: uni.$u.props.upload.uploadText
  22791. },
  22792. // 内部预览图片区域和选择图片按钮的区域宽度
  22793. width: {
  22794. type: [String, Number],
  22795. default: uni.$u.props.upload.width
  22796. },
  22797. // 内部预览图片区域和选择图片按钮的区域高度
  22798. height: {
  22799. type: [String, Number],
  22800. default: uni.$u.props.upload.height
  22801. },
  22802. // 是否在上传完成后展示预览图
  22803. previewImage: {
  22804. type: Boolean,
  22805. default: uni.$u.props.upload.previewImage
  22806. }
  22807. }
  22808. };
  22809. exports.default = _default;
  22810. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22811. /***/ }),
  22812. /* 485 */,
  22813. /* 486 */,
  22814. /* 487 */,
  22815. /* 488 */,
  22816. /* 489 */,
  22817. /* 490 */,
  22818. /* 491 */,
  22819. /* 492 */
  22820. /*!*****************************************************************************************!*\
  22821. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-cell/props.js ***!
  22822. \*****************************************************************************************/
  22823. /*! no static exports found */
  22824. /***/ (function(module, exports, __webpack_require__) {
  22825. "use strict";
  22826. /* WEBPACK VAR INJECTION */(function(uni) {
  22827. Object.defineProperty(exports, "__esModule", {
  22828. value: true
  22829. });
  22830. exports.default = void 0;
  22831. var _default2 = {
  22832. props: {
  22833. // 标题
  22834. title: {
  22835. type: [String, Number],
  22836. default: uni.$u.props.cell.title
  22837. },
  22838. // 标题下方的描述信息
  22839. label: {
  22840. type: [String, Number],
  22841. default: uni.$u.props.cell.label
  22842. },
  22843. // 右侧的内容
  22844. value: {
  22845. type: [String, Number],
  22846. default: uni.$u.props.cell.value
  22847. },
  22848. // 左侧图标名称,或者图片链接(本地文件建议使用绝对地址)
  22849. icon: {
  22850. type: String,
  22851. default: uni.$u.props.cell.icon
  22852. },
  22853. // 是否禁用cell
  22854. disabled: {
  22855. type: Boolean,
  22856. default: uni.$u.props.cell.disabled
  22857. },
  22858. // 是否显示下边框
  22859. border: {
  22860. type: Boolean,
  22861. default: uni.$u.props.cell.border
  22862. },
  22863. // 内容是否垂直居中(主要是针对右侧的value部分)
  22864. center: {
  22865. type: Boolean,
  22866. default: uni.$u.props.cell.center
  22867. },
  22868. // 点击后跳转的URL地址
  22869. url: {
  22870. type: String,
  22871. default: uni.$u.props.cell.url
  22872. },
  22873. // 链接跳转的方式,内部使用的是uView封装的route方法,可能会进行拦截操作
  22874. linkType: {
  22875. type: String,
  22876. default: uni.$u.props.cell.linkType
  22877. },
  22878. // 是否开启点击反馈(表现为点击时加上灰色背景)
  22879. clickable: {
  22880. type: Boolean,
  22881. default: uni.$u.props.cell.clickable
  22882. },
  22883. // 是否展示右侧箭头并开启点击反馈
  22884. isLink: {
  22885. type: Boolean,
  22886. default: uni.$u.props.cell.isLink
  22887. },
  22888. // 是否显示表单状态下的必填星号(此组件可能会内嵌入input组件)
  22889. required: {
  22890. type: Boolean,
  22891. default: uni.$u.props.cell.required
  22892. },
  22893. // 右侧的图标箭头
  22894. rightIcon: {
  22895. type: String,
  22896. default: uni.$u.props.cell.rightIcon
  22897. },
  22898. // 右侧箭头的方向,可选值为:left,up,down
  22899. arrowDirection: {
  22900. type: String,
  22901. default: uni.$u.props.cell.arrowDirection
  22902. },
  22903. // 左侧图标样式
  22904. iconStyle: {
  22905. type: [Object, String],
  22906. default: function _default() {
  22907. return uni.$u.props.cell.iconStyle;
  22908. }
  22909. },
  22910. // 右侧箭头图标的样式
  22911. rightIconStyle: {
  22912. type: [Object, String],
  22913. default: function _default() {
  22914. return uni.$u.props.cell.rightIconStyle;
  22915. }
  22916. },
  22917. // 标题的样式
  22918. titleStyle: {
  22919. type: [Object, String],
  22920. default: function _default() {
  22921. return uni.$u.props.cell.titleStyle;
  22922. }
  22923. },
  22924. // 单位元的大小,可选值为large
  22925. size: {
  22926. type: String,
  22927. default: uni.$u.props.cell.size
  22928. },
  22929. // 点击cell是否阻止事件传播
  22930. stop: {
  22931. type: Boolean,
  22932. default: uni.$u.props.cell.stop
  22933. },
  22934. // 标识符,cell被点击时返回
  22935. name: {
  22936. type: [Number, String],
  22937. default: uni.$u.props.cell.name
  22938. }
  22939. }
  22940. };
  22941. exports.default = _default2;
  22942. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22943. /***/ }),
  22944. /* 493 */,
  22945. /* 494 */,
  22946. /* 495 */,
  22947. /* 496 */,
  22948. /* 497 */,
  22949. /* 498 */,
  22950. /* 499 */,
  22951. /* 500 */
  22952. /*!****************************************************************************************************!*\
  22953. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-datetime-picker/props.js ***!
  22954. \****************************************************************************************************/
  22955. /*! no static exports found */
  22956. /***/ (function(module, exports, __webpack_require__) {
  22957. "use strict";
  22958. /* WEBPACK VAR INJECTION */(function(uni) {
  22959. Object.defineProperty(exports, "__esModule", {
  22960. value: true
  22961. });
  22962. exports.default = void 0;
  22963. var _default = {
  22964. props: {
  22965. // 是否打开组件
  22966. show: {
  22967. type: Boolean,
  22968. default: uni.$u.props.datetimePicker.show
  22969. },
  22970. // 是否展示顶部的操作栏
  22971. showToolbar: {
  22972. type: Boolean,
  22973. default: uni.$u.props.datetimePicker.showToolbar
  22974. },
  22975. // 绑定值
  22976. value: {
  22977. type: [String, Number],
  22978. default: uni.$u.props.datetimePicker.value
  22979. },
  22980. // 顶部标题
  22981. title: {
  22982. type: String,
  22983. default: uni.$u.props.datetimePicker.title
  22984. },
  22985. // 展示格式,mode=date为日期选择,mode=time为时间选择,mode=year-month为年月选择,mode=datetime为日期时间选择
  22986. mode: {
  22987. type: String,
  22988. default: uni.$u.props.datetimePicker.mode
  22989. },
  22990. // 可选的最大时间
  22991. maxDate: {
  22992. type: Number,
  22993. // 最大默认值为后10年
  22994. default: uni.$u.props.datetimePicker.maxDate
  22995. },
  22996. // 可选的最小时间
  22997. minDate: {
  22998. type: Number,
  22999. // 最小默认值为前10年
  23000. default: uni.$u.props.datetimePicker.minDate
  23001. },
  23002. // 可选的最小小时,仅mode=time有效
  23003. minHour: {
  23004. type: Number,
  23005. default: uni.$u.props.datetimePicker.minHour
  23006. },
  23007. // 可选的最大小时,仅mode=time有效
  23008. maxHour: {
  23009. type: Number,
  23010. default: uni.$u.props.datetimePicker.maxHour
  23011. },
  23012. // 可选的最小分钟,仅mode=time有效
  23013. minMinute: {
  23014. type: Number,
  23015. default: uni.$u.props.datetimePicker.minMinute
  23016. },
  23017. // 可选的最大分钟,仅mode=time有效
  23018. maxMinute: {
  23019. type: Number,
  23020. default: uni.$u.props.datetimePicker.maxMinute
  23021. },
  23022. // 选项过滤函数
  23023. filter: {
  23024. type: [Function, null],
  23025. default: uni.$u.props.datetimePicker.filter
  23026. },
  23027. // 选项格式化函数
  23028. formatter: {
  23029. type: [Function, null],
  23030. default: uni.$u.props.datetimePicker.formatter
  23031. },
  23032. // 是否显示加载中状态
  23033. loading: {
  23034. type: Boolean,
  23035. default: uni.$u.props.datetimePicker.loading
  23036. },
  23037. // 各列中,单个选项的高度
  23038. itemHeight: {
  23039. type: [String, Number],
  23040. default: uni.$u.props.datetimePicker.itemHeight
  23041. },
  23042. // 取消按钮的文字
  23043. cancelText: {
  23044. type: String,
  23045. default: uni.$u.props.datetimePicker.cancelText
  23046. },
  23047. // 确认按钮的文字
  23048. confirmText: {
  23049. type: String,
  23050. default: uni.$u.props.datetimePicker.confirmText
  23051. },
  23052. // 取消按钮的颜色
  23053. cancelColor: {
  23054. type: String,
  23055. default: uni.$u.props.datetimePicker.cancelColor
  23056. },
  23057. // 确认按钮的颜色
  23058. confirmColor: {
  23059. type: String,
  23060. default: uni.$u.props.datetimePicker.confirmColor
  23061. },
  23062. // 每列中可见选项的数量
  23063. visibleItemCount: {
  23064. type: [String, Number],
  23065. default: uni.$u.props.datetimePicker.visibleItemCount
  23066. },
  23067. // 是否允许点击遮罩关闭选择器
  23068. closeOnClickOverlay: {
  23069. type: Boolean,
  23070. default: uni.$u.props.datetimePicker.closeOnClickOverlay
  23071. },
  23072. // 各列的默认索引
  23073. defaultIndex: {
  23074. type: Array,
  23075. default: uni.$u.props.datetimePicker.defaultIndex
  23076. }
  23077. }
  23078. };
  23079. exports.default = _default;
  23080. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23081. /***/ }),
  23082. /* 501 */
  23083. /*!*********************************************************************************!*\
  23084. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/util/dayjs.js ***!
  23085. \*********************************************************************************/
  23086. /*! no static exports found */
  23087. /***/ (function(module, exports, __webpack_require__) {
  23088. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23089. !function (t, e) {
  23090. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' ? module.exports = e() : true ? !(__WEBPACK_AMD_DEFINE_FACTORY__ = (e),
  23091. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23092. (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
  23093. __WEBPACK_AMD_DEFINE_FACTORY__),
  23094. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23095. }(this, function () {
  23096. 'use strict';
  23097. var t = 'millisecond';
  23098. var e = 'second';
  23099. var n = 'minute';
  23100. var r = 'hour';
  23101. var i = 'day';
  23102. var s = 'week';
  23103. var u = 'month';
  23104. var a = 'quarter';
  23105. var o = 'year';
  23106. var f = 'date';
  23107. var h = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d+)?$/;
  23108. var c = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;
  23109. var d = {
  23110. name: 'en',
  23111. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  23112. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_')
  23113. };
  23114. var $ = function $(t, e, n) {
  23115. var r = String(t);
  23116. return !r || r.length >= e ? t : "".concat(Array(e + 1 - r.length).join(n)).concat(t);
  23117. };
  23118. var l = {
  23119. s: $,
  23120. z: function z(t) {
  23121. var e = -t.utcOffset();
  23122. var n = Math.abs(e);
  23123. var r = Math.floor(n / 60);
  23124. var i = n % 60;
  23125. return "".concat((e <= 0 ? '+' : '-') + $(r, 2, '0'), ":").concat($(i, 2, '0'));
  23126. },
  23127. m: function t(e, n) {
  23128. if (e.date() < n.date()) return -t(n, e);
  23129. var r = 12 * (n.year() - e.year()) + (n.month() - e.month());
  23130. var i = e.clone().add(r, u);
  23131. var s = n - i < 0;
  23132. var a = e.clone().add(r + (s ? -1 : 1), u);
  23133. return +(-(r + (n - i) / (s ? i - a : a - i)) || 0);
  23134. },
  23135. a: function a(t) {
  23136. return t < 0 ? Math.ceil(t) || 0 : Math.floor(t);
  23137. },
  23138. p: function p(h) {
  23139. return {
  23140. M: u,
  23141. y: o,
  23142. w: s,
  23143. d: i,
  23144. D: f,
  23145. h: r,
  23146. m: n,
  23147. s: e,
  23148. ms: t,
  23149. Q: a
  23150. }[h] || String(h || '').toLowerCase().replace(/s$/, '');
  23151. },
  23152. u: function u(t) {
  23153. return void 0 === t;
  23154. }
  23155. };
  23156. var y = 'en';
  23157. var M = {};
  23158. M[y] = d;
  23159. var m = function m(t) {
  23160. return t instanceof S;
  23161. };
  23162. var D = function D(t, e, n) {
  23163. var r;
  23164. if (!t) return y;
  23165. if (typeof t === 'string') M[t] && (r = t), e && (M[t] = e, r = t);else {
  23166. var _i = t.name;
  23167. M[_i] = t, r = _i;
  23168. }
  23169. return !n && r && (y = r), r || !n && y;
  23170. };
  23171. var v = function v(t, e) {
  23172. if (m(t)) return t.clone();
  23173. var n = _typeof(e) === 'object' ? e : {};
  23174. return n.date = t, n.args = arguments, new S(n);
  23175. };
  23176. var g = l;
  23177. g.l = D, g.i = m, g.w = function (t, e) {
  23178. return v(t, {
  23179. locale: e.$L,
  23180. utc: e.$u,
  23181. x: e.$x,
  23182. $offset: e.$offset
  23183. });
  23184. };
  23185. var S = function () {
  23186. function d(t) {
  23187. this.$L = D(t.locale, null, !0), this.parse(t);
  23188. }
  23189. var $ = d.prototype;
  23190. return $.parse = function (t) {
  23191. this.$d = function (t) {
  23192. var e = t.date;
  23193. var n = t.utc;
  23194. if (e === null) return new Date(NaN);
  23195. if (g.u(e)) return new Date();
  23196. if (e instanceof Date) return new Date(e);
  23197. if (typeof e === 'string' && !/Z$/i.test(e)) {
  23198. var _r = e.match(h);
  23199. if (_r) {
  23200. var _i2 = _r[2] - 1 || 0;
  23201. var _s = (_r[7] || '0').substring(0, 3);
  23202. return n ? new Date(Date.UTC(_r[1], _i2, _r[3] || 1, _r[4] || 0, _r[5] || 0, _r[6] || 0, _s)) : new Date(_r[1], _i2, _r[3] || 1, _r[4] || 0, _r[5] || 0, _r[6] || 0, _s);
  23203. }
  23204. }
  23205. return new Date(e);
  23206. }(t), this.$x = t.x || {}, this.init();
  23207. }, $.init = function () {
  23208. var t = this.$d;
  23209. this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
  23210. }, $.$utils = function () {
  23211. return g;
  23212. }, $.isValid = function () {
  23213. return !(this.$d.toString() === 'Invalid Date');
  23214. }, $.isSame = function (t, e) {
  23215. var n = v(t);
  23216. return this.startOf(e) <= n && n <= this.endOf(e);
  23217. }, $.isAfter = function (t, e) {
  23218. return v(t) < this.startOf(e);
  23219. }, $.isBefore = function (t, e) {
  23220. return this.endOf(e) < v(t);
  23221. }, $.$g = function (t, e, n) {
  23222. return g.u(t) ? this[e] : this.set(n, t);
  23223. }, $.unix = function () {
  23224. return Math.floor(this.valueOf() / 1e3);
  23225. }, $.valueOf = function () {
  23226. return this.$d.getTime();
  23227. }, $.startOf = function (t, a) {
  23228. var h = this;
  23229. var c = !!g.u(a) || a;
  23230. var d = g.p(t);
  23231. var $ = function $(t, e) {
  23232. var n = g.w(h.$u ? Date.UTC(h.$y, e, t) : new Date(h.$y, e, t), h);
  23233. return c ? n : n.endOf(i);
  23234. };
  23235. var l = function l(t, e) {
  23236. return g.w(h.toDate()[t].apply(h.toDate('s'), (c ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e)), h);
  23237. };
  23238. var y = this.$W;
  23239. var M = this.$M;
  23240. var m = this.$D;
  23241. var D = "set".concat(this.$u ? 'UTC' : '');
  23242. switch (d) {
  23243. case o:
  23244. return c ? $(1, 0) : $(31, 11);
  23245. case u:
  23246. return c ? $(1, M) : $(0, M + 1);
  23247. case s:
  23248. var v = this.$locale().weekStart || 0;
  23249. var S = (y < v ? y + 7 : y) - v;
  23250. return $(c ? m - S : m + (6 - S), M);
  23251. case i:
  23252. case f:
  23253. return l("".concat(D, "Hours"), 0);
  23254. case r:
  23255. return l("".concat(D, "Minutes"), 1);
  23256. case n:
  23257. return l("".concat(D, "Seconds"), 2);
  23258. case e:
  23259. return l("".concat(D, "Milliseconds"), 3);
  23260. default:
  23261. return this.clone();
  23262. }
  23263. }, $.endOf = function (t) {
  23264. return this.startOf(t, !1);
  23265. }, $.$set = function (s, a) {
  23266. var h;
  23267. var c = g.p(s);
  23268. var d = "set".concat(this.$u ? 'UTC' : '');
  23269. var $ = (h = {}, h[i] = "".concat(d, "Date"), h[f] = "".concat(d, "Date"), h[u] = "".concat(d, "Month"), h[o] = "".concat(d, "FullYear"), h[r] = "".concat(d, "Hours"), h[n] = "".concat(d, "Minutes"), h[e] = "".concat(d, "Seconds"), h[t] = "".concat(d, "Milliseconds"), h)[c];
  23270. var l = c === i ? this.$D + (a - this.$W) : a;
  23271. if (c === u || c === o) {
  23272. var _y = this.clone().set(f, 1);
  23273. _y.$d[$](l), _y.init(), this.$d = _y.set(f, Math.min(this.$D, _y.daysInMonth())).$d;
  23274. } else $ && this.$d[$](l);
  23275. return this.init(), this;
  23276. }, $.set = function (t, e) {
  23277. return this.clone().$set(t, e);
  23278. }, $.get = function (t) {
  23279. return this[g.p(t)]();
  23280. }, $.add = function (t, a) {
  23281. var f;
  23282. var h = this;
  23283. t = Number(t);
  23284. var c = g.p(a);
  23285. var d = function d(e) {
  23286. var n = v(h);
  23287. return g.w(n.date(n.date() + Math.round(e * t)), h);
  23288. };
  23289. if (c === u) return this.set(u, this.$M + t);
  23290. if (c === o) return this.set(o, this.$y + t);
  23291. if (c === i) return d(1);
  23292. if (c === s) return d(7);
  23293. var $ = (f = {}, f[n] = 6e4, f[r] = 36e5, f[e] = 1e3, f)[c] || 1;
  23294. var l = this.$d.getTime() + t * $;
  23295. return g.w(l, this);
  23296. }, $.subtract = function (t, e) {
  23297. return this.add(-1 * t, e);
  23298. }, $.format = function (t) {
  23299. var e = this;
  23300. if (!this.isValid()) return 'Invalid Date';
  23301. var n = t || 'YYYY-MM-DDTHH:mm:ssZ';
  23302. var r = g.z(this);
  23303. var i = this.$locale();
  23304. var s = this.$H;
  23305. var u = this.$m;
  23306. var a = this.$M;
  23307. var o = i.weekdays;
  23308. var f = i.months;
  23309. var h = function h(t, r, i, s) {
  23310. return t && (t[r] || t(e, n)) || i[r].substr(0, s);
  23311. };
  23312. var d = function d(t) {
  23313. return g.s(s % 12 || 12, t, '0');
  23314. };
  23315. var $ = i.meridiem || function (t, e, n) {
  23316. var r = t < 12 ? 'AM' : 'PM';
  23317. return n ? r.toLowerCase() : r;
  23318. };
  23319. var l = {
  23320. YY: String(this.$y).slice(-2),
  23321. YYYY: this.$y,
  23322. M: a + 1,
  23323. MM: g.s(a + 1, 2, '0'),
  23324. MMM: h(i.monthsShort, a, f, 3),
  23325. MMMM: h(f, a),
  23326. D: this.$D,
  23327. DD: g.s(this.$D, 2, '0'),
  23328. d: String(this.$W),
  23329. dd: h(i.weekdaysMin, this.$W, o, 2),
  23330. ddd: h(i.weekdaysShort, this.$W, o, 3),
  23331. dddd: o[this.$W],
  23332. H: String(s),
  23333. HH: g.s(s, 2, '0'),
  23334. h: d(1),
  23335. hh: d(2),
  23336. a: $(s, u, !0),
  23337. A: $(s, u, !1),
  23338. m: String(u),
  23339. mm: g.s(u, 2, '0'),
  23340. s: String(this.$s),
  23341. ss: g.s(this.$s, 2, '0'),
  23342. SSS: g.s(this.$ms, 3, '0'),
  23343. Z: r
  23344. };
  23345. return n.replace(c, function (t, e) {
  23346. return e || l[t] || r.replace(':', '');
  23347. });
  23348. }, $.utcOffset = function () {
  23349. return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
  23350. }, $.diff = function (t, f, h) {
  23351. var c;
  23352. var d = g.p(f);
  23353. var $ = v(t);
  23354. var l = 6e4 * ($.utcOffset() - this.utcOffset());
  23355. var y = this - $;
  23356. var M = g.m(this, $);
  23357. return M = (c = {}, c[o] = M / 12, c[u] = M, c[a] = M / 3, c[s] = (y - l) / 6048e5, c[i] = (y - l) / 864e5, c[r] = y / 36e5, c[n] = y / 6e4, c[e] = y / 1e3, c)[d] || y, h ? M : g.a(M);
  23358. }, $.daysInMonth = function () {
  23359. return this.endOf(u).$D;
  23360. }, $.$locale = function () {
  23361. return M[this.$L];
  23362. }, $.locale = function (t, e) {
  23363. if (!t) return this.$L;
  23364. var n = this.clone();
  23365. var r = D(t, e, !0);
  23366. return r && (n.$L = r), n;
  23367. }, $.clone = function () {
  23368. return g.w(this.$d, this);
  23369. }, $.toDate = function () {
  23370. return new Date(this.valueOf());
  23371. }, $.toJSON = function () {
  23372. return this.isValid() ? this.toISOString() : null;
  23373. }, $.toISOString = function () {
  23374. return this.$d.toISOString();
  23375. }, $.toString = function () {
  23376. return this.$d.toUTCString();
  23377. }, d;
  23378. }();
  23379. var p = S.prototype;
  23380. return v.prototype = p, [['$ms', t], ['$s', e], ['$m', n], ['$H', r], ['$W', i], ['$M', u], ['$y', o], ['$D', f]].forEach(function (t) {
  23381. p[t[1]] = function (e) {
  23382. return this.$g(e, t[0], t[1]);
  23383. };
  23384. }), v.extend = function (t, e) {
  23385. return t.$i || (t(e, S, v), t.$i = !0), v;
  23386. }, v.locale = D, v.isDayjs = m, v.unix = function (t) {
  23387. return v(1e3 * t);
  23388. }, v.en = M[y], v.Ls = M, v.p = {}, v;
  23389. });
  23390. /***/ }),
  23391. /* 502 */,
  23392. /* 503 */,
  23393. /* 504 */,
  23394. /* 505 */,
  23395. /* 506 */,
  23396. /* 507 */,
  23397. /* 508 */,
  23398. /* 509 */,
  23399. /* 510 */,
  23400. /* 511 */,
  23401. /* 512 */,
  23402. /* 513 */,
  23403. /* 514 */
  23404. /*!******************************************************************************************!*\
  23405. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-input/props.js ***!
  23406. \******************************************************************************************/
  23407. /*! no static exports found */
  23408. /***/ (function(module, exports, __webpack_require__) {
  23409. "use strict";
  23410. /* WEBPACK VAR INJECTION */(function(uni) {
  23411. Object.defineProperty(exports, "__esModule", {
  23412. value: true
  23413. });
  23414. exports.default = void 0;
  23415. var _default = {
  23416. props: {
  23417. // 输入的值
  23418. value: {
  23419. type: [String, Number],
  23420. default: uni.$u.props.input.value
  23421. },
  23422. // 输入框类型
  23423. // number-数字输入键盘,app-vue下可以输入浮点数,app-nvue和小程序平台下只能输入整数
  23424. // idcard-身份证输入键盘,微信、支付宝、百度、QQ小程序
  23425. // digit-带小数点的数字键盘,App的nvue页面、微信、支付宝、百度、头条、QQ小程序
  23426. // text-文本输入键盘
  23427. type: {
  23428. type: String,
  23429. default: uni.$u.props.input.type
  23430. },
  23431. // 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true,
  23432. // 兼容性:微信小程序、百度小程序、字节跳动小程序、QQ小程序
  23433. fixed: {
  23434. type: Boolean,
  23435. default: uni.$u.props.input.fixed
  23436. },
  23437. // 是否禁用输入框
  23438. disabled: {
  23439. type: Boolean,
  23440. default: uni.$u.props.input.disabled
  23441. },
  23442. // 禁用状态时的背景色
  23443. disabledColor: {
  23444. type: String,
  23445. default: uni.$u.props.input.disabledColor
  23446. },
  23447. // 是否显示清除控件
  23448. clearable: {
  23449. type: Boolean,
  23450. default: uni.$u.props.input.clearable
  23451. },
  23452. // 是否密码类型
  23453. password: {
  23454. type: Boolean,
  23455. default: uni.$u.props.input.password
  23456. },
  23457. // 最大输入长度,设置为 -1 的时候不限制最大长度
  23458. maxlength: {
  23459. type: [String, Number],
  23460. default: uni.$u.props.input.maxlength
  23461. },
  23462. // 输入框为空时的占位符
  23463. placeholder: {
  23464. type: String,
  23465. default: uni.$u.props.input.placeholder
  23466. },
  23467. // 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
  23468. placeholderClass: {
  23469. type: String,
  23470. default: uni.$u.props.input.placeholderClass
  23471. },
  23472. // 指定placeholder的样式
  23473. placeholderStyle: {
  23474. type: [String, Object],
  23475. default: uni.$u.props.input.placeholderStyle
  23476. },
  23477. // 是否显示输入字数统计,只在 type ="text"或type ="textarea"时有效
  23478. showWordLimit: {
  23479. type: Boolean,
  23480. default: uni.$u.props.input.showWordLimit
  23481. },
  23482. // 设置右下角按钮的文字,有效值:send|search|next|go|done,兼容性详见uni-app文档
  23483. // https://uniapp.dcloud.io/component/input
  23484. // https://uniapp.dcloud.io/component/textarea
  23485. confirmType: {
  23486. type: String,
  23487. default: uni.$u.props.input.confirmType
  23488. },
  23489. // 点击键盘右下角按钮时是否保持键盘不收起,H5无效
  23490. confirmHold: {
  23491. type: Boolean,
  23492. default: uni.$u.props.input.confirmHold
  23493. },
  23494. // focus时,点击页面的时候不收起键盘,微信小程序有效
  23495. holdKeyboard: {
  23496. type: Boolean,
  23497. default: uni.$u.props.input.holdKeyboard
  23498. },
  23499. // 自动获取焦点
  23500. // 在 H5 平台能否聚焦以及软键盘是否跟随弹出,取决于当前浏览器本身的实现。nvue 页面不支持,需使用组件的 focus()、blur() 方法控制焦点
  23501. focus: {
  23502. type: Boolean,
  23503. default: uni.$u.props.input.focus
  23504. },
  23505. // 键盘收起时,是否自动失去焦点,目前仅App3.0.0+有效
  23506. autoBlur: {
  23507. type: Boolean,
  23508. default: uni.$u.props.input.autoBlur
  23509. },
  23510. // 是否去掉 iOS 下的默认内边距,仅微信小程序,且type=textarea时有效
  23511. disableDefaultPadding: {
  23512. type: Boolean,
  23513. default: uni.$u.props.input.disableDefaultPadding
  23514. },
  23515. // 指定focus时光标的位置
  23516. cursor: {
  23517. type: [String, Number],
  23518. default: uni.$u.props.input.cursor
  23519. },
  23520. // 输入框聚焦时底部与键盘的距离
  23521. cursorSpacing: {
  23522. type: [String, Number],
  23523. default: uni.$u.props.input.cursorSpacing
  23524. },
  23525. // 光标起始位置,自动聚集时有效,需与selection-end搭配使用
  23526. selectionStart: {
  23527. type: [String, Number],
  23528. default: uni.$u.props.input.selectionStart
  23529. },
  23530. // 光标结束位置,自动聚集时有效,需与selection-start搭配使用
  23531. selectionEnd: {
  23532. type: [String, Number],
  23533. default: uni.$u.props.input.selectionEnd
  23534. },
  23535. // 键盘弹起时,是否自动上推页面
  23536. adjustPosition: {
  23537. type: Boolean,
  23538. default: uni.$u.props.input.adjustPosition
  23539. },
  23540. // 输入框内容对齐方式,可选值为:left|center|right
  23541. inputAlign: {
  23542. type: String,
  23543. default: uni.$u.props.input.inputAlign
  23544. },
  23545. // 输入框字体的大小
  23546. fontSize: {
  23547. type: [String, Number],
  23548. default: uni.$u.props.input.fontSize
  23549. },
  23550. // 输入框字体颜色
  23551. color: {
  23552. type: String,
  23553. default: uni.$u.props.input.color
  23554. },
  23555. // 输入框前置图标
  23556. prefixIcon: {
  23557. type: String,
  23558. default: uni.$u.props.input.prefixIcon
  23559. },
  23560. // 前置图标样式,对象或字符串
  23561. prefixIconStyle: {
  23562. type: [String, Object],
  23563. default: uni.$u.props.input.prefixIconStyle
  23564. },
  23565. // 输入框后置图标
  23566. suffixIcon: {
  23567. type: String,
  23568. default: uni.$u.props.input.suffixIcon
  23569. },
  23570. // 后置图标样式,对象或字符串
  23571. suffixIconStyle: {
  23572. type: [String, Object],
  23573. default: uni.$u.props.input.suffixIconStyle
  23574. },
  23575. // 边框类型,surround-四周边框,bottom-底部边框,none-无边框
  23576. border: {
  23577. type: String,
  23578. default: uni.$u.props.input.border
  23579. },
  23580. // 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会
  23581. readonly: {
  23582. type: Boolean,
  23583. default: uni.$u.props.input.readonly
  23584. },
  23585. // 输入框形状,circle-圆形,square-方形
  23586. shape: {
  23587. type: String,
  23588. default: uni.$u.props.input.shape
  23589. },
  23590. // 用于处理或者过滤输入框内容的方法
  23591. formatter: {
  23592. type: [Function, null],
  23593. default: uni.$u.props.input.formatter
  23594. },
  23595. // 是否忽略组件内对文本合成系统事件的处理
  23596. ignoreCompositionEvent: {
  23597. type: Boolean,
  23598. default: true
  23599. }
  23600. }
  23601. };
  23602. exports.default = _default;
  23603. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23604. /***/ }),
  23605. /* 515 */,
  23606. /* 516 */,
  23607. /* 517 */,
  23608. /* 518 */,
  23609. /* 519 */,
  23610. /* 520 */
  23611. /*!*********************************************************************************************!*\
  23612. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-textarea/props.js ***!
  23613. \*********************************************************************************************/
  23614. /*! no static exports found */
  23615. /***/ (function(module, exports, __webpack_require__) {
  23616. "use strict";
  23617. /* WEBPACK VAR INJECTION */(function(uni) {
  23618. Object.defineProperty(exports, "__esModule", {
  23619. value: true
  23620. });
  23621. exports.default = void 0;
  23622. var _default = {
  23623. props: {
  23624. // 输入框的内容
  23625. value: {
  23626. type: [String, Number],
  23627. default: uni.$u.props.textarea.value
  23628. },
  23629. // 输入框为空时占位符
  23630. placeholder: {
  23631. type: [String, Number],
  23632. default: uni.$u.props.textarea.placeholder
  23633. },
  23634. // 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
  23635. placeholderClass: {
  23636. type: String,
  23637. default: uni.$u.props.input.placeholderClass
  23638. },
  23639. // 指定placeholder的样式
  23640. placeholderStyle: {
  23641. type: [String, Object],
  23642. default: uni.$u.props.input.placeholderStyle
  23643. },
  23644. // 输入框高度
  23645. height: {
  23646. type: [String, Number],
  23647. default: uni.$u.props.textarea.height
  23648. },
  23649. // 设置键盘右下角按钮的文字,仅微信小程序,App-vue和H5有效
  23650. confirmType: {
  23651. type: String,
  23652. default: uni.$u.props.textarea.confirmType
  23653. },
  23654. // 是否禁用
  23655. disabled: {
  23656. type: Boolean,
  23657. default: uni.$u.props.textarea.disabled
  23658. },
  23659. // 是否显示统计字数
  23660. count: {
  23661. type: Boolean,
  23662. default: uni.$u.props.textarea.count
  23663. },
  23664. // 是否自动获取焦点,nvue不支持,H5取决于浏览器的实现
  23665. focus: {
  23666. type: Boolean,
  23667. default: uni.$u.props.textarea.focus
  23668. },
  23669. // 是否自动增加高度
  23670. autoHeight: {
  23671. type: Boolean,
  23672. default: uni.$u.props.textarea.autoHeight
  23673. },
  23674. // 如果textarea是在一个position:fixed的区域,需要显示指定属性fixed为true
  23675. fixed: {
  23676. type: Boolean,
  23677. default: uni.$u.props.textarea.fixed
  23678. },
  23679. // 指定光标与键盘的距离
  23680. cursorSpacing: {
  23681. type: Number,
  23682. default: uni.$u.props.textarea.cursorSpacing
  23683. },
  23684. // 指定focus时的光标位置
  23685. cursor: {
  23686. type: [String, Number],
  23687. default: uni.$u.props.textarea.cursor
  23688. },
  23689. // 是否显示键盘上方带有”完成“按钮那一栏,
  23690. showConfirmBar: {
  23691. type: Boolean,
  23692. default: uni.$u.props.textarea.showConfirmBar
  23693. },
  23694. // 光标起始位置,自动聚焦时有效,需与selection-end搭配使用
  23695. selectionStart: {
  23696. type: Number,
  23697. default: uni.$u.props.textarea.selectionStart
  23698. },
  23699. // 光标结束位置,自动聚焦时有效,需与selection-start搭配使用
  23700. selectionEnd: {
  23701. type: Number,
  23702. default: uni.$u.props.textarea.selectionEnd
  23703. },
  23704. // 键盘弹起时,是否自动上推页面
  23705. adjustPosition: {
  23706. type: Boolean,
  23707. default: uni.$u.props.textarea.adjustPosition
  23708. },
  23709. // 是否去掉 iOS 下的默认内边距,只微信小程序有效
  23710. disableDefaultPadding: {
  23711. type: Boolean,
  23712. default: uni.$u.props.textarea.disableDefaultPadding
  23713. },
  23714. // focus时,点击页面的时候不收起键盘,只微信小程序有效
  23715. holdKeyboard: {
  23716. type: Boolean,
  23717. default: uni.$u.props.textarea.holdKeyboard
  23718. },
  23719. // 最大输入长度,设置为 -1 的时候不限制最大长度
  23720. maxlength: {
  23721. type: [String, Number],
  23722. default: uni.$u.props.textarea.maxlength
  23723. },
  23724. // 边框类型,surround-四周边框,bottom-底部边框
  23725. border: {
  23726. type: String,
  23727. default: uni.$u.props.textarea.border
  23728. },
  23729. // 用于处理或者过滤输入框内容的方法
  23730. formatter: {
  23731. type: [Function, null],
  23732. default: uni.$u.props.textarea.formatter
  23733. },
  23734. // 是否忽略组件内对文本合成系统事件的处理
  23735. ignoreCompositionEvent: {
  23736. type: Boolean,
  23737. default: true
  23738. }
  23739. }
  23740. };
  23741. exports.default = _default;
  23742. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23743. /***/ }),
  23744. /* 521 */,
  23745. /* 522 */,
  23746. /* 523 */,
  23747. /* 524 */,
  23748. /* 525 */,
  23749. /* 526 */
  23750. /*!*******************************************************************************************!*\
  23751. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-switch/props.js ***!
  23752. \*******************************************************************************************/
  23753. /*! no static exports found */
  23754. /***/ (function(module, exports, __webpack_require__) {
  23755. "use strict";
  23756. /* WEBPACK VAR INJECTION */(function(uni) {
  23757. Object.defineProperty(exports, "__esModule", {
  23758. value: true
  23759. });
  23760. exports.default = void 0;
  23761. var _default = {
  23762. props: {
  23763. // 是否为加载中状态
  23764. loading: {
  23765. type: Boolean,
  23766. default: uni.$u.props.switch.loading
  23767. },
  23768. // 是否为禁用装填
  23769. disabled: {
  23770. type: Boolean,
  23771. default: uni.$u.props.switch.disabled
  23772. },
  23773. // 开关尺寸,单位px
  23774. size: {
  23775. type: [String, Number],
  23776. default: uni.$u.props.switch.size
  23777. },
  23778. // 打开时的背景颜色
  23779. activeColor: {
  23780. type: String,
  23781. default: uni.$u.props.switch.activeColor
  23782. },
  23783. // 关闭时的背景颜色
  23784. inactiveColor: {
  23785. type: String,
  23786. default: uni.$u.props.switch.inactiveColor
  23787. },
  23788. // 通过v-model双向绑定的值
  23789. value: {
  23790. type: [Boolean, String, Number],
  23791. default: uni.$u.props.switch.value
  23792. },
  23793. // switch打开时的值
  23794. activeValue: {
  23795. type: [String, Number, Boolean],
  23796. default: uni.$u.props.switch.activeValue
  23797. },
  23798. // switch关闭时的值
  23799. inactiveValue: {
  23800. type: [String, Number, Boolean],
  23801. default: uni.$u.props.switch.inactiveValue
  23802. },
  23803. // 是否开启异步变更,开启后需要手动控制输入值
  23804. asyncChange: {
  23805. type: Boolean,
  23806. default: uni.$u.props.switch.asyncChange
  23807. },
  23808. // 圆点与外边框的距离
  23809. space: {
  23810. type: [String, Number],
  23811. default: uni.$u.props.switch.space
  23812. }
  23813. }
  23814. };
  23815. exports.default = _default;
  23816. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23817. /***/ }),
  23818. /* 527 */,
  23819. /* 528 */,
  23820. /* 529 */,
  23821. /* 530 */,
  23822. /* 531 */,
  23823. /* 532 */,
  23824. /* 533 */,
  23825. /* 534 */
  23826. /*!**********************************************************************************************************!*\
  23827. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-uni.js ***!
  23828. \**********************************************************************************************************/
  23829. /*! no static exports found */
  23830. /***/ (function(module, exports, __webpack_require__) {
  23831. "use strict";
  23832. /* WEBPACK VAR INJECTION */(function(uni) {
  23833. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  23834. Object.defineProperty(exports, "__esModule", {
  23835. value: true
  23836. });
  23837. exports.default = MeScroll;
  23838. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  23839. /* mescroll
  23840. * version 1.3.7
  23841. * 2021-04-12 wenju
  23842. * https://www.mescroll.com
  23843. */
  23844. function MeScroll(options, isScrollBody) {
  23845. var me = this;
  23846. me.version = '1.3.7'; // mescroll版本号
  23847. me.options = options || {}; // 配置
  23848. me.isScrollBody = isScrollBody || false; // 滚动区域是否为原生页面滚动; 默认为scroll-view
  23849. me.isDownScrolling = false; // 是否在执行下拉刷新的回调
  23850. me.isUpScrolling = false; // 是否在执行上拉加载的回调
  23851. var hasDownCallback = me.options.down && me.options.down.callback; // 是否配置了down的callback
  23852. // 初始化下拉刷新
  23853. me.initDownScroll();
  23854. // 初始化上拉加载,则初始化
  23855. me.initUpScroll();
  23856. // 自动加载
  23857. setTimeout(function () {
  23858. // 待主线程执行完毕再执行,避免new MeScroll未初始化,在回调获取不到mescroll的实例
  23859. // 自动触发下拉刷新 (只有配置了down的callback才自动触发下拉刷新)
  23860. if ((me.optDown.use || me.optDown.native) && me.optDown.auto && hasDownCallback) {
  23861. if (me.optDown.autoShowLoading) {
  23862. me.triggerDownScroll(); // 显示下拉进度,执行下拉回调
  23863. } else {
  23864. me.optDown.callback && me.optDown.callback(me); // 不显示下拉进度,直接执行下拉回调
  23865. }
  23866. }
  23867. // 自动触发上拉加载
  23868. if (!me.isUpAutoLoad) {
  23869. // 部分小程序(头条小程序)emit是异步, 会导致isUpAutoLoad判断有误, 先延时确保先执行down的callback,再执行up的callback
  23870. setTimeout(function () {
  23871. me.optUp.use && me.optUp.auto && !me.isUpAutoLoad && me.triggerUpScroll();
  23872. }, 100);
  23873. }
  23874. }, 30); // 需让me.optDown.inited和me.optUp.inited先执行
  23875. }
  23876. /* 配置参数:下拉刷新 */
  23877. MeScroll.prototype.extendDownScroll = function (optDown) {
  23878. // 下拉刷新的配置
  23879. MeScroll.extend(optDown, {
  23880. use: true,
  23881. // 是否启用下拉刷新; 默认true
  23882. auto: true,
  23883. // 是否在初始化完毕之后自动执行下拉刷新的回调; 默认true
  23884. native: false,
  23885. // 是否使用系统自带的下拉刷新; 默认false; 仅mescroll-body生效 (值为true时,还需在pages配置enablePullDownRefresh:true;详请参考mescroll-native的案例)
  23886. autoShowLoading: false,
  23887. // 如果设置auto=true(在初始化完毕之后自动执行下拉刷新的回调),那么是否显示下拉刷新的进度; 默认false
  23888. isLock: false,
  23889. // 是否锁定下拉刷新,默认false;
  23890. offset: 80,
  23891. // 在列表顶部,下拉大于80px,松手即可触发下拉刷新的回调
  23892. startTop: 100,
  23893. // scroll-view快速滚动到顶部时,此时的scroll-top可能大于0, 此值用于控制最大的误差
  23894. inOffsetRate: 1,
  23895. // 在列表顶部,下拉的距离小于offset时,改变下拉区域高度比例;值小于1且越接近0,高度变化越小,表现为越往下越难拉
  23896. outOffsetRate: 0.2,
  23897. // 在列表顶部,下拉的距离大于offset时,改变下拉区域高度比例;值小于1且越接近0,高度变化越小,表现为越往下越难拉
  23898. bottomOffset: 20,
  23899. // 当手指touchmove位置在距离body底部20px范围内的时候结束上拉刷新,避免Webview嵌套导致touchend事件不执行
  23900. minAngle: 45,
  23901. // 向下滑动最少偏移的角度,取值区间 [0,90];默认45度,即向下滑动的角度大于45度则触发下拉;而小于45度,将不触发下拉,避免与左右滑动的轮播等组件冲突;
  23902. textInOffset: '下拉刷新',
  23903. // 下拉的距离在offset范围内的提示文本
  23904. textOutOffset: '释放更新',
  23905. // 下拉的距离大于offset范围的提示文本
  23906. textLoading: '加载中 ...',
  23907. // 加载中的提示文本
  23908. textSuccess: '加载成功',
  23909. // 加载成功的文本
  23910. textErr: '加载失败',
  23911. // 加载失败的文本
  23912. beforeEndDelay: 0,
  23913. // 延时结束的时长 (显示加载成功/失败的时长, android小程序设置此项结束下拉会卡顿, 配置后请注意测试)
  23914. bgColor: "transparent",
  23915. // 背景颜色 (建议在pages.json中再设置一下backgroundColorTop)
  23916. textColor: "gray",
  23917. // 文本颜色 (当bgColor配置了颜色,而textColor未配置时,则textColor会默认为白色)
  23918. inited: null,
  23919. // 下拉刷新初始化完毕的回调
  23920. inOffset: null,
  23921. // 下拉的距离进入offset范围内那一刻的回调
  23922. outOffset: null,
  23923. // 下拉的距离大于offset那一刻的回调
  23924. onMoving: null,
  23925. // 下拉过程中的回调,滑动过程一直在执行; rate下拉区域当前高度与指定距离的比值(inOffset: rate<1; outOffset: rate>=1); downHight当前下拉区域的高度
  23926. beforeLoading: null,
  23927. // 准备触发下拉刷新的回调: 如果return true,将不触发showLoading和callback回调; 常用来完全自定义下拉刷新, 参考案例【淘宝 v6.8.0】
  23928. showLoading: null,
  23929. // 显示下拉刷新进度的回调
  23930. afterLoading: null,
  23931. // 显示下拉刷新进度的回调之后,马上要执行的代码 (如: 在wxs中使用)
  23932. beforeEndDownScroll: null,
  23933. // 准备结束下拉的回调. 返回结束下拉的延时执行时间,默认0ms; 常用于结束下拉之前再显示另外一小段动画,才去隐藏下拉刷新的场景, 参考案例【dotJump】
  23934. endDownScroll: null,
  23935. // 结束下拉刷新的回调
  23936. afterEndDownScroll: null,
  23937. // 结束下拉刷新的回调,马上要执行的代码 (如: 在wxs中使用)
  23938. callback: function callback(mescroll) {
  23939. // 下拉刷新的回调;默认重置上拉加载列表为第一页
  23940. mescroll.resetUpScroll();
  23941. }
  23942. });
  23943. };
  23944. /* 配置参数:上拉加载 */
  23945. MeScroll.prototype.extendUpScroll = function (optUp) {
  23946. // 上拉加载的配置
  23947. MeScroll.extend(optUp, {
  23948. use: true,
  23949. // 是否启用上拉加载; 默认true
  23950. auto: true,
  23951. // 是否在初始化完毕之后自动执行上拉加载的回调; 默认true
  23952. isLock: false,
  23953. // 是否锁定上拉加载,默认false;
  23954. isBoth: true,
  23955. // 上拉加载时,如果滑动到列表顶部是否可以同时触发下拉刷新;默认true,两者可同时触发;
  23956. callback: null,
  23957. // 上拉加载的回调;function(page,mescroll){ }
  23958. page: {
  23959. num: 0,
  23960. // 当前页码,默认0,回调之前会加1,即callback(page)会从1开始
  23961. size: 10,
  23962. // 每页数据的数量
  23963. time: null // 加载第一页数据服务器返回的时间; 防止用户翻页时,后台新增了数据从而导致下一页数据重复;
  23964. },
  23965. noMoreSize: 5,
  23966. // 如果列表已无数据,可设置列表的总数量要大于等于5条才显示无更多数据;避免列表数据过少(比如只有一条数据),显示无更多数据会不好看
  23967. offset: 150,
  23968. // 距底部多远时,触发upCallback,仅mescroll-uni生效 ( mescroll-body配置的是pages.json的 onReachBottomDistance )
  23969. textLoading: '加载中 ...',
  23970. // 加载中的提示文本
  23971. textNoMore: '-- END --',
  23972. // 没有更多数据的提示文本
  23973. bgColor: "transparent",
  23974. // 背景颜色 (建议在pages.json中再设置一下backgroundColorBottom)
  23975. textColor: "gray",
  23976. // 文本颜色 (当bgColor配置了颜色,而textColor未配置时,则textColor会默认为白色)
  23977. inited: null,
  23978. // 初始化完毕的回调
  23979. showLoading: null,
  23980. // 显示加载中的回调
  23981. showNoMore: null,
  23982. // 显示无更多数据的回调
  23983. hideUpScroll: null,
  23984. // 隐藏上拉加载的回调
  23985. errDistance: 60,
  23986. // endErr的时候需往上滑动一段距离,使其往下滑动时再次触发onReachBottom,仅mescroll-body生效
  23987. toTop: {
  23988. // 回到顶部按钮,需配置src才显示
  23989. src: null,
  23990. // 图片路径,默认null (绝对路径或网络图)
  23991. offset: 1000,
  23992. // 列表滚动多少距离才显示回到顶部按钮,默认1000
  23993. duration: 300,
  23994. // 回到顶部的动画时长,默认300ms (当值为0或300则使用系统自带回到顶部,更流畅; 其他值则通过step模拟,部分机型可能不够流畅,所以非特殊情况不建议修改此项)
  23995. btnClick: null,
  23996. // 点击按钮的回调
  23997. onShow: null,
  23998. // 是否显示的回调
  23999. zIndex: 9990,
  24000. // fixed定位z-index值
  24001. left: null,
  24002. // 到左边的距离, 默认null. 此项有值时,right不生效. (支持20, "20rpx", "20px", "20%"格式的值, 其中纯数字则默认单位rpx)
  24003. right: 20,
  24004. // 到右边的距离, 默认20 (支持20, "20rpx", "20px", "20%"格式的值, 其中纯数字则默认单位rpx)
  24005. bottom: 120,
  24006. // 到底部的距离, 默认120 (支持20, "20rpx", "20px", "20%"格式的值, 其中纯数字则默认单位rpx)
  24007. safearea: false,
  24008. // bottom的偏移量是否加上底部安全区的距离, 默认false, 需要适配iPhoneX时使用 (具体的界面如果不配置此项,则取本vue的safearea值)
  24009. width: 72,
  24010. // 回到顶部图标的宽度, 默认72 (支持20, "20rpx", "20px", "20%"格式的值, 其中纯数字则默认单位rpx)
  24011. radius: "50%" // 圆角, 默认"50%" (支持20, "20rpx", "20px", "20%"格式的值, 其中纯数字则默认单位rpx)
  24012. },
  24013. empty: {
  24014. use: true,
  24015. // 是否显示空布局
  24016. icon: null,
  24017. // 图标路径
  24018. tip: '~ 暂无相关数据 ~',
  24019. // 提示
  24020. btnText: '',
  24021. // 按钮
  24022. btnClick: null,
  24023. // 点击按钮的回调
  24024. onShow: null,
  24025. // 是否显示的回调
  24026. fixed: false,
  24027. // 是否使用fixed定位,默认false; 配置fixed为true,以下的top和zIndex才生效 (transform会使fixed失效,最终会降级为absolute)
  24028. top: "100rpx",
  24029. // fixed定位的top值 (完整的单位值,如 "10%"; "100rpx")
  24030. zIndex: 99 // fixed定位z-index值
  24031. },
  24032. onScroll: false // 是否监听滚动事件
  24033. });
  24034. };
  24035. /* 配置参数 */
  24036. MeScroll.extend = function (userOption, defaultOption) {
  24037. if (!userOption) return defaultOption;
  24038. for (var key in defaultOption) {
  24039. if (userOption[key] == null) {
  24040. var def = defaultOption[key];
  24041. if (def != null && (0, _typeof2.default)(def) === 'object') {
  24042. userOption[key] = MeScroll.extend({}, def); // 深度匹配
  24043. } else {
  24044. userOption[key] = def;
  24045. }
  24046. } else if ((0, _typeof2.default)(userOption[key]) === 'object') {
  24047. MeScroll.extend(userOption[key], defaultOption[key]); // 深度匹配
  24048. }
  24049. }
  24050. return userOption;
  24051. };
  24052. /* 简单判断是否配置了颜色 (非透明,非白色) */
  24053. MeScroll.prototype.hasColor = function (color) {
  24054. if (!color) return false;
  24055. var c = color.toLowerCase();
  24056. return c != "#fff" && c != "#ffffff" && c != "transparent" && c != "white";
  24057. };
  24058. /* -------初始化下拉刷新------- */
  24059. MeScroll.prototype.initDownScroll = function () {
  24060. var me = this;
  24061. // 配置参数
  24062. me.optDown = me.options.down || {};
  24063. if (!me.optDown.textColor && me.hasColor(me.optDown.bgColor)) me.optDown.textColor = "#fff"; // 当bgColor有值且textColor未设置,则textColor默认白色
  24064. me.extendDownScroll(me.optDown);
  24065. // 如果是mescroll-body且配置了native,则禁止自定义的下拉刷新
  24066. if (me.isScrollBody && me.optDown.native) {
  24067. me.optDown.use = false;
  24068. } else {
  24069. me.optDown.native = false; // 仅mescroll-body支持,mescroll-uni不支持
  24070. }
  24071. me.downHight = 0; // 下拉区域的高度
  24072. // 在页面中加入下拉布局
  24073. if (me.optDown.use && me.optDown.inited) {
  24074. // 初始化完毕的回调
  24075. setTimeout(function () {
  24076. // 待主线程执行完毕再执行,避免new MeScroll未初始化,在回调获取不到mescroll的实例
  24077. me.optDown.inited(me);
  24078. }, 0);
  24079. }
  24080. };
  24081. /* 列表touchstart事件 */
  24082. MeScroll.prototype.touchstartEvent = function (e) {
  24083. if (!this.optDown.use) return;
  24084. this.startPoint = this.getPoint(e); // 记录起点
  24085. this.startTop = this.getScrollTop(); // 记录此时的滚动条位置
  24086. this.startAngle = 0; // 初始角度
  24087. this.lastPoint = this.startPoint; // 重置上次move的点
  24088. this.maxTouchmoveY = this.getBodyHeight() - this.optDown.bottomOffset; // 手指触摸的最大范围(写在touchstart避免body获取高度为0的情况)
  24089. this.inTouchend = false; // 标记不是touchend
  24090. };
  24091. /* 列表touchmove事件 */
  24092. MeScroll.prototype.touchmoveEvent = function (e) {
  24093. if (!this.optDown.use) return;
  24094. var me = this;
  24095. var scrollTop = me.getScrollTop(); // 当前滚动条的距离
  24096. var curPoint = me.getPoint(e); // 当前点
  24097. var moveY = curPoint.y - me.startPoint.y; // 和起点比,移动的距离,大于0向下拉,小于0向上拉
  24098. // 向下拉 && 在顶部
  24099. // mescroll-body,直接判定在顶部即可
  24100. // scroll-view在滚动时不会触发touchmove,当触顶/底/左/右时,才会触发touchmove
  24101. // scroll-view滚动到顶部时,scrollTop不一定为0,也有可能大于0; 在iOS的APP中scrollTop可能为负数,不一定和startTop相等
  24102. if (moveY > 0 && (me.isScrollBody && scrollTop <= 0 || !me.isScrollBody && (scrollTop <= 0 || scrollTop <= me.optDown.startTop && scrollTop === me.startTop))) {
  24103. // 可下拉的条件
  24104. if (!me.inTouchend && !me.isDownScrolling && !me.optDown.isLock && (!me.isUpScrolling || me.isUpScrolling && me.optUp.isBoth)) {
  24105. // 下拉的初始角度是否在配置的范围内
  24106. if (!me.startAngle) me.startAngle = me.getAngle(me.lastPoint, curPoint); // 两点之间的角度,区间 [0,90]
  24107. if (me.startAngle < me.optDown.minAngle) return; // 如果小于配置的角度,则不往下执行下拉刷新
  24108. // 如果手指的位置超过配置的距离,则提前结束下拉,避免Webview嵌套导致touchend无法触发
  24109. if (me.maxTouchmoveY > 0 && curPoint.y >= me.maxTouchmoveY) {
  24110. me.inTouchend = true; // 标记执行touchend
  24111. me.touchendEvent(); // 提前触发touchend
  24112. return;
  24113. }
  24114. me.preventDefault(e); // 阻止默认事件
  24115. var diff = curPoint.y - me.lastPoint.y; // 和上次比,移动的距离 (大于0向下,小于0向上)
  24116. // 下拉距离 < 指定距离
  24117. if (me.downHight < me.optDown.offset) {
  24118. if (me.movetype !== 1) {
  24119. me.movetype = 1; // 加入标记,保证只执行一次
  24120. me.isDownEndSuccess = null; // 重置是否加载成功的状态 (wxs执行的是wxs.wxs)
  24121. me.optDown.inOffset && me.optDown.inOffset(me); // 进入指定距离范围内那一刻的回调,只执行一次
  24122. me.isMoveDown = true; // 标记下拉区域高度改变,在touchend重置回来
  24123. }
  24124. me.downHight += diff * me.optDown.inOffsetRate; // 越往下,高度变化越小
  24125. // 指定距离 <= 下拉距离
  24126. } else {
  24127. if (me.movetype !== 2) {
  24128. me.movetype = 2; // 加入标记,保证只执行一次
  24129. me.optDown.outOffset && me.optDown.outOffset(me); // 下拉超过指定距离那一刻的回调,只执行一次
  24130. me.isMoveDown = true; // 标记下拉区域高度改变,在touchend重置回来
  24131. }
  24132. if (diff > 0) {
  24133. // 向下拉
  24134. me.downHight += diff * me.optDown.outOffsetRate; // 越往下,高度变化越小
  24135. } else {
  24136. // 向上收
  24137. me.downHight += diff; // 向上收回高度,则向上滑多少收多少高度
  24138. }
  24139. }
  24140. me.downHight = Math.round(me.downHight); // 取整
  24141. var rate = me.downHight / me.optDown.offset; // 下拉区域当前高度与指定距离的比值
  24142. me.optDown.onMoving && me.optDown.onMoving(me, rate, me.downHight); // 下拉过程中的回调,一直在执行
  24143. }
  24144. }
  24145. me.lastPoint = curPoint; // 记录本次移动的点
  24146. };
  24147. /* 列表touchend事件 */
  24148. MeScroll.prototype.touchendEvent = function (e) {
  24149. if (!this.optDown.use) return;
  24150. // 如果下拉区域高度已改变,则需重置回来
  24151. if (this.isMoveDown) {
  24152. if (this.downHight >= this.optDown.offset) {
  24153. // 符合触发刷新的条件
  24154. this.triggerDownScroll();
  24155. } else {
  24156. // 不符合的话 则重置
  24157. this.downHight = 0;
  24158. this.endDownScrollCall(this);
  24159. }
  24160. this.movetype = 0;
  24161. this.isMoveDown = false;
  24162. } else if (!this.isScrollBody && this.getScrollTop() === this.startTop) {
  24163. // scroll-view到顶/左/右/底的滑动事件
  24164. var isScrollUp = this.getPoint(e).y - this.startPoint.y < 0; // 和起点比,移动的距离,大于0向下拉,小于0向上拉
  24165. // 上滑
  24166. if (isScrollUp) {
  24167. // 需检查滑动的角度
  24168. var angle = this.getAngle(this.getPoint(e), this.startPoint); // 两点之间的角度,区间 [0,90]
  24169. if (angle > 80) {
  24170. // 检查并触发上拉
  24171. this.triggerUpScroll(true);
  24172. }
  24173. }
  24174. }
  24175. };
  24176. /* 根据点击滑动事件获取第一个手指的坐标 */
  24177. MeScroll.prototype.getPoint = function (e) {
  24178. if (!e) {
  24179. return {
  24180. x: 0,
  24181. y: 0
  24182. };
  24183. }
  24184. if (e.touches && e.touches[0]) {
  24185. return {
  24186. x: e.touches[0].pageX,
  24187. y: e.touches[0].pageY
  24188. };
  24189. } else if (e.changedTouches && e.changedTouches[0]) {
  24190. return {
  24191. x: e.changedTouches[0].pageX,
  24192. y: e.changedTouches[0].pageY
  24193. };
  24194. } else {
  24195. return {
  24196. x: e.clientX,
  24197. y: e.clientY
  24198. };
  24199. }
  24200. };
  24201. /* 计算两点之间的角度: 区间 [0,90]*/
  24202. MeScroll.prototype.getAngle = function (p1, p2) {
  24203. var x = Math.abs(p1.x - p2.x);
  24204. var y = Math.abs(p1.y - p2.y);
  24205. var z = Math.sqrt(x * x + y * y);
  24206. var angle = 0;
  24207. if (z !== 0) {
  24208. angle = Math.asin(y / z) / Math.PI * 180;
  24209. }
  24210. return angle;
  24211. };
  24212. /* 触发下拉刷新 */
  24213. MeScroll.prototype.triggerDownScroll = function () {
  24214. if (this.optDown.beforeLoading && this.optDown.beforeLoading(this)) {
  24215. //return true则处于完全自定义状态
  24216. } else {
  24217. this.showDownScroll(); // 下拉刷新中...
  24218. !this.optDown.native && this.optDown.callback && this.optDown.callback(this); // 执行回调,联网加载数据
  24219. }
  24220. };
  24221. /* 显示下拉进度布局 */
  24222. MeScroll.prototype.showDownScroll = function () {
  24223. this.isDownScrolling = true; // 标记下拉中
  24224. if (this.optDown.native) {
  24225. uni.startPullDownRefresh(); // 系统自带的下拉刷新
  24226. this.showDownLoadingCall(0); // 仍触发showLoading,因为上拉加载用到
  24227. } else {
  24228. this.downHight = this.optDown.offset; // 更新下拉区域高度
  24229. this.showDownLoadingCall(this.downHight); // 下拉刷新中...
  24230. }
  24231. };
  24232. MeScroll.prototype.showDownLoadingCall = function (downHight) {
  24233. this.optDown.showLoading && this.optDown.showLoading(this, downHight); // 下拉刷新中...
  24234. this.optDown.afterLoading && this.optDown.afterLoading(this, downHight); // 下拉刷新中...触发之后马上要执行的代码
  24235. };
  24236. /* 显示系统自带的下拉刷新时需要处理的业务 */
  24237. MeScroll.prototype.onPullDownRefresh = function () {
  24238. this.isDownScrolling = true; // 标记下拉中
  24239. this.showDownLoadingCall(0); // 仍触发showLoading,因为上拉加载用到
  24240. this.optDown.callback && this.optDown.callback(this); // 执行回调,联网加载数据
  24241. };
  24242. /* 结束下拉刷新 */
  24243. MeScroll.prototype.endDownScroll = function () {
  24244. if (this.optDown.native) {
  24245. // 结束原生下拉刷新
  24246. this.isDownScrolling = false;
  24247. this.endDownScrollCall(this);
  24248. uni.stopPullDownRefresh();
  24249. return;
  24250. }
  24251. var me = this;
  24252. // 结束下拉刷新的方法
  24253. var endScroll = function endScroll() {
  24254. me.downHight = 0;
  24255. me.isDownScrolling = false;
  24256. me.endDownScrollCall(me);
  24257. if (!me.isScrollBody) {
  24258. me.setScrollHeight(0); // scroll-view重置滚动区域,使数据不满屏时仍可检查触发翻页
  24259. me.scrollTo(0, 0); // scroll-view需重置滚动条到顶部,避免startTop大于0时,对下拉刷新的影响
  24260. }
  24261. };
  24262. // 结束下拉刷新时的回调
  24263. var delay = 0;
  24264. if (me.optDown.beforeEndDownScroll) {
  24265. delay = me.optDown.beforeEndDownScroll(me); // 结束下拉刷新的延时,单位ms
  24266. if (me.isDownEndSuccess == null) delay = 0; // 没有执行加载中,则不延时
  24267. }
  24268. if (typeof delay === 'number' && delay > 0) {
  24269. setTimeout(endScroll, delay);
  24270. } else {
  24271. endScroll();
  24272. }
  24273. };
  24274. MeScroll.prototype.endDownScrollCall = function () {
  24275. this.optDown.endDownScroll && this.optDown.endDownScroll(this);
  24276. this.optDown.afterEndDownScroll && this.optDown.afterEndDownScroll(this);
  24277. };
  24278. /* 锁定下拉刷新:isLock=ture,null锁定;isLock=false解锁 */
  24279. MeScroll.prototype.lockDownScroll = function (isLock) {
  24280. if (isLock == null) isLock = true;
  24281. this.optDown.isLock = isLock;
  24282. };
  24283. /* 锁定上拉加载:isLock=ture,null锁定;isLock=false解锁 */
  24284. MeScroll.prototype.lockUpScroll = function (isLock) {
  24285. if (isLock == null) isLock = true;
  24286. this.optUp.isLock = isLock;
  24287. };
  24288. /* -------初始化上拉加载------- */
  24289. MeScroll.prototype.initUpScroll = function () {
  24290. var me = this;
  24291. // 配置参数
  24292. me.optUp = me.options.up || {
  24293. use: false
  24294. };
  24295. if (!me.optUp.textColor && me.hasColor(me.optUp.bgColor)) me.optUp.textColor = "#fff"; // 当bgColor有值且textColor未设置,则textColor默认白色
  24296. me.extendUpScroll(me.optUp);
  24297. if (me.optUp.use === false) return; // 配置不使用上拉加载时,则不初始化上拉布局
  24298. me.optUp.hasNext = true; // 如果使用上拉,则默认有下一页
  24299. me.startNum = me.optUp.page.num + 1; // 记录page开始的页码
  24300. // 初始化完毕的回调
  24301. if (me.optUp.inited) {
  24302. setTimeout(function () {
  24303. // 待主线程执行完毕再执行,避免new MeScroll未初始化,在回调获取不到mescroll的实例
  24304. me.optUp.inited(me);
  24305. }, 0);
  24306. }
  24307. };
  24308. /*滚动到底部的事件 (仅mescroll-body生效)*/
  24309. MeScroll.prototype.onReachBottom = function () {
  24310. if (this.isScrollBody && !this.isUpScrolling) {
  24311. // 只能支持下拉刷新的时候同时可以触发上拉加载,否则滚动到底部就需要上滑一点才能触发onReachBottom
  24312. if (!this.optUp.isLock && this.optUp.hasNext) {
  24313. this.triggerUpScroll();
  24314. }
  24315. }
  24316. };
  24317. /*列表滚动事件 (仅mescroll-body生效)*/
  24318. MeScroll.prototype.onPageScroll = function (e) {
  24319. if (!this.isScrollBody) return;
  24320. // 更新滚动条的位置 (主要用于判断下拉刷新时,滚动条是否在顶部)
  24321. this.setScrollTop(e.scrollTop);
  24322. // 顶部按钮的显示隐藏
  24323. if (e.scrollTop >= this.optUp.toTop.offset) {
  24324. this.showTopBtn();
  24325. } else {
  24326. this.hideTopBtn();
  24327. }
  24328. };
  24329. /*列表滚动事件*/
  24330. MeScroll.prototype.scroll = function (e, onScroll) {
  24331. // 更新滚动条的位置
  24332. this.setScrollTop(e.scrollTop);
  24333. // 更新滚动内容高度
  24334. this.setScrollHeight(e.scrollHeight);
  24335. // 向上滑还是向下滑动
  24336. if (this.preScrollY == null) this.preScrollY = 0;
  24337. this.isScrollUp = e.scrollTop - this.preScrollY > 0;
  24338. this.preScrollY = e.scrollTop;
  24339. // 上滑 && 检查并触发上拉
  24340. this.isScrollUp && this.triggerUpScroll(true);
  24341. // 顶部按钮的显示隐藏
  24342. if (e.scrollTop >= this.optUp.toTop.offset) {
  24343. this.showTopBtn();
  24344. } else {
  24345. this.hideTopBtn();
  24346. }
  24347. // 滑动监听
  24348. this.optUp.onScroll && onScroll && onScroll();
  24349. };
  24350. /* 触发上拉加载 */
  24351. MeScroll.prototype.triggerUpScroll = function (isCheck) {
  24352. if (!this.isUpScrolling && this.optUp.use && this.optUp.callback) {
  24353. // 是否校验在底部; 默认不校验
  24354. if (isCheck === true) {
  24355. var canUp = false;
  24356. // 还有下一页 && 没有锁定 && 不在下拉中
  24357. if (this.optUp.hasNext && !this.optUp.isLock && !this.isDownScrolling) {
  24358. if (this.getScrollBottom() <= this.optUp.offset) {
  24359. // 到底部
  24360. canUp = true; // 标记可上拉
  24361. }
  24362. }
  24363. if (canUp === false) return;
  24364. }
  24365. this.showUpScroll(); // 上拉加载中...
  24366. this.optUp.page.num++; // 预先加一页,如果失败则减回
  24367. this.isUpAutoLoad = true; // 标记上拉已经自动执行过,避免初始化时多次触发上拉回调
  24368. this.num = this.optUp.page.num; // 把最新的页数赋值在mescroll上,避免对page的影响
  24369. this.size = this.optUp.page.size; // 把最新的页码赋值在mescroll上,避免对page的影响
  24370. this.time = this.optUp.page.time; // 把最新的页码赋值在mescroll上,避免对page的影响
  24371. this.optUp.callback(this); // 执行回调,联网加载数据
  24372. }
  24373. };
  24374. /* 显示上拉加载中 */
  24375. MeScroll.prototype.showUpScroll = function () {
  24376. this.isUpScrolling = true; // 标记上拉加载中
  24377. this.optUp.showLoading && this.optUp.showLoading(this); // 回调
  24378. };
  24379. /* 显示上拉无更多数据 */
  24380. MeScroll.prototype.showNoMore = function () {
  24381. this.optUp.hasNext = false; // 标记无更多数据
  24382. this.optUp.showNoMore && this.optUp.showNoMore(this); // 回调
  24383. };
  24384. /* 隐藏上拉区域**/
  24385. MeScroll.prototype.hideUpScroll = function () {
  24386. this.optUp.hideUpScroll && this.optUp.hideUpScroll(this); // 回调
  24387. };
  24388. /* 结束上拉加载 */
  24389. MeScroll.prototype.endUpScroll = function (isShowNoMore) {
  24390. if (isShowNoMore != null) {
  24391. // isShowNoMore=null,不处理下拉状态,下拉刷新的时候调用
  24392. if (isShowNoMore) {
  24393. this.showNoMore(); // isShowNoMore=true,显示无更多数据
  24394. } else {
  24395. this.hideUpScroll(); // isShowNoMore=false,隐藏上拉加载
  24396. }
  24397. }
  24398. this.isUpScrolling = false; // 标记结束上拉加载
  24399. };
  24400. /* 重置上拉加载列表为第一页
  24401. *isShowLoading 是否显示进度布局;
  24402. * 1.默认null,不传参,则显示上拉加载的进度布局
  24403. * 2.传参true, 则显示下拉刷新的进度布局
  24404. * 3.传参false,则不显示上拉和下拉的进度 (常用于静默更新列表数据)
  24405. */
  24406. MeScroll.prototype.resetUpScroll = function (isShowLoading) {
  24407. if (this.optUp && this.optUp.use) {
  24408. var page = this.optUp.page;
  24409. this.prePageNum = page.num; // 缓存重置前的页码,加载失败可退回
  24410. this.prePageTime = page.time; // 缓存重置前的时间,加载失败可退回
  24411. page.num = this.startNum; // 重置为第一页
  24412. page.time = null; // 重置时间为空
  24413. if (!this.isDownScrolling && isShowLoading !== false) {
  24414. // 如果不是下拉刷新触发的resetUpScroll并且不配置列表静默更新,则显示进度;
  24415. if (isShowLoading == null) {
  24416. this.removeEmpty(); // 移除空布局
  24417. this.showUpScroll(); // 不传参,默认显示上拉加载的进度布局
  24418. } else {
  24419. this.showDownScroll(); // 传true,显示下拉刷新的进度布局,不清空列表
  24420. }
  24421. }
  24422. this.isUpAutoLoad = true; // 标记上拉已经自动执行过,避免初始化时多次触发上拉回调
  24423. this.num = page.num; // 把最新的页数赋值在mescroll上,避免对page的影响
  24424. this.size = page.size; // 把最新的页码赋值在mescroll上,避免对page的影响
  24425. this.time = page.time; // 把最新的页码赋值在mescroll上,避免对page的影响
  24426. this.optUp.callback && this.optUp.callback(this); // 执行上拉回调
  24427. }
  24428. };
  24429. /* 设置page.num的值 */
  24430. MeScroll.prototype.setPageNum = function (num) {
  24431. this.optUp.page.num = num - 1;
  24432. };
  24433. /* 设置page.size的值 */
  24434. MeScroll.prototype.setPageSize = function (size) {
  24435. this.optUp.page.size = size;
  24436. };
  24437. /* 联网回调成功,结束下拉刷新和上拉加载
  24438. * dataSize: 当前页的数据量(必传)
  24439. * totalPage: 总页数(必传)
  24440. * systime: 服务器时间 (可空)
  24441. */
  24442. MeScroll.prototype.endByPage = function (dataSize, totalPage, systime) {
  24443. var hasNext;
  24444. if (this.optUp.use && totalPage != null) hasNext = this.optUp.page.num < totalPage; // 是否还有下一页
  24445. this.endSuccess(dataSize, hasNext, systime);
  24446. };
  24447. /* 联网回调成功,结束下拉刷新和上拉加载
  24448. * dataSize: 当前页的数据量(必传)
  24449. * totalSize: 列表所有数据总数量(必传)
  24450. * systime: 服务器时间 (可空)
  24451. */
  24452. MeScroll.prototype.endBySize = function (dataSize, totalSize, systime) {
  24453. var hasNext;
  24454. if (this.optUp.use && totalSize != null) {
  24455. var loadSize = (this.optUp.page.num - 1) * this.optUp.page.size + dataSize; // 已加载的数据总数
  24456. hasNext = loadSize < totalSize; // 是否还有下一页
  24457. }
  24458. this.endSuccess(dataSize, hasNext, systime);
  24459. };
  24460. /* 联网回调成功,结束下拉刷新和上拉加载
  24461. * dataSize: 当前页的数据个数(不是所有页的数据总和),用于上拉加载判断是否还有下一页.如果不传,则会判断还有下一页
  24462. * hasNext: 是否还有下一页,布尔类型;用来解决这个小问题:比如列表共有20条数据,每页加载10条,共2页.如果只根据dataSize判断,则需翻到第三页才会知道无更多数据,如果传了hasNext,则翻到第二页即可显示无更多数据.
  24463. * systime: 服务器时间(可空);用来解决这个小问题:当准备翻下一页时,数据库新增了几条记录,此时翻下一页,前面的几条数据会和上一页的重复;这里传入了systime,那么upCallback的page.time就会有值,把page.time传给服务器,让后台过滤新加入的那几条记录
  24464. */
  24465. MeScroll.prototype.endSuccess = function (dataSize, hasNext, systime) {
  24466. var me = this;
  24467. // 结束下拉刷新
  24468. if (me.isDownScrolling) {
  24469. me.isDownEndSuccess = true;
  24470. me.endDownScroll();
  24471. }
  24472. // 结束上拉加载
  24473. if (me.optUp.use) {
  24474. var isShowNoMore; // 是否已无更多数据
  24475. if (dataSize != null) {
  24476. var pageNum = me.optUp.page.num; // 当前页码
  24477. var pageSize = me.optUp.page.size; // 每页长度
  24478. // 如果是第一页
  24479. if (pageNum === 1) {
  24480. if (systime) me.optUp.page.time = systime; // 设置加载列表数据第一页的时间
  24481. }
  24482. if (dataSize < pageSize || hasNext === false) {
  24483. // 返回的数据不满一页时,则说明已无更多数据
  24484. me.optUp.hasNext = false;
  24485. if (dataSize === 0 && pageNum === 1) {
  24486. // 如果第一页无任何数据且配置了空布局
  24487. isShowNoMore = false;
  24488. me.showEmpty();
  24489. } else {
  24490. // 总列表数少于配置的数量,则不显示无更多数据
  24491. var allDataSize = (pageNum - 1) * pageSize + dataSize;
  24492. if (allDataSize < me.optUp.noMoreSize) {
  24493. isShowNoMore = false;
  24494. } else {
  24495. isShowNoMore = true;
  24496. }
  24497. me.removeEmpty(); // 移除空布局
  24498. }
  24499. } else {
  24500. // 还有下一页
  24501. isShowNoMore = false;
  24502. me.optUp.hasNext = true;
  24503. me.removeEmpty(); // 移除空布局
  24504. }
  24505. }
  24506. // 隐藏上拉
  24507. me.endUpScroll(isShowNoMore);
  24508. }
  24509. };
  24510. /* 回调失败,结束下拉刷新和上拉加载 */
  24511. MeScroll.prototype.endErr = function (errDistance) {
  24512. // 结束下拉,回调失败重置回原来的页码和时间
  24513. if (this.isDownScrolling) {
  24514. this.isDownEndSuccess = false;
  24515. var page = this.optUp.page;
  24516. if (page && this.prePageNum) {
  24517. page.num = this.prePageNum;
  24518. page.time = this.prePageTime;
  24519. }
  24520. this.endDownScroll();
  24521. }
  24522. // 结束上拉,回调失败重置回原来的页码
  24523. if (this.isUpScrolling) {
  24524. this.optUp.page.num--;
  24525. this.endUpScroll(false);
  24526. // 如果是mescroll-body,则需往回滚一定距离
  24527. if (this.isScrollBody && errDistance !== 0) {
  24528. // 不处理0
  24529. if (!errDistance) errDistance = this.optUp.errDistance; // 不传,则取默认
  24530. this.scrollTo(this.getScrollTop() - errDistance, 0); // 往上回滚的距离
  24531. }
  24532. }
  24533. };
  24534. /* 显示空布局 */
  24535. MeScroll.prototype.showEmpty = function () {
  24536. this.optUp.empty.use && this.optUp.empty.onShow && this.optUp.empty.onShow(true);
  24537. };
  24538. /* 移除空布局 */
  24539. MeScroll.prototype.removeEmpty = function () {
  24540. this.optUp.empty.use && this.optUp.empty.onShow && this.optUp.empty.onShow(false);
  24541. };
  24542. /* 显示回到顶部的按钮 */
  24543. MeScroll.prototype.showTopBtn = function () {
  24544. if (!this.topBtnShow) {
  24545. this.topBtnShow = true;
  24546. this.optUp.toTop.onShow && this.optUp.toTop.onShow(true);
  24547. }
  24548. };
  24549. /* 隐藏回到顶部的按钮 */
  24550. MeScroll.prototype.hideTopBtn = function () {
  24551. if (this.topBtnShow) {
  24552. this.topBtnShow = false;
  24553. this.optUp.toTop.onShow && this.optUp.toTop.onShow(false);
  24554. }
  24555. };
  24556. /* 获取滚动条的位置 */
  24557. MeScroll.prototype.getScrollTop = function () {
  24558. return this.scrollTop || 0;
  24559. };
  24560. /* 记录滚动条的位置 */
  24561. MeScroll.prototype.setScrollTop = function (y) {
  24562. this.scrollTop = y;
  24563. };
  24564. /* 滚动到指定位置 */
  24565. MeScroll.prototype.scrollTo = function (y, t) {
  24566. this.myScrollTo && this.myScrollTo(y, t); // scrollview需自定义回到顶部方法
  24567. };
  24568. /* 自定义scrollTo */
  24569. MeScroll.prototype.resetScrollTo = function (myScrollTo) {
  24570. this.myScrollTo = myScrollTo;
  24571. };
  24572. /* 滚动条到底部的距离 */
  24573. MeScroll.prototype.getScrollBottom = function () {
  24574. return this.getScrollHeight() - this.getClientHeight() - this.getScrollTop();
  24575. };
  24576. /* 计步器
  24577. star: 开始值
  24578. end: 结束值
  24579. callback(step,timer): 回调step值,计步器timer,可自行通过window.clearInterval(timer)结束计步器;
  24580. t: 计步时长,传0则直接回调end值;不传则默认300ms
  24581. rate: 周期;不传则默认30ms计步一次
  24582. * */
  24583. MeScroll.prototype.getStep = function (star, end, callback, t, rate) {
  24584. var diff = end - star; // 差值
  24585. if (t === 0 || diff === 0) {
  24586. callback && callback(end);
  24587. return;
  24588. }
  24589. t = t || 300; // 时长 300ms
  24590. rate = rate || 30; // 周期 30ms
  24591. var count = t / rate; // 次数
  24592. var step = diff / count; // 步长
  24593. var i = 0; // 计数
  24594. var timer = setInterval(function () {
  24595. if (i < count - 1) {
  24596. star += step;
  24597. callback && callback(star, timer);
  24598. i++;
  24599. } else {
  24600. callback && callback(end, timer); // 最后一次直接设置end,避免计算误差
  24601. clearInterval(timer);
  24602. }
  24603. }, rate);
  24604. };
  24605. /* 滚动容器的高度 */
  24606. MeScroll.prototype.getClientHeight = function (isReal) {
  24607. var h = this.clientHeight || 0;
  24608. if (h === 0 && isReal !== true) {
  24609. // 未获取到容器的高度,可临时取body的高度 (可能会有误差)
  24610. h = this.getBodyHeight();
  24611. }
  24612. return h;
  24613. };
  24614. MeScroll.prototype.setClientHeight = function (h) {
  24615. this.clientHeight = h;
  24616. };
  24617. /* 滚动内容的高度 */
  24618. MeScroll.prototype.getScrollHeight = function () {
  24619. return this.scrollHeight || 0;
  24620. };
  24621. MeScroll.prototype.setScrollHeight = function (h) {
  24622. this.scrollHeight = h;
  24623. };
  24624. /* body的高度 */
  24625. MeScroll.prototype.getBodyHeight = function () {
  24626. return this.bodyHeight || 0;
  24627. };
  24628. MeScroll.prototype.setBodyHeight = function (h) {
  24629. this.bodyHeight = h;
  24630. };
  24631. /* 阻止浏览器默认滚动事件 */
  24632. MeScroll.prototype.preventDefault = function (e) {
  24633. // 小程序不支持e.preventDefault, 已在wxs中禁止
  24634. // app的bounce只能通过配置pages.json的style.app-plus.bounce为"none"来禁止, 或使用renderjs禁止
  24635. // cancelable:是否可以被禁用; defaultPrevented:是否已经被禁用
  24636. if (e && e.cancelable && !e.defaultPrevented) e.preventDefault();
  24637. };
  24638. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  24639. /***/ }),
  24640. /* 535 */
  24641. /*!*****************************************************************************************************************!*\
  24642. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-uni-option.js ***!
  24643. \*****************************************************************************************************************/
  24644. /*! no static exports found */
  24645. /***/ (function(module, exports, __webpack_require__) {
  24646. "use strict";
  24647. Object.defineProperty(exports, "__esModule", {
  24648. value: true
  24649. });
  24650. exports.default = void 0;
  24651. // 全局配置
  24652. // mescroll-body 和 mescroll-uni 通用
  24653. var GlobalOption = {
  24654. down: {
  24655. // 其他down的配置参数也可以写,这里只展示了常用的配置:
  24656. offset: 80,
  24657. // 在列表顶部,下拉大于80px,松手即可触发下拉刷新的回调
  24658. native: false // 是否使用系统自带的下拉刷新; 默认false; 仅在mescroll-body生效 (值为true时,还需在pages配置enablePullDownRefresh:true;详请参考mescroll-native的案例)
  24659. },
  24660. up: {
  24661. // 其他up的配置参数也可以写,这里只展示了常用的配置:
  24662. offset: 150,
  24663. // 距底部多远时,触发upCallback,仅mescroll-uni生效 ( mescroll-body配置的是pages.json的 onReachBottomDistance )
  24664. toTop: {
  24665. // 回到顶部按钮,需配置src才显示
  24666. src: "https://www.mescroll.com/img/mescroll-totop.png",
  24667. // 图片路径 (建议放入static目录, 如 /static/img/mescroll-totop.png )
  24668. offset: 1000,
  24669. // 列表滚动多少距离才显示回到顶部按钮,默认1000px
  24670. right: 20,
  24671. // 到右边的距离, 默认20 (支持"20rpx", "20px", "20%"格式的值, 纯数字则默认单位rpx)
  24672. bottom: 120,
  24673. // 到底部的距离, 默认120 (支持"20rpx", "20px", "20%"格式的值, 纯数字则默认单位rpx)
  24674. width: 72 // 回到顶部图标的宽度, 默认72 (支持"20rpx", "20px", "20%"格式的值, 纯数字则默认单位rpx)
  24675. },
  24676. empty: {
  24677. use: true,
  24678. // 是否显示空布局
  24679. icon: "https://www.mescroll.com/img/mescroll-empty.png" // 图标路径 (建议放入static目录, 如 /static/img/mescroll-empty.png )
  24680. }
  24681. },
  24682. // 国际化配置
  24683. i18n: {
  24684. // 中文
  24685. zh: {
  24686. down: {
  24687. textInOffset: '下拉刷新',
  24688. // 下拉的距离在offset范围内的提示文本
  24689. textOutOffset: '释放更新',
  24690. // 下拉的距离大于offset范围的提示文本
  24691. textLoading: '加载中 ...',
  24692. // 加载中的提示文本
  24693. textSuccess: '加载成功',
  24694. // 加载成功的文本
  24695. textErr: '加载失败' // 加载失败的文本
  24696. },
  24697. up: {
  24698. textLoading: '加载中 ...',
  24699. // 加载中的提示文本
  24700. textNoMore: '-- END --',
  24701. // 没有更多数据的提示文本
  24702. empty: {
  24703. tip: '~ 空空如也 ~' // 空提示
  24704. }
  24705. }
  24706. },
  24707. // 英文
  24708. en: {
  24709. down: {
  24710. textInOffset: 'drop down refresh',
  24711. textOutOffset: 'release updates',
  24712. textLoading: 'loading ...',
  24713. textSuccess: 'loaded successfully',
  24714. textErr: 'loading failed'
  24715. },
  24716. up: {
  24717. textLoading: 'loading ...',
  24718. textNoMore: '-- END --',
  24719. empty: {
  24720. tip: '~ absolutely empty ~'
  24721. }
  24722. }
  24723. }
  24724. }
  24725. };
  24726. var _default = GlobalOption;
  24727. exports.default = _default;
  24728. /***/ }),
  24729. /* 536 */
  24730. /*!***********************************************************************************************************!*\
  24731. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-i18n.js ***!
  24732. \***********************************************************************************************************/
  24733. /*! no static exports found */
  24734. /***/ (function(module, exports, __webpack_require__) {
  24735. "use strict";
  24736. /* WEBPACK VAR INJECTION */(function(uni) {
  24737. Object.defineProperty(exports, "__esModule", {
  24738. value: true
  24739. });
  24740. exports.default = void 0;
  24741. // 国际化工具类
  24742. var mescrollI18n = {
  24743. // 默认语言
  24744. def: "zh",
  24745. // 获取当前语言类型
  24746. getType: function getType() {
  24747. return uni.getStorageSync("mescroll-i18n") || this.def;
  24748. },
  24749. // 设置当前语言类型
  24750. setType: function setType(type) {
  24751. uni.setStorageSync("mescroll-i18n", type);
  24752. }
  24753. };
  24754. var _default = mescrollI18n;
  24755. exports.default = _default;
  24756. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  24757. /***/ }),
  24758. /* 537 */
  24759. /*!********************************************************************************************************!*\
  24760. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/mescroll-uni/components/mescroll-uni/wxs/mixins.js ***!
  24761. \********************************************************************************************************/
  24762. /*! no static exports found */
  24763. /***/ (function(module, exports, __webpack_require__) {
  24764. "use strict";
  24765. Object.defineProperty(exports, "__esModule", {
  24766. value: true
  24767. });
  24768. exports.default = void 0;
  24769. // 定义在wxs (含renderjs) 逻辑层的数据和方法, 与视图层相互通信
  24770. var WxsMixin = {
  24771. data: function data() {
  24772. return {
  24773. // 传入wxs视图层的数据 (响应式)
  24774. wxsProp: {
  24775. optDown: {},
  24776. // 下拉刷新的配置
  24777. scrollTop: 0,
  24778. // 滚动条的距离
  24779. bodyHeight: 0,
  24780. // body的高度
  24781. isDownScrolling: false,
  24782. // 是否正在下拉刷新中
  24783. isUpScrolling: false,
  24784. // 是否正在上拉加载中
  24785. isScrollBody: true,
  24786. // 是否为mescroll-body滚动
  24787. isUpBoth: true,
  24788. // 上拉加载时,是否同时可以下拉刷新
  24789. t: 0 // 数据更新的标记 (只有数据更新了,才会触发wxs的Observer)
  24790. },
  24791. // 标记调用wxs视图层的方法
  24792. callProp: {
  24793. callType: '',
  24794. // 方法名
  24795. t: 0 // 数据更新的标记 (只有数据更新了,才会触发wxs的Observer)
  24796. },
  24797. // 不用wxs的平台使用此处的wxsBiz对象,抹平wxs的写法 (微信小程序和APP使用的wxsBiz对象是./wxs/wxs.wxs)
  24798. // 不用renderjs的平台使用此处的renderBiz对象,抹平renderjs的写法 (app 和 h5 使用的renderBiz对象是./wxs/renderjs.js)
  24799. renderBiz: {
  24800. propObserver: function propObserver() {} // 抹平renderjs的写法
  24801. }
  24802. };
  24803. },
  24804. methods: {
  24805. // wxs视图层调用逻辑层的回调
  24806. wxsCall: function wxsCall(msg) {
  24807. if (msg.type === 'setWxsProp') {
  24808. // 更新wxsProp数据 (值改变才触发更新)
  24809. this.wxsProp = {
  24810. optDown: this.mescroll.optDown,
  24811. scrollTop: this.mescroll.getScrollTop(),
  24812. bodyHeight: this.mescroll.getBodyHeight(),
  24813. isDownScrolling: this.mescroll.isDownScrolling,
  24814. isUpScrolling: this.mescroll.isUpScrolling,
  24815. isUpBoth: this.mescroll.optUp.isBoth,
  24816. isScrollBody: this.mescroll.isScrollBody,
  24817. t: Date.now()
  24818. };
  24819. } else if (msg.type === 'setLoadType') {
  24820. // 设置inOffset,outOffset的状态
  24821. this.downLoadType = msg.downLoadType;
  24822. // 状态挂载到mescroll对象, 以便在其他组件中使用, 比如<me-video>中
  24823. this.$set(this.mescroll, 'downLoadType', this.downLoadType);
  24824. // 重置是否加载成功的状态
  24825. this.$set(this.mescroll, 'isDownEndSuccess', null);
  24826. } else if (msg.type === 'triggerDownScroll') {
  24827. // 主动触发下拉刷新
  24828. this.mescroll.triggerDownScroll();
  24829. } else if (msg.type === 'endDownScroll') {
  24830. // 结束下拉刷新
  24831. this.mescroll.endDownScroll();
  24832. } else if (msg.type === 'triggerUpScroll') {
  24833. // 主动触发上拉加载
  24834. this.mescroll.triggerUpScroll(true);
  24835. }
  24836. }
  24837. },
  24838. mounted: function mounted() {
  24839. var _this = this;
  24840. // 配置主动触发wxs显示加载进度的回调
  24841. this.mescroll.optDown.afterLoading = function () {
  24842. _this.callProp = {
  24843. callType: "showLoading",
  24844. t: Date.now()
  24845. }; // 触发wxs的方法 (值改变才触发更新)
  24846. };
  24847. // 配置主动触发wxs隐藏加载进度的回调
  24848. this.mescroll.optDown.afterEndDownScroll = function () {
  24849. _this.callProp = {
  24850. callType: "endDownScroll",
  24851. t: Date.now()
  24852. }; // 触发wxs的方法 (值改变才触发更新)
  24853. var delay = 300 + (_this.mescroll.optDown.beforeEndDelay || 0);
  24854. setTimeout(function () {
  24855. if (_this.downLoadType === 4 || _this.downLoadType === 0) {
  24856. _this.callProp = {
  24857. callType: "clearTransform",
  24858. t: Date.now()
  24859. }; // 触发wxs的方法 (值改变才触发更新)
  24860. }
  24861. // 状态挂载到mescroll对象, 以便在其他组件中使用, 比如<me-video>中
  24862. _this.$set(_this.mescroll, 'downLoadType', _this.downLoadType);
  24863. }, delay);
  24864. };
  24865. // 初始化wxs的数据
  24866. this.wxsCall({
  24867. type: 'setWxsProp'
  24868. });
  24869. }
  24870. };
  24871. var _default = WxsMixin;
  24872. exports.default = _default;
  24873. /***/ }),
  24874. /* 538 */,
  24875. /* 539 */,
  24876. /* 540 */,
  24877. /* 541 */,
  24878. /* 542 */,
  24879. /* 543 */,
  24880. /* 544 */,
  24881. /* 545 */,
  24882. /* 546 */,
  24883. /* 547 */
  24884. /*!*****************************************************************************************!*\
  24885. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-rate/props.js ***!
  24886. \*****************************************************************************************/
  24887. /*! no static exports found */
  24888. /***/ (function(module, exports, __webpack_require__) {
  24889. "use strict";
  24890. /* WEBPACK VAR INJECTION */(function(uni) {
  24891. Object.defineProperty(exports, "__esModule", {
  24892. value: true
  24893. });
  24894. exports.default = void 0;
  24895. var _default = {
  24896. props: {
  24897. // 用于v-model双向绑定选中的星星数量
  24898. value: {
  24899. type: [String, Number],
  24900. default: uni.$u.props.rate.value
  24901. },
  24902. // 要显示的星星数量
  24903. count: {
  24904. type: [String, Number],
  24905. default: uni.$u.props.rate.count
  24906. },
  24907. // 是否不可选中
  24908. disabled: {
  24909. type: Boolean,
  24910. default: uni.$u.props.rate.disabled
  24911. },
  24912. // 是否只读
  24913. readonly: {
  24914. type: Boolean,
  24915. default: uni.$u.props.rate.readonly
  24916. },
  24917. // 星星的大小,单位px
  24918. size: {
  24919. type: [String, Number],
  24920. default: uni.$u.props.rate.size
  24921. },
  24922. // 未选中时的颜色
  24923. inactiveColor: {
  24924. type: String,
  24925. default: uni.$u.props.rate.inactiveColor
  24926. },
  24927. // 选中的颜色
  24928. activeColor: {
  24929. type: String,
  24930. default: uni.$u.props.rate.activeColor
  24931. },
  24932. // 星星之间的间距,单位px
  24933. gutter: {
  24934. type: [String, Number],
  24935. default: uni.$u.props.rate.gutter
  24936. },
  24937. // 最少能选择的星星个数
  24938. minCount: {
  24939. type: [String, Number],
  24940. default: uni.$u.props.rate.minCount
  24941. },
  24942. // 是否允许半星
  24943. allowHalf: {
  24944. type: Boolean,
  24945. default: uni.$u.props.rate.allowHalf
  24946. },
  24947. // 选中时的图标(星星)
  24948. activeIcon: {
  24949. type: String,
  24950. default: uni.$u.props.rate.activeIcon
  24951. },
  24952. // 未选中时的图标(星星)
  24953. inactiveIcon: {
  24954. type: String,
  24955. default: uni.$u.props.rate.inactiveIcon
  24956. },
  24957. // 是否可以通过滑动手势选择评分
  24958. touchable: {
  24959. type: Boolean,
  24960. default: uni.$u.props.rate.touchable
  24961. }
  24962. }
  24963. };
  24964. exports.default = _default;
  24965. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  24966. /***/ }),
  24967. /* 548 */,
  24968. /* 549 */,
  24969. /* 550 */,
  24970. /* 551 */,
  24971. /* 552 */,
  24972. /* 553 */,
  24973. /* 554 */,
  24974. /* 555 */
  24975. /*!******************************************************************************************!*\
  24976. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-album/props.js ***!
  24977. \******************************************************************************************/
  24978. /*! no static exports found */
  24979. /***/ (function(module, exports, __webpack_require__) {
  24980. "use strict";
  24981. /* WEBPACK VAR INJECTION */(function(uni) {
  24982. Object.defineProperty(exports, "__esModule", {
  24983. value: true
  24984. });
  24985. exports.default = void 0;
  24986. var _default = {
  24987. props: {
  24988. // 图片地址,Array<String>|Array<Object>形式
  24989. urls: {
  24990. type: Array,
  24991. default: uni.$u.props.album.urls
  24992. },
  24993. // 指定从数组的对象元素中读取哪个属性作为图片地址
  24994. keyName: {
  24995. type: String,
  24996. default: uni.$u.props.album.keyName
  24997. },
  24998. // 单图时,图片长边的长度
  24999. singleSize: {
  25000. type: [String, Number],
  25001. default: uni.$u.props.album.singleSize
  25002. },
  25003. // 多图时,图片边长
  25004. multipleSize: {
  25005. type: [String, Number],
  25006. default: uni.$u.props.album.multipleSize
  25007. },
  25008. // 多图时,图片水平和垂直之间的间隔
  25009. space: {
  25010. type: [String, Number],
  25011. default: uni.$u.props.album.space
  25012. },
  25013. // 单图时,图片缩放裁剪的模式
  25014. singleMode: {
  25015. type: String,
  25016. default: uni.$u.props.album.singleMode
  25017. },
  25018. // 多图时,图片缩放裁剪的模式
  25019. multipleMode: {
  25020. type: String,
  25021. default: uni.$u.props.album.multipleMode
  25022. },
  25023. // 最多展示的图片数量,超出时最后一个位置将会显示剩余图片数量
  25024. maxCount: {
  25025. type: [String, Number],
  25026. default: uni.$u.props.album.maxCount
  25027. },
  25028. // 是否可以预览图片
  25029. previewFullImage: {
  25030. type: Boolean,
  25031. default: uni.$u.props.album.previewFullImage
  25032. },
  25033. // 每行展示图片数量,如设置,singleSize和multipleSize将会无效
  25034. rowCount: {
  25035. type: [String, Number],
  25036. default: uni.$u.props.album.rowCount
  25037. },
  25038. // 超出maxCount时是否显示查看更多的提示
  25039. showMore: {
  25040. type: Boolean,
  25041. default: uni.$u.props.album.showMore
  25042. }
  25043. }
  25044. };
  25045. exports.default = _default;
  25046. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25047. /***/ }),
  25048. /* 556 */,
  25049. /* 557 */,
  25050. /* 558 */,
  25051. /* 559 */,
  25052. /* 560 */,
  25053. /* 561 */,
  25054. /* 562 */,
  25055. /* 563 */
  25056. /*!***************************************************************************************************!*\
  25057. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-checkbox-group/props.js ***!
  25058. \***************************************************************************************************/
  25059. /*! no static exports found */
  25060. /***/ (function(module, exports, __webpack_require__) {
  25061. "use strict";
  25062. /* WEBPACK VAR INJECTION */(function(uni) {
  25063. Object.defineProperty(exports, "__esModule", {
  25064. value: true
  25065. });
  25066. exports.default = void 0;
  25067. var _default = {
  25068. props: {
  25069. // 标识符
  25070. name: {
  25071. type: String,
  25072. default: uni.$u.props.checkboxGroup.name
  25073. },
  25074. // 绑定的值
  25075. value: {
  25076. type: Array,
  25077. default: uni.$u.props.checkboxGroup.value
  25078. },
  25079. // 形状,circle-圆形,square-方形
  25080. shape: {
  25081. type: String,
  25082. default: uni.$u.props.checkboxGroup.shape
  25083. },
  25084. // 是否禁用全部checkbox
  25085. disabled: {
  25086. type: Boolean,
  25087. default: uni.$u.props.checkboxGroup.disabled
  25088. },
  25089. // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
  25090. activeColor: {
  25091. type: String,
  25092. default: uni.$u.props.checkboxGroup.activeColor
  25093. },
  25094. // 未选中的颜色
  25095. inactiveColor: {
  25096. type: String,
  25097. default: uni.$u.props.checkboxGroup.inactiveColor
  25098. },
  25099. // 整个组件的尺寸,默认px
  25100. size: {
  25101. type: [String, Number],
  25102. default: uni.$u.props.checkboxGroup.size
  25103. },
  25104. // 布局方式,row-横向,column-纵向
  25105. placement: {
  25106. type: String,
  25107. default: uni.$u.props.checkboxGroup.placement
  25108. },
  25109. // label的字体大小,px单位
  25110. labelSize: {
  25111. type: [String, Number],
  25112. default: uni.$u.props.checkboxGroup.labelSize
  25113. },
  25114. // label的字体颜色
  25115. labelColor: {
  25116. type: [String],
  25117. default: uni.$u.props.checkboxGroup.labelColor
  25118. },
  25119. // 是否禁止点击文本操作
  25120. labelDisabled: {
  25121. type: Boolean,
  25122. default: uni.$u.props.checkboxGroup.labelDisabled
  25123. },
  25124. // 图标颜色
  25125. iconColor: {
  25126. type: String,
  25127. default: uni.$u.props.checkboxGroup.iconColor
  25128. },
  25129. // 图标的大小,单位px
  25130. iconSize: {
  25131. type: [String, Number],
  25132. default: uni.$u.props.checkboxGroup.iconSize
  25133. },
  25134. // 勾选图标的对齐方式,left-左边,right-右边
  25135. iconPlacement: {
  25136. type: String,
  25137. default: uni.$u.props.checkboxGroup.iconPlacement
  25138. },
  25139. // 竖向配列时,是否显示下划线
  25140. borderBottom: {
  25141. type: Boolean,
  25142. default: uni.$u.props.checkboxGroup.borderBottom
  25143. }
  25144. }
  25145. };
  25146. exports.default = _default;
  25147. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25148. /***/ }),
  25149. /* 564 */,
  25150. /* 565 */,
  25151. /* 566 */,
  25152. /* 567 */,
  25153. /* 568 */,
  25154. /* 569 */,
  25155. /* 570 */,
  25156. /* 571 */
  25157. /*!*********************************************************************************************!*\
  25158. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-checkbox/props.js ***!
  25159. \*********************************************************************************************/
  25160. /*! no static exports found */
  25161. /***/ (function(module, exports, __webpack_require__) {
  25162. "use strict";
  25163. /* WEBPACK VAR INJECTION */(function(uni) {
  25164. Object.defineProperty(exports, "__esModule", {
  25165. value: true
  25166. });
  25167. exports.default = void 0;
  25168. var _default = {
  25169. props: {
  25170. // checkbox的名称
  25171. name: {
  25172. type: [String, Number, Boolean],
  25173. default: uni.$u.props.checkbox.name
  25174. },
  25175. // 形状,square为方形,circle为圆型
  25176. shape: {
  25177. type: String,
  25178. default: uni.$u.props.checkbox.shape
  25179. },
  25180. // 整体的大小
  25181. size: {
  25182. type: [String, Number],
  25183. default: uni.$u.props.checkbox.size
  25184. },
  25185. // 是否默认选中
  25186. checked: {
  25187. type: Boolean,
  25188. default: uni.$u.props.checkbox.checked
  25189. },
  25190. // 是否禁用
  25191. disabled: {
  25192. type: [String, Boolean],
  25193. default: uni.$u.props.checkbox.disabled
  25194. },
  25195. // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
  25196. activeColor: {
  25197. type: String,
  25198. default: uni.$u.props.checkbox.activeColor
  25199. },
  25200. // 未选中的颜色
  25201. inactiveColor: {
  25202. type: String,
  25203. default: uni.$u.props.checkbox.inactiveColor
  25204. },
  25205. // 图标的大小,单位px
  25206. iconSize: {
  25207. type: [String, Number],
  25208. default: uni.$u.props.checkbox.iconSize
  25209. },
  25210. // 图标颜色
  25211. iconColor: {
  25212. type: String,
  25213. default: uni.$u.props.checkbox.iconColor
  25214. },
  25215. // label提示文字,因为nvue下,直接slot进来的文字,由于特殊的结构,无法修改样式
  25216. label: {
  25217. type: [String, Number],
  25218. default: uni.$u.props.checkbox.label
  25219. },
  25220. // label的字体大小,px单位
  25221. labelSize: {
  25222. type: [String, Number],
  25223. default: uni.$u.props.checkbox.labelSize
  25224. },
  25225. // label的颜色
  25226. labelColor: {
  25227. type: String,
  25228. default: uni.$u.props.checkbox.labelColor
  25229. },
  25230. // 是否禁止点击提示语选中复选框
  25231. labelDisabled: {
  25232. type: [String, Boolean],
  25233. default: uni.$u.props.checkbox.labelDisabled
  25234. }
  25235. }
  25236. };
  25237. exports.default = _default;
  25238. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25239. /***/ }),
  25240. /* 572 */,
  25241. /* 573 */,
  25242. /* 574 */,
  25243. /* 575 */,
  25244. /* 576 */,
  25245. /* 577 */,
  25246. /* 578 */,
  25247. /* 579 */
  25248. /*!*************************************************************************************************!*\
  25249. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-swipe-action/props.js ***!
  25250. \*************************************************************************************************/
  25251. /*! no static exports found */
  25252. /***/ (function(module, exports, __webpack_require__) {
  25253. "use strict";
  25254. /* WEBPACK VAR INJECTION */(function(uni) {
  25255. Object.defineProperty(exports, "__esModule", {
  25256. value: true
  25257. });
  25258. exports.default = void 0;
  25259. var _default = {
  25260. props: {
  25261. // 是否自动关闭其他swipe按钮组
  25262. autoClose: {
  25263. type: Boolean,
  25264. default: uni.$u.props.swipeAction.autoClose
  25265. }
  25266. }
  25267. };
  25268. exports.default = _default;
  25269. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25270. /***/ }),
  25271. /* 580 */,
  25272. /* 581 */,
  25273. /* 582 */,
  25274. /* 583 */,
  25275. /* 584 */,
  25276. /* 585 */
  25277. /*!**********************************************************************************!*\
  25278. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/libs/mixin/touch.js ***!
  25279. \**********************************************************************************/
  25280. /*! no static exports found */
  25281. /***/ (function(module, exports, __webpack_require__) {
  25282. "use strict";
  25283. Object.defineProperty(exports, "__esModule", {
  25284. value: true
  25285. });
  25286. exports.default = void 0;
  25287. var MIN_DISTANCE = 10;
  25288. function getDirection(x, y) {
  25289. if (x > y && x > MIN_DISTANCE) {
  25290. return 'horizontal';
  25291. }
  25292. if (y > x && y > MIN_DISTANCE) {
  25293. return 'vertical';
  25294. }
  25295. return '';
  25296. }
  25297. var _default = {
  25298. methods: {
  25299. getTouchPoint: function getTouchPoint(e) {
  25300. if (!e) {
  25301. return {
  25302. x: 0,
  25303. y: 0
  25304. };
  25305. }
  25306. if (e.touches && e.touches[0]) {
  25307. return {
  25308. x: e.touches[0].pageX,
  25309. y: e.touches[0].pageY
  25310. };
  25311. }
  25312. if (e.changedTouches && e.changedTouches[0]) {
  25313. return {
  25314. x: e.changedTouches[0].pageX,
  25315. y: e.changedTouches[0].pageY
  25316. };
  25317. }
  25318. return {
  25319. x: e.clientX || 0,
  25320. y: e.clientY || 0
  25321. };
  25322. },
  25323. resetTouchStatus: function resetTouchStatus() {
  25324. this.direction = '';
  25325. this.deltaX = 0;
  25326. this.deltaY = 0;
  25327. this.offsetX = 0;
  25328. this.offsetY = 0;
  25329. },
  25330. touchStart: function touchStart(event) {
  25331. this.resetTouchStatus();
  25332. var touch = this.getTouchPoint(event);
  25333. this.startX = touch.x;
  25334. this.startY = touch.y;
  25335. },
  25336. touchMove: function touchMove(event) {
  25337. var touch = this.getTouchPoint(event);
  25338. this.deltaX = touch.x - this.startX;
  25339. this.deltaY = touch.y - this.startY;
  25340. this.offsetX = Math.abs(this.deltaX);
  25341. this.offsetY = Math.abs(this.deltaY);
  25342. this.direction = this.direction || getDirection(this.offsetX, this.offsetY);
  25343. }
  25344. }
  25345. };
  25346. exports.default = _default;
  25347. /***/ }),
  25348. /* 586 */
  25349. /*!******************************************************************************************************!*\
  25350. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-swipe-action-item/props.js ***!
  25351. \******************************************************************************************************/
  25352. /*! no static exports found */
  25353. /***/ (function(module, exports, __webpack_require__) {
  25354. "use strict";
  25355. /* WEBPACK VAR INJECTION */(function(uni) {
  25356. Object.defineProperty(exports, "__esModule", {
  25357. value: true
  25358. });
  25359. exports.default = void 0;
  25360. var _default2 = {
  25361. props: {
  25362. // 控制打开或者关闭
  25363. show: {
  25364. type: Boolean,
  25365. default: uni.$u.props.swipeActionItem.show
  25366. },
  25367. // 标识符,如果是v-for,可用index索引值
  25368. name: {
  25369. type: [String, Number],
  25370. default: uni.$u.props.swipeActionItem.name
  25371. },
  25372. // 是否禁用
  25373. disabled: {
  25374. type: Boolean,
  25375. default: uni.$u.props.swipeActionItem.disabled
  25376. },
  25377. // 是否自动关闭其他swipe按钮组
  25378. autoClose: {
  25379. type: Boolean,
  25380. default: uni.$u.props.swipeActionItem.autoClose
  25381. },
  25382. // 滑动距离阈值,只有大于此值,才被认为是要打开菜单
  25383. threshold: {
  25384. type: Number,
  25385. default: uni.$u.props.swipeActionItem.threshold
  25386. },
  25387. // 右侧按钮内容
  25388. options: {
  25389. type: Array,
  25390. default: function _default() {
  25391. return uni.$u.props.swipeActionItem.rightOptions;
  25392. }
  25393. },
  25394. // 动画过渡时间,单位ms
  25395. duration: {
  25396. type: [String, Number],
  25397. default: uni.$u.props.swipeActionItem.duration
  25398. }
  25399. }
  25400. };
  25401. exports.default = _default2;
  25402. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25403. /***/ }),
  25404. /* 587 */
  25405. /*!****************************************************************************************************!*\
  25406. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-swipe-action-item/wxs.js ***!
  25407. \****************************************************************************************************/
  25408. /*! no static exports found */
  25409. /***/ (function(module, exports, __webpack_require__) {
  25410. "use strict";
  25411. Object.defineProperty(exports, "__esModule", {
  25412. value: true
  25413. });
  25414. exports.default = void 0;
  25415. var _default = {
  25416. methods: {
  25417. // 关闭时执行
  25418. closeHandler: function closeHandler() {
  25419. this.status = 'close';
  25420. },
  25421. setState: function setState(status) {
  25422. this.status = status;
  25423. },
  25424. closeOther: function closeOther() {
  25425. // 尝试关闭其他打开的单元格
  25426. this.parent && this.parent.closeOther(this);
  25427. }
  25428. }
  25429. };
  25430. exports.default = _default;
  25431. /***/ }),
  25432. /* 588 */,
  25433. /* 589 */,
  25434. /* 590 */,
  25435. /* 591 */,
  25436. /* 592 */,
  25437. /* 593 */,
  25438. /* 594 */,
  25439. /* 595 */,
  25440. /* 596 */,
  25441. /* 597 */
  25442. /*!***********************************************************************************************!*\
  25443. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-number-box/props.js ***!
  25444. \***********************************************************************************************/
  25445. /*! no static exports found */
  25446. /***/ (function(module, exports, __webpack_require__) {
  25447. "use strict";
  25448. /* WEBPACK VAR INJECTION */(function(uni) {
  25449. Object.defineProperty(exports, "__esModule", {
  25450. value: true
  25451. });
  25452. exports.default = void 0;
  25453. var _default = {
  25454. props: {
  25455. // 步进器标识符,在change回调返回
  25456. name: {
  25457. type: [String, Number],
  25458. default: uni.$u.props.numberBox.name
  25459. },
  25460. // 用于双向绑定的值,初始化时设置设为默认min值(最小值)
  25461. value: {
  25462. type: [String, Number],
  25463. default: uni.$u.props.numberBox.value
  25464. },
  25465. // 最小值
  25466. min: {
  25467. type: [String, Number],
  25468. default: uni.$u.props.numberBox.min
  25469. },
  25470. // 最大值
  25471. max: {
  25472. type: [String, Number],
  25473. default: uni.$u.props.numberBox.max
  25474. },
  25475. // 加减的步长,可为小数
  25476. step: {
  25477. type: [String, Number],
  25478. default: uni.$u.props.numberBox.step
  25479. },
  25480. // 是否只允许输入整数
  25481. integer: {
  25482. type: Boolean,
  25483. default: uni.$u.props.numberBox.integer
  25484. },
  25485. // 是否禁用,包括输入框,加减按钮
  25486. disabled: {
  25487. type: Boolean,
  25488. default: uni.$u.props.numberBox.disabled
  25489. },
  25490. // 是否禁用输入框
  25491. disabledInput: {
  25492. type: Boolean,
  25493. default: uni.$u.props.numberBox.disabledInput
  25494. },
  25495. // 是否开启异步变更,开启后需要手动控制输入值
  25496. asyncChange: {
  25497. type: Boolean,
  25498. default: uni.$u.props.numberBox.asyncChange
  25499. },
  25500. // 输入框宽度,单位为px
  25501. inputWidth: {
  25502. type: [String, Number],
  25503. default: uni.$u.props.numberBox.inputWidth
  25504. },
  25505. // 是否显示减少按钮
  25506. showMinus: {
  25507. type: Boolean,
  25508. default: uni.$u.props.numberBox.showMinus
  25509. },
  25510. // 是否显示增加按钮
  25511. showPlus: {
  25512. type: Boolean,
  25513. default: uni.$u.props.numberBox.showPlus
  25514. },
  25515. // 显示的小数位数
  25516. decimalLength: {
  25517. type: [String, Number, null],
  25518. default: uni.$u.props.numberBox.decimalLength
  25519. },
  25520. // 是否开启长按加减手势
  25521. longPress: {
  25522. type: Boolean,
  25523. default: uni.$u.props.numberBox.longPress
  25524. },
  25525. // 输入框文字和加减按钮图标的颜色
  25526. color: {
  25527. type: String,
  25528. default: uni.$u.props.numberBox.color
  25529. },
  25530. // 按钮大小,宽高等于此值,单位px,输入框高度和此值保持一致
  25531. buttonSize: {
  25532. type: [String, Number],
  25533. default: uni.$u.props.numberBox.buttonSize
  25534. },
  25535. // 输入框和按钮的背景颜色
  25536. bgColor: {
  25537. type: String,
  25538. default: uni.$u.props.numberBox.bgColor
  25539. },
  25540. // 指定光标于键盘的距离,避免键盘遮挡输入框,单位px
  25541. cursorSpacing: {
  25542. type: [String, Number],
  25543. default: uni.$u.props.numberBox.cursorSpacing
  25544. },
  25545. // 是否禁用增加按钮
  25546. disablePlus: {
  25547. type: Boolean,
  25548. default: uni.$u.props.numberBox.disablePlus
  25549. },
  25550. // 是否禁用减少按钮
  25551. disableMinus: {
  25552. type: Boolean,
  25553. default: uni.$u.props.numberBox.disableMinus
  25554. },
  25555. // 加减按钮图标的样式
  25556. iconStyle: {
  25557. type: [Object, String],
  25558. default: uni.$u.props.numberBox.iconStyle
  25559. }
  25560. }
  25561. };
  25562. exports.default = _default;
  25563. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25564. /***/ }),
  25565. /* 598 */,
  25566. /* 599 */,
  25567. /* 600 */,
  25568. /* 601 */,
  25569. /* 602 */,
  25570. /* 603 */,
  25571. /* 604 */,
  25572. /* 605 */
  25573. /*!*****************************************************************************************!*\
  25574. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-tabs/props.js ***!
  25575. \*****************************************************************************************/
  25576. /*! no static exports found */
  25577. /***/ (function(module, exports, __webpack_require__) {
  25578. "use strict";
  25579. /* WEBPACK VAR INJECTION */(function(uni) {
  25580. Object.defineProperty(exports, "__esModule", {
  25581. value: true
  25582. });
  25583. exports.default = void 0;
  25584. var _default = {
  25585. props: {
  25586. // 滑块的移动过渡时间,单位ms
  25587. duration: {
  25588. type: Number,
  25589. default: uni.$u.props.tabs.duration
  25590. },
  25591. // tabs标签数组
  25592. list: {
  25593. type: Array,
  25594. default: uni.$u.props.tabs.list
  25595. },
  25596. // 滑块颜色
  25597. lineColor: {
  25598. type: String,
  25599. default: uni.$u.props.tabs.lineColor
  25600. },
  25601. // 菜单选择中时的样式
  25602. activeStyle: {
  25603. type: [String, Object],
  25604. default: uni.$u.props.tabs.activeStyle
  25605. },
  25606. // 菜单非选中时的样式
  25607. inactiveStyle: {
  25608. type: [String, Object],
  25609. default: uni.$u.props.tabs.inactiveStyle
  25610. },
  25611. // 滑块长度
  25612. lineWidth: {
  25613. type: [String, Number],
  25614. default: uni.$u.props.tabs.lineWidth
  25615. },
  25616. // 滑块高度
  25617. lineHeight: {
  25618. type: [String, Number],
  25619. default: uni.$u.props.tabs.lineHeight
  25620. },
  25621. // 滑块背景显示大小,当滑块背景设置为图片时使用
  25622. lineBgSize: {
  25623. type: String,
  25624. default: uni.$u.props.tabs.lineBgSize
  25625. },
  25626. // 菜单item的样式
  25627. itemStyle: {
  25628. type: [String, Object],
  25629. default: uni.$u.props.tabs.itemStyle
  25630. },
  25631. // 菜单是否可滚动
  25632. scrollable: {
  25633. type: Boolean,
  25634. default: uni.$u.props.tabs.scrollable
  25635. },
  25636. // 当前选中标签的索引
  25637. current: {
  25638. type: [Number, String],
  25639. default: uni.$u.props.tabs.current
  25640. },
  25641. // 默认读取的键名
  25642. keyName: {
  25643. type: String,
  25644. default: uni.$u.props.tabs.keyName
  25645. }
  25646. }
  25647. };
  25648. exports.default = _default;
  25649. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25650. /***/ }),
  25651. /* 606 */,
  25652. /* 607 */,
  25653. /* 608 */,
  25654. /* 609 */,
  25655. /* 610 */,
  25656. /* 611 */,
  25657. /* 612 */,
  25658. /* 613 */
  25659. /*!***********************************************************************************************!*\
  25660. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-subsection/props.js ***!
  25661. \***********************************************************************************************/
  25662. /*! no static exports found */
  25663. /***/ (function(module, exports, __webpack_require__) {
  25664. "use strict";
  25665. /* WEBPACK VAR INJECTION */(function(uni) {
  25666. Object.defineProperty(exports, "__esModule", {
  25667. value: true
  25668. });
  25669. exports.default = void 0;
  25670. var _default = {
  25671. props: {
  25672. // tab的数据
  25673. list: {
  25674. type: Array,
  25675. default: uni.$u.props.subsection.list
  25676. },
  25677. // 当前活动的tab的index
  25678. current: {
  25679. type: [String, Number],
  25680. default: uni.$u.props.subsection.current
  25681. },
  25682. // 激活的颜色
  25683. activeColor: {
  25684. type: String,
  25685. default: uni.$u.props.subsection.activeColor
  25686. },
  25687. // 未激活的颜色
  25688. inactiveColor: {
  25689. type: String,
  25690. default: uni.$u.props.subsection.inactiveColor
  25691. },
  25692. // 模式选择,mode=button为按钮形式,mode=subsection时为分段模式
  25693. mode: {
  25694. type: String,
  25695. default: uni.$u.props.subsection.mode
  25696. },
  25697. // 字体大小
  25698. fontSize: {
  25699. type: [String, Number],
  25700. default: uni.$u.props.subsection.fontSize
  25701. },
  25702. // 激活tab的字体是否加粗
  25703. bold: {
  25704. type: Boolean,
  25705. default: uni.$u.props.subsection.bold
  25706. },
  25707. // mode = button时,组件背景颜色
  25708. bgColor: {
  25709. type: String,
  25710. default: uni.$u.props.subsection.bgColor
  25711. },
  25712. // 从list元素对象中读取的键名
  25713. keyName: {
  25714. type: String,
  25715. default: uni.$u.props.subsection.keyName
  25716. }
  25717. }
  25718. };
  25719. exports.default = _default;
  25720. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25721. /***/ }),
  25722. /* 614 */,
  25723. /* 615 */,
  25724. /* 616 */,
  25725. /* 617 */,
  25726. /* 618 */,
  25727. /* 619 */,
  25728. /* 620 */,
  25729. /* 621 */
  25730. /*!*****************************************************************************************!*\
  25731. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-link/props.js ***!
  25732. \*****************************************************************************************/
  25733. /*! no static exports found */
  25734. /***/ (function(module, exports, __webpack_require__) {
  25735. "use strict";
  25736. /* WEBPACK VAR INJECTION */(function(uni) {
  25737. Object.defineProperty(exports, "__esModule", {
  25738. value: true
  25739. });
  25740. exports.default = void 0;
  25741. var _default = {
  25742. props: {
  25743. // 文字颜色
  25744. color: {
  25745. type: String,
  25746. default: uni.$u.props.link.color
  25747. },
  25748. // 字体大小,单位px
  25749. fontSize: {
  25750. type: [String, Number],
  25751. default: uni.$u.props.link.fontSize
  25752. },
  25753. // 是否显示下划线
  25754. underLine: {
  25755. type: Boolean,
  25756. default: uni.$u.props.link.underLine
  25757. },
  25758. // 要跳转的链接
  25759. href: {
  25760. type: String,
  25761. default: uni.$u.props.link.href
  25762. },
  25763. // 小程序中复制到粘贴板的提示语
  25764. mpTips: {
  25765. type: String,
  25766. default: uni.$u.props.link.mpTips
  25767. },
  25768. // 下划线颜色
  25769. lineColor: {
  25770. type: String,
  25771. default: uni.$u.props.link.lineColor
  25772. },
  25773. // 超链接的问题,不使用slot形式传入,是因为nvue下无法修改颜色
  25774. text: {
  25775. type: String,
  25776. default: uni.$u.props.link.text
  25777. }
  25778. }
  25779. };
  25780. exports.default = _default;
  25781. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25782. /***/ }),
  25783. /* 622 */,
  25784. /* 623 */,
  25785. /* 624 */,
  25786. /* 625 */,
  25787. /* 626 */,
  25788. /* 627 */,
  25789. /* 628 */,
  25790. /* 629 */
  25791. /*!*************************************************************************************************!*\
  25792. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-loading-icon/props.js ***!
  25793. \*************************************************************************************************/
  25794. /*! no static exports found */
  25795. /***/ (function(module, exports, __webpack_require__) {
  25796. "use strict";
  25797. /* WEBPACK VAR INJECTION */(function(uni) {
  25798. Object.defineProperty(exports, "__esModule", {
  25799. value: true
  25800. });
  25801. exports.default = void 0;
  25802. var _default = {
  25803. props: {
  25804. // 是否显示组件
  25805. show: {
  25806. type: Boolean,
  25807. default: uni.$u.props.loadingIcon.show
  25808. },
  25809. // 颜色
  25810. color: {
  25811. type: String,
  25812. default: uni.$u.props.loadingIcon.color
  25813. },
  25814. // 提示文字颜色
  25815. textColor: {
  25816. type: String,
  25817. default: uni.$u.props.loadingIcon.textColor
  25818. },
  25819. // 文字和图标是否垂直排列
  25820. vertical: {
  25821. type: Boolean,
  25822. default: uni.$u.props.loadingIcon.vertical
  25823. },
  25824. // 模式选择,circle-圆形,spinner-花朵形,semicircle-半圆形
  25825. mode: {
  25826. type: String,
  25827. default: uni.$u.props.loadingIcon.mode
  25828. },
  25829. // 图标大小,单位默认px
  25830. size: {
  25831. type: [String, Number],
  25832. default: uni.$u.props.loadingIcon.size
  25833. },
  25834. // 文字大小
  25835. textSize: {
  25836. type: [String, Number],
  25837. default: uni.$u.props.loadingIcon.textSize
  25838. },
  25839. // 文字内容
  25840. text: {
  25841. type: [String, Number],
  25842. default: uni.$u.props.loadingIcon.text
  25843. },
  25844. // 动画模式
  25845. timingFunction: {
  25846. type: String,
  25847. default: uni.$u.props.loadingIcon.timingFunction
  25848. },
  25849. // 动画执行周期时间
  25850. duration: {
  25851. type: [String, Number],
  25852. default: uni.$u.props.loadingIcon.duration
  25853. },
  25854. // mode=circle时的暗边颜色
  25855. inactiveColor: {
  25856. type: String,
  25857. default: uni.$u.props.loadingIcon.inactiveColor
  25858. }
  25859. }
  25860. };
  25861. exports.default = _default;
  25862. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25863. /***/ }),
  25864. /* 630 */,
  25865. /* 631 */,
  25866. /* 632 */,
  25867. /* 633 */,
  25868. /* 634 */,
  25869. /* 635 */,
  25870. /* 636 */,
  25871. /* 637 */
  25872. /*!*****************************************************************************************************!*\
  25873. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-swiper-indicator/props.js ***!
  25874. \*****************************************************************************************************/
  25875. /*! no static exports found */
  25876. /***/ (function(module, exports, __webpack_require__) {
  25877. "use strict";
  25878. /* WEBPACK VAR INJECTION */(function(uni) {
  25879. Object.defineProperty(exports, "__esModule", {
  25880. value: true
  25881. });
  25882. exports.default = void 0;
  25883. var _default = {
  25884. props: {
  25885. // 轮播的长度
  25886. length: {
  25887. type: [String, Number],
  25888. default: uni.$u.props.swiperIndicator.length
  25889. },
  25890. // 当前处于活动状态的轮播的索引
  25891. current: {
  25892. type: [String, Number],
  25893. default: uni.$u.props.swiperIndicator.current
  25894. },
  25895. // 指示器非激活颜色
  25896. indicatorActiveColor: {
  25897. type: String,
  25898. default: uni.$u.props.swiperIndicator.indicatorActiveColor
  25899. },
  25900. // 指示器的激活颜色
  25901. indicatorInactiveColor: {
  25902. type: String,
  25903. default: uni.$u.props.swiperIndicator.indicatorInactiveColor
  25904. },
  25905. // 指示器模式,line-线型,dot-点型
  25906. indicatorMode: {
  25907. type: String,
  25908. default: uni.$u.props.swiperIndicator.indicatorMode
  25909. }
  25910. }
  25911. };
  25912. exports.default = _default;
  25913. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25914. /***/ }),
  25915. /* 638 */,
  25916. /* 639 */,
  25917. /* 640 */,
  25918. /* 641 */,
  25919. /* 642 */,
  25920. /* 643 */,
  25921. /* 644 */,
  25922. /* 645 */,
  25923. /* 646 */,
  25924. /* 647 */,
  25925. /* 648 */,
  25926. /* 649 */,
  25927. /* 650 */,
  25928. /* 651 */,
  25929. /* 652 */
  25930. /*!********************************************************************************************!*\
  25931. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-overlay/props.js ***!
  25932. \********************************************************************************************/
  25933. /*! no static exports found */
  25934. /***/ (function(module, exports, __webpack_require__) {
  25935. "use strict";
  25936. /* WEBPACK VAR INJECTION */(function(uni) {
  25937. Object.defineProperty(exports, "__esModule", {
  25938. value: true
  25939. });
  25940. exports.default = void 0;
  25941. var _default = {
  25942. props: {
  25943. // 是否显示遮罩
  25944. show: {
  25945. type: Boolean,
  25946. default: uni.$u.props.overlay.show
  25947. },
  25948. // 层级z-index
  25949. zIndex: {
  25950. type: [String, Number],
  25951. default: uni.$u.props.overlay.zIndex
  25952. },
  25953. // 遮罩的过渡时间,单位为ms
  25954. duration: {
  25955. type: [String, Number],
  25956. default: uni.$u.props.overlay.duration
  25957. },
  25958. // 不透明度值,当做rgba的第四个参数
  25959. opacity: {
  25960. type: [String, Number],
  25961. default: uni.$u.props.overlay.opacity
  25962. }
  25963. }
  25964. };
  25965. exports.default = _default;
  25966. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25967. /***/ }),
  25968. /* 653 */,
  25969. /* 654 */,
  25970. /* 655 */,
  25971. /* 656 */,
  25972. /* 657 */,
  25973. /* 658 */,
  25974. /* 659 */,
  25975. /* 660 */
  25976. /*!****************************************************************************************!*\
  25977. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-gap/props.js ***!
  25978. \****************************************************************************************/
  25979. /*! no static exports found */
  25980. /***/ (function(module, exports, __webpack_require__) {
  25981. "use strict";
  25982. /* WEBPACK VAR INJECTION */(function(uni) {
  25983. Object.defineProperty(exports, "__esModule", {
  25984. value: true
  25985. });
  25986. exports.default = void 0;
  25987. var _default = {
  25988. props: {
  25989. // 背景颜色(默认transparent)
  25990. bgColor: {
  25991. type: String,
  25992. default: uni.$u.props.gap.bgColor
  25993. },
  25994. // 分割槽高度,单位px(默认30)
  25995. height: {
  25996. type: [String, Number],
  25997. default: uni.$u.props.gap.height
  25998. },
  25999. // 与上一个组件的距离
  26000. marginTop: {
  26001. type: [String, Number],
  26002. default: uni.$u.props.gap.marginTop
  26003. },
  26004. // 与下一个组件的距离
  26005. marginBottom: {
  26006. type: [String, Number],
  26007. default: uni.$u.props.gap.marginBottom
  26008. }
  26009. }
  26010. };
  26011. exports.default = _default;
  26012. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  26013. /***/ }),
  26014. /* 661 */,
  26015. /* 662 */,
  26016. /* 663 */,
  26017. /* 664 */,
  26018. /* 665 */,
  26019. /* 666 */,
  26020. /* 667 */,
  26021. /* 668 */
  26022. /*!*******************************************************************************************!*\
  26023. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-tabbar/props.js ***!
  26024. \*******************************************************************************************/
  26025. /*! no static exports found */
  26026. /***/ (function(module, exports, __webpack_require__) {
  26027. "use strict";
  26028. /* WEBPACK VAR INJECTION */(function(uni) {
  26029. Object.defineProperty(exports, "__esModule", {
  26030. value: true
  26031. });
  26032. exports.default = void 0;
  26033. var _default = {
  26034. props: {
  26035. // 当前匹配项的name
  26036. value: {
  26037. type: [String, Number, null],
  26038. default: uni.$u.props.tabbar.value
  26039. },
  26040. // 是否为iPhoneX留出底部安全距离
  26041. safeAreaInsetBottom: {
  26042. type: Boolean,
  26043. default: uni.$u.props.tabbar.safeAreaInsetBottom
  26044. },
  26045. // 是否显示上方边框
  26046. border: {
  26047. type: Boolean,
  26048. default: uni.$u.props.tabbar.border
  26049. },
  26050. // 元素层级z-index
  26051. zIndex: {
  26052. type: [String, Number],
  26053. default: uni.$u.props.tabbar.zIndex
  26054. },
  26055. // 选中标签的颜色
  26056. activeColor: {
  26057. type: String,
  26058. default: uni.$u.props.tabbar.activeColor
  26059. },
  26060. // 未选中标签的颜色
  26061. inactiveColor: {
  26062. type: String,
  26063. default: uni.$u.props.tabbar.inactiveColor
  26064. },
  26065. // 是否固定在底部
  26066. fixed: {
  26067. type: Boolean,
  26068. default: uni.$u.props.tabbar.fixed
  26069. },
  26070. // fixed定位固定在底部时,是否生成一个等高元素防止塌陷
  26071. placeholder: {
  26072. type: Boolean,
  26073. default: uni.$u.props.tabbar.placeholder
  26074. }
  26075. }
  26076. };
  26077. exports.default = _default;
  26078. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  26079. /***/ }),
  26080. /* 669 */,
  26081. /* 670 */,
  26082. /* 671 */,
  26083. /* 672 */,
  26084. /* 673 */,
  26085. /* 674 */,
  26086. /* 675 */,
  26087. /* 676 */
  26088. /*!************************************************************************************************!*\
  26089. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-tabbar-item/props.js ***!
  26090. \************************************************************************************************/
  26091. /*! no static exports found */
  26092. /***/ (function(module, exports, __webpack_require__) {
  26093. "use strict";
  26094. /* WEBPACK VAR INJECTION */(function(uni) {
  26095. Object.defineProperty(exports, "__esModule", {
  26096. value: true
  26097. });
  26098. exports.default = void 0;
  26099. var _default = {
  26100. props: {
  26101. // item标签的名称,作为与u-tabbar的value参数匹配的标识符
  26102. name: {
  26103. type: [String, Number, null],
  26104. default: uni.$u.props.tabbarItem.name
  26105. },
  26106. // uView内置图标或者绝对路径的图片
  26107. icon: {
  26108. icon: String,
  26109. default: uni.$u.props.tabbarItem.icon
  26110. },
  26111. // 右上角的角标提示信息
  26112. badge: {
  26113. type: [String, Number, null],
  26114. default: uni.$u.props.tabbarItem.badge
  26115. },
  26116. // 是否显示圆点,将会覆盖badge参数
  26117. dot: {
  26118. type: Boolean,
  26119. default: uni.$u.props.tabbarItem.dot
  26120. },
  26121. // 描述文本
  26122. text: {
  26123. type: String,
  26124. default: uni.$u.props.tabbarItem.text
  26125. },
  26126. // 控制徽标的位置,对象或者字符串形式,可以设置top和right属性
  26127. badgeStyle: {
  26128. type: [Object, String],
  26129. default: uni.$u.props.tabbarItem.badgeStyle
  26130. }
  26131. }
  26132. };
  26133. exports.default = _default;
  26134. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  26135. /***/ }),
  26136. /* 677 */,
  26137. /* 678 */,
  26138. /* 679 */,
  26139. /* 680 */,
  26140. /* 681 */,
  26141. /* 682 */,
  26142. /* 683 */,
  26143. /* 684 */
  26144. /*!******************************************************************************************!*\
  26145. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-popup/props.js ***!
  26146. \******************************************************************************************/
  26147. /*! no static exports found */
  26148. /***/ (function(module, exports, __webpack_require__) {
  26149. "use strict";
  26150. /* WEBPACK VAR INJECTION */(function(uni) {
  26151. Object.defineProperty(exports, "__esModule", {
  26152. value: true
  26153. });
  26154. exports.default = void 0;
  26155. var _default = {
  26156. props: {
  26157. // 是否展示弹窗
  26158. show: {
  26159. type: Boolean,
  26160. default: uni.$u.props.popup.show
  26161. },
  26162. // 是否显示遮罩
  26163. overlay: {
  26164. type: Boolean,
  26165. default: uni.$u.props.popup.overlay
  26166. },
  26167. // 弹出的方向,可选值为 top bottom right left center
  26168. mode: {
  26169. type: String,
  26170. default: uni.$u.props.popup.mode
  26171. },
  26172. // 动画时长,单位ms
  26173. duration: {
  26174. type: [String, Number],
  26175. default: uni.$u.props.popup.duration
  26176. },
  26177. // 是否显示关闭图标
  26178. closeable: {
  26179. type: Boolean,
  26180. default: uni.$u.props.popup.closeable
  26181. },
  26182. // 自定义遮罩的样式
  26183. overlayStyle: {
  26184. type: [Object, String],
  26185. default: uni.$u.props.popup.overlayStyle
  26186. },
  26187. // 点击遮罩是否关闭弹窗
  26188. closeOnClickOverlay: {
  26189. type: Boolean,
  26190. default: uni.$u.props.popup.closeOnClickOverlay
  26191. },
  26192. // 层级
  26193. zIndex: {
  26194. type: [String, Number],
  26195. default: uni.$u.props.popup.zIndex
  26196. },
  26197. // 是否为iPhoneX留出底部安全距离
  26198. safeAreaInsetBottom: {
  26199. type: Boolean,
  26200. default: uni.$u.props.popup.safeAreaInsetBottom
  26201. },
  26202. // 是否留出顶部安全距离(状态栏高度)
  26203. safeAreaInsetTop: {
  26204. type: Boolean,
  26205. default: uni.$u.props.popup.safeAreaInsetTop
  26206. },
  26207. // 自定义关闭图标位置,top-left为左上角,top-right为右上角,bottom-left为左下角,bottom-right为右下角
  26208. closeIconPos: {
  26209. type: String,
  26210. default: uni.$u.props.popup.closeIconPos
  26211. },
  26212. // 是否显示圆角
  26213. round: {
  26214. type: [Boolean, String, Number],
  26215. default: uni.$u.props.popup.round
  26216. },
  26217. // mode=center,也即中部弹出时,是否使用缩放模式
  26218. zoom: {
  26219. type: Boolean,
  26220. default: uni.$u.props.popup.zoom
  26221. },
  26222. // 弹窗背景色,设置为transparent可去除白色背景
  26223. bgColor: {
  26224. type: String,
  26225. default: uni.$u.props.popup.bgColor
  26226. },
  26227. // 遮罩的透明度,0-1之间
  26228. overlayOpacity: {
  26229. type: [Number, String],
  26230. default: uni.$u.props.popup.overlayOpacity
  26231. }
  26232. }
  26233. };
  26234. exports.default = _default;
  26235. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  26236. /***/ }),
  26237. /* 685 */,
  26238. /* 686 */,
  26239. /* 687 */,
  26240. /* 688 */,
  26241. /* 689 */,
  26242. /* 690 */,
  26243. /* 691 */,
  26244. /* 692 */
  26245. /*!*****************************************************************************************!*\
  26246. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-line/props.js ***!
  26247. \*****************************************************************************************/
  26248. /*! no static exports found */
  26249. /***/ (function(module, exports, __webpack_require__) {
  26250. "use strict";
  26251. /* WEBPACK VAR INJECTION */(function(uni) {
  26252. Object.defineProperty(exports, "__esModule", {
  26253. value: true
  26254. });
  26255. exports.default = void 0;
  26256. var _default = {
  26257. props: {
  26258. color: {
  26259. type: String,
  26260. default: uni.$u.props.line.color
  26261. },
  26262. // 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等
  26263. length: {
  26264. type: [String, Number],
  26265. default: uni.$u.props.line.length
  26266. },
  26267. // 线条方向,col-竖向,row-横向
  26268. direction: {
  26269. type: String,
  26270. default: uni.$u.props.line.direction
  26271. },
  26272. // 是否显示细边框
  26273. hairline: {
  26274. type: Boolean,
  26275. default: uni.$u.props.line.hairline
  26276. },
  26277. // 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px"
  26278. margin: {
  26279. type: [String, Number],
  26280. default: uni.$u.props.line.margin
  26281. },
  26282. // 是否虚线,true-虚线,false-实线
  26283. dashed: {
  26284. type: Boolean,
  26285. default: uni.$u.props.line.dashed
  26286. }
  26287. }
  26288. };
  26289. exports.default = _default;
  26290. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  26291. /***/ }),
  26292. /* 693 */,
  26293. /* 694 */,
  26294. /* 695 */,
  26295. /* 696 */,
  26296. /* 697 */,
  26297. /* 698 */,
  26298. /* 699 */,
  26299. /* 700 */
  26300. /*!*****************************************************************************************!*\
  26301. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-text/props.js ***!
  26302. \*****************************************************************************************/
  26303. /*! no static exports found */
  26304. /***/ (function(module, exports, __webpack_require__) {
  26305. "use strict";
  26306. /* WEBPACK VAR INJECTION */(function(uni) {
  26307. Object.defineProperty(exports, "__esModule", {
  26308. value: true
  26309. });
  26310. exports.default = void 0;
  26311. var _default = {
  26312. props: {
  26313. // 主题颜色
  26314. type: {
  26315. type: String,
  26316. default: uni.$u.props.text.type
  26317. },
  26318. // 是否显示
  26319. show: {
  26320. type: Boolean,
  26321. default: uni.$u.props.text.show
  26322. },
  26323. // 显示的值
  26324. text: {
  26325. type: [String, Number],
  26326. default: uni.$u.props.text.text
  26327. },
  26328. // 前置图标
  26329. prefixIcon: {
  26330. type: String,
  26331. default: uni.$u.props.text.prefixIcon
  26332. },
  26333. // 后置图标
  26334. suffixIcon: {
  26335. type: String,
  26336. default: uni.$u.props.text.suffixIcon
  26337. },
  26338. // 文本处理的匹配模式
  26339. // text-普通文本,price-价格,phone-手机号,name-姓名,date-日期,link-超链接
  26340. mode: {
  26341. type: String,
  26342. default: uni.$u.props.text.mode
  26343. },
  26344. // mode=link下,配置的链接
  26345. href: {
  26346. type: String,
  26347. default: uni.$u.props.text.href
  26348. },
  26349. // 格式化规则
  26350. format: {
  26351. type: [String, Function],
  26352. default: uni.$u.props.text.format
  26353. },
  26354. // mode=phone时,点击文本是否拨打电话
  26355. call: {
  26356. type: Boolean,
  26357. default: uni.$u.props.text.call
  26358. },
  26359. // 小程序的打开方式
  26360. openType: {
  26361. type: String,
  26362. default: uni.$u.props.text.openType
  26363. },
  26364. // 是否粗体,默认normal
  26365. bold: {
  26366. type: Boolean,
  26367. default: uni.$u.props.text.bold
  26368. },
  26369. // 是否块状
  26370. block: {
  26371. type: Boolean,
  26372. default: uni.$u.props.text.block
  26373. },
  26374. // 文本显示的行数,如果设置,超出此行数,将会显示省略号
  26375. lines: {
  26376. type: [String, Number],
  26377. default: uni.$u.props.text.lines
  26378. },
  26379. // 文本颜色
  26380. color: {
  26381. type: String,
  26382. default: uni.$u.props.text.color
  26383. },
  26384. // 字体大小
  26385. size: {
  26386. type: [String, Number],
  26387. default: uni.$u.props.text.size
  26388. },
  26389. // 图标的样式
  26390. iconStyle: {
  26391. type: [Object, String],
  26392. default: uni.$u.props.text.iconStyle
  26393. },
  26394. // 文字装饰,下划线,中划线等,可选值 none|underline|line-through
  26395. decoration: {
  26396. tepe: String,
  26397. default: uni.$u.props.text.decoration
  26398. },
  26399. // 外边距,对象、字符串,数值形式均可
  26400. margin: {
  26401. type: [Object, String, Number],
  26402. default: uni.$u.props.text.margin
  26403. },
  26404. // 文本行高
  26405. lineHeight: {
  26406. type: [String, Number],
  26407. default: uni.$u.props.text.lineHeight
  26408. },
  26409. // 文本对齐方式,可选值left|center|right
  26410. align: {
  26411. type: String,
  26412. default: uni.$u.props.text.align
  26413. },
  26414. // 文字换行,可选值break-word|normal|anywhere
  26415. wordWrap: {
  26416. type: String,
  26417. default: uni.$u.props.text.wordWrap
  26418. }
  26419. }
  26420. };
  26421. exports.default = _default;
  26422. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  26423. /***/ }),
  26424. /* 701 */,
  26425. /* 702 */,
  26426. /* 703 */,
  26427. /* 704 */,
  26428. /* 705 */,
  26429. /* 706 */
  26430. /*!***********************************************************************************************!*\
  26431. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-status-bar/props.js ***!
  26432. \***********************************************************************************************/
  26433. /*! no static exports found */
  26434. /***/ (function(module, exports, __webpack_require__) {
  26435. "use strict";
  26436. /* WEBPACK VAR INJECTION */(function(uni) {
  26437. Object.defineProperty(exports, "__esModule", {
  26438. value: true
  26439. });
  26440. exports.default = void 0;
  26441. var _default = {
  26442. props: {
  26443. bgColor: {
  26444. type: String,
  26445. default: uni.$u.props.statusBar.bgColor
  26446. }
  26447. }
  26448. };
  26449. exports.default = _default;
  26450. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  26451. /***/ }),
  26452. /* 707 */,
  26453. /* 708 */,
  26454. /* 709 */,
  26455. /* 710 */,
  26456. /* 711 */,
  26457. /* 712 */,
  26458. /* 713 */,
  26459. /* 714 */
  26460. /*!*******************************************************************************************!*\
  26461. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-picker/props.js ***!
  26462. \*******************************************************************************************/
  26463. /*! no static exports found */
  26464. /***/ (function(module, exports, __webpack_require__) {
  26465. "use strict";
  26466. /* WEBPACK VAR INJECTION */(function(uni) {
  26467. Object.defineProperty(exports, "__esModule", {
  26468. value: true
  26469. });
  26470. exports.default = void 0;
  26471. var _default = {
  26472. props: {
  26473. // 是否展示picker弹窗
  26474. show: {
  26475. type: Boolean,
  26476. default: uni.$u.props.picker.show
  26477. },
  26478. // 是否展示顶部的操作栏
  26479. showToolbar: {
  26480. type: Boolean,
  26481. default: uni.$u.props.picker.showToolbar
  26482. },
  26483. // 顶部标题
  26484. title: {
  26485. type: String,
  26486. default: uni.$u.props.picker.title
  26487. },
  26488. // 对象数组,设置每一列的数据
  26489. columns: {
  26490. type: Array,
  26491. default: uni.$u.props.picker.columns
  26492. },
  26493. // 是否显示加载中状态
  26494. loading: {
  26495. type: Boolean,
  26496. default: uni.$u.props.picker.loading
  26497. },
  26498. // 各列中,单个选项的高度
  26499. itemHeight: {
  26500. type: [String, Number],
  26501. default: uni.$u.props.picker.itemHeight
  26502. },
  26503. // 取消按钮的文字
  26504. cancelText: {
  26505. type: String,
  26506. default: uni.$u.props.picker.cancelText
  26507. },
  26508. // 确认按钮的文字
  26509. confirmText: {
  26510. type: String,
  26511. default: uni.$u.props.picker.confirmText
  26512. },
  26513. // 取消按钮的颜色
  26514. cancelColor: {
  26515. type: String,
  26516. default: uni.$u.props.picker.cancelColor
  26517. },
  26518. // 确认按钮的颜色
  26519. confirmColor: {
  26520. type: String,
  26521. default: uni.$u.props.picker.confirmColor
  26522. },
  26523. // 每列中可见选项的数量
  26524. visibleItemCount: {
  26525. type: [String, Number],
  26526. default: uni.$u.props.picker.visibleItemCount
  26527. },
  26528. // 选项对象中,需要展示的属性键名
  26529. keyName: {
  26530. type: String,
  26531. default: uni.$u.props.picker.keyName
  26532. },
  26533. // 是否允许点击遮罩关闭选择器
  26534. closeOnClickOverlay: {
  26535. type: Boolean,
  26536. default: uni.$u.props.picker.closeOnClickOverlay
  26537. },
  26538. // 各列的默认索引
  26539. defaultIndex: {
  26540. type: Array,
  26541. default: uni.$u.props.picker.defaultIndex
  26542. },
  26543. // 是否在手指松开时立即触发 change 事件。若不开启则会在滚动动画结束后触发 change 事件,只在微信2.21.1及以上有效
  26544. immediateChange: {
  26545. type: Boolean,
  26546. default: uni.$u.props.picker.immediateChange
  26547. }
  26548. }
  26549. };
  26550. exports.default = _default;
  26551. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  26552. /***/ }),
  26553. /* 715 */,
  26554. /* 716 */,
  26555. /* 717 */,
  26556. /* 718 */,
  26557. /* 719 */,
  26558. /* 720 */,
  26559. /* 721 */,
  26560. /* 722 */,
  26561. /* 723 */,
  26562. /* 724 */,
  26563. /* 725 */,
  26564. /* 726 */,
  26565. /* 727 */,
  26566. /* 728 */,
  26567. /* 729 */,
  26568. /* 730 */,
  26569. /* 731 */,
  26570. /* 732 */,
  26571. /* 733 */,
  26572. /* 734 */,
  26573. /* 735 */,
  26574. /* 736 */,
  26575. /* 737 */,
  26576. /* 738 */,
  26577. /* 739 */,
  26578. /* 740 */,
  26579. /* 741 */,
  26580. /* 742 */,
  26581. /* 743 */,
  26582. /* 744 */,
  26583. /* 745 */,
  26584. /* 746 */,
  26585. /* 747 */,
  26586. /* 748 */,
  26587. /* 749 */,
  26588. /* 750 */
  26589. /*!***********************************************************************************************!*\
  26590. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-transition/props.js ***!
  26591. \***********************************************************************************************/
  26592. /*! no static exports found */
  26593. /***/ (function(module, exports, __webpack_require__) {
  26594. "use strict";
  26595. /* WEBPACK VAR INJECTION */(function(uni) {
  26596. Object.defineProperty(exports, "__esModule", {
  26597. value: true
  26598. });
  26599. exports.default = void 0;
  26600. var _default = {
  26601. props: {
  26602. // 是否展示组件
  26603. show: {
  26604. type: Boolean,
  26605. default: uni.$u.props.transition.show
  26606. },
  26607. // 使用的动画模式
  26608. mode: {
  26609. type: String,
  26610. default: uni.$u.props.transition.mode
  26611. },
  26612. // 动画的执行时间,单位ms
  26613. duration: {
  26614. type: [String, Number],
  26615. default: uni.$u.props.transition.duration
  26616. },
  26617. // 使用的动画过渡函数
  26618. timingFunction: {
  26619. type: String,
  26620. default: uni.$u.props.transition.timingFunction
  26621. }
  26622. }
  26623. };
  26624. exports.default = _default;
  26625. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  26626. /***/ }),
  26627. /* 751 */
  26628. /*!****************************************************************************************************!*\
  26629. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-transition/transition.js ***!
  26630. \****************************************************************************************************/
  26631. /*! no static exports found */
  26632. /***/ (function(module, exports, __webpack_require__) {
  26633. "use strict";
  26634. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  26635. Object.defineProperty(exports, "__esModule", {
  26636. value: true
  26637. });
  26638. exports.default = void 0;
  26639. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 55));
  26640. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 57));
  26641. var _nvueAniMap = _interopRequireDefault(__webpack_require__(/*! ./nvue.ani-map.js */ 752));
  26642. // 定义一个一定时间后自动成功的promise,让调用nextTick方法处,进入下一个then方法
  26643. var nextTick = function nextTick() {
  26644. return new Promise(function (resolve) {
  26645. return setTimeout(resolve, 1000 / 50);
  26646. });
  26647. };
  26648. // nvue动画模块实现细节抽离在外部文件
  26649. // 定义类名,通过给元素动态切换类名,赋予元素一定的css动画样式
  26650. var getClassNames = function getClassNames(name) {
  26651. return {
  26652. enter: "u-".concat(name, "-enter u-").concat(name, "-enter-active"),
  26653. 'enter-to': "u-".concat(name, "-enter-to u-").concat(name, "-enter-active"),
  26654. leave: "u-".concat(name, "-leave u-").concat(name, "-leave-active"),
  26655. 'leave-to': "u-".concat(name, "-leave-to u-").concat(name, "-leave-active")
  26656. };
  26657. };
  26658. var _default = {
  26659. methods: {
  26660. // 组件被点击发出事件
  26661. clickHandler: function clickHandler() {
  26662. this.$emit('click');
  26663. },
  26664. // vue版本的组件进场处理
  26665. vueEnter: function vueEnter() {
  26666. var _this = this;
  26667. // 动画进入时的类名
  26668. var classNames = getClassNames(this.mode);
  26669. // 定义状态和发出动画进入前事件
  26670. this.status = 'enter';
  26671. this.$emit('beforeEnter');
  26672. this.inited = true;
  26673. this.display = true;
  26674. this.classes = classNames.enter;
  26675. this.$nextTick( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  26676. return _regenerator.default.wrap(function _callee$(_context) {
  26677. while (1) {
  26678. switch (_context.prev = _context.next) {
  26679. case 0:
  26680. // 标识动画尚未结束
  26681. _this.$emit('enter');
  26682. _this.transitionEnded = false;
  26683. // 组件动画进入后触发的事件
  26684. _this.$emit('afterEnter');
  26685. // 赋予组件enter-to类名
  26686. _this.classes = classNames['enter-to'];
  26687. case 4:
  26688. case "end":
  26689. return _context.stop();
  26690. }
  26691. }
  26692. }, _callee);
  26693. })));
  26694. },
  26695. // 动画离场处理
  26696. vueLeave: function vueLeave() {
  26697. var _this2 = this;
  26698. // 如果不是展示状态,无需执行逻辑
  26699. if (!this.display) return;
  26700. var classNames = getClassNames(this.mode);
  26701. // 标记离开状态和发出事件
  26702. this.status = 'leave';
  26703. this.$emit('beforeLeave');
  26704. // 获得类名
  26705. this.classes = classNames.leave;
  26706. this.$nextTick(function () {
  26707. // 动画正在离场的状态
  26708. _this2.transitionEnded = false;
  26709. _this2.$emit('leave');
  26710. // 组件执行动画,到了执行的执行时间后,执行一些额外处理
  26711. setTimeout(_this2.onTransitionEnd, _this2.duration);
  26712. _this2.classes = classNames['leave-to'];
  26713. });
  26714. },
  26715. // 完成过渡后触发
  26716. onTransitionEnd: function onTransitionEnd() {
  26717. // 如果已经是结束的状态,无需再处理
  26718. if (this.transitionEnded) return;
  26719. this.transitionEnded = true;
  26720. // 发出组件动画执行后的事件
  26721. this.$emit(this.status === 'leave' ? 'afterLeave' : 'afterEnter');
  26722. if (!this.show && this.display) {
  26723. this.display = false;
  26724. this.inited = false;
  26725. }
  26726. }
  26727. }
  26728. };
  26729. exports.default = _default;
  26730. /***/ }),
  26731. /* 752 */
  26732. /*!******************************************************************************************************!*\
  26733. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-transition/nvue.ani-map.js ***!
  26734. \******************************************************************************************************/
  26735. /*! no static exports found */
  26736. /***/ (function(module, exports, __webpack_require__) {
  26737. "use strict";
  26738. Object.defineProperty(exports, "__esModule", {
  26739. value: true
  26740. });
  26741. exports.default = void 0;
  26742. var _default = {
  26743. fade: {
  26744. enter: {
  26745. opacity: 0
  26746. },
  26747. 'enter-to': {
  26748. opacity: 1
  26749. },
  26750. leave: {
  26751. opacity: 1
  26752. },
  26753. 'leave-to': {
  26754. opacity: 0
  26755. }
  26756. },
  26757. 'fade-up': {
  26758. enter: {
  26759. opacity: 0,
  26760. transform: 'translateY(100%)'
  26761. },
  26762. 'enter-to': {
  26763. opacity: 1,
  26764. transform: 'translateY(0)'
  26765. },
  26766. leave: {
  26767. opacity: 1,
  26768. transform: 'translateY(0)'
  26769. },
  26770. 'leave-to': {
  26771. opacity: 0,
  26772. transform: 'translateY(100%)'
  26773. }
  26774. },
  26775. 'fade-down': {
  26776. enter: {
  26777. opacity: 0,
  26778. transform: 'translateY(-100%)'
  26779. },
  26780. 'enter-to': {
  26781. opacity: 1,
  26782. transform: 'translateY(0)'
  26783. },
  26784. leave: {
  26785. opacity: 1,
  26786. transform: 'translateY(0)'
  26787. },
  26788. 'leave-to': {
  26789. opacity: 0,
  26790. transform: 'translateY(-100%)'
  26791. }
  26792. },
  26793. 'fade-left': {
  26794. enter: {
  26795. opacity: 0,
  26796. transform: 'translateX(-100%)'
  26797. },
  26798. 'enter-to': {
  26799. opacity: 1,
  26800. transform: 'translateY(0)'
  26801. },
  26802. leave: {
  26803. opacity: 1,
  26804. transform: 'translateY(0)'
  26805. },
  26806. 'leave-to': {
  26807. opacity: 0,
  26808. transform: 'translateX(-100%)'
  26809. }
  26810. },
  26811. 'fade-right': {
  26812. enter: {
  26813. opacity: 0,
  26814. transform: 'translateX(100%)'
  26815. },
  26816. 'enter-to': {
  26817. opacity: 1,
  26818. transform: 'translateY(0)'
  26819. },
  26820. leave: {
  26821. opacity: 1,
  26822. transform: 'translateY(0)'
  26823. },
  26824. 'leave-to': {
  26825. opacity: 0,
  26826. transform: 'translateX(100%)'
  26827. }
  26828. },
  26829. 'slide-up': {
  26830. enter: {
  26831. transform: 'translateY(100%)'
  26832. },
  26833. 'enter-to': {
  26834. transform: 'translateY(0)'
  26835. },
  26836. leave: {
  26837. transform: 'translateY(0)'
  26838. },
  26839. 'leave-to': {
  26840. transform: 'translateY(100%)'
  26841. }
  26842. },
  26843. 'slide-down': {
  26844. enter: {
  26845. transform: 'translateY(-100%)'
  26846. },
  26847. 'enter-to': {
  26848. transform: 'translateY(0)'
  26849. },
  26850. leave: {
  26851. transform: 'translateY(0)'
  26852. },
  26853. 'leave-to': {
  26854. transform: 'translateY(-100%)'
  26855. }
  26856. },
  26857. 'slide-left': {
  26858. enter: {
  26859. transform: 'translateX(-100%)'
  26860. },
  26861. 'enter-to': {
  26862. transform: 'translateY(0)'
  26863. },
  26864. leave: {
  26865. transform: 'translateY(0)'
  26866. },
  26867. 'leave-to': {
  26868. transform: 'translateX(-100%)'
  26869. }
  26870. },
  26871. 'slide-right': {
  26872. enter: {
  26873. transform: 'translateX(100%)'
  26874. },
  26875. 'enter-to': {
  26876. transform: 'translateY(0)'
  26877. },
  26878. leave: {
  26879. transform: 'translateY(0)'
  26880. },
  26881. 'leave-to': {
  26882. transform: 'translateX(100%)'
  26883. }
  26884. },
  26885. zoom: {
  26886. enter: {
  26887. transform: 'scale(0.95)'
  26888. },
  26889. 'enter-to': {
  26890. transform: 'scale(1)'
  26891. },
  26892. leave: {
  26893. transform: 'scale(1)'
  26894. },
  26895. 'leave-to': {
  26896. transform: 'scale(0.95)'
  26897. }
  26898. },
  26899. 'fade-zoom': {
  26900. enter: {
  26901. opacity: 0,
  26902. transform: 'scale(0.95)'
  26903. },
  26904. 'enter-to': {
  26905. opacity: 1,
  26906. transform: 'scale(1)'
  26907. },
  26908. leave: {
  26909. opacity: 1,
  26910. transform: 'scale(1)'
  26911. },
  26912. 'leave-to': {
  26913. opacity: 0,
  26914. transform: 'scale(0.95)'
  26915. }
  26916. }
  26917. };
  26918. exports.default = _default;
  26919. /***/ }),
  26920. /* 753 */,
  26921. /* 754 */,
  26922. /* 755 */,
  26923. /* 756 */,
  26924. /* 757 */,
  26925. /* 758 */,
  26926. /* 759 */,
  26927. /* 760 */
  26928. /*!************************************************************************************************!*\
  26929. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-safe-bottom/props.js ***!
  26930. \************************************************************************************************/
  26931. /*! no static exports found */
  26932. /***/ (function(module, exports, __webpack_require__) {
  26933. "use strict";
  26934. Object.defineProperty(exports, "__esModule", {
  26935. value: true
  26936. });
  26937. exports.default = void 0;
  26938. var _default = {
  26939. props: {}
  26940. };
  26941. exports.default = _default;
  26942. /***/ }),
  26943. /* 761 */,
  26944. /* 762 */,
  26945. /* 763 */,
  26946. /* 764 */,
  26947. /* 765 */,
  26948. /* 766 */,
  26949. /* 767 */,
  26950. /* 768 */
  26951. /*!*****************************************************************************************!*\
  26952. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-text/value.js ***!
  26953. \*****************************************************************************************/
  26954. /*! no static exports found */
  26955. /***/ (function(module, exports, __webpack_require__) {
  26956. "use strict";
  26957. /* WEBPACK VAR INJECTION */(function(uni) {
  26958. Object.defineProperty(exports, "__esModule", {
  26959. value: true
  26960. });
  26961. exports.default = void 0;
  26962. var _default = {
  26963. computed: {
  26964. // 经处理后需要显示的值
  26965. value: function value() {
  26966. var text = this.text,
  26967. mode = this.mode,
  26968. format = this.format,
  26969. href = this.href;
  26970. // 价格类型
  26971. if (mode === 'price') {
  26972. // 如果text不为金额进行提示
  26973. if (!/^\d+(\.\d+)?$/.test(text)) {
  26974. uni.$u.error('金额模式下,text参数需要为金额格式');
  26975. }
  26976. // 进行格式化,判断用户传入的format参数为正则,或者函数,如果没有传入format,则使用默认的金额格式化处理
  26977. if (uni.$u.test.func(format)) {
  26978. // 如果用户传入的是函数,使用函数格式化
  26979. return format(text);
  26980. }
  26981. // 如果format非正则,非函数,则使用默认的金额格式化方法进行操作
  26982. return uni.$u.priceFormat(text, 2);
  26983. }
  26984. if (mode === 'date') {
  26985. // 判断是否合法的日期或者时间戳
  26986. !uni.$u.test.date(text) && uni.$u.error('日期模式下,text参数需要为日期或时间戳格式');
  26987. // 进行格式化,判断用户传入的format参数为正则,或者函数,如果没有传入format,则使用默认的格式化处理
  26988. if (uni.$u.test.func(format)) {
  26989. // 如果用户传入的是函数,使用函数格式化
  26990. return format(text);
  26991. }
  26992. if (format) {
  26993. // 如果format非正则,非函数,则使用默认的时间格式化方法进行操作
  26994. return uni.$u.timeFormat(text, format);
  26995. }
  26996. // 如果没有设置format,则设置为默认的时间格式化形式
  26997. return uni.$u.timeFormat(text, 'yyyy-mm-dd');
  26998. }
  26999. if (mode === 'phone') {
  27000. // 判断是否合法的手机号
  27001. // !uni.$u.test.mobile(text) && uni.$u.error('手机号模式下,text参数需要为手机号码格式')
  27002. if (uni.$u.test.func(format)) {
  27003. // 如果用户传入的是函数,使用函数格式化
  27004. return format(text);
  27005. }
  27006. if (format === 'encrypt') {
  27007. // 如果format为encrypt,则将手机号进行星号加密处理
  27008. return "".concat(text.substr(0, 3), "****").concat(text.substr(7));
  27009. }
  27010. return text;
  27011. }
  27012. if (mode === 'name') {
  27013. // 判断是否合法的字符粗
  27014. !(typeof text === 'string') && uni.$u.error('姓名模式下,text参数需要为字符串格式');
  27015. if (uni.$u.test.func(format)) {
  27016. // 如果用户传入的是函数,使用函数格式化
  27017. return format(text);
  27018. }
  27019. if (format === 'encrypt') {
  27020. // 如果format为encrypt,则将姓名进行星号加密处理
  27021. return this.formatName(text);
  27022. }
  27023. return text;
  27024. }
  27025. if (mode === 'link') {
  27026. // 判断是否合法的字符粗
  27027. !uni.$u.test.url(href) && uni.$u.error('超链接模式下,href参数需要为URL格式');
  27028. return text;
  27029. }
  27030. return text;
  27031. }
  27032. },
  27033. methods: {
  27034. // 默认的姓名脱敏规则
  27035. formatName: function formatName(name) {
  27036. var value = '';
  27037. if (name.length === 2) {
  27038. value = name.substr(0, 1) + '*';
  27039. } else if (name.length > 2) {
  27040. var char = '';
  27041. for (var i = 0, len = name.length - 2; i < len; i++) {
  27042. char += '*';
  27043. }
  27044. value = name.substr(0, 1) + char + name.substr(-1, 1);
  27045. } else {
  27046. value = name;
  27047. }
  27048. return value;
  27049. }
  27050. }
  27051. };
  27052. exports.default = _default;
  27053. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  27054. /***/ }),
  27055. /* 769 */,
  27056. /* 770 */,
  27057. /* 771 */,
  27058. /* 772 */,
  27059. /* 773 */,
  27060. /* 774 */,
  27061. /* 775 */,
  27062. /* 776 */
  27063. /*!********************************************************************************************!*\
  27064. !*** D:/wwwroot/xusfood/xusfood_client/uni_modules/uview-ui/components/u-toolbar/props.js ***!
  27065. \********************************************************************************************/
  27066. /*! no static exports found */
  27067. /***/ (function(module, exports, __webpack_require__) {
  27068. "use strict";
  27069. /* WEBPACK VAR INJECTION */(function(uni) {
  27070. Object.defineProperty(exports, "__esModule", {
  27071. value: true
  27072. });
  27073. exports.default = void 0;
  27074. var _default = {
  27075. props: {
  27076. // 是否展示工具条
  27077. show: {
  27078. type: Boolean,
  27079. default: uni.$u.props.toolbar.show
  27080. },
  27081. // 取消按钮的文字
  27082. cancelText: {
  27083. type: String,
  27084. default: uni.$u.props.toolbar.cancelText
  27085. },
  27086. // 确认按钮的文字
  27087. confirmText: {
  27088. type: String,
  27089. default: uni.$u.props.toolbar.confirmText
  27090. },
  27091. // 取消按钮的颜色
  27092. cancelColor: {
  27093. type: String,
  27094. default: uni.$u.props.toolbar.cancelColor
  27095. },
  27096. // 确认按钮的颜色
  27097. confirmColor: {
  27098. type: String,
  27099. default: uni.$u.props.toolbar.confirmColor
  27100. },
  27101. // 标题文字
  27102. title: {
  27103. type: String,
  27104. default: uni.$u.props.toolbar.title
  27105. }
  27106. }
  27107. };
  27108. exports.default = _default;
  27109. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  27110. /***/ })
  27111. ]]);
  27112. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map