vendor.js 714 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491
  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__40A92BD",
  754. appName: "hotelHomestay",
  755. appVersion: "1.0.0",
  756. appVersionCode: "100",
  757. appLanguage: getAppLanguage(hostLanguage),
  758. uniCompileVersion: "3.98",
  759. uniRuntimeVersion: "3.98",
  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__40A92BD",
  853. appName: "hotelHomestay",
  854. appVersion: "1.0.0",
  855. appVersionCode: "100",
  856. appLanguage: getAppLanguage(hostLanguage),
  857. hostVersion: version,
  858. hostLanguage: hostLanguage,
  859. hostName: _hostName,
  860. hostSDKVersion: SDKVersion,
  861. hostTheme: theme
  862. }));
  863. }
  864. };
  865. var getDeviceInfo = {
  866. returnValue: function returnValue(result) {
  867. var _result2 = result,
  868. brand = _result2.brand,
  869. model = _result2.model;
  870. var deviceType = getGetDeviceType(result, model);
  871. var deviceBrand = getDeviceBrand(brand);
  872. useDeviceId(result);
  873. result = sortObject(Object.assign(result, {
  874. deviceType: deviceType,
  875. deviceBrand: deviceBrand,
  876. deviceModel: model
  877. }));
  878. }
  879. };
  880. var getWindowInfo = {
  881. returnValue: function returnValue(result) {
  882. addSafeAreaInsets(result);
  883. result = sortObject(Object.assign(result, {
  884. windowTop: 0,
  885. windowBottom: 0
  886. }));
  887. }
  888. };
  889. var getAppAuthorizeSetting = {
  890. returnValue: function returnValue(result) {
  891. var locationReducedAccuracy = result.locationReducedAccuracy;
  892. result.locationAccuracy = 'unsupported';
  893. if (locationReducedAccuracy === true) {
  894. result.locationAccuracy = 'reduced';
  895. } else if (locationReducedAccuracy === false) {
  896. result.locationAccuracy = 'full';
  897. }
  898. }
  899. };
  900. // import navigateTo from 'uni-helpers/navigate-to'
  901. var compressImage = {
  902. args: function args(fromArgs) {
  903. // https://developers.weixin.qq.com/community/develop/doc/000c08940c865011298e0a43256800?highLine=compressHeight
  904. if (fromArgs.compressedHeight && !fromArgs.compressHeight) {
  905. fromArgs.compressHeight = fromArgs.compressedHeight;
  906. }
  907. if (fromArgs.compressedWidth && !fromArgs.compressWidth) {
  908. fromArgs.compressWidth = fromArgs.compressedWidth;
  909. }
  910. }
  911. };
  912. var protocols = {
  913. redirectTo: redirectTo,
  914. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  915. previewImage: previewImage,
  916. getSystemInfo: getSystemInfo,
  917. getSystemInfoSync: getSystemInfo,
  918. showActionSheet: showActionSheet,
  919. getAppBaseInfo: getAppBaseInfo,
  920. getDeviceInfo: getDeviceInfo,
  921. getWindowInfo: getWindowInfo,
  922. getAppAuthorizeSetting: getAppAuthorizeSetting,
  923. compressImage: compressImage
  924. };
  925. var todos = ['vibrate', 'preloadPage', 'unPreloadPage', 'loadSubPackage'];
  926. var canIUses = [];
  927. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  928. function processCallback(methodName, method, returnValue) {
  929. return function (res) {
  930. return method(processReturnValue(methodName, res, returnValue));
  931. };
  932. }
  933. function processArgs(methodName, fromArgs) {
  934. var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  935. var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  936. var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  937. if (isPlainObject(fromArgs)) {
  938. // 一般 api 的参数解析
  939. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  940. if (isFn(argsOption)) {
  941. argsOption = argsOption(fromArgs, toArgs) || {};
  942. }
  943. for (var key in fromArgs) {
  944. if (hasOwn(argsOption, key)) {
  945. var keyOption = argsOption[key];
  946. if (isFn(keyOption)) {
  947. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  948. }
  949. if (!keyOption) {
  950. // 不支持的参数
  951. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  952. } else if (isStr(keyOption)) {
  953. // 重写参数 key
  954. toArgs[keyOption] = fromArgs[key];
  955. } else if (isPlainObject(keyOption)) {
  956. // {name:newName,value:value}可重新指定参数 key:value
  957. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  958. }
  959. } else if (CALLBACKS.indexOf(key) !== -1) {
  960. if (isFn(fromArgs[key])) {
  961. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  962. }
  963. } else {
  964. if (!keepFromArgs) {
  965. toArgs[key] = fromArgs[key];
  966. }
  967. }
  968. }
  969. return toArgs;
  970. } else if (isFn(fromArgs)) {
  971. fromArgs = processCallback(methodName, fromArgs, returnValue);
  972. }
  973. return fromArgs;
  974. }
  975. function processReturnValue(methodName, res, returnValue) {
  976. var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  977. if (isFn(protocols.returnValue)) {
  978. // 处理通用 returnValue
  979. res = protocols.returnValue(methodName, res);
  980. }
  981. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  982. }
  983. function wrapper(methodName, method) {
  984. if (hasOwn(protocols, methodName)) {
  985. var protocol = protocols[methodName];
  986. if (!protocol) {
  987. // 暂不支持的 api
  988. return function () {
  989. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  990. };
  991. }
  992. return function (arg1, arg2) {
  993. // 目前 api 最多两个参数
  994. var options = protocol;
  995. if (isFn(protocol)) {
  996. options = protocol(arg1);
  997. }
  998. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  999. var args = [arg1];
  1000. if (typeof arg2 !== 'undefined') {
  1001. args.push(arg2);
  1002. }
  1003. if (isFn(options.name)) {
  1004. methodName = options.name(arg1);
  1005. } else if (isStr(options.name)) {
  1006. methodName = options.name;
  1007. }
  1008. var returnValue = wx[methodName].apply(wx, args);
  1009. if (isSyncApi(methodName)) {
  1010. // 同步 api
  1011. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  1012. }
  1013. return returnValue;
  1014. };
  1015. }
  1016. return method;
  1017. }
  1018. var todoApis = Object.create(null);
  1019. var TODOS = ['onTabBarMidButtonTap', 'subscribePush', 'unsubscribePush', 'onPush', 'offPush', 'share'];
  1020. function createTodoApi(name) {
  1021. return function todoApi(_ref) {
  1022. var fail = _ref.fail,
  1023. complete = _ref.complete;
  1024. var res = {
  1025. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported")
  1026. };
  1027. isFn(fail) && fail(res);
  1028. isFn(complete) && complete(res);
  1029. };
  1030. }
  1031. TODOS.forEach(function (name) {
  1032. todoApis[name] = createTodoApi(name);
  1033. });
  1034. var providers = {
  1035. oauth: ['weixin'],
  1036. share: ['weixin'],
  1037. payment: ['wxpay'],
  1038. push: ['weixin']
  1039. };
  1040. function getProvider(_ref2) {
  1041. var service = _ref2.service,
  1042. success = _ref2.success,
  1043. fail = _ref2.fail,
  1044. complete = _ref2.complete;
  1045. var res = false;
  1046. if (providers[service]) {
  1047. res = {
  1048. errMsg: 'getProvider:ok',
  1049. service: service,
  1050. provider: providers[service]
  1051. };
  1052. isFn(success) && success(res);
  1053. } else {
  1054. res = {
  1055. errMsg: 'getProvider:fail service not found'
  1056. };
  1057. isFn(fail) && fail(res);
  1058. }
  1059. isFn(complete) && complete(res);
  1060. }
  1061. var extraApi = /*#__PURE__*/Object.freeze({
  1062. __proto__: null,
  1063. getProvider: getProvider
  1064. });
  1065. var getEmitter = function () {
  1066. var Emitter;
  1067. return function getUniEmitter() {
  1068. if (!Emitter) {
  1069. Emitter = new _vue.default();
  1070. }
  1071. return Emitter;
  1072. };
  1073. }();
  1074. function apply(ctx, method, args) {
  1075. return ctx[method].apply(ctx, args);
  1076. }
  1077. function $on() {
  1078. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  1079. }
  1080. function $off() {
  1081. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  1082. }
  1083. function $once() {
  1084. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  1085. }
  1086. function $emit() {
  1087. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  1088. }
  1089. var eventApi = /*#__PURE__*/Object.freeze({
  1090. __proto__: null,
  1091. $on: $on,
  1092. $off: $off,
  1093. $once: $once,
  1094. $emit: $emit
  1095. });
  1096. /**
  1097. * 框架内 try-catch
  1098. */
  1099. /**
  1100. * 开发者 try-catch
  1101. */
  1102. function tryCatch(fn) {
  1103. return function () {
  1104. try {
  1105. return fn.apply(fn, arguments);
  1106. } catch (e) {
  1107. // TODO
  1108. console.error(e);
  1109. }
  1110. };
  1111. }
  1112. function getApiCallbacks(params) {
  1113. var apiCallbacks = {};
  1114. for (var name in params) {
  1115. var param = params[name];
  1116. if (isFn(param)) {
  1117. apiCallbacks[name] = tryCatch(param);
  1118. delete params[name];
  1119. }
  1120. }
  1121. return apiCallbacks;
  1122. }
  1123. var cid;
  1124. var cidErrMsg;
  1125. var enabled;
  1126. function normalizePushMessage(message) {
  1127. try {
  1128. return JSON.parse(message);
  1129. } catch (e) {}
  1130. return message;
  1131. }
  1132. function invokePushCallback(args) {
  1133. if (args.type === 'enabled') {
  1134. enabled = true;
  1135. } else if (args.type === 'clientId') {
  1136. cid = args.cid;
  1137. cidErrMsg = args.errMsg;
  1138. invokeGetPushCidCallbacks(cid, args.errMsg);
  1139. } else if (args.type === 'pushMsg') {
  1140. var message = {
  1141. type: 'receive',
  1142. data: normalizePushMessage(args.message)
  1143. };
  1144. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  1145. var callback = onPushMessageCallbacks[i];
  1146. callback(message);
  1147. // 该消息已被阻止
  1148. if (message.stopped) {
  1149. break;
  1150. }
  1151. }
  1152. } else if (args.type === 'click') {
  1153. onPushMessageCallbacks.forEach(function (callback) {
  1154. callback({
  1155. type: 'click',
  1156. data: normalizePushMessage(args.message)
  1157. });
  1158. });
  1159. }
  1160. }
  1161. var getPushCidCallbacks = [];
  1162. function invokeGetPushCidCallbacks(cid, errMsg) {
  1163. getPushCidCallbacks.forEach(function (callback) {
  1164. callback(cid, errMsg);
  1165. });
  1166. getPushCidCallbacks.length = 0;
  1167. }
  1168. function getPushClientId(args) {
  1169. if (!isPlainObject(args)) {
  1170. args = {};
  1171. }
  1172. var _getApiCallbacks = getApiCallbacks(args),
  1173. success = _getApiCallbacks.success,
  1174. fail = _getApiCallbacks.fail,
  1175. complete = _getApiCallbacks.complete;
  1176. var hasSuccess = isFn(success);
  1177. var hasFail = isFn(fail);
  1178. var hasComplete = isFn(complete);
  1179. Promise.resolve().then(function () {
  1180. if (typeof enabled === 'undefined') {
  1181. enabled = false;
  1182. cid = '';
  1183. cidErrMsg = 'uniPush is not enabled';
  1184. }
  1185. getPushCidCallbacks.push(function (cid, errMsg) {
  1186. var res;
  1187. if (cid) {
  1188. res = {
  1189. errMsg: 'getPushClientId:ok',
  1190. cid: cid
  1191. };
  1192. hasSuccess && success(res);
  1193. } else {
  1194. res = {
  1195. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
  1196. };
  1197. hasFail && fail(res);
  1198. }
  1199. hasComplete && complete(res);
  1200. });
  1201. if (typeof cid !== 'undefined') {
  1202. invokeGetPushCidCallbacks(cid, cidErrMsg);
  1203. }
  1204. });
  1205. }
  1206. var onPushMessageCallbacks = [];
  1207. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  1208. var onPushMessage = function onPushMessage(fn) {
  1209. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  1210. onPushMessageCallbacks.push(fn);
  1211. }
  1212. };
  1213. var offPushMessage = function offPushMessage(fn) {
  1214. if (!fn) {
  1215. onPushMessageCallbacks.length = 0;
  1216. } else {
  1217. var index = onPushMessageCallbacks.indexOf(fn);
  1218. if (index > -1) {
  1219. onPushMessageCallbacks.splice(index, 1);
  1220. }
  1221. }
  1222. };
  1223. var baseInfo = wx.getAppBaseInfo && wx.getAppBaseInfo();
  1224. if (!baseInfo) {
  1225. baseInfo = wx.getSystemInfoSync();
  1226. }
  1227. var host = baseInfo ? baseInfo.host : null;
  1228. var shareVideoMessage = host && host.env === 'SAAASDK' ? wx.miniapp.shareVideoMessage : wx.shareVideoMessage;
  1229. var api = /*#__PURE__*/Object.freeze({
  1230. __proto__: null,
  1231. shareVideoMessage: shareVideoMessage,
  1232. getPushClientId: getPushClientId,
  1233. onPushMessage: onPushMessage,
  1234. offPushMessage: offPushMessage,
  1235. invokePushCallback: invokePushCallback
  1236. });
  1237. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1238. function findVmByVueId(vm, vuePid) {
  1239. var $children = vm.$children;
  1240. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1241. for (var i = $children.length - 1; i >= 0; i--) {
  1242. var childVm = $children[i];
  1243. if (childVm.$scope._$vueId === vuePid) {
  1244. return childVm;
  1245. }
  1246. }
  1247. // 反向递归查找
  1248. var parentVm;
  1249. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1250. parentVm = findVmByVueId($children[_i], vuePid);
  1251. if (parentVm) {
  1252. return parentVm;
  1253. }
  1254. }
  1255. }
  1256. function initBehavior(options) {
  1257. return Behavior(options);
  1258. }
  1259. function isPage() {
  1260. return !!this.route;
  1261. }
  1262. function initRelation(detail) {
  1263. this.triggerEvent('__l', detail);
  1264. }
  1265. function selectAllComponents(mpInstance, selector, $refs) {
  1266. var components = mpInstance.selectAllComponents(selector) || [];
  1267. components.forEach(function (component) {
  1268. var ref = component.dataset.ref;
  1269. $refs[ref] = component.$vm || toSkip(component);
  1270. {
  1271. if (component.dataset.vueGeneric === 'scoped') {
  1272. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1273. selectAllComponents(scopedComponent, selector, $refs);
  1274. });
  1275. }
  1276. }
  1277. });
  1278. }
  1279. function syncRefs(refs, newRefs) {
  1280. var oldKeys = (0, _construct2.default)(Set, (0, _toConsumableArray2.default)(Object.keys(refs)));
  1281. var newKeys = Object.keys(newRefs);
  1282. newKeys.forEach(function (key) {
  1283. var oldValue = refs[key];
  1284. var newValue = newRefs[key];
  1285. if (Array.isArray(oldValue) && Array.isArray(newValue) && oldValue.length === newValue.length && newValue.every(function (value) {
  1286. return oldValue.includes(value);
  1287. })) {
  1288. return;
  1289. }
  1290. refs[key] = newValue;
  1291. oldKeys.delete(key);
  1292. });
  1293. oldKeys.forEach(function (key) {
  1294. delete refs[key];
  1295. });
  1296. return refs;
  1297. }
  1298. function initRefs(vm) {
  1299. var mpInstance = vm.$scope;
  1300. var refs = {};
  1301. Object.defineProperty(vm, '$refs', {
  1302. get: function get() {
  1303. var $refs = {};
  1304. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1305. // TODO 暂不考虑 for 中的 scoped
  1306. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for') || [];
  1307. forComponents.forEach(function (component) {
  1308. var ref = component.dataset.ref;
  1309. if (!$refs[ref]) {
  1310. $refs[ref] = [];
  1311. }
  1312. $refs[ref].push(component.$vm || toSkip(component));
  1313. });
  1314. return syncRefs(refs, $refs);
  1315. }
  1316. });
  1317. }
  1318. function handleLink(event) {
  1319. var _ref3 = event.detail || event.value,
  1320. vuePid = _ref3.vuePid,
  1321. vueOptions = _ref3.vueOptions; // detail 是微信,value 是百度(dipatch)
  1322. var parentVm;
  1323. if (vuePid) {
  1324. parentVm = findVmByVueId(this.$vm, vuePid);
  1325. }
  1326. if (!parentVm) {
  1327. parentVm = this.$vm;
  1328. }
  1329. vueOptions.parent = parentVm;
  1330. }
  1331. function markMPComponent(component) {
  1332. // 在 Vue 中标记为小程序组件
  1333. var IS_MP = '__v_isMPComponent';
  1334. Object.defineProperty(component, IS_MP, {
  1335. configurable: true,
  1336. enumerable: false,
  1337. value: true
  1338. });
  1339. return component;
  1340. }
  1341. function toSkip(obj) {
  1342. var OB = '__ob__';
  1343. var SKIP = '__v_skip';
  1344. if (isObject(obj) && Object.isExtensible(obj)) {
  1345. // 避免被 @vue/composition-api 观测
  1346. Object.defineProperty(obj, OB, {
  1347. configurable: true,
  1348. enumerable: false,
  1349. value: (0, _defineProperty2.default)({}, SKIP, true)
  1350. });
  1351. }
  1352. return obj;
  1353. }
  1354. var WORKLET_RE = /_(.*)_worklet_factory_/;
  1355. function initWorkletMethods(mpMethods, vueMethods) {
  1356. if (vueMethods) {
  1357. Object.keys(vueMethods).forEach(function (name) {
  1358. var matches = name.match(WORKLET_RE);
  1359. if (matches) {
  1360. var workletName = matches[1];
  1361. mpMethods[name] = vueMethods[name];
  1362. mpMethods[workletName] = vueMethods[workletName];
  1363. }
  1364. });
  1365. }
  1366. }
  1367. var MPPage = Page;
  1368. var MPComponent = Component;
  1369. var customizeRE = /:/g;
  1370. var customize = cached(function (str) {
  1371. return camelize(str.replace(customizeRE, '-'));
  1372. });
  1373. function initTriggerEvent(mpInstance) {
  1374. var oldTriggerEvent = mpInstance.triggerEvent;
  1375. var newTriggerEvent = function newTriggerEvent(event) {
  1376. for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
  1377. args[_key3 - 1] = arguments[_key3];
  1378. }
  1379. // 事件名统一转驼峰格式,仅处理:当前组件为 vue 组件、当前组件为 vue 组件子组件
  1380. if (this.$vm || this.dataset && this.dataset.comType) {
  1381. event = customize(event);
  1382. } else {
  1383. // 针对微信/QQ小程序单独补充驼峰格式事件,以兼容历史项目
  1384. var newEvent = customize(event);
  1385. if (newEvent !== event) {
  1386. oldTriggerEvent.apply(this, [newEvent].concat(args));
  1387. }
  1388. }
  1389. return oldTriggerEvent.apply(this, [event].concat(args));
  1390. };
  1391. try {
  1392. // 京东小程序 triggerEvent 为只读
  1393. mpInstance.triggerEvent = newTriggerEvent;
  1394. } catch (error) {
  1395. mpInstance._triggerEvent = newTriggerEvent;
  1396. }
  1397. }
  1398. function initHook(name, options, isComponent) {
  1399. var oldHook = options[name];
  1400. options[name] = function () {
  1401. markMPComponent(this);
  1402. initTriggerEvent(this);
  1403. if (oldHook) {
  1404. for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  1405. args[_key4] = arguments[_key4];
  1406. }
  1407. return oldHook.apply(this, args);
  1408. }
  1409. };
  1410. }
  1411. if (!MPPage.__$wrappered) {
  1412. MPPage.__$wrappered = true;
  1413. Page = function Page() {
  1414. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1415. initHook('onLoad', options);
  1416. return MPPage(options);
  1417. };
  1418. Page.after = MPPage.after;
  1419. Component = function Component() {
  1420. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1421. initHook('created', options);
  1422. return MPComponent(options);
  1423. };
  1424. }
  1425. var PAGE_EVENT_HOOKS = ['onPullDownRefresh', 'onReachBottom', 'onAddToFavorites', 'onShareTimeline', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
  1426. function initMocks(vm, mocks) {
  1427. var mpInstance = vm.$mp[vm.mpType];
  1428. mocks.forEach(function (mock) {
  1429. if (hasOwn(mpInstance, mock)) {
  1430. vm[mock] = mpInstance[mock];
  1431. }
  1432. });
  1433. }
  1434. function hasHook(hook, vueOptions) {
  1435. if (!vueOptions) {
  1436. return true;
  1437. }
  1438. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  1439. return true;
  1440. }
  1441. vueOptions = vueOptions.default || vueOptions;
  1442. if (isFn(vueOptions)) {
  1443. if (isFn(vueOptions.extendOptions[hook])) {
  1444. return true;
  1445. }
  1446. if (vueOptions.super && vueOptions.super.options && Array.isArray(vueOptions.super.options[hook])) {
  1447. return true;
  1448. }
  1449. return false;
  1450. }
  1451. if (isFn(vueOptions[hook]) || Array.isArray(vueOptions[hook])) {
  1452. return true;
  1453. }
  1454. var mixins = vueOptions.mixins;
  1455. if (Array.isArray(mixins)) {
  1456. return !!mixins.find(function (mixin) {
  1457. return hasHook(hook, mixin);
  1458. });
  1459. }
  1460. }
  1461. function initHooks(mpOptions, hooks, vueOptions) {
  1462. hooks.forEach(function (hook) {
  1463. if (hasHook(hook, vueOptions)) {
  1464. mpOptions[hook] = function (args) {
  1465. return this.$vm && this.$vm.__call_hook(hook, args);
  1466. };
  1467. }
  1468. });
  1469. }
  1470. function initUnknownHooks(mpOptions, vueOptions) {
  1471. var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1472. findHooks(vueOptions).forEach(function (hook) {
  1473. return initHook$1(mpOptions, hook, excludes);
  1474. });
  1475. }
  1476. function findHooks(vueOptions) {
  1477. var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  1478. if (vueOptions) {
  1479. Object.keys(vueOptions).forEach(function (name) {
  1480. if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
  1481. hooks.push(name);
  1482. }
  1483. });
  1484. }
  1485. return hooks;
  1486. }
  1487. function initHook$1(mpOptions, hook, excludes) {
  1488. if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
  1489. mpOptions[hook] = function (args) {
  1490. return this.$vm && this.$vm.__call_hook(hook, args);
  1491. };
  1492. }
  1493. }
  1494. function initVueComponent(Vue, vueOptions) {
  1495. vueOptions = vueOptions.default || vueOptions;
  1496. var VueComponent;
  1497. if (isFn(vueOptions)) {
  1498. VueComponent = vueOptions;
  1499. } else {
  1500. VueComponent = Vue.extend(vueOptions);
  1501. }
  1502. vueOptions = VueComponent.options;
  1503. return [VueComponent, vueOptions];
  1504. }
  1505. function initSlots(vm, vueSlots) {
  1506. if (Array.isArray(vueSlots) && vueSlots.length) {
  1507. var $slots = Object.create(null);
  1508. vueSlots.forEach(function (slotName) {
  1509. $slots[slotName] = true;
  1510. });
  1511. vm.$scopedSlots = vm.$slots = $slots;
  1512. }
  1513. }
  1514. function initVueIds(vueIds, mpInstance) {
  1515. vueIds = (vueIds || '').split(',');
  1516. var len = vueIds.length;
  1517. if (len === 1) {
  1518. mpInstance._$vueId = vueIds[0];
  1519. } else if (len === 2) {
  1520. mpInstance._$vueId = vueIds[0];
  1521. mpInstance._$vuePid = vueIds[1];
  1522. }
  1523. }
  1524. function initData(vueOptions, context) {
  1525. var data = vueOptions.data || {};
  1526. var methods = vueOptions.methods || {};
  1527. if (typeof data === 'function') {
  1528. try {
  1529. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  1530. } catch (e) {
  1531. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"hotelHomestay","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  1532. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  1533. }
  1534. }
  1535. } else {
  1536. try {
  1537. // 对 data 格式化
  1538. data = JSON.parse(JSON.stringify(data));
  1539. } catch (e) {}
  1540. }
  1541. if (!isPlainObject(data)) {
  1542. data = {};
  1543. }
  1544. Object.keys(methods).forEach(function (methodName) {
  1545. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  1546. data[methodName] = methods[methodName];
  1547. }
  1548. });
  1549. return data;
  1550. }
  1551. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  1552. function createObserver(name) {
  1553. return function observer(newVal, oldVal) {
  1554. if (this.$vm) {
  1555. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  1556. }
  1557. };
  1558. }
  1559. function initBehaviors(vueOptions, initBehavior) {
  1560. var vueBehaviors = vueOptions.behaviors;
  1561. var vueExtends = vueOptions.extends;
  1562. var vueMixins = vueOptions.mixins;
  1563. var vueProps = vueOptions.props;
  1564. if (!vueProps) {
  1565. vueOptions.props = vueProps = [];
  1566. }
  1567. var behaviors = [];
  1568. if (Array.isArray(vueBehaviors)) {
  1569. vueBehaviors.forEach(function (behavior) {
  1570. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  1571. if (behavior === 'uni://form-field') {
  1572. if (Array.isArray(vueProps)) {
  1573. vueProps.push('name');
  1574. vueProps.push('value');
  1575. } else {
  1576. vueProps.name = {
  1577. type: String,
  1578. default: ''
  1579. };
  1580. vueProps.value = {
  1581. type: [String, Number, Boolean, Array, Object, Date],
  1582. default: ''
  1583. };
  1584. }
  1585. }
  1586. });
  1587. }
  1588. if (isPlainObject(vueExtends) && vueExtends.props) {
  1589. behaviors.push(initBehavior({
  1590. properties: initProperties(vueExtends.props, true)
  1591. }));
  1592. }
  1593. if (Array.isArray(vueMixins)) {
  1594. vueMixins.forEach(function (vueMixin) {
  1595. if (isPlainObject(vueMixin) && vueMixin.props) {
  1596. behaviors.push(initBehavior({
  1597. properties: initProperties(vueMixin.props, true)
  1598. }));
  1599. }
  1600. });
  1601. }
  1602. return behaviors;
  1603. }
  1604. function parsePropType(key, type, defaultValue, file) {
  1605. // [String]=>String
  1606. if (Array.isArray(type) && type.length === 1) {
  1607. return type[0];
  1608. }
  1609. return type;
  1610. }
  1611. function initProperties(props) {
  1612. var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  1613. var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  1614. var options = arguments.length > 3 ? arguments[3] : undefined;
  1615. var properties = {};
  1616. if (!isBehavior) {
  1617. properties.vueId = {
  1618. type: String,
  1619. value: ''
  1620. };
  1621. {
  1622. if (options.virtualHost) {
  1623. properties.virtualHostStyle = {
  1624. type: null,
  1625. value: ''
  1626. };
  1627. properties.virtualHostClass = {
  1628. type: null,
  1629. value: ''
  1630. };
  1631. }
  1632. }
  1633. // scopedSlotsCompiler auto
  1634. properties.scopedSlotsCompiler = {
  1635. type: String,
  1636. value: ''
  1637. };
  1638. properties.vueSlots = {
  1639. // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  1640. type: null,
  1641. value: [],
  1642. observer: function observer(newVal, oldVal) {
  1643. var $slots = Object.create(null);
  1644. newVal.forEach(function (slotName) {
  1645. $slots[slotName] = true;
  1646. });
  1647. this.setData({
  1648. $slots: $slots
  1649. });
  1650. }
  1651. };
  1652. }
  1653. if (Array.isArray(props)) {
  1654. // ['title']
  1655. props.forEach(function (key) {
  1656. properties[key] = {
  1657. type: null,
  1658. observer: createObserver(key)
  1659. };
  1660. });
  1661. } else if (isPlainObject(props)) {
  1662. // {title:{type:String,default:''},content:String}
  1663. Object.keys(props).forEach(function (key) {
  1664. var opts = props[key];
  1665. if (isPlainObject(opts)) {
  1666. // title:{type:String,default:''}
  1667. var value = opts.default;
  1668. if (isFn(value)) {
  1669. value = value();
  1670. }
  1671. opts.type = parsePropType(key, opts.type);
  1672. properties[key] = {
  1673. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  1674. value: value,
  1675. observer: createObserver(key)
  1676. };
  1677. } else {
  1678. // content:String
  1679. var type = parsePropType(key, opts);
  1680. properties[key] = {
  1681. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  1682. observer: createObserver(key)
  1683. };
  1684. }
  1685. });
  1686. }
  1687. return properties;
  1688. }
  1689. function wrapper$1(event) {
  1690. // TODO 又得兼容 mpvue 的 mp 对象
  1691. try {
  1692. event.mp = JSON.parse(JSON.stringify(event));
  1693. } catch (e) {}
  1694. event.stopPropagation = noop;
  1695. event.preventDefault = noop;
  1696. event.target = event.target || {};
  1697. if (!hasOwn(event, 'detail')) {
  1698. event.detail = {};
  1699. }
  1700. if (hasOwn(event, 'markerId')) {
  1701. event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
  1702. event.detail.markerId = event.markerId;
  1703. }
  1704. if (isPlainObject(event.detail)) {
  1705. event.target = Object.assign({}, event.target, event.detail);
  1706. }
  1707. return event;
  1708. }
  1709. function getExtraValue(vm, dataPathsArray) {
  1710. var context = vm;
  1711. dataPathsArray.forEach(function (dataPathArray) {
  1712. var dataPath = dataPathArray[0];
  1713. var value = dataPathArray[2];
  1714. if (dataPath || typeof value !== 'undefined') {
  1715. // ['','',index,'disable']
  1716. var propPath = dataPathArray[1];
  1717. var valuePath = dataPathArray[3];
  1718. var vFor;
  1719. if (Number.isInteger(dataPath)) {
  1720. vFor = dataPath;
  1721. } else if (!dataPath) {
  1722. vFor = context;
  1723. } else if (typeof dataPath === 'string' && dataPath) {
  1724. if (dataPath.indexOf('#s#') === 0) {
  1725. vFor = dataPath.substr(3);
  1726. } else {
  1727. vFor = vm.__get_value(dataPath, context);
  1728. }
  1729. }
  1730. if (Number.isInteger(vFor)) {
  1731. context = value;
  1732. } else if (!propPath) {
  1733. context = vFor[value];
  1734. } else {
  1735. if (Array.isArray(vFor)) {
  1736. context = vFor.find(function (vForItem) {
  1737. return vm.__get_value(propPath, vForItem) === value;
  1738. });
  1739. } else if (isPlainObject(vFor)) {
  1740. context = Object.keys(vFor).find(function (vForKey) {
  1741. return vm.__get_value(propPath, vFor[vForKey]) === value;
  1742. });
  1743. } else {
  1744. console.error('v-for 暂不支持循环数据:', vFor);
  1745. }
  1746. }
  1747. if (valuePath) {
  1748. context = vm.__get_value(valuePath, context);
  1749. }
  1750. }
  1751. });
  1752. return context;
  1753. }
  1754. function processEventExtra(vm, extra, event, __args__) {
  1755. var extraObj = {};
  1756. if (Array.isArray(extra) && extra.length) {
  1757. /**
  1758. *[
  1759. * ['data.items', 'data.id', item.data.id],
  1760. * ['metas', 'id', meta.id]
  1761. *],
  1762. *[
  1763. * ['data.items', 'data.id', item.data.id],
  1764. * ['metas', 'id', meta.id]
  1765. *],
  1766. *'test'
  1767. */
  1768. extra.forEach(function (dataPath, index) {
  1769. if (typeof dataPath === 'string') {
  1770. if (!dataPath) {
  1771. // model,prop.sync
  1772. extraObj['$' + index] = vm;
  1773. } else {
  1774. if (dataPath === '$event') {
  1775. // $event
  1776. extraObj['$' + index] = event;
  1777. } else if (dataPath === 'arguments') {
  1778. extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
  1779. } else if (dataPath.indexOf('$event.') === 0) {
  1780. // $event.target.value
  1781. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1782. } else {
  1783. extraObj['$' + index] = vm.__get_value(dataPath);
  1784. }
  1785. }
  1786. } else {
  1787. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1788. }
  1789. });
  1790. }
  1791. return extraObj;
  1792. }
  1793. function getObjByArray(arr) {
  1794. var obj = {};
  1795. for (var i = 1; i < arr.length; i++) {
  1796. var element = arr[i];
  1797. obj[element[0]] = element[1];
  1798. }
  1799. return obj;
  1800. }
  1801. function processEventArgs(vm, event) {
  1802. var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1803. var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  1804. var isCustom = arguments.length > 4 ? arguments[4] : undefined;
  1805. var methodName = arguments.length > 5 ? arguments[5] : undefined;
  1806. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  1807. // fixed 用户直接触发 mpInstance.triggerEvent
  1808. var __args__ = isPlainObject(event.detail) ? event.detail.__args__ || [event.detail] : [event.detail];
  1809. if (isCustom) {
  1810. // 自定义事件
  1811. isCustomMPEvent = event.currentTarget && event.currentTarget.dataset && event.currentTarget.dataset.comType === 'wx';
  1812. if (!args.length) {
  1813. // 无参数,直接传入 event 或 detail 数组
  1814. if (isCustomMPEvent) {
  1815. return [event];
  1816. }
  1817. return __args__;
  1818. }
  1819. }
  1820. var extraObj = processEventExtra(vm, extra, event, __args__);
  1821. var ret = [];
  1822. args.forEach(function (arg) {
  1823. if (arg === '$event') {
  1824. if (methodName === '__set_model' && !isCustom) {
  1825. // input v-model value
  1826. ret.push(event.target.value);
  1827. } else {
  1828. if (isCustom && !isCustomMPEvent) {
  1829. ret.push(__args__[0]);
  1830. } else {
  1831. // wxcomponent 组件或内置组件
  1832. ret.push(event);
  1833. }
  1834. }
  1835. } else {
  1836. if (Array.isArray(arg) && arg[0] === 'o') {
  1837. ret.push(getObjByArray(arg));
  1838. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  1839. ret.push(extraObj[arg]);
  1840. } else {
  1841. ret.push(arg);
  1842. }
  1843. }
  1844. });
  1845. return ret;
  1846. }
  1847. var ONCE = '~';
  1848. var CUSTOM = '^';
  1849. function isMatchEventType(eventType, optType) {
  1850. return eventType === optType || optType === 'regionchange' && (eventType === 'begin' || eventType === 'end');
  1851. }
  1852. function getContextVm(vm) {
  1853. var $parent = vm.$parent;
  1854. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  1855. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  1856. $parent = $parent.$parent;
  1857. }
  1858. return $parent && $parent.$parent;
  1859. }
  1860. function handleEvent(event) {
  1861. var _this2 = this;
  1862. event = wrapper$1(event);
  1863. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  1864. var dataset = (event.currentTarget || event.target).dataset;
  1865. if (!dataset) {
  1866. return console.warn('事件信息不存在');
  1867. }
  1868. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  1869. if (!eventOpts) {
  1870. return console.warn('事件信息不存在');
  1871. }
  1872. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  1873. var eventType = event.type;
  1874. var ret = [];
  1875. eventOpts.forEach(function (eventOpt) {
  1876. var type = eventOpt[0];
  1877. var eventsArray = eventOpt[1];
  1878. var isCustom = type.charAt(0) === CUSTOM;
  1879. type = isCustom ? type.slice(1) : type;
  1880. var isOnce = type.charAt(0) === ONCE;
  1881. type = isOnce ? type.slice(1) : type;
  1882. if (eventsArray && isMatchEventType(eventType, type)) {
  1883. eventsArray.forEach(function (eventArray) {
  1884. var methodName = eventArray[0];
  1885. if (methodName) {
  1886. var handlerCtx = _this2.$vm;
  1887. if (handlerCtx.$options.generic) {
  1888. // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  1889. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  1890. }
  1891. if (methodName === '$emit') {
  1892. handlerCtx.$emit.apply(handlerCtx, processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName));
  1893. return;
  1894. }
  1895. var handler = handlerCtx[methodName];
  1896. if (!isFn(handler)) {
  1897. var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
  1898. var path = _this2.route || _this2.is;
  1899. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  1900. }
  1901. if (isOnce) {
  1902. if (handler.once) {
  1903. return;
  1904. }
  1905. handler.once = true;
  1906. }
  1907. var params = processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName);
  1908. params = Array.isArray(params) ? params : [];
  1909. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  1910. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  1911. // eslint-disable-next-line no-sparse-arrays
  1912. params = params.concat([,,,,,,,,,, event]);
  1913. }
  1914. ret.push(handler.apply(handlerCtx, params));
  1915. }
  1916. });
  1917. }
  1918. });
  1919. if (eventType === 'input' && ret.length === 1 && typeof ret[0] !== 'undefined') {
  1920. return ret[0];
  1921. }
  1922. }
  1923. var eventChannels = {};
  1924. function getEventChannel(id) {
  1925. var eventChannel = eventChannels[id];
  1926. delete eventChannels[id];
  1927. return eventChannel;
  1928. }
  1929. var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
  1930. function initEventChannel() {
  1931. _vue.default.prototype.getOpenerEventChannel = function () {
  1932. // 微信小程序使用自身getOpenerEventChannel
  1933. {
  1934. return this.$scope.getOpenerEventChannel();
  1935. }
  1936. };
  1937. var callHook = _vue.default.prototype.__call_hook;
  1938. _vue.default.prototype.__call_hook = function (hook, args) {
  1939. if (hook === 'onLoad' && args && args.__id__) {
  1940. this.__eventChannel__ = getEventChannel(args.__id__);
  1941. delete args.__id__;
  1942. }
  1943. return callHook.call(this, hook, args);
  1944. };
  1945. }
  1946. function initScopedSlotsParams() {
  1947. var center = {};
  1948. var parents = {};
  1949. function currentId(fn) {
  1950. var vueIds = this.$options.propsData.vueId;
  1951. if (vueIds) {
  1952. var vueId = vueIds.split(',')[0];
  1953. fn(vueId);
  1954. }
  1955. }
  1956. _vue.default.prototype.$hasSSP = function (vueId) {
  1957. var slot = center[vueId];
  1958. if (!slot) {
  1959. parents[vueId] = this;
  1960. this.$on('hook:destroyed', function () {
  1961. delete parents[vueId];
  1962. });
  1963. }
  1964. return slot;
  1965. };
  1966. _vue.default.prototype.$getSSP = function (vueId, name, needAll) {
  1967. var slot = center[vueId];
  1968. if (slot) {
  1969. var params = slot[name] || [];
  1970. if (needAll) {
  1971. return params;
  1972. }
  1973. return params[0];
  1974. }
  1975. };
  1976. _vue.default.prototype.$setSSP = function (name, value) {
  1977. var index = 0;
  1978. currentId.call(this, function (vueId) {
  1979. var slot = center[vueId];
  1980. var params = slot[name] = slot[name] || [];
  1981. params.push(value);
  1982. index = params.length - 1;
  1983. });
  1984. return index;
  1985. };
  1986. _vue.default.prototype.$initSSP = function () {
  1987. currentId.call(this, function (vueId) {
  1988. center[vueId] = {};
  1989. });
  1990. };
  1991. _vue.default.prototype.$callSSP = function () {
  1992. currentId.call(this, function (vueId) {
  1993. if (parents[vueId]) {
  1994. parents[vueId].$forceUpdate();
  1995. }
  1996. });
  1997. };
  1998. _vue.default.mixin({
  1999. destroyed: function destroyed() {
  2000. var propsData = this.$options.propsData;
  2001. var vueId = propsData && propsData.vueId;
  2002. if (vueId) {
  2003. delete center[vueId];
  2004. delete parents[vueId];
  2005. }
  2006. }
  2007. });
  2008. }
  2009. function parseBaseApp(vm, _ref4) {
  2010. var mocks = _ref4.mocks,
  2011. initRefs = _ref4.initRefs;
  2012. initEventChannel();
  2013. {
  2014. initScopedSlotsParams();
  2015. }
  2016. if (vm.$options.store) {
  2017. _vue.default.prototype.$store = vm.$options.store;
  2018. }
  2019. uniIdMixin(_vue.default);
  2020. _vue.default.prototype.mpHost = "mp-weixin";
  2021. _vue.default.mixin({
  2022. beforeCreate: function beforeCreate() {
  2023. if (!this.$options.mpType) {
  2024. return;
  2025. }
  2026. this.mpType = this.$options.mpType;
  2027. this.$mp = (0, _defineProperty2.default)({
  2028. data: {}
  2029. }, this.mpType, this.$options.mpInstance);
  2030. this.$scope = this.$options.mpInstance;
  2031. delete this.$options.mpType;
  2032. delete this.$options.mpInstance;
  2033. if (this.mpType === 'page' && typeof getApp === 'function') {
  2034. // hack vue-i18n
  2035. var app = getApp();
  2036. if (app.$vm && app.$vm.$i18n) {
  2037. this._i18n = app.$vm.$i18n;
  2038. }
  2039. }
  2040. if (this.mpType !== 'app') {
  2041. initRefs(this);
  2042. initMocks(this, mocks);
  2043. }
  2044. }
  2045. });
  2046. var appOptions = {
  2047. onLaunch: function onLaunch(args) {
  2048. if (this.$vm) {
  2049. // 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  2050. return;
  2051. }
  2052. {
  2053. if (wx.canIUse && !wx.canIUse('nextTick')) {
  2054. // 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  2055. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  2056. }
  2057. }
  2058. this.$vm = vm;
  2059. this.$vm.$mp = {
  2060. app: this
  2061. };
  2062. this.$vm.$scope = this;
  2063. // vm 上也挂载 globalData
  2064. this.$vm.globalData = this.globalData;
  2065. this.$vm._isMounted = true;
  2066. this.$vm.__call_hook('mounted', args);
  2067. this.$vm.__call_hook('onLaunch', args);
  2068. }
  2069. };
  2070. // 兼容旧版本 globalData
  2071. appOptions.globalData = vm.$options.globalData || {};
  2072. // 将 methods 中的方法挂在 getApp() 中
  2073. var methods = vm.$options.methods;
  2074. if (methods) {
  2075. Object.keys(methods).forEach(function (name) {
  2076. appOptions[name] = methods[name];
  2077. });
  2078. }
  2079. initAppLocale(_vue.default, vm, normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN);
  2080. initHooks(appOptions, hooks);
  2081. initUnknownHooks(appOptions, vm.$options);
  2082. return appOptions;
  2083. }
  2084. function parseApp(vm) {
  2085. return parseBaseApp(vm, {
  2086. mocks: mocks,
  2087. initRefs: initRefs
  2088. });
  2089. }
  2090. function createApp(vm) {
  2091. App(parseApp(vm));
  2092. return vm;
  2093. }
  2094. var encodeReserveRE = /[!'()*]/g;
  2095. var encodeReserveReplacer = function encodeReserveReplacer(c) {
  2096. return '%' + c.charCodeAt(0).toString(16);
  2097. };
  2098. var commaRE = /%2C/g;
  2099. // fixed encodeURIComponent which is more conformant to RFC3986:
  2100. // - escapes [!'()*]
  2101. // - preserve commas
  2102. var encode = function encode(str) {
  2103. return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
  2104. };
  2105. function stringifyQuery(obj) {
  2106. var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  2107. var res = obj ? Object.keys(obj).map(function (key) {
  2108. var val = obj[key];
  2109. if (val === undefined) {
  2110. return '';
  2111. }
  2112. if (val === null) {
  2113. return encodeStr(key);
  2114. }
  2115. if (Array.isArray(val)) {
  2116. var result = [];
  2117. val.forEach(function (val2) {
  2118. if (val2 === undefined) {
  2119. return;
  2120. }
  2121. if (val2 === null) {
  2122. result.push(encodeStr(key));
  2123. } else {
  2124. result.push(encodeStr(key) + '=' + encodeStr(val2));
  2125. }
  2126. });
  2127. return result.join('&');
  2128. }
  2129. return encodeStr(key) + '=' + encodeStr(val);
  2130. }).filter(function (x) {
  2131. return x.length > 0;
  2132. }).join('&') : null;
  2133. return res ? "?".concat(res) : '';
  2134. }
  2135. function parseBaseComponent(vueComponentOptions) {
  2136. var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  2137. isPage = _ref5.isPage,
  2138. initRelation = _ref5.initRelation;
  2139. var needVueOptions = arguments.length > 2 ? arguments[2] : undefined;
  2140. var _initVueComponent = initVueComponent(_vue.default, vueComponentOptions),
  2141. _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
  2142. VueComponent = _initVueComponent2[0],
  2143. vueOptions = _initVueComponent2[1];
  2144. var options = _objectSpread({
  2145. multipleSlots: true,
  2146. // styleIsolation: 'apply-shared',
  2147. addGlobalClass: true
  2148. }, vueOptions.options || {});
  2149. {
  2150. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  2151. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  2152. Object.assign(options, vueOptions['mp-weixin'].options);
  2153. }
  2154. }
  2155. var componentOptions = {
  2156. options: options,
  2157. data: initData(vueOptions, _vue.default.prototype),
  2158. behaviors: initBehaviors(vueOptions, initBehavior),
  2159. properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
  2160. lifetimes: {
  2161. attached: function attached() {
  2162. var properties = this.properties;
  2163. var options = {
  2164. mpType: isPage.call(this) ? 'page' : 'component',
  2165. mpInstance: this,
  2166. propsData: properties
  2167. };
  2168. initVueIds(properties.vueId, this);
  2169. // 处理父子关系
  2170. initRelation.call(this, {
  2171. vuePid: this._$vuePid,
  2172. vueOptions: options
  2173. });
  2174. // 初始化 vue 实例
  2175. this.$vm = new VueComponent(options);
  2176. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  2177. initSlots(this.$vm, properties.vueSlots);
  2178. // 触发首次 setData
  2179. this.$vm.$mount();
  2180. },
  2181. ready: function ready() {
  2182. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  2183. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  2184. if (this.$vm) {
  2185. this.$vm._isMounted = true;
  2186. this.$vm.__call_hook('mounted');
  2187. this.$vm.__call_hook('onReady');
  2188. }
  2189. },
  2190. detached: function detached() {
  2191. this.$vm && this.$vm.$destroy();
  2192. }
  2193. },
  2194. pageLifetimes: {
  2195. show: function show(args) {
  2196. this.$vm && this.$vm.__call_hook('onPageShow', args);
  2197. },
  2198. hide: function hide() {
  2199. this.$vm && this.$vm.__call_hook('onPageHide');
  2200. },
  2201. resize: function resize(size) {
  2202. this.$vm && this.$vm.__call_hook('onPageResize', size);
  2203. }
  2204. },
  2205. methods: {
  2206. __l: handleLink,
  2207. __e: handleEvent
  2208. }
  2209. };
  2210. // externalClasses
  2211. if (vueOptions.externalClasses) {
  2212. componentOptions.externalClasses = vueOptions.externalClasses;
  2213. }
  2214. if (Array.isArray(vueOptions.wxsCallMethods)) {
  2215. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  2216. componentOptions.methods[callMethod] = function (args) {
  2217. return this.$vm[callMethod](args);
  2218. };
  2219. });
  2220. }
  2221. if (needVueOptions) {
  2222. return [componentOptions, vueOptions, VueComponent];
  2223. }
  2224. if (isPage) {
  2225. return componentOptions;
  2226. }
  2227. return [componentOptions, VueComponent];
  2228. }
  2229. function parseComponent(vueComponentOptions, needVueOptions) {
  2230. return parseBaseComponent(vueComponentOptions, {
  2231. isPage: isPage,
  2232. initRelation: initRelation
  2233. }, needVueOptions);
  2234. }
  2235. var hooks$1 = ['onShow', 'onHide', 'onUnload'];
  2236. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  2237. function parseBasePage(vuePageOptions) {
  2238. var _parseComponent = parseComponent(vuePageOptions, true),
  2239. _parseComponent2 = (0, _slicedToArray2.default)(_parseComponent, 2),
  2240. pageOptions = _parseComponent2[0],
  2241. vueOptions = _parseComponent2[1];
  2242. initHooks(pageOptions.methods, hooks$1, vueOptions);
  2243. pageOptions.methods.onLoad = function (query) {
  2244. this.options = query;
  2245. var copyQuery = Object.assign({}, query);
  2246. delete copyQuery.__id__;
  2247. this.$page = {
  2248. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery)
  2249. };
  2250. this.$vm.$mp.query = query; // 兼容 mpvue
  2251. this.$vm.__call_hook('onLoad', query);
  2252. };
  2253. {
  2254. initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  2255. }
  2256. {
  2257. initWorkletMethods(pageOptions.methods, vueOptions.methods);
  2258. }
  2259. return pageOptions;
  2260. }
  2261. function parsePage(vuePageOptions) {
  2262. return parseBasePage(vuePageOptions);
  2263. }
  2264. function createPage(vuePageOptions) {
  2265. {
  2266. return Component(parsePage(vuePageOptions));
  2267. }
  2268. }
  2269. function createComponent(vueOptions) {
  2270. {
  2271. return Component(parseComponent(vueOptions));
  2272. }
  2273. }
  2274. function createSubpackageApp(vm) {
  2275. var appOptions = parseApp(vm);
  2276. var app = getApp({
  2277. allowDefault: true
  2278. });
  2279. vm.$scope = app;
  2280. var globalData = app.globalData;
  2281. if (globalData) {
  2282. Object.keys(appOptions.globalData).forEach(function (name) {
  2283. if (!hasOwn(globalData, name)) {
  2284. globalData[name] = appOptions.globalData[name];
  2285. }
  2286. });
  2287. }
  2288. Object.keys(appOptions).forEach(function (name) {
  2289. if (!hasOwn(app, name)) {
  2290. app[name] = appOptions[name];
  2291. }
  2292. });
  2293. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2294. wx.onAppShow(function () {
  2295. for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
  2296. args[_key5] = arguments[_key5];
  2297. }
  2298. vm.__call_hook('onShow', args);
  2299. });
  2300. }
  2301. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2302. wx.onAppHide(function () {
  2303. for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
  2304. args[_key6] = arguments[_key6];
  2305. }
  2306. vm.__call_hook('onHide', args);
  2307. });
  2308. }
  2309. if (isFn(appOptions.onLaunch)) {
  2310. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2311. vm.__call_hook('onLaunch', args);
  2312. }
  2313. return vm;
  2314. }
  2315. function createPlugin(vm) {
  2316. var appOptions = parseApp(vm);
  2317. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2318. wx.onAppShow(function () {
  2319. for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
  2320. args[_key7] = arguments[_key7];
  2321. }
  2322. vm.__call_hook('onShow', args);
  2323. });
  2324. }
  2325. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2326. wx.onAppHide(function () {
  2327. for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
  2328. args[_key8] = arguments[_key8];
  2329. }
  2330. vm.__call_hook('onHide', args);
  2331. });
  2332. }
  2333. if (isFn(appOptions.onLaunch)) {
  2334. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2335. vm.__call_hook('onLaunch', args);
  2336. }
  2337. return vm;
  2338. }
  2339. todos.forEach(function (todoApi) {
  2340. protocols[todoApi] = false;
  2341. });
  2342. canIUses.forEach(function (canIUseApi) {
  2343. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
  2344. if (!wx.canIUse(apiName)) {
  2345. protocols[canIUseApi] = false;
  2346. }
  2347. });
  2348. var uni = {};
  2349. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  2350. uni = new Proxy({}, {
  2351. get: function get(target, name) {
  2352. if (hasOwn(target, name)) {
  2353. return target[name];
  2354. }
  2355. if (baseApi[name]) {
  2356. return baseApi[name];
  2357. }
  2358. if (api[name]) {
  2359. return promisify(name, api[name]);
  2360. }
  2361. {
  2362. if (extraApi[name]) {
  2363. return promisify(name, extraApi[name]);
  2364. }
  2365. if (todoApis[name]) {
  2366. return promisify(name, todoApis[name]);
  2367. }
  2368. }
  2369. if (eventApi[name]) {
  2370. return eventApi[name];
  2371. }
  2372. return promisify(name, wrapper(name, wx[name]));
  2373. },
  2374. set: function set(target, name, value) {
  2375. target[name] = value;
  2376. return true;
  2377. }
  2378. });
  2379. } else {
  2380. Object.keys(baseApi).forEach(function (name) {
  2381. uni[name] = baseApi[name];
  2382. });
  2383. {
  2384. Object.keys(todoApis).forEach(function (name) {
  2385. uni[name] = promisify(name, todoApis[name]);
  2386. });
  2387. Object.keys(extraApi).forEach(function (name) {
  2388. uni[name] = promisify(name, extraApi[name]);
  2389. });
  2390. }
  2391. Object.keys(eventApi).forEach(function (name) {
  2392. uni[name] = eventApi[name];
  2393. });
  2394. Object.keys(api).forEach(function (name) {
  2395. uni[name] = promisify(name, api[name]);
  2396. });
  2397. Object.keys(wx).forEach(function (name) {
  2398. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  2399. uni[name] = promisify(name, wrapper(name, wx[name]));
  2400. }
  2401. });
  2402. }
  2403. wx.createApp = createApp;
  2404. wx.createPage = createPage;
  2405. wx.createComponent = createComponent;
  2406. wx.createSubpackageApp = createSubpackageApp;
  2407. wx.createPlugin = createPlugin;
  2408. var uni$1 = uni;
  2409. var _default = uni$1;
  2410. exports.default = _default;
  2411. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 3)))
  2412. /***/ }),
  2413. /* 3 */
  2414. /*!***********************************!*\
  2415. !*** (webpack)/buildin/global.js ***!
  2416. \***********************************/
  2417. /*! no static exports found */
  2418. /***/ (function(module, exports) {
  2419. var g;
  2420. // This works in non-strict mode
  2421. g = (function() {
  2422. return this;
  2423. })();
  2424. try {
  2425. // This works if eval is allowed (see CSP)
  2426. g = g || new Function("return this")();
  2427. } catch (e) {
  2428. // This works if the window reference is available
  2429. if (typeof window === "object") g = window;
  2430. }
  2431. // g can still be undefined, but nothing to do about it...
  2432. // We return undefined, instead of nothing here, so it's
  2433. // easier to handle this case. if(!global) { ...}
  2434. module.exports = g;
  2435. /***/ }),
  2436. /* 4 */
  2437. /*!**********************************************************************!*\
  2438. !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  2439. \**********************************************************************/
  2440. /*! no static exports found */
  2441. /***/ (function(module, exports) {
  2442. function _interopRequireDefault(obj) {
  2443. return obj && obj.__esModule ? obj : {
  2444. "default": obj
  2445. };
  2446. }
  2447. module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2448. /***/ }),
  2449. /* 5 */
  2450. /*!**************************************************************!*\
  2451. !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  2452. \**************************************************************/
  2453. /*! no static exports found */
  2454. /***/ (function(module, exports, __webpack_require__) {
  2455. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  2456. var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 7);
  2457. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2458. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  2459. function _slicedToArray(arr, i) {
  2460. return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
  2461. }
  2462. module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2463. /***/ }),
  2464. /* 6 */
  2465. /*!***************************************************************!*\
  2466. !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  2467. \***************************************************************/
  2468. /*! no static exports found */
  2469. /***/ (function(module, exports) {
  2470. function _arrayWithHoles(arr) {
  2471. if (Array.isArray(arr)) return arr;
  2472. }
  2473. module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2474. /***/ }),
  2475. /* 7 */
  2476. /*!*********************************************************************!*\
  2477. !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  2478. \*********************************************************************/
  2479. /*! no static exports found */
  2480. /***/ (function(module, exports) {
  2481. function _iterableToArrayLimit(arr, i) {
  2482. var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
  2483. if (null != _i) {
  2484. var _s,
  2485. _e,
  2486. _x,
  2487. _r,
  2488. _arr = [],
  2489. _n = !0,
  2490. _d = !1;
  2491. try {
  2492. if (_x = (_i = _i.call(arr)).next, 0 === i) {
  2493. if (Object(_i) !== _i) return;
  2494. _n = !1;
  2495. } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
  2496. ;
  2497. }
  2498. } catch (err) {
  2499. _d = !0, _e = err;
  2500. } finally {
  2501. try {
  2502. if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
  2503. } finally {
  2504. if (_d) throw _e;
  2505. }
  2506. }
  2507. return _arr;
  2508. }
  2509. }
  2510. module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2511. /***/ }),
  2512. /* 8 */
  2513. /*!***************************************************************************!*\
  2514. !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  2515. \***************************************************************************/
  2516. /*! no static exports found */
  2517. /***/ (function(module, exports, __webpack_require__) {
  2518. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2519. function _unsupportedIterableToArray(o, minLen) {
  2520. if (!o) return;
  2521. if (typeof o === "string") return arrayLikeToArray(o, minLen);
  2522. var n = Object.prototype.toString.call(o).slice(8, -1);
  2523. if (n === "Object" && o.constructor) n = o.constructor.name;
  2524. if (n === "Map" || n === "Set") return Array.from(o);
  2525. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
  2526. }
  2527. module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2528. /***/ }),
  2529. /* 9 */
  2530. /*!*****************************************************************!*\
  2531. !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  2532. \*****************************************************************/
  2533. /*! no static exports found */
  2534. /***/ (function(module, exports) {
  2535. function _arrayLikeToArray(arr, len) {
  2536. if (len == null || len > arr.length) len = arr.length;
  2537. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  2538. arr2[i] = arr[i];
  2539. }
  2540. return arr2;
  2541. }
  2542. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2543. /***/ }),
  2544. /* 10 */
  2545. /*!****************************************************************!*\
  2546. !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
  2547. \****************************************************************/
  2548. /*! no static exports found */
  2549. /***/ (function(module, exports) {
  2550. function _nonIterableRest() {
  2551. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2552. }
  2553. module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2554. /***/ }),
  2555. /* 11 */
  2556. /*!***************************************************************!*\
  2557. !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  2558. \***************************************************************/
  2559. /*! no static exports found */
  2560. /***/ (function(module, exports, __webpack_require__) {
  2561. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  2562. function _defineProperty(obj, key, value) {
  2563. key = toPropertyKey(key);
  2564. if (key in obj) {
  2565. Object.defineProperty(obj, key, {
  2566. value: value,
  2567. enumerable: true,
  2568. configurable: true,
  2569. writable: true
  2570. });
  2571. } else {
  2572. obj[key] = value;
  2573. }
  2574. return obj;
  2575. }
  2576. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2577. /***/ }),
  2578. /* 12 */
  2579. /*!**************************************************************!*\
  2580. !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  2581. \**************************************************************/
  2582. /*! no static exports found */
  2583. /***/ (function(module, exports, __webpack_require__) {
  2584. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2585. var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
  2586. function _toPropertyKey(arg) {
  2587. var key = toPrimitive(arg, "string");
  2588. return _typeof(key) === "symbol" ? key : String(key);
  2589. }
  2590. module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2591. /***/ }),
  2592. /* 13 */
  2593. /*!*******************************************************!*\
  2594. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  2595. \*******************************************************/
  2596. /*! no static exports found */
  2597. /***/ (function(module, exports) {
  2598. function _typeof(obj) {
  2599. "@babel/helpers - typeof";
  2600. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
  2601. return typeof obj;
  2602. } : function (obj) {
  2603. return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  2604. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
  2605. }
  2606. module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2607. /***/ }),
  2608. /* 14 */
  2609. /*!************************************************************!*\
  2610. !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  2611. \************************************************************/
  2612. /*! no static exports found */
  2613. /***/ (function(module, exports, __webpack_require__) {
  2614. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2615. function _toPrimitive(input, hint) {
  2616. if (_typeof(input) !== "object" || input === null) return input;
  2617. var prim = input[Symbol.toPrimitive];
  2618. if (prim !== undefined) {
  2619. var res = prim.call(input, hint || "default");
  2620. if (_typeof(res) !== "object") return res;
  2621. throw new TypeError("@@toPrimitive must return a primitive value.");
  2622. }
  2623. return (hint === "string" ? String : Number)(input);
  2624. }
  2625. module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2626. /***/ }),
  2627. /* 15 */
  2628. /*!**********************************************************!*\
  2629. !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
  2630. \**********************************************************/
  2631. /*! no static exports found */
  2632. /***/ (function(module, exports, __webpack_require__) {
  2633. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  2634. var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 17);
  2635. function _construct(Parent, args, Class) {
  2636. if (isNativeReflectConstruct()) {
  2637. module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports;
  2638. } else {
  2639. module.exports = _construct = function _construct(Parent, args, Class) {
  2640. var a = [null];
  2641. a.push.apply(a, args);
  2642. var Constructor = Function.bind.apply(Parent, a);
  2643. var instance = new Constructor();
  2644. if (Class) setPrototypeOf(instance, Class.prototype);
  2645. return instance;
  2646. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2647. }
  2648. return _construct.apply(null, arguments);
  2649. }
  2650. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2651. /***/ }),
  2652. /* 16 */
  2653. /*!***************************************************************!*\
  2654. !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  2655. \***************************************************************/
  2656. /*! no static exports found */
  2657. /***/ (function(module, exports) {
  2658. function _setPrototypeOf(o, p) {
  2659. module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  2660. o.__proto__ = p;
  2661. return o;
  2662. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2663. return _setPrototypeOf(o, p);
  2664. }
  2665. module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2666. /***/ }),
  2667. /* 17 */
  2668. /*!*************************************************************************!*\
  2669. !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  2670. \*************************************************************************/
  2671. /*! no static exports found */
  2672. /***/ (function(module, exports) {
  2673. function _isNativeReflectConstruct() {
  2674. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  2675. if (Reflect.construct.sham) return false;
  2676. if (typeof Proxy === "function") return true;
  2677. try {
  2678. Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  2679. return true;
  2680. } catch (e) {
  2681. return false;
  2682. }
  2683. }
  2684. module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2685. /***/ }),
  2686. /* 18 */
  2687. /*!******************************************************************!*\
  2688. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  2689. \******************************************************************/
  2690. /*! no static exports found */
  2691. /***/ (function(module, exports, __webpack_require__) {
  2692. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 19);
  2693. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  2694. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2695. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 21);
  2696. function _toConsumableArray(arr) {
  2697. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  2698. }
  2699. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2700. /***/ }),
  2701. /* 19 */
  2702. /*!******************************************************************!*\
  2703. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  2704. \******************************************************************/
  2705. /*! no static exports found */
  2706. /***/ (function(module, exports, __webpack_require__) {
  2707. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2708. function _arrayWithoutHoles(arr) {
  2709. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  2710. }
  2711. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2712. /***/ }),
  2713. /* 20 */
  2714. /*!****************************************************************!*\
  2715. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  2716. \****************************************************************/
  2717. /*! no static exports found */
  2718. /***/ (function(module, exports) {
  2719. function _iterableToArray(iter) {
  2720. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  2721. }
  2722. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2723. /***/ }),
  2724. /* 21 */
  2725. /*!******************************************************************!*\
  2726. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  2727. \******************************************************************/
  2728. /*! no static exports found */
  2729. /***/ (function(module, exports) {
  2730. function _nonIterableSpread() {
  2731. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2732. }
  2733. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2734. /***/ }),
  2735. /* 22 */
  2736. /*!*************************************************************!*\
  2737. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  2738. \*************************************************************/
  2739. /*! no static exports found */
  2740. /***/ (function(module, exports, __webpack_require__) {
  2741. "use strict";
  2742. /* WEBPACK VAR INJECTION */(function(uni, global) {
  2743. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  2744. Object.defineProperty(exports, "__esModule", {
  2745. value: true
  2746. });
  2747. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  2748. exports.compileI18nJsonStr = compileI18nJsonStr;
  2749. exports.hasI18nJson = hasI18nJson;
  2750. exports.initVueI18n = initVueI18n;
  2751. exports.isI18nStr = isI18nStr;
  2752. exports.isString = void 0;
  2753. exports.normalizeLocale = normalizeLocale;
  2754. exports.parseI18nJson = parseI18nJson;
  2755. exports.resolveLocale = resolveLocale;
  2756. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  2757. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  2758. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  2759. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  2760. var isObject = function isObject(val) {
  2761. return val !== null && (0, _typeof2.default)(val) === 'object';
  2762. };
  2763. var defaultDelimiters = ['{', '}'];
  2764. var BaseFormatter = /*#__PURE__*/function () {
  2765. function BaseFormatter() {
  2766. (0, _classCallCheck2.default)(this, BaseFormatter);
  2767. this._caches = Object.create(null);
  2768. }
  2769. (0, _createClass2.default)(BaseFormatter, [{
  2770. key: "interpolate",
  2771. value: function interpolate(message, values) {
  2772. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  2773. if (!values) {
  2774. return [message];
  2775. }
  2776. var tokens = this._caches[message];
  2777. if (!tokens) {
  2778. tokens = parse(message, delimiters);
  2779. this._caches[message] = tokens;
  2780. }
  2781. return compile(tokens, values);
  2782. }
  2783. }]);
  2784. return BaseFormatter;
  2785. }();
  2786. exports.Formatter = BaseFormatter;
  2787. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  2788. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  2789. function parse(format, _ref) {
  2790. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  2791. startDelimiter = _ref2[0],
  2792. endDelimiter = _ref2[1];
  2793. var tokens = [];
  2794. var position = 0;
  2795. var text = '';
  2796. while (position < format.length) {
  2797. var char = format[position++];
  2798. if (char === startDelimiter) {
  2799. if (text) {
  2800. tokens.push({
  2801. type: 'text',
  2802. value: text
  2803. });
  2804. }
  2805. text = '';
  2806. var sub = '';
  2807. char = format[position++];
  2808. while (char !== undefined && char !== endDelimiter) {
  2809. sub += char;
  2810. char = format[position++];
  2811. }
  2812. var isClosed = char === endDelimiter;
  2813. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  2814. tokens.push({
  2815. value: sub,
  2816. type: type
  2817. });
  2818. }
  2819. // else if (char === '%') {
  2820. // // when found rails i18n syntax, skip text capture
  2821. // if (format[position] !== '{') {
  2822. // text += char
  2823. // }
  2824. // }
  2825. else {
  2826. text += char;
  2827. }
  2828. }
  2829. text && tokens.push({
  2830. type: 'text',
  2831. value: text
  2832. });
  2833. return tokens;
  2834. }
  2835. function compile(tokens, values) {
  2836. var compiled = [];
  2837. var index = 0;
  2838. var mode = Array.isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  2839. if (mode === 'unknown') {
  2840. return compiled;
  2841. }
  2842. while (index < tokens.length) {
  2843. var token = tokens[index];
  2844. switch (token.type) {
  2845. case 'text':
  2846. compiled.push(token.value);
  2847. break;
  2848. case 'list':
  2849. compiled.push(values[parseInt(token.value, 10)]);
  2850. break;
  2851. case 'named':
  2852. if (mode === 'named') {
  2853. compiled.push(values[token.value]);
  2854. } else {
  2855. if (true) {
  2856. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  2857. }
  2858. }
  2859. break;
  2860. case 'unknown':
  2861. if (true) {
  2862. console.warn("Detect 'unknown' type of token!");
  2863. }
  2864. break;
  2865. }
  2866. index++;
  2867. }
  2868. return compiled;
  2869. }
  2870. var LOCALE_ZH_HANS = 'zh-Hans';
  2871. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  2872. var LOCALE_ZH_HANT = 'zh-Hant';
  2873. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  2874. var LOCALE_EN = 'en';
  2875. exports.LOCALE_EN = LOCALE_EN;
  2876. var LOCALE_FR = 'fr';
  2877. exports.LOCALE_FR = LOCALE_FR;
  2878. var LOCALE_ES = 'es';
  2879. exports.LOCALE_ES = LOCALE_ES;
  2880. var hasOwnProperty = Object.prototype.hasOwnProperty;
  2881. var hasOwn = function hasOwn(val, key) {
  2882. return hasOwnProperty.call(val, key);
  2883. };
  2884. var defaultFormatter = new BaseFormatter();
  2885. function include(str, parts) {
  2886. return !!parts.find(function (part) {
  2887. return str.indexOf(part) !== -1;
  2888. });
  2889. }
  2890. function startsWith(str, parts) {
  2891. return parts.find(function (part) {
  2892. return str.indexOf(part) === 0;
  2893. });
  2894. }
  2895. function normalizeLocale(locale, messages) {
  2896. if (!locale) {
  2897. return;
  2898. }
  2899. locale = locale.trim().replace(/_/g, '-');
  2900. if (messages && messages[locale]) {
  2901. return locale;
  2902. }
  2903. locale = locale.toLowerCase();
  2904. if (locale === 'chinese') {
  2905. // 支付宝
  2906. return LOCALE_ZH_HANS;
  2907. }
  2908. if (locale.indexOf('zh') === 0) {
  2909. if (locale.indexOf('-hans') > -1) {
  2910. return LOCALE_ZH_HANS;
  2911. }
  2912. if (locale.indexOf('-hant') > -1) {
  2913. return LOCALE_ZH_HANT;
  2914. }
  2915. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  2916. return LOCALE_ZH_HANT;
  2917. }
  2918. return LOCALE_ZH_HANS;
  2919. }
  2920. var locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES];
  2921. if (messages && Object.keys(messages).length > 0) {
  2922. locales = Object.keys(messages);
  2923. }
  2924. var lang = startsWith(locale, locales);
  2925. if (lang) {
  2926. return lang;
  2927. }
  2928. }
  2929. var I18n = /*#__PURE__*/function () {
  2930. function I18n(_ref3) {
  2931. var locale = _ref3.locale,
  2932. fallbackLocale = _ref3.fallbackLocale,
  2933. messages = _ref3.messages,
  2934. watcher = _ref3.watcher,
  2935. formater = _ref3.formater;
  2936. (0, _classCallCheck2.default)(this, I18n);
  2937. this.locale = LOCALE_EN;
  2938. this.fallbackLocale = LOCALE_EN;
  2939. this.message = {};
  2940. this.messages = {};
  2941. this.watchers = [];
  2942. if (fallbackLocale) {
  2943. this.fallbackLocale = fallbackLocale;
  2944. }
  2945. this.formater = formater || defaultFormatter;
  2946. this.messages = messages || {};
  2947. this.setLocale(locale || LOCALE_EN);
  2948. if (watcher) {
  2949. this.watchLocale(watcher);
  2950. }
  2951. }
  2952. (0, _createClass2.default)(I18n, [{
  2953. key: "setLocale",
  2954. value: function setLocale(locale) {
  2955. var _this = this;
  2956. var oldLocale = this.locale;
  2957. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  2958. if (!this.messages[this.locale]) {
  2959. // 可能初始化时不存在
  2960. this.messages[this.locale] = {};
  2961. }
  2962. this.message = this.messages[this.locale];
  2963. // 仅发生变化时,通知
  2964. if (oldLocale !== this.locale) {
  2965. this.watchers.forEach(function (watcher) {
  2966. watcher(_this.locale, oldLocale);
  2967. });
  2968. }
  2969. }
  2970. }, {
  2971. key: "getLocale",
  2972. value: function getLocale() {
  2973. return this.locale;
  2974. }
  2975. }, {
  2976. key: "watchLocale",
  2977. value: function watchLocale(fn) {
  2978. var _this2 = this;
  2979. var index = this.watchers.push(fn) - 1;
  2980. return function () {
  2981. _this2.watchers.splice(index, 1);
  2982. };
  2983. }
  2984. }, {
  2985. key: "add",
  2986. value: function add(locale, message) {
  2987. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  2988. var curMessages = this.messages[locale];
  2989. if (curMessages) {
  2990. if (override) {
  2991. Object.assign(curMessages, message);
  2992. } else {
  2993. Object.keys(message).forEach(function (key) {
  2994. if (!hasOwn(curMessages, key)) {
  2995. curMessages[key] = message[key];
  2996. }
  2997. });
  2998. }
  2999. } else {
  3000. this.messages[locale] = message;
  3001. }
  3002. }
  3003. }, {
  3004. key: "f",
  3005. value: function f(message, values, delimiters) {
  3006. return this.formater.interpolate(message, values, delimiters).join('');
  3007. }
  3008. }, {
  3009. key: "t",
  3010. value: function t(key, locale, values) {
  3011. var message = this.message;
  3012. if (typeof locale === 'string') {
  3013. locale = normalizeLocale(locale, this.messages);
  3014. locale && (message = this.messages[locale]);
  3015. } else {
  3016. values = locale;
  3017. }
  3018. if (!hasOwn(message, key)) {
  3019. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  3020. return key;
  3021. }
  3022. return this.formater.interpolate(message[key], values).join('');
  3023. }
  3024. }]);
  3025. return I18n;
  3026. }();
  3027. exports.I18n = I18n;
  3028. function watchAppLocale(appVm, i18n) {
  3029. // 需要保证 watch 的触发在组件渲染之前
  3030. if (appVm.$watchLocale) {
  3031. // vue2
  3032. appVm.$watchLocale(function (newLocale) {
  3033. i18n.setLocale(newLocale);
  3034. });
  3035. } else {
  3036. appVm.$watch(function () {
  3037. return appVm.$locale;
  3038. }, function (newLocale) {
  3039. i18n.setLocale(newLocale);
  3040. });
  3041. }
  3042. }
  3043. function getDefaultLocale() {
  3044. if (typeof uni !== 'undefined' && uni.getLocale) {
  3045. return uni.getLocale();
  3046. }
  3047. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  3048. if (typeof global !== 'undefined' && global.getLocale) {
  3049. return global.getLocale();
  3050. }
  3051. return LOCALE_EN;
  3052. }
  3053. function initVueI18n(locale) {
  3054. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3055. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  3056. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  3057. // 兼容旧版本入参
  3058. if (typeof locale !== 'string') {
  3059. var _ref4 = [messages, locale];
  3060. locale = _ref4[0];
  3061. messages = _ref4[1];
  3062. }
  3063. if (typeof locale !== 'string') {
  3064. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  3065. locale = getDefaultLocale();
  3066. }
  3067. if (typeof fallbackLocale !== 'string') {
  3068. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  3069. }
  3070. var i18n = new I18n({
  3071. locale: locale,
  3072. fallbackLocale: fallbackLocale,
  3073. messages: messages,
  3074. watcher: watcher
  3075. });
  3076. var _t = function t(key, values) {
  3077. if (typeof getApp !== 'function') {
  3078. // app view
  3079. /* eslint-disable no-func-assign */
  3080. _t = function t(key, values) {
  3081. return i18n.t(key, values);
  3082. };
  3083. } else {
  3084. var isWatchedAppLocale = false;
  3085. _t = function t(key, values) {
  3086. var appVm = getApp().$vm;
  3087. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  3088. // options: {
  3089. // type: Array,
  3090. // default () {
  3091. // return [{
  3092. // icon: 'shop',
  3093. // text: t("uni-goods-nav.options.shop"),
  3094. // }, {
  3095. // icon: 'cart',
  3096. // text: t("uni-goods-nav.options.cart")
  3097. // }]
  3098. // }
  3099. // },
  3100. if (appVm) {
  3101. // 触发响应式
  3102. appVm.$locale;
  3103. if (!isWatchedAppLocale) {
  3104. isWatchedAppLocale = true;
  3105. watchAppLocale(appVm, i18n);
  3106. }
  3107. }
  3108. return i18n.t(key, values);
  3109. };
  3110. }
  3111. return _t(key, values);
  3112. };
  3113. return {
  3114. i18n: i18n,
  3115. f: function f(message, values, delimiters) {
  3116. return i18n.f(message, values, delimiters);
  3117. },
  3118. t: function t(key, values) {
  3119. return _t(key, values);
  3120. },
  3121. add: function add(locale, message) {
  3122. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3123. return i18n.add(locale, message, override);
  3124. },
  3125. watch: function watch(fn) {
  3126. return i18n.watchLocale(fn);
  3127. },
  3128. getLocale: function getLocale() {
  3129. return i18n.getLocale();
  3130. },
  3131. setLocale: function setLocale(newLocale) {
  3132. return i18n.setLocale(newLocale);
  3133. }
  3134. };
  3135. }
  3136. var isString = function isString(val) {
  3137. return typeof val === 'string';
  3138. };
  3139. exports.isString = isString;
  3140. var formater;
  3141. function hasI18nJson(jsonObj, delimiters) {
  3142. if (!formater) {
  3143. formater = new BaseFormatter();
  3144. }
  3145. return walkJsonObj(jsonObj, function (jsonObj, key) {
  3146. var value = jsonObj[key];
  3147. if (isString(value)) {
  3148. if (isI18nStr(value, delimiters)) {
  3149. return true;
  3150. }
  3151. } else {
  3152. return hasI18nJson(value, delimiters);
  3153. }
  3154. });
  3155. }
  3156. function parseI18nJson(jsonObj, values, delimiters) {
  3157. if (!formater) {
  3158. formater = new BaseFormatter();
  3159. }
  3160. walkJsonObj(jsonObj, function (jsonObj, key) {
  3161. var value = jsonObj[key];
  3162. if (isString(value)) {
  3163. if (isI18nStr(value, delimiters)) {
  3164. jsonObj[key] = compileStr(value, values, delimiters);
  3165. }
  3166. } else {
  3167. parseI18nJson(value, values, delimiters);
  3168. }
  3169. });
  3170. return jsonObj;
  3171. }
  3172. function compileI18nJsonStr(jsonStr, _ref5) {
  3173. var locale = _ref5.locale,
  3174. locales = _ref5.locales,
  3175. delimiters = _ref5.delimiters;
  3176. if (!isI18nStr(jsonStr, delimiters)) {
  3177. return jsonStr;
  3178. }
  3179. if (!formater) {
  3180. formater = new BaseFormatter();
  3181. }
  3182. var localeValues = [];
  3183. Object.keys(locales).forEach(function (name) {
  3184. if (name !== locale) {
  3185. localeValues.push({
  3186. locale: name,
  3187. values: locales[name]
  3188. });
  3189. }
  3190. });
  3191. localeValues.unshift({
  3192. locale: locale,
  3193. values: locales[locale]
  3194. });
  3195. try {
  3196. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  3197. } catch (e) {}
  3198. return jsonStr;
  3199. }
  3200. function isI18nStr(value, delimiters) {
  3201. return value.indexOf(delimiters[0]) > -1;
  3202. }
  3203. function compileStr(value, values, delimiters) {
  3204. return formater.interpolate(value, values, delimiters).join('');
  3205. }
  3206. function compileValue(jsonObj, key, localeValues, delimiters) {
  3207. var value = jsonObj[key];
  3208. if (isString(value)) {
  3209. // 存在国际化
  3210. if (isI18nStr(value, delimiters)) {
  3211. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  3212. if (localeValues.length > 1) {
  3213. // 格式化国际化语言
  3214. var valueLocales = jsonObj[key + 'Locales'] = {};
  3215. localeValues.forEach(function (localValue) {
  3216. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  3217. });
  3218. }
  3219. }
  3220. } else {
  3221. compileJsonObj(value, localeValues, delimiters);
  3222. }
  3223. }
  3224. function compileJsonObj(jsonObj, localeValues, delimiters) {
  3225. walkJsonObj(jsonObj, function (jsonObj, key) {
  3226. compileValue(jsonObj, key, localeValues, delimiters);
  3227. });
  3228. return jsonObj;
  3229. }
  3230. function walkJsonObj(jsonObj, walk) {
  3231. if (Array.isArray(jsonObj)) {
  3232. for (var i = 0; i < jsonObj.length; i++) {
  3233. if (walk(jsonObj, i)) {
  3234. return true;
  3235. }
  3236. }
  3237. } else if (isObject(jsonObj)) {
  3238. for (var key in jsonObj) {
  3239. if (walk(jsonObj, key)) {
  3240. return true;
  3241. }
  3242. }
  3243. }
  3244. return false;
  3245. }
  3246. function resolveLocale(locales) {
  3247. return function (locale) {
  3248. if (!locale) {
  3249. return locale;
  3250. }
  3251. locale = normalizeLocale(locale) || locale;
  3252. return resolveLocaleChain(locale).find(function (locale) {
  3253. return locales.indexOf(locale) > -1;
  3254. });
  3255. };
  3256. }
  3257. function resolveLocaleChain(locale) {
  3258. var chain = [];
  3259. var tokens = locale.split('-');
  3260. while (tokens.length) {
  3261. chain.push(tokens.join('-'));
  3262. tokens.pop();
  3263. }
  3264. return chain;
  3265. }
  3266. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 3)))
  3267. /***/ }),
  3268. /* 23 */
  3269. /*!***************************************************************!*\
  3270. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  3271. \***************************************************************/
  3272. /*! no static exports found */
  3273. /***/ (function(module, exports) {
  3274. function _classCallCheck(instance, Constructor) {
  3275. if (!(instance instanceof Constructor)) {
  3276. throw new TypeError("Cannot call a class as a function");
  3277. }
  3278. }
  3279. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3280. /***/ }),
  3281. /* 24 */
  3282. /*!************************************************************!*\
  3283. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  3284. \************************************************************/
  3285. /*! no static exports found */
  3286. /***/ (function(module, exports, __webpack_require__) {
  3287. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  3288. function _defineProperties(target, props) {
  3289. for (var i = 0; i < props.length; i++) {
  3290. var descriptor = props[i];
  3291. descriptor.enumerable = descriptor.enumerable || false;
  3292. descriptor.configurable = true;
  3293. if ("value" in descriptor) descriptor.writable = true;
  3294. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  3295. }
  3296. }
  3297. function _createClass(Constructor, protoProps, staticProps) {
  3298. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  3299. if (staticProps) _defineProperties(Constructor, staticProps);
  3300. Object.defineProperty(Constructor, "prototype", {
  3301. writable: false
  3302. });
  3303. return Constructor;
  3304. }
  3305. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3306. /***/ }),
  3307. /* 25 */
  3308. /*!******************************************************************************************!*\
  3309. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  3310. \******************************************************************************************/
  3311. /*! exports provided: default */
  3312. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3313. "use strict";
  3314. __webpack_require__.r(__webpack_exports__);
  3315. /* WEBPACK VAR INJECTION */(function(global) {/*!
  3316. * Vue.js v2.6.11
  3317. * (c) 2014-2023 Evan You
  3318. * Released under the MIT License.
  3319. */
  3320. /* */
  3321. var emptyObject = Object.freeze({});
  3322. // These helpers produce better VM code in JS engines due to their
  3323. // explicitness and function inlining.
  3324. function isUndef (v) {
  3325. return v === undefined || v === null
  3326. }
  3327. function isDef (v) {
  3328. return v !== undefined && v !== null
  3329. }
  3330. function isTrue (v) {
  3331. return v === true
  3332. }
  3333. function isFalse (v) {
  3334. return v === false
  3335. }
  3336. /**
  3337. * Check if value is primitive.
  3338. */
  3339. function isPrimitive (value) {
  3340. return (
  3341. typeof value === 'string' ||
  3342. typeof value === 'number' ||
  3343. // $flow-disable-line
  3344. typeof value === 'symbol' ||
  3345. typeof value === 'boolean'
  3346. )
  3347. }
  3348. /**
  3349. * Quick object check - this is primarily used to tell
  3350. * Objects from primitive values when we know the value
  3351. * is a JSON-compliant type.
  3352. */
  3353. function isObject (obj) {
  3354. return obj !== null && typeof obj === 'object'
  3355. }
  3356. /**
  3357. * Get the raw type string of a value, e.g., [object Object].
  3358. */
  3359. var _toString = Object.prototype.toString;
  3360. function toRawType (value) {
  3361. return _toString.call(value).slice(8, -1)
  3362. }
  3363. /**
  3364. * Strict object type check. Only returns true
  3365. * for plain JavaScript objects.
  3366. */
  3367. function isPlainObject (obj) {
  3368. return _toString.call(obj) === '[object Object]'
  3369. }
  3370. function isRegExp (v) {
  3371. return _toString.call(v) === '[object RegExp]'
  3372. }
  3373. /**
  3374. * Check if val is a valid array index.
  3375. */
  3376. function isValidArrayIndex (val) {
  3377. var n = parseFloat(String(val));
  3378. return n >= 0 && Math.floor(n) === n && isFinite(val)
  3379. }
  3380. function isPromise (val) {
  3381. return (
  3382. isDef(val) &&
  3383. typeof val.then === 'function' &&
  3384. typeof val.catch === 'function'
  3385. )
  3386. }
  3387. /**
  3388. * Convert a value to a string that is actually rendered.
  3389. */
  3390. function toString (val) {
  3391. return val == null
  3392. ? ''
  3393. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  3394. ? JSON.stringify(val, null, 2)
  3395. : String(val)
  3396. }
  3397. /**
  3398. * Convert an input value to a number for persistence.
  3399. * If the conversion fails, return original string.
  3400. */
  3401. function toNumber (val) {
  3402. var n = parseFloat(val);
  3403. return isNaN(n) ? val : n
  3404. }
  3405. /**
  3406. * Make a map and return a function for checking if a key
  3407. * is in that map.
  3408. */
  3409. function makeMap (
  3410. str,
  3411. expectsLowerCase
  3412. ) {
  3413. var map = Object.create(null);
  3414. var list = str.split(',');
  3415. for (var i = 0; i < list.length; i++) {
  3416. map[list[i]] = true;
  3417. }
  3418. return expectsLowerCase
  3419. ? function (val) { return map[val.toLowerCase()]; }
  3420. : function (val) { return map[val]; }
  3421. }
  3422. /**
  3423. * Check if a tag is a built-in tag.
  3424. */
  3425. var isBuiltInTag = makeMap('slot,component', true);
  3426. /**
  3427. * Check if an attribute is a reserved attribute.
  3428. */
  3429. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  3430. /**
  3431. * Remove an item from an array.
  3432. */
  3433. function remove (arr, item) {
  3434. if (arr.length) {
  3435. var index = arr.indexOf(item);
  3436. if (index > -1) {
  3437. return arr.splice(index, 1)
  3438. }
  3439. }
  3440. }
  3441. /**
  3442. * Check whether an object has the property.
  3443. */
  3444. var hasOwnProperty = Object.prototype.hasOwnProperty;
  3445. function hasOwn (obj, key) {
  3446. return hasOwnProperty.call(obj, key)
  3447. }
  3448. /**
  3449. * Create a cached version of a pure function.
  3450. */
  3451. function cached (fn) {
  3452. var cache = Object.create(null);
  3453. return (function cachedFn (str) {
  3454. var hit = cache[str];
  3455. return hit || (cache[str] = fn(str))
  3456. })
  3457. }
  3458. /**
  3459. * Camelize a hyphen-delimited string.
  3460. */
  3461. var camelizeRE = /-(\w)/g;
  3462. var camelize = cached(function (str) {
  3463. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  3464. });
  3465. /**
  3466. * Capitalize a string.
  3467. */
  3468. var capitalize = cached(function (str) {
  3469. return str.charAt(0).toUpperCase() + str.slice(1)
  3470. });
  3471. /**
  3472. * Hyphenate a camelCase string.
  3473. */
  3474. var hyphenateRE = /\B([A-Z])/g;
  3475. var hyphenate = cached(function (str) {
  3476. return str.replace(hyphenateRE, '-$1').toLowerCase()
  3477. });
  3478. /**
  3479. * Simple bind polyfill for environments that do not support it,
  3480. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  3481. * since native bind is now performant enough in most browsers.
  3482. * But removing it would mean breaking code that was able to run in
  3483. * PhantomJS 1.x, so this must be kept for backward compatibility.
  3484. */
  3485. /* istanbul ignore next */
  3486. function polyfillBind (fn, ctx) {
  3487. function boundFn (a) {
  3488. var l = arguments.length;
  3489. return l
  3490. ? l > 1
  3491. ? fn.apply(ctx, arguments)
  3492. : fn.call(ctx, a)
  3493. : fn.call(ctx)
  3494. }
  3495. boundFn._length = fn.length;
  3496. return boundFn
  3497. }
  3498. function nativeBind (fn, ctx) {
  3499. return fn.bind(ctx)
  3500. }
  3501. var bind = Function.prototype.bind
  3502. ? nativeBind
  3503. : polyfillBind;
  3504. /**
  3505. * Convert an Array-like object to a real Array.
  3506. */
  3507. function toArray (list, start) {
  3508. start = start || 0;
  3509. var i = list.length - start;
  3510. var ret = new Array(i);
  3511. while (i--) {
  3512. ret[i] = list[i + start];
  3513. }
  3514. return ret
  3515. }
  3516. /**
  3517. * Mix properties into target object.
  3518. */
  3519. function extend (to, _from) {
  3520. for (var key in _from) {
  3521. to[key] = _from[key];
  3522. }
  3523. return to
  3524. }
  3525. /**
  3526. * Merge an Array of Objects into a single Object.
  3527. */
  3528. function toObject (arr) {
  3529. var res = {};
  3530. for (var i = 0; i < arr.length; i++) {
  3531. if (arr[i]) {
  3532. extend(res, arr[i]);
  3533. }
  3534. }
  3535. return res
  3536. }
  3537. /* eslint-disable no-unused-vars */
  3538. /**
  3539. * Perform no operation.
  3540. * Stubbing args to make Flow happy without leaving useless transpiled code
  3541. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  3542. */
  3543. function noop (a, b, c) {}
  3544. /**
  3545. * Always return false.
  3546. */
  3547. var no = function (a, b, c) { return false; };
  3548. /* eslint-enable no-unused-vars */
  3549. /**
  3550. * Return the same value.
  3551. */
  3552. var identity = function (_) { return _; };
  3553. /**
  3554. * Check if two values are loosely equal - that is,
  3555. * if they are plain objects, do they have the same shape?
  3556. */
  3557. function looseEqual (a, b) {
  3558. if (a === b) { return true }
  3559. var isObjectA = isObject(a);
  3560. var isObjectB = isObject(b);
  3561. if (isObjectA && isObjectB) {
  3562. try {
  3563. var isArrayA = Array.isArray(a);
  3564. var isArrayB = Array.isArray(b);
  3565. if (isArrayA && isArrayB) {
  3566. return a.length === b.length && a.every(function (e, i) {
  3567. return looseEqual(e, b[i])
  3568. })
  3569. } else if (a instanceof Date && b instanceof Date) {
  3570. return a.getTime() === b.getTime()
  3571. } else if (!isArrayA && !isArrayB) {
  3572. var keysA = Object.keys(a);
  3573. var keysB = Object.keys(b);
  3574. return keysA.length === keysB.length && keysA.every(function (key) {
  3575. return looseEqual(a[key], b[key])
  3576. })
  3577. } else {
  3578. /* istanbul ignore next */
  3579. return false
  3580. }
  3581. } catch (e) {
  3582. /* istanbul ignore next */
  3583. return false
  3584. }
  3585. } else if (!isObjectA && !isObjectB) {
  3586. return String(a) === String(b)
  3587. } else {
  3588. return false
  3589. }
  3590. }
  3591. /**
  3592. * Return the first index at which a loosely equal value can be
  3593. * found in the array (if value is a plain object, the array must
  3594. * contain an object of the same shape), or -1 if it is not present.
  3595. */
  3596. function looseIndexOf (arr, val) {
  3597. for (var i = 0; i < arr.length; i++) {
  3598. if (looseEqual(arr[i], val)) { return i }
  3599. }
  3600. return -1
  3601. }
  3602. /**
  3603. * Ensure a function is called only once.
  3604. */
  3605. function once (fn) {
  3606. var called = false;
  3607. return function () {
  3608. if (!called) {
  3609. called = true;
  3610. fn.apply(this, arguments);
  3611. }
  3612. }
  3613. }
  3614. var ASSET_TYPES = [
  3615. 'component',
  3616. 'directive',
  3617. 'filter'
  3618. ];
  3619. var LIFECYCLE_HOOKS = [
  3620. 'beforeCreate',
  3621. 'created',
  3622. 'beforeMount',
  3623. 'mounted',
  3624. 'beforeUpdate',
  3625. 'updated',
  3626. 'beforeDestroy',
  3627. 'destroyed',
  3628. 'activated',
  3629. 'deactivated',
  3630. 'errorCaptured',
  3631. 'serverPrefetch'
  3632. ];
  3633. /* */
  3634. var config = ({
  3635. /**
  3636. * Option merge strategies (used in core/util/options)
  3637. */
  3638. // $flow-disable-line
  3639. optionMergeStrategies: Object.create(null),
  3640. /**
  3641. * Whether to suppress warnings.
  3642. */
  3643. silent: false,
  3644. /**
  3645. * Show production mode tip message on boot?
  3646. */
  3647. productionTip: "development" !== 'production',
  3648. /**
  3649. * Whether to enable devtools
  3650. */
  3651. devtools: "development" !== 'production',
  3652. /**
  3653. * Whether to record perf
  3654. */
  3655. performance: false,
  3656. /**
  3657. * Error handler for watcher errors
  3658. */
  3659. errorHandler: null,
  3660. /**
  3661. * Warn handler for watcher warns
  3662. */
  3663. warnHandler: null,
  3664. /**
  3665. * Ignore certain custom elements
  3666. */
  3667. ignoredElements: [],
  3668. /**
  3669. * Custom user key aliases for v-on
  3670. */
  3671. // $flow-disable-line
  3672. keyCodes: Object.create(null),
  3673. /**
  3674. * Check if a tag is reserved so that it cannot be registered as a
  3675. * component. This is platform-dependent and may be overwritten.
  3676. */
  3677. isReservedTag: no,
  3678. /**
  3679. * Check if an attribute is reserved so that it cannot be used as a component
  3680. * prop. This is platform-dependent and may be overwritten.
  3681. */
  3682. isReservedAttr: no,
  3683. /**
  3684. * Check if a tag is an unknown element.
  3685. * Platform-dependent.
  3686. */
  3687. isUnknownElement: no,
  3688. /**
  3689. * Get the namespace of an element
  3690. */
  3691. getTagNamespace: noop,
  3692. /**
  3693. * Parse the real tag name for the specific platform.
  3694. */
  3695. parsePlatformTagName: identity,
  3696. /**
  3697. * Check if an attribute must be bound using property, e.g. value
  3698. * Platform-dependent.
  3699. */
  3700. mustUseProp: no,
  3701. /**
  3702. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  3703. * This will significantly reduce performance if set to false.
  3704. */
  3705. async: true,
  3706. /**
  3707. * Exposed for legacy reasons
  3708. */
  3709. _lifecycleHooks: LIFECYCLE_HOOKS
  3710. });
  3711. /* */
  3712. /**
  3713. * unicode letters used for parsing html tags, component names and property paths.
  3714. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  3715. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  3716. */
  3717. var unicodeRegExp = /a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;
  3718. /**
  3719. * Check if a string starts with $ or _
  3720. */
  3721. function isReserved (str) {
  3722. var c = (str + '').charCodeAt(0);
  3723. return c === 0x24 || c === 0x5F
  3724. }
  3725. /**
  3726. * Define a property.
  3727. */
  3728. function def (obj, key, val, enumerable) {
  3729. Object.defineProperty(obj, key, {
  3730. value: val,
  3731. enumerable: !!enumerable,
  3732. writable: true,
  3733. configurable: true
  3734. });
  3735. }
  3736. /**
  3737. * Parse simple path.
  3738. */
  3739. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  3740. function parsePath (path) {
  3741. if (bailRE.test(path)) {
  3742. return
  3743. }
  3744. var segments = path.split('.');
  3745. return function (obj) {
  3746. for (var i = 0; i < segments.length; i++) {
  3747. if (!obj) { return }
  3748. obj = obj[segments[i]];
  3749. }
  3750. return obj
  3751. }
  3752. }
  3753. /* */
  3754. // can we use __proto__?
  3755. var hasProto = '__proto__' in {};
  3756. // Browser environment sniffing
  3757. var inBrowser = typeof window !== 'undefined';
  3758. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  3759. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  3760. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  3761. var isIE = UA && /msie|trident/.test(UA);
  3762. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  3763. var isEdge = UA && UA.indexOf('edge/') > 0;
  3764. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  3765. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  3766. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  3767. var isPhantomJS = UA && /phantomjs/.test(UA);
  3768. var isFF = UA && UA.match(/firefox\/(\d+)/);
  3769. // Firefox has a "watch" function on Object.prototype...
  3770. var nativeWatch = ({}).watch;
  3771. if (inBrowser) {
  3772. try {
  3773. var opts = {};
  3774. Object.defineProperty(opts, 'passive', ({
  3775. get: function get () {
  3776. }
  3777. })); // https://github.com/facebook/flow/issues/285
  3778. window.addEventListener('test-passive', null, opts);
  3779. } catch (e) {}
  3780. }
  3781. // this needs to be lazy-evaled because vue may be required before
  3782. // vue-server-renderer can set VUE_ENV
  3783. var _isServer;
  3784. var isServerRendering = function () {
  3785. if (_isServer === undefined) {
  3786. /* istanbul ignore if */
  3787. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  3788. // detect presence of vue-server-renderer and avoid
  3789. // Webpack shimming the process
  3790. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  3791. } else {
  3792. _isServer = false;
  3793. }
  3794. }
  3795. return _isServer
  3796. };
  3797. // detect devtools
  3798. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  3799. /* istanbul ignore next */
  3800. function isNative (Ctor) {
  3801. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  3802. }
  3803. var hasSymbol =
  3804. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  3805. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  3806. var _Set;
  3807. /* istanbul ignore if */ // $flow-disable-line
  3808. if (typeof Set !== 'undefined' && isNative(Set)) {
  3809. // use native Set when available.
  3810. _Set = Set;
  3811. } else {
  3812. // a non-standard Set polyfill that only works with primitive keys.
  3813. _Set = /*@__PURE__*/(function () {
  3814. function Set () {
  3815. this.set = Object.create(null);
  3816. }
  3817. Set.prototype.has = function has (key) {
  3818. return this.set[key] === true
  3819. };
  3820. Set.prototype.add = function add (key) {
  3821. this.set[key] = true;
  3822. };
  3823. Set.prototype.clear = function clear () {
  3824. this.set = Object.create(null);
  3825. };
  3826. return Set;
  3827. }());
  3828. }
  3829. /* */
  3830. var warn = noop;
  3831. var tip = noop;
  3832. var generateComponentTrace = (noop); // work around flow check
  3833. var formatComponentName = (noop);
  3834. if (true) {
  3835. var hasConsole = typeof console !== 'undefined';
  3836. var classifyRE = /(?:^|[-_])(\w)/g;
  3837. var classify = function (str) { return str
  3838. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  3839. .replace(/[-_]/g, ''); };
  3840. warn = function (msg, vm) {
  3841. var trace = vm ? generateComponentTrace(vm) : '';
  3842. if (config.warnHandler) {
  3843. config.warnHandler.call(null, msg, vm, trace);
  3844. } else if (hasConsole && (!config.silent)) {
  3845. console.error(("[Vue warn]: " + msg + trace));
  3846. }
  3847. };
  3848. tip = function (msg, vm) {
  3849. if (hasConsole && (!config.silent)) {
  3850. console.warn("[Vue tip]: " + msg + (
  3851. vm ? generateComponentTrace(vm) : ''
  3852. ));
  3853. }
  3854. };
  3855. formatComponentName = function (vm, includeFile) {
  3856. if (vm.$root === vm) {
  3857. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  3858. return ('') + vm.$options.__file
  3859. }
  3860. return '<Root>'
  3861. }
  3862. var options = typeof vm === 'function' && vm.cid != null
  3863. ? vm.options
  3864. : vm._isVue
  3865. ? vm.$options || vm.constructor.options
  3866. : vm;
  3867. var name = options.name || options._componentTag;
  3868. var file = options.__file;
  3869. if (!name && file) {
  3870. var match = file.match(/([^/\\]+)\.vue$/);
  3871. name = match && match[1];
  3872. }
  3873. return (
  3874. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  3875. (file && includeFile !== false ? (" at " + file) : '')
  3876. )
  3877. };
  3878. var repeat = function (str, n) {
  3879. var res = '';
  3880. while (n) {
  3881. if (n % 2 === 1) { res += str; }
  3882. if (n > 1) { str += str; }
  3883. n >>= 1;
  3884. }
  3885. return res
  3886. };
  3887. generateComponentTrace = function (vm) {
  3888. if (vm._isVue && vm.$parent) {
  3889. var tree = [];
  3890. var currentRecursiveSequence = 0;
  3891. while (vm && vm.$options.name !== 'PageBody') {
  3892. if (tree.length > 0) {
  3893. var last = tree[tree.length - 1];
  3894. if (last.constructor === vm.constructor) {
  3895. currentRecursiveSequence++;
  3896. vm = vm.$parent;
  3897. continue
  3898. } else if (currentRecursiveSequence > 0) {
  3899. tree[tree.length - 1] = [last, currentRecursiveSequence];
  3900. currentRecursiveSequence = 0;
  3901. }
  3902. }
  3903. !vm.$options.isReserved && tree.push(vm);
  3904. vm = vm.$parent;
  3905. }
  3906. return '\n\nfound in\n\n' + tree
  3907. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  3908. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  3909. : formatComponentName(vm))); })
  3910. .join('\n')
  3911. } else {
  3912. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  3913. }
  3914. };
  3915. }
  3916. /* */
  3917. var uid = 0;
  3918. /**
  3919. * A dep is an observable that can have multiple
  3920. * directives subscribing to it.
  3921. */
  3922. var Dep = function Dep () {
  3923. this.id = uid++;
  3924. this.subs = [];
  3925. };
  3926. Dep.prototype.addSub = function addSub (sub) {
  3927. this.subs.push(sub);
  3928. };
  3929. Dep.prototype.removeSub = function removeSub (sub) {
  3930. remove(this.subs, sub);
  3931. };
  3932. Dep.prototype.depend = function depend () {
  3933. if (Dep.SharedObject.target) {
  3934. Dep.SharedObject.target.addDep(this);
  3935. }
  3936. };
  3937. Dep.prototype.notify = function notify () {
  3938. // stabilize the subscriber list first
  3939. var subs = this.subs.slice();
  3940. if ( true && !config.async) {
  3941. // subs aren't sorted in scheduler if not running async
  3942. // we need to sort them now to make sure they fire in correct
  3943. // order
  3944. subs.sort(function (a, b) { return a.id - b.id; });
  3945. }
  3946. for (var i = 0, l = subs.length; i < l; i++) {
  3947. subs[i].update();
  3948. }
  3949. };
  3950. // The current target watcher being evaluated.
  3951. // This is globally unique because only one watcher
  3952. // can be evaluated at a time.
  3953. // fixed by xxxxxx (nvue shared vuex)
  3954. /* eslint-disable no-undef */
  3955. Dep.SharedObject = {};
  3956. Dep.SharedObject.target = null;
  3957. Dep.SharedObject.targetStack = [];
  3958. function pushTarget (target) {
  3959. Dep.SharedObject.targetStack.push(target);
  3960. Dep.SharedObject.target = target;
  3961. Dep.target = target;
  3962. }
  3963. function popTarget () {
  3964. Dep.SharedObject.targetStack.pop();
  3965. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  3966. Dep.target = Dep.SharedObject.target;
  3967. }
  3968. /* */
  3969. var VNode = function VNode (
  3970. tag,
  3971. data,
  3972. children,
  3973. text,
  3974. elm,
  3975. context,
  3976. componentOptions,
  3977. asyncFactory
  3978. ) {
  3979. this.tag = tag;
  3980. this.data = data;
  3981. this.children = children;
  3982. this.text = text;
  3983. this.elm = elm;
  3984. this.ns = undefined;
  3985. this.context = context;
  3986. this.fnContext = undefined;
  3987. this.fnOptions = undefined;
  3988. this.fnScopeId = undefined;
  3989. this.key = data && data.key;
  3990. this.componentOptions = componentOptions;
  3991. this.componentInstance = undefined;
  3992. this.parent = undefined;
  3993. this.raw = false;
  3994. this.isStatic = false;
  3995. this.isRootInsert = true;
  3996. this.isComment = false;
  3997. this.isCloned = false;
  3998. this.isOnce = false;
  3999. this.asyncFactory = asyncFactory;
  4000. this.asyncMeta = undefined;
  4001. this.isAsyncPlaceholder = false;
  4002. };
  4003. var prototypeAccessors = { child: { configurable: true } };
  4004. // DEPRECATED: alias for componentInstance for backwards compat.
  4005. /* istanbul ignore next */
  4006. prototypeAccessors.child.get = function () {
  4007. return this.componentInstance
  4008. };
  4009. Object.defineProperties( VNode.prototype, prototypeAccessors );
  4010. var createEmptyVNode = function (text) {
  4011. if ( text === void 0 ) text = '';
  4012. var node = new VNode();
  4013. node.text = text;
  4014. node.isComment = true;
  4015. return node
  4016. };
  4017. function createTextVNode (val) {
  4018. return new VNode(undefined, undefined, undefined, String(val))
  4019. }
  4020. // optimized shallow clone
  4021. // used for static nodes and slot nodes because they may be reused across
  4022. // multiple renders, cloning them avoids errors when DOM manipulations rely
  4023. // on their elm reference.
  4024. function cloneVNode (vnode) {
  4025. var cloned = new VNode(
  4026. vnode.tag,
  4027. vnode.data,
  4028. // #7975
  4029. // clone children array to avoid mutating original in case of cloning
  4030. // a child.
  4031. vnode.children && vnode.children.slice(),
  4032. vnode.text,
  4033. vnode.elm,
  4034. vnode.context,
  4035. vnode.componentOptions,
  4036. vnode.asyncFactory
  4037. );
  4038. cloned.ns = vnode.ns;
  4039. cloned.isStatic = vnode.isStatic;
  4040. cloned.key = vnode.key;
  4041. cloned.isComment = vnode.isComment;
  4042. cloned.fnContext = vnode.fnContext;
  4043. cloned.fnOptions = vnode.fnOptions;
  4044. cloned.fnScopeId = vnode.fnScopeId;
  4045. cloned.asyncMeta = vnode.asyncMeta;
  4046. cloned.isCloned = true;
  4047. return cloned
  4048. }
  4049. /*
  4050. * not type checking this file because flow doesn't play well with
  4051. * dynamically accessing methods on Array prototype
  4052. */
  4053. var arrayProto = Array.prototype;
  4054. var arrayMethods = Object.create(arrayProto);
  4055. var methodsToPatch = [
  4056. 'push',
  4057. 'pop',
  4058. 'shift',
  4059. 'unshift',
  4060. 'splice',
  4061. 'sort',
  4062. 'reverse'
  4063. ];
  4064. /**
  4065. * Intercept mutating methods and emit events
  4066. */
  4067. methodsToPatch.forEach(function (method) {
  4068. // cache original method
  4069. var original = arrayProto[method];
  4070. def(arrayMethods, method, function mutator () {
  4071. var args = [], len = arguments.length;
  4072. while ( len-- ) args[ len ] = arguments[ len ];
  4073. var result = original.apply(this, args);
  4074. var ob = this.__ob__;
  4075. var inserted;
  4076. switch (method) {
  4077. case 'push':
  4078. case 'unshift':
  4079. inserted = args;
  4080. break
  4081. case 'splice':
  4082. inserted = args.slice(2);
  4083. break
  4084. }
  4085. if (inserted) { ob.observeArray(inserted); }
  4086. // notify change
  4087. ob.dep.notify();
  4088. return result
  4089. });
  4090. });
  4091. /* */
  4092. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  4093. /**
  4094. * In some cases we may want to disable observation inside a component's
  4095. * update computation.
  4096. */
  4097. var shouldObserve = true;
  4098. function toggleObserving (value) {
  4099. shouldObserve = value;
  4100. }
  4101. /**
  4102. * Observer class that is attached to each observed
  4103. * object. Once attached, the observer converts the target
  4104. * object's property keys into getter/setters that
  4105. * collect dependencies and dispatch updates.
  4106. */
  4107. var Observer = function Observer (value) {
  4108. this.value = value;
  4109. this.dep = new Dep();
  4110. this.vmCount = 0;
  4111. def(value, '__ob__', this);
  4112. if (Array.isArray(value)) {
  4113. if (hasProto) {
  4114. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  4115. if(value.push !== value.__proto__.push){
  4116. copyAugment(value, arrayMethods, arrayKeys);
  4117. } else {
  4118. protoAugment(value, arrayMethods);
  4119. }
  4120. }
  4121. } else {
  4122. copyAugment(value, arrayMethods, arrayKeys);
  4123. }
  4124. this.observeArray(value);
  4125. } else {
  4126. this.walk(value);
  4127. }
  4128. };
  4129. /**
  4130. * Walk through all properties and convert them into
  4131. * getter/setters. This method should only be called when
  4132. * value type is Object.
  4133. */
  4134. Observer.prototype.walk = function walk (obj) {
  4135. var keys = Object.keys(obj);
  4136. for (var i = 0; i < keys.length; i++) {
  4137. defineReactive$$1(obj, keys[i]);
  4138. }
  4139. };
  4140. /**
  4141. * Observe a list of Array items.
  4142. */
  4143. Observer.prototype.observeArray = function observeArray (items) {
  4144. for (var i = 0, l = items.length; i < l; i++) {
  4145. observe(items[i]);
  4146. }
  4147. };
  4148. // helpers
  4149. /**
  4150. * Augment a target Object or Array by intercepting
  4151. * the prototype chain using __proto__
  4152. */
  4153. function protoAugment (target, src) {
  4154. /* eslint-disable no-proto */
  4155. target.__proto__ = src;
  4156. /* eslint-enable no-proto */
  4157. }
  4158. /**
  4159. * Augment a target Object or Array by defining
  4160. * hidden properties.
  4161. */
  4162. /* istanbul ignore next */
  4163. function copyAugment (target, src, keys) {
  4164. for (var i = 0, l = keys.length; i < l; i++) {
  4165. var key = keys[i];
  4166. def(target, key, src[key]);
  4167. }
  4168. }
  4169. /**
  4170. * Attempt to create an observer instance for a value,
  4171. * returns the new observer if successfully observed,
  4172. * or the existing observer if the value already has one.
  4173. */
  4174. function observe (value, asRootData) {
  4175. if (!isObject(value) || value instanceof VNode) {
  4176. return
  4177. }
  4178. var ob;
  4179. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  4180. ob = value.__ob__;
  4181. } else if (
  4182. shouldObserve &&
  4183. !isServerRendering() &&
  4184. (Array.isArray(value) || isPlainObject(value)) &&
  4185. Object.isExtensible(value) &&
  4186. !value._isVue &&
  4187. !value.__v_isMPComponent
  4188. ) {
  4189. ob = new Observer(value);
  4190. }
  4191. if (asRootData && ob) {
  4192. ob.vmCount++;
  4193. }
  4194. return ob
  4195. }
  4196. /**
  4197. * Define a reactive property on an Object.
  4198. */
  4199. function defineReactive$$1 (
  4200. obj,
  4201. key,
  4202. val,
  4203. customSetter,
  4204. shallow
  4205. ) {
  4206. var dep = new Dep();
  4207. var property = Object.getOwnPropertyDescriptor(obj, key);
  4208. if (property && property.configurable === false) {
  4209. return
  4210. }
  4211. // cater for pre-defined getter/setters
  4212. var getter = property && property.get;
  4213. var setter = property && property.set;
  4214. if ((!getter || setter) && arguments.length === 2) {
  4215. val = obj[key];
  4216. }
  4217. var childOb = !shallow && observe(val);
  4218. Object.defineProperty(obj, key, {
  4219. enumerable: true,
  4220. configurable: true,
  4221. get: function reactiveGetter () {
  4222. var value = getter ? getter.call(obj) : val;
  4223. if (Dep.SharedObject.target) { // fixed by xxxxxx
  4224. dep.depend();
  4225. if (childOb) {
  4226. childOb.dep.depend();
  4227. if (Array.isArray(value)) {
  4228. dependArray(value);
  4229. }
  4230. }
  4231. }
  4232. return value
  4233. },
  4234. set: function reactiveSetter (newVal) {
  4235. var value = getter ? getter.call(obj) : val;
  4236. /* eslint-disable no-self-compare */
  4237. if (newVal === value || (newVal !== newVal && value !== value)) {
  4238. return
  4239. }
  4240. /* eslint-enable no-self-compare */
  4241. if ( true && customSetter) {
  4242. customSetter();
  4243. }
  4244. // #7981: for accessor properties without setter
  4245. if (getter && !setter) { return }
  4246. if (setter) {
  4247. setter.call(obj, newVal);
  4248. } else {
  4249. val = newVal;
  4250. }
  4251. childOb = !shallow && observe(newVal);
  4252. dep.notify();
  4253. }
  4254. });
  4255. }
  4256. /**
  4257. * Set a property on an object. Adds the new property and
  4258. * triggers change notification if the property doesn't
  4259. * already exist.
  4260. */
  4261. function set (target, key, val) {
  4262. if ( true &&
  4263. (isUndef(target) || isPrimitive(target))
  4264. ) {
  4265. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  4266. }
  4267. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4268. target.length = Math.max(target.length, key);
  4269. target.splice(key, 1, val);
  4270. return val
  4271. }
  4272. if (key in target && !(key in Object.prototype)) {
  4273. target[key] = val;
  4274. return val
  4275. }
  4276. var ob = (target).__ob__;
  4277. if (target._isVue || (ob && ob.vmCount)) {
  4278. true && warn(
  4279. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  4280. 'at runtime - declare it upfront in the data option.'
  4281. );
  4282. return val
  4283. }
  4284. if (!ob) {
  4285. target[key] = val;
  4286. return val
  4287. }
  4288. defineReactive$$1(ob.value, key, val);
  4289. ob.dep.notify();
  4290. return val
  4291. }
  4292. /**
  4293. * Delete a property and trigger change if necessary.
  4294. */
  4295. function del (target, key) {
  4296. if ( true &&
  4297. (isUndef(target) || isPrimitive(target))
  4298. ) {
  4299. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  4300. }
  4301. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4302. target.splice(key, 1);
  4303. return
  4304. }
  4305. var ob = (target).__ob__;
  4306. if (target._isVue || (ob && ob.vmCount)) {
  4307. true && warn(
  4308. 'Avoid deleting properties on a Vue instance or its root $data ' +
  4309. '- just set it to null.'
  4310. );
  4311. return
  4312. }
  4313. if (!hasOwn(target, key)) {
  4314. return
  4315. }
  4316. delete target[key];
  4317. if (!ob) {
  4318. return
  4319. }
  4320. ob.dep.notify();
  4321. }
  4322. /**
  4323. * Collect dependencies on array elements when the array is touched, since
  4324. * we cannot intercept array element access like property getters.
  4325. */
  4326. function dependArray (value) {
  4327. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  4328. e = value[i];
  4329. e && e.__ob__ && e.__ob__.dep.depend();
  4330. if (Array.isArray(e)) {
  4331. dependArray(e);
  4332. }
  4333. }
  4334. }
  4335. /* */
  4336. /**
  4337. * Option overwriting strategies are functions that handle
  4338. * how to merge a parent option value and a child option
  4339. * value into the final value.
  4340. */
  4341. var strats = config.optionMergeStrategies;
  4342. /**
  4343. * Options with restrictions
  4344. */
  4345. if (true) {
  4346. strats.el = strats.propsData = function (parent, child, vm, key) {
  4347. if (!vm) {
  4348. warn(
  4349. "option \"" + key + "\" can only be used during instance " +
  4350. 'creation with the `new` keyword.'
  4351. );
  4352. }
  4353. return defaultStrat(parent, child)
  4354. };
  4355. }
  4356. /**
  4357. * Helper that recursively merges two data objects together.
  4358. */
  4359. function mergeData (to, from) {
  4360. if (!from) { return to }
  4361. var key, toVal, fromVal;
  4362. var keys = hasSymbol
  4363. ? Reflect.ownKeys(from)
  4364. : Object.keys(from);
  4365. for (var i = 0; i < keys.length; i++) {
  4366. key = keys[i];
  4367. // in case the object is already observed...
  4368. if (key === '__ob__') { continue }
  4369. toVal = to[key];
  4370. fromVal = from[key];
  4371. if (!hasOwn(to, key)) {
  4372. set(to, key, fromVal);
  4373. } else if (
  4374. toVal !== fromVal &&
  4375. isPlainObject(toVal) &&
  4376. isPlainObject(fromVal)
  4377. ) {
  4378. mergeData(toVal, fromVal);
  4379. }
  4380. }
  4381. return to
  4382. }
  4383. /**
  4384. * Data
  4385. */
  4386. function mergeDataOrFn (
  4387. parentVal,
  4388. childVal,
  4389. vm
  4390. ) {
  4391. if (!vm) {
  4392. // in a Vue.extend merge, both should be functions
  4393. if (!childVal) {
  4394. return parentVal
  4395. }
  4396. if (!parentVal) {
  4397. return childVal
  4398. }
  4399. // when parentVal & childVal are both present,
  4400. // we need to return a function that returns the
  4401. // merged result of both functions... no need to
  4402. // check if parentVal is a function here because
  4403. // it has to be a function to pass previous merges.
  4404. return function mergedDataFn () {
  4405. return mergeData(
  4406. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  4407. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  4408. )
  4409. }
  4410. } else {
  4411. return function mergedInstanceDataFn () {
  4412. // instance merge
  4413. var instanceData = typeof childVal === 'function'
  4414. ? childVal.call(vm, vm)
  4415. : childVal;
  4416. var defaultData = typeof parentVal === 'function'
  4417. ? parentVal.call(vm, vm)
  4418. : parentVal;
  4419. if (instanceData) {
  4420. return mergeData(instanceData, defaultData)
  4421. } else {
  4422. return defaultData
  4423. }
  4424. }
  4425. }
  4426. }
  4427. strats.data = function (
  4428. parentVal,
  4429. childVal,
  4430. vm
  4431. ) {
  4432. if (!vm) {
  4433. if (childVal && typeof childVal !== 'function') {
  4434. true && warn(
  4435. 'The "data" option should be a function ' +
  4436. 'that returns a per-instance value in component ' +
  4437. 'definitions.',
  4438. vm
  4439. );
  4440. return parentVal
  4441. }
  4442. return mergeDataOrFn(parentVal, childVal)
  4443. }
  4444. return mergeDataOrFn(parentVal, childVal, vm)
  4445. };
  4446. /**
  4447. * Hooks and props are merged as arrays.
  4448. */
  4449. function mergeHook (
  4450. parentVal,
  4451. childVal
  4452. ) {
  4453. var res = childVal
  4454. ? parentVal
  4455. ? parentVal.concat(childVal)
  4456. : Array.isArray(childVal)
  4457. ? childVal
  4458. : [childVal]
  4459. : parentVal;
  4460. return res
  4461. ? dedupeHooks(res)
  4462. : res
  4463. }
  4464. function dedupeHooks (hooks) {
  4465. var res = [];
  4466. for (var i = 0; i < hooks.length; i++) {
  4467. if (res.indexOf(hooks[i]) === -1) {
  4468. res.push(hooks[i]);
  4469. }
  4470. }
  4471. return res
  4472. }
  4473. LIFECYCLE_HOOKS.forEach(function (hook) {
  4474. strats[hook] = mergeHook;
  4475. });
  4476. /**
  4477. * Assets
  4478. *
  4479. * When a vm is present (instance creation), we need to do
  4480. * a three-way merge between constructor options, instance
  4481. * options and parent options.
  4482. */
  4483. function mergeAssets (
  4484. parentVal,
  4485. childVal,
  4486. vm,
  4487. key
  4488. ) {
  4489. var res = Object.create(parentVal || null);
  4490. if (childVal) {
  4491. true && assertObjectType(key, childVal, vm);
  4492. return extend(res, childVal)
  4493. } else {
  4494. return res
  4495. }
  4496. }
  4497. ASSET_TYPES.forEach(function (type) {
  4498. strats[type + 's'] = mergeAssets;
  4499. });
  4500. /**
  4501. * Watchers.
  4502. *
  4503. * Watchers hashes should not overwrite one
  4504. * another, so we merge them as arrays.
  4505. */
  4506. strats.watch = function (
  4507. parentVal,
  4508. childVal,
  4509. vm,
  4510. key
  4511. ) {
  4512. // work around Firefox's Object.prototype.watch...
  4513. if (parentVal === nativeWatch) { parentVal = undefined; }
  4514. if (childVal === nativeWatch) { childVal = undefined; }
  4515. /* istanbul ignore if */
  4516. if (!childVal) { return Object.create(parentVal || null) }
  4517. if (true) {
  4518. assertObjectType(key, childVal, vm);
  4519. }
  4520. if (!parentVal) { return childVal }
  4521. var ret = {};
  4522. extend(ret, parentVal);
  4523. for (var key$1 in childVal) {
  4524. var parent = ret[key$1];
  4525. var child = childVal[key$1];
  4526. if (parent && !Array.isArray(parent)) {
  4527. parent = [parent];
  4528. }
  4529. ret[key$1] = parent
  4530. ? parent.concat(child)
  4531. : Array.isArray(child) ? child : [child];
  4532. }
  4533. return ret
  4534. };
  4535. /**
  4536. * Other object hashes.
  4537. */
  4538. strats.props =
  4539. strats.methods =
  4540. strats.inject =
  4541. strats.computed = function (
  4542. parentVal,
  4543. childVal,
  4544. vm,
  4545. key
  4546. ) {
  4547. if (childVal && "development" !== 'production') {
  4548. assertObjectType(key, childVal, vm);
  4549. }
  4550. if (!parentVal) { return childVal }
  4551. var ret = Object.create(null);
  4552. extend(ret, parentVal);
  4553. if (childVal) { extend(ret, childVal); }
  4554. return ret
  4555. };
  4556. strats.provide = mergeDataOrFn;
  4557. /**
  4558. * Default strategy.
  4559. */
  4560. var defaultStrat = function (parentVal, childVal) {
  4561. return childVal === undefined
  4562. ? parentVal
  4563. : childVal
  4564. };
  4565. /**
  4566. * Validate component names
  4567. */
  4568. function checkComponents (options) {
  4569. for (var key in options.components) {
  4570. validateComponentName(key);
  4571. }
  4572. }
  4573. function validateComponentName (name) {
  4574. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  4575. warn(
  4576. 'Invalid component name: "' + name + '". Component names ' +
  4577. 'should conform to valid custom element name in html5 specification.'
  4578. );
  4579. }
  4580. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  4581. warn(
  4582. 'Do not use built-in or reserved HTML elements as component ' +
  4583. 'id: ' + name
  4584. );
  4585. }
  4586. }
  4587. /**
  4588. * Ensure all props option syntax are normalized into the
  4589. * Object-based format.
  4590. */
  4591. function normalizeProps (options, vm) {
  4592. var props = options.props;
  4593. if (!props) { return }
  4594. var res = {};
  4595. var i, val, name;
  4596. if (Array.isArray(props)) {
  4597. i = props.length;
  4598. while (i--) {
  4599. val = props[i];
  4600. if (typeof val === 'string') {
  4601. name = camelize(val);
  4602. res[name] = { type: null };
  4603. } else if (true) {
  4604. warn('props must be strings when using array syntax.');
  4605. }
  4606. }
  4607. } else if (isPlainObject(props)) {
  4608. for (var key in props) {
  4609. val = props[key];
  4610. name = camelize(key);
  4611. res[name] = isPlainObject(val)
  4612. ? val
  4613. : { type: val };
  4614. }
  4615. } else if (true) {
  4616. warn(
  4617. "Invalid value for option \"props\": expected an Array or an Object, " +
  4618. "but got " + (toRawType(props)) + ".",
  4619. vm
  4620. );
  4621. }
  4622. options.props = res;
  4623. }
  4624. /**
  4625. * Normalize all injections into Object-based format
  4626. */
  4627. function normalizeInject (options, vm) {
  4628. var inject = options.inject;
  4629. if (!inject) { return }
  4630. var normalized = options.inject = {};
  4631. if (Array.isArray(inject)) {
  4632. for (var i = 0; i < inject.length; i++) {
  4633. normalized[inject[i]] = { from: inject[i] };
  4634. }
  4635. } else if (isPlainObject(inject)) {
  4636. for (var key in inject) {
  4637. var val = inject[key];
  4638. normalized[key] = isPlainObject(val)
  4639. ? extend({ from: key }, val)
  4640. : { from: val };
  4641. }
  4642. } else if (true) {
  4643. warn(
  4644. "Invalid value for option \"inject\": expected an Array or an Object, " +
  4645. "but got " + (toRawType(inject)) + ".",
  4646. vm
  4647. );
  4648. }
  4649. }
  4650. /**
  4651. * Normalize raw function directives into object format.
  4652. */
  4653. function normalizeDirectives (options) {
  4654. var dirs = options.directives;
  4655. if (dirs) {
  4656. for (var key in dirs) {
  4657. var def$$1 = dirs[key];
  4658. if (typeof def$$1 === 'function') {
  4659. dirs[key] = { bind: def$$1, update: def$$1 };
  4660. }
  4661. }
  4662. }
  4663. }
  4664. function assertObjectType (name, value, vm) {
  4665. if (!isPlainObject(value)) {
  4666. warn(
  4667. "Invalid value for option \"" + name + "\": expected an Object, " +
  4668. "but got " + (toRawType(value)) + ".",
  4669. vm
  4670. );
  4671. }
  4672. }
  4673. /**
  4674. * Merge two option objects into a new one.
  4675. * Core utility used in both instantiation and inheritance.
  4676. */
  4677. function mergeOptions (
  4678. parent,
  4679. child,
  4680. vm
  4681. ) {
  4682. if (true) {
  4683. checkComponents(child);
  4684. }
  4685. if (typeof child === 'function') {
  4686. child = child.options;
  4687. }
  4688. normalizeProps(child, vm);
  4689. normalizeInject(child, vm);
  4690. normalizeDirectives(child);
  4691. // Apply extends and mixins on the child options,
  4692. // but only if it is a raw options object that isn't
  4693. // the result of another mergeOptions call.
  4694. // Only merged options has the _base property.
  4695. if (!child._base) {
  4696. if (child.extends) {
  4697. parent = mergeOptions(parent, child.extends, vm);
  4698. }
  4699. if (child.mixins) {
  4700. for (var i = 0, l = child.mixins.length; i < l; i++) {
  4701. parent = mergeOptions(parent, child.mixins[i], vm);
  4702. }
  4703. }
  4704. }
  4705. var options = {};
  4706. var key;
  4707. for (key in parent) {
  4708. mergeField(key);
  4709. }
  4710. for (key in child) {
  4711. if (!hasOwn(parent, key)) {
  4712. mergeField(key);
  4713. }
  4714. }
  4715. function mergeField (key) {
  4716. var strat = strats[key] || defaultStrat;
  4717. options[key] = strat(parent[key], child[key], vm, key);
  4718. }
  4719. return options
  4720. }
  4721. /**
  4722. * Resolve an asset.
  4723. * This function is used because child instances need access
  4724. * to assets defined in its ancestor chain.
  4725. */
  4726. function resolveAsset (
  4727. options,
  4728. type,
  4729. id,
  4730. warnMissing
  4731. ) {
  4732. /* istanbul ignore if */
  4733. if (typeof id !== 'string') {
  4734. return
  4735. }
  4736. var assets = options[type];
  4737. // check local registration variations first
  4738. if (hasOwn(assets, id)) { return assets[id] }
  4739. var camelizedId = camelize(id);
  4740. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  4741. var PascalCaseId = capitalize(camelizedId);
  4742. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  4743. // fallback to prototype chain
  4744. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  4745. if ( true && warnMissing && !res) {
  4746. warn(
  4747. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  4748. options
  4749. );
  4750. }
  4751. return res
  4752. }
  4753. /* */
  4754. function validateProp (
  4755. key,
  4756. propOptions,
  4757. propsData,
  4758. vm
  4759. ) {
  4760. var prop = propOptions[key];
  4761. var absent = !hasOwn(propsData, key);
  4762. var value = propsData[key];
  4763. // boolean casting
  4764. var booleanIndex = getTypeIndex(Boolean, prop.type);
  4765. if (booleanIndex > -1) {
  4766. if (absent && !hasOwn(prop, 'default')) {
  4767. value = false;
  4768. } else if (value === '' || value === hyphenate(key)) {
  4769. // only cast empty string / same name to boolean if
  4770. // boolean has higher priority
  4771. var stringIndex = getTypeIndex(String, prop.type);
  4772. if (stringIndex < 0 || booleanIndex < stringIndex) {
  4773. value = true;
  4774. }
  4775. }
  4776. }
  4777. // check default value
  4778. if (value === undefined) {
  4779. value = getPropDefaultValue(vm, prop, key);
  4780. // since the default value is a fresh copy,
  4781. // make sure to observe it.
  4782. var prevShouldObserve = shouldObserve;
  4783. toggleObserving(true);
  4784. observe(value);
  4785. toggleObserving(prevShouldObserve);
  4786. }
  4787. if (
  4788. true
  4789. ) {
  4790. assertProp(prop, key, value, vm, absent);
  4791. }
  4792. return value
  4793. }
  4794. /**
  4795. * Get the default value of a prop.
  4796. */
  4797. function getPropDefaultValue (vm, prop, key) {
  4798. // no default, return undefined
  4799. if (!hasOwn(prop, 'default')) {
  4800. return undefined
  4801. }
  4802. var def = prop.default;
  4803. // warn against non-factory defaults for Object & Array
  4804. if ( true && isObject(def)) {
  4805. warn(
  4806. 'Invalid default value for prop "' + key + '": ' +
  4807. 'Props with type Object/Array must use a factory function ' +
  4808. 'to return the default value.',
  4809. vm
  4810. );
  4811. }
  4812. // the raw prop value was also undefined from previous render,
  4813. // return previous default value to avoid unnecessary watcher trigger
  4814. if (vm && vm.$options.propsData &&
  4815. vm.$options.propsData[key] === undefined &&
  4816. vm._props[key] !== undefined
  4817. ) {
  4818. return vm._props[key]
  4819. }
  4820. // call factory function for non-Function types
  4821. // a value is Function if its prototype is function even across different execution context
  4822. return typeof def === 'function' && getType(prop.type) !== 'Function'
  4823. ? def.call(vm)
  4824. : def
  4825. }
  4826. /**
  4827. * Assert whether a prop is valid.
  4828. */
  4829. function assertProp (
  4830. prop,
  4831. name,
  4832. value,
  4833. vm,
  4834. absent
  4835. ) {
  4836. if (prop.required && absent) {
  4837. warn(
  4838. 'Missing required prop: "' + name + '"',
  4839. vm
  4840. );
  4841. return
  4842. }
  4843. if (value == null && !prop.required) {
  4844. return
  4845. }
  4846. var type = prop.type;
  4847. var valid = !type || type === true;
  4848. var expectedTypes = [];
  4849. if (type) {
  4850. if (!Array.isArray(type)) {
  4851. type = [type];
  4852. }
  4853. for (var i = 0; i < type.length && !valid; i++) {
  4854. var assertedType = assertType(value, type[i]);
  4855. expectedTypes.push(assertedType.expectedType || '');
  4856. valid = assertedType.valid;
  4857. }
  4858. }
  4859. if (!valid) {
  4860. warn(
  4861. getInvalidTypeMessage(name, value, expectedTypes),
  4862. vm
  4863. );
  4864. return
  4865. }
  4866. var validator = prop.validator;
  4867. if (validator) {
  4868. if (!validator(value)) {
  4869. warn(
  4870. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  4871. vm
  4872. );
  4873. }
  4874. }
  4875. }
  4876. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  4877. function assertType (value, type) {
  4878. var valid;
  4879. var expectedType = getType(type);
  4880. if (simpleCheckRE.test(expectedType)) {
  4881. var t = typeof value;
  4882. valid = t === expectedType.toLowerCase();
  4883. // for primitive wrapper objects
  4884. if (!valid && t === 'object') {
  4885. valid = value instanceof type;
  4886. }
  4887. } else if (expectedType === 'Object') {
  4888. valid = isPlainObject(value);
  4889. } else if (expectedType === 'Array') {
  4890. valid = Array.isArray(value);
  4891. } else {
  4892. valid = value instanceof type;
  4893. }
  4894. return {
  4895. valid: valid,
  4896. expectedType: expectedType
  4897. }
  4898. }
  4899. /**
  4900. * Use function string name to check built-in types,
  4901. * because a simple equality check will fail when running
  4902. * across different vms / iframes.
  4903. */
  4904. function getType (fn) {
  4905. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  4906. return match ? match[1] : ''
  4907. }
  4908. function isSameType (a, b) {
  4909. return getType(a) === getType(b)
  4910. }
  4911. function getTypeIndex (type, expectedTypes) {
  4912. if (!Array.isArray(expectedTypes)) {
  4913. return isSameType(expectedTypes, type) ? 0 : -1
  4914. }
  4915. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  4916. if (isSameType(expectedTypes[i], type)) {
  4917. return i
  4918. }
  4919. }
  4920. return -1
  4921. }
  4922. function getInvalidTypeMessage (name, value, expectedTypes) {
  4923. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  4924. " Expected " + (expectedTypes.map(capitalize).join(', '));
  4925. var expectedType = expectedTypes[0];
  4926. var receivedType = toRawType(value);
  4927. var expectedValue = styleValue(value, expectedType);
  4928. var receivedValue = styleValue(value, receivedType);
  4929. // check if we need to specify expected value
  4930. if (expectedTypes.length === 1 &&
  4931. isExplicable(expectedType) &&
  4932. !isBoolean(expectedType, receivedType)) {
  4933. message += " with value " + expectedValue;
  4934. }
  4935. message += ", got " + receivedType + " ";
  4936. // check if we need to specify received value
  4937. if (isExplicable(receivedType)) {
  4938. message += "with value " + receivedValue + ".";
  4939. }
  4940. return message
  4941. }
  4942. function styleValue (value, type) {
  4943. if (type === 'String') {
  4944. return ("\"" + value + "\"")
  4945. } else if (type === 'Number') {
  4946. return ("" + (Number(value)))
  4947. } else {
  4948. return ("" + value)
  4949. }
  4950. }
  4951. function isExplicable (value) {
  4952. var explicitTypes = ['string', 'number', 'boolean'];
  4953. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  4954. }
  4955. function isBoolean () {
  4956. var args = [], len = arguments.length;
  4957. while ( len-- ) args[ len ] = arguments[ len ];
  4958. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  4959. }
  4960. /* */
  4961. function handleError (err, vm, info) {
  4962. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  4963. // See: https://github.com/vuejs/vuex/issues/1505
  4964. pushTarget();
  4965. try {
  4966. if (vm) {
  4967. var cur = vm;
  4968. while ((cur = cur.$parent)) {
  4969. var hooks = cur.$options.errorCaptured;
  4970. if (hooks) {
  4971. for (var i = 0; i < hooks.length; i++) {
  4972. try {
  4973. var capture = hooks[i].call(cur, err, vm, info) === false;
  4974. if (capture) { return }
  4975. } catch (e) {
  4976. globalHandleError(e, cur, 'errorCaptured hook');
  4977. }
  4978. }
  4979. }
  4980. }
  4981. }
  4982. globalHandleError(err, vm, info);
  4983. } finally {
  4984. popTarget();
  4985. }
  4986. }
  4987. function invokeWithErrorHandling (
  4988. handler,
  4989. context,
  4990. args,
  4991. vm,
  4992. info
  4993. ) {
  4994. var res;
  4995. try {
  4996. res = args ? handler.apply(context, args) : handler.call(context);
  4997. if (res && !res._isVue && isPromise(res) && !res._handled) {
  4998. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  4999. // issue #9511
  5000. // avoid catch triggering multiple times when nested calls
  5001. res._handled = true;
  5002. }
  5003. } catch (e) {
  5004. handleError(e, vm, info);
  5005. }
  5006. return res
  5007. }
  5008. function globalHandleError (err, vm, info) {
  5009. if (config.errorHandler) {
  5010. try {
  5011. return config.errorHandler.call(null, err, vm, info)
  5012. } catch (e) {
  5013. // if the user intentionally throws the original error in the handler,
  5014. // do not log it twice
  5015. if (e !== err) {
  5016. logError(e, null, 'config.errorHandler');
  5017. }
  5018. }
  5019. }
  5020. logError(err, vm, info);
  5021. }
  5022. function logError (err, vm, info) {
  5023. if (true) {
  5024. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  5025. }
  5026. /* istanbul ignore else */
  5027. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  5028. console.error(err);
  5029. } else {
  5030. throw err
  5031. }
  5032. }
  5033. /* */
  5034. var callbacks = [];
  5035. var pending = false;
  5036. function flushCallbacks () {
  5037. pending = false;
  5038. var copies = callbacks.slice(0);
  5039. callbacks.length = 0;
  5040. for (var i = 0; i < copies.length; i++) {
  5041. copies[i]();
  5042. }
  5043. }
  5044. // Here we have async deferring wrappers using microtasks.
  5045. // In 2.5 we used (macro) tasks (in combination with microtasks).
  5046. // However, it has subtle problems when state is changed right before repaint
  5047. // (e.g. #6813, out-in transitions).
  5048. // Also, using (macro) tasks in event handler would cause some weird behaviors
  5049. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  5050. // So we now use microtasks everywhere, again.
  5051. // A major drawback of this tradeoff is that there are some scenarios
  5052. // where microtasks have too high a priority and fire in between supposedly
  5053. // sequential events (e.g. #4521, #6690, which have workarounds)
  5054. // or even between bubbling of the same event (#6566).
  5055. var timerFunc;
  5056. // The nextTick behavior leverages the microtask queue, which can be accessed
  5057. // via either native Promise.then or MutationObserver.
  5058. // MutationObserver has wider support, however it is seriously bugged in
  5059. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  5060. // completely stops working after triggering a few times... so, if native
  5061. // Promise is available, we will use it:
  5062. /* istanbul ignore next, $flow-disable-line */
  5063. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  5064. var p = Promise.resolve();
  5065. timerFunc = function () {
  5066. p.then(flushCallbacks);
  5067. // In problematic UIWebViews, Promise.then doesn't completely break, but
  5068. // it can get stuck in a weird state where callbacks are pushed into the
  5069. // microtask queue but the queue isn't being flushed, until the browser
  5070. // needs to do some other work, e.g. handle a timer. Therefore we can
  5071. // "force" the microtask queue to be flushed by adding an empty timer.
  5072. if (isIOS) { setTimeout(noop); }
  5073. };
  5074. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  5075. isNative(MutationObserver) ||
  5076. // PhantomJS and iOS 7.x
  5077. MutationObserver.toString() === '[object MutationObserverConstructor]'
  5078. )) {
  5079. // Use MutationObserver where native Promise is not available,
  5080. // e.g. PhantomJS, iOS7, Android 4.4
  5081. // (#6466 MutationObserver is unreliable in IE11)
  5082. var counter = 1;
  5083. var observer = new MutationObserver(flushCallbacks);
  5084. var textNode = document.createTextNode(String(counter));
  5085. observer.observe(textNode, {
  5086. characterData: true
  5087. });
  5088. timerFunc = function () {
  5089. counter = (counter + 1) % 2;
  5090. textNode.data = String(counter);
  5091. };
  5092. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  5093. // Fallback to setImmediate.
  5094. // Technically it leverages the (macro) task queue,
  5095. // but it is still a better choice than setTimeout.
  5096. timerFunc = function () {
  5097. setImmediate(flushCallbacks);
  5098. };
  5099. } else {
  5100. // Fallback to setTimeout.
  5101. timerFunc = function () {
  5102. setTimeout(flushCallbacks, 0);
  5103. };
  5104. }
  5105. function nextTick (cb, ctx) {
  5106. var _resolve;
  5107. callbacks.push(function () {
  5108. if (cb) {
  5109. try {
  5110. cb.call(ctx);
  5111. } catch (e) {
  5112. handleError(e, ctx, 'nextTick');
  5113. }
  5114. } else if (_resolve) {
  5115. _resolve(ctx);
  5116. }
  5117. });
  5118. if (!pending) {
  5119. pending = true;
  5120. timerFunc();
  5121. }
  5122. // $flow-disable-line
  5123. if (!cb && typeof Promise !== 'undefined') {
  5124. return new Promise(function (resolve) {
  5125. _resolve = resolve;
  5126. })
  5127. }
  5128. }
  5129. /* */
  5130. /* not type checking this file because flow doesn't play well with Proxy */
  5131. var initProxy;
  5132. if (true) {
  5133. var allowedGlobals = makeMap(
  5134. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  5135. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  5136. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  5137. 'require' // for Webpack/Browserify
  5138. );
  5139. var warnNonPresent = function (target, key) {
  5140. warn(
  5141. "Property or method \"" + key + "\" is not defined on the instance but " +
  5142. 'referenced during render. Make sure that this property is reactive, ' +
  5143. 'either in the data option, or for class-based components, by ' +
  5144. 'initializing the property. ' +
  5145. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  5146. target
  5147. );
  5148. };
  5149. var warnReservedPrefix = function (target, key) {
  5150. warn(
  5151. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  5152. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  5153. 'prevent conflicts with Vue internals. ' +
  5154. 'See: https://vuejs.org/v2/api/#data',
  5155. target
  5156. );
  5157. };
  5158. var hasProxy =
  5159. typeof Proxy !== 'undefined' && isNative(Proxy);
  5160. if (hasProxy) {
  5161. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  5162. config.keyCodes = new Proxy(config.keyCodes, {
  5163. set: function set (target, key, value) {
  5164. if (isBuiltInModifier(key)) {
  5165. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  5166. return false
  5167. } else {
  5168. target[key] = value;
  5169. return true
  5170. }
  5171. }
  5172. });
  5173. }
  5174. var hasHandler = {
  5175. has: function has (target, key) {
  5176. var has = key in target;
  5177. var isAllowed = allowedGlobals(key) ||
  5178. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  5179. if (!has && !isAllowed) {
  5180. if (key in target.$data) { warnReservedPrefix(target, key); }
  5181. else { warnNonPresent(target, key); }
  5182. }
  5183. return has || !isAllowed
  5184. }
  5185. };
  5186. var getHandler = {
  5187. get: function get (target, key) {
  5188. if (typeof key === 'string' && !(key in target)) {
  5189. if (key in target.$data) { warnReservedPrefix(target, key); }
  5190. else { warnNonPresent(target, key); }
  5191. }
  5192. return target[key]
  5193. }
  5194. };
  5195. initProxy = function initProxy (vm) {
  5196. if (hasProxy) {
  5197. // determine which proxy handler to use
  5198. var options = vm.$options;
  5199. var handlers = options.render && options.render._withStripped
  5200. ? getHandler
  5201. : hasHandler;
  5202. vm._renderProxy = new Proxy(vm, handlers);
  5203. } else {
  5204. vm._renderProxy = vm;
  5205. }
  5206. };
  5207. }
  5208. /* */
  5209. var seenObjects = new _Set();
  5210. /**
  5211. * Recursively traverse an object to evoke all converted
  5212. * getters, so that every nested property inside the object
  5213. * is collected as a "deep" dependency.
  5214. */
  5215. function traverse (val) {
  5216. _traverse(val, seenObjects);
  5217. seenObjects.clear();
  5218. }
  5219. function _traverse (val, seen) {
  5220. var i, keys;
  5221. var isA = Array.isArray(val);
  5222. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  5223. return
  5224. }
  5225. if (val.__ob__) {
  5226. var depId = val.__ob__.dep.id;
  5227. if (seen.has(depId)) {
  5228. return
  5229. }
  5230. seen.add(depId);
  5231. }
  5232. if (isA) {
  5233. i = val.length;
  5234. while (i--) { _traverse(val[i], seen); }
  5235. } else {
  5236. keys = Object.keys(val);
  5237. i = keys.length;
  5238. while (i--) { _traverse(val[keys[i]], seen); }
  5239. }
  5240. }
  5241. var mark;
  5242. var measure;
  5243. if (true) {
  5244. var perf = inBrowser && window.performance;
  5245. /* istanbul ignore if */
  5246. if (
  5247. perf &&
  5248. perf.mark &&
  5249. perf.measure &&
  5250. perf.clearMarks &&
  5251. perf.clearMeasures
  5252. ) {
  5253. mark = function (tag) { return perf.mark(tag); };
  5254. measure = function (name, startTag, endTag) {
  5255. perf.measure(name, startTag, endTag);
  5256. perf.clearMarks(startTag);
  5257. perf.clearMarks(endTag);
  5258. // perf.clearMeasures(name)
  5259. };
  5260. }
  5261. }
  5262. /* */
  5263. var normalizeEvent = cached(function (name) {
  5264. var passive = name.charAt(0) === '&';
  5265. name = passive ? name.slice(1) : name;
  5266. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  5267. name = once$$1 ? name.slice(1) : name;
  5268. var capture = name.charAt(0) === '!';
  5269. name = capture ? name.slice(1) : name;
  5270. return {
  5271. name: name,
  5272. once: once$$1,
  5273. capture: capture,
  5274. passive: passive
  5275. }
  5276. });
  5277. function createFnInvoker (fns, vm) {
  5278. function invoker () {
  5279. var arguments$1 = arguments;
  5280. var fns = invoker.fns;
  5281. if (Array.isArray(fns)) {
  5282. var cloned = fns.slice();
  5283. for (var i = 0; i < cloned.length; i++) {
  5284. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  5285. }
  5286. } else {
  5287. // return handler return value for single handlers
  5288. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  5289. }
  5290. }
  5291. invoker.fns = fns;
  5292. return invoker
  5293. }
  5294. function updateListeners (
  5295. on,
  5296. oldOn,
  5297. add,
  5298. remove$$1,
  5299. createOnceHandler,
  5300. vm
  5301. ) {
  5302. var name, def$$1, cur, old, event;
  5303. for (name in on) {
  5304. def$$1 = cur = on[name];
  5305. old = oldOn[name];
  5306. event = normalizeEvent(name);
  5307. if (isUndef(cur)) {
  5308. true && warn(
  5309. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  5310. vm
  5311. );
  5312. } else if (isUndef(old)) {
  5313. if (isUndef(cur.fns)) {
  5314. cur = on[name] = createFnInvoker(cur, vm);
  5315. }
  5316. if (isTrue(event.once)) {
  5317. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  5318. }
  5319. add(event.name, cur, event.capture, event.passive, event.params);
  5320. } else if (cur !== old) {
  5321. old.fns = cur;
  5322. on[name] = old;
  5323. }
  5324. }
  5325. for (name in oldOn) {
  5326. if (isUndef(on[name])) {
  5327. event = normalizeEvent(name);
  5328. remove$$1(event.name, oldOn[name], event.capture);
  5329. }
  5330. }
  5331. }
  5332. /* */
  5333. /* */
  5334. // fixed by xxxxxx (mp properties)
  5335. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  5336. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  5337. if (isUndef(propOptions)) {
  5338. return res
  5339. }
  5340. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  5341. var attrs = data.attrs;
  5342. var props = data.props;
  5343. if (isDef(attrs) || isDef(props)) {
  5344. for (var key in propOptions) {
  5345. var altKey = hyphenate(key);
  5346. var result = checkProp(res, props, key, altKey, true) ||
  5347. checkProp(res, attrs, key, altKey, false);
  5348. // externalClass
  5349. if (
  5350. result &&
  5351. res[key] &&
  5352. externalClasses.indexOf(altKey) !== -1 &&
  5353. context[camelize(res[key])]
  5354. ) {
  5355. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  5356. res[key] = context[camelize(res[key])];
  5357. }
  5358. }
  5359. }
  5360. return res
  5361. }
  5362. function extractPropsFromVNodeData (
  5363. data,
  5364. Ctor,
  5365. tag,
  5366. context// fixed by xxxxxx
  5367. ) {
  5368. // we are only extracting raw values here.
  5369. // validation and default values are handled in the child
  5370. // component itself.
  5371. var propOptions = Ctor.options.props;
  5372. if (isUndef(propOptions)) {
  5373. // fixed by xxxxxx
  5374. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  5375. }
  5376. var res = {};
  5377. var attrs = data.attrs;
  5378. var props = data.props;
  5379. if (isDef(attrs) || isDef(props)) {
  5380. for (var key in propOptions) {
  5381. var altKey = hyphenate(key);
  5382. if (true) {
  5383. var keyInLowerCase = key.toLowerCase();
  5384. if (
  5385. key !== keyInLowerCase &&
  5386. attrs && hasOwn(attrs, keyInLowerCase)
  5387. ) {
  5388. tip(
  5389. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  5390. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  5391. " \"" + key + "\". " +
  5392. "Note that HTML attributes are case-insensitive and camelCased " +
  5393. "props need to use their kebab-case equivalents when using in-DOM " +
  5394. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  5395. );
  5396. }
  5397. }
  5398. checkProp(res, props, key, altKey, true) ||
  5399. checkProp(res, attrs, key, altKey, false);
  5400. }
  5401. }
  5402. // fixed by xxxxxx
  5403. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  5404. }
  5405. function checkProp (
  5406. res,
  5407. hash,
  5408. key,
  5409. altKey,
  5410. preserve
  5411. ) {
  5412. if (isDef(hash)) {
  5413. if (hasOwn(hash, key)) {
  5414. res[key] = hash[key];
  5415. if (!preserve) {
  5416. delete hash[key];
  5417. }
  5418. return true
  5419. } else if (hasOwn(hash, altKey)) {
  5420. res[key] = hash[altKey];
  5421. if (!preserve) {
  5422. delete hash[altKey];
  5423. }
  5424. return true
  5425. }
  5426. }
  5427. return false
  5428. }
  5429. /* */
  5430. // The template compiler attempts to minimize the need for normalization by
  5431. // statically analyzing the template at compile time.
  5432. //
  5433. // For plain HTML markup, normalization can be completely skipped because the
  5434. // generated render function is guaranteed to return Array<VNode>. There are
  5435. // two cases where extra normalization is needed:
  5436. // 1. When the children contains components - because a functional component
  5437. // may return an Array instead of a single root. In this case, just a simple
  5438. // normalization is needed - if any child is an Array, we flatten the whole
  5439. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  5440. // because functional components already normalize their own children.
  5441. function simpleNormalizeChildren (children) {
  5442. for (var i = 0; i < children.length; i++) {
  5443. if (Array.isArray(children[i])) {
  5444. return Array.prototype.concat.apply([], children)
  5445. }
  5446. }
  5447. return children
  5448. }
  5449. // 2. When the children contains constructs that always generated nested Arrays,
  5450. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  5451. // with hand-written render functions / JSX. In such cases a full normalization
  5452. // is needed to cater to all possible types of children values.
  5453. function normalizeChildren (children) {
  5454. return isPrimitive(children)
  5455. ? [createTextVNode(children)]
  5456. : Array.isArray(children)
  5457. ? normalizeArrayChildren(children)
  5458. : undefined
  5459. }
  5460. function isTextNode (node) {
  5461. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  5462. }
  5463. function normalizeArrayChildren (children, nestedIndex) {
  5464. var res = [];
  5465. var i, c, lastIndex, last;
  5466. for (i = 0; i < children.length; i++) {
  5467. c = children[i];
  5468. if (isUndef(c) || typeof c === 'boolean') { continue }
  5469. lastIndex = res.length - 1;
  5470. last = res[lastIndex];
  5471. // nested
  5472. if (Array.isArray(c)) {
  5473. if (c.length > 0) {
  5474. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  5475. // merge adjacent text nodes
  5476. if (isTextNode(c[0]) && isTextNode(last)) {
  5477. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  5478. c.shift();
  5479. }
  5480. res.push.apply(res, c);
  5481. }
  5482. } else if (isPrimitive(c)) {
  5483. if (isTextNode(last)) {
  5484. // merge adjacent text nodes
  5485. // this is necessary for SSR hydration because text nodes are
  5486. // essentially merged when rendered to HTML strings
  5487. res[lastIndex] = createTextVNode(last.text + c);
  5488. } else if (c !== '') {
  5489. // convert primitive to vnode
  5490. res.push(createTextVNode(c));
  5491. }
  5492. } else {
  5493. if (isTextNode(c) && isTextNode(last)) {
  5494. // merge adjacent text nodes
  5495. res[lastIndex] = createTextVNode(last.text + c.text);
  5496. } else {
  5497. // default key for nested array children (likely generated by v-for)
  5498. if (isTrue(children._isVList) &&
  5499. isDef(c.tag) &&
  5500. isUndef(c.key) &&
  5501. isDef(nestedIndex)) {
  5502. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  5503. }
  5504. res.push(c);
  5505. }
  5506. }
  5507. }
  5508. return res
  5509. }
  5510. /* */
  5511. function initProvide (vm) {
  5512. var provide = vm.$options.provide;
  5513. if (provide) {
  5514. vm._provided = typeof provide === 'function'
  5515. ? provide.call(vm)
  5516. : provide;
  5517. }
  5518. }
  5519. function initInjections (vm) {
  5520. var result = resolveInject(vm.$options.inject, vm);
  5521. if (result) {
  5522. toggleObserving(false);
  5523. Object.keys(result).forEach(function (key) {
  5524. /* istanbul ignore else */
  5525. if (true) {
  5526. defineReactive$$1(vm, key, result[key], function () {
  5527. warn(
  5528. "Avoid mutating an injected value directly since the changes will be " +
  5529. "overwritten whenever the provided component re-renders. " +
  5530. "injection being mutated: \"" + key + "\"",
  5531. vm
  5532. );
  5533. });
  5534. } else {}
  5535. });
  5536. toggleObserving(true);
  5537. }
  5538. }
  5539. function resolveInject (inject, vm) {
  5540. if (inject) {
  5541. // inject is :any because flow is not smart enough to figure out cached
  5542. var result = Object.create(null);
  5543. var keys = hasSymbol
  5544. ? Reflect.ownKeys(inject)
  5545. : Object.keys(inject);
  5546. for (var i = 0; i < keys.length; i++) {
  5547. var key = keys[i];
  5548. // #6574 in case the inject object is observed...
  5549. if (key === '__ob__') { continue }
  5550. var provideKey = inject[key].from;
  5551. var source = vm;
  5552. while (source) {
  5553. if (source._provided && hasOwn(source._provided, provideKey)) {
  5554. result[key] = source._provided[provideKey];
  5555. break
  5556. }
  5557. source = source.$parent;
  5558. }
  5559. if (!source) {
  5560. if ('default' in inject[key]) {
  5561. var provideDefault = inject[key].default;
  5562. result[key] = typeof provideDefault === 'function'
  5563. ? provideDefault.call(vm)
  5564. : provideDefault;
  5565. } else if (true) {
  5566. warn(("Injection \"" + key + "\" not found"), vm);
  5567. }
  5568. }
  5569. }
  5570. return result
  5571. }
  5572. }
  5573. /* */
  5574. /**
  5575. * Runtime helper for resolving raw children VNodes into a slot object.
  5576. */
  5577. function resolveSlots (
  5578. children,
  5579. context
  5580. ) {
  5581. if (!children || !children.length) {
  5582. return {}
  5583. }
  5584. var slots = {};
  5585. for (var i = 0, l = children.length; i < l; i++) {
  5586. var child = children[i];
  5587. var data = child.data;
  5588. // remove slot attribute if the node is resolved as a Vue slot node
  5589. if (data && data.attrs && data.attrs.slot) {
  5590. delete data.attrs.slot;
  5591. }
  5592. // named slots should only be respected if the vnode was rendered in the
  5593. // same context.
  5594. if ((child.context === context || child.fnContext === context) &&
  5595. data && data.slot != null
  5596. ) {
  5597. var name = data.slot;
  5598. var slot = (slots[name] || (slots[name] = []));
  5599. if (child.tag === 'template') {
  5600. slot.push.apply(slot, child.children || []);
  5601. } else {
  5602. slot.push(child);
  5603. }
  5604. } else {
  5605. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  5606. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  5607. (slots['page'] || (slots['page'] = [])).push(child);
  5608. }else{
  5609. (slots.default || (slots.default = [])).push(child);
  5610. }
  5611. }
  5612. }
  5613. // ignore slots that contains only whitespace
  5614. for (var name$1 in slots) {
  5615. if (slots[name$1].every(isWhitespace)) {
  5616. delete slots[name$1];
  5617. }
  5618. }
  5619. return slots
  5620. }
  5621. function isWhitespace (node) {
  5622. return (node.isComment && !node.asyncFactory) || node.text === ' '
  5623. }
  5624. /* */
  5625. function normalizeScopedSlots (
  5626. slots,
  5627. normalSlots,
  5628. prevSlots
  5629. ) {
  5630. var res;
  5631. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  5632. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  5633. var key = slots && slots.$key;
  5634. if (!slots) {
  5635. res = {};
  5636. } else if (slots._normalized) {
  5637. // fast path 1: child component re-render only, parent did not change
  5638. return slots._normalized
  5639. } else if (
  5640. isStable &&
  5641. prevSlots &&
  5642. prevSlots !== emptyObject &&
  5643. key === prevSlots.$key &&
  5644. !hasNormalSlots &&
  5645. !prevSlots.$hasNormal
  5646. ) {
  5647. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  5648. // only need to normalize once
  5649. return prevSlots
  5650. } else {
  5651. res = {};
  5652. for (var key$1 in slots) {
  5653. if (slots[key$1] && key$1[0] !== '$') {
  5654. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  5655. }
  5656. }
  5657. }
  5658. // expose normal slots on scopedSlots
  5659. for (var key$2 in normalSlots) {
  5660. if (!(key$2 in res)) {
  5661. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  5662. }
  5663. }
  5664. // avoriaz seems to mock a non-extensible $scopedSlots object
  5665. // and when that is passed down this would cause an error
  5666. if (slots && Object.isExtensible(slots)) {
  5667. (slots)._normalized = res;
  5668. }
  5669. def(res, '$stable', isStable);
  5670. def(res, '$key', key);
  5671. def(res, '$hasNormal', hasNormalSlots);
  5672. return res
  5673. }
  5674. function normalizeScopedSlot(normalSlots, key, fn) {
  5675. var normalized = function () {
  5676. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  5677. res = res && typeof res === 'object' && !Array.isArray(res)
  5678. ? [res] // single vnode
  5679. : normalizeChildren(res);
  5680. return res && (
  5681. res.length === 0 ||
  5682. (res.length === 1 && res[0].isComment) // #9658
  5683. ) ? undefined
  5684. : res
  5685. };
  5686. // this is a slot using the new v-slot syntax without scope. although it is
  5687. // compiled as a scoped slot, render fn users would expect it to be present
  5688. // on this.$slots because the usage is semantically a normal slot.
  5689. if (fn.proxy) {
  5690. Object.defineProperty(normalSlots, key, {
  5691. get: normalized,
  5692. enumerable: true,
  5693. configurable: true
  5694. });
  5695. }
  5696. return normalized
  5697. }
  5698. function proxyNormalSlot(slots, key) {
  5699. return function () { return slots[key]; }
  5700. }
  5701. /* */
  5702. /**
  5703. * Runtime helper for rendering v-for lists.
  5704. */
  5705. function renderList (
  5706. val,
  5707. render
  5708. ) {
  5709. var ret, i, l, keys, key;
  5710. if (Array.isArray(val) || typeof val === 'string') {
  5711. ret = new Array(val.length);
  5712. for (i = 0, l = val.length; i < l; i++) {
  5713. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  5714. }
  5715. } else if (typeof val === 'number') {
  5716. ret = new Array(val);
  5717. for (i = 0; i < val; i++) {
  5718. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  5719. }
  5720. } else if (isObject(val)) {
  5721. if (hasSymbol && val[Symbol.iterator]) {
  5722. ret = [];
  5723. var iterator = val[Symbol.iterator]();
  5724. var result = iterator.next();
  5725. while (!result.done) {
  5726. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  5727. result = iterator.next();
  5728. }
  5729. } else {
  5730. keys = Object.keys(val);
  5731. ret = new Array(keys.length);
  5732. for (i = 0, l = keys.length; i < l; i++) {
  5733. key = keys[i];
  5734. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  5735. }
  5736. }
  5737. }
  5738. if (!isDef(ret)) {
  5739. ret = [];
  5740. }
  5741. (ret)._isVList = true;
  5742. return ret
  5743. }
  5744. /* */
  5745. /**
  5746. * Runtime helper for rendering <slot>
  5747. */
  5748. function renderSlot (
  5749. name,
  5750. fallback,
  5751. props,
  5752. bindObject
  5753. ) {
  5754. var scopedSlotFn = this.$scopedSlots[name];
  5755. var nodes;
  5756. if (scopedSlotFn) { // scoped slot
  5757. props = props || {};
  5758. if (bindObject) {
  5759. if ( true && !isObject(bindObject)) {
  5760. warn(
  5761. 'slot v-bind without argument expects an Object',
  5762. this
  5763. );
  5764. }
  5765. props = extend(extend({}, bindObject), props);
  5766. }
  5767. // fixed by xxxxxx app-plus scopedSlot
  5768. nodes = scopedSlotFn(props, this, props._i) || fallback;
  5769. } else {
  5770. nodes = this.$slots[name] || fallback;
  5771. }
  5772. var target = props && props.slot;
  5773. if (target) {
  5774. return this.$createElement('template', { slot: target }, nodes)
  5775. } else {
  5776. return nodes
  5777. }
  5778. }
  5779. /* */
  5780. /**
  5781. * Runtime helper for resolving filters
  5782. */
  5783. function resolveFilter (id) {
  5784. return resolveAsset(this.$options, 'filters', id, true) || identity
  5785. }
  5786. /* */
  5787. function isKeyNotMatch (expect, actual) {
  5788. if (Array.isArray(expect)) {
  5789. return expect.indexOf(actual) === -1
  5790. } else {
  5791. return expect !== actual
  5792. }
  5793. }
  5794. /**
  5795. * Runtime helper for checking keyCodes from config.
  5796. * exposed as Vue.prototype._k
  5797. * passing in eventKeyName as last argument separately for backwards compat
  5798. */
  5799. function checkKeyCodes (
  5800. eventKeyCode,
  5801. key,
  5802. builtInKeyCode,
  5803. eventKeyName,
  5804. builtInKeyName
  5805. ) {
  5806. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  5807. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  5808. return isKeyNotMatch(builtInKeyName, eventKeyName)
  5809. } else if (mappedKeyCode) {
  5810. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  5811. } else if (eventKeyName) {
  5812. return hyphenate(eventKeyName) !== key
  5813. }
  5814. }
  5815. /* */
  5816. /**
  5817. * Runtime helper for merging v-bind="object" into a VNode's data.
  5818. */
  5819. function bindObjectProps (
  5820. data,
  5821. tag,
  5822. value,
  5823. asProp,
  5824. isSync
  5825. ) {
  5826. if (value) {
  5827. if (!isObject(value)) {
  5828. true && warn(
  5829. 'v-bind without argument expects an Object or Array value',
  5830. this
  5831. );
  5832. } else {
  5833. if (Array.isArray(value)) {
  5834. value = toObject(value);
  5835. }
  5836. var hash;
  5837. var loop = function ( key ) {
  5838. if (
  5839. key === 'class' ||
  5840. key === 'style' ||
  5841. isReservedAttribute(key)
  5842. ) {
  5843. hash = data;
  5844. } else {
  5845. var type = data.attrs && data.attrs.type;
  5846. hash = asProp || config.mustUseProp(tag, type, key)
  5847. ? data.domProps || (data.domProps = {})
  5848. : data.attrs || (data.attrs = {});
  5849. }
  5850. var camelizedKey = camelize(key);
  5851. var hyphenatedKey = hyphenate(key);
  5852. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  5853. hash[key] = value[key];
  5854. if (isSync) {
  5855. var on = data.on || (data.on = {});
  5856. on[("update:" + key)] = function ($event) {
  5857. value[key] = $event;
  5858. };
  5859. }
  5860. }
  5861. };
  5862. for (var key in value) loop( key );
  5863. }
  5864. }
  5865. return data
  5866. }
  5867. /* */
  5868. /**
  5869. * Runtime helper for rendering static trees.
  5870. */
  5871. function renderStatic (
  5872. index,
  5873. isInFor
  5874. ) {
  5875. var cached = this._staticTrees || (this._staticTrees = []);
  5876. var tree = cached[index];
  5877. // if has already-rendered static tree and not inside v-for,
  5878. // we can reuse the same tree.
  5879. if (tree && !isInFor) {
  5880. return tree
  5881. }
  5882. // otherwise, render a fresh tree.
  5883. tree = cached[index] = this.$options.staticRenderFns[index].call(
  5884. this._renderProxy,
  5885. null,
  5886. this // for render fns generated for functional component templates
  5887. );
  5888. markStatic(tree, ("__static__" + index), false);
  5889. return tree
  5890. }
  5891. /**
  5892. * Runtime helper for v-once.
  5893. * Effectively it means marking the node as static with a unique key.
  5894. */
  5895. function markOnce (
  5896. tree,
  5897. index,
  5898. key
  5899. ) {
  5900. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  5901. return tree
  5902. }
  5903. function markStatic (
  5904. tree,
  5905. key,
  5906. isOnce
  5907. ) {
  5908. if (Array.isArray(tree)) {
  5909. for (var i = 0; i < tree.length; i++) {
  5910. if (tree[i] && typeof tree[i] !== 'string') {
  5911. markStaticNode(tree[i], (key + "_" + i), isOnce);
  5912. }
  5913. }
  5914. } else {
  5915. markStaticNode(tree, key, isOnce);
  5916. }
  5917. }
  5918. function markStaticNode (node, key, isOnce) {
  5919. node.isStatic = true;
  5920. node.key = key;
  5921. node.isOnce = isOnce;
  5922. }
  5923. /* */
  5924. function bindObjectListeners (data, value) {
  5925. if (value) {
  5926. if (!isPlainObject(value)) {
  5927. true && warn(
  5928. 'v-on without argument expects an Object value',
  5929. this
  5930. );
  5931. } else {
  5932. var on = data.on = data.on ? extend({}, data.on) : {};
  5933. for (var key in value) {
  5934. var existing = on[key];
  5935. var ours = value[key];
  5936. on[key] = existing ? [].concat(existing, ours) : ours;
  5937. }
  5938. }
  5939. }
  5940. return data
  5941. }
  5942. /* */
  5943. function resolveScopedSlots (
  5944. fns, // see flow/vnode
  5945. res,
  5946. // the following are added in 2.6
  5947. hasDynamicKeys,
  5948. contentHashKey
  5949. ) {
  5950. res = res || { $stable: !hasDynamicKeys };
  5951. for (var i = 0; i < fns.length; i++) {
  5952. var slot = fns[i];
  5953. if (Array.isArray(slot)) {
  5954. resolveScopedSlots(slot, res, hasDynamicKeys);
  5955. } else if (slot) {
  5956. // marker for reverse proxying v-slot without scope on this.$slots
  5957. if (slot.proxy) {
  5958. slot.fn.proxy = true;
  5959. }
  5960. res[slot.key] = slot.fn;
  5961. }
  5962. }
  5963. if (contentHashKey) {
  5964. (res).$key = contentHashKey;
  5965. }
  5966. return res
  5967. }
  5968. /* */
  5969. function bindDynamicKeys (baseObj, values) {
  5970. for (var i = 0; i < values.length; i += 2) {
  5971. var key = values[i];
  5972. if (typeof key === 'string' && key) {
  5973. baseObj[values[i]] = values[i + 1];
  5974. } else if ( true && key !== '' && key !== null) {
  5975. // null is a special value for explicitly removing a binding
  5976. warn(
  5977. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  5978. this
  5979. );
  5980. }
  5981. }
  5982. return baseObj
  5983. }
  5984. // helper to dynamically append modifier runtime markers to event names.
  5985. // ensure only append when value is already string, otherwise it will be cast
  5986. // to string and cause the type check to miss.
  5987. function prependModifier (value, symbol) {
  5988. return typeof value === 'string' ? symbol + value : value
  5989. }
  5990. /* */
  5991. function installRenderHelpers (target) {
  5992. target._o = markOnce;
  5993. target._n = toNumber;
  5994. target._s = toString;
  5995. target._l = renderList;
  5996. target._t = renderSlot;
  5997. target._q = looseEqual;
  5998. target._i = looseIndexOf;
  5999. target._m = renderStatic;
  6000. target._f = resolveFilter;
  6001. target._k = checkKeyCodes;
  6002. target._b = bindObjectProps;
  6003. target._v = createTextVNode;
  6004. target._e = createEmptyVNode;
  6005. target._u = resolveScopedSlots;
  6006. target._g = bindObjectListeners;
  6007. target._d = bindDynamicKeys;
  6008. target._p = prependModifier;
  6009. }
  6010. /* */
  6011. function FunctionalRenderContext (
  6012. data,
  6013. props,
  6014. children,
  6015. parent,
  6016. Ctor
  6017. ) {
  6018. var this$1 = this;
  6019. var options = Ctor.options;
  6020. // ensure the createElement function in functional components
  6021. // gets a unique context - this is necessary for correct named slot check
  6022. var contextVm;
  6023. if (hasOwn(parent, '_uid')) {
  6024. contextVm = Object.create(parent);
  6025. // $flow-disable-line
  6026. contextVm._original = parent;
  6027. } else {
  6028. // the context vm passed in is a functional context as well.
  6029. // in this case we want to make sure we are able to get a hold to the
  6030. // real context instance.
  6031. contextVm = parent;
  6032. // $flow-disable-line
  6033. parent = parent._original;
  6034. }
  6035. var isCompiled = isTrue(options._compiled);
  6036. var needNormalization = !isCompiled;
  6037. this.data = data;
  6038. this.props = props;
  6039. this.children = children;
  6040. this.parent = parent;
  6041. this.listeners = data.on || emptyObject;
  6042. this.injections = resolveInject(options.inject, parent);
  6043. this.slots = function () {
  6044. if (!this$1.$slots) {
  6045. normalizeScopedSlots(
  6046. data.scopedSlots,
  6047. this$1.$slots = resolveSlots(children, parent)
  6048. );
  6049. }
  6050. return this$1.$slots
  6051. };
  6052. Object.defineProperty(this, 'scopedSlots', ({
  6053. enumerable: true,
  6054. get: function get () {
  6055. return normalizeScopedSlots(data.scopedSlots, this.slots())
  6056. }
  6057. }));
  6058. // support for compiled functional template
  6059. if (isCompiled) {
  6060. // exposing $options for renderStatic()
  6061. this.$options = options;
  6062. // pre-resolve slots for renderSlot()
  6063. this.$slots = this.slots();
  6064. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  6065. }
  6066. if (options._scopeId) {
  6067. this._c = function (a, b, c, d) {
  6068. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  6069. if (vnode && !Array.isArray(vnode)) {
  6070. vnode.fnScopeId = options._scopeId;
  6071. vnode.fnContext = parent;
  6072. }
  6073. return vnode
  6074. };
  6075. } else {
  6076. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  6077. }
  6078. }
  6079. installRenderHelpers(FunctionalRenderContext.prototype);
  6080. function createFunctionalComponent (
  6081. Ctor,
  6082. propsData,
  6083. data,
  6084. contextVm,
  6085. children
  6086. ) {
  6087. var options = Ctor.options;
  6088. var props = {};
  6089. var propOptions = options.props;
  6090. if (isDef(propOptions)) {
  6091. for (var key in propOptions) {
  6092. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  6093. }
  6094. } else {
  6095. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  6096. if (isDef(data.props)) { mergeProps(props, data.props); }
  6097. }
  6098. var renderContext = new FunctionalRenderContext(
  6099. data,
  6100. props,
  6101. children,
  6102. contextVm,
  6103. Ctor
  6104. );
  6105. var vnode = options.render.call(null, renderContext._c, renderContext);
  6106. if (vnode instanceof VNode) {
  6107. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  6108. } else if (Array.isArray(vnode)) {
  6109. var vnodes = normalizeChildren(vnode) || [];
  6110. var res = new Array(vnodes.length);
  6111. for (var i = 0; i < vnodes.length; i++) {
  6112. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  6113. }
  6114. return res
  6115. }
  6116. }
  6117. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  6118. // #7817 clone node before setting fnContext, otherwise if the node is reused
  6119. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  6120. // that should not be matched to match.
  6121. var clone = cloneVNode(vnode);
  6122. clone.fnContext = contextVm;
  6123. clone.fnOptions = options;
  6124. if (true) {
  6125. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  6126. }
  6127. if (data.slot) {
  6128. (clone.data || (clone.data = {})).slot = data.slot;
  6129. }
  6130. return clone
  6131. }
  6132. function mergeProps (to, from) {
  6133. for (var key in from) {
  6134. to[camelize(key)] = from[key];
  6135. }
  6136. }
  6137. /* */
  6138. /* */
  6139. /* */
  6140. /* */
  6141. // inline hooks to be invoked on component VNodes during patch
  6142. var componentVNodeHooks = {
  6143. init: function init (vnode, hydrating) {
  6144. if (
  6145. vnode.componentInstance &&
  6146. !vnode.componentInstance._isDestroyed &&
  6147. vnode.data.keepAlive
  6148. ) {
  6149. // kept-alive components, treat as a patch
  6150. var mountedNode = vnode; // work around flow
  6151. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  6152. } else {
  6153. var child = vnode.componentInstance = createComponentInstanceForVnode(
  6154. vnode,
  6155. activeInstance
  6156. );
  6157. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  6158. }
  6159. },
  6160. prepatch: function prepatch (oldVnode, vnode) {
  6161. var options = vnode.componentOptions;
  6162. var child = vnode.componentInstance = oldVnode.componentInstance;
  6163. updateChildComponent(
  6164. child,
  6165. options.propsData, // updated props
  6166. options.listeners, // updated listeners
  6167. vnode, // new parent vnode
  6168. options.children // new children
  6169. );
  6170. },
  6171. insert: function insert (vnode) {
  6172. var context = vnode.context;
  6173. var componentInstance = vnode.componentInstance;
  6174. if (!componentInstance._isMounted) {
  6175. callHook(componentInstance, 'onServiceCreated');
  6176. callHook(componentInstance, 'onServiceAttached');
  6177. componentInstance._isMounted = true;
  6178. callHook(componentInstance, 'mounted');
  6179. }
  6180. if (vnode.data.keepAlive) {
  6181. if (context._isMounted) {
  6182. // vue-router#1212
  6183. // During updates, a kept-alive component's child components may
  6184. // change, so directly walking the tree here may call activated hooks
  6185. // on incorrect children. Instead we push them into a queue which will
  6186. // be processed after the whole patch process ended.
  6187. queueActivatedComponent(componentInstance);
  6188. } else {
  6189. activateChildComponent(componentInstance, true /* direct */);
  6190. }
  6191. }
  6192. },
  6193. destroy: function destroy (vnode) {
  6194. var componentInstance = vnode.componentInstance;
  6195. if (!componentInstance._isDestroyed) {
  6196. if (!vnode.data.keepAlive) {
  6197. componentInstance.$destroy();
  6198. } else {
  6199. deactivateChildComponent(componentInstance, true /* direct */);
  6200. }
  6201. }
  6202. }
  6203. };
  6204. var hooksToMerge = Object.keys(componentVNodeHooks);
  6205. function createComponent (
  6206. Ctor,
  6207. data,
  6208. context,
  6209. children,
  6210. tag
  6211. ) {
  6212. if (isUndef(Ctor)) {
  6213. return
  6214. }
  6215. var baseCtor = context.$options._base;
  6216. // plain options object: turn it into a constructor
  6217. if (isObject(Ctor)) {
  6218. Ctor = baseCtor.extend(Ctor);
  6219. }
  6220. // if at this stage it's not a constructor or an async component factory,
  6221. // reject.
  6222. if (typeof Ctor !== 'function') {
  6223. if (true) {
  6224. warn(("Invalid Component definition: " + (String(Ctor))), context);
  6225. }
  6226. return
  6227. }
  6228. // async component
  6229. var asyncFactory;
  6230. if (isUndef(Ctor.cid)) {
  6231. asyncFactory = Ctor;
  6232. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  6233. if (Ctor === undefined) {
  6234. // return a placeholder node for async component, which is rendered
  6235. // as a comment node but preserves all the raw information for the node.
  6236. // the information will be used for async server-rendering and hydration.
  6237. return createAsyncPlaceholder(
  6238. asyncFactory,
  6239. data,
  6240. context,
  6241. children,
  6242. tag
  6243. )
  6244. }
  6245. }
  6246. data = data || {};
  6247. // resolve constructor options in case global mixins are applied after
  6248. // component constructor creation
  6249. resolveConstructorOptions(Ctor);
  6250. // transform component v-model data into props & events
  6251. if (isDef(data.model)) {
  6252. transformModel(Ctor.options, data);
  6253. }
  6254. // extract props
  6255. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  6256. // functional component
  6257. if (isTrue(Ctor.options.functional)) {
  6258. return createFunctionalComponent(Ctor, propsData, data, context, children)
  6259. }
  6260. // extract listeners, since these needs to be treated as
  6261. // child component listeners instead of DOM listeners
  6262. var listeners = data.on;
  6263. // replace with listeners with .native modifier
  6264. // so it gets processed during parent component patch.
  6265. data.on = data.nativeOn;
  6266. if (isTrue(Ctor.options.abstract)) {
  6267. // abstract components do not keep anything
  6268. // other than props & listeners & slot
  6269. // work around flow
  6270. var slot = data.slot;
  6271. data = {};
  6272. if (slot) {
  6273. data.slot = slot;
  6274. }
  6275. }
  6276. // install component management hooks onto the placeholder node
  6277. installComponentHooks(data);
  6278. // return a placeholder vnode
  6279. var name = Ctor.options.name || tag;
  6280. var vnode = new VNode(
  6281. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  6282. data, undefined, undefined, undefined, context,
  6283. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  6284. asyncFactory
  6285. );
  6286. return vnode
  6287. }
  6288. function createComponentInstanceForVnode (
  6289. vnode, // we know it's MountedComponentVNode but flow doesn't
  6290. parent // activeInstance in lifecycle state
  6291. ) {
  6292. var options = {
  6293. _isComponent: true,
  6294. _parentVnode: vnode,
  6295. parent: parent
  6296. };
  6297. // check inline-template render functions
  6298. var inlineTemplate = vnode.data.inlineTemplate;
  6299. if (isDef(inlineTemplate)) {
  6300. options.render = inlineTemplate.render;
  6301. options.staticRenderFns = inlineTemplate.staticRenderFns;
  6302. }
  6303. return new vnode.componentOptions.Ctor(options)
  6304. }
  6305. function installComponentHooks (data) {
  6306. var hooks = data.hook || (data.hook = {});
  6307. for (var i = 0; i < hooksToMerge.length; i++) {
  6308. var key = hooksToMerge[i];
  6309. var existing = hooks[key];
  6310. var toMerge = componentVNodeHooks[key];
  6311. if (existing !== toMerge && !(existing && existing._merged)) {
  6312. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  6313. }
  6314. }
  6315. }
  6316. function mergeHook$1 (f1, f2) {
  6317. var merged = function (a, b) {
  6318. // flow complains about extra args which is why we use any
  6319. f1(a, b);
  6320. f2(a, b);
  6321. };
  6322. merged._merged = true;
  6323. return merged
  6324. }
  6325. // transform component v-model info (value and callback) into
  6326. // prop and event handler respectively.
  6327. function transformModel (options, data) {
  6328. var prop = (options.model && options.model.prop) || 'value';
  6329. var event = (options.model && options.model.event) || 'input'
  6330. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  6331. var on = data.on || (data.on = {});
  6332. var existing = on[event];
  6333. var callback = data.model.callback;
  6334. if (isDef(existing)) {
  6335. if (
  6336. Array.isArray(existing)
  6337. ? existing.indexOf(callback) === -1
  6338. : existing !== callback
  6339. ) {
  6340. on[event] = [callback].concat(existing);
  6341. }
  6342. } else {
  6343. on[event] = callback;
  6344. }
  6345. }
  6346. /* */
  6347. var SIMPLE_NORMALIZE = 1;
  6348. var ALWAYS_NORMALIZE = 2;
  6349. // wrapper function for providing a more flexible interface
  6350. // without getting yelled at by flow
  6351. function createElement (
  6352. context,
  6353. tag,
  6354. data,
  6355. children,
  6356. normalizationType,
  6357. alwaysNormalize
  6358. ) {
  6359. if (Array.isArray(data) || isPrimitive(data)) {
  6360. normalizationType = children;
  6361. children = data;
  6362. data = undefined;
  6363. }
  6364. if (isTrue(alwaysNormalize)) {
  6365. normalizationType = ALWAYS_NORMALIZE;
  6366. }
  6367. return _createElement(context, tag, data, children, normalizationType)
  6368. }
  6369. function _createElement (
  6370. context,
  6371. tag,
  6372. data,
  6373. children,
  6374. normalizationType
  6375. ) {
  6376. if (isDef(data) && isDef((data).__ob__)) {
  6377. true && warn(
  6378. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  6379. 'Always create fresh vnode data objects in each render!',
  6380. context
  6381. );
  6382. return createEmptyVNode()
  6383. }
  6384. // object syntax in v-bind
  6385. if (isDef(data) && isDef(data.is)) {
  6386. tag = data.is;
  6387. }
  6388. if (!tag) {
  6389. // in case of component :is set to falsy value
  6390. return createEmptyVNode()
  6391. }
  6392. // warn against non-primitive key
  6393. if ( true &&
  6394. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  6395. ) {
  6396. {
  6397. warn(
  6398. 'Avoid using non-primitive value as key, ' +
  6399. 'use string/number value instead.',
  6400. context
  6401. );
  6402. }
  6403. }
  6404. // support single function children as default scoped slot
  6405. if (Array.isArray(children) &&
  6406. typeof children[0] === 'function'
  6407. ) {
  6408. data = data || {};
  6409. data.scopedSlots = { default: children[0] };
  6410. children.length = 0;
  6411. }
  6412. if (normalizationType === ALWAYS_NORMALIZE) {
  6413. children = normalizeChildren(children);
  6414. } else if (normalizationType === SIMPLE_NORMALIZE) {
  6415. children = simpleNormalizeChildren(children);
  6416. }
  6417. var vnode, ns;
  6418. if (typeof tag === 'string') {
  6419. var Ctor;
  6420. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  6421. if (config.isReservedTag(tag)) {
  6422. // platform built-in elements
  6423. if ( true && isDef(data) && isDef(data.nativeOn)) {
  6424. warn(
  6425. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  6426. context
  6427. );
  6428. }
  6429. vnode = new VNode(
  6430. config.parsePlatformTagName(tag), data, children,
  6431. undefined, undefined, context
  6432. );
  6433. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  6434. // component
  6435. vnode = createComponent(Ctor, data, context, children, tag);
  6436. } else {
  6437. // unknown or unlisted namespaced elements
  6438. // check at runtime because it may get assigned a namespace when its
  6439. // parent normalizes children
  6440. vnode = new VNode(
  6441. tag, data, children,
  6442. undefined, undefined, context
  6443. );
  6444. }
  6445. } else {
  6446. // direct component options / constructor
  6447. vnode = createComponent(tag, data, context, children);
  6448. }
  6449. if (Array.isArray(vnode)) {
  6450. return vnode
  6451. } else if (isDef(vnode)) {
  6452. if (isDef(ns)) { applyNS(vnode, ns); }
  6453. if (isDef(data)) { registerDeepBindings(data); }
  6454. return vnode
  6455. } else {
  6456. return createEmptyVNode()
  6457. }
  6458. }
  6459. function applyNS (vnode, ns, force) {
  6460. vnode.ns = ns;
  6461. if (vnode.tag === 'foreignObject') {
  6462. // use default namespace inside foreignObject
  6463. ns = undefined;
  6464. force = true;
  6465. }
  6466. if (isDef(vnode.children)) {
  6467. for (var i = 0, l = vnode.children.length; i < l; i++) {
  6468. var child = vnode.children[i];
  6469. if (isDef(child.tag) && (
  6470. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  6471. applyNS(child, ns, force);
  6472. }
  6473. }
  6474. }
  6475. }
  6476. // ref #5318
  6477. // necessary to ensure parent re-render when deep bindings like :style and
  6478. // :class are used on slot nodes
  6479. function registerDeepBindings (data) {
  6480. if (isObject(data.style)) {
  6481. traverse(data.style);
  6482. }
  6483. if (isObject(data.class)) {
  6484. traverse(data.class);
  6485. }
  6486. }
  6487. /* */
  6488. function initRender (vm) {
  6489. vm._vnode = null; // the root of the child tree
  6490. vm._staticTrees = null; // v-once cached trees
  6491. var options = vm.$options;
  6492. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  6493. var renderContext = parentVnode && parentVnode.context;
  6494. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  6495. vm.$scopedSlots = emptyObject;
  6496. // bind the createElement fn to this instance
  6497. // so that we get proper render context inside it.
  6498. // args order: tag, data, children, normalizationType, alwaysNormalize
  6499. // internal version is used by render functions compiled from templates
  6500. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  6501. // normalization is always applied for the public version, used in
  6502. // user-written render functions.
  6503. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  6504. // $attrs & $listeners are exposed for easier HOC creation.
  6505. // they need to be reactive so that HOCs using them are always updated
  6506. var parentData = parentVnode && parentVnode.data;
  6507. /* istanbul ignore else */
  6508. if (true) {
  6509. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  6510. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  6511. }, true);
  6512. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  6513. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  6514. }, true);
  6515. } else {}
  6516. }
  6517. var currentRenderingInstance = null;
  6518. function renderMixin (Vue) {
  6519. // install runtime convenience helpers
  6520. installRenderHelpers(Vue.prototype);
  6521. Vue.prototype.$nextTick = function (fn) {
  6522. return nextTick(fn, this)
  6523. };
  6524. Vue.prototype._render = function () {
  6525. var vm = this;
  6526. var ref = vm.$options;
  6527. var render = ref.render;
  6528. var _parentVnode = ref._parentVnode;
  6529. if (_parentVnode) {
  6530. vm.$scopedSlots = normalizeScopedSlots(
  6531. _parentVnode.data.scopedSlots,
  6532. vm.$slots,
  6533. vm.$scopedSlots
  6534. );
  6535. }
  6536. // set parent vnode. this allows render functions to have access
  6537. // to the data on the placeholder node.
  6538. vm.$vnode = _parentVnode;
  6539. // render self
  6540. var vnode;
  6541. try {
  6542. // There's no need to maintain a stack because all render fns are called
  6543. // separately from one another. Nested component's render fns are called
  6544. // when parent component is patched.
  6545. currentRenderingInstance = vm;
  6546. vnode = render.call(vm._renderProxy, vm.$createElement);
  6547. } catch (e) {
  6548. handleError(e, vm, "render");
  6549. // return error render result,
  6550. // or previous vnode to prevent render error causing blank component
  6551. /* istanbul ignore else */
  6552. if ( true && vm.$options.renderError) {
  6553. try {
  6554. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  6555. } catch (e) {
  6556. handleError(e, vm, "renderError");
  6557. vnode = vm._vnode;
  6558. }
  6559. } else {
  6560. vnode = vm._vnode;
  6561. }
  6562. } finally {
  6563. currentRenderingInstance = null;
  6564. }
  6565. // if the returned array contains only a single node, allow it
  6566. if (Array.isArray(vnode) && vnode.length === 1) {
  6567. vnode = vnode[0];
  6568. }
  6569. // return empty vnode in case the render function errored out
  6570. if (!(vnode instanceof VNode)) {
  6571. if ( true && Array.isArray(vnode)) {
  6572. warn(
  6573. 'Multiple root nodes returned from render function. Render function ' +
  6574. 'should return a single root node.',
  6575. vm
  6576. );
  6577. }
  6578. vnode = createEmptyVNode();
  6579. }
  6580. // set parent
  6581. vnode.parent = _parentVnode;
  6582. return vnode
  6583. };
  6584. }
  6585. /* */
  6586. function ensureCtor (comp, base) {
  6587. if (
  6588. comp.__esModule ||
  6589. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  6590. ) {
  6591. comp = comp.default;
  6592. }
  6593. return isObject(comp)
  6594. ? base.extend(comp)
  6595. : comp
  6596. }
  6597. function createAsyncPlaceholder (
  6598. factory,
  6599. data,
  6600. context,
  6601. children,
  6602. tag
  6603. ) {
  6604. var node = createEmptyVNode();
  6605. node.asyncFactory = factory;
  6606. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  6607. return node
  6608. }
  6609. function resolveAsyncComponent (
  6610. factory,
  6611. baseCtor
  6612. ) {
  6613. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  6614. return factory.errorComp
  6615. }
  6616. if (isDef(factory.resolved)) {
  6617. return factory.resolved
  6618. }
  6619. var owner = currentRenderingInstance;
  6620. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  6621. // already pending
  6622. factory.owners.push(owner);
  6623. }
  6624. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  6625. return factory.loadingComp
  6626. }
  6627. if (owner && !isDef(factory.owners)) {
  6628. var owners = factory.owners = [owner];
  6629. var sync = true;
  6630. var timerLoading = null;
  6631. var timerTimeout = null
  6632. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  6633. var forceRender = function (renderCompleted) {
  6634. for (var i = 0, l = owners.length; i < l; i++) {
  6635. (owners[i]).$forceUpdate();
  6636. }
  6637. if (renderCompleted) {
  6638. owners.length = 0;
  6639. if (timerLoading !== null) {
  6640. clearTimeout(timerLoading);
  6641. timerLoading = null;
  6642. }
  6643. if (timerTimeout !== null) {
  6644. clearTimeout(timerTimeout);
  6645. timerTimeout = null;
  6646. }
  6647. }
  6648. };
  6649. var resolve = once(function (res) {
  6650. // cache resolved
  6651. factory.resolved = ensureCtor(res, baseCtor);
  6652. // invoke callbacks only if this is not a synchronous resolve
  6653. // (async resolves are shimmed as synchronous during SSR)
  6654. if (!sync) {
  6655. forceRender(true);
  6656. } else {
  6657. owners.length = 0;
  6658. }
  6659. });
  6660. var reject = once(function (reason) {
  6661. true && warn(
  6662. "Failed to resolve async component: " + (String(factory)) +
  6663. (reason ? ("\nReason: " + reason) : '')
  6664. );
  6665. if (isDef(factory.errorComp)) {
  6666. factory.error = true;
  6667. forceRender(true);
  6668. }
  6669. });
  6670. var res = factory(resolve, reject);
  6671. if (isObject(res)) {
  6672. if (isPromise(res)) {
  6673. // () => Promise
  6674. if (isUndef(factory.resolved)) {
  6675. res.then(resolve, reject);
  6676. }
  6677. } else if (isPromise(res.component)) {
  6678. res.component.then(resolve, reject);
  6679. if (isDef(res.error)) {
  6680. factory.errorComp = ensureCtor(res.error, baseCtor);
  6681. }
  6682. if (isDef(res.loading)) {
  6683. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  6684. if (res.delay === 0) {
  6685. factory.loading = true;
  6686. } else {
  6687. timerLoading = setTimeout(function () {
  6688. timerLoading = null;
  6689. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  6690. factory.loading = true;
  6691. forceRender(false);
  6692. }
  6693. }, res.delay || 200);
  6694. }
  6695. }
  6696. if (isDef(res.timeout)) {
  6697. timerTimeout = setTimeout(function () {
  6698. timerTimeout = null;
  6699. if (isUndef(factory.resolved)) {
  6700. reject(
  6701. true
  6702. ? ("timeout (" + (res.timeout) + "ms)")
  6703. : undefined
  6704. );
  6705. }
  6706. }, res.timeout);
  6707. }
  6708. }
  6709. }
  6710. sync = false;
  6711. // return in case resolved synchronously
  6712. return factory.loading
  6713. ? factory.loadingComp
  6714. : factory.resolved
  6715. }
  6716. }
  6717. /* */
  6718. function isAsyncPlaceholder (node) {
  6719. return node.isComment && node.asyncFactory
  6720. }
  6721. /* */
  6722. function getFirstComponentChild (children) {
  6723. if (Array.isArray(children)) {
  6724. for (var i = 0; i < children.length; i++) {
  6725. var c = children[i];
  6726. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  6727. return c
  6728. }
  6729. }
  6730. }
  6731. }
  6732. /* */
  6733. /* */
  6734. function initEvents (vm) {
  6735. vm._events = Object.create(null);
  6736. vm._hasHookEvent = false;
  6737. // init parent attached events
  6738. var listeners = vm.$options._parentListeners;
  6739. if (listeners) {
  6740. updateComponentListeners(vm, listeners);
  6741. }
  6742. }
  6743. var target;
  6744. function add (event, fn) {
  6745. target.$on(event, fn);
  6746. }
  6747. function remove$1 (event, fn) {
  6748. target.$off(event, fn);
  6749. }
  6750. function createOnceHandler (event, fn) {
  6751. var _target = target;
  6752. return function onceHandler () {
  6753. var res = fn.apply(null, arguments);
  6754. if (res !== null) {
  6755. _target.$off(event, onceHandler);
  6756. }
  6757. }
  6758. }
  6759. function updateComponentListeners (
  6760. vm,
  6761. listeners,
  6762. oldListeners
  6763. ) {
  6764. target = vm;
  6765. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  6766. target = undefined;
  6767. }
  6768. function eventsMixin (Vue) {
  6769. var hookRE = /^hook:/;
  6770. Vue.prototype.$on = function (event, fn) {
  6771. var vm = this;
  6772. if (Array.isArray(event)) {
  6773. for (var i = 0, l = event.length; i < l; i++) {
  6774. vm.$on(event[i], fn);
  6775. }
  6776. } else {
  6777. (vm._events[event] || (vm._events[event] = [])).push(fn);
  6778. // optimize hook:event cost by using a boolean flag marked at registration
  6779. // instead of a hash lookup
  6780. if (hookRE.test(event)) {
  6781. vm._hasHookEvent = true;
  6782. }
  6783. }
  6784. return vm
  6785. };
  6786. Vue.prototype.$once = function (event, fn) {
  6787. var vm = this;
  6788. function on () {
  6789. vm.$off(event, on);
  6790. fn.apply(vm, arguments);
  6791. }
  6792. on.fn = fn;
  6793. vm.$on(event, on);
  6794. return vm
  6795. };
  6796. Vue.prototype.$off = function (event, fn) {
  6797. var vm = this;
  6798. // all
  6799. if (!arguments.length) {
  6800. vm._events = Object.create(null);
  6801. return vm
  6802. }
  6803. // array of events
  6804. if (Array.isArray(event)) {
  6805. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  6806. vm.$off(event[i$1], fn);
  6807. }
  6808. return vm
  6809. }
  6810. // specific event
  6811. var cbs = vm._events[event];
  6812. if (!cbs) {
  6813. return vm
  6814. }
  6815. if (!fn) {
  6816. vm._events[event] = null;
  6817. return vm
  6818. }
  6819. // specific handler
  6820. var cb;
  6821. var i = cbs.length;
  6822. while (i--) {
  6823. cb = cbs[i];
  6824. if (cb === fn || cb.fn === fn) {
  6825. cbs.splice(i, 1);
  6826. break
  6827. }
  6828. }
  6829. return vm
  6830. };
  6831. Vue.prototype.$emit = function (event) {
  6832. var vm = this;
  6833. if (true) {
  6834. var lowerCaseEvent = event.toLowerCase();
  6835. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  6836. tip(
  6837. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  6838. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  6839. "Note that HTML attributes are case-insensitive and you cannot use " +
  6840. "v-on to listen to camelCase events when using in-DOM templates. " +
  6841. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  6842. );
  6843. }
  6844. }
  6845. var cbs = vm._events[event];
  6846. if (cbs) {
  6847. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  6848. var args = toArray(arguments, 1);
  6849. var info = "event handler for \"" + event + "\"";
  6850. for (var i = 0, l = cbs.length; i < l; i++) {
  6851. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  6852. }
  6853. }
  6854. return vm
  6855. };
  6856. }
  6857. /* */
  6858. var activeInstance = null;
  6859. var isUpdatingChildComponent = false;
  6860. function setActiveInstance(vm) {
  6861. var prevActiveInstance = activeInstance;
  6862. activeInstance = vm;
  6863. return function () {
  6864. activeInstance = prevActiveInstance;
  6865. }
  6866. }
  6867. function initLifecycle (vm) {
  6868. var options = vm.$options;
  6869. // locate first non-abstract parent
  6870. var parent = options.parent;
  6871. if (parent && !options.abstract) {
  6872. while (parent.$options.abstract && parent.$parent) {
  6873. parent = parent.$parent;
  6874. }
  6875. parent.$children.push(vm);
  6876. }
  6877. vm.$parent = parent;
  6878. vm.$root = parent ? parent.$root : vm;
  6879. vm.$children = [];
  6880. vm.$refs = {};
  6881. vm._watcher = null;
  6882. vm._inactive = null;
  6883. vm._directInactive = false;
  6884. vm._isMounted = false;
  6885. vm._isDestroyed = false;
  6886. vm._isBeingDestroyed = false;
  6887. }
  6888. function lifecycleMixin (Vue) {
  6889. Vue.prototype._update = function (vnode, hydrating) {
  6890. var vm = this;
  6891. var prevEl = vm.$el;
  6892. var prevVnode = vm._vnode;
  6893. var restoreActiveInstance = setActiveInstance(vm);
  6894. vm._vnode = vnode;
  6895. // Vue.prototype.__patch__ is injected in entry points
  6896. // based on the rendering backend used.
  6897. if (!prevVnode) {
  6898. // initial render
  6899. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  6900. } else {
  6901. // updates
  6902. vm.$el = vm.__patch__(prevVnode, vnode);
  6903. }
  6904. restoreActiveInstance();
  6905. // update __vue__ reference
  6906. if (prevEl) {
  6907. prevEl.__vue__ = null;
  6908. }
  6909. if (vm.$el) {
  6910. vm.$el.__vue__ = vm;
  6911. }
  6912. // if parent is an HOC, update its $el as well
  6913. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  6914. vm.$parent.$el = vm.$el;
  6915. }
  6916. // updated hook is called by the scheduler to ensure that children are
  6917. // updated in a parent's updated hook.
  6918. };
  6919. Vue.prototype.$forceUpdate = function () {
  6920. var vm = this;
  6921. if (vm._watcher) {
  6922. vm._watcher.update();
  6923. }
  6924. };
  6925. Vue.prototype.$destroy = function () {
  6926. var vm = this;
  6927. if (vm._isBeingDestroyed) {
  6928. return
  6929. }
  6930. callHook(vm, 'beforeDestroy');
  6931. vm._isBeingDestroyed = true;
  6932. // remove self from parent
  6933. var parent = vm.$parent;
  6934. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  6935. remove(parent.$children, vm);
  6936. }
  6937. // teardown watchers
  6938. if (vm._watcher) {
  6939. vm._watcher.teardown();
  6940. }
  6941. var i = vm._watchers.length;
  6942. while (i--) {
  6943. vm._watchers[i].teardown();
  6944. }
  6945. // remove reference from data ob
  6946. // frozen object may not have observer.
  6947. if (vm._data.__ob__) {
  6948. vm._data.__ob__.vmCount--;
  6949. }
  6950. // call the last hook...
  6951. vm._isDestroyed = true;
  6952. // invoke destroy hooks on current rendered tree
  6953. vm.__patch__(vm._vnode, null);
  6954. // fire destroyed hook
  6955. callHook(vm, 'destroyed');
  6956. // turn off all instance listeners.
  6957. vm.$off();
  6958. // remove __vue__ reference
  6959. if (vm.$el) {
  6960. vm.$el.__vue__ = null;
  6961. }
  6962. // release circular reference (#6759)
  6963. if (vm.$vnode) {
  6964. vm.$vnode.parent = null;
  6965. }
  6966. };
  6967. }
  6968. function updateChildComponent (
  6969. vm,
  6970. propsData,
  6971. listeners,
  6972. parentVnode,
  6973. renderChildren
  6974. ) {
  6975. if (true) {
  6976. isUpdatingChildComponent = true;
  6977. }
  6978. // determine whether component has slot children
  6979. // we need to do this before overwriting $options._renderChildren.
  6980. // check if there are dynamic scopedSlots (hand-written or compiled but with
  6981. // dynamic slot names). Static scoped slots compiled from template has the
  6982. // "$stable" marker.
  6983. var newScopedSlots = parentVnode.data.scopedSlots;
  6984. var oldScopedSlots = vm.$scopedSlots;
  6985. var hasDynamicScopedSlot = !!(
  6986. (newScopedSlots && !newScopedSlots.$stable) ||
  6987. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  6988. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  6989. );
  6990. // Any static slot children from the parent may have changed during parent's
  6991. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  6992. // update is necessary to ensure correctness.
  6993. var needsForceUpdate = !!(
  6994. renderChildren || // has new static slots
  6995. vm.$options._renderChildren || // has old static slots
  6996. hasDynamicScopedSlot
  6997. );
  6998. vm.$options._parentVnode = parentVnode;
  6999. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  7000. if (vm._vnode) { // update child tree's parent
  7001. vm._vnode.parent = parentVnode;
  7002. }
  7003. vm.$options._renderChildren = renderChildren;
  7004. // update $attrs and $listeners hash
  7005. // these are also reactive so they may trigger child update if the child
  7006. // used them during render
  7007. vm.$attrs = parentVnode.data.attrs || emptyObject;
  7008. vm.$listeners = listeners || emptyObject;
  7009. // update props
  7010. if (propsData && vm.$options.props) {
  7011. toggleObserving(false);
  7012. var props = vm._props;
  7013. var propKeys = vm.$options._propKeys || [];
  7014. for (var i = 0; i < propKeys.length; i++) {
  7015. var key = propKeys[i];
  7016. var propOptions = vm.$options.props; // wtf flow?
  7017. props[key] = validateProp(key, propOptions, propsData, vm);
  7018. }
  7019. toggleObserving(true);
  7020. // keep a copy of raw propsData
  7021. vm.$options.propsData = propsData;
  7022. }
  7023. // fixed by xxxxxx update properties(mp runtime)
  7024. vm._$updateProperties && vm._$updateProperties(vm);
  7025. // update listeners
  7026. listeners = listeners || emptyObject;
  7027. var oldListeners = vm.$options._parentListeners;
  7028. vm.$options._parentListeners = listeners;
  7029. updateComponentListeners(vm, listeners, oldListeners);
  7030. // resolve slots + force update if has children
  7031. if (needsForceUpdate) {
  7032. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  7033. vm.$forceUpdate();
  7034. }
  7035. if (true) {
  7036. isUpdatingChildComponent = false;
  7037. }
  7038. }
  7039. function isInInactiveTree (vm) {
  7040. while (vm && (vm = vm.$parent)) {
  7041. if (vm._inactive) { return true }
  7042. }
  7043. return false
  7044. }
  7045. function activateChildComponent (vm, direct) {
  7046. if (direct) {
  7047. vm._directInactive = false;
  7048. if (isInInactiveTree(vm)) {
  7049. return
  7050. }
  7051. } else if (vm._directInactive) {
  7052. return
  7053. }
  7054. if (vm._inactive || vm._inactive === null) {
  7055. vm._inactive = false;
  7056. for (var i = 0; i < vm.$children.length; i++) {
  7057. activateChildComponent(vm.$children[i]);
  7058. }
  7059. callHook(vm, 'activated');
  7060. }
  7061. }
  7062. function deactivateChildComponent (vm, direct) {
  7063. if (direct) {
  7064. vm._directInactive = true;
  7065. if (isInInactiveTree(vm)) {
  7066. return
  7067. }
  7068. }
  7069. if (!vm._inactive) {
  7070. vm._inactive = true;
  7071. for (var i = 0; i < vm.$children.length; i++) {
  7072. deactivateChildComponent(vm.$children[i]);
  7073. }
  7074. callHook(vm, 'deactivated');
  7075. }
  7076. }
  7077. function callHook (vm, hook) {
  7078. // #7573 disable dep collection when invoking lifecycle hooks
  7079. pushTarget();
  7080. var handlers = vm.$options[hook];
  7081. var info = hook + " hook";
  7082. if (handlers) {
  7083. for (var i = 0, j = handlers.length; i < j; i++) {
  7084. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  7085. }
  7086. }
  7087. if (vm._hasHookEvent) {
  7088. vm.$emit('hook:' + hook);
  7089. }
  7090. popTarget();
  7091. }
  7092. /* */
  7093. var MAX_UPDATE_COUNT = 100;
  7094. var queue = [];
  7095. var activatedChildren = [];
  7096. var has = {};
  7097. var circular = {};
  7098. var waiting = false;
  7099. var flushing = false;
  7100. var index = 0;
  7101. /**
  7102. * Reset the scheduler's state.
  7103. */
  7104. function resetSchedulerState () {
  7105. index = queue.length = activatedChildren.length = 0;
  7106. has = {};
  7107. if (true) {
  7108. circular = {};
  7109. }
  7110. waiting = flushing = false;
  7111. }
  7112. // Async edge case #6566 requires saving the timestamp when event listeners are
  7113. // attached. However, calling performance.now() has a perf overhead especially
  7114. // if the page has thousands of event listeners. Instead, we take a timestamp
  7115. // every time the scheduler flushes and use that for all event listeners
  7116. // attached during that flush.
  7117. var currentFlushTimestamp = 0;
  7118. // Async edge case fix requires storing an event listener's attach timestamp.
  7119. var getNow = Date.now;
  7120. // Determine what event timestamp the browser is using. Annoyingly, the
  7121. // timestamp can either be hi-res (relative to page load) or low-res
  7122. // (relative to UNIX epoch), so in order to compare time we have to use the
  7123. // same timestamp type when saving the flush timestamp.
  7124. // All IE versions use low-res event timestamps, and have problematic clock
  7125. // implementations (#9632)
  7126. if (inBrowser && !isIE) {
  7127. var performance = window.performance;
  7128. if (
  7129. performance &&
  7130. typeof performance.now === 'function' &&
  7131. getNow() > document.createEvent('Event').timeStamp
  7132. ) {
  7133. // if the event timestamp, although evaluated AFTER the Date.now(), is
  7134. // smaller than it, it means the event is using a hi-res timestamp,
  7135. // and we need to use the hi-res version for event listener timestamps as
  7136. // well.
  7137. getNow = function () { return performance.now(); };
  7138. }
  7139. }
  7140. /**
  7141. * Flush both queues and run the watchers.
  7142. */
  7143. function flushSchedulerQueue () {
  7144. currentFlushTimestamp = getNow();
  7145. flushing = true;
  7146. var watcher, id;
  7147. // Sort queue before flush.
  7148. // This ensures that:
  7149. // 1. Components are updated from parent to child. (because parent is always
  7150. // created before the child)
  7151. // 2. A component's user watchers are run before its render watcher (because
  7152. // user watchers are created before the render watcher)
  7153. // 3. If a component is destroyed during a parent component's watcher run,
  7154. // its watchers can be skipped.
  7155. queue.sort(function (a, b) { return a.id - b.id; });
  7156. // do not cache length because more watchers might be pushed
  7157. // as we run existing watchers
  7158. for (index = 0; index < queue.length; index++) {
  7159. watcher = queue[index];
  7160. if (watcher.before) {
  7161. watcher.before();
  7162. }
  7163. id = watcher.id;
  7164. has[id] = null;
  7165. watcher.run();
  7166. // in dev build, check and stop circular updates.
  7167. if ( true && has[id] != null) {
  7168. circular[id] = (circular[id] || 0) + 1;
  7169. if (circular[id] > MAX_UPDATE_COUNT) {
  7170. warn(
  7171. 'You may have an infinite update loop ' + (
  7172. watcher.user
  7173. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  7174. : "in a component render function."
  7175. ),
  7176. watcher.vm
  7177. );
  7178. break
  7179. }
  7180. }
  7181. }
  7182. // keep copies of post queues before resetting state
  7183. var activatedQueue = activatedChildren.slice();
  7184. var updatedQueue = queue.slice();
  7185. resetSchedulerState();
  7186. // call component updated and activated hooks
  7187. callActivatedHooks(activatedQueue);
  7188. callUpdatedHooks(updatedQueue);
  7189. // devtool hook
  7190. /* istanbul ignore if */
  7191. if (devtools && config.devtools) {
  7192. devtools.emit('flush');
  7193. }
  7194. }
  7195. function callUpdatedHooks (queue) {
  7196. var i = queue.length;
  7197. while (i--) {
  7198. var watcher = queue[i];
  7199. var vm = watcher.vm;
  7200. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  7201. callHook(vm, 'updated');
  7202. }
  7203. }
  7204. }
  7205. /**
  7206. * Queue a kept-alive component that was activated during patch.
  7207. * The queue will be processed after the entire tree has been patched.
  7208. */
  7209. function queueActivatedComponent (vm) {
  7210. // setting _inactive to false here so that a render function can
  7211. // rely on checking whether it's in an inactive tree (e.g. router-view)
  7212. vm._inactive = false;
  7213. activatedChildren.push(vm);
  7214. }
  7215. function callActivatedHooks (queue) {
  7216. for (var i = 0; i < queue.length; i++) {
  7217. queue[i]._inactive = true;
  7218. activateChildComponent(queue[i], true /* true */);
  7219. }
  7220. }
  7221. /**
  7222. * Push a watcher into the watcher queue.
  7223. * Jobs with duplicate IDs will be skipped unless it's
  7224. * pushed when the queue is being flushed.
  7225. */
  7226. function queueWatcher (watcher) {
  7227. var id = watcher.id;
  7228. if (has[id] == null) {
  7229. has[id] = true;
  7230. if (!flushing) {
  7231. queue.push(watcher);
  7232. } else {
  7233. // if already flushing, splice the watcher based on its id
  7234. // if already past its id, it will be run next immediately.
  7235. var i = queue.length - 1;
  7236. while (i > index && queue[i].id > watcher.id) {
  7237. i--;
  7238. }
  7239. queue.splice(i + 1, 0, watcher);
  7240. }
  7241. // queue the flush
  7242. if (!waiting) {
  7243. waiting = true;
  7244. if ( true && !config.async) {
  7245. flushSchedulerQueue();
  7246. return
  7247. }
  7248. nextTick(flushSchedulerQueue);
  7249. }
  7250. }
  7251. }
  7252. /* */
  7253. var uid$2 = 0;
  7254. /**
  7255. * A watcher parses an expression, collects dependencies,
  7256. * and fires callback when the expression value changes.
  7257. * This is used for both the $watch() api and directives.
  7258. */
  7259. var Watcher = function Watcher (
  7260. vm,
  7261. expOrFn,
  7262. cb,
  7263. options,
  7264. isRenderWatcher
  7265. ) {
  7266. this.vm = vm;
  7267. if (isRenderWatcher) {
  7268. vm._watcher = this;
  7269. }
  7270. vm._watchers.push(this);
  7271. // options
  7272. if (options) {
  7273. this.deep = !!options.deep;
  7274. this.user = !!options.user;
  7275. this.lazy = !!options.lazy;
  7276. this.sync = !!options.sync;
  7277. this.before = options.before;
  7278. } else {
  7279. this.deep = this.user = this.lazy = this.sync = false;
  7280. }
  7281. this.cb = cb;
  7282. this.id = ++uid$2; // uid for batching
  7283. this.active = true;
  7284. this.dirty = this.lazy; // for lazy watchers
  7285. this.deps = [];
  7286. this.newDeps = [];
  7287. this.depIds = new _Set();
  7288. this.newDepIds = new _Set();
  7289. this.expression = true
  7290. ? expOrFn.toString()
  7291. : undefined;
  7292. // parse expression for getter
  7293. if (typeof expOrFn === 'function') {
  7294. this.getter = expOrFn;
  7295. } else {
  7296. this.getter = parsePath(expOrFn);
  7297. if (!this.getter) {
  7298. this.getter = noop;
  7299. true && warn(
  7300. "Failed watching path: \"" + expOrFn + "\" " +
  7301. 'Watcher only accepts simple dot-delimited paths. ' +
  7302. 'For full control, use a function instead.',
  7303. vm
  7304. );
  7305. }
  7306. }
  7307. this.value = this.lazy
  7308. ? undefined
  7309. : this.get();
  7310. };
  7311. /**
  7312. * Evaluate the getter, and re-collect dependencies.
  7313. */
  7314. Watcher.prototype.get = function get () {
  7315. pushTarget(this);
  7316. var value;
  7317. var vm = this.vm;
  7318. try {
  7319. value = this.getter.call(vm, vm);
  7320. } catch (e) {
  7321. if (this.user) {
  7322. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  7323. } else {
  7324. throw e
  7325. }
  7326. } finally {
  7327. // "touch" every property so they are all tracked as
  7328. // dependencies for deep watching
  7329. if (this.deep) {
  7330. traverse(value);
  7331. }
  7332. popTarget();
  7333. this.cleanupDeps();
  7334. }
  7335. return value
  7336. };
  7337. /**
  7338. * Add a dependency to this directive.
  7339. */
  7340. Watcher.prototype.addDep = function addDep (dep) {
  7341. var id = dep.id;
  7342. if (!this.newDepIds.has(id)) {
  7343. this.newDepIds.add(id);
  7344. this.newDeps.push(dep);
  7345. if (!this.depIds.has(id)) {
  7346. dep.addSub(this);
  7347. }
  7348. }
  7349. };
  7350. /**
  7351. * Clean up for dependency collection.
  7352. */
  7353. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  7354. var i = this.deps.length;
  7355. while (i--) {
  7356. var dep = this.deps[i];
  7357. if (!this.newDepIds.has(dep.id)) {
  7358. dep.removeSub(this);
  7359. }
  7360. }
  7361. var tmp = this.depIds;
  7362. this.depIds = this.newDepIds;
  7363. this.newDepIds = tmp;
  7364. this.newDepIds.clear();
  7365. tmp = this.deps;
  7366. this.deps = this.newDeps;
  7367. this.newDeps = tmp;
  7368. this.newDeps.length = 0;
  7369. };
  7370. /**
  7371. * Subscriber interface.
  7372. * Will be called when a dependency changes.
  7373. */
  7374. Watcher.prototype.update = function update () {
  7375. /* istanbul ignore else */
  7376. if (this.lazy) {
  7377. this.dirty = true;
  7378. } else if (this.sync) {
  7379. this.run();
  7380. } else {
  7381. queueWatcher(this);
  7382. }
  7383. };
  7384. /**
  7385. * Scheduler job interface.
  7386. * Will be called by the scheduler.
  7387. */
  7388. Watcher.prototype.run = function run () {
  7389. if (this.active) {
  7390. var value = this.get();
  7391. if (
  7392. value !== this.value ||
  7393. // Deep watchers and watchers on Object/Arrays should fire even
  7394. // when the value is the same, because the value may
  7395. // have mutated.
  7396. isObject(value) ||
  7397. this.deep
  7398. ) {
  7399. // set new value
  7400. var oldValue = this.value;
  7401. this.value = value;
  7402. if (this.user) {
  7403. try {
  7404. this.cb.call(this.vm, value, oldValue);
  7405. } catch (e) {
  7406. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  7407. }
  7408. } else {
  7409. this.cb.call(this.vm, value, oldValue);
  7410. }
  7411. }
  7412. }
  7413. };
  7414. /**
  7415. * Evaluate the value of the watcher.
  7416. * This only gets called for lazy watchers.
  7417. */
  7418. Watcher.prototype.evaluate = function evaluate () {
  7419. this.value = this.get();
  7420. this.dirty = false;
  7421. };
  7422. /**
  7423. * Depend on all deps collected by this watcher.
  7424. */
  7425. Watcher.prototype.depend = function depend () {
  7426. var i = this.deps.length;
  7427. while (i--) {
  7428. this.deps[i].depend();
  7429. }
  7430. };
  7431. /**
  7432. * Remove self from all dependencies' subscriber list.
  7433. */
  7434. Watcher.prototype.teardown = function teardown () {
  7435. if (this.active) {
  7436. // remove self from vm's watcher list
  7437. // this is a somewhat expensive operation so we skip it
  7438. // if the vm is being destroyed.
  7439. if (!this.vm._isBeingDestroyed) {
  7440. remove(this.vm._watchers, this);
  7441. }
  7442. var i = this.deps.length;
  7443. while (i--) {
  7444. this.deps[i].removeSub(this);
  7445. }
  7446. this.active = false;
  7447. }
  7448. };
  7449. /* */
  7450. var sharedPropertyDefinition = {
  7451. enumerable: true,
  7452. configurable: true,
  7453. get: noop,
  7454. set: noop
  7455. };
  7456. function proxy (target, sourceKey, key) {
  7457. sharedPropertyDefinition.get = function proxyGetter () {
  7458. return this[sourceKey][key]
  7459. };
  7460. sharedPropertyDefinition.set = function proxySetter (val) {
  7461. this[sourceKey][key] = val;
  7462. };
  7463. Object.defineProperty(target, key, sharedPropertyDefinition);
  7464. }
  7465. function initState (vm) {
  7466. vm._watchers = [];
  7467. var opts = vm.$options;
  7468. if (opts.props) { initProps(vm, opts.props); }
  7469. if (opts.methods) { initMethods(vm, opts.methods); }
  7470. if (opts.data) {
  7471. initData(vm);
  7472. } else {
  7473. observe(vm._data = {}, true /* asRootData */);
  7474. }
  7475. if (opts.computed) { initComputed(vm, opts.computed); }
  7476. if (opts.watch && opts.watch !== nativeWatch) {
  7477. initWatch(vm, opts.watch);
  7478. }
  7479. }
  7480. function initProps (vm, propsOptions) {
  7481. var propsData = vm.$options.propsData || {};
  7482. var props = vm._props = {};
  7483. // cache prop keys so that future props updates can iterate using Array
  7484. // instead of dynamic object key enumeration.
  7485. var keys = vm.$options._propKeys = [];
  7486. var isRoot = !vm.$parent;
  7487. // root instance props should be converted
  7488. if (!isRoot) {
  7489. toggleObserving(false);
  7490. }
  7491. var loop = function ( key ) {
  7492. keys.push(key);
  7493. var value = validateProp(key, propsOptions, propsData, vm);
  7494. /* istanbul ignore else */
  7495. if (true) {
  7496. var hyphenatedKey = hyphenate(key);
  7497. if (isReservedAttribute(hyphenatedKey) ||
  7498. config.isReservedAttr(hyphenatedKey)) {
  7499. warn(
  7500. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  7501. vm
  7502. );
  7503. }
  7504. defineReactive$$1(props, key, value, function () {
  7505. if (!isRoot && !isUpdatingChildComponent) {
  7506. {
  7507. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  7508. return
  7509. }
  7510. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  7511. if(
  7512. key === 'value' &&
  7513. Array.isArray(vm.$options.behaviors) &&
  7514. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  7515. ){
  7516. return
  7517. }
  7518. if(vm._getFormData){
  7519. return
  7520. }
  7521. var $parent = vm.$parent;
  7522. while($parent){
  7523. if($parent.__next_tick_pending){
  7524. return
  7525. }
  7526. $parent = $parent.$parent;
  7527. }
  7528. }
  7529. warn(
  7530. "Avoid mutating a prop directly since the value will be " +
  7531. "overwritten whenever the parent component re-renders. " +
  7532. "Instead, use a data or computed property based on the prop's " +
  7533. "value. Prop being mutated: \"" + key + "\"",
  7534. vm
  7535. );
  7536. }
  7537. });
  7538. } else {}
  7539. // static props are already proxied on the component's prototype
  7540. // during Vue.extend(). We only need to proxy props defined at
  7541. // instantiation here.
  7542. if (!(key in vm)) {
  7543. proxy(vm, "_props", key);
  7544. }
  7545. };
  7546. for (var key in propsOptions) loop( key );
  7547. toggleObserving(true);
  7548. }
  7549. function initData (vm) {
  7550. var data = vm.$options.data;
  7551. data = vm._data = typeof data === 'function'
  7552. ? getData(data, vm)
  7553. : data || {};
  7554. if (!isPlainObject(data)) {
  7555. data = {};
  7556. true && warn(
  7557. 'data functions should return an object:\n' +
  7558. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  7559. vm
  7560. );
  7561. }
  7562. // proxy data on instance
  7563. var keys = Object.keys(data);
  7564. var props = vm.$options.props;
  7565. var methods = vm.$options.methods;
  7566. var i = keys.length;
  7567. while (i--) {
  7568. var key = keys[i];
  7569. if (true) {
  7570. if (methods && hasOwn(methods, key)) {
  7571. warn(
  7572. ("Method \"" + key + "\" has already been defined as a data property."),
  7573. vm
  7574. );
  7575. }
  7576. }
  7577. if (props && hasOwn(props, key)) {
  7578. true && warn(
  7579. "The data property \"" + key + "\" is already declared as a prop. " +
  7580. "Use prop default value instead.",
  7581. vm
  7582. );
  7583. } else if (!isReserved(key)) {
  7584. proxy(vm, "_data", key);
  7585. }
  7586. }
  7587. // observe data
  7588. observe(data, true /* asRootData */);
  7589. }
  7590. function getData (data, vm) {
  7591. // #7573 disable dep collection when invoking data getters
  7592. pushTarget();
  7593. try {
  7594. return data.call(vm, vm)
  7595. } catch (e) {
  7596. handleError(e, vm, "data()");
  7597. return {}
  7598. } finally {
  7599. popTarget();
  7600. }
  7601. }
  7602. var computedWatcherOptions = { lazy: true };
  7603. function initComputed (vm, computed) {
  7604. // $flow-disable-line
  7605. var watchers = vm._computedWatchers = Object.create(null);
  7606. // computed properties are just getters during SSR
  7607. var isSSR = isServerRendering();
  7608. for (var key in computed) {
  7609. var userDef = computed[key];
  7610. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  7611. if ( true && getter == null) {
  7612. warn(
  7613. ("Getter is missing for computed property \"" + key + "\"."),
  7614. vm
  7615. );
  7616. }
  7617. if (!isSSR) {
  7618. // create internal watcher for the computed property.
  7619. watchers[key] = new Watcher(
  7620. vm,
  7621. getter || noop,
  7622. noop,
  7623. computedWatcherOptions
  7624. );
  7625. }
  7626. // component-defined computed properties are already defined on the
  7627. // component prototype. We only need to define computed properties defined
  7628. // at instantiation here.
  7629. if (!(key in vm)) {
  7630. defineComputed(vm, key, userDef);
  7631. } else if (true) {
  7632. if (key in vm.$data) {
  7633. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  7634. } else if (vm.$options.props && key in vm.$options.props) {
  7635. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  7636. }
  7637. }
  7638. }
  7639. }
  7640. function defineComputed (
  7641. target,
  7642. key,
  7643. userDef
  7644. ) {
  7645. var shouldCache = !isServerRendering();
  7646. if (typeof userDef === 'function') {
  7647. sharedPropertyDefinition.get = shouldCache
  7648. ? createComputedGetter(key)
  7649. : createGetterInvoker(userDef);
  7650. sharedPropertyDefinition.set = noop;
  7651. } else {
  7652. sharedPropertyDefinition.get = userDef.get
  7653. ? shouldCache && userDef.cache !== false
  7654. ? createComputedGetter(key)
  7655. : createGetterInvoker(userDef.get)
  7656. : noop;
  7657. sharedPropertyDefinition.set = userDef.set || noop;
  7658. }
  7659. if ( true &&
  7660. sharedPropertyDefinition.set === noop) {
  7661. sharedPropertyDefinition.set = function () {
  7662. warn(
  7663. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  7664. this
  7665. );
  7666. };
  7667. }
  7668. Object.defineProperty(target, key, sharedPropertyDefinition);
  7669. }
  7670. function createComputedGetter (key) {
  7671. return function computedGetter () {
  7672. var watcher = this._computedWatchers && this._computedWatchers[key];
  7673. if (watcher) {
  7674. if (watcher.dirty) {
  7675. watcher.evaluate();
  7676. }
  7677. if (Dep.SharedObject.target) {// fixed by xxxxxx
  7678. watcher.depend();
  7679. }
  7680. return watcher.value
  7681. }
  7682. }
  7683. }
  7684. function createGetterInvoker(fn) {
  7685. return function computedGetter () {
  7686. return fn.call(this, this)
  7687. }
  7688. }
  7689. function initMethods (vm, methods) {
  7690. var props = vm.$options.props;
  7691. for (var key in methods) {
  7692. if (true) {
  7693. if (typeof methods[key] !== 'function') {
  7694. warn(
  7695. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  7696. "Did you reference the function correctly?",
  7697. vm
  7698. );
  7699. }
  7700. if (props && hasOwn(props, key)) {
  7701. warn(
  7702. ("Method \"" + key + "\" has already been defined as a prop."),
  7703. vm
  7704. );
  7705. }
  7706. if ((key in vm) && isReserved(key)) {
  7707. warn(
  7708. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  7709. "Avoid defining component methods that start with _ or $."
  7710. );
  7711. }
  7712. }
  7713. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  7714. }
  7715. }
  7716. function initWatch (vm, watch) {
  7717. for (var key in watch) {
  7718. var handler = watch[key];
  7719. if (Array.isArray(handler)) {
  7720. for (var i = 0; i < handler.length; i++) {
  7721. createWatcher(vm, key, handler[i]);
  7722. }
  7723. } else {
  7724. createWatcher(vm, key, handler);
  7725. }
  7726. }
  7727. }
  7728. function createWatcher (
  7729. vm,
  7730. expOrFn,
  7731. handler,
  7732. options
  7733. ) {
  7734. if (isPlainObject(handler)) {
  7735. options = handler;
  7736. handler = handler.handler;
  7737. }
  7738. if (typeof handler === 'string') {
  7739. handler = vm[handler];
  7740. }
  7741. return vm.$watch(expOrFn, handler, options)
  7742. }
  7743. function stateMixin (Vue) {
  7744. // flow somehow has problems with directly declared definition object
  7745. // when using Object.defineProperty, so we have to procedurally build up
  7746. // the object here.
  7747. var dataDef = {};
  7748. dataDef.get = function () { return this._data };
  7749. var propsDef = {};
  7750. propsDef.get = function () { return this._props };
  7751. if (true) {
  7752. dataDef.set = function () {
  7753. warn(
  7754. 'Avoid replacing instance root $data. ' +
  7755. 'Use nested data properties instead.',
  7756. this
  7757. );
  7758. };
  7759. propsDef.set = function () {
  7760. warn("$props is readonly.", this);
  7761. };
  7762. }
  7763. Object.defineProperty(Vue.prototype, '$data', dataDef);
  7764. Object.defineProperty(Vue.prototype, '$props', propsDef);
  7765. Vue.prototype.$set = set;
  7766. Vue.prototype.$delete = del;
  7767. Vue.prototype.$watch = function (
  7768. expOrFn,
  7769. cb,
  7770. options
  7771. ) {
  7772. var vm = this;
  7773. if (isPlainObject(cb)) {
  7774. return createWatcher(vm, expOrFn, cb, options)
  7775. }
  7776. options = options || {};
  7777. options.user = true;
  7778. var watcher = new Watcher(vm, expOrFn, cb, options);
  7779. if (options.immediate) {
  7780. try {
  7781. cb.call(vm, watcher.value);
  7782. } catch (error) {
  7783. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  7784. }
  7785. }
  7786. return function unwatchFn () {
  7787. watcher.teardown();
  7788. }
  7789. };
  7790. }
  7791. /* */
  7792. var uid$3 = 0;
  7793. function initMixin (Vue) {
  7794. Vue.prototype._init = function (options) {
  7795. var vm = this;
  7796. // a uid
  7797. vm._uid = uid$3++;
  7798. var startTag, endTag;
  7799. /* istanbul ignore if */
  7800. if ( true && config.performance && mark) {
  7801. startTag = "vue-perf-start:" + (vm._uid);
  7802. endTag = "vue-perf-end:" + (vm._uid);
  7803. mark(startTag);
  7804. }
  7805. // a flag to avoid this being observed
  7806. vm._isVue = true;
  7807. // merge options
  7808. if (options && options._isComponent) {
  7809. // optimize internal component instantiation
  7810. // since dynamic options merging is pretty slow, and none of the
  7811. // internal component options needs special treatment.
  7812. initInternalComponent(vm, options);
  7813. } else {
  7814. vm.$options = mergeOptions(
  7815. resolveConstructorOptions(vm.constructor),
  7816. options || {},
  7817. vm
  7818. );
  7819. }
  7820. /* istanbul ignore else */
  7821. if (true) {
  7822. initProxy(vm);
  7823. } else {}
  7824. // expose real self
  7825. vm._self = vm;
  7826. initLifecycle(vm);
  7827. initEvents(vm);
  7828. initRender(vm);
  7829. callHook(vm, 'beforeCreate');
  7830. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  7831. initState(vm);
  7832. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  7833. !vm._$fallback && callHook(vm, 'created');
  7834. /* istanbul ignore if */
  7835. if ( true && config.performance && mark) {
  7836. vm._name = formatComponentName(vm, false);
  7837. mark(endTag);
  7838. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  7839. }
  7840. if (vm.$options.el) {
  7841. vm.$mount(vm.$options.el);
  7842. }
  7843. };
  7844. }
  7845. function initInternalComponent (vm, options) {
  7846. var opts = vm.$options = Object.create(vm.constructor.options);
  7847. // doing this because it's faster than dynamic enumeration.
  7848. var parentVnode = options._parentVnode;
  7849. opts.parent = options.parent;
  7850. opts._parentVnode = parentVnode;
  7851. var vnodeComponentOptions = parentVnode.componentOptions;
  7852. opts.propsData = vnodeComponentOptions.propsData;
  7853. opts._parentListeners = vnodeComponentOptions.listeners;
  7854. opts._renderChildren = vnodeComponentOptions.children;
  7855. opts._componentTag = vnodeComponentOptions.tag;
  7856. if (options.render) {
  7857. opts.render = options.render;
  7858. opts.staticRenderFns = options.staticRenderFns;
  7859. }
  7860. }
  7861. function resolveConstructorOptions (Ctor) {
  7862. var options = Ctor.options;
  7863. if (Ctor.super) {
  7864. var superOptions = resolveConstructorOptions(Ctor.super);
  7865. var cachedSuperOptions = Ctor.superOptions;
  7866. if (superOptions !== cachedSuperOptions) {
  7867. // super option changed,
  7868. // need to resolve new options.
  7869. Ctor.superOptions = superOptions;
  7870. // check if there are any late-modified/attached options (#4976)
  7871. var modifiedOptions = resolveModifiedOptions(Ctor);
  7872. // update base extend options
  7873. if (modifiedOptions) {
  7874. extend(Ctor.extendOptions, modifiedOptions);
  7875. }
  7876. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  7877. if (options.name) {
  7878. options.components[options.name] = Ctor;
  7879. }
  7880. }
  7881. }
  7882. return options
  7883. }
  7884. function resolveModifiedOptions (Ctor) {
  7885. var modified;
  7886. var latest = Ctor.options;
  7887. var sealed = Ctor.sealedOptions;
  7888. for (var key in latest) {
  7889. if (latest[key] !== sealed[key]) {
  7890. if (!modified) { modified = {}; }
  7891. modified[key] = latest[key];
  7892. }
  7893. }
  7894. return modified
  7895. }
  7896. function Vue (options) {
  7897. if ( true &&
  7898. !(this instanceof Vue)
  7899. ) {
  7900. warn('Vue is a constructor and should be called with the `new` keyword');
  7901. }
  7902. this._init(options);
  7903. }
  7904. initMixin(Vue);
  7905. stateMixin(Vue);
  7906. eventsMixin(Vue);
  7907. lifecycleMixin(Vue);
  7908. renderMixin(Vue);
  7909. /* */
  7910. function initUse (Vue) {
  7911. Vue.use = function (plugin) {
  7912. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  7913. if (installedPlugins.indexOf(plugin) > -1) {
  7914. return this
  7915. }
  7916. // additional parameters
  7917. var args = toArray(arguments, 1);
  7918. args.unshift(this);
  7919. if (typeof plugin.install === 'function') {
  7920. plugin.install.apply(plugin, args);
  7921. } else if (typeof plugin === 'function') {
  7922. plugin.apply(null, args);
  7923. }
  7924. installedPlugins.push(plugin);
  7925. return this
  7926. };
  7927. }
  7928. /* */
  7929. function initMixin$1 (Vue) {
  7930. Vue.mixin = function (mixin) {
  7931. this.options = mergeOptions(this.options, mixin);
  7932. return this
  7933. };
  7934. }
  7935. /* */
  7936. function initExtend (Vue) {
  7937. /**
  7938. * Each instance constructor, including Vue, has a unique
  7939. * cid. This enables us to create wrapped "child
  7940. * constructors" for prototypal inheritance and cache them.
  7941. */
  7942. Vue.cid = 0;
  7943. var cid = 1;
  7944. /**
  7945. * Class inheritance
  7946. */
  7947. Vue.extend = function (extendOptions) {
  7948. extendOptions = extendOptions || {};
  7949. var Super = this;
  7950. var SuperId = Super.cid;
  7951. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  7952. if (cachedCtors[SuperId]) {
  7953. return cachedCtors[SuperId]
  7954. }
  7955. var name = extendOptions.name || Super.options.name;
  7956. if ( true && name) {
  7957. validateComponentName(name);
  7958. }
  7959. var Sub = function VueComponent (options) {
  7960. this._init(options);
  7961. };
  7962. Sub.prototype = Object.create(Super.prototype);
  7963. Sub.prototype.constructor = Sub;
  7964. Sub.cid = cid++;
  7965. Sub.options = mergeOptions(
  7966. Super.options,
  7967. extendOptions
  7968. );
  7969. Sub['super'] = Super;
  7970. // For props and computed properties, we define the proxy getters on
  7971. // the Vue instances at extension time, on the extended prototype. This
  7972. // avoids Object.defineProperty calls for each instance created.
  7973. if (Sub.options.props) {
  7974. initProps$1(Sub);
  7975. }
  7976. if (Sub.options.computed) {
  7977. initComputed$1(Sub);
  7978. }
  7979. // allow further extension/mixin/plugin usage
  7980. Sub.extend = Super.extend;
  7981. Sub.mixin = Super.mixin;
  7982. Sub.use = Super.use;
  7983. // create asset registers, so extended classes
  7984. // can have their private assets too.
  7985. ASSET_TYPES.forEach(function (type) {
  7986. Sub[type] = Super[type];
  7987. });
  7988. // enable recursive self-lookup
  7989. if (name) {
  7990. Sub.options.components[name] = Sub;
  7991. }
  7992. // keep a reference to the super options at extension time.
  7993. // later at instantiation we can check if Super's options have
  7994. // been updated.
  7995. Sub.superOptions = Super.options;
  7996. Sub.extendOptions = extendOptions;
  7997. Sub.sealedOptions = extend({}, Sub.options);
  7998. // cache constructor
  7999. cachedCtors[SuperId] = Sub;
  8000. return Sub
  8001. };
  8002. }
  8003. function initProps$1 (Comp) {
  8004. var props = Comp.options.props;
  8005. for (var key in props) {
  8006. proxy(Comp.prototype, "_props", key);
  8007. }
  8008. }
  8009. function initComputed$1 (Comp) {
  8010. var computed = Comp.options.computed;
  8011. for (var key in computed) {
  8012. defineComputed(Comp.prototype, key, computed[key]);
  8013. }
  8014. }
  8015. /* */
  8016. function initAssetRegisters (Vue) {
  8017. /**
  8018. * Create asset registration methods.
  8019. */
  8020. ASSET_TYPES.forEach(function (type) {
  8021. Vue[type] = function (
  8022. id,
  8023. definition
  8024. ) {
  8025. if (!definition) {
  8026. return this.options[type + 's'][id]
  8027. } else {
  8028. /* istanbul ignore if */
  8029. if ( true && type === 'component') {
  8030. validateComponentName(id);
  8031. }
  8032. if (type === 'component' && isPlainObject(definition)) {
  8033. definition.name = definition.name || id;
  8034. definition = this.options._base.extend(definition);
  8035. }
  8036. if (type === 'directive' && typeof definition === 'function') {
  8037. definition = { bind: definition, update: definition };
  8038. }
  8039. this.options[type + 's'][id] = definition;
  8040. return definition
  8041. }
  8042. };
  8043. });
  8044. }
  8045. /* */
  8046. function getComponentName (opts) {
  8047. return opts && (opts.Ctor.options.name || opts.tag)
  8048. }
  8049. function matches (pattern, name) {
  8050. if (Array.isArray(pattern)) {
  8051. return pattern.indexOf(name) > -1
  8052. } else if (typeof pattern === 'string') {
  8053. return pattern.split(',').indexOf(name) > -1
  8054. } else if (isRegExp(pattern)) {
  8055. return pattern.test(name)
  8056. }
  8057. /* istanbul ignore next */
  8058. return false
  8059. }
  8060. function pruneCache (keepAliveInstance, filter) {
  8061. var cache = keepAliveInstance.cache;
  8062. var keys = keepAliveInstance.keys;
  8063. var _vnode = keepAliveInstance._vnode;
  8064. for (var key in cache) {
  8065. var cachedNode = cache[key];
  8066. if (cachedNode) {
  8067. var name = getComponentName(cachedNode.componentOptions);
  8068. if (name && !filter(name)) {
  8069. pruneCacheEntry(cache, key, keys, _vnode);
  8070. }
  8071. }
  8072. }
  8073. }
  8074. function pruneCacheEntry (
  8075. cache,
  8076. key,
  8077. keys,
  8078. current
  8079. ) {
  8080. var cached$$1 = cache[key];
  8081. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  8082. cached$$1.componentInstance.$destroy();
  8083. }
  8084. cache[key] = null;
  8085. remove(keys, key);
  8086. }
  8087. var patternTypes = [String, RegExp, Array];
  8088. var KeepAlive = {
  8089. name: 'keep-alive',
  8090. abstract: true,
  8091. props: {
  8092. include: patternTypes,
  8093. exclude: patternTypes,
  8094. max: [String, Number]
  8095. },
  8096. created: function created () {
  8097. this.cache = Object.create(null);
  8098. this.keys = [];
  8099. },
  8100. destroyed: function destroyed () {
  8101. for (var key in this.cache) {
  8102. pruneCacheEntry(this.cache, key, this.keys);
  8103. }
  8104. },
  8105. mounted: function mounted () {
  8106. var this$1 = this;
  8107. this.$watch('include', function (val) {
  8108. pruneCache(this$1, function (name) { return matches(val, name); });
  8109. });
  8110. this.$watch('exclude', function (val) {
  8111. pruneCache(this$1, function (name) { return !matches(val, name); });
  8112. });
  8113. },
  8114. render: function render () {
  8115. var slot = this.$slots.default;
  8116. var vnode = getFirstComponentChild(slot);
  8117. var componentOptions = vnode && vnode.componentOptions;
  8118. if (componentOptions) {
  8119. // check pattern
  8120. var name = getComponentName(componentOptions);
  8121. var ref = this;
  8122. var include = ref.include;
  8123. var exclude = ref.exclude;
  8124. if (
  8125. // not included
  8126. (include && (!name || !matches(include, name))) ||
  8127. // excluded
  8128. (exclude && name && matches(exclude, name))
  8129. ) {
  8130. return vnode
  8131. }
  8132. var ref$1 = this;
  8133. var cache = ref$1.cache;
  8134. var keys = ref$1.keys;
  8135. var key = vnode.key == null
  8136. // same constructor may get registered as different local components
  8137. // so cid alone is not enough (#3269)
  8138. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  8139. : vnode.key;
  8140. if (cache[key]) {
  8141. vnode.componentInstance = cache[key].componentInstance;
  8142. // make current key freshest
  8143. remove(keys, key);
  8144. keys.push(key);
  8145. } else {
  8146. cache[key] = vnode;
  8147. keys.push(key);
  8148. // prune oldest entry
  8149. if (this.max && keys.length > parseInt(this.max)) {
  8150. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  8151. }
  8152. }
  8153. vnode.data.keepAlive = true;
  8154. }
  8155. return vnode || (slot && slot[0])
  8156. }
  8157. };
  8158. var builtInComponents = {
  8159. KeepAlive: KeepAlive
  8160. };
  8161. /* */
  8162. function initGlobalAPI (Vue) {
  8163. // config
  8164. var configDef = {};
  8165. configDef.get = function () { return config; };
  8166. if (true) {
  8167. configDef.set = function () {
  8168. warn(
  8169. 'Do not replace the Vue.config object, set individual fields instead.'
  8170. );
  8171. };
  8172. }
  8173. Object.defineProperty(Vue, 'config', configDef);
  8174. // exposed util methods.
  8175. // NOTE: these are not considered part of the public API - avoid relying on
  8176. // them unless you are aware of the risk.
  8177. Vue.util = {
  8178. warn: warn,
  8179. extend: extend,
  8180. mergeOptions: mergeOptions,
  8181. defineReactive: defineReactive$$1
  8182. };
  8183. Vue.set = set;
  8184. Vue.delete = del;
  8185. Vue.nextTick = nextTick;
  8186. // 2.6 explicit observable API
  8187. Vue.observable = function (obj) {
  8188. observe(obj);
  8189. return obj
  8190. };
  8191. Vue.options = Object.create(null);
  8192. ASSET_TYPES.forEach(function (type) {
  8193. Vue.options[type + 's'] = Object.create(null);
  8194. });
  8195. // this is used to identify the "base" constructor to extend all plain-object
  8196. // components with in Weex's multi-instance scenarios.
  8197. Vue.options._base = Vue;
  8198. extend(Vue.options.components, builtInComponents);
  8199. initUse(Vue);
  8200. initMixin$1(Vue);
  8201. initExtend(Vue);
  8202. initAssetRegisters(Vue);
  8203. }
  8204. initGlobalAPI(Vue);
  8205. Object.defineProperty(Vue.prototype, '$isServer', {
  8206. get: isServerRendering
  8207. });
  8208. Object.defineProperty(Vue.prototype, '$ssrContext', {
  8209. get: function get () {
  8210. /* istanbul ignore next */
  8211. return this.$vnode && this.$vnode.ssrContext
  8212. }
  8213. });
  8214. // expose FunctionalRenderContext for ssr runtime helper installation
  8215. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  8216. value: FunctionalRenderContext
  8217. });
  8218. Vue.version = '2.6.11';
  8219. /**
  8220. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  8221. */
  8222. var ARRAYTYPE = '[object Array]';
  8223. var OBJECTTYPE = '[object Object]';
  8224. var NULLTYPE = '[object Null]';
  8225. var UNDEFINEDTYPE = '[object Undefined]';
  8226. // const FUNCTIONTYPE = '[object Function]'
  8227. function diff(current, pre) {
  8228. var result = {};
  8229. syncKeys(current, pre);
  8230. _diff(current, pre, '', result);
  8231. return result
  8232. }
  8233. function syncKeys(current, pre) {
  8234. if (current === pre) { return }
  8235. var rootCurrentType = type(current);
  8236. var rootPreType = type(pre);
  8237. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  8238. if(Object.keys(current).length >= Object.keys(pre).length){
  8239. for (var key in pre) {
  8240. var currentValue = current[key];
  8241. if (currentValue === undefined) {
  8242. current[key] = null;
  8243. } else {
  8244. syncKeys(currentValue, pre[key]);
  8245. }
  8246. }
  8247. }
  8248. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  8249. if (current.length >= pre.length) {
  8250. pre.forEach(function (item, index) {
  8251. syncKeys(current[index], item);
  8252. });
  8253. }
  8254. }
  8255. }
  8256. function nullOrUndefined(currentType, preType) {
  8257. if(
  8258. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  8259. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  8260. ) {
  8261. return false
  8262. }
  8263. return true
  8264. }
  8265. function _diff(current, pre, path, result) {
  8266. if (current === pre) { return }
  8267. var rootCurrentType = type(current);
  8268. var rootPreType = type(pre);
  8269. if (rootCurrentType == OBJECTTYPE) {
  8270. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  8271. setResult(result, path, current);
  8272. } else {
  8273. var loop = function ( key ) {
  8274. var currentValue = current[key];
  8275. var preValue = pre[key];
  8276. var currentType = type(currentValue);
  8277. var preType = type(preValue);
  8278. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  8279. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  8280. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8281. }
  8282. } else if (currentType == ARRAYTYPE) {
  8283. if (preType != ARRAYTYPE) {
  8284. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8285. } else {
  8286. if (currentValue.length < preValue.length) {
  8287. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8288. } else {
  8289. currentValue.forEach(function (item, index) {
  8290. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  8291. });
  8292. }
  8293. }
  8294. } else if (currentType == OBJECTTYPE) {
  8295. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  8296. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8297. } else {
  8298. for (var subKey in currentValue) {
  8299. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  8300. }
  8301. }
  8302. }
  8303. };
  8304. for (var key in current) loop( key );
  8305. }
  8306. } else if (rootCurrentType == ARRAYTYPE) {
  8307. if (rootPreType != ARRAYTYPE) {
  8308. setResult(result, path, current);
  8309. } else {
  8310. if (current.length < pre.length) {
  8311. setResult(result, path, current);
  8312. } else {
  8313. current.forEach(function (item, index) {
  8314. _diff(item, pre[index], path + '[' + index + ']', result);
  8315. });
  8316. }
  8317. }
  8318. } else {
  8319. setResult(result, path, current);
  8320. }
  8321. }
  8322. function setResult(result, k, v) {
  8323. // if (type(v) != FUNCTIONTYPE) {
  8324. result[k] = v;
  8325. // }
  8326. }
  8327. function type(obj) {
  8328. return Object.prototype.toString.call(obj)
  8329. }
  8330. /* */
  8331. function flushCallbacks$1(vm) {
  8332. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  8333. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"hotelHomestay","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8334. var mpInstance = vm.$scope;
  8335. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8336. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  8337. }
  8338. var copies = vm.__next_tick_callbacks.slice(0);
  8339. vm.__next_tick_callbacks.length = 0;
  8340. for (var i = 0; i < copies.length; i++) {
  8341. copies[i]();
  8342. }
  8343. }
  8344. }
  8345. function hasRenderWatcher(vm) {
  8346. return queue.find(function (watcher) { return vm._watcher === watcher; })
  8347. }
  8348. function nextTick$1(vm, cb) {
  8349. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  8350. //2.nextTick 之前存在 render watcher
  8351. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  8352. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"hotelHomestay","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8353. var mpInstance = vm.$scope;
  8354. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8355. ']:nextVueTick');
  8356. }
  8357. return nextTick(cb, vm)
  8358. }else{
  8359. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"hotelHomestay","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8360. var mpInstance$1 = vm.$scope;
  8361. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  8362. ']:nextMPTick');
  8363. }
  8364. }
  8365. var _resolve;
  8366. if (!vm.__next_tick_callbacks) {
  8367. vm.__next_tick_callbacks = [];
  8368. }
  8369. vm.__next_tick_callbacks.push(function () {
  8370. if (cb) {
  8371. try {
  8372. cb.call(vm);
  8373. } catch (e) {
  8374. handleError(e, vm, 'nextTick');
  8375. }
  8376. } else if (_resolve) {
  8377. _resolve(vm);
  8378. }
  8379. });
  8380. // $flow-disable-line
  8381. if (!cb && typeof Promise !== 'undefined') {
  8382. return new Promise(function (resolve) {
  8383. _resolve = resolve;
  8384. })
  8385. }
  8386. }
  8387. /* */
  8388. function clearInstance(key, value) {
  8389. // 简易去除 Vue 和小程序组件实例
  8390. if (value) {
  8391. if (value._isVue || value.__v_isMPComponent) {
  8392. return {}
  8393. }
  8394. }
  8395. return value
  8396. }
  8397. function cloneWithData(vm) {
  8398. // 确保当前 vm 所有数据被同步
  8399. var ret = Object.create(null);
  8400. var dataKeys = [].concat(
  8401. Object.keys(vm._data || {}),
  8402. Object.keys(vm._computedWatchers || {}));
  8403. dataKeys.reduce(function(ret, key) {
  8404. ret[key] = vm[key];
  8405. return ret
  8406. }, ret);
  8407. // vue-composition-api
  8408. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  8409. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  8410. if (rawBindings) {
  8411. Object.keys(rawBindings).forEach(function (key) {
  8412. ret[key] = vm[key];
  8413. });
  8414. }
  8415. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  8416. Object.assign(ret, vm.$mp.data || {});
  8417. if (
  8418. Array.isArray(vm.$options.behaviors) &&
  8419. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  8420. ) { //form-field
  8421. ret['name'] = vm.name;
  8422. ret['value'] = vm.value;
  8423. }
  8424. return JSON.parse(JSON.stringify(ret, clearInstance))
  8425. }
  8426. var patch = function(oldVnode, vnode) {
  8427. var this$1 = this;
  8428. if (vnode === null) { //destroy
  8429. return
  8430. }
  8431. if (this.mpType === 'page' || this.mpType === 'component') {
  8432. var mpInstance = this.$scope;
  8433. var data = Object.create(null);
  8434. try {
  8435. data = cloneWithData(this);
  8436. } catch (err) {
  8437. console.error(err);
  8438. }
  8439. data.__webviewId__ = mpInstance.data.__webviewId__;
  8440. var mpData = Object.create(null);
  8441. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  8442. mpData[key] = mpInstance.data[key];
  8443. });
  8444. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  8445. if (Object.keys(diffData).length) {
  8446. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"hotelHomestay","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8447. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  8448. ']差量更新',
  8449. JSON.stringify(diffData));
  8450. }
  8451. this.__next_tick_pending = true;
  8452. mpInstance.setData(diffData, function () {
  8453. this$1.__next_tick_pending = false;
  8454. flushCallbacks$1(this$1);
  8455. });
  8456. } else {
  8457. flushCallbacks$1(this);
  8458. }
  8459. }
  8460. };
  8461. /* */
  8462. function createEmptyRender() {
  8463. }
  8464. function mountComponent$1(
  8465. vm,
  8466. el,
  8467. hydrating
  8468. ) {
  8469. if (!vm.mpType) {//main.js 中的 new Vue
  8470. return vm
  8471. }
  8472. if (vm.mpType === 'app') {
  8473. vm.$options.render = createEmptyRender;
  8474. }
  8475. if (!vm.$options.render) {
  8476. vm.$options.render = createEmptyRender;
  8477. if (true) {
  8478. /* istanbul ignore if */
  8479. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  8480. vm.$options.el || el) {
  8481. warn(
  8482. 'You are using the runtime-only build of Vue where the template ' +
  8483. 'compiler is not available. Either pre-compile the templates into ' +
  8484. 'render functions, or use the compiler-included build.',
  8485. vm
  8486. );
  8487. } else {
  8488. warn(
  8489. 'Failed to mount component: template or render function not defined.',
  8490. vm
  8491. );
  8492. }
  8493. }
  8494. }
  8495. !vm._$fallback && callHook(vm, 'beforeMount');
  8496. var updateComponent = function () {
  8497. vm._update(vm._render(), hydrating);
  8498. };
  8499. // we set this to vm._watcher inside the watcher's constructor
  8500. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  8501. // component's mounted hook), which relies on vm._watcher being already defined
  8502. new Watcher(vm, updateComponent, noop, {
  8503. before: function before() {
  8504. if (vm._isMounted && !vm._isDestroyed) {
  8505. callHook(vm, 'beforeUpdate');
  8506. }
  8507. }
  8508. }, true /* isRenderWatcher */);
  8509. hydrating = false;
  8510. return vm
  8511. }
  8512. /* */
  8513. function renderClass (
  8514. staticClass,
  8515. dynamicClass
  8516. ) {
  8517. if (isDef(staticClass) || isDef(dynamicClass)) {
  8518. return concat(staticClass, stringifyClass(dynamicClass))
  8519. }
  8520. /* istanbul ignore next */
  8521. return ''
  8522. }
  8523. function concat (a, b) {
  8524. return a ? b ? (a + ' ' + b) : a : (b || '')
  8525. }
  8526. function stringifyClass (value) {
  8527. if (Array.isArray(value)) {
  8528. return stringifyArray(value)
  8529. }
  8530. if (isObject(value)) {
  8531. return stringifyObject(value)
  8532. }
  8533. if (typeof value === 'string') {
  8534. return value
  8535. }
  8536. /* istanbul ignore next */
  8537. return ''
  8538. }
  8539. function stringifyArray (value) {
  8540. var res = '';
  8541. var stringified;
  8542. for (var i = 0, l = value.length; i < l; i++) {
  8543. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  8544. if (res) { res += ' '; }
  8545. res += stringified;
  8546. }
  8547. }
  8548. return res
  8549. }
  8550. function stringifyObject (value) {
  8551. var res = '';
  8552. for (var key in value) {
  8553. if (value[key]) {
  8554. if (res) { res += ' '; }
  8555. res += key;
  8556. }
  8557. }
  8558. return res
  8559. }
  8560. /* */
  8561. var parseStyleText = cached(function (cssText) {
  8562. var res = {};
  8563. var listDelimiter = /;(?![^(]*\))/g;
  8564. var propertyDelimiter = /:(.+)/;
  8565. cssText.split(listDelimiter).forEach(function (item) {
  8566. if (item) {
  8567. var tmp = item.split(propertyDelimiter);
  8568. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  8569. }
  8570. });
  8571. return res
  8572. });
  8573. // normalize possible array / string values into Object
  8574. function normalizeStyleBinding (bindingStyle) {
  8575. if (Array.isArray(bindingStyle)) {
  8576. return toObject(bindingStyle)
  8577. }
  8578. if (typeof bindingStyle === 'string') {
  8579. return parseStyleText(bindingStyle)
  8580. }
  8581. return bindingStyle
  8582. }
  8583. /* */
  8584. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  8585. function getTarget(obj, path) {
  8586. var parts = path.split('.');
  8587. var key = parts[0];
  8588. if (key.indexOf('__$n') === 0) { //number index
  8589. key = parseInt(key.replace('__$n', ''));
  8590. }
  8591. if (parts.length === 1) {
  8592. return obj[key]
  8593. }
  8594. return getTarget(obj[key], parts.slice(1).join('.'))
  8595. }
  8596. function internalMixin(Vue) {
  8597. Vue.config.errorHandler = function(err, vm, info) {
  8598. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  8599. console.error(err);
  8600. /* eslint-disable no-undef */
  8601. var app = typeof getApp === 'function' && getApp();
  8602. if (app && app.onError) {
  8603. app.onError(err);
  8604. }
  8605. };
  8606. var oldEmit = Vue.prototype.$emit;
  8607. Vue.prototype.$emit = function(event) {
  8608. if (this.$scope && event) {
  8609. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  8610. if (triggerEvent) {
  8611. try {
  8612. triggerEvent.call(this.$scope, event, {
  8613. __args__: toArray(arguments, 1)
  8614. });
  8615. } catch (error) {
  8616. }
  8617. }
  8618. }
  8619. return oldEmit.apply(this, arguments)
  8620. };
  8621. Vue.prototype.$nextTick = function(fn) {
  8622. return nextTick$1(this, fn)
  8623. };
  8624. MP_METHODS.forEach(function (method) {
  8625. Vue.prototype[method] = function(args) {
  8626. if (this.$scope && this.$scope[method]) {
  8627. return this.$scope[method](args)
  8628. }
  8629. // mp-alipay
  8630. if (typeof my === 'undefined') {
  8631. return
  8632. }
  8633. if (method === 'createSelectorQuery') {
  8634. /* eslint-disable no-undef */
  8635. return my.createSelectorQuery(args)
  8636. } else if (method === 'createIntersectionObserver') {
  8637. /* eslint-disable no-undef */
  8638. return my.createIntersectionObserver(args)
  8639. }
  8640. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  8641. };
  8642. });
  8643. Vue.prototype.__init_provide = initProvide;
  8644. Vue.prototype.__init_injections = initInjections;
  8645. Vue.prototype.__call_hook = function(hook, args) {
  8646. var vm = this;
  8647. // #7573 disable dep collection when invoking lifecycle hooks
  8648. pushTarget();
  8649. var handlers = vm.$options[hook];
  8650. var info = hook + " hook";
  8651. var ret;
  8652. if (handlers) {
  8653. for (var i = 0, j = handlers.length; i < j; i++) {
  8654. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  8655. }
  8656. }
  8657. if (vm._hasHookEvent) {
  8658. vm.$emit('hook:' + hook, args);
  8659. }
  8660. popTarget();
  8661. return ret
  8662. };
  8663. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  8664. if (Array.isArray(modifiers)) {
  8665. if (modifiers.indexOf('trim') !== -1) {
  8666. value = value.trim();
  8667. }
  8668. if (modifiers.indexOf('number') !== -1) {
  8669. value = this._n(value);
  8670. }
  8671. }
  8672. if (!target) {
  8673. target = this;
  8674. }
  8675. // 解决动态属性添加
  8676. Vue.set(target, key, value);
  8677. };
  8678. Vue.prototype.__set_sync = function(target, key, value) {
  8679. if (!target) {
  8680. target = this;
  8681. }
  8682. // 解决动态属性添加
  8683. Vue.set(target, key, value);
  8684. };
  8685. Vue.prototype.__get_orig = function(item) {
  8686. if (isPlainObject(item)) {
  8687. return item['$orig'] || item
  8688. }
  8689. return item
  8690. };
  8691. Vue.prototype.__get_value = function(dataPath, target) {
  8692. return getTarget(target || this, dataPath)
  8693. };
  8694. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  8695. return renderClass(staticClass, dynamicClass)
  8696. };
  8697. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  8698. if (!dynamicStyle && !staticStyle) {
  8699. return ''
  8700. }
  8701. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  8702. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  8703. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  8704. };
  8705. Vue.prototype.__map = function(val, iteratee) {
  8706. //TODO 暂不考虑 string
  8707. var ret, i, l, keys, key;
  8708. if (Array.isArray(val)) {
  8709. ret = new Array(val.length);
  8710. for (i = 0, l = val.length; i < l; i++) {
  8711. ret[i] = iteratee(val[i], i);
  8712. }
  8713. return ret
  8714. } else if (isObject(val)) {
  8715. keys = Object.keys(val);
  8716. ret = Object.create(null);
  8717. for (i = 0, l = keys.length; i < l; i++) {
  8718. key = keys[i];
  8719. ret[key] = iteratee(val[key], key, i);
  8720. }
  8721. return ret
  8722. } else if (typeof val === 'number') {
  8723. ret = new Array(val);
  8724. for (i = 0, l = val; i < l; i++) {
  8725. // 第一个参数暂时仍和小程序一致
  8726. ret[i] = iteratee(i, i);
  8727. }
  8728. return ret
  8729. }
  8730. return []
  8731. };
  8732. }
  8733. /* */
  8734. var LIFECYCLE_HOOKS$1 = [
  8735. //App
  8736. 'onLaunch',
  8737. 'onShow',
  8738. 'onHide',
  8739. 'onUniNViewMessage',
  8740. 'onPageNotFound',
  8741. 'onThemeChange',
  8742. 'onError',
  8743. 'onUnhandledRejection',
  8744. //Page
  8745. 'onInit',
  8746. 'onLoad',
  8747. // 'onShow',
  8748. 'onReady',
  8749. // 'onHide',
  8750. 'onUnload',
  8751. 'onPullDownRefresh',
  8752. 'onReachBottom',
  8753. 'onTabItemTap',
  8754. 'onAddToFavorites',
  8755. 'onShareTimeline',
  8756. 'onShareAppMessage',
  8757. 'onResize',
  8758. 'onPageScroll',
  8759. 'onNavigationBarButtonTap',
  8760. 'onBackPress',
  8761. 'onNavigationBarSearchInputChanged',
  8762. 'onNavigationBarSearchInputConfirmed',
  8763. 'onNavigationBarSearchInputClicked',
  8764. 'onUploadDouyinVideo',
  8765. 'onNFCReadMessage',
  8766. //Component
  8767. // 'onReady', // 兼容旧版本,应该移除该事件
  8768. 'onPageShow',
  8769. 'onPageHide',
  8770. 'onPageResize'
  8771. ];
  8772. function lifecycleMixin$1(Vue) {
  8773. //fixed vue-class-component
  8774. var oldExtend = Vue.extend;
  8775. Vue.extend = function(extendOptions) {
  8776. extendOptions = extendOptions || {};
  8777. var methods = extendOptions.methods;
  8778. if (methods) {
  8779. Object.keys(methods).forEach(function (methodName) {
  8780. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  8781. extendOptions[methodName] = methods[methodName];
  8782. delete methods[methodName];
  8783. }
  8784. });
  8785. }
  8786. return oldExtend.call(this, extendOptions)
  8787. };
  8788. var strategies = Vue.config.optionMergeStrategies;
  8789. var mergeHook = strategies.created;
  8790. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  8791. strategies[hook] = mergeHook;
  8792. });
  8793. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  8794. }
  8795. /* */
  8796. // install platform patch function
  8797. Vue.prototype.__patch__ = patch;
  8798. // public mount method
  8799. Vue.prototype.$mount = function(
  8800. el ,
  8801. hydrating
  8802. ) {
  8803. return mountComponent$1(this, el, hydrating)
  8804. };
  8805. lifecycleMixin$1(Vue);
  8806. internalMixin(Vue);
  8807. /* */
  8808. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  8809. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  8810. /***/ }),
  8811. /* 26 */
  8812. /*!*****************************************************************!*\
  8813. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/pages.json ***!
  8814. \*****************************************************************/
  8815. /*! no static exports found */
  8816. /***/ (function(module, exports) {
  8817. /***/ }),
  8818. /* 27 */,
  8819. /* 28 */,
  8820. /* 29 */,
  8821. /* 30 */,
  8822. /* 31 */,
  8823. /* 32 */
  8824. /*!**********************************************************************************************************!*\
  8825. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  8826. \**********************************************************************************************************/
  8827. /*! exports provided: default */
  8828. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8829. "use strict";
  8830. __webpack_require__.r(__webpack_exports__);
  8831. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  8832. /* globals __VUE_SSR_CONTEXT__ */
  8833. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  8834. // This module is a runtime utility for cleaner component module output and will
  8835. // be included in the final webpack user bundle.
  8836. function normalizeComponent (
  8837. scriptExports,
  8838. render,
  8839. staticRenderFns,
  8840. functionalTemplate,
  8841. injectStyles,
  8842. scopeId,
  8843. moduleIdentifier, /* server only */
  8844. shadowMode, /* vue-cli only */
  8845. components, // fixed by xxxxxx auto components
  8846. renderjs // fixed by xxxxxx renderjs
  8847. ) {
  8848. // Vue.extend constructor export interop
  8849. var options = typeof scriptExports === 'function'
  8850. ? scriptExports.options
  8851. : scriptExports
  8852. // fixed by xxxxxx auto components
  8853. if (components) {
  8854. if (!options.components) {
  8855. options.components = {}
  8856. }
  8857. var hasOwn = Object.prototype.hasOwnProperty
  8858. for (var name in components) {
  8859. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  8860. options.components[name] = components[name]
  8861. }
  8862. }
  8863. }
  8864. // fixed by xxxxxx renderjs
  8865. if (renderjs) {
  8866. if(typeof renderjs.beforeCreate === 'function'){
  8867. renderjs.beforeCreate = [renderjs.beforeCreate]
  8868. }
  8869. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  8870. this[renderjs.__module] = this
  8871. });
  8872. (options.mixins || (options.mixins = [])).push(renderjs)
  8873. }
  8874. // render functions
  8875. if (render) {
  8876. options.render = render
  8877. options.staticRenderFns = staticRenderFns
  8878. options._compiled = true
  8879. }
  8880. // functional template
  8881. if (functionalTemplate) {
  8882. options.functional = true
  8883. }
  8884. // scopedId
  8885. if (scopeId) {
  8886. options._scopeId = 'data-v-' + scopeId
  8887. }
  8888. var hook
  8889. if (moduleIdentifier) { // server build
  8890. hook = function (context) {
  8891. // 2.3 injection
  8892. context =
  8893. context || // cached call
  8894. (this.$vnode && this.$vnode.ssrContext) || // stateful
  8895. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  8896. // 2.2 with runInNewContext: true
  8897. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  8898. context = __VUE_SSR_CONTEXT__
  8899. }
  8900. // inject component styles
  8901. if (injectStyles) {
  8902. injectStyles.call(this, context)
  8903. }
  8904. // register component module identifier for async chunk inferrence
  8905. if (context && context._registeredComponents) {
  8906. context._registeredComponents.add(moduleIdentifier)
  8907. }
  8908. }
  8909. // used by ssr in case component is cached and beforeCreate
  8910. // never gets called
  8911. options._ssrRegister = hook
  8912. } else if (injectStyles) {
  8913. hook = shadowMode
  8914. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  8915. : injectStyles
  8916. }
  8917. if (hook) {
  8918. if (options.functional) {
  8919. // for template-only hot-reload because in that case the render fn doesn't
  8920. // go through the normalizer
  8921. options._injectStyles = hook
  8922. // register for functioal component in vue file
  8923. var originalRender = options.render
  8924. options.render = function renderWithStyleInjection (h, context) {
  8925. hook.call(context)
  8926. return originalRender(h, context)
  8927. }
  8928. } else {
  8929. // inject component registration as beforeCreate hook
  8930. var existing = options.beforeCreate
  8931. options.beforeCreate = existing
  8932. ? [].concat(existing, hook)
  8933. : [hook]
  8934. }
  8935. }
  8936. return {
  8937. exports: scriptExports,
  8938. options: options
  8939. }
  8940. }
  8941. /***/ }),
  8942. /* 33 */
  8943. /*!*********************************************************************!*\
  8944. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/store/index.js ***!
  8945. \*********************************************************************/
  8946. /*! no static exports found */
  8947. /***/ (function(module, exports, __webpack_require__) {
  8948. "use strict";
  8949. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  8950. Object.defineProperty(exports, "__esModule", {
  8951. value: true
  8952. });
  8953. exports.default = void 0;
  8954. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  8955. var _vuex = _interopRequireDefault(__webpack_require__(/*! vuex */ 34));
  8956. var _index = _interopRequireDefault(__webpack_require__(/*! @/store/home/index.js */ 35));
  8957. var _index2 = _interopRequireDefault(__webpack_require__(/*! @/store/house/index.js */ 36));
  8958. var _index3 = _interopRequireDefault(__webpack_require__(/*! @/store/my/index.js */ 37));
  8959. _vue.default.use(_vuex.default);
  8960. var store = new _vuex.default.Store({
  8961. modules: {
  8962. moduleHome: _index.default,
  8963. moduleHouse: _index2.default,
  8964. moduleMy: _index3.default
  8965. }
  8966. });
  8967. var _default = store;
  8968. exports.default = _default;
  8969. /***/ }),
  8970. /* 34 */
  8971. /*!**************************************************************************************!*\
  8972. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vuex3/dist/vuex.common.js ***!
  8973. \**************************************************************************************/
  8974. /*! no static exports found */
  8975. /***/ (function(module, exports, __webpack_require__) {
  8976. "use strict";
  8977. /* WEBPACK VAR INJECTION */(function(global) {/*!
  8978. * vuex v3.6.2
  8979. * (c) 2021 Evan You
  8980. * @license MIT
  8981. */
  8982. function applyMixin (Vue) {
  8983. var version = Number(Vue.version.split('.')[0]);
  8984. if (version >= 2) {
  8985. Vue.mixin({ beforeCreate: vuexInit });
  8986. } else {
  8987. // override init and inject vuex init procedure
  8988. // for 1.x backwards compatibility.
  8989. var _init = Vue.prototype._init;
  8990. Vue.prototype._init = function (options) {
  8991. if ( options === void 0 ) options = {};
  8992. options.init = options.init
  8993. ? [vuexInit].concat(options.init)
  8994. : vuexInit;
  8995. _init.call(this, options);
  8996. };
  8997. }
  8998. /**
  8999. * Vuex init hook, injected into each instances init hooks list.
  9000. */
  9001. function vuexInit () {
  9002. var options = this.$options;
  9003. // store injection
  9004. if (options.store) {
  9005. this.$store = typeof options.store === 'function'
  9006. ? options.store()
  9007. : options.store;
  9008. } else if (options.parent && options.parent.$store) {
  9009. this.$store = options.parent.$store;
  9010. }
  9011. }
  9012. }
  9013. var target = typeof window !== 'undefined'
  9014. ? window
  9015. : typeof global !== 'undefined'
  9016. ? global
  9017. : {};
  9018. var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  9019. function devtoolPlugin (store) {
  9020. if (!devtoolHook) { return }
  9021. store._devtoolHook = devtoolHook;
  9022. devtoolHook.emit('vuex:init', store);
  9023. devtoolHook.on('vuex:travel-to-state', function (targetState) {
  9024. store.replaceState(targetState);
  9025. });
  9026. store.subscribe(function (mutation, state) {
  9027. devtoolHook.emit('vuex:mutation', mutation, state);
  9028. }, { prepend: true });
  9029. store.subscribeAction(function (action, state) {
  9030. devtoolHook.emit('vuex:action', action, state);
  9031. }, { prepend: true });
  9032. }
  9033. /**
  9034. * Get the first item that pass the test
  9035. * by second argument function
  9036. *
  9037. * @param {Array} list
  9038. * @param {Function} f
  9039. * @return {*}
  9040. */
  9041. function find (list, f) {
  9042. return list.filter(f)[0]
  9043. }
  9044. /**
  9045. * Deep copy the given object considering circular structure.
  9046. * This function caches all nested objects and its copies.
  9047. * If it detects circular structure, use cached copy to avoid infinite loop.
  9048. *
  9049. * @param {*} obj
  9050. * @param {Array<Object>} cache
  9051. * @return {*}
  9052. */
  9053. function deepCopy (obj, cache) {
  9054. if ( cache === void 0 ) cache = [];
  9055. // just return if obj is immutable value
  9056. if (obj === null || typeof obj !== 'object') {
  9057. return obj
  9058. }
  9059. // if obj is hit, it is in circular structure
  9060. var hit = find(cache, function (c) { return c.original === obj; });
  9061. if (hit) {
  9062. return hit.copy
  9063. }
  9064. var copy = Array.isArray(obj) ? [] : {};
  9065. // put the copy into cache at first
  9066. // because we want to refer it in recursive deepCopy
  9067. cache.push({
  9068. original: obj,
  9069. copy: copy
  9070. });
  9071. Object.keys(obj).forEach(function (key) {
  9072. copy[key] = deepCopy(obj[key], cache);
  9073. });
  9074. return copy
  9075. }
  9076. /**
  9077. * forEach for object
  9078. */
  9079. function forEachValue (obj, fn) {
  9080. Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });
  9081. }
  9082. function isObject (obj) {
  9083. return obj !== null && typeof obj === 'object'
  9084. }
  9085. function isPromise (val) {
  9086. return val && typeof val.then === 'function'
  9087. }
  9088. function assert (condition, msg) {
  9089. if (!condition) { throw new Error(("[vuex] " + msg)) }
  9090. }
  9091. function partial (fn, arg) {
  9092. return function () {
  9093. return fn(arg)
  9094. }
  9095. }
  9096. // Base data struct for store's module, package with some attribute and method
  9097. var Module = function Module (rawModule, runtime) {
  9098. this.runtime = runtime;
  9099. // Store some children item
  9100. this._children = Object.create(null);
  9101. // Store the origin module object which passed by programmer
  9102. this._rawModule = rawModule;
  9103. var rawState = rawModule.state;
  9104. // Store the origin module's state
  9105. this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
  9106. };
  9107. var prototypeAccessors = { namespaced: { configurable: true } };
  9108. prototypeAccessors.namespaced.get = function () {
  9109. return !!this._rawModule.namespaced
  9110. };
  9111. Module.prototype.addChild = function addChild (key, module) {
  9112. this._children[key] = module;
  9113. };
  9114. Module.prototype.removeChild = function removeChild (key) {
  9115. delete this._children[key];
  9116. };
  9117. Module.prototype.getChild = function getChild (key) {
  9118. return this._children[key]
  9119. };
  9120. Module.prototype.hasChild = function hasChild (key) {
  9121. return key in this._children
  9122. };
  9123. Module.prototype.update = function update (rawModule) {
  9124. this._rawModule.namespaced = rawModule.namespaced;
  9125. if (rawModule.actions) {
  9126. this._rawModule.actions = rawModule.actions;
  9127. }
  9128. if (rawModule.mutations) {
  9129. this._rawModule.mutations = rawModule.mutations;
  9130. }
  9131. if (rawModule.getters) {
  9132. this._rawModule.getters = rawModule.getters;
  9133. }
  9134. };
  9135. Module.prototype.forEachChild = function forEachChild (fn) {
  9136. forEachValue(this._children, fn);
  9137. };
  9138. Module.prototype.forEachGetter = function forEachGetter (fn) {
  9139. if (this._rawModule.getters) {
  9140. forEachValue(this._rawModule.getters, fn);
  9141. }
  9142. };
  9143. Module.prototype.forEachAction = function forEachAction (fn) {
  9144. if (this._rawModule.actions) {
  9145. forEachValue(this._rawModule.actions, fn);
  9146. }
  9147. };
  9148. Module.prototype.forEachMutation = function forEachMutation (fn) {
  9149. if (this._rawModule.mutations) {
  9150. forEachValue(this._rawModule.mutations, fn);
  9151. }
  9152. };
  9153. Object.defineProperties( Module.prototype, prototypeAccessors );
  9154. var ModuleCollection = function ModuleCollection (rawRootModule) {
  9155. // register root module (Vuex.Store options)
  9156. this.register([], rawRootModule, false);
  9157. };
  9158. ModuleCollection.prototype.get = function get (path) {
  9159. return path.reduce(function (module, key) {
  9160. return module.getChild(key)
  9161. }, this.root)
  9162. };
  9163. ModuleCollection.prototype.getNamespace = function getNamespace (path) {
  9164. var module = this.root;
  9165. return path.reduce(function (namespace, key) {
  9166. module = module.getChild(key);
  9167. return namespace + (module.namespaced ? key + '/' : '')
  9168. }, '')
  9169. };
  9170. ModuleCollection.prototype.update = function update$1 (rawRootModule) {
  9171. update([], this.root, rawRootModule);
  9172. };
  9173. ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
  9174. var this$1 = this;
  9175. if ( runtime === void 0 ) runtime = true;
  9176. if ((true)) {
  9177. assertRawModule(path, rawModule);
  9178. }
  9179. var newModule = new Module(rawModule, runtime);
  9180. if (path.length === 0) {
  9181. this.root = newModule;
  9182. } else {
  9183. var parent = this.get(path.slice(0, -1));
  9184. parent.addChild(path[path.length - 1], newModule);
  9185. }
  9186. // register nested modules
  9187. if (rawModule.modules) {
  9188. forEachValue(rawModule.modules, function (rawChildModule, key) {
  9189. this$1.register(path.concat(key), rawChildModule, runtime);
  9190. });
  9191. }
  9192. };
  9193. ModuleCollection.prototype.unregister = function unregister (path) {
  9194. var parent = this.get(path.slice(0, -1));
  9195. var key = path[path.length - 1];
  9196. var child = parent.getChild(key);
  9197. if (!child) {
  9198. if ((true)) {
  9199. console.warn(
  9200. "[vuex] trying to unregister module '" + key + "', which is " +
  9201. "not registered"
  9202. );
  9203. }
  9204. return
  9205. }
  9206. if (!child.runtime) {
  9207. return
  9208. }
  9209. parent.removeChild(key);
  9210. };
  9211. ModuleCollection.prototype.isRegistered = function isRegistered (path) {
  9212. var parent = this.get(path.slice(0, -1));
  9213. var key = path[path.length - 1];
  9214. if (parent) {
  9215. return parent.hasChild(key)
  9216. }
  9217. return false
  9218. };
  9219. function update (path, targetModule, newModule) {
  9220. if ((true)) {
  9221. assertRawModule(path, newModule);
  9222. }
  9223. // update target module
  9224. targetModule.update(newModule);
  9225. // update nested modules
  9226. if (newModule.modules) {
  9227. for (var key in newModule.modules) {
  9228. if (!targetModule.getChild(key)) {
  9229. if ((true)) {
  9230. console.warn(
  9231. "[vuex] trying to add a new module '" + key + "' on hot reloading, " +
  9232. 'manual reload is needed'
  9233. );
  9234. }
  9235. return
  9236. }
  9237. update(
  9238. path.concat(key),
  9239. targetModule.getChild(key),
  9240. newModule.modules[key]
  9241. );
  9242. }
  9243. }
  9244. }
  9245. var functionAssert = {
  9246. assert: function (value) { return typeof value === 'function'; },
  9247. expected: 'function'
  9248. };
  9249. var objectAssert = {
  9250. assert: function (value) { return typeof value === 'function' ||
  9251. (typeof value === 'object' && typeof value.handler === 'function'); },
  9252. expected: 'function or object with "handler" function'
  9253. };
  9254. var assertTypes = {
  9255. getters: functionAssert,
  9256. mutations: functionAssert,
  9257. actions: objectAssert
  9258. };
  9259. function assertRawModule (path, rawModule) {
  9260. Object.keys(assertTypes).forEach(function (key) {
  9261. if (!rawModule[key]) { return }
  9262. var assertOptions = assertTypes[key];
  9263. forEachValue(rawModule[key], function (value, type) {
  9264. assert(
  9265. assertOptions.assert(value),
  9266. makeAssertionMessage(path, key, type, value, assertOptions.expected)
  9267. );
  9268. });
  9269. });
  9270. }
  9271. function makeAssertionMessage (path, key, type, value, expected) {
  9272. var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
  9273. if (path.length > 0) {
  9274. buf += " in module \"" + (path.join('.')) + "\"";
  9275. }
  9276. buf += " is " + (JSON.stringify(value)) + ".";
  9277. return buf
  9278. }
  9279. var Vue; // bind on install
  9280. var Store = function Store (options) {
  9281. var this$1 = this;
  9282. if ( options === void 0 ) options = {};
  9283. // Auto install if it is not done yet and `window` has `Vue`.
  9284. // To allow users to avoid auto-installation in some cases,
  9285. // this code should be placed here. See #731
  9286. if (!Vue && typeof window !== 'undefined' && window.Vue) {
  9287. install(window.Vue);
  9288. }
  9289. if ((true)) {
  9290. assert(Vue, "must call Vue.use(Vuex) before creating a store instance.");
  9291. assert(typeof Promise !== 'undefined', "vuex requires a Promise polyfill in this browser.");
  9292. assert(this instanceof Store, "store must be called with the new operator.");
  9293. }
  9294. var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
  9295. var strict = options.strict; if ( strict === void 0 ) strict = false;
  9296. // store internal state
  9297. this._committing = false;
  9298. this._actions = Object.create(null);
  9299. this._actionSubscribers = [];
  9300. this._mutations = Object.create(null);
  9301. this._wrappedGetters = Object.create(null);
  9302. this._modules = new ModuleCollection(options);
  9303. this._modulesNamespaceMap = Object.create(null);
  9304. this._subscribers = [];
  9305. this._watcherVM = new Vue();
  9306. this._makeLocalGettersCache = Object.create(null);
  9307. // bind commit and dispatch to self
  9308. var store = this;
  9309. var ref = this;
  9310. var dispatch = ref.dispatch;
  9311. var commit = ref.commit;
  9312. this.dispatch = function boundDispatch (type, payload) {
  9313. return dispatch.call(store, type, payload)
  9314. };
  9315. this.commit = function boundCommit (type, payload, options) {
  9316. return commit.call(store, type, payload, options)
  9317. };
  9318. // strict mode
  9319. this.strict = strict;
  9320. var state = this._modules.root.state;
  9321. // init root module.
  9322. // this also recursively registers all sub-modules
  9323. // and collects all module getters inside this._wrappedGetters
  9324. installModule(this, state, [], this._modules.root);
  9325. // initialize the store vm, which is responsible for the reactivity
  9326. // (also registers _wrappedGetters as computed properties)
  9327. resetStoreVM(this, state);
  9328. // apply plugins
  9329. plugins.forEach(function (plugin) { return plugin(this$1); });
  9330. var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
  9331. if (useDevtools) {
  9332. devtoolPlugin(this);
  9333. }
  9334. };
  9335. var prototypeAccessors$1 = { state: { configurable: true } };
  9336. prototypeAccessors$1.state.get = function () {
  9337. return this._vm._data.$$state
  9338. };
  9339. prototypeAccessors$1.state.set = function (v) {
  9340. if ((true)) {
  9341. assert(false, "use store.replaceState() to explicit replace store state.");
  9342. }
  9343. };
  9344. Store.prototype.commit = function commit (_type, _payload, _options) {
  9345. var this$1 = this;
  9346. // check object-style commit
  9347. var ref = unifyObjectStyle(_type, _payload, _options);
  9348. var type = ref.type;
  9349. var payload = ref.payload;
  9350. var options = ref.options;
  9351. var mutation = { type: type, payload: payload };
  9352. var entry = this._mutations[type];
  9353. if (!entry) {
  9354. if ((true)) {
  9355. console.error(("[vuex] unknown mutation type: " + type));
  9356. }
  9357. return
  9358. }
  9359. this._withCommit(function () {
  9360. entry.forEach(function commitIterator (handler) {
  9361. handler(payload);
  9362. });
  9363. });
  9364. this._subscribers
  9365. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  9366. .forEach(function (sub) { return sub(mutation, this$1.state); });
  9367. if (
  9368. ( true) &&
  9369. options && options.silent
  9370. ) {
  9371. console.warn(
  9372. "[vuex] mutation type: " + type + ". Silent option has been removed. " +
  9373. 'Use the filter functionality in the vue-devtools'
  9374. );
  9375. }
  9376. };
  9377. Store.prototype.dispatch = function dispatch (_type, _payload) {
  9378. var this$1 = this;
  9379. // check object-style dispatch
  9380. var ref = unifyObjectStyle(_type, _payload);
  9381. var type = ref.type;
  9382. var payload = ref.payload;
  9383. var action = { type: type, payload: payload };
  9384. var entry = this._actions[type];
  9385. if (!entry) {
  9386. if ((true)) {
  9387. console.error(("[vuex] unknown action type: " + type));
  9388. }
  9389. return
  9390. }
  9391. try {
  9392. this._actionSubscribers
  9393. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  9394. .filter(function (sub) { return sub.before; })
  9395. .forEach(function (sub) { return sub.before(action, this$1.state); });
  9396. } catch (e) {
  9397. if ((true)) {
  9398. console.warn("[vuex] error in before action subscribers: ");
  9399. console.error(e);
  9400. }
  9401. }
  9402. var result = entry.length > 1
  9403. ? Promise.all(entry.map(function (handler) { return handler(payload); }))
  9404. : entry[0](payload);
  9405. return new Promise(function (resolve, reject) {
  9406. result.then(function (res) {
  9407. try {
  9408. this$1._actionSubscribers
  9409. .filter(function (sub) { return sub.after; })
  9410. .forEach(function (sub) { return sub.after(action, this$1.state); });
  9411. } catch (e) {
  9412. if ((true)) {
  9413. console.warn("[vuex] error in after action subscribers: ");
  9414. console.error(e);
  9415. }
  9416. }
  9417. resolve(res);
  9418. }, function (error) {
  9419. try {
  9420. this$1._actionSubscribers
  9421. .filter(function (sub) { return sub.error; })
  9422. .forEach(function (sub) { return sub.error(action, this$1.state, error); });
  9423. } catch (e) {
  9424. if ((true)) {
  9425. console.warn("[vuex] error in error action subscribers: ");
  9426. console.error(e);
  9427. }
  9428. }
  9429. reject(error);
  9430. });
  9431. })
  9432. };
  9433. Store.prototype.subscribe = function subscribe (fn, options) {
  9434. return genericSubscribe(fn, this._subscribers, options)
  9435. };
  9436. Store.prototype.subscribeAction = function subscribeAction (fn, options) {
  9437. var subs = typeof fn === 'function' ? { before: fn } : fn;
  9438. return genericSubscribe(subs, this._actionSubscribers, options)
  9439. };
  9440. Store.prototype.watch = function watch (getter, cb, options) {
  9441. var this$1 = this;
  9442. if ((true)) {
  9443. assert(typeof getter === 'function', "store.watch only accepts a function.");
  9444. }
  9445. return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
  9446. };
  9447. Store.prototype.replaceState = function replaceState (state) {
  9448. var this$1 = this;
  9449. this._withCommit(function () {
  9450. this$1._vm._data.$$state = state;
  9451. });
  9452. };
  9453. Store.prototype.registerModule = function registerModule (path, rawModule, options) {
  9454. if ( options === void 0 ) options = {};
  9455. if (typeof path === 'string') { path = [path]; }
  9456. if ((true)) {
  9457. assert(Array.isArray(path), "module path must be a string or an Array.");
  9458. assert(path.length > 0, 'cannot register the root module by using registerModule.');
  9459. }
  9460. this._modules.register(path, rawModule);
  9461. installModule(this, this.state, path, this._modules.get(path), options.preserveState);
  9462. // reset store to update getters...
  9463. resetStoreVM(this, this.state);
  9464. };
  9465. Store.prototype.unregisterModule = function unregisterModule (path) {
  9466. var this$1 = this;
  9467. if (typeof path === 'string') { path = [path]; }
  9468. if ((true)) {
  9469. assert(Array.isArray(path), "module path must be a string or an Array.");
  9470. }
  9471. this._modules.unregister(path);
  9472. this._withCommit(function () {
  9473. var parentState = getNestedState(this$1.state, path.slice(0, -1));
  9474. Vue.delete(parentState, path[path.length - 1]);
  9475. });
  9476. resetStore(this);
  9477. };
  9478. Store.prototype.hasModule = function hasModule (path) {
  9479. if (typeof path === 'string') { path = [path]; }
  9480. if ((true)) {
  9481. assert(Array.isArray(path), "module path must be a string or an Array.");
  9482. }
  9483. return this._modules.isRegistered(path)
  9484. };
  9485. Store.prototype[[104,111,116,85,112,100,97,116,101].map(function (item) {return String.fromCharCode(item)}).join('')] = function (newOptions) {
  9486. this._modules.update(newOptions);
  9487. resetStore(this, true);
  9488. };
  9489. Store.prototype._withCommit = function _withCommit (fn) {
  9490. var committing = this._committing;
  9491. this._committing = true;
  9492. fn();
  9493. this._committing = committing;
  9494. };
  9495. Object.defineProperties( Store.prototype, prototypeAccessors$1 );
  9496. function genericSubscribe (fn, subs, options) {
  9497. if (subs.indexOf(fn) < 0) {
  9498. options && options.prepend
  9499. ? subs.unshift(fn)
  9500. : subs.push(fn);
  9501. }
  9502. return function () {
  9503. var i = subs.indexOf(fn);
  9504. if (i > -1) {
  9505. subs.splice(i, 1);
  9506. }
  9507. }
  9508. }
  9509. function resetStore (store, hot) {
  9510. store._actions = Object.create(null);
  9511. store._mutations = Object.create(null);
  9512. store._wrappedGetters = Object.create(null);
  9513. store._modulesNamespaceMap = Object.create(null);
  9514. var state = store.state;
  9515. // init all modules
  9516. installModule(store, state, [], store._modules.root, true);
  9517. // reset vm
  9518. resetStoreVM(store, state, hot);
  9519. }
  9520. function resetStoreVM (store, state, hot) {
  9521. var oldVm = store._vm;
  9522. // bind store public getters
  9523. store.getters = {};
  9524. // reset local getters cache
  9525. store._makeLocalGettersCache = Object.create(null);
  9526. var wrappedGetters = store._wrappedGetters;
  9527. var computed = {};
  9528. forEachValue(wrappedGetters, function (fn, key) {
  9529. // use computed to leverage its lazy-caching mechanism
  9530. // direct inline function use will lead to closure preserving oldVm.
  9531. // using partial to return function with only arguments preserved in closure environment.
  9532. computed[key] = partial(fn, store);
  9533. Object.defineProperty(store.getters, key, {
  9534. get: function () { return store._vm[key]; },
  9535. enumerable: true // for local getters
  9536. });
  9537. });
  9538. // use a Vue instance to store the state tree
  9539. // suppress warnings just in case the user has added
  9540. // some funky global mixins
  9541. var silent = Vue.config.silent;
  9542. Vue.config.silent = true;
  9543. store._vm = new Vue({
  9544. data: {
  9545. $$state: state
  9546. },
  9547. computed: computed
  9548. });
  9549. Vue.config.silent = silent;
  9550. // enable strict mode for new vm
  9551. if (store.strict) {
  9552. enableStrictMode(store);
  9553. }
  9554. if (oldVm) {
  9555. if (hot) {
  9556. // dispatch changes in all subscribed watchers
  9557. // to force getter re-evaluation for hot reloading.
  9558. store._withCommit(function () {
  9559. oldVm._data.$$state = null;
  9560. });
  9561. }
  9562. Vue.nextTick(function () { return oldVm.$destroy(); });
  9563. }
  9564. }
  9565. function installModule (store, rootState, path, module, hot) {
  9566. var isRoot = !path.length;
  9567. var namespace = store._modules.getNamespace(path);
  9568. // register in namespace map
  9569. if (module.namespaced) {
  9570. if (store._modulesNamespaceMap[namespace] && ("development" !== 'production')) {
  9571. console.error(("[vuex] duplicate namespace " + namespace + " for the namespaced module " + (path.join('/'))));
  9572. }
  9573. store._modulesNamespaceMap[namespace] = module;
  9574. }
  9575. // set state
  9576. if (!isRoot && !hot) {
  9577. var parentState = getNestedState(rootState, path.slice(0, -1));
  9578. var moduleName = path[path.length - 1];
  9579. store._withCommit(function () {
  9580. if ((true)) {
  9581. if (moduleName in parentState) {
  9582. console.warn(
  9583. ("[vuex] state field \"" + moduleName + "\" was overridden by a module with the same name at \"" + (path.join('.')) + "\"")
  9584. );
  9585. }
  9586. }
  9587. Vue.set(parentState, moduleName, module.state);
  9588. });
  9589. }
  9590. var local = module.context = makeLocalContext(store, namespace, path);
  9591. module.forEachMutation(function (mutation, key) {
  9592. var namespacedType = namespace + key;
  9593. registerMutation(store, namespacedType, mutation, local);
  9594. });
  9595. module.forEachAction(function (action, key) {
  9596. var type = action.root ? key : namespace + key;
  9597. var handler = action.handler || action;
  9598. registerAction(store, type, handler, local);
  9599. });
  9600. module.forEachGetter(function (getter, key) {
  9601. var namespacedType = namespace + key;
  9602. registerGetter(store, namespacedType, getter, local);
  9603. });
  9604. module.forEachChild(function (child, key) {
  9605. installModule(store, rootState, path.concat(key), child, hot);
  9606. });
  9607. }
  9608. /**
  9609. * make localized dispatch, commit, getters and state
  9610. * if there is no namespace, just use root ones
  9611. */
  9612. function makeLocalContext (store, namespace, path) {
  9613. var noNamespace = namespace === '';
  9614. var local = {
  9615. dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
  9616. var args = unifyObjectStyle(_type, _payload, _options);
  9617. var payload = args.payload;
  9618. var options = args.options;
  9619. var type = args.type;
  9620. if (!options || !options.root) {
  9621. type = namespace + type;
  9622. if (( true) && !store._actions[type]) {
  9623. console.error(("[vuex] unknown local action type: " + (args.type) + ", global type: " + type));
  9624. return
  9625. }
  9626. }
  9627. return store.dispatch(type, payload)
  9628. },
  9629. commit: noNamespace ? store.commit : function (_type, _payload, _options) {
  9630. var args = unifyObjectStyle(_type, _payload, _options);
  9631. var payload = args.payload;
  9632. var options = args.options;
  9633. var type = args.type;
  9634. if (!options || !options.root) {
  9635. type = namespace + type;
  9636. if (( true) && !store._mutations[type]) {
  9637. console.error(("[vuex] unknown local mutation type: " + (args.type) + ", global type: " + type));
  9638. return
  9639. }
  9640. }
  9641. store.commit(type, payload, options);
  9642. }
  9643. };
  9644. // getters and state object must be gotten lazily
  9645. // because they will be changed by vm update
  9646. Object.defineProperties(local, {
  9647. getters: {
  9648. get: noNamespace
  9649. ? function () { return store.getters; }
  9650. : function () { return makeLocalGetters(store, namespace); }
  9651. },
  9652. state: {
  9653. get: function () { return getNestedState(store.state, path); }
  9654. }
  9655. });
  9656. return local
  9657. }
  9658. function makeLocalGetters (store, namespace) {
  9659. if (!store._makeLocalGettersCache[namespace]) {
  9660. var gettersProxy = {};
  9661. var splitPos = namespace.length;
  9662. Object.keys(store.getters).forEach(function (type) {
  9663. // skip if the target getter is not match this namespace
  9664. if (type.slice(0, splitPos) !== namespace) { return }
  9665. // extract local getter type
  9666. var localType = type.slice(splitPos);
  9667. // Add a port to the getters proxy.
  9668. // Define as getter property because
  9669. // we do not want to evaluate the getters in this time.
  9670. Object.defineProperty(gettersProxy, localType, {
  9671. get: function () { return store.getters[type]; },
  9672. enumerable: true
  9673. });
  9674. });
  9675. store._makeLocalGettersCache[namespace] = gettersProxy;
  9676. }
  9677. return store._makeLocalGettersCache[namespace]
  9678. }
  9679. function registerMutation (store, type, handler, local) {
  9680. var entry = store._mutations[type] || (store._mutations[type] = []);
  9681. entry.push(function wrappedMutationHandler (payload) {
  9682. handler.call(store, local.state, payload);
  9683. });
  9684. }
  9685. function registerAction (store, type, handler, local) {
  9686. var entry = store._actions[type] || (store._actions[type] = []);
  9687. entry.push(function wrappedActionHandler (payload) {
  9688. var res = handler.call(store, {
  9689. dispatch: local.dispatch,
  9690. commit: local.commit,
  9691. getters: local.getters,
  9692. state: local.state,
  9693. rootGetters: store.getters,
  9694. rootState: store.state
  9695. }, payload);
  9696. if (!isPromise(res)) {
  9697. res = Promise.resolve(res);
  9698. }
  9699. if (store._devtoolHook) {
  9700. return res.catch(function (err) {
  9701. store._devtoolHook.emit('vuex:error', err);
  9702. throw err
  9703. })
  9704. } else {
  9705. return res
  9706. }
  9707. });
  9708. }
  9709. function registerGetter (store, type, rawGetter, local) {
  9710. if (store._wrappedGetters[type]) {
  9711. if ((true)) {
  9712. console.error(("[vuex] duplicate getter key: " + type));
  9713. }
  9714. return
  9715. }
  9716. store._wrappedGetters[type] = function wrappedGetter (store) {
  9717. return rawGetter(
  9718. local.state, // local state
  9719. local.getters, // local getters
  9720. store.state, // root state
  9721. store.getters // root getters
  9722. )
  9723. };
  9724. }
  9725. function enableStrictMode (store) {
  9726. store._vm.$watch(function () { return this._data.$$state }, function () {
  9727. if ((true)) {
  9728. assert(store._committing, "do not mutate vuex store state outside mutation handlers.");
  9729. }
  9730. }, { deep: true, sync: true });
  9731. }
  9732. function getNestedState (state, path) {
  9733. return path.reduce(function (state, key) { return state[key]; }, state)
  9734. }
  9735. function unifyObjectStyle (type, payload, options) {
  9736. if (isObject(type) && type.type) {
  9737. options = payload;
  9738. payload = type;
  9739. type = type.type;
  9740. }
  9741. if ((true)) {
  9742. assert(typeof type === 'string', ("expects string as the type, but found " + (typeof type) + "."));
  9743. }
  9744. return { type: type, payload: payload, options: options }
  9745. }
  9746. function install (_Vue) {
  9747. if (Vue && _Vue === Vue) {
  9748. if ((true)) {
  9749. console.error(
  9750. '[vuex] already installed. Vue.use(Vuex) should be called only once.'
  9751. );
  9752. }
  9753. return
  9754. }
  9755. Vue = _Vue;
  9756. applyMixin(Vue);
  9757. }
  9758. /**
  9759. * Reduce the code which written in Vue.js for getting the state.
  9760. * @param {String} [namespace] - Module's namespace
  9761. * @param {Object|Array} states # Object's item can be a function which accept state and getters for param, you can do something for state and getters in it.
  9762. * @param {Object}
  9763. */
  9764. var mapState = normalizeNamespace(function (namespace, states) {
  9765. var res = {};
  9766. if (( true) && !isValidMap(states)) {
  9767. console.error('[vuex] mapState: mapper parameter must be either an Array or an Object');
  9768. }
  9769. normalizeMap(states).forEach(function (ref) {
  9770. var key = ref.key;
  9771. var val = ref.val;
  9772. res[key] = function mappedState () {
  9773. var state = this.$store.state;
  9774. var getters = this.$store.getters;
  9775. if (namespace) {
  9776. var module = getModuleByNamespace(this.$store, 'mapState', namespace);
  9777. if (!module) {
  9778. return
  9779. }
  9780. state = module.context.state;
  9781. getters = module.context.getters;
  9782. }
  9783. return typeof val === 'function'
  9784. ? val.call(this, state, getters)
  9785. : state[val]
  9786. };
  9787. // mark vuex getter for devtools
  9788. res[key].vuex = true;
  9789. });
  9790. return res
  9791. });
  9792. /**
  9793. * Reduce the code which written in Vue.js for committing the mutation
  9794. * @param {String} [namespace] - Module's namespace
  9795. * @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept another params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
  9796. * @return {Object}
  9797. */
  9798. var mapMutations = normalizeNamespace(function (namespace, mutations) {
  9799. var res = {};
  9800. if (( true) && !isValidMap(mutations)) {
  9801. console.error('[vuex] mapMutations: mapper parameter must be either an Array or an Object');
  9802. }
  9803. normalizeMap(mutations).forEach(function (ref) {
  9804. var key = ref.key;
  9805. var val = ref.val;
  9806. res[key] = function mappedMutation () {
  9807. var args = [], len = arguments.length;
  9808. while ( len-- ) args[ len ] = arguments[ len ];
  9809. // Get the commit method from store
  9810. var commit = this.$store.commit;
  9811. if (namespace) {
  9812. var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
  9813. if (!module) {
  9814. return
  9815. }
  9816. commit = module.context.commit;
  9817. }
  9818. return typeof val === 'function'
  9819. ? val.apply(this, [commit].concat(args))
  9820. : commit.apply(this.$store, [val].concat(args))
  9821. };
  9822. });
  9823. return res
  9824. });
  9825. /**
  9826. * Reduce the code which written in Vue.js for getting the getters
  9827. * @param {String} [namespace] - Module's namespace
  9828. * @param {Object|Array} getters
  9829. * @return {Object}
  9830. */
  9831. var mapGetters = normalizeNamespace(function (namespace, getters) {
  9832. var res = {};
  9833. if (( true) && !isValidMap(getters)) {
  9834. console.error('[vuex] mapGetters: mapper parameter must be either an Array or an Object');
  9835. }
  9836. normalizeMap(getters).forEach(function (ref) {
  9837. var key = ref.key;
  9838. var val = ref.val;
  9839. // The namespace has been mutated by normalizeNamespace
  9840. val = namespace + val;
  9841. res[key] = function mappedGetter () {
  9842. if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
  9843. return
  9844. }
  9845. if (( true) && !(val in this.$store.getters)) {
  9846. console.error(("[vuex] unknown getter: " + val));
  9847. return
  9848. }
  9849. return this.$store.getters[val]
  9850. };
  9851. // mark vuex getter for devtools
  9852. res[key].vuex = true;
  9853. });
  9854. return res
  9855. });
  9856. /**
  9857. * Reduce the code which written in Vue.js for dispatch the action
  9858. * @param {String} [namespace] - Module's namespace
  9859. * @param {Object|Array} actions # Object's item can be a function which accept `dispatch` function as the first param, it can accept anthor params. You can dispatch action and do any other things in this function. specially, You need to pass anthor params from the mapped function.
  9860. * @return {Object}
  9861. */
  9862. var mapActions = normalizeNamespace(function (namespace, actions) {
  9863. var res = {};
  9864. if (( true) && !isValidMap(actions)) {
  9865. console.error('[vuex] mapActions: mapper parameter must be either an Array or an Object');
  9866. }
  9867. normalizeMap(actions).forEach(function (ref) {
  9868. var key = ref.key;
  9869. var val = ref.val;
  9870. res[key] = function mappedAction () {
  9871. var args = [], len = arguments.length;
  9872. while ( len-- ) args[ len ] = arguments[ len ];
  9873. // get dispatch function from store
  9874. var dispatch = this.$store.dispatch;
  9875. if (namespace) {
  9876. var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
  9877. if (!module) {
  9878. return
  9879. }
  9880. dispatch = module.context.dispatch;
  9881. }
  9882. return typeof val === 'function'
  9883. ? val.apply(this, [dispatch].concat(args))
  9884. : dispatch.apply(this.$store, [val].concat(args))
  9885. };
  9886. });
  9887. return res
  9888. });
  9889. /**
  9890. * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
  9891. * @param {String} namespace
  9892. * @return {Object}
  9893. */
  9894. var createNamespacedHelpers = function (namespace) { return ({
  9895. mapState: mapState.bind(null, namespace),
  9896. mapGetters: mapGetters.bind(null, namespace),
  9897. mapMutations: mapMutations.bind(null, namespace),
  9898. mapActions: mapActions.bind(null, namespace)
  9899. }); };
  9900. /**
  9901. * Normalize the map
  9902. * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
  9903. * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
  9904. * @param {Array|Object} map
  9905. * @return {Object}
  9906. */
  9907. function normalizeMap (map) {
  9908. if (!isValidMap(map)) {
  9909. return []
  9910. }
  9911. return Array.isArray(map)
  9912. ? map.map(function (key) { return ({ key: key, val: key }); })
  9913. : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })
  9914. }
  9915. /**
  9916. * Validate whether given map is valid or not
  9917. * @param {*} map
  9918. * @return {Boolean}
  9919. */
  9920. function isValidMap (map) {
  9921. return Array.isArray(map) || isObject(map)
  9922. }
  9923. /**
  9924. * Return a function expect two param contains namespace and map. it will normalize the namespace and then the param's function will handle the new namespace and the map.
  9925. * @param {Function} fn
  9926. * @return {Function}
  9927. */
  9928. function normalizeNamespace (fn) {
  9929. return function (namespace, map) {
  9930. if (typeof namespace !== 'string') {
  9931. map = namespace;
  9932. namespace = '';
  9933. } else if (namespace.charAt(namespace.length - 1) !== '/') {
  9934. namespace += '/';
  9935. }
  9936. return fn(namespace, map)
  9937. }
  9938. }
  9939. /**
  9940. * Search a special module from store by namespace. if module not exist, print error message.
  9941. * @param {Object} store
  9942. * @param {String} helper
  9943. * @param {String} namespace
  9944. * @return {Object}
  9945. */
  9946. function getModuleByNamespace (store, helper, namespace) {
  9947. var module = store._modulesNamespaceMap[namespace];
  9948. if (( true) && !module) {
  9949. console.error(("[vuex] module namespace not found in " + helper + "(): " + namespace));
  9950. }
  9951. return module
  9952. }
  9953. // Credits: borrowed code from fcomb/redux-logger
  9954. function createLogger (ref) {
  9955. if ( ref === void 0 ) ref = {};
  9956. var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
  9957. var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
  9958. var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
  9959. var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };
  9960. var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };
  9961. var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };
  9962. var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;
  9963. var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;
  9964. var logger = ref.logger; if ( logger === void 0 ) logger = console;
  9965. return function (store) {
  9966. var prevState = deepCopy(store.state);
  9967. if (typeof logger === 'undefined') {
  9968. return
  9969. }
  9970. if (logMutations) {
  9971. store.subscribe(function (mutation, state) {
  9972. var nextState = deepCopy(state);
  9973. if (filter(mutation, prevState, nextState)) {
  9974. var formattedTime = getFormattedTime();
  9975. var formattedMutation = mutationTransformer(mutation);
  9976. var message = "mutation " + (mutation.type) + formattedTime;
  9977. startMessage(logger, message, collapsed);
  9978. logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
  9979. logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
  9980. logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
  9981. endMessage(logger);
  9982. }
  9983. prevState = nextState;
  9984. });
  9985. }
  9986. if (logActions) {
  9987. store.subscribeAction(function (action, state) {
  9988. if (actionFilter(action, state)) {
  9989. var formattedTime = getFormattedTime();
  9990. var formattedAction = actionTransformer(action);
  9991. var message = "action " + (action.type) + formattedTime;
  9992. startMessage(logger, message, collapsed);
  9993. logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
  9994. endMessage(logger);
  9995. }
  9996. });
  9997. }
  9998. }
  9999. }
  10000. function startMessage (logger, message, collapsed) {
  10001. var startMessage = collapsed
  10002. ? logger.groupCollapsed
  10003. : logger.group;
  10004. // render
  10005. try {
  10006. startMessage.call(logger, message);
  10007. } catch (e) {
  10008. logger.log(message);
  10009. }
  10010. }
  10011. function endMessage (logger) {
  10012. try {
  10013. logger.groupEnd();
  10014. } catch (e) {
  10015. logger.log('—— log end ——');
  10016. }
  10017. }
  10018. function getFormattedTime () {
  10019. var time = new Date();
  10020. return (" @ " + (pad(time.getHours(), 2)) + ":" + (pad(time.getMinutes(), 2)) + ":" + (pad(time.getSeconds(), 2)) + "." + (pad(time.getMilliseconds(), 3)))
  10021. }
  10022. function repeat (str, times) {
  10023. return (new Array(times + 1)).join(str)
  10024. }
  10025. function pad (num, maxLength) {
  10026. return repeat('0', maxLength - num.toString().length) + num
  10027. }
  10028. var index_cjs = {
  10029. Store: Store,
  10030. install: install,
  10031. version: '3.6.2',
  10032. mapState: mapState,
  10033. mapMutations: mapMutations,
  10034. mapGetters: mapGetters,
  10035. mapActions: mapActions,
  10036. createNamespacedHelpers: createNamespacedHelpers,
  10037. createLogger: createLogger
  10038. };
  10039. module.exports = index_cjs;
  10040. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  10041. /***/ }),
  10042. /* 35 */
  10043. /*!**************************************************************************!*\
  10044. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/store/home/index.js ***!
  10045. \**************************************************************************/
  10046. /*! no static exports found */
  10047. /***/ (function(module, exports, __webpack_require__) {
  10048. "use strict";
  10049. Object.defineProperty(exports, "__esModule", {
  10050. value: true
  10051. });
  10052. exports.default = void 0;
  10053. var state = {};
  10054. var getters = {};
  10055. var mutations = {};
  10056. var actions = {};
  10057. var _default = {
  10058. state: state,
  10059. getters: getters,
  10060. mutations: mutations,
  10061. actions: actions
  10062. };
  10063. exports.default = _default;
  10064. /***/ }),
  10065. /* 36 */
  10066. /*!***************************************************************************!*\
  10067. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/store/house/index.js ***!
  10068. \***************************************************************************/
  10069. /*! no static exports found */
  10070. /***/ (function(module, exports, __webpack_require__) {
  10071. "use strict";
  10072. Object.defineProperty(exports, "__esModule", {
  10073. value: true
  10074. });
  10075. exports.default = void 0;
  10076. var state = {};
  10077. var getters = {};
  10078. var mutations = {};
  10079. var actions = {};
  10080. var _default = {
  10081. state: state,
  10082. getters: getters,
  10083. mutations: mutations,
  10084. actions: actions
  10085. };
  10086. exports.default = _default;
  10087. /***/ }),
  10088. /* 37 */
  10089. /*!************************************************************************!*\
  10090. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/store/my/index.js ***!
  10091. \************************************************************************/
  10092. /*! no static exports found */
  10093. /***/ (function(module, exports, __webpack_require__) {
  10094. "use strict";
  10095. Object.defineProperty(exports, "__esModule", {
  10096. value: true
  10097. });
  10098. exports.default = void 0;
  10099. var state = {};
  10100. var getters = {};
  10101. var mutations = {};
  10102. var actions = {};
  10103. var _default = {
  10104. state: state,
  10105. getters: getters,
  10106. mutations: mutations,
  10107. actions: actions
  10108. };
  10109. exports.default = _default;
  10110. /***/ }),
  10111. /* 38 */
  10112. /*!*******************************************************************************!*\
  10113. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni.promisify.adaptor.js ***!
  10114. \*******************************************************************************/
  10115. /*! no static exports found */
  10116. /***/ (function(module, exports, __webpack_require__) {
  10117. /* WEBPACK VAR INJECTION */(function(uni) {var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  10118. uni.addInterceptor({
  10119. returnValue: function returnValue(res) {
  10120. if (!(!!res && (_typeof(res) === "object" || typeof res === "function") && typeof res.then === "function")) {
  10121. return res;
  10122. }
  10123. return new Promise(function (resolve, reject) {
  10124. res.then(function (res) {
  10125. return res[0] ? reject(res[0]) : resolve(res[1]);
  10126. });
  10127. });
  10128. }
  10129. });
  10130. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  10131. /***/ }),
  10132. /* 39 */
  10133. /*!************************************************************************************!*\
  10134. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/index.js ***!
  10135. \************************************************************************************/
  10136. /*! no static exports found */
  10137. /***/ (function(module, exports, __webpack_require__) {
  10138. "use strict";
  10139. /* WEBPACK VAR INJECTION */(function(uni) {
  10140. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10141. Object.defineProperty(exports, "__esModule", {
  10142. value: true
  10143. });
  10144. exports.default = void 0;
  10145. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  10146. var _mixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mixin.js */ 40));
  10147. var _mpMixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mpMixin.js */ 41));
  10148. var _luchRequest = _interopRequireDefault(__webpack_require__(/*! ./libs/luch-request */ 42));
  10149. var _route = _interopRequireDefault(__webpack_require__(/*! ./libs/util/route.js */ 60));
  10150. var _colorGradient = _interopRequireDefault(__webpack_require__(/*! ./libs/function/colorGradient.js */ 64));
  10151. var _test = _interopRequireDefault(__webpack_require__(/*! ./libs/function/test.js */ 65));
  10152. var _debounce = _interopRequireDefault(__webpack_require__(/*! ./libs/function/debounce.js */ 66));
  10153. var _throttle = _interopRequireDefault(__webpack_require__(/*! ./libs/function/throttle.js */ 67));
  10154. var _index = _interopRequireDefault(__webpack_require__(/*! ./libs/function/index.js */ 68));
  10155. var _config = _interopRequireDefault(__webpack_require__(/*! ./libs/config/config.js */ 71));
  10156. var _props = _interopRequireDefault(__webpack_require__(/*! ./libs/config/props.js */ 72));
  10157. var _zIndex = _interopRequireDefault(__webpack_require__(/*! ./libs/config/zIndex.js */ 162));
  10158. var _color = _interopRequireDefault(__webpack_require__(/*! ./libs/config/color.js */ 120));
  10159. var _platform = _interopRequireDefault(__webpack_require__(/*! ./libs/function/platform */ 163));
  10160. 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; }
  10161. 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; }
  10162. // 看到此报错,是因为没有配置vue.config.js的【transpileDependencies】,详见:https://www.uviewui.com/components/npmSetting.html#_5-cli模式额外配置
  10163. var pleaseSetTranspileDependencies = {},
  10164. babelTest = pleaseSetTranspileDependencies === null || pleaseSetTranspileDependencies === void 0 ? void 0 : pleaseSetTranspileDependencies.test;
  10165. // 引入全局mixin
  10166. var $u = _objectSpread(_objectSpread({
  10167. route: _route.default,
  10168. date: _index.default.timeFormat,
  10169. // 另名date
  10170. colorGradient: _colorGradient.default.colorGradient,
  10171. hexToRgb: _colorGradient.default.hexToRgb,
  10172. rgbToHex: _colorGradient.default.rgbToHex,
  10173. colorToRgba: _colorGradient.default.colorToRgba,
  10174. test: _test.default,
  10175. type: ['primary', 'success', 'error', 'warning', 'info'],
  10176. http: new _luchRequest.default(),
  10177. config: _config.default,
  10178. // uView配置信息相关,比如版本号
  10179. zIndex: _zIndex.default,
  10180. debounce: _debounce.default,
  10181. throttle: _throttle.default,
  10182. mixin: _mixin.default,
  10183. mpMixin: _mpMixin.default,
  10184. props: _props.default
  10185. }, _index.default), {}, {
  10186. color: _color.default,
  10187. platform: _platform.default
  10188. });
  10189. // $u挂载到uni对象上
  10190. uni.$u = $u;
  10191. var install = function install(Vue) {
  10192. // 时间格式化,同时两个名称,date和timeFormat
  10193. Vue.filter('timeFormat', function (timestamp, format) {
  10194. return uni.$u.timeFormat(timestamp, format);
  10195. });
  10196. Vue.filter('date', function (timestamp, format) {
  10197. return uni.$u.timeFormat(timestamp, format);
  10198. });
  10199. // 将多久以前的方法,注入到全局过滤器
  10200. Vue.filter('timeFrom', function (timestamp, format) {
  10201. return uni.$u.timeFrom(timestamp, format);
  10202. });
  10203. // 同时挂载到uni和Vue.prototype中
  10204. // 只有vue,挂载到Vue.prototype才有意义,因为nvue中全局Vue.prototype和Vue.mixin是无效的
  10205. Vue.prototype.$u = $u;
  10206. Vue.mixin(_mixin.default);
  10207. };
  10208. var _default = {
  10209. install: install
  10210. };
  10211. exports.default = _default;
  10212. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  10213. /***/ }),
  10214. /* 40 */
  10215. /*!***********************************************************************************************!*\
  10216. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/mixin/mixin.js ***!
  10217. \***********************************************************************************************/
  10218. /*! no static exports found */
  10219. /***/ (function(module, exports, __webpack_require__) {
  10220. /* WEBPACK VAR INJECTION */(function(uni) {module.exports = {
  10221. // 定义每个组件都可能需要用到的外部样式以及类名
  10222. props: {
  10223. // 每个组件都有的父组件传递的样式,可以为字符串或者对象形式
  10224. customStyle: {
  10225. type: [Object, String],
  10226. default: function _default() {
  10227. return {};
  10228. }
  10229. },
  10230. customClass: {
  10231. type: String,
  10232. default: ''
  10233. },
  10234. // 跳转的页面路径
  10235. url: {
  10236. type: String,
  10237. default: ''
  10238. },
  10239. // 页面跳转的类型
  10240. linkType: {
  10241. type: String,
  10242. default: 'navigateTo'
  10243. }
  10244. },
  10245. data: function data() {
  10246. return {};
  10247. },
  10248. onLoad: function onLoad() {
  10249. // getRect挂载到$u上,因为这方法需要使用in(this),所以无法把它独立成一个单独的文件导出
  10250. this.$u.getRect = this.$uGetRect;
  10251. },
  10252. created: function created() {
  10253. // 组件当中,只有created声明周期,为了能在组件使用,故也在created中将方法挂载到$u
  10254. this.$u.getRect = this.$uGetRect;
  10255. },
  10256. computed: {
  10257. // 在2.x版本中,将会把$u挂载到uni对象下,导致在模板中无法使用uni.$u.xxx形式
  10258. // 所以这里通过computed计算属性将其附加到this.$u上,就可以在模板或者js中使用uni.$u.xxx
  10259. // 只在nvue环境通过此方式引入完整的$u,其他平台会出现性能问题,非nvue则按需引入(主要原因是props过大)
  10260. $u: function $u() {
  10261. // 在非nvue端,移除props,http,mixin等对象,避免在小程序setData时数据过大影响性能
  10262. return uni.$u.deepMerge(uni.$u, {
  10263. props: undefined,
  10264. http: undefined,
  10265. mixin: undefined
  10266. });
  10267. },
  10268. /**
  10269. * 生成bem规则类名
  10270. * 由于微信小程序,H5,nvue之间绑定class的差异,无法通过:class="[bem()]"的形式进行同用
  10271. * 故采用如下折中做法,最后返回的是数组(一般平台)或字符串(支付宝和字节跳动平台),类似['a', 'b', 'c']或'a b c'的形式
  10272. * @param {String} name 组件名称
  10273. * @param {Array} fixed 一直会存在的类名
  10274. * @param {Array} change 会根据变量值为true或者false而出现或者隐藏的类名
  10275. * @returns {Array|string}
  10276. */
  10277. bem: function bem() {
  10278. return function (name, fixed, change) {
  10279. var _this = this;
  10280. // 类名前缀
  10281. var prefix = "u-".concat(name, "--");
  10282. var classes = {};
  10283. if (fixed) {
  10284. fixed.map(function (item) {
  10285. // 这里的类名,会一直存在
  10286. classes[prefix + _this[item]] = true;
  10287. });
  10288. }
  10289. if (change) {
  10290. change.map(function (item) {
  10291. // 这里的类名,会根据this[item]的值为true或者false,而进行添加或者移除某一个类
  10292. _this[item] ? classes[prefix + item] = _this[item] : delete classes[prefix + item];
  10293. });
  10294. }
  10295. return Object.keys(classes);
  10296. // 支付宝,头条小程序无法动态绑定一个数组类名,否则解析出来的结果会带有",",而导致失效
  10297. };
  10298. }
  10299. },
  10300. methods: {
  10301. // 跳转某一个页面
  10302. openPage: function openPage() {
  10303. var urlKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'url';
  10304. var url = this[urlKey];
  10305. if (url) {
  10306. // 执行类似uni.navigateTo的方法
  10307. uni[this.linkType]({
  10308. url: url
  10309. });
  10310. }
  10311. },
  10312. // 查询节点信息
  10313. // 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
  10314. // 解决办法为在组件根部再套一个没有任何作用的view元素
  10315. $uGetRect: function $uGetRect(selector, all) {
  10316. var _this2 = this;
  10317. return new Promise(function (resolve) {
  10318. uni.createSelectorQuery().in(_this2)[all ? 'selectAll' : 'select'](selector).boundingClientRect(function (rect) {
  10319. if (all && Array.isArray(rect) && rect.length) {
  10320. resolve(rect);
  10321. }
  10322. if (!all && rect) {
  10323. resolve(rect);
  10324. }
  10325. }).exec();
  10326. });
  10327. },
  10328. getParentData: function getParentData() {
  10329. var _this3 = this;
  10330. var parentName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  10331. // 避免在created中去定义parent变量
  10332. if (!this.parent) this.parent = {};
  10333. // 这里的本质原理是,通过获取父组件实例(也即类似u-radio的父组件u-radio-group的this)
  10334. // 将父组件this中对应的参数,赋值给本组件(u-radio的this)的parentData对象中对应的属性
  10335. // 之所以需要这么做,是因为所有端中,头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
  10336. // 此处并不会自动更新子组件的数据,而是依赖父组件u-radio-group去监听data的变化,手动调用更新子组件的方法去重新获取
  10337. this.parent = uni.$u.$parent.call(this, parentName);
  10338. if (this.parent.children) {
  10339. // 如果父组件的children不存在本组件的实例,才将本实例添加到父组件的children中
  10340. this.parent.children.indexOf(this) === -1 && this.parent.children.push(this);
  10341. }
  10342. if (this.parent && this.parentData) {
  10343. // 历遍parentData中的属性,将parent中的同名属性赋值给parentData
  10344. Object.keys(this.parentData).map(function (key) {
  10345. _this3.parentData[key] = _this3.parent[key];
  10346. });
  10347. }
  10348. },
  10349. // 阻止事件冒泡
  10350. preventEvent: function preventEvent(e) {
  10351. e && typeof e.stopPropagation === 'function' && e.stopPropagation();
  10352. },
  10353. // 空操作
  10354. noop: function noop(e) {
  10355. this.preventEvent(e);
  10356. }
  10357. },
  10358. onReachBottom: function onReachBottom() {
  10359. uni.$emit('uOnReachBottom');
  10360. },
  10361. beforeDestroy: function beforeDestroy() {
  10362. var _this4 = this;
  10363. // 判断当前页面是否存在parent和chldren,一般在checkbox和checkbox-group父子联动的场景会有此情况
  10364. // 组件销毁时,移除子组件在父组件children数组中的实例,释放资源,避免数据混乱
  10365. if (this.parent && uni.$u.test.array(this.parent.children)) {
  10366. // 组件销毁时,移除父组件中的children数组中对应的实例
  10367. var childrenList = this.parent.children;
  10368. childrenList.map(function (child, index) {
  10369. // 如果相等,则移除
  10370. if (child === _this4) {
  10371. childrenList.splice(index, 1);
  10372. }
  10373. });
  10374. }
  10375. }
  10376. };
  10377. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  10378. /***/ }),
  10379. /* 41 */
  10380. /*!*************************************************************************************************!*\
  10381. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/mixin/mpMixin.js ***!
  10382. \*************************************************************************************************/
  10383. /*! no static exports found */
  10384. /***/ (function(module, exports, __webpack_require__) {
  10385. "use strict";
  10386. Object.defineProperty(exports, "__esModule", {
  10387. value: true
  10388. });
  10389. exports.default = void 0;
  10390. var _default = {
  10391. // 将自定义节点设置成虚拟的,更加接近Vue组件的表现,能更好的使用flex属性
  10392. options: {
  10393. virtualHost: true
  10394. }
  10395. };
  10396. exports.default = _default;
  10397. /***/ }),
  10398. /* 42 */
  10399. /*!******************************************************************************************************!*\
  10400. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/luch-request/index.js ***!
  10401. \******************************************************************************************************/
  10402. /*! no static exports found */
  10403. /***/ (function(module, exports, __webpack_require__) {
  10404. "use strict";
  10405. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10406. Object.defineProperty(exports, "__esModule", {
  10407. value: true
  10408. });
  10409. exports.default = void 0;
  10410. var _Request = _interopRequireDefault(__webpack_require__(/*! ./core/Request */ 43));
  10411. var _default = _Request.default;
  10412. exports.default = _default;
  10413. /***/ }),
  10414. /* 43 */
  10415. /*!*************************************************************************************************************!*\
  10416. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/luch-request/core/Request.js ***!
  10417. \*************************************************************************************************************/
  10418. /*! no static exports found */
  10419. /***/ (function(module, exports, __webpack_require__) {
  10420. "use strict";
  10421. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10422. Object.defineProperty(exports, "__esModule", {
  10423. value: true
  10424. });
  10425. exports.default = void 0;
  10426. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  10427. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  10428. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  10429. var _dispatchRequest = _interopRequireDefault(__webpack_require__(/*! ./dispatchRequest */ 44));
  10430. var _InterceptorManager = _interopRequireDefault(__webpack_require__(/*! ./InterceptorManager */ 52));
  10431. var _mergeConfig = _interopRequireDefault(__webpack_require__(/*! ./mergeConfig */ 53));
  10432. var _defaults = _interopRequireDefault(__webpack_require__(/*! ./defaults */ 54));
  10433. var _utils = __webpack_require__(/*! ../utils */ 47);
  10434. var _clone = _interopRequireDefault(__webpack_require__(/*! ../utils/clone */ 55));
  10435. 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; }
  10436. 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; }
  10437. var Request = /*#__PURE__*/function () {
  10438. /**
  10439. * @param {Object} arg - 全局配置
  10440. * @param {String} arg.baseURL - 全局根路径
  10441. * @param {Object} arg.header - 全局header
  10442. * @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 全局默认请求方式
  10443. * @param {String} arg.dataType = [json] - 全局默认的dataType
  10444. * @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。支付宝小程序不支持
  10445. * @param {Object} arg.custom - 全局默认的自定义参数
  10446. * @param {Number} arg.timeout - 全局默认的超时时间,单位 ms。默认60000。H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序(2.10.0)、支付宝小程序
  10447. * @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持(HBuilderX 2.3.3+)
  10448. * @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证(cookies)。默认false。仅H5支持(HBuilderX 2.6.15+)
  10449. * @param {Boolean} arg.firstIpv4 - 全DNS解析时优先使用ipv4。默认false。仅 App-Android 支持 (HBuilderX 2.8.0+)
  10450. * @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
  10451. */
  10452. function Request() {
  10453. var arg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  10454. (0, _classCallCheck2.default)(this, Request);
  10455. if (!(0, _utils.isPlainObject)(arg)) {
  10456. arg = {};
  10457. console.warn('设置全局参数必须接收一个Object');
  10458. }
  10459. this.config = (0, _clone.default)(_objectSpread(_objectSpread({}, _defaults.default), arg));
  10460. this.interceptors = {
  10461. request: new _InterceptorManager.default(),
  10462. response: new _InterceptorManager.default()
  10463. };
  10464. }
  10465. /**
  10466. * @Function
  10467. * @param {Request~setConfigCallback} f - 设置全局默认配置
  10468. */
  10469. (0, _createClass2.default)(Request, [{
  10470. key: "setConfig",
  10471. value: function setConfig(f) {
  10472. this.config = f(this.config);
  10473. }
  10474. }, {
  10475. key: "middleware",
  10476. value: function middleware(config) {
  10477. config = (0, _mergeConfig.default)(this.config, config);
  10478. var chain = [_dispatchRequest.default, undefined];
  10479. var promise = Promise.resolve(config);
  10480. this.interceptors.request.forEach(function (interceptor) {
  10481. chain.unshift(interceptor.fulfilled, interceptor.rejected);
  10482. });
  10483. this.interceptors.response.forEach(function (interceptor) {
  10484. chain.push(interceptor.fulfilled, interceptor.rejected);
  10485. });
  10486. while (chain.length) {
  10487. promise = promise.then(chain.shift(), chain.shift());
  10488. }
  10489. return promise;
  10490. }
  10491. /**
  10492. * @Function
  10493. * @param {Object} config - 请求配置项
  10494. * @prop {String} options.url - 请求路径
  10495. * @prop {Object} options.data - 请求参数
  10496. * @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 响应的数据类型
  10497. * @prop {Object} [options.dataType = config.dataType] - 如果设为 json,会尝试对返回的数据做一次 JSON.parse
  10498. * @prop {Object} [options.header = config.header] - 请求header
  10499. * @prop {Object} [options.method = config.method] - 请求方法
  10500. * @returns {Promise<unknown>}
  10501. */
  10502. }, {
  10503. key: "request",
  10504. value: function request() {
  10505. var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  10506. return this.middleware(config);
  10507. }
  10508. }, {
  10509. key: "get",
  10510. value: function get(url) {
  10511. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  10512. return this.middleware(_objectSpread({
  10513. url: url,
  10514. method: 'GET'
  10515. }, options));
  10516. }
  10517. }, {
  10518. key: "post",
  10519. value: function post(url, data) {
  10520. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  10521. return this.middleware(_objectSpread({
  10522. url: url,
  10523. data: data,
  10524. method: 'POST'
  10525. }, options));
  10526. }
  10527. }, {
  10528. key: "put",
  10529. value: function put(url, data) {
  10530. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  10531. return this.middleware(_objectSpread({
  10532. url: url,
  10533. data: data,
  10534. method: 'PUT'
  10535. }, options));
  10536. }
  10537. }, {
  10538. key: "delete",
  10539. value: function _delete(url, data) {
  10540. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  10541. return this.middleware(_objectSpread({
  10542. url: url,
  10543. data: data,
  10544. method: 'DELETE'
  10545. }, options));
  10546. }
  10547. }, {
  10548. key: "connect",
  10549. value: function connect(url, data) {
  10550. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  10551. return this.middleware(_objectSpread({
  10552. url: url,
  10553. data: data,
  10554. method: 'CONNECT'
  10555. }, options));
  10556. }
  10557. }, {
  10558. key: "head",
  10559. value: function head(url, data) {
  10560. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  10561. return this.middleware(_objectSpread({
  10562. url: url,
  10563. data: data,
  10564. method: 'HEAD'
  10565. }, options));
  10566. }
  10567. }, {
  10568. key: "options",
  10569. value: function options(url, data) {
  10570. var _options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  10571. return this.middleware(_objectSpread({
  10572. url: url,
  10573. data: data,
  10574. method: 'OPTIONS'
  10575. }, _options));
  10576. }
  10577. }, {
  10578. key: "trace",
  10579. value: function trace(url, data) {
  10580. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  10581. return this.middleware(_objectSpread({
  10582. url: url,
  10583. data: data,
  10584. method: 'TRACE'
  10585. }, options));
  10586. }
  10587. }, {
  10588. key: "upload",
  10589. value: function upload(url) {
  10590. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  10591. config.url = url;
  10592. config.method = 'UPLOAD';
  10593. return this.middleware(config);
  10594. }
  10595. }, {
  10596. key: "download",
  10597. value: function download(url) {
  10598. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  10599. config.url = url;
  10600. config.method = 'DOWNLOAD';
  10601. return this.middleware(config);
  10602. }
  10603. }]);
  10604. return Request;
  10605. }();
  10606. /**
  10607. * setConfig回调
  10608. * @return {Object} - 返回操作后的config
  10609. * @callback Request~setConfigCallback
  10610. * @param {Object} config - 全局默认config
  10611. */
  10612. exports.default = Request;
  10613. /***/ }),
  10614. /* 44 */
  10615. /*!*********************************************************************************************************************!*\
  10616. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/luch-request/core/dispatchRequest.js ***!
  10617. \*********************************************************************************************************************/
  10618. /*! no static exports found */
  10619. /***/ (function(module, exports, __webpack_require__) {
  10620. "use strict";
  10621. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10622. Object.defineProperty(exports, "__esModule", {
  10623. value: true
  10624. });
  10625. exports.default = void 0;
  10626. var _index = _interopRequireDefault(__webpack_require__(/*! ../adapters/index */ 45));
  10627. var _default = function _default(config) {
  10628. return (0, _index.default)(config);
  10629. };
  10630. exports.default = _default;
  10631. /***/ }),
  10632. /* 45 */
  10633. /*!***************************************************************************************************************!*\
  10634. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/luch-request/adapters/index.js ***!
  10635. \***************************************************************************************************************/
  10636. /*! no static exports found */
  10637. /***/ (function(module, exports, __webpack_require__) {
  10638. "use strict";
  10639. /* WEBPACK VAR INJECTION */(function(uni) {
  10640. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10641. Object.defineProperty(exports, "__esModule", {
  10642. value: true
  10643. });
  10644. exports.default = void 0;
  10645. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  10646. var _buildURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/buildURL */ 46));
  10647. var _buildFullPath = _interopRequireDefault(__webpack_require__(/*! ../core/buildFullPath */ 48));
  10648. var _settle = _interopRequireDefault(__webpack_require__(/*! ../core/settle */ 51));
  10649. var _utils = __webpack_require__(/*! ../utils */ 47);
  10650. 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; }
  10651. 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; }
  10652. /**
  10653. * 返回可选值存在的配置
  10654. * @param {Array} keys - 可选值数组
  10655. * @param {Object} config2 - 配置
  10656. * @return {{}} - 存在的配置项
  10657. */
  10658. var mergeKeys = function mergeKeys(keys, config2) {
  10659. var config = {};
  10660. keys.forEach(function (prop) {
  10661. if (!(0, _utils.isUndefined)(config2[prop])) {
  10662. config[prop] = config2[prop];
  10663. }
  10664. });
  10665. return config;
  10666. };
  10667. var _default = function _default(config) {
  10668. return new Promise(function (resolve, reject) {
  10669. var fullPath = (0, _buildURL.default)((0, _buildFullPath.default)(config.baseURL, config.url), config.params);
  10670. var _config = {
  10671. url: fullPath,
  10672. header: config.header,
  10673. complete: function complete(response) {
  10674. config.fullPath = fullPath;
  10675. response.config = config;
  10676. try {
  10677. // 对可能字符串不是json 的情况容错
  10678. if (typeof response.data === 'string') {
  10679. response.data = JSON.parse(response.data);
  10680. }
  10681. // eslint-disable-next-line no-empty
  10682. } catch (e) {}
  10683. (0, _settle.default)(resolve, reject, response);
  10684. }
  10685. };
  10686. var requestTask;
  10687. if (config.method === 'UPLOAD') {
  10688. delete _config.header['content-type'];
  10689. delete _config.header['Content-Type'];
  10690. var otherConfig = {
  10691. filePath: config.filePath,
  10692. name: config.name
  10693. };
  10694. var optionalKeys = ['formData'];
  10695. requestTask = uni.uploadFile(_objectSpread(_objectSpread(_objectSpread({}, _config), otherConfig), mergeKeys(optionalKeys, config)));
  10696. } else if (config.method === 'DOWNLOAD') {
  10697. requestTask = uni.downloadFile(_config);
  10698. } else {
  10699. var _optionalKeys = ['data', 'method', 'timeout', 'dataType', 'responseType'];
  10700. requestTask = uni.request(_objectSpread(_objectSpread({}, _config), mergeKeys(_optionalKeys, config)));
  10701. }
  10702. if (config.getTask) {
  10703. config.getTask(requestTask, config);
  10704. }
  10705. });
  10706. };
  10707. exports.default = _default;
  10708. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  10709. /***/ }),
  10710. /* 46 */
  10711. /*!*****************************************************************************************************************!*\
  10712. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/luch-request/helpers/buildURL.js ***!
  10713. \*****************************************************************************************************************/
  10714. /*! no static exports found */
  10715. /***/ (function(module, exports, __webpack_require__) {
  10716. "use strict";
  10717. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  10718. Object.defineProperty(exports, "__esModule", {
  10719. value: true
  10720. });
  10721. exports.default = buildURL;
  10722. var utils = _interopRequireWildcard(__webpack_require__(/*! ../utils */ 47));
  10723. 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); }
  10724. 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; }
  10725. function encode(val) {
  10726. return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
  10727. }
  10728. /**
  10729. * Build a URL by appending params to the end
  10730. *
  10731. * @param {string} url The base of the url (e.g., http://www.google.com)
  10732. * @param {object} [params] The params to be appended
  10733. * @returns {string} The formatted url
  10734. */
  10735. function buildURL(url, params) {
  10736. /* eslint no-param-reassign:0 */
  10737. if (!params) {
  10738. return url;
  10739. }
  10740. var serializedParams;
  10741. if (utils.isURLSearchParams(params)) {
  10742. serializedParams = params.toString();
  10743. } else {
  10744. var parts = [];
  10745. utils.forEach(params, function (val, key) {
  10746. if (val === null || typeof val === 'undefined') {
  10747. return;
  10748. }
  10749. if (utils.isArray(val)) {
  10750. key = "".concat(key, "[]");
  10751. } else {
  10752. val = [val];
  10753. }
  10754. utils.forEach(val, function (v) {
  10755. if (utils.isDate(v)) {
  10756. v = v.toISOString();
  10757. } else if (utils.isObject(v)) {
  10758. v = JSON.stringify(v);
  10759. }
  10760. parts.push("".concat(encode(key), "=").concat(encode(v)));
  10761. });
  10762. });
  10763. serializedParams = parts.join('&');
  10764. }
  10765. if (serializedParams) {
  10766. var hashmarkIndex = url.indexOf('#');
  10767. if (hashmarkIndex !== -1) {
  10768. url = url.slice(0, hashmarkIndex);
  10769. }
  10770. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  10771. }
  10772. return url;
  10773. }
  10774. /***/ }),
  10775. /* 47 */
  10776. /*!******************************************************************************************************!*\
  10777. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/luch-request/utils.js ***!
  10778. \******************************************************************************************************/
  10779. /*! no static exports found */
  10780. /***/ (function(module, exports, __webpack_require__) {
  10781. "use strict";
  10782. // utils is a library of generic helper functions non-specific to axios
  10783. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10784. Object.defineProperty(exports, "__esModule", {
  10785. value: true
  10786. });
  10787. exports.deepMerge = deepMerge;
  10788. exports.forEach = forEach;
  10789. exports.isArray = isArray;
  10790. exports.isBoolean = isBoolean;
  10791. exports.isDate = isDate;
  10792. exports.isObject = isObject;
  10793. exports.isPlainObject = isPlainObject;
  10794. exports.isURLSearchParams = isURLSearchParams;
  10795. exports.isUndefined = isUndefined;
  10796. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  10797. var toString = Object.prototype.toString;
  10798. /**
  10799. * Determine if a value is an Array
  10800. *
  10801. * @param {Object} val The value to test
  10802. * @returns {boolean} True if value is an Array, otherwise false
  10803. */
  10804. function isArray(val) {
  10805. return toString.call(val) === '[object Array]';
  10806. }
  10807. /**
  10808. * Determine if a value is an Object
  10809. *
  10810. * @param {Object} val The value to test
  10811. * @returns {boolean} True if value is an Object, otherwise false
  10812. */
  10813. function isObject(val) {
  10814. return val !== null && (0, _typeof2.default)(val) === 'object';
  10815. }
  10816. /**
  10817. * Determine if a value is a Date
  10818. *
  10819. * @param {Object} val The value to test
  10820. * @returns {boolean} True if value is a Date, otherwise false
  10821. */
  10822. function isDate(val) {
  10823. return toString.call(val) === '[object Date]';
  10824. }
  10825. /**
  10826. * Determine if a value is a URLSearchParams object
  10827. *
  10828. * @param {Object} val The value to test
  10829. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  10830. */
  10831. function isURLSearchParams(val) {
  10832. return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
  10833. }
  10834. /**
  10835. * Iterate over an Array or an Object invoking a function for each item.
  10836. *
  10837. * If `obj` is an Array callback will be called passing
  10838. * the value, index, and complete array for each item.
  10839. *
  10840. * If 'obj' is an Object callback will be called passing
  10841. * the value, key, and complete object for each property.
  10842. *
  10843. * @param {Object|Array} obj The object to iterate
  10844. * @param {Function} fn The callback to invoke for each item
  10845. */
  10846. function forEach(obj, fn) {
  10847. // Don't bother if no value provided
  10848. if (obj === null || typeof obj === 'undefined') {
  10849. return;
  10850. }
  10851. // Force an array if not already something iterable
  10852. if ((0, _typeof2.default)(obj) !== 'object') {
  10853. /* eslint no-param-reassign:0 */
  10854. obj = [obj];
  10855. }
  10856. if (isArray(obj)) {
  10857. // Iterate over array values
  10858. for (var i = 0, l = obj.length; i < l; i++) {
  10859. fn.call(null, obj[i], i, obj);
  10860. }
  10861. } else {
  10862. // Iterate over object keys
  10863. for (var key in obj) {
  10864. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  10865. fn.call(null, obj[key], key, obj);
  10866. }
  10867. }
  10868. }
  10869. }
  10870. /**
  10871. * 是否为boolean 值
  10872. * @param val
  10873. * @returns {boolean}
  10874. */
  10875. function isBoolean(val) {
  10876. return typeof val === 'boolean';
  10877. }
  10878. /**
  10879. * 是否为真正的对象{} new Object
  10880. * @param {any} obj - 检测的对象
  10881. * @returns {boolean}
  10882. */
  10883. function isPlainObject(obj) {
  10884. return Object.prototype.toString.call(obj) === '[object Object]';
  10885. }
  10886. /**
  10887. * Function equal to merge with the difference being that no reference
  10888. * to original objects is kept.
  10889. *
  10890. * @see merge
  10891. * @param {Object} obj1 Object to merge
  10892. * @returns {Object} Result of all merge properties
  10893. */
  10894. function deepMerge( /* obj1, obj2, obj3, ... */
  10895. ) {
  10896. var result = {};
  10897. function assignValue(val, key) {
  10898. if ((0, _typeof2.default)(result[key]) === 'object' && (0, _typeof2.default)(val) === 'object') {
  10899. result[key] = deepMerge(result[key], val);
  10900. } else if ((0, _typeof2.default)(val) === 'object') {
  10901. result[key] = deepMerge({}, val);
  10902. } else {
  10903. result[key] = val;
  10904. }
  10905. }
  10906. for (var i = 0, l = arguments.length; i < l; i++) {
  10907. forEach(arguments[i], assignValue);
  10908. }
  10909. return result;
  10910. }
  10911. function isUndefined(val) {
  10912. return typeof val === 'undefined';
  10913. }
  10914. /***/ }),
  10915. /* 48 */
  10916. /*!*******************************************************************************************************************!*\
  10917. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/luch-request/core/buildFullPath.js ***!
  10918. \*******************************************************************************************************************/
  10919. /*! no static exports found */
  10920. /***/ (function(module, exports, __webpack_require__) {
  10921. "use strict";
  10922. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10923. Object.defineProperty(exports, "__esModule", {
  10924. value: true
  10925. });
  10926. exports.default = buildFullPath;
  10927. var _isAbsoluteURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/isAbsoluteURL */ 49));
  10928. var _combineURLs = _interopRequireDefault(__webpack_require__(/*! ../helpers/combineURLs */ 50));
  10929. /**
  10930. * Creates a new URL by combining the baseURL with the requestedURL,
  10931. * only when the requestedURL is not already an absolute URL.
  10932. * If the requestURL is absolute, this function returns the requestedURL untouched.
  10933. *
  10934. * @param {string} baseURL The base URL
  10935. * @param {string} requestedURL Absolute or relative URL to combine
  10936. * @returns {string} The combined full path
  10937. */
  10938. function buildFullPath(baseURL, requestedURL) {
  10939. if (baseURL && !(0, _isAbsoluteURL.default)(requestedURL)) {
  10940. return (0, _combineURLs.default)(baseURL, requestedURL);
  10941. }
  10942. return requestedURL;
  10943. }
  10944. /***/ }),
  10945. /* 49 */
  10946. /*!**********************************************************************************************************************!*\
  10947. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js ***!
  10948. \**********************************************************************************************************************/
  10949. /*! no static exports found */
  10950. /***/ (function(module, exports, __webpack_require__) {
  10951. "use strict";
  10952. /**
  10953. * Determines whether the specified URL is absolute
  10954. *
  10955. * @param {string} url The URL to test
  10956. * @returns {boolean} True if the specified URL is absolute, otherwise false
  10957. */
  10958. Object.defineProperty(exports, "__esModule", {
  10959. value: true
  10960. });
  10961. exports.default = isAbsoluteURL;
  10962. function isAbsoluteURL(url) {
  10963. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  10964. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  10965. // by any combination of letters, digits, plus, period, or hyphen.
  10966. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
  10967. }
  10968. /***/ }),
  10969. /* 50 */
  10970. /*!********************************************************************************************************************!*\
  10971. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/luch-request/helpers/combineURLs.js ***!
  10972. \********************************************************************************************************************/
  10973. /*! no static exports found */
  10974. /***/ (function(module, exports, __webpack_require__) {
  10975. "use strict";
  10976. /**
  10977. * Creates a new URL by combining the specified URLs
  10978. *
  10979. * @param {string} baseURL The base URL
  10980. * @param {string} relativeURL The relative URL
  10981. * @returns {string} The combined URL
  10982. */
  10983. Object.defineProperty(exports, "__esModule", {
  10984. value: true
  10985. });
  10986. exports.default = combineURLs;
  10987. function combineURLs(baseURL, relativeURL) {
  10988. return relativeURL ? "".concat(baseURL.replace(/\/+$/, ''), "/").concat(relativeURL.replace(/^\/+/, '')) : baseURL;
  10989. }
  10990. /***/ }),
  10991. /* 51 */
  10992. /*!************************************************************************************************************!*\
  10993. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/luch-request/core/settle.js ***!
  10994. \************************************************************************************************************/
  10995. /*! no static exports found */
  10996. /***/ (function(module, exports, __webpack_require__) {
  10997. "use strict";
  10998. Object.defineProperty(exports, "__esModule", {
  10999. value: true
  11000. });
  11001. exports.default = settle;
  11002. /**
  11003. * Resolve or reject a Promise based on response status.
  11004. *
  11005. * @param {Function} resolve A function that resolves the promise.
  11006. * @param {Function} reject A function that rejects the promise.
  11007. * @param {object} response The response.
  11008. */
  11009. function settle(resolve, reject, response) {
  11010. var validateStatus = response.config.validateStatus;
  11011. var status = response.statusCode;
  11012. if (status && (!validateStatus || validateStatus(status))) {
  11013. resolve(response);
  11014. } else {
  11015. reject(response);
  11016. }
  11017. }
  11018. /***/ }),
  11019. /* 52 */
  11020. /*!************************************************************************************************************************!*\
  11021. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/luch-request/core/InterceptorManager.js ***!
  11022. \************************************************************************************************************************/
  11023. /*! no static exports found */
  11024. /***/ (function(module, exports, __webpack_require__) {
  11025. "use strict";
  11026. Object.defineProperty(exports, "__esModule", {
  11027. value: true
  11028. });
  11029. exports.default = void 0;
  11030. function InterceptorManager() {
  11031. this.handlers = [];
  11032. }
  11033. /**
  11034. * Add a new interceptor to the stack
  11035. *
  11036. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  11037. * @param {Function} rejected The function to handle `reject` for a `Promise`
  11038. *
  11039. * @return {Number} An ID used to remove interceptor later
  11040. */
  11041. InterceptorManager.prototype.use = function use(fulfilled, rejected) {
  11042. this.handlers.push({
  11043. fulfilled: fulfilled,
  11044. rejected: rejected
  11045. });
  11046. return this.handlers.length - 1;
  11047. };
  11048. /**
  11049. * Remove an interceptor from the stack
  11050. *
  11051. * @param {Number} id The ID that was returned by `use`
  11052. */
  11053. InterceptorManager.prototype.eject = function eject(id) {
  11054. if (this.handlers[id]) {
  11055. this.handlers[id] = null;
  11056. }
  11057. };
  11058. /**
  11059. * Iterate over all the registered interceptors
  11060. *
  11061. * This method is particularly useful for skipping over any
  11062. * interceptors that may have become `null` calling `eject`.
  11063. *
  11064. * @param {Function} fn The function to call for each interceptor
  11065. */
  11066. InterceptorManager.prototype.forEach = function forEach(fn) {
  11067. this.handlers.forEach(function (h) {
  11068. if (h !== null) {
  11069. fn(h);
  11070. }
  11071. });
  11072. };
  11073. var _default = InterceptorManager;
  11074. exports.default = _default;
  11075. /***/ }),
  11076. /* 53 */
  11077. /*!*****************************************************************************************************************!*\
  11078. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/luch-request/core/mergeConfig.js ***!
  11079. \*****************************************************************************************************************/
  11080. /*! no static exports found */
  11081. /***/ (function(module, exports, __webpack_require__) {
  11082. "use strict";
  11083. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  11084. Object.defineProperty(exports, "__esModule", {
  11085. value: true
  11086. });
  11087. exports.default = void 0;
  11088. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  11089. var _utils = __webpack_require__(/*! ../utils */ 47);
  11090. 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; }
  11091. 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; }
  11092. /**
  11093. * 合并局部配置优先的配置,如果局部有该配置项则用局部,如果全局有该配置项则用全局
  11094. * @param {Array} keys - 配置项
  11095. * @param {Object} globalsConfig - 当前的全局配置
  11096. * @param {Object} config2 - 局部配置
  11097. * @return {{}}
  11098. */
  11099. var mergeKeys = function mergeKeys(keys, globalsConfig, config2) {
  11100. var config = {};
  11101. keys.forEach(function (prop) {
  11102. if (!(0, _utils.isUndefined)(config2[prop])) {
  11103. config[prop] = config2[prop];
  11104. } else if (!(0, _utils.isUndefined)(globalsConfig[prop])) {
  11105. config[prop] = globalsConfig[prop];
  11106. }
  11107. });
  11108. return config;
  11109. };
  11110. /**
  11111. *
  11112. * @param globalsConfig - 当前实例的全局配置
  11113. * @param config2 - 当前的局部配置
  11114. * @return - 合并后的配置
  11115. */
  11116. var _default = function _default(globalsConfig) {
  11117. var config2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  11118. var method = config2.method || globalsConfig.method || 'GET';
  11119. var config = {
  11120. baseURL: globalsConfig.baseURL || '',
  11121. method: method,
  11122. url: config2.url || '',
  11123. params: config2.params || {},
  11124. custom: _objectSpread(_objectSpread({}, globalsConfig.custom || {}), config2.custom || {}),
  11125. header: (0, _utils.deepMerge)(globalsConfig.header || {}, config2.header || {})
  11126. };
  11127. var defaultToConfig2Keys = ['getTask', 'validateStatus'];
  11128. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultToConfig2Keys, globalsConfig, config2));
  11129. // eslint-disable-next-line no-empty
  11130. if (method === 'DOWNLOAD') {} else if (method === 'UPLOAD') {
  11131. delete config.header['content-type'];
  11132. delete config.header['Content-Type'];
  11133. var uploadKeys = ['filePath', 'name', 'formData'];
  11134. uploadKeys.forEach(function (prop) {
  11135. if (!(0, _utils.isUndefined)(config2[prop])) {
  11136. config[prop] = config2[prop];
  11137. }
  11138. });
  11139. } else {
  11140. var defaultsKeys = ['data', 'timeout', 'dataType', 'responseType'];
  11141. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultsKeys, globalsConfig, config2));
  11142. }
  11143. return config;
  11144. };
  11145. exports.default = _default;
  11146. /***/ }),
  11147. /* 54 */
  11148. /*!**************************************************************************************************************!*\
  11149. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/luch-request/core/defaults.js ***!
  11150. \**************************************************************************************************************/
  11151. /*! no static exports found */
  11152. /***/ (function(module, exports, __webpack_require__) {
  11153. "use strict";
  11154. Object.defineProperty(exports, "__esModule", {
  11155. value: true
  11156. });
  11157. exports.default = void 0;
  11158. /**
  11159. * 默认的全局配置
  11160. */
  11161. var _default = {
  11162. baseURL: '',
  11163. header: {},
  11164. method: 'GET',
  11165. dataType: 'json',
  11166. responseType: 'text',
  11167. custom: {},
  11168. timeout: 60000,
  11169. validateStatus: function validateStatus(status) {
  11170. return status >= 200 && status < 300;
  11171. }
  11172. };
  11173. exports.default = _default;
  11174. /***/ }),
  11175. /* 55 */
  11176. /*!************************************************************************************************************!*\
  11177. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/luch-request/utils/clone.js ***!
  11178. \************************************************************************************************************/
  11179. /*! no static exports found */
  11180. /***/ (function(module, exports, __webpack_require__) {
  11181. "use strict";
  11182. /* WEBPACK VAR INJECTION */(function(Buffer) {
  11183. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  11184. Object.defineProperty(exports, "__esModule", {
  11185. value: true
  11186. });
  11187. exports.default = void 0;
  11188. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  11189. /* eslint-disable */
  11190. var clone = function () {
  11191. 'use strict';
  11192. function _instanceof(obj, type) {
  11193. return type != null && obj instanceof type;
  11194. }
  11195. var nativeMap;
  11196. try {
  11197. nativeMap = Map;
  11198. } catch (_) {
  11199. // maybe a reference error because no `Map`. Give it a dummy value that no
  11200. // value will ever be an instanceof.
  11201. nativeMap = function nativeMap() {};
  11202. }
  11203. var nativeSet;
  11204. try {
  11205. nativeSet = Set;
  11206. } catch (_) {
  11207. nativeSet = function nativeSet() {};
  11208. }
  11209. var nativePromise;
  11210. try {
  11211. nativePromise = Promise;
  11212. } catch (_) {
  11213. nativePromise = function nativePromise() {};
  11214. }
  11215. /**
  11216. * Clones (copies) an Object using deep copying.
  11217. *
  11218. * This function supports circular references by default, but if you are certain
  11219. * there are no circular references in your object, you can save some CPU time
  11220. * by calling clone(obj, false).
  11221. *
  11222. * Caution: if `circular` is false and `parent` contains circular references,
  11223. * your program may enter an infinite loop and crash.
  11224. *
  11225. * @param `parent` - the object to be cloned
  11226. * @param `circular` - set to true if the object to be cloned may contain
  11227. * circular references. (optional - true by default)
  11228. * @param `depth` - set to a number if the object is only to be cloned to
  11229. * a particular depth. (optional - defaults to Infinity)
  11230. * @param `prototype` - sets the prototype to be used when cloning an object.
  11231. * (optional - defaults to parent prototype).
  11232. * @param `includeNonEnumerable` - set to true if the non-enumerable properties
  11233. * should be cloned as well. Non-enumerable properties on the prototype
  11234. * chain will be ignored. (optional - false by default)
  11235. */
  11236. function clone(parent, circular, depth, prototype, includeNonEnumerable) {
  11237. if ((0, _typeof2.default)(circular) === 'object') {
  11238. depth = circular.depth;
  11239. prototype = circular.prototype;
  11240. includeNonEnumerable = circular.includeNonEnumerable;
  11241. circular = circular.circular;
  11242. }
  11243. // maintain two arrays for circular references, where corresponding parents
  11244. // and children have the same index
  11245. var allParents = [];
  11246. var allChildren = [];
  11247. var useBuffer = typeof Buffer != 'undefined';
  11248. if (typeof circular == 'undefined') circular = true;
  11249. if (typeof depth == 'undefined') depth = Infinity;
  11250. // recurse this function so we don't reset allParents and allChildren
  11251. function _clone(parent, depth) {
  11252. // cloning null always returns null
  11253. if (parent === null) return null;
  11254. if (depth === 0) return parent;
  11255. var child;
  11256. var proto;
  11257. if ((0, _typeof2.default)(parent) != 'object') {
  11258. return parent;
  11259. }
  11260. if (_instanceof(parent, nativeMap)) {
  11261. child = new nativeMap();
  11262. } else if (_instanceof(parent, nativeSet)) {
  11263. child = new nativeSet();
  11264. } else if (_instanceof(parent, nativePromise)) {
  11265. child = new nativePromise(function (resolve, reject) {
  11266. parent.then(function (value) {
  11267. resolve(_clone(value, depth - 1));
  11268. }, function (err) {
  11269. reject(_clone(err, depth - 1));
  11270. });
  11271. });
  11272. } else if (clone.__isArray(parent)) {
  11273. child = [];
  11274. } else if (clone.__isRegExp(parent)) {
  11275. child = new RegExp(parent.source, __getRegExpFlags(parent));
  11276. if (parent.lastIndex) child.lastIndex = parent.lastIndex;
  11277. } else if (clone.__isDate(parent)) {
  11278. child = new Date(parent.getTime());
  11279. } else if (useBuffer && Buffer.isBuffer(parent)) {
  11280. if (Buffer.from) {
  11281. // Node.js >= 5.10.0
  11282. child = Buffer.from(parent);
  11283. } else {
  11284. // Older Node.js versions
  11285. child = new Buffer(parent.length);
  11286. parent.copy(child);
  11287. }
  11288. return child;
  11289. } else if (_instanceof(parent, Error)) {
  11290. child = Object.create(parent);
  11291. } else {
  11292. if (typeof prototype == 'undefined') {
  11293. proto = Object.getPrototypeOf(parent);
  11294. child = Object.create(proto);
  11295. } else {
  11296. child = Object.create(prototype);
  11297. proto = prototype;
  11298. }
  11299. }
  11300. if (circular) {
  11301. var index = allParents.indexOf(parent);
  11302. if (index != -1) {
  11303. return allChildren[index];
  11304. }
  11305. allParents.push(parent);
  11306. allChildren.push(child);
  11307. }
  11308. if (_instanceof(parent, nativeMap)) {
  11309. parent.forEach(function (value, key) {
  11310. var keyChild = _clone(key, depth - 1);
  11311. var valueChild = _clone(value, depth - 1);
  11312. child.set(keyChild, valueChild);
  11313. });
  11314. }
  11315. if (_instanceof(parent, nativeSet)) {
  11316. parent.forEach(function (value) {
  11317. var entryChild = _clone(value, depth - 1);
  11318. child.add(entryChild);
  11319. });
  11320. }
  11321. for (var i in parent) {
  11322. var attrs = Object.getOwnPropertyDescriptor(parent, i);
  11323. if (attrs) {
  11324. child[i] = _clone(parent[i], depth - 1);
  11325. }
  11326. try {
  11327. var objProperty = Object.getOwnPropertyDescriptor(parent, i);
  11328. if (objProperty.set === 'undefined') {
  11329. // no setter defined. Skip cloning this property
  11330. continue;
  11331. }
  11332. child[i] = _clone(parent[i], depth - 1);
  11333. } catch (e) {
  11334. if (e instanceof TypeError) {
  11335. // when in strict mode, TypeError will be thrown if child[i] property only has a getter
  11336. // we can't do anything about this, other than inform the user that this property cannot be set.
  11337. continue;
  11338. } else if (e instanceof ReferenceError) {
  11339. //this may happen in non strict mode
  11340. continue;
  11341. }
  11342. }
  11343. }
  11344. if (Object.getOwnPropertySymbols) {
  11345. var symbols = Object.getOwnPropertySymbols(parent);
  11346. for (var i = 0; i < symbols.length; i++) {
  11347. // Don't need to worry about cloning a symbol because it is a primitive,
  11348. // like a number or string.
  11349. var symbol = symbols[i];
  11350. var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);
  11351. if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
  11352. continue;
  11353. }
  11354. child[symbol] = _clone(parent[symbol], depth - 1);
  11355. Object.defineProperty(child, symbol, descriptor);
  11356. }
  11357. }
  11358. if (includeNonEnumerable) {
  11359. var allPropertyNames = Object.getOwnPropertyNames(parent);
  11360. for (var i = 0; i < allPropertyNames.length; i++) {
  11361. var propertyName = allPropertyNames[i];
  11362. var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);
  11363. if (descriptor && descriptor.enumerable) {
  11364. continue;
  11365. }
  11366. child[propertyName] = _clone(parent[propertyName], depth - 1);
  11367. Object.defineProperty(child, propertyName, descriptor);
  11368. }
  11369. }
  11370. return child;
  11371. }
  11372. return _clone(parent, depth);
  11373. }
  11374. /**
  11375. * Simple flat clone using prototype, accepts only objects, usefull for property
  11376. * override on FLAT configuration object (no nested props).
  11377. *
  11378. * USE WITH CAUTION! This may not behave as you wish if you do not know how this
  11379. * works.
  11380. */
  11381. clone.clonePrototype = function clonePrototype(parent) {
  11382. if (parent === null) return null;
  11383. var c = function c() {};
  11384. c.prototype = parent;
  11385. return new c();
  11386. };
  11387. // private utility functions
  11388. function __objToStr(o) {
  11389. return Object.prototype.toString.call(o);
  11390. }
  11391. clone.__objToStr = __objToStr;
  11392. function __isDate(o) {
  11393. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Date]';
  11394. }
  11395. clone.__isDate = __isDate;
  11396. function __isArray(o) {
  11397. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Array]';
  11398. }
  11399. clone.__isArray = __isArray;
  11400. function __isRegExp(o) {
  11401. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object RegExp]';
  11402. }
  11403. clone.__isRegExp = __isRegExp;
  11404. function __getRegExpFlags(re) {
  11405. var flags = '';
  11406. if (re.global) flags += 'g';
  11407. if (re.ignoreCase) flags += 'i';
  11408. if (re.multiline) flags += 'm';
  11409. return flags;
  11410. }
  11411. clone.__getRegExpFlags = __getRegExpFlags;
  11412. return clone;
  11413. }();
  11414. var _default = clone;
  11415. exports.default = _default;
  11416. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../../../../../backup/HBuilderX.3.7.9.20230324/HBuilderX/plugins/uniapp-cli/node_modules/buffer/index.js */ 56).Buffer))
  11417. /***/ }),
  11418. /* 56 */
  11419. /*!**************************************!*\
  11420. !*** ./node_modules/buffer/index.js ***!
  11421. \**************************************/
  11422. /*! no static exports found */
  11423. /***/ (function(module, exports, __webpack_require__) {
  11424. "use strict";
  11425. /* WEBPACK VAR INJECTION */(function(global) {/*!
  11426. * The buffer module from node.js, for the browser.
  11427. *
  11428. * @author Feross Aboukhadijeh <http://feross.org>
  11429. * @license MIT
  11430. */
  11431. /* eslint-disable no-proto */
  11432. var base64 = __webpack_require__(/*! base64-js */ 57)
  11433. var ieee754 = __webpack_require__(/*! ieee754 */ 58)
  11434. var isArray = __webpack_require__(/*! isarray */ 59)
  11435. exports.Buffer = Buffer
  11436. exports.SlowBuffer = SlowBuffer
  11437. exports.INSPECT_MAX_BYTES = 50
  11438. /**
  11439. * If `Buffer.TYPED_ARRAY_SUPPORT`:
  11440. * === true Use Uint8Array implementation (fastest)
  11441. * === false Use Object implementation (most compatible, even IE6)
  11442. *
  11443. * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
  11444. * Opera 11.6+, iOS 4.2+.
  11445. *
  11446. * Due to various browser bugs, sometimes the Object implementation will be used even
  11447. * when the browser supports typed arrays.
  11448. *
  11449. * Note:
  11450. *
  11451. * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
  11452. * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
  11453. *
  11454. * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
  11455. *
  11456. * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
  11457. * incorrect length in some situations.
  11458. * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
  11459. * get the Object implementation, which is slower but behaves correctly.
  11460. */
  11461. Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
  11462. ? global.TYPED_ARRAY_SUPPORT
  11463. : typedArraySupport()
  11464. /*
  11465. * Export kMaxLength after typed array support is determined.
  11466. */
  11467. exports.kMaxLength = kMaxLength()
  11468. function typedArraySupport () {
  11469. try {
  11470. var arr = new Uint8Array(1)
  11471. arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
  11472. return arr.foo() === 42 && // typed array instances can be augmented
  11473. typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
  11474. arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
  11475. } catch (e) {
  11476. return false
  11477. }
  11478. }
  11479. function kMaxLength () {
  11480. return Buffer.TYPED_ARRAY_SUPPORT
  11481. ? 0x7fffffff
  11482. : 0x3fffffff
  11483. }
  11484. function createBuffer (that, length) {
  11485. if (kMaxLength() < length) {
  11486. throw new RangeError('Invalid typed array length')
  11487. }
  11488. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11489. // Return an augmented `Uint8Array` instance, for best performance
  11490. that = new Uint8Array(length)
  11491. that.__proto__ = Buffer.prototype
  11492. } else {
  11493. // Fallback: Return an object instance of the Buffer class
  11494. if (that === null) {
  11495. that = new Buffer(length)
  11496. }
  11497. that.length = length
  11498. }
  11499. return that
  11500. }
  11501. /**
  11502. * The Buffer constructor returns instances of `Uint8Array` that have their
  11503. * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
  11504. * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
  11505. * and the `Uint8Array` methods. Square bracket notation works as expected -- it
  11506. * returns a single octet.
  11507. *
  11508. * The `Uint8Array` prototype remains unmodified.
  11509. */
  11510. function Buffer (arg, encodingOrOffset, length) {
  11511. if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
  11512. return new Buffer(arg, encodingOrOffset, length)
  11513. }
  11514. // Common case.
  11515. if (typeof arg === 'number') {
  11516. if (typeof encodingOrOffset === 'string') {
  11517. throw new Error(
  11518. 'If encoding is specified then the first argument must be a string'
  11519. )
  11520. }
  11521. return allocUnsafe(this, arg)
  11522. }
  11523. return from(this, arg, encodingOrOffset, length)
  11524. }
  11525. Buffer.poolSize = 8192 // not used by this implementation
  11526. // TODO: Legacy, not needed anymore. Remove in next major version.
  11527. Buffer._augment = function (arr) {
  11528. arr.__proto__ = Buffer.prototype
  11529. return arr
  11530. }
  11531. function from (that, value, encodingOrOffset, length) {
  11532. if (typeof value === 'number') {
  11533. throw new TypeError('"value" argument must not be a number')
  11534. }
  11535. if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
  11536. return fromArrayBuffer(that, value, encodingOrOffset, length)
  11537. }
  11538. if (typeof value === 'string') {
  11539. return fromString(that, value, encodingOrOffset)
  11540. }
  11541. return fromObject(that, value)
  11542. }
  11543. /**
  11544. * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
  11545. * if value is a number.
  11546. * Buffer.from(str[, encoding])
  11547. * Buffer.from(array)
  11548. * Buffer.from(buffer)
  11549. * Buffer.from(arrayBuffer[, byteOffset[, length]])
  11550. **/
  11551. Buffer.from = function (value, encodingOrOffset, length) {
  11552. return from(null, value, encodingOrOffset, length)
  11553. }
  11554. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11555. Buffer.prototype.__proto__ = Uint8Array.prototype
  11556. Buffer.__proto__ = Uint8Array
  11557. if (typeof Symbol !== 'undefined' && Symbol.species &&
  11558. Buffer[Symbol.species] === Buffer) {
  11559. // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
  11560. Object.defineProperty(Buffer, Symbol.species, {
  11561. value: null,
  11562. configurable: true
  11563. })
  11564. }
  11565. }
  11566. function assertSize (size) {
  11567. if (typeof size !== 'number') {
  11568. throw new TypeError('"size" argument must be a number')
  11569. } else if (size < 0) {
  11570. throw new RangeError('"size" argument must not be negative')
  11571. }
  11572. }
  11573. function alloc (that, size, fill, encoding) {
  11574. assertSize(size)
  11575. if (size <= 0) {
  11576. return createBuffer(that, size)
  11577. }
  11578. if (fill !== undefined) {
  11579. // Only pay attention to encoding if it's a string. This
  11580. // prevents accidentally sending in a number that would
  11581. // be interpretted as a start offset.
  11582. return typeof encoding === 'string'
  11583. ? createBuffer(that, size).fill(fill, encoding)
  11584. : createBuffer(that, size).fill(fill)
  11585. }
  11586. return createBuffer(that, size)
  11587. }
  11588. /**
  11589. * Creates a new filled Buffer instance.
  11590. * alloc(size[, fill[, encoding]])
  11591. **/
  11592. Buffer.alloc = function (size, fill, encoding) {
  11593. return alloc(null, size, fill, encoding)
  11594. }
  11595. function allocUnsafe (that, size) {
  11596. assertSize(size)
  11597. that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
  11598. if (!Buffer.TYPED_ARRAY_SUPPORT) {
  11599. for (var i = 0; i < size; ++i) {
  11600. that[i] = 0
  11601. }
  11602. }
  11603. return that
  11604. }
  11605. /**
  11606. * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
  11607. * */
  11608. Buffer.allocUnsafe = function (size) {
  11609. return allocUnsafe(null, size)
  11610. }
  11611. /**
  11612. * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
  11613. */
  11614. Buffer.allocUnsafeSlow = function (size) {
  11615. return allocUnsafe(null, size)
  11616. }
  11617. function fromString (that, string, encoding) {
  11618. if (typeof encoding !== 'string' || encoding === '') {
  11619. encoding = 'utf8'
  11620. }
  11621. if (!Buffer.isEncoding(encoding)) {
  11622. throw new TypeError('"encoding" must be a valid string encoding')
  11623. }
  11624. var length = byteLength(string, encoding) | 0
  11625. that = createBuffer(that, length)
  11626. var actual = that.write(string, encoding)
  11627. if (actual !== length) {
  11628. // Writing a hex string, for example, that contains invalid characters will
  11629. // cause everything after the first invalid character to be ignored. (e.g.
  11630. // 'abxxcd' will be treated as 'ab')
  11631. that = that.slice(0, actual)
  11632. }
  11633. return that
  11634. }
  11635. function fromArrayLike (that, array) {
  11636. var length = array.length < 0 ? 0 : checked(array.length) | 0
  11637. that = createBuffer(that, length)
  11638. for (var i = 0; i < length; i += 1) {
  11639. that[i] = array[i] & 255
  11640. }
  11641. return that
  11642. }
  11643. function fromArrayBuffer (that, array, byteOffset, length) {
  11644. array.byteLength // this throws if `array` is not a valid ArrayBuffer
  11645. if (byteOffset < 0 || array.byteLength < byteOffset) {
  11646. throw new RangeError('\'offset\' is out of bounds')
  11647. }
  11648. if (array.byteLength < byteOffset + (length || 0)) {
  11649. throw new RangeError('\'length\' is out of bounds')
  11650. }
  11651. if (byteOffset === undefined && length === undefined) {
  11652. array = new Uint8Array(array)
  11653. } else if (length === undefined) {
  11654. array = new Uint8Array(array, byteOffset)
  11655. } else {
  11656. array = new Uint8Array(array, byteOffset, length)
  11657. }
  11658. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11659. // Return an augmented `Uint8Array` instance, for best performance
  11660. that = array
  11661. that.__proto__ = Buffer.prototype
  11662. } else {
  11663. // Fallback: Return an object instance of the Buffer class
  11664. that = fromArrayLike(that, array)
  11665. }
  11666. return that
  11667. }
  11668. function fromObject (that, obj) {
  11669. if (Buffer.isBuffer(obj)) {
  11670. var len = checked(obj.length) | 0
  11671. that = createBuffer(that, len)
  11672. if (that.length === 0) {
  11673. return that
  11674. }
  11675. obj.copy(that, 0, 0, len)
  11676. return that
  11677. }
  11678. if (obj) {
  11679. if ((typeof ArrayBuffer !== 'undefined' &&
  11680. obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
  11681. if (typeof obj.length !== 'number' || isnan(obj.length)) {
  11682. return createBuffer(that, 0)
  11683. }
  11684. return fromArrayLike(that, obj)
  11685. }
  11686. if (obj.type === 'Buffer' && isArray(obj.data)) {
  11687. return fromArrayLike(that, obj.data)
  11688. }
  11689. }
  11690. throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
  11691. }
  11692. function checked (length) {
  11693. // Note: cannot use `length < kMaxLength()` here because that fails when
  11694. // length is NaN (which is otherwise coerced to zero.)
  11695. if (length >= kMaxLength()) {
  11696. throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
  11697. 'size: 0x' + kMaxLength().toString(16) + ' bytes')
  11698. }
  11699. return length | 0
  11700. }
  11701. function SlowBuffer (length) {
  11702. if (+length != length) { // eslint-disable-line eqeqeq
  11703. length = 0
  11704. }
  11705. return Buffer.alloc(+length)
  11706. }
  11707. Buffer.isBuffer = function isBuffer (b) {
  11708. return !!(b != null && b._isBuffer)
  11709. }
  11710. Buffer.compare = function compare (a, b) {
  11711. if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
  11712. throw new TypeError('Arguments must be Buffers')
  11713. }
  11714. if (a === b) return 0
  11715. var x = a.length
  11716. var y = b.length
  11717. for (var i = 0, len = Math.min(x, y); i < len; ++i) {
  11718. if (a[i] !== b[i]) {
  11719. x = a[i]
  11720. y = b[i]
  11721. break
  11722. }
  11723. }
  11724. if (x < y) return -1
  11725. if (y < x) return 1
  11726. return 0
  11727. }
  11728. Buffer.isEncoding = function isEncoding (encoding) {
  11729. switch (String(encoding).toLowerCase()) {
  11730. case 'hex':
  11731. case 'utf8':
  11732. case 'utf-8':
  11733. case 'ascii':
  11734. case 'latin1':
  11735. case 'binary':
  11736. case 'base64':
  11737. case 'ucs2':
  11738. case 'ucs-2':
  11739. case 'utf16le':
  11740. case 'utf-16le':
  11741. return true
  11742. default:
  11743. return false
  11744. }
  11745. }
  11746. Buffer.concat = function concat (list, length) {
  11747. if (!isArray(list)) {
  11748. throw new TypeError('"list" argument must be an Array of Buffers')
  11749. }
  11750. if (list.length === 0) {
  11751. return Buffer.alloc(0)
  11752. }
  11753. var i
  11754. if (length === undefined) {
  11755. length = 0
  11756. for (i = 0; i < list.length; ++i) {
  11757. length += list[i].length
  11758. }
  11759. }
  11760. var buffer = Buffer.allocUnsafe(length)
  11761. var pos = 0
  11762. for (i = 0; i < list.length; ++i) {
  11763. var buf = list[i]
  11764. if (!Buffer.isBuffer(buf)) {
  11765. throw new TypeError('"list" argument must be an Array of Buffers')
  11766. }
  11767. buf.copy(buffer, pos)
  11768. pos += buf.length
  11769. }
  11770. return buffer
  11771. }
  11772. function byteLength (string, encoding) {
  11773. if (Buffer.isBuffer(string)) {
  11774. return string.length
  11775. }
  11776. if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
  11777. (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
  11778. return string.byteLength
  11779. }
  11780. if (typeof string !== 'string') {
  11781. string = '' + string
  11782. }
  11783. var len = string.length
  11784. if (len === 0) return 0
  11785. // Use a for loop to avoid recursion
  11786. var loweredCase = false
  11787. for (;;) {
  11788. switch (encoding) {
  11789. case 'ascii':
  11790. case 'latin1':
  11791. case 'binary':
  11792. return len
  11793. case 'utf8':
  11794. case 'utf-8':
  11795. case undefined:
  11796. return utf8ToBytes(string).length
  11797. case 'ucs2':
  11798. case 'ucs-2':
  11799. case 'utf16le':
  11800. case 'utf-16le':
  11801. return len * 2
  11802. case 'hex':
  11803. return len >>> 1
  11804. case 'base64':
  11805. return base64ToBytes(string).length
  11806. default:
  11807. if (loweredCase) return utf8ToBytes(string).length // assume utf8
  11808. encoding = ('' + encoding).toLowerCase()
  11809. loweredCase = true
  11810. }
  11811. }
  11812. }
  11813. Buffer.byteLength = byteLength
  11814. function slowToString (encoding, start, end) {
  11815. var loweredCase = false
  11816. // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
  11817. // property of a typed array.
  11818. // This behaves neither like String nor Uint8Array in that we set start/end
  11819. // to their upper/lower bounds if the value passed is out of range.
  11820. // undefined is handled specially as per ECMA-262 6th Edition,
  11821. // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
  11822. if (start === undefined || start < 0) {
  11823. start = 0
  11824. }
  11825. // Return early if start > this.length. Done here to prevent potential uint32
  11826. // coercion fail below.
  11827. if (start > this.length) {
  11828. return ''
  11829. }
  11830. if (end === undefined || end > this.length) {
  11831. end = this.length
  11832. }
  11833. if (end <= 0) {
  11834. return ''
  11835. }
  11836. // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
  11837. end >>>= 0
  11838. start >>>= 0
  11839. if (end <= start) {
  11840. return ''
  11841. }
  11842. if (!encoding) encoding = 'utf8'
  11843. while (true) {
  11844. switch (encoding) {
  11845. case 'hex':
  11846. return hexSlice(this, start, end)
  11847. case 'utf8':
  11848. case 'utf-8':
  11849. return utf8Slice(this, start, end)
  11850. case 'ascii':
  11851. return asciiSlice(this, start, end)
  11852. case 'latin1':
  11853. case 'binary':
  11854. return latin1Slice(this, start, end)
  11855. case 'base64':
  11856. return base64Slice(this, start, end)
  11857. case 'ucs2':
  11858. case 'ucs-2':
  11859. case 'utf16le':
  11860. case 'utf-16le':
  11861. return utf16leSlice(this, start, end)
  11862. default:
  11863. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  11864. encoding = (encoding + '').toLowerCase()
  11865. loweredCase = true
  11866. }
  11867. }
  11868. }
  11869. // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
  11870. // Buffer instances.
  11871. Buffer.prototype._isBuffer = true
  11872. function swap (b, n, m) {
  11873. var i = b[n]
  11874. b[n] = b[m]
  11875. b[m] = i
  11876. }
  11877. Buffer.prototype.swap16 = function swap16 () {
  11878. var len = this.length
  11879. if (len % 2 !== 0) {
  11880. throw new RangeError('Buffer size must be a multiple of 16-bits')
  11881. }
  11882. for (var i = 0; i < len; i += 2) {
  11883. swap(this, i, i + 1)
  11884. }
  11885. return this
  11886. }
  11887. Buffer.prototype.swap32 = function swap32 () {
  11888. var len = this.length
  11889. if (len % 4 !== 0) {
  11890. throw new RangeError('Buffer size must be a multiple of 32-bits')
  11891. }
  11892. for (var i = 0; i < len; i += 4) {
  11893. swap(this, i, i + 3)
  11894. swap(this, i + 1, i + 2)
  11895. }
  11896. return this
  11897. }
  11898. Buffer.prototype.swap64 = function swap64 () {
  11899. var len = this.length
  11900. if (len % 8 !== 0) {
  11901. throw new RangeError('Buffer size must be a multiple of 64-bits')
  11902. }
  11903. for (var i = 0; i < len; i += 8) {
  11904. swap(this, i, i + 7)
  11905. swap(this, i + 1, i + 6)
  11906. swap(this, i + 2, i + 5)
  11907. swap(this, i + 3, i + 4)
  11908. }
  11909. return this
  11910. }
  11911. Buffer.prototype.toString = function toString () {
  11912. var length = this.length | 0
  11913. if (length === 0) return ''
  11914. if (arguments.length === 0) return utf8Slice(this, 0, length)
  11915. return slowToString.apply(this, arguments)
  11916. }
  11917. Buffer.prototype.equals = function equals (b) {
  11918. if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  11919. if (this === b) return true
  11920. return Buffer.compare(this, b) === 0
  11921. }
  11922. Buffer.prototype.inspect = function inspect () {
  11923. var str = ''
  11924. var max = exports.INSPECT_MAX_BYTES
  11925. if (this.length > 0) {
  11926. str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
  11927. if (this.length > max) str += ' ... '
  11928. }
  11929. return '<Buffer ' + str + '>'
  11930. }
  11931. Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
  11932. if (!Buffer.isBuffer(target)) {
  11933. throw new TypeError('Argument must be a Buffer')
  11934. }
  11935. if (start === undefined) {
  11936. start = 0
  11937. }
  11938. if (end === undefined) {
  11939. end = target ? target.length : 0
  11940. }
  11941. if (thisStart === undefined) {
  11942. thisStart = 0
  11943. }
  11944. if (thisEnd === undefined) {
  11945. thisEnd = this.length
  11946. }
  11947. if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
  11948. throw new RangeError('out of range index')
  11949. }
  11950. if (thisStart >= thisEnd && start >= end) {
  11951. return 0
  11952. }
  11953. if (thisStart >= thisEnd) {
  11954. return -1
  11955. }
  11956. if (start >= end) {
  11957. return 1
  11958. }
  11959. start >>>= 0
  11960. end >>>= 0
  11961. thisStart >>>= 0
  11962. thisEnd >>>= 0
  11963. if (this === target) return 0
  11964. var x = thisEnd - thisStart
  11965. var y = end - start
  11966. var len = Math.min(x, y)
  11967. var thisCopy = this.slice(thisStart, thisEnd)
  11968. var targetCopy = target.slice(start, end)
  11969. for (var i = 0; i < len; ++i) {
  11970. if (thisCopy[i] !== targetCopy[i]) {
  11971. x = thisCopy[i]
  11972. y = targetCopy[i]
  11973. break
  11974. }
  11975. }
  11976. if (x < y) return -1
  11977. if (y < x) return 1
  11978. return 0
  11979. }
  11980. // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
  11981. // OR the last index of `val` in `buffer` at offset <= `byteOffset`.
  11982. //
  11983. // Arguments:
  11984. // - buffer - a Buffer to search
  11985. // - val - a string, Buffer, or number
  11986. // - byteOffset - an index into `buffer`; will be clamped to an int32
  11987. // - encoding - an optional encoding, relevant is val is a string
  11988. // - dir - true for indexOf, false for lastIndexOf
  11989. function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
  11990. // Empty buffer means no match
  11991. if (buffer.length === 0) return -1
  11992. // Normalize byteOffset
  11993. if (typeof byteOffset === 'string') {
  11994. encoding = byteOffset
  11995. byteOffset = 0
  11996. } else if (byteOffset > 0x7fffffff) {
  11997. byteOffset = 0x7fffffff
  11998. } else if (byteOffset < -0x80000000) {
  11999. byteOffset = -0x80000000
  12000. }
  12001. byteOffset = +byteOffset // Coerce to Number.
  12002. if (isNaN(byteOffset)) {
  12003. // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
  12004. byteOffset = dir ? 0 : (buffer.length - 1)
  12005. }
  12006. // Normalize byteOffset: negative offsets start from the end of the buffer
  12007. if (byteOffset < 0) byteOffset = buffer.length + byteOffset
  12008. if (byteOffset >= buffer.length) {
  12009. if (dir) return -1
  12010. else byteOffset = buffer.length - 1
  12011. } else if (byteOffset < 0) {
  12012. if (dir) byteOffset = 0
  12013. else return -1
  12014. }
  12015. // Normalize val
  12016. if (typeof val === 'string') {
  12017. val = Buffer.from(val, encoding)
  12018. }
  12019. // Finally, search either indexOf (if dir is true) or lastIndexOf
  12020. if (Buffer.isBuffer(val)) {
  12021. // Special case: looking for empty string/buffer always fails
  12022. if (val.length === 0) {
  12023. return -1
  12024. }
  12025. return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
  12026. } else if (typeof val === 'number') {
  12027. val = val & 0xFF // Search for a byte value [0-255]
  12028. if (Buffer.TYPED_ARRAY_SUPPORT &&
  12029. typeof Uint8Array.prototype.indexOf === 'function') {
  12030. if (dir) {
  12031. return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
  12032. } else {
  12033. return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
  12034. }
  12035. }
  12036. return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
  12037. }
  12038. throw new TypeError('val must be string, number or Buffer')
  12039. }
  12040. function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
  12041. var indexSize = 1
  12042. var arrLength = arr.length
  12043. var valLength = val.length
  12044. if (encoding !== undefined) {
  12045. encoding = String(encoding).toLowerCase()
  12046. if (encoding === 'ucs2' || encoding === 'ucs-2' ||
  12047. encoding === 'utf16le' || encoding === 'utf-16le') {
  12048. if (arr.length < 2 || val.length < 2) {
  12049. return -1
  12050. }
  12051. indexSize = 2
  12052. arrLength /= 2
  12053. valLength /= 2
  12054. byteOffset /= 2
  12055. }
  12056. }
  12057. function read (buf, i) {
  12058. if (indexSize === 1) {
  12059. return buf[i]
  12060. } else {
  12061. return buf.readUInt16BE(i * indexSize)
  12062. }
  12063. }
  12064. var i
  12065. if (dir) {
  12066. var foundIndex = -1
  12067. for (i = byteOffset; i < arrLength; i++) {
  12068. if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
  12069. if (foundIndex === -1) foundIndex = i
  12070. if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
  12071. } else {
  12072. if (foundIndex !== -1) i -= i - foundIndex
  12073. foundIndex = -1
  12074. }
  12075. }
  12076. } else {
  12077. if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
  12078. for (i = byteOffset; i >= 0; i--) {
  12079. var found = true
  12080. for (var j = 0; j < valLength; j++) {
  12081. if (read(arr, i + j) !== read(val, j)) {
  12082. found = false
  12083. break
  12084. }
  12085. }
  12086. if (found) return i
  12087. }
  12088. }
  12089. return -1
  12090. }
  12091. Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
  12092. return this.indexOf(val, byteOffset, encoding) !== -1
  12093. }
  12094. Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
  12095. return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
  12096. }
  12097. Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
  12098. return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
  12099. }
  12100. function hexWrite (buf, string, offset, length) {
  12101. offset = Number(offset) || 0
  12102. var remaining = buf.length - offset
  12103. if (!length) {
  12104. length = remaining
  12105. } else {
  12106. length = Number(length)
  12107. if (length > remaining) {
  12108. length = remaining
  12109. }
  12110. }
  12111. // must be an even number of digits
  12112. var strLen = string.length
  12113. if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
  12114. if (length > strLen / 2) {
  12115. length = strLen / 2
  12116. }
  12117. for (var i = 0; i < length; ++i) {
  12118. var parsed = parseInt(string.substr(i * 2, 2), 16)
  12119. if (isNaN(parsed)) return i
  12120. buf[offset + i] = parsed
  12121. }
  12122. return i
  12123. }
  12124. function utf8Write (buf, string, offset, length) {
  12125. return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
  12126. }
  12127. function asciiWrite (buf, string, offset, length) {
  12128. return blitBuffer(asciiToBytes(string), buf, offset, length)
  12129. }
  12130. function latin1Write (buf, string, offset, length) {
  12131. return asciiWrite(buf, string, offset, length)
  12132. }
  12133. function base64Write (buf, string, offset, length) {
  12134. return blitBuffer(base64ToBytes(string), buf, offset, length)
  12135. }
  12136. function ucs2Write (buf, string, offset, length) {
  12137. return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
  12138. }
  12139. Buffer.prototype.write = function write (string, offset, length, encoding) {
  12140. // Buffer#write(string)
  12141. if (offset === undefined) {
  12142. encoding = 'utf8'
  12143. length = this.length
  12144. offset = 0
  12145. // Buffer#write(string, encoding)
  12146. } else if (length === undefined && typeof offset === 'string') {
  12147. encoding = offset
  12148. length = this.length
  12149. offset = 0
  12150. // Buffer#write(string, offset[, length][, encoding])
  12151. } else if (isFinite(offset)) {
  12152. offset = offset | 0
  12153. if (isFinite(length)) {
  12154. length = length | 0
  12155. if (encoding === undefined) encoding = 'utf8'
  12156. } else {
  12157. encoding = length
  12158. length = undefined
  12159. }
  12160. // legacy write(string, encoding, offset, length) - remove in v0.13
  12161. } else {
  12162. throw new Error(
  12163. 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
  12164. )
  12165. }
  12166. var remaining = this.length - offset
  12167. if (length === undefined || length > remaining) length = remaining
  12168. if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
  12169. throw new RangeError('Attempt to write outside buffer bounds')
  12170. }
  12171. if (!encoding) encoding = 'utf8'
  12172. var loweredCase = false
  12173. for (;;) {
  12174. switch (encoding) {
  12175. case 'hex':
  12176. return hexWrite(this, string, offset, length)
  12177. case 'utf8':
  12178. case 'utf-8':
  12179. return utf8Write(this, string, offset, length)
  12180. case 'ascii':
  12181. return asciiWrite(this, string, offset, length)
  12182. case 'latin1':
  12183. case 'binary':
  12184. return latin1Write(this, string, offset, length)
  12185. case 'base64':
  12186. // Warning: maxLength not taken into account in base64Write
  12187. return base64Write(this, string, offset, length)
  12188. case 'ucs2':
  12189. case 'ucs-2':
  12190. case 'utf16le':
  12191. case 'utf-16le':
  12192. return ucs2Write(this, string, offset, length)
  12193. default:
  12194. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  12195. encoding = ('' + encoding).toLowerCase()
  12196. loweredCase = true
  12197. }
  12198. }
  12199. }
  12200. Buffer.prototype.toJSON = function toJSON () {
  12201. return {
  12202. type: 'Buffer',
  12203. data: Array.prototype.slice.call(this._arr || this, 0)
  12204. }
  12205. }
  12206. function base64Slice (buf, start, end) {
  12207. if (start === 0 && end === buf.length) {
  12208. return base64.fromByteArray(buf)
  12209. } else {
  12210. return base64.fromByteArray(buf.slice(start, end))
  12211. }
  12212. }
  12213. function utf8Slice (buf, start, end) {
  12214. end = Math.min(buf.length, end)
  12215. var res = []
  12216. var i = start
  12217. while (i < end) {
  12218. var firstByte = buf[i]
  12219. var codePoint = null
  12220. var bytesPerSequence = (firstByte > 0xEF) ? 4
  12221. : (firstByte > 0xDF) ? 3
  12222. : (firstByte > 0xBF) ? 2
  12223. : 1
  12224. if (i + bytesPerSequence <= end) {
  12225. var secondByte, thirdByte, fourthByte, tempCodePoint
  12226. switch (bytesPerSequence) {
  12227. case 1:
  12228. if (firstByte < 0x80) {
  12229. codePoint = firstByte
  12230. }
  12231. break
  12232. case 2:
  12233. secondByte = buf[i + 1]
  12234. if ((secondByte & 0xC0) === 0x80) {
  12235. tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
  12236. if (tempCodePoint > 0x7F) {
  12237. codePoint = tempCodePoint
  12238. }
  12239. }
  12240. break
  12241. case 3:
  12242. secondByte = buf[i + 1]
  12243. thirdByte = buf[i + 2]
  12244. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
  12245. tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
  12246. if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
  12247. codePoint = tempCodePoint
  12248. }
  12249. }
  12250. break
  12251. case 4:
  12252. secondByte = buf[i + 1]
  12253. thirdByte = buf[i + 2]
  12254. fourthByte = buf[i + 3]
  12255. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
  12256. tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
  12257. if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
  12258. codePoint = tempCodePoint
  12259. }
  12260. }
  12261. }
  12262. }
  12263. if (codePoint === null) {
  12264. // we did not generate a valid codePoint so insert a
  12265. // replacement char (U+FFFD) and advance only 1 byte
  12266. codePoint = 0xFFFD
  12267. bytesPerSequence = 1
  12268. } else if (codePoint > 0xFFFF) {
  12269. // encode to utf16 (surrogate pair dance)
  12270. codePoint -= 0x10000
  12271. res.push(codePoint >>> 10 & 0x3FF | 0xD800)
  12272. codePoint = 0xDC00 | codePoint & 0x3FF
  12273. }
  12274. res.push(codePoint)
  12275. i += bytesPerSequence
  12276. }
  12277. return decodeCodePointsArray(res)
  12278. }
  12279. // Based on http://stackoverflow.com/a/22747272/680742, the browser with
  12280. // the lowest limit is Chrome, with 0x10000 args.
  12281. // We go 1 magnitude less, for safety
  12282. var MAX_ARGUMENTS_LENGTH = 0x1000
  12283. function decodeCodePointsArray (codePoints) {
  12284. var len = codePoints.length
  12285. if (len <= MAX_ARGUMENTS_LENGTH) {
  12286. return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
  12287. }
  12288. // Decode in chunks to avoid "call stack size exceeded".
  12289. var res = ''
  12290. var i = 0
  12291. while (i < len) {
  12292. res += String.fromCharCode.apply(
  12293. String,
  12294. codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
  12295. )
  12296. }
  12297. return res
  12298. }
  12299. function asciiSlice (buf, start, end) {
  12300. var ret = ''
  12301. end = Math.min(buf.length, end)
  12302. for (var i = start; i < end; ++i) {
  12303. ret += String.fromCharCode(buf[i] & 0x7F)
  12304. }
  12305. return ret
  12306. }
  12307. function latin1Slice (buf, start, end) {
  12308. var ret = ''
  12309. end = Math.min(buf.length, end)
  12310. for (var i = start; i < end; ++i) {
  12311. ret += String.fromCharCode(buf[i])
  12312. }
  12313. return ret
  12314. }
  12315. function hexSlice (buf, start, end) {
  12316. var len = buf.length
  12317. if (!start || start < 0) start = 0
  12318. if (!end || end < 0 || end > len) end = len
  12319. var out = ''
  12320. for (var i = start; i < end; ++i) {
  12321. out += toHex(buf[i])
  12322. }
  12323. return out
  12324. }
  12325. function utf16leSlice (buf, start, end) {
  12326. var bytes = buf.slice(start, end)
  12327. var res = ''
  12328. for (var i = 0; i < bytes.length; i += 2) {
  12329. res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
  12330. }
  12331. return res
  12332. }
  12333. Buffer.prototype.slice = function slice (start, end) {
  12334. var len = this.length
  12335. start = ~~start
  12336. end = end === undefined ? len : ~~end
  12337. if (start < 0) {
  12338. start += len
  12339. if (start < 0) start = 0
  12340. } else if (start > len) {
  12341. start = len
  12342. }
  12343. if (end < 0) {
  12344. end += len
  12345. if (end < 0) end = 0
  12346. } else if (end > len) {
  12347. end = len
  12348. }
  12349. if (end < start) end = start
  12350. var newBuf
  12351. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12352. newBuf = this.subarray(start, end)
  12353. newBuf.__proto__ = Buffer.prototype
  12354. } else {
  12355. var sliceLen = end - start
  12356. newBuf = new Buffer(sliceLen, undefined)
  12357. for (var i = 0; i < sliceLen; ++i) {
  12358. newBuf[i] = this[i + start]
  12359. }
  12360. }
  12361. return newBuf
  12362. }
  12363. /*
  12364. * Need to make sure that buffer isn't trying to write out of bounds.
  12365. */
  12366. function checkOffset (offset, ext, length) {
  12367. if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
  12368. if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
  12369. }
  12370. Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
  12371. offset = offset | 0
  12372. byteLength = byteLength | 0
  12373. if (!noAssert) checkOffset(offset, byteLength, this.length)
  12374. var val = this[offset]
  12375. var mul = 1
  12376. var i = 0
  12377. while (++i < byteLength && (mul *= 0x100)) {
  12378. val += this[offset + i] * mul
  12379. }
  12380. return val
  12381. }
  12382. Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
  12383. offset = offset | 0
  12384. byteLength = byteLength | 0
  12385. if (!noAssert) {
  12386. checkOffset(offset, byteLength, this.length)
  12387. }
  12388. var val = this[offset + --byteLength]
  12389. var mul = 1
  12390. while (byteLength > 0 && (mul *= 0x100)) {
  12391. val += this[offset + --byteLength] * mul
  12392. }
  12393. return val
  12394. }
  12395. Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
  12396. if (!noAssert) checkOffset(offset, 1, this.length)
  12397. return this[offset]
  12398. }
  12399. Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  12400. if (!noAssert) checkOffset(offset, 2, this.length)
  12401. return this[offset] | (this[offset + 1] << 8)
  12402. }
  12403. Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  12404. if (!noAssert) checkOffset(offset, 2, this.length)
  12405. return (this[offset] << 8) | this[offset + 1]
  12406. }
  12407. Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  12408. if (!noAssert) checkOffset(offset, 4, this.length)
  12409. return ((this[offset]) |
  12410. (this[offset + 1] << 8) |
  12411. (this[offset + 2] << 16)) +
  12412. (this[offset + 3] * 0x1000000)
  12413. }
  12414. Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
  12415. if (!noAssert) checkOffset(offset, 4, this.length)
  12416. return (this[offset] * 0x1000000) +
  12417. ((this[offset + 1] << 16) |
  12418. (this[offset + 2] << 8) |
  12419. this[offset + 3])
  12420. }
  12421. Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
  12422. offset = offset | 0
  12423. byteLength = byteLength | 0
  12424. if (!noAssert) checkOffset(offset, byteLength, this.length)
  12425. var val = this[offset]
  12426. var mul = 1
  12427. var i = 0
  12428. while (++i < byteLength && (mul *= 0x100)) {
  12429. val += this[offset + i] * mul
  12430. }
  12431. mul *= 0x80
  12432. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  12433. return val
  12434. }
  12435. Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
  12436. offset = offset | 0
  12437. byteLength = byteLength | 0
  12438. if (!noAssert) checkOffset(offset, byteLength, this.length)
  12439. var i = byteLength
  12440. var mul = 1
  12441. var val = this[offset + --i]
  12442. while (i > 0 && (mul *= 0x100)) {
  12443. val += this[offset + --i] * mul
  12444. }
  12445. mul *= 0x80
  12446. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  12447. return val
  12448. }
  12449. Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
  12450. if (!noAssert) checkOffset(offset, 1, this.length)
  12451. if (!(this[offset] & 0x80)) return (this[offset])
  12452. return ((0xff - this[offset] + 1) * -1)
  12453. }
  12454. Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
  12455. if (!noAssert) checkOffset(offset, 2, this.length)
  12456. var val = this[offset] | (this[offset + 1] << 8)
  12457. return (val & 0x8000) ? val | 0xFFFF0000 : val
  12458. }
  12459. Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
  12460. if (!noAssert) checkOffset(offset, 2, this.length)
  12461. var val = this[offset + 1] | (this[offset] << 8)
  12462. return (val & 0x8000) ? val | 0xFFFF0000 : val
  12463. }
  12464. Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
  12465. if (!noAssert) checkOffset(offset, 4, this.length)
  12466. return (this[offset]) |
  12467. (this[offset + 1] << 8) |
  12468. (this[offset + 2] << 16) |
  12469. (this[offset + 3] << 24)
  12470. }
  12471. Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
  12472. if (!noAssert) checkOffset(offset, 4, this.length)
  12473. return (this[offset] << 24) |
  12474. (this[offset + 1] << 16) |
  12475. (this[offset + 2] << 8) |
  12476. (this[offset + 3])
  12477. }
  12478. Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  12479. if (!noAssert) checkOffset(offset, 4, this.length)
  12480. return ieee754.read(this, offset, true, 23, 4)
  12481. }
  12482. Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  12483. if (!noAssert) checkOffset(offset, 4, this.length)
  12484. return ieee754.read(this, offset, false, 23, 4)
  12485. }
  12486. Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  12487. if (!noAssert) checkOffset(offset, 8, this.length)
  12488. return ieee754.read(this, offset, true, 52, 8)
  12489. }
  12490. Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  12491. if (!noAssert) checkOffset(offset, 8, this.length)
  12492. return ieee754.read(this, offset, false, 52, 8)
  12493. }
  12494. function checkInt (buf, value, offset, ext, max, min) {
  12495. if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
  12496. if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
  12497. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  12498. }
  12499. Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
  12500. value = +value
  12501. offset = offset | 0
  12502. byteLength = byteLength | 0
  12503. if (!noAssert) {
  12504. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  12505. checkInt(this, value, offset, byteLength, maxBytes, 0)
  12506. }
  12507. var mul = 1
  12508. var i = 0
  12509. this[offset] = value & 0xFF
  12510. while (++i < byteLength && (mul *= 0x100)) {
  12511. this[offset + i] = (value / mul) & 0xFF
  12512. }
  12513. return offset + byteLength
  12514. }
  12515. Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
  12516. value = +value
  12517. offset = offset | 0
  12518. byteLength = byteLength | 0
  12519. if (!noAssert) {
  12520. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  12521. checkInt(this, value, offset, byteLength, maxBytes, 0)
  12522. }
  12523. var i = byteLength - 1
  12524. var mul = 1
  12525. this[offset + i] = value & 0xFF
  12526. while (--i >= 0 && (mul *= 0x100)) {
  12527. this[offset + i] = (value / mul) & 0xFF
  12528. }
  12529. return offset + byteLength
  12530. }
  12531. Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
  12532. value = +value
  12533. offset = offset | 0
  12534. if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
  12535. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  12536. this[offset] = (value & 0xff)
  12537. return offset + 1
  12538. }
  12539. function objectWriteUInt16 (buf, value, offset, littleEndian) {
  12540. if (value < 0) value = 0xffff + value + 1
  12541. for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
  12542. buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
  12543. (littleEndian ? i : 1 - i) * 8
  12544. }
  12545. }
  12546. Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  12547. value = +value
  12548. offset = offset | 0
  12549. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  12550. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12551. this[offset] = (value & 0xff)
  12552. this[offset + 1] = (value >>> 8)
  12553. } else {
  12554. objectWriteUInt16(this, value, offset, true)
  12555. }
  12556. return offset + 2
  12557. }
  12558. Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
  12559. value = +value
  12560. offset = offset | 0
  12561. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  12562. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12563. this[offset] = (value >>> 8)
  12564. this[offset + 1] = (value & 0xff)
  12565. } else {
  12566. objectWriteUInt16(this, value, offset, false)
  12567. }
  12568. return offset + 2
  12569. }
  12570. function objectWriteUInt32 (buf, value, offset, littleEndian) {
  12571. if (value < 0) value = 0xffffffff + value + 1
  12572. for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
  12573. buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  12574. }
  12575. }
  12576. Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  12577. value = +value
  12578. offset = offset | 0
  12579. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  12580. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12581. this[offset + 3] = (value >>> 24)
  12582. this[offset + 2] = (value >>> 16)
  12583. this[offset + 1] = (value >>> 8)
  12584. this[offset] = (value & 0xff)
  12585. } else {
  12586. objectWriteUInt32(this, value, offset, true)
  12587. }
  12588. return offset + 4
  12589. }
  12590. Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
  12591. value = +value
  12592. offset = offset | 0
  12593. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  12594. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12595. this[offset] = (value >>> 24)
  12596. this[offset + 1] = (value >>> 16)
  12597. this[offset + 2] = (value >>> 8)
  12598. this[offset + 3] = (value & 0xff)
  12599. } else {
  12600. objectWriteUInt32(this, value, offset, false)
  12601. }
  12602. return offset + 4
  12603. }
  12604. Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
  12605. value = +value
  12606. offset = offset | 0
  12607. if (!noAssert) {
  12608. var limit = Math.pow(2, 8 * byteLength - 1)
  12609. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  12610. }
  12611. var i = 0
  12612. var mul = 1
  12613. var sub = 0
  12614. this[offset] = value & 0xFF
  12615. while (++i < byteLength && (mul *= 0x100)) {
  12616. if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
  12617. sub = 1
  12618. }
  12619. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  12620. }
  12621. return offset + byteLength
  12622. }
  12623. Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
  12624. value = +value
  12625. offset = offset | 0
  12626. if (!noAssert) {
  12627. var limit = Math.pow(2, 8 * byteLength - 1)
  12628. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  12629. }
  12630. var i = byteLength - 1
  12631. var mul = 1
  12632. var sub = 0
  12633. this[offset + i] = value & 0xFF
  12634. while (--i >= 0 && (mul *= 0x100)) {
  12635. if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
  12636. sub = 1
  12637. }
  12638. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  12639. }
  12640. return offset + byteLength
  12641. }
  12642. Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
  12643. value = +value
  12644. offset = offset | 0
  12645. if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
  12646. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  12647. if (value < 0) value = 0xff + value + 1
  12648. this[offset] = (value & 0xff)
  12649. return offset + 1
  12650. }
  12651. Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
  12652. value = +value
  12653. offset = offset | 0
  12654. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  12655. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12656. this[offset] = (value & 0xff)
  12657. this[offset + 1] = (value >>> 8)
  12658. } else {
  12659. objectWriteUInt16(this, value, offset, true)
  12660. }
  12661. return offset + 2
  12662. }
  12663. Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
  12664. value = +value
  12665. offset = offset | 0
  12666. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  12667. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12668. this[offset] = (value >>> 8)
  12669. this[offset + 1] = (value & 0xff)
  12670. } else {
  12671. objectWriteUInt16(this, value, offset, false)
  12672. }
  12673. return offset + 2
  12674. }
  12675. Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
  12676. value = +value
  12677. offset = offset | 0
  12678. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  12679. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12680. this[offset] = (value & 0xff)
  12681. this[offset + 1] = (value >>> 8)
  12682. this[offset + 2] = (value >>> 16)
  12683. this[offset + 3] = (value >>> 24)
  12684. } else {
  12685. objectWriteUInt32(this, value, offset, true)
  12686. }
  12687. return offset + 4
  12688. }
  12689. Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
  12690. value = +value
  12691. offset = offset | 0
  12692. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  12693. if (value < 0) value = 0xffffffff + value + 1
  12694. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12695. this[offset] = (value >>> 24)
  12696. this[offset + 1] = (value >>> 16)
  12697. this[offset + 2] = (value >>> 8)
  12698. this[offset + 3] = (value & 0xff)
  12699. } else {
  12700. objectWriteUInt32(this, value, offset, false)
  12701. }
  12702. return offset + 4
  12703. }
  12704. function checkIEEE754 (buf, value, offset, ext, max, min) {
  12705. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  12706. if (offset < 0) throw new RangeError('Index out of range')
  12707. }
  12708. function writeFloat (buf, value, offset, littleEndian, noAssert) {
  12709. if (!noAssert) {
  12710. checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
  12711. }
  12712. ieee754.write(buf, value, offset, littleEndian, 23, 4)
  12713. return offset + 4
  12714. }
  12715. Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
  12716. return writeFloat(this, value, offset, true, noAssert)
  12717. }
  12718. Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
  12719. return writeFloat(this, value, offset, false, noAssert)
  12720. }
  12721. function writeDouble (buf, value, offset, littleEndian, noAssert) {
  12722. if (!noAssert) {
  12723. checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
  12724. }
  12725. ieee754.write(buf, value, offset, littleEndian, 52, 8)
  12726. return offset + 8
  12727. }
  12728. Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
  12729. return writeDouble(this, value, offset, true, noAssert)
  12730. }
  12731. Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
  12732. return writeDouble(this, value, offset, false, noAssert)
  12733. }
  12734. // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
  12735. Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  12736. if (!start) start = 0
  12737. if (!end && end !== 0) end = this.length
  12738. if (targetStart >= target.length) targetStart = target.length
  12739. if (!targetStart) targetStart = 0
  12740. if (end > 0 && end < start) end = start
  12741. // Copy 0 bytes; we're done
  12742. if (end === start) return 0
  12743. if (target.length === 0 || this.length === 0) return 0
  12744. // Fatal error conditions
  12745. if (targetStart < 0) {
  12746. throw new RangeError('targetStart out of bounds')
  12747. }
  12748. if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
  12749. if (end < 0) throw new RangeError('sourceEnd out of bounds')
  12750. // Are we oob?
  12751. if (end > this.length) end = this.length
  12752. if (target.length - targetStart < end - start) {
  12753. end = target.length - targetStart + start
  12754. }
  12755. var len = end - start
  12756. var i
  12757. if (this === target && start < targetStart && targetStart < end) {
  12758. // descending copy from end
  12759. for (i = len - 1; i >= 0; --i) {
  12760. target[i + targetStart] = this[i + start]
  12761. }
  12762. } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
  12763. // ascending copy from start
  12764. for (i = 0; i < len; ++i) {
  12765. target[i + targetStart] = this[i + start]
  12766. }
  12767. } else {
  12768. Uint8Array.prototype.set.call(
  12769. target,
  12770. this.subarray(start, start + len),
  12771. targetStart
  12772. )
  12773. }
  12774. return len
  12775. }
  12776. // Usage:
  12777. // buffer.fill(number[, offset[, end]])
  12778. // buffer.fill(buffer[, offset[, end]])
  12779. // buffer.fill(string[, offset[, end]][, encoding])
  12780. Buffer.prototype.fill = function fill (val, start, end, encoding) {
  12781. // Handle string cases:
  12782. if (typeof val === 'string') {
  12783. if (typeof start === 'string') {
  12784. encoding = start
  12785. start = 0
  12786. end = this.length
  12787. } else if (typeof end === 'string') {
  12788. encoding = end
  12789. end = this.length
  12790. }
  12791. if (val.length === 1) {
  12792. var code = val.charCodeAt(0)
  12793. if (code < 256) {
  12794. val = code
  12795. }
  12796. }
  12797. if (encoding !== undefined && typeof encoding !== 'string') {
  12798. throw new TypeError('encoding must be a string')
  12799. }
  12800. if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
  12801. throw new TypeError('Unknown encoding: ' + encoding)
  12802. }
  12803. } else if (typeof val === 'number') {
  12804. val = val & 255
  12805. }
  12806. // Invalid ranges are not set to a default, so can range check early.
  12807. if (start < 0 || this.length < start || this.length < end) {
  12808. throw new RangeError('Out of range index')
  12809. }
  12810. if (end <= start) {
  12811. return this
  12812. }
  12813. start = start >>> 0
  12814. end = end === undefined ? this.length : end >>> 0
  12815. if (!val) val = 0
  12816. var i
  12817. if (typeof val === 'number') {
  12818. for (i = start; i < end; ++i) {
  12819. this[i] = val
  12820. }
  12821. } else {
  12822. var bytes = Buffer.isBuffer(val)
  12823. ? val
  12824. : utf8ToBytes(new Buffer(val, encoding).toString())
  12825. var len = bytes.length
  12826. for (i = 0; i < end - start; ++i) {
  12827. this[i + start] = bytes[i % len]
  12828. }
  12829. }
  12830. return this
  12831. }
  12832. // HELPER FUNCTIONS
  12833. // ================
  12834. var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
  12835. function base64clean (str) {
  12836. // Node strips out invalid characters like \n and \t from the string, base64-js does not
  12837. str = stringtrim(str).replace(INVALID_BASE64_RE, '')
  12838. // Node converts strings with length < 2 to ''
  12839. if (str.length < 2) return ''
  12840. // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
  12841. while (str.length % 4 !== 0) {
  12842. str = str + '='
  12843. }
  12844. return str
  12845. }
  12846. function stringtrim (str) {
  12847. if (str.trim) return str.trim()
  12848. return str.replace(/^\s+|\s+$/g, '')
  12849. }
  12850. function toHex (n) {
  12851. if (n < 16) return '0' + n.toString(16)
  12852. return n.toString(16)
  12853. }
  12854. function utf8ToBytes (string, units) {
  12855. units = units || Infinity
  12856. var codePoint
  12857. var length = string.length
  12858. var leadSurrogate = null
  12859. var bytes = []
  12860. for (var i = 0; i < length; ++i) {
  12861. codePoint = string.charCodeAt(i)
  12862. // is surrogate component
  12863. if (codePoint > 0xD7FF && codePoint < 0xE000) {
  12864. // last char was a lead
  12865. if (!leadSurrogate) {
  12866. // no lead yet
  12867. if (codePoint > 0xDBFF) {
  12868. // unexpected trail
  12869. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  12870. continue
  12871. } else if (i + 1 === length) {
  12872. // unpaired lead
  12873. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  12874. continue
  12875. }
  12876. // valid lead
  12877. leadSurrogate = codePoint
  12878. continue
  12879. }
  12880. // 2 leads in a row
  12881. if (codePoint < 0xDC00) {
  12882. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  12883. leadSurrogate = codePoint
  12884. continue
  12885. }
  12886. // valid surrogate pair
  12887. codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
  12888. } else if (leadSurrogate) {
  12889. // valid bmp char, but last char was a lead
  12890. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  12891. }
  12892. leadSurrogate = null
  12893. // encode utf8
  12894. if (codePoint < 0x80) {
  12895. if ((units -= 1) < 0) break
  12896. bytes.push(codePoint)
  12897. } else if (codePoint < 0x800) {
  12898. if ((units -= 2) < 0) break
  12899. bytes.push(
  12900. codePoint >> 0x6 | 0xC0,
  12901. codePoint & 0x3F | 0x80
  12902. )
  12903. } else if (codePoint < 0x10000) {
  12904. if ((units -= 3) < 0) break
  12905. bytes.push(
  12906. codePoint >> 0xC | 0xE0,
  12907. codePoint >> 0x6 & 0x3F | 0x80,
  12908. codePoint & 0x3F | 0x80
  12909. )
  12910. } else if (codePoint < 0x110000) {
  12911. if ((units -= 4) < 0) break
  12912. bytes.push(
  12913. codePoint >> 0x12 | 0xF0,
  12914. codePoint >> 0xC & 0x3F | 0x80,
  12915. codePoint >> 0x6 & 0x3F | 0x80,
  12916. codePoint & 0x3F | 0x80
  12917. )
  12918. } else {
  12919. throw new Error('Invalid code point')
  12920. }
  12921. }
  12922. return bytes
  12923. }
  12924. function asciiToBytes (str) {
  12925. var byteArray = []
  12926. for (var i = 0; i < str.length; ++i) {
  12927. // Node's code seems to be doing this and not & 0x7F..
  12928. byteArray.push(str.charCodeAt(i) & 0xFF)
  12929. }
  12930. return byteArray
  12931. }
  12932. function utf16leToBytes (str, units) {
  12933. var c, hi, lo
  12934. var byteArray = []
  12935. for (var i = 0; i < str.length; ++i) {
  12936. if ((units -= 2) < 0) break
  12937. c = str.charCodeAt(i)
  12938. hi = c >> 8
  12939. lo = c % 256
  12940. byteArray.push(lo)
  12941. byteArray.push(hi)
  12942. }
  12943. return byteArray
  12944. }
  12945. function base64ToBytes (str) {
  12946. return base64.toByteArray(base64clean(str))
  12947. }
  12948. function blitBuffer (src, dst, offset, length) {
  12949. for (var i = 0; i < length; ++i) {
  12950. if ((i + offset >= dst.length) || (i >= src.length)) break
  12951. dst[i + offset] = src[i]
  12952. }
  12953. return i
  12954. }
  12955. function isnan (val) {
  12956. return val !== val // eslint-disable-line no-self-compare
  12957. }
  12958. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 3)))
  12959. /***/ }),
  12960. /* 57 */
  12961. /*!*****************************************!*\
  12962. !*** ./node_modules/base64-js/index.js ***!
  12963. \*****************************************/
  12964. /*! no static exports found */
  12965. /***/ (function(module, exports, __webpack_require__) {
  12966. "use strict";
  12967. exports.byteLength = byteLength
  12968. exports.toByteArray = toByteArray
  12969. exports.fromByteArray = fromByteArray
  12970. var lookup = []
  12971. var revLookup = []
  12972. var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
  12973. var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  12974. for (var i = 0, len = code.length; i < len; ++i) {
  12975. lookup[i] = code[i]
  12976. revLookup[code.charCodeAt(i)] = i
  12977. }
  12978. // Support decoding URL-safe base64 strings, as Node.js does.
  12979. // See: https://en.wikipedia.org/wiki/Base64#URL_applications
  12980. revLookup['-'.charCodeAt(0)] = 62
  12981. revLookup['_'.charCodeAt(0)] = 63
  12982. function getLens (b64) {
  12983. var len = b64.length
  12984. if (len % 4 > 0) {
  12985. throw new Error('Invalid string. Length must be a multiple of 4')
  12986. }
  12987. // Trim off extra bytes after placeholder bytes are found
  12988. // See: https://github.com/beatgammit/base64-js/issues/42
  12989. var validLen = b64.indexOf('=')
  12990. if (validLen === -1) validLen = len
  12991. var placeHoldersLen = validLen === len
  12992. ? 0
  12993. : 4 - (validLen % 4)
  12994. return [validLen, placeHoldersLen]
  12995. }
  12996. // base64 is 4/3 + up to two characters of the original data
  12997. function byteLength (b64) {
  12998. var lens = getLens(b64)
  12999. var validLen = lens[0]
  13000. var placeHoldersLen = lens[1]
  13001. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  13002. }
  13003. function _byteLength (b64, validLen, placeHoldersLen) {
  13004. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  13005. }
  13006. function toByteArray (b64) {
  13007. var tmp
  13008. var lens = getLens(b64)
  13009. var validLen = lens[0]
  13010. var placeHoldersLen = lens[1]
  13011. var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
  13012. var curByte = 0
  13013. // if there are placeholders, only get up to the last complete 4 chars
  13014. var len = placeHoldersLen > 0
  13015. ? validLen - 4
  13016. : validLen
  13017. var i
  13018. for (i = 0; i < len; i += 4) {
  13019. tmp =
  13020. (revLookup[b64.charCodeAt(i)] << 18) |
  13021. (revLookup[b64.charCodeAt(i + 1)] << 12) |
  13022. (revLookup[b64.charCodeAt(i + 2)] << 6) |
  13023. revLookup[b64.charCodeAt(i + 3)]
  13024. arr[curByte++] = (tmp >> 16) & 0xFF
  13025. arr[curByte++] = (tmp >> 8) & 0xFF
  13026. arr[curByte++] = tmp & 0xFF
  13027. }
  13028. if (placeHoldersLen === 2) {
  13029. tmp =
  13030. (revLookup[b64.charCodeAt(i)] << 2) |
  13031. (revLookup[b64.charCodeAt(i + 1)] >> 4)
  13032. arr[curByte++] = tmp & 0xFF
  13033. }
  13034. if (placeHoldersLen === 1) {
  13035. tmp =
  13036. (revLookup[b64.charCodeAt(i)] << 10) |
  13037. (revLookup[b64.charCodeAt(i + 1)] << 4) |
  13038. (revLookup[b64.charCodeAt(i + 2)] >> 2)
  13039. arr[curByte++] = (tmp >> 8) & 0xFF
  13040. arr[curByte++] = tmp & 0xFF
  13041. }
  13042. return arr
  13043. }
  13044. function tripletToBase64 (num) {
  13045. return lookup[num >> 18 & 0x3F] +
  13046. lookup[num >> 12 & 0x3F] +
  13047. lookup[num >> 6 & 0x3F] +
  13048. lookup[num & 0x3F]
  13049. }
  13050. function encodeChunk (uint8, start, end) {
  13051. var tmp
  13052. var output = []
  13053. for (var i = start; i < end; i += 3) {
  13054. tmp =
  13055. ((uint8[i] << 16) & 0xFF0000) +
  13056. ((uint8[i + 1] << 8) & 0xFF00) +
  13057. (uint8[i + 2] & 0xFF)
  13058. output.push(tripletToBase64(tmp))
  13059. }
  13060. return output.join('')
  13061. }
  13062. function fromByteArray (uint8) {
  13063. var tmp
  13064. var len = uint8.length
  13065. var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
  13066. var parts = []
  13067. var maxChunkLength = 16383 // must be multiple of 3
  13068. // go through the array every three bytes, we'll deal with trailing stuff later
  13069. for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
  13070. parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
  13071. }
  13072. // pad the end with zeros, but make sure to not forget the extra bytes
  13073. if (extraBytes === 1) {
  13074. tmp = uint8[len - 1]
  13075. parts.push(
  13076. lookup[tmp >> 2] +
  13077. lookup[(tmp << 4) & 0x3F] +
  13078. '=='
  13079. )
  13080. } else if (extraBytes === 2) {
  13081. tmp = (uint8[len - 2] << 8) + uint8[len - 1]
  13082. parts.push(
  13083. lookup[tmp >> 10] +
  13084. lookup[(tmp >> 4) & 0x3F] +
  13085. lookup[(tmp << 2) & 0x3F] +
  13086. '='
  13087. )
  13088. }
  13089. return parts.join('')
  13090. }
  13091. /***/ }),
  13092. /* 58 */
  13093. /*!***************************************!*\
  13094. !*** ./node_modules/ieee754/index.js ***!
  13095. \***************************************/
  13096. /*! no static exports found */
  13097. /***/ (function(module, exports) {
  13098. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  13099. exports.read = function (buffer, offset, isLE, mLen, nBytes) {
  13100. var e, m
  13101. var eLen = (nBytes * 8) - mLen - 1
  13102. var eMax = (1 << eLen) - 1
  13103. var eBias = eMax >> 1
  13104. var nBits = -7
  13105. var i = isLE ? (nBytes - 1) : 0
  13106. var d = isLE ? -1 : 1
  13107. var s = buffer[offset + i]
  13108. i += d
  13109. e = s & ((1 << (-nBits)) - 1)
  13110. s >>= (-nBits)
  13111. nBits += eLen
  13112. for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  13113. m = e & ((1 << (-nBits)) - 1)
  13114. e >>= (-nBits)
  13115. nBits += mLen
  13116. for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  13117. if (e === 0) {
  13118. e = 1 - eBias
  13119. } else if (e === eMax) {
  13120. return m ? NaN : ((s ? -1 : 1) * Infinity)
  13121. } else {
  13122. m = m + Math.pow(2, mLen)
  13123. e = e - eBias
  13124. }
  13125. return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
  13126. }
  13127. exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
  13128. var e, m, c
  13129. var eLen = (nBytes * 8) - mLen - 1
  13130. var eMax = (1 << eLen) - 1
  13131. var eBias = eMax >> 1
  13132. var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
  13133. var i = isLE ? 0 : (nBytes - 1)
  13134. var d = isLE ? 1 : -1
  13135. var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
  13136. value = Math.abs(value)
  13137. if (isNaN(value) || value === Infinity) {
  13138. m = isNaN(value) ? 1 : 0
  13139. e = eMax
  13140. } else {
  13141. e = Math.floor(Math.log(value) / Math.LN2)
  13142. if (value * (c = Math.pow(2, -e)) < 1) {
  13143. e--
  13144. c *= 2
  13145. }
  13146. if (e + eBias >= 1) {
  13147. value += rt / c
  13148. } else {
  13149. value += rt * Math.pow(2, 1 - eBias)
  13150. }
  13151. if (value * c >= 2) {
  13152. e++
  13153. c /= 2
  13154. }
  13155. if (e + eBias >= eMax) {
  13156. m = 0
  13157. e = eMax
  13158. } else if (e + eBias >= 1) {
  13159. m = ((value * c) - 1) * Math.pow(2, mLen)
  13160. e = e + eBias
  13161. } else {
  13162. m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
  13163. e = 0
  13164. }
  13165. }
  13166. for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
  13167. e = (e << mLen) | m
  13168. eLen += mLen
  13169. for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
  13170. buffer[offset + i - d] |= s * 128
  13171. }
  13172. /***/ }),
  13173. /* 59 */
  13174. /*!***************************************!*\
  13175. !*** ./node_modules/isarray/index.js ***!
  13176. \***************************************/
  13177. /*! no static exports found */
  13178. /***/ (function(module, exports) {
  13179. var toString = {}.toString;
  13180. module.exports = Array.isArray || function (arr) {
  13181. return toString.call(arr) == '[object Array]';
  13182. };
  13183. /***/ }),
  13184. /* 60 */
  13185. /*!**********************************************************************************************!*\
  13186. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/util/route.js ***!
  13187. \**********************************************************************************************/
  13188. /*! no static exports found */
  13189. /***/ (function(module, exports, __webpack_require__) {
  13190. "use strict";
  13191. /* WEBPACK VAR INJECTION */(function(uni) {
  13192. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  13193. Object.defineProperty(exports, "__esModule", {
  13194. value: true
  13195. });
  13196. exports.default = void 0;
  13197. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 61));
  13198. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 63));
  13199. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  13200. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  13201. /**
  13202. * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
  13203. * 并且带有路由拦截功能
  13204. */
  13205. var Router = /*#__PURE__*/function () {
  13206. function Router() {
  13207. (0, _classCallCheck2.default)(this, Router);
  13208. // 原始属性定义
  13209. this.config = {
  13210. type: 'navigateTo',
  13211. url: '',
  13212. delta: 1,
  13213. // navigateBack页面后退时,回退的层数
  13214. params: {},
  13215. // 传递的参数
  13216. animationType: 'pop-in',
  13217. // 窗口动画,只在APP有效
  13218. animationDuration: 300,
  13219. // 窗口动画持续时间,单位毫秒,只在APP有效
  13220. intercept: false // 是否需要拦截
  13221. };
  13222. // 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
  13223. // 这里在构造函数中进行this绑定
  13224. this.route = this.route.bind(this);
  13225. }
  13226. // 判断url前面是否有"/",如果没有则加上,否则无法跳转
  13227. (0, _createClass2.default)(Router, [{
  13228. key: "addRootPath",
  13229. value: function addRootPath(url) {
  13230. return url[0] === '/' ? url : "/".concat(url);
  13231. }
  13232. // 整合路由参数
  13233. }, {
  13234. key: "mixinParam",
  13235. value: function mixinParam(url, params) {
  13236. url = url && this.addRootPath(url);
  13237. // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
  13238. // 如果有url中有get参数,转换后无需带上"?"
  13239. var query = '';
  13240. if (/.*\/.*\?.*=.*/.test(url)) {
  13241. // object对象转为get类型的参数
  13242. query = uni.$u.queryParams(params, false);
  13243. // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
  13244. return url += "&".concat(query);
  13245. }
  13246. // 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
  13247. query = uni.$u.queryParams(params);
  13248. return url += query;
  13249. }
  13250. // 对外的方法名称
  13251. }, {
  13252. key: "route",
  13253. value: function () {
  13254. var _route = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  13255. var options,
  13256. params,
  13257. mergeConfig,
  13258. isNext,
  13259. _args = arguments;
  13260. return _regenerator.default.wrap(function _callee$(_context) {
  13261. while (1) {
  13262. switch (_context.prev = _context.next) {
  13263. case 0:
  13264. options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
  13265. params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
  13266. // 合并用户的配置和内部的默认配置
  13267. mergeConfig = {};
  13268. if (typeof options === 'string') {
  13269. // 如果options为字符串,则为route(url, params)的形式
  13270. mergeConfig.url = this.mixinParam(options, params);
  13271. mergeConfig.type = 'navigateTo';
  13272. } else {
  13273. mergeConfig = uni.$u.deepMerge(this.config, options);
  13274. // 否则正常使用mergeConfig中的url和params进行拼接
  13275. mergeConfig.url = this.mixinParam(options.url, options.params);
  13276. }
  13277. // 如果本次跳转的路径和本页面路径一致,不执行跳转,防止用户快速点击跳转按钮,造成多次跳转同一个页面的问题
  13278. if (!(mergeConfig.url === uni.$u.page())) {
  13279. _context.next = 6;
  13280. break;
  13281. }
  13282. return _context.abrupt("return");
  13283. case 6:
  13284. if (params.intercept) {
  13285. this.config.intercept = params.intercept;
  13286. }
  13287. // params参数也带给拦截器
  13288. mergeConfig.params = params;
  13289. // 合并内外部参数
  13290. mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
  13291. // 判断用户是否定义了拦截器
  13292. if (!(typeof uni.$u.routeIntercept === 'function')) {
  13293. _context.next = 16;
  13294. break;
  13295. }
  13296. _context.next = 12;
  13297. return new Promise(function (resolve, reject) {
  13298. uni.$u.routeIntercept(mergeConfig, resolve);
  13299. });
  13300. case 12:
  13301. isNext = _context.sent;
  13302. // 如果isNext为true,则执行路由跳转
  13303. isNext && this.openPage(mergeConfig);
  13304. _context.next = 17;
  13305. break;
  13306. case 16:
  13307. this.openPage(mergeConfig);
  13308. case 17:
  13309. case "end":
  13310. return _context.stop();
  13311. }
  13312. }
  13313. }, _callee, this);
  13314. }));
  13315. function route() {
  13316. return _route.apply(this, arguments);
  13317. }
  13318. return route;
  13319. }() // 执行路由跳转
  13320. }, {
  13321. key: "openPage",
  13322. value: function openPage(config) {
  13323. // 解构参数
  13324. var url = config.url,
  13325. type = config.type,
  13326. delta = config.delta,
  13327. animationType = config.animationType,
  13328. animationDuration = config.animationDuration;
  13329. if (config.type == 'navigateTo' || config.type == 'to') {
  13330. uni.navigateTo({
  13331. url: url,
  13332. animationType: animationType,
  13333. animationDuration: animationDuration
  13334. });
  13335. }
  13336. if (config.type == 'redirectTo' || config.type == 'redirect') {
  13337. uni.redirectTo({
  13338. url: url
  13339. });
  13340. }
  13341. if (config.type == 'switchTab' || config.type == 'tab') {
  13342. uni.switchTab({
  13343. url: url
  13344. });
  13345. }
  13346. if (config.type == 'reLaunch' || config.type == 'launch') {
  13347. uni.reLaunch({
  13348. url: url
  13349. });
  13350. }
  13351. if (config.type == 'navigateBack' || config.type == 'back') {
  13352. uni.navigateBack({
  13353. delta: delta
  13354. });
  13355. }
  13356. }
  13357. }]);
  13358. return Router;
  13359. }();
  13360. var _default = new Router().route;
  13361. exports.default = _default;
  13362. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  13363. /***/ }),
  13364. /* 61 */
  13365. /*!************************************************************************************************!*\
  13366. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  13367. \************************************************************************************************/
  13368. /*! no static exports found */
  13369. /***/ (function(module, exports, __webpack_require__) {
  13370. // TODO(Babel 8): Remove this file.
  13371. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 62)();
  13372. module.exports = runtime;
  13373. /***/ }),
  13374. /* 62 */
  13375. /*!*******************************************************************!*\
  13376. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  13377. \*******************************************************************/
  13378. /*! no static exports found */
  13379. /***/ (function(module, exports, __webpack_require__) {
  13380. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  13381. function _regeneratorRuntime() {
  13382. "use strict";
  13383. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  13384. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  13385. return exports;
  13386. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  13387. var exports = {},
  13388. Op = Object.prototype,
  13389. hasOwn = Op.hasOwnProperty,
  13390. defineProperty = Object.defineProperty || function (obj, key, desc) {
  13391. obj[key] = desc.value;
  13392. },
  13393. $Symbol = "function" == typeof Symbol ? Symbol : {},
  13394. iteratorSymbol = $Symbol.iterator || "@@iterator",
  13395. asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
  13396. toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  13397. function define(obj, key, value) {
  13398. return Object.defineProperty(obj, key, {
  13399. value: value,
  13400. enumerable: !0,
  13401. configurable: !0,
  13402. writable: !0
  13403. }), obj[key];
  13404. }
  13405. try {
  13406. define({}, "");
  13407. } catch (err) {
  13408. define = function define(obj, key, value) {
  13409. return obj[key] = value;
  13410. };
  13411. }
  13412. function wrap(innerFn, outerFn, self, tryLocsList) {
  13413. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
  13414. generator = Object.create(protoGenerator.prototype),
  13415. context = new Context(tryLocsList || []);
  13416. return defineProperty(generator, "_invoke", {
  13417. value: makeInvokeMethod(innerFn, self, context)
  13418. }), generator;
  13419. }
  13420. function tryCatch(fn, obj, arg) {
  13421. try {
  13422. return {
  13423. type: "normal",
  13424. arg: fn.call(obj, arg)
  13425. };
  13426. } catch (err) {
  13427. return {
  13428. type: "throw",
  13429. arg: err
  13430. };
  13431. }
  13432. }
  13433. exports.wrap = wrap;
  13434. var ContinueSentinel = {};
  13435. function Generator() {}
  13436. function GeneratorFunction() {}
  13437. function GeneratorFunctionPrototype() {}
  13438. var IteratorPrototype = {};
  13439. define(IteratorPrototype, iteratorSymbol, function () {
  13440. return this;
  13441. });
  13442. var getProto = Object.getPrototypeOf,
  13443. NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  13444. NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
  13445. var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
  13446. function defineIteratorMethods(prototype) {
  13447. ["next", "throw", "return"].forEach(function (method) {
  13448. define(prototype, method, function (arg) {
  13449. return this._invoke(method, arg);
  13450. });
  13451. });
  13452. }
  13453. function AsyncIterator(generator, PromiseImpl) {
  13454. function invoke(method, arg, resolve, reject) {
  13455. var record = tryCatch(generator[method], generator, arg);
  13456. if ("throw" !== record.type) {
  13457. var result = record.arg,
  13458. value = result.value;
  13459. return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
  13460. invoke("next", value, resolve, reject);
  13461. }, function (err) {
  13462. invoke("throw", err, resolve, reject);
  13463. }) : PromiseImpl.resolve(value).then(function (unwrapped) {
  13464. result.value = unwrapped, resolve(result);
  13465. }, function (error) {
  13466. return invoke("throw", error, resolve, reject);
  13467. });
  13468. }
  13469. reject(record.arg);
  13470. }
  13471. var previousPromise;
  13472. defineProperty(this, "_invoke", {
  13473. value: function value(method, arg) {
  13474. function callInvokeWithMethodAndArg() {
  13475. return new PromiseImpl(function (resolve, reject) {
  13476. invoke(method, arg, resolve, reject);
  13477. });
  13478. }
  13479. return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  13480. }
  13481. });
  13482. }
  13483. function makeInvokeMethod(innerFn, self, context) {
  13484. var state = "suspendedStart";
  13485. return function (method, arg) {
  13486. if ("executing" === state) throw new Error("Generator is already running");
  13487. if ("completed" === state) {
  13488. if ("throw" === method) throw arg;
  13489. return doneResult();
  13490. }
  13491. for (context.method = method, context.arg = arg;;) {
  13492. var delegate = context.delegate;
  13493. if (delegate) {
  13494. var delegateResult = maybeInvokeDelegate(delegate, context);
  13495. if (delegateResult) {
  13496. if (delegateResult === ContinueSentinel) continue;
  13497. return delegateResult;
  13498. }
  13499. }
  13500. if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
  13501. if ("suspendedStart" === state) throw state = "completed", context.arg;
  13502. context.dispatchException(context.arg);
  13503. } else "return" === context.method && context.abrupt("return", context.arg);
  13504. state = "executing";
  13505. var record = tryCatch(innerFn, self, context);
  13506. if ("normal" === record.type) {
  13507. if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
  13508. return {
  13509. value: record.arg,
  13510. done: context.done
  13511. };
  13512. }
  13513. "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
  13514. }
  13515. };
  13516. }
  13517. function maybeInvokeDelegate(delegate, context) {
  13518. var methodName = context.method,
  13519. method = delegate.iterator[methodName];
  13520. if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
  13521. var record = tryCatch(method, delegate.iterator, context.arg);
  13522. if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
  13523. var info = record.arg;
  13524. return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
  13525. }
  13526. function pushTryEntry(locs) {
  13527. var entry = {
  13528. tryLoc: locs[0]
  13529. };
  13530. 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
  13531. }
  13532. function resetTryEntry(entry) {
  13533. var record = entry.completion || {};
  13534. record.type = "normal", delete record.arg, entry.completion = record;
  13535. }
  13536. function Context(tryLocsList) {
  13537. this.tryEntries = [{
  13538. tryLoc: "root"
  13539. }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
  13540. }
  13541. function values(iterable) {
  13542. if (iterable) {
  13543. var iteratorMethod = iterable[iteratorSymbol];
  13544. if (iteratorMethod) return iteratorMethod.call(iterable);
  13545. if ("function" == typeof iterable.next) return iterable;
  13546. if (!isNaN(iterable.length)) {
  13547. var i = -1,
  13548. next = function next() {
  13549. for (; ++i < iterable.length;) {
  13550. if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
  13551. }
  13552. return next.value = undefined, next.done = !0, next;
  13553. };
  13554. return next.next = next;
  13555. }
  13556. }
  13557. return {
  13558. next: doneResult
  13559. };
  13560. }
  13561. function doneResult() {
  13562. return {
  13563. value: undefined,
  13564. done: !0
  13565. };
  13566. }
  13567. return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
  13568. value: GeneratorFunctionPrototype,
  13569. configurable: !0
  13570. }), defineProperty(GeneratorFunctionPrototype, "constructor", {
  13571. value: GeneratorFunction,
  13572. configurable: !0
  13573. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
  13574. var ctor = "function" == typeof genFun && genFun.constructor;
  13575. return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
  13576. }, exports.mark = function (genFun) {
  13577. return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
  13578. }, exports.awrap = function (arg) {
  13579. return {
  13580. __await: arg
  13581. };
  13582. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
  13583. return this;
  13584. }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
  13585. void 0 === PromiseImpl && (PromiseImpl = Promise);
  13586. var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
  13587. return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
  13588. return result.done ? result.value : iter.next();
  13589. });
  13590. }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
  13591. return this;
  13592. }), define(Gp, "toString", function () {
  13593. return "[object Generator]";
  13594. }), exports.keys = function (val) {
  13595. var object = Object(val),
  13596. keys = [];
  13597. for (var key in object) {
  13598. keys.push(key);
  13599. }
  13600. return keys.reverse(), function next() {
  13601. for (; keys.length;) {
  13602. var key = keys.pop();
  13603. if (key in object) return next.value = key, next.done = !1, next;
  13604. }
  13605. return next.done = !0, next;
  13606. };
  13607. }, exports.values = values, Context.prototype = {
  13608. constructor: Context,
  13609. reset: function reset(skipTempReset) {
  13610. if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
  13611. "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
  13612. }
  13613. },
  13614. stop: function stop() {
  13615. this.done = !0;
  13616. var rootRecord = this.tryEntries[0].completion;
  13617. if ("throw" === rootRecord.type) throw rootRecord.arg;
  13618. return this.rval;
  13619. },
  13620. dispatchException: function dispatchException(exception) {
  13621. if (this.done) throw exception;
  13622. var context = this;
  13623. function handle(loc, caught) {
  13624. return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
  13625. }
  13626. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  13627. var entry = this.tryEntries[i],
  13628. record = entry.completion;
  13629. if ("root" === entry.tryLoc) return handle("end");
  13630. if (entry.tryLoc <= this.prev) {
  13631. var hasCatch = hasOwn.call(entry, "catchLoc"),
  13632. hasFinally = hasOwn.call(entry, "finallyLoc");
  13633. if (hasCatch && hasFinally) {
  13634. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  13635. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  13636. } else if (hasCatch) {
  13637. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  13638. } else {
  13639. if (!hasFinally) throw new Error("try statement without catch or finally");
  13640. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  13641. }
  13642. }
  13643. }
  13644. },
  13645. abrupt: function abrupt(type, arg) {
  13646. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  13647. var entry = this.tryEntries[i];
  13648. if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
  13649. var finallyEntry = entry;
  13650. break;
  13651. }
  13652. }
  13653. finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
  13654. var record = finallyEntry ? finallyEntry.completion : {};
  13655. return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
  13656. },
  13657. complete: function complete(record, afterLoc) {
  13658. if ("throw" === record.type) throw record.arg;
  13659. return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
  13660. },
  13661. finish: function finish(finallyLoc) {
  13662. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  13663. var entry = this.tryEntries[i];
  13664. if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
  13665. }
  13666. },
  13667. "catch": function _catch(tryLoc) {
  13668. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  13669. var entry = this.tryEntries[i];
  13670. if (entry.tryLoc === tryLoc) {
  13671. var record = entry.completion;
  13672. if ("throw" === record.type) {
  13673. var thrown = record.arg;
  13674. resetTryEntry(entry);
  13675. }
  13676. return thrown;
  13677. }
  13678. }
  13679. throw new Error("illegal catch attempt");
  13680. },
  13681. delegateYield: function delegateYield(iterable, resultName, nextLoc) {
  13682. return this.delegate = {
  13683. iterator: values(iterable),
  13684. resultName: resultName,
  13685. nextLoc: nextLoc
  13686. }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
  13687. }
  13688. }, exports;
  13689. }
  13690. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  13691. /***/ }),
  13692. /* 63 */
  13693. /*!*****************************************************************!*\
  13694. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  13695. \*****************************************************************/
  13696. /*! no static exports found */
  13697. /***/ (function(module, exports) {
  13698. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  13699. try {
  13700. var info = gen[key](arg);
  13701. var value = info.value;
  13702. } catch (error) {
  13703. reject(error);
  13704. return;
  13705. }
  13706. if (info.done) {
  13707. resolve(value);
  13708. } else {
  13709. Promise.resolve(value).then(_next, _throw);
  13710. }
  13711. }
  13712. function _asyncToGenerator(fn) {
  13713. return function () {
  13714. var self = this,
  13715. args = arguments;
  13716. return new Promise(function (resolve, reject) {
  13717. var gen = fn.apply(self, args);
  13718. function _next(value) {
  13719. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  13720. }
  13721. function _throw(err) {
  13722. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  13723. }
  13724. _next(undefined);
  13725. });
  13726. };
  13727. }
  13728. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  13729. /***/ }),
  13730. /* 64 */
  13731. /*!**********************************************************************************************************!*\
  13732. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/function/colorGradient.js ***!
  13733. \**********************************************************************************************************/
  13734. /*! no static exports found */
  13735. /***/ (function(module, exports, __webpack_require__) {
  13736. "use strict";
  13737. Object.defineProperty(exports, "__esModule", {
  13738. value: true
  13739. });
  13740. exports.default = void 0;
  13741. /**
  13742. * 求两个颜色之间的渐变值
  13743. * @param {string} startColor 开始的颜色
  13744. * @param {string} endColor 结束的颜色
  13745. * @param {number} step 颜色等分的份额
  13746. * */
  13747. function colorGradient() {
  13748. var startColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'rgb(0, 0, 0)';
  13749. var endColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rgb(255, 255, 255)';
  13750. var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
  13751. var startRGB = hexToRgb(startColor, false); // 转换为rgb数组模式
  13752. var startR = startRGB[0];
  13753. var startG = startRGB[1];
  13754. var startB = startRGB[2];
  13755. var endRGB = hexToRgb(endColor, false);
  13756. var endR = endRGB[0];
  13757. var endG = endRGB[1];
  13758. var endB = endRGB[2];
  13759. var sR = (endR - startR) / step; // 总差值
  13760. var sG = (endG - startG) / step;
  13761. var sB = (endB - startB) / step;
  13762. var colorArr = [];
  13763. for (var i = 0; i < step; i++) {
  13764. // 计算每一步的hex值
  13765. var hex = rgbToHex("rgb(".concat(Math.round(sR * i + startR), ",").concat(Math.round(sG * i + startG), ",").concat(Math.round(sB * i + startB), ")"));
  13766. // 确保第一个颜色值为startColor的值
  13767. if (i === 0) hex = rgbToHex(startColor);
  13768. // 确保最后一个颜色值为endColor的值
  13769. if (i === step - 1) hex = rgbToHex(endColor);
  13770. colorArr.push(hex);
  13771. }
  13772. return colorArr;
  13773. }
  13774. // 将hex表示方式转换为rgb表示方式(这里返回rgb数组模式)
  13775. function hexToRgb(sColor) {
  13776. var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13777. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  13778. sColor = String(sColor).toLowerCase();
  13779. if (sColor && reg.test(sColor)) {
  13780. if (sColor.length === 4) {
  13781. var sColorNew = '#';
  13782. for (var i = 1; i < 4; i += 1) {
  13783. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  13784. }
  13785. sColor = sColorNew;
  13786. }
  13787. // 处理六位的颜色值
  13788. var sColorChange = [];
  13789. for (var _i = 1; _i < 7; _i += 2) {
  13790. sColorChange.push(parseInt("0x".concat(sColor.slice(_i, _i + 2))));
  13791. }
  13792. if (!str) {
  13793. return sColorChange;
  13794. }
  13795. return "rgb(".concat(sColorChange[0], ",").concat(sColorChange[1], ",").concat(sColorChange[2], ")");
  13796. }
  13797. if (/^(rgb|RGB)/.test(sColor)) {
  13798. var arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  13799. return arr.map(function (val) {
  13800. return Number(val);
  13801. });
  13802. }
  13803. return sColor;
  13804. }
  13805. // 将rgb表示方式转换为hex表示方式
  13806. function rgbToHex(rgb) {
  13807. var _this = rgb;
  13808. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  13809. if (/^(rgb|RGB)/.test(_this)) {
  13810. var aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  13811. var strHex = '#';
  13812. for (var i = 0; i < aColor.length; i++) {
  13813. var hex = Number(aColor[i]).toString(16);
  13814. hex = String(hex).length == 1 ? "".concat(0, hex) : hex; // 保证每个rgb的值为2位
  13815. if (hex === '0') {
  13816. hex += hex;
  13817. }
  13818. strHex += hex;
  13819. }
  13820. if (strHex.length !== 7) {
  13821. strHex = _this;
  13822. }
  13823. return strHex;
  13824. }
  13825. if (reg.test(_this)) {
  13826. var aNum = _this.replace(/#/, '').split('');
  13827. if (aNum.length === 6) {
  13828. return _this;
  13829. }
  13830. if (aNum.length === 3) {
  13831. var numHex = '#';
  13832. for (var _i2 = 0; _i2 < aNum.length; _i2 += 1) {
  13833. numHex += aNum[_i2] + aNum[_i2];
  13834. }
  13835. return numHex;
  13836. }
  13837. } else {
  13838. return _this;
  13839. }
  13840. }
  13841. /**
  13842. * JS颜色十六进制转换为rgb或rgba,返回的格式为 rgba(255,255,255,0.5)字符串
  13843. * sHex为传入的十六进制的色值
  13844. * alpha为rgba的透明度
  13845. */
  13846. function colorToRgba(color, alpha) {
  13847. color = rgbToHex(color);
  13848. // 十六进制颜色值的正则表达式
  13849. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  13850. /* 16进制颜色转为RGB格式 */
  13851. var sColor = String(color).toLowerCase();
  13852. if (sColor && reg.test(sColor)) {
  13853. if (sColor.length === 4) {
  13854. var sColorNew = '#';
  13855. for (var i = 1; i < 4; i += 1) {
  13856. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  13857. }
  13858. sColor = sColorNew;
  13859. }
  13860. // 处理六位的颜色值
  13861. var sColorChange = [];
  13862. for (var _i3 = 1; _i3 < 7; _i3 += 2) {
  13863. sColorChange.push(parseInt("0x".concat(sColor.slice(_i3, _i3 + 2))));
  13864. }
  13865. // return sColorChange.join(',')
  13866. return "rgba(".concat(sColorChange.join(','), ",").concat(alpha, ")");
  13867. }
  13868. return sColor;
  13869. }
  13870. var _default = {
  13871. colorGradient: colorGradient,
  13872. hexToRgb: hexToRgb,
  13873. rgbToHex: rgbToHex,
  13874. colorToRgba: colorToRgba
  13875. };
  13876. exports.default = _default;
  13877. /***/ }),
  13878. /* 65 */
  13879. /*!*************************************************************************************************!*\
  13880. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/function/test.js ***!
  13881. \*************************************************************************************************/
  13882. /*! no static exports found */
  13883. /***/ (function(module, exports, __webpack_require__) {
  13884. "use strict";
  13885. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  13886. Object.defineProperty(exports, "__esModule", {
  13887. value: true
  13888. });
  13889. exports.default = void 0;
  13890. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  13891. /**
  13892. * 验证电子邮箱格式
  13893. */
  13894. function email(value) {
  13895. return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
  13896. }
  13897. /**
  13898. * 验证手机格式
  13899. */
  13900. function mobile(value) {
  13901. return /^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/.test(value);
  13902. }
  13903. /**
  13904. * 验证URL格式
  13905. */
  13906. function url(value) {
  13907. 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);
  13908. }
  13909. /**
  13910. * 验证日期格式
  13911. */
  13912. function date(value) {
  13913. if (!value) return false;
  13914. // 判断是否数值或者字符串数值(意味着为时间戳),转为数值,否则new Date无法识别字符串时间戳
  13915. if (number(value)) value = +value;
  13916. return !/Invalid|NaN/.test(new Date(value).toString());
  13917. }
  13918. /**
  13919. * 验证ISO类型的日期格式
  13920. */
  13921. function dateISO(value) {
  13922. return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);
  13923. }
  13924. /**
  13925. * 验证十进制数字
  13926. */
  13927. function number(value) {
  13928. return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value);
  13929. }
  13930. /**
  13931. * 验证字符串
  13932. */
  13933. function string(value) {
  13934. return typeof value === 'string';
  13935. }
  13936. /**
  13937. * 验证整数
  13938. */
  13939. function digits(value) {
  13940. return /^\d+$/.test(value);
  13941. }
  13942. /**
  13943. * 验证身份证号码
  13944. */
  13945. function idCard(value) {
  13946. 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);
  13947. }
  13948. /**
  13949. * 是否车牌号
  13950. */
  13951. function carNo(value) {
  13952. // 新能源车牌
  13953. var xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
  13954. // 旧车牌
  13955. var creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
  13956. if (value.length === 7) {
  13957. return creg.test(value);
  13958. }
  13959. if (value.length === 8) {
  13960. return xreg.test(value);
  13961. }
  13962. return false;
  13963. }
  13964. /**
  13965. * 金额,只允许2位小数
  13966. */
  13967. function amount(value) {
  13968. // 金额,只允许保留两位小数
  13969. return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value);
  13970. }
  13971. /**
  13972. * 中文
  13973. */
  13974. function chinese(value) {
  13975. var reg = /^[\u4e00-\u9fa5]+$/gi;
  13976. return reg.test(value);
  13977. }
  13978. /**
  13979. * 只能输入字母
  13980. */
  13981. function letter(value) {
  13982. return /^[a-zA-Z]*$/.test(value);
  13983. }
  13984. /**
  13985. * 只能是字母或者数字
  13986. */
  13987. function enOrNum(value) {
  13988. // 英文或者数字
  13989. var reg = /^[0-9a-zA-Z]*$/g;
  13990. return reg.test(value);
  13991. }
  13992. /**
  13993. * 验证是否包含某个值
  13994. */
  13995. function contains(value, param) {
  13996. return value.indexOf(param) >= 0;
  13997. }
  13998. /**
  13999. * 验证一个值范围[min, max]
  14000. */
  14001. function range(value, param) {
  14002. return value >= param[0] && value <= param[1];
  14003. }
  14004. /**
  14005. * 验证一个长度范围[min, max]
  14006. */
  14007. function rangeLength(value, param) {
  14008. return value.length >= param[0] && value.length <= param[1];
  14009. }
  14010. /**
  14011. * 是否固定电话
  14012. */
  14013. function landline(value) {
  14014. var reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;
  14015. return reg.test(value);
  14016. }
  14017. /**
  14018. * 判断是否为空
  14019. */
  14020. function empty(value) {
  14021. switch ((0, _typeof2.default)(value)) {
  14022. case 'undefined':
  14023. return true;
  14024. case 'string':
  14025. if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) return true;
  14026. break;
  14027. case 'boolean':
  14028. if (!value) return true;
  14029. break;
  14030. case 'number':
  14031. if (value === 0 || isNaN(value)) return true;
  14032. break;
  14033. case 'object':
  14034. if (value === null || value.length === 0) return true;
  14035. for (var i in value) {
  14036. return false;
  14037. }
  14038. return true;
  14039. }
  14040. return false;
  14041. }
  14042. /**
  14043. * 是否json字符串
  14044. */
  14045. function jsonString(value) {
  14046. if (typeof value === 'string') {
  14047. try {
  14048. var obj = JSON.parse(value);
  14049. if ((0, _typeof2.default)(obj) === 'object' && obj) {
  14050. return true;
  14051. }
  14052. return false;
  14053. } catch (e) {
  14054. return false;
  14055. }
  14056. }
  14057. return false;
  14058. }
  14059. /**
  14060. * 是否数组
  14061. */
  14062. function array(value) {
  14063. if (typeof Array.isArray === 'function') {
  14064. return Array.isArray(value);
  14065. }
  14066. return Object.prototype.toString.call(value) === '[object Array]';
  14067. }
  14068. /**
  14069. * 是否对象
  14070. */
  14071. function object(value) {
  14072. return Object.prototype.toString.call(value) === '[object Object]';
  14073. }
  14074. /**
  14075. * 是否短信验证码
  14076. */
  14077. function code(value) {
  14078. var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
  14079. return new RegExp("^\\d{".concat(len, "}$")).test(value);
  14080. }
  14081. /**
  14082. * 是否函数方法
  14083. * @param {Object} value
  14084. */
  14085. function func(value) {
  14086. return typeof value === 'function';
  14087. }
  14088. /**
  14089. * 是否promise对象
  14090. * @param {Object} value
  14091. */
  14092. function promise(value) {
  14093. return object(value) && func(value.then) && func(value.catch);
  14094. }
  14095. /** 是否图片格式
  14096. * @param {Object} value
  14097. */
  14098. function image(value) {
  14099. var newValue = value.split('?')[0];
  14100. var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  14101. return IMAGE_REGEXP.test(newValue);
  14102. }
  14103. /**
  14104. * 是否视频格式
  14105. * @param {Object} value
  14106. */
  14107. function video(value) {
  14108. var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;
  14109. return VIDEO_REGEXP.test(value);
  14110. }
  14111. /**
  14112. * 是否为正则对象
  14113. * @param {Object}
  14114. * @return {Boolean}
  14115. */
  14116. function regExp(o) {
  14117. return o && Object.prototype.toString.call(o) === '[object RegExp]';
  14118. }
  14119. var _default = {
  14120. email: email,
  14121. mobile: mobile,
  14122. url: url,
  14123. date: date,
  14124. dateISO: dateISO,
  14125. number: number,
  14126. digits: digits,
  14127. idCard: idCard,
  14128. carNo: carNo,
  14129. amount: amount,
  14130. chinese: chinese,
  14131. letter: letter,
  14132. enOrNum: enOrNum,
  14133. contains: contains,
  14134. range: range,
  14135. rangeLength: rangeLength,
  14136. empty: empty,
  14137. isEmpty: empty,
  14138. jsonString: jsonString,
  14139. landline: landline,
  14140. object: object,
  14141. array: array,
  14142. code: code,
  14143. func: func,
  14144. promise: promise,
  14145. video: video,
  14146. image: image,
  14147. regExp: regExp,
  14148. string: string
  14149. };
  14150. exports.default = _default;
  14151. /***/ }),
  14152. /* 66 */
  14153. /*!*****************************************************************************************************!*\
  14154. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/function/debounce.js ***!
  14155. \*****************************************************************************************************/
  14156. /*! no static exports found */
  14157. /***/ (function(module, exports, __webpack_require__) {
  14158. "use strict";
  14159. Object.defineProperty(exports, "__esModule", {
  14160. value: true
  14161. });
  14162. exports.default = void 0;
  14163. var timeout = null;
  14164. /**
  14165. * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数
  14166. *
  14167. * @param {Function} func 要执行的回调函数
  14168. * @param {Number} wait 延时的时间
  14169. * @param {Boolean} immediate 是否立即执行
  14170. * @return null
  14171. */
  14172. function debounce(func) {
  14173. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  14174. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  14175. // 清除定时器
  14176. if (timeout !== null) clearTimeout(timeout);
  14177. // 立即执行,此类情况一般用不到
  14178. if (immediate) {
  14179. var callNow = !timeout;
  14180. timeout = setTimeout(function () {
  14181. timeout = null;
  14182. }, wait);
  14183. if (callNow) typeof func === 'function' && func();
  14184. } else {
  14185. // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法
  14186. timeout = setTimeout(function () {
  14187. typeof func === 'function' && func();
  14188. }, wait);
  14189. }
  14190. }
  14191. var _default = debounce;
  14192. exports.default = _default;
  14193. /***/ }),
  14194. /* 67 */
  14195. /*!*****************************************************************************************************!*\
  14196. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/function/throttle.js ***!
  14197. \*****************************************************************************************************/
  14198. /*! no static exports found */
  14199. /***/ (function(module, exports, __webpack_require__) {
  14200. "use strict";
  14201. Object.defineProperty(exports, "__esModule", {
  14202. value: true
  14203. });
  14204. exports.default = void 0;
  14205. var timer;
  14206. var flag;
  14207. /**
  14208. * 节流原理:在一定时间内,只能触发一次
  14209. *
  14210. * @param {Function} func 要执行的回调函数
  14211. * @param {Number} wait 延时的时间
  14212. * @param {Boolean} immediate 是否立即执行
  14213. * @return null
  14214. */
  14215. function throttle(func) {
  14216. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  14217. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  14218. if (immediate) {
  14219. if (!flag) {
  14220. flag = true;
  14221. // 如果是立即执行,则在wait毫秒内开始时执行
  14222. typeof func === 'function' && func();
  14223. timer = setTimeout(function () {
  14224. flag = false;
  14225. }, wait);
  14226. }
  14227. } else if (!flag) {
  14228. flag = true;
  14229. // 如果是非立即执行,则在wait毫秒内的结束处执行
  14230. timer = setTimeout(function () {
  14231. flag = false;
  14232. typeof func === 'function' && func();
  14233. }, wait);
  14234. }
  14235. }
  14236. var _default = throttle;
  14237. exports.default = _default;
  14238. /***/ }),
  14239. /* 68 */
  14240. /*!**************************************************************************************************!*\
  14241. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/function/index.js ***!
  14242. \**************************************************************************************************/
  14243. /*! no static exports found */
  14244. /***/ (function(module, exports, __webpack_require__) {
  14245. "use strict";
  14246. /* WEBPACK VAR INJECTION */(function(uni) {
  14247. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  14248. Object.defineProperty(exports, "__esModule", {
  14249. value: true
  14250. });
  14251. exports.default = void 0;
  14252. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  14253. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  14254. var _test = _interopRequireDefault(__webpack_require__(/*! ./test.js */ 65));
  14255. var _digit = __webpack_require__(/*! ./digit.js */ 69);
  14256. /**
  14257. * @description 如果value小于min,取min;如果value大于max,取max
  14258. * @param {number} min
  14259. * @param {number} max
  14260. * @param {number} value
  14261. */
  14262. function range() {
  14263. var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  14264. var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  14265. var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
  14266. return Math.max(min, Math.min(max, Number(value)));
  14267. }
  14268. /**
  14269. * @description 用于获取用户传递值的px值 如果用户传递了"xxpx"或者"xxrpx",取出其数值部分,如果是"xxxrpx"还需要用过uni.upx2px进行转换
  14270. * @param {number|string} value 用户传递值的px值
  14271. * @param {boolean} unit
  14272. * @returns {number|string}
  14273. */
  14274. function getPx(value) {
  14275. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  14276. if (_test.default.number(value)) {
  14277. return unit ? "".concat(value, "px") : Number(value);
  14278. }
  14279. // 如果带有rpx,先取出其数值部分,再转为px值
  14280. if (/(rpx|upx)$/.test(value)) {
  14281. return unit ? "".concat(uni.upx2px(parseInt(value)), "px") : Number(uni.upx2px(parseInt(value)));
  14282. }
  14283. return unit ? "".concat(parseInt(value), "px") : parseInt(value);
  14284. }
  14285. /**
  14286. * @description 进行延时,以达到可以简写代码的目的 比如: await uni.$u.sleep(20)将会阻塞20ms
  14287. * @param {number} value 堵塞时间 单位ms 毫秒
  14288. * @returns {Promise} 返回promise
  14289. */
  14290. function sleep() {
  14291. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 30;
  14292. return new Promise(function (resolve) {
  14293. setTimeout(function () {
  14294. resolve();
  14295. }, value);
  14296. });
  14297. }
  14298. /**
  14299. * @description 运行期判断平台
  14300. * @returns {string} 返回所在平台(小写)
  14301. * @link 运行期判断平台 https://uniapp.dcloud.io/frame?id=判断平台
  14302. */
  14303. function os() {
  14304. return uni.getSystemInfoSync().platform.toLowerCase();
  14305. }
  14306. /**
  14307. * @description 获取系统信息同步接口
  14308. * @link 获取系统信息同步接口 https://uniapp.dcloud.io/api/system/info?id=getsysteminfosync
  14309. */
  14310. function sys() {
  14311. return uni.getSystemInfoSync();
  14312. }
  14313. /**
  14314. * @description 取一个区间数
  14315. * @param {Number} min 最小值
  14316. * @param {Number} max 最大值
  14317. */
  14318. function random(min, max) {
  14319. if (min >= 0 && max > 0 && max >= min) {
  14320. var gab = max - min + 1;
  14321. return Math.floor(Math.random() * gab + min);
  14322. }
  14323. return 0;
  14324. }
  14325. /**
  14326. * @param {Number} len uuid的长度
  14327. * @param {Boolean} firstU 将返回的首字母置为"u"
  14328. * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
  14329. */
  14330. function guid() {
  14331. var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
  14332. var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  14333. var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  14334. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  14335. var uuid = [];
  14336. radix = radix || chars.length;
  14337. if (len) {
  14338. // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
  14339. for (var i = 0; i < len; i++) {
  14340. uuid[i] = chars[0 | Math.random() * radix];
  14341. }
  14342. } else {
  14343. var r;
  14344. // rfc4122标准要求返回的uuid中,某些位为固定的字符
  14345. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  14346. uuid[14] = '4';
  14347. for (var _i = 0; _i < 36; _i++) {
  14348. if (!uuid[_i]) {
  14349. r = 0 | Math.random() * 16;
  14350. uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
  14351. }
  14352. }
  14353. }
  14354. // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  14355. if (firstU) {
  14356. uuid.shift();
  14357. return "u".concat(uuid.join(''));
  14358. }
  14359. return uuid.join('');
  14360. }
  14361. /**
  14362. * @description 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  14363. this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  14364. 这里默认值等于undefined有它的含义,因为最顶层元素(组件)的$parent就是undefined,意味着不传name
  14365. 值(默认为undefined),就是查找最顶层的$parent
  14366. * @param {string|undefined} name 父组件的参数名
  14367. */
  14368. function $parent() {
  14369. var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  14370. var parent = this.$parent;
  14371. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  14372. while (parent) {
  14373. // 父组件
  14374. if (parent.$options && parent.$options.name !== name) {
  14375. // 如果组件的name不相等,继续上一级寻找
  14376. parent = parent.$parent;
  14377. } else {
  14378. return parent;
  14379. }
  14380. }
  14381. return false;
  14382. }
  14383. /**
  14384. * @description 样式转换
  14385. * 对象转字符串,或者字符串转对象
  14386. * @param {object | string} customStyle 需要转换的目标
  14387. * @param {String} target 转换的目的,object-转为对象,string-转为字符串
  14388. * @returns {object|string}
  14389. */
  14390. function addStyle(customStyle) {
  14391. var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'object';
  14392. // 字符串转字符串,对象转对象情形,直接返回
  14393. if (_test.default.empty(customStyle) || (0, _typeof2.default)(customStyle) === 'object' && target === 'object' || target === 'string' && typeof customStyle === 'string') {
  14394. return customStyle;
  14395. }
  14396. // 字符串转对象
  14397. if (target === 'object') {
  14398. // 去除字符串样式中的两端空格(中间的空格不能去掉,比如padding: 20px 0如果去掉了就错了),空格是无用的
  14399. customStyle = trim(customStyle);
  14400. // 根据";"将字符串转为数组形式
  14401. var styleArray = customStyle.split(';');
  14402. var style = {};
  14403. // 历遍数组,拼接成对象
  14404. for (var i = 0; i < styleArray.length; i++) {
  14405. // 'font-size:20px;color:red;',如此最后字符串有";"的话,会导致styleArray最后一个元素为空字符串,这里需要过滤
  14406. if (styleArray[i]) {
  14407. var item = styleArray[i].split(':');
  14408. style[trim(item[0])] = trim(item[1]);
  14409. }
  14410. }
  14411. return style;
  14412. }
  14413. // 这里为对象转字符串形式
  14414. var string = '';
  14415. for (var _i2 in customStyle) {
  14416. // 驼峰转为中划线的形式,否则css内联样式,无法识别驼峰样式属性名
  14417. var key = _i2.replace(/([A-Z])/g, '-$1').toLowerCase();
  14418. string += "".concat(key, ":").concat(customStyle[_i2], ";");
  14419. }
  14420. // 去除两端空格
  14421. return trim(string);
  14422. }
  14423. /**
  14424. * @description 添加单位,如果有rpx,upx,%,px等单位结尾或者值为auto,直接返回,否则加上px单位结尾
  14425. * @param {string|number} value 需要添加单位的值
  14426. * @param {string} unit 添加的单位名 比如px
  14427. */
  14428. function addUnit() {
  14429. var _uni$$u$config$unit, _uni, _uni$$u, _uni$$u$config;
  14430. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'auto';
  14431. 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';
  14432. value = String(value);
  14433. // 用uView内置验证规则中的number判断是否为数值
  14434. return _test.default.number(value) ? "".concat(value).concat(unit) : value;
  14435. }
  14436. /**
  14437. * @description 深度克隆
  14438. * @param {object} obj 需要深度克隆的对象
  14439. * @param cache 缓存
  14440. * @returns {*} 克隆后的对象或者原值(不是对象)
  14441. */
  14442. function deepClone(obj) {
  14443. var cache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new WeakMap();
  14444. if (obj === null || (0, _typeof2.default)(obj) !== 'object') return obj;
  14445. if (cache.has(obj)) return cache.get(obj);
  14446. var clone;
  14447. if (obj instanceof Date) {
  14448. clone = new Date(obj.getTime());
  14449. } else if (obj instanceof RegExp) {
  14450. clone = new RegExp(obj);
  14451. } else if (obj instanceof Map) {
  14452. clone = new Map(Array.from(obj, function (_ref) {
  14453. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  14454. key = _ref2[0],
  14455. value = _ref2[1];
  14456. return [key, deepClone(value, cache)];
  14457. }));
  14458. } else if (obj instanceof Set) {
  14459. clone = new Set(Array.from(obj, function (value) {
  14460. return deepClone(value, cache);
  14461. }));
  14462. } else if (Array.isArray(obj)) {
  14463. clone = obj.map(function (value) {
  14464. return deepClone(value, cache);
  14465. });
  14466. } else if (Object.prototype.toString.call(obj) === '[object Object]') {
  14467. clone = Object.create(Object.getPrototypeOf(obj));
  14468. cache.set(obj, clone);
  14469. for (var _i3 = 0, _Object$entries = Object.entries(obj); _i3 < _Object$entries.length; _i3++) {
  14470. var _Object$entries$_i = (0, _slicedToArray2.default)(_Object$entries[_i3], 2),
  14471. key = _Object$entries$_i[0],
  14472. value = _Object$entries$_i[1];
  14473. clone[key] = deepClone(value, cache);
  14474. }
  14475. } else {
  14476. clone = Object.assign({}, obj);
  14477. }
  14478. cache.set(obj, clone);
  14479. return clone;
  14480. }
  14481. /**
  14482. * @description JS对象深度合并
  14483. * @param {object} target 需要拷贝的对象
  14484. * @param {object} source 拷贝的来源对象
  14485. * @returns {object|boolean} 深度合并后的对象或者false(入参有不是对象)
  14486. */
  14487. function deepMerge() {
  14488. var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  14489. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  14490. target = deepClone(target);
  14491. if ((0, _typeof2.default)(target) !== 'object' || target === null || (0, _typeof2.default)(source) !== 'object' || source === null) return target;
  14492. var merged = Array.isArray(target) ? target.slice() : Object.assign({}, target);
  14493. for (var prop in source) {
  14494. if (!source.hasOwnProperty(prop)) continue;
  14495. var sourceValue = source[prop];
  14496. var targetValue = merged[prop];
  14497. if (sourceValue instanceof Date) {
  14498. merged[prop] = new Date(sourceValue);
  14499. } else if (sourceValue instanceof RegExp) {
  14500. merged[prop] = new RegExp(sourceValue);
  14501. } else if (sourceValue instanceof Map) {
  14502. merged[prop] = new Map(sourceValue);
  14503. } else if (sourceValue instanceof Set) {
  14504. merged[prop] = new Set(sourceValue);
  14505. } else if ((0, _typeof2.default)(sourceValue) === 'object' && sourceValue !== null) {
  14506. merged[prop] = deepMerge(targetValue, sourceValue);
  14507. } else {
  14508. merged[prop] = sourceValue;
  14509. }
  14510. }
  14511. return merged;
  14512. }
  14513. /**
  14514. * @description error提示
  14515. * @param {*} err 错误内容
  14516. */
  14517. function error(err) {
  14518. // 开发环境才提示,生产环境不会提示
  14519. if (true) {
  14520. console.error("uView\u63D0\u793A\uFF1A".concat(err));
  14521. }
  14522. }
  14523. /**
  14524. * @description 打乱数组
  14525. * @param {array} array 需要打乱的数组
  14526. * @returns {array} 打乱后的数组
  14527. */
  14528. function randomArray() {
  14529. var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  14530. // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.05大于或者小于0
  14531. return array.sort(function () {
  14532. return Math.random() - 0.5;
  14533. });
  14534. }
  14535. // padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序
  14536. // 所以这里做一个兼容polyfill的兼容处理
  14537. if (!String.prototype.padStart) {
  14538. // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解
  14539. String.prototype.padStart = function (maxLength) {
  14540. var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
  14541. if (Object.prototype.toString.call(fillString) !== '[object String]') {
  14542. throw new TypeError('fillString must be String');
  14543. }
  14544. var str = this;
  14545. // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉
  14546. if (str.length >= maxLength) return String(str);
  14547. var fillLength = maxLength - str.length;
  14548. var times = Math.ceil(fillLength / fillString.length);
  14549. while (times >>= 1) {
  14550. fillString += fillString;
  14551. if (times === 1) {
  14552. fillString += fillString;
  14553. }
  14554. }
  14555. return fillString.slice(0, fillLength) + str;
  14556. };
  14557. }
  14558. /**
  14559. * @description 格式化时间
  14560. * @param {String|Number} dateTime 需要格式化的时间戳
  14561. * @param {String} fmt 格式化规则 yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合 默认yyyy-mm-dd
  14562. * @returns {string} 返回格式化后的字符串
  14563. */
  14564. function timeFormat() {
  14565. var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  14566. var formatStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  14567. var date;
  14568. // 若传入时间为假值,则取当前时间
  14569. if (!dateTime) {
  14570. date = new Date();
  14571. }
  14572. // 若为unix秒时间戳,则转为毫秒时间戳(逻辑有点奇怪,但不敢改,以保证历史兼容)
  14573. else if (/^\d{10}$/.test(dateTime === null || dateTime === void 0 ? void 0 : dateTime.toString().trim())) {
  14574. date = new Date(dateTime * 1000);
  14575. }
  14576. // 若用户传入字符串格式时间戳,new Date无法解析,需做兼容
  14577. else if (typeof dateTime === 'string' && /^\d+$/.test(dateTime.trim())) {
  14578. date = new Date(Number(dateTime));
  14579. }
  14580. // 处理平台性差异,在Safari/Webkit中,new Date仅支持/作为分割符的字符串时间
  14581. // 处理 '2022-07-10 01:02:03',跳过 '2022-07-10T01:02:03'
  14582. else if (typeof dateTime === 'string' && dateTime.includes('-') && !dateTime.includes('T')) {
  14583. date = new Date(dateTime.replace(/-/g, '/'));
  14584. }
  14585. // 其他都认为符合 RFC 2822 规范
  14586. else {
  14587. date = new Date(dateTime);
  14588. }
  14589. var timeSource = {
  14590. 'y': date.getFullYear().toString(),
  14591. // 年
  14592. 'm': (date.getMonth() + 1).toString().padStart(2, '0'),
  14593. // 月
  14594. 'd': date.getDate().toString().padStart(2, '0'),
  14595. // 日
  14596. 'h': date.getHours().toString().padStart(2, '0'),
  14597. // 时
  14598. 'M': date.getMinutes().toString().padStart(2, '0'),
  14599. // 分
  14600. 's': date.getSeconds().toString().padStart(2, '0') // 秒
  14601. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  14602. };
  14603. for (var key in timeSource) {
  14604. var _ref3 = new RegExp("".concat(key, "+")).exec(formatStr) || [],
  14605. _ref4 = (0, _slicedToArray2.default)(_ref3, 1),
  14606. ret = _ref4[0];
  14607. if (ret) {
  14608. // 年可能只需展示两位
  14609. var beginIndex = key === 'y' && ret.length === 2 ? 2 : 0;
  14610. formatStr = formatStr.replace(ret, timeSource[key].slice(beginIndex));
  14611. }
  14612. }
  14613. return formatStr;
  14614. }
  14615. /**
  14616. * @description 时间戳转为多久之前
  14617. * @param {String|Number} timestamp 时间戳
  14618. * @param {String|Boolean} format
  14619. * 格式化规则如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;
  14620. * 如果为布尔值false,无论什么时间,都返回多久以前的格式
  14621. * @returns {string} 转化后的内容
  14622. */
  14623. function timeFrom() {
  14624. var timestamp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  14625. var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  14626. if (timestamp == null) timestamp = Number(new Date());
  14627. timestamp = parseInt(timestamp);
  14628. // 判断用户输入的时间戳是秒还是毫秒,一般前端js获取的时间戳是毫秒(13位),后端传过来的为秒(10位)
  14629. if (timestamp.toString().length == 10) timestamp *= 1000;
  14630. var timer = new Date().getTime() - timestamp;
  14631. timer = parseInt(timer / 1000);
  14632. // 如果小于5分钟,则返回"刚刚",其他以此类推
  14633. var tips = '';
  14634. switch (true) {
  14635. case timer < 300:
  14636. tips = '刚刚';
  14637. break;
  14638. case timer >= 300 && timer < 3600:
  14639. tips = "".concat(parseInt(timer / 60), "\u5206\u949F\u524D");
  14640. break;
  14641. case timer >= 3600 && timer < 86400:
  14642. tips = "".concat(parseInt(timer / 3600), "\u5C0F\u65F6\u524D");
  14643. break;
  14644. case timer >= 86400 && timer < 2592000:
  14645. tips = "".concat(parseInt(timer / 86400), "\u5929\u524D");
  14646. break;
  14647. default:
  14648. // 如果format为false,则无论什么时间戳,都显示xx之前
  14649. if (format === false) {
  14650. if (timer >= 2592000 && timer < 365 * 86400) {
  14651. tips = "".concat(parseInt(timer / (86400 * 30)), "\u4E2A\u6708\u524D");
  14652. } else {
  14653. tips = "".concat(parseInt(timer / (86400 * 365)), "\u5E74\u524D");
  14654. }
  14655. } else {
  14656. tips = timeFormat(timestamp, format);
  14657. }
  14658. }
  14659. return tips;
  14660. }
  14661. /**
  14662. * @description 去除空格
  14663. * @param String str 需要去除空格的字符串
  14664. * @param String pos both(左右)|left|right|all 默认both
  14665. */
  14666. function trim(str) {
  14667. var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'both';
  14668. str = String(str);
  14669. if (pos == 'both') {
  14670. return str.replace(/^\s+|\s+$/g, '');
  14671. }
  14672. if (pos == 'left') {
  14673. return str.replace(/^\s*/, '');
  14674. }
  14675. if (pos == 'right') {
  14676. return str.replace(/(\s*$)/g, '');
  14677. }
  14678. if (pos == 'all') {
  14679. return str.replace(/\s+/g, '');
  14680. }
  14681. return str;
  14682. }
  14683. /**
  14684. * @description 对象转url参数
  14685. * @param {object} data,对象
  14686. * @param {Boolean} isPrefix,是否自动加上"?"
  14687. * @param {string} arrayFormat 规则 indices|brackets|repeat|comma
  14688. */
  14689. function queryParams() {
  14690. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  14691. var isPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  14692. var arrayFormat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'brackets';
  14693. var prefix = isPrefix ? '?' : '';
  14694. var _result = [];
  14695. if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets';
  14696. var _loop = function _loop(key) {
  14697. var value = data[key];
  14698. // 去掉为空的参数
  14699. if (['', undefined, null].indexOf(value) >= 0) {
  14700. return "continue";
  14701. }
  14702. // 如果值为数组,另行处理
  14703. if (value.constructor === Array) {
  14704. // e.g. {ids: [1, 2, 3]}
  14705. switch (arrayFormat) {
  14706. case 'indices':
  14707. // 结果: ids[0]=1&ids[1]=2&ids[2]=3
  14708. for (var i = 0; i < value.length; i++) {
  14709. _result.push("".concat(key, "[").concat(i, "]=").concat(value[i]));
  14710. }
  14711. break;
  14712. case 'brackets':
  14713. // 结果: ids[]=1&ids[]=2&ids[]=3
  14714. value.forEach(function (_value) {
  14715. _result.push("".concat(key, "[]=").concat(_value));
  14716. });
  14717. break;
  14718. case 'repeat':
  14719. // 结果: ids=1&ids=2&ids=3
  14720. value.forEach(function (_value) {
  14721. _result.push("".concat(key, "=").concat(_value));
  14722. });
  14723. break;
  14724. case 'comma':
  14725. // 结果: ids=1,2,3
  14726. var commaStr = '';
  14727. value.forEach(function (_value) {
  14728. commaStr += (commaStr ? ',' : '') + _value;
  14729. });
  14730. _result.push("".concat(key, "=").concat(commaStr));
  14731. break;
  14732. default:
  14733. value.forEach(function (_value) {
  14734. _result.push("".concat(key, "[]=").concat(_value));
  14735. });
  14736. }
  14737. } else {
  14738. _result.push("".concat(key, "=").concat(value));
  14739. }
  14740. };
  14741. for (var key in data) {
  14742. var _ret = _loop(key);
  14743. if (_ret === "continue") continue;
  14744. }
  14745. return _result.length ? prefix + _result.join('&') : '';
  14746. }
  14747. /**
  14748. * 显示消息提示框
  14749. * @param {String} title 提示的内容,长度与 icon 取值有关。
  14750. * @param {Number} duration 提示的延迟时间,单位毫秒,默认:2000
  14751. */
  14752. function toast(title) {
  14753. var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
  14754. uni.showToast({
  14755. title: String(title),
  14756. icon: 'none',
  14757. duration: duration
  14758. });
  14759. }
  14760. /**
  14761. * @description 根据主题type值,获取对应的图标
  14762. * @param {String} type 主题名称,primary|info|error|warning|success
  14763. * @param {boolean} fill 是否使用fill填充实体的图标
  14764. */
  14765. function type2icon() {
  14766. var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'success';
  14767. var fill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  14768. // 如果非预置值,默认为success
  14769. if (['primary', 'info', 'error', 'warning', 'success'].indexOf(type) == -1) type = 'success';
  14770. var iconName = '';
  14771. // 目前(2019-12-12),info和primary使用同一个图标
  14772. switch (type) {
  14773. case 'primary':
  14774. iconName = 'info-circle';
  14775. break;
  14776. case 'info':
  14777. iconName = 'info-circle';
  14778. break;
  14779. case 'error':
  14780. iconName = 'close-circle';
  14781. break;
  14782. case 'warning':
  14783. iconName = 'error-circle';
  14784. break;
  14785. case 'success':
  14786. iconName = 'checkmark-circle';
  14787. break;
  14788. default:
  14789. iconName = 'checkmark-circle';
  14790. }
  14791. // 是否是实体类型,加上-fill,在icon组件库中,实体的类名是后面加-fill的
  14792. if (fill) iconName += '-fill';
  14793. return iconName;
  14794. }
  14795. /**
  14796. * @description 数字格式化
  14797. * @param {number|string} number 要格式化的数字
  14798. * @param {number} decimals 保留几位小数
  14799. * @param {string} decimalPoint 小数点符号
  14800. * @param {string} thousandsSeparator 千分位符号
  14801. * @returns {string} 格式化后的数字
  14802. */
  14803. function priceFormat(number) {
  14804. var decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  14805. var decimalPoint = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.';
  14806. var thousandsSeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ',';
  14807. number = "".concat(number).replace(/[^0-9+-Ee.]/g, '');
  14808. var n = !isFinite(+number) ? 0 : +number;
  14809. var prec = !isFinite(+decimals) ? 0 : Math.abs(decimals);
  14810. var sep = typeof thousandsSeparator === 'undefined' ? ',' : thousandsSeparator;
  14811. var dec = typeof decimalPoint === 'undefined' ? '.' : decimalPoint;
  14812. var s = '';
  14813. s = (prec ? (0, _digit.round)(n, prec) + '' : "".concat(Math.round(n))).split('.');
  14814. var re = /(-?\d+)(\d{3})/;
  14815. while (re.test(s[0])) {
  14816. s[0] = s[0].replace(re, "$1".concat(sep, "$2"));
  14817. }
  14818. if ((s[1] || '').length < prec) {
  14819. s[1] = s[1] || '';
  14820. s[1] += new Array(prec - s[1].length + 1).join('0');
  14821. }
  14822. return s.join(dec);
  14823. }
  14824. /**
  14825. * @description 获取duration值
  14826. * 如果带有ms或者s直接返回,如果大于一定值,认为是ms单位,小于一定值,认为是s单位
  14827. * 比如以30位阈值,那么300大于30,可以理解为用户想要的是300ms,而不是想花300s去执行一个动画
  14828. * @param {String|number} value 比如: "1s"|"100ms"|1|100
  14829. * @param {boolean} unit 提示: 如果是false 默认返回number
  14830. * @return {string|number}
  14831. */
  14832. function getDuration(value) {
  14833. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  14834. var valueNum = parseInt(value);
  14835. if (unit) {
  14836. if (/s$/.test(value)) return value;
  14837. return value > 30 ? "".concat(value, "ms") : "".concat(value, "s");
  14838. }
  14839. if (/ms$/.test(value)) return valueNum;
  14840. if (/s$/.test(value)) return valueNum > 30 ? valueNum : valueNum * 1000;
  14841. return valueNum;
  14842. }
  14843. /**
  14844. * @description 日期的月或日补零操作
  14845. * @param {String} value 需要补零的值
  14846. */
  14847. function padZero(value) {
  14848. return "00".concat(value).slice(-2);
  14849. }
  14850. /**
  14851. * @description 在u-form的子组件内容发生变化,或者失去焦点时,尝试通知u-form执行校验方法
  14852. * @param {*} instance
  14853. * @param {*} event
  14854. */
  14855. function formValidate(instance, event) {
  14856. var formItem = uni.$u.$parent.call(instance, 'u-form-item');
  14857. var form = uni.$u.$parent.call(instance, 'u-form');
  14858. // 如果发生变化的input或者textarea等,其父组件中有u-form-item或者u-form等,就执行form的validate方法
  14859. // 同时将form-item的pros传递给form,让其进行精确对象验证
  14860. if (formItem && form) {
  14861. form.validateField(formItem.prop, function () {}, event);
  14862. }
  14863. }
  14864. /**
  14865. * @description 获取某个对象下的属性,用于通过类似'a.b.c'的形式去获取一个对象的的属性的形式
  14866. * @param {object} obj 对象
  14867. * @param {string} key 需要获取的属性字段
  14868. * @returns {*}
  14869. */
  14870. function getProperty(obj, key) {
  14871. if (!obj) {
  14872. return;
  14873. }
  14874. if (typeof key !== 'string' || key === '') {
  14875. return '';
  14876. }
  14877. if (key.indexOf('.') !== -1) {
  14878. var keys = key.split('.');
  14879. var firstObj = obj[keys[0]] || {};
  14880. for (var i = 1; i < keys.length; i++) {
  14881. if (firstObj) {
  14882. firstObj = firstObj[keys[i]];
  14883. }
  14884. }
  14885. return firstObj;
  14886. }
  14887. return obj[key];
  14888. }
  14889. /**
  14890. * @description 设置对象的属性值,如果'a.b.c'的形式进行设置
  14891. * @param {object} obj 对象
  14892. * @param {string} key 需要设置的属性
  14893. * @param {string} value 设置的值
  14894. */
  14895. function setProperty(obj, key, value) {
  14896. if (!obj) {
  14897. return;
  14898. }
  14899. // 递归赋值
  14900. var inFn = function inFn(_obj, keys, v) {
  14901. // 最后一个属性key
  14902. if (keys.length === 1) {
  14903. _obj[keys[0]] = v;
  14904. return;
  14905. }
  14906. // 0~length-1个key
  14907. while (keys.length > 1) {
  14908. var k = keys[0];
  14909. if (!_obj[k] || (0, _typeof2.default)(_obj[k]) !== 'object') {
  14910. _obj[k] = {};
  14911. }
  14912. var _key = keys.shift();
  14913. // 自调用判断是否存在属性,不存在则自动创建对象
  14914. inFn(_obj[k], keys, v);
  14915. }
  14916. };
  14917. if (typeof key !== 'string' || key === '') {} else if (key.indexOf('.') !== -1) {
  14918. // 支持多层级赋值操作
  14919. var keys = key.split('.');
  14920. inFn(obj, keys, value);
  14921. } else {
  14922. obj[key] = value;
  14923. }
  14924. }
  14925. /**
  14926. * @description 获取当前页面路径
  14927. */
  14928. function page() {
  14929. var _pages$route, _pages;
  14930. var pages = getCurrentPages();
  14931. // 某些特殊情况下(比如页面进行redirectTo时的一些时机),pages可能为空数组
  14932. return "/".concat((_pages$route = (_pages = pages[pages.length - 1]) === null || _pages === void 0 ? void 0 : _pages.route) !== null && _pages$route !== void 0 ? _pages$route : '');
  14933. }
  14934. /**
  14935. * @description 获取当前路由栈实例数组
  14936. */
  14937. function pages() {
  14938. var pages = getCurrentPages();
  14939. return pages;
  14940. }
  14941. /**
  14942. * 获取页面历史栈指定层实例
  14943. * @param back {number} [0] - 0或者负数,表示获取历史栈的哪一层,0表示获取当前页面实例,-1 表示获取上一个页面实例。默认0。
  14944. */
  14945. function getHistoryPage() {
  14946. var back = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  14947. var pages = getCurrentPages();
  14948. var len = pages.length;
  14949. return pages[len - 1 + back];
  14950. }
  14951. /**
  14952. * @description 修改uView内置属性值
  14953. * @param {object} props 修改内置props属性
  14954. * @param {object} config 修改内置config属性
  14955. * @param {object} color 修改内置color属性
  14956. * @param {object} zIndex 修改内置zIndex属性
  14957. */
  14958. function setConfig(_ref5) {
  14959. var _ref5$props = _ref5.props,
  14960. props = _ref5$props === void 0 ? {} : _ref5$props,
  14961. _ref5$config = _ref5.config,
  14962. config = _ref5$config === void 0 ? {} : _ref5$config,
  14963. _ref5$color = _ref5.color,
  14964. color = _ref5$color === void 0 ? {} : _ref5$color,
  14965. _ref5$zIndex = _ref5.zIndex,
  14966. zIndex = _ref5$zIndex === void 0 ? {} : _ref5$zIndex;
  14967. var deepMerge = uni.$u.deepMerge;
  14968. uni.$u.config = deepMerge(uni.$u.config, config);
  14969. uni.$u.props = deepMerge(uni.$u.props, props);
  14970. uni.$u.color = deepMerge(uni.$u.color, color);
  14971. uni.$u.zIndex = deepMerge(uni.$u.zIndex, zIndex);
  14972. }
  14973. var _default = {
  14974. range: range,
  14975. getPx: getPx,
  14976. sleep: sleep,
  14977. os: os,
  14978. sys: sys,
  14979. random: random,
  14980. guid: guid,
  14981. $parent: $parent,
  14982. addStyle: addStyle,
  14983. addUnit: addUnit,
  14984. deepClone: deepClone,
  14985. deepMerge: deepMerge,
  14986. error: error,
  14987. randomArray: randomArray,
  14988. timeFormat: timeFormat,
  14989. timeFrom: timeFrom,
  14990. trim: trim,
  14991. queryParams: queryParams,
  14992. toast: toast,
  14993. type2icon: type2icon,
  14994. priceFormat: priceFormat,
  14995. getDuration: getDuration,
  14996. padZero: padZero,
  14997. formValidate: formValidate,
  14998. getProperty: getProperty,
  14999. setProperty: setProperty,
  15000. page: page,
  15001. pages: pages,
  15002. getHistoryPage: getHistoryPage,
  15003. setConfig: setConfig
  15004. };
  15005. exports.default = _default;
  15006. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  15007. /***/ }),
  15008. /* 69 */
  15009. /*!**************************************************************************************************!*\
  15010. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/function/digit.js ***!
  15011. \**************************************************************************************************/
  15012. /*! no static exports found */
  15013. /***/ (function(module, exports, __webpack_require__) {
  15014. "use strict";
  15015. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15016. Object.defineProperty(exports, "__esModule", {
  15017. value: true
  15018. });
  15019. exports.default = void 0;
  15020. exports.divide = divide;
  15021. exports.enableBoundaryChecking = enableBoundaryChecking;
  15022. exports.minus = minus;
  15023. exports.plus = plus;
  15024. exports.round = round;
  15025. exports.times = times;
  15026. var _toArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toArray */ 70));
  15027. var _boundaryCheckingState = true; // 是否进行越界检查的全局开关
  15028. /**
  15029. * 把错误的数据转正
  15030. * @private
  15031. * @example strip(0.09999999999999998)=0.1
  15032. */
  15033. function strip(num) {
  15034. var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 15;
  15035. return +parseFloat(Number(num).toPrecision(precision));
  15036. }
  15037. /**
  15038. * Return digits length of a number
  15039. * @private
  15040. * @param {*number} num Input number
  15041. */
  15042. function digitLength(num) {
  15043. // Get digit length of e
  15044. var eSplit = num.toString().split(/[eE]/);
  15045. var len = (eSplit[0].split('.')[1] || '').length - +(eSplit[1] || 0);
  15046. return len > 0 ? len : 0;
  15047. }
  15048. /**
  15049. * 把小数转成整数,如果是小数则放大成整数
  15050. * @private
  15051. * @param {*number} num 输入数
  15052. */
  15053. function float2Fixed(num) {
  15054. if (num.toString().indexOf('e') === -1) {
  15055. return Number(num.toString().replace('.', ''));
  15056. }
  15057. var dLen = digitLength(num);
  15058. return dLen > 0 ? strip(Number(num) * Math.pow(10, dLen)) : Number(num);
  15059. }
  15060. /**
  15061. * 检测数字是否越界,如果越界给出提示
  15062. * @private
  15063. * @param {*number} num 输入数
  15064. */
  15065. function checkBoundary(num) {
  15066. if (_boundaryCheckingState) {
  15067. if (num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) {
  15068. console.warn("".concat(num, " \u8D85\u51FA\u4E86\u7CBE\u5EA6\u9650\u5236\uFF0C\u7ED3\u679C\u53EF\u80FD\u4E0D\u6B63\u786E"));
  15069. }
  15070. }
  15071. }
  15072. /**
  15073. * 把递归操作扁平迭代化
  15074. * @param {number[]} arr 要操作的数字数组
  15075. * @param {function} operation 迭代操作
  15076. * @private
  15077. */
  15078. function iteratorOperation(arr, operation) {
  15079. var _arr = (0, _toArray2.default)(arr),
  15080. num1 = _arr[0],
  15081. num2 = _arr[1],
  15082. others = _arr.slice(2);
  15083. var res = operation(num1, num2);
  15084. others.forEach(function (num) {
  15085. res = operation(res, num);
  15086. });
  15087. return res;
  15088. }
  15089. /**
  15090. * 高精度乘法
  15091. * @export
  15092. */
  15093. function times() {
  15094. for (var _len = arguments.length, nums = new Array(_len), _key = 0; _key < _len; _key++) {
  15095. nums[_key] = arguments[_key];
  15096. }
  15097. if (nums.length > 2) {
  15098. return iteratorOperation(nums, times);
  15099. }
  15100. var num1 = nums[0],
  15101. num2 = nums[1];
  15102. var num1Changed = float2Fixed(num1);
  15103. var num2Changed = float2Fixed(num2);
  15104. var baseNum = digitLength(num1) + digitLength(num2);
  15105. var leftValue = num1Changed * num2Changed;
  15106. checkBoundary(leftValue);
  15107. return leftValue / Math.pow(10, baseNum);
  15108. }
  15109. /**
  15110. * 高精度加法
  15111. * @export
  15112. */
  15113. function plus() {
  15114. for (var _len2 = arguments.length, nums = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  15115. nums[_key2] = arguments[_key2];
  15116. }
  15117. if (nums.length > 2) {
  15118. return iteratorOperation(nums, plus);
  15119. }
  15120. var num1 = nums[0],
  15121. num2 = nums[1];
  15122. // 取最大的小数位
  15123. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  15124. // 把小数都转为整数然后再计算
  15125. return (times(num1, baseNum) + times(num2, baseNum)) / baseNum;
  15126. }
  15127. /**
  15128. * 高精度减法
  15129. * @export
  15130. */
  15131. function minus() {
  15132. for (var _len3 = arguments.length, nums = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  15133. nums[_key3] = arguments[_key3];
  15134. }
  15135. if (nums.length > 2) {
  15136. return iteratorOperation(nums, minus);
  15137. }
  15138. var num1 = nums[0],
  15139. num2 = nums[1];
  15140. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  15141. return (times(num1, baseNum) - times(num2, baseNum)) / baseNum;
  15142. }
  15143. /**
  15144. * 高精度除法
  15145. * @export
  15146. */
  15147. function divide() {
  15148. for (var _len4 = arguments.length, nums = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  15149. nums[_key4] = arguments[_key4];
  15150. }
  15151. if (nums.length > 2) {
  15152. return iteratorOperation(nums, divide);
  15153. }
  15154. var num1 = nums[0],
  15155. num2 = nums[1];
  15156. var num1Changed = float2Fixed(num1);
  15157. var num2Changed = float2Fixed(num2);
  15158. checkBoundary(num1Changed);
  15159. checkBoundary(num2Changed);
  15160. // 重要,这里必须用strip进行修正
  15161. return times(num1Changed / num2Changed, strip(Math.pow(10, digitLength(num2) - digitLength(num1))));
  15162. }
  15163. /**
  15164. * 四舍五入
  15165. * @export
  15166. */
  15167. function round(num, ratio) {
  15168. var base = Math.pow(10, ratio);
  15169. var result = divide(Math.round(Math.abs(times(num, base))), base);
  15170. if (num < 0 && result !== 0) {
  15171. result = times(result, -1);
  15172. }
  15173. // 位数不足则补0
  15174. return result;
  15175. }
  15176. /**
  15177. * 是否进行边界检查,默认开启
  15178. * @param flag 标记开关,true 为开启,false 为关闭,默认为 true
  15179. * @export
  15180. */
  15181. function enableBoundaryChecking() {
  15182. var flag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  15183. _boundaryCheckingState = flag;
  15184. }
  15185. var _default = {
  15186. times: times,
  15187. plus: plus,
  15188. minus: minus,
  15189. divide: divide,
  15190. round: round,
  15191. enableBoundaryChecking: enableBoundaryChecking
  15192. };
  15193. exports.default = _default;
  15194. /***/ }),
  15195. /* 70 */
  15196. /*!********************************************************!*\
  15197. !*** ./node_modules/@babel/runtime/helpers/toArray.js ***!
  15198. \********************************************************/
  15199. /*! no static exports found */
  15200. /***/ (function(module, exports, __webpack_require__) {
  15201. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  15202. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  15203. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  15204. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  15205. function _toArray(arr) {
  15206. return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
  15207. }
  15208. module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  15209. /***/ }),
  15210. /* 71 */
  15211. /*!*************************************************************************************************!*\
  15212. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/config.js ***!
  15213. \*************************************************************************************************/
  15214. /*! no static exports found */
  15215. /***/ (function(module, exports, __webpack_require__) {
  15216. "use strict";
  15217. Object.defineProperty(exports, "__esModule", {
  15218. value: true
  15219. });
  15220. exports.default = void 0;
  15221. // 此版本发布于2023-03-27
  15222. var version = '2.0.36';
  15223. // 开发环境才提示,生产环境不会提示
  15224. if (true) {
  15225. console.log("\n %c uView V".concat(version, " %c https://uviewui.com/ \n\n"), 'color: #ffffff; background: #3c9cff; padding:5px 0; border-radius: 5px;');
  15226. }
  15227. var _default = {
  15228. v: version,
  15229. version: version,
  15230. // 主题名称
  15231. type: ['primary', 'success', 'info', 'error', 'warning'],
  15232. // 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持
  15233. color: {
  15234. 'u-primary': '#2979ff',
  15235. 'u-warning': '#ff9900',
  15236. 'u-success': '#19be6b',
  15237. 'u-error': '#fa3534',
  15238. 'u-info': '#909399',
  15239. 'u-main-color': '#303133',
  15240. 'u-content-color': '#606266',
  15241. 'u-tips-color': '#909399',
  15242. 'u-light-color': '#c0c4cc'
  15243. },
  15244. // 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx
  15245. unit: 'px'
  15246. };
  15247. exports.default = _default;
  15248. /***/ }),
  15249. /* 72 */
  15250. /*!************************************************************************************************!*\
  15251. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props.js ***!
  15252. \************************************************************************************************/
  15253. /*! no static exports found */
  15254. /***/ (function(module, exports, __webpack_require__) {
  15255. "use strict";
  15256. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15257. Object.defineProperty(exports, "__esModule", {
  15258. value: true
  15259. });
  15260. exports.default = void 0;
  15261. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  15262. var _config = _interopRequireDefault(__webpack_require__(/*! ./config */ 71));
  15263. var _actionSheet = _interopRequireDefault(__webpack_require__(/*! ./props/actionSheet.js */ 73));
  15264. var _album = _interopRequireDefault(__webpack_require__(/*! ./props/album.js */ 74));
  15265. var _alert = _interopRequireDefault(__webpack_require__(/*! ./props/alert.js */ 75));
  15266. var _avatar = _interopRequireDefault(__webpack_require__(/*! ./props/avatar */ 76));
  15267. var _avatarGroup = _interopRequireDefault(__webpack_require__(/*! ./props/avatarGroup */ 77));
  15268. var _backtop = _interopRequireDefault(__webpack_require__(/*! ./props/backtop */ 78));
  15269. var _badge = _interopRequireDefault(__webpack_require__(/*! ./props/badge */ 79));
  15270. var _button = _interopRequireDefault(__webpack_require__(/*! ./props/button */ 80));
  15271. var _calendar = _interopRequireDefault(__webpack_require__(/*! ./props/calendar */ 81));
  15272. var _carKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/carKeyboard */ 82));
  15273. var _cell = _interopRequireDefault(__webpack_require__(/*! ./props/cell */ 83));
  15274. var _cellGroup = _interopRequireDefault(__webpack_require__(/*! ./props/cellGroup */ 84));
  15275. var _checkbox = _interopRequireDefault(__webpack_require__(/*! ./props/checkbox */ 85));
  15276. var _checkboxGroup = _interopRequireDefault(__webpack_require__(/*! ./props/checkboxGroup */ 86));
  15277. var _circleProgress = _interopRequireDefault(__webpack_require__(/*! ./props/circleProgress */ 87));
  15278. var _code = _interopRequireDefault(__webpack_require__(/*! ./props/code */ 88));
  15279. var _codeInput = _interopRequireDefault(__webpack_require__(/*! ./props/codeInput */ 89));
  15280. var _col = _interopRequireDefault(__webpack_require__(/*! ./props/col */ 90));
  15281. var _collapse = _interopRequireDefault(__webpack_require__(/*! ./props/collapse */ 91));
  15282. var _collapseItem = _interopRequireDefault(__webpack_require__(/*! ./props/collapseItem */ 92));
  15283. var _columnNotice = _interopRequireDefault(__webpack_require__(/*! ./props/columnNotice */ 93));
  15284. var _countDown = _interopRequireDefault(__webpack_require__(/*! ./props/countDown */ 94));
  15285. var _countTo = _interopRequireDefault(__webpack_require__(/*! ./props/countTo */ 95));
  15286. var _datetimePicker = _interopRequireDefault(__webpack_require__(/*! ./props/datetimePicker */ 96));
  15287. var _divider = _interopRequireDefault(__webpack_require__(/*! ./props/divider */ 97));
  15288. var _empty = _interopRequireDefault(__webpack_require__(/*! ./props/empty */ 98));
  15289. var _form = _interopRequireDefault(__webpack_require__(/*! ./props/form */ 99));
  15290. var _formItem = _interopRequireDefault(__webpack_require__(/*! ./props/formItem */ 100));
  15291. var _gap = _interopRequireDefault(__webpack_require__(/*! ./props/gap */ 101));
  15292. var _grid = _interopRequireDefault(__webpack_require__(/*! ./props/grid */ 102));
  15293. var _gridItem = _interopRequireDefault(__webpack_require__(/*! ./props/gridItem */ 103));
  15294. var _icon = _interopRequireDefault(__webpack_require__(/*! ./props/icon */ 104));
  15295. var _image = _interopRequireDefault(__webpack_require__(/*! ./props/image */ 105));
  15296. var _indexAnchor = _interopRequireDefault(__webpack_require__(/*! ./props/indexAnchor */ 106));
  15297. var _indexList = _interopRequireDefault(__webpack_require__(/*! ./props/indexList */ 107));
  15298. var _input = _interopRequireDefault(__webpack_require__(/*! ./props/input */ 108));
  15299. var _keyboard = _interopRequireDefault(__webpack_require__(/*! ./props/keyboard */ 109));
  15300. var _line = _interopRequireDefault(__webpack_require__(/*! ./props/line */ 110));
  15301. var _lineProgress = _interopRequireDefault(__webpack_require__(/*! ./props/lineProgress */ 111));
  15302. var _link = _interopRequireDefault(__webpack_require__(/*! ./props/link */ 112));
  15303. var _list = _interopRequireDefault(__webpack_require__(/*! ./props/list */ 113));
  15304. var _listItem = _interopRequireDefault(__webpack_require__(/*! ./props/listItem */ 114));
  15305. var _loadingIcon = _interopRequireDefault(__webpack_require__(/*! ./props/loadingIcon */ 115));
  15306. var _loadingPage = _interopRequireDefault(__webpack_require__(/*! ./props/loadingPage */ 116));
  15307. var _loadmore = _interopRequireDefault(__webpack_require__(/*! ./props/loadmore */ 117));
  15308. var _modal = _interopRequireDefault(__webpack_require__(/*! ./props/modal */ 118));
  15309. var _navbar = _interopRequireDefault(__webpack_require__(/*! ./props/navbar */ 119));
  15310. var _noNetwork = _interopRequireDefault(__webpack_require__(/*! ./props/noNetwork */ 121));
  15311. var _noticeBar = _interopRequireDefault(__webpack_require__(/*! ./props/noticeBar */ 122));
  15312. var _notify = _interopRequireDefault(__webpack_require__(/*! ./props/notify */ 123));
  15313. var _numberBox = _interopRequireDefault(__webpack_require__(/*! ./props/numberBox */ 124));
  15314. var _numberKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/numberKeyboard */ 125));
  15315. var _overlay = _interopRequireDefault(__webpack_require__(/*! ./props/overlay */ 126));
  15316. var _parse = _interopRequireDefault(__webpack_require__(/*! ./props/parse */ 127));
  15317. var _picker = _interopRequireDefault(__webpack_require__(/*! ./props/picker */ 128));
  15318. var _popup = _interopRequireDefault(__webpack_require__(/*! ./props/popup */ 129));
  15319. var _radio = _interopRequireDefault(__webpack_require__(/*! ./props/radio */ 130));
  15320. var _radioGroup = _interopRequireDefault(__webpack_require__(/*! ./props/radioGroup */ 131));
  15321. var _rate = _interopRequireDefault(__webpack_require__(/*! ./props/rate */ 132));
  15322. var _readMore = _interopRequireDefault(__webpack_require__(/*! ./props/readMore */ 133));
  15323. var _row = _interopRequireDefault(__webpack_require__(/*! ./props/row */ 134));
  15324. var _rowNotice = _interopRequireDefault(__webpack_require__(/*! ./props/rowNotice */ 135));
  15325. var _scrollList = _interopRequireDefault(__webpack_require__(/*! ./props/scrollList */ 136));
  15326. var _search = _interopRequireDefault(__webpack_require__(/*! ./props/search */ 137));
  15327. var _section = _interopRequireDefault(__webpack_require__(/*! ./props/section */ 138));
  15328. var _skeleton = _interopRequireDefault(__webpack_require__(/*! ./props/skeleton */ 139));
  15329. var _slider = _interopRequireDefault(__webpack_require__(/*! ./props/slider */ 140));
  15330. var _statusBar = _interopRequireDefault(__webpack_require__(/*! ./props/statusBar */ 141));
  15331. var _steps = _interopRequireDefault(__webpack_require__(/*! ./props/steps */ 142));
  15332. var _stepsItem = _interopRequireDefault(__webpack_require__(/*! ./props/stepsItem */ 143));
  15333. var _sticky = _interopRequireDefault(__webpack_require__(/*! ./props/sticky */ 144));
  15334. var _subsection = _interopRequireDefault(__webpack_require__(/*! ./props/subsection */ 145));
  15335. var _swipeAction = _interopRequireDefault(__webpack_require__(/*! ./props/swipeAction */ 146));
  15336. var _swipeActionItem = _interopRequireDefault(__webpack_require__(/*! ./props/swipeActionItem */ 147));
  15337. var _swiper = _interopRequireDefault(__webpack_require__(/*! ./props/swiper */ 148));
  15338. var _swipterIndicator = _interopRequireDefault(__webpack_require__(/*! ./props/swipterIndicator */ 149));
  15339. var _switch2 = _interopRequireDefault(__webpack_require__(/*! ./props/switch */ 150));
  15340. var _tabbar = _interopRequireDefault(__webpack_require__(/*! ./props/tabbar */ 151));
  15341. var _tabbarItem = _interopRequireDefault(__webpack_require__(/*! ./props/tabbarItem */ 152));
  15342. var _tabs = _interopRequireDefault(__webpack_require__(/*! ./props/tabs */ 153));
  15343. var _tag = _interopRequireDefault(__webpack_require__(/*! ./props/tag */ 154));
  15344. var _text = _interopRequireDefault(__webpack_require__(/*! ./props/text */ 155));
  15345. var _textarea = _interopRequireDefault(__webpack_require__(/*! ./props/textarea */ 156));
  15346. var _toast = _interopRequireDefault(__webpack_require__(/*! ./props/toast */ 157));
  15347. var _toolbar = _interopRequireDefault(__webpack_require__(/*! ./props/toolbar */ 158));
  15348. var _tooltip = _interopRequireDefault(__webpack_require__(/*! ./props/tooltip */ 159));
  15349. var _transition = _interopRequireDefault(__webpack_require__(/*! ./props/transition */ 160));
  15350. var _upload = _interopRequireDefault(__webpack_require__(/*! ./props/upload */ 161));
  15351. 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; }
  15352. 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; }
  15353. var color = _config.default.color;
  15354. 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);
  15355. exports.default = _default;
  15356. /***/ }),
  15357. /* 73 */
  15358. /*!************************************************************************************************************!*\
  15359. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/actionSheet.js ***!
  15360. \************************************************************************************************************/
  15361. /*! no static exports found */
  15362. /***/ (function(module, exports, __webpack_require__) {
  15363. "use strict";
  15364. Object.defineProperty(exports, "__esModule", {
  15365. value: true
  15366. });
  15367. exports.default = void 0;
  15368. /*
  15369. * @Author : LQ
  15370. * @Description :
  15371. * @version : 1.0
  15372. * @Date : 2021-08-20 16:44:21
  15373. * @LastAuthor : LQ
  15374. * @lastTime : 2021-08-20 16:44:35
  15375. * @FilePath : /u-view2.0/uview-ui/libs/config/props/actionSheet.js
  15376. */
  15377. var _default = {
  15378. // action-sheet组件
  15379. actionSheet: {
  15380. show: false,
  15381. title: '',
  15382. description: '',
  15383. actions: function actions() {
  15384. return [];
  15385. },
  15386. index: '',
  15387. cancelText: '',
  15388. closeOnClickAction: true,
  15389. safeAreaInsetBottom: true,
  15390. openType: '',
  15391. closeOnClickOverlay: true,
  15392. round: 0
  15393. }
  15394. };
  15395. exports.default = _default;
  15396. /***/ }),
  15397. /* 74 */
  15398. /*!******************************************************************************************************!*\
  15399. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/album.js ***!
  15400. \******************************************************************************************************/
  15401. /*! no static exports found */
  15402. /***/ (function(module, exports, __webpack_require__) {
  15403. "use strict";
  15404. Object.defineProperty(exports, "__esModule", {
  15405. value: true
  15406. });
  15407. exports.default = void 0;
  15408. /*
  15409. * @Author : LQ
  15410. * @Description :
  15411. * @version : 1.0
  15412. * @Date : 2021-08-20 16:44:21
  15413. * @LastAuthor : LQ
  15414. * @lastTime : 2021-08-20 16:47:24
  15415. * @FilePath : /u-view2.0/uview-ui/libs/config/props/album.js
  15416. */
  15417. var _default = {
  15418. // album 组件
  15419. album: {
  15420. urls: function urls() {
  15421. return [];
  15422. },
  15423. keyName: '',
  15424. singleSize: 180,
  15425. multipleSize: 70,
  15426. space: 6,
  15427. singleMode: 'scaleToFill',
  15428. multipleMode: 'aspectFill',
  15429. maxCount: 9,
  15430. previewFullImage: true,
  15431. rowCount: 3,
  15432. showMore: true
  15433. }
  15434. };
  15435. exports.default = _default;
  15436. /***/ }),
  15437. /* 75 */
  15438. /*!******************************************************************************************************!*\
  15439. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/alert.js ***!
  15440. \******************************************************************************************************/
  15441. /*! no static exports found */
  15442. /***/ (function(module, exports, __webpack_require__) {
  15443. "use strict";
  15444. Object.defineProperty(exports, "__esModule", {
  15445. value: true
  15446. });
  15447. exports.default = void 0;
  15448. /*
  15449. * @Author : LQ
  15450. * @Description :
  15451. * @version : 1.0
  15452. * @Date : 2021-08-20 16:44:21
  15453. * @LastAuthor : LQ
  15454. * @lastTime : 2021-08-20 16:48:53
  15455. * @FilePath : /u-view2.0/uview-ui/libs/config/props/alert.js
  15456. */
  15457. var _default = {
  15458. // alert警告组件
  15459. alert: {
  15460. title: '',
  15461. type: 'warning',
  15462. description: '',
  15463. closable: false,
  15464. showIcon: false,
  15465. effect: 'light',
  15466. center: false,
  15467. fontSize: 14
  15468. }
  15469. };
  15470. exports.default = _default;
  15471. /***/ }),
  15472. /* 76 */
  15473. /*!*******************************************************************************************************!*\
  15474. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/avatar.js ***!
  15475. \*******************************************************************************************************/
  15476. /*! no static exports found */
  15477. /***/ (function(module, exports, __webpack_require__) {
  15478. "use strict";
  15479. Object.defineProperty(exports, "__esModule", {
  15480. value: true
  15481. });
  15482. exports.default = void 0;
  15483. /*
  15484. * @Author : LQ
  15485. * @Description :
  15486. * @version : 1.0
  15487. * @Date : 2021-08-20 16:44:21
  15488. * @LastAuthor : LQ
  15489. * @lastTime : 2021-08-20 16:49:22
  15490. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatar.js
  15491. */
  15492. var _default = {
  15493. // avatar 组件
  15494. avatar: {
  15495. src: '',
  15496. shape: 'circle',
  15497. size: 40,
  15498. mode: 'scaleToFill',
  15499. text: '',
  15500. bgColor: '#c0c4cc',
  15501. color: '#ffffff',
  15502. fontSize: 18,
  15503. icon: '',
  15504. mpAvatar: false,
  15505. randomBgColor: false,
  15506. defaultUrl: '',
  15507. colorIndex: '',
  15508. name: ''
  15509. }
  15510. };
  15511. exports.default = _default;
  15512. /***/ }),
  15513. /* 77 */
  15514. /*!************************************************************************************************************!*\
  15515. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/avatarGroup.js ***!
  15516. \************************************************************************************************************/
  15517. /*! no static exports found */
  15518. /***/ (function(module, exports, __webpack_require__) {
  15519. "use strict";
  15520. Object.defineProperty(exports, "__esModule", {
  15521. value: true
  15522. });
  15523. exports.default = void 0;
  15524. /*
  15525. * @Author : LQ
  15526. * @Description :
  15527. * @version : 1.0
  15528. * @Date : 2021-08-20 16:44:21
  15529. * @LastAuthor : LQ
  15530. * @lastTime : 2021-08-20 16:49:55
  15531. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatarGroup.js
  15532. */
  15533. var _default = {
  15534. // avatarGroup 组件
  15535. avatarGroup: {
  15536. urls: function urls() {
  15537. return [];
  15538. },
  15539. maxCount: 5,
  15540. shape: 'circle',
  15541. mode: 'scaleToFill',
  15542. showMore: true,
  15543. size: 40,
  15544. keyName: '',
  15545. gap: 0.5,
  15546. extraValue: 0
  15547. }
  15548. };
  15549. exports.default = _default;
  15550. /***/ }),
  15551. /* 78 */
  15552. /*!********************************************************************************************************!*\
  15553. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/backtop.js ***!
  15554. \********************************************************************************************************/
  15555. /*! no static exports found */
  15556. /***/ (function(module, exports, __webpack_require__) {
  15557. "use strict";
  15558. Object.defineProperty(exports, "__esModule", {
  15559. value: true
  15560. });
  15561. exports.default = void 0;
  15562. /*
  15563. * @Author : LQ
  15564. * @Description :
  15565. * @version : 1.0
  15566. * @Date : 2021-08-20 16:44:21
  15567. * @LastAuthor : LQ
  15568. * @lastTime : 2021-08-20 16:50:18
  15569. * @FilePath : /u-view2.0/uview-ui/libs/config/props/backtop.js
  15570. */
  15571. var _default = {
  15572. // backtop组件
  15573. backtop: {
  15574. mode: 'circle',
  15575. icon: 'arrow-upward',
  15576. text: '',
  15577. duration: 100,
  15578. scrollTop: 0,
  15579. top: 400,
  15580. bottom: 100,
  15581. right: 20,
  15582. zIndex: 9,
  15583. iconStyle: function iconStyle() {
  15584. return {
  15585. color: '#909399',
  15586. fontSize: '19px'
  15587. };
  15588. }
  15589. }
  15590. };
  15591. exports.default = _default;
  15592. /***/ }),
  15593. /* 79 */
  15594. /*!******************************************************************************************************!*\
  15595. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/badge.js ***!
  15596. \******************************************************************************************************/
  15597. /*! no static exports found */
  15598. /***/ (function(module, exports, __webpack_require__) {
  15599. "use strict";
  15600. Object.defineProperty(exports, "__esModule", {
  15601. value: true
  15602. });
  15603. exports.default = void 0;
  15604. /*
  15605. * @Author : LQ
  15606. * @Description :
  15607. * @version : 1.0
  15608. * @Date : 2021-08-20 16:44:21
  15609. * @LastAuthor : LQ
  15610. * @lastTime : 2021-08-23 19:51:50
  15611. * @FilePath : /u-view2.0/uview-ui/libs/config/props/badge.js
  15612. */
  15613. var _default = {
  15614. // 徽标数组件
  15615. badge: {
  15616. isDot: false,
  15617. value: '',
  15618. show: true,
  15619. max: 999,
  15620. type: 'error',
  15621. showZero: false,
  15622. bgColor: null,
  15623. color: null,
  15624. shape: 'circle',
  15625. numberType: 'overflow',
  15626. offset: function offset() {
  15627. return [];
  15628. },
  15629. inverted: false,
  15630. absolute: false
  15631. }
  15632. };
  15633. exports.default = _default;
  15634. /***/ }),
  15635. /* 80 */
  15636. /*!*******************************************************************************************************!*\
  15637. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/button.js ***!
  15638. \*******************************************************************************************************/
  15639. /*! no static exports found */
  15640. /***/ (function(module, exports, __webpack_require__) {
  15641. "use strict";
  15642. Object.defineProperty(exports, "__esModule", {
  15643. value: true
  15644. });
  15645. exports.default = void 0;
  15646. /*
  15647. * @Author : LQ
  15648. * @Description :
  15649. * @version : 1.0
  15650. * @Date : 2021-08-20 16:44:21
  15651. * @LastAuthor : LQ
  15652. * @lastTime : 2021-08-20 16:51:27
  15653. * @FilePath : /u-view2.0/uview-ui/libs/config/props/button.js
  15654. */
  15655. var _default = {
  15656. // button组件
  15657. button: {
  15658. hairline: false,
  15659. type: 'info',
  15660. size: 'normal',
  15661. shape: 'square',
  15662. plain: false,
  15663. disabled: false,
  15664. loading: false,
  15665. loadingText: '',
  15666. loadingMode: 'spinner',
  15667. loadingSize: 15,
  15668. openType: '',
  15669. formType: '',
  15670. appParameter: '',
  15671. hoverStopPropagation: true,
  15672. lang: 'en',
  15673. sessionFrom: '',
  15674. sendMessageTitle: '',
  15675. sendMessagePath: '',
  15676. sendMessageImg: '',
  15677. showMessageCard: false,
  15678. dataName: '',
  15679. throttleTime: 0,
  15680. hoverStartTime: 0,
  15681. hoverStayTime: 200,
  15682. text: '',
  15683. icon: '',
  15684. iconColor: '',
  15685. color: ''
  15686. }
  15687. };
  15688. exports.default = _default;
  15689. /***/ }),
  15690. /* 81 */
  15691. /*!*********************************************************************************************************!*\
  15692. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/calendar.js ***!
  15693. \*********************************************************************************************************/
  15694. /*! no static exports found */
  15695. /***/ (function(module, exports, __webpack_require__) {
  15696. "use strict";
  15697. Object.defineProperty(exports, "__esModule", {
  15698. value: true
  15699. });
  15700. exports.default = void 0;
  15701. /*
  15702. * @Author : LQ
  15703. * @Description :
  15704. * @version : 1.0
  15705. * @Date : 2021-08-20 16:44:21
  15706. * @LastAuthor : LQ
  15707. * @lastTime : 2021-08-20 16:52:43
  15708. * @FilePath : /u-view2.0/uview-ui/libs/config/props/calendar.js
  15709. */
  15710. var _default = {
  15711. // calendar 组件
  15712. calendar: {
  15713. title: '日期选择',
  15714. showTitle: true,
  15715. showSubtitle: true,
  15716. mode: 'single',
  15717. startText: '开始',
  15718. endText: '结束',
  15719. customList: function customList() {
  15720. return [];
  15721. },
  15722. color: '#3c9cff',
  15723. minDate: 0,
  15724. maxDate: 0,
  15725. defaultDate: null,
  15726. maxCount: Number.MAX_SAFE_INTEGER,
  15727. // Infinity
  15728. rowHeight: 56,
  15729. formatter: null,
  15730. showLunar: false,
  15731. showMark: true,
  15732. confirmText: '确定',
  15733. confirmDisabledText: '确定',
  15734. show: false,
  15735. closeOnClickOverlay: false,
  15736. readonly: false,
  15737. showConfirm: true,
  15738. maxRange: Number.MAX_SAFE_INTEGER,
  15739. // Infinity
  15740. rangePrompt: '',
  15741. showRangePrompt: true,
  15742. allowSameDay: false,
  15743. round: 0,
  15744. monthNum: 3
  15745. }
  15746. };
  15747. exports.default = _default;
  15748. /***/ }),
  15749. /* 82 */
  15750. /*!************************************************************************************************************!*\
  15751. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/carKeyboard.js ***!
  15752. \************************************************************************************************************/
  15753. /*! no static exports found */
  15754. /***/ (function(module, exports, __webpack_require__) {
  15755. "use strict";
  15756. Object.defineProperty(exports, "__esModule", {
  15757. value: true
  15758. });
  15759. exports.default = void 0;
  15760. /*
  15761. * @Author : LQ
  15762. * @Description :
  15763. * @version : 1.0
  15764. * @Date : 2021-08-20 16:44:21
  15765. * @LastAuthor : LQ
  15766. * @lastTime : 2021-08-20 16:53:20
  15767. * @FilePath : /u-view2.0/uview-ui/libs/config/props/carKeyboard.js
  15768. */
  15769. var _default = {
  15770. // 车牌号键盘
  15771. carKeyboard: {
  15772. random: false
  15773. }
  15774. };
  15775. exports.default = _default;
  15776. /***/ }),
  15777. /* 83 */
  15778. /*!*****************************************************************************************************!*\
  15779. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/cell.js ***!
  15780. \*****************************************************************************************************/
  15781. /*! no static exports found */
  15782. /***/ (function(module, exports, __webpack_require__) {
  15783. "use strict";
  15784. Object.defineProperty(exports, "__esModule", {
  15785. value: true
  15786. });
  15787. exports.default = void 0;
  15788. /*
  15789. * @Author : LQ
  15790. * @Description :
  15791. * @version : 1.0
  15792. * @Date : 2021-08-20 16:44:21
  15793. * @LastAuthor : LQ
  15794. * @lastTime : 2021-08-23 20:53:09
  15795. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cell.js
  15796. */
  15797. var _default = {
  15798. // cell组件的props
  15799. cell: {
  15800. customClass: '',
  15801. title: '',
  15802. label: '',
  15803. value: '',
  15804. icon: '',
  15805. disabled: false,
  15806. border: true,
  15807. center: false,
  15808. url: '',
  15809. linkType: 'navigateTo',
  15810. clickable: false,
  15811. isLink: false,
  15812. required: false,
  15813. arrowDirection: '',
  15814. iconStyle: {},
  15815. rightIconStyle: {},
  15816. rightIcon: 'arrow-right',
  15817. titleStyle: {},
  15818. size: '',
  15819. stop: true,
  15820. name: ''
  15821. }
  15822. };
  15823. exports.default = _default;
  15824. /***/ }),
  15825. /* 84 */
  15826. /*!**********************************************************************************************************!*\
  15827. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/cellGroup.js ***!
  15828. \**********************************************************************************************************/
  15829. /*! no static exports found */
  15830. /***/ (function(module, exports, __webpack_require__) {
  15831. "use strict";
  15832. Object.defineProperty(exports, "__esModule", {
  15833. value: true
  15834. });
  15835. exports.default = void 0;
  15836. /*
  15837. * @Author : LQ
  15838. * @Description :
  15839. * @version : 1.0
  15840. * @Date : 2021-08-20 16:44:21
  15841. * @LastAuthor : LQ
  15842. * @lastTime : 2021-08-20 16:54:16
  15843. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cellGroup.js
  15844. */
  15845. var _default = {
  15846. // cell-group组件的props
  15847. cellGroup: {
  15848. title: '',
  15849. border: true,
  15850. customStyle: {}
  15851. }
  15852. };
  15853. exports.default = _default;
  15854. /***/ }),
  15855. /* 85 */
  15856. /*!*********************************************************************************************************!*\
  15857. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/checkbox.js ***!
  15858. \*********************************************************************************************************/
  15859. /*! no static exports found */
  15860. /***/ (function(module, exports, __webpack_require__) {
  15861. "use strict";
  15862. Object.defineProperty(exports, "__esModule", {
  15863. value: true
  15864. });
  15865. exports.default = void 0;
  15866. /*
  15867. * @Author : LQ
  15868. * @Description :
  15869. * @version : 1.0
  15870. * @Date : 2021-08-20 16:44:21
  15871. * @LastAuthor : LQ
  15872. * @lastTime : 2021-08-23 21:06:59
  15873. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkbox.js
  15874. */
  15875. var _default = {
  15876. // checkbox组件
  15877. checkbox: {
  15878. name: '',
  15879. shape: '',
  15880. size: '',
  15881. checkbox: false,
  15882. disabled: '',
  15883. activeColor: '',
  15884. inactiveColor: '',
  15885. iconSize: '',
  15886. iconColor: '',
  15887. label: '',
  15888. labelSize: '',
  15889. labelColor: '',
  15890. labelDisabled: ''
  15891. }
  15892. };
  15893. exports.default = _default;
  15894. /***/ }),
  15895. /* 86 */
  15896. /*!**************************************************************************************************************!*\
  15897. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/checkboxGroup.js ***!
  15898. \**************************************************************************************************************/
  15899. /*! no static exports found */
  15900. /***/ (function(module, exports, __webpack_require__) {
  15901. "use strict";
  15902. Object.defineProperty(exports, "__esModule", {
  15903. value: true
  15904. });
  15905. exports.default = void 0;
  15906. /*
  15907. * @Author : LQ
  15908. * @Description :
  15909. * @version : 1.0
  15910. * @Date : 2021-08-20 16:44:21
  15911. * @LastAuthor : LQ
  15912. * @lastTime : 2021-08-20 16:54:47
  15913. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkboxGroup.js
  15914. */
  15915. var _default = {
  15916. // checkbox-group组件
  15917. checkboxGroup: {
  15918. name: '',
  15919. value: function value() {
  15920. return [];
  15921. },
  15922. shape: 'square',
  15923. disabled: false,
  15924. activeColor: '#2979ff',
  15925. inactiveColor: '#c8c9cc',
  15926. size: 18,
  15927. placement: 'row',
  15928. labelSize: 14,
  15929. labelColor: '#303133',
  15930. labelDisabled: false,
  15931. iconColor: '#ffffff',
  15932. iconSize: 12,
  15933. iconPlacement: 'left',
  15934. borderBottom: false
  15935. }
  15936. };
  15937. exports.default = _default;
  15938. /***/ }),
  15939. /* 87 */
  15940. /*!***************************************************************************************************************!*\
  15941. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/circleProgress.js ***!
  15942. \***************************************************************************************************************/
  15943. /*! no static exports found */
  15944. /***/ (function(module, exports, __webpack_require__) {
  15945. "use strict";
  15946. Object.defineProperty(exports, "__esModule", {
  15947. value: true
  15948. });
  15949. exports.default = void 0;
  15950. /*
  15951. * @Author : LQ
  15952. * @Description :
  15953. * @version : 1.0
  15954. * @Date : 2021-08-20 16:44:21
  15955. * @LastAuthor : LQ
  15956. * @lastTime : 2021-08-20 16:55:02
  15957. * @FilePath : /u-view2.0/uview-ui/libs/config/props/circleProgress.js
  15958. */
  15959. var _default = {
  15960. // circleProgress 组件
  15961. circleProgress: {
  15962. percentage: 30
  15963. }
  15964. };
  15965. exports.default = _default;
  15966. /***/ }),
  15967. /* 88 */
  15968. /*!*****************************************************************************************************!*\
  15969. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/code.js ***!
  15970. \*****************************************************************************************************/
  15971. /*! no static exports found */
  15972. /***/ (function(module, exports, __webpack_require__) {
  15973. "use strict";
  15974. Object.defineProperty(exports, "__esModule", {
  15975. value: true
  15976. });
  15977. exports.default = void 0;
  15978. /*
  15979. * @Author : LQ
  15980. * @Description :
  15981. * @version : 1.0
  15982. * @Date : 2021-08-20 16:44:21
  15983. * @LastAuthor : LQ
  15984. * @lastTime : 2021-08-20 16:55:27
  15985. * @FilePath : /u-view2.0/uview-ui/libs/config/props/code.js
  15986. */
  15987. var _default = {
  15988. // code 组件
  15989. code: {
  15990. seconds: 60,
  15991. startText: '获取验证码',
  15992. changeText: 'X秒重新获取',
  15993. endText: '重新获取',
  15994. keepRunning: false,
  15995. uniqueKey: ''
  15996. }
  15997. };
  15998. exports.default = _default;
  15999. /***/ }),
  16000. /* 89 */
  16001. /*!**********************************************************************************************************!*\
  16002. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/codeInput.js ***!
  16003. \**********************************************************************************************************/
  16004. /*! no static exports found */
  16005. /***/ (function(module, exports, __webpack_require__) {
  16006. "use strict";
  16007. Object.defineProperty(exports, "__esModule", {
  16008. value: true
  16009. });
  16010. exports.default = void 0;
  16011. /*
  16012. * @Author : LQ
  16013. * @Description :
  16014. * @version : 1.0
  16015. * @Date : 2021-08-20 16:44:21
  16016. * @LastAuthor : LQ
  16017. * @lastTime : 2021-08-20 16:55:58
  16018. * @FilePath : /u-view2.0/uview-ui/libs/config/props/codeInput.js
  16019. */
  16020. var _default = {
  16021. // codeInput 组件
  16022. codeInput: {
  16023. adjustPosition: true,
  16024. maxlength: 6,
  16025. dot: false,
  16026. mode: 'box',
  16027. hairline: false,
  16028. space: 10,
  16029. value: '',
  16030. focus: false,
  16031. bold: false,
  16032. color: '#606266',
  16033. fontSize: 18,
  16034. size: 35,
  16035. disabledKeyboard: false,
  16036. borderColor: '#c9cacc',
  16037. disabledDot: true
  16038. }
  16039. };
  16040. exports.default = _default;
  16041. /***/ }),
  16042. /* 90 */
  16043. /*!****************************************************************************************************!*\
  16044. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/col.js ***!
  16045. \****************************************************************************************************/
  16046. /*! no static exports found */
  16047. /***/ (function(module, exports, __webpack_require__) {
  16048. "use strict";
  16049. Object.defineProperty(exports, "__esModule", {
  16050. value: true
  16051. });
  16052. exports.default = void 0;
  16053. /*
  16054. * @Author : LQ
  16055. * @Description :
  16056. * @version : 1.0
  16057. * @Date : 2021-08-20 16:44:21
  16058. * @LastAuthor : LQ
  16059. * @lastTime : 2021-08-20 16:56:12
  16060. * @FilePath : /u-view2.0/uview-ui/libs/config/props/col.js
  16061. */
  16062. var _default = {
  16063. // col 组件
  16064. col: {
  16065. span: 12,
  16066. offset: 0,
  16067. justify: 'start',
  16068. align: 'stretch',
  16069. textAlign: 'left'
  16070. }
  16071. };
  16072. exports.default = _default;
  16073. /***/ }),
  16074. /* 91 */
  16075. /*!*********************************************************************************************************!*\
  16076. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/collapse.js ***!
  16077. \*********************************************************************************************************/
  16078. /*! no static exports found */
  16079. /***/ (function(module, exports, __webpack_require__) {
  16080. "use strict";
  16081. Object.defineProperty(exports, "__esModule", {
  16082. value: true
  16083. });
  16084. exports.default = void 0;
  16085. /*
  16086. * @Author : LQ
  16087. * @Description :
  16088. * @version : 1.0
  16089. * @Date : 2021-08-20 16:44:21
  16090. * @LastAuthor : LQ
  16091. * @lastTime : 2021-08-20 16:56:30
  16092. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapse.js
  16093. */
  16094. var _default = {
  16095. // collapse 组件
  16096. collapse: {
  16097. value: null,
  16098. accordion: false,
  16099. border: true
  16100. }
  16101. };
  16102. exports.default = _default;
  16103. /***/ }),
  16104. /* 92 */
  16105. /*!*************************************************************************************************************!*\
  16106. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/collapseItem.js ***!
  16107. \*************************************************************************************************************/
  16108. /*! no static exports found */
  16109. /***/ (function(module, exports, __webpack_require__) {
  16110. "use strict";
  16111. Object.defineProperty(exports, "__esModule", {
  16112. value: true
  16113. });
  16114. exports.default = void 0;
  16115. /*
  16116. * @Author : LQ
  16117. * @Description :
  16118. * @version : 1.0
  16119. * @Date : 2021-08-20 16:44:21
  16120. * @LastAuthor : LQ
  16121. * @lastTime : 2021-08-20 16:56:42
  16122. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapseItem.js
  16123. */
  16124. var _default = {
  16125. // collapseItem 组件
  16126. collapseItem: {
  16127. title: '',
  16128. value: '',
  16129. label: '',
  16130. disabled: false,
  16131. isLink: true,
  16132. clickable: true,
  16133. border: true,
  16134. align: 'left',
  16135. name: '',
  16136. icon: '',
  16137. duration: 300
  16138. }
  16139. };
  16140. exports.default = _default;
  16141. /***/ }),
  16142. /* 93 */
  16143. /*!*************************************************************************************************************!*\
  16144. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/columnNotice.js ***!
  16145. \*************************************************************************************************************/
  16146. /*! no static exports found */
  16147. /***/ (function(module, exports, __webpack_require__) {
  16148. "use strict";
  16149. Object.defineProperty(exports, "__esModule", {
  16150. value: true
  16151. });
  16152. exports.default = void 0;
  16153. /*
  16154. * @Author : LQ
  16155. * @Description :
  16156. * @version : 1.0
  16157. * @Date : 2021-08-20 16:44:21
  16158. * @LastAuthor : LQ
  16159. * @lastTime : 2021-08-20 16:57:16
  16160. * @FilePath : /u-view2.0/uview-ui/libs/config/props/columnNotice.js
  16161. */
  16162. var _default = {
  16163. // columnNotice 组件
  16164. columnNotice: {
  16165. text: '',
  16166. icon: 'volume',
  16167. mode: '',
  16168. color: '#f9ae3d',
  16169. bgColor: '#fdf6ec',
  16170. fontSize: 14,
  16171. speed: 80,
  16172. step: false,
  16173. duration: 1500,
  16174. disableTouch: true
  16175. }
  16176. };
  16177. exports.default = _default;
  16178. /***/ }),
  16179. /* 94 */
  16180. /*!**********************************************************************************************************!*\
  16181. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/countDown.js ***!
  16182. \**********************************************************************************************************/
  16183. /*! no static exports found */
  16184. /***/ (function(module, exports, __webpack_require__) {
  16185. "use strict";
  16186. Object.defineProperty(exports, "__esModule", {
  16187. value: true
  16188. });
  16189. exports.default = void 0;
  16190. /*
  16191. * @Author : LQ
  16192. * @Description :
  16193. * @version : 1.0
  16194. * @Date : 2021-08-20 16:44:21
  16195. * @LastAuthor : LQ
  16196. * @lastTime : 2021-08-20 17:11:29
  16197. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countDown.js
  16198. */
  16199. var _default = {
  16200. // u-count-down 计时器组件
  16201. countDown: {
  16202. time: 0,
  16203. format: 'HH:mm:ss',
  16204. autoStart: true,
  16205. millisecond: false
  16206. }
  16207. };
  16208. exports.default = _default;
  16209. /***/ }),
  16210. /* 95 */
  16211. /*!********************************************************************************************************!*\
  16212. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/countTo.js ***!
  16213. \********************************************************************************************************/
  16214. /*! no static exports found */
  16215. /***/ (function(module, exports, __webpack_require__) {
  16216. "use strict";
  16217. Object.defineProperty(exports, "__esModule", {
  16218. value: true
  16219. });
  16220. exports.default = void 0;
  16221. /*
  16222. * @Author : LQ
  16223. * @Description :
  16224. * @version : 1.0
  16225. * @Date : 2021-08-20 16:44:21
  16226. * @LastAuthor : LQ
  16227. * @lastTime : 2021-08-20 16:57:32
  16228. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countTo.js
  16229. */
  16230. var _default = {
  16231. // countTo 组件
  16232. countTo: {
  16233. startVal: 0,
  16234. endVal: 0,
  16235. duration: 2000,
  16236. autoplay: true,
  16237. decimals: 0,
  16238. useEasing: true,
  16239. decimal: '.',
  16240. color: '#606266',
  16241. fontSize: 22,
  16242. bold: false,
  16243. separator: ''
  16244. }
  16245. };
  16246. exports.default = _default;
  16247. /***/ }),
  16248. /* 96 */
  16249. /*!***************************************************************************************************************!*\
  16250. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/datetimePicker.js ***!
  16251. \***************************************************************************************************************/
  16252. /*! no static exports found */
  16253. /***/ (function(module, exports, __webpack_require__) {
  16254. "use strict";
  16255. Object.defineProperty(exports, "__esModule", {
  16256. value: true
  16257. });
  16258. exports.default = void 0;
  16259. /*
  16260. * @Author : LQ
  16261. * @Description :
  16262. * @version : 1.0
  16263. * @Date : 2021-08-20 16:44:21
  16264. * @LastAuthor : LQ
  16265. * @lastTime : 2021-08-20 16:57:48
  16266. * @FilePath : /u-view2.0/uview-ui/libs/config/props/datetimePicker.js
  16267. */
  16268. var _default = {
  16269. // datetimePicker 组件
  16270. datetimePicker: {
  16271. show: false,
  16272. showToolbar: true,
  16273. value: '',
  16274. title: '',
  16275. mode: 'datetime',
  16276. maxDate: new Date(new Date().getFullYear() + 10, 0, 1).getTime(),
  16277. minDate: new Date(new Date().getFullYear() - 10, 0, 1).getTime(),
  16278. minHour: 0,
  16279. maxHour: 23,
  16280. minMinute: 0,
  16281. maxMinute: 59,
  16282. filter: null,
  16283. formatter: null,
  16284. loading: false,
  16285. itemHeight: 44,
  16286. cancelText: '取消',
  16287. confirmText: '确认',
  16288. cancelColor: '#909193',
  16289. confirmColor: '#3c9cff',
  16290. visibleItemCount: 5,
  16291. closeOnClickOverlay: false,
  16292. defaultIndex: function defaultIndex() {
  16293. return [];
  16294. }
  16295. }
  16296. };
  16297. exports.default = _default;
  16298. /***/ }),
  16299. /* 97 */
  16300. /*!********************************************************************************************************!*\
  16301. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/divider.js ***!
  16302. \********************************************************************************************************/
  16303. /*! no static exports found */
  16304. /***/ (function(module, exports, __webpack_require__) {
  16305. "use strict";
  16306. Object.defineProperty(exports, "__esModule", {
  16307. value: true
  16308. });
  16309. exports.default = void 0;
  16310. /*
  16311. * @Author : LQ
  16312. * @Description :
  16313. * @version : 1.0
  16314. * @Date : 2021-08-20 16:44:21
  16315. * @LastAuthor : LQ
  16316. * @lastTime : 2021-08-20 16:58:03
  16317. * @FilePath : /u-view2.0/uview-ui/libs/config/props/divider.js
  16318. */
  16319. var _default = {
  16320. // divider组件
  16321. divider: {
  16322. dashed: false,
  16323. hairline: true,
  16324. dot: false,
  16325. textPosition: 'center',
  16326. text: '',
  16327. textSize: 14,
  16328. textColor: '#909399',
  16329. lineColor: '#dcdfe6'
  16330. }
  16331. };
  16332. exports.default = _default;
  16333. /***/ }),
  16334. /* 98 */
  16335. /*!******************************************************************************************************!*\
  16336. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/empty.js ***!
  16337. \******************************************************************************************************/
  16338. /*! no static exports found */
  16339. /***/ (function(module, exports, __webpack_require__) {
  16340. "use strict";
  16341. Object.defineProperty(exports, "__esModule", {
  16342. value: true
  16343. });
  16344. exports.default = void 0;
  16345. /*
  16346. * @Author : LQ
  16347. * @Description :
  16348. * @version : 1.0
  16349. * @Date : 2021-08-20 16:44:21
  16350. * @LastAuthor : LQ
  16351. * @lastTime : 2021-08-20 17:03:27
  16352. * @FilePath : /u-view2.0/uview-ui/libs/config/props/empty.js
  16353. */
  16354. var _default = {
  16355. // empty组件
  16356. empty: {
  16357. icon: '',
  16358. text: '',
  16359. textColor: '#c0c4cc',
  16360. textSize: 14,
  16361. iconColor: '#c0c4cc',
  16362. iconSize: 90,
  16363. mode: 'data',
  16364. width: 160,
  16365. height: 160,
  16366. show: true,
  16367. marginTop: 0
  16368. }
  16369. };
  16370. exports.default = _default;
  16371. /***/ }),
  16372. /* 99 */
  16373. /*!*****************************************************************************************************!*\
  16374. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/form.js ***!
  16375. \*****************************************************************************************************/
  16376. /*! no static exports found */
  16377. /***/ (function(module, exports, __webpack_require__) {
  16378. "use strict";
  16379. Object.defineProperty(exports, "__esModule", {
  16380. value: true
  16381. });
  16382. exports.default = void 0;
  16383. /*
  16384. * @Author : LQ
  16385. * @Description :
  16386. * @version : 1.0
  16387. * @Date : 2021-08-20 16:44:21
  16388. * @LastAuthor : LQ
  16389. * @lastTime : 2021-08-20 17:03:49
  16390. * @FilePath : /u-view2.0/uview-ui/libs/config/props/form.js
  16391. */
  16392. var _default = {
  16393. // form 组件
  16394. form: {
  16395. model: function model() {
  16396. return {};
  16397. },
  16398. rules: function rules() {
  16399. return {};
  16400. },
  16401. errorType: 'message',
  16402. borderBottom: true,
  16403. labelPosition: 'left',
  16404. labelWidth: 45,
  16405. labelAlign: 'left',
  16406. labelStyle: function labelStyle() {
  16407. return {};
  16408. }
  16409. }
  16410. };
  16411. exports.default = _default;
  16412. /***/ }),
  16413. /* 100 */
  16414. /*!*********************************************************************************************************!*\
  16415. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/formItem.js ***!
  16416. \*********************************************************************************************************/
  16417. /*! no static exports found */
  16418. /***/ (function(module, exports, __webpack_require__) {
  16419. "use strict";
  16420. Object.defineProperty(exports, "__esModule", {
  16421. value: true
  16422. });
  16423. exports.default = void 0;
  16424. /*
  16425. * @Author : LQ
  16426. * @Description :
  16427. * @version : 1.0
  16428. * @Date : 2021-08-20 16:44:21
  16429. * @LastAuthor : LQ
  16430. * @lastTime : 2021-08-20 17:04:32
  16431. * @FilePath : /u-view2.0/uview-ui/libs/config/props/formItem.js
  16432. */
  16433. var _default = {
  16434. // formItem 组件
  16435. formItem: {
  16436. label: '',
  16437. prop: '',
  16438. borderBottom: '',
  16439. labelPosition: '',
  16440. labelWidth: '',
  16441. rightIcon: '',
  16442. leftIcon: '',
  16443. required: false,
  16444. leftIconStyle: ''
  16445. }
  16446. };
  16447. exports.default = _default;
  16448. /***/ }),
  16449. /* 101 */
  16450. /*!****************************************************************************************************!*\
  16451. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/gap.js ***!
  16452. \****************************************************************************************************/
  16453. /*! no static exports found */
  16454. /***/ (function(module, exports, __webpack_require__) {
  16455. "use strict";
  16456. Object.defineProperty(exports, "__esModule", {
  16457. value: true
  16458. });
  16459. exports.default = void 0;
  16460. /*
  16461. * @Author : LQ
  16462. * @Description :
  16463. * @version : 1.0
  16464. * @Date : 2021-08-20 16:44:21
  16465. * @LastAuthor : LQ
  16466. * @lastTime : 2021-08-20 17:05:25
  16467. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gap.js
  16468. */
  16469. var _default = {
  16470. // gap组件
  16471. gap: {
  16472. bgColor: 'transparent',
  16473. height: 20,
  16474. marginTop: 0,
  16475. marginBottom: 0,
  16476. customStyle: {}
  16477. }
  16478. };
  16479. exports.default = _default;
  16480. /***/ }),
  16481. /* 102 */
  16482. /*!*****************************************************************************************************!*\
  16483. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/grid.js ***!
  16484. \*****************************************************************************************************/
  16485. /*! no static exports found */
  16486. /***/ (function(module, exports, __webpack_require__) {
  16487. "use strict";
  16488. Object.defineProperty(exports, "__esModule", {
  16489. value: true
  16490. });
  16491. exports.default = void 0;
  16492. /*
  16493. * @Author : LQ
  16494. * @Description :
  16495. * @version : 1.0
  16496. * @Date : 2021-08-20 16:44:21
  16497. * @LastAuthor : LQ
  16498. * @lastTime : 2021-08-20 17:05:57
  16499. * @FilePath : /u-view2.0/uview-ui/libs/config/props/grid.js
  16500. */
  16501. var _default = {
  16502. // grid组件
  16503. grid: {
  16504. col: 3,
  16505. border: false,
  16506. align: 'left'
  16507. }
  16508. };
  16509. exports.default = _default;
  16510. /***/ }),
  16511. /* 103 */
  16512. /*!*********************************************************************************************************!*\
  16513. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/gridItem.js ***!
  16514. \*********************************************************************************************************/
  16515. /*! no static exports found */
  16516. /***/ (function(module, exports, __webpack_require__) {
  16517. "use strict";
  16518. Object.defineProperty(exports, "__esModule", {
  16519. value: true
  16520. });
  16521. exports.default = void 0;
  16522. /*
  16523. * @Author : LQ
  16524. * @Description :
  16525. * @version : 1.0
  16526. * @Date : 2021-08-20 16:44:21
  16527. * @LastAuthor : LQ
  16528. * @lastTime : 2021-08-20 17:06:13
  16529. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gridItem.js
  16530. */
  16531. var _default = {
  16532. // grid-item组件
  16533. gridItem: {
  16534. name: null,
  16535. bgColor: 'transparent'
  16536. }
  16537. };
  16538. exports.default = _default;
  16539. /***/ }),
  16540. /* 104 */
  16541. /*!*****************************************************************************************************!*\
  16542. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/icon.js ***!
  16543. \*****************************************************************************************************/
  16544. /*! no static exports found */
  16545. /***/ (function(module, exports, __webpack_require__) {
  16546. "use strict";
  16547. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  16548. Object.defineProperty(exports, "__esModule", {
  16549. value: true
  16550. });
  16551. exports.default = void 0;
  16552. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 71));
  16553. /*
  16554. * @Author : LQ
  16555. * @Description :
  16556. * @version : 1.0
  16557. * @Date : 2021-08-20 16:44:21
  16558. * @LastAuthor : LQ
  16559. * @lastTime : 2021-08-20 18:00:14
  16560. * @FilePath : /u-view2.0/uview-ui/libs/config/props/icon.js
  16561. */
  16562. var color = _config.default.color;
  16563. var _default = {
  16564. // icon组件
  16565. icon: {
  16566. name: '',
  16567. color: color['u-content-color'],
  16568. size: '16px',
  16569. bold: false,
  16570. index: '',
  16571. hoverClass: '',
  16572. customPrefix: 'uicon',
  16573. label: '',
  16574. labelPos: 'right',
  16575. labelSize: '15px',
  16576. labelColor: color['u-content-color'],
  16577. space: '3px',
  16578. imgMode: '',
  16579. width: '',
  16580. height: '',
  16581. top: 0,
  16582. stop: false
  16583. }
  16584. };
  16585. exports.default = _default;
  16586. /***/ }),
  16587. /* 105 */
  16588. /*!******************************************************************************************************!*\
  16589. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/image.js ***!
  16590. \******************************************************************************************************/
  16591. /*! no static exports found */
  16592. /***/ (function(module, exports, __webpack_require__) {
  16593. "use strict";
  16594. Object.defineProperty(exports, "__esModule", {
  16595. value: true
  16596. });
  16597. exports.default = void 0;
  16598. /*
  16599. * @Author : LQ
  16600. * @Description :
  16601. * @version : 1.0
  16602. * @Date : 2021-08-20 16:44:21
  16603. * @LastAuthor : LQ
  16604. * @lastTime : 2021-08-20 17:01:51
  16605. * @FilePath : /u-view2.0/uview-ui/libs/config/props/image.js
  16606. */
  16607. var _default = {
  16608. // image组件
  16609. image: {
  16610. src: '',
  16611. mode: 'aspectFill',
  16612. width: '300',
  16613. height: '225',
  16614. shape: 'square',
  16615. radius: 0,
  16616. lazyLoad: true,
  16617. showMenuByLongpress: true,
  16618. loadingIcon: 'photo',
  16619. errorIcon: 'error-circle',
  16620. showLoading: true,
  16621. showError: true,
  16622. fade: true,
  16623. webp: false,
  16624. duration: 500,
  16625. bgColor: '#f3f4f6'
  16626. }
  16627. };
  16628. exports.default = _default;
  16629. /***/ }),
  16630. /* 106 */
  16631. /*!************************************************************************************************************!*\
  16632. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/indexAnchor.js ***!
  16633. \************************************************************************************************************/
  16634. /*! no static exports found */
  16635. /***/ (function(module, exports, __webpack_require__) {
  16636. "use strict";
  16637. Object.defineProperty(exports, "__esModule", {
  16638. value: true
  16639. });
  16640. exports.default = void 0;
  16641. /*
  16642. * @Author : LQ
  16643. * @Description :
  16644. * @version : 1.0
  16645. * @Date : 2021-08-20 16:44:21
  16646. * @LastAuthor : LQ
  16647. * @lastTime : 2021-08-20 17:13:15
  16648. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexAnchor.js
  16649. */
  16650. var _default = {
  16651. // indexAnchor 组件
  16652. indexAnchor: {
  16653. text: '',
  16654. color: '#606266',
  16655. size: 14,
  16656. bgColor: '#dedede',
  16657. height: 32
  16658. }
  16659. };
  16660. exports.default = _default;
  16661. /***/ }),
  16662. /* 107 */
  16663. /*!**********************************************************************************************************!*\
  16664. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/indexList.js ***!
  16665. \**********************************************************************************************************/
  16666. /*! no static exports found */
  16667. /***/ (function(module, exports, __webpack_require__) {
  16668. "use strict";
  16669. Object.defineProperty(exports, "__esModule", {
  16670. value: true
  16671. });
  16672. exports.default = void 0;
  16673. /*
  16674. * @Author : LQ
  16675. * @Description :
  16676. * @version : 1.0
  16677. * @Date : 2021-08-20 16:44:21
  16678. * @LastAuthor : LQ
  16679. * @lastTime : 2021-08-20 17:13:35
  16680. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexList.js
  16681. */
  16682. var _default = {
  16683. // indexList 组件
  16684. indexList: {
  16685. inactiveColor: '#606266',
  16686. activeColor: '#5677fc',
  16687. indexList: function indexList() {
  16688. return [];
  16689. },
  16690. sticky: true,
  16691. customNavHeight: 0
  16692. }
  16693. };
  16694. exports.default = _default;
  16695. /***/ }),
  16696. /* 108 */
  16697. /*!******************************************************************************************************!*\
  16698. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/input.js ***!
  16699. \******************************************************************************************************/
  16700. /*! no static exports found */
  16701. /***/ (function(module, exports, __webpack_require__) {
  16702. "use strict";
  16703. Object.defineProperty(exports, "__esModule", {
  16704. value: true
  16705. });
  16706. exports.default = void 0;
  16707. /*
  16708. * @Author : LQ
  16709. * @Description :
  16710. * @version : 1.0
  16711. * @Date : 2021-08-20 16:44:21
  16712. * @LastAuthor : LQ
  16713. * @lastTime : 2021-08-20 17:13:55
  16714. * @FilePath : /u-view2.0/uview-ui/libs/config/props/input.js
  16715. */
  16716. var _default = {
  16717. // index 组件
  16718. input: {
  16719. value: '',
  16720. type: 'text',
  16721. fixed: false,
  16722. disabled: false,
  16723. disabledColor: '#f5f7fa',
  16724. clearable: false,
  16725. password: false,
  16726. maxlength: -1,
  16727. placeholder: null,
  16728. placeholderClass: 'input-placeholder',
  16729. placeholderStyle: 'color: #c0c4cc',
  16730. showWordLimit: false,
  16731. confirmType: 'done',
  16732. confirmHold: false,
  16733. holdKeyboard: false,
  16734. focus: false,
  16735. autoBlur: false,
  16736. disableDefaultPadding: false,
  16737. cursor: -1,
  16738. cursorSpacing: 30,
  16739. selectionStart: -1,
  16740. selectionEnd: -1,
  16741. adjustPosition: true,
  16742. inputAlign: 'left',
  16743. fontSize: '15px',
  16744. color: '#303133',
  16745. prefixIcon: '',
  16746. prefixIconStyle: '',
  16747. suffixIcon: '',
  16748. suffixIconStyle: '',
  16749. border: 'surround',
  16750. readonly: false,
  16751. shape: 'square',
  16752. formatter: null
  16753. }
  16754. };
  16755. exports.default = _default;
  16756. /***/ }),
  16757. /* 109 */
  16758. /*!*********************************************************************************************************!*\
  16759. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/keyboard.js ***!
  16760. \*********************************************************************************************************/
  16761. /*! no static exports found */
  16762. /***/ (function(module, exports, __webpack_require__) {
  16763. "use strict";
  16764. Object.defineProperty(exports, "__esModule", {
  16765. value: true
  16766. });
  16767. exports.default = void 0;
  16768. /*
  16769. * @Author : LQ
  16770. * @Description :
  16771. * @version : 1.0
  16772. * @Date : 2021-08-20 16:44:21
  16773. * @LastAuthor : LQ
  16774. * @lastTime : 2021-08-20 17:07:49
  16775. * @FilePath : /u-view2.0/uview-ui/libs/config/props/keyboard.js
  16776. */
  16777. var _default = {
  16778. // 键盘组件
  16779. keyboard: {
  16780. mode: 'number',
  16781. dotDisabled: false,
  16782. tooltip: true,
  16783. showTips: true,
  16784. tips: '',
  16785. showCancel: true,
  16786. showConfirm: true,
  16787. random: false,
  16788. safeAreaInsetBottom: true,
  16789. closeOnClickOverlay: true,
  16790. show: false,
  16791. overlay: true,
  16792. zIndex: 10075,
  16793. cancelText: '取消',
  16794. confirmText: '确定',
  16795. autoChange: false
  16796. }
  16797. };
  16798. exports.default = _default;
  16799. /***/ }),
  16800. /* 110 */
  16801. /*!*****************************************************************************************************!*\
  16802. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/line.js ***!
  16803. \*****************************************************************************************************/
  16804. /*! no static exports found */
  16805. /***/ (function(module, exports, __webpack_require__) {
  16806. "use strict";
  16807. Object.defineProperty(exports, "__esModule", {
  16808. value: true
  16809. });
  16810. exports.default = void 0;
  16811. /*
  16812. * @Author : LQ
  16813. * @Description :
  16814. * @version : 1.0
  16815. * @Date : 2021-08-20 16:44:21
  16816. * @LastAuthor : LQ
  16817. * @lastTime : 2021-08-20 17:04:49
  16818. * @FilePath : /u-view2.0/uview-ui/libs/config/props/line.js
  16819. */
  16820. var _default = {
  16821. // line组件
  16822. line: {
  16823. color: '#d6d7d9',
  16824. length: '100%',
  16825. direction: 'row',
  16826. hairline: true,
  16827. margin: 0,
  16828. dashed: false
  16829. }
  16830. };
  16831. exports.default = _default;
  16832. /***/ }),
  16833. /* 111 */
  16834. /*!*************************************************************************************************************!*\
  16835. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/lineProgress.js ***!
  16836. \*************************************************************************************************************/
  16837. /*! no static exports found */
  16838. /***/ (function(module, exports, __webpack_require__) {
  16839. "use strict";
  16840. Object.defineProperty(exports, "__esModule", {
  16841. value: true
  16842. });
  16843. exports.default = void 0;
  16844. /*
  16845. * @Author : LQ
  16846. * @Description :
  16847. * @version : 1.0
  16848. * @Date : 2021-08-20 16:44:21
  16849. * @LastAuthor : LQ
  16850. * @lastTime : 2021-08-20 17:14:11
  16851. * @FilePath : /u-view2.0/uview-ui/libs/config/props/lineProgress.js
  16852. */
  16853. var _default = {
  16854. // lineProgress 组件
  16855. lineProgress: {
  16856. activeColor: '#19be6b',
  16857. inactiveColor: '#ececec',
  16858. percentage: 0,
  16859. showText: true,
  16860. height: 12
  16861. }
  16862. };
  16863. exports.default = _default;
  16864. /***/ }),
  16865. /* 112 */
  16866. /*!*****************************************************************************************************!*\
  16867. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/link.js ***!
  16868. \*****************************************************************************************************/
  16869. /*! no static exports found */
  16870. /***/ (function(module, exports, __webpack_require__) {
  16871. "use strict";
  16872. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  16873. Object.defineProperty(exports, "__esModule", {
  16874. value: true
  16875. });
  16876. exports.default = void 0;
  16877. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 71));
  16878. /*
  16879. * @Author : LQ
  16880. * @Description :
  16881. * @version : 1.0
  16882. * @Date : 2021-08-20 16:44:21
  16883. * @LastAuthor : LQ
  16884. * @lastTime : 2021-08-20 17:45:36
  16885. * @FilePath : /u-view2.0/uview-ui/libs/config/props/link.js
  16886. */
  16887. var color = _config.default.color;
  16888. var _default = {
  16889. // link超链接组件props参数
  16890. link: {
  16891. color: color['u-primary'],
  16892. fontSize: 15,
  16893. underLine: false,
  16894. href: '',
  16895. mpTips: '链接已复制,请在浏览器打开',
  16896. lineColor: '',
  16897. text: ''
  16898. }
  16899. };
  16900. exports.default = _default;
  16901. /***/ }),
  16902. /* 113 */
  16903. /*!*****************************************************************************************************!*\
  16904. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/list.js ***!
  16905. \*****************************************************************************************************/
  16906. /*! no static exports found */
  16907. /***/ (function(module, exports, __webpack_require__) {
  16908. "use strict";
  16909. Object.defineProperty(exports, "__esModule", {
  16910. value: true
  16911. });
  16912. exports.default = void 0;
  16913. /*
  16914. * @Author : LQ
  16915. * @Description :
  16916. * @version : 1.0
  16917. * @Date : 2021-08-20 16:44:21
  16918. * @LastAuthor : LQ
  16919. * @lastTime : 2021-08-20 17:14:53
  16920. * @FilePath : /u-view2.0/uview-ui/libs/config/props/list.js
  16921. */
  16922. var _default = {
  16923. // list 组件
  16924. list: {
  16925. showScrollbar: false,
  16926. lowerThreshold: 50,
  16927. upperThreshold: 0,
  16928. scrollTop: 0,
  16929. offsetAccuracy: 10,
  16930. enableFlex: false,
  16931. pagingEnabled: false,
  16932. scrollable: true,
  16933. scrollIntoView: '',
  16934. scrollWithAnimation: false,
  16935. enableBackToTop: false,
  16936. height: 0,
  16937. width: 0,
  16938. preLoadScreen: 1
  16939. }
  16940. };
  16941. exports.default = _default;
  16942. /***/ }),
  16943. /* 114 */
  16944. /*!*********************************************************************************************************!*\
  16945. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/listItem.js ***!
  16946. \*********************************************************************************************************/
  16947. /*! no static exports found */
  16948. /***/ (function(module, exports, __webpack_require__) {
  16949. "use strict";
  16950. Object.defineProperty(exports, "__esModule", {
  16951. value: true
  16952. });
  16953. exports.default = void 0;
  16954. /*
  16955. * @Author : LQ
  16956. * @Description :
  16957. * @version : 1.0
  16958. * @Date : 2021-08-20 16:44:21
  16959. * @LastAuthor : LQ
  16960. * @lastTime : 2021-08-20 17:15:40
  16961. * @FilePath : /u-view2.0/uview-ui/libs/config/props/listItem.js
  16962. */
  16963. var _default = {
  16964. // listItem 组件
  16965. listItem: {
  16966. anchor: ''
  16967. }
  16968. };
  16969. exports.default = _default;
  16970. /***/ }),
  16971. /* 115 */
  16972. /*!************************************************************************************************************!*\
  16973. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/loadingIcon.js ***!
  16974. \************************************************************************************************************/
  16975. /*! no static exports found */
  16976. /***/ (function(module, exports, __webpack_require__) {
  16977. "use strict";
  16978. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  16979. Object.defineProperty(exports, "__esModule", {
  16980. value: true
  16981. });
  16982. exports.default = void 0;
  16983. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 71));
  16984. /*
  16985. * @Author : LQ
  16986. * @Description :
  16987. * @version : 1.0
  16988. * @Date : 2021-08-20 16:44:21
  16989. * @LastAuthor : LQ
  16990. * @lastTime : 2021-08-20 17:45:47
  16991. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingIcon.js
  16992. */
  16993. var color = _config.default.color;
  16994. var _default = {
  16995. // loading-icon加载中图标组件
  16996. loadingIcon: {
  16997. show: true,
  16998. color: color['u-tips-color'],
  16999. textColor: color['u-tips-color'],
  17000. vertical: false,
  17001. mode: 'spinner',
  17002. size: 24,
  17003. textSize: 15,
  17004. text: '',
  17005. timingFunction: 'ease-in-out',
  17006. duration: 1200,
  17007. inactiveColor: ''
  17008. }
  17009. };
  17010. exports.default = _default;
  17011. /***/ }),
  17012. /* 116 */
  17013. /*!************************************************************************************************************!*\
  17014. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/loadingPage.js ***!
  17015. \************************************************************************************************************/
  17016. /*! no static exports found */
  17017. /***/ (function(module, exports, __webpack_require__) {
  17018. "use strict";
  17019. Object.defineProperty(exports, "__esModule", {
  17020. value: true
  17021. });
  17022. exports.default = void 0;
  17023. /*
  17024. * @Author : LQ
  17025. * @Description :
  17026. * @version : 1.0
  17027. * @Date : 2021-08-20 16:44:21
  17028. * @LastAuthor : LQ
  17029. * @lastTime : 2021-08-20 17:00:23
  17030. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingPage.js
  17031. */
  17032. var _default = {
  17033. // loading-page组件
  17034. loadingPage: {
  17035. loadingText: '正在加载',
  17036. image: '',
  17037. loadingMode: 'circle',
  17038. loading: false,
  17039. bgColor: '#ffffff',
  17040. color: '#C8C8C8',
  17041. fontSize: 19,
  17042. iconSize: 28,
  17043. loadingColor: '#C8C8C8'
  17044. }
  17045. };
  17046. exports.default = _default;
  17047. /***/ }),
  17048. /* 117 */
  17049. /*!*********************************************************************************************************!*\
  17050. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/loadmore.js ***!
  17051. \*********************************************************************************************************/
  17052. /*! no static exports found */
  17053. /***/ (function(module, exports, __webpack_require__) {
  17054. "use strict";
  17055. Object.defineProperty(exports, "__esModule", {
  17056. value: true
  17057. });
  17058. exports.default = void 0;
  17059. /*
  17060. * @Author : LQ
  17061. * @Description :
  17062. * @version : 1.0
  17063. * @Date : 2021-08-20 16:44:21
  17064. * @LastAuthor : LQ
  17065. * @lastTime : 2021-08-20 17:15:26
  17066. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadmore.js
  17067. */
  17068. var _default = {
  17069. // loadmore 组件
  17070. loadmore: {
  17071. status: 'loadmore',
  17072. bgColor: 'transparent',
  17073. icon: true,
  17074. fontSize: 14,
  17075. iconSize: 17,
  17076. color: '#606266',
  17077. loadingIcon: 'spinner',
  17078. loadmoreText: '加载更多',
  17079. loadingText: '正在加载...',
  17080. nomoreText: '没有更多了',
  17081. isDot: false,
  17082. iconColor: '#b7b7b7',
  17083. marginTop: 10,
  17084. marginBottom: 10,
  17085. height: 'auto',
  17086. line: false,
  17087. lineColor: '#E6E8EB',
  17088. dashed: false
  17089. }
  17090. };
  17091. exports.default = _default;
  17092. /***/ }),
  17093. /* 118 */
  17094. /*!******************************************************************************************************!*\
  17095. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/modal.js ***!
  17096. \******************************************************************************************************/
  17097. /*! no static exports found */
  17098. /***/ (function(module, exports, __webpack_require__) {
  17099. "use strict";
  17100. Object.defineProperty(exports, "__esModule", {
  17101. value: true
  17102. });
  17103. exports.default = void 0;
  17104. /*
  17105. * @Author : LQ
  17106. * @Description :
  17107. * @version : 1.0
  17108. * @Date : 2021-08-20 16:44:21
  17109. * @LastAuthor : LQ
  17110. * @lastTime : 2021-08-20 17:15:59
  17111. * @FilePath : /u-view2.0/uview-ui/libs/config/props/modal.js
  17112. */
  17113. var _default = {
  17114. // modal 组件
  17115. modal: {
  17116. show: false,
  17117. title: '',
  17118. content: '',
  17119. confirmText: '确认',
  17120. cancelText: '取消',
  17121. showConfirmButton: true,
  17122. showCancelButton: false,
  17123. confirmColor: '#2979ff',
  17124. cancelColor: '#606266',
  17125. buttonReverse: false,
  17126. zoom: true,
  17127. asyncClose: false,
  17128. closeOnClickOverlay: false,
  17129. negativeTop: 0,
  17130. width: '650rpx',
  17131. confirmButtonShape: ''
  17132. }
  17133. };
  17134. exports.default = _default;
  17135. /***/ }),
  17136. /* 119 */
  17137. /*!*******************************************************************************************************!*\
  17138. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/navbar.js ***!
  17139. \*******************************************************************************************************/
  17140. /*! no static exports found */
  17141. /***/ (function(module, exports, __webpack_require__) {
  17142. "use strict";
  17143. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  17144. Object.defineProperty(exports, "__esModule", {
  17145. value: true
  17146. });
  17147. exports.default = void 0;
  17148. var _color = _interopRequireDefault(__webpack_require__(/*! ../color */ 120));
  17149. /*
  17150. * @Author : LQ
  17151. * @Description :
  17152. * @version : 1.0
  17153. * @Date : 2021-08-20 16:44:21
  17154. * @LastAuthor : LQ
  17155. * @lastTime : 2021-08-20 17:16:18
  17156. * @FilePath : /u-view2.0/uview-ui/libs/config/props/navbar.js
  17157. */
  17158. var _default = {
  17159. // navbar 组件
  17160. navbar: {
  17161. safeAreaInsetTop: true,
  17162. placeholder: false,
  17163. fixed: true,
  17164. border: false,
  17165. leftIcon: 'arrow-left',
  17166. leftText: '',
  17167. rightText: '',
  17168. rightIcon: '',
  17169. title: '',
  17170. bgColor: '#ffffff',
  17171. titleWidth: '400rpx',
  17172. height: '44px',
  17173. leftIconSize: 20,
  17174. leftIconColor: _color.default.mainColor,
  17175. autoBack: false,
  17176. titleStyle: ''
  17177. }
  17178. };
  17179. exports.default = _default;
  17180. /***/ }),
  17181. /* 120 */
  17182. /*!************************************************************************************************!*\
  17183. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/color.js ***!
  17184. \************************************************************************************************/
  17185. /*! no static exports found */
  17186. /***/ (function(module, exports, __webpack_require__) {
  17187. "use strict";
  17188. Object.defineProperty(exports, "__esModule", {
  17189. value: true
  17190. });
  17191. exports.default = void 0;
  17192. // 为了让用户能够自定义主题,会逐步弃用此文件,各颜色通过css提供
  17193. // 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)
  17194. var color = {
  17195. primary: '#3c9cff',
  17196. info: '#909399',
  17197. default: '#909399',
  17198. warning: '#f9ae3d',
  17199. error: '#f56c6c',
  17200. success: '#5ac725',
  17201. mainColor: '#303133',
  17202. contentColor: '#606266',
  17203. tipsColor: '#909399',
  17204. lightColor: '#c0c4cc',
  17205. borderColor: '#e4e7ed'
  17206. };
  17207. var _default = color;
  17208. exports.default = _default;
  17209. /***/ }),
  17210. /* 121 */
  17211. /*!**********************************************************************************************************!*\
  17212. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/noNetwork.js ***!
  17213. \**********************************************************************************************************/
  17214. /*! no static exports found */
  17215. /***/ (function(module, exports, __webpack_require__) {
  17216. "use strict";
  17217. Object.defineProperty(exports, "__esModule", {
  17218. value: true
  17219. });
  17220. exports.default = void 0;
  17221. /*
  17222. * @Author : LQ
  17223. * @Description :
  17224. * @version : 1.0
  17225. * @Date : 2021-08-20 16:44:21
  17226. * @LastAuthor : LQ
  17227. * @lastTime : 2021-08-20 17:16:39
  17228. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noNetwork.js
  17229. */
  17230. var _default = {
  17231. // noNetwork
  17232. noNetwork: {
  17233. tips: '哎呀,网络信号丢失',
  17234. zIndex: '',
  17235. 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'
  17236. }
  17237. };
  17238. exports.default = _default;
  17239. /***/ }),
  17240. /* 122 */
  17241. /*!**********************************************************************************************************!*\
  17242. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/noticeBar.js ***!
  17243. \**********************************************************************************************************/
  17244. /*! no static exports found */
  17245. /***/ (function(module, exports, __webpack_require__) {
  17246. "use strict";
  17247. Object.defineProperty(exports, "__esModule", {
  17248. value: true
  17249. });
  17250. exports.default = void 0;
  17251. /*
  17252. * @Author : LQ
  17253. * @Description :
  17254. * @version : 1.0
  17255. * @Date : 2021-08-20 16:44:21
  17256. * @LastAuthor : LQ
  17257. * @lastTime : 2021-08-20 17:17:13
  17258. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noticeBar.js
  17259. */
  17260. var _default = {
  17261. // noticeBar
  17262. noticeBar: {
  17263. text: function text() {
  17264. return [];
  17265. },
  17266. direction: 'row',
  17267. step: false,
  17268. icon: 'volume',
  17269. mode: '',
  17270. color: '#f9ae3d',
  17271. bgColor: '#fdf6ec',
  17272. speed: 80,
  17273. fontSize: 14,
  17274. duration: 2000,
  17275. disableTouch: true,
  17276. url: '',
  17277. linkType: 'navigateTo'
  17278. }
  17279. };
  17280. exports.default = _default;
  17281. /***/ }),
  17282. /* 123 */
  17283. /*!*******************************************************************************************************!*\
  17284. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/notify.js ***!
  17285. \*******************************************************************************************************/
  17286. /*! no static exports found */
  17287. /***/ (function(module, exports, __webpack_require__) {
  17288. "use strict";
  17289. Object.defineProperty(exports, "__esModule", {
  17290. value: true
  17291. });
  17292. exports.default = void 0;
  17293. /*
  17294. * @Author : LQ
  17295. * @Description :
  17296. * @version : 1.0
  17297. * @Date : 2021-08-20 16:44:21
  17298. * @LastAuthor : LQ
  17299. * @lastTime : 2021-08-20 17:10:21
  17300. * @FilePath : /u-view2.0/uview-ui/libs/config/props/notify.js
  17301. */
  17302. var _default = {
  17303. // notify组件
  17304. notify: {
  17305. top: 0,
  17306. type: 'primary',
  17307. color: '#ffffff',
  17308. bgColor: '',
  17309. message: '',
  17310. duration: 3000,
  17311. fontSize: 15,
  17312. safeAreaInsetTop: false
  17313. }
  17314. };
  17315. exports.default = _default;
  17316. /***/ }),
  17317. /* 124 */
  17318. /*!**********************************************************************************************************!*\
  17319. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/numberBox.js ***!
  17320. \**********************************************************************************************************/
  17321. /*! no static exports found */
  17322. /***/ (function(module, exports, __webpack_require__) {
  17323. "use strict";
  17324. Object.defineProperty(exports, "__esModule", {
  17325. value: true
  17326. });
  17327. exports.default = void 0;
  17328. /*
  17329. * @Author : LQ
  17330. * @Description :
  17331. * @version : 1.0
  17332. * @Date : 2021-08-20 16:44:21
  17333. * @LastAuthor : LQ
  17334. * @lastTime : 2021-08-20 17:11:46
  17335. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberBox.js
  17336. */
  17337. var _default = {
  17338. // 步进器组件
  17339. numberBox: {
  17340. name: '',
  17341. value: 0,
  17342. min: 1,
  17343. max: Number.MAX_SAFE_INTEGER,
  17344. step: 1,
  17345. integer: false,
  17346. disabled: false,
  17347. disabledInput: false,
  17348. asyncChange: false,
  17349. inputWidth: 35,
  17350. showMinus: true,
  17351. showPlus: true,
  17352. decimalLength: null,
  17353. longPress: true,
  17354. color: '#323233',
  17355. buttonSize: 30,
  17356. bgColor: '#EBECEE',
  17357. cursorSpacing: 100,
  17358. disableMinus: false,
  17359. disablePlus: false,
  17360. iconStyle: ''
  17361. }
  17362. };
  17363. exports.default = _default;
  17364. /***/ }),
  17365. /* 125 */
  17366. /*!***************************************************************************************************************!*\
  17367. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/numberKeyboard.js ***!
  17368. \***************************************************************************************************************/
  17369. /*! no static exports found */
  17370. /***/ (function(module, exports, __webpack_require__) {
  17371. "use strict";
  17372. Object.defineProperty(exports, "__esModule", {
  17373. value: true
  17374. });
  17375. exports.default = void 0;
  17376. /*
  17377. * @Author : LQ
  17378. * @Description :
  17379. * @version : 1.0
  17380. * @Date : 2021-08-20 16:44:21
  17381. * @LastAuthor : LQ
  17382. * @lastTime : 2021-08-20 17:08:05
  17383. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberKeyboard.js
  17384. */
  17385. var _default = {
  17386. // 数字键盘
  17387. numberKeyboard: {
  17388. mode: 'number',
  17389. dotDisabled: false,
  17390. random: false
  17391. }
  17392. };
  17393. exports.default = _default;
  17394. /***/ }),
  17395. /* 126 */
  17396. /*!********************************************************************************************************!*\
  17397. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/overlay.js ***!
  17398. \********************************************************************************************************/
  17399. /*! no static exports found */
  17400. /***/ (function(module, exports, __webpack_require__) {
  17401. "use strict";
  17402. Object.defineProperty(exports, "__esModule", {
  17403. value: true
  17404. });
  17405. exports.default = void 0;
  17406. /*
  17407. * @Author : LQ
  17408. * @Description :
  17409. * @version : 1.0
  17410. * @Date : 2021-08-20 16:44:21
  17411. * @LastAuthor : LQ
  17412. * @lastTime : 2021-08-20 17:06:50
  17413. * @FilePath : /u-view2.0/uview-ui/libs/config/props/overlay.js
  17414. */
  17415. var _default = {
  17416. // overlay组件
  17417. overlay: {
  17418. show: false,
  17419. zIndex: 10070,
  17420. duration: 300,
  17421. opacity: 0.5
  17422. }
  17423. };
  17424. exports.default = _default;
  17425. /***/ }),
  17426. /* 127 */
  17427. /*!******************************************************************************************************!*\
  17428. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/parse.js ***!
  17429. \******************************************************************************************************/
  17430. /*! no static exports found */
  17431. /***/ (function(module, exports, __webpack_require__) {
  17432. "use strict";
  17433. Object.defineProperty(exports, "__esModule", {
  17434. value: true
  17435. });
  17436. exports.default = void 0;
  17437. /*
  17438. * @Author : LQ
  17439. * @Description :
  17440. * @version : 1.0
  17441. * @Date : 2021-08-20 16:44:21
  17442. * @LastAuthor : LQ
  17443. * @lastTime : 2021-08-20 17:17:33
  17444. * @FilePath : /u-view2.0/uview-ui/libs/config/props/parse.js
  17445. */
  17446. var _default = {
  17447. // parse
  17448. parse: {
  17449. copyLink: true,
  17450. errorImg: '',
  17451. lazyLoad: false,
  17452. loadingImg: '',
  17453. pauseVideo: true,
  17454. previewImg: true,
  17455. setTitle: true,
  17456. showImgMenu: true
  17457. }
  17458. };
  17459. exports.default = _default;
  17460. /***/ }),
  17461. /* 128 */
  17462. /*!*******************************************************************************************************!*\
  17463. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/picker.js ***!
  17464. \*******************************************************************************************************/
  17465. /*! no static exports found */
  17466. /***/ (function(module, exports, __webpack_require__) {
  17467. "use strict";
  17468. Object.defineProperty(exports, "__esModule", {
  17469. value: true
  17470. });
  17471. exports.default = void 0;
  17472. /*
  17473. * @Author : LQ
  17474. * @Description :
  17475. * @version : 1.0
  17476. * @Date : 2021-08-20 16:44:21
  17477. * @LastAuthor : LQ
  17478. * @lastTime : 2021-08-20 17:18:20
  17479. * @FilePath : /u-view2.0/uview-ui/libs/config/props/picker.js
  17480. */
  17481. var _default = {
  17482. // picker
  17483. picker: {
  17484. show: false,
  17485. showToolbar: true,
  17486. title: '',
  17487. columns: function columns() {
  17488. return [];
  17489. },
  17490. loading: false,
  17491. itemHeight: 44,
  17492. cancelText: '取消',
  17493. confirmText: '确定',
  17494. cancelColor: '#909193',
  17495. confirmColor: '#3c9cff',
  17496. visibleItemCount: 5,
  17497. keyName: 'text',
  17498. closeOnClickOverlay: false,
  17499. defaultIndex: function defaultIndex() {
  17500. return [];
  17501. },
  17502. immediateChange: false
  17503. }
  17504. };
  17505. exports.default = _default;
  17506. /***/ }),
  17507. /* 129 */
  17508. /*!******************************************************************************************************!*\
  17509. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/popup.js ***!
  17510. \******************************************************************************************************/
  17511. /*! no static exports found */
  17512. /***/ (function(module, exports, __webpack_require__) {
  17513. "use strict";
  17514. Object.defineProperty(exports, "__esModule", {
  17515. value: true
  17516. });
  17517. exports.default = void 0;
  17518. /*
  17519. * @Author : LQ
  17520. * @Description :
  17521. * @version : 1.0
  17522. * @Date : 2021-08-20 16:44:21
  17523. * @LastAuthor : LQ
  17524. * @lastTime : 2021-08-20 17:06:33
  17525. * @FilePath : /u-view2.0/uview-ui/libs/config/props/popup.js
  17526. */
  17527. var _default = {
  17528. // popup组件
  17529. popup: {
  17530. show: false,
  17531. overlay: true,
  17532. mode: 'bottom',
  17533. duration: 300,
  17534. closeable: false,
  17535. overlayStyle: function overlayStyle() {},
  17536. closeOnClickOverlay: true,
  17537. zIndex: 10075,
  17538. safeAreaInsetBottom: true,
  17539. safeAreaInsetTop: false,
  17540. closeIconPos: 'top-right',
  17541. round: 0,
  17542. zoom: true,
  17543. bgColor: '',
  17544. overlayOpacity: 0.5
  17545. }
  17546. };
  17547. exports.default = _default;
  17548. /***/ }),
  17549. /* 130 */
  17550. /*!******************************************************************************************************!*\
  17551. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/radio.js ***!
  17552. \******************************************************************************************************/
  17553. /*! no static exports found */
  17554. /***/ (function(module, exports, __webpack_require__) {
  17555. "use strict";
  17556. Object.defineProperty(exports, "__esModule", {
  17557. value: true
  17558. });
  17559. exports.default = void 0;
  17560. /*
  17561. * @Author : LQ
  17562. * @Description :
  17563. * @version : 1.0
  17564. * @Date : 2021-08-20 16:44:21
  17565. * @LastAuthor : LQ
  17566. * @lastTime : 2021-08-20 17:02:34
  17567. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radio.js
  17568. */
  17569. var _default = {
  17570. // radio组件
  17571. radio: {
  17572. name: '',
  17573. shape: '',
  17574. disabled: '',
  17575. labelDisabled: '',
  17576. activeColor: '',
  17577. inactiveColor: '',
  17578. iconSize: '',
  17579. labelSize: '',
  17580. label: '',
  17581. labelColor: '',
  17582. size: '',
  17583. iconColor: '',
  17584. placement: ''
  17585. }
  17586. };
  17587. exports.default = _default;
  17588. /***/ }),
  17589. /* 131 */
  17590. /*!***********************************************************************************************************!*\
  17591. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/radioGroup.js ***!
  17592. \***********************************************************************************************************/
  17593. /*! no static exports found */
  17594. /***/ (function(module, exports, __webpack_require__) {
  17595. "use strict";
  17596. Object.defineProperty(exports, "__esModule", {
  17597. value: true
  17598. });
  17599. exports.default = void 0;
  17600. /*
  17601. * @Author : LQ
  17602. * @Description :
  17603. * @version : 1.0
  17604. * @Date : 2021-08-20 16:44:21
  17605. * @LastAuthor : LQ
  17606. * @lastTime : 2021-08-20 17:03:12
  17607. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radioGroup.js
  17608. */
  17609. var _default = {
  17610. // radio-group组件
  17611. radioGroup: {
  17612. value: '',
  17613. disabled: false,
  17614. shape: 'circle',
  17615. activeColor: '#2979ff',
  17616. inactiveColor: '#c8c9cc',
  17617. name: '',
  17618. size: 18,
  17619. placement: 'row',
  17620. label: '',
  17621. labelColor: '#303133',
  17622. labelSize: 14,
  17623. labelDisabled: false,
  17624. iconColor: '#ffffff',
  17625. iconSize: 12,
  17626. borderBottom: false,
  17627. iconPlacement: 'left'
  17628. }
  17629. };
  17630. exports.default = _default;
  17631. /***/ }),
  17632. /* 132 */
  17633. /*!*****************************************************************************************************!*\
  17634. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/rate.js ***!
  17635. \*****************************************************************************************************/
  17636. /*! no static exports found */
  17637. /***/ (function(module, exports, __webpack_require__) {
  17638. "use strict";
  17639. Object.defineProperty(exports, "__esModule", {
  17640. value: true
  17641. });
  17642. exports.default = void 0;
  17643. /*
  17644. * @Author : LQ
  17645. * @Description :
  17646. * @version : 1.0
  17647. * @Date : 2021-08-20 16:44:21
  17648. * @LastAuthor : LQ
  17649. * @lastTime : 2021-08-20 17:05:09
  17650. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rate.js
  17651. */
  17652. var _default = {
  17653. // rate组件
  17654. rate: {
  17655. value: 1,
  17656. count: 5,
  17657. disabled: false,
  17658. size: 18,
  17659. inactiveColor: '#b2b2b2',
  17660. activeColor: '#FA3534',
  17661. gutter: 4,
  17662. minCount: 1,
  17663. allowHalf: false,
  17664. activeIcon: 'star-fill',
  17665. inactiveIcon: 'star',
  17666. touchable: true
  17667. }
  17668. };
  17669. exports.default = _default;
  17670. /***/ }),
  17671. /* 133 */
  17672. /*!*********************************************************************************************************!*\
  17673. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/readMore.js ***!
  17674. \*********************************************************************************************************/
  17675. /*! no static exports found */
  17676. /***/ (function(module, exports, __webpack_require__) {
  17677. "use strict";
  17678. Object.defineProperty(exports, "__esModule", {
  17679. value: true
  17680. });
  17681. exports.default = void 0;
  17682. /*
  17683. * @Author : LQ
  17684. * @Description :
  17685. * @version : 1.0
  17686. * @Date : 2021-08-20 16:44:21
  17687. * @LastAuthor : LQ
  17688. * @lastTime : 2021-08-20 17:18:41
  17689. * @FilePath : /u-view2.0/uview-ui/libs/config/props/readMore.js
  17690. */
  17691. var _default = {
  17692. // readMore
  17693. readMore: {
  17694. showHeight: 400,
  17695. toggle: false,
  17696. closeText: '展开阅读全文',
  17697. openText: '收起',
  17698. color: '#2979ff',
  17699. fontSize: 14,
  17700. textIndent: '2em',
  17701. name: ''
  17702. }
  17703. };
  17704. exports.default = _default;
  17705. /***/ }),
  17706. /* 134 */
  17707. /*!****************************************************************************************************!*\
  17708. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/row.js ***!
  17709. \****************************************************************************************************/
  17710. /*! no static exports found */
  17711. /***/ (function(module, exports, __webpack_require__) {
  17712. "use strict";
  17713. Object.defineProperty(exports, "__esModule", {
  17714. value: true
  17715. });
  17716. exports.default = void 0;
  17717. /*
  17718. * @Author : LQ
  17719. * @Description :
  17720. * @version : 1.0
  17721. * @Date : 2021-08-20 16:44:21
  17722. * @LastAuthor : LQ
  17723. * @lastTime : 2021-08-20 17:18:58
  17724. * @FilePath : /u-view2.0/uview-ui/libs/config/props/row.js
  17725. */
  17726. var _default = {
  17727. // row
  17728. row: {
  17729. gutter: 0,
  17730. justify: 'start',
  17731. align: 'center'
  17732. }
  17733. };
  17734. exports.default = _default;
  17735. /***/ }),
  17736. /* 135 */
  17737. /*!**********************************************************************************************************!*\
  17738. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/rowNotice.js ***!
  17739. \**********************************************************************************************************/
  17740. /*! no static exports found */
  17741. /***/ (function(module, exports, __webpack_require__) {
  17742. "use strict";
  17743. Object.defineProperty(exports, "__esModule", {
  17744. value: true
  17745. });
  17746. exports.default = void 0;
  17747. /*
  17748. * @Author : LQ
  17749. * @Description :
  17750. * @version : 1.0
  17751. * @Date : 2021-08-20 16:44:21
  17752. * @LastAuthor : LQ
  17753. * @lastTime : 2021-08-20 17:19:13
  17754. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rowNotice.js
  17755. */
  17756. var _default = {
  17757. // rowNotice
  17758. rowNotice: {
  17759. text: '',
  17760. icon: 'volume',
  17761. mode: '',
  17762. color: '#f9ae3d',
  17763. bgColor: '#fdf6ec',
  17764. fontSize: 14,
  17765. speed: 80
  17766. }
  17767. };
  17768. exports.default = _default;
  17769. /***/ }),
  17770. /* 136 */
  17771. /*!***********************************************************************************************************!*\
  17772. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/scrollList.js ***!
  17773. \***********************************************************************************************************/
  17774. /*! no static exports found */
  17775. /***/ (function(module, exports, __webpack_require__) {
  17776. "use strict";
  17777. Object.defineProperty(exports, "__esModule", {
  17778. value: true
  17779. });
  17780. exports.default = void 0;
  17781. /*
  17782. * @Author : LQ
  17783. * @Description :
  17784. * @version : 1.0
  17785. * @Date : 2021-08-20 16:44:21
  17786. * @LastAuthor : LQ
  17787. * @lastTime : 2021-08-20 17:19:28
  17788. * @FilePath : /u-view2.0/uview-ui/libs/config/props/scrollList.js
  17789. */
  17790. var _default = {
  17791. // scrollList
  17792. scrollList: {
  17793. indicatorWidth: 50,
  17794. indicatorBarWidth: 20,
  17795. indicator: true,
  17796. indicatorColor: '#f2f2f2',
  17797. indicatorActiveColor: '#3c9cff',
  17798. indicatorStyle: ''
  17799. }
  17800. };
  17801. exports.default = _default;
  17802. /***/ }),
  17803. /* 137 */
  17804. /*!*******************************************************************************************************!*\
  17805. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/search.js ***!
  17806. \*******************************************************************************************************/
  17807. /*! no static exports found */
  17808. /***/ (function(module, exports, __webpack_require__) {
  17809. "use strict";
  17810. Object.defineProperty(exports, "__esModule", {
  17811. value: true
  17812. });
  17813. exports.default = void 0;
  17814. /*
  17815. * @Author : LQ
  17816. * @Description :
  17817. * @version : 1.0
  17818. * @Date : 2021-08-20 16:44:21
  17819. * @LastAuthor : LQ
  17820. * @lastTime : 2021-08-20 17:19:45
  17821. * @FilePath : /u-view2.0/uview-ui/libs/config/props/search.js
  17822. */
  17823. var _default = {
  17824. // search
  17825. search: {
  17826. shape: 'round',
  17827. bgColor: '#f2f2f2',
  17828. placeholder: '请输入关键字',
  17829. clearabled: true,
  17830. focus: false,
  17831. showAction: true,
  17832. actionStyle: function actionStyle() {
  17833. return {};
  17834. },
  17835. actionText: '搜索',
  17836. inputAlign: 'left',
  17837. inputStyle: function inputStyle() {
  17838. return {};
  17839. },
  17840. disabled: false,
  17841. borderColor: 'transparent',
  17842. searchIconColor: '#909399',
  17843. searchIconSize: 22,
  17844. color: '#606266',
  17845. placeholderColor: '#909399',
  17846. searchIcon: 'search',
  17847. margin: '0',
  17848. animation: false,
  17849. value: '',
  17850. maxlength: '-1',
  17851. height: 32,
  17852. label: null
  17853. }
  17854. };
  17855. exports.default = _default;
  17856. /***/ }),
  17857. /* 138 */
  17858. /*!********************************************************************************************************!*\
  17859. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/section.js ***!
  17860. \********************************************************************************************************/
  17861. /*! no static exports found */
  17862. /***/ (function(module, exports, __webpack_require__) {
  17863. "use strict";
  17864. Object.defineProperty(exports, "__esModule", {
  17865. value: true
  17866. });
  17867. exports.default = void 0;
  17868. /*
  17869. * @Author : LQ
  17870. * @Description :
  17871. * @version : 1.0
  17872. * @Date : 2021-08-20 16:44:21
  17873. * @LastAuthor : LQ
  17874. * @lastTime : 2021-08-20 17:07:33
  17875. * @FilePath : /u-view2.0/uview-ui/libs/config/props/section.js
  17876. */
  17877. var _default = {
  17878. // u-section组件
  17879. section: {
  17880. title: '',
  17881. subTitle: '更多',
  17882. right: true,
  17883. fontSize: 15,
  17884. bold: true,
  17885. color: '#303133',
  17886. subColor: '#909399',
  17887. showLine: true,
  17888. lineColor: '',
  17889. arrow: true
  17890. }
  17891. };
  17892. exports.default = _default;
  17893. /***/ }),
  17894. /* 139 */
  17895. /*!*********************************************************************************************************!*\
  17896. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/skeleton.js ***!
  17897. \*********************************************************************************************************/
  17898. /*! no static exports found */
  17899. /***/ (function(module, exports, __webpack_require__) {
  17900. "use strict";
  17901. Object.defineProperty(exports, "__esModule", {
  17902. value: true
  17903. });
  17904. exports.default = void 0;
  17905. /*
  17906. * @Author : LQ
  17907. * @Description :
  17908. * @version : 1.0
  17909. * @Date : 2021-08-20 16:44:21
  17910. * @LastAuthor : LQ
  17911. * @lastTime : 2021-08-20 17:20:14
  17912. * @FilePath : /u-view2.0/uview-ui/libs/config/props/skeleton.js
  17913. */
  17914. var _default = {
  17915. // skeleton
  17916. skeleton: {
  17917. loading: true,
  17918. animate: true,
  17919. rows: 0,
  17920. rowsWidth: '100%',
  17921. rowsHeight: 18,
  17922. title: true,
  17923. titleWidth: '50%',
  17924. titleHeight: 18,
  17925. avatar: false,
  17926. avatarSize: 32,
  17927. avatarShape: 'circle'
  17928. }
  17929. };
  17930. exports.default = _default;
  17931. /***/ }),
  17932. /* 140 */
  17933. /*!*******************************************************************************************************!*\
  17934. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/slider.js ***!
  17935. \*******************************************************************************************************/
  17936. /*! no static exports found */
  17937. /***/ (function(module, exports, __webpack_require__) {
  17938. "use strict";
  17939. Object.defineProperty(exports, "__esModule", {
  17940. value: true
  17941. });
  17942. exports.default = void 0;
  17943. /*
  17944. * @Author : LQ
  17945. * @Description :
  17946. * @version : 1.0
  17947. * @Date : 2021-08-20 16:44:21
  17948. * @LastAuthor : LQ
  17949. * @lastTime : 2021-08-20 17:08:25
  17950. * @FilePath : /u-view2.0/uview-ui/libs/config/props/slider.js
  17951. */
  17952. var _default = {
  17953. // slider组件
  17954. slider: {
  17955. value: 0,
  17956. blockSize: 18,
  17957. min: 0,
  17958. max: 100,
  17959. step: 1,
  17960. activeColor: '#2979ff',
  17961. inactiveColor: '#c0c4cc',
  17962. blockColor: '#ffffff',
  17963. showValue: false,
  17964. disabled: false,
  17965. blockStyle: function blockStyle() {}
  17966. }
  17967. };
  17968. exports.default = _default;
  17969. /***/ }),
  17970. /* 141 */
  17971. /*!**********************************************************************************************************!*\
  17972. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/statusBar.js ***!
  17973. \**********************************************************************************************************/
  17974. /*! no static exports found */
  17975. /***/ (function(module, exports, __webpack_require__) {
  17976. "use strict";
  17977. Object.defineProperty(exports, "__esModule", {
  17978. value: true
  17979. });
  17980. exports.default = void 0;
  17981. /*
  17982. * @Author : LQ
  17983. * @Description :
  17984. * @version : 1.0
  17985. * @Date : 2021-08-20 16:44:21
  17986. * @LastAuthor : LQ
  17987. * @lastTime : 2021-08-20 17:20:39
  17988. * @FilePath : /u-view2.0/uview-ui/libs/config/props/statusBar.js
  17989. */
  17990. var _default = {
  17991. // statusBar
  17992. statusBar: {
  17993. bgColor: 'transparent'
  17994. }
  17995. };
  17996. exports.default = _default;
  17997. /***/ }),
  17998. /* 142 */
  17999. /*!******************************************************************************************************!*\
  18000. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/steps.js ***!
  18001. \******************************************************************************************************/
  18002. /*! no static exports found */
  18003. /***/ (function(module, exports, __webpack_require__) {
  18004. "use strict";
  18005. Object.defineProperty(exports, "__esModule", {
  18006. value: true
  18007. });
  18008. exports.default = void 0;
  18009. /*
  18010. * @Author : LQ
  18011. * @Description :
  18012. * @version : 1.0
  18013. * @Date : 2021-08-20 16:44:21
  18014. * @LastAuthor : LQ
  18015. * @lastTime : 2021-08-20 17:12:37
  18016. * @FilePath : /u-view2.0/uview-ui/libs/config/props/steps.js
  18017. */
  18018. var _default = {
  18019. // steps组件
  18020. steps: {
  18021. direction: 'row',
  18022. current: 0,
  18023. activeColor: '#3c9cff',
  18024. inactiveColor: '#969799',
  18025. activeIcon: '',
  18026. inactiveIcon: '',
  18027. dot: false
  18028. }
  18029. };
  18030. exports.default = _default;
  18031. /***/ }),
  18032. /* 143 */
  18033. /*!**********************************************************************************************************!*\
  18034. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/stepsItem.js ***!
  18035. \**********************************************************************************************************/
  18036. /*! no static exports found */
  18037. /***/ (function(module, exports, __webpack_require__) {
  18038. "use strict";
  18039. Object.defineProperty(exports, "__esModule", {
  18040. value: true
  18041. });
  18042. exports.default = void 0;
  18043. /*
  18044. * @Author : LQ
  18045. * @Description :
  18046. * @version : 1.0
  18047. * @Date : 2021-08-20 16:44:21
  18048. * @LastAuthor : LQ
  18049. * @lastTime : 2021-08-20 17:12:55
  18050. * @FilePath : /u-view2.0/uview-ui/libs/config/props/stepsItem.js
  18051. */
  18052. var _default = {
  18053. // steps-item组件
  18054. stepsItem: {
  18055. title: '',
  18056. desc: '',
  18057. iconSize: 17,
  18058. error: false
  18059. }
  18060. };
  18061. exports.default = _default;
  18062. /***/ }),
  18063. /* 144 */
  18064. /*!*******************************************************************************************************!*\
  18065. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/sticky.js ***!
  18066. \*******************************************************************************************************/
  18067. /*! no static exports found */
  18068. /***/ (function(module, exports, __webpack_require__) {
  18069. "use strict";
  18070. Object.defineProperty(exports, "__esModule", {
  18071. value: true
  18072. });
  18073. exports.default = void 0;
  18074. /*
  18075. * @Author : LQ
  18076. * @Description :
  18077. * @version : 1.0
  18078. * @Date : 2021-08-20 16:44:21
  18079. * @LastAuthor : LQ
  18080. * @lastTime : 2021-08-20 17:01:30
  18081. * @FilePath : /u-view2.0/uview-ui/libs/config/props/sticky.js
  18082. */
  18083. var _default = {
  18084. // sticky组件
  18085. sticky: {
  18086. offsetTop: 0,
  18087. customNavHeight: 0,
  18088. disabled: false,
  18089. bgColor: 'transparent',
  18090. zIndex: '',
  18091. index: ''
  18092. }
  18093. };
  18094. exports.default = _default;
  18095. /***/ }),
  18096. /* 145 */
  18097. /*!***********************************************************************************************************!*\
  18098. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/subsection.js ***!
  18099. \***********************************************************************************************************/
  18100. /*! no static exports found */
  18101. /***/ (function(module, exports, __webpack_require__) {
  18102. "use strict";
  18103. Object.defineProperty(exports, "__esModule", {
  18104. value: true
  18105. });
  18106. exports.default = void 0;
  18107. /*
  18108. * @Author : LQ
  18109. * @Description :
  18110. * @version : 1.0
  18111. * @Date : 2021-08-20 16:44:21
  18112. * @LastAuthor : LQ
  18113. * @lastTime : 2021-08-20 17:12:20
  18114. * @FilePath : /u-view2.0/uview-ui/libs/config/props/subsection.js
  18115. */
  18116. var _default = {
  18117. // subsection组件
  18118. subsection: {
  18119. list: [],
  18120. current: 0,
  18121. activeColor: '#3c9cff',
  18122. inactiveColor: '#303133',
  18123. mode: 'button',
  18124. fontSize: 12,
  18125. bold: true,
  18126. bgColor: '#eeeeef',
  18127. keyName: 'name'
  18128. }
  18129. };
  18130. exports.default = _default;
  18131. /***/ }),
  18132. /* 146 */
  18133. /*!************************************************************************************************************!*\
  18134. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/swipeAction.js ***!
  18135. \************************************************************************************************************/
  18136. /*! no static exports found */
  18137. /***/ (function(module, exports, __webpack_require__) {
  18138. "use strict";
  18139. Object.defineProperty(exports, "__esModule", {
  18140. value: true
  18141. });
  18142. exports.default = void 0;
  18143. /*
  18144. * @Author : LQ
  18145. * @Description :
  18146. * @version : 1.0
  18147. * @Date : 2021-08-20 16:44:21
  18148. * @LastAuthor : LQ
  18149. * @lastTime : 2021-08-20 17:00:42
  18150. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeAction.js
  18151. */
  18152. var _default = {
  18153. // swipe-action组件
  18154. swipeAction: {
  18155. autoClose: true
  18156. }
  18157. };
  18158. exports.default = _default;
  18159. /***/ }),
  18160. /* 147 */
  18161. /*!****************************************************************************************************************!*\
  18162. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/swipeActionItem.js ***!
  18163. \****************************************************************************************************************/
  18164. /*! no static exports found */
  18165. /***/ (function(module, exports, __webpack_require__) {
  18166. "use strict";
  18167. Object.defineProperty(exports, "__esModule", {
  18168. value: true
  18169. });
  18170. exports.default = void 0;
  18171. /*
  18172. * @Author : LQ
  18173. * @Description :
  18174. * @version : 1.0
  18175. * @Date : 2021-08-20 16:44:21
  18176. * @LastAuthor : LQ
  18177. * @lastTime : 2021-08-20 17:01:13
  18178. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeActionItem.js
  18179. */
  18180. var _default = {
  18181. // swipeActionItem 组件
  18182. swipeActionItem: {
  18183. show: false,
  18184. name: '',
  18185. disabled: false,
  18186. threshold: 20,
  18187. autoClose: true,
  18188. options: [],
  18189. duration: 300
  18190. }
  18191. };
  18192. exports.default = _default;
  18193. /***/ }),
  18194. /* 148 */
  18195. /*!*******************************************************************************************************!*\
  18196. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/swiper.js ***!
  18197. \*******************************************************************************************************/
  18198. /*! no static exports found */
  18199. /***/ (function(module, exports, __webpack_require__) {
  18200. "use strict";
  18201. Object.defineProperty(exports, "__esModule", {
  18202. value: true
  18203. });
  18204. exports.default = void 0;
  18205. /*
  18206. * @Author : LQ
  18207. * @Description :
  18208. * @version : 1.0
  18209. * @Date : 2021-08-20 16:44:21
  18210. * @LastAuthor : LQ
  18211. * @lastTime : 2021-08-20 17:21:38
  18212. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiper.js
  18213. */
  18214. var _default = {
  18215. // swiper 组件
  18216. swiper: {
  18217. list: function list() {
  18218. return [];
  18219. },
  18220. indicator: false,
  18221. indicatorActiveColor: '#FFFFFF',
  18222. indicatorInactiveColor: 'rgba(255, 255, 255, 0.35)',
  18223. indicatorStyle: '',
  18224. indicatorMode: 'line',
  18225. autoplay: true,
  18226. current: 0,
  18227. currentItemId: '',
  18228. interval: 3000,
  18229. duration: 300,
  18230. circular: false,
  18231. previousMargin: 0,
  18232. nextMargin: 0,
  18233. acceleration: false,
  18234. displayMultipleItems: 1,
  18235. easingFunction: 'default',
  18236. keyName: 'url',
  18237. imgMode: 'aspectFill',
  18238. height: 130,
  18239. bgColor: '#f3f4f6',
  18240. radius: 4,
  18241. loading: false,
  18242. showTitle: false
  18243. }
  18244. };
  18245. exports.default = _default;
  18246. /***/ }),
  18247. /* 149 */
  18248. /*!*****************************************************************************************************************!*\
  18249. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/swipterIndicator.js ***!
  18250. \*****************************************************************************************************************/
  18251. /*! no static exports found */
  18252. /***/ (function(module, exports, __webpack_require__) {
  18253. "use strict";
  18254. Object.defineProperty(exports, "__esModule", {
  18255. value: true
  18256. });
  18257. exports.default = void 0;
  18258. /*
  18259. * @Author : LQ
  18260. * @Description :
  18261. * @version : 1.0
  18262. * @Date : 2021-08-20 16:44:21
  18263. * @LastAuthor : LQ
  18264. * @lastTime : 2021-08-20 17:22:07
  18265. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiperIndicator.js
  18266. */
  18267. var _default = {
  18268. // swiperIndicator 组件
  18269. swiperIndicator: {
  18270. length: 0,
  18271. current: 0,
  18272. indicatorActiveColor: '',
  18273. indicatorInactiveColor: '',
  18274. indicatorMode: 'line'
  18275. }
  18276. };
  18277. exports.default = _default;
  18278. /***/ }),
  18279. /* 150 */
  18280. /*!*******************************************************************************************************!*\
  18281. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/switch.js ***!
  18282. \*******************************************************************************************************/
  18283. /*! no static exports found */
  18284. /***/ (function(module, exports, __webpack_require__) {
  18285. "use strict";
  18286. Object.defineProperty(exports, "__esModule", {
  18287. value: true
  18288. });
  18289. exports.default = void 0;
  18290. /*
  18291. * @Author : LQ
  18292. * @Description :
  18293. * @version : 1.0
  18294. * @Date : 2021-08-20 16:44:21
  18295. * @LastAuthor : LQ
  18296. * @lastTime : 2021-08-20 17:22:24
  18297. * @FilePath : /u-view2.0/uview-ui/libs/config/props/switch.js
  18298. */
  18299. var _default = {
  18300. // switch
  18301. switch: {
  18302. loading: false,
  18303. disabled: false,
  18304. size: 25,
  18305. activeColor: '#2979ff',
  18306. inactiveColor: '#ffffff',
  18307. value: false,
  18308. activeValue: true,
  18309. inactiveValue: false,
  18310. asyncChange: false,
  18311. space: 0
  18312. }
  18313. };
  18314. exports.default = _default;
  18315. /***/ }),
  18316. /* 151 */
  18317. /*!*******************************************************************************************************!*\
  18318. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/tabbar.js ***!
  18319. \*******************************************************************************************************/
  18320. /*! no static exports found */
  18321. /***/ (function(module, exports, __webpack_require__) {
  18322. "use strict";
  18323. Object.defineProperty(exports, "__esModule", {
  18324. value: true
  18325. });
  18326. exports.default = void 0;
  18327. /*
  18328. * @Author : LQ
  18329. * @Description :
  18330. * @version : 1.0
  18331. * @Date : 2021-08-20 16:44:21
  18332. * @LastAuthor : LQ
  18333. * @lastTime : 2021-08-20 17:22:40
  18334. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbar.js
  18335. */
  18336. var _default = {
  18337. // tabbar
  18338. tabbar: {
  18339. value: null,
  18340. safeAreaInsetBottom: true,
  18341. border: true,
  18342. zIndex: 1,
  18343. activeColor: '#1989fa',
  18344. inactiveColor: '#7d7e80',
  18345. fixed: true,
  18346. placeholder: true
  18347. }
  18348. };
  18349. exports.default = _default;
  18350. /***/ }),
  18351. /* 152 */
  18352. /*!***********************************************************************************************************!*\
  18353. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/tabbarItem.js ***!
  18354. \***********************************************************************************************************/
  18355. /*! no static exports found */
  18356. /***/ (function(module, exports, __webpack_require__) {
  18357. "use strict";
  18358. Object.defineProperty(exports, "__esModule", {
  18359. value: true
  18360. });
  18361. exports.default = void 0;
  18362. /*
  18363. * @Author : LQ
  18364. * @Description :
  18365. * @version : 1.0
  18366. * @Date : 2021-08-20 16:44:21
  18367. * @LastAuthor : LQ
  18368. * @lastTime : 2021-08-20 17:22:55
  18369. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbarItem.js
  18370. */
  18371. var _default = {
  18372. //
  18373. tabbarItem: {
  18374. name: null,
  18375. icon: '',
  18376. badge: null,
  18377. dot: false,
  18378. text: '',
  18379. badgeStyle: 'top: 6px;right:2px;'
  18380. }
  18381. };
  18382. exports.default = _default;
  18383. /***/ }),
  18384. /* 153 */
  18385. /*!*****************************************************************************************************!*\
  18386. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/tabs.js ***!
  18387. \*****************************************************************************************************/
  18388. /*! no static exports found */
  18389. /***/ (function(module, exports, __webpack_require__) {
  18390. "use strict";
  18391. Object.defineProperty(exports, "__esModule", {
  18392. value: true
  18393. });
  18394. exports.default = void 0;
  18395. /*
  18396. * @Author : LQ
  18397. * @Description :
  18398. * @version : 1.0
  18399. * @Date : 2021-08-20 16:44:21
  18400. * @LastAuthor : LQ
  18401. * @lastTime : 2021-08-20 17:23:14
  18402. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabs.js
  18403. */
  18404. var _default = {
  18405. //
  18406. tabs: {
  18407. duration: 300,
  18408. list: function list() {
  18409. return [];
  18410. },
  18411. lineColor: '#3c9cff',
  18412. activeStyle: function activeStyle() {
  18413. return {
  18414. color: '#303133'
  18415. };
  18416. },
  18417. inactiveStyle: function inactiveStyle() {
  18418. return {
  18419. color: '#606266'
  18420. };
  18421. },
  18422. lineWidth: 20,
  18423. lineHeight: 3,
  18424. lineBgSize: 'cover',
  18425. itemStyle: function itemStyle() {
  18426. return {
  18427. height: '44px'
  18428. };
  18429. },
  18430. scrollable: true,
  18431. current: 0,
  18432. keyName: 'name'
  18433. }
  18434. };
  18435. exports.default = _default;
  18436. /***/ }),
  18437. /* 154 */
  18438. /*!****************************************************************************************************!*\
  18439. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/tag.js ***!
  18440. \****************************************************************************************************/
  18441. /*! no static exports found */
  18442. /***/ (function(module, exports, __webpack_require__) {
  18443. "use strict";
  18444. Object.defineProperty(exports, "__esModule", {
  18445. value: true
  18446. });
  18447. exports.default = void 0;
  18448. /*
  18449. * @Author : LQ
  18450. * @Description :
  18451. * @version : 1.0
  18452. * @Date : 2021-08-20 16:44:21
  18453. * @LastAuthor : LQ
  18454. * @lastTime : 2021-08-20 17:23:37
  18455. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tag.js
  18456. */
  18457. var _default = {
  18458. // tag 组件
  18459. tag: {
  18460. type: 'primary',
  18461. disabled: false,
  18462. size: 'medium',
  18463. shape: 'square',
  18464. text: '',
  18465. bgColor: '',
  18466. color: '',
  18467. borderColor: '',
  18468. closeColor: '#C6C7CB',
  18469. name: '',
  18470. plainFill: false,
  18471. plain: false,
  18472. closable: false,
  18473. show: true,
  18474. icon: ''
  18475. }
  18476. };
  18477. exports.default = _default;
  18478. /***/ }),
  18479. /* 155 */
  18480. /*!*****************************************************************************************************!*\
  18481. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/text.js ***!
  18482. \*****************************************************************************************************/
  18483. /*! no static exports found */
  18484. /***/ (function(module, exports, __webpack_require__) {
  18485. "use strict";
  18486. Object.defineProperty(exports, "__esModule", {
  18487. value: true
  18488. });
  18489. exports.default = void 0;
  18490. /*
  18491. * @Author : LQ
  18492. * @Description :
  18493. * @version : 1.0
  18494. * @Date : 2021-08-20 16:44:21
  18495. * @LastAuthor : LQ
  18496. * @lastTime : 2021-08-20 17:23:58
  18497. * @FilePath : /u-view2.0/uview-ui/libs/config/props/text.js
  18498. */
  18499. var _default = {
  18500. // text 组件
  18501. text: {
  18502. type: '',
  18503. show: true,
  18504. text: '',
  18505. prefixIcon: '',
  18506. suffixIcon: '',
  18507. mode: '',
  18508. href: '',
  18509. format: '',
  18510. call: false,
  18511. openType: '',
  18512. bold: false,
  18513. block: false,
  18514. lines: '',
  18515. color: '#303133',
  18516. size: 15,
  18517. iconStyle: function iconStyle() {
  18518. return {
  18519. fontSize: '15px'
  18520. };
  18521. },
  18522. decoration: 'none',
  18523. margin: 0,
  18524. lineHeight: '',
  18525. align: 'left',
  18526. wordWrap: 'normal'
  18527. }
  18528. };
  18529. exports.default = _default;
  18530. /***/ }),
  18531. /* 156 */
  18532. /*!*********************************************************************************************************!*\
  18533. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/textarea.js ***!
  18534. \*********************************************************************************************************/
  18535. /*! no static exports found */
  18536. /***/ (function(module, exports, __webpack_require__) {
  18537. "use strict";
  18538. Object.defineProperty(exports, "__esModule", {
  18539. value: true
  18540. });
  18541. exports.default = void 0;
  18542. /*
  18543. * @Author : LQ
  18544. * @Description :
  18545. * @version : 1.0
  18546. * @Date : 2021-08-20 16:44:21
  18547. * @LastAuthor : LQ
  18548. * @lastTime : 2021-08-20 17:24:32
  18549. * @FilePath : /u-view2.0/uview-ui/libs/config/props/textarea.js
  18550. */
  18551. var _default = {
  18552. // textarea 组件
  18553. textarea: {
  18554. value: '',
  18555. placeholder: '',
  18556. placeholderClass: 'textarea-placeholder',
  18557. placeholderStyle: 'color: #c0c4cc',
  18558. height: 70,
  18559. confirmType: 'done',
  18560. disabled: false,
  18561. count: false,
  18562. focus: false,
  18563. autoHeight: false,
  18564. fixed: false,
  18565. cursorSpacing: 0,
  18566. cursor: '',
  18567. showConfirmBar: true,
  18568. selectionStart: -1,
  18569. selectionEnd: -1,
  18570. adjustPosition: true,
  18571. disableDefaultPadding: false,
  18572. holdKeyboard: false,
  18573. maxlength: 140,
  18574. border: 'surround',
  18575. formatter: null
  18576. }
  18577. };
  18578. exports.default = _default;
  18579. /***/ }),
  18580. /* 157 */
  18581. /*!******************************************************************************************************!*\
  18582. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/toast.js ***!
  18583. \******************************************************************************************************/
  18584. /*! no static exports found */
  18585. /***/ (function(module, exports, __webpack_require__) {
  18586. "use strict";
  18587. Object.defineProperty(exports, "__esModule", {
  18588. value: true
  18589. });
  18590. exports.default = void 0;
  18591. /*
  18592. * @Author : LQ
  18593. * @Description :
  18594. * @version : 1.0
  18595. * @Date : 2021-08-20 16:44:21
  18596. * @LastAuthor : LQ
  18597. * @lastTime : 2021-08-20 17:07:07
  18598. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toast.js
  18599. */
  18600. var _default = {
  18601. // toast组件
  18602. toast: {
  18603. zIndex: 10090,
  18604. loading: false,
  18605. text: '',
  18606. icon: '',
  18607. type: '',
  18608. loadingMode: '',
  18609. show: '',
  18610. overlay: false,
  18611. position: 'center',
  18612. params: function params() {},
  18613. duration: 2000,
  18614. isTab: false,
  18615. url: '',
  18616. callback: null,
  18617. back: false
  18618. }
  18619. };
  18620. exports.default = _default;
  18621. /***/ }),
  18622. /* 158 */
  18623. /*!********************************************************************************************************!*\
  18624. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/toolbar.js ***!
  18625. \********************************************************************************************************/
  18626. /*! no static exports found */
  18627. /***/ (function(module, exports, __webpack_require__) {
  18628. "use strict";
  18629. Object.defineProperty(exports, "__esModule", {
  18630. value: true
  18631. });
  18632. exports.default = void 0;
  18633. /*
  18634. * @Author : LQ
  18635. * @Description :
  18636. * @version : 1.0
  18637. * @Date : 2021-08-20 16:44:21
  18638. * @LastAuthor : LQ
  18639. * @lastTime : 2021-08-20 17:24:55
  18640. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toolbar.js
  18641. */
  18642. var _default = {
  18643. // toolbar 组件
  18644. toolbar: {
  18645. show: true,
  18646. cancelText: '取消',
  18647. confirmText: '确认',
  18648. cancelColor: '#909193',
  18649. confirmColor: '#3c9cff',
  18650. title: ''
  18651. }
  18652. };
  18653. exports.default = _default;
  18654. /***/ }),
  18655. /* 159 */
  18656. /*!********************************************************************************************************!*\
  18657. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/tooltip.js ***!
  18658. \********************************************************************************************************/
  18659. /*! no static exports found */
  18660. /***/ (function(module, exports, __webpack_require__) {
  18661. "use strict";
  18662. Object.defineProperty(exports, "__esModule", {
  18663. value: true
  18664. });
  18665. exports.default = void 0;
  18666. /*
  18667. * @Author : LQ
  18668. * @Description :
  18669. * @version : 1.0
  18670. * @Date : 2021-08-20 16:44:21
  18671. * @LastAuthor : LQ
  18672. * @lastTime : 2021-08-20 17:25:14
  18673. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tooltip.js
  18674. */
  18675. var _default = {
  18676. // tooltip 组件
  18677. tooltip: {
  18678. text: '',
  18679. copyText: '',
  18680. size: 14,
  18681. color: '#606266',
  18682. bgColor: 'transparent',
  18683. direction: 'top',
  18684. zIndex: 10071,
  18685. showCopy: true,
  18686. buttons: function buttons() {
  18687. return [];
  18688. },
  18689. overlay: true,
  18690. showToast: true
  18691. }
  18692. };
  18693. exports.default = _default;
  18694. /***/ }),
  18695. /* 160 */
  18696. /*!***********************************************************************************************************!*\
  18697. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/transition.js ***!
  18698. \***********************************************************************************************************/
  18699. /*! no static exports found */
  18700. /***/ (function(module, exports, __webpack_require__) {
  18701. "use strict";
  18702. Object.defineProperty(exports, "__esModule", {
  18703. value: true
  18704. });
  18705. exports.default = void 0;
  18706. /*
  18707. * @Author : LQ
  18708. * @Description :
  18709. * @version : 1.0
  18710. * @Date : 2021-08-20 16:44:21
  18711. * @LastAuthor : LQ
  18712. * @lastTime : 2021-08-20 16:59:00
  18713. * @FilePath : /u-view2.0/uview-ui/libs/config/props/transition.js
  18714. */
  18715. var _default = {
  18716. // transition动画组件的props
  18717. transition: {
  18718. show: false,
  18719. mode: 'fade',
  18720. duration: '300',
  18721. timingFunction: 'ease-out'
  18722. }
  18723. };
  18724. exports.default = _default;
  18725. /***/ }),
  18726. /* 161 */
  18727. /*!*******************************************************************************************************!*\
  18728. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/props/upload.js ***!
  18729. \*******************************************************************************************************/
  18730. /*! no static exports found */
  18731. /***/ (function(module, exports, __webpack_require__) {
  18732. "use strict";
  18733. Object.defineProperty(exports, "__esModule", {
  18734. value: true
  18735. });
  18736. exports.default = void 0;
  18737. /*
  18738. * @Author : LQ
  18739. * @Description :
  18740. * @version : 1.0
  18741. * @Date : 2021-08-20 16:44:21
  18742. * @LastAuthor : LQ
  18743. * @lastTime : 2021-08-20 17:09:50
  18744. * @FilePath : /u-view2.0/uview-ui/libs/config/props/upload.js
  18745. */
  18746. var _default = {
  18747. // upload组件
  18748. upload: {
  18749. accept: 'image',
  18750. capture: function capture() {
  18751. return ['album', 'camera'];
  18752. },
  18753. compressed: true,
  18754. camera: 'back',
  18755. maxDuration: 60,
  18756. uploadIcon: 'camera-fill',
  18757. uploadIconColor: '#D3D4D6',
  18758. useBeforeRead: false,
  18759. previewFullImage: true,
  18760. maxCount: 52,
  18761. disabled: false,
  18762. imageMode: 'aspectFill',
  18763. name: '',
  18764. sizeType: function sizeType() {
  18765. return ['original', 'compressed'];
  18766. },
  18767. multiple: false,
  18768. deletable: true,
  18769. maxSize: Number.MAX_VALUE,
  18770. fileList: function fileList() {
  18771. return [];
  18772. },
  18773. uploadText: '',
  18774. width: 80,
  18775. height: 80,
  18776. previewImage: true
  18777. }
  18778. };
  18779. exports.default = _default;
  18780. /***/ }),
  18781. /* 162 */
  18782. /*!*************************************************************************************************!*\
  18783. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/config/zIndex.js ***!
  18784. \*************************************************************************************************/
  18785. /*! no static exports found */
  18786. /***/ (function(module, exports, __webpack_require__) {
  18787. "use strict";
  18788. Object.defineProperty(exports, "__esModule", {
  18789. value: true
  18790. });
  18791. exports.default = void 0;
  18792. // uniapp在H5中各API的z-index值如下:
  18793. /**
  18794. * actionsheet: 999
  18795. * modal: 999
  18796. * navigate: 998
  18797. * tabbar: 998
  18798. * toast: 999
  18799. */
  18800. var _default = {
  18801. toast: 10090,
  18802. noNetwork: 10080,
  18803. // popup包含popup,actionsheet,keyboard,picker的值
  18804. popup: 10075,
  18805. mask: 10070,
  18806. navbar: 980,
  18807. topTips: 975,
  18808. sticky: 970,
  18809. indexListSticky: 965
  18810. };
  18811. exports.default = _default;
  18812. /***/ }),
  18813. /* 163 */
  18814. /*!*****************************************************************************************************!*\
  18815. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/libs/function/platform.js ***!
  18816. \*****************************************************************************************************/
  18817. /*! no static exports found */
  18818. /***/ (function(module, exports, __webpack_require__) {
  18819. "use strict";
  18820. Object.defineProperty(exports, "__esModule", {
  18821. value: true
  18822. });
  18823. exports.default = void 0;
  18824. /**
  18825. * 注意:
  18826. * 此部分内容,在vue-cli模式下,需要在vue.config.js加入如下内容才有效:
  18827. * module.exports = {
  18828. * transpileDependencies: ['uview-v2']
  18829. * }
  18830. */
  18831. var platform = 'none';
  18832. platform = 'vue2';
  18833. platform = 'weixin';
  18834. platform = 'mp';
  18835. var _default = platform;
  18836. exports.default = _default;
  18837. /***/ }),
  18838. /* 164 */
  18839. /*!******************************************************************************************!*\
  18840. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/node_modules/uniapp-qrcode/index.js ***!
  18841. \******************************************************************************************/
  18842. /*! no static exports found */
  18843. /***/ (function(module, exports, __webpack_require__) {
  18844. module.exports = __webpack_require__(/*! ./demo/utils */ 165);
  18845. /***/ }),
  18846. /* 165 */
  18847. /*!*****************************************************************************************************!*\
  18848. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/node_modules/uniapp-qrcode/demo/utils/index.js ***!
  18849. \*****************************************************************************************************/
  18850. /*! no static exports found */
  18851. /***/ (function(module, exports, __webpack_require__) {
  18852. /* WEBPACK VAR INJECTION */(function(uni) {var barcode = __webpack_require__(/*! ./barcode */ 166);
  18853. var qrcode = __webpack_require__(/*! ./qrcode */ 167);
  18854. function convert_length(length) {
  18855. return Math.round(uni.getSystemInfoSync().windowWidth * length / 750);
  18856. }
  18857. function barc(id, code, width, height) {
  18858. barcode.code128(uni.createCanvasContext(id), code, convert_length(width), convert_length(height));
  18859. }
  18860. function qrc(id, code, width, height) {
  18861. qrcode.api.draw(code, {
  18862. ctx: uni.createCanvasContext(id),
  18863. width: convert_length(width),
  18864. height: convert_length(height)
  18865. });
  18866. }
  18867. module.exports = {
  18868. barcode: barc,
  18869. qrcode: qrc
  18870. };
  18871. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18872. /***/ }),
  18873. /* 166 */
  18874. /*!*******************************************************************************************************!*\
  18875. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/node_modules/uniapp-qrcode/demo/utils/barcode.js ***!
  18876. \*******************************************************************************************************/
  18877. /*! no static exports found */
  18878. /***/ (function(module, exports) {
  18879. var CHAR_TILDE = 126;
  18880. var CODE_FNC1 = 102;
  18881. var SET_STARTA = 103;
  18882. var SET_STARTB = 104;
  18883. var SET_STARTC = 105;
  18884. var SET_SHIFT = 98;
  18885. var SET_CODEA = 101;
  18886. var SET_CODEB = 100;
  18887. var SET_STOP = 106;
  18888. var REPLACE_CODES = {
  18889. CHAR_TILDE: CODE_FNC1 //~ corresponds to FNC1 in GS1-128 standard
  18890. };
  18891. var CODESET = {
  18892. ANY: 1,
  18893. AB: 2,
  18894. A: 3,
  18895. B: 4,
  18896. C: 5
  18897. };
  18898. function getBytes(str) {
  18899. var bytes = [];
  18900. for (var i = 0; i < str.length; i++) {
  18901. bytes.push(str.charCodeAt(i));
  18902. }
  18903. return bytes;
  18904. }
  18905. exports.code128 = function (ctx, text, width, height) {
  18906. width = parseInt(width);
  18907. height = parseInt(height);
  18908. var codes = stringToCode128(text);
  18909. var g = new Graphics(ctx, width, height);
  18910. var barWeight = g.area.width / ((codes.length - 3) * 11 + 35);
  18911. var x = g.area.left;
  18912. var y = g.area.top;
  18913. for (var i = 0; i < codes.length; i++) {
  18914. var c = codes[i];
  18915. //two bars at a time: 1 black and 1 white
  18916. for (var bar = 0; bar < 8; bar += 2) {
  18917. var barW = PATTERNS[c][bar] * barWeight;
  18918. // var barH = height - y - this.border;
  18919. var barH = height - y;
  18920. var spcW = PATTERNS[c][bar + 1] * barWeight;
  18921. //no need to draw if 0 width
  18922. if (barW > 0) {
  18923. g.fillFgRect(x, y, barW, barH);
  18924. }
  18925. x += barW + spcW;
  18926. }
  18927. }
  18928. ctx.draw();
  18929. };
  18930. function stringToCode128(text) {
  18931. var barc = {
  18932. currcs: CODESET.C
  18933. };
  18934. var bytes = getBytes(text);
  18935. //decide starting codeset
  18936. var index = bytes[0] == CHAR_TILDE ? 1 : 0;
  18937. var csa1 = bytes.length > 0 ? codeSetAllowedFor(bytes[index++]) : CODESET.AB;
  18938. var csa2 = bytes.length > 0 ? codeSetAllowedFor(bytes[index++]) : CODESET.AB;
  18939. barc.currcs = getBestStartSet(csa1, csa2);
  18940. barc.currcs = perhapsCodeC(bytes, barc.currcs);
  18941. //if no codeset changes this will end up with bytes.length+3
  18942. //start, checksum and stop
  18943. var codes = new Array();
  18944. switch (barc.currcs) {
  18945. case CODESET.A:
  18946. codes.push(SET_STARTA);
  18947. break;
  18948. case CODESET.B:
  18949. codes.push(SET_STARTB);
  18950. break;
  18951. default:
  18952. codes.push(SET_STARTC);
  18953. break;
  18954. }
  18955. for (var i = 0; i < bytes.length; i++) {
  18956. var b1 = bytes[i]; //get the first of a pair
  18957. //should we translate/replace
  18958. if (b1 in REPLACE_CODES) {
  18959. codes.push(REPLACE_CODES[b1]);
  18960. i++; //jump to next
  18961. b1 = bytes[i];
  18962. }
  18963. //get the next in the pair if possible
  18964. var b2 = bytes.length > i + 1 ? bytes[i + 1] : -1;
  18965. codes = codes.concat(codesForChar(b1, b2, barc.currcs));
  18966. //code C takes 2 chars each time
  18967. if (barc.currcs == CODESET.C) i++;
  18968. }
  18969. //calculate checksum according to Code 128 standards
  18970. var checksum = codes[0];
  18971. for (var weight = 1; weight < codes.length; weight++) {
  18972. checksum += weight * codes[weight];
  18973. }
  18974. codes.push(checksum % 103);
  18975. codes.push(SET_STOP);
  18976. //encoding should now be complete
  18977. return codes;
  18978. function getBestStartSet(csa1, csa2) {
  18979. //tries to figure out the best codeset
  18980. //to start with to get the most compact code
  18981. var vote = 0;
  18982. vote += csa1 == CODESET.A ? 1 : 0;
  18983. vote += csa1 == CODESET.B ? -1 : 0;
  18984. vote += csa2 == CODESET.A ? 1 : 0;
  18985. vote += csa2 == CODESET.B ? -1 : 0;
  18986. //tie goes to B due to my own predudices
  18987. return vote > 0 ? CODESET.A : CODESET.B;
  18988. }
  18989. function perhapsCodeC(bytes, codeset) {
  18990. for (var i = 0; i < bytes.length; i++) {
  18991. var b = bytes[i];
  18992. if ((b < 48 || b > 57) && b != CHAR_TILDE) return codeset;
  18993. }
  18994. return CODESET.C;
  18995. }
  18996. //chr1 is current byte
  18997. //chr2 is the next byte to process. looks ahead.
  18998. function codesForChar(chr1, chr2, currcs) {
  18999. var result = [];
  19000. var shifter = -1;
  19001. if (charCompatible(chr1, currcs)) {
  19002. if (currcs == CODESET.C) {
  19003. if (chr2 == -1) {
  19004. shifter = SET_CODEB;
  19005. currcs = CODESET.B;
  19006. } else if (chr2 != -1 && !charCompatible(chr2, currcs)) {
  19007. //need to check ahead as well
  19008. if (charCompatible(chr2, CODESET.A)) {
  19009. shifter = SET_CODEA;
  19010. currcs = CODESET.A;
  19011. } else {
  19012. shifter = SET_CODEB;
  19013. currcs = CODESET.B;
  19014. }
  19015. }
  19016. }
  19017. } else {
  19018. //if there is a next char AND that next char is also not compatible
  19019. if (chr2 != -1 && !charCompatible(chr2, currcs)) {
  19020. //need to switch code sets
  19021. switch (currcs) {
  19022. case CODESET.A:
  19023. shifter = SET_CODEB;
  19024. currcs = CODESET.B;
  19025. break;
  19026. case CODESET.B:
  19027. shifter = SET_CODEA;
  19028. currcs = CODESET.A;
  19029. break;
  19030. }
  19031. } else {
  19032. //no need to shift code sets, a temporary SHIFT will suffice
  19033. shifter = SET_SHIFT;
  19034. }
  19035. }
  19036. //ok some type of shift is nessecary
  19037. if (shifter != -1) {
  19038. result.push(shifter);
  19039. result.push(codeValue(chr2));
  19040. } else {
  19041. if (currcs == CODESET.C) {
  19042. //include next as well
  19043. result.push(codeValue(chr1, chr2));
  19044. } else {
  19045. result.push(codeValue(chr1));
  19046. }
  19047. }
  19048. barc.currcs = currcs;
  19049. return result;
  19050. }
  19051. }
  19052. //reduce the ascii code to fit into the Code128 char table
  19053. function codeValue(chr1, chr2) {
  19054. if (typeof chr2 == "undefined") {
  19055. return chr1 >= 32 ? chr1 - 32 : chr1 + 64;
  19056. } else {
  19057. return parseInt(String.fromCharCode(chr1) + String.fromCharCode(chr2));
  19058. }
  19059. }
  19060. function charCompatible(chr, codeset) {
  19061. var csa = codeSetAllowedFor(chr);
  19062. if (csa == CODESET.ANY) return true;
  19063. //if we need to change from current
  19064. if (csa == CODESET.AB) return true;
  19065. if (csa == CODESET.A && codeset == CODESET.A) return true;
  19066. if (csa == CODESET.B && codeset == CODESET.B) return true;
  19067. return false;
  19068. }
  19069. function codeSetAllowedFor(chr) {
  19070. if (chr >= 48 && chr <= 57) {
  19071. //0-9
  19072. return CODESET.ANY;
  19073. } else if (chr >= 32 && chr <= 95) {
  19074. //0-9 A-Z
  19075. return CODESET.AB;
  19076. } else {
  19077. //if non printable
  19078. return chr < 32 ? CODESET.A : CODESET.B;
  19079. }
  19080. }
  19081. var Graphics = function Graphics(ctx, width, height) {
  19082. this.width = width;
  19083. this.height = height;
  19084. this.quiet = Math.round(this.width / 40);
  19085. this.border_size = 0;
  19086. this.padding_width = 0;
  19087. this.area = {
  19088. width: width - this.padding_width * 2 - this.quiet * 2,
  19089. height: height - this.border_size * 2,
  19090. top: this.border_size - 4,
  19091. left: this.padding_width + this.quiet
  19092. };
  19093. this.ctx = ctx;
  19094. this.fg = "#000000";
  19095. this.bg = "#ffffff";
  19096. // fill background
  19097. this.fillBgRect(0, 0, width, height);
  19098. // fill center to create border
  19099. this.fillBgRect(0, this.border_size, width, height - this.border_size * 2);
  19100. };
  19101. //use native color
  19102. Graphics.prototype._fillRect = function (x, y, width, height, color) {
  19103. this.ctx.setFillStyle(color);
  19104. this.ctx.fillRect(x, y, width, height);
  19105. };
  19106. Graphics.prototype.fillFgRect = function (x, y, width, height) {
  19107. this._fillRect(x, y, width, height, this.fg);
  19108. };
  19109. Graphics.prototype.fillBgRect = function (x, y, width, height) {
  19110. this._fillRect(x, y, width, height, this.bg);
  19111. };
  19112. var PATTERNS = [[2, 1, 2, 2, 2, 2, 0, 0],
  19113. // 0
  19114. [2, 2, 2, 1, 2, 2, 0, 0],
  19115. // 1
  19116. [2, 2, 2, 2, 2, 1, 0, 0],
  19117. // 2
  19118. [1, 2, 1, 2, 2, 3, 0, 0],
  19119. // 3
  19120. [1, 2, 1, 3, 2, 2, 0, 0],
  19121. // 4
  19122. [1, 3, 1, 2, 2, 2, 0, 0],
  19123. // 5
  19124. [1, 2, 2, 2, 1, 3, 0, 0],
  19125. // 6
  19126. [1, 2, 2, 3, 1, 2, 0, 0],
  19127. // 7
  19128. [1, 3, 2, 2, 1, 2, 0, 0],
  19129. // 8
  19130. [2, 2, 1, 2, 1, 3, 0, 0],
  19131. // 9
  19132. [2, 2, 1, 3, 1, 2, 0, 0],
  19133. // 10
  19134. [2, 3, 1, 2, 1, 2, 0, 0],
  19135. // 11
  19136. [1, 1, 2, 2, 3, 2, 0, 0],
  19137. // 12
  19138. [1, 2, 2, 1, 3, 2, 0, 0],
  19139. // 13
  19140. [1, 2, 2, 2, 3, 1, 0, 0],
  19141. // 14
  19142. [1, 1, 3, 2, 2, 2, 0, 0],
  19143. // 15
  19144. [1, 2, 3, 1, 2, 2, 0, 0],
  19145. // 16
  19146. [1, 2, 3, 2, 2, 1, 0, 0],
  19147. // 17
  19148. [2, 2, 3, 2, 1, 1, 0, 0],
  19149. // 18
  19150. [2, 2, 1, 1, 3, 2, 0, 0],
  19151. // 19
  19152. [2, 2, 1, 2, 3, 1, 0, 0],
  19153. // 20
  19154. [2, 1, 3, 2, 1, 2, 0, 0],
  19155. // 21
  19156. [2, 2, 3, 1, 1, 2, 0, 0],
  19157. // 22
  19158. [3, 1, 2, 1, 3, 1, 0, 0],
  19159. // 23
  19160. [3, 1, 1, 2, 2, 2, 0, 0],
  19161. // 24
  19162. [3, 2, 1, 1, 2, 2, 0, 0],
  19163. // 25
  19164. [3, 2, 1, 2, 2, 1, 0, 0],
  19165. // 26
  19166. [3, 1, 2, 2, 1, 2, 0, 0],
  19167. // 27
  19168. [3, 2, 2, 1, 1, 2, 0, 0],
  19169. // 28
  19170. [3, 2, 2, 2, 1, 1, 0, 0],
  19171. // 29
  19172. [2, 1, 2, 1, 2, 3, 0, 0],
  19173. // 30
  19174. [2, 1, 2, 3, 2, 1, 0, 0],
  19175. // 31
  19176. [2, 3, 2, 1, 2, 1, 0, 0],
  19177. // 32
  19178. [1, 1, 1, 3, 2, 3, 0, 0],
  19179. // 33
  19180. [1, 3, 1, 1, 2, 3, 0, 0],
  19181. // 34
  19182. [1, 3, 1, 3, 2, 1, 0, 0],
  19183. // 35
  19184. [1, 1, 2, 3, 1, 3, 0, 0],
  19185. // 36
  19186. [1, 3, 2, 1, 1, 3, 0, 0],
  19187. // 37
  19188. [1, 3, 2, 3, 1, 1, 0, 0],
  19189. // 38
  19190. [2, 1, 1, 3, 1, 3, 0, 0],
  19191. // 39
  19192. [2, 3, 1, 1, 1, 3, 0, 0],
  19193. // 40
  19194. [2, 3, 1, 3, 1, 1, 0, 0],
  19195. // 41
  19196. [1, 1, 2, 1, 3, 3, 0, 0],
  19197. // 42
  19198. [1, 1, 2, 3, 3, 1, 0, 0],
  19199. // 43
  19200. [1, 3, 2, 1, 3, 1, 0, 0],
  19201. // 44
  19202. [1, 1, 3, 1, 2, 3, 0, 0],
  19203. // 45
  19204. [1, 1, 3, 3, 2, 1, 0, 0],
  19205. // 46
  19206. [1, 3, 3, 1, 2, 1, 0, 0],
  19207. // 47
  19208. [3, 1, 3, 1, 2, 1, 0, 0],
  19209. // 48
  19210. [2, 1, 1, 3, 3, 1, 0, 0],
  19211. // 49
  19212. [2, 3, 1, 1, 3, 1, 0, 0],
  19213. // 50
  19214. [2, 1, 3, 1, 1, 3, 0, 0],
  19215. // 51
  19216. [2, 1, 3, 3, 1, 1, 0, 0],
  19217. // 52
  19218. [2, 1, 3, 1, 3, 1, 0, 0],
  19219. // 53
  19220. [3, 1, 1, 1, 2, 3, 0, 0],
  19221. // 54
  19222. [3, 1, 1, 3, 2, 1, 0, 0],
  19223. // 55
  19224. [3, 3, 1, 1, 2, 1, 0, 0],
  19225. // 56
  19226. [3, 1, 2, 1, 1, 3, 0, 0],
  19227. // 57
  19228. [3, 1, 2, 3, 1, 1, 0, 0],
  19229. // 58
  19230. [3, 3, 2, 1, 1, 1, 0, 0],
  19231. // 59
  19232. [3, 1, 4, 1, 1, 1, 0, 0],
  19233. // 60
  19234. [2, 2, 1, 4, 1, 1, 0, 0],
  19235. // 61
  19236. [4, 3, 1, 1, 1, 1, 0, 0],
  19237. // 62
  19238. [1, 1, 1, 2, 2, 4, 0, 0],
  19239. // 63
  19240. [1, 1, 1, 4, 2, 2, 0, 0],
  19241. // 64
  19242. [1, 2, 1, 1, 2, 4, 0, 0],
  19243. // 65
  19244. [1, 2, 1, 4, 2, 1, 0, 0],
  19245. // 66
  19246. [1, 4, 1, 1, 2, 2, 0, 0],
  19247. // 67
  19248. [1, 4, 1, 2, 2, 1, 0, 0],
  19249. // 68
  19250. [1, 1, 2, 2, 1, 4, 0, 0],
  19251. // 69
  19252. [1, 1, 2, 4, 1, 2, 0, 0],
  19253. // 70
  19254. [1, 2, 2, 1, 1, 4, 0, 0],
  19255. // 71
  19256. [1, 2, 2, 4, 1, 1, 0, 0],
  19257. // 72
  19258. [1, 4, 2, 1, 1, 2, 0, 0],
  19259. // 73
  19260. [1, 4, 2, 2, 1, 1, 0, 0],
  19261. // 74
  19262. [2, 4, 1, 2, 1, 1, 0, 0],
  19263. // 75
  19264. [2, 2, 1, 1, 1, 4, 0, 0],
  19265. // 76
  19266. [4, 1, 3, 1, 1, 1, 0, 0],
  19267. // 77
  19268. [2, 4, 1, 1, 1, 2, 0, 0],
  19269. // 78
  19270. [1, 3, 4, 1, 1, 1, 0, 0],
  19271. // 79
  19272. [1, 1, 1, 2, 4, 2, 0, 0],
  19273. // 80
  19274. [1, 2, 1, 1, 4, 2, 0, 0],
  19275. // 81
  19276. [1, 2, 1, 2, 4, 1, 0, 0],
  19277. // 82
  19278. [1, 1, 4, 2, 1, 2, 0, 0],
  19279. // 83
  19280. [1, 2, 4, 1, 1, 2, 0, 0],
  19281. // 84
  19282. [1, 2, 4, 2, 1, 1, 0, 0],
  19283. // 85
  19284. [4, 1, 1, 2, 1, 2, 0, 0],
  19285. // 86
  19286. [4, 2, 1, 1, 1, 2, 0, 0],
  19287. // 87
  19288. [4, 2, 1, 2, 1, 1, 0, 0],
  19289. // 88
  19290. [2, 1, 2, 1, 4, 1, 0, 0],
  19291. // 89
  19292. [2, 1, 4, 1, 2, 1, 0, 0],
  19293. // 90
  19294. [4, 1, 2, 1, 2, 1, 0, 0],
  19295. // 91
  19296. [1, 1, 1, 1, 4, 3, 0, 0],
  19297. // 92
  19298. [1, 1, 1, 3, 4, 1, 0, 0],
  19299. // 93
  19300. [1, 3, 1, 1, 4, 1, 0, 0],
  19301. // 94
  19302. [1, 1, 4, 1, 1, 3, 0, 0],
  19303. // 95
  19304. [1, 1, 4, 3, 1, 1, 0, 0],
  19305. // 96
  19306. [4, 1, 1, 1, 1, 3, 0, 0],
  19307. // 97
  19308. [4, 1, 1, 3, 1, 1, 0, 0],
  19309. // 98
  19310. [1, 1, 3, 1, 4, 1, 0, 0],
  19311. // 99
  19312. [1, 1, 4, 1, 3, 1, 0, 0],
  19313. // 100
  19314. [3, 1, 1, 1, 4, 1, 0, 0],
  19315. // 101
  19316. [4, 1, 1, 1, 3, 1, 0, 0],
  19317. // 102
  19318. [2, 1, 1, 4, 1, 2, 0, 0],
  19319. // 103
  19320. [2, 1, 1, 2, 1, 4, 0, 0],
  19321. // 104
  19322. [2, 1, 1, 2, 3, 2, 0, 0],
  19323. // 105
  19324. [2, 3, 3, 1, 1, 1, 2, 0] // 106
  19325. ];
  19326. /***/ }),
  19327. /* 167 */
  19328. /*!******************************************************************************************************!*\
  19329. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/node_modules/uniapp-qrcode/demo/utils/qrcode.js ***!
  19330. \******************************************************************************************************/
  19331. /*! no static exports found */
  19332. /***/ (function(module, exports) {
  19333. var QR = function () {
  19334. // alignment pattern
  19335. var adelta = [0, 11, 15, 19, 23, 27, 31,
  19336. // force 1 pat
  19337. 16, 18, 20, 22, 24, 26, 28, 20, 22, 24, 24, 26, 28, 28, 22, 24, 24, 26, 26, 28, 28, 24, 24, 26, 26, 26, 28, 28, 24, 26, 26, 26, 28, 28];
  19338. // version block
  19339. var vpat = [0xc94, 0x5bc, 0xa99, 0x4d3, 0xbf6, 0x762, 0x847, 0x60d, 0x928, 0xb78, 0x45d, 0xa17, 0x532, 0x9a6, 0x683, 0x8c9, 0x7ec, 0xec4, 0x1e1, 0xfab, 0x08e, 0xc1a, 0x33f, 0xd75, 0x250, 0x9d5, 0x6f0, 0x8ba, 0x79f, 0xb0b, 0x42e, 0xa64, 0x541, 0xc69];
  19340. // final format bits with mask: level << 3 | mask
  19341. var fmtword = [0x77c4, 0x72f3, 0x7daa, 0x789d, 0x662f, 0x6318, 0x6c41, 0x6976,
  19342. //L
  19343. 0x5412, 0x5125, 0x5e7c, 0x5b4b, 0x45f9, 0x40ce, 0x4f97, 0x4aa0,
  19344. //M
  19345. 0x355f, 0x3068, 0x3f31, 0x3a06, 0x24b4, 0x2183, 0x2eda, 0x2bed,
  19346. //Q
  19347. 0x1689, 0x13be, 0x1ce7, 0x19d0, 0x0762, 0x0255, 0x0d0c, 0x083b //H
  19348. ];
  19349. // 4 per version: number of blocks 1,2; data width; ecc width
  19350. var eccblocks = [1, 0, 19, 7, 1, 0, 16, 10, 1, 0, 13, 13, 1, 0, 9, 17, 1, 0, 34, 10, 1, 0, 28, 16, 1, 0, 22, 22, 1, 0, 16, 28, 1, 0, 55, 15, 1, 0, 44, 26, 2, 0, 17, 18, 2, 0, 13, 22, 1, 0, 80, 20, 2, 0, 32, 18, 2, 0, 24, 26, 4, 0, 9, 16, 1, 0, 108, 26, 2, 0, 43, 24, 2, 2, 15, 18, 2, 2, 11, 22, 2, 0, 68, 18, 4, 0, 27, 16, 4, 0, 19, 24, 4, 0, 15, 28, 2, 0, 78, 20, 4, 0, 31, 18, 2, 4, 14, 18, 4, 1, 13, 26, 2, 0, 97, 24, 2, 2, 38, 22, 4, 2, 18, 22, 4, 2, 14, 26, 2, 0, 116, 30, 3, 2, 36, 22, 4, 4, 16, 20, 4, 4, 12, 24, 2, 2, 68, 18, 4, 1, 43, 26, 6, 2, 19, 24, 6, 2, 15, 28, 4, 0, 81, 20, 1, 4, 50, 30, 4, 4, 22, 28, 3, 8, 12, 24, 2, 2, 92, 24, 6, 2, 36, 22, 4, 6, 20, 26, 7, 4, 14, 28, 4, 0, 107, 26, 8, 1, 37, 22, 8, 4, 20, 24, 12, 4, 11, 22, 3, 1, 115, 30, 4, 5, 40, 24, 11, 5, 16, 20, 11, 5, 12, 24, 5, 1, 87, 22, 5, 5, 41, 24, 5, 7, 24, 30, 11, 7, 12, 24, 5, 1, 98, 24, 7, 3, 45, 28, 15, 2, 19, 24, 3, 13, 15, 30, 1, 5, 107, 28, 10, 1, 46, 28, 1, 15, 22, 28, 2, 17, 14, 28, 5, 1, 120, 30, 9, 4, 43, 26, 17, 1, 22, 28, 2, 19, 14, 28, 3, 4, 113, 28, 3, 11, 44, 26, 17, 4, 21, 26, 9, 16, 13, 26, 3, 5, 107, 28, 3, 13, 41, 26, 15, 5, 24, 30, 15, 10, 15, 28, 4, 4, 116, 28, 17, 0, 42, 26, 17, 6, 22, 28, 19, 6, 16, 30, 2, 7, 111, 28, 17, 0, 46, 28, 7, 16, 24, 30, 34, 0, 13, 24, 4, 5, 121, 30, 4, 14, 47, 28, 11, 14, 24, 30, 16, 14, 15, 30, 6, 4, 117, 30, 6, 14, 45, 28, 11, 16, 24, 30, 30, 2, 16, 30, 8, 4, 106, 26, 8, 13, 47, 28, 7, 22, 24, 30, 22, 13, 15, 30, 10, 2, 114, 28, 19, 4, 46, 28, 28, 6, 22, 28, 33, 4, 16, 30, 8, 4, 122, 30, 22, 3, 45, 28, 8, 26, 23, 30, 12, 28, 15, 30, 3, 10, 117, 30, 3, 23, 45, 28, 4, 31, 24, 30, 11, 31, 15, 30, 7, 7, 116, 30, 21, 7, 45, 28, 1, 37, 23, 30, 19, 26, 15, 30, 5, 10, 115, 30, 19, 10, 47, 28, 15, 25, 24, 30, 23, 25, 15, 30, 13, 3, 115, 30, 2, 29, 46, 28, 42, 1, 24, 30, 23, 28, 15, 30, 17, 0, 115, 30, 10, 23, 46, 28, 10, 35, 24, 30, 19, 35, 15, 30, 17, 1, 115, 30, 14, 21, 46, 28, 29, 19, 24, 30, 11, 46, 15, 30, 13, 6, 115, 30, 14, 23, 46, 28, 44, 7, 24, 30, 59, 1, 16, 30, 12, 7, 121, 30, 12, 26, 47, 28, 39, 14, 24, 30, 22, 41, 15, 30, 6, 14, 121, 30, 6, 34, 47, 28, 46, 10, 24, 30, 2, 64, 15, 30, 17, 4, 122, 30, 29, 14, 46, 28, 49, 10, 24, 30, 24, 46, 15, 30, 4, 18, 122, 30, 13, 32, 46, 28, 48, 14, 24, 30, 42, 32, 15, 30, 20, 4, 117, 30, 40, 7, 47, 28, 43, 22, 24, 30, 10, 67, 15, 30, 19, 6, 118, 30, 18, 31, 47, 28, 34, 34, 24, 30, 20, 61, 15, 30];
  19351. // Galois field log table
  19352. var glog = [0xff, 0x00, 0x01, 0x19, 0x02, 0x32, 0x1a, 0xc6, 0x03, 0xdf, 0x33, 0xee, 0x1b, 0x68, 0xc7, 0x4b, 0x04, 0x64, 0xe0, 0x0e, 0x34, 0x8d, 0xef, 0x81, 0x1c, 0xc1, 0x69, 0xf8, 0xc8, 0x08, 0x4c, 0x71, 0x05, 0x8a, 0x65, 0x2f, 0xe1, 0x24, 0x0f, 0x21, 0x35, 0x93, 0x8e, 0xda, 0xf0, 0x12, 0x82, 0x45, 0x1d, 0xb5, 0xc2, 0x7d, 0x6a, 0x27, 0xf9, 0xb9, 0xc9, 0x9a, 0x09, 0x78, 0x4d, 0xe4, 0x72, 0xa6, 0x06, 0xbf, 0x8b, 0x62, 0x66, 0xdd, 0x30, 0xfd, 0xe2, 0x98, 0x25, 0xb3, 0x10, 0x91, 0x22, 0x88, 0x36, 0xd0, 0x94, 0xce, 0x8f, 0x96, 0xdb, 0xbd, 0xf1, 0xd2, 0x13, 0x5c, 0x83, 0x38, 0x46, 0x40, 0x1e, 0x42, 0xb6, 0xa3, 0xc3, 0x48, 0x7e, 0x6e, 0x6b, 0x3a, 0x28, 0x54, 0xfa, 0x85, 0xba, 0x3d, 0xca, 0x5e, 0x9b, 0x9f, 0x0a, 0x15, 0x79, 0x2b, 0x4e, 0xd4, 0xe5, 0xac, 0x73, 0xf3, 0xa7, 0x57, 0x07, 0x70, 0xc0, 0xf7, 0x8c, 0x80, 0x63, 0x0d, 0x67, 0x4a, 0xde, 0xed, 0x31, 0xc5, 0xfe, 0x18, 0xe3, 0xa5, 0x99, 0x77, 0x26, 0xb8, 0xb4, 0x7c, 0x11, 0x44, 0x92, 0xd9, 0x23, 0x20, 0x89, 0x2e, 0x37, 0x3f, 0xd1, 0x5b, 0x95, 0xbc, 0xcf, 0xcd, 0x90, 0x87, 0x97, 0xb2, 0xdc, 0xfc, 0xbe, 0x61, 0xf2, 0x56, 0xd3, 0xab, 0x14, 0x2a, 0x5d, 0x9e, 0x84, 0x3c, 0x39, 0x53, 0x47, 0x6d, 0x41, 0xa2, 0x1f, 0x2d, 0x43, 0xd8, 0xb7, 0x7b, 0xa4, 0x76, 0xc4, 0x17, 0x49, 0xec, 0x7f, 0x0c, 0x6f, 0xf6, 0x6c, 0xa1, 0x3b, 0x52, 0x29, 0x9d, 0x55, 0xaa, 0xfb, 0x60, 0x86, 0xb1, 0xbb, 0xcc, 0x3e, 0x5a, 0xcb, 0x59, 0x5f, 0xb0, 0x9c, 0xa9, 0xa0, 0x51, 0x0b, 0xf5, 0x16, 0xeb, 0x7a, 0x75, 0x2c, 0xd7, 0x4f, 0xae, 0xd5, 0xe9, 0xe6, 0xe7, 0xad, 0xe8, 0x74, 0xd6, 0xf4, 0xea, 0xa8, 0x50, 0x58, 0xaf];
  19353. // Galios field exponent table
  19354. var gexp = [0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1d, 0x3a, 0x74, 0xe8, 0xcd, 0x87, 0x13, 0x26, 0x4c, 0x98, 0x2d, 0x5a, 0xb4, 0x75, 0xea, 0xc9, 0x8f, 0x03, 0x06, 0x0c, 0x18, 0x30, 0x60, 0xc0, 0x9d, 0x27, 0x4e, 0x9c, 0x25, 0x4a, 0x94, 0x35, 0x6a, 0xd4, 0xb5, 0x77, 0xee, 0xc1, 0x9f, 0x23, 0x46, 0x8c, 0x05, 0x0a, 0x14, 0x28, 0x50, 0xa0, 0x5d, 0xba, 0x69, 0xd2, 0xb9, 0x6f, 0xde, 0xa1, 0x5f, 0xbe, 0x61, 0xc2, 0x99, 0x2f, 0x5e, 0xbc, 0x65, 0xca, 0x89, 0x0f, 0x1e, 0x3c, 0x78, 0xf0, 0xfd, 0xe7, 0xd3, 0xbb, 0x6b, 0xd6, 0xb1, 0x7f, 0xfe, 0xe1, 0xdf, 0xa3, 0x5b, 0xb6, 0x71, 0xe2, 0xd9, 0xaf, 0x43, 0x86, 0x11, 0x22, 0x44, 0x88, 0x0d, 0x1a, 0x34, 0x68, 0xd0, 0xbd, 0x67, 0xce, 0x81, 0x1f, 0x3e, 0x7c, 0xf8, 0xed, 0xc7, 0x93, 0x3b, 0x76, 0xec, 0xc5, 0x97, 0x33, 0x66, 0xcc, 0x85, 0x17, 0x2e, 0x5c, 0xb8, 0x6d, 0xda, 0xa9, 0x4f, 0x9e, 0x21, 0x42, 0x84, 0x15, 0x2a, 0x54, 0xa8, 0x4d, 0x9a, 0x29, 0x52, 0xa4, 0x55, 0xaa, 0x49, 0x92, 0x39, 0x72, 0xe4, 0xd5, 0xb7, 0x73, 0xe6, 0xd1, 0xbf, 0x63, 0xc6, 0x91, 0x3f, 0x7e, 0xfc, 0xe5, 0xd7, 0xb3, 0x7b, 0xf6, 0xf1, 0xff, 0xe3, 0xdb, 0xab, 0x4b, 0x96, 0x31, 0x62, 0xc4, 0x95, 0x37, 0x6e, 0xdc, 0xa5, 0x57, 0xae, 0x41, 0x82, 0x19, 0x32, 0x64, 0xc8, 0x8d, 0x07, 0x0e, 0x1c, 0x38, 0x70, 0xe0, 0xdd, 0xa7, 0x53, 0xa6, 0x51, 0xa2, 0x59, 0xb2, 0x79, 0xf2, 0xf9, 0xef, 0xc3, 0x9b, 0x2b, 0x56, 0xac, 0x45, 0x8a, 0x09, 0x12, 0x24, 0x48, 0x90, 0x3d, 0x7a, 0xf4, 0xf5, 0xf7, 0xf3, 0xfb, 0xeb, 0xcb, 0x8b, 0x0b, 0x16, 0x2c, 0x58, 0xb0, 0x7d, 0xfa, 0xe9, 0xcf, 0x83, 0x1b, 0x36, 0x6c, 0xd8, 0xad, 0x47, 0x8e, 0x00];
  19355. // Working buffers:
  19356. // data input and ecc append, image working buffer, fixed part of image, run lengths for badness
  19357. var strinbuf = [],
  19358. eccbuf = [],
  19359. qrframe = [],
  19360. framask = [],
  19361. rlens = [];
  19362. // Control values - width is based on version, last 4 are from table.
  19363. var version, width, neccblk1, neccblk2, datablkw, eccblkwid;
  19364. var ecclevel = 2;
  19365. // set bit to indicate cell in qrframe is immutable. symmetric around diagonal
  19366. function setmask(x, y) {
  19367. var bt;
  19368. if (x > y) {
  19369. bt = x;
  19370. x = y;
  19371. y = bt;
  19372. }
  19373. // y*y = 1+3+5...
  19374. bt = y;
  19375. bt *= y;
  19376. bt += y;
  19377. bt >>= 1;
  19378. bt += x;
  19379. framask[bt] = 1;
  19380. }
  19381. // enter alignment pattern - black to qrframe, white to mask (later black frame merged to mask)
  19382. function putalign(x, y) {
  19383. var j;
  19384. qrframe[x + width * y] = 1;
  19385. for (j = -2; j < 2; j++) {
  19386. qrframe[x + j + width * (y - 2)] = 1;
  19387. qrframe[x - 2 + width * (y + j + 1)] = 1;
  19388. qrframe[x + 2 + width * (y + j)] = 1;
  19389. qrframe[x + j + 1 + width * (y + 2)] = 1;
  19390. }
  19391. for (j = 0; j < 2; j++) {
  19392. setmask(x - 1, y + j);
  19393. setmask(x + 1, y - j);
  19394. setmask(x - j, y - 1);
  19395. setmask(x + j, y + 1);
  19396. }
  19397. }
  19398. //========================================================================
  19399. // Reed Solomon error correction
  19400. // exponentiation mod N
  19401. function modnn(x) {
  19402. while (x >= 255) {
  19403. x -= 255;
  19404. x = (x >> 8) + (x & 255);
  19405. }
  19406. return x;
  19407. }
  19408. var genpoly = [];
  19409. // Calculate and append ECC data to data block. Block is in strinbuf, indexes to buffers given.
  19410. function appendrs(data, dlen, ecbuf, eclen) {
  19411. var i, j, fb;
  19412. for (i = 0; i < eclen; i++) {
  19413. strinbuf[ecbuf + i] = 0;
  19414. }
  19415. for (i = 0; i < dlen; i++) {
  19416. fb = glog[strinbuf[data + i] ^ strinbuf[ecbuf]];
  19417. if (fb != 255) /* fb term is non-zero */
  19418. for (j = 1; j < eclen; j++) {
  19419. strinbuf[ecbuf + j - 1] = strinbuf[ecbuf + j] ^ gexp[modnn(fb + genpoly[eclen - j])];
  19420. } else for (j = ecbuf; j < ecbuf + eclen; j++) {
  19421. strinbuf[j] = strinbuf[j + 1];
  19422. }
  19423. strinbuf[ecbuf + eclen - 1] = fb == 255 ? 0 : gexp[modnn(fb + genpoly[0])];
  19424. }
  19425. }
  19426. //========================================================================
  19427. // Frame data insert following the path rules
  19428. // check mask - since symmetrical use half.
  19429. function ismasked(x, y) {
  19430. var bt;
  19431. if (x > y) {
  19432. bt = x;
  19433. x = y;
  19434. y = bt;
  19435. }
  19436. bt = y;
  19437. bt += y * y;
  19438. bt >>= 1;
  19439. bt += x;
  19440. return framask[bt];
  19441. }
  19442. //========================================================================
  19443. // Apply the selected mask out of the 8.
  19444. function applymask(m) {
  19445. var x, y, r3x, r3y;
  19446. switch (m) {
  19447. case 0:
  19448. for (y = 0; y < width; y++) {
  19449. for (x = 0; x < width; x++) {
  19450. if (!(x + y & 1) && !ismasked(x, y)) qrframe[x + y * width] ^= 1;
  19451. }
  19452. }
  19453. break;
  19454. case 1:
  19455. for (y = 0; y < width; y++) {
  19456. for (x = 0; x < width; x++) {
  19457. if (!(y & 1) && !ismasked(x, y)) qrframe[x + y * width] ^= 1;
  19458. }
  19459. }
  19460. break;
  19461. case 2:
  19462. for (y = 0; y < width; y++) {
  19463. for (r3x = 0, x = 0; x < width; x++, r3x++) {
  19464. if (r3x == 3) r3x = 0;
  19465. if (!r3x && !ismasked(x, y)) qrframe[x + y * width] ^= 1;
  19466. }
  19467. }
  19468. break;
  19469. case 3:
  19470. for (r3y = 0, y = 0; y < width; y++, r3y++) {
  19471. if (r3y == 3) r3y = 0;
  19472. for (r3x = r3y, x = 0; x < width; x++, r3x++) {
  19473. if (r3x == 3) r3x = 0;
  19474. if (!r3x && !ismasked(x, y)) qrframe[x + y * width] ^= 1;
  19475. }
  19476. }
  19477. break;
  19478. case 4:
  19479. for (y = 0; y < width; y++) {
  19480. for (r3x = 0, r3y = y >> 1 & 1, x = 0; x < width; x++, r3x++) {
  19481. if (r3x == 3) {
  19482. r3x = 0;
  19483. r3y = !r3y;
  19484. }
  19485. if (!r3y && !ismasked(x, y)) qrframe[x + y * width] ^= 1;
  19486. }
  19487. }
  19488. break;
  19489. case 5:
  19490. for (r3y = 0, y = 0; y < width; y++, r3y++) {
  19491. if (r3y == 3) r3y = 0;
  19492. for (r3x = 0, x = 0; x < width; x++, r3x++) {
  19493. if (r3x == 3) r3x = 0;
  19494. if (!((x & y & 1) + !(!r3x | !r3y)) && !ismasked(x, y)) qrframe[x + y * width] ^= 1;
  19495. }
  19496. }
  19497. break;
  19498. case 6:
  19499. for (r3y = 0, y = 0; y < width; y++, r3y++) {
  19500. if (r3y == 3) r3y = 0;
  19501. for (r3x = 0, x = 0; x < width; x++, r3x++) {
  19502. if (r3x == 3) r3x = 0;
  19503. if (!((x & y & 1) + (r3x && r3x == r3y) & 1) && !ismasked(x, y)) qrframe[x + y * width] ^= 1;
  19504. }
  19505. }
  19506. break;
  19507. case 7:
  19508. for (r3y = 0, y = 0; y < width; y++, r3y++) {
  19509. if (r3y == 3) r3y = 0;
  19510. for (r3x = 0, x = 0; x < width; x++, r3x++) {
  19511. if (r3x == 3) r3x = 0;
  19512. if (!((r3x && r3x == r3y) + (x + y & 1) & 1) && !ismasked(x, y)) qrframe[x + y * width] ^= 1;
  19513. }
  19514. }
  19515. break;
  19516. }
  19517. return;
  19518. }
  19519. // Badness coefficients.
  19520. var N1 = 3,
  19521. N2 = 3,
  19522. N3 = 40,
  19523. N4 = 10;
  19524. // Using the table of the length of each run, calculate the amount of bad image
  19525. // - long runs or those that look like finders; called twice, once each for X and Y
  19526. function badruns(length) {
  19527. var i;
  19528. var runsbad = 0;
  19529. for (i = 0; i <= length; i++) {
  19530. if (rlens[i] >= 5) runsbad += N1 + rlens[i] - 5;
  19531. }
  19532. // BwBBBwB as in finder
  19533. for (i = 3; i < length - 1; i += 2) {
  19534. if (rlens[i - 2] == rlens[i + 2] && rlens[i + 2] == rlens[i - 1] && rlens[i - 1] == rlens[i + 1] && rlens[i - 1] * 3 == rlens[i]
  19535. // white around the black pattern? Not part of spec
  19536. && (rlens[i - 3] == 0 // beginning
  19537. || i + 3 > length // end
  19538. || rlens[i - 3] * 3 >= rlens[i] * 4 || rlens[i + 3] * 3 >= rlens[i] * 4)) runsbad += N3;
  19539. }
  19540. return runsbad;
  19541. }
  19542. // Calculate how bad the masked image is - blocks, imbalance, runs, or finders.
  19543. function badcheck() {
  19544. var x, y, h, b, b1;
  19545. var thisbad = 0;
  19546. var bw = 0;
  19547. // blocks of same color.
  19548. for (y = 0; y < width - 1; y++) {
  19549. for (x = 0; x < width - 1; x++) {
  19550. if (qrframe[x + width * y] && qrframe[x + 1 + width * y] && qrframe[x + width * (y + 1)] && qrframe[x + 1 + width * (y + 1)] // all black
  19551. || !(qrframe[x + width * y] || qrframe[x + 1 + width * y] || qrframe[x + width * (y + 1)] || qrframe[x + 1 + width * (y + 1)]))
  19552. // all white
  19553. thisbad += N2;
  19554. }
  19555. }
  19556. // X runs
  19557. for (y = 0; y < width; y++) {
  19558. rlens[0] = 0;
  19559. for (h = b = x = 0; x < width; x++) {
  19560. if ((b1 = qrframe[x + width * y]) == b) rlens[h]++;else rlens[++h] = 1;
  19561. b = b1;
  19562. bw += b ? 1 : -1;
  19563. }
  19564. thisbad += badruns(h);
  19565. }
  19566. // black/white imbalance
  19567. if (bw < 0) bw = -bw;
  19568. var big = bw;
  19569. var count = 0;
  19570. big += big << 2;
  19571. big <<= 1;
  19572. while (big > width * width) {
  19573. big -= width * width, count++;
  19574. }
  19575. thisbad += count * N4;
  19576. // Y runs
  19577. for (x = 0; x < width; x++) {
  19578. rlens[0] = 0;
  19579. for (h = b = y = 0; y < width; y++) {
  19580. if ((b1 = qrframe[x + width * y]) == b) rlens[h]++;else rlens[++h] = 1;
  19581. b = b1;
  19582. }
  19583. thisbad += badruns(h);
  19584. }
  19585. return thisbad;
  19586. }
  19587. function genframe(instring) {
  19588. var x, y, k, t, v, i, j, m;
  19589. // find the smallest version that fits the string
  19590. t = instring.length;
  19591. version = 0;
  19592. do {
  19593. version++;
  19594. k = (ecclevel - 1) * 4 + (version - 1) * 16;
  19595. neccblk1 = eccblocks[k++];
  19596. neccblk2 = eccblocks[k++];
  19597. datablkw = eccblocks[k++];
  19598. eccblkwid = eccblocks[k];
  19599. k = datablkw * (neccblk1 + neccblk2) + neccblk2 - 3 + (version <= 9);
  19600. if (t <= k) break;
  19601. } while (version < 40);
  19602. // FIXME - insure that it fits insted of being truncated
  19603. width = 17 + 4 * version;
  19604. // allocate, clear and setup data structures
  19605. v = datablkw + (datablkw + eccblkwid) * (neccblk1 + neccblk2) + neccblk2;
  19606. for (t = 0; t < v; t++) {
  19607. eccbuf[t] = 0;
  19608. }
  19609. strinbuf = instring.slice(0);
  19610. for (t = 0; t < width * width; t++) {
  19611. qrframe[t] = 0;
  19612. }
  19613. for (t = 0; t < (width * (width + 1) + 1) / 2; t++) {
  19614. framask[t] = 0;
  19615. }
  19616. // insert finders - black to frame, white to mask
  19617. for (t = 0; t < 3; t++) {
  19618. k = 0;
  19619. y = 0;
  19620. if (t == 1) k = width - 7;
  19621. if (t == 2) y = width - 7;
  19622. qrframe[y + 3 + width * (k + 3)] = 1;
  19623. for (x = 0; x < 6; x++) {
  19624. qrframe[y + x + width * k] = 1;
  19625. qrframe[y + width * (k + x + 1)] = 1;
  19626. qrframe[y + 6 + width * (k + x)] = 1;
  19627. qrframe[y + x + 1 + width * (k + 6)] = 1;
  19628. }
  19629. for (x = 1; x < 5; x++) {
  19630. setmask(y + x, k + 1);
  19631. setmask(y + 1, k + x + 1);
  19632. setmask(y + 5, k + x);
  19633. setmask(y + x + 1, k + 5);
  19634. }
  19635. for (x = 2; x < 4; x++) {
  19636. qrframe[y + x + width * (k + 2)] = 1;
  19637. qrframe[y + 2 + width * (k + x + 1)] = 1;
  19638. qrframe[y + 4 + width * (k + x)] = 1;
  19639. qrframe[y + x + 1 + width * (k + 4)] = 1;
  19640. }
  19641. }
  19642. // alignment blocks
  19643. if (version > 1) {
  19644. t = adelta[version];
  19645. y = width - 7;
  19646. for (;;) {
  19647. x = width - 7;
  19648. while (x > t - 3) {
  19649. putalign(x, y);
  19650. if (x < t) break;
  19651. x -= t;
  19652. }
  19653. if (y <= t + 9) break;
  19654. y -= t;
  19655. putalign(6, y);
  19656. putalign(y, 6);
  19657. }
  19658. }
  19659. // single black
  19660. qrframe[8 + width * (width - 8)] = 1;
  19661. // timing gap - mask only
  19662. for (y = 0; y < 7; y++) {
  19663. setmask(7, y);
  19664. setmask(width - 8, y);
  19665. setmask(7, y + width - 7);
  19666. }
  19667. for (x = 0; x < 8; x++) {
  19668. setmask(x, 7);
  19669. setmask(x + width - 8, 7);
  19670. setmask(x, width - 8);
  19671. }
  19672. // reserve mask-format area
  19673. for (x = 0; x < 9; x++) {
  19674. setmask(x, 8);
  19675. }
  19676. for (x = 0; x < 8; x++) {
  19677. setmask(x + width - 8, 8);
  19678. setmask(8, x);
  19679. }
  19680. for (y = 0; y < 7; y++) {
  19681. setmask(8, y + width - 7);
  19682. }
  19683. // timing row/col
  19684. for (x = 0; x < width - 14; x++) {
  19685. if (x & 1) {
  19686. setmask(8 + x, 6);
  19687. setmask(6, 8 + x);
  19688. } else {
  19689. qrframe[8 + x + width * 6] = 1;
  19690. qrframe[6 + width * (8 + x)] = 1;
  19691. }
  19692. }
  19693. // version block
  19694. if (version > 6) {
  19695. t = vpat[version - 7];
  19696. k = 17;
  19697. for (x = 0; x < 6; x++) {
  19698. for (y = 0; y < 3; y++, k--) {
  19699. if (1 & (k > 11 ? version >> k - 12 : t >> k)) {
  19700. qrframe[5 - x + width * (2 - y + width - 11)] = 1;
  19701. qrframe[2 - y + width - 11 + width * (5 - x)] = 1;
  19702. } else {
  19703. setmask(5 - x, 2 - y + width - 11);
  19704. setmask(2 - y + width - 11, 5 - x);
  19705. }
  19706. }
  19707. }
  19708. }
  19709. // sync mask bits - only set above for white spaces, so add in black bits
  19710. for (y = 0; y < width; y++) {
  19711. for (x = 0; x <= y; x++) {
  19712. if (qrframe[x + width * y]) setmask(x, y);
  19713. }
  19714. }
  19715. // convert string to bitstream
  19716. // 8 bit data to QR-coded 8 bit data (numeric or alphanum, or kanji not supported)
  19717. v = strinbuf.length;
  19718. // string to array
  19719. for (i = 0; i < v; i++) {
  19720. eccbuf[i] = strinbuf.charCodeAt(i);
  19721. }
  19722. strinbuf = eccbuf.slice(0);
  19723. // calculate max string length
  19724. x = datablkw * (neccblk1 + neccblk2) + neccblk2;
  19725. if (v >= x - 2) {
  19726. v = x - 2;
  19727. if (version > 9) v--;
  19728. }
  19729. // shift and repack to insert length prefix
  19730. i = v;
  19731. if (version > 9) {
  19732. strinbuf[i + 2] = 0;
  19733. strinbuf[i + 3] = 0;
  19734. while (i--) {
  19735. t = strinbuf[i];
  19736. strinbuf[i + 3] |= 255 & t << 4;
  19737. strinbuf[i + 2] = t >> 4;
  19738. }
  19739. strinbuf[2] |= 255 & v << 4;
  19740. strinbuf[1] = v >> 4;
  19741. strinbuf[0] = 0x40 | v >> 12;
  19742. } else {
  19743. strinbuf[i + 1] = 0;
  19744. strinbuf[i + 2] = 0;
  19745. while (i--) {
  19746. t = strinbuf[i];
  19747. strinbuf[i + 2] |= 255 & t << 4;
  19748. strinbuf[i + 1] = t >> 4;
  19749. }
  19750. strinbuf[1] |= 255 & v << 4;
  19751. strinbuf[0] = 0x40 | v >> 4;
  19752. }
  19753. // fill to end with pad pattern
  19754. i = v + 3 - (version < 10);
  19755. while (i < x) {
  19756. strinbuf[i++] = 0xec;
  19757. // buffer has room if (i == x) break;
  19758. strinbuf[i++] = 0x11;
  19759. }
  19760. // calculate and append ECC
  19761. // calculate generator polynomial
  19762. genpoly[0] = 1;
  19763. for (i = 0; i < eccblkwid; i++) {
  19764. genpoly[i + 1] = 1;
  19765. for (j = i; j > 0; j--) {
  19766. genpoly[j] = genpoly[j] ? genpoly[j - 1] ^ gexp[modnn(glog[genpoly[j]] + i)] : genpoly[j - 1];
  19767. }
  19768. genpoly[0] = gexp[modnn(glog[genpoly[0]] + i)];
  19769. }
  19770. for (i = 0; i <= eccblkwid; i++) {
  19771. genpoly[i] = glog[genpoly[i]];
  19772. } // use logs for genpoly[] to save calc step
  19773. // append ecc to data buffer
  19774. k = x;
  19775. y = 0;
  19776. for (i = 0; i < neccblk1; i++) {
  19777. appendrs(y, datablkw, k, eccblkwid);
  19778. y += datablkw;
  19779. k += eccblkwid;
  19780. }
  19781. for (i = 0; i < neccblk2; i++) {
  19782. appendrs(y, datablkw + 1, k, eccblkwid);
  19783. y += datablkw + 1;
  19784. k += eccblkwid;
  19785. }
  19786. // interleave blocks
  19787. y = 0;
  19788. for (i = 0; i < datablkw; i++) {
  19789. for (j = 0; j < neccblk1; j++) {
  19790. eccbuf[y++] = strinbuf[i + j * datablkw];
  19791. }
  19792. for (j = 0; j < neccblk2; j++) {
  19793. eccbuf[y++] = strinbuf[neccblk1 * datablkw + i + j * (datablkw + 1)];
  19794. }
  19795. }
  19796. for (j = 0; j < neccblk2; j++) {
  19797. eccbuf[y++] = strinbuf[neccblk1 * datablkw + i + j * (datablkw + 1)];
  19798. }
  19799. for (i = 0; i < eccblkwid; i++) {
  19800. for (j = 0; j < neccblk1 + neccblk2; j++) {
  19801. eccbuf[y++] = strinbuf[x + i + j * eccblkwid];
  19802. }
  19803. }
  19804. strinbuf = eccbuf;
  19805. // pack bits into frame avoiding masked area.
  19806. x = y = width - 1;
  19807. k = v = 1; // up, minus
  19808. /* inteleaved data and ecc codes */
  19809. m = (datablkw + eccblkwid) * (neccblk1 + neccblk2) + neccblk2;
  19810. for (i = 0; i < m; i++) {
  19811. t = strinbuf[i];
  19812. for (j = 0; j < 8; j++, t <<= 1) {
  19813. if (0x80 & t) qrframe[x + width * y] = 1;
  19814. do {
  19815. // find next fill position
  19816. if (v) x--;else {
  19817. x++;
  19818. if (k) {
  19819. if (y != 0) y--;else {
  19820. x -= 2;
  19821. k = !k;
  19822. if (x == 6) {
  19823. x--;
  19824. y = 9;
  19825. }
  19826. }
  19827. } else {
  19828. if (y != width - 1) y++;else {
  19829. x -= 2;
  19830. k = !k;
  19831. if (x == 6) {
  19832. x--;
  19833. y -= 8;
  19834. }
  19835. }
  19836. }
  19837. }
  19838. v = !v;
  19839. } while (ismasked(x, y));
  19840. }
  19841. }
  19842. // save pre-mask copy of frame
  19843. strinbuf = qrframe.slice(0);
  19844. t = 0; // best
  19845. y = 30000; // demerit
  19846. // for instead of while since in original arduino code
  19847. // if an early mask was "good enough" it wouldn't try for a better one
  19848. // since they get more complex and take longer.
  19849. for (k = 0; k < 8; k++) {
  19850. applymask(k); // returns black-white imbalance
  19851. x = badcheck();
  19852. if (x < y) {
  19853. // current mask better than previous best?
  19854. y = x;
  19855. t = k;
  19856. }
  19857. if (t == 7) break; // don't increment i to a void redoing mask
  19858. qrframe = strinbuf.slice(0); // reset for next pass
  19859. }
  19860. if (t != k)
  19861. // redo best mask - none good enough, last wasn't t
  19862. applymask(t);
  19863. // add in final mask/ecclevel bytes
  19864. y = fmtword[t + (ecclevel - 1 << 3)];
  19865. // low byte
  19866. for (k = 0; k < 8; k++, y >>= 1) {
  19867. if (y & 1) {
  19868. qrframe[width - 1 - k + width * 8] = 1;
  19869. if (k < 6) qrframe[8 + width * k] = 1;else qrframe[8 + width * (k + 1)] = 1;
  19870. }
  19871. }
  19872. // high byte
  19873. for (k = 0; k < 7; k++, y >>= 1) {
  19874. if (y & 1) {
  19875. qrframe[8 + width * (width - 7 + k)] = 1;
  19876. if (k) qrframe[6 - k + width * 8] = 1;else qrframe[7 + width * 8] = 1;
  19877. }
  19878. }
  19879. // return image
  19880. return qrframe;
  19881. }
  19882. var _canvas = null,
  19883. _size = null;
  19884. var api = {
  19885. get ecclevel() {
  19886. return ecclevel;
  19887. },
  19888. set ecclevel(val) {
  19889. ecclevel = val;
  19890. },
  19891. get size() {
  19892. return _size;
  19893. },
  19894. set size(val) {
  19895. _size = val;
  19896. },
  19897. get canvas() {
  19898. return _canvas;
  19899. },
  19900. set canvas(el) {
  19901. _canvas = el;
  19902. },
  19903. getFrame: function getFrame(string) {
  19904. return genframe(string);
  19905. },
  19906. draw: function draw(string, canvas, size, ecc) {
  19907. ecclevel = ecc || ecclevel;
  19908. canvas = canvas || _canvas;
  19909. if (!canvas) {
  19910. console.warn('No canvas provided to draw QR code in!');
  19911. return;
  19912. }
  19913. size = size || _size || Math.min(canvas.width, canvas.height);
  19914. var frame = genframe(string),
  19915. ctx = canvas.ctx,
  19916. px = Math.round(size / (width + 8));
  19917. var roundedSize = px * (width + 8),
  19918. offset = Math.floor((size - roundedSize) / 2);
  19919. size = roundedSize;
  19920. ctx.clearRect(0, 0, canvas.width, canvas.height);
  19921. ctx.setFillStyle('#000000');
  19922. for (var i = 0; i < width; i++) {
  19923. for (var j = 0; j < width; j++) {
  19924. if (frame[j * width + i]) {
  19925. ctx.fillRect(px * (4 + i) + offset, px * (4 + j) + offset, px, px);
  19926. }
  19927. }
  19928. }
  19929. ctx.draw();
  19930. }
  19931. };
  19932. module.exports = {
  19933. api: api
  19934. };
  19935. }();
  19936. /***/ }),
  19937. /* 168 */
  19938. /*!********************************************************************!*\
  19939. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/http/index.js ***!
  19940. \********************************************************************/
  19941. /*! no static exports found */
  19942. /***/ (function(module, exports, __webpack_require__) {
  19943. "use strict";
  19944. /* WEBPACK VAR INJECTION */(function(uni) {
  19945. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  19946. Object.defineProperty(exports, "__esModule", {
  19947. value: true
  19948. });
  19949. exports.default = exports.$http = void 0;
  19950. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 61));
  19951. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 63));
  19952. var _interface = _interopRequireDefault(__webpack_require__(/*! ./interface */ 169));
  19953. var $http = function $http(url, method, data, json, isAuth, isBuffer) {
  19954. var authorization = uni.getStorageSync('authorization') || 'Basic cmluZ3psZTpyaW5nemxl'; //Basic cmVucmVuaW86cmVucmVuaW8=
  19955. var access_token = uni.getStorageSync('access_token') || '';
  19956. //设置请求前拦截器
  19957. _interface.default.interceptor.request = function (config) {
  19958. uni.showLoading({
  19959. title: '加载中...'
  19960. });
  19961. config.header = {
  19962. 'content-type': json ? 'application/json' : 'application/x-www-form-urlencoded',
  19963. 'access_token': access_token
  19964. };
  19965. if (isAuth) config.header.authorization = authorization;
  19966. if (isBuffer) config.responseType = 'arrayBuffer';
  19967. };
  19968. //设置请求结束后拦截器
  19969. _interface.default.interceptor.response = /*#__PURE__*/function () {
  19970. var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(response) {
  19971. return _regenerator.default.wrap(function _callee$(_context) {
  19972. while (1) {
  19973. switch (_context.prev = _context.next) {
  19974. case 0:
  19975. //判断返回状态 执行相应操作
  19976. uni.hideLoading();
  19977. if (!(response.data && response.data.code && response.data.code === 401 || response.data && response.data.msg && (response.data.msg.indexOf('未授权') > -1 || response.data.msg.indexOf('重新登录') > -1))) {
  19978. _context.next = 3;
  19979. break;
  19980. }
  19981. return _context.abrupt("return", uni.showModal({
  19982. title: '温馨提示',
  19983. content: '当前登录已失效,是否重新登录?',
  19984. success: function success(res) {
  19985. if (res.confirm) {
  19986. uni.clearStorageSync();
  19987. uni.reLaunch({
  19988. url: '/pages/login/index'
  19989. });
  19990. }
  19991. }
  19992. }));
  19993. case 3:
  19994. // 请根据后端规定的状态码判定
  19995. if (response.data.code === 300) {//token失效
  19996. // return response.data = await doRequest(response, url)//动态刷新token,并重新完成request请求
  19997. } else {
  19998. if (response.data.code == 10021 && response.data.msg) {
  19999. uni.showToast({
  20000. title: response.data.msg,
  20001. icon: 'none',
  20002. duration: 1500
  20003. });
  20004. }
  20005. }
  20006. return _context.abrupt("return", response);
  20007. case 5:
  20008. case "end":
  20009. return _context.stop();
  20010. }
  20011. }
  20012. }, _callee);
  20013. }));
  20014. return function (_x) {
  20015. return _ref.apply(this, arguments);
  20016. };
  20017. }();
  20018. return _interface.default.request({
  20019. method: method,
  20020. url: url,
  20021. dataType: 'json',
  20022. data: data
  20023. });
  20024. };
  20025. exports.$http = $http;
  20026. function login() {
  20027. return _login.apply(this, arguments);
  20028. }
  20029. function _login() {
  20030. _login = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
  20031. return _regenerator.default.wrap(function _callee2$(_context2) {
  20032. while (1) {
  20033. switch (_context2.prev = _context2.next) {
  20034. case 0:
  20035. return _context2.abrupt("return", new Promise(function (resolve) {
  20036. uni.login({
  20037. provider: 'weixin',
  20038. success: function success(loginRes) {
  20039. resolve(loginRes.code);
  20040. },
  20041. fail: function fail() {}
  20042. });
  20043. }));
  20044. case 1:
  20045. case "end":
  20046. return _context2.stop();
  20047. }
  20048. }
  20049. }, _callee2);
  20050. }));
  20051. return _login.apply(this, arguments);
  20052. }
  20053. function postJson(url, data) {
  20054. var json = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  20055. var isAuth = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
  20056. var isBuffer = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  20057. return $http(url, 'POST', data, json, isAuth, isBuffer);
  20058. }
  20059. function get(url, data) {
  20060. var json = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  20061. var isAuth = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
  20062. var isBuffer = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  20063. return $http(url, 'GET', data, json, isAuth, isBuffer);
  20064. }
  20065. function post(url, data) {
  20066. var json = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  20067. var isAuth = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
  20068. var isBuffer = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  20069. return $http(url, 'POST', data, json, isAuth, isBuffer);
  20070. }
  20071. function put(url, data) {
  20072. var json = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  20073. var isAuth = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
  20074. var isBuffer = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  20075. return $http(url, 'PUT', data, json, isAuth, isBuffer);
  20076. }
  20077. function del(url, data) {
  20078. var json = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  20079. var isAuth = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
  20080. var isBuffer = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  20081. return $http(url, 'DELETE', data, json, isAuth, isBuffer);
  20082. }
  20083. var _default = {
  20084. postJson: postJson,
  20085. get: get,
  20086. post: post,
  20087. put: put,
  20088. del: del
  20089. };
  20090. exports.default = _default;
  20091. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20092. /***/ }),
  20093. /* 169 */
  20094. /*!************************************************************************!*\
  20095. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/http/interface.js ***!
  20096. \************************************************************************/
  20097. /*! no static exports found */
  20098. /***/ (function(module, exports, __webpack_require__) {
  20099. "use strict";
  20100. /* WEBPACK VAR INJECTION */(function(uni) {
  20101. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20102. Object.defineProperty(exports, "__esModule", {
  20103. value: true
  20104. });
  20105. exports.default = void 0;
  20106. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  20107. var _baseApi = __webpack_require__(/*! ./baseApi.js */ 170);
  20108. var _default = {
  20109. config: {
  20110. baseUrl: _baseApi.BaseApi,
  20111. header: (0, _defineProperty2.default)({
  20112. 'Content-Type': 'application/json;charset=UTF-8'
  20113. }, "Content-Type", 'application/x-www-form-urlencoded'),
  20114. data: {},
  20115. method: "GET",
  20116. dataType: "json",
  20117. /* 如设为json,会对返回的数据做一次 JSON.parse */
  20118. responseType: "text",
  20119. success: function success() {},
  20120. fail: function fail() {},
  20121. complete: function complete() {}
  20122. },
  20123. interceptor: {
  20124. request: null,
  20125. response: null
  20126. },
  20127. request: function request(options) {
  20128. var _this = this;
  20129. if (!options) {
  20130. options = {};
  20131. }
  20132. options.baseUrl = options.baseUrl || this.config.baseUrl;
  20133. options.dataType = options.dataType || this.config.dataType;
  20134. options.url = options.baseUrl + options.url;
  20135. options.data = options.data || {};
  20136. options.method = options.method || this.config.method;
  20137. return new Promise(function (resolve, reject) {
  20138. var _config = null;
  20139. options.complete = function (response) {
  20140. var statusCode = response.statusCode;
  20141. response.config = _config;
  20142. if (true) {
  20143. if (statusCode === 200) {
  20144. ////console.log("【" + _config.requestId + "】 结果:" + JSON.stringify(response.data))
  20145. }
  20146. }
  20147. if (_this.interceptor.response) {
  20148. var newResponse = _this.interceptor.response(response);
  20149. if (newResponse) {
  20150. response = newResponse;
  20151. }
  20152. }
  20153. // 统一的响应日志记录
  20154. //_reslog(response)
  20155. if (statusCode === 200) {
  20156. //成功
  20157. resolve(response);
  20158. } else {
  20159. reject(response);
  20160. }
  20161. };
  20162. _config = Object.assign({}, _this.config, options);
  20163. _config.requestId = new Date().getTime();
  20164. if (_this.interceptor.request) {
  20165. _this.interceptor.request(_config);
  20166. }
  20167. // 统一的请求日志记录
  20168. //_reqlog(_config)
  20169. if (true) {
  20170. //console.log("【" + _config.requestId + "】 地址:" + _config.url)
  20171. if (_config.data) {
  20172. //console.log("【" + _config.requestId + "】 参数:" + JSON.stringify(_config.data))
  20173. }
  20174. }
  20175. uni.request(_config);
  20176. });
  20177. }
  20178. };
  20179. /**
  20180. * 请求接口日志记录
  20181. */
  20182. exports.default = _default;
  20183. function _reqlog(req) {
  20184. if (true) {
  20185. //console.log("【" + req.requestId + "】 地址:" + req.url)
  20186. if (req.data) {
  20187. //console.log("【" + req.requestId + "】 请求参数:" + JSON.stringify(req.data))
  20188. }
  20189. }
  20190. //TODO 调接口异步写入日志数据库
  20191. }
  20192. /**
  20193. * 响应接口日志记录
  20194. */
  20195. function _reslog(res) {
  20196. var _statusCode = res.statusCode;
  20197. if (true) {
  20198. //console.log("【" + res.config.requestId + "】 地址:" + res.config.url)
  20199. if (res.config.data) {
  20200. //console.log("【" + res.config.requestId + "】 请求参数:" + JSON.stringify(res.config.data))
  20201. }
  20202. //console.log("【" + res.config.requestId + "】 响应结果:" + JSON.stringify(res))
  20203. }
  20204. //TODO 除了接口服务错误外,其他日志调接口异步写入日志数据库
  20205. switch (_statusCode) {
  20206. case 200:
  20207. break;
  20208. case 401:
  20209. break;
  20210. case 404:
  20211. break;
  20212. default:
  20213. break;
  20214. }
  20215. }
  20216. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20217. /***/ }),
  20218. /* 170 */
  20219. /*!**********************************************************************!*\
  20220. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/http/baseApi.js ***!
  20221. \**********************************************************************/
  20222. /*! no static exports found */
  20223. /***/ (function(module, exports, __webpack_require__) {
  20224. "use strict";
  20225. Object.defineProperty(exports, "__esModule", {
  20226. value: true
  20227. });
  20228. exports.BaseApi = void 0;
  20229. // const BaseApi = 'http://192.168.2.190:8080' //汪瑶
  20230. // const BaseApi = 'http://192.168.2.205:8080' //汪辉
  20231. // const BaseApi = 'http://192.168.2.19:8080' //李勇
  20232. // const BaseApi = 'http://192.168.3.13:8080' //徐涛
  20233. // const BaseApi = 'http://192.168.2.39:8080' //肖添伟
  20234. // const BaseApi = 'http://192.168.3.6:8080' //朱壮波
  20235. var BaseApi = 'https://i.ringzle.com/island-cloud-server'; //测试服务器
  20236. exports.BaseApi = BaseApi;
  20237. /***/ }),
  20238. /* 171 */
  20239. /*!**************************************************************************!*\
  20240. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/utils/dateFormat.js ***!
  20241. \**************************************************************************/
  20242. /*! no static exports found */
  20243. /***/ (function(module, exports) {
  20244. // 对Date的扩展,将 Date 转化为指定格式的String
  20245. // 月(M)、日(d)、小时(h)、分(m)、秒(s)、季度(q) 可以用 1-2 个占位符,
  20246. // 年(y)可以用 1-4 个占位符,毫秒(S)只能用 1 个占位符(是 1-3 位的数字)
  20247. // 例子:
  20248. // (new Date()).Format("yyyy-MM-dd hh:mm:ss.S") ==> 2006-07-02 08:09:04.423
  20249. // (new Date()).Format("yyyy-M-d h:m:s.S") ==> 2006-7-2 8:9:4.18
  20250. Date.prototype.Format = function (fmt) {
  20251. var o = {
  20252. "M+": this.getMonth() + 1,
  20253. // 月份
  20254. "d+": this.getDate(),
  20255. // 日
  20256. "h+": this.getHours(),
  20257. // 小时
  20258. "m+": this.getMinutes(),
  20259. // 分
  20260. "s+": this.getSeconds(),
  20261. // 秒
  20262. "q+": Math.floor((this.getMonth() + 3) / 3),
  20263. // 季度
  20264. "S": this.getMilliseconds() // 毫秒
  20265. };
  20266. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  20267. for (var k in o) {
  20268. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ("00" + o[k]).substr(("" + o[k]).length));
  20269. }
  20270. return fmt;
  20271. };
  20272. /***/ }),
  20273. /* 172 */
  20274. /*!***********************************************************************!*\
  20275. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/utils/wxShare.js ***!
  20276. \***********************************************************************/
  20277. /*! no static exports found */
  20278. /***/ (function(module, exports, __webpack_require__) {
  20279. "use strict";
  20280. Object.defineProperty(exports, "__esModule", {
  20281. value: true
  20282. });
  20283. exports.default = void 0;
  20284. var _default = {
  20285. onShow: function onShow() {
  20286. var pages = getCurrentPages();
  20287. var curPage = pages[pages.length - 1];
  20288. var route = '/' + curPage.route;
  20289. var options = curPage.options;
  20290. if (JSON.stringify(options) != '{}') {
  20291. var i = 0;
  20292. for (var o in options) {
  20293. route += (i == 0 ? '?' : '&') + o + '=' + options[o];
  20294. i++;
  20295. }
  20296. }
  20297. this.$path = route;
  20298. },
  20299. /* 用户点击右上角分享 */
  20300. onShareAppMessage: function onShareAppMessage() {
  20301. return {
  20302. title: '数字海岛',
  20303. path: this.$path
  20304. };
  20305. },
  20306. /* 分享到朋友圈 */
  20307. onShareTimeline: function onShareTimeline() {
  20308. return {
  20309. title: '数字海岛',
  20310. path: this.$path
  20311. };
  20312. }
  20313. };
  20314. exports.default = _default;
  20315. /***/ }),
  20316. /* 173 */,
  20317. /* 174 */,
  20318. /* 175 */,
  20319. /* 176 */,
  20320. /* 177 */,
  20321. /* 178 */,
  20322. /* 179 */,
  20323. /* 180 */,
  20324. /* 181 */,
  20325. /* 182 */,
  20326. /* 183 */,
  20327. /* 184 */,
  20328. /* 185 */,
  20329. /* 186 */,
  20330. /* 187 */,
  20331. /* 188 */,
  20332. /* 189 */,
  20333. /* 190 */,
  20334. /* 191 */,
  20335. /* 192 */,
  20336. /* 193 */,
  20337. /* 194 */,
  20338. /* 195 */,
  20339. /* 196 */,
  20340. /* 197 */,
  20341. /* 198 */,
  20342. /* 199 */,
  20343. /* 200 */,
  20344. /* 201 */,
  20345. /* 202 */,
  20346. /* 203 */,
  20347. /* 204 */,
  20348. /* 205 */,
  20349. /* 206 */,
  20350. /* 207 */,
  20351. /* 208 */,
  20352. /* 209 */,
  20353. /* 210 */,
  20354. /* 211 */,
  20355. /* 212 */,
  20356. /* 213 */,
  20357. /* 214 */,
  20358. /* 215 */,
  20359. /* 216 */,
  20360. /* 217 */,
  20361. /* 218 */,
  20362. /* 219 */,
  20363. /* 220 */,
  20364. /* 221 */,
  20365. /* 222 */,
  20366. /* 223 */,
  20367. /* 224 */,
  20368. /* 225 */,
  20369. /* 226 */,
  20370. /* 227 */,
  20371. /* 228 */,
  20372. /* 229 */,
  20373. /* 230 */,
  20374. /* 231 */,
  20375. /* 232 */,
  20376. /* 233 */,
  20377. /* 234 */,
  20378. /* 235 */,
  20379. /* 236 */,
  20380. /* 237 */,
  20381. /* 238 */,
  20382. /* 239 */
  20383. /*!********************************************************************************************************!*\
  20384. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/components/u-navbar/props.js ***!
  20385. \********************************************************************************************************/
  20386. /*! no static exports found */
  20387. /***/ (function(module, exports, __webpack_require__) {
  20388. "use strict";
  20389. /* WEBPACK VAR INJECTION */(function(uni) {
  20390. Object.defineProperty(exports, "__esModule", {
  20391. value: true
  20392. });
  20393. exports.default = void 0;
  20394. var _default = {
  20395. props: {
  20396. // 是否开启顶部安全区适配
  20397. safeAreaInsetTop: {
  20398. type: Boolean,
  20399. default: uni.$u.props.navbar.safeAreaInsetTop
  20400. },
  20401. // 固定在顶部时,是否生成一个等高元素,以防止塌陷
  20402. placeholder: {
  20403. type: Boolean,
  20404. default: uni.$u.props.navbar.placeholder
  20405. },
  20406. // 是否固定在顶部
  20407. fixed: {
  20408. type: Boolean,
  20409. default: uni.$u.props.navbar.fixed
  20410. },
  20411. // 是否显示下边框
  20412. border: {
  20413. type: Boolean,
  20414. default: uni.$u.props.navbar.border
  20415. },
  20416. // 左边的图标
  20417. leftIcon: {
  20418. type: String,
  20419. default: uni.$u.props.navbar.leftIcon
  20420. },
  20421. // 左边的提示文字
  20422. leftText: {
  20423. type: String,
  20424. default: uni.$u.props.navbar.leftText
  20425. },
  20426. // 左右的提示文字
  20427. rightText: {
  20428. type: String,
  20429. default: uni.$u.props.navbar.rightText
  20430. },
  20431. // 右边的图标
  20432. rightIcon: {
  20433. type: String,
  20434. default: uni.$u.props.navbar.rightIcon
  20435. },
  20436. // 标题
  20437. title: {
  20438. type: [String, Number],
  20439. default: uni.$u.props.navbar.title
  20440. },
  20441. // 背景颜色
  20442. bgColor: {
  20443. type: String,
  20444. default: uni.$u.props.navbar.bgColor
  20445. },
  20446. // 标题的宽度
  20447. titleWidth: {
  20448. type: [String, Number],
  20449. default: uni.$u.props.navbar.titleWidth
  20450. },
  20451. // 导航栏高度
  20452. height: {
  20453. type: [String, Number],
  20454. default: uni.$u.props.navbar.height
  20455. },
  20456. // 左侧返回图标的大小
  20457. leftIconSize: {
  20458. type: [String, Number],
  20459. default: uni.$u.props.navbar.leftIconSize
  20460. },
  20461. // 左侧返回图标的颜色
  20462. leftIconColor: {
  20463. type: String,
  20464. default: uni.$u.props.navbar.leftIconColor
  20465. },
  20466. // 点击左侧区域(返回图标),是否自动返回上一页
  20467. autoBack: {
  20468. type: Boolean,
  20469. default: uni.$u.props.navbar.autoBack
  20470. },
  20471. // 标题的样式,对象或字符串
  20472. titleStyle: {
  20473. type: [String, Object],
  20474. default: uni.$u.props.navbar.titleStyle
  20475. }
  20476. }
  20477. };
  20478. exports.default = _default;
  20479. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20480. /***/ }),
  20481. /* 240 */,
  20482. /* 241 */,
  20483. /* 242 */,
  20484. /* 243 */,
  20485. /* 244 */,
  20486. /* 245 */,
  20487. /* 246 */,
  20488. /* 247 */
  20489. /*!******************************************************************************************************!*\
  20490. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/components/u-icon/icons.js ***!
  20491. \******************************************************************************************************/
  20492. /*! no static exports found */
  20493. /***/ (function(module, exports, __webpack_require__) {
  20494. "use strict";
  20495. Object.defineProperty(exports, "__esModule", {
  20496. value: true
  20497. });
  20498. exports.default = void 0;
  20499. var _default = {
  20500. 'uicon-level': "\uE693",
  20501. 'uicon-column-line': "\uE68E",
  20502. 'uicon-checkbox-mark': "\uE807",
  20503. 'uicon-folder': "\uE7F5",
  20504. 'uicon-movie': "\uE7F6",
  20505. 'uicon-star-fill': "\uE669",
  20506. 'uicon-star': "\uE65F",
  20507. 'uicon-phone-fill': "\uE64F",
  20508. 'uicon-phone': "\uE622",
  20509. 'uicon-apple-fill': "\uE881",
  20510. 'uicon-chrome-circle-fill': "\uE885",
  20511. 'uicon-backspace': "\uE67B",
  20512. 'uicon-attach': "\uE632",
  20513. 'uicon-cut': "\uE948",
  20514. 'uicon-empty-car': "\uE602",
  20515. 'uicon-empty-coupon': "\uE682",
  20516. 'uicon-empty-address': "\uE646",
  20517. 'uicon-empty-favor': "\uE67C",
  20518. 'uicon-empty-permission': "\uE686",
  20519. 'uicon-empty-news': "\uE687",
  20520. 'uicon-empty-search': "\uE664",
  20521. 'uicon-github-circle-fill': "\uE887",
  20522. 'uicon-rmb': "\uE608",
  20523. 'uicon-person-delete-fill': "\uE66A",
  20524. 'uicon-reload': "\uE788",
  20525. 'uicon-order': "\uE68F",
  20526. 'uicon-server-man': "\uE6BC",
  20527. 'uicon-search': "\uE62A",
  20528. 'uicon-fingerprint': "\uE955",
  20529. 'uicon-more-dot-fill': "\uE630",
  20530. 'uicon-scan': "\uE662",
  20531. 'uicon-share-square': "\uE60B",
  20532. 'uicon-map': "\uE61D",
  20533. 'uicon-map-fill': "\uE64E",
  20534. 'uicon-tags': "\uE629",
  20535. 'uicon-tags-fill': "\uE651",
  20536. 'uicon-bookmark-fill': "\uE63B",
  20537. 'uicon-bookmark': "\uE60A",
  20538. 'uicon-eye': "\uE613",
  20539. 'uicon-eye-fill': "\uE641",
  20540. 'uicon-mic': "\uE64A",
  20541. 'uicon-mic-off': "\uE649",
  20542. 'uicon-calendar': "\uE66E",
  20543. 'uicon-calendar-fill': "\uE634",
  20544. 'uicon-trash': "\uE623",
  20545. 'uicon-trash-fill': "\uE658",
  20546. 'uicon-play-left': "\uE66D",
  20547. 'uicon-play-right': "\uE610",
  20548. 'uicon-minus': "\uE618",
  20549. 'uicon-plus': "\uE62D",
  20550. 'uicon-info': "\uE653",
  20551. 'uicon-info-circle': "\uE7D2",
  20552. 'uicon-info-circle-fill': "\uE64B",
  20553. 'uicon-question': "\uE715",
  20554. 'uicon-error': "\uE6D3",
  20555. 'uicon-close': "\uE685",
  20556. 'uicon-checkmark': "\uE6A8",
  20557. 'uicon-android-circle-fill': "\uE67E",
  20558. 'uicon-android-fill': "\uE67D",
  20559. 'uicon-ie': "\uE87B",
  20560. 'uicon-IE-circle-fill': "\uE889",
  20561. 'uicon-google': "\uE87A",
  20562. 'uicon-google-circle-fill': "\uE88A",
  20563. 'uicon-setting-fill': "\uE872",
  20564. 'uicon-setting': "\uE61F",
  20565. 'uicon-minus-square-fill': "\uE855",
  20566. 'uicon-plus-square-fill': "\uE856",
  20567. 'uicon-heart': "\uE7DF",
  20568. 'uicon-heart-fill': "\uE851",
  20569. 'uicon-camera': "\uE7D7",
  20570. 'uicon-camera-fill': "\uE870",
  20571. 'uicon-more-circle': "\uE63E",
  20572. 'uicon-more-circle-fill': "\uE645",
  20573. 'uicon-chat': "\uE620",
  20574. 'uicon-chat-fill': "\uE61E",
  20575. 'uicon-bag-fill': "\uE617",
  20576. 'uicon-bag': "\uE619",
  20577. 'uicon-error-circle-fill': "\uE62C",
  20578. 'uicon-error-circle': "\uE624",
  20579. 'uicon-close-circle': "\uE63F",
  20580. 'uicon-close-circle-fill': "\uE637",
  20581. 'uicon-checkmark-circle': "\uE63D",
  20582. 'uicon-checkmark-circle-fill': "\uE635",
  20583. 'uicon-question-circle-fill': "\uE666",
  20584. 'uicon-question-circle': "\uE625",
  20585. 'uicon-share': "\uE631",
  20586. 'uicon-share-fill': "\uE65E",
  20587. 'uicon-shopping-cart': "\uE621",
  20588. 'uicon-shopping-cart-fill': "\uE65D",
  20589. 'uicon-bell': "\uE609",
  20590. 'uicon-bell-fill': "\uE640",
  20591. 'uicon-list': "\uE650",
  20592. 'uicon-list-dot': "\uE616",
  20593. 'uicon-zhihu': "\uE6BA",
  20594. 'uicon-zhihu-circle-fill': "\uE709",
  20595. 'uicon-zhifubao': "\uE6B9",
  20596. 'uicon-zhifubao-circle-fill': "\uE6B8",
  20597. 'uicon-weixin-circle-fill': "\uE6B1",
  20598. 'uicon-weixin-fill': "\uE6B2",
  20599. 'uicon-twitter-circle-fill': "\uE6AB",
  20600. 'uicon-twitter': "\uE6AA",
  20601. 'uicon-taobao-circle-fill': "\uE6A7",
  20602. 'uicon-taobao': "\uE6A6",
  20603. 'uicon-weibo-circle-fill': "\uE6A5",
  20604. 'uicon-weibo': "\uE6A4",
  20605. 'uicon-qq-fill': "\uE6A1",
  20606. 'uicon-qq-circle-fill': "\uE6A0",
  20607. 'uicon-moments-circel-fill': "\uE69A",
  20608. 'uicon-moments': "\uE69B",
  20609. 'uicon-qzone': "\uE695",
  20610. 'uicon-qzone-circle-fill': "\uE696",
  20611. 'uicon-baidu-circle-fill': "\uE680",
  20612. 'uicon-baidu': "\uE681",
  20613. 'uicon-facebook-circle-fill': "\uE68A",
  20614. 'uicon-facebook': "\uE689",
  20615. 'uicon-car': "\uE60C",
  20616. 'uicon-car-fill': "\uE636",
  20617. 'uicon-warning-fill': "\uE64D",
  20618. 'uicon-warning': "\uE694",
  20619. 'uicon-clock-fill': "\uE638",
  20620. 'uicon-clock': "\uE60F",
  20621. 'uicon-edit-pen': "\uE612",
  20622. 'uicon-edit-pen-fill': "\uE66B",
  20623. 'uicon-email': "\uE611",
  20624. 'uicon-email-fill': "\uE642",
  20625. 'uicon-minus-circle': "\uE61B",
  20626. 'uicon-minus-circle-fill': "\uE652",
  20627. 'uicon-plus-circle': "\uE62E",
  20628. 'uicon-plus-circle-fill': "\uE661",
  20629. 'uicon-file-text': "\uE663",
  20630. 'uicon-file-text-fill': "\uE665",
  20631. 'uicon-pushpin': "\uE7E3",
  20632. 'uicon-pushpin-fill': "\uE86E",
  20633. 'uicon-grid': "\uE673",
  20634. 'uicon-grid-fill': "\uE678",
  20635. 'uicon-play-circle': "\uE647",
  20636. 'uicon-play-circle-fill': "\uE655",
  20637. 'uicon-pause-circle-fill': "\uE654",
  20638. 'uicon-pause': "\uE8FA",
  20639. 'uicon-pause-circle': "\uE643",
  20640. 'uicon-eye-off': "\uE648",
  20641. 'uicon-eye-off-outline': "\uE62B",
  20642. 'uicon-gift-fill': "\uE65C",
  20643. 'uicon-gift': "\uE65B",
  20644. 'uicon-rmb-circle-fill': "\uE657",
  20645. 'uicon-rmb-circle': "\uE677",
  20646. 'uicon-kefu-ermai': "\uE656",
  20647. 'uicon-server-fill': "\uE751",
  20648. 'uicon-coupon-fill': "\uE8C4",
  20649. 'uicon-coupon': "\uE8AE",
  20650. 'uicon-integral': "\uE704",
  20651. 'uicon-integral-fill': "\uE703",
  20652. 'uicon-home-fill': "\uE964",
  20653. 'uicon-home': "\uE965",
  20654. 'uicon-hourglass-half-fill': "\uE966",
  20655. 'uicon-hourglass': "\uE967",
  20656. 'uicon-account': "\uE628",
  20657. 'uicon-plus-people-fill': "\uE626",
  20658. 'uicon-minus-people-fill': "\uE615",
  20659. 'uicon-account-fill': "\uE614",
  20660. 'uicon-thumb-down-fill': "\uE726",
  20661. 'uicon-thumb-down': "\uE727",
  20662. 'uicon-thumb-up': "\uE733",
  20663. 'uicon-thumb-up-fill': "\uE72F",
  20664. 'uicon-lock-fill': "\uE979",
  20665. 'uicon-lock-open': "\uE973",
  20666. 'uicon-lock-opened-fill': "\uE974",
  20667. 'uicon-lock': "\uE97A",
  20668. 'uicon-red-packet-fill': "\uE690",
  20669. 'uicon-photo-fill': "\uE98B",
  20670. 'uicon-photo': "\uE98D",
  20671. 'uicon-volume-off-fill': "\uE659",
  20672. 'uicon-volume-off': "\uE644",
  20673. 'uicon-volume-fill': "\uE670",
  20674. 'uicon-volume': "\uE633",
  20675. 'uicon-red-packet': "\uE691",
  20676. 'uicon-download': "\uE63C",
  20677. 'uicon-arrow-up-fill': "\uE6B0",
  20678. 'uicon-arrow-down-fill': "\uE600",
  20679. 'uicon-play-left-fill': "\uE675",
  20680. 'uicon-play-right-fill': "\uE676",
  20681. 'uicon-rewind-left-fill': "\uE679",
  20682. 'uicon-rewind-right-fill': "\uE67A",
  20683. 'uicon-arrow-downward': "\uE604",
  20684. 'uicon-arrow-leftward': "\uE601",
  20685. 'uicon-arrow-rightward': "\uE603",
  20686. 'uicon-arrow-upward': "\uE607",
  20687. 'uicon-arrow-down': "\uE60D",
  20688. 'uicon-arrow-right': "\uE605",
  20689. 'uicon-arrow-left': "\uE60E",
  20690. 'uicon-arrow-up': "\uE606",
  20691. 'uicon-skip-back-left': "\uE674",
  20692. 'uicon-skip-forward-right': "\uE672",
  20693. 'uicon-rewind-right': "\uE66F",
  20694. 'uicon-rewind-left': "\uE671",
  20695. 'uicon-arrow-right-double': "\uE68D",
  20696. 'uicon-arrow-left-double': "\uE68C",
  20697. 'uicon-wifi-off': "\uE668",
  20698. 'uicon-wifi': "\uE667",
  20699. 'uicon-empty-data': "\uE62F",
  20700. 'uicon-empty-history': "\uE684",
  20701. 'uicon-empty-list': "\uE68B",
  20702. 'uicon-empty-page': "\uE627",
  20703. 'uicon-empty-order': "\uE639",
  20704. 'uicon-man': "\uE697",
  20705. 'uicon-woman': "\uE69C",
  20706. 'uicon-man-add': "\uE61C",
  20707. 'uicon-man-add-fill': "\uE64C",
  20708. 'uicon-man-delete': "\uE61A",
  20709. 'uicon-man-delete-fill': "\uE66A",
  20710. 'uicon-zh': "\uE70A",
  20711. 'uicon-en': "\uE692"
  20712. };
  20713. exports.default = _default;
  20714. /***/ }),
  20715. /* 248 */
  20716. /*!******************************************************************************************************!*\
  20717. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/components/u-icon/props.js ***!
  20718. \******************************************************************************************************/
  20719. /*! no static exports found */
  20720. /***/ (function(module, exports, __webpack_require__) {
  20721. "use strict";
  20722. /* WEBPACK VAR INJECTION */(function(uni) {
  20723. Object.defineProperty(exports, "__esModule", {
  20724. value: true
  20725. });
  20726. exports.default = void 0;
  20727. var _default = {
  20728. props: {
  20729. // 图标类名
  20730. name: {
  20731. type: String,
  20732. default: uni.$u.props.icon.name
  20733. },
  20734. // 图标颜色,可接受主题色
  20735. color: {
  20736. type: String,
  20737. default: uni.$u.props.icon.color
  20738. },
  20739. // 字体大小,单位px
  20740. size: {
  20741. type: [String, Number],
  20742. default: uni.$u.props.icon.size
  20743. },
  20744. // 是否显示粗体
  20745. bold: {
  20746. type: Boolean,
  20747. default: uni.$u.props.icon.bold
  20748. },
  20749. // 点击图标的时候传递事件出去的index(用于区分点击了哪一个)
  20750. index: {
  20751. type: [String, Number],
  20752. default: uni.$u.props.icon.index
  20753. },
  20754. // 触摸图标时的类名
  20755. hoverClass: {
  20756. type: String,
  20757. default: uni.$u.props.icon.hoverClass
  20758. },
  20759. // 自定义扩展前缀,方便用户扩展自己的图标库
  20760. customPrefix: {
  20761. type: String,
  20762. default: uni.$u.props.icon.customPrefix
  20763. },
  20764. // 图标右边或者下面的文字
  20765. label: {
  20766. type: [String, Number],
  20767. default: uni.$u.props.icon.label
  20768. },
  20769. // label的位置,只能右边或者下边
  20770. labelPos: {
  20771. type: String,
  20772. default: uni.$u.props.icon.labelPos
  20773. },
  20774. // label的大小
  20775. labelSize: {
  20776. type: [String, Number],
  20777. default: uni.$u.props.icon.labelSize
  20778. },
  20779. // label的颜色
  20780. labelColor: {
  20781. type: String,
  20782. default: uni.$u.props.icon.labelColor
  20783. },
  20784. // label与图标的距离
  20785. space: {
  20786. type: [String, Number],
  20787. default: uni.$u.props.icon.space
  20788. },
  20789. // 图片的mode
  20790. imgMode: {
  20791. type: String,
  20792. default: uni.$u.props.icon.imgMode
  20793. },
  20794. // 用于显示图片小图标时,图片的宽度
  20795. width: {
  20796. type: [String, Number],
  20797. default: uni.$u.props.icon.width
  20798. },
  20799. // 用于显示图片小图标时,图片的高度
  20800. height: {
  20801. type: [String, Number],
  20802. default: uni.$u.props.icon.height
  20803. },
  20804. // 用于解决某些情况下,让图标垂直居中的用途
  20805. top: {
  20806. type: [String, Number],
  20807. default: uni.$u.props.icon.top
  20808. },
  20809. // 是否阻止事件传播
  20810. stop: {
  20811. type: Boolean,
  20812. default: uni.$u.props.icon.stop
  20813. }
  20814. }
  20815. };
  20816. exports.default = _default;
  20817. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20818. /***/ }),
  20819. /* 249 */,
  20820. /* 250 */,
  20821. /* 251 */,
  20822. /* 252 */,
  20823. /* 253 */,
  20824. /* 254 */,
  20825. /* 255 */,
  20826. /* 256 */
  20827. /*!******************************************************************************************************!*\
  20828. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/components/u-line/props.js ***!
  20829. \******************************************************************************************************/
  20830. /*! no static exports found */
  20831. /***/ (function(module, exports, __webpack_require__) {
  20832. "use strict";
  20833. /* WEBPACK VAR INJECTION */(function(uni) {
  20834. Object.defineProperty(exports, "__esModule", {
  20835. value: true
  20836. });
  20837. exports.default = void 0;
  20838. var _default = {
  20839. props: {
  20840. color: {
  20841. type: String,
  20842. default: uni.$u.props.line.color
  20843. },
  20844. // 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等
  20845. length: {
  20846. type: [String, Number],
  20847. default: uni.$u.props.line.length
  20848. },
  20849. // 线条方向,col-竖向,row-横向
  20850. direction: {
  20851. type: String,
  20852. default: uni.$u.props.line.direction
  20853. },
  20854. // 是否显示细边框
  20855. hairline: {
  20856. type: Boolean,
  20857. default: uni.$u.props.line.hairline
  20858. },
  20859. // 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px"
  20860. margin: {
  20861. type: [String, Number],
  20862. default: uni.$u.props.line.margin
  20863. },
  20864. // 是否虚线,true-虚线,false-实线
  20865. dashed: {
  20866. type: Boolean,
  20867. default: uni.$u.props.line.dashed
  20868. }
  20869. }
  20870. };
  20871. exports.default = _default;
  20872. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20873. /***/ }),
  20874. /* 257 */,
  20875. /* 258 */,
  20876. /* 259 */,
  20877. /* 260 */,
  20878. /* 261 */,
  20879. /* 262 */,
  20880. /* 263 */,
  20881. /* 264 */
  20882. /*!*******************************************************************************************************!*\
  20883. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/components/u-image/props.js ***!
  20884. \*******************************************************************************************************/
  20885. /*! no static exports found */
  20886. /***/ (function(module, exports, __webpack_require__) {
  20887. "use strict";
  20888. /* WEBPACK VAR INJECTION */(function(uni) {
  20889. Object.defineProperty(exports, "__esModule", {
  20890. value: true
  20891. });
  20892. exports.default = void 0;
  20893. var _default = {
  20894. props: {
  20895. // 图片地址
  20896. src: {
  20897. type: String,
  20898. default: uni.$u.props.image.src
  20899. },
  20900. // 裁剪模式
  20901. mode: {
  20902. type: String,
  20903. default: uni.$u.props.image.mode
  20904. },
  20905. // 宽度,单位任意
  20906. width: {
  20907. type: [String, Number],
  20908. default: uni.$u.props.image.width
  20909. },
  20910. // 高度,单位任意
  20911. height: {
  20912. type: [String, Number],
  20913. default: uni.$u.props.image.height
  20914. },
  20915. // 图片形状,circle-圆形,square-方形
  20916. shape: {
  20917. type: String,
  20918. default: uni.$u.props.image.shape
  20919. },
  20920. // 圆角,单位任意
  20921. radius: {
  20922. type: [String, Number],
  20923. default: uni.$u.props.image.radius
  20924. },
  20925. // 是否懒加载,微信小程序、App、百度小程序、字节跳动小程序
  20926. lazyLoad: {
  20927. type: Boolean,
  20928. default: uni.$u.props.image.lazyLoad
  20929. },
  20930. // 开启长按图片显示识别微信小程序码菜单
  20931. showMenuByLongpress: {
  20932. type: Boolean,
  20933. default: uni.$u.props.image.showMenuByLongpress
  20934. },
  20935. // 加载中的图标,或者小图片
  20936. loadingIcon: {
  20937. type: String,
  20938. default: uni.$u.props.image.loadingIcon
  20939. },
  20940. // 加载失败的图标,或者小图片
  20941. errorIcon: {
  20942. type: String,
  20943. default: uni.$u.props.image.errorIcon
  20944. },
  20945. // 是否显示加载中的图标或者自定义的slot
  20946. showLoading: {
  20947. type: Boolean,
  20948. default: uni.$u.props.image.showLoading
  20949. },
  20950. // 是否显示加载错误的图标或者自定义的slot
  20951. showError: {
  20952. type: Boolean,
  20953. default: uni.$u.props.image.showError
  20954. },
  20955. // 是否需要淡入效果
  20956. fade: {
  20957. type: Boolean,
  20958. default: uni.$u.props.image.fade
  20959. },
  20960. // 只支持网络资源,只对微信小程序有效
  20961. webp: {
  20962. type: Boolean,
  20963. default: uni.$u.props.image.webp
  20964. },
  20965. // 过渡时间,单位ms
  20966. duration: {
  20967. type: [String, Number],
  20968. default: uni.$u.props.image.duration
  20969. },
  20970. // 背景颜色,用于深色页面加载图片时,为了和背景色融合
  20971. bgColor: {
  20972. type: String,
  20973. default: uni.$u.props.image.bgColor
  20974. }
  20975. }
  20976. };
  20977. exports.default = _default;
  20978. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20979. /***/ }),
  20980. /* 265 */,
  20981. /* 266 */,
  20982. /* 267 */,
  20983. /* 268 */,
  20984. /* 269 */,
  20985. /* 270 */
  20986. /*!********************************************************************************************************!*\
  20987. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/components/u-tabbar/props.js ***!
  20988. \********************************************************************************************************/
  20989. /*! no static exports found */
  20990. /***/ (function(module, exports, __webpack_require__) {
  20991. "use strict";
  20992. /* WEBPACK VAR INJECTION */(function(uni) {
  20993. Object.defineProperty(exports, "__esModule", {
  20994. value: true
  20995. });
  20996. exports.default = void 0;
  20997. var _default = {
  20998. props: {
  20999. // 当前匹配项的name
  21000. value: {
  21001. type: [String, Number, null],
  21002. default: uni.$u.props.tabbar.value
  21003. },
  21004. // 是否为iPhoneX留出底部安全距离
  21005. safeAreaInsetBottom: {
  21006. type: Boolean,
  21007. default: uni.$u.props.tabbar.safeAreaInsetBottom
  21008. },
  21009. // 是否显示上方边框
  21010. border: {
  21011. type: Boolean,
  21012. default: uni.$u.props.tabbar.border
  21013. },
  21014. // 元素层级z-index
  21015. zIndex: {
  21016. type: [String, Number],
  21017. default: uni.$u.props.tabbar.zIndex
  21018. },
  21019. // 选中标签的颜色
  21020. activeColor: {
  21021. type: String,
  21022. default: uni.$u.props.tabbar.activeColor
  21023. },
  21024. // 未选中标签的颜色
  21025. inactiveColor: {
  21026. type: String,
  21027. default: uni.$u.props.tabbar.inactiveColor
  21028. },
  21029. // 是否固定在底部
  21030. fixed: {
  21031. type: Boolean,
  21032. default: uni.$u.props.tabbar.fixed
  21033. },
  21034. // fixed定位固定在底部时,是否生成一个等高元素防止塌陷
  21035. placeholder: {
  21036. type: Boolean,
  21037. default: uni.$u.props.tabbar.placeholder
  21038. }
  21039. }
  21040. };
  21041. exports.default = _default;
  21042. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21043. /***/ }),
  21044. /* 271 */,
  21045. /* 272 */,
  21046. /* 273 */,
  21047. /* 274 */,
  21048. /* 275 */,
  21049. /* 276 */,
  21050. /* 277 */,
  21051. /* 278 */
  21052. /*!*************************************************************************************************************!*\
  21053. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/components/u-tabbar-item/props.js ***!
  21054. \*************************************************************************************************************/
  21055. /*! no static exports found */
  21056. /***/ (function(module, exports, __webpack_require__) {
  21057. "use strict";
  21058. /* WEBPACK VAR INJECTION */(function(uni) {
  21059. Object.defineProperty(exports, "__esModule", {
  21060. value: true
  21061. });
  21062. exports.default = void 0;
  21063. var _default = {
  21064. props: {
  21065. // item标签的名称,作为与u-tabbar的value参数匹配的标识符
  21066. name: {
  21067. type: [String, Number, null],
  21068. default: uni.$u.props.tabbarItem.name
  21069. },
  21070. // uView内置图标或者绝对路径的图片
  21071. icon: {
  21072. icon: String,
  21073. default: uni.$u.props.tabbarItem.icon
  21074. },
  21075. // 右上角的角标提示信息
  21076. badge: {
  21077. type: [String, Number, null],
  21078. default: uni.$u.props.tabbarItem.badge
  21079. },
  21080. // 是否显示圆点,将会覆盖badge参数
  21081. dot: {
  21082. type: Boolean,
  21083. default: uni.$u.props.tabbarItem.dot
  21084. },
  21085. // 描述文本
  21086. text: {
  21087. type: String,
  21088. default: uni.$u.props.tabbarItem.text
  21089. },
  21090. // 控制徽标的位置,对象或者字符串形式,可以设置top和right属性
  21091. badgeStyle: {
  21092. type: [Object, String],
  21093. default: uni.$u.props.tabbarItem.badgeStyle
  21094. }
  21095. }
  21096. };
  21097. exports.default = _default;
  21098. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21099. /***/ }),
  21100. /* 279 */,
  21101. /* 280 */,
  21102. /* 281 */,
  21103. /* 282 */,
  21104. /* 283 */,
  21105. /* 284 */,
  21106. /* 285 */,
  21107. /* 286 */
  21108. /*!************************************************************************************************************!*\
  21109. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/components/u-status-bar/props.js ***!
  21110. \************************************************************************************************************/
  21111. /*! no static exports found */
  21112. /***/ (function(module, exports, __webpack_require__) {
  21113. "use strict";
  21114. /* WEBPACK VAR INJECTION */(function(uni) {
  21115. Object.defineProperty(exports, "__esModule", {
  21116. value: true
  21117. });
  21118. exports.default = void 0;
  21119. var _default = {
  21120. props: {
  21121. bgColor: {
  21122. type: String,
  21123. default: uni.$u.props.statusBar.bgColor
  21124. }
  21125. }
  21126. };
  21127. exports.default = _default;
  21128. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21129. /***/ }),
  21130. /* 287 */,
  21131. /* 288 */,
  21132. /* 289 */,
  21133. /* 290 */,
  21134. /* 291 */,
  21135. /* 292 */,
  21136. /* 293 */,
  21137. /* 294 */,
  21138. /* 295 */,
  21139. /* 296 */,
  21140. /* 297 */,
  21141. /* 298 */,
  21142. /* 299 */,
  21143. /* 300 */,
  21144. /* 301 */
  21145. /*!*************************************************************************************************************!*\
  21146. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/components/u-safe-bottom/props.js ***!
  21147. \*************************************************************************************************************/
  21148. /*! no static exports found */
  21149. /***/ (function(module, exports, __webpack_require__) {
  21150. "use strict";
  21151. Object.defineProperty(exports, "__esModule", {
  21152. value: true
  21153. });
  21154. exports.default = void 0;
  21155. var _default = {
  21156. props: {}
  21157. };
  21158. exports.default = _default;
  21159. /***/ }),
  21160. /* 302 */,
  21161. /* 303 */,
  21162. /* 304 */,
  21163. /* 305 */,
  21164. /* 306 */,
  21165. /* 307 */,
  21166. /* 308 */,
  21167. /* 309 */
  21168. /*!*******************************************************************************************************!*\
  21169. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/components/u-badge/props.js ***!
  21170. \*******************************************************************************************************/
  21171. /*! no static exports found */
  21172. /***/ (function(module, exports, __webpack_require__) {
  21173. "use strict";
  21174. /* WEBPACK VAR INJECTION */(function(uni) {
  21175. Object.defineProperty(exports, "__esModule", {
  21176. value: true
  21177. });
  21178. exports.default = void 0;
  21179. var _default = {
  21180. props: {
  21181. // 是否显示圆点
  21182. isDot: {
  21183. type: Boolean,
  21184. default: uni.$u.props.badge.isDot
  21185. },
  21186. // 显示的内容
  21187. value: {
  21188. type: [Number, String],
  21189. default: uni.$u.props.badge.value
  21190. },
  21191. // 是否显示
  21192. show: {
  21193. type: Boolean,
  21194. default: uni.$u.props.badge.show
  21195. },
  21196. // 最大值,超过最大值会显示 '{max}+'
  21197. max: {
  21198. type: [Number, String],
  21199. default: uni.$u.props.badge.max
  21200. },
  21201. // 主题类型,error|warning|success|primary
  21202. type: {
  21203. type: String,
  21204. default: uni.$u.props.badge.type
  21205. },
  21206. // 当数值为 0 时,是否展示 Badge
  21207. showZero: {
  21208. type: Boolean,
  21209. default: uni.$u.props.badge.showZero
  21210. },
  21211. // 背景颜色,优先级比type高,如设置,type参数会失效
  21212. bgColor: {
  21213. type: [String, null],
  21214. default: uni.$u.props.badge.bgColor
  21215. },
  21216. // 字体颜色
  21217. color: {
  21218. type: [String, null],
  21219. default: uni.$u.props.badge.color
  21220. },
  21221. // 徽标形状,circle-四角均为圆角,horn-左下角为直角
  21222. shape: {
  21223. type: String,
  21224. default: uni.$u.props.badge.shape
  21225. },
  21226. // 设置数字的显示方式,overflow|ellipsis|limit
  21227. // overflow会根据max字段判断,超出显示`${max}+`
  21228. // ellipsis会根据max判断,超出显示`${max}...`
  21229. // limit会依据1000作为判断条件,超出1000,显示`${value/1000}K`,比如2.2k、3.34w,最多保留2位小数
  21230. numberType: {
  21231. type: String,
  21232. default: uni.$u.props.badge.numberType
  21233. },
  21234. // 设置badge的位置偏移,格式为 [x, y],也即设置的为top和right的值,absolute为true时有效
  21235. offset: {
  21236. type: Array,
  21237. default: uni.$u.props.badge.offset
  21238. },
  21239. // 是否反转背景和字体颜色
  21240. inverted: {
  21241. type: Boolean,
  21242. default: uni.$u.props.badge.inverted
  21243. },
  21244. // 是否绝对定位
  21245. absolute: {
  21246. type: Boolean,
  21247. default: uni.$u.props.badge.absolute
  21248. }
  21249. }
  21250. };
  21251. exports.default = _default;
  21252. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21253. /***/ }),
  21254. /* 310 */,
  21255. /* 311 */,
  21256. /* 312 */,
  21257. /* 313 */,
  21258. /* 314 */,
  21259. /* 315 */,
  21260. /* 316 */,
  21261. /* 317 */
  21262. /*!************************************************************************************************************!*\
  21263. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/components/u-transition/props.js ***!
  21264. \************************************************************************************************************/
  21265. /*! no static exports found */
  21266. /***/ (function(module, exports, __webpack_require__) {
  21267. "use strict";
  21268. /* WEBPACK VAR INJECTION */(function(uni) {
  21269. Object.defineProperty(exports, "__esModule", {
  21270. value: true
  21271. });
  21272. exports.default = void 0;
  21273. var _default = {
  21274. props: {
  21275. // 是否展示组件
  21276. show: {
  21277. type: Boolean,
  21278. default: uni.$u.props.transition.show
  21279. },
  21280. // 使用的动画模式
  21281. mode: {
  21282. type: String,
  21283. default: uni.$u.props.transition.mode
  21284. },
  21285. // 动画的执行时间,单位ms
  21286. duration: {
  21287. type: [String, Number],
  21288. default: uni.$u.props.transition.duration
  21289. },
  21290. // 使用的动画过渡函数
  21291. timingFunction: {
  21292. type: String,
  21293. default: uni.$u.props.transition.timingFunction
  21294. }
  21295. }
  21296. };
  21297. exports.default = _default;
  21298. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21299. /***/ }),
  21300. /* 318 */
  21301. /*!*****************************************************************************************************************!*\
  21302. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/components/u-transition/transition.js ***!
  21303. \*****************************************************************************************************************/
  21304. /*! no static exports found */
  21305. /***/ (function(module, exports, __webpack_require__) {
  21306. "use strict";
  21307. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  21308. Object.defineProperty(exports, "__esModule", {
  21309. value: true
  21310. });
  21311. exports.default = void 0;
  21312. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 61));
  21313. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 63));
  21314. var _nvueAniMap = _interopRequireDefault(__webpack_require__(/*! ./nvue.ani-map.js */ 319));
  21315. // 定义一个一定时间后自动成功的promise,让调用nextTick方法处,进入下一个then方法
  21316. var nextTick = function nextTick() {
  21317. return new Promise(function (resolve) {
  21318. return setTimeout(resolve, 1000 / 50);
  21319. });
  21320. };
  21321. // nvue动画模块实现细节抽离在外部文件
  21322. // 定义类名,通过给元素动态切换类名,赋予元素一定的css动画样式
  21323. var getClassNames = function getClassNames(name) {
  21324. return {
  21325. enter: "u-".concat(name, "-enter u-").concat(name, "-enter-active"),
  21326. 'enter-to': "u-".concat(name, "-enter-to u-").concat(name, "-enter-active"),
  21327. leave: "u-".concat(name, "-leave u-").concat(name, "-leave-active"),
  21328. 'leave-to': "u-".concat(name, "-leave-to u-").concat(name, "-leave-active")
  21329. };
  21330. };
  21331. var _default = {
  21332. methods: {
  21333. // 组件被点击发出事件
  21334. clickHandler: function clickHandler() {
  21335. this.$emit('click');
  21336. },
  21337. // vue版本的组件进场处理
  21338. vueEnter: function vueEnter() {
  21339. var _this = this;
  21340. // 动画进入时的类名
  21341. var classNames = getClassNames(this.mode);
  21342. // 定义状态和发出动画进入前事件
  21343. this.status = 'enter';
  21344. this.$emit('beforeEnter');
  21345. this.inited = true;
  21346. this.display = true;
  21347. this.classes = classNames.enter;
  21348. this.$nextTick( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  21349. return _regenerator.default.wrap(function _callee$(_context) {
  21350. while (1) {
  21351. switch (_context.prev = _context.next) {
  21352. case 0:
  21353. // 标识动画尚未结束
  21354. _this.$emit('enter');
  21355. _this.transitionEnded = false;
  21356. // 组件动画进入后触发的事件
  21357. _this.$emit('afterEnter');
  21358. // 赋予组件enter-to类名
  21359. _this.classes = classNames['enter-to'];
  21360. case 4:
  21361. case "end":
  21362. return _context.stop();
  21363. }
  21364. }
  21365. }, _callee);
  21366. })));
  21367. },
  21368. // 动画离场处理
  21369. vueLeave: function vueLeave() {
  21370. var _this2 = this;
  21371. // 如果不是展示状态,无需执行逻辑
  21372. if (!this.display) return;
  21373. var classNames = getClassNames(this.mode);
  21374. // 标记离开状态和发出事件
  21375. this.status = 'leave';
  21376. this.$emit('beforeLeave');
  21377. // 获得类名
  21378. this.classes = classNames.leave;
  21379. this.$nextTick(function () {
  21380. // 动画正在离场的状态
  21381. _this2.transitionEnded = false;
  21382. _this2.$emit('leave');
  21383. // 组件执行动画,到了执行的执行时间后,执行一些额外处理
  21384. setTimeout(_this2.onTransitionEnd, _this2.duration);
  21385. _this2.classes = classNames['leave-to'];
  21386. });
  21387. },
  21388. // 完成过渡后触发
  21389. onTransitionEnd: function onTransitionEnd() {
  21390. // 如果已经是结束的状态,无需再处理
  21391. if (this.transitionEnded) return;
  21392. this.transitionEnded = true;
  21393. // 发出组件动画执行后的事件
  21394. this.$emit(this.status === 'leave' ? 'afterLeave' : 'afterEnter');
  21395. if (!this.show && this.display) {
  21396. this.display = false;
  21397. this.inited = false;
  21398. }
  21399. }
  21400. }
  21401. };
  21402. exports.default = _default;
  21403. /***/ }),
  21404. /* 319 */
  21405. /*!*******************************************************************************************************************!*\
  21406. !*** E:/HTC/CX/program/数字海岛/program/hotelHomestayWx/uni_modules/uview-ui/components/u-transition/nvue.ani-map.js ***!
  21407. \*******************************************************************************************************************/
  21408. /*! no static exports found */
  21409. /***/ (function(module, exports, __webpack_require__) {
  21410. "use strict";
  21411. Object.defineProperty(exports, "__esModule", {
  21412. value: true
  21413. });
  21414. exports.default = void 0;
  21415. var _default = {
  21416. fade: {
  21417. enter: {
  21418. opacity: 0
  21419. },
  21420. 'enter-to': {
  21421. opacity: 1
  21422. },
  21423. leave: {
  21424. opacity: 1
  21425. },
  21426. 'leave-to': {
  21427. opacity: 0
  21428. }
  21429. },
  21430. 'fade-up': {
  21431. enter: {
  21432. opacity: 0,
  21433. transform: 'translateY(100%)'
  21434. },
  21435. 'enter-to': {
  21436. opacity: 1,
  21437. transform: 'translateY(0)'
  21438. },
  21439. leave: {
  21440. opacity: 1,
  21441. transform: 'translateY(0)'
  21442. },
  21443. 'leave-to': {
  21444. opacity: 0,
  21445. transform: 'translateY(100%)'
  21446. }
  21447. },
  21448. 'fade-down': {
  21449. enter: {
  21450. opacity: 0,
  21451. transform: 'translateY(-100%)'
  21452. },
  21453. 'enter-to': {
  21454. opacity: 1,
  21455. transform: 'translateY(0)'
  21456. },
  21457. leave: {
  21458. opacity: 1,
  21459. transform: 'translateY(0)'
  21460. },
  21461. 'leave-to': {
  21462. opacity: 0,
  21463. transform: 'translateY(-100%)'
  21464. }
  21465. },
  21466. 'fade-left': {
  21467. enter: {
  21468. opacity: 0,
  21469. transform: 'translateX(-100%)'
  21470. },
  21471. 'enter-to': {
  21472. opacity: 1,
  21473. transform: 'translateY(0)'
  21474. },
  21475. leave: {
  21476. opacity: 1,
  21477. transform: 'translateY(0)'
  21478. },
  21479. 'leave-to': {
  21480. opacity: 0,
  21481. transform: 'translateX(-100%)'
  21482. }
  21483. },
  21484. 'fade-right': {
  21485. enter: {
  21486. opacity: 0,
  21487. transform: 'translateX(100%)'
  21488. },
  21489. 'enter-to': {
  21490. opacity: 1,
  21491. transform: 'translateY(0)'
  21492. },
  21493. leave: {
  21494. opacity: 1,
  21495. transform: 'translateY(0)'
  21496. },
  21497. 'leave-to': {
  21498. opacity: 0,
  21499. transform: 'translateX(100%)'
  21500. }
  21501. },
  21502. 'slide-up': {
  21503. enter: {
  21504. transform: 'translateY(100%)'
  21505. },
  21506. 'enter-to': {
  21507. transform: 'translateY(0)'
  21508. },
  21509. leave: {
  21510. transform: 'translateY(0)'
  21511. },
  21512. 'leave-to': {
  21513. transform: 'translateY(100%)'
  21514. }
  21515. },
  21516. 'slide-down': {
  21517. enter: {
  21518. transform: 'translateY(-100%)'
  21519. },
  21520. 'enter-to': {
  21521. transform: 'translateY(0)'
  21522. },
  21523. leave: {
  21524. transform: 'translateY(0)'
  21525. },
  21526. 'leave-to': {
  21527. transform: 'translateY(-100%)'
  21528. }
  21529. },
  21530. 'slide-left': {
  21531. enter: {
  21532. transform: 'translateX(-100%)'
  21533. },
  21534. 'enter-to': {
  21535. transform: 'translateY(0)'
  21536. },
  21537. leave: {
  21538. transform: 'translateY(0)'
  21539. },
  21540. 'leave-to': {
  21541. transform: 'translateX(-100%)'
  21542. }
  21543. },
  21544. 'slide-right': {
  21545. enter: {
  21546. transform: 'translateX(100%)'
  21547. },
  21548. 'enter-to': {
  21549. transform: 'translateY(0)'
  21550. },
  21551. leave: {
  21552. transform: 'translateY(0)'
  21553. },
  21554. 'leave-to': {
  21555. transform: 'translateX(100%)'
  21556. }
  21557. },
  21558. zoom: {
  21559. enter: {
  21560. transform: 'scale(0.95)'
  21561. },
  21562. 'enter-to': {
  21563. transform: 'scale(1)'
  21564. },
  21565. leave: {
  21566. transform: 'scale(1)'
  21567. },
  21568. 'leave-to': {
  21569. transform: 'scale(0.95)'
  21570. }
  21571. },
  21572. 'fade-zoom': {
  21573. enter: {
  21574. opacity: 0,
  21575. transform: 'scale(0.95)'
  21576. },
  21577. 'enter-to': {
  21578. opacity: 1,
  21579. transform: 'scale(1)'
  21580. },
  21581. leave: {
  21582. opacity: 1,
  21583. transform: 'scale(1)'
  21584. },
  21585. 'leave-to': {
  21586. opacity: 0,
  21587. transform: 'scale(0.95)'
  21588. }
  21589. }
  21590. };
  21591. exports.default = _default;
  21592. /***/ })
  21593. ]]);
  21594. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map