vendor.js 655 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],[
  2. /* 0 */,
  3. /* 1 */
  4. /*!*********************************************************!*\
  5. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js ***!
  6. \*********************************************************/
  7. /*! no static exports found */
  8. /***/ (function(module, exports, __webpack_require__) {
  9. "use strict";
  10. Object.defineProperty(exports, "__esModule", {
  11. value: true
  12. });
  13. exports.default = void 0;
  14. var objectKeys = ['qy', 'env', 'error', 'version', 'lanDebug', 'cloud', 'serviceMarket', 'router', 'worklet', '__webpack_require_UNI_MP_PLUGIN__'];
  15. var singlePageDisableKey = ['lanDebug', 'router', 'worklet'];
  16. var target = typeof globalThis !== 'undefined' ? globalThis : function () {
  17. return this;
  18. }();
  19. var key = ['w', 'x'].join('');
  20. var oldWx = target[key];
  21. var launchOption = oldWx.getLaunchOptionsSync ? oldWx.getLaunchOptionsSync() : null;
  22. function isWxKey(key) {
  23. if (launchOption && launchOption.scene === 1154 && singlePageDisableKey.includes(key)) {
  24. return false;
  25. }
  26. return objectKeys.indexOf(key) > -1 || typeof oldWx[key] === 'function';
  27. }
  28. function initWx() {
  29. var newWx = {};
  30. for (var _key in oldWx) {
  31. if (isWxKey(_key)) {
  32. // TODO wrapper function
  33. newWx[_key] = oldWx[_key];
  34. }
  35. }
  36. return newWx;
  37. }
  38. target[key] = initWx();
  39. var _default = target[key];
  40. exports.default = _default;
  41. /***/ }),
  42. /* 2 */
  43. /*!************************************************************!*\
  44. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  45. \************************************************************/
  46. /*! no static exports found */
  47. /***/ (function(module, exports, __webpack_require__) {
  48. "use strict";
  49. /* WEBPACK VAR INJECTION */(function(wx, global) {
  50. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  51. Object.defineProperty(exports, "__esModule", {
  52. value: true
  53. });
  54. exports.createApp = createApp;
  55. exports.createComponent = createComponent;
  56. exports.createPage = createPage;
  57. exports.createPlugin = createPlugin;
  58. exports.createSubpackageApp = createSubpackageApp;
  59. exports.default = void 0;
  60. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  61. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  62. var _construct2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/construct */ 15));
  63. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  64. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  65. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 22);
  66. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  67. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  68. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  69. var realAtob;
  70. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  71. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  72. if (typeof atob !== 'function') {
  73. realAtob = function realAtob(str) {
  74. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  75. if (!b64re.test(str)) {
  76. throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  77. }
  78. // Adding the padding if missing, for semplicity
  79. str += '=='.slice(2 - (str.length & 3));
  80. var bitmap;
  81. var result = '';
  82. var r1;
  83. var r2;
  84. var i = 0;
  85. for (; i < str.length;) {
  86. bitmap = b64.indexOf(str.charAt(i++)) << 18 | b64.indexOf(str.charAt(i++)) << 12 | (r1 = b64.indexOf(str.charAt(i++))) << 6 | (r2 = b64.indexOf(str.charAt(i++)));
  87. result += r1 === 64 ? String.fromCharCode(bitmap >> 16 & 255) : r2 === 64 ? String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255) : String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255, bitmap & 255);
  88. }
  89. return result;
  90. };
  91. } else {
  92. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  93. realAtob = atob;
  94. }
  95. function b64DecodeUnicode(str) {
  96. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  97. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  98. }).join(''));
  99. }
  100. function getCurrentUserInfo() {
  101. var token = wx.getStorageSync('uni_id_token') || '';
  102. var tokenArr = token.split('.');
  103. if (!token || tokenArr.length !== 3) {
  104. return {
  105. uid: null,
  106. role: [],
  107. permission: [],
  108. tokenExpired: 0
  109. };
  110. }
  111. var userInfo;
  112. try {
  113. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  114. } catch (error) {
  115. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  116. }
  117. userInfo.tokenExpired = userInfo.exp * 1000;
  118. delete userInfo.exp;
  119. delete userInfo.iat;
  120. return userInfo;
  121. }
  122. function uniIdMixin(Vue) {
  123. Vue.prototype.uniIDHasRole = function (roleId) {
  124. var _getCurrentUserInfo = getCurrentUserInfo(),
  125. role = _getCurrentUserInfo.role;
  126. return role.indexOf(roleId) > -1;
  127. };
  128. Vue.prototype.uniIDHasPermission = function (permissionId) {
  129. var _getCurrentUserInfo2 = getCurrentUserInfo(),
  130. permission = _getCurrentUserInfo2.permission;
  131. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  132. };
  133. Vue.prototype.uniIDTokenValid = function () {
  134. var _getCurrentUserInfo3 = getCurrentUserInfo(),
  135. tokenExpired = _getCurrentUserInfo3.tokenExpired;
  136. return tokenExpired > Date.now();
  137. };
  138. }
  139. var _toString = Object.prototype.toString;
  140. var hasOwnProperty = Object.prototype.hasOwnProperty;
  141. function isFn(fn) {
  142. return typeof fn === 'function';
  143. }
  144. function isStr(str) {
  145. return typeof str === 'string';
  146. }
  147. function isObject(obj) {
  148. return obj !== null && (0, _typeof2.default)(obj) === 'object';
  149. }
  150. function isPlainObject(obj) {
  151. return _toString.call(obj) === '[object Object]';
  152. }
  153. function hasOwn(obj, key) {
  154. return hasOwnProperty.call(obj, key);
  155. }
  156. function noop() {}
  157. /**
  158. * Create a cached version of a pure function.
  159. */
  160. function cached(fn) {
  161. var cache = Object.create(null);
  162. return function cachedFn(str) {
  163. var hit = cache[str];
  164. return hit || (cache[str] = fn(str));
  165. };
  166. }
  167. /**
  168. * Camelize a hyphen-delimited string.
  169. */
  170. var camelizeRE = /-(\w)/g;
  171. var camelize = cached(function (str) {
  172. return str.replace(camelizeRE, function (_, c) {
  173. return c ? c.toUpperCase() : '';
  174. });
  175. });
  176. function sortObject(obj) {
  177. var sortObj = {};
  178. if (isPlainObject(obj)) {
  179. Object.keys(obj).sort().forEach(function (key) {
  180. sortObj[key] = obj[key];
  181. });
  182. }
  183. return !Object.keys(sortObj) ? obj : sortObj;
  184. }
  185. var HOOKS = ['invoke', 'success', 'fail', 'complete', 'returnValue'];
  186. var globalInterceptors = {};
  187. var scopedInterceptors = {};
  188. function mergeHook(parentVal, childVal) {
  189. var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal;
  190. return res ? dedupeHooks(res) : res;
  191. }
  192. function dedupeHooks(hooks) {
  193. var res = [];
  194. for (var i = 0; i < hooks.length; i++) {
  195. if (res.indexOf(hooks[i]) === -1) {
  196. res.push(hooks[i]);
  197. }
  198. }
  199. return res;
  200. }
  201. function removeHook(hooks, hook) {
  202. var index = hooks.indexOf(hook);
  203. if (index !== -1) {
  204. hooks.splice(index, 1);
  205. }
  206. }
  207. function mergeInterceptorHook(interceptor, option) {
  208. Object.keys(option).forEach(function (hook) {
  209. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  210. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  211. }
  212. });
  213. }
  214. function removeInterceptorHook(interceptor, option) {
  215. if (!interceptor || !option) {
  216. return;
  217. }
  218. Object.keys(option).forEach(function (hook) {
  219. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  220. removeHook(interceptor[hook], option[hook]);
  221. }
  222. });
  223. }
  224. function addInterceptor(method, option) {
  225. if (typeof method === 'string' && isPlainObject(option)) {
  226. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  227. } else if (isPlainObject(method)) {
  228. mergeInterceptorHook(globalInterceptors, method);
  229. }
  230. }
  231. function removeInterceptor(method, option) {
  232. if (typeof method === 'string') {
  233. if (isPlainObject(option)) {
  234. removeInterceptorHook(scopedInterceptors[method], option);
  235. } else {
  236. delete scopedInterceptors[method];
  237. }
  238. } else if (isPlainObject(method)) {
  239. removeInterceptorHook(globalInterceptors, method);
  240. }
  241. }
  242. function wrapperHook(hook, params) {
  243. return function (data) {
  244. return hook(data, params) || data;
  245. };
  246. }
  247. function isPromise(obj) {
  248. return !!obj && ((0, _typeof2.default)(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  249. }
  250. function queue(hooks, data, params) {
  251. var promise = false;
  252. for (var i = 0; i < hooks.length; i++) {
  253. var hook = hooks[i];
  254. if (promise) {
  255. promise = Promise.resolve(wrapperHook(hook, params));
  256. } else {
  257. var res = hook(data, params);
  258. if (isPromise(res)) {
  259. promise = Promise.resolve(res);
  260. }
  261. if (res === false) {
  262. return {
  263. then: function then() {}
  264. };
  265. }
  266. }
  267. }
  268. return promise || {
  269. then: function then(callback) {
  270. return callback(data);
  271. }
  272. };
  273. }
  274. function wrapperOptions(interceptor) {
  275. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  276. ['success', 'fail', 'complete'].forEach(function (name) {
  277. if (Array.isArray(interceptor[name])) {
  278. var oldCallback = options[name];
  279. options[name] = function callbackInterceptor(res) {
  280. queue(interceptor[name], res, options).then(function (res) {
  281. /* eslint-disable no-mixed-operators */
  282. return isFn(oldCallback) && oldCallback(res) || res;
  283. });
  284. };
  285. }
  286. });
  287. return options;
  288. }
  289. function wrapperReturnValue(method, returnValue) {
  290. var returnValueHooks = [];
  291. if (Array.isArray(globalInterceptors.returnValue)) {
  292. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(globalInterceptors.returnValue));
  293. }
  294. var interceptor = scopedInterceptors[method];
  295. if (interceptor && Array.isArray(interceptor.returnValue)) {
  296. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(interceptor.returnValue));
  297. }
  298. returnValueHooks.forEach(function (hook) {
  299. returnValue = hook(returnValue) || returnValue;
  300. });
  301. return returnValue;
  302. }
  303. function getApiInterceptorHooks(method) {
  304. var interceptor = Object.create(null);
  305. Object.keys(globalInterceptors).forEach(function (hook) {
  306. if (hook !== 'returnValue') {
  307. interceptor[hook] = globalInterceptors[hook].slice();
  308. }
  309. });
  310. var scopedInterceptor = scopedInterceptors[method];
  311. if (scopedInterceptor) {
  312. Object.keys(scopedInterceptor).forEach(function (hook) {
  313. if (hook !== 'returnValue') {
  314. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  315. }
  316. });
  317. }
  318. return interceptor;
  319. }
  320. function invokeApi(method, api, options) {
  321. for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
  322. params[_key - 3] = arguments[_key];
  323. }
  324. var interceptor = getApiInterceptorHooks(method);
  325. if (interceptor && Object.keys(interceptor).length) {
  326. if (Array.isArray(interceptor.invoke)) {
  327. var res = queue(interceptor.invoke, options);
  328. return res.then(function (options) {
  329. // 重新访问 getApiInterceptorHooks, 允许 invoke 中再次调用 addInterceptor,removeInterceptor
  330. return api.apply(void 0, [wrapperOptions(getApiInterceptorHooks(method), options)].concat(params));
  331. });
  332. } else {
  333. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  334. }
  335. }
  336. return api.apply(void 0, [options].concat(params));
  337. }
  338. var promiseInterceptor = {
  339. returnValue: function returnValue(res) {
  340. if (!isPromise(res)) {
  341. return res;
  342. }
  343. return new Promise(function (resolve, reject) {
  344. res.then(function (res) {
  345. if (res[0]) {
  346. reject(res[0]);
  347. } else {
  348. resolve(res[1]);
  349. }
  350. });
  351. });
  352. }
  353. };
  354. var SYNC_API_RE = /^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting|initUTS|requireUTS|registerUTS/;
  355. var CONTEXT_API_RE = /^create|Manager$/;
  356. // Context例外情况
  357. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  358. // 同步例外情况
  359. var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
  360. var CALLBACK_API_RE = /^on|^off/;
  361. function isContextApi(name) {
  362. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  363. }
  364. function isSyncApi(name) {
  365. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  366. }
  367. function isCallbackApi(name) {
  368. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  369. }
  370. function handlePromise(promise) {
  371. return promise.then(function (data) {
  372. return [null, data];
  373. }).catch(function (err) {
  374. return [err];
  375. });
  376. }
  377. function shouldPromise(name) {
  378. if (isContextApi(name) || isSyncApi(name) || isCallbackApi(name)) {
  379. return false;
  380. }
  381. return true;
  382. }
  383. /* eslint-disable no-extend-native */
  384. if (!Promise.prototype.finally) {
  385. Promise.prototype.finally = function (callback) {
  386. var promise = this.constructor;
  387. return this.then(function (value) {
  388. return promise.resolve(callback()).then(function () {
  389. return value;
  390. });
  391. }, function (reason) {
  392. return promise.resolve(callback()).then(function () {
  393. throw reason;
  394. });
  395. });
  396. };
  397. }
  398. function promisify(name, api) {
  399. if (!shouldPromise(name) || !isFn(api)) {
  400. return api;
  401. }
  402. return function promiseApi() {
  403. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  404. for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  405. params[_key2 - 1] = arguments[_key2];
  406. }
  407. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  408. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  409. }
  410. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  411. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  412. success: resolve,
  413. fail: reject
  414. })].concat(params));
  415. })));
  416. };
  417. }
  418. var EPS = 1e-4;
  419. var BASE_DEVICE_WIDTH = 750;
  420. var isIOS = false;
  421. var deviceWidth = 0;
  422. var deviceDPR = 0;
  423. function checkDeviceWidth() {
  424. var _wx$getSystemInfoSync = wx.getSystemInfoSync(),
  425. platform = _wx$getSystemInfoSync.platform,
  426. pixelRatio = _wx$getSystemInfoSync.pixelRatio,
  427. windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  428. deviceWidth = windowWidth;
  429. deviceDPR = pixelRatio;
  430. isIOS = platform === 'ios';
  431. }
  432. function upx2px(number, newDeviceWidth) {
  433. if (deviceWidth === 0) {
  434. checkDeviceWidth();
  435. }
  436. number = Number(number);
  437. if (number === 0) {
  438. return 0;
  439. }
  440. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  441. if (result < 0) {
  442. result = -result;
  443. }
  444. result = Math.floor(result + EPS);
  445. if (result === 0) {
  446. if (deviceDPR === 1 || !isIOS) {
  447. result = 1;
  448. } else {
  449. result = 0.5;
  450. }
  451. }
  452. return number < 0 ? -result : result;
  453. }
  454. var LOCALE_ZH_HANS = 'zh-Hans';
  455. var LOCALE_ZH_HANT = 'zh-Hant';
  456. var LOCALE_EN = 'en';
  457. var LOCALE_FR = 'fr';
  458. var LOCALE_ES = 'es';
  459. var messages = {};
  460. var locale;
  461. {
  462. locale = normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  463. }
  464. function initI18nMessages() {
  465. if (!isEnableLocale()) {
  466. return;
  467. }
  468. var localeKeys = Object.keys(__uniConfig.locales);
  469. if (localeKeys.length) {
  470. localeKeys.forEach(function (locale) {
  471. var curMessages = messages[locale];
  472. var userMessages = __uniConfig.locales[locale];
  473. if (curMessages) {
  474. Object.assign(curMessages, userMessages);
  475. } else {
  476. messages[locale] = userMessages;
  477. }
  478. });
  479. }
  480. }
  481. initI18nMessages();
  482. var i18n = (0, _uniI18n.initVueI18n)(locale, {});
  483. var t = i18n.t;
  484. var i18nMixin = i18n.mixin = {
  485. beforeCreate: function beforeCreate() {
  486. var _this = this;
  487. var unwatch = i18n.i18n.watchLocale(function () {
  488. _this.$forceUpdate();
  489. });
  490. this.$once('hook:beforeDestroy', function () {
  491. unwatch();
  492. });
  493. },
  494. methods: {
  495. $$t: function $$t(key, values) {
  496. return t(key, values);
  497. }
  498. }
  499. };
  500. var setLocale = i18n.setLocale;
  501. var getLocale = i18n.getLocale;
  502. function initAppLocale(Vue, appVm, locale) {
  503. var state = Vue.observable({
  504. locale: locale || i18n.getLocale()
  505. });
  506. var localeWatchers = [];
  507. appVm.$watchLocale = function (fn) {
  508. localeWatchers.push(fn);
  509. };
  510. Object.defineProperty(appVm, '$locale', {
  511. get: function get() {
  512. return state.locale;
  513. },
  514. set: function set(v) {
  515. state.locale = v;
  516. localeWatchers.forEach(function (watch) {
  517. return watch(v);
  518. });
  519. }
  520. });
  521. }
  522. function isEnableLocale() {
  523. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  524. }
  525. function include(str, parts) {
  526. return !!parts.find(function (part) {
  527. return str.indexOf(part) !== -1;
  528. });
  529. }
  530. function startsWith(str, parts) {
  531. return parts.find(function (part) {
  532. return str.indexOf(part) === 0;
  533. });
  534. }
  535. function normalizeLocale(locale, messages) {
  536. if (!locale) {
  537. return;
  538. }
  539. locale = locale.trim().replace(/_/g, '-');
  540. if (messages && messages[locale]) {
  541. return locale;
  542. }
  543. locale = locale.toLowerCase();
  544. if (locale === 'chinese') {
  545. // 支付宝
  546. return LOCALE_ZH_HANS;
  547. }
  548. if (locale.indexOf('zh') === 0) {
  549. if (locale.indexOf('-hans') > -1) {
  550. return LOCALE_ZH_HANS;
  551. }
  552. if (locale.indexOf('-hant') > -1) {
  553. return LOCALE_ZH_HANT;
  554. }
  555. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  556. return LOCALE_ZH_HANT;
  557. }
  558. return LOCALE_ZH_HANS;
  559. }
  560. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  561. if (lang) {
  562. return lang;
  563. }
  564. }
  565. // export function initI18n() {
  566. // const localeKeys = Object.keys(__uniConfig.locales || {})
  567. // if (localeKeys.length) {
  568. // localeKeys.forEach((locale) =>
  569. // i18n.add(locale, __uniConfig.locales[locale])
  570. // )
  571. // }
  572. // }
  573. function getLocale$1() {
  574. // 优先使用 $locale
  575. if (isFn(getApp)) {
  576. var app = getApp({
  577. allowDefault: true
  578. });
  579. if (app && app.$vm) {
  580. return app.$vm.$locale;
  581. }
  582. }
  583. return normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  584. }
  585. function setLocale$1(locale) {
  586. var app = isFn(getApp) ? getApp() : false;
  587. if (!app) {
  588. return false;
  589. }
  590. var oldLocale = app.$vm.$locale;
  591. if (oldLocale !== locale) {
  592. app.$vm.$locale = locale;
  593. onLocaleChangeCallbacks.forEach(function (fn) {
  594. return fn({
  595. locale: locale
  596. });
  597. });
  598. return true;
  599. }
  600. return false;
  601. }
  602. var onLocaleChangeCallbacks = [];
  603. function onLocaleChange(fn) {
  604. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  605. onLocaleChangeCallbacks.push(fn);
  606. }
  607. }
  608. if (typeof global !== 'undefined') {
  609. global.getLocale = getLocale$1;
  610. }
  611. var interceptors = {
  612. promiseInterceptor: promiseInterceptor
  613. };
  614. var baseApi = /*#__PURE__*/Object.freeze({
  615. __proto__: null,
  616. upx2px: upx2px,
  617. getLocale: getLocale$1,
  618. setLocale: setLocale$1,
  619. onLocaleChange: onLocaleChange,
  620. addInterceptor: addInterceptor,
  621. removeInterceptor: removeInterceptor,
  622. interceptors: interceptors
  623. });
  624. function findExistsPageIndex(url) {
  625. var pages = getCurrentPages();
  626. var len = pages.length;
  627. while (len--) {
  628. var page = pages[len];
  629. if (page.$page && page.$page.fullPath === url) {
  630. return len;
  631. }
  632. }
  633. return -1;
  634. }
  635. var redirectTo = {
  636. name: function name(fromArgs) {
  637. if (fromArgs.exists === 'back' && fromArgs.delta) {
  638. return 'navigateBack';
  639. }
  640. return 'redirectTo';
  641. },
  642. args: function args(fromArgs) {
  643. if (fromArgs.exists === 'back' && fromArgs.url) {
  644. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  645. if (existsPageIndex !== -1) {
  646. var delta = getCurrentPages().length - 1 - existsPageIndex;
  647. if (delta > 0) {
  648. fromArgs.delta = delta;
  649. }
  650. }
  651. }
  652. }
  653. };
  654. var previewImage = {
  655. args: function args(fromArgs) {
  656. var currentIndex = parseInt(fromArgs.current);
  657. if (isNaN(currentIndex)) {
  658. return;
  659. }
  660. var urls = fromArgs.urls;
  661. if (!Array.isArray(urls)) {
  662. return;
  663. }
  664. var len = urls.length;
  665. if (!len) {
  666. return;
  667. }
  668. if (currentIndex < 0) {
  669. currentIndex = 0;
  670. } else if (currentIndex >= len) {
  671. currentIndex = len - 1;
  672. }
  673. if (currentIndex > 0) {
  674. fromArgs.current = urls[currentIndex];
  675. fromArgs.urls = urls.filter(function (item, index) {
  676. return index < currentIndex ? item !== urls[currentIndex] : true;
  677. });
  678. } else {
  679. fromArgs.current = urls[0];
  680. }
  681. return {
  682. indicator: false,
  683. loop: false
  684. };
  685. }
  686. };
  687. var UUID_KEY = '__DC_STAT_UUID';
  688. var deviceId;
  689. function useDeviceId(result) {
  690. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  691. if (!deviceId) {
  692. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  693. wx.setStorage({
  694. key: UUID_KEY,
  695. data: deviceId
  696. });
  697. }
  698. result.deviceId = deviceId;
  699. }
  700. function addSafeAreaInsets(result) {
  701. if (result.safeArea) {
  702. var safeArea = result.safeArea;
  703. result.safeAreaInsets = {
  704. top: safeArea.top,
  705. left: safeArea.left,
  706. right: result.windowWidth - safeArea.right,
  707. bottom: result.screenHeight - safeArea.bottom
  708. };
  709. }
  710. }
  711. function populateParameters(result) {
  712. var _result$brand = result.brand,
  713. brand = _result$brand === void 0 ? '' : _result$brand,
  714. _result$model = result.model,
  715. model = _result$model === void 0 ? '' : _result$model,
  716. _result$system = result.system,
  717. system = _result$system === void 0 ? '' : _result$system,
  718. _result$language = result.language,
  719. language = _result$language === void 0 ? '' : _result$language,
  720. theme = result.theme,
  721. version = result.version,
  722. platform = result.platform,
  723. fontSizeSetting = result.fontSizeSetting,
  724. SDKVersion = result.SDKVersion,
  725. pixelRatio = result.pixelRatio,
  726. deviceOrientation = result.deviceOrientation;
  727. // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
  728. var extraParam = {};
  729. // osName osVersion
  730. var osName = '';
  731. var osVersion = '';
  732. {
  733. osName = system.split(' ')[0] || '';
  734. osVersion = system.split(' ')[1] || '';
  735. }
  736. var hostVersion = version;
  737. // deviceType
  738. var deviceType = getGetDeviceType(result, model);
  739. // deviceModel
  740. var deviceBrand = getDeviceBrand(brand);
  741. // hostName
  742. var _hostName = getHostName(result);
  743. // deviceOrientation
  744. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  745. // devicePixelRatio
  746. var _devicePixelRatio = pixelRatio;
  747. // SDKVersion
  748. var _SDKVersion = SDKVersion;
  749. // hostLanguage
  750. var hostLanguage = language.replace(/_/g, '-');
  751. // wx.getAccountInfoSync
  752. var parameters = {
  753. appId: "__UNI__08CF2F6",
  754. appName: "yaojiu",
  755. appVersion: "1.0.0",
  756. appVersionCode: "100",
  757. appLanguage: getAppLanguage(hostLanguage),
  758. uniCompileVersion: "4.08",
  759. uniRuntimeVersion: "4.08",
  760. uniPlatform: undefined || "mp-weixin",
  761. deviceBrand: deviceBrand,
  762. deviceModel: model,
  763. deviceType: deviceType,
  764. devicePixelRatio: _devicePixelRatio,
  765. deviceOrientation: _deviceOrientation,
  766. osName: osName.toLocaleLowerCase(),
  767. osVersion: osVersion,
  768. hostTheme: theme,
  769. hostVersion: hostVersion,
  770. hostLanguage: hostLanguage,
  771. hostName: _hostName,
  772. hostSDKVersion: _SDKVersion,
  773. hostFontSizeSetting: fontSizeSetting,
  774. windowTop: 0,
  775. windowBottom: 0,
  776. // TODO
  777. osLanguage: undefined,
  778. osTheme: undefined,
  779. ua: undefined,
  780. hostPackageName: undefined,
  781. browserName: undefined,
  782. browserVersion: undefined
  783. };
  784. Object.assign(result, parameters, extraParam);
  785. }
  786. function getGetDeviceType(result, model) {
  787. var deviceType = result.deviceType || 'phone';
  788. {
  789. var deviceTypeMaps = {
  790. ipad: 'pad',
  791. windows: 'pc',
  792. mac: 'pc'
  793. };
  794. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  795. var _model = model.toLocaleLowerCase();
  796. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  797. var _m = deviceTypeMapsKeys[index];
  798. if (_model.indexOf(_m) !== -1) {
  799. deviceType = deviceTypeMaps[_m];
  800. break;
  801. }
  802. }
  803. }
  804. return deviceType;
  805. }
  806. function getDeviceBrand(brand) {
  807. var deviceBrand = brand;
  808. if (deviceBrand) {
  809. deviceBrand = brand.toLocaleLowerCase();
  810. }
  811. return deviceBrand;
  812. }
  813. function getAppLanguage(defaultLanguage) {
  814. return getLocale$1 ? getLocale$1() : defaultLanguage;
  815. }
  816. function getHostName(result) {
  817. var _platform = 'WeChat';
  818. var _hostName = result.hostName || _platform; // mp-jd
  819. {
  820. if (result.environment) {
  821. _hostName = result.environment;
  822. } else if (result.host && result.host.env) {
  823. _hostName = result.host.env;
  824. }
  825. }
  826. return _hostName;
  827. }
  828. var getSystemInfo = {
  829. returnValue: function returnValue(result) {
  830. useDeviceId(result);
  831. addSafeAreaInsets(result);
  832. populateParameters(result);
  833. }
  834. };
  835. var showActionSheet = {
  836. args: function args(fromArgs) {
  837. if ((0, _typeof2.default)(fromArgs) === 'object') {
  838. fromArgs.alertText = fromArgs.title;
  839. }
  840. }
  841. };
  842. var getAppBaseInfo = {
  843. returnValue: function returnValue(result) {
  844. var _result = result,
  845. version = _result.version,
  846. language = _result.language,
  847. SDKVersion = _result.SDKVersion,
  848. theme = _result.theme;
  849. var _hostName = getHostName(result);
  850. var hostLanguage = language.replace('_', '-');
  851. result = sortObject(Object.assign(result, {
  852. appId: "__UNI__08CF2F6",
  853. appName: "yaojiu",
  854. appVersion: "1.0.0",
  855. appVersionCode: "100",
  856. appLanguage: getAppLanguage(hostLanguage),
  857. hostVersion: version,
  858. hostLanguage: hostLanguage,
  859. hostName: _hostName,
  860. hostSDKVersion: SDKVersion,
  861. hostTheme: theme
  862. }));
  863. }
  864. };
  865. var getDeviceInfo = {
  866. returnValue: function returnValue(result) {
  867. var _result2 = result,
  868. brand = _result2.brand,
  869. model = _result2.model;
  870. var deviceType = getGetDeviceType(result, model);
  871. var deviceBrand = getDeviceBrand(brand);
  872. useDeviceId(result);
  873. result = sortObject(Object.assign(result, {
  874. deviceType: deviceType,
  875. deviceBrand: deviceBrand,
  876. deviceModel: model
  877. }));
  878. }
  879. };
  880. var getWindowInfo = {
  881. returnValue: function returnValue(result) {
  882. addSafeAreaInsets(result);
  883. result = sortObject(Object.assign(result, {
  884. windowTop: 0,
  885. windowBottom: 0
  886. }));
  887. }
  888. };
  889. var getAppAuthorizeSetting = {
  890. returnValue: function returnValue(result) {
  891. var locationReducedAccuracy = result.locationReducedAccuracy;
  892. result.locationAccuracy = 'unsupported';
  893. if (locationReducedAccuracy === true) {
  894. result.locationAccuracy = 'reduced';
  895. } else if (locationReducedAccuracy === false) {
  896. result.locationAccuracy = 'full';
  897. }
  898. }
  899. };
  900. // import navigateTo from 'uni-helpers/navigate-to'
  901. var compressImage = {
  902. args: function args(fromArgs) {
  903. // https://developers.weixin.qq.com/community/develop/doc/000c08940c865011298e0a43256800?highLine=compressHeight
  904. if (fromArgs.compressedHeight && !fromArgs.compressHeight) {
  905. fromArgs.compressHeight = fromArgs.compressedHeight;
  906. }
  907. if (fromArgs.compressedWidth && !fromArgs.compressWidth) {
  908. fromArgs.compressWidth = fromArgs.compressedWidth;
  909. }
  910. }
  911. };
  912. var protocols = {
  913. redirectTo: redirectTo,
  914. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  915. previewImage: previewImage,
  916. getSystemInfo: getSystemInfo,
  917. getSystemInfoSync: getSystemInfo,
  918. showActionSheet: showActionSheet,
  919. getAppBaseInfo: getAppBaseInfo,
  920. getDeviceInfo: getDeviceInfo,
  921. getWindowInfo: getWindowInfo,
  922. getAppAuthorizeSetting: getAppAuthorizeSetting,
  923. compressImage: compressImage
  924. };
  925. var todos = ['vibrate', 'preloadPage', 'unPreloadPage', 'loadSubPackage'];
  926. var canIUses = [];
  927. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  928. function processCallback(methodName, method, returnValue) {
  929. return function (res) {
  930. return method(processReturnValue(methodName, res, returnValue));
  931. };
  932. }
  933. function processArgs(methodName, fromArgs) {
  934. var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  935. var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  936. var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  937. if (isPlainObject(fromArgs)) {
  938. // 一般 api 的参数解析
  939. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  940. if (isFn(argsOption)) {
  941. argsOption = argsOption(fromArgs, toArgs) || {};
  942. }
  943. for (var key in fromArgs) {
  944. if (hasOwn(argsOption, key)) {
  945. var keyOption = argsOption[key];
  946. if (isFn(keyOption)) {
  947. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  948. }
  949. if (!keyOption) {
  950. // 不支持的参数
  951. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  952. } else if (isStr(keyOption)) {
  953. // 重写参数 key
  954. toArgs[keyOption] = fromArgs[key];
  955. } else if (isPlainObject(keyOption)) {
  956. // {name:newName,value:value}可重新指定参数 key:value
  957. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  958. }
  959. } else if (CALLBACKS.indexOf(key) !== -1) {
  960. if (isFn(fromArgs[key])) {
  961. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  962. }
  963. } else {
  964. if (!keepFromArgs) {
  965. toArgs[key] = fromArgs[key];
  966. }
  967. }
  968. }
  969. return toArgs;
  970. } else if (isFn(fromArgs)) {
  971. fromArgs = processCallback(methodName, fromArgs, returnValue);
  972. }
  973. return fromArgs;
  974. }
  975. function processReturnValue(methodName, res, returnValue) {
  976. var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  977. if (isFn(protocols.returnValue)) {
  978. // 处理通用 returnValue
  979. res = protocols.returnValue(methodName, res);
  980. }
  981. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  982. }
  983. function wrapper(methodName, method) {
  984. if (hasOwn(protocols, methodName)) {
  985. var protocol = protocols[methodName];
  986. if (!protocol) {
  987. // 暂不支持的 api
  988. return function () {
  989. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  990. };
  991. }
  992. return function (arg1, arg2) {
  993. // 目前 api 最多两个参数
  994. var options = protocol;
  995. if (isFn(protocol)) {
  996. options = protocol(arg1);
  997. }
  998. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  999. var args = [arg1];
  1000. if (typeof arg2 !== 'undefined') {
  1001. args.push(arg2);
  1002. }
  1003. if (isFn(options.name)) {
  1004. methodName = options.name(arg1);
  1005. } else if (isStr(options.name)) {
  1006. methodName = options.name;
  1007. }
  1008. var returnValue = wx[methodName].apply(wx, args);
  1009. if (isSyncApi(methodName)) {
  1010. // 同步 api
  1011. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  1012. }
  1013. return returnValue;
  1014. };
  1015. }
  1016. return method;
  1017. }
  1018. var todoApis = Object.create(null);
  1019. var TODOS = ['onTabBarMidButtonTap', 'subscribePush', 'unsubscribePush', 'onPush', 'offPush', 'share'];
  1020. function createTodoApi(name) {
  1021. return function todoApi(_ref) {
  1022. var fail = _ref.fail,
  1023. complete = _ref.complete;
  1024. var res = {
  1025. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported")
  1026. };
  1027. isFn(fail) && fail(res);
  1028. isFn(complete) && complete(res);
  1029. };
  1030. }
  1031. TODOS.forEach(function (name) {
  1032. todoApis[name] = createTodoApi(name);
  1033. });
  1034. var providers = {
  1035. oauth: ['weixin'],
  1036. share: ['weixin'],
  1037. payment: ['wxpay'],
  1038. push: ['weixin']
  1039. };
  1040. function getProvider(_ref2) {
  1041. var service = _ref2.service,
  1042. success = _ref2.success,
  1043. fail = _ref2.fail,
  1044. complete = _ref2.complete;
  1045. var res = false;
  1046. if (providers[service]) {
  1047. res = {
  1048. errMsg: 'getProvider:ok',
  1049. service: service,
  1050. provider: providers[service]
  1051. };
  1052. isFn(success) && success(res);
  1053. } else {
  1054. res = {
  1055. errMsg: 'getProvider:fail service not found'
  1056. };
  1057. isFn(fail) && fail(res);
  1058. }
  1059. isFn(complete) && complete(res);
  1060. }
  1061. var extraApi = /*#__PURE__*/Object.freeze({
  1062. __proto__: null,
  1063. getProvider: getProvider
  1064. });
  1065. var getEmitter = function () {
  1066. var Emitter;
  1067. return function getUniEmitter() {
  1068. if (!Emitter) {
  1069. Emitter = new _vue.default();
  1070. }
  1071. return Emitter;
  1072. };
  1073. }();
  1074. function apply(ctx, method, args) {
  1075. return ctx[method].apply(ctx, args);
  1076. }
  1077. function $on() {
  1078. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  1079. }
  1080. function $off() {
  1081. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  1082. }
  1083. function $once() {
  1084. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  1085. }
  1086. function $emit() {
  1087. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  1088. }
  1089. var eventApi = /*#__PURE__*/Object.freeze({
  1090. __proto__: null,
  1091. $on: $on,
  1092. $off: $off,
  1093. $once: $once,
  1094. $emit: $emit
  1095. });
  1096. /**
  1097. * 框架内 try-catch
  1098. */
  1099. /**
  1100. * 开发者 try-catch
  1101. */
  1102. function tryCatch(fn) {
  1103. return function () {
  1104. try {
  1105. return fn.apply(fn, arguments);
  1106. } catch (e) {
  1107. // TODO
  1108. console.error(e);
  1109. }
  1110. };
  1111. }
  1112. function getApiCallbacks(params) {
  1113. var apiCallbacks = {};
  1114. for (var name in params) {
  1115. var param = params[name];
  1116. if (isFn(param)) {
  1117. apiCallbacks[name] = tryCatch(param);
  1118. delete params[name];
  1119. }
  1120. }
  1121. return apiCallbacks;
  1122. }
  1123. var cid;
  1124. var cidErrMsg;
  1125. var enabled;
  1126. function normalizePushMessage(message) {
  1127. try {
  1128. return JSON.parse(message);
  1129. } catch (e) {}
  1130. return message;
  1131. }
  1132. function invokePushCallback(args) {
  1133. if (args.type === 'enabled') {
  1134. enabled = true;
  1135. } else if (args.type === 'clientId') {
  1136. cid = args.cid;
  1137. cidErrMsg = args.errMsg;
  1138. invokeGetPushCidCallbacks(cid, args.errMsg);
  1139. } else if (args.type === 'pushMsg') {
  1140. var message = {
  1141. type: 'receive',
  1142. data: normalizePushMessage(args.message)
  1143. };
  1144. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  1145. var callback = onPushMessageCallbacks[i];
  1146. callback(message);
  1147. // 该消息已被阻止
  1148. if (message.stopped) {
  1149. break;
  1150. }
  1151. }
  1152. } else if (args.type === 'click') {
  1153. onPushMessageCallbacks.forEach(function (callback) {
  1154. callback({
  1155. type: 'click',
  1156. data: normalizePushMessage(args.message)
  1157. });
  1158. });
  1159. }
  1160. }
  1161. var getPushCidCallbacks = [];
  1162. function invokeGetPushCidCallbacks(cid, errMsg) {
  1163. getPushCidCallbacks.forEach(function (callback) {
  1164. callback(cid, errMsg);
  1165. });
  1166. getPushCidCallbacks.length = 0;
  1167. }
  1168. function getPushClientId(args) {
  1169. if (!isPlainObject(args)) {
  1170. args = {};
  1171. }
  1172. var _getApiCallbacks = getApiCallbacks(args),
  1173. success = _getApiCallbacks.success,
  1174. fail = _getApiCallbacks.fail,
  1175. complete = _getApiCallbacks.complete;
  1176. var hasSuccess = isFn(success);
  1177. var hasFail = isFn(fail);
  1178. var hasComplete = isFn(complete);
  1179. Promise.resolve().then(function () {
  1180. if (typeof enabled === 'undefined') {
  1181. enabled = false;
  1182. cid = '';
  1183. cidErrMsg = 'uniPush is not enabled';
  1184. }
  1185. getPushCidCallbacks.push(function (cid, errMsg) {
  1186. var res;
  1187. if (cid) {
  1188. res = {
  1189. errMsg: 'getPushClientId:ok',
  1190. cid: cid
  1191. };
  1192. hasSuccess && success(res);
  1193. } else {
  1194. res = {
  1195. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
  1196. };
  1197. hasFail && fail(res);
  1198. }
  1199. hasComplete && complete(res);
  1200. });
  1201. if (typeof cid !== 'undefined') {
  1202. invokeGetPushCidCallbacks(cid, cidErrMsg);
  1203. }
  1204. });
  1205. }
  1206. var onPushMessageCallbacks = [];
  1207. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  1208. var onPushMessage = function onPushMessage(fn) {
  1209. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  1210. onPushMessageCallbacks.push(fn);
  1211. }
  1212. };
  1213. var offPushMessage = function offPushMessage(fn) {
  1214. if (!fn) {
  1215. onPushMessageCallbacks.length = 0;
  1216. } else {
  1217. var index = onPushMessageCallbacks.indexOf(fn);
  1218. if (index > -1) {
  1219. onPushMessageCallbacks.splice(index, 1);
  1220. }
  1221. }
  1222. };
  1223. var baseInfo = wx.getAppBaseInfo && wx.getAppBaseInfo();
  1224. if (!baseInfo) {
  1225. baseInfo = wx.getSystemInfoSync();
  1226. }
  1227. var host = baseInfo ? baseInfo.host : null;
  1228. var shareVideoMessage = host && host.env === 'SAAASDK' ? wx.miniapp.shareVideoMessage : wx.shareVideoMessage;
  1229. var api = /*#__PURE__*/Object.freeze({
  1230. __proto__: null,
  1231. shareVideoMessage: shareVideoMessage,
  1232. getPushClientId: getPushClientId,
  1233. onPushMessage: onPushMessage,
  1234. offPushMessage: offPushMessage,
  1235. invokePushCallback: invokePushCallback
  1236. });
  1237. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1238. function findVmByVueId(vm, vuePid) {
  1239. var $children = vm.$children;
  1240. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1241. for (var i = $children.length - 1; i >= 0; i--) {
  1242. var childVm = $children[i];
  1243. if (childVm.$scope._$vueId === vuePid) {
  1244. return childVm;
  1245. }
  1246. }
  1247. // 反向递归查找
  1248. var parentVm;
  1249. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1250. parentVm = findVmByVueId($children[_i], vuePid);
  1251. if (parentVm) {
  1252. return parentVm;
  1253. }
  1254. }
  1255. }
  1256. function initBehavior(options) {
  1257. return Behavior(options);
  1258. }
  1259. function isPage() {
  1260. return !!this.route;
  1261. }
  1262. function initRelation(detail) {
  1263. this.triggerEvent('__l', detail);
  1264. }
  1265. function selectAllComponents(mpInstance, selector, $refs) {
  1266. var components = mpInstance.selectAllComponents(selector) || [];
  1267. components.forEach(function (component) {
  1268. var ref = component.dataset.ref;
  1269. $refs[ref] = component.$vm || toSkip(component);
  1270. {
  1271. if (component.dataset.vueGeneric === 'scoped') {
  1272. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1273. selectAllComponents(scopedComponent, selector, $refs);
  1274. });
  1275. }
  1276. }
  1277. });
  1278. }
  1279. function syncRefs(refs, newRefs) {
  1280. var oldKeys = (0, _construct2.default)(Set, (0, _toConsumableArray2.default)(Object.keys(refs)));
  1281. var newKeys = Object.keys(newRefs);
  1282. newKeys.forEach(function (key) {
  1283. var oldValue = refs[key];
  1284. var newValue = newRefs[key];
  1285. if (Array.isArray(oldValue) && Array.isArray(newValue) && oldValue.length === newValue.length && newValue.every(function (value) {
  1286. return oldValue.includes(value);
  1287. })) {
  1288. return;
  1289. }
  1290. refs[key] = newValue;
  1291. oldKeys.delete(key);
  1292. });
  1293. oldKeys.forEach(function (key) {
  1294. delete refs[key];
  1295. });
  1296. return refs;
  1297. }
  1298. function initRefs(vm) {
  1299. var mpInstance = vm.$scope;
  1300. var refs = {};
  1301. Object.defineProperty(vm, '$refs', {
  1302. get: function get() {
  1303. var $refs = {};
  1304. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1305. // TODO 暂不考虑 for 中的 scoped
  1306. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for') || [];
  1307. forComponents.forEach(function (component) {
  1308. var ref = component.dataset.ref;
  1309. if (!$refs[ref]) {
  1310. $refs[ref] = [];
  1311. }
  1312. $refs[ref].push(component.$vm || toSkip(component));
  1313. });
  1314. return syncRefs(refs, $refs);
  1315. }
  1316. });
  1317. }
  1318. function handleLink(event) {
  1319. var _ref3 = event.detail || event.value,
  1320. vuePid = _ref3.vuePid,
  1321. vueOptions = _ref3.vueOptions; // detail 是微信,value 是百度(dipatch)
  1322. var parentVm;
  1323. if (vuePid) {
  1324. parentVm = findVmByVueId(this.$vm, vuePid);
  1325. }
  1326. if (!parentVm) {
  1327. parentVm = this.$vm;
  1328. }
  1329. vueOptions.parent = parentVm;
  1330. }
  1331. function markMPComponent(component) {
  1332. // 在 Vue 中标记为小程序组件
  1333. var IS_MP = '__v_isMPComponent';
  1334. Object.defineProperty(component, IS_MP, {
  1335. configurable: true,
  1336. enumerable: false,
  1337. value: true
  1338. });
  1339. return component;
  1340. }
  1341. function toSkip(obj) {
  1342. var OB = '__ob__';
  1343. var SKIP = '__v_skip';
  1344. if (isObject(obj) && Object.isExtensible(obj)) {
  1345. // 避免被 @vue/composition-api 观测
  1346. Object.defineProperty(obj, OB, {
  1347. configurable: true,
  1348. enumerable: false,
  1349. value: (0, _defineProperty2.default)({}, SKIP, true)
  1350. });
  1351. }
  1352. return obj;
  1353. }
  1354. var WORKLET_RE = /_(.*)_worklet_factory_/;
  1355. function initWorkletMethods(mpMethods, vueMethods) {
  1356. if (vueMethods) {
  1357. Object.keys(vueMethods).forEach(function (name) {
  1358. var matches = name.match(WORKLET_RE);
  1359. if (matches) {
  1360. var workletName = matches[1];
  1361. mpMethods[name] = vueMethods[name];
  1362. mpMethods[workletName] = vueMethods[workletName];
  1363. }
  1364. });
  1365. }
  1366. }
  1367. var MPPage = Page;
  1368. var MPComponent = Component;
  1369. var customizeRE = /:/g;
  1370. var customize = cached(function (str) {
  1371. return camelize(str.replace(customizeRE, '-'));
  1372. });
  1373. function initTriggerEvent(mpInstance) {
  1374. var oldTriggerEvent = mpInstance.triggerEvent;
  1375. var newTriggerEvent = function newTriggerEvent(event) {
  1376. for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
  1377. args[_key3 - 1] = arguments[_key3];
  1378. }
  1379. // 事件名统一转驼峰格式,仅处理:当前组件为 vue 组件、当前组件为 vue 组件子组件
  1380. if (this.$vm || this.dataset && this.dataset.comType) {
  1381. event = customize(event);
  1382. } else {
  1383. // 针对微信/QQ小程序单独补充驼峰格式事件,以兼容历史项目
  1384. var newEvent = customize(event);
  1385. if (newEvent !== event) {
  1386. oldTriggerEvent.apply(this, [newEvent].concat(args));
  1387. }
  1388. }
  1389. return oldTriggerEvent.apply(this, [event].concat(args));
  1390. };
  1391. try {
  1392. // 京东小程序 triggerEvent 为只读
  1393. mpInstance.triggerEvent = newTriggerEvent;
  1394. } catch (error) {
  1395. mpInstance._triggerEvent = newTriggerEvent;
  1396. }
  1397. }
  1398. function initHook(name, options, isComponent) {
  1399. var oldHook = options[name];
  1400. options[name] = function () {
  1401. markMPComponent(this);
  1402. initTriggerEvent(this);
  1403. if (oldHook) {
  1404. for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  1405. args[_key4] = arguments[_key4];
  1406. }
  1407. return oldHook.apply(this, args);
  1408. }
  1409. };
  1410. }
  1411. if (!MPPage.__$wrappered) {
  1412. MPPage.__$wrappered = true;
  1413. Page = function Page() {
  1414. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1415. initHook('onLoad', options);
  1416. return MPPage(options);
  1417. };
  1418. Page.after = MPPage.after;
  1419. Component = function Component() {
  1420. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1421. initHook('created', options);
  1422. return MPComponent(options);
  1423. };
  1424. }
  1425. var PAGE_EVENT_HOOKS = ['onPullDownRefresh', 'onReachBottom', 'onAddToFavorites', 'onShareTimeline', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
  1426. function initMocks(vm, mocks) {
  1427. var mpInstance = vm.$mp[vm.mpType];
  1428. mocks.forEach(function (mock) {
  1429. if (hasOwn(mpInstance, mock)) {
  1430. vm[mock] = mpInstance[mock];
  1431. }
  1432. });
  1433. }
  1434. function hasHook(hook, vueOptions) {
  1435. if (!vueOptions) {
  1436. return true;
  1437. }
  1438. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  1439. return true;
  1440. }
  1441. vueOptions = vueOptions.default || vueOptions;
  1442. if (isFn(vueOptions)) {
  1443. if (isFn(vueOptions.extendOptions[hook])) {
  1444. return true;
  1445. }
  1446. if (vueOptions.super && vueOptions.super.options && Array.isArray(vueOptions.super.options[hook])) {
  1447. return true;
  1448. }
  1449. return false;
  1450. }
  1451. if (isFn(vueOptions[hook]) || Array.isArray(vueOptions[hook])) {
  1452. return true;
  1453. }
  1454. var mixins = vueOptions.mixins;
  1455. if (Array.isArray(mixins)) {
  1456. return !!mixins.find(function (mixin) {
  1457. return hasHook(hook, mixin);
  1458. });
  1459. }
  1460. }
  1461. function initHooks(mpOptions, hooks, vueOptions) {
  1462. hooks.forEach(function (hook) {
  1463. if (hasHook(hook, vueOptions)) {
  1464. mpOptions[hook] = function (args) {
  1465. return this.$vm && this.$vm.__call_hook(hook, args);
  1466. };
  1467. }
  1468. });
  1469. }
  1470. function initUnknownHooks(mpOptions, vueOptions) {
  1471. var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1472. findHooks(vueOptions).forEach(function (hook) {
  1473. return initHook$1(mpOptions, hook, excludes);
  1474. });
  1475. }
  1476. function findHooks(vueOptions) {
  1477. var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  1478. if (vueOptions) {
  1479. Object.keys(vueOptions).forEach(function (name) {
  1480. if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
  1481. hooks.push(name);
  1482. }
  1483. });
  1484. }
  1485. return hooks;
  1486. }
  1487. function initHook$1(mpOptions, hook, excludes) {
  1488. if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
  1489. mpOptions[hook] = function (args) {
  1490. return this.$vm && this.$vm.__call_hook(hook, args);
  1491. };
  1492. }
  1493. }
  1494. function initVueComponent(Vue, vueOptions) {
  1495. vueOptions = vueOptions.default || vueOptions;
  1496. var VueComponent;
  1497. if (isFn(vueOptions)) {
  1498. VueComponent = vueOptions;
  1499. } else {
  1500. VueComponent = Vue.extend(vueOptions);
  1501. }
  1502. vueOptions = VueComponent.options;
  1503. return [VueComponent, vueOptions];
  1504. }
  1505. function initSlots(vm, vueSlots) {
  1506. if (Array.isArray(vueSlots) && vueSlots.length) {
  1507. var $slots = Object.create(null);
  1508. vueSlots.forEach(function (slotName) {
  1509. $slots[slotName] = true;
  1510. });
  1511. vm.$scopedSlots = vm.$slots = $slots;
  1512. }
  1513. }
  1514. function initVueIds(vueIds, mpInstance) {
  1515. vueIds = (vueIds || '').split(',');
  1516. var len = vueIds.length;
  1517. if (len === 1) {
  1518. mpInstance._$vueId = vueIds[0];
  1519. } else if (len === 2) {
  1520. mpInstance._$vueId = vueIds[0];
  1521. mpInstance._$vuePid = vueIds[1];
  1522. }
  1523. }
  1524. function initData(vueOptions, context) {
  1525. var data = vueOptions.data || {};
  1526. var methods = vueOptions.methods || {};
  1527. if (typeof data === 'function') {
  1528. try {
  1529. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  1530. } catch (e) {
  1531. if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"yaojiu","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  1532. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  1533. }
  1534. }
  1535. } else {
  1536. try {
  1537. // 对 data 格式化
  1538. data = JSON.parse(JSON.stringify(data));
  1539. } catch (e) {}
  1540. }
  1541. if (!isPlainObject(data)) {
  1542. data = {};
  1543. }
  1544. Object.keys(methods).forEach(function (methodName) {
  1545. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  1546. data[methodName] = methods[methodName];
  1547. }
  1548. });
  1549. return data;
  1550. }
  1551. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  1552. function createObserver(name) {
  1553. return function observer(newVal, oldVal) {
  1554. if (this.$vm) {
  1555. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  1556. }
  1557. };
  1558. }
  1559. function initBehaviors(vueOptions, initBehavior) {
  1560. var vueBehaviors = vueOptions.behaviors;
  1561. var vueExtends = vueOptions.extends;
  1562. var vueMixins = vueOptions.mixins;
  1563. var vueProps = vueOptions.props;
  1564. if (!vueProps) {
  1565. vueOptions.props = vueProps = [];
  1566. }
  1567. var behaviors = [];
  1568. if (Array.isArray(vueBehaviors)) {
  1569. vueBehaviors.forEach(function (behavior) {
  1570. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  1571. if (behavior === 'uni://form-field') {
  1572. if (Array.isArray(vueProps)) {
  1573. vueProps.push('name');
  1574. vueProps.push('value');
  1575. } else {
  1576. vueProps.name = {
  1577. type: String,
  1578. default: ''
  1579. };
  1580. vueProps.value = {
  1581. type: [String, Number, Boolean, Array, Object, Date],
  1582. default: ''
  1583. };
  1584. }
  1585. }
  1586. });
  1587. }
  1588. if (isPlainObject(vueExtends) && vueExtends.props) {
  1589. behaviors.push(initBehavior({
  1590. properties: initProperties(vueExtends.props, true)
  1591. }));
  1592. }
  1593. if (Array.isArray(vueMixins)) {
  1594. vueMixins.forEach(function (vueMixin) {
  1595. if (isPlainObject(vueMixin) && vueMixin.props) {
  1596. behaviors.push(initBehavior({
  1597. properties: initProperties(vueMixin.props, true)
  1598. }));
  1599. }
  1600. });
  1601. }
  1602. return behaviors;
  1603. }
  1604. function parsePropType(key, type, defaultValue, file) {
  1605. // [String]=>String
  1606. if (Array.isArray(type) && type.length === 1) {
  1607. return type[0];
  1608. }
  1609. return type;
  1610. }
  1611. function initProperties(props) {
  1612. var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  1613. var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  1614. var options = arguments.length > 3 ? arguments[3] : undefined;
  1615. var properties = {};
  1616. if (!isBehavior) {
  1617. properties.vueId = {
  1618. type: String,
  1619. value: ''
  1620. };
  1621. {
  1622. if (options.virtualHost) {
  1623. properties.virtualHostStyle = {
  1624. type: null,
  1625. value: ''
  1626. };
  1627. properties.virtualHostClass = {
  1628. type: null,
  1629. value: ''
  1630. };
  1631. }
  1632. }
  1633. // scopedSlotsCompiler auto
  1634. properties.scopedSlotsCompiler = {
  1635. type: String,
  1636. value: ''
  1637. };
  1638. properties.vueSlots = {
  1639. // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  1640. type: null,
  1641. value: [],
  1642. observer: function observer(newVal, oldVal) {
  1643. var $slots = Object.create(null);
  1644. newVal.forEach(function (slotName) {
  1645. $slots[slotName] = true;
  1646. });
  1647. this.setData({
  1648. $slots: $slots
  1649. });
  1650. }
  1651. };
  1652. }
  1653. if (Array.isArray(props)) {
  1654. // ['title']
  1655. props.forEach(function (key) {
  1656. properties[key] = {
  1657. type: null,
  1658. observer: createObserver(key)
  1659. };
  1660. });
  1661. } else if (isPlainObject(props)) {
  1662. // {title:{type:String,default:''},content:String}
  1663. Object.keys(props).forEach(function (key) {
  1664. var opts = props[key];
  1665. if (isPlainObject(opts)) {
  1666. // title:{type:String,default:''}
  1667. var value = opts.default;
  1668. if (isFn(value)) {
  1669. value = value();
  1670. }
  1671. opts.type = parsePropType(key, opts.type);
  1672. properties[key] = {
  1673. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  1674. value: value,
  1675. observer: createObserver(key)
  1676. };
  1677. } else {
  1678. // content:String
  1679. var type = parsePropType(key, opts);
  1680. properties[key] = {
  1681. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  1682. observer: createObserver(key)
  1683. };
  1684. }
  1685. });
  1686. }
  1687. return properties;
  1688. }
  1689. function wrapper$1(event) {
  1690. // TODO 又得兼容 mpvue 的 mp 对象
  1691. try {
  1692. event.mp = JSON.parse(JSON.stringify(event));
  1693. } catch (e) {}
  1694. event.stopPropagation = noop;
  1695. event.preventDefault = noop;
  1696. event.target = event.target || {};
  1697. if (!hasOwn(event, 'detail')) {
  1698. event.detail = {};
  1699. }
  1700. if (hasOwn(event, 'markerId')) {
  1701. event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
  1702. event.detail.markerId = event.markerId;
  1703. }
  1704. if (isPlainObject(event.detail)) {
  1705. event.target = Object.assign({}, event.target, event.detail);
  1706. }
  1707. return event;
  1708. }
  1709. function getExtraValue(vm, dataPathsArray) {
  1710. var context = vm;
  1711. dataPathsArray.forEach(function (dataPathArray) {
  1712. var dataPath = dataPathArray[0];
  1713. var value = dataPathArray[2];
  1714. if (dataPath || typeof value !== 'undefined') {
  1715. // ['','',index,'disable']
  1716. var propPath = dataPathArray[1];
  1717. var valuePath = dataPathArray[3];
  1718. var vFor;
  1719. if (Number.isInteger(dataPath)) {
  1720. vFor = dataPath;
  1721. } else if (!dataPath) {
  1722. vFor = context;
  1723. } else if (typeof dataPath === 'string' && dataPath) {
  1724. if (dataPath.indexOf('#s#') === 0) {
  1725. vFor = dataPath.substr(3);
  1726. } else {
  1727. vFor = vm.__get_value(dataPath, context);
  1728. }
  1729. }
  1730. if (Number.isInteger(vFor)) {
  1731. context = value;
  1732. } else if (!propPath) {
  1733. context = vFor[value];
  1734. } else {
  1735. if (Array.isArray(vFor)) {
  1736. context = vFor.find(function (vForItem) {
  1737. return vm.__get_value(propPath, vForItem) === value;
  1738. });
  1739. } else if (isPlainObject(vFor)) {
  1740. context = Object.keys(vFor).find(function (vForKey) {
  1741. return vm.__get_value(propPath, vFor[vForKey]) === value;
  1742. });
  1743. } else {
  1744. console.error('v-for 暂不支持循环数据:', vFor);
  1745. }
  1746. }
  1747. if (valuePath) {
  1748. context = vm.__get_value(valuePath, context);
  1749. }
  1750. }
  1751. });
  1752. return context;
  1753. }
  1754. function processEventExtra(vm, extra, event, __args__) {
  1755. var extraObj = {};
  1756. if (Array.isArray(extra) && extra.length) {
  1757. /**
  1758. *[
  1759. * ['data.items', 'data.id', item.data.id],
  1760. * ['metas', 'id', meta.id]
  1761. *],
  1762. *[
  1763. * ['data.items', 'data.id', item.data.id],
  1764. * ['metas', 'id', meta.id]
  1765. *],
  1766. *'test'
  1767. */
  1768. extra.forEach(function (dataPath, index) {
  1769. if (typeof dataPath === 'string') {
  1770. if (!dataPath) {
  1771. // model,prop.sync
  1772. extraObj['$' + index] = vm;
  1773. } else {
  1774. if (dataPath === '$event') {
  1775. // $event
  1776. extraObj['$' + index] = event;
  1777. } else if (dataPath === 'arguments') {
  1778. extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
  1779. } else if (dataPath.indexOf('$event.') === 0) {
  1780. // $event.target.value
  1781. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1782. } else {
  1783. extraObj['$' + index] = vm.__get_value(dataPath);
  1784. }
  1785. }
  1786. } else {
  1787. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1788. }
  1789. });
  1790. }
  1791. return extraObj;
  1792. }
  1793. function getObjByArray(arr) {
  1794. var obj = {};
  1795. for (var i = 1; i < arr.length; i++) {
  1796. var element = arr[i];
  1797. obj[element[0]] = element[1];
  1798. }
  1799. return obj;
  1800. }
  1801. function processEventArgs(vm, event) {
  1802. var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1803. var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  1804. var isCustom = arguments.length > 4 ? arguments[4] : undefined;
  1805. var methodName = arguments.length > 5 ? arguments[5] : undefined;
  1806. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  1807. // fixed 用户直接触发 mpInstance.triggerEvent
  1808. var __args__ = isPlainObject(event.detail) ? event.detail.__args__ || [event.detail] : [event.detail];
  1809. if (isCustom) {
  1810. // 自定义事件
  1811. isCustomMPEvent = event.currentTarget && event.currentTarget.dataset && event.currentTarget.dataset.comType === 'wx';
  1812. if (!args.length) {
  1813. // 无参数,直接传入 event 或 detail 数组
  1814. if (isCustomMPEvent) {
  1815. return [event];
  1816. }
  1817. return __args__;
  1818. }
  1819. }
  1820. var extraObj = processEventExtra(vm, extra, event, __args__);
  1821. var ret = [];
  1822. args.forEach(function (arg) {
  1823. if (arg === '$event') {
  1824. if (methodName === '__set_model' && !isCustom) {
  1825. // input v-model value
  1826. ret.push(event.target.value);
  1827. } else {
  1828. if (isCustom && !isCustomMPEvent) {
  1829. ret.push(__args__[0]);
  1830. } else {
  1831. // wxcomponent 组件或内置组件
  1832. ret.push(event);
  1833. }
  1834. }
  1835. } else {
  1836. if (Array.isArray(arg) && arg[0] === 'o') {
  1837. ret.push(getObjByArray(arg));
  1838. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  1839. ret.push(extraObj[arg]);
  1840. } else {
  1841. ret.push(arg);
  1842. }
  1843. }
  1844. });
  1845. return ret;
  1846. }
  1847. var ONCE = '~';
  1848. var CUSTOM = '^';
  1849. function isMatchEventType(eventType, optType) {
  1850. return eventType === optType || optType === 'regionchange' && (eventType === 'begin' || eventType === 'end');
  1851. }
  1852. function getContextVm(vm) {
  1853. var $parent = vm.$parent;
  1854. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  1855. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  1856. $parent = $parent.$parent;
  1857. }
  1858. return $parent && $parent.$parent;
  1859. }
  1860. function handleEvent(event) {
  1861. var _this2 = this;
  1862. event = wrapper$1(event);
  1863. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  1864. var dataset = (event.currentTarget || event.target).dataset;
  1865. if (!dataset) {
  1866. return console.warn('事件信息不存在');
  1867. }
  1868. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  1869. if (!eventOpts) {
  1870. return console.warn('事件信息不存在');
  1871. }
  1872. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  1873. var eventType = event.type;
  1874. var ret = [];
  1875. eventOpts.forEach(function (eventOpt) {
  1876. var type = eventOpt[0];
  1877. var eventsArray = eventOpt[1];
  1878. var isCustom = type.charAt(0) === CUSTOM;
  1879. type = isCustom ? type.slice(1) : type;
  1880. var isOnce = type.charAt(0) === ONCE;
  1881. type = isOnce ? type.slice(1) : type;
  1882. if (eventsArray && isMatchEventType(eventType, type)) {
  1883. eventsArray.forEach(function (eventArray) {
  1884. var methodName = eventArray[0];
  1885. if (methodName) {
  1886. var handlerCtx = _this2.$vm;
  1887. if (handlerCtx.$options.generic) {
  1888. // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  1889. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  1890. }
  1891. if (methodName === '$emit') {
  1892. handlerCtx.$emit.apply(handlerCtx, processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName));
  1893. return;
  1894. }
  1895. var handler = handlerCtx[methodName];
  1896. if (!isFn(handler)) {
  1897. var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
  1898. var path = _this2.route || _this2.is;
  1899. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  1900. }
  1901. if (isOnce) {
  1902. if (handler.once) {
  1903. return;
  1904. }
  1905. handler.once = true;
  1906. }
  1907. var params = processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName);
  1908. params = Array.isArray(params) ? params : [];
  1909. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  1910. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  1911. // eslint-disable-next-line no-sparse-arrays
  1912. params = params.concat([,,,,,,,,,, event]);
  1913. }
  1914. ret.push(handler.apply(handlerCtx, params));
  1915. }
  1916. });
  1917. }
  1918. });
  1919. if (eventType === 'input' && ret.length === 1 && typeof ret[0] !== 'undefined') {
  1920. return ret[0];
  1921. }
  1922. }
  1923. var eventChannels = {};
  1924. function getEventChannel(id) {
  1925. var eventChannel = eventChannels[id];
  1926. delete eventChannels[id];
  1927. return eventChannel;
  1928. }
  1929. var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
  1930. function initEventChannel() {
  1931. _vue.default.prototype.getOpenerEventChannel = function () {
  1932. // 微信小程序使用自身getOpenerEventChannel
  1933. {
  1934. return this.$scope.getOpenerEventChannel();
  1935. }
  1936. };
  1937. var callHook = _vue.default.prototype.__call_hook;
  1938. _vue.default.prototype.__call_hook = function (hook, args) {
  1939. if (hook === 'onLoad' && args && args.__id__) {
  1940. this.__eventChannel__ = getEventChannel(args.__id__);
  1941. delete args.__id__;
  1942. }
  1943. return callHook.call(this, hook, args);
  1944. };
  1945. }
  1946. function initScopedSlotsParams() {
  1947. var center = {};
  1948. var parents = {};
  1949. function currentId(fn) {
  1950. var vueIds = this.$options.propsData.vueId;
  1951. if (vueIds) {
  1952. var vueId = vueIds.split(',')[0];
  1953. fn(vueId);
  1954. }
  1955. }
  1956. _vue.default.prototype.$hasSSP = function (vueId) {
  1957. var slot = center[vueId];
  1958. if (!slot) {
  1959. parents[vueId] = this;
  1960. this.$on('hook:destroyed', function () {
  1961. delete parents[vueId];
  1962. });
  1963. }
  1964. return slot;
  1965. };
  1966. _vue.default.prototype.$getSSP = function (vueId, name, needAll) {
  1967. var slot = center[vueId];
  1968. if (slot) {
  1969. var params = slot[name] || [];
  1970. if (needAll) {
  1971. return params;
  1972. }
  1973. return params[0];
  1974. }
  1975. };
  1976. _vue.default.prototype.$setSSP = function (name, value) {
  1977. var index = 0;
  1978. currentId.call(this, function (vueId) {
  1979. var slot = center[vueId];
  1980. var params = slot[name] = slot[name] || [];
  1981. params.push(value);
  1982. index = params.length - 1;
  1983. });
  1984. return index;
  1985. };
  1986. _vue.default.prototype.$initSSP = function () {
  1987. currentId.call(this, function (vueId) {
  1988. center[vueId] = {};
  1989. });
  1990. };
  1991. _vue.default.prototype.$callSSP = function () {
  1992. currentId.call(this, function (vueId) {
  1993. if (parents[vueId]) {
  1994. parents[vueId].$forceUpdate();
  1995. }
  1996. });
  1997. };
  1998. _vue.default.mixin({
  1999. destroyed: function destroyed() {
  2000. var propsData = this.$options.propsData;
  2001. var vueId = propsData && propsData.vueId;
  2002. if (vueId) {
  2003. delete center[vueId];
  2004. delete parents[vueId];
  2005. }
  2006. }
  2007. });
  2008. }
  2009. function parseBaseApp(vm, _ref4) {
  2010. var mocks = _ref4.mocks,
  2011. initRefs = _ref4.initRefs;
  2012. initEventChannel();
  2013. {
  2014. initScopedSlotsParams();
  2015. }
  2016. if (vm.$options.store) {
  2017. _vue.default.prototype.$store = vm.$options.store;
  2018. }
  2019. uniIdMixin(_vue.default);
  2020. _vue.default.prototype.mpHost = "mp-weixin";
  2021. _vue.default.mixin({
  2022. beforeCreate: function beforeCreate() {
  2023. if (!this.$options.mpType) {
  2024. return;
  2025. }
  2026. this.mpType = this.$options.mpType;
  2027. this.$mp = (0, _defineProperty2.default)({
  2028. data: {}
  2029. }, this.mpType, this.$options.mpInstance);
  2030. this.$scope = this.$options.mpInstance;
  2031. delete this.$options.mpType;
  2032. delete this.$options.mpInstance;
  2033. if (this.mpType === 'page' && typeof getApp === 'function') {
  2034. // hack vue-i18n
  2035. var app = getApp();
  2036. if (app.$vm && app.$vm.$i18n) {
  2037. this._i18n = app.$vm.$i18n;
  2038. }
  2039. }
  2040. if (this.mpType !== 'app') {
  2041. initRefs(this);
  2042. initMocks(this, mocks);
  2043. }
  2044. }
  2045. });
  2046. var appOptions = {
  2047. onLaunch: function onLaunch(args) {
  2048. if (this.$vm) {
  2049. // 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  2050. return;
  2051. }
  2052. {
  2053. if (wx.canIUse && !wx.canIUse('nextTick')) {
  2054. // 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  2055. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  2056. }
  2057. }
  2058. this.$vm = vm;
  2059. this.$vm.$mp = {
  2060. app: this
  2061. };
  2062. this.$vm.$scope = this;
  2063. // vm 上也挂载 globalData
  2064. this.$vm.globalData = this.globalData;
  2065. this.$vm._isMounted = true;
  2066. this.$vm.__call_hook('mounted', args);
  2067. this.$vm.__call_hook('onLaunch', args);
  2068. }
  2069. };
  2070. // 兼容旧版本 globalData
  2071. appOptions.globalData = vm.$options.globalData || {};
  2072. // 将 methods 中的方法挂在 getApp() 中
  2073. var methods = vm.$options.methods;
  2074. if (methods) {
  2075. Object.keys(methods).forEach(function (name) {
  2076. appOptions[name] = methods[name];
  2077. });
  2078. }
  2079. initAppLocale(_vue.default, vm, normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN);
  2080. initHooks(appOptions, hooks);
  2081. initUnknownHooks(appOptions, vm.$options);
  2082. return appOptions;
  2083. }
  2084. function parseApp(vm) {
  2085. return parseBaseApp(vm, {
  2086. mocks: mocks,
  2087. initRefs: initRefs
  2088. });
  2089. }
  2090. function createApp(vm) {
  2091. App(parseApp(vm));
  2092. return vm;
  2093. }
  2094. var encodeReserveRE = /[!'()*]/g;
  2095. var encodeReserveReplacer = function encodeReserveReplacer(c) {
  2096. return '%' + c.charCodeAt(0).toString(16);
  2097. };
  2098. var commaRE = /%2C/g;
  2099. // fixed encodeURIComponent which is more conformant to RFC3986:
  2100. // - escapes [!'()*]
  2101. // - preserve commas
  2102. var encode = function encode(str) {
  2103. return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
  2104. };
  2105. function stringifyQuery(obj) {
  2106. var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  2107. var res = obj ? Object.keys(obj).map(function (key) {
  2108. var val = obj[key];
  2109. if (val === undefined) {
  2110. return '';
  2111. }
  2112. if (val === null) {
  2113. return encodeStr(key);
  2114. }
  2115. if (Array.isArray(val)) {
  2116. var result = [];
  2117. val.forEach(function (val2) {
  2118. if (val2 === undefined) {
  2119. return;
  2120. }
  2121. if (val2 === null) {
  2122. result.push(encodeStr(key));
  2123. } else {
  2124. result.push(encodeStr(key) + '=' + encodeStr(val2));
  2125. }
  2126. });
  2127. return result.join('&');
  2128. }
  2129. return encodeStr(key) + '=' + encodeStr(val);
  2130. }).filter(function (x) {
  2131. return x.length > 0;
  2132. }).join('&') : null;
  2133. return res ? "?".concat(res) : '';
  2134. }
  2135. function parseBaseComponent(vueComponentOptions) {
  2136. var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  2137. isPage = _ref5.isPage,
  2138. initRelation = _ref5.initRelation;
  2139. var needVueOptions = arguments.length > 2 ? arguments[2] : undefined;
  2140. var _initVueComponent = initVueComponent(_vue.default, vueComponentOptions),
  2141. _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
  2142. VueComponent = _initVueComponent2[0],
  2143. vueOptions = _initVueComponent2[1];
  2144. var options = _objectSpread({
  2145. multipleSlots: true,
  2146. // styleIsolation: 'apply-shared',
  2147. addGlobalClass: true
  2148. }, vueOptions.options || {});
  2149. {
  2150. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  2151. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  2152. Object.assign(options, vueOptions['mp-weixin'].options);
  2153. }
  2154. }
  2155. var componentOptions = {
  2156. options: options,
  2157. data: initData(vueOptions, _vue.default.prototype),
  2158. behaviors: initBehaviors(vueOptions, initBehavior),
  2159. properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
  2160. lifetimes: {
  2161. attached: function attached() {
  2162. var properties = this.properties;
  2163. var options = {
  2164. mpType: isPage.call(this) ? 'page' : 'component',
  2165. mpInstance: this,
  2166. propsData: properties
  2167. };
  2168. initVueIds(properties.vueId, this);
  2169. // 处理父子关系
  2170. initRelation.call(this, {
  2171. vuePid: this._$vuePid,
  2172. vueOptions: options
  2173. });
  2174. // 初始化 vue 实例
  2175. this.$vm = new VueComponent(options);
  2176. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  2177. initSlots(this.$vm, properties.vueSlots);
  2178. // 触发首次 setData
  2179. this.$vm.$mount();
  2180. },
  2181. ready: function ready() {
  2182. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  2183. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  2184. if (this.$vm) {
  2185. this.$vm._isMounted = true;
  2186. this.$vm.__call_hook('mounted');
  2187. this.$vm.__call_hook('onReady');
  2188. }
  2189. },
  2190. detached: function detached() {
  2191. this.$vm && this.$vm.$destroy();
  2192. }
  2193. },
  2194. pageLifetimes: {
  2195. show: function show(args) {
  2196. this.$vm && this.$vm.__call_hook('onPageShow', args);
  2197. },
  2198. hide: function hide() {
  2199. this.$vm && this.$vm.__call_hook('onPageHide');
  2200. },
  2201. resize: function resize(size) {
  2202. this.$vm && this.$vm.__call_hook('onPageResize', size);
  2203. }
  2204. },
  2205. methods: {
  2206. __l: handleLink,
  2207. __e: handleEvent
  2208. }
  2209. };
  2210. // externalClasses
  2211. if (vueOptions.externalClasses) {
  2212. componentOptions.externalClasses = vueOptions.externalClasses;
  2213. }
  2214. if (Array.isArray(vueOptions.wxsCallMethods)) {
  2215. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  2216. componentOptions.methods[callMethod] = function (args) {
  2217. return this.$vm[callMethod](args);
  2218. };
  2219. });
  2220. }
  2221. if (needVueOptions) {
  2222. return [componentOptions, vueOptions, VueComponent];
  2223. }
  2224. if (isPage) {
  2225. return componentOptions;
  2226. }
  2227. return [componentOptions, VueComponent];
  2228. }
  2229. function parseComponent(vueComponentOptions, needVueOptions) {
  2230. return parseBaseComponent(vueComponentOptions, {
  2231. isPage: isPage,
  2232. initRelation: initRelation
  2233. }, needVueOptions);
  2234. }
  2235. var hooks$1 = ['onShow', 'onHide', 'onUnload'];
  2236. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  2237. function parseBasePage(vuePageOptions) {
  2238. var _parseComponent = parseComponent(vuePageOptions, true),
  2239. _parseComponent2 = (0, _slicedToArray2.default)(_parseComponent, 2),
  2240. pageOptions = _parseComponent2[0],
  2241. vueOptions = _parseComponent2[1];
  2242. initHooks(pageOptions.methods, hooks$1, vueOptions);
  2243. pageOptions.methods.onLoad = function (query) {
  2244. this.options = query;
  2245. var copyQuery = Object.assign({}, query);
  2246. delete copyQuery.__id__;
  2247. this.$page = {
  2248. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery)
  2249. };
  2250. this.$vm.$mp.query = query; // 兼容 mpvue
  2251. this.$vm.__call_hook('onLoad', query);
  2252. };
  2253. {
  2254. initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  2255. }
  2256. {
  2257. initWorkletMethods(pageOptions.methods, vueOptions.methods);
  2258. }
  2259. return pageOptions;
  2260. }
  2261. function parsePage(vuePageOptions) {
  2262. return parseBasePage(vuePageOptions);
  2263. }
  2264. function createPage(vuePageOptions) {
  2265. {
  2266. return Component(parsePage(vuePageOptions));
  2267. }
  2268. }
  2269. function createComponent(vueOptions) {
  2270. {
  2271. return Component(parseComponent(vueOptions));
  2272. }
  2273. }
  2274. function createSubpackageApp(vm) {
  2275. var appOptions = parseApp(vm);
  2276. var app = getApp({
  2277. allowDefault: true
  2278. });
  2279. vm.$scope = app;
  2280. var globalData = app.globalData;
  2281. if (globalData) {
  2282. Object.keys(appOptions.globalData).forEach(function (name) {
  2283. if (!hasOwn(globalData, name)) {
  2284. globalData[name] = appOptions.globalData[name];
  2285. }
  2286. });
  2287. }
  2288. Object.keys(appOptions).forEach(function (name) {
  2289. if (!hasOwn(app, name)) {
  2290. app[name] = appOptions[name];
  2291. }
  2292. });
  2293. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2294. wx.onAppShow(function () {
  2295. for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
  2296. args[_key5] = arguments[_key5];
  2297. }
  2298. vm.__call_hook('onShow', args);
  2299. });
  2300. }
  2301. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2302. wx.onAppHide(function () {
  2303. for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
  2304. args[_key6] = arguments[_key6];
  2305. }
  2306. vm.__call_hook('onHide', args);
  2307. });
  2308. }
  2309. if (isFn(appOptions.onLaunch)) {
  2310. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2311. vm.__call_hook('onLaunch', args);
  2312. }
  2313. return vm;
  2314. }
  2315. function createPlugin(vm) {
  2316. var appOptions = parseApp(vm);
  2317. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2318. wx.onAppShow(function () {
  2319. for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
  2320. args[_key7] = arguments[_key7];
  2321. }
  2322. vm.__call_hook('onShow', args);
  2323. });
  2324. }
  2325. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2326. wx.onAppHide(function () {
  2327. for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
  2328. args[_key8] = arguments[_key8];
  2329. }
  2330. vm.__call_hook('onHide', args);
  2331. });
  2332. }
  2333. if (isFn(appOptions.onLaunch)) {
  2334. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2335. vm.__call_hook('onLaunch', args);
  2336. }
  2337. return vm;
  2338. }
  2339. todos.forEach(function (todoApi) {
  2340. protocols[todoApi] = false;
  2341. });
  2342. canIUses.forEach(function (canIUseApi) {
  2343. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
  2344. if (!wx.canIUse(apiName)) {
  2345. protocols[canIUseApi] = false;
  2346. }
  2347. });
  2348. var uni = {};
  2349. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  2350. uni = new Proxy({}, {
  2351. get: function get(target, name) {
  2352. if (hasOwn(target, name)) {
  2353. return target[name];
  2354. }
  2355. if (baseApi[name]) {
  2356. return baseApi[name];
  2357. }
  2358. if (api[name]) {
  2359. return promisify(name, api[name]);
  2360. }
  2361. {
  2362. if (extraApi[name]) {
  2363. return promisify(name, extraApi[name]);
  2364. }
  2365. if (todoApis[name]) {
  2366. return promisify(name, todoApis[name]);
  2367. }
  2368. }
  2369. if (eventApi[name]) {
  2370. return eventApi[name];
  2371. }
  2372. return promisify(name, wrapper(name, wx[name]));
  2373. },
  2374. set: function set(target, name, value) {
  2375. target[name] = value;
  2376. return true;
  2377. }
  2378. });
  2379. } else {
  2380. Object.keys(baseApi).forEach(function (name) {
  2381. uni[name] = baseApi[name];
  2382. });
  2383. {
  2384. Object.keys(todoApis).forEach(function (name) {
  2385. uni[name] = promisify(name, todoApis[name]);
  2386. });
  2387. Object.keys(extraApi).forEach(function (name) {
  2388. uni[name] = promisify(name, extraApi[name]);
  2389. });
  2390. }
  2391. Object.keys(eventApi).forEach(function (name) {
  2392. uni[name] = eventApi[name];
  2393. });
  2394. Object.keys(api).forEach(function (name) {
  2395. uni[name] = promisify(name, api[name]);
  2396. });
  2397. Object.keys(wx).forEach(function (name) {
  2398. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  2399. uni[name] = promisify(name, wrapper(name, wx[name]));
  2400. }
  2401. });
  2402. }
  2403. wx.createApp = createApp;
  2404. wx.createPage = createPage;
  2405. wx.createComponent = createComponent;
  2406. wx.createSubpackageApp = createSubpackageApp;
  2407. wx.createPlugin = createPlugin;
  2408. var uni$1 = uni;
  2409. var _default = uni$1;
  2410. exports.default = _default;
  2411. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 3)))
  2412. /***/ }),
  2413. /* 3 */
  2414. /*!***********************************!*\
  2415. !*** (webpack)/buildin/global.js ***!
  2416. \***********************************/
  2417. /*! no static exports found */
  2418. /***/ (function(module, exports) {
  2419. var g;
  2420. // This works in non-strict mode
  2421. g = (function() {
  2422. return this;
  2423. })();
  2424. try {
  2425. // This works if eval is allowed (see CSP)
  2426. g = g || new Function("return this")();
  2427. } catch (e) {
  2428. // This works if the window reference is available
  2429. if (typeof window === "object") g = window;
  2430. }
  2431. // g can still be undefined, but nothing to do about it...
  2432. // We return undefined, instead of nothing here, so it's
  2433. // easier to handle this case. if(!global) { ...}
  2434. module.exports = g;
  2435. /***/ }),
  2436. /* 4 */
  2437. /*!**********************************************************************!*\
  2438. !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  2439. \**********************************************************************/
  2440. /*! no static exports found */
  2441. /***/ (function(module, exports) {
  2442. function _interopRequireDefault(obj) {
  2443. return obj && obj.__esModule ? obj : {
  2444. "default": obj
  2445. };
  2446. }
  2447. module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2448. /***/ }),
  2449. /* 5 */
  2450. /*!**************************************************************!*\
  2451. !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  2452. \**************************************************************/
  2453. /*! no static exports found */
  2454. /***/ (function(module, exports, __webpack_require__) {
  2455. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  2456. var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 7);
  2457. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2458. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  2459. function _slicedToArray(arr, i) {
  2460. return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
  2461. }
  2462. module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2463. /***/ }),
  2464. /* 6 */
  2465. /*!***************************************************************!*\
  2466. !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  2467. \***************************************************************/
  2468. /*! no static exports found */
  2469. /***/ (function(module, exports) {
  2470. function _arrayWithHoles(arr) {
  2471. if (Array.isArray(arr)) return arr;
  2472. }
  2473. module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2474. /***/ }),
  2475. /* 7 */
  2476. /*!*********************************************************************!*\
  2477. !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  2478. \*********************************************************************/
  2479. /*! no static exports found */
  2480. /***/ (function(module, exports) {
  2481. function _iterableToArrayLimit(r, l) {
  2482. var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
  2483. if (null != t) {
  2484. var e,
  2485. n,
  2486. i,
  2487. u,
  2488. a = [],
  2489. f = !0,
  2490. o = !1;
  2491. try {
  2492. if (i = (t = t.call(r)).next, 0 === l) {
  2493. if (Object(t) !== t) return;
  2494. f = !1;
  2495. } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) {
  2496. ;
  2497. }
  2498. } catch (r) {
  2499. o = !0, n = r;
  2500. } finally {
  2501. try {
  2502. if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
  2503. } finally {
  2504. if (o) throw n;
  2505. }
  2506. }
  2507. return a;
  2508. }
  2509. }
  2510. module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2511. /***/ }),
  2512. /* 8 */
  2513. /*!***************************************************************************!*\
  2514. !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  2515. \***************************************************************************/
  2516. /*! no static exports found */
  2517. /***/ (function(module, exports, __webpack_require__) {
  2518. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2519. function _unsupportedIterableToArray(o, minLen) {
  2520. if (!o) return;
  2521. if (typeof o === "string") return arrayLikeToArray(o, minLen);
  2522. var n = Object.prototype.toString.call(o).slice(8, -1);
  2523. if (n === "Object" && o.constructor) n = o.constructor.name;
  2524. if (n === "Map" || n === "Set") return Array.from(o);
  2525. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
  2526. }
  2527. module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2528. /***/ }),
  2529. /* 9 */
  2530. /*!*****************************************************************!*\
  2531. !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  2532. \*****************************************************************/
  2533. /*! no static exports found */
  2534. /***/ (function(module, exports) {
  2535. function _arrayLikeToArray(arr, len) {
  2536. if (len == null || len > arr.length) len = arr.length;
  2537. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  2538. arr2[i] = arr[i];
  2539. }
  2540. return arr2;
  2541. }
  2542. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2543. /***/ }),
  2544. /* 10 */
  2545. /*!****************************************************************!*\
  2546. !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
  2547. \****************************************************************/
  2548. /*! no static exports found */
  2549. /***/ (function(module, exports) {
  2550. function _nonIterableRest() {
  2551. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2552. }
  2553. module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2554. /***/ }),
  2555. /* 11 */
  2556. /*!***************************************************************!*\
  2557. !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  2558. \***************************************************************/
  2559. /*! no static exports found */
  2560. /***/ (function(module, exports, __webpack_require__) {
  2561. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  2562. function _defineProperty(obj, key, value) {
  2563. key = toPropertyKey(key);
  2564. if (key in obj) {
  2565. Object.defineProperty(obj, key, {
  2566. value: value,
  2567. enumerable: true,
  2568. configurable: true,
  2569. writable: true
  2570. });
  2571. } else {
  2572. obj[key] = value;
  2573. }
  2574. return obj;
  2575. }
  2576. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2577. /***/ }),
  2578. /* 12 */
  2579. /*!**************************************************************!*\
  2580. !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  2581. \**************************************************************/
  2582. /*! no static exports found */
  2583. /***/ (function(module, exports, __webpack_require__) {
  2584. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2585. var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
  2586. function toPropertyKey(t) {
  2587. var i = toPrimitive(t, "string");
  2588. return "symbol" == _typeof(i) ? i : String(i);
  2589. }
  2590. module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2591. /***/ }),
  2592. /* 13 */
  2593. /*!*******************************************************!*\
  2594. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  2595. \*******************************************************/
  2596. /*! no static exports found */
  2597. /***/ (function(module, exports) {
  2598. function _typeof(o) {
  2599. "@babel/helpers - typeof";
  2600. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
  2601. return typeof o;
  2602. } : function (o) {
  2603. return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
  2604. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
  2605. }
  2606. module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2607. /***/ }),
  2608. /* 14 */
  2609. /*!************************************************************!*\
  2610. !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  2611. \************************************************************/
  2612. /*! no static exports found */
  2613. /***/ (function(module, exports, __webpack_require__) {
  2614. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2615. function toPrimitive(t, r) {
  2616. if ("object" != _typeof(t) || !t) return t;
  2617. var e = t[Symbol.toPrimitive];
  2618. if (void 0 !== e) {
  2619. var i = e.call(t, r || "default");
  2620. if ("object" != _typeof(i)) return i;
  2621. throw new TypeError("@@toPrimitive must return a primitive value.");
  2622. }
  2623. return ("string" === r ? String : Number)(t);
  2624. }
  2625. module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2626. /***/ }),
  2627. /* 15 */
  2628. /*!**********************************************************!*\
  2629. !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
  2630. \**********************************************************/
  2631. /*! no static exports found */
  2632. /***/ (function(module, exports, __webpack_require__) {
  2633. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  2634. var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 17);
  2635. function _construct(t, e, r) {
  2636. if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
  2637. var o = [null];
  2638. o.push.apply(o, e);
  2639. var p = new (t.bind.apply(t, o))();
  2640. return r && setPrototypeOf(p, r.prototype), p;
  2641. }
  2642. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2643. /***/ }),
  2644. /* 16 */
  2645. /*!***************************************************************!*\
  2646. !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  2647. \***************************************************************/
  2648. /*! no static exports found */
  2649. /***/ (function(module, exports) {
  2650. function _setPrototypeOf(o, p) {
  2651. module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  2652. o.__proto__ = p;
  2653. return o;
  2654. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2655. return _setPrototypeOf(o, p);
  2656. }
  2657. module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2658. /***/ }),
  2659. /* 17 */
  2660. /*!*************************************************************************!*\
  2661. !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  2662. \*************************************************************************/
  2663. /*! no static exports found */
  2664. /***/ (function(module, exports) {
  2665. function _isNativeReflectConstruct() {
  2666. try {
  2667. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  2668. } catch (t) {}
  2669. return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() {
  2670. return !!t;
  2671. }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
  2672. }
  2673. module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2674. /***/ }),
  2675. /* 18 */
  2676. /*!******************************************************************!*\
  2677. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  2678. \******************************************************************/
  2679. /*! no static exports found */
  2680. /***/ (function(module, exports, __webpack_require__) {
  2681. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 19);
  2682. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  2683. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2684. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 21);
  2685. function _toConsumableArray(arr) {
  2686. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  2687. }
  2688. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2689. /***/ }),
  2690. /* 19 */
  2691. /*!******************************************************************!*\
  2692. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  2693. \******************************************************************/
  2694. /*! no static exports found */
  2695. /***/ (function(module, exports, __webpack_require__) {
  2696. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2697. function _arrayWithoutHoles(arr) {
  2698. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  2699. }
  2700. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2701. /***/ }),
  2702. /* 20 */
  2703. /*!****************************************************************!*\
  2704. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  2705. \****************************************************************/
  2706. /*! no static exports found */
  2707. /***/ (function(module, exports) {
  2708. function _iterableToArray(iter) {
  2709. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  2710. }
  2711. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2712. /***/ }),
  2713. /* 21 */
  2714. /*!******************************************************************!*\
  2715. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  2716. \******************************************************************/
  2717. /*! no static exports found */
  2718. /***/ (function(module, exports) {
  2719. function _nonIterableSpread() {
  2720. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2721. }
  2722. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2723. /***/ }),
  2724. /* 22 */
  2725. /*!*************************************************************!*\
  2726. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  2727. \*************************************************************/
  2728. /*! no static exports found */
  2729. /***/ (function(module, exports, __webpack_require__) {
  2730. "use strict";
  2731. /* WEBPACK VAR INJECTION */(function(uni, global) {
  2732. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  2733. Object.defineProperty(exports, "__esModule", {
  2734. value: true
  2735. });
  2736. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  2737. exports.compileI18nJsonStr = compileI18nJsonStr;
  2738. exports.hasI18nJson = hasI18nJson;
  2739. exports.initVueI18n = initVueI18n;
  2740. exports.isI18nStr = isI18nStr;
  2741. exports.isString = void 0;
  2742. exports.normalizeLocale = normalizeLocale;
  2743. exports.parseI18nJson = parseI18nJson;
  2744. exports.resolveLocale = resolveLocale;
  2745. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  2746. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  2747. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  2748. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  2749. var isObject = function isObject(val) {
  2750. return val !== null && (0, _typeof2.default)(val) === 'object';
  2751. };
  2752. var defaultDelimiters = ['{', '}'];
  2753. var BaseFormatter = /*#__PURE__*/function () {
  2754. function BaseFormatter() {
  2755. (0, _classCallCheck2.default)(this, BaseFormatter);
  2756. this._caches = Object.create(null);
  2757. }
  2758. (0, _createClass2.default)(BaseFormatter, [{
  2759. key: "interpolate",
  2760. value: function interpolate(message, values) {
  2761. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  2762. if (!values) {
  2763. return [message];
  2764. }
  2765. var tokens = this._caches[message];
  2766. if (!tokens) {
  2767. tokens = parse(message, delimiters);
  2768. this._caches[message] = tokens;
  2769. }
  2770. return compile(tokens, values);
  2771. }
  2772. }]);
  2773. return BaseFormatter;
  2774. }();
  2775. exports.Formatter = BaseFormatter;
  2776. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  2777. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  2778. function parse(format, _ref) {
  2779. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  2780. startDelimiter = _ref2[0],
  2781. endDelimiter = _ref2[1];
  2782. var tokens = [];
  2783. var position = 0;
  2784. var text = '';
  2785. while (position < format.length) {
  2786. var char = format[position++];
  2787. if (char === startDelimiter) {
  2788. if (text) {
  2789. tokens.push({
  2790. type: 'text',
  2791. value: text
  2792. });
  2793. }
  2794. text = '';
  2795. var sub = '';
  2796. char = format[position++];
  2797. while (char !== undefined && char !== endDelimiter) {
  2798. sub += char;
  2799. char = format[position++];
  2800. }
  2801. var isClosed = char === endDelimiter;
  2802. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  2803. tokens.push({
  2804. value: sub,
  2805. type: type
  2806. });
  2807. }
  2808. // else if (char === '%') {
  2809. // // when found rails i18n syntax, skip text capture
  2810. // if (format[position] !== '{') {
  2811. // text += char
  2812. // }
  2813. // }
  2814. else {
  2815. text += char;
  2816. }
  2817. }
  2818. text && tokens.push({
  2819. type: 'text',
  2820. value: text
  2821. });
  2822. return tokens;
  2823. }
  2824. function compile(tokens, values) {
  2825. var compiled = [];
  2826. var index = 0;
  2827. var mode = Array.isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  2828. if (mode === 'unknown') {
  2829. return compiled;
  2830. }
  2831. while (index < tokens.length) {
  2832. var token = tokens[index];
  2833. switch (token.type) {
  2834. case 'text':
  2835. compiled.push(token.value);
  2836. break;
  2837. case 'list':
  2838. compiled.push(values[parseInt(token.value, 10)]);
  2839. break;
  2840. case 'named':
  2841. if (mode === 'named') {
  2842. compiled.push(values[token.value]);
  2843. } else {
  2844. if (true) {
  2845. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  2846. }
  2847. }
  2848. break;
  2849. case 'unknown':
  2850. if (true) {
  2851. console.warn("Detect 'unknown' type of token!");
  2852. }
  2853. break;
  2854. }
  2855. index++;
  2856. }
  2857. return compiled;
  2858. }
  2859. var LOCALE_ZH_HANS = 'zh-Hans';
  2860. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  2861. var LOCALE_ZH_HANT = 'zh-Hant';
  2862. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  2863. var LOCALE_EN = 'en';
  2864. exports.LOCALE_EN = LOCALE_EN;
  2865. var LOCALE_FR = 'fr';
  2866. exports.LOCALE_FR = LOCALE_FR;
  2867. var LOCALE_ES = 'es';
  2868. exports.LOCALE_ES = LOCALE_ES;
  2869. var hasOwnProperty = Object.prototype.hasOwnProperty;
  2870. var hasOwn = function hasOwn(val, key) {
  2871. return hasOwnProperty.call(val, key);
  2872. };
  2873. var defaultFormatter = new BaseFormatter();
  2874. function include(str, parts) {
  2875. return !!parts.find(function (part) {
  2876. return str.indexOf(part) !== -1;
  2877. });
  2878. }
  2879. function startsWith(str, parts) {
  2880. return parts.find(function (part) {
  2881. return str.indexOf(part) === 0;
  2882. });
  2883. }
  2884. function normalizeLocale(locale, messages) {
  2885. if (!locale) {
  2886. return;
  2887. }
  2888. locale = locale.trim().replace(/_/g, '-');
  2889. if (messages && messages[locale]) {
  2890. return locale;
  2891. }
  2892. locale = locale.toLowerCase();
  2893. if (locale === 'chinese') {
  2894. // 支付宝
  2895. return LOCALE_ZH_HANS;
  2896. }
  2897. if (locale.indexOf('zh') === 0) {
  2898. if (locale.indexOf('-hans') > -1) {
  2899. return LOCALE_ZH_HANS;
  2900. }
  2901. if (locale.indexOf('-hant') > -1) {
  2902. return LOCALE_ZH_HANT;
  2903. }
  2904. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  2905. return LOCALE_ZH_HANT;
  2906. }
  2907. return LOCALE_ZH_HANS;
  2908. }
  2909. var locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES];
  2910. if (messages && Object.keys(messages).length > 0) {
  2911. locales = Object.keys(messages);
  2912. }
  2913. var lang = startsWith(locale, locales);
  2914. if (lang) {
  2915. return lang;
  2916. }
  2917. }
  2918. var I18n = /*#__PURE__*/function () {
  2919. function I18n(_ref3) {
  2920. var locale = _ref3.locale,
  2921. fallbackLocale = _ref3.fallbackLocale,
  2922. messages = _ref3.messages,
  2923. watcher = _ref3.watcher,
  2924. formater = _ref3.formater;
  2925. (0, _classCallCheck2.default)(this, I18n);
  2926. this.locale = LOCALE_EN;
  2927. this.fallbackLocale = LOCALE_EN;
  2928. this.message = {};
  2929. this.messages = {};
  2930. this.watchers = [];
  2931. if (fallbackLocale) {
  2932. this.fallbackLocale = fallbackLocale;
  2933. }
  2934. this.formater = formater || defaultFormatter;
  2935. this.messages = messages || {};
  2936. this.setLocale(locale || LOCALE_EN);
  2937. if (watcher) {
  2938. this.watchLocale(watcher);
  2939. }
  2940. }
  2941. (0, _createClass2.default)(I18n, [{
  2942. key: "setLocale",
  2943. value: function setLocale(locale) {
  2944. var _this = this;
  2945. var oldLocale = this.locale;
  2946. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  2947. if (!this.messages[this.locale]) {
  2948. // 可能初始化时不存在
  2949. this.messages[this.locale] = {};
  2950. }
  2951. this.message = this.messages[this.locale];
  2952. // 仅发生变化时,通知
  2953. if (oldLocale !== this.locale) {
  2954. this.watchers.forEach(function (watcher) {
  2955. watcher(_this.locale, oldLocale);
  2956. });
  2957. }
  2958. }
  2959. }, {
  2960. key: "getLocale",
  2961. value: function getLocale() {
  2962. return this.locale;
  2963. }
  2964. }, {
  2965. key: "watchLocale",
  2966. value: function watchLocale(fn) {
  2967. var _this2 = this;
  2968. var index = this.watchers.push(fn) - 1;
  2969. return function () {
  2970. _this2.watchers.splice(index, 1);
  2971. };
  2972. }
  2973. }, {
  2974. key: "add",
  2975. value: function add(locale, message) {
  2976. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  2977. var curMessages = this.messages[locale];
  2978. if (curMessages) {
  2979. if (override) {
  2980. Object.assign(curMessages, message);
  2981. } else {
  2982. Object.keys(message).forEach(function (key) {
  2983. if (!hasOwn(curMessages, key)) {
  2984. curMessages[key] = message[key];
  2985. }
  2986. });
  2987. }
  2988. } else {
  2989. this.messages[locale] = message;
  2990. }
  2991. }
  2992. }, {
  2993. key: "f",
  2994. value: function f(message, values, delimiters) {
  2995. return this.formater.interpolate(message, values, delimiters).join('');
  2996. }
  2997. }, {
  2998. key: "t",
  2999. value: function t(key, locale, values) {
  3000. var message = this.message;
  3001. if (typeof locale === 'string') {
  3002. locale = normalizeLocale(locale, this.messages);
  3003. locale && (message = this.messages[locale]);
  3004. } else {
  3005. values = locale;
  3006. }
  3007. if (!hasOwn(message, key)) {
  3008. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  3009. return key;
  3010. }
  3011. return this.formater.interpolate(message[key], values).join('');
  3012. }
  3013. }]);
  3014. return I18n;
  3015. }();
  3016. exports.I18n = I18n;
  3017. function watchAppLocale(appVm, i18n) {
  3018. // 需要保证 watch 的触发在组件渲染之前
  3019. if (appVm.$watchLocale) {
  3020. // vue2
  3021. appVm.$watchLocale(function (newLocale) {
  3022. i18n.setLocale(newLocale);
  3023. });
  3024. } else {
  3025. appVm.$watch(function () {
  3026. return appVm.$locale;
  3027. }, function (newLocale) {
  3028. i18n.setLocale(newLocale);
  3029. });
  3030. }
  3031. }
  3032. function getDefaultLocale() {
  3033. if (typeof uni !== 'undefined' && uni.getLocale) {
  3034. return uni.getLocale();
  3035. }
  3036. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  3037. if (typeof global !== 'undefined' && global.getLocale) {
  3038. return global.getLocale();
  3039. }
  3040. return LOCALE_EN;
  3041. }
  3042. function initVueI18n(locale) {
  3043. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3044. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  3045. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  3046. // 兼容旧版本入参
  3047. if (typeof locale !== 'string') {
  3048. var _ref4 = [messages, locale];
  3049. locale = _ref4[0];
  3050. messages = _ref4[1];
  3051. }
  3052. if (typeof locale !== 'string') {
  3053. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  3054. locale = getDefaultLocale();
  3055. }
  3056. if (typeof fallbackLocale !== 'string') {
  3057. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  3058. }
  3059. var i18n = new I18n({
  3060. locale: locale,
  3061. fallbackLocale: fallbackLocale,
  3062. messages: messages,
  3063. watcher: watcher
  3064. });
  3065. var _t = function t(key, values) {
  3066. if (typeof getApp !== 'function') {
  3067. // app view
  3068. /* eslint-disable no-func-assign */
  3069. _t = function t(key, values) {
  3070. return i18n.t(key, values);
  3071. };
  3072. } else {
  3073. var isWatchedAppLocale = false;
  3074. _t = function t(key, values) {
  3075. var appVm = getApp().$vm;
  3076. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  3077. // options: {
  3078. // type: Array,
  3079. // default () {
  3080. // return [{
  3081. // icon: 'shop',
  3082. // text: t("uni-goods-nav.options.shop"),
  3083. // }, {
  3084. // icon: 'cart',
  3085. // text: t("uni-goods-nav.options.cart")
  3086. // }]
  3087. // }
  3088. // },
  3089. if (appVm) {
  3090. // 触发响应式
  3091. appVm.$locale;
  3092. if (!isWatchedAppLocale) {
  3093. isWatchedAppLocale = true;
  3094. watchAppLocale(appVm, i18n);
  3095. }
  3096. }
  3097. return i18n.t(key, values);
  3098. };
  3099. }
  3100. return _t(key, values);
  3101. };
  3102. return {
  3103. i18n: i18n,
  3104. f: function f(message, values, delimiters) {
  3105. return i18n.f(message, values, delimiters);
  3106. },
  3107. t: function t(key, values) {
  3108. return _t(key, values);
  3109. },
  3110. add: function add(locale, message) {
  3111. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3112. return i18n.add(locale, message, override);
  3113. },
  3114. watch: function watch(fn) {
  3115. return i18n.watchLocale(fn);
  3116. },
  3117. getLocale: function getLocale() {
  3118. return i18n.getLocale();
  3119. },
  3120. setLocale: function setLocale(newLocale) {
  3121. return i18n.setLocale(newLocale);
  3122. }
  3123. };
  3124. }
  3125. var isString = function isString(val) {
  3126. return typeof val === 'string';
  3127. };
  3128. exports.isString = isString;
  3129. var formater;
  3130. function hasI18nJson(jsonObj, delimiters) {
  3131. if (!formater) {
  3132. formater = new BaseFormatter();
  3133. }
  3134. return walkJsonObj(jsonObj, function (jsonObj, key) {
  3135. var value = jsonObj[key];
  3136. if (isString(value)) {
  3137. if (isI18nStr(value, delimiters)) {
  3138. return true;
  3139. }
  3140. } else {
  3141. return hasI18nJson(value, delimiters);
  3142. }
  3143. });
  3144. }
  3145. function parseI18nJson(jsonObj, values, delimiters) {
  3146. if (!formater) {
  3147. formater = new BaseFormatter();
  3148. }
  3149. walkJsonObj(jsonObj, function (jsonObj, key) {
  3150. var value = jsonObj[key];
  3151. if (isString(value)) {
  3152. if (isI18nStr(value, delimiters)) {
  3153. jsonObj[key] = compileStr(value, values, delimiters);
  3154. }
  3155. } else {
  3156. parseI18nJson(value, values, delimiters);
  3157. }
  3158. });
  3159. return jsonObj;
  3160. }
  3161. function compileI18nJsonStr(jsonStr, _ref5) {
  3162. var locale = _ref5.locale,
  3163. locales = _ref5.locales,
  3164. delimiters = _ref5.delimiters;
  3165. if (!isI18nStr(jsonStr, delimiters)) {
  3166. return jsonStr;
  3167. }
  3168. if (!formater) {
  3169. formater = new BaseFormatter();
  3170. }
  3171. var localeValues = [];
  3172. Object.keys(locales).forEach(function (name) {
  3173. if (name !== locale) {
  3174. localeValues.push({
  3175. locale: name,
  3176. values: locales[name]
  3177. });
  3178. }
  3179. });
  3180. localeValues.unshift({
  3181. locale: locale,
  3182. values: locales[locale]
  3183. });
  3184. try {
  3185. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  3186. } catch (e) {}
  3187. return jsonStr;
  3188. }
  3189. function isI18nStr(value, delimiters) {
  3190. return value.indexOf(delimiters[0]) > -1;
  3191. }
  3192. function compileStr(value, values, delimiters) {
  3193. return formater.interpolate(value, values, delimiters).join('');
  3194. }
  3195. function compileValue(jsonObj, key, localeValues, delimiters) {
  3196. var value = jsonObj[key];
  3197. if (isString(value)) {
  3198. // 存在国际化
  3199. if (isI18nStr(value, delimiters)) {
  3200. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  3201. if (localeValues.length > 1) {
  3202. // 格式化国际化语言
  3203. var valueLocales = jsonObj[key + 'Locales'] = {};
  3204. localeValues.forEach(function (localValue) {
  3205. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  3206. });
  3207. }
  3208. }
  3209. } else {
  3210. compileJsonObj(value, localeValues, delimiters);
  3211. }
  3212. }
  3213. function compileJsonObj(jsonObj, localeValues, delimiters) {
  3214. walkJsonObj(jsonObj, function (jsonObj, key) {
  3215. compileValue(jsonObj, key, localeValues, delimiters);
  3216. });
  3217. return jsonObj;
  3218. }
  3219. function walkJsonObj(jsonObj, walk) {
  3220. if (Array.isArray(jsonObj)) {
  3221. for (var i = 0; i < jsonObj.length; i++) {
  3222. if (walk(jsonObj, i)) {
  3223. return true;
  3224. }
  3225. }
  3226. } else if (isObject(jsonObj)) {
  3227. for (var key in jsonObj) {
  3228. if (walk(jsonObj, key)) {
  3229. return true;
  3230. }
  3231. }
  3232. }
  3233. return false;
  3234. }
  3235. function resolveLocale(locales) {
  3236. return function (locale) {
  3237. if (!locale) {
  3238. return locale;
  3239. }
  3240. locale = normalizeLocale(locale) || locale;
  3241. return resolveLocaleChain(locale).find(function (locale) {
  3242. return locales.indexOf(locale) > -1;
  3243. });
  3244. };
  3245. }
  3246. function resolveLocaleChain(locale) {
  3247. var chain = [];
  3248. var tokens = locale.split('-');
  3249. while (tokens.length) {
  3250. chain.push(tokens.join('-'));
  3251. tokens.pop();
  3252. }
  3253. return chain;
  3254. }
  3255. /* 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)))
  3256. /***/ }),
  3257. /* 23 */
  3258. /*!***************************************************************!*\
  3259. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  3260. \***************************************************************/
  3261. /*! no static exports found */
  3262. /***/ (function(module, exports) {
  3263. function _classCallCheck(instance, Constructor) {
  3264. if (!(instance instanceof Constructor)) {
  3265. throw new TypeError("Cannot call a class as a function");
  3266. }
  3267. }
  3268. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3269. /***/ }),
  3270. /* 24 */
  3271. /*!************************************************************!*\
  3272. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  3273. \************************************************************/
  3274. /*! no static exports found */
  3275. /***/ (function(module, exports, __webpack_require__) {
  3276. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  3277. function _defineProperties(target, props) {
  3278. for (var i = 0; i < props.length; i++) {
  3279. var descriptor = props[i];
  3280. descriptor.enumerable = descriptor.enumerable || false;
  3281. descriptor.configurable = true;
  3282. if ("value" in descriptor) descriptor.writable = true;
  3283. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  3284. }
  3285. }
  3286. function _createClass(Constructor, protoProps, staticProps) {
  3287. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  3288. if (staticProps) _defineProperties(Constructor, staticProps);
  3289. Object.defineProperty(Constructor, "prototype", {
  3290. writable: false
  3291. });
  3292. return Constructor;
  3293. }
  3294. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3295. /***/ }),
  3296. /* 25 */
  3297. /*!******************************************************************************************!*\
  3298. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  3299. \******************************************************************************************/
  3300. /*! exports provided: default */
  3301. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3302. "use strict";
  3303. __webpack_require__.r(__webpack_exports__);
  3304. /* WEBPACK VAR INJECTION */(function(global) {/*!
  3305. * Vue.js v2.6.11
  3306. * (c) 2014-2023 Evan You
  3307. * Released under the MIT License.
  3308. */
  3309. /* */
  3310. var emptyObject = Object.freeze({});
  3311. // These helpers produce better VM code in JS engines due to their
  3312. // explicitness and function inlining.
  3313. function isUndef (v) {
  3314. return v === undefined || v === null
  3315. }
  3316. function isDef (v) {
  3317. return v !== undefined && v !== null
  3318. }
  3319. function isTrue (v) {
  3320. return v === true
  3321. }
  3322. function isFalse (v) {
  3323. return v === false
  3324. }
  3325. /**
  3326. * Check if value is primitive.
  3327. */
  3328. function isPrimitive (value) {
  3329. return (
  3330. typeof value === 'string' ||
  3331. typeof value === 'number' ||
  3332. // $flow-disable-line
  3333. typeof value === 'symbol' ||
  3334. typeof value === 'boolean'
  3335. )
  3336. }
  3337. /**
  3338. * Quick object check - this is primarily used to tell
  3339. * Objects from primitive values when we know the value
  3340. * is a JSON-compliant type.
  3341. */
  3342. function isObject (obj) {
  3343. return obj !== null && typeof obj === 'object'
  3344. }
  3345. /**
  3346. * Get the raw type string of a value, e.g., [object Object].
  3347. */
  3348. var _toString = Object.prototype.toString;
  3349. function toRawType (value) {
  3350. return _toString.call(value).slice(8, -1)
  3351. }
  3352. /**
  3353. * Strict object type check. Only returns true
  3354. * for plain JavaScript objects.
  3355. */
  3356. function isPlainObject (obj) {
  3357. return _toString.call(obj) === '[object Object]'
  3358. }
  3359. function isRegExp (v) {
  3360. return _toString.call(v) === '[object RegExp]'
  3361. }
  3362. /**
  3363. * Check if val is a valid array index.
  3364. */
  3365. function isValidArrayIndex (val) {
  3366. var n = parseFloat(String(val));
  3367. return n >= 0 && Math.floor(n) === n && isFinite(val)
  3368. }
  3369. function isPromise (val) {
  3370. return (
  3371. isDef(val) &&
  3372. typeof val.then === 'function' &&
  3373. typeof val.catch === 'function'
  3374. )
  3375. }
  3376. /**
  3377. * Convert a value to a string that is actually rendered.
  3378. */
  3379. function toString (val) {
  3380. return val == null
  3381. ? ''
  3382. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  3383. ? JSON.stringify(val, null, 2)
  3384. : String(val)
  3385. }
  3386. /**
  3387. * Convert an input value to a number for persistence.
  3388. * If the conversion fails, return original string.
  3389. */
  3390. function toNumber (val) {
  3391. var n = parseFloat(val);
  3392. return isNaN(n) ? val : n
  3393. }
  3394. /**
  3395. * Make a map and return a function for checking if a key
  3396. * is in that map.
  3397. */
  3398. function makeMap (
  3399. str,
  3400. expectsLowerCase
  3401. ) {
  3402. var map = Object.create(null);
  3403. var list = str.split(',');
  3404. for (var i = 0; i < list.length; i++) {
  3405. map[list[i]] = true;
  3406. }
  3407. return expectsLowerCase
  3408. ? function (val) { return map[val.toLowerCase()]; }
  3409. : function (val) { return map[val]; }
  3410. }
  3411. /**
  3412. * Check if a tag is a built-in tag.
  3413. */
  3414. var isBuiltInTag = makeMap('slot,component', true);
  3415. /**
  3416. * Check if an attribute is a reserved attribute.
  3417. */
  3418. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  3419. /**
  3420. * Remove an item from an array.
  3421. */
  3422. function remove (arr, item) {
  3423. if (arr.length) {
  3424. var index = arr.indexOf(item);
  3425. if (index > -1) {
  3426. return arr.splice(index, 1)
  3427. }
  3428. }
  3429. }
  3430. /**
  3431. * Check whether an object has the property.
  3432. */
  3433. var hasOwnProperty = Object.prototype.hasOwnProperty;
  3434. function hasOwn (obj, key) {
  3435. return hasOwnProperty.call(obj, key)
  3436. }
  3437. /**
  3438. * Create a cached version of a pure function.
  3439. */
  3440. function cached (fn) {
  3441. var cache = Object.create(null);
  3442. return (function cachedFn (str) {
  3443. var hit = cache[str];
  3444. return hit || (cache[str] = fn(str))
  3445. })
  3446. }
  3447. /**
  3448. * Camelize a hyphen-delimited string.
  3449. */
  3450. var camelizeRE = /-(\w)/g;
  3451. var camelize = cached(function (str) {
  3452. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  3453. });
  3454. /**
  3455. * Capitalize a string.
  3456. */
  3457. var capitalize = cached(function (str) {
  3458. return str.charAt(0).toUpperCase() + str.slice(1)
  3459. });
  3460. /**
  3461. * Hyphenate a camelCase string.
  3462. */
  3463. var hyphenateRE = /\B([A-Z])/g;
  3464. var hyphenate = cached(function (str) {
  3465. return str.replace(hyphenateRE, '-$1').toLowerCase()
  3466. });
  3467. /**
  3468. * Simple bind polyfill for environments that do not support it,
  3469. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  3470. * since native bind is now performant enough in most browsers.
  3471. * But removing it would mean breaking code that was able to run in
  3472. * PhantomJS 1.x, so this must be kept for backward compatibility.
  3473. */
  3474. /* istanbul ignore next */
  3475. function polyfillBind (fn, ctx) {
  3476. function boundFn (a) {
  3477. var l = arguments.length;
  3478. return l
  3479. ? l > 1
  3480. ? fn.apply(ctx, arguments)
  3481. : fn.call(ctx, a)
  3482. : fn.call(ctx)
  3483. }
  3484. boundFn._length = fn.length;
  3485. return boundFn
  3486. }
  3487. function nativeBind (fn, ctx) {
  3488. return fn.bind(ctx)
  3489. }
  3490. var bind = Function.prototype.bind
  3491. ? nativeBind
  3492. : polyfillBind;
  3493. /**
  3494. * Convert an Array-like object to a real Array.
  3495. */
  3496. function toArray (list, start) {
  3497. start = start || 0;
  3498. var i = list.length - start;
  3499. var ret = new Array(i);
  3500. while (i--) {
  3501. ret[i] = list[i + start];
  3502. }
  3503. return ret
  3504. }
  3505. /**
  3506. * Mix properties into target object.
  3507. */
  3508. function extend (to, _from) {
  3509. for (var key in _from) {
  3510. to[key] = _from[key];
  3511. }
  3512. return to
  3513. }
  3514. /**
  3515. * Merge an Array of Objects into a single Object.
  3516. */
  3517. function toObject (arr) {
  3518. var res = {};
  3519. for (var i = 0; i < arr.length; i++) {
  3520. if (arr[i]) {
  3521. extend(res, arr[i]);
  3522. }
  3523. }
  3524. return res
  3525. }
  3526. /* eslint-disable no-unused-vars */
  3527. /**
  3528. * Perform no operation.
  3529. * Stubbing args to make Flow happy without leaving useless transpiled code
  3530. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  3531. */
  3532. function noop (a, b, c) {}
  3533. /**
  3534. * Always return false.
  3535. */
  3536. var no = function (a, b, c) { return false; };
  3537. /* eslint-enable no-unused-vars */
  3538. /**
  3539. * Return the same value.
  3540. */
  3541. var identity = function (_) { return _; };
  3542. /**
  3543. * Check if two values are loosely equal - that is,
  3544. * if they are plain objects, do they have the same shape?
  3545. */
  3546. function looseEqual (a, b) {
  3547. if (a === b) { return true }
  3548. var isObjectA = isObject(a);
  3549. var isObjectB = isObject(b);
  3550. if (isObjectA && isObjectB) {
  3551. try {
  3552. var isArrayA = Array.isArray(a);
  3553. var isArrayB = Array.isArray(b);
  3554. if (isArrayA && isArrayB) {
  3555. return a.length === b.length && a.every(function (e, i) {
  3556. return looseEqual(e, b[i])
  3557. })
  3558. } else if (a instanceof Date && b instanceof Date) {
  3559. return a.getTime() === b.getTime()
  3560. } else if (!isArrayA && !isArrayB) {
  3561. var keysA = Object.keys(a);
  3562. var keysB = Object.keys(b);
  3563. return keysA.length === keysB.length && keysA.every(function (key) {
  3564. return looseEqual(a[key], b[key])
  3565. })
  3566. } else {
  3567. /* istanbul ignore next */
  3568. return false
  3569. }
  3570. } catch (e) {
  3571. /* istanbul ignore next */
  3572. return false
  3573. }
  3574. } else if (!isObjectA && !isObjectB) {
  3575. return String(a) === String(b)
  3576. } else {
  3577. return false
  3578. }
  3579. }
  3580. /**
  3581. * Return the first index at which a loosely equal value can be
  3582. * found in the array (if value is a plain object, the array must
  3583. * contain an object of the same shape), or -1 if it is not present.
  3584. */
  3585. function looseIndexOf (arr, val) {
  3586. for (var i = 0; i < arr.length; i++) {
  3587. if (looseEqual(arr[i], val)) { return i }
  3588. }
  3589. return -1
  3590. }
  3591. /**
  3592. * Ensure a function is called only once.
  3593. */
  3594. function once (fn) {
  3595. var called = false;
  3596. return function () {
  3597. if (!called) {
  3598. called = true;
  3599. fn.apply(this, arguments);
  3600. }
  3601. }
  3602. }
  3603. var ASSET_TYPES = [
  3604. 'component',
  3605. 'directive',
  3606. 'filter'
  3607. ];
  3608. var LIFECYCLE_HOOKS = [
  3609. 'beforeCreate',
  3610. 'created',
  3611. 'beforeMount',
  3612. 'mounted',
  3613. 'beforeUpdate',
  3614. 'updated',
  3615. 'beforeDestroy',
  3616. 'destroyed',
  3617. 'activated',
  3618. 'deactivated',
  3619. 'errorCaptured',
  3620. 'serverPrefetch'
  3621. ];
  3622. /* */
  3623. var config = ({
  3624. /**
  3625. * Option merge strategies (used in core/util/options)
  3626. */
  3627. // $flow-disable-line
  3628. optionMergeStrategies: Object.create(null),
  3629. /**
  3630. * Whether to suppress warnings.
  3631. */
  3632. silent: false,
  3633. /**
  3634. * Show production mode tip message on boot?
  3635. */
  3636. productionTip: "development" !== 'production',
  3637. /**
  3638. * Whether to enable devtools
  3639. */
  3640. devtools: "development" !== 'production',
  3641. /**
  3642. * Whether to record perf
  3643. */
  3644. performance: false,
  3645. /**
  3646. * Error handler for watcher errors
  3647. */
  3648. errorHandler: null,
  3649. /**
  3650. * Warn handler for watcher warns
  3651. */
  3652. warnHandler: null,
  3653. /**
  3654. * Ignore certain custom elements
  3655. */
  3656. ignoredElements: [],
  3657. /**
  3658. * Custom user key aliases for v-on
  3659. */
  3660. // $flow-disable-line
  3661. keyCodes: Object.create(null),
  3662. /**
  3663. * Check if a tag is reserved so that it cannot be registered as a
  3664. * component. This is platform-dependent and may be overwritten.
  3665. */
  3666. isReservedTag: no,
  3667. /**
  3668. * Check if an attribute is reserved so that it cannot be used as a component
  3669. * prop. This is platform-dependent and may be overwritten.
  3670. */
  3671. isReservedAttr: no,
  3672. /**
  3673. * Check if a tag is an unknown element.
  3674. * Platform-dependent.
  3675. */
  3676. isUnknownElement: no,
  3677. /**
  3678. * Get the namespace of an element
  3679. */
  3680. getTagNamespace: noop,
  3681. /**
  3682. * Parse the real tag name for the specific platform.
  3683. */
  3684. parsePlatformTagName: identity,
  3685. /**
  3686. * Check if an attribute must be bound using property, e.g. value
  3687. * Platform-dependent.
  3688. */
  3689. mustUseProp: no,
  3690. /**
  3691. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  3692. * This will significantly reduce performance if set to false.
  3693. */
  3694. async: true,
  3695. /**
  3696. * Exposed for legacy reasons
  3697. */
  3698. _lifecycleHooks: LIFECYCLE_HOOKS
  3699. });
  3700. /* */
  3701. /**
  3702. * unicode letters used for parsing html tags, component names and property paths.
  3703. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  3704. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  3705. */
  3706. 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/;
  3707. /**
  3708. * Check if a string starts with $ or _
  3709. */
  3710. function isReserved (str) {
  3711. var c = (str + '').charCodeAt(0);
  3712. return c === 0x24 || c === 0x5F
  3713. }
  3714. /**
  3715. * Define a property.
  3716. */
  3717. function def (obj, key, val, enumerable) {
  3718. Object.defineProperty(obj, key, {
  3719. value: val,
  3720. enumerable: !!enumerable,
  3721. writable: true,
  3722. configurable: true
  3723. });
  3724. }
  3725. /**
  3726. * Parse simple path.
  3727. */
  3728. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  3729. function parsePath (path) {
  3730. if (bailRE.test(path)) {
  3731. return
  3732. }
  3733. var segments = path.split('.');
  3734. return function (obj) {
  3735. for (var i = 0; i < segments.length; i++) {
  3736. if (!obj) { return }
  3737. obj = obj[segments[i]];
  3738. }
  3739. return obj
  3740. }
  3741. }
  3742. /* */
  3743. // can we use __proto__?
  3744. var hasProto = '__proto__' in {};
  3745. // Browser environment sniffing
  3746. var inBrowser = typeof window !== 'undefined';
  3747. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  3748. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  3749. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  3750. var isIE = UA && /msie|trident/.test(UA);
  3751. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  3752. var isEdge = UA && UA.indexOf('edge/') > 0;
  3753. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  3754. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  3755. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  3756. var isPhantomJS = UA && /phantomjs/.test(UA);
  3757. var isFF = UA && UA.match(/firefox\/(\d+)/);
  3758. // Firefox has a "watch" function on Object.prototype...
  3759. var nativeWatch = ({}).watch;
  3760. if (inBrowser) {
  3761. try {
  3762. var opts = {};
  3763. Object.defineProperty(opts, 'passive', ({
  3764. get: function get () {
  3765. }
  3766. })); // https://github.com/facebook/flow/issues/285
  3767. window.addEventListener('test-passive', null, opts);
  3768. } catch (e) {}
  3769. }
  3770. // this needs to be lazy-evaled because vue may be required before
  3771. // vue-server-renderer can set VUE_ENV
  3772. var _isServer;
  3773. var isServerRendering = function () {
  3774. if (_isServer === undefined) {
  3775. /* istanbul ignore if */
  3776. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  3777. // detect presence of vue-server-renderer and avoid
  3778. // Webpack shimming the process
  3779. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  3780. } else {
  3781. _isServer = false;
  3782. }
  3783. }
  3784. return _isServer
  3785. };
  3786. // detect devtools
  3787. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  3788. /* istanbul ignore next */
  3789. function isNative (Ctor) {
  3790. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  3791. }
  3792. var hasSymbol =
  3793. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  3794. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  3795. var _Set;
  3796. /* istanbul ignore if */ // $flow-disable-line
  3797. if (typeof Set !== 'undefined' && isNative(Set)) {
  3798. // use native Set when available.
  3799. _Set = Set;
  3800. } else {
  3801. // a non-standard Set polyfill that only works with primitive keys.
  3802. _Set = /*@__PURE__*/(function () {
  3803. function Set () {
  3804. this.set = Object.create(null);
  3805. }
  3806. Set.prototype.has = function has (key) {
  3807. return this.set[key] === true
  3808. };
  3809. Set.prototype.add = function add (key) {
  3810. this.set[key] = true;
  3811. };
  3812. Set.prototype.clear = function clear () {
  3813. this.set = Object.create(null);
  3814. };
  3815. return Set;
  3816. }());
  3817. }
  3818. /* */
  3819. var warn = noop;
  3820. var tip = noop;
  3821. var generateComponentTrace = (noop); // work around flow check
  3822. var formatComponentName = (noop);
  3823. if (true) {
  3824. var hasConsole = typeof console !== 'undefined';
  3825. var classifyRE = /(?:^|[-_])(\w)/g;
  3826. var classify = function (str) { return str
  3827. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  3828. .replace(/[-_]/g, ''); };
  3829. warn = function (msg, vm) {
  3830. var trace = vm ? generateComponentTrace(vm) : '';
  3831. if (config.warnHandler) {
  3832. config.warnHandler.call(null, msg, vm, trace);
  3833. } else if (hasConsole && (!config.silent)) {
  3834. console.error(("[Vue warn]: " + msg + trace));
  3835. }
  3836. };
  3837. tip = function (msg, vm) {
  3838. if (hasConsole && (!config.silent)) {
  3839. console.warn("[Vue tip]: " + msg + (
  3840. vm ? generateComponentTrace(vm) : ''
  3841. ));
  3842. }
  3843. };
  3844. formatComponentName = function (vm, includeFile) {
  3845. if (vm.$root === vm) {
  3846. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  3847. return ('') + vm.$options.__file
  3848. }
  3849. return '<Root>'
  3850. }
  3851. var options = typeof vm === 'function' && vm.cid != null
  3852. ? vm.options
  3853. : vm._isVue
  3854. ? vm.$options || vm.constructor.options
  3855. : vm;
  3856. var name = options.name || options._componentTag;
  3857. var file = options.__file;
  3858. if (!name && file) {
  3859. var match = file.match(/([^/\\]+)\.vue$/);
  3860. name = match && match[1];
  3861. }
  3862. return (
  3863. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  3864. (file && includeFile !== false ? (" at " + file) : '')
  3865. )
  3866. };
  3867. var repeat = function (str, n) {
  3868. var res = '';
  3869. while (n) {
  3870. if (n % 2 === 1) { res += str; }
  3871. if (n > 1) { str += str; }
  3872. n >>= 1;
  3873. }
  3874. return res
  3875. };
  3876. generateComponentTrace = function (vm) {
  3877. if (vm._isVue && vm.$parent) {
  3878. var tree = [];
  3879. var currentRecursiveSequence = 0;
  3880. while (vm && vm.$options.name !== 'PageBody') {
  3881. if (tree.length > 0) {
  3882. var last = tree[tree.length - 1];
  3883. if (last.constructor === vm.constructor) {
  3884. currentRecursiveSequence++;
  3885. vm = vm.$parent;
  3886. continue
  3887. } else if (currentRecursiveSequence > 0) {
  3888. tree[tree.length - 1] = [last, currentRecursiveSequence];
  3889. currentRecursiveSequence = 0;
  3890. }
  3891. }
  3892. !vm.$options.isReserved && tree.push(vm);
  3893. vm = vm.$parent;
  3894. }
  3895. return '\n\nfound in\n\n' + tree
  3896. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  3897. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  3898. : formatComponentName(vm))); })
  3899. .join('\n')
  3900. } else {
  3901. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  3902. }
  3903. };
  3904. }
  3905. /* */
  3906. var uid = 0;
  3907. /**
  3908. * A dep is an observable that can have multiple
  3909. * directives subscribing to it.
  3910. */
  3911. var Dep = function Dep () {
  3912. this.id = uid++;
  3913. this.subs = [];
  3914. };
  3915. Dep.prototype.addSub = function addSub (sub) {
  3916. this.subs.push(sub);
  3917. };
  3918. Dep.prototype.removeSub = function removeSub (sub) {
  3919. remove(this.subs, sub);
  3920. };
  3921. Dep.prototype.depend = function depend () {
  3922. if (Dep.SharedObject.target) {
  3923. Dep.SharedObject.target.addDep(this);
  3924. }
  3925. };
  3926. Dep.prototype.notify = function notify () {
  3927. // stabilize the subscriber list first
  3928. var subs = this.subs.slice();
  3929. if ( true && !config.async) {
  3930. // subs aren't sorted in scheduler if not running async
  3931. // we need to sort them now to make sure they fire in correct
  3932. // order
  3933. subs.sort(function (a, b) { return a.id - b.id; });
  3934. }
  3935. for (var i = 0, l = subs.length; i < l; i++) {
  3936. subs[i].update();
  3937. }
  3938. };
  3939. // The current target watcher being evaluated.
  3940. // This is globally unique because only one watcher
  3941. // can be evaluated at a time.
  3942. // fixed by xxxxxx (nvue shared vuex)
  3943. /* eslint-disable no-undef */
  3944. Dep.SharedObject = {};
  3945. Dep.SharedObject.target = null;
  3946. Dep.SharedObject.targetStack = [];
  3947. function pushTarget (target) {
  3948. Dep.SharedObject.targetStack.push(target);
  3949. Dep.SharedObject.target = target;
  3950. Dep.target = target;
  3951. }
  3952. function popTarget () {
  3953. Dep.SharedObject.targetStack.pop();
  3954. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  3955. Dep.target = Dep.SharedObject.target;
  3956. }
  3957. /* */
  3958. var VNode = function VNode (
  3959. tag,
  3960. data,
  3961. children,
  3962. text,
  3963. elm,
  3964. context,
  3965. componentOptions,
  3966. asyncFactory
  3967. ) {
  3968. this.tag = tag;
  3969. this.data = data;
  3970. this.children = children;
  3971. this.text = text;
  3972. this.elm = elm;
  3973. this.ns = undefined;
  3974. this.context = context;
  3975. this.fnContext = undefined;
  3976. this.fnOptions = undefined;
  3977. this.fnScopeId = undefined;
  3978. this.key = data && data.key;
  3979. this.componentOptions = componentOptions;
  3980. this.componentInstance = undefined;
  3981. this.parent = undefined;
  3982. this.raw = false;
  3983. this.isStatic = false;
  3984. this.isRootInsert = true;
  3985. this.isComment = false;
  3986. this.isCloned = false;
  3987. this.isOnce = false;
  3988. this.asyncFactory = asyncFactory;
  3989. this.asyncMeta = undefined;
  3990. this.isAsyncPlaceholder = false;
  3991. };
  3992. var prototypeAccessors = { child: { configurable: true } };
  3993. // DEPRECATED: alias for componentInstance for backwards compat.
  3994. /* istanbul ignore next */
  3995. prototypeAccessors.child.get = function () {
  3996. return this.componentInstance
  3997. };
  3998. Object.defineProperties( VNode.prototype, prototypeAccessors );
  3999. var createEmptyVNode = function (text) {
  4000. if ( text === void 0 ) text = '';
  4001. var node = new VNode();
  4002. node.text = text;
  4003. node.isComment = true;
  4004. return node
  4005. };
  4006. function createTextVNode (val) {
  4007. return new VNode(undefined, undefined, undefined, String(val))
  4008. }
  4009. // optimized shallow clone
  4010. // used for static nodes and slot nodes because they may be reused across
  4011. // multiple renders, cloning them avoids errors when DOM manipulations rely
  4012. // on their elm reference.
  4013. function cloneVNode (vnode) {
  4014. var cloned = new VNode(
  4015. vnode.tag,
  4016. vnode.data,
  4017. // #7975
  4018. // clone children array to avoid mutating original in case of cloning
  4019. // a child.
  4020. vnode.children && vnode.children.slice(),
  4021. vnode.text,
  4022. vnode.elm,
  4023. vnode.context,
  4024. vnode.componentOptions,
  4025. vnode.asyncFactory
  4026. );
  4027. cloned.ns = vnode.ns;
  4028. cloned.isStatic = vnode.isStatic;
  4029. cloned.key = vnode.key;
  4030. cloned.isComment = vnode.isComment;
  4031. cloned.fnContext = vnode.fnContext;
  4032. cloned.fnOptions = vnode.fnOptions;
  4033. cloned.fnScopeId = vnode.fnScopeId;
  4034. cloned.asyncMeta = vnode.asyncMeta;
  4035. cloned.isCloned = true;
  4036. return cloned
  4037. }
  4038. /*
  4039. * not type checking this file because flow doesn't play well with
  4040. * dynamically accessing methods on Array prototype
  4041. */
  4042. var arrayProto = Array.prototype;
  4043. var arrayMethods = Object.create(arrayProto);
  4044. var methodsToPatch = [
  4045. 'push',
  4046. 'pop',
  4047. 'shift',
  4048. 'unshift',
  4049. 'splice',
  4050. 'sort',
  4051. 'reverse'
  4052. ];
  4053. /**
  4054. * Intercept mutating methods and emit events
  4055. */
  4056. methodsToPatch.forEach(function (method) {
  4057. // cache original method
  4058. var original = arrayProto[method];
  4059. def(arrayMethods, method, function mutator () {
  4060. var args = [], len = arguments.length;
  4061. while ( len-- ) args[ len ] = arguments[ len ];
  4062. var result = original.apply(this, args);
  4063. var ob = this.__ob__;
  4064. var inserted;
  4065. switch (method) {
  4066. case 'push':
  4067. case 'unshift':
  4068. inserted = args;
  4069. break
  4070. case 'splice':
  4071. inserted = args.slice(2);
  4072. break
  4073. }
  4074. if (inserted) { ob.observeArray(inserted); }
  4075. // notify change
  4076. ob.dep.notify();
  4077. return result
  4078. });
  4079. });
  4080. /* */
  4081. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  4082. /**
  4083. * In some cases we may want to disable observation inside a component's
  4084. * update computation.
  4085. */
  4086. var shouldObserve = true;
  4087. function toggleObserving (value) {
  4088. shouldObserve = value;
  4089. }
  4090. /**
  4091. * Observer class that is attached to each observed
  4092. * object. Once attached, the observer converts the target
  4093. * object's property keys into getter/setters that
  4094. * collect dependencies and dispatch updates.
  4095. */
  4096. var Observer = function Observer (value) {
  4097. this.value = value;
  4098. this.dep = new Dep();
  4099. this.vmCount = 0;
  4100. def(value, '__ob__', this);
  4101. if (Array.isArray(value)) {
  4102. if (hasProto) {
  4103. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  4104. if(value.push !== value.__proto__.push){
  4105. copyAugment(value, arrayMethods, arrayKeys);
  4106. } else {
  4107. protoAugment(value, arrayMethods);
  4108. }
  4109. }
  4110. } else {
  4111. copyAugment(value, arrayMethods, arrayKeys);
  4112. }
  4113. this.observeArray(value);
  4114. } else {
  4115. this.walk(value);
  4116. }
  4117. };
  4118. /**
  4119. * Walk through all properties and convert them into
  4120. * getter/setters. This method should only be called when
  4121. * value type is Object.
  4122. */
  4123. Observer.prototype.walk = function walk (obj) {
  4124. var keys = Object.keys(obj);
  4125. for (var i = 0; i < keys.length; i++) {
  4126. defineReactive$$1(obj, keys[i]);
  4127. }
  4128. };
  4129. /**
  4130. * Observe a list of Array items.
  4131. */
  4132. Observer.prototype.observeArray = function observeArray (items) {
  4133. for (var i = 0, l = items.length; i < l; i++) {
  4134. observe(items[i]);
  4135. }
  4136. };
  4137. // helpers
  4138. /**
  4139. * Augment a target Object or Array by intercepting
  4140. * the prototype chain using __proto__
  4141. */
  4142. function protoAugment (target, src) {
  4143. /* eslint-disable no-proto */
  4144. target.__proto__ = src;
  4145. /* eslint-enable no-proto */
  4146. }
  4147. /**
  4148. * Augment a target Object or Array by defining
  4149. * hidden properties.
  4150. */
  4151. /* istanbul ignore next */
  4152. function copyAugment (target, src, keys) {
  4153. for (var i = 0, l = keys.length; i < l; i++) {
  4154. var key = keys[i];
  4155. def(target, key, src[key]);
  4156. }
  4157. }
  4158. /**
  4159. * Attempt to create an observer instance for a value,
  4160. * returns the new observer if successfully observed,
  4161. * or the existing observer if the value already has one.
  4162. */
  4163. function observe (value, asRootData) {
  4164. if (!isObject(value) || value instanceof VNode) {
  4165. return
  4166. }
  4167. var ob;
  4168. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  4169. ob = value.__ob__;
  4170. } else if (
  4171. shouldObserve &&
  4172. !isServerRendering() &&
  4173. (Array.isArray(value) || isPlainObject(value)) &&
  4174. Object.isExtensible(value) &&
  4175. !value._isVue &&
  4176. !value.__v_isMPComponent
  4177. ) {
  4178. ob = new Observer(value);
  4179. }
  4180. if (asRootData && ob) {
  4181. ob.vmCount++;
  4182. }
  4183. return ob
  4184. }
  4185. /**
  4186. * Define a reactive property on an Object.
  4187. */
  4188. function defineReactive$$1 (
  4189. obj,
  4190. key,
  4191. val,
  4192. customSetter,
  4193. shallow
  4194. ) {
  4195. var dep = new Dep();
  4196. var property = Object.getOwnPropertyDescriptor(obj, key);
  4197. if (property && property.configurable === false) {
  4198. return
  4199. }
  4200. // cater for pre-defined getter/setters
  4201. var getter = property && property.get;
  4202. var setter = property && property.set;
  4203. if ((!getter || setter) && arguments.length === 2) {
  4204. val = obj[key];
  4205. }
  4206. var childOb = !shallow && observe(val);
  4207. Object.defineProperty(obj, key, {
  4208. enumerable: true,
  4209. configurable: true,
  4210. get: function reactiveGetter () {
  4211. var value = getter ? getter.call(obj) : val;
  4212. if (Dep.SharedObject.target) { // fixed by xxxxxx
  4213. dep.depend();
  4214. if (childOb) {
  4215. childOb.dep.depend();
  4216. if (Array.isArray(value)) {
  4217. dependArray(value);
  4218. }
  4219. }
  4220. }
  4221. return value
  4222. },
  4223. set: function reactiveSetter (newVal) {
  4224. var value = getter ? getter.call(obj) : val;
  4225. /* eslint-disable no-self-compare */
  4226. if (newVal === value || (newVal !== newVal && value !== value)) {
  4227. return
  4228. }
  4229. /* eslint-enable no-self-compare */
  4230. if ( true && customSetter) {
  4231. customSetter();
  4232. }
  4233. // #7981: for accessor properties without setter
  4234. if (getter && !setter) { return }
  4235. if (setter) {
  4236. setter.call(obj, newVal);
  4237. } else {
  4238. val = newVal;
  4239. }
  4240. childOb = !shallow && observe(newVal);
  4241. dep.notify();
  4242. }
  4243. });
  4244. }
  4245. /**
  4246. * Set a property on an object. Adds the new property and
  4247. * triggers change notification if the property doesn't
  4248. * already exist.
  4249. */
  4250. function set (target, key, val) {
  4251. if ( true &&
  4252. (isUndef(target) || isPrimitive(target))
  4253. ) {
  4254. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  4255. }
  4256. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4257. target.length = Math.max(target.length, key);
  4258. target.splice(key, 1, val);
  4259. return val
  4260. }
  4261. if (key in target && !(key in Object.prototype)) {
  4262. target[key] = val;
  4263. return val
  4264. }
  4265. var ob = (target).__ob__;
  4266. if (target._isVue || (ob && ob.vmCount)) {
  4267. true && warn(
  4268. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  4269. 'at runtime - declare it upfront in the data option.'
  4270. );
  4271. return val
  4272. }
  4273. if (!ob) {
  4274. target[key] = val;
  4275. return val
  4276. }
  4277. defineReactive$$1(ob.value, key, val);
  4278. ob.dep.notify();
  4279. return val
  4280. }
  4281. /**
  4282. * Delete a property and trigger change if necessary.
  4283. */
  4284. function del (target, key) {
  4285. if ( true &&
  4286. (isUndef(target) || isPrimitive(target))
  4287. ) {
  4288. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  4289. }
  4290. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4291. target.splice(key, 1);
  4292. return
  4293. }
  4294. var ob = (target).__ob__;
  4295. if (target._isVue || (ob && ob.vmCount)) {
  4296. true && warn(
  4297. 'Avoid deleting properties on a Vue instance or its root $data ' +
  4298. '- just set it to null.'
  4299. );
  4300. return
  4301. }
  4302. if (!hasOwn(target, key)) {
  4303. return
  4304. }
  4305. delete target[key];
  4306. if (!ob) {
  4307. return
  4308. }
  4309. ob.dep.notify();
  4310. }
  4311. /**
  4312. * Collect dependencies on array elements when the array is touched, since
  4313. * we cannot intercept array element access like property getters.
  4314. */
  4315. function dependArray (value) {
  4316. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  4317. e = value[i];
  4318. e && e.__ob__ && e.__ob__.dep.depend();
  4319. if (Array.isArray(e)) {
  4320. dependArray(e);
  4321. }
  4322. }
  4323. }
  4324. /* */
  4325. /**
  4326. * Option overwriting strategies are functions that handle
  4327. * how to merge a parent option value and a child option
  4328. * value into the final value.
  4329. */
  4330. var strats = config.optionMergeStrategies;
  4331. /**
  4332. * Options with restrictions
  4333. */
  4334. if (true) {
  4335. strats.el = strats.propsData = function (parent, child, vm, key) {
  4336. if (!vm) {
  4337. warn(
  4338. "option \"" + key + "\" can only be used during instance " +
  4339. 'creation with the `new` keyword.'
  4340. );
  4341. }
  4342. return defaultStrat(parent, child)
  4343. };
  4344. }
  4345. /**
  4346. * Helper that recursively merges two data objects together.
  4347. */
  4348. function mergeData (to, from) {
  4349. if (!from) { return to }
  4350. var key, toVal, fromVal;
  4351. var keys = hasSymbol
  4352. ? Reflect.ownKeys(from)
  4353. : Object.keys(from);
  4354. for (var i = 0; i < keys.length; i++) {
  4355. key = keys[i];
  4356. // in case the object is already observed...
  4357. if (key === '__ob__') { continue }
  4358. toVal = to[key];
  4359. fromVal = from[key];
  4360. if (!hasOwn(to, key)) {
  4361. set(to, key, fromVal);
  4362. } else if (
  4363. toVal !== fromVal &&
  4364. isPlainObject(toVal) &&
  4365. isPlainObject(fromVal)
  4366. ) {
  4367. mergeData(toVal, fromVal);
  4368. }
  4369. }
  4370. return to
  4371. }
  4372. /**
  4373. * Data
  4374. */
  4375. function mergeDataOrFn (
  4376. parentVal,
  4377. childVal,
  4378. vm
  4379. ) {
  4380. if (!vm) {
  4381. // in a Vue.extend merge, both should be functions
  4382. if (!childVal) {
  4383. return parentVal
  4384. }
  4385. if (!parentVal) {
  4386. return childVal
  4387. }
  4388. // when parentVal & childVal are both present,
  4389. // we need to return a function that returns the
  4390. // merged result of both functions... no need to
  4391. // check if parentVal is a function here because
  4392. // it has to be a function to pass previous merges.
  4393. return function mergedDataFn () {
  4394. return mergeData(
  4395. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  4396. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  4397. )
  4398. }
  4399. } else {
  4400. return function mergedInstanceDataFn () {
  4401. // instance merge
  4402. var instanceData = typeof childVal === 'function'
  4403. ? childVal.call(vm, vm)
  4404. : childVal;
  4405. var defaultData = typeof parentVal === 'function'
  4406. ? parentVal.call(vm, vm)
  4407. : parentVal;
  4408. if (instanceData) {
  4409. return mergeData(instanceData, defaultData)
  4410. } else {
  4411. return defaultData
  4412. }
  4413. }
  4414. }
  4415. }
  4416. strats.data = function (
  4417. parentVal,
  4418. childVal,
  4419. vm
  4420. ) {
  4421. if (!vm) {
  4422. if (childVal && typeof childVal !== 'function') {
  4423. true && warn(
  4424. 'The "data" option should be a function ' +
  4425. 'that returns a per-instance value in component ' +
  4426. 'definitions.',
  4427. vm
  4428. );
  4429. return parentVal
  4430. }
  4431. return mergeDataOrFn(parentVal, childVal)
  4432. }
  4433. return mergeDataOrFn(parentVal, childVal, vm)
  4434. };
  4435. /**
  4436. * Hooks and props are merged as arrays.
  4437. */
  4438. function mergeHook (
  4439. parentVal,
  4440. childVal
  4441. ) {
  4442. var res = childVal
  4443. ? parentVal
  4444. ? parentVal.concat(childVal)
  4445. : Array.isArray(childVal)
  4446. ? childVal
  4447. : [childVal]
  4448. : parentVal;
  4449. return res
  4450. ? dedupeHooks(res)
  4451. : res
  4452. }
  4453. function dedupeHooks (hooks) {
  4454. var res = [];
  4455. for (var i = 0; i < hooks.length; i++) {
  4456. if (res.indexOf(hooks[i]) === -1) {
  4457. res.push(hooks[i]);
  4458. }
  4459. }
  4460. return res
  4461. }
  4462. LIFECYCLE_HOOKS.forEach(function (hook) {
  4463. strats[hook] = mergeHook;
  4464. });
  4465. /**
  4466. * Assets
  4467. *
  4468. * When a vm is present (instance creation), we need to do
  4469. * a three-way merge between constructor options, instance
  4470. * options and parent options.
  4471. */
  4472. function mergeAssets (
  4473. parentVal,
  4474. childVal,
  4475. vm,
  4476. key
  4477. ) {
  4478. var res = Object.create(parentVal || null);
  4479. if (childVal) {
  4480. true && assertObjectType(key, childVal, vm);
  4481. return extend(res, childVal)
  4482. } else {
  4483. return res
  4484. }
  4485. }
  4486. ASSET_TYPES.forEach(function (type) {
  4487. strats[type + 's'] = mergeAssets;
  4488. });
  4489. /**
  4490. * Watchers.
  4491. *
  4492. * Watchers hashes should not overwrite one
  4493. * another, so we merge them as arrays.
  4494. */
  4495. strats.watch = function (
  4496. parentVal,
  4497. childVal,
  4498. vm,
  4499. key
  4500. ) {
  4501. // work around Firefox's Object.prototype.watch...
  4502. if (parentVal === nativeWatch) { parentVal = undefined; }
  4503. if (childVal === nativeWatch) { childVal = undefined; }
  4504. /* istanbul ignore if */
  4505. if (!childVal) { return Object.create(parentVal || null) }
  4506. if (true) {
  4507. assertObjectType(key, childVal, vm);
  4508. }
  4509. if (!parentVal) { return childVal }
  4510. var ret = {};
  4511. extend(ret, parentVal);
  4512. for (var key$1 in childVal) {
  4513. var parent = ret[key$1];
  4514. var child = childVal[key$1];
  4515. if (parent && !Array.isArray(parent)) {
  4516. parent = [parent];
  4517. }
  4518. ret[key$1] = parent
  4519. ? parent.concat(child)
  4520. : Array.isArray(child) ? child : [child];
  4521. }
  4522. return ret
  4523. };
  4524. /**
  4525. * Other object hashes.
  4526. */
  4527. strats.props =
  4528. strats.methods =
  4529. strats.inject =
  4530. strats.computed = function (
  4531. parentVal,
  4532. childVal,
  4533. vm,
  4534. key
  4535. ) {
  4536. if (childVal && "development" !== 'production') {
  4537. assertObjectType(key, childVal, vm);
  4538. }
  4539. if (!parentVal) { return childVal }
  4540. var ret = Object.create(null);
  4541. extend(ret, parentVal);
  4542. if (childVal) { extend(ret, childVal); }
  4543. return ret
  4544. };
  4545. strats.provide = mergeDataOrFn;
  4546. /**
  4547. * Default strategy.
  4548. */
  4549. var defaultStrat = function (parentVal, childVal) {
  4550. return childVal === undefined
  4551. ? parentVal
  4552. : childVal
  4553. };
  4554. /**
  4555. * Validate component names
  4556. */
  4557. function checkComponents (options) {
  4558. for (var key in options.components) {
  4559. validateComponentName(key);
  4560. }
  4561. }
  4562. function validateComponentName (name) {
  4563. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  4564. warn(
  4565. 'Invalid component name: "' + name + '". Component names ' +
  4566. 'should conform to valid custom element name in html5 specification.'
  4567. );
  4568. }
  4569. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  4570. warn(
  4571. 'Do not use built-in or reserved HTML elements as component ' +
  4572. 'id: ' + name
  4573. );
  4574. }
  4575. }
  4576. /**
  4577. * Ensure all props option syntax are normalized into the
  4578. * Object-based format.
  4579. */
  4580. function normalizeProps (options, vm) {
  4581. var props = options.props;
  4582. if (!props) { return }
  4583. var res = {};
  4584. var i, val, name;
  4585. if (Array.isArray(props)) {
  4586. i = props.length;
  4587. while (i--) {
  4588. val = props[i];
  4589. if (typeof val === 'string') {
  4590. name = camelize(val);
  4591. res[name] = { type: null };
  4592. } else if (true) {
  4593. warn('props must be strings when using array syntax.');
  4594. }
  4595. }
  4596. } else if (isPlainObject(props)) {
  4597. for (var key in props) {
  4598. val = props[key];
  4599. name = camelize(key);
  4600. res[name] = isPlainObject(val)
  4601. ? val
  4602. : { type: val };
  4603. }
  4604. } else if (true) {
  4605. warn(
  4606. "Invalid value for option \"props\": expected an Array or an Object, " +
  4607. "but got " + (toRawType(props)) + ".",
  4608. vm
  4609. );
  4610. }
  4611. options.props = res;
  4612. }
  4613. /**
  4614. * Normalize all injections into Object-based format
  4615. */
  4616. function normalizeInject (options, vm) {
  4617. var inject = options.inject;
  4618. if (!inject) { return }
  4619. var normalized = options.inject = {};
  4620. if (Array.isArray(inject)) {
  4621. for (var i = 0; i < inject.length; i++) {
  4622. normalized[inject[i]] = { from: inject[i] };
  4623. }
  4624. } else if (isPlainObject(inject)) {
  4625. for (var key in inject) {
  4626. var val = inject[key];
  4627. normalized[key] = isPlainObject(val)
  4628. ? extend({ from: key }, val)
  4629. : { from: val };
  4630. }
  4631. } else if (true) {
  4632. warn(
  4633. "Invalid value for option \"inject\": expected an Array or an Object, " +
  4634. "but got " + (toRawType(inject)) + ".",
  4635. vm
  4636. );
  4637. }
  4638. }
  4639. /**
  4640. * Normalize raw function directives into object format.
  4641. */
  4642. function normalizeDirectives (options) {
  4643. var dirs = options.directives;
  4644. if (dirs) {
  4645. for (var key in dirs) {
  4646. var def$$1 = dirs[key];
  4647. if (typeof def$$1 === 'function') {
  4648. dirs[key] = { bind: def$$1, update: def$$1 };
  4649. }
  4650. }
  4651. }
  4652. }
  4653. function assertObjectType (name, value, vm) {
  4654. if (!isPlainObject(value)) {
  4655. warn(
  4656. "Invalid value for option \"" + name + "\": expected an Object, " +
  4657. "but got " + (toRawType(value)) + ".",
  4658. vm
  4659. );
  4660. }
  4661. }
  4662. /**
  4663. * Merge two option objects into a new one.
  4664. * Core utility used in both instantiation and inheritance.
  4665. */
  4666. function mergeOptions (
  4667. parent,
  4668. child,
  4669. vm
  4670. ) {
  4671. if (true) {
  4672. checkComponents(child);
  4673. }
  4674. if (typeof child === 'function') {
  4675. child = child.options;
  4676. }
  4677. normalizeProps(child, vm);
  4678. normalizeInject(child, vm);
  4679. normalizeDirectives(child);
  4680. // Apply extends and mixins on the child options,
  4681. // but only if it is a raw options object that isn't
  4682. // the result of another mergeOptions call.
  4683. // Only merged options has the _base property.
  4684. if (!child._base) {
  4685. if (child.extends) {
  4686. parent = mergeOptions(parent, child.extends, vm);
  4687. }
  4688. if (child.mixins) {
  4689. for (var i = 0, l = child.mixins.length; i < l; i++) {
  4690. parent = mergeOptions(parent, child.mixins[i], vm);
  4691. }
  4692. }
  4693. }
  4694. var options = {};
  4695. var key;
  4696. for (key in parent) {
  4697. mergeField(key);
  4698. }
  4699. for (key in child) {
  4700. if (!hasOwn(parent, key)) {
  4701. mergeField(key);
  4702. }
  4703. }
  4704. function mergeField (key) {
  4705. var strat = strats[key] || defaultStrat;
  4706. options[key] = strat(parent[key], child[key], vm, key);
  4707. }
  4708. return options
  4709. }
  4710. /**
  4711. * Resolve an asset.
  4712. * This function is used because child instances need access
  4713. * to assets defined in its ancestor chain.
  4714. */
  4715. function resolveAsset (
  4716. options,
  4717. type,
  4718. id,
  4719. warnMissing
  4720. ) {
  4721. /* istanbul ignore if */
  4722. if (typeof id !== 'string') {
  4723. return
  4724. }
  4725. var assets = options[type];
  4726. // check local registration variations first
  4727. if (hasOwn(assets, id)) { return assets[id] }
  4728. var camelizedId = camelize(id);
  4729. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  4730. var PascalCaseId = capitalize(camelizedId);
  4731. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  4732. // fallback to prototype chain
  4733. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  4734. if ( true && warnMissing && !res) {
  4735. warn(
  4736. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  4737. options
  4738. );
  4739. }
  4740. return res
  4741. }
  4742. /* */
  4743. function validateProp (
  4744. key,
  4745. propOptions,
  4746. propsData,
  4747. vm
  4748. ) {
  4749. var prop = propOptions[key];
  4750. var absent = !hasOwn(propsData, key);
  4751. var value = propsData[key];
  4752. // boolean casting
  4753. var booleanIndex = getTypeIndex(Boolean, prop.type);
  4754. if (booleanIndex > -1) {
  4755. if (absent && !hasOwn(prop, 'default')) {
  4756. value = false;
  4757. } else if (value === '' || value === hyphenate(key)) {
  4758. // only cast empty string / same name to boolean if
  4759. // boolean has higher priority
  4760. var stringIndex = getTypeIndex(String, prop.type);
  4761. if (stringIndex < 0 || booleanIndex < stringIndex) {
  4762. value = true;
  4763. }
  4764. }
  4765. }
  4766. // check default value
  4767. if (value === undefined) {
  4768. value = getPropDefaultValue(vm, prop, key);
  4769. // since the default value is a fresh copy,
  4770. // make sure to observe it.
  4771. var prevShouldObserve = shouldObserve;
  4772. toggleObserving(true);
  4773. observe(value);
  4774. toggleObserving(prevShouldObserve);
  4775. }
  4776. if (
  4777. true
  4778. ) {
  4779. assertProp(prop, key, value, vm, absent);
  4780. }
  4781. return value
  4782. }
  4783. /**
  4784. * Get the default value of a prop.
  4785. */
  4786. function getPropDefaultValue (vm, prop, key) {
  4787. // no default, return undefined
  4788. if (!hasOwn(prop, 'default')) {
  4789. return undefined
  4790. }
  4791. var def = prop.default;
  4792. // warn against non-factory defaults for Object & Array
  4793. if ( true && isObject(def)) {
  4794. warn(
  4795. 'Invalid default value for prop "' + key + '": ' +
  4796. 'Props with type Object/Array must use a factory function ' +
  4797. 'to return the default value.',
  4798. vm
  4799. );
  4800. }
  4801. // the raw prop value was also undefined from previous render,
  4802. // return previous default value to avoid unnecessary watcher trigger
  4803. if (vm && vm.$options.propsData &&
  4804. vm.$options.propsData[key] === undefined &&
  4805. vm._props[key] !== undefined
  4806. ) {
  4807. return vm._props[key]
  4808. }
  4809. // call factory function for non-Function types
  4810. // a value is Function if its prototype is function even across different execution context
  4811. return typeof def === 'function' && getType(prop.type) !== 'Function'
  4812. ? def.call(vm)
  4813. : def
  4814. }
  4815. /**
  4816. * Assert whether a prop is valid.
  4817. */
  4818. function assertProp (
  4819. prop,
  4820. name,
  4821. value,
  4822. vm,
  4823. absent
  4824. ) {
  4825. if (prop.required && absent) {
  4826. warn(
  4827. 'Missing required prop: "' + name + '"',
  4828. vm
  4829. );
  4830. return
  4831. }
  4832. if (value == null && !prop.required) {
  4833. return
  4834. }
  4835. var type = prop.type;
  4836. var valid = !type || type === true;
  4837. var expectedTypes = [];
  4838. if (type) {
  4839. if (!Array.isArray(type)) {
  4840. type = [type];
  4841. }
  4842. for (var i = 0; i < type.length && !valid; i++) {
  4843. var assertedType = assertType(value, type[i]);
  4844. expectedTypes.push(assertedType.expectedType || '');
  4845. valid = assertedType.valid;
  4846. }
  4847. }
  4848. if (!valid) {
  4849. warn(
  4850. getInvalidTypeMessage(name, value, expectedTypes),
  4851. vm
  4852. );
  4853. return
  4854. }
  4855. var validator = prop.validator;
  4856. if (validator) {
  4857. if (!validator(value)) {
  4858. warn(
  4859. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  4860. vm
  4861. );
  4862. }
  4863. }
  4864. }
  4865. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  4866. function assertType (value, type) {
  4867. var valid;
  4868. var expectedType = getType(type);
  4869. if (simpleCheckRE.test(expectedType)) {
  4870. var t = typeof value;
  4871. valid = t === expectedType.toLowerCase();
  4872. // for primitive wrapper objects
  4873. if (!valid && t === 'object') {
  4874. valid = value instanceof type;
  4875. }
  4876. } else if (expectedType === 'Object') {
  4877. valid = isPlainObject(value);
  4878. } else if (expectedType === 'Array') {
  4879. valid = Array.isArray(value);
  4880. } else {
  4881. valid = value instanceof type;
  4882. }
  4883. return {
  4884. valid: valid,
  4885. expectedType: expectedType
  4886. }
  4887. }
  4888. /**
  4889. * Use function string name to check built-in types,
  4890. * because a simple equality check will fail when running
  4891. * across different vms / iframes.
  4892. */
  4893. function getType (fn) {
  4894. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  4895. return match ? match[1] : ''
  4896. }
  4897. function isSameType (a, b) {
  4898. return getType(a) === getType(b)
  4899. }
  4900. function getTypeIndex (type, expectedTypes) {
  4901. if (!Array.isArray(expectedTypes)) {
  4902. return isSameType(expectedTypes, type) ? 0 : -1
  4903. }
  4904. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  4905. if (isSameType(expectedTypes[i], type)) {
  4906. return i
  4907. }
  4908. }
  4909. return -1
  4910. }
  4911. function getInvalidTypeMessage (name, value, expectedTypes) {
  4912. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  4913. " Expected " + (expectedTypes.map(capitalize).join(', '));
  4914. var expectedType = expectedTypes[0];
  4915. var receivedType = toRawType(value);
  4916. var expectedValue = styleValue(value, expectedType);
  4917. var receivedValue = styleValue(value, receivedType);
  4918. // check if we need to specify expected value
  4919. if (expectedTypes.length === 1 &&
  4920. isExplicable(expectedType) &&
  4921. !isBoolean(expectedType, receivedType)) {
  4922. message += " with value " + expectedValue;
  4923. }
  4924. message += ", got " + receivedType + " ";
  4925. // check if we need to specify received value
  4926. if (isExplicable(receivedType)) {
  4927. message += "with value " + receivedValue + ".";
  4928. }
  4929. return message
  4930. }
  4931. function styleValue (value, type) {
  4932. if (type === 'String') {
  4933. return ("\"" + value + "\"")
  4934. } else if (type === 'Number') {
  4935. return ("" + (Number(value)))
  4936. } else {
  4937. return ("" + value)
  4938. }
  4939. }
  4940. function isExplicable (value) {
  4941. var explicitTypes = ['string', 'number', 'boolean'];
  4942. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  4943. }
  4944. function isBoolean () {
  4945. var args = [], len = arguments.length;
  4946. while ( len-- ) args[ len ] = arguments[ len ];
  4947. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  4948. }
  4949. /* */
  4950. function handleError (err, vm, info) {
  4951. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  4952. // See: https://github.com/vuejs/vuex/issues/1505
  4953. pushTarget();
  4954. try {
  4955. if (vm) {
  4956. var cur = vm;
  4957. while ((cur = cur.$parent)) {
  4958. var hooks = cur.$options.errorCaptured;
  4959. if (hooks) {
  4960. for (var i = 0; i < hooks.length; i++) {
  4961. try {
  4962. var capture = hooks[i].call(cur, err, vm, info) === false;
  4963. if (capture) { return }
  4964. } catch (e) {
  4965. globalHandleError(e, cur, 'errorCaptured hook');
  4966. }
  4967. }
  4968. }
  4969. }
  4970. }
  4971. globalHandleError(err, vm, info);
  4972. } finally {
  4973. popTarget();
  4974. }
  4975. }
  4976. function invokeWithErrorHandling (
  4977. handler,
  4978. context,
  4979. args,
  4980. vm,
  4981. info
  4982. ) {
  4983. var res;
  4984. try {
  4985. res = args ? handler.apply(context, args) : handler.call(context);
  4986. if (res && !res._isVue && isPromise(res) && !res._handled) {
  4987. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  4988. // issue #9511
  4989. // avoid catch triggering multiple times when nested calls
  4990. res._handled = true;
  4991. }
  4992. } catch (e) {
  4993. handleError(e, vm, info);
  4994. }
  4995. return res
  4996. }
  4997. function globalHandleError (err, vm, info) {
  4998. if (config.errorHandler) {
  4999. try {
  5000. return config.errorHandler.call(null, err, vm, info)
  5001. } catch (e) {
  5002. // if the user intentionally throws the original error in the handler,
  5003. // do not log it twice
  5004. if (e !== err) {
  5005. logError(e, null, 'config.errorHandler');
  5006. }
  5007. }
  5008. }
  5009. logError(err, vm, info);
  5010. }
  5011. function logError (err, vm, info) {
  5012. if (true) {
  5013. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  5014. }
  5015. /* istanbul ignore else */
  5016. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  5017. console.error(err);
  5018. } else {
  5019. throw err
  5020. }
  5021. }
  5022. /* */
  5023. var callbacks = [];
  5024. var pending = false;
  5025. function flushCallbacks () {
  5026. pending = false;
  5027. var copies = callbacks.slice(0);
  5028. callbacks.length = 0;
  5029. for (var i = 0; i < copies.length; i++) {
  5030. copies[i]();
  5031. }
  5032. }
  5033. // Here we have async deferring wrappers using microtasks.
  5034. // In 2.5 we used (macro) tasks (in combination with microtasks).
  5035. // However, it has subtle problems when state is changed right before repaint
  5036. // (e.g. #6813, out-in transitions).
  5037. // Also, using (macro) tasks in event handler would cause some weird behaviors
  5038. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  5039. // So we now use microtasks everywhere, again.
  5040. // A major drawback of this tradeoff is that there are some scenarios
  5041. // where microtasks have too high a priority and fire in between supposedly
  5042. // sequential events (e.g. #4521, #6690, which have workarounds)
  5043. // or even between bubbling of the same event (#6566).
  5044. var timerFunc;
  5045. // The nextTick behavior leverages the microtask queue, which can be accessed
  5046. // via either native Promise.then or MutationObserver.
  5047. // MutationObserver has wider support, however it is seriously bugged in
  5048. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  5049. // completely stops working after triggering a few times... so, if native
  5050. // Promise is available, we will use it:
  5051. /* istanbul ignore next, $flow-disable-line */
  5052. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  5053. var p = Promise.resolve();
  5054. timerFunc = function () {
  5055. p.then(flushCallbacks);
  5056. // In problematic UIWebViews, Promise.then doesn't completely break, but
  5057. // it can get stuck in a weird state where callbacks are pushed into the
  5058. // microtask queue but the queue isn't being flushed, until the browser
  5059. // needs to do some other work, e.g. handle a timer. Therefore we can
  5060. // "force" the microtask queue to be flushed by adding an empty timer.
  5061. if (isIOS) { setTimeout(noop); }
  5062. };
  5063. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  5064. isNative(MutationObserver) ||
  5065. // PhantomJS and iOS 7.x
  5066. MutationObserver.toString() === '[object MutationObserverConstructor]'
  5067. )) {
  5068. // Use MutationObserver where native Promise is not available,
  5069. // e.g. PhantomJS, iOS7, Android 4.4
  5070. // (#6466 MutationObserver is unreliable in IE11)
  5071. var counter = 1;
  5072. var observer = new MutationObserver(flushCallbacks);
  5073. var textNode = document.createTextNode(String(counter));
  5074. observer.observe(textNode, {
  5075. characterData: true
  5076. });
  5077. timerFunc = function () {
  5078. counter = (counter + 1) % 2;
  5079. textNode.data = String(counter);
  5080. };
  5081. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  5082. // Fallback to setImmediate.
  5083. // Technically it leverages the (macro) task queue,
  5084. // but it is still a better choice than setTimeout.
  5085. timerFunc = function () {
  5086. setImmediate(flushCallbacks);
  5087. };
  5088. } else {
  5089. // Fallback to setTimeout.
  5090. timerFunc = function () {
  5091. setTimeout(flushCallbacks, 0);
  5092. };
  5093. }
  5094. function nextTick (cb, ctx) {
  5095. var _resolve;
  5096. callbacks.push(function () {
  5097. if (cb) {
  5098. try {
  5099. cb.call(ctx);
  5100. } catch (e) {
  5101. handleError(e, ctx, 'nextTick');
  5102. }
  5103. } else if (_resolve) {
  5104. _resolve(ctx);
  5105. }
  5106. });
  5107. if (!pending) {
  5108. pending = true;
  5109. timerFunc();
  5110. }
  5111. // $flow-disable-line
  5112. if (!cb && typeof Promise !== 'undefined') {
  5113. return new Promise(function (resolve) {
  5114. _resolve = resolve;
  5115. })
  5116. }
  5117. }
  5118. /* */
  5119. /* not type checking this file because flow doesn't play well with Proxy */
  5120. var initProxy;
  5121. if (true) {
  5122. var allowedGlobals = makeMap(
  5123. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  5124. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  5125. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  5126. 'require' // for Webpack/Browserify
  5127. );
  5128. var warnNonPresent = function (target, key) {
  5129. warn(
  5130. "Property or method \"" + key + "\" is not defined on the instance but " +
  5131. 'referenced during render. Make sure that this property is reactive, ' +
  5132. 'either in the data option, or for class-based components, by ' +
  5133. 'initializing the property. ' +
  5134. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  5135. target
  5136. );
  5137. };
  5138. var warnReservedPrefix = function (target, key) {
  5139. warn(
  5140. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  5141. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  5142. 'prevent conflicts with Vue internals. ' +
  5143. 'See: https://vuejs.org/v2/api/#data',
  5144. target
  5145. );
  5146. };
  5147. var hasProxy =
  5148. typeof Proxy !== 'undefined' && isNative(Proxy);
  5149. if (hasProxy) {
  5150. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  5151. config.keyCodes = new Proxy(config.keyCodes, {
  5152. set: function set (target, key, value) {
  5153. if (isBuiltInModifier(key)) {
  5154. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  5155. return false
  5156. } else {
  5157. target[key] = value;
  5158. return true
  5159. }
  5160. }
  5161. });
  5162. }
  5163. var hasHandler = {
  5164. has: function has (target, key) {
  5165. var has = key in target;
  5166. var isAllowed = allowedGlobals(key) ||
  5167. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  5168. if (!has && !isAllowed) {
  5169. if (key in target.$data) { warnReservedPrefix(target, key); }
  5170. else { warnNonPresent(target, key); }
  5171. }
  5172. return has || !isAllowed
  5173. }
  5174. };
  5175. var getHandler = {
  5176. get: function get (target, key) {
  5177. if (typeof key === 'string' && !(key in target)) {
  5178. if (key in target.$data) { warnReservedPrefix(target, key); }
  5179. else { warnNonPresent(target, key); }
  5180. }
  5181. return target[key]
  5182. }
  5183. };
  5184. initProxy = function initProxy (vm) {
  5185. if (hasProxy) {
  5186. // determine which proxy handler to use
  5187. var options = vm.$options;
  5188. var handlers = options.render && options.render._withStripped
  5189. ? getHandler
  5190. : hasHandler;
  5191. vm._renderProxy = new Proxy(vm, handlers);
  5192. } else {
  5193. vm._renderProxy = vm;
  5194. }
  5195. };
  5196. }
  5197. /* */
  5198. var seenObjects = new _Set();
  5199. /**
  5200. * Recursively traverse an object to evoke all converted
  5201. * getters, so that every nested property inside the object
  5202. * is collected as a "deep" dependency.
  5203. */
  5204. function traverse (val) {
  5205. _traverse(val, seenObjects);
  5206. seenObjects.clear();
  5207. }
  5208. function _traverse (val, seen) {
  5209. var i, keys;
  5210. var isA = Array.isArray(val);
  5211. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  5212. return
  5213. }
  5214. if (val.__ob__) {
  5215. var depId = val.__ob__.dep.id;
  5216. if (seen.has(depId)) {
  5217. return
  5218. }
  5219. seen.add(depId);
  5220. }
  5221. if (isA) {
  5222. i = val.length;
  5223. while (i--) { _traverse(val[i], seen); }
  5224. } else {
  5225. keys = Object.keys(val);
  5226. i = keys.length;
  5227. while (i--) { _traverse(val[keys[i]], seen); }
  5228. }
  5229. }
  5230. var mark;
  5231. var measure;
  5232. if (true) {
  5233. var perf = inBrowser && window.performance;
  5234. /* istanbul ignore if */
  5235. if (
  5236. perf &&
  5237. perf.mark &&
  5238. perf.measure &&
  5239. perf.clearMarks &&
  5240. perf.clearMeasures
  5241. ) {
  5242. mark = function (tag) { return perf.mark(tag); };
  5243. measure = function (name, startTag, endTag) {
  5244. perf.measure(name, startTag, endTag);
  5245. perf.clearMarks(startTag);
  5246. perf.clearMarks(endTag);
  5247. // perf.clearMeasures(name)
  5248. };
  5249. }
  5250. }
  5251. /* */
  5252. var normalizeEvent = cached(function (name) {
  5253. var passive = name.charAt(0) === '&';
  5254. name = passive ? name.slice(1) : name;
  5255. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  5256. name = once$$1 ? name.slice(1) : name;
  5257. var capture = name.charAt(0) === '!';
  5258. name = capture ? name.slice(1) : name;
  5259. return {
  5260. name: name,
  5261. once: once$$1,
  5262. capture: capture,
  5263. passive: passive
  5264. }
  5265. });
  5266. function createFnInvoker (fns, vm) {
  5267. function invoker () {
  5268. var arguments$1 = arguments;
  5269. var fns = invoker.fns;
  5270. if (Array.isArray(fns)) {
  5271. var cloned = fns.slice();
  5272. for (var i = 0; i < cloned.length; i++) {
  5273. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  5274. }
  5275. } else {
  5276. // return handler return value for single handlers
  5277. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  5278. }
  5279. }
  5280. invoker.fns = fns;
  5281. return invoker
  5282. }
  5283. function updateListeners (
  5284. on,
  5285. oldOn,
  5286. add,
  5287. remove$$1,
  5288. createOnceHandler,
  5289. vm
  5290. ) {
  5291. var name, def$$1, cur, old, event;
  5292. for (name in on) {
  5293. def$$1 = cur = on[name];
  5294. old = oldOn[name];
  5295. event = normalizeEvent(name);
  5296. if (isUndef(cur)) {
  5297. true && warn(
  5298. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  5299. vm
  5300. );
  5301. } else if (isUndef(old)) {
  5302. if (isUndef(cur.fns)) {
  5303. cur = on[name] = createFnInvoker(cur, vm);
  5304. }
  5305. if (isTrue(event.once)) {
  5306. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  5307. }
  5308. add(event.name, cur, event.capture, event.passive, event.params);
  5309. } else if (cur !== old) {
  5310. old.fns = cur;
  5311. on[name] = old;
  5312. }
  5313. }
  5314. for (name in oldOn) {
  5315. if (isUndef(on[name])) {
  5316. event = normalizeEvent(name);
  5317. remove$$1(event.name, oldOn[name], event.capture);
  5318. }
  5319. }
  5320. }
  5321. /* */
  5322. /* */
  5323. // fixed by xxxxxx (mp properties)
  5324. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  5325. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  5326. if (isUndef(propOptions)) {
  5327. return res
  5328. }
  5329. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  5330. var attrs = data.attrs;
  5331. var props = data.props;
  5332. if (isDef(attrs) || isDef(props)) {
  5333. for (var key in propOptions) {
  5334. var altKey = hyphenate(key);
  5335. var result = checkProp(res, props, key, altKey, true) ||
  5336. checkProp(res, attrs, key, altKey, false);
  5337. // externalClass
  5338. if (
  5339. result &&
  5340. res[key] &&
  5341. externalClasses.indexOf(altKey) !== -1 &&
  5342. context[camelize(res[key])]
  5343. ) {
  5344. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  5345. res[key] = context[camelize(res[key])];
  5346. }
  5347. }
  5348. }
  5349. return res
  5350. }
  5351. function extractPropsFromVNodeData (
  5352. data,
  5353. Ctor,
  5354. tag,
  5355. context// fixed by xxxxxx
  5356. ) {
  5357. // we are only extracting raw values here.
  5358. // validation and default values are handled in the child
  5359. // component itself.
  5360. var propOptions = Ctor.options.props;
  5361. if (isUndef(propOptions)) {
  5362. // fixed by xxxxxx
  5363. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  5364. }
  5365. var res = {};
  5366. var attrs = data.attrs;
  5367. var props = data.props;
  5368. if (isDef(attrs) || isDef(props)) {
  5369. for (var key in propOptions) {
  5370. var altKey = hyphenate(key);
  5371. if (true) {
  5372. var keyInLowerCase = key.toLowerCase();
  5373. if (
  5374. key !== keyInLowerCase &&
  5375. attrs && hasOwn(attrs, keyInLowerCase)
  5376. ) {
  5377. tip(
  5378. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  5379. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  5380. " \"" + key + "\". " +
  5381. "Note that HTML attributes are case-insensitive and camelCased " +
  5382. "props need to use their kebab-case equivalents when using in-DOM " +
  5383. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  5384. );
  5385. }
  5386. }
  5387. checkProp(res, props, key, altKey, true) ||
  5388. checkProp(res, attrs, key, altKey, false);
  5389. }
  5390. }
  5391. // fixed by xxxxxx
  5392. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  5393. }
  5394. function checkProp (
  5395. res,
  5396. hash,
  5397. key,
  5398. altKey,
  5399. preserve
  5400. ) {
  5401. if (isDef(hash)) {
  5402. if (hasOwn(hash, key)) {
  5403. res[key] = hash[key];
  5404. if (!preserve) {
  5405. delete hash[key];
  5406. }
  5407. return true
  5408. } else if (hasOwn(hash, altKey)) {
  5409. res[key] = hash[altKey];
  5410. if (!preserve) {
  5411. delete hash[altKey];
  5412. }
  5413. return true
  5414. }
  5415. }
  5416. return false
  5417. }
  5418. /* */
  5419. // The template compiler attempts to minimize the need for normalization by
  5420. // statically analyzing the template at compile time.
  5421. //
  5422. // For plain HTML markup, normalization can be completely skipped because the
  5423. // generated render function is guaranteed to return Array<VNode>. There are
  5424. // two cases where extra normalization is needed:
  5425. // 1. When the children contains components - because a functional component
  5426. // may return an Array instead of a single root. In this case, just a simple
  5427. // normalization is needed - if any child is an Array, we flatten the whole
  5428. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  5429. // because functional components already normalize their own children.
  5430. function simpleNormalizeChildren (children) {
  5431. for (var i = 0; i < children.length; i++) {
  5432. if (Array.isArray(children[i])) {
  5433. return Array.prototype.concat.apply([], children)
  5434. }
  5435. }
  5436. return children
  5437. }
  5438. // 2. When the children contains constructs that always generated nested Arrays,
  5439. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  5440. // with hand-written render functions / JSX. In such cases a full normalization
  5441. // is needed to cater to all possible types of children values.
  5442. function normalizeChildren (children) {
  5443. return isPrimitive(children)
  5444. ? [createTextVNode(children)]
  5445. : Array.isArray(children)
  5446. ? normalizeArrayChildren(children)
  5447. : undefined
  5448. }
  5449. function isTextNode (node) {
  5450. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  5451. }
  5452. function normalizeArrayChildren (children, nestedIndex) {
  5453. var res = [];
  5454. var i, c, lastIndex, last;
  5455. for (i = 0; i < children.length; i++) {
  5456. c = children[i];
  5457. if (isUndef(c) || typeof c === 'boolean') { continue }
  5458. lastIndex = res.length - 1;
  5459. last = res[lastIndex];
  5460. // nested
  5461. if (Array.isArray(c)) {
  5462. if (c.length > 0) {
  5463. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  5464. // merge adjacent text nodes
  5465. if (isTextNode(c[0]) && isTextNode(last)) {
  5466. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  5467. c.shift();
  5468. }
  5469. res.push.apply(res, c);
  5470. }
  5471. } else if (isPrimitive(c)) {
  5472. if (isTextNode(last)) {
  5473. // merge adjacent text nodes
  5474. // this is necessary for SSR hydration because text nodes are
  5475. // essentially merged when rendered to HTML strings
  5476. res[lastIndex] = createTextVNode(last.text + c);
  5477. } else if (c !== '') {
  5478. // convert primitive to vnode
  5479. res.push(createTextVNode(c));
  5480. }
  5481. } else {
  5482. if (isTextNode(c) && isTextNode(last)) {
  5483. // merge adjacent text nodes
  5484. res[lastIndex] = createTextVNode(last.text + c.text);
  5485. } else {
  5486. // default key for nested array children (likely generated by v-for)
  5487. if (isTrue(children._isVList) &&
  5488. isDef(c.tag) &&
  5489. isUndef(c.key) &&
  5490. isDef(nestedIndex)) {
  5491. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  5492. }
  5493. res.push(c);
  5494. }
  5495. }
  5496. }
  5497. return res
  5498. }
  5499. /* */
  5500. function initProvide (vm) {
  5501. var provide = vm.$options.provide;
  5502. if (provide) {
  5503. vm._provided = typeof provide === 'function'
  5504. ? provide.call(vm)
  5505. : provide;
  5506. }
  5507. }
  5508. function initInjections (vm) {
  5509. var result = resolveInject(vm.$options.inject, vm);
  5510. if (result) {
  5511. toggleObserving(false);
  5512. Object.keys(result).forEach(function (key) {
  5513. /* istanbul ignore else */
  5514. if (true) {
  5515. defineReactive$$1(vm, key, result[key], function () {
  5516. warn(
  5517. "Avoid mutating an injected value directly since the changes will be " +
  5518. "overwritten whenever the provided component re-renders. " +
  5519. "injection being mutated: \"" + key + "\"",
  5520. vm
  5521. );
  5522. });
  5523. } else {}
  5524. });
  5525. toggleObserving(true);
  5526. }
  5527. }
  5528. function resolveInject (inject, vm) {
  5529. if (inject) {
  5530. // inject is :any because flow is not smart enough to figure out cached
  5531. var result = Object.create(null);
  5532. var keys = hasSymbol
  5533. ? Reflect.ownKeys(inject)
  5534. : Object.keys(inject);
  5535. for (var i = 0; i < keys.length; i++) {
  5536. var key = keys[i];
  5537. // #6574 in case the inject object is observed...
  5538. if (key === '__ob__') { continue }
  5539. var provideKey = inject[key].from;
  5540. var source = vm;
  5541. while (source) {
  5542. if (source._provided && hasOwn(source._provided, provideKey)) {
  5543. result[key] = source._provided[provideKey];
  5544. break
  5545. }
  5546. source = source.$parent;
  5547. }
  5548. if (!source) {
  5549. if ('default' in inject[key]) {
  5550. var provideDefault = inject[key].default;
  5551. result[key] = typeof provideDefault === 'function'
  5552. ? provideDefault.call(vm)
  5553. : provideDefault;
  5554. } else if (true) {
  5555. warn(("Injection \"" + key + "\" not found"), vm);
  5556. }
  5557. }
  5558. }
  5559. return result
  5560. }
  5561. }
  5562. /* */
  5563. /**
  5564. * Runtime helper for resolving raw children VNodes into a slot object.
  5565. */
  5566. function resolveSlots (
  5567. children,
  5568. context
  5569. ) {
  5570. if (!children || !children.length) {
  5571. return {}
  5572. }
  5573. var slots = {};
  5574. for (var i = 0, l = children.length; i < l; i++) {
  5575. var child = children[i];
  5576. var data = child.data;
  5577. // remove slot attribute if the node is resolved as a Vue slot node
  5578. if (data && data.attrs && data.attrs.slot) {
  5579. delete data.attrs.slot;
  5580. }
  5581. // named slots should only be respected if the vnode was rendered in the
  5582. // same context.
  5583. if ((child.context === context || child.fnContext === context) &&
  5584. data && data.slot != null
  5585. ) {
  5586. var name = data.slot;
  5587. var slot = (slots[name] || (slots[name] = []));
  5588. if (child.tag === 'template') {
  5589. slot.push.apply(slot, child.children || []);
  5590. } else {
  5591. slot.push(child);
  5592. }
  5593. } else {
  5594. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  5595. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  5596. (slots['page'] || (slots['page'] = [])).push(child);
  5597. }else{
  5598. (slots.default || (slots.default = [])).push(child);
  5599. }
  5600. }
  5601. }
  5602. // ignore slots that contains only whitespace
  5603. for (var name$1 in slots) {
  5604. if (slots[name$1].every(isWhitespace)) {
  5605. delete slots[name$1];
  5606. }
  5607. }
  5608. return slots
  5609. }
  5610. function isWhitespace (node) {
  5611. return (node.isComment && !node.asyncFactory) || node.text === ' '
  5612. }
  5613. /* */
  5614. function normalizeScopedSlots (
  5615. slots,
  5616. normalSlots,
  5617. prevSlots
  5618. ) {
  5619. var res;
  5620. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  5621. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  5622. var key = slots && slots.$key;
  5623. if (!slots) {
  5624. res = {};
  5625. } else if (slots._normalized) {
  5626. // fast path 1: child component re-render only, parent did not change
  5627. return slots._normalized
  5628. } else if (
  5629. isStable &&
  5630. prevSlots &&
  5631. prevSlots !== emptyObject &&
  5632. key === prevSlots.$key &&
  5633. !hasNormalSlots &&
  5634. !prevSlots.$hasNormal
  5635. ) {
  5636. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  5637. // only need to normalize once
  5638. return prevSlots
  5639. } else {
  5640. res = {};
  5641. for (var key$1 in slots) {
  5642. if (slots[key$1] && key$1[0] !== '$') {
  5643. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  5644. }
  5645. }
  5646. }
  5647. // expose normal slots on scopedSlots
  5648. for (var key$2 in normalSlots) {
  5649. if (!(key$2 in res)) {
  5650. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  5651. }
  5652. }
  5653. // avoriaz seems to mock a non-extensible $scopedSlots object
  5654. // and when that is passed down this would cause an error
  5655. if (slots && Object.isExtensible(slots)) {
  5656. (slots)._normalized = res;
  5657. }
  5658. def(res, '$stable', isStable);
  5659. def(res, '$key', key);
  5660. def(res, '$hasNormal', hasNormalSlots);
  5661. return res
  5662. }
  5663. function normalizeScopedSlot(normalSlots, key, fn) {
  5664. var normalized = function () {
  5665. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  5666. res = res && typeof res === 'object' && !Array.isArray(res)
  5667. ? [res] // single vnode
  5668. : normalizeChildren(res);
  5669. return res && (
  5670. res.length === 0 ||
  5671. (res.length === 1 && res[0].isComment) // #9658
  5672. ) ? undefined
  5673. : res
  5674. };
  5675. // this is a slot using the new v-slot syntax without scope. although it is
  5676. // compiled as a scoped slot, render fn users would expect it to be present
  5677. // on this.$slots because the usage is semantically a normal slot.
  5678. if (fn.proxy) {
  5679. Object.defineProperty(normalSlots, key, {
  5680. get: normalized,
  5681. enumerable: true,
  5682. configurable: true
  5683. });
  5684. }
  5685. return normalized
  5686. }
  5687. function proxyNormalSlot(slots, key) {
  5688. return function () { return slots[key]; }
  5689. }
  5690. /* */
  5691. /**
  5692. * Runtime helper for rendering v-for lists.
  5693. */
  5694. function renderList (
  5695. val,
  5696. render
  5697. ) {
  5698. var ret, i, l, keys, key;
  5699. if (Array.isArray(val) || typeof val === 'string') {
  5700. ret = new Array(val.length);
  5701. for (i = 0, l = val.length; i < l; i++) {
  5702. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  5703. }
  5704. } else if (typeof val === 'number') {
  5705. ret = new Array(val);
  5706. for (i = 0; i < val; i++) {
  5707. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  5708. }
  5709. } else if (isObject(val)) {
  5710. if (hasSymbol && val[Symbol.iterator]) {
  5711. ret = [];
  5712. var iterator = val[Symbol.iterator]();
  5713. var result = iterator.next();
  5714. while (!result.done) {
  5715. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  5716. result = iterator.next();
  5717. }
  5718. } else {
  5719. keys = Object.keys(val);
  5720. ret = new Array(keys.length);
  5721. for (i = 0, l = keys.length; i < l; i++) {
  5722. key = keys[i];
  5723. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  5724. }
  5725. }
  5726. }
  5727. if (!isDef(ret)) {
  5728. ret = [];
  5729. }
  5730. (ret)._isVList = true;
  5731. return ret
  5732. }
  5733. /* */
  5734. /**
  5735. * Runtime helper for rendering <slot>
  5736. */
  5737. function renderSlot (
  5738. name,
  5739. fallback,
  5740. props,
  5741. bindObject
  5742. ) {
  5743. var scopedSlotFn = this.$scopedSlots[name];
  5744. var nodes;
  5745. if (scopedSlotFn) { // scoped slot
  5746. props = props || {};
  5747. if (bindObject) {
  5748. if ( true && !isObject(bindObject)) {
  5749. warn(
  5750. 'slot v-bind without argument expects an Object',
  5751. this
  5752. );
  5753. }
  5754. props = extend(extend({}, bindObject), props);
  5755. }
  5756. // fixed by xxxxxx app-plus scopedSlot
  5757. nodes = scopedSlotFn(props, this, props._i) || fallback;
  5758. } else {
  5759. nodes = this.$slots[name] || fallback;
  5760. }
  5761. var target = props && props.slot;
  5762. if (target) {
  5763. return this.$createElement('template', { slot: target }, nodes)
  5764. } else {
  5765. return nodes
  5766. }
  5767. }
  5768. /* */
  5769. /**
  5770. * Runtime helper for resolving filters
  5771. */
  5772. function resolveFilter (id) {
  5773. return resolveAsset(this.$options, 'filters', id, true) || identity
  5774. }
  5775. /* */
  5776. function isKeyNotMatch (expect, actual) {
  5777. if (Array.isArray(expect)) {
  5778. return expect.indexOf(actual) === -1
  5779. } else {
  5780. return expect !== actual
  5781. }
  5782. }
  5783. /**
  5784. * Runtime helper for checking keyCodes from config.
  5785. * exposed as Vue.prototype._k
  5786. * passing in eventKeyName as last argument separately for backwards compat
  5787. */
  5788. function checkKeyCodes (
  5789. eventKeyCode,
  5790. key,
  5791. builtInKeyCode,
  5792. eventKeyName,
  5793. builtInKeyName
  5794. ) {
  5795. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  5796. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  5797. return isKeyNotMatch(builtInKeyName, eventKeyName)
  5798. } else if (mappedKeyCode) {
  5799. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  5800. } else if (eventKeyName) {
  5801. return hyphenate(eventKeyName) !== key
  5802. }
  5803. }
  5804. /* */
  5805. /**
  5806. * Runtime helper for merging v-bind="object" into a VNode's data.
  5807. */
  5808. function bindObjectProps (
  5809. data,
  5810. tag,
  5811. value,
  5812. asProp,
  5813. isSync
  5814. ) {
  5815. if (value) {
  5816. if (!isObject(value)) {
  5817. true && warn(
  5818. 'v-bind without argument expects an Object or Array value',
  5819. this
  5820. );
  5821. } else {
  5822. if (Array.isArray(value)) {
  5823. value = toObject(value);
  5824. }
  5825. var hash;
  5826. var loop = function ( key ) {
  5827. if (
  5828. key === 'class' ||
  5829. key === 'style' ||
  5830. isReservedAttribute(key)
  5831. ) {
  5832. hash = data;
  5833. } else {
  5834. var type = data.attrs && data.attrs.type;
  5835. hash = asProp || config.mustUseProp(tag, type, key)
  5836. ? data.domProps || (data.domProps = {})
  5837. : data.attrs || (data.attrs = {});
  5838. }
  5839. var camelizedKey = camelize(key);
  5840. var hyphenatedKey = hyphenate(key);
  5841. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  5842. hash[key] = value[key];
  5843. if (isSync) {
  5844. var on = data.on || (data.on = {});
  5845. on[("update:" + key)] = function ($event) {
  5846. value[key] = $event;
  5847. };
  5848. }
  5849. }
  5850. };
  5851. for (var key in value) loop( key );
  5852. }
  5853. }
  5854. return data
  5855. }
  5856. /* */
  5857. /**
  5858. * Runtime helper for rendering static trees.
  5859. */
  5860. function renderStatic (
  5861. index,
  5862. isInFor
  5863. ) {
  5864. var cached = this._staticTrees || (this._staticTrees = []);
  5865. var tree = cached[index];
  5866. // if has already-rendered static tree and not inside v-for,
  5867. // we can reuse the same tree.
  5868. if (tree && !isInFor) {
  5869. return tree
  5870. }
  5871. // otherwise, render a fresh tree.
  5872. tree = cached[index] = this.$options.staticRenderFns[index].call(
  5873. this._renderProxy,
  5874. null,
  5875. this // for render fns generated for functional component templates
  5876. );
  5877. markStatic(tree, ("__static__" + index), false);
  5878. return tree
  5879. }
  5880. /**
  5881. * Runtime helper for v-once.
  5882. * Effectively it means marking the node as static with a unique key.
  5883. */
  5884. function markOnce (
  5885. tree,
  5886. index,
  5887. key
  5888. ) {
  5889. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  5890. return tree
  5891. }
  5892. function markStatic (
  5893. tree,
  5894. key,
  5895. isOnce
  5896. ) {
  5897. if (Array.isArray(tree)) {
  5898. for (var i = 0; i < tree.length; i++) {
  5899. if (tree[i] && typeof tree[i] !== 'string') {
  5900. markStaticNode(tree[i], (key + "_" + i), isOnce);
  5901. }
  5902. }
  5903. } else {
  5904. markStaticNode(tree, key, isOnce);
  5905. }
  5906. }
  5907. function markStaticNode (node, key, isOnce) {
  5908. node.isStatic = true;
  5909. node.key = key;
  5910. node.isOnce = isOnce;
  5911. }
  5912. /* */
  5913. function bindObjectListeners (data, value) {
  5914. if (value) {
  5915. if (!isPlainObject(value)) {
  5916. true && warn(
  5917. 'v-on without argument expects an Object value',
  5918. this
  5919. );
  5920. } else {
  5921. var on = data.on = data.on ? extend({}, data.on) : {};
  5922. for (var key in value) {
  5923. var existing = on[key];
  5924. var ours = value[key];
  5925. on[key] = existing ? [].concat(existing, ours) : ours;
  5926. }
  5927. }
  5928. }
  5929. return data
  5930. }
  5931. /* */
  5932. function resolveScopedSlots (
  5933. fns, // see flow/vnode
  5934. res,
  5935. // the following are added in 2.6
  5936. hasDynamicKeys,
  5937. contentHashKey
  5938. ) {
  5939. res = res || { $stable: !hasDynamicKeys };
  5940. for (var i = 0; i < fns.length; i++) {
  5941. var slot = fns[i];
  5942. if (Array.isArray(slot)) {
  5943. resolveScopedSlots(slot, res, hasDynamicKeys);
  5944. } else if (slot) {
  5945. // marker for reverse proxying v-slot without scope on this.$slots
  5946. if (slot.proxy) {
  5947. slot.fn.proxy = true;
  5948. }
  5949. res[slot.key] = slot.fn;
  5950. }
  5951. }
  5952. if (contentHashKey) {
  5953. (res).$key = contentHashKey;
  5954. }
  5955. return res
  5956. }
  5957. /* */
  5958. function bindDynamicKeys (baseObj, values) {
  5959. for (var i = 0; i < values.length; i += 2) {
  5960. var key = values[i];
  5961. if (typeof key === 'string' && key) {
  5962. baseObj[values[i]] = values[i + 1];
  5963. } else if ( true && key !== '' && key !== null) {
  5964. // null is a special value for explicitly removing a binding
  5965. warn(
  5966. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  5967. this
  5968. );
  5969. }
  5970. }
  5971. return baseObj
  5972. }
  5973. // helper to dynamically append modifier runtime markers to event names.
  5974. // ensure only append when value is already string, otherwise it will be cast
  5975. // to string and cause the type check to miss.
  5976. function prependModifier (value, symbol) {
  5977. return typeof value === 'string' ? symbol + value : value
  5978. }
  5979. /* */
  5980. function installRenderHelpers (target) {
  5981. target._o = markOnce;
  5982. target._n = toNumber;
  5983. target._s = toString;
  5984. target._l = renderList;
  5985. target._t = renderSlot;
  5986. target._q = looseEqual;
  5987. target._i = looseIndexOf;
  5988. target._m = renderStatic;
  5989. target._f = resolveFilter;
  5990. target._k = checkKeyCodes;
  5991. target._b = bindObjectProps;
  5992. target._v = createTextVNode;
  5993. target._e = createEmptyVNode;
  5994. target._u = resolveScopedSlots;
  5995. target._g = bindObjectListeners;
  5996. target._d = bindDynamicKeys;
  5997. target._p = prependModifier;
  5998. }
  5999. /* */
  6000. function FunctionalRenderContext (
  6001. data,
  6002. props,
  6003. children,
  6004. parent,
  6005. Ctor
  6006. ) {
  6007. var this$1 = this;
  6008. var options = Ctor.options;
  6009. // ensure the createElement function in functional components
  6010. // gets a unique context - this is necessary for correct named slot check
  6011. var contextVm;
  6012. if (hasOwn(parent, '_uid')) {
  6013. contextVm = Object.create(parent);
  6014. // $flow-disable-line
  6015. contextVm._original = parent;
  6016. } else {
  6017. // the context vm passed in is a functional context as well.
  6018. // in this case we want to make sure we are able to get a hold to the
  6019. // real context instance.
  6020. contextVm = parent;
  6021. // $flow-disable-line
  6022. parent = parent._original;
  6023. }
  6024. var isCompiled = isTrue(options._compiled);
  6025. var needNormalization = !isCompiled;
  6026. this.data = data;
  6027. this.props = props;
  6028. this.children = children;
  6029. this.parent = parent;
  6030. this.listeners = data.on || emptyObject;
  6031. this.injections = resolveInject(options.inject, parent);
  6032. this.slots = function () {
  6033. if (!this$1.$slots) {
  6034. normalizeScopedSlots(
  6035. data.scopedSlots,
  6036. this$1.$slots = resolveSlots(children, parent)
  6037. );
  6038. }
  6039. return this$1.$slots
  6040. };
  6041. Object.defineProperty(this, 'scopedSlots', ({
  6042. enumerable: true,
  6043. get: function get () {
  6044. return normalizeScopedSlots(data.scopedSlots, this.slots())
  6045. }
  6046. }));
  6047. // support for compiled functional template
  6048. if (isCompiled) {
  6049. // exposing $options for renderStatic()
  6050. this.$options = options;
  6051. // pre-resolve slots for renderSlot()
  6052. this.$slots = this.slots();
  6053. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  6054. }
  6055. if (options._scopeId) {
  6056. this._c = function (a, b, c, d) {
  6057. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  6058. if (vnode && !Array.isArray(vnode)) {
  6059. vnode.fnScopeId = options._scopeId;
  6060. vnode.fnContext = parent;
  6061. }
  6062. return vnode
  6063. };
  6064. } else {
  6065. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  6066. }
  6067. }
  6068. installRenderHelpers(FunctionalRenderContext.prototype);
  6069. function createFunctionalComponent (
  6070. Ctor,
  6071. propsData,
  6072. data,
  6073. contextVm,
  6074. children
  6075. ) {
  6076. var options = Ctor.options;
  6077. var props = {};
  6078. var propOptions = options.props;
  6079. if (isDef(propOptions)) {
  6080. for (var key in propOptions) {
  6081. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  6082. }
  6083. } else {
  6084. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  6085. if (isDef(data.props)) { mergeProps(props, data.props); }
  6086. }
  6087. var renderContext = new FunctionalRenderContext(
  6088. data,
  6089. props,
  6090. children,
  6091. contextVm,
  6092. Ctor
  6093. );
  6094. var vnode = options.render.call(null, renderContext._c, renderContext);
  6095. if (vnode instanceof VNode) {
  6096. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  6097. } else if (Array.isArray(vnode)) {
  6098. var vnodes = normalizeChildren(vnode) || [];
  6099. var res = new Array(vnodes.length);
  6100. for (var i = 0; i < vnodes.length; i++) {
  6101. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  6102. }
  6103. return res
  6104. }
  6105. }
  6106. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  6107. // #7817 clone node before setting fnContext, otherwise if the node is reused
  6108. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  6109. // that should not be matched to match.
  6110. var clone = cloneVNode(vnode);
  6111. clone.fnContext = contextVm;
  6112. clone.fnOptions = options;
  6113. if (true) {
  6114. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  6115. }
  6116. if (data.slot) {
  6117. (clone.data || (clone.data = {})).slot = data.slot;
  6118. }
  6119. return clone
  6120. }
  6121. function mergeProps (to, from) {
  6122. for (var key in from) {
  6123. to[camelize(key)] = from[key];
  6124. }
  6125. }
  6126. /* */
  6127. /* */
  6128. /* */
  6129. /* */
  6130. // inline hooks to be invoked on component VNodes during patch
  6131. var componentVNodeHooks = {
  6132. init: function init (vnode, hydrating) {
  6133. if (
  6134. vnode.componentInstance &&
  6135. !vnode.componentInstance._isDestroyed &&
  6136. vnode.data.keepAlive
  6137. ) {
  6138. // kept-alive components, treat as a patch
  6139. var mountedNode = vnode; // work around flow
  6140. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  6141. } else {
  6142. var child = vnode.componentInstance = createComponentInstanceForVnode(
  6143. vnode,
  6144. activeInstance
  6145. );
  6146. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  6147. }
  6148. },
  6149. prepatch: function prepatch (oldVnode, vnode) {
  6150. var options = vnode.componentOptions;
  6151. var child = vnode.componentInstance = oldVnode.componentInstance;
  6152. updateChildComponent(
  6153. child,
  6154. options.propsData, // updated props
  6155. options.listeners, // updated listeners
  6156. vnode, // new parent vnode
  6157. options.children // new children
  6158. );
  6159. },
  6160. insert: function insert (vnode) {
  6161. var context = vnode.context;
  6162. var componentInstance = vnode.componentInstance;
  6163. if (!componentInstance._isMounted) {
  6164. callHook(componentInstance, 'onServiceCreated');
  6165. callHook(componentInstance, 'onServiceAttached');
  6166. componentInstance._isMounted = true;
  6167. callHook(componentInstance, 'mounted');
  6168. }
  6169. if (vnode.data.keepAlive) {
  6170. if (context._isMounted) {
  6171. // vue-router#1212
  6172. // During updates, a kept-alive component's child components may
  6173. // change, so directly walking the tree here may call activated hooks
  6174. // on incorrect children. Instead we push them into a queue which will
  6175. // be processed after the whole patch process ended.
  6176. queueActivatedComponent(componentInstance);
  6177. } else {
  6178. activateChildComponent(componentInstance, true /* direct */);
  6179. }
  6180. }
  6181. },
  6182. destroy: function destroy (vnode) {
  6183. var componentInstance = vnode.componentInstance;
  6184. if (!componentInstance._isDestroyed) {
  6185. if (!vnode.data.keepAlive) {
  6186. componentInstance.$destroy();
  6187. } else {
  6188. deactivateChildComponent(componentInstance, true /* direct */);
  6189. }
  6190. }
  6191. }
  6192. };
  6193. var hooksToMerge = Object.keys(componentVNodeHooks);
  6194. function createComponent (
  6195. Ctor,
  6196. data,
  6197. context,
  6198. children,
  6199. tag
  6200. ) {
  6201. if (isUndef(Ctor)) {
  6202. return
  6203. }
  6204. var baseCtor = context.$options._base;
  6205. // plain options object: turn it into a constructor
  6206. if (isObject(Ctor)) {
  6207. Ctor = baseCtor.extend(Ctor);
  6208. }
  6209. // if at this stage it's not a constructor or an async component factory,
  6210. // reject.
  6211. if (typeof Ctor !== 'function') {
  6212. if (true) {
  6213. warn(("Invalid Component definition: " + (String(Ctor))), context);
  6214. }
  6215. return
  6216. }
  6217. // async component
  6218. var asyncFactory;
  6219. if (isUndef(Ctor.cid)) {
  6220. asyncFactory = Ctor;
  6221. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  6222. if (Ctor === undefined) {
  6223. // return a placeholder node for async component, which is rendered
  6224. // as a comment node but preserves all the raw information for the node.
  6225. // the information will be used for async server-rendering and hydration.
  6226. return createAsyncPlaceholder(
  6227. asyncFactory,
  6228. data,
  6229. context,
  6230. children,
  6231. tag
  6232. )
  6233. }
  6234. }
  6235. data = data || {};
  6236. // resolve constructor options in case global mixins are applied after
  6237. // component constructor creation
  6238. resolveConstructorOptions(Ctor);
  6239. // transform component v-model data into props & events
  6240. if (isDef(data.model)) {
  6241. transformModel(Ctor.options, data);
  6242. }
  6243. // extract props
  6244. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  6245. // functional component
  6246. if (isTrue(Ctor.options.functional)) {
  6247. return createFunctionalComponent(Ctor, propsData, data, context, children)
  6248. }
  6249. // extract listeners, since these needs to be treated as
  6250. // child component listeners instead of DOM listeners
  6251. var listeners = data.on;
  6252. // replace with listeners with .native modifier
  6253. // so it gets processed during parent component patch.
  6254. data.on = data.nativeOn;
  6255. if (isTrue(Ctor.options.abstract)) {
  6256. // abstract components do not keep anything
  6257. // other than props & listeners & slot
  6258. // work around flow
  6259. var slot = data.slot;
  6260. data = {};
  6261. if (slot) {
  6262. data.slot = slot;
  6263. }
  6264. }
  6265. // install component management hooks onto the placeholder node
  6266. installComponentHooks(data);
  6267. // return a placeholder vnode
  6268. var name = Ctor.options.name || tag;
  6269. var vnode = new VNode(
  6270. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  6271. data, undefined, undefined, undefined, context,
  6272. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  6273. asyncFactory
  6274. );
  6275. return vnode
  6276. }
  6277. function createComponentInstanceForVnode (
  6278. vnode, // we know it's MountedComponentVNode but flow doesn't
  6279. parent // activeInstance in lifecycle state
  6280. ) {
  6281. var options = {
  6282. _isComponent: true,
  6283. _parentVnode: vnode,
  6284. parent: parent
  6285. };
  6286. // check inline-template render functions
  6287. var inlineTemplate = vnode.data.inlineTemplate;
  6288. if (isDef(inlineTemplate)) {
  6289. options.render = inlineTemplate.render;
  6290. options.staticRenderFns = inlineTemplate.staticRenderFns;
  6291. }
  6292. return new vnode.componentOptions.Ctor(options)
  6293. }
  6294. function installComponentHooks (data) {
  6295. var hooks = data.hook || (data.hook = {});
  6296. for (var i = 0; i < hooksToMerge.length; i++) {
  6297. var key = hooksToMerge[i];
  6298. var existing = hooks[key];
  6299. var toMerge = componentVNodeHooks[key];
  6300. if (existing !== toMerge && !(existing && existing._merged)) {
  6301. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  6302. }
  6303. }
  6304. }
  6305. function mergeHook$1 (f1, f2) {
  6306. var merged = function (a, b) {
  6307. // flow complains about extra args which is why we use any
  6308. f1(a, b);
  6309. f2(a, b);
  6310. };
  6311. merged._merged = true;
  6312. return merged
  6313. }
  6314. // transform component v-model info (value and callback) into
  6315. // prop and event handler respectively.
  6316. function transformModel (options, data) {
  6317. var prop = (options.model && options.model.prop) || 'value';
  6318. var event = (options.model && options.model.event) || 'input'
  6319. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  6320. var on = data.on || (data.on = {});
  6321. var existing = on[event];
  6322. var callback = data.model.callback;
  6323. if (isDef(existing)) {
  6324. if (
  6325. Array.isArray(existing)
  6326. ? existing.indexOf(callback) === -1
  6327. : existing !== callback
  6328. ) {
  6329. on[event] = [callback].concat(existing);
  6330. }
  6331. } else {
  6332. on[event] = callback;
  6333. }
  6334. }
  6335. /* */
  6336. var SIMPLE_NORMALIZE = 1;
  6337. var ALWAYS_NORMALIZE = 2;
  6338. // wrapper function for providing a more flexible interface
  6339. // without getting yelled at by flow
  6340. function createElement (
  6341. context,
  6342. tag,
  6343. data,
  6344. children,
  6345. normalizationType,
  6346. alwaysNormalize
  6347. ) {
  6348. if (Array.isArray(data) || isPrimitive(data)) {
  6349. normalizationType = children;
  6350. children = data;
  6351. data = undefined;
  6352. }
  6353. if (isTrue(alwaysNormalize)) {
  6354. normalizationType = ALWAYS_NORMALIZE;
  6355. }
  6356. return _createElement(context, tag, data, children, normalizationType)
  6357. }
  6358. function _createElement (
  6359. context,
  6360. tag,
  6361. data,
  6362. children,
  6363. normalizationType
  6364. ) {
  6365. if (isDef(data) && isDef((data).__ob__)) {
  6366. true && warn(
  6367. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  6368. 'Always create fresh vnode data objects in each render!',
  6369. context
  6370. );
  6371. return createEmptyVNode()
  6372. }
  6373. // object syntax in v-bind
  6374. if (isDef(data) && isDef(data.is)) {
  6375. tag = data.is;
  6376. }
  6377. if (!tag) {
  6378. // in case of component :is set to falsy value
  6379. return createEmptyVNode()
  6380. }
  6381. // warn against non-primitive key
  6382. if ( true &&
  6383. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  6384. ) {
  6385. {
  6386. warn(
  6387. 'Avoid using non-primitive value as key, ' +
  6388. 'use string/number value instead.',
  6389. context
  6390. );
  6391. }
  6392. }
  6393. // support single function children as default scoped slot
  6394. if (Array.isArray(children) &&
  6395. typeof children[0] === 'function'
  6396. ) {
  6397. data = data || {};
  6398. data.scopedSlots = { default: children[0] };
  6399. children.length = 0;
  6400. }
  6401. if (normalizationType === ALWAYS_NORMALIZE) {
  6402. children = normalizeChildren(children);
  6403. } else if (normalizationType === SIMPLE_NORMALIZE) {
  6404. children = simpleNormalizeChildren(children);
  6405. }
  6406. var vnode, ns;
  6407. if (typeof tag === 'string') {
  6408. var Ctor;
  6409. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  6410. if (config.isReservedTag(tag)) {
  6411. // platform built-in elements
  6412. if ( true && isDef(data) && isDef(data.nativeOn)) {
  6413. warn(
  6414. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  6415. context
  6416. );
  6417. }
  6418. vnode = new VNode(
  6419. config.parsePlatformTagName(tag), data, children,
  6420. undefined, undefined, context
  6421. );
  6422. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  6423. // component
  6424. vnode = createComponent(Ctor, data, context, children, tag);
  6425. } else {
  6426. // unknown or unlisted namespaced elements
  6427. // check at runtime because it may get assigned a namespace when its
  6428. // parent normalizes children
  6429. vnode = new VNode(
  6430. tag, data, children,
  6431. undefined, undefined, context
  6432. );
  6433. }
  6434. } else {
  6435. // direct component options / constructor
  6436. vnode = createComponent(tag, data, context, children);
  6437. }
  6438. if (Array.isArray(vnode)) {
  6439. return vnode
  6440. } else if (isDef(vnode)) {
  6441. if (isDef(ns)) { applyNS(vnode, ns); }
  6442. if (isDef(data)) { registerDeepBindings(data); }
  6443. return vnode
  6444. } else {
  6445. return createEmptyVNode()
  6446. }
  6447. }
  6448. function applyNS (vnode, ns, force) {
  6449. vnode.ns = ns;
  6450. if (vnode.tag === 'foreignObject') {
  6451. // use default namespace inside foreignObject
  6452. ns = undefined;
  6453. force = true;
  6454. }
  6455. if (isDef(vnode.children)) {
  6456. for (var i = 0, l = vnode.children.length; i < l; i++) {
  6457. var child = vnode.children[i];
  6458. if (isDef(child.tag) && (
  6459. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  6460. applyNS(child, ns, force);
  6461. }
  6462. }
  6463. }
  6464. }
  6465. // ref #5318
  6466. // necessary to ensure parent re-render when deep bindings like :style and
  6467. // :class are used on slot nodes
  6468. function registerDeepBindings (data) {
  6469. if (isObject(data.style)) {
  6470. traverse(data.style);
  6471. }
  6472. if (isObject(data.class)) {
  6473. traverse(data.class);
  6474. }
  6475. }
  6476. /* */
  6477. function initRender (vm) {
  6478. vm._vnode = null; // the root of the child tree
  6479. vm._staticTrees = null; // v-once cached trees
  6480. var options = vm.$options;
  6481. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  6482. var renderContext = parentVnode && parentVnode.context;
  6483. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  6484. vm.$scopedSlots = emptyObject;
  6485. // bind the createElement fn to this instance
  6486. // so that we get proper render context inside it.
  6487. // args order: tag, data, children, normalizationType, alwaysNormalize
  6488. // internal version is used by render functions compiled from templates
  6489. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  6490. // normalization is always applied for the public version, used in
  6491. // user-written render functions.
  6492. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  6493. // $attrs & $listeners are exposed for easier HOC creation.
  6494. // they need to be reactive so that HOCs using them are always updated
  6495. var parentData = parentVnode && parentVnode.data;
  6496. /* istanbul ignore else */
  6497. if (true) {
  6498. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  6499. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  6500. }, true);
  6501. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  6502. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  6503. }, true);
  6504. } else {}
  6505. }
  6506. var currentRenderingInstance = null;
  6507. function renderMixin (Vue) {
  6508. // install runtime convenience helpers
  6509. installRenderHelpers(Vue.prototype);
  6510. Vue.prototype.$nextTick = function (fn) {
  6511. return nextTick(fn, this)
  6512. };
  6513. Vue.prototype._render = function () {
  6514. var vm = this;
  6515. var ref = vm.$options;
  6516. var render = ref.render;
  6517. var _parentVnode = ref._parentVnode;
  6518. if (_parentVnode) {
  6519. vm.$scopedSlots = normalizeScopedSlots(
  6520. _parentVnode.data.scopedSlots,
  6521. vm.$slots,
  6522. vm.$scopedSlots
  6523. );
  6524. }
  6525. // set parent vnode. this allows render functions to have access
  6526. // to the data on the placeholder node.
  6527. vm.$vnode = _parentVnode;
  6528. // render self
  6529. var vnode;
  6530. try {
  6531. // There's no need to maintain a stack because all render fns are called
  6532. // separately from one another. Nested component's render fns are called
  6533. // when parent component is patched.
  6534. currentRenderingInstance = vm;
  6535. vnode = render.call(vm._renderProxy, vm.$createElement);
  6536. } catch (e) {
  6537. handleError(e, vm, "render");
  6538. // return error render result,
  6539. // or previous vnode to prevent render error causing blank component
  6540. /* istanbul ignore else */
  6541. if ( true && vm.$options.renderError) {
  6542. try {
  6543. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  6544. } catch (e) {
  6545. handleError(e, vm, "renderError");
  6546. vnode = vm._vnode;
  6547. }
  6548. } else {
  6549. vnode = vm._vnode;
  6550. }
  6551. } finally {
  6552. currentRenderingInstance = null;
  6553. }
  6554. // if the returned array contains only a single node, allow it
  6555. if (Array.isArray(vnode) && vnode.length === 1) {
  6556. vnode = vnode[0];
  6557. }
  6558. // return empty vnode in case the render function errored out
  6559. if (!(vnode instanceof VNode)) {
  6560. if ( true && Array.isArray(vnode)) {
  6561. warn(
  6562. 'Multiple root nodes returned from render function. Render function ' +
  6563. 'should return a single root node.',
  6564. vm
  6565. );
  6566. }
  6567. vnode = createEmptyVNode();
  6568. }
  6569. // set parent
  6570. vnode.parent = _parentVnode;
  6571. return vnode
  6572. };
  6573. }
  6574. /* */
  6575. function ensureCtor (comp, base) {
  6576. if (
  6577. comp.__esModule ||
  6578. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  6579. ) {
  6580. comp = comp.default;
  6581. }
  6582. return isObject(comp)
  6583. ? base.extend(comp)
  6584. : comp
  6585. }
  6586. function createAsyncPlaceholder (
  6587. factory,
  6588. data,
  6589. context,
  6590. children,
  6591. tag
  6592. ) {
  6593. var node = createEmptyVNode();
  6594. node.asyncFactory = factory;
  6595. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  6596. return node
  6597. }
  6598. function resolveAsyncComponent (
  6599. factory,
  6600. baseCtor
  6601. ) {
  6602. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  6603. return factory.errorComp
  6604. }
  6605. if (isDef(factory.resolved)) {
  6606. return factory.resolved
  6607. }
  6608. var owner = currentRenderingInstance;
  6609. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  6610. // already pending
  6611. factory.owners.push(owner);
  6612. }
  6613. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  6614. return factory.loadingComp
  6615. }
  6616. if (owner && !isDef(factory.owners)) {
  6617. var owners = factory.owners = [owner];
  6618. var sync = true;
  6619. var timerLoading = null;
  6620. var timerTimeout = null
  6621. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  6622. var forceRender = function (renderCompleted) {
  6623. for (var i = 0, l = owners.length; i < l; i++) {
  6624. (owners[i]).$forceUpdate();
  6625. }
  6626. if (renderCompleted) {
  6627. owners.length = 0;
  6628. if (timerLoading !== null) {
  6629. clearTimeout(timerLoading);
  6630. timerLoading = null;
  6631. }
  6632. if (timerTimeout !== null) {
  6633. clearTimeout(timerTimeout);
  6634. timerTimeout = null;
  6635. }
  6636. }
  6637. };
  6638. var resolve = once(function (res) {
  6639. // cache resolved
  6640. factory.resolved = ensureCtor(res, baseCtor);
  6641. // invoke callbacks only if this is not a synchronous resolve
  6642. // (async resolves are shimmed as synchronous during SSR)
  6643. if (!sync) {
  6644. forceRender(true);
  6645. } else {
  6646. owners.length = 0;
  6647. }
  6648. });
  6649. var reject = once(function (reason) {
  6650. true && warn(
  6651. "Failed to resolve async component: " + (String(factory)) +
  6652. (reason ? ("\nReason: " + reason) : '')
  6653. );
  6654. if (isDef(factory.errorComp)) {
  6655. factory.error = true;
  6656. forceRender(true);
  6657. }
  6658. });
  6659. var res = factory(resolve, reject);
  6660. if (isObject(res)) {
  6661. if (isPromise(res)) {
  6662. // () => Promise
  6663. if (isUndef(factory.resolved)) {
  6664. res.then(resolve, reject);
  6665. }
  6666. } else if (isPromise(res.component)) {
  6667. res.component.then(resolve, reject);
  6668. if (isDef(res.error)) {
  6669. factory.errorComp = ensureCtor(res.error, baseCtor);
  6670. }
  6671. if (isDef(res.loading)) {
  6672. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  6673. if (res.delay === 0) {
  6674. factory.loading = true;
  6675. } else {
  6676. timerLoading = setTimeout(function () {
  6677. timerLoading = null;
  6678. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  6679. factory.loading = true;
  6680. forceRender(false);
  6681. }
  6682. }, res.delay || 200);
  6683. }
  6684. }
  6685. if (isDef(res.timeout)) {
  6686. timerTimeout = setTimeout(function () {
  6687. timerTimeout = null;
  6688. if (isUndef(factory.resolved)) {
  6689. reject(
  6690. true
  6691. ? ("timeout (" + (res.timeout) + "ms)")
  6692. : undefined
  6693. );
  6694. }
  6695. }, res.timeout);
  6696. }
  6697. }
  6698. }
  6699. sync = false;
  6700. // return in case resolved synchronously
  6701. return factory.loading
  6702. ? factory.loadingComp
  6703. : factory.resolved
  6704. }
  6705. }
  6706. /* */
  6707. function isAsyncPlaceholder (node) {
  6708. return node.isComment && node.asyncFactory
  6709. }
  6710. /* */
  6711. function getFirstComponentChild (children) {
  6712. if (Array.isArray(children)) {
  6713. for (var i = 0; i < children.length; i++) {
  6714. var c = children[i];
  6715. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  6716. return c
  6717. }
  6718. }
  6719. }
  6720. }
  6721. /* */
  6722. /* */
  6723. function initEvents (vm) {
  6724. vm._events = Object.create(null);
  6725. vm._hasHookEvent = false;
  6726. // init parent attached events
  6727. var listeners = vm.$options._parentListeners;
  6728. if (listeners) {
  6729. updateComponentListeners(vm, listeners);
  6730. }
  6731. }
  6732. var target;
  6733. function add (event, fn) {
  6734. target.$on(event, fn);
  6735. }
  6736. function remove$1 (event, fn) {
  6737. target.$off(event, fn);
  6738. }
  6739. function createOnceHandler (event, fn) {
  6740. var _target = target;
  6741. return function onceHandler () {
  6742. var res = fn.apply(null, arguments);
  6743. if (res !== null) {
  6744. _target.$off(event, onceHandler);
  6745. }
  6746. }
  6747. }
  6748. function updateComponentListeners (
  6749. vm,
  6750. listeners,
  6751. oldListeners
  6752. ) {
  6753. target = vm;
  6754. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  6755. target = undefined;
  6756. }
  6757. function eventsMixin (Vue) {
  6758. var hookRE = /^hook:/;
  6759. Vue.prototype.$on = function (event, fn) {
  6760. var vm = this;
  6761. if (Array.isArray(event)) {
  6762. for (var i = 0, l = event.length; i < l; i++) {
  6763. vm.$on(event[i], fn);
  6764. }
  6765. } else {
  6766. (vm._events[event] || (vm._events[event] = [])).push(fn);
  6767. // optimize hook:event cost by using a boolean flag marked at registration
  6768. // instead of a hash lookup
  6769. if (hookRE.test(event)) {
  6770. vm._hasHookEvent = true;
  6771. }
  6772. }
  6773. return vm
  6774. };
  6775. Vue.prototype.$once = function (event, fn) {
  6776. var vm = this;
  6777. function on () {
  6778. vm.$off(event, on);
  6779. fn.apply(vm, arguments);
  6780. }
  6781. on.fn = fn;
  6782. vm.$on(event, on);
  6783. return vm
  6784. };
  6785. Vue.prototype.$off = function (event, fn) {
  6786. var vm = this;
  6787. // all
  6788. if (!arguments.length) {
  6789. vm._events = Object.create(null);
  6790. return vm
  6791. }
  6792. // array of events
  6793. if (Array.isArray(event)) {
  6794. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  6795. vm.$off(event[i$1], fn);
  6796. }
  6797. return vm
  6798. }
  6799. // specific event
  6800. var cbs = vm._events[event];
  6801. if (!cbs) {
  6802. return vm
  6803. }
  6804. if (!fn) {
  6805. vm._events[event] = null;
  6806. return vm
  6807. }
  6808. // specific handler
  6809. var cb;
  6810. var i = cbs.length;
  6811. while (i--) {
  6812. cb = cbs[i];
  6813. if (cb === fn || cb.fn === fn) {
  6814. cbs.splice(i, 1);
  6815. break
  6816. }
  6817. }
  6818. return vm
  6819. };
  6820. Vue.prototype.$emit = function (event) {
  6821. var vm = this;
  6822. if (true) {
  6823. var lowerCaseEvent = event.toLowerCase();
  6824. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  6825. tip(
  6826. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  6827. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  6828. "Note that HTML attributes are case-insensitive and you cannot use " +
  6829. "v-on to listen to camelCase events when using in-DOM templates. " +
  6830. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  6831. );
  6832. }
  6833. }
  6834. var cbs = vm._events[event];
  6835. if (cbs) {
  6836. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  6837. var args = toArray(arguments, 1);
  6838. var info = "event handler for \"" + event + "\"";
  6839. for (var i = 0, l = cbs.length; i < l; i++) {
  6840. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  6841. }
  6842. }
  6843. return vm
  6844. };
  6845. }
  6846. /* */
  6847. var activeInstance = null;
  6848. var isUpdatingChildComponent = false;
  6849. function setActiveInstance(vm) {
  6850. var prevActiveInstance = activeInstance;
  6851. activeInstance = vm;
  6852. return function () {
  6853. activeInstance = prevActiveInstance;
  6854. }
  6855. }
  6856. function initLifecycle (vm) {
  6857. var options = vm.$options;
  6858. // locate first non-abstract parent
  6859. var parent = options.parent;
  6860. if (parent && !options.abstract) {
  6861. while (parent.$options.abstract && parent.$parent) {
  6862. parent = parent.$parent;
  6863. }
  6864. parent.$children.push(vm);
  6865. }
  6866. vm.$parent = parent;
  6867. vm.$root = parent ? parent.$root : vm;
  6868. vm.$children = [];
  6869. vm.$refs = {};
  6870. vm._watcher = null;
  6871. vm._inactive = null;
  6872. vm._directInactive = false;
  6873. vm._isMounted = false;
  6874. vm._isDestroyed = false;
  6875. vm._isBeingDestroyed = false;
  6876. }
  6877. function lifecycleMixin (Vue) {
  6878. Vue.prototype._update = function (vnode, hydrating) {
  6879. var vm = this;
  6880. var prevEl = vm.$el;
  6881. var prevVnode = vm._vnode;
  6882. var restoreActiveInstance = setActiveInstance(vm);
  6883. vm._vnode = vnode;
  6884. // Vue.prototype.__patch__ is injected in entry points
  6885. // based on the rendering backend used.
  6886. if (!prevVnode) {
  6887. // initial render
  6888. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  6889. } else {
  6890. // updates
  6891. vm.$el = vm.__patch__(prevVnode, vnode);
  6892. }
  6893. restoreActiveInstance();
  6894. // update __vue__ reference
  6895. if (prevEl) {
  6896. prevEl.__vue__ = null;
  6897. }
  6898. if (vm.$el) {
  6899. vm.$el.__vue__ = vm;
  6900. }
  6901. // if parent is an HOC, update its $el as well
  6902. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  6903. vm.$parent.$el = vm.$el;
  6904. }
  6905. // updated hook is called by the scheduler to ensure that children are
  6906. // updated in a parent's updated hook.
  6907. };
  6908. Vue.prototype.$forceUpdate = function () {
  6909. var vm = this;
  6910. if (vm._watcher) {
  6911. vm._watcher.update();
  6912. }
  6913. };
  6914. Vue.prototype.$destroy = function () {
  6915. var vm = this;
  6916. if (vm._isBeingDestroyed) {
  6917. return
  6918. }
  6919. callHook(vm, 'beforeDestroy');
  6920. vm._isBeingDestroyed = true;
  6921. // remove self from parent
  6922. var parent = vm.$parent;
  6923. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  6924. remove(parent.$children, vm);
  6925. }
  6926. // teardown watchers
  6927. if (vm._watcher) {
  6928. vm._watcher.teardown();
  6929. }
  6930. var i = vm._watchers.length;
  6931. while (i--) {
  6932. vm._watchers[i].teardown();
  6933. }
  6934. // remove reference from data ob
  6935. // frozen object may not have observer.
  6936. if (vm._data.__ob__) {
  6937. vm._data.__ob__.vmCount--;
  6938. }
  6939. // call the last hook...
  6940. vm._isDestroyed = true;
  6941. // invoke destroy hooks on current rendered tree
  6942. vm.__patch__(vm._vnode, null);
  6943. // fire destroyed hook
  6944. callHook(vm, 'destroyed');
  6945. // turn off all instance listeners.
  6946. vm.$off();
  6947. // remove __vue__ reference
  6948. if (vm.$el) {
  6949. vm.$el.__vue__ = null;
  6950. }
  6951. // release circular reference (#6759)
  6952. if (vm.$vnode) {
  6953. vm.$vnode.parent = null;
  6954. }
  6955. };
  6956. }
  6957. function updateChildComponent (
  6958. vm,
  6959. propsData,
  6960. listeners,
  6961. parentVnode,
  6962. renderChildren
  6963. ) {
  6964. if (true) {
  6965. isUpdatingChildComponent = true;
  6966. }
  6967. // determine whether component has slot children
  6968. // we need to do this before overwriting $options._renderChildren.
  6969. // check if there are dynamic scopedSlots (hand-written or compiled but with
  6970. // dynamic slot names). Static scoped slots compiled from template has the
  6971. // "$stable" marker.
  6972. var newScopedSlots = parentVnode.data.scopedSlots;
  6973. var oldScopedSlots = vm.$scopedSlots;
  6974. var hasDynamicScopedSlot = !!(
  6975. (newScopedSlots && !newScopedSlots.$stable) ||
  6976. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  6977. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  6978. );
  6979. // Any static slot children from the parent may have changed during parent's
  6980. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  6981. // update is necessary to ensure correctness.
  6982. var needsForceUpdate = !!(
  6983. renderChildren || // has new static slots
  6984. vm.$options._renderChildren || // has old static slots
  6985. hasDynamicScopedSlot
  6986. );
  6987. vm.$options._parentVnode = parentVnode;
  6988. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  6989. if (vm._vnode) { // update child tree's parent
  6990. vm._vnode.parent = parentVnode;
  6991. }
  6992. vm.$options._renderChildren = renderChildren;
  6993. // update $attrs and $listeners hash
  6994. // these are also reactive so they may trigger child update if the child
  6995. // used them during render
  6996. vm.$attrs = parentVnode.data.attrs || emptyObject;
  6997. vm.$listeners = listeners || emptyObject;
  6998. // update props
  6999. if (propsData && vm.$options.props) {
  7000. toggleObserving(false);
  7001. var props = vm._props;
  7002. var propKeys = vm.$options._propKeys || [];
  7003. for (var i = 0; i < propKeys.length; i++) {
  7004. var key = propKeys[i];
  7005. var propOptions = vm.$options.props; // wtf flow?
  7006. props[key] = validateProp(key, propOptions, propsData, vm);
  7007. }
  7008. toggleObserving(true);
  7009. // keep a copy of raw propsData
  7010. vm.$options.propsData = propsData;
  7011. }
  7012. // fixed by xxxxxx update properties(mp runtime)
  7013. vm._$updateProperties && vm._$updateProperties(vm);
  7014. // update listeners
  7015. listeners = listeners || emptyObject;
  7016. var oldListeners = vm.$options._parentListeners;
  7017. vm.$options._parentListeners = listeners;
  7018. updateComponentListeners(vm, listeners, oldListeners);
  7019. // resolve slots + force update if has children
  7020. if (needsForceUpdate) {
  7021. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  7022. vm.$forceUpdate();
  7023. }
  7024. if (true) {
  7025. isUpdatingChildComponent = false;
  7026. }
  7027. }
  7028. function isInInactiveTree (vm) {
  7029. while (vm && (vm = vm.$parent)) {
  7030. if (vm._inactive) { return true }
  7031. }
  7032. return false
  7033. }
  7034. function activateChildComponent (vm, direct) {
  7035. if (direct) {
  7036. vm._directInactive = false;
  7037. if (isInInactiveTree(vm)) {
  7038. return
  7039. }
  7040. } else if (vm._directInactive) {
  7041. return
  7042. }
  7043. if (vm._inactive || vm._inactive === null) {
  7044. vm._inactive = false;
  7045. for (var i = 0; i < vm.$children.length; i++) {
  7046. activateChildComponent(vm.$children[i]);
  7047. }
  7048. callHook(vm, 'activated');
  7049. }
  7050. }
  7051. function deactivateChildComponent (vm, direct) {
  7052. if (direct) {
  7053. vm._directInactive = true;
  7054. if (isInInactiveTree(vm)) {
  7055. return
  7056. }
  7057. }
  7058. if (!vm._inactive) {
  7059. vm._inactive = true;
  7060. for (var i = 0; i < vm.$children.length; i++) {
  7061. deactivateChildComponent(vm.$children[i]);
  7062. }
  7063. callHook(vm, 'deactivated');
  7064. }
  7065. }
  7066. function callHook (vm, hook) {
  7067. // #7573 disable dep collection when invoking lifecycle hooks
  7068. pushTarget();
  7069. var handlers = vm.$options[hook];
  7070. var info = hook + " hook";
  7071. if (handlers) {
  7072. for (var i = 0, j = handlers.length; i < j; i++) {
  7073. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  7074. }
  7075. }
  7076. if (vm._hasHookEvent) {
  7077. vm.$emit('hook:' + hook);
  7078. }
  7079. popTarget();
  7080. }
  7081. /* */
  7082. var MAX_UPDATE_COUNT = 100;
  7083. var queue = [];
  7084. var activatedChildren = [];
  7085. var has = {};
  7086. var circular = {};
  7087. var waiting = false;
  7088. var flushing = false;
  7089. var index = 0;
  7090. /**
  7091. * Reset the scheduler's state.
  7092. */
  7093. function resetSchedulerState () {
  7094. index = queue.length = activatedChildren.length = 0;
  7095. has = {};
  7096. if (true) {
  7097. circular = {};
  7098. }
  7099. waiting = flushing = false;
  7100. }
  7101. // Async edge case #6566 requires saving the timestamp when event listeners are
  7102. // attached. However, calling performance.now() has a perf overhead especially
  7103. // if the page has thousands of event listeners. Instead, we take a timestamp
  7104. // every time the scheduler flushes and use that for all event listeners
  7105. // attached during that flush.
  7106. var currentFlushTimestamp = 0;
  7107. // Async edge case fix requires storing an event listener's attach timestamp.
  7108. var getNow = Date.now;
  7109. // Determine what event timestamp the browser is using. Annoyingly, the
  7110. // timestamp can either be hi-res (relative to page load) or low-res
  7111. // (relative to UNIX epoch), so in order to compare time we have to use the
  7112. // same timestamp type when saving the flush timestamp.
  7113. // All IE versions use low-res event timestamps, and have problematic clock
  7114. // implementations (#9632)
  7115. if (inBrowser && !isIE) {
  7116. var performance = window.performance;
  7117. if (
  7118. performance &&
  7119. typeof performance.now === 'function' &&
  7120. getNow() > document.createEvent('Event').timeStamp
  7121. ) {
  7122. // if the event timestamp, although evaluated AFTER the Date.now(), is
  7123. // smaller than it, it means the event is using a hi-res timestamp,
  7124. // and we need to use the hi-res version for event listener timestamps as
  7125. // well.
  7126. getNow = function () { return performance.now(); };
  7127. }
  7128. }
  7129. /**
  7130. * Flush both queues and run the watchers.
  7131. */
  7132. function flushSchedulerQueue () {
  7133. currentFlushTimestamp = getNow();
  7134. flushing = true;
  7135. var watcher, id;
  7136. // Sort queue before flush.
  7137. // This ensures that:
  7138. // 1. Components are updated from parent to child. (because parent is always
  7139. // created before the child)
  7140. // 2. A component's user watchers are run before its render watcher (because
  7141. // user watchers are created before the render watcher)
  7142. // 3. If a component is destroyed during a parent component's watcher run,
  7143. // its watchers can be skipped.
  7144. queue.sort(function (a, b) { return a.id - b.id; });
  7145. // do not cache length because more watchers might be pushed
  7146. // as we run existing watchers
  7147. for (index = 0; index < queue.length; index++) {
  7148. watcher = queue[index];
  7149. if (watcher.before) {
  7150. watcher.before();
  7151. }
  7152. id = watcher.id;
  7153. has[id] = null;
  7154. watcher.run();
  7155. // in dev build, check and stop circular updates.
  7156. if ( true && has[id] != null) {
  7157. circular[id] = (circular[id] || 0) + 1;
  7158. if (circular[id] > MAX_UPDATE_COUNT) {
  7159. warn(
  7160. 'You may have an infinite update loop ' + (
  7161. watcher.user
  7162. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  7163. : "in a component render function."
  7164. ),
  7165. watcher.vm
  7166. );
  7167. break
  7168. }
  7169. }
  7170. }
  7171. // keep copies of post queues before resetting state
  7172. var activatedQueue = activatedChildren.slice();
  7173. var updatedQueue = queue.slice();
  7174. resetSchedulerState();
  7175. // call component updated and activated hooks
  7176. callActivatedHooks(activatedQueue);
  7177. callUpdatedHooks(updatedQueue);
  7178. // devtool hook
  7179. /* istanbul ignore if */
  7180. if (devtools && config.devtools) {
  7181. devtools.emit('flush');
  7182. }
  7183. }
  7184. function callUpdatedHooks (queue) {
  7185. var i = queue.length;
  7186. while (i--) {
  7187. var watcher = queue[i];
  7188. var vm = watcher.vm;
  7189. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  7190. callHook(vm, 'updated');
  7191. }
  7192. }
  7193. }
  7194. /**
  7195. * Queue a kept-alive component that was activated during patch.
  7196. * The queue will be processed after the entire tree has been patched.
  7197. */
  7198. function queueActivatedComponent (vm) {
  7199. // setting _inactive to false here so that a render function can
  7200. // rely on checking whether it's in an inactive tree (e.g. router-view)
  7201. vm._inactive = false;
  7202. activatedChildren.push(vm);
  7203. }
  7204. function callActivatedHooks (queue) {
  7205. for (var i = 0; i < queue.length; i++) {
  7206. queue[i]._inactive = true;
  7207. activateChildComponent(queue[i], true /* true */);
  7208. }
  7209. }
  7210. /**
  7211. * Push a watcher into the watcher queue.
  7212. * Jobs with duplicate IDs will be skipped unless it's
  7213. * pushed when the queue is being flushed.
  7214. */
  7215. function queueWatcher (watcher) {
  7216. var id = watcher.id;
  7217. if (has[id] == null) {
  7218. has[id] = true;
  7219. if (!flushing) {
  7220. queue.push(watcher);
  7221. } else {
  7222. // if already flushing, splice the watcher based on its id
  7223. // if already past its id, it will be run next immediately.
  7224. var i = queue.length - 1;
  7225. while (i > index && queue[i].id > watcher.id) {
  7226. i--;
  7227. }
  7228. queue.splice(i + 1, 0, watcher);
  7229. }
  7230. // queue the flush
  7231. if (!waiting) {
  7232. waiting = true;
  7233. if ( true && !config.async) {
  7234. flushSchedulerQueue();
  7235. return
  7236. }
  7237. nextTick(flushSchedulerQueue);
  7238. }
  7239. }
  7240. }
  7241. /* */
  7242. var uid$2 = 0;
  7243. /**
  7244. * A watcher parses an expression, collects dependencies,
  7245. * and fires callback when the expression value changes.
  7246. * This is used for both the $watch() api and directives.
  7247. */
  7248. var Watcher = function Watcher (
  7249. vm,
  7250. expOrFn,
  7251. cb,
  7252. options,
  7253. isRenderWatcher
  7254. ) {
  7255. this.vm = vm;
  7256. if (isRenderWatcher) {
  7257. vm._watcher = this;
  7258. }
  7259. vm._watchers.push(this);
  7260. // options
  7261. if (options) {
  7262. this.deep = !!options.deep;
  7263. this.user = !!options.user;
  7264. this.lazy = !!options.lazy;
  7265. this.sync = !!options.sync;
  7266. this.before = options.before;
  7267. } else {
  7268. this.deep = this.user = this.lazy = this.sync = false;
  7269. }
  7270. this.cb = cb;
  7271. this.id = ++uid$2; // uid for batching
  7272. this.active = true;
  7273. this.dirty = this.lazy; // for lazy watchers
  7274. this.deps = [];
  7275. this.newDeps = [];
  7276. this.depIds = new _Set();
  7277. this.newDepIds = new _Set();
  7278. this.expression = true
  7279. ? expOrFn.toString()
  7280. : undefined;
  7281. // parse expression for getter
  7282. if (typeof expOrFn === 'function') {
  7283. this.getter = expOrFn;
  7284. } else {
  7285. this.getter = parsePath(expOrFn);
  7286. if (!this.getter) {
  7287. this.getter = noop;
  7288. true && warn(
  7289. "Failed watching path: \"" + expOrFn + "\" " +
  7290. 'Watcher only accepts simple dot-delimited paths. ' +
  7291. 'For full control, use a function instead.',
  7292. vm
  7293. );
  7294. }
  7295. }
  7296. this.value = this.lazy
  7297. ? undefined
  7298. : this.get();
  7299. };
  7300. /**
  7301. * Evaluate the getter, and re-collect dependencies.
  7302. */
  7303. Watcher.prototype.get = function get () {
  7304. pushTarget(this);
  7305. var value;
  7306. var vm = this.vm;
  7307. try {
  7308. value = this.getter.call(vm, vm);
  7309. } catch (e) {
  7310. if (this.user) {
  7311. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  7312. } else {
  7313. throw e
  7314. }
  7315. } finally {
  7316. // "touch" every property so they are all tracked as
  7317. // dependencies for deep watching
  7318. if (this.deep) {
  7319. traverse(value);
  7320. }
  7321. popTarget();
  7322. this.cleanupDeps();
  7323. }
  7324. return value
  7325. };
  7326. /**
  7327. * Add a dependency to this directive.
  7328. */
  7329. Watcher.prototype.addDep = function addDep (dep) {
  7330. var id = dep.id;
  7331. if (!this.newDepIds.has(id)) {
  7332. this.newDepIds.add(id);
  7333. this.newDeps.push(dep);
  7334. if (!this.depIds.has(id)) {
  7335. dep.addSub(this);
  7336. }
  7337. }
  7338. };
  7339. /**
  7340. * Clean up for dependency collection.
  7341. */
  7342. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  7343. var i = this.deps.length;
  7344. while (i--) {
  7345. var dep = this.deps[i];
  7346. if (!this.newDepIds.has(dep.id)) {
  7347. dep.removeSub(this);
  7348. }
  7349. }
  7350. var tmp = this.depIds;
  7351. this.depIds = this.newDepIds;
  7352. this.newDepIds = tmp;
  7353. this.newDepIds.clear();
  7354. tmp = this.deps;
  7355. this.deps = this.newDeps;
  7356. this.newDeps = tmp;
  7357. this.newDeps.length = 0;
  7358. };
  7359. /**
  7360. * Subscriber interface.
  7361. * Will be called when a dependency changes.
  7362. */
  7363. Watcher.prototype.update = function update () {
  7364. /* istanbul ignore else */
  7365. if (this.lazy) {
  7366. this.dirty = true;
  7367. } else if (this.sync) {
  7368. this.run();
  7369. } else {
  7370. queueWatcher(this);
  7371. }
  7372. };
  7373. /**
  7374. * Scheduler job interface.
  7375. * Will be called by the scheduler.
  7376. */
  7377. Watcher.prototype.run = function run () {
  7378. if (this.active) {
  7379. var value = this.get();
  7380. if (
  7381. value !== this.value ||
  7382. // Deep watchers and watchers on Object/Arrays should fire even
  7383. // when the value is the same, because the value may
  7384. // have mutated.
  7385. isObject(value) ||
  7386. this.deep
  7387. ) {
  7388. // set new value
  7389. var oldValue = this.value;
  7390. this.value = value;
  7391. if (this.user) {
  7392. try {
  7393. this.cb.call(this.vm, value, oldValue);
  7394. } catch (e) {
  7395. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  7396. }
  7397. } else {
  7398. this.cb.call(this.vm, value, oldValue);
  7399. }
  7400. }
  7401. }
  7402. };
  7403. /**
  7404. * Evaluate the value of the watcher.
  7405. * This only gets called for lazy watchers.
  7406. */
  7407. Watcher.prototype.evaluate = function evaluate () {
  7408. this.value = this.get();
  7409. this.dirty = false;
  7410. };
  7411. /**
  7412. * Depend on all deps collected by this watcher.
  7413. */
  7414. Watcher.prototype.depend = function depend () {
  7415. var i = this.deps.length;
  7416. while (i--) {
  7417. this.deps[i].depend();
  7418. }
  7419. };
  7420. /**
  7421. * Remove self from all dependencies' subscriber list.
  7422. */
  7423. Watcher.prototype.teardown = function teardown () {
  7424. if (this.active) {
  7425. // remove self from vm's watcher list
  7426. // this is a somewhat expensive operation so we skip it
  7427. // if the vm is being destroyed.
  7428. if (!this.vm._isBeingDestroyed) {
  7429. remove(this.vm._watchers, this);
  7430. }
  7431. var i = this.deps.length;
  7432. while (i--) {
  7433. this.deps[i].removeSub(this);
  7434. }
  7435. this.active = false;
  7436. }
  7437. };
  7438. /* */
  7439. var sharedPropertyDefinition = {
  7440. enumerable: true,
  7441. configurable: true,
  7442. get: noop,
  7443. set: noop
  7444. };
  7445. function proxy (target, sourceKey, key) {
  7446. sharedPropertyDefinition.get = function proxyGetter () {
  7447. return this[sourceKey][key]
  7448. };
  7449. sharedPropertyDefinition.set = function proxySetter (val) {
  7450. this[sourceKey][key] = val;
  7451. };
  7452. Object.defineProperty(target, key, sharedPropertyDefinition);
  7453. }
  7454. function initState (vm) {
  7455. vm._watchers = [];
  7456. var opts = vm.$options;
  7457. if (opts.props) { initProps(vm, opts.props); }
  7458. if (opts.methods) { initMethods(vm, opts.methods); }
  7459. if (opts.data) {
  7460. initData(vm);
  7461. } else {
  7462. observe(vm._data = {}, true /* asRootData */);
  7463. }
  7464. if (opts.computed) { initComputed(vm, opts.computed); }
  7465. if (opts.watch && opts.watch !== nativeWatch) {
  7466. initWatch(vm, opts.watch);
  7467. }
  7468. }
  7469. function initProps (vm, propsOptions) {
  7470. var propsData = vm.$options.propsData || {};
  7471. var props = vm._props = {};
  7472. // cache prop keys so that future props updates can iterate using Array
  7473. // instead of dynamic object key enumeration.
  7474. var keys = vm.$options._propKeys = [];
  7475. var isRoot = !vm.$parent;
  7476. // root instance props should be converted
  7477. if (!isRoot) {
  7478. toggleObserving(false);
  7479. }
  7480. var loop = function ( key ) {
  7481. keys.push(key);
  7482. var value = validateProp(key, propsOptions, propsData, vm);
  7483. /* istanbul ignore else */
  7484. if (true) {
  7485. var hyphenatedKey = hyphenate(key);
  7486. if (isReservedAttribute(hyphenatedKey) ||
  7487. config.isReservedAttr(hyphenatedKey)) {
  7488. warn(
  7489. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  7490. vm
  7491. );
  7492. }
  7493. defineReactive$$1(props, key, value, function () {
  7494. if (!isRoot && !isUpdatingChildComponent) {
  7495. {
  7496. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  7497. return
  7498. }
  7499. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  7500. if(
  7501. key === 'value' &&
  7502. Array.isArray(vm.$options.behaviors) &&
  7503. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  7504. ){
  7505. return
  7506. }
  7507. if(vm._getFormData){
  7508. return
  7509. }
  7510. var $parent = vm.$parent;
  7511. while($parent){
  7512. if($parent.__next_tick_pending){
  7513. return
  7514. }
  7515. $parent = $parent.$parent;
  7516. }
  7517. }
  7518. warn(
  7519. "Avoid mutating a prop directly since the value will be " +
  7520. "overwritten whenever the parent component re-renders. " +
  7521. "Instead, use a data or computed property based on the prop's " +
  7522. "value. Prop being mutated: \"" + key + "\"",
  7523. vm
  7524. );
  7525. }
  7526. });
  7527. } else {}
  7528. // static props are already proxied on the component's prototype
  7529. // during Vue.extend(). We only need to proxy props defined at
  7530. // instantiation here.
  7531. if (!(key in vm)) {
  7532. proxy(vm, "_props", key);
  7533. }
  7534. };
  7535. for (var key in propsOptions) loop( key );
  7536. toggleObserving(true);
  7537. }
  7538. function initData (vm) {
  7539. var data = vm.$options.data;
  7540. data = vm._data = typeof data === 'function'
  7541. ? getData(data, vm)
  7542. : data || {};
  7543. if (!isPlainObject(data)) {
  7544. data = {};
  7545. true && warn(
  7546. 'data functions should return an object:\n' +
  7547. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  7548. vm
  7549. );
  7550. }
  7551. // proxy data on instance
  7552. var keys = Object.keys(data);
  7553. var props = vm.$options.props;
  7554. var methods = vm.$options.methods;
  7555. var i = keys.length;
  7556. while (i--) {
  7557. var key = keys[i];
  7558. if (true) {
  7559. if (methods && hasOwn(methods, key)) {
  7560. warn(
  7561. ("Method \"" + key + "\" has already been defined as a data property."),
  7562. vm
  7563. );
  7564. }
  7565. }
  7566. if (props && hasOwn(props, key)) {
  7567. true && warn(
  7568. "The data property \"" + key + "\" is already declared as a prop. " +
  7569. "Use prop default value instead.",
  7570. vm
  7571. );
  7572. } else if (!isReserved(key)) {
  7573. proxy(vm, "_data", key);
  7574. }
  7575. }
  7576. // observe data
  7577. observe(data, true /* asRootData */);
  7578. }
  7579. function getData (data, vm) {
  7580. // #7573 disable dep collection when invoking data getters
  7581. pushTarget();
  7582. try {
  7583. return data.call(vm, vm)
  7584. } catch (e) {
  7585. handleError(e, vm, "data()");
  7586. return {}
  7587. } finally {
  7588. popTarget();
  7589. }
  7590. }
  7591. var computedWatcherOptions = { lazy: true };
  7592. function initComputed (vm, computed) {
  7593. // $flow-disable-line
  7594. var watchers = vm._computedWatchers = Object.create(null);
  7595. // computed properties are just getters during SSR
  7596. var isSSR = isServerRendering();
  7597. for (var key in computed) {
  7598. var userDef = computed[key];
  7599. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  7600. if ( true && getter == null) {
  7601. warn(
  7602. ("Getter is missing for computed property \"" + key + "\"."),
  7603. vm
  7604. );
  7605. }
  7606. if (!isSSR) {
  7607. // create internal watcher for the computed property.
  7608. watchers[key] = new Watcher(
  7609. vm,
  7610. getter || noop,
  7611. noop,
  7612. computedWatcherOptions
  7613. );
  7614. }
  7615. // component-defined computed properties are already defined on the
  7616. // component prototype. We only need to define computed properties defined
  7617. // at instantiation here.
  7618. if (!(key in vm)) {
  7619. defineComputed(vm, key, userDef);
  7620. } else if (true) {
  7621. if (key in vm.$data) {
  7622. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  7623. } else if (vm.$options.props && key in vm.$options.props) {
  7624. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  7625. }
  7626. }
  7627. }
  7628. }
  7629. function defineComputed (
  7630. target,
  7631. key,
  7632. userDef
  7633. ) {
  7634. var shouldCache = !isServerRendering();
  7635. if (typeof userDef === 'function') {
  7636. sharedPropertyDefinition.get = shouldCache
  7637. ? createComputedGetter(key)
  7638. : createGetterInvoker(userDef);
  7639. sharedPropertyDefinition.set = noop;
  7640. } else {
  7641. sharedPropertyDefinition.get = userDef.get
  7642. ? shouldCache && userDef.cache !== false
  7643. ? createComputedGetter(key)
  7644. : createGetterInvoker(userDef.get)
  7645. : noop;
  7646. sharedPropertyDefinition.set = userDef.set || noop;
  7647. }
  7648. if ( true &&
  7649. sharedPropertyDefinition.set === noop) {
  7650. sharedPropertyDefinition.set = function () {
  7651. warn(
  7652. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  7653. this
  7654. );
  7655. };
  7656. }
  7657. Object.defineProperty(target, key, sharedPropertyDefinition);
  7658. }
  7659. function createComputedGetter (key) {
  7660. return function computedGetter () {
  7661. var watcher = this._computedWatchers && this._computedWatchers[key];
  7662. if (watcher) {
  7663. if (watcher.dirty) {
  7664. watcher.evaluate();
  7665. }
  7666. if (Dep.SharedObject.target) {// fixed by xxxxxx
  7667. watcher.depend();
  7668. }
  7669. return watcher.value
  7670. }
  7671. }
  7672. }
  7673. function createGetterInvoker(fn) {
  7674. return function computedGetter () {
  7675. return fn.call(this, this)
  7676. }
  7677. }
  7678. function initMethods (vm, methods) {
  7679. var props = vm.$options.props;
  7680. for (var key in methods) {
  7681. if (true) {
  7682. if (typeof methods[key] !== 'function') {
  7683. warn(
  7684. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  7685. "Did you reference the function correctly?",
  7686. vm
  7687. );
  7688. }
  7689. if (props && hasOwn(props, key)) {
  7690. warn(
  7691. ("Method \"" + key + "\" has already been defined as a prop."),
  7692. vm
  7693. );
  7694. }
  7695. if ((key in vm) && isReserved(key)) {
  7696. warn(
  7697. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  7698. "Avoid defining component methods that start with _ or $."
  7699. );
  7700. }
  7701. }
  7702. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  7703. }
  7704. }
  7705. function initWatch (vm, watch) {
  7706. for (var key in watch) {
  7707. var handler = watch[key];
  7708. if (Array.isArray(handler)) {
  7709. for (var i = 0; i < handler.length; i++) {
  7710. createWatcher(vm, key, handler[i]);
  7711. }
  7712. } else {
  7713. createWatcher(vm, key, handler);
  7714. }
  7715. }
  7716. }
  7717. function createWatcher (
  7718. vm,
  7719. expOrFn,
  7720. handler,
  7721. options
  7722. ) {
  7723. if (isPlainObject(handler)) {
  7724. options = handler;
  7725. handler = handler.handler;
  7726. }
  7727. if (typeof handler === 'string') {
  7728. handler = vm[handler];
  7729. }
  7730. return vm.$watch(expOrFn, handler, options)
  7731. }
  7732. function stateMixin (Vue) {
  7733. // flow somehow has problems with directly declared definition object
  7734. // when using Object.defineProperty, so we have to procedurally build up
  7735. // the object here.
  7736. var dataDef = {};
  7737. dataDef.get = function () { return this._data };
  7738. var propsDef = {};
  7739. propsDef.get = function () { return this._props };
  7740. if (true) {
  7741. dataDef.set = function () {
  7742. warn(
  7743. 'Avoid replacing instance root $data. ' +
  7744. 'Use nested data properties instead.',
  7745. this
  7746. );
  7747. };
  7748. propsDef.set = function () {
  7749. warn("$props is readonly.", this);
  7750. };
  7751. }
  7752. Object.defineProperty(Vue.prototype, '$data', dataDef);
  7753. Object.defineProperty(Vue.prototype, '$props', propsDef);
  7754. Vue.prototype.$set = set;
  7755. Vue.prototype.$delete = del;
  7756. Vue.prototype.$watch = function (
  7757. expOrFn,
  7758. cb,
  7759. options
  7760. ) {
  7761. var vm = this;
  7762. if (isPlainObject(cb)) {
  7763. return createWatcher(vm, expOrFn, cb, options)
  7764. }
  7765. options = options || {};
  7766. options.user = true;
  7767. var watcher = new Watcher(vm, expOrFn, cb, options);
  7768. if (options.immediate) {
  7769. try {
  7770. cb.call(vm, watcher.value);
  7771. } catch (error) {
  7772. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  7773. }
  7774. }
  7775. return function unwatchFn () {
  7776. watcher.teardown();
  7777. }
  7778. };
  7779. }
  7780. /* */
  7781. var uid$3 = 0;
  7782. function initMixin (Vue) {
  7783. Vue.prototype._init = function (options) {
  7784. var vm = this;
  7785. // a uid
  7786. vm._uid = uid$3++;
  7787. var startTag, endTag;
  7788. /* istanbul ignore if */
  7789. if ( true && config.performance && mark) {
  7790. startTag = "vue-perf-start:" + (vm._uid);
  7791. endTag = "vue-perf-end:" + (vm._uid);
  7792. mark(startTag);
  7793. }
  7794. // a flag to avoid this being observed
  7795. vm._isVue = true;
  7796. // merge options
  7797. if (options && options._isComponent) {
  7798. // optimize internal component instantiation
  7799. // since dynamic options merging is pretty slow, and none of the
  7800. // internal component options needs special treatment.
  7801. initInternalComponent(vm, options);
  7802. } else {
  7803. vm.$options = mergeOptions(
  7804. resolveConstructorOptions(vm.constructor),
  7805. options || {},
  7806. vm
  7807. );
  7808. }
  7809. /* istanbul ignore else */
  7810. if (true) {
  7811. initProxy(vm);
  7812. } else {}
  7813. // expose real self
  7814. vm._self = vm;
  7815. initLifecycle(vm);
  7816. initEvents(vm);
  7817. initRender(vm);
  7818. callHook(vm, 'beforeCreate');
  7819. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  7820. initState(vm);
  7821. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  7822. !vm._$fallback && callHook(vm, 'created');
  7823. /* istanbul ignore if */
  7824. if ( true && config.performance && mark) {
  7825. vm._name = formatComponentName(vm, false);
  7826. mark(endTag);
  7827. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  7828. }
  7829. if (vm.$options.el) {
  7830. vm.$mount(vm.$options.el);
  7831. }
  7832. };
  7833. }
  7834. function initInternalComponent (vm, options) {
  7835. var opts = vm.$options = Object.create(vm.constructor.options);
  7836. // doing this because it's faster than dynamic enumeration.
  7837. var parentVnode = options._parentVnode;
  7838. opts.parent = options.parent;
  7839. opts._parentVnode = parentVnode;
  7840. var vnodeComponentOptions = parentVnode.componentOptions;
  7841. opts.propsData = vnodeComponentOptions.propsData;
  7842. opts._parentListeners = vnodeComponentOptions.listeners;
  7843. opts._renderChildren = vnodeComponentOptions.children;
  7844. opts._componentTag = vnodeComponentOptions.tag;
  7845. if (options.render) {
  7846. opts.render = options.render;
  7847. opts.staticRenderFns = options.staticRenderFns;
  7848. }
  7849. }
  7850. function resolveConstructorOptions (Ctor) {
  7851. var options = Ctor.options;
  7852. if (Ctor.super) {
  7853. var superOptions = resolveConstructorOptions(Ctor.super);
  7854. var cachedSuperOptions = Ctor.superOptions;
  7855. if (superOptions !== cachedSuperOptions) {
  7856. // super option changed,
  7857. // need to resolve new options.
  7858. Ctor.superOptions = superOptions;
  7859. // check if there are any late-modified/attached options (#4976)
  7860. var modifiedOptions = resolveModifiedOptions(Ctor);
  7861. // update base extend options
  7862. if (modifiedOptions) {
  7863. extend(Ctor.extendOptions, modifiedOptions);
  7864. }
  7865. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  7866. if (options.name) {
  7867. options.components[options.name] = Ctor;
  7868. }
  7869. }
  7870. }
  7871. return options
  7872. }
  7873. function resolveModifiedOptions (Ctor) {
  7874. var modified;
  7875. var latest = Ctor.options;
  7876. var sealed = Ctor.sealedOptions;
  7877. for (var key in latest) {
  7878. if (latest[key] !== sealed[key]) {
  7879. if (!modified) { modified = {}; }
  7880. modified[key] = latest[key];
  7881. }
  7882. }
  7883. return modified
  7884. }
  7885. function Vue (options) {
  7886. if ( true &&
  7887. !(this instanceof Vue)
  7888. ) {
  7889. warn('Vue is a constructor and should be called with the `new` keyword');
  7890. }
  7891. this._init(options);
  7892. }
  7893. initMixin(Vue);
  7894. stateMixin(Vue);
  7895. eventsMixin(Vue);
  7896. lifecycleMixin(Vue);
  7897. renderMixin(Vue);
  7898. /* */
  7899. function initUse (Vue) {
  7900. Vue.use = function (plugin) {
  7901. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  7902. if (installedPlugins.indexOf(plugin) > -1) {
  7903. return this
  7904. }
  7905. // additional parameters
  7906. var args = toArray(arguments, 1);
  7907. args.unshift(this);
  7908. if (typeof plugin.install === 'function') {
  7909. plugin.install.apply(plugin, args);
  7910. } else if (typeof plugin === 'function') {
  7911. plugin.apply(null, args);
  7912. }
  7913. installedPlugins.push(plugin);
  7914. return this
  7915. };
  7916. }
  7917. /* */
  7918. function initMixin$1 (Vue) {
  7919. Vue.mixin = function (mixin) {
  7920. this.options = mergeOptions(this.options, mixin);
  7921. return this
  7922. };
  7923. }
  7924. /* */
  7925. function initExtend (Vue) {
  7926. /**
  7927. * Each instance constructor, including Vue, has a unique
  7928. * cid. This enables us to create wrapped "child
  7929. * constructors" for prototypal inheritance and cache them.
  7930. */
  7931. Vue.cid = 0;
  7932. var cid = 1;
  7933. /**
  7934. * Class inheritance
  7935. */
  7936. Vue.extend = function (extendOptions) {
  7937. extendOptions = extendOptions || {};
  7938. var Super = this;
  7939. var SuperId = Super.cid;
  7940. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  7941. if (cachedCtors[SuperId]) {
  7942. return cachedCtors[SuperId]
  7943. }
  7944. var name = extendOptions.name || Super.options.name;
  7945. if ( true && name) {
  7946. validateComponentName(name);
  7947. }
  7948. var Sub = function VueComponent (options) {
  7949. this._init(options);
  7950. };
  7951. Sub.prototype = Object.create(Super.prototype);
  7952. Sub.prototype.constructor = Sub;
  7953. Sub.cid = cid++;
  7954. Sub.options = mergeOptions(
  7955. Super.options,
  7956. extendOptions
  7957. );
  7958. Sub['super'] = Super;
  7959. // For props and computed properties, we define the proxy getters on
  7960. // the Vue instances at extension time, on the extended prototype. This
  7961. // avoids Object.defineProperty calls for each instance created.
  7962. if (Sub.options.props) {
  7963. initProps$1(Sub);
  7964. }
  7965. if (Sub.options.computed) {
  7966. initComputed$1(Sub);
  7967. }
  7968. // allow further extension/mixin/plugin usage
  7969. Sub.extend = Super.extend;
  7970. Sub.mixin = Super.mixin;
  7971. Sub.use = Super.use;
  7972. // create asset registers, so extended classes
  7973. // can have their private assets too.
  7974. ASSET_TYPES.forEach(function (type) {
  7975. Sub[type] = Super[type];
  7976. });
  7977. // enable recursive self-lookup
  7978. if (name) {
  7979. Sub.options.components[name] = Sub;
  7980. }
  7981. // keep a reference to the super options at extension time.
  7982. // later at instantiation we can check if Super's options have
  7983. // been updated.
  7984. Sub.superOptions = Super.options;
  7985. Sub.extendOptions = extendOptions;
  7986. Sub.sealedOptions = extend({}, Sub.options);
  7987. // cache constructor
  7988. cachedCtors[SuperId] = Sub;
  7989. return Sub
  7990. };
  7991. }
  7992. function initProps$1 (Comp) {
  7993. var props = Comp.options.props;
  7994. for (var key in props) {
  7995. proxy(Comp.prototype, "_props", key);
  7996. }
  7997. }
  7998. function initComputed$1 (Comp) {
  7999. var computed = Comp.options.computed;
  8000. for (var key in computed) {
  8001. defineComputed(Comp.prototype, key, computed[key]);
  8002. }
  8003. }
  8004. /* */
  8005. function initAssetRegisters (Vue) {
  8006. /**
  8007. * Create asset registration methods.
  8008. */
  8009. ASSET_TYPES.forEach(function (type) {
  8010. Vue[type] = function (
  8011. id,
  8012. definition
  8013. ) {
  8014. if (!definition) {
  8015. return this.options[type + 's'][id]
  8016. } else {
  8017. /* istanbul ignore if */
  8018. if ( true && type === 'component') {
  8019. validateComponentName(id);
  8020. }
  8021. if (type === 'component' && isPlainObject(definition)) {
  8022. definition.name = definition.name || id;
  8023. definition = this.options._base.extend(definition);
  8024. }
  8025. if (type === 'directive' && typeof definition === 'function') {
  8026. definition = { bind: definition, update: definition };
  8027. }
  8028. this.options[type + 's'][id] = definition;
  8029. return definition
  8030. }
  8031. };
  8032. });
  8033. }
  8034. /* */
  8035. function getComponentName (opts) {
  8036. return opts && (opts.Ctor.options.name || opts.tag)
  8037. }
  8038. function matches (pattern, name) {
  8039. if (Array.isArray(pattern)) {
  8040. return pattern.indexOf(name) > -1
  8041. } else if (typeof pattern === 'string') {
  8042. return pattern.split(',').indexOf(name) > -1
  8043. } else if (isRegExp(pattern)) {
  8044. return pattern.test(name)
  8045. }
  8046. /* istanbul ignore next */
  8047. return false
  8048. }
  8049. function pruneCache (keepAliveInstance, filter) {
  8050. var cache = keepAliveInstance.cache;
  8051. var keys = keepAliveInstance.keys;
  8052. var _vnode = keepAliveInstance._vnode;
  8053. for (var key in cache) {
  8054. var cachedNode = cache[key];
  8055. if (cachedNode) {
  8056. var name = getComponentName(cachedNode.componentOptions);
  8057. if (name && !filter(name)) {
  8058. pruneCacheEntry(cache, key, keys, _vnode);
  8059. }
  8060. }
  8061. }
  8062. }
  8063. function pruneCacheEntry (
  8064. cache,
  8065. key,
  8066. keys,
  8067. current
  8068. ) {
  8069. var cached$$1 = cache[key];
  8070. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  8071. cached$$1.componentInstance.$destroy();
  8072. }
  8073. cache[key] = null;
  8074. remove(keys, key);
  8075. }
  8076. var patternTypes = [String, RegExp, Array];
  8077. var KeepAlive = {
  8078. name: 'keep-alive',
  8079. abstract: true,
  8080. props: {
  8081. include: patternTypes,
  8082. exclude: patternTypes,
  8083. max: [String, Number]
  8084. },
  8085. created: function created () {
  8086. this.cache = Object.create(null);
  8087. this.keys = [];
  8088. },
  8089. destroyed: function destroyed () {
  8090. for (var key in this.cache) {
  8091. pruneCacheEntry(this.cache, key, this.keys);
  8092. }
  8093. },
  8094. mounted: function mounted () {
  8095. var this$1 = this;
  8096. this.$watch('include', function (val) {
  8097. pruneCache(this$1, function (name) { return matches(val, name); });
  8098. });
  8099. this.$watch('exclude', function (val) {
  8100. pruneCache(this$1, function (name) { return !matches(val, name); });
  8101. });
  8102. },
  8103. render: function render () {
  8104. var slot = this.$slots.default;
  8105. var vnode = getFirstComponentChild(slot);
  8106. var componentOptions = vnode && vnode.componentOptions;
  8107. if (componentOptions) {
  8108. // check pattern
  8109. var name = getComponentName(componentOptions);
  8110. var ref = this;
  8111. var include = ref.include;
  8112. var exclude = ref.exclude;
  8113. if (
  8114. // not included
  8115. (include && (!name || !matches(include, name))) ||
  8116. // excluded
  8117. (exclude && name && matches(exclude, name))
  8118. ) {
  8119. return vnode
  8120. }
  8121. var ref$1 = this;
  8122. var cache = ref$1.cache;
  8123. var keys = ref$1.keys;
  8124. var key = vnode.key == null
  8125. // same constructor may get registered as different local components
  8126. // so cid alone is not enough (#3269)
  8127. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  8128. : vnode.key;
  8129. if (cache[key]) {
  8130. vnode.componentInstance = cache[key].componentInstance;
  8131. // make current key freshest
  8132. remove(keys, key);
  8133. keys.push(key);
  8134. } else {
  8135. cache[key] = vnode;
  8136. keys.push(key);
  8137. // prune oldest entry
  8138. if (this.max && keys.length > parseInt(this.max)) {
  8139. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  8140. }
  8141. }
  8142. vnode.data.keepAlive = true;
  8143. }
  8144. return vnode || (slot && slot[0])
  8145. }
  8146. };
  8147. var builtInComponents = {
  8148. KeepAlive: KeepAlive
  8149. };
  8150. /* */
  8151. function initGlobalAPI (Vue) {
  8152. // config
  8153. var configDef = {};
  8154. configDef.get = function () { return config; };
  8155. if (true) {
  8156. configDef.set = function () {
  8157. warn(
  8158. 'Do not replace the Vue.config object, set individual fields instead.'
  8159. );
  8160. };
  8161. }
  8162. Object.defineProperty(Vue, 'config', configDef);
  8163. // exposed util methods.
  8164. // NOTE: these are not considered part of the public API - avoid relying on
  8165. // them unless you are aware of the risk.
  8166. Vue.util = {
  8167. warn: warn,
  8168. extend: extend,
  8169. mergeOptions: mergeOptions,
  8170. defineReactive: defineReactive$$1
  8171. };
  8172. Vue.set = set;
  8173. Vue.delete = del;
  8174. Vue.nextTick = nextTick;
  8175. // 2.6 explicit observable API
  8176. Vue.observable = function (obj) {
  8177. observe(obj);
  8178. return obj
  8179. };
  8180. Vue.options = Object.create(null);
  8181. ASSET_TYPES.forEach(function (type) {
  8182. Vue.options[type + 's'] = Object.create(null);
  8183. });
  8184. // this is used to identify the "base" constructor to extend all plain-object
  8185. // components with in Weex's multi-instance scenarios.
  8186. Vue.options._base = Vue;
  8187. extend(Vue.options.components, builtInComponents);
  8188. initUse(Vue);
  8189. initMixin$1(Vue);
  8190. initExtend(Vue);
  8191. initAssetRegisters(Vue);
  8192. }
  8193. initGlobalAPI(Vue);
  8194. Object.defineProperty(Vue.prototype, '$isServer', {
  8195. get: isServerRendering
  8196. });
  8197. Object.defineProperty(Vue.prototype, '$ssrContext', {
  8198. get: function get () {
  8199. /* istanbul ignore next */
  8200. return this.$vnode && this.$vnode.ssrContext
  8201. }
  8202. });
  8203. // expose FunctionalRenderContext for ssr runtime helper installation
  8204. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  8205. value: FunctionalRenderContext
  8206. });
  8207. Vue.version = '2.6.11';
  8208. /**
  8209. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  8210. */
  8211. var ARRAYTYPE = '[object Array]';
  8212. var OBJECTTYPE = '[object Object]';
  8213. var NULLTYPE = '[object Null]';
  8214. var UNDEFINEDTYPE = '[object Undefined]';
  8215. // const FUNCTIONTYPE = '[object Function]'
  8216. function diff(current, pre) {
  8217. var result = {};
  8218. syncKeys(current, pre);
  8219. _diff(current, pre, '', result);
  8220. return result
  8221. }
  8222. function syncKeys(current, pre) {
  8223. if (current === pre) { return }
  8224. var rootCurrentType = type(current);
  8225. var rootPreType = type(pre);
  8226. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  8227. if(Object.keys(current).length >= Object.keys(pre).length){
  8228. for (var key in pre) {
  8229. var currentValue = current[key];
  8230. if (currentValue === undefined) {
  8231. current[key] = null;
  8232. } else {
  8233. syncKeys(currentValue, pre[key]);
  8234. }
  8235. }
  8236. }
  8237. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  8238. if (current.length >= pre.length) {
  8239. pre.forEach(function (item, index) {
  8240. syncKeys(current[index], item);
  8241. });
  8242. }
  8243. }
  8244. }
  8245. function nullOrUndefined(currentType, preType) {
  8246. if(
  8247. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  8248. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  8249. ) {
  8250. return false
  8251. }
  8252. return true
  8253. }
  8254. function _diff(current, pre, path, result) {
  8255. if (current === pre) { return }
  8256. var rootCurrentType = type(current);
  8257. var rootPreType = type(pre);
  8258. if (rootCurrentType == OBJECTTYPE) {
  8259. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  8260. setResult(result, path, current);
  8261. } else {
  8262. var loop = function ( key ) {
  8263. var currentValue = current[key];
  8264. var preValue = pre[key];
  8265. var currentType = type(currentValue);
  8266. var preType = type(preValue);
  8267. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  8268. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  8269. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8270. }
  8271. } else if (currentType == ARRAYTYPE) {
  8272. if (preType != ARRAYTYPE) {
  8273. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8274. } else {
  8275. if (currentValue.length < preValue.length) {
  8276. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8277. } else {
  8278. currentValue.forEach(function (item, index) {
  8279. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  8280. });
  8281. }
  8282. }
  8283. } else if (currentType == OBJECTTYPE) {
  8284. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  8285. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8286. } else {
  8287. for (var subKey in currentValue) {
  8288. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  8289. }
  8290. }
  8291. }
  8292. };
  8293. for (var key in current) loop( key );
  8294. }
  8295. } else if (rootCurrentType == ARRAYTYPE) {
  8296. if (rootPreType != ARRAYTYPE) {
  8297. setResult(result, path, current);
  8298. } else {
  8299. if (current.length < pre.length) {
  8300. setResult(result, path, current);
  8301. } else {
  8302. current.forEach(function (item, index) {
  8303. _diff(item, pre[index], path + '[' + index + ']', result);
  8304. });
  8305. }
  8306. }
  8307. } else {
  8308. setResult(result, path, current);
  8309. }
  8310. }
  8311. function setResult(result, k, v) {
  8312. // if (type(v) != FUNCTIONTYPE) {
  8313. result[k] = v;
  8314. // }
  8315. }
  8316. function type(obj) {
  8317. return Object.prototype.toString.call(obj)
  8318. }
  8319. /* */
  8320. function flushCallbacks$1(vm) {
  8321. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  8322. if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"yaojiu","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8323. var mpInstance = vm.$scope;
  8324. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8325. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  8326. }
  8327. var copies = vm.__next_tick_callbacks.slice(0);
  8328. vm.__next_tick_callbacks.length = 0;
  8329. for (var i = 0; i < copies.length; i++) {
  8330. copies[i]();
  8331. }
  8332. }
  8333. }
  8334. function hasRenderWatcher(vm) {
  8335. return queue.find(function (watcher) { return vm._watcher === watcher; })
  8336. }
  8337. function nextTick$1(vm, cb) {
  8338. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  8339. //2.nextTick 之前存在 render watcher
  8340. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  8341. if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"yaojiu","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
  8342. var mpInstance = vm.$scope;
  8343. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8344. ']:nextVueTick');
  8345. }
  8346. return nextTick(cb, vm)
  8347. }else{
  8348. if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"yaojiu","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
  8349. var mpInstance$1 = vm.$scope;
  8350. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  8351. ']:nextMPTick');
  8352. }
  8353. }
  8354. var _resolve;
  8355. if (!vm.__next_tick_callbacks) {
  8356. vm.__next_tick_callbacks = [];
  8357. }
  8358. vm.__next_tick_callbacks.push(function () {
  8359. if (cb) {
  8360. try {
  8361. cb.call(vm);
  8362. } catch (e) {
  8363. handleError(e, vm, 'nextTick');
  8364. }
  8365. } else if (_resolve) {
  8366. _resolve(vm);
  8367. }
  8368. });
  8369. // $flow-disable-line
  8370. if (!cb && typeof Promise !== 'undefined') {
  8371. return new Promise(function (resolve) {
  8372. _resolve = resolve;
  8373. })
  8374. }
  8375. }
  8376. /* */
  8377. function clearInstance(key, value) {
  8378. // 简易去除 Vue 和小程序组件实例
  8379. if (value) {
  8380. if (value._isVue || value.__v_isMPComponent) {
  8381. return {}
  8382. }
  8383. }
  8384. return value
  8385. }
  8386. function cloneWithData(vm) {
  8387. // 确保当前 vm 所有数据被同步
  8388. var ret = Object.create(null);
  8389. var dataKeys = [].concat(
  8390. Object.keys(vm._data || {}),
  8391. Object.keys(vm._computedWatchers || {}));
  8392. dataKeys.reduce(function(ret, key) {
  8393. ret[key] = vm[key];
  8394. return ret
  8395. }, ret);
  8396. // vue-composition-api
  8397. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  8398. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  8399. if (rawBindings) {
  8400. Object.keys(rawBindings).forEach(function (key) {
  8401. ret[key] = vm[key];
  8402. });
  8403. }
  8404. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  8405. Object.assign(ret, vm.$mp.data || {});
  8406. if (
  8407. Array.isArray(vm.$options.behaviors) &&
  8408. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  8409. ) { //form-field
  8410. ret['name'] = vm.name;
  8411. ret['value'] = vm.value;
  8412. }
  8413. return JSON.parse(JSON.stringify(ret, clearInstance))
  8414. }
  8415. var patch = function(oldVnode, vnode) {
  8416. var this$1 = this;
  8417. if (vnode === null) { //destroy
  8418. return
  8419. }
  8420. if (this.mpType === 'page' || this.mpType === 'component') {
  8421. var mpInstance = this.$scope;
  8422. var data = Object.create(null);
  8423. try {
  8424. data = cloneWithData(this);
  8425. } catch (err) {
  8426. console.error(err);
  8427. }
  8428. data.__webviewId__ = mpInstance.data.__webviewId__;
  8429. var mpData = Object.create(null);
  8430. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  8431. mpData[key] = mpInstance.data[key];
  8432. });
  8433. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  8434. if (Object.keys(diffData).length) {
  8435. if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"yaojiu","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8436. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  8437. ']差量更新',
  8438. JSON.stringify(diffData));
  8439. }
  8440. this.__next_tick_pending = true;
  8441. mpInstance.setData(diffData, function () {
  8442. this$1.__next_tick_pending = false;
  8443. flushCallbacks$1(this$1);
  8444. });
  8445. } else {
  8446. flushCallbacks$1(this);
  8447. }
  8448. }
  8449. };
  8450. /* */
  8451. function createEmptyRender() {
  8452. }
  8453. function mountComponent$1(
  8454. vm,
  8455. el,
  8456. hydrating
  8457. ) {
  8458. if (!vm.mpType) {//main.js 中的 new Vue
  8459. return vm
  8460. }
  8461. if (vm.mpType === 'app') {
  8462. vm.$options.render = createEmptyRender;
  8463. }
  8464. if (!vm.$options.render) {
  8465. vm.$options.render = createEmptyRender;
  8466. if (true) {
  8467. /* istanbul ignore if */
  8468. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  8469. vm.$options.el || el) {
  8470. warn(
  8471. 'You are using the runtime-only build of Vue where the template ' +
  8472. 'compiler is not available. Either pre-compile the templates into ' +
  8473. 'render functions, or use the compiler-included build.',
  8474. vm
  8475. );
  8476. } else {
  8477. warn(
  8478. 'Failed to mount component: template or render function not defined.',
  8479. vm
  8480. );
  8481. }
  8482. }
  8483. }
  8484. !vm._$fallback && callHook(vm, 'beforeMount');
  8485. var updateComponent = function () {
  8486. vm._update(vm._render(), hydrating);
  8487. };
  8488. // we set this to vm._watcher inside the watcher's constructor
  8489. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  8490. // component's mounted hook), which relies on vm._watcher being already defined
  8491. new Watcher(vm, updateComponent, noop, {
  8492. before: function before() {
  8493. if (vm._isMounted && !vm._isDestroyed) {
  8494. callHook(vm, 'beforeUpdate');
  8495. }
  8496. }
  8497. }, true /* isRenderWatcher */);
  8498. hydrating = false;
  8499. return vm
  8500. }
  8501. /* */
  8502. function renderClass (
  8503. staticClass,
  8504. dynamicClass
  8505. ) {
  8506. if (isDef(staticClass) || isDef(dynamicClass)) {
  8507. return concat(staticClass, stringifyClass(dynamicClass))
  8508. }
  8509. /* istanbul ignore next */
  8510. return ''
  8511. }
  8512. function concat (a, b) {
  8513. return a ? b ? (a + ' ' + b) : a : (b || '')
  8514. }
  8515. function stringifyClass (value) {
  8516. if (Array.isArray(value)) {
  8517. return stringifyArray(value)
  8518. }
  8519. if (isObject(value)) {
  8520. return stringifyObject(value)
  8521. }
  8522. if (typeof value === 'string') {
  8523. return value
  8524. }
  8525. /* istanbul ignore next */
  8526. return ''
  8527. }
  8528. function stringifyArray (value) {
  8529. var res = '';
  8530. var stringified;
  8531. for (var i = 0, l = value.length; i < l; i++) {
  8532. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  8533. if (res) { res += ' '; }
  8534. res += stringified;
  8535. }
  8536. }
  8537. return res
  8538. }
  8539. function stringifyObject (value) {
  8540. var res = '';
  8541. for (var key in value) {
  8542. if (value[key]) {
  8543. if (res) { res += ' '; }
  8544. res += key;
  8545. }
  8546. }
  8547. return res
  8548. }
  8549. /* */
  8550. var parseStyleText = cached(function (cssText) {
  8551. var res = {};
  8552. var listDelimiter = /;(?![^(]*\))/g;
  8553. var propertyDelimiter = /:(.+)/;
  8554. cssText.split(listDelimiter).forEach(function (item) {
  8555. if (item) {
  8556. var tmp = item.split(propertyDelimiter);
  8557. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  8558. }
  8559. });
  8560. return res
  8561. });
  8562. // normalize possible array / string values into Object
  8563. function normalizeStyleBinding (bindingStyle) {
  8564. if (Array.isArray(bindingStyle)) {
  8565. return toObject(bindingStyle)
  8566. }
  8567. if (typeof bindingStyle === 'string') {
  8568. return parseStyleText(bindingStyle)
  8569. }
  8570. return bindingStyle
  8571. }
  8572. /* */
  8573. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  8574. function getTarget(obj, path) {
  8575. var parts = path.split('.');
  8576. var key = parts[0];
  8577. if (key.indexOf('__$n') === 0) { //number index
  8578. key = parseInt(key.replace('__$n', ''));
  8579. }
  8580. if (parts.length === 1) {
  8581. return obj[key]
  8582. }
  8583. return getTarget(obj[key], parts.slice(1).join('.'))
  8584. }
  8585. function internalMixin(Vue) {
  8586. Vue.config.errorHandler = function(err, vm, info) {
  8587. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  8588. console.error(err);
  8589. /* eslint-disable no-undef */
  8590. var app = typeof getApp === 'function' && getApp();
  8591. if (app && app.onError) {
  8592. app.onError(err);
  8593. }
  8594. };
  8595. var oldEmit = Vue.prototype.$emit;
  8596. Vue.prototype.$emit = function(event) {
  8597. if (this.$scope && event) {
  8598. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  8599. if (triggerEvent) {
  8600. try {
  8601. triggerEvent.call(this.$scope, event, {
  8602. __args__: toArray(arguments, 1)
  8603. });
  8604. } catch (error) {
  8605. }
  8606. }
  8607. }
  8608. return oldEmit.apply(this, arguments)
  8609. };
  8610. Vue.prototype.$nextTick = function(fn) {
  8611. return nextTick$1(this, fn)
  8612. };
  8613. MP_METHODS.forEach(function (method) {
  8614. Vue.prototype[method] = function(args) {
  8615. if (this.$scope && this.$scope[method]) {
  8616. return this.$scope[method](args)
  8617. }
  8618. // mp-alipay
  8619. if (typeof my === 'undefined') {
  8620. return
  8621. }
  8622. if (method === 'createSelectorQuery') {
  8623. /* eslint-disable no-undef */
  8624. return my.createSelectorQuery(args)
  8625. } else if (method === 'createIntersectionObserver') {
  8626. /* eslint-disable no-undef */
  8627. return my.createIntersectionObserver(args)
  8628. }
  8629. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  8630. };
  8631. });
  8632. Vue.prototype.__init_provide = initProvide;
  8633. Vue.prototype.__init_injections = initInjections;
  8634. Vue.prototype.__call_hook = function(hook, args) {
  8635. var vm = this;
  8636. // #7573 disable dep collection when invoking lifecycle hooks
  8637. pushTarget();
  8638. var handlers = vm.$options[hook];
  8639. var info = hook + " hook";
  8640. var ret;
  8641. if (handlers) {
  8642. for (var i = 0, j = handlers.length; i < j; i++) {
  8643. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  8644. }
  8645. }
  8646. if (vm._hasHookEvent) {
  8647. vm.$emit('hook:' + hook, args);
  8648. }
  8649. popTarget();
  8650. return ret
  8651. };
  8652. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  8653. if (Array.isArray(modifiers)) {
  8654. if (modifiers.indexOf('trim') !== -1) {
  8655. value = value.trim();
  8656. }
  8657. if (modifiers.indexOf('number') !== -1) {
  8658. value = this._n(value);
  8659. }
  8660. }
  8661. if (!target) {
  8662. target = this;
  8663. }
  8664. // 解决动态属性添加
  8665. Vue.set(target, key, value);
  8666. };
  8667. Vue.prototype.__set_sync = function(target, key, value) {
  8668. if (!target) {
  8669. target = this;
  8670. }
  8671. // 解决动态属性添加
  8672. Vue.set(target, key, value);
  8673. };
  8674. Vue.prototype.__get_orig = function(item) {
  8675. if (isPlainObject(item)) {
  8676. return item['$orig'] || item
  8677. }
  8678. return item
  8679. };
  8680. Vue.prototype.__get_value = function(dataPath, target) {
  8681. return getTarget(target || this, dataPath)
  8682. };
  8683. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  8684. return renderClass(staticClass, dynamicClass)
  8685. };
  8686. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  8687. if (!dynamicStyle && !staticStyle) {
  8688. return ''
  8689. }
  8690. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  8691. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  8692. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  8693. };
  8694. Vue.prototype.__map = function(val, iteratee) {
  8695. //TODO 暂不考虑 string
  8696. var ret, i, l, keys, key;
  8697. if (Array.isArray(val)) {
  8698. ret = new Array(val.length);
  8699. for (i = 0, l = val.length; i < l; i++) {
  8700. ret[i] = iteratee(val[i], i);
  8701. }
  8702. return ret
  8703. } else if (isObject(val)) {
  8704. keys = Object.keys(val);
  8705. ret = Object.create(null);
  8706. for (i = 0, l = keys.length; i < l; i++) {
  8707. key = keys[i];
  8708. ret[key] = iteratee(val[key], key, i);
  8709. }
  8710. return ret
  8711. } else if (typeof val === 'number') {
  8712. ret = new Array(val);
  8713. for (i = 0, l = val; i < l; i++) {
  8714. // 第一个参数暂时仍和小程序一致
  8715. ret[i] = iteratee(i, i);
  8716. }
  8717. return ret
  8718. }
  8719. return []
  8720. };
  8721. }
  8722. /* */
  8723. var LIFECYCLE_HOOKS$1 = [
  8724. //App
  8725. 'onLaunch',
  8726. 'onShow',
  8727. 'onHide',
  8728. 'onUniNViewMessage',
  8729. 'onPageNotFound',
  8730. 'onThemeChange',
  8731. 'onError',
  8732. 'onUnhandledRejection',
  8733. //Page
  8734. 'onInit',
  8735. 'onLoad',
  8736. // 'onShow',
  8737. 'onReady',
  8738. // 'onHide',
  8739. 'onUnload',
  8740. 'onPullDownRefresh',
  8741. 'onReachBottom',
  8742. 'onTabItemTap',
  8743. 'onAddToFavorites',
  8744. 'onShareTimeline',
  8745. 'onShareAppMessage',
  8746. 'onResize',
  8747. 'onPageScroll',
  8748. 'onNavigationBarButtonTap',
  8749. 'onBackPress',
  8750. 'onNavigationBarSearchInputChanged',
  8751. 'onNavigationBarSearchInputConfirmed',
  8752. 'onNavigationBarSearchInputClicked',
  8753. 'onUploadDouyinVideo',
  8754. 'onNFCReadMessage',
  8755. //Component
  8756. // 'onReady', // 兼容旧版本,应该移除该事件
  8757. 'onPageShow',
  8758. 'onPageHide',
  8759. 'onPageResize'
  8760. ];
  8761. function lifecycleMixin$1(Vue) {
  8762. //fixed vue-class-component
  8763. var oldExtend = Vue.extend;
  8764. Vue.extend = function(extendOptions) {
  8765. extendOptions = extendOptions || {};
  8766. var methods = extendOptions.methods;
  8767. if (methods) {
  8768. Object.keys(methods).forEach(function (methodName) {
  8769. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  8770. extendOptions[methodName] = methods[methodName];
  8771. delete methods[methodName];
  8772. }
  8773. });
  8774. }
  8775. return oldExtend.call(this, extendOptions)
  8776. };
  8777. var strategies = Vue.config.optionMergeStrategies;
  8778. var mergeHook = strategies.created;
  8779. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  8780. strategies[hook] = mergeHook;
  8781. });
  8782. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  8783. }
  8784. /* */
  8785. // install platform patch function
  8786. Vue.prototype.__patch__ = patch;
  8787. // public mount method
  8788. Vue.prototype.$mount = function(
  8789. el ,
  8790. hydrating
  8791. ) {
  8792. return mountComponent$1(this, el, hydrating)
  8793. };
  8794. lifecycleMixin$1(Vue);
  8795. internalMixin(Vue);
  8796. /* */
  8797. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  8798. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  8799. /***/ }),
  8800. /* 26 */
  8801. /*!*********************************!*\
  8802. !*** D:/yj-register/pages.json ***!
  8803. \*********************************/
  8804. /*! no static exports found */
  8805. /***/ (function(module, exports) {
  8806. /***/ }),
  8807. /* 27 */,
  8808. /* 28 */,
  8809. /* 29 */,
  8810. /* 30 */,
  8811. /* 31 */,
  8812. /* 32 */
  8813. /*!**********************************************************************************************************!*\
  8814. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  8815. \**********************************************************************************************************/
  8816. /*! exports provided: default */
  8817. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8818. "use strict";
  8819. __webpack_require__.r(__webpack_exports__);
  8820. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  8821. /* globals __VUE_SSR_CONTEXT__ */
  8822. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  8823. // This module is a runtime utility for cleaner component module output and will
  8824. // be included in the final webpack user bundle.
  8825. function normalizeComponent (
  8826. scriptExports,
  8827. render,
  8828. staticRenderFns,
  8829. functionalTemplate,
  8830. injectStyles,
  8831. scopeId,
  8832. moduleIdentifier, /* server only */
  8833. shadowMode, /* vue-cli only */
  8834. components, // fixed by xxxxxx auto components
  8835. renderjs // fixed by xxxxxx renderjs
  8836. ) {
  8837. // Vue.extend constructor export interop
  8838. var options = typeof scriptExports === 'function'
  8839. ? scriptExports.options
  8840. : scriptExports
  8841. // fixed by xxxxxx auto components
  8842. if (components) {
  8843. if (!options.components) {
  8844. options.components = {}
  8845. }
  8846. var hasOwn = Object.prototype.hasOwnProperty
  8847. for (var name in components) {
  8848. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  8849. options.components[name] = components[name]
  8850. }
  8851. }
  8852. }
  8853. // fixed by xxxxxx renderjs
  8854. if (renderjs) {
  8855. if(typeof renderjs.beforeCreate === 'function'){
  8856. renderjs.beforeCreate = [renderjs.beforeCreate]
  8857. }
  8858. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  8859. this[renderjs.__module] = this
  8860. });
  8861. (options.mixins || (options.mixins = [])).push(renderjs)
  8862. }
  8863. // render functions
  8864. if (render) {
  8865. options.render = render
  8866. options.staticRenderFns = staticRenderFns
  8867. options._compiled = true
  8868. }
  8869. // functional template
  8870. if (functionalTemplate) {
  8871. options.functional = true
  8872. }
  8873. // scopedId
  8874. if (scopeId) {
  8875. options._scopeId = 'data-v-' + scopeId
  8876. }
  8877. var hook
  8878. if (moduleIdentifier) { // server build
  8879. hook = function (context) {
  8880. // 2.3 injection
  8881. context =
  8882. context || // cached call
  8883. (this.$vnode && this.$vnode.ssrContext) || // stateful
  8884. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  8885. // 2.2 with runInNewContext: true
  8886. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  8887. context = __VUE_SSR_CONTEXT__
  8888. }
  8889. // inject component styles
  8890. if (injectStyles) {
  8891. injectStyles.call(this, context)
  8892. }
  8893. // register component module identifier for async chunk inferrence
  8894. if (context && context._registeredComponents) {
  8895. context._registeredComponents.add(moduleIdentifier)
  8896. }
  8897. }
  8898. // used by ssr in case component is cached and beforeCreate
  8899. // never gets called
  8900. options._ssrRegister = hook
  8901. } else if (injectStyles) {
  8902. hook = shadowMode
  8903. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  8904. : injectStyles
  8905. }
  8906. if (hook) {
  8907. if (options.functional) {
  8908. // for template-only hot-reload because in that case the render fn doesn't
  8909. // go through the normalizer
  8910. options._injectStyles = hook
  8911. // register for functioal component in vue file
  8912. var originalRender = options.render
  8913. options.render = function renderWithStyleInjection (h, context) {
  8914. hook.call(context)
  8915. return originalRender(h, context)
  8916. }
  8917. } else {
  8918. // inject component registration as beforeCreate hook
  8919. var existing = options.beforeCreate
  8920. options.beforeCreate = existing
  8921. ? [].concat(existing, hook)
  8922. : [hook]
  8923. }
  8924. }
  8925. return {
  8926. exports: scriptExports,
  8927. options: options
  8928. }
  8929. }
  8930. /***/ }),
  8931. /* 33 */
  8932. /*!***********************************************!*\
  8933. !*** D:/yj-register/uni.promisify.adaptor.js ***!
  8934. \***********************************************/
  8935. /*! no static exports found */
  8936. /***/ (function(module, exports, __webpack_require__) {
  8937. /* WEBPACK VAR INJECTION */(function(uni) {var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  8938. uni.addInterceptor({
  8939. returnValue: function returnValue(res) {
  8940. if (!(!!res && (_typeof(res) === "object" || typeof res === "function") && typeof res.then === "function")) {
  8941. return res;
  8942. }
  8943. return new Promise(function (resolve, reject) {
  8944. res.then(function (res) {
  8945. return res[0] ? reject(res[0]) : resolve(res[1]);
  8946. });
  8947. });
  8948. }
  8949. });
  8950. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  8951. /***/ }),
  8952. /* 34 */
  8953. /*!*****************************************************!*\
  8954. !*** D:/yj-register/node_modules/uview-ui/index.js ***!
  8955. \*****************************************************/
  8956. /*! no static exports found */
  8957. /***/ (function(module, exports, __webpack_require__) {
  8958. "use strict";
  8959. /* WEBPACK VAR INJECTION */(function(uni) {
  8960. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  8961. Object.defineProperty(exports, "__esModule", {
  8962. value: true
  8963. });
  8964. exports.default = void 0;
  8965. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  8966. var _mixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mixin.js */ 35));
  8967. var _mpMixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mpMixin.js */ 36));
  8968. var _luchRequest = _interopRequireDefault(__webpack_require__(/*! ./libs/luch-request */ 37));
  8969. var _route = _interopRequireDefault(__webpack_require__(/*! ./libs/util/route.js */ 55));
  8970. var _colorGradient = _interopRequireDefault(__webpack_require__(/*! ./libs/function/colorGradient.js */ 59));
  8971. var _test = _interopRequireDefault(__webpack_require__(/*! ./libs/function/test.js */ 60));
  8972. var _debounce = _interopRequireDefault(__webpack_require__(/*! ./libs/function/debounce.js */ 61));
  8973. var _throttle = _interopRequireDefault(__webpack_require__(/*! ./libs/function/throttle.js */ 62));
  8974. var _index = _interopRequireDefault(__webpack_require__(/*! ./libs/function/index.js */ 63));
  8975. var _config = _interopRequireDefault(__webpack_require__(/*! ./libs/config/config.js */ 66));
  8976. var _props = _interopRequireDefault(__webpack_require__(/*! ./libs/config/props.js */ 67));
  8977. var _zIndex = _interopRequireDefault(__webpack_require__(/*! ./libs/config/zIndex.js */ 157));
  8978. var _color = _interopRequireDefault(__webpack_require__(/*! ./libs/config/color.js */ 115));
  8979. var _platform = _interopRequireDefault(__webpack_require__(/*! ./libs/function/platform */ 158));
  8980. 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; }
  8981. 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; }
  8982. // 看到此报错,是因为没有配置vue.config.js的【transpileDependencies】,详见:https://www.uviewui.com/components/npmSetting.html#_5-cli模式额外配置
  8983. var pleaseSetTranspileDependencies = {},
  8984. babelTest = pleaseSetTranspileDependencies === null || pleaseSetTranspileDependencies === void 0 ? void 0 : pleaseSetTranspileDependencies.test;
  8985. // 引入全局mixin
  8986. var $u = _objectSpread(_objectSpread({
  8987. route: _route.default,
  8988. date: _index.default.timeFormat,
  8989. // 另名date
  8990. colorGradient: _colorGradient.default.colorGradient,
  8991. hexToRgb: _colorGradient.default.hexToRgb,
  8992. rgbToHex: _colorGradient.default.rgbToHex,
  8993. colorToRgba: _colorGradient.default.colorToRgba,
  8994. test: _test.default,
  8995. type: ['primary', 'success', 'error', 'warning', 'info'],
  8996. http: new _luchRequest.default(),
  8997. config: _config.default,
  8998. // uView配置信息相关,比如版本号
  8999. zIndex: _zIndex.default,
  9000. debounce: _debounce.default,
  9001. throttle: _throttle.default,
  9002. mixin: _mixin.default,
  9003. mpMixin: _mpMixin.default,
  9004. props: _props.default
  9005. }, _index.default), {}, {
  9006. color: _color.default,
  9007. platform: _platform.default
  9008. });
  9009. // $u挂载到uni对象上
  9010. uni.$u = $u;
  9011. var install = function install(Vue) {
  9012. // 时间格式化,同时两个名称,date和timeFormat
  9013. Vue.filter('timeFormat', function (timestamp, format) {
  9014. return uni.$u.timeFormat(timestamp, format);
  9015. });
  9016. Vue.filter('date', function (timestamp, format) {
  9017. return uni.$u.timeFormat(timestamp, format);
  9018. });
  9019. // 将多久以前的方法,注入到全局过滤器
  9020. Vue.filter('timeFrom', function (timestamp, format) {
  9021. return uni.$u.timeFrom(timestamp, format);
  9022. });
  9023. // 同时挂载到uni和Vue.prototype中
  9024. // 只有vue,挂载到Vue.prototype才有意义,因为nvue中全局Vue.prototype和Vue.mixin是无效的
  9025. Vue.prototype.$u = $u;
  9026. Vue.mixin(_mixin.default);
  9027. };
  9028. var _default = {
  9029. install: install
  9030. };
  9031. exports.default = _default;
  9032. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9033. /***/ }),
  9034. /* 35 */
  9035. /*!****************************************************************!*\
  9036. !*** D:/yj-register/node_modules/uview-ui/libs/mixin/mixin.js ***!
  9037. \****************************************************************/
  9038. /*! no static exports found */
  9039. /***/ (function(module, exports, __webpack_require__) {
  9040. /* WEBPACK VAR INJECTION */(function(uni) {module.exports = {
  9041. // 定义每个组件都可能需要用到的外部样式以及类名
  9042. props: {
  9043. // 每个组件都有的父组件传递的样式,可以为字符串或者对象形式
  9044. customStyle: {
  9045. type: [Object, String],
  9046. default: function _default() {
  9047. return {};
  9048. }
  9049. },
  9050. customClass: {
  9051. type: String,
  9052. default: ''
  9053. },
  9054. // 跳转的页面路径
  9055. url: {
  9056. type: String,
  9057. default: ''
  9058. },
  9059. // 页面跳转的类型
  9060. linkType: {
  9061. type: String,
  9062. default: 'navigateTo'
  9063. }
  9064. },
  9065. data: function data() {
  9066. return {};
  9067. },
  9068. onLoad: function onLoad() {
  9069. // getRect挂载到$u上,因为这方法需要使用in(this),所以无法把它独立成一个单独的文件导出
  9070. this.$u.getRect = this.$uGetRect;
  9071. },
  9072. created: function created() {
  9073. // 组件当中,只有created声明周期,为了能在组件使用,故也在created中将方法挂载到$u
  9074. this.$u.getRect = this.$uGetRect;
  9075. },
  9076. computed: {
  9077. // 在2.x版本中,将会把$u挂载到uni对象下,导致在模板中无法使用uni.$u.xxx形式
  9078. // 所以这里通过computed计算属性将其附加到this.$u上,就可以在模板或者js中使用uni.$u.xxx
  9079. // 只在nvue环境通过此方式引入完整的$u,其他平台会出现性能问题,非nvue则按需引入(主要原因是props过大)
  9080. $u: function $u() {
  9081. // 在非nvue端,移除props,http,mixin等对象,避免在小程序setData时数据过大影响性能
  9082. return uni.$u.deepMerge(uni.$u, {
  9083. props: undefined,
  9084. http: undefined,
  9085. mixin: undefined
  9086. });
  9087. },
  9088. /**
  9089. * 生成bem规则类名
  9090. * 由于微信小程序,H5,nvue之间绑定class的差异,无法通过:class="[bem()]"的形式进行同用
  9091. * 故采用如下折中做法,最后返回的是数组(一般平台)或字符串(支付宝和字节跳动平台),类似['a', 'b', 'c']或'a b c'的形式
  9092. * @param {String} name 组件名称
  9093. * @param {Array} fixed 一直会存在的类名
  9094. * @param {Array} change 会根据变量值为true或者false而出现或者隐藏的类名
  9095. * @returns {Array|string}
  9096. */
  9097. bem: function bem() {
  9098. return function (name, fixed, change) {
  9099. var _this = this;
  9100. // 类名前缀
  9101. var prefix = "u-".concat(name, "--");
  9102. var classes = {};
  9103. if (fixed) {
  9104. fixed.map(function (item) {
  9105. // 这里的类名,会一直存在
  9106. classes[prefix + _this[item]] = true;
  9107. });
  9108. }
  9109. if (change) {
  9110. change.map(function (item) {
  9111. // 这里的类名,会根据this[item]的值为true或者false,而进行添加或者移除某一个类
  9112. _this[item] ? classes[prefix + item] = _this[item] : delete classes[prefix + item];
  9113. });
  9114. }
  9115. return Object.keys(classes);
  9116. // 支付宝,头条小程序无法动态绑定一个数组类名,否则解析出来的结果会带有",",而导致失效
  9117. };
  9118. }
  9119. },
  9120. methods: {
  9121. // 跳转某一个页面
  9122. openPage: function openPage() {
  9123. var urlKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'url';
  9124. var url = this[urlKey];
  9125. if (url) {
  9126. // 执行类似uni.navigateTo的方法
  9127. uni[this.linkType]({
  9128. url: url
  9129. });
  9130. }
  9131. },
  9132. // 查询节点信息
  9133. // 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
  9134. // 解决办法为在组件根部再套一个没有任何作用的view元素
  9135. $uGetRect: function $uGetRect(selector, all) {
  9136. var _this2 = this;
  9137. return new Promise(function (resolve) {
  9138. uni.createSelectorQuery().in(_this2)[all ? 'selectAll' : 'select'](selector).boundingClientRect(function (rect) {
  9139. if (all && Array.isArray(rect) && rect.length) {
  9140. resolve(rect);
  9141. }
  9142. if (!all && rect) {
  9143. resolve(rect);
  9144. }
  9145. }).exec();
  9146. });
  9147. },
  9148. getParentData: function getParentData() {
  9149. var _this3 = this;
  9150. var parentName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  9151. // 避免在created中去定义parent变量
  9152. if (!this.parent) this.parent = {};
  9153. // 这里的本质原理是,通过获取父组件实例(也即类似u-radio的父组件u-radio-group的this)
  9154. // 将父组件this中对应的参数,赋值给本组件(u-radio的this)的parentData对象中对应的属性
  9155. // 之所以需要这么做,是因为所有端中,头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
  9156. // 此处并不会自动更新子组件的数据,而是依赖父组件u-radio-group去监听data的变化,手动调用更新子组件的方法去重新获取
  9157. this.parent = uni.$u.$parent.call(this, parentName);
  9158. if (this.parent.children) {
  9159. // 如果父组件的children不存在本组件的实例,才将本实例添加到父组件的children中
  9160. this.parent.children.indexOf(this) === -1 && this.parent.children.push(this);
  9161. }
  9162. if (this.parent && this.parentData) {
  9163. // 历遍parentData中的属性,将parent中的同名属性赋值给parentData
  9164. Object.keys(this.parentData).map(function (key) {
  9165. _this3.parentData[key] = _this3.parent[key];
  9166. });
  9167. }
  9168. },
  9169. // 阻止事件冒泡
  9170. preventEvent: function preventEvent(e) {
  9171. e && typeof e.stopPropagation === 'function' && e.stopPropagation();
  9172. },
  9173. // 空操作
  9174. noop: function noop(e) {
  9175. this.preventEvent(e);
  9176. }
  9177. },
  9178. onReachBottom: function onReachBottom() {
  9179. uni.$emit('uOnReachBottom');
  9180. },
  9181. beforeDestroy: function beforeDestroy() {
  9182. var _this4 = this;
  9183. // 判断当前页面是否存在parent和chldren,一般在checkbox和checkbox-group父子联动的场景会有此情况
  9184. // 组件销毁时,移除子组件在父组件children数组中的实例,释放资源,避免数据混乱
  9185. if (this.parent && uni.$u.test.array(this.parent.children)) {
  9186. // 组件销毁时,移除父组件中的children数组中对应的实例
  9187. var childrenList = this.parent.children;
  9188. childrenList.map(function (child, index) {
  9189. // 如果相等,则移除
  9190. if (child === _this4) {
  9191. childrenList.splice(index, 1);
  9192. }
  9193. });
  9194. }
  9195. }
  9196. };
  9197. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9198. /***/ }),
  9199. /* 36 */
  9200. /*!******************************************************************!*\
  9201. !*** D:/yj-register/node_modules/uview-ui/libs/mixin/mpMixin.js ***!
  9202. \******************************************************************/
  9203. /*! no static exports found */
  9204. /***/ (function(module, exports, __webpack_require__) {
  9205. "use strict";
  9206. Object.defineProperty(exports, "__esModule", {
  9207. value: true
  9208. });
  9209. exports.default = void 0;
  9210. var _default = {
  9211. // 将自定义节点设置成虚拟的,更加接近Vue组件的表现,能更好的使用flex属性
  9212. options: {
  9213. virtualHost: true
  9214. }
  9215. };
  9216. exports.default = _default;
  9217. /***/ }),
  9218. /* 37 */
  9219. /*!***********************************************************************!*\
  9220. !*** D:/yj-register/node_modules/uview-ui/libs/luch-request/index.js ***!
  9221. \***********************************************************************/
  9222. /*! no static exports found */
  9223. /***/ (function(module, exports, __webpack_require__) {
  9224. "use strict";
  9225. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9226. Object.defineProperty(exports, "__esModule", {
  9227. value: true
  9228. });
  9229. exports.default = void 0;
  9230. var _Request = _interopRequireDefault(__webpack_require__(/*! ./core/Request */ 38));
  9231. var _default = _Request.default;
  9232. exports.default = _default;
  9233. /***/ }),
  9234. /* 38 */
  9235. /*!******************************************************************************!*\
  9236. !*** D:/yj-register/node_modules/uview-ui/libs/luch-request/core/Request.js ***!
  9237. \******************************************************************************/
  9238. /*! no static exports found */
  9239. /***/ (function(module, exports, __webpack_require__) {
  9240. "use strict";
  9241. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9242. Object.defineProperty(exports, "__esModule", {
  9243. value: true
  9244. });
  9245. exports.default = void 0;
  9246. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9247. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  9248. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  9249. var _dispatchRequest = _interopRequireDefault(__webpack_require__(/*! ./dispatchRequest */ 39));
  9250. var _InterceptorManager = _interopRequireDefault(__webpack_require__(/*! ./InterceptorManager */ 47));
  9251. var _mergeConfig = _interopRequireDefault(__webpack_require__(/*! ./mergeConfig */ 48));
  9252. var _defaults = _interopRequireDefault(__webpack_require__(/*! ./defaults */ 49));
  9253. var _utils = __webpack_require__(/*! ../utils */ 42);
  9254. var _clone = _interopRequireDefault(__webpack_require__(/*! ../utils/clone */ 50));
  9255. 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; }
  9256. 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; }
  9257. var Request = /*#__PURE__*/function () {
  9258. /**
  9259. * @param {Object} arg - 全局配置
  9260. * @param {String} arg.baseURL - 全局根路径
  9261. * @param {Object} arg.header - 全局header
  9262. * @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 全局默认请求方式
  9263. * @param {String} arg.dataType = [json] - 全局默认的dataType
  9264. * @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。支付宝小程序不支持
  9265. * @param {Object} arg.custom - 全局默认的自定义参数
  9266. * @param {Number} arg.timeout - 全局默认的超时时间,单位 ms。默认60000。H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序(2.10.0)、支付宝小程序
  9267. * @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持(HBuilderX 2.3.3+)
  9268. * @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证(cookies)。默认false。仅H5支持(HBuilderX 2.6.15+)
  9269. * @param {Boolean} arg.firstIpv4 - 全DNS解析时优先使用ipv4。默认false。仅 App-Android 支持 (HBuilderX 2.8.0+)
  9270. * @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
  9271. */
  9272. function Request() {
  9273. var arg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9274. (0, _classCallCheck2.default)(this, Request);
  9275. if (!(0, _utils.isPlainObject)(arg)) {
  9276. arg = {};
  9277. console.warn('设置全局参数必须接收一个Object');
  9278. }
  9279. this.config = (0, _clone.default)(_objectSpread(_objectSpread({}, _defaults.default), arg));
  9280. this.interceptors = {
  9281. request: new _InterceptorManager.default(),
  9282. response: new _InterceptorManager.default()
  9283. };
  9284. }
  9285. /**
  9286. * @Function
  9287. * @param {Request~setConfigCallback} f - 设置全局默认配置
  9288. */
  9289. (0, _createClass2.default)(Request, [{
  9290. key: "setConfig",
  9291. value: function setConfig(f) {
  9292. this.config = f(this.config);
  9293. }
  9294. }, {
  9295. key: "middleware",
  9296. value: function middleware(config) {
  9297. config = (0, _mergeConfig.default)(this.config, config);
  9298. var chain = [_dispatchRequest.default, undefined];
  9299. var promise = Promise.resolve(config);
  9300. this.interceptors.request.forEach(function (interceptor) {
  9301. chain.unshift(interceptor.fulfilled, interceptor.rejected);
  9302. });
  9303. this.interceptors.response.forEach(function (interceptor) {
  9304. chain.push(interceptor.fulfilled, interceptor.rejected);
  9305. });
  9306. while (chain.length) {
  9307. promise = promise.then(chain.shift(), chain.shift());
  9308. }
  9309. return promise;
  9310. }
  9311. /**
  9312. * @Function
  9313. * @param {Object} config - 请求配置项
  9314. * @prop {String} options.url - 请求路径
  9315. * @prop {Object} options.data - 请求参数
  9316. * @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 响应的数据类型
  9317. * @prop {Object} [options.dataType = config.dataType] - 如果设为 json,会尝试对返回的数据做一次 JSON.parse
  9318. * @prop {Object} [options.header = config.header] - 请求header
  9319. * @prop {Object} [options.method = config.method] - 请求方法
  9320. * @returns {Promise<unknown>}
  9321. */
  9322. }, {
  9323. key: "request",
  9324. value: function request() {
  9325. var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9326. return this.middleware(config);
  9327. }
  9328. }, {
  9329. key: "get",
  9330. value: function get(url) {
  9331. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9332. return this.middleware(_objectSpread({
  9333. url: url,
  9334. method: 'GET'
  9335. }, options));
  9336. }
  9337. }, {
  9338. key: "post",
  9339. value: function post(url, data) {
  9340. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9341. return this.middleware(_objectSpread({
  9342. url: url,
  9343. data: data,
  9344. method: 'POST'
  9345. }, options));
  9346. }
  9347. }, {
  9348. key: "put",
  9349. value: function put(url, data) {
  9350. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9351. return this.middleware(_objectSpread({
  9352. url: url,
  9353. data: data,
  9354. method: 'PUT'
  9355. }, options));
  9356. }
  9357. }, {
  9358. key: "delete",
  9359. value: function _delete(url, data) {
  9360. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9361. return this.middleware(_objectSpread({
  9362. url: url,
  9363. data: data,
  9364. method: 'DELETE'
  9365. }, options));
  9366. }
  9367. }, {
  9368. key: "connect",
  9369. value: function connect(url, data) {
  9370. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9371. return this.middleware(_objectSpread({
  9372. url: url,
  9373. data: data,
  9374. method: 'CONNECT'
  9375. }, options));
  9376. }
  9377. }, {
  9378. key: "head",
  9379. value: function head(url, data) {
  9380. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9381. return this.middleware(_objectSpread({
  9382. url: url,
  9383. data: data,
  9384. method: 'HEAD'
  9385. }, options));
  9386. }
  9387. }, {
  9388. key: "options",
  9389. value: function options(url, data) {
  9390. var _options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9391. return this.middleware(_objectSpread({
  9392. url: url,
  9393. data: data,
  9394. method: 'OPTIONS'
  9395. }, _options));
  9396. }
  9397. }, {
  9398. key: "trace",
  9399. value: function trace(url, data) {
  9400. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9401. return this.middleware(_objectSpread({
  9402. url: url,
  9403. data: data,
  9404. method: 'TRACE'
  9405. }, options));
  9406. }
  9407. }, {
  9408. key: "upload",
  9409. value: function upload(url) {
  9410. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9411. config.url = url;
  9412. config.method = 'UPLOAD';
  9413. return this.middleware(config);
  9414. }
  9415. }, {
  9416. key: "download",
  9417. value: function download(url) {
  9418. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9419. config.url = url;
  9420. config.method = 'DOWNLOAD';
  9421. return this.middleware(config);
  9422. }
  9423. }]);
  9424. return Request;
  9425. }();
  9426. /**
  9427. * setConfig回调
  9428. * @return {Object} - 返回操作后的config
  9429. * @callback Request~setConfigCallback
  9430. * @param {Object} config - 全局默认config
  9431. */
  9432. exports.default = Request;
  9433. /***/ }),
  9434. /* 39 */
  9435. /*!**************************************************************************************!*\
  9436. !*** D:/yj-register/node_modules/uview-ui/libs/luch-request/core/dispatchRequest.js ***!
  9437. \**************************************************************************************/
  9438. /*! no static exports found */
  9439. /***/ (function(module, exports, __webpack_require__) {
  9440. "use strict";
  9441. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9442. Object.defineProperty(exports, "__esModule", {
  9443. value: true
  9444. });
  9445. exports.default = void 0;
  9446. var _index = _interopRequireDefault(__webpack_require__(/*! ../adapters/index */ 40));
  9447. var _default = function _default(config) {
  9448. return (0, _index.default)(config);
  9449. };
  9450. exports.default = _default;
  9451. /***/ }),
  9452. /* 40 */
  9453. /*!********************************************************************************!*\
  9454. !*** D:/yj-register/node_modules/uview-ui/libs/luch-request/adapters/index.js ***!
  9455. \********************************************************************************/
  9456. /*! no static exports found */
  9457. /***/ (function(module, exports, __webpack_require__) {
  9458. "use strict";
  9459. /* WEBPACK VAR INJECTION */(function(uni) {
  9460. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9461. Object.defineProperty(exports, "__esModule", {
  9462. value: true
  9463. });
  9464. exports.default = void 0;
  9465. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9466. var _buildURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/buildURL */ 41));
  9467. var _buildFullPath = _interopRequireDefault(__webpack_require__(/*! ../core/buildFullPath */ 43));
  9468. var _settle = _interopRequireDefault(__webpack_require__(/*! ../core/settle */ 46));
  9469. var _utils = __webpack_require__(/*! ../utils */ 42);
  9470. 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; }
  9471. 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; }
  9472. /**
  9473. * 返回可选值存在的配置
  9474. * @param {Array} keys - 可选值数组
  9475. * @param {Object} config2 - 配置
  9476. * @return {{}} - 存在的配置项
  9477. */
  9478. var mergeKeys = function mergeKeys(keys, config2) {
  9479. var config = {};
  9480. keys.forEach(function (prop) {
  9481. if (!(0, _utils.isUndefined)(config2[prop])) {
  9482. config[prop] = config2[prop];
  9483. }
  9484. });
  9485. return config;
  9486. };
  9487. var _default = function _default(config) {
  9488. return new Promise(function (resolve, reject) {
  9489. var fullPath = (0, _buildURL.default)((0, _buildFullPath.default)(config.baseURL, config.url), config.params);
  9490. var _config = {
  9491. url: fullPath,
  9492. header: config.header,
  9493. complete: function complete(response) {
  9494. config.fullPath = fullPath;
  9495. response.config = config;
  9496. try {
  9497. // 对可能字符串不是json 的情况容错
  9498. if (typeof response.data === 'string') {
  9499. response.data = JSON.parse(response.data);
  9500. }
  9501. // eslint-disable-next-line no-empty
  9502. } catch (e) {}
  9503. (0, _settle.default)(resolve, reject, response);
  9504. }
  9505. };
  9506. var requestTask;
  9507. if (config.method === 'UPLOAD') {
  9508. delete _config.header['content-type'];
  9509. delete _config.header['Content-Type'];
  9510. var otherConfig = {
  9511. filePath: config.filePath,
  9512. name: config.name
  9513. };
  9514. var optionalKeys = ['formData'];
  9515. requestTask = uni.uploadFile(_objectSpread(_objectSpread(_objectSpread({}, _config), otherConfig), mergeKeys(optionalKeys, config)));
  9516. } else if (config.method === 'DOWNLOAD') {
  9517. requestTask = uni.downloadFile(_config);
  9518. } else {
  9519. var _optionalKeys = ['data', 'method', 'timeout', 'dataType', 'responseType'];
  9520. requestTask = uni.request(_objectSpread(_objectSpread({}, _config), mergeKeys(_optionalKeys, config)));
  9521. }
  9522. if (config.getTask) {
  9523. config.getTask(requestTask, config);
  9524. }
  9525. });
  9526. };
  9527. exports.default = _default;
  9528. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9529. /***/ }),
  9530. /* 41 */
  9531. /*!**********************************************************************************!*\
  9532. !*** D:/yj-register/node_modules/uview-ui/libs/luch-request/helpers/buildURL.js ***!
  9533. \**********************************************************************************/
  9534. /*! no static exports found */
  9535. /***/ (function(module, exports, __webpack_require__) {
  9536. "use strict";
  9537. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  9538. Object.defineProperty(exports, "__esModule", {
  9539. value: true
  9540. });
  9541. exports.default = buildURL;
  9542. var utils = _interopRequireWildcard(__webpack_require__(/*! ../utils */ 42));
  9543. 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); }
  9544. 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; }
  9545. function encode(val) {
  9546. return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
  9547. }
  9548. /**
  9549. * Build a URL by appending params to the end
  9550. *
  9551. * @param {string} url The base of the url (e.g., http://www.google.com)
  9552. * @param {object} [params] The params to be appended
  9553. * @returns {string} The formatted url
  9554. */
  9555. function buildURL(url, params) {
  9556. /* eslint no-param-reassign:0 */
  9557. if (!params) {
  9558. return url;
  9559. }
  9560. var serializedParams;
  9561. if (utils.isURLSearchParams(params)) {
  9562. serializedParams = params.toString();
  9563. } else {
  9564. var parts = [];
  9565. utils.forEach(params, function (val, key) {
  9566. if (val === null || typeof val === 'undefined') {
  9567. return;
  9568. }
  9569. if (utils.isArray(val)) {
  9570. key = "".concat(key, "[]");
  9571. } else {
  9572. val = [val];
  9573. }
  9574. utils.forEach(val, function (v) {
  9575. if (utils.isDate(v)) {
  9576. v = v.toISOString();
  9577. } else if (utils.isObject(v)) {
  9578. v = JSON.stringify(v);
  9579. }
  9580. parts.push("".concat(encode(key), "=").concat(encode(v)));
  9581. });
  9582. });
  9583. serializedParams = parts.join('&');
  9584. }
  9585. if (serializedParams) {
  9586. var hashmarkIndex = url.indexOf('#');
  9587. if (hashmarkIndex !== -1) {
  9588. url = url.slice(0, hashmarkIndex);
  9589. }
  9590. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  9591. }
  9592. return url;
  9593. }
  9594. /***/ }),
  9595. /* 42 */
  9596. /*!***********************************************************************!*\
  9597. !*** D:/yj-register/node_modules/uview-ui/libs/luch-request/utils.js ***!
  9598. \***********************************************************************/
  9599. /*! no static exports found */
  9600. /***/ (function(module, exports, __webpack_require__) {
  9601. "use strict";
  9602. // utils is a library of generic helper functions non-specific to axios
  9603. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9604. Object.defineProperty(exports, "__esModule", {
  9605. value: true
  9606. });
  9607. exports.deepMerge = deepMerge;
  9608. exports.forEach = forEach;
  9609. exports.isArray = isArray;
  9610. exports.isBoolean = isBoolean;
  9611. exports.isDate = isDate;
  9612. exports.isObject = isObject;
  9613. exports.isPlainObject = isPlainObject;
  9614. exports.isURLSearchParams = isURLSearchParams;
  9615. exports.isUndefined = isUndefined;
  9616. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  9617. var toString = Object.prototype.toString;
  9618. /**
  9619. * Determine if a value is an Array
  9620. *
  9621. * @param {Object} val The value to test
  9622. * @returns {boolean} True if value is an Array, otherwise false
  9623. */
  9624. function isArray(val) {
  9625. return toString.call(val) === '[object Array]';
  9626. }
  9627. /**
  9628. * Determine if a value is an Object
  9629. *
  9630. * @param {Object} val The value to test
  9631. * @returns {boolean} True if value is an Object, otherwise false
  9632. */
  9633. function isObject(val) {
  9634. return val !== null && (0, _typeof2.default)(val) === 'object';
  9635. }
  9636. /**
  9637. * Determine if a value is a Date
  9638. *
  9639. * @param {Object} val The value to test
  9640. * @returns {boolean} True if value is a Date, otherwise false
  9641. */
  9642. function isDate(val) {
  9643. return toString.call(val) === '[object Date]';
  9644. }
  9645. /**
  9646. * Determine if a value is a URLSearchParams object
  9647. *
  9648. * @param {Object} val The value to test
  9649. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  9650. */
  9651. function isURLSearchParams(val) {
  9652. return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
  9653. }
  9654. /**
  9655. * Iterate over an Array or an Object invoking a function for each item.
  9656. *
  9657. * If `obj` is an Array callback will be called passing
  9658. * the value, index, and complete array for each item.
  9659. *
  9660. * If 'obj' is an Object callback will be called passing
  9661. * the value, key, and complete object for each property.
  9662. *
  9663. * @param {Object|Array} obj The object to iterate
  9664. * @param {Function} fn The callback to invoke for each item
  9665. */
  9666. function forEach(obj, fn) {
  9667. // Don't bother if no value provided
  9668. if (obj === null || typeof obj === 'undefined') {
  9669. return;
  9670. }
  9671. // Force an array if not already something iterable
  9672. if ((0, _typeof2.default)(obj) !== 'object') {
  9673. /* eslint no-param-reassign:0 */
  9674. obj = [obj];
  9675. }
  9676. if (isArray(obj)) {
  9677. // Iterate over array values
  9678. for (var i = 0, l = obj.length; i < l; i++) {
  9679. fn.call(null, obj[i], i, obj);
  9680. }
  9681. } else {
  9682. // Iterate over object keys
  9683. for (var key in obj) {
  9684. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  9685. fn.call(null, obj[key], key, obj);
  9686. }
  9687. }
  9688. }
  9689. }
  9690. /**
  9691. * 是否为boolean 值
  9692. * @param val
  9693. * @returns {boolean}
  9694. */
  9695. function isBoolean(val) {
  9696. return typeof val === 'boolean';
  9697. }
  9698. /**
  9699. * 是否为真正的对象{} new Object
  9700. * @param {any} obj - 检测的对象
  9701. * @returns {boolean}
  9702. */
  9703. function isPlainObject(obj) {
  9704. return Object.prototype.toString.call(obj) === '[object Object]';
  9705. }
  9706. /**
  9707. * Function equal to merge with the difference being that no reference
  9708. * to original objects is kept.
  9709. *
  9710. * @see merge
  9711. * @param {Object} obj1 Object to merge
  9712. * @returns {Object} Result of all merge properties
  9713. */
  9714. function deepMerge( /* obj1, obj2, obj3, ... */
  9715. ) {
  9716. var result = {};
  9717. function assignValue(val, key) {
  9718. if ((0, _typeof2.default)(result[key]) === 'object' && (0, _typeof2.default)(val) === 'object') {
  9719. result[key] = deepMerge(result[key], val);
  9720. } else if ((0, _typeof2.default)(val) === 'object') {
  9721. result[key] = deepMerge({}, val);
  9722. } else {
  9723. result[key] = val;
  9724. }
  9725. }
  9726. for (var i = 0, l = arguments.length; i < l; i++) {
  9727. forEach(arguments[i], assignValue);
  9728. }
  9729. return result;
  9730. }
  9731. function isUndefined(val) {
  9732. return typeof val === 'undefined';
  9733. }
  9734. /***/ }),
  9735. /* 43 */
  9736. /*!************************************************************************************!*\
  9737. !*** D:/yj-register/node_modules/uview-ui/libs/luch-request/core/buildFullPath.js ***!
  9738. \************************************************************************************/
  9739. /*! no static exports found */
  9740. /***/ (function(module, exports, __webpack_require__) {
  9741. "use strict";
  9742. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9743. Object.defineProperty(exports, "__esModule", {
  9744. value: true
  9745. });
  9746. exports.default = buildFullPath;
  9747. var _isAbsoluteURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/isAbsoluteURL */ 44));
  9748. var _combineURLs = _interopRequireDefault(__webpack_require__(/*! ../helpers/combineURLs */ 45));
  9749. /**
  9750. * Creates a new URL by combining the baseURL with the requestedURL,
  9751. * only when the requestedURL is not already an absolute URL.
  9752. * If the requestURL is absolute, this function returns the requestedURL untouched.
  9753. *
  9754. * @param {string} baseURL The base URL
  9755. * @param {string} requestedURL Absolute or relative URL to combine
  9756. * @returns {string} The combined full path
  9757. */
  9758. function buildFullPath(baseURL, requestedURL) {
  9759. if (baseURL && !(0, _isAbsoluteURL.default)(requestedURL)) {
  9760. return (0, _combineURLs.default)(baseURL, requestedURL);
  9761. }
  9762. return requestedURL;
  9763. }
  9764. /***/ }),
  9765. /* 44 */
  9766. /*!***************************************************************************************!*\
  9767. !*** D:/yj-register/node_modules/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js ***!
  9768. \***************************************************************************************/
  9769. /*! no static exports found */
  9770. /***/ (function(module, exports, __webpack_require__) {
  9771. "use strict";
  9772. /**
  9773. * Determines whether the specified URL is absolute
  9774. *
  9775. * @param {string} url The URL to test
  9776. * @returns {boolean} True if the specified URL is absolute, otherwise false
  9777. */
  9778. Object.defineProperty(exports, "__esModule", {
  9779. value: true
  9780. });
  9781. exports.default = isAbsoluteURL;
  9782. function isAbsoluteURL(url) {
  9783. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  9784. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  9785. // by any combination of letters, digits, plus, period, or hyphen.
  9786. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
  9787. }
  9788. /***/ }),
  9789. /* 45 */
  9790. /*!*************************************************************************************!*\
  9791. !*** D:/yj-register/node_modules/uview-ui/libs/luch-request/helpers/combineURLs.js ***!
  9792. \*************************************************************************************/
  9793. /*! no static exports found */
  9794. /***/ (function(module, exports, __webpack_require__) {
  9795. "use strict";
  9796. /**
  9797. * Creates a new URL by combining the specified URLs
  9798. *
  9799. * @param {string} baseURL The base URL
  9800. * @param {string} relativeURL The relative URL
  9801. * @returns {string} The combined URL
  9802. */
  9803. Object.defineProperty(exports, "__esModule", {
  9804. value: true
  9805. });
  9806. exports.default = combineURLs;
  9807. function combineURLs(baseURL, relativeURL) {
  9808. return relativeURL ? "".concat(baseURL.replace(/\/+$/, ''), "/").concat(relativeURL.replace(/^\/+/, '')) : baseURL;
  9809. }
  9810. /***/ }),
  9811. /* 46 */
  9812. /*!*****************************************************************************!*\
  9813. !*** D:/yj-register/node_modules/uview-ui/libs/luch-request/core/settle.js ***!
  9814. \*****************************************************************************/
  9815. /*! no static exports found */
  9816. /***/ (function(module, exports, __webpack_require__) {
  9817. "use strict";
  9818. Object.defineProperty(exports, "__esModule", {
  9819. value: true
  9820. });
  9821. exports.default = settle;
  9822. /**
  9823. * Resolve or reject a Promise based on response status.
  9824. *
  9825. * @param {Function} resolve A function that resolves the promise.
  9826. * @param {Function} reject A function that rejects the promise.
  9827. * @param {object} response The response.
  9828. */
  9829. function settle(resolve, reject, response) {
  9830. var validateStatus = response.config.validateStatus;
  9831. var status = response.statusCode;
  9832. if (status && (!validateStatus || validateStatus(status))) {
  9833. resolve(response);
  9834. } else {
  9835. reject(response);
  9836. }
  9837. }
  9838. /***/ }),
  9839. /* 47 */
  9840. /*!*****************************************************************************************!*\
  9841. !*** D:/yj-register/node_modules/uview-ui/libs/luch-request/core/InterceptorManager.js ***!
  9842. \*****************************************************************************************/
  9843. /*! no static exports found */
  9844. /***/ (function(module, exports, __webpack_require__) {
  9845. "use strict";
  9846. Object.defineProperty(exports, "__esModule", {
  9847. value: true
  9848. });
  9849. exports.default = void 0;
  9850. function InterceptorManager() {
  9851. this.handlers = [];
  9852. }
  9853. /**
  9854. * Add a new interceptor to the stack
  9855. *
  9856. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  9857. * @param {Function} rejected The function to handle `reject` for a `Promise`
  9858. *
  9859. * @return {Number} An ID used to remove interceptor later
  9860. */
  9861. InterceptorManager.prototype.use = function use(fulfilled, rejected) {
  9862. this.handlers.push({
  9863. fulfilled: fulfilled,
  9864. rejected: rejected
  9865. });
  9866. return this.handlers.length - 1;
  9867. };
  9868. /**
  9869. * Remove an interceptor from the stack
  9870. *
  9871. * @param {Number} id The ID that was returned by `use`
  9872. */
  9873. InterceptorManager.prototype.eject = function eject(id) {
  9874. if (this.handlers[id]) {
  9875. this.handlers[id] = null;
  9876. }
  9877. };
  9878. /**
  9879. * Iterate over all the registered interceptors
  9880. *
  9881. * This method is particularly useful for skipping over any
  9882. * interceptors that may have become `null` calling `eject`.
  9883. *
  9884. * @param {Function} fn The function to call for each interceptor
  9885. */
  9886. InterceptorManager.prototype.forEach = function forEach(fn) {
  9887. this.handlers.forEach(function (h) {
  9888. if (h !== null) {
  9889. fn(h);
  9890. }
  9891. });
  9892. };
  9893. var _default = InterceptorManager;
  9894. exports.default = _default;
  9895. /***/ }),
  9896. /* 48 */
  9897. /*!**********************************************************************************!*\
  9898. !*** D:/yj-register/node_modules/uview-ui/libs/luch-request/core/mergeConfig.js ***!
  9899. \**********************************************************************************/
  9900. /*! no static exports found */
  9901. /***/ (function(module, exports, __webpack_require__) {
  9902. "use strict";
  9903. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9904. Object.defineProperty(exports, "__esModule", {
  9905. value: true
  9906. });
  9907. exports.default = void 0;
  9908. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9909. var _utils = __webpack_require__(/*! ../utils */ 42);
  9910. 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; }
  9911. 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; }
  9912. /**
  9913. * 合并局部配置优先的配置,如果局部有该配置项则用局部,如果全局有该配置项则用全局
  9914. * @param {Array} keys - 配置项
  9915. * @param {Object} globalsConfig - 当前的全局配置
  9916. * @param {Object} config2 - 局部配置
  9917. * @return {{}}
  9918. */
  9919. var mergeKeys = function mergeKeys(keys, globalsConfig, config2) {
  9920. var config = {};
  9921. keys.forEach(function (prop) {
  9922. if (!(0, _utils.isUndefined)(config2[prop])) {
  9923. config[prop] = config2[prop];
  9924. } else if (!(0, _utils.isUndefined)(globalsConfig[prop])) {
  9925. config[prop] = globalsConfig[prop];
  9926. }
  9927. });
  9928. return config;
  9929. };
  9930. /**
  9931. *
  9932. * @param globalsConfig - 当前实例的全局配置
  9933. * @param config2 - 当前的局部配置
  9934. * @return - 合并后的配置
  9935. */
  9936. var _default = function _default(globalsConfig) {
  9937. var config2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9938. var method = config2.method || globalsConfig.method || 'GET';
  9939. var config = {
  9940. baseURL: globalsConfig.baseURL || '',
  9941. method: method,
  9942. url: config2.url || '',
  9943. params: config2.params || {},
  9944. custom: _objectSpread(_objectSpread({}, globalsConfig.custom || {}), config2.custom || {}),
  9945. header: (0, _utils.deepMerge)(globalsConfig.header || {}, config2.header || {})
  9946. };
  9947. var defaultToConfig2Keys = ['getTask', 'validateStatus'];
  9948. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultToConfig2Keys, globalsConfig, config2));
  9949. // eslint-disable-next-line no-empty
  9950. if (method === 'DOWNLOAD') {} else if (method === 'UPLOAD') {
  9951. delete config.header['content-type'];
  9952. delete config.header['Content-Type'];
  9953. var uploadKeys = ['filePath', 'name', 'formData'];
  9954. uploadKeys.forEach(function (prop) {
  9955. if (!(0, _utils.isUndefined)(config2[prop])) {
  9956. config[prop] = config2[prop];
  9957. }
  9958. });
  9959. } else {
  9960. var defaultsKeys = ['data', 'timeout', 'dataType', 'responseType'];
  9961. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultsKeys, globalsConfig, config2));
  9962. }
  9963. return config;
  9964. };
  9965. exports.default = _default;
  9966. /***/ }),
  9967. /* 49 */
  9968. /*!*******************************************************************************!*\
  9969. !*** D:/yj-register/node_modules/uview-ui/libs/luch-request/core/defaults.js ***!
  9970. \*******************************************************************************/
  9971. /*! no static exports found */
  9972. /***/ (function(module, exports, __webpack_require__) {
  9973. "use strict";
  9974. Object.defineProperty(exports, "__esModule", {
  9975. value: true
  9976. });
  9977. exports.default = void 0;
  9978. /**
  9979. * 默认的全局配置
  9980. */
  9981. var _default = {
  9982. baseURL: '',
  9983. header: {},
  9984. method: 'GET',
  9985. dataType: 'json',
  9986. responseType: 'text',
  9987. custom: {},
  9988. timeout: 60000,
  9989. validateStatus: function validateStatus(status) {
  9990. return status >= 200 && status < 300;
  9991. }
  9992. };
  9993. exports.default = _default;
  9994. /***/ }),
  9995. /* 50 */
  9996. /*!*****************************************************************************!*\
  9997. !*** D:/yj-register/node_modules/uview-ui/libs/luch-request/utils/clone.js ***!
  9998. \*****************************************************************************/
  9999. /*! no static exports found */
  10000. /***/ (function(module, exports, __webpack_require__) {
  10001. "use strict";
  10002. /* WEBPACK VAR INJECTION */(function(Buffer) {
  10003. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10004. Object.defineProperty(exports, "__esModule", {
  10005. value: true
  10006. });
  10007. exports.default = void 0;
  10008. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  10009. /* eslint-disable */
  10010. var clone = function () {
  10011. 'use strict';
  10012. function _instanceof(obj, type) {
  10013. return type != null && obj instanceof type;
  10014. }
  10015. var nativeMap;
  10016. try {
  10017. nativeMap = Map;
  10018. } catch (_) {
  10019. // maybe a reference error because no `Map`. Give it a dummy value that no
  10020. // value will ever be an instanceof.
  10021. nativeMap = function nativeMap() {};
  10022. }
  10023. var nativeSet;
  10024. try {
  10025. nativeSet = Set;
  10026. } catch (_) {
  10027. nativeSet = function nativeSet() {};
  10028. }
  10029. var nativePromise;
  10030. try {
  10031. nativePromise = Promise;
  10032. } catch (_) {
  10033. nativePromise = function nativePromise() {};
  10034. }
  10035. /**
  10036. * Clones (copies) an Object using deep copying.
  10037. *
  10038. * This function supports circular references by default, but if you are certain
  10039. * there are no circular references in your object, you can save some CPU time
  10040. * by calling clone(obj, false).
  10041. *
  10042. * Caution: if `circular` is false and `parent` contains circular references,
  10043. * your program may enter an infinite loop and crash.
  10044. *
  10045. * @param `parent` - the object to be cloned
  10046. * @param `circular` - set to true if the object to be cloned may contain
  10047. * circular references. (optional - true by default)
  10048. * @param `depth` - set to a number if the object is only to be cloned to
  10049. * a particular depth. (optional - defaults to Infinity)
  10050. * @param `prototype` - sets the prototype to be used when cloning an object.
  10051. * (optional - defaults to parent prototype).
  10052. * @param `includeNonEnumerable` - set to true if the non-enumerable properties
  10053. * should be cloned as well. Non-enumerable properties on the prototype
  10054. * chain will be ignored. (optional - false by default)
  10055. */
  10056. function clone(parent, circular, depth, prototype, includeNonEnumerable) {
  10057. if ((0, _typeof2.default)(circular) === 'object') {
  10058. depth = circular.depth;
  10059. prototype = circular.prototype;
  10060. includeNonEnumerable = circular.includeNonEnumerable;
  10061. circular = circular.circular;
  10062. }
  10063. // maintain two arrays for circular references, where corresponding parents
  10064. // and children have the same index
  10065. var allParents = [];
  10066. var allChildren = [];
  10067. var useBuffer = typeof Buffer != 'undefined';
  10068. if (typeof circular == 'undefined') circular = true;
  10069. if (typeof depth == 'undefined') depth = Infinity;
  10070. // recurse this function so we don't reset allParents and allChildren
  10071. function _clone(parent, depth) {
  10072. // cloning null always returns null
  10073. if (parent === null) return null;
  10074. if (depth === 0) return parent;
  10075. var child;
  10076. var proto;
  10077. if ((0, _typeof2.default)(parent) != 'object') {
  10078. return parent;
  10079. }
  10080. if (_instanceof(parent, nativeMap)) {
  10081. child = new nativeMap();
  10082. } else if (_instanceof(parent, nativeSet)) {
  10083. child = new nativeSet();
  10084. } else if (_instanceof(parent, nativePromise)) {
  10085. child = new nativePromise(function (resolve, reject) {
  10086. parent.then(function (value) {
  10087. resolve(_clone(value, depth - 1));
  10088. }, function (err) {
  10089. reject(_clone(err, depth - 1));
  10090. });
  10091. });
  10092. } else if (clone.__isArray(parent)) {
  10093. child = [];
  10094. } else if (clone.__isRegExp(parent)) {
  10095. child = new RegExp(parent.source, __getRegExpFlags(parent));
  10096. if (parent.lastIndex) child.lastIndex = parent.lastIndex;
  10097. } else if (clone.__isDate(parent)) {
  10098. child = new Date(parent.getTime());
  10099. } else if (useBuffer && Buffer.isBuffer(parent)) {
  10100. if (Buffer.from) {
  10101. // Node.js >= 5.10.0
  10102. child = Buffer.from(parent);
  10103. } else {
  10104. // Older Node.js versions
  10105. child = new Buffer(parent.length);
  10106. parent.copy(child);
  10107. }
  10108. return child;
  10109. } else if (_instanceof(parent, Error)) {
  10110. child = Object.create(parent);
  10111. } else {
  10112. if (typeof prototype == 'undefined') {
  10113. proto = Object.getPrototypeOf(parent);
  10114. child = Object.create(proto);
  10115. } else {
  10116. child = Object.create(prototype);
  10117. proto = prototype;
  10118. }
  10119. }
  10120. if (circular) {
  10121. var index = allParents.indexOf(parent);
  10122. if (index != -1) {
  10123. return allChildren[index];
  10124. }
  10125. allParents.push(parent);
  10126. allChildren.push(child);
  10127. }
  10128. if (_instanceof(parent, nativeMap)) {
  10129. parent.forEach(function (value, key) {
  10130. var keyChild = _clone(key, depth - 1);
  10131. var valueChild = _clone(value, depth - 1);
  10132. child.set(keyChild, valueChild);
  10133. });
  10134. }
  10135. if (_instanceof(parent, nativeSet)) {
  10136. parent.forEach(function (value) {
  10137. var entryChild = _clone(value, depth - 1);
  10138. child.add(entryChild);
  10139. });
  10140. }
  10141. for (var i in parent) {
  10142. var attrs = Object.getOwnPropertyDescriptor(parent, i);
  10143. if (attrs) {
  10144. child[i] = _clone(parent[i], depth - 1);
  10145. }
  10146. try {
  10147. var objProperty = Object.getOwnPropertyDescriptor(parent, i);
  10148. if (objProperty.set === 'undefined') {
  10149. // no setter defined. Skip cloning this property
  10150. continue;
  10151. }
  10152. child[i] = _clone(parent[i], depth - 1);
  10153. } catch (e) {
  10154. if (e instanceof TypeError) {
  10155. // when in strict mode, TypeError will be thrown if child[i] property only has a getter
  10156. // we can't do anything about this, other than inform the user that this property cannot be set.
  10157. continue;
  10158. } else if (e instanceof ReferenceError) {
  10159. //this may happen in non strict mode
  10160. continue;
  10161. }
  10162. }
  10163. }
  10164. if (Object.getOwnPropertySymbols) {
  10165. var symbols = Object.getOwnPropertySymbols(parent);
  10166. for (var i = 0; i < symbols.length; i++) {
  10167. // Don't need to worry about cloning a symbol because it is a primitive,
  10168. // like a number or string.
  10169. var symbol = symbols[i];
  10170. var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);
  10171. if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
  10172. continue;
  10173. }
  10174. child[symbol] = _clone(parent[symbol], depth - 1);
  10175. Object.defineProperty(child, symbol, descriptor);
  10176. }
  10177. }
  10178. if (includeNonEnumerable) {
  10179. var allPropertyNames = Object.getOwnPropertyNames(parent);
  10180. for (var i = 0; i < allPropertyNames.length; i++) {
  10181. var propertyName = allPropertyNames[i];
  10182. var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);
  10183. if (descriptor && descriptor.enumerable) {
  10184. continue;
  10185. }
  10186. child[propertyName] = _clone(parent[propertyName], depth - 1);
  10187. Object.defineProperty(child, propertyName, descriptor);
  10188. }
  10189. }
  10190. return child;
  10191. }
  10192. return _clone(parent, depth);
  10193. }
  10194. /**
  10195. * Simple flat clone using prototype, accepts only objects, usefull for property
  10196. * override on FLAT configuration object (no nested props).
  10197. *
  10198. * USE WITH CAUTION! This may not behave as you wish if you do not know how this
  10199. * works.
  10200. */
  10201. clone.clonePrototype = function clonePrototype(parent) {
  10202. if (parent === null) return null;
  10203. var c = function c() {};
  10204. c.prototype = parent;
  10205. return new c();
  10206. };
  10207. // private utility functions
  10208. function __objToStr(o) {
  10209. return Object.prototype.toString.call(o);
  10210. }
  10211. clone.__objToStr = __objToStr;
  10212. function __isDate(o) {
  10213. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Date]';
  10214. }
  10215. clone.__isDate = __isDate;
  10216. function __isArray(o) {
  10217. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Array]';
  10218. }
  10219. clone.__isArray = __isArray;
  10220. function __isRegExp(o) {
  10221. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object RegExp]';
  10222. }
  10223. clone.__isRegExp = __isRegExp;
  10224. function __getRegExpFlags(re) {
  10225. var flags = '';
  10226. if (re.global) flags += 'g';
  10227. if (re.ignoreCase) flags += 'i';
  10228. if (re.multiline) flags += 'm';
  10229. return flags;
  10230. }
  10231. clone.__getRegExpFlags = __getRegExpFlags;
  10232. return clone;
  10233. }();
  10234. var _default = clone;
  10235. exports.default = _default;
  10236. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/buffer/index.js */ 51).Buffer))
  10237. /***/ }),
  10238. /* 51 */
  10239. /*!**************************************!*\
  10240. !*** ./node_modules/buffer/index.js ***!
  10241. \**************************************/
  10242. /*! no static exports found */
  10243. /***/ (function(module, exports, __webpack_require__) {
  10244. "use strict";
  10245. /* WEBPACK VAR INJECTION */(function(global) {/*!
  10246. * The buffer module from node.js, for the browser.
  10247. *
  10248. * @author Feross Aboukhadijeh <http://feross.org>
  10249. * @license MIT
  10250. */
  10251. /* eslint-disable no-proto */
  10252. var base64 = __webpack_require__(/*! base64-js */ 52)
  10253. var ieee754 = __webpack_require__(/*! ieee754 */ 53)
  10254. var isArray = __webpack_require__(/*! isarray */ 54)
  10255. exports.Buffer = Buffer
  10256. exports.SlowBuffer = SlowBuffer
  10257. exports.INSPECT_MAX_BYTES = 50
  10258. /**
  10259. * If `Buffer.TYPED_ARRAY_SUPPORT`:
  10260. * === true Use Uint8Array implementation (fastest)
  10261. * === false Use Object implementation (most compatible, even IE6)
  10262. *
  10263. * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
  10264. * Opera 11.6+, iOS 4.2+.
  10265. *
  10266. * Due to various browser bugs, sometimes the Object implementation will be used even
  10267. * when the browser supports typed arrays.
  10268. *
  10269. * Note:
  10270. *
  10271. * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
  10272. * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
  10273. *
  10274. * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
  10275. *
  10276. * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
  10277. * incorrect length in some situations.
  10278. * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
  10279. * get the Object implementation, which is slower but behaves correctly.
  10280. */
  10281. Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
  10282. ? global.TYPED_ARRAY_SUPPORT
  10283. : typedArraySupport()
  10284. /*
  10285. * Export kMaxLength after typed array support is determined.
  10286. */
  10287. exports.kMaxLength = kMaxLength()
  10288. function typedArraySupport () {
  10289. try {
  10290. var arr = new Uint8Array(1)
  10291. arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
  10292. return arr.foo() === 42 && // typed array instances can be augmented
  10293. typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
  10294. arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
  10295. } catch (e) {
  10296. return false
  10297. }
  10298. }
  10299. function kMaxLength () {
  10300. return Buffer.TYPED_ARRAY_SUPPORT
  10301. ? 0x7fffffff
  10302. : 0x3fffffff
  10303. }
  10304. function createBuffer (that, length) {
  10305. if (kMaxLength() < length) {
  10306. throw new RangeError('Invalid typed array length')
  10307. }
  10308. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10309. // Return an augmented `Uint8Array` instance, for best performance
  10310. that = new Uint8Array(length)
  10311. that.__proto__ = Buffer.prototype
  10312. } else {
  10313. // Fallback: Return an object instance of the Buffer class
  10314. if (that === null) {
  10315. that = new Buffer(length)
  10316. }
  10317. that.length = length
  10318. }
  10319. return that
  10320. }
  10321. /**
  10322. * The Buffer constructor returns instances of `Uint8Array` that have their
  10323. * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
  10324. * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
  10325. * and the `Uint8Array` methods. Square bracket notation works as expected -- it
  10326. * returns a single octet.
  10327. *
  10328. * The `Uint8Array` prototype remains unmodified.
  10329. */
  10330. function Buffer (arg, encodingOrOffset, length) {
  10331. if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
  10332. return new Buffer(arg, encodingOrOffset, length)
  10333. }
  10334. // Common case.
  10335. if (typeof arg === 'number') {
  10336. if (typeof encodingOrOffset === 'string') {
  10337. throw new Error(
  10338. 'If encoding is specified then the first argument must be a string'
  10339. )
  10340. }
  10341. return allocUnsafe(this, arg)
  10342. }
  10343. return from(this, arg, encodingOrOffset, length)
  10344. }
  10345. Buffer.poolSize = 8192 // not used by this implementation
  10346. // TODO: Legacy, not needed anymore. Remove in next major version.
  10347. Buffer._augment = function (arr) {
  10348. arr.__proto__ = Buffer.prototype
  10349. return arr
  10350. }
  10351. function from (that, value, encodingOrOffset, length) {
  10352. if (typeof value === 'number') {
  10353. throw new TypeError('"value" argument must not be a number')
  10354. }
  10355. if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
  10356. return fromArrayBuffer(that, value, encodingOrOffset, length)
  10357. }
  10358. if (typeof value === 'string') {
  10359. return fromString(that, value, encodingOrOffset)
  10360. }
  10361. return fromObject(that, value)
  10362. }
  10363. /**
  10364. * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
  10365. * if value is a number.
  10366. * Buffer.from(str[, encoding])
  10367. * Buffer.from(array)
  10368. * Buffer.from(buffer)
  10369. * Buffer.from(arrayBuffer[, byteOffset[, length]])
  10370. **/
  10371. Buffer.from = function (value, encodingOrOffset, length) {
  10372. return from(null, value, encodingOrOffset, length)
  10373. }
  10374. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10375. Buffer.prototype.__proto__ = Uint8Array.prototype
  10376. Buffer.__proto__ = Uint8Array
  10377. if (typeof Symbol !== 'undefined' && Symbol.species &&
  10378. Buffer[Symbol.species] === Buffer) {
  10379. // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
  10380. Object.defineProperty(Buffer, Symbol.species, {
  10381. value: null,
  10382. configurable: true
  10383. })
  10384. }
  10385. }
  10386. function assertSize (size) {
  10387. if (typeof size !== 'number') {
  10388. throw new TypeError('"size" argument must be a number')
  10389. } else if (size < 0) {
  10390. throw new RangeError('"size" argument must not be negative')
  10391. }
  10392. }
  10393. function alloc (that, size, fill, encoding) {
  10394. assertSize(size)
  10395. if (size <= 0) {
  10396. return createBuffer(that, size)
  10397. }
  10398. if (fill !== undefined) {
  10399. // Only pay attention to encoding if it's a string. This
  10400. // prevents accidentally sending in a number that would
  10401. // be interpretted as a start offset.
  10402. return typeof encoding === 'string'
  10403. ? createBuffer(that, size).fill(fill, encoding)
  10404. : createBuffer(that, size).fill(fill)
  10405. }
  10406. return createBuffer(that, size)
  10407. }
  10408. /**
  10409. * Creates a new filled Buffer instance.
  10410. * alloc(size[, fill[, encoding]])
  10411. **/
  10412. Buffer.alloc = function (size, fill, encoding) {
  10413. return alloc(null, size, fill, encoding)
  10414. }
  10415. function allocUnsafe (that, size) {
  10416. assertSize(size)
  10417. that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
  10418. if (!Buffer.TYPED_ARRAY_SUPPORT) {
  10419. for (var i = 0; i < size; ++i) {
  10420. that[i] = 0
  10421. }
  10422. }
  10423. return that
  10424. }
  10425. /**
  10426. * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
  10427. * */
  10428. Buffer.allocUnsafe = function (size) {
  10429. return allocUnsafe(null, size)
  10430. }
  10431. /**
  10432. * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
  10433. */
  10434. Buffer.allocUnsafeSlow = function (size) {
  10435. return allocUnsafe(null, size)
  10436. }
  10437. function fromString (that, string, encoding) {
  10438. if (typeof encoding !== 'string' || encoding === '') {
  10439. encoding = 'utf8'
  10440. }
  10441. if (!Buffer.isEncoding(encoding)) {
  10442. throw new TypeError('"encoding" must be a valid string encoding')
  10443. }
  10444. var length = byteLength(string, encoding) | 0
  10445. that = createBuffer(that, length)
  10446. var actual = that.write(string, encoding)
  10447. if (actual !== length) {
  10448. // Writing a hex string, for example, that contains invalid characters will
  10449. // cause everything after the first invalid character to be ignored. (e.g.
  10450. // 'abxxcd' will be treated as 'ab')
  10451. that = that.slice(0, actual)
  10452. }
  10453. return that
  10454. }
  10455. function fromArrayLike (that, array) {
  10456. var length = array.length < 0 ? 0 : checked(array.length) | 0
  10457. that = createBuffer(that, length)
  10458. for (var i = 0; i < length; i += 1) {
  10459. that[i] = array[i] & 255
  10460. }
  10461. return that
  10462. }
  10463. function fromArrayBuffer (that, array, byteOffset, length) {
  10464. array.byteLength // this throws if `array` is not a valid ArrayBuffer
  10465. if (byteOffset < 0 || array.byteLength < byteOffset) {
  10466. throw new RangeError('\'offset\' is out of bounds')
  10467. }
  10468. if (array.byteLength < byteOffset + (length || 0)) {
  10469. throw new RangeError('\'length\' is out of bounds')
  10470. }
  10471. if (byteOffset === undefined && length === undefined) {
  10472. array = new Uint8Array(array)
  10473. } else if (length === undefined) {
  10474. array = new Uint8Array(array, byteOffset)
  10475. } else {
  10476. array = new Uint8Array(array, byteOffset, length)
  10477. }
  10478. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10479. // Return an augmented `Uint8Array` instance, for best performance
  10480. that = array
  10481. that.__proto__ = Buffer.prototype
  10482. } else {
  10483. // Fallback: Return an object instance of the Buffer class
  10484. that = fromArrayLike(that, array)
  10485. }
  10486. return that
  10487. }
  10488. function fromObject (that, obj) {
  10489. if (Buffer.isBuffer(obj)) {
  10490. var len = checked(obj.length) | 0
  10491. that = createBuffer(that, len)
  10492. if (that.length === 0) {
  10493. return that
  10494. }
  10495. obj.copy(that, 0, 0, len)
  10496. return that
  10497. }
  10498. if (obj) {
  10499. if ((typeof ArrayBuffer !== 'undefined' &&
  10500. obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
  10501. if (typeof obj.length !== 'number' || isnan(obj.length)) {
  10502. return createBuffer(that, 0)
  10503. }
  10504. return fromArrayLike(that, obj)
  10505. }
  10506. if (obj.type === 'Buffer' && isArray(obj.data)) {
  10507. return fromArrayLike(that, obj.data)
  10508. }
  10509. }
  10510. throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
  10511. }
  10512. function checked (length) {
  10513. // Note: cannot use `length < kMaxLength()` here because that fails when
  10514. // length is NaN (which is otherwise coerced to zero.)
  10515. if (length >= kMaxLength()) {
  10516. throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
  10517. 'size: 0x' + kMaxLength().toString(16) + ' bytes')
  10518. }
  10519. return length | 0
  10520. }
  10521. function SlowBuffer (length) {
  10522. if (+length != length) { // eslint-disable-line eqeqeq
  10523. length = 0
  10524. }
  10525. return Buffer.alloc(+length)
  10526. }
  10527. Buffer.isBuffer = function isBuffer (b) {
  10528. return !!(b != null && b._isBuffer)
  10529. }
  10530. Buffer.compare = function compare (a, b) {
  10531. if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
  10532. throw new TypeError('Arguments must be Buffers')
  10533. }
  10534. if (a === b) return 0
  10535. var x = a.length
  10536. var y = b.length
  10537. for (var i = 0, len = Math.min(x, y); i < len; ++i) {
  10538. if (a[i] !== b[i]) {
  10539. x = a[i]
  10540. y = b[i]
  10541. break
  10542. }
  10543. }
  10544. if (x < y) return -1
  10545. if (y < x) return 1
  10546. return 0
  10547. }
  10548. Buffer.isEncoding = function isEncoding (encoding) {
  10549. switch (String(encoding).toLowerCase()) {
  10550. case 'hex':
  10551. case 'utf8':
  10552. case 'utf-8':
  10553. case 'ascii':
  10554. case 'latin1':
  10555. case 'binary':
  10556. case 'base64':
  10557. case 'ucs2':
  10558. case 'ucs-2':
  10559. case 'utf16le':
  10560. case 'utf-16le':
  10561. return true
  10562. default:
  10563. return false
  10564. }
  10565. }
  10566. Buffer.concat = function concat (list, length) {
  10567. if (!isArray(list)) {
  10568. throw new TypeError('"list" argument must be an Array of Buffers')
  10569. }
  10570. if (list.length === 0) {
  10571. return Buffer.alloc(0)
  10572. }
  10573. var i
  10574. if (length === undefined) {
  10575. length = 0
  10576. for (i = 0; i < list.length; ++i) {
  10577. length += list[i].length
  10578. }
  10579. }
  10580. var buffer = Buffer.allocUnsafe(length)
  10581. var pos = 0
  10582. for (i = 0; i < list.length; ++i) {
  10583. var buf = list[i]
  10584. if (!Buffer.isBuffer(buf)) {
  10585. throw new TypeError('"list" argument must be an Array of Buffers')
  10586. }
  10587. buf.copy(buffer, pos)
  10588. pos += buf.length
  10589. }
  10590. return buffer
  10591. }
  10592. function byteLength (string, encoding) {
  10593. if (Buffer.isBuffer(string)) {
  10594. return string.length
  10595. }
  10596. if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
  10597. (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
  10598. return string.byteLength
  10599. }
  10600. if (typeof string !== 'string') {
  10601. string = '' + string
  10602. }
  10603. var len = string.length
  10604. if (len === 0) return 0
  10605. // Use a for loop to avoid recursion
  10606. var loweredCase = false
  10607. for (;;) {
  10608. switch (encoding) {
  10609. case 'ascii':
  10610. case 'latin1':
  10611. case 'binary':
  10612. return len
  10613. case 'utf8':
  10614. case 'utf-8':
  10615. case undefined:
  10616. return utf8ToBytes(string).length
  10617. case 'ucs2':
  10618. case 'ucs-2':
  10619. case 'utf16le':
  10620. case 'utf-16le':
  10621. return len * 2
  10622. case 'hex':
  10623. return len >>> 1
  10624. case 'base64':
  10625. return base64ToBytes(string).length
  10626. default:
  10627. if (loweredCase) return utf8ToBytes(string).length // assume utf8
  10628. encoding = ('' + encoding).toLowerCase()
  10629. loweredCase = true
  10630. }
  10631. }
  10632. }
  10633. Buffer.byteLength = byteLength
  10634. function slowToString (encoding, start, end) {
  10635. var loweredCase = false
  10636. // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
  10637. // property of a typed array.
  10638. // This behaves neither like String nor Uint8Array in that we set start/end
  10639. // to their upper/lower bounds if the value passed is out of range.
  10640. // undefined is handled specially as per ECMA-262 6th Edition,
  10641. // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
  10642. if (start === undefined || start < 0) {
  10643. start = 0
  10644. }
  10645. // Return early if start > this.length. Done here to prevent potential uint32
  10646. // coercion fail below.
  10647. if (start > this.length) {
  10648. return ''
  10649. }
  10650. if (end === undefined || end > this.length) {
  10651. end = this.length
  10652. }
  10653. if (end <= 0) {
  10654. return ''
  10655. }
  10656. // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
  10657. end >>>= 0
  10658. start >>>= 0
  10659. if (end <= start) {
  10660. return ''
  10661. }
  10662. if (!encoding) encoding = 'utf8'
  10663. while (true) {
  10664. switch (encoding) {
  10665. case 'hex':
  10666. return hexSlice(this, start, end)
  10667. case 'utf8':
  10668. case 'utf-8':
  10669. return utf8Slice(this, start, end)
  10670. case 'ascii':
  10671. return asciiSlice(this, start, end)
  10672. case 'latin1':
  10673. case 'binary':
  10674. return latin1Slice(this, start, end)
  10675. case 'base64':
  10676. return base64Slice(this, start, end)
  10677. case 'ucs2':
  10678. case 'ucs-2':
  10679. case 'utf16le':
  10680. case 'utf-16le':
  10681. return utf16leSlice(this, start, end)
  10682. default:
  10683. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  10684. encoding = (encoding + '').toLowerCase()
  10685. loweredCase = true
  10686. }
  10687. }
  10688. }
  10689. // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
  10690. // Buffer instances.
  10691. Buffer.prototype._isBuffer = true
  10692. function swap (b, n, m) {
  10693. var i = b[n]
  10694. b[n] = b[m]
  10695. b[m] = i
  10696. }
  10697. Buffer.prototype.swap16 = function swap16 () {
  10698. var len = this.length
  10699. if (len % 2 !== 0) {
  10700. throw new RangeError('Buffer size must be a multiple of 16-bits')
  10701. }
  10702. for (var i = 0; i < len; i += 2) {
  10703. swap(this, i, i + 1)
  10704. }
  10705. return this
  10706. }
  10707. Buffer.prototype.swap32 = function swap32 () {
  10708. var len = this.length
  10709. if (len % 4 !== 0) {
  10710. throw new RangeError('Buffer size must be a multiple of 32-bits')
  10711. }
  10712. for (var i = 0; i < len; i += 4) {
  10713. swap(this, i, i + 3)
  10714. swap(this, i + 1, i + 2)
  10715. }
  10716. return this
  10717. }
  10718. Buffer.prototype.swap64 = function swap64 () {
  10719. var len = this.length
  10720. if (len % 8 !== 0) {
  10721. throw new RangeError('Buffer size must be a multiple of 64-bits')
  10722. }
  10723. for (var i = 0; i < len; i += 8) {
  10724. swap(this, i, i + 7)
  10725. swap(this, i + 1, i + 6)
  10726. swap(this, i + 2, i + 5)
  10727. swap(this, i + 3, i + 4)
  10728. }
  10729. return this
  10730. }
  10731. Buffer.prototype.toString = function toString () {
  10732. var length = this.length | 0
  10733. if (length === 0) return ''
  10734. if (arguments.length === 0) return utf8Slice(this, 0, length)
  10735. return slowToString.apply(this, arguments)
  10736. }
  10737. Buffer.prototype.equals = function equals (b) {
  10738. if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  10739. if (this === b) return true
  10740. return Buffer.compare(this, b) === 0
  10741. }
  10742. Buffer.prototype.inspect = function inspect () {
  10743. var str = ''
  10744. var max = exports.INSPECT_MAX_BYTES
  10745. if (this.length > 0) {
  10746. str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
  10747. if (this.length > max) str += ' ... '
  10748. }
  10749. return '<Buffer ' + str + '>'
  10750. }
  10751. Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
  10752. if (!Buffer.isBuffer(target)) {
  10753. throw new TypeError('Argument must be a Buffer')
  10754. }
  10755. if (start === undefined) {
  10756. start = 0
  10757. }
  10758. if (end === undefined) {
  10759. end = target ? target.length : 0
  10760. }
  10761. if (thisStart === undefined) {
  10762. thisStart = 0
  10763. }
  10764. if (thisEnd === undefined) {
  10765. thisEnd = this.length
  10766. }
  10767. if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
  10768. throw new RangeError('out of range index')
  10769. }
  10770. if (thisStart >= thisEnd && start >= end) {
  10771. return 0
  10772. }
  10773. if (thisStart >= thisEnd) {
  10774. return -1
  10775. }
  10776. if (start >= end) {
  10777. return 1
  10778. }
  10779. start >>>= 0
  10780. end >>>= 0
  10781. thisStart >>>= 0
  10782. thisEnd >>>= 0
  10783. if (this === target) return 0
  10784. var x = thisEnd - thisStart
  10785. var y = end - start
  10786. var len = Math.min(x, y)
  10787. var thisCopy = this.slice(thisStart, thisEnd)
  10788. var targetCopy = target.slice(start, end)
  10789. for (var i = 0; i < len; ++i) {
  10790. if (thisCopy[i] !== targetCopy[i]) {
  10791. x = thisCopy[i]
  10792. y = targetCopy[i]
  10793. break
  10794. }
  10795. }
  10796. if (x < y) return -1
  10797. if (y < x) return 1
  10798. return 0
  10799. }
  10800. // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
  10801. // OR the last index of `val` in `buffer` at offset <= `byteOffset`.
  10802. //
  10803. // Arguments:
  10804. // - buffer - a Buffer to search
  10805. // - val - a string, Buffer, or number
  10806. // - byteOffset - an index into `buffer`; will be clamped to an int32
  10807. // - encoding - an optional encoding, relevant is val is a string
  10808. // - dir - true for indexOf, false for lastIndexOf
  10809. function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
  10810. // Empty buffer means no match
  10811. if (buffer.length === 0) return -1
  10812. // Normalize byteOffset
  10813. if (typeof byteOffset === 'string') {
  10814. encoding = byteOffset
  10815. byteOffset = 0
  10816. } else if (byteOffset > 0x7fffffff) {
  10817. byteOffset = 0x7fffffff
  10818. } else if (byteOffset < -0x80000000) {
  10819. byteOffset = -0x80000000
  10820. }
  10821. byteOffset = +byteOffset // Coerce to Number.
  10822. if (isNaN(byteOffset)) {
  10823. // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
  10824. byteOffset = dir ? 0 : (buffer.length - 1)
  10825. }
  10826. // Normalize byteOffset: negative offsets start from the end of the buffer
  10827. if (byteOffset < 0) byteOffset = buffer.length + byteOffset
  10828. if (byteOffset >= buffer.length) {
  10829. if (dir) return -1
  10830. else byteOffset = buffer.length - 1
  10831. } else if (byteOffset < 0) {
  10832. if (dir) byteOffset = 0
  10833. else return -1
  10834. }
  10835. // Normalize val
  10836. if (typeof val === 'string') {
  10837. val = Buffer.from(val, encoding)
  10838. }
  10839. // Finally, search either indexOf (if dir is true) or lastIndexOf
  10840. if (Buffer.isBuffer(val)) {
  10841. // Special case: looking for empty string/buffer always fails
  10842. if (val.length === 0) {
  10843. return -1
  10844. }
  10845. return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
  10846. } else if (typeof val === 'number') {
  10847. val = val & 0xFF // Search for a byte value [0-255]
  10848. if (Buffer.TYPED_ARRAY_SUPPORT &&
  10849. typeof Uint8Array.prototype.indexOf === 'function') {
  10850. if (dir) {
  10851. return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
  10852. } else {
  10853. return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
  10854. }
  10855. }
  10856. return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
  10857. }
  10858. throw new TypeError('val must be string, number or Buffer')
  10859. }
  10860. function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
  10861. var indexSize = 1
  10862. var arrLength = arr.length
  10863. var valLength = val.length
  10864. if (encoding !== undefined) {
  10865. encoding = String(encoding).toLowerCase()
  10866. if (encoding === 'ucs2' || encoding === 'ucs-2' ||
  10867. encoding === 'utf16le' || encoding === 'utf-16le') {
  10868. if (arr.length < 2 || val.length < 2) {
  10869. return -1
  10870. }
  10871. indexSize = 2
  10872. arrLength /= 2
  10873. valLength /= 2
  10874. byteOffset /= 2
  10875. }
  10876. }
  10877. function read (buf, i) {
  10878. if (indexSize === 1) {
  10879. return buf[i]
  10880. } else {
  10881. return buf.readUInt16BE(i * indexSize)
  10882. }
  10883. }
  10884. var i
  10885. if (dir) {
  10886. var foundIndex = -1
  10887. for (i = byteOffset; i < arrLength; i++) {
  10888. if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
  10889. if (foundIndex === -1) foundIndex = i
  10890. if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
  10891. } else {
  10892. if (foundIndex !== -1) i -= i - foundIndex
  10893. foundIndex = -1
  10894. }
  10895. }
  10896. } else {
  10897. if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
  10898. for (i = byteOffset; i >= 0; i--) {
  10899. var found = true
  10900. for (var j = 0; j < valLength; j++) {
  10901. if (read(arr, i + j) !== read(val, j)) {
  10902. found = false
  10903. break
  10904. }
  10905. }
  10906. if (found) return i
  10907. }
  10908. }
  10909. return -1
  10910. }
  10911. Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
  10912. return this.indexOf(val, byteOffset, encoding) !== -1
  10913. }
  10914. Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
  10915. return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
  10916. }
  10917. Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
  10918. return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
  10919. }
  10920. function hexWrite (buf, string, offset, length) {
  10921. offset = Number(offset) || 0
  10922. var remaining = buf.length - offset
  10923. if (!length) {
  10924. length = remaining
  10925. } else {
  10926. length = Number(length)
  10927. if (length > remaining) {
  10928. length = remaining
  10929. }
  10930. }
  10931. // must be an even number of digits
  10932. var strLen = string.length
  10933. if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
  10934. if (length > strLen / 2) {
  10935. length = strLen / 2
  10936. }
  10937. for (var i = 0; i < length; ++i) {
  10938. var parsed = parseInt(string.substr(i * 2, 2), 16)
  10939. if (isNaN(parsed)) return i
  10940. buf[offset + i] = parsed
  10941. }
  10942. return i
  10943. }
  10944. function utf8Write (buf, string, offset, length) {
  10945. return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
  10946. }
  10947. function asciiWrite (buf, string, offset, length) {
  10948. return blitBuffer(asciiToBytes(string), buf, offset, length)
  10949. }
  10950. function latin1Write (buf, string, offset, length) {
  10951. return asciiWrite(buf, string, offset, length)
  10952. }
  10953. function base64Write (buf, string, offset, length) {
  10954. return blitBuffer(base64ToBytes(string), buf, offset, length)
  10955. }
  10956. function ucs2Write (buf, string, offset, length) {
  10957. return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
  10958. }
  10959. Buffer.prototype.write = function write (string, offset, length, encoding) {
  10960. // Buffer#write(string)
  10961. if (offset === undefined) {
  10962. encoding = 'utf8'
  10963. length = this.length
  10964. offset = 0
  10965. // Buffer#write(string, encoding)
  10966. } else if (length === undefined && typeof offset === 'string') {
  10967. encoding = offset
  10968. length = this.length
  10969. offset = 0
  10970. // Buffer#write(string, offset[, length][, encoding])
  10971. } else if (isFinite(offset)) {
  10972. offset = offset | 0
  10973. if (isFinite(length)) {
  10974. length = length | 0
  10975. if (encoding === undefined) encoding = 'utf8'
  10976. } else {
  10977. encoding = length
  10978. length = undefined
  10979. }
  10980. // legacy write(string, encoding, offset, length) - remove in v0.13
  10981. } else {
  10982. throw new Error(
  10983. 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
  10984. )
  10985. }
  10986. var remaining = this.length - offset
  10987. if (length === undefined || length > remaining) length = remaining
  10988. if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
  10989. throw new RangeError('Attempt to write outside buffer bounds')
  10990. }
  10991. if (!encoding) encoding = 'utf8'
  10992. var loweredCase = false
  10993. for (;;) {
  10994. switch (encoding) {
  10995. case 'hex':
  10996. return hexWrite(this, string, offset, length)
  10997. case 'utf8':
  10998. case 'utf-8':
  10999. return utf8Write(this, string, offset, length)
  11000. case 'ascii':
  11001. return asciiWrite(this, string, offset, length)
  11002. case 'latin1':
  11003. case 'binary':
  11004. return latin1Write(this, string, offset, length)
  11005. case 'base64':
  11006. // Warning: maxLength not taken into account in base64Write
  11007. return base64Write(this, string, offset, length)
  11008. case 'ucs2':
  11009. case 'ucs-2':
  11010. case 'utf16le':
  11011. case 'utf-16le':
  11012. return ucs2Write(this, string, offset, length)
  11013. default:
  11014. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  11015. encoding = ('' + encoding).toLowerCase()
  11016. loweredCase = true
  11017. }
  11018. }
  11019. }
  11020. Buffer.prototype.toJSON = function toJSON () {
  11021. return {
  11022. type: 'Buffer',
  11023. data: Array.prototype.slice.call(this._arr || this, 0)
  11024. }
  11025. }
  11026. function base64Slice (buf, start, end) {
  11027. if (start === 0 && end === buf.length) {
  11028. return base64.fromByteArray(buf)
  11029. } else {
  11030. return base64.fromByteArray(buf.slice(start, end))
  11031. }
  11032. }
  11033. function utf8Slice (buf, start, end) {
  11034. end = Math.min(buf.length, end)
  11035. var res = []
  11036. var i = start
  11037. while (i < end) {
  11038. var firstByte = buf[i]
  11039. var codePoint = null
  11040. var bytesPerSequence = (firstByte > 0xEF) ? 4
  11041. : (firstByte > 0xDF) ? 3
  11042. : (firstByte > 0xBF) ? 2
  11043. : 1
  11044. if (i + bytesPerSequence <= end) {
  11045. var secondByte, thirdByte, fourthByte, tempCodePoint
  11046. switch (bytesPerSequence) {
  11047. case 1:
  11048. if (firstByte < 0x80) {
  11049. codePoint = firstByte
  11050. }
  11051. break
  11052. case 2:
  11053. secondByte = buf[i + 1]
  11054. if ((secondByte & 0xC0) === 0x80) {
  11055. tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
  11056. if (tempCodePoint > 0x7F) {
  11057. codePoint = tempCodePoint
  11058. }
  11059. }
  11060. break
  11061. case 3:
  11062. secondByte = buf[i + 1]
  11063. thirdByte = buf[i + 2]
  11064. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
  11065. tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
  11066. if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
  11067. codePoint = tempCodePoint
  11068. }
  11069. }
  11070. break
  11071. case 4:
  11072. secondByte = buf[i + 1]
  11073. thirdByte = buf[i + 2]
  11074. fourthByte = buf[i + 3]
  11075. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
  11076. tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
  11077. if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
  11078. codePoint = tempCodePoint
  11079. }
  11080. }
  11081. }
  11082. }
  11083. if (codePoint === null) {
  11084. // we did not generate a valid codePoint so insert a
  11085. // replacement char (U+FFFD) and advance only 1 byte
  11086. codePoint = 0xFFFD
  11087. bytesPerSequence = 1
  11088. } else if (codePoint > 0xFFFF) {
  11089. // encode to utf16 (surrogate pair dance)
  11090. codePoint -= 0x10000
  11091. res.push(codePoint >>> 10 & 0x3FF | 0xD800)
  11092. codePoint = 0xDC00 | codePoint & 0x3FF
  11093. }
  11094. res.push(codePoint)
  11095. i += bytesPerSequence
  11096. }
  11097. return decodeCodePointsArray(res)
  11098. }
  11099. // Based on http://stackoverflow.com/a/22747272/680742, the browser with
  11100. // the lowest limit is Chrome, with 0x10000 args.
  11101. // We go 1 magnitude less, for safety
  11102. var MAX_ARGUMENTS_LENGTH = 0x1000
  11103. function decodeCodePointsArray (codePoints) {
  11104. var len = codePoints.length
  11105. if (len <= MAX_ARGUMENTS_LENGTH) {
  11106. return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
  11107. }
  11108. // Decode in chunks to avoid "call stack size exceeded".
  11109. var res = ''
  11110. var i = 0
  11111. while (i < len) {
  11112. res += String.fromCharCode.apply(
  11113. String,
  11114. codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
  11115. )
  11116. }
  11117. return res
  11118. }
  11119. function asciiSlice (buf, start, end) {
  11120. var ret = ''
  11121. end = Math.min(buf.length, end)
  11122. for (var i = start; i < end; ++i) {
  11123. ret += String.fromCharCode(buf[i] & 0x7F)
  11124. }
  11125. return ret
  11126. }
  11127. function latin1Slice (buf, start, end) {
  11128. var ret = ''
  11129. end = Math.min(buf.length, end)
  11130. for (var i = start; i < end; ++i) {
  11131. ret += String.fromCharCode(buf[i])
  11132. }
  11133. return ret
  11134. }
  11135. function hexSlice (buf, start, end) {
  11136. var len = buf.length
  11137. if (!start || start < 0) start = 0
  11138. if (!end || end < 0 || end > len) end = len
  11139. var out = ''
  11140. for (var i = start; i < end; ++i) {
  11141. out += toHex(buf[i])
  11142. }
  11143. return out
  11144. }
  11145. function utf16leSlice (buf, start, end) {
  11146. var bytes = buf.slice(start, end)
  11147. var res = ''
  11148. for (var i = 0; i < bytes.length; i += 2) {
  11149. res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
  11150. }
  11151. return res
  11152. }
  11153. Buffer.prototype.slice = function slice (start, end) {
  11154. var len = this.length
  11155. start = ~~start
  11156. end = end === undefined ? len : ~~end
  11157. if (start < 0) {
  11158. start += len
  11159. if (start < 0) start = 0
  11160. } else if (start > len) {
  11161. start = len
  11162. }
  11163. if (end < 0) {
  11164. end += len
  11165. if (end < 0) end = 0
  11166. } else if (end > len) {
  11167. end = len
  11168. }
  11169. if (end < start) end = start
  11170. var newBuf
  11171. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11172. newBuf = this.subarray(start, end)
  11173. newBuf.__proto__ = Buffer.prototype
  11174. } else {
  11175. var sliceLen = end - start
  11176. newBuf = new Buffer(sliceLen, undefined)
  11177. for (var i = 0; i < sliceLen; ++i) {
  11178. newBuf[i] = this[i + start]
  11179. }
  11180. }
  11181. return newBuf
  11182. }
  11183. /*
  11184. * Need to make sure that buffer isn't trying to write out of bounds.
  11185. */
  11186. function checkOffset (offset, ext, length) {
  11187. if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
  11188. if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
  11189. }
  11190. Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
  11191. offset = offset | 0
  11192. byteLength = byteLength | 0
  11193. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11194. var val = this[offset]
  11195. var mul = 1
  11196. var i = 0
  11197. while (++i < byteLength && (mul *= 0x100)) {
  11198. val += this[offset + i] * mul
  11199. }
  11200. return val
  11201. }
  11202. Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
  11203. offset = offset | 0
  11204. byteLength = byteLength | 0
  11205. if (!noAssert) {
  11206. checkOffset(offset, byteLength, this.length)
  11207. }
  11208. var val = this[offset + --byteLength]
  11209. var mul = 1
  11210. while (byteLength > 0 && (mul *= 0x100)) {
  11211. val += this[offset + --byteLength] * mul
  11212. }
  11213. return val
  11214. }
  11215. Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
  11216. if (!noAssert) checkOffset(offset, 1, this.length)
  11217. return this[offset]
  11218. }
  11219. Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  11220. if (!noAssert) checkOffset(offset, 2, this.length)
  11221. return this[offset] | (this[offset + 1] << 8)
  11222. }
  11223. Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  11224. if (!noAssert) checkOffset(offset, 2, this.length)
  11225. return (this[offset] << 8) | this[offset + 1]
  11226. }
  11227. Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  11228. if (!noAssert) checkOffset(offset, 4, this.length)
  11229. return ((this[offset]) |
  11230. (this[offset + 1] << 8) |
  11231. (this[offset + 2] << 16)) +
  11232. (this[offset + 3] * 0x1000000)
  11233. }
  11234. Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
  11235. if (!noAssert) checkOffset(offset, 4, this.length)
  11236. return (this[offset] * 0x1000000) +
  11237. ((this[offset + 1] << 16) |
  11238. (this[offset + 2] << 8) |
  11239. this[offset + 3])
  11240. }
  11241. Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
  11242. offset = offset | 0
  11243. byteLength = byteLength | 0
  11244. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11245. var val = this[offset]
  11246. var mul = 1
  11247. var i = 0
  11248. while (++i < byteLength && (mul *= 0x100)) {
  11249. val += this[offset + i] * mul
  11250. }
  11251. mul *= 0x80
  11252. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11253. return val
  11254. }
  11255. Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
  11256. offset = offset | 0
  11257. byteLength = byteLength | 0
  11258. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11259. var i = byteLength
  11260. var mul = 1
  11261. var val = this[offset + --i]
  11262. while (i > 0 && (mul *= 0x100)) {
  11263. val += this[offset + --i] * mul
  11264. }
  11265. mul *= 0x80
  11266. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11267. return val
  11268. }
  11269. Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
  11270. if (!noAssert) checkOffset(offset, 1, this.length)
  11271. if (!(this[offset] & 0x80)) return (this[offset])
  11272. return ((0xff - this[offset] + 1) * -1)
  11273. }
  11274. Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
  11275. if (!noAssert) checkOffset(offset, 2, this.length)
  11276. var val = this[offset] | (this[offset + 1] << 8)
  11277. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11278. }
  11279. Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
  11280. if (!noAssert) checkOffset(offset, 2, this.length)
  11281. var val = this[offset + 1] | (this[offset] << 8)
  11282. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11283. }
  11284. Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
  11285. if (!noAssert) checkOffset(offset, 4, this.length)
  11286. return (this[offset]) |
  11287. (this[offset + 1] << 8) |
  11288. (this[offset + 2] << 16) |
  11289. (this[offset + 3] << 24)
  11290. }
  11291. Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
  11292. if (!noAssert) checkOffset(offset, 4, this.length)
  11293. return (this[offset] << 24) |
  11294. (this[offset + 1] << 16) |
  11295. (this[offset + 2] << 8) |
  11296. (this[offset + 3])
  11297. }
  11298. Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  11299. if (!noAssert) checkOffset(offset, 4, this.length)
  11300. return ieee754.read(this, offset, true, 23, 4)
  11301. }
  11302. Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  11303. if (!noAssert) checkOffset(offset, 4, this.length)
  11304. return ieee754.read(this, offset, false, 23, 4)
  11305. }
  11306. Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  11307. if (!noAssert) checkOffset(offset, 8, this.length)
  11308. return ieee754.read(this, offset, true, 52, 8)
  11309. }
  11310. Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  11311. if (!noAssert) checkOffset(offset, 8, this.length)
  11312. return ieee754.read(this, offset, false, 52, 8)
  11313. }
  11314. function checkInt (buf, value, offset, ext, max, min) {
  11315. if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
  11316. if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
  11317. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  11318. }
  11319. Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
  11320. value = +value
  11321. offset = offset | 0
  11322. byteLength = byteLength | 0
  11323. if (!noAssert) {
  11324. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11325. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11326. }
  11327. var mul = 1
  11328. var i = 0
  11329. this[offset] = value & 0xFF
  11330. while (++i < byteLength && (mul *= 0x100)) {
  11331. this[offset + i] = (value / mul) & 0xFF
  11332. }
  11333. return offset + byteLength
  11334. }
  11335. Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
  11336. value = +value
  11337. offset = offset | 0
  11338. byteLength = byteLength | 0
  11339. if (!noAssert) {
  11340. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11341. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11342. }
  11343. var i = byteLength - 1
  11344. var mul = 1
  11345. this[offset + i] = value & 0xFF
  11346. while (--i >= 0 && (mul *= 0x100)) {
  11347. this[offset + i] = (value / mul) & 0xFF
  11348. }
  11349. return offset + byteLength
  11350. }
  11351. Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
  11352. value = +value
  11353. offset = offset | 0
  11354. if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
  11355. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  11356. this[offset] = (value & 0xff)
  11357. return offset + 1
  11358. }
  11359. function objectWriteUInt16 (buf, value, offset, littleEndian) {
  11360. if (value < 0) value = 0xffff + value + 1
  11361. for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
  11362. buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
  11363. (littleEndian ? i : 1 - i) * 8
  11364. }
  11365. }
  11366. Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  11367. value = +value
  11368. offset = offset | 0
  11369. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  11370. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11371. this[offset] = (value & 0xff)
  11372. this[offset + 1] = (value >>> 8)
  11373. } else {
  11374. objectWriteUInt16(this, value, offset, true)
  11375. }
  11376. return offset + 2
  11377. }
  11378. Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
  11379. value = +value
  11380. offset = offset | 0
  11381. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  11382. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11383. this[offset] = (value >>> 8)
  11384. this[offset + 1] = (value & 0xff)
  11385. } else {
  11386. objectWriteUInt16(this, value, offset, false)
  11387. }
  11388. return offset + 2
  11389. }
  11390. function objectWriteUInt32 (buf, value, offset, littleEndian) {
  11391. if (value < 0) value = 0xffffffff + value + 1
  11392. for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
  11393. buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  11394. }
  11395. }
  11396. Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  11397. value = +value
  11398. offset = offset | 0
  11399. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  11400. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11401. this[offset + 3] = (value >>> 24)
  11402. this[offset + 2] = (value >>> 16)
  11403. this[offset + 1] = (value >>> 8)
  11404. this[offset] = (value & 0xff)
  11405. } else {
  11406. objectWriteUInt32(this, value, offset, true)
  11407. }
  11408. return offset + 4
  11409. }
  11410. Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
  11411. value = +value
  11412. offset = offset | 0
  11413. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  11414. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11415. this[offset] = (value >>> 24)
  11416. this[offset + 1] = (value >>> 16)
  11417. this[offset + 2] = (value >>> 8)
  11418. this[offset + 3] = (value & 0xff)
  11419. } else {
  11420. objectWriteUInt32(this, value, offset, false)
  11421. }
  11422. return offset + 4
  11423. }
  11424. Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
  11425. value = +value
  11426. offset = offset | 0
  11427. if (!noAssert) {
  11428. var limit = Math.pow(2, 8 * byteLength - 1)
  11429. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  11430. }
  11431. var i = 0
  11432. var mul = 1
  11433. var sub = 0
  11434. this[offset] = value & 0xFF
  11435. while (++i < byteLength && (mul *= 0x100)) {
  11436. if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
  11437. sub = 1
  11438. }
  11439. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  11440. }
  11441. return offset + byteLength
  11442. }
  11443. Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
  11444. value = +value
  11445. offset = offset | 0
  11446. if (!noAssert) {
  11447. var limit = Math.pow(2, 8 * byteLength - 1)
  11448. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  11449. }
  11450. var i = byteLength - 1
  11451. var mul = 1
  11452. var sub = 0
  11453. this[offset + i] = value & 0xFF
  11454. while (--i >= 0 && (mul *= 0x100)) {
  11455. if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
  11456. sub = 1
  11457. }
  11458. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  11459. }
  11460. return offset + byteLength
  11461. }
  11462. Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
  11463. value = +value
  11464. offset = offset | 0
  11465. if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
  11466. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  11467. if (value < 0) value = 0xff + value + 1
  11468. this[offset] = (value & 0xff)
  11469. return offset + 1
  11470. }
  11471. Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
  11472. value = +value
  11473. offset = offset | 0
  11474. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  11475. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11476. this[offset] = (value & 0xff)
  11477. this[offset + 1] = (value >>> 8)
  11478. } else {
  11479. objectWriteUInt16(this, value, offset, true)
  11480. }
  11481. return offset + 2
  11482. }
  11483. Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
  11484. value = +value
  11485. offset = offset | 0
  11486. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  11487. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11488. this[offset] = (value >>> 8)
  11489. this[offset + 1] = (value & 0xff)
  11490. } else {
  11491. objectWriteUInt16(this, value, offset, false)
  11492. }
  11493. return offset + 2
  11494. }
  11495. Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
  11496. value = +value
  11497. offset = offset | 0
  11498. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  11499. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11500. this[offset] = (value & 0xff)
  11501. this[offset + 1] = (value >>> 8)
  11502. this[offset + 2] = (value >>> 16)
  11503. this[offset + 3] = (value >>> 24)
  11504. } else {
  11505. objectWriteUInt32(this, value, offset, true)
  11506. }
  11507. return offset + 4
  11508. }
  11509. Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
  11510. value = +value
  11511. offset = offset | 0
  11512. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  11513. if (value < 0) value = 0xffffffff + value + 1
  11514. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11515. this[offset] = (value >>> 24)
  11516. this[offset + 1] = (value >>> 16)
  11517. this[offset + 2] = (value >>> 8)
  11518. this[offset + 3] = (value & 0xff)
  11519. } else {
  11520. objectWriteUInt32(this, value, offset, false)
  11521. }
  11522. return offset + 4
  11523. }
  11524. function checkIEEE754 (buf, value, offset, ext, max, min) {
  11525. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  11526. if (offset < 0) throw new RangeError('Index out of range')
  11527. }
  11528. function writeFloat (buf, value, offset, littleEndian, noAssert) {
  11529. if (!noAssert) {
  11530. checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
  11531. }
  11532. ieee754.write(buf, value, offset, littleEndian, 23, 4)
  11533. return offset + 4
  11534. }
  11535. Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
  11536. return writeFloat(this, value, offset, true, noAssert)
  11537. }
  11538. Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
  11539. return writeFloat(this, value, offset, false, noAssert)
  11540. }
  11541. function writeDouble (buf, value, offset, littleEndian, noAssert) {
  11542. if (!noAssert) {
  11543. checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
  11544. }
  11545. ieee754.write(buf, value, offset, littleEndian, 52, 8)
  11546. return offset + 8
  11547. }
  11548. Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
  11549. return writeDouble(this, value, offset, true, noAssert)
  11550. }
  11551. Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
  11552. return writeDouble(this, value, offset, false, noAssert)
  11553. }
  11554. // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
  11555. Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  11556. if (!start) start = 0
  11557. if (!end && end !== 0) end = this.length
  11558. if (targetStart >= target.length) targetStart = target.length
  11559. if (!targetStart) targetStart = 0
  11560. if (end > 0 && end < start) end = start
  11561. // Copy 0 bytes; we're done
  11562. if (end === start) return 0
  11563. if (target.length === 0 || this.length === 0) return 0
  11564. // Fatal error conditions
  11565. if (targetStart < 0) {
  11566. throw new RangeError('targetStart out of bounds')
  11567. }
  11568. if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
  11569. if (end < 0) throw new RangeError('sourceEnd out of bounds')
  11570. // Are we oob?
  11571. if (end > this.length) end = this.length
  11572. if (target.length - targetStart < end - start) {
  11573. end = target.length - targetStart + start
  11574. }
  11575. var len = end - start
  11576. var i
  11577. if (this === target && start < targetStart && targetStart < end) {
  11578. // descending copy from end
  11579. for (i = len - 1; i >= 0; --i) {
  11580. target[i + targetStart] = this[i + start]
  11581. }
  11582. } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
  11583. // ascending copy from start
  11584. for (i = 0; i < len; ++i) {
  11585. target[i + targetStart] = this[i + start]
  11586. }
  11587. } else {
  11588. Uint8Array.prototype.set.call(
  11589. target,
  11590. this.subarray(start, start + len),
  11591. targetStart
  11592. )
  11593. }
  11594. return len
  11595. }
  11596. // Usage:
  11597. // buffer.fill(number[, offset[, end]])
  11598. // buffer.fill(buffer[, offset[, end]])
  11599. // buffer.fill(string[, offset[, end]][, encoding])
  11600. Buffer.prototype.fill = function fill (val, start, end, encoding) {
  11601. // Handle string cases:
  11602. if (typeof val === 'string') {
  11603. if (typeof start === 'string') {
  11604. encoding = start
  11605. start = 0
  11606. end = this.length
  11607. } else if (typeof end === 'string') {
  11608. encoding = end
  11609. end = this.length
  11610. }
  11611. if (val.length === 1) {
  11612. var code = val.charCodeAt(0)
  11613. if (code < 256) {
  11614. val = code
  11615. }
  11616. }
  11617. if (encoding !== undefined && typeof encoding !== 'string') {
  11618. throw new TypeError('encoding must be a string')
  11619. }
  11620. if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
  11621. throw new TypeError('Unknown encoding: ' + encoding)
  11622. }
  11623. } else if (typeof val === 'number') {
  11624. val = val & 255
  11625. }
  11626. // Invalid ranges are not set to a default, so can range check early.
  11627. if (start < 0 || this.length < start || this.length < end) {
  11628. throw new RangeError('Out of range index')
  11629. }
  11630. if (end <= start) {
  11631. return this
  11632. }
  11633. start = start >>> 0
  11634. end = end === undefined ? this.length : end >>> 0
  11635. if (!val) val = 0
  11636. var i
  11637. if (typeof val === 'number') {
  11638. for (i = start; i < end; ++i) {
  11639. this[i] = val
  11640. }
  11641. } else {
  11642. var bytes = Buffer.isBuffer(val)
  11643. ? val
  11644. : utf8ToBytes(new Buffer(val, encoding).toString())
  11645. var len = bytes.length
  11646. for (i = 0; i < end - start; ++i) {
  11647. this[i + start] = bytes[i % len]
  11648. }
  11649. }
  11650. return this
  11651. }
  11652. // HELPER FUNCTIONS
  11653. // ================
  11654. var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
  11655. function base64clean (str) {
  11656. // Node strips out invalid characters like \n and \t from the string, base64-js does not
  11657. str = stringtrim(str).replace(INVALID_BASE64_RE, '')
  11658. // Node converts strings with length < 2 to ''
  11659. if (str.length < 2) return ''
  11660. // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
  11661. while (str.length % 4 !== 0) {
  11662. str = str + '='
  11663. }
  11664. return str
  11665. }
  11666. function stringtrim (str) {
  11667. if (str.trim) return str.trim()
  11668. return str.replace(/^\s+|\s+$/g, '')
  11669. }
  11670. function toHex (n) {
  11671. if (n < 16) return '0' + n.toString(16)
  11672. return n.toString(16)
  11673. }
  11674. function utf8ToBytes (string, units) {
  11675. units = units || Infinity
  11676. var codePoint
  11677. var length = string.length
  11678. var leadSurrogate = null
  11679. var bytes = []
  11680. for (var i = 0; i < length; ++i) {
  11681. codePoint = string.charCodeAt(i)
  11682. // is surrogate component
  11683. if (codePoint > 0xD7FF && codePoint < 0xE000) {
  11684. // last char was a lead
  11685. if (!leadSurrogate) {
  11686. // no lead yet
  11687. if (codePoint > 0xDBFF) {
  11688. // unexpected trail
  11689. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11690. continue
  11691. } else if (i + 1 === length) {
  11692. // unpaired lead
  11693. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11694. continue
  11695. }
  11696. // valid lead
  11697. leadSurrogate = codePoint
  11698. continue
  11699. }
  11700. // 2 leads in a row
  11701. if (codePoint < 0xDC00) {
  11702. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11703. leadSurrogate = codePoint
  11704. continue
  11705. }
  11706. // valid surrogate pair
  11707. codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
  11708. } else if (leadSurrogate) {
  11709. // valid bmp char, but last char was a lead
  11710. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11711. }
  11712. leadSurrogate = null
  11713. // encode utf8
  11714. if (codePoint < 0x80) {
  11715. if ((units -= 1) < 0) break
  11716. bytes.push(codePoint)
  11717. } else if (codePoint < 0x800) {
  11718. if ((units -= 2) < 0) break
  11719. bytes.push(
  11720. codePoint >> 0x6 | 0xC0,
  11721. codePoint & 0x3F | 0x80
  11722. )
  11723. } else if (codePoint < 0x10000) {
  11724. if ((units -= 3) < 0) break
  11725. bytes.push(
  11726. codePoint >> 0xC | 0xE0,
  11727. codePoint >> 0x6 & 0x3F | 0x80,
  11728. codePoint & 0x3F | 0x80
  11729. )
  11730. } else if (codePoint < 0x110000) {
  11731. if ((units -= 4) < 0) break
  11732. bytes.push(
  11733. codePoint >> 0x12 | 0xF0,
  11734. codePoint >> 0xC & 0x3F | 0x80,
  11735. codePoint >> 0x6 & 0x3F | 0x80,
  11736. codePoint & 0x3F | 0x80
  11737. )
  11738. } else {
  11739. throw new Error('Invalid code point')
  11740. }
  11741. }
  11742. return bytes
  11743. }
  11744. function asciiToBytes (str) {
  11745. var byteArray = []
  11746. for (var i = 0; i < str.length; ++i) {
  11747. // Node's code seems to be doing this and not & 0x7F..
  11748. byteArray.push(str.charCodeAt(i) & 0xFF)
  11749. }
  11750. return byteArray
  11751. }
  11752. function utf16leToBytes (str, units) {
  11753. var c, hi, lo
  11754. var byteArray = []
  11755. for (var i = 0; i < str.length; ++i) {
  11756. if ((units -= 2) < 0) break
  11757. c = str.charCodeAt(i)
  11758. hi = c >> 8
  11759. lo = c % 256
  11760. byteArray.push(lo)
  11761. byteArray.push(hi)
  11762. }
  11763. return byteArray
  11764. }
  11765. function base64ToBytes (str) {
  11766. return base64.toByteArray(base64clean(str))
  11767. }
  11768. function blitBuffer (src, dst, offset, length) {
  11769. for (var i = 0; i < length; ++i) {
  11770. if ((i + offset >= dst.length) || (i >= src.length)) break
  11771. dst[i + offset] = src[i]
  11772. }
  11773. return i
  11774. }
  11775. function isnan (val) {
  11776. return val !== val // eslint-disable-line no-self-compare
  11777. }
  11778. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 3)))
  11779. /***/ }),
  11780. /* 52 */
  11781. /*!*****************************************!*\
  11782. !*** ./node_modules/base64-js/index.js ***!
  11783. \*****************************************/
  11784. /*! no static exports found */
  11785. /***/ (function(module, exports, __webpack_require__) {
  11786. "use strict";
  11787. exports.byteLength = byteLength
  11788. exports.toByteArray = toByteArray
  11789. exports.fromByteArray = fromByteArray
  11790. var lookup = []
  11791. var revLookup = []
  11792. var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
  11793. var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  11794. for (var i = 0, len = code.length; i < len; ++i) {
  11795. lookup[i] = code[i]
  11796. revLookup[code.charCodeAt(i)] = i
  11797. }
  11798. // Support decoding URL-safe base64 strings, as Node.js does.
  11799. // See: https://en.wikipedia.org/wiki/Base64#URL_applications
  11800. revLookup['-'.charCodeAt(0)] = 62
  11801. revLookup['_'.charCodeAt(0)] = 63
  11802. function getLens (b64) {
  11803. var len = b64.length
  11804. if (len % 4 > 0) {
  11805. throw new Error('Invalid string. Length must be a multiple of 4')
  11806. }
  11807. // Trim off extra bytes after placeholder bytes are found
  11808. // See: https://github.com/beatgammit/base64-js/issues/42
  11809. var validLen = b64.indexOf('=')
  11810. if (validLen === -1) validLen = len
  11811. var placeHoldersLen = validLen === len
  11812. ? 0
  11813. : 4 - (validLen % 4)
  11814. return [validLen, placeHoldersLen]
  11815. }
  11816. // base64 is 4/3 + up to two characters of the original data
  11817. function byteLength (b64) {
  11818. var lens = getLens(b64)
  11819. var validLen = lens[0]
  11820. var placeHoldersLen = lens[1]
  11821. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  11822. }
  11823. function _byteLength (b64, validLen, placeHoldersLen) {
  11824. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  11825. }
  11826. function toByteArray (b64) {
  11827. var tmp
  11828. var lens = getLens(b64)
  11829. var validLen = lens[0]
  11830. var placeHoldersLen = lens[1]
  11831. var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
  11832. var curByte = 0
  11833. // if there are placeholders, only get up to the last complete 4 chars
  11834. var len = placeHoldersLen > 0
  11835. ? validLen - 4
  11836. : validLen
  11837. var i
  11838. for (i = 0; i < len; i += 4) {
  11839. tmp =
  11840. (revLookup[b64.charCodeAt(i)] << 18) |
  11841. (revLookup[b64.charCodeAt(i + 1)] << 12) |
  11842. (revLookup[b64.charCodeAt(i + 2)] << 6) |
  11843. revLookup[b64.charCodeAt(i + 3)]
  11844. arr[curByte++] = (tmp >> 16) & 0xFF
  11845. arr[curByte++] = (tmp >> 8) & 0xFF
  11846. arr[curByte++] = tmp & 0xFF
  11847. }
  11848. if (placeHoldersLen === 2) {
  11849. tmp =
  11850. (revLookup[b64.charCodeAt(i)] << 2) |
  11851. (revLookup[b64.charCodeAt(i + 1)] >> 4)
  11852. arr[curByte++] = tmp & 0xFF
  11853. }
  11854. if (placeHoldersLen === 1) {
  11855. tmp =
  11856. (revLookup[b64.charCodeAt(i)] << 10) |
  11857. (revLookup[b64.charCodeAt(i + 1)] << 4) |
  11858. (revLookup[b64.charCodeAt(i + 2)] >> 2)
  11859. arr[curByte++] = (tmp >> 8) & 0xFF
  11860. arr[curByte++] = tmp & 0xFF
  11861. }
  11862. return arr
  11863. }
  11864. function tripletToBase64 (num) {
  11865. return lookup[num >> 18 & 0x3F] +
  11866. lookup[num >> 12 & 0x3F] +
  11867. lookup[num >> 6 & 0x3F] +
  11868. lookup[num & 0x3F]
  11869. }
  11870. function encodeChunk (uint8, start, end) {
  11871. var tmp
  11872. var output = []
  11873. for (var i = start; i < end; i += 3) {
  11874. tmp =
  11875. ((uint8[i] << 16) & 0xFF0000) +
  11876. ((uint8[i + 1] << 8) & 0xFF00) +
  11877. (uint8[i + 2] & 0xFF)
  11878. output.push(tripletToBase64(tmp))
  11879. }
  11880. return output.join('')
  11881. }
  11882. function fromByteArray (uint8) {
  11883. var tmp
  11884. var len = uint8.length
  11885. var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
  11886. var parts = []
  11887. var maxChunkLength = 16383 // must be multiple of 3
  11888. // go through the array every three bytes, we'll deal with trailing stuff later
  11889. for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
  11890. parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
  11891. }
  11892. // pad the end with zeros, but make sure to not forget the extra bytes
  11893. if (extraBytes === 1) {
  11894. tmp = uint8[len - 1]
  11895. parts.push(
  11896. lookup[tmp >> 2] +
  11897. lookup[(tmp << 4) & 0x3F] +
  11898. '=='
  11899. )
  11900. } else if (extraBytes === 2) {
  11901. tmp = (uint8[len - 2] << 8) + uint8[len - 1]
  11902. parts.push(
  11903. lookup[tmp >> 10] +
  11904. lookup[(tmp >> 4) & 0x3F] +
  11905. lookup[(tmp << 2) & 0x3F] +
  11906. '='
  11907. )
  11908. }
  11909. return parts.join('')
  11910. }
  11911. /***/ }),
  11912. /* 53 */
  11913. /*!***************************************!*\
  11914. !*** ./node_modules/ieee754/index.js ***!
  11915. \***************************************/
  11916. /*! no static exports found */
  11917. /***/ (function(module, exports) {
  11918. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  11919. exports.read = function (buffer, offset, isLE, mLen, nBytes) {
  11920. var e, m
  11921. var eLen = (nBytes * 8) - mLen - 1
  11922. var eMax = (1 << eLen) - 1
  11923. var eBias = eMax >> 1
  11924. var nBits = -7
  11925. var i = isLE ? (nBytes - 1) : 0
  11926. var d = isLE ? -1 : 1
  11927. var s = buffer[offset + i]
  11928. i += d
  11929. e = s & ((1 << (-nBits)) - 1)
  11930. s >>= (-nBits)
  11931. nBits += eLen
  11932. for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  11933. m = e & ((1 << (-nBits)) - 1)
  11934. e >>= (-nBits)
  11935. nBits += mLen
  11936. for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  11937. if (e === 0) {
  11938. e = 1 - eBias
  11939. } else if (e === eMax) {
  11940. return m ? NaN : ((s ? -1 : 1) * Infinity)
  11941. } else {
  11942. m = m + Math.pow(2, mLen)
  11943. e = e - eBias
  11944. }
  11945. return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
  11946. }
  11947. exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
  11948. var e, m, c
  11949. var eLen = (nBytes * 8) - mLen - 1
  11950. var eMax = (1 << eLen) - 1
  11951. var eBias = eMax >> 1
  11952. var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
  11953. var i = isLE ? 0 : (nBytes - 1)
  11954. var d = isLE ? 1 : -1
  11955. var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
  11956. value = Math.abs(value)
  11957. if (isNaN(value) || value === Infinity) {
  11958. m = isNaN(value) ? 1 : 0
  11959. e = eMax
  11960. } else {
  11961. e = Math.floor(Math.log(value) / Math.LN2)
  11962. if (value * (c = Math.pow(2, -e)) < 1) {
  11963. e--
  11964. c *= 2
  11965. }
  11966. if (e + eBias >= 1) {
  11967. value += rt / c
  11968. } else {
  11969. value += rt * Math.pow(2, 1 - eBias)
  11970. }
  11971. if (value * c >= 2) {
  11972. e++
  11973. c /= 2
  11974. }
  11975. if (e + eBias >= eMax) {
  11976. m = 0
  11977. e = eMax
  11978. } else if (e + eBias >= 1) {
  11979. m = ((value * c) - 1) * Math.pow(2, mLen)
  11980. e = e + eBias
  11981. } else {
  11982. m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
  11983. e = 0
  11984. }
  11985. }
  11986. for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
  11987. e = (e << mLen) | m
  11988. eLen += mLen
  11989. for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
  11990. buffer[offset + i - d] |= s * 128
  11991. }
  11992. /***/ }),
  11993. /* 54 */
  11994. /*!***************************************!*\
  11995. !*** ./node_modules/isarray/index.js ***!
  11996. \***************************************/
  11997. /*! no static exports found */
  11998. /***/ (function(module, exports) {
  11999. var toString = {}.toString;
  12000. module.exports = Array.isArray || function (arr) {
  12001. return toString.call(arr) == '[object Array]';
  12002. };
  12003. /***/ }),
  12004. /* 55 */
  12005. /*!***************************************************************!*\
  12006. !*** D:/yj-register/node_modules/uview-ui/libs/util/route.js ***!
  12007. \***************************************************************/
  12008. /*! no static exports found */
  12009. /***/ (function(module, exports, __webpack_require__) {
  12010. "use strict";
  12011. /* WEBPACK VAR INJECTION */(function(uni) {
  12012. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12013. Object.defineProperty(exports, "__esModule", {
  12014. value: true
  12015. });
  12016. exports.default = void 0;
  12017. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 56));
  12018. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 58));
  12019. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  12020. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  12021. /**
  12022. * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
  12023. * 并且带有路由拦截功能
  12024. */
  12025. var Router = /*#__PURE__*/function () {
  12026. function Router() {
  12027. (0, _classCallCheck2.default)(this, Router);
  12028. // 原始属性定义
  12029. this.config = {
  12030. type: 'navigateTo',
  12031. url: '',
  12032. delta: 1,
  12033. // navigateBack页面后退时,回退的层数
  12034. params: {},
  12035. // 传递的参数
  12036. animationType: 'pop-in',
  12037. // 窗口动画,只在APP有效
  12038. animationDuration: 300,
  12039. // 窗口动画持续时间,单位毫秒,只在APP有效
  12040. intercept: false // 是否需要拦截
  12041. };
  12042. // 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
  12043. // 这里在构造函数中进行this绑定
  12044. this.route = this.route.bind(this);
  12045. }
  12046. // 判断url前面是否有"/",如果没有则加上,否则无法跳转
  12047. (0, _createClass2.default)(Router, [{
  12048. key: "addRootPath",
  12049. value: function addRootPath(url) {
  12050. return url[0] === '/' ? url : "/".concat(url);
  12051. }
  12052. // 整合路由参数
  12053. }, {
  12054. key: "mixinParam",
  12055. value: function mixinParam(url, params) {
  12056. url = url && this.addRootPath(url);
  12057. // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
  12058. // 如果有url中有get参数,转换后无需带上"?"
  12059. var query = '';
  12060. if (/.*\/.*\?.*=.*/.test(url)) {
  12061. // object对象转为get类型的参数
  12062. query = uni.$u.queryParams(params, false);
  12063. // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
  12064. return url += "&".concat(query);
  12065. }
  12066. // 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
  12067. query = uni.$u.queryParams(params);
  12068. return url += query;
  12069. }
  12070. // 对外的方法名称
  12071. }, {
  12072. key: "route",
  12073. value: function () {
  12074. var _route = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  12075. var options,
  12076. params,
  12077. mergeConfig,
  12078. isNext,
  12079. _args = arguments;
  12080. return _regenerator.default.wrap(function _callee$(_context) {
  12081. while (1) {
  12082. switch (_context.prev = _context.next) {
  12083. case 0:
  12084. options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
  12085. params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
  12086. // 合并用户的配置和内部的默认配置
  12087. mergeConfig = {};
  12088. if (typeof options === 'string') {
  12089. // 如果options为字符串,则为route(url, params)的形式
  12090. mergeConfig.url = this.mixinParam(options, params);
  12091. mergeConfig.type = 'navigateTo';
  12092. } else {
  12093. mergeConfig = uni.$u.deepMerge(this.config, options);
  12094. // 否则正常使用mergeConfig中的url和params进行拼接
  12095. mergeConfig.url = this.mixinParam(options.url, options.params);
  12096. }
  12097. // 如果本次跳转的路径和本页面路径一致,不执行跳转,防止用户快速点击跳转按钮,造成多次跳转同一个页面的问题
  12098. if (!(mergeConfig.url === uni.$u.page())) {
  12099. _context.next = 6;
  12100. break;
  12101. }
  12102. return _context.abrupt("return");
  12103. case 6:
  12104. if (params.intercept) {
  12105. this.config.intercept = params.intercept;
  12106. }
  12107. // params参数也带给拦截器
  12108. mergeConfig.params = params;
  12109. // 合并内外部参数
  12110. mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
  12111. // 判断用户是否定义了拦截器
  12112. if (!(typeof uni.$u.routeIntercept === 'function')) {
  12113. _context.next = 16;
  12114. break;
  12115. }
  12116. _context.next = 12;
  12117. return new Promise(function (resolve, reject) {
  12118. uni.$u.routeIntercept(mergeConfig, resolve);
  12119. });
  12120. case 12:
  12121. isNext = _context.sent;
  12122. // 如果isNext为true,则执行路由跳转
  12123. isNext && this.openPage(mergeConfig);
  12124. _context.next = 17;
  12125. break;
  12126. case 16:
  12127. this.openPage(mergeConfig);
  12128. case 17:
  12129. case "end":
  12130. return _context.stop();
  12131. }
  12132. }
  12133. }, _callee, this);
  12134. }));
  12135. function route() {
  12136. return _route.apply(this, arguments);
  12137. }
  12138. return route;
  12139. }() // 执行路由跳转
  12140. }, {
  12141. key: "openPage",
  12142. value: function openPage(config) {
  12143. // 解构参数
  12144. var url = config.url,
  12145. type = config.type,
  12146. delta = config.delta,
  12147. animationType = config.animationType,
  12148. animationDuration = config.animationDuration;
  12149. if (config.type == 'navigateTo' || config.type == 'to') {
  12150. uni.navigateTo({
  12151. url: url,
  12152. animationType: animationType,
  12153. animationDuration: animationDuration
  12154. });
  12155. }
  12156. if (config.type == 'redirectTo' || config.type == 'redirect') {
  12157. uni.redirectTo({
  12158. url: url
  12159. });
  12160. }
  12161. if (config.type == 'switchTab' || config.type == 'tab') {
  12162. uni.switchTab({
  12163. url: url
  12164. });
  12165. }
  12166. if (config.type == 'reLaunch' || config.type == 'launch') {
  12167. uni.reLaunch({
  12168. url: url
  12169. });
  12170. }
  12171. if (config.type == 'navigateBack' || config.type == 'back') {
  12172. uni.navigateBack({
  12173. delta: delta
  12174. });
  12175. }
  12176. }
  12177. }]);
  12178. return Router;
  12179. }();
  12180. var _default = new Router().route;
  12181. exports.default = _default;
  12182. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  12183. /***/ }),
  12184. /* 56 */
  12185. /*!************************************************************************************************!*\
  12186. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  12187. \************************************************************************************************/
  12188. /*! no static exports found */
  12189. /***/ (function(module, exports, __webpack_require__) {
  12190. // TODO(Babel 8): Remove this file.
  12191. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 57)();
  12192. module.exports = runtime;
  12193. /***/ }),
  12194. /* 57 */
  12195. /*!*******************************************************************!*\
  12196. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  12197. \*******************************************************************/
  12198. /*! no static exports found */
  12199. /***/ (function(module, exports, __webpack_require__) {
  12200. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  12201. function _regeneratorRuntime() {
  12202. "use strict";
  12203. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  12204. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  12205. return e;
  12206. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12207. var t,
  12208. e = {},
  12209. r = Object.prototype,
  12210. n = r.hasOwnProperty,
  12211. o = Object.defineProperty || function (t, e, r) {
  12212. t[e] = r.value;
  12213. },
  12214. i = "function" == typeof Symbol ? Symbol : {},
  12215. a = i.iterator || "@@iterator",
  12216. c = i.asyncIterator || "@@asyncIterator",
  12217. u = i.toStringTag || "@@toStringTag";
  12218. function define(t, e, r) {
  12219. return Object.defineProperty(t, e, {
  12220. value: r,
  12221. enumerable: !0,
  12222. configurable: !0,
  12223. writable: !0
  12224. }), t[e];
  12225. }
  12226. try {
  12227. define({}, "");
  12228. } catch (t) {
  12229. define = function define(t, e, r) {
  12230. return t[e] = r;
  12231. };
  12232. }
  12233. function wrap(t, e, r, n) {
  12234. var i = e && e.prototype instanceof Generator ? e : Generator,
  12235. a = Object.create(i.prototype),
  12236. c = new Context(n || []);
  12237. return o(a, "_invoke", {
  12238. value: makeInvokeMethod(t, r, c)
  12239. }), a;
  12240. }
  12241. function tryCatch(t, e, r) {
  12242. try {
  12243. return {
  12244. type: "normal",
  12245. arg: t.call(e, r)
  12246. };
  12247. } catch (t) {
  12248. return {
  12249. type: "throw",
  12250. arg: t
  12251. };
  12252. }
  12253. }
  12254. e.wrap = wrap;
  12255. var h = "suspendedStart",
  12256. l = "suspendedYield",
  12257. f = "executing",
  12258. s = "completed",
  12259. y = {};
  12260. function Generator() {}
  12261. function GeneratorFunction() {}
  12262. function GeneratorFunctionPrototype() {}
  12263. var p = {};
  12264. define(p, a, function () {
  12265. return this;
  12266. });
  12267. var d = Object.getPrototypeOf,
  12268. v = d && d(d(values([])));
  12269. v && v !== r && n.call(v, a) && (p = v);
  12270. var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
  12271. function defineIteratorMethods(t) {
  12272. ["next", "throw", "return"].forEach(function (e) {
  12273. define(t, e, function (t) {
  12274. return this._invoke(e, t);
  12275. });
  12276. });
  12277. }
  12278. function AsyncIterator(t, e) {
  12279. function invoke(r, o, i, a) {
  12280. var c = tryCatch(t[r], t, o);
  12281. if ("throw" !== c.type) {
  12282. var u = c.arg,
  12283. h = u.value;
  12284. return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
  12285. invoke("next", t, i, a);
  12286. }, function (t) {
  12287. invoke("throw", t, i, a);
  12288. }) : e.resolve(h).then(function (t) {
  12289. u.value = t, i(u);
  12290. }, function (t) {
  12291. return invoke("throw", t, i, a);
  12292. });
  12293. }
  12294. a(c.arg);
  12295. }
  12296. var r;
  12297. o(this, "_invoke", {
  12298. value: function value(t, n) {
  12299. function callInvokeWithMethodAndArg() {
  12300. return new e(function (e, r) {
  12301. invoke(t, n, e, r);
  12302. });
  12303. }
  12304. return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  12305. }
  12306. });
  12307. }
  12308. function makeInvokeMethod(e, r, n) {
  12309. var o = h;
  12310. return function (i, a) {
  12311. if (o === f) throw new Error("Generator is already running");
  12312. if (o === s) {
  12313. if ("throw" === i) throw a;
  12314. return {
  12315. value: t,
  12316. done: !0
  12317. };
  12318. }
  12319. for (n.method = i, n.arg = a;;) {
  12320. var c = n.delegate;
  12321. if (c) {
  12322. var u = maybeInvokeDelegate(c, n);
  12323. if (u) {
  12324. if (u === y) continue;
  12325. return u;
  12326. }
  12327. }
  12328. if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
  12329. if (o === h) throw o = s, n.arg;
  12330. n.dispatchException(n.arg);
  12331. } else "return" === n.method && n.abrupt("return", n.arg);
  12332. o = f;
  12333. var p = tryCatch(e, r, n);
  12334. if ("normal" === p.type) {
  12335. if (o = n.done ? s : l, p.arg === y) continue;
  12336. return {
  12337. value: p.arg,
  12338. done: n.done
  12339. };
  12340. }
  12341. "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
  12342. }
  12343. };
  12344. }
  12345. function maybeInvokeDelegate(e, r) {
  12346. var n = r.method,
  12347. o = e.iterator[n];
  12348. if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
  12349. var i = tryCatch(o, e.iterator, r.arg);
  12350. if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
  12351. var a = i.arg;
  12352. return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
  12353. }
  12354. function pushTryEntry(t) {
  12355. var e = {
  12356. tryLoc: t[0]
  12357. };
  12358. 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
  12359. }
  12360. function resetTryEntry(t) {
  12361. var e = t.completion || {};
  12362. e.type = "normal", delete e.arg, t.completion = e;
  12363. }
  12364. function Context(t) {
  12365. this.tryEntries = [{
  12366. tryLoc: "root"
  12367. }], t.forEach(pushTryEntry, this), this.reset(!0);
  12368. }
  12369. function values(e) {
  12370. if (e || "" === e) {
  12371. var r = e[a];
  12372. if (r) return r.call(e);
  12373. if ("function" == typeof e.next) return e;
  12374. if (!isNaN(e.length)) {
  12375. var o = -1,
  12376. i = function next() {
  12377. for (; ++o < e.length;) {
  12378. if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
  12379. }
  12380. return next.value = t, next.done = !0, next;
  12381. };
  12382. return i.next = i;
  12383. }
  12384. }
  12385. throw new TypeError(_typeof(e) + " is not iterable");
  12386. }
  12387. return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
  12388. value: GeneratorFunctionPrototype,
  12389. configurable: !0
  12390. }), o(GeneratorFunctionPrototype, "constructor", {
  12391. value: GeneratorFunction,
  12392. configurable: !0
  12393. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
  12394. var e = "function" == typeof t && t.constructor;
  12395. return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
  12396. }, e.mark = function (t) {
  12397. return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
  12398. }, e.awrap = function (t) {
  12399. return {
  12400. __await: t
  12401. };
  12402. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
  12403. return this;
  12404. }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
  12405. void 0 === i && (i = Promise);
  12406. var a = new AsyncIterator(wrap(t, r, n, o), i);
  12407. return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
  12408. return t.done ? t.value : a.next();
  12409. });
  12410. }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
  12411. return this;
  12412. }), define(g, "toString", function () {
  12413. return "[object Generator]";
  12414. }), e.keys = function (t) {
  12415. var e = Object(t),
  12416. r = [];
  12417. for (var n in e) {
  12418. r.push(n);
  12419. }
  12420. return r.reverse(), function next() {
  12421. for (; r.length;) {
  12422. var t = r.pop();
  12423. if (t in e) return next.value = t, next.done = !1, next;
  12424. }
  12425. return next.done = !0, next;
  12426. };
  12427. }, e.values = values, Context.prototype = {
  12428. constructor: Context,
  12429. reset: function reset(e) {
  12430. if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) {
  12431. "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
  12432. }
  12433. },
  12434. stop: function stop() {
  12435. this.done = !0;
  12436. var t = this.tryEntries[0].completion;
  12437. if ("throw" === t.type) throw t.arg;
  12438. return this.rval;
  12439. },
  12440. dispatchException: function dispatchException(e) {
  12441. if (this.done) throw e;
  12442. var r = this;
  12443. function handle(n, o) {
  12444. return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
  12445. }
  12446. for (var o = this.tryEntries.length - 1; o >= 0; --o) {
  12447. var i = this.tryEntries[o],
  12448. a = i.completion;
  12449. if ("root" === i.tryLoc) return handle("end");
  12450. if (i.tryLoc <= this.prev) {
  12451. var c = n.call(i, "catchLoc"),
  12452. u = n.call(i, "finallyLoc");
  12453. if (c && u) {
  12454. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  12455. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  12456. } else if (c) {
  12457. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  12458. } else {
  12459. if (!u) throw new Error("try statement without catch or finally");
  12460. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  12461. }
  12462. }
  12463. }
  12464. },
  12465. abrupt: function abrupt(t, e) {
  12466. for (var r = this.tryEntries.length - 1; r >= 0; --r) {
  12467. var o = this.tryEntries[r];
  12468. if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
  12469. var i = o;
  12470. break;
  12471. }
  12472. }
  12473. i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
  12474. var a = i ? i.completion : {};
  12475. return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
  12476. },
  12477. complete: function complete(t, e) {
  12478. if ("throw" === t.type) throw t.arg;
  12479. return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
  12480. },
  12481. finish: function finish(t) {
  12482. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  12483. var r = this.tryEntries[e];
  12484. if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
  12485. }
  12486. },
  12487. "catch": function _catch(t) {
  12488. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  12489. var r = this.tryEntries[e];
  12490. if (r.tryLoc === t) {
  12491. var n = r.completion;
  12492. if ("throw" === n.type) {
  12493. var o = n.arg;
  12494. resetTryEntry(r);
  12495. }
  12496. return o;
  12497. }
  12498. }
  12499. throw new Error("illegal catch attempt");
  12500. },
  12501. delegateYield: function delegateYield(e, r, n) {
  12502. return this.delegate = {
  12503. iterator: values(e),
  12504. resultName: r,
  12505. nextLoc: n
  12506. }, "next" === this.method && (this.arg = t), y;
  12507. }
  12508. }, e;
  12509. }
  12510. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12511. /***/ }),
  12512. /* 58 */
  12513. /*!*****************************************************************!*\
  12514. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  12515. \*****************************************************************/
  12516. /*! no static exports found */
  12517. /***/ (function(module, exports) {
  12518. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  12519. try {
  12520. var info = gen[key](arg);
  12521. var value = info.value;
  12522. } catch (error) {
  12523. reject(error);
  12524. return;
  12525. }
  12526. if (info.done) {
  12527. resolve(value);
  12528. } else {
  12529. Promise.resolve(value).then(_next, _throw);
  12530. }
  12531. }
  12532. function _asyncToGenerator(fn) {
  12533. return function () {
  12534. var self = this,
  12535. args = arguments;
  12536. return new Promise(function (resolve, reject) {
  12537. var gen = fn.apply(self, args);
  12538. function _next(value) {
  12539. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  12540. }
  12541. function _throw(err) {
  12542. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  12543. }
  12544. _next(undefined);
  12545. });
  12546. };
  12547. }
  12548. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12549. /***/ }),
  12550. /* 59 */
  12551. /*!***************************************************************************!*\
  12552. !*** D:/yj-register/node_modules/uview-ui/libs/function/colorGradient.js ***!
  12553. \***************************************************************************/
  12554. /*! no static exports found */
  12555. /***/ (function(module, exports, __webpack_require__) {
  12556. "use strict";
  12557. Object.defineProperty(exports, "__esModule", {
  12558. value: true
  12559. });
  12560. exports.default = void 0;
  12561. /**
  12562. * 求两个颜色之间的渐变值
  12563. * @param {string} startColor 开始的颜色
  12564. * @param {string} endColor 结束的颜色
  12565. * @param {number} step 颜色等分的份额
  12566. * */
  12567. function colorGradient() {
  12568. var startColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'rgb(0, 0, 0)';
  12569. var endColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rgb(255, 255, 255)';
  12570. var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
  12571. var startRGB = hexToRgb(startColor, false); // 转换为rgb数组模式
  12572. var startR = startRGB[0];
  12573. var startG = startRGB[1];
  12574. var startB = startRGB[2];
  12575. var endRGB = hexToRgb(endColor, false);
  12576. var endR = endRGB[0];
  12577. var endG = endRGB[1];
  12578. var endB = endRGB[2];
  12579. var sR = (endR - startR) / step; // 总差值
  12580. var sG = (endG - startG) / step;
  12581. var sB = (endB - startB) / step;
  12582. var colorArr = [];
  12583. for (var i = 0; i < step; i++) {
  12584. // 计算每一步的hex值
  12585. var hex = rgbToHex("rgb(".concat(Math.round(sR * i + startR), ",").concat(Math.round(sG * i + startG), ",").concat(Math.round(sB * i + startB), ")"));
  12586. // 确保第一个颜色值为startColor的值
  12587. if (i === 0) hex = rgbToHex(startColor);
  12588. // 确保最后一个颜色值为endColor的值
  12589. if (i === step - 1) hex = rgbToHex(endColor);
  12590. colorArr.push(hex);
  12591. }
  12592. return colorArr;
  12593. }
  12594. // 将hex表示方式转换为rgb表示方式(这里返回rgb数组模式)
  12595. function hexToRgb(sColor) {
  12596. var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  12597. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12598. sColor = String(sColor).toLowerCase();
  12599. if (sColor && reg.test(sColor)) {
  12600. if (sColor.length === 4) {
  12601. var sColorNew = '#';
  12602. for (var i = 1; i < 4; i += 1) {
  12603. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  12604. }
  12605. sColor = sColorNew;
  12606. }
  12607. // 处理六位的颜色值
  12608. var sColorChange = [];
  12609. for (var _i = 1; _i < 7; _i += 2) {
  12610. sColorChange.push(parseInt("0x".concat(sColor.slice(_i, _i + 2))));
  12611. }
  12612. if (!str) {
  12613. return sColorChange;
  12614. }
  12615. return "rgb(".concat(sColorChange[0], ",").concat(sColorChange[1], ",").concat(sColorChange[2], ")");
  12616. }
  12617. if (/^(rgb|RGB)/.test(sColor)) {
  12618. var arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  12619. return arr.map(function (val) {
  12620. return Number(val);
  12621. });
  12622. }
  12623. return sColor;
  12624. }
  12625. // 将rgb表示方式转换为hex表示方式
  12626. function rgbToHex(rgb) {
  12627. var _this = rgb;
  12628. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12629. if (/^(rgb|RGB)/.test(_this)) {
  12630. var aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  12631. var strHex = '#';
  12632. for (var i = 0; i < aColor.length; i++) {
  12633. var hex = Number(aColor[i]).toString(16);
  12634. hex = String(hex).length == 1 ? "".concat(0, hex) : hex; // 保证每个rgb的值为2位
  12635. if (hex === '0') {
  12636. hex += hex;
  12637. }
  12638. strHex += hex;
  12639. }
  12640. if (strHex.length !== 7) {
  12641. strHex = _this;
  12642. }
  12643. return strHex;
  12644. }
  12645. if (reg.test(_this)) {
  12646. var aNum = _this.replace(/#/, '').split('');
  12647. if (aNum.length === 6) {
  12648. return _this;
  12649. }
  12650. if (aNum.length === 3) {
  12651. var numHex = '#';
  12652. for (var _i2 = 0; _i2 < aNum.length; _i2 += 1) {
  12653. numHex += aNum[_i2] + aNum[_i2];
  12654. }
  12655. return numHex;
  12656. }
  12657. } else {
  12658. return _this;
  12659. }
  12660. }
  12661. /**
  12662. * JS颜色十六进制转换为rgb或rgba,返回的格式为 rgba(255,255,255,0.5)字符串
  12663. * sHex为传入的十六进制的色值
  12664. * alpha为rgba的透明度
  12665. */
  12666. function colorToRgba(color, alpha) {
  12667. color = rgbToHex(color);
  12668. // 十六进制颜色值的正则表达式
  12669. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12670. /* 16进制颜色转为RGB格式 */
  12671. var sColor = String(color).toLowerCase();
  12672. if (sColor && reg.test(sColor)) {
  12673. if (sColor.length === 4) {
  12674. var sColorNew = '#';
  12675. for (var i = 1; i < 4; i += 1) {
  12676. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  12677. }
  12678. sColor = sColorNew;
  12679. }
  12680. // 处理六位的颜色值
  12681. var sColorChange = [];
  12682. for (var _i3 = 1; _i3 < 7; _i3 += 2) {
  12683. sColorChange.push(parseInt("0x".concat(sColor.slice(_i3, _i3 + 2))));
  12684. }
  12685. // return sColorChange.join(',')
  12686. return "rgba(".concat(sColorChange.join(','), ",").concat(alpha, ")");
  12687. }
  12688. return sColor;
  12689. }
  12690. var _default = {
  12691. colorGradient: colorGradient,
  12692. hexToRgb: hexToRgb,
  12693. rgbToHex: rgbToHex,
  12694. colorToRgba: colorToRgba
  12695. };
  12696. exports.default = _default;
  12697. /***/ }),
  12698. /* 60 */
  12699. /*!******************************************************************!*\
  12700. !*** D:/yj-register/node_modules/uview-ui/libs/function/test.js ***!
  12701. \******************************************************************/
  12702. /*! no static exports found */
  12703. /***/ (function(module, exports, __webpack_require__) {
  12704. "use strict";
  12705. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12706. Object.defineProperty(exports, "__esModule", {
  12707. value: true
  12708. });
  12709. exports.default = void 0;
  12710. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  12711. /**
  12712. * 验证电子邮箱格式
  12713. */
  12714. function email(value) {
  12715. return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
  12716. }
  12717. /**
  12718. * 验证手机格式
  12719. */
  12720. function mobile(value) {
  12721. return /^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/.test(value);
  12722. }
  12723. /**
  12724. * 验证URL格式
  12725. */
  12726. function url(value) {
  12727. 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);
  12728. }
  12729. /**
  12730. * 验证日期格式
  12731. */
  12732. function date(value) {
  12733. if (!value) return false;
  12734. // 判断是否数值或者字符串数值(意味着为时间戳),转为数值,否则new Date无法识别字符串时间戳
  12735. if (number(value)) value = +value;
  12736. return !/Invalid|NaN/.test(new Date(value).toString());
  12737. }
  12738. /**
  12739. * 验证ISO类型的日期格式
  12740. */
  12741. function dateISO(value) {
  12742. return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);
  12743. }
  12744. /**
  12745. * 验证十进制数字
  12746. */
  12747. function number(value) {
  12748. return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value);
  12749. }
  12750. /**
  12751. * 验证字符串
  12752. */
  12753. function string(value) {
  12754. return typeof value === 'string';
  12755. }
  12756. /**
  12757. * 验证整数
  12758. */
  12759. function digits(value) {
  12760. return /^\d+$/.test(value);
  12761. }
  12762. /**
  12763. * 验证身份证号码
  12764. */
  12765. function idCard(value) {
  12766. 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);
  12767. }
  12768. /**
  12769. * 是否车牌号
  12770. */
  12771. function carNo(value) {
  12772. // 新能源车牌
  12773. var xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
  12774. // 旧车牌
  12775. var creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
  12776. if (value.length === 7) {
  12777. return creg.test(value);
  12778. }
  12779. if (value.length === 8) {
  12780. return xreg.test(value);
  12781. }
  12782. return false;
  12783. }
  12784. /**
  12785. * 金额,只允许2位小数
  12786. */
  12787. function amount(value) {
  12788. // 金额,只允许保留两位小数
  12789. return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value);
  12790. }
  12791. /**
  12792. * 中文
  12793. */
  12794. function chinese(value) {
  12795. var reg = /^[\u4e00-\u9fa5]+$/gi;
  12796. return reg.test(value);
  12797. }
  12798. /**
  12799. * 只能输入字母
  12800. */
  12801. function letter(value) {
  12802. return /^[a-zA-Z]*$/.test(value);
  12803. }
  12804. /**
  12805. * 只能是字母或者数字
  12806. */
  12807. function enOrNum(value) {
  12808. // 英文或者数字
  12809. var reg = /^[0-9a-zA-Z]*$/g;
  12810. return reg.test(value);
  12811. }
  12812. /**
  12813. * 验证是否包含某个值
  12814. */
  12815. function contains(value, param) {
  12816. return value.indexOf(param) >= 0;
  12817. }
  12818. /**
  12819. * 验证一个值范围[min, max]
  12820. */
  12821. function range(value, param) {
  12822. return value >= param[0] && value <= param[1];
  12823. }
  12824. /**
  12825. * 验证一个长度范围[min, max]
  12826. */
  12827. function rangeLength(value, param) {
  12828. return value.length >= param[0] && value.length <= param[1];
  12829. }
  12830. /**
  12831. * 是否固定电话
  12832. */
  12833. function landline(value) {
  12834. var reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;
  12835. return reg.test(value);
  12836. }
  12837. /**
  12838. * 判断是否为空
  12839. */
  12840. function empty(value) {
  12841. switch ((0, _typeof2.default)(value)) {
  12842. case 'undefined':
  12843. return true;
  12844. case 'string':
  12845. if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) return true;
  12846. break;
  12847. case 'boolean':
  12848. if (!value) return true;
  12849. break;
  12850. case 'number':
  12851. if (value === 0 || isNaN(value)) return true;
  12852. break;
  12853. case 'object':
  12854. if (value === null || value.length === 0) return true;
  12855. for (var i in value) {
  12856. return false;
  12857. }
  12858. return true;
  12859. }
  12860. return false;
  12861. }
  12862. /**
  12863. * 是否json字符串
  12864. */
  12865. function jsonString(value) {
  12866. if (typeof value === 'string') {
  12867. try {
  12868. var obj = JSON.parse(value);
  12869. if ((0, _typeof2.default)(obj) === 'object' && obj) {
  12870. return true;
  12871. }
  12872. return false;
  12873. } catch (e) {
  12874. return false;
  12875. }
  12876. }
  12877. return false;
  12878. }
  12879. /**
  12880. * 是否数组
  12881. */
  12882. function array(value) {
  12883. if (typeof Array.isArray === 'function') {
  12884. return Array.isArray(value);
  12885. }
  12886. return Object.prototype.toString.call(value) === '[object Array]';
  12887. }
  12888. /**
  12889. * 是否对象
  12890. */
  12891. function object(value) {
  12892. return Object.prototype.toString.call(value) === '[object Object]';
  12893. }
  12894. /**
  12895. * 是否短信验证码
  12896. */
  12897. function code(value) {
  12898. var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
  12899. return new RegExp("^\\d{".concat(len, "}$")).test(value);
  12900. }
  12901. /**
  12902. * 是否函数方法
  12903. * @param {Object} value
  12904. */
  12905. function func(value) {
  12906. return typeof value === 'function';
  12907. }
  12908. /**
  12909. * 是否promise对象
  12910. * @param {Object} value
  12911. */
  12912. function promise(value) {
  12913. return object(value) && func(value.then) && func(value.catch);
  12914. }
  12915. /** 是否图片格式
  12916. * @param {Object} value
  12917. */
  12918. function image(value) {
  12919. var newValue = value.split('?')[0];
  12920. var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  12921. return IMAGE_REGEXP.test(newValue);
  12922. }
  12923. /**
  12924. * 是否视频格式
  12925. * @param {Object} value
  12926. */
  12927. function video(value) {
  12928. var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;
  12929. return VIDEO_REGEXP.test(value);
  12930. }
  12931. /**
  12932. * 是否为正则对象
  12933. * @param {Object}
  12934. * @return {Boolean}
  12935. */
  12936. function regExp(o) {
  12937. return o && Object.prototype.toString.call(o) === '[object RegExp]';
  12938. }
  12939. var _default = {
  12940. email: email,
  12941. mobile: mobile,
  12942. url: url,
  12943. date: date,
  12944. dateISO: dateISO,
  12945. number: number,
  12946. digits: digits,
  12947. idCard: idCard,
  12948. carNo: carNo,
  12949. amount: amount,
  12950. chinese: chinese,
  12951. letter: letter,
  12952. enOrNum: enOrNum,
  12953. contains: contains,
  12954. range: range,
  12955. rangeLength: rangeLength,
  12956. empty: empty,
  12957. isEmpty: empty,
  12958. jsonString: jsonString,
  12959. landline: landline,
  12960. object: object,
  12961. array: array,
  12962. code: code,
  12963. func: func,
  12964. promise: promise,
  12965. video: video,
  12966. image: image,
  12967. regExp: regExp,
  12968. string: string
  12969. };
  12970. exports.default = _default;
  12971. /***/ }),
  12972. /* 61 */
  12973. /*!**********************************************************************!*\
  12974. !*** D:/yj-register/node_modules/uview-ui/libs/function/debounce.js ***!
  12975. \**********************************************************************/
  12976. /*! no static exports found */
  12977. /***/ (function(module, exports, __webpack_require__) {
  12978. "use strict";
  12979. Object.defineProperty(exports, "__esModule", {
  12980. value: true
  12981. });
  12982. exports.default = void 0;
  12983. var timeout = null;
  12984. /**
  12985. * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数
  12986. *
  12987. * @param {Function} func 要执行的回调函数
  12988. * @param {Number} wait 延时的时间
  12989. * @param {Boolean} immediate 是否立即执行
  12990. * @return null
  12991. */
  12992. function debounce(func) {
  12993. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  12994. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  12995. // 清除定时器
  12996. if (timeout !== null) clearTimeout(timeout);
  12997. // 立即执行,此类情况一般用不到
  12998. if (immediate) {
  12999. var callNow = !timeout;
  13000. timeout = setTimeout(function () {
  13001. timeout = null;
  13002. }, wait);
  13003. if (callNow) typeof func === 'function' && func();
  13004. } else {
  13005. // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法
  13006. timeout = setTimeout(function () {
  13007. typeof func === 'function' && func();
  13008. }, wait);
  13009. }
  13010. }
  13011. var _default = debounce;
  13012. exports.default = _default;
  13013. /***/ }),
  13014. /* 62 */
  13015. /*!**********************************************************************!*\
  13016. !*** D:/yj-register/node_modules/uview-ui/libs/function/throttle.js ***!
  13017. \**********************************************************************/
  13018. /*! no static exports found */
  13019. /***/ (function(module, exports, __webpack_require__) {
  13020. "use strict";
  13021. Object.defineProperty(exports, "__esModule", {
  13022. value: true
  13023. });
  13024. exports.default = void 0;
  13025. var timer;
  13026. var flag;
  13027. /**
  13028. * 节流原理:在一定时间内,只能触发一次
  13029. *
  13030. * @param {Function} func 要执行的回调函数
  13031. * @param {Number} wait 延时的时间
  13032. * @param {Boolean} immediate 是否立即执行
  13033. * @return null
  13034. */
  13035. function throttle(func) {
  13036. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  13037. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  13038. if (immediate) {
  13039. if (!flag) {
  13040. flag = true;
  13041. // 如果是立即执行,则在wait毫秒内开始时执行
  13042. typeof func === 'function' && func();
  13043. timer = setTimeout(function () {
  13044. flag = false;
  13045. }, wait);
  13046. }
  13047. } else if (!flag) {
  13048. flag = true;
  13049. // 如果是非立即执行,则在wait毫秒内的结束处执行
  13050. timer = setTimeout(function () {
  13051. flag = false;
  13052. typeof func === 'function' && func();
  13053. }, wait);
  13054. }
  13055. }
  13056. var _default = throttle;
  13057. exports.default = _default;
  13058. /***/ }),
  13059. /* 63 */
  13060. /*!*******************************************************************!*\
  13061. !*** D:/yj-register/node_modules/uview-ui/libs/function/index.js ***!
  13062. \*******************************************************************/
  13063. /*! no static exports found */
  13064. /***/ (function(module, exports, __webpack_require__) {
  13065. "use strict";
  13066. /* WEBPACK VAR INJECTION */(function(uni) {
  13067. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  13068. Object.defineProperty(exports, "__esModule", {
  13069. value: true
  13070. });
  13071. exports.default = void 0;
  13072. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  13073. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  13074. var _test = _interopRequireDefault(__webpack_require__(/*! ./test.js */ 60));
  13075. var _digit = __webpack_require__(/*! ./digit.js */ 64);
  13076. /**
  13077. * @description 如果value小于min,取min;如果value大于max,取max
  13078. * @param {number} min
  13079. * @param {number} max
  13080. * @param {number} value
  13081. */
  13082. function range() {
  13083. var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  13084. var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  13085. var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
  13086. return Math.max(min, Math.min(max, Number(value)));
  13087. }
  13088. /**
  13089. * @description 用于获取用户传递值的px值 如果用户传递了"xxpx"或者"xxrpx",取出其数值部分,如果是"xxxrpx"还需要用过uni.upx2px进行转换
  13090. * @param {number|string} value 用户传递值的px值
  13091. * @param {boolean} unit
  13092. * @returns {number|string}
  13093. */
  13094. function getPx(value) {
  13095. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13096. if (_test.default.number(value)) {
  13097. return unit ? "".concat(value, "px") : Number(value);
  13098. }
  13099. // 如果带有rpx,先取出其数值部分,再转为px值
  13100. if (/(rpx|upx)$/.test(value)) {
  13101. return unit ? "".concat(uni.upx2px(parseInt(value)), "px") : Number(uni.upx2px(parseInt(value)));
  13102. }
  13103. return unit ? "".concat(parseInt(value), "px") : parseInt(value);
  13104. }
  13105. /**
  13106. * @description 进行延时,以达到可以简写代码的目的 比如: await uni.$u.sleep(20)将会阻塞20ms
  13107. * @param {number} value 堵塞时间 单位ms 毫秒
  13108. * @returns {Promise} 返回promise
  13109. */
  13110. function sleep() {
  13111. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 30;
  13112. return new Promise(function (resolve) {
  13113. setTimeout(function () {
  13114. resolve();
  13115. }, value);
  13116. });
  13117. }
  13118. /**
  13119. * @description 运行期判断平台
  13120. * @returns {string} 返回所在平台(小写)
  13121. * @link 运行期判断平台 https://uniapp.dcloud.io/frame?id=判断平台
  13122. */
  13123. function os() {
  13124. return uni.getSystemInfoSync().platform.toLowerCase();
  13125. }
  13126. /**
  13127. * @description 获取系统信息同步接口
  13128. * @link 获取系统信息同步接口 https://uniapp.dcloud.io/api/system/info?id=getsysteminfosync
  13129. */
  13130. function sys() {
  13131. return uni.getSystemInfoSync();
  13132. }
  13133. /**
  13134. * @description 取一个区间数
  13135. * @param {Number} min 最小值
  13136. * @param {Number} max 最大值
  13137. */
  13138. function random(min, max) {
  13139. if (min >= 0 && max > 0 && max >= min) {
  13140. var gab = max - min + 1;
  13141. return Math.floor(Math.random() * gab + min);
  13142. }
  13143. return 0;
  13144. }
  13145. /**
  13146. * @param {Number} len uuid的长度
  13147. * @param {Boolean} firstU 将返回的首字母置为"u"
  13148. * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
  13149. */
  13150. function guid() {
  13151. var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
  13152. var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13153. var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  13154. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  13155. var uuid = [];
  13156. radix = radix || chars.length;
  13157. if (len) {
  13158. // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
  13159. for (var i = 0; i < len; i++) {
  13160. uuid[i] = chars[0 | Math.random() * radix];
  13161. }
  13162. } else {
  13163. var r;
  13164. // rfc4122标准要求返回的uuid中,某些位为固定的字符
  13165. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  13166. uuid[14] = '4';
  13167. for (var _i = 0; _i < 36; _i++) {
  13168. if (!uuid[_i]) {
  13169. r = 0 | Math.random() * 16;
  13170. uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
  13171. }
  13172. }
  13173. }
  13174. // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  13175. if (firstU) {
  13176. uuid.shift();
  13177. return "u".concat(uuid.join(''));
  13178. }
  13179. return uuid.join('');
  13180. }
  13181. /**
  13182. * @description 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  13183. this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  13184. 这里默认值等于undefined有它的含义,因为最顶层元素(组件)的$parent就是undefined,意味着不传name
  13185. 值(默认为undefined),就是查找最顶层的$parent
  13186. * @param {string|undefined} name 父组件的参数名
  13187. */
  13188. function $parent() {
  13189. var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  13190. var parent = this.$parent;
  13191. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  13192. while (parent) {
  13193. // 父组件
  13194. if (parent.$options && parent.$options.name !== name) {
  13195. // 如果组件的name不相等,继续上一级寻找
  13196. parent = parent.$parent;
  13197. } else {
  13198. return parent;
  13199. }
  13200. }
  13201. return false;
  13202. }
  13203. /**
  13204. * @description 样式转换
  13205. * 对象转字符串,或者字符串转对象
  13206. * @param {object | string} customStyle 需要转换的目标
  13207. * @param {String} target 转换的目的,object-转为对象,string-转为字符串
  13208. * @returns {object|string}
  13209. */
  13210. function addStyle(customStyle) {
  13211. var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'object';
  13212. // 字符串转字符串,对象转对象情形,直接返回
  13213. if (_test.default.empty(customStyle) || (0, _typeof2.default)(customStyle) === 'object' && target === 'object' || target === 'string' && typeof customStyle === 'string') {
  13214. return customStyle;
  13215. }
  13216. // 字符串转对象
  13217. if (target === 'object') {
  13218. // 去除字符串样式中的两端空格(中间的空格不能去掉,比如padding: 20px 0如果去掉了就错了),空格是无用的
  13219. customStyle = trim(customStyle);
  13220. // 根据";"将字符串转为数组形式
  13221. var styleArray = customStyle.split(';');
  13222. var style = {};
  13223. // 历遍数组,拼接成对象
  13224. for (var i = 0; i < styleArray.length; i++) {
  13225. // 'font-size:20px;color:red;',如此最后字符串有";"的话,会导致styleArray最后一个元素为空字符串,这里需要过滤
  13226. if (styleArray[i]) {
  13227. var item = styleArray[i].split(':');
  13228. style[trim(item[0])] = trim(item[1]);
  13229. }
  13230. }
  13231. return style;
  13232. }
  13233. // 这里为对象转字符串形式
  13234. var string = '';
  13235. for (var _i2 in customStyle) {
  13236. // 驼峰转为中划线的形式,否则css内联样式,无法识别驼峰样式属性名
  13237. var key = _i2.replace(/([A-Z])/g, '-$1').toLowerCase();
  13238. string += "".concat(key, ":").concat(customStyle[_i2], ";");
  13239. }
  13240. // 去除两端空格
  13241. return trim(string);
  13242. }
  13243. /**
  13244. * @description 添加单位,如果有rpx,upx,%,px等单位结尾或者值为auto,直接返回,否则加上px单位结尾
  13245. * @param {string|number} value 需要添加单位的值
  13246. * @param {string} unit 添加的单位名 比如px
  13247. */
  13248. function addUnit() {
  13249. var _uni$$u$config$unit, _uni, _uni$$u, _uni$$u$config;
  13250. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'auto';
  13251. 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';
  13252. value = String(value);
  13253. // 用uView内置验证规则中的number判断是否为数值
  13254. return _test.default.number(value) ? "".concat(value).concat(unit) : value;
  13255. }
  13256. /**
  13257. * @description 深度克隆
  13258. * @param {object} obj 需要深度克隆的对象
  13259. * @param cache 缓存
  13260. * @returns {*} 克隆后的对象或者原值(不是对象)
  13261. */
  13262. function deepClone(obj) {
  13263. var cache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new WeakMap();
  13264. if (obj === null || (0, _typeof2.default)(obj) !== 'object') return obj;
  13265. if (cache.has(obj)) return cache.get(obj);
  13266. var clone;
  13267. if (obj instanceof Date) {
  13268. clone = new Date(obj.getTime());
  13269. } else if (obj instanceof RegExp) {
  13270. clone = new RegExp(obj);
  13271. } else if (obj instanceof Map) {
  13272. clone = new Map(Array.from(obj, function (_ref) {
  13273. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  13274. key = _ref2[0],
  13275. value = _ref2[1];
  13276. return [key, deepClone(value, cache)];
  13277. }));
  13278. } else if (obj instanceof Set) {
  13279. clone = new Set(Array.from(obj, function (value) {
  13280. return deepClone(value, cache);
  13281. }));
  13282. } else if (Array.isArray(obj)) {
  13283. clone = obj.map(function (value) {
  13284. return deepClone(value, cache);
  13285. });
  13286. } else if (Object.prototype.toString.call(obj) === '[object Object]') {
  13287. clone = Object.create(Object.getPrototypeOf(obj));
  13288. cache.set(obj, clone);
  13289. for (var _i3 = 0, _Object$entries = Object.entries(obj); _i3 < _Object$entries.length; _i3++) {
  13290. var _Object$entries$_i = (0, _slicedToArray2.default)(_Object$entries[_i3], 2),
  13291. key = _Object$entries$_i[0],
  13292. value = _Object$entries$_i[1];
  13293. clone[key] = deepClone(value, cache);
  13294. }
  13295. } else {
  13296. clone = Object.assign({}, obj);
  13297. }
  13298. cache.set(obj, clone);
  13299. return clone;
  13300. }
  13301. /**
  13302. * @description JS对象深度合并
  13303. * @param {object} target 需要拷贝的对象
  13304. * @param {object} source 拷贝的来源对象
  13305. * @returns {object|boolean} 深度合并后的对象或者false(入参有不是对象)
  13306. */
  13307. function deepMerge() {
  13308. var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13309. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  13310. target = deepClone(target);
  13311. if ((0, _typeof2.default)(target) !== 'object' || target === null || (0, _typeof2.default)(source) !== 'object' || source === null) return target;
  13312. var merged = Array.isArray(target) ? target.slice() : Object.assign({}, target);
  13313. for (var prop in source) {
  13314. if (!source.hasOwnProperty(prop)) continue;
  13315. var sourceValue = source[prop];
  13316. var targetValue = merged[prop];
  13317. if (sourceValue instanceof Date) {
  13318. merged[prop] = new Date(sourceValue);
  13319. } else if (sourceValue instanceof RegExp) {
  13320. merged[prop] = new RegExp(sourceValue);
  13321. } else if (sourceValue instanceof Map) {
  13322. merged[prop] = new Map(sourceValue);
  13323. } else if (sourceValue instanceof Set) {
  13324. merged[prop] = new Set(sourceValue);
  13325. } else if ((0, _typeof2.default)(sourceValue) === 'object' && sourceValue !== null) {
  13326. merged[prop] = deepMerge(targetValue, sourceValue);
  13327. } else {
  13328. merged[prop] = sourceValue;
  13329. }
  13330. }
  13331. return merged;
  13332. }
  13333. /**
  13334. * @description error提示
  13335. * @param {*} err 错误内容
  13336. */
  13337. function error(err) {
  13338. // 开发环境才提示,生产环境不会提示
  13339. if (true) {
  13340. console.error("uView\u63D0\u793A\uFF1A".concat(err));
  13341. }
  13342. }
  13343. /**
  13344. * @description 打乱数组
  13345. * @param {array} array 需要打乱的数组
  13346. * @returns {array} 打乱后的数组
  13347. */
  13348. function randomArray() {
  13349. var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  13350. // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.05大于或者小于0
  13351. return array.sort(function () {
  13352. return Math.random() - 0.5;
  13353. });
  13354. }
  13355. // padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序
  13356. // 所以这里做一个兼容polyfill的兼容处理
  13357. if (!String.prototype.padStart) {
  13358. // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解
  13359. String.prototype.padStart = function (maxLength) {
  13360. var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
  13361. if (Object.prototype.toString.call(fillString) !== '[object String]') {
  13362. throw new TypeError('fillString must be String');
  13363. }
  13364. var str = this;
  13365. // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉
  13366. if (str.length >= maxLength) return String(str);
  13367. var fillLength = maxLength - str.length;
  13368. var times = Math.ceil(fillLength / fillString.length);
  13369. while (times >>= 1) {
  13370. fillString += fillString;
  13371. if (times === 1) {
  13372. fillString += fillString;
  13373. }
  13374. }
  13375. return fillString.slice(0, fillLength) + str;
  13376. };
  13377. }
  13378. /**
  13379. * @description 格式化时间
  13380. * @param {String|Number} dateTime 需要格式化的时间戳
  13381. * @param {String} fmt 格式化规则 yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合 默认yyyy-mm-dd
  13382. * @returns {string} 返回格式化后的字符串
  13383. */
  13384. function timeFormat() {
  13385. var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  13386. var formatStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  13387. var date;
  13388. // 若传入时间为假值,则取当前时间
  13389. if (!dateTime) {
  13390. date = new Date();
  13391. }
  13392. // 若为unix秒时间戳,则转为毫秒时间戳(逻辑有点奇怪,但不敢改,以保证历史兼容)
  13393. else if (/^\d{10}$/.test(dateTime === null || dateTime === void 0 ? void 0 : dateTime.toString().trim())) {
  13394. date = new Date(dateTime * 1000);
  13395. }
  13396. // 若用户传入字符串格式时间戳,new Date无法解析,需做兼容
  13397. else if (typeof dateTime === 'string' && /^\d+$/.test(dateTime.trim())) {
  13398. date = new Date(Number(dateTime));
  13399. }
  13400. // 处理平台性差异,在Safari/Webkit中,new Date仅支持/作为分割符的字符串时间
  13401. // 处理 '2022-07-10 01:02:03',跳过 '2022-07-10T01:02:03'
  13402. else if (typeof dateTime === 'string' && dateTime.includes('-') && !dateTime.includes('T')) {
  13403. date = new Date(dateTime.replace(/-/g, '/'));
  13404. }
  13405. // 其他都认为符合 RFC 2822 规范
  13406. else {
  13407. date = new Date(dateTime);
  13408. }
  13409. var timeSource = {
  13410. 'y': date.getFullYear().toString(),
  13411. // 年
  13412. 'm': (date.getMonth() + 1).toString().padStart(2, '0'),
  13413. // 月
  13414. 'd': date.getDate().toString().padStart(2, '0'),
  13415. // 日
  13416. 'h': date.getHours().toString().padStart(2, '0'),
  13417. // 时
  13418. 'M': date.getMinutes().toString().padStart(2, '0'),
  13419. // 分
  13420. 's': date.getSeconds().toString().padStart(2, '0') // 秒
  13421. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  13422. };
  13423. for (var key in timeSource) {
  13424. var _ref3 = new RegExp("".concat(key, "+")).exec(formatStr) || [],
  13425. _ref4 = (0, _slicedToArray2.default)(_ref3, 1),
  13426. ret = _ref4[0];
  13427. if (ret) {
  13428. // 年可能只需展示两位
  13429. var beginIndex = key === 'y' && ret.length === 2 ? 2 : 0;
  13430. formatStr = formatStr.replace(ret, timeSource[key].slice(beginIndex));
  13431. }
  13432. }
  13433. return formatStr;
  13434. }
  13435. /**
  13436. * @description 时间戳转为多久之前
  13437. * @param {String|Number} timestamp 时间戳
  13438. * @param {String|Boolean} format
  13439. * 格式化规则如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;
  13440. * 如果为布尔值false,无论什么时间,都返回多久以前的格式
  13441. * @returns {string} 转化后的内容
  13442. */
  13443. function timeFrom() {
  13444. var timestamp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  13445. var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  13446. if (timestamp == null) timestamp = Number(new Date());
  13447. timestamp = parseInt(timestamp);
  13448. // 判断用户输入的时间戳是秒还是毫秒,一般前端js获取的时间戳是毫秒(13位),后端传过来的为秒(10位)
  13449. if (timestamp.toString().length == 10) timestamp *= 1000;
  13450. var timer = new Date().getTime() - timestamp;
  13451. timer = parseInt(timer / 1000);
  13452. // 如果小于5分钟,则返回"刚刚",其他以此类推
  13453. var tips = '';
  13454. switch (true) {
  13455. case timer < 300:
  13456. tips = '刚刚';
  13457. break;
  13458. case timer >= 300 && timer < 3600:
  13459. tips = "".concat(parseInt(timer / 60), "\u5206\u949F\u524D");
  13460. break;
  13461. case timer >= 3600 && timer < 86400:
  13462. tips = "".concat(parseInt(timer / 3600), "\u5C0F\u65F6\u524D");
  13463. break;
  13464. case timer >= 86400 && timer < 2592000:
  13465. tips = "".concat(parseInt(timer / 86400), "\u5929\u524D");
  13466. break;
  13467. default:
  13468. // 如果format为false,则无论什么时间戳,都显示xx之前
  13469. if (format === false) {
  13470. if (timer >= 2592000 && timer < 365 * 86400) {
  13471. tips = "".concat(parseInt(timer / (86400 * 30)), "\u4E2A\u6708\u524D");
  13472. } else {
  13473. tips = "".concat(parseInt(timer / (86400 * 365)), "\u5E74\u524D");
  13474. }
  13475. } else {
  13476. tips = timeFormat(timestamp, format);
  13477. }
  13478. }
  13479. return tips;
  13480. }
  13481. /**
  13482. * @description 去除空格
  13483. * @param String str 需要去除空格的字符串
  13484. * @param String pos both(左右)|left|right|all 默认both
  13485. */
  13486. function trim(str) {
  13487. var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'both';
  13488. str = String(str);
  13489. if (pos == 'both') {
  13490. return str.replace(/^\s+|\s+$/g, '');
  13491. }
  13492. if (pos == 'left') {
  13493. return str.replace(/^\s*/, '');
  13494. }
  13495. if (pos == 'right') {
  13496. return str.replace(/(\s*$)/g, '');
  13497. }
  13498. if (pos == 'all') {
  13499. return str.replace(/\s+/g, '');
  13500. }
  13501. return str;
  13502. }
  13503. /**
  13504. * @description 对象转url参数
  13505. * @param {object} data,对象
  13506. * @param {Boolean} isPrefix,是否自动加上"?"
  13507. * @param {string} arrayFormat 规则 indices|brackets|repeat|comma
  13508. */
  13509. function queryParams() {
  13510. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13511. var isPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13512. var arrayFormat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'brackets';
  13513. var prefix = isPrefix ? '?' : '';
  13514. var _result = [];
  13515. if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets';
  13516. var _loop = function _loop(key) {
  13517. var value = data[key];
  13518. // 去掉为空的参数
  13519. if (['', undefined, null].indexOf(value) >= 0) {
  13520. return "continue";
  13521. }
  13522. // 如果值为数组,另行处理
  13523. if (value.constructor === Array) {
  13524. // e.g. {ids: [1, 2, 3]}
  13525. switch (arrayFormat) {
  13526. case 'indices':
  13527. // 结果: ids[0]=1&ids[1]=2&ids[2]=3
  13528. for (var i = 0; i < value.length; i++) {
  13529. _result.push("".concat(key, "[").concat(i, "]=").concat(value[i]));
  13530. }
  13531. break;
  13532. case 'brackets':
  13533. // 结果: ids[]=1&ids[]=2&ids[]=3
  13534. value.forEach(function (_value) {
  13535. _result.push("".concat(key, "[]=").concat(_value));
  13536. });
  13537. break;
  13538. case 'repeat':
  13539. // 结果: ids=1&ids=2&ids=3
  13540. value.forEach(function (_value) {
  13541. _result.push("".concat(key, "=").concat(_value));
  13542. });
  13543. break;
  13544. case 'comma':
  13545. // 结果: ids=1,2,3
  13546. var commaStr = '';
  13547. value.forEach(function (_value) {
  13548. commaStr += (commaStr ? ',' : '') + _value;
  13549. });
  13550. _result.push("".concat(key, "=").concat(commaStr));
  13551. break;
  13552. default:
  13553. value.forEach(function (_value) {
  13554. _result.push("".concat(key, "[]=").concat(_value));
  13555. });
  13556. }
  13557. } else {
  13558. _result.push("".concat(key, "=").concat(value));
  13559. }
  13560. };
  13561. for (var key in data) {
  13562. var _ret = _loop(key);
  13563. if (_ret === "continue") continue;
  13564. }
  13565. return _result.length ? prefix + _result.join('&') : '';
  13566. }
  13567. /**
  13568. * 显示消息提示框
  13569. * @param {String} title 提示的内容,长度与 icon 取值有关。
  13570. * @param {Number} duration 提示的延迟时间,单位毫秒,默认:2000
  13571. */
  13572. function toast(title) {
  13573. var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
  13574. uni.showToast({
  13575. title: String(title),
  13576. icon: 'none',
  13577. duration: duration
  13578. });
  13579. }
  13580. /**
  13581. * @description 根据主题type值,获取对应的图标
  13582. * @param {String} type 主题名称,primary|info|error|warning|success
  13583. * @param {boolean} fill 是否使用fill填充实体的图标
  13584. */
  13585. function type2icon() {
  13586. var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'success';
  13587. var fill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13588. // 如果非预置值,默认为success
  13589. if (['primary', 'info', 'error', 'warning', 'success'].indexOf(type) == -1) type = 'success';
  13590. var iconName = '';
  13591. // 目前(2019-12-12),info和primary使用同一个图标
  13592. switch (type) {
  13593. case 'primary':
  13594. iconName = 'info-circle';
  13595. break;
  13596. case 'info':
  13597. iconName = 'info-circle';
  13598. break;
  13599. case 'error':
  13600. iconName = 'close-circle';
  13601. break;
  13602. case 'warning':
  13603. iconName = 'error-circle';
  13604. break;
  13605. case 'success':
  13606. iconName = 'checkmark-circle';
  13607. break;
  13608. default:
  13609. iconName = 'checkmark-circle';
  13610. }
  13611. // 是否是实体类型,加上-fill,在icon组件库中,实体的类名是后面加-fill的
  13612. if (fill) iconName += '-fill';
  13613. return iconName;
  13614. }
  13615. /**
  13616. * @description 数字格式化
  13617. * @param {number|string} number 要格式化的数字
  13618. * @param {number} decimals 保留几位小数
  13619. * @param {string} decimalPoint 小数点符号
  13620. * @param {string} thousandsSeparator 千分位符号
  13621. * @returns {string} 格式化后的数字
  13622. */
  13623. function priceFormat(number) {
  13624. var decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  13625. var decimalPoint = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.';
  13626. var thousandsSeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ',';
  13627. number = "".concat(number).replace(/[^0-9+-Ee.]/g, '');
  13628. var n = !isFinite(+number) ? 0 : +number;
  13629. var prec = !isFinite(+decimals) ? 0 : Math.abs(decimals);
  13630. var sep = typeof thousandsSeparator === 'undefined' ? ',' : thousandsSeparator;
  13631. var dec = typeof decimalPoint === 'undefined' ? '.' : decimalPoint;
  13632. var s = '';
  13633. s = (prec ? (0, _digit.round)(n, prec) + '' : "".concat(Math.round(n))).split('.');
  13634. var re = /(-?\d+)(\d{3})/;
  13635. while (re.test(s[0])) {
  13636. s[0] = s[0].replace(re, "$1".concat(sep, "$2"));
  13637. }
  13638. if ((s[1] || '').length < prec) {
  13639. s[1] = s[1] || '';
  13640. s[1] += new Array(prec - s[1].length + 1).join('0');
  13641. }
  13642. return s.join(dec);
  13643. }
  13644. /**
  13645. * @description 获取duration值
  13646. * 如果带有ms或者s直接返回,如果大于一定值,认为是ms单位,小于一定值,认为是s单位
  13647. * 比如以30位阈值,那么300大于30,可以理解为用户想要的是300ms,而不是想花300s去执行一个动画
  13648. * @param {String|number} value 比如: "1s"|"100ms"|1|100
  13649. * @param {boolean} unit 提示: 如果是false 默认返回number
  13650. * @return {string|number}
  13651. */
  13652. function getDuration(value) {
  13653. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13654. var valueNum = parseInt(value);
  13655. if (unit) {
  13656. if (/s$/.test(value)) return value;
  13657. return value > 30 ? "".concat(value, "ms") : "".concat(value, "s");
  13658. }
  13659. if (/ms$/.test(value)) return valueNum;
  13660. if (/s$/.test(value)) return valueNum > 30 ? valueNum : valueNum * 1000;
  13661. return valueNum;
  13662. }
  13663. /**
  13664. * @description 日期的月或日补零操作
  13665. * @param {String} value 需要补零的值
  13666. */
  13667. function padZero(value) {
  13668. return "00".concat(value).slice(-2);
  13669. }
  13670. /**
  13671. * @description 在u-form的子组件内容发生变化,或者失去焦点时,尝试通知u-form执行校验方法
  13672. * @param {*} instance
  13673. * @param {*} event
  13674. */
  13675. function formValidate(instance, event) {
  13676. var formItem = uni.$u.$parent.call(instance, 'u-form-item');
  13677. var form = uni.$u.$parent.call(instance, 'u-form');
  13678. // 如果发生变化的input或者textarea等,其父组件中有u-form-item或者u-form等,就执行form的validate方法
  13679. // 同时将form-item的pros传递给form,让其进行精确对象验证
  13680. if (formItem && form) {
  13681. form.validateField(formItem.prop, function () {}, event);
  13682. }
  13683. }
  13684. /**
  13685. * @description 获取某个对象下的属性,用于通过类似'a.b.c'的形式去获取一个对象的的属性的形式
  13686. * @param {object} obj 对象
  13687. * @param {string} key 需要获取的属性字段
  13688. * @returns {*}
  13689. */
  13690. function getProperty(obj, key) {
  13691. if (!obj) {
  13692. return;
  13693. }
  13694. if (typeof key !== 'string' || key === '') {
  13695. return '';
  13696. }
  13697. if (key.indexOf('.') !== -1) {
  13698. var keys = key.split('.');
  13699. var firstObj = obj[keys[0]] || {};
  13700. for (var i = 1; i < keys.length; i++) {
  13701. if (firstObj) {
  13702. firstObj = firstObj[keys[i]];
  13703. }
  13704. }
  13705. return firstObj;
  13706. }
  13707. return obj[key];
  13708. }
  13709. /**
  13710. * @description 设置对象的属性值,如果'a.b.c'的形式进行设置
  13711. * @param {object} obj 对象
  13712. * @param {string} key 需要设置的属性
  13713. * @param {string} value 设置的值
  13714. */
  13715. function setProperty(obj, key, value) {
  13716. if (!obj) {
  13717. return;
  13718. }
  13719. // 递归赋值
  13720. var inFn = function inFn(_obj, keys, v) {
  13721. // 最后一个属性key
  13722. if (keys.length === 1) {
  13723. _obj[keys[0]] = v;
  13724. return;
  13725. }
  13726. // 0~length-1个key
  13727. while (keys.length > 1) {
  13728. var k = keys[0];
  13729. if (!_obj[k] || (0, _typeof2.default)(_obj[k]) !== 'object') {
  13730. _obj[k] = {};
  13731. }
  13732. var _key = keys.shift();
  13733. // 自调用判断是否存在属性,不存在则自动创建对象
  13734. inFn(_obj[k], keys, v);
  13735. }
  13736. };
  13737. if (typeof key !== 'string' || key === '') {} else if (key.indexOf('.') !== -1) {
  13738. // 支持多层级赋值操作
  13739. var keys = key.split('.');
  13740. inFn(obj, keys, value);
  13741. } else {
  13742. obj[key] = value;
  13743. }
  13744. }
  13745. /**
  13746. * @description 获取当前页面路径
  13747. */
  13748. function page() {
  13749. var _pages$route, _pages;
  13750. var pages = getCurrentPages();
  13751. // 某些特殊情况下(比如页面进行redirectTo时的一些时机),pages可能为空数组
  13752. return "/".concat((_pages$route = (_pages = pages[pages.length - 1]) === null || _pages === void 0 ? void 0 : _pages.route) !== null && _pages$route !== void 0 ? _pages$route : '');
  13753. }
  13754. /**
  13755. * @description 获取当前路由栈实例数组
  13756. */
  13757. function pages() {
  13758. var pages = getCurrentPages();
  13759. return pages;
  13760. }
  13761. /**
  13762. * 获取页面历史栈指定层实例
  13763. * @param back {number} [0] - 0或者负数,表示获取历史栈的哪一层,0表示获取当前页面实例,-1 表示获取上一个页面实例。默认0。
  13764. */
  13765. function getHistoryPage() {
  13766. var back = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  13767. var pages = getCurrentPages();
  13768. var len = pages.length;
  13769. return pages[len - 1 + back];
  13770. }
  13771. /**
  13772. * @description 修改uView内置属性值
  13773. * @param {object} props 修改内置props属性
  13774. * @param {object} config 修改内置config属性
  13775. * @param {object} color 修改内置color属性
  13776. * @param {object} zIndex 修改内置zIndex属性
  13777. */
  13778. function setConfig(_ref5) {
  13779. var _ref5$props = _ref5.props,
  13780. props = _ref5$props === void 0 ? {} : _ref5$props,
  13781. _ref5$config = _ref5.config,
  13782. config = _ref5$config === void 0 ? {} : _ref5$config,
  13783. _ref5$color = _ref5.color,
  13784. color = _ref5$color === void 0 ? {} : _ref5$color,
  13785. _ref5$zIndex = _ref5.zIndex,
  13786. zIndex = _ref5$zIndex === void 0 ? {} : _ref5$zIndex;
  13787. var deepMerge = uni.$u.deepMerge;
  13788. uni.$u.config = deepMerge(uni.$u.config, config);
  13789. uni.$u.props = deepMerge(uni.$u.props, props);
  13790. uni.$u.color = deepMerge(uni.$u.color, color);
  13791. uni.$u.zIndex = deepMerge(uni.$u.zIndex, zIndex);
  13792. }
  13793. var _default = {
  13794. range: range,
  13795. getPx: getPx,
  13796. sleep: sleep,
  13797. os: os,
  13798. sys: sys,
  13799. random: random,
  13800. guid: guid,
  13801. $parent: $parent,
  13802. addStyle: addStyle,
  13803. addUnit: addUnit,
  13804. deepClone: deepClone,
  13805. deepMerge: deepMerge,
  13806. error: error,
  13807. randomArray: randomArray,
  13808. timeFormat: timeFormat,
  13809. timeFrom: timeFrom,
  13810. trim: trim,
  13811. queryParams: queryParams,
  13812. toast: toast,
  13813. type2icon: type2icon,
  13814. priceFormat: priceFormat,
  13815. getDuration: getDuration,
  13816. padZero: padZero,
  13817. formValidate: formValidate,
  13818. getProperty: getProperty,
  13819. setProperty: setProperty,
  13820. page: page,
  13821. pages: pages,
  13822. getHistoryPage: getHistoryPage,
  13823. setConfig: setConfig
  13824. };
  13825. exports.default = _default;
  13826. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  13827. /***/ }),
  13828. /* 64 */
  13829. /*!*******************************************************************!*\
  13830. !*** D:/yj-register/node_modules/uview-ui/libs/function/digit.js ***!
  13831. \*******************************************************************/
  13832. /*! no static exports found */
  13833. /***/ (function(module, exports, __webpack_require__) {
  13834. "use strict";
  13835. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  13836. Object.defineProperty(exports, "__esModule", {
  13837. value: true
  13838. });
  13839. exports.default = void 0;
  13840. exports.divide = divide;
  13841. exports.enableBoundaryChecking = enableBoundaryChecking;
  13842. exports.minus = minus;
  13843. exports.plus = plus;
  13844. exports.round = round;
  13845. exports.times = times;
  13846. var _toArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toArray */ 65));
  13847. var _boundaryCheckingState = true; // 是否进行越界检查的全局开关
  13848. /**
  13849. * 把错误的数据转正
  13850. * @private
  13851. * @example strip(0.09999999999999998)=0.1
  13852. */
  13853. function strip(num) {
  13854. var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 15;
  13855. return +parseFloat(Number(num).toPrecision(precision));
  13856. }
  13857. /**
  13858. * Return digits length of a number
  13859. * @private
  13860. * @param {*number} num Input number
  13861. */
  13862. function digitLength(num) {
  13863. // Get digit length of e
  13864. var eSplit = num.toString().split(/[eE]/);
  13865. var len = (eSplit[0].split('.')[1] || '').length - +(eSplit[1] || 0);
  13866. return len > 0 ? len : 0;
  13867. }
  13868. /**
  13869. * 把小数转成整数,如果是小数则放大成整数
  13870. * @private
  13871. * @param {*number} num 输入数
  13872. */
  13873. function float2Fixed(num) {
  13874. if (num.toString().indexOf('e') === -1) {
  13875. return Number(num.toString().replace('.', ''));
  13876. }
  13877. var dLen = digitLength(num);
  13878. return dLen > 0 ? strip(Number(num) * Math.pow(10, dLen)) : Number(num);
  13879. }
  13880. /**
  13881. * 检测数字是否越界,如果越界给出提示
  13882. * @private
  13883. * @param {*number} num 输入数
  13884. */
  13885. function checkBoundary(num) {
  13886. if (_boundaryCheckingState) {
  13887. if (num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) {
  13888. console.warn("".concat(num, " \u8D85\u51FA\u4E86\u7CBE\u5EA6\u9650\u5236\uFF0C\u7ED3\u679C\u53EF\u80FD\u4E0D\u6B63\u786E"));
  13889. }
  13890. }
  13891. }
  13892. /**
  13893. * 把递归操作扁平迭代化
  13894. * @param {number[]} arr 要操作的数字数组
  13895. * @param {function} operation 迭代操作
  13896. * @private
  13897. */
  13898. function iteratorOperation(arr, operation) {
  13899. var _arr = (0, _toArray2.default)(arr),
  13900. num1 = _arr[0],
  13901. num2 = _arr[1],
  13902. others = _arr.slice(2);
  13903. var res = operation(num1, num2);
  13904. others.forEach(function (num) {
  13905. res = operation(res, num);
  13906. });
  13907. return res;
  13908. }
  13909. /**
  13910. * 高精度乘法
  13911. * @export
  13912. */
  13913. function times() {
  13914. for (var _len = arguments.length, nums = new Array(_len), _key = 0; _key < _len; _key++) {
  13915. nums[_key] = arguments[_key];
  13916. }
  13917. if (nums.length > 2) {
  13918. return iteratorOperation(nums, times);
  13919. }
  13920. var num1 = nums[0],
  13921. num2 = nums[1];
  13922. var num1Changed = float2Fixed(num1);
  13923. var num2Changed = float2Fixed(num2);
  13924. var baseNum = digitLength(num1) + digitLength(num2);
  13925. var leftValue = num1Changed * num2Changed;
  13926. checkBoundary(leftValue);
  13927. return leftValue / Math.pow(10, baseNum);
  13928. }
  13929. /**
  13930. * 高精度加法
  13931. * @export
  13932. */
  13933. function plus() {
  13934. for (var _len2 = arguments.length, nums = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  13935. nums[_key2] = arguments[_key2];
  13936. }
  13937. if (nums.length > 2) {
  13938. return iteratorOperation(nums, plus);
  13939. }
  13940. var num1 = nums[0],
  13941. num2 = nums[1];
  13942. // 取最大的小数位
  13943. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  13944. // 把小数都转为整数然后再计算
  13945. return (times(num1, baseNum) + times(num2, baseNum)) / baseNum;
  13946. }
  13947. /**
  13948. * 高精度减法
  13949. * @export
  13950. */
  13951. function minus() {
  13952. for (var _len3 = arguments.length, nums = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  13953. nums[_key3] = arguments[_key3];
  13954. }
  13955. if (nums.length > 2) {
  13956. return iteratorOperation(nums, minus);
  13957. }
  13958. var num1 = nums[0],
  13959. num2 = nums[1];
  13960. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  13961. return (times(num1, baseNum) - times(num2, baseNum)) / baseNum;
  13962. }
  13963. /**
  13964. * 高精度除法
  13965. * @export
  13966. */
  13967. function divide() {
  13968. for (var _len4 = arguments.length, nums = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  13969. nums[_key4] = arguments[_key4];
  13970. }
  13971. if (nums.length > 2) {
  13972. return iteratorOperation(nums, divide);
  13973. }
  13974. var num1 = nums[0],
  13975. num2 = nums[1];
  13976. var num1Changed = float2Fixed(num1);
  13977. var num2Changed = float2Fixed(num2);
  13978. checkBoundary(num1Changed);
  13979. checkBoundary(num2Changed);
  13980. // 重要,这里必须用strip进行修正
  13981. return times(num1Changed / num2Changed, strip(Math.pow(10, digitLength(num2) - digitLength(num1))));
  13982. }
  13983. /**
  13984. * 四舍五入
  13985. * @export
  13986. */
  13987. function round(num, ratio) {
  13988. var base = Math.pow(10, ratio);
  13989. var result = divide(Math.round(Math.abs(times(num, base))), base);
  13990. if (num < 0 && result !== 0) {
  13991. result = times(result, -1);
  13992. }
  13993. // 位数不足则补0
  13994. return result;
  13995. }
  13996. /**
  13997. * 是否进行边界检查,默认开启
  13998. * @param flag 标记开关,true 为开启,false 为关闭,默认为 true
  13999. * @export
  14000. */
  14001. function enableBoundaryChecking() {
  14002. var flag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  14003. _boundaryCheckingState = flag;
  14004. }
  14005. var _default = {
  14006. times: times,
  14007. plus: plus,
  14008. minus: minus,
  14009. divide: divide,
  14010. round: round,
  14011. enableBoundaryChecking: enableBoundaryChecking
  14012. };
  14013. exports.default = _default;
  14014. /***/ }),
  14015. /* 65 */
  14016. /*!********************************************************!*\
  14017. !*** ./node_modules/@babel/runtime/helpers/toArray.js ***!
  14018. \********************************************************/
  14019. /*! no static exports found */
  14020. /***/ (function(module, exports, __webpack_require__) {
  14021. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  14022. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  14023. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  14024. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  14025. function _toArray(arr) {
  14026. return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
  14027. }
  14028. module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  14029. /***/ }),
  14030. /* 66 */
  14031. /*!******************************************************************!*\
  14032. !*** D:/yj-register/node_modules/uview-ui/libs/config/config.js ***!
  14033. \******************************************************************/
  14034. /*! no static exports found */
  14035. /***/ (function(module, exports, __webpack_require__) {
  14036. "use strict";
  14037. Object.defineProperty(exports, "__esModule", {
  14038. value: true
  14039. });
  14040. exports.default = void 0;
  14041. // 此版本发布于2023-03-27
  14042. var version = '2.0.36';
  14043. // 开发环境才提示,生产环境不会提示
  14044. if (true) {
  14045. console.log("\n %c uView V".concat(version, " %c https://uviewui.com/ \n\n"), 'color: #ffffff; background: #3c9cff; padding:5px 0; border-radius: 5px;');
  14046. }
  14047. var _default = {
  14048. v: version,
  14049. version: version,
  14050. // 主题名称
  14051. type: ['primary', 'success', 'info', 'error', 'warning'],
  14052. // 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持
  14053. color: {
  14054. 'u-primary': '#2979ff',
  14055. 'u-warning': '#ff9900',
  14056. 'u-success': '#19be6b',
  14057. 'u-error': '#fa3534',
  14058. 'u-info': '#909399',
  14059. 'u-main-color': '#303133',
  14060. 'u-content-color': '#606266',
  14061. 'u-tips-color': '#909399',
  14062. 'u-light-color': '#c0c4cc'
  14063. },
  14064. // 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx
  14065. unit: 'px'
  14066. };
  14067. exports.default = _default;
  14068. /***/ }),
  14069. /* 67 */
  14070. /*!*****************************************************************!*\
  14071. !*** D:/yj-register/node_modules/uview-ui/libs/config/props.js ***!
  14072. \*****************************************************************/
  14073. /*! no static exports found */
  14074. /***/ (function(module, exports, __webpack_require__) {
  14075. "use strict";
  14076. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  14077. Object.defineProperty(exports, "__esModule", {
  14078. value: true
  14079. });
  14080. exports.default = void 0;
  14081. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  14082. var _config = _interopRequireDefault(__webpack_require__(/*! ./config */ 66));
  14083. var _actionSheet = _interopRequireDefault(__webpack_require__(/*! ./props/actionSheet.js */ 68));
  14084. var _album = _interopRequireDefault(__webpack_require__(/*! ./props/album.js */ 69));
  14085. var _alert = _interopRequireDefault(__webpack_require__(/*! ./props/alert.js */ 70));
  14086. var _avatar = _interopRequireDefault(__webpack_require__(/*! ./props/avatar */ 71));
  14087. var _avatarGroup = _interopRequireDefault(__webpack_require__(/*! ./props/avatarGroup */ 72));
  14088. var _backtop = _interopRequireDefault(__webpack_require__(/*! ./props/backtop */ 73));
  14089. var _badge = _interopRequireDefault(__webpack_require__(/*! ./props/badge */ 74));
  14090. var _button = _interopRequireDefault(__webpack_require__(/*! ./props/button */ 75));
  14091. var _calendar = _interopRequireDefault(__webpack_require__(/*! ./props/calendar */ 76));
  14092. var _carKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/carKeyboard */ 77));
  14093. var _cell = _interopRequireDefault(__webpack_require__(/*! ./props/cell */ 78));
  14094. var _cellGroup = _interopRequireDefault(__webpack_require__(/*! ./props/cellGroup */ 79));
  14095. var _checkbox = _interopRequireDefault(__webpack_require__(/*! ./props/checkbox */ 80));
  14096. var _checkboxGroup = _interopRequireDefault(__webpack_require__(/*! ./props/checkboxGroup */ 81));
  14097. var _circleProgress = _interopRequireDefault(__webpack_require__(/*! ./props/circleProgress */ 82));
  14098. var _code = _interopRequireDefault(__webpack_require__(/*! ./props/code */ 83));
  14099. var _codeInput = _interopRequireDefault(__webpack_require__(/*! ./props/codeInput */ 84));
  14100. var _col = _interopRequireDefault(__webpack_require__(/*! ./props/col */ 85));
  14101. var _collapse = _interopRequireDefault(__webpack_require__(/*! ./props/collapse */ 86));
  14102. var _collapseItem = _interopRequireDefault(__webpack_require__(/*! ./props/collapseItem */ 87));
  14103. var _columnNotice = _interopRequireDefault(__webpack_require__(/*! ./props/columnNotice */ 88));
  14104. var _countDown = _interopRequireDefault(__webpack_require__(/*! ./props/countDown */ 89));
  14105. var _countTo = _interopRequireDefault(__webpack_require__(/*! ./props/countTo */ 90));
  14106. var _datetimePicker = _interopRequireDefault(__webpack_require__(/*! ./props/datetimePicker */ 91));
  14107. var _divider = _interopRequireDefault(__webpack_require__(/*! ./props/divider */ 92));
  14108. var _empty = _interopRequireDefault(__webpack_require__(/*! ./props/empty */ 93));
  14109. var _form = _interopRequireDefault(__webpack_require__(/*! ./props/form */ 94));
  14110. var _formItem = _interopRequireDefault(__webpack_require__(/*! ./props/formItem */ 95));
  14111. var _gap = _interopRequireDefault(__webpack_require__(/*! ./props/gap */ 96));
  14112. var _grid = _interopRequireDefault(__webpack_require__(/*! ./props/grid */ 97));
  14113. var _gridItem = _interopRequireDefault(__webpack_require__(/*! ./props/gridItem */ 98));
  14114. var _icon = _interopRequireDefault(__webpack_require__(/*! ./props/icon */ 99));
  14115. var _image = _interopRequireDefault(__webpack_require__(/*! ./props/image */ 100));
  14116. var _indexAnchor = _interopRequireDefault(__webpack_require__(/*! ./props/indexAnchor */ 101));
  14117. var _indexList = _interopRequireDefault(__webpack_require__(/*! ./props/indexList */ 102));
  14118. var _input = _interopRequireDefault(__webpack_require__(/*! ./props/input */ 103));
  14119. var _keyboard = _interopRequireDefault(__webpack_require__(/*! ./props/keyboard */ 104));
  14120. var _line = _interopRequireDefault(__webpack_require__(/*! ./props/line */ 105));
  14121. var _lineProgress = _interopRequireDefault(__webpack_require__(/*! ./props/lineProgress */ 106));
  14122. var _link = _interopRequireDefault(__webpack_require__(/*! ./props/link */ 107));
  14123. var _list = _interopRequireDefault(__webpack_require__(/*! ./props/list */ 108));
  14124. var _listItem = _interopRequireDefault(__webpack_require__(/*! ./props/listItem */ 109));
  14125. var _loadingIcon = _interopRequireDefault(__webpack_require__(/*! ./props/loadingIcon */ 110));
  14126. var _loadingPage = _interopRequireDefault(__webpack_require__(/*! ./props/loadingPage */ 111));
  14127. var _loadmore = _interopRequireDefault(__webpack_require__(/*! ./props/loadmore */ 112));
  14128. var _modal = _interopRequireDefault(__webpack_require__(/*! ./props/modal */ 113));
  14129. var _navbar = _interopRequireDefault(__webpack_require__(/*! ./props/navbar */ 114));
  14130. var _noNetwork = _interopRequireDefault(__webpack_require__(/*! ./props/noNetwork */ 116));
  14131. var _noticeBar = _interopRequireDefault(__webpack_require__(/*! ./props/noticeBar */ 117));
  14132. var _notify = _interopRequireDefault(__webpack_require__(/*! ./props/notify */ 118));
  14133. var _numberBox = _interopRequireDefault(__webpack_require__(/*! ./props/numberBox */ 119));
  14134. var _numberKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/numberKeyboard */ 120));
  14135. var _overlay = _interopRequireDefault(__webpack_require__(/*! ./props/overlay */ 121));
  14136. var _parse = _interopRequireDefault(__webpack_require__(/*! ./props/parse */ 122));
  14137. var _picker = _interopRequireDefault(__webpack_require__(/*! ./props/picker */ 123));
  14138. var _popup = _interopRequireDefault(__webpack_require__(/*! ./props/popup */ 124));
  14139. var _radio = _interopRequireDefault(__webpack_require__(/*! ./props/radio */ 125));
  14140. var _radioGroup = _interopRequireDefault(__webpack_require__(/*! ./props/radioGroup */ 126));
  14141. var _rate = _interopRequireDefault(__webpack_require__(/*! ./props/rate */ 127));
  14142. var _readMore = _interopRequireDefault(__webpack_require__(/*! ./props/readMore */ 128));
  14143. var _row = _interopRequireDefault(__webpack_require__(/*! ./props/row */ 129));
  14144. var _rowNotice = _interopRequireDefault(__webpack_require__(/*! ./props/rowNotice */ 130));
  14145. var _scrollList = _interopRequireDefault(__webpack_require__(/*! ./props/scrollList */ 131));
  14146. var _search = _interopRequireDefault(__webpack_require__(/*! ./props/search */ 132));
  14147. var _section = _interopRequireDefault(__webpack_require__(/*! ./props/section */ 133));
  14148. var _skeleton = _interopRequireDefault(__webpack_require__(/*! ./props/skeleton */ 134));
  14149. var _slider = _interopRequireDefault(__webpack_require__(/*! ./props/slider */ 135));
  14150. var _statusBar = _interopRequireDefault(__webpack_require__(/*! ./props/statusBar */ 136));
  14151. var _steps = _interopRequireDefault(__webpack_require__(/*! ./props/steps */ 137));
  14152. var _stepsItem = _interopRequireDefault(__webpack_require__(/*! ./props/stepsItem */ 138));
  14153. var _sticky = _interopRequireDefault(__webpack_require__(/*! ./props/sticky */ 139));
  14154. var _subsection = _interopRequireDefault(__webpack_require__(/*! ./props/subsection */ 140));
  14155. var _swipeAction = _interopRequireDefault(__webpack_require__(/*! ./props/swipeAction */ 141));
  14156. var _swipeActionItem = _interopRequireDefault(__webpack_require__(/*! ./props/swipeActionItem */ 142));
  14157. var _swiper = _interopRequireDefault(__webpack_require__(/*! ./props/swiper */ 143));
  14158. var _swipterIndicator = _interopRequireDefault(__webpack_require__(/*! ./props/swipterIndicator */ 144));
  14159. var _switch2 = _interopRequireDefault(__webpack_require__(/*! ./props/switch */ 145));
  14160. var _tabbar = _interopRequireDefault(__webpack_require__(/*! ./props/tabbar */ 146));
  14161. var _tabbarItem = _interopRequireDefault(__webpack_require__(/*! ./props/tabbarItem */ 147));
  14162. var _tabs = _interopRequireDefault(__webpack_require__(/*! ./props/tabs */ 148));
  14163. var _tag = _interopRequireDefault(__webpack_require__(/*! ./props/tag */ 149));
  14164. var _text = _interopRequireDefault(__webpack_require__(/*! ./props/text */ 150));
  14165. var _textarea = _interopRequireDefault(__webpack_require__(/*! ./props/textarea */ 151));
  14166. var _toast = _interopRequireDefault(__webpack_require__(/*! ./props/toast */ 152));
  14167. var _toolbar = _interopRequireDefault(__webpack_require__(/*! ./props/toolbar */ 153));
  14168. var _tooltip = _interopRequireDefault(__webpack_require__(/*! ./props/tooltip */ 154));
  14169. var _transition = _interopRequireDefault(__webpack_require__(/*! ./props/transition */ 155));
  14170. var _upload = _interopRequireDefault(__webpack_require__(/*! ./props/upload */ 156));
  14171. 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; }
  14172. 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; }
  14173. var color = _config.default.color;
  14174. 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);
  14175. exports.default = _default;
  14176. /***/ }),
  14177. /* 68 */
  14178. /*!*****************************************************************************!*\
  14179. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/actionSheet.js ***!
  14180. \*****************************************************************************/
  14181. /*! no static exports found */
  14182. /***/ (function(module, exports, __webpack_require__) {
  14183. "use strict";
  14184. Object.defineProperty(exports, "__esModule", {
  14185. value: true
  14186. });
  14187. exports.default = void 0;
  14188. /*
  14189. * @Author : LQ
  14190. * @Description :
  14191. * @version : 1.0
  14192. * @Date : 2021-08-20 16:44:21
  14193. * @LastAuthor : LQ
  14194. * @lastTime : 2021-08-20 16:44:35
  14195. * @FilePath : /u-view2.0/uview-ui/libs/config/props/actionSheet.js
  14196. */
  14197. var _default = {
  14198. // action-sheet组件
  14199. actionSheet: {
  14200. show: false,
  14201. title: '',
  14202. description: '',
  14203. actions: function actions() {
  14204. return [];
  14205. },
  14206. index: '',
  14207. cancelText: '',
  14208. closeOnClickAction: true,
  14209. safeAreaInsetBottom: true,
  14210. openType: '',
  14211. closeOnClickOverlay: true,
  14212. round: 0
  14213. }
  14214. };
  14215. exports.default = _default;
  14216. /***/ }),
  14217. /* 69 */
  14218. /*!***********************************************************************!*\
  14219. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/album.js ***!
  14220. \***********************************************************************/
  14221. /*! no static exports found */
  14222. /***/ (function(module, exports, __webpack_require__) {
  14223. "use strict";
  14224. Object.defineProperty(exports, "__esModule", {
  14225. value: true
  14226. });
  14227. exports.default = void 0;
  14228. /*
  14229. * @Author : LQ
  14230. * @Description :
  14231. * @version : 1.0
  14232. * @Date : 2021-08-20 16:44:21
  14233. * @LastAuthor : LQ
  14234. * @lastTime : 2021-08-20 16:47:24
  14235. * @FilePath : /u-view2.0/uview-ui/libs/config/props/album.js
  14236. */
  14237. var _default = {
  14238. // album 组件
  14239. album: {
  14240. urls: function urls() {
  14241. return [];
  14242. },
  14243. keyName: '',
  14244. singleSize: 180,
  14245. multipleSize: 70,
  14246. space: 6,
  14247. singleMode: 'scaleToFill',
  14248. multipleMode: 'aspectFill',
  14249. maxCount: 9,
  14250. previewFullImage: true,
  14251. rowCount: 3,
  14252. showMore: true
  14253. }
  14254. };
  14255. exports.default = _default;
  14256. /***/ }),
  14257. /* 70 */
  14258. /*!***********************************************************************!*\
  14259. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/alert.js ***!
  14260. \***********************************************************************/
  14261. /*! no static exports found */
  14262. /***/ (function(module, exports, __webpack_require__) {
  14263. "use strict";
  14264. Object.defineProperty(exports, "__esModule", {
  14265. value: true
  14266. });
  14267. exports.default = void 0;
  14268. /*
  14269. * @Author : LQ
  14270. * @Description :
  14271. * @version : 1.0
  14272. * @Date : 2021-08-20 16:44:21
  14273. * @LastAuthor : LQ
  14274. * @lastTime : 2021-08-20 16:48:53
  14275. * @FilePath : /u-view2.0/uview-ui/libs/config/props/alert.js
  14276. */
  14277. var _default = {
  14278. // alert警告组件
  14279. alert: {
  14280. title: '',
  14281. type: 'warning',
  14282. description: '',
  14283. closable: false,
  14284. showIcon: false,
  14285. effect: 'light',
  14286. center: false,
  14287. fontSize: 14
  14288. }
  14289. };
  14290. exports.default = _default;
  14291. /***/ }),
  14292. /* 71 */
  14293. /*!************************************************************************!*\
  14294. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/avatar.js ***!
  14295. \************************************************************************/
  14296. /*! no static exports found */
  14297. /***/ (function(module, exports, __webpack_require__) {
  14298. "use strict";
  14299. Object.defineProperty(exports, "__esModule", {
  14300. value: true
  14301. });
  14302. exports.default = void 0;
  14303. /*
  14304. * @Author : LQ
  14305. * @Description :
  14306. * @version : 1.0
  14307. * @Date : 2021-08-20 16:44:21
  14308. * @LastAuthor : LQ
  14309. * @lastTime : 2021-08-20 16:49:22
  14310. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatar.js
  14311. */
  14312. var _default = {
  14313. // avatar 组件
  14314. avatar: {
  14315. src: '',
  14316. shape: 'circle',
  14317. size: 40,
  14318. mode: 'scaleToFill',
  14319. text: '',
  14320. bgColor: '#c0c4cc',
  14321. color: '#ffffff',
  14322. fontSize: 18,
  14323. icon: '',
  14324. mpAvatar: false,
  14325. randomBgColor: false,
  14326. defaultUrl: '',
  14327. colorIndex: '',
  14328. name: ''
  14329. }
  14330. };
  14331. exports.default = _default;
  14332. /***/ }),
  14333. /* 72 */
  14334. /*!*****************************************************************************!*\
  14335. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/avatarGroup.js ***!
  14336. \*****************************************************************************/
  14337. /*! no static exports found */
  14338. /***/ (function(module, exports, __webpack_require__) {
  14339. "use strict";
  14340. Object.defineProperty(exports, "__esModule", {
  14341. value: true
  14342. });
  14343. exports.default = void 0;
  14344. /*
  14345. * @Author : LQ
  14346. * @Description :
  14347. * @version : 1.0
  14348. * @Date : 2021-08-20 16:44:21
  14349. * @LastAuthor : LQ
  14350. * @lastTime : 2021-08-20 16:49:55
  14351. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatarGroup.js
  14352. */
  14353. var _default = {
  14354. // avatarGroup 组件
  14355. avatarGroup: {
  14356. urls: function urls() {
  14357. return [];
  14358. },
  14359. maxCount: 5,
  14360. shape: 'circle',
  14361. mode: 'scaleToFill',
  14362. showMore: true,
  14363. size: 40,
  14364. keyName: '',
  14365. gap: 0.5,
  14366. extraValue: 0
  14367. }
  14368. };
  14369. exports.default = _default;
  14370. /***/ }),
  14371. /* 73 */
  14372. /*!*************************************************************************!*\
  14373. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/backtop.js ***!
  14374. \*************************************************************************/
  14375. /*! no static exports found */
  14376. /***/ (function(module, exports, __webpack_require__) {
  14377. "use strict";
  14378. Object.defineProperty(exports, "__esModule", {
  14379. value: true
  14380. });
  14381. exports.default = void 0;
  14382. /*
  14383. * @Author : LQ
  14384. * @Description :
  14385. * @version : 1.0
  14386. * @Date : 2021-08-20 16:44:21
  14387. * @LastAuthor : LQ
  14388. * @lastTime : 2021-08-20 16:50:18
  14389. * @FilePath : /u-view2.0/uview-ui/libs/config/props/backtop.js
  14390. */
  14391. var _default = {
  14392. // backtop组件
  14393. backtop: {
  14394. mode: 'circle',
  14395. icon: 'arrow-upward',
  14396. text: '',
  14397. duration: 100,
  14398. scrollTop: 0,
  14399. top: 400,
  14400. bottom: 100,
  14401. right: 20,
  14402. zIndex: 9,
  14403. iconStyle: function iconStyle() {
  14404. return {
  14405. color: '#909399',
  14406. fontSize: '19px'
  14407. };
  14408. }
  14409. }
  14410. };
  14411. exports.default = _default;
  14412. /***/ }),
  14413. /* 74 */
  14414. /*!***********************************************************************!*\
  14415. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/badge.js ***!
  14416. \***********************************************************************/
  14417. /*! no static exports found */
  14418. /***/ (function(module, exports, __webpack_require__) {
  14419. "use strict";
  14420. Object.defineProperty(exports, "__esModule", {
  14421. value: true
  14422. });
  14423. exports.default = void 0;
  14424. /*
  14425. * @Author : LQ
  14426. * @Description :
  14427. * @version : 1.0
  14428. * @Date : 2021-08-20 16:44:21
  14429. * @LastAuthor : LQ
  14430. * @lastTime : 2021-08-23 19:51:50
  14431. * @FilePath : /u-view2.0/uview-ui/libs/config/props/badge.js
  14432. */
  14433. var _default = {
  14434. // 徽标数组件
  14435. badge: {
  14436. isDot: false,
  14437. value: '',
  14438. show: true,
  14439. max: 999,
  14440. type: 'error',
  14441. showZero: false,
  14442. bgColor: null,
  14443. color: null,
  14444. shape: 'circle',
  14445. numberType: 'overflow',
  14446. offset: function offset() {
  14447. return [];
  14448. },
  14449. inverted: false,
  14450. absolute: false
  14451. }
  14452. };
  14453. exports.default = _default;
  14454. /***/ }),
  14455. /* 75 */
  14456. /*!************************************************************************!*\
  14457. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/button.js ***!
  14458. \************************************************************************/
  14459. /*! no static exports found */
  14460. /***/ (function(module, exports, __webpack_require__) {
  14461. "use strict";
  14462. Object.defineProperty(exports, "__esModule", {
  14463. value: true
  14464. });
  14465. exports.default = void 0;
  14466. /*
  14467. * @Author : LQ
  14468. * @Description :
  14469. * @version : 1.0
  14470. * @Date : 2021-08-20 16:44:21
  14471. * @LastAuthor : LQ
  14472. * @lastTime : 2021-08-20 16:51:27
  14473. * @FilePath : /u-view2.0/uview-ui/libs/config/props/button.js
  14474. */
  14475. var _default = {
  14476. // button组件
  14477. button: {
  14478. hairline: false,
  14479. type: 'info',
  14480. size: 'normal',
  14481. shape: 'square',
  14482. plain: false,
  14483. disabled: false,
  14484. loading: false,
  14485. loadingText: '',
  14486. loadingMode: 'spinner',
  14487. loadingSize: 15,
  14488. openType: '',
  14489. formType: '',
  14490. appParameter: '',
  14491. hoverStopPropagation: true,
  14492. lang: 'en',
  14493. sessionFrom: '',
  14494. sendMessageTitle: '',
  14495. sendMessagePath: '',
  14496. sendMessageImg: '',
  14497. showMessageCard: false,
  14498. dataName: '',
  14499. throttleTime: 0,
  14500. hoverStartTime: 0,
  14501. hoverStayTime: 200,
  14502. text: '',
  14503. icon: '',
  14504. iconColor: '',
  14505. color: ''
  14506. }
  14507. };
  14508. exports.default = _default;
  14509. /***/ }),
  14510. /* 76 */
  14511. /*!**************************************************************************!*\
  14512. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/calendar.js ***!
  14513. \**************************************************************************/
  14514. /*! no static exports found */
  14515. /***/ (function(module, exports, __webpack_require__) {
  14516. "use strict";
  14517. Object.defineProperty(exports, "__esModule", {
  14518. value: true
  14519. });
  14520. exports.default = void 0;
  14521. /*
  14522. * @Author : LQ
  14523. * @Description :
  14524. * @version : 1.0
  14525. * @Date : 2021-08-20 16:44:21
  14526. * @LastAuthor : LQ
  14527. * @lastTime : 2021-08-20 16:52:43
  14528. * @FilePath : /u-view2.0/uview-ui/libs/config/props/calendar.js
  14529. */
  14530. var _default = {
  14531. // calendar 组件
  14532. calendar: {
  14533. title: '日期选择',
  14534. showTitle: true,
  14535. showSubtitle: true,
  14536. mode: 'single',
  14537. startText: '开始',
  14538. endText: '结束',
  14539. customList: function customList() {
  14540. return [];
  14541. },
  14542. color: '#3c9cff',
  14543. minDate: 0,
  14544. maxDate: 0,
  14545. defaultDate: null,
  14546. maxCount: Number.MAX_SAFE_INTEGER,
  14547. // Infinity
  14548. rowHeight: 56,
  14549. formatter: null,
  14550. showLunar: false,
  14551. showMark: true,
  14552. confirmText: '确定',
  14553. confirmDisabledText: '确定',
  14554. show: false,
  14555. closeOnClickOverlay: false,
  14556. readonly: false,
  14557. showConfirm: true,
  14558. maxRange: Number.MAX_SAFE_INTEGER,
  14559. // Infinity
  14560. rangePrompt: '',
  14561. showRangePrompt: true,
  14562. allowSameDay: false,
  14563. round: 0,
  14564. monthNum: 3
  14565. }
  14566. };
  14567. exports.default = _default;
  14568. /***/ }),
  14569. /* 77 */
  14570. /*!*****************************************************************************!*\
  14571. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/carKeyboard.js ***!
  14572. \*****************************************************************************/
  14573. /*! no static exports found */
  14574. /***/ (function(module, exports, __webpack_require__) {
  14575. "use strict";
  14576. Object.defineProperty(exports, "__esModule", {
  14577. value: true
  14578. });
  14579. exports.default = void 0;
  14580. /*
  14581. * @Author : LQ
  14582. * @Description :
  14583. * @version : 1.0
  14584. * @Date : 2021-08-20 16:44:21
  14585. * @LastAuthor : LQ
  14586. * @lastTime : 2021-08-20 16:53:20
  14587. * @FilePath : /u-view2.0/uview-ui/libs/config/props/carKeyboard.js
  14588. */
  14589. var _default = {
  14590. // 车牌号键盘
  14591. carKeyboard: {
  14592. random: false
  14593. }
  14594. };
  14595. exports.default = _default;
  14596. /***/ }),
  14597. /* 78 */
  14598. /*!**********************************************************************!*\
  14599. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/cell.js ***!
  14600. \**********************************************************************/
  14601. /*! no static exports found */
  14602. /***/ (function(module, exports, __webpack_require__) {
  14603. "use strict";
  14604. Object.defineProperty(exports, "__esModule", {
  14605. value: true
  14606. });
  14607. exports.default = void 0;
  14608. /*
  14609. * @Author : LQ
  14610. * @Description :
  14611. * @version : 1.0
  14612. * @Date : 2021-08-20 16:44:21
  14613. * @LastAuthor : LQ
  14614. * @lastTime : 2021-08-23 20:53:09
  14615. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cell.js
  14616. */
  14617. var _default = {
  14618. // cell组件的props
  14619. cell: {
  14620. customClass: '',
  14621. title: '',
  14622. label: '',
  14623. value: '',
  14624. icon: '',
  14625. disabled: false,
  14626. border: true,
  14627. center: false,
  14628. url: '',
  14629. linkType: 'navigateTo',
  14630. clickable: false,
  14631. isLink: false,
  14632. required: false,
  14633. arrowDirection: '',
  14634. iconStyle: {},
  14635. rightIconStyle: {},
  14636. rightIcon: 'arrow-right',
  14637. titleStyle: {},
  14638. size: '',
  14639. stop: true,
  14640. name: ''
  14641. }
  14642. };
  14643. exports.default = _default;
  14644. /***/ }),
  14645. /* 79 */
  14646. /*!***************************************************************************!*\
  14647. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/cellGroup.js ***!
  14648. \***************************************************************************/
  14649. /*! no static exports found */
  14650. /***/ (function(module, exports, __webpack_require__) {
  14651. "use strict";
  14652. Object.defineProperty(exports, "__esModule", {
  14653. value: true
  14654. });
  14655. exports.default = void 0;
  14656. /*
  14657. * @Author : LQ
  14658. * @Description :
  14659. * @version : 1.0
  14660. * @Date : 2021-08-20 16:44:21
  14661. * @LastAuthor : LQ
  14662. * @lastTime : 2021-08-20 16:54:16
  14663. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cellGroup.js
  14664. */
  14665. var _default = {
  14666. // cell-group组件的props
  14667. cellGroup: {
  14668. title: '',
  14669. border: true,
  14670. customStyle: {}
  14671. }
  14672. };
  14673. exports.default = _default;
  14674. /***/ }),
  14675. /* 80 */
  14676. /*!**************************************************************************!*\
  14677. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/checkbox.js ***!
  14678. \**************************************************************************/
  14679. /*! no static exports found */
  14680. /***/ (function(module, exports, __webpack_require__) {
  14681. "use strict";
  14682. Object.defineProperty(exports, "__esModule", {
  14683. value: true
  14684. });
  14685. exports.default = void 0;
  14686. /*
  14687. * @Author : LQ
  14688. * @Description :
  14689. * @version : 1.0
  14690. * @Date : 2021-08-20 16:44:21
  14691. * @LastAuthor : LQ
  14692. * @lastTime : 2021-08-23 21:06:59
  14693. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkbox.js
  14694. */
  14695. var _default = {
  14696. // checkbox组件
  14697. checkbox: {
  14698. name: '',
  14699. shape: '',
  14700. size: '',
  14701. checkbox: false,
  14702. disabled: '',
  14703. activeColor: '',
  14704. inactiveColor: '',
  14705. iconSize: '',
  14706. iconColor: '',
  14707. label: '',
  14708. labelSize: '',
  14709. labelColor: '',
  14710. labelDisabled: ''
  14711. }
  14712. };
  14713. exports.default = _default;
  14714. /***/ }),
  14715. /* 81 */
  14716. /*!*******************************************************************************!*\
  14717. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/checkboxGroup.js ***!
  14718. \*******************************************************************************/
  14719. /*! no static exports found */
  14720. /***/ (function(module, exports, __webpack_require__) {
  14721. "use strict";
  14722. Object.defineProperty(exports, "__esModule", {
  14723. value: true
  14724. });
  14725. exports.default = void 0;
  14726. /*
  14727. * @Author : LQ
  14728. * @Description :
  14729. * @version : 1.0
  14730. * @Date : 2021-08-20 16:44:21
  14731. * @LastAuthor : LQ
  14732. * @lastTime : 2021-08-20 16:54:47
  14733. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkboxGroup.js
  14734. */
  14735. var _default = {
  14736. // checkbox-group组件
  14737. checkboxGroup: {
  14738. name: '',
  14739. value: function value() {
  14740. return [];
  14741. },
  14742. shape: 'square',
  14743. disabled: false,
  14744. activeColor: '#2979ff',
  14745. inactiveColor: '#c8c9cc',
  14746. size: 18,
  14747. placement: 'row',
  14748. labelSize: 14,
  14749. labelColor: '#303133',
  14750. labelDisabled: false,
  14751. iconColor: '#ffffff',
  14752. iconSize: 12,
  14753. iconPlacement: 'left',
  14754. borderBottom: false
  14755. }
  14756. };
  14757. exports.default = _default;
  14758. /***/ }),
  14759. /* 82 */
  14760. /*!********************************************************************************!*\
  14761. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/circleProgress.js ***!
  14762. \********************************************************************************/
  14763. /*! no static exports found */
  14764. /***/ (function(module, exports, __webpack_require__) {
  14765. "use strict";
  14766. Object.defineProperty(exports, "__esModule", {
  14767. value: true
  14768. });
  14769. exports.default = void 0;
  14770. /*
  14771. * @Author : LQ
  14772. * @Description :
  14773. * @version : 1.0
  14774. * @Date : 2021-08-20 16:44:21
  14775. * @LastAuthor : LQ
  14776. * @lastTime : 2021-08-20 16:55:02
  14777. * @FilePath : /u-view2.0/uview-ui/libs/config/props/circleProgress.js
  14778. */
  14779. var _default = {
  14780. // circleProgress 组件
  14781. circleProgress: {
  14782. percentage: 30
  14783. }
  14784. };
  14785. exports.default = _default;
  14786. /***/ }),
  14787. /* 83 */
  14788. /*!**********************************************************************!*\
  14789. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/code.js ***!
  14790. \**********************************************************************/
  14791. /*! no static exports found */
  14792. /***/ (function(module, exports, __webpack_require__) {
  14793. "use strict";
  14794. Object.defineProperty(exports, "__esModule", {
  14795. value: true
  14796. });
  14797. exports.default = void 0;
  14798. /*
  14799. * @Author : LQ
  14800. * @Description :
  14801. * @version : 1.0
  14802. * @Date : 2021-08-20 16:44:21
  14803. * @LastAuthor : LQ
  14804. * @lastTime : 2021-08-20 16:55:27
  14805. * @FilePath : /u-view2.0/uview-ui/libs/config/props/code.js
  14806. */
  14807. var _default = {
  14808. // code 组件
  14809. code: {
  14810. seconds: 60,
  14811. startText: '获取验证码',
  14812. changeText: 'X秒重新获取',
  14813. endText: '重新获取',
  14814. keepRunning: false,
  14815. uniqueKey: ''
  14816. }
  14817. };
  14818. exports.default = _default;
  14819. /***/ }),
  14820. /* 84 */
  14821. /*!***************************************************************************!*\
  14822. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/codeInput.js ***!
  14823. \***************************************************************************/
  14824. /*! no static exports found */
  14825. /***/ (function(module, exports, __webpack_require__) {
  14826. "use strict";
  14827. Object.defineProperty(exports, "__esModule", {
  14828. value: true
  14829. });
  14830. exports.default = void 0;
  14831. /*
  14832. * @Author : LQ
  14833. * @Description :
  14834. * @version : 1.0
  14835. * @Date : 2021-08-20 16:44:21
  14836. * @LastAuthor : LQ
  14837. * @lastTime : 2021-08-20 16:55:58
  14838. * @FilePath : /u-view2.0/uview-ui/libs/config/props/codeInput.js
  14839. */
  14840. var _default = {
  14841. // codeInput 组件
  14842. codeInput: {
  14843. adjustPosition: true,
  14844. maxlength: 6,
  14845. dot: false,
  14846. mode: 'box',
  14847. hairline: false,
  14848. space: 10,
  14849. value: '',
  14850. focus: false,
  14851. bold: false,
  14852. color: '#606266',
  14853. fontSize: 18,
  14854. size: 35,
  14855. disabledKeyboard: false,
  14856. borderColor: '#c9cacc',
  14857. disabledDot: true
  14858. }
  14859. };
  14860. exports.default = _default;
  14861. /***/ }),
  14862. /* 85 */
  14863. /*!*********************************************************************!*\
  14864. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/col.js ***!
  14865. \*********************************************************************/
  14866. /*! no static exports found */
  14867. /***/ (function(module, exports, __webpack_require__) {
  14868. "use strict";
  14869. Object.defineProperty(exports, "__esModule", {
  14870. value: true
  14871. });
  14872. exports.default = void 0;
  14873. /*
  14874. * @Author : LQ
  14875. * @Description :
  14876. * @version : 1.0
  14877. * @Date : 2021-08-20 16:44:21
  14878. * @LastAuthor : LQ
  14879. * @lastTime : 2021-08-20 16:56:12
  14880. * @FilePath : /u-view2.0/uview-ui/libs/config/props/col.js
  14881. */
  14882. var _default = {
  14883. // col 组件
  14884. col: {
  14885. span: 12,
  14886. offset: 0,
  14887. justify: 'start',
  14888. align: 'stretch',
  14889. textAlign: 'left'
  14890. }
  14891. };
  14892. exports.default = _default;
  14893. /***/ }),
  14894. /* 86 */
  14895. /*!**************************************************************************!*\
  14896. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/collapse.js ***!
  14897. \**************************************************************************/
  14898. /*! no static exports found */
  14899. /***/ (function(module, exports, __webpack_require__) {
  14900. "use strict";
  14901. Object.defineProperty(exports, "__esModule", {
  14902. value: true
  14903. });
  14904. exports.default = void 0;
  14905. /*
  14906. * @Author : LQ
  14907. * @Description :
  14908. * @version : 1.0
  14909. * @Date : 2021-08-20 16:44:21
  14910. * @LastAuthor : LQ
  14911. * @lastTime : 2021-08-20 16:56:30
  14912. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapse.js
  14913. */
  14914. var _default = {
  14915. // collapse 组件
  14916. collapse: {
  14917. value: null,
  14918. accordion: false,
  14919. border: true
  14920. }
  14921. };
  14922. exports.default = _default;
  14923. /***/ }),
  14924. /* 87 */
  14925. /*!******************************************************************************!*\
  14926. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/collapseItem.js ***!
  14927. \******************************************************************************/
  14928. /*! no static exports found */
  14929. /***/ (function(module, exports, __webpack_require__) {
  14930. "use strict";
  14931. Object.defineProperty(exports, "__esModule", {
  14932. value: true
  14933. });
  14934. exports.default = void 0;
  14935. /*
  14936. * @Author : LQ
  14937. * @Description :
  14938. * @version : 1.0
  14939. * @Date : 2021-08-20 16:44:21
  14940. * @LastAuthor : LQ
  14941. * @lastTime : 2021-08-20 16:56:42
  14942. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapseItem.js
  14943. */
  14944. var _default = {
  14945. // collapseItem 组件
  14946. collapseItem: {
  14947. title: '',
  14948. value: '',
  14949. label: '',
  14950. disabled: false,
  14951. isLink: true,
  14952. clickable: true,
  14953. border: true,
  14954. align: 'left',
  14955. name: '',
  14956. icon: '',
  14957. duration: 300
  14958. }
  14959. };
  14960. exports.default = _default;
  14961. /***/ }),
  14962. /* 88 */
  14963. /*!******************************************************************************!*\
  14964. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/columnNotice.js ***!
  14965. \******************************************************************************/
  14966. /*! no static exports found */
  14967. /***/ (function(module, exports, __webpack_require__) {
  14968. "use strict";
  14969. Object.defineProperty(exports, "__esModule", {
  14970. value: true
  14971. });
  14972. exports.default = void 0;
  14973. /*
  14974. * @Author : LQ
  14975. * @Description :
  14976. * @version : 1.0
  14977. * @Date : 2021-08-20 16:44:21
  14978. * @LastAuthor : LQ
  14979. * @lastTime : 2021-08-20 16:57:16
  14980. * @FilePath : /u-view2.0/uview-ui/libs/config/props/columnNotice.js
  14981. */
  14982. var _default = {
  14983. // columnNotice 组件
  14984. columnNotice: {
  14985. text: '',
  14986. icon: 'volume',
  14987. mode: '',
  14988. color: '#f9ae3d',
  14989. bgColor: '#fdf6ec',
  14990. fontSize: 14,
  14991. speed: 80,
  14992. step: false,
  14993. duration: 1500,
  14994. disableTouch: true
  14995. }
  14996. };
  14997. exports.default = _default;
  14998. /***/ }),
  14999. /* 89 */
  15000. /*!***************************************************************************!*\
  15001. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/countDown.js ***!
  15002. \***************************************************************************/
  15003. /*! no static exports found */
  15004. /***/ (function(module, exports, __webpack_require__) {
  15005. "use strict";
  15006. Object.defineProperty(exports, "__esModule", {
  15007. value: true
  15008. });
  15009. exports.default = void 0;
  15010. /*
  15011. * @Author : LQ
  15012. * @Description :
  15013. * @version : 1.0
  15014. * @Date : 2021-08-20 16:44:21
  15015. * @LastAuthor : LQ
  15016. * @lastTime : 2021-08-20 17:11:29
  15017. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countDown.js
  15018. */
  15019. var _default = {
  15020. // u-count-down 计时器组件
  15021. countDown: {
  15022. time: 0,
  15023. format: 'HH:mm:ss',
  15024. autoStart: true,
  15025. millisecond: false
  15026. }
  15027. };
  15028. exports.default = _default;
  15029. /***/ }),
  15030. /* 90 */
  15031. /*!*************************************************************************!*\
  15032. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/countTo.js ***!
  15033. \*************************************************************************/
  15034. /*! no static exports found */
  15035. /***/ (function(module, exports, __webpack_require__) {
  15036. "use strict";
  15037. Object.defineProperty(exports, "__esModule", {
  15038. value: true
  15039. });
  15040. exports.default = void 0;
  15041. /*
  15042. * @Author : LQ
  15043. * @Description :
  15044. * @version : 1.0
  15045. * @Date : 2021-08-20 16:44:21
  15046. * @LastAuthor : LQ
  15047. * @lastTime : 2021-08-20 16:57:32
  15048. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countTo.js
  15049. */
  15050. var _default = {
  15051. // countTo 组件
  15052. countTo: {
  15053. startVal: 0,
  15054. endVal: 0,
  15055. duration: 2000,
  15056. autoplay: true,
  15057. decimals: 0,
  15058. useEasing: true,
  15059. decimal: '.',
  15060. color: '#606266',
  15061. fontSize: 22,
  15062. bold: false,
  15063. separator: ''
  15064. }
  15065. };
  15066. exports.default = _default;
  15067. /***/ }),
  15068. /* 91 */
  15069. /*!********************************************************************************!*\
  15070. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/datetimePicker.js ***!
  15071. \********************************************************************************/
  15072. /*! no static exports found */
  15073. /***/ (function(module, exports, __webpack_require__) {
  15074. "use strict";
  15075. Object.defineProperty(exports, "__esModule", {
  15076. value: true
  15077. });
  15078. exports.default = void 0;
  15079. /*
  15080. * @Author : LQ
  15081. * @Description :
  15082. * @version : 1.0
  15083. * @Date : 2021-08-20 16:44:21
  15084. * @LastAuthor : LQ
  15085. * @lastTime : 2021-08-20 16:57:48
  15086. * @FilePath : /u-view2.0/uview-ui/libs/config/props/datetimePicker.js
  15087. */
  15088. var _default = {
  15089. // datetimePicker 组件
  15090. datetimePicker: {
  15091. show: false,
  15092. showToolbar: true,
  15093. value: '',
  15094. title: '',
  15095. mode: 'datetime',
  15096. maxDate: new Date(new Date().getFullYear() + 10, 0, 1).getTime(),
  15097. minDate: new Date(new Date().getFullYear() - 10, 0, 1).getTime(),
  15098. minHour: 0,
  15099. maxHour: 23,
  15100. minMinute: 0,
  15101. maxMinute: 59,
  15102. filter: null,
  15103. formatter: null,
  15104. loading: false,
  15105. itemHeight: 44,
  15106. cancelText: '取消',
  15107. confirmText: '确认',
  15108. cancelColor: '#909193',
  15109. confirmColor: '#3c9cff',
  15110. visibleItemCount: 5,
  15111. closeOnClickOverlay: false,
  15112. defaultIndex: function defaultIndex() {
  15113. return [];
  15114. }
  15115. }
  15116. };
  15117. exports.default = _default;
  15118. /***/ }),
  15119. /* 92 */
  15120. /*!*************************************************************************!*\
  15121. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/divider.js ***!
  15122. \*************************************************************************/
  15123. /*! no static exports found */
  15124. /***/ (function(module, exports, __webpack_require__) {
  15125. "use strict";
  15126. Object.defineProperty(exports, "__esModule", {
  15127. value: true
  15128. });
  15129. exports.default = void 0;
  15130. /*
  15131. * @Author : LQ
  15132. * @Description :
  15133. * @version : 1.0
  15134. * @Date : 2021-08-20 16:44:21
  15135. * @LastAuthor : LQ
  15136. * @lastTime : 2021-08-20 16:58:03
  15137. * @FilePath : /u-view2.0/uview-ui/libs/config/props/divider.js
  15138. */
  15139. var _default = {
  15140. // divider组件
  15141. divider: {
  15142. dashed: false,
  15143. hairline: true,
  15144. dot: false,
  15145. textPosition: 'center',
  15146. text: '',
  15147. textSize: 14,
  15148. textColor: '#909399',
  15149. lineColor: '#dcdfe6'
  15150. }
  15151. };
  15152. exports.default = _default;
  15153. /***/ }),
  15154. /* 93 */
  15155. /*!***********************************************************************!*\
  15156. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/empty.js ***!
  15157. \***********************************************************************/
  15158. /*! no static exports found */
  15159. /***/ (function(module, exports, __webpack_require__) {
  15160. "use strict";
  15161. Object.defineProperty(exports, "__esModule", {
  15162. value: true
  15163. });
  15164. exports.default = void 0;
  15165. /*
  15166. * @Author : LQ
  15167. * @Description :
  15168. * @version : 1.0
  15169. * @Date : 2021-08-20 16:44:21
  15170. * @LastAuthor : LQ
  15171. * @lastTime : 2021-08-20 17:03:27
  15172. * @FilePath : /u-view2.0/uview-ui/libs/config/props/empty.js
  15173. */
  15174. var _default = {
  15175. // empty组件
  15176. empty: {
  15177. icon: '',
  15178. text: '',
  15179. textColor: '#c0c4cc',
  15180. textSize: 14,
  15181. iconColor: '#c0c4cc',
  15182. iconSize: 90,
  15183. mode: 'data',
  15184. width: 160,
  15185. height: 160,
  15186. show: true,
  15187. marginTop: 0
  15188. }
  15189. };
  15190. exports.default = _default;
  15191. /***/ }),
  15192. /* 94 */
  15193. /*!**********************************************************************!*\
  15194. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/form.js ***!
  15195. \**********************************************************************/
  15196. /*! no static exports found */
  15197. /***/ (function(module, exports, __webpack_require__) {
  15198. "use strict";
  15199. Object.defineProperty(exports, "__esModule", {
  15200. value: true
  15201. });
  15202. exports.default = void 0;
  15203. /*
  15204. * @Author : LQ
  15205. * @Description :
  15206. * @version : 1.0
  15207. * @Date : 2021-08-20 16:44:21
  15208. * @LastAuthor : LQ
  15209. * @lastTime : 2021-08-20 17:03:49
  15210. * @FilePath : /u-view2.0/uview-ui/libs/config/props/form.js
  15211. */
  15212. var _default = {
  15213. // form 组件
  15214. form: {
  15215. model: function model() {
  15216. return {};
  15217. },
  15218. rules: function rules() {
  15219. return {};
  15220. },
  15221. errorType: 'message',
  15222. borderBottom: true,
  15223. labelPosition: 'left',
  15224. labelWidth: 45,
  15225. labelAlign: 'left',
  15226. labelStyle: function labelStyle() {
  15227. return {};
  15228. }
  15229. }
  15230. };
  15231. exports.default = _default;
  15232. /***/ }),
  15233. /* 95 */
  15234. /*!**************************************************************************!*\
  15235. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/formItem.js ***!
  15236. \**************************************************************************/
  15237. /*! no static exports found */
  15238. /***/ (function(module, exports, __webpack_require__) {
  15239. "use strict";
  15240. Object.defineProperty(exports, "__esModule", {
  15241. value: true
  15242. });
  15243. exports.default = void 0;
  15244. /*
  15245. * @Author : LQ
  15246. * @Description :
  15247. * @version : 1.0
  15248. * @Date : 2021-08-20 16:44:21
  15249. * @LastAuthor : LQ
  15250. * @lastTime : 2021-08-20 17:04:32
  15251. * @FilePath : /u-view2.0/uview-ui/libs/config/props/formItem.js
  15252. */
  15253. var _default = {
  15254. // formItem 组件
  15255. formItem: {
  15256. label: '',
  15257. prop: '',
  15258. borderBottom: '',
  15259. labelPosition: '',
  15260. labelWidth: '',
  15261. rightIcon: '',
  15262. leftIcon: '',
  15263. required: false,
  15264. leftIconStyle: ''
  15265. }
  15266. };
  15267. exports.default = _default;
  15268. /***/ }),
  15269. /* 96 */
  15270. /*!*********************************************************************!*\
  15271. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/gap.js ***!
  15272. \*********************************************************************/
  15273. /*! no static exports found */
  15274. /***/ (function(module, exports, __webpack_require__) {
  15275. "use strict";
  15276. Object.defineProperty(exports, "__esModule", {
  15277. value: true
  15278. });
  15279. exports.default = void 0;
  15280. /*
  15281. * @Author : LQ
  15282. * @Description :
  15283. * @version : 1.0
  15284. * @Date : 2021-08-20 16:44:21
  15285. * @LastAuthor : LQ
  15286. * @lastTime : 2021-08-20 17:05:25
  15287. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gap.js
  15288. */
  15289. var _default = {
  15290. // gap组件
  15291. gap: {
  15292. bgColor: 'transparent',
  15293. height: 20,
  15294. marginTop: 0,
  15295. marginBottom: 0,
  15296. customStyle: {}
  15297. }
  15298. };
  15299. exports.default = _default;
  15300. /***/ }),
  15301. /* 97 */
  15302. /*!**********************************************************************!*\
  15303. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/grid.js ***!
  15304. \**********************************************************************/
  15305. /*! no static exports found */
  15306. /***/ (function(module, exports, __webpack_require__) {
  15307. "use strict";
  15308. Object.defineProperty(exports, "__esModule", {
  15309. value: true
  15310. });
  15311. exports.default = void 0;
  15312. /*
  15313. * @Author : LQ
  15314. * @Description :
  15315. * @version : 1.0
  15316. * @Date : 2021-08-20 16:44:21
  15317. * @LastAuthor : LQ
  15318. * @lastTime : 2021-08-20 17:05:57
  15319. * @FilePath : /u-view2.0/uview-ui/libs/config/props/grid.js
  15320. */
  15321. var _default = {
  15322. // grid组件
  15323. grid: {
  15324. col: 3,
  15325. border: false,
  15326. align: 'left'
  15327. }
  15328. };
  15329. exports.default = _default;
  15330. /***/ }),
  15331. /* 98 */
  15332. /*!**************************************************************************!*\
  15333. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/gridItem.js ***!
  15334. \**************************************************************************/
  15335. /*! no static exports found */
  15336. /***/ (function(module, exports, __webpack_require__) {
  15337. "use strict";
  15338. Object.defineProperty(exports, "__esModule", {
  15339. value: true
  15340. });
  15341. exports.default = void 0;
  15342. /*
  15343. * @Author : LQ
  15344. * @Description :
  15345. * @version : 1.0
  15346. * @Date : 2021-08-20 16:44:21
  15347. * @LastAuthor : LQ
  15348. * @lastTime : 2021-08-20 17:06:13
  15349. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gridItem.js
  15350. */
  15351. var _default = {
  15352. // grid-item组件
  15353. gridItem: {
  15354. name: null,
  15355. bgColor: 'transparent'
  15356. }
  15357. };
  15358. exports.default = _default;
  15359. /***/ }),
  15360. /* 99 */
  15361. /*!**********************************************************************!*\
  15362. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/icon.js ***!
  15363. \**********************************************************************/
  15364. /*! no static exports found */
  15365. /***/ (function(module, exports, __webpack_require__) {
  15366. "use strict";
  15367. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15368. Object.defineProperty(exports, "__esModule", {
  15369. value: true
  15370. });
  15371. exports.default = void 0;
  15372. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 66));
  15373. /*
  15374. * @Author : LQ
  15375. * @Description :
  15376. * @version : 1.0
  15377. * @Date : 2021-08-20 16:44:21
  15378. * @LastAuthor : LQ
  15379. * @lastTime : 2021-08-20 18:00:14
  15380. * @FilePath : /u-view2.0/uview-ui/libs/config/props/icon.js
  15381. */
  15382. var color = _config.default.color;
  15383. var _default = {
  15384. // icon组件
  15385. icon: {
  15386. name: '',
  15387. color: color['u-content-color'],
  15388. size: '16px',
  15389. bold: false,
  15390. index: '',
  15391. hoverClass: '',
  15392. customPrefix: 'uicon',
  15393. label: '',
  15394. labelPos: 'right',
  15395. labelSize: '15px',
  15396. labelColor: color['u-content-color'],
  15397. space: '3px',
  15398. imgMode: '',
  15399. width: '',
  15400. height: '',
  15401. top: 0,
  15402. stop: false
  15403. }
  15404. };
  15405. exports.default = _default;
  15406. /***/ }),
  15407. /* 100 */
  15408. /*!***********************************************************************!*\
  15409. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/image.js ***!
  15410. \***********************************************************************/
  15411. /*! no static exports found */
  15412. /***/ (function(module, exports, __webpack_require__) {
  15413. "use strict";
  15414. Object.defineProperty(exports, "__esModule", {
  15415. value: true
  15416. });
  15417. exports.default = void 0;
  15418. /*
  15419. * @Author : LQ
  15420. * @Description :
  15421. * @version : 1.0
  15422. * @Date : 2021-08-20 16:44:21
  15423. * @LastAuthor : LQ
  15424. * @lastTime : 2021-08-20 17:01:51
  15425. * @FilePath : /u-view2.0/uview-ui/libs/config/props/image.js
  15426. */
  15427. var _default = {
  15428. // image组件
  15429. image: {
  15430. src: '',
  15431. mode: 'aspectFill',
  15432. width: '300',
  15433. height: '225',
  15434. shape: 'square',
  15435. radius: 0,
  15436. lazyLoad: true,
  15437. showMenuByLongpress: true,
  15438. loadingIcon: 'photo',
  15439. errorIcon: 'error-circle',
  15440. showLoading: true,
  15441. showError: true,
  15442. fade: true,
  15443. webp: false,
  15444. duration: 500,
  15445. bgColor: '#f3f4f6'
  15446. }
  15447. };
  15448. exports.default = _default;
  15449. /***/ }),
  15450. /* 101 */
  15451. /*!*****************************************************************************!*\
  15452. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/indexAnchor.js ***!
  15453. \*****************************************************************************/
  15454. /*! no static exports found */
  15455. /***/ (function(module, exports, __webpack_require__) {
  15456. "use strict";
  15457. Object.defineProperty(exports, "__esModule", {
  15458. value: true
  15459. });
  15460. exports.default = void 0;
  15461. /*
  15462. * @Author : LQ
  15463. * @Description :
  15464. * @version : 1.0
  15465. * @Date : 2021-08-20 16:44:21
  15466. * @LastAuthor : LQ
  15467. * @lastTime : 2021-08-20 17:13:15
  15468. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexAnchor.js
  15469. */
  15470. var _default = {
  15471. // indexAnchor 组件
  15472. indexAnchor: {
  15473. text: '',
  15474. color: '#606266',
  15475. size: 14,
  15476. bgColor: '#dedede',
  15477. height: 32
  15478. }
  15479. };
  15480. exports.default = _default;
  15481. /***/ }),
  15482. /* 102 */
  15483. /*!***************************************************************************!*\
  15484. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/indexList.js ***!
  15485. \***************************************************************************/
  15486. /*! no static exports found */
  15487. /***/ (function(module, exports, __webpack_require__) {
  15488. "use strict";
  15489. Object.defineProperty(exports, "__esModule", {
  15490. value: true
  15491. });
  15492. exports.default = void 0;
  15493. /*
  15494. * @Author : LQ
  15495. * @Description :
  15496. * @version : 1.0
  15497. * @Date : 2021-08-20 16:44:21
  15498. * @LastAuthor : LQ
  15499. * @lastTime : 2021-08-20 17:13:35
  15500. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexList.js
  15501. */
  15502. var _default = {
  15503. // indexList 组件
  15504. indexList: {
  15505. inactiveColor: '#606266',
  15506. activeColor: '#5677fc',
  15507. indexList: function indexList() {
  15508. return [];
  15509. },
  15510. sticky: true,
  15511. customNavHeight: 0
  15512. }
  15513. };
  15514. exports.default = _default;
  15515. /***/ }),
  15516. /* 103 */
  15517. /*!***********************************************************************!*\
  15518. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/input.js ***!
  15519. \***********************************************************************/
  15520. /*! no static exports found */
  15521. /***/ (function(module, exports, __webpack_require__) {
  15522. "use strict";
  15523. Object.defineProperty(exports, "__esModule", {
  15524. value: true
  15525. });
  15526. exports.default = void 0;
  15527. /*
  15528. * @Author : LQ
  15529. * @Description :
  15530. * @version : 1.0
  15531. * @Date : 2021-08-20 16:44:21
  15532. * @LastAuthor : LQ
  15533. * @lastTime : 2021-08-20 17:13:55
  15534. * @FilePath : /u-view2.0/uview-ui/libs/config/props/input.js
  15535. */
  15536. var _default = {
  15537. // index 组件
  15538. input: {
  15539. value: '',
  15540. type: 'text',
  15541. fixed: false,
  15542. disabled: false,
  15543. disabledColor: '#f5f7fa',
  15544. clearable: false,
  15545. password: false,
  15546. maxlength: -1,
  15547. placeholder: null,
  15548. placeholderClass: 'input-placeholder',
  15549. placeholderStyle: 'color: #c0c4cc',
  15550. showWordLimit: false,
  15551. confirmType: 'done',
  15552. confirmHold: false,
  15553. holdKeyboard: false,
  15554. focus: false,
  15555. autoBlur: false,
  15556. disableDefaultPadding: false,
  15557. cursor: -1,
  15558. cursorSpacing: 30,
  15559. selectionStart: -1,
  15560. selectionEnd: -1,
  15561. adjustPosition: true,
  15562. inputAlign: 'left',
  15563. fontSize: '15px',
  15564. color: '#303133',
  15565. prefixIcon: '',
  15566. prefixIconStyle: '',
  15567. suffixIcon: '',
  15568. suffixIconStyle: '',
  15569. border: 'surround',
  15570. readonly: false,
  15571. shape: 'square',
  15572. formatter: null
  15573. }
  15574. };
  15575. exports.default = _default;
  15576. /***/ }),
  15577. /* 104 */
  15578. /*!**************************************************************************!*\
  15579. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/keyboard.js ***!
  15580. \**************************************************************************/
  15581. /*! no static exports found */
  15582. /***/ (function(module, exports, __webpack_require__) {
  15583. "use strict";
  15584. Object.defineProperty(exports, "__esModule", {
  15585. value: true
  15586. });
  15587. exports.default = void 0;
  15588. /*
  15589. * @Author : LQ
  15590. * @Description :
  15591. * @version : 1.0
  15592. * @Date : 2021-08-20 16:44:21
  15593. * @LastAuthor : LQ
  15594. * @lastTime : 2021-08-20 17:07:49
  15595. * @FilePath : /u-view2.0/uview-ui/libs/config/props/keyboard.js
  15596. */
  15597. var _default = {
  15598. // 键盘组件
  15599. keyboard: {
  15600. mode: 'number',
  15601. dotDisabled: false,
  15602. tooltip: true,
  15603. showTips: true,
  15604. tips: '',
  15605. showCancel: true,
  15606. showConfirm: true,
  15607. random: false,
  15608. safeAreaInsetBottom: true,
  15609. closeOnClickOverlay: true,
  15610. show: false,
  15611. overlay: true,
  15612. zIndex: 10075,
  15613. cancelText: '取消',
  15614. confirmText: '确定',
  15615. autoChange: false
  15616. }
  15617. };
  15618. exports.default = _default;
  15619. /***/ }),
  15620. /* 105 */
  15621. /*!**********************************************************************!*\
  15622. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/line.js ***!
  15623. \**********************************************************************/
  15624. /*! no static exports found */
  15625. /***/ (function(module, exports, __webpack_require__) {
  15626. "use strict";
  15627. Object.defineProperty(exports, "__esModule", {
  15628. value: true
  15629. });
  15630. exports.default = void 0;
  15631. /*
  15632. * @Author : LQ
  15633. * @Description :
  15634. * @version : 1.0
  15635. * @Date : 2021-08-20 16:44:21
  15636. * @LastAuthor : LQ
  15637. * @lastTime : 2021-08-20 17:04:49
  15638. * @FilePath : /u-view2.0/uview-ui/libs/config/props/line.js
  15639. */
  15640. var _default = {
  15641. // line组件
  15642. line: {
  15643. color: '#d6d7d9',
  15644. length: '100%',
  15645. direction: 'row',
  15646. hairline: true,
  15647. margin: 0,
  15648. dashed: false
  15649. }
  15650. };
  15651. exports.default = _default;
  15652. /***/ }),
  15653. /* 106 */
  15654. /*!******************************************************************************!*\
  15655. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/lineProgress.js ***!
  15656. \******************************************************************************/
  15657. /*! no static exports found */
  15658. /***/ (function(module, exports, __webpack_require__) {
  15659. "use strict";
  15660. Object.defineProperty(exports, "__esModule", {
  15661. value: true
  15662. });
  15663. exports.default = void 0;
  15664. /*
  15665. * @Author : LQ
  15666. * @Description :
  15667. * @version : 1.0
  15668. * @Date : 2021-08-20 16:44:21
  15669. * @LastAuthor : LQ
  15670. * @lastTime : 2021-08-20 17:14:11
  15671. * @FilePath : /u-view2.0/uview-ui/libs/config/props/lineProgress.js
  15672. */
  15673. var _default = {
  15674. // lineProgress 组件
  15675. lineProgress: {
  15676. activeColor: '#19be6b',
  15677. inactiveColor: '#ececec',
  15678. percentage: 0,
  15679. showText: true,
  15680. height: 12
  15681. }
  15682. };
  15683. exports.default = _default;
  15684. /***/ }),
  15685. /* 107 */
  15686. /*!**********************************************************************!*\
  15687. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/link.js ***!
  15688. \**********************************************************************/
  15689. /*! no static exports found */
  15690. /***/ (function(module, exports, __webpack_require__) {
  15691. "use strict";
  15692. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15693. Object.defineProperty(exports, "__esModule", {
  15694. value: true
  15695. });
  15696. exports.default = void 0;
  15697. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 66));
  15698. /*
  15699. * @Author : LQ
  15700. * @Description :
  15701. * @version : 1.0
  15702. * @Date : 2021-08-20 16:44:21
  15703. * @LastAuthor : LQ
  15704. * @lastTime : 2021-08-20 17:45:36
  15705. * @FilePath : /u-view2.0/uview-ui/libs/config/props/link.js
  15706. */
  15707. var color = _config.default.color;
  15708. var _default = {
  15709. // link超链接组件props参数
  15710. link: {
  15711. color: color['u-primary'],
  15712. fontSize: 15,
  15713. underLine: false,
  15714. href: '',
  15715. mpTips: '链接已复制,请在浏览器打开',
  15716. lineColor: '',
  15717. text: ''
  15718. }
  15719. };
  15720. exports.default = _default;
  15721. /***/ }),
  15722. /* 108 */
  15723. /*!**********************************************************************!*\
  15724. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/list.js ***!
  15725. \**********************************************************************/
  15726. /*! no static exports found */
  15727. /***/ (function(module, exports, __webpack_require__) {
  15728. "use strict";
  15729. Object.defineProperty(exports, "__esModule", {
  15730. value: true
  15731. });
  15732. exports.default = void 0;
  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:14:53
  15740. * @FilePath : /u-view2.0/uview-ui/libs/config/props/list.js
  15741. */
  15742. var _default = {
  15743. // list 组件
  15744. list: {
  15745. showScrollbar: false,
  15746. lowerThreshold: 50,
  15747. upperThreshold: 0,
  15748. scrollTop: 0,
  15749. offsetAccuracy: 10,
  15750. enableFlex: false,
  15751. pagingEnabled: false,
  15752. scrollable: true,
  15753. scrollIntoView: '',
  15754. scrollWithAnimation: false,
  15755. enableBackToTop: false,
  15756. height: 0,
  15757. width: 0,
  15758. preLoadScreen: 1
  15759. }
  15760. };
  15761. exports.default = _default;
  15762. /***/ }),
  15763. /* 109 */
  15764. /*!**************************************************************************!*\
  15765. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/listItem.js ***!
  15766. \**************************************************************************/
  15767. /*! no static exports found */
  15768. /***/ (function(module, exports, __webpack_require__) {
  15769. "use strict";
  15770. Object.defineProperty(exports, "__esModule", {
  15771. value: true
  15772. });
  15773. exports.default = void 0;
  15774. /*
  15775. * @Author : LQ
  15776. * @Description :
  15777. * @version : 1.0
  15778. * @Date : 2021-08-20 16:44:21
  15779. * @LastAuthor : LQ
  15780. * @lastTime : 2021-08-20 17:15:40
  15781. * @FilePath : /u-view2.0/uview-ui/libs/config/props/listItem.js
  15782. */
  15783. var _default = {
  15784. // listItem 组件
  15785. listItem: {
  15786. anchor: ''
  15787. }
  15788. };
  15789. exports.default = _default;
  15790. /***/ }),
  15791. /* 110 */
  15792. /*!*****************************************************************************!*\
  15793. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/loadingIcon.js ***!
  15794. \*****************************************************************************/
  15795. /*! no static exports found */
  15796. /***/ (function(module, exports, __webpack_require__) {
  15797. "use strict";
  15798. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15799. Object.defineProperty(exports, "__esModule", {
  15800. value: true
  15801. });
  15802. exports.default = void 0;
  15803. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 66));
  15804. /*
  15805. * @Author : LQ
  15806. * @Description :
  15807. * @version : 1.0
  15808. * @Date : 2021-08-20 16:44:21
  15809. * @LastAuthor : LQ
  15810. * @lastTime : 2021-08-20 17:45:47
  15811. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingIcon.js
  15812. */
  15813. var color = _config.default.color;
  15814. var _default = {
  15815. // loading-icon加载中图标组件
  15816. loadingIcon: {
  15817. show: true,
  15818. color: color['u-tips-color'],
  15819. textColor: color['u-tips-color'],
  15820. vertical: false,
  15821. mode: 'spinner',
  15822. size: 24,
  15823. textSize: 15,
  15824. text: '',
  15825. timingFunction: 'ease-in-out',
  15826. duration: 1200,
  15827. inactiveColor: ''
  15828. }
  15829. };
  15830. exports.default = _default;
  15831. /***/ }),
  15832. /* 111 */
  15833. /*!*****************************************************************************!*\
  15834. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/loadingPage.js ***!
  15835. \*****************************************************************************/
  15836. /*! no static exports found */
  15837. /***/ (function(module, exports, __webpack_require__) {
  15838. "use strict";
  15839. Object.defineProperty(exports, "__esModule", {
  15840. value: true
  15841. });
  15842. exports.default = void 0;
  15843. /*
  15844. * @Author : LQ
  15845. * @Description :
  15846. * @version : 1.0
  15847. * @Date : 2021-08-20 16:44:21
  15848. * @LastAuthor : LQ
  15849. * @lastTime : 2021-08-20 17:00:23
  15850. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingPage.js
  15851. */
  15852. var _default = {
  15853. // loading-page组件
  15854. loadingPage: {
  15855. loadingText: '正在加载',
  15856. image: '',
  15857. loadingMode: 'circle',
  15858. loading: false,
  15859. bgColor: '#ffffff',
  15860. color: '#C8C8C8',
  15861. fontSize: 19,
  15862. iconSize: 28,
  15863. loadingColor: '#C8C8C8'
  15864. }
  15865. };
  15866. exports.default = _default;
  15867. /***/ }),
  15868. /* 112 */
  15869. /*!**************************************************************************!*\
  15870. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/loadmore.js ***!
  15871. \**************************************************************************/
  15872. /*! no static exports found */
  15873. /***/ (function(module, exports, __webpack_require__) {
  15874. "use strict";
  15875. Object.defineProperty(exports, "__esModule", {
  15876. value: true
  15877. });
  15878. exports.default = void 0;
  15879. /*
  15880. * @Author : LQ
  15881. * @Description :
  15882. * @version : 1.0
  15883. * @Date : 2021-08-20 16:44:21
  15884. * @LastAuthor : LQ
  15885. * @lastTime : 2021-08-20 17:15:26
  15886. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadmore.js
  15887. */
  15888. var _default = {
  15889. // loadmore 组件
  15890. loadmore: {
  15891. status: 'loadmore',
  15892. bgColor: 'transparent',
  15893. icon: true,
  15894. fontSize: 14,
  15895. iconSize: 17,
  15896. color: '#606266',
  15897. loadingIcon: 'spinner',
  15898. loadmoreText: '加载更多',
  15899. loadingText: '正在加载...',
  15900. nomoreText: '没有更多了',
  15901. isDot: false,
  15902. iconColor: '#b7b7b7',
  15903. marginTop: 10,
  15904. marginBottom: 10,
  15905. height: 'auto',
  15906. line: false,
  15907. lineColor: '#E6E8EB',
  15908. dashed: false
  15909. }
  15910. };
  15911. exports.default = _default;
  15912. /***/ }),
  15913. /* 113 */
  15914. /*!***********************************************************************!*\
  15915. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/modal.js ***!
  15916. \***********************************************************************/
  15917. /*! no static exports found */
  15918. /***/ (function(module, exports, __webpack_require__) {
  15919. "use strict";
  15920. Object.defineProperty(exports, "__esModule", {
  15921. value: true
  15922. });
  15923. exports.default = void 0;
  15924. /*
  15925. * @Author : LQ
  15926. * @Description :
  15927. * @version : 1.0
  15928. * @Date : 2021-08-20 16:44:21
  15929. * @LastAuthor : LQ
  15930. * @lastTime : 2021-08-20 17:15:59
  15931. * @FilePath : /u-view2.0/uview-ui/libs/config/props/modal.js
  15932. */
  15933. var _default = {
  15934. // modal 组件
  15935. modal: {
  15936. show: false,
  15937. title: '',
  15938. content: '',
  15939. confirmText: '确认',
  15940. cancelText: '取消',
  15941. showConfirmButton: true,
  15942. showCancelButton: false,
  15943. confirmColor: '#2979ff',
  15944. cancelColor: '#606266',
  15945. buttonReverse: false,
  15946. zoom: true,
  15947. asyncClose: false,
  15948. closeOnClickOverlay: false,
  15949. negativeTop: 0,
  15950. width: '650rpx',
  15951. confirmButtonShape: ''
  15952. }
  15953. };
  15954. exports.default = _default;
  15955. /***/ }),
  15956. /* 114 */
  15957. /*!************************************************************************!*\
  15958. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/navbar.js ***!
  15959. \************************************************************************/
  15960. /*! no static exports found */
  15961. /***/ (function(module, exports, __webpack_require__) {
  15962. "use strict";
  15963. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15964. Object.defineProperty(exports, "__esModule", {
  15965. value: true
  15966. });
  15967. exports.default = void 0;
  15968. var _color = _interopRequireDefault(__webpack_require__(/*! ../color */ 115));
  15969. /*
  15970. * @Author : LQ
  15971. * @Description :
  15972. * @version : 1.0
  15973. * @Date : 2021-08-20 16:44:21
  15974. * @LastAuthor : LQ
  15975. * @lastTime : 2021-08-20 17:16:18
  15976. * @FilePath : /u-view2.0/uview-ui/libs/config/props/navbar.js
  15977. */
  15978. var _default = {
  15979. // navbar 组件
  15980. navbar: {
  15981. safeAreaInsetTop: true,
  15982. placeholder: false,
  15983. fixed: true,
  15984. border: false,
  15985. leftIcon: 'arrow-left',
  15986. leftText: '',
  15987. rightText: '',
  15988. rightIcon: '',
  15989. title: '',
  15990. bgColor: '#ffffff',
  15991. titleWidth: '400rpx',
  15992. height: '44px',
  15993. leftIconSize: 20,
  15994. leftIconColor: _color.default.mainColor,
  15995. autoBack: false,
  15996. titleStyle: ''
  15997. }
  15998. };
  15999. exports.default = _default;
  16000. /***/ }),
  16001. /* 115 */
  16002. /*!*****************************************************************!*\
  16003. !*** D:/yj-register/node_modules/uview-ui/libs/config/color.js ***!
  16004. \*****************************************************************/
  16005. /*! no static exports found */
  16006. /***/ (function(module, exports, __webpack_require__) {
  16007. "use strict";
  16008. Object.defineProperty(exports, "__esModule", {
  16009. value: true
  16010. });
  16011. exports.default = void 0;
  16012. // 为了让用户能够自定义主题,会逐步弃用此文件,各颜色通过css提供
  16013. // 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)
  16014. var color = {
  16015. primary: '#3c9cff',
  16016. info: '#909399',
  16017. default: '#909399',
  16018. warning: '#f9ae3d',
  16019. error: '#f56c6c',
  16020. success: '#5ac725',
  16021. mainColor: '#303133',
  16022. contentColor: '#606266',
  16023. tipsColor: '#909399',
  16024. lightColor: '#c0c4cc',
  16025. borderColor: '#e4e7ed'
  16026. };
  16027. var _default = color;
  16028. exports.default = _default;
  16029. /***/ }),
  16030. /* 116 */
  16031. /*!***************************************************************************!*\
  16032. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/noNetwork.js ***!
  16033. \***************************************************************************/
  16034. /*! no static exports found */
  16035. /***/ (function(module, exports, __webpack_require__) {
  16036. "use strict";
  16037. Object.defineProperty(exports, "__esModule", {
  16038. value: true
  16039. });
  16040. exports.default = void 0;
  16041. /*
  16042. * @Author : LQ
  16043. * @Description :
  16044. * @version : 1.0
  16045. * @Date : 2021-08-20 16:44:21
  16046. * @LastAuthor : LQ
  16047. * @lastTime : 2021-08-20 17:16:39
  16048. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noNetwork.js
  16049. */
  16050. var _default = {
  16051. // noNetwork
  16052. noNetwork: {
  16053. tips: '哎呀,网络信号丢失',
  16054. zIndex: '',
  16055. 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'
  16056. }
  16057. };
  16058. exports.default = _default;
  16059. /***/ }),
  16060. /* 117 */
  16061. /*!***************************************************************************!*\
  16062. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/noticeBar.js ***!
  16063. \***************************************************************************/
  16064. /*! no static exports found */
  16065. /***/ (function(module, exports, __webpack_require__) {
  16066. "use strict";
  16067. Object.defineProperty(exports, "__esModule", {
  16068. value: true
  16069. });
  16070. exports.default = void 0;
  16071. /*
  16072. * @Author : LQ
  16073. * @Description :
  16074. * @version : 1.0
  16075. * @Date : 2021-08-20 16:44:21
  16076. * @LastAuthor : LQ
  16077. * @lastTime : 2021-08-20 17:17:13
  16078. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noticeBar.js
  16079. */
  16080. var _default = {
  16081. // noticeBar
  16082. noticeBar: {
  16083. text: function text() {
  16084. return [];
  16085. },
  16086. direction: 'row',
  16087. step: false,
  16088. icon: 'volume',
  16089. mode: '',
  16090. color: '#f9ae3d',
  16091. bgColor: '#fdf6ec',
  16092. speed: 80,
  16093. fontSize: 14,
  16094. duration: 2000,
  16095. disableTouch: true,
  16096. url: '',
  16097. linkType: 'navigateTo'
  16098. }
  16099. };
  16100. exports.default = _default;
  16101. /***/ }),
  16102. /* 118 */
  16103. /*!************************************************************************!*\
  16104. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/notify.js ***!
  16105. \************************************************************************/
  16106. /*! no static exports found */
  16107. /***/ (function(module, exports, __webpack_require__) {
  16108. "use strict";
  16109. Object.defineProperty(exports, "__esModule", {
  16110. value: true
  16111. });
  16112. exports.default = void 0;
  16113. /*
  16114. * @Author : LQ
  16115. * @Description :
  16116. * @version : 1.0
  16117. * @Date : 2021-08-20 16:44:21
  16118. * @LastAuthor : LQ
  16119. * @lastTime : 2021-08-20 17:10:21
  16120. * @FilePath : /u-view2.0/uview-ui/libs/config/props/notify.js
  16121. */
  16122. var _default = {
  16123. // notify组件
  16124. notify: {
  16125. top: 0,
  16126. type: 'primary',
  16127. color: '#ffffff',
  16128. bgColor: '',
  16129. message: '',
  16130. duration: 3000,
  16131. fontSize: 15,
  16132. safeAreaInsetTop: false
  16133. }
  16134. };
  16135. exports.default = _default;
  16136. /***/ }),
  16137. /* 119 */
  16138. /*!***************************************************************************!*\
  16139. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/numberBox.js ***!
  16140. \***************************************************************************/
  16141. /*! no static exports found */
  16142. /***/ (function(module, exports, __webpack_require__) {
  16143. "use strict";
  16144. Object.defineProperty(exports, "__esModule", {
  16145. value: true
  16146. });
  16147. exports.default = void 0;
  16148. /*
  16149. * @Author : LQ
  16150. * @Description :
  16151. * @version : 1.0
  16152. * @Date : 2021-08-20 16:44:21
  16153. * @LastAuthor : LQ
  16154. * @lastTime : 2021-08-20 17:11:46
  16155. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberBox.js
  16156. */
  16157. var _default = {
  16158. // 步进器组件
  16159. numberBox: {
  16160. name: '',
  16161. value: 0,
  16162. min: 1,
  16163. max: Number.MAX_SAFE_INTEGER,
  16164. step: 1,
  16165. integer: false,
  16166. disabled: false,
  16167. disabledInput: false,
  16168. asyncChange: false,
  16169. inputWidth: 35,
  16170. showMinus: true,
  16171. showPlus: true,
  16172. decimalLength: null,
  16173. longPress: true,
  16174. color: '#323233',
  16175. buttonSize: 30,
  16176. bgColor: '#EBECEE',
  16177. cursorSpacing: 100,
  16178. disableMinus: false,
  16179. disablePlus: false,
  16180. iconStyle: ''
  16181. }
  16182. };
  16183. exports.default = _default;
  16184. /***/ }),
  16185. /* 120 */
  16186. /*!********************************************************************************!*\
  16187. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/numberKeyboard.js ***!
  16188. \********************************************************************************/
  16189. /*! no static exports found */
  16190. /***/ (function(module, exports, __webpack_require__) {
  16191. "use strict";
  16192. Object.defineProperty(exports, "__esModule", {
  16193. value: true
  16194. });
  16195. exports.default = void 0;
  16196. /*
  16197. * @Author : LQ
  16198. * @Description :
  16199. * @version : 1.0
  16200. * @Date : 2021-08-20 16:44:21
  16201. * @LastAuthor : LQ
  16202. * @lastTime : 2021-08-20 17:08:05
  16203. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberKeyboard.js
  16204. */
  16205. var _default = {
  16206. // 数字键盘
  16207. numberKeyboard: {
  16208. mode: 'number',
  16209. dotDisabled: false,
  16210. random: false
  16211. }
  16212. };
  16213. exports.default = _default;
  16214. /***/ }),
  16215. /* 121 */
  16216. /*!*************************************************************************!*\
  16217. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/overlay.js ***!
  16218. \*************************************************************************/
  16219. /*! no static exports found */
  16220. /***/ (function(module, exports, __webpack_require__) {
  16221. "use strict";
  16222. Object.defineProperty(exports, "__esModule", {
  16223. value: true
  16224. });
  16225. exports.default = void 0;
  16226. /*
  16227. * @Author : LQ
  16228. * @Description :
  16229. * @version : 1.0
  16230. * @Date : 2021-08-20 16:44:21
  16231. * @LastAuthor : LQ
  16232. * @lastTime : 2021-08-20 17:06:50
  16233. * @FilePath : /u-view2.0/uview-ui/libs/config/props/overlay.js
  16234. */
  16235. var _default = {
  16236. // overlay组件
  16237. overlay: {
  16238. show: false,
  16239. zIndex: 10070,
  16240. duration: 300,
  16241. opacity: 0.5
  16242. }
  16243. };
  16244. exports.default = _default;
  16245. /***/ }),
  16246. /* 122 */
  16247. /*!***********************************************************************!*\
  16248. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/parse.js ***!
  16249. \***********************************************************************/
  16250. /*! no static exports found */
  16251. /***/ (function(module, exports, __webpack_require__) {
  16252. "use strict";
  16253. Object.defineProperty(exports, "__esModule", {
  16254. value: true
  16255. });
  16256. exports.default = void 0;
  16257. /*
  16258. * @Author : LQ
  16259. * @Description :
  16260. * @version : 1.0
  16261. * @Date : 2021-08-20 16:44:21
  16262. * @LastAuthor : LQ
  16263. * @lastTime : 2021-08-20 17:17:33
  16264. * @FilePath : /u-view2.0/uview-ui/libs/config/props/parse.js
  16265. */
  16266. var _default = {
  16267. // parse
  16268. parse: {
  16269. copyLink: true,
  16270. errorImg: '',
  16271. lazyLoad: false,
  16272. loadingImg: '',
  16273. pauseVideo: true,
  16274. previewImg: true,
  16275. setTitle: true,
  16276. showImgMenu: true
  16277. }
  16278. };
  16279. exports.default = _default;
  16280. /***/ }),
  16281. /* 123 */
  16282. /*!************************************************************************!*\
  16283. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/picker.js ***!
  16284. \************************************************************************/
  16285. /*! no static exports found */
  16286. /***/ (function(module, exports, __webpack_require__) {
  16287. "use strict";
  16288. Object.defineProperty(exports, "__esModule", {
  16289. value: true
  16290. });
  16291. exports.default = void 0;
  16292. /*
  16293. * @Author : LQ
  16294. * @Description :
  16295. * @version : 1.0
  16296. * @Date : 2021-08-20 16:44:21
  16297. * @LastAuthor : LQ
  16298. * @lastTime : 2021-08-20 17:18:20
  16299. * @FilePath : /u-view2.0/uview-ui/libs/config/props/picker.js
  16300. */
  16301. var _default = {
  16302. // picker
  16303. picker: {
  16304. show: false,
  16305. showToolbar: true,
  16306. title: '',
  16307. columns: function columns() {
  16308. return [];
  16309. },
  16310. loading: false,
  16311. itemHeight: 44,
  16312. cancelText: '取消',
  16313. confirmText: '确定',
  16314. cancelColor: '#909193',
  16315. confirmColor: '#3c9cff',
  16316. visibleItemCount: 5,
  16317. keyName: 'text',
  16318. closeOnClickOverlay: false,
  16319. defaultIndex: function defaultIndex() {
  16320. return [];
  16321. },
  16322. immediateChange: false
  16323. }
  16324. };
  16325. exports.default = _default;
  16326. /***/ }),
  16327. /* 124 */
  16328. /*!***********************************************************************!*\
  16329. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/popup.js ***!
  16330. \***********************************************************************/
  16331. /*! no static exports found */
  16332. /***/ (function(module, exports, __webpack_require__) {
  16333. "use strict";
  16334. Object.defineProperty(exports, "__esModule", {
  16335. value: true
  16336. });
  16337. exports.default = void 0;
  16338. /*
  16339. * @Author : LQ
  16340. * @Description :
  16341. * @version : 1.0
  16342. * @Date : 2021-08-20 16:44:21
  16343. * @LastAuthor : LQ
  16344. * @lastTime : 2021-08-20 17:06:33
  16345. * @FilePath : /u-view2.0/uview-ui/libs/config/props/popup.js
  16346. */
  16347. var _default = {
  16348. // popup组件
  16349. popup: {
  16350. show: false,
  16351. overlay: true,
  16352. mode: 'bottom',
  16353. duration: 300,
  16354. closeable: false,
  16355. overlayStyle: function overlayStyle() {},
  16356. closeOnClickOverlay: true,
  16357. zIndex: 10075,
  16358. safeAreaInsetBottom: true,
  16359. safeAreaInsetTop: false,
  16360. closeIconPos: 'top-right',
  16361. round: 0,
  16362. zoom: true,
  16363. bgColor: '',
  16364. overlayOpacity: 0.5
  16365. }
  16366. };
  16367. exports.default = _default;
  16368. /***/ }),
  16369. /* 125 */
  16370. /*!***********************************************************************!*\
  16371. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/radio.js ***!
  16372. \***********************************************************************/
  16373. /*! no static exports found */
  16374. /***/ (function(module, exports, __webpack_require__) {
  16375. "use strict";
  16376. Object.defineProperty(exports, "__esModule", {
  16377. value: true
  16378. });
  16379. exports.default = void 0;
  16380. /*
  16381. * @Author : LQ
  16382. * @Description :
  16383. * @version : 1.0
  16384. * @Date : 2021-08-20 16:44:21
  16385. * @LastAuthor : LQ
  16386. * @lastTime : 2021-08-20 17:02:34
  16387. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radio.js
  16388. */
  16389. var _default = {
  16390. // radio组件
  16391. radio: {
  16392. name: '',
  16393. shape: '',
  16394. disabled: '',
  16395. labelDisabled: '',
  16396. activeColor: '',
  16397. inactiveColor: '',
  16398. iconSize: '',
  16399. labelSize: '',
  16400. label: '',
  16401. labelColor: '',
  16402. size: '',
  16403. iconColor: '',
  16404. placement: ''
  16405. }
  16406. };
  16407. exports.default = _default;
  16408. /***/ }),
  16409. /* 126 */
  16410. /*!****************************************************************************!*\
  16411. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/radioGroup.js ***!
  16412. \****************************************************************************/
  16413. /*! no static exports found */
  16414. /***/ (function(module, exports, __webpack_require__) {
  16415. "use strict";
  16416. Object.defineProperty(exports, "__esModule", {
  16417. value: true
  16418. });
  16419. exports.default = void 0;
  16420. /*
  16421. * @Author : LQ
  16422. * @Description :
  16423. * @version : 1.0
  16424. * @Date : 2021-08-20 16:44:21
  16425. * @LastAuthor : LQ
  16426. * @lastTime : 2021-08-20 17:03:12
  16427. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radioGroup.js
  16428. */
  16429. var _default = {
  16430. // radio-group组件
  16431. radioGroup: {
  16432. value: '',
  16433. disabled: false,
  16434. shape: 'circle',
  16435. activeColor: '#2979ff',
  16436. inactiveColor: '#c8c9cc',
  16437. name: '',
  16438. size: 18,
  16439. placement: 'row',
  16440. label: '',
  16441. labelColor: '#303133',
  16442. labelSize: 14,
  16443. labelDisabled: false,
  16444. iconColor: '#ffffff',
  16445. iconSize: 12,
  16446. borderBottom: false,
  16447. iconPlacement: 'left'
  16448. }
  16449. };
  16450. exports.default = _default;
  16451. /***/ }),
  16452. /* 127 */
  16453. /*!**********************************************************************!*\
  16454. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/rate.js ***!
  16455. \**********************************************************************/
  16456. /*! no static exports found */
  16457. /***/ (function(module, exports, __webpack_require__) {
  16458. "use strict";
  16459. Object.defineProperty(exports, "__esModule", {
  16460. value: true
  16461. });
  16462. exports.default = void 0;
  16463. /*
  16464. * @Author : LQ
  16465. * @Description :
  16466. * @version : 1.0
  16467. * @Date : 2021-08-20 16:44:21
  16468. * @LastAuthor : LQ
  16469. * @lastTime : 2021-08-20 17:05:09
  16470. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rate.js
  16471. */
  16472. var _default = {
  16473. // rate组件
  16474. rate: {
  16475. value: 1,
  16476. count: 5,
  16477. disabled: false,
  16478. size: 18,
  16479. inactiveColor: '#b2b2b2',
  16480. activeColor: '#FA3534',
  16481. gutter: 4,
  16482. minCount: 1,
  16483. allowHalf: false,
  16484. activeIcon: 'star-fill',
  16485. inactiveIcon: 'star',
  16486. touchable: true
  16487. }
  16488. };
  16489. exports.default = _default;
  16490. /***/ }),
  16491. /* 128 */
  16492. /*!**************************************************************************!*\
  16493. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/readMore.js ***!
  16494. \**************************************************************************/
  16495. /*! no static exports found */
  16496. /***/ (function(module, exports, __webpack_require__) {
  16497. "use strict";
  16498. Object.defineProperty(exports, "__esModule", {
  16499. value: true
  16500. });
  16501. exports.default = void 0;
  16502. /*
  16503. * @Author : LQ
  16504. * @Description :
  16505. * @version : 1.0
  16506. * @Date : 2021-08-20 16:44:21
  16507. * @LastAuthor : LQ
  16508. * @lastTime : 2021-08-20 17:18:41
  16509. * @FilePath : /u-view2.0/uview-ui/libs/config/props/readMore.js
  16510. */
  16511. var _default = {
  16512. // readMore
  16513. readMore: {
  16514. showHeight: 400,
  16515. toggle: false,
  16516. closeText: '展开阅读全文',
  16517. openText: '收起',
  16518. color: '#2979ff',
  16519. fontSize: 14,
  16520. textIndent: '2em',
  16521. name: ''
  16522. }
  16523. };
  16524. exports.default = _default;
  16525. /***/ }),
  16526. /* 129 */
  16527. /*!*********************************************************************!*\
  16528. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/row.js ***!
  16529. \*********************************************************************/
  16530. /*! no static exports found */
  16531. /***/ (function(module, exports, __webpack_require__) {
  16532. "use strict";
  16533. Object.defineProperty(exports, "__esModule", {
  16534. value: true
  16535. });
  16536. exports.default = void 0;
  16537. /*
  16538. * @Author : LQ
  16539. * @Description :
  16540. * @version : 1.0
  16541. * @Date : 2021-08-20 16:44:21
  16542. * @LastAuthor : LQ
  16543. * @lastTime : 2021-08-20 17:18:58
  16544. * @FilePath : /u-view2.0/uview-ui/libs/config/props/row.js
  16545. */
  16546. var _default = {
  16547. // row
  16548. row: {
  16549. gutter: 0,
  16550. justify: 'start',
  16551. align: 'center'
  16552. }
  16553. };
  16554. exports.default = _default;
  16555. /***/ }),
  16556. /* 130 */
  16557. /*!***************************************************************************!*\
  16558. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/rowNotice.js ***!
  16559. \***************************************************************************/
  16560. /*! no static exports found */
  16561. /***/ (function(module, exports, __webpack_require__) {
  16562. "use strict";
  16563. Object.defineProperty(exports, "__esModule", {
  16564. value: true
  16565. });
  16566. exports.default = void 0;
  16567. /*
  16568. * @Author : LQ
  16569. * @Description :
  16570. * @version : 1.0
  16571. * @Date : 2021-08-20 16:44:21
  16572. * @LastAuthor : LQ
  16573. * @lastTime : 2021-08-20 17:19:13
  16574. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rowNotice.js
  16575. */
  16576. var _default = {
  16577. // rowNotice
  16578. rowNotice: {
  16579. text: '',
  16580. icon: 'volume',
  16581. mode: '',
  16582. color: '#f9ae3d',
  16583. bgColor: '#fdf6ec',
  16584. fontSize: 14,
  16585. speed: 80
  16586. }
  16587. };
  16588. exports.default = _default;
  16589. /***/ }),
  16590. /* 131 */
  16591. /*!****************************************************************************!*\
  16592. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/scrollList.js ***!
  16593. \****************************************************************************/
  16594. /*! no static exports found */
  16595. /***/ (function(module, exports, __webpack_require__) {
  16596. "use strict";
  16597. Object.defineProperty(exports, "__esModule", {
  16598. value: true
  16599. });
  16600. exports.default = void 0;
  16601. /*
  16602. * @Author : LQ
  16603. * @Description :
  16604. * @version : 1.0
  16605. * @Date : 2021-08-20 16:44:21
  16606. * @LastAuthor : LQ
  16607. * @lastTime : 2021-08-20 17:19:28
  16608. * @FilePath : /u-view2.0/uview-ui/libs/config/props/scrollList.js
  16609. */
  16610. var _default = {
  16611. // scrollList
  16612. scrollList: {
  16613. indicatorWidth: 50,
  16614. indicatorBarWidth: 20,
  16615. indicator: true,
  16616. indicatorColor: '#f2f2f2',
  16617. indicatorActiveColor: '#3c9cff',
  16618. indicatorStyle: ''
  16619. }
  16620. };
  16621. exports.default = _default;
  16622. /***/ }),
  16623. /* 132 */
  16624. /*!************************************************************************!*\
  16625. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/search.js ***!
  16626. \************************************************************************/
  16627. /*! no static exports found */
  16628. /***/ (function(module, exports, __webpack_require__) {
  16629. "use strict";
  16630. Object.defineProperty(exports, "__esModule", {
  16631. value: true
  16632. });
  16633. exports.default = void 0;
  16634. /*
  16635. * @Author : LQ
  16636. * @Description :
  16637. * @version : 1.0
  16638. * @Date : 2021-08-20 16:44:21
  16639. * @LastAuthor : LQ
  16640. * @lastTime : 2021-08-20 17:19:45
  16641. * @FilePath : /u-view2.0/uview-ui/libs/config/props/search.js
  16642. */
  16643. var _default = {
  16644. // search
  16645. search: {
  16646. shape: 'round',
  16647. bgColor: '#f2f2f2',
  16648. placeholder: '请输入关键字',
  16649. clearabled: true,
  16650. focus: false,
  16651. showAction: true,
  16652. actionStyle: function actionStyle() {
  16653. return {};
  16654. },
  16655. actionText: '搜索',
  16656. inputAlign: 'left',
  16657. inputStyle: function inputStyle() {
  16658. return {};
  16659. },
  16660. disabled: false,
  16661. borderColor: 'transparent',
  16662. searchIconColor: '#909399',
  16663. searchIconSize: 22,
  16664. color: '#606266',
  16665. placeholderColor: '#909399',
  16666. searchIcon: 'search',
  16667. margin: '0',
  16668. animation: false,
  16669. value: '',
  16670. maxlength: '-1',
  16671. height: 32,
  16672. label: null
  16673. }
  16674. };
  16675. exports.default = _default;
  16676. /***/ }),
  16677. /* 133 */
  16678. /*!*************************************************************************!*\
  16679. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/section.js ***!
  16680. \*************************************************************************/
  16681. /*! no static exports found */
  16682. /***/ (function(module, exports, __webpack_require__) {
  16683. "use strict";
  16684. Object.defineProperty(exports, "__esModule", {
  16685. value: true
  16686. });
  16687. exports.default = void 0;
  16688. /*
  16689. * @Author : LQ
  16690. * @Description :
  16691. * @version : 1.0
  16692. * @Date : 2021-08-20 16:44:21
  16693. * @LastAuthor : LQ
  16694. * @lastTime : 2021-08-20 17:07:33
  16695. * @FilePath : /u-view2.0/uview-ui/libs/config/props/section.js
  16696. */
  16697. var _default = {
  16698. // u-section组件
  16699. section: {
  16700. title: '',
  16701. subTitle: '更多',
  16702. right: true,
  16703. fontSize: 15,
  16704. bold: true,
  16705. color: '#303133',
  16706. subColor: '#909399',
  16707. showLine: true,
  16708. lineColor: '',
  16709. arrow: true
  16710. }
  16711. };
  16712. exports.default = _default;
  16713. /***/ }),
  16714. /* 134 */
  16715. /*!**************************************************************************!*\
  16716. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/skeleton.js ***!
  16717. \**************************************************************************/
  16718. /*! no static exports found */
  16719. /***/ (function(module, exports, __webpack_require__) {
  16720. "use strict";
  16721. Object.defineProperty(exports, "__esModule", {
  16722. value: true
  16723. });
  16724. exports.default = void 0;
  16725. /*
  16726. * @Author : LQ
  16727. * @Description :
  16728. * @version : 1.0
  16729. * @Date : 2021-08-20 16:44:21
  16730. * @LastAuthor : LQ
  16731. * @lastTime : 2021-08-20 17:20:14
  16732. * @FilePath : /u-view2.0/uview-ui/libs/config/props/skeleton.js
  16733. */
  16734. var _default = {
  16735. // skeleton
  16736. skeleton: {
  16737. loading: true,
  16738. animate: true,
  16739. rows: 0,
  16740. rowsWidth: '100%',
  16741. rowsHeight: 18,
  16742. title: true,
  16743. titleWidth: '50%',
  16744. titleHeight: 18,
  16745. avatar: false,
  16746. avatarSize: 32,
  16747. avatarShape: 'circle'
  16748. }
  16749. };
  16750. exports.default = _default;
  16751. /***/ }),
  16752. /* 135 */
  16753. /*!************************************************************************!*\
  16754. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/slider.js ***!
  16755. \************************************************************************/
  16756. /*! no static exports found */
  16757. /***/ (function(module, exports, __webpack_require__) {
  16758. "use strict";
  16759. Object.defineProperty(exports, "__esModule", {
  16760. value: true
  16761. });
  16762. exports.default = void 0;
  16763. /*
  16764. * @Author : LQ
  16765. * @Description :
  16766. * @version : 1.0
  16767. * @Date : 2021-08-20 16:44:21
  16768. * @LastAuthor : LQ
  16769. * @lastTime : 2021-08-20 17:08:25
  16770. * @FilePath : /u-view2.0/uview-ui/libs/config/props/slider.js
  16771. */
  16772. var _default = {
  16773. // slider组件
  16774. slider: {
  16775. value: 0,
  16776. blockSize: 18,
  16777. min: 0,
  16778. max: 100,
  16779. step: 1,
  16780. activeColor: '#2979ff',
  16781. inactiveColor: '#c0c4cc',
  16782. blockColor: '#ffffff',
  16783. showValue: false,
  16784. disabled: false,
  16785. blockStyle: function blockStyle() {}
  16786. }
  16787. };
  16788. exports.default = _default;
  16789. /***/ }),
  16790. /* 136 */
  16791. /*!***************************************************************************!*\
  16792. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/statusBar.js ***!
  16793. \***************************************************************************/
  16794. /*! no static exports found */
  16795. /***/ (function(module, exports, __webpack_require__) {
  16796. "use strict";
  16797. Object.defineProperty(exports, "__esModule", {
  16798. value: true
  16799. });
  16800. exports.default = void 0;
  16801. /*
  16802. * @Author : LQ
  16803. * @Description :
  16804. * @version : 1.0
  16805. * @Date : 2021-08-20 16:44:21
  16806. * @LastAuthor : LQ
  16807. * @lastTime : 2021-08-20 17:20:39
  16808. * @FilePath : /u-view2.0/uview-ui/libs/config/props/statusBar.js
  16809. */
  16810. var _default = {
  16811. // statusBar
  16812. statusBar: {
  16813. bgColor: 'transparent'
  16814. }
  16815. };
  16816. exports.default = _default;
  16817. /***/ }),
  16818. /* 137 */
  16819. /*!***********************************************************************!*\
  16820. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/steps.js ***!
  16821. \***********************************************************************/
  16822. /*! no static exports found */
  16823. /***/ (function(module, exports, __webpack_require__) {
  16824. "use strict";
  16825. Object.defineProperty(exports, "__esModule", {
  16826. value: true
  16827. });
  16828. exports.default = void 0;
  16829. /*
  16830. * @Author : LQ
  16831. * @Description :
  16832. * @version : 1.0
  16833. * @Date : 2021-08-20 16:44:21
  16834. * @LastAuthor : LQ
  16835. * @lastTime : 2021-08-20 17:12:37
  16836. * @FilePath : /u-view2.0/uview-ui/libs/config/props/steps.js
  16837. */
  16838. var _default = {
  16839. // steps组件
  16840. steps: {
  16841. direction: 'row',
  16842. current: 0,
  16843. activeColor: '#3c9cff',
  16844. inactiveColor: '#969799',
  16845. activeIcon: '',
  16846. inactiveIcon: '',
  16847. dot: false
  16848. }
  16849. };
  16850. exports.default = _default;
  16851. /***/ }),
  16852. /* 138 */
  16853. /*!***************************************************************************!*\
  16854. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/stepsItem.js ***!
  16855. \***************************************************************************/
  16856. /*! no static exports found */
  16857. /***/ (function(module, exports, __webpack_require__) {
  16858. "use strict";
  16859. Object.defineProperty(exports, "__esModule", {
  16860. value: true
  16861. });
  16862. exports.default = void 0;
  16863. /*
  16864. * @Author : LQ
  16865. * @Description :
  16866. * @version : 1.0
  16867. * @Date : 2021-08-20 16:44:21
  16868. * @LastAuthor : LQ
  16869. * @lastTime : 2021-08-20 17:12:55
  16870. * @FilePath : /u-view2.0/uview-ui/libs/config/props/stepsItem.js
  16871. */
  16872. var _default = {
  16873. // steps-item组件
  16874. stepsItem: {
  16875. title: '',
  16876. desc: '',
  16877. iconSize: 17,
  16878. error: false
  16879. }
  16880. };
  16881. exports.default = _default;
  16882. /***/ }),
  16883. /* 139 */
  16884. /*!************************************************************************!*\
  16885. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/sticky.js ***!
  16886. \************************************************************************/
  16887. /*! no static exports found */
  16888. /***/ (function(module, exports, __webpack_require__) {
  16889. "use strict";
  16890. Object.defineProperty(exports, "__esModule", {
  16891. value: true
  16892. });
  16893. exports.default = void 0;
  16894. /*
  16895. * @Author : LQ
  16896. * @Description :
  16897. * @version : 1.0
  16898. * @Date : 2021-08-20 16:44:21
  16899. * @LastAuthor : LQ
  16900. * @lastTime : 2021-08-20 17:01:30
  16901. * @FilePath : /u-view2.0/uview-ui/libs/config/props/sticky.js
  16902. */
  16903. var _default = {
  16904. // sticky组件
  16905. sticky: {
  16906. offsetTop: 0,
  16907. customNavHeight: 0,
  16908. disabled: false,
  16909. bgColor: 'transparent',
  16910. zIndex: '',
  16911. index: ''
  16912. }
  16913. };
  16914. exports.default = _default;
  16915. /***/ }),
  16916. /* 140 */
  16917. /*!****************************************************************************!*\
  16918. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/subsection.js ***!
  16919. \****************************************************************************/
  16920. /*! no static exports found */
  16921. /***/ (function(module, exports, __webpack_require__) {
  16922. "use strict";
  16923. Object.defineProperty(exports, "__esModule", {
  16924. value: true
  16925. });
  16926. exports.default = void 0;
  16927. /*
  16928. * @Author : LQ
  16929. * @Description :
  16930. * @version : 1.0
  16931. * @Date : 2021-08-20 16:44:21
  16932. * @LastAuthor : LQ
  16933. * @lastTime : 2021-08-20 17:12:20
  16934. * @FilePath : /u-view2.0/uview-ui/libs/config/props/subsection.js
  16935. */
  16936. var _default = {
  16937. // subsection组件
  16938. subsection: {
  16939. list: [],
  16940. current: 0,
  16941. activeColor: '#3c9cff',
  16942. inactiveColor: '#303133',
  16943. mode: 'button',
  16944. fontSize: 12,
  16945. bold: true,
  16946. bgColor: '#eeeeef',
  16947. keyName: 'name'
  16948. }
  16949. };
  16950. exports.default = _default;
  16951. /***/ }),
  16952. /* 141 */
  16953. /*!*****************************************************************************!*\
  16954. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/swipeAction.js ***!
  16955. \*****************************************************************************/
  16956. /*! no static exports found */
  16957. /***/ (function(module, exports, __webpack_require__) {
  16958. "use strict";
  16959. Object.defineProperty(exports, "__esModule", {
  16960. value: true
  16961. });
  16962. exports.default = void 0;
  16963. /*
  16964. * @Author : LQ
  16965. * @Description :
  16966. * @version : 1.0
  16967. * @Date : 2021-08-20 16:44:21
  16968. * @LastAuthor : LQ
  16969. * @lastTime : 2021-08-20 17:00:42
  16970. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeAction.js
  16971. */
  16972. var _default = {
  16973. // swipe-action组件
  16974. swipeAction: {
  16975. autoClose: true
  16976. }
  16977. };
  16978. exports.default = _default;
  16979. /***/ }),
  16980. /* 142 */
  16981. /*!*********************************************************************************!*\
  16982. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/swipeActionItem.js ***!
  16983. \*********************************************************************************/
  16984. /*! no static exports found */
  16985. /***/ (function(module, exports, __webpack_require__) {
  16986. "use strict";
  16987. Object.defineProperty(exports, "__esModule", {
  16988. value: true
  16989. });
  16990. exports.default = void 0;
  16991. /*
  16992. * @Author : LQ
  16993. * @Description :
  16994. * @version : 1.0
  16995. * @Date : 2021-08-20 16:44:21
  16996. * @LastAuthor : LQ
  16997. * @lastTime : 2021-08-20 17:01:13
  16998. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeActionItem.js
  16999. */
  17000. var _default = {
  17001. // swipeActionItem 组件
  17002. swipeActionItem: {
  17003. show: false,
  17004. name: '',
  17005. disabled: false,
  17006. threshold: 20,
  17007. autoClose: true,
  17008. options: [],
  17009. duration: 300
  17010. }
  17011. };
  17012. exports.default = _default;
  17013. /***/ }),
  17014. /* 143 */
  17015. /*!************************************************************************!*\
  17016. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/swiper.js ***!
  17017. \************************************************************************/
  17018. /*! no static exports found */
  17019. /***/ (function(module, exports, __webpack_require__) {
  17020. "use strict";
  17021. Object.defineProperty(exports, "__esModule", {
  17022. value: true
  17023. });
  17024. exports.default = void 0;
  17025. /*
  17026. * @Author : LQ
  17027. * @Description :
  17028. * @version : 1.0
  17029. * @Date : 2021-08-20 16:44:21
  17030. * @LastAuthor : LQ
  17031. * @lastTime : 2021-08-20 17:21:38
  17032. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiper.js
  17033. */
  17034. var _default = {
  17035. // swiper 组件
  17036. swiper: {
  17037. list: function list() {
  17038. return [];
  17039. },
  17040. indicator: false,
  17041. indicatorActiveColor: '#FFFFFF',
  17042. indicatorInactiveColor: 'rgba(255, 255, 255, 0.35)',
  17043. indicatorStyle: '',
  17044. indicatorMode: 'line',
  17045. autoplay: true,
  17046. current: 0,
  17047. currentItemId: '',
  17048. interval: 3000,
  17049. duration: 300,
  17050. circular: false,
  17051. previousMargin: 0,
  17052. nextMargin: 0,
  17053. acceleration: false,
  17054. displayMultipleItems: 1,
  17055. easingFunction: 'default',
  17056. keyName: 'url',
  17057. imgMode: 'aspectFill',
  17058. height: 130,
  17059. bgColor: '#f3f4f6',
  17060. radius: 4,
  17061. loading: false,
  17062. showTitle: false
  17063. }
  17064. };
  17065. exports.default = _default;
  17066. /***/ }),
  17067. /* 144 */
  17068. /*!**********************************************************************************!*\
  17069. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/swipterIndicator.js ***!
  17070. \**********************************************************************************/
  17071. /*! no static exports found */
  17072. /***/ (function(module, exports, __webpack_require__) {
  17073. "use strict";
  17074. Object.defineProperty(exports, "__esModule", {
  17075. value: true
  17076. });
  17077. exports.default = void 0;
  17078. /*
  17079. * @Author : LQ
  17080. * @Description :
  17081. * @version : 1.0
  17082. * @Date : 2021-08-20 16:44:21
  17083. * @LastAuthor : LQ
  17084. * @lastTime : 2021-08-20 17:22:07
  17085. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiperIndicator.js
  17086. */
  17087. var _default = {
  17088. // swiperIndicator 组件
  17089. swiperIndicator: {
  17090. length: 0,
  17091. current: 0,
  17092. indicatorActiveColor: '',
  17093. indicatorInactiveColor: '',
  17094. indicatorMode: 'line'
  17095. }
  17096. };
  17097. exports.default = _default;
  17098. /***/ }),
  17099. /* 145 */
  17100. /*!************************************************************************!*\
  17101. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/switch.js ***!
  17102. \************************************************************************/
  17103. /*! no static exports found */
  17104. /***/ (function(module, exports, __webpack_require__) {
  17105. "use strict";
  17106. Object.defineProperty(exports, "__esModule", {
  17107. value: true
  17108. });
  17109. exports.default = void 0;
  17110. /*
  17111. * @Author : LQ
  17112. * @Description :
  17113. * @version : 1.0
  17114. * @Date : 2021-08-20 16:44:21
  17115. * @LastAuthor : LQ
  17116. * @lastTime : 2021-08-20 17:22:24
  17117. * @FilePath : /u-view2.0/uview-ui/libs/config/props/switch.js
  17118. */
  17119. var _default = {
  17120. // switch
  17121. switch: {
  17122. loading: false,
  17123. disabled: false,
  17124. size: 25,
  17125. activeColor: '#2979ff',
  17126. inactiveColor: '#ffffff',
  17127. value: false,
  17128. activeValue: true,
  17129. inactiveValue: false,
  17130. asyncChange: false,
  17131. space: 0
  17132. }
  17133. };
  17134. exports.default = _default;
  17135. /***/ }),
  17136. /* 146 */
  17137. /*!************************************************************************!*\
  17138. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/tabbar.js ***!
  17139. \************************************************************************/
  17140. /*! no static exports found */
  17141. /***/ (function(module, exports, __webpack_require__) {
  17142. "use strict";
  17143. Object.defineProperty(exports, "__esModule", {
  17144. value: true
  17145. });
  17146. exports.default = void 0;
  17147. /*
  17148. * @Author : LQ
  17149. * @Description :
  17150. * @version : 1.0
  17151. * @Date : 2021-08-20 16:44:21
  17152. * @LastAuthor : LQ
  17153. * @lastTime : 2021-08-20 17:22:40
  17154. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbar.js
  17155. */
  17156. var _default = {
  17157. // tabbar
  17158. tabbar: {
  17159. value: null,
  17160. safeAreaInsetBottom: true,
  17161. border: true,
  17162. zIndex: 1,
  17163. activeColor: '#1989fa',
  17164. inactiveColor: '#7d7e80',
  17165. fixed: true,
  17166. placeholder: true
  17167. }
  17168. };
  17169. exports.default = _default;
  17170. /***/ }),
  17171. /* 147 */
  17172. /*!****************************************************************************!*\
  17173. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/tabbarItem.js ***!
  17174. \****************************************************************************/
  17175. /*! no static exports found */
  17176. /***/ (function(module, exports, __webpack_require__) {
  17177. "use strict";
  17178. Object.defineProperty(exports, "__esModule", {
  17179. value: true
  17180. });
  17181. exports.default = void 0;
  17182. /*
  17183. * @Author : LQ
  17184. * @Description :
  17185. * @version : 1.0
  17186. * @Date : 2021-08-20 16:44:21
  17187. * @LastAuthor : LQ
  17188. * @lastTime : 2021-08-20 17:22:55
  17189. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbarItem.js
  17190. */
  17191. var _default = {
  17192. //
  17193. tabbarItem: {
  17194. name: null,
  17195. icon: '',
  17196. badge: null,
  17197. dot: false,
  17198. text: '',
  17199. badgeStyle: 'top: 6px;right:2px;'
  17200. }
  17201. };
  17202. exports.default = _default;
  17203. /***/ }),
  17204. /* 148 */
  17205. /*!**********************************************************************!*\
  17206. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/tabs.js ***!
  17207. \**********************************************************************/
  17208. /*! no static exports found */
  17209. /***/ (function(module, exports, __webpack_require__) {
  17210. "use strict";
  17211. Object.defineProperty(exports, "__esModule", {
  17212. value: true
  17213. });
  17214. exports.default = void 0;
  17215. /*
  17216. * @Author : LQ
  17217. * @Description :
  17218. * @version : 1.0
  17219. * @Date : 2021-08-20 16:44:21
  17220. * @LastAuthor : LQ
  17221. * @lastTime : 2021-08-20 17:23:14
  17222. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabs.js
  17223. */
  17224. var _default = {
  17225. //
  17226. tabs: {
  17227. duration: 300,
  17228. list: function list() {
  17229. return [];
  17230. },
  17231. lineColor: '#3c9cff',
  17232. activeStyle: function activeStyle() {
  17233. return {
  17234. color: '#303133'
  17235. };
  17236. },
  17237. inactiveStyle: function inactiveStyle() {
  17238. return {
  17239. color: '#606266'
  17240. };
  17241. },
  17242. lineWidth: 20,
  17243. lineHeight: 3,
  17244. lineBgSize: 'cover',
  17245. itemStyle: function itemStyle() {
  17246. return {
  17247. height: '44px'
  17248. };
  17249. },
  17250. scrollable: true,
  17251. current: 0,
  17252. keyName: 'name'
  17253. }
  17254. };
  17255. exports.default = _default;
  17256. /***/ }),
  17257. /* 149 */
  17258. /*!*********************************************************************!*\
  17259. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/tag.js ***!
  17260. \*********************************************************************/
  17261. /*! no static exports found */
  17262. /***/ (function(module, exports, __webpack_require__) {
  17263. "use strict";
  17264. Object.defineProperty(exports, "__esModule", {
  17265. value: true
  17266. });
  17267. exports.default = void 0;
  17268. /*
  17269. * @Author : LQ
  17270. * @Description :
  17271. * @version : 1.0
  17272. * @Date : 2021-08-20 16:44:21
  17273. * @LastAuthor : LQ
  17274. * @lastTime : 2021-08-20 17:23:37
  17275. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tag.js
  17276. */
  17277. var _default = {
  17278. // tag 组件
  17279. tag: {
  17280. type: 'primary',
  17281. disabled: false,
  17282. size: 'medium',
  17283. shape: 'square',
  17284. text: '',
  17285. bgColor: '',
  17286. color: '',
  17287. borderColor: '',
  17288. closeColor: '#C6C7CB',
  17289. name: '',
  17290. plainFill: false,
  17291. plain: false,
  17292. closable: false,
  17293. show: true,
  17294. icon: ''
  17295. }
  17296. };
  17297. exports.default = _default;
  17298. /***/ }),
  17299. /* 150 */
  17300. /*!**********************************************************************!*\
  17301. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/text.js ***!
  17302. \**********************************************************************/
  17303. /*! no static exports found */
  17304. /***/ (function(module, exports, __webpack_require__) {
  17305. "use strict";
  17306. Object.defineProperty(exports, "__esModule", {
  17307. value: true
  17308. });
  17309. exports.default = void 0;
  17310. /*
  17311. * @Author : LQ
  17312. * @Description :
  17313. * @version : 1.0
  17314. * @Date : 2021-08-20 16:44:21
  17315. * @LastAuthor : LQ
  17316. * @lastTime : 2021-08-20 17:23:58
  17317. * @FilePath : /u-view2.0/uview-ui/libs/config/props/text.js
  17318. */
  17319. var _default = {
  17320. // text 组件
  17321. text: {
  17322. type: '',
  17323. show: true,
  17324. text: '',
  17325. prefixIcon: '',
  17326. suffixIcon: '',
  17327. mode: '',
  17328. href: '',
  17329. format: '',
  17330. call: false,
  17331. openType: '',
  17332. bold: false,
  17333. block: false,
  17334. lines: '',
  17335. color: '#303133',
  17336. size: 15,
  17337. iconStyle: function iconStyle() {
  17338. return {
  17339. fontSize: '15px'
  17340. };
  17341. },
  17342. decoration: 'none',
  17343. margin: 0,
  17344. lineHeight: '',
  17345. align: 'left',
  17346. wordWrap: 'normal'
  17347. }
  17348. };
  17349. exports.default = _default;
  17350. /***/ }),
  17351. /* 151 */
  17352. /*!**************************************************************************!*\
  17353. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/textarea.js ***!
  17354. \**************************************************************************/
  17355. /*! no static exports found */
  17356. /***/ (function(module, exports, __webpack_require__) {
  17357. "use strict";
  17358. Object.defineProperty(exports, "__esModule", {
  17359. value: true
  17360. });
  17361. exports.default = void 0;
  17362. /*
  17363. * @Author : LQ
  17364. * @Description :
  17365. * @version : 1.0
  17366. * @Date : 2021-08-20 16:44:21
  17367. * @LastAuthor : LQ
  17368. * @lastTime : 2021-08-20 17:24:32
  17369. * @FilePath : /u-view2.0/uview-ui/libs/config/props/textarea.js
  17370. */
  17371. var _default = {
  17372. // textarea 组件
  17373. textarea: {
  17374. value: '',
  17375. placeholder: '',
  17376. placeholderClass: 'textarea-placeholder',
  17377. placeholderStyle: 'color: #c0c4cc',
  17378. height: 70,
  17379. confirmType: 'done',
  17380. disabled: false,
  17381. count: false,
  17382. focus: false,
  17383. autoHeight: false,
  17384. fixed: false,
  17385. cursorSpacing: 0,
  17386. cursor: '',
  17387. showConfirmBar: true,
  17388. selectionStart: -1,
  17389. selectionEnd: -1,
  17390. adjustPosition: true,
  17391. disableDefaultPadding: false,
  17392. holdKeyboard: false,
  17393. maxlength: 140,
  17394. border: 'surround',
  17395. formatter: null
  17396. }
  17397. };
  17398. exports.default = _default;
  17399. /***/ }),
  17400. /* 152 */
  17401. /*!***********************************************************************!*\
  17402. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/toast.js ***!
  17403. \***********************************************************************/
  17404. /*! no static exports found */
  17405. /***/ (function(module, exports, __webpack_require__) {
  17406. "use strict";
  17407. Object.defineProperty(exports, "__esModule", {
  17408. value: true
  17409. });
  17410. exports.default = void 0;
  17411. /*
  17412. * @Author : LQ
  17413. * @Description :
  17414. * @version : 1.0
  17415. * @Date : 2021-08-20 16:44:21
  17416. * @LastAuthor : LQ
  17417. * @lastTime : 2021-08-20 17:07:07
  17418. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toast.js
  17419. */
  17420. var _default = {
  17421. // toast组件
  17422. toast: {
  17423. zIndex: 10090,
  17424. loading: false,
  17425. text: '',
  17426. icon: '',
  17427. type: '',
  17428. loadingMode: '',
  17429. show: '',
  17430. overlay: false,
  17431. position: 'center',
  17432. params: function params() {},
  17433. duration: 2000,
  17434. isTab: false,
  17435. url: '',
  17436. callback: null,
  17437. back: false
  17438. }
  17439. };
  17440. exports.default = _default;
  17441. /***/ }),
  17442. /* 153 */
  17443. /*!*************************************************************************!*\
  17444. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/toolbar.js ***!
  17445. \*************************************************************************/
  17446. /*! no static exports found */
  17447. /***/ (function(module, exports, __webpack_require__) {
  17448. "use strict";
  17449. Object.defineProperty(exports, "__esModule", {
  17450. value: true
  17451. });
  17452. exports.default = void 0;
  17453. /*
  17454. * @Author : LQ
  17455. * @Description :
  17456. * @version : 1.0
  17457. * @Date : 2021-08-20 16:44:21
  17458. * @LastAuthor : LQ
  17459. * @lastTime : 2021-08-20 17:24:55
  17460. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toolbar.js
  17461. */
  17462. var _default = {
  17463. // toolbar 组件
  17464. toolbar: {
  17465. show: true,
  17466. cancelText: '取消',
  17467. confirmText: '确认',
  17468. cancelColor: '#909193',
  17469. confirmColor: '#3c9cff',
  17470. title: ''
  17471. }
  17472. };
  17473. exports.default = _default;
  17474. /***/ }),
  17475. /* 154 */
  17476. /*!*************************************************************************!*\
  17477. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/tooltip.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:25:14
  17493. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tooltip.js
  17494. */
  17495. var _default = {
  17496. // tooltip 组件
  17497. tooltip: {
  17498. text: '',
  17499. copyText: '',
  17500. size: 14,
  17501. color: '#606266',
  17502. bgColor: 'transparent',
  17503. direction: 'top',
  17504. zIndex: 10071,
  17505. showCopy: true,
  17506. buttons: function buttons() {
  17507. return [];
  17508. },
  17509. overlay: true,
  17510. showToast: true
  17511. }
  17512. };
  17513. exports.default = _default;
  17514. /***/ }),
  17515. /* 155 */
  17516. /*!****************************************************************************!*\
  17517. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/transition.js ***!
  17518. \****************************************************************************/
  17519. /*! no static exports found */
  17520. /***/ (function(module, exports, __webpack_require__) {
  17521. "use strict";
  17522. Object.defineProperty(exports, "__esModule", {
  17523. value: true
  17524. });
  17525. exports.default = void 0;
  17526. /*
  17527. * @Author : LQ
  17528. * @Description :
  17529. * @version : 1.0
  17530. * @Date : 2021-08-20 16:44:21
  17531. * @LastAuthor : LQ
  17532. * @lastTime : 2021-08-20 16:59:00
  17533. * @FilePath : /u-view2.0/uview-ui/libs/config/props/transition.js
  17534. */
  17535. var _default = {
  17536. // transition动画组件的props
  17537. transition: {
  17538. show: false,
  17539. mode: 'fade',
  17540. duration: '300',
  17541. timingFunction: 'ease-out'
  17542. }
  17543. };
  17544. exports.default = _default;
  17545. /***/ }),
  17546. /* 156 */
  17547. /*!************************************************************************!*\
  17548. !*** D:/yj-register/node_modules/uview-ui/libs/config/props/upload.js ***!
  17549. \************************************************************************/
  17550. /*! no static exports found */
  17551. /***/ (function(module, exports, __webpack_require__) {
  17552. "use strict";
  17553. Object.defineProperty(exports, "__esModule", {
  17554. value: true
  17555. });
  17556. exports.default = void 0;
  17557. /*
  17558. * @Author : LQ
  17559. * @Description :
  17560. * @version : 1.0
  17561. * @Date : 2021-08-20 16:44:21
  17562. * @LastAuthor : LQ
  17563. * @lastTime : 2021-08-20 17:09:50
  17564. * @FilePath : /u-view2.0/uview-ui/libs/config/props/upload.js
  17565. */
  17566. var _default = {
  17567. // upload组件
  17568. upload: {
  17569. accept: 'image',
  17570. capture: function capture() {
  17571. return ['album', 'camera'];
  17572. },
  17573. compressed: true,
  17574. camera: 'back',
  17575. maxDuration: 60,
  17576. uploadIcon: 'camera-fill',
  17577. uploadIconColor: '#D3D4D6',
  17578. useBeforeRead: false,
  17579. previewFullImage: true,
  17580. maxCount: 52,
  17581. disabled: false,
  17582. imageMode: 'aspectFill',
  17583. name: '',
  17584. sizeType: function sizeType() {
  17585. return ['original', 'compressed'];
  17586. },
  17587. multiple: false,
  17588. deletable: true,
  17589. maxSize: Number.MAX_VALUE,
  17590. fileList: function fileList() {
  17591. return [];
  17592. },
  17593. uploadText: '',
  17594. width: 80,
  17595. height: 80,
  17596. previewImage: true
  17597. }
  17598. };
  17599. exports.default = _default;
  17600. /***/ }),
  17601. /* 157 */
  17602. /*!******************************************************************!*\
  17603. !*** D:/yj-register/node_modules/uview-ui/libs/config/zIndex.js ***!
  17604. \******************************************************************/
  17605. /*! no static exports found */
  17606. /***/ (function(module, exports, __webpack_require__) {
  17607. "use strict";
  17608. Object.defineProperty(exports, "__esModule", {
  17609. value: true
  17610. });
  17611. exports.default = void 0;
  17612. // uniapp在H5中各API的z-index值如下:
  17613. /**
  17614. * actionsheet: 999
  17615. * modal: 999
  17616. * navigate: 998
  17617. * tabbar: 998
  17618. * toast: 999
  17619. */
  17620. var _default = {
  17621. toast: 10090,
  17622. noNetwork: 10080,
  17623. // popup包含popup,actionsheet,keyboard,picker的值
  17624. popup: 10075,
  17625. mask: 10070,
  17626. navbar: 980,
  17627. topTips: 975,
  17628. sticky: 970,
  17629. indexListSticky: 965
  17630. };
  17631. exports.default = _default;
  17632. /***/ }),
  17633. /* 158 */
  17634. /*!**********************************************************************!*\
  17635. !*** D:/yj-register/node_modules/uview-ui/libs/function/platform.js ***!
  17636. \**********************************************************************/
  17637. /*! no static exports found */
  17638. /***/ (function(module, exports, __webpack_require__) {
  17639. "use strict";
  17640. Object.defineProperty(exports, "__esModule", {
  17641. value: true
  17642. });
  17643. exports.default = void 0;
  17644. /**
  17645. * 注意:
  17646. * 此部分内容,在vue-cli模式下,需要在vue.config.js加入如下内容才有效:
  17647. * module.exports = {
  17648. * transpileDependencies: ['uview-v2']
  17649. * }
  17650. */
  17651. var platform = 'none';
  17652. platform = 'vue2';
  17653. platform = 'weixin';
  17654. platform = 'mp';
  17655. var _default = platform;
  17656. exports.default = _default;
  17657. /***/ }),
  17658. /* 159 */
  17659. /*!***************************************!*\
  17660. !*** D:/yj-register/common/js/api.js ***!
  17661. \***************************************/
  17662. /*! no static exports found */
  17663. /***/ (function(module, exports, __webpack_require__) {
  17664. "use strict";
  17665. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  17666. Object.defineProperty(exports, "__esModule", {
  17667. value: true
  17668. });
  17669. exports.default = void 0;
  17670. var _service = _interopRequireDefault(__webpack_require__(/*! ../js/service.js */ 160));
  17671. // 引用网络请求中间件
  17672. var _default = {
  17673. service: _service.default
  17674. };
  17675. exports.default = _default;
  17676. /***/ }),
  17677. /* 160 */
  17678. /*!*******************************************!*\
  17679. !*** D:/yj-register/common/js/service.js ***!
  17680. \*******************************************/
  17681. /*! no static exports found */
  17682. /***/ (function(module, exports, __webpack_require__) {
  17683. "use strict";
  17684. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  17685. Object.defineProperty(exports, "__esModule", {
  17686. value: true
  17687. });
  17688. exports.default = void 0;
  17689. var _request = _interopRequireDefault(__webpack_require__(/*! ../js/request.js */ 161));
  17690. var _default = {
  17691. // get请求,获取手机验证码
  17692. getSmsCode: function getSmsCode(data) {
  17693. return (0, _request.default)({
  17694. url: '/v1/common/send-validate?phone=' + data.phone,
  17695. method: 'POST'
  17696. });
  17697. },
  17698. register: function register(data) {
  17699. return (0, _request.default)({
  17700. url: '/v1/user-register',
  17701. method: 'POST',
  17702. data: data
  17703. }, true);
  17704. },
  17705. versionUpgrade: function versionUpgrade() {
  17706. return (0, _request.default)({
  17707. url: '/v1/versionUpgrade',
  17708. method: 'GET'
  17709. });
  17710. }
  17711. };
  17712. exports.default = _default;
  17713. /***/ }),
  17714. /* 161 */
  17715. /*!*******************************************!*\
  17716. !*** D:/yj-register/common/js/request.js ***!
  17717. \*******************************************/
  17718. /*! no static exports found */
  17719. /***/ (function(module, exports, __webpack_require__) {
  17720. "use strict";
  17721. /* WEBPACK VAR INJECTION */(function(uni) {
  17722. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  17723. Object.defineProperty(exports, "__esModule", {
  17724. value: true
  17725. });
  17726. exports.default = void 0;
  17727. var _env = _interopRequireDefault(__webpack_require__(/*! ../js/env.js */ 162));
  17728. function service() {
  17729. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  17730. var flag = arguments.length > 1 ? arguments[1] : undefined;
  17731. options.url = "".concat(_env.default.baseUrl).concat(options.url);
  17732. // 判断本地是否存在token,如果存在则带上请求头
  17733. var access_token = uni.getStorageSync('accessToken');
  17734. var refresh_token = uni.getStorageSync('refresh_token');
  17735. if (flag) {
  17736. options.header = {
  17737. 'Authorization': 'Bearer ' + access_token,
  17738. 'content-type': 'application/x-www-form-urlencoded'
  17739. };
  17740. } else {
  17741. options.header = {
  17742. 'Authorization': 'Bearer ' + access_token,
  17743. 'content-type': 'application/json'
  17744. };
  17745. }
  17746. // resolved是返回成功数据,rejected返回错误数据
  17747. return new Promise(function (resolved, rejected) {
  17748. options.success = function (res) {
  17749. // 如果请求回来的状态码不是200则执行以下操作
  17750. if (res.data.code !== 200) {
  17751. // 非成功状态码弹窗
  17752. console.log('错误信息:+++', res.data.msg);
  17753. // 这里可以做一些状态码判断以及操作
  17754. if (res.data.code === 401) {
  17755. uni.showToast({
  17756. icon: 'none',
  17757. duration: 3000,
  17758. title: '登录过期,即将跳转登录页'
  17759. });
  17760. setTimeout(function () {
  17761. uni.navigateTo({
  17762. url: '/pages/login/login'
  17763. });
  17764. }, 3000);
  17765. } else {
  17766. uni.showToast({
  17767. icon: 'none',
  17768. duration: 3000,
  17769. title: res.data.msg || '系统繁忙,请重试!'
  17770. });
  17771. }
  17772. // 返回错误信息
  17773. rejected(res);
  17774. } else {
  17775. // 请求回来的状态码为200则返回内容
  17776. resolved(res);
  17777. }
  17778. };
  17779. options.fail = function (err) {
  17780. console.log('错误信息:+++', err);
  17781. // 请求失败弹窗
  17782. uni.showToast({
  17783. icon: 'none',
  17784. duration: 3000,
  17785. title: '服务器连接失败,请检查网络'
  17786. });
  17787. rejected(err);
  17788. };
  17789. uni.request(options);
  17790. });
  17791. }
  17792. var _default = service;
  17793. exports.default = _default;
  17794. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  17795. /***/ }),
  17796. /* 162 */
  17797. /*!***************************************!*\
  17798. !*** D:/yj-register/common/js/env.js ***!
  17799. \***************************************/
  17800. /*! no static exports found */
  17801. /***/ (function(module, exports, __webpack_require__) {
  17802. "use strict";
  17803. Object.defineProperty(exports, "__esModule", {
  17804. value: true
  17805. });
  17806. exports.default = void 0;
  17807. var baseUrl = "http://admin.yaojiuapp.com/api";
  17808. // 变量可自行添加修改
  17809. var _default = {
  17810. //存放变量的容器
  17811. appid: '__UNI__1EEA945',
  17812. baseUrl: baseUrl,
  17813. uploadUrl: '/v1/file/put-file'
  17814. };
  17815. exports.default = _default;
  17816. /***/ }),
  17817. /* 163 */,
  17818. /* 164 */,
  17819. /* 165 */,
  17820. /* 166 */,
  17821. /* 167 */,
  17822. /* 168 */,
  17823. /* 169 */,
  17824. /* 170 */,
  17825. /* 171 */,
  17826. /* 172 */,
  17827. /* 173 */,
  17828. /* 174 */,
  17829. /* 175 */,
  17830. /* 176 */
  17831. /*!***********************************************************************!*\
  17832. !*** D:/yj-register/node_modules/uview-ui/components/u-form/props.js ***!
  17833. \***********************************************************************/
  17834. /*! no static exports found */
  17835. /***/ (function(module, exports, __webpack_require__) {
  17836. "use strict";
  17837. /* WEBPACK VAR INJECTION */(function(uni) {
  17838. Object.defineProperty(exports, "__esModule", {
  17839. value: true
  17840. });
  17841. exports.default = void 0;
  17842. var _default = {
  17843. props: {
  17844. // 当前form的需要验证字段的集合
  17845. model: {
  17846. type: Object,
  17847. default: uni.$u.props.form.model
  17848. },
  17849. // 验证规则
  17850. rules: {
  17851. type: [Object, Function, Array],
  17852. default: uni.$u.props.form.rules
  17853. },
  17854. // 有错误时的提示方式,message-提示信息,toast-进行toast提示
  17855. // border-bottom-下边框呈现红色,none-无提示
  17856. errorType: {
  17857. type: String,
  17858. default: uni.$u.props.form.errorType
  17859. },
  17860. // 是否显示表单域的下划线边框
  17861. borderBottom: {
  17862. type: Boolean,
  17863. default: uni.$u.props.form.borderBottom
  17864. },
  17865. // label的位置,left-左边,top-上边
  17866. labelPosition: {
  17867. type: String,
  17868. default: uni.$u.props.form.labelPosition
  17869. },
  17870. // label的宽度,单位px
  17871. labelWidth: {
  17872. type: [String, Number],
  17873. default: uni.$u.props.form.labelWidth
  17874. },
  17875. // lable字体的对齐方式
  17876. labelAlign: {
  17877. type: String,
  17878. default: uni.$u.props.form.labelAlign
  17879. },
  17880. // lable的样式,对象形式
  17881. labelStyle: {
  17882. type: Object,
  17883. default: uni.$u.props.form.labelStyle
  17884. }
  17885. }
  17886. };
  17887. exports.default = _default;
  17888. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  17889. /***/ }),
  17890. /* 177 */,
  17891. /* 178 */,
  17892. /* 179 */,
  17893. /* 180 */,
  17894. /* 181 */,
  17895. /* 182 */
  17896. /*!****************************************************************************!*\
  17897. !*** D:/yj-register/node_modules/uview-ui/components/u-form-item/props.js ***!
  17898. \****************************************************************************/
  17899. /*! no static exports found */
  17900. /***/ (function(module, exports, __webpack_require__) {
  17901. "use strict";
  17902. /* WEBPACK VAR INJECTION */(function(uni) {
  17903. Object.defineProperty(exports, "__esModule", {
  17904. value: true
  17905. });
  17906. exports.default = void 0;
  17907. var _default = {
  17908. props: {
  17909. // input的label提示语
  17910. label: {
  17911. type: String,
  17912. default: uni.$u.props.formItem.label
  17913. },
  17914. // 绑定的值
  17915. prop: {
  17916. type: String,
  17917. default: uni.$u.props.formItem.prop
  17918. },
  17919. // 是否显示表单域的下划线边框
  17920. borderBottom: {
  17921. type: [String, Boolean],
  17922. default: uni.$u.props.formItem.borderBottom
  17923. },
  17924. // label的位置,left-左边,top-上边
  17925. labelPosition: {
  17926. type: String,
  17927. default: uni.$u.props.formItem.labelPosition
  17928. },
  17929. // label的宽度,单位px
  17930. labelWidth: {
  17931. type: [String, Number],
  17932. default: uni.$u.props.formItem.labelWidth
  17933. },
  17934. // 右侧图标
  17935. rightIcon: {
  17936. type: String,
  17937. default: uni.$u.props.formItem.rightIcon
  17938. },
  17939. // 左侧图标
  17940. leftIcon: {
  17941. type: String,
  17942. default: uni.$u.props.formItem.leftIcon
  17943. },
  17944. // 是否显示左边的必填星号,只作显示用,具体校验必填的逻辑,请在rules中配置
  17945. required: {
  17946. type: Boolean,
  17947. default: uni.$u.props.formItem.required
  17948. },
  17949. leftIconStyle: {
  17950. type: [String, Object],
  17951. default: uni.$u.props.formItem.leftIconStyle
  17952. }
  17953. }
  17954. };
  17955. exports.default = _default;
  17956. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  17957. /***/ }),
  17958. /* 183 */,
  17959. /* 184 */,
  17960. /* 185 */,
  17961. /* 186 */,
  17962. /* 187 */,
  17963. /* 188 */,
  17964. /* 189 */,
  17965. /* 190 */
  17966. /*!************************************************************************!*\
  17967. !*** D:/yj-register/node_modules/uview-ui/components/u-input/props.js ***!
  17968. \************************************************************************/
  17969. /*! no static exports found */
  17970. /***/ (function(module, exports, __webpack_require__) {
  17971. "use strict";
  17972. /* WEBPACK VAR INJECTION */(function(uni) {
  17973. Object.defineProperty(exports, "__esModule", {
  17974. value: true
  17975. });
  17976. exports.default = void 0;
  17977. var _default = {
  17978. props: {
  17979. // 输入的值
  17980. value: {
  17981. type: [String, Number],
  17982. default: uni.$u.props.input.value
  17983. },
  17984. // 输入框类型
  17985. // number-数字输入键盘,app-vue下可以输入浮点数,app-nvue和小程序平台下只能输入整数
  17986. // idcard-身份证输入键盘,微信、支付宝、百度、QQ小程序
  17987. // digit-带小数点的数字键盘,App的nvue页面、微信、支付宝、百度、头条、QQ小程序
  17988. // text-文本输入键盘
  17989. type: {
  17990. type: String,
  17991. default: uni.$u.props.input.type
  17992. },
  17993. // 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true,
  17994. // 兼容性:微信小程序、百度小程序、字节跳动小程序、QQ小程序
  17995. fixed: {
  17996. type: Boolean,
  17997. default: uni.$u.props.input.fixed
  17998. },
  17999. // 是否禁用输入框
  18000. disabled: {
  18001. type: Boolean,
  18002. default: uni.$u.props.input.disabled
  18003. },
  18004. // 禁用状态时的背景色
  18005. disabledColor: {
  18006. type: String,
  18007. default: uni.$u.props.input.disabledColor
  18008. },
  18009. // 是否显示清除控件
  18010. clearable: {
  18011. type: Boolean,
  18012. default: uni.$u.props.input.clearable
  18013. },
  18014. // 是否密码类型
  18015. password: {
  18016. type: Boolean,
  18017. default: uni.$u.props.input.password
  18018. },
  18019. // 最大输入长度,设置为 -1 的时候不限制最大长度
  18020. maxlength: {
  18021. type: [String, Number],
  18022. default: uni.$u.props.input.maxlength
  18023. },
  18024. // 输入框为空时的占位符
  18025. placeholder: {
  18026. type: String,
  18027. default: uni.$u.props.input.placeholder
  18028. },
  18029. // 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
  18030. placeholderClass: {
  18031. type: String,
  18032. default: uni.$u.props.input.placeholderClass
  18033. },
  18034. // 指定placeholder的样式
  18035. placeholderStyle: {
  18036. type: [String, Object],
  18037. default: uni.$u.props.input.placeholderStyle
  18038. },
  18039. // 是否显示输入字数统计,只在 type ="text"或type ="textarea"时有效
  18040. showWordLimit: {
  18041. type: Boolean,
  18042. default: uni.$u.props.input.showWordLimit
  18043. },
  18044. // 设置右下角按钮的文字,有效值:send|search|next|go|done,兼容性详见uni-app文档
  18045. // https://uniapp.dcloud.io/component/input
  18046. // https://uniapp.dcloud.io/component/textarea
  18047. confirmType: {
  18048. type: String,
  18049. default: uni.$u.props.input.confirmType
  18050. },
  18051. // 点击键盘右下角按钮时是否保持键盘不收起,H5无效
  18052. confirmHold: {
  18053. type: Boolean,
  18054. default: uni.$u.props.input.confirmHold
  18055. },
  18056. // focus时,点击页面的时候不收起键盘,微信小程序有效
  18057. holdKeyboard: {
  18058. type: Boolean,
  18059. default: uni.$u.props.input.holdKeyboard
  18060. },
  18061. // 自动获取焦点
  18062. // 在 H5 平台能否聚焦以及软键盘是否跟随弹出,取决于当前浏览器本身的实现。nvue 页面不支持,需使用组件的 focus()、blur() 方法控制焦点
  18063. focus: {
  18064. type: Boolean,
  18065. default: uni.$u.props.input.focus
  18066. },
  18067. // 键盘收起时,是否自动失去焦点,目前仅App3.0.0+有效
  18068. autoBlur: {
  18069. type: Boolean,
  18070. default: uni.$u.props.input.autoBlur
  18071. },
  18072. // 是否去掉 iOS 下的默认内边距,仅微信小程序,且type=textarea时有效
  18073. disableDefaultPadding: {
  18074. type: Boolean,
  18075. default: uni.$u.props.input.disableDefaultPadding
  18076. },
  18077. // 指定focus时光标的位置
  18078. cursor: {
  18079. type: [String, Number],
  18080. default: uni.$u.props.input.cursor
  18081. },
  18082. // 输入框聚焦时底部与键盘的距离
  18083. cursorSpacing: {
  18084. type: [String, Number],
  18085. default: uni.$u.props.input.cursorSpacing
  18086. },
  18087. // 光标起始位置,自动聚集时有效,需与selection-end搭配使用
  18088. selectionStart: {
  18089. type: [String, Number],
  18090. default: uni.$u.props.input.selectionStart
  18091. },
  18092. // 光标结束位置,自动聚集时有效,需与selection-start搭配使用
  18093. selectionEnd: {
  18094. type: [String, Number],
  18095. default: uni.$u.props.input.selectionEnd
  18096. },
  18097. // 键盘弹起时,是否自动上推页面
  18098. adjustPosition: {
  18099. type: Boolean,
  18100. default: uni.$u.props.input.adjustPosition
  18101. },
  18102. // 输入框内容对齐方式,可选值为:left|center|right
  18103. inputAlign: {
  18104. type: String,
  18105. default: uni.$u.props.input.inputAlign
  18106. },
  18107. // 输入框字体的大小
  18108. fontSize: {
  18109. type: [String, Number],
  18110. default: uni.$u.props.input.fontSize
  18111. },
  18112. // 输入框字体颜色
  18113. color: {
  18114. type: String,
  18115. default: uni.$u.props.input.color
  18116. },
  18117. // 输入框前置图标
  18118. prefixIcon: {
  18119. type: String,
  18120. default: uni.$u.props.input.prefixIcon
  18121. },
  18122. // 前置图标样式,对象或字符串
  18123. prefixIconStyle: {
  18124. type: [String, Object],
  18125. default: uni.$u.props.input.prefixIconStyle
  18126. },
  18127. // 输入框后置图标
  18128. suffixIcon: {
  18129. type: String,
  18130. default: uni.$u.props.input.suffixIcon
  18131. },
  18132. // 后置图标样式,对象或字符串
  18133. suffixIconStyle: {
  18134. type: [String, Object],
  18135. default: uni.$u.props.input.suffixIconStyle
  18136. },
  18137. // 边框类型,surround-四周边框,bottom-底部边框,none-无边框
  18138. border: {
  18139. type: String,
  18140. default: uni.$u.props.input.border
  18141. },
  18142. // 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会
  18143. readonly: {
  18144. type: Boolean,
  18145. default: uni.$u.props.input.readonly
  18146. },
  18147. // 输入框形状,circle-圆形,square-方形
  18148. shape: {
  18149. type: String,
  18150. default: uni.$u.props.input.shape
  18151. },
  18152. // 用于处理或者过滤输入框内容的方法
  18153. formatter: {
  18154. type: [Function, null],
  18155. default: uni.$u.props.input.formatter
  18156. },
  18157. // 是否忽略组件内对文本合成系统事件的处理
  18158. ignoreCompositionEvent: {
  18159. type: Boolean,
  18160. default: true
  18161. }
  18162. }
  18163. };
  18164. exports.default = _default;
  18165. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18166. /***/ }),
  18167. /* 191 */,
  18168. /* 192 */,
  18169. /* 193 */,
  18170. /* 194 */,
  18171. /* 195 */,
  18172. /* 196 */,
  18173. /* 197 */,
  18174. /* 198 */
  18175. /*!***********************************************************************!*\
  18176. !*** D:/yj-register/node_modules/uview-ui/components/u-icon/icons.js ***!
  18177. \***********************************************************************/
  18178. /*! no static exports found */
  18179. /***/ (function(module, exports, __webpack_require__) {
  18180. "use strict";
  18181. Object.defineProperty(exports, "__esModule", {
  18182. value: true
  18183. });
  18184. exports.default = void 0;
  18185. var _default = {
  18186. 'uicon-level': "\uE693",
  18187. 'uicon-column-line': "\uE68E",
  18188. 'uicon-checkbox-mark': "\uE807",
  18189. 'uicon-folder': "\uE7F5",
  18190. 'uicon-movie': "\uE7F6",
  18191. 'uicon-star-fill': "\uE669",
  18192. 'uicon-star': "\uE65F",
  18193. 'uicon-phone-fill': "\uE64F",
  18194. 'uicon-phone': "\uE622",
  18195. 'uicon-apple-fill': "\uE881",
  18196. 'uicon-chrome-circle-fill': "\uE885",
  18197. 'uicon-backspace': "\uE67B",
  18198. 'uicon-attach': "\uE632",
  18199. 'uicon-cut': "\uE948",
  18200. 'uicon-empty-car': "\uE602",
  18201. 'uicon-empty-coupon': "\uE682",
  18202. 'uicon-empty-address': "\uE646",
  18203. 'uicon-empty-favor': "\uE67C",
  18204. 'uicon-empty-permission': "\uE686",
  18205. 'uicon-empty-news': "\uE687",
  18206. 'uicon-empty-search': "\uE664",
  18207. 'uicon-github-circle-fill': "\uE887",
  18208. 'uicon-rmb': "\uE608",
  18209. 'uicon-person-delete-fill': "\uE66A",
  18210. 'uicon-reload': "\uE788",
  18211. 'uicon-order': "\uE68F",
  18212. 'uicon-server-man': "\uE6BC",
  18213. 'uicon-search': "\uE62A",
  18214. 'uicon-fingerprint': "\uE955",
  18215. 'uicon-more-dot-fill': "\uE630",
  18216. 'uicon-scan': "\uE662",
  18217. 'uicon-share-square': "\uE60B",
  18218. 'uicon-map': "\uE61D",
  18219. 'uicon-map-fill': "\uE64E",
  18220. 'uicon-tags': "\uE629",
  18221. 'uicon-tags-fill': "\uE651",
  18222. 'uicon-bookmark-fill': "\uE63B",
  18223. 'uicon-bookmark': "\uE60A",
  18224. 'uicon-eye': "\uE613",
  18225. 'uicon-eye-fill': "\uE641",
  18226. 'uicon-mic': "\uE64A",
  18227. 'uicon-mic-off': "\uE649",
  18228. 'uicon-calendar': "\uE66E",
  18229. 'uicon-calendar-fill': "\uE634",
  18230. 'uicon-trash': "\uE623",
  18231. 'uicon-trash-fill': "\uE658",
  18232. 'uicon-play-left': "\uE66D",
  18233. 'uicon-play-right': "\uE610",
  18234. 'uicon-minus': "\uE618",
  18235. 'uicon-plus': "\uE62D",
  18236. 'uicon-info': "\uE653",
  18237. 'uicon-info-circle': "\uE7D2",
  18238. 'uicon-info-circle-fill': "\uE64B",
  18239. 'uicon-question': "\uE715",
  18240. 'uicon-error': "\uE6D3",
  18241. 'uicon-close': "\uE685",
  18242. 'uicon-checkmark': "\uE6A8",
  18243. 'uicon-android-circle-fill': "\uE67E",
  18244. 'uicon-android-fill': "\uE67D",
  18245. 'uicon-ie': "\uE87B",
  18246. 'uicon-IE-circle-fill': "\uE889",
  18247. 'uicon-google': "\uE87A",
  18248. 'uicon-google-circle-fill': "\uE88A",
  18249. 'uicon-setting-fill': "\uE872",
  18250. 'uicon-setting': "\uE61F",
  18251. 'uicon-minus-square-fill': "\uE855",
  18252. 'uicon-plus-square-fill': "\uE856",
  18253. 'uicon-heart': "\uE7DF",
  18254. 'uicon-heart-fill': "\uE851",
  18255. 'uicon-camera': "\uE7D7",
  18256. 'uicon-camera-fill': "\uE870",
  18257. 'uicon-more-circle': "\uE63E",
  18258. 'uicon-more-circle-fill': "\uE645",
  18259. 'uicon-chat': "\uE620",
  18260. 'uicon-chat-fill': "\uE61E",
  18261. 'uicon-bag-fill': "\uE617",
  18262. 'uicon-bag': "\uE619",
  18263. 'uicon-error-circle-fill': "\uE62C",
  18264. 'uicon-error-circle': "\uE624",
  18265. 'uicon-close-circle': "\uE63F",
  18266. 'uicon-close-circle-fill': "\uE637",
  18267. 'uicon-checkmark-circle': "\uE63D",
  18268. 'uicon-checkmark-circle-fill': "\uE635",
  18269. 'uicon-question-circle-fill': "\uE666",
  18270. 'uicon-question-circle': "\uE625",
  18271. 'uicon-share': "\uE631",
  18272. 'uicon-share-fill': "\uE65E",
  18273. 'uicon-shopping-cart': "\uE621",
  18274. 'uicon-shopping-cart-fill': "\uE65D",
  18275. 'uicon-bell': "\uE609",
  18276. 'uicon-bell-fill': "\uE640",
  18277. 'uicon-list': "\uE650",
  18278. 'uicon-list-dot': "\uE616",
  18279. 'uicon-zhihu': "\uE6BA",
  18280. 'uicon-zhihu-circle-fill': "\uE709",
  18281. 'uicon-zhifubao': "\uE6B9",
  18282. 'uicon-zhifubao-circle-fill': "\uE6B8",
  18283. 'uicon-weixin-circle-fill': "\uE6B1",
  18284. 'uicon-weixin-fill': "\uE6B2",
  18285. 'uicon-twitter-circle-fill': "\uE6AB",
  18286. 'uicon-twitter': "\uE6AA",
  18287. 'uicon-taobao-circle-fill': "\uE6A7",
  18288. 'uicon-taobao': "\uE6A6",
  18289. 'uicon-weibo-circle-fill': "\uE6A5",
  18290. 'uicon-weibo': "\uE6A4",
  18291. 'uicon-qq-fill': "\uE6A1",
  18292. 'uicon-qq-circle-fill': "\uE6A0",
  18293. 'uicon-moments-circel-fill': "\uE69A",
  18294. 'uicon-moments': "\uE69B",
  18295. 'uicon-qzone': "\uE695",
  18296. 'uicon-qzone-circle-fill': "\uE696",
  18297. 'uicon-baidu-circle-fill': "\uE680",
  18298. 'uicon-baidu': "\uE681",
  18299. 'uicon-facebook-circle-fill': "\uE68A",
  18300. 'uicon-facebook': "\uE689",
  18301. 'uicon-car': "\uE60C",
  18302. 'uicon-car-fill': "\uE636",
  18303. 'uicon-warning-fill': "\uE64D",
  18304. 'uicon-warning': "\uE694",
  18305. 'uicon-clock-fill': "\uE638",
  18306. 'uicon-clock': "\uE60F",
  18307. 'uicon-edit-pen': "\uE612",
  18308. 'uicon-edit-pen-fill': "\uE66B",
  18309. 'uicon-email': "\uE611",
  18310. 'uicon-email-fill': "\uE642",
  18311. 'uicon-minus-circle': "\uE61B",
  18312. 'uicon-minus-circle-fill': "\uE652",
  18313. 'uicon-plus-circle': "\uE62E",
  18314. 'uicon-plus-circle-fill': "\uE661",
  18315. 'uicon-file-text': "\uE663",
  18316. 'uicon-file-text-fill': "\uE665",
  18317. 'uicon-pushpin': "\uE7E3",
  18318. 'uicon-pushpin-fill': "\uE86E",
  18319. 'uicon-grid': "\uE673",
  18320. 'uicon-grid-fill': "\uE678",
  18321. 'uicon-play-circle': "\uE647",
  18322. 'uicon-play-circle-fill': "\uE655",
  18323. 'uicon-pause-circle-fill': "\uE654",
  18324. 'uicon-pause': "\uE8FA",
  18325. 'uicon-pause-circle': "\uE643",
  18326. 'uicon-eye-off': "\uE648",
  18327. 'uicon-eye-off-outline': "\uE62B",
  18328. 'uicon-gift-fill': "\uE65C",
  18329. 'uicon-gift': "\uE65B",
  18330. 'uicon-rmb-circle-fill': "\uE657",
  18331. 'uicon-rmb-circle': "\uE677",
  18332. 'uicon-kefu-ermai': "\uE656",
  18333. 'uicon-server-fill': "\uE751",
  18334. 'uicon-coupon-fill': "\uE8C4",
  18335. 'uicon-coupon': "\uE8AE",
  18336. 'uicon-integral': "\uE704",
  18337. 'uicon-integral-fill': "\uE703",
  18338. 'uicon-home-fill': "\uE964",
  18339. 'uicon-home': "\uE965",
  18340. 'uicon-hourglass-half-fill': "\uE966",
  18341. 'uicon-hourglass': "\uE967",
  18342. 'uicon-account': "\uE628",
  18343. 'uicon-plus-people-fill': "\uE626",
  18344. 'uicon-minus-people-fill': "\uE615",
  18345. 'uicon-account-fill': "\uE614",
  18346. 'uicon-thumb-down-fill': "\uE726",
  18347. 'uicon-thumb-down': "\uE727",
  18348. 'uicon-thumb-up': "\uE733",
  18349. 'uicon-thumb-up-fill': "\uE72F",
  18350. 'uicon-lock-fill': "\uE979",
  18351. 'uicon-lock-open': "\uE973",
  18352. 'uicon-lock-opened-fill': "\uE974",
  18353. 'uicon-lock': "\uE97A",
  18354. 'uicon-red-packet-fill': "\uE690",
  18355. 'uicon-photo-fill': "\uE98B",
  18356. 'uicon-photo': "\uE98D",
  18357. 'uicon-volume-off-fill': "\uE659",
  18358. 'uicon-volume-off': "\uE644",
  18359. 'uicon-volume-fill': "\uE670",
  18360. 'uicon-volume': "\uE633",
  18361. 'uicon-red-packet': "\uE691",
  18362. 'uicon-download': "\uE63C",
  18363. 'uicon-arrow-up-fill': "\uE6B0",
  18364. 'uicon-arrow-down-fill': "\uE600",
  18365. 'uicon-play-left-fill': "\uE675",
  18366. 'uicon-play-right-fill': "\uE676",
  18367. 'uicon-rewind-left-fill': "\uE679",
  18368. 'uicon-rewind-right-fill': "\uE67A",
  18369. 'uicon-arrow-downward': "\uE604",
  18370. 'uicon-arrow-leftward': "\uE601",
  18371. 'uicon-arrow-rightward': "\uE603",
  18372. 'uicon-arrow-upward': "\uE607",
  18373. 'uicon-arrow-down': "\uE60D",
  18374. 'uicon-arrow-right': "\uE605",
  18375. 'uicon-arrow-left': "\uE60E",
  18376. 'uicon-arrow-up': "\uE606",
  18377. 'uicon-skip-back-left': "\uE674",
  18378. 'uicon-skip-forward-right': "\uE672",
  18379. 'uicon-rewind-right': "\uE66F",
  18380. 'uicon-rewind-left': "\uE671",
  18381. 'uicon-arrow-right-double': "\uE68D",
  18382. 'uicon-arrow-left-double': "\uE68C",
  18383. 'uicon-wifi-off': "\uE668",
  18384. 'uicon-wifi': "\uE667",
  18385. 'uicon-empty-data': "\uE62F",
  18386. 'uicon-empty-history': "\uE684",
  18387. 'uicon-empty-list': "\uE68B",
  18388. 'uicon-empty-page': "\uE627",
  18389. 'uicon-empty-order': "\uE639",
  18390. 'uicon-man': "\uE697",
  18391. 'uicon-woman': "\uE69C",
  18392. 'uicon-man-add': "\uE61C",
  18393. 'uicon-man-add-fill': "\uE64C",
  18394. 'uicon-man-delete': "\uE61A",
  18395. 'uicon-man-delete-fill': "\uE66A",
  18396. 'uicon-zh': "\uE70A",
  18397. 'uicon-en': "\uE692"
  18398. };
  18399. exports.default = _default;
  18400. /***/ }),
  18401. /* 199 */
  18402. /*!***********************************************************************!*\
  18403. !*** D:/yj-register/node_modules/uview-ui/components/u-icon/props.js ***!
  18404. \***********************************************************************/
  18405. /*! no static exports found */
  18406. /***/ (function(module, exports, __webpack_require__) {
  18407. "use strict";
  18408. /* WEBPACK VAR INJECTION */(function(uni) {
  18409. Object.defineProperty(exports, "__esModule", {
  18410. value: true
  18411. });
  18412. exports.default = void 0;
  18413. var _default = {
  18414. props: {
  18415. // 图标类名
  18416. name: {
  18417. type: String,
  18418. default: uni.$u.props.icon.name
  18419. },
  18420. // 图标颜色,可接受主题色
  18421. color: {
  18422. type: String,
  18423. default: uni.$u.props.icon.color
  18424. },
  18425. // 字体大小,单位px
  18426. size: {
  18427. type: [String, Number],
  18428. default: uni.$u.props.icon.size
  18429. },
  18430. // 是否显示粗体
  18431. bold: {
  18432. type: Boolean,
  18433. default: uni.$u.props.icon.bold
  18434. },
  18435. // 点击图标的时候传递事件出去的index(用于区分点击了哪一个)
  18436. index: {
  18437. type: [String, Number],
  18438. default: uni.$u.props.icon.index
  18439. },
  18440. // 触摸图标时的类名
  18441. hoverClass: {
  18442. type: String,
  18443. default: uni.$u.props.icon.hoverClass
  18444. },
  18445. // 自定义扩展前缀,方便用户扩展自己的图标库
  18446. customPrefix: {
  18447. type: String,
  18448. default: uni.$u.props.icon.customPrefix
  18449. },
  18450. // 图标右边或者下面的文字
  18451. label: {
  18452. type: [String, Number],
  18453. default: uni.$u.props.icon.label
  18454. },
  18455. // label的位置,只能右边或者下边
  18456. labelPos: {
  18457. type: String,
  18458. default: uni.$u.props.icon.labelPos
  18459. },
  18460. // label的大小
  18461. labelSize: {
  18462. type: [String, Number],
  18463. default: uni.$u.props.icon.labelSize
  18464. },
  18465. // label的颜色
  18466. labelColor: {
  18467. type: String,
  18468. default: uni.$u.props.icon.labelColor
  18469. },
  18470. // label与图标的距离
  18471. space: {
  18472. type: [String, Number],
  18473. default: uni.$u.props.icon.space
  18474. },
  18475. // 图片的mode
  18476. imgMode: {
  18477. type: String,
  18478. default: uni.$u.props.icon.imgMode
  18479. },
  18480. // 用于显示图片小图标时,图片的宽度
  18481. width: {
  18482. type: [String, Number],
  18483. default: uni.$u.props.icon.width
  18484. },
  18485. // 用于显示图片小图标时,图片的高度
  18486. height: {
  18487. type: [String, Number],
  18488. default: uni.$u.props.icon.height
  18489. },
  18490. // 用于解决某些情况下,让图标垂直居中的用途
  18491. top: {
  18492. type: [String, Number],
  18493. default: uni.$u.props.icon.top
  18494. },
  18495. // 是否阻止事件传播
  18496. stop: {
  18497. type: Boolean,
  18498. default: uni.$u.props.icon.stop
  18499. }
  18500. }
  18501. };
  18502. exports.default = _default;
  18503. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18504. /***/ }),
  18505. /* 200 */,
  18506. /* 201 */,
  18507. /* 202 */,
  18508. /* 203 */,
  18509. /* 204 */,
  18510. /* 205 */,
  18511. /* 206 */,
  18512. /* 207 */,
  18513. /* 208 */,
  18514. /* 209 */,
  18515. /* 210 */,
  18516. /* 211 */,
  18517. /* 212 */,
  18518. /* 213 */,
  18519. /* 214 */
  18520. /*!***********************************************************************!*\
  18521. !*** D:/yj-register/node_modules/uview-ui/components/u-code/props.js ***!
  18522. \***********************************************************************/
  18523. /*! no static exports found */
  18524. /***/ (function(module, exports, __webpack_require__) {
  18525. "use strict";
  18526. /* WEBPACK VAR INJECTION */(function(uni) {
  18527. Object.defineProperty(exports, "__esModule", {
  18528. value: true
  18529. });
  18530. exports.default = void 0;
  18531. var _default = {
  18532. props: {
  18533. // 倒计时总秒数
  18534. seconds: {
  18535. type: [String, Number],
  18536. default: uni.$u.props.code.seconds
  18537. },
  18538. // 尚未开始时提示
  18539. startText: {
  18540. type: String,
  18541. default: uni.$u.props.code.startText
  18542. },
  18543. // 正在倒计时中的提示
  18544. changeText: {
  18545. type: String,
  18546. default: uni.$u.props.code.changeText
  18547. },
  18548. // 倒计时结束时的提示
  18549. endText: {
  18550. type: String,
  18551. default: uni.$u.props.code.endText
  18552. },
  18553. // 是否在H5刷新或各端返回再进入时继续倒计时
  18554. keepRunning: {
  18555. type: Boolean,
  18556. default: uni.$u.props.code.keepRunning
  18557. },
  18558. // 为了区分多个页面,或者一个页面多个倒计时组件本地存储的继续倒计时变了
  18559. uniqueKey: {
  18560. type: String,
  18561. default: uni.$u.props.code.uniqueKey
  18562. }
  18563. }
  18564. };
  18565. exports.default = _default;
  18566. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18567. /***/ }),
  18568. /* 215 */,
  18569. /* 216 */,
  18570. /* 217 */,
  18571. /* 218 */,
  18572. /* 219 */,
  18573. /* 220 */,
  18574. /* 221 */,
  18575. /* 222 */,
  18576. /* 223 */,
  18577. /* 224 */,
  18578. /* 225 */,
  18579. /* 226 */,
  18580. /* 227 */,
  18581. /* 228 */,
  18582. /* 229 */
  18583. /*!*************************************************************************!*\
  18584. !*** D:/yj-register/node_modules/uview-ui/libs/util/async-validator.js ***!
  18585. \*************************************************************************/
  18586. /*! no static exports found */
  18587. /***/ (function(module, exports, __webpack_require__) {
  18588. "use strict";
  18589. /* WEBPACK VAR INJECTION */(function(process) {
  18590. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  18591. Object.defineProperty(exports, "__esModule", {
  18592. value: true
  18593. });
  18594. exports.default = void 0;
  18595. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  18596. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  18597. 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; }
  18598. 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; }
  18599. function _extends() {
  18600. _extends = Object.assign || function (target) {
  18601. for (var i = 1; i < arguments.length; i++) {
  18602. var source = arguments[i];
  18603. for (var key in source) {
  18604. if (Object.prototype.hasOwnProperty.call(source, key)) {
  18605. target[key] = source[key];
  18606. }
  18607. }
  18608. }
  18609. return target;
  18610. };
  18611. return _extends.apply(this, arguments);
  18612. }
  18613. /* eslint no-console:0 */
  18614. var formatRegExp = /%[sdj%]/g;
  18615. var warning = function warning() {}; // don't print warning message when in production env or node runtime
  18616. if (typeof process !== 'undefined' && Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"yaojiu","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}) && "development" !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {
  18617. warning = function warning(type, errors) {
  18618. if (typeof console !== 'undefined' && console.warn) {
  18619. if (errors.every(function (e) {
  18620. return typeof e === 'string';
  18621. })) {
  18622. console.warn(type, errors);
  18623. }
  18624. }
  18625. };
  18626. }
  18627. function convertFieldsError(errors) {
  18628. if (!errors || !errors.length) return null;
  18629. var fields = {};
  18630. errors.forEach(function (error) {
  18631. var field = error.field;
  18632. fields[field] = fields[field] || [];
  18633. fields[field].push(error);
  18634. });
  18635. return fields;
  18636. }
  18637. function format() {
  18638. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  18639. args[_key] = arguments[_key];
  18640. }
  18641. var i = 1;
  18642. var f = args[0];
  18643. var len = args.length;
  18644. if (typeof f === 'function') {
  18645. return f.apply(null, args.slice(1));
  18646. }
  18647. if (typeof f === 'string') {
  18648. var str = String(f).replace(formatRegExp, function (x) {
  18649. if (x === '%%') {
  18650. return '%';
  18651. }
  18652. if (i >= len) {
  18653. return x;
  18654. }
  18655. switch (x) {
  18656. case '%s':
  18657. return String(args[i++]);
  18658. case '%d':
  18659. return Number(args[i++]);
  18660. case '%j':
  18661. try {
  18662. return JSON.stringify(args[i++]);
  18663. } catch (_) {
  18664. return '[Circular]';
  18665. }
  18666. break;
  18667. default:
  18668. return x;
  18669. }
  18670. });
  18671. for (var arg = args[i]; i < len; arg = args[++i]) {
  18672. str += " ".concat(arg);
  18673. }
  18674. return str;
  18675. }
  18676. return f;
  18677. }
  18678. function isNativeStringType(type) {
  18679. return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern';
  18680. }
  18681. function isEmptyValue(value, type) {
  18682. if (value === undefined || value === null) {
  18683. return true;
  18684. }
  18685. if (type === 'array' && Array.isArray(value) && !value.length) {
  18686. return true;
  18687. }
  18688. if (isNativeStringType(type) && typeof value === 'string' && !value) {
  18689. return true;
  18690. }
  18691. return false;
  18692. }
  18693. function asyncParallelArray(arr, func, callback) {
  18694. var results = [];
  18695. var total = 0;
  18696. var arrLength = arr.length;
  18697. function count(errors) {
  18698. results.push.apply(results, errors);
  18699. total++;
  18700. if (total === arrLength) {
  18701. callback(results);
  18702. }
  18703. }
  18704. arr.forEach(function (a) {
  18705. func(a, count);
  18706. });
  18707. }
  18708. function asyncSerialArray(arr, func, callback) {
  18709. var index = 0;
  18710. var arrLength = arr.length;
  18711. function next(errors) {
  18712. if (errors && errors.length) {
  18713. callback(errors);
  18714. return;
  18715. }
  18716. var original = index;
  18717. index += 1;
  18718. if (original < arrLength) {
  18719. func(arr[original], next);
  18720. } else {
  18721. callback([]);
  18722. }
  18723. }
  18724. next([]);
  18725. }
  18726. function flattenObjArr(objArr) {
  18727. var ret = [];
  18728. Object.keys(objArr).forEach(function (k) {
  18729. ret.push.apply(ret, objArr[k]);
  18730. });
  18731. return ret;
  18732. }
  18733. function asyncMap(objArr, option, func, callback) {
  18734. if (option.first) {
  18735. var _pending = new Promise(function (resolve, reject) {
  18736. var next = function next(errors) {
  18737. callback(errors);
  18738. return errors.length ? reject({
  18739. errors: errors,
  18740. fields: convertFieldsError(errors)
  18741. }) : resolve();
  18742. };
  18743. var flattenArr = flattenObjArr(objArr);
  18744. asyncSerialArray(flattenArr, func, next);
  18745. });
  18746. _pending.catch(function (e) {
  18747. return e;
  18748. });
  18749. return _pending;
  18750. }
  18751. var firstFields = option.firstFields || [];
  18752. if (firstFields === true) {
  18753. firstFields = Object.keys(objArr);
  18754. }
  18755. var objArrKeys = Object.keys(objArr);
  18756. var objArrLength = objArrKeys.length;
  18757. var total = 0;
  18758. var results = [];
  18759. var pending = new Promise(function (resolve, reject) {
  18760. var next = function next(errors) {
  18761. results.push.apply(results, errors);
  18762. total++;
  18763. if (total === objArrLength) {
  18764. callback(results);
  18765. return results.length ? reject({
  18766. errors: results,
  18767. fields: convertFieldsError(results)
  18768. }) : resolve();
  18769. }
  18770. };
  18771. if (!objArrKeys.length) {
  18772. callback(results);
  18773. resolve();
  18774. }
  18775. objArrKeys.forEach(function (key) {
  18776. var arr = objArr[key];
  18777. if (firstFields.indexOf(key) !== -1) {
  18778. asyncSerialArray(arr, func, next);
  18779. } else {
  18780. asyncParallelArray(arr, func, next);
  18781. }
  18782. });
  18783. });
  18784. pending.catch(function (e) {
  18785. return e;
  18786. });
  18787. return pending;
  18788. }
  18789. function complementError(rule) {
  18790. return function (oe) {
  18791. if (oe && oe.message) {
  18792. oe.field = oe.field || rule.fullField;
  18793. return oe;
  18794. }
  18795. return {
  18796. message: typeof oe === 'function' ? oe() : oe,
  18797. field: oe.field || rule.fullField
  18798. };
  18799. };
  18800. }
  18801. function deepMerge(target, source) {
  18802. if (source) {
  18803. for (var s in source) {
  18804. if (source.hasOwnProperty(s)) {
  18805. var value = source[s];
  18806. if ((0, _typeof2.default)(value) === 'object' && (0, _typeof2.default)(target[s]) === 'object') {
  18807. target[s] = _objectSpread(_objectSpread({}, target[s]), value);
  18808. } else {
  18809. target[s] = value;
  18810. }
  18811. }
  18812. }
  18813. }
  18814. return target;
  18815. }
  18816. /**
  18817. * Rule for validating required fields.
  18818. *
  18819. * @param rule The validation rule.
  18820. * @param value The value of the field on the source object.
  18821. * @param source The source object being validated.
  18822. * @param errors An array of errors that this rule may add
  18823. * validation errors to.
  18824. * @param options The validation options.
  18825. * @param options.messages The validation messages.
  18826. */
  18827. function required(rule, value, source, errors, options, type) {
  18828. if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) {
  18829. errors.push(format(options.messages.required, rule.fullField));
  18830. }
  18831. }
  18832. /**
  18833. * Rule for validating whitespace.
  18834. *
  18835. * @param rule The validation rule.
  18836. * @param value The value of the field on the source object.
  18837. * @param source The source object being validated.
  18838. * @param errors An array of errors that this rule may add
  18839. * validation errors to.
  18840. * @param options The validation options.
  18841. * @param options.messages The validation messages.
  18842. */
  18843. function whitespace(rule, value, source, errors, options) {
  18844. if (/^\s+$/.test(value) || value === '') {
  18845. errors.push(format(options.messages.whitespace, rule.fullField));
  18846. }
  18847. }
  18848. /* eslint max-len:0 */
  18849. var pattern = {
  18850. // http://emailregex.com/
  18851. 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,}))$/,
  18852. 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'),
  18853. hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
  18854. };
  18855. var types = {
  18856. integer: function integer(value) {
  18857. return /^(-)?\d+$/.test(value);
  18858. },
  18859. float: function float(value) {
  18860. return /^(-)?\d+(\.\d+)?$/.test(value);
  18861. },
  18862. array: function array(value) {
  18863. return Array.isArray(value);
  18864. },
  18865. regexp: function regexp(value) {
  18866. if (value instanceof RegExp) {
  18867. return true;
  18868. }
  18869. try {
  18870. return !!new RegExp(value);
  18871. } catch (e) {
  18872. return false;
  18873. }
  18874. },
  18875. date: function date(value) {
  18876. return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function';
  18877. },
  18878. number: function number(value) {
  18879. if (isNaN(value)) {
  18880. return false;
  18881. }
  18882. // 修改源码,将字符串数值先转为数值
  18883. return typeof +value === 'number';
  18884. },
  18885. object: function object(value) {
  18886. return (0, _typeof2.default)(value) === 'object' && !types.array(value);
  18887. },
  18888. method: function method(value) {
  18889. return typeof value === 'function';
  18890. },
  18891. email: function email(value) {
  18892. return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
  18893. },
  18894. url: function url(value) {
  18895. return typeof value === 'string' && !!value.match(pattern.url);
  18896. },
  18897. hex: function hex(value) {
  18898. return typeof value === 'string' && !!value.match(pattern.hex);
  18899. }
  18900. };
  18901. /**
  18902. * Rule for validating the type of a value.
  18903. *
  18904. * @param rule The validation rule.
  18905. * @param value The value of the field on the source object.
  18906. * @param source The source object being validated.
  18907. * @param errors An array of errors that this rule may add
  18908. * validation errors to.
  18909. * @param options The validation options.
  18910. * @param options.messages The validation messages.
  18911. */
  18912. function type(rule, value, source, errors, options) {
  18913. if (rule.required && value === undefined) {
  18914. required(rule, value, source, errors, options);
  18915. return;
  18916. }
  18917. var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'];
  18918. var ruleType = rule.type;
  18919. if (custom.indexOf(ruleType) > -1) {
  18920. if (!types[ruleType](value)) {
  18921. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  18922. } // straight typeof check
  18923. } else if (ruleType && (0, _typeof2.default)(value) !== rule.type) {
  18924. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  18925. }
  18926. }
  18927. /**
  18928. * Rule for validating minimum and maximum allowed values.
  18929. *
  18930. * @param rule The validation rule.
  18931. * @param value The value of the field on the source object.
  18932. * @param source The source object being validated.
  18933. * @param errors An array of errors that this rule may add
  18934. * validation errors to.
  18935. * @param options The validation options.
  18936. * @param options.messages The validation messages.
  18937. */
  18938. function range(rule, value, source, errors, options) {
  18939. var len = typeof rule.len === 'number';
  18940. var min = typeof rule.min === 'number';
  18941. var max = typeof rule.max === 'number'; // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane)
  18942. var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
  18943. var val = value;
  18944. var key = null;
  18945. var num = typeof value === 'number';
  18946. var str = typeof value === 'string';
  18947. var arr = Array.isArray(value);
  18948. if (num) {
  18949. key = 'number';
  18950. } else if (str) {
  18951. key = 'string';
  18952. } else if (arr) {
  18953. key = 'array';
  18954. } // if the value is not of a supported type for range validation
  18955. // the validation rule rule should use the
  18956. // type property to also test for a particular type
  18957. if (!key) {
  18958. return false;
  18959. }
  18960. if (arr) {
  18961. val = value.length;
  18962. }
  18963. if (str) {
  18964. // 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3
  18965. val = value.replace(spRegexp, '_').length;
  18966. }
  18967. if (len) {
  18968. if (val !== rule.len) {
  18969. errors.push(format(options.messages[key].len, rule.fullField, rule.len));
  18970. }
  18971. } else if (min && !max && val < rule.min) {
  18972. errors.push(format(options.messages[key].min, rule.fullField, rule.min));
  18973. } else if (max && !min && val > rule.max) {
  18974. errors.push(format(options.messages[key].max, rule.fullField, rule.max));
  18975. } else if (min && max && (val < rule.min || val > rule.max)) {
  18976. errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max));
  18977. }
  18978. }
  18979. var ENUM = 'enum';
  18980. /**
  18981. * Rule for validating a value exists in an enumerable list.
  18982. *
  18983. * @param rule The validation rule.
  18984. * @param value The value of the field on the source object.
  18985. * @param source The source object being validated.
  18986. * @param errors An array of errors that this rule may add
  18987. * validation errors to.
  18988. * @param options The validation options.
  18989. * @param options.messages The validation messages.
  18990. */
  18991. function enumerable(rule, value, source, errors, options) {
  18992. rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : [];
  18993. if (rule[ENUM].indexOf(value) === -1) {
  18994. errors.push(format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', ')));
  18995. }
  18996. }
  18997. /**
  18998. * Rule for validating a regular expression pattern.
  18999. *
  19000. * @param rule The validation rule.
  19001. * @param value The value of the field on the source object.
  19002. * @param source The source object being validated.
  19003. * @param errors An array of errors that this rule may add
  19004. * validation errors to.
  19005. * @param options The validation options.
  19006. * @param options.messages The validation messages.
  19007. */
  19008. function pattern$1(rule, value, source, errors, options) {
  19009. if (rule.pattern) {
  19010. if (rule.pattern instanceof RegExp) {
  19011. // if a RegExp instance is passed, reset `lastIndex` in case its `global`
  19012. // flag is accidentally set to `true`, which in a validation scenario
  19013. // is not necessary and the result might be misleading
  19014. rule.pattern.lastIndex = 0;
  19015. if (!rule.pattern.test(value)) {
  19016. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  19017. }
  19018. } else if (typeof rule.pattern === 'string') {
  19019. var _pattern = new RegExp(rule.pattern);
  19020. if (!_pattern.test(value)) {
  19021. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  19022. }
  19023. }
  19024. }
  19025. }
  19026. var rules = {
  19027. required: required,
  19028. whitespace: whitespace,
  19029. type: type,
  19030. range: range,
  19031. enum: enumerable,
  19032. pattern: pattern$1
  19033. };
  19034. /**
  19035. * Performs validation for string types.
  19036. *
  19037. * @param rule The validation rule.
  19038. * @param value The value of the field on the source object.
  19039. * @param callback The callback function.
  19040. * @param source The source object being validated.
  19041. * @param options The validation options.
  19042. * @param options.messages The validation messages.
  19043. */
  19044. function string(rule, value, callback, source, options) {
  19045. var errors = [];
  19046. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19047. if (validate) {
  19048. if (isEmptyValue(value, 'string') && !rule.required) {
  19049. return callback();
  19050. }
  19051. rules.required(rule, value, source, errors, options, 'string');
  19052. if (!isEmptyValue(value, 'string')) {
  19053. rules.type(rule, value, source, errors, options);
  19054. rules.range(rule, value, source, errors, options);
  19055. rules.pattern(rule, value, source, errors, options);
  19056. if (rule.whitespace === true) {
  19057. rules.whitespace(rule, value, source, errors, options);
  19058. }
  19059. }
  19060. }
  19061. callback(errors);
  19062. }
  19063. /**
  19064. * Validates a function.
  19065. *
  19066. * @param rule The validation rule.
  19067. * @param value The value of the field on the source object.
  19068. * @param callback The callback function.
  19069. * @param source The source object being validated.
  19070. * @param options The validation options.
  19071. * @param options.messages The validation messages.
  19072. */
  19073. function method(rule, value, callback, source, options) {
  19074. var errors = [];
  19075. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19076. if (validate) {
  19077. if (isEmptyValue(value) && !rule.required) {
  19078. return callback();
  19079. }
  19080. rules.required(rule, value, source, errors, options);
  19081. if (value !== undefined) {
  19082. rules.type(rule, value, source, errors, options);
  19083. }
  19084. }
  19085. callback(errors);
  19086. }
  19087. /**
  19088. * Validates a number.
  19089. *
  19090. * @param rule The validation rule.
  19091. * @param value The value of the field on the source object.
  19092. * @param callback The callback function.
  19093. * @param source The source object being validated.
  19094. * @param options The validation options.
  19095. * @param options.messages The validation messages.
  19096. */
  19097. function number(rule, value, callback, source, options) {
  19098. var errors = [];
  19099. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19100. if (validate) {
  19101. if (value === '') {
  19102. value = undefined;
  19103. }
  19104. if (isEmptyValue(value) && !rule.required) {
  19105. return callback();
  19106. }
  19107. rules.required(rule, value, source, errors, options);
  19108. if (value !== undefined) {
  19109. rules.type(rule, value, source, errors, options);
  19110. rules.range(rule, value, source, errors, options);
  19111. }
  19112. }
  19113. callback(errors);
  19114. }
  19115. /**
  19116. * Validates a boolean.
  19117. *
  19118. * @param rule The validation rule.
  19119. * @param value The value of the field on the source object.
  19120. * @param callback The callback function.
  19121. * @param source The source object being validated.
  19122. * @param options The validation options.
  19123. * @param options.messages The validation messages.
  19124. */
  19125. function _boolean(rule, value, callback, source, options) {
  19126. var errors = [];
  19127. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19128. if (validate) {
  19129. if (isEmptyValue(value) && !rule.required) {
  19130. return callback();
  19131. }
  19132. rules.required(rule, value, source, errors, options);
  19133. if (value !== undefined) {
  19134. rules.type(rule, value, source, errors, options);
  19135. }
  19136. }
  19137. callback(errors);
  19138. }
  19139. /**
  19140. * Validates the regular expression type.
  19141. *
  19142. * @param rule The validation rule.
  19143. * @param value The value of the field on the source object.
  19144. * @param callback The callback function.
  19145. * @param source The source object being validated.
  19146. * @param options The validation options.
  19147. * @param options.messages The validation messages.
  19148. */
  19149. function regexp(rule, value, callback, source, options) {
  19150. var errors = [];
  19151. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19152. if (validate) {
  19153. if (isEmptyValue(value) && !rule.required) {
  19154. return callback();
  19155. }
  19156. rules.required(rule, value, source, errors, options);
  19157. if (!isEmptyValue(value)) {
  19158. rules.type(rule, value, source, errors, options);
  19159. }
  19160. }
  19161. callback(errors);
  19162. }
  19163. /**
  19164. * Validates a number is an integer.
  19165. *
  19166. * @param rule The validation rule.
  19167. * @param value The value of the field on the source object.
  19168. * @param callback The callback function.
  19169. * @param source The source object being validated.
  19170. * @param options The validation options.
  19171. * @param options.messages The validation messages.
  19172. */
  19173. function integer(rule, value, callback, source, options) {
  19174. var errors = [];
  19175. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19176. if (validate) {
  19177. if (isEmptyValue(value) && !rule.required) {
  19178. return callback();
  19179. }
  19180. rules.required(rule, value, source, errors, options);
  19181. if (value !== undefined) {
  19182. rules.type(rule, value, source, errors, options);
  19183. rules.range(rule, value, source, errors, options);
  19184. }
  19185. }
  19186. callback(errors);
  19187. }
  19188. /**
  19189. * Validates a number is a floating point number.
  19190. *
  19191. * @param rule The validation rule.
  19192. * @param value The value of the field on the source object.
  19193. * @param callback The callback function.
  19194. * @param source The source object being validated.
  19195. * @param options The validation options.
  19196. * @param options.messages The validation messages.
  19197. */
  19198. function floatFn(rule, value, callback, source, options) {
  19199. var errors = [];
  19200. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19201. if (validate) {
  19202. if (isEmptyValue(value) && !rule.required) {
  19203. return callback();
  19204. }
  19205. rules.required(rule, value, source, errors, options);
  19206. if (value !== undefined) {
  19207. rules.type(rule, value, source, errors, options);
  19208. rules.range(rule, value, source, errors, options);
  19209. }
  19210. }
  19211. callback(errors);
  19212. }
  19213. /**
  19214. * Validates an array.
  19215. *
  19216. * @param rule The validation rule.
  19217. * @param value The value of the field on the source object.
  19218. * @param callback The callback function.
  19219. * @param source The source object being validated.
  19220. * @param options The validation options.
  19221. * @param options.messages The validation messages.
  19222. */
  19223. function array(rule, value, callback, source, options) {
  19224. var errors = [];
  19225. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19226. if (validate) {
  19227. if (isEmptyValue(value, 'array') && !rule.required) {
  19228. return callback();
  19229. }
  19230. rules.required(rule, value, source, errors, options, 'array');
  19231. if (!isEmptyValue(value, 'array')) {
  19232. rules.type(rule, value, source, errors, options);
  19233. rules.range(rule, value, source, errors, options);
  19234. }
  19235. }
  19236. callback(errors);
  19237. }
  19238. /**
  19239. * Validates an object.
  19240. *
  19241. * @param rule The validation rule.
  19242. * @param value The value of the field on the source object.
  19243. * @param callback The callback function.
  19244. * @param source The source object being validated.
  19245. * @param options The validation options.
  19246. * @param options.messages The validation messages.
  19247. */
  19248. function object(rule, value, callback, source, options) {
  19249. var errors = [];
  19250. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19251. if (validate) {
  19252. if (isEmptyValue(value) && !rule.required) {
  19253. return callback();
  19254. }
  19255. rules.required(rule, value, source, errors, options);
  19256. if (value !== undefined) {
  19257. rules.type(rule, value, source, errors, options);
  19258. }
  19259. }
  19260. callback(errors);
  19261. }
  19262. var ENUM$1 = 'enum';
  19263. /**
  19264. * Validates an enumerable list.
  19265. *
  19266. * @param rule The validation rule.
  19267. * @param value The value of the field on the source object.
  19268. * @param callback The callback function.
  19269. * @param source The source object being validated.
  19270. * @param options The validation options.
  19271. * @param options.messages The validation messages.
  19272. */
  19273. function enumerable$1(rule, value, callback, source, options) {
  19274. var errors = [];
  19275. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19276. if (validate) {
  19277. if (isEmptyValue(value) && !rule.required) {
  19278. return callback();
  19279. }
  19280. rules.required(rule, value, source, errors, options);
  19281. if (value !== undefined) {
  19282. rules[ENUM$1](rule, value, source, errors, options);
  19283. }
  19284. }
  19285. callback(errors);
  19286. }
  19287. /**
  19288. * Validates a regular expression pattern.
  19289. *
  19290. * Performs validation when a rule only contains
  19291. * a pattern property but is not declared as a string type.
  19292. *
  19293. * @param rule The validation rule.
  19294. * @param value The value of the field on the source object.
  19295. * @param callback The callback function.
  19296. * @param source The source object being validated.
  19297. * @param options The validation options.
  19298. * @param options.messages The validation messages.
  19299. */
  19300. function pattern$2(rule, value, callback, source, options) {
  19301. var errors = [];
  19302. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19303. if (validate) {
  19304. if (isEmptyValue(value, 'string') && !rule.required) {
  19305. return callback();
  19306. }
  19307. rules.required(rule, value, source, errors, options);
  19308. if (!isEmptyValue(value, 'string')) {
  19309. rules.pattern(rule, value, source, errors, options);
  19310. }
  19311. }
  19312. callback(errors);
  19313. }
  19314. function date(rule, value, callback, source, options) {
  19315. var errors = [];
  19316. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19317. if (validate) {
  19318. if (isEmptyValue(value) && !rule.required) {
  19319. return callback();
  19320. }
  19321. rules.required(rule, value, source, errors, options);
  19322. if (!isEmptyValue(value)) {
  19323. var dateObject;
  19324. if (typeof value === 'number') {
  19325. dateObject = new Date(value);
  19326. } else {
  19327. dateObject = value;
  19328. }
  19329. rules.type(rule, dateObject, source, errors, options);
  19330. if (dateObject) {
  19331. rules.range(rule, dateObject.getTime(), source, errors, options);
  19332. }
  19333. }
  19334. }
  19335. callback(errors);
  19336. }
  19337. function required$1(rule, value, callback, source, options) {
  19338. var errors = [];
  19339. var type = Array.isArray(value) ? 'array' : (0, _typeof2.default)(value);
  19340. rules.required(rule, value, source, errors, options, type);
  19341. callback(errors);
  19342. }
  19343. function type$1(rule, value, callback, source, options) {
  19344. var ruleType = rule.type;
  19345. var errors = [];
  19346. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19347. if (validate) {
  19348. if (isEmptyValue(value, ruleType) && !rule.required) {
  19349. return callback();
  19350. }
  19351. rules.required(rule, value, source, errors, options, ruleType);
  19352. if (!isEmptyValue(value, ruleType)) {
  19353. rules.type(rule, value, source, errors, options);
  19354. }
  19355. }
  19356. callback(errors);
  19357. }
  19358. /**
  19359. * Performs validation for any type.
  19360. *
  19361. * @param rule The validation rule.
  19362. * @param value The value of the field on the source object.
  19363. * @param callback The callback function.
  19364. * @param source The source object being validated.
  19365. * @param options The validation options.
  19366. * @param options.messages The validation messages.
  19367. */
  19368. function any(rule, value, callback, source, options) {
  19369. var errors = [];
  19370. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  19371. if (validate) {
  19372. if (isEmptyValue(value) && !rule.required) {
  19373. return callback();
  19374. }
  19375. rules.required(rule, value, source, errors, options);
  19376. }
  19377. callback(errors);
  19378. }
  19379. var validators = {
  19380. string: string,
  19381. method: method,
  19382. number: number,
  19383. boolean: _boolean,
  19384. regexp: regexp,
  19385. integer: integer,
  19386. float: floatFn,
  19387. array: array,
  19388. object: object,
  19389. enum: enumerable$1,
  19390. pattern: pattern$2,
  19391. date: date,
  19392. url: type$1,
  19393. hex: type$1,
  19394. email: type$1,
  19395. required: required$1,
  19396. any: any
  19397. };
  19398. function newMessages() {
  19399. return {
  19400. default: 'Validation error on field %s',
  19401. required: '%s is required',
  19402. enum: '%s must be one of %s',
  19403. whitespace: '%s cannot be empty',
  19404. date: {
  19405. format: '%s date %s is invalid for format %s',
  19406. parse: '%s date could not be parsed, %s is invalid ',
  19407. invalid: '%s date %s is invalid'
  19408. },
  19409. types: {
  19410. string: '%s is not a %s',
  19411. method: '%s is not a %s (function)',
  19412. array: '%s is not an %s',
  19413. object: '%s is not an %s',
  19414. number: '%s is not a %s',
  19415. date: '%s is not a %s',
  19416. boolean: '%s is not a %s',
  19417. integer: '%s is not an %s',
  19418. float: '%s is not a %s',
  19419. regexp: '%s is not a valid %s',
  19420. email: '%s is not a valid %s',
  19421. url: '%s is not a valid %s',
  19422. hex: '%s is not a valid %s'
  19423. },
  19424. string: {
  19425. len: '%s must be exactly %s characters',
  19426. min: '%s must be at least %s characters',
  19427. max: '%s cannot be longer than %s characters',
  19428. range: '%s must be between %s and %s characters'
  19429. },
  19430. number: {
  19431. len: '%s must equal %s',
  19432. min: '%s cannot be less than %s',
  19433. max: '%s cannot be greater than %s',
  19434. range: '%s must be between %s and %s'
  19435. },
  19436. array: {
  19437. len: '%s must be exactly %s in length',
  19438. min: '%s cannot be less than %s in length',
  19439. max: '%s cannot be greater than %s in length',
  19440. range: '%s must be between %s and %s in length'
  19441. },
  19442. pattern: {
  19443. mismatch: '%s value %s does not match pattern %s'
  19444. },
  19445. clone: function clone() {
  19446. var cloned = JSON.parse(JSON.stringify(this));
  19447. cloned.clone = this.clone;
  19448. return cloned;
  19449. }
  19450. };
  19451. }
  19452. var messages = newMessages();
  19453. /**
  19454. * Encapsulates a validation schema.
  19455. *
  19456. * @param descriptor An object declaring validation rules
  19457. * for this schema.
  19458. */
  19459. function Schema(descriptor) {
  19460. this.rules = null;
  19461. this._messages = messages;
  19462. this.define(descriptor);
  19463. }
  19464. Schema.prototype = {
  19465. messages: function messages(_messages) {
  19466. if (_messages) {
  19467. this._messages = deepMerge(newMessages(), _messages);
  19468. }
  19469. return this._messages;
  19470. },
  19471. define: function define(rules) {
  19472. if (!rules) {
  19473. throw new Error('Cannot configure a schema with no rules');
  19474. }
  19475. if ((0, _typeof2.default)(rules) !== 'object' || Array.isArray(rules)) {
  19476. throw new Error('Rules must be an object');
  19477. }
  19478. this.rules = {};
  19479. var z;
  19480. var item;
  19481. for (z in rules) {
  19482. if (rules.hasOwnProperty(z)) {
  19483. item = rules[z];
  19484. this.rules[z] = Array.isArray(item) ? item : [item];
  19485. }
  19486. }
  19487. },
  19488. validate: function validate(source_, o, oc) {
  19489. var _this = this;
  19490. if (o === void 0) {
  19491. o = {};
  19492. }
  19493. if (oc === void 0) {
  19494. oc = function oc() {};
  19495. }
  19496. var source = source_;
  19497. var options = o;
  19498. var callback = oc;
  19499. if (typeof options === 'function') {
  19500. callback = options;
  19501. options = {};
  19502. }
  19503. if (!this.rules || Object.keys(this.rules).length === 0) {
  19504. if (callback) {
  19505. callback();
  19506. }
  19507. return Promise.resolve();
  19508. }
  19509. function complete(results) {
  19510. var i;
  19511. var errors = [];
  19512. var fields = {};
  19513. function add(e) {
  19514. if (Array.isArray(e)) {
  19515. var _errors;
  19516. errors = (_errors = errors).concat.apply(_errors, e);
  19517. } else {
  19518. errors.push(e);
  19519. }
  19520. }
  19521. for (i = 0; i < results.length; i++) {
  19522. add(results[i]);
  19523. }
  19524. if (!errors.length) {
  19525. errors = null;
  19526. fields = null;
  19527. } else {
  19528. fields = convertFieldsError(errors);
  19529. }
  19530. callback(errors, fields);
  19531. }
  19532. if (options.messages) {
  19533. var messages$1 = this.messages();
  19534. if (messages$1 === messages) {
  19535. messages$1 = newMessages();
  19536. }
  19537. deepMerge(messages$1, options.messages);
  19538. options.messages = messages$1;
  19539. } else {
  19540. options.messages = this.messages();
  19541. }
  19542. var arr;
  19543. var value;
  19544. var series = {};
  19545. var keys = options.keys || Object.keys(this.rules);
  19546. keys.forEach(function (z) {
  19547. arr = _this.rules[z];
  19548. value = source[z];
  19549. arr.forEach(function (r) {
  19550. var rule = r;
  19551. if (typeof rule.transform === 'function') {
  19552. if (source === source_) {
  19553. source = _objectSpread({}, source);
  19554. }
  19555. value = source[z] = rule.transform(value);
  19556. }
  19557. if (typeof rule === 'function') {
  19558. rule = {
  19559. validator: rule
  19560. };
  19561. } else {
  19562. rule = _objectSpread({}, rule);
  19563. }
  19564. rule.validator = _this.getValidationMethod(rule);
  19565. rule.field = z;
  19566. rule.fullField = rule.fullField || z;
  19567. rule.type = _this.getType(rule);
  19568. if (!rule.validator) {
  19569. return;
  19570. }
  19571. series[z] = series[z] || [];
  19572. series[z].push({
  19573. rule: rule,
  19574. value: value,
  19575. source: source,
  19576. field: z
  19577. });
  19578. });
  19579. });
  19580. var errorFields = {};
  19581. return asyncMap(series, options, function (data, doIt) {
  19582. var rule = data.rule;
  19583. var deep = (rule.type === 'object' || rule.type === 'array') && ((0, _typeof2.default)(rule.fields) === 'object' || (0, _typeof2.default)(rule.defaultField) === 'object');
  19584. deep = deep && (rule.required || !rule.required && data.value);
  19585. rule.field = data.field;
  19586. function addFullfield(key, schema) {
  19587. return _objectSpread(_objectSpread({}, schema), {}, {
  19588. fullField: "".concat(rule.fullField, ".").concat(key)
  19589. });
  19590. }
  19591. function cb(e) {
  19592. if (e === void 0) {
  19593. e = [];
  19594. }
  19595. var errors = e;
  19596. if (!Array.isArray(errors)) {
  19597. errors = [errors];
  19598. }
  19599. if (!options.suppressWarning && errors.length) {
  19600. Schema.warning('async-validator:', errors);
  19601. }
  19602. if (errors.length && rule.message) {
  19603. errors = [].concat(rule.message);
  19604. }
  19605. errors = errors.map(complementError(rule));
  19606. if (options.first && errors.length) {
  19607. errorFields[rule.field] = 1;
  19608. return doIt(errors);
  19609. }
  19610. if (!deep) {
  19611. doIt(errors);
  19612. } else {
  19613. // if rule is required but the target object
  19614. // does not exist fail at the rule level and don't
  19615. // go deeper
  19616. if (rule.required && !data.value) {
  19617. if (rule.message) {
  19618. errors = [].concat(rule.message).map(complementError(rule));
  19619. } else if (options.error) {
  19620. errors = [options.error(rule, format(options.messages.required, rule.field))];
  19621. } else {
  19622. errors = [];
  19623. }
  19624. return doIt(errors);
  19625. }
  19626. var fieldsSchema = {};
  19627. if (rule.defaultField) {
  19628. for (var k in data.value) {
  19629. if (data.value.hasOwnProperty(k)) {
  19630. fieldsSchema[k] = rule.defaultField;
  19631. }
  19632. }
  19633. }
  19634. fieldsSchema = _objectSpread(_objectSpread({}, fieldsSchema), data.rule.fields);
  19635. for (var f in fieldsSchema) {
  19636. if (fieldsSchema.hasOwnProperty(f)) {
  19637. var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]];
  19638. fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f));
  19639. }
  19640. }
  19641. var schema = new Schema(fieldsSchema);
  19642. schema.messages(options.messages);
  19643. if (data.rule.options) {
  19644. data.rule.options.messages = options.messages;
  19645. data.rule.options.error = options.error;
  19646. }
  19647. schema.validate(data.value, data.rule.options || options, function (errs) {
  19648. var finalErrors = [];
  19649. if (errors && errors.length) {
  19650. finalErrors.push.apply(finalErrors, errors);
  19651. }
  19652. if (errs && errs.length) {
  19653. finalErrors.push.apply(finalErrors, errs);
  19654. }
  19655. doIt(finalErrors.length ? finalErrors : null);
  19656. });
  19657. }
  19658. }
  19659. var res;
  19660. if (rule.asyncValidator) {
  19661. res = rule.asyncValidator(rule, data.value, cb, data.source, options);
  19662. } else if (rule.validator) {
  19663. res = rule.validator(rule, data.value, cb, data.source, options);
  19664. if (res === true) {
  19665. cb();
  19666. } else if (res === false) {
  19667. cb(rule.message || "".concat(rule.field, " fails"));
  19668. } else if (res instanceof Array) {
  19669. cb(res);
  19670. } else if (res instanceof Error) {
  19671. cb(res.message);
  19672. }
  19673. }
  19674. if (res && res.then) {
  19675. res.then(function () {
  19676. return cb();
  19677. }, function (e) {
  19678. return cb(e);
  19679. });
  19680. }
  19681. }, function (results) {
  19682. complete(results);
  19683. });
  19684. },
  19685. getType: function getType(rule) {
  19686. if (rule.type === undefined && rule.pattern instanceof RegExp) {
  19687. rule.type = 'pattern';
  19688. }
  19689. if (typeof rule.validator !== 'function' && rule.type && !validators.hasOwnProperty(rule.type)) {
  19690. throw new Error(format('Unknown rule type %s', rule.type));
  19691. }
  19692. return rule.type || 'string';
  19693. },
  19694. getValidationMethod: function getValidationMethod(rule) {
  19695. if (typeof rule.validator === 'function') {
  19696. return rule.validator;
  19697. }
  19698. var keys = Object.keys(rule);
  19699. var messageIndex = keys.indexOf('message');
  19700. if (messageIndex !== -1) {
  19701. keys.splice(messageIndex, 1);
  19702. }
  19703. if (keys.length === 1 && keys[0] === 'required') {
  19704. return validators.required;
  19705. }
  19706. return validators[this.getType(rule)] || false;
  19707. }
  19708. };
  19709. Schema.register = function register(type, validator) {
  19710. if (typeof validator !== 'function') {
  19711. throw new Error('Cannot register a validator by type, validator is not a function');
  19712. }
  19713. validators[type] = validator;
  19714. };
  19715. Schema.warning = warning;
  19716. Schema.messages = messages;
  19717. var _default = Schema; // # sourceMappingURL=index.js.map
  19718. exports.default = _default;
  19719. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../HBuilderX/plugins/uniapp-cli/node_modules/node-libs-browser/mock/process.js */ 230)))
  19720. /***/ }),
  19721. /* 230 */
  19722. /*!********************************************************!*\
  19723. !*** ./node_modules/node-libs-browser/mock/process.js ***!
  19724. \********************************************************/
  19725. /*! no static exports found */
  19726. /***/ (function(module, exports, __webpack_require__) {
  19727. exports.nextTick = function nextTick(fn) {
  19728. var args = Array.prototype.slice.call(arguments);
  19729. args.shift();
  19730. setTimeout(function () {
  19731. fn.apply(null, args);
  19732. }, 0);
  19733. };
  19734. exports.platform = exports.arch =
  19735. exports.execPath = exports.title = 'browser';
  19736. exports.pid = 1;
  19737. exports.browser = true;
  19738. exports.env = {};
  19739. exports.argv = [];
  19740. exports.binding = function (name) {
  19741. throw new Error('No such module. (Possibly not yet loaded)')
  19742. };
  19743. (function () {
  19744. var cwd = '/';
  19745. var path;
  19746. exports.cwd = function () { return cwd };
  19747. exports.chdir = function (dir) {
  19748. if (!path) path = __webpack_require__(/*! path */ 231);
  19749. cwd = path.resolve(dir, cwd);
  19750. };
  19751. })();
  19752. exports.exit = exports.kill =
  19753. exports.umask = exports.dlopen =
  19754. exports.uptime = exports.memoryUsage =
  19755. exports.uvCounters = function() {};
  19756. exports.features = {};
  19757. /***/ }),
  19758. /* 231 */
  19759. /*!***********************************************!*\
  19760. !*** ./node_modules/path-browserify/index.js ***!
  19761. \***********************************************/
  19762. /*! no static exports found */
  19763. /***/ (function(module, exports, __webpack_require__) {
  19764. /* WEBPACK VAR INJECTION */(function(process) {// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
  19765. // backported and transplited with Babel, with backwards-compat fixes
  19766. // Copyright Joyent, Inc. and other Node contributors.
  19767. //
  19768. // Permission is hereby granted, free of charge, to any person obtaining a
  19769. // copy of this software and associated documentation files (the
  19770. // "Software"), to deal in the Software without restriction, including
  19771. // without limitation the rights to use, copy, modify, merge, publish,
  19772. // distribute, sublicense, and/or sell copies of the Software, and to permit
  19773. // persons to whom the Software is furnished to do so, subject to the
  19774. // following conditions:
  19775. //
  19776. // The above copyright notice and this permission notice shall be included
  19777. // in all copies or substantial portions of the Software.
  19778. //
  19779. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  19780. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  19781. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  19782. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  19783. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  19784. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  19785. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  19786. // resolves . and .. elements in a path array with directory names there
  19787. // must be no slashes, empty elements, or device names (c:\) in the array
  19788. // (so also no leading and trailing slashes - it does not distinguish
  19789. // relative and absolute paths)
  19790. function normalizeArray(parts, allowAboveRoot) {
  19791. // if the path tries to go above the root, `up` ends up > 0
  19792. var up = 0;
  19793. for (var i = parts.length - 1; i >= 0; i--) {
  19794. var last = parts[i];
  19795. if (last === '.') {
  19796. parts.splice(i, 1);
  19797. } else if (last === '..') {
  19798. parts.splice(i, 1);
  19799. up++;
  19800. } else if (up) {
  19801. parts.splice(i, 1);
  19802. up--;
  19803. }
  19804. }
  19805. // if the path is allowed to go above the root, restore leading ..s
  19806. if (allowAboveRoot) {
  19807. for (; up--; up) {
  19808. parts.unshift('..');
  19809. }
  19810. }
  19811. return parts;
  19812. }
  19813. // path.resolve([from ...], to)
  19814. // posix version
  19815. exports.resolve = function() {
  19816. var resolvedPath = '',
  19817. resolvedAbsolute = false;
  19818. for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
  19819. var path = (i >= 0) ? arguments[i] : process.cwd();
  19820. // Skip empty and invalid entries
  19821. if (typeof path !== 'string') {
  19822. throw new TypeError('Arguments to path.resolve must be strings');
  19823. } else if (!path) {
  19824. continue;
  19825. }
  19826. resolvedPath = path + '/' + resolvedPath;
  19827. resolvedAbsolute = path.charAt(0) === '/';
  19828. }
  19829. // At this point the path should be resolved to a full absolute path, but
  19830. // handle relative paths to be safe (might happen when process.cwd() fails)
  19831. // Normalize the path
  19832. resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
  19833. return !!p;
  19834. }), !resolvedAbsolute).join('/');
  19835. return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
  19836. };
  19837. // path.normalize(path)
  19838. // posix version
  19839. exports.normalize = function(path) {
  19840. var isAbsolute = exports.isAbsolute(path),
  19841. trailingSlash = substr(path, -1) === '/';
  19842. // Normalize the path
  19843. path = normalizeArray(filter(path.split('/'), function(p) {
  19844. return !!p;
  19845. }), !isAbsolute).join('/');
  19846. if (!path && !isAbsolute) {
  19847. path = '.';
  19848. }
  19849. if (path && trailingSlash) {
  19850. path += '/';
  19851. }
  19852. return (isAbsolute ? '/' : '') + path;
  19853. };
  19854. // posix version
  19855. exports.isAbsolute = function(path) {
  19856. return path.charAt(0) === '/';
  19857. };
  19858. // posix version
  19859. exports.join = function() {
  19860. var paths = Array.prototype.slice.call(arguments, 0);
  19861. return exports.normalize(filter(paths, function(p, index) {
  19862. if (typeof p !== 'string') {
  19863. throw new TypeError('Arguments to path.join must be strings');
  19864. }
  19865. return p;
  19866. }).join('/'));
  19867. };
  19868. // path.relative(from, to)
  19869. // posix version
  19870. exports.relative = function(from, to) {
  19871. from = exports.resolve(from).substr(1);
  19872. to = exports.resolve(to).substr(1);
  19873. function trim(arr) {
  19874. var start = 0;
  19875. for (; start < arr.length; start++) {
  19876. if (arr[start] !== '') break;
  19877. }
  19878. var end = arr.length - 1;
  19879. for (; end >= 0; end--) {
  19880. if (arr[end] !== '') break;
  19881. }
  19882. if (start > end) return [];
  19883. return arr.slice(start, end - start + 1);
  19884. }
  19885. var fromParts = trim(from.split('/'));
  19886. var toParts = trim(to.split('/'));
  19887. var length = Math.min(fromParts.length, toParts.length);
  19888. var samePartsLength = length;
  19889. for (var i = 0; i < length; i++) {
  19890. if (fromParts[i] !== toParts[i]) {
  19891. samePartsLength = i;
  19892. break;
  19893. }
  19894. }
  19895. var outputParts = [];
  19896. for (var i = samePartsLength; i < fromParts.length; i++) {
  19897. outputParts.push('..');
  19898. }
  19899. outputParts = outputParts.concat(toParts.slice(samePartsLength));
  19900. return outputParts.join('/');
  19901. };
  19902. exports.sep = '/';
  19903. exports.delimiter = ':';
  19904. exports.dirname = function (path) {
  19905. if (typeof path !== 'string') path = path + '';
  19906. if (path.length === 0) return '.';
  19907. var code = path.charCodeAt(0);
  19908. var hasRoot = code === 47 /*/*/;
  19909. var end = -1;
  19910. var matchedSlash = true;
  19911. for (var i = path.length - 1; i >= 1; --i) {
  19912. code = path.charCodeAt(i);
  19913. if (code === 47 /*/*/) {
  19914. if (!matchedSlash) {
  19915. end = i;
  19916. break;
  19917. }
  19918. } else {
  19919. // We saw the first non-path separator
  19920. matchedSlash = false;
  19921. }
  19922. }
  19923. if (end === -1) return hasRoot ? '/' : '.';
  19924. if (hasRoot && end === 1) {
  19925. // return '//';
  19926. // Backwards-compat fix:
  19927. return '/';
  19928. }
  19929. return path.slice(0, end);
  19930. };
  19931. function basename(path) {
  19932. if (typeof path !== 'string') path = path + '';
  19933. var start = 0;
  19934. var end = -1;
  19935. var matchedSlash = true;
  19936. var i;
  19937. for (i = path.length - 1; i >= 0; --i) {
  19938. if (path.charCodeAt(i) === 47 /*/*/) {
  19939. // If we reached a path separator that was not part of a set of path
  19940. // separators at the end of the string, stop now
  19941. if (!matchedSlash) {
  19942. start = i + 1;
  19943. break;
  19944. }
  19945. } else if (end === -1) {
  19946. // We saw the first non-path separator, mark this as the end of our
  19947. // path component
  19948. matchedSlash = false;
  19949. end = i + 1;
  19950. }
  19951. }
  19952. if (end === -1) return '';
  19953. return path.slice(start, end);
  19954. }
  19955. // Uses a mixed approach for backwards-compatibility, as ext behavior changed
  19956. // in new Node.js versions, so only basename() above is backported here
  19957. exports.basename = function (path, ext) {
  19958. var f = basename(path);
  19959. if (ext && f.substr(-1 * ext.length) === ext) {
  19960. f = f.substr(0, f.length - ext.length);
  19961. }
  19962. return f;
  19963. };
  19964. exports.extname = function (path) {
  19965. if (typeof path !== 'string') path = path + '';
  19966. var startDot = -1;
  19967. var startPart = 0;
  19968. var end = -1;
  19969. var matchedSlash = true;
  19970. // Track the state of characters (if any) we see before our first dot and
  19971. // after any path separator we find
  19972. var preDotState = 0;
  19973. for (var i = path.length - 1; i >= 0; --i) {
  19974. var code = path.charCodeAt(i);
  19975. if (code === 47 /*/*/) {
  19976. // If we reached a path separator that was not part of a set of path
  19977. // separators at the end of the string, stop now
  19978. if (!matchedSlash) {
  19979. startPart = i + 1;
  19980. break;
  19981. }
  19982. continue;
  19983. }
  19984. if (end === -1) {
  19985. // We saw the first non-path separator, mark this as the end of our
  19986. // extension
  19987. matchedSlash = false;
  19988. end = i + 1;
  19989. }
  19990. if (code === 46 /*.*/) {
  19991. // If this is our first dot, mark it as the start of our extension
  19992. if (startDot === -1)
  19993. startDot = i;
  19994. else if (preDotState !== 1)
  19995. preDotState = 1;
  19996. } else if (startDot !== -1) {
  19997. // We saw a non-dot and non-path separator before our dot, so we should
  19998. // have a good chance at having a non-empty extension
  19999. preDotState = -1;
  20000. }
  20001. }
  20002. if (startDot === -1 || end === -1 ||
  20003. // We saw a non-dot character immediately before the dot
  20004. preDotState === 0 ||
  20005. // The (right-most) trimmed path component is exactly '..'
  20006. preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
  20007. return '';
  20008. }
  20009. return path.slice(startDot, end);
  20010. };
  20011. function filter (xs, f) {
  20012. if (xs.filter) return xs.filter(f);
  20013. var res = [];
  20014. for (var i = 0; i < xs.length; i++) {
  20015. if (f(xs[i], i, xs)) res.push(xs[i]);
  20016. }
  20017. return res;
  20018. }
  20019. // String.prototype.substr - negative index don't work in IE8
  20020. var substr = 'ab'.substr(-1) === 'b'
  20021. ? function (str, start, len) { return str.substr(start, len) }
  20022. : function (str, start, len) {
  20023. if (start < 0) start = str.length + start;
  20024. return str.substr(start, len);
  20025. }
  20026. ;
  20027. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ 230)))
  20028. /***/ }),
  20029. /* 232 */,
  20030. /* 233 */,
  20031. /* 234 */,
  20032. /* 235 */,
  20033. /* 236 */,
  20034. /* 237 */
  20035. /*!***********************************************************************!*\
  20036. !*** D:/yj-register/node_modules/uview-ui/components/u-line/props.js ***!
  20037. \***********************************************************************/
  20038. /*! no static exports found */
  20039. /***/ (function(module, exports, __webpack_require__) {
  20040. "use strict";
  20041. /* WEBPACK VAR INJECTION */(function(uni) {
  20042. Object.defineProperty(exports, "__esModule", {
  20043. value: true
  20044. });
  20045. exports.default = void 0;
  20046. var _default = {
  20047. props: {
  20048. color: {
  20049. type: String,
  20050. default: uni.$u.props.line.color
  20051. },
  20052. // 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等
  20053. length: {
  20054. type: [String, Number],
  20055. default: uni.$u.props.line.length
  20056. },
  20057. // 线条方向,col-竖向,row-横向
  20058. direction: {
  20059. type: String,
  20060. default: uni.$u.props.line.direction
  20061. },
  20062. // 是否显示细边框
  20063. hairline: {
  20064. type: Boolean,
  20065. default: uni.$u.props.line.hairline
  20066. },
  20067. // 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px"
  20068. margin: {
  20069. type: [String, Number],
  20070. default: uni.$u.props.line.margin
  20071. },
  20072. // 是否虚线,true-虚线,false-实线
  20073. dashed: {
  20074. type: Boolean,
  20075. default: uni.$u.props.line.dashed
  20076. }
  20077. }
  20078. };
  20079. exports.default = _default;
  20080. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20081. /***/ }),
  20082. /* 238 */,
  20083. /* 239 */,
  20084. /* 240 */,
  20085. /* 241 */,
  20086. /* 242 */,
  20087. /* 243 */,
  20088. /* 244 */,
  20089. /* 245 */
  20090. /*!**********************************************************************************************!*\
  20091. !*** D:/yj-register/uni_modules/uni-transition/components/uni-transition/createAnimation.js ***!
  20092. \**********************************************************************************************/
  20093. /*! no static exports found */
  20094. /***/ (function(module, exports, __webpack_require__) {
  20095. "use strict";
  20096. /* WEBPACK VAR INJECTION */(function(uni) {
  20097. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20098. Object.defineProperty(exports, "__esModule", {
  20099. value: true
  20100. });
  20101. exports.createAnimation = createAnimation;
  20102. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  20103. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  20104. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  20105. 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; }
  20106. 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; }
  20107. // const defaultOption = {
  20108. // duration: 300,
  20109. // timingFunction: 'linear',
  20110. // delay: 0,
  20111. // transformOrigin: '50% 50% 0'
  20112. // }
  20113. var MPAnimation = /*#__PURE__*/function () {
  20114. function MPAnimation(options, _this) {
  20115. (0, _classCallCheck2.default)(this, MPAnimation);
  20116. this.options = options;
  20117. // 在iOS10+QQ小程序平台下,传给原生的对象一定是个普通对象而不是Proxy对象,否则会报parameter should be Object instead of ProxyObject的错误
  20118. this.animation = uni.createAnimation(_objectSpread({}, options));
  20119. this.currentStepAnimates = {};
  20120. this.next = 0;
  20121. this.$ = _this;
  20122. }
  20123. (0, _createClass2.default)(MPAnimation, [{
  20124. key: "_nvuePushAnimates",
  20125. value: function _nvuePushAnimates(type, args) {
  20126. var aniObj = this.currentStepAnimates[this.next];
  20127. var styles = {};
  20128. if (!aniObj) {
  20129. styles = {
  20130. styles: {},
  20131. config: {}
  20132. };
  20133. } else {
  20134. styles = aniObj;
  20135. }
  20136. if (animateTypes1.includes(type)) {
  20137. if (!styles.styles.transform) {
  20138. styles.styles.transform = '';
  20139. }
  20140. var unit = '';
  20141. if (type === 'rotate') {
  20142. unit = 'deg';
  20143. }
  20144. styles.styles.transform += "".concat(type, "(").concat(args + unit, ") ");
  20145. } else {
  20146. styles.styles[type] = "".concat(args);
  20147. }
  20148. this.currentStepAnimates[this.next] = styles;
  20149. }
  20150. }, {
  20151. key: "_animateRun",
  20152. value: function _animateRun() {
  20153. var styles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  20154. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  20155. var ref = this.$.$refs['ani'].ref;
  20156. if (!ref) return;
  20157. return new Promise(function (resolve, reject) {
  20158. nvueAnimation.transition(ref, _objectSpread({
  20159. styles: styles
  20160. }, config), function (res) {
  20161. resolve();
  20162. });
  20163. });
  20164. }
  20165. }, {
  20166. key: "_nvueNextAnimate",
  20167. value: function _nvueNextAnimate(animates) {
  20168. var _this2 = this;
  20169. var step = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  20170. var fn = arguments.length > 2 ? arguments[2] : undefined;
  20171. var obj = animates[step];
  20172. if (obj) {
  20173. var styles = obj.styles,
  20174. config = obj.config;
  20175. this._animateRun(styles, config).then(function () {
  20176. step += 1;
  20177. _this2._nvueNextAnimate(animates, step, fn);
  20178. });
  20179. } else {
  20180. this.currentStepAnimates = {};
  20181. typeof fn === 'function' && fn();
  20182. this.isEnd = true;
  20183. }
  20184. }
  20185. }, {
  20186. key: "step",
  20187. value: function step() {
  20188. var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  20189. this.animation.step(config);
  20190. return this;
  20191. }
  20192. }, {
  20193. key: "run",
  20194. value: function run(fn) {
  20195. this.$.animationData = this.animation.export();
  20196. this.$.timer = setTimeout(function () {
  20197. typeof fn === 'function' && fn();
  20198. }, this.$.durationTime);
  20199. }
  20200. }]);
  20201. return MPAnimation;
  20202. }();
  20203. var animateTypes1 = ['matrix', 'matrix3d', 'rotate', 'rotate3d', 'rotateX', 'rotateY', 'rotateZ', 'scale', 'scale3d', 'scaleX', 'scaleY', 'scaleZ', 'skew', 'skewX', 'skewY', 'translate', 'translate3d', 'translateX', 'translateY', 'translateZ'];
  20204. var animateTypes2 = ['opacity', 'backgroundColor'];
  20205. var animateTypes3 = ['width', 'height', 'left', 'right', 'top', 'bottom'];
  20206. animateTypes1.concat(animateTypes2, animateTypes3).forEach(function (type) {
  20207. MPAnimation.prototype[type] = function () {
  20208. var _this$animation;
  20209. (_this$animation = this.animation)[type].apply(_this$animation, arguments);
  20210. return this;
  20211. };
  20212. });
  20213. function createAnimation(option, _this) {
  20214. if (!_this) return;
  20215. clearTimeout(_this.timer);
  20216. return new MPAnimation(option, _this);
  20217. }
  20218. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20219. /***/ })
  20220. ]]);
  20221. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map